@gov-design-system-ce/components 0.0.6 → 0.0.8

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 (566) hide show
  1. package/dist/cjs/Fragment-52846f79.js +7 -0
  2. package/dist/cjs/Fragment-52846f79.js.map +1 -0
  3. package/dist/cjs/{constants-5f6bbc50.js → constants-245999e7.js} +3 -2
  4. package/dist/cjs/constants-245999e7.js.map +1 -0
  5. package/dist/cjs/{constants-dc2ba6bd.js → constants-61f8be34.js} +3 -3
  6. package/dist/cjs/constants-61f8be34.js.map +1 -0
  7. package/dist/cjs/core.cjs.js +1 -1
  8. package/dist/cjs/gov-accordion-item.cjs.entry.js +2 -2
  9. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-accordion.cjs.entry.js +2 -1
  11. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-alert.cjs.entry.js +1 -1
  13. package/dist/cjs/gov-alert.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gov-app.cjs.entry.js +673 -165
  15. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  16. package/dist/cjs/gov-attachments_3.cjs.entry.js +1 -1
  17. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  18. package/dist/cjs/gov-backdrop.cjs.entry.js +4 -3
  19. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-badge.cjs.entry.js +17 -17
  21. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-button.cjs.entry.js +14 -3
  25. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-card.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +4 -0
  29. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-form-checkbox.cjs.entry.js +23 -7
  31. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-form-file.cjs.entry.js +7 -1
  33. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-form-input.cjs.entry.js +8 -2
  35. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-form-multi-select.cjs.entry.js +11 -3
  37. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-form-password-power.cjs.entry.js +28 -0
  39. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -0
  40. package/dist/cjs/gov-form-radio.cjs.entry.js +17 -1
  41. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-form-select.cjs.entry.js +3 -3
  45. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  46. package/dist/cjs/gov-form-switch.cjs.entry.js +23 -7
  47. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  48. package/dist/cjs/gov-icon.cjs.entry.js +1 -1
  49. package/dist/cjs/gov-modal.cjs.entry.js +19 -13
  50. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-pagination.cjs.entry.js +50 -16
  52. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-prompt.cjs.entry.js +12 -6
  54. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -1
  55. package/dist/cjs/gov-side-nav-item.cjs.entry.js +1 -1
  56. package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -1
  57. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  58. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-statsbar-item.cjs.entry.js +1 -1
  60. package/dist/cjs/gov-statsbar.cjs.entry.js +2 -2
  61. package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
  63. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  64. package/dist/cjs/gov-tile.cjs.entry.js +3 -2
  65. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  66. package/dist/cjs/gov-tiles.cjs.entry.js +2 -1
  67. package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -1
  68. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  69. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  70. package/dist/cjs/gov-wizzard-item.cjs.entry.js +1 -1
  71. package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -1
  72. package/dist/cjs/index-356717ae.js +4 -0
  73. package/dist/cjs/loader.cjs.js +1 -1
  74. package/dist/collection/collection-manifest.json +1 -0
  75. package/dist/collection/components/gov-accordion/gov-accordion-item.css +37 -5
  76. package/dist/collection/components/gov-accordion/gov-accordion-item.js +1 -1
  77. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  78. package/dist/collection/components/gov-accordion/gov-accordion.css +6 -0
  79. package/dist/collection/components/gov-accordion/gov-accordion.js +19 -0
  80. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  81. package/dist/collection/components/gov-alert/gov-alert.css +3 -0
  82. package/dist/collection/components/gov-alert/gov-alert.js +1 -1
  83. package/dist/collection/components/gov-alert/gov-alert.js.map +1 -1
  84. package/dist/collection/components/gov-app/gov-app.css +3 -0
  85. package/dist/collection/components/gov-attachments/gov-attachments-item.css +3 -0
  86. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  87. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  88. package/dist/collection/components/gov-attachments/gov-attachments.css +3 -0
  89. package/dist/collection/components/gov-backdrop/gov-backdrop.css +3 -0
  90. package/dist/collection/components/gov-backdrop/gov-backdrop.js +5 -4
  91. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  92. package/dist/collection/components/gov-badge/constants.js +4 -1
  93. package/dist/collection/components/gov-badge/constants.js.map +1 -1
  94. package/dist/collection/components/gov-badge/gov-badge.css +204 -96
  95. package/dist/collection/components/gov-badge/gov-badge.js +26 -47
  96. package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
  97. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +3 -0
  98. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  99. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  100. package/dist/collection/components/gov-button/constants.js +2 -1
  101. package/dist/collection/components/gov-button/constants.js.map +1 -1
  102. package/dist/collection/components/gov-button/gov-button.css +210 -131
  103. package/dist/collection/components/gov-button/gov-button.js +18 -7
  104. package/dist/collection/components/gov-button/gov-button.js.map +1 -1
  105. package/dist/collection/components/gov-card/gov-card.css +3 -0
  106. package/dist/collection/components/gov-card/gov-card.js +1 -1
  107. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  108. package/dist/collection/components/gov-container/gov-container.css +3 -0
  109. package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +3 -0
  110. package/dist/collection/components/gov-empty/gov-empty.css +3 -0
  111. package/dist/collection/components/gov-error-code/gov-error-code.css +3 -0
  112. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +3 -0
  113. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +4 -0
  114. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  115. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +3 -0
  116. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +53 -19
  117. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  118. package/dist/collection/components/gov-form/control/gov-form-control.css +3 -0
  119. package/dist/collection/components/gov-form/file/gov-form-file.css +3 -0
  120. package/dist/collection/components/gov-form/file/gov-form-file.js +7 -1
  121. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  122. package/dist/collection/components/gov-form/group/gov-form-group.css +3 -0
  123. package/dist/collection/components/gov-form/input/gov-form-input.css +6 -3
  124. package/dist/collection/components/gov-form/input/gov-form-input.js +7 -1
  125. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  126. package/dist/collection/components/gov-form/label/gov-form-label.css +3 -0
  127. package/dist/collection/components/gov-form/message/gov-form-message.css +3 -0
  128. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +3 -3
  129. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +10 -2
  130. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  131. package/dist/collection/components/gov-form/password-power/constants.js +6 -0
  132. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -0
  133. package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +246 -0
  134. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +43 -0
  135. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -0
  136. package/dist/collection/components/gov-form/radio/gov-form-radio.css +3 -0
  137. package/dist/collection/components/gov-form/radio/gov-form-radio.js +35 -1
  138. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  139. package/dist/collection/components/gov-form/search/gov-form-search.css +7 -0
  140. package/dist/collection/components/gov-form/select/gov-form-select.css +3 -3
  141. package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
  142. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  143. package/dist/collection/components/gov-form/switch/gov-form-switch.css +3 -0
  144. package/dist/collection/components/gov-form/switch/gov-form-switch.js +52 -18
  145. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  146. package/dist/collection/components/gov-grid/gov-grid-item.css +3 -0
  147. package/dist/collection/components/gov-grid/gov-grid.css +3 -0
  148. package/dist/collection/components/gov-icon/gov-icon.css +3 -0
  149. package/dist/collection/components/gov-icon/list.js +148 -5
  150. package/dist/collection/components/gov-icon/list.js.map +1 -1
  151. package/dist/collection/components/gov-layout/gov-layout-column.css +3 -0
  152. package/dist/collection/components/gov-layout/gov-layout.css +3 -0
  153. package/dist/collection/components/gov-loading/gov-loading.css +3 -0
  154. package/dist/collection/components/gov-message/gov-message.css +3 -0
  155. package/dist/collection/components/gov-modal/gov-modal.css +6 -3
  156. package/dist/collection/components/gov-modal/gov-modal.js +35 -22
  157. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
  158. package/dist/collection/components/gov-nav/gov-nav-item.css +3 -0
  159. package/dist/collection/components/gov-nav/gov-nav.css +3 -0
  160. package/dist/collection/components/gov-pagination/gov-pagination.css +88 -39
  161. package/dist/collection/components/gov-pagination/gov-pagination.js +63 -29
  162. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  163. package/dist/collection/components/gov-promp/gov-prompt.css +6 -3
  164. package/dist/collection/components/gov-promp/gov-prompt.js +18 -5
  165. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
  166. package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +3 -0
  167. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +1 -1
  168. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -1
  169. package/dist/collection/components/gov-side-nav/gov-side-nav.css +3 -0
  170. package/dist/collection/components/gov-spacer/gov-spacer.css +3 -0
  171. package/dist/collection/components/gov-spacer/gov-spacer.js +3 -2
  172. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  173. package/dist/collection/components/gov-statsbar/constants.js +1 -1
  174. package/dist/collection/components/gov-statsbar/constants.js.map +1 -1
  175. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +3 -0
  176. package/dist/collection/components/gov-statsbar/gov-statsbar.css +3 -0
  177. package/dist/collection/components/gov-statsbar/gov-statsbar.js +2 -2
  178. package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -1
  179. package/dist/collection/components/gov-stepper/gov-stepper-item.css +3 -0
  180. package/dist/collection/components/gov-stepper/gov-stepper.css +3 -0
  181. package/dist/collection/components/gov-tabs/gov-tabs-item.css +3 -0
  182. package/dist/collection/components/gov-tabs/gov-tabs.css +3 -0
  183. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  184. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  185. package/dist/collection/components/gov-tile/constants.js +1 -0
  186. package/dist/collection/components/gov-tile/constants.js.map +1 -1
  187. package/dist/collection/components/gov-tile/gov-tile.css +11 -4
  188. package/dist/collection/components/gov-tile/gov-tile.js +3 -6
  189. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  190. package/dist/collection/components/gov-tiles/gov-tiles.css +6 -0
  191. package/dist/collection/components/gov-tiles/gov-tiles.js +19 -0
  192. package/dist/collection/components/gov-tiles/gov-tiles.js.map +1 -1
  193. package/dist/collection/components/gov-toast/gov-toast.css +3 -0
  194. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  195. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  196. package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +3 -0
  197. package/dist/collection/components/gov-tooltip/gov-tooltip.css +3 -0
  198. package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +3 -0
  199. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +1 -1
  200. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -1
  201. package/dist/collection/components/gov-wizzard/gov-wizzard.css +3 -0
  202. package/dist/collection/pages/Accordion.js +97 -2
  203. package/dist/collection/pages/Accordion.js.map +1 -1
  204. package/dist/collection/pages/Badge.js +27 -0
  205. package/dist/collection/pages/Badge.js.map +1 -1
  206. package/dist/collection/pages/Button.js +440 -120
  207. package/dist/collection/pages/Button.js.map +1 -1
  208. package/dist/collection/pages/Error.js +1 -1
  209. package/dist/collection/pages/Error.js.map +1 -1
  210. package/dist/collection/pages/Forms.js +46 -29
  211. package/dist/collection/pages/Forms.js.map +1 -1
  212. package/dist/collection/pages/Pagination.js +12 -2
  213. package/dist/collection/pages/Pagination.js.map +1 -1
  214. package/dist/collection/pages/Stepper.js +6 -6
  215. package/dist/collection/pages/Stepper.js.map +1 -1
  216. package/dist/collection/pages/Tiles.js +39 -0
  217. package/dist/collection/pages/Tiles.js.map +1 -1
  218. package/dist/collection/pages/ToastMessage.js +1 -1
  219. package/dist/collection/pages/ToastMessage.js.map +1 -1
  220. package/dist/collection/pages/ToastMessageCountdown.js +1 -1
  221. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
  222. package/dist/collection/pages/Wizzard.js +3 -3
  223. package/dist/collection/pages/Wizzard.js.map +1 -1
  224. package/dist/collection/utils/array.utils.js +2 -0
  225. package/dist/collection/utils/array.utils.js.map +1 -0
  226. package/dist/components/Fragment.js +5 -0
  227. package/dist/components/Fragment.js.map +1 -0
  228. package/dist/components/constants11.js +2 -2
  229. package/dist/components/constants11.js.map +1 -1
  230. package/dist/components/constants3.js +2 -1
  231. package/dist/components/constants3.js.map +1 -1
  232. package/dist/components/gov-accordion-item.js +2 -3
  233. package/dist/components/gov-accordion-item.js.map +1 -1
  234. package/dist/components/gov-accordion.js +3 -2
  235. package/dist/components/gov-accordion.js.map +1 -1
  236. package/dist/components/gov-alert.js +1 -2
  237. package/dist/components/gov-alert.js.map +1 -1
  238. package/dist/components/gov-app.js +673 -166
  239. package/dist/components/gov-app.js.map +1 -1
  240. package/dist/components/gov-attachments-item2.js +1 -2
  241. package/dist/components/gov-attachments-item2.js.map +1 -1
  242. package/dist/components/gov-attachments2.js +0 -1
  243. package/dist/components/gov-attachments2.js.map +1 -1
  244. package/dist/components/gov-backdrop2.js +5 -5
  245. package/dist/components/gov-backdrop2.js.map +1 -1
  246. package/dist/components/gov-badge2.js +16 -18
  247. package/dist/components/gov-badge2.js.map +1 -1
  248. package/dist/components/gov-breadcrumbs.js +1 -2
  249. package/dist/components/gov-breadcrumbs.js.map +1 -1
  250. package/dist/components/gov-button2.js +17 -7
  251. package/dist/components/gov-button2.js.map +1 -1
  252. package/dist/components/gov-card.js +1 -2
  253. package/dist/components/gov-card.js.map +1 -1
  254. package/dist/components/gov-container.js +0 -1
  255. package/dist/components/gov-container.js.map +1 -1
  256. package/dist/components/gov-cookiebar.js +0 -1
  257. package/dist/components/gov-cookiebar.js.map +1 -1
  258. package/dist/components/gov-empty.js +0 -1
  259. package/dist/components/gov-empty.js.map +1 -1
  260. package/dist/components/gov-error-code.js +0 -1
  261. package/dist/components/gov-error-code.js.map +1 -1
  262. package/dist/components/gov-form-autocomplete2.js +4 -1
  263. package/dist/components/gov-form-autocomplete2.js.map +1 -1
  264. package/dist/components/gov-form-checkbox.js +24 -8
  265. package/dist/components/gov-form-checkbox.js.map +1 -1
  266. package/dist/components/gov-form-control.js +0 -1
  267. package/dist/components/gov-form-control.js.map +1 -1
  268. package/dist/components/gov-form-file.js +7 -2
  269. package/dist/components/gov-form-file.js.map +1 -1
  270. package/dist/components/gov-form-group.js +0 -1
  271. package/dist/components/gov-form-group.js.map +1 -1
  272. package/dist/components/gov-form-input2.js +8 -3
  273. package/dist/components/gov-form-input2.js.map +1 -1
  274. package/dist/components/gov-form-label.js +0 -1
  275. package/dist/components/gov-form-label.js.map +1 -1
  276. package/dist/components/gov-form-message2.js +0 -1
  277. package/dist/components/gov-form-message2.js.map +1 -1
  278. package/dist/components/gov-form-multi-select.js +11 -4
  279. package/dist/components/gov-form-multi-select.js.map +1 -1
  280. package/dist/components/gov-form-password-power.d.ts +11 -0
  281. package/dist/components/gov-form-password-power.js +43 -0
  282. package/dist/components/gov-form-password-power.js.map +1 -0
  283. package/dist/components/gov-form-radio.js +18 -2
  284. package/dist/components/gov-form-radio.js.map +1 -1
  285. package/dist/components/gov-form-search.js +1 -2
  286. package/dist/components/gov-form-search.js.map +1 -1
  287. package/dist/components/gov-form-select2.js +3 -4
  288. package/dist/components/gov-form-select2.js.map +1 -1
  289. package/dist/components/gov-form-switch.js +24 -8
  290. package/dist/components/gov-form-switch.js.map +1 -1
  291. package/dist/components/gov-grid-item.js +0 -1
  292. package/dist/components/gov-grid-item.js.map +1 -1
  293. package/dist/components/gov-grid.js +0 -1
  294. package/dist/components/gov-grid.js.map +1 -1
  295. package/dist/components/gov-icon2.js +1 -2
  296. package/dist/components/gov-icon2.js.map +1 -1
  297. package/dist/components/gov-layout-column.js +0 -1
  298. package/dist/components/gov-layout-column.js.map +1 -1
  299. package/dist/components/gov-layout.js +0 -1
  300. package/dist/components/gov-layout.js.map +1 -1
  301. package/dist/components/gov-loading.js +0 -1
  302. package/dist/components/gov-loading.js.map +1 -1
  303. package/dist/components/gov-message.js +0 -1
  304. package/dist/components/gov-message.js.map +1 -1
  305. package/dist/components/gov-modal.js +20 -14
  306. package/dist/components/gov-modal.js.map +1 -1
  307. package/dist/components/gov-nav-item.js +0 -1
  308. package/dist/components/gov-nav-item.js.map +1 -1
  309. package/dist/components/gov-nav.js +0 -1
  310. package/dist/components/gov-nav.js.map +1 -1
  311. package/dist/components/gov-pagination.js +50 -17
  312. package/dist/components/gov-pagination.js.map +1 -1
  313. package/dist/components/gov-prompt.js +13 -7
  314. package/dist/components/gov-prompt.js.map +1 -1
  315. package/dist/components/gov-side-nav-item.js +1 -2
  316. package/dist/components/gov-side-nav-item.js.map +1 -1
  317. package/dist/components/gov-side-nav.js +0 -1
  318. package/dist/components/gov-side-nav.js.map +1 -1
  319. package/dist/components/gov-spacer.js +1 -2
  320. package/dist/components/gov-spacer.js.map +1 -1
  321. package/dist/components/gov-statsbar-item.js +0 -1
  322. package/dist/components/gov-statsbar-item.js.map +1 -1
  323. package/dist/components/gov-statsbar.js +2 -3
  324. package/dist/components/gov-statsbar.js.map +1 -1
  325. package/dist/components/gov-stepper-item.js +0 -1
  326. package/dist/components/gov-stepper-item.js.map +1 -1
  327. package/dist/components/gov-stepper.js +0 -1
  328. package/dist/components/gov-stepper.js.map +1 -1
  329. package/dist/components/gov-tabs-item.js +0 -1
  330. package/dist/components/gov-tabs-item.js.map +1 -1
  331. package/dist/components/gov-tabs.js +1 -2
  332. package/dist/components/gov-tabs.js.map +1 -1
  333. package/dist/components/gov-tile.js +3 -3
  334. package/dist/components/gov-tile.js.map +1 -1
  335. package/dist/components/gov-tiles.js +4 -3
  336. package/dist/components/gov-tiles.js.map +1 -1
  337. package/dist/components/gov-toast.js +1 -2
  338. package/dist/components/gov-toast.js.map +1 -1
  339. package/dist/components/gov-tooltip-content.js +0 -1
  340. package/dist/components/gov-tooltip-content.js.map +1 -1
  341. package/dist/components/gov-tooltip.js +0 -1
  342. package/dist/components/gov-tooltip.js.map +1 -1
  343. package/dist/components/gov-wizzard-item.js +1 -2
  344. package/dist/components/gov-wizzard-item.js.map +1 -1
  345. package/dist/components/gov-wizzard.js +0 -1
  346. package/dist/components/gov-wizzard.js.map +1 -1
  347. package/dist/components/index.d.ts +1 -0
  348. package/dist/components/index.js +1 -0
  349. package/dist/components/index.js.map +1 -1
  350. package/dist/core/core.css +1 -1
  351. package/dist/core/core.esm.js +1 -1
  352. package/dist/core/core.esm.js.map +1 -1
  353. package/dist/core/{p-e7dd2002.entry.js → p-00e1e600.entry.js} +2 -2
  354. package/dist/core/p-00e1e600.entry.js.map +1 -0
  355. package/dist/core/{p-ae3e2d60.entry.js → p-04fc18ab.entry.js} +2 -2
  356. package/dist/core/p-04fc18ab.entry.js.map +1 -0
  357. package/dist/core/p-0950ba85.entry.js +2 -0
  358. package/dist/core/p-0950ba85.entry.js.map +1 -0
  359. package/dist/core/{p-5fa41af9.js → p-1020a160.js} +1 -1
  360. package/dist/core/p-1020a160.js.map +1 -0
  361. package/dist/core/{p-9e6a41cc.entry.js → p-16608a87.entry.js} +2 -2
  362. package/dist/core/p-16608a87.entry.js.map +1 -0
  363. package/dist/core/{p-f5ee7634.entry.js → p-1bb5184f.entry.js} +2 -2
  364. package/dist/core/{p-f5ee7634.entry.js.map → p-1bb5184f.entry.js.map} +1 -1
  365. package/dist/core/p-1c06fb0b.entry.js +2 -0
  366. package/dist/core/p-1c06fb0b.entry.js.map +1 -0
  367. package/dist/core/p-1c1d0bbe.js +2 -0
  368. package/dist/core/p-1c1d0bbe.js.map +1 -0
  369. package/dist/core/{p-b48a3112.entry.js → p-4b375a4d.entry.js} +2 -2
  370. package/dist/core/{p-b48a3112.entry.js.map → p-4b375a4d.entry.js.map} +1 -1
  371. package/dist/core/p-5b4e3bdf.entry.js +2 -0
  372. package/dist/core/p-5b4e3bdf.entry.js.map +1 -0
  373. package/dist/core/p-613d8ed8.entry.js +2 -0
  374. package/dist/core/p-613d8ed8.entry.js.map +1 -0
  375. package/dist/core/{p-6d40721b.entry.js → p-63d2e8ec.entry.js} +2 -2
  376. package/dist/core/{p-6d40721b.entry.js.map → p-63d2e8ec.entry.js.map} +1 -1
  377. package/dist/core/{p-f5ffcb3d.entry.js → p-72b9e63a.entry.js} +2 -2
  378. package/dist/core/{p-5cecdaaf.entry.js → p-72f16a95.entry.js} +2 -2
  379. package/dist/core/p-7ac5f119.entry.js +2 -0
  380. package/dist/core/{p-63079b80.entry.js.map → p-7ac5f119.entry.js.map} +1 -1
  381. package/dist/core/{p-03d40bf4.entry.js → p-833ab414.entry.js} +2 -2
  382. package/dist/core/{p-03d40bf4.entry.js.map → p-833ab414.entry.js.map} +1 -1
  383. package/dist/core/{p-34360f92.entry.js → p-84fda9dd.entry.js} +2 -2
  384. package/dist/core/{p-34360f92.entry.js.map → p-84fda9dd.entry.js.map} +1 -1
  385. package/dist/core/p-851939ff.entry.js +2 -0
  386. package/dist/core/p-851939ff.entry.js.map +1 -0
  387. package/dist/core/p-8dacc8dc.entry.js +2 -0
  388. package/dist/core/p-8dacc8dc.entry.js.map +1 -0
  389. package/dist/core/p-8dbad4a2.entry.js +2 -0
  390. package/dist/core/p-8dbad4a2.entry.js.map +1 -0
  391. package/dist/core/p-902002e9.entry.js +2 -0
  392. package/dist/core/p-902002e9.entry.js.map +1 -0
  393. package/dist/core/p-95f21fbf.entry.js +2 -0
  394. package/dist/core/p-95f21fbf.entry.js.map +1 -0
  395. package/dist/core/p-99155ec0.entry.js +2 -0
  396. package/dist/core/p-99155ec0.entry.js.map +1 -0
  397. package/dist/core/{p-7591ecd4.entry.js → p-9ca0a11c.entry.js} +2 -2
  398. package/dist/core/{p-7591ecd4.entry.js.map → p-9ca0a11c.entry.js.map} +1 -1
  399. package/dist/core/p-9ceeba49.entry.js +2 -0
  400. package/dist/core/p-9ceeba49.entry.js.map +1 -0
  401. package/dist/core/{p-ec617f18.entry.js → p-9d30e79e.entry.js} +2 -2
  402. package/dist/core/{p-ec617f18.entry.js.map → p-9d30e79e.entry.js.map} +1 -1
  403. package/dist/core/{p-38fb2d42.entry.js → p-a36234bb.entry.js} +2 -2
  404. package/dist/core/p-a36234bb.entry.js.map +1 -0
  405. package/dist/core/p-ac33c5ef.entry.js +2 -0
  406. package/dist/core/p-ac33c5ef.entry.js.map +1 -0
  407. package/dist/core/p-b966062a.entry.js +2 -0
  408. package/dist/core/p-b966062a.entry.js.map +1 -0
  409. package/dist/core/{p-fc1581f9.entry.js → p-bd560ffc.entry.js} +2 -2
  410. package/dist/core/{p-fc1581f9.entry.js.map → p-bd560ffc.entry.js.map} +1 -1
  411. package/dist/core/{p-93facb4a.entry.js → p-c0430e75.entry.js} +2 -2
  412. package/dist/core/p-c0430e75.entry.js.map +1 -0
  413. package/dist/core/p-c9948e57.entry.js +2 -0
  414. package/dist/core/p-c9948e57.entry.js.map +1 -0
  415. package/dist/core/p-cd869237.js +2 -0
  416. package/dist/core/p-cd869237.js.map +1 -0
  417. package/dist/core/{p-9cc6ed83.entry.js → p-e57d250f.entry.js} +2 -2
  418. package/dist/core/p-e57d250f.entry.js.map +1 -0
  419. package/dist/core/p-ecdfb046.entry.js +2 -0
  420. package/dist/core/p-ecdfb046.entry.js.map +1 -0
  421. package/dist/core/p-fac1c202.entry.js +2 -0
  422. package/dist/core/p-fac1c202.entry.js.map +1 -0
  423. package/dist/custom-elements/index.d.ts +6 -0
  424. package/dist/custom-elements/index.js +1 -1
  425. package/dist/custom-elements/index.js.map +1 -1
  426. package/dist/esm/Fragment-8d8d54fb.js +5 -0
  427. package/dist/esm/Fragment-8d8d54fb.js.map +1 -0
  428. package/dist/esm/{constants-d550c816.js → constants-037c35bc.js} +3 -3
  429. package/dist/esm/constants-037c35bc.js.map +1 -0
  430. package/dist/esm/{constants-1a2146b2.js → constants-45f6db4c.js} +3 -2
  431. package/dist/esm/constants-45f6db4c.js.map +1 -0
  432. package/dist/esm/core.js +1 -1
  433. package/dist/esm/gov-accordion-item.entry.js +2 -2
  434. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  435. package/dist/esm/gov-accordion.entry.js +2 -1
  436. package/dist/esm/gov-accordion.entry.js.map +1 -1
  437. package/dist/esm/gov-alert.entry.js +1 -1
  438. package/dist/esm/gov-alert.entry.js.map +1 -1
  439. package/dist/esm/gov-app.entry.js +673 -165
  440. package/dist/esm/gov-app.entry.js.map +1 -1
  441. package/dist/esm/gov-attachments_3.entry.js +1 -1
  442. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  443. package/dist/esm/gov-backdrop.entry.js +5 -4
  444. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  445. package/dist/esm/gov-badge.entry.js +17 -17
  446. package/dist/esm/gov-badge.entry.js.map +1 -1
  447. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  448. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  449. package/dist/esm/gov-button.entry.js +14 -3
  450. package/dist/esm/gov-button.entry.js.map +1 -1
  451. package/dist/esm/gov-card.entry.js +1 -1
  452. package/dist/esm/gov-card.entry.js.map +1 -1
  453. package/dist/esm/gov-form-autocomplete.entry.js +4 -0
  454. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  455. package/dist/esm/gov-form-checkbox.entry.js +23 -7
  456. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  457. package/dist/esm/gov-form-file.entry.js +7 -1
  458. package/dist/esm/gov-form-file.entry.js.map +1 -1
  459. package/dist/esm/gov-form-input.entry.js +8 -2
  460. package/dist/esm/gov-form-input.entry.js.map +1 -1
  461. package/dist/esm/gov-form-multi-select.entry.js +11 -3
  462. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  463. package/dist/esm/gov-form-password-power.entry.js +24 -0
  464. package/dist/esm/gov-form-password-power.entry.js.map +1 -0
  465. package/dist/esm/gov-form-radio.entry.js +17 -1
  466. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  467. package/dist/esm/gov-form-search.entry.js +1 -1
  468. package/dist/esm/gov-form-search.entry.js.map +1 -1
  469. package/dist/esm/gov-form-select.entry.js +3 -3
  470. package/dist/esm/gov-form-select.entry.js.map +1 -1
  471. package/dist/esm/gov-form-switch.entry.js +23 -7
  472. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  473. package/dist/esm/gov-icon.entry.js +1 -1
  474. package/dist/esm/gov-modal.entry.js +19 -13
  475. package/dist/esm/gov-modal.entry.js.map +1 -1
  476. package/dist/esm/gov-pagination.entry.js +50 -16
  477. package/dist/esm/gov-pagination.entry.js.map +1 -1
  478. package/dist/esm/gov-prompt.entry.js +12 -6
  479. package/dist/esm/gov-prompt.entry.js.map +1 -1
  480. package/dist/esm/gov-side-nav-item.entry.js +1 -1
  481. package/dist/esm/gov-side-nav-item.entry.js.map +1 -1
  482. package/dist/esm/gov-spacer.entry.js +1 -1
  483. package/dist/esm/gov-spacer.entry.js.map +1 -1
  484. package/dist/esm/gov-statsbar-item.entry.js +1 -1
  485. package/dist/esm/gov-statsbar.entry.js +2 -2
  486. package/dist/esm/gov-statsbar.entry.js.map +1 -1
  487. package/dist/esm/gov-tabs.entry.js +1 -1
  488. package/dist/esm/gov-tabs.entry.js.map +1 -1
  489. package/dist/esm/gov-tile.entry.js +3 -2
  490. package/dist/esm/gov-tile.entry.js.map +1 -1
  491. package/dist/esm/gov-tiles.entry.js +2 -1
  492. package/dist/esm/gov-tiles.entry.js.map +1 -1
  493. package/dist/esm/gov-toast.entry.js +1 -1
  494. package/dist/esm/gov-toast.entry.js.map +1 -1
  495. package/dist/esm/gov-wizzard-item.entry.js +1 -1
  496. package/dist/esm/gov-wizzard-item.entry.js.map +1 -1
  497. package/dist/esm/index-00e9a0d5.js +4 -0
  498. package/dist/esm/loader.js +1 -1
  499. package/dist/hydrate/index.js +946 -271
  500. package/dist/types/components/gov-accordion/gov-accordion.d.ts +4 -0
  501. package/dist/types/components/gov-badge/constants.d.ts +4 -2
  502. package/dist/types/components/gov-badge/gov-badge.d.ts +4 -9
  503. package/dist/types/components/gov-button/constants.d.ts +3 -2
  504. package/dist/types/components/gov-button/gov-button.d.ts +2 -0
  505. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +8 -3
  506. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -0
  507. package/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
  508. package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
  509. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +5 -0
  510. package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +8 -3
  511. package/dist/types/components/gov-modal/gov-modal.d.ts +3 -1
  512. package/dist/types/components/gov-pagination/gov-pagination.d.ts +7 -3
  513. package/dist/types/components/gov-promp/gov-prompt.d.ts +3 -1
  514. package/dist/types/components/gov-statsbar/constants.d.ts +2 -2
  515. package/dist/types/components/gov-tile/constants.d.ts +1 -0
  516. package/dist/types/components/gov-tile/gov-tile.d.ts +1 -2
  517. package/dist/types/components/gov-tiles/gov-tiles.d.ts +4 -0
  518. package/dist/types/components.d.ts +65 -14
  519. package/dist/types/utils/array.utils.d.ts +1 -0
  520. package/package.json +1 -1
  521. package/dist/cjs/constants-5f6bbc50.js.map +0 -1
  522. package/dist/cjs/constants-dc2ba6bd.js.map +0 -1
  523. package/dist/core/p-00182e76.entry.js +0 -2
  524. package/dist/core/p-00182e76.entry.js.map +0 -1
  525. package/dist/core/p-0278fcb3.entry.js +0 -2
  526. package/dist/core/p-0278fcb3.entry.js.map +0 -1
  527. package/dist/core/p-08f14c8b.entry.js +0 -2
  528. package/dist/core/p-08f14c8b.entry.js.map +0 -1
  529. package/dist/core/p-0a152bb7.entry.js +0 -2
  530. package/dist/core/p-0a152bb7.entry.js.map +0 -1
  531. package/dist/core/p-14f8f2fb.js +0 -2
  532. package/dist/core/p-14f8f2fb.js.map +0 -1
  533. package/dist/core/p-2128abe1.entry.js +0 -2
  534. package/dist/core/p-2128abe1.entry.js.map +0 -1
  535. package/dist/core/p-22722ff3.entry.js +0 -2
  536. package/dist/core/p-22722ff3.entry.js.map +0 -1
  537. package/dist/core/p-2419f4cd.entry.js +0 -2
  538. package/dist/core/p-2419f4cd.entry.js.map +0 -1
  539. package/dist/core/p-38fb2d42.entry.js.map +0 -1
  540. package/dist/core/p-4681cb3a.entry.js +0 -2
  541. package/dist/core/p-4681cb3a.entry.js.map +0 -1
  542. package/dist/core/p-469273be.entry.js +0 -2
  543. package/dist/core/p-469273be.entry.js.map +0 -1
  544. package/dist/core/p-5547dbb0.entry.js +0 -2
  545. package/dist/core/p-5547dbb0.entry.js.map +0 -1
  546. package/dist/core/p-5fa41af9.js.map +0 -1
  547. package/dist/core/p-63079b80.entry.js +0 -2
  548. package/dist/core/p-8965f84a.entry.js +0 -2
  549. package/dist/core/p-8965f84a.entry.js.map +0 -1
  550. package/dist/core/p-93facb4a.entry.js.map +0 -1
  551. package/dist/core/p-9cc6ed83.entry.js.map +0 -1
  552. package/dist/core/p-9e6a41cc.entry.js.map +0 -1
  553. package/dist/core/p-ad0cc981.entry.js +0 -2
  554. package/dist/core/p-ad0cc981.entry.js.map +0 -1
  555. package/dist/core/p-ae3e2d60.entry.js.map +0 -1
  556. package/dist/core/p-e52a042f.entry.js +0 -2
  557. package/dist/core/p-e52a042f.entry.js.map +0 -1
  558. package/dist/core/p-e7dd2002.entry.js.map +0 -1
  559. package/dist/core/p-f2dc8ce3.entry.js +0 -2
  560. package/dist/core/p-f2dc8ce3.entry.js.map +0 -1
  561. package/dist/core/p-fc91591d.entry.js +0 -2
  562. package/dist/core/p-fc91591d.entry.js.map +0 -1
  563. package/dist/esm/constants-1a2146b2.js.map +0 -1
  564. package/dist/esm/constants-d550c816.js.map +0 -1
  565. /package/dist/core/{p-f5ffcb3d.entry.js.map → p-72b9e63a.entry.js.map} +0 -0
  566. /package/dist/core/{p-5cecdaaf.entry.js.map → p-72f16a95.entry.js.map} +0 -0
