@gov-design-system-ce/components 4.1.3-BETA-10 → 4.2.0

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 (645) hide show
  1. package/dist/cjs/{constants-02aec493.js → constants-7f713d6c.js} +2 -2
  2. package/dist/cjs/{constants-02aec493.js.map → constants-7f713d6c.js.map} +1 -1
  3. package/dist/cjs/{constants-4dfa23e3.js → constants-c7447ffd.js} +3 -1
  4. package/dist/cjs/constants-c7447ffd.js.map +1 -0
  5. package/dist/cjs/{constants-52053f2d.js → constants-c84c60d6.js} +3 -1
  6. package/dist/cjs/constants-c84c60d6.js.map +1 -0
  7. package/dist/cjs/core.cjs.js +1 -1
  8. package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
  9. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-banner.cjs.entry.js +79 -0
  11. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -0
  12. package/dist/cjs/gov-blockquote.cjs.entry.js +33 -0
  13. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -0
  14. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
  15. package/dist/cjs/gov-button.cjs.entry.js +5 -4
  16. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-card.cjs.entry.js +1 -1
  18. package/dist/cjs/gov-chip.cjs.entry.js +4 -3
  19. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  22. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
  24. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  25. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  26. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  28. package/dist/cjs/gov-flex_3.cjs.entry.js +5 -5
  29. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -2
  31. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +3 -3
  33. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -1
  35. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  37. package/dist/cjs/gov-form-file.cjs.entry.js +3 -2
  38. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  39. package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-form-input_2.cjs.entry.js +10 -8
  41. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -3
  44. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  46. package/dist/cjs/gov-form-radio-group.cjs.entry.js +3 -3
  47. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  48. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -1
  49. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  50. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  51. package/dist/cjs/gov-form-select.cjs.entry.js +4 -3
  52. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -1
  54. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  55. package/dist/cjs/gov-grid-item.cjs.entry.js +13 -7
  56. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  57. package/dist/cjs/gov-grid.cjs.entry.js +7 -5
  58. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-infobar.cjs.entry.js +4 -3
  60. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  61. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  62. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  63. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  64. package/dist/cjs/gov-link.cjs.entry.js +2 -1
  65. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  66. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  67. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  68. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  69. package/dist/cjs/gov-pagination.cjs.entry.js +2 -1
  70. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  71. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  72. package/dist/cjs/gov-stepper-item.cjs.entry.js +2 -2
  73. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  74. package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
  75. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  76. package/dist/cjs/gov-tabs.cjs.entry.js +3 -2
  77. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  78. package/dist/cjs/gov-tag.cjs.entry.js +1 -1
  79. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  80. package/dist/cjs/gov-toast.cjs.entry.js +3 -2
  81. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  82. package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
  83. package/dist/cjs/gov-tooltip.cjs.entry.js +2 -2
  84. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  85. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  86. package/dist/cjs/index-0e4f24f9.js +8 -4
  87. package/dist/cjs/loader.cjs.js +1 -1
  88. package/dist/collection/collection-manifest.json +2 -1
  89. package/dist/collection/components/gov-attachments/gov-attachments-item.css +3 -4
  90. package/dist/collection/components/gov-banner/constants.js +26 -0
  91. package/dist/collection/components/gov-banner/constants.js.map +1 -0
  92. package/dist/collection/components/gov-banner/gov-banner.js +202 -0
  93. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -0
  94. package/dist/collection/components/gov-blocquote/constants.js +10 -0
  95. package/dist/collection/components/gov-blocquote/constants.js.map +1 -0
  96. package/dist/collection/components/gov-blocquote/gov-blockquote.js +61 -0
  97. package/dist/collection/components/gov-blocquote/gov-blockquote.js.map +1 -0
  98. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  99. package/dist/collection/components/gov-button/button/gov-button.js +5 -4
  100. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  101. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  102. package/dist/collection/components/gov-card/gov-card.js +1 -1
  103. package/dist/collection/components/gov-chip/gov-chip.js +4 -3
  104. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  105. package/dist/collection/components/gov-container/gov-container.js +1 -1
  106. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  107. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  108. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  109. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  110. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  111. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  112. package/dist/collection/components/gov-flex/gov-flex.js +22 -3
  113. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  114. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -2
  115. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  116. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -1
  117. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  118. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  119. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -2
  120. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  121. package/dist/collection/components/gov-form/group/constants.js +1 -1
  122. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  123. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +2 -2
  124. package/dist/collection/components/gov-form/group/gov-form-group.css +4 -4
  125. package/dist/collection/components/gov-form/group/gov-form-group.js +2 -2
  126. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +2 -2
  127. package/dist/collection/components/gov-form/input/gov-form-input.js +7 -6
  128. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  129. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  130. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  131. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -3
  132. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  133. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  134. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -1
  135. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  136. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  137. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -3
  138. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  139. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -1
  140. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  141. package/dist/collection/components/gov-grid/constants.js +2 -0
  142. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  143. package/dist/collection/components/gov-grid/gov-grid-item.js +111 -20
  144. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  145. package/dist/collection/components/gov-grid/gov-grid.js +56 -14
  146. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  147. package/dist/collection/components/gov-icon/gov-icon.js +0 -2
  148. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  149. package/dist/collection/components/gov-infobar/gov-infobar.js +4 -3
  150. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  151. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  152. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  153. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  154. package/dist/collection/components/gov-link/constants.js +1 -0
  155. package/dist/collection/components/gov-link/constants.js.map +1 -1
  156. package/dist/collection/components/gov-link/gov-link.js +1 -1
  157. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  158. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  159. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +3 -2
  160. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  161. package/dist/collection/components/gov-message/gov-message.js +1 -1
  162. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  163. package/dist/collection/components/gov-pagination/gov-pagination.js +2 -1
  164. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  165. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  166. package/dist/collection/components/gov-stepper/constants.js +2 -0
  167. package/dist/collection/components/gov-stepper/constants.js.map +1 -1
  168. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  169. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
  170. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  171. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  172. package/dist/collection/components/gov-tabs/gov-tabs.js +3 -2
  173. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  174. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  175. package/dist/collection/components/gov-theme-switch/constants.js +1 -0
  176. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  177. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  178. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  179. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  180. package/dist/collection/components/gov-toast/gov-toast.js +3 -2
  181. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  182. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  183. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  184. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  185. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  186. package/dist/collection/pages/Banner.js +268 -0
  187. package/dist/collection/pages/Banner.js.map +1 -0
  188. package/dist/collection/pages/Blockquote.js +25 -0
  189. package/dist/collection/pages/Blockquote.js.map +1 -0
  190. package/dist/collection/pages/Breadcrumbs.js +2 -2
  191. package/dist/collection/pages/Breadcrumbs.js.map +1 -1
  192. package/dist/collection/pages/Card.js +2 -2
  193. package/dist/collection/pages/Card.js.map +1 -1
  194. package/dist/collection/pages/Flex.js +1 -1
  195. package/dist/collection/pages/Flex.js.map +1 -1
  196. package/dist/collection/pages/Grid.js +61 -40
  197. package/dist/collection/pages/Grid.js.map +1 -1
  198. package/dist/collection/pages/Home.js +57 -0
  199. package/dist/collection/pages/Home.js.map +1 -1
  200. package/dist/collection/pages/Infobar.js +36 -56
  201. package/dist/collection/pages/Infobar.js.map +1 -1
  202. package/dist/collection/pages/Layout.js +10 -10
  203. package/dist/collection/pages/Layout.js.map +1 -1
  204. package/dist/collection/pages/Tag.js +14 -0
  205. package/dist/collection/pages/Tag.js.map +1 -1
  206. package/dist/collection/pages/Tiles.js +8 -235
  207. package/dist/collection/pages/Tiles.js.map +1 -1
  208. package/dist/collection/pages/Typography.js +110 -51
  209. package/dist/collection/pages/Typography.js.map +1 -1
  210. package/dist/components/gov-accordion-item.js +1 -1
  211. package/dist/components/gov-attachments-item.js +1 -1
  212. package/dist/components/{gov-tiles.d.ts → gov-banner.d.ts} +4 -4
  213. package/dist/components/gov-banner.js +2 -0
  214. package/dist/components/gov-banner.js.map +1 -0
  215. package/dist/components/gov-blockquote.d.ts +11 -0
  216. package/dist/components/gov-blockquote.js +2 -0
  217. package/dist/components/gov-blockquote.js.map +1 -0
  218. package/dist/components/gov-breadcrumbs.js +1 -1
  219. package/dist/components/gov-breadcrumbs.js.map +1 -1
  220. package/dist/components/gov-button.js +1 -1
  221. package/dist/components/gov-card.js +1 -1
  222. package/dist/components/gov-chip.js +1 -1
  223. package/dist/components/gov-container.js +1 -1
  224. package/dist/components/gov-control-group.js +1 -1
  225. package/dist/components/gov-cookiebar.js +1 -1
  226. package/dist/components/gov-dialog.js +1 -1
  227. package/dist/components/gov-dialog.js.map +1 -1
  228. package/dist/components/gov-dropdown.js +1 -1
  229. package/dist/components/gov-empty.js +1 -1
  230. package/dist/components/gov-error-code.js +1 -1
  231. package/dist/components/gov-flex.js +1 -1
  232. package/dist/components/gov-flex.js.map +1 -1
  233. package/dist/components/gov-form-autocomplete.js +1 -1
  234. package/dist/components/gov-form-checkbox-group.js +1 -1
  235. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  236. package/dist/components/gov-form-checkbox.js +1 -1
  237. package/dist/components/gov-form-checkbox.js.map +1 -1
  238. package/dist/components/gov-form-control.js +1 -1
  239. package/dist/components/gov-form-file.js +1 -1
  240. package/dist/components/gov-form-file.js.map +1 -1
  241. package/dist/components/gov-form-group.js +1 -1
  242. package/dist/components/gov-form-input.js +1 -1
  243. package/dist/components/gov-form-label.js +1 -1
  244. package/dist/components/gov-form-message.js +1 -1
  245. package/dist/components/gov-form-multi-select.js +1 -1
  246. package/dist/components/gov-form-multi-select.js.map +1 -1
  247. package/dist/components/gov-form-password-power.js +1 -1
  248. package/dist/components/gov-form-radio-group.js +1 -1
  249. package/dist/components/gov-form-radio-group.js.map +1 -1
  250. package/dist/components/gov-form-radio.js +1 -1
  251. package/dist/components/gov-form-radio.js.map +1 -1
  252. package/dist/components/gov-form-search.js +1 -1
  253. package/dist/components/gov-form-select.js +1 -1
  254. package/dist/components/gov-form-switch.js +1 -1
  255. package/dist/components/gov-form-switch.js.map +1 -1
  256. package/dist/components/gov-grid-item.js +1 -1
  257. package/dist/components/gov-grid-item.js.map +1 -1
  258. package/dist/components/gov-grid.js +1 -1
  259. package/dist/components/gov-grid.js.map +1 -1
  260. package/dist/components/gov-icon.js +1 -1
  261. package/dist/components/gov-infobar.js +1 -1
  262. package/dist/components/gov-infobar.js.map +1 -1
  263. package/dist/components/gov-layout-column.js +1 -1
  264. package/dist/components/gov-layout.js +1 -1
  265. package/dist/components/gov-lifecycle.js +1 -1
  266. package/dist/components/gov-link.js +1 -1
  267. package/dist/components/gov-link.js.map +1 -1
  268. package/dist/components/gov-loading.js +1 -1
  269. package/dist/components/gov-loading.js.map +1 -1
  270. package/dist/components/gov-message.js +1 -1
  271. package/dist/components/gov-message.js.map +1 -1
  272. package/dist/components/gov-pagination.js +1 -1
  273. package/dist/components/gov-pagination.js.map +1 -1
  274. package/dist/components/gov-skeleton.js +1 -1
  275. package/dist/components/gov-spacer.js +1 -1
  276. package/dist/components/gov-stepper-item.js +1 -1
  277. package/dist/components/gov-stepper-item.js.map +1 -1
  278. package/dist/components/gov-stepper.js +1 -1
  279. package/dist/components/gov-tabs-item.js +1 -1
  280. package/dist/components/gov-tabs.js +1 -1
  281. package/dist/components/gov-tabs.js.map +1 -1
  282. package/dist/components/gov-tag.js +1 -1
  283. package/dist/components/gov-theme-switch.js +1 -1
  284. package/dist/components/gov-theme-switch.js.map +1 -1
  285. package/dist/components/gov-tile.js +1 -1
  286. package/dist/components/gov-toast.js +1 -1
  287. package/dist/components/gov-toast.js.map +1 -1
  288. package/dist/components/gov-tooltip-content.js +1 -1
  289. package/dist/components/gov-tooltip.js +1 -1
  290. package/dist/components/gov-tooltip.js.map +1 -1
  291. package/dist/components/gov-wizard-item.js +1 -1
  292. package/dist/components/gov-wizard.js +1 -1
  293. package/dist/components/p-0327a469.js +2 -0
  294. package/dist/components/p-0327a469.js.map +1 -0
  295. package/dist/components/p-2ca5423c.js +2 -0
  296. package/dist/components/p-2ca5423c.js.map +1 -0
  297. package/dist/components/p-2fc08a71.js +2 -0
  298. package/dist/components/p-2fc08a71.js.map +1 -0
  299. package/dist/components/p-3c90521b.js +2 -0
  300. package/dist/components/p-3c90521b.js.map +1 -0
  301. package/dist/components/p-3fead64a.js +2 -0
  302. package/dist/components/p-3fead64a.js.map +1 -0
  303. package/dist/components/p-4fba9df0.js +2 -0
  304. package/dist/components/p-4fba9df0.js.map +1 -0
  305. package/dist/components/p-69a31c96.js +2 -0
  306. package/dist/components/p-69a31c96.js.map +1 -0
  307. package/dist/components/p-b533871a.js +2 -0
  308. package/dist/components/p-b533871a.js.map +1 -0
  309. package/dist/components/p-b5dc6bae.js +2 -0
  310. package/dist/components/p-b5dc6bae.js.map +1 -0
  311. package/dist/components/p-ea128b8b.js +2 -0
  312. package/dist/components/p-ea128b8b.js.map +1 -0
  313. package/dist/components/p-f9a1ff6e.js +2 -0
  314. package/dist/components/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  315. package/dist/components/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  316. package/dist/core/core.css +2711 -1506
  317. package/dist/core/core.esm.js +1 -1
  318. package/dist/core/core.esm.js.map +1 -1
  319. package/dist/core/p-005214d1.entry.js +2 -0
  320. package/dist/core/p-0ef1f684.entry.js +2 -0
  321. package/dist/core/p-0ef1f684.entry.js.map +1 -0
  322. package/dist/core/p-0fc9ea97.entry.js +2 -0
  323. package/dist/core/p-0fc9ea97.entry.js.map +1 -0
  324. package/dist/core/p-132c9a87.entry.js +2 -0
  325. package/dist/core/p-132c9a87.entry.js.map +1 -0
  326. package/dist/core/p-16d3a79a.entry.js +2 -0
  327. package/dist/core/{p-49ebfe10.entry.js.map → p-16d3a79a.entry.js.map} +1 -1
  328. package/dist/core/p-16f44a0b.entry.js +2 -0
  329. package/dist/core/p-16f44a0b.entry.js.map +1 -0
  330. package/dist/core/p-1c7c9144.entry.js +2 -0
  331. package/dist/core/p-1cf1dd10.entry.js +2 -0
  332. package/dist/core/{p-bd667900.entry.js.map → p-1cf1dd10.entry.js.map} +1 -1
  333. package/dist/core/{p-9fcb2ba7.entry.js → p-23b4dcd3.entry.js} +2 -2
  334. package/dist/core/p-2536a8ff.entry.js +2 -0
  335. package/dist/core/p-2536a8ff.entry.js.map +1 -0
  336. package/dist/core/p-28d1bc01.entry.js +2 -0
  337. package/dist/core/p-28d1bc01.entry.js.map +1 -0
  338. package/dist/core/p-2ca5423c.js +2 -0
  339. package/dist/core/p-2ca5423c.js.map +1 -0
  340. package/dist/core/{p-a5648769.entry.js → p-3acaa012.entry.js} +2 -2
  341. package/dist/core/{p-a5648769.entry.js.map → p-3acaa012.entry.js.map} +1 -1
  342. package/dist/core/p-3d7fb8f8.entry.js +2 -0
  343. package/dist/core/p-3d7fb8f8.entry.js.map +1 -0
  344. package/dist/core/{p-fd7a3951.entry.js → p-46ecf09e.entry.js} +2 -2
  345. package/dist/core/p-49cd4d0d.entry.js +2 -0
  346. package/dist/core/{p-0932c74d.entry.js.map → p-49cd4d0d.entry.js.map} +1 -1
  347. package/dist/core/{p-eed4e606.entry.js → p-5108eb37.entry.js} +2 -2
  348. package/dist/core/{p-eed4e606.entry.js.map → p-5108eb37.entry.js.map} +1 -1
  349. package/dist/core/p-52103c05.entry.js +2 -0
  350. package/dist/core/p-52103c05.entry.js.map +1 -0
  351. package/dist/core/{p-ab500948.entry.js → p-5242b51b.entry.js} +2 -2
  352. package/dist/core/p-564555e6.entry.js +2 -0
  353. package/dist/core/p-59fe6cbc.entry.js +2 -0
  354. package/dist/core/p-59fe6cbc.entry.js.map +1 -0
  355. package/dist/core/p-650fe9e8.entry.js +2 -0
  356. package/dist/core/{p-9e77f076.entry.js.map → p-650fe9e8.entry.js.map} +1 -1
  357. package/dist/core/p-6e41cf69.entry.js +2 -0
  358. package/dist/core/p-7399ad59.entry.js +2 -0
  359. package/dist/core/p-7399ad59.entry.js.map +1 -0
  360. package/dist/core/p-79ec86da.entry.js +2 -0
  361. package/dist/core/p-80bebb7f.entry.js +2 -0
  362. package/dist/core/p-80bebb7f.entry.js.map +1 -0
  363. package/dist/core/p-8cbe8add.entry.js +2 -0
  364. package/dist/core/{p-e078dab3.entry.js.map → p-8cbe8add.entry.js.map} +1 -1
  365. package/dist/core/p-8f73f8e0.entry.js +2 -0
  366. package/dist/core/p-94119ad4.entry.js +2 -0
  367. package/dist/core/p-94119ad4.entry.js.map +1 -0
  368. package/dist/core/p-952ab9e5.entry.js +2 -0
  369. package/dist/core/{p-a8a5e8ca.entry.js.map → p-952ab9e5.entry.js.map} +1 -1
  370. package/dist/core/{p-5ff7f0c4.entry.js → p-99f192c1.entry.js} +2 -2
  371. package/dist/core/p-9ae280b2.entry.js +2 -0
  372. package/dist/core/p-9ae280b2.entry.js.map +1 -0
  373. package/dist/core/p-9c1601b3.entry.js +2 -0
  374. package/dist/core/p-9c1601b3.entry.js.map +1 -0
  375. package/dist/core/p-a02f2547.entry.js +2 -0
  376. package/dist/core/p-ab11081d.entry.js +2 -0
  377. package/dist/core/p-ab11081d.entry.js.map +1 -0
  378. package/dist/core/p-ab868410.entry.js +2 -0
  379. package/dist/core/{p-f9474bb3.entry.js.map → p-ab868410.entry.js.map} +1 -1
  380. package/dist/core/{p-a58f4e2b.entry.js → p-ae88fe6b.entry.js} +2 -2
  381. package/dist/core/p-c07f6bb4.entry.js +2 -0
  382. package/dist/core/p-c07f6bb4.entry.js.map +1 -0
  383. package/dist/core/{p-d512059d.entry.js → p-c2abc031.entry.js} +2 -2
  384. package/dist/core/p-c688349d.entry.js +2 -0
  385. package/dist/core/p-c6fdc0a9.entry.js +2 -0
  386. package/dist/core/p-c6fdc0a9.entry.js.map +1 -0
  387. package/dist/core/p-c91512dd.entry.js +2 -0
  388. package/dist/core/p-cf9d5c2f.entry.js +2 -0
  389. package/dist/core/p-cf9d5c2f.entry.js.map +1 -0
  390. package/dist/core/p-d1270d72.entry.js +2 -0
  391. package/dist/core/{p-93179cbf.entry.js.map → p-d1270d72.entry.js.map} +1 -1
  392. package/dist/core/p-d141e9ca.entry.js +2 -0
  393. package/dist/core/p-d141e9ca.entry.js.map +1 -0
  394. package/dist/core/p-de852480.entry.js +2 -0
  395. package/dist/core/p-e89471ef.entry.js +2 -0
  396. package/dist/core/p-ea128b8b.js +2 -0
  397. package/dist/core/p-ea128b8b.js.map +1 -0
  398. package/dist/core/p-eb8a9705.entry.js +2 -0
  399. package/dist/core/p-eb8a9705.entry.js.map +1 -0
  400. package/dist/core/p-ee950038.entry.js +2 -0
  401. package/dist/core/p-ee950038.entry.js.map +1 -0
  402. package/dist/core/p-f0e001c7.entry.js +2 -0
  403. package/dist/core/{p-c9d70c7a.entry.js.map → p-f0e001c7.entry.js.map} +1 -1
  404. package/dist/core/{p-9514520c.entry.js → p-f120ba66.entry.js} +2 -2
  405. package/dist/core/p-f120ba66.entry.js.map +1 -0
  406. package/dist/core/p-f333c673.entry.js +2 -0
  407. package/dist/core/{p-07b1fa1c.entry.js.map → p-f333c673.entry.js.map} +1 -1
  408. package/dist/core/p-f7e47c0a.entry.js +2 -0
  409. package/dist/core/p-f7e47c0a.entry.js.map +1 -0
  410. package/dist/core/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  411. package/dist/core/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  412. package/dist/esm/{constants-4da2b3c0.js → constants-1548499a.js} +2 -2
  413. package/dist/esm/{constants-4da2b3c0.js.map → constants-1548499a.js.map} +1 -1
  414. package/dist/esm/{constants-372455eb.js → constants-7b1ce2ec.js} +3 -1
  415. package/dist/esm/constants-7b1ce2ec.js.map +1 -0
  416. package/dist/esm/{constants-2d5a0e18.js → constants-dc2115cb.js} +3 -1
  417. package/dist/esm/constants-dc2115cb.js.map +1 -0
  418. package/dist/esm/core.js +1 -1
  419. package/dist/esm/gov-attachments_3.entry.js +2 -2
  420. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  421. package/dist/esm/gov-banner.entry.js +75 -0
  422. package/dist/esm/gov-banner.entry.js.map +1 -0
  423. package/dist/esm/gov-blockquote.entry.js +29 -0
  424. package/dist/esm/gov-blockquote.entry.js.map +1 -0
  425. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  426. package/dist/esm/gov-button.entry.js +5 -4
  427. package/dist/esm/gov-button.entry.js.map +1 -1
  428. package/dist/esm/gov-card.entry.js +1 -1
  429. package/dist/esm/gov-chip.entry.js +4 -3
  430. package/dist/esm/gov-chip.entry.js.map +1 -1
  431. package/dist/esm/gov-container.entry.js +1 -1
  432. package/dist/esm/gov-control-group.entry.js +1 -1
  433. package/dist/esm/gov-cookiebar.entry.js +1 -1
  434. package/dist/esm/gov-dialog.entry.js +1 -1
  435. package/dist/esm/gov-dialog.entry.js.map +1 -1
  436. package/dist/esm/gov-dropdown.entry.js +1 -1
  437. package/dist/esm/gov-empty.entry.js +1 -1
  438. package/dist/esm/gov-error-code.entry.js +1 -1
  439. package/dist/esm/gov-flex_3.entry.js +5 -5
  440. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  441. package/dist/esm/gov-form-autocomplete.entry.js +3 -2
  442. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  443. package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
  444. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  445. package/dist/esm/gov-form-checkbox.entry.js +2 -1
  446. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  447. package/dist/esm/gov-form-control.entry.js +1 -1
  448. package/dist/esm/gov-form-file.entry.js +3 -2
  449. package/dist/esm/gov-form-file.entry.js.map +1 -1
  450. package/dist/esm/gov-form-group.entry.js +2 -2
  451. package/dist/esm/gov-form-input_2.entry.js +10 -8
  452. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  453. package/dist/esm/gov-form-label.entry.js +1 -1
  454. package/dist/esm/gov-form-multi-select.entry.js +4 -3
  455. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  456. package/dist/esm/gov-form-password-power.entry.js +1 -1
  457. package/dist/esm/gov-form-radio-group.entry.js +3 -3
  458. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  459. package/dist/esm/gov-form-radio.entry.js +2 -1
  460. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  461. package/dist/esm/gov-form-search.entry.js +1 -1
  462. package/dist/esm/gov-form-select.entry.js +4 -3
  463. package/dist/esm/gov-form-select.entry.js.map +1 -1
  464. package/dist/esm/gov-form-switch.entry.js +2 -1
  465. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  466. package/dist/esm/gov-grid-item.entry.js +13 -7
  467. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  468. package/dist/esm/gov-grid.entry.js +7 -5
  469. package/dist/esm/gov-grid.entry.js.map +1 -1
  470. package/dist/esm/gov-infobar.entry.js +4 -3
  471. package/dist/esm/gov-infobar.entry.js.map +1 -1
  472. package/dist/esm/gov-layout-column.entry.js +1 -1
  473. package/dist/esm/gov-layout.entry.js +1 -1
  474. package/dist/esm/gov-lifecycle.entry.js +1 -1
  475. package/dist/esm/gov-link.entry.js +2 -1
  476. package/dist/esm/gov-link.entry.js.map +1 -1
  477. package/dist/esm/gov-loading.entry.js +1 -1
  478. package/dist/esm/gov-message.entry.js +1 -1
  479. package/dist/esm/gov-message.entry.js.map +1 -1
  480. package/dist/esm/gov-pagination.entry.js +2 -1
  481. package/dist/esm/gov-pagination.entry.js.map +1 -1
  482. package/dist/esm/gov-spacer.entry.js +1 -1
  483. package/dist/esm/gov-stepper-item.entry.js +2 -2
  484. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  485. package/dist/esm/gov-stepper.entry.js +2 -2
  486. package/dist/esm/gov-tabs-item.entry.js +1 -1
  487. package/dist/esm/gov-tabs.entry.js +3 -2
  488. package/dist/esm/gov-tabs.entry.js.map +1 -1
  489. package/dist/esm/gov-tag.entry.js +1 -1
  490. package/dist/esm/gov-tile.entry.js +1 -1
  491. package/dist/esm/gov-toast.entry.js +3 -2
  492. package/dist/esm/gov-toast.entry.js.map +1 -1
  493. package/dist/esm/gov-tooltip-content.entry.js +1 -1
  494. package/dist/esm/gov-tooltip.entry.js +2 -2
  495. package/dist/esm/gov-wizard-item.entry.js +2 -2
  496. package/dist/esm/gov-wizard.entry.js +1 -1
  497. package/dist/esm/index-bf8a6f64.js +8 -4
  498. package/dist/esm/loader.js +1 -1
  499. package/dist/hydrate/index.js +246 -128
  500. package/dist/hydrate/index.mjs +246 -128
  501. package/dist/stencil.config.js +2 -1
  502. package/dist/stencil.config.js.map +1 -1
  503. package/dist/types/components/gov-banner/constants.d.ts +26 -0
  504. package/dist/types/components/gov-banner/gov-banner.d.ts +38 -0
  505. package/dist/types/components/gov-blocquote/constants.d.ts +10 -0
  506. package/dist/types/components/gov-blocquote/gov-blockquote.d.ts +15 -0
  507. package/dist/types/components/gov-button/button/constants.d.ts +1 -1
  508. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  509. package/dist/types/components/gov-flex/gov-flex.d.ts +5 -1
  510. package/dist/types/components/gov-form/group/constants.d.ts +1 -1
  511. package/dist/types/components/gov-grid/constants.d.ts +4 -0
  512. package/dist/types/components/gov-grid/gov-grid-item.d.ts +25 -5
  513. package/dist/types/components/gov-grid/gov-grid.d.ts +11 -2
  514. package/dist/types/components/gov-icon/constants.d.ts +1 -1
  515. package/dist/types/components/gov-infobar/constants.d.ts +1 -1
  516. package/dist/types/components/gov-link/constants.d.ts +1 -0
  517. package/dist/types/components/gov-stepper/constants.d.ts +2 -0
  518. package/dist/types/components/gov-theme-switch/constants.d.ts +1 -0
  519. package/dist/types/components.d.ts +179 -36
  520. package/dist/types/pages/Banner.d.ts +3 -0
  521. package/dist/types/pages/Blockquote.d.ts +3 -0
  522. package/package.json +3 -3
  523. package/dist/cjs/constants-4dfa23e3.js.map +0 -1
  524. package/dist/cjs/constants-52053f2d.js.map +0 -1
  525. package/dist/cjs/gov-tiles.cjs.entry.js +0 -26
  526. package/dist/cjs/gov-tiles.cjs.entry.js.map +0 -1
  527. package/dist/collection/components/gov-tile/container/constants.js +0 -4
  528. package/dist/collection/components/gov-tile/container/constants.js.map +0 -1
  529. package/dist/collection/components/gov-tile/container/gov-tiles.js +0 -37
  530. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +0 -1
  531. package/dist/components/gov-tiles.js +0 -2
  532. package/dist/components/gov-tiles.js.map +0 -1
  533. package/dist/components/p-076c8b31.js +0 -2
  534. package/dist/components/p-076c8b31.js.map +0 -1
  535. package/dist/components/p-13a70392.js +0 -2
  536. package/dist/components/p-13a70392.js.map +0 -1
  537. package/dist/components/p-4d513423.js +0 -2
  538. package/dist/components/p-4d513423.js.map +0 -1
  539. package/dist/components/p-4faecdb2.js +0 -2
  540. package/dist/components/p-4faecdb2.js.map +0 -1
  541. package/dist/components/p-558cbab0.js +0 -2
  542. package/dist/components/p-558cbab0.js.map +0 -1
  543. package/dist/components/p-880743a5.js +0 -2
  544. package/dist/components/p-880743a5.js.map +0 -1
  545. package/dist/components/p-a521c59a.js +0 -2
  546. package/dist/components/p-a521c59a.js.map +0 -1
  547. package/dist/components/p-a877bf8a.js +0 -2
  548. package/dist/components/p-a877bf8a.js.map +0 -1
  549. package/dist/components/p-b97d8edd.js +0 -2
  550. package/dist/components/p-b97d8edd.js.map +0 -1
  551. package/dist/components/p-c438a723.js +0 -2
  552. package/dist/components/p-c5e91e5a.js +0 -2
  553. package/dist/components/p-c5e91e5a.js.map +0 -1
  554. package/dist/core/p-07b1fa1c.entry.js +0 -2
  555. package/dist/core/p-0932c74d.entry.js +0 -2
  556. package/dist/core/p-13c6da90.entry.js +0 -2
  557. package/dist/core/p-13c6da90.entry.js.map +0 -1
  558. package/dist/core/p-15a7b952.entry.js +0 -2
  559. package/dist/core/p-15a7b952.entry.js.map +0 -1
  560. package/dist/core/p-2470194a.entry.js +0 -2
  561. package/dist/core/p-2470194a.entry.js.map +0 -1
  562. package/dist/core/p-2abdce2d.entry.js +0 -2
  563. package/dist/core/p-2abdce2d.entry.js.map +0 -1
  564. package/dist/core/p-2ae8b8d5.entry.js +0 -2
  565. package/dist/core/p-2ae8b8d5.entry.js.map +0 -1
  566. package/dist/core/p-3627773f.entry.js +0 -2
  567. package/dist/core/p-3627773f.entry.js.map +0 -1
  568. package/dist/core/p-36b35592.entry.js +0 -2
  569. package/dist/core/p-36b35592.entry.js.map +0 -1
  570. package/dist/core/p-3974176f.entry.js +0 -2
  571. package/dist/core/p-3974176f.entry.js.map +0 -1
  572. package/dist/core/p-3b8b331f.entry.js +0 -2
  573. package/dist/core/p-41e0ad2e.entry.js +0 -2
  574. package/dist/core/p-41e0ad2e.entry.js.map +0 -1
  575. package/dist/core/p-49ebfe10.entry.js +0 -2
  576. package/dist/core/p-4aa5db49.entry.js +0 -2
  577. package/dist/core/p-4aa5db49.entry.js.map +0 -1
  578. package/dist/core/p-5e42395f.entry.js +0 -2
  579. package/dist/core/p-5e42395f.entry.js.map +0 -1
  580. package/dist/core/p-72c4ebcd.entry.js +0 -2
  581. package/dist/core/p-72cdac94.entry.js +0 -2
  582. package/dist/core/p-77bf7b01.entry.js +0 -2
  583. package/dist/core/p-77bf7b01.entry.js.map +0 -1
  584. package/dist/core/p-7a44bd0a.entry.js +0 -2
  585. package/dist/core/p-7a44bd0a.entry.js.map +0 -1
  586. package/dist/core/p-7c0be05a.entry.js +0 -2
  587. package/dist/core/p-7c0be05a.entry.js.map +0 -1
  588. package/dist/core/p-80c7db1f.entry.js +0 -2
  589. package/dist/core/p-80c7db1f.entry.js.map +0 -1
  590. package/dist/core/p-880743a5.js +0 -2
  591. package/dist/core/p-880743a5.js.map +0 -1
  592. package/dist/core/p-8e5f45d0.entry.js +0 -2
  593. package/dist/core/p-8ede0622.entry.js +0 -2
  594. package/dist/core/p-9256cf6c.entry.js +0 -2
  595. package/dist/core/p-93179cbf.entry.js +0 -2
  596. package/dist/core/p-93b747c1.entry.js +0 -2
  597. package/dist/core/p-9514520c.entry.js.map +0 -1
  598. package/dist/core/p-9897ac81.entry.js +0 -2
  599. package/dist/core/p-9897ac81.entry.js.map +0 -1
  600. package/dist/core/p-9e77f076.entry.js +0 -2
  601. package/dist/core/p-a0728f09.entry.js +0 -2
  602. package/dist/core/p-a0728f09.entry.js.map +0 -1
  603. package/dist/core/p-a22517e2.entry.js +0 -2
  604. package/dist/core/p-a22517e2.entry.js.map +0 -1
  605. package/dist/core/p-a521c59a.js +0 -2
  606. package/dist/core/p-a521c59a.js.map +0 -1
  607. package/dist/core/p-a8a5e8ca.entry.js +0 -2
  608. package/dist/core/p-b319674e.entry.js +0 -2
  609. package/dist/core/p-b404f53c.entry.js +0 -2
  610. package/dist/core/p-bd667900.entry.js +0 -2
  611. package/dist/core/p-c34dad75.entry.js +0 -2
  612. package/dist/core/p-c9d70c7a.entry.js +0 -2
  613. package/dist/core/p-e078dab3.entry.js +0 -2
  614. package/dist/core/p-e4ac787c.entry.js +0 -2
  615. package/dist/core/p-e4ac787c.entry.js.map +0 -1
  616. package/dist/core/p-e7b3b5db.entry.js +0 -2
  617. package/dist/core/p-e7b3b5db.entry.js.map +0 -1
  618. package/dist/core/p-f60265c3.entry.js +0 -2
  619. package/dist/core/p-f6863a64.entry.js +0 -2
  620. package/dist/core/p-f6863a64.entry.js.map +0 -1
  621. package/dist/core/p-f9474bb3.entry.js +0 -2
  622. package/dist/esm/constants-2d5a0e18.js.map +0 -1
  623. package/dist/esm/constants-372455eb.js.map +0 -1
  624. package/dist/esm/gov-tiles.entry.js +0 -22
  625. package/dist/esm/gov-tiles.entry.js.map +0 -1
  626. package/dist/types/components/gov-tile/container/constants.d.ts +0 -3
  627. package/dist/types/components/gov-tile/container/gov-tiles.d.ts +0 -10
  628. /package/dist/components/{p-c438a723.js.map → p-f9a1ff6e.js.map} +0 -0
  629. /package/dist/core/{p-8e5f45d0.entry.js.map → p-005214d1.entry.js.map} +0 -0
  630. /package/dist/core/{p-93b747c1.entry.js.map → p-1c7c9144.entry.js.map} +0 -0
  631. /package/dist/core/{p-9fcb2ba7.entry.js.map → p-23b4dcd3.entry.js.map} +0 -0
  632. /package/dist/core/{p-fd7a3951.entry.js.map → p-46ecf09e.entry.js.map} +0 -0
  633. /package/dist/core/{p-ab500948.entry.js.map → p-5242b51b.entry.js.map} +0 -0
  634. /package/dist/core/{p-b319674e.entry.js.map → p-564555e6.entry.js.map} +0 -0
  635. /package/dist/core/{p-b404f53c.entry.js.map → p-6e41cf69.entry.js.map} +0 -0
  636. /package/dist/core/{p-f60265c3.entry.js.map → p-79ec86da.entry.js.map} +0 -0
  637. /package/dist/core/{p-3b8b331f.entry.js.map → p-8f73f8e0.entry.js.map} +0 -0
  638. /package/dist/core/{p-5ff7f0c4.entry.js.map → p-99f192c1.entry.js.map} +0 -0
  639. /package/dist/core/{p-c34dad75.entry.js.map → p-a02f2547.entry.js.map} +0 -0
  640. /package/dist/core/{p-a58f4e2b.entry.js.map → p-ae88fe6b.entry.js.map} +0 -0
  641. /package/dist/core/{p-d512059d.entry.js.map → p-c2abc031.entry.js.map} +0 -0
  642. /package/dist/core/{p-72cdac94.entry.js.map → p-c688349d.entry.js.map} +0 -0
  643. /package/dist/core/{p-8ede0622.entry.js.map → p-c91512dd.entry.js.map} +0 -0
  644. /package/dist/core/{p-9256cf6c.entry.js.map → p-de852480.entry.js.map} +0 -0
  645. /package/dist/core/{p-72c4ebcd.entry.js.map → p-e89471ef.entry.js.map} +0 -0
