@gov-design-system-ce/components 4.6.0 → 4.6.3

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 (1274) hide show
  1. package/dist/cjs/Fragment-D4qSkFah.js.map +1 -1
  2. package/dist/cjs/accessibility-BQJmIVWV.js.map +1 -1
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  4. package/dist/cjs/array.utils-DOh1gCQS.js.map +1 -1
  5. package/dist/cjs/attribute-CH1-zDDl.js.map +1 -1
  6. package/dist/cjs/colors-DgrrxjsX.js.map +1 -1
  7. package/dist/cjs/constants-357ehBFU.js.map +1 -1
  8. package/dist/cjs/constants-CFAhiwqu.js.map +1 -1
  9. package/dist/cjs/constants-CYm8AK_D.js.map +1 -1
  10. package/dist/cjs/constants-CbBhWRUQ.js.map +1 -1
  11. package/dist/cjs/constants-ChDSk4SZ.js.map +1 -1
  12. package/dist/cjs/constants-D6LZ31rS.js.map +1 -1
  13. package/dist/cjs/constants-DcKnOyW4.js.map +1 -1
  14. package/dist/cjs/constants-Dmmp9FHy.js.map +1 -1
  15. package/dist/cjs/constants-WvkMgj1j.js.map +1 -1
  16. package/dist/cjs/constants-ymB2dvwV.js.map +1 -1
  17. package/dist/cjs/constants-z2ZSS2je.js.map +1 -1
  18. package/dist/cjs/form-GgXzZZ-E.js.map +1 -1
  19. package/dist/cjs/gov-accordion-item.cjs.entry.js +3 -3
  20. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  21. package/dist/cjs/gov-accordion-item.entry.cjs.js.map +1 -1
  22. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-accordion.entry.cjs.js.map +1 -1
  25. package/dist/cjs/gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js.map +1 -1
  26. package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
  27. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
  29. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-backdrop.entry.cjs.js.map +1 -1
  31. package/dist/cjs/gov-banner.cjs.entry.js +2 -2
  32. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gov-banner.entry.cjs.js.map +1 -1
  34. package/dist/cjs/gov-blockquote.cjs.entry.js +1 -1
  35. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-blockquote.entry.cjs.js.map +1 -1
  37. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
  38. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  39. package/dist/cjs/gov-breadcrumbs.entry.cjs.js.map +1 -1
  40. package/dist/cjs/gov-button.cjs.entry.js +3 -3
  41. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gov-button.entry.cjs.js.map +1 -1
  43. package/dist/cjs/gov-card.cjs.entry.js +1 -1
  44. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-card.entry.cjs.js.map +1 -1
  46. package/dist/cjs/gov-chip.cjs.entry.js +2 -2
  47. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  48. package/dist/cjs/gov-chip.entry.cjs.js.map +1 -1
  49. package/dist/cjs/gov-collapsible.cjs.entry.js +2 -2
  50. package/dist/cjs/gov-collapsible.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-collapsible.entry.cjs.js.map +1 -1
  52. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  53. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  54. package/dist/cjs/gov-container.entry.cjs.js.map +1 -1
  55. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  56. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  57. package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -1
  58. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  59. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
  60. package/dist/cjs/gov-cookiebar.entry.cjs.js.map +1 -1
  61. package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
  62. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  63. package/dist/cjs/gov-dialog.entry.cjs.js.map +1 -1
  64. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  65. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
  66. package/dist/cjs/gov-dropdown.entry.cjs.js.map +1 -1
  67. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  68. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  69. package/dist/cjs/gov-empty.entry.cjs.js.map +1 -1
  70. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  71. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-error-code.entry.cjs.js.map +1 -1
  73. package/dist/cjs/gov-flex.gov-icon.gov-theme-switch.entry.cjs.js.map +1 -1
  74. package/dist/cjs/gov-flex_3.cjs.entry.js +3 -3
  75. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  76. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
  77. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  78. package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +1 -1
  79. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +1 -1
  80. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  81. package/dist/cjs/gov-form-checkbox-group.entry.cjs.js.map +1 -1
  82. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  83. package/dist/cjs/gov-form-checkbox.entry.cjs.js.map +1 -1
  84. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  85. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  86. package/dist/cjs/gov-form-control.entry.cjs.js.map +1 -1
  87. package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
  88. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  89. package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -1
  90. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  91. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  92. package/dist/cjs/gov-form-group.entry.cjs.js.map +1 -1
  93. package/dist/cjs/gov-form-input.gov-skeleton.entry.cjs.js.map +1 -1
  94. package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
  95. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  96. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  97. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  98. package/dist/cjs/gov-form-label.entry.cjs.js.map +1 -1
  99. package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
  100. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gov-form-multi-select.entry.cjs.js.map +1 -1
  102. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  103. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
  104. package/dist/cjs/gov-form-password-power.entry.cjs.js.map +1 -1
  105. package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
  106. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  107. package/dist/cjs/gov-form-radio-group.entry.cjs.js.map +1 -1
  108. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  109. package/dist/cjs/gov-form-radio.entry.cjs.js.map +1 -1
  110. package/dist/cjs/gov-form-range.cjs.entry.js +2 -2
  111. package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -1
  112. package/dist/cjs/gov-form-range.entry.cjs.js.map +1 -1
  113. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  114. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  115. package/dist/cjs/gov-form-search.entry.cjs.js.map +1 -1
  116. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  117. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  118. package/dist/cjs/gov-form-select.entry.cjs.js.map +1 -1
  119. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  120. package/dist/cjs/gov-form-switch.entry.cjs.js.map +1 -1
  121. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  122. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  123. package/dist/cjs/gov-grid-item.entry.cjs.js.map +1 -1
  124. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  125. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  126. package/dist/cjs/gov-grid.entry.cjs.js.map +1 -1
  127. package/dist/cjs/gov-infobar.cjs.entry.js +2 -2
  128. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  129. package/dist/cjs/gov-infobar.entry.cjs.js.map +1 -1
  130. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  131. package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
  132. package/dist/cjs/gov-layout-column.entry.cjs.js.map +1 -1
  133. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  134. package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
  135. package/dist/cjs/gov-layout.entry.cjs.js.map +1 -1
  136. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  137. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -1
  138. package/dist/cjs/gov-lifecycle.entry.cjs.js.map +1 -1
  139. package/dist/cjs/gov-link.cjs.entry.js +1 -1
  140. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  141. package/dist/cjs/gov-link.entry.cjs.js.map +1 -1
  142. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  143. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  144. package/dist/cjs/gov-loading.entry.cjs.js.map +1 -1
  145. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  146. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  147. package/dist/cjs/gov-message.entry.cjs.js.map +1 -1
  148. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  149. package/dist/cjs/gov-pagination.entry.cjs.js.map +1 -1
  150. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  151. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  152. package/dist/cjs/gov-spacer.entry.cjs.js.map +1 -1
  153. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  154. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  155. package/dist/cjs/gov-stepper-item.entry.cjs.js.map +1 -1
  156. package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
  157. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  158. package/dist/cjs/gov-stepper.entry.cjs.js.map +1 -1
  159. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  160. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
  161. package/dist/cjs/gov-tabs-item.entry.cjs.js.map +1 -1
  162. package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
  163. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  164. package/dist/cjs/gov-tabs.entry.cjs.js.map +1 -1
  165. package/dist/cjs/gov-tag.cjs.entry.js +1 -1
  166. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  167. package/dist/cjs/gov-tag.entry.cjs.js.map +1 -1
  168. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  169. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  170. package/dist/cjs/gov-tile.entry.cjs.js.map +1 -1
  171. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  172. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  173. package/dist/cjs/gov-toast.entry.cjs.js.map +1 -1
  174. package/dist/cjs/gov-tooltip.gov-tooltip-content.entry.cjs.js.map +1 -1
  175. package/dist/cjs/gov-tooltip_2.cjs.entry.js +3 -3
  176. package/dist/cjs/gov-tooltip_2.cjs.entry.js.map +1 -1
  177. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  178. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  179. package/dist/cjs/gov-wizard-item.entry.cjs.js.map +1 -1
  180. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  181. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  182. package/dist/cjs/gov-wizard.entry.cjs.js.map +1 -1
  183. package/dist/cjs/gov.log-C5EH15b_.js.map +1 -1
  184. package/dist/cjs/helpers-DmI-ZOAH.js.map +1 -1
  185. package/dist/cjs/helpers.types-vap8QfRH.js.map +1 -1
  186. package/dist/cjs/props-CPENhBnM.js.map +1 -1
  187. package/dist/cjs/sizes-D5zsw2g5.js.map +1 -1
  188. package/dist/cjs/stencil.utils-8sCYbm34.js.map +1 -1
  189. package/dist/cjs/string.utils-BG4pUfEi.js.map +1 -1
  190. package/dist/cjs/template-Cj6PcLmR.js.map +1 -1
  191. package/dist/cjs/utils-NnC78QR3.js.map +1 -1
  192. package/dist/cjs/wcag-Bvzxnp5D.js.map +1 -1
  193. package/dist/collection/components/gov-accordion/constants.js.map +1 -1
  194. package/dist/collection/components/gov-accordion/gov-accordion-item.js +3 -3
  195. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  196. package/dist/collection/components/gov-accordion/gov-accordion.js +1 -1
  197. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  198. package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +1 -1
  199. package/dist/collection/components/gov-attachments/constants.js.map +1 -1
  200. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -1
  201. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  202. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  203. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  204. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
  205. package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
  206. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  207. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  208. package/dist/collection/components/gov-banner/constants.js.map +1 -1
  209. package/dist/collection/components/gov-banner/gov-banner.js +2 -2
  210. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
  211. package/dist/collection/components/gov-blockquote/constants.js.map +1 -1
  212. package/dist/collection/components/gov-blockquote/gov-blockquote.js +1 -1
  213. package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -1
  214. package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
  215. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -1
  216. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  217. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  218. package/dist/collection/components/gov-button/button/constants.js.map +1 -1
  219. package/dist/collection/components/gov-button/button/gov-button.js +5 -5
  220. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  221. package/dist/collection/components/gov-button/button/gov-button.types.js.map +1 -1
  222. package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -1
  223. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  224. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
  225. package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +1 -1
  226. package/dist/collection/components/gov-card/constants.js.map +1 -1
  227. package/dist/collection/components/gov-card/gov-card.js +1 -1
  228. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  229. package/dist/collection/components/gov-card/interfaces.js.map +1 -1
  230. package/dist/collection/components/gov-chip/constants.js.map +1 -1
  231. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  232. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  233. package/dist/collection/components/gov-collapsible/constants.js.map +1 -1
  234. package/dist/collection/components/gov-collapsible/gov-collapsible.js +2 -2
  235. package/dist/collection/components/gov-collapsible/gov-collapsible.js.map +1 -1
  236. package/dist/collection/components/gov-container/constants.js.map +1 -1
  237. package/dist/collection/components/gov-container/gov-container.js +1 -1
  238. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  239. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  240. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  241. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  242. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
  243. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  244. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
  245. package/dist/collection/components/gov-dialog/constants.js.map +1 -1
  246. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  247. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  248. package/dist/collection/components/gov-empty/constants.js.map +1 -1
  249. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  250. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
  251. package/dist/collection/components/gov-error-code/constants.js.map +1 -1
  252. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  253. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
  254. package/dist/collection/components/gov-flex/constants.js.map +1 -1
  255. package/dist/collection/components/gov-flex/gov-flex.js +1 -1
  256. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  257. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
  258. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -3
  259. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  260. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -1
  261. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
  262. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
  263. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  264. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +1 -1
  265. package/dist/collection/components/gov-form/control/constants.js.map +1 -1
  266. package/dist/collection/components/gov-form/control/gov-form-control.js +4 -4
  267. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  268. package/dist/collection/components/gov-form/file/constants.js.map +1 -1
  269. package/dist/collection/components/gov-form/file/gov-form-file.js +4 -4
  270. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  271. package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -1
  272. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  273. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  274. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
  275. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  276. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
  277. package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +1 -1
  278. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  279. package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
  280. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  281. package/dist/collection/components/gov-form/input/gov-form-input.js +6 -6
  282. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  283. package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +1 -1
  284. package/dist/collection/components/gov-form/label/constants.js.map +1 -1
  285. package/dist/collection/components/gov-form/label/gov-form-label.js +2 -2
  286. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  287. package/dist/collection/components/gov-form/message/constants.js.map +1 -1
  288. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  289. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
  290. package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
  291. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -4
  292. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  293. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
  294. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -1
  295. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  296. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
  297. package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
  298. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -2
  299. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  300. package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -1
  301. package/dist/collection/components/gov-form/range/constants.js.map +1 -1
  302. package/dist/collection/components/gov-form/range/gov-form-range.js +2 -2
  303. package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -1
  304. package/dist/collection/components/gov-form/search/constants.js.map +1 -1
  305. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  306. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  307. package/dist/collection/components/gov-form/select/constants.js.map +1 -1
  308. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  309. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  310. package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -1
  311. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  312. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  313. package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +1 -1
  314. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  315. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  316. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  317. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  318. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  319. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  320. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  321. package/dist/collection/components/gov-icon/helpers.js.map +1 -1
  322. package/dist/collection/components/gov-icon/list.js.map +1 -1
  323. package/dist/collection/components/gov-infobar/constants.js.map +1 -1
  324. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  325. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  326. package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +1 -1
  327. package/dist/collection/components/gov-layout/constants.js.map +1 -1
  328. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  329. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
  330. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  331. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
  332. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  333. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -1
  334. package/dist/collection/components/gov-link/constants.js.map +1 -1
  335. package/dist/collection/components/gov-link/gov-link.js +1 -1
  336. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  337. package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
  338. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  339. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  340. package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
  341. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  342. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  343. package/dist/collection/components/gov-message/constants.js.map +1 -1
  344. package/dist/collection/components/gov-message/gov-message.js +1 -1
  345. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  346. package/dist/collection/components/gov-pagination/constants.js.map +1 -1
  347. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  348. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  349. package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +1 -1
  350. package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
  351. package/dist/collection/components/gov-spacer/constants.js.map +1 -1
  352. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  353. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  354. package/dist/collection/components/gov-stepper/stepper/constants.js.map +1 -1
  355. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +1 -1
  356. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +1 -1
  357. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +1 -1
  358. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +1 -1
  359. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +1 -1
  360. package/dist/collection/components/gov-tabs/constants.js.map +1 -1
  361. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  362. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
  363. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  364. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  365. package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
  366. package/dist/collection/components/gov-tag/constants.js.map +1 -1
  367. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  368. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  369. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  370. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  371. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  372. package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +1 -1
  373. package/dist/collection/components/gov-tile/constants.js.map +1 -1
  374. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  375. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  376. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  377. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  378. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  379. package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
  380. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  381. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  382. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  383. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  384. package/dist/collection/components/gov-wizard/constants.js.map +1 -1
  385. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -1
  386. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  387. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  388. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -1
  389. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  390. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
  391. package/dist/collection/core/constants/colors.js.map +1 -1
  392. package/dist/collection/core/constants/sizes.js.map +1 -1
  393. package/dist/collection/core/constants/tags.js.map +1 -1
  394. package/dist/collection/core/constants/tokens.js.map +1 -1
  395. package/dist/collection/data/color-definitions.js +500 -494
  396. package/dist/collection/data/font-definitions.js +132 -132
  397. package/dist/collection/helpers/Accessibility/accessibility.js.map +1 -1
  398. package/dist/collection/helpers/Accessibility/attributes.js.map +1 -1
  399. package/dist/collection/helpers/Dom/attribute.js.map +1 -1
  400. package/dist/collection/helpers/Dom/document.js.map +1 -1
  401. package/dist/collection/helpers/Dom/form.js.map +1 -1
  402. package/dist/collection/helpers/Dom/form.types.js.map +1 -1
  403. package/dist/collection/helpers/Dom/template.js.map +1 -1
  404. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  405. package/dist/collection/helpers/Dom/win.js.map +1 -1
  406. package/dist/collection/helpers/Fragment.js.map +1 -1
  407. package/dist/collection/helpers/Log/gov.log.js.map +1 -1
  408. package/dist/collection/helpers/Validate/props.js.map +1 -1
  409. package/dist/collection/helpers/Validate/wcag.js.map +1 -1
  410. package/dist/collection/index.js.map +1 -1
  411. package/dist/collection/types/event.types.js.map +1 -1
  412. package/dist/collection/types/interfaces.js.map +1 -1
  413. package/dist/collection/utils/array.utils.js.map +1 -1
  414. package/dist/collection/utils/bool.utils.js.map +1 -1
  415. package/dist/collection/utils/dom.utils.js.map +1 -1
  416. package/dist/collection/utils/ds.utils.js.map +1 -1
  417. package/dist/collection/utils/file.utils.js.map +1 -1
  418. package/dist/collection/utils/helpers.types.js.map +1 -1
  419. package/dist/collection/utils/icon.utils.js.map +1 -1
  420. package/dist/collection/utils/number.utils.js.map +1 -1
  421. package/dist/collection/utils/object.utils.js.map +1 -1
  422. package/dist/collection/utils/stencil.utils.js.map +1 -1
  423. package/dist/collection/utils/string.utils.js.map +1 -1
  424. package/dist/collection/utils/utils.js.map +1 -1
  425. package/dist/components/gov-accordion-item.js +1 -1
  426. package/dist/components/gov-accordion-item.js.map +1 -1
  427. package/dist/components/gov-accordion.js +1 -1
  428. package/dist/components/gov-accordion.js.map +1 -1
  429. package/dist/components/gov-attachments-item.js +1 -1
  430. package/dist/components/gov-attachments.js +1 -1
  431. package/dist/components/gov-backdrop.js +1 -1
  432. package/dist/components/gov-banner.js +1 -1
  433. package/dist/components/gov-banner.js.map +1 -1
  434. package/dist/components/gov-blockquote.js +1 -1
  435. package/dist/components/gov-blockquote.js.map +1 -1
  436. package/dist/components/gov-breadcrumbs.js +1 -1
  437. package/dist/components/gov-breadcrumbs.js.map +1 -1
  438. package/dist/components/gov-button.js +1 -1
  439. package/dist/components/gov-card.js +1 -1
  440. package/dist/components/gov-card.js.map +1 -1
  441. package/dist/components/gov-chip.js +1 -1
  442. package/dist/components/gov-collapsible.js +1 -1
  443. package/dist/components/gov-collapsible.js.map +1 -1
  444. package/dist/components/gov-container.js +1 -1
  445. package/dist/components/gov-container.js.map +1 -1
  446. package/dist/components/gov-control-group.js +1 -1
  447. package/dist/components/gov-control-group.js.map +1 -1
  448. package/dist/components/gov-cookiebar.js +1 -1
  449. package/dist/components/gov-cookiebar.js.map +1 -1
  450. package/dist/components/gov-dialog.js +1 -1
  451. package/dist/components/gov-dialog.js.map +1 -1
  452. package/dist/components/gov-dropdown.js +1 -1
  453. package/dist/components/gov-dropdown.js.map +1 -1
  454. package/dist/components/gov-empty.js +1 -1
  455. package/dist/components/gov-empty.js.map +1 -1
  456. package/dist/components/gov-error-code.js +1 -1
  457. package/dist/components/gov-error-code.js.map +1 -1
  458. package/dist/components/gov-flex.js +1 -1
  459. package/dist/components/gov-flex.js.map +1 -1
  460. package/dist/components/gov-form-autocomplete.js +1 -1
  461. package/dist/components/gov-form-checkbox-group.js +1 -1
  462. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  463. package/dist/components/gov-form-checkbox.js +1 -1
  464. package/dist/components/gov-form-checkbox.js.map +1 -1
  465. package/dist/components/gov-form-control.js +1 -1
  466. package/dist/components/gov-form-control.js.map +1 -1
  467. package/dist/components/gov-form-file.js +1 -1
  468. package/dist/components/gov-form-file.js.map +1 -1
  469. package/dist/components/gov-form-group.js +1 -1
  470. package/dist/components/gov-form-group.js.map +1 -1
  471. package/dist/components/gov-form-input.js +1 -1
  472. package/dist/components/gov-form-label.js +1 -1
  473. package/dist/components/gov-form-label.js.map +1 -1
  474. package/dist/components/gov-form-message.js +1 -1
  475. package/dist/components/gov-form-multi-select.js +1 -1
  476. package/dist/components/gov-form-multi-select.js.map +1 -1
  477. package/dist/components/gov-form-password-power.js +1 -1
  478. package/dist/components/gov-form-password-power.js.map +1 -1
  479. package/dist/components/gov-form-radio-group.js +1 -1
  480. package/dist/components/gov-form-radio-group.js.map +1 -1
  481. package/dist/components/gov-form-radio.js.map +1 -1
  482. package/dist/components/gov-form-range.js +1 -1
  483. package/dist/components/gov-form-range.js.map +1 -1
  484. package/dist/components/gov-form-search.js +1 -1
  485. package/dist/components/gov-form-search.js.map +1 -1
  486. package/dist/components/gov-form-select.js +1 -1
  487. package/dist/components/gov-form-switch.js +1 -1
  488. package/dist/components/gov-form-switch.js.map +1 -1
  489. package/dist/components/gov-grid-item.js +1 -1
  490. package/dist/components/gov-grid-item.js.map +1 -1
  491. package/dist/components/gov-grid.js +1 -1
  492. package/dist/components/gov-grid.js.map +1 -1
  493. package/dist/components/gov-icon.js +1 -1
  494. package/dist/components/gov-infobar.js +1 -1
  495. package/dist/components/gov-infobar.js.map +1 -1
  496. package/dist/components/gov-layout-column.js +1 -1
  497. package/dist/components/gov-layout-column.js.map +1 -1
  498. package/dist/components/gov-layout.js +1 -1
  499. package/dist/components/gov-layout.js.map +1 -1
  500. package/dist/components/gov-lifecycle.js +1 -1
  501. package/dist/components/gov-lifecycle.js.map +1 -1
  502. package/dist/components/gov-link.js +1 -1
  503. package/dist/components/gov-link.js.map +1 -1
  504. package/dist/components/gov-loading.js +1 -1
  505. package/dist/components/gov-loading.js.map +1 -1
  506. package/dist/components/gov-message.js +1 -1
  507. package/dist/components/gov-message.js.map +1 -1
  508. package/dist/components/gov-pagination.js +1 -1
  509. package/dist/components/gov-pagination.js.map +1 -1
  510. package/dist/components/gov-skeleton.js +1 -1
  511. package/dist/components/gov-spacer.js +1 -1
  512. package/dist/components/gov-spacer.js.map +1 -1
  513. package/dist/components/gov-stepper-item.js +1 -1
  514. package/dist/components/gov-stepper-item.js.map +1 -1
  515. package/dist/components/gov-stepper.js +1 -1
  516. package/dist/components/gov-stepper.js.map +1 -1
  517. package/dist/components/gov-tabs-item.js +1 -1
  518. package/dist/components/gov-tabs-item.js.map +1 -1
  519. package/dist/components/gov-tabs.js +1 -1
  520. package/dist/components/gov-tabs.js.map +1 -1
  521. package/dist/components/gov-tag.js +1 -1
  522. package/dist/components/gov-tag.js.map +1 -1
  523. package/dist/components/gov-theme-switch.js +1 -1
  524. package/dist/components/gov-theme-switch.js.map +1 -1
  525. package/dist/components/gov-tile.js +1 -1
  526. package/dist/components/gov-tile.js.map +1 -1
  527. package/dist/components/gov-toast.js +1 -1
  528. package/dist/components/gov-toast.js.map +1 -1
  529. package/dist/components/gov-tooltip-content.js +1 -1
  530. package/dist/components/gov-tooltip.js +1 -1
  531. package/dist/components/gov-wizard-item.js +1 -1
  532. package/dist/components/gov-wizard-item.js.map +1 -1
  533. package/dist/components/gov-wizard.js +1 -1
  534. package/dist/components/gov-wizard.js.map +1 -1
  535. package/dist/components/p-4i8qDRtu.js.map +1 -1
  536. package/dist/components/p-5itQzbON.js.map +1 -1
  537. package/dist/components/p-9imLQpxb.js.map +1 -1
  538. package/dist/components/p-B0KFtEn3.js +2 -0
  539. package/dist/components/p-B0KFtEn3.js.map +1 -0
  540. package/dist/components/p-B0hcuYXk.js.map +1 -1
  541. package/dist/components/p-B3tdsiZv.js.map +1 -1
  542. package/dist/components/p-BKP-F1qP.js.map +1 -1
  543. package/dist/components/{p-D8QfVS4O.js → p-BNnuBQvo.js} +2 -2
  544. package/dist/components/p-BNnuBQvo.js.map +1 -0
  545. package/dist/components/p-BTwdrNoS.js.map +1 -1
  546. package/dist/components/p-BUmDydor.js.map +1 -1
  547. package/dist/components/{p-DW1DKFMF.js → p-BZTY3MxF.js} +2 -2
  548. package/dist/components/p-BZTY3MxF.js.map +1 -0
  549. package/dist/components/p-BcQO4NH2.js.map +1 -1
  550. package/dist/components/{p-BJnSrRNH.js → p-BrdXh0mI.js} +2 -2
  551. package/dist/components/p-BrdXh0mI.js.map +1 -0
  552. package/dist/components/{p-_FzmpyXv.js → p-Bv5L0j6n.js} +2 -2
  553. package/dist/components/p-Bv5L0j6n.js.map +1 -0
  554. package/dist/components/p-C6JN9gdb.js.map +1 -1
  555. package/dist/components/p-CNqoJU2V.js.map +1 -1
  556. package/dist/components/p-CQvUntGY.js.map +1 -1
  557. package/dist/components/p-CUVZZBqo.js.map +1 -1
  558. package/dist/components/p-CXgom82_.js.map +1 -1
  559. package/dist/components/p-CZr7GBEo.js.map +1 -1
  560. package/dist/components/p-CfaJM4SA.js +2 -0
  561. package/dist/components/p-CfaJM4SA.js.map +1 -0
  562. package/dist/components/p-Cjg0wpDG.js.map +1 -1
  563. package/dist/components/p-ClYmjarv.js.map +1 -1
  564. package/dist/components/p-DBXGhafv.js.map +1 -1
  565. package/dist/components/{p-Ba8Z-AIX.js → p-DFu5UVoP.js} +2 -2
  566. package/dist/components/p-DFu5UVoP.js.map +1 -0
  567. package/dist/components/p-DKo9A5gq.js.map +1 -1
  568. package/dist/components/{p-9VlKyZSl.js → p-DMVQRz4f.js} +2 -2
  569. package/dist/components/p-DMVQRz4f.js.map +1 -0
  570. package/dist/components/{p-2_-up8FX.js → p-DesycS6d.js} +2 -2
  571. package/dist/components/p-DesycS6d.js.map +1 -0
  572. package/dist/components/p-DfI_0WW6.js.map +1 -1
  573. package/dist/components/p-DrPpH_9c.js.map +1 -1
  574. package/dist/components/p-EeKNA85D.js.map +1 -1
  575. package/dist/components/p-GYov8gU1.js.map +1 -1
  576. package/dist/components/p-Nvj7WFs_.js.map +1 -1
  577. package/dist/components/p-Q99QrOoi.js.map +1 -1
  578. package/dist/components/p-U40vKHrs.js.map +1 -1
  579. package/dist/components/{p-DZJk8GrA.js → p-UDT3DloZ.js} +2 -2
  580. package/dist/components/p-UDT3DloZ.js.map +1 -0
  581. package/dist/components/{p-CWqMiVYH.js → p-djqfSbq-.js} +2 -2
  582. package/dist/components/p-djqfSbq-.js.map +1 -0
  583. package/dist/components/p-vN03FcXN.js.map +1 -1
  584. package/dist/components/{p-DhGb8cBK.js → p-x3w8Mun_.js} +2 -2
  585. package/dist/components/p-x3w8Mun_.js.map +1 -0
  586. package/dist/components/p-yqJEurSE.js +2 -0
  587. package/dist/components/p-yqJEurSE.js.map +1 -0
  588. package/dist/core/core.css +38 -38
  589. package/dist/core/core.esm.js +1 -1
  590. package/dist/core/gov-accordion-item.entry.esm.js.map +1 -1
  591. package/dist/core/gov-accordion.entry.esm.js.map +1 -1
  592. package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +1 -1
  593. package/dist/core/gov-backdrop.entry.esm.js.map +1 -1
  594. package/dist/core/gov-banner.entry.esm.js.map +1 -1
  595. package/dist/core/gov-blockquote.entry.esm.js.map +1 -1
  596. package/dist/core/gov-breadcrumbs.entry.esm.js.map +1 -1
  597. package/dist/core/gov-button.entry.esm.js.map +1 -1
  598. package/dist/core/gov-card.entry.esm.js.map +1 -1
  599. package/dist/core/gov-chip.entry.esm.js.map +1 -1
  600. package/dist/core/gov-collapsible.entry.esm.js.map +1 -1
  601. package/dist/core/gov-container.entry.esm.js.map +1 -1
  602. package/dist/core/gov-control-group.entry.esm.js.map +1 -1
  603. package/dist/core/gov-cookiebar.entry.esm.js.map +1 -1
  604. package/dist/core/gov-dialog.entry.esm.js.map +1 -1
  605. package/dist/core/gov-dropdown.entry.esm.js.map +1 -1
  606. package/dist/core/gov-empty.entry.esm.js.map +1 -1
  607. package/dist/core/gov-error-code.entry.esm.js.map +1 -1
  608. package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +1 -1
  609. package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -1
  610. package/dist/core/gov-form-checkbox-group.entry.esm.js.map +1 -1
  611. package/dist/core/gov-form-checkbox.entry.esm.js.map +1 -1
  612. package/dist/core/gov-form-control.entry.esm.js.map +1 -1
  613. package/dist/core/gov-form-file.entry.esm.js.map +1 -1
  614. package/dist/core/gov-form-group.entry.esm.js.map +1 -1
  615. package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +1 -1
  616. package/dist/core/gov-form-label.entry.esm.js.map +1 -1
  617. package/dist/core/gov-form-multi-select.entry.esm.js.map +1 -1
  618. package/dist/core/gov-form-password-power.entry.esm.js.map +1 -1
  619. package/dist/core/gov-form-radio-group.entry.esm.js.map +1 -1
  620. package/dist/core/gov-form-radio.entry.esm.js.map +1 -1
  621. package/dist/core/gov-form-range.entry.esm.js.map +1 -1
  622. package/dist/core/gov-form-search.entry.esm.js.map +1 -1
  623. package/dist/core/gov-form-select.entry.esm.js.map +1 -1
  624. package/dist/core/gov-form-switch.entry.esm.js.map +1 -1
  625. package/dist/core/gov-grid-item.entry.esm.js.map +1 -1
  626. package/dist/core/gov-grid.entry.esm.js.map +1 -1
  627. package/dist/core/gov-infobar.entry.esm.js.map +1 -1
  628. package/dist/core/gov-layout-column.entry.esm.js.map +1 -1
  629. package/dist/core/gov-layout.entry.esm.js.map +1 -1
  630. package/dist/core/gov-lifecycle.entry.esm.js.map +1 -1
  631. package/dist/core/gov-link.entry.esm.js.map +1 -1
  632. package/dist/core/gov-loading.entry.esm.js.map +1 -1
  633. package/dist/core/gov-message.entry.esm.js.map +1 -1
  634. package/dist/core/gov-pagination.entry.esm.js.map +1 -1
  635. package/dist/core/gov-spacer.entry.esm.js.map +1 -1
  636. package/dist/core/gov-stepper-item.entry.esm.js.map +1 -1
  637. package/dist/core/gov-stepper.entry.esm.js.map +1 -1
  638. package/dist/core/gov-tabs-item.entry.esm.js.map +1 -1
  639. package/dist/core/gov-tabs.entry.esm.js.map +1 -1
  640. package/dist/core/gov-tag.entry.esm.js.map +1 -1
  641. package/dist/core/gov-tile.entry.esm.js.map +1 -1
  642. package/dist/core/gov-toast.entry.esm.js.map +1 -1
  643. package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +1 -1
  644. package/dist/core/gov-wizard-item.entry.esm.js.map +1 -1
  645. package/dist/core/gov-wizard.entry.esm.js.map +1 -1
  646. package/dist/core/{p-37f6095e.entry.js → p-04ec45ab.entry.js} +2 -2
  647. package/dist/core/p-04ec45ab.entry.js.map +1 -0
  648. package/dist/core/p-0af96cc0.entry.js +2 -0
  649. package/dist/core/p-0af96cc0.entry.js.map +1 -0
  650. package/dist/core/{p-b93548cc.entry.js → p-11fc3899.entry.js} +2 -2
  651. package/dist/core/p-11fc3899.entry.js.map +1 -0
  652. package/dist/core/{p-67d1e6e2.entry.js → p-157a1636.entry.js} +2 -2
  653. package/dist/core/p-157a1636.entry.js.map +1 -0
  654. package/dist/core/p-1626cc67.entry.js +2 -0
  655. package/dist/core/p-1626cc67.entry.js.map +1 -0
  656. package/dist/core/{p-46effc25.entry.js → p-187c0eda.entry.js} +2 -2
  657. package/dist/core/p-187c0eda.entry.js.map +1 -0
  658. package/dist/core/p-3314505d.entry.js +2 -0
  659. package/dist/core/p-3314505d.entry.js.map +1 -0
  660. package/dist/core/p-33209782.entry.js +2 -0
  661. package/dist/core/p-33209782.entry.js.map +1 -0
  662. package/dist/core/{p-715c0e2e.entry.js → p-33b462c9.entry.js} +2 -2
  663. package/dist/core/p-33b462c9.entry.js.map +1 -0
  664. package/dist/core/{p-f067af74.entry.js → p-3e07bf07.entry.js} +2 -2
  665. package/dist/core/p-3e07bf07.entry.js.map +1 -0
  666. package/dist/core/p-3e5ae012.entry.js +2 -0
  667. package/dist/core/p-3e5ae012.entry.js.map +1 -0
  668. package/dist/core/p-46824842.entry.js.map +1 -1
  669. package/dist/core/{p-1375d52d.entry.js → p-469f14db.entry.js} +2 -2
  670. package/dist/core/p-469f14db.entry.js.map +1 -0
  671. package/dist/core/p-4c02094d.entry.js +2 -0
  672. package/dist/core/p-4c02094d.entry.js.map +1 -0
  673. package/dist/core/{p-6f173022.entry.js → p-4d365881.entry.js} +2 -2
  674. package/dist/core/p-4d365881.entry.js.map +1 -0
  675. package/dist/core/p-4d36cd18.entry.js +2 -0
  676. package/dist/core/p-4d36cd18.entry.js.map +1 -0
  677. package/dist/core/p-4d902f20.entry.js +2 -0
  678. package/dist/core/p-4d902f20.entry.js.map +1 -0
  679. package/dist/core/p-4da8ac1d.entry.js +2 -0
  680. package/dist/core/p-4da8ac1d.entry.js.map +1 -0
  681. package/dist/core/p-511eed88.entry.js +2 -0
  682. package/dist/core/p-511eed88.entry.js.map +1 -0
  683. package/dist/core/{p-8655fd24.entry.js → p-5305e82e.entry.js} +2 -2
  684. package/dist/core/p-5305e82e.entry.js.map +1 -0
  685. package/dist/core/p-558e75a6.entry.js +2 -0
  686. package/dist/core/p-558e75a6.entry.js.map +1 -0
  687. package/dist/core/p-5721cf9b.entry.js.map +1 -1
  688. package/dist/core/p-57ca8ac7.entry.js +2 -0
  689. package/dist/core/p-57ca8ac7.entry.js.map +1 -0
  690. package/dist/core/{p-8161e1fe.entry.js → p-5c872d64.entry.js} +2 -2
  691. package/dist/core/p-5c872d64.entry.js.map +1 -0
  692. package/dist/core/p-5itQzbON.js.map +1 -1
  693. package/dist/core/p-65a09763.entry.js +2 -0
  694. package/dist/core/p-65a09763.entry.js.map +1 -0
  695. package/dist/core/{p-e7f889c7.entry.js → p-6b44890d.entry.js} +2 -2
  696. package/dist/core/p-6b44890d.entry.js.map +1 -0
  697. package/dist/core/p-6d2ce4c7.entry.js +2 -0
  698. package/dist/core/p-6d2ce4c7.entry.js.map +1 -0
  699. package/dist/core/{p-b3b517f0.entry.js → p-70b5555f.entry.js} +2 -2
  700. package/dist/core/p-70b5555f.entry.js.map +1 -0
  701. package/dist/core/p-73bd93f9.entry.js +2 -0
  702. package/dist/core/p-73bd93f9.entry.js.map +1 -0
  703. package/dist/core/p-852310d9.entry.js +2 -0
  704. package/dist/core/p-852310d9.entry.js.map +1 -0
  705. package/dist/core/p-90ab65b4.entry.js +2 -0
  706. package/dist/core/p-90ab65b4.entry.js.map +1 -0
  707. package/dist/core/{p-2cfa670d.entry.js → p-91cbee1b.entry.js} +2 -2
  708. package/dist/core/p-91cbee1b.entry.js.map +1 -0
  709. package/dist/core/p-9d9e9401.entry.js +2 -0
  710. package/dist/core/p-9d9e9401.entry.js.map +1 -0
  711. package/dist/core/p-B6CqPcY_.js.map +1 -1
  712. package/dist/core/p-BUmDydor.js.map +1 -1
  713. package/dist/core/p-BcQO4NH2.js.map +1 -1
  714. package/dist/core/p-BjcqOprh.js.map +1 -1
  715. package/dist/core/p-Bo1ROm5Q.js.map +1 -1
  716. package/dist/core/p-Bz_RzYFb.js.map +1 -1
  717. package/dist/core/p-C3R1T_pg.js.map +1 -1
  718. package/dist/core/p-C6JN9gdb.js.map +1 -1
  719. package/dist/core/p-CDIRBJsi.js.map +1 -1
  720. package/dist/core/p-CQvUntGY.js.map +1 -1
  721. package/dist/core/p-Ccwpa1ck.js.map +1 -1
  722. package/dist/core/p-CgDnDrq5.js.map +1 -1
  723. package/dist/core/p-Cjg0wpDG.js.map +1 -1
  724. package/dist/core/p-CoD1xawt.js.map +1 -1
  725. package/dist/core/p-Cx3bEC5v.js.map +1 -1
  726. package/dist/core/p-CzXeijOj.js.map +1 -1
  727. package/dist/core/p-D4TGB274.js.map +1 -1
  728. package/dist/core/p-DBXGhafv.js.map +1 -1
  729. package/dist/core/p-DNztiAH0.js.map +1 -1
  730. package/dist/core/p-DQuL1Twl.js.map +1 -1
  731. package/dist/core/p-DYcNEwSZ.js.map +1 -1
  732. package/dist/core/p-EeKNA85D.js.map +1 -1
  733. package/dist/core/p-GYov8gU1.js.map +1 -1
  734. package/dist/core/p-NOJjz9dT.js.map +1 -1
  735. package/dist/core/p-Q99QrOoi.js.map +1 -1
  736. package/dist/core/p-U40vKHrs.js.map +1 -1
  737. package/dist/core/p-a2c61d50.entry.js +2 -0
  738. package/dist/core/p-a2c61d50.entry.js.map +1 -0
  739. package/dist/core/p-abb7780e.entry.js +2 -0
  740. package/dist/core/p-abb7780e.entry.js.map +1 -0
  741. package/dist/core/p-bd2df430.entry.js +2 -0
  742. package/dist/core/p-bd2df430.entry.js.map +1 -0
  743. package/dist/core/p-bd389bfd.entry.js +2 -0
  744. package/dist/core/p-bd389bfd.entry.js.map +1 -0
  745. package/dist/core/{p-7387370c.entry.js → p-be9af807.entry.js} +2 -2
  746. package/dist/core/p-be9af807.entry.js.map +1 -0
  747. package/dist/core/p-bf573a56.entry.js +2 -0
  748. package/dist/core/p-bf573a56.entry.js.map +1 -0
  749. package/dist/core/p-c1b9f1ab.entry.js +2 -0
  750. package/dist/core/p-c1b9f1ab.entry.js.map +1 -0
  751. package/dist/core/{p-01bc645f.entry.js → p-c21bc8f9.entry.js} +2 -2
  752. package/dist/core/p-c21bc8f9.entry.js.map +1 -0
  753. package/dist/core/{p-dec65494.entry.js → p-c4734357.entry.js} +2 -2
  754. package/dist/core/p-c4734357.entry.js.map +1 -0
  755. package/dist/core/p-c6b55c0a.entry.js.map +1 -1
  756. package/dist/core/p-cd163299.entry.js +2 -0
  757. package/dist/core/p-cd163299.entry.js.map +1 -0
  758. package/dist/core/p-d43959a0.entry.js +2 -0
  759. package/dist/core/p-d43959a0.entry.js.map +1 -0
  760. package/dist/core/p-d9c574f0.entry.js +2 -0
  761. package/dist/core/p-d9c574f0.entry.js.map +1 -0
  762. package/dist/core/p-da997fb3.entry.js +2 -0
  763. package/dist/core/p-da997fb3.entry.js.map +1 -0
  764. package/dist/core/{p-017d6340.entry.js → p-db860031.entry.js} +2 -2
  765. package/dist/core/p-db860031.entry.js.map +1 -0
  766. package/dist/core/p-def34832.entry.js +2 -0
  767. package/dist/core/p-def34832.entry.js.map +1 -0
  768. package/dist/core/p-e30968b3.entry.js +2 -0
  769. package/dist/core/p-e30968b3.entry.js.map +1 -0
  770. package/dist/core/{p-e1b2af6b.entry.js → p-e39e5dc7.entry.js} +2 -2
  771. package/dist/core/p-e39e5dc7.entry.js.map +1 -0
  772. package/dist/core/p-eb3f6808.entry.js +2 -0
  773. package/dist/core/p-eb3f6808.entry.js.map +1 -0
  774. package/dist/core/{p-f58a20af.entry.js → p-eb766437.entry.js} +2 -2
  775. package/dist/core/p-eb766437.entry.js.map +1 -0
  776. package/dist/core/{p-495e25d8.entry.js → p-f3887d6d.entry.js} +2 -2
  777. package/dist/core/p-f3887d6d.entry.js.map +1 -0
  778. package/dist/core/p-f7bdb44a.entry.js.map +1 -1
  779. package/dist/core/p-fca7a0d6.entry.js +2 -0
  780. package/dist/core/p-fca7a0d6.entry.js.map +1 -0
  781. package/dist/core/p-vN03FcXN.js.map +1 -1
  782. package/dist/esm/Fragment-5itQzbON.js.map +1 -1
  783. package/dist/esm/accessibility-wqNV8djF.js.map +1 -1
  784. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  785. package/dist/esm/array.utils-CJ0U_ONv.js.map +1 -1
  786. package/dist/esm/attribute-Bz_RzYFb.js.map +1 -1
  787. package/dist/esm/colors-U40vKHrs.js.map +1 -1
  788. package/dist/esm/constants-BNBB_29K.js.map +1 -1
  789. package/dist/esm/constants-BegH8u6i.js.map +1 -1
  790. package/dist/esm/constants-BiWo5BNa.js.map +1 -1
  791. package/dist/esm/constants-CysDgoMA.js.map +1 -1
  792. package/dist/esm/constants-DHvN41Ek.js.map +1 -1
  793. package/dist/esm/constants-DbTQsVRc.js.map +1 -1
  794. package/dist/esm/constants-Du0ZtfYe.js.map +1 -1
  795. package/dist/esm/constants-Q99QrOoi.js.map +1 -1
  796. package/dist/esm/constants-YOtDGTm5.js.map +1 -1
  797. package/dist/esm/constants-aqe7GX2n.js.map +1 -1
  798. package/dist/esm/constants-oYp2tkdN.js.map +1 -1
  799. package/dist/esm/form-DvhJiKwA.js.map +1 -1
  800. package/dist/esm/gov-accordion-item.entry.js +3 -3
  801. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  802. package/dist/esm/gov-accordion.entry.js +1 -1
  803. package/dist/esm/gov-accordion.entry.js.map +1 -1
  804. package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +1 -1
  805. package/dist/esm/gov-attachments_3.entry.js +3 -3
  806. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  807. package/dist/esm/gov-backdrop.entry.js +1 -1
  808. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  809. package/dist/esm/gov-banner.entry.js +2 -2
  810. package/dist/esm/gov-banner.entry.js.map +1 -1
  811. package/dist/esm/gov-blockquote.entry.js +1 -1
  812. package/dist/esm/gov-blockquote.entry.js.map +1 -1
  813. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  814. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  815. package/dist/esm/gov-button.entry.js +3 -3
  816. package/dist/esm/gov-button.entry.js.map +1 -1
  817. package/dist/esm/gov-card.entry.js +1 -1
  818. package/dist/esm/gov-card.entry.js.map +1 -1
  819. package/dist/esm/gov-chip.entry.js +2 -2
  820. package/dist/esm/gov-chip.entry.js.map +1 -1
  821. package/dist/esm/gov-collapsible.entry.js +2 -2
  822. package/dist/esm/gov-collapsible.entry.js.map +1 -1
  823. package/dist/esm/gov-container.entry.js +1 -1
  824. package/dist/esm/gov-container.entry.js.map +1 -1
  825. package/dist/esm/gov-control-group.entry.js +1 -1
  826. package/dist/esm/gov-control-group.entry.js.map +1 -1
  827. package/dist/esm/gov-cookiebar.entry.js +1 -1
  828. package/dist/esm/gov-cookiebar.entry.js.map +1 -1
  829. package/dist/esm/gov-dialog.entry.js +1 -1
  830. package/dist/esm/gov-dialog.entry.js.map +1 -1
  831. package/dist/esm/gov-dropdown.entry.js +1 -1
  832. package/dist/esm/gov-dropdown.entry.js.map +1 -1
  833. package/dist/esm/gov-empty.entry.js +1 -1
  834. package/dist/esm/gov-empty.entry.js.map +1 -1
  835. package/dist/esm/gov-error-code.entry.js +1 -1
  836. package/dist/esm/gov-error-code.entry.js.map +1 -1
  837. package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +1 -1
  838. package/dist/esm/gov-flex_3.entry.js +3 -3
  839. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  840. package/dist/esm/gov-form-autocomplete.entry.js +1 -1
  841. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  842. package/dist/esm/gov-form-checkbox-group.entry.js +1 -1
  843. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  844. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  845. package/dist/esm/gov-form-control.entry.js +1 -1
  846. package/dist/esm/gov-form-control.entry.js.map +1 -1
  847. package/dist/esm/gov-form-file.entry.js +1 -1
  848. package/dist/esm/gov-form-file.entry.js.map +1 -1
  849. package/dist/esm/gov-form-group.entry.js +1 -1
  850. package/dist/esm/gov-form-group.entry.js.map +1 -1
  851. package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +1 -1
  852. package/dist/esm/gov-form-input_2.entry.js +6 -6
  853. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  854. package/dist/esm/gov-form-label.entry.js +1 -1
  855. package/dist/esm/gov-form-label.entry.js.map +1 -1
  856. package/dist/esm/gov-form-multi-select.entry.js +2 -2
  857. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  858. package/dist/esm/gov-form-password-power.entry.js +1 -1
  859. package/dist/esm/gov-form-password-power.entry.js.map +1 -1
  860. package/dist/esm/gov-form-radio-group.entry.js +1 -1
  861. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  862. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  863. package/dist/esm/gov-form-range.entry.js +2 -2
  864. package/dist/esm/gov-form-range.entry.js.map +1 -1
  865. package/dist/esm/gov-form-search.entry.js +1 -1
  866. package/dist/esm/gov-form-search.entry.js.map +1 -1
  867. package/dist/esm/gov-form-select.entry.js +2 -2
  868. package/dist/esm/gov-form-select.entry.js.map +1 -1
  869. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  870. package/dist/esm/gov-grid-item.entry.js +1 -1
  871. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  872. package/dist/esm/gov-grid.entry.js +1 -1
  873. package/dist/esm/gov-grid.entry.js.map +1 -1
  874. package/dist/esm/gov-infobar.entry.js +2 -2
  875. package/dist/esm/gov-infobar.entry.js.map +1 -1
  876. package/dist/esm/gov-layout-column.entry.js +1 -1
  877. package/dist/esm/gov-layout-column.entry.js.map +1 -1
  878. package/dist/esm/gov-layout.entry.js +1 -1
  879. package/dist/esm/gov-layout.entry.js.map +1 -1
  880. package/dist/esm/gov-lifecycle.entry.js +1 -1
  881. package/dist/esm/gov-lifecycle.entry.js.map +1 -1
  882. package/dist/esm/gov-link.entry.js +1 -1
  883. package/dist/esm/gov-link.entry.js.map +1 -1
  884. package/dist/esm/gov-loading.entry.js +1 -1
  885. package/dist/esm/gov-loading.entry.js.map +1 -1
  886. package/dist/esm/gov-message.entry.js +1 -1
  887. package/dist/esm/gov-message.entry.js.map +1 -1
  888. package/dist/esm/gov-pagination.entry.js.map +1 -1
  889. package/dist/esm/gov-spacer.entry.js +1 -1
  890. package/dist/esm/gov-spacer.entry.js.map +1 -1
  891. package/dist/esm/gov-stepper-item.entry.js +1 -1
  892. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  893. package/dist/esm/gov-stepper.entry.js +1 -1
  894. package/dist/esm/gov-stepper.entry.js.map +1 -1
  895. package/dist/esm/gov-tabs-item.entry.js +1 -1
  896. package/dist/esm/gov-tabs-item.entry.js.map +1 -1
  897. package/dist/esm/gov-tabs.entry.js +1 -1
  898. package/dist/esm/gov-tabs.entry.js.map +1 -1
  899. package/dist/esm/gov-tag.entry.js +1 -1
  900. package/dist/esm/gov-tag.entry.js.map +1 -1
  901. package/dist/esm/gov-tile.entry.js +1 -1
  902. package/dist/esm/gov-tile.entry.js.map +1 -1
  903. package/dist/esm/gov-toast.entry.js +1 -1
  904. package/dist/esm/gov-toast.entry.js.map +1 -1
  905. package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +1 -1
  906. package/dist/esm/gov-tooltip_2.entry.js +3 -3
  907. package/dist/esm/gov-tooltip_2.entry.js.map +1 -1
  908. package/dist/esm/gov-wizard-item.entry.js +2 -2
  909. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  910. package/dist/esm/gov-wizard.entry.js +1 -1
  911. package/dist/esm/gov-wizard.entry.js.map +1 -1
  912. package/dist/esm/gov.log-BtqD9K8d.js.map +1 -1
  913. package/dist/esm/helpers-GYov8gU1.js.map +1 -1
  914. package/dist/esm/helpers.types-DNztiAH0.js.map +1 -1
  915. package/dist/esm/props-CJZgTDla.js.map +1 -1
  916. package/dist/esm/sizes-BcQO4NH2.js.map +1 -1
  917. package/dist/esm/stencil.utils-Cjg0wpDG.js.map +1 -1
  918. package/dist/esm/string.utils-vN03FcXN.js.map +1 -1
  919. package/dist/esm/template-CoD1xawt.js.map +1 -1
  920. package/dist/esm/utils-CQvUntGY.js.map +1 -1
  921. package/dist/esm/wcag-CD6_13JO.js.map +1 -1
  922. package/dist/globals.d.ts +2 -2
  923. package/dist/hydrate/index.js +75 -75
  924. package/dist/hydrate/index.mjs +75 -75
  925. package/dist/stencil.config.js.map +1 -1
  926. package/dist/types/interfaces.d.ts +1 -1
  927. package/dist/types/types/typings.d.ts +6 -6
  928. package/dist/types/work/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  929. package/package.json +29 -29
  930. package/dist/components/p-2_-up8FX.js.map +0 -1
  931. package/dist/components/p-9VlKyZSl.js.map +0 -1
  932. package/dist/components/p-BJnSrRNH.js.map +0 -1
  933. package/dist/components/p-Ba8Z-AIX.js.map +0 -1
  934. package/dist/components/p-BnxqJyb_.js +0 -2
  935. package/dist/components/p-BnxqJyb_.js.map +0 -1
  936. package/dist/components/p-CJnwyVlG.js +0 -2
  937. package/dist/components/p-CJnwyVlG.js.map +0 -1
  938. package/dist/components/p-CWqMiVYH.js.map +0 -1
  939. package/dist/components/p-CgXcNDpE.js +0 -2
  940. package/dist/components/p-CgXcNDpE.js.map +0 -1
  941. package/dist/components/p-D8QfVS4O.js.map +0 -1
  942. package/dist/components/p-DW1DKFMF.js.map +0 -1
  943. package/dist/components/p-DZJk8GrA.js.map +0 -1
  944. package/dist/components/p-DhGb8cBK.js.map +0 -1
  945. package/dist/components/p-_FzmpyXv.js.map +0 -1
  946. package/dist/core/p-017d6340.entry.js.map +0 -1
  947. package/dist/core/p-01bc645f.entry.js.map +0 -1
  948. package/dist/core/p-0e06af2b.entry.js +0 -2
  949. package/dist/core/p-0e06af2b.entry.js.map +0 -1
  950. package/dist/core/p-1375d52d.entry.js.map +0 -1
  951. package/dist/core/p-264cbd4e.entry.js +0 -2
  952. package/dist/core/p-264cbd4e.entry.js.map +0 -1
  953. package/dist/core/p-2cfa670d.entry.js.map +0 -1
  954. package/dist/core/p-33a62c22.entry.js +0 -2
  955. package/dist/core/p-33a62c22.entry.js.map +0 -1
  956. package/dist/core/p-37f6095e.entry.js.map +0 -1
  957. package/dist/core/p-3cf20b56.entry.js +0 -2
  958. package/dist/core/p-3cf20b56.entry.js.map +0 -1
  959. package/dist/core/p-46effc25.entry.js.map +0 -1
  960. package/dist/core/p-495e25d8.entry.js.map +0 -1
  961. package/dist/core/p-4aea131f.entry.js +0 -2
  962. package/dist/core/p-4aea131f.entry.js.map +0 -1
  963. package/dist/core/p-4ce8e721.entry.js +0 -2
  964. package/dist/core/p-4ce8e721.entry.js.map +0 -1
  965. package/dist/core/p-5283672a.entry.js +0 -2
  966. package/dist/core/p-5283672a.entry.js.map +0 -1
  967. package/dist/core/p-54209c57.entry.js +0 -2
  968. package/dist/core/p-54209c57.entry.js.map +0 -1
  969. package/dist/core/p-56dc11ba.entry.js +0 -2
  970. package/dist/core/p-56dc11ba.entry.js.map +0 -1
  971. package/dist/core/p-58911028.entry.js +0 -2
  972. package/dist/core/p-58911028.entry.js.map +0 -1
  973. package/dist/core/p-617b0dbe.entry.js +0 -2
  974. package/dist/core/p-617b0dbe.entry.js.map +0 -1
  975. package/dist/core/p-6781bfc0.entry.js +0 -2
  976. package/dist/core/p-6781bfc0.entry.js.map +0 -1
  977. package/dist/core/p-67d1e6e2.entry.js.map +0 -1
  978. package/dist/core/p-6e42a12a.entry.js +0 -2
  979. package/dist/core/p-6e42a12a.entry.js.map +0 -1
  980. package/dist/core/p-6f173022.entry.js.map +0 -1
  981. package/dist/core/p-7099beb0.entry.js +0 -2
  982. package/dist/core/p-7099beb0.entry.js.map +0 -1
  983. package/dist/core/p-715c0e2e.entry.js.map +0 -1
  984. package/dist/core/p-7387370c.entry.js.map +0 -1
  985. package/dist/core/p-768fe015.entry.js +0 -2
  986. package/dist/core/p-768fe015.entry.js.map +0 -1
  987. package/dist/core/p-7a3d4b6b.entry.js +0 -2
  988. package/dist/core/p-7a3d4b6b.entry.js.map +0 -1
  989. package/dist/core/p-7f4cf2f9.entry.js +0 -2
  990. package/dist/core/p-7f4cf2f9.entry.js.map +0 -1
  991. package/dist/core/p-8161e1fe.entry.js.map +0 -1
  992. package/dist/core/p-820eb0fb.entry.js +0 -2
  993. package/dist/core/p-820eb0fb.entry.js.map +0 -1
  994. package/dist/core/p-8655fd24.entry.js.map +0 -1
  995. package/dist/core/p-8f6172d4.entry.js +0 -2
  996. package/dist/core/p-8f6172d4.entry.js.map +0 -1
  997. package/dist/core/p-90cd5ffe.entry.js +0 -2
  998. package/dist/core/p-90cd5ffe.entry.js.map +0 -1
  999. package/dist/core/p-98314c19.entry.js +0 -2
  1000. package/dist/core/p-98314c19.entry.js.map +0 -1
  1001. package/dist/core/p-ac962619.entry.js +0 -2
  1002. package/dist/core/p-ac962619.entry.js.map +0 -1
  1003. package/dist/core/p-ae6d0bcd.entry.js +0 -2
  1004. package/dist/core/p-ae6d0bcd.entry.js.map +0 -1
  1005. package/dist/core/p-b3b517f0.entry.js.map +0 -1
  1006. package/dist/core/p-b7306a6f.entry.js +0 -2
  1007. package/dist/core/p-b7306a6f.entry.js.map +0 -1
  1008. package/dist/core/p-b93548cc.entry.js.map +0 -1
  1009. package/dist/core/p-be3bbe06.entry.js +0 -2
  1010. package/dist/core/p-be3bbe06.entry.js.map +0 -1
  1011. package/dist/core/p-cf06a38b.entry.js +0 -2
  1012. package/dist/core/p-cf06a38b.entry.js.map +0 -1
  1013. package/dist/core/p-dec65494.entry.js.map +0 -1
  1014. package/dist/core/p-df09f0be.entry.js +0 -2
  1015. package/dist/core/p-df09f0be.entry.js.map +0 -1
  1016. package/dist/core/p-e0634fae.entry.js +0 -2
  1017. package/dist/core/p-e0634fae.entry.js.map +0 -1
  1018. package/dist/core/p-e1b2af6b.entry.js.map +0 -1
  1019. package/dist/core/p-e29cd545.entry.js +0 -2
  1020. package/dist/core/p-e29cd545.entry.js.map +0 -1
  1021. package/dist/core/p-e5e7abe0.entry.js +0 -2
  1022. package/dist/core/p-e5e7abe0.entry.js.map +0 -1
  1023. package/dist/core/p-e7f889c7.entry.js.map +0 -1
  1024. package/dist/core/p-ebd3d25f.entry.js +0 -2
  1025. package/dist/core/p-ebd3d25f.entry.js.map +0 -1
  1026. package/dist/core/p-f067af74.entry.js.map +0 -1
  1027. package/dist/core/p-f58a20af.entry.js.map +0 -1
  1028. package/dist/core/p-fe3bd57c.entry.js +0 -2
  1029. package/dist/core/p-fe3bd57c.entry.js.map +0 -1
  1030. package/dist/dist/components/gov-accordion-item.d.ts +0 -11
  1031. package/dist/dist/components/gov-accordion.d.ts +0 -11
  1032. package/dist/dist/components/gov-app.d.ts +0 -11
  1033. package/dist/dist/components/gov-attachments-item.d.ts +0 -11
  1034. package/dist/dist/components/gov-attachments.d.ts +0 -11
  1035. package/dist/dist/components/gov-backdrop.d.ts +0 -11
  1036. package/dist/dist/components/gov-banner.d.ts +0 -11
  1037. package/dist/dist/components/gov-blockquote.d.ts +0 -11
  1038. package/dist/dist/components/gov-breadcrumbs.d.ts +0 -11
  1039. package/dist/dist/components/gov-button.d.ts +0 -11
  1040. package/dist/dist/components/gov-card.d.ts +0 -11
  1041. package/dist/dist/components/gov-chip.d.ts +0 -11
  1042. package/dist/dist/components/gov-collapsible.d.ts +0 -11
  1043. package/dist/dist/components/gov-container.d.ts +0 -11
  1044. package/dist/dist/components/gov-control-group.d.ts +0 -11
  1045. package/dist/dist/components/gov-cookiebar.d.ts +0 -11
  1046. package/dist/dist/components/gov-dialog.d.ts +0 -11
  1047. package/dist/dist/components/gov-dropdown.d.ts +0 -11
  1048. package/dist/dist/components/gov-empty.d.ts +0 -11
  1049. package/dist/dist/components/gov-error-code.d.ts +0 -11
  1050. package/dist/dist/components/gov-flex.d.ts +0 -11
  1051. package/dist/dist/components/gov-form-autocomplete.d.ts +0 -11
  1052. package/dist/dist/components/gov-form-checkbox-group.d.ts +0 -11
  1053. package/dist/dist/components/gov-form-checkbox.d.ts +0 -11
  1054. package/dist/dist/components/gov-form-control.d.ts +0 -11
  1055. package/dist/dist/components/gov-form-file.d.ts +0 -11
  1056. package/dist/dist/components/gov-form-group.d.ts +0 -11
  1057. package/dist/dist/components/gov-form-input.d.ts +0 -11
  1058. package/dist/dist/components/gov-form-label.d.ts +0 -11
  1059. package/dist/dist/components/gov-form-message.d.ts +0 -11
  1060. package/dist/dist/components/gov-form-multi-select.d.ts +0 -11
  1061. package/dist/dist/components/gov-form-password-power.d.ts +0 -11
  1062. package/dist/dist/components/gov-form-radio-group.d.ts +0 -11
  1063. package/dist/dist/components/gov-form-radio.d.ts +0 -11
  1064. package/dist/dist/components/gov-form-range.d.ts +0 -11
  1065. package/dist/dist/components/gov-form-search.d.ts +0 -11
  1066. package/dist/dist/components/gov-form-select.d.ts +0 -11
  1067. package/dist/dist/components/gov-form-switch.d.ts +0 -11
  1068. package/dist/dist/components/gov-grid-item.d.ts +0 -11
  1069. package/dist/dist/components/gov-grid.d.ts +0 -11
  1070. package/dist/dist/components/gov-icon.d.ts +0 -11
  1071. package/dist/dist/components/gov-infobar.d.ts +0 -11
  1072. package/dist/dist/components/gov-layout-column.d.ts +0 -11
  1073. package/dist/dist/components/gov-layout.d.ts +0 -11
  1074. package/dist/dist/components/gov-lifecycle.d.ts +0 -11
  1075. package/dist/dist/components/gov-link.d.ts +0 -11
  1076. package/dist/dist/components/gov-loading.d.ts +0 -11
  1077. package/dist/dist/components/gov-message.d.ts +0 -11
  1078. package/dist/dist/components/gov-pagination.d.ts +0 -11
  1079. package/dist/dist/components/gov-skeleton.d.ts +0 -11
  1080. package/dist/dist/components/gov-spacer.d.ts +0 -11
  1081. package/dist/dist/components/gov-stepper-item.d.ts +0 -11
  1082. package/dist/dist/components/gov-stepper.d.ts +0 -11
  1083. package/dist/dist/components/gov-tabs-item.d.ts +0 -11
  1084. package/dist/dist/components/gov-tabs.d.ts +0 -11
  1085. package/dist/dist/components/gov-tag.d.ts +0 -11
  1086. package/dist/dist/components/gov-theme-switch.d.ts +0 -11
  1087. package/dist/dist/components/gov-tile.d.ts +0 -11
  1088. package/dist/dist/components/gov-toast.d.ts +0 -11
  1089. package/dist/dist/components/gov-tooltip-content.d.ts +0 -11
  1090. package/dist/dist/components/gov-tooltip.d.ts +0 -11
  1091. package/dist/dist/components/gov-wizard-item.d.ts +0 -11
  1092. package/dist/dist/components/gov-wizard.d.ts +0 -11
  1093. package/dist/dist/components/index.d.ts +0 -33
  1094. package/dist/dist/dist/components/index.d.ts +0 -33
  1095. package/dist/dist/dist/globals.d.ts +0 -2
  1096. package/dist/dist/dist/hydrate/index.d.ts +0 -273
  1097. package/dist/dist/dist/types/interfaces.d.ts +0 -1
  1098. package/dist/dist/dist/types/stencil-public-runtime.d.ts +0 -1702
  1099. package/dist/dist/globals.d.ts +0 -2
  1100. package/dist/dist/hydrate/index.d.ts +0 -273
  1101. package/dist/dist/types/components/gov-accordion/constants.d.ts +0 -19
  1102. package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +0 -43
  1103. package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +0 -26
  1104. package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +0 -9
  1105. package/dist/dist/types/components/gov-attachments/constants.d.ts +0 -11
  1106. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +0 -4
  1107. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +0 -24
  1108. package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +0 -19
  1109. package/dist/dist/types/components/gov-backdrop/constants.d.ts +0 -4
  1110. package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +0 -32
  1111. package/dist/dist/types/components/gov-banner/constants.d.ts +0 -26
  1112. package/dist/dist/types/components/gov-banner/gov-banner.d.ts +0 -28
  1113. package/dist/dist/types/components/gov-blockquote/constants.d.ts +0 -10
  1114. package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +0 -15
  1115. package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +0 -3
  1116. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +0 -4
  1117. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +0 -42
  1118. package/dist/dist/types/components/gov-button/button/constants.d.ts +0 -29
  1119. package/dist/dist/types/components/gov-button/button/gov-button.d.ts +0 -133
  1120. package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +0 -4
  1121. package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +0 -10
  1122. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +0 -40
  1123. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +0 -4
  1124. package/dist/dist/types/components/gov-card/constants.d.ts +0 -16
  1125. package/dist/dist/types/components/gov-card/gov-card.d.ts +0 -57
  1126. package/dist/dist/types/components/gov-card/interfaces.d.ts +0 -4
  1127. package/dist/dist/types/components/gov-chip/constants.d.ts +0 -21
  1128. package/dist/dist/types/components/gov-chip/gov-chip.d.ts +0 -82
  1129. package/dist/dist/types/components/gov-collapsible/constants.d.ts +0 -18
  1130. package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +0 -36
  1131. package/dist/dist/types/components/gov-container/constants.d.ts +0 -3
  1132. package/dist/dist/types/components/gov-container/gov-container.d.ts +0 -6
  1133. package/dist/dist/types/components/gov-control-group/constants.d.ts +0 -7
  1134. package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +0 -24
  1135. package/dist/dist/types/components/gov-cookiebar/constants.d.ts +0 -7
  1136. package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +0 -7
  1137. package/dist/dist/types/components/gov-dialog/constants.d.ts +0 -11
  1138. package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +0 -70
  1139. package/dist/dist/types/components/gov-empty/constants.d.ts +0 -19
  1140. package/dist/dist/types/components/gov-empty/gov-empty.d.ts +0 -21
  1141. package/dist/dist/types/components/gov-error-code/constants.d.ts +0 -4
  1142. package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +0 -6
  1143. package/dist/dist/types/components/gov-flex/constants.d.ts +0 -7
  1144. package/dist/dist/types/components/gov-flex/gov-flex.d.ts +0 -39
  1145. package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +0 -11
  1146. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -149
  1147. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +0 -9
  1148. package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +0 -10
  1149. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +0 -86
  1150. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +0 -5
  1151. package/dist/dist/types/components/gov-form/control/constants.d.ts +0 -9
  1152. package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +0 -40
  1153. package/dist/dist/types/components/gov-form/file/constants.d.ts +0 -7
  1154. package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -129
  1155. package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +0 -11
  1156. package/dist/dist/types/components/gov-form/group/constants.d.ts +0 -18
  1157. package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +0 -32
  1158. package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +0 -18
  1159. package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +0 -7
  1160. package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +0 -32
  1161. package/dist/dist/types/components/gov-form/input/constants.d.ts +0 -28
  1162. package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +0 -178
  1163. package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +0 -4
  1164. package/dist/dist/types/components/gov-form/label/constants.d.ts +0 -8
  1165. package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +0 -26
  1166. package/dist/dist/types/components/gov-form/message/constants.d.ts +0 -11
  1167. package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +0 -23
  1168. package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +0 -10
  1169. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -127
  1170. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +0 -10
  1171. package/dist/dist/types/components/gov-form/password-power/constants.d.ts +0 -5
  1172. package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +0 -7
  1173. package/dist/dist/types/components/gov-form/radio/constants.d.ts +0 -10
  1174. package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +0 -83
  1175. package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +0 -5
  1176. package/dist/dist/types/components/gov-form/range/constants.d.ts +0 -9
  1177. package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +0 -116
  1178. package/dist/dist/types/components/gov-form/search/constants.d.ts +0 -10
  1179. package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +0 -13
  1180. package/dist/dist/types/components/gov-form/select/constants.d.ts +0 -8
  1181. package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +0 -89
  1182. package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +0 -9
  1183. package/dist/dist/types/components/gov-form/switch/constants.d.ts +0 -12
  1184. package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +0 -81
  1185. package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +0 -5
  1186. package/dist/dist/types/components/gov-grid/constants.d.ts +0 -10
  1187. package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +0 -46
  1188. package/dist/dist/types/components/gov-grid/gov-grid.d.ts +0 -19
  1189. package/dist/dist/types/components/gov-icon/constants.d.ts +0 -18
  1190. package/dist/dist/types/components/gov-icon/gov-icon.d.ts +0 -34
  1191. package/dist/dist/types/components/gov-icon/helpers.d.ts +0 -6
  1192. package/dist/dist/types/components/gov-icon/list.d.ts +0 -3
  1193. package/dist/dist/types/components/gov-infobar/constants.d.ts +0 -16
  1194. package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +0 -51
  1195. package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +0 -4
  1196. package/dist/dist/types/components/gov-layout/constants.d.ts +0 -20
  1197. package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +0 -6
  1198. package/dist/dist/types/components/gov-layout/gov-layout.d.ts +0 -20
  1199. package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +0 -14
  1200. package/dist/dist/types/components/gov-link/constants.d.ts +0 -8
  1201. package/dist/dist/types/components/gov-link/gov-link.d.ts +0 -34
  1202. package/dist/dist/types/components/gov-loading/loading/constants.d.ts +0 -9
  1203. package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +0 -13
  1204. package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +0 -21
  1205. package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +0 -46
  1206. package/dist/dist/types/components/gov-message/constants.d.ts +0 -13
  1207. package/dist/dist/types/components/gov-message/gov-message.d.ts +0 -16
  1208. package/dist/dist/types/components/gov-pagination/constants.d.ts +0 -22
  1209. package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +0 -97
  1210. package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +0 -5
  1211. package/dist/dist/types/components/gov-pagination/pagination.d.ts +0 -12
  1212. package/dist/dist/types/components/gov-spacer/constants.d.ts +0 -15
  1213. package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +0 -18
  1214. package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +0 -21
  1215. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +0 -4
  1216. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +0 -31
  1217. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +0 -22
  1218. package/dist/dist/types/components/gov-tabs/constants.d.ts +0 -28
  1219. package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +0 -54
  1220. package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +0 -70
  1221. package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +0 -14
  1222. package/dist/dist/types/components/gov-tag/constants.d.ts +0 -12
  1223. package/dist/dist/types/components/gov-tag/gov-tag.d.ts +0 -35
  1224. package/dist/dist/types/components/gov-theme-switch/constants.d.ts +0 -12
  1225. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +0 -46
  1226. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +0 -10
  1227. package/dist/dist/types/components/gov-tile/constants.d.ts +0 -13
  1228. package/dist/dist/types/components/gov-tile/gov-tile.d.ts +0 -34
  1229. package/dist/dist/types/components/gov-toast/constants.d.ts +0 -17
  1230. package/dist/dist/types/components/gov-toast/gov-toast.d.ts +0 -58
  1231. package/dist/dist/types/components/gov-tooltip/constants.d.ts +0 -20
  1232. package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +0 -28
  1233. package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +0 -58
  1234. package/dist/dist/types/components/gov-wizard/constants.d.ts +0 -19
  1235. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +0 -4
  1236. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +0 -60
  1237. package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +0 -4
  1238. package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +0 -35
  1239. package/dist/dist/types/core/constants/colors.d.ts +0 -13
  1240. package/dist/dist/types/core/constants/sizes.d.ts +0 -13
  1241. package/dist/dist/types/core/constants/tags.d.ts +0 -12
  1242. package/dist/dist/types/core/constants/tokens.d.ts +0 -1
  1243. package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +0 -1
  1244. package/dist/dist/types/helpers/Accessibility/attributes.d.ts +0 -1
  1245. package/dist/dist/types/helpers/Dom/attribute.d.ts +0 -13
  1246. package/dist/dist/types/helpers/Dom/document.d.ts +0 -4
  1247. package/dist/dist/types/helpers/Dom/form.d.ts +0 -3
  1248. package/dist/dist/types/helpers/Dom/form.types.d.ts +0 -11
  1249. package/dist/dist/types/helpers/Dom/template.d.ts +0 -10
  1250. package/dist/dist/types/helpers/Dom/template.types.d.ts +0 -14
  1251. package/dist/dist/types/helpers/Dom/win.d.ts +0 -18
  1252. package/dist/dist/types/helpers/Fragment.d.ts +0 -2
  1253. package/dist/dist/types/helpers/Log/gov.log.d.ts +0 -8
  1254. package/dist/dist/types/helpers/Validate/props.d.ts +0 -1
  1255. package/dist/dist/types/helpers/Validate/wcag.d.ts +0 -4
  1256. package/dist/dist/types/index.d.ts +0 -0
  1257. package/dist/dist/types/interfaces.d.ts +0 -1
  1258. package/dist/dist/types/stencil-public-runtime.d.ts +0 -1702
  1259. package/dist/dist/types/types/event.types.d.ts +0 -4
  1260. package/dist/dist/types/types/interfaces.d.ts +0 -2
  1261. package/dist/dist/types/types/typings.d.ts +0 -6
  1262. package/dist/dist/types/utils/array.utils.d.ts +0 -2
  1263. package/dist/dist/types/utils/bool.utils.d.ts +0 -1
  1264. package/dist/dist/types/utils/dom.utils.d.ts +0 -1
  1265. package/dist/dist/types/utils/ds.utils.d.ts +0 -1
  1266. package/dist/dist/types/utils/file.utils.d.ts +0 -3
  1267. package/dist/dist/types/utils/helpers.types.d.ts +0 -49
  1268. package/dist/dist/types/utils/icon.utils.d.ts +0 -4
  1269. package/dist/dist/types/utils/number.utils.d.ts +0 -1
  1270. package/dist/dist/types/utils/object.utils.d.ts +0 -2
  1271. package/dist/dist/types/utils/stencil.utils.d.ts +0 -1
  1272. package/dist/dist/types/utils/string.utils.d.ts +0 -4
  1273. package/dist/dist/types/utils/utils.d.ts +0 -20
  1274. package/dist/types/Users/KameraT/Desktop/Projects/DIA/Sarka/designSystemFinal/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
