@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 @@ const GovTile = class {
30
30
  this.h = template.govHost(this.host);
31
31
  }
32
32
  render() {
33
- return (index.h(index.Host, { key: '31fcebee125c753089b2229cea0033dce9aa3133', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, index.h("slot", { key: 'b79748ea55bb2e86d887860c1143d82d75497966', name: "icon" }), index.h("div", { key: 'db8b61554f6943612c9d7165174926cfd205fcfb', class: TileClass.content }, index.h("div", { key: 'e844267c106109d0470176d3c89539f8f987c70f', class: TileClass.text }, index.h("div", { key: 'e4771f568d8848b87045293ebb10af5679f1a3b7', class: TileClass.title }, this.href ? (index.h(index.Fragment, null, index.h("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, index.h("slot", { name: "title" })), index.h("span", { class: TileClass.icon }, index.h("gov-icon", { name: "chevron-right", type: "components" })))) : (index.h("slot", { name: "title" }))), index.h("div", { key: 'cf1bf1a1c29e8879dc509b484325b82808db792a', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, index.h("slot", { key: '9a10f28fd144f1131eae6735342da9a5d93665e2' }))), index.h("slot", { key: '067476f1a27bad0fb50d86789a729f93b1f1e5ad', name: "button" }))));
33
+ return (index.h(index.Host, { key: '675f324a6b643d22ae4b737f2049f0f1a51e4972', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, index.h("slot", { key: '4dc974090359d27cd89e7b7af38f56fd016608d5', name: "icon" }), index.h("div", { key: '9d3c42f854fe4178886d6218cc99de44c6a27335', class: TileClass.content }, index.h("div", { key: '97891e205f08b2b4c81110bcb7bb3c4ed48362ed', class: TileClass.text }, index.h("div", { key: '6446384bd51f13aff4b9ff0144a4240fe1465b8d', class: TileClass.title }, this.href ? (index.h(index.Fragment, null, index.h("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, index.h("slot", { name: "title" })), index.h("span", { class: TileClass.icon }, index.h("gov-icon", { name: "chevron-right", type: "components" })))) : (index.h("slot", { name: "title" }))), index.h("div", { key: 'e25fe83f7f147582005341bb951ac2221bebbfbf', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, index.h("slot", { key: '5c87e54b826d3e4fbb8231c19e66db7961e63a60' }))), index.h("slot", { key: 'ab53f48d63dbc279788e4f83d77beb7eaabc1425', name: "button" }))));
34
34
  }
35
35
  /**
36
36
  * Returns a clickable element instance
@@ -1 +1 @@
1
- {"file":"gov-tile.entry.cjs.js","mappings":";;;;;;;AAIyBA,UAAI,CAACC,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AAGhD,MAAM,SAAS,GAAG;AACxB,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,KAAK,EAAE,iBAAiB;AACxB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,UAAU,EAAE,sBAAsB;CAClC;;MCNY,OAAO,GAAA,MAAA;AA0BnB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAxBA;;AAEG;AAC6B,QAAA,IAAI,CAAA,IAAA,GAAmB,GAAG;AAK1D;;AAEG;AACwC,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;QAcnE,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;IAED,MAAM,GAAA;AACL,QAAA,QACCC,OAAC,CAAAC,UAAI,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,GAAG,IAAI,GAAG,IAAI,EAAA,EAEpCD,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAA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AAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,QAAQ,GAAE,CAChB,CACA;;AAIT;;AAEG;AAEH,IAAA,MAAM,aAAa,GAAA;QAClB,OAAO,IAAI,CAAC,UAAU;;;;;;;","names":["pick","Sizes","govHost","h","Host","Fragment"],"sources":["../../../packages/core/src/components/gov-tile/constants.ts","../../../packages/core/src/components/gov-tile/gov-tile.tsx"],"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","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"],"version":3}
1
+ {"file":"gov-tile.entry.cjs.js","mappings":";;;;;;;AAIyBA,UAAI,CAACC,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AAGhD,MAAM,SAAS,GAAG;AACxB,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,KAAK,EAAE,iBAAiB;AACxB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,UAAU,EAAE,sBAAsB;CAClC;;MCNY,OAAO,GAAA,MAAA;AA0BnB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAxBA;;AAEG;AAC6B,QAAA,IAAI,CAAA,IAAA,GAAmB,GAAG;AAK1D;;AAEG;AACwC,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;QAcnE,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;IAED,MAAM,GAAA;AACL,QAAA,QACCC,OAAC,CAAAC,UAAI,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,GAAG,IAAI,GAAG,IAAI,EAAA,EAEpCD,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,MAAM,EAAE,CAAA,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AM,IAAI,EAAC,QAAQ,GAAE,CAChB,CACA;;AAIT;;AAEG;AAEH,IAAA,MAAM,aAAa,GAAA;QAClB,OAAO,IAAI,CAAC,UAAU;;;;;;;","names":["pick","Sizes","govHost","h","Host","Fragment"],"sources":["../../../packages/core/src/components/gov-tile/constants.ts","../../../packages/core/src/components/gov-tile/gov-tile.tsx"],"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","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"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tile.entry.cjs.js","sources":["../../../packages/core/src/components/gov-tile/constants.ts","../../../packages/core/src/components/gov-tile/gov-tile.tsx"],"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","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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../../packages/core/src/components/gov-tile/gov-tile.tsx"],"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","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"],"names":["pick","Sizes","govHost","h","Host","Fragment"],"mappings":";;;;;;;AAIyBA,UAAI,CAACC,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AAGhD,MAAM,SAAS,GAAG;AACxB,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,OAAO,EAAE,mBAAmB;AA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S,CAAC,IAAI,EACrB,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,UAAU,GAAG,EAAuC,CAAC,EAAA,EACtEA,OAAA,CAAA,MAAA,EAAA,EAAM,IAAI,EAAC,OAAO,EAAA,CAAE,CACjB,EACJA,OAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,SAAS,CAAC,IAAI,EAAA,EAC1BA,OAAU,CAAA,UAAA,EAAA,EAAA,IAAI,EAAC,eAAe,EAAC,IAAI,EAAC,YAAY,GAAY,CACtD,CACG,KAEXA,OAAA,CAAA,MAAA,EAAA,EAAM,IAAI,EAAC,OAAO,EAAE,CAAA,CACpB,CACI,EACNA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,CAAG,EAAA,SAAS,CAAC,UAAU,CAAI,CAAA,EAAA,IAAI,CAAC,IAAI,GAAG,CAAG,EAAA,SAAS,CAAC,UAAU,WAAW,GAAG,EAAE,CAAE,CAAA,EAAA,EAC3FA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAO,CACF,CACD,EACNA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,QAAQ,GAAE,CAChB,CACA;;AAIT;;AAEG;AAEH,IAAA,MAAM,aAAa,GAAA;QAClB,OAAO,IAAI,CAAC,UAAU;;;;;;;"}
@@ -88,7 +88,7 @@ const GovToast = class {
88
88
  }
89
89
  }
90
90
  render() {
91
- return (index.h(index.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") && (index.h("span", { key: 'ae58b921c0aff0f678176c24d4cf69d05fb6cdab', class: ToastClass.icon }, index.h("slot", { key: '40d58461b3e16abd1d4cd627057e986548ac63c1', name: "icon" }))), index.h("div", Object.assign({ key: 'b003f0521f3fb5095b94280e2cf252b2a26ccaed', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), index.h("slot", { key: '4743ada7cc1d31d6ca07871228d3fadc3576982f' })), index.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 : index.h("gov-icon", { name: "x-lg", type: "components" })), index.h("div", { key: 'a8cb56376d11503abe586598f330476a45f59c8e', class: ToastClass.timer })));
91
+ return (index.h(index.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") && (index.h("span", { key: '1ebdf5e3b7a44dfa2c5489a3d23f5b7aff2368b4', class: ToastClass.icon }, index.h("slot", { key: 'be28a32d3ff38e6c9adcaee780cfab4b814c4291', name: "icon" }))), index.h("div", Object.assign({ key: 'c8a8040d1b724d0e59d10a7dfde32870912c5bed', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), index.h("slot", { key: '021b0fede68c4f897c28b1f6ef7b088d71740ec3' })), index.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 : index.h("gov-icon", { name: "x-lg", type: "components" })), index.h("div", { key: 'b467970959f395a2c14182d98a06b17e471611b4', class: ToastClass.timer })));
92
92
  }
93
93
  onCloseHandler() {
94
94
  this.govClose.emit(this.toastId);
@@ -1 +1 @@
1
- {"file":"gov-toast.entry.cjs.js","mappings":";;;;;;;;;;;;AAIO,MAAM,WAAW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S,EAC3C,IAAI,EAAC,MAAM,EACG,cAAA,EAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAC5C,KAAK,EAAE,UAAU,CAAC,KAAK,EAEtB,EAAA,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,GAAGA,OAAU,CAAA,UAAA,EAAA,EAAA,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,YAAY,GAAY,CAC5E,EAEbA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,UAAU,CAAC,KAAK,EAAQ,CAAA,CAC9B;;IAID,cAAc,GAAA;QACrB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;AAChC,QAAA,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE;;AAGvB,IAAA,IAAI,MAAM,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM;;AAG5B,IAAA,IAAI,OAAO,GAAA;AACV,QAAA,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC;;AAGpD;;AAEG;AAEH,IAAA,MAAM,OAAO,GAAA;AACZ,QAAA,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;AAC1B,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAmB,gBAAA,EAAA,IAAI,CAAC,OAAO,CAAI,EAAA,CAAA,CAAC;QACzE,IAAI,KAAK,EAAE;YACV,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC;AACtC,YAAA,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,UAAU,EAAE;gBACvC,KAAK,CAAC,MAAM,EAAE;;;;;;;;;;;;","names":["pick","Colors","govHost","createID","validateProp","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host"],"sources":["../../../packages/core/src/components/gov-toast/constants.ts","../../../packages/core/src/components/gov-toast/gov-toast.tsx"],"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","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.remove()\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],"version":3}
1
+ {"file":"gov-toast.entry.cjs.js","mappings":";;;;;;;;;;;;AAIO,MAAM,WAAW,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAG9F,IAAY,SAGX;AAHD,CAAA,UAAY,SAAS,EAAA;AACpB,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,SAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHW,SAAS,KAAT,SAAS,GAGpB,EAAA,CAAA,CAAA;AAGM,MAAM,UAAU,GAAG;AACzB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,MAAM,EAAE,mBAAmB;AAC3B,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,KAAK,EAAE,kBAAkB;AACzB,IAAA,KAAK,EAAE,kBAAkB;CACzB;;MCPY,QAAQ,GAAA,MAAA;AAMpB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAMA;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,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V,QAAA,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC;;AAGpD;;AAEG;AAEH,IAAA,MAAM,OAAO,GAAA;AACZ,QAAA,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;AAC1B,QAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAmB,gBAAA,EAAA,IAAI,CAAC,OAAO,CAAI,EAAA,CAAA,CAAC;QACzE,IAAI,KAAK,EAAE;YACV,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC;AACtC,YAAA,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,UAAU,EAAE;gBACvC,KAAK,CAAC,MAAM,EAAE;;;;;;;;;;;;","names":["pick","Colors","govHost","createID","validateProp","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host"],"sources":["../../../packages/core/src/components/gov-toast/constants.ts","../../../packages/core/src/components/gov-toast/gov-toast.tsx"],"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","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"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-toast.entry.cjs.js","sources":["../../../packages/core/src/components/gov-toast/constants.ts","../../../packages/core/src/components/gov-toast/gov-toast.tsx"],"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","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.remove()\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],"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M,EAAE;;;;;;;;;;;;"}
1
+ {"version":3,"file":"gov-toast.entry.cjs.js","sources":["../../../packages/core/src/components/gov-toast/constants.ts","../../../packages/core/src/components/gov-toast/gov-toast.tsx"],"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","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"],"names":["pick","Colors","govHost","createID","validateProp","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host"],"mappings":";;;;;;;;;;;;AAIO,MAAM,WAAW,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAG9F,IAAY,SAGX;AAHD,CAAA,UAAY,SAAS,EAAA;AACpB,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,SAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHW,SAAS,KAAT,SAAS,GAGpB,EAAA,CAAA,CAAA;AAGM,MAAM,UAAU,GAAG;AACzB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,MAAM,EAAE,mBAAmB;AAC3B,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,KAAK,EAAE,kBAAkB;AACzB,IAAA,KAAK,EAAE,kBAAkB;CACzB;;MCPY,QAAQ,GAAA,MAAA;AAMpB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAMA;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,GAAoB,SAAS;AAEnD;;AAEG;AACc,QAAA,IAAO,CAAA,OAAA,GAAqB,KAAK;AAClD;;AAEG;AACc,QAAA,IAAQ,CAAA,QAAA,GAAgC,OAAO;AAChE;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAoB,MAAM;AAC/C;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAW,CAAC;AAmBxB,QAAA,IAAmB,CAAA,mBAAA,GAAe,EAAE;QA5C5C,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,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AC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC;AACtC,YAAA,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,UAAU,EAAE;gBACvC,KAAK,CAAC,MAAM,EAAE;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tooltip.gov-tooltip-content.entry.cjs.js","sources":["../../../packages/core/src/components/gov-tooltip/constants.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"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","import {Component, Element, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {\r\n\tTooltipClass,\r\n\tTooltipContentClass,\r\n\tTooltipPosition,\r\n\tTooltipPositionType,\r\n\tTooltipSize,\r\n\tTooltipSizeType,\r\n\tTooltipColors,\r\n\tTooltipColorType,\r\n} from \"./constants\"\r\nimport {createID} from \"../../utils/string.utils\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {documentNode} from \"../../helpers/Dom/win\";\r\nimport {Nullable} from \"../../utils/helpers.types\";\r\nimport {tick} from \"../../utils/stencil.utils\";\r\n\r\n@Component({\r\n\ttag: \"gov-tooltip\",\r\n})\r\nexport class GovTooltip {\r\n\tprivate h: GovHost\r\n\tprivate readonly tooltipContentId = undefined\r\n\tprivate readonly tooltipId = undefined\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.tooltipId = createID(\"GovTooltip\")\r\n\t\tthis.tooltipContentId = createID(\"GovContentTooltip\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTooltipElement\r\n\t/**\r\n\t * Style variation of the tooltip\r\n\t */\r\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\r\n\t/**\r\n\t * Tooltip’s size.\r\n\t */\r\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\r\n\t/**\r\n\t * Tooltip display position\r\n\t */\r\n\t@Prop({mutable: true}) position: TooltipPositionType = \"right\"\r\n\t/**\r\n\t * Information contained in the tooltip\r\n\t */\r\n\t@Prop() readonly message: string = undefined\r\n\t/**\r\n\t * Custom tooltip identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Trigger is just an icon\r\n\t */\r\n\t@Prop({reflect: true}) readonly icon: boolean = undefined\r\n\r\n\t@State() persist = false\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(TooltipColors, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(TooltipSize, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"position\")\r\n\tvalidatePosition(newValue: string): void {\r\n\t\tvalidateProp(TooltipPosition, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"message\")\r\n\trerenderMessage(): void {\r\n\t\tthis.createContentWrapper();\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.createContentWrapper()\r\n\t\tthis.registerListeners()\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\tthis.validatePosition(this.position)\r\n\t}\r\n\r\n\tcomponentDidUpdate() {\r\n\t\tthis.createContentWrapper()\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.removeContent()\r\n\t}\r\n\r\n\tprivate createContentWrapper() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tif (this.message) {\r\n\t\t\t\tthis.tooltipContent.innerHTML = this.message\r\n\t\t\t} else if (this.insideContent) {\r\n\t\t\t\tthis.tooltipContent.innerHTML = this.insideContent.innerHTML\r\n\t\t\t}\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\tlet content: HTMLGovTooltipContentElement;\r\n\t\tif (this.insideContent) {\r\n\t\t\tcontent = this.insideContent\r\n\t\t} else {\r\n\t\t\tcontent = documentNode().createElement(TooltipContentClass.root) as HTMLGovTooltipContentElement\r\n\t\t\tcontent.innerHTML = this.message\r\n\t\t}\r\n\r\n\t\tcontent.setAttribute(\"id\", this.identifier ?? this.tooltipContentId)\r\n\t\tcontent.setAttribute(\"parent-id\", this.tooltipId)\r\n\t\tcontent.setAttribute(\"color\", this.color)\r\n\t\tcontent.setAttribute(\"size\", this.size)\r\n\t\tdocumentNode().body.appendChild(content)\r\n\t}\r\n\r\n\tprivate get tooltipContent(): Nullable<HTMLGovTooltipContentElement> {\r\n\t\treturn documentNode().body.querySelector(`#${this.identifier ?? this.tooltipContentId}`);\r\n\t}\r\n\r\n\tprivate get insideContent(): Nullable<HTMLGovTooltipContentElement> {\r\n\t\treturn this.host.querySelector(TooltipContentClass.root)\r\n\t}\r\n\r\n\tprivate registerListeners() {\r\n\t\tthis.host.addEventListener(\"click\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tthis.persist = true\r\n\t\t\tif (this.tooltipContent) {\r\n\t\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"true\")\r\n\t\t\t}\r\n\t\t\tthis.showTooltip()\r\n\t\t})\r\n\t\tthis.host.addEventListener(\"mouseenter\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tthis.showTooltip()\r\n\t\t})\r\n\t\tthis.host.addEventListener(\"mouseleave\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tif (this.persist === false) {\r\n\t\t\t\tthis.hideTooltip()\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tprivate verifyPositionSpace() {\r\n\t\tconst offset = 12\r\n\t\tconst windowWidth = window.innerWidth - (window.innerWidth - document.documentElement.clientWidth);\r\n\t\tconst trigger = this.host.getBoundingClientRect()\r\n\t\tconst trgWidth = this.host.offsetWidth\r\n\t\tconst trgHeight = this.host.offsetHeight\r\n\t\tconst contentWidth = this.tooltipContent.offsetWidth\r\n\t\tconst contentHeight = this.tooltipContent.offsetHeight\r\n\t\tconst triggerPos = {\r\n\t\t\tleft: trigger.left + document.documentElement.scrollLeft,\r\n\t\t\ttop: trigger.top + document.documentElement.scrollTop,\r\n\t\t}\r\n\r\n\t\tconst isRightSpace = ((triggerPos.left + offset + trigger.width) + contentWidth) <= windowWidth;\r\n\t\tconst isLeftSpace = triggerPos.left > contentWidth;\r\n\r\n\t\t// LEFT/RIGHT\r\n\t\tif (this.position === TooltipPosition.LEFT || this.position === TooltipPosition.RIGHT) {\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - ((contentHeight - trgHeight) / 2)) + \"px\";\r\n\t\t\tif (isRightSpace === false && isLeftSpace === false) {\r\n\t\t\t\tthis.position = TooltipPosition.TOP\r\n\t\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\r\n\t\t\t}\r\n\t\t\tif (isLeftSpace && isRightSpace === false && this.position === TooltipPosition.RIGHT) {\r\n\t\t\t\tthis.position = TooltipPosition.LEFT\r\n\t\t\t}\r\n\t\t\tif (isRightSpace && isLeftSpace === false && this.position === TooltipPosition.LEFT) {\r\n\t\t\t\tthis.position = TooltipPosition.RIGHT\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.RIGHT) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.RIGHT)\r\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left + offset + trigger.width) + \"px\"\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.LEFT) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.LEFT)\r\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left - (contentWidth + offset)) + \"px\"\r\n\t\t}\r\n\r\n\t\t// LEFT/RIGHT FOR TOP/BOTTOM\r\n\t\tif (this.position === TooltipPosition.TOP || this.position === TooltipPosition.BOTTOM) {\r\n\t\t\tif (contentWidth > trgWidth) {\r\n\t\t\t\tlet leftPosition = (triggerPos.left - ((contentWidth - trgWidth) / 2));\r\n\t\t\t\tconst isNotLeftSpace = leftPosition < 0;\r\n\t\t\t\tconst isNotRightSpace = (leftPosition + contentWidth) > windowWidth;\r\n\t\t\t\tif (isNotLeftSpace && isNotRightSpace) {\r\n\t\t\t\t\tthis.tooltipContent.style.width = \"auto\";\r\n\t\t\t\t\tthis.tooltipContent.style.left = offset + \"px\";\r\n\t\t\t\t\tthis.tooltipContent.style.right = offset + \"px\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (isNotLeftSpace) {\r\n\t\t\t\t\t\tleftPosition = offset\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isNotRightSpace) {\r\n\t\t\t\t\t\tleftPosition = leftPosition - ((windowWidth - (leftPosition + contentWidth + offset)) * -1)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tconst leftPosition = (triggerPos.left + ((trgWidth - contentWidth) / 2))\r\n\r\n\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.TOP) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - (contentHeight + offset)) + \"px\"\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.BOTTOM) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.BOTTOM)\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top + (trgHeight + offset)) + \"px\"\r\n\t\t}\r\n\r\n\t\tthis.tooltipContent.style.opacity = '1'\r\n\r\n\t}\r\n\r\n\tprivate showTooltip() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tthis.tooltipContent.style.opacity = '0'\r\n\t\t\tthis.tooltipContent.hidden = false\r\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"true\")\r\n\t\t\ttick(() => {\r\n\t\t\t\tthis.verifyPositionSpace()\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tprivate hideTooltip() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"false\")\r\n\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"false\")\r\n\t\t\tthis.tooltipContent.removeAttribute('style')\r\n\t\t}\r\n\t}\r\n\r\n\tprivate removeContent() {\r\n\t\tconst contentEl = document.getElementById(this.tooltipContentId)\r\n\t\tif (contentEl) {\r\n\t\t\tcontentEl.remove()\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\tid={this.tooltipId}\r\n\t\t\t\tclass={this.h.classes(TooltipClass.root)}\r\n\t\t\t\tposition={this.position}>\r\n\t\t\t\t<span role={'button'}\r\n\t\t\t\t\t\t\ttabindex={0}\r\n\t\t\t\t\t\t\tonKeyPress={() => this.showTooltip()}\r\n\t\t\t\t\t\t\tonBlur={() => {\r\n\t\t\t\t\t\t\t\tif (this.persist === false) {\r\n\t\t\t\t\t\t\t\t\tthis.hideTooltip()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\taria-describedby={this.identifier ?? this.tooltipContentId}><slot/></span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Showing the modal\r\n\t */\r\n\t@Method()\r\n\tasync show(): Promise<void> {\r\n\t\tthis.showTooltip()\r\n\t}\r\n\r\n\t/**\r\n\t * Hiding the modal\r\n\t */\r\n\t@Method()\r\n\tasync hide(): Promise<void> {\r\n\t\tthis.persist = false\r\n\t\tthis.hideTooltip()\r\n\t}\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\r\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\r\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\r\n\r\n@Component({\r\n\ttag: \"gov-tooltip-content\",\r\n})\r\nexport class GovTooltipContent {\r\n\tprivate timeout\r\n\r\n\t@Element() host: HTMLGovTooltipContentElement\r\n\t/**\r\n\t * Style variation of the tooltip\r\n\t */\r\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\r\n\t/**\r\n\t * Tooltip’s size.\r\n\t */\r\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\r\n\t/**\r\n\t * Tooltip is still visible.\r\n\t */\r\n\t@Prop() persist?: boolean = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\r\n\r\n\t@Watch(\"isVisible\")\r\n\tvisibleContent(newValue: boolean): void {\r\n\t\tclearTimeout(this.timeout)\r\n\t\tif (newValue === false) {\r\n\t\t\tthis.timeout = setTimeout(() => {\r\n\t\t\t\tthis.host.style.visibility = \"hidden\"\r\n\t\t\t}, 250)\r\n\t\t} else {\r\n\t\t\tthis.host.style.visibility = \"visible\"\r\n\t\t}\r\n\t}\r\n\r\n\thideContent() {\r\n\t\tthis.isVisible = false\r\n\t\tthis.persist = false\r\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\r\n\t\tif (parentEl) {\r\n\t\t\tparentEl.hide().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={TooltipContentClass.root}\r\n\t\t\t\trole={\"tooltip\"}\r\n\t\t\t\thidden={!this.isVisible}\r\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\r\n\t\t\t\tis-visible={this.isVisible}>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t\t{this.persist ? (\r\n\t\t\t\t\t<gov-button\r\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\r\n\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\ttype={\"base\"}>\r\n\t\t\t\t\t\t<gov-icon slot={\"icon-start\"} name={\"x-lg\"} type={\"components\"}></gov-icon>\r\n\t\t\t\t\t</gov-button>\r\n\t\t\t\t) : null}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"names":["pick","Colors","Sizes","govHost","createID","validateProp","documentNode","tick","h","Host","toBoolAttr"],"mappings":";;;;;;;;;;;;AAKO,MAAM,aAAa,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAG1D,MAAM,WAAW,GAAGD,UAAI,CAACE,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAG1D,IAAY,eAKX;AALD,CAAA,UAAY,eAAe,EAAA;AAC1B,IAAA,eAAA,CAA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ov-tooltip-content.entry.cjs.js","sources":["../../../packages/core/src/components/gov-tooltip/constants.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"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","import {Component, Element, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {\n\tTooltipClass,\n\tTooltipContentClass,\n\tTooltipPosition,\n\tTooltipPositionType,\n\tTooltipSize,\n\tTooltipSizeType,\n\tTooltipColors,\n\tTooltipColorType,\n} from \"./constants\"\nimport {createID} from \"../../utils/string.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {documentNode} from \"../../helpers/Dom/win\";\nimport {Nullable} from \"../../utils/helpers.types\";\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: \"gov-tooltip\",\n})\nexport class GovTooltip {\n\tprivate h: GovHost\n\tprivate readonly tooltipContentId = undefined\n\tprivate readonly tooltipId = undefined\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.tooltipId = createID(\"GovTooltip\")\n\t\tthis.tooltipContentId = createID(\"GovContentTooltip\")\n\t}\n\n\t@Element() host: HTMLGovTooltipElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip display position\n\t */\n\t@Prop({mutable: true}) position: TooltipPositionType = \"right\"\n\t/**\n\t * Information contained in the tooltip\n\t */\n\t@Prop() readonly message: string = undefined\n\t/**\n\t * Custom tooltip identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Trigger is just an icon\n\t */\n\t@Prop({reflect: true}) readonly icon: boolean = undefined\n\n\t@State() persist = false\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(TooltipColors, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(TooltipSize, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"position\")\n\tvalidatePosition(newValue: string): void {\n\t\tvalidateProp(TooltipPosition, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"message\")\n\trerenderMessage(): void {\n\t\tthis.createContentWrapper();\n\t}\n\n\tconnectedCallback() {\n\t\tthis.createContentWrapper()\n\t\tthis.registerListeners()\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t\tthis.validatePosition(this.position)\n\t}\n\n\tcomponentDidUpdate() {\n\t\tthis.createContentWrapper()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.removeContent()\n\t}\n\n\tprivate createContentWrapper() {\n\t\tif (this.tooltipContent) {\n\t\t\tif (this.message) {\n\t\t\t\tthis.tooltipContent.innerHTML = this.message\n\t\t\t} else if (this.insideContent) {\n\t\t\t\tthis.tooltipContent.innerHTML = this.insideContent.innerHTML\n\t\t\t}\n\t\t\treturn\n\t\t}\n\n\t\tlet content: HTMLGovTooltipContentElement;\n\t\tif (this.insideContent) {\n\t\t\tcontent = this.insideContent\n\t\t} else {\n\t\t\tcontent = documentNode().createElement(TooltipContentClass.root) as HTMLGovTooltipContentElement\n\t\t\tcontent.innerHTML = this.message\n\t\t}\n\n\t\tcontent.setAttribute(\"id\", this.identifier ?? this.tooltipContentId)\n\t\tcontent.setAttribute(\"parent-id\", this.tooltipId)\n\t\tcontent.setAttribute(\"color\", this.color)\n\t\tcontent.setAttribute(\"size\", this.size)\n\t\tdocumentNode().body.appendChild(content)\n\t}\n\n\tprivate get tooltipContent(): Nullable<HTMLGovTooltipContentElement> {\n\t\treturn documentNode().body.querySelector(`#${this.identifier ?? this.tooltipContentId}`);\n\t}\n\n\tprivate get insideContent(): Nullable<HTMLGovTooltipContentElement> {\n\t\treturn this.host.querySelector(TooltipContentClass.root)\n\t}\n\n\tprivate registerListeners() {\n\t\tthis.host.addEventListener(\"click\", e => {\n\t\t\te.preventDefault()\n\t\t\tthis.persist = true\n\t\t\tif (this.tooltipContent) {\n\t\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"true\")\n\t\t\t}\n\t\t\tthis.showTooltip()\n\t\t})\n\t\tthis.host.addEventListener(\"mouseenter\", e => {\n\t\t\te.preventDefault()\n\t\t\tthis.showTooltip()\n\t\t})\n\t\tthis.host.addEventListener(\"mouseleave\", e => {\n\t\t\te.preventDefault()\n\t\t\tif (this.persist === false) {\n\t\t\t\tthis.hideTooltip()\n\t\t\t}\n\t\t})\n\t}\n\n\tprivate verifyPositionSpace() {\n\t\tconst offset = 12\n\t\tconst windowWidth = window.innerWidth - (window.innerWidth - document.documentElement.clientWidth);\n\t\tconst trigger = this.host.getBoundingClientRect()\n\t\tconst trgWidth = this.host.offsetWidth\n\t\tconst trgHeight = this.host.offsetHeight\n\t\tconst contentWidth = this.tooltipContent.offsetWidth\n\t\tconst contentHeight = this.tooltipContent.offsetHeight\n\t\tconst triggerPos = {\n\t\t\tleft: trigger.left + document.documentElement.scrollLeft,\n\t\t\ttop: trigger.top + document.documentElement.scrollTop,\n\t\t}\n\n\t\tconst isRightSpace = ((triggerPos.left + offset + trigger.width) + contentWidth) <= windowWidth;\n\t\tconst isLeftSpace = triggerPos.left > contentWidth;\n\n\t\t// LEFT/RIGHT\n\t\tif (this.position === TooltipPosition.LEFT || this.position === TooltipPosition.RIGHT) {\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - ((contentHeight - trgHeight) / 2)) + \"px\";\n\t\t\tif (isRightSpace === false && isLeftSpace === false) {\n\t\t\t\tthis.position = TooltipPosition.TOP\n\t\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\n\t\t\t}\n\t\t\tif (isLeftSpace && isRightSpace === false && this.position === TooltipPosition.RIGHT) {\n\t\t\t\tthis.position = TooltipPosition.LEFT\n\t\t\t}\n\t\t\tif (isRightSpace && isLeftSpace === false && this.position === TooltipPosition.LEFT) {\n\t\t\t\tthis.position = TooltipPosition.RIGHT\n\t\t\t}\n\t\t}\n\t\tif (this.position === TooltipPosition.RIGHT) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.RIGHT)\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left + offset + trigger.width) + \"px\"\n\t\t}\n\t\tif (this.position === TooltipPosition.LEFT) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.LEFT)\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left - (contentWidth + offset)) + \"px\"\n\t\t}\n\n\t\t// LEFT/RIGHT FOR TOP/BOTTOM\n\t\tif (this.position === TooltipPosition.TOP || this.position === TooltipPosition.BOTTOM) {\n\t\t\tif (contentWidth > trgWidth) {\n\t\t\t\tlet leftPosition = (triggerPos.left - ((contentWidth - trgWidth) / 2));\n\t\t\t\tconst isNotLeftSpace = leftPosition < 0;\n\t\t\t\tconst isNotRightSpace = (leftPosition + contentWidth) > windowWidth;\n\t\t\t\tif (isNotLeftSpace && isNotRightSpace) {\n\t\t\t\t\tthis.tooltipContent.style.width = \"auto\";\n\t\t\t\t\tthis.tooltipContent.style.left = offset + \"px\";\n\t\t\t\t\tthis.tooltipContent.style.right = offset + \"px\";\n\t\t\t\t} else {\n\t\t\t\t\tif (isNotLeftSpace) {\n\t\t\t\t\t\tleftPosition = offset\n\t\t\t\t\t}\n\t\t\t\t\tif (isNotRightSpace) {\n\t\t\t\t\t\tleftPosition = leftPosition - ((windowWidth - (leftPosition + contentWidth + offset)) * -1)\n\t\t\t\t\t}\n\t\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst leftPosition = (triggerPos.left + ((trgWidth - contentWidth) / 2))\n\n\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\n\t\t\t}\n\t\t}\n\t\tif (this.position === TooltipPosition.TOP) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - (contentHeight + offset)) + \"px\"\n\t\t}\n\t\tif (this.position === TooltipPosition.BOTTOM) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.BOTTOM)\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top + (trgHeight + offset)) + \"px\"\n\t\t}\n\n\t\tthis.tooltipContent.style.opacity = '1'\n\n\t}\n\n\tprivate showTooltip() {\n\t\tif (this.tooltipContent) {\n\t\t\tthis.tooltipContent.style.opacity = '0'\n\t\t\tthis.tooltipContent.hidden = false\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"true\")\n\t\t\ttick(() => {\n\t\t\t\tthis.verifyPositionSpace()\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate hideTooltip() {\n\t\tif (this.tooltipContent) {\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"false\")\n\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"false\")\n\t\t\tthis.tooltipContent.removeAttribute('style')\n\t\t}\n\t}\n\n\tprivate removeContent() {\n\t\tconst contentEl = document.getElementById(this.tooltipContentId)\n\t\tif (contentEl) {\n\t\t\tcontentEl.remove()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tid={this.tooltipId}\n\t\t\t\tclass={this.h.classes(TooltipClass.root)}\n\t\t\t\tposition={this.position}>\n\t\t\t\t<span role={'button'}\n\t\t\t\t\t\t\ttabindex={0}\n\t\t\t\t\t\t\tonKeyPress={() => this.showTooltip()}\n\t\t\t\t\t\t\tonBlur={() => {\n\t\t\t\t\t\t\t\tif (this.persist === false) {\n\t\t\t\t\t\t\t\t\tthis.hideTooltip()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\taria-describedby={this.identifier ?? this.tooltipContentId}><slot/></span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showTooltip()\n\t}\n\n\t/**\n\t * Hiding the modal\n\t */\n\t@Method()\n\tasync hide(): Promise<void> {\n\t\tthis.persist = false\n\t\tthis.hideTooltip()\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-tooltip-content\",\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip is still visible.\n\t */\n\t@Prop() persist?: boolean = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\n\n\t@Watch(\"isVisible\")\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = \"hidden\"\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = \"visible\"\n\t\t}\n\t}\n\n\thideContent() {\n\t\tthis.isVisible = false\n\t\tthis.persist = false\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\n\t\tif (parentEl) {\n\t\t\tparentEl.hide().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={TooltipContentClass.root}\n\t\t\t\trole={\"tooltip\"}\n\t\t\t\thidden={!this.isVisible}\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\n\t\t\t\tis-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t\t{this.persist ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\n\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"base\"}>\n\t\t\t\t\t\t<gov-icon slot={\"icon-start\"} name={\"x-lg\"} type={\"components\"}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"names":["pick","Colors","Sizes","govHost","createID","validateProp","documentNode","tick","h","Host","toBoolAttr"],"mappings":";;;;;;;;;;;;AAKO,MAAM,aAAa,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAG1D,MAAM,WAAW,GAAGD,UAAI,CAACE,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,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AAY,EAAa,CAAA,CAC/D,IACV,IAAI,CACF;;;;;;;;;;;"}
@@ -232,11 +232,11 @@ const GovTooltip = class {
232
232
  }
233
233
  render() {
234
234
  var _a;
235
- return (index.h(index.Host, { key: 'f64ba7c26358426ead39dadbb17687a39a4fb876', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, index.h("span", { key: 'd51fc3b886df342fe8fbcaa9452be316658c24b2', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
235
+ return (index.h(index.Host, { key: 'dd78d93d3b5ba4bc3a128435f58467c9bd6def43', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, index.h("span", { key: '2ede8642a4cf998367da3756c795847195c0f694', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
236
236
  if (this.persist === false) {
237
237
  this.hideTooltip();
238
238
  }
239
- }, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, index.h("slot", { key: '6687d0562b3e99ea0e44ec97dadc5a2e085ff0a8' }))));
239
+ }, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, index.h("slot", { key: '9607b4c9b24766f70b53c6372e6e7219e7a3a6fd' }))));
240
240
  }
241
241
  /**
242
242
  * Showing the modal
@@ -304,7 +304,7 @@ const GovTooltipContent = class {
304
304
  }
305
305
  }
306
306
  render() {
307
- return (index.h(index.Host, { key: 'a826527fe9f7851ad25f700156d987c1b29f3adc', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !template.toBoolAttr(this.isVisible), "is-visible": this.isVisible }, index.h("slot", { key: 'd3891d8a3f3df7ee7f852db8485c7ecc2f61992c' }), this.persist ? (index.h("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, index.h("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
307
+ return (index.h(index.Host, { key: '71d259cc8d7247030767f8ac36a6875f9c16ffea', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !template.toBoolAttr(this.isVisible), "is-visible": this.isVisible }, index.h("slot", { key: '06d883340271717da9d0b8de6c35339cd5c9dfb9' }), this.persist ? (index.h("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, index.h("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
308
308
  }
309
309
  get host() { return index.getElement(this); }
310
310
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-tooltip.gov-tooltip-content.entry.cjs.js","mappings":";;;;;;;;;;;;AAKO,MAAM,aAAa,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAG1D,MAAM,WAAW,GAAGD,UAAI,CAACE,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAG1D,IAAY,eAKX;AALD,CAAA,UAAY,eAAe,EAAA;AAC1B,IAAA,eAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,eAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACd,CAAC,EALW,eAAe,KAAf,eAAe,GAK1B,EAAA,CAAA,CAAA;AAGM,MAAM,YAAY,GAAG;AAC3B,IAAA,IAAI,EAAE,aAAa;CACnB;AAEM,MAAM,mBAAmB,GAAG;AAClC,IAAA,IAAI,EAAE,qBAAqB;CAC3B;;MCHY,UAAU,GAAA,MAAA;AAKtB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAHiB,QAAA,IAAgB,CAAA,gBAAA,GAAG,SAAS;AAC5B,QAAA,IAAS,CAAA,SAAA,GAAG,SAAS;AAStC;;AAEG;AACc,QAAA,IAAA,CAAA,KAAK,GAAsB,aAAa,CAAC,OAAO;AACjE;;AAEG;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I,EAC/B,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,CAAC,IAAI,CAAC,SAAS,EAAA,aAAA,EACV,CAACC,mBAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAC5B,YAAA,EAAA,IAAI,CAAC,SAAS,EAAA,EAC1BF,OAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EACZ,IAAI,CAAC,OAAO,IACZA,OACe,CAAA,YAAA,EAAA,EAAA,cAAA,EAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,MAAM,EAAA,EACZA,OAAU,CAAA,UAAA,EAAA,EAAA,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAa,CAAA,CAC/D,IACV,IAAI,CACF;;;;;;;;;;;","names":["pick","Colors","Sizes","govHost","createID","validateProp","documentNode","tick","h","Host","toBoolAttr"],"sources":["../../../packages/core/src/components/gov-tooltip/constants.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"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","import {Component, Element, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {\r\n\tTooltipClass,\r\n\tTooltipContentClass,\r\n\tTooltipPosition,\r\n\tTooltipPositionType,\r\n\tTooltipSize,\r\n\tTooltipSizeType,\r\n\tTooltipColors,\r\n\tTooltipColorType,\r\n} from \"./constants\"\r\nimport {createID} from \"../../utils/string.utils\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {documentNode} from \"../../helpers/Dom/win\";\r\nimport {Nullable} from \"../../utils/helpers.types\";\r\nimport {tick} from \"../../utils/stencil.utils\";\r\n\r\n@Component({\r\n\ttag: \"gov-tooltip\",\r\n})\r\nexport class GovTooltip {\r\n\tprivate h: GovHost\r\n\tprivate readonly tooltipContentId = undefined\r\n\tprivate readonly tooltipId = undefined\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.tooltipId = createID(\"GovTooltip\")\r\n\t\tthis.tooltipContentId = createID(\"GovContentTooltip\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTooltipElement\r\n\t/**\r\n\t * Style variation of the tooltip\r\n\t */\r\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\r\n\t/**\r\n\t * Tooltip’s size.\r\n\t */\r\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\r\n\t/**\r\n\t * Tooltip display position\r\n\t */\r\n\t@Prop({mutable: true}) position: TooltipPositionType = \"right\"\r\n\t/**\r\n\t * Information contained in the tooltip\r\n\t */\r\n\t@Prop() readonly message: string = undefined\r\n\t/**\r\n\t * Custom tooltip identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Trigger is just an icon\r\n\t */\r\n\t@Prop({reflect: true}) readonly icon: boolean = undefined\r\n\r\n\t@State() persist = false\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(TooltipColors, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(TooltipSize, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"position\")\r\n\tvalidatePosition(newValue: string): void {\r\n\t\tvalidateProp(TooltipPosition, newValue, TooltipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"message\")\r\n\trerenderMessage(): void {\r\n\t\tthis.createContentWrapper();\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.createContentWrapper()\r\n\t\tthis.registerListeners()\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\tthis.validatePosition(this.position)\r\n\t}\r\n\r\n\tcomponentDidUpdate() {\r\n\t\tthis.createContentWrapper()\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.removeContent()\r\n\t}\r\n\r\n\tprivate createContentWrapper() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tif (this.message) {\r\n\t\t\t\tthis.tooltipContent.innerHTML = this.message\r\n\t\t\t} else if (this.insideContent) {\r\n\t\t\t\tthis.tooltipContent.innerHTML = this.insideContent.innerHTML\r\n\t\t\t}\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\tlet content: HTMLGovTooltipContentElement;\r\n\t\tif (this.insideContent) {\r\n\t\t\tcontent = this.insideContent\r\n\t\t} else {\r\n\t\t\tcontent = documentNode().createElement(TooltipContentClass.root) as HTMLGovTooltipContentElement\r\n\t\t\tcontent.innerHTML = this.message\r\n\t\t}\r\n\r\n\t\tcontent.setAttribute(\"id\", this.identifier ?? this.tooltipContentId)\r\n\t\tcontent.setAttribute(\"parent-id\", this.tooltipId)\r\n\t\tcontent.setAttribute(\"color\", this.color)\r\n\t\tcontent.setAttribute(\"size\", this.size)\r\n\t\tdocumentNode().body.appendChild(content)\r\n\t}\r\n\r\n\tprivate get tooltipContent(): Nullable<HTMLGovTooltipContentElement> {\r\n\t\treturn documentNode().body.querySelector(`#${this.identifier ?? this.tooltipContentId}`);\r\n\t}\r\n\r\n\tprivate get insideContent(): Nullable<HTMLGovTooltipContentElement> {\r\n\t\treturn this.host.querySelector(TooltipContentClass.root)\r\n\t}\r\n\r\n\tprivate registerListeners() {\r\n\t\tthis.host.addEventListener(\"click\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tthis.persist = true\r\n\t\t\tif (this.tooltipContent) {\r\n\t\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"true\")\r\n\t\t\t}\r\n\t\t\tthis.showTooltip()\r\n\t\t})\r\n\t\tthis.host.addEventListener(\"mouseenter\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tthis.showTooltip()\r\n\t\t})\r\n\t\tthis.host.addEventListener(\"mouseleave\", e => {\r\n\t\t\te.preventDefault()\r\n\t\t\tif (this.persist === false) {\r\n\t\t\t\tthis.hideTooltip()\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tprivate verifyPositionSpace() {\r\n\t\tconst offset = 12\r\n\t\tconst windowWidth = window.innerWidth - (window.innerWidth - document.documentElement.clientWidth);\r\n\t\tconst trigger = this.host.getBoundingClientRect()\r\n\t\tconst trgWidth = this.host.offsetWidth\r\n\t\tconst trgHeight = this.host.offsetHeight\r\n\t\tconst contentWidth = this.tooltipContent.offsetWidth\r\n\t\tconst contentHeight = this.tooltipContent.offsetHeight\r\n\t\tconst triggerPos = {\r\n\t\t\tleft: trigger.left + document.documentElement.scrollLeft,\r\n\t\t\ttop: trigger.top + document.documentElement.scrollTop,\r\n\t\t}\r\n\r\n\t\tconst isRightSpace = ((triggerPos.left + offset + trigger.width) + contentWidth) <= windowWidth;\r\n\t\tconst isLeftSpace = triggerPos.left > contentWidth;\r\n\r\n\t\t// LEFT/RIGHT\r\n\t\tif (this.position === TooltipPosition.LEFT || this.position === TooltipPosition.RIGHT) {\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - ((contentHeight - trgHeight) / 2)) + \"px\";\r\n\t\t\tif (isRightSpace === false && isLeftSpace === false) {\r\n\t\t\t\tthis.position = TooltipPosition.TOP\r\n\t\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\r\n\t\t\t}\r\n\t\t\tif (isLeftSpace && isRightSpace === false && this.position === TooltipPosition.RIGHT) {\r\n\t\t\t\tthis.position = TooltipPosition.LEFT\r\n\t\t\t}\r\n\t\t\tif (isRightSpace && isLeftSpace === false && this.position === TooltipPosition.LEFT) {\r\n\t\t\t\tthis.position = TooltipPosition.RIGHT\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.RIGHT) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.RIGHT)\r\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left + offset + trigger.width) + \"px\"\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.LEFT) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.LEFT)\r\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left - (contentWidth + offset)) + \"px\"\r\n\t\t}\r\n\r\n\t\t// LEFT/RIGHT FOR TOP/BOTTOM\r\n\t\tif (this.position === TooltipPosition.TOP || this.position === TooltipPosition.BOTTOM) {\r\n\t\t\tif (contentWidth > trgWidth) {\r\n\t\t\t\tlet leftPosition = (triggerPos.left - ((contentWidth - trgWidth) / 2));\r\n\t\t\t\tconst isNotLeftSpace = leftPosition < 0;\r\n\t\t\t\tconst isNotRightSpace = (leftPosition + contentWidth) > windowWidth;\r\n\t\t\t\tif (isNotLeftSpace && isNotRightSpace) {\r\n\t\t\t\t\tthis.tooltipContent.style.width = \"auto\";\r\n\t\t\t\t\tthis.tooltipContent.style.left = offset + \"px\";\r\n\t\t\t\t\tthis.tooltipContent.style.right = offset + \"px\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (isNotLeftSpace) {\r\n\t\t\t\t\t\tleftPosition = offset\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isNotRightSpace) {\r\n\t\t\t\t\t\tleftPosition = leftPosition - ((windowWidth - (leftPosition + contentWidth + offset)) * -1)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tconst leftPosition = (triggerPos.left + ((trgWidth - contentWidth) / 2))\r\n\r\n\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.TOP) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - (contentHeight + offset)) + \"px\"\r\n\t\t}\r\n\t\tif (this.position === TooltipPosition.BOTTOM) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.BOTTOM)\r\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top + (trgHeight + offset)) + \"px\"\r\n\t\t}\r\n\r\n\t\tthis.tooltipContent.style.opacity = '1'\r\n\r\n\t}\r\n\r\n\tprivate showTooltip() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tthis.tooltipContent.style.opacity = '0'\r\n\t\t\tthis.tooltipContent.hidden = false\r\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"true\")\r\n\t\t\ttick(() => {\r\n\t\t\t\tthis.verifyPositionSpace()\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tprivate hideTooltip() {\r\n\t\tif (this.tooltipContent) {\r\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"false\")\r\n\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"false\")\r\n\t\t\tthis.tooltipContent.removeAttribute('style')\r\n\t\t}\r\n\t}\r\n\r\n\tprivate removeContent() {\r\n\t\tconst contentEl = document.getElementById(this.tooltipContentId)\r\n\t\tif (contentEl) {\r\n\t\t\tcontentEl.remove()\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\tid={this.tooltipId}\r\n\t\t\t\tclass={this.h.classes(TooltipClass.root)}\r\n\t\t\t\tposition={this.position}>\r\n\t\t\t\t<span role={'button'}\r\n\t\t\t\t\t\t\ttabindex={0}\r\n\t\t\t\t\t\t\tonKeyPress={() => this.showTooltip()}\r\n\t\t\t\t\t\t\tonBlur={() => {\r\n\t\t\t\t\t\t\t\tif (this.persist === false) {\r\n\t\t\t\t\t\t\t\t\tthis.hideTooltip()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\taria-describedby={this.identifier ?? this.tooltipContentId}><slot/></span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Showing the modal\r\n\t */\r\n\t@Method()\r\n\tasync show(): Promise<void> {\r\n\t\tthis.showTooltip()\r\n\t}\r\n\r\n\t/**\r\n\t * Hiding the modal\r\n\t */\r\n\t@Method()\r\n\tasync hide(): Promise<void> {\r\n\t\tthis.persist = false\r\n\t\tthis.hideTooltip()\r\n\t}\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\r\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\r\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\r\n\r\n@Component({\r\n\ttag: \"gov-tooltip-content\",\r\n})\r\nexport class GovTooltipContent {\r\n\tprivate timeout\r\n\r\n\t@Element() host: HTMLGovTooltipContentElement\r\n\t/**\r\n\t * Style variation of the tooltip\r\n\t */\r\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\r\n\t/**\r\n\t * Tooltip’s size.\r\n\t */\r\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\r\n\t/**\r\n\t * Tooltip is still visible.\r\n\t */\r\n\t@Prop() persist?: boolean = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\r\n\r\n\t@Watch(\"isVisible\")\r\n\tvisibleContent(newValue: boolean): void {\r\n\t\tclearTimeout(this.timeout)\r\n\t\tif (newValue === false) {\r\n\t\t\tthis.timeout = setTimeout(() => {\r\n\t\t\t\tthis.host.style.visibility = \"hidden\"\r\n\t\t\t}, 250)\r\n\t\t} else {\r\n\t\t\tthis.host.style.visibility = \"visible\"\r\n\t\t}\r\n\t}\r\n\r\n\thideContent() {\r\n\t\tthis.isVisible = false\r\n\t\tthis.persist = false\r\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\r\n\t\tif (parentEl) {\r\n\t\t\tparentEl.hide().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={TooltipContentClass.root}\r\n\t\t\t\trole={\"tooltip\"}\r\n\t\t\t\thidden={!this.isVisible}\r\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\r\n\t\t\t\tis-visible={this.isVisible}>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t\t{this.persist ? (\r\n\t\t\t\t\t<gov-button\r\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\r\n\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\ttype={\"base\"}>\r\n\t\t\t\t\t\t<gov-icon slot={\"icon-start\"} name={\"x-lg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,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EACZ,IAAI,CAAC,OAAO,IACZA,OACe,CAAA,YAAA,EAAA,EAAA,cAAA,EAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,MAAM,EAAA,EACZA,OAAU,CAAA,UAAA,EAAA,EAAA,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAa,CAAA,CAC/D,IACV,IAAI,CACF;;;;;;;;;;;","names":["pick","Colors","Sizes","govHost","createID","validateProp","documentNode","tick","h","Host","toBoolAttr"],"sources":["../../../packages/core/src/components/gov-tooltip/constants.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip.tsx","../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"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","import {Component, Element, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {\n\tTooltipClass,\n\tTooltipContentClass,\n\tTooltipPosition,\n\tTooltipPositionType,\n\tTooltipSize,\n\tTooltipSizeType,\n\tTooltipColors,\n\tTooltipColorType,\n} from \"./constants\"\nimport {createID} from \"../../utils/string.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {documentNode} from \"../../helpers/Dom/win\";\nimport {Nullable} from \"../../utils/helpers.types\";\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: \"gov-tooltip\",\n})\nexport class GovTooltip {\n\tprivate h: GovHost\n\tprivate readonly tooltipContentId = undefined\n\tprivate readonly tooltipId = undefined\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.tooltipId = createID(\"GovTooltip\")\n\t\tthis.tooltipContentId = createID(\"GovContentTooltip\")\n\t}\n\n\t@Element() host: HTMLGovTooltipElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip display position\n\t */\n\t@Prop({mutable: true}) position: TooltipPositionType = \"right\"\n\t/**\n\t * Information contained in the tooltip\n\t */\n\t@Prop() readonly message: string = undefined\n\t/**\n\t * Custom tooltip identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Trigger is just an icon\n\t */\n\t@Prop({reflect: true}) readonly icon: boolean = undefined\n\n\t@State() persist = false\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(TooltipColors, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(TooltipSize, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"position\")\n\tvalidatePosition(newValue: string): void {\n\t\tvalidateProp(TooltipPosition, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"message\")\n\trerenderMessage(): void {\n\t\tthis.createContentWrapper();\n\t}\n\n\tconnectedCallback() {\n\t\tthis.createContentWrapper()\n\t\tthis.registerListeners()\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t\tthis.validatePosition(this.position)\n\t}\n\n\tcomponentDidUpdate() {\n\t\tthis.createContentWrapper()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.removeContent()\n\t}\n\n\tprivate createContentWrapper() {\n\t\tif (this.tooltipContent) {\n\t\t\tif (this.message) {\n\t\t\t\tthis.tooltipContent.innerHTML = this.message\n\t\t\t} else if (this.insideContent) {\n\t\t\t\tthis.tooltipContent.innerHTML = this.insideContent.innerHTML\n\t\t\t}\n\t\t\treturn\n\t\t}\n\n\t\tlet content: HTMLGovTooltipContentElement;\n\t\tif (this.insideContent) {\n\t\t\tcontent = this.insideContent\n\t\t} else {\n\t\t\tcontent = documentNode().createElement(TooltipContentClass.root) as HTMLGovTooltipContentElement\n\t\t\tcontent.innerHTML = this.message\n\t\t}\n\n\t\tcontent.setAttribute(\"id\", this.identifier ?? this.tooltipContentId)\n\t\tcontent.setAttribute(\"parent-id\", this.tooltipId)\n\t\tcontent.setAttribute(\"color\", this.color)\n\t\tcontent.setAttribute(\"size\", this.size)\n\t\tdocumentNode().body.appendChild(content)\n\t}\n\n\tprivate get tooltipContent(): Nullable<HTMLGovTooltipContentElement> {\n\t\treturn documentNode().body.querySelector(`#${this.identifier ?? this.tooltipContentId}`);\n\t}\n\n\tprivate get insideContent(): Nullable<HTMLGovTooltipContentElement> {\n\t\treturn this.host.querySelector(TooltipContentClass.root)\n\t}\n\n\tprivate registerListeners() {\n\t\tthis.host.addEventListener(\"click\", e => {\n\t\t\te.preventDefault()\n\t\t\tthis.persist = true\n\t\t\tif (this.tooltipContent) {\n\t\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"true\")\n\t\t\t}\n\t\t\tthis.showTooltip()\n\t\t})\n\t\tthis.host.addEventListener(\"mouseenter\", e => {\n\t\t\te.preventDefault()\n\t\t\tthis.showTooltip()\n\t\t})\n\t\tthis.host.addEventListener(\"mouseleave\", e => {\n\t\t\te.preventDefault()\n\t\t\tif (this.persist === false) {\n\t\t\t\tthis.hideTooltip()\n\t\t\t}\n\t\t})\n\t}\n\n\tprivate verifyPositionSpace() {\n\t\tconst offset = 12\n\t\tconst windowWidth = window.innerWidth - (window.innerWidth - document.documentElement.clientWidth);\n\t\tconst trigger = this.host.getBoundingClientRect()\n\t\tconst trgWidth = this.host.offsetWidth\n\t\tconst trgHeight = this.host.offsetHeight\n\t\tconst contentWidth = this.tooltipContent.offsetWidth\n\t\tconst contentHeight = this.tooltipContent.offsetHeight\n\t\tconst triggerPos = {\n\t\t\tleft: trigger.left + document.documentElement.scrollLeft,\n\t\t\ttop: trigger.top + document.documentElement.scrollTop,\n\t\t}\n\n\t\tconst isRightSpace = ((triggerPos.left + offset + trigger.width) + contentWidth) <= windowWidth;\n\t\tconst isLeftSpace = triggerPos.left > contentWidth;\n\n\t\t// LEFT/RIGHT\n\t\tif (this.position === TooltipPosition.LEFT || this.position === TooltipPosition.RIGHT) {\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - ((contentHeight - trgHeight) / 2)) + \"px\";\n\t\t\tif (isRightSpace === false && isLeftSpace === false) {\n\t\t\t\tthis.position = TooltipPosition.TOP\n\t\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\n\t\t\t}\n\t\t\tif (isLeftSpace && isRightSpace === false && this.position === TooltipPosition.RIGHT) {\n\t\t\t\tthis.position = TooltipPosition.LEFT\n\t\t\t}\n\t\t\tif (isRightSpace && isLeftSpace === false && this.position === TooltipPosition.LEFT) {\n\t\t\t\tthis.position = TooltipPosition.RIGHT\n\t\t\t}\n\t\t}\n\t\tif (this.position === TooltipPosition.RIGHT) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.RIGHT)\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left + offset + trigger.width) + \"px\"\n\t\t}\n\t\tif (this.position === TooltipPosition.LEFT) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.LEFT)\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left - (contentWidth + offset)) + \"px\"\n\t\t}\n\n\t\t// LEFT/RIGHT FOR TOP/BOTTOM\n\t\tif (this.position === TooltipPosition.TOP || this.position === TooltipPosition.BOTTOM) {\n\t\t\tif (contentWidth > trgWidth) {\n\t\t\t\tlet leftPosition = (triggerPos.left - ((contentWidth - trgWidth) / 2));\n\t\t\t\tconst isNotLeftSpace = leftPosition < 0;\n\t\t\t\tconst isNotRightSpace = (leftPosition + contentWidth) > windowWidth;\n\t\t\t\tif (isNotLeftSpace && isNotRightSpace) {\n\t\t\t\t\tthis.tooltipContent.style.width = \"auto\";\n\t\t\t\t\tthis.tooltipContent.style.left = offset + \"px\";\n\t\t\t\t\tthis.tooltipContent.style.right = offset + \"px\";\n\t\t\t\t} else {\n\t\t\t\t\tif (isNotLeftSpace) {\n\t\t\t\t\t\tleftPosition = offset\n\t\t\t\t\t}\n\t\t\t\t\tif (isNotRightSpace) {\n\t\t\t\t\t\tleftPosition = leftPosition - ((windowWidth - (leftPosition + contentWidth + offset)) * -1)\n\t\t\t\t\t}\n\t\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst leftPosition = (triggerPos.left + ((trgWidth - contentWidth) / 2))\n\n\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\n\t\t\t}\n\t\t}\n\t\tif (this.position === TooltipPosition.TOP) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - (contentHeight + offset)) + \"px\"\n\t\t}\n\t\tif (this.position === TooltipPosition.BOTTOM) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.BOTTOM)\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top + (trgHeight + offset)) + \"px\"\n\t\t}\n\n\t\tthis.tooltipContent.style.opacity = '1'\n\n\t}\n\n\tprivate showTooltip() {\n\t\tif (this.tooltipContent) {\n\t\t\tthis.tooltipContent.style.opacity = '0'\n\t\t\tthis.tooltipContent.hidden = false\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"true\")\n\t\t\ttick(() => {\n\t\t\t\tthis.verifyPositionSpace()\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate hideTooltip() {\n\t\tif (this.tooltipContent) {\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"false\")\n\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"false\")\n\t\t\tthis.tooltipContent.removeAttribute('style')\n\t\t}\n\t}\n\n\tprivate removeContent() {\n\t\tconst contentEl = document.getElementById(this.tooltipContentId)\n\t\tif (contentEl) {\n\t\t\tcontentEl.remove()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tid={this.tooltipId}\n\t\t\t\tclass={this.h.classes(TooltipClass.root)}\n\t\t\t\tposition={this.position}>\n\t\t\t\t<span role={'button'}\n\t\t\t\t\t\t\ttabindex={0}\n\t\t\t\t\t\t\tonKeyPress={() => this.showTooltip()}\n\t\t\t\t\t\t\tonBlur={() => {\n\t\t\t\t\t\t\t\tif (this.persist === false) {\n\t\t\t\t\t\t\t\t\tthis.hideTooltip()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\taria-describedby={this.identifier ?? this.tooltipContentId}><slot/></span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showTooltip()\n\t}\n\n\t/**\n\t * Hiding the modal\n\t */\n\t@Method()\n\tasync hide(): Promise<void> {\n\t\tthis.persist = false\n\t\tthis.hideTooltip()\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-tooltip-content\",\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip is still visible.\n\t */\n\t@Prop() persist?: boolean = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\n\n\t@Watch(\"isVisible\")\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = \"hidden\"\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = \"visible\"\n\t\t}\n\t}\n\n\thideContent() {\n\t\tthis.isVisible = false\n\t\tthis.persist = false\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\n\t\tif (parentEl) {\n\t\t\tparentEl.hide().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={TooltipContentClass.root}\n\t\t\t\trole={\"tooltip\"}\n\t\t\t\thidden={!this.isVisible}\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\n\t\t\t\tis-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t\t{this.persist ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\n\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"base\"}>\n\t\t\t\t\t\t<gov-icon slot={\"icon-start\"} name={\"x-lg\"} type={\"components\"}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -59,8 +59,8 @@ const GovWizardItem = class {
59
59
  render() {
60
60
  const triggerId = this.identifier || this.triggerId;
61
61
  const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
62
- const prefixSlot = this.h.hasSlot("prefix") && (index.h("span", { key: '7a71f037abd3c10c7754b96089ca6d6ac9cdd9b8', class: constants.WizardItemClass.prefix }, index.h("slot", { key: '2098b7afb20be95e403b4306bc904828dd4a038e', name: "prefix" })));
63
- return (index.h(index.Host, { key: '2b152deb4456bad539e85ca2ccf815eefc0cb311', class: this.h.classes(constants.WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, index.h("div", { key: '8ad3628d1c591c3bb83c7aab740eb4f27b585cdb', class: constants.WizardItemClass.header }, prefixSlot, this.collapsible ? (index.h(Tag, { id: triggerId, class: this.h.classes(constants.WizardItemClass.label), "aria-expanded": template.booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": template.toBoolAttrIfDefined(this.disabled), onClick: (e) => {
62
+ const prefixSlot = this.h.hasSlot("prefix") && (index.h("span", { key: '10144e93de98bf60873fa6c244c4129b040b8bae', class: constants.WizardItemClass.prefix }, index.h("slot", { key: 'a946028d94e0c159cf4c91fa1773467c8203a5f2', name: "prefix" })));
63
+ return (index.h(index.Host, { key: 'f33ced4d5d8f57bec50cc8ebce6f12cf2145833d', class: this.h.classes(constants.WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, index.h("div", { key: '872e3e164b4cca4955c2ba4cf0a2d88563f50fc5', class: constants.WizardItemClass.header }, prefixSlot, this.collapsible ? (index.h(Tag, { id: triggerId, class: this.h.classes(constants.WizardItemClass.label), "aria-expanded": template.booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": template.toBoolAttrIfDefined(this.disabled), onClick: (e) => {
64
64
  e.preventDefault();
65
65
  e.stopPropagation();
66
66
  this.toggle();
@@ -1 +1 @@
1
- {"file":"gov-wizard-item.entry.cjs.js","mappings":";;;;;;;;;;;;AAQA,IAAK,IAGJ;AAHD,CAAA,UAAK,IAAI,EAAA;AACR,IAAA,IAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,IAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,GAGR,EAAA,CAAA,CAAA;MAKY,aAAa,GAAA,MAAA;AAMzB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AASxB;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,GAAqB,SAAS;AACpD;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAqB,GAAG;AAK7C;;AAEG;AACc,QAAA,IAAW,CAAA,WAAA,GAAY,KAAK;AAC7C;;AAEG;AACc,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AAC1C;;AAEG;AACgD,QAAA,IAAU,CAAA,UAAA,GAAG,KAAK;QA7BpE,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,SAAS,GAAGC,qBAAQ,CAAC,eAAe,CAAC;AAC1C,QAAA,IAAI,CAAC,SAAS,GAAGA,qBAAQ,CAAC,kBAAkB,CAAC;AAC7C;AAiCO,IAAA,aAAa,CAAC,QAAgB,EAAA;QACrCC,kBAAY,CAACC,sBAAY,EAAE,QAAQ,EAAEC,yBAAe,CAAC,IAAI,CAAC;;IAGnD,WAAW,GAAA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EAAE,CAAA,CACpB,CACN,CACI,EACL,IAAI,CAAC,WAAW,IAChBA,OAAA,CAAA,KAAA,EAAA,EACC,KAAK,EAAED,yBAAe,CAAC,OAAO,EAC9B,EAAE,EAAE,IAAI,CAAC,SAAS,EAAA,aAAA,EACLG,sBAAa,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,EAC5C,MAAM,EAAE,CAAC,IAAI,CAAC,UAAU,qBACP,SAAS,EAAA,EAE1BF,OAAQ,CAAA,MAAA,EAAA,IAAA,CAAA,CACH,KAENA,OAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAED,yBAAe,CAAC,OAAO,EAAA,aAAA,EACpBG,sBAAa,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,EAC5C,MAAM,EAAE,CAAC,IAAI,CAAC,UAAU,EAAA,EAEzBF,OAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,CACH,CACN,CACK;;AAIT;;AAEG;AAEH,IAAA,MAAM,IAAI,GAAA;AACT,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI;QACtB,IAAI,CAAC,WAAW,EAAE;;AAGnB;;AAEG;AAEI,IAAA,MAAM,KAAK,GAAA;AACjB,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;QACvB,IAAI,CAAC,WAAW,EAAE;;AAGnB;;AAEG;AAEI,IAAA,MAAM,MAAM,GAAA;AAClB,QAAA,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU;QAClC,IAAI,CAAC,WAAW,EAAE;;AAGnB;;AAEG;AAEI,IAAA,MAAM,YAAY,GAAA;QACxB,OAAO,IAAI,CAAC,UAAU;;;;;;;;;;","names":["govHost","createID","validateProp","WizardColors","WizardItemClass","h","Host","booleanString","toBoolAttrIfDefined"],"sources":["../../../packages/core/src/components/gov-wizard/gov-wizard-item.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\r\nimport { validateProp } from \"../../helpers/Validate/props\"\r\nimport { WizardSizesType, WizardColors, WizardColorType, WizardItemClass } from \"./constants\"\r\nimport { createID } from \"../../utils/string.utils\"\r\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\r\nimport { GovHost } from \"../../helpers/Dom/template.types\"\r\nimport { WizardItemEvent } from \"./gov-wizard-item.types\"\r\n\r\nenum Tags {\r\n\tDIV = \"div\",\r\n\tBUTTON = \"button\",\r\n}\r\n\r\n@Component({\r\n\ttag: \"gov-wizard-item\",\r\n})\r\nexport class GovWizardItem {\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(\"GovWizardItem\")\r\n\t\tthis.contentId = createID(\"GovWizardContent\")\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovWizardItemElement\r\n\t/**\r\n\t * Style variation of the button.\r\n\t */\r\n\t@Prop() readonly color?: WizardColorType = \"primary\"\r\n\t/**\r\n\t * Size of wizard\r\n\t */\r\n\t@Prop() readonly size?: WizardSizesType = \"m\"\r\n\t/**\r\n\t * Custom wizard item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Defines weather the wizard item can be collapsible\r\n\t */\r\n\t@Prop() readonly collapsible: boolean = false\r\n\t/**\r\n\t * Makes the wizard component disabled.\r\n\t */\r\n\t@Prop() readonly disabled: boolean = false\r\n\t/**\r\n\t * Defines whether the accordion is open or closed by button\r\n\t */\r\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\r\n\t/**\r\n\t * Called when the accordion state changes\r\n\t */\r\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizardItemEvent>\r\n\r\n\t@Watch(\"color\")\r\n\tprivate validateColor(newValue: string): void {\r\n\t\tvalidateProp(WizardColors, newValue, WizardItemClass.root)\r\n\t}\r\n\r\n\tprivate emmitChange(): void {\r\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizardItemClass.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 Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\r\n\t\tconst prefixSlot = this.h.hasSlot(\"prefix\") && (<span class={WizardItemClass.prefix}><slot name=\"prefix\" /></span>)\r\n\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(WizardItemClass.root)}\r\n\t\t\t\t is-expanded={this.isExpanded}\r\n\t\t\t\t color={this.color}\r\n\t\t\t\t size={this.size}\r\n\t\t\t\t role=\"listitem\"\r\n\t\t\t\t collapsible={this.collapsible}\r\n\t\t\t\t hydrated={this.hydrated}>\r\n\t\t\t\t<div class={WizardItemClass.header}>\r\n\t\t\t\t\t{prefixSlot}\r\n\t\t\t\t\t{this.collapsible ? (\r\n\t\t\t\t\t\t<Tag\r\n\t\t\t\t\t\t\tid={triggerId}\r\n\t\t\t\t\t\t\tclass={this.h.classes(WizardItemClass.label)}\r\n\t\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\r\n\t\t\t\t\t\t\taria-controls={this.contentId}\r\n\t\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t\t\tonClick={(e) => {\r\n\t\t\t\t\t\t\t\te.preventDefault()\r\n\t\t\t\t\t\t\t\te.stopPropagation()\r\n\t\t\t\t\t\t\t\tthis.toggle()\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\r\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\r\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\r\n\t\t\t\t\t\t</Tag>\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t<Tag class={this.h.classes(WizardItemClass.label)}>\r\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\r\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\r\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\r\n\t\t\t\t\t\t</Tag>\r\n\t\t\t\t\t)}\r\n\t\t\t\t</div>\r\n\t\t\t\t{this.collapsible ? (\r\n\t\t\t\t\t<div\r\n\t\t\t\t\t\tclass={WizardItemClass.content}\r\n\t\t\t\t\t\tid={this.contentId}\r\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\r\n\t\t\t\t\t\thidden={!this.isExpanded}\r\n\t\t\t\t\t\taria-labelledby={triggerId}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<slot />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t) : (\r\n\t\t\t\t\t<div class={WizardItemClass.content}\r\n\t\t\t\t\t\t aria-hidden={booleanString(!this.isExpanded)}\r\n\t\t\t\t\t\t hidden={!this.isExpanded}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<slot />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t)}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Opening the Wizard\r\n\t */\r\n\t@Method()\r\n\tasync open(): Promise<void> {\r\n\t\tthis.isExpanded = true\r\n\t\tthis.emmitChange()\r\n\t}\r\n\r\n\t/**\r\n\t * Closing the Wizard\r\n\t */\r\n\t@Method()\r\n\tpublic async close(): Promise<void> {\r\n\t\tthis.isExpanded = false\r\n\t\tthis.emmitChange()\r\n\t}\r\n\r\n\t/**\r\n\t * Wizard switch\r\n\t */\r\n\t@Method()\r\n\tpublic async toggle(): Promise<void> {\r\n\t\tthis.isExpanded = !this.isExpanded\r\n\t\tthis.emmitChange()\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the current state of the component\r\n\t */\r\n\t@Method()\r\n\tpublic async currentState(): Promise<boolean> {\r\n\t\treturn this.isExpanded\r\n\t}\r\n}\r\n"],"version":3}
1
+ {"file":"gov-wizard-item.entry.cjs.js","mappings":";;;;;;;;;;;;AAQA,IAAK,IAGJ;AAHD,CAAA,UAAK,IAAI,EAAA;AACR,IAAA,IAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,IAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,GAGR,EAAA,CAAA,CAAA;MAKY,aAAa,GAAA,MAAA;AAMzB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AASxB;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,GAAqB,SAAS;AACpD;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAqB,GAAG;AAK7C;;AAEG;AACc,QAAA,IAAW,CAAA,WAAA,GAAY,KAAK;AAC7C;;AAEG;AACc,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AAC1C;;AAEG;AACgD,QAAA,IAAU,CAAA,UAAA,GAAG,KAAK;QA7BpE,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,SAAS,GAAGC,qBAAQ,CAAC,eAAe,CAAC;AAC1C,QAAA,IAAI,CAAC,SAAS,GAAGA,qBAAQ,CAAC,kBAAkB,CAAC;AAC7C;AAiCO,IAAA,aAAa,CAAC,QAAgB,EAAA;QACrCC,k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AAI,EAAC,YAAY,GAAY,CAC1G,EACPC,OAAA,CAAA,MAAA,EAAA,EAAM,IAAI,EAAC,YAAY,EAAE,CAAA,CACpB,CACN,CACI,EACL,IAAI,CAAC,WAAW,IAChBA,OAAA,CAAA,KAAA,EAAA,EACC,KAAK,EAAED,yBAAe,CAAC,OAAO,EAC9B,EAAE,EAAE,IAAI,CAAC,SAAS,EAAA,aAAA,EACLG,sBAAa,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,EAC5C,MAAM,EAAE,CAAC,IAAI,CAAC,UAAU,qBACP,SAAS,EAAA,EAE1BF,OAAQ,CAAA,MAAA,EAAA,IAAA,CAAA,CACH,KAENA,OAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAED,yBAAe,CAAC,OAAO,EAAA,aAAA,EACpBG,sBAAa,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,EAC5C,MAAM,EAAE,CAAC,IAAI,CAAC,UAAU,EAAA,EAEzBF,OAAA,CAAA,MAAA,EAAA,IAAA,CAAQ,CACH,CACN,CACK;;AAIT;;AAEG;AAEH,IAAA,MAAM,IAAI,GAAA;AACT,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI;QACtB,IAAI,CAAC,WAAW,EAAE;;AAGnB;;AAEG;AAEI,IAAA,MAAM,KAAK,GAAA;AACjB,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;QACvB,IAAI,CAAC,WAAW,EAAE;;AAGnB;;AAEG;AAEI,IAAA,MAAM,MAAM,GAAA;AAClB,QAAA,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU;QAClC,IAAI,CAAC,WAAW,EAAE;;AAGnB;;AAEG;AAEI,IAAA,MAAM,YAAY,GAAA;QACxB,OAAO,IAAI,CAAC,UAAU;;;;;;;;;;","names":["govHost","createID","validateProp","WizardColors","WizardItemClass","h","Host","booleanString","toBoolAttrIfDefined"],"sources":["../../../packages/core/src/components/gov-wizard/gov-wizard-item.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizesType, WizardColors, WizardColorType, WizardItemClass } from \"./constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { WizardItemEvent } from \"./gov-wizard-item.types\"\n\nenum Tags {\n\tDIV = \"div\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-wizard-item\",\n})\nexport class GovWizardItem {\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(\"GovWizardItem\")\n\t\tthis.contentId = createID(\"GovWizardContent\")\n\t}\n\n\t@Element() readonly host: HTMLGovWizardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color?: WizardColorType = \"primary\"\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Custom wizard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines weather the wizard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Makes the wizard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizardItemEvent>\n\n\t@Watch(\"color\")\n\tprivate validateColor(newValue: string): void {\n\t\tvalidateProp(WizardColors, newValue, WizardItemClass.root)\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizardItemClass.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 Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\t\tconst prefixSlot = this.h.hasSlot(\"prefix\") && (<span class={WizardItemClass.prefix}><slot name=\"prefix\" /></span>)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardItemClass.root)}\n\t\t\t\t is-expanded={this.isExpanded}\n\t\t\t\t color={this.color}\n\t\t\t\t size={this.size}\n\t\t\t\t role=\"listitem\"\n\t\t\t\t collapsible={this.collapsible}\n\t\t\t\t hydrated={this.hydrated}>\n\t\t\t\t<div class={WizardItemClass.header}>\n\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\t\tclass={this.h.classes(WizardItemClass.label)}\n\t\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\tthis.toggle()\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Tag class={this.h.classes(WizardItemClass.label)}>\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\thidden={!this.isExpanded}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizardItemClass.content}\n\t\t\t\t\t\t aria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\t hidden={!this.isExpanded}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the Wizard\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpanded = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the Wizard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpanded = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizard switch\n\t */\n\t@Method()\n\tpublic async toggle(): Promise<void> {\n\t\tthis.isExpanded = !this.isExpanded\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpanded\n\t}\n}\n"],"version":3}