@gov-design-system-ce/components 0.0.65 → 0.0.67

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 (376) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
  3. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-accordion.cjs.entry.js +2 -2
  5. package/dist/cjs/gov-app.cjs.entry.js +159 -0
  6. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  7. package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
  8. package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
  9. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -2
  10. package/dist/cjs/gov-button.cjs.entry.js +9 -4
  11. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-card.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-chip.cjs.entry.js +7 -2
  14. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
  16. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  18. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
  19. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  20. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-form-file.cjs.entry.js +2 -2
  23. package/dist/cjs/gov-form-input.cjs.entry.js +2 -2
  24. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  25. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-form-multi-select.cjs.entry.js +73 -10
  27. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
  29. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  30. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-icon.cjs.entry.js +2 -2
  32. package/dist/cjs/gov-infobar.cjs.entry.js +13 -13
  33. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-modal.cjs.entry.js +11 -11
  35. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-nav.cjs.entry.js +2 -2
  37. package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
  38. package/dist/cjs/gov-prompt.cjs.entry.js +14 -14
  39. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -1
  40. package/dist/cjs/gov-side-nav.cjs.entry.js +2 -2
  41. package/dist/cjs/gov-skeleton.cjs.entry.js +2 -2
  42. package/dist/cjs/gov-statsbar-item.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  45. package/dist/cjs/gov-tag.cjs.entry.js +7 -2
  46. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  47. package/dist/cjs/gov-toast.cjs.entry.js +2 -1
  48. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-tooltip.cjs.entry.js +1 -1
  50. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-wizard.cjs.entry.js +2 -2
  52. package/dist/cjs/helpers-2c870ff5.js +19 -0
  53. package/dist/cjs/helpers-2c870ff5.js.map +1 -0
  54. package/dist/cjs/loader.cjs.js +1 -1
  55. package/dist/cjs/{wcag-d7912060.js → wcag-ebd590c0.js} +2 -2
  56. package/dist/cjs/{wcag-d7912060.js.map → wcag-ebd590c0.js.map} +1 -1
  57. package/dist/cjs/{win-0427c131.js → win-9d1a8a53.js} +2 -2
  58. package/dist/cjs/win-9d1a8a53.js.map +1 -0
  59. package/dist/collection/components/gov-accordion/gov-accordion-item.css +1 -0
  60. package/dist/collection/components/gov-button/button/gov-button.css +0 -15
  61. package/dist/collection/components/gov-button/button/gov-button.js +44 -5
  62. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  63. package/dist/collection/components/gov-chip/gov-chip.css +0 -15
  64. package/dist/collection/components/gov-chip/gov-chip.js +40 -1
  65. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  66. package/dist/collection/components/gov-control-group/constants.js +1 -1
  67. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  68. package/dist/collection/components/gov-control-group/gov-control-group.css +18 -0
  69. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  70. package/dist/collection/components/gov-error-code/gov-error-code.css +4 -4
  71. package/dist/collection/components/gov-form/control/gov-form-control.css +13 -13
  72. package/dist/collection/components/gov-form/label/gov-form-label.css +5 -0
  73. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +250 -11
  74. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  75. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
  76. package/dist/collection/components/gov-icon/helpers.js +14 -0
  77. package/dist/collection/components/gov-icon/helpers.js.map +1 -0
  78. package/dist/collection/components/gov-infobar/gov-infobar.css +3 -5
  79. package/dist/collection/components/gov-infobar/gov-infobar.js +13 -12
  80. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  81. package/dist/collection/components/gov-modal/gov-modal.js +13 -12
  82. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
  83. package/dist/collection/components/gov-promp/gov-prompt.js +18 -17
  84. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
  85. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +2 -2
  86. package/dist/collection/components/gov-tag/gov-tag.css +0 -15
  87. package/dist/collection/components/gov-tag/gov-tag.js +40 -1
  88. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  89. package/dist/collection/components/gov-toast/gov-toast.js +2 -1
  90. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  91. package/dist/collection/components/gov-tooltip/gov-tooltip.css +0 -2
  92. package/dist/collection/helpers/Dom/win.js +1 -1
  93. package/dist/collection/helpers/Dom/win.js.map +1 -1
  94. package/dist/collection/pages/Button.js +4 -0
  95. package/dist/collection/pages/Button.js.map +1 -1
  96. package/dist/collection/pages/ControlGroup.js +95 -0
  97. package/dist/collection/pages/ControlGroup.js.map +1 -1
  98. package/dist/collection/pages/Forms.js +16 -0
  99. package/dist/collection/pages/Forms.js.map +1 -1
  100. package/dist/collection/pages/Infobar.js +44 -0
  101. package/dist/collection/pages/Infobar.js.map +1 -1
  102. package/dist/collection/utils/helpers.types.js +54 -0
  103. package/dist/collection/utils/helpers.types.js.map +1 -0
  104. package/dist/components/gov-accordion-item.js +1 -1
  105. package/dist/components/gov-accordion-item.js.map +1 -1
  106. package/dist/components/gov-accordion.js +1 -1
  107. package/dist/components/gov-app.js +1 -1
  108. package/dist/components/gov-app.js.map +1 -1
  109. package/dist/components/gov-attachments-item.js +1 -1
  110. package/dist/components/gov-attachments.js +1 -1
  111. package/dist/components/gov-backdrop.js +1 -1
  112. package/dist/components/gov-breadcrumbs.js +1 -1
  113. package/dist/components/gov-button.js +1 -1
  114. package/dist/components/gov-card.js +1 -1
  115. package/dist/components/gov-chip.js +1 -1
  116. package/dist/components/gov-control-group.js +1 -1
  117. package/dist/components/gov-control-group.js.map +1 -1
  118. package/dist/components/gov-error-code.js +1 -1
  119. package/dist/components/gov-error-code.js.map +1 -1
  120. package/dist/components/gov-form-autocomplete.js +1 -1
  121. package/dist/components/gov-form-checkbox.js +1 -1
  122. package/dist/components/gov-form-control.js +1 -1
  123. package/dist/components/gov-form-control.js.map +1 -1
  124. package/dist/components/gov-form-file.js +1 -1
  125. package/dist/components/gov-form-input.js +1 -1
  126. package/dist/components/gov-form-label.js +1 -1
  127. package/dist/components/gov-form-label.js.map +1 -1
  128. package/dist/components/gov-form-multi-select.js +1 -1
  129. package/dist/components/gov-form-multi-select.js.map +1 -1
  130. package/dist/components/gov-form-radio.js +1 -1
  131. package/dist/components/gov-form-select.js +1 -1
  132. package/dist/components/gov-form-switch.js +1 -1
  133. package/dist/components/gov-icon.js +1 -1
  134. package/dist/components/gov-infobar.js +1 -1
  135. package/dist/components/gov-infobar.js.map +1 -1
  136. package/dist/components/gov-loading.js +1 -1
  137. package/dist/components/gov-modal.js +1 -1
  138. package/dist/components/gov-modal.js.map +1 -1
  139. package/dist/components/gov-nav.js +1 -1
  140. package/dist/components/gov-pagination.js +1 -1
  141. package/dist/components/gov-prompt.js +1 -1
  142. package/dist/components/gov-prompt.js.map +1 -1
  143. package/dist/components/gov-side-nav-item.js +1 -1
  144. package/dist/components/gov-side-nav.js +1 -1
  145. package/dist/components/gov-skeleton.js +1 -1
  146. package/dist/components/gov-statsbar-item.js +1 -1
  147. package/dist/components/gov-statsbar-item.js.map +1 -1
  148. package/dist/components/gov-tabs.js +1 -1
  149. package/dist/components/gov-tag.js +1 -1
  150. package/dist/components/gov-tag.js.map +1 -1
  151. package/dist/components/gov-tile.js +1 -1
  152. package/dist/components/gov-toast.js +1 -1
  153. package/dist/components/gov-toast.js.map +1 -1
  154. package/dist/components/gov-tooltip-content.js +1 -1
  155. package/dist/components/gov-tooltip.js +1 -1
  156. package/dist/components/gov-tooltip.js.map +1 -1
  157. package/dist/components/gov-wizard-item.js +1 -1
  158. package/dist/components/gov-wizard.js +1 -1
  159. package/dist/components/p-00b7c4f5.js +2 -0
  160. package/dist/components/{p-d60bcfde.js → p-26dfbba1.js} +2 -2
  161. package/dist/components/p-2bf5b814.js +2 -0
  162. package/dist/components/p-2bf5b814.js.map +1 -0
  163. package/dist/components/p-3e4eae42.js +2 -0
  164. package/dist/components/p-3e4eae42.js.map +1 -0
  165. package/dist/components/{p-9e0bf80f.js → p-464fc42a.js} +2 -2
  166. package/dist/components/{p-9e3c2bf4.js → p-4fdfb242.js} +2 -2
  167. package/dist/components/{p-f2efd9b5.js → p-530fbb0a.js} +2 -2
  168. package/dist/components/{p-b9d84775.js → p-8cdad015.js} +2 -2
  169. package/dist/components/{p-20072d33.js → p-a00cf51c.js} +2 -2
  170. package/dist/components/{p-f775857a.js → p-a0a3393f.js} +2 -2
  171. package/dist/components/p-b07b6908.js +2 -0
  172. package/dist/components/p-b07b6908.js.map +1 -0
  173. package/dist/components/p-d23e6972.js +2 -0
  174. package/dist/components/p-d23e6972.js.map +1 -0
  175. package/dist/core/core.css +1 -1
  176. package/dist/core/core.esm.js +1 -1
  177. package/dist/core/core.esm.js.map +1 -1
  178. package/dist/core/{p-c0be9590.entry.js → p-093160bb.entry.js} +2 -2
  179. package/dist/core/{p-9af6210d.entry.js → p-0950ca8d.entry.js} +2 -2
  180. package/dist/core/{p-466f885b.entry.js → p-13942637.entry.js} +2 -2
  181. package/dist/core/p-13942637.entry.js.map +1 -0
  182. package/dist/core/{p-ae13fbbc.entry.js → p-18396341.entry.js} +2 -2
  183. package/dist/core/p-18396341.entry.js.map +1 -0
  184. package/dist/core/p-1fd3d109.entry.js +2 -0
  185. package/dist/core/{p-2bcabdd5.entry.js.map → p-1fd3d109.entry.js.map} +1 -1
  186. package/dist/core/{p-965f24fb.entry.js → p-26921fac.entry.js} +2 -2
  187. package/dist/core/{p-c3e4700b.entry.js → p-28c83bdf.entry.js} +2 -2
  188. package/dist/core/p-2bf5b814.js +2 -0
  189. package/dist/core/p-2bf5b814.js.map +1 -0
  190. package/dist/core/p-31b93317.entry.js +2 -0
  191. package/dist/core/p-31b93317.entry.js.map +1 -0
  192. package/dist/core/{p-e9c0fac1.entry.js → p-3aa4cf18.entry.js} +2 -2
  193. package/dist/core/{p-029beaf4.entry.js → p-6b1c11ba.entry.js} +2 -2
  194. package/dist/core/p-6b1c11ba.entry.js.map +1 -0
  195. package/dist/core/p-74882c70.entry.js +2 -0
  196. package/dist/core/p-74882c70.entry.js.map +1 -0
  197. package/dist/core/{p-b3840f50.entry.js → p-79ca1b62.entry.js} +2 -2
  198. package/dist/core/{p-a54c1e85.entry.js → p-7cd73b1e.entry.js} +2 -2
  199. package/dist/core/p-878741b6.entry.js +2 -0
  200. package/dist/core/{p-9d4a6e9b.entry.js.map → p-878741b6.entry.js.map} +1 -1
  201. package/dist/core/{p-2016172f.entry.js → p-89b3e4d4.entry.js} +2 -2
  202. package/dist/core/{p-2016172f.entry.js.map → p-89b3e4d4.entry.js.map} +1 -1
  203. package/dist/core/p-9aeb4282.entry.js +2 -0
  204. package/dist/core/p-9aeb4282.entry.js.map +1 -0
  205. package/dist/core/{p-a3b6c5c7.entry.js → p-9d10131d.entry.js} +2 -2
  206. package/dist/core/p-a7d895cb.entry.js +2 -0
  207. package/dist/core/{p-7b7f8cc2.entry.js.map → p-a7d895cb.entry.js.map} +1 -1
  208. package/dist/core/{p-a133cdda.entry.js → p-acb40ea2.entry.js} +2 -2
  209. package/dist/core/{p-b49ac370.entry.js → p-af1433f7.entry.js} +2 -2
  210. package/dist/core/{p-eb0c9716.entry.js → p-ba7cbd7f.entry.js} +2 -2
  211. package/dist/core/p-bb7f0a66.entry.js +2 -0
  212. package/dist/core/p-bb7f0a66.entry.js.map +1 -0
  213. package/dist/core/p-bd763705.entry.js +2 -0
  214. package/dist/core/p-bd763705.entry.js.map +1 -0
  215. package/dist/core/p-bf39d442.entry.js +2 -0
  216. package/dist/core/p-bf39d442.entry.js.map +1 -0
  217. package/dist/core/p-c44d44df.entry.js +2 -0
  218. package/dist/core/p-c44d44df.entry.js.map +1 -0
  219. package/dist/core/{p-87b5668e.entry.js → p-cef10fe5.entry.js} +2 -2
  220. package/dist/core/p-d1a3e571.entry.js +2 -0
  221. package/dist/core/p-d1a3e571.entry.js.map +1 -0
  222. package/dist/core/p-d23e6972.js +2 -0
  223. package/dist/core/p-d23e6972.js.map +1 -0
  224. package/dist/core/{p-4accef73.entry.js → p-d4d59523.entry.js} +2 -2
  225. package/dist/core/p-ea275d90.entry.js +2 -0
  226. package/dist/core/p-ea275d90.entry.js.map +1 -0
  227. package/dist/core/p-ecc8cc47.entry.js +2 -0
  228. package/dist/core/p-ecc8cc47.entry.js.map +1 -0
  229. package/dist/core/p-ee35ca3f.entry.js +2 -0
  230. package/dist/core/p-ee35ca3f.entry.js.map +1 -0
  231. package/dist/core/{p-6833aeaf.entry.js → p-f4a6a339.entry.js} +2 -2
  232. package/dist/core/p-faabd332.js +2 -0
  233. package/dist/core/p-fc81b896.entry.js +2 -0
  234. package/dist/core/p-fc81b896.entry.js.map +1 -0
  235. package/dist/core/{p-39d79238.entry.js → p-fda41420.entry.js} +2 -2
  236. package/dist/esm/core.js +1 -1
  237. package/dist/esm/gov-accordion-item.entry.js +1 -1
  238. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  239. package/dist/esm/gov-accordion.entry.js +2 -2
  240. package/dist/esm/gov-app.entry.js +159 -0
  241. package/dist/esm/gov-app.entry.js.map +1 -1
  242. package/dist/esm/gov-attachments_3.entry.js +2 -2
  243. package/dist/esm/gov-backdrop.entry.js +2 -2
  244. package/dist/esm/gov-breadcrumbs.entry.js +2 -2
  245. package/dist/esm/gov-button.entry.js +9 -4
  246. package/dist/esm/gov-button.entry.js.map +1 -1
  247. package/dist/esm/gov-card.entry.js +2 -2
  248. package/dist/esm/gov-chip.entry.js +7 -2
  249. package/dist/esm/gov-chip.entry.js.map +1 -1
  250. package/dist/esm/gov-control-group.entry.js +2 -2
  251. package/dist/esm/gov-control-group.entry.js.map +1 -1
  252. package/dist/esm/gov-error-code.entry.js +1 -1
  253. package/dist/esm/gov-error-code.entry.js.map +1 -1
  254. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  255. package/dist/esm/gov-form-control.entry.js +1 -1
  256. package/dist/esm/gov-form-control.entry.js.map +1 -1
  257. package/dist/esm/gov-form-file.entry.js +2 -2
  258. package/dist/esm/gov-form-input.entry.js +2 -2
  259. package/dist/esm/gov-form-label.entry.js +1 -1
  260. package/dist/esm/gov-form-label.entry.js.map +1 -1
  261. package/dist/esm/gov-form-multi-select.entry.js +73 -10
  262. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  263. package/dist/esm/gov-form-radio.entry.js +2 -2
  264. package/dist/esm/gov-form-select.entry.js +2 -2
  265. package/dist/esm/gov-form-switch.entry.js +2 -2
  266. package/dist/esm/gov-icon.entry.js +2 -2
  267. package/dist/esm/gov-infobar.entry.js +13 -13
  268. package/dist/esm/gov-infobar.entry.js.map +1 -1
  269. package/dist/esm/gov-modal.entry.js +11 -11
  270. package/dist/esm/gov-modal.entry.js.map +1 -1
  271. package/dist/esm/gov-nav.entry.js +2 -2
  272. package/dist/esm/gov-pagination.entry.js +2 -2
  273. package/dist/esm/gov-prompt.entry.js +14 -14
  274. package/dist/esm/gov-prompt.entry.js.map +1 -1
  275. package/dist/esm/gov-side-nav.entry.js +2 -2
  276. package/dist/esm/gov-skeleton.entry.js +2 -2
  277. package/dist/esm/gov-statsbar-item.entry.js +1 -1
  278. package/dist/esm/gov-statsbar-item.entry.js.map +1 -1
  279. package/dist/esm/gov-tabs.entry.js +2 -2
  280. package/dist/esm/gov-tag.entry.js +7 -2
  281. package/dist/esm/gov-tag.entry.js.map +1 -1
  282. package/dist/esm/gov-toast.entry.js +2 -1
  283. package/dist/esm/gov-toast.entry.js.map +1 -1
  284. package/dist/esm/gov-tooltip.entry.js +1 -1
  285. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  286. package/dist/esm/gov-wizard.entry.js +2 -2
  287. package/dist/esm/helpers-bc0fd116.js +17 -0
  288. package/dist/esm/helpers-bc0fd116.js.map +1 -0
  289. package/dist/esm/loader.js +1 -1
  290. package/dist/esm/{wcag-06bd4d01.js → wcag-b7b67e25.js} +2 -2
  291. package/dist/esm/{wcag-06bd4d01.js.map → wcag-b7b67e25.js.map} +1 -1
  292. package/dist/esm/{win-0a50f66e.js → win-0d231cca.js} +2 -2
  293. package/dist/esm/win-0d231cca.js.map +1 -0
  294. package/dist/hydrate/index.js +317 -55
  295. package/dist/types/components/gov-button/button/gov-button.d.ts +9 -1
  296. package/dist/types/components/gov-chip/gov-chip.d.ts +8 -0
  297. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  298. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +33 -1
  299. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +1 -0
  300. package/dist/types/components/gov-icon/helpers.d.ts +5 -0
  301. package/dist/types/components/gov-infobar/gov-infobar.d.ts +4 -4
  302. package/dist/types/components/gov-modal/gov-modal.d.ts +3 -3
  303. package/dist/types/components/gov-promp/gov-prompt.d.ts +3 -3
  304. package/dist/types/components/gov-tag/gov-tag.d.ts +8 -0
  305. package/dist/types/components.d.ts +86 -2
  306. package/dist/types/utils/helpers.types.d.ts +49 -0
  307. package/package.json +2 -2
  308. package/dist/cjs/win-0427c131.js.map +0 -1
  309. package/dist/collection/helpers/StorybookDocsTemplate.js +0 -9
  310. package/dist/collection/helpers/StorybookDocsTemplate.js.map +0 -1
  311. package/dist/components/p-94bf1f51.js +0 -2
  312. package/dist/components/p-94bf1f51.js.map +0 -1
  313. package/dist/components/p-ae894a40.js +0 -2
  314. package/dist/components/p-cac3881f.js +0 -2
  315. package/dist/components/p-cac3881f.js.map +0 -1
  316. package/dist/components/p-dc1e2f70.js +0 -2
  317. package/dist/components/p-dc1e2f70.js.map +0 -1
  318. package/dist/core/p-029beaf4.entry.js.map +0 -1
  319. package/dist/core/p-1a04e45e.entry.js +0 -2
  320. package/dist/core/p-1a04e45e.entry.js.map +0 -1
  321. package/dist/core/p-2a95f9fb.entry.js +0 -2
  322. package/dist/core/p-2a95f9fb.entry.js.map +0 -1
  323. package/dist/core/p-2aef69ed.entry.js +0 -2
  324. package/dist/core/p-2aef69ed.entry.js.map +0 -1
  325. package/dist/core/p-2bcabdd5.entry.js +0 -2
  326. package/dist/core/p-356adceb.entry.js +0 -2
  327. package/dist/core/p-356adceb.entry.js.map +0 -1
  328. package/dist/core/p-461d28ed.entry.js +0 -2
  329. package/dist/core/p-461d28ed.entry.js.map +0 -1
  330. package/dist/core/p-466f885b.entry.js.map +0 -1
  331. package/dist/core/p-53549fe4.entry.js +0 -2
  332. package/dist/core/p-53549fe4.entry.js.map +0 -1
  333. package/dist/core/p-570ef4e5.js +0 -2
  334. package/dist/core/p-603a9d99.entry.js +0 -2
  335. package/dist/core/p-603a9d99.entry.js.map +0 -1
  336. package/dist/core/p-7b7f8cc2.entry.js +0 -2
  337. package/dist/core/p-7d85bc32.entry.js +0 -2
  338. package/dist/core/p-7d85bc32.entry.js.map +0 -1
  339. package/dist/core/p-9d4a6e9b.entry.js +0 -2
  340. package/dist/core/p-a9493d11.entry.js +0 -2
  341. package/dist/core/p-a9493d11.entry.js.map +0 -1
  342. package/dist/core/p-ae13fbbc.entry.js.map +0 -1
  343. package/dist/core/p-c5e9da95.entry.js +0 -2
  344. package/dist/core/p-c5e9da95.entry.js.map +0 -1
  345. package/dist/core/p-cac3881f.js +0 -2
  346. package/dist/core/p-cac3881f.js.map +0 -1
  347. package/dist/core/p-d4c468b9.entry.js +0 -2
  348. package/dist/core/p-d4c468b9.entry.js.map +0 -1
  349. package/dist/core/p-f9f212a6.entry.js +0 -2
  350. package/dist/core/p-f9f212a6.entry.js.map +0 -1
  351. package/dist/esm/win-0a50f66e.js.map +0 -1
  352. package/dist/types/helpers/StorybookDocsTemplate.d.ts +0 -3
  353. /package/dist/components/{p-ae894a40.js.map → p-00b7c4f5.js.map} +0 -0
  354. /package/dist/components/{p-d60bcfde.js.map → p-26dfbba1.js.map} +0 -0
  355. /package/dist/components/{p-9e0bf80f.js.map → p-464fc42a.js.map} +0 -0
  356. /package/dist/components/{p-9e3c2bf4.js.map → p-4fdfb242.js.map} +0 -0
  357. /package/dist/components/{p-f2efd9b5.js.map → p-530fbb0a.js.map} +0 -0
  358. /package/dist/components/{p-b9d84775.js.map → p-8cdad015.js.map} +0 -0
  359. /package/dist/components/{p-20072d33.js.map → p-a00cf51c.js.map} +0 -0
  360. /package/dist/components/{p-f775857a.js.map → p-a0a3393f.js.map} +0 -0
  361. /package/dist/core/{p-c0be9590.entry.js.map → p-093160bb.entry.js.map} +0 -0
  362. /package/dist/core/{p-9af6210d.entry.js.map → p-0950ca8d.entry.js.map} +0 -0
  363. /package/dist/core/{p-965f24fb.entry.js.map → p-26921fac.entry.js.map} +0 -0
  364. /package/dist/core/{p-c3e4700b.entry.js.map → p-28c83bdf.entry.js.map} +0 -0
  365. /package/dist/core/{p-e9c0fac1.entry.js.map → p-3aa4cf18.entry.js.map} +0 -0
  366. /package/dist/core/{p-b3840f50.entry.js.map → p-79ca1b62.entry.js.map} +0 -0
  367. /package/dist/core/{p-a54c1e85.entry.js.map → p-7cd73b1e.entry.js.map} +0 -0
  368. /package/dist/core/{p-a3b6c5c7.entry.js.map → p-9d10131d.entry.js.map} +0 -0
  369. /package/dist/core/{p-a133cdda.entry.js.map → p-acb40ea2.entry.js.map} +0 -0
  370. /package/dist/core/{p-b49ac370.entry.js.map → p-af1433f7.entry.js.map} +0 -0
  371. /package/dist/core/{p-eb0c9716.entry.js.map → p-ba7cbd7f.entry.js.map} +0 -0
  372. /package/dist/core/{p-87b5668e.entry.js.map → p-cef10fe5.entry.js.map} +0 -0
  373. /package/dist/core/{p-4accef73.entry.js.map → p-d4d59523.entry.js.map} +0 -0
  374. /package/dist/core/{p-6833aeaf.entry.js.map → p-f4a6a339.entry.js.map} +0 -0
  375. /package/dist/core/{p-570ef4e5.js.map → p-faabd332.js.map} +0 -0
  376. /package/dist/core/{p-39d79238.entry.js.map → p-fda41420.entry.js.map} +0 -0