@@ -3,7 +3,7 @@
3
3
  const utils = require('./utils-d263c5c6.js');
4
4
  const sizes = require('./sizes-89f8d3b2.js');
5
5
 
6
- const FormGroupSizes = utils.pick(sizes.Sizes, ['_2XS', '_XS', '_S', '_M', '_L']);
6
+ const FormGroupSizes = utils.pick(sizes.Sizes, ['_XS', '_S', '_M', '_L', '_2XL']);
7
7
  exports.FormGroupOrientation = void 0;
8
8
  (function (FormGroupOrientation) {
9
9
  FormGroupOrientation["HORIZONTAL"] = "horizontal";
@@ -24,4 +24,4 @@ exports.FormGroupClass = FormGroupClass;
24
24
  exports.FormGroupSizes = FormGroupSizes;
25
25
  exports.FormRadioGroupClass = FormRadioGroupClass;
26
26
 
27
- //# sourceMappingURL=constants-02aec493.js.map
27
+ //# sourceMappingURL=constants-7f713d6c.js.map
@@ -1 +1 @@
1
- {"file":"constants-02aec493.js","mappings":";;;;;MAIa,cAAc,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAC;AAGhEC;AAAZ,WAAY,oBAAoB;IAC/B,iDAAyB,CAAA;IACzB,6CAAqB,CAAA;AACtB,CAAC,EAHWA,4BAAoB,KAApBA,4BAAoB,QAG/B;MAGY,cAAc,GAAG;IAC7B,IAAI,EAAE,gBAAgB;EACtB;MAEY,mBAAmB,GAAG;IAClC,IAAI,EAAE,sBAAsB;EAC5B;MAEY,sBAAsB,GAAG;IACrC,IAAI,EAAE,yBAAyB;;;;;;;;","names":["pick","Sizes","FormGroupOrientation"],"sources":["../../../packages/core/src/components/gov-form/group/constants.ts"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\nimport { Sizes } from \"../../../core/constants/sizes\"\nimport { ValueOf } from \"../../../types/interfaces\"\n\nexport const FormGroupSizes = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L'])\nexport type FormGroupSizesType = `${ValueOf<typeof FormGroupSizes>}`\n\nexport enum FormGroupOrientation {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\nexport type FormGroupOrientationType = `${ValueOf<typeof FormGroupOrientation>}`\n\nexport const FormGroupClass = {\n\troot: 'gov-form-group',\n}\n\nexport const FormRadioGroupClass = {\n\troot: 'gov-form-radio-group',\n}\n\nexport const FormCheckboxGroupClass = {\n\troot: 'gov-form-checkbox-group',\n}\n"],"version":3}
1
+ {"file":"constants-7f713d6c.js","mappings":";;;;;MAIa,cAAc,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAC;AAGhEC;AAAZ,WAAY,oBAAoB;IAC/B,iDAAyB,CAAA;IACzB,6CAAqB,CAAA;AACtB,CAAC,EAHWA,4BAAoB,KAApBA,4BAAoB,QAG/B;MAGY,cAAc,GAAG;IAC7B,IAAI,EAAE,gBAAgB;EACtB;MAEY,mBAAmB,GAAG;IAClC,IAAI,EAAE,sBAAsB;EAC5B;MAEY,sBAAsB,GAAG;IACrC,IAAI,EAAE,yBAAyB;;;;;;;;","names":["pick","Sizes","FormGroupOrientation"],"sources":["../../../packages/core/src/components/gov-form/group/constants.ts"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\nimport { Sizes } from \"../../../core/constants/sizes\"\nimport { ValueOf } from \"../../../types/interfaces\"\n\nexport const FormGroupSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_2XL'])\nexport type FormGroupSizesType = `${ValueOf<typeof FormGroupSizes>}`\n\nexport enum FormGroupOrientation {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\nexport type FormGroupOrientationType = `${ValueOf<typeof FormGroupOrientation>}`\n\nexport const FormGroupClass = {\n\troot: 'gov-form-group',\n}\n\nexport const FormRadioGroupClass = {\n\troot: 'gov-form-radio-group',\n}\n\nexport const FormCheckboxGroupClass = {\n\troot: 'gov-form-checkbox-group',\n}\n"],"version":3}
@@ -13,7 +13,9 @@ const StepperItemClass = {
13
13
  root: 'gov-stepper-item',
14
14
  header: 'gov-stepper-item__header',
15
15
  label: 'gov-stepper-item__label',
16
+ steps: 'gov-stepper-item__steps',
16
17
  prefix: 'gov-stepper-item__prefix',
18
+ main: 'gov-stepper-item__main',
17
19
  headline: 'gov-stepper-item__headline',
18
20
  annotation: 'gov-stepper-item__annotation',
19
21
  content: 'gov-stepper-item__content',
@@ -24,4 +26,4 @@ exports.StepperColors = StepperColors;
24
26
  exports.StepperItemClass = StepperItemClass;
25
27
  exports.StepperSizes = StepperSizes;
26
28
 
27
- //# sourceMappingURL=constants-4dfa23e3.js.map
29
+ //# sourceMappingURL=constants-c7447ffd.js.map
@@ -0,0 +1 @@
1
+ {"file":"constants-c7447ffd.js","mappings":";;;;;;MAKa,aAAa,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,EAAC;MAGnF,YAAY,GAAGD,UAAI,CAACE,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAC;MAG9C,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;EACnB;MAEY,gBAAgB,GAAG;IAC/B,IAAI,EAAE,kBAAkB;IACxB,MAAM,EAAE,0BAA0B;IAClC,KAAK,EAAE,yBAAyB;IAChC,KAAK,EAAE,yBAAyB;IAChC,MAAM,EAAE,0BAA0B;IAClC,IAAI,EAAE,wBAAwB;IAC9B,QAAQ,EAAE,4BAA4B;IACtC,UAAU,EAAE,8BAA8B;IAC1C,OAAO,EAAE,2BAA2B;;;;;;;;","names":["pick","Colors","Sizes"],"sources":["../../../packages/core/src/components/gov-stepper/constants.ts"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { Sizes } from '../../core/constants/sizes'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const StepperColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type StepperColorType = `${ValueOf<typeof StepperColors>}`\n\nexport const StepperSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type StepperSizesType = `${ValueOf<typeof StepperSizes>}`\n\nexport const StepperClass = {\n\troot: 'gov-stepper',\n}\n\nexport const StepperItemClass = {\n\troot: 'gov-stepper-item',\n\theader: 'gov-stepper-item__header',\n\tlabel: 'gov-stepper-item__label',\n\tsteps: 'gov-stepper-item__steps',\n\tprefix: 'gov-stepper-item__prefix',\n\tmain: 'gov-stepper-item__main',\n\theadline: 'gov-stepper-item__headline',\n\tannotation: 'gov-stepper-item__annotation',\n\tcontent: 'gov-stepper-item__content',\n}\n"],"version":3}
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ require('./sizes-89f8d3b2.js');
4
+
3
5
  const GridClass = {
4
6
  root: 'gov-grid',
5
7
  };
@@ -10,4 +12,4 @@ const GridItemClass = {
10
12
  exports.GridClass = GridClass;
11
13
  exports.GridItemClass = GridItemClass;
12
14
 
13
- //# sourceMappingURL=constants-52053f2d.js.map
15
+ //# sourceMappingURL=constants-c84c60d6.js.map
@@ -0,0 +1 @@
1
+ {"file":"constants-c84c60d6.js","mappings":";;;;MAMa,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;EAChB;MAEY,aAAa,GAAG;IAC5B,IAAI,EAAE,eAAe;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-grid/constants.ts"],"sourcesContent":["import {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const GridSizes = Sizes\nexport type GridSizesType = `${ValueOf<typeof GridSizes>}`\n\nexport const GridClass = {\n\troot: 'gov-grid',\n}\n\nexport const GridItemClass = {\n\troot: 'gov-grid-item',\n}\n"],"version":3}
@@ -40,7 +40,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
40
40
 
41
41
  patchBrowser().then(async (options) => {
42
42
  await appGlobals.globalScripts();
43
- return index.bootstrapLazy(JSON.parse("[[\"gov-form-file.cjs\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[516],\"resetAfterPick\":[4,\"reset-after-pick\"],\"ignoreFileDuplicationCheck\":[4,\"ignore-file-duplication-check\"],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"multiple\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"accessibleRemoveLabel\":[1,\"accessible-remove-label\"],\"accessibleAttachmentsLabel\":[1,\"accessible-attachments-label\"],\"files\":[32],\"inheritedAttributes\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"reset\":[64]},null,{\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-multi-select.cjs\",[[4,\"gov-form-multi-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"placeholder\":[1],\"size\":[1],\"name\":[1],\"hideSelectedList\":[4,\"hide-selected-list\"],\"required\":[4],\"disabled\":[516],\"invalid\":[516],\"success\":[4],\"messageEmpty\":[1,\"message-empty\"],\"messageLoading\":[1,\"message-loading\"],\"focused\":[32],\"valueState\":[32],\"selectedOptionsState\":[32],\"optionsState\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"],\"value\":[\"watchValue\"]}]]],[\"gov-dialog.cjs\",[[4,\"gov-dialog\",{\"open\":[1540],\"blockClose\":[4,\"block-close\"],\"blockBackdropClose\":[4,\"block-backdrop-close\"],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"accessibleLabelledBy\":[1,\"accessible-labelled-by\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleCloseLabelledBy\":[1,\"accessible-close-labelled-by\"],\"setFocus\":[64],\"validateAccessibility\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-pagination.cjs\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"selectIdentifier\":[1,\"select-identifier\"],\"size\":[1],\"color\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"accessibleSelectLabel\":[1,\"accessible-select-label\"],\"accessiblePageLabel\":[1,\"accessible-page-label\"],\"labelPrev\":[1,\"label-prev\"],\"labelStart\":[1,\"label-start\"],\"labelNext\":[1,\"label-next\"],\"labelEnd\":[1,\"label-end\"],\"pagination\":[32],\"inheritedAttributes\":[32]},null,{\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"color\":[\"validateColor\"],\"current\":[\"recalculate\"],\"total\":[\"recalculate\"],\"pageSize\":[\"recalculate\"],\"maxPages\":[\"recalculate\"]}]]],[\"gov-breadcrumbs.cjs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"accessibleToggleLabel\":[1,\"accessible-toggle-label\"],\"expanded\":[32],\"toggleOption\":[32],\"validateAccessibility\":[64]}]]],[\"gov-infobar.cjs\",[[4,\"gov-infobar\",{\"color\":[1],\"type\":[1],\"role\":[1],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleToggleLabel\":[1,\"accessible-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"inheritedAttributes\":[32]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-loading.cjs\",[[4,\"gov-loading\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-tabs.cjs\",[[4,\"gov-tabs\",{\"type\":[1],\"size\":[1],\"color\":[1],\"orientation\":[1],\"direction\":[513],\"controllers\":[32],\"focusIndex\":[32],\"inheritedAttributes\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"rerender\":[64]},null,{\"type\":[\"validateType\"],\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-toast.cjs\",[[4,\"gov-toast\",{\"color\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"inheritedAttributes\":[32],\"destroy\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-tooltip-content.cjs\",[[4,\"gov-tooltip-content\",{\"color\":[1],\"size\":[1],\"persist\":[4],\"isVisible\":[1028,\"is-visible\"],\"parentId\":[1,\"parent-id\"]},null,{\"isVisible\":[\"visibleContent\"]}]]],[\"gov-accordion-item.cjs\",[[4,\"gov-accordion-item\",{\"identifier\":[1],\"size\":[1025],\"disabled\":[4],\"open\":[1028],\"openState\":[32],\"toggle\":[64],\"currentState\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-card.cjs\",[[4,\"gov-card\",{\"direction\":[1],\"collapsible\":[4],\"open\":[1540],\"accessibleTriggerLabel\":[1,\"accessible-label\"],\"accessibleTriggerLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-form-checkbox.cjs\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[516],\"indeterminate\":[516],\"name\":[1],\"size\":[513],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-switch.cjs\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[516],\"name\":[1],\"size\":[513],\"identifier\":[1],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchDisabled\"],\"disabled\":[\"watchDisabled\"],\"invalid\":[\"watchDisabled\"]}]]],[\"gov-link.cjs\",[[4,\"gov-link\",{\"size\":[1],\"external\":[4],\"href\":[1],\"target\":[1],\"inheritedAttributes\":[32]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-tag.cjs\",[[4,\"gov-tag\",{\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"size\":[513],\"color\":[513],\"type\":[513],\"expanded\":[516]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-tile.cjs\",[[4,\"gov-tile\",{\"size\":[513],\"orientation\":[1],\"noBorder\":[4,\"no-border\"],\"href\":[513],\"target\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizard-item.cjs\",[[4,\"gov-wizard-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"disabled\":[4],\"isExpanded\":[1028,\"is-expanded\"],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-accordion.cjs\",[[4,\"gov-accordion\",{\"size\":[1],\"noBorder\":[4,\"no-border\"]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-container.cjs\",[[4,\"gov-container\"]]],[\"gov-control-group.cjs\",[[4,\"gov-control-group\",{\"color\":[1],\"noBorder\":[4,\"no-border\"],\"fitContent\":[4,\"fit-content\"]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-cookiebar.cjs\",[[4,\"gov-cookiebar\"]]],[\"gov-dropdown.cjs\",[[4,\"gov-dropdown\",{\"identifier\":[1],\"open\":[1028],\"position\":[1],\"getState\":[64],\"toggle\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-empty.cjs\",[[4,\"gov-empty\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-error-code.cjs\",[[4,\"gov-error-code\"]]],[\"gov-form-checkbox-group.cjs\",[[4,\"gov-form-checkbox-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-control.cjs\",[[4,\"gov-form-control\",{\"identifier\":[1],\"invalid\":[516],\"disabled\":[516],\"success\":[516],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group.cjs\",[[4,\"gov-form-group\",{\"gap\":[1],\"orientation\":[1]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-label.cjs\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power.cjs\",[[4,\"gov-form-password-power\",{\"power\":[514]}]]],[\"gov-form-radio.cjs\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[516],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-radio-group.cjs\",[[4,\"gov-form-radio-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-search.cjs\",[[4,\"gov-form-search\",{\"size\":[1],\"color\":[513]}]]],[\"gov-grid.cjs\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item.cjs\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout.cjs\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column.cjs\",[[4,\"gov-layout-column\"]]],[\"gov-lifecycle.cjs\",[[0,\"gov-lifecycle\"]]],[\"gov-message.cjs\",[[4,\"gov-message\",{\"color\":[1],\"type\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-spacer.cjs\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]},null,{\"size\":[\"validateSize\"],\"breakpoint\":[\"validateBreakpoint\"]}]]],[\"gov-stepper.cjs\",[[4,\"gov-stepper\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-stepper-item.cjs\",[[4,\"gov-stepper-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-tabs-item.cjs\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[513],\"disabled\":[516],\"iconStart\":[513,\"icon-start\"],\"iconEnd\":[513,\"icon-end\"],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"getDisableState\":[64],\"setActiveStatus\":[64]},null,{\"label\":[\"rerenderParent\"],\"disabled\":[\"rerenderParent\"]}]]],[\"gov-tiles.cjs\",[[4,\"gov-tiles\",{\"columns\":[514]}]]],[\"gov-tooltip.cjs\",[[4,\"gov-tooltip\",{\"color\":[1],\"size\":[1],\"position\":[1025],\"message\":[1],\"identifier\":[1],\"icon\":[516],\"persist\":[32],\"show\":[64],\"hide\":[64]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"],\"position\":[\"validatePosition\"],\"message\":[\"rerenderMessage\"]}]]],[\"gov-wizard.cjs\",[[4,\"gov-wizard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-flex_3.cjs\",[[0,\"gov-theme-switch\",{\"size\":[1],\"displayLabel\":[4,\"display-label\"],\"ariaLabelLight\":[1,\"aria-label-light\"],\"ariaLabelDark\":[1,\"aria-label-dark\"],\"labelLight\":[1,\"label-light\"],\"labelDark\":[1,\"label-dark\"],\"theme\":[32]},null,{\"size\":[\"validateSize\"],\"theme\":[\"watchTheme\"]}],[4,\"gov-flex\",{\"direction\":[1],\"justifyContent\":[513,\"justify-content\"],\"alignItems\":[513,\"align-items\"],\"wrap\":[513],\"alignContent\":[513,\"align-content\"],\"alignSelf\":[513,\"align-self\"],\"gap\":[513]}],[0,\"gov-icon\",{\"size\":[513],\"color\":[513],\"name\":[513],\"type\":[513],\"visible\":[32],\"error\":[32]},null,{\"size\":[\"validateSize\"],\"color\":[\"validateColor\"],\"name\":[\"loadIconPathData\"]}]]],[\"gov-button.cjs\",[[4,\"gov-button\",{\"color\":[513],\"size\":[513],\"type\":[513],\"expanded\":[516],\"name\":[1],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"inheritedAttributes\":[32],\"setFocus\":[64],\"getRef\":[64],\"validateAccessibility\":[64]},null,{\"color\":[\"validateColor\"],\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"nativeType\":[\"validateNativeType\"]}]]],[\"gov-form-autocomplete.cjs\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"success\":[4],\"size\":[1],\"nameKey\":[1,\"name-key\"],\"name\":[1],\"required\":[4],\"disabled\":[516],\"placeholder\":[1],\"readonly\":[4],\"invalid\":[4],\"minlength\":[2],\"maxlength\":[2],\"throttleTime\":[2,\"throttle-time\"],\"messageEmpty\":[1,\"message-empty\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setBlur\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]},null,{\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"]}]]],[\"gov-chip.cjs\",[[4,\"gov-chip\",{\"disabled\":[516],\"href\":[1],\"target\":[1],\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"size\":[1],\"tag\":[1],\"color\":[1],\"type\":[513],\"focusable\":[4],\"identifier\":[1],\"inheritedAttributes\":[32],\"geRef\":[64],\"setFocus\":[64]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-form-select.cjs\",[[4,\"gov-form-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"success\":[516],\"disabled\":[516],\"invalid\":[4],\"focused\":[32],\"optionsState\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"options\":[\"watchOptions\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"],\"value\":[\"watchValue\"]}]]],[\"gov-backdrop.cjs\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"disabled\":[1540],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-attachments_3.cjs\",[[4,\"gov-attachments-item\",{\"accessibleRemoveLabel\":[1,\"accessible-remove-label\"],\"accessibleRemoveLabelledBy\":[1,\"accessible-remove-labelledby\"],\"validateAccessibility\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"color\":[1],\"size\":[1],\"identifier\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-form-input_2.cjs\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"success\":[516],\"size\":[1],\"name\":[1],\"multiline\":[4],\"rows\":[2],\"cols\":[2],\"required\":[516],\"disabled\":[516],\"placeholder\":[1],\"readonly\":[4],\"minlength\":[2],\"maxlength\":[2],\"min\":[8],\"max\":[8],\"autocomplete\":[4],\"autocorrect\":[4],\"spellcheck\":[4],\"inputLang\":[1,\"input-lang\"],\"type\":[1],\"inputType\":[1,\"input-type\"],\"role\":[1],\"invalid\":[516],\"accessibleShowPasswordLabel\":[1,\"accessible-show-password-label\"],\"accessibleHidePasswordLabel\":[1,\"accessible-hide-password-label\"],\"focused\":[32],\"showPassword\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"]}],[0,\"gov-skeleton\",{\"size\":[1],\"color\":[1],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"inheritedAttributes\":[32]},null,{\"size\":[\"validateSize\"],\"shape\":[\"validateShape\"],\"animation\":[\"validateAnimation\"]}]]]]"), options);
43
+ return index.bootstrapLazy(JSON.parse("[[\"gov-form-file.cjs\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[516],\"resetAfterPick\":[4,\"reset-after-pick\"],\"ignoreFileDuplicationCheck\":[4,\"ignore-file-duplication-check\"],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"multiple\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"accessibleRemoveLabel\":[1,\"accessible-remove-label\"],\"accessibleAttachmentsLabel\":[1,\"accessible-attachments-label\"],\"files\":[32],\"inheritedAttributes\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"reset\":[64]},null,{\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-multi-select.cjs\",[[4,\"gov-form-multi-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"placeholder\":[1],\"size\":[1],\"name\":[1],\"hideSelectedList\":[4,\"hide-selected-list\"],\"required\":[4],\"disabled\":[516],\"invalid\":[516],\"success\":[4],\"messageEmpty\":[1,\"message-empty\"],\"messageLoading\":[1,\"message-loading\"],\"focused\":[32],\"valueState\":[32],\"selectedOptionsState\":[32],\"optionsState\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"],\"value\":[\"watchValue\"]}]]],[\"gov-dialog.cjs\",[[4,\"gov-dialog\",{\"open\":[1540],\"blockClose\":[4,\"block-close\"],\"blockBackdropClose\":[4,\"block-backdrop-close\"],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"accessibleLabelledBy\":[1,\"accessible-labelled-by\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleCloseLabelledBy\":[1,\"accessible-close-labelled-by\"],\"setFocus\":[64],\"validateAccessibility\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-pagination.cjs\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"selectIdentifier\":[1,\"select-identifier\"],\"size\":[1],\"color\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"accessibleSelectLabel\":[1,\"accessible-select-label\"],\"accessiblePageLabel\":[1,\"accessible-page-label\"],\"labelPrev\":[1,\"label-prev\"],\"labelStart\":[1,\"label-start\"],\"labelNext\":[1,\"label-next\"],\"labelEnd\":[1,\"label-end\"],\"pagination\":[32],\"inheritedAttributes\":[32]},null,{\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"color\":[\"validateColor\"],\"current\":[\"recalculate\"],\"total\":[\"recalculate\"],\"pageSize\":[\"recalculate\"],\"maxPages\":[\"recalculate\"]}]]],[\"gov-banner.cjs\",[[4,\"gov-banner\",{\"size\":[513],\"background\":[1],\"foreground\":[1],\"textColor\":[1,\"text-color\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-breadcrumbs.cjs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"accessibleToggleLabel\":[1,\"accessible-toggle-label\"],\"expanded\":[32],\"toggleOption\":[32],\"validateAccessibility\":[64]}]]],[\"gov-infobar.cjs\",[[4,\"gov-infobar\",{\"color\":[1],\"type\":[1],\"role\":[1],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleToggleLabel\":[1,\"accessible-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"inheritedAttributes\":[32]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-loading.cjs\",[[4,\"gov-loading\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-tabs.cjs\",[[4,\"gov-tabs\",{\"type\":[1],\"size\":[1],\"color\":[1],\"orientation\":[1],\"direction\":[513],\"controllers\":[32],\"focusIndex\":[32],\"inheritedAttributes\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"rerender\":[64]},null,{\"type\":[\"validateType\"],\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-toast.cjs\",[[4,\"gov-toast\",{\"color\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"inheritedAttributes\":[32],\"destroy\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-tooltip-content.cjs\",[[4,\"gov-tooltip-content\",{\"color\":[1],\"size\":[1],\"persist\":[4],\"isVisible\":[1028,\"is-visible\"],\"parentId\":[1,\"parent-id\"]},null,{\"isVisible\":[\"visibleContent\"]}]]],[\"gov-accordion-item.cjs\",[[4,\"gov-accordion-item\",{\"identifier\":[1],\"size\":[1025],\"disabled\":[4],\"open\":[1028],\"openState\":[32],\"toggle\":[64],\"currentState\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-blockquote.cjs\",[[4,\"gov-blockquote\",{\"type\":[513],\"cite\":[1]}]]],[\"gov-form-checkbox.cjs\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[516],\"indeterminate\":[516],\"name\":[1],\"size\":[513],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-switch.cjs\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[516],\"name\":[1],\"size\":[513],\"identifier\":[1],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchDisabled\"],\"disabled\":[\"watchDisabled\"],\"invalid\":[\"watchDisabled\"]}]]],[\"gov-link.cjs\",[[4,\"gov-link\",{\"size\":[1],\"external\":[4],\"href\":[1],\"target\":[1],\"inheritedAttributes\":[32]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-tag.cjs\",[[4,\"gov-tag\",{\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"size\":[513],\"color\":[513],\"type\":[513],\"expanded\":[516]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-tile.cjs\",[[4,\"gov-tile\",{\"size\":[513],\"orientation\":[1],\"noBorder\":[4,\"no-border\"],\"href\":[513],\"target\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizard-item.cjs\",[[4,\"gov-wizard-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"disabled\":[4],\"isExpanded\":[1028,\"is-expanded\"],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-accordion.cjs\",[[4,\"gov-accordion\",{\"size\":[1],\"noBorder\":[4,\"no-border\"]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-container.cjs\",[[4,\"gov-container\"]]],[\"gov-control-group.cjs\",[[4,\"gov-control-group\",{\"color\":[1],\"noBorder\":[4,\"no-border\"],\"fitContent\":[4,\"fit-content\"]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-cookiebar.cjs\",[[4,\"gov-cookiebar\"]]],[\"gov-empty.cjs\",[[4,\"gov-empty\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-error-code.cjs\",[[4,\"gov-error-code\"]]],[\"gov-form-control.cjs\",[[4,\"gov-form-control\",{\"identifier\":[1],\"invalid\":[516],\"disabled\":[516],\"success\":[516],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group.cjs\",[[4,\"gov-form-group\",{\"gap\":[1],\"orientation\":[1]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-password-power.cjs\",[[4,\"gov-form-password-power\",{\"power\":[514]}]]],[\"gov-form-radio.cjs\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[516],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"inheritedAttributes\":[32],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-search.cjs\",[[4,\"gov-form-search\",{\"size\":[1],\"color\":[513]}]]],[\"gov-grid.cjs\",[[4,\"gov-grid\",{\"columns\":[513],\"alignItems\":[513,\"align-items\"],\"justifyItems\":[513,\"justify-items\"],\"gap\":[513]}]]],[\"gov-layout.cjs\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column.cjs\",[[4,\"gov-layout-column\"]]],[\"gov-message.cjs\",[[4,\"gov-message\",{\"color\":[1],\"type\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-stepper.cjs\",[[4,\"gov-stepper\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-stepper-item.cjs\",[[4,\"gov-stepper-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-wizard.cjs\",[[4,\"gov-wizard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-flex_3.cjs\",[[0,\"gov-theme-switch\",{\"size\":[1],\"displayLabel\":[4,\"display-label\"],\"ariaLabelLight\":[1,\"aria-label-light\"],\"ariaLabelDark\":[1,\"aria-label-dark\"],\"labelLight\":[1,\"label-light\"],\"labelDark\":[1,\"label-dark\"],\"theme\":[32]},null,{\"size\":[\"validateSize\"],\"theme\":[\"watchTheme\"]}],[4,\"gov-flex\",{\"direction\":[513],\"justifyContent\":[513,\"justify-content\"],\"alignItems\":[513,\"align-items\"],\"wrap\":[513],\"alignContent\":[513,\"align-content\"],\"alignSelf\":[513,\"align-self\"],\"gap\":[513],\"responsive\":[513]}],[0,\"gov-icon\",{\"size\":[513],\"color\":[513],\"name\":[513],\"type\":[513],\"visible\":[32],\"error\":[32]},null,{\"size\":[\"validateSize\"],\"color\":[\"validateColor\"],\"name\":[\"loadIconPathData\"]}]]],[\"gov-card.cjs\",[[4,\"gov-card\",{\"direction\":[1],\"collapsible\":[4],\"open\":[1540],\"accessibleTriggerLabel\":[1,\"accessible-label\"],\"accessibleTriggerLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-dropdown.cjs\",[[4,\"gov-dropdown\",{\"identifier\":[1],\"open\":[1028],\"position\":[1],\"getState\":[64],\"toggle\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-form-checkbox-group.cjs\",[[4,\"gov-form-checkbox-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-label.cjs\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-radio-group.cjs\",[[4,\"gov-form-radio-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-grid-item.cjs\",[[4,\"gov-grid-item\",{\"column\":[1,\"col-span\"],\"columnSm\":[1,\"col-span-sm\"],\"columnMd\":[1,\"col-span-md\"],\"columnLg\":[1,\"col-span-lg\"],\"columnXl\":[1,\"col-span-xl\"],\"row\":[1,\"row-span\"],\"rowSm\":[1,\"row-span-sm\"],\"rowMd\":[1,\"row-span-md\"],\"rowLg\":[1,\"row-span-lg\"],\"rowXl\":[1,\"row-span-xl\"]}]]],[\"gov-lifecycle.cjs\",[[0,\"gov-lifecycle\"]]],[\"gov-spacer.cjs\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]},null,{\"size\":[\"validateSize\"],\"breakpoint\":[\"validateBreakpoint\"]}]]],[\"gov-tabs-item.cjs\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[513],\"disabled\":[516],\"iconStart\":[513,\"icon-start\"],\"iconEnd\":[513,\"icon-end\"],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"getDisableState\":[64],\"setActiveStatus\":[64]},null,{\"label\":[\"rerenderParent\"],\"disabled\":[\"rerenderParent\"]}]]],[\"gov-tooltip.cjs\",[[4,\"gov-tooltip\",{\"color\":[1],\"size\":[1],\"position\":[1025],\"message\":[1],\"identifier\":[1],\"icon\":[516],\"persist\":[32],\"show\":[64],\"hide\":[64]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"],\"position\":[\"validatePosition\"],\"message\":[\"rerenderMessage\"]}]]],[\"gov-button.cjs\",[[4,\"gov-button\",{\"color\":[513],\"size\":[513],\"type\":[513],\"expanded\":[516],\"name\":[1],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"inheritedAttributes\":[32],\"setFocus\":[64],\"getRef\":[64],\"validateAccessibility\":[64]},null,{\"color\":[\"validateColor\"],\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"nativeType\":[\"validateNativeType\"]}]]],[\"gov-form-autocomplete.cjs\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"success\":[4],\"size\":[1],\"nameKey\":[1,\"name-key\"],\"name\":[1],\"required\":[4],\"disabled\":[516],\"placeholder\":[1],\"readonly\":[4],\"invalid\":[4],\"minlength\":[2],\"maxlength\":[2],\"throttleTime\":[2,\"throttle-time\"],\"messageEmpty\":[1,\"message-empty\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setBlur\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]},null,{\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"]}]]],[\"gov-chip.cjs\",[[4,\"gov-chip\",{\"disabled\":[516],\"href\":[1],\"target\":[1],\"iconStart\":[1,\"icon-start\"],\"iconEnd\":[1,\"icon-end\"],\"size\":[1],\"tag\":[1],\"color\":[1],\"type\":[513],\"focusable\":[4],\"identifier\":[1],\"inheritedAttributes\":[32],\"geRef\":[64],\"setFocus\":[64]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-form-select.cjs\",[[4,\"gov-form-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"success\":[516],\"disabled\":[516],\"invalid\":[4],\"focused\":[32],\"optionsState\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"options\":[\"watchOptions\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"],\"value\":[\"watchValue\"]}]]],[\"gov-backdrop.cjs\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"disabled\":[1540],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-attachments_3.cjs\",[[4,\"gov-attachments-item\",{\"accessibleRemoveLabel\":[1,\"accessible-remove-label\"],\"accessibleRemoveLabelledBy\":[1,\"accessible-remove-labelledby\"],\"validateAccessibility\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"color\":[1],\"size\":[1],\"identifier\":[64]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-form-input_2.cjs\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"success\":[516],\"size\":[1],\"name\":[1],\"multiline\":[4],\"rows\":[2],\"cols\":[2],\"required\":[516],\"disabled\":[516],\"placeholder\":[1],\"readonly\":[4],\"minlength\":[2],\"maxlength\":[2],\"min\":[8],\"max\":[8],\"autocomplete\":[4],\"autocorrect\":[4],\"spellcheck\":[4],\"inputLang\":[1,\"input-lang\"],\"type\":[1],\"inputType\":[1,\"input-type\"],\"role\":[1],\"invalid\":[516],\"accessibleShowPasswordLabel\":[1,\"accessible-show-password-label\"],\"accessibleHidePasswordLabel\":[1,\"accessible-hide-password-label\"],\"focused\":[32],\"showPassword\":[32],\"inheritedAttributes\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"]}],[0,\"gov-skeleton\",{\"size\":[1],\"color\":[1],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"inheritedAttributes\":[32]},null,{\"size\":[\"validateSize\"],\"shape\":[\"validateShape\"],\"animation\":[\"validateAnimation\"]}]]]]"), options);
44
44
  });