@@ -148,6 +148,9 @@
148
148
  /*
149
149
  - Variables - Form multiselect
150
150
  */
151
+ /*
152
+ - Variables - Form password power
153
+ */
151
154
  /*
152
155
  - Variables - Form checkbox & radio
153
156
  */
@@ -379,6 +382,41 @@
379
382
  color: var(--gov-button-primary-base-inverse-active-color, var(--gov-color-neutral-white));
380
383
  }
381
384
  }
385
+ [type=link][variant=primary].gov-button .element {
386
+ color: var(--gov-button-primary-link-color, var(--gov-color-primary));
387
+ border-width: 0;
388
+ }
389
+ [type=link][variant=primary][inverse=""].gov-button .element, [type=link][variant=primary][inverse=true i].gov-button .element, [type=link][variant=primary][inverse="1"].gov-button .element {
390
+ color: var(--gov-button-primary-link-inverse-color, var(--gov-color-neutral-white));
391
+ background-color: var(--gov-button-primary-link-inverse-bg, transparent);
392
+ }
393
+ [type=link][variant=primary][disabled=""].gov-button .element, [type=link][variant=primary][disabled=true i].gov-button .element, [type=link][variant=primary][disabled="1"].gov-button .element {
394
+ color: var(--gov-button-primary-link-disabled-color, var(--gov-color-primary-400));
395
+ }
396
+ [type=link][variant=primary][disabled=""][inverse=""].gov-button .element, [type=link][variant=primary][disabled=""][inverse=true i].gov-button .element, [type=link][variant=primary][disabled=""][inverse="1"].gov-button .element, [type=link][variant=primary][disabled=true i][inverse=""].gov-button .element, [type=link][variant=primary][disabled=true i][inverse=true i].gov-button .element, [type=link][variant=primary][disabled=true i][inverse="1"].gov-button .element, [type=link][variant=primary][disabled="1"][inverse=""].gov-button .element, [type=link][variant=primary][disabled="1"][inverse=true i].gov-button .element, [type=link][variant=primary][disabled="1"][inverse="1"].gov-button .element {
397
+ background-color: var(--gov-button-primary-link-inverse-disabled-bg, transparent);
398
+ color: var(--gov-button-primary-link-inverse-disabled-color, var(--gov-color-primary-400));
399
+ }
400
+ @media not all and (pointer: coarse) {
401
+ [type=link][variant=primary][hoverable].gov-button .element:hover {
402
+ background-color: var(--gov-button-primary-link-hover-bg, transparent);
403
+ color: var(--gov-button-primary-link-hover-color, var(--gov-color-primary));
404
+ }
405
+ [type=link][variant=primary][hoverable].gov-button .element:hover:active {
406
+ background-color: var(--gov-button-primary-link-active-bg, transparent);
407
+ color: var(--gov-button-primary-link-active-color, var(--gov-color-primary-700));
408
+ }
409
+ }
410
+ @media not all and (pointer: coarse) {
411
+ [type=link][variant=primary][hoverable][inverse=""].gov-button .element:hover, [type=link][variant=primary][hoverable][inverse=true i].gov-button .element:hover, [type=link][variant=primary][hoverable][inverse="1"].gov-button .element:hover {
412
+ background-color: var(--gov-button-primary-link-inverse-hover-bg, transparent);
413
+ color: var(--gov-button-primary-link-inverse-hover-color, var(--gov-color-neutral-white));
414
+ }
415
+ [type=link][variant=primary][hoverable][inverse=""].gov-button .element:hover:active, [type=link][variant=primary][hoverable][inverse=true i].gov-button .element:hover:active, [type=link][variant=primary][hoverable][inverse="1"].gov-button .element:hover:active {
416
+ background-color: var(--gov-button-primary-link-inverse-active-bg, transparent);
417
+ color: var(--gov-button-primary-link-inverse-active-color, var(--gov-color-primary-200));
418
+ }
419
+ }
382
420
  [type=solid][variant=secondary].gov-button .element {
383
421
  background-color: var(--gov-button-secondary-solid-bg, var(--gov-color-secondary));
384
422
  color: var(--gov-button-secondary-solid-color, var(--gov-color-neutral-white));
@@ -493,6 +531,41 @@
493
531
  color: var(--gov-button-secondary-base-inverse-active-color, var(--gov-color-secondary));
494
532
  }