@@ -298,7 +298,6 @@
298
298
  [type=solid][variant=primary].gov-chip .element {
299
299
  background-color: var(--gov-button-primary-solid-bg, var(--gov-color-primary));
300
300
  color: var(--gov-button-primary-solid-color, var(--gov-color-neutral-white));
301
- border-width: 0;
302
301
  }
303
302
  [type=solid][variant=primary][inverse=""].gov-chip .element, [type=solid][variant=primary][inverse=true i].gov-chip .element, [type=solid][variant=primary][inverse="1"].gov-chip .element {
304
303
  color: var(--gov-button-primary-solid-inverse-color, var(--gov-color-primary));
@@ -375,7 +374,6 @@
375
374
  }
376
375
  [type=base][variant=primary].gov-chip .element {
377
376
  color: var(--gov-button-primary-base-color, var(--gov-color-primary));
378
- border-width: 0;
379
377
  }
380
378
  [type=base][variant=primary][inverse=""].gov-chip .element, [type=base][variant=primary][inverse=true i].gov-chip .element, [type=base][variant=primary][inverse="1"].gov-chip .element {
381
379
  color: var(--gov-button-primary-base-inverse-color, var(--gov-color-neutral-white));
@@ -409,7 +407,6 @@
409
407
  }
410
408
  [type=link][variant=primary].gov-chip .element {
411
409
  color: var(--gov-button-primary-link-color, var(--gov-color-primary));
412
- border-width: 0;
413
410
  }