45
45
 
46
46
  exports.setNonce = index.setNonce;
@@ -51,7 +51,7 @@ const GovAttachments = class {
51
51
  get host() { return index.getElement(this); }
52
52
  };
53
53
 
54
- const govAttachmentsItemCss = "gov-attachments-item,.gov-attachments-item{position:relative;display:flex;width:100%;gap:var(--spacing-s)}gov-attachments-item__messages>*:last-child,.gov-attachments-item__messages>*:last-child{margin-bottom:0}gov-attachments-item__file,.gov-attachments-item__file{display:flex;gap:var(--spacing-s)}gov-attachments-item__name,.gov-attachments-item__name{display:flex;gap:var(--spacing-s);flex-wrap:wrap;align-items:center;margin:0;color:var(--name-color, var(--text-primary))}gov-attachments-item__name span,.gov-attachments-item__name span{font-size:var(--font-size-xs);line-height:var(--height-line-xs);letter-spacing:0.0125rem;font-weight:400;color:var(--decor-color, var(--text-secondary))}";
54
+ const govAttachmentsItemCss = "gov-attachments-item,.gov-attachments-item{position:relative;display:flex;width:100%;gap:var(--spacing-s)}gov-attachments-item__messages>*:last-child,.gov-attachments-item__messages>*:last-child{margin-bottom:0}gov-attachments-item__file,.gov-attachments-item__file{display:flex;gap:var(--spacing-s)}gov-attachments-item__name,.gov-attachments-item__name{display:flex;gap:var(--spacing-s);flex-wrap:wrap;align-items:center;margin:0;color:var(--name-color, var(--text-primary))}gov-attachments-item__name span,.gov-attachments-item__name span{font-size:var(--font-size-body-xs);line-height:150%;font-weight:400;color:var(--decor-color, var(--text-secondary))}";
55
55
  const GovAttachmentsItemStyle0 = govAttachmentsItemCss;