@@ -30,7 +30,7 @@ export class GovStepperItem {
30
30
  render() {
31
31
  const triggerId = this.identifier || this.triggerId;
32
32
  const contentId = this.contentId;
33
- return (h(Host, { key: '609a7f8b92363c1de962f2260d36fc674bd4c193', id: triggerId, class: this.h.classes(StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, h("div", { key: '5afa6db421d268ff22727bedff02fe7e37273b7c' }, h("div", { key: 'f09a6804198fbf9a37b0553bf0539e26dd28d9f4', class: StepperItemClass.steps }, h("span", { key: 'e9f495a434501d1b5f7ac65fb757cca181156814' }), h("span", { key: 'bb3b4bd8d1e613090f9e369a72c20e04eeaad1a9', class: StepperItemClass.prefix }, h("slot", { key: '5d8ee1538f9232cc62d76b1aa2497195732c0b7f', name: "prefix" })), h("span", { key: 'cb3c58492c7190ae67770ed411bf154e831573ca' })), h("div", { key: '5747894f97b0ff23250ead28081410404bfbd0a8', class: StepperItemClass.main }, h("span", { key: '801116e18ad8b6543ceb9106195f5baed23170ee', class: StepperItemClass.headline }, h("slot", { key: '5e032e03983befdeddfa82f3756b7677549cfd53', name: "headline" })), h("slot", { key: '81ae890926e9966125ef3869da9c0230faf7b8a7', name: "annotation" }), this.h.hasSlot('content') && (h("div", { key: '4c1bd6e0144a7fd3c8457de9ca2332289a5b86cb', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, h("slot", { key: 'a8122225841c58776cde45f4a5e61292a2bab389', name: "content" })))))));
33
+ return (h(Host, { key: '126275cd984137b2c6d6cc5bdd2074adf14cee7b', id: triggerId, class: this.h.classes(StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, h("div", { key: '15c1f0a0d533cd5473611b388590a6af94755ab9' }, h("div", { key: '85535167b5359d00e773ffac3aa64ae95d9a005a', class: StepperItemClass.steps }, h("span", { key: '37558ddd120824a5f234503b8cfb673352f642e1' }), h("span", { key: '647d2862b31d2e6e1c51f90e0cbf8eb76af9f5a8', class: StepperItemClass.prefix }, h("slot", { key: 'c58b03ec979eafc5db766c0134def19cbe2582d1', name: "prefix" })), h("span", { key: 'c294e1f9af11588960c8ccf5d16186eb2e57cc74' })), h("div", { key: 'ca82d4d7c0617f0c13de80c5a4247d8f9cd3d2e7', class: StepperItemClass.main }, h("span", { key: '6d1cb25eca0517abcb0557579eab240beaff7557', class: StepperItemClass.headline }, h("slot", { key: '3ef65e410481935cab120087b9454be9ce16ac1a', name: "headline" })), h("slot", { key: '8b7f8674a3347b2b51987ec7054835a8db203df8', name: "annotation" }), this.h.hasSlot('content') && (h("div", { key: '208b1c3d7f235748a04f4c31d525263aad01c90e', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, h("slot", { key: '9b68d8eb8c095fd45b741fe2398d957b589fbd94', name: "content" })))))));
34
34
  }
35
35
  static get is() { return "gov-stepper-item"; }
36
36
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"gov-stepper-item.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-stepper/stepper/gov-stepper-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAA;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAoB,gBAAgB,EAAoB,aAAa,EAAE,MAAM,aAAa,CAAA;AACjG,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAOvD,MAAM,OAAO,cAAc;IAM1B;QAFQ,aAAQ,GAAG,KAAK,CAAA;QAUxB;;WAEG;QACc,UAAK,GAAsB,SAAS,CAAA;QACrD;;WAEG;QACc,SAAI,GAAsB,GAAG,CAAA;QAd7C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAA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C7E,IAAI,EAAC,UAAU;wBAChB,6DAAM,IAAI,EAAC,SAAS,GAAE,CACjB,CACN,CACI,CACD,CACA,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Prop, Watch, Host, Event, EventEmitter } from '@stencil/core'\r\nimport { validateProp } from '../../../helpers/Validate/props'\r\nimport { StepperSizesType, StepperItemClass, StepperColorType, StepperColors } from './constants'\r\nimport { createID } from '../../../utils/string.utils'\r\nimport { govHost } from '../../../helpers/Dom/template'\r\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\r\nimport { GovHost } from '../../../helpers/Dom/template.types'\r\n\r\n@Component({\r\n\ttag: 'gov-stepper-item',\r\n})\r\nexport class GovStepperItem {\r\n\tprivate h: GovHost\r\n\tprivate readonly triggerId: string\r\n\tprivate readonly contentId: string\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.triggerId = createID('GovStepperItem')\r\n\t\tthis.contentId = createID('GovStepperContent')\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovStepperItemElement\r\n\r\n\t/**\r\n\t * Style variation of the button.\r\n\t */\r\n\t@Prop() readonly color?: StepperColorType = 'primary'\r\n\t/**\r\n\t * Size of stepper\r\n\t */\r\n\t@Prop() readonly size?: StepperSizesType = 'm'\r\n\t/**\r\n\t * Custom stepper item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Called when the accordion state changes\r\n\t */\r\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(StepperColors, newValue, StepperItemClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst triggerId = this.identifier || this.triggerId\r\n\t\tconst contentId = this.contentId\r\n\r\n\t\treturn (\r\n\t\t\t<Host id={triggerId} class={this.h.classes(StepperItemClass.root)} color={this.color} role=\"listitem\" hydrated={this.hydrated}>\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<div class={StepperItemClass.steps}>\r\n\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\r\n\t\t\t\t\t\t\t<slot name=\"prefix\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class={StepperItemClass.main}>\r\n\t\t\t\t\t\t<span class={StepperItemClass.headline}>\r\n\t\t\t\t\t\t\t<slot name=\"headline\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<slot name=\"annotation\"/>\r\n\r\n\t\t\t\t\t\t{this.h.hasSlot('content') && (\r\n\t\t\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId}\r\n\t\t\t\t\t\t\t\t role=\"tabpanel\">\r\n\t\t\t\t\t\t\t\t<slot name=\"content\"/>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"gov-stepper-item.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-stepper/stepper/gov-stepper-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAA;AAC7F,OAAO,EAAE,YAAY,E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B,CAAC,KAAK;oBACjC,8DAAa;oBACb,6DAAM,KAAK,EAAE,gBAAgB,CAAC,MAAM;wBACnC,6DAAM,IAAI,EAAC,QAAQ,GAAE,CACf;oBACP,8DAAa,CACR;gBACN,4DAAK,KAAK,EAAE,gBAAgB,CAAC,IAAI;oBAChC,6DAAM,KAAK,EAAE,gBAAgB,CAAC,QAAQ;wBACrC,6DAAM,IAAI,EAAC,UAAU,GAAE,CACjB;oBACP,6DAAM,IAAI,EAAC,YAAY,GAAE;oBAExB,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAC7B,4DAAK,KAAK,EAAE,gBAAgB,CAAC,OAAO,EAAE,EAAE,EAAE,SAAS,qBAAmB,SAAS,EAC7E,IAAI,EAAC,UAAU;wBAChB,6DAAM,IAAI,EAAC,SAAS,GAAE,CACjB,CACN,CACI,CACD,CACA,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Prop, Watch, Host, Event, EventEmitter } from '@stencil/core'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { StepperSizesType, StepperItemClass, StepperColorType, StepperColors } from './constants'\nimport { createID } from '../../../utils/string.utils'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\nimport { GovHost } from '../../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-stepper-item',\n})\nexport class GovStepperItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID('GovStepperItem')\n\t\tthis.contentId = createID('GovStepperContent')\n\t}\n\n\t@Element() readonly host: HTMLGovStepperItemElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color?: StepperColorType = 'primary'\n\t/**\n\t * Size of stepper\n\t */\n\t@Prop() readonly size?: StepperSizesType = 'm'\n\t/**\n\t * Custom stepper item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(StepperColors, newValue, StepperItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst contentId = this.contentId\n\n\t\treturn (\n\t\t\t<Host id={triggerId} class={this.h.classes(StepperItemClass.root)} color={this.color} role=\"listitem\" hydrated={this.hydrated}>\n\t\t\t\t<div>\n\t\t\t\t\t<div class={StepperItemClass.steps}>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\n\t\t\t\t\t\t\t<slot name=\"prefix\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class={StepperItemClass.main}>\n\t\t\t\t\t\t<span class={StepperItemClass.headline}>\n\t\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<slot name=\"annotation\"/>\n\n\t\t\t\t\t\t{this.h.hasSlot('content') && (\n\t\t\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId}\n\t\t\t\t\t\t\t\t role=\"tabpanel\">\n\t\t\t\t\t\t\t\t<slot name=\"content\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -30,7 +30,7 @@ export class GovStepper {
30
30
  this.hydrated = true;
31
31
  }
32
32
  render() {
33
- return (h(Host, { key: '92d3349a28b4330a3bea5293853612d0a0b96069', class: this.h.classes(StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, h("slot", { key: 'a5b65c3a06c63f826d6c968c69f1452abe0408af' })));
33
+ return (h(Host, { key: '339a1f4eaaa246d8329841d99e784b8c157bb5d3', class: this.h.classes(StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, h("slot", { key: '9e1604e94a11bbc3b2f8230193b43f9466601866' })));
34
34
  }
35
35
  static get is() { return "gov-stepper"; }
36
36
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"gov-stepper.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-stepper/stepper/gov-stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAoB,MAAM,aAAa,CAAA;AAI5F,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAKvD,MAAM,OAAO,UAAU;IAItB;QAFQ,aAAQ,GAAG,KAAK,CAAA;QAOxB;;WAEG;QACc,SAAI,GAAsB,GAAG,CAAA;QAP7C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAaD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;IACxD,CAAC;IAED,iBAAiB;QAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC7B,CAAC;IAED,gBAAgB;QACf,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAgC,EAAE,EAAE;YAC9F,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;YACrC,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAuD,EAAE,EAAE;gBAChG,CAAC,CAAC,eAAe,EAAE,CAAA;gBACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;YAC9B,CAAC,CAAC,CAAA;QACH,CAAC,CAAC,CAAA;IACH,CAAC;IAED,iBAAiB;QAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;IACrB,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACnG,8DAAQ,CACF,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop, Watch } from '@stencil/core'\r\nimport { validateProp } from '../../../helpers/Validate/props'\r\nimport { StepperClass, StepperItemClass, StepperSizes, StepperSizesType } from './constants'\r\nimport { GovStepperItemCustomEvent } from '../../../components'\r\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\r\nimport { GovHost } from '../../../helpers/Dom/template.types'\r\nimport { govHost } from '../../../helpers/Dom/template'\r\n\r\n@Component({\r\n\ttag: 'gov-stepper',\r\n})\r\nexport class GovStepper {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovStepperElement\r\n\t/**\r\n\t * Size of stepper\r\n\t */\r\n\t@Prop() readonly size?: StepperSizesType = 'm'\r\n\t/**\r\n\t * Called when the Stepper state changes\r\n\t */\r\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(StepperSizes, newValue, StepperClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.host.querySelectorAll(StepperItemClass.root).forEach((child: HTMLGovStepperItemElement) => {\r\n\t\t\tchild.setAttribute('size', this.size)\r\n\t\t\tchild.addEventListener('gov-change', (e: GovStepperItemCustomEvent<GovStepperItemChangeEvent>) => {\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tthis.govChange.emit(e.detail)\r\n\t\t\t})\r\n\t\t})\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(StepperClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"gov-stepper.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-stepper/stepper/gov-stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAoB,MAAM,aAAa,CAAA;AAI5F,OAAO,EAA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;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop, Watch } from '@stencil/core'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { StepperClass, StepperItemClass, StepperSizes, StepperSizesType } from './constants'\nimport { GovStepperItemCustomEvent } from '../../../components'\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { govHost } from '../../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-stepper',\n})\nexport class GovStepper {\n\tprivate h: GovHost\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovStepperElement\n\t/**\n\t * Size of stepper\n\t */\n\t@Prop() readonly size?: StepperSizesType = 'm'\n\t/**\n\t * Called when the Stepper state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(StepperSizes, newValue, StepperClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(StepperItemClass.root).forEach((child: HTMLGovStepperItemElement) => {\n\t\t\tchild.setAttribute('size', this.size)\n\t\t\tchild.addEventListener('gov-change', (e: GovStepperItemCustomEvent<GovStepperItemChangeEvent>) => {\n\t\t\t\te.stopPropagation()\n\t\t\t\tthis.govChange.emit(e.detail)\n\t\t\t})\n\t\t})\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(StepperClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tabs/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAExC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAEpD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAGrE,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG7D,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IACnB,yBAAa,CAAA;IACb,yBAAa,CAAA;AACd,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAID,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;AACtB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAID,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,GAAG,EAAE,eAAe;CACpB,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,sBAAsB;CAC7B,CAAA","sourcesContent":["import { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport { Colors } from '../../core/constants/colors'\r\n\r\nexport const TabSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type TabSizeType = `${ValueOf<typeof TabSizes>}`\r\n\r\nexport const TabColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\r\nexport type ColorType = `${ValueOf<typeof TabColors>}`\r\n\r\nexport enum TabTypes {\r\n\tTEXT = 'text',\r\n\tCHIP = 'chip',\r\n}\r\n\r\nexport type TabType = `${ValueOf<typeof TabTypes>}`\r\n\r\nexport enum TabOrientation {\r\n\tHORIZONTAL = 'horizontal',\r\n\tVERTICAL = 'vertical',\r\n}\r\n\r\nexport type TabOrientationType = `${ValueOf<typeof TabOrientation>}`\r\n\r\nexport const TabsClass = {\r\n\troot: 'gov-tabs',\r\n\ttabs: 'gov-tabs__tabs',\r\n\tlist: 'gov-tabs__list',\r\n\titem: 'gov-tabs__item',\r\n\tbtn: 'gov-tabs__btn',\r\n}\r\n\r\nexport const TabsItemClass = {\r\n\troot: 'gov-tabs-item',\r\n\tinner: 'gov-tabs-item__inner',\r\n}\r\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tabs/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAExC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAEpD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAGrE,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG7D,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IACnB,yBAAa,CAAA;IACb,yBAAa,CAAA;AACd,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAID,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;AACtB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAID,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,GAAG,EAAE,eAAe;CACpB,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,sBAAsB;CAC7B,CAAA","sourcesContent":["import { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\nimport {Sizes} from \"../../core/constants/sizes\";\nimport { Colors } from '../../core/constants/colors'\n\nexport const TabSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type TabSizeType = `${ValueOf<typeof TabSizes>}`\n\nexport const TabColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\nexport type ColorType = `${ValueOf<typeof TabColors>}`\n\nexport enum TabTypes {\n\tTEXT = 'text',\n\tCHIP = 'chip',\n}\n\nexport type TabType = `${ValueOf<typeof TabTypes>}`\n\nexport enum TabOrientation {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\n\nexport type TabOrientationType = `${ValueOf<typeof TabOrientation>}`\n\nexport const TabsClass = {\n\troot: 'gov-tabs',\n\ttabs: 'gov-tabs__tabs',\n\tlist: 'gov-tabs__list',\n\titem: 'gov-tabs__item',\n\tbtn: 'gov-tabs__btn',\n}\n\nexport const TabsItemClass = {\n\troot: 'gov-tabs-item',\n\tinner: 'gov-tabs-item__inner',\n}\n"]}
@@ -24,7 +24,7 @@ export class GovTabsItem {
24
24
  }
25
25
  }
26
26
  render() {
27
- return (h(Host, { key: '7de42fde0ca4e787967c76a14aa2498367f66a1c', class: this.h.classes(TabsItemClass.root), default: this.default }, h("div", { key: '89f6bf8f5505ed17e5a9c46f60dfbf34353a75e6', class: TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": toBoolAttrIfDefined(!this.isActive) }, h("slot", { key: '690b06566e645ce22ec34c47c56852a75ac1069b' }))));
27
+ return (h(Host, { key: '49f4fbd9c9211ebd58c89d538df85164473c4f76', class: this.h.classes(TabsItemClass.root), default: this.default }, h("div", { key: 'cbb71bd33c068923a8d23b62c43b1c757d4d0c78', class: TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": toBoolAttrIfDefined(!this.isActive) }, h("slot", { key: 'fdf732f55e7ce4cb1d96ec8c7124124d9ca3e198' }))));
28
28
  }
29
29
  /**
30
30
  * Returns a unique tab content identifier
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tabs-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tabs/gov-tabs-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACrF,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAC,OAAO,EAAE,mBAAmB,EAAC,MAAM,4BAA4B,CAAA;AAEvE,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,aAAa,CAAA;AAKpD,MAAM,OAAO,WAAW;IAKvB;QAmBA;;WAEG;QAC6B,aAAQ,GAAY,KAAK,CAAA;QASzD;;WAEG;QACc,YAAO,GAAY,KAAK,CAAA;QAChC,aAAQ,GAAG,KAAK,CAAA;QAlCxB,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;QAC1C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;KAC1C;IAmCD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, h, Host, Method, Prop, State, Watch} from '@stencil/core'\r\nimport {createID} from '../../utils/string.utils'\r\nimport {govHost, toBoolAttrIfDefined} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {TabsClass, TabsItemClass} from './constants'\r\n\r\n@Component({\r\n\ttag: 'gov-tabs-item',\r\n})\r\nexport class GovTabsItem {\r\n\tprivate h: GovHost\r\n\tprivate readonly contentId: string\r\n\tprivate readonly triggerId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.contentId = createID('GovTabContent')\r\n\t\tthis.triggerId = createID('GovTabTrigger')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTabsItemElement\r\n\t/**\r\n\t * Custom tab item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Custom tab trigger item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly triggerIdentifier: string\r\n\t/**\r\n\t * Item name of the tab\r\n\t */\r\n\t@Prop({reflect: true}) readonly label: string\r\n\t/**\r\n\t * Item disable state\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Icon definition at the stat. Use the type/name notation\r\n\t */\r\n\t@Prop({reflect: true, attribute: 'icon-start'}) readonly iconStart: string\r\n\t/**\r\n\t * Icon definition at the end. Use the type/name notation\r\n\t */\r\n\t@Prop({reflect: true, attribute: 'icon-end'}) readonly iconEnd: string\r\n\t/**\r\n\t * Default selected tab\r\n\t */\r\n\t@Prop() readonly default: boolean = false\r\n\t@State() isActive = false\r\n\r\n\t@Watch('label')\r\n\t@Watch('disabled')\r\n\trerenderParent() {\r\n\t\tconst element = this.h.getParent(TabsClass.root) as HTMLGovTabsElement;\r\n\t\tif (element) {\r\n\t\t\telement.rerender().catch()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TabsItemClass.root)} default={this.default}>\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass={TabsItemClass.inner}\r\n\t\t\t\t\trole=\"tabpanel\"\r\n\t\t\t\t\tid={this.identifier || this.contentId}\r\n\t\t\t\t\thidden={!this.isActive}\r\n\t\t\t\t\taria-labelledby={this.triggerIdentifier || this.triggerId}\r\n\t\t\t\t\taria-hidden={toBoolAttrIfDefined(!this.isActive)}\r\n\t\t\t\t>\r\n\t\t\t\t\t<slot></slot>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab content identifier\r\n\t */\r\n\t@Method()\r\n\tasync getIdentifier(): Promise<string> {\r\n\t\treturn this.identifier || this.contentId\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab trigger identifier\r\n\t */\r\n\t@Method()\r\n\tasync getTriggerIdentifier(): Promise<string> {\r\n\t\treturn this.triggerIdentifier || this.triggerId\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab trigger identifier\r\n\t */\r\n\t@Method()\r\n\tasync getDisableState(): Promise<boolean> {\r\n\t\treturn this.disabled\r\n\t}\r\n\r\n\t/**\r\n\t * Set status of tab-item\r\n\t */\r\n\t@Method()\r\n\tasync setActiveStatus(status: boolean): Promise<void> {\r\n\t\tthis.isActive = status\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"gov-tabs-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tabs/gov-tabs-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACrF,OAAO,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AAK,CAAC,aAAa;QAClB,OAAO,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,SAAS,CAAA;IACzC,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,oBAAoB;QACzB,OAAO,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,SAAS,CAAA;IAChD,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,eAAe;QACpB,OAAO,IAAI,CAAC,QAAQ,CAAA;IACrB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,eAAe,CAAC,MAAe;QACpC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAA;IACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {createID} from '../../utils/string.utils'\nimport {govHost, toBoolAttrIfDefined} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {TabsClass, TabsItemClass} from './constants'\n\n@Component({\n\ttag: 'gov-tabs-item',\n})\nexport class GovTabsItem {\n\tprivate h: GovHost\n\tprivate readonly contentId: string\n\tprivate readonly triggerId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.contentId = createID('GovTabContent')\n\t\tthis.triggerId = createID('GovTabTrigger')\n\t}\n\n\t@Element() host: HTMLGovTabsItemElement\n\t/**\n\t * Custom tab item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Custom tab trigger item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly triggerIdentifier: string\n\t/**\n\t * Item name of the tab\n\t */\n\t@Prop({reflect: true}) readonly label: string\n\t/**\n\t * Item disable state\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Icon definition at the stat. Use the type/name notation\n\t */\n\t@Prop({reflect: true, attribute: 'icon-start'}) readonly iconStart: string\n\t/**\n\t * Icon definition at the end. Use the type/name notation\n\t */\n\t@Prop({reflect: true, attribute: 'icon-end'}) readonly iconEnd: string\n\t/**\n\t * Default selected tab\n\t */\n\t@Prop() readonly default: boolean = false\n\t@State() isActive = false\n\n\t@Watch('label')\n\t@Watch('disabled')\n\trerenderParent() {\n\t\tconst element = this.h.getParent(TabsClass.root) as HTMLGovTabsElement;\n\t\tif (element) {\n\t\t\telement.rerender().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TabsItemClass.root)} default={this.default}>\n\t\t\t\t<div\n\t\t\t\t\tclass={TabsItemClass.inner}\n\t\t\t\t\trole=\"tabpanel\"\n\t\t\t\t\tid={this.identifier || this.contentId}\n\t\t\t\t\thidden={!this.isActive}\n\t\t\t\t\taria-labelledby={this.triggerIdentifier || this.triggerId}\n\t\t\t\t\taria-hidden={toBoolAttrIfDefined(!this.isActive)}\n\t\t\t\t>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns a unique tab content identifier\n\t */\n\t@Method()\n\tasync getIdentifier(): Promise<string> {\n\t\treturn this.identifier || this.contentId\n\t}\n\n\t/**\n\t * Returns a unique tab trigger identifier\n\t */\n\t@Method()\n\tasync getTriggerIdentifier(): Promise<string> {\n\t\treturn this.triggerIdentifier || this.triggerId\n\t}\n\n\t/**\n\t * Returns a unique tab trigger identifier\n\t */\n\t@Method()\n\tasync getDisableState(): Promise<boolean> {\n\t\treturn this.disabled\n\t}\n\n\t/**\n\t * Set status of tab-item\n\t */\n\t@Method()\n\tasync setActiveStatus(status: boolean): Promise<void> {\n\t\tthis.isActive = status\n\t}\n}\n"]}
@@ -128,7 +128,7 @@ export class GovTabs {
128
128
  });
129
129
  }
130
130
  render() {
131
- return (h(Host, { key: '0b339dda9cd002b5548650f0f996d349842f4c8b', class: this.h.classes(TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, h("div", Object.assign({ key: '683da4323be50ee97c0f2b666423308b2feb6ff3', class: TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), h("ul", { key: '0a255d6a8a57744c0636a41e567661775d450dee', class: TabsClass.list }, this.controllers.map(control => (h("li", { class: TabsClass.item }, this.type == "text" ? (h("button", { class: TabsClass.btn, id: control.triggerIdentifier, role: "tab", type: "button", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": toBoolAttr(control.disabled), "aria-selected": toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (h("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), h("slot", { key: '367950fe8ebba21bbe73c51a0d4c33efbb33e093' })));
131
+ return (h(Host, { key: '5dfd9d6ca4a17c425a96a1f766d599de80db6028', class: this.h.classes(TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, h("div", Object.assign({ key: 'a195131ab673e7b9906777757f5c7e8c8421ddad', class: TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), h("ul", { key: '3dd46399f5054881f71242b2f184ebfb11fac51e', class: TabsClass.list }, this.controllers.map(control => (h("li", { class: TabsClass.item }, this.type == "text" ? (h("button", { class: TabsClass.btn, id: control.triggerIdentifier, role: "tab", type: "button", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": toBoolAttr(control.disabled), "aria-selected": toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (h("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), h("slot", { key: '5fc402a27b6236ca10c8f3370f946b7ceadb5342' })));
132
132
  }
133
133
  getCurrentTab() {
134
134
  return this.controllers.find(control => control.active) || null;
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tabs.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tabs/gov-tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EA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;OAEG;IAEH,KAAK,CAAC,YAAY,CAAC,UAAkB;QACpC,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAA;QACtC,IAAI,CAAC,QAAQ,EAAE,CAAA;IAChB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,QAAQ;QACb,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {\r\n\tColorType,\r\n\tTabColors,\r\n\tTabOrientationType,\r\n\tTabsClass,\r\n\tTabsItemClass,\r\n\tTabSizes,\r\n\tTabSizeType,\r\n\tTabType,\r\n\tTabTypes\r\n} from \"./constants\"\r\nimport {GovTabControllerItem} from \"./gov-tabs.types\"\r\nimport {booleanString, govHost, toBoolAttr} from \"../../helpers/Dom/template\"\r\nimport {Nullable} from \"../../types/interfaces\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {hasOwnProperty} from \"../../utils/helpers.types\";\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\r\n\r\n\r\n@Component({\r\n\ttag: \"gov-tabs\",\r\n})\r\nexport class GovTabs {\r\n\tprivate h: GovHost\r\n\tprivate triggerRefs: Record<string, HTMLButtonElement | HTMLGovChipElement> = {}\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTabsElement\r\n\t/**\r\n\t * Tabs type\r\n\t */\r\n\t@Prop() readonly type: TabType = \"text\"\r\n\t/**\r\n\t * Tabs size.\r\n\t */\r\n\t@Prop() readonly size?: TabSizeType = 'm'\r\n\t/**\r\n\t * Style variation of the tab chips.\r\n\t */\r\n\t@Prop() readonly color?: ColorType = \"primary\"\r\n\t/**\r\n\t * Tabs orientation\r\n\t */\r\n\t@Prop() readonly orientation: TabOrientationType = \"horizontal\"\r\n\t/**\r\n\t * Icon and description display direction\r\n\t */\r\n\t@Prop({reflect: true}) readonly direction: 'row' | 'column' = 'row'\r\n\t/**\r\n\t * Emitted when the tab is changed.\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<HTMLGovTabsItemElement>\r\n\r\n\t@Watch(\"type\")\r\n\tvalidateType(newValue: string): void {\r\n\t\tvalidateProp(TabTypes, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(TabColors, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(TabSizes, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@State() controllers: GovTabControllerItem[] = []\r\n\t@State() focusIndex = 0\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.prepareControllers()\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tprivate prepareControllers(skipDefault = false): void {\r\n\t\tthis.controllers = []\r\n\t\tconst promises: Promise<GovTabControllerItem>[] = []\r\n\t\tthis.host.querySelectorAll(':scope > ' + TabsItemClass.root).forEach((tab: HTMLGovTabsItemElement) => {\r\n\t\t\tconst controlItem = Promise.all([\r\n\t\t\t\ttab.getIdentifier(),\r\n\t\t\t\ttab.getTriggerIdentifier(),\r\n\t\t\t\ttab.getDisableState()\r\n\t\t\t]).then(([identifier, triggerIdentifier, disabled]) => {\r\n\t\t\t\tconst isDefault = typeof tab.getAttribute(\"default\") === \"string\"\r\n\t\t\t\tconst iconStart = prepareIconFormat(tab.getAttribute('icon-start'))\r\n\t\t\t\tconst iconEnd = prepareIconFormat(tab.getAttribute('icon-end'))\r\n\t\t\t\treturn {\r\n\t\t\t\t\tlabel: tab.getAttribute(\"label\"),\r\n\t\t\t\t\tdirection: tab.getAttribute(\"direction\"),\r\n\t\t\t\t\tcontentIdentifier: identifier,\r\n\t\t\t\t\tdisabled: disabled,\r\n\t\t\t\t\ttriggerIdentifier: triggerIdentifier,\r\n\t\t\t\t\telement: tab,\r\n\t\t\t\t\tactive: false,\r\n\t\t\t\t\tdefault: isDefault,\r\n\t\t\t\t\ticonStart,\r\n\t\t\t\t\ticonEnd\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tpromises.push(controlItem)\r\n\t\t});\r\n\t\tPromise.all(promises).then(controllers => {\r\n\t\t\tif (skipDefault === false) {\r\n\t\t\t\tlet defaultTabIndex = controllers.findIndex(controller => controller.default)\r\n\t\t\t\tif (defaultTabIndex === -1) defaultTabIndex = 0\r\n\t\t\t\tthis.focusIndex = defaultTabIndex\r\n\t\t\t\tcontrollers[defaultTabIndex].active = true\r\n\t\t\t} else if (this.focusIndex > -1 && hasOwnProperty(controllers, this.focusIndex)) {\r\n\t\t\t\tcontrollers[this.focusIndex].active = true\r\n\t\t\t}\r\n\t\t\tconst isWrongCombination = controllers.findIndex((controller) => controller.active && controller.disabled)\r\n\t\t\tif (isWrongCombination > -1) {\r\n\t\t\t\tcontrollers[isWrongCombination].active = false;\r\n\t\t\t\tconst firstGoodTab = controllers.findIndex((controller) => !controller.disabled)\r\n\t\t\t\tif (firstGoodTab > -1) {\r\n\t\t\t\t\tcontrollers[firstGoodTab].active = true\r\n\t\t\t\t\tthis.focusIndex = firstGoodTab;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.controllers = [...controllers]\r\n\t\t\tthis.reRender()\r\n\t\t})\r\n\t}\r\n\r\n\tprivate setActiveByIdentifier(identifier: string) {\r\n\t\tconst temp = []\r\n\t\tthis.controllers.map(item => {\r\n\t\t\titem.active = identifier === item.triggerIdentifier || identifier === item.contentIdentifier\r\n\t\t\ttemp.push(item)\r\n\t\t})\r\n\t\tthis.controllers = [...temp]\r\n\t}\r\n\r\n\tprivate reRender() {\r\n\t\tthis.controllers.map(control => {\r\n\t\t\tcontrol.element.setActiveStatus(control.active).catch()\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes(TabsClass.root)}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t\tdirection={this.direction}\r\n\t\t\t\tonKeyDown={this.onKeydownHandler.bind(this)}\r\n\t\t\t>\r\n\t\t\t\t<div class={TabsClass.tabs}\r\n\t\t\t\t\t role=\"tablist\"\r\n\t\t\t\t\t {...this.inheritedAttributes}>\r\n\t\t\t\t\t<ul class={TabsClass.list}>\r\n\t\t\t\t\t\t{this.controllers.map(control => (\r\n\t\t\t\t\t\t\t<li class={TabsClass.item}>\r\n\t\t\t\t\t\t\t\t{this.type == \"text\" ? (\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\tclass={TabsClass.btn}\r\n\t\t\t\t\t\t\t\t\t\tid={control.triggerIdentifier}\r\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\tonClick={() => this.onSelectHandler(control)}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\r\n\t\t\t\t\t\t\t\t\t\taria-disabled={toBoolAttr(control.disabled)}\r\n\t\t\t\t\t\t\t\t\t\taria-selected={toBoolAttr(control.active)}\r\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\r\n\t\t\t\t\t\t\t\t\t\ttabindex={control.active && !control.disabled ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLButtonElement)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t\t{control.label}\r\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t<gov-chip\r\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\t\t\ttag={'button'}\r\n\t\t\t\t\t\t\t\t\t\tidentifier={control.triggerIdentifier}\r\n\t\t\t\t\t\t\t\t\t\taria-selected={booleanString(control.active)}\r\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\r\n\t\t\t\t\t\t\t\t\t\tfocusable={control.active}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\r\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\t\t\t\t\tsize={this.size === \"xs\" ? \"xs\" : (this.size === \"s\" ? \"s\" : \"m\")}\r\n\t\t\t\t\t\t\t\t\t\ttype={control.active ? \"solid\" : \"outlined\"}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLGovChipElement)}\r\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onSelectHandler(control)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}\r\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-start\"></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t\t{control.label}\r\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}\r\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-end\"></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t</gov-chip>\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t))}\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</div>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate getCurrentTab(): GovTabControllerItem | null {\r\n\t\treturn this.controllers.find(control => control.active) || null\r\n\t}\r\n\r\n\tprivate onSelectHandler(control: GovTabControllerItem) {\r\n\t\tconst index = this.controllers.findIndex(t => t.triggerIdentifier === control.triggerIdentifier);\r\n\t\tthis.focusIndex = index\r\n\t\tthis.setActiveByIdentifier(control.triggerIdentifier)\r\n\t\tthis.reRender()\r\n\t\tthis.govChange.emit(this.getCurrentTab().element)\r\n\t}\r\n\r\n\tprivate onKeydownHandler(e: KeyboardEvent) {\r\n\t\tconst keyCode = e.keyCode\r\n\r\n\t\te.stopPropagation()\r\n\t\tthis.goToPrevNext(keyCode)\r\n\t}\r\n\r\n\tprivate goToPrevNext(keyCode: number) {\r\n\t\tif ([37, 38, 39, 40].includes(keyCode)) {\r\n\t\t\tif (false === (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1)) {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\r\n\t\t\tthis.controllers[this.focusIndex].active = false\r\n\r\n\t\t\tif (keyCode === 39 || keyCode === 40) {\r\n\t\t\t\tthis.focusIndex++\r\n\t\t\t\tif (this.focusIndex >= this.controllers.length) {\r\n\t\t\t\t\tthis.focusIndex = 0\r\n\t\t\t\t}\r\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\r\n\t\t\t\t\tthis.goToPrevNext(40)\r\n\t\t\t\t}\r\n\t\t\t} else if (keyCode === 37 || keyCode === 38) {\r\n\t\t\t\tthis.focusIndex--\r\n\t\t\t\tif (this.focusIndex < 0) {\r\n\t\t\t\t\tthis.focusIndex = this.controllers.length - 1\r\n\t\t\t\t}\r\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\r\n\t\t\t\t\tthis.goToPrevNext(38)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1) {\r\n\t\t\t\tconst current = this.controllers[this.focusIndex]\r\n\t\t\t\tcurrent.active = true\r\n\t\t\t\tconst trigger = this.triggerRefs[current.triggerIdentifier]\r\n\t\t\t\tif (trigger.nodeName.toLowerCase() === 'gov-chip') {\r\n\t\t\t\t\t(this.triggerRefs[current.triggerIdentifier] as HTMLGovChipElement).setFocus()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.triggerRefs[current.triggerIdentifier].focus()\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.controllers = [...this.controllers]\r\n\t\t\t\tthis.reRender()\r\n\t\t\t\tthis.govChange.emit(this.getCurrentTab().element)\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync refresh(): Promise<void> {\r\n\t\tthis.prepareControllers()\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the currently selected tabs-item\r\n\t */\r\n\t@Method()\r\n\tasync currentTab(): Promise<Nullable<HTMLGovTabsItemElement>> {\r\n\t\treturn this.getCurrentTab().element || null\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync setActiveTab(identifier: string): Promise<void> {\r\n\t\tthis.setActiveByIdentifier(identifier)\r\n\t\tthis.reRender()\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync rerender(): Promise<void> {\r\n\t\tthis.prepareControllers(true);\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"gov-tabs.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tabs/gov-tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAEN,SAAS,EAET,SAAS,EACT,aAAa,EACb,QA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BAAkB,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {\n\tColorType,\n\tTabColors,\n\tTabOrientationType,\n\tTabsClass,\n\tTabsItemClass,\n\tTabSizes,\n\tTabSizeType,\n\tTabType,\n\tTabTypes\n} from \"./constants\"\nimport {GovTabControllerItem} from \"./gov-tabs.types\"\nimport {booleanString, govHost, toBoolAttr} from \"../../helpers/Dom/template\"\nimport {Nullable} from \"../../types/interfaces\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {hasOwnProperty} from \"../../utils/helpers.types\";\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n\n@Component({\n\ttag: \"gov-tabs\",\n})\nexport class GovTabs {\n\tprivate h: GovHost\n\tprivate triggerRefs: Record<string, HTMLButtonElement | HTMLGovChipElement> = {}\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovTabsElement\n\t/**\n\t * Tabs type\n\t */\n\t@Prop() readonly type: TabType = \"text\"\n\t/**\n\t * Tabs size.\n\t */\n\t@Prop() readonly size?: TabSizeType = 'm'\n\t/**\n\t * Style variation of the tab chips.\n\t */\n\t@Prop() readonly color?: ColorType = \"primary\"\n\t/**\n\t * Tabs orientation\n\t */\n\t@Prop() readonly orientation: TabOrientationType = \"horizontal\"\n\t/**\n\t * Icon and description display direction\n\t */\n\t@Prop({reflect: true}) readonly direction: 'row' | 'column' = 'row'\n\t/**\n\t * Emitted when the tab is changed.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<HTMLGovTabsItemElement>\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(TabTypes, newValue, TabsClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(TabColors, newValue, TabsClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(TabSizes, newValue, TabsClass.root)\n\t}\n\n\t@State() controllers: GovTabControllerItem[] = []\n\t@State() focusIndex = 0\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.prepareControllers()\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate prepareControllers(skipDefault = false): void {\n\t\tthis.controllers = []\n\t\tconst promises: Promise<GovTabControllerItem>[] = []\n\t\tthis.host.querySelectorAll(':scope > ' + TabsItemClass.root).forEach((tab: HTMLGovTabsItemElement) => {\n\t\t\tconst controlItem = Promise.all([\n\t\t\t\ttab.getIdentifier(),\n\t\t\t\ttab.getTriggerIdentifier(),\n\t\t\t\ttab.getDisableState()\n\t\t\t]).then(([identifier, triggerIdentifier, disabled]) => {\n\t\t\t\tconst isDefault = typeof tab.getAttribute(\"default\") === \"string\"\n\t\t\t\tconst iconStart = prepareIconFormat(tab.getAttribute('icon-start'))\n\t\t\t\tconst iconEnd = prepareIconFormat(tab.getAttribute('icon-end'))\n\t\t\t\treturn {\n\t\t\t\t\tlabel: tab.getAttribute(\"label\"),\n\t\t\t\t\tdirection: tab.getAttribute(\"direction\"),\n\t\t\t\t\tcontentIdentifier: identifier,\n\t\t\t\t\tdisabled: disabled,\n\t\t\t\t\ttriggerIdentifier: triggerIdentifier,\n\t\t\t\t\telement: tab,\n\t\t\t\t\tactive: false,\n\t\t\t\t\tdefault: isDefault,\n\t\t\t\t\ticonStart,\n\t\t\t\t\ticonEnd\n\t\t\t\t}\n\t\t\t})\n\t\t\tpromises.push(controlItem)\n\t\t});\n\t\tPromise.all(promises).then(controllers => {\n\t\t\tif (skipDefault === false) {\n\t\t\t\tlet defaultTabIndex = controllers.findIndex(controller => controller.default)\n\t\t\t\tif (defaultTabIndex === -1) defaultTabIndex = 0\n\t\t\t\tthis.focusIndex = defaultTabIndex\n\t\t\t\tcontrollers[defaultTabIndex].active = true\n\t\t\t} else if (this.focusIndex > -1 && hasOwnProperty(controllers, this.focusIndex)) {\n\t\t\t\tcontrollers[this.focusIndex].active = true\n\t\t\t}\n\t\t\tconst isWrongCombination = controllers.findIndex((controller) => controller.active && controller.disabled)\n\t\t\tif (isWrongCombination > -1) {\n\t\t\t\tcontrollers[isWrongCombination].active = false;\n\t\t\t\tconst firstGoodTab = controllers.findIndex((controller) => !controller.disabled)\n\t\t\t\tif (firstGoodTab > -1) {\n\t\t\t\t\tcontrollers[firstGoodTab].active = true\n\t\t\t\t\tthis.focusIndex = firstGoodTab;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.controllers = [...controllers]\n\t\t\tthis.reRender()\n\t\t})\n\t}\n\n\tprivate setActiveByIdentifier(identifier: string) {\n\t\tconst temp = []\n\t\tthis.controllers.map(item => {\n\t\t\titem.active = identifier === item.triggerIdentifier || identifier === item.contentIdentifier\n\t\t\ttemp.push(item)\n\t\t})\n\t\tthis.controllers = [...temp]\n\t}\n\n\tprivate reRender() {\n\t\tthis.controllers.map(control => {\n\t\t\tcontrol.element.setActiveStatus(control.active).catch()\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(TabsClass.root)}\n\t\t\t\tsize={this.size}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tdirection={this.direction}\n\t\t\t\tonKeyDown={this.onKeydownHandler.bind(this)}\n\t\t\t>\n\t\t\t\t<div class={TabsClass.tabs}\n\t\t\t\t\t role=\"tablist\"\n\t\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<ul class={TabsClass.list}>\n\t\t\t\t\t\t{this.controllers.map(control => (\n\t\t\t\t\t\t\t<li class={TabsClass.item}>\n\t\t\t\t\t\t\t\t{this.type == \"text\" ? (\n\t\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\t\tclass={TabsClass.btn}\n\t\t\t\t\t\t\t\t\t\tid={control.triggerIdentifier}\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\t\tonClick={() => this.onSelectHandler(control)}\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\n\t\t\t\t\t\t\t\t\t\taria-disabled={toBoolAttr(control.disabled)}\n\t\t\t\t\t\t\t\t\t\taria-selected={toBoolAttr(control.active)}\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\n\t\t\t\t\t\t\t\t\t\ttabindex={control.active && !control.disabled ? 0 : -1}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLButtonElement)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t\t{control.label}\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<gov-chip\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\n\t\t\t\t\t\t\t\t\t\ttag={'button'}\n\t\t\t\t\t\t\t\t\t\tidentifier={control.triggerIdentifier}\n\t\t\t\t\t\t\t\t\t\taria-selected={booleanString(control.active)}\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\n\t\t\t\t\t\t\t\t\t\tfocusable={control.active}\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\t\t\t\t\tsize={this.size === \"xs\" ? \"xs\" : (this.size === \"s\" ? \"s\" : \"m\")}\n\t\t\t\t\t\t\t\t\t\ttype={control.active ? \"solid\" : \"outlined\"}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLGovChipElement)}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onSelectHandler(control)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-start\"></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t\t{control.label}\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-end\"></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t</gov-chip>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate getCurrentTab(): GovTabControllerItem | null {\n\t\treturn this.controllers.find(control => control.active) || null\n\t}\n\n\tprivate onSelectHandler(control: GovTabControllerItem) {\n\t\tconst index = this.controllers.findIndex(t => t.triggerIdentifier === control.triggerIdentifier);\n\t\tthis.focusIndex = index\n\t\tthis.setActiveByIdentifier(control.triggerIdentifier)\n\t\tthis.reRender()\n\t\tthis.govChange.emit(this.getCurrentTab().element)\n\t}\n\n\tprivate onKeydownHandler(e: KeyboardEvent) {\n\t\tconst keyCode = e.keyCode\n\n\t\te.stopPropagation()\n\t\tthis.goToPrevNext(keyCode)\n\t}\n\n\tprivate goToPrevNext(keyCode: number) {\n\t\tif ([37, 38, 39, 40].includes(keyCode)) {\n\t\t\tif (false === (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1)) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.controllers[this.focusIndex].active = false\n\n\t\t\tif (keyCode === 39 || keyCode === 40) {\n\t\t\t\tthis.focusIndex++\n\t\t\t\tif (this.focusIndex >= this.controllers.length) {\n\t\t\t\t\tthis.focusIndex = 0\n\t\t\t\t}\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\n\t\t\t\t\tthis.goToPrevNext(40)\n\t\t\t\t}\n\t\t\t} else if (keyCode === 37 || keyCode === 38) {\n\t\t\t\tthis.focusIndex--\n\t\t\t\tif (this.focusIndex < 0) {\n\t\t\t\t\tthis.focusIndex = this.controllers.length - 1\n\t\t\t\t}\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\n\t\t\t\t\tthis.goToPrevNext(38)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1) {\n\t\t\t\tconst current = this.controllers[this.focusIndex]\n\t\t\t\tcurrent.active = true\n\t\t\t\tconst trigger = this.triggerRefs[current.triggerIdentifier]\n\t\t\t\tif (trigger.nodeName.toLowerCase() === 'gov-chip') {\n\t\t\t\t\t(this.triggerRefs[current.triggerIdentifier] as HTMLGovChipElement).setFocus()\n\t\t\t\t} else {\n\t\t\t\t\tthis.triggerRefs[current.triggerIdentifier].focus()\n\t\t\t\t}\n\n\t\t\t\tthis.controllers = [...this.controllers]\n\t\t\t\tthis.reRender()\n\t\t\t\tthis.govChange.emit(this.getCurrentTab().element)\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Regenerate tabs controllers\n\t */\n\t@Method()\n\tasync refresh(): Promise<void> {\n\t\tthis.prepareControllers()\n\t}\n\n\t/**\n\t * Returns the currently selected tabs-item\n\t */\n\t@Method()\n\tasync currentTab(): Promise<Nullable<HTMLGovTabsItemElement>> {\n\t\treturn this.getCurrentTab().element || null\n\t}\n\n\t/**\n\t * Regenerate tabs controllers\n\t */\n\t@Method()\n\tasync setActiveTab(identifier: string): Promise<void> {\n\t\tthis.setActiveByIdentifier(identifier)\n\t\tthis.reRender()\n\t}\n\n\t/**\n\t * Regenerate tabs controllers\n\t */\n\t@Method()\n\tasync rerender(): Promise<void> {\n\t\tthis.prepareControllers(true);\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tabs.types.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tabs/gov-tabs.types.ts"],"names":[],"mappings":"","sourcesContent":["import {Nullable} from \"../../types/interfaces\";\r\nimport {IconType} from \"../gov-icon/helpers\";\r\n\r\nexport interface GovTabControllerItem {\r\n\tlabel: string\r\n\tcontentIdentifier: string\r\n\ttriggerIdentifier: string\r\n\telement: HTMLGovTabsItemElement\r\n\tactive: boolean\r\n\tdefault: boolean\r\n\tdisabled: boolean\r\n\ticonStart: Nullable<IconType>\r\n\ticonEnd: Nullable<IconType>\r\n\tdirection: string\r\n}\r\n"]}
1
+ {"version":3,"file":"gov-tabs.types.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tabs/gov-tabs.types.ts"],"names":[],"mappings":"","sourcesContent":["import {Nullable} from \"../../types/interfaces\";\nimport {IconType} from \"../gov-icon/helpers\";\n\nexport interface GovTabControllerItem {\n\tlabel: string\n\tcontentIdentifier: string\n\ttriggerIdentifier: string\n\telement: HTMLGovTabsItemElement\n\tactive: boolean\n\tdefault: boolean\n\tdisabled: boolean\n\ticonStart: Nullable<IconType>\n\ticonEnd: Nullable<IconType>\n\tdirection: string\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tag/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGxD,MAAM,CAAN,IAAY,OAGX;AAHD,WAAY,OAAO;IAClB,wBAAa,CAAA;IACb,4BAAiB,CAAA;AAClB,CAAC,EAHW,OAAO,KAAP,OAAO,QAGlB;AAGD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACvB,IAAI,EAAE,SAAS;CACf,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const TagSizes = pick(Sizes, ['_XS', '_S', '_M'])\r\nexport type TagSizesType = `${ValueOf<typeof TagSizes>}`\r\n\r\nexport enum TagType {\r\n\tBOLD = 'bold',\r\n\tSUBTLE = 'subtle',\r\n}\r\nexport type TagTypesType = `${ValueOf<typeof TagType>}`\r\n\r\nexport const TagClass = {\r\n\troot: 'gov-tag',\r\n}\r\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tag/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGxD,MAAM,CAAN,IAAY,OAGX;AAHD,WAAY,OAAO;IAClB,wBAAa,CAAA;IACb,4BAAiB,CAAA;AAClB,CAAC,EAHW,OAAO,KAAP,OAAO,QAGlB;AAGD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACvB,IAAI,EAAE,SAAS;CACf,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TagSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type TagSizesType = `${ValueOf<typeof TagSizes>}`\n\nexport enum TagType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type TagTypesType = `${ValueOf<typeof TagType>}`\n\nexport const TagClass = {\n\troot: 'gov-tag',\n}\n"]}
@@ -33,7 +33,7 @@ export class GovTag {
33
33
  render() {
34
34
  const iconStart = prepareIconFormat(this.iconStart);
35
35
  const iconEnd = prepareIconFormat(this.iconEnd);
36
- return (h(Host, { key: 'bb366b85a94d134d58766604e6410e17bed07adc', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, h("span", { key: '963aa53926b6b65bbc155c349a119f46aabe59c8', class: "element" }, h("slot", { key: '3164cfa09970ac3e0f97df7265afd45a623b09aa', name: "icon-start" }, iconStart && h("gov-icon", { key: '335c0e5db0cb5a808c553bd4c9f6893d17a8fac9', type: iconStart.type, name: iconStart.name })), h("slot", { key: '9be29754dcefdaa37daee39befdc6a708e36324d' }), h("slot", { key: '6dffe882089838615e9fe451fc800b728885746a', name: "icon-end" }, iconEnd && h("gov-icon", { key: '415d8c03fefdf6281ae13668fb7b3aeaa572856e', type: iconEnd.type, name: iconEnd.name })))));
36
+ return (h(Host, { key: '9ed31c6f9d34001618223db4d842ee55611f8896', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, h("span", { key: '617d6cf19dc34385815916b6656f48c14428bff6', class: "element" }, h("slot", { key: 'd95d40e8a9de633865f174821050ab57174b435f', name: "icon-start" }, iconStart && h("gov-icon", { key: '95a813406d45b8a69f4d4804f4063a7fa88d1038', type: iconStart.type, name: iconStart.name })), h("slot", { key: '4e4ad28e073bc933e3a193283e46d50f413bcf62' }), h("slot", { key: '0642ab987098007d4335d8aed281f4cd431bfe10', name: "icon-end" }, iconEnd && h("gov-icon", { key: '00ea783ae37eb0a4461cb97e15cdc9efc332bb27', type: iconEnd.type, name: iconEnd.name })))));
37
37
  }
38
38
  static get is() { return "gov-tag"; }
39
39
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tag.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tag/gov-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAC,WAAW,EAAE,YAA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rB,SAAS,IAAI,iEAAU,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,GAAa,CACzE;gBACP,8DAAO;gBACP,6DAAM,IAAI,EAAC,UAAU,IACnB,OAAO,IAAI,iEAAU,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,GAAa,CACnE,CACD,CACD,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\r\nimport {govHost} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {validateProp} from '../../helpers/Validate/props'\r\nimport {ButtonSizes, ButtonColors, ButtonColorType} from '../gov-button/button/constants'\r\nimport {TagClass, TagSizes, TagSizesType, TagTypesType} from './constants'\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\n\r\n@Component({\r\n\ttag: 'gov-tag',\r\n})\r\nexport class GovTag {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTagElement\r\n\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\r\n\t/**\r\n\t * Tag’s size.\r\n\t */\r\n\t@Prop({reflect: true}) readonly size: TagSizesType = TagSizes._S\r\n\t/**\r\n\t * Style variation of the tag.\r\n\t */\r\n\t@Prop({reflect: true}) readonly color: ButtonColorType = ButtonColors.PRIMARY\r\n\t/**\r\n\t * Tag’s type\r\n\t */\r\n\t@Prop({reflect: true}) readonly type: TagTypesType\r\n\t/**\r\n\t * Expands the tag to fill 100% of the container width\r\n\t */\r\n\t@Prop({reflect: true}) readonly expanded: boolean = false\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ButtonColors, newValue, TagClass.root)\r\n\t}\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(ButtonSizes, newValue, TagClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\r\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TagClass.root)}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t>\r\n\t\t\t\t<span class=\"element\">\r\n\t\t\t\t\t<slot name=\"icon-start\">\r\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t<slot name=\"icon-end\">\r\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t</span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"gov-tag.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tag/gov-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MA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,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,IAAI;YAEf,6DAAM,KAAK,EAAC,SAAS;gBACpB,6DAAM,IAAI,EAAC,YAAY,IACrB,SAAS,IAAI,iEAAU,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,GAAa,CACzE;gBACP,8DAAO;gBACP,6DAAM,IAAI,EAAC,UAAU,IACnB,OAAO,IAAI,iEAAU,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,GAAa,CACnE,CACD,CACD,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonSizes, ButtonColors, ButtonColorType} from '../gov-button/button/constants'\nimport {TagClass, TagSizes, TagSizesType, TagTypesType} from './constants'\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\n\n@Component({\n\ttag: 'gov-tag',\n})\nexport class GovTag {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovTagElement\n\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\n\t/**\n\t * Tag’s size.\n\t */\n\t@Prop({reflect: true}) readonly size: TagSizesType = TagSizes._S\n\t/**\n\t * Style variation of the tag.\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType = ButtonColors.PRIMARY\n\t/**\n\t * Tag’s type\n\t */\n\t@Prop({reflect: true}) readonly type: TagTypesType\n\t/**\n\t * Expands the tag to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, TagClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, TagClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TagClass.root)}\n\t\t\t\tcolor={this.color}\n\t\t\t\tsize={this.size}\n\t\t\t\ttype={this.type}\n\t\t\t>\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<slot name=\"icon-start\">\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<slot name=\"icon-end\">\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-theme-switch/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG7E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,kBAAkB;IACxB,SAAS,EAAE,6BAA6B;IACxC,KAAK,EAAE,yBAAyB;IAChC,SAAS,EAAE,8BAA8B;IACzC,QAAQ,EAAE,6BAA6B;CACvC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\r\n\r\nexport const ThemeSwitchClass = {\r\n\troot: 'gov-theme-switch',\r\n\tindicator: 'gov-theme-switch__indicator',\r\n\tlabel: 'gov-theme-switch__label',\r\n\ticonLight: 'gov-theme-switch__icon-light',\r\n\ticonDark: 'gov-theme-switch__icon-dark',\r\n}\r\n\r\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\r\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-theme-switch/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG7E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,kBAAkB;IACxB,SAAS,EAAE,6BAA6B;IACxC,KAAK,EAAE,yBAAyB;IAChC,SAAS,EAAE,8BAA8B;IACzC,QAAQ,EAAE,6BAA6B;CACvC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\n\nexport const ThemeSwitchClass = {\n\troot: 'gov-theme-switch',\n\tindicator: 'gov-theme-switch__indicator',\n\tlabel: 'gov-theme-switch__label',\n\ticonLight: 'gov-theme-switch__icon-light',\n\ticonDark: 'gov-theme-switch__icon-dark',\n}\n\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\n"]}
@@ -83,7 +83,7 @@ export class GovThemeSwitch {
83
83
  if (this.theme === ThemeList.auto) {
84
84
  isDark = this.isSystemPrefersColorDark;
85
85
  }
86
- return (h(Host, { key: '77b26165b2a824ff9649ac9c28d7b300cdb76280', class: this.h.classes(ThemeSwitchClass.root), theme: isDark ? ThemeList.dark : ThemeList.light, size: this.size }, h("button", { key: 'c46058c2a0e797fef9c7e1ab4975ff379bbc3fb4', onClick: () => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark), "aria-current": this.theme, "aria-label": isDark ? this.ariaLabelDark : this.ariaLabelLight }, h("span", { key: 'c1d8824467dc7bfa5d23f1f99db686e91e93087b' }, h("span", { key: '62da0a9fecc5fc713b98ac9e4e728e3e19b9aa67', class: ThemeSwitchClass.indicator }, ThemeList.light && h("gov-icon", { key: '7c9dd1cf819afbd7f63609916d6c845c2236fbca', name: "sun", class: ThemeSwitchClass.iconLight, type: "components" }), ThemeList.dark && h("gov-icon", { key: '3f1acf71f8afb5ca893c460b7d0b6e49fe6f5c2d', name: "moon", class: ThemeSwitchClass.iconDark, type: "components" })), this.displayLabel ? (h("span", { class: ThemeSwitchClass.label }, isDark ? this.labelDark : this.labelLight)) : null))));
86
+ return (h(Host, { key: '3015dd1049b1c9a2b5902d1d56c8b3872a275c10', class: this.h.classes(ThemeSwitchClass.root), theme: isDark ? ThemeList.dark : ThemeList.light, size: this.size }, h("button", { key: 'ca4b331189fca45f66c4eef138db66482add2834', onClick: () => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark), "aria-current": this.theme, "aria-label": isDark ? this.ariaLabelDark : this.ariaLabelLight }, h("span", { key: 'ed2a779f1e9fe1a0e722439598c9a413e9b39071' }, h("span", { key: 'f58e164a6b1b389ecfe93f7d2673ea5749a8fd96', class: ThemeSwitchClass.indicator }, ThemeList.light && h("gov-icon", { key: '24663f2d33ea2bead59df37fef9932e549070ce4', name: "sun", class: ThemeSwitchClass.iconLight, type: "components" }), ThemeList.dark && h("gov-icon", { key: 'a4482c64c35b9c70122a687aca4bb90bfa1000f3', name: "moon", class: ThemeSwitchClass.iconDark, type: "components" })), this.displayLabel ? (h("span", { class: ThemeSwitchClass.label }, isDark ? this.labelDark : this.labelLight)) : null))));
87
87
  }
88
88
  static get is() { return "gov-theme-switch"; }
89
89
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"gov-theme-switch.js","sourceRoot":"","sources":["../../../../../../src/components/gov-theme-switch/gov-theme-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAElG,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,EAAuB,MAAM,aAAa,CAAC;AAC3G,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,SAAS,EAAmB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAC,YAAY,EAAC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ent":["import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\";\r\nimport {govHost} from \"../../helpers/Dom/template\";\r\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\r\nimport {isWindow} from \"../../helpers/Dom/win\";\r\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\r\nimport {validateProp} from \"../../helpers/Validate/props\";\r\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\r\n\r\n@Component({\r\n\ttag: \"gov-theme-switch\",\r\n})\r\nexport class GovThemeSwitch {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovThemeSwitchElement\r\n\r\n\t/**\r\n\t * Switch's size.\r\n\t */\r\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\r\n\t/**\r\n\t * Display switch label\r\n\t */\r\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\r\n\t/**\r\n\t * Label in light mode\r\n\t */\r\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přepnout na tmavý mód\"\r\n\t/**\r\n\t * Label in dark mode\r\n\t */\r\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\r\n\t/**\r\n\t * Label in light mode\r\n\t */\r\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\r\n\t/**\r\n\t * Label in dark mode\r\n\t */\r\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\r\n\t/**\r\n\t * Called when the theme is changed by the user\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\r\n\t}\r\n\r\n\t@Watch(\"theme\")\r\n\twatchTheme(newValue: ThemeList): void {\r\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\r\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\r\n\t\tthis.htmlElement.classList.add(newValue);\r\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\r\n\t}\r\n\r\n\t@State() theme: ThemeList = ThemeList.auto\r\n\r\n\tprivate get storageValue() {\r\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\r\n\t}\r\n\r\n\tprivate get htmlElement(): HTMLElement {\r\n\t\treturn document.documentElement\r\n\t}\r\n\r\n\tprivate get isSystemPrefersColorDark(): boolean {\r\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.initDefaultState()\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tprivate initDefaultState() {\r\n\t\tconst options = Object.keys(ThemeList);\r\n\t\tlet currentState = this.storageValue;\r\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\r\n\r\n\t\tif (currentState && options.includes(currentState)) {\r\n\t\t\tthis.theme = currentState as ThemeList;\r\n\t\t} else if (htmlState && options.includes(htmlState)) {\r\n\t\t\tthis.theme = htmlState as ThemeList;\r\n\t\t} else {\r\n\t\t\tthis.theme = ThemeList.auto;\r\n\t\t}\r\n\t}\r\n\r\n\tprivate setThemeState = (state: ThemeList) => {\r\n\t\tthis.theme = state;\r\n\r\n\t\tthis.govChange.emit({\r\n\t\t\tcomponent: ThemeSwitchClass.root,\r\n\t\t\tstate: this.theme,\r\n\t\t\tref: this.host\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\tlet isDark = this.theme === ThemeList.dark;\r\n\t\tif (this.theme === ThemeList.auto) {\r\n\t\t\tisDark = this.isSystemPrefersColorDark;\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\r\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\r\n\t\t\t\t size={this.size}>\r\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\r\n\t\t\t\t\t\taria-current={this.theme}\r\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\r\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t{this.displayLabel ? (\r\n\t\t\t\t\t\t\t<span class={ThemeSwitchClass.label}>\r\n\t\t\t\t\t\t\t\t{isDark ? this.labelDark : this.labelLight}\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t) : null\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t</button>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"gov-theme-switch.js","sourceRoot":"","sources":["../../../../../../src/components/gov-theme-switch/gov-theme-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAElG,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAC,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,EAAuB,MAAM,aAAa,CAAC;AAC3G,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\";\nimport {govHost} from \"../../helpers/Dom/template\";\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\nimport {isWindow} from \"../../helpers/Dom/win\";\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\n\n@Component({\n\ttag: \"gov-theme-switch\",\n})\nexport class GovThemeSwitch {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovThemeSwitchElement\n\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\n\t/**\n\t * Display switch label\n\t */\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přepnout na tmavý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\n\t/**\n\t * Called when the theme is changed by the user\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\n\t}\n\n\t@Watch(\"theme\")\n\twatchTheme(newValue: ThemeList): void {\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\n\t\tthis.htmlElement.classList.add(newValue);\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\n\t}\n\n\t@State() theme: ThemeList = ThemeList.auto\n\n\tprivate get storageValue() {\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\n\t}\n\n\tprivate get htmlElement(): HTMLElement {\n\t\treturn document.documentElement\n\t}\n\n\tprivate get isSystemPrefersColorDark(): boolean {\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.initDefaultState()\n\t\tthis.validateSize(this.size)\n\t}\n\n\tprivate initDefaultState() {\n\t\tconst options = Object.keys(ThemeList);\n\t\tlet currentState = this.storageValue;\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\n\n\t\tif (currentState && options.includes(currentState)) {\n\t\t\tthis.theme = currentState as ThemeList;\n\t\t} else if (htmlState && options.includes(htmlState)) {\n\t\t\tthis.theme = htmlState as ThemeList;\n\t\t} else {\n\t\t\tthis.theme = ThemeList.auto;\n\t\t}\n\t}\n\n\tprivate setThemeState = (state: ThemeList) => {\n\t\tthis.theme = state;\n\n\t\tthis.govChange.emit({\n\t\t\tcomponent: ThemeSwitchClass.root,\n\t\t\tstate: this.theme,\n\t\t\tref: this.host\n\t\t})\n\t}\n\n\trender() {\n\t\tlet isDark = this.theme === ThemeList.dark;\n\t\tif (this.theme === ThemeList.auto) {\n\t\t\tisDark = this.isSystemPrefersColorDark;\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\n\t\t\t\t size={this.size}>\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\n\t\t\t\t\t\taria-current={this.theme}\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{this.displayLabel ? (\n\t\t\t\t\t\t\t<span class={ThemeSwitchClass.label}>\n\t\t\t\t\t\t\t\t{isDark ? this.labelDark : this.labelLight}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t}\n\t\t\t\t\t</span>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-theme-switch.types.js","sourceRoot":"","sources":["../../../../../../src/components/gov-theme-switch/gov-theme-switch.types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACpB,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,0BAAa,CAAA;AACd,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB","sourcesContent":["import {GovBaseEvent} from \"../../types/event.types\";\r\n\r\nexport enum ThemeList {\r\n\tauto = 'auto',\r\n\tlight = 'light',\r\n\tdark = 'dark'\r\n}\r\n\r\nexport interface ThemeSwitchEvent extends GovBaseEvent {\r\n\tref: HTMLGovThemeSwitchElement;\r\n\tstate: ThemeList\r\n}\r\n\r\n"]}
1
+ {"version":3,"file":"gov-theme-switch.types.js","sourceRoot":"","sources":["../../../../../../src/components/gov-theme-switch/gov-theme-switch.types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACpB,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,0BAAa,CAAA;AACd,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB","sourcesContent":["import {GovBaseEvent} from \"../../types/event.types\";\n\nexport enum ThemeList {\n\tauto = 'auto',\n\tlight = 'light',\n\tdark = 'dark'\n}\n\nexport interface ThemeSwitchEvent extends GovBaseEvent {\n\tref: HTMLGovThemeSwitchElement;\n\tstate: ThemeList\n}\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tile/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGxD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,gBAAgB;IACtB,UAAU,EAAE,sBAAsB;CAClC,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const TileSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type TileSizesType = `${ValueOf<typeof TileSizes>}`\r\n\r\nexport const TileClass = {\r\n\troot: 'gov-tile',\r\n\tlink: 'gov-tile__link',\r\n\tcontent: 'gov-tile__content',\r\n\ttext: 'gov-tile__text',\r\n\ttitle: 'gov-tile__title',\r\n\ticon: 'gov-tile__icon',\r\n\tannotation: 'gov-tile__annotation',\r\n}\r\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tile/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGxD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,gBAAgB;IACtB,UAAU,EAAE,sBAAsB;CAClC,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TileSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type TileSizesType = `${ValueOf<typeof TileSizes>}`\n\nexport const TileClass = {\n\troot: 'gov-tile',\n\tlink: 'gov-tile__link',\n\tcontent: 'gov-tile__content',\n\ttext: 'gov-tile__text',\n\ttitle: 'gov-tile__title',\n\ticon: 'gov-tile__icon',\n\tannotation: 'gov-tile__annotation',\n}\n"]}
@@ -14,7 +14,7 @@ export class GovTile {
14
14
  this.h = govHost(this.host);
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: '31fcebee125c753089b2229cea0033dce9aa3133', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, h("slot", { key: 'b79748ea55bb2e86d887860c1143d82d75497966', name: "icon" }), h("div", { key: 'db8b61554f6943612c9d7165174926cfd205fcfb', class: TileClass.content }, h("div", { key: 'e844267c106109d0470176d3c89539f8f987c70f', class: TileClass.text }, h("div", { key: 'e4771f568d8848b87045293ebb10af5679f1a3b7', class: TileClass.title }, this.href ? (h(Fragment, null, h("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, h("slot", { name: "title" })), h("span", { class: TileClass.icon }, h("gov-icon", { name: "chevron-right", type: "components" })))) : (h("slot", { name: "title" }))), h("div", { key: 'cf1bf1a1c29e8879dc509b484325b82808db792a', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, h("slot", { key: '9a10f28fd144f1131eae6735342da9a5d93665e2' }))), h("slot", { key: '067476f1a27bad0fb50d86789a729f93b1f1e5ad', name: "button" }))));
17
+ return (h(Host, { key: '675f324a6b643d22ae4b737f2049f0f1a51e4972', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, h("slot", { key: '4dc974090359d27cd89e7b7af38f56fd016608d5', name: "icon" }), h("div", { key: '9d3c42f854fe4178886d6218cc99de44c6a27335', class: TileClass.content }, h("div", { key: '97891e205f08b2b4c81110bcb7bb3c4ed48362ed', class: TileClass.text }, h("div", { key: '6446384bd51f13aff4b9ff0144a4240fe1465b8d', class: TileClass.title }, this.href ? (h(Fragment, null, h("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, h("slot", { name: "title" })), h("span", { class: TileClass.icon }, h("gov-icon", { name: "chevron-right", type: "components" })))) : (h("slot", { name: "title" }))), h("div", { key: 'e25fe83f7f147582005341bb951ac2221bebbfbf', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, h("slot", { key: '5c87e54b826d3e4fbb8231c19e66db7961e63a60' }))), h("slot", { key: 'ab53f48d63dbc279788e4f83d77beb7eaabc1425', name: "button" }))));
18
18
  }
19
19
  /**
20
20
  * Returns a clickable element instance
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tile.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tile/gov-tile.tsx"],"names":[],"mappings":"AAAA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AAI,EAAC,eAAe,EAAC,IAAI,EAAC,YAAY,GAAY,CACtD,CACG,CACX,CAAC,CAAC,CAAC,CACH,YAAM,IAAI,EAAC,OAAO,GAAE,CACpB,CACI;oBACN,4DAAK,KAAK,EAAE,GAAG,SAAS,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,UAAU,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE;wBAC3F,8DAAO,CACF,CACD;gBACN,6DAAM,IAAI,EAAC,QAAQ,GAAE,CAChB,CACA,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,aAAa;QAClB,OAAO,IAAI,CAAC,UAAU,CAAA;IACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Fragment, h, Host, Method, Prop} from \"@stencil/core\"\r\nimport {TileClass, TileSizesType} from \"./constants\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {ButtonTargetType} from \"../gov-button/button/constants\"\r\n\r\n@Component({\r\n\ttag: \"gov-tile\",\r\n})\r\nexport class GovTile {\r\n\t@Element() host: HTMLGovTileElement\r\n\t/**\r\n\t * Tile’s size\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: TileSizesType = \"m\"\r\n\t/**\r\n\t * Style variation of the tile.\r\n\t */\r\n\t@Prop() readonly orientation: \"vertical\" | \"horizontal\"\r\n\t/**\r\n\t * Tiles border\r\n\t */\r\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\r\n\t/**\r\n\t * Link on whole tile\r\n\t */\r\n\t@Prop({reflect: true}) readonly href: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\r\n\t */\r\n\t@Prop() readonly target?: ButtonTargetType\r\n\tprivate triggerRef?: HTMLLinkElement | HTMLSpanElement\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TileClass.root)}\r\n\t\t\t\t size={this.size}\r\n\t\t\t\t orientation={this.orientation}\r\n\t\t\t\t clickable={this.href ? true : null}\r\n\t\t\t>\r\n\t\t\t\t<slot name=\"icon\"/>\r\n\t\t\t\t<div class={TileClass.content}>\r\n\t\t\t\t\t<div class={TileClass.text}>\r\n\t\t\t\t\t\t<div class={TileClass.title}>\r\n\t\t\t\t\t\t\t{this.href ? (\r\n\t\t\t\t\t\t\t\t<Fragment>\r\n\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\thref={this.href}\r\n\t\t\t\t\t\t\t\t\t\ttarget={this.target}\r\n\t\t\t\t\t\t\t\t\t\tclass={TileClass.link}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLSpanElement)}>\r\n\t\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\r\n\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t<span class={TileClass.icon}>\r\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-right\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t</Fragment>\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t<slot name=\"title\"/>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class={`${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}`}>\r\n\t\t\t\t\t\t\t<slot/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<slot name=\"button\"/>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a clickable element instance\r\n\t */\r\n\t@Method()\r\n\tasync getTriggerRef() {\r\n\t\treturn this.triggerRef\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"gov-tile.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tile/gov-tile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AACjF,OAAO,EAAC,SAAS,EAAgB,MAAM,aAAa,CAAA;AACpD,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAOlD,MAAM,OAAO,OAAO;IA0BnB;QAxBA;;WAEG;QAC6B,SAAI,GAAmB,GAAG,CAAA;QAK1D;;WAEG;QACwC,aAAQ,GAAY,KAAK,CAAA;QAcnE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EACxC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;YAEpC,6DAAM,IAAI,EAAC,MAAM,GAAE;YACnB,4DAAK,KAAK,EAAE,SAAS,CAAC,OAAO;gBAC5B,4DAAK,KAAK,EAAE,SAAS,CAAC,IAAI;oBACzB,4DAAK,KAAK,EAAE,SAAS,CAAC,KAAK,IACzB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACZ,EAAC,QAAQ;wBACR,SACC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,SAAS,CAAC,IAAI,EACrB,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,EAAuC,CAAC;4BACtE,YAAM,IAAI,EAAC,OAAO,GAAE,CACjB;wBACJ,YAAM,KAAK,EAAE,SAAS,CAAC,IAAI;4BAC1B,gBAAU,IAAI,EAAC,eAAe,EAAC,IAAI,EAAC,YAAY,GAAY,CACtD,CACG,CACX,CAAC,CAAC,CAAC,CACH,YAAM,IAAI,EAAC,OAAO,GAAE,CACpB,CACI;oBACN,4DAAK,KAAK,EAAE,GAAG,SAAS,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,UAAU,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE;wBAC3F,8DAAO,CACF,CACD;gBACN,6DAAM,IAAI,EAAC,QAAQ,GAAE,CAChB,CACA,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,aAAa;QAClB,OAAO,IAAI,CAAC,UAAU,CAAA;IACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Fragment, h, Host, Method, Prop} from \"@stencil/core\"\nimport {TileClass, TileSizesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {ButtonTargetType} from \"../gov-button/button/constants\"\n\n@Component({\n\ttag: \"gov-tile\",\n})\nexport class GovTile {\n\t@Element() host: HTMLGovTileElement\n\t/**\n\t * Tile’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: TileSizesType = \"m\"\n\t/**\n\t * Style variation of the tile.\n\t */\n\t@Prop() readonly orientation: \"vertical\" | \"horizontal\"\n\t/**\n\t * Tiles border\n\t */\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\n\t/**\n\t * Link on whole tile\n\t */\n\t@Prop({reflect: true}) readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\tprivate triggerRef?: HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TileClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t orientation={this.orientation}\n\t\t\t\t clickable={this.href ? true : null}\n\t\t\t>\n\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t<div class={TileClass.content}>\n\t\t\t\t\t<div class={TileClass.text}>\n\t\t\t\t\t\t<div class={TileClass.title}>\n\t\t\t\t\t\t\t{this.href ? (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\thref={this.href}\n\t\t\t\t\t\t\t\t\t\ttarget={this.target}\n\t\t\t\t\t\t\t\t\t\tclass={TileClass.link}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLSpanElement)}>\n\t\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t<span class={TileClass.icon}>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-right\" type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={`${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}`}>\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot name=\"button\"/>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-toast/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAGxC,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG9F,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACpB,0BAAa,CAAA;IACb,8BAAiB,CAAA;AAClB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAGD,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,mBAAmB;IAC3B,OAAO,EAAE,oBAAoB;IAC7B,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,kBAAkB;IACzB,KAAK,EAAE,kBAAkB;CACzB,CAAA","sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const ToastColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\r\nexport type ToastColorType = `${ValueOf<typeof ToastColors>}`\r\n\r\nexport enum ToastType {\r\n\tBOLD = 'bold',\r\n\tSUBTLE = 'subtle',\r\n}\r\nexport type ToastTypesType = `${ValueOf<typeof ToastType>}`\r\n\r\nexport const ToastClass = {\r\n\troot: 'gov-toast',\r\n\thidden: 'gov-toast--hidden',\r\n\tcontent: 'gov-toast__content',\r\n\ticon: 'gov-toast__icon',\r\n\tclose: 'gov-toast__close',\r\n\ttimer: 'gov-toast__timer',\r\n}\r\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-toast/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAGxC,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG9F,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACpB,0BAAa,CAAA;IACb,8BAAiB,CAAA;AAClB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAGD,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,mBAAmB;IAC3B,OAAO,EAAE,oBAAoB;IAC7B,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,kBAAkB;IACzB,KAAK,EAAE,kBAAkB;CACzB,CAAA","sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const ToastColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ToastColorType = `${ValueOf<typeof ToastColors>}`\n\nexport enum ToastType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type ToastTypesType = `${ValueOf<typeof ToastType>}`\n\nexport const ToastClass = {\n\troot: 'gov-toast',\n\thidden: 'gov-toast--hidden',\n\tcontent: 'gov-toast__content',\n\ticon: 'gov-toast__icon',\n\tclose: 'gov-toast__close',\n\ttimer: 'gov-toast__timer',\n}\n"]}
@@ -67,7 +67,7 @@ export class GovToast {
67
67
  }
68
68
  }
69
69
  render() {
70
- return (h(Host, { key: '623b9b85e6b10894429d50c4624bac71808d29ad', class: this.h.classes(ToastClass.root), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, color: this.color, type: this.type, style: { "--toast-duration": this.time + "ms" } }, this.h.hasSlot("icon") && (h("span", { key: 'ae58b921c0aff0f678176c24d4cf69d05fb6cdab', class: ToastClass.icon }, h("slot", { key: '40d58461b3e16abd1d4cd627057e986548ac63c1', name: "icon" }))), h("div", Object.assign({ key: 'b003f0521f3fb5095b94280e2cf252b2a26ccaed', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), h("slot", { key: '4743ada7cc1d31d6ca07871228d3fadc3576982f' })), h("gov-button", { key: '0d4e9bae29391f47389abbc2ada9ca9edaa13b97', size: "s", "aria-label": this.accessibleCloseLabel, color: this.isBold ? this.color : "neutral", type: "base", "on-gov-click": this.onCloseHandler.bind(this), class: ToastClass.close }, this.closeLabel ? this.closeLabel : h("gov-icon", { name: "x-lg", type: "components" })), h("div", { key: 'a8cb56376d11503abe586598f330476a45f59c8e', class: ToastClass.timer })));
70
+ return (h(Host, { key: '987e5c487dd42f713414dcb0db4c5324db61bc46', class: this.h.classes(ToastClass.root), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, color: this.color, type: this.type, style: { "--toast-duration": this.time + "ms" } }, this.h.hasSlot("icon") && (h("span", { key: '1ebdf5e3b7a44dfa2c5489a3d23f5b7aff2368b4', class: ToastClass.icon }, h("slot", { key: 'be28a32d3ff38e6c9adcaee780cfab4b814c4291', name: "icon" }))), h("div", Object.assign({ key: 'c8a8040d1b724d0e59d10a7dfde32870912c5bed', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), h("slot", { key: '021b0fede68c4f897c28b1f6ef7b088d71740ec3' })), h("gov-button", { key: '1792f238afbba0ad073cd5513044b15d43cbe07b', size: "s", "aria-label": this.accessibleCloseLabel, color: this.isBold ? this.color : "neutral", type: "base", "on-gov-click": this.onCloseHandler.bind(this), class: ToastClass.close }, this.closeLabel ? this.closeLabel : h("gov-icon", { name: "x-lg", type: "components" })), h("div", { key: 'b467970959f395a2c14182d98a06b17e471611b4', class: ToastClass.timer })));
71
71
  }
72
72
  onCloseHandler() {
73
73
  this.govClose.emit(this.toastId);
@@ -1 +1 @@
1
- {"version":3,"file":"gov-toast.js","sourceRoot":"","sources":["../../../../../../src/components/gov-toast/gov-toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAC,UAAU,EAAE,WAAW,EAAiC,MAAM,aAAa,CAAA;AACnF,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAC,iBAAiB,EAAa,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAC,cAAc,EAAC,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAKhF,MAAM,OAAO,QAAQ;IAMpB;QAMA;;WAEG;QACc,UAAK,GAAoB,SAAS,CAAA;QAEnD;;WAEG;QACc,YAAO,GAAqB,KAAK,CAAA;QAClD;;WAEG;QACc,aAAQ,GAAgC,OAAO,CAAA;QAChE;;WAEG;QACc,SAAI,GAAoB,MAAM,CAAA;QAC/C;;WAEG;QACc,SAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {ToastClass, ToastColors, ToastColorType, ToastTypesType} from \"./constants\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {createID} from \"../../utils/string.utils\"\r\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\r\n\r\n@Component({\r\n\ttag: \"gov-toast\",\r\n})\r\nexport class GovToast {\r\n\tprivate h: GovHost\r\n\tprivate timeout\r\n\tprivate readonly toastId: string\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.toastId = createID(\"GovToast\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovToastElement\r\n\t/**\r\n\t * Style variation of the toast message.\r\n\t */\r\n\t@Prop() readonly color?: ToastColorType = \"primary\"\r\n\r\n\t/**\r\n\t * Toast’s gravity\r\n\t */\r\n\t@Prop() readonly gravity: \"top\" | \"bottom\" = \"top\"\r\n\t/**\r\n\t * Toast’s position\r\n\t */\r\n\t@Prop() readonly position: \"left\" | \"center\" | \"right\" = \"right\"\r\n\t/**\r\n\t * Toast type\r\n\t */\r\n\t@Prop() readonly type?: ToastTypesType = \"bold\"\r\n\t/**\r\n\t * Number of milliseconds to wait before Toast disappear\r\n\t */\r\n\t@Prop() readonly time: number = 0\r\n\t/**\r\n\t * Closing button texting instead of icons\r\n\t */\r\n\t@Prop({attribute: \"close-label\"}) readonly closeLabel: string\r\n\t/**\r\n\t * Aria label for the closing button. It is mandatory if the alert is closable\r\n\t */\r\n\t@Prop({attribute: \"accessible-close-label\"}) readonly accessibleCloseLabel: string\r\n\t/**\r\n\t * Called when the close button is clicked\r\n\t */\r\n\t@Event({eventName: \"gov-close\"}) govClose: EventEmitter<string>\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ToastColors, newValue, ToastClass.root)\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.runTimer()\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\r\n\tdisconnectedCallback() {\r\n\t\tclearTimeout(this.timeout)\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tprivate runTimer() {\r\n\t\tif (this.isTimer) {\r\n\t\t\tthis.timeout = setTimeout(() => {\r\n\t\t\t\tthis.host.classList.add(ToastClass.hidden)\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.destroy().catch()\r\n\t\t\t\t\tthis.govClose.emit(this.toastId)\r\n\t\t\t\t}, 600)\r\n\t\t\t}, this.time)\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes(ToastClass.root)}\r\n\t\t\t\tdata-toast-id={this.toastId}\r\n\t\t\t\tgravity={this.gravity}\r\n\t\t\t\tposition={this.position}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t\tstyle={{\"--toast-duration\": this.time + \"ms\"}}\r\n\t\t\t>\r\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\r\n\t\t\t\t\t<span class={ToastClass.icon}>\r\n\t\t\t\t\t\t<slot name=\"icon\"/>\r\n\t\t\t\t\t</span>\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t<div class={ToastClass.content} {...this.inheritedAttributes} aria-live=\"polite\" role=\"status\">\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<gov-button\r\n\t\t\t\t\tsize=\"s\"\r\n\t\t\t\t\taria-label={this.accessibleCloseLabel}\r\n\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\r\n\t\t\t\t\ttype=\"base\"\r\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\r\n\t\t\t\t\tclass={ToastClass.close}\r\n\t\t\t\t>\r\n\t\t\t\t\t{this.closeLabel ? this.closeLabel : <gov-icon name=\"x-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t</gov-button>\r\n\r\n\t\t\t\t<div class={ToastClass.timer}></div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onCloseHandler(): void {\r\n\t\tthis.govClose.emit(this.toastId)\r\n\t\tthis.destroy().catch()\r\n\t}\r\n\r\n\tget isBold(): boolean {\r\n\t\treturn this.type === \"bold\"\r\n\t}\r\n\r\n\tget isTimer(): boolean {\r\n\t\treturn Number.isInteger(this.time) && this.time > 0\r\n\t}\r\n\r\n\t/**\r\n\t * Remove toast from dom\r\n\t */\r\n\t@Method()\r\n\tasync destroy(): Promise<void> {\r\n\t\tclearTimeout(this.timeout)\r\n\t\tconst toast = document.querySelector(`[data-toast-id=\"${this.toastId}\"]`)\r\n\t\tif (toast) {\r\n\t\t\ttoast.classList.add(ToastClass.hidden)\r\n\t\t\tif (typeof toast.remove === \"function\") {\r\n\t\t\t\ttoast.rem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C,IAAI,CAAC,OAAO,CAAC,CAAA;QAChC,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAA;IACvB,CAAC;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;IAC5B,CAAC;IAED,IAAI,OAAO;QACV,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,CAAA;IACpD,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,OAAO;QACZ,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC1B,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,mBAAmB,IAAI,CAAC,OAAO,IAAI,CAAC,CAAA;QACzE,IAAI,KAAK,EAAE,CAAC;YACX,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;YACtC,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;gBACxC,KAAK,CAAC,MAAM,EAAE,CAAA;YACf,CAAC;QACF,CAAC;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {ToastClass, ToastColors, ToastColorType, ToastTypesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {createID} from \"../../utils/string.utils\"\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-toast\",\n})\nexport class GovToast {\n\tprivate h: GovHost\n\tprivate timeout\n\tprivate readonly toastId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.toastId = createID(\"GovToast\")\n\t}\n\n\t@Element() host: HTMLGovToastElement\n\t/**\n\t * Style variation of the toast message.\n\t */\n\t@Prop() readonly color?: ToastColorType = \"primary\"\n\n\t/**\n\t * Toast’s gravity\n\t */\n\t@Prop() readonly gravity: \"top\" | \"bottom\" = \"top\"\n\t/**\n\t * Toast’s position\n\t */\n\t@Prop() readonly position: \"left\" | \"center\" | \"right\" = \"right\"\n\t/**\n\t * Toast type\n\t */\n\t@Prop() readonly type?: ToastTypesType = \"bold\"\n\t/**\n\t * Number of milliseconds to wait before Toast disappear\n\t */\n\t@Prop() readonly time: number = 0\n\t/**\n\t * Closing button texting instead of icons\n\t */\n\t@Prop({attribute: \"close-label\"}) readonly closeLabel: string\n\t/**\n\t * Aria label for the closing button. It is mandatory if the alert is closable\n\t */\n\t@Prop({attribute: \"accessible-close-label\"}) readonly accessibleCloseLabel: string\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: \"gov-close\"}) govClose: EventEmitter<string>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ToastColors, newValue, ToastClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.runTimer()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\n\tdisconnectedCallback() {\n\t\tclearTimeout(this.timeout)\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate runTimer() {\n\t\tif (this.isTimer) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.classList.add(ToastClass.hidden)\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.destroy().catch()\n\t\t\t\t\tthis.govClose.emit(this.toastId)\n\t\t\t\t}, 600)\n\t\t\t}, this.time)\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(ToastClass.root)}\n\t\t\t\tdata-toast-id={this.toastId}\n\t\t\t\tgravity={this.gravity}\n\t\t\t\tposition={this.position}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tstyle={{\"--toast-duration\": this.time + \"ms\"}}\n\t\t\t>\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<span class={ToastClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={ToastClass.content} {...this.inheritedAttributes} aria-live=\"polite\" role=\"status\">\n\t\t\t\t\t<slot/>\n\t\t\t\t</div>\n\n\t\t\t\t<gov-button\n\t\t\t\t\tsize=\"s\"\n\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\tclass={ToastClass.close}\n\t\t\t\t>\n\t\t\t\t\t{this.closeLabel ? this.closeLabel : <gov-icon name=\"x-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t</gov-button>\n\n\t\t\t\t<div class={ToastClass.timer}></div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(): void {\n\t\tthis.govClose.emit(this.toastId)\n\t\tthis.destroy().catch()\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n\n\tget isTimer(): boolean {\n\t\treturn Number.isInteger(this.time) && this.time > 0\n\t}\n\n\t/**\n\t * Remove toast from dom\n\t */\n\t@Method()\n\tasync destroy(): Promise<void> {\n\t\tclearTimeout(this.timeout)\n\t\tconst toast = document.querySelector(`[data-toast-id=\"${this.toastId}\"]`)\n\t\tif (toast) {\n\t\t\ttoast.classList.add(ToastClass.hidden)\n\t\t\tif (typeof toast.remove === \"function\") {\n\t\t\t\ttoast.remove()\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tooltip/constants.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAExC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAGjE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAG1D,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IAC1B,8BAAW,CAAA;IACX,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACd,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAGD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;CACnB,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAClC,IAAI,EAAE,qBAAqB;CAC3B,CAAA","sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { Sizes } from '../../core/constants/sizes'\r\nimport { ValueOf } from '../../types/interfaces'\r\nimport { pick } from '../../utils/utils'\r\n\r\nexport const TooltipColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\r\nexport type TooltipColorType = `${ValueOf<typeof TooltipColors>}`\r\n\r\nexport const TooltipSize = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type TooltipSizeType = `${ValueOf<typeof TooltipSize>}`\r\n\r\nexport enum TooltipPosition {\r\n\tTOP = 'top',\r\n\tRIGHT = 'right',\r\n\tBOTTOM = 'bottom',\r\n\tLEFT = 'left',\r\n}\r\nexport type TooltipPositionType = `${ValueOf<typeof TooltipPosition>}`\r\n\r\nexport const TooltipClass = {\r\n\troot: 'gov-tooltip',\r\n}\r\n\r\nexport const TooltipContentClass = {\r\n\troot: 'gov-tooltip-content',\r\n}\r\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tooltip/constants.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAExC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAGjE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAG1D,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IAC1B,8BAAW,CAAA;IACX,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACd,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAGD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;CACnB,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAClC,IAAI,EAAE,qBAAqB;CAC3B,CAAA","sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { Sizes } from '../../core/constants/sizes'\nimport { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\n\nexport const TooltipColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\nexport type TooltipColorType = `${ValueOf<typeof TooltipColors>}`\n\nexport const TooltipSize = pick(Sizes, ['_S', '_M', '_L'])\nexport type TooltipSizeType = `${ValueOf<typeof TooltipSize>}`\n\nexport enum TooltipPosition {\n\tTOP = 'top',\n\tRIGHT = 'right',\n\tBOTTOM = 'bottom',\n\tLEFT = 'left',\n}\nexport type TooltipPositionType = `${ValueOf<typeof TooltipPosition>}`\n\nexport const TooltipClass = {\n\troot: 'gov-tooltip',\n}\n\nexport const TooltipContentClass = {\n\troot: 'gov-tooltip-content',\n}\n"]}
@@ -44,7 +44,7 @@ export class GovTooltipContent {
44
44
  }
45
45
  }
46
46
  render() {
47
- return (h(Host, { key: 'a826527fe9f7851ad25f700156d987c1b29f3adc', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, h("slot", { key: 'd3891d8a3f3df7ee7f852db8485c7ecc2f61992c' }), this.persist ? (h("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, h("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
47
+ return (h(Host, { key: '71d259cc8d7247030767f8ac36a6875f9c16ffea', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, h("slot", { key: '06d883340271717da9d0b8de6c35339cd5c9dfb9' }), this.persist ? (h("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, h("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
48
48
  }
49
49
  static get is() { return "gov-tooltip-content"; }
50
50
  static get properties() {