414
411
  [type=link][variant=primary][inverse=""].gov-chip .element, [type=link][variant=primary][inverse=true i].gov-chip .element, [type=link][variant=primary][inverse="1"].gov-chip .element {
415
412
  color: var(--gov-button-primary-link-inverse-color, var(--gov-color-neutral-white));
@@ -445,7 +442,6 @@
445
442
  [type=solid][variant=secondary].gov-chip .element {
446
443
  background-color: var(--gov-button-secondary-solid-bg, var(--gov-color-secondary));
447
444
  color: var(--gov-button-secondary-solid-color, var(--gov-color-neutral-white));
448
- border-width: 0;
449
445
  }
450
446
  [type=solid][variant=secondary][inverse=""].gov-chip .element, [type=solid][variant=secondary][inverse=true i].gov-chip .element, [type=solid][variant=secondary][inverse="1"].gov-chip .element {
451
447
  color: var(--gov-button-secondary-solid-inverse-color, var(--gov-color-secondary));
@@ -524,7 +520,6 @@
524
520
  }
525
521
  [type=base][variant=secondary].gov-chip .element {
526
522
  color: var(--gov-button-secondary-base-color, var(--gov-color-secondary));
527
- border-width: 0;
528
523
  }
529
524
  [type=base][variant=secondary][inverse=""].gov-chip .element, [type=base][variant=secondary][inverse=true i].gov-chip .element, [type=base][variant=secondary][inverse="1"].gov-chip .element {
530
525
  color: var(--gov-button-secondary-base-inverse-color, var(--gov-color-neutral-white));
@@ -558,7 +553,6 @@
558
553
  }
559
554
  [type=link][variant=secondary].gov-chip .element {
560
555
  color: var(--gov-button-secondary-link-color, var(--gov-color-secondary));
561
- border-width: 0;
562
556
  }
563
557
  [type=link][variant=secondary][inverse=""].gov-chip .element, [type=link][variant=secondary][inverse=true i].gov-chip .element, [type=link][variant=secondary][inverse="1"].gov-chip .element {
564
558
  color: var(--gov-button-secondary-link-inverse-color, var(--gov-color-neutral-white));
@@ -594,7 +588,6 @@
594
588
  [type=solid][variant=error].gov-chip .element {
595
589
  background-color: var(--gov-button-error-solid-bg, var(--gov-color-error));
596
590
  color: var(--gov-button-error-solid-color, var(--gov-color-neutral-white));
597
- border-width: 0;
598
591
  }
599
592
  [type=solid][variant=error][inverse=""].gov-chip .element, [type=solid][variant=error][inverse=true i].gov-chip .element, [type=solid][variant=error][inverse="1"].gov-chip .element {
600
593
  color: var(--gov-button-error-solid-inverse-color, var(--gov-color-error));
@@ -671,7 +664,6 @@
671
664
  }
672
665
  [type=base][variant=error].gov-chip .element {
673
666
  color: var(--gov-button-error-base-color, var(--gov-color-error));
674
- border-width: 0;
675
667
  }
676
668
  [type=base][variant=error][inverse=""].gov-chip .element, [type=base][variant=error][inverse=true i].gov-chip .element, [type=base][variant=error][inverse="1"].gov-chip .element {
677
669
  color: var(--gov-button-error-base-inverse-color, var(--gov-color-neutral-white));
@@ -705,7 +697,6 @@
705
697
  }
706
698
  [type=link][variant=error].gov-chip .element {
707
699
  color: var(--gov-button-error-link-color, var(--gov-color-error));
708
- border-width: 0;
709
700
  }
710
701
  [type=link][variant=error][inverse=""].gov-chip .element, [type=link][variant=error][inverse=true i].gov-chip .element, [type=link][variant=error][inverse="1"].gov-chip .element {
711
702
  color: var(--gov-button-error-link-inverse-color, var(--gov-color-neutral-white));
@@ -741,7 +732,6 @@
741
732
  [type=solid][variant=success].gov-chip .element {
742
733
  background-color: var(--gov-button-success-solid-bg, var(--gov-color-success-500));
743
734
  color: var(--gov-button-success-solid-color, var(--gov-color-neutral-white));
744
- border-width: 0;
745
735
  }
746
736
  [type=solid][variant=success][inverse=""].gov-chip .element, [type=solid][variant=success][inverse=true i].gov-chip .element, [type=solid][variant=success][inverse="1"].gov-chip .element {
747
737
  color: var(--gov-button-success-solid-inverse-color, var(--gov-color-success));
@@ -818,7 +808,6 @@
818
808
  }
819
809
  [type=base][variant=success].gov-chip .element {
820
810
  color: var(--gov-button-success-base-color, var(--gov-color-success-500));
821
- border-width: 0;
822
811
  }
823
812
  [type=base][variant=success][inverse=""].gov-chip .element, [type=base][variant=success][inverse=true i].gov-chip .element, [type=base][variant=success][inverse="1"].gov-chip .element {
824
813
  color: var(--gov-button-success-base-inverse-color, var(--gov-color-neutral-white));
@@ -852,7 +841,6 @@
852
841
  }
853
842
  [type=link][variant=success].gov-chip .element {
854
843
  color: var(--gov-button-success-link-color, var(--gov-color-success-500));
855
- border-width: 0;
856
844
  }
857
845
  [type=link][variant=success][inverse=""].gov-chip .element, [type=link][variant=success][inverse=true i].gov-chip .element, [type=link][variant=success][inverse="1"].gov-chip .element {
858
846
  color: var(--gov-button-success-link-inverse-color, var(--gov-color-neutral-white));
@@ -888,7 +876,6 @@
888
876
  [type=solid][variant=warning].gov-chip .element {
889
877
  background-color: var(--gov-button-warning-solid-bg, var(--gov-color-warning-500));
890
878
  color: var(--gov-button-warning-solid-color, var(--gov-color-neutral-white));
891
- border-width: 0;
892
879
  }
893
880
  [type=solid][variant=warning][inverse=""].gov-chip .element, [type=solid][variant=warning][inverse=true i].gov-chip .element, [type=solid][variant=warning][inverse="1"].gov-chip .element {
894
881
  color: var(--gov-button-warning-solid-inverse-color, var(--gov-color-warning));
@@ -965,7 +952,6 @@
965
952
  }
966
953
  [type=base][variant=warning].gov-chip .element {
967
954
  color: var(--gov-button-warning-base-color, var(--gov-color-warning-500));
968
- border-width: 0;
969
955
  }
970
956
  [type=base][variant=warning][inverse=""].gov-chip .element, [type=base][variant=warning][inverse=true i].gov-chip .element, [type=base][variant=warning][inverse="1"].gov-chip .element {
971
957
  color: var(--gov-button-warning-base-inverse-color, var(--gov-color-neutral-white));
@@ -999,7 +985,6 @@
999
985
  }
1000
986
  [type=link][variant=warning].gov-chip .element {
1001
987
  color: var(--gov-button-warning-link-color, var(--gov-color-warning-500));
1002
- border-width: 0;
1003
988
  }
1004
989
  [type=link][variant=warning][inverse=""].gov-chip .element, [type=link][variant=warning][inverse=true i].gov-chip .element, [type=link][variant=warning][inverse="1"].gov-chip .element {
1005
990
  color: var(--gov-button-warning-link-inverse-color, var(--gov-color-neutral-white));
@@ -4,12 +4,15 @@ import { govHost, toBoolAttr } from "../../helpers/Dom/template";
4
4
  import { ChipClass, NativeType } from "./constants";
5
5
  import { ButtonSizes, ButtonVariants } from "../gov-button/button/constants";
6
6
  import { createID } from "../../utils/string.utils";
7
+ import { prepareIconFormat } from "../gov-icon/helpers";
7
8
  export class GovChip {
8
9
  constructor() {
9
10
  this.inverse = false;
10
11
  this.disabled = false;
11
12
  this.href = undefined;
12
13
  this.target = undefined;
14
+ this.iconLeft = undefined;
15
+ this.iconRight = undefined;
13
16
  this.size = ButtonSizes._M;
14
17
  this.tag = "span";
15
18
  this.variant = ButtonVariants.PRIMARY;
@@ -34,11 +37,13 @@ export class GovChip {
34
37
  render() {
35
38
  const Tag = this.href ? NativeType.A : this.tag;
36
39
  const nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined;
40
+ const iconLeft = prepareIconFormat(this.iconLeft);
41
+ const iconRight = prepareIconFormat(this.iconRight);
37
42
  return (h(Host, { class: this.h.classes([
38
43
  ChipClass.root,
39
44
  this.h.hasSlot("right") ? ChipClass.hasRight : undefined,
40
45
  this.h.hasSlot("left") ? ChipClass.hasLeft : undefined,
41
- ]), disabled: this.disabled, href: this.href, variant: this.variant, type: this.inverse ? undefined : "solid", size: this.size, inverse: this.inverse, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON }, h(Tag, { class: "element", href: this.href, target: this.target, "aria-label": this.wcagLabel, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), "aria-controls": this.wcagControls, "aria-selected": toBoolAttr(this.wcagSelected), tabindex: this.focusable ? "0" : "-1", id: this.identifier || this.chipId, type: nativeType }, this.h.hasSlot("left") && h("slot", { name: "left" }), this.h.hasSlot("left-icon") && h("slot", { name: "left-icon" }), h("slot", null), this.h.hasSlot("right-icon") && h("slot", { name: "right-icon" }), this.h.hasSlot("right") && h("slot", { name: "right" }))));
46
+ ]), disabled: this.disabled, href: this.href, variant: this.variant, type: this.inverse ? undefined : "solid", size: this.size, inverse: this.inverse, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON }, h(Tag, { class: "element", href: this.href, target: this.target, "aria-label": this.wcagLabel, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), "aria-controls": this.wcagControls, "aria-selected": toBoolAttr(this.wcagSelected), tabindex: this.focusable ? "0" : "-1", id: this.identifier || this.chipId, type: nativeType }, this.h.hasSlot("left") && h("slot", { name: "left" }), this.h.hasSlot("left-icon") && h("slot", { name: "left-icon" }), iconLeft && h("gov-icon", { type: iconLeft.type, name: iconLeft.name }), h("slot", null), this.h.hasSlot("right-icon") && h("slot", { name: "right-icon" }), this.h.hasSlot("right") && h("slot", { name: "right" }), iconRight && h("gov-icon", { type: iconRight.type, name: iconRight.name }))));
42
47
  }
43
48
  onClickHandler(e) {
44
49
  e.stopPropagation();
@@ -153,6 +158,40 @@ export class GovChip {
153
158
  "attribute": "target",
154
159
  "reflect": false
155
160
  },
161
+ "iconLeft": {
162
+ "type": "string",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "string",
166
+ "resolved": "string",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": true,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": "Definition of the button icon on the left. The icon must be defined in the form \"type/name\"."
174
+ },
175
+ "attribute": "icon-left",
176
+ "reflect": false
177
+ },
178
+ "iconRight": {
179
+ "type": "string",
180
+ "mutable": false,
181
+ "complexType": {
182
+ "original": "string",
183
+ "resolved": "string",
184
+ "references": {}
185
+ },
186
+ "required": false,
187
+ "optional": true,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": "Definition of the button icon on the left. The icon must be defined in the form \"type/name\"."
191
+ },
192
+ "attribute": "icon-right",
193
+ "reflect": false
194
+ },
156
195
  "size": {
157
196
  "type": "string",
158
197
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"gov-chip.js","sourceRoot":"","sources":["../../../../../../src/components/gov-chip/gov-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAErG,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAmB,MAAM,aAAa,CAAA;AACpE,OAAO,EAAE,WAAW,EAAmB,cAAc,EAAqB,MAAM,gCAAgC,CAAA;AAChH,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAMnD,MAAM,OAAO,OAAO;EAKnB;mBAUoC,KAAK;oBAKJ,KAAK;;;gBAcD,WAAW,CAAC,EAAE;eAIf,MAAM;mBAIA,cAAc,CAAC,OAAO;qBAK9B,IAAI;;;;;IAzCzC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAA;GACjC;EAgED,eAAe,CAAC,QAAgB;IAC/B,YAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;EACvD,CAAC;EAGD,YAAY,CAAC,QAAgB;IAC5B,YAAY,CAAC,WAAW,EA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O,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,CAAA;EACtC,CAAC;EAED;;KAEG;EAEH,KAAK,CAAC,QAAQ;IACb,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAA;EACxB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { govHost, toBoolAttr } from \"../../helpers/Dom/template\"\nimport { ChipClass, NativeType, NativeTypesType } from \"./constants\"\nimport { ButtonSizes, ButtonSizesType, ButtonVariants, ButtonVariantType } from \"../gov-button/button/constants\"\nimport { createID } from \"../../utils/string.utils\"\n\n@Component({\n\ttag: \"gov-chip\",\n\tstyleUrl: \"gov-chip.scss\",\n})\nexport class GovChip {\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\tprivate readonly chipId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.chipId = createID('GovChip')\n\t}\n\n\t@Element() host: HTMLGovChipElement\n\n\t/**\n\t * Determine if component should have inverse colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Makes the chip 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 * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\t/**\n\t * Chip’s size.\n\t */\n\t@Prop() readonly size: ButtonSizesType = ButtonSizes._M\n\t/**\n\t * Used to change the HTML tag in the chip\n\t */\n\t@Prop() readonly tag: NativeTypesType = \"span\"\n\t/**\n\t * Style variation of the chip.\n\t */\n\t@Prop() readonly variant: ButtonVariantType = ButtonVariants.PRIMARY\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom chip identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\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 * 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 * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected\n\t */\n\t@Prop({ attribute: \"wcag-selected\" }) readonly wcagSelected: boolean\n\t/**\n\t * Emitted when the button click.\n\t */\n\t@Event({ eventName: \"gov-click\" }) govClick: EventEmitter<PointerEvent>\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(ButtonVariants, newValue, ChipClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, ChipClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? NativeType.A : this.tag\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([\n\t\t\t\t\tChipClass.root,\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? ChipClass.hasRight : undefined,\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? ChipClass.hasLeft : undefined,\n\t\t\t\t])}\n\t\t\t\tdisabled={this.disabled}\n\t\t\t\thref={this.href}\n\t\t\t\tvariant={this.variant}\n\t\t\t\ttype={this.inverse ? undefined : \"solid\"}\n\t\t\t\tsize={this.size}\n\t\t\t\tinverse={this.inverse}\n\t\t\t\thoverable={Tag == NativeType.A || Tag == NativeType.BUTTON}\n\t\t\t>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\taria-label={this.wcagLabel}\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\taria-controls={this.wcagControls}\n\t\t\t\t\taria-selected={toBoolAttr(this.wcagSelected)}\n\t\t\t\t\ttabindex={this.focusable ? \"0\" : \"-1\"}\n\t\t\t\t\tid={this.identifier || this.chipId}\n\t\t\t\t\ttype={nativeType}>\n\t\t\t\t\t{this.h.hasSlot(\"left\") && <slot name=\"left\"></slot>}\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{this.h.hasSlot(\"right\") && <slot name=\"right\"></slot>}\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 && this.tag === NativeType.BUTTON) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Returns a unique tab trigger identifier\n\t */\n\t@Method()\n\tasync getTriggerIdentifier(): Promise<string> {\n\t\treturn this.identifier || this.chipId\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-chip.js","sourceRoot":"","sources":["../../../../../../src/components/gov-chip/gov-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAErG,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAmB,MAAM,aAAa,CAAA;AACpE,OAAO,EAAE,WAAW,EAAmB,cAAc,EAAqB,MAAM,gCAAgC,CAAA;AAChH,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAMtD,MAAM,OAAO,OAAO;EAKnB;mBAUoC,KAAK;oBAKJ,KAAK;;;;;gBAsBD,WAAW,CAAC,EAAE;eAIf,MAAM;mBAIA,cAAc,CAAC,OAAO;qBAK9B,IAAI;;;;;IAjDzC,IAAI,CAAC,CAAC,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;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { govHost, toBoolAttr } from \"../../helpers/Dom/template\"\nimport { ChipClass, NativeType, NativeTypesType } from \"./constants\"\nimport { ButtonSizes, ButtonSizesType, ButtonVariants, ButtonVariantType } from \"../gov-button/button/constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\n\n@Component({\n\ttag: \"gov-chip\",\n\tstyleUrl: \"gov-chip.scss\",\n})\nexport class GovChip {\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\tprivate readonly chipId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.chipId = createID('GovChip')\n\t}\n\n\t@Element() host: HTMLGovChipElement\n\n\t/**\n\t * Determine if component should have inverse colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Makes the chip 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 * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-left\"}) readonly iconLeft?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-right\"}) readonly iconRight?: string\n\t/**\n\t * Chip’s size.\n\t */\n\t@Prop() readonly size: ButtonSizesType = ButtonSizes._M\n\t/**\n\t * Used to change the HTML tag in the chip\n\t */\n\t@Prop() readonly tag: NativeTypesType = \"span\"\n\t/**\n\t * Style variation of the chip.\n\t */\n\t@Prop() readonly variant: ButtonVariantType = ButtonVariants.PRIMARY\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom chip identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\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 * 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 * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected\n\t */\n\t@Prop({ attribute: \"wcag-selected\" }) readonly wcagSelected: boolean\n\t/**\n\t * Emitted when the button click.\n\t */\n\t@Event({ eventName: \"gov-click\" }) govClick: EventEmitter<PointerEvent>\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(ButtonVariants, newValue, ChipClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, ChipClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? NativeType.A : this.tag\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\n\n\t\tconst iconLeft = prepareIconFormat(this.iconLeft)\n\t\tconst iconRight = prepareIconFormat(this.iconRight)\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([\n\t\t\t\t\tChipClass.root,\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? ChipClass.hasRight : undefined,\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? ChipClass.hasLeft : undefined,\n\t\t\t\t])}\n\t\t\t\tdisabled={this.disabled}\n\t\t\t\thref={this.href}\n\t\t\t\tvariant={this.variant}\n\t\t\t\ttype={this.inverse ? undefined : \"solid\"}\n\t\t\t\tsize={this.size}\n\t\t\t\tinverse={this.inverse}\n\t\t\t\thoverable={Tag == NativeType.A || Tag == NativeType.BUTTON}\n\t\t\t>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\taria-label={this.wcagLabel}\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\taria-controls={this.wcagControls}\n\t\t\t\t\taria-selected={toBoolAttr(this.wcagSelected)}\n\t\t\t\t\ttabindex={this.focusable ? \"0\" : \"-1\"}\n\t\t\t\t\tid={this.identifier || this.chipId}\n\t\t\t\t\ttype={nativeType}>\n\t\t\t\t\t{this.h.hasSlot(\"left\") && <slot name=\"left\"></slot>}\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t{iconLeft && \t<gov-icon type={iconLeft.type} name={iconLeft.name}></gov-icon>}\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{this.h.hasSlot(\"right\") && <slot name=\"right\"></slot>}\n\t\t\t\t\t{iconRight && \t<gov-icon type={iconRight.type} name={iconRight.name}></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 && this.tag === NativeType.BUTTON) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Returns a unique tab trigger identifier\n\t */\n\t@Method()\n\tasync getTriggerIdentifier(): Promise<string> {\n\t\treturn this.identifier || this.chipId\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { Variants } from "../../core/constants/variants";
2
2
  import { pick } from "../../utils/utils";
3
- export const ControlGroupVariants = pick(Variants, ['PRIMARY', 'SECONDARY']);
3
+ export const ControlGroupVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'SUCCESS', 'ERROR', 'WARNING']);
4
4
  export const ControlGroupClass = {
5
5
  root: 'gov-control-group',
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-control-group/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAExC,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAA;AAG5E,MAAM,CAAC,MAAM,iBAAiB,GAAG;EAChC,IAAI,EAAE,mBAAmB;CACzB,CAAA","sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\n\nexport const ControlGroupVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type ControlGroupVariantType = `${ValueOf<typeof ControlGroupVariants>}`\n\nexport const ControlGroupClass = {\n\troot: 'gov-control-group',\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-control-group/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAExC,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;AAG3G,MAAM,CAAC,MAAM,iBAAiB,GAAG;EAChC,IAAI,EAAE,mBAAmB;CACzB,CAAA","sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\n\nexport const ControlGroupVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'SUCCESS', 'ERROR', 'WARNING'])\nexport type ControlGroupVariantType = `${ValueOf<typeof ControlGroupVariants>}`\n\nexport const ControlGroupClass = {\n\troot: 'gov-control-group',\n}\n"]}
@@ -254,6 +254,24 @@
254
254
  .gov-control-group[variant=secondary] > * {
255
255
  border-right: var(--gov-control-group-border-secondary, 0.0625rem solid var(--gov-color-secondary-700));
256
256
  }
257
+ .gov-control-group[variant=success] {
258
+ border: var(--gov-control-group-border-success, 0.0625rem solid var(--gov-color-success-500));
259
+ }
260
+ .gov-control-group[variant=success] > * {
261
+ border-right: var(--gov-control-group-border-success, 0.0625rem solid var(--gov-color-success-500));
262
+ }
263
+ .gov-control-group[variant=warning] {
264
+ border: var(--gov-control-group-border-warning, 0.0625rem solid var(--gov-color-warning-500));
265
+ }
266
+ .gov-control-group[variant=warning] > * {
267
+ border-right: var(--gov-control-group-border-warning, 0.0625rem solid var(--gov-color-warning-500));
268
+ }
269
+ .gov-control-group[variant=error] {
270
+ border: var(--gov-control-group-border-error, 0.0625rem solid var(--gov-color-error-400));
271
+ }
272
+ .gov-control-group[variant=error] > * {
273
+ border-right: var(--gov-control-group-border-error, 0.0625rem solid var(--gov-color-error-400));
274
+ }
257
275
  .gov-control-group > *:last-child {
258
276
  border-right: none;
259
277
  }
@@ -34,7 +34,7 @@ export class GovControlGroup {
34
34
  "mutable": false,
35
35
  "complexType": {
36
36
  "original": "ControlGroupVariantType",
37
- "resolved": "\"primary\" | \"secondary\"",
37
+ "resolved": "\"error\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
38
38
  "references": {
39
39
  "ControlGroupVariantType": {
40
40
  "location": "import",
@@ -254,8 +254,8 @@
254
254
  color: var(--gov-error-icon-color, var(--gov-color-primary));
255
255
  }
256
256
  .gov-error-code__icon > * {
257
- width: 7.125rem;
258
- height: 7.125rem;
257
+ width: 6.5625rem;
258
+ height: 6.5625rem;
259
259
  }
260
260
  @media (min-width: 48em) {
261
261
  .gov-error-code__icon {
@@ -264,7 +264,7 @@
264
264
  margin: 0 auto 2rem;
265
265
  }
266
266
  .gov-error-code__icon > * {
267
- width: 9.5rem;
268
- height: 9.5rem;
267
+ width: 8.75rem;
268
+ height: 8.75rem;
269
269
  }
270
270
  }
@@ -239,47 +239,47 @@
239
239
  .gov-form-control__bottom > *:last-child {
240
240
  margin-bottom: 0;
241
241
  }
242
+ .gov-form-control__bottom > :first-child {
243
+ margin-top: 0.25rem;
244
+ }
242
245
  .gov-form-control .gov-form-label .gov-form-label__label {
243
246
  margin: 0rem 0rem 0.25rem;
244
247
  }
245
- .gov-form-control .gov-form-control__bottom {
246
- margin: 0.25rem 0rem 0rem;
247
- }
248
248
  .gov-form-control[type=file] .gov-form-label[slot=top] .gov-form-label__label {
249
249
  margin: 0rem 0rem 0.5rem;
250
250
  }
251
- .gov-form-control[type=file] .gov-form-control__bottom {
252
- margin: 0.5rem 0rem 0rem;
251
+ .gov-form-control[type=file] .gov-form-control__bottom > :first-child {
252
+ margin-top: 0.5rem;
253
253
  }
254
- .gov-form-control[size=xs][type=checkbox] .gov-form-control__holder > .gov-form-control__bottom, .gov-form-control[size=xs][type=radio] .gov-form-control__holder > .gov-form-control__bottom {
254
+ .gov-form-control[size=xs][type=checkbox] .gov-form-control__holder > .gov-form-control__bottom > :first-child, .gov-form-control[size=xs][type=radio] .gov-form-control__holder > .gov-form-control__bottom > :first-child {
255
255
  margin-top: var(--gov-form-checkbox-core-xs-message-gap, 0.5rem);
256
256
  margin-left: calc(var(--gov-form-checkbox-core-xs-indicator-size, 1.25rem) + var(--gov-form-checkbox-core-xs-gap, 0.75rem));
257
257
  }
258
- .gov-form-control[size=s][type=checkbox] .gov-form-control__holder > .gov-form-control__bottom, .gov-form-control[size=s][type=radio] .gov-form-control__holder > .gov-form-control__bottom {
258
+ .gov-form-control[size=s][type=checkbox] .gov-form-control__holder > .gov-form-control__bottom > :first-child, .gov-form-control[size=s][type=radio] .gov-form-control__holder > .gov-form-control__bottom > :first-child {
259
259
  margin-top: var(--gov-form-checkbox-core-s-message-gap, 0.5rem);
260
260
  margin-left: calc(var(--gov-form-checkbox-core-s-indicator-size, 1.375rem) + var(--gov-form-checkbox-core-s-gap, 0.75rem));
261
261
  }
262
- .gov-form-control[size=m][type=checkbox] .gov-form-control__holder > .gov-form-control__bottom, .gov-form-control[size=m][type=radio] .gov-form-control__holder > .gov-form-control__bottom {
262
+ .gov-form-control[size=m][type=checkbox] .gov-form-control__holder > .gov-form-control__bottom > :first-child, .gov-form-control[size=m][type=radio] .gov-form-control__holder > .gov-form-control__bottom > :first-child {
263
263
  margin-top: var(--gov-form-checkbox-core-m-message-gap, 0.75rem);
264
264
  margin-left: calc(var(--gov-form-checkbox-core-m-indicator-size, 1.5rem) + var(--gov-form-checkbox-core-m-gap, 1rem));
265
265
  }
266
- .gov-form-control[size=l][type=checkbox] .gov-form-control__holder > .gov-form-control__bottom, .gov-form-control[size=l][type=radio] .gov-form-control__holder > .gov-form-control__bottom {
266
+ .gov-form-control[size=l][type=checkbox] .gov-form-control__holder > .gov-form-control__bottom > :first-child, .gov-form-control[size=l][type=radio] .gov-form-control__holder > .gov-form-control__bottom > :first-child {
267
267
  margin-top: var(--gov-form-checkbox-core-l-message-gap, 0.75rem);
268
268
  margin-left: calc(var(--gov-form-checkbox-core-l-indicator-size, 2rem) + var(--gov-form-checkbox-core-l-gap, 1rem));
269
269
  }
270
- .gov-form-control[size=xs][type=switch] .gov-form-control__bottom {
270
+ .gov-form-control[size=xs][type=switch] .gov-form-control__bottom > :first-child {
271
271
  margin-top: var(--gov-form-switch-xs-message-gap, 0.5rem);
272
272
  margin-left: calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667 + var(--gov-form-switch-xs-gap, 0.75rem));
273
273
  }
274
- .gov-form-control[size=s][type=switch] .gov-form-control__bottom {
274
+ .gov-form-control[size=s][type=switch] .gov-form-control__bottom > :first-child {
275
275
  margin-top: var(--gov-form-switch-s-message-gap, 0.5rem);
276
276
  margin-left: calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667 + var(--gov-form-switch-s-gap, 0.75rem));
277
277
  }
278
- .gov-form-control[size=m][type=switch] .gov-form-control__bottom {
278
+ .gov-form-control[size=m][type=switch] .gov-form-control__bottom > :first-child {
279
279
  margin-top: var(--gov-form-switch-m-message-gap, 0.75rem);
280
280
  margin-left: calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667 + var(--gov-form-switch-m-gap, 1rem));
281
281
  }
282
- .gov-form-control[size=l][type=switch] .gov-form-control__bottom {
282
+ .gov-form-control[size=l][type=switch] .gov-form-control__bottom > :first-child {
283
283
  margin-top: var(--gov-form-switch-l-message-gap, 0.75rem);
284
284
  margin-left: calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667 + var(--gov-form-switch-l-gap, 1rem));
285
285
  }
@@ -242,6 +242,11 @@
242
242
  box-sizing: border-box;
243
243
  }
244
244
  .gov-form-label[legend=""] .gov-form-label__label, .gov-form-label[legend=true i] .gov-form-label__label, .gov-form-label[legend="1"] .gov-form-label__label {
245
+ font-weight: var(--gov-text-l-font-weight);
246
+ font-size: var(--gov-text-l-font-size);
247
+ line-height: var(--gov-text-l-line-height);
248
+ letter-spacing: var(--gov-text-l-letter-spacing);
245
249
  margin-bottom: 1rem;
250
+ padding: 0;
246
251
  color: var(--gov-form-legend-color, #3b3b3b);
247
252
  }