@gov-design-system-ce/components 4.1.3-BETA-9 → 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 (686) 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 +2 -2
  8. package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
  9. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  10. package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
  11. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
  13. package/dist/cjs/gov-banner.cjs.entry.js +79 -0
  14. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -0
  15. package/dist/cjs/gov-blockquote.cjs.entry.js +33 -0
  16. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -0
  17. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -2
  18. package/dist/cjs/gov-button.cjs.entry.js +6 -5
  19. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-card.cjs.entry.js +2 -2
  21. package/dist/cjs/gov-chip.cjs.entry.js +5 -4
  22. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  23. package/dist/cjs/gov-container.cjs.entry.js +2 -2
  24. package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
  25. package/dist/cjs/gov-cookiebar.cjs.entry.js +2 -2
  26. package/dist/cjs/gov-dialog.cjs.entry.js +2 -2
  27. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-dropdown.cjs.entry.js +2 -2
  29. package/dist/cjs/gov-empty.cjs.entry.js +2 -2
  30. package/dist/cjs/gov-error-code.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-flex_3.cjs.entry.js +7 -26
  32. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +4 -3
  34. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  35. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +4 -4
  36. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  37. package/dist/cjs/gov-form-checkbox.cjs.entry.js +3 -2
  38. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  39. package/dist/cjs/gov-form-control.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-form-file.cjs.entry.js +4 -3
  41. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gov-form-group.cjs.entry.js +3 -3
  43. package/dist/cjs/gov-form-input_2.cjs.entry.js +11 -9
  44. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-form-label.cjs.entry.js +2 -2
  46. package/dist/cjs/gov-form-multi-select.cjs.entry.js +5 -4
  47. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  48. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  49. package/dist/cjs/gov-form-radio-group.cjs.entry.js +4 -4
  50. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-form-radio.cjs.entry.js +3 -2
  52. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  54. package/dist/cjs/gov-form-select.cjs.entry.js +5 -4
  55. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-form-switch.cjs.entry.js +3 -2
  57. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  58. package/dist/cjs/gov-grid-item.cjs.entry.js +14 -8
  59. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  60. package/dist/cjs/gov-grid.cjs.entry.js +8 -6
  61. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-infobar.cjs.entry.js +5 -4
  63. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  64. package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
  65. package/dist/cjs/gov-layout.cjs.entry.js +2 -2
  66. package/dist/cjs/gov-lifecycle.cjs.entry.js +2 -2
  67. package/dist/cjs/gov-link.cjs.entry.js +3 -2
  68. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  69. package/dist/cjs/gov-loading.cjs.entry.js +2 -2
  70. package/dist/cjs/gov-message.cjs.entry.js +2 -2
  71. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-pagination.cjs.entry.js +3 -2
  73. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  74. package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
  75. package/dist/cjs/gov-stepper-item.cjs.entry.js +3 -3
  76. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  77. package/dist/cjs/gov-stepper.cjs.entry.js +3 -3
  78. package/dist/cjs/gov-tabs-item.cjs.entry.js +2 -2
  79. package/dist/cjs/gov-tabs.cjs.entry.js +4 -3
  80. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  81. package/dist/cjs/gov-tag.cjs.entry.js +2 -2
  82. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  83. package/dist/cjs/gov-toast.cjs.entry.js +4 -3
  84. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  85. package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
  86. package/dist/cjs/gov-tooltip.cjs.entry.js +3 -3
  87. package/dist/cjs/gov-wizard-item.cjs.entry.js +3 -3
  88. package/dist/cjs/gov-wizard.cjs.entry.js +2 -2
  89. package/dist/cjs/{index-67e87c27.js → index-0e4f24f9.js} +9 -19
  90. package/dist/cjs/index-0e4f24f9.js.map +1 -0
  91. package/dist/cjs/loader.cjs.js +2 -2
  92. package/dist/collection/collection-manifest.json +2 -1
  93. package/dist/collection/components/gov-attachments/gov-attachments-item.css +3 -4
  94. package/dist/collection/components/gov-banner/constants.js +26 -0
  95. package/dist/collection/components/gov-banner/constants.js.map +1 -0
  96. package/dist/collection/components/gov-banner/gov-banner.js +202 -0
  97. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -0
  98. package/dist/collection/components/gov-blocquote/constants.js +10 -0
  99. package/dist/collection/components/gov-blocquote/constants.js.map +1 -0
  100. package/dist/collection/components/gov-blocquote/gov-blockquote.js +61 -0
  101. package/dist/collection/components/gov-blocquote/gov-blockquote.js.map +1 -0
  102. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  103. package/dist/collection/components/gov-button/button/gov-button.js +5 -4
  104. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  105. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  106. package/dist/collection/components/gov-card/gov-card.js +1 -1
  107. package/dist/collection/components/gov-chip/gov-chip.js +4 -3
  108. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  109. package/dist/collection/components/gov-container/gov-container.js +1 -1
  110. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  111. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  112. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  113. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  114. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  115. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  116. package/dist/collection/components/gov-flex/gov-flex.js +22 -3
  117. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  118. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -2
  119. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  120. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -1
  121. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  122. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  123. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -2
  124. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  125. package/dist/collection/components/gov-form/group/constants.js +1 -1
  126. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  127. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +2 -2
  128. package/dist/collection/components/gov-form/group/gov-form-group.css +4 -4
  129. package/dist/collection/components/gov-form/group/gov-form-group.js +2 -2
  130. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +2 -2
  131. package/dist/collection/components/gov-form/input/gov-form-input.js +7 -6
  132. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  133. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  134. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  135. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -3
  136. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  137. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  138. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -1
  139. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  140. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  141. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -3
  142. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  143. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -1
  144. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  145. package/dist/collection/components/gov-grid/constants.js +2 -0
  146. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  147. package/dist/collection/components/gov-grid/gov-grid-item.js +111 -20
  148. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  149. package/dist/collection/components/gov-grid/gov-grid.js +56 -14
  150. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  151. package/dist/collection/components/gov-icon/gov-icon.js +0 -17
  152. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  153. package/dist/collection/components/gov-infobar/gov-infobar.js +4 -3
  154. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  155. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  156. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  157. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  158. package/dist/collection/components/gov-link/constants.js +1 -0
  159. package/dist/collection/components/gov-link/constants.js.map +1 -1
  160. package/dist/collection/components/gov-link/gov-link.js +1 -1
  161. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  162. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  163. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +3 -2
  164. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  165. package/dist/collection/components/gov-message/gov-message.js +1 -1
  166. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  167. package/dist/collection/components/gov-pagination/gov-pagination.js +2 -1
  168. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  169. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  170. package/dist/collection/components/gov-stepper/constants.js +2 -0
  171. package/dist/collection/components/gov-stepper/constants.js.map +1 -1
  172. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  173. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
  174. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  175. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  176. package/dist/collection/components/gov-tabs/gov-tabs.js +3 -2
  177. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  178. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  179. package/dist/collection/components/gov-theme-switch/constants.js +1 -0
  180. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  181. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  182. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  183. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  184. package/dist/collection/components/gov-toast/gov-toast.js +3 -2
  185. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  186. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  187. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  188. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  189. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  190. package/dist/collection/pages/Banner.js +268 -0
  191. package/dist/collection/pages/Banner.js.map +1 -0
  192. package/dist/collection/pages/Blockquote.js +25 -0
  193. package/dist/collection/pages/Blockquote.js.map +1 -0
  194. package/dist/collection/pages/Breadcrumbs.js +2 -2
  195. package/dist/collection/pages/Breadcrumbs.js.map +1 -1
  196. package/dist/collection/pages/Card.js +2 -2
  197. package/dist/collection/pages/Card.js.map +1 -1
  198. package/dist/collection/pages/Flex.js +1 -1
  199. package/dist/collection/pages/Flex.js.map +1 -1
  200. package/dist/collection/pages/Grid.js +61 -40
  201. package/dist/collection/pages/Grid.js.map +1 -1
  202. package/dist/collection/pages/Home.js +57 -0
  203. package/dist/collection/pages/Home.js.map +1 -1
  204. package/dist/collection/pages/Infobar.js +36 -56
  205. package/dist/collection/pages/Infobar.js.map +1 -1
  206. package/dist/collection/pages/Layout.js +10 -10
  207. package/dist/collection/pages/Layout.js.map +1 -1
  208. package/dist/collection/pages/Tag.js +14 -0
  209. package/dist/collection/pages/Tag.js.map +1 -1
  210. package/dist/collection/pages/Tiles.js +8 -235
  211. package/dist/collection/pages/Tiles.js.map +1 -1
  212. package/dist/collection/pages/Typography.js +110 -51
  213. package/dist/collection/pages/Typography.js.map +1 -1
  214. package/dist/collection/utils/icon.utils.js +1 -8
  215. package/dist/collection/utils/icon.utils.js.map +1 -1
  216. package/dist/components/gov-accordion-item.js +1 -1
  217. package/dist/components/gov-accordion.js +1 -1
  218. package/dist/components/gov-attachments-item.js +1 -1
  219. package/dist/components/gov-attachments.js +1 -1
  220. package/dist/components/gov-backdrop.js +1 -1
  221. package/dist/components/{gov-tiles.d.ts → gov-banner.d.ts} +4 -4
  222. package/dist/components/gov-banner.js +2 -0
  223. package/dist/components/gov-banner.js.map +1 -0
  224. package/dist/components/gov-blockquote.d.ts +11 -0
  225. package/dist/components/gov-blockquote.js +2 -0
  226. package/dist/components/gov-blockquote.js.map +1 -0
  227. package/dist/components/gov-breadcrumbs.js +1 -1
  228. package/dist/components/gov-breadcrumbs.js.map +1 -1
  229. package/dist/components/gov-button.js +1 -1
  230. package/dist/components/gov-card.js +1 -1
  231. package/dist/components/gov-chip.js +1 -1
  232. package/dist/components/gov-container.js +1 -1
  233. package/dist/components/gov-control-group.js +1 -1
  234. package/dist/components/gov-cookiebar.js +1 -1
  235. package/dist/components/gov-dialog.js +1 -1
  236. package/dist/components/gov-dialog.js.map +1 -1
  237. package/dist/components/gov-dropdown.js +1 -1
  238. package/dist/components/gov-dropdown.js.map +1 -1
  239. package/dist/components/gov-empty.js +1 -1
  240. package/dist/components/gov-error-code.js +1 -1
  241. package/dist/components/gov-flex.js +1 -1
  242. package/dist/components/gov-flex.js.map +1 -1
  243. package/dist/components/gov-form-autocomplete.js +1 -1
  244. package/dist/components/gov-form-checkbox-group.js +1 -1
  245. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  246. package/dist/components/gov-form-checkbox.js +1 -1
  247. package/dist/components/gov-form-checkbox.js.map +1 -1
  248. package/dist/components/gov-form-control.js +1 -1
  249. package/dist/components/gov-form-file.js +1 -1
  250. package/dist/components/gov-form-file.js.map +1 -1
  251. package/dist/components/gov-form-group.js +1 -1
  252. package/dist/components/gov-form-input.js +1 -1
  253. package/dist/components/gov-form-label.js +1 -1
  254. package/dist/components/gov-form-message.js +1 -1
  255. package/dist/components/gov-form-multi-select.js +1 -1
  256. package/dist/components/gov-form-multi-select.js.map +1 -1
  257. package/dist/components/gov-form-password-power.js +1 -1
  258. package/dist/components/gov-form-radio-group.js +1 -1
  259. package/dist/components/gov-form-radio-group.js.map +1 -1
  260. package/dist/components/gov-form-radio.js +1 -1
  261. package/dist/components/gov-form-radio.js.map +1 -1
  262. package/dist/components/gov-form-search.js +1 -1
  263. package/dist/components/gov-form-select.js +1 -1
  264. package/dist/components/gov-form-switch.js +1 -1
  265. package/dist/components/gov-form-switch.js.map +1 -1
  266. package/dist/components/gov-grid-item.js +1 -1
  267. package/dist/components/gov-grid-item.js.map +1 -1
  268. package/dist/components/gov-grid.js +1 -1
  269. package/dist/components/gov-grid.js.map +1 -1
  270. package/dist/components/gov-icon.js +1 -1
  271. package/dist/components/gov-infobar.js +1 -1
  272. package/dist/components/gov-infobar.js.map +1 -1
  273. package/dist/components/gov-layout-column.js +1 -1
  274. package/dist/components/gov-layout.js +1 -1
  275. package/dist/components/gov-lifecycle.js +1 -1
  276. package/dist/components/gov-link.js +1 -1
  277. package/dist/components/gov-link.js.map +1 -1
  278. package/dist/components/gov-loading.js +1 -1
  279. package/dist/components/gov-loading.js.map +1 -1
  280. package/dist/components/gov-message.js +1 -1
  281. package/dist/components/gov-message.js.map +1 -1
  282. package/dist/components/gov-pagination.js +1 -1
  283. package/dist/components/gov-pagination.js.map +1 -1
  284. package/dist/components/gov-skeleton.js +1 -1
  285. package/dist/components/gov-spacer.js +1 -1
  286. package/dist/components/gov-stepper-item.js +1 -1
  287. package/dist/components/gov-stepper-item.js.map +1 -1
  288. package/dist/components/gov-stepper.js +1 -1
  289. package/dist/components/gov-tabs-item.js +1 -1
  290. package/dist/components/gov-tabs.js +1 -1
  291. package/dist/components/gov-tabs.js.map +1 -1
  292. package/dist/components/gov-tag.js +1 -1
  293. package/dist/components/gov-theme-switch.js +1 -1
  294. package/dist/components/gov-theme-switch.js.map +1 -1
  295. package/dist/components/gov-tile.js +1 -1
  296. package/dist/components/gov-toast.js +1 -1
  297. package/dist/components/gov-toast.js.map +1 -1
  298. package/dist/components/gov-tooltip-content.js +1 -1
  299. package/dist/components/gov-tooltip.js +1 -1
  300. package/dist/components/gov-tooltip.js.map +1 -1
  301. package/dist/components/gov-wizard-item.js +1 -1
  302. package/dist/components/gov-wizard.js +1 -1
  303. package/dist/components/index.js +1 -1
  304. package/dist/components/p-0327a469.js +2 -0
  305. package/dist/components/p-0327a469.js.map +1 -0
  306. package/dist/components/p-2ca5423c.js +2 -0
  307. package/dist/components/p-2ca5423c.js.map +1 -0
  308. package/dist/components/p-2fc08a71.js +2 -0
  309. package/dist/components/p-2fc08a71.js.map +1 -0
  310. package/dist/components/p-3c90521b.js +2 -0
  311. package/dist/components/p-3c90521b.js.map +1 -0
  312. package/dist/components/p-3fead64a.js +2 -0
  313. package/dist/components/p-3fead64a.js.map +1 -0
  314. package/dist/components/p-42200001.js +3 -0
  315. package/dist/components/p-42200001.js.map +1 -0
  316. package/dist/components/p-4fba9df0.js +2 -0
  317. package/dist/components/p-4fba9df0.js.map +1 -0
  318. package/dist/components/p-69a31c96.js +2 -0
  319. package/dist/components/p-69a31c96.js.map +1 -0
  320. package/dist/components/{p-03ad4e0f.js → p-73938936.js} +2 -2
  321. package/dist/components/{p-384c7f2a.js → p-7be2301a.js} +2 -2
  322. package/dist/components/p-b533871a.js +2 -0
  323. package/dist/components/p-b533871a.js.map +1 -0
  324. package/dist/components/p-b5dc6bae.js +2 -0
  325. package/dist/components/p-b5dc6bae.js.map +1 -0
  326. package/dist/components/p-ea128b8b.js +2 -0
  327. package/dist/components/p-ea128b8b.js.map +1 -0
  328. package/dist/components/p-f9a1ff6e.js +2 -0
  329. package/dist/components/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  330. package/dist/components/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  331. package/dist/core/core.css +2711 -1506
  332. package/dist/core/core.esm.js +1 -1
  333. package/dist/core/core.esm.js.map +1 -1
  334. package/dist/core/p-005214d1.entry.js +2 -0
  335. package/dist/core/p-0ef1f684.entry.js +2 -0
  336. package/dist/core/p-0ef1f684.entry.js.map +1 -0
  337. package/dist/core/p-0fc9ea97.entry.js +2 -0
  338. package/dist/core/p-0fc9ea97.entry.js.map +1 -0
  339. package/dist/core/p-132c9a87.entry.js +2 -0
  340. package/dist/core/p-132c9a87.entry.js.map +1 -0
  341. package/dist/core/p-16d3a79a.entry.js +2 -0
  342. package/dist/core/{p-967a1094.entry.js.map → p-16d3a79a.entry.js.map} +1 -1
  343. package/dist/core/p-16f44a0b.entry.js +2 -0
  344. package/dist/core/p-16f44a0b.entry.js.map +1 -0
  345. package/dist/core/p-1c7c9144.entry.js +2 -0
  346. package/dist/core/p-1cf1dd10.entry.js +2 -0
  347. package/dist/core/{p-f7f60f91.entry.js.map → p-1cf1dd10.entry.js.map} +1 -1
  348. package/dist/core/p-23b4dcd3.entry.js +2 -0
  349. package/dist/core/{p-45b759f4.entry.js.map → p-23b4dcd3.entry.js.map} +1 -1
  350. package/dist/core/p-2536a8ff.entry.js +2 -0
  351. package/dist/core/p-2536a8ff.entry.js.map +1 -0
  352. package/dist/core/p-28d1bc01.entry.js +2 -0
  353. package/dist/core/p-28d1bc01.entry.js.map +1 -0
  354. package/dist/core/p-2ca5423c.js +2 -0
  355. package/dist/core/p-2ca5423c.js.map +1 -0
  356. package/dist/core/p-3acaa012.entry.js +2 -0
  357. package/dist/core/{p-1aa7450e.entry.js.map → p-3acaa012.entry.js.map} +1 -1
  358. package/dist/core/p-3d7fb8f8.entry.js +2 -0
  359. package/dist/core/p-3d7fb8f8.entry.js.map +1 -0
  360. package/dist/core/{p-927c31dd.entry.js → p-46ecf09e.entry.js} +2 -2
  361. package/dist/core/p-49cd4d0d.entry.js +2 -0
  362. package/dist/core/{p-ee55932a.entry.js.map → p-49cd4d0d.entry.js.map} +1 -1
  363. package/dist/core/p-5108eb37.entry.js +2 -0
  364. package/dist/core/{p-237a5b91.entry.js.map → p-5108eb37.entry.js.map} +1 -1
  365. package/dist/core/{p-0f0f7302.entry.js → p-52042c7e.entry.js} +2 -2
  366. package/dist/core/p-52103c05.entry.js +2 -0
  367. package/dist/core/p-52103c05.entry.js.map +1 -0
  368. package/dist/core/{p-c0800e6d.entry.js → p-5242b51b.entry.js} +2 -2
  369. package/dist/core/p-564555e6.entry.js +2 -0
  370. package/dist/core/p-59fe6cbc.entry.js +2 -0
  371. package/dist/core/p-59fe6cbc.entry.js.map +1 -0
  372. package/dist/core/p-650fe9e8.entry.js +2 -0
  373. package/dist/core/{p-ed02945f.entry.js.map → p-650fe9e8.entry.js.map} +1 -1
  374. package/dist/core/p-6e41cf69.entry.js +2 -0
  375. package/dist/core/{p-77daba72.entry.js → p-6f1ea21d.entry.js} +2 -2
  376. package/dist/core/p-7399ad59.entry.js +2 -0
  377. package/dist/core/p-7399ad59.entry.js.map +1 -0
  378. package/dist/core/{p-7dfb7e36.entry.js → p-79ec86da.entry.js} +2 -2
  379. package/dist/core/p-80bebb7f.entry.js +2 -0
  380. package/dist/core/p-80bebb7f.entry.js.map +1 -0
  381. package/dist/core/p-8cbe8add.entry.js +2 -0
  382. package/dist/core/p-8f73f8e0.entry.js +2 -0
  383. package/dist/core/p-94119ad4.entry.js +2 -0
  384. package/dist/core/p-94119ad4.entry.js.map +1 -0
  385. package/dist/core/p-952ab9e5.entry.js +2 -0
  386. package/dist/core/{p-14d66f26.entry.js.map → p-952ab9e5.entry.js.map} +1 -1
  387. package/dist/core/{p-7baee44f.entry.js → p-99f192c1.entry.js} +2 -2
  388. package/dist/core/p-9ae280b2.entry.js +2 -0
  389. package/dist/core/p-9ae280b2.entry.js.map +1 -0
  390. package/dist/core/p-9c1601b3.entry.js +2 -0
  391. package/dist/core/p-9c1601b3.entry.js.map +1 -0
  392. package/dist/core/p-9dea2efa.js +3 -0
  393. package/dist/core/p-9dea2efa.js.map +1 -0
  394. package/dist/core/p-a02f2547.entry.js +2 -0
  395. package/dist/core/p-ab11081d.entry.js +2 -0
  396. package/dist/core/p-ab11081d.entry.js.map +1 -0
  397. package/dist/core/p-ab868410.entry.js +2 -0
  398. package/dist/core/{p-f2bb8c29.entry.js.map → p-ab868410.entry.js.map} +1 -1
  399. package/dist/core/{p-a6a9de9a.entry.js → p-ae88fe6b.entry.js} +2 -2
  400. package/dist/core/p-c07f6bb4.entry.js +2 -0
  401. package/dist/core/p-c07f6bb4.entry.js.map +1 -0
  402. package/dist/core/{p-063b70a2.entry.js → p-c2abc031.entry.js} +2 -2
  403. package/dist/core/p-c688349d.entry.js +2 -0
  404. package/dist/core/p-c6fdc0a9.entry.js +2 -0
  405. package/dist/core/p-c6fdc0a9.entry.js.map +1 -0
  406. package/dist/core/p-c91512dd.entry.js +2 -0
  407. package/dist/core/p-cf9d5c2f.entry.js +2 -0
  408. package/dist/core/p-cf9d5c2f.entry.js.map +1 -0
  409. package/dist/core/p-d1270d72.entry.js +2 -0
  410. package/dist/core/{p-8cc5ad01.entry.js.map → p-d1270d72.entry.js.map} +1 -1
  411. package/dist/core/p-d141e9ca.entry.js +2 -0
  412. package/dist/core/p-d141e9ca.entry.js.map +1 -0
  413. package/dist/core/p-de852480.entry.js +2 -0
  414. package/dist/core/p-e89471ef.entry.js +2 -0
  415. package/dist/core/p-ea128b8b.js +2 -0
  416. package/dist/core/p-ea128b8b.js.map +1 -0
  417. package/dist/core/p-eb8a9705.entry.js +2 -0
  418. package/dist/core/p-eb8a9705.entry.js.map +1 -0
  419. package/dist/core/p-ee950038.entry.js +2 -0
  420. package/dist/core/p-ee950038.entry.js.map +1 -0
  421. package/dist/core/p-f0e001c7.entry.js +2 -0
  422. package/dist/core/{p-269071f5.entry.js.map → p-f0e001c7.entry.js.map} +1 -1
  423. package/dist/core/{p-3849ca02.entry.js → p-f120ba66.entry.js} +2 -2
  424. package/dist/core/p-f120ba66.entry.js.map +1 -0
  425. package/dist/core/p-f333c673.entry.js +2 -0
  426. package/dist/core/p-f7e47c0a.entry.js +2 -0
  427. package/dist/core/p-f7e47c0a.entry.js.map +1 -0
  428. package/dist/core/p-f98f19f6.entry.js +2 -0
  429. package/dist/core/{p-906865d0.entry.js.map → p-f98f19f6.entry.js.map} +1 -1
  430. package/dist/core/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  431. package/dist/core/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  432. package/dist/esm/{constants-4da2b3c0.js → constants-1548499a.js} +2 -2
  433. package/dist/esm/{constants-4da2b3c0.js.map → constants-1548499a.js.map} +1 -1
  434. package/dist/esm/{constants-372455eb.js → constants-7b1ce2ec.js} +3 -1
  435. package/dist/esm/constants-7b1ce2ec.js.map +1 -0
  436. package/dist/esm/{constants-2d5a0e18.js → constants-dc2115cb.js} +3 -1
  437. package/dist/esm/constants-dc2115cb.js.map +1 -0
  438. package/dist/esm/core.js +3 -3
  439. package/dist/esm/gov-accordion-item.entry.js +1 -1
  440. package/dist/esm/gov-accordion.entry.js +1 -1
  441. package/dist/esm/gov-attachments_3.entry.js +3 -3
  442. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  443. package/dist/esm/gov-backdrop.entry.js +1 -1
  444. package/dist/esm/gov-banner.entry.js +75 -0
  445. package/dist/esm/gov-banner.entry.js.map +1 -0
  446. package/dist/esm/gov-blockquote.entry.js +29 -0
  447. package/dist/esm/gov-blockquote.entry.js.map +1 -0
  448. package/dist/esm/gov-breadcrumbs.entry.js +2 -2
  449. package/dist/esm/gov-button.entry.js +6 -5
  450. package/dist/esm/gov-button.entry.js.map +1 -1
  451. package/dist/esm/gov-card.entry.js +2 -2
  452. package/dist/esm/gov-chip.entry.js +5 -4
  453. package/dist/esm/gov-chip.entry.js.map +1 -1
  454. package/dist/esm/gov-container.entry.js +2 -2
  455. package/dist/esm/gov-control-group.entry.js +2 -2
  456. package/dist/esm/gov-cookiebar.entry.js +2 -2
  457. package/dist/esm/gov-dialog.entry.js +2 -2
  458. package/dist/esm/gov-dialog.entry.js.map +1 -1
  459. package/dist/esm/gov-dropdown.entry.js +2 -2
  460. package/dist/esm/gov-empty.entry.js +2 -2
  461. package/dist/esm/gov-error-code.entry.js +2 -2
  462. package/dist/esm/gov-flex_3.entry.js +7 -26
  463. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  464. package/dist/esm/gov-form-autocomplete.entry.js +4 -3
  465. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  466. package/dist/esm/gov-form-checkbox-group.entry.js +4 -4
  467. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  468. package/dist/esm/gov-form-checkbox.entry.js +3 -2
  469. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  470. package/dist/esm/gov-form-control.entry.js +2 -2
  471. package/dist/esm/gov-form-file.entry.js +4 -3
  472. package/dist/esm/gov-form-file.entry.js.map +1 -1
  473. package/dist/esm/gov-form-group.entry.js +3 -3
  474. package/dist/esm/gov-form-input_2.entry.js +11 -9
  475. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  476. package/dist/esm/gov-form-label.entry.js +2 -2
  477. package/dist/esm/gov-form-multi-select.entry.js +5 -4
  478. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  479. package/dist/esm/gov-form-password-power.entry.js +2 -2
  480. package/dist/esm/gov-form-radio-group.entry.js +4 -4
  481. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  482. package/dist/esm/gov-form-radio.entry.js +3 -2
  483. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  484. package/dist/esm/gov-form-search.entry.js +2 -2
  485. package/dist/esm/gov-form-select.entry.js +5 -4
  486. package/dist/esm/gov-form-select.entry.js.map +1 -1
  487. package/dist/esm/gov-form-switch.entry.js +3 -2
  488. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  489. package/dist/esm/gov-grid-item.entry.js +14 -8
  490. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  491. package/dist/esm/gov-grid.entry.js +8 -6
  492. package/dist/esm/gov-grid.entry.js.map +1 -1
  493. package/dist/esm/gov-infobar.entry.js +5 -4
  494. package/dist/esm/gov-infobar.entry.js.map +1 -1
  495. package/dist/esm/gov-layout-column.entry.js +2 -2
  496. package/dist/esm/gov-layout.entry.js +2 -2
  497. package/dist/esm/gov-lifecycle.entry.js +2 -2
  498. package/dist/esm/gov-link.entry.js +3 -2
  499. package/dist/esm/gov-link.entry.js.map +1 -1
  500. package/dist/esm/gov-loading.entry.js +2 -2
  501. package/dist/esm/gov-message.entry.js +2 -2
  502. package/dist/esm/gov-message.entry.js.map +1 -1
  503. package/dist/esm/gov-pagination.entry.js +3 -2
  504. package/dist/esm/gov-pagination.entry.js.map +1 -1
  505. package/dist/esm/gov-spacer.entry.js +2 -2
  506. package/dist/esm/gov-stepper-item.entry.js +3 -3
  507. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  508. package/dist/esm/gov-stepper.entry.js +3 -3
  509. package/dist/esm/gov-tabs-item.entry.js +2 -2
  510. package/dist/esm/gov-tabs.entry.js +4 -3
  511. package/dist/esm/gov-tabs.entry.js.map +1 -1
  512. package/dist/esm/gov-tag.entry.js +2 -2
  513. package/dist/esm/gov-tile.entry.js +2 -2
  514. package/dist/esm/gov-toast.entry.js +4 -3
  515. package/dist/esm/gov-toast.entry.js.map +1 -1
  516. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  517. package/dist/esm/gov-tooltip.entry.js +3 -3
  518. package/dist/esm/gov-wizard-item.entry.js +3 -3
  519. package/dist/esm/gov-wizard.entry.js +2 -2
  520. package/dist/esm/{index-087b155c.js → index-bf8a6f64.js} +10 -18
  521. package/dist/esm/index-bf8a6f64.js.map +1 -0
  522. package/dist/esm/loader.js +3 -3
  523. package/dist/hydrate/index.js +247 -161
  524. package/dist/hydrate/index.mjs +247 -161
  525. package/dist/stencil.config.js +2 -1
  526. package/dist/stencil.config.js.map +1 -1
  527. package/dist/types/components/gov-banner/constants.d.ts +26 -0
  528. package/dist/types/components/gov-banner/gov-banner.d.ts +38 -0
  529. package/dist/types/components/gov-blocquote/constants.d.ts +10 -0
  530. package/dist/types/components/gov-blocquote/gov-blockquote.d.ts +15 -0
  531. package/dist/types/components/gov-button/button/constants.d.ts +1 -1
  532. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  533. package/dist/types/components/gov-flex/gov-flex.d.ts +5 -1
  534. package/dist/types/components/gov-form/group/constants.d.ts +1 -1
  535. package/dist/types/components/gov-grid/constants.d.ts +4 -0
  536. package/dist/types/components/gov-grid/gov-grid-item.d.ts +25 -5
  537. package/dist/types/components/gov-grid/gov-grid.d.ts +11 -2
  538. package/dist/types/components/gov-icon/constants.d.ts +1 -1
  539. package/dist/types/components/gov-icon/gov-icon.d.ts +0 -1
  540. package/dist/types/components/gov-infobar/constants.d.ts +1 -1
  541. package/dist/types/components/gov-link/constants.d.ts +1 -0
  542. package/dist/types/components/gov-stepper/constants.d.ts +2 -0
  543. package/dist/types/components/gov-theme-switch/constants.d.ts +1 -0
  544. package/dist/types/components.d.ts +179 -36
  545. package/dist/types/pages/Banner.d.ts +3 -0
  546. package/dist/types/pages/Blockquote.d.ts +3 -0
  547. package/package.json +3 -3
  548. package/dist/cjs/constants-4dfa23e3.js.map +0 -1
  549. package/dist/cjs/constants-52053f2d.js.map +0 -1
  550. package/dist/cjs/gov-tiles.cjs.entry.js +0 -26
  551. package/dist/cjs/gov-tiles.cjs.entry.js.map +0 -1
  552. package/dist/cjs/index-67e87c27.js.map +0 -1
  553. package/dist/collection/components/gov-tile/container/constants.js +0 -4
  554. package/dist/collection/components/gov-tile/container/constants.js.map +0 -1
  555. package/dist/collection/components/gov-tile/container/gov-tiles.js +0 -37
  556. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +0 -1
  557. package/dist/components/gov-tiles.js +0 -2
  558. package/dist/components/gov-tiles.js.map +0 -1
  559. package/dist/components/p-115b9cf3.js +0 -3
  560. package/dist/components/p-115b9cf3.js.map +0 -1
  561. package/dist/components/p-350e060c.js +0 -2
  562. package/dist/components/p-350e060c.js.map +0 -1
  563. package/dist/components/p-792c5352.js +0 -2
  564. package/dist/components/p-792c5352.js.map +0 -1
  565. package/dist/components/p-880743a5.js +0 -2
  566. package/dist/components/p-880743a5.js.map +0 -1
  567. package/dist/components/p-8e8a3300.js +0 -2
  568. package/dist/components/p-8e8a3300.js.map +0 -1
  569. package/dist/components/p-8ee6f2f3.js +0 -2
  570. package/dist/components/p-92406c6d.js +0 -2
  571. package/dist/components/p-92406c6d.js.map +0 -1
  572. package/dist/components/p-939638b2.js +0 -2
  573. package/dist/components/p-939638b2.js.map +0 -1
  574. package/dist/components/p-95bd5f39.js +0 -2
  575. package/dist/components/p-95bd5f39.js.map +0 -1
  576. package/dist/components/p-a521c59a.js +0 -2
  577. package/dist/components/p-a521c59a.js.map +0 -1
  578. package/dist/components/p-ba61e648.js +0 -2
  579. package/dist/components/p-ba61e648.js.map +0 -1
  580. package/dist/components/p-bfce6f99.js +0 -2
  581. package/dist/components/p-bfce6f99.js.map +0 -1
  582. package/dist/components/p-f9161803.js +0 -2
  583. package/dist/components/p-f9161803.js.map +0 -1
  584. package/dist/core/p-017ff5a5.entry.js +0 -2
  585. package/dist/core/p-017ff5a5.entry.js.map +0 -1
  586. package/dist/core/p-032accfb.entry.js +0 -2
  587. package/dist/core/p-032accfb.entry.js.map +0 -1
  588. package/dist/core/p-054aa25e.entry.js +0 -2
  589. package/dist/core/p-054aa25e.entry.js.map +0 -1
  590. package/dist/core/p-058e6fe2.entry.js +0 -2
  591. package/dist/core/p-058e6fe2.entry.js.map +0 -1
  592. package/dist/core/p-0724cb6a.entry.js +0 -2
  593. package/dist/core/p-0724cb6a.entry.js.map +0 -1
  594. package/dist/core/p-09c9eba6.entry.js +0 -2
  595. package/dist/core/p-09c9eba6.entry.js.map +0 -1
  596. package/dist/core/p-0c076b21.entry.js +0 -2
  597. package/dist/core/p-10f773c2.entry.js +0 -2
  598. package/dist/core/p-10f773c2.entry.js.map +0 -1
  599. package/dist/core/p-14d66f26.entry.js +0 -2
  600. package/dist/core/p-1aa7450e.entry.js +0 -2
  601. package/dist/core/p-237a5b91.entry.js +0 -2
  602. package/dist/core/p-269071f5.entry.js +0 -2
  603. package/dist/core/p-2ee042d4.js +0 -3
  604. package/dist/core/p-2ee042d4.js.map +0 -1
  605. package/dist/core/p-33310735.entry.js +0 -2
  606. package/dist/core/p-33310735.entry.js.map +0 -1
  607. package/dist/core/p-347d15d5.entry.js +0 -2
  608. package/dist/core/p-37473c34.entry.js +0 -2
  609. package/dist/core/p-3849ca02.entry.js.map +0 -1
  610. package/dist/core/p-3a7381e7.entry.js +0 -2
  611. package/dist/core/p-43d3dbc0.entry.js +0 -2
  612. package/dist/core/p-45b759f4.entry.js +0 -2
  613. package/dist/core/p-4c60e125.entry.js +0 -2
  614. package/dist/core/p-4e29744a.entry.js +0 -2
  615. package/dist/core/p-4e29744a.entry.js.map +0 -1
  616. package/dist/core/p-4fa0320d.entry.js +0 -2
  617. package/dist/core/p-50af9ae8.entry.js +0 -2
  618. package/dist/core/p-5c3f4cfe.entry.js +0 -2
  619. package/dist/core/p-5c3f4cfe.entry.js.map +0 -1
  620. package/dist/core/p-6b7c3a96.entry.js +0 -2
  621. package/dist/core/p-6b7c3a96.entry.js.map +0 -1
  622. package/dist/core/p-71f5d4ff.entry.js +0 -2
  623. package/dist/core/p-7a21fb90.entry.js +0 -2
  624. package/dist/core/p-7a21fb90.entry.js.map +0 -1
  625. package/dist/core/p-880743a5.js +0 -2
  626. package/dist/core/p-880743a5.js.map +0 -1
  627. package/dist/core/p-8bb6c816.entry.js +0 -2
  628. package/dist/core/p-8bb6c816.entry.js.map +0 -1
  629. package/dist/core/p-8cc5ad01.entry.js +0 -2
  630. package/dist/core/p-906865d0.entry.js +0 -2
  631. package/dist/core/p-967a1094.entry.js +0 -2
  632. package/dist/core/p-9846fd13.entry.js +0 -2
  633. package/dist/core/p-9846fd13.entry.js.map +0 -1
  634. package/dist/core/p-994385ca.entry.js +0 -2
  635. package/dist/core/p-994385ca.entry.js.map +0 -1
  636. package/dist/core/p-9f8d69a9.entry.js +0 -2
  637. package/dist/core/p-a521c59a.js +0 -2
  638. package/dist/core/p-a521c59a.js.map +0 -1
  639. package/dist/core/p-b62e49ee.entry.js +0 -2
  640. package/dist/core/p-cecbe73f.entry.js +0 -2
  641. package/dist/core/p-cecbe73f.entry.js.map +0 -1
  642. package/dist/core/p-d795a421.entry.js +0 -2
  643. package/dist/core/p-d795a421.entry.js.map +0 -1
  644. package/dist/core/p-d9b42773.entry.js +0 -2
  645. package/dist/core/p-d9b42773.entry.js.map +0 -1
  646. package/dist/core/p-e0a199ff.entry.js +0 -2
  647. package/dist/core/p-e0a199ff.entry.js.map +0 -1
  648. package/dist/core/p-e215f3ee.entry.js +0 -2
  649. package/dist/core/p-ed02945f.entry.js +0 -2
  650. package/dist/core/p-ee55932a.entry.js +0 -2
  651. package/dist/core/p-f2bb8c29.entry.js +0 -2
  652. package/dist/core/p-f54edd6c.entry.js +0 -2
  653. package/dist/core/p-f54edd6c.entry.js.map +0 -1
  654. package/dist/core/p-f7f60f91.entry.js +0 -2
  655. package/dist/core/p-fcac8531.entry.js +0 -2
  656. package/dist/core/p-fcac8531.entry.js.map +0 -1
  657. package/dist/esm/constants-2d5a0e18.js.map +0 -1
  658. package/dist/esm/constants-372455eb.js.map +0 -1
  659. package/dist/esm/gov-tiles.entry.js +0 -22
  660. package/dist/esm/gov-tiles.entry.js.map +0 -1
  661. package/dist/esm/index-087b155c.js.map +0 -1
  662. package/dist/types/components/gov-tile/container/constants.d.ts +0 -3
  663. package/dist/types/components/gov-tile/container/gov-tiles.d.ts +0 -10
  664. /package/dist/components/{p-03ad4e0f.js.map → p-73938936.js.map} +0 -0
  665. /package/dist/components/{p-384c7f2a.js.map → p-7be2301a.js.map} +0 -0
  666. /package/dist/components/{p-8ee6f2f3.js.map → p-f9a1ff6e.js.map} +0 -0
  667. /package/dist/core/{p-37473c34.entry.js.map → p-005214d1.entry.js.map} +0 -0
  668. /package/dist/core/{p-43d3dbc0.entry.js.map → p-1c7c9144.entry.js.map} +0 -0
  669. /package/dist/core/{p-927c31dd.entry.js.map → p-46ecf09e.entry.js.map} +0 -0
  670. /package/dist/core/{p-0f0f7302.entry.js.map → p-52042c7e.entry.js.map} +0 -0
  671. /package/dist/core/{p-c0800e6d.entry.js.map → p-5242b51b.entry.js.map} +0 -0
  672. /package/dist/core/{p-9f8d69a9.entry.js.map → p-564555e6.entry.js.map} +0 -0
  673. /package/dist/core/{p-0c076b21.entry.js.map → p-6e41cf69.entry.js.map} +0 -0
  674. /package/dist/core/{p-77daba72.entry.js.map → p-6f1ea21d.entry.js.map} +0 -0
  675. /package/dist/core/{p-7dfb7e36.entry.js.map → p-79ec86da.entry.js.map} +0 -0
  676. /package/dist/core/{p-3a7381e7.entry.js.map → p-8cbe8add.entry.js.map} +0 -0
  677. /package/dist/core/{p-4fa0320d.entry.js.map → p-8f73f8e0.entry.js.map} +0 -0
  678. /package/dist/core/{p-7baee44f.entry.js.map → p-99f192c1.entry.js.map} +0 -0
  679. /package/dist/core/{p-e215f3ee.entry.js.map → p-a02f2547.entry.js.map} +0 -0
  680. /package/dist/core/{p-a6a9de9a.entry.js.map → p-ae88fe6b.entry.js.map} +0 -0
  681. /package/dist/core/{p-063b70a2.entry.js.map → p-c2abc031.entry.js.map} +0 -0
  682. /package/dist/core/{p-b62e49ee.entry.js.map → p-c688349d.entry.js.map} +0 -0
  683. /package/dist/core/{p-50af9ae8.entry.js.map → p-c91512dd.entry.js.map} +0 -0
  684. /package/dist/core/{p-71f5d4ff.entry.js.map → p-de852480.entry.js.map} +0 -0
  685. /package/dist/core/{p-4c60e125.entry.js.map → p-e89471ef.entry.js.map} +0 -0
  686. /package/dist/core/{p-347d15d5.ent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I,CAAC;YACnB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAA;KACF;;;;IAMD,MAAM,QAAQ,CAAC,OAAsB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KACpC;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;;;;;;","names":["govHost","govForm","createID","validateProp","FormSelectSizes","FormSelectClass","propsValueToArray","toBoolAttr","AttributeObserver","ariaAttributes","inheritAriaAttributes","tick","h","Host","toBoolAttrIfDefined"],"sources":["../../../packages/core/src/components/gov-form/select/gov-form-select.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govForm} from '../../../helpers/Dom/form'\nimport {GovForm} from '../../../helpers/Dom/form.types'\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\nimport {GovHost} from '../../../helpers/Dom/template.types'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {createID} from '../../../utils/string.utils'\nimport {FormSelectClass, FormSelectSizes, FormSelectSizesType,} from './constants'\nimport {FormSelectEvent, FormSelectOption} from './gov-form-select.types'\nimport {propsValueToArray} from \"../../../utils/array.utils\";\nimport {tick} from \"../../../utils/stencil.utils\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-form-select',\n})\nexport class GovFormSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate selectRef?: HTMLSelectElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly selectId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.selectId = createID('GovSelect')\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Options of select\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | FormSelectOption[]\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect: true}) readonly success: boolean\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormSelectEvent>\n\t@State() focused: boolean\n\t@State() optionsState: FormSelectOption[] = []\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | FormSelectOption[]): void {\n\t\tthis.optionsState = propsValueToArray(newValue)\n\t}\n\n\t@Watch('disabled')\n\t@Watch('invalid')\n\t@Watch('success')\n\t@Watch('size')\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@Watch('value')\n\twatchValue(): void {\n\t\tthis.markSelectedValue()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl('size', this.size)\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl('success', toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl('type', 'select')\n\t}\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\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.markSelectedValue()\n\n\t\tthis.optionsState = propsValueToArray(this.options)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\t\ttick(() => this.markSelectedValue())\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate markSelectedValue() {\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\tif (option.value === this.value) {\n\t\t\t\toption.setAttribute('selected', 'selected')\n\t\t\t} else {\n\t\t\t\toption.removeAttribute('selected')\n\t\t\t}\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSelectClass.root} size={this.size}>\n\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<select\n\t\t\t\t\t\tid={this.identifier || this.selectId}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={option.value === this.value}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t\t{this.success && <gov-icon class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.invalid && <gov-icon class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t<gov-icon class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.value = (e.target as HTMLSelectElement).value\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\n\t}\n\n\t/**\n\t * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-form-select.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;MAkBa,aAAa;IAQzB;;;;;;;;oBAsB8C,GAAG;;wBASZ,KAAK;;wBASU,KAAK;;;4BAkBb,EAAE;mCAyBH,EAAE;QAlF5C,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAGC,YAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACxB,IAAI,CAAC,QAAQ,GAAGC,qBAAQ,CAAC,WAAW,CAAC,CAAA;KACrC;IAyDD,YAAY,CAAC,QAAgB;QAC5BC,kBAAY,CAACC,oBAAe,EAAE,QAAQ,EAAEC,oBAAe,CAAC,IAAI,CAAC,CAAA;KAC7D;IAGD,YAAY,CAAC,QAAqC;QACjD,IAAI,CAAC,YAAY,GAAGC,6BAAiB,CAAC,QAAQ,CAAC,CAAA;KAC/C;IAMD,iBAAiB;QAChB,IAAI,CAAC,gBAAgB,EAAE,CAAA;KACvB;IAGD,UA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IAAI,CAAC;YAClB,SAAS,EAAEP,oBAAe,CAAC,IAAI;YAC/B,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAA;KACF;IAEO,aAAa,CAAC,CAAa;QAClC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACjB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAA;KACF;IAEO,eAAe,CAAC,CAAQ;QAC/B,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA4B,CAAC,KAAK,CAAA;QAClD,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAA;KACF;;;;IAMD,MAAM,QAAQ,CAAC,OAAsB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KACpC;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;;;;;;","names":["govHost","govForm","createID","validateProp","FormSelectSizes","FormSelectClass","propsValueToArray","toBoolAttr","AttributeObserver","ariaAttributes","inheritAriaAttributes","tick","h","Host","toBoolAttrIfDefined"],"sources":["../../../packages/core/src/components/gov-form/select/gov-form-select.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govForm} from '../../../helpers/Dom/form'\nimport {GovForm} from '../../../helpers/Dom/form.types'\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\nimport {GovHost} from '../../../helpers/Dom/template.types'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {createID} from '../../../utils/string.utils'\nimport {FormSelectClass, FormSelectSizes, FormSelectSizesType,} from './constants'\nimport {FormSelectEvent, FormSelectOption} from './gov-form-select.types'\nimport {propsValueToArray} from \"../../../utils/array.utils\";\nimport {tick} from \"../../../utils/stencil.utils\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-form-select',\n})\nexport class GovFormSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate selectRef?: HTMLSelectElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly selectId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.selectId = createID('GovSelect')\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Options of select\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | FormSelectOption[]\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect: true}) readonly success: boolean\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormSelectEvent>\n\t@State() focused: boolean\n\t@State() optionsState: FormSelectOption[] = []\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | FormSelectOption[]): void {\n\t\tthis.optionsState = propsValueToArray(newValue)\n\t}\n\n\t@Watch('disabled')\n\t@Watch('invalid')\n\t@Watch('success')\n\t@Watch('size')\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@Watch('value')\n\twatchValue(): void {\n\t\tthis.markSelectedValue()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl('size', this.size)\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl('success', toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl('type', 'select')\n\t}\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\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.markSelectedValue()\n\n\t\tthis.optionsState = propsValueToArray(this.options)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\t\ttick(() => this.markSelectedValue())\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate markSelectedValue() {\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\tif (option.value === this.value) {\n\t\t\t\toption.setAttribute('selected', 'selected')\n\t\t\t} else {\n\t\t\t\toption.removeAttribute('selected')\n\t\t\t}\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSelectClass.root} size={this.size}>\n\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<select\n\t\t\t\t\t\tid={this.identifier || this.selectId}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={option.value === this.value}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t\t{this.success && <gov-icon class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.invalid && <gov-icon class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t<gov-icon class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.value = (e.target as HTMLSelectElement).value\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\n\t}\n\n\t/**\n\t * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
5
+ const index = require('./index-0e4f24f9.js');
6
6
  const string_utils = require('./string.utils-b84c81cf.js');
7
7
  const props = require('./props-d189860c.js');
8
8
  const form = require('./form-4e66039a.js');
@@ -62,7 +62,8 @@ const GovFormSwitch = class {
62
62
  this.inheritedAttributes = accessibility.inheritAriaAttributes(this.host);
63
63
  }
64
64
  disconnectedCallback() {
65
- this.attributeObserver.stopObserving();
65
+ var _a;
66
+ (_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
66
67
  }
67
68
  async componentDidRender() {
68
69
  this.f.passAttrToLabel("identifier", this.identifier || this.checkboxId);
@@ -1 +1 @@
1
- {"file":"gov-form-switch.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;MAiBa,aAAa;IASzB;;;;;QAFQ,aAAQ,GAAG,KAAK,CAAA;;uBAiBmC,KAAK;uBAIhB,KAAK;wBAIhB,KAAK;wBAIU,KAAK;;oBAQI,GAAG;;;mCAkCrB,EAAE;QApE5C,IAAI,CAAC,UAAU,GAAGA,qBAAQ,CAAC,aAAa,CAAC,CAAA;QAEzC,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAGC,YAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACxB;IAqDD,YAAY,CAAC,QAAgB;QAC5BC,kBAAY,CAACC,oBAAe,EAAE,QAAQ,EAAEC,oBAAe,CAAC,IAAI,CAAC,CAAA;KAC7D;IAKD,aAAa;QACZ,IAAI,CAAC,gBAAgB,EAAE,CAAA;KACvB;IAIO,gBAAgB;QACvB,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,SAAS,EAAEC,mBAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;QAC7D,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,UAAU,EAAEA,mBAAU,CAAC,I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;;;;","names":["createID","govHost","govForm","validateProp","FormSwitchSizes","FormSwitchClass","toBoolAttr","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host","toBoolAttrIfDefined","Fragment"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormSwitchEvent} from \"./gov-form-switch.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop({reflect: true}) readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\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\trender() {\n\t\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"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C,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAEL,oBAAe,CAAC,IAAI;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAEO,aAAa,CAAC,CAAa;QAClC,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACjB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAEO,eAAe,CAAC,CAAQ;QAC/B,IAAI,CAAC,OAAO,GAAI,CAAC,CAAC,MAA2B,CAAC,OAAO,CAAA;QACrD,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAA;KACpB;;;;;;;;;;;","names":["createID","govHost","govForm","validateProp","FormSwitchSizes","FormSwitchClass","toBoolAttr","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host","toBoolAttrIfDefined","Fragment"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormSwitchEvent} from \"./gov-form-switch.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop({reflect: true}) readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\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\trender() {\n\t\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"version":3}
@@ -2,22 +2,28 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
6
- const constants = require('./constants-52053f2d.js');
5
+ const index = require('./index-0e4f24f9.js');
6
+ const constants = require('./constants-c84c60d6.js');
7
7
  const template = require('./template-39939fd6.js');
8
+ require('./sizes-89f8d3b2.js');
8
9
 
9
10
  const GovGridItem = class {
10
11
  constructor(hostRef) {
11
12
  index.registerInstance(this, hostRef);
12
- this.size = '12/12';
13
- this.sizeSm = undefined;
14
- this.sizeMd = undefined;
15
- this.sizeLg = undefined;
16
- this.sizeXl = undefined;
13
+ this.column = "12";
14
+ this.columnSm = undefined;
15
+ this.columnMd = undefined;
16
+ this.columnLg = undefined;
17
+ this.columnXl = undefined;
18
+ this.row = "1";
19
+ this.rowSm = undefined;
20
+ this.rowMd = undefined;
21
+ this.rowLg = undefined;
22
+ this.rowXl = undefined;
17
23
  this.h = template.govHost(this.host);
18
24
  }
19
25
  render() {
20
- return (index.h(index.Host, { key: 'e1dc6e3517618361ab3b5e3ad499a5bbbaae3d6a', class: this.h.classes(constants.GridItemClass.root), role: "listitem", size: this.size, "size-sm": this.sizeSm, "size-md": this.sizeMd, "size-lg": this.sizeLg, "size-xl": this.sizeXl }, index.h("slot", { key: '53780db95fa728f252302cb86923ad9e9fcd9b66' })));
26
+ return (index.h(index.Host, { key: '58d1762c23639140ca76c43b99b6f00451531da9', class: this.h.classes(constants.GridItemClass.root), role: "listitem" }, index.h("slot", { key: '87b4642506246324607c1ff3c7ca71e98fe5dd0a' })));
21
27
  }
22
28
  get host() { return index.getElement(this); }
23
29
  };
@@ -1 +1 @@
1
- {"file":"gov-grid-item.entry.cjs.js","mappings":";;;;;;;;MAQa,WAAW;IAGvB;;oBAQgC,OAAO;;;;;QAPtC,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAwBD,MAAM;QACL,QACCC,QAACC,UAAI,qDACJ,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAACC,uBAAa,CAAC,IAAI,CAAC,EACzC,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,aACN,IAAI,CAAC,MAAM,aACX,IAAI,CAAC,MAAM,aACX,IAAI,CAAC,MAAM,aACX,IAAI,CAAC,MAAM,IAEpBF,oEAAQ,CACF,EACP;KACD;;;;;;","names":["govHost","h","Host","GridItemClass"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid-item.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop() readonly size: string = '12/12'\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-sm' }) readonly sizeSm: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-md' }) readonly sizeMd: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-lg' }) readonly sizeLg: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-xl' }) readonly sizeXl: string\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t\tsize={this.size}\n\t\t\t\tsize-sm={this.sizeSm}\n\t\t\t\tsize-md={this.sizeMd}\n\t\t\t\tsize-lg={this.sizeLg}\n\t\t\t\tsize-xl={this.sizeXl}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-grid-item.entry.cjs.js","mappings":";;;;;;;;;MAQa,WAAW;IAGvB;;sBAQ2D,IAAI;;;;;mBAoBP,GAAG;;;;;QA3B1D,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA6CD,MAAM;QACL,QACCC,QAACC,UAAI,qDACJ,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAACC,uBAAa,CAAC,IAAI,CAAC,EACzC,IAAI,EAAC,UAAU,IAEfF,oEAAQ,CACF,EACP;KACD;;;;;;","names":["govHost","h","Host","GridItemClass"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid-item.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span' }) readonly column: string = \"12\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-sm' }) readonly columnSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-md' }) readonly columnMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-lg' }) readonly columnLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-xl' }) readonly columnXl?: string\n\t/**\n\t * Connects rows in the grid\n\t */\n\t@Prop({ attribute: 'row-span' }) readonly row: string = \"1\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-sm' }) readonly rowSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-md' }) readonly rowMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-lg' }) readonly rowLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-xl' }) readonly rowXl?: string\n\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -2,20 +2,22 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
6
- const constants = require('./constants-52053f2d.js');
5
+ const index = require('./index-0e4f24f9.js');
6
+ const constants = require('./constants-c84c60d6.js');
7
7
  const template = require('./template-39939fd6.js');
8
+ require('./sizes-89f8d3b2.js');
8
9
 
9
10
  const GovGrid = class {
10
11
  constructor(hostRef) {
11
12
  index.registerInstance(this, hostRef);
12
- this.alignX = undefined;
13
- this.alignY = undefined;
13
+ this.columns = "12";
14
+ this.alignItems = undefined;
15
+ this.justifyItems = undefined;
16
+ this.gap = undefined;
14
17
  this.h = template.govHost(this.host);
15
18
  }
16
- // vertical / horizontal align
17
19
  render() {
18
- return (index.h(index.Host, { key: 'd2f4e42a186e0d8020abc96ef3ca0956e1492d05', class: this.h.classes(constants.GridClass.root), "align-x": this.alignX, "align-y": this.alignY, role: "list" }, index.h("slot", { key: '46c60ccdda81ce271aeaca46bead1bf33e22c041' })));
20
+ return (index.h(index.Host, { key: '7092dda416db17f4137ecd04bea2659dfe76b0e0', class: this.h.classes(constants.GridClass.root), role: "list" }, index.h("slot", { key: 'b05231f0b950cd8c6830ee96e3d16e798ed97835' })));
19
21
  }
20
22
  get host() { return index.getElement(this); }
21
23
  };
@@ -1 +1 @@
1
- {"file":"gov-grid.entry.cjs.js","mappings":";;;;;;;;MAQa,OAAO;IAGnB;;;;QACC,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;;IAeD,MAAM;QACL,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAACC,mBAAS,CAAC,IAAI,CAAC,aAAW,IAAI,CAAC,MAAM,aAAW,IAAI,CAAC,MAAM,EAAE,IAAI,EAAC,MAAM,IACnGF,oEAAa,CACP,EACP;KACD;;;;;;","names":["govHost","h","Host","GridClass"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-x' }) readonly alignX: string\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'align-y' }) readonly alignY: string\n\n\t// vertical / horizontal align\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} align-x={this.alignX} align-y={this.alignY} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-grid.entry.cjs.js","mappings":";;;;;;;;;MAQa,OAAO;IAGnB;;uBASkE,IAAI;;;;QARrE,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAwBD,MAAM;QACL,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAACC,mBAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,IACvDF,oEAAa,CACP,EACP;KACD;;;;;;","names":["govHost","h","Host","GridClass"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass, GridSizesType } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Setting the number of grid columns\n\t */\n\t@Prop({ attribute: 'columns', reflect: true }) columns?: string = \"12\";\n\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-items', reflect: true }) alignItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'justify-items', reflect: true }) justifyItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({ attribute: 'gap', reflect: true }) gap?: GridSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
5
+ const index = require('./index-0e4f24f9.js');
6
6
  const template = require('./template-39939fd6.js');