56
56
 
57
57
  const GovAttachmentsItem = class {
@@ -96,7 +96,7 @@ const GovFormMessage = class {
96
96
  this.validateColor(this.color);
97
97
  }
98
98
  render() {
99
- return (index.h(index.Host, { key: '86a59a0001123abc4ff9350657f71e4e4ac1b0c5', class: this.h.classes(constants.FormMessageClass.root), color: this.color, size: this.size }, this.h.hasSlot('icon') && (index.h("slot", { key: '94f919d5d79ab453be3cccab92e695c9a9a79276', name: "icon" })), index.h("span", { key: 'e112ca627b1d4deef23eb1567bcbb014a82388d9', id: this.messageId, class: constants.FormMessageClass.content }, index.h("slot", { key: '1733f5e338c14f5d353a77266359033b42469eff' }))));
99
+ return (index.h(index.Host, { key: 'dbc990cf3a48496a4905a768b3a7c662d42cc3ad', class: this.h.classes(constants.FormMessageClass.root), color: this.color, size: this.size }, this.h.hasSlot('icon') && (index.h("slot", { key: '600a149b56204308139aa026aea04dc5d872a7fe', name: "icon" })), index.h("span", { key: '61d47c46b469a1c070d2a0f7df3a47f8a878ba6f', id: this.messageId, class: constants.FormMessageClass.content }, index.h("slot", { key: 'ff74d2926ddb5c3c79349d28906ff41a2485fde5' }))));
100
100
  }
101
101
  /**
102
102
  * Returns unique identifier of message
@@ -1 +1 @@
1
- {"file":"gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAAO,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,uBAAuB;CAC7B,CAAA;AAEM,MAAM,oBAAoB,GAAG;IACnC,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,4BAA4B;IAClC,QAAQ,EAAE,gCAAgC;CAC1C;;MCAY,cAAc;IAG1B;;;;QACC,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAYD,MAAM,kBAAkB;QACvB,IAAIC,+BAAuB,EAA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EAAC,MAAM,GAAG,CACpB,EACDA,mEAAM,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAEO,0BAAgB,CAAC,OAAO,IACxDP,oEAAQ,CACF,CACD,EACP;KACD;;;;IAMD,MAAM,UAAU;QACf,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;;;","names":["govHost","canValidateWcagOnRender","delay","h","Host","validateWcagProp","validateAccessibleLabel","createID","validateProp","FormMessageColors","FormMessageClass"],"sources":["../../../packages/core/src/components/gov-attachments/constants.ts","../../../packages/core/src/components/gov-attachments/gov-attachments.tsx","../../../packages/core/src/components/gov-attachments/gov-attachments-item.scss?tag=gov-attachments-item","../../../packages/core/src/components/gov-attachments/gov-attachments-item.tsx","../../../packages/core/src/components/gov-form/message/gov-form-message.tsx"],"sourcesContent":["export const AttachmentsClass = {\n\troot: 'gov-attachments',\n\tlabel: 'gov-attachments__label',\n\tlist: 'gov-attachments__list',\n}\n\nexport const AttachmentsItemClass = {\n\troot: 'gov-attachments-item',\n\tname: 'gov-attachments-item__name',\n\tfile: 'gov-attachments-item__file',\n\tmessages: 'gov-attachments-item__messages',\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { AttachmentsClass } from './constants'\nimport { validateWcagProp } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments',\n})\nexport class GovAttachments {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsElement\n\t/**\n\t * Label of attachments section\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Adds accessible label for the attachment section that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsClass.root)}>\n\t\t\t\t{this.label ? <p class={AttachmentsClass.label}>{this.label}</p> : null}\n\t\t\t\t<div class={AttachmentsClass.list} role=\"list\" aria-label={this.wcagLabel}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagProp(this.wcagLabel, 'wcag-label', AttachmentsClass.root)\n\t}\n}\n","/* Attachments - Item */\n\n\ngov-attachments-item, .gov-attachments-item {\n\t// VARIABLES\n\t@import \"gov-attachments-variables\";\n\n\t@include base($display: flex);\n\tgap: var(--spacing-s);\n\t&__messages {\n\t\t@include reset-last-margin();\n\t}\n\t&__file {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t}\n\t&__name {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t\tflex-wrap: wrap;\n\t\talign-items: center;\n\t\tmargin: 0;\n\t\tcolor: $attachments-name-color;\n\t\tspan {\n\t\t\t@include typography(\"xs\");\n\t\t\tcolor: $attachments-decor-color;\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {AttachmentsItemClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments-item',\n\tstyleUrl: 'gov-attachments-item.scss',\n})\nexport class GovAttachmentsItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsItemElement\n\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-remove-label'}) readonly accessibleRemoveLabel: string\n\t/**\n\t * Indicates the id of a component that labels the remove button.\n\t */\n\t@Prop({attribute: 'accessible-remove-labelledby'}) readonly accessibleRemoveLabelledBy: string\n\t/**\n\t * Emitted when the file is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<PointerEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsItemClass.root)} role=\"listitem\">\n\t\t\t\t<div class={AttachmentsItemClass.file}>\n\t\t\t\t\t<p class={AttachmentsItemClass.name}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t<slot name=\"info\"/>\n\t\t\t\t\t</p>\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleRemoveLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleRemoveLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.govRemove.emit}\n\t\t\t\t\t>\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</div>\n\n\t\t\t\t{this.h.hasSlot('message') && (\n\t\t\t\t\t<div class={AttachmentsItemClass.messages}>\n\t\t\t\t\t\t<slot name=\"message\"/>\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 * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleRemoveLabel, this.accessibleRemoveLabelledBy, AttachmentsItemClass.root, this.host)\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop, Watch } from '@stencil/core'\nimport {FormMessageClass, FormMessageSizesTypes, FormMessageColors, FormMessageColorType} from './constants'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { createID } from '../../../utils/string.utils'\n\n@Component({\n\ttag: 'gov-form-message',\n})\nexport class GovFormMessage {\n\th: GovHost\n\tprivate readonly messageId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.messageId = createID('GovFormMessage')\n\t}\n\n\t@Element() host: HTMLGovFormMessageElement\n\t/**\n\t * Style variation of the message.\n\t */\n\t@Prop({ attribute: 'color' }) readonly color?: FormMessageColorType = 'neutral'\n\t/**\n\t * Message's size.\n\t */\n\t@Prop() readonly size?: FormMessageSizesTypes = 'm'\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(FormMessageColors, newValue, FormMessageClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormMessageClass.root)} color={this.color} size={this.size}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\t\t\t\t<span id={this.messageId} class={FormMessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns unique identifier of message\n\t */\n\t@Method()\n\tasync identifier(): Promise<string> {\n\t\treturn this.messageId\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAAO,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,iBAAiB;IACvB,KAAK,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E;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KAC9B;IAED,MAAM;QACL,QACCP,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAACM,0BAAgB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IACpF,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtBP,mEAAM,IAAI,EAAC,MAAM,GAAG,CACpB,EACDA,mEAAM,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAEO,0BAAgB,CAAC,OAAO,IACxDP,oEAAQ,CACF,CACD,EACP;KACD;;;;IAMD,MAAM,UAAU;QACf,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;;;","names":["govHost","canValidateWcagOnRender","delay","h","Host","validateWcagProp","validateAccessibleLabel","createID","validateProp","FormMessageColors","FormMessageClass"],"sources":["../../../packages/core/src/components/gov-attachments/constants.ts","../../../packages/core/src/components/gov-attachments/gov-attachments.tsx","../../../packages/core/src/components/gov-attachments/gov-attachments-item.scss?tag=gov-attachments-item","../../../packages/core/src/components/gov-attachments/gov-attachments-item.tsx","../../../packages/core/src/components/gov-form/message/gov-form-message.tsx"],"sourcesContent":["export const AttachmentsClass = {\n\troot: 'gov-attachments',\n\tlabel: 'gov-attachments__label',\n\tlist: 'gov-attachments__list',\n}\n\nexport const AttachmentsItemClass = {\n\troot: 'gov-attachments-item',\n\tname: 'gov-attachments-item__name',\n\tfile: 'gov-attachments-item__file',\n\tmessages: 'gov-attachments-item__messages',\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { AttachmentsClass } from './constants'\nimport { validateWcagProp } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments',\n})\nexport class GovAttachments {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsElement\n\t/**\n\t * Label of attachments section\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Adds accessible label for the attachment section that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsClass.root)}>\n\t\t\t\t{this.label ? <p class={AttachmentsClass.label}>{this.label}</p> : null}\n\t\t\t\t<div class={AttachmentsClass.list} role=\"list\" aria-label={this.wcagLabel}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagProp(this.wcagLabel, 'wcag-label', AttachmentsClass.root)\n\t}\n}\n","/* Attachments - Item */\n\n\ngov-attachments-item, .gov-attachments-item {\n\t// VARIABLES\n\t@import \"gov-attachments-variables\";\n\n\t@include base($display: flex);\n\tgap: var(--spacing-s);\n\t&__messages {\n\t\t@include reset-last-margin();\n\t}\n\t&__file {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t}\n\t&__name {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t\tflex-wrap: wrap;\n\t\talign-items: center;\n\t\tmargin: 0;\n\t\tcolor: $attachments-name-color;\n\t\tspan {\n\t\t\t@include typography(\"body-xs\");\n\t\t\tcolor: $attachments-decor-color;\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {AttachmentsItemClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments-item',\n\tstyleUrl: 'gov-attachments-item.scss',\n})\nexport class GovAttachmentsItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsItemElement\n\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-remove-label'}) readonly accessibleRemoveLabel: string\n\t/**\n\t * Indicates the id of a component that labels the remove button.\n\t */\n\t@Prop({attribute: 'accessible-remove-labelledby'}) readonly accessibleRemoveLabelledBy: string\n\t/**\n\t * Emitted when the file is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<PointerEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsItemClass.root)} role=\"listitem\">\n\t\t\t\t<div class={AttachmentsItemClass.file}>\n\t\t\t\t\t<p class={AttachmentsItemClass.name}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t<slot name=\"info\"/>\n\t\t\t\t\t</p>\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleRemoveLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleRemoveLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.govRemove.emit}\n\t\t\t\t\t>\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</div>\n\n\t\t\t\t{this.h.hasSlot('message') && (\n\t\t\t\t\t<div class={AttachmentsItemClass.messages}>\n\t\t\t\t\t\t<slot name=\"message\"/>\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 * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleRemoveLabel, this.accessibleRemoveLabelledBy, AttachmentsItemClass.root, this.host)\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop, Watch } from '@stencil/core'\nimport {FormMessageClass, FormMessageSizesTypes, FormMessageColors, FormMessageColorType} from './constants'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { createID } from '../../../utils/string.utils'\n\n@Component({\n\ttag: 'gov-form-message',\n})\nexport class GovFormMessage {\n\th: GovHost\n\tprivate readonly messageId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.messageId = createID('GovFormMessage')\n\t}\n\n\t@Element() host: HTMLGovFormMessageElement\n\t/**\n\t * Style variation of the message.\n\t */\n\t@Prop({ attribute: 'color' }) readonly color?: FormMessageColorType = 'neutral'\n\t/**\n\t * Message's size.\n\t */\n\t@Prop() readonly size?: FormMessageSizesTypes = 'm'\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(FormMessageColors, newValue, FormMessageClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormMessageClass.root)} color={this.color} size={this.size}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\t\t\t\t<span id={this.messageId} class={FormMessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns unique identifier of message\n\t */\n\t@Method()\n\tasync identifier(): Promise<string> {\n\t\treturn this.messageId\n\t}\n}\n"],"version":3}
@@ -0,0 +1,79 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-0e4f24f9.js');
6
+ const wcag = require('./wcag-2927ff73.js');
7
+ const gov_log = require('./gov.log-bfea3151.js');
8
+ const template = require('./template-39939fd6.js');
9
+ const stencil_utils = require('./stencil.utils-182382ee.js');
10
+ const utils = require('./utils-d263c5c6.js');
11
+ const sizes = require('./sizes-89f8d3b2.js');
12
+ const props = require('./props-d189860c.js');
13
+ require('./string.utils-b84c81cf.js');
14
+ require('./helpers.types-ff60c9bd.js');
15
+
16
+ const BannerSizes = utils.pick(sizes.Sizes, ['_S', '_M', '_L', '_XL']);
17
+ var BannerBackground;
18
+ (function (BannerBackground) {
19
+ BannerBackground["SIMPLE"] = "simple";
20
+ BannerBackground["WAVES"] = "waves";
21
+ BannerBackground["STRIPES"] = "stripes";
22
+ BannerBackground["LINES"] = "lines";
23
+ })(BannerBackground || (BannerBackground = {}));
24
+ var BannerForeground;
25
+ (function (BannerForeground) {
26
+ BannerForeground["IMAGE"] = "image";
27
+ BannerForeground["LOGO"] = "logo";
28
+ BannerForeground["ICON"] = "icon";
29
+ })(BannerForeground || (BannerForeground = {}));
30
+ var BannerTextColor;
31
+ (function (BannerTextColor) {
32
+ BannerTextColor["LIGHT"] = "light";
33
+ BannerTextColor["DARK"] = "dark";
34
+ })(BannerTextColor || (BannerTextColor = {}));
35
+ const BannerClass = {
36
+ root: 'gov-banner',
37
+ content: 'gov-banner__content',
38
+ };
39
+
40
+ const GovBanner = class {
41
+ constructor(hostRef) {
42
+ index.registerInstance(this, hostRef);
43
+ this.size = BannerSizes._M;
44
+ this.background = BannerBackground.SIMPLE;
45
+ this.foreground = BannerForeground.LOGO;
46
+ this.textColor = BannerTextColor.LIGHT;
47
+ this.accessibleLabel = undefined;
48
+ this.accessibleLabelledBy = undefined;
49
+ this.h = template.govHost(this.host);
50
+ }
51
+ validateSize(newValue) {
52
+ props.validateProp(BannerSizes, newValue, BannerClass.root);
53
+ }
54
+ componentWillLoad() {
55
+ this.validateSize(this.size);
56
+ }
57
+ async componentDidRender() {
58
+ if (gov_log.canValidateWcagOnRender()) {
59
+ stencil_utils.tick(() => this.validateAccessibility());
60
+ }
61
+ }
62
+ render() {
63
+ return (index.h(index.Host, Object.assign({ key: '2e74fec76a2919885f1ffcf0d5b5b43f4da9634f', class: this.h.classes(BannerClass.root), size: this.size }, (this.size !== "xl" ? { background: this.background, foreground: this.foreground } : { 'text-color': this.textColor })), index.h("div", { key: 'e96d0155618a4d8703869f9d41a16e6dca148d8f' }, index.h("div", { key: '1ca80fec0a9918753727bdbbde993c650f464e44', class: BannerClass.content }, index.h("slot", { key: '6649fb9ad5c08b9cb7fe44a633fbdf8a7c1070cf', name: "headline" }), index.h("slot", { key: '615031f7ca60d053f08822a497d59cb123103bae' })), this.h.hasSlot('button') && (index.h("gov-button", { key: '256dcef6425d21dfd6ea47b2dc9dbcfe2bbc0a19', color: "secondary", type: "solid", size: "l" }, index.h("slot", { key: '2553414cc5541ec8f4e8d22d4cd394d9d57f40ef', name: "button" })))), index.h("slot", { key: 'b87320fc0d4ea2415f2c2e3565942fd8944c8f7c', name: "image" })));
64
+ }
65
+ /**
66
+ * Validate the accessibility attributes of the component
67
+ */
68
+ async validateAccessibility() {
69
+ wcag.validateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BannerClass.root, this.host);
70
+ }
71
+ get host() { return index.getElement(this); }
72
+ static get watchers() { return {
73
+ "size": ["validateSize"]
74
+ }; }
75
+ };
76
+
77
+ exports.gov_banner = GovBanner;
78
+
79
+ //# sourceMappingURL=gov-banner.cjs.ent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C;KACD;IAED,MAAM;QACL,QACCC,QAACC,UAAI,mEAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAC1C,IAAI,EAAE,IAAI,CAAC,IAAI,KACV,IAAI,CAAC,IAAI,KAAK,IAAI,GAAG,EAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAC,GAAG,EAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAC,IACvHD,oEACCA,kEAAK,KAAK,EAAE,WAAW,CAAC,OAAO,IAC9BA,mEAAM,IAAI,EAAC,UAAU,GAAE,EACvBA,oEAAO,CACF,EACL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KACxBA,yEAAY,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,GAAG,IAClDA,mEAAM,IAAI,EAAC,QAAQ,GAAE,CACT,CACb,CACI,EACNA,mEAAM,IAAI,EAAC,OAAO,GAAE,CACd,EACP;KACD;;;;IAMD,MAAM,qBAAqB;QAC1BE,4BAAuB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;KACrG;;;;;;;;;","names":["pick","Sizes","govHost","validateProp","canValidateWcagOnRender","tick","h","Host","validateAccessibleLabel"],"sources":["../../../packages/core/src/components/gov-banner/constants.ts","../../../packages/core/src/components/gov-banner/gov-banner.tsx"],"sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\nimport {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const BannerSizes = pick(Sizes, ['_S', '_M', '_L', '_XL'])\nexport type BannerSizesType = `${ValueOf<typeof BannerSizes>}`\n\nexport enum BannerBackground {\n\tSIMPLE = 'simple',\n\tWAVES = 'waves',\n\tSTRIPES = 'stripes',\n\tLINES = 'lines',\n}\nexport type BannerBackgroundsType = `${ValueOf<typeof BannerBackground>}`\n\nexport enum BannerForeground {\n\tIMAGE = 'image',\n\tLOGO = 'logo',\n\tICON = 'icon',\n}\nexport type BannerForegroundsType = `${ValueOf<typeof BannerForeground>}`\n\nexport enum BannerTextColor {\n\tLIGHT = 'light',\n\tDARK = 'dark',\n}\nexport type BannerTextColorsType = `${ValueOf<typeof BannerTextColor>}`\n\nexport const BannerClass = {\n\troot: 'gov-banner',\n\tcontent: 'gov-banner__content',\n}\n","import {Component, Element, h, Host, Method, Prop, Watch} from '@stencil/core'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {tick} from \"../../utils/stencil.utils\";\nimport {\n\tBannerClass,\n\tBannerSizes,\n\tBannerSizesType,\n\tBannerBackground,\n\tBannerBackgroundsType,\n\tBannerForegroundsType, BannerForeground, BannerTextColor, BannerTextColorsType\n} from \"./constants\";\nimport {validateProp} from \"../../helpers/Validate/props\";\n\n\n@Component({\n\ttag: 'gov-banner',\n})\nexport class GovBanner {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovBannerElement\n\t/**\n\t * Banner’s size.\n\t */\n\t@Prop({reflect: true}) readonly size: BannerSizesType = BannerSizes._M\n\t/**\n\t * Banner’s background\n\t */\n\t@Prop() readonly background: BannerBackgroundsType = BannerBackground.SIMPLE\n\t/**\n\t * Banner’s foreground\n\t */\n\t@Prop() readonly foreground: BannerForegroundsType = BannerForeground.LOGO\n\t/**\n\t * XL Banner’s text color\n\t */\n\t@Prop({ attribute: 'text-color' }) readonly textColor: BannerTextColorsType = BannerTextColor.LIGHT\n\t/**\n\t * Adds accessible label for the banner that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) readonly accessibleLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) readonly accessibleLabelledBy: string\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(BannerSizes, newValue, BannerClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\ttick(() => this.validateAccessibility())\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BannerClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t {...(this.size !== \"xl\" ? {background: this.background, foreground: this.foreground} : {'text-color': this.textColor})}>\n\t\t\t\t<div>\n\t\t\t\t\t<div class={BannerClass.content}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.h.hasSlot('button') && (\n\t\t\t\t\t\t<gov-button color=\"secondary\" type=\"solid\" size=\"l\">\n\t\t\t\t\t\t\t<slot name=\"button\"/>\n\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t<slot name=\"image\"/>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the accessibility attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BannerClass.root, this.host)\n\t}\n}\n"],"version":3}
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-0e4f24f9.js');
6
+ const template = require('./template-39939fd6.js');
7
+
8
+ var BlockquoteType;
9
+ (function (BlockquoteType) {
10
+ BlockquoteType["PRIMARY"] = "primary";
11
+ BlockquoteType["SUBTLE"] = "subtle";
12
+ BlockquoteType["NEUTRAL"] = "neutral";
13
+ })(BlockquoteType || (BlockquoteType = {}));
14
+ const BlockquoteClass = {
15
+ root: 'gov-blockquote',
16
+ };
17
+
18
+ const GovBlockquote = class {
19
+ constructor(hostRef) {
20
+ index.registerInstance(this, hostRef);
21
+ this.type = BlockquoteType.SUBTLE;
22
+ this.cite = undefined;
23
+ this.h = template.govHost(this.host);
24
+ }
25
+ render() {
26
+ return (index.h(index.Host, { key: '2d6d6f8731e3cf3a7697b1e5c9cb9628b120a9c0', class: this.h.classes(BlockquoteClass.root), type: this.type }, index.h("gov-icon", { key: 'a34dc43b0a8336830f7f8bd49a04f3fd36ccac5d', type: "components", name: "quote", size: "3xl" }), index.h("blockquote", { key: '1f74006947ad7d8d90ea3425be7d8f66291dbfc5', cite: this.cite }, index.h("slot", { key: '1e0413bfdcfec33d487998f88407b000d2cbd376' })), index.h("slot", { key: '9c61d787603bf343546af51e25ac9b6ad47191e9', name: "image" }), index.h("slot", { key: '7f7956a01aef3d1fe2ecc21428facc932e69ab03', name: "author" })));
27
+ }
28
+ get host() { return index.getElement(this); }
29
+ };
30
+
31
+ exports.gov_blockquote = GovBlockquote;
32
+
33
+ //# sourceMappingURL=gov-blockquote.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"gov-blockquote.entry.cjs.js","mappings":";;;;;;;AAEA,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACpB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAGM,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,gBAAgB;CACtB;;MCFY,aAAa;IAGzB;;oBAQ4D,cAAc,CAAC,MAAM;;QAPhF,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAYD,MAAM;QACL,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IACjED,uEAAU,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,GAAY,EAC/DA,yEAAY,IAAI,EAAE,IAAI,CAAC,IAAI,IAC1BA,oEAAQ,CACI,EACbA,mEAAM,IAAI,EAAC,OAAO,GAAG,EACrBA,mEAAM,IAAI,EAAC,QAAQ,GAAG,CAChB,EACP;KACD;;;;;;","names":["govHost","h","Host"],"sources":["../../../packages/core/src/components/gov-blocquote/constants.ts","../../../packages/core/src/components/gov-blocquote/gov-blockquote.tsx"],"sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\n\nexport enum BlockquoteType {\n\tPRIMARY = 'primary',\n\tSUBTLE = 'subtle',\n\tNEUTRAL = 'neutral',\n}\nexport type BlockquoteTypesType = `${ValueOf<typeof BlockquoteType>}`\n\nexport const BlockquoteClass = {\n\troot: 'gov-blockquote',\n}\n","import {Component, Element, Host, h, Prop} from '@stencil/core'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {BlockquoteClass, BlockquoteType, BlockquoteTypesType} from \"./constants\";\n\n\n@Component({\n\ttag: 'gov-blockquote',\n})\nexport class GovBlockquote {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovBlockquoteElement\n\t/**\n\t * Blockquote’s type\n\t */\n\t@Prop({reflect: true}) readonly type: BlockquoteTypesType = BlockquoteType.SUBTLE\n\t/**\n\t * Blockquote’s cite url\n\t */\n\t@Prop({attribute: 'cite'}) readonly cite: string\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BlockquoteClass.root)} type={this.type}>\n\t\t\t\t<gov-icon type=\"components\" name=\"quote\" size=\"3xl\"></gov-icon>\n\t\t\t\t<blockquote cite={this.cite}>\n\t\t\t\t\t<slot />\n\t\t\t\t</blockquote>\n\t\t\t\t<slot name=\"image\" />\n\t\t\t\t<slot name=\"author\" />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -53,7 +53,7 @@ const GovBreadcrumbs = class {
53
53
  this.toggleOption = sumOfWidths > hostWidth;
54
54
  }