495
533
  }
534
+ [type=link][variant=secondary].gov-button .element {
535
+ color: var(--gov-button-secondary-link-color, var(--gov-color-secondary));
536
+ border-width: 0;
537
+ }
538
+ [type=link][variant=secondary][inverse=""].gov-button .element, [type=link][variant=secondary][inverse=true i].gov-button .element, [type=link][variant=secondary][inverse="1"].gov-button .element {
539
+ color: var(--gov-button-secondary-link-inverse-color, var(--gov-color-neutral-white));
540
+ background-color: var(--gov-button-secondary-link-inverse-bg, transparent);
541
+ }
542
+ [type=link][variant=secondary][disabled=""].gov-button .element, [type=link][variant=secondary][disabled=true i].gov-button .element, [type=link][variant=secondary][disabled="1"].gov-button .element {
543
+ color: var(--gov-button-secondary-link-disabled-color, var(--gov-color-secondary-600));
544
+ }
545
+ [type=link][variant=secondary][disabled=""][inverse=""].gov-button .element, [type=link][variant=secondary][disabled=""][inverse=true i].gov-button .element, [type=link][variant=secondary][disabled=""][inverse="1"].gov-button .element, [type=link][variant=secondary][disabled=true i][inverse=""].gov-button .element, [type=link][variant=secondary][disabled=true i][inverse=true i].gov-button .element, [type=link][variant=secondary][disabled=true i][inverse="1"].gov-button .element, [type=link][variant=secondary][disabled="1"][inverse=""].gov-button .element, [type=link][variant=secondary][disabled="1"][inverse=true i].gov-button .element, [type=link][variant=secondary][disabled="1"][inverse="1"].gov-button .element {
546
+ background-color: var(--gov-button-secondary-link-inverse-disabled-bg, transparent);
547
+ color: var(--gov-button-secondary-link-inverse-disabled-color, var(--gov-color-secondary-600));
548
+ }
549
+ @media not all and (pointer: coarse) {
550
+ [type=link][variant=secondary][hoverable].gov-button .element:hover {
551
+ background-color: var(--gov-button-secondary-link-hover-bg, transparent);
552
+ color: var(--gov-button-secondary-link-hover-color, var(--gov-color-secondary));
553
+ }
554
+ [type=link][variant=secondary][hoverable].gov-button .element:hover:active {
555
+ background-color: var(--gov-button-secondary-link-active-bg, transparent);
556
+ color: var(--gov-button-primary-link-active-color, var(--gov-color-secondary));
557
+ }
558
+ }
559
+ @media not all and (pointer: coarse) {
560
+ [type=link][variant=secondary][hoverable][inverse=""].gov-button .element:hover, [type=link][variant=secondary][hoverable][inverse=true i].gov-button .element:hover, [type=link][variant=secondary][hoverable][inverse="1"].gov-button .element:hover {
561
+ background-color: var(--gov-button-secondary-link-inverse-hover-bg, transparent);
562
+ color: var(--gov-button-secondary-link-inverse-hover-color, var(--gov-color-neutral-white));
563
+ }
564
+ [type=link][variant=secondary][hoverable][inverse=""].gov-button .element:hover:active, [type=link][variant=secondary][hoverable][inverse=true i].gov-button .element:hover:active, [type=link][variant=secondary][hoverable][inverse="1"].gov-button .element:hover:active {
565
+ background-color: var(--gov-button-secondary-link-inverse-active-bg, transparent);
566
+ color: var(--gov-button-secondary-link-inverse-active-color, var(--gov-color-secondary-500));
567
+ }
568
+ }
496
569
  [type=solid][variant=error].gov-button .element {
497
570
  background-color: var(--gov-button-error-solid-bg, var(--gov-color-error));
498
571
  color: var(--gov-button-error-solid-color, var(--gov-color-neutral-white));
@@ -605,6 +678,41 @@
605
678
  color: var(--gov-button-error-base-inverse-active-color, var(--gov-color-neutral-white));
606
679
  }