7
7
  const Fragment = require('./Fragment-52846f79.js');
8
8
  const props = require('./props-d189860c.js');
@@ -54,15 +54,16 @@ const GovInfobar = class {
54
54
  this.inheritedAttributes = accessibility.inheritAriaAttributes(this.host);
55
55
  }
56
56
  disconnectedCallback() {
57
- this.attributeObserver.stopObserving();
57
+ var _a;
58
+ (_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
58
59
  }
59
60
  onAriaAttributeChange(attributeName, newValue) {
60
61
  this.host.removeAttribute(attributeName);
61
62
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
62
63
  }
63
64
  render() {
64
- const closeButton = (index.h("gov-button", { key: '2d0597a56f6edb97e7feff654ba98885fa48033a', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, index.h("gov-icon", { key: 'c17ba542b02a4910a136eec6cb4556d1857dffb2', name: "x-lg", type: "components" })));
65
- return (index.h(index.Host, { key: 'd71d1b8ffe158de90f3fb520bd996a8246988d3d', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, index.h("section", Object.assign({ key: '12cce82faa13fa39135fe92b0ab61bc2b01fa083', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), index.h("slot", { key: 'bc48d4e5dfad03cd9c54054225a4c3db0ec09cd9', name: "icon" }), index.h("div", { key: '70422e59cb69504d1aca5d45b9f9700b35b344f0', class: InfobarClass.content }, this.h.hasSlot('headline') ? (index.h(Fragment.Fragment, null, index.h("div", { class: InfobarClass.headline }, index.h("slot", { name: "headline" }), index.h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, index.h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), index.h("div", { hidden: !this.toggleContent, "aria-hidden": template.toBoolAttr(this.toggleContent) }, index.h("slot", null)))) : (index.h("slot", null))), this.closable && closeButton)));
65
+ const closeButton = (index.h("gov-button", { key: '86cbac93b6d258503af7dc3016aeb465b3573072', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, index.h("gov-icon", { key: '4c6b17d93c677e0ad25afc611cd64d42fb5a7d14', name: "x-lg", type: "components" })));
66
+ return (index.h(index.Host, { key: '039cb25b798660d17a34e943d63099bdb09a424d', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, index.h("section", Object.assign({ key: '68b0cea9fd672762f677019f5762368e9bd97088', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), this.h.hasSlot("icon") && (index.h("span", { key: '6150ac778d70268e75c5c0f9195094ec38869025' }, index.h("slot", { key: 'c9992923e5c53a6bcc03ab6bcb69b3aa4ea439b4', name: "icon" }))), index.h("div", { key: 'b95e4a257672af49c273972de9ff41433d5e46f8', class: InfobarClass.content }, this.h.hasSlot('headline') ? (index.h(Fragment.Fragment, null, index.h("div", { class: InfobarClass.headline }, index.h("slot", { name: "headline" }), index.h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, index.h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), index.h("div", { hidden: !this.toggleContent, "aria-hidden": template.toBoolAttr(this.toggleContent) }, index.h("slot", null)))) : (index.h("slot", null))), this.closable && closeButton)));
66
67
  }
67
68
  onCloseHandler(e) {
68
69
  this.govClose.emit({
@@ -1 +1 @@
1
- {"file":"gov-infobar.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAIO,MAAM,aAAa,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG7G,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGM,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,sBAAsB;IAC/B,QAAQ,EAAE,uBAAuB;IACjC,KAAK,EAAE,oBAAoB;CAC3B;;MCJY,UAAU;IAItB;;;qBAS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,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAE,YAAY,CAAC,IAAI;YAC5B,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;KAC3B;;;;;;;;;","names":["pick","Colors","govHost","validateProp","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host","Fragment","toBoolAttr"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-infobar.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAIO,MAAM,aAAa,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG7G,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGM,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,sBAAsB;IAC/B,QAAQ,EAAE,uBAAuB;IACjC,KAAK,EAAE,oBAAoB;CAC3B;;MCJY,UAAU;IAItB;;;qBASoC,SAAS;oBAIF,MAAM;oBAIJ,SAAS;oCAI+B,yBAAyB;qCAIvB,yBAAyB;wBAQ1E,KAAK;6BAElB,KAAK;mCACa,EAAE;QAnC5C,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAqCD,aAAa,CAAC,QAAgB;QAC7BC,kBAAY,CAAC,aAAa,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;KACxD;IAED,gBAAgB;QACf,IAAI,CAAC,iBAAiB,GAAG,IAAIC,2BAAiB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host","Fragment","toBoolAttr"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
5
+ const index = require('./index-0e4f24f9.js');
6
6
  const constants = require('./constants-a33f6e99.js');
7
7
  const template = require('./template-39939fd6.js');
8
8
 
@@ -12,7 +12,7 @@ const GovLayoutColumn = class {
12
12
  this.h = template.govHost(this.host);
13
13
  }
14
14
  render() {
15
- return (index.h(index.Host, { key: 'ebef4ca76b1308a566c862b5a49eecf1eb3fce99', class: this.h.classes(constants.LayoutColumnClass.root) }, index.h("slot", { key: 'aaeefeb1a56b294d91b1327fd52eb16486cfb918' })));
15
+ return (index.h(index.Host, { key: 'd312c9ffd071d7f002ed74095279ac3c1c549c48', class: this.h.classes(constants.LayoutColumnClass.root) }, index.h("slot", { key: 'c57685e71dc20fb558a3b9c21ff2456906130b54' })));
16
16
  }
17
17
  get host() { return index.getElement(this); }
18
18
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
5
+ const index = require('./index-0e4f24f9.js');
6
6
  const constants = require('./constants-a33f6e99.js');
7
7
  const template = require('./template-39939fd6.js');
8
8
 
@@ -21,7 +21,7 @@ const GovLayout = class {
21
21
  return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
22
22
  }
23
23
  render() {
24
- return (index.h(index.Host, { key: 'c35fc39e07229363bdf36be5856165e7e8eb7985', type: this.type, class: this.h.classes(constants.LayoutClass.root) }, index.h("section", { key: 'dc50cf9cba8bd4e879291fddfbd41955f2d10330', class: this.typeClass(constants.LayoutClass.section, this.type, this.variant, this.inverse) }, index.h("slot", { key: '017a329c119529d3893e187b6a8bbccfbbc76679' }))));
24
+ return (index.h(index.Host, { key: '2683ce4af13c8862c4cb671735c30ed630c9b452', type: this.type, class: this.h.classes(constants.LayoutClass.root) }, index.h("section", { key: '48f71de1a388997388849018cf93bb8e305d51f9', class: this.typeClass(constants.LayoutClass.section, this.type, this.variant, this.inverse) }, index.h("slot", { key: 'f4955f6e169d0fbc55a74ae8759ab5e82dc24f71' }))));
25
25
  }
26
26
  get host() { return index.getElement(this); }
27
27
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
5
+ const index = require('./index-0e4f24f9.js');
6
6
  const string_utils = require('./string.utils-b84c81cf.js');
7
7
 
8
8
  const GovLifecycle = class {
@@ -38,7 +38,7 @@ const GovLifecycle = class {
38
38
  console.log('componentDidUpdate', this.uniqueId);
39
39
  }
40
40
  render() {
41
- return (index.h(index.Host, { key: '506eabaae01ae888fa838c10572e55bbe6fb7015', identifier: this.uniqueId }, index.h("span", { key: '7604a29214fdffb1a470d83d7db37a583e5072ed' }, "lifecycle ", this.uniqueId)));
41
+ return (index.h(index.Host, { key: '556587d121852458ea1bb0aefb93e370db14854c', identifier: this.uniqueId }, index.h("span", { key: 'd61e27a4e6cff37986e9494576b58adca98bb755' }, "lifecycle ", this.uniqueId)));
42
42
  }
43
43
  };
44
44
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
5
+ const index = require('./index-0e4f24f9.js');
6
6
  const utils = require('./utils-d263c5c6.js');
7
7
  const sizes = require('./sizes-89f8d3b2.js');
8
8
  const template = require('./template-39939fd6.js');
@@ -14,6 +14,7 @@ require('./attribute-06dc5228.js');
14
14
  const LinkSizes = utils.pick(sizes.Sizes, ['_S', '_M', '_L']);
15
15
  const LinkClass = {
16
16
  root: 'gov-link',
17
+ external: 'gov-link--external',
17
18
  };
18
19
 
19
20
  const GovLink = class {
@@ -38,7 +39,7 @@ const GovLink = class {
38
39
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
39
40
  }
40
41
  render() {
41
- return (index.h(index.Host, { key: '233af48c179501fe03ee2e5931806e1955913b59', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, index.h("a", Object.assign({ key: '679067805205d76500979620b1ef4405139bb339', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), index.h("slot", { key: 'd24c4ab99451f317a453c8131bd0506606322553', name: "icon-start" }), index.h("slot", { key: '276923f48cdc13985115e8d4e8860a2fb0c692e2' }), this.external ? index.h("gov-icon", { name: "box-arrow-up-right", type: "components" }) : index.h("slot", { name: "icon-end" }))));
42
+ return (index.h(index.Host, { key: '7aef45575f952100a25a516df44a62337fbdf1e1', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, index.h("a", Object.assign({ key: 'cba0aac863ce6dae404356cd960c6782e418d856', class: "element", href: this.href, target: this.external ? '_blank' : this.target, rel: this.external ? "noreferrer" : null }, this.inheritedAttributes), index.h("slot", { key: 'b3379f496c8d5f163ffa9f6a58655666e1c23e54', name: "icon-start" }), index.h("span", { key: '385c05b3c80e93678c5525609c477c7c157f9f44' }, index.h("slot", { key: 'a67cbe6a79e0eafa287ca32984061c4000b19cf5' })), index.h("slot", { key: '6696335405444439c32fb8b9817926a40fc7a48c', name: "icon-end" }), this.external && index.h("gov-icon", { key: '4773079d84ca23e0000ae31fca59d09e95d1f45f', name: "box-arrow-up-right", type: "components", size: this.size, class: LinkClass.external }))));
42
43
  }
43
44
  get host() { return index.getElement(this); }
44
45
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-link.entry.cjs.js","mappings":";;;;;;;;;;;;;AAIO,MAAM,SAAS,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGjD,MAA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":["pick","Sizes","govHost","validateProp","inheritAriaAttributes","h","Host"],"sources":["../../../packages/core/src/components/gov-link/constants.ts","../../../packages/core/src/components/gov-link/gov-link.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const LinkSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LinkSizesType = `${ValueOf<typeof LinkSizes>}`\n\nexport const LinkClass = {\n\troot: 'gov-link',\n}\n","import {Component, Element, Host, h, Prop, Watch, State} from '@stencil/core'\nimport {LinkClass, LinkSizes, LinkSizesType} from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-link',\n})\nexport class GovLink {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLinkElement\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly size?: LinkSizesType = 'm'\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly external?: boolean = false\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: string\n\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LinkSizes, newValue, LinkClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\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\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LinkClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t href={this.href}\n\t\t\t\t external={this.external}>\n\t\t\t\t<a class=\"element\"\n\t\t\t\t href={this.href}\n\t\t\t\t target={this.target}\n\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<slot name=\"icon-start\"/>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.external ? <gov-icon name=\"box-arrow-up-right\" type=\"components\"></gov-icon> : <slot name=\"icon-end\"/>}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-link.entry.cjs.js","mappings":";;;;;;;;;;;;;AAIO,MAAM,SAAS,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGjD,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,oBAAoB;CAC9B;;MCCY,OAAO;IAGnB;;oBAQwC,GAAG;wBAIL,KAAK;;;mCAkBA,EAAE;QA7B5C,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAwBD,YAAY,CAAC,QAAgB;QAC5BC,kBAAY,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;KACjD;IAID,iBAAiB;QAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC5B,IAAI,CAAC,mBAAmB,GAAGC,mCAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3D;IAED,qBAAqB,CAAC,aAAqB,EAAE,QAAgB;QAC5D,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,CAAA;QACxC,IAAI,CAAC,mBAAmB,mCAAO,IAAI,CAAC,mBAAmB,KAAE,CAAC,aAAa,GAAG,QAAQ,GAAC,CAAC;KACpF;IAED,MAAM;QACL,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EACxC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,IACzBD,8EAAG,KAAK,EAAC,SAAS,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAAC,MAAM,EAC9C,GAAG,EAAE,IAAI,CAAC,QAAQ,GAAG,YAAY,GAAG,IAAI,IACpC,IAAI,CAAC,mBAAmB,GAC9BA,mEAAM,IAAI,EAAC,YAAY,GAAE,EACzBA,qEAAMA,oEAAO,CAAO,EACpBA,mEAAM,IAAI,EAAC,UAAU,GAAE,EACtB,IAAI,CAAC,QAAQ,IAAIA,uEAAU,IAAI,EAAC,oBAAoB,EAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,QAAQ,GAAa,CAC5H,CACE,EACP;KACD;;;;;;;;;","names":["pick","Sizes","govHost","validateProp","inheritAriaAttributes","h","Host"],"sources":["../../../packages/core/src/components/gov-link/constants.ts","../../../packages/core/src/components/gov-link/gov-link.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const LinkSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LinkSizesType = `${ValueOf<typeof LinkSizes>}`\n\nexport const LinkClass = {\n\troot: 'gov-link',\n\texternal: 'gov-link--external',\n}\n","import {Component, Element, Host, h, Prop, Watch, State} from '@stencil/core'\nimport {LinkClass, LinkSizes, LinkSizesType} from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-link',\n})\nexport class GovLink {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLinkElement\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly size?: LinkSizesType = 'm'\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly external?: boolean = false\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: string\n\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LinkSizes, newValue, LinkClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\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\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LinkClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t href={this.href}\n\t\t\t\t external={this.external}>\n\t\t\t\t<a class=\"element\"\n\t\t\t\t href={this.href}\n\t\t\t\t target={this.external ? '_blank' : this.target}\n\t\t\t\t rel={this.external ? \"noreferrer\" : null}\n\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<slot name=\"icon-start\"/>\n\t\t\t\t\t<span><slot/></span>\n\t\t\t\t\t<slot name=\"icon-end\"/>\n\t\t\t\t\t{this.external && <gov-icon name=\"box-arrow-up-right\" type=\"components\" size={this.size} class={LinkClass.external}></gov-icon>}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
5
+ const index = require('./index-0e4f24f9.js');
6
6
  const utils = require('./utils-d263c5c6.js');
7
7
  const sizes = require('./sizes-89f8d3b2.js');
8
8
  const template = require('./template-39939fd6.js');
@@ -29,7 +29,7 @@ const GovLoading = class {
29
29
  this.validateSize(this.size);
30
30
  }
31
31
  render() {
32
- return (index.h(index.Host, { key: '4c33339523674f2f2415dfb326131858de9eecf9', class: this.h.classes(LoadingClass.root), size: this.size }, index.h("div", { key: '8c25628dd3072fd89665ccfedb9596383181b13d', class: LoadingClass.content }, index.h("gov-icon", { key: 'a9969874350b5316c61a94b12d41a0130eeded0f', class: template.prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), index.h("slot", { key: '14c716ecc352a0d947a6e3d932d2ab9075dedb97' })), index.h("gov-backdrop", { key: '507610e5a61b34be2166fb4a30539a134dc1b262', inverse: true })));
32
+ return (index.h(index.Host, { key: '94858803191375ac772236470c1db63c2823b74d', class: this.h.classes(LoadingClass.root), size: this.size }, index.h("div", { key: '817f8ba4e3c9a6a37732c00480a10033b68ca360', class: LoadingClass.content }, index.h("gov-icon", { key: '93496ec9365c67bd05d5561a5ffbee4e7384611c', class: template.prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), index.h("slot", { key: 'ba4e09cc9bc1a26e9df6f852c5809a980e0bf3fd' })), index.h("gov-backdrop", { key: '3cb83fca1624bd0593f92b46860b8160d0d1bbcf', inverse: true })));
33
33
  }
34
34
  get host() { return index.getElement(this); }
35
35
  static get watchers() { return {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
5
+ const index = require('./index-0e4f24f9.js');
6
6
  const props = require('./props-d189860c.js');
7
7
  const colors = require('./colors-f7c8eadd.js');
8
8
  const utils = require('./utils-d263c5c6.js');
@@ -31,7 +31,7 @@ const GovMessage = class {
31
31
  props.validateProp(colors.Colors, newValue, MessageClass.root);
32
32
  }
33
33
  render() {
34
- return (index.h(index.Host, { key: 'b9e06c8f94940edf9d2c60119c35ec32baa23fc9', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (index.h("slot", { key: 'd478f414de8eaa276cc867ae5bb325c1090b08ac', name: "icon" })), index.h("div", { key: 'd5a113ca4061b445c583fb1b4f22fff594570b1e', class: MessageClass.content }, index.h("slot", { key: 'e9be2f4ff3603c5f77d46e042455174e6ccfb7be' }))));
34
+ return (index.h(index.Host, { key: '2592f0650b052d0612436c82b793abba16f91190', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (index.h("span", { key: 'bcafdfeb80e3fd8a3a765dbe1d534725d2e7920c' }, index.h("slot", { key: '04f301600ba4e83d17c0615c30c807a226c7d14a', name: "icon" }))), index.h("div", { key: '7fcaa833d295a29c966f80abea5978fe4ebb6b40', class: MessageClass.content }, index.h("slot", { key: 'eef1fe939fd94144d03a14c02a2d7fc87cdc8662' }))));
35
35
  }
36
36
  get host() { return index.getElement(this); }
37
37
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-message.entry.cjs.js","mappings":";;;;;;;;;;;AAI6BA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,EAAC;AAGhG,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGM,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;CAC/B;;MCNY,UAAU;IAGtB;;qBAS2CA,aAAM,CAAC,OAAO;oBAId,QAAQ;QAZlD,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAcD,aAAa,CAAC,QAAgB;QAC7BC,kBAAY,CAACF,aAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;KACjD;IAED,MAAM;QACL,QACCG,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAC,QAAQ,IAC/F,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtBD,mEAAM,IAAI,EAAC,MAAM,GAAG,CACpB,EAEDA,kEAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/BA,oEAAQ,CACH,CACA,EACP;KACD;;;;;;;;;","names":["pick","Colors","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\n\nexport enum MessageType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\tcontent: 'gov-message__content',\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Colors } from \"../../core/constants/colors\"\n\n@Component({\n\ttag: \"gov-message\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\n\t/**\n\t * Message type\n\t */\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\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"],"version":3}
1
+ {"file":"gov-message.entry.cjs.js","mappings":";;;;;;;;;;;AAI6BA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,EAAC;AAGhG,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGM,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;CAC/B;;MCNY,UAAU;IAGtB;;qBAS2CA,aAAM,CAAC,OAAO;oBAId,QAAQ;QAZlD,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAcD,aAAa,CAAC,QAAgB;QAC7BC,kBAAY,CAACF,aAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;KACjD;IAED,MAAM;QACL,QACCG,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAC,QAAQ,IAC/F,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtBD,qEACCA,mEAAM,IAAI,EAAC,MAAM,GAAG,CACd,CACP,EAEDA,kEAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/BA,oEAAQ,CACH,CACA,EACP;KACD;;;;;;;;;","names":["pick","Colors","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\n\nexport enum MessageType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\tcontent: 'gov-message__content',\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Colors } from \"../../core/constants/colors\"\n\n@Component({\n\ttag: \"gov-message\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\n\t/**\n\t * Message type\n\t */\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\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"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-67e87c27.js');
5
+ const index = require('./index-0e4f24f9.js');
6
6
  const Fragment = require('./Fragment-52846f79.js');
7
7
  const props = require('./props-d189860c.js');
8
8
  const sizes = require('./sizes-89f8d3b2.js');
@@ -139,7 +139,8 @@ const GovPagination = class {
139
139
  this.inheritedAttributes = accessibility.inheritAriaAttributes(this.host);
140
140
  }
141
141
  disconnectedCallback() {
142
- this.attributeObserver.stopObserving();
142
+ var _a;
143
+ (_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
143
144
  }
144
145
  onAriaAttributeChange(attributeName, newValue) {
145
146
  this.host.removeAttribute(attributeName);