55
55
  render() {
56
- return (index.h(index.Host, { key: '81d7a8e273e1ce4740ee35ebe4a570ee8c5e73a4', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, index.h("nav", { key: 'dc37fa314f5d84c6c517f64229ef601b256f3ad5', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, index.h("slot", { key: '4ead548352e642c0994360d74a98123782790a04' })), this.toggleOption ? (index.h("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, index.h("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down', type: "components" }))) : null));
56
+ return (index.h(index.Host, { key: '9a9134423e513fc148bbb68c20fac5bb97670db8', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, index.h("nav", { key: '0850db41c7ce8bbb329a9abd3a925f292ec26c66', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, index.h("slot", { key: '477ce7803f02dc150c9980cbbf967b2b3d6485a0' })), this.toggleOption ? (index.h("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, index.h("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down', type: "components" }))) : null));
57
57
  }
58
58
  /**
59
59
  * Validate the WCAG attributes of the component
@@ -85,7 +85,8 @@ const GovButton = class {
85
85
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
86
86
  }
87
87
  disconnectedCallback() {
88
- this.attributeObserver.stopObserving();
88
+ var _a;
89
+ (_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
89
90
  }
90
91
  componentWillLoad() {
91
92
  this.validateColor(this.color);
@@ -106,9 +107,9 @@ const GovButton = class {
106
107
  render() {
107
108
  const Tag = this.href ? Tags.A : Tags.BUTTON;
108
109
  const nativeType = Tag === Tags.A ? undefined : this.nativeType;
109
- return (index.h(index.Host, { key: '4e5ef3fbf897b81b07452a9383985353d673fdd6', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(constants.ButtonClass.root), type: this.type }, index.h(Tag, Object.assign({ key: 'd0689b6c773257059fa9334d4bb1d003a0ec58c3', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : "0" }, this.inheritedAttributes, { "aria-disabled": template.toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("icon-end") &&
110
- index.h("gov-icon", { key: '16a969ee29897508924e61d70b40589d0410f649', name: "loader", class: "gov-spin-animation", type: "components" }), this.h.hasSlot("icon-start") && index.h("slot", { key: '7d208cc950fedd5b6bbf376152a0c641d8885846', name: "icon-start" }), index.h("slot", { key: '7c43309c657363dbcc1df14ae3c21d977ec3eb20' }), this.h.hasSlot("icon-end") && index.h("slot", { key: 'd90b7831900331fe8482757f33847295207f73d2', name: "icon-end" }), toBool(this.loading) && this.h.hasSlot("icon-end") &&
111
- index.h("gov-icon", { key: 'd23e2000e5bf5b78a81e78d6c3e30aa0e1f3f42c', name: "loader", class: "gov-spin-animation", type: "components" }))));
110
+ return (index.h(index.Host, { key: '526d8b276e9139e165d38c031adac59e9f1296f8', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(constants.ButtonClass.root), type: this.type }, index.h(Tag, Object.assign({ key: '6db49c65c1b0d3c98d81cba6d86e9181ce32fc87', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : "0" }, this.inheritedAttributes, { "aria-disabled": template.toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("icon-end") &&
111
+ index.h("gov-icon", { key: '535bfdca505680012cdefe59c7fdf6776a9692f0', name: "loader", class: "gov-spin-animation", type: "components" }), this.h.hasSlot("icon-start") && index.h("slot", { key: '26c813df831c8767ad019873572cc928c7475ca4', name: "icon-start" }), index.h("slot", { key: 'c0cdb5257b7db1ec33e317c0c3009ea9de713036' }), this.h.hasSlot("icon-end") && index.h("slot", { key: '238fabead4d6e40f754746866c8b83e0f517680a', name: "icon-end" }), toBool(this.loading) && this.h.hasSlot("icon-end") &&
112
+ index.h("gov-icon", { key: 'cb8360aa13dd3e6ab1328bbd4a0a60a234f98bd5', name: "loader", class: "gov-spin-animation", type: "components" }))));
112
113
  }
113
114
  onClickHandler(e) {
114
115
  e.stopPropagation();
@@ -1 +1 @@
1
- {"file":"gov-button.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;SAAgB,MAAM,CAAC,KAAU;IAChC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC9B,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;KAC1D;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QACrC,OAAO,KAAK,GAAG,CAAC,CAAA;KAChB;SAAM,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;QACtC,OAAO,KAAK,CAAA;KACZ;SAAM;QACN,OAAO,KAAK,G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ButtonColors","ButtonClass","ButtonType","Sizes","NativeType","AttributeObserver","ariaAttributes","inheritAriaAttributes","canValidateWcagOnRender","delay","h","Host","toBoolAttrIfDefined","validateAccessibleLabel"],"sources":["../../../packages/core/src/utils/bool.utils.ts","../../../packages/core/src/components/gov-button/button/gov-button.tsx"],"sourcesContent":["export function toBool(value: any): boolean {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0\n\t} else if (typeof value === 'boolean') {\n\t\treturn value\n\t} else {\n\t\treturn value ? true : false\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {\n\tButtonClass,\n\tButtonColors,\n\tButtonColorType,\n\tButtonSizesType,\n\tButtonTargetType,\n\tButtonType,\n\tButtonTypesType,\n\tNativeType,\n\tNativeTypesType,\n} from \"./constants\"\nimport {govHost, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {toBool} from \"../../../utils/bool.utils\"\nimport {Sizes} from \"../../../core/constants/sizes\"\nimport {validateAccessibleLabel} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {delay} from \"../../../utils/utils\"\nimport {ButtonEvent} from \"./gov-button.types\"\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\n\nenum Tags {\n\tA = \"a\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-button\",\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\n\tprivate attributeObserver: AttributeObserver\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType\n\t/**\n\t * Button’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: ButtonSizesType = \"m\"\n\t/**\n\t * Button's type\n\t */\n\t@Prop({reflect: true}) readonly type: ButtonTypesType\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() 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\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(ButtonType, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"nativeType\")\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeType, newValue, ButtonClass.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\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t hydrated={this.hydrated}\n\t\t\t\t color={this.color}\n\t\t\t\t class={this.h.classes(ButtonClass.root)}\n\t\t\t\t type={this.type}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.disabled ? \"-1\" : \"0\"}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"icon-start\") && <slot name=\"icon-start\"></slot>}\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.h.hasSlot(\"icon-end\") && <slot name=\"icon-end\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Validate the Accessibility attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), ButtonClass.root, this.host)\n\t\t}\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-button.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;SAAgB,MAAM,CAAC,KAAU;IAChC,IAAI,OAAO,KAAK,KAAK,QA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,OAAO,IAAI,CAAC,UAAU,CAAA;KACtB;;;;IAMD,MAAM,qBAAqB;QAC1B,IAAI,IAAI,CAAC,SAAS,EAAE;YACnBY,4BAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAEZ,qBAAW,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;SACjJ;KACD;;;;;;;;;;;;","names":["govHost","validateProp","ButtonColors","ButtonClass","ButtonType","Sizes","NativeType","AttributeObserver","ariaAttributes","inheritAriaAttributes","canValidateWcagOnRender","delay","h","Host","toBoolAttrIfDefined","validateAccessibleLabel"],"sources":["../../../packages/core/src/utils/bool.utils.ts","../../../packages/core/src/components/gov-button/button/gov-button.tsx"],"sourcesContent":["export function toBool(value: any): boolean {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0\n\t} else if (typeof value === 'boolean') {\n\t\treturn value\n\t} else {\n\t\treturn value ? true : false\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {\n\tButtonClass,\n\tButtonColors,\n\tButtonColorType,\n\tButtonSizesType,\n\tButtonTargetType,\n\tButtonType,\n\tButtonTypesType,\n\tNativeType,\n\tNativeTypesType,\n} from \"./constants\"\nimport {govHost, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {toBool} from \"../../../utils/bool.utils\"\nimport {Sizes} from \"../../../core/constants/sizes\"\nimport {validateAccessibleLabel} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {delay} from \"../../../utils/utils\"\nimport {ButtonEvent} from \"./gov-button.types\"\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\n\nenum Tags {\n\tA = \"a\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-button\",\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\n\tprivate attributeObserver: AttributeObserver\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType\n\t/**\n\t * Button’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: ButtonSizesType = \"m\"\n\t/**\n\t * Button's type\n\t */\n\t@Prop({reflect: true}) readonly type: ButtonTypesType\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() 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\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(ButtonType, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"nativeType\")\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeType, newValue, ButtonClass.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\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t hydrated={this.hydrated}\n\t\t\t\t color={this.color}\n\t\t\t\t class={this.h.classes(ButtonClass.root)}\n\t\t\t\t type={this.type}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.disabled ? \"-1\" : \"0\"}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"icon-start\") && <slot name=\"icon-start\"></slot>}\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.h.hasSlot(\"icon-end\") && <slot name=\"icon-end\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Validate the Accessibility attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), ButtonClass.root, this.host)\n\t\t}\n\t}\n}\n"],"version":3}
@@ -50,7 +50,7 @@ const GovCard = class {
50
50
  this.hydrated = true;
51
51
  }
52
52
  render() {
53
- return (index.h(index.Host, { key: '16ef4ffbb0a84bb231008f4f52a4ffe1f2f809d8', class: this.h.classes(CardClass.root), open: this.open, collapsible: template.booleanString(this.collapsible), direction: this.direction, hydrated: this.hydrated }, this.collapsible ? (index.h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": template.booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, index.h("slot", { name: "headline" }), index.h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (index.h("div", { class: CardClass.header }, index.h("slot", { name: "headline" }))) : null, index.h("div", { key: '749f6e4b624f4cdda53d2e3433b451d56c742667', class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? template.booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (index.h("div", { key: 'f4b953ddf9b4f59bc111b512bb3de3510b28af7f', class: CardClass.img }, index.h("slot", { key: '2867a29e49e67aff041ac0705527c5f76f4a019e', name: "img" }))), this.h.hasSlot('icon') && (index.h("div", { key: '8c8e55d3faff7cfbd6abe698cd8801f7fc41dbad', class: CardClass.icon }, index.h("slot", { key: '4d9eaeb0b3af65e4bf5de75090f9346942069e86', name: "icon" }))), index.h("div", { key: '77a9a065fb2803b5f39f1b5716d9810c04b6971b', class: CardClass.content }, index.h("slot", { key: 'acec7d3d4b6ac5533e5df218fe38e26147c440d8' })), this.h.hasSlot('footer') && (index.h("div", { key: '1e63a0811f487e18cbbef8b045651c0e5b745f37', class: CardClass.footer }, index.h("slot", { key: '4bffc12bffb3e29527aad38b6edbe8c00527a843', name: "footer" }))))));
53
+ return (index.h(index.Host, { key: '734cecdc36d379c1d2d8c14ef136780eabff9d32', class: this.h.classes(CardClass.root), open: this.open, collapsible: template.booleanString(this.collapsible), direction: this.direction, hydrated: this.hydrated }, this.collapsible ? (index.h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": template.booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, index.h("slot", { name: "headline" }), index.h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (index.h("div", { class: CardClass.header }, index.h("slot", { name: "headline" }))) : null, index.h("div", { key: '35fbd43458f8895ac32a49b2fb26301ef6c2f4cc', class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? template.booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (index.h("div", { key: '1d1d26a7d45bc7453cdfbb2ce2530e277ea7f1d6', class: CardClass.img }, index.h("slot", { key: '43d62fec8982ac856afedfe30a4062253ab072d7', name: "img" }))), this.h.hasSlot('icon') && (index.h("div", { key: 'ea26e422318e6a8753c47c5af2bcbfafe44bd053', class: CardClass.icon }, index.h("slot", { key: '40cad4f8356f6ff1e640436f4b548581cb4b4bcf', name: "icon" }))), index.h("div", { key: '17d86c58f5d4d1fec9af1b111a69e73629188b4a', class: CardClass.content }, index.h("slot", { key: '34b718783966bda56624c883b85d965ba74041a5' })), this.h.hasSlot('footer') && (index.h("div", { key: 'bdac20b7db8adabdba069df573e117ef1c9a79fc', class: CardClass.footer }, index.h("slot", { key: 'e57ade83302bd2a7537236aff716d02a5a47ea0f', name: "footer" }))))));
54
54
  }
55
55
  onClickHandler(e) {
56
56
  e.stopPropagation();
@@ -72,7 +72,8 @@ const GovChip = class {
72
72
  this.attributeObserver.startObserving(attribute.ariaAttributes);
73
73
  }
74
74
  disconnectedCallback() {
75
- this.attributeObserver.stopObserving();
75
+ var _a;
76
+ (_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
76
77
  }
77
78
  connectedCallback() {
78
79
  this.hydrated = true;
@@ -86,11 +87,11 @@ const GovChip = class {
86
87
  const nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined;
87
88
  const iconStart = helpers.prepareIconFormat(this.iconStart);
88
89
  const iconEnd = helpers.prepareIconFormat(this.iconEnd);
89
- return (index.h(index.Host, { key: '35148b293a6ae608eb1c4e0db06bbfff8b9fdca7', class: this.h.classes([
90
+ return (index.h(index.Host, { key: '3873d567f8dd31d62e259751a9800bc2302380f8', class: this.h.classes([
90
91
  ChipClass.root,
91
92
  this.h.hasSlot("right") ? ChipClass.hasRight : undefined,
92
93
  this.h.hasSlot("left") ? ChipClass.hasLeft : undefined,
93
- ]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, index.h(Tag, Object.assign({ key: '01ba70f91c8be428f91ca4744d093e408dd5acbe', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), tabindex: (this.h.hasSlot("left") || this.h.hasSlot("right") || this.disabled) && !this.focusable ? "-1" : "0", id: this.identifier || this.chipId, type: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), index.h("slot", { key: '28acde76889a8b529dae69b1e55f5f3db51b8e25', name: "left" }), index.h("slot", { key: '1c8fc171656757933a0bb0568a335ee11c09ce6f', name: "icon-start" }, iconStart && index.h("gov-icon", { key: 'b2e91ec6724f3ad50433c10597c44f50826dfcfe', type: iconStart.type, name: iconStart.name })), index.h("slot", { key: '0a37763084f9a0b7269efe6cc6ebd71161890861' }), index.h("slot", { key: '5b37c8b8350ed2ead0a85d81ed0ba22295b3679e', name: "icon-end" }, iconEnd && index.h("gov-icon", { key: '22dfae0ca565fddaa10e6179dc7d0ef38839764f', type: iconEnd.type, name: iconEnd.name })), index.h("slot", { key: 'fe177d273f38e81cc9ffc686c62e05bd466c1fe8', name: "right" }))));
94
+ ]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, index.h(Tag, Object.assign({ key: '6635ce7184fba0374e7f8035c3df38156ac69b24', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), tabindex: (this.h.hasSlot("left") || this.h.hasSlot("right") || this.disabled) && !this.focusable ? "-1" : "0", id: this.identifier || this.chipId, type: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), index.h("slot", { key: '3677ece9c89d8e9d59fb5d87fced0cdf4936342b', name: "left" }), index.h("slot", { key: '0acc75cb17c45740380ceb6681d21b29475c6419', name: "icon-start" }, iconStart && index.h("gov-icon", { key: 'f95b1e5fc9e460177a98deb1a7cd324dcac5e57f', type: iconStart.type, name: iconStart.name })), index.h("slot", { key: 'f0354863b6c661b99c26f5e94193b85a12affab9' }), index.h("slot", { key: 'ee35b12933b95d96932890ede60fa5b91f51d6b5', name: "icon-end" }, iconEnd && index.h("gov-icon", { key: '50cd0f12c868cb1e674a3df0609c2c8ba5664556', type: iconEnd.type, name: iconEnd.name })), index.h("slot", { key: '39ca7870c9423cd0a3f8ca6c91b4a0daed8ef07f', name: "right" }))));
94
95
  }
95
96
  onClickHandler(e) {
96
97
  e.stopPropagation();