@gov-design-system-ce/components 4.1.0 → 4.1.2

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 (510) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
  3. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-card.cjs.entry.js +9 -6
  5. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-chip.cjs.entry.js +2 -2
  7. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  8. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  9. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  10. package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  12. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  13. package/dist/cjs/{gov-flex_4.cjs.entry.js → gov-flex_3.cjs.entry.js} +57 -57
  14. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -0
  15. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
  16. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +2 -2
  18. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-form-file.cjs.entry.js +2 -3
  22. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  23. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  24. package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
  25. package/dist/cjs/gov-form-label.cjs.entry.js +27 -0
  26. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
  27. package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
  28. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  29. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  30. package/dist/cjs/gov-form-radio-group.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  34. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  35. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  37. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  38. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  39. package/dist/cjs/gov-infobar.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  41. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  42. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-link.cjs.entry.js +1 -1
  44. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  45. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  46. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  47. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  48. package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
  49. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  50. package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
  51. package/dist/cjs/gov-tag.cjs.entry.js +2 -1
  52. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  54. package/dist/cjs/gov-tiles.cjs.entry.js +1 -1
  55. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  56. package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
  57. package/dist/cjs/gov-tooltip.cjs.entry.js +2 -2
  58. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  59. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  60. package/dist/cjs/index-7ff4447c.js +6 -2
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/collection/components/gov-attachments/gov-attachments-item.css +2 -7
  63. package/dist/collection/components/gov-card/constants.js +7 -4
  64. package/dist/collection/components/gov-card/constants.js.map +1 -1
  65. package/dist/collection/components/gov-card/gov-card.js +16 -10
  66. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  67. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  68. package/dist/collection/components/gov-container/gov-container.js +1 -1
  69. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  70. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  71. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  72. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  73. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  74. package/dist/collection/components/gov-flex/constants.js +2 -0
  75. package/dist/collection/components/gov-flex/constants.js.map +1 -1
  76. package/dist/collection/components/gov-flex/gov-flex.js +33 -9
  77. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  78. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +2 -2
  79. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  80. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -2
  81. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  82. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  83. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -4
  84. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  85. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  86. package/dist/collection/components/gov-form/group/gov-form-group.css +3 -8
  87. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  88. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  89. package/dist/collection/components/gov-form/input/gov-form-input.js +5 -5
  90. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  91. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  92. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +3 -3
  93. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  94. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  95. package/dist/collection/components/gov-form/radio/gov-form-radio.js +1 -1
  96. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  97. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  98. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  99. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  100. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -2
  101. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  102. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  103. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  104. package/dist/collection/components/gov-icon/gov-icon.js +3 -4
  105. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  106. package/dist/collection/components/gov-icon/list.js +6 -0
  107. package/dist/collection/components/gov-icon/list.js.map +1 -1
  108. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  109. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  110. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  111. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  112. package/dist/collection/components/gov-link/gov-link.js +1 -1
  113. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  114. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  115. package/dist/collection/components/gov-message/gov-message.js +1 -1
  116. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  117. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  118. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  119. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  120. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  121. package/dist/collection/components/gov-tag/gov-tag.js +20 -1
  122. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  123. package/dist/collection/components/gov-theme-switch/constants.js +0 -2
  124. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  125. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +32 -9
  126. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  127. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  128. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  129. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  130. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  131. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  132. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  133. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  134. package/dist/collection/helpers/Dom/document.js +18 -0
  135. package/dist/collection/helpers/Dom/document.js.map +1 -1
  136. package/dist/collection/pages/Card.js +22 -37
  137. package/dist/collection/pages/Card.js.map +1 -1
  138. package/dist/collection/pages/Flex.js +62 -0
  139. package/dist/collection/pages/Flex.js.map +1 -0
  140. package/dist/collection/pages/Forms.js +5 -5
  141. package/dist/collection/pages/Forms.js.map +1 -1
  142. package/dist/collection/pages/Tag.js +30 -23
  143. package/dist/collection/pages/Tag.js.map +1 -1
  144. package/dist/components/gov-accordion-item.js +1 -1
  145. package/dist/components/gov-accordion.js +1 -1
  146. package/dist/components/gov-attachments-item.js +1 -1
  147. package/dist/components/gov-attachments.js +1 -1
  148. package/dist/components/gov-backdrop.js +1 -1
  149. package/dist/components/gov-breadcrumbs.js +1 -1
  150. package/dist/components/gov-button.js +1 -1
  151. package/dist/components/gov-card.js +1 -1
  152. package/dist/components/gov-card.js.map +1 -1
  153. package/dist/components/gov-chip.js +1 -1
  154. package/dist/components/gov-container.js +1 -1
  155. package/dist/components/gov-control-group.js +1 -1
  156. package/dist/components/gov-cookiebar.js +1 -1
  157. package/dist/components/gov-dialog.js +1 -1
  158. package/dist/components/gov-empty.js +1 -1
  159. package/dist/components/gov-error-code.js +1 -1
  160. package/dist/components/gov-flex.js +1 -1
  161. package/dist/components/gov-flex.js.map +1 -1
  162. package/dist/components/gov-form-autocomplete.js +1 -1
  163. package/dist/components/gov-form-checkbox-group.js +1 -1
  164. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  165. package/dist/components/gov-form-checkbox.js +1 -1
  166. package/dist/components/gov-form-checkbox.js.map +1 -1
  167. package/dist/components/gov-form-control.js +1 -1
  168. package/dist/components/gov-form-file.js +1 -1
  169. package/dist/components/gov-form-file.js.map +1 -1
  170. package/dist/components/gov-form-group.js +1 -1
  171. package/dist/components/gov-form-input.js +1 -1
  172. package/dist/components/gov-form-label.js +1 -1
  173. package/dist/components/gov-form-label.js.map +1 -1
  174. package/dist/components/gov-form-message.js +1 -1
  175. package/dist/components/gov-form-multi-select.js +1 -1
  176. package/dist/components/gov-form-multi-select.js.map +1 -1
  177. package/dist/components/gov-form-password-power.js +1 -1
  178. package/dist/components/gov-form-radio-group.js +1 -1
  179. package/dist/components/gov-form-radio-group.js.map +1 -1
  180. package/dist/components/gov-form-radio.js +1 -1
  181. package/dist/components/gov-form-radio.js.map +1 -1
  182. package/dist/components/gov-form-search.js +1 -1
  183. package/dist/components/gov-form-select.js +1 -1
  184. package/dist/components/gov-form-switch.js +1 -1
  185. package/dist/components/gov-form-switch.js.map +1 -1
  186. package/dist/components/gov-grid-item.js +1 -1
  187. package/dist/components/gov-grid.js +1 -1
  188. package/dist/components/gov-icon.js +1 -1
  189. package/dist/components/gov-infobar.js +1 -1
  190. package/dist/components/gov-layout-column.js +1 -1
  191. package/dist/components/gov-layout.js +1 -1
  192. package/dist/components/gov-lifecycle.js +1 -1
  193. package/dist/components/gov-link.js +1 -1
  194. package/dist/components/gov-loading.js +1 -1
  195. package/dist/components/gov-loading.js.map +1 -1
  196. package/dist/components/gov-message.js +1 -1
  197. package/dist/components/gov-pagination.js +1 -1
  198. package/dist/components/gov-skeleton.js +1 -1
  199. package/dist/components/gov-spacer.js +1 -1
  200. package/dist/components/gov-stepper-item.js +1 -1
  201. package/dist/components/gov-stepper.js +1 -1
  202. package/dist/components/gov-tabs-item.js +1 -1
  203. package/dist/components/gov-tabs.js +1 -1
  204. package/dist/components/gov-tag.js +1 -1
  205. package/dist/components/gov-tag.js.map +1 -1
  206. package/dist/components/gov-theme-switch.js +1 -1
  207. package/dist/components/gov-theme-switch.js.map +1 -1
  208. package/dist/components/gov-tile.js +1 -1
  209. package/dist/components/gov-tiles.js +1 -1
  210. package/dist/components/gov-toast.js +1 -1
  211. package/dist/components/gov-tooltip-content.js +1 -1
  212. package/dist/components/gov-tooltip.js +1 -1
  213. package/dist/components/gov-tooltip.js.map +1 -1
  214. package/dist/components/gov-wizard-item.js +1 -1
  215. package/dist/components/gov-wizard.js +1 -1
  216. package/dist/components/p-0b3574c2.js +2 -0
  217. package/dist/components/p-18ab0d24.js +2 -0
  218. package/dist/components/p-18ab0d24.js.map +1 -0
  219. package/dist/components/p-28776006.js +2 -0
  220. package/dist/components/{p-859a4f0d.js.map → p-28776006.js.map} +1 -1
  221. package/dist/components/p-40c2fb42.js +2 -0
  222. package/dist/components/{p-dc952cc2.js.map → p-40c2fb42.js.map} +1 -1
  223. package/dist/components/{p-2b87c27b.js → p-48c4d5c8.js} +2 -2
  224. package/dist/components/p-48c4d5c8.js.map +1 -0
  225. package/dist/components/{p-4149f195.js → p-73938936.js} +2 -2
  226. package/dist/components/{p-5952a5d0.js → p-7be2301a.js} +2 -2
  227. package/dist/components/{p-227eb30d.js → p-80dad64b.js} +2 -2
  228. package/dist/components/{p-7d4f2214.js → p-b25af2cf.js} +2 -2
  229. package/dist/components/{p-dfb5794a.js → p-b97d8edd.js} +2 -2
  230. package/dist/components/p-c438a723.js +2 -0
  231. package/dist/components/{p-45097b4c.js → p-ce90ff14.js} +2 -2
  232. package/dist/components/p-ce90ff14.js.map +1 -0
  233. package/dist/components/{p-929ebfb5.js → p-d962bf44.js} +2 -2
  234. package/dist/{core/p-20c2203a.js → components/p-e8ec030e.js} +2 -2
  235. package/dist/core/core.css +438 -273
  236. package/dist/core/core.esm.js +1 -1
  237. package/dist/core/core.esm.js.map +1 -1
  238. package/dist/core/p-0b3574c2.js +2 -0
  239. package/dist/core/{p-74458da3.entry.js → p-0dac0792.entry.js} +2 -2
  240. package/dist/core/p-0dac0792.entry.js.map +1 -0
  241. package/dist/core/{p-951823cb.entry.js → p-12d1e5bc.entry.js} +2 -2
  242. package/dist/core/p-182d03c1.entry.js +2 -0
  243. package/dist/core/p-2496f2a5.entry.js +2 -0
  244. package/dist/core/{p-a218e2eb.entry.js.map → p-2496f2a5.entry.js.map} +1 -1
  245. package/dist/core/{p-c52afdfc.js → p-29ac15d2.js} +2 -2
  246. package/dist/core/p-29d16111.entry.js +2 -0
  247. package/dist/core/{p-019e967c.entry.js.map → p-29d16111.entry.js.map} +1 -1
  248. package/dist/core/p-2b51b8e8.entry.js +2 -0
  249. package/dist/core/p-2b51b8e8.entry.js.map +1 -0
  250. package/dist/core/p-2bde147f.entry.js +2 -0
  251. package/dist/core/{p-bdc51179.entry.js.map → p-2bde147f.entry.js.map} +1 -1
  252. package/dist/core/{p-cb557873.entry.js → p-2e21a994.entry.js} +2 -2
  253. package/dist/core/p-2e21a994.entry.js.map +1 -0
  254. package/dist/core/p-3df6c6cd.entry.js +2 -0
  255. package/dist/core/p-436e7690.entry.js +2 -0
  256. package/dist/core/p-467f778b.entry.js +2 -0
  257. package/dist/core/p-4d81039c.entry.js +2 -0
  258. package/dist/core/p-520ac994.entry.js +2 -0
  259. package/dist/core/{p-f1056a83.entry.js.map → p-520ac994.entry.js.map} +1 -1
  260. package/dist/core/p-53fa7648.entry.js +2 -0
  261. package/dist/core/{p-c20fe3da.entry.js.map → p-53fa7648.entry.js.map} +1 -1
  262. package/dist/core/{p-7d6073aa.entry.js → p-581c8075.entry.js} +2 -2
  263. package/dist/core/{p-e2517a72.entry.js → p-5a92b9d9.entry.js} +2 -2
  264. package/dist/core/{p-8506b611.js → p-5fbde4f9.js} +2 -2
  265. package/dist/core/{p-7bf52eb9.entry.js → p-605e72b1.entry.js} +2 -2
  266. package/dist/core/{p-1ac9544f.entry.js → p-64dc1cdb.entry.js} +2 -2
  267. package/dist/core/p-64dc1cdb.entry.js.map +1 -0
  268. package/dist/core/{p-6454af62.entry.js → p-6603e3df.entry.js} +2 -2
  269. package/dist/core/p-6f260a90.entry.js +2 -0
  270. package/dist/core/{p-fca60e04.entry.js.map → p-6f260a90.entry.js.map} +1 -1
  271. package/dist/core/p-71dc8171.entry.js +2 -0
  272. package/dist/core/{p-443a813a.entry.js.map → p-71dc8171.entry.js.map} +1 -1
  273. package/dist/core/p-87562d9e.entry.js +2 -0
  274. package/dist/core/{p-773f71f6.entry.js.map → p-87562d9e.entry.js.map} +1 -1
  275. package/dist/core/p-88b69d30.entry.js +2 -0
  276. package/dist/core/{p-bc966c46.entry.js.map → p-88b69d30.entry.js.map} +1 -1
  277. package/dist/core/{p-fe6fed11.entry.js → p-8ece244d.entry.js} +2 -2
  278. package/dist/{components/p-45097b4c.js.map → core/p-8ece244d.entry.js.map} +1 -1
  279. package/dist/core/{p-db22d51c.entry.js → p-913331e8.entry.js} +2 -2
  280. package/dist/core/p-979b03eb.entry.js +2 -0
  281. package/dist/core/{p-b1efeb41.entry.js.map → p-979b03eb.entry.js.map} +1 -1
  282. package/dist/core/p-97c65665.entry.js +2 -0
  283. package/dist/core/{p-9da91318.entry.js.map → p-97c65665.entry.js.map} +1 -1
  284. package/dist/core/p-97e8b4b3.entry.js +2 -0
  285. package/dist/core/{p-439b66a5.entry.js.map → p-97e8b4b3.entry.js.map} +1 -1
  286. package/dist/core/{p-d65cef62.entry.js → p-abefa59b.entry.js} +2 -2
  287. package/dist/core/p-aeab9c1a.entry.js +2 -0
  288. package/dist/core/{p-c4ffcc37.entry.js → p-af9fe91a.entry.js} +2 -2
  289. package/dist/core/{p-d24710ff.entry.js → p-b0d1073c.entry.js} +2 -2
  290. package/dist/core/p-b245d627.entry.js +2 -0
  291. package/dist/core/{p-ed1131cb.entry.js.map → p-b245d627.entry.js.map} +1 -1
  292. package/dist/core/p-b2abc2fc.entry.js +2 -0
  293. package/dist/core/p-b2abc2fc.entry.js.map +1 -0
  294. package/dist/core/{p-0be19b89.entry.js → p-b4cf97ab.entry.js} +2 -2
  295. package/dist/core/p-b766810e.entry.js +2 -0
  296. package/dist/core/p-b766810e.entry.js.map +1 -0
  297. package/dist/core/p-bc0ed2c1.entry.js +2 -0
  298. package/dist/core/{p-dec3f948.entry.js → p-bf8529f8.entry.js} +2 -2
  299. package/dist/core/{p-783a6b5b.entry.js → p-cd988543.entry.js} +2 -2
  300. package/dist/core/p-cd988543.entry.js.map +1 -0
  301. package/dist/core/p-d2b11492.entry.js +2 -0
  302. package/dist/core/{p-f1fa5e1e.entry.js.map → p-d2b11492.entry.js.map} +1 -1
  303. package/dist/core/p-d3f7d3d5.entry.js +2 -0
  304. package/dist/core/p-d6e972c0.entry.js +2 -0
  305. package/dist/core/p-d952e56f.entry.js +2 -0
  306. package/dist/{components/p-20c2203a.js → core/p-e8ec030e.js} +2 -2
  307. package/dist/core/p-eaa83b2f.entry.js +2 -0
  308. package/dist/core/p-ebc318d7.entry.js +2 -0
  309. package/dist/core/p-ebeb1a03.entry.js +2 -0
  310. package/dist/core/{p-3fc3c26b.entry.js.map → p-ebeb1a03.entry.js.map} +1 -1
  311. package/dist/core/p-ee0f3bd9.entry.js +2 -0
  312. package/dist/core/p-ee0f3bd9.entry.js.map +1 -0
  313. package/dist/core/p-ee7af1ab.entry.js +2 -0
  314. package/dist/core/{p-8701c28e.entry.js.map → p-ee7af1ab.entry.js.map} +1 -1
  315. package/dist/core/{p-f7a4da9d.entry.js → p-eeee2325.entry.js} +2 -2
  316. package/dist/core/p-f83b9da5.entry.js +2 -0
  317. package/dist/core/{p-2c59483f.entry.js.map → p-f83b9da5.entry.js.map} +1 -1
  318. package/dist/core/p-fa161f10.entry.js +2 -0
  319. package/dist/core/{p-e834ee73.entry.js → p-fa5b72de.entry.js} +2 -2
  320. package/dist/core/p-fb8c019a.entry.js +2 -0
  321. package/dist/core/p-fb8c019a.entry.js.map +1 -0
  322. package/dist/core/p-ff609d0e.entry.js +2 -0
  323. package/dist/esm/core.js +3 -3
  324. package/dist/esm/gov-accordion-item.entry.js +3 -3
  325. package/dist/esm/gov-accordion.entry.js +3 -3
  326. package/dist/esm/gov-attachments_3.entry.js +6 -6
  327. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  328. package/dist/esm/gov-backdrop.entry.js +3 -3
  329. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  330. package/dist/esm/gov-button.entry.js +4 -4
  331. package/dist/esm/gov-card.entry.js +12 -9
  332. package/dist/esm/gov-card.entry.js.map +1 -1
  333. package/dist/esm/gov-chip.entry.js +5 -5
  334. package/dist/esm/gov-container.entry.js +2 -2
  335. package/dist/esm/gov-control-group.entry.js +4 -4
  336. package/dist/esm/gov-cookiebar.entry.js +2 -2
  337. package/dist/esm/gov-dialog.entry.js +4 -4
  338. package/dist/esm/gov-dropdown.entry.js +1 -1
  339. package/dist/esm/gov-empty.entry.js +4 -4
  340. package/dist/esm/gov-error-code.entry.js +2 -2
  341. package/dist/esm/{gov-flex_4.entry.js → gov-flex_3.entry.js} +61 -60
  342. package/dist/esm/gov-flex_3.entry.js.map +1 -0
  343. package/dist/esm/gov-form-autocomplete.entry.js +4 -4
  344. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  345. package/dist/esm/gov-form-checkbox-group.entry.js +5 -5
  346. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  347. package/dist/esm/gov-form-checkbox.entry.js +3 -3
  348. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  349. package/dist/esm/gov-form-control.entry.js +2 -2
  350. package/dist/esm/gov-form-file.entry.js +3 -4
  351. package/dist/esm/gov-form-file.entry.js.map +1 -1
  352. package/dist/esm/gov-form-group.entry.js +4 -4
  353. package/dist/esm/gov-form-input_2.entry.js +9 -9
  354. package/dist/esm/gov-form-label.entry.js +23 -0
  355. package/dist/esm/gov-form-label.entry.js.map +1 -0
  356. package/dist/esm/gov-form-multi-select.entry.js +5 -5
  357. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  358. package/dist/esm/gov-form-password-power.entry.js +2 -2
  359. package/dist/esm/gov-form-radio-group.entry.js +5 -5
  360. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  361. package/dist/esm/gov-form-radio.entry.js +3 -3
  362. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  363. package/dist/esm/gov-form-search.entry.js +2 -2
  364. package/dist/esm/gov-form-select.entry.js +5 -5
  365. package/dist/esm/gov-form-select.entry.js.map +1 -1
  366. package/dist/esm/gov-form-switch.entry.js +3 -3
  367. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  368. package/dist/esm/gov-grid-item.entry.js +2 -2
  369. package/dist/esm/gov-grid.entry.js +2 -2
  370. package/dist/esm/gov-infobar.entry.js +5 -5
  371. package/dist/esm/gov-layout-column.entry.js +2 -2
  372. package/dist/esm/gov-layout.entry.js +2 -2
  373. package/dist/esm/gov-lifecycle.entry.js +2 -2
  374. package/dist/esm/gov-link.entry.js +4 -4
  375. package/dist/esm/gov-loading.entry.js +4 -4
  376. package/dist/esm/gov-message.entry.js +4 -4
  377. package/dist/esm/gov-pagination.entry.js +3 -3
  378. package/dist/esm/gov-spacer.entry.js +4 -4
  379. package/dist/esm/gov-stepper-item.entry.js +4 -4
  380. package/dist/esm/gov-stepper.entry.js +4 -4
  381. package/dist/esm/gov-tabs-item.entry.js +2 -2
  382. package/dist/esm/gov-tabs.entry.js +4 -4
  383. package/dist/esm/gov-tag.entry.js +5 -4
  384. package/dist/esm/gov-tag.entry.js.map +1 -1
  385. package/dist/esm/gov-tile.entry.js +2 -2
  386. package/dist/esm/gov-tiles.entry.js +2 -2
  387. package/dist/esm/gov-toast.entry.js +4 -4
  388. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  389. package/dist/esm/gov-tooltip.entry.js +5 -5
  390. package/dist/esm/gov-wizard-item.entry.js +5 -5
  391. package/dist/esm/gov-wizard.entry.js +5 -5
  392. package/dist/esm/{gov.log-066c3139.js → gov.log-6b64cda6.js} +2 -2
  393. package/dist/esm/{gov.log-066c3139.js.map → gov.log-6b64cda6.js.map} +1 -1
  394. package/dist/esm/{index-c263e031.js → index-8dc58a1a.js} +8 -4
  395. package/dist/esm/{index-c263e031.js.map → index-8dc58a1a.js.map} +1 -1
  396. package/dist/esm/loader.js +3 -3
  397. package/dist/esm/{props-fb6587c3.js → props-9d3c7ac1.js} +2 -2
  398. package/dist/esm/{props-fb6587c3.js.map → props-9d3c7ac1.js.map} +1 -1
  399. package/dist/esm/{wcag-de9a3dc6.js → wcag-253a4421.js} +2 -2
  400. package/dist/esm/{wcag-de9a3dc6.js.map → wcag-253a4421.js.map} +1 -1
  401. package/dist/hydrate/index.js +147 -123
  402. package/dist/hydrate/index.mjs +147 -123
  403. package/dist/types/components/gov-card/constants.d.ts +8 -4
  404. package/dist/types/components/gov-card/gov-card.d.ts +3 -2
  405. package/dist/types/components/gov-flex/constants.d.ts +4 -0
  406. package/dist/types/components/gov-flex/gov-flex.d.ts +9 -7
  407. package/dist/types/components/gov-icon/gov-icon.d.ts +1 -2
  408. package/dist/types/components/gov-tag/gov-tag.d.ts +4 -0
  409. package/dist/types/components/gov-theme-switch/constants.d.ts +0 -2
  410. package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +8 -4
  411. package/dist/types/components.d.ts +50 -22
  412. package/dist/types/helpers/Dom/document.d.ts +1 -0
  413. package/dist/types/pages/Flex.d.ts +3 -0
  414. package/package.json +4 -4
  415. package/dist/cjs/gov-flex_4.cjs.entry.js.map +0 -1
  416. package/dist/components/p-2b87c27b.js.map +0 -1
  417. package/dist/components/p-31a99bfc.js +0 -2
  418. package/dist/components/p-68a1aaec.js +0 -2
  419. package/dist/components/p-68a1aaec.js.map +0 -1
  420. package/dist/components/p-859a4f0d.js +0 -2
  421. package/dist/components/p-a2435993.js +0 -2
  422. package/dist/components/p-dc952cc2.js +0 -2
  423. package/dist/components/p-f44899e1.js +0 -2
  424. package/dist/components/p-f44899e1.js.map +0 -1
  425. package/dist/core/p-00d153bf.entry.js +0 -2
  426. package/dist/core/p-019e967c.entry.js +0 -2
  427. package/dist/core/p-1abdcb62.entry.js +0 -2
  428. package/dist/core/p-1ac9544f.entry.js.map +0 -1
  429. package/dist/core/p-1b3c808d.entry.js +0 -2
  430. package/dist/core/p-1b3c808d.entry.js.map +0 -1
  431. package/dist/core/p-22fa411d.entry.js +0 -2
  432. package/dist/core/p-2c290fe5.entry.js +0 -2
  433. package/dist/core/p-2c59483f.entry.js +0 -2
  434. package/dist/core/p-30eaeeec.entry.js +0 -2
  435. package/dist/core/p-3fc3c26b.entry.js +0 -2
  436. package/dist/core/p-40d764ac.entry.js +0 -2
  437. package/dist/core/p-410ec0dd.entry.js +0 -2
  438. package/dist/core/p-439b66a5.entry.js +0 -2
  439. package/dist/core/p-443a813a.entry.js +0 -2
  440. package/dist/core/p-48c93ac0.entry.js +0 -2
  441. package/dist/core/p-48c93ac0.entry.js.map +0 -1
  442. package/dist/core/p-52ca31be.entry.js +0 -2
  443. package/dist/core/p-52ca31be.entry.js.map +0 -1
  444. package/dist/core/p-535316b4.entry.js +0 -2
  445. package/dist/core/p-5396935e.entry.js +0 -2
  446. package/dist/core/p-5b2131c1.entry.js +0 -2
  447. package/dist/core/p-5ed63e9c.entry.js +0 -2
  448. package/dist/core/p-74458da3.entry.js.map +0 -1
  449. package/dist/core/p-773f71f6.entry.js +0 -2
  450. package/dist/core/p-783a6b5b.entry.js.map +0 -1
  451. package/dist/core/p-7b7e502b.entry.js +0 -2
  452. package/dist/core/p-8701c28e.entry.js +0 -2
  453. package/dist/core/p-9da91318.entry.js +0 -2
  454. package/dist/core/p-a218e2eb.entry.js +0 -2
  455. package/dist/core/p-a2435993.js +0 -2
  456. package/dist/core/p-b1efeb41.entry.js +0 -2
  457. package/dist/core/p-b4af0bec.entry.js +0 -2
  458. package/dist/core/p-b4af0bec.entry.js.map +0 -1
  459. package/dist/core/p-bc966c46.entry.js +0 -2
  460. package/dist/core/p-bdc51179.entry.js +0 -2
  461. package/dist/core/p-c20fe3da.entry.js +0 -2
  462. package/dist/core/p-cb557873.entry.js.map +0 -1
  463. package/dist/core/p-ed1131cb.entry.js +0 -2
  464. package/dist/core/p-f1056a83.entry.js +0 -2
  465. package/dist/core/p-f1fa5e1e.entry.js +0 -2
  466. package/dist/core/p-f4bcf817.entry.js +0 -2
  467. package/dist/core/p-f6709826.entry.js +0 -2
  468. package/dist/core/p-fca60e04.entry.js +0 -2
  469. package/dist/core/p-fe6fed11.entry.js.map +0 -1
  470. package/dist/esm/gov-flex_4.entry.js.map +0 -1
  471. /package/dist/components/{p-a2435993.js.map → p-0b3574c2.js.map} +0 -0
  472. /package/dist/components/{p-4149f195.js.map → p-73938936.js.map} +0 -0
  473. /package/dist/components/{p-5952a5d0.js.map → p-7be2301a.js.map} +0 -0
  474. /package/dist/components/{p-227eb30d.js.map → p-80dad64b.js.map} +0 -0
  475. /package/dist/components/{p-7d4f2214.js.map → p-b25af2cf.js.map} +0 -0
  476. /package/dist/components/{p-dfb5794a.js.map → p-b97d8edd.js.map} +0 -0
  477. /package/dist/components/{p-31a99bfc.js.map → p-c438a723.js.map} +0 -0
  478. /package/dist/components/{p-929ebfb5.js.map → p-d962bf44.js.map} +0 -0
  479. /package/dist/components/{p-20c2203a.js.map → p-e8ec030e.js.map} +0 -0
  480. /package/dist/core/{p-a2435993.js.map → p-0b3574c2.js.map} +0 -0
  481. /package/dist/core/{p-951823cb.entry.js.map → p-12d1e5bc.entry.js.map} +0 -0
  482. /package/dist/core/{p-22fa411d.entry.js.map → p-182d03c1.entry.js.map} +0 -0
  483. /package/dist/core/{p-c52afdfc.js.map → p-29ac15d2.js.map} +0 -0
  484. /package/dist/core/{p-30eaeeec.entry.js.map → p-3df6c6cd.entry.js.map} +0 -0
  485. /package/dist/core/{p-5396935e.entry.js.map → p-436e7690.entry.js.map} +0 -0
  486. /package/dist/core/{p-5ed63e9c.entry.js.map → p-467f778b.entry.js.map} +0 -0
  487. /package/dist/core/{p-7b7e502b.entry.js.map → p-4d81039c.entry.js.map} +0 -0
  488. /package/dist/core/{p-7d6073aa.entry.js.map → p-581c8075.entry.js.map} +0 -0
  489. /package/dist/core/{p-e2517a72.entry.js.map → p-5a92b9d9.entry.js.map} +0 -0
  490. /package/dist/core/{p-8506b611.js.map → p-5fbde4f9.js.map} +0 -0
  491. /package/dist/core/{p-7bf52eb9.entry.js.map → p-605e72b1.entry.js.map} +0 -0
  492. /package/dist/core/{p-6454af62.entry.js.map → p-6603e3df.entry.js.map} +0 -0
  493. /package/dist/core/{p-db22d51c.entry.js.map → p-913331e8.entry.js.map} +0 -0
  494. /package/dist/core/{p-d65cef62.entry.js.map → p-abefa59b.entry.js.map} +0 -0
  495. /package/dist/core/{p-1abdcb62.entry.js.map → p-aeab9c1a.entry.js.map} +0 -0
  496. /package/dist/core/{p-c4ffcc37.entry.js.map → p-af9fe91a.entry.js.map} +0 -0
  497. /package/dist/core/{p-d24710ff.entry.js.map → p-b0d1073c.entry.js.map} +0 -0
  498. /package/dist/core/{p-0be19b89.entry.js.map → p-b4cf97ab.entry.js.map} +0 -0
  499. /package/dist/core/{p-5b2131c1.entry.js.map → p-bc0ed2c1.entry.js.map} +0 -0
  500. /package/dist/core/{p-dec3f948.entry.js.map → p-bf8529f8.entry.js.map} +0 -0
  501. /package/dist/core/{p-40d764ac.entry.js.map → p-d3f7d3d5.entry.js.map} +0 -0
  502. /package/dist/core/{p-00d153bf.entry.js.map → p-d6e972c0.entry.js.map} +0 -0
  503. /package/dist/core/{p-410ec0dd.entry.js.map → p-d952e56f.entry.js.map} +0 -0
  504. /package/dist/core/{p-20c2203a.js.map → p-e8ec030e.js.map} +0 -0
  505. /package/dist/core/{p-2c290fe5.entry.js.map → p-eaa83b2f.entry.js.map} +0 -0
  506. /package/dist/core/{p-f6709826.entry.js.map → p-ebc318d7.entry.js.map} +0 -0
  507. /package/dist/core/{p-f7a4da9d.entry.js.map → p-eeee2325.entry.js.map} +0 -0
  508. /package/dist/core/{p-535316b4.entry.js.map → p-fa161f10.entry.js.map} +0 -0
  509. /package/dist/core/{p-e834ee73.entry.js.map → p-fa5b72de.entry.js.map} +0 -0
  510. /package/dist/core/{p-f4bcf817.entry.js.map → p-ff609d0e.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { g as govForm, j as FormSelectClass, k as FormSelectSizes } from './form-713f26fd.js';
3
3
  import { g as govHost, c as toBoolAttr, t as toBoolAttrIfDefined } from './template-7ecee4d1.js';
4
- import { v as validateProp } from './props-fb6587c3.js';
4
+ import { v as validateProp } from './props-9d3c7ac1.js';
5
5
  import { c as createID } from './string.utils-1da8f8fb.js';
6
6
  import { p as propsValueToArray } from './array.utils-85696abd.js';
7
7
  import { t as tick } from './stencil.utils-f3c6c68d.js';
@@ -13,7 +13,7 @@ import './constants-bc210662.js';
13
13
  import './colors-4cf64720.js';
14
14
  import './constants-085f9943.js';
15
15
  import './constants-43f10674.js';
16
- import './gov.log-066c3139.js';
16
+ import './gov.log-6b64cda6.js';
17
17
  import './helpers.types-43ddbdb8.js';
18
18
 
19
19
  const GovFormSelect = class {
@@ -92,10 +92,10 @@ const GovFormSelect = class {
92
92
  });
93
93
  }
94
94
  render() {
95
- return (h(Host, { key: '2eaa50cdab69d7ea87e86b33a69728b735f24e89', class: FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && h("slot", { key: 'ef57fa4df7417a583738b7863af7b8903dc92ced', name: "prefix" }), h("span", { key: 'f7c8e78bab4ddfe8315ec641b99077d963c3023f', class: "element" }, h("select", Object.assign({ key: '1e7502585fc0c59ad024ad6607ae8f8b4461e1ea', id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), h("slot", { key: '2d657c57207d93d0054f410f274a6b9e163c6a79' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
95
+ return (h(Host, { key: '1c2fb05a5cff0e1b1208130cc11568423f5a78a0', class: FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && h("slot", { key: '3dadb5773f1a2abe0c54f6ee45bb3a404fc99a5b', name: "prefix" }), h("span", { key: '82bc3345147debd858c5f0eb4dd9c58faf168d5d', class: "element" }, h("select", Object.assign({ key: 'ee77d1768a549faa0e94025eb5b08390c49d2d32', id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), h("slot", { key: '2c6e5a91381a7a9819b92aa7844a8d512aed9577' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
96
96
  var _a;
97
97
  return (h("option", { value: option.value, selected: option.value === this.value, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
98
- })), this.success && h("gov-icon", { key: 'cec630f5f88b883d6873d3f8fd4157d56af540ca', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && h("gov-icon", { key: 'd079d76edc2e8db801d8ff840af595a67c9db8e5', class: "validation-icon", name: "exclamation-lg", type: "components" }), h("gov-icon", { key: '349bc31354f24d96a279ea9f0967b416b8357af9', class: "arrow-icon", name: "chevron-down", type: "components" })), this.h.hasSlot('sufix') && h("slot", { key: '3d45a1c71ce49f8a207144b8d72401d593f7d712', name: "sufix" })));
98
+ })), this.success && h("gov-icon", { key: 'b08abba818740a7250956bf03962fb86eade55c2', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && h("gov-icon", { key: '5b9c0a3e7f7b6b678880b2e17e43ae702fff023b', class: "validation-icon", name: "exclamation-lg", type: "components" }), h("gov-icon", { key: '8b9afa5ebf08b1dd680aac751f8a0559b83132fc', class: "arrow-icon", name: "chevron-down", type: "components" })), this.h.hasSlot('sufix') && h("slot", { key: '9178ca16301992f32c30f3609a388a2251d3bf85', name: "sufix" })));
99
99
  }
100
100
  onFocusHandler(e) {
101
101
  this.focused = true;
@@ -1 +1 @@
1
- {"file":"gov-form-select.entry.js","mappings":";;;;;;;;;;;;;;;;;;MAkBa,aAAa;IAQzB;;;;;;;;oBAsB8C,GAAG;;wBASZ,KAAK;;wBASL,KAAK;;;4BAkBE,EAAE;mCAyBH,EAAE;QAlF5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAA;KACrC;IAyDD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,eAAe,EAAE,QAAQ,EAAE,eAAe,CAAC,IAAI,CAAC,CAAA;KAC7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OAAO,GAAQ,CAChD,EACP;KACD;IAEO,cAAc,CAAC,CAAa;QACnC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;QACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAE,eAAe,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,EAAE,eAAe,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,EAAE,eAAe,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":[],"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() 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() 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.js","mappings":";;;;;;;;;;;;;;;;;;MAkBa,aAAa;IAQzB;;;;;;;;oBAsB8C,GAAG;;wBASZ,KAAK;;wBASU,KAAK;;;4BAkBb,EAAE;mCAyBH,EA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AM;QACX,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;;;;;;","names":[],"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,12 +1,12 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { c as createID } from './string.utils-1da8f8fb.js';
3
- import { v as validateProp } from './props-fb6587c3.js';
3
+ import { v as validateProp } from './props-9d3c7ac1.js';
4
4
  import { g as govForm, h as FormSwitchClass, i as FormSwitchSizes } from './form-713f26fd.js';
5
5
  import { g as govHost, c as toBoolAttr, t as toBoolAttrIfDefined } from './template-7ecee4d1.js';
6
6
  import { F as Fragment } from './Fragment-8d8d54fb.js';
7
7
  import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
8
8
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
9
- import './gov.log-066c3139.js';
9
+ import './gov.log-6b64cda6.js';
10
10
  import './utils-e10e994d.js';
11
11
  import './sizes-5b9e579f.js';
12
12
  import './constants-bc210662.js';
@@ -1 +1 @@
1
- {"file":"gov-form-switch.entry.js","mappings":";;;;;;;;;;;;;;;;MAiBa,aAAa;IASzB;;;;;QAFQ,aAAQ,GAAG,KAAK,CAAA;;uBAiBmC,KAAK;uBAIhB,KAAK;wBAIhB,KAAK;wBAIL,KAAK;;oBAQI,GAAG;;;mCAkCN,EAAE;QApE5C,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAA;QAEzC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACxB;IAqDD,Y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EO,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,EAAE,eAAe,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":[],"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() 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() 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}
1
+ {"file":"gov-form-switch.entry.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,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAA;QAEzC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACxB;IAqDD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,eAAe,EAAE,QAAQ,EAAE,eAAe,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,EAAE,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;QAC7D,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,EAAE,QAAQ,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AAU,EAAC,IAAI,EAAC,YAAY,GAAY,CAClE,EACP,YAAM,IAAI,EAAC,OAAO,GAAQ,CACpB,CACG,CACX,CACK,EACP;KACD;IAEO,cAAc,CAAC,CAAQ;QAC9B,CAAC,CAAC,eAAe,EAAE,CAAA;KACnB;IAEO,cAAc,CAAC,CAAa;QACnC,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAE,eAAe,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,EAAE,eAAe,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,EAAE,eAAe,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":[],"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}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { a as GridItemClass } from './constants-2d5a0e18.js';
3
3
  import { g as govHost } from './template-7ecee4d1.js';
4
4
 
@@ -13,7 +13,7 @@ const GovGridItem = class {
13
13
  this.h = govHost(this.host);
14
14
  }
15
15
  render() {
16
- return (h(Host, { key: 'd830b7cb16e1ad4a07b5b5348c05434eb31a1f9e', class: this.h.classes(GridItemClass.root), role: "listitem", size: this.size, "size-sm": this.sizeSm, "size-md": this.sizeMd, "size-lg": this.sizeLg, "size-xl": this.sizeXl }, h("slot", { key: '235bd47e47d94457cdbbf1d4530cf2e0bcddc4a3' })));
16
+ return (h(Host, { key: 'e1dc6e3517618361ab3b5e3ad499a5bbbaae3d6a', class: this.h.classes(GridItemClass.root), role: "listitem", size: this.size, "size-sm": this.sizeSm, "size-md": this.sizeMd, "size-lg": this.sizeLg, "size-xl": this.sizeXl }, h("slot", { key: '53780db95fa728f252302cb86923ad9e9fcd9b66' })));
17
17
  }
18
18
  get host() { return getElement(this); }
19
19
  };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { G as GridClass } from './constants-2d5a0e18.js';
3
3
  import { g as govHost } from './template-7ecee4d1.js';
4
4
 
@@ -11,7 +11,7 @@ const GovGrid = class {
11
11
  }
12
12
  // vertical / horizontal align
13
13
  render() {
14
- return (h(Host, { key: '81e96a065c6472ae76e4768cf2b8373b94f0d0a4', class: this.h.classes(GridClass.root), "align-x": this.alignX, "align-y": this.alignY, role: "list" }, h("slot", { key: 'c3965bafe6a5870352a7cded3fc96adfbeb41724' })));
14
+ return (h(Host, { key: 'd2f4e42a186e0d8020abc96ef3ca0956e1492d05', class: this.h.classes(GridClass.root), "align-x": this.alignX, "align-y": this.alignY, role: "list" }, h("slot", { key: '46c60ccdda81ce271aeaca46bead1bf33e22c041' })));
15
15
  }
16
16
  get host() { return getElement(this); }
17
17
  };
@@ -1,12 +1,12 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { g as govHost, c as toBoolAttr } from './template-7ecee4d1.js';
3
3
  import { F as Fragment } from './Fragment-8d8d54fb.js';
4
- import { v as validateProp } from './props-fb6587c3.js';
4
+ import { v as validateProp } from './props-9d3c7ac1.js';
5
5
  import { C as Colors } from './colors-4cf64720.js';
6
6
  import { p as pick } from './utils-e10e994d.js';
7
7
  import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
8
8
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
9
- import './gov.log-066c3139.js';
9
+ import './gov.log-6b64cda6.js';
10
10
 
11
11
  const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING']);
12
12
  var InfobarType;
@@ -57,8 +57,8 @@ const GovInfobar = class {
57
57
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
58
58
  }
59
59
  render() {
60
- const closeButton = (h("gov-button", { key: '4569d98296984f33ff83947f92a95a0a3bf0d3e3', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, h("gov-icon", { key: 'aafcdbde7ca0e13d9e733036da6cc6085143966d', name: "x-lg", type: "components" })));
61
- return (h(Host, { key: '9b558a0c786862d032ed6fb5d274fc0c3cdae617', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, h("section", Object.assign({ key: '9bded4750afdfef6ace0e5a39be2d6283b30d725', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), h("slot", { key: '011f9d52f9f971a560fd0220be40b5a221a5f4b3', name: "icon" }), h("div", { key: 'd613d4ab22f89da935fe60b866ea262802c5d18f', class: InfobarClass.content }, this.h.hasSlot('headline') ? (h(Fragment, null, h("div", { class: InfobarClass.headline }, h("slot", { name: "headline" }), h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), h("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, h("slot", null)))) : (h("slot", null))), this.closable && closeButton)));
60
+ const closeButton = (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 }, h("gov-icon", { key: 'c17ba542b02a4910a136eec6cb4556d1857dffb2', name: "x-lg", type: "components" })));
61
+ return (h(Host, { key: 'd71d1b8ffe158de90f3fb520bd996a8246988d3d', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, h("section", Object.assign({ key: '12cce82faa13fa39135fe92b0ab61bc2b01fa083', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), h("slot", { key: 'bc48d4e5dfad03cd9c54054225a4c3db0ec09cd9', name: "icon" }), h("div", { key: '70422e59cb69504d1aca5d45b9f9700b35b344f0', class: InfobarClass.content }, this.h.hasSlot('headline') ? (h(Fragment, null, h("div", { class: InfobarClass.headline }, h("slot", { name: "headline" }), h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), h("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, h("slot", null)))) : (h("slot", null))), this.closable && closeButton)));
62
62
  }
63
63
  onCloseHandler(e) {
64
64
  this.govClose.emit({
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { a as LayoutColumnClass } from './constants-f0f531b6.js';
3
3
  import { g as govHost } from './template-7ecee4d1.js';
4
4
 
@@ -8,7 +8,7 @@ const GovLayoutColumn = class {
8
8
  this.h = govHost(this.host);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: '8566cc892984b1ce728c679107e228d8320f3048', class: this.h.classes(LayoutColumnClass.root) }, h("slot", { key: 'e3a085ef568fa75ef813b775344adbd6f4ef2773' })));
11
+ return (h(Host, { key: 'ebef4ca76b1308a566c862b5a49eecf1eb3fce99', class: this.h.classes(LayoutColumnClass.root) }, h("slot", { key: 'aaeefeb1a56b294d91b1327fd52eb16486cfb918' })));
12
12
  }
13
13
  get host() { return getElement(this); }
14
14
  };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { L as LayoutClass } from './constants-f0f531b6.js';
3
3
  import { g as govHost } from './template-7ecee4d1.js';
4
4
 
@@ -17,7 +17,7 @@ const GovLayout = class {
17
17
  return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: 'ba8fc53df2f13fcf8b87f25f073d0284b68b0a3a', type: this.type, class: this.h.classes(LayoutClass.root) }, h("section", { key: 'f645a9b32495c4fc1c0c86a0078c78c4bc00a1e8', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, h("slot", { key: '5b0d1a3a137a8fe3bb90ae5dff2dbc179575af56' }))));
20
+ return (h(Host, { key: 'c35fc39e07229363bdf36be5856165e7e8eb7985', type: this.type, class: this.h.classes(LayoutClass.root) }, h("section", { key: 'dc50cf9cba8bd4e879291fddfbd41955f2d10330', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, h("slot", { key: '017a329c119529d3893e187b6a8bbccfbbc76679' }))));
21
21
  }
22
22
  get host() { return getElement(this); }
23
23
  };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host } from './index-8dc58a1a.js';
2
2
  import { a as chr4 } from './string.utils-1da8f8fb.js';
3
3
 
4
4
  const GovLifecycle = class {
@@ -34,7 +34,7 @@ const GovLifecycle = class {
34
34
  console.log('componentDidUpdate', this.uniqueId);
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '7bd4b9b30b6fe4e1732232fa4e70d66756c2139d', identifier: this.uniqueId }, h("span", { key: '70d6b8d178133ee89b795c4018687c7afb2576f0' }, "lifecycle ", this.uniqueId)));
37
+ return (h(Host, { key: '506eabaae01ae888fa838c10572e55bbe6fb7015', identifier: this.uniqueId }, h("span", { key: '7604a29214fdffb1a470d83d7db37a583e5072ed' }, "lifecycle ", this.uniqueId)));
38
38
  }
39
39
  };
40
40
 
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { p as pick } from './utils-e10e994d.js';
3
3
  import { S as Sizes } from './sizes-5b9e579f.js';
4
4
  import { g as govHost } from './template-7ecee4d1.js';
5
- import { v as validateProp } from './props-fb6587c3.js';
5
+ import { v as validateProp } from './props-9d3c7ac1.js';
6
6
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
7
- import './gov.log-066c3139.js';
7
+ import './gov.log-6b64cda6.js';
8
8
  import './attribute-5561aca4.js';
9
9
 
10
10
  const LinkSizes = pick(Sizes, ['_S', '_M', '_L']);
@@ -34,7 +34,7 @@ const GovLink = class {
34
34
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '8723fc6fc0cf3faf4a0fb48b38ad2f0d0a21704b', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, h("a", Object.assign({ key: '1bfe7837dab38690789ec818f6134a50a93d1e4e', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), h("slot", { key: '96d6ce9e164a8fa5b6d5c115d52988bdfff3eceb', name: "icon-start" }), h("slot", { key: 'bcc373fec9e7e159c6b31a2ad846dd929d189d1e' }), this.external ? h("gov-icon", { name: "box-arrow-up-right", type: "components" }) : h("slot", { name: "icon-end" }))));
37
+ return (h(Host, { key: '233af48c179501fe03ee2e5931806e1955913b59', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, h("a", Object.assign({ key: '679067805205d76500979620b1ef4405139bb339', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), h("slot", { key: 'd24c4ab99451f317a453c8131bd0506606322553', name: "icon-start" }), h("slot", { key: '276923f48cdc13985115e8d4e8860a2fb0c692e2' }), this.external ? h("gov-icon", { name: "box-arrow-up-right", type: "components" }) : h("slot", { name: "icon-end" }))));
38
38
  }
39
39
  get host() { return getElement(this); }
40
40
  static get watchers() { return {
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { p as pick } from './utils-e10e994d.js';
3
3
  import { S as Sizes } from './sizes-5b9e579f.js';
4
4
  import { g as govHost, p as prepareClasses } from './template-7ecee4d1.js';
5
- import { v as validateProp } from './props-fb6587c3.js';
6
- import './gov.log-066c3139.js';
5
+ import { v as validateProp } from './props-9d3c7ac1.js';
6
+ import './gov.log-6b64cda6.js';
7
7
 
8
8
  const LoadingSizes = pick(Sizes, ['_S', '_M', '_L']);
9
9
  const LoadingClass = {
@@ -25,7 +25,7 @@ const GovLoading = class {
25
25
  this.validateSize(this.size);
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: '3f7cec1f98aa0c68f42eb3049ae8d34270e17258', class: this.h.classes(LoadingClass.root), size: this.size }, h("div", { key: '9ad1ca86b0221f2668f47eb72c080e9ecd05ed68', class: LoadingClass.content }, h("gov-icon", { key: '5d75c634386c8226c553b787355b29b0581601c5', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), h("slot", { key: '99ff7f6f1c8bd8135959ea36bc484eab6c9a4b6b' })), h("gov-backdrop", { key: 'dcaa2ab6dbcca347d5934df52e0f4989701c0259', inverse: true })));
28
+ return (h(Host, { key: '4c33339523674f2f2415dfb326131858de9eecf9', class: this.h.classes(LoadingClass.root), size: this.size }, h("div", { key: '8c25628dd3072fd89665ccfedb9596383181b13d', class: LoadingClass.content }, h("gov-icon", { key: 'a9969874350b5316c61a94b12d41a0130eeded0f', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), h("slot", { key: '14c716ecc352a0d947a6e3d932d2ab9075dedb97' })), h("gov-backdrop", { key: '507610e5a61b34be2166fb4a30539a134dc1b262', inverse: true })));
29
29
  }
30
30
  get host() { return getElement(this); }
31
31
  static get watchers() { return {
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
2
- import { v as validateProp } from './props-fb6587c3.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
+ import { v as validateProp } from './props-9d3c7ac1.js';
3
3
  import { C as Colors } from './colors-4cf64720.js';
4
4
  import { p as pick } from './utils-e10e994d.js';
5
5
  import { g as govHost } from './template-7ecee4d1.js';
6
- import './gov.log-066c3139.js';
6
+ import './gov.log-6b64cda6.js';
7
7
 
8
8
  pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING']);
9
9
  var MessageType;
@@ -27,7 +27,7 @@ const GovMessage = class {
27
27
  validateProp(Colors, newValue, MessageClass.root);
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: 'e9250a61d94bf14a9d32eef5a69a9347df89a1e2', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (h("slot", { key: '00a69ab91656245790d88c02cbaa14d365f48140', name: "icon" })), h("div", { key: 'c95cb839c2f24f744aff2a9580c44c18102d1fc9', class: MessageClass.content }, h("slot", { key: '71d8d21cff90b5498940d99947d62fec1f400f1e' }))));
30
+ return (h(Host, { key: 'b9e06c8f94940edf9d2c60119c35ec32baa23fc9', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (h("slot", { key: 'd478f414de8eaa276cc867ae5bb325c1090b08ac', name: "icon" })), h("div", { key: 'd5a113ca4061b445c583fb1b4f22fff594570b1e', class: MessageClass.content }, h("slot", { key: 'e9be2f4ff3603c5f77d46e042455174e6ccfb7be' }))));
31
31
  }
32
32
  get host() { return getElement(this); }
33
33
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { F as Fragment } from './Fragment-8d8d54fb.js';
3
- import { v as validateProp } from './props-fb6587c3.js';
3
+ import { v as validateProp } from './props-9d3c7ac1.js';
4
4
  import { S as Sizes } from './sizes-5b9e579f.js';
5
5
  import { C as Colors } from './colors-4cf64720.js';
6
6
  import { p as pick } from './utils-e10e994d.js';
@@ -9,7 +9,7 @@ import { c as createID } from './string.utils-1da8f8fb.js';
9
9
  import { c as createArrayRange } from './array.utils-85696abd.js';
10
10
  import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
11
11
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
12
- import './gov.log-066c3139.js';
12
+ import './gov.log-6b64cda6.js';
13
13
  import './helpers.types-43ddbdb8.js';
14
14
 
15
15
  const PaginationSizes = pick(Sizes, ['_S', '_M']);
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
2
- import { v as validateProp } from './props-fb6587c3.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
+ import { v as validateProp } from './props-9d3c7ac1.js';
3
3
  import { S as Sizes } from './sizes-5b9e579f.js';
4
4
  import { p as pick } from './utils-e10e994d.js';
5
5
  import { g as govHost } from './template-7ecee4d1.js';
6
- import './gov.log-066c3139.js';
6
+ import './gov.log-6b64cda6.js';
7
7
 
8
8
  const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL']);
9
9
  var SpacerBreakpoints;
@@ -36,7 +36,7 @@ const GovSpacer = class {
36
36
  this.validateBreakpoint(this.breakpoint);
37
37
  }
38
38
  render() {
39
- return h(Host, { key: '49415f0b2a4bfb25ececcd115bd1e8bfad250938', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
39
+ return h(Host, { key: '23aedb7f3b112a356319aba076eedf9a4743e25b', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
40
40
  }
41
41
  get host() { return getElement(this); }
42
42
  static get watchers() { return {
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
- import { v as validateProp } from './props-fb6587c3.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
+ import { v as validateProp } from './props-9d3c7ac1.js';
3
3
  import { S as StepperItemClass, c as StepperColors } from './constants-372455eb.js';
4
4
  import { c as createID } from './string.utils-1da8f8fb.js';
5
5
  import { g as govHost } from './template-7ecee4d1.js';
6
- import './gov.log-066c3139.js';
6
+ import './gov.log-6b64cda6.js';
7
7
  import './utils-e10e994d.js';
8
8
  import './colors-4cf64720.js';
9
9
  import './sizes-5b9e579f.js';
@@ -32,7 +32,7 @@ const GovStepperItem = class {
32
32
  render() {
33
33
  const triggerId = this.identifier || this.triggerId;
34
34
  const contentId = this.contentId;
35
- return (h(Host, { key: 'f722a022748d8fcb4ca0a27108a7e2e2980a1602', id: triggerId, class: this.h.classes(StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, this.h.hasSlot('prefix') && (h("span", { key: 'eed745cace26ca1d31c6441dd7be76d3dfa6bd4c', class: StepperItemClass.prefix }, h("slot", { key: 'd5cab6411231cd082468bcc5c244ee75e0dba147', name: "prefix" }))), h("div", { key: 'c13c92aa7890f8406eb5870caa93d186801c0a75' }, h("span", { key: 'ad456eb4699a3d32dfa2d5d477bd346cb1814473', class: StepperItemClass.headline }, h("slot", { key: '0dfdb036dcc108943be0795269e7e0b5f8ac0a29', name: "headline" })), h("slot", { key: '24220b19c2f3c6af35407da423bb1900dc363db8', name: "annotation" }), this.h.hasSlot('content') && (h("div", { key: '2bdd3feeaeafdcf73534bfadb5ff29d90eb9e037', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, h("slot", { key: 'f2f70633c3c2adcc7bd407a23863e0a6fba5ec89', name: "content" }))))));
35
+ return (h(Host, { key: 'c24400b8ee5917005e6e3a21f47024c7ebad2960', id: triggerId, class: this.h.classes(StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, this.h.hasSlot('prefix') && (h("span", { key: '010401daa60b44eed322de007fdd6e4ca035ff8d', class: StepperItemClass.prefix }, h("slot", { key: '27287e54365c7e72e01dd21f8d07f7144dc03f3c', name: "prefix" }))), h("div", { key: 'b50e23ee80b270bb5bb781c46e2cf2de73cad1bb' }, h("span", { key: '84500822ca2e529bff5e5cf4eb7ac7c9f0fc9d97', class: StepperItemClass.headline }, h("slot", { key: '18410e07be87715a96540789a82403bfab45e55c', name: "headline" })), h("slot", { key: 'dd2c20b9f07d2bcbf4223eca8de0d7592d178e86', name: "annotation" }), this.h.hasSlot('content') && (h("div", { key: 'cd34d17b5a14816dd91ee84f91a14217952bcfe5', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, h("slot", { key: 'c90f411f8d63c6381f55a0e6ac819369a9bfd2e5', name: "content" }))))));
36
36
  }
37
37
  get host() { return getElement(this); }
38
38
  static get watchers() { return {
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
- import { v as validateProp } from './props-fb6587c3.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
+ import { v as validateProp } from './props-9d3c7ac1.js';
3
3
  import { S as StepperItemClass, a as StepperClass, b as StepperSizes } from './constants-372455eb.js';
4
4
  import { g as govHost } from './template-7ecee4d1.js';
5
- import './gov.log-066c3139.js';
5
+ import './gov.log-6b64cda6.js';
6
6
  import './utils-e10e994d.js';
7
7
  import './colors-4cf64720.js';
8
8
  import './sizes-5b9e579f.js';
@@ -34,7 +34,7 @@ const GovStepper = class {
34
34
  this.hydrated = true;
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '208bca5b06fce13b8f87f0cc4497860c01d2d56b', class: this.h.classes(StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, h("slot", { key: 'a0ec9b8b5e03062e4b9547cb9fbfc73fddaa0519' })));
37
+ return (h(Host, { key: '0815470dbe86e888ab922139e6f02347f89f4700', class: this.h.classes(StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, h("slot", { key: '2585c79a48236a8c2d333a437beb4d7f1d9d9d6c' })));
38
38
  }
39
39
  get host() { return getElement(this); }
40
40
  static get watchers() { return {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { c as createID } from './string.utils-1da8f8fb.js';
3
3
  import { g as govHost, t as toBoolAttrIfDefined } from './template-7ecee4d1.js';
4
4
  import { a as TabsClass, T as TabsItemClass } from './constants-9177ea52.js';
@@ -28,7 +28,7 @@ const GovTabsItem = class {
28
28
  }
29
29
  }
30
30
  render() {
31
- return (h(Host, { key: '7cf18cf8a10a4c03dd51922e31e18dac86aa217d', class: this.h.classes(TabsItemClass.root), default: this.default }, h("div", { key: '3a707d9494c5055c3763f4cdf840522fae5e7a2a', class: TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": toBoolAttrIfDefined(!this.isActive) }, h("slot", { key: '289b661851fc6d68a5d6dd376a6e31b691e25aea' }))));
31
+ return (h(Host, { key: '89b01b0d025a89f89085dba24db6b8fadcd97e68', class: this.h.classes(TabsItemClass.root), default: this.default }, h("div", { key: '8868371d0da63c1727c8b3a55b930a4d0ce30a3c', class: TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": toBoolAttrIfDefined(!this.isActive) }, h("slot", { key: '0d47bea8c416b1c57aac006f9eea9101ade9427d' }))));
32
32
  }
33
33
  /**
34
34
  * Returns a unique tab content identifier
@@ -1,12 +1,12 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
- import { v as validateProp } from './props-fb6587c3.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
+ import { v as validateProp } from './props-9d3c7ac1.js';
3
3
  import { T as TabsItemClass, a as TabsClass, b as TabTypes, c as TabColors, d as TabSizes } from './constants-9177ea52.js';
4
4
  import { g as govHost, c as toBoolAttr, b as booleanString } from './template-7ecee4d1.js';
5
5
  import { h as hasOwnProperty } from './helpers.types-43ddbdb8.js';
6
6
  import { p as prepareIconFormat } from './helpers-5d179d4b.js';
7
7
  import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
8
8
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
9
- import './gov.log-066c3139.js';
9
+ import './gov.log-6b64cda6.js';
10
10
  import './utils-e10e994d.js';
11
11
  import './sizes-5b9e579f.js';
12
12
  import './colors-4cf64720.js';
@@ -118,7 +118,7 @@ const GovTabs = class {
118
118
  });
119
119
  }
120
120
  render() {
121
- return (h(Host, { key: '75a6dc2d1bb8afb13e3d63b44bdd00e230a49fe6', class: this.h.classes(TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, h("div", Object.assign({ key: '1fc7ff9eafaaab713727787a1bb0c7364ad3cf4e', class: TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), h("ul", { key: '82a67f585c9a394175bb64be57e669d886b3d4f6', class: TabsClass.list }, this.controllers.map(control => (h("li", { class: TabsClass.item }, this.type == "text" ? (h("button", { class: TabsClass.btn, id: control.triggerIdentifier, role: "tab", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": toBoolAttr(control.disabled), "aria-selected": toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (h("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), h("slot", { key: '8af7e27c0410ba9a4c0f79a1c44275e5811e9463' })));
121
+ return (h(Host, { key: '4efcbedcc355a74456cc899bc48c7aaf8c604c12', class: this.h.classes(TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, h("div", Object.assign({ key: 'a64d1a7cadd5950ebc687c3f3d741ea0a59a3684', class: TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), h("ul", { key: 'adab5148c97b041e11f3e7d11a4d87492df5320a', class: TabsClass.list }, this.controllers.map(control => (h("li", { class: TabsClass.item }, this.type == "text" ? (h("button", { class: TabsClass.btn, id: control.triggerIdentifier, role: "tab", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": toBoolAttr(control.disabled), "aria-selected": toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (h("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), h("slot", { key: '2a3720ce9449d62ecd1d58bac806bf356d37375a' })));
122
122
  }
123
123
  getCurrentTab() {
124
124
  return this.controllers.find(control => control.active) || null;
@@ -1,11 +1,11 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { g as govHost } from './template-7ecee4d1.js';
3
- import { v as validateProp } from './props-fb6587c3.js';
3
+ import { v as validateProp } from './props-9d3c7ac1.js';
4
4
  import { a as ButtonColors, b as ButtonSizes } from './constants-51f51588.js';
5
5
  import { p as pick } from './utils-e10e994d.js';
6
6
  import { S as Sizes } from './sizes-5b9e579f.js';
7
7
  import { p as prepareIconFormat } from './helpers-5d179d4b.js';
8
- import './gov.log-066c3139.js';
8
+ import './gov.log-6b64cda6.js';
9
9
  import './colors-4cf64720.js';
10
10
 
11
11
  const TagSizes = pick(Sizes, ['_XS', '_S', '_M']);
@@ -26,6 +26,7 @@ const GovTag = class {
26
26
  this.size = TagSizes._S;
27
27
  this.color = ButtonColors.PRIMARY;
28
28
  this.type = undefined;
29
+ this.expanded = false;
29
30
  this.h = govHost(this.host);
30
31
  }
31
32
  validateColor(newValue) {
@@ -41,7 +42,7 @@ const GovTag = class {
41
42
  render() {
42
43
  const iconStart = prepareIconFormat(this.iconStart);
43
44
  const iconEnd = prepareIconFormat(this.iconEnd);
44
- return (h(Host, { key: 'c883cf9721b32aa8c06609bf09272ef196456e18', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, h("span", { key: '614f39f6f1004d6c3ee1d0f13990a4e52dee66bc', class: "element" }, h("slot", { key: 'f7d4dc9576768e917a363bc7cafa86567213ea82', name: "icon-start" }, iconStart && h("gov-icon", { key: '8d57b52a0314e8d76461872116b4ce04e546c180', type: iconStart.type, name: iconStart.name })), h("slot", { key: '4cd134377c3ea7843aa899b0a2962aa19f5d569e' }), h("slot", { key: '4dc1cccaced24ef26bb15e648788590a4b7d1838', name: "icon-end" }, iconEnd && h("gov-icon", { key: '7946e18900c98bdff4c610813b2422bf75b30049', type: iconEnd.type, name: iconEnd.name })))));
45
+ return (h(Host, { key: '8865709f2568a754160000138f413f352409e248', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, h("span", { key: '4ae6dc1d60a207510de61c2391af9eb268dd3588', class: "element" }, h("slot", { key: 'f08057eb346b918d1be45ad7561a71bac54237aa', name: "icon-start" }, iconStart && h("gov-icon", { key: '37554fce04335c45bb724efeb5e7701513336b7b', type: iconStart.type, name: iconStart.name })), h("slot", { key: 'b66970bf42b9fd9217cb2e3a03c2f47c608b14a5' }), h("slot", { key: '85bf0010dac55b808bba5a442d977e8538f93d3a', name: "icon-end" }, iconEnd && h("gov-icon", { key: '70bf541bac6a69871618cb520c7008099aa6f341', type: iconEnd.type, name: iconEnd.name })))));
45
46
  }
46
47
  get host() { return getElement(this); }
47
48
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-tag.entry.js","mappings":";;;;;;;;;;AAIO,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGxD,IAAY,OAGX;AAHD,WAAY,OAAO;IAClB,wBAAa,CAAA;IACb,4BAAiB,CAAA;AAClB,CAAC,EAHW,OAAO,KAAP,OAAO,QAGlB;AAGM,MAAM,QAAQ,GAAG;IACvB,IAAI,EAAE,SAAS;CACf;;MCJY,MAAM;IAGlB;;;;oBAiBqD,QAAQ,CAAC,EAAE;qBAIP,YAAY,CAAC,OAAO;;QApB5E,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA0BD,aAAa,CAAC,QAAgB;QAC7B,YAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;KACnD;IAGD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;KAClD;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC9B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC5B;IAED,MAAM;QACL,MAAM,SAAS,GAAG,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QACnD,MAAM,OAAO,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC/C,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EACzC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,IAEf,6DAAM,KAAK,EAAC,SAAS,IACpB,6DAAM,IAAI,EAAC,YAAY,IACrB,SAAS,IAAI,iEAAU,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,GAAa,CACzE,EACP,8DAAO,EACP,6DAAM,IAAI,EAAC,UAAU,IACnB,OAAO,IAAI,iEAAU,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,GAAa,CACnE,CACD,CACD,EACP;KACD;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-tag/constants.ts","../../../packages/core/src/components/gov-tag/gov-tag.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TagSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type TagSizesType = `${ValueOf<typeof TagSizes>}`\n\nexport enum TagType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type TagTypesType = `${ValueOf<typeof TagType>}`\n\nexport const TagClass = {\n\troot: 'gov-tag',\n}\n","import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonSizes, ButtonColors, ButtonColorType} from '../gov-button/button/constants'\nimport {TagClass, TagSizes, TagSizesType, TagTypesType} from './constants'\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\n\n@Component({\n\ttag: 'gov-tag',\n})\nexport class GovTag {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovTagElement\n\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\n\t/**\n\t * Tag’s size.\n\t */\n\t@Prop({reflect: true}) readonly size: TagSizesType = TagSizes._S\n\t/**\n\t * Style variation of the tag.\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType = ButtonColors.PRIMARY\n\t/**\n\t * Tag’s type\n\t */\n\t@Prop({reflect: true}) readonly type: TagTypesType\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, TagClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, TagClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TagClass.root)}\n\t\t\t\tcolor={this.color}\n\t\t\t\tsize={this.size}\n\t\t\t\ttype={this.type}\n\t\t\t>\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<slot name=\"icon-start\">\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<slot name=\"icon-end\">\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-tag.entry.js","mappings":";;;;;;;;;;AAIO,MAAM,QAA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,iEAAU,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,GAAa,CACzE,EACP,8DAAO,EACP,6DAAM,IAAI,EAAC,UAAU,IACnB,OAAO,IAAI,iEAAU,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,GAAa,CACnE,CACD,CACD,EACP;KACD;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-tag/constants.ts","../../../packages/core/src/components/gov-tag/gov-tag.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TagSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type TagSizesType = `${ValueOf<typeof TagSizes>}`\n\nexport enum TagType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type TagTypesType = `${ValueOf<typeof TagType>}`\n\nexport const TagClass = {\n\troot: 'gov-tag',\n}\n","import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonSizes, ButtonColors, ButtonColorType} from '../gov-button/button/constants'\nimport {TagClass, TagSizes, TagSizesType, TagTypesType} from './constants'\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\n\n@Component({\n\ttag: 'gov-tag',\n})\nexport class GovTag {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovTagElement\n\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\n\t/**\n\t * Tag’s size.\n\t */\n\t@Prop({reflect: true}) readonly size: TagSizesType = TagSizes._S\n\t/**\n\t * Style variation of the tag.\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType = ButtonColors.PRIMARY\n\t/**\n\t * Tag’s type\n\t */\n\t@Prop({reflect: true}) readonly type: TagTypesType\n\t/**\n\t * Expands the tag to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, TagClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, TagClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TagClass.root)}\n\t\t\t\tcolor={this.color}\n\t\t\t\tsize={this.size}\n\t\t\t\ttype={this.type}\n\t\t\t>\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<slot name=\"icon-start\">\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<slot name=\"icon-end\">\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, F as Fragment, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, F as Fragment, a as Host, g as getElement } from './index-8dc58a1a.js';
2
2
  import { p as pick } from './utils-e10e994d.js';
3
3
  import { S as Sizes } from './sizes-5b9e579f.js';
4
4
  import { g as govHost } from './template-7ecee4d1.js';
@@ -25,7 +25,7 @@ const GovTile = class {
25
25
  this.h = govHost(this.host);
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: '3fd4f5bb8f7cdcdb5a6bbed610ed4ab6ec2837f5', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, h("slot", { key: '97179af17c8f8b16de49ca36a7c548d20e53cbdf', name: "icon" }), h("div", { key: 'a60a8e60effd1337cc11c5afb347ab395673d724', class: TileClass.content }, h("div", { key: 'b27682c73305417442d9ebfd27e02cc80d10034c', class: TileClass.text }, h("div", { key: '0c891f670607dde529d5ef6b1c86a843b7600a30', class: TileClass.title }, this.href ? (h(Fragment, null, h("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, h("slot", { name: "title" })), h("span", { class: TileClass.icon }, h("gov-icon", { name: "chevron-right", type: "components" })))) : (h("slot", { name: "title" }))), h("div", { key: 'dcb5f3be57fa6ebaa507c12c9394f1b12837856e', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, h("slot", { key: 'c3b7fe9ef111769219f1d915929112fe083927c8' }))), h("slot", { key: '98173ea276fedd176720b79e5a55b3b2d5272536', name: "button" }))));
28
+ return (h(Host, { key: 'c766f3d54f15e5a49a877fa2e67593d084f487f7', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, h("slot", { key: 'd07b106d781fead65a124c82d11ebe991fddfece', name: "icon" }), h("div", { key: 'eeee0397b4384a473f3782750d1e04f0c8c7894d', class: TileClass.content }, h("div", { key: 'f4081902e55b964b1ebbdd43f7b189f83dce8690', class: TileClass.text }, h("div", { key: '3bf8cf35db6f667de7c278786787e38b1392a5b2', class: TileClass.title }, this.href ? (h(Fragment, null, h("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, h("slot", { name: "title" })), h("span", { class: TileClass.icon }, h("gov-icon", { name: "chevron-right", type: "components" })))) : (h("slot", { name: "title" }))), h("div", { key: '088f60531285a1457277352a011766f809d9280d', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, h("slot", { key: '8d4a612e3aff054a60ec1030eb5a28903595ea6a' }))), h("slot", { key: 'f7610d06a6d951b3a24f2e129342bb82c5e9d767', name: "button" }))));
29
29
  }
30
30
  /**
31
31
  * Returns a clickable element instance