607
680
  }
681
+ [type=link][variant=error].gov-button .element {
682
+ color: var(--gov-button-error-link-color, var(--gov-color-error));
683
+ border-width: 0;
684
+ }
685
+ [type=link][variant=error][inverse=""].gov-button .element, [type=link][variant=error][inverse=true i].gov-button .element, [type=link][variant=error][inverse="1"].gov-button .element {
686
+ color: var(--gov-button-error-link-inverse-color, var(--gov-color-neutral-white));
687
+ background-color: var(--gov-button-error-link-inverse-bg, transparent);
688
+ }
689
+ [type=link][variant=error][disabled=""].gov-button .element, [type=link][variant=error][disabled=true i].gov-button .element, [type=link][variant=error][disabled="1"].gov-button .element {
690
+ color: var(--gov-button-error-link-disabled-color, var(--gov-color-error-200));
691
+ }
692
+ [type=link][variant=error][disabled=""][inverse=""].gov-button .element, [type=link][variant=error][disabled=""][inverse=true i].gov-button .element, [type=link][variant=error][disabled=""][inverse="1"].gov-button .element, [type=link][variant=error][disabled=true i][inverse=""].gov-button .element, [type=link][variant=error][disabled=true i][inverse=true i].gov-button .element, [type=link][variant=error][disabled=true i][inverse="1"].gov-button .element, [type=link][variant=error][disabled="1"][inverse=""].gov-button .element, [type=link][variant=error][disabled="1"][inverse=true i].gov-button .element, [type=link][variant=error][disabled="1"][inverse="1"].gov-button .element {
693
+ background-color: var(--gov-button-error-link-inverse-disabled-bg, transparent);
694
+ color: var(--gov-button-error-link-inverse-disabled-color, var(--gov-color-error-200));
695
+ }
696
+ @media not all and (pointer: coarse) {
697
+ [type=link][variant=error][hoverable].gov-button .element:hover {
698
+ background-color: var(--gov-button-error-link-hover-bg, transparent);
699
+ color: var(--gov-button-error-link-hover-color, var(--gov-color-error));
700
+ }
701
+ [type=link][variant=error][hoverable].gov-button .element:hover:active {
702
+ background-color: var(--gov-button-error-link-active-bg, transparent);
703
+ color: var(--gov-button-primary-link-active-color, var(--gov-color-error-500));
704
+ }
705
+ }
706
+ @media not all and (pointer: coarse) {
707
+ [type=link][variant=error][hoverable][inverse=""].gov-button .element:hover, [type=link][variant=error][hoverable][inverse=true i].gov-button .element:hover, [type=link][variant=error][hoverable][inverse="1"].gov-button .element:hover {
708
+ background-color: var(--gov-button-error-link-inverse-hover-bg, transparent);
709
+ color: var(--gov-button-error-link-inverse-hover-color, var(--gov-color-neutral-white));
710
+ }
711
+ [type=link][variant=error][hoverable][inverse=""].gov-button .element:hover:active, [type=link][variant=error][hoverable][inverse=true i].gov-button .element:hover:active, [type=link][variant=error][hoverable][inverse="1"].gov-button .element:hover:active {
712
+ background-color: var(--gov-button-error-link-inverse-active-bg, transparent);
713
+ color: var(--gov-button-error-link-inverse-active-color, var(--gov-color-neutral-white));
714
+ }
715
+ }
608
716
  [type=solid][variant=success].gov-button .element {
609
717
  background-color: var(--gov-button-success-solid-bg, var(--gov-color-success-500));
610
718
  color: var(--gov-button-success-solid-color, var(--gov-color-neutral-white));
@@ -717,6 +825,41 @@
717
825
  color: var(--gov-button-success-base-inverse-active-color, var(--gov-color-neutral-white));
718
826
  }
719
827
  }
828
+ [type=link][variant=success].gov-button .element {
829
+ color: var(--gov-button-success-link-color, var(--gov-color-success-500));
830
+ border-width: 0;
831
+ }
832
+ [type=link][variant=success][inverse=""].gov-button .element, [type=link][variant=success][inverse=true i].gov-button .element, [type=link][variant=success][inverse="1"].gov-button .element {
833
+ color: var(--gov-button-success-link-inverse-color, var(--gov-color-neutral-white));
834
+ background-color: var(--gov-button-success-link-inverse-bg, transparent);
835
+ }
836
+ [type=link][variant=success][disabled=""].gov-button .element, [type=link][variant=success][disabled=true i].gov-button .element, [type=link][variant=success][disabled="1"].gov-button .element {
837
+ color: var(--gov-button-success-link-disabled-color, var(--gov-color-success-300));
838
+ }
839
+ [type=link][variant=success][disabled=""][inverse=""].gov-button .element, [type=link][variant=success][disabled=""][inverse=true i].gov-button .element, [type=link][variant=success][disabled=""][inverse="1"].gov-button .element, [type=link][variant=success][disabled=true i][inverse=""].gov-button .element, [type=link][variant=success][disabled=true i][inverse=true i].gov-button .element, [type=link][variant=success][disabled=true i][inverse="1"].gov-button .element, [type=link][variant=success][disabled="1"][inverse=""].gov-button .element, [type=link][variant=success][disabled="1"][inverse=true i].gov-button .element, [type=link][variant=success][disabled="1"][inverse="1"].gov-button .element {
840
+ background-color: var(--gov-button-success-link-inverse-disabled-bg, transparent);
841
+ color: var(--gov-button-success-link-inverse-disabled-color, var(--gov-color-success-400));
842
+ }
843
+ @media not all and (pointer: coarse) {
844
+ [type=link][variant=success][hoverable].gov-button .element:hover {
845
+ background-color: var(--gov-button-success-link-hover-bg, transparent);
846
+ color: var(--gov-button-success-link-hover-color, var(--gov-color-success-500));
847
+ }
848
+ [type=link][variant=success][hoverable].gov-button .element:hover:active {
849
+ background-color: var(--gov-button-success-link-active-bg, transparent);
850
+ color: var(--gov-button-primary-link-active-color, var(--gov-color-success-600));
851
+ }
852
+ }
853
+ @media not all and (pointer: coarse) {
854
+ [type=link][variant=success][hoverable][inverse=""].gov-button .element:hover, [type=link][variant=success][hoverable][inverse=true i].gov-button .element:hover, [type=link][variant=success][hoverable][inverse="1"].gov-button .element:hover {
855
+ background-color: var(--gov-button-success-link-inverse-hover-bg, transparent);
856
+ color: var(--gov-button-success-link-inverse-hover-color, var(--gov-color-neutral-white));
857
+ }
858
+ [type=link][variant=success][hoverable][inverse=""].gov-button .element:hover:active, [type=link][variant=success][hoverable][inverse=true i].gov-button .element:hover:active, [type=link][variant=success][hoverable][inverse="1"].gov-button .element:hover:active {
859
+ background-color: var(--gov-button-success-link-inverse-active-bg, transparent);
860
+ color: var(--gov-button-success-link-inverse-active-color, var(--gov-color-neutral-white));
861
+ }
862
+ }
720
863
  [type=solid][variant=warning].gov-button .element {
721
864
  background-color: var(--gov-button-warning-solid-bg, var(--gov-color-warning-500));
722
865
  color: var(--gov-button-warning-solid-color, var(--gov-color-neutral-white));
@@ -829,6 +972,41 @@
829
972
  color: var(--gov-button-warning-base-inverse-active-color, var(--gov-color-neutral-white));
830
973
  }
831
974
  }
975
+ [type=link][variant=warning].gov-button .element {
976
+ color: var(--gov-button-warning-link-color, var(--gov-color-warning-500));
977
+ border-width: 0;
978
+ }
979
+ [type=link][variant=warning][inverse=""].gov-button .element, [type=link][variant=warning][inverse=true i].gov-button .element, [type=link][variant=warning][inverse="1"].gov-button .element {
980
+ color: var(--gov-button-warning-link-inverse-color, var(--gov-color-neutral-white));
981
+ background-color: var(--gov-button-warning-link-inverse-bg, transparent);
982
+ }
983
+ [type=link][variant=warning][disabled=""].gov-button .element, [type=link][variant=warning][disabled=true i].gov-button .element, [type=link][variant=warning][disabled="1"].gov-button .element {
984
+ color: var(--gov-button-warning-link-disabled-color, var(--gov-color-warning));
985
+ }
986
+ [type=link][variant=warning][disabled=""][inverse=""].gov-button .element, [type=link][variant=warning][disabled=""][inverse=true i].gov-button .element, [type=link][variant=warning][disabled=""][inverse="1"].gov-button .element, [type=link][variant=warning][disabled=true i][inverse=""].gov-button .element, [type=link][variant=warning][disabled=true i][inverse=true i].gov-button .element, [type=link][variant=warning][disabled=true i][inverse="1"].gov-button .element, [type=link][variant=warning][disabled="1"][inverse=""].gov-button .element, [type=link][variant=warning][disabled="1"][inverse=true i].gov-button .element, [type=link][variant=warning][disabled="1"][inverse="1"].gov-button .element {
987
+ background-color: var(--gov-button-warning-link-inverse-disabled-bg, transparent);
988
+ color: var(--gov-button-warning-link-inverse-disabled-color, var(--gov-color-warning-400));
989
+ }
990
+ @media not all and (pointer: coarse) {
991
+ [type=link][variant=warning][hoverable].gov-button .element:hover {
992
+ background-color: var(--gov-button-warning-link-hover-bg, transparent);
993
+ color: var(--gov-button-warning-link-hover-color, var(--gov-color-warning-500));
994
+ }
995
+ [type=link][variant=warning][hoverable].gov-button .element:hover:active {
996
+ background-color: var(--gov-button-warning-link-active-bg, transparent);
997
+ color: var(--gov-button-primary-link-active-color, var(--gov-color-warning-600));
998
+ }
999
+ }
1000
+ @media not all and (pointer: coarse) {
1001
+ [type=link][variant=warning][hoverable][inverse=""].gov-button .element:hover, [type=link][variant=warning][hoverable][inverse=true i].gov-button .element:hover, [type=link][variant=warning][hoverable][inverse="1"].gov-button .element:hover {
1002
+ background-color: var(--gov-button-warning-link-inverse-hover-bg, transparent);
1003
+ color: var(--gov-button-warning-link-inverse-hover-color, var(--gov-color-neutral-white));
1004
+ }
1005
+ [type=link][variant=warning][hoverable][inverse=""].gov-button .element:hover:active, [type=link][variant=warning][hoverable][inverse=true i].gov-button .element:hover:active, [type=link][variant=warning][hoverable][inverse="1"].gov-button .element:hover:active {
1006
+ background-color: var(--gov-button-warning-link-inverse-active-bg, transparent);
1007
+ color: var(--gov-button-warning-link-inverse-active-color, var(--gov-color-neutral-white));
1008
+ }
1009
+ }
832
1010
  [size=xs].gov-button .element {
833
1011
  font-weight: var(--gov-button-text-xs-font-weight, var(--gov-text-xs-font-weight));
834
1012
  font-size: var(--gov-button-text-xs-font-size, var(--gov-text-xs-font-size));
@@ -843,22 +1021,6 @@
843
1021
  width: var(--gov-button-xs-icon-size, 1rem);
844
1022
  height: var(--gov-button-xs-icon-size, 1rem);
845
1023
  }
846
- @media (min-width: 48em) {
847
- [size=xs].gov-button .element {
848
- font-weight: var(--gov-button-text-xs-font-weight, var(--gov-text-xs-font-weight));
849
- font-size: var(--gov-button-text-xs-font-size, var(--gov-text-xs-font-size));
850
- line-height: var(--gov-button-text-xs-line-height, var(--gov-text-xs-line-height));
851
- letter-spacing: var(--gov-button-text-xs-letter-spacing, var(--gov-text-xs-letter-spacing));
852
- -moz-column-gap: var(--gov-button-xs-padding-x, 0.625rem);
853
- column-gap: var(--gov-button-xs-padding-x, 0.625rem);
854
- min-height: var(--gov-button-xs-min-height, 1.5rem);
855
- padding: var(--gov-button-xs-padding-y, 0.125rem) var(--gov-button-xs-padding-x, 0.625rem);
856
- }
857
- [size=xs].gov-button .element .gov-icon {
858
- width: var(--gov-button-xs-icon-size, 1rem);
859
- height: var(--gov-button-xs-icon-size, 1rem);
860
- }
861
- }
862
1024
  [size=s].gov-button .element {
863
1025
  font-weight: var(--gov-button-text-s-font-weight, var(--gov-text-s-font-weight));
864
1026
  font-size: var(--gov-button-text-s-font-size, var(--gov-text-s-font-size));
@@ -873,53 +1035,7 @@
873
1035
  width: var(--gov-button-s-icon-size, 1rem);
874
1036
  height: var(--gov-button-s-icon-size, 1rem);
875
1037
  }
876
- @media (min-width: 48em) {
877
- [size=s].gov-button .element {
878
- font-weight: var(--gov-button-text-s-font-weight, var(--gov-text-s-font-weight));
879
- font-size: var(--gov-button-text-s-font-size, var(--gov-text-s-font-size));
880
- line-height: var(--gov-button-text-s-line-height, var(--gov-text-s-line-height));
881
- letter-spacing: var(--gov-button-text-s-letter-spacing, var(--gov-text-s-letter-spacing));
882
- -moz-column-gap: var(--gov-button-s-padding-x, 0.75rem);
883
- column-gap: var(--gov-button-s-padding-x, 0.75rem);
884
- min-height: var(--gov-button-s-min-height, 2rem);
885
- padding: var(--gov-button-s-padding-y, 0.25rem) var(--gov-button-s-padding-x, 0.75rem);
886
- }
887
- [size=s].gov-button .element .gov-icon {
888
- width: var(--gov-button-s-icon-size, 1rem);
889
- height: var(--gov-button-s-icon-size, 1rem);
890
- }
891
- }
892
1038
  [size=m].gov-button .element {
893
- font-weight: var(--gov-button-text-s-font-weight, var(--gov-text-s-font-weight));
894
- font-size: var(--gov-button-text-s-font-size, var(--gov-text-s-font-size));
895
- line-height: var(--gov-button-text-s-line-height, var(--gov-text-s-line-height));
896
- letter-spacing: var(--gov-button-text-s-letter-spacing, var(--gov-text-s-letter-spacing));
897
- -moz-column-gap: var(--gov-button-s-padding-x, 0.75rem);
898
- column-gap: var(--gov-button-s-padding-x, 0.75rem);
899
- min-height: var(--gov-button-s-min-height, 2rem);
900
- padding: var(--gov-button-s-padding-y, 0.25rem) var(--gov-button-s-padding-x, 0.75rem);
901
- }
902
- [size=m].gov-button .element .gov-icon {
903
- width: var(--gov-button-s-icon-size, 1rem);
904
- height: var(--gov-button-s-icon-size, 1rem);
905
- }
906
- @media (min-width: 48em) {
907
- [size=m].gov-button .element {
908
- font-weight: var(--gov-button-text-m-font-weight, var(--gov-text-m-font-weight));
909
- font-size: var(--gov-button-text-m-font-size, var(--gov-text-m-font-size));
910
- line-height: var(--gov-button-text-m-line-height, var(--gov-text-m-line-height));
911
- letter-spacing: var(--gov-button-text-m-letter-spacing, var(--gov-text-m-letter-spacing));
912
- -moz-column-gap: var(--gov-button-m-padding-x, 0.75rem);
913
- column-gap: var(--gov-button-m-padding-x, 0.75rem);
914
- min-height: var(--gov-button-m-min-height, 2.5rem);
915
- padding: var(--gov-button-m-padding-y, 0.375rem) var(--gov-button-m-padding-x, 0.75rem);
916
- }
917
- [size=m].gov-button .element .gov-icon {
918
- width: var(--gov-button-m-icon-size, 1.25rem);
919
- height: var(--gov-button-m-icon-size, 1.25rem);
920
- }
921
- }
922
- [size=l].gov-button .element {
923
1039
  font-weight: var(--gov-button-text-m-font-weight, var(--gov-text-m-font-weight));
924
1040
  font-size: var(--gov-button-text-m-font-size, var(--gov-text-m-font-size));
925
1041
  line-height: var(--gov-button-text-m-line-height, var(--gov-text-m-line-height));
@@ -929,27 +1045,11 @@
929
1045
  min-height: var(--gov-button-m-min-height, 2.5rem);
930
1046
  padding: var(--gov-button-m-padding-y, 0.375rem) var(--gov-button-m-padding-x, 0.75rem);
931
1047
  }
932
- [size=l].gov-button .element .gov-icon {
1048
+ [size=m].gov-button .element .gov-icon {
933
1049
  width: var(--gov-button-m-icon-size, 1.25rem);
934
1050
  height: var(--gov-button-m-icon-size, 1.25rem);
935
1051
  }
936
- @media (min-width: 48em) {
937
- [size=l].gov-button .element {
938
- font-weight: var(--gov-button-text-l-font-weight, var(--gov-text-l-font-weight));
939
- font-size: var(--gov-button-text-l-font-size, var(--gov-text-l-font-size));
940
- line-height: var(--gov-button-text-l-line-height, var(--gov-text-l-line-height));
941
- letter-spacing: var(--gov-button-text-l-letter-spacing, var(--gov-text-l-letter-spacing));
942
- -moz-column-gap: var(--gov-button-l-padding-x, 1rem);
943
- column-gap: var(--gov-button-l-padding-x, 1rem);
944
- min-height: var(--gov-button-l-min-height, 3rem);
945
- padding: var(--gov-button-l-padding-y, 0.5rem) var(--gov-button-l-padding-x, 1rem);
946
- }
947
- [size=l].gov-button .element .gov-icon {
948
- width: var(--gov-button-l-icon-size, 1.5rem);
949
- height: var(--gov-button-l-icon-size, 1.5rem);
950
- }
951
- }
952
- [size=xl].gov-button .element {
1052
+ [size=l].gov-button .element {
953
1053
  font-weight: var(--gov-button-text-l-font-weight, var(--gov-text-l-font-weight));
954
1054
  font-size: var(--gov-button-text-l-font-size, var(--gov-text-l-font-size));
955
1055
  line-height: var(--gov-button-text-l-line-height, var(--gov-text-l-line-height));
@@ -959,25 +1059,23 @@
959
1059
  min-height: var(--gov-button-l-min-height, 3rem);
960
1060
  padding: var(--gov-button-l-padding-y, 0.5rem) var(--gov-button-l-padding-x, 1rem);
961
1061
  }
962
- [size=xl].gov-button .element .gov-icon {
1062
+ [size=l].gov-button .element .gov-icon {
963
1063
  width: var(--gov-button-l-icon-size, 1.5rem);
964
1064
  height: var(--gov-button-l-icon-size, 1.5rem);
965
1065
  }
966
- @media (min-width: 48em) {
967
- [size=xl].gov-button .element {
968
- font-weight: var(--gov-button-text-xl-font-weight, var(--gov-text-xl-font-weight));
969
- font-size: var(--gov-button-text-xl-font-size, var(--gov-text-xl-font-size));
970
- line-height: var(--gov-button-text-xl-line-height, var(--gov-text-xl-line-height));
971
- letter-spacing: var(--gov-button-text-xl-letter-spacing, var(--gov-text-xl-letter-spacing));
972
- -moz-column-gap: var(--gov-button-xl-padding-x, 1.25rem);
973
- column-gap: var(--gov-button-xl-padding-x, 1.25rem);
974
- min-height: var(--gov-button-xl-min-height, 3.5rem);
975
- padding: var(--gov-button-xl-padding-y, 0.75rem) var(--gov-button-xl-padding-x, 1.25rem);
976
- }
977
- [size=xl].gov-button .element .gov-icon {
978
- width: var(--gov-button-xl-icon-size, 1.75rem);
979
- height: var(--gov-button-xl-icon-size, 1.75rem);
980
- }
1066
+ [size=xl].gov-button .element {
1067
+ font-weight: var(--gov-button-text-xl-font-weight, var(--gov-text-xl-font-weight));
1068
+ font-size: var(--gov-button-text-xl-font-size, var(--gov-text-xl-font-size));
1069
+ line-height: var(--gov-button-text-xl-line-height, var(--gov-text-xl-line-height));
1070
+ letter-spacing: var(--gov-button-text-xl-letter-spacing, var(--gov-text-xl-letter-spacing));
1071
+ -moz-column-gap: var(--gov-button-xl-padding-x, 1.25rem);
1072
+ column-gap: var(--gov-button-xl-padding-x, 1.25rem);
1073
+ min-height: var(--gov-button-xl-min-height, 3.5rem);
1074
+ padding: var(--gov-button-xl-padding-y, 0.75rem) var(--gov-button-xl-padding-x, 1.25rem);
1075
+ }
1076
+ [size=xl].gov-button .element .gov-icon {
1077
+ width: var(--gov-button-xl-icon-size, 1.75rem);
1078
+ height: var(--gov-button-xl-icon-size, 1.75rem);
981
1079
  }
982
1080
 
983
1081
  .gov-button {
@@ -986,53 +1084,34 @@
986
1084
  .gov-button .element {
987
1085
  border-radius: var(--gov-border-radius, 0.1875rem);
988
1086
  }
1087
+ .gov-button[type=link] .element {
1088
+ padding: 0;
1089
+ text-decoration: underline;
1090
+ line-height: inherit;
1091
+ min-height: inherit;
1092
+ }
1093
+ @media not all and (pointer: coarse) {
1094
+ .gov-button[type=link] .element:hover {
1095
+ text-decoration: none;
1096
+ }
1097
+ }
989
1098
  .gov-button[loading=true] .element > .gov-icon:not(.gov-spin-animation),
990
1099
  .gov-button[loading=true] .element > gov-icon:not(.gov-spin-animation), .gov-button[loading="1"] .element > .gov-icon:not(.gov-spin-animation),
991
1100
  .gov-button[loading="1"] .element > gov-icon:not(.gov-spin-animation) {
992
1101
  display: none;
993
1102
  }
994
- .gov-button:not(.gov-button--w-icon)[loading="0"][size=xs] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=xs] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=xs] .element {
1103
+ .gov-button:not(.gov-button--w-icon)[loading="0"][size=xs] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=xs] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=xs] .gov-button:not[type=link] .element {
995
1104
  padding: var(--gov-button-xs-padding-y, 0.125rem) calc(var(--gov-button-xs-padding-x, 0.625rem) + var(--gov-button-xs-padding-x, 0.625rem) / 2 + var(--gov-button-xs-icon-size, 1rem) / 2);
996
1105
  }
997
- .gov-button:not(.gov-button--w-icon)[loading="0"][size=s] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=s] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=s] .element {
1106
+ .gov-button:not(.gov-button--w-icon)[loading="0"][size=s] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=s] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=s] .gov-button:not[type=link] .element {
998
1107
  padding: var(--gov-button-s-padding-y, 0.25rem) calc(var(--gov-button-s-padding-x, 0.75rem) + var(--gov-button-s-padding-x, 0.75rem) / 2 + var(--gov-button-s-icon-size, 1rem) / 2);
999
1108
  }
1000
- .gov-button:not(.gov-button--w-icon)[loading="0"][size=m] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=m] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=m] .element {
1109
+ .gov-button:not(.gov-button--w-icon)[loading="0"][size=m] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=m] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=m] .gov-button:not[type=link] .element {
1001
1110
  padding: var(--gov-button-m-padding-y, 0.375rem) calc(var(--gov-button-m-padding-x, 0.75rem) + var(--gov-button-m-padding-x, 0.75rem) / 2 + var(--gov-button-m-icon-size, 1.25rem) / 2);
1002
1111
  }
1003
- .gov-button:not(.gov-button--w-icon)[loading="0"][size=l] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=l] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=l] .element {
1112
+ .gov-button:not(.gov-button--w-icon)[loading="0"][size=l] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=l] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=l] .gov-button:not[type=link] .element {
1004
1113
  padding: var(--gov-button-l-padding-y, 0.5rem) calc(var(--gov-button-l-padding-x, 1rem) + var(--gov-button-l-padding-x, 1rem) / 2 + var(--gov-button-l-icon-size, 1.5rem) / 2);
1005
1114
  }
1006
- .gov-button:not(.gov-button--w-icon)[loading="0"][size=xl] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=xl] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=xl] .element {
1115
+ .gov-button:not(.gov-button--w-icon)[loading="0"][size=xl] .element, .gov-button:not(.gov-button--w-icon)[loading=false][size=xl] .element, .gov-button:not(.gov-button--w-icon)[loading=""][size=xl] .gov-button:not[type=link] .element {
1007
1116
  padding: var(--gov-button-xl-padding-y, 0.75rem) calc(var(--gov-button-xl-padding-x, 1.25rem) + var(--gov-button-xl-padding-x, 1.25rem) / 2 + var(--gov-button-xl-icon-size, 1.75rem) / 2);
1008
- }
1009
- .gov-button[type=outlined][variant=primary] .gov-spin-animation, .gov-button[type=base][variant=primary] .gov-spin-animation {
1010
- color: var(--gov-button-primary-outlined-color, var(--gov-color-primary));
1011
- }
1012
- .gov-button[type=outlined][variant=primary][inverse=""] .gov-spin-animation, .gov-button[type=outlined][variant=primary][inverse=true i] .gov-spin-animation, .gov-button[type=outlined][variant=primary][inverse="1"] .gov-spin-animation, .gov-button[type=base][variant=primary][inverse=""] .gov-spin-animation, .gov-button[type=base][variant=primary][inverse=true i] .gov-spin-animation, .gov-button[type=base][variant=primary][inverse="1"] .gov-spin-animation {
1013
- color: inherit;
1014
- }
1015
- .gov-button[type=outlined][variant=secondary] .gov-spin-animation, .gov-button[type=base][variant=secondary] .gov-spin-animation {
1016
- color: var(--gov-button-secondary-outlined-color, var(--gov-color-secondary));
1017
- }
1018
- .gov-button[type=outlined][variant=secondary][inverse=""] .gov-spin-animation, .gov-button[type=outlined][variant=secondary][inverse=true i] .gov-spin-animation, .gov-button[type=outlined][variant=secondary][inverse="1"] .gov-spin-animation, .gov-button[type=base][variant=secondary][inverse=""] .gov-spin-animation, .gov-button[type=base][variant=secondary][inverse=true i] .gov-spin-animation, .gov-button[type=base][variant=secondary][inverse="1"] .gov-spin-animation {
1019
- color: inherit;
1020
- }
1021
- .gov-button[type=outlined][variant=error] .gov-spin-animation, .gov-button[type=base][variant=error] .gov-spin-animation {
1022
- color: var(--gov-button-error-outlined-color, var(--gov-color-error));
1023
- }
1024
- .gov-button[type=outlined][variant=error][inverse=""] .gov-spin-animation, .gov-button[type=outlined][variant=error][inverse=true i] .gov-spin-animation, .gov-button[type=outlined][variant=error][inverse="1"] .gov-spin-animation, .gov-button[type=base][variant=error][inverse=""] .gov-spin-animation, .gov-button[type=base][variant=error][inverse=true i] .gov-spin-animation, .gov-button[type=base][variant=error][inverse="1"] .gov-spin-animation {
1025
- color: inherit;
1026
- }
1027
- .gov-button[type=outlined][variant=success] .gov-spin-animation, .gov-button[type=base][variant=success] .gov-spin-animation {
1028
- color: var(--gov-button-success-outlined-color, var(--gov-color-success-500));
1029
- }
1030
- .gov-button[type=outlined][variant=success][inverse=""] .gov-spin-animation, .gov-button[type=outlined][variant=success][inverse=true i] .gov-spin-animation, .gov-button[type=outlined][variant=success][inverse="1"] .gov-spin-animation, .gov-button[type=base][variant=success][inverse=""] .gov-spin-animation, .gov-button[type=base][variant=success][inverse=true i] .gov-spin-animation, .gov-button[type=base][variant=success][inverse="1"] .gov-spin-animation {
1031
- color: inherit;
1032
- }
1033
- .gov-button[type=outlined][variant=warning] .gov-spin-animation, .gov-button[type=base][variant=warning] .gov-spin-animation {
1034
- color: var(--gov-button-warning-outlined-color, var(--gov-color-warning-500));
1035
- }
1036
- .gov-button[type=outlined][variant=warning][inverse=""] .gov-spin-animation, .gov-button[type=outlined][variant=warning][inverse=true i] .gov-spin-animation, .gov-button[type=outlined][variant=warning][inverse="1"] .gov-spin-animation, .gov-button[type=base][variant=warning][inverse=""] .gov-spin-animation, .gov-button[type=base][variant=warning][inverse=true i] .gov-spin-animation, .gov-button[type=base][variant=warning][inverse="1"] .gov-spin-animation {
1037
- color: inherit;
1038
1117
  }
@@ -77,14 +77,25 @@ export class GovButton {
77
77
  render() {
78
78
  const Tag = this.href ? Tags.A : Tags.BUTTON;
79
79
  const nativeType = Tag === Tags.A ? undefined : this.nativeType;
80
- return (h(Host, { hoverable: true, size: this.size, variant: this.variant, class: this.h.classes(this.classNames), type: this.type, inverse: this.inverse }, h(Tag, { class: "element", ref: el => (this.buttonRef = el), onClick: this.onClickHandler.bind(this), onFocus: () => this.govFocus.emit(), onBlur: () => this.govBlur.emit(), onMouseDown: () => (this.isPressed = true), onMouseUp: () => (this.isPressed = false), 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.focusable ? '0' : '-1', "aria-activedescendant": this.wcagActiveDescendant, "aria-describedby": this.wcagActiveDescendant, "aria-description": this.wcagDescription, "aria-controls": this.wcagControls, "aria-details": this.wcagDetails, "aria-expanded": toBoolAttrIfDefined(this.wcagExpanded), "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns, "aria-haspopup": toBoolAttrIfDefined(this.wcagHasPopup), "aria-pressed": toBoolAttr(this.isPressed), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-current": this.wcagCurrent }, toBool(this.loading) && !this.h.hasSlot('right-icon') && h("gov-icon", { name: "loader", class: "gov-spin-animation" }), this.h.hasSlot('left-icon') && h("slot", { name: "left-icon" }), h("slot", null), this.h.hasSlot('right-icon') && h("slot", { name: "right-icon" }), toBool(this.loading) && this.h.hasSlot('right-icon') && h("gov-icon", { name: "loader", class: "gov-spin-animation" }))));
80
+ return (h(Host, { hoverable: true, size: this.size, variant: this.variant, class: this.h.classes(this.classNames), type: this.type, inverse: this.inverse }, h(Tag, { class: "element", ref: el => (this.buttonRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), onMouseDown: () => (this.isPressed = true), onMouseUp: () => (this.isPressed = false), 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.focusable ? '0' : '-1', "aria-activedescendant": this.wcagActiveDescendant, "aria-describedby": this.wcagActiveDescendant, "aria-description": this.wcagDescription, "aria-controls": this.wcagControls, "aria-details": this.wcagDetails, "aria-expanded": toBoolAttrIfDefined(this.wcagExpanded), "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns, "aria-haspopup": toBoolAttrIfDefined(this.wcagHasPopup), "aria-pressed": toBoolAttr(this.isPressed), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-current": this.wcagCurrent }, toBool(this.loading) && !this.h.hasSlot('right-icon') && h("gov-icon", { name: "loader", class: "gov-spin-animation" }), this.h.hasSlot('left-icon') && h("slot", { name: "left-icon" }), h("slot", null), this.h.hasSlot('right-icon') && h("slot", { name: "right-icon" }), toBool(this.loading) && this.h.hasSlot('right-icon') && h("gov-icon", { name: "loader", class: "gov-spin-animation" }))));
81
81
  }
82
82
  onClickHandler(e) {
83
83
  e.stopPropagation();
84
+ e.preventDefault();
84
85
  if (this.disabled === false) {
85
86
  this.govClick.emit(e);
86
87
  }
87
88
  }
89
+ onFocusHandler(e) {
90
+ e.stopPropagation();
91
+ e.preventDefault();
92
+ this.govFocus.emit(e);
93
+ }
94
+ onBlurHandler(e) {
95
+ e.stopPropagation();
96
+ e.preventDefault();
97
+ this.govBlur.emit(e);
98
+ }
88
99
  /**
89
100
  * Focus button element
90
101
  */
@@ -137,14 +148,14 @@ export class GovButton {
137
148
  "text": "Style variation of the button"
138
149
  },
139
150
  "attribute": "variant",
140
- "reflect": false
151
+ "reflect": true
141
152
  },
142
153
  "size": {
143
154
  "type": "string",
144
155
  "mutable": false,
145
156
  "complexType": {
146
157
  "original": "ButtonSizesType",
147
- "resolved": "\"l\" | \"m\" | \"s\" | \"xl\"",
158
+ "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
148
159
  "references": {
149
160
  "ButtonSizesType": {
150
161
  "location": "import",
@@ -159,7 +170,7 @@ export class GovButton {
159
170
  "text": "Button\u2019s size"
160
171
  },
161
172
  "attribute": "size",
162
- "reflect": false,
173
+ "reflect": true,
163
174
  "defaultValue": "'m'"
164
175
  },
165
176
  "type": {
@@ -167,7 +178,7 @@ export class GovButton {
167
178
  "mutable": false,
168
179
  "complexType": {
169
180
  "original": "TypesType",
170
- "resolved": "\"base\" | \"outlined\" | \"solid\"",
181
+ "resolved": "\"base\" | \"link\" | \"outlined\" | \"solid\"",
171
182
  "references": {
172
183
  "TypesType": {
173
184
  "location": "import",
@@ -182,7 +193,7 @@ export class GovButton {
182
193
  "text": "Button's type"
183
194
  },
184
195
  "attribute": "type",
185
- "reflect": false,
196
+ "reflect": true,
186
197
  "defaultValue": "'solid'"
187
198
  },
188
199
  "expanded": {
@@ -253,7 +264,7 @@ export class GovButton {
253
264
  "text": "Makes the button component disabled.\nThis prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies"
254
265
  },
255
266
  "attribute": "disabled",
256
- "reflect": false,
267
+ "reflect": true,
257
268
  "defaultValue": "false"
258
269
  },
259
270
  "nativeType": {
@@ -1 +1 @@
1
- {"version":3,"file":"gov-button.js","sourceRoot":"","sources":["../../../../../../src/components/gov-button/gov-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC5G,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAA+C,cAAc,EAAqB,WAAW,EAAE,IAAI,EAAE,UAAU,EAAoB,MAAM,aAAa,CAAA;AAC7J,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAErG,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzC,IAAK,IAGJ;AAHD,WAAK,IAAI;EACR,eAAO,CAAA;EACP,yBAAiB,CAAA;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;AAMD,MAAM,OAAO,SAAS;EAIrB;;gBAa0C,GAAG;gBAIT,OAAO;oBAIN,KAAK;mBAIN,KAAK;;oBASJ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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { ButtonSizesType, NativeTypesType, TypesType, ButtonVariants, ButtonVariantType, ButtonClass, Type, NativeType, ButtonTargetType } from './constants'\nimport { govHost, toBoolAttr, toBoolAttrIfDefined, prepareClasses } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { toBool } from '../../utils/bool.utils'\nimport { Sizes } from '../../core/constants/sizes'\nimport { validateWcagLabel, validateWcagRef } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\n\nenum Tags {\n\tA = 'a',\n\tBUTTON = 'button',\n}\n\n@Component({\n\ttag: 'gov-button',\n\tstyleUrl: 'gov-button.scss',\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate buttonRef?: HTMLButtonElement\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() readonly variant?: ButtonVariantType\n\t/**\n\t * Button’s size\n\t */\n\t@Prop() readonly size?: ButtonSizesType = 'm'\n\t/**\n\t * Button's type\n\t */\n\t@Prop() readonly type?: TypesType = 'solid'\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Determine if component should have inversed colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: 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() 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 parametr\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 * Indicates the id of a related component’s visually focused element\n\t */\n\t@Prop({ attribute: 'wcag-active-descendant' }) readonly wcagActiveDescendant: string\n\t/**\n\t * Use this property to add an aria-controls attribute to the button. Use the attribute to point to the unique id of the content that the button manages\n\t */\n\t@Prop({ attribute: 'wcag-controls' }) readonly wcagControls: string\n\t/**\n\t * Indicates the id of a component that describes the button\n\t */\n\t@Prop({ attribute: 'wcag-described-by' }) readonly wcagDescribedBy: string\n\t/**\n\t * Aria description the button\n\t */\n\t@Prop({ attribute: 'wcag-description' }) readonly wcagDescription: string\n\t/**\n\t * Details of the component\n\t */\n\t@Prop({ attribute: 'wcag-details' }) readonly wcagDetails: string\n\t/**\n\t * If a button expands or collapses adjacent content, then use the ariaExpanded prop to add the aria-expanded attribute to the button\n\t * Set the value to convey the current expanded (true) or collapsed (false) state of the content\n\t */\n\t@Prop({ attribute: 'wcag-expanded' }) readonly wcagExpanded: boolean\n\t/**\n\t * Adds accessible label for the button that is only shown for screen readers\n\t * Typically, this label text replaces the visible text on the button for users who use assistive technology\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) readonly wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component owned by the button\n\t */\n\t@Prop({ attribute: 'wcag-owns' }) readonly wcagOwns: string\n\t/**\n\t * \tUse this property to add an aria-haspopup attribute to a button, if you are using it as a menu button\n\t */\n\t@Prop({ attribute: 'wcag-has-popup' }) readonly wcagHasPopup: string\n\t/**\n\t * Tells screen reader the element is pressed\n\t */\n\t@Prop({ attribute: 'wcag-pressed' }) readonly wcagPressed: string\n\t/**\n\t * Indicates the current item within a container or set of related elements\n\t */\n\t@Prop({ attribute: 'wcag-current' }) readonly wcagCurrent: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({ eventName: 'gov-click' }) govClick: EventEmitter<PointerEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({ eventName: 'gov-focus' }) govFocus: EventEmitter<FocusEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({ eventName: 'gov-blur' }) govBlur: EventEmitter<FocusEvent>\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(ButtonVariants, newValue, ButtonClass.root)\n\t}\n\n\t@Watch('type')\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(Type, 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() isPressed = false\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tget classNames(): string {\n\t\tconst { h } = this\n\n\t\treturn prepareClasses([ButtonClass.root, h.hasSlot('left-icon') && ButtonClass.rootWithIcon, h.hasSlot('right-icon') && ButtonClass.rootWithIcon])\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 hoverable={true} size={this.size} variant={this.variant} class={this.h.classes(this.classNames)} type={this.type} inverse={this.inverse}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.buttonRef = el as HTMLButtonElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={() => this.govFocus.emit()}\n\t\t\t\t\tonBlur={() => this.govBlur.emit()}\n\t\t\t\t\tonMouseDown={() => (this.isPressed = true)}\n\t\t\t\t\tonMouseUp={() => (this.isPressed = false)}\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.focusable ? '0' : '-1'}\n\t\t\t\t\taria-activedescendant={this.wcagActiveDescendant}\n\t\t\t\t\taria-describedby={this.wcagActiveDescendant}\n\t\t\t\t\taria-description={this.wcagDescription}\n\t\t\t\t\taria-controls={this.wcagControls}\n\t\t\t\t\taria-details={this.wcagDetails}\n\t\t\t\t\taria-expanded={toBoolAttrIfDefined(this.wcagExpanded)}\n\t\t\t\t\taria-label={this.wcagLabel}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\taria-owns={this.wcagOwns}\n\t\t\t\t\taria-haspopup={toBoolAttrIfDefined(this.wcagHasPopup)}\n\t\t\t\t\taria-pressed={toBoolAttr(this.isPressed)}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\taria-current={this.wcagCurrent}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot('right-icon') && <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') && <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(e)\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.buttonRef.focus()\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateWcagRef(this.wcagActiveDescendant, 'aria-activedescendant', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagControls, 'aria-controls', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagDetails, 'aria-details', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagOwns, 'aria-owns', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagHasPopup, 'aria-haspopup', ButtonClass.root)\n\t\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, ButtonClass.root)\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-button.js","sourceRoot":"","sources":["../../../../../../src/components/gov-button/gov-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC5G,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAA+C,cAAc,EAAqB,WAAW,EAAE,IAAI,EAAE,UAAU,EAAoB,MAAM,aAAa,CAAA;AAC7J,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAErG,OAAO,EAAE,MAAM,EAAE,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { ButtonSizesType, NativeTypesType, TypesType, ButtonVariants, ButtonVariantType, ButtonClass, Type, NativeType, ButtonTargetType } from './constants'\nimport { govHost, toBoolAttr, toBoolAttrIfDefined, prepareClasses } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { toBool } from '../../utils/bool.utils'\nimport { Sizes } from '../../core/constants/sizes'\nimport { validateWcagLabel, validateWcagRef } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\n\nenum Tags {\n\tA = 'a',\n\tBUTTON = 'button',\n}\n\n@Component({\n\ttag: 'gov-button',\n\tstyleUrl: 'gov-button.scss',\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate buttonRef?: HTMLButtonElement\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 variant?: ButtonVariantType\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?: TypesType = 'solid'\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Determine if component should have inversed colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: 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 parametr\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 * Indicates the id of a related component’s visually focused element\n\t */\n\t@Prop({ attribute: 'wcag-active-descendant' }) readonly wcagActiveDescendant: string\n\t/**\n\t * Use this property to add an aria-controls attribute to the button. Use the attribute to point to the unique id of the content that the button manages\n\t */\n\t@Prop({ attribute: 'wcag-controls' }) readonly wcagControls: string\n\t/**\n\t * Indicates the id of a component that describes the button\n\t */\n\t@Prop({ attribute: 'wcag-described-by' }) readonly wcagDescribedBy: string\n\t/**\n\t * Aria description the button\n\t */\n\t@Prop({ attribute: 'wcag-description' }) readonly wcagDescription: string\n\t/**\n\t * Details of the component\n\t */\n\t@Prop({ attribute: 'wcag-details' }) readonly wcagDetails: string\n\t/**\n\t * If a button expands or collapses adjacent content, then use the ariaExpanded prop to add the aria-expanded attribute to the button\n\t * Set the value to convey the current expanded (true) or collapsed (false) state of the content\n\t */\n\t@Prop({ attribute: 'wcag-expanded' }) readonly wcagExpanded: boolean\n\t/**\n\t * Adds accessible label for the button that is only shown for screen readers\n\t * Typically, this label text replaces the visible text on the button for users who use assistive technology\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) readonly wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component owned by the button\n\t */\n\t@Prop({ attribute: 'wcag-owns' }) readonly wcagOwns: string\n\t/**\n\t * \tUse this property to add an aria-haspopup attribute to a button, if you are using it as a menu button\n\t */\n\t@Prop({ attribute: 'wcag-has-popup' }) readonly wcagHasPopup: string\n\t/**\n\t * Tells screen reader the element is pressed\n\t */\n\t@Prop({ attribute: 'wcag-pressed' }) readonly wcagPressed: string\n\t/**\n\t * Indicates the current item within a container or set of related elements\n\t */\n\t@Prop({ attribute: 'wcag-current' }) readonly wcagCurrent: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({ eventName: 'gov-click' }) govClick: EventEmitter<PointerEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({ eventName: 'gov-focus' }) govFocus: EventEmitter<FocusEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({ eventName: 'gov-blur' }) govBlur: EventEmitter<FocusEvent>\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(ButtonVariants, newValue, ButtonClass.root)\n\t}\n\n\t@Watch('type')\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(Type, 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() isPressed = false\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tget classNames(): string {\n\t\tconst { h } = this\n\n\t\treturn prepareClasses([ButtonClass.root, h.hasSlot('left-icon') && ButtonClass.rootWithIcon, h.hasSlot('right-icon') && ButtonClass.rootWithIcon])\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 hoverable={true} size={this.size} variant={this.variant} class={this.h.classes(this.classNames)} type={this.type} inverse={this.inverse}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.buttonRef = el as HTMLButtonElement)}\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\tonMouseDown={() => (this.isPressed = true)}\n\t\t\t\t\tonMouseUp={() => (this.isPressed = false)}\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.focusable ? '0' : '-1'}\n\t\t\t\t\taria-activedescendant={this.wcagActiveDescendant}\n\t\t\t\t\taria-describedby={this.wcagActiveDescendant}\n\t\t\t\t\taria-description={this.wcagDescription}\n\t\t\t\t\taria-controls={this.wcagControls}\n\t\t\t\t\taria-details={this.wcagDetails}\n\t\t\t\t\taria-expanded={toBoolAttrIfDefined(this.wcagExpanded)}\n\t\t\t\t\taria-label={this.wcagLabel}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\taria-owns={this.wcagOwns}\n\t\t\t\t\taria-haspopup={toBoolAttrIfDefined(this.wcagHasPopup)}\n\t\t\t\t\taria-pressed={toBoolAttr(this.isPressed)}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\taria-current={this.wcagCurrent}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot('right-icon') && <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') && <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\te.preventDefault()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\te.preventDefault()\n\t\tthis.govFocus.emit(e)\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\te.preventDefault()\n\t\tthis.govBlur.emit(e)\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.buttonRef.focus()\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateWcagRef(this.wcagActiveDescendant, 'aria-activedescendant', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagControls, 'aria-controls', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagDetails, 'aria-details', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagOwns, 'aria-owns', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagHasPopup, 'aria-haspopup', ButtonClass.root)\n\t\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, ButtonClass.root)\n\t\t}\n\t}\n}\n"]}
@@ -148,6 +148,9 @@
148
148
  /*
149
149
  - Variables - Form multiselect
150
150
  */
151
+ /*
152
+ - Variables - Form password power
153
+ */
151
154
  /*
152
155
  - Variables - Form checkbox & radio
153
156
  */