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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (888) hide show
  1. package/dist/cjs/{colors-976f6dff.js → colors-f7c8eadd.js} +7 -9
  2. package/dist/cjs/colors-f7c8eadd.js.map +1 -0
  3. package/dist/cjs/{constants-e2807da6.js → constants-49f0efa6.js} +2 -2
  4. package/dist/cjs/{constants-e2807da6.js.map → constants-49f0efa6.js.map} +1 -1
  5. package/dist/cjs/{constants-43c0c51b.js → constants-4dfa23e3.js} +2 -2
  6. package/dist/cjs/{constants-43c0c51b.js.map → constants-4dfa23e3.js.map} +1 -1
  7. package/dist/cjs/{constants-441d1af4.js → constants-82929d01.js} +2 -2
  8. package/dist/cjs/{constants-441d1af4.js.map → constants-82929d01.js.map} +1 -1
  9. package/dist/cjs/{constants-bd0d66ac.js → constants-b9fece07.js} +2 -2
  10. package/dist/cjs/{constants-bd0d66ac.js.map → constants-b9fece07.js.map} +1 -1
  11. package/dist/cjs/{constants-5037cdc9.js → constants-c0886404.js} +2 -2
  12. package/dist/cjs/{constants-5037cdc9.js.map → constants-c0886404.js.map} +1 -1
  13. package/dist/cjs/{constants-861428a4.js → constants-f464dc4c.js} +2 -2
  14. package/dist/cjs/{constants-861428a4.js.map → constants-f464dc4c.js.map} +1 -1
  15. package/dist/cjs/core.cjs.js +2 -2
  16. package/dist/cjs/{form-c1aec07a.js → form-4e66039a.js} +4 -3
  17. package/dist/cjs/form-4e66039a.js.map +1 -0
  18. package/dist/cjs/gov-accordion-item.cjs.entry.js +11 -9
  19. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-accordion.cjs.entry.js +4 -5
  21. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-attachments_3.cjs.entry.js +14 -15
  23. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-backdrop.cjs.entry.js +7 -8
  25. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +7 -8
  27. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-button.cjs.entry.js +12 -13
  29. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-card.cjs.entry.js +7 -8
  31. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-chip.cjs.entry.js +13 -14
  33. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-container.cjs.entry.js +3 -11
  35. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-control-group.cjs.entry.js +6 -7
  37. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-cookiebar.cjs.entry.js +3 -3
  39. package/dist/cjs/gov-dialog.cjs.entry.js +7 -8
  40. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  41. package/dist/cjs/gov-dropdown.cjs.entry.js +6 -6
  42. package/dist/cjs/gov-empty.cjs.entry.js +5 -6
  43. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-error-code.cjs.entry.js +3 -3
  45. package/dist/cjs/gov-flex_4.cjs.entry.js +322 -0
  46. package/dist/cjs/gov-flex_4.cjs.entry.js.map +1 -0
  47. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +6 -8
  48. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +6 -7
  50. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-form-checkbox.cjs.entry.js +9 -10
  52. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-form-control.cjs.entry.js +7 -7
  54. package/dist/cjs/gov-form-file.cjs.entry.js +12 -8
  55. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-form-group.cjs.entry.js +5 -6
  57. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  58. package/dist/cjs/gov-form-input_2.cjs.entry.js +14 -13
  59. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  60. package/dist/cjs/gov-form-multi-select.cjs.entry.js +13 -29
  61. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  63. package/dist/cjs/gov-form-radio-group.cjs.entry.js +6 -7
  64. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-form-radio.cjs.entry.js +8 -9
  66. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gov-form-search.cjs.entry.js +3 -3
  68. package/dist/cjs/gov-form-select.cjs.entry.js +10 -11
  69. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  70. package/dist/cjs/gov-form-switch.cjs.entry.js +9 -10
  71. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-grid-item.cjs.entry.js +3 -3
  73. package/dist/cjs/gov-grid.cjs.entry.js +3 -3
  74. package/dist/cjs/gov-infobar.cjs.entry.js +7 -8
  75. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  76. package/dist/cjs/gov-layout-column.cjs.entry.js +3 -3
  77. package/dist/cjs/gov-layout.cjs.entry.js +3 -3
  78. package/dist/cjs/gov-lifecycle.cjs.entry.js +47 -0
  79. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -0
  80. package/dist/cjs/gov-link.cjs.entry.js +51 -0
  81. package/dist/cjs/gov-link.cjs.entry.js.map +1 -0
  82. package/dist/cjs/gov-loading.cjs.entry.js +5 -6
  83. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  84. package/dist/cjs/gov-message.cjs.entry.js +6 -7
  85. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  86. package/dist/cjs/gov-pagination.cjs.entry.js +8 -9
  87. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  88. package/dist/cjs/gov-spacer.cjs.entry.js +5 -6
  89. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  90. package/dist/cjs/gov-stepper-item.cjs.entry.js +8 -9
  91. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  92. package/dist/cjs/gov-stepper.cjs.entry.js +7 -8
  93. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  94. package/dist/cjs/gov-tabs-item.cjs.entry.js +6 -6
  95. package/dist/cjs/gov-tabs.cjs.entry.js +7 -8
  96. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  97. package/dist/cjs/gov-tag.cjs.entry.js +11 -12
  98. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  99. package/dist/cjs/gov-tile.cjs.entry.js +3 -3
  100. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gov-tiles.cjs.entry.js +3 -3
  102. package/dist/cjs/gov-toast.cjs.entry.js +10 -11
  103. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  104. package/dist/cjs/gov-tooltip-content.cjs.entry.js +5 -5
  105. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
  106. package/dist/cjs/gov-tooltip.cjs.entry.js +12 -13
  107. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  108. package/dist/cjs/gov-wizard-item.cjs.entry.js +10 -11
  109. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  110. package/dist/cjs/gov-wizard.cjs.entry.js +10 -11
  111. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  112. package/dist/cjs/{win-587f4614.js → gov.log-bfea3151.js} +16 -4
  113. package/dist/cjs/gov.log-bfea3151.js.map +1 -0
  114. package/dist/cjs/{index-1af4880c.js → index-7ff4447c.js} +20 -12
  115. package/dist/cjs/index-7ff4447c.js.map +1 -0
  116. package/dist/cjs/loader.cjs.js +2 -2
  117. package/dist/cjs/{props-b8a955b2.js → props-d189860c.js} +2 -2
  118. package/dist/cjs/{props-b8a955b2.js.map → props-d189860c.js.map} +1 -1
  119. package/dist/cjs/{string.utils-2335838f.js → string.utils-b84c81cf.js} +2 -1
  120. package/dist/cjs/string.utils-b84c81cf.js.map +1 -0
  121. package/dist/cjs/{template-b070338f.js → template-39939fd6.js} +1 -20
  122. package/dist/cjs/template-39939fd6.js.map +1 -0
  123. package/dist/cjs/{wcag-31089f70.js → wcag-2927ff73.js} +5 -6
  124. package/dist/cjs/wcag-2927ff73.js.map +1 -0
  125. package/dist/collection/collection-manifest.json +3 -1
  126. package/dist/collection/components/gov-accordion/gov-accordion-item.js +8 -5
  127. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  128. package/dist/collection/components/gov-attachments/gov-attachments-item.css +6 -35
  129. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  130. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  131. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  132. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  133. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  134. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  135. package/dist/collection/components/gov-button/button/gov-button.js +9 -9
  136. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  137. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  138. package/dist/collection/components/gov-card/gov-card.js +1 -1
  139. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  140. package/dist/collection/components/gov-chip/gov-chip.js +16 -16
  141. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  142. package/dist/collection/components/gov-container/gov-container.js +2 -38
  143. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  144. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  145. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  146. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  147. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  148. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  149. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  150. package/dist/collection/components/gov-flex/constants.js +4 -0
  151. package/dist/collection/components/gov-flex/constants.js.map +1 -0
  152. package/dist/collection/components/gov-flex/gov-flex.js +127 -0
  153. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -0
  154. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -20
  155. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  156. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
  157. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  158. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  159. package/dist/collection/components/gov-form/file/gov-form-file.js +6 -20
  160. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  161. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  162. package/dist/collection/components/gov-form/group/gov-form-group.css +7 -36
  163. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  164. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  165. package/dist/collection/components/gov-form/input/constants.js +1 -0
  166. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  167. package/dist/collection/components/gov-form/input/gov-form-input.js +5 -3
  168. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  169. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  170. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  171. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +5 -29
  172. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  173. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  174. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  175. package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
  176. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  177. package/dist/collection/components/gov-form/switch/constants.js +1 -1
  178. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  179. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -2
  180. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  181. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  182. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  183. package/dist/collection/components/gov-icon/constants.js +8 -7
  184. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  185. package/dist/collection/components/gov-icon/gov-icon.js +38 -6
  186. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  187. package/dist/collection/components/gov-icon/list.js +37 -151
  188. package/dist/collection/components/gov-icon/list.js.map +1 -1
  189. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  190. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  191. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  192. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  193. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +39 -0
  194. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -0
  195. package/dist/collection/components/gov-link/constants.js +7 -0
  196. package/dist/collection/components/gov-link/constants.js.map +1 -0
  197. package/dist/collection/components/gov-link/gov-link.js +129 -0
  198. package/dist/collection/components/gov-link/gov-link.js.map +1 -0
  199. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  200. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  201. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  202. package/dist/collection/components/gov-message/gov-message.js +1 -1
  203. package/dist/collection/components/gov-pagination/gov-pagination.js +2 -2
  204. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  205. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  206. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  207. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  208. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  209. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  210. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  211. package/dist/collection/components/gov-tag/gov-tag.js +9 -9
  212. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  213. package/dist/collection/components/gov-theme-switch/constants.js +9 -1
  214. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  215. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +134 -10
  216. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  217. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  218. package/dist/collection/components/gov-tile/gov-tile.js +7 -7
  219. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  220. package/dist/collection/components/gov-toast/constants.js +1 -0
  221. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  222. package/dist/collection/components/gov-toast/gov-toast.js +3 -4
  223. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  224. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  225. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  226. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  227. package/dist/collection/components/gov-wizard/gov-wizard-item.js +3 -3
  228. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  229. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  230. package/dist/collection/core/constants/colors.js +6 -8
  231. package/dist/collection/core/constants/colors.js.map +1 -1
  232. package/dist/collection/data/color-definitions.js +359 -172
  233. package/dist/collection/helpers/Dom/document.js +28 -0
  234. package/dist/collection/helpers/Dom/document.js.map +1 -0
  235. package/dist/collection/helpers/Dom/template.js +0 -18
  236. package/dist/collection/helpers/Dom/template.js.map +1 -1
  237. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  238. package/dist/collection/pages/Accordion.js +30 -30
  239. package/dist/collection/pages/Accordion.js.map +1 -1
  240. package/dist/collection/pages/Button.js +383 -383
  241. package/dist/collection/pages/Button.js.map +1 -1
  242. package/dist/collection/pages/Chip.js +53 -53
  243. package/dist/collection/pages/Chip.js.map +1 -1
  244. package/dist/collection/pages/ControlGroup.js +18 -18
  245. package/dist/collection/pages/ControlGroup.js.map +1 -1
  246. package/dist/collection/pages/Dialog.js +1 -1
  247. package/dist/collection/pages/Dialog.js.map +1 -1
  248. package/dist/collection/pages/Forms.js +206 -196
  249. package/dist/collection/pages/Forms.js.map +1 -1
  250. package/dist/collection/pages/Grid.js +1 -1
  251. package/dist/collection/pages/Grid.js.map +1 -1
  252. package/dist/collection/pages/Icon.js +10 -0
  253. package/dist/collection/pages/Icon.js.map +1 -1
  254. package/dist/collection/pages/Infobar.js +16 -16
  255. package/dist/collection/pages/Infobar.js.map +1 -1
  256. package/dist/collection/pages/Message.js +20 -20
  257. package/dist/collection/pages/Message.js.map +1 -1
  258. package/dist/collection/pages/Spacer.js +1 -1
  259. package/dist/collection/pages/Spacer.js.map +1 -1
  260. package/dist/collection/pages/Stepper.js +15 -15
  261. package/dist/collection/pages/Stepper.js.map +1 -1
  262. package/dist/collection/pages/Tag.js +135 -160
  263. package/dist/collection/pages/Tag.js.map +1 -1
  264. package/dist/collection/pages/ToastMessage.js +4 -4
  265. package/dist/collection/pages/ToastMessage.js.map +1 -1
  266. package/dist/collection/pages/ToastMessageCountdown.js +4 -4
  267. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
  268. package/dist/collection/pages/Tooltip.js +2 -2
  269. package/dist/collection/pages/Tooltip.js.map +1 -1
  270. package/dist/collection/pages/Typography.js +20 -0
  271. package/dist/collection/pages/Typography.js.map +1 -1
  272. package/dist/collection/pages/Wizard.js +2 -2
  273. package/dist/collection/pages/Wizard.js.map +1 -1
  274. package/dist/collection/utils/string.utils.js +1 -1
  275. package/dist/collection/utils/string.utils.js.map +1 -1
  276. package/dist/components/gov-accordion-item.js +1 -1
  277. package/dist/components/gov-accordion-item.js.map +1 -1
  278. package/dist/components/gov-accordion.js +1 -1
  279. package/dist/components/gov-attachments-item.js +1 -1
  280. package/dist/components/gov-attachments.js +1 -1
  281. package/dist/components/gov-backdrop.js +1 -1
  282. package/dist/components/gov-breadcrumbs.js +1 -1
  283. package/dist/components/gov-breadcrumbs.js.map +1 -1
  284. package/dist/components/gov-button.js +1 -1
  285. package/dist/components/gov-card.js +1 -1
  286. package/dist/components/gov-card.js.map +1 -1
  287. package/dist/components/gov-chip.js +1 -1
  288. package/dist/components/gov-container.js +1 -1
  289. package/dist/components/gov-container.js.map +1 -1
  290. package/dist/components/gov-control-group.js +1 -1
  291. package/dist/components/gov-cookiebar.js +1 -1
  292. package/dist/components/gov-dialog.js +1 -1
  293. package/dist/components/gov-dialog.js.map +1 -1
  294. package/dist/components/gov-dropdown.js +1 -1
  295. package/dist/components/gov-dropdown.js.map +1 -1
  296. package/dist/components/gov-empty.js +1 -1
  297. package/dist/components/gov-error-code.js +1 -1
  298. package/dist/components/{gov-app.d.ts → gov-flex.d.ts} +4 -4
  299. package/dist/components/gov-flex.js +2 -0
  300. package/dist/components/gov-flex.js.map +1 -0
  301. package/dist/components/gov-form-autocomplete.js +1 -1
  302. package/dist/components/gov-form-checkbox-group.js +1 -1
  303. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  304. package/dist/components/gov-form-checkbox.js +1 -1
  305. package/dist/components/gov-form-checkbox.js.map +1 -1
  306. package/dist/components/gov-form-control.js +1 -1
  307. package/dist/components/gov-form-file.js +1 -1
  308. package/dist/components/gov-form-file.js.map +1 -1
  309. package/dist/components/gov-form-group.js +1 -1
  310. package/dist/components/gov-form-input.js +1 -1
  311. package/dist/components/gov-form-label.js +1 -1
  312. package/dist/components/gov-form-label.js.map +1 -1
  313. package/dist/components/gov-form-message.js +1 -1
  314. package/dist/components/gov-form-multi-select.js +1 -1
  315. package/dist/components/gov-form-multi-select.js.map +1 -1
  316. package/dist/components/gov-form-password-power.js +1 -1
  317. package/dist/components/gov-form-radio-group.js +1 -1
  318. package/dist/components/gov-form-radio-group.js.map +1 -1
  319. package/dist/components/gov-form-radio.js +1 -1
  320. package/dist/components/gov-form-search.js +1 -1
  321. package/dist/components/gov-form-select.js +1 -1
  322. package/dist/components/gov-form-switch.js +1 -1
  323. package/dist/components/gov-form-switch.js.map +1 -1
  324. package/dist/components/gov-grid-item.js +1 -1
  325. package/dist/components/gov-grid.js +1 -1
  326. package/dist/components/gov-icon.js +1 -1
  327. package/dist/components/gov-infobar.js +1 -1
  328. package/dist/components/gov-infobar.js.map +1 -1
  329. package/dist/components/gov-layout-column.js +1 -1
  330. package/dist/components/gov-layout.js +1 -1
  331. package/dist/components/gov-lifecycle.d.ts +11 -0
  332. package/dist/components/gov-lifecycle.js +2 -0
  333. package/dist/components/gov-lifecycle.js.map +1 -0
  334. package/dist/components/gov-link.d.ts +11 -0
  335. package/dist/components/gov-link.js +2 -0
  336. package/dist/components/gov-link.js.map +1 -0
  337. package/dist/components/gov-loading.js +1 -1
  338. package/dist/components/gov-loading.js.map +1 -1
  339. package/dist/components/gov-message.js +1 -1
  340. package/dist/components/gov-pagination.js +1 -1
  341. package/dist/components/gov-pagination.js.map +1 -1
  342. package/dist/components/gov-skeleton.js +1 -1
  343. package/dist/components/gov-spacer.js +1 -1
  344. package/dist/components/gov-stepper-item.js +1 -1
  345. package/dist/components/gov-stepper.js +1 -1
  346. package/dist/components/gov-tabs-item.js +1 -1
  347. package/dist/components/gov-tabs.js +1 -1
  348. package/dist/components/gov-tabs.js.map +1 -1
  349. package/dist/components/gov-tag.js +1 -1
  350. package/dist/components/gov-tag.js.map +1 -1
  351. package/dist/components/gov-theme-switch.js +1 -1
  352. package/dist/components/gov-theme-switch.js.map +1 -1
  353. package/dist/components/gov-tile.js +1 -1
  354. package/dist/components/gov-tile.js.map +1 -1
  355. package/dist/components/gov-tiles.js +1 -1
  356. package/dist/components/gov-toast.js +1 -1
  357. package/dist/components/gov-toast.js.map +1 -1
  358. package/dist/components/gov-tooltip-content.js +1 -1
  359. package/dist/components/gov-tooltip-content.js.map +1 -1
  360. package/dist/components/gov-tooltip.js +1 -1
  361. package/dist/components/gov-tooltip.js.map +1 -1
  362. package/dist/components/gov-wizard-item.js +1 -1
  363. package/dist/components/gov-wizard-item.js.map +1 -1
  364. package/dist/components/gov-wizard.js +1 -1
  365. package/dist/components/index.js +1 -1
  366. package/dist/components/p-20c2203a.js +2 -0
  367. package/dist/components/p-20c2203a.js.map +1 -0
  368. package/dist/components/p-227eb30d.js +2 -0
  369. package/dist/components/{p-9a93146e.js.map → p-227eb30d.js.map} +1 -1
  370. package/dist/components/p-2b87c27b.js +2 -0
  371. package/dist/components/{p-7fd16831.js.map → p-2b87c27b.js.map} +1 -1
  372. package/dist/components/p-31a99bfc.js +2 -0
  373. package/dist/components/p-4149f195.js +2 -0
  374. package/dist/components/{p-ae3dada7.js → p-42200001.js} +3 -3
  375. package/dist/components/p-42200001.js.map +1 -0
  376. package/dist/components/p-44a8a668.js +2 -0
  377. package/dist/components/p-45097b4c.js +2 -0
  378. package/dist/components/p-45097b4c.js.map +1 -0
  379. package/dist/components/p-5952a5d0.js +2 -0
  380. package/dist/components/p-5aad3497.js +2 -0
  381. package/dist/components/p-5aad3497.js.map +1 -0
  382. package/dist/components/p-68a1aaec.js +2 -0
  383. package/dist/components/p-68a1aaec.js.map +1 -0
  384. package/dist/components/p-76d604c6.js +2 -0
  385. package/dist/components/p-7d4f2214.js +2 -0
  386. package/dist/components/{p-1366ed8d.js.map → p-7d4f2214.js.map} +1 -1
  387. package/dist/components/p-7f3becc5.js +2 -0
  388. package/dist/components/p-859a4f0d.js +2 -0
  389. package/dist/components/{p-dbae2385.js.map → p-859a4f0d.js.map} +1 -1
  390. package/dist/components/{p-7f8a24a7.js → p-860520b0.js} +2 -2
  391. package/dist/components/p-880743a5.js.map +1 -1
  392. package/dist/components/p-929ebfb5.js +2 -0
  393. package/dist/components/p-929ebfb5.js.map +1 -0
  394. package/dist/components/p-9908b9f0.js +2 -0
  395. package/dist/components/p-9908b9f0.js.map +1 -0
  396. package/dist/components/{p-19c681a3.js → p-a2435993.js} +2 -2
  397. package/dist/components/{p-59737af9.js → p-a521c59a.js} +2 -2
  398. package/dist/components/{p-0c93dd39.js → p-c61a5830.js} +2 -2
  399. package/dist/components/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  400. package/dist/components/p-cd6c2938.js.map +1 -0
  401. package/dist/components/p-dc952cc2.js +2 -0
  402. package/dist/components/p-dc952cc2.js.map +1 -0
  403. package/dist/components/{p-6e19816b.js → p-dfb5794a.js} +2 -2
  404. package/dist/components/p-ea7fdd2e.js +2 -0
  405. package/dist/components/p-ea7fdd2e.js.map +1 -0
  406. package/dist/components/p-f44899e1.js +2 -0
  407. package/dist/components/p-f44899e1.js.map +1 -0
  408. package/dist/core/core.css +8256 -7340
  409. package/dist/core/core.esm.js +1 -1
  410. package/dist/core/core.esm.js.map +1 -1
  411. package/dist/core/p-00d153bf.entry.js +2 -0
  412. package/dist/core/p-019e967c.entry.js +2 -0
  413. package/dist/core/{p-eeb9cb73.entry.js.map → p-019e967c.entry.js.map} +1 -1
  414. package/dist/core/p-0be19b89.entry.js +2 -0
  415. package/dist/core/p-1abdcb62.entry.js +2 -0
  416. package/dist/core/p-1abdcb62.entry.js.map +1 -0
  417. package/dist/core/p-1ac9544f.entry.js +2 -0
  418. package/dist/core/{p-35e66bef.entry.js.map → p-1ac9544f.entry.js.map} +1 -1
  419. package/dist/core/p-1b3c808d.entry.js +2 -0
  420. package/dist/core/p-1b3c808d.entry.js.map +1 -0
  421. package/dist/core/p-20c2203a.js +2 -0
  422. package/dist/core/p-20c2203a.js.map +1 -0
  423. package/dist/core/p-22fa411d.entry.js +2 -0
  424. package/dist/core/p-2c290fe5.entry.js +2 -0
  425. package/dist/core/p-2c290fe5.entry.js.map +1 -0
  426. package/dist/core/p-2c59483f.entry.js +2 -0
  427. package/dist/core/p-2c59483f.entry.js.map +1 -0
  428. package/dist/core/p-30eaeeec.entry.js +2 -0
  429. package/dist/core/p-3bbb77a0.js +2 -0
  430. package/dist/core/p-3fc3c26b.entry.js +2 -0
  431. package/dist/core/{p-db940455.entry.js.map → p-3fc3c26b.entry.js.map} +1 -1
  432. package/dist/core/p-40d764ac.entry.js +2 -0
  433. package/dist/core/{p-9ff8f059.entry.js.map → p-40d764ac.entry.js.map} +1 -1
  434. package/dist/core/p-410ec0dd.entry.js +2 -0
  435. package/dist/core/{p-17015e36.entry.js.map → p-410ec0dd.entry.js.map} +1 -1
  436. package/dist/core/p-439b66a5.entry.js +2 -0
  437. package/dist/core/{p-a53a277a.entry.js.map → p-439b66a5.entry.js.map} +1 -1
  438. package/dist/core/p-443a813a.entry.js +2 -0
  439. package/dist/core/{p-2ed3afef.entry.js.map → p-443a813a.entry.js.map} +1 -1
  440. package/dist/core/p-48c93ac0.entry.js +2 -0
  441. package/dist/core/p-48c93ac0.entry.js.map +1 -0
  442. package/dist/core/p-52ca31be.entry.js +2 -0
  443. package/dist/core/{p-fa7caad6.entry.js.map → p-52ca31be.entry.js.map} +1 -1
  444. package/dist/core/p-535316b4.entry.js +2 -0
  445. package/dist/core/p-5396935e.entry.js +2 -0
  446. package/dist/core/{p-42d9924c.js → p-56efd4a2.js} +2 -2
  447. package/dist/core/p-5aad3497.js +2 -0
  448. package/dist/core/p-5aad3497.js.map +1 -0
  449. package/dist/core/p-5b2131c1.entry.js +2 -0
  450. package/dist/core/p-5ed63e9c.entry.js +2 -0
  451. package/dist/core/{p-5dcbfca3.entry.js.map → p-5ed63e9c.entry.js.map} +1 -1
  452. package/dist/core/{p-60658ae9.js → p-5f1000da.js} +2 -2
  453. package/dist/core/p-6454af62.entry.js +2 -0
  454. package/dist/core/{p-182189d2.entry.js.map → p-6454af62.entry.js.map} +1 -1
  455. package/dist/core/p-74458da3.entry.js +2 -0
  456. package/dist/core/p-74458da3.entry.js.map +1 -0
  457. package/dist/core/p-76d604c6.js +2 -0
  458. package/dist/core/{p-a21dc94f.js.map → p-76d604c6.js.map} +1 -1
  459. package/dist/core/p-773f71f6.entry.js +2 -0
  460. package/dist/core/{p-f1be099b.entry.js.map → p-773f71f6.entry.js.map} +1 -1
  461. package/dist/core/p-783a6b5b.entry.js +2 -0
  462. package/dist/core/{p-9d0f20ec.entry.js.map → p-783a6b5b.entry.js.map} +1 -1
  463. package/dist/core/p-7b7e502b.entry.js +2 -0
  464. package/dist/core/p-7ba4daf4.js +2 -0
  465. package/dist/core/p-7bf52eb9.entry.js +2 -0
  466. package/dist/core/p-7bf52eb9.entry.js.map +1 -0
  467. package/dist/core/p-7d6073aa.entry.js +2 -0
  468. package/dist/core/{p-7cf554e6.entry.js.map → p-7d6073aa.entry.js.map} +1 -1
  469. package/dist/core/p-7f3becc5.js +2 -0
  470. package/dist/core/{p-a1e95a5f.js → p-8506b611.js} +3 -3
  471. package/dist/core/p-8506b611.js.map +1 -0
  472. package/dist/core/{p-e9a6cd71.js → p-860520b0.js} +2 -2
  473. package/dist/core/p-8701c28e.entry.js +2 -0
  474. package/dist/core/p-8701c28e.entry.js.map +1 -0
  475. package/dist/core/p-880743a5.js.map +1 -1
  476. package/dist/core/p-951823cb.entry.js +2 -0
  477. package/dist/core/{p-963f9fcd.entry.js.map → p-951823cb.entry.js.map} +1 -1
  478. package/dist/core/p-9da91318.entry.js +2 -0
  479. package/dist/core/{p-9b41ac88.entry.js.map → p-9da91318.entry.js.map} +1 -1
  480. package/dist/core/p-a218e2eb.entry.js +2 -0
  481. package/dist/core/{p-d2351924.entry.js.map → p-a218e2eb.entry.js.map} +1 -1
  482. package/dist/core/{p-169b67af.js → p-a2435993.js} +2 -2
  483. package/dist/core/p-a521c59a.js +2 -0
  484. package/dist/core/p-b1efeb41.entry.js +2 -0
  485. package/dist/core/p-b1efeb41.entry.js.map +1 -0
  486. package/dist/core/p-b4af0bec.entry.js +2 -0
  487. package/dist/core/p-b4af0bec.entry.js.map +1 -0
  488. package/dist/core/p-bc966c46.entry.js +2 -0
  489. package/dist/core/{p-83039b10.entry.js.map → p-bc966c46.entry.js.map} +1 -1
  490. package/dist/core/p-bdc51179.entry.js +2 -0
  491. package/dist/core/p-bdc51179.entry.js.map +1 -0
  492. package/dist/core/p-c20fe3da.entry.js +2 -0
  493. package/dist/core/{p-f456bd71.entry.js.map → p-c20fe3da.entry.js.map} +1 -1
  494. package/dist/core/p-c4ffcc37.entry.js +2 -0
  495. package/dist/core/p-c4ffcc37.entry.js.map +1 -0
  496. package/dist/core/p-c52afdfc.js +2 -0
  497. package/dist/core/{p-28a7d3f7.js.map → p-c52afdfc.js.map} +1 -1
  498. package/dist/core/{p-c990d746.js → p-c61a5830.js} +2 -2
  499. package/dist/core/p-cb557873.entry.js +2 -0
  500. package/dist/core/{p-0ebc8365.entry.js.map → p-cb557873.entry.js.map} +1 -1
  501. package/dist/core/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  502. package/dist/core/p-cd6c2938.js.map +1 -0
  503. package/dist/core/p-d24710ff.entry.js +2 -0
  504. package/dist/core/p-d24710ff.entry.js.map +1 -0
  505. package/dist/core/p-d65cef62.entry.js +2 -0
  506. package/dist/core/{p-aa8adc45.entry.js.map → p-d65cef62.entry.js.map} +1 -1
  507. package/dist/core/p-da1db6fd.js +2 -0
  508. package/dist/core/p-da1db6fd.js.map +1 -0
  509. package/dist/core/p-db22d51c.entry.js +2 -0
  510. package/dist/core/{p-dc3fab19.entry.js.map → p-db22d51c.entry.js.map} +1 -1
  511. package/dist/core/p-dec3f948.entry.js +2 -0
  512. package/dist/core/{p-ab9ae7ba.entry.js.map → p-dec3f948.entry.js.map} +1 -1
  513. package/dist/core/{p-45a30859.js → p-e0e2e9c1.js} +2 -2
  514. package/dist/core/p-e2517a72.entry.js +2 -0
  515. package/dist/core/{p-b55fc943.entry.js.map → p-e2517a72.entry.js.map} +1 -1
  516. package/dist/core/p-e44a0fee.js +2 -0
  517. package/dist/core/p-e834ee73.entry.js +2 -0
  518. package/dist/core/p-e834ee73.entry.js.map +1 -0
  519. package/dist/core/p-ea7fdd2e.js +2 -0
  520. package/dist/core/p-ea7fdd2e.js.map +1 -0
  521. package/dist/core/p-ed1131cb.entry.js +2 -0
  522. package/dist/core/{p-6d772ff9.entry.js.map → p-ed1131cb.entry.js.map} +1 -1
  523. package/dist/core/p-f1056a83.entry.js +2 -0
  524. package/dist/core/{p-b3acb156.entry.js.map → p-f1056a83.entry.js.map} +1 -1
  525. package/dist/core/p-f1fa5e1e.entry.js +2 -0
  526. package/dist/core/{p-e4978aab.entry.js.map → p-f1fa5e1e.entry.js.map} +1 -1
  527. package/dist/core/p-f4bcf817.entry.js +2 -0
  528. package/dist/core/p-f4bcf817.entry.js.map +1 -0
  529. package/dist/core/p-f6709826.entry.js +2 -0
  530. package/dist/core/p-f6709826.entry.js.map +1 -0
  531. package/dist/core/p-f7a4da9d.entry.js +2 -0
  532. package/dist/core/{p-a5489b0e.entry.js.map → p-f7a4da9d.entry.js.map} +1 -1
  533. package/dist/core/p-fca60e04.entry.js +2 -0
  534. package/dist/core/{p-663d3db2.entry.js.map → p-fca60e04.entry.js.map} +1 -1
  535. package/dist/core/p-fe6fed11.entry.js +2 -0
  536. package/dist/core/p-fe6fed11.entry.js.map +1 -0
  537. package/dist/esm/{colors-02c1ea96.js → colors-4cf64720.js} +7 -9
  538. package/dist/esm/colors-4cf64720.js.map +1 -0
  539. package/dist/esm/{constants-6d727976.js → constants-085f9943.js} +2 -2
  540. package/dist/esm/{constants-6d727976.js.map → constants-085f9943.js.map} +1 -1
  541. package/dist/esm/{constants-990365f1.js → constants-372455eb.js} +3 -3
  542. package/dist/esm/{constants-990365f1.js.map → constants-372455eb.js.map} +1 -1
  543. package/dist/esm/{constants-d6418889.js → constants-3ab65c42.js} +2 -2
  544. package/dist/esm/{constants-d6418889.js.map → constants-3ab65c42.js.map} +1 -1
  545. package/dist/esm/{constants-48177684.js → constants-3b914c35.js} +3 -3
  546. package/dist/esm/{constants-48177684.js.map → constants-3b914c35.js.map} +1 -1
  547. package/dist/esm/{constants-d42abf99.js → constants-43f10674.js} +2 -2
  548. package/dist/esm/{constants-d42abf99.js.map → constants-43f10674.js.map} +1 -1
  549. package/dist/esm/{constants-501eb756.js → constants-4da2b3c0.js} +2 -2
  550. package/dist/esm/{constants-501eb756.js.map → constants-4da2b3c0.js.map} +1 -1
  551. package/dist/esm/{constants-c716fa44.js → constants-51f51588.js} +3 -3
  552. package/dist/esm/{constants-c716fa44.js.map → constants-51f51588.js.map} +1 -1
  553. package/dist/esm/{constants-f4e4ede6.js → constants-8429b68f.js} +3 -3
  554. package/dist/esm/{constants-f4e4ede6.js.map → constants-8429b68f.js.map} +1 -1
  555. package/dist/esm/{constants-47e20524.js → constants-9177ea52.js} +3 -3
  556. package/dist/esm/{constants-47e20524.js.map → constants-9177ea52.js.map} +1 -1
  557. package/dist/esm/{constants-7307438d.js → constants-bc210662.js} +3 -3
  558. package/dist/esm/{constants-7307438d.js.map → constants-bc210662.js.map} +1 -1
  559. package/dist/esm/core.js +3 -3
  560. package/dist/esm/{form-472e078d.js → form-713f26fd.js} +7 -6
  561. package/dist/esm/form-713f26fd.js.map +1 -0
  562. package/dist/esm/gov-accordion-item.entry.js +13 -11
  563. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  564. package/dist/esm/gov-accordion.entry.js +6 -7
  565. package/dist/esm/gov-accordion.entry.js.map +1 -1
  566. package/dist/esm/gov-attachments_3.entry.js +13 -14
  567. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  568. package/dist/esm/gov-backdrop.entry.js +7 -8
  569. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  570. package/dist/esm/gov-breadcrumbs.entry.js +7 -8
  571. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  572. package/dist/esm/gov-button.entry.js +12 -13
  573. package/dist/esm/gov-button.entry.js.map +1 -1
  574. package/dist/esm/gov-card.entry.js +7 -8
  575. package/dist/esm/gov-card.entry.js.map +1 -1
  576. package/dist/esm/gov-chip.entry.js +14 -15
  577. package/dist/esm/gov-chip.entry.js.map +1 -1
  578. package/dist/esm/gov-container.entry.js +3 -11
  579. package/dist/esm/gov-container.entry.js.map +1 -1
  580. package/dist/esm/gov-control-group.entry.js +7 -8
  581. package/dist/esm/gov-control-group.entry.js.map +1 -1
  582. package/dist/esm/gov-cookiebar.entry.js +3 -3
  583. package/dist/esm/gov-dialog.entry.js +7 -8
  584. package/dist/esm/gov-dialog.entry.js.map +1 -1
  585. package/dist/esm/gov-dropdown.entry.js +7 -7
  586. package/dist/esm/gov-empty.entry.js +7 -8
  587. package/dist/esm/gov-empty.entry.js.map +1 -1
  588. package/dist/esm/gov-error-code.entry.js +3 -3
  589. package/dist/esm/gov-flex_4.entry.js +315 -0
  590. package/dist/esm/gov-flex_4.entry.js.map +1 -0
  591. package/dist/esm/gov-form-autocomplete.entry.js +8 -10
  592. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  593. package/dist/esm/gov-form-checkbox-group.entry.js +8 -9
  594. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  595. package/dist/esm/gov-form-checkbox.entry.js +12 -13
  596. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  597. package/dist/esm/gov-form-control.entry.js +10 -10
  598. package/dist/esm/gov-form-file.entry.js +15 -11
  599. package/dist/esm/gov-form-file.entry.js.map +1 -1
  600. package/dist/esm/gov-form-group.entry.js +7 -8
  601. package/dist/esm/gov-form-group.entry.js.map +1 -1
  602. package/dist/esm/gov-form-input_2.entry.js +17 -16
  603. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  604. package/dist/esm/gov-form-multi-select.entry.js +16 -32
  605. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  606. package/dist/esm/gov-form-password-power.entry.js +2 -2
  607. package/dist/esm/gov-form-radio-group.entry.js +8 -9
  608. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  609. package/dist/esm/gov-form-radio.entry.js +11 -12
  610. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  611. package/dist/esm/gov-form-search.entry.js +4 -4
  612. package/dist/esm/gov-form-select.entry.js +13 -14
  613. package/dist/esm/gov-form-select.entry.js.map +1 -1
  614. package/dist/esm/gov-form-switch.entry.js +12 -13
  615. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  616. package/dist/esm/gov-grid-item.entry.js +3 -3
  617. package/dist/esm/gov-grid.entry.js +3 -3
  618. package/dist/esm/gov-infobar.entry.js +8 -9
  619. package/dist/esm/gov-infobar.entry.js.map +1 -1
  620. package/dist/esm/gov-layout-column.entry.js +3 -3
  621. package/dist/esm/gov-layout.entry.js +3 -3
  622. package/dist/esm/gov-lifecycle.entry.js +43 -0
  623. package/dist/esm/gov-lifecycle.entry.js.map +1 -0
  624. package/dist/esm/gov-link.entry.js +47 -0
  625. package/dist/esm/gov-link.entry.js.map +1 -0
  626. package/dist/esm/gov-loading.entry.js +6 -7
  627. package/dist/esm/gov-loading.entry.js.map +1 -1
  628. package/dist/esm/gov-message.entry.js +7 -8
  629. package/dist/esm/gov-message.entry.js.map +1 -1
  630. package/dist/esm/gov-pagination.entry.js +9 -10
  631. package/dist/esm/gov-pagination.entry.js.map +1 -1
  632. package/dist/esm/gov-spacer.entry.js +6 -7
  633. package/dist/esm/gov-spacer.entry.js.map +1 -1
  634. package/dist/esm/gov-stepper-item.entry.js +9 -10
  635. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  636. package/dist/esm/gov-stepper.entry.js +8 -9
  637. package/dist/esm/gov-stepper.entry.js.map +1 -1
  638. package/dist/esm/gov-tabs-item.entry.js +7 -7
  639. package/dist/esm/gov-tabs.entry.js +8 -9
  640. package/dist/esm/gov-tabs.entry.js.map +1 -1
  641. package/dist/esm/gov-tag.entry.js +12 -13
  642. package/dist/esm/gov-tag.entry.js.map +1 -1
  643. package/dist/esm/gov-tile.entry.js +4 -4
  644. package/dist/esm/gov-tile.entry.js.map +1 -1
  645. package/dist/esm/gov-tiles.entry.js +3 -3
  646. package/dist/esm/gov-toast.entry.js +11 -12
  647. package/dist/esm/gov-toast.entry.js.map +1 -1
  648. package/dist/esm/gov-tooltip-content.entry.js +6 -6
  649. package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
  650. package/dist/esm/gov-tooltip.entry.js +10 -11
  651. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  652. package/dist/esm/gov-wizard-item.entry.js +11 -12
  653. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  654. package/dist/esm/gov-wizard.entry.js +10 -11
  655. package/dist/esm/gov-wizard.entry.js.map +1 -1
  656. package/dist/esm/{win-cec370ad.js → gov.log-066c3139.js} +17 -3
  657. package/dist/esm/gov.log-066c3139.js.map +1 -0
  658. package/dist/esm/{index-d8b4eb6c.js → index-c263e031.js} +20 -12
  659. package/dist/esm/index-c263e031.js.map +1 -0
  660. package/dist/esm/loader.js +3 -3
  661. package/dist/esm/{props-c82e1abf.js → props-fb6587c3.js} +2 -2
  662. package/dist/esm/{props-c82e1abf.js.map → props-fb6587c3.js.map} +1 -1
  663. package/dist/esm/{string.utils-5ce3f551.js → string.utils-1da8f8fb.js} +2 -2
  664. package/dist/esm/string.utils-1da8f8fb.js.map +1 -0
  665. package/dist/esm/{template-3d84d705.js → template-7ecee4d1.js} +2 -20
  666. package/dist/esm/template-7ecee4d1.js.map +1 -0
  667. package/dist/esm/{utils-2b4ef320.js → utils-e10e994d.js} +2 -2
  668. package/dist/esm/{utils-2b4ef320.js.map → utils-e10e994d.js.map} +1 -1
  669. package/dist/esm/{wcag-fa5ce56c.js → wcag-de9a3dc6.js} +3 -4
  670. package/dist/esm/wcag-de9a3dc6.js.map +1 -0
  671. package/dist/hydrate/index.js +418 -10076
  672. package/dist/hydrate/index.mjs +418 -10076
  673. package/dist/stencil.config.js +9 -6
  674. package/dist/stencil.config.js.map +1 -1
  675. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +1 -0
  676. package/dist/types/components/gov-button/button/gov-button.d.ts +1 -1
  677. package/dist/types/components/gov-chip/gov-chip.d.ts +3 -3
  678. package/dist/types/components/gov-container/gov-container.d.ts +0 -6
  679. package/dist/types/components/gov-flex/constants.d.ts +3 -0
  680. package/dist/types/components/gov-flex/gov-flex.d.ts +33 -0
  681. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -4
  682. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -4
  683. package/dist/types/components/gov-form/input/constants.d.ts +1 -0
  684. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -2
  685. package/dist/types/components/gov-form/switch/constants.d.ts +1 -1
  686. package/dist/types/components/gov-icon/constants.d.ts +4 -1
  687. package/dist/types/components/gov-icon/gov-icon.d.ts +8 -2
  688. package/dist/types/components/gov-icon/list.d.ts +1 -1
  689. package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  690. package/dist/types/components/gov-link/constants.d.ts +7 -0
  691. package/dist/types/components/gov-link/gov-link.d.ts +30 -0
  692. package/dist/types/components/gov-tag/gov-tag.d.ts +2 -2
  693. package/dist/types/components/gov-theme-switch/constants.d.ts +9 -0
  694. package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +26 -2
  695. package/dist/types/components/gov-tile/gov-tile.d.ts +1 -1
  696. package/dist/types/components/gov-toast/constants.d.ts +1 -0
  697. package/dist/types/components.d.ts +191 -50
  698. package/dist/types/core/constants/colors.d.ts +6 -8
  699. package/dist/types/helpers/Dom/document.d.ts +3 -0
  700. package/dist/types/helpers/Dom/template.d.ts +0 -1
  701. package/dist/types/helpers/Dom/template.types.d.ts +0 -1
  702. package/dist/types/utils/string.utils.d.ts +1 -0
  703. package/package.json +3 -3
  704. package/dist/cjs/colors-976f6dff.js.map +0 -1
  705. package/dist/cjs/form-c1aec07a.js.map +0 -1
  706. package/dist/cjs/gov-app_2.cjs.entry.js +0 -9891
  707. package/dist/cjs/gov-app_2.cjs.entry.js.map +0 -1
  708. package/dist/cjs/gov-form-label.cjs.entry.js +0 -27
  709. package/dist/cjs/gov-form-label.cjs.entry.js.map +0 -1
  710. package/dist/cjs/gov-icon.cjs.entry.js +0 -161
  711. package/dist/cjs/gov-icon.cjs.entry.js.map +0 -1
  712. package/dist/cjs/gov.log-1e8bab6e.js +0 -21
  713. package/dist/cjs/gov.log-1e8bab6e.js.map +0 -1
  714. package/dist/cjs/index-1af4880c.js.map +0 -1
  715. package/dist/cjs/string.utils-2335838f.js.map +0 -1
  716. package/dist/cjs/template-b070338f.js.map +0 -1
  717. package/dist/cjs/wcag-31089f70.js.map +0 -1
  718. package/dist/cjs/win-587f4614.js.map +0 -1
  719. package/dist/collection/components/gov-app/gov-app.css +0 -68
  720. package/dist/collection/components/gov-app/gov-app.js +0 -93
  721. package/dist/collection/components/gov-app/gov-app.js.map +0 -1
  722. package/dist/components/gov-app.js +0 -2
  723. package/dist/components/gov-app.js.map +0 -1
  724. package/dist/components/p-0075138f.js +0 -2
  725. package/dist/components/p-0075138f.js.map +0 -1
  726. package/dist/components/p-08621bdf.js +0 -2
  727. package/dist/components/p-1366ed8d.js +0 -2
  728. package/dist/components/p-1a0b3b4f.js +0 -2
  729. package/dist/components/p-1a0b3b4f.js.map +0 -1
  730. package/dist/components/p-255d0471.js +0 -2
  731. package/dist/components/p-255d0471.js.map +0 -1
  732. package/dist/components/p-565120d5.js +0 -2
  733. package/dist/components/p-736e4917.js +0 -2
  734. package/dist/components/p-7501abe8.js +0 -2
  735. package/dist/components/p-7501abe8.js.map +0 -1
  736. package/dist/components/p-778e3fff.js +0 -2
  737. package/dist/components/p-778e3fff.js.map +0 -1
  738. package/dist/components/p-7fd16831.js +0 -2
  739. package/dist/components/p-95d41a3b.js.map +0 -1
  740. package/dist/components/p-9a93146e.js +0 -2
  741. package/dist/components/p-ae3dada7.js.map +0 -1
  742. package/dist/components/p-ae7e6127.js +0 -2
  743. package/dist/components/p-cc90a508.js +0 -2
  744. package/dist/components/p-cc90a508.js.map +0 -1
  745. package/dist/components/p-d5f25595.js +0 -2
  746. package/dist/components/p-d5f25595.js.map +0 -1
  747. package/dist/components/p-dbae2385.js +0 -2
  748. package/dist/components/p-dcaf0383.js +0 -2
  749. package/dist/components/p-dcaf0383.js.map +0 -1
  750. package/dist/components/p-e183a7c7.js +0 -2
  751. package/dist/components/p-e3aeaca0.js +0 -2
  752. package/dist/components/p-e3aeaca0.js.map +0 -1
  753. package/dist/components/p-edd1417b.js +0 -2
  754. package/dist/core/p-006e52f1.entry.js +0 -2
  755. package/dist/core/p-006e52f1.entry.js.map +0 -1
  756. package/dist/core/p-0075138f.js +0 -2
  757. package/dist/core/p-0075138f.js.map +0 -1
  758. package/dist/core/p-023787b3.entry.js +0 -2
  759. package/dist/core/p-023787b3.entry.js.map +0 -1
  760. package/dist/core/p-052cc573.js +0 -2
  761. package/dist/core/p-0a952b3c.entry.js +0 -2
  762. package/dist/core/p-0a952b3c.entry.js.map +0 -1
  763. package/dist/core/p-0ebc8365.entry.js +0 -2
  764. package/dist/core/p-17015e36.entry.js +0 -2
  765. package/dist/core/p-182189d2.entry.js +0 -2
  766. package/dist/core/p-2614044c.js +0 -2
  767. package/dist/core/p-28a7d3f7.js +0 -2
  768. package/dist/core/p-2ed3afef.entry.js +0 -2
  769. package/dist/core/p-2effdd60.entry.js +0 -2
  770. package/dist/core/p-2effdd60.entry.js.map +0 -1
  771. package/dist/core/p-35e66bef.entry.js +0 -2
  772. package/dist/core/p-3f2b803c.entry.js +0 -2
  773. package/dist/core/p-477a5027.entry.js +0 -2
  774. package/dist/core/p-477a5027.entry.js.map +0 -1
  775. package/dist/core/p-47e364bb.entry.js +0 -2
  776. package/dist/core/p-47e364bb.entry.js.map +0 -1
  777. package/dist/core/p-4bce896c.js +0 -2
  778. package/dist/core/p-5c88f415.entry.js +0 -2
  779. package/dist/core/p-5c88f415.entry.js.map +0 -1
  780. package/dist/core/p-5dc0af54.entry.js +0 -2
  781. package/dist/core/p-5dc0af54.entry.js.map +0 -1
  782. package/dist/core/p-5dcbfca3.entry.js +0 -2
  783. package/dist/core/p-663d3db2.entry.js +0 -2
  784. package/dist/core/p-69d56f17.js +0 -2
  785. package/dist/core/p-6aa40794.js +0 -2
  786. package/dist/core/p-6b42a387.entry.js +0 -2
  787. package/dist/core/p-6d772ff9.entry.js +0 -2
  788. package/dist/core/p-6ed147a6.entry.js +0 -2
  789. package/dist/core/p-6ed147a6.entry.js.map +0 -1
  790. package/dist/core/p-7cf554e6.entry.js +0 -2
  791. package/dist/core/p-81b0848c.entry.js +0 -2
  792. package/dist/core/p-81b0848c.entry.js.map +0 -1
  793. package/dist/core/p-83039b10.entry.js +0 -2
  794. package/dist/core/p-904de5e6.entry.js +0 -2
  795. package/dist/core/p-904de5e6.entry.js.map +0 -1
  796. package/dist/core/p-91a9cd24.entry.js +0 -2
  797. package/dist/core/p-95d41a3b.js.map +0 -1
  798. package/dist/core/p-963f9fcd.entry.js +0 -2
  799. package/dist/core/p-9b41ac88.entry.js +0 -2
  800. package/dist/core/p-9d0f20ec.entry.js +0 -2
  801. package/dist/core/p-9dde00d8.entry.js +0 -2
  802. package/dist/core/p-9dde00d8.entry.js.map +0 -1
  803. package/dist/core/p-9ff8f059.entry.js +0 -2
  804. package/dist/core/p-a16229c6.entry.js +0 -2
  805. package/dist/core/p-a16229c6.entry.js.map +0 -1
  806. package/dist/core/p-a1e95a5f.js.map +0 -1
  807. package/dist/core/p-a1ebb4da.entry.js +0 -2
  808. package/dist/core/p-a1ebb4da.entry.js.map +0 -1
  809. package/dist/core/p-a21dc94f.js +0 -2
  810. package/dist/core/p-a53a277a.entry.js +0 -2
  811. package/dist/core/p-a5489b0e.entry.js +0 -2
  812. package/dist/core/p-a54f1db9.entry.js +0 -2
  813. package/dist/core/p-a693ffbf.js +0 -2
  814. package/dist/core/p-a693ffbf.js.map +0 -1
  815. package/dist/core/p-aa8adc45.entry.js +0 -2
  816. package/dist/core/p-ab9ae7ba.entry.js +0 -2
  817. package/dist/core/p-b3acb156.entry.js +0 -2
  818. package/dist/core/p-b48a4aa0.js +0 -2
  819. package/dist/core/p-b48a4aa0.js.map +0 -1
  820. package/dist/core/p-b55fc943.entry.js +0 -2
  821. package/dist/core/p-b838bb27.entry.js +0 -2
  822. package/dist/core/p-c214c202.entry.js +0 -2
  823. package/dist/core/p-c214c202.entry.js.map +0 -1
  824. package/dist/core/p-c4c7cb24.entry.js +0 -2
  825. package/dist/core/p-d2351924.entry.js +0 -2
  826. package/dist/core/p-db940455.entry.js +0 -2
  827. package/dist/core/p-dc3fab19.entry.js +0 -2
  828. package/dist/core/p-e0d428c9.js +0 -2
  829. package/dist/core/p-e0d428c9.js.map +0 -1
  830. package/dist/core/p-e134b123.entry.js +0 -2
  831. package/dist/core/p-e3aeaca0.js +0 -2
  832. package/dist/core/p-e3aeaca0.js.map +0 -1
  833. package/dist/core/p-e4978aab.entry.js +0 -2
  834. package/dist/core/p-edc05eff.entry.js +0 -2
  835. package/dist/core/p-edc05eff.entry.js.map +0 -1
  836. package/dist/core/p-eeb9cb73.entry.js +0 -2
  837. package/dist/core/p-f141ad5e.entry.js +0 -2
  838. package/dist/core/p-f1be099b.entry.js +0 -2
  839. package/dist/core/p-f456bd71.entry.js +0 -2
  840. package/dist/core/p-fa7caad6.entry.js +0 -2
  841. package/dist/core/p-fc90bf06.entry.js +0 -2
  842. package/dist/core/p-fc90bf06.entry.js.map +0 -1
  843. package/dist/esm/colors-02c1ea96.js.map +0 -1
  844. package/dist/esm/form-472e078d.js.map +0 -1
  845. package/dist/esm/gov-app_2.entry.js +0 -9886
  846. package/dist/esm/gov-app_2.entry.js.map +0 -1
  847. package/dist/esm/gov-form-label.entry.js +0 -23
  848. package/dist/esm/gov-form-label.entry.js.map +0 -1
  849. package/dist/esm/gov-icon.entry.js +0 -157
  850. package/dist/esm/gov-icon.entry.js.map +0 -1
  851. package/dist/esm/gov.log-6e9faad2.js +0 -19
  852. package/dist/esm/gov.log-6e9faad2.js.map +0 -1
  853. package/dist/esm/index-d8b4eb6c.js.map +0 -1
  854. package/dist/esm/string.utils-5ce3f551.js.map +0 -1
  855. package/dist/esm/template-3d84d705.js.map +0 -1
  856. package/dist/esm/wcag-fa5ce56c.js.map +0 -1
  857. package/dist/esm/win-cec370ad.js.map +0 -1
  858. package/dist/types/components/gov-app/gov-app.d.ts +0 -37
  859. /package/dist/components/{p-ae7e6127.js.map → p-31a99bfc.js.map} +0 -0
  860. /package/dist/components/{p-736e4917.js.map → p-4149f195.js.map} +0 -0
  861. /package/dist/components/{p-08621bdf.js.map → p-44a8a668.js.map} +0 -0
  862. /package/dist/components/{p-e183a7c7.js.map → p-5952a5d0.js.map} +0 -0
  863. /package/dist/components/{p-565120d5.js.map → p-76d604c6.js.map} +0 -0
  864. /package/dist/components/{p-edd1417b.js.map → p-7f3becc5.js.map} +0 -0
  865. /package/dist/components/{p-7f8a24a7.js.map → p-860520b0.js.map} +0 -0
  866. /package/dist/components/{p-19c681a3.js.map → p-a2435993.js.map} +0 -0
  867. /package/dist/components/{p-59737af9.js.map → p-a521c59a.js.map} +0 -0
  868. /package/dist/components/{p-0c93dd39.js.map → p-c61a5830.js.map} +0 -0
  869. /package/dist/components/{p-6e19816b.js.map → p-dfb5794a.js.map} +0 -0
  870. /package/dist/core/{p-a54f1db9.entry.js.map → p-00d153bf.entry.js.map} +0 -0
  871. /package/dist/core/{p-3f2b803c.entry.js.map → p-0be19b89.entry.js.map} +0 -0
  872. /package/dist/core/{p-f141ad5e.entry.js.map → p-22fa411d.entry.js.map} +0 -0
  873. /package/dist/core/{p-b838bb27.entry.js.map → p-30eaeeec.entry.js.map} +0 -0
  874. /package/dist/core/{p-69d56f17.js.map → p-3bbb77a0.js.map} +0 -0
  875. /package/dist/core/{p-6b42a387.entry.js.map → p-535316b4.entry.js.map} +0 -0
  876. /package/dist/core/{p-91a9cd24.entry.js.map → p-5396935e.entry.js.map} +0 -0
  877. /package/dist/core/{p-42d9924c.js.map → p-56efd4a2.js.map} +0 -0
  878. /package/dist/core/{p-e134b123.entry.js.map → p-5b2131c1.entry.js.map} +0 -0
  879. /package/dist/core/{p-60658ae9.js.map → p-5f1000da.js.map} +0 -0
  880. /package/dist/core/{p-c4c7cb24.entry.js.map → p-7b7e502b.entry.js.map} +0 -0
  881. /package/dist/core/{p-2614044c.js.map → p-7ba4daf4.js.map} +0 -0
  882. /package/dist/core/{p-6aa40794.js.map → p-7f3becc5.js.map} +0 -0
  883. /package/dist/core/{p-e9a6cd71.js.map → p-860520b0.js.map} +0 -0
  884. /package/dist/core/{p-169b67af.js.map → p-a2435993.js.map} +0 -0
  885. /package/dist/core/{p-4bce896c.js.map → p-a521c59a.js.map} +0 -0
  886. /package/dist/core/{p-c990d746.js.map → p-c61a5830.js.map} +0 -0
  887. /package/dist/core/{p-45a30859.js.map → p-e0e2e9c1.js.map} +0 -0
  888. /package/dist/core/{p-052cc573.js.map → p-e44a0fee.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"props-b8a955b2.js","mappings":";;;;AAEA;MACa,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB;IAC5G,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,IAAI,CAAC,OAAO,EAAE;QACbA,qBAAa,CAAC,IAAI,SAAS,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KACtH;AACF;;;;","names":["govWarningLog"],"sources":["../../../packages/core/src/helpers/Validate/props.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\n\n// @TODO: deal with optional values\nexport const validateProp = <T extends Record<string, string>>(valueEnum: T, value: string, component: string): void => {\n\tconst values = Object.values(valueEnum)\n\tconst isValid = values.indexOf(value) > -1\n\tif (!isValid) {\n\t\tgovWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`)\n\t}\n}\n"],"version":3}
1
+ {"file":"props-d189860c.js","mappings":";;;;AAEA;MACa,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB;IAC5G,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,IAAI,CAAC,OAAO,EAAE;QACbA,qBAAa,CAAC,IAAI,SAAS,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KACtH;AACF;;;;","names":["govWarningLog"],"sources":["../../../packages/core/src/helpers/Validate/props.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\n\n// @TODO: deal with optional values\nexport const validateProp = <T extends Record<string, string>>(valueEnum: T, value: string, component: string): void => {\n\tconst values = Object.values(valueEnum)\n\tconst isValid = values.indexOf(value) > -1\n\tif (!isValid) {\n\t\tgovWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`)\n\t}\n}\n"],"version":3}
@@ -17,8 +17,9 @@ function splitByWhitespace(string) {
17
17
  return string.split(/(\s+)/);
18
18
  }
19
19
 
20
+ exports.chr4 = chr4;
20
21
  exports.createID = createID;
21
22
  exports.removeDiacritics = removeDiacritics;
22
23
  exports.splitByWhitespace = splitByWhitespace;
23
24
 
24
- //# sourceMappingURL=string.utils-2335838f.js.map
25
+ //# sourceMappingURL=string.utils-b84c81cf.js.map
@@ -0,0 +1 @@
1
+ {"file":"string.utils-b84c81cf.js","mappings":";;SAAgB,IAAI;IACnB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAC5C,CAAC;SAEe,QAAQ,CAAC,MAAc;IACtC,OAAO,GAAG,MAAM,IAAI,IAAI,EAAE,GAAG,IAAI,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,CAAA;AAChG,CAAC;SAEe,gBAAgB,CAAC,MAAW;IAC3C,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAA;IAC7C,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAA;AAC/D,CAAC;SAEe,iBAAiB,CAAC,MAAW;IAC5C,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAA;IAC7C,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;AAC7B;;;;;;;","names":[],"sources":["../../../packages/core/src/utils/string.utils.ts"],"sourcesContent":["export function chr4(): string {\n\treturn Math.random().toString(16).slice(-4)\n}\n\nexport function createID(prefix: string): string {\n\treturn `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`\n}\n\nexport function removeDiacritics(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '')\n}\n\nexport function splitByWhitespace(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.split(/(\\s+)/)\n}\n"],"version":3}
@@ -8,15 +8,6 @@ const prepareClasses = (classes) => {
8
8
  .join(' ')
9
9
  .trim();
10
10
  };
11
- const slottedChildren = (host) => {
12
- const slotted = host.querySelector('slot');
13
- if (slotted) {
14
- return slotted.assignedNodes().filter(node => {
15
- return node.nodeName !== '#text';
16
- });
17
- }
18
- return [];
19
- };
20
11
  const booleanString = (value) => {
21
12
  return value ? 'true' : 'false';
22
13
  };
@@ -65,15 +56,6 @@ const govHost = (host) => {
65
56
  this.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name));
66
57
  }
67
58
  },
68
- get slottedChildren() {
69
- const slotted = this.hostElement.shadowRoot.querySelector('slot');
70
- if (slotted) {
71
- return slotted.assignedNodes().filter(node => {
72
- return node.nodeName !== '#text';
73
- });
74
- }
75
- return [];
76
- },
77
59
  classes(classes) {
78
60
  const clearClasses = Array.isArray(classes) ? classes.join(' ') : classes;
79
61
  if (this.hostElement) {
@@ -125,9 +107,8 @@ exports.boolToFocusValue = boolToFocusValue;
125
107
  exports.booleanString = booleanString;
126
108
  exports.govHost = govHost;
127
109
  exports.prepareClasses = prepareClasses;
128
- exports.slottedChildren = slottedChildren;
129
110
  exports.toBoolAttr = toBoolAttr;
130
111
  exports.toBoolAttrIfDefined = toBoolAttrIfDefined;
131
112
  exports.toOnOffAttrIfDefined = toOnOffAttrIfDefined;
132
113
 
133
- //# sourceMappingURL=template-b070338f.js.map
114
+ //# sourceMappingURL=template-39939fd6.js.map
@@ -0,0 +1 @@
1
+ {"file":"template-39939fd6.js","mappings":";;MAIa,cAAc,GAAG,CAAC,OAAiB;IAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,KAAK;QAAE,OAAM;IAC5C,OAAO,OAAO;SACZ,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC,SAAS,CAAC;SAChC,IAAI,CAAC,GAAG,CAAC;SACT,IAAI,EAAE,CAAA;AACT,EAAC;MAEY,aAAa,GAAG,CAAC,KAAc;IAC3C,OAAO,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;AAChC,EAAC;MAEY,OAAO,GAAG,CAAC,IAAwB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AAM,GAAG,OAAO,CAAA;KAC/B;SAAM;QACN,OAAO,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;KAC/B;AACF,EAAC;AAEM,MAAM,WAAW,GAAG,CAAC,KAAgC;IAC3D,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC9B,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;KAC3F;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QACrC,OAAO,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;KAC/B;SAAM,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;QACtC,OAAO,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;KAC3B;SAAM;QACN,OAAO,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;KAC3B;AACF,CAAC,CAAA;MAEY,mBAAmB,GAAG,CAAC,KAAmD;IACtF,OAAO,OAAO,KAAK,KAAK,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;AACpE,EAAC;MAEY,oBAAoB,GAAG,CAAC,KAAmD;IACvF,OAAO,OAAO,KAAK,KAAK,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC,CAAA;AACrE,EAAC;MAEY,gBAAgB,GAAG,CAAC,KAAc;IAC9C,OAAO,KAAK,GAAG,GAAG,GAAG,IAAI,CAAA;AAC1B;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/helpers/Dom/template.ts"],"sourcesContent":["import {HTMLStencilElement} from '@stencil/core/internal'\nimport {GovHost} from './template.types'\nimport {Nullable} from '../../types/interfaces'\n\nexport const prepareClasses = (classes: string[]): string => {\n\tif (Array.isArray(classes) === false) return\n\treturn classes\n\t\t.filter(classname => !!classname)\n\t\t.join(' ')\n\t\t.trim()\n}\n\nexport const booleanString = (value: boolean): string => {\n\treturn value ? 'true' : 'false'\n}\n\nexport const govHost = (host: HTMLStencilElement): GovHost => {\n\treturn {\n\t\tget hostElement(): HTMLStencilElement {\n\t\t\treturn host\n\t\t},\n\t\tget name(): string {\n\t\t\treturn this.hostElement.nodeName.toLowerCase()\n\t\t},\n\t\thasSlot(name: string): boolean {\n\t\t\treturn !!this.getSlot(name)\n\t\t},\n\t\tisSlotEmpty(name: string): boolean {\n\t\t\tconst slot = this.getSlot(name)\n\t\t\tif (slot) {\n\t\t\t\treturn slot.childNodes.length === 0\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\tgetSlot(name: string): HTMLElement {\n\t\t\tconst slottedElements = Array.from(this.hostElement.querySelectorAll(`[slot=\"${name}\"]`)) as HTMLElement[];\n\t\t\treturn slottedElements.length > 0 ? slottedElements[0] : null;\n\t\t},\n\t\tgetParent(element): Nullable<HTMLElement> {\n\t\t\treturn this.hostElement.closest(element)\n\t\t},\n\t\tpassChildAttr(selector: string | string[], name: string, value: any): void {\n\t\t\tif (Array.isArray(selector)) {\n\t\t\t\tselector.forEach(selector => {\n\t\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.setAttribute(name, value))\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.setAttribute(name, value))\n\t\t\t}\n\t\t},\n\t\tremoveChildAttr(selector: string | string[], name: string): void {\n\t\t\tif (Array.isArray(selector)) {\n\t\t\t\tselector.forEach(selector => {\n\t\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name))\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name))\n\t\t\t}\n\t\t},\n\t\tclasses(classes: string | string[]): string {\n\t\t\tconst clearClasses = Array.isArray(classes) ? classes.join(' ') : classes\n\t\t\tif (this.hostElement) {\n\t\t\t\treturn this.hostElement.classList.toString() + ' ' + clearClasses\n\t\t\t}\n\t\t\treturn clearClasses\n\t\t},\n\t}\n}\n\nexport const toBoolAttr = (value: boolean | string | number): string => {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1 ? 'true' : 'false'\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0 ? 'true' : 'false'\n\t} else if (typeof value === 'boolean') {\n\t\treturn value ? 'true' : 'false'\n\t} else {\n\t\treturn value ? 'true' : 'false'\n\t}\n}\n\nexport const toOnOffAttr = (value: boolean | string | number): string => {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1', 'On', 'on', 'ON'].indexOf(value) !== -1 ? 'on' : 'off'\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0 ? 'on' : 'off'\n\t} else if (typeof value === 'boolean') {\n\t\treturn value ? 'on' : 'off'\n\t} else {\n\t\treturn value ? 'on' : 'off'\n\t}\n}\n\nexport const toBoolAttrIfDefined = (value: boolean | string | number | undefined | null): undefined | string => {\n\treturn typeof value === 'undefined' ? undefined : toBoolAttr(value)\n}\n\nexport const toOnOffAttrIfDefined = (value: boolean | string | number | undefined | null): undefined | string => {\n\treturn typeof value === 'undefined' ? undefined : toOnOffAttr(value)\n}\n\nexport const boolToFocusValue = (value: boolean): undefined | string => {\n\treturn value ? '0' : '-1'\n}\n"],"version":3}
@@ -1,8 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const gov_log = require('./gov.log-1e8bab6e.js');
4
- const string_utils = require('./string.utils-2335838f.js');
5
- const win = require('./win-587f4614.js');
3
+ const gov_log = require('./gov.log-bfea3151.js');
4
+ const string_utils = require('./string.utils-b84c81cf.js');
6
5
  const helpers_types = require('./helpers.types-ff60c9bd.js');
7
6
 
8
7
  const validateWcagProp = (value, propName, component) => {
@@ -26,7 +25,7 @@ const validateWcagRef = (referenceId, name, component) => {
26
25
  });
27
26
  }
28
27
  return !!strings.filter(referenceId => {
29
- if (win.documentNode().getElementById(referenceId) === null) {
28
+ if (gov_log.documentNode().getElementById(referenceId) === null) {
30
29
  //govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)
31
30
  return false;
32
31
  }
@@ -40,7 +39,7 @@ const validateAccessibleLabel = (label, labelledBy, component, el = undefined) =
40
39
  return true;
41
40
  }
42
41
  if (typeof labelledBy === 'string' && labelledBy.length > 0) {
43
- const labelledByEl = win.documentNode().getElementById(labelledBy);
42
+ const labelledByEl = gov_log.documentNode().getElementById(labelledBy);
44
43
  if (labelledByEl) {
45
44
  return true;
46
45
  }
@@ -53,4 +52,4 @@ exports.validateAccessibleLabel = validateAccessibleLabel;
53
52
  exports.validateWcagProp = validateWcagProp;
54
53
  exports.validateWcagRef = validateWcagRef;
55
54
 
56
- //# sourceMappingURL=wcag-31089f70.js.map
55
+ //# sourceMappingURL=wcag-2927ff73.js.map
@@ -0,0 +1 @@
1
+ {"file":"wcag-2927ff73.js","mappings":";;;;;;MAKa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;IAC9F,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACtDA,qBAAa,CAAC,IAAI,SAAS,WAAW,QAAQ,qDAAqD,CAAC,CAAA;KACpG;AACF,EAAC;MAEY,eAAe,GAAG,CAAC,WAAmB,EAAE,IAAY,EAAE,SAAiB;IACnF,IAAI,OAAO,WAAW,KAAK,WAAW,IAAI,WAAW,KAAK,SAAS,EAAE;QACpE,OAAO,IAAI,CAAA;KACX;IACD,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACrCA,qBAAa,CAAC,IAAI,SAAS,iBAAiB,IAAI,mCAAmC,CAAC,CAAA;QACpF,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,MAAM,YAAY,GAAGC,8BAAiB,CAAC,WAAW,CAAC,CAAA;IACnD,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAChC,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;YACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAA;SAC1B,CAAC,CAAA;KACF;IAED,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW;QAClC,IAAIC,oBAAY,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE;;YAExD,OAAO,KAAK,CAAA;SACZ;aAAM;YACN,OAAO,IAAI,CAAA;SACX;KACD,CAAC,CAAC,MAAM,CAAA;AACV,EAAC;MAcY,uBAAuB,GAAG,CAAC,KAAyB,EAAE,UAA8B,EAAE,SAAiB,EAAE,KAAkB,SAAS;IAChJ,IAAIC,sBAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACxC,OAAO,IAAI,CAAA;KACX;IACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QAC5D,MAAM,YAAY,GAAGD,oBAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;QAC9D,IAAI,YAAY,EAAE;YACjB,OAAO,IAAI,CAAA;SACX;KACD;IACDF,qBAAa,CAAC,IAAI,SAAS,wEAAwE,EAAE,EAAE,CAAC,CAAA;IACxG,OAAO,KAAK,CAAA;AACb;;;;;;","names":["govWarningLog","splitByWhitespace","documentNode","isString"],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import {govWarningLog} from '../Log/gov.log'\nimport {splitByWhitespace} from '../../utils/string.utils'\nimport {documentNode} from '../Dom/win'\nimport {isString} from \"../../utils/helpers.types\";\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateAccessibleLabel = (label: string | undefined, labelledBy: string | undefined, component: string, el: HTMLElement = undefined): boolean => {\n\tif (isString(label) && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined aria-label or aria-labelledby attribute.`, el)\n\treturn false\n}\n"],"version":3}
@@ -2,7 +2,6 @@
2
2
  "entries": [
3
3
  "components/gov-accordion/gov-accordion-item.js",
4
4
  "components/gov-accordion/gov-accordion.js",
5
- "components/gov-app/gov-app.js",
6
5
  "components/gov-attachments/gov-attachments-item.js",
7
6
  "components/gov-attachments/gov-attachments.js",
8
7
  "components/gov-backdrop/gov-backdrop.js",
@@ -17,6 +16,7 @@
17
16
  "components/gov-dialog/gov-dialog.js",
18
17
  "components/gov-empty/gov-empty.js",
19
18
  "components/gov-error-code/gov-error-code.js",
19
+ "components/gov-flex/gov-flex.js",
20
20
  "components/gov-form/autocomplete/gov-form-autocomplete.js",
21
21
  "components/gov-form/checkbox/gov-form-checkbox.js",
22
22
  "components/gov-form/control/gov-form-control.js",
@@ -39,6 +39,8 @@
39
39
  "components/gov-infobar/gov-infobar.js",
40
40
  "components/gov-layout/gov-layout-column.js",
41
41
  "components/gov-layout/gov-layout.js",
42
+ "components/gov-lifecycle-tester/gov-lifecycle-tester.js",
43
+ "components/gov-link/gov-link.js",
42
44
  "components/gov-loading/loading/gov-loading.js",
43
45
  "components/gov-loading/skeleton/gov-skeleton.js",
44
46
  "components/gov-message/gov-message.js",
@@ -3,6 +3,7 @@ import { validateProp } from "../../helpers/Validate/props";
3
3
  import { AccordionClass, AccordionItemClass, AccordionSizes, } from "./constants";
4
4
  import { booleanString, govHost, toBoolAttrIfDefined } from "../../helpers/Dom/template";
5
5
  import { inheritAriaAttributes } from "../../helpers/Accessibility/accessibility";
6
+ import { tick } from "../../utils/stencil.utils";
6
7
  export class GovAccordionItem {
7
8
  constructor() {
8
9
  this.inheritedAttributes = {};
@@ -17,10 +18,12 @@ export class GovAccordionItem {
17
18
  validateProp(AccordionSizes, newValue, AccordionItemClass.root);
18
19
  }
19
20
  componentWillLoad() {
20
- this.getPropsFromParents();
21
21
  this.validateSize(this.size);
22
22
  this.inheritedAttributes = inheritAriaAttributes(this.host);
23
23
  }
24
+ componentDidRender() {
25
+ tick(() => this.getPropsFromParents());
26
+ }
24
27
  getPropsFromParents() {
25
28
  const accordion = this.h.getParent(AccordionClass.root);
26
29
  if (accordion) {
@@ -28,13 +31,13 @@ export class GovAccordionItem {
28
31
  }
29
32
  }
30
33
  render() {
31
- return (h(Host, { key: 'cd78429326c306d9ab9fdc15954cd7029aa3ee35', class: this.h.classes([AccordionItemClass.root,
32
- this.disabled && AccordionItemClass.disabled]), size: this.size, role: "listitem" }, h("details", { key: '5372c71057418b93711f7d2c6065a6cc669105ff', class: AccordionItemClass.details, id: this.identifier, "aria-disabled": toBoolAttrIfDefined(this.disabled), open: this.open }, h("summary", Object.assign({ key: 'a2e06472048b79b206dc4421e43f0afd877b9be6', onClick: (e) => {
34
+ return (h(Host, { key: '1beb62527ea9274e6280ce0b64c9d52c12e4a993', class: this.h.classes([AccordionItemClass.root,
35
+ this.disabled && AccordionItemClass.disabled]), size: this.size, role: "listitem" }, h("details", { key: '53ca7688e8f26e85cd76feb073a26d04c5505d2b', class: AccordionItemClass.details, id: this.identifier, "aria-disabled": toBoolAttrIfDefined(this.disabled), open: this.open }, h("summary", Object.assign({ key: '19fec49b0066b7a6162a6010e0ee20431c2a578b', onClick: (e) => {
33
36
  e.stopPropagation();
34
37
  e.preventDefault();
35
38
  !this.disabled && this.toggle().finally();
36
39
  }, class: AccordionItemClass.summary, tabIndex: this.disabled ? -1 : 0, "aria-expanded": booleanString(this.open) }, this.inheritedAttributes), this.h.hasSlot('icon') &&
37
- h("span", { key: 'a2e6529d090c59ef45c8f7dbfd452165eebdf6e5', class: AccordionItemClass.icon }, h("slot", { key: 'ec572df22db3551aeb1baa31077d2bb368db88ca', name: "icon" })), h("span", { key: '44451f5e8df2550217af485162015a0810b2735e', class: AccordionItemClass.title }, h("slot", { key: '7f1c09f9537fe337a95e67b6f0c90c9c00ca00c1', name: "label" }), h("slot", { key: '84d426afff5847ffe57a96c12c163219a8720872', name: "annotation" })), h("span", { key: 'c4e37d6e8726486a043dd1def487d14e9678585b', class: AccordionItemClass.right }, h("slot", { key: 'b29e5714737ce05b8d194ce693dc4729e6b0e8a0', name: "suffix" }), h("span", { key: '1bd99c3f807ebc20ba4545d1c09325ce5b940d1a', class: AccordionItemClass.arrow }, h("slot", { key: 'ec2f902bccb6f21701238b822d72e7b2819c20c3', name: "toggle-icon" }, h("gov-icon", { key: 'ab143aace36d062bfb6e78c2f3544a0efb52cb49', name: "chevron-down" }))))), h("div", { key: '253f1a692a13698306d2f2f1b050252b7a798886', class: AccordionItemClass.content }, h("slot", { key: 'f51877b9d3f58f29bced6949b170529ddbf45864' })))));
40
+ h("span", { key: '19254947c22fa2b1a2fa4e26eacb22c0c89b40c9', class: AccordionItemClass.icon }, h("slot", { key: '262be1640f250fabf9918f4162c071bb68dc4fb3', name: "icon" })), h("span", { key: 'ebb5ef762ef51921b68a8063fd09c979d7d0d32d', class: AccordionItemClass.title }, h("slot", { key: '75783345d2276f06e53c401761cb4e57d241e5e0', name: "label" }), h("slot", { key: 'f2d9cdff693edbcae6293921fde7996d1b1251b6', name: "annotation" })), h("span", { key: 'f7e28ea54455756c7d146c7b88be7001e80b07a8', class: AccordionItemClass.right }, h("slot", { key: 'e76b31bf1c349a8a86d4b91ec1cfa650a75edf60', name: "suffix" }), h("span", { key: '87ea99c9862deb3ff9820fa383cec52956b4655a', class: AccordionItemClass.arrow }, h("slot", { key: 'c8b64a90455a731f359e12550664ba5aa905abbc', name: "toggle-icon" }, h("gov-icon", { key: '867406c5634d6446683529f5f647492b9b289a31', name: "chevron-down", type: "components" }))))), h("div", { key: '2adf7441dd470ae1b32a08fb374cd1d9e2d1f789', class: AccordionItemClass.content }, h("slot", { key: '8eb27d0b33689933b6e71850324c35c89d71c4c0' })))));
38
41
  }
39
42
  /**
40
43
  * Accordion switch
@@ -75,7 +78,7 @@ export class GovAccordionItem {
75
78
  },
76
79
  "size": {
77
80
  "type": "string",
78
- "mutable": false,
81
+ "mutable": true,
79
82
  "complexType": {
80
83
  "original": "AccordionSizeType",
81
84
  "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
@@ -1 +1 @@
1
- {"version":3,"file":"gov-accordion-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-accordion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I,EAAC,cAAc,GAAY,CACnC,CACD,CACD,CACE;gBACV,4DAAK,KAAK,EAAE,kBAAkB,CAAC,OAAO;oBACrC,8DAAO,CACF,CACG,CACJ,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,kBAAkB,CAAC,IAAI;YAClC,GAAG,EAAE,IAAI,CAAC,IAAI;SACd,CAAC,CAAA;IACH,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,IAAI,CAAA;IACjB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {AccordionClass, AccordionItemClass, AccordionSizes, AccordionSizeType,} from \"./constants\"\nimport {booleanString, govHost, toBoolAttrIfDefined} from \"../../helpers/Dom/template\"\nimport {AccordionItemEvent} from \"./gov-accordion.types\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\n\n@Component({\n\ttag: \"gov-accordion-item\",\n})\nexport class GovAccordionItem {\n\tprivate h: GovHost\n\tprivate inheritedAttributes: Attributes = {};\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAccordionItemElement\n\t@State() openState: boolean\n\n\t/**\n\t * Custom accordion item identifier.\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Accordion’s size.\n\t */\n\t@Prop() size?: AccordionSizeType\n\t/**\n\t * Makes the button component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({attribute: \"open\", mutable: true}) open = false\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<AccordionItemEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(AccordionSizes, newValue, AccordionItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.getPropsFromParents()\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tprivate getPropsFromParents() {\n\t\tconst accordion = this.h.getParent(AccordionClass.root)\n\t\tif (accordion) {\n\t\t\tthis.size = accordion.getAttribute(\"size\") as AccordionSizeType\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([AccordionItemClass.root,\n\t\t\t\tthis.disabled && AccordionItemClass.disabled])}\n\t\t\t\t size={this.size}\n\t\t\t\t role=\"listitem\">\n\t\t\t\t<details\n\t\t\t\t\tclass={AccordionItemClass.details}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\topen={this.open}\n\t\t\t\t>\n\t\t\t\t\t<summary\n\t\t\t\t\t\tonClick={(e: Event) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t!this.disabled && this.toggle().finally()\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tclass={AccordionItemClass.summary}\n\t\t\t\t\t\ttabIndex={this.disabled ? -1 : 0}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.h.hasSlot('icon') &&\n\t\t\t\t\t\t\t<span class={AccordionItemClass.icon}>\n\t\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t<span class={AccordionItemClass.title}>\n\t\t\t\t\t\t\t<slot name=\"label\"/>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t<span class={AccordionItemClass.right}>\n\t\t\t\t\t\t\t<slot name=\"suffix\"/>\n\t\t\t\t\t\t\t<span class={AccordionItemClass.arrow}>\n\t\t\t\t\t\t\t\t<slot name=\"toggle-icon\">\n\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-down\"></gov-icon>\n\t\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</summary>\n\t\t\t\t\t<div class={AccordionItemClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\t\t\t\t</details>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Accordion switch\n\t */\n\t@Method()\n\tasync toggle(): Promise<void> {\n\t\tthis.open = !this.open\n\t\tthis.govChange.emit({\n\t\t\topen: this.open,\n\t\t\tcomponent: AccordionItemClass.root,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync currentState(): Promise<boolean> {\n\t\treturn this.open\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-accordion-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-accordion/gov-accordion-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAA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E;gBACV,4DAAK,KAAK,EAAE,kBAAkB,CAAC,OAAO;oBACrC,8DAAO,CACF,CACG,CACJ,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,kBAAkB,CAAC,IAAI;YAClC,GAAG,EAAE,IAAI,CAAC,IAAI;SACd,CAAC,CAAA;IACH,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,IAAI,CAAA;IACjB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {AccordionClass, AccordionItemClass, AccordionSizes, AccordionSizeType,} from \"./constants\"\nimport {booleanString, govHost, toBoolAttrIfDefined} from \"../../helpers/Dom/template\"\nimport {AccordionItemEvent} from \"./gov-accordion.types\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: \"gov-accordion-item\",\n})\nexport class GovAccordionItem {\n\tprivate h: GovHost\n\tprivate inheritedAttributes: Attributes = {};\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAccordionItemElement\n\t@State() openState: boolean\n\n\t/**\n\t * Custom accordion item identifier.\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Accordion’s size.\n\t */\n\t@Prop({ mutable: true }) size?: AccordionSizeType\n\t/**\n\t * Makes the button component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({attribute: \"open\", mutable: true}) open = false\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<AccordionItemEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(AccordionSizes, newValue, AccordionItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.getPropsFromParents())\n\t}\n\n\tprivate getPropsFromParents() {\n\t\tconst accordion = this.h.getParent(AccordionClass.root)\n\t\tif (accordion) {\n\t\t\tthis.size = accordion.getAttribute(\"size\") as AccordionSizeType\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([AccordionItemClass.root,\n\t\t\t\tthis.disabled && AccordionItemClass.disabled])}\n\t\t\t\t size={this.size}\n\t\t\t\t role=\"listitem\">\n\t\t\t\t<details\n\t\t\t\t\tclass={AccordionItemClass.details}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\topen={this.open}\n\t\t\t\t>\n\t\t\t\t\t<summary\n\t\t\t\t\t\tonClick={(e: Event) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t!this.disabled && this.toggle().finally()\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tclass={AccordionItemClass.summary}\n\t\t\t\t\t\ttabIndex={this.disabled ? -1 : 0}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.h.hasSlot('icon') &&\n\t\t\t\t\t\t\t<span class={AccordionItemClass.icon}>\n\t\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t<span class={AccordionItemClass.title}>\n\t\t\t\t\t\t\t<slot name=\"label\"/>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t<span class={AccordionItemClass.right}>\n\t\t\t\t\t\t\t<slot name=\"suffix\"/>\n\t\t\t\t\t\t\t<span class={AccordionItemClass.arrow}>\n\t\t\t\t\t\t\t\t<slot name=\"toggle-icon\">\n\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</summary>\n\t\t\t\t\t<div class={AccordionItemClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\t\t\t\t</details>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Accordion switch\n\t */\n\t@Method()\n\tasync toggle(): Promise<void> {\n\t\tthis.open = !this.open\n\t\tthis.govChange.emit({\n\t\t\topen: this.open,\n\t\t\tcomponent: AccordionItemClass.root,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync currentState(): Promise<boolean> {\n\t\treturn this.open\n\t}\n}\n"]}
@@ -10,42 +10,13 @@
10
10
  /* stylelint-enable order/order */
11
11
  /* stylelint-disable order/order */
12
12
  /* stylelint-enable order/order */
13
- /* Variables - breakpoints */ /* Variables - Colors */ /* Variables - Sizes */ /* Variables - General */ /* Variables - Typography */ /* Variables - Container */ /* Variables - Forms */ /* Variables - shadows */ /* Variables - z-index */ /* stylelint-disable order/order */
14
- /* stylelint-enable order/order */
15
- .gov-spin-animation,
16
- .gov-pseudo-spin-animation::before {
17
- animation: spin 4s linear infinite;
13
+ /* Variables - breakpoints */ /* Variables - Colors */ /* Variables - Sizes */ /* Variables - General */
14
+ :root {
15
+ --roboto: Roboto, sans-serif;
18
16
  }
19
17
 
20
- @keyframes spin {
21
- 100% {
22
- transform: rotate(360deg);
23
- }
24
- }
25
- @keyframes countdown {
26
- to {
27
- transform: scaleX(0);
28
- }
29
- }
30
- @keyframes progress {
31
- 0% {
32
- background-position: -200px 0;
33
- }
34
- 100% {
35
- background-position: calc(200px + 100%) 0;
36
- }
37
- }
38
- @keyframes pulse {
39
- 0% {
40
- opacity: 1;
41
- }
42
- 50% {
43
- opacity: 0.4;
44
- }
45
- 100% {
46
- opacity: 1;
47
- }
48
- }
18
+ /* Variables - Typography */ /* Variables - Container */ /* Variables - Forms */ /* Variables - shadows */ /* Variables - z-index */ /* stylelint-disable order/order */
19
+ /* stylelint-enable order/order */
49
20
  /* Attachments - Item */
50
21
  gov-attachments-item, .gov-attachments-item {
51
22
  /* Variables - Attachments */
@@ -55,7 +26,7 @@ gov-attachments-item, .gov-attachments-item {
55
26
  gap: var(--spacing-s);
56
27
  }
57
28
  gov-attachments-item__messages > *:last-child, .gov-attachments-item__messages > *:last-child {
58
- margin-bottom: 0;
29
+ margin-bottom: 0 !important;
59
30
  }
60
31
  gov-attachments-item__file, .gov-attachments-item__file {
61
32
  display: flex;
@@ -17,7 +17,7 @@ export class GovAttachmentsItem {
17
17
  }
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: 'f7878b14f668e2a1b23368dfcdea2e65e5de13b6', class: this.h.classes(AttachmentsItemClass.root), role: "listitem" }, h("div", { key: '4aaa01614a40507bc74d524756be66aac0632a4f', class: AttachmentsItemClass.file }, h("p", { key: '26eb87dd09942ee1d9bbf4bb13a76b4cb0240902', class: AttachmentsItemClass.name }, h("slot", { key: '5d4b3f690907e557526c9c22c88705a7e9ee3ef7' }), h("slot", { key: '1eff0d73e720ce22936a0004c476c3e01cbd88e1', name: "info" })), h("gov-button", { key: 'e2395e9c5139093e01bd48b14221643394a22c6c', color: "primary", type: "base", size: "s", "accessible-label": this.accessibleRemoveLabel, "accessible-labelledby": this.accessibleRemoveLabelledBy, "on-gov-click": this.govRemove.emit }, h("gov-icon", { key: 'c592f72a09dfce70c0cd2563ec0d781cc65ad77c', slot: "left-icon", name: "x-lg" }))), this.h.hasSlot('message') && (h("div", { key: '0bffbbe4622f291fd269637a4b4ff8c624fb04f7', class: AttachmentsItemClass.messages }, h("slot", { key: '2e6ad7d812e9b68f5c0e88ca734bf0bba78924a2', name: "message" })))));
20
+ return (h(Host, { key: 'a8fffc03fb890c1aaae5a1d63240747f5fcb013e', class: this.h.classes(AttachmentsItemClass.root), role: "listitem" }, h("div", { key: '0aa555d1c5b3bdf089cf020db1271e40389522f9', class: AttachmentsItemClass.file }, h("p", { key: '46014b9e9d9a46fea6f813ef271815be6ab6dfc4', class: AttachmentsItemClass.name }, h("slot", { key: '806f9dc2b2ee44248f7fe613e8362d92ed938ba8' }), h("slot", { key: '97d69e72afd5063f41ea7b41e50012893ee5027c', name: "info" })), h("gov-button", { key: '6c40ff9ae6be99cde30fde276db287a3d14dccd1', color: "primary", type: "base", size: "s", "aria-label": this.accessibleRemoveLabel, "aria-labelledby": this.accessibleRemoveLabelledBy, "on-gov-click": this.govRemove.emit }, h("gov-icon", { key: '24871273b10ca807811acd15dabb49c6a45d76d1', slot: "icon-start", name: "x-lg", type: "components" }))), this.h.hasSlot('message') && (h("div", { key: '7683c6c6bfd1ca4b9660ee56ec190472970d0ac8', class: AttachmentsItemClass.messages }, h("slot", { key: '20b46c868809d19f9c67105a4c4774df9688a2c1', name: "message" })))));
21
21
  }
22
22
  /**
23
23
  * Validate the accessible attributes of the component
@@ -1 +1 @@
1
- {"version":3,"file":"gov-attachments-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-attachments/gov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C,CACR;YAEL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAC7B,4DAAK,KAAK,EAAE,oBAAoB,CAAC,QAAQ;gBACxC,6DAAM,IAAI,EAAC,SAAS,GAAE,CACjB,CACN,CACK,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3H,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {AttachmentsItemClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments-item',\n\tstyleUrl: 'gov-attachments-item.scss',\n})\nexport class GovAttachmentsItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsItemElement\n\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-remove-label'}) readonly accessibleRemoveLabel: string\n\t/**\n\t * Indicates the id of a component that labels the remove button.\n\t */\n\t@Prop({attribute: 'accessible-remove-labelledby'}) readonly accessibleRemoveLabelledBy: string\n\t/**\n\t * Emitted when the file is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<PointerEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsItemClass.root)} role=\"listitem\">\n\t\t\t\t<div class={AttachmentsItemClass.file}>\n\t\t\t\t\t<p class={AttachmentsItemClass.name}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t<slot name=\"info\"/>\n\t\t\t\t\t</p>\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\taccessible-label={this.accessibleRemoveLabel}\n\t\t\t\t\t\taccessible-labelledby={this.accessibleRemoveLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.govRemove.emit}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon slot=\"left-icon\" name=\"x-lg\"></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('message') && (\n\t\t\t\t\t<div class={AttachmentsItemClass.messages}>\n\t\t\t\t\t\t<slot name=\"message\"/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleRemoveLabel, this.accessibleRemoveLabelledBy, AttachmentsItemClass.root, this.host)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-attachments-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-attachments/gov-attachments-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC5F,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAA;AAChD,OAAO,EAAC,uBAAuB,E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AEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3H,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {AttachmentsItemClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments-item',\n\tstyleUrl: 'gov-attachments-item.scss',\n})\nexport class GovAttachmentsItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsItemElement\n\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-remove-label'}) readonly accessibleRemoveLabel: string\n\t/**\n\t * Indicates the id of a component that labels the remove button.\n\t */\n\t@Prop({attribute: 'accessible-remove-labelledby'}) readonly accessibleRemoveLabelledBy: string\n\t/**\n\t * Emitted when the file is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<PointerEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsItemClass.root)} role=\"listitem\">\n\t\t\t\t<div class={AttachmentsItemClass.file}>\n\t\t\t\t\t<p class={AttachmentsItemClass.name}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t<slot name=\"info\"/>\n\t\t\t\t\t</p>\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleRemoveLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleRemoveLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.govRemove.emit}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon slot=\"icon-start\" name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('message') && (\n\t\t\t\t\t<div class={AttachmentsItemClass.messages}>\n\t\t\t\t\t\t<slot name=\"message\"/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleRemoveLabel, this.accessibleRemoveLabelledBy, AttachmentsItemClass.root, this.host)\n\t}\n}\n"]}
@@ -17,7 +17,7 @@ export class GovAttachments {
17
17
  }
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: 'd2b3c1f40f3c5eab7b179c68985d23ed776e9337', class: this.h.classes(AttachmentsClass.root) }, this.label ? h("p", { class: AttachmentsClass.label }, this.label) : null, h("div", { key: 'bbceab5ca1b5443eb7aa8074c2f788fe0e3e7090', class: AttachmentsClass.list, role: "list", "aria-label": this.wcagLabel }, h("slot", { key: '6d1a9999824cdc35e28543d80518855057cf99ce' }))));
20
+ return (h(Host, { key: '01d6046e8da3b76924fa9c3124cec31e5b81d4c5', class: this.h.classes(AttachmentsClass.root) }, this.label ? h("p", { class: AttachmentsClass.label }, this.label) : null, h("div", { key: '88936d984563a5815b90cba8b1b5ee0f71ee3460', class: AttachmentsClass.list, role: "list", "aria-label": this.wcagLabel }, h("slot", { key: '99c6427772c71388f027595a1fdf13ed4956a474' }))));
21
21
  }
22
22
  /**
23
23
  * Validate the WCAG attributes of the component
@@ -18,7 +18,7 @@ export class GovBackdrop {
18
18
  }
19
19
  }
20
20
  render() {
21
- return (h(Host, { key: 'c3a04193bcb6bf07904885794068d15723012177', class: this.h.classes(BackdropClass.root), inverse: this.inverse }, h("div", { key: '722ab2c0f3b9e64e5790f51540f44252a1b3e4e4', role: 'button', "aria-disabled": this.disabled, "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, onClick: e => {
21
+ return (h(Host, { key: 'ee25a6a3443604253f1fa10676007aad3838f4d9', class: this.h.classes(BackdropClass.root), inverse: this.inverse }, h("div", { key: 'fd733ec0c2f6599ce7fe360092990f4c7f0973a1', role: 'button', "aria-disabled": this.disabled, "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, onClick: e => {
22
22
  if (!this.disabled) {
23
23
  this.govClick.emit(e);
24
24
  }
@@ -40,7 +40,7 @@ export class GovBreadcrumbs {
40
40
  this.toggleOption = sumOfWidths > hostWidth;
41
41
  }
42
42
  render() {
43
- return (h(Host, { key: '645442a9bf54f216c22b40eab292987d7a5c4229', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, h("nav", { key: '3404e135545ad9ab7895522f0db318fff722ff33', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, h("slot", { key: 'b9b33750baeece46453a810cb60c3f267029ea30' })), this.toggleOption ? (h("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, h("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down' }))) : null));
43
+ return (h(Host, { key: '81d7a8e273e1ce4740ee35ebe4a570ee8c5e73a4', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, h("nav", { key: 'dc37fa314f5d84c6c517f64229ef601b256f3ad5', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, h("slot", { key: '4ead548352e642c0994360d74a98123782790a04' })), this.toggleOption ? (h("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, h("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down', type: "components" }))) : null));
44
44
  }
45
45
  /**
46
46
  * Validate the WCAG attributes of the component
@@ -1 +1 @@
1
- {"version":3,"file":"gov-breadcrumbs.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/gov-breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAC,IAAI,EAAC,MAAM,2BAA2B,CAAC;AAK/C,MAAM,OAAO,cAAc;IAI1B;QAHQ,WAAM,GAAG,KAAK,CAAC;2BAWiB,KAAK;0BAIoB,KAAK;;;qCAYiB,4BAA4B;wBAM/F,KAAK;4BACD,KAAK;QA9B5B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA+BD,KAAK,CAAC,kBAAkB;QACvB,IAAI,CAAC,2BAA2B,EAAE,CAAA;QAClC,IAAI,uBAAuB,EAAE,EAAE,CAAC;YAC/B,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,qBAAqB,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AAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,GAAa,CAC9D,CACb,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAA;IACF,CAAC;IAGD;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1G,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,SAAS,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACjG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State} from '@stencil/core'\nimport {BreadcrumbsClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {GovBreadcrumbsChangeEvent} from './gov-breadcrumbs.d'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: 'gov-breadcrumbs',\n})\nexport class GovBreadcrumbs {\n\tprivate inited = false;\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovBreadcrumbsElement\n\t/**\n\t * Defines whether the components can be collapsible when element doesn't fit in one row.\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the breadcrumbs are open or closed by button\n\t */\n\t@Prop({attribute: 'is-expanded'}) readonly isExpanded: boolean = false\n\t/**\n\t * Adds accessible label for the pagination that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) readonly accessibleLabel: string\n\t/**\n\t * Indicates the id of a component that labels the pagination.\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) readonly accessibleLabelledBy: string\n\t/**\n\t * Adds an accessible label to display the full breadcrumb navigation that only screen readers can see.\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit či skrýt navigaci'\n\t/**\n\t * Called when the Breadcrumbs state changes\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<GovBreadcrumbsChangeEvent>\n\n\t@State() expanded = false;\n\t@State() toggleOption = false;\n\n\tasync componentDidRender() {\n\t\tthis.scheduleContentVerification()\n\t\tif (canValidateWcagOnRender()) {\n\t\t\ttick(() => this.validateAccessibility())\n\t\t}\n\t}\n\n\tprivate scheduleContentVerification() {\n\t\tif (this.inited) return;\n\t\tthis.inited = true;\n\t\ttick(() => {\n\t\t\tthis.calculateWidthOfItems();\n\t\t\tthis.inited = false;\n\t\t});\n\t}\n\n\tprivate calculateWidthOfItems() {\n\t\tconst hostWidth = this.host.getBoundingClientRect().width;\n\t\tlet sumOfWidths = 0;\n\t\tthis.host.querySelectorAll('li').forEach((li) => {\n\t\t\tsumOfWidths += li.getBoundingClientRect().width\n\t\t})\n\t\tthis.toggleOption = sumOfWidths > hostWidth;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BreadcrumbsClass.root)} expanded={this.expanded}>\n\t\t\t\t<nav aria-label={this.accessibleLabel} aria-labelledby={this.accessibleLabelledBy}>\n\t\t\t\t\t<slot/>\n\t\t\t\t</nav>\n\t\t\t\t{this.toggleOption ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tsize={'xs'}\n\t\t\t\t\t\tcolor={'primary'}\n\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\taria-pressed={this.expanded}\n\t\t\t\t\t\taria-expanded={this.expanded}\n\t\t\t\t\t\ton-gov-click={() => this.expanded = !this.expanded}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon name={this.expanded ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BreadcrumbsClass.root, this.host)\n\t\tvalidateAccessibleLabel(this.accessibleToggleLabel, undefined, BreadcrumbsClass.root, this.host)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-breadcrumbs.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/gov-breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAC,IAAI,EAAC,MAAM,2BAA2B,CAAC;AAK/C,MAAM,OAAO,cAAc;IAI1B;QAHQ,WAAM,GAAG,KAAK,CAAC;2BAWiB,KAAK;0BAIoB,KAAK;;;qCAYiB,4BAA4B;wBAM/F,KAAK;4BACD,KAAK;QA9B5B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA+BD,KAAK,CAAC,kBAAkB;QACvB,IAAI,CAAC,2BAA2B,EAAE,CAAA;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AAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ;gBAElD,gBAAU,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EAAE,IAAI,EAAC,YAAY,GAAY,CAChF,CACb,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAA;IACF,CAAC;IAGD;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1G,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,SAAS,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACjG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State} from '@stencil/core'\nimport {BreadcrumbsClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {GovBreadcrumbsChangeEvent} from './gov-breadcrumbs.d'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: 'gov-breadcrumbs',\n})\nexport class GovBreadcrumbs {\n\tprivate inited = false;\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovBreadcrumbsElement\n\t/**\n\t * Defines whether the components can be collapsible when element doesn't fit in one row.\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the breadcrumbs are open or closed by button\n\t */\n\t@Prop({attribute: 'is-expanded'}) readonly isExpanded: boolean = false\n\t/**\n\t * Adds accessible label for the pagination that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) readonly accessibleLabel: string\n\t/**\n\t * Indicates the id of a component that labels the pagination.\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) readonly accessibleLabelledBy: string\n\t/**\n\t * Adds an accessible label to display the full breadcrumb navigation that only screen readers can see.\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit či skrýt navigaci'\n\t/**\n\t * Called when the Breadcrumbs state changes\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<GovBreadcrumbsChangeEvent>\n\n\t@State() expanded = false;\n\t@State() toggleOption = false;\n\n\tasync componentDidRender() {\n\t\tthis.scheduleContentVerification()\n\t\tif (canValidateWcagOnRender()) {\n\t\t\ttick(() => this.validateAccessibility())\n\t\t}\n\t}\n\n\tprivate scheduleContentVerification() {\n\t\tif (this.inited) return;\n\t\tthis.inited = true;\n\t\ttick(() => {\n\t\t\tthis.calculateWidthOfItems();\n\t\t\tthis.inited = false;\n\t\t});\n\t}\n\n\tprivate calculateWidthOfItems() {\n\t\tconst hostWidth = this.host.getBoundingClientRect().width;\n\t\tlet sumOfWidths = 0;\n\t\tthis.host.querySelectorAll('li').forEach((li) => {\n\t\t\tsumOfWidths += li.getBoundingClientRect().width\n\t\t})\n\t\tthis.toggleOption = sumOfWidths > hostWidth;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BreadcrumbsClass.root)} expanded={this.expanded}>\n\t\t\t\t<nav aria-label={this.accessibleLabel} aria-labelledby={this.accessibleLabelledBy}>\n\t\t\t\t\t<slot/>\n\t\t\t\t</nav>\n\t\t\t\t{this.toggleOption ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tsize={'xs'}\n\t\t\t\t\t\tcolor={'primary'}\n\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\taria-pressed={this.expanded}\n\t\t\t\t\t\taria-expanded={this.expanded}\n\t\t\t\t\t\ton-gov-click={() => this.expanded = !this.expanded}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon name={this.expanded ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BreadcrumbsClass.root, this.host)\n\t\tvalidateAccessibleLabel(this.accessibleToggleLabel, undefined, BreadcrumbsClass.root, this.host)\n\t}\n}\n"]}
@@ -81,9 +81,9 @@ export class GovButton {
81
81
  render() {
82
82
  const Tag = this.href ? Tags.A : Tags.BUTTON;
83
83
  const nativeType = Tag === Tags.A ? undefined : this.nativeType;
84
- return (h(Host, { key: '2bb50646642155813d3b424d93abe66e402980fc', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(ButtonClass.root), type: this.type }, h(Tag, Object.assign({ key: '9eb0aef9aad90c4d8b36c98713f8b4368ec3ea60', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : "0" }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("right-icon") &&
85
- h("gov-icon", { key: '32e8ad524e440068871b84a7cfe0a297d729cdb1', name: "loader", class: "gov-spin-animation" }), this.h.hasSlot("left-icon") && h("slot", { key: '9cb9034730ff04ec4ecb17c7ab75618368074b5c', name: "left-icon" }), h("slot", { key: 'ba5a094a07caa393510f956f5797b73f4811d0a9' }), this.h.hasSlot("right-icon") && h("slot", { key: '4b62acb8f9c327c21ccd500688a1e0effa7bbfa8', name: "right-icon" }), toBool(this.loading) && this.h.hasSlot("right-icon") &&
86
- h("gov-icon", { key: '25f567c70ee5e4a89c37747fa17df87d9a4e6fb2', name: "loader", class: "gov-spin-animation" }))));
84
+ return (h(Host, { key: '4e5ef3fbf897b81b07452a9383985353d673fdd6', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(ButtonClass.root), type: this.type }, h(Tag, Object.assign({ key: 'd0689b6c773257059fa9334d4bb1d003a0ec58c3', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : "0" }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("icon-end") &&
85
+ h("gov-icon", { key: '16a969ee29897508924e61d70b40589d0410f649', name: "loader", class: "gov-spin-animation", type: "components" }), this.h.hasSlot("icon-start") && h("slot", { key: '7d208cc950fedd5b6bbf376152a0c641d8885846', name: "icon-start" }), h("slot", { key: '7c43309c657363dbcc1df14ae3c21d977ec3eb20' }), this.h.hasSlot("icon-end") && h("slot", { key: 'd90b7831900331fe8482757f33847295207f73d2', name: "icon-end" }), toBool(this.loading) && this.h.hasSlot("icon-end") &&
86
+ h("gov-icon", { key: 'd23e2000e5bf5b78a81e78d6c3e30aa0e1f3f42c', name: "loader", class: "gov-spin-animation", type: "components" }))));
87
87
  }
88
88
  onClickHandler(e) {
89
89
  e.stopPropagation();
@@ -556,23 +556,23 @@ export class GovButton {
556
556
  },
557
557
  "getRef": {
558
558
  "complexType": {
559
- "signature": "() => Promise<HTMLLinkElement | HTMLButtonElement>",
559
+ "signature": "() => Promise<HTMLButtonElement | HTMLLinkElement>",
560
560
  "parameters": [],
561
561
  "references": {
562
562
  "Promise": {
563
563
  "location": "global",
564
564
  "id": "global::Promise"
565
565
  },
566
- "HTMLLinkElement": {
567
- "location": "global",
568
- "id": "global::HTMLLinkElement"
569
- },
570
566
  "HTMLButtonElement": {
571
567
  "location": "global",
572
568
  "id": "global::HTMLButtonElement"
569
+ },
570
+ "HTMLLinkElement": {
571
+ "location": "global",
572
+ "id": "global::HTMLLinkElement"
573
573
  }
574
574
  },
575
- "return": "Promise<HTMLLinkElement | HTMLButtonElement>"
575
+ "return": "Promise<HTMLButtonElement | HTMLLinkElement>"
576
576
  },
577
577
  "docs": {
578
578
  "text": "Returns a clickable element instance",
@@ -1 +1 @@
1
- {"version":3,"file":"gov-button.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/gov-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,WAAW,EACX,YAAY,EAIZ,UAAU,EAEV,UAAU,GAEV,MAAM,aAAa,CAAA;AACpB,OAAO,EAAC,OAAO,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAE1E,OAAO,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAC,KAAK,EAAC,MAAM,+BAA+B,CAAA;AACnD,OAAO,EAAC,uBAAuB,EAAC,MAAM,gCAAgC,CAAA;AACtE,OAAO,EAAC,uBAAuB,EAAC,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,sBAAsB,CA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I,CAAC,UAAU,CAAA;IACvB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,uBAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAClJ,CAAC;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {\n\tButtonClass,\n\tButtonColors,\n\tButtonColorType,\n\tButtonSizesType,\n\tButtonTargetType,\n\tButtonType,\n\tButtonTypesType,\n\tNativeType,\n\tNativeTypesType,\n} from \"./constants\"\nimport {govHost, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {toBool} from \"../../../utils/bool.utils\"\nimport {Sizes} from \"../../../core/constants/sizes\"\nimport {validateAccessibleLabel} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {delay} from \"../../../utils/utils\"\nimport {ButtonEvent} from \"./gov-button.types\"\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\n\nenum Tags {\n\tA = \"a\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-button\",\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\n\tprivate attributeObserver: AttributeObserver\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType\n\t/**\n\t * Button’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: ButtonSizesType = \"m\"\n\t/**\n\t * Button's type\n\t */\n\t@Prop({reflect: true}) readonly type: ButtonTypesType\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(ButtonType, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"nativeType\")\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeType, newValue, ButtonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t hydrated={this.hydrated}\n\t\t\t\t color={this.color}\n\t\t\t\t class={this.h.classes(ButtonClass.root)}\n\t\t\t\t type={this.type}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.disabled ? \"-1\" : \"0\"}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && <slot name=\"right-icon\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Validate the Accessibility attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), ButtonClass.root, this.host)\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-button.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/gov-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,WAAW,EACX,YAAY,EAIZ,UAAU,EAEV,UAAU,GAEV,MAAM,aAAa,CAAA;AACpB,OAAO,EAAC,OAAO,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAE1E,OAAO,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAC,KAAK,EAAC,MAAM,+BAA+B,CAAA;AACnD,OAAO,EAAC,uBAAuB,EAAC,MAAM,gCAAgC,CAAA;AACtE,OAAO,EAAC,uBAAuB,EAAC,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,sBAAsB,CAAA;AAE1C,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAC,iBAAiB,EAAa,MAAM,gCAAgC,CAAC;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ACpB,uBAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAClJ,CAAC;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {\n\tButtonClass,\n\tButtonColors,\n\tButtonColorType,\n\tButtonSizesType,\n\tButtonTargetType,\n\tButtonType,\n\tButtonTypesType,\n\tNativeType,\n\tNativeTypesType,\n} from \"./constants\"\nimport {govHost, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {toBool} from \"../../../utils/bool.utils\"\nimport {Sizes} from \"../../../core/constants/sizes\"\nimport {validateAccessibleLabel} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {delay} from \"../../../utils/utils\"\nimport {ButtonEvent} from \"./gov-button.types\"\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\n\nenum Tags {\n\tA = \"a\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-button\",\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\n\tprivate attributeObserver: AttributeObserver\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType\n\t/**\n\t * Button’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: ButtonSizesType = \"m\"\n\t/**\n\t * Button's type\n\t */\n\t@Prop({reflect: true}) readonly type: ButtonTypesType\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(ButtonType, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"nativeType\")\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeType, newValue, ButtonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t hydrated={this.hydrated}\n\t\t\t\t color={this.color}\n\t\t\t\t class={this.h.classes(ButtonClass.root)}\n\t\t\t\t type={this.type}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.disabled ? \"-1\" : \"0\"}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"icon-start\") && <slot name=\"icon-start\"></slot>}\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.h.hasSlot(\"icon-end\") && <slot name=\"icon-end\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Validate the Accessibility attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), ButtonClass.root, this.host)\n\t\t}\n\t}\n}\n"]}
@@ -43,7 +43,7 @@ export class GovDropdown {
43
43
  });
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: 'ee6eaf511c26f189e161ac9d13c26e8dbc5a3ac7', class: this.h.classes([DropdownClass.root]), open: this.open, position: this.position }, h("slot", { key: '964f39a16b89cebb8fdaab7025ff63a0298f1a8c' }), h("div", { key: '344a7f2b55a7e4fa9ee92777276e65057bcf025d', ref: el => registerClickOutside(this, el, () => this.open = false), class: DropdownClass.list, id: this.listId, "aria-labelledby": this.controlId, "aria-hidden": toBoolAttr(!this.open), hidden: !this.open }, h("slot", { key: '54ee18b9f2ec257708d21fe7fa1c3b2ff1827824', name: "list" }))));
46
+ return (h(Host, { key: '43c2a03dcb27ebe54f8dd00ca1120b848cac957c', class: this.h.classes([DropdownClass.root]), open: this.open, position: this.position }, h("slot", { key: '732c956fe37283578a95c843cf94ad590cd16402' }), h("div", { key: 'c3934a0f7c8303950a5c7898574fcea2e14e1890', ref: el => registerClickOutside(this, el, () => this.open = false), class: DropdownClass.list, id: this.listId, "aria-labelledby": this.controlId, "aria-hidden": toBoolAttr(!this.open), hidden: !this.open }, h("slot", { key: 'cb685039c57f9d32ae7c238fcb7457fe72b4c9c4', name: "list" }))));
47
47
  }
48
48
  /**
49
49
  * Returns the current state of the dropdown
@@ -27,7 +27,7 @@ export class GovCard {
27
27
  this.hydrated = true;
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: '7ae6cc86b82b3f87aff07e5d9e950b2e53151a18', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), promotion: this.promotion, hydrated: this.hydrated }, this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h("slot", { name: "headline" }), h("gov-icon", { class: CardClass.arrow, name: "chevron-down" }))) : this.h.hasSlot("headline") ? (h("div", { class: CardClass.header }, h("slot", { name: "headline" }))) : null, h("div", { key: 'ddb3e93eeb27258896a44ba3bbef6d8d03a10a2f', class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (h("p", { key: 'ec427ac10e1a8810a10fda0e7b0cfd479ccc7446', class: CardClass.img }, h("slot", { key: '70f4afe1cc9189987af1e213b83bfd3358da2e69', name: "img" }))), h("div", { key: '52b0c40a1fd194b0f4fe097deeabf4f66621bc7b', class: CardClass.main }, this.h.hasSlot('icon') && this.promotion && (h("div", { key: '665e99d2773408b2b99503aee1df61851ca6ef79', class: CardClass.icon }, h("slot", { key: '3d9ab0e47f8bd219fbe697182788dbc9f86755f4', name: "icon" }))), h("slot", { key: 'e7cb0ac6a735e53d183f0f376afc420cec0ecbd9' }), this.h.hasSlot('btn') && this.promotion && (h("div", { key: '30f0d797b741e1304d7500f89da4d86b13d8470d', class: CardClass.btns }, h("slot", { key: 'b8f6a9296c8c88922d31e80552d4eaf29cda4ad7', name: "btn" })))), this.h.hasSlot('footer') && (h("div", { key: 'd2eeed664123d020bacb1bfba680940d349f9ab8', class: CardClass.footer }, h("slot", { key: 'f4207f3e99a4230858177d97ec0880b9bba62145', name: "footer" }))))));
30
+ return (h(Host, { key: 'c7dd00e1eee01b7005b98b39ddfccf784dc2808e', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), promotion: this.promotion, hydrated: this.hydrated }, this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h("slot", { name: "headline" }), h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (h("div", { class: CardClass.header }, h("slot", { name: "headline" }))) : null, h("div", { key: '369364ba24e3d93c1ac78a584dd1fd48c44b892b', class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (h("p", { key: '813afe326da050fc90039355853617f267505fab', class: CardClass.img }, h("slot", { key: '5817f673e65eeb32c5740c7524518d726a98364c', name: "img" }))), h("div", { key: 'd47df9920b2ce96f2c535bb0bfd3723c2a7b7a9e', class: CardClass.main }, this.h.hasSlot('icon') && this.promotion && (h("div", { key: 'c2649f05b9e7c25b7d77a02f692d45f0e30caa60', class: CardClass.icon }, h("slot", { key: '9c5c54d2bf6c4a83bd6490b2ad7ef7a1ca9d53d5', name: "icon" }))), h("slot", { key: '49608def955a9fa5f5c1ed957ca63bc698b9aeab' }), this.h.hasSlot('btn') && this.promotion && (h("div", { key: '2bfc4a6c551fe33c4da625f800a796eb619746d3', class: CardClass.btns }, h("slot", { key: '050552b970e6d16586f57ed3dab46e6fcff9d95b', name: "btn" })))), this.h.hasSlot('footer') && (h("div", { key: '364cdbd90941b2e93cecc9742ff08479f82d0c14', class: CardClass.footer }, h("slot", { key: '0352680a92293ddfe93c055b1d7e5555967f870b', name: "footer" }))))));
31
31
  }
32
32
  onClickHandler(e) {
33
33
  e.stopPropagation();