@gov-design-system-ce/components 4.0.8-rc10 → 4.0.8-rc11

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 (1568) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/array.utils-fcdab10c.js +46 -0
  4. package/dist/cjs/array.utils-fcdab10c.js.map +1 -0
  5. package/dist/cjs/{constants-9dc978dd.js → constants-02aec493.js} +8 -8
  6. package/dist/cjs/{constants-9dc978dd.js.map → constants-02aec493.js.map} +1 -1
  7. package/dist/cjs/{constants-20b3f7ee.js → constants-11f3de8f.js} +10 -10
  8. package/dist/cjs/{constants-20b3f7ee.js.map → constants-11f3de8f.js.map} +1 -1
  9. package/dist/cjs/constants-1b3eeb21.js +20 -0
  10. package/dist/cjs/{constants-66cb0615.js.map → constants-1b3eeb21.js.map} +1 -1
  11. package/dist/cjs/constants-29b9825f.js +33 -0
  12. package/dist/cjs/{constants-427a2843.js.map → constants-29b9825f.js.map} +1 -1
  13. package/dist/cjs/constants-2f0a11e5.js +30 -0
  14. package/dist/cjs/{constants-dde21dcf.js.map → constants-2f0a11e5.js.map} +1 -1
  15. package/dist/cjs/{constants-a31344ad.js → constants-4fefc173.js} +16 -16
  16. package/dist/cjs/{constants-a31344ad.js.map → constants-4fefc173.js.map} +1 -1
  17. package/dist/cjs/{constants-ded92f8a.js → constants-52053f2d.js} +3 -3
  18. package/dist/cjs/{constants-ded92f8a.js.map → constants-52053f2d.js.map} +1 -1
  19. package/dist/cjs/{constants-61f8be34.js → constants-7a5540d0.js} +10 -10
  20. package/dist/cjs/{constants-61f8be34.js.map → constants-7a5540d0.js.map} +1 -1
  21. package/dist/cjs/constants-87bab1ed.js +14 -0
  22. package/dist/cjs/{constants-97eea364.js.map → constants-87bab1ed.js.map} +1 -1
  23. package/dist/cjs/constants-8f194b53.js +30 -0
  24. package/dist/cjs/{constants-0c6c8e11.js.map → constants-8f194b53.js.map} +1 -1
  25. package/dist/cjs/{constants-1490a5eb.js → constants-a33f6e99.js} +9 -9
  26. package/dist/cjs/{constants-1490a5eb.js.map → constants-a33f6e99.js.map} +1 -1
  27. package/dist/cjs/constants-b7813ab1.js +16 -0
  28. package/dist/cjs/{constants-caad94b4.js.map → constants-b7813ab1.js.map} +1 -1
  29. package/dist/cjs/constants-b8a9f758.js +22 -0
  30. package/dist/cjs/{constants-25f7a6be.js.map → constants-b8a9f758.js.map} +1 -1
  31. package/dist/cjs/constants-d5fe1cee.js +29 -0
  32. package/dist/cjs/{constants-440cd5c8.js.map → constants-d5fe1cee.js.map} +1 -1
  33. package/dist/cjs/constants-fb915aae.js +21 -0
  34. package/dist/cjs/{constants-6df82618.js.map → constants-fb915aae.js.map} +1 -1
  35. package/dist/cjs/constants-fdc5268a.js +15 -0
  36. package/dist/cjs/{constants-2b1c31b8.js.map → constants-fdc5268a.js.map} +1 -1
  37. package/dist/cjs/core.cjs.js +32 -32
  38. package/dist/cjs/core.cjs.js.map +1 -1
  39. package/dist/cjs/form-f93c3a0a.js +163 -0
  40. package/dist/cjs/form-f93c3a0a.js.map +1 -0
  41. package/dist/cjs/gov-accordion-item.cjs.entry.js +89 -88
  42. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  43. package/dist/cjs/gov-accordion.cjs.entry.js +63 -62
  44. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-attachments_3.cjs.entry.js +91 -88
  46. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  47. package/dist/cjs/gov-backdrop.cjs.entry.js +34 -33
  48. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +57 -56
  50. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-button.cjs.entry.js +166 -165
  52. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-card.cjs.entry.js +91 -90
  54. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  55. package/dist/cjs/gov-chip.cjs.entry.js +90 -89
  56. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  57. package/dist/cjs/gov-container.cjs.entry.js +21 -20
  58. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-control-group.cjs.entry.js +27 -26
  60. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  61. package/dist/cjs/gov-cookiebar.cjs.entry.js +18 -17
  62. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
  63. package/dist/cjs/gov-dropdown.cjs.entry.js +62 -59
  64. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-empty.cjs.entry.js +16 -15
  66. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gov-error-code.cjs.entry.js +16 -15
  68. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
  69. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +237 -236
  70. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  71. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +70 -69
  72. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  73. package/dist/cjs/gov-form-checkbox.cjs.entry.js +121 -120
  74. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  75. package/dist/cjs/gov-form-control.cjs.entry.js +91 -90
  76. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  77. package/dist/cjs/gov-form-file.cjs.entry.js +226 -225
  78. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  79. package/dist/cjs/gov-form-group.cjs.entry.js +36 -35
  80. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  81. package/dist/cjs/gov-form-input.cjs.entry.js +180 -178
  82. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
  83. package/dist/cjs/gov-form-label.cjs.entry.js +18 -17
  84. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  85. package/dist/cjs/gov-form-multi-select.cjs.entry.js +261 -260
  86. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  87. package/dist/cjs/gov-form-password-power.cjs.entry.js +13 -12
  88. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
  89. package/dist/cjs/gov-form-radio-group.cjs.entry.js +59 -58
  90. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  91. package/dist/cjs/gov-form-radio.cjs.entry.js +121 -120
  92. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  93. package/dist/cjs/gov-form-search.cjs.entry.js +16 -15
  94. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  95. package/dist/cjs/gov-form-select.cjs.entry.js +151 -150
  96. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  97. package/dist/cjs/gov-form-switch.cjs.entry.js +121 -120
  98. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  99. package/dist/cjs/gov-grid-item.cjs.entry.js +18 -17
  100. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gov-grid.cjs.entry.js +16 -15
  102. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  103. package/dist/cjs/gov-icon.cjs.entry.js +96 -95
  104. package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
  105. package/dist/cjs/gov-infobar.cjs.entry.js +71 -70
  106. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  107. package/dist/cjs/gov-layout-column.cjs.entry.js +13 -12
  108. package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
  109. package/dist/cjs/gov-layout.cjs.entry.js +22 -21
  110. package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
  111. package/dist/cjs/gov-loading.cjs.entry.js +15 -14
  112. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  113. package/dist/cjs/gov-message.cjs.entry.js +28 -27
  114. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  115. package/dist/cjs/gov-modal.cjs.entry.js +93 -90
  116. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
  117. package/dist/cjs/gov-nav-item.cjs.entry.js +26 -25
  118. package/dist/cjs/gov-nav-item.cjs.entry.js.map +1 -1
  119. package/dist/cjs/gov-nav.cjs.entry.js +29 -28
  120. package/dist/cjs/gov-nav.cjs.entry.js.map +1 -1
  121. package/dist/cjs/gov-pagination.cjs.entry.js +193 -192
  122. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  123. package/dist/cjs/gov-prompt.cjs.entry.js +89 -88
  124. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -1
  125. package/dist/cjs/gov-side-nav-item.cjs.entry.js +74 -73
  126. package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -1
  127. package/dist/cjs/gov-side-nav.cjs.entry.js +43 -42
  128. package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -1
  129. package/dist/cjs/gov-skeleton.cjs.entry.js +92 -91
  130. package/dist/cjs/gov-skeleton.cjs.entry.js.map +1 -1
  131. package/dist/cjs/gov-spacer.cjs.entry.js +39 -38
  132. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  133. package/dist/cjs/gov-statsbar-item.cjs.entry.js +28 -27
  134. package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -1
  135. package/dist/cjs/gov-statsbar.cjs.entry.js +41 -40
  136. package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -1
  137. package/dist/cjs/gov-stepper-item.cjs.entry.js +64 -63
  138. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  139. package/dist/cjs/gov-stepper.cjs.entry.js +39 -38
  140. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  141. package/dist/cjs/gov-tabs-item.cjs.entry.js +48 -40
  142. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
  143. package/dist/cjs/gov-tabs.cjs.entry.js +196 -183
  144. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  145. package/dist/cjs/gov-tag.cjs.entry.js +43 -42
  146. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  147. package/dist/cjs/gov-tile.cjs.entry.js +27 -26
  148. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  149. package/dist/cjs/gov-tiles.cjs.entry.js +18 -17
  150. package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -1
  151. package/dist/cjs/gov-toast.cjs.entry.js +81 -80
  152. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  153. package/dist/cjs/gov-tooltip-content.cjs.entry.js +39 -38
  154. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
  155. package/dist/cjs/gov-tooltip.cjs.entry.js +216 -207
  156. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  157. package/dist/cjs/gov-wizard-item.cjs.entry.js +97 -96
  158. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  159. package/dist/cjs/gov-wizard.cjs.entry.js +56 -55
  160. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  161. package/dist/cjs/gov.log-8887c6bc.js +28 -0
  162. package/dist/cjs/{gov.log-b842920d.js.map → gov.log-8887c6bc.js.map} +1 -1
  163. package/dist/cjs/helpers-2ee3c9e6.js +19 -0
  164. package/dist/cjs/helpers-2ee3c9e6.js.map +1 -0
  165. package/dist/cjs/index-d7a6145d.js +2041 -0
  166. package/dist/cjs/index-d7a6145d.js.map +1 -0
  167. package/dist/cjs/loader.cjs.js +5 -3
  168. package/dist/cjs/loader.cjs.js.map +1 -1
  169. package/dist/cjs/props-edd0d46f.js +16 -0
  170. package/dist/cjs/{props-d6146e54.js.map → props-edd0d46f.js.map} +1 -1
  171. package/dist/cjs/sizes-89f8d3b2.js +18 -0
  172. package/dist/cjs/{sizes-79872c2a.js.map → sizes-89f8d3b2.js.map} +1 -1
  173. package/dist/cjs/stencil.utils-07182a8a.js +11 -0
  174. package/dist/cjs/{stencil.utils-22814956.js.map → stencil.utils-07182a8a.js.map} +1 -1
  175. package/dist/cjs/string.utils-2335838f.js +24 -0
  176. package/dist/cjs/{string.utils-0f08c48c.js.map → string.utils-2335838f.js.map} +1 -1
  177. package/dist/cjs/template-431f0737.js +132 -0
  178. package/dist/cjs/template-431f0737.js.map +1 -0
  179. package/dist/cjs/{utils-c9b1bba3.js → utils-d263c5c6.js} +9 -9
  180. package/dist/cjs/{utils-c9b1bba3.js.map → utils-d263c5c6.js.map} +1 -1
  181. package/dist/cjs/variants-85b514ea.js +18 -0
  182. package/dist/cjs/{variants-f5ffeef3.js.map → variants-85b514ea.js.map} +1 -1
  183. package/dist/cjs/wcag-53ebeed1.js +67 -0
  184. package/dist/cjs/{wcag-e6257f27.js.map → wcag-53ebeed1.js.map} +1 -1
  185. package/dist/cjs/{win-5521073d.js → win-03714165.js} +16 -16
  186. package/dist/cjs/{win-5521073d.js.map → win-03714165.js.map} +1 -1
  187. package/dist/collection/collection-manifest.json +2 -2
  188. package/dist/collection/components/gov-accordion/constants.js +11 -11
  189. package/dist/collection/components/gov-accordion/constants.js.map +1 -1
  190. package/dist/collection/components/gov-accordion/gov-accordion-item.js +292 -292
  191. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  192. package/dist/collection/components/gov-accordion/gov-accordion.js +211 -211
  193. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  194. package/dist/collection/components/gov-attachments/constants.js +7 -7
  195. package/dist/collection/components/gov-attachments/constants.js.map +1 -1
  196. package/dist/collection/components/gov-attachments/gov-attachments-item.js +111 -111
  197. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  198. package/dist/collection/components/gov-attachments/gov-attachments.js +89 -89
  199. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
  200. package/dist/collection/components/gov-backdrop/constants.js +2 -2
  201. package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
  202. package/dist/collection/components/gov-backdrop/gov-backdrop.js +130 -130
  203. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  204. package/dist/collection/components/gov-breadcrumbs/constants.js +1 -1
  205. package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
  206. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +197 -197
  207. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  208. package/dist/collection/components/gov-button/button/constants.js +12 -12
  209. package/dist/collection/components/gov-button/button/constants.js.map +1 -1
  210. package/dist/collection/components/gov-button/button/gov-button.css +45 -45
  211. package/dist/collection/components/gov-button/button/gov-button.js +864 -864
  212. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  213. package/dist/collection/components/gov-button/dropdown/constants.js +4 -4
  214. package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -1
  215. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +184 -164
  216. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
  217. package/dist/collection/components/gov-card/constants.js +11 -11
  218. package/dist/collection/components/gov-card/constants.js.map +1 -1
  219. package/dist/collection/components/gov-card/gov-card.js +290 -290
  220. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  221. package/dist/collection/components/gov-chip/constants.js +7 -7
  222. package/dist/collection/components/gov-chip/constants.js.map +1 -1
  223. package/dist/collection/components/gov-chip/gov-chip.css +40 -40
  224. package/dist/collection/components/gov-chip/gov-chip.js +448 -448
  225. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  226. package/dist/collection/components/gov-container/constants.js +1 -1
  227. package/dist/collection/components/gov-container/constants.js.map +1 -1
  228. package/dist/collection/components/gov-container/gov-container.js +53 -53
  229. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  230. package/dist/collection/components/gov-control-group/constants.js +1 -1
  231. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  232. package/dist/collection/components/gov-control-group/gov-control-group.js +75 -75
  233. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  234. package/dist/collection/components/gov-cookiebar/constants.js +6 -6
  235. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
  236. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +18 -18
  237. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
  238. package/dist/collection/components/gov-empty/constants.js +4 -4
  239. package/dist/collection/components/gov-empty/constants.js.map +1 -1
  240. package/dist/collection/components/gov-empty/gov-empty.js +18 -18
  241. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
  242. package/dist/collection/components/gov-error-code/constants.js +4 -4
  243. package/dist/collection/components/gov-error-code/constants.js.map +1 -1
  244. package/dist/collection/components/gov-error-code/gov-error-code.js +18 -18
  245. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
  246. package/dist/collection/components/gov-form/autocomplete/constants.js +5 -5
  247. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
  248. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +881 -879
  249. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  250. package/dist/collection/components/gov-form/checkbox/constants.js +3 -3
  251. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
  252. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +427 -427
  253. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  254. package/dist/collection/components/gov-form/control/constants.js +3 -3
  255. package/dist/collection/components/gov-form/control/constants.js.map +1 -1
  256. package/dist/collection/components/gov-form/control/gov-form-control.js +228 -228
  257. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  258. package/dist/collection/components/gov-form/file/constants.js +7 -7
  259. package/dist/collection/components/gov-form/file/constants.js.map +1 -1
  260. package/dist/collection/components/gov-form/file/gov-form-file.js +722 -722
  261. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  262. package/dist/collection/components/gov-form/group/constants.js +5 -5
  263. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  264. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +164 -164
  265. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
  266. package/dist/collection/components/gov-form/group/gov-form-group.js +92 -92
  267. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
  268. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +154 -154
  269. package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
  270. package/dist/collection/components/gov-form/input/constants.js +15 -15
  271. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  272. package/dist/collection/components/gov-form/input/gov-form-input.js +949 -929
  273. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  274. package/dist/collection/components/gov-form/label/constants.js +2 -2
  275. package/dist/collection/components/gov-form/label/constants.js.map +1 -1
  276. package/dist/collection/components/gov-form/label/gov-form-label.js +124 -124
  277. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  278. package/dist/collection/components/gov-form/message/constants.js +3 -3
  279. package/dist/collection/components/gov-form/message/constants.js.map +1 -1
  280. package/dist/collection/components/gov-form/message/gov-form-message.js +85 -85
  281. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
  282. package/dist/collection/components/gov-form/multiselect/constants.js +4 -4
  283. package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
  284. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +788 -786
  285. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  286. package/dist/collection/components/gov-form/password-power/constants.js +3 -3
  287. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -1
  288. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +38 -38
  289. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
  290. package/dist/collection/components/gov-form/radio/constants.js +5 -5
  291. package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
  292. package/dist/collection/components/gov-form/radio/gov-form-radio.js +427 -427
  293. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  294. package/dist/collection/components/gov-form/search/constants.js +3 -3
  295. package/dist/collection/components/gov-form/search/constants.js.map +1 -1
  296. package/dist/collection/components/gov-form/search/gov-form-search.js +45 -45
  297. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  298. package/dist/collection/components/gov-form/select/constants.js +2 -2
  299. package/dist/collection/components/gov-form/select/constants.js.map +1 -1
  300. package/dist/collection/components/gov-form/select/gov-form-select.js +568 -567
  301. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  302. package/dist/collection/components/gov-form/switch/constants.js +4 -4
  303. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  304. package/dist/collection/components/gov-form/switch/gov-form-switch.js +427 -427
  305. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  306. package/dist/collection/components/gov-grid/constants.js +2 -2
  307. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  308. package/dist/collection/components/gov-grid/gov-grid-item.js +113 -113
  309. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  310. package/dist/collection/components/gov-grid/gov-grid.js +59 -59
  311. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  312. package/dist/collection/components/gov-icon/constants.js +5 -5
  313. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  314. package/dist/collection/components/gov-icon/gov-icon.js +122 -122
  315. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  316. package/dist/collection/components/gov-icon/helpers.js +10 -10
  317. package/dist/collection/components/gov-icon/helpers.js.map +1 -1
  318. package/dist/collection/components/gov-icon/list.js +276 -276
  319. package/dist/collection/components/gov-icon/list.js.map +1 -1
  320. package/dist/collection/components/gov-infobar/constants.js +7 -7
  321. package/dist/collection/components/gov-infobar/constants.js.map +1 -1
  322. package/dist/collection/components/gov-infobar/gov-infobar.js +253 -253
  323. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  324. package/dist/collection/components/gov-layout/constants.js +8 -8
  325. package/dist/collection/components/gov-layout/constants.js.map +1 -1
  326. package/dist/collection/components/gov-layout/gov-layout-column.js +18 -18
  327. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
  328. package/dist/collection/components/gov-layout/gov-layout.js +95 -95
  329. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
  330. package/dist/collection/components/gov-loading/loading/constants.js +3 -3
  331. package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
  332. package/dist/collection/components/gov-loading/loading/gov-loading.js +18 -18
  333. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  334. package/dist/collection/components/gov-loading/skeleton/constants.js +8 -8
  335. package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
  336. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +256 -256
  337. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  338. package/dist/collection/components/gov-message/constants.js +4 -4
  339. package/dist/collection/components/gov-message/constants.js.map +1 -1
  340. package/dist/collection/components/gov-message/gov-message.js +55 -55
  341. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  342. package/dist/collection/components/gov-modal/constants.js +12 -12
  343. package/dist/collection/components/gov-modal/constants.js.map +1 -1
  344. package/dist/collection/components/gov-modal/gov-modal.js +375 -337
  345. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
  346. package/dist/collection/components/gov-nav/constants.js +4 -4
  347. package/dist/collection/components/gov-nav/constants.js.map +1 -1
  348. package/dist/collection/components/gov-nav/gov-nav-item.js +61 -61
  349. package/dist/collection/components/gov-nav/gov-nav-item.js.map +1 -1
  350. package/dist/collection/components/gov-nav/gov-nav.js +88 -88
  351. package/dist/collection/components/gov-nav/gov-nav.js.map +1 -1
  352. package/dist/collection/components/gov-pagination/constants.js +10 -10
  353. package/dist/collection/components/gov-pagination/constants.js.map +1 -1
  354. package/dist/collection/components/gov-pagination/gov-pagination.js +509 -509
  355. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  356. package/dist/collection/components/gov-pagination/pagination.js +48 -48
  357. package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
  358. package/dist/collection/components/gov-promp/constants.js +10 -10
  359. package/dist/collection/components/gov-promp/constants.js.map +1 -1
  360. package/dist/collection/components/gov-promp/gov-prompt.js +317 -317
  361. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
  362. package/dist/collection/components/gov-side-nav/constants.js +11 -11
  363. package/dist/collection/components/gov-side-nav/constants.js.map +1 -1
  364. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +324 -324
  365. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -1
  366. package/dist/collection/components/gov-side-nav/gov-side-nav.js +159 -159
  367. package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -1
  368. package/dist/collection/components/gov-spacer/constants.js +6 -6
  369. package/dist/collection/components/gov-spacer/constants.js.map +1 -1
  370. package/dist/collection/components/gov-spacer/gov-spacer.js +89 -89
  371. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  372. package/dist/collection/components/gov-statsbar/constants.js +7 -7
  373. package/dist/collection/components/gov-statsbar/constants.js.map +1 -1
  374. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +58 -58
  375. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -1
  376. package/dist/collection/components/gov-statsbar/gov-statsbar.js +95 -95
  377. package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -1
  378. package/dist/collection/components/gov-stepper/constants.js +11 -11
  379. package/dist/collection/components/gov-stepper/constants.js.map +1 -1
  380. package/dist/collection/components/gov-stepper/gov-stepper-item.js +236 -236
  381. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
  382. package/dist/collection/components/gov-stepper/gov-stepper.js +91 -91
  383. package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -1
  384. package/dist/collection/components/gov-tabs/constants.js +11 -11
  385. package/dist/collection/components/gov-tabs/constants.js.map +1 -1
  386. package/dist/collection/components/gov-tabs/gov-tabs-item.js +221 -178
  387. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
  388. package/dist/collection/components/gov-tabs/gov-tabs.css +13 -10
  389. package/dist/collection/components/gov-tabs/gov-tabs.js +432 -419
  390. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  391. package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
  392. package/dist/collection/components/gov-tag/constants.js +1 -1
  393. package/dist/collection/components/gov-tag/constants.js.map +1 -1
  394. package/dist/collection/components/gov-tag/gov-tag.css +40 -40
  395. package/dist/collection/components/gov-tag/gov-tag.js +147 -147
  396. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  397. package/dist/collection/components/gov-tile/constants.js +7 -7
  398. package/dist/collection/components/gov-tile/constants.js.map +1 -1
  399. package/dist/collection/components/gov-tile/container/constants.js +1 -1
  400. package/dist/collection/components/gov-tile/container/constants.js.map +1 -1
  401. package/dist/collection/components/gov-tile/container/gov-tiles.js +63 -63
  402. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +1 -1
  403. package/dist/collection/components/gov-tile/gov-tile.js +100 -100
  404. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  405. package/dist/collection/components/gov-toast/constants.js +6 -6
  406. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  407. package/dist/collection/components/gov-toast/gov-toast.js +253 -253
  408. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  409. package/dist/collection/components/gov-tooltip/constants.js +6 -6
  410. package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
  411. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +149 -149
  412. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  413. package/dist/collection/components/gov-tooltip/gov-tooltip.js +382 -372
  414. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  415. package/dist/collection/components/gov-wizard/constants.js +10 -10
  416. package/dist/collection/components/gov-wizard/constants.js.map +1 -1
  417. package/dist/collection/components/gov-wizard/gov-wizard-item.js +368 -368
  418. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  419. package/dist/collection/components/gov-wizard/gov-wizard.js +160 -160
  420. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
  421. package/dist/collection/core/constants/sizes.js +11 -11
  422. package/dist/collection/core/constants/sizes.js.map +1 -1
  423. package/dist/collection/core/constants/tags.js +9 -9
  424. package/dist/collection/core/constants/tags.js.map +1 -1
  425. package/dist/collection/core/constants/tokens.js +5 -5
  426. package/dist/collection/core/constants/tokens.js.map +1 -1
  427. package/dist/collection/core/constants/variants.js +8 -8
  428. package/dist/collection/core/constants/variants.js.map +1 -1
  429. package/dist/collection/helpers/Dom/form.js +59 -59
  430. package/dist/collection/helpers/Dom/form.js.map +1 -1
  431. package/dist/collection/helpers/Dom/template.js +101 -101
  432. package/dist/collection/helpers/Dom/template.js.map +1 -1
  433. package/dist/collection/helpers/Dom/win.js +14 -14
  434. package/dist/collection/helpers/Dom/win.js.map +1 -1
  435. package/dist/collection/helpers/Log/gov.log.js +10 -10
  436. package/dist/collection/helpers/Log/gov.log.js.map +1 -1
  437. package/dist/collection/helpers/Validate/props.js +5 -5
  438. package/dist/collection/helpers/Validate/props.js.map +1 -1
  439. package/dist/collection/helpers/Validate/wcag.js +42 -42
  440. package/dist/collection/helpers/Validate/wcag.js.map +1 -1
  441. package/dist/collection/pages/Accordion.js +4 -4
  442. package/dist/collection/pages/Accordion.js.map +1 -1
  443. package/dist/collection/pages/Breadcrumbs.js +4 -4
  444. package/dist/collection/pages/Breadcrumbs.js.map +1 -1
  445. package/dist/collection/pages/Button.js +4 -4
  446. package/dist/collection/pages/Button.js.map +1 -1
  447. package/dist/collection/pages/Card.js +4 -4
  448. package/dist/collection/pages/Card.js.map +1 -1
  449. package/dist/collection/pages/Chip.js +4 -4
  450. package/dist/collection/pages/Chip.js.map +1 -1
  451. package/dist/collection/pages/Container.js +4 -4
  452. package/dist/collection/pages/Container.js.map +1 -1
  453. package/dist/collection/pages/ControlGroup.js +4 -4
  454. package/dist/collection/pages/ControlGroup.js.map +1 -1
  455. package/dist/collection/pages/Cookiebar.js +4 -4
  456. package/dist/collection/pages/Cookiebar.js.map +1 -1
  457. package/dist/collection/pages/Empty.js +4 -4
  458. package/dist/collection/pages/Empty.js.map +1 -1
  459. package/dist/collection/pages/Error.js +4 -4
  460. package/dist/collection/pages/Error.js.map +1 -1
  461. package/dist/collection/pages/FormLabel.js +4 -4
  462. package/dist/collection/pages/FormLabel.js.map +1 -1
  463. package/dist/collection/pages/FormMessage.js +4 -4
  464. package/dist/collection/pages/FormMessage.js.map +1 -1
  465. package/dist/collection/pages/Forms.js +120 -120
  466. package/dist/collection/pages/Forms.js.map +1 -1
  467. package/dist/collection/pages/FormsRestructure.js +4 -4
  468. package/dist/collection/pages/FormsRestructure.js.map +1 -1
  469. package/dist/collection/pages/Grid.js +4 -4
  470. package/dist/collection/pages/Grid.js.map +1 -1
  471. package/dist/collection/pages/Home.js +4 -4
  472. package/dist/collection/pages/Home.js.map +1 -1
  473. package/dist/collection/pages/Infobar.js +4 -4
  474. package/dist/collection/pages/Infobar.js.map +1 -1
  475. package/dist/collection/pages/Layout.js +4 -4
  476. package/dist/collection/pages/Layout.js.map +1 -1
  477. package/dist/collection/pages/Loading.js +9 -9
  478. package/dist/collection/pages/Loading.js.map +1 -1
  479. package/dist/collection/pages/Message.js +4 -4
  480. package/dist/collection/pages/Message.js.map +1 -1
  481. package/dist/collection/pages/Modal.js +10 -10
  482. package/dist/collection/pages/Modal.js.map +1 -1
  483. package/dist/collection/pages/Nav.js +4 -4
  484. package/dist/collection/pages/Nav.js.map +1 -1
  485. package/dist/collection/pages/Pagination.js +13 -13
  486. package/dist/collection/pages/Pagination.js.map +1 -1
  487. package/dist/collection/pages/Prompt.js +9 -9
  488. package/dist/collection/pages/Prompt.js.map +1 -1
  489. package/dist/collection/pages/SideNav.js +4 -4
  490. package/dist/collection/pages/SideNav.js.map +1 -1
  491. package/dist/collection/pages/Spacer.js +4 -4
  492. package/dist/collection/pages/Spacer.js.map +1 -1
  493. package/dist/collection/pages/Statsbar.js +4 -4
  494. package/dist/collection/pages/Statsbar.js.map +1 -1
  495. package/dist/collection/pages/Stepper.js +4 -4
  496. package/dist/collection/pages/Stepper.js.map +1 -1
  497. package/dist/collection/pages/Tabs.js +15 -6
  498. package/dist/collection/pages/Tabs.js.map +1 -1
  499. package/dist/collection/pages/Tag.js +4 -4
  500. package/dist/collection/pages/Tag.js.map +1 -1
  501. package/dist/collection/pages/Tiles.js +4 -4
  502. package/dist/collection/pages/Tiles.js.map +1 -1
  503. package/dist/collection/pages/ToastMessage.js +4 -4
  504. package/dist/collection/pages/ToastMessage.js.map +1 -1
  505. package/dist/collection/pages/ToastMessageCountdown.js +4 -4
  506. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
  507. package/dist/collection/pages/Tooltip.js +4 -4
  508. package/dist/collection/pages/Tooltip.js.map +1 -1
  509. package/dist/collection/pages/Typography.js +4 -4
  510. package/dist/collection/pages/Typography.js.map +1 -1
  511. package/dist/collection/pages/Wizard.js +4 -4
  512. package/dist/collection/pages/Wizard.js.map +1 -1
  513. package/dist/collection/utils/array.utils.js +13 -13
  514. package/dist/collection/utils/array.utils.js.map +1 -1
  515. package/dist/collection/utils/bool.utils.js +12 -12
  516. package/dist/collection/utils/bool.utils.js.map +1 -1
  517. package/dist/collection/utils/ds.utils.js +1 -1
  518. package/dist/collection/utils/ds.utils.js.map +1 -1
  519. package/dist/collection/utils/file.utils.js +19 -19
  520. package/dist/collection/utils/file.utils.js.map +1 -1
  521. package/dist/collection/utils/helpers.types.js +15 -15
  522. package/dist/collection/utils/helpers.types.js.map +1 -1
  523. package/dist/collection/utils/icon.utils.js +21 -21
  524. package/dist/collection/utils/icon.utils.js.map +1 -1
  525. package/dist/collection/utils/number.utils.js +1 -1
  526. package/dist/collection/utils/number.utils.js.map +1 -1
  527. package/dist/collection/utils/object.utils.js +13 -13
  528. package/dist/collection/utils/object.utils.js.map +1 -1
  529. package/dist/collection/utils/stencil.utils.js +3 -3
  530. package/dist/collection/utils/stencil.utils.js.map +1 -1
  531. package/dist/collection/utils/string.utils.js +8 -8
  532. package/dist/collection/utils/string.utils.js.map +1 -1
  533. package/dist/collection/utils/utils.js +9 -9
  534. package/dist/collection/utils/utils.js.map +1 -1
  535. package/dist/components/gov-accordion-item.d.ts +2 -2
  536. package/dist/components/gov-accordion-item.js +1 -1
  537. package/dist/components/gov-accordion-item.js.map +1 -1
  538. package/dist/components/gov-accordion.d.ts +2 -2
  539. package/dist/components/gov-accordion.js +1 -2
  540. package/dist/components/gov-accordion.js.map +1 -1
  541. package/dist/components/gov-attachments-item.d.ts +2 -2
  542. package/dist/components/gov-attachments-item.js +1 -1
  543. package/dist/components/gov-attachments-item.js.map +1 -1
  544. package/dist/components/gov-attachments.d.ts +2 -2
  545. package/dist/components/gov-attachments.js +1 -1
  546. package/dist/components/gov-attachments.js.map +1 -1
  547. package/dist/components/gov-backdrop.d.ts +2 -2
  548. package/dist/components/gov-backdrop.js +1 -1
  549. package/dist/components/gov-backdrop.js.map +1 -1
  550. package/dist/components/gov-breadcrumbs.d.ts +2 -2
  551. package/dist/components/gov-breadcrumbs.js +1 -1
  552. package/dist/components/gov-breadcrumbs.js.map +1 -1
  553. package/dist/components/gov-button.d.ts +2 -2
  554. package/dist/components/gov-button.js +1 -1
  555. package/dist/components/gov-button.js.map +1 -1
  556. package/dist/components/gov-card.d.ts +2 -2
  557. package/dist/components/gov-card.js +1 -1
  558. package/dist/components/gov-card.js.map +1 -1
  559. package/dist/components/gov-chip.d.ts +2 -2
  560. package/dist/components/gov-chip.js +1 -1
  561. package/dist/components/gov-chip.js.map +1 -1
  562. package/dist/components/gov-container.d.ts +2 -2
  563. package/dist/components/gov-container.js +1 -1
  564. package/dist/components/gov-container.js.map +1 -1
  565. package/dist/components/gov-control-group.d.ts +2 -2
  566. package/dist/components/gov-control-group.js +1 -1
  567. package/dist/components/gov-control-group.js.map +1 -1
  568. package/dist/components/gov-cookiebar.d.ts +2 -2
  569. package/dist/components/gov-cookiebar.js +1 -1
  570. package/dist/components/gov-cookiebar.js.map +1 -1
  571. package/dist/components/gov-dropdown.d.ts +2 -2
  572. package/dist/components/gov-dropdown.js +1 -1
  573. package/dist/components/gov-dropdown.js.map +1 -1
  574. package/dist/components/gov-empty.d.ts +2 -2
  575. package/dist/components/gov-empty.js +1 -1
  576. package/dist/components/gov-empty.js.map +1 -1
  577. package/dist/components/gov-error-code.d.ts +2 -2
  578. package/dist/components/gov-error-code.js +1 -1
  579. package/dist/components/gov-error-code.js.map +1 -1
  580. package/dist/components/gov-form-autocomplete.d.ts +2 -2
  581. package/dist/components/gov-form-autocomplete.js +1 -1
  582. package/dist/components/gov-form-autocomplete.js.map +1 -1
  583. package/dist/components/gov-form-checkbox-group.d.ts +2 -2
  584. package/dist/components/gov-form-checkbox-group.js +1 -1
  585. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  586. package/dist/components/gov-form-checkbox.d.ts +2 -2
  587. package/dist/components/gov-form-checkbox.js +1 -1
  588. package/dist/components/gov-form-checkbox.js.map +1 -1
  589. package/dist/components/gov-form-control.d.ts +2 -2
  590. package/dist/components/gov-form-control.js +1 -1
  591. package/dist/components/gov-form-control.js.map +1 -1
  592. package/dist/components/gov-form-file.d.ts +2 -2
  593. package/dist/components/gov-form-file.js +1 -1
  594. package/dist/components/gov-form-file.js.map +1 -1
  595. package/dist/components/gov-form-group.d.ts +2 -2
  596. package/dist/components/gov-form-group.js +1 -1
  597. package/dist/components/gov-form-group.js.map +1 -1
  598. package/dist/components/gov-form-input.d.ts +2 -2
  599. package/dist/components/gov-form-input.js +1 -1
  600. package/dist/components/gov-form-input.js.map +1 -1
  601. package/dist/components/gov-form-label.d.ts +2 -2
  602. package/dist/components/gov-form-label.js +1 -1
  603. package/dist/components/gov-form-label.js.map +1 -1
  604. package/dist/components/gov-form-message.d.ts +2 -2
  605. package/dist/components/gov-form-message.js +1 -1
  606. package/dist/components/gov-form-message.js.map +1 -1
  607. package/dist/components/gov-form-multi-select.d.ts +2 -2
  608. package/dist/components/gov-form-multi-select.js +1 -1
  609. package/dist/components/gov-form-multi-select.js.map +1 -1
  610. package/dist/components/gov-form-password-power.d.ts +2 -2
  611. package/dist/components/gov-form-password-power.js +1 -1
  612. package/dist/components/gov-form-password-power.js.map +1 -1
  613. package/dist/components/gov-form-radio-group.d.ts +2 -2
  614. package/dist/components/gov-form-radio-group.js +1 -1
  615. package/dist/components/gov-form-radio-group.js.map +1 -1
  616. package/dist/components/gov-form-radio.d.ts +2 -2
  617. package/dist/components/gov-form-radio.js +1 -2
  618. package/dist/components/gov-form-radio.js.map +1 -1
  619. package/dist/components/gov-form-search.d.ts +2 -2
  620. package/dist/components/gov-form-search.js +1 -1
  621. package/dist/components/gov-form-search.js.map +1 -1
  622. package/dist/components/gov-form-select.d.ts +2 -2
  623. package/dist/components/gov-form-select.js +1 -1
  624. package/dist/components/gov-form-select.js.map +1 -1
  625. package/dist/components/gov-form-switch.d.ts +2 -2
  626. package/dist/components/gov-form-switch.js +1 -2
  627. package/dist/components/gov-form-switch.js.map +1 -1
  628. package/dist/components/gov-grid-item.d.ts +2 -2
  629. package/dist/components/gov-grid-item.js +1 -1
  630. package/dist/components/gov-grid-item.js.map +1 -1
  631. package/dist/components/gov-grid.d.ts +2 -2
  632. package/dist/components/gov-grid.js +1 -1
  633. package/dist/components/gov-grid.js.map +1 -1
  634. package/dist/components/gov-icon.d.ts +2 -2
  635. package/dist/components/gov-icon.js +1 -1
  636. package/dist/components/gov-icon.js.map +1 -1
  637. package/dist/components/gov-infobar.d.ts +2 -2
  638. package/dist/components/gov-infobar.js +1 -1
  639. package/dist/components/gov-infobar.js.map +1 -1
  640. package/dist/components/gov-layout-column.d.ts +2 -2
  641. package/dist/components/gov-layout-column.js +1 -1
  642. package/dist/components/gov-layout-column.js.map +1 -1
  643. package/dist/components/gov-layout.d.ts +2 -2
  644. package/dist/components/gov-layout.js +1 -1
  645. package/dist/components/gov-layout.js.map +1 -1
  646. package/dist/components/gov-loading.d.ts +2 -2
  647. package/dist/components/gov-loading.js +1 -1
  648. package/dist/components/gov-loading.js.map +1 -1
  649. package/dist/components/gov-message.d.ts +2 -2
  650. package/dist/components/gov-message.js +1 -1
  651. package/dist/components/gov-message.js.map +1 -1
  652. package/dist/components/gov-modal.d.ts +2 -2
  653. package/dist/components/gov-modal.js +1 -1
  654. package/dist/components/gov-modal.js.map +1 -1
  655. package/dist/components/gov-nav-item.d.ts +2 -2
  656. package/dist/components/gov-nav-item.js +1 -1
  657. package/dist/components/gov-nav-item.js.map +1 -1
  658. package/dist/components/gov-nav.d.ts +2 -2
  659. package/dist/components/gov-nav.js +1 -2
  660. package/dist/components/gov-nav.js.map +1 -1
  661. package/dist/components/gov-pagination.d.ts +2 -2
  662. package/dist/components/gov-pagination.js +1 -1
  663. package/dist/components/gov-pagination.js.map +1 -1
  664. package/dist/components/gov-prompt.d.ts +2 -2
  665. package/dist/components/gov-prompt.js +1 -1
  666. package/dist/components/gov-prompt.js.map +1 -1
  667. package/dist/components/gov-side-nav-item.d.ts +2 -2
  668. package/dist/components/gov-side-nav-item.js +1 -1
  669. package/dist/components/gov-side-nav-item.js.map +1 -1
  670. package/dist/components/gov-side-nav.d.ts +2 -2
  671. package/dist/components/gov-side-nav.js +1 -2
  672. package/dist/components/gov-side-nav.js.map +1 -1
  673. package/dist/components/gov-skeleton.d.ts +2 -2
  674. package/dist/components/gov-skeleton.js +1 -2
  675. package/dist/components/gov-skeleton.js.map +1 -1
  676. package/dist/components/gov-spacer.d.ts +2 -2
  677. package/dist/components/gov-spacer.js +1 -1
  678. package/dist/components/gov-spacer.js.map +1 -1
  679. package/dist/components/gov-statsbar-item.d.ts +2 -2
  680. package/dist/components/gov-statsbar-item.js +1 -1
  681. package/dist/components/gov-statsbar-item.js.map +1 -1
  682. package/dist/components/gov-statsbar.d.ts +2 -2
  683. package/dist/components/gov-statsbar.js +1 -1
  684. package/dist/components/gov-statsbar.js.map +1 -1
  685. package/dist/components/gov-stepper-item.d.ts +2 -2
  686. package/dist/components/gov-stepper-item.js +1 -1
  687. package/dist/components/gov-stepper-item.js.map +1 -1
  688. package/dist/components/gov-stepper.d.ts +2 -2
  689. package/dist/components/gov-stepper.js +1 -1
  690. package/dist/components/gov-stepper.js.map +1 -1
  691. package/dist/components/gov-tabs-item.d.ts +2 -2
  692. package/dist/components/gov-tabs-item.js +1 -1
  693. package/dist/components/gov-tabs-item.js.map +1 -1
  694. package/dist/components/gov-tabs.d.ts +2 -2
  695. package/dist/components/gov-tabs.js +1 -1
  696. package/dist/components/gov-tabs.js.map +1 -1
  697. package/dist/components/gov-tag.d.ts +2 -2
  698. package/dist/components/gov-tag.js +1 -1
  699. package/dist/components/gov-tag.js.map +1 -1
  700. package/dist/components/gov-tile.d.ts +2 -2
  701. package/dist/components/gov-tile.js +1 -1
  702. package/dist/components/gov-tile.js.map +1 -1
  703. package/dist/components/gov-tiles.d.ts +2 -2
  704. package/dist/components/gov-tiles.js +1 -1
  705. package/dist/components/gov-tiles.js.map +1 -1
  706. package/dist/components/gov-toast.d.ts +2 -2
  707. package/dist/components/gov-toast.js +1 -1
  708. package/dist/components/gov-toast.js.map +1 -1
  709. package/dist/components/gov-tooltip-content.d.ts +2 -2
  710. package/dist/components/gov-tooltip-content.js +1 -1
  711. package/dist/components/gov-tooltip-content.js.map +1 -1
  712. package/dist/components/gov-tooltip.d.ts +2 -2
  713. package/dist/components/gov-tooltip.js +1 -1
  714. package/dist/components/gov-tooltip.js.map +1 -1
  715. package/dist/components/gov-wizard-item.d.ts +2 -2
  716. package/dist/components/gov-wizard-item.js +1 -1
  717. package/dist/components/gov-wizard-item.js.map +1 -1
  718. package/dist/components/gov-wizard.d.ts +2 -2
  719. package/dist/components/gov-wizard.js +1 -2
  720. package/dist/components/gov-wizard.js.map +1 -1
  721. package/dist/components/index.js +1 -1
  722. package/dist/components/index.js.map +1 -1
  723. package/dist/components/{p-be4aab0e.js → p-0134b442.js} +1 -1
  724. package/dist/{core/p-be4aab0e.js.map → components/p-0134b442.js.map} +1 -1
  725. package/dist/components/{p-74b2311a.js → p-016118d2.js} +2 -2
  726. package/dist/components/{p-74b2311a.js.map → p-016118d2.js.map} +1 -1
  727. package/dist/components/{p-2bf5b814.js → p-016bbea6.js} +1 -1
  728. package/dist/components/{p-2bf5b814.js.map → p-016bbea6.js.map} +1 -1
  729. package/dist/components/{p-ff7365ae.js → p-03dbb8b1.js} +1 -1
  730. package/dist/components/{p-ff7365ae.js.map → p-03dbb8b1.js.map} +1 -1
  731. package/dist/components/{p-b72a7bed.js → p-07165d99.js} +1 -1
  732. package/dist/components/{p-b72a7bed.js.map → p-07165d99.js.map} +1 -1
  733. package/dist/components/{p-ab5a13ea.js → p-0a6a373e.js} +1 -1
  734. package/dist/{core/p-ab5a13ea.js.map → components/p-0a6a373e.js.map} +1 -1
  735. package/dist/components/{p-692b78d9.js → p-0ef9ca38.js} +2 -2
  736. package/dist/components/p-0ef9ca38.js.map +1 -0
  737. package/dist/components/{p-5defdc5e.js → p-13ebd887.js} +1 -1
  738. package/dist/components/{p-5defdc5e.js.map → p-13ebd887.js.map} +1 -1
  739. package/dist/components/p-1c1d0bbe.js.map +1 -1
  740. package/dist/components/{p-6834d779.js → p-20fd8011.js} +2 -2
  741. package/dist/components/{p-6834d779.js.map → p-20fd8011.js.map} +1 -1
  742. package/dist/components/{p-8fcc8483.js → p-240c302e.js} +1 -1
  743. package/dist/components/{p-8fcc8483.js.map → p-240c302e.js.map} +1 -1
  744. package/dist/components/{p-dcb5fb35.js → p-344c72d7.js} +2 -2
  745. package/dist/components/{p-dcb5fb35.js.map → p-344c72d7.js.map} +1 -1
  746. package/dist/components/p-38129200.js +2 -0
  747. package/dist/components/p-38129200.js.map +1 -0
  748. package/dist/components/{p-a6d14a47.js → p-3983d290.js} +1 -1
  749. package/dist/components/{p-a6d14a47.js.map → p-3983d290.js.map} +1 -1
  750. package/dist/components/p-3d3231ab.js +2 -0
  751. package/dist/components/p-3d3231ab.js.map +1 -0
  752. package/dist/components/p-4faa3ba6.js +2 -0
  753. package/dist/components/{p-fa1e4aea.js.map → p-4faa3ba6.js.map} +1 -1
  754. package/dist/components/p-5a881c4f.js +2 -0
  755. package/dist/components/p-5a881c4f.js.map +1 -0
  756. package/dist/components/p-67f93e2f.js +2 -0
  757. package/dist/components/p-67f93e2f.js.map +1 -0
  758. package/dist/components/p-6b0471a8.js +2 -0
  759. package/dist/components/p-6b0471a8.js.map +1 -0
  760. package/dist/components/{p-f04382c3.js → p-77a6e3be.js} +2 -2
  761. package/dist/components/{p-f04382c3.js.map → p-77a6e3be.js.map} +1 -1
  762. package/dist/components/p-7ba4daf4.js +2 -0
  763. package/dist/components/{p-3464136c.js.map → p-7ba4daf4.js.map} +1 -1
  764. package/dist/components/p-850f41a3.js +2 -0
  765. package/dist/components/p-850f41a3.js.map +1 -0
  766. package/dist/components/{p-ffb7495c.js → p-880743a5.js} +1 -1
  767. package/dist/components/{p-ffb7495c.js.map → p-880743a5.js.map} +1 -1
  768. package/dist/components/{p-9144dde1.js → p-8dfac7d7.js} +2 -2
  769. package/dist/components/{p-9144dde1.js.map → p-8dfac7d7.js.map} +1 -1
  770. package/dist/components/{p-4e1215f7.js → p-8f752a63.js} +2 -2
  771. package/dist/components/p-8f752a63.js.map +1 -0
  772. package/dist/components/{p-55500e5a.js → p-92f420cb.js} +1 -1
  773. package/dist/components/{p-55500e5a.js.map → p-92f420cb.js.map} +1 -1
  774. package/dist/components/p-9370b15f.js +2 -0
  775. package/dist/components/{p-3c71d697.js.map → p-9370b15f.js.map} +1 -1
  776. package/dist/components/{p-17ebfe85.js → p-94dd1649.js} +2 -2
  777. package/dist/components/{p-17ebfe85.js.map → p-94dd1649.js.map} +1 -1
  778. package/dist/components/{p-24636c53.js → p-95d41a3b.js} +1 -1
  779. package/dist/components/{p-24636c53.js.map → p-95d41a3b.js.map} +1 -1
  780. package/dist/components/p-bfce6f99.js +2 -0
  781. package/dist/components/p-bfce6f99.js.map +1 -0
  782. package/dist/components/{p-f45783e0.js → p-cc51369e.js} +2 -2
  783. package/dist/components/p-cc51369e.js.map +1 -0
  784. package/dist/components/p-ce45c786.js +2 -0
  785. package/dist/components/{p-9a4c910d.js.map → p-ce45c786.js.map} +1 -1
  786. package/dist/components/p-cff54227.js +3 -0
  787. package/dist/components/p-cff54227.js.map +1 -0
  788. package/dist/components/{p-db1f0452.js → p-d0288df5.js} +1 -1
  789. package/dist/components/{p-db1f0452.js.map → p-d0288df5.js.map} +1 -1
  790. package/dist/components/{p-c353678b.js → p-d687df8f.js} +1 -1
  791. package/dist/components/{p-c353678b.js.map → p-d687df8f.js.map} +1 -1
  792. package/dist/components/{p-03990da5.js → p-e0e2e9c1.js} +1 -1
  793. package/dist/components/{p-03990da5.js.map → p-e0e2e9c1.js.map} +1 -1
  794. package/dist/components/p-e296ca83.js +2 -0
  795. package/dist/components/{p-7f2c9830.js.map → p-e296ca83.js.map} +1 -1
  796. package/dist/components/p-e44a0fee.js +2 -0
  797. package/dist/components/{p-3a04fb9b.js.map → p-e44a0fee.js.map} +1 -1
  798. package/dist/components/p-e618f1cb.js +2 -0
  799. package/dist/components/{p-003e6cca.js.map → p-e618f1cb.js.map} +1 -1
  800. package/dist/components/p-e6b44c13.js +2 -0
  801. package/dist/components/p-e6b44c13.js.map +1 -0
  802. package/dist/components/p-f0d542f2.js +2 -0
  803. package/dist/components/{p-6278531b.js.map → p-f0d542f2.js.map} +1 -1
  804. package/dist/components/{p-768b9ba0.js → p-f0e6e095.js} +2 -2
  805. package/dist/components/p-f0e6e095.js.map +1 -0
  806. package/dist/core/core.esm.js +1 -1
  807. package/dist/core/core.esm.js.map +1 -1
  808. package/dist/core/index.esm.js.map +1 -1
  809. package/dist/core/{p-be4aab0e.js → p-0134b442.js} +1 -1
  810. package/dist/{components/p-be4aab0e.js.map → core/p-0134b442.js.map} +1 -1
  811. package/dist/core/{p-2bf5b814.js → p-016bbea6.js} +1 -1
  812. package/dist/core/{p-2bf5b814.js.map → p-016bbea6.js.map} +1 -1
  813. package/dist/core/{p-ff7365ae.js → p-03dbb8b1.js} +1 -1
  814. package/dist/core/{p-ff7365ae.js.map → p-03dbb8b1.js.map} +1 -1
  815. package/dist/core/p-071857ce.entry.js +2 -0
  816. package/dist/core/p-071857ce.entry.js.map +1 -0
  817. package/dist/core/{p-ab5a13ea.js → p-0a6a373e.js} +1 -1
  818. package/dist/{components/p-ab5a13ea.js.map → core/p-0a6a373e.js.map} +1 -1
  819. package/dist/core/{p-aaf2510a.entry.js → p-0c78bb6a.entry.js} +2 -2
  820. package/dist/core/p-0c78bb6a.entry.js.map +1 -0
  821. package/dist/core/{p-5defdc5e.js → p-13ebd887.js} +1 -1
  822. package/dist/core/{p-5defdc5e.js.map → p-13ebd887.js.map} +1 -1
  823. package/dist/core/p-16ed4995.entry.js +2 -0
  824. package/dist/core/p-16ed4995.entry.js.map +1 -0
  825. package/dist/core/p-1c1d0bbe.js.map +1 -1
  826. package/dist/core/{p-6834d779.js → p-20fd8011.js} +2 -2
  827. package/dist/core/{p-6834d779.js.map → p-20fd8011.js.map} +1 -1
  828. package/dist/core/{p-8fcc8483.js → p-240c302e.js} +1 -1
  829. package/dist/core/{p-8fcc8483.js.map → p-240c302e.js.map} +1 -1
  830. package/dist/core/p-28d8b65c.entry.js +2 -0
  831. package/dist/core/p-28d8b65c.entry.js.map +1 -0
  832. package/dist/core/{p-555eaa93.entry.js → p-2cc5dda1.entry.js} +2 -2
  833. package/dist/core/p-2cc5dda1.entry.js.map +1 -0
  834. package/dist/core/p-307906c9.entry.js +2 -0
  835. package/dist/core/p-307906c9.entry.js.map +1 -0
  836. package/dist/core/{p-6bf8e7bf.entry.js → p-314df6e2.entry.js} +2 -2
  837. package/dist/core/p-314df6e2.entry.js.map +1 -0
  838. package/dist/core/{p-dcb5fb35.js → p-344c72d7.js} +2 -2
  839. package/dist/core/{p-dcb5fb35.js.map → p-344c72d7.js.map} +1 -1
  840. package/dist/core/{p-f2f2c14a.entry.js → p-35a77e2d.entry.js} +2 -3
  841. package/dist/core/p-35a77e2d.entry.js.map +1 -0
  842. package/dist/core/{p-1f769a40.entry.js → p-372910de.entry.js} +2 -2
  843. package/dist/core/p-372910de.entry.js.map +1 -0
  844. package/dist/core/p-37a58991.entry.js +2 -0
  845. package/dist/core/p-37a58991.entry.js.map +1 -0
  846. package/dist/core/p-37f5729b.entry.js +2 -0
  847. package/dist/core/p-37f5729b.entry.js.map +1 -0
  848. package/dist/core/{p-a6d14a47.js → p-3983d290.js} +1 -1
  849. package/dist/core/{p-a6d14a47.js.map → p-3983d290.js.map} +1 -1
  850. package/dist/core/p-3e4a8fa7.entry.js +2 -0
  851. package/dist/core/p-3e4a8fa7.entry.js.map +1 -0
  852. package/dist/core/{p-74b2311a.js → p-3f0dd8fa.js} +2 -2
  853. package/dist/core/{p-74b2311a.js.map → p-3f0dd8fa.js.map} +1 -1
  854. package/dist/core/{p-5de606f8.js → p-4191acf2.js} +1 -1
  855. package/dist/core/{p-5de606f8.js.map → p-4191acf2.js.map} +1 -1
  856. package/dist/core/p-4382ee13.entry.js +2 -0
  857. package/dist/core/p-4382ee13.entry.js.map +1 -0
  858. package/dist/core/{p-55cb727e.entry.js → p-443894aa.entry.js} +2 -2
  859. package/dist/core/p-443894aa.entry.js.map +1 -0
  860. package/dist/core/{p-dd4445ee.entry.js → p-45411344.entry.js} +2 -2
  861. package/dist/core/p-45411344.entry.js.map +1 -0
  862. package/dist/core/p-45b869ae.js +2 -0
  863. package/dist/core/{p-9dab01be.js.map → p-45b869ae.js.map} +1 -1
  864. package/dist/core/p-46ddd055.entry.js +2 -0
  865. package/dist/core/p-46ddd055.entry.js.map +1 -0
  866. package/dist/core/{p-72c5997f.entry.js → p-47efa303.entry.js} +2 -2
  867. package/dist/core/p-47efa303.entry.js.map +1 -0
  868. package/dist/core/p-49f584a3.entry.js +2 -0
  869. package/dist/core/p-49f584a3.entry.js.map +1 -0
  870. package/dist/core/p-4c68eb90.entry.js +2 -0
  871. package/dist/core/p-4c68eb90.entry.js.map +1 -0
  872. package/dist/core/p-4faa3ba6.js +2 -0
  873. package/dist/core/{p-fa1e4aea.js.map → p-4faa3ba6.js.map} +1 -1
  874. package/dist/core/{p-1ebf3575.entry.js → p-51f069f2.entry.js} +2 -3
  875. package/dist/core/p-51f069f2.entry.js.map +1 -0
  876. package/dist/core/p-5cf78f1c.entry.js +2 -0
  877. package/dist/core/p-5cf78f1c.entry.js.map +1 -0
  878. package/dist/core/p-5d1f350b.entry.js +2 -0
  879. package/dist/core/p-5d1f350b.entry.js.map +1 -0
  880. package/dist/core/p-5fa30ebf.entry.js +2 -0
  881. package/dist/core/p-5fa30ebf.entry.js.map +1 -0
  882. package/dist/core/{p-d2c370d6.entry.js → p-6378b5af.entry.js} +2 -2
  883. package/dist/core/p-6378b5af.entry.js.map +1 -0
  884. package/dist/core/p-671041de.entry.js +2 -0
  885. package/dist/core/p-671041de.entry.js.map +1 -0
  886. package/dist/core/{p-f6a4bf04.entry.js → p-680c0fee.entry.js} +2 -3
  887. package/dist/core/p-680c0fee.entry.js.map +1 -0
  888. package/dist/core/p-7ba4daf4.js +2 -0
  889. package/dist/core/{p-3464136c.js.map → p-7ba4daf4.js.map} +1 -1
  890. package/dist/core/{p-fc710edb.entry.js → p-7eeb23c5.entry.js} +2 -2
  891. package/dist/core/p-7eeb23c5.entry.js.map +1 -0
  892. package/dist/core/p-815d86ed.entry.js +2 -0
  893. package/dist/core/p-815d86ed.entry.js.map +1 -0
  894. package/dist/core/{p-529ce9a4.entry.js → p-854e705c.entry.js} +2 -2
  895. package/dist/core/p-854e705c.entry.js.map +1 -0
  896. package/dist/core/{p-ffb7495c.js → p-880743a5.js} +1 -1
  897. package/dist/core/{p-ffb7495c.js.map → p-880743a5.js.map} +1 -1
  898. package/dist/core/p-893bc0ef.entry.js +2 -0
  899. package/dist/core/p-893bc0ef.entry.js.map +1 -0
  900. package/dist/core/{p-60963ed7.entry.js → p-8c80d1aa.entry.js} +2 -2
  901. package/dist/core/p-8c80d1aa.entry.js.map +1 -0
  902. package/dist/core/{p-9144dde1.js → p-8dfac7d7.js} +2 -2
  903. package/dist/core/{p-9144dde1.js.map → p-8dfac7d7.js.map} +1 -1
  904. package/dist/core/p-8fc87295.entry.js +2 -0
  905. package/dist/core/p-8fc87295.entry.js.map +1 -0
  906. package/dist/core/p-92b7481f.js +2 -0
  907. package/dist/core/p-92b7481f.js.map +1 -0
  908. package/dist/core/p-92bef3b8.entry.js +2 -0
  909. package/dist/core/p-92bef3b8.entry.js.map +1 -0
  910. package/dist/core/{p-55500e5a.js → p-92f420cb.js} +1 -1
  911. package/dist/core/{p-55500e5a.js.map → p-92f420cb.js.map} +1 -1
  912. package/dist/core/{p-28a50f60.entry.js → p-94bc809d.entry.js} +2 -3
  913. package/dist/core/p-94bc809d.entry.js.map +1 -0
  914. package/dist/core/{p-17ebfe85.js → p-94dd1649.js} +2 -2
  915. package/dist/core/{p-17ebfe85.js.map → p-94dd1649.js.map} +1 -1
  916. package/dist/core/{p-24636c53.js → p-95d41a3b.js} +1 -1
  917. package/dist/core/{p-24636c53.js.map → p-95d41a3b.js.map} +1 -1
  918. package/dist/core/p-9de457bf.entry.js +2 -0
  919. package/dist/core/p-9de457bf.entry.js.map +1 -0
  920. package/dist/core/{p-127af1b4.entry.js → p-9f08ac81.entry.js} +2 -2
  921. package/dist/core/p-9f08ac81.entry.js.map +1 -0
  922. package/dist/core/{p-90c068ff.entry.js → p-a01a9f16.entry.js} +2 -2
  923. package/dist/core/p-a01a9f16.entry.js.map +1 -0
  924. package/dist/core/p-a0b01f1b.entry.js +2 -0
  925. package/dist/core/p-a0b01f1b.entry.js.map +1 -0
  926. package/dist/core/p-a14aa161.entry.js +2 -0
  927. package/dist/core/p-a14aa161.entry.js.map +1 -0
  928. package/dist/core/p-a45a55eb.entry.js +2 -0
  929. package/dist/core/p-a45a55eb.entry.js.map +1 -0
  930. package/dist/core/p-a6221940.js +3 -0
  931. package/dist/core/p-a6221940.js.map +1 -0
  932. package/dist/core/p-a82a8d9c.entry.js +2 -0
  933. package/dist/core/p-a82a8d9c.entry.js.map +1 -0
  934. package/dist/core/{p-715dccc0.entry.js → p-aaad919f.entry.js} +2 -3
  935. package/dist/core/p-aaad919f.entry.js.map +1 -0
  936. package/dist/core/p-b25da41e.entry.js +2 -0
  937. package/dist/core/p-b25da41e.entry.js.map +1 -0
  938. package/dist/core/p-b4b79f0a.entry.js +2 -0
  939. package/dist/core/p-b4b79f0a.entry.js.map +1 -0
  940. package/dist/core/{p-d07d3dcc.entry.js → p-b5ceb3ba.entry.js} +2 -2
  941. package/dist/core/p-b5ceb3ba.entry.js.map +1 -0
  942. package/dist/core/p-b7e96a9d.entry.js +2 -0
  943. package/dist/core/p-b7e96a9d.entry.js.map +1 -0
  944. package/dist/core/{p-148613fd.entry.js → p-c1911b6a.entry.js} +2 -3
  945. package/dist/core/p-c1911b6a.entry.js.map +1 -0
  946. package/dist/core/p-c366f797.entry.js +2 -0
  947. package/dist/core/p-c366f797.entry.js.map +1 -0
  948. package/dist/core/{p-61a2b12a.js → p-c98fe646.js} +2 -2
  949. package/dist/core/{p-61a2b12a.js.map → p-c98fe646.js.map} +1 -1
  950. package/dist/core/{p-67096d72.entry.js → p-c9bd2a6e.entry.js} +2 -2
  951. package/dist/core/p-c9bd2a6e.entry.js.map +1 -0
  952. package/dist/core/p-ce45c786.js +2 -0
  953. package/dist/core/{p-9a4c910d.js.map → p-ce45c786.js.map} +1 -1
  954. package/dist/core/{p-db1f0452.js → p-d0288df5.js} +1 -1
  955. package/dist/core/{p-db1f0452.js.map → p-d0288df5.js.map} +1 -1
  956. package/dist/core/p-d51fa875.entry.js +2 -0
  957. package/dist/core/p-d51fa875.entry.js.map +1 -0
  958. package/dist/core/p-dd45944f.entry.js +2 -0
  959. package/dist/core/p-dd45944f.entry.js.map +1 -0
  960. package/dist/core/{p-0f4f02a6.entry.js → p-de924143.entry.js} +2 -3
  961. package/dist/core/p-de924143.entry.js.map +1 -0
  962. package/dist/core/{p-03990da5.js → p-e0e2e9c1.js} +1 -1
  963. package/dist/core/{p-03990da5.js.map → p-e0e2e9c1.js.map} +1 -1
  964. package/dist/core/p-e1255160.js +2 -0
  965. package/dist/core/p-e1255160.js.map +1 -0
  966. package/dist/core/p-e1a5a373.entry.js +2 -0
  967. package/dist/core/p-e1a5a373.entry.js.map +1 -0
  968. package/dist/core/p-e296ca83.js +2 -0
  969. package/dist/core/{p-7f2c9830.js.map → p-e296ca83.js.map} +1 -1
  970. package/dist/core/p-e44a0fee.js +2 -0
  971. package/dist/core/{p-3a04fb9b.js.map → p-e44a0fee.js.map} +1 -1
  972. package/dist/core/p-e618f1cb.js +2 -0
  973. package/dist/core/{p-003e6cca.js.map → p-e618f1cb.js.map} +1 -1
  974. package/dist/core/{p-0c5c6dee.entry.js → p-e7845795.entry.js} +2 -2
  975. package/dist/core/p-e7845795.entry.js.map +1 -0
  976. package/dist/core/{p-43fc5c70.entry.js → p-ecbb9731.entry.js} +2 -3
  977. package/dist/core/p-ecbb9731.entry.js.map +1 -0
  978. package/dist/core/{p-4988c0bb.entry.js → p-ee1637ef.entry.js} +2 -2
  979. package/dist/core/p-ee1637ef.entry.js.map +1 -0
  980. package/dist/core/p-f0d542f2.js +2 -0
  981. package/dist/core/{p-6278531b.js.map → p-f0d542f2.js.map} +1 -1
  982. package/dist/core/{p-f3967a1d.entry.js → p-f10ad856.entry.js} +2 -3
  983. package/dist/core/p-f10ad856.entry.js.map +1 -0
  984. package/dist/core/{p-151f1b89.entry.js → p-f6416cb8.entry.js} +2 -2
  985. package/dist/core/p-f6416cb8.entry.js.map +1 -0
  986. package/dist/core/{p-c67ddbd3.entry.js → p-fbbd1e5d.entry.js} +2 -3
  987. package/dist/core/p-fbbd1e5d.entry.js.map +1 -0
  988. package/dist/core/{p-30673e46.entry.js → p-fccbecd3.entry.js} +2 -2
  989. package/dist/core/p-fccbecd3.entry.js.map +1 -0
  990. package/dist/core/p-fdead70e.js +2 -0
  991. package/dist/core/{p-4c55142b.js.map → p-fdead70e.js.map} +1 -1
  992. package/dist/esm/app-globals-0f993ce5.js +5 -0
  993. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  994. package/dist/esm/array.utils-5ce9a471.js +43 -0
  995. package/dist/esm/array.utils-5ce9a471.js.map +1 -0
  996. package/dist/esm/constants-0014bc7f.js +24 -0
  997. package/dist/esm/{constants-2499979c.js.map → constants-0014bc7f.js.map} +1 -1
  998. package/dist/esm/constants-122ac484.js +25 -0
  999. package/dist/esm/{constants-78474786.js.map → constants-122ac484.js.map} +1 -1
  1000. package/dist/esm/constants-14f351fd.js +23 -0
  1001. package/dist/esm/{constants-887c5391.js.map → constants-14f351fd.js.map} +1 -1
  1002. package/dist/esm/constants-1998bac1.js +19 -0
  1003. package/dist/esm/{constants-867ac6e2.js.map → constants-1998bac1.js.map} +1 -1
  1004. package/dist/esm/{constants-2b14bb01.js → constants-2d5a0e18.js} +3 -3
  1005. package/dist/esm/{constants-2b14bb01.js.map → constants-2d5a0e18.js.map} +1 -1
  1006. package/dist/esm/constants-43f10674.js +12 -0
  1007. package/dist/esm/{constants-ebec7de8.js.map → constants-43f10674.js.map} +1 -1
  1008. package/dist/esm/{constants-e80d9514.js → constants-4da2b3c0.js} +8 -8
  1009. package/dist/esm/{constants-e80d9514.js.map → constants-4da2b3c0.js.map} +1 -1
  1010. package/dist/esm/constants-66db9786.js +25 -0
  1011. package/dist/esm/{constants-09bda759.js.map → constants-66db9786.js.map} +1 -1
  1012. package/dist/esm/constants-78d0d7ff.js +13 -0
  1013. package/dist/esm/{constants-3df712e2.js.map → constants-78d0d7ff.js.map} +1 -1
  1014. package/dist/esm/constants-a2828485.js +12 -0
  1015. package/dist/esm/{constants-d71c09e0.js.map → constants-a2828485.js.map} +1 -1
  1016. package/dist/esm/constants-a5fadb10.js +29 -0
  1017. package/dist/esm/{constants-6df4edc4.js.map → constants-a5fadb10.js.map} +1 -1
  1018. package/dist/esm/constants-f0f531b6.js +22 -0
  1019. package/dist/esm/{constants-3786b01b.js.map → constants-f0f531b6.js.map} +1 -1
  1020. package/dist/esm/constants-f63d2d63.js +18 -0
  1021. package/dist/esm/{constants-2a283e9a.js.map → constants-f63d2d63.js.map} +1 -1
  1022. package/dist/esm/constants-f6ecfd4e.js +33 -0
  1023. package/dist/esm/{constants-34a29ae2.js.map → constants-f6ecfd4e.js.map} +1 -1
  1024. package/dist/esm/constants-f98e7750.js +22 -0
  1025. package/dist/esm/{constants-27b48cd1.js.map → constants-f98e7750.js.map} +1 -1
  1026. package/dist/esm/constants-ff234810.js +17 -0
  1027. package/dist/esm/{constants-47d7a8bc.js.map → constants-ff234810.js.map} +1 -1
  1028. package/dist/esm/core.js +33 -33
  1029. package/dist/esm/core.js.map +1 -1
  1030. package/dist/esm/form-738c5b12.js +145 -0
  1031. package/dist/esm/form-738c5b12.js.map +1 -0
  1032. package/dist/esm/gov-accordion-item.entry.js +89 -88
  1033. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  1034. package/dist/esm/gov-accordion.entry.js +63 -62
  1035. package/dist/esm/gov-accordion.entry.js.map +1 -1
  1036. package/dist/esm/gov-attachments_3.entry.js +91 -88
  1037. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  1038. package/dist/esm/gov-backdrop.entry.js +34 -33
  1039. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  1040. package/dist/esm/gov-breadcrumbs.entry.js +57 -56
  1041. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  1042. package/dist/esm/gov-button.entry.js +166 -165
  1043. package/dist/esm/gov-button.entry.js.map +1 -1
  1044. package/dist/esm/gov-card.entry.js +91 -90
  1045. package/dist/esm/gov-card.entry.js.map +1 -1
  1046. package/dist/esm/gov-chip.entry.js +90 -89
  1047. package/dist/esm/gov-chip.entry.js.map +1 -1
  1048. package/dist/esm/gov-container.entry.js +21 -20
  1049. package/dist/esm/gov-container.entry.js.map +1 -1
  1050. package/dist/esm/gov-control-group.entry.js +27 -26
  1051. package/dist/esm/gov-control-group.entry.js.map +1 -1
  1052. package/dist/esm/gov-cookiebar.entry.js +18 -17
  1053. package/dist/esm/gov-cookiebar.entry.js.map +1 -1
  1054. package/dist/esm/gov-dropdown.entry.js +62 -59
  1055. package/dist/esm/gov-dropdown.entry.js.map +1 -1
  1056. package/dist/esm/gov-empty.entry.js +16 -15
  1057. package/dist/esm/gov-empty.entry.js.map +1 -1
  1058. package/dist/esm/gov-error-code.entry.js +16 -15
  1059. package/dist/esm/gov-error-code.entry.js.map +1 -1
  1060. package/dist/esm/gov-form-autocomplete.entry.js +237 -236
  1061. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  1062. package/dist/esm/gov-form-checkbox-group.entry.js +70 -69
  1063. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  1064. package/dist/esm/gov-form-checkbox.entry.js +121 -120
  1065. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  1066. package/dist/esm/gov-form-control.entry.js +91 -90
  1067. package/dist/esm/gov-form-control.entry.js.map +1 -1
  1068. package/dist/esm/gov-form-file.entry.js +226 -225
  1069. package/dist/esm/gov-form-file.entry.js.map +1 -1
  1070. package/dist/esm/gov-form-group.entry.js +36 -35
  1071. package/dist/esm/gov-form-group.entry.js.map +1 -1
  1072. package/dist/esm/gov-form-input.entry.js +180 -178
  1073. package/dist/esm/gov-form-input.entry.js.map +1 -1
  1074. package/dist/esm/gov-form-label.entry.js +18 -17
  1075. package/dist/esm/gov-form-label.entry.js.map +1 -1
  1076. package/dist/esm/gov-form-multi-select.entry.js +261 -260
  1077. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  1078. package/dist/esm/gov-form-password-power.entry.js +13 -12
  1079. package/dist/esm/gov-form-password-power.entry.js.map +1 -1
  1080. package/dist/esm/gov-form-radio-group.entry.js +59 -58
  1081. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  1082. package/dist/esm/gov-form-radio.entry.js +121 -120
  1083. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  1084. package/dist/esm/gov-form-search.entry.js +16 -15
  1085. package/dist/esm/gov-form-search.entry.js.map +1 -1
  1086. package/dist/esm/gov-form-select.entry.js +151 -150
  1087. package/dist/esm/gov-form-select.entry.js.map +1 -1
  1088. package/dist/esm/gov-form-switch.entry.js +121 -120
  1089. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  1090. package/dist/esm/gov-grid-item.entry.js +18 -17
  1091. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  1092. package/dist/esm/gov-grid.entry.js +16 -15
  1093. package/dist/esm/gov-grid.entry.js.map +1 -1
  1094. package/dist/esm/gov-icon.entry.js +96 -95
  1095. package/dist/esm/gov-icon.entry.js.map +1 -1
  1096. package/dist/esm/gov-infobar.entry.js +71 -70
  1097. package/dist/esm/gov-infobar.entry.js.map +1 -1
  1098. package/dist/esm/gov-layout-column.entry.js +13 -12
  1099. package/dist/esm/gov-layout-column.entry.js.map +1 -1
  1100. package/dist/esm/gov-layout.entry.js +22 -21
  1101. package/dist/esm/gov-layout.entry.js.map +1 -1
  1102. package/dist/esm/gov-loading.entry.js +15 -14
  1103. package/dist/esm/gov-loading.entry.js.map +1 -1
  1104. package/dist/esm/gov-message.entry.js +28 -27
  1105. package/dist/esm/gov-message.entry.js.map +1 -1
  1106. package/dist/esm/gov-modal.entry.js +93 -90
  1107. package/dist/esm/gov-modal.entry.js.map +1 -1
  1108. package/dist/esm/gov-nav-item.entry.js +26 -25
  1109. package/dist/esm/gov-nav-item.entry.js.map +1 -1
  1110. package/dist/esm/gov-nav.entry.js +29 -28
  1111. package/dist/esm/gov-nav.entry.js.map +1 -1
  1112. package/dist/esm/gov-pagination.entry.js +193 -192
  1113. package/dist/esm/gov-pagination.entry.js.map +1 -1
  1114. package/dist/esm/gov-prompt.entry.js +89 -88
  1115. package/dist/esm/gov-prompt.entry.js.map +1 -1
  1116. package/dist/esm/gov-side-nav-item.entry.js +74 -73
  1117. package/dist/esm/gov-side-nav-item.entry.js.map +1 -1
  1118. package/dist/esm/gov-side-nav.entry.js +43 -42
  1119. package/dist/esm/gov-side-nav.entry.js.map +1 -1
  1120. package/dist/esm/gov-skeleton.entry.js +92 -91
  1121. package/dist/esm/gov-skeleton.entry.js.map +1 -1
  1122. package/dist/esm/gov-spacer.entry.js +39 -38
  1123. package/dist/esm/gov-spacer.entry.js.map +1 -1
  1124. package/dist/esm/gov-statsbar-item.entry.js +28 -27
  1125. package/dist/esm/gov-statsbar-item.entry.js.map +1 -1
  1126. package/dist/esm/gov-statsbar.entry.js +41 -40
  1127. package/dist/esm/gov-statsbar.entry.js.map +1 -1
  1128. package/dist/esm/gov-stepper-item.entry.js +64 -63
  1129. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  1130. package/dist/esm/gov-stepper.entry.js +39 -38
  1131. package/dist/esm/gov-stepper.entry.js.map +1 -1
  1132. package/dist/esm/gov-tabs-item.entry.js +48 -40
  1133. package/dist/esm/gov-tabs-item.entry.js.map +1 -1
  1134. package/dist/esm/gov-tabs.entry.js +196 -183
  1135. package/dist/esm/gov-tabs.entry.js.map +1 -1
  1136. package/dist/esm/gov-tag.entry.js +43 -42
  1137. package/dist/esm/gov-tag.entry.js.map +1 -1
  1138. package/dist/esm/gov-tile.entry.js +27 -26
  1139. package/dist/esm/gov-tile.entry.js.map +1 -1
  1140. package/dist/esm/gov-tiles.entry.js +18 -17
  1141. package/dist/esm/gov-tiles.entry.js.map +1 -1
  1142. package/dist/esm/gov-toast.entry.js +81 -80
  1143. package/dist/esm/gov-toast.entry.js.map +1 -1
  1144. package/dist/esm/gov-tooltip-content.entry.js +39 -38
  1145. package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
  1146. package/dist/esm/gov-tooltip.entry.js +216 -207
  1147. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  1148. package/dist/esm/gov-wizard-item.entry.js +97 -96
  1149. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  1150. package/dist/esm/gov-wizard.entry.js +56 -55
  1151. package/dist/esm/gov-wizard.entry.js.map +1 -1
  1152. package/dist/esm/gov.log-431da6b2.js +25 -0
  1153. package/dist/esm/{gov.log-49da0221.js.map → gov.log-431da6b2.js.map} +1 -1
  1154. package/dist/esm/helpers-5d179d4b.js +17 -0
  1155. package/dist/{cjs/helpers-2c870ff5.js.map → esm/helpers-5d179d4b.js.map} +1 -1
  1156. package/dist/esm/index-84a63a3e.js +2010 -0
  1157. package/dist/esm/index-84a63a3e.js.map +1 -0
  1158. package/dist/esm/loader.js +6 -4
  1159. package/dist/esm/loader.js.map +1 -1
  1160. package/dist/esm/props-ec3beb91.js +14 -0
  1161. package/dist/esm/{props-a85d9c89.js.map → props-ec3beb91.js.map} +1 -1
  1162. package/dist/esm/sizes-5b9e579f.js +18 -0
  1163. package/dist/esm/{sizes-6c5943b4.js.map → sizes-5b9e579f.js.map} +1 -1
  1164. package/dist/esm/stencil.utils-5d8e3d11.js +9 -0
  1165. package/dist/esm/{stencil.utils-7cb5b075.js.map → stencil.utils-5d8e3d11.js.map} +1 -1
  1166. package/dist/esm/string.utils-5ce3f551.js +20 -0
  1167. package/dist/esm/{string.utils-f268fc6b.js.map → string.utils-5ce3f551.js.map} +1 -1
  1168. package/dist/esm/template-94812ab3.js +123 -0
  1169. package/dist/esm/template-94812ab3.js.map +1 -0
  1170. package/dist/esm/{utils-c057a3fa.js → utils-e10e994d.js} +9 -9
  1171. package/dist/esm/{utils-c057a3fa.js.map → utils-e10e994d.js.map} +1 -1
  1172. package/dist/esm/variants-69f013c1.js +18 -0
  1173. package/dist/esm/{variants-2b936d58.js.map → variants-69f013c1.js.map} +1 -1
  1174. package/dist/esm/wcag-6ad92279.js +62 -0
  1175. package/dist/esm/{wcag-7d25e12b.js.map → wcag-6ad92279.js.map} +1 -1
  1176. package/dist/esm/{win-1dbd3f5c.js → win-b64cd8a6.js} +16 -16
  1177. package/dist/esm/{win-1dbd3f5c.js.map → win-b64cd8a6.js.map} +1 -1
  1178. package/dist/globals.d.ts +2 -0
  1179. package/dist/hydrate/index.d.ts +36 -18
  1180. package/dist/hydrate/index.js +23082 -11872
  1181. package/dist/hydrate/index.mjs +24102 -0
  1182. package/dist/hydrate/package.json +7 -1
  1183. package/dist/stencil.config.js +78 -78
  1184. package/dist/stencil.config.js.map +1 -1
  1185. package/dist/types/components/gov-accordion/constants.d.ts +11 -11
  1186. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +53 -53
  1187. package/dist/types/components/gov-accordion/gov-accordion.d.ts +37 -37
  1188. package/dist/types/components/gov-accordion/gov-accordion.types.d.ts +4 -4
  1189. package/dist/types/components/gov-attachments/constants.d.ts +7 -7
  1190. package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +2 -2
  1191. package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +21 -21
  1192. package/dist/types/components/gov-attachments/gov-attachments.d.ts +17 -17
  1193. package/dist/types/components/gov-backdrop/constants.d.ts +2 -2
  1194. package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +25 -25
  1195. package/dist/types/components/gov-breadcrumbs/constants.d.ts +1 -1
  1196. package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +2 -2
  1197. package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +38 -38
  1198. package/dist/types/components/gov-button/button/constants.d.ts +12 -12
  1199. package/dist/types/components/gov-button/button/gov-button.d.ts +176 -176
  1200. package/dist/types/components/gov-button/button/gov-button.types.d.ts +1 -1
  1201. package/dist/types/components/gov-button/dropdown/constants.d.ts +4 -4
  1202. package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +34 -29
  1203. package/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +1 -1
  1204. package/dist/types/components/gov-card/constants.d.ts +11 -11
  1205. package/dist/types/components/gov-card/gov-card.d.ts +56 -56
  1206. package/dist/types/components/gov-card/interfaces.d.ts +2 -2
  1207. package/dist/types/components/gov-chip/constants.d.ts +7 -7
  1208. package/dist/types/components/gov-chip/gov-chip.d.ts +89 -89
  1209. package/dist/types/components/gov-container/constants.d.ts +1 -1
  1210. package/dist/types/components/gov-container/gov-container.d.ts +10 -10
  1211. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  1212. package/dist/types/components/gov-control-group/gov-control-group.d.ts +13 -13
  1213. package/dist/types/components/gov-cookiebar/constants.d.ts +6 -6
  1214. package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +4 -4
  1215. package/dist/types/components/gov-empty/constants.d.ts +4 -4
  1216. package/dist/types/components/gov-empty/gov-empty.d.ts +4 -4
  1217. package/dist/types/components/gov-error-code/constants.d.ts +4 -4
  1218. package/dist/types/components/gov-error-code/gov-error-code.d.ts +4 -4
  1219. package/dist/types/components/gov-form/autocomplete/constants.d.ts +5 -5
  1220. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +160 -160
  1221. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +3 -3
  1222. package/dist/types/components/gov-form/checkbox/constants.d.ts +3 -3
  1223. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +84 -84
  1224. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +2 -2
  1225. package/dist/types/components/gov-form/control/constants.d.ts +3 -3
  1226. package/dist/types/components/gov-form/control/gov-form-control.d.ts +44 -44
  1227. package/dist/types/components/gov-form/file/constants.d.ts +7 -7
  1228. package/dist/types/components/gov-form/file/gov-form-file.d.ts +138 -138
  1229. package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +6 -6
  1230. package/dist/types/components/gov-form/group/constants.d.ts +5 -5
  1231. package/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +25 -25
  1232. package/dist/types/components/gov-form/group/gov-form-group.d.ts +15 -15
  1233. package/dist/types/components/gov-form/group/gov-form-group.types.d.ts +2 -2
  1234. package/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +26 -26
  1235. package/dist/types/components/gov-form/input/constants.d.ts +15 -15
  1236. package/dist/types/components/gov-form/input/gov-form-input.d.ts +184 -180
  1237. package/dist/types/components/gov-form/input/gov-form-input.types.d.ts +1 -1
  1238. package/dist/types/components/gov-form/label/constants.d.ts +2 -2
  1239. package/dist/types/components/gov-form/label/gov-form-label.d.ts +22 -22
  1240. package/dist/types/components/gov-form/message/constants.d.ts +3 -3
  1241. package/dist/types/components/gov-form/message/gov-form-message.d.ts +15 -15
  1242. package/dist/types/components/gov-form/multiselect/constants.d.ts +4 -4
  1243. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +140 -140
  1244. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +4 -4
  1245. package/dist/types/components/gov-form/password-power/constants.d.ts +3 -3
  1246. package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +5 -5
  1247. package/dist/types/components/gov-form/radio/constants.d.ts +5 -5
  1248. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +84 -84
  1249. package/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +2 -2
  1250. package/dist/types/components/gov-form/search/constants.d.ts +3 -3
  1251. package/dist/types/components/gov-form/search/gov-form-search.d.ts +6 -6
  1252. package/dist/types/components/gov-form/select/constants.d.ts +2 -2
  1253. package/dist/types/components/gov-form/select/gov-form-select.d.ts +107 -107
  1254. package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +4 -4
  1255. package/dist/types/components/gov-form/switch/constants.d.ts +4 -4
  1256. package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +84 -84
  1257. package/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +2 -2
  1258. package/dist/types/components/gov-grid/constants.d.ts +2 -2
  1259. package/dist/types/components/gov-grid/gov-grid-item.d.ts +24 -24
  1260. package/dist/types/components/gov-grid/gov-grid.d.ts +12 -12
  1261. package/dist/types/components/gov-icon/constants.d.ts +5 -5
  1262. package/dist/types/components/gov-icon/gov-icon.d.ts +21 -21
  1263. package/dist/types/components/gov-icon/helpers.d.ts +2 -2
  1264. package/dist/types/components/gov-infobar/constants.d.ts +7 -7
  1265. package/dist/types/components/gov-infobar/gov-infobar.d.ts +45 -45
  1266. package/dist/types/components/gov-infobar/gov-infobar.types.d.ts +1 -1
  1267. package/dist/types/components/gov-layout/constants.d.ts +8 -8
  1268. package/dist/types/components/gov-layout/gov-layout-column.d.ts +4 -4
  1269. package/dist/types/components/gov-layout/gov-layout.d.ts +17 -17
  1270. package/dist/types/components/gov-loading/loading/constants.d.ts +3 -3
  1271. package/dist/types/components/gov-loading/loading/gov-loading.d.ts +4 -4
  1272. package/dist/types/components/gov-loading/skeleton/constants.d.ts +8 -8
  1273. package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +48 -48
  1274. package/dist/types/components/gov-message/constants.d.ts +4 -4
  1275. package/dist/types/components/gov-message/gov-message.d.ts +9 -9
  1276. package/dist/types/components/gov-modal/constants.d.ts +12 -12
  1277. package/dist/types/components/gov-modal/gov-modal.d.ts +74 -66
  1278. package/dist/types/components/gov-nav/constants.d.ts +4 -4
  1279. package/dist/types/components/gov-nav/gov-nav-item.d.ts +10 -10
  1280. package/dist/types/components/gov-nav/gov-nav.d.ts +15 -15
  1281. package/dist/types/components/gov-pagination/constants.d.ts +10 -10
  1282. package/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -97
  1283. package/dist/types/components/gov-pagination/gov-pagination.types.d.ts +1 -1
  1284. package/dist/types/components/gov-pagination/pagination.d.ts +9 -9
  1285. package/dist/types/components/gov-promp/constants.d.ts +10 -10
  1286. package/dist/types/components/gov-promp/gov-prompt.d.ts +62 -62
  1287. package/dist/types/components/gov-side-nav/constants.d.ts +11 -11
  1288. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +2 -2
  1289. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +63 -63
  1290. package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +28 -28
  1291. package/dist/types/components/gov-spacer/constants.d.ts +6 -6
  1292. package/dist/types/components/gov-spacer/gov-spacer.d.ts +15 -15
  1293. package/dist/types/components/gov-statsbar/constants.d.ts +7 -7
  1294. package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +10 -10
  1295. package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +16 -16
  1296. package/dist/types/components/gov-stepper/constants.d.ts +11 -11
  1297. package/dist/types/components/gov-stepper/gov-stepper-item.d.d.ts +2 -2
  1298. package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +43 -43
  1299. package/dist/types/components/gov-stepper/gov-stepper.d.ts +15 -15
  1300. package/dist/types/components/gov-tabs/constants.d.ts +11 -11
  1301. package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +43 -35
  1302. package/dist/types/components/gov-tabs/gov-tabs.d.ts +68 -67
  1303. package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +7 -6
  1304. package/dist/types/components/gov-tag/constants.d.ts +1 -1
  1305. package/dist/types/components/gov-tag/gov-tag.d.ts +27 -27
  1306. package/dist/types/components/gov-tile/constants.d.ts +7 -7
  1307. package/dist/types/components/gov-tile/container/constants.d.ts +1 -1
  1308. package/dist/types/components/gov-tile/container/gov-tiles.d.ts +13 -13
  1309. package/dist/types/components/gov-tile/gov-tile.d.ts +18 -18
  1310. package/dist/types/components/gov-toast/constants.d.ts +6 -6
  1311. package/dist/types/components/gov-toast/gov-toast.d.ts +49 -49
  1312. package/dist/types/components/gov-tooltip/constants.d.ts +6 -6
  1313. package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +25 -25
  1314. package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +52 -51
  1315. package/dist/types/components/gov-wizard/constants.d.ts +10 -10
  1316. package/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +2 -2
  1317. package/dist/types/components/gov-wizard/gov-wizard-item.d.ts +67 -67
  1318. package/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +1 -1
  1319. package/dist/types/components/gov-wizard/gov-wizard.d.ts +28 -28
  1320. package/dist/types/components.d.ts +422 -0
  1321. package/dist/types/core/constants/sizes.d.ts +11 -11
  1322. package/dist/types/core/constants/tags.d.ts +9 -9
  1323. package/dist/types/core/constants/variants.d.ts +8 -8
  1324. package/dist/types/helpers/Dom/form.types.d.ts +8 -8
  1325. package/dist/types/helpers/Dom/template.types.d.ts +10 -10
  1326. package/dist/types/helpers/Dom/win.d.ts +14 -14
  1327. package/dist/types/helpers/Log/gov.log.d.ts +2 -2
  1328. package/dist/types/pages/Accordion.d.ts +1 -1
  1329. package/dist/types/pages/Breadcrumbs.d.ts +1 -1
  1330. package/dist/types/pages/Button.d.ts +1 -1
  1331. package/dist/types/pages/Card.d.ts +1 -1
  1332. package/dist/types/pages/Chip.d.ts +1 -1
  1333. package/dist/types/pages/Container.d.ts +1 -1
  1334. package/dist/types/pages/ControlGroup.d.ts +1 -1
  1335. package/dist/types/pages/Cookiebar.d.ts +1 -1
  1336. package/dist/types/pages/Empty.d.ts +1 -1
  1337. package/dist/types/pages/Error.d.ts +1 -1
  1338. package/dist/types/pages/FormLabel.d.ts +1 -1
  1339. package/dist/types/pages/FormMessage.d.ts +1 -1
  1340. package/dist/types/pages/Forms.d.ts +2 -2
  1341. package/dist/types/pages/FormsRestructure.d.ts +1 -1
  1342. package/dist/types/pages/Grid.d.ts +1 -1
  1343. package/dist/types/pages/Home.d.ts +1 -1
  1344. package/dist/types/pages/Infobar.d.ts +1 -1
  1345. package/dist/types/pages/Layout.d.ts +1 -1
  1346. package/dist/types/pages/Loading.d.ts +1 -1
  1347. package/dist/types/pages/Message.d.ts +1 -1
  1348. package/dist/types/pages/Modal.d.ts +1 -1
  1349. package/dist/types/pages/Nav.d.ts +1 -1
  1350. package/dist/types/pages/Pagination.d.ts +1 -1
  1351. package/dist/types/pages/Prompt.d.ts +1 -1
  1352. package/dist/types/pages/SideNav.d.ts +1 -1
  1353. package/dist/types/pages/Spacer.d.ts +1 -1
  1354. package/dist/types/pages/Statsbar.d.ts +1 -1
  1355. package/dist/types/pages/Stepper.d.ts +1 -1
  1356. package/dist/types/pages/Tabs.d.ts +1 -1
  1357. package/dist/types/pages/Tag.d.ts +1 -1
  1358. package/dist/types/pages/Tiles.d.ts +1 -1
  1359. package/dist/types/pages/ToastMessage.d.ts +1 -1
  1360. package/dist/types/pages/ToastMessageCountdown.d.ts +1 -1
  1361. package/dist/types/pages/Tooltip.d.ts +1 -1
  1362. package/dist/types/pages/Typography.d.ts +1 -1
  1363. package/dist/types/pages/Wizard.d.ts +1 -1
  1364. package/dist/types/stencil-public-runtime.d.ts +35 -13
  1365. package/dist/types/types/event.types.d.ts +2 -2
  1366. package/dist/types/types/typings.d.ts +6 -0
  1367. package/dist/types/utils/helpers.types.d.ts +12 -12
  1368. package/dist/types/utils/icon.utils.d.ts +2 -2
  1369. package/loader/cdn.js +1 -3
  1370. package/loader/index.cjs.js +1 -3
  1371. package/loader/index.d.ts +3 -0
  1372. package/loader/index.es2017.js +1 -3
  1373. package/loader/index.js +1 -3
  1374. package/package.json +7 -7
  1375. package/dist/cjs/array.utils-5a024b3a.js +0 -46
  1376. package/dist/cjs/array.utils-5a024b3a.js.map +0 -1
  1377. package/dist/cjs/constants-0c6c8e11.js +0 -30
  1378. package/dist/cjs/constants-25f7a6be.js +0 -22
  1379. package/dist/cjs/constants-2b1c31b8.js +0 -15
  1380. package/dist/cjs/constants-427a2843.js +0 -33
  1381. package/dist/cjs/constants-440cd5c8.js +0 -29
  1382. package/dist/cjs/constants-66cb0615.js +0 -20
  1383. package/dist/cjs/constants-6df82618.js +0 -21
  1384. package/dist/cjs/constants-97eea364.js +0 -14
  1385. package/dist/cjs/constants-caad94b4.js +0 -16
  1386. package/dist/cjs/constants-dde21dcf.js +0 -30
  1387. package/dist/cjs/form-893791cf.js +0 -163
  1388. package/dist/cjs/form-893791cf.js.map +0 -1
  1389. package/dist/cjs/gov.log-b842920d.js +0 -28
  1390. package/dist/cjs/helpers-2c870ff5.js +0 -19
  1391. package/dist/cjs/index-7b6bba34.js +0 -2721
  1392. package/dist/cjs/index-7b6bba34.js.map +0 -1
  1393. package/dist/cjs/props-d6146e54.js +0 -16
  1394. package/dist/cjs/sizes-79872c2a.js +0 -18
  1395. package/dist/cjs/stencil.utils-22814956.js +0 -11
  1396. package/dist/cjs/string.utils-0f08c48c.js +0 -24
  1397. package/dist/cjs/template-9534c584.js +0 -132
  1398. package/dist/cjs/template-9534c584.js.map +0 -1
  1399. package/dist/cjs/variants-f5ffeef3.js +0 -18
  1400. package/dist/cjs/wcag-e6257f27.js +0 -67
  1401. package/dist/components/p-003e6cca.js +0 -2
  1402. package/dist/components/p-033f8bda.js +0 -2
  1403. package/dist/components/p-033f8bda.js.map +0 -1
  1404. package/dist/components/p-156b4f92.js +0 -2
  1405. package/dist/components/p-156b4f92.js.map +0 -1
  1406. package/dist/components/p-2bdd00a0.js +0 -2
  1407. package/dist/components/p-2bdd00a0.js.map +0 -1
  1408. package/dist/components/p-2dee9951.js +0 -2
  1409. package/dist/components/p-2dee9951.js.map +0 -1
  1410. package/dist/components/p-3464136c.js +0 -2
  1411. package/dist/components/p-3a04fb9b.js +0 -2
  1412. package/dist/components/p-3c71d697.js +0 -2
  1413. package/dist/components/p-4e1215f7.js.map +0 -1
  1414. package/dist/components/p-4ff831e3.js +0 -2
  1415. package/dist/components/p-4ff831e3.js.map +0 -1
  1416. package/dist/components/p-6278531b.js +0 -2
  1417. package/dist/components/p-692b78d9.js.map +0 -1
  1418. package/dist/components/p-768b9ba0.js.map +0 -1
  1419. package/dist/components/p-7f2c9830.js +0 -2
  1420. package/dist/components/p-9a4c910d.js +0 -2
  1421. package/dist/components/p-b9ee51d6.js +0 -3
  1422. package/dist/components/p-b9ee51d6.js.map +0 -1
  1423. package/dist/components/p-c3fdf866.js +0 -2
  1424. package/dist/components/p-c3fdf866.js.map +0 -1
  1425. package/dist/components/p-f45783e0.js.map +0 -1
  1426. package/dist/components/p-f8b7ea69.js +0 -3
  1427. package/dist/components/p-f8b7ea69.js.map +0 -1
  1428. package/dist/components/p-fa1e4aea.js +0 -2
  1429. package/dist/core/p-0028fadc.entry.js +0 -2
  1430. package/dist/core/p-0028fadc.entry.js.map +0 -1
  1431. package/dist/core/p-003e6cca.js +0 -2
  1432. package/dist/core/p-0c5c6dee.entry.js.map +0 -1
  1433. package/dist/core/p-0e53df52.entry.js +0 -3
  1434. package/dist/core/p-0e53df52.entry.js.map +0 -1
  1435. package/dist/core/p-0f4f02a6.entry.js.map +0 -1
  1436. package/dist/core/p-127af1b4.entry.js.map +0 -1
  1437. package/dist/core/p-148613fd.entry.js.map +0 -1
  1438. package/dist/core/p-151f1b89.entry.js.map +0 -1
  1439. package/dist/core/p-1ebf3575.entry.js.map +0 -1
  1440. package/dist/core/p-1f769a40.entry.js.map +0 -1
  1441. package/dist/core/p-28a50f60.entry.js.map +0 -1
  1442. package/dist/core/p-2d15339f.entry.js +0 -3
  1443. package/dist/core/p-2d15339f.entry.js.map +0 -1
  1444. package/dist/core/p-2d1f3d62.entry.js +0 -2
  1445. package/dist/core/p-2d1f3d62.entry.js.map +0 -1
  1446. package/dist/core/p-30673e46.entry.js.map +0 -1
  1447. package/dist/core/p-3464136c.js +0 -2
  1448. package/dist/core/p-3a04fb9b.js +0 -2
  1449. package/dist/core/p-42072b8f.entry.js +0 -2
  1450. package/dist/core/p-42072b8f.entry.js.map +0 -1
  1451. package/dist/core/p-43fc5c70.entry.js.map +0 -1
  1452. package/dist/core/p-46467293.entry.js +0 -3
  1453. package/dist/core/p-46467293.entry.js.map +0 -1
  1454. package/dist/core/p-4988c0bb.entry.js.map +0 -1
  1455. package/dist/core/p-4c55142b.js +0 -2
  1456. package/dist/core/p-529ce9a4.entry.js.map +0 -1
  1457. package/dist/core/p-53e0ad52.entry.js +0 -2
  1458. package/dist/core/p-53e0ad52.entry.js.map +0 -1
  1459. package/dist/core/p-542ce647.entry.js +0 -2
  1460. package/dist/core/p-542ce647.entry.js.map +0 -1
  1461. package/dist/core/p-54fa7af5.entry.js +0 -2
  1462. package/dist/core/p-54fa7af5.entry.js.map +0 -1
  1463. package/dist/core/p-555eaa93.entry.js.map +0 -1
  1464. package/dist/core/p-55cb727e.entry.js.map +0 -1
  1465. package/dist/core/p-5bc604a3.js +0 -3
  1466. package/dist/core/p-5bc604a3.js.map +0 -1
  1467. package/dist/core/p-60963ed7.entry.js.map +0 -1
  1468. package/dist/core/p-60d681a6.entry.js +0 -2
  1469. package/dist/core/p-60d681a6.entry.js.map +0 -1
  1470. package/dist/core/p-6278531b.js +0 -2
  1471. package/dist/core/p-67096d72.entry.js.map +0 -1
  1472. package/dist/core/p-6bf8e7bf.entry.js.map +0 -1
  1473. package/dist/core/p-705efbf1.entry.js +0 -2
  1474. package/dist/core/p-705efbf1.entry.js.map +0 -1
  1475. package/dist/core/p-715dccc0.entry.js.map +0 -1
  1476. package/dist/core/p-71ca4aee.entry.js +0 -3
  1477. package/dist/core/p-71ca4aee.entry.js.map +0 -1
  1478. package/dist/core/p-72c5997f.entry.js.map +0 -1
  1479. package/dist/core/p-74882c70.entry.js +0 -2
  1480. package/dist/core/p-74882c70.entry.js.map +0 -1
  1481. package/dist/core/p-7724b535.js +0 -2
  1482. package/dist/core/p-7724b535.js.map +0 -1
  1483. package/dist/core/p-7abfd047.entry.js +0 -3
  1484. package/dist/core/p-7abfd047.entry.js.map +0 -1
  1485. package/dist/core/p-7d921045.entry.js +0 -3
  1486. package/dist/core/p-7d921045.entry.js.map +0 -1
  1487. package/dist/core/p-7f2c9830.js +0 -2
  1488. package/dist/core/p-90c068ff.entry.js.map +0 -1
  1489. package/dist/core/p-9469ecc2.entry.js +0 -2
  1490. package/dist/core/p-9469ecc2.entry.js.map +0 -1
  1491. package/dist/core/p-9a4c910d.js +0 -2
  1492. package/dist/core/p-9c04470d.entry.js +0 -2
  1493. package/dist/core/p-9c04470d.entry.js.map +0 -1
  1494. package/dist/core/p-9dab01be.js +0 -2
  1495. package/dist/core/p-a35484ed.entry.js +0 -2
  1496. package/dist/core/p-a35484ed.entry.js.map +0 -1
  1497. package/dist/core/p-aaf2510a.entry.js.map +0 -1
  1498. package/dist/core/p-ab1c25e7.entry.js +0 -3
  1499. package/dist/core/p-ab1c25e7.entry.js.map +0 -1
  1500. package/dist/core/p-b7e0b030.entry.js +0 -2
  1501. package/dist/core/p-b7e0b030.entry.js.map +0 -1
  1502. package/dist/core/p-b88d732b.entry.js +0 -3
  1503. package/dist/core/p-b88d732b.entry.js.map +0 -1
  1504. package/dist/core/p-bdd4ee7c.entry.js +0 -3
  1505. package/dist/core/p-bdd4ee7c.entry.js.map +0 -1
  1506. package/dist/core/p-be2f3b8f.entry.js +0 -2
  1507. package/dist/core/p-be2f3b8f.entry.js.map +0 -1
  1508. package/dist/core/p-c67ddbd3.entry.js.map +0 -1
  1509. package/dist/core/p-ce1486b8.entry.js +0 -2
  1510. package/dist/core/p-ce1486b8.entry.js.map +0 -1
  1511. package/dist/core/p-d07d3dcc.entry.js.map +0 -1
  1512. package/dist/core/p-d2c370d6.entry.js.map +0 -1
  1513. package/dist/core/p-d513468a.entry.js +0 -2
  1514. package/dist/core/p-d513468a.entry.js.map +0 -1
  1515. package/dist/core/p-d6eed6df.entry.js +0 -3
  1516. package/dist/core/p-d6eed6df.entry.js.map +0 -1
  1517. package/dist/core/p-dd4445ee.entry.js.map +0 -1
  1518. package/dist/core/p-e5bcedb7.entry.js +0 -2
  1519. package/dist/core/p-e5bcedb7.entry.js.map +0 -1
  1520. package/dist/core/p-eaedc9e3.entry.js +0 -2
  1521. package/dist/core/p-eaedc9e3.entry.js.map +0 -1
  1522. package/dist/core/p-f2206bbb.entry.js +0 -2
  1523. package/dist/core/p-f2206bbb.entry.js.map +0 -1
  1524. package/dist/core/p-f2f2c14a.entry.js.map +0 -1
  1525. package/dist/core/p-f3967a1d.entry.js.map +0 -1
  1526. package/dist/core/p-f4ef1b95.entry.js +0 -2
  1527. package/dist/core/p-f4ef1b95.entry.js.map +0 -1
  1528. package/dist/core/p-f6a4bf04.entry.js.map +0 -1
  1529. package/dist/core/p-fa1e4aea.js +0 -2
  1530. package/dist/core/p-fc710edb.entry.js.map +0 -1
  1531. package/dist/core/p-ff3323bd.entry.js +0 -3
  1532. package/dist/core/p-ff3323bd.entry.js.map +0 -1
  1533. package/dist/esm/array.utils-b27436ea.js +0 -43
  1534. package/dist/esm/array.utils-b27436ea.js.map +0 -1
  1535. package/dist/esm/constants-09bda759.js +0 -25
  1536. package/dist/esm/constants-2499979c.js +0 -24
  1537. package/dist/esm/constants-27b48cd1.js +0 -22
  1538. package/dist/esm/constants-2a283e9a.js +0 -18
  1539. package/dist/esm/constants-34a29ae2.js +0 -33
  1540. package/dist/esm/constants-3786b01b.js +0 -22
  1541. package/dist/esm/constants-3df712e2.js +0 -13
  1542. package/dist/esm/constants-47d7a8bc.js +0 -17
  1543. package/dist/esm/constants-6df4edc4.js +0 -29
  1544. package/dist/esm/constants-78474786.js +0 -25
  1545. package/dist/esm/constants-867ac6e2.js +0 -19
  1546. package/dist/esm/constants-887c5391.js +0 -23
  1547. package/dist/esm/constants-d71c09e0.js +0 -12
  1548. package/dist/esm/constants-ebec7de8.js +0 -12
  1549. package/dist/esm/form-b81fd97e.js +0 -145
  1550. package/dist/esm/form-b81fd97e.js.map +0 -1
  1551. package/dist/esm/gov.log-49da0221.js +0 -25
  1552. package/dist/esm/helpers-bc0fd116.js +0 -17
  1553. package/dist/esm/helpers-bc0fd116.js.map +0 -1
  1554. package/dist/esm/index-eb59f132.js +0 -2690
  1555. package/dist/esm/index-eb59f132.js.map +0 -1
  1556. package/dist/esm/polyfills/core-js.js +0 -11
  1557. package/dist/esm/polyfills/dom.js +0 -79
  1558. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1559. package/dist/esm/polyfills/index.js +0 -34
  1560. package/dist/esm/polyfills/system.js +0 -6
  1561. package/dist/esm/props-a85d9c89.js +0 -14
  1562. package/dist/esm/sizes-6c5943b4.js +0 -18
  1563. package/dist/esm/stencil.utils-7cb5b075.js +0 -9
  1564. package/dist/esm/string.utils-f268fc6b.js +0 -20
  1565. package/dist/esm/template-a0067bb6.js +0 -123
  1566. package/dist/esm/template-a0067bb6.js.map +0 -1
  1567. package/dist/esm/variants-2b936d58.js +0 -18
  1568. package/dist/esm/wcag-7d25e12b.js +0 -62
@@ -1 +0,0 @@
1
- {"version":3,"names":["govModalCss","GovModal","constructor","hostRef","this","h","govHost","host","labelId","createID","contentId","validateLabelTag","newValue","validTags","includes","govErrorLog","ModalClass","root","watchOpen","open","closeCtaRef","setFocus","catch","showModal","document","body","classList","add","bodyFix","hideModal","remove","componentWillRender","componentDidRender","canValidateWcagOnRender","delay","validateAccessibility","render","LabelTag","labelTag","Host","class","classes","dialog","hidden","tabindex","boolToFocusValue","toBoolAttr","wcagLabelledBy","wcagDescribedBy","role","inner","header","hasSlot","icon","name","label","title","id","ref","el","disabled","blockClose","close","variant","wcagLabel","wcagCloseLabel","wcagCloseLabelledBy","type","onCloseHandler","bind","content","footer","e","stopPropagation","govClose","emit","show","hide","validateWcagRef"],"sources":["../../../packages/core/src/components/gov-modal/gov-modal.scss?tag=gov-modal","../../../packages/core/src/components/gov-modal/gov-modal.tsx"],"sourcesContent":["/*\n * Modal\n */\n\n$class: \".gov-modal\";\n\n#{$class} {\n\tdisplay: none;\n\n\t&__dialog {\n\t\t@include z-index(\"modal\", 1);\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tmax-width: $modal-max-width;\n\t\theight: 100%;\n\t\tpadding: rem-calc(8);\n\t\tborder: none;\n\t\tbackground: transparent;\n\t\ttransform: translate(-50%, -50%);\n\t\tpointer-events: none;\n\t}\n\n\t&__inner {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t\tmax-height: 100%;\n\t\tborder-radius: $border-radius;\n\t\tbackground: $modal-bg;\n\t\toverflow: hidden;\n\t\tpointer-events: auto;\n\t\tbox-shadow: get($shadow-l, $shadows);\n\t}\n\n\t&__header {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\talign-items: flex-start;\n\t\tpadding: rem-calc(24 16);\n\t\tborder-bottom: $modal-border;\n\t}\n\n\t&__icon {\n\t\tflex: 0 0 auto;\n\t\tpadding-top: calc(((var(--gov-text-#{$font-size-3xl}-font-size) * 1.5) - rem-calc(24)) / 2);\n\n\t\t& > * {\n\t\t\twidth: rem-calc(24);\n\t\t\theight: rem-calc(24);\n\t\t}\n\t}\n\n\t&__title {\n\t\t@include typography($font-size-3xl);\n\t\tmargin: 0;\n\t}\n\n\t&__close {\n\t\tflex: 0 0 auto;\n\t\tmargin-left: auto;\n\t}\n\n\t&__content {\n\t\t@include reset-last-margin();\n\t\theight: 100%;\n\t\tpadding: rem-calc(24 16);\n\t\tcolor: $modal-text-color;\n\t\toverflow: auto;\n\t}\n\n\t&__footer,\n\t&__actions {\n\t\tpadding: rem-calc(24 16);\n\t\tborder-top: $modal-border;\n\t}\n\n\t&__actions {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(8 16);\n\t\tflex-wrap: wrap;\n\t\tjustify-content: flex-end;\n\t}\n\n\t// STATES\n\t&__dialog:focus &__inner {\n\t\toutline: $outline;\n\t}\n\n\t@include parameter(\"open\") {\n\t\tdisplay: block;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&__dialog {\n\t\t\tmax-width: calc($modal-max-width + 2 * rem-calc(24));\n\t\t\tpadding: rem-calc(24);\n\n\t\t\t&:focus {\n\t\t\t\toutline-offset: rem-calc(-24);\n\t\t\t}\n\t\t}\n\t\t&__inner {\n\t\t\tbox-shadow: get($shadow-xl, $shadows);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt &__dialog {\n\t\t\tmax-width: calc($modal-prompt-max-width + 2 * rem-calc(24));\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&__header {\n\t\t\tgap: rem-calc(20);\n\t\t\tpadding: rem-calc(32 40 32 48);\n\t\t}\n\t\t&__content {\n\t\t\tpadding: rem-calc(32 48);\n\t\t}\n\t\t&__footer {\n\t\t\tpadding: rem-calc(16 48);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt {\n\t\t\t#{$class} {\n\t\t\t\t&__header,\n\t\t\t\t&__content,\n\t\t\t\t&__footer,\n\t\t\t\t&__actions {\n\t\t\t\t\tpadding: rem-calc(24);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch} from '@stencil/core'\nimport {boolToFocusValue, govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {govErrorLog} from '../../helpers/Log/gov.log'\nimport {validateWcagRef} from '../../helpers/Validate/wcag'\nimport {Nullable} from '../../types/interfaces'\nimport {createID} from '../../utils/string.utils'\nimport {delay} from '../../utils/utils'\nimport {ModalClass} from './constants'\n\n@Component({\n\ttag: 'gov-modal',\n\tstyleUrl: 'gov-modal.scss',\n})\nexport class GovModal {\n\tprivate h: GovHost\n\tprivate readonly labelId: string\n\tprivate readonly contentId: string\n\tprivate closeCtaRef?: HTMLGovButtonElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.labelId = createID('GovModalLabel')\n\t\tthis.contentId = createID('GovModalContent')\n\t}\n\n\t@Element() host: HTMLGovModalElement\n\n\t/**\n\t * Attribute for modal window display\n\t */\n\t@Prop({mutable: true}) open = false\n\t/**\n\t * Attribute allowing blocking the modal closing\n\t */\n\t@Prop() blockClose = false\n\t/**\n\t * Title of modal window\n\t */\n\t@Prop() label: string\n\t/**\n\t * Role of modal\n\t */\n\t@Prop({attribute: 'role'}) role: Nullable<string> = 'dialog'\n\t/**\n\t * Used to change the HTML tag in the modal label for correct semantic structure\n\t */\n\t@Prop({attribute: 'label-tag'}) readonly labelTag: string = 'h2'\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({attribute: 'wcag-labelled-by'}) wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component that describes the modal.\n\t */\n\t@Prop({attribute: 'wcag-described-by'}) wcagDescribedBy: string\n\t/**\n\t * Adds accessible label for the modal close button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'wcag-close-label'}) readonly wcagCloseLabel: string = 'Zavřít okno'\n\t/**\n\t * A string of identifiers that indicate alternative label elements for closing the modal window\n\t */\n\t@Prop({attribute: 'wcag-close-labelled-by'}) wcagCloseLabelledBy: string\n\t/**\n\t * Emitted when modal window closes.\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<PointerEvent>\n\n\t@Watch('labelTag')\n\tvalidateLabelTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('open')\n\twatchOpen(newValue: boolean): void {\n\t\tthis.open = newValue\n\t\tif (newValue && this.closeCtaRef) {\n\t\t\tthis.closeCtaRef.setFocus().catch()\n\t\t}\n\t}\n\n\tprivate showModal() {\n\t\tthis.open = true\n\t\tdocument.body.classList.add(ModalClass.bodyFix)\n\t}\n\n\tprivate hideModal() {\n\t\tthis.open = false\n\t\tdocument.body.classList.remove(ModalClass.bodyFix)\n\t}\n\n\tasync componentWillRender() {\n\t\tif (this.open) {\n\t\t\tthis.showModal()\n\t\t} else {\n\t\t\tthis.hideModal()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\tconst LabelTag = this.labelTag\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ModalClass.root)} open={this.open}>\n\t\t\t\t<dialog\n\t\t\t\t\tclass={ModalClass.dialog}\n\t\t\t\t\thidden={!this.open}\n\t\t\t\t\ttabindex={boolToFocusValue(this.open)}\n\t\t\t\t\topen={this.open}\n\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy || this.labelId}\n\t\t\t\t\taria-describedby={this.wcagDescribedBy || this.contentId}\n\t\t\t\t\trole={this.role}\n\t\t\t\t>\n\t\t\t\t\t<div class={ModalClass.inner}>\n\t\t\t\t\t\t<div class={ModalClass.header}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<div class={ModalClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{this.label && (\n\t\t\t\t\t\t\t\t<LabelTag class={ModalClass.title} id={this.labelId}>\n\t\t\t\t\t\t\t\t\t{this.label}\n\t\t\t\t\t\t\t\t</LabelTag>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\tref={el => (this.closeCtaRef = el)}\n\t\t\t\t\t\t\t\tdisabled={this.blockClose}\n\t\t\t\t\t\t\t\tclass={ModalClass.close}\n\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\twcagLabel={this.wcagCloseLabel}\n\t\t\t\t\t\t\t\twcagLabelledBy={this.wcagCloseLabelledBy}\n\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\"/>\n\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={ModalClass.content} id={this.contentId}>\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t\t<div class={ModalClass.footer}>\n\t\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</dialog>\n\n\t\t\t\t{this.open ? (\n\t\t\t\t\t<gov-backdrop wcag-label={this.wcagCloseLabel} wcag-labelled-by={this.wcagCloseLabelledBy}\n\t\t\t\t\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}/>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t\tif (this.blockClose === false) {\n\t\t\tthis.hideModal()\n\t\t\tthis.govClose.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showModal()\n\t}\n\n\t/**\n\t * Hiding the modal\n\t */\n\t@Method()\n\tasync hide(): Promise<void> {\n\t\tthis.hideModal()\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagLabelledBy, 'wcag-labelled-by', ModalClass.root)\n\t\tvalidateWcagRef(this.wcagDescribedBy, 'wcag-described-by', ModalClass.root)\n\t}\n}\n"],"mappings":"0UAAA,MAAMA,EAAc,wyF,MCePC,EAAQ,MAMpB,WAAAC,CAAAC,G,wDAW8B,M,gBAIT,M,+BAQ+B,S,cAIQ,K,iFAYa,c,mCAtCxEC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,QAAUC,EAAS,iBACxBL,KAAKM,UAAYD,EAAS,kB,CA+C3B,gBAAAE,CAAiBC,GAChB,MAAMC,EAAY,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,MACjD,GAAID,EAAU,CACb,IAAKC,EAAUC,SAASF,GAAW,CAClCG,EAAY,IAAIC,EAAWC,cAAcL,oB,GAM5C,SAAAM,CAAUN,GACTR,KAAKe,KAAOP,EACZ,GAAIA,GAAYR,KAAKgB,YAAa,CACjChB,KAAKgB,YAAYC,WAAWC,O,EAItB,SAAAC,GACPnB,KAAKe,KAAO,KACZK,SAASC,KAAKC,UAAUC,IAAIX,EAAWY,Q,CAGhC,SAAAC,GACPzB,KAAKe,KAAO,MACZK,SAASC,KAAKC,UAAUI,OAAOd,EAAWY,Q,CAG3C,yBAAMG,GACL,GAAI3B,KAAKe,KAAM,CACdf,KAAKmB,W,KACC,CACNnB,KAAKyB,W,EAIP,wBAAMG,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACN9B,KAAK+B,c,EAIb,MAAAC,GACC,MAAMC,EAAWjC,KAAKkC,SACtB,OACCjC,EAACkC,EAAI,CAACC,MAAOpC,KAAKC,EAAEoC,QAAQzB,EAAWC,MAAOE,KAAMf,KAAKe,MACxDd,EAAA,UACCmC,MAAOxB,EAAW0B,OAClBC,QAASvC,KAAKe,KACdyB,SAAUC,EAAiBzC,KAAKe,MAChCA,KAAMf,KAAKe,KAAI,aACJ,OAAM,cACJ2B,GAAY1C,KAAKe,MAAK,kBAClBf,KAAK2C,gBAAkB3C,KAAKI,QAAO,mBAClCJ,KAAK4C,iBAAmB5C,KAAKM,UAC/CuC,KAAM7C,KAAK6C,MAEX5C,EAAA,OAAKmC,MAAOxB,EAAWkC,OACtB7C,EAAA,OAAKmC,MAAOxB,EAAWmC,QACrB/C,KAAKC,EAAE+C,QAAQ,SACf/C,EAAA,OAAKmC,MAAOxB,EAAWqC,MACtBhD,EAAA,QAAMiD,KAAK,UAGZlD,KAAKmD,OACLlD,EAACgC,EAAQ,CAACG,MAAOxB,EAAWwC,MAAOC,GAAIrD,KAAKI,SAC1CJ,KAAKmD,OAGRlD,EAAA,cACCqD,IAAKC,GAAOvD,KAAKgB,YAAcuC,EAC/BC,SAAUxD,KAAKyD,WACfrB,MAAOxB,EAAW8C,MAClBC,QAAQ,UACRC,UAAW5D,KAAK6D,eAChBlB,eAAgB3C,KAAK8D,oBACrBC,KAAK,OAAM,eACG/D,KAAKgE,eAAeC,KAAKjE,OAEvCC,EAAA,YAAUiD,KAAK,WAGjBjD,EAAA,OAAKmC,MAAOxB,EAAWsD,QAASb,GAAIrD,KAAKM,WACxCL,EAAA,cAEAD,KAAKC,EAAE+C,QAAQ,WACf/C,EAAA,OAAKmC,MAAOxB,EAAWuD,QACtBlE,EAAA,QAAMiD,KAAK,cAMdlD,KAAKe,KACLd,EAAA,6BAA0BD,KAAK6D,eAAc,mBAAoB7D,KAAK8D,oBAAmB,eACpE9D,KAAKgE,eAAeC,KAAKjE,QAC3C,K,CAKC,cAAAgE,CAAeI,GACtBA,EAAEC,kBACF,GAAIrE,KAAKyD,aAAe,MAAO,CAC9BzD,KAAKyB,YACLzB,KAAKsE,SAASC,KAAKH,E,EAQrB,UAAMI,GACLxE,KAAKmB,W,CAON,UAAMsD,GACLzE,KAAKyB,W,CAON,kBAAMM,GACL2C,EAAgB1E,KAAK2C,eAAgB,mBAAoB/B,EAAWC,MACpE6D,EAAgB1E,KAAK4C,gBAAiB,oBAAqBhC,EAAWC,K"}
@@ -1,2 +0,0 @@
1
- import{d as t,r as i,h as s,a as n,g as e}from"./p-5bc604a3.js";import{i as o,e as a}from"./p-003e6cca.js";import{g as r}from"./p-5de606f8.js";import"./p-03990da5.js";var c;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(c||(c={}));const h={root:"gov-icon",holder:"gov-icon__holder"};const l="4.0.8-rc10";const p=()=>l;const d={};const f={};const u=t=>t.startsWith("http://")||t.startsWith("https://");const g=(i,s,n)=>{if(u(i)){return`${i}/${n}/${s}.svg?v=${p()}`}return t(`${i}/${n}/${s}.svg`)+`?v=${p()}`};async function m({name:t,type:i}){const s=i+"-"+t;if(d[s]){return d[s]}if(!f[s]){f[s]=fetch(g(o(),t,i)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const n=await f[s];d[s]=n;return n}const y=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-icon{display:inline-flex}.gov-icon__holder{display:inline-flex;width:100%;height:100%}.gov-icon__holder+.gov-icon__holder{display:none !important}.gov-icon svg{display:inline-flex;width:100%;height:100%;max-width:100%;max-height:100%}";const v=class{constructor(t){i(this,t);this.name=null;this.type="basic";this.iconData=undefined;this.visible=false;this.error=false;this.h=r(this.host)}async loadIconPathData(){const{name:t,visible:i,type:s}=this;if(!t||!i){return}try{this.iconData=await m({name:t,type:s})}catch(t){this.error=true}}connectedCallback(){if(a()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((i=>{i.forEach((i=>{if(i.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}render(){if(this.error){return null}return s(n,{class:this.h.classes(h.root)},s("span",{class:h.holder,innerHTML:this.iconData}))}static get assetsDirs(){return["assets"]}get host(){return e(this)}static get watchers(){return{name:["loadIconPathData"]}}};v.style=y;export{v as gov_icon};
2
- //# sourceMappingURL=p-be2f3b8f.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Types","IconClass","root","holder","dsVersion","version","iconCache","requestCache","isExternalUrl","path","startsWith","iconUrl","name","type","getAssetPath","async","fetchIcon","cacheKey","fetch","iconsPath","then","resp","status","text","Error","govIconCss","GovIcon","constructor","hostRef","this","h","govHost","host","loadIconPathData","visible","iconData","e","error","connectedCallback","iconsLazyLoad","finally","waitUntilVisible","disconnectedCallback","intersectionObserver","disconnect","componentWillLoad","callback","window","IntersectionObserver","entries","forEach","entry","isIntersecting","rootMargin","observe","render","Host","class","classes","innerHTML"],"sources":["../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/utils/ds.utils.ts","../../../packages/core/src/utils/icon.utils.ts","../../../packages/core/src/components/gov-icon/gov-icon.scss?tag=gov-icon","../../../packages/core/src/components/gov-icon/gov-icon.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import { version } from '../../package.json'\n\nexport const dsVersion = (): string => {\n\treturn version\n}\n","import { getAssetPath } from \"@stencil/core\"\nimport { dsVersion } from \"./ds.utils\"\nimport { iconsPath } from \"../helpers/Dom/win\"\n\nconst iconCache: { [key: string]: string } = {}\nconst requestCache: { [key: string]: Promise<string> } = {}\n\nconst isExternalUrl = (path: string) => path.startsWith(\"http://\") || path.startsWith(\"https://\")\nconst iconUrl = (path: string, name: string, type: string) => {\n\tif (isExternalUrl(path)) {\n\t\treturn `${path}/${type}/${name}.svg?v=${dsVersion()}`\n\t}\n\treturn getAssetPath(`${path}/${type}/${name}.svg`) + `?v=${dsVersion()}`\n}\n\nexport async function fetchIcon({ name, type }: { name: string; type: string }): Promise<string> {\n\tconst cacheKey = type + \"-\" + name\n\tif (iconCache[cacheKey]) {\n\t\treturn iconCache[cacheKey]\n\t}\n\tif (!requestCache[cacheKey]) {\n\t\trequestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\n\t\t\tif (resp.status === 200) {\n\t\t\t\treturn resp.text()\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Gov Icon doesn't exists\")\n\t\t\t}\n\t\t})\n\t}\n\tconst path = await requestCache[cacheKey]\n\ticonCache[cacheKey] = path\n\treturn path\n}\n","/*\n * Icon\n */\n\n$class: \".gov-icon\";\n\n#{$class} {\n\tdisplay: inline-flex;\n\t&__holder {\n\t\tdisplay: inline-flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t& + #{$class}__holder {\n\t\t\tdisplay: none !important;\n\t\t}\n\t}\n\tsvg {\n\t\tdisplay: inline-flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmax-width: 100%;\n\t\tmax-height: 100%;\n\t}\n}\n","import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\n\n@Component({\n assetsDirs: [\"assets\"],\n styleUrl: \"gov-icon.scss\",\n tag: \"gov-icon\",\n})\nexport class GovIcon {\n private h: GovHost\n\n constructor() {\n this.h = govHost(this.host)\n }\n\n @Element() host: HTMLGovIconElement\n /**\n * Name of icon\n */\n @Prop() name: string = null\n /**\n * Type (folder) of icon\n */\n @Prop() type: string = \"basic\"\n @State() private iconData: string\n @State() private visible = false\n @State() private error = false\n private intersectionObserver: IntersectionObserver\n\n @Watch(\"name\")\n private async loadIconPathData(): Promise<void> {\n const {name, visible, type} = this\n if (!Build.isBrowser || !name || !visible) {\n return\n }\n try {\n this.iconData = await fetchIcon({name, type})\n } catch (e) {\n this.error = true\n }\n }\n\n connectedCallback(): void {\n if (iconsLazyLoad()) {\n this.visible = true\n this.loadIconPathData().finally()\n } else {\n this.waitUntilVisible(async () => {\n this.visible = true\n await this.loadIconPathData()\n })\n }\n }\n\n disconnectedCallback(): void {\n if (this.intersectionObserver) {\n this.intersectionObserver.disconnect()\n this.intersectionObserver = null\n }\n }\n\n async componentWillLoad(): Promise<void> {\n await this.loadIconPathData()\n }\n\n private waitUntilVisible(callback: () => void): void {\n if (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n callback()\n return\n }\n this.intersectionObserver = new IntersectionObserver(\n entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n if (this.intersectionObserver) {\n this.intersectionObserver.disconnect()\n this.intersectionObserver = null\n }\n callback()\n }\n })\n },\n {rootMargin: \"50px\"},\n )\n this.intersectionObserver.observe(this.host)\n }\n\n render() {\n if (this.error) {\n return null\n }\n return (\n <Host class={this.h.classes(IconClass.root)}>\n <span class={IconClass.holder} innerHTML={this.iconData}></span>\n </Host>\n )\n }\n}\n"],"mappings":"uKAEA,IAAKA,GAAL,SAAKA,GACJA,EAAA,iBACAA,EAAA,qBACAA,EAAA,oBACA,EAJD,CAAKA,MAAK,KAOH,MAAMC,EAAY,CACxBC,KAAM,WACNC,OAAQ,oB,qBCTF,MAAMC,EAAY,IACjBC,ECCR,MAAMC,EAAuC,GAC7C,MAAMC,EAAmD,GAEzD,MAAMC,EAAiBC,GAAiBA,EAAKC,WAAW,YAAcD,EAAKC,WAAW,YACtF,MAAMC,EAAU,CAACF,EAAcG,EAAcC,KAC5C,GAAIL,EAAcC,GAAO,CACxB,MAAO,GAAGA,KAAQI,KAAQD,WAAcR,K,CAEzC,OAAOU,EAAa,GAAGL,KAAQI,KAAQD,SAAc,MAAMR,KAAa,EAGlEW,eAAeC,GAAUJ,KAAEA,EAAIC,KAAEA,IACvC,MAAMI,EAAWJ,EAAO,IAAMD,EAC9B,GAAIN,EAAUW,GAAW,CACxB,OAAOX,EAAUW,E,CAElB,IAAKV,EAAaU,GAAW,CAC5BV,EAAaU,GAAYC,MAAMP,EAAQQ,IAAaP,EAAMC,IAAOO,MAAKC,IACrE,GAAIA,EAAKC,SAAW,IAAK,CACxB,OAAOD,EAAKE,M,KACN,CACN,MAAM,IAAIC,MAAM,0B,KAInB,MAAMf,QAAaF,EAAaU,GAChCX,EAAUW,GAAYR,EACtB,OAAOA,CACR,CChCA,MAAMgB,EAAa,wkB,MCYNC,EAAO,MAGlB,WAAAC,CAAAC,G,oBAQuB,K,UAIA,Q,qCAEI,M,WACF,MAdvBC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAkBhB,sBAAMC,GACZ,MAAMrB,KAACA,EAAIsB,QAAEA,EAAOrB,KAAEA,GAAQgB,KAC9B,IAAyBjB,IAASsB,EAAS,CACzC,M,CAEF,IACEL,KAAKM,eAAiBnB,EAAU,CAACJ,OAAMC,Q,CACvC,MAAOuB,GACPP,KAAKQ,MAAQ,I,EAIjB,iBAAAC,GACE,GAAIC,IAAiB,CACnBV,KAAKK,QAAU,KACfL,KAAKI,mBAAmBO,S,KACnB,CACLX,KAAKY,kBAAiB1B,UACpBc,KAAKK,QAAU,WACTL,KAAKI,kBAAkB,G,EAKnC,oBAAAS,GACE,GAAIb,KAAKc,qBAAsB,CAC7Bd,KAAKc,qBAAqBC,aAC1Bf,KAAKc,qBAAuB,I,EAIhC,uBAAME,SACEhB,KAAKI,kB,CAGL,gBAAAQ,CAAiBK,GACvB,UAA+BC,SAAW,cAAiBA,OAAeC,qBAAsB,CAC9FF,IACA,M,CAEFjB,KAAKc,qBAAuB,IAAIK,sBAC9BC,IACEA,EAAQC,SAAQC,IACd,GAAIA,EAAMC,eAAgB,CACxB,GAAIvB,KAAKc,qBAAsB,CAC7Bd,KAAKc,qBAAqBC,aAC1Bf,KAAKc,qBAAuB,I,CAE9BG,G,IAEF,GAEJ,CAACO,WAAY,SAEfxB,KAAKc,qBAAqBW,QAAQzB,KAAKG,K,CAGzC,MAAAuB,GACE,GAAI1B,KAAKQ,MAAO,CACd,OAAO,I,CAET,OACEP,EAAC0B,EAAI,CAACC,MAAO5B,KAAKC,EAAE4B,QAAQzD,EAAUC,OACpC4B,EAAA,QAAM2B,MAAOxD,EAAUE,OAAQwD,UAAW9B,KAAKM,W"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["toBool","value","indexOf","govButtonCss","Tags","GovButton","constructor","hostRef","this","hydrated","h","govHost","host","validateVariant","newValue","validateProp","ButtonVariants","ButtonClass","root","validateType","Type","validateSize","Sizes","validateNativeType","NativeType","componentWillLoad","variant","type","size","nativeType","componentDidRender","canValidateWcagOnRender","delay","validateAccessibility","classNames","prepareClasses","hasSlot","rootWithIcon","connectedCallback","render","Tag","href","A","BUTTON","undefined","iconLeft","prepareIconFormat","iconRight","Host","hoverable","class","classes","inverse","ref","el","triggerRef","onClick","onClickHandler","bind","onFocus","onFocusHandler","onBlur","onBlurHandler","disabled","id","identifier","target","download","hreflang","rel","name","tabindex","focusable","wcagActiveDescendant","wcagDescription","wcagControls","wcagDetails","toBoolAttrIfDefined","wcagExpanded","wcagLabel","wcagLabelledBy","wcagOwns","wcagHasPopup","wcagPressed","wcagCurrent","loading","e","stopPropagation","govClick","emit","component","originalEvent","govFocus","govBlur","setFocus","focus","getTriggerRef","validateWcagRef","validateAccessibleLabel"],"sources":["../../../packages/core/src/utils/bool.utils.ts","../../../packages/core/src/components/gov-button/button/gov-button.scss?tag=gov-button","../../../packages/core/src/components/gov-button/button/gov-button.tsx"],"sourcesContent":["export function toBool(value: any): boolean {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0\n\t} else if (typeof value === 'boolean') {\n\t\treturn value\n\t} else {\n\t\treturn value ? true : false\n\t}\n}\n","/*\n * Button\n */\n\n// Shared definitions - BUTTON & chip\n@import \"gov-button-core\";\n\n.gov-button {\n\t@extend %button-core;\n\tdisplay: inline-block;\n\t.element {\n\t\tborder-radius: #{$border-radius};\n\t}\n\n\t&[type=\"link\"] {\n\t\t.element {\n\t\t\tjustify-content: flex-start;\n\t\t\talign-items: flex-start;\n\t\t\ttext-align: left;\n\t\t\tmin-height: inherit;\n\t\t\tpadding: 0 !important;\n\t\t\tline-height: inherit;\n\t\t\ttext-decoration: underline;\n\t\t\t@include hover() {\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t// STATES\n\t&[loading=\"true\"],\n\t&[loading=\"1\"] {\n\t\t.element {\n\t\t\t> .gov-icon:not(.gov-spin-animation),\n\t\t\t> gov-icon:not(.gov-spin-animation) {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.gov-icon {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $button-sizes {\n\t\t// Loading state\n\t\t&[loading=\"0\"][size=\"#{$size}\"],\n\t\t&[loading=\"false\"][size=\"#{$size}\"],\n\t\t&[loading=\"\"][size=\"#{$size}\"] {\n\t\t\t.element {\n\t\t\t\tpadding: get(\"padding-y\", $definitions) calc(((get(\"padding-x\", $definitions) * 3) + get(\"icon-size\", $definitions)) / 2);\n\t\t\t}\n\t\t}\n\t\t&[size=\"#{$size}\"] {\n\t\t\t.element {\n\t\t\t\tfont-weight: map-get($definitions, \"font-weight\");\n\t\t\t}\n\t\t}\n\t}\n\t&[size=\"s\"][type=\"link\"] .gov-icon {\n\t\tmargin-top: 4px;\n\t}\n\t&[size=\"m\"][type=\"link\"] .gov-icon {\n\t\tmargin-top: 2px;\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {\n\tButtonClass,\n\tButtonSizesType,\n\tButtonTargetType,\n\tButtonVariants,\n\tButtonVariantType,\n\tNativeType,\n\tNativeTypesType,\n\tType,\n\tTypesType,\n} from \"./constants\"\nimport {govHost, prepareClasses, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {toBool} from \"../../../utils/bool.utils\"\nimport {Sizes} from \"../../../core/constants/sizes\"\nimport {validateAccessibleLabel, validateWcagRef} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {delay} from \"../../../utils/utils\"\nimport {ButtonEvent} from \"./gov-button.types\"\nimport {prepareIconFormat} from \"../../gov-icon/helpers\";\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 triggerRef?: HTMLButtonElement | HTMLLinkElement\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop({reflect: true}) readonly 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\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\t/**\n\t * Determine if component should have inversed colors to be used on dark background\n\t */\n\t@Prop({reflect: true}) 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 * 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 * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * 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: boolean\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<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"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\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.validateAccessibility()\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\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\tconst iconLeft = prepareIconFormat(this.iconLeft)\n\t\tconst iconRight = prepareIconFormat(this.iconRight)\n\n\t\treturn (\n\t\t\t<Host hoverable={true}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\thydrated={this.hydrated}\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tclass={this.h.classes(this.classNames)}\n\t\t\t\t\t\ttype={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.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.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={toBoolAttrIfDefined(this.wcagPressed)}\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\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t{iconLeft && <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{iconRight && <gov-icon type={iconRight.type} name={iconRight.name}></gov-icon>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): 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"],"mappings":"2dAAgBA,EAAOC,GACtB,UAAWA,IAAU,SAAU,CAC9B,MAAO,CAAC,OAAQ,OAAQ,OAAQ,KAAKC,QAAQD,MAAY,C,MACnD,UAAWA,IAAU,SAAU,CACrC,OAAOA,EAAQ,C,MACT,UAAWA,IAAU,UAAW,CACtC,OAAOA,C,KACD,CACN,OAAOA,EAAQ,KAAO,K,CAExB,CCVA,MAAME,EAAe,61wECuBrB,IAAKC,GAAL,SAAKA,GACJA,EAAA,SACAA,EAAA,kBACA,EAHD,CAAKA,MAAI,K,MASIC,EAAS,MAKrB,WAAAC,CAAAC,G,oHAFQC,KAAAC,SAAW,M,iCAesC,I,kCAQL,M,aAID,M,mFAiBC,M,gBAKJ,S,iLAuCV,K,gXArFrCD,KAAKE,EAAIC,EAAQH,KAAKI,K,CA0JvB,eAAAC,CAAgBC,GACfC,EAAaC,EAAgBF,EAAUG,EAAYC,K,CAIpD,YAAAC,CAAaL,GACZC,EAAaK,EAAMN,EAAUG,EAAYC,K,CAI1C,YAAAG,CAAaP,GACZC,EAAaO,EAAOR,EAAUG,EAAYC,K,CAI3C,kBAAAK,CAAmBT,GAClBC,EAAaS,EAAYV,EAAUG,EAAYC,K,CAGhD,iBAAAO,GACCjB,KAAKK,gBAAgBL,KAAKkB,SAC1BlB,KAAKW,aAAaX,KAAKmB,MACvBnB,KAAKa,aAAab,KAAKoB,MACvBpB,KAAKe,mBAAmBf,KAAKqB,W,CAG9B,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNxB,KAAKyB,c,EAIb,cAAIC,GACH,MAAMxB,EAACA,GAAKF,KAEZ,OAAO2B,EAAe,CAAClB,EAAYC,KAAMR,EAAE0B,QAAQ,cAAgBnB,EAAYoB,aAAc3B,EAAE0B,QAAQ,eAAiBnB,EAAYoB,c,CAGrI,iBAAAC,GACC9B,KAAKC,SAAW,I,CAGjB,MAAA8B,GACC,MAAMC,EAAMhC,KAAKiC,KAAOrC,EAAKsC,EAAItC,EAAKuC,OACtC,MAAMd,EAAaW,IAAQpC,EAAKsC,EAAIE,UAAYpC,KAAKqB,WAErD,MAAMgB,EAAWC,EAAkBtC,KAAKqC,UACxC,MAAME,EAAYD,EAAkBtC,KAAKuC,WAEzC,OACCrC,EAACsC,EAAI,CAACC,UAAW,KACdrB,KAAMpB,KAAKoB,KACXnB,SAAUD,KAAKC,SACfiB,QAASlB,KAAKkB,QACdwB,MAAO1C,KAAKE,EAAEyC,QAAQ3C,KAAK0B,YAC3BP,KAAMnB,KAAKmB,KAAMyB,QAAS5C,KAAK4C,SACjC1C,EAAC8B,EAAG,CACHU,MAAM,UACNG,IAAKC,GAAO9C,KAAK+C,WAAaD,EAC9BE,QAAShD,KAAKiD,eAAeC,KAAKlD,MAClCmD,QAASnD,KAAKoD,eAAeF,KAAKlD,MAClCqD,OAAQrD,KAAKsD,cAAcJ,KAAKlD,MAChCuD,SAAUvD,KAAKuD,SACfC,GAAIxD,KAAKyD,WACTxB,KAAMjC,KAAKiC,KACXyB,OAAQ1D,KAAK0D,OACbC,SAAU3D,KAAK2D,SACfC,SAAU5D,KAAK4D,SACfC,IAAK7D,KAAK6D,IACVC,KAAM9D,KAAK8D,KACX3C,KAAME,EACN0C,SAAU/D,KAAKgE,UAAY,IAAM,KAAI,wBACdhE,KAAKiE,qBAAoB,mBAC9BjE,KAAKiE,qBAAoB,mBACzBjE,KAAKkE,gBAAe,gBACvBlE,KAAKmE,aAAY,eAClBnE,KAAKoE,YAAW,gBACfC,EAAoBrE,KAAKsE,cAAa,aACzCtE,KAAKuE,UAAS,kBACTvE,KAAKwE,eAAc,YACzBxE,KAAKyE,SAAQ,gBACTJ,EAAoBrE,KAAK0E,cAAa,eACvCL,EAAoBrE,KAAK2E,aAAY,gBACpCN,EAAoBrE,KAAKuD,UAAS,eACnCvD,KAAK4E,aAElBpF,EAAOQ,KAAK6E,WAAa7E,KAAKE,EAAE0B,QAAQ,eACxC1B,EAAA,YAAU4D,KAAK,SAASpB,MAAM,uBAC9B1C,KAAKE,EAAE0B,QAAQ,cAAgB1B,EAAA,QAAM4D,KAAK,cAC1CzB,GAAYnC,EAAA,YAAUiB,KAAMkB,EAASlB,KAAM2C,KAAMzB,EAASyB,OAC3D5D,EAAA,aACCF,KAAKE,EAAE0B,QAAQ,eAAiB1B,EAAA,QAAM4D,KAAK,eAC3CvB,GAAarC,EAAA,YAAUiB,KAAMoB,EAAUpB,KAAM2C,KAAMvB,EAAUuB,OAC7DtE,EAAOQ,KAAK6E,UAAY7E,KAAKE,EAAE0B,QAAQ,eACvC1B,EAAA,YAAU4D,KAAK,SAASpB,MAAM,wB,CAM3B,cAAAO,CAAe6B,GACtBA,EAAEC,kBACF,GAAI/E,KAAKuD,WAAa,MAAO,CAC5BvD,KAAKgF,SAASC,KAAK,CAClBC,UAAWzE,EAAYC,KACvByE,cAAeL,EACfjC,IAAK7C,KAAKI,M,EAKL,cAAAgD,CAAe0B,GACtBA,EAAEC,kBACF/E,KAAKoF,SAASH,KAAK,CAClBC,UAAWzE,EAAYC,KACvByE,cAAeL,EACfjC,IAAK7C,KAAKI,M,CAIJ,aAAAkD,CAAcwB,GACrBA,EAAEC,kBACF/E,KAAKqF,QAAQJ,KAAK,CACjBC,UAAWzE,EAAYC,KACvByE,cAAeL,EACfjC,IAAK7C,KAAKI,M,CAQZ,cAAMkF,GACLtF,KAAK+C,WAAWwC,O,CAOjB,mBAAMC,GACL,OAAOxF,KAAK+C,U,CAOb,kBAAMtB,GACL,GAAIzB,KAAKgE,UAAW,CACnByB,EAAgBzF,KAAKiE,qBAAsB,wBAAyBxD,EAAYC,MAChF+E,EAAgBzF,KAAKmE,aAAc,gBAAiB1D,EAAYC,MAChE+E,EAAgBzF,KAAKoE,YAAa,eAAgB3D,EAAYC,MAC9D+E,EAAgBzF,KAAKyE,SAAU,YAAahE,EAAYC,MACxD+E,EAAgBzF,KAAK0E,aAAc,gBAAiBjE,EAAYC,MAChEgF,EAAkB1F,KAAKuE,UAAWvE,KAAKwE,eAAgB/D,EAAYC,K"}
@@ -1,2 +0,0 @@
1
- import{r as i,h as t,a as e,g as n}from"./p-5bc604a3.js";import{G as s}from"./p-ffb7495c.js";import{g as o}from"./p-5de606f8.js";const a=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-grid{position:relative;display:flex;width:100%;flex-wrap:wrap}.gov-grid[align-x=middle]{align-items:center}.gov-grid[align-x=bottom]{align-items:flex-end}.gov-grid[align-y=center]{justify-content:center}.gov-grid[align-y=right]{justify-content:flex-end}.gov-grid[align-y=space-between]{justify-content:space-between}.gov-grid[align-y=space-around]{justify-content:space-around}";const r=class{constructor(t){i(this,t);this.alignX=undefined;this.alignY=undefined;this.h=o(this.host)}render(){return t(e,{class:this.h.classes(s.root),"align-x":this.alignX,"align-y":this.alignY,role:"list"},t("slot",null))}get host(){return n(this)}};r.style=a;export{r as gov_grid};
2
- //# sourceMappingURL=p-ce1486b8.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["govGridCss","GovGrid","constructor","hostRef","this","h","govHost","host","render","Host","class","classes","GridClass","root","alignX","alignY","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid.scss?tag=gov-grid","../../../packages/core/src/components/gov-grid/gov-grid.tsx"],"sourcesContent":["/*\n * Grid\n */\n\n$class: \".gov-grid\";\n\n#{$class} {\n\t@include base(flex);\n\tflex-wrap: wrap;\n\n\t// VARIANTS\n\t&[align-x=\"middle\"] {\n\t\talign-items: center;\n\t}\n\t&[align-x=\"bottom\"] {\n\t\talign-items: flex-end;\n\t}\n\t&[align-y=\"center\"] {\n\t\tjustify-content: center;\n\t}\n\t&[align-y=\"right\"] {\n\t\tjustify-content: flex-end;\n\t}\n\t&[align-y=\"space-between\"] {\n\t\tjustify-content: space-between;\n\t}\n\t&[align-y=\"space-around\"] {\n\t\tjustify-content: space-around;\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n\tstyleUrl: 'gov-grid.scss',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-x' }) readonly alignX: string\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'align-y' }) readonly alignY: string\n\n\t// vertical / horizontal align\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} align-x={this.alignX} align-y={this.alignY} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iIAAA,MAAMA,EAAa,utB,MCSNC,EAAO,MAGnB,WAAAC,CAAAC,G,sDACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAgBvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQC,EAAUC,MAAK,UAAWT,KAAKU,OAAM,UAAWV,KAAKW,OAAQC,KAAK,QAC7FX,EAAA,a"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["govFormControlCss","GovFormControl","constructor","hostRef","this","h","govHost","host","f","govForm","controlId","createID","componentDidRender","passChildAttrs","invalidChildAttrs","syncControlMessages","formElementDescriptionControl","disconnectedCallback","_a","observer","disconnect","formElements","passChildAttr","success","hasGroupChildren","identifier","invalid","bottomSlot","querySelector","FormControlClass","bottom","MutationObserver","bind","observe","childList","Promise","all","messageElements","map","message","then","ids","mainElementsInControl","forEach","element","currentValue","splitByWhitespace","getAttribute","removeAttribute","Array","isArray","id","indexOf","push","length","setAttribute","join","render","Tag","fieldset","Host","size","class","classes","root","holder","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-form/control/gov-form-control.scss?tag=gov-form-control","../../../packages/core/src/components/gov-form/control/gov-form-control.tsx"],"sourcesContent":["/*\n * Form Control\n */\n\n$class: \".gov-form-control\";\n\n#{$class} {\n\t&__holder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tpadding: 0;\n\t\tborder: none;\n\t}\n\t&__bottom {\n\t\t@include reset-last-margin();\n\t\t> :first-child {\n\t\t\tmargin-top: rem-calc(4);\n\t\t}\n\t}\n\n\t// VARIANTS\n\t.gov-form-label .gov-form-label__label {\n\t\tmargin: rem-calc(0 0 4);\n\t}\n\t&[type=\"file\"] {\n\t\t.gov-form-label[slot=\"top\"] .gov-form-label__label {\n\t\t\tmargin: rem-calc(0 0 8);\n\t\t}\n\t\t#{$class}__bottom > :first-child {\n\t\t\tmargin-top: rem-calc(8);\n\t\t}\n\t}\n\t// Checkbox, radio\n\t@each $size, $definitions in $form-checkbox-core-sizes {\n\t\t&[size=\"#{$size}\"][type=\"checkbox\"],\n\t\t&[size=\"#{$size}\"][type=\"radio\"] {\n\t\t\t#{$class} {\n\t\t\t\t$indicator-width: get(\"indicator-size\", $definitions);\n\t\t\t\t&__holder > #{$class}__bottom > :first-child {\n\t\t\t\t\tmargin-top: get(\"message-gap\", $definitions);\n\t\t\t\t\tmargin-left: calc($indicator-width + get(\"gap\", $definitions));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Switch\n\t@each $size, $definitions in $form-switch-sizes {\n\t\t&[size=\"#{$size}\"][type=\"switch\"] {\n\t\t\t#{$class} {\n\t\t\t\t$indicator-ratio: calc(5 / 3);\n\t\t\t\t$indicator-width: calc(get(\"indicator-height\", $definitions) * $indicator-ratio);\n\t\t\t\t&__bottom > :first-child {\n\t\t\t\t\tmargin-top: get(\"message-gap\", $definitions);\n\t\t\t\t\tmargin-left: calc($indicator-width + get(\"gap\", $definitions));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// STATES\n\t@include parameter(\"invalid\") {\n\t\t.gov-form-label[slot=\"top\"] .gov-form-label__label {\n\t\t\tcolor: $form-state-color-error;\n\t\t}\n\t}\n\t@include parameter(\"disabled\") {\n\t\t.gov-form-label__label {\n\t\t\tpointer-events: none;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop } from \"@stencil/core\"\nimport { govForm } from \"../../../helpers/Dom/form\"\nimport { GovForm } from \"../../../helpers/Dom/form.types\"\nimport { govHost } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { createID, splitByWhitespace } from \"../../../utils/string.utils\"\nimport { FormControlClass, FormControlSizesType } from \"./constants\"\n\n@Component({\n\ttag: \"gov-form-control\",\n\tstyleUrl: \"gov-form-control.scss\",\n})\nexport class GovFormControl {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate readonly controlId: string\n\tprivate observer: MutationObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.controlId = createID(\"GovFormControl\")\n\t}\n\n\t@Element() host: HTMLGovFormControlElement\n\t/**\n\t * Defines the space between nested components.\n\t */\n\t@Prop() readonly gap?: FormControlSizesType\n\t/**\n\t * Form element identifier\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Indicates the entered value of child form element does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean = false\n\t/**\n\t/**\n\t * Indicates the form element is disabled\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean = false\n\t/**\n\t * Use control as a fieldset for better accessibility.\n\t * Note: Don't forget to set the legend attribute of the gov-form-label component\n\t */\n\t@Prop() readonly fieldset: boolean = false\n\t/**\n\t * Form element size.\n\t */\n\t@Prop() readonly size?: FormControlSizesType = \"m\"\n\n\tcomponentDidRender() {\n\t\tthis.passChildAttrs()\n\t\tthis.invalidChildAttrs()\n\t\tthis.syncControlMessages()\n\t\tthis.formElementDescriptionControl()\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tthis.observer?.disconnect()\n\t}\n\n\tprivate passChildAttrs() {\n\t\tconst formElements = [\n\t\t\t\"gov-form-select\",\n\t\t\t\"gov-form-input\",\n\t\t\t\"gov-form-switch\",\n\t\t\t\"gov-form-checkbox\",\n\t\t\t\"gov-form-radio\",\n\t\t\t\"gov-form-multi-select\",\n\t\t\t\"gov-form-file\",\n\t\t\t\"gov-form-search\",\n\t\t]\n\t\tthis.h.passChildAttr(formElements, \"success\", this.success)\n\n\t\tif (this.f.hasGroupChildren === false) {\n\t\t\tthis.h.passChildAttr([...formElements, \"gov-form-label\"], \"identifier\", this.identifier || this.controlId)\n\t\t}\n\t}\n\n\tprivate invalidChildAttrs() {\n\t\tconst formElements = [\n\t\t\t\"gov-form-select\",\n\t\t\t\"gov-form-input\",\n\t\t\t\"gov-form-switch\",\n\t\t\t\"gov-form-checkbox\",\n\t\t\t\"gov-form-radio\",\n\t\t\t\"gov-form-multi-select\",\n\t\t\t\"gov-form-file\",\n\t\t\t\"gov-form-search\",\n\t\t]\n\t\tthis.h.passChildAttr(formElements, \"invalid\", this.invalid)\n\n\t\tif (this.f.hasGroupChildren === false) {\n\t\t\tthis.h.passChildAttr([...formElements, \"gov-form-label\"], \"identifier\", this.identifier || this.controlId)\n\t\t}\n\t}\n\n\tprivate formElementDescriptionControl() {\n\t\tconst bottomSlot = this.host.querySelector(\".\" + FormControlClass.bottom)\n\t\tif (!bottomSlot) return\n\t\tthis.observer = new MutationObserver(\n\t\t\tfunction() {\n\t\t\t\tthis.syncControlMessages()\n\t\t\t}.bind(this),\n\t\t)\n\n\t\tthis.observer.observe(bottomSlot, { childList: true })\n\t}\n\n\tprivate syncControlMessages() {\n\t\tPromise.all(this.f.messageElements.map((message: HTMLGovFormMessageElement) => message.identifier())).then((ids: string[]) => {\n\t\t\tthis.f.mainElementsInControl.forEach((element: Element) => {\n\t\t\t\tconst currentValue = splitByWhitespace(element.getAttribute(\"wcag-described-by\"))\n\t\t\t\telement.removeAttribute(\"wcag-described-by\")\n\t\t\t\tif (Array.isArray(currentValue)) {\n\t\t\t\t\tcurrentValue.forEach(id => (id.indexOf(\"GovFormMessage\") === -1 ? ids.push(id) : null))\n\t\t\t\t}\n\t\t\t\tif (ids.length) {\n\t\t\t\t\telement.setAttribute(\"wcag-described-by\", ids.join(\" \"))\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\trender() {\n\t\tconst Tag = this.fieldset ? \"fieldset\" : \"div\"\n\t\treturn (\n\t\t\t<Host size={this.size} class={this.h.classes(FormControlClass.root)}>\n\t\t\t\t<Tag class={FormControlClass.holder}>\n\t\t\t\t\t{this.h.hasSlot(\"top\") && <slot name=\"top\"></slot>}\n\t\t\t\t\t<slot></slot>\n\t\t\t\t\t{this.h.hasSlot(\"bottom\") && (\n\t\t\t\t\t\t<div class={FormControlClass.bottom}>\n\t\t\t\t\t\t\t<slot name=\"bottom\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"8TAAA,MAAMA,EAAoB,+zH,MCYbC,EAAc,MAM1B,WAAAC,CAAAC,G,oEAkBoC,M,cAKC,M,aAKD,M,cAKC,M,UAIU,IApC9CC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,EAAIC,EAAQL,KAAKC,GACtBD,KAAKM,UAAYC,EAAS,iB,CAoC3B,kBAAAC,GACCR,KAAKS,iBACLT,KAAKU,oBACLV,KAAKW,sBACLX,KAAKY,+B,CAGN,oBAAAC,G,OACCC,EAAAd,KAAKe,YAAQ,MAAAD,SAAA,SAAAA,EAAEE,Y,CAGR,cAAAP,GACP,MAAMQ,EAAe,CACpB,kBACA,iBACA,kBACA,oBACA,iBACA,wBACA,gBACA,mBAEDjB,KAAKC,EAAEiB,cAAcD,EAAc,UAAWjB,KAAKmB,SAEnD,GAAInB,KAAKI,EAAEgB,mBAAqB,MAAO,CACtCpB,KAAKC,EAAEiB,cAAc,IAAID,EAAc,kBAAmB,aAAcjB,KAAKqB,YAAcrB,KAAKM,U,EAI1F,iBAAAI,GACP,MAAMO,EAAe,CACpB,kBACA,iBACA,kBACA,oBACA,iBACA,wBACA,gBACA,mBAEDjB,KAAKC,EAAEiB,cAAcD,EAAc,UAAWjB,KAAKsB,SAEnD,GAAItB,KAAKI,EAAEgB,mBAAqB,MAAO,CACtCpB,KAAKC,EAAEiB,cAAc,IAAID,EAAc,kBAAmB,aAAcjB,KAAKqB,YAAcrB,KAAKM,U,EAI1F,6BAAAM,GACP,MAAMW,EAAavB,KAAKG,KAAKqB,cAAc,IAAMC,EAAiBC,QAClE,IAAKH,EAAY,OACjBvB,KAAKe,SAAW,IAAIY,iBACnB,WACC3B,KAAKW,qB,EACJiB,KAAK5B,OAGRA,KAAKe,SAASc,QAAQN,EAAY,CAAEO,UAAW,M,CAGxC,mBAAAnB,GACPoB,QAAQC,IAAIhC,KAAKI,EAAE6B,gBAAgBC,KAAKC,GAAuCA,EAAQd,gBAAee,MAAMC,IAC3GrC,KAAKI,EAAEkC,sBAAsBC,SAASC,IACrC,MAAMC,EAAeC,EAAkBF,EAAQG,aAAa,sBAC5DH,EAAQI,gBAAgB,qBACxB,GAAIC,MAAMC,QAAQL,GAAe,CAChCA,EAAaF,SAAQQ,GAAOA,EAAGC,QAAQ,qBAAuB,EAAIX,EAAIY,KAAKF,GAAM,M,CAElF,GAAIV,EAAIa,OAAQ,CACfV,EAAQW,aAAa,oBAAqBd,EAAIe,KAAK,K,IAEnD,G,CAIJ,MAAAC,GACC,MAAMC,EAAMtD,KAAKuD,SAAW,WAAa,MACzC,OACCtD,EAACuD,EAAI,CAACC,KAAMzD,KAAKyD,KAAMC,MAAO1D,KAAKC,EAAE0D,QAAQlC,EAAiBmC,OAC7D3D,EAACqD,EAAG,CAACI,MAAOjC,EAAiBoC,QAC3B7D,KAAKC,EAAE6D,QAAQ,QAAU7D,EAAA,QAAM8D,KAAK,QACrC9D,EAAA,aACCD,KAAKC,EAAE6D,QAAQ,WACf7D,EAAA,OAAKyD,MAAOjC,EAAiBC,QAC5BzB,EAAA,QAAM8D,KAAK,a"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["govStepperItemCss","GovStepperItem","constructor","hostRef","this","h","govHost","host","triggerId","createID","contentId","validateLabel","newValue","govErrorLog","StepperItemClass","root","validateTriggerTag","validTags","includes","validateVariant","validateProp","StepperVariants","componentWillLoad","label","variant","triggerTag","render","identifier","TriggerTag","Host","class","prepareClasses","annotation","rootWithAnnot","id","header","role","title","hasSlot","prefix","name","annot","content","currentState","isExpandedState"],"sources":["../../../packages/core/src/components/gov-stepper/gov-stepper-item.scss?tag=gov-stepper-item","../../../packages/core/src/components/gov-stepper/gov-stepper-item.tsx"],"sourcesContent":["/*\n * Stepper - Item\n */\n\n@import \"../gov-wizard/gov-wizard-item-core.scss\";\n$class: \".gov-stepper-item\";\n\n#{$class} {\n\t@include wizard-item-core;\n\t&::before {\n\t\t@include pseudo();\n\t\twidth: rem-calc(2);\n\t}\n\t&:last-child::before {\n\t\tcontent: none;\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $wizard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t&::before {\n\t\t\t\tbackground: get(\"indicator-bg\", $definitions);\n\t\t\t}\n\t\t}\n\t}\n\t@each $size, $definitions in $stepper-sizes {\n\t\t$connect-gap: get(\"connect-gap\", $definitions);\n\t\t&[size=\"#{$size}\"] {\n\t\t\tmin-height: calc(get(\"indicator-size\", $definitions) + 3 * $connect-gap);\n\t\t\t&::before {\n\t\t\t\ttop: calc(get(\"indicator-size\", $definitions) + $connect-gap);\n\t\t\t\tbottom: $connect-gap;\n\t\t\t\tleft: calc((get(\"indicator-size\", $definitions) - rem-calc(2)) / 2);\n\t\t\t}\n\t\t\t&:last-child {\n\t\t\t\tmin-height: 0;\n\t\t\t}\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(get(\"font-size\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__annot {\n\t\t\t\t\t@include typography(get(\"font-size-annot\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(get(\"font-size-indicator\", $definitions));\n\t\t\t\t\twidth: get(\"indicator-size\", $definitions);\n\t\t\t\t\theight: get(\"indicator-size\", $definitions);\n\t\t\t\t\tbox-shadow: 0 0 0 $connect-gap color(\"neutral.white\");\n\t\t\t\t}\n\t\t\t\t&__content {\n\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t&--w-annot[size=\"#{$size}\"] {\n\t\t\tmin-height: calc(get(\"indicator-size\", $definitions) * 1.5 + 3 * $connect-gap);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Watch, Host, Method, Event, EventEmitter } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { StepperSizesType, StepperItemClass, StepperVariantType, StepperVariants } from './constants'\nimport { createID } from '../../utils/string.utils'\nimport { govHost, prepareClasses } from '../../helpers/Dom/template'\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-stepper-item',\n\tstyleUrl: 'gov-stepper-item.scss',\n})\nexport class GovStepperItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID('GovStepperItem')\n\t\tthis.contentId = createID('GovStepperContent')\n\t}\n\n\t@Element() readonly host: HTMLGovStepperItemElement\n\t@State() isExpandedState: boolean\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: StepperVariantType = 'primary'\n\t/**\n\t * Size of stepper\n\t */\n\t@Prop() readonly size?: StepperSizesType = 'm'\n\t/**\n\t * Custom stepper item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Item name of the stepper\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Item annotation of the stepper\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Used to change the HMTL tag in the stepper trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: 'trigger-tag' }) readonly triggerTag: string = 'h3'\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\n\n\t@Watch('label')\n\tvalidateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${StepperItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch('triggerTag')\n\tvalidateTriggerTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${StepperItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(StepperVariants, newValue, StepperItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.triggerTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst contentId = this.contentId\n\t\tconst { label } = this\n\t\tconst TriggerTag = this.triggerTag\n\n\t\treturn (\n\t\t\t<Host class={prepareClasses([StepperItemClass.root, this.annotation && StepperItemClass.rootWithAnnot])} variant={this.variant}>\n\t\t\t\t<div id={triggerId} class={StepperItemClass.header} role=\"listitem\">\n\t\t\t\t\t<TriggerTag class={StepperItemClass.title}>\n\t\t\t\t\t\t{this.h.hasSlot('prefix') && (\n\t\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\n\t\t\t\t\t\t\t\t<slot name=\"prefix\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<span class={StepperItemClass.name}>\n\t\t\t\t\t\t\t<span class={StepperItemClass.label}>{label}</span>\n\t\t\t\t\t\t\t{this.annotation && <span class={StepperItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</TriggerTag>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('content') && (\n\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId} role=\"tabpanel\">\n\t\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync currentState(): Promise<boolean> {\n\t\treturn this.isExpandedState\n\t}\n}\n"],"mappings":"6VAAA,MAAMA,EAAoB,+wQ,MCabC,EAAc,MAK1B,WAAAC,CAAAC,G,4FAYgD,U,UAIL,I,yFAgBuB,KA/BjEC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,UAAYC,EAAS,kBAC1BL,KAAKM,UAAYD,EAAS,oB,CAoC3B,aAAAE,CAAcC,GACb,IAAKA,EAAU,CACdC,EAAY,IAAIC,EAAiBC,sC,EAKnC,kBAAAC,CAAmBJ,GAClB,MAAMK,EAAY,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,QACvD,GAAIL,EAAU,CACb,IAAKK,EAAUC,SAASN,GAAW,CAClCC,EAAY,IAAIC,EAAiBC,cAAcH,oB,GAMlD,eAAAO,CAAgBP,GACfQ,EAAaC,EAAiBT,EAAUE,EAAiBC,K,CAG1D,iBAAAO,GACClB,KAAKO,cAAcP,KAAKmB,OACxBnB,KAAKe,gBAAgBf,KAAKoB,SAC1BpB,KAAKY,mBAAmBZ,KAAKqB,W,CAG9B,MAAAC,GACC,MAAMlB,EAAYJ,KAAKuB,YAAcvB,KAAKI,UAC1C,MAAME,EAAYN,KAAKM,UACvB,MAAMa,MAAEA,GAAUnB,KAClB,MAAMwB,EAAaxB,KAAKqB,WAExB,OACCpB,EAACwB,EAAI,CAACC,MAAOC,EAAe,CAACjB,EAAiBC,KAAMX,KAAK4B,YAAclB,EAAiBmB,gBAAiBT,QAASpB,KAAKoB,SACtHnB,EAAA,OAAK6B,GAAI1B,EAAWsB,MAAOhB,EAAiBqB,OAAQC,KAAK,YACxD/B,EAACuB,EAAU,CAACE,MAAOhB,EAAiBuB,OAClCjC,KAAKC,EAAEiC,QAAQ,WACfjC,EAAA,QAAMyB,MAAOhB,EAAiByB,QAC7BlC,EAAA,QAAMmC,KAAK,YAGbnC,EAAA,QAAMyB,MAAOhB,EAAiB0B,MAC7BnC,EAAA,QAAMyB,MAAOhB,EAAiBS,OAAQA,GACrCnB,KAAK4B,YAAc3B,EAAA,QAAMyB,MAAOhB,EAAiB2B,OAAQrC,KAAK4B,eAKjE5B,KAAKC,EAAEiC,QAAQ,YACfjC,EAAA,OAAKyB,MAAOhB,EAAiB4B,QAASR,GAAIxB,EAAS,kBAAmBF,EAAW4B,KAAK,YACrF/B,EAAA,QAAMmC,KAAK,a,CAWhB,kBAAMG,GACL,OAAOvC,KAAKwC,e"}
@@ -1,2 +0,0 @@
1
- import{r as o,h as r,a,g as e}from"./p-5bc604a3.js";import{V as s}from"./p-ff7365ae.js";import{p as t}from"./p-03990da5.js";t(s,["PRIMARY","SECONDARY"]);const i={root:"gov-form-search",input:"gov-form-search__input",button:"gov-form-search__button"};const n=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-search{position:relative;display:flex;width:100%;gap:0.5rem;align-items:center;border-radius:var(--gov-border-radius, 0.1875rem);background-color:var(--gov-form-bg-color, var(--gov-color-neutral-white));padding:0.1875rem 0.1875rem 0.1875rem 0}.gov-form-search:focus{outline:none}.gov-form-search:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-form-search:focus-within{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-form-search__input{flex:1 1 auto}.gov-form-search__input input{height:auto;border-width:0 !important}.gov-form-search__input input:focus-visible{outline:none !important}.gov-form-search__button{flex:0 0 auto}.gov-form-search[variant=primary]{border:var(--gov-form-input-border-primary, 0.0625rem solid var(--gov-color-primary-600))}.gov-form-search[variant=secondary]{border:var(--gov-form-input-border-secondary, 0.0625rem solid var(--gov-color-secondary-700))}";const c=class{constructor(r){o(this,r);this.variant="secondary"}render(){return r(a,{class:i.root},r("span",{class:i.input},r("slot",{name:"input"})),r("span",{class:i.button},r("slot",{name:"button"})))}get host(){return e(this)}};c.style=n;export{c as gov_form_search};
2
- //# sourceMappingURL=p-d513468a.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["pick","Variants","FormSearchClass","root","input","button","govFormSearchCss","GovFormSearch","render","h","Host","class","name"],"sources":["../../../packages/core/src/components/gov-form/search/constants.ts","../../../packages/core/src/components/gov-form/search/gov-form-search.scss?tag=gov-form-search","../../../packages/core/src/components/gov-form/search/gov-form-search.tsx"],"sourcesContent":["import { Variants } from '../../../core/constants/variants'\nimport { ValueOf } from '../../../types/interfaces'\nimport { pick } from '../../../utils/utils'\n\nexport const FormSearchs = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type FormSearchVariantType = `${ValueOf<typeof FormSearchs>}`\n\nexport const FormSearchClass = {\n\troot: 'gov-form-search',\n\tinput: 'gov-form-search__input',\n\tbutton: 'gov-form-search__button',\n}\n","/*\n * Search\n */\n\n$class: \".gov-form-search\";\n\n#{$class} {\n\t@include base(flex);\n\t@include focus-outline($border-radius, 0, true);\n\tgap: rem-calc(8);\n\talign-items: center;\n\tborder-radius: $border-radius;\n\tbackground-color: $form-bg-color;\n\tpadding: rem-calc(3) rem-calc(3) rem-calc(3) 0;\n\t&__input {\n\t\tflex: 1 1 auto;\n\t\tinput {\n\t\t\theight: auto;\n\t\t\tborder-width: 0 !important;\n\t\t\t&:focus-visible {\n\t\t\t\toutline: none !important;\n\t\t\t}\n\t\t}\n\t}\n\t&__button {\n\t\tflex: 0 0 auto;\n\t}\n\n\t@each $variant, $definitions in $form-input-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tborder: get(\"border\", $definitions);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { FormSearchClass, FormSearchVariantType } from './constants'\n@Component({\n\ttag: 'gov-form-search',\n\tstyleUrl: 'gov-form-search.scss',\n})\nexport class GovFormSearch {\n\t@Element() host: HTMLGovFormSearchElement\n\t/**\n\t * Style variation of the form input.\n\t */\n\t@Prop({reflect: true}) readonly variant: FormSearchVariantType = 'secondary'\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSearchClass.root}>\n\t\t\t\t<span class={FormSearchClass.input}>\n\t\t\t\t\t<slot name=\"input\" />\n\t\t\t\t</span>\n\t\t\t\t<span class={FormSearchClass.button}>\n\t\t\t\t\t<slot name=\"button\" />\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"4HAI2BA,EAAKC,EAAU,CAAC,UAAW,cAG/C,MAAMC,EAAkB,CAC9BC,KAAM,kBACNC,MAAO,yBACPC,OAAQ,2BCVT,MAAMC,EAAmB,06C,MCMZC,EAAa,M,sCAKwC,W,CAEjE,MAAAC,GACC,OACCC,EAACC,EAAI,CAACC,MAAOT,EAAgBC,MAC5BM,EAAA,QAAME,MAAOT,EAAgBE,OAC5BK,EAAA,QAAMG,KAAK,WAEZH,EAAA,QAAME,MAAOT,EAAgBG,QAC5BI,EAAA,QAAMG,KAAK,Y"}
@@ -1,3 +0,0 @@
1
- import{r as s,c as i,h as t,a,g as o}from"./p-5bc604a3.js";import{v as r}from"./p-dcb5fb35.js";import{W as e,a as n,b as p}from"./p-6834d779.js";import{g as c}from"./p-5de606f8.js";import{v as m}from"./p-7724b535.js";import{c as d}from"./p-003e6cca.js";import{d as f}from"./p-03990da5.js";import"./p-7f2c9830.js";import"./p-ff7365ae.js";import"./p-55500e5a.js";import"./p-24636c53.js";const h=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-wizard{position:relative;display:block;width:100%}.gov-wizard>*:last-child{margin-bottom:0}";const l=class{constructor(t){s(this,t);this.govChange=i(this,"gov-change",7);this.size="m";this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.h=c(this.host)}validateSize(s){r(p,s,n.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(e.root).forEach((s=>{s.setAttribute("size",this.size)}))}async componentDidRender(){if(d()){await f(500);await this.validateAccessibility()}}render(){return t(a,{class:this.h.classes(n.root),role:"list",size:this.size},t("slot",null))}async validateAccessibility(){m(this.wcagLabel,this.wcagLabelledBy,n.root)}get host(){return o(this)}static get watchers(){return{size:["validateSize"]}}};l.style=h;export{l as gov_wizard};
2
-
3
- //# sourceMappingURL=p-d6eed6df.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["govWizardCss","GovWizard","constructor","hostRef","this","h","govHost","host","validateSize","newValue","validateProp","WizardSizes","WizardClass","root","componentWillLoad","size","componentDidLoad","querySelectorAll","WizardItemClass","forEach","child","setAttribute","componentDidRender","canValidateWcagOnRender","delay","validateAccessibility","render","Host","class","classes","role","validateAccessibleLabel","wcagLabel","wcagLabelledBy"],"sources":["../../../packages/core/src/components/gov-wizard/gov-wizard.scss?tag=gov-wizard","../../../packages/core/src/components/gov-wizard/gov-wizard.tsx"],"sourcesContent":["/*\n * Wizard\n */\n\n$class: \".gov-wizard\";\n\n#{$class} {\n\t@include base();\n\t@include reset-last-margin();\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizes, WizardSizesType, WizardClass, WizardItemClass } from \"./constants\"\nimport { GovWizardItemChangeEvent } from \"./gov-wizard-item.d\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateAccessibleLabel } from \"../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\n\n@Component({\n\ttag: \"gov-wizard\",\n\tstyleUrl: \"gov-wizard.scss\",\n})\nexport class GovWizard {\n\tprivate h: GovHost\n\n\t@Element() readonly host: HTMLGovWizardElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Adds accessible label for the wizard that is only shown for screen readers.\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 * Called when the wizard children state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<GovWizardItemChangeEvent>\n\n\t@Watch(\"size\")\n\tprivate validateSize(newValue: string): void {\n\t\tvalidateProp(WizardSizes, newValue, WizardClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(WizardItemClass.root).forEach((child: HTMLGovWizardItemElement) => {\n\t\t\tchild.setAttribute(\"size\", this.size)\n\t\t\t/*\n\t\t\tchild.addEventListener('gov-change', (e: GovWizardItemCustomEvent<GovWizardItemChangeEvent>) => {\n\t\t\t\te.stopPropagation()\n\t\t\t\tthis.govChange.emit(e.detail)\n\t\t\t})\n\t\t\t*/\n\t\t})\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardClass.root)} role=\"list\" size={this.size}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tpublic async validateAccessibility(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, WizardClass.root)\n\t}\n}\n"],"mappings":"iYAAA,MAAMA,EAAe,yb,MCcRC,EAAS,MAKrB,WAAAC,CAAAC,G,0DAO0C,I,uDANzCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAqBf,YAAAC,CAAaC,GACpBC,EAAaC,EAAaF,EAAUG,EAAYC,K,CAGjD,iBAAAC,GACCV,KAAKI,aAAaJ,KAAKW,K,CAGxB,gBAAAC,GACCZ,KAAKG,KAAKU,iBAAiBC,EAAgBL,MAAMM,SAASC,IACzDA,EAAMC,aAAa,OAAQjB,KAAKW,KAAK,G,CAUvC,wBAAMO,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNpB,KAAKqB,c,EAIb,MAAAC,GACC,OACCrB,EAACsB,EAAI,CAACC,MAAOxB,KAAKC,EAAEwB,QAAQjB,EAAYC,MAAOiB,KAAK,OAAOf,KAAMX,KAAKW,MACrEV,EAAA,a,CASI,kBAAMoB,GACZM,EAAkB3B,KAAK4B,UAAW5B,KAAK6B,eAAgBrB,EAAYC,K"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["pick","Variants","ControlGroupClass","root","govControlGroupCss","GovControlGroup","constructor","hostRef","PRIMARY","this","h","govHost","host","validateVariant","newValue","validateProp","render","noBorder","undefined","Host","class","classes","variant"],"sources":["../../../packages/core/src/components/gov-control-group/constants.ts","../../../packages/core/src/components/gov-control-group/gov-control-group.scss?tag=gov-control-group","../../../packages/core/src/components/gov-control-group/gov-control-group.tsx"],"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","/*\n * Control group\n */\n\n$class: \".gov-control-group\";\n\n#{$class} {\n\t@include base(flex);\n\talign-items: center;\n\tborder-radius: $control-group-border-radius;\n\t.element *,\n\t.gov-button .element {\n\t\tborder: none !important;\n\t\tborder-radius: 0;\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $control-group-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tborder: get(\"border\", $definitions);\n\t\t\t> * {\n\t\t\t\tborder-right: get(\"border\", $definitions);\n\t\t\t}\n\t\t}\n\t}\n\n\t> * {\n\t\t&:last-child {\n\t\t\tborder-right: none;\n\t\t}\n\t}\n\t&.no-border {\n\t\t> * {\n\t\t\tborder-right: none;\n\t\t}\n\t}\n}\n\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { Variants } from \"../../core/constants/variants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { ControlGroupClass, ControlGroupVariantType } from \"./constants\"\n\n@Component({\n\ttag: \"gov-control-group\",\n\tstyleUrl: \"gov-control-group.scss\",\n})\nexport class GovControlGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovControlGroupElement\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly variant: ControlGroupVariantType = Variants.PRIMARY\n\t/**\n\t * Specifies the display of the border between elements\n\t */\n\t@Prop({ attribute: \"no-border\" }) readonly noBorder: boolean = false\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(Variants, newValue, ControlGroupClass.root)\n\t}\n\n\trender() {\n\t\tconst noBorder = this.noBorder === true ? \"no-border\" : undefined\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([ControlGroupClass.root, noBorder])}\n\t\t\t\tvariant={this.variant}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"+OAIoCA,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,YAGzF,MAAMC,EAAoB,CAChCC,KAAM,qBCRP,MAAMC,EAAqB,y+D,MCWdC,EAAe,MAG3B,WAAAC,CAAAC,G,uBAQoDN,EAASO,Q,cAIE,MAX9DC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAcvB,eAAAC,CAAgBC,GACfC,EAAad,EAAUa,EAAUZ,EAAkBC,K,CAGpD,MAAAa,GACC,MAAMC,EAAWR,KAAKQ,WAAa,KAAO,YAAcC,UACxD,OACCR,EAACS,EAAI,CACJC,MAAOX,KAAKC,EAAEW,QAAQ,CAACnB,EAAkBC,KAAMc,IAC/CK,QAASb,KAAKa,SACdZ,EAAA,a"}
@@ -1,2 +0,0 @@
1
- import{r as o,c as r,h as a,a as i,g}from"./p-5bc604a3.js";import{F as t,a as e,b as p,c as s}from"./p-3a04fb9b.js";import{g as m}from"./p-5de606f8.js";import{v as n}from"./p-dcb5fb35.js";import{t as f}from"./p-8fcc8483.js";import{p as l}from"./p-ab5a13ea.js";import"./p-03990da5.js";import"./p-55500e5a.js";import"./p-7f2c9830.js";import"./p-003e6cca.js";const c='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}gov-form-group,gov-form-radio-group,gov-form-checkbox-group,.gov-form-group{position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap="2xs"],gov-form-radio-group[gap="2xs"],gov-form-checkbox-group[gap="2xs"],.gov-form-group[gap="2xs"]{gap:0.25rem}gov-form-group[gap=xs],gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-group[gap=xs]{gap:0.5rem}gov-form-group[gap=s],gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-group[gap=s]{gap:0.75rem}gov-form-group[gap=m],gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-group[gap=m]{gap:1rem}gov-form-group[gap=l],gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-group[gap=l]{gap:1.25rem}';const v=class{constructor(a){o(this,a);this.govChange=r(this,"gov-change",7);this.handleChange=o=>{var r;o.stopPropagation();const a=l(this.value);if(!Array.isArray(a))return;if(o.detail.checked){this.value=[...a,o.detail.value]}else{this.value=(r=a.filter((r=>r!==o.detail.value)))!==null&&r!==void 0?r:[]}this.govChange.emit({value:this.value,component:t.root})};this.gap=undefined;this.orientation="vertical";this.value=undefined;this.h=m(this.host)}validateGap(o){if(o){n(p,o,e.root)}}validateOrientation(o){if(o){n(s,o,e.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation);this.value=l(this.value)}componentDidRender(){f((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-checkbox").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=this.value.includes(o.value)}))}render(){return a(i,{gap:this.gap,class:this.h.classes(e.root),value:this.value},a("slot",null))}get host(){return g(this)}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}};v.style=c;export{v as gov_form_checkbox_group};
2
- //# sourceMappingURL=p-e5bcedb7.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["govFormGroupCss","GovFormCheckboxGroup","constructor","hostRef","this","handleChange","event","stopPropagation","value","propsValueToArray","Array","isArray","detail","checked","_a","filter","val","govChange","emit","component","FormCheckboxGroupClass","root","undefined","h","govHost","host","validateGap","newValue","validateProp","FormGroupSizes","FormGroupClass","validateOrientation","FormGroupOrientation","componentWillLoad","gap","orientation","componentDidRender","tick","rerenderComponent","querySelectorAll","forEach","element","hasAttribute","addEventListener","setAttribute","includes","render","Host","class","classes"],"sources":["../../../packages/core/src/components/gov-form/group/gov-form-group.scss?tag=gov-form-checkbox-group","../../../packages/core/src/components/gov-form/group/gov-form-checkbox-group.tsx"],"sourcesContent":["$class: \".gov-form-group\";\n\ngov-form-group, gov-form-radio-group, gov-form-checkbox-group, #{$class} {\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@each $gap, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$gap}\"] {\n\t\t\tgap: get($gap, $sizes);\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {\n\tFormCheckboxGroupClass,\n\tFormGroupClass,\n\tFormGroupOrientation,\n\tFormGroupOrientationType,\n\tFormGroupSizes,\n\tFormGroupSizesType\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormCheckboxEvent} from \"../checkbox/gov-form-checkbox.types\"\nimport {FormCheckboxGroupEvent} from \"./gov-form-group.types\"\nimport {tick} from \"../../../utils/stencil.utils\"\nimport {propsValueToArray} from \"../../../utils/array.utils\"\n\n@Component({\n\ttag: \"gov-form-checkbox-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormCheckboxGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\t/**\n\t * Group's value\n\t */\n\t@Prop({attribute: \"value\", mutable: true}) value?: string | string[] = undefined\n\t/**\n /* Emitted when the checkbox change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormCheckboxGroupEvent>\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\t@Watch(\"orientation\")\n\tvalidateOrientation(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupOrientation, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\thandleChange = (event: CustomEvent<FormCheckboxEvent>) => {\n\t\tevent.stopPropagation()\n\t\tconst value = propsValueToArray<string[]>(this.value);\n\t\tif (!Array.isArray(value)) return;\n\t\tif (event.detail.checked) {\n\t\t\tthis.value = [...value, event.detail.value]\n\t\t} else {\n\t\t\tthis.value = value.filter((val) => val !== event.detail.value) ?? []\n\t\t}\n\t\tthis.govChange.emit({\n\t\t\tvalue: this.value,\n\t\t\tcomponent: FormCheckboxGroupClass.root,\n\t\t})\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t\tthis.validateOrientation(this.orientation)\n\t\tthis.value = propsValueToArray(this.value)\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.rerenderComponent())\n\t}\n\n\trerenderComponent(): void {\n\t\tthis.host.querySelectorAll('gov-form-checkbox').forEach((element) => {\n\t\t\tif (!element.hasAttribute('listener-attached')) {\n\t\t\t\telement.addEventListener('gov-change', this.handleChange)\n\t\t\t}\n\t\t\telement.setAttribute('listener-attached', 'true')\n\t\t\telement.checked = this.value.includes(element.value);\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)} value={this.value}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"oWAAA,MAAMA,EAAkB,0uD,MCqBXC,EAAoB,MAGhC,WAAAC,CAAAC,G,gDAoCAC,KAAAC,aAAgBC,I,MACfA,EAAMC,kBACN,MAAMC,EAAQC,EAA4BL,KAAKI,OAC/C,IAAKE,MAAMC,QAAQH,GAAQ,OAC3B,GAAIF,EAAMM,OAAOC,QAAS,CACzBT,KAAKI,MAAQ,IAAIA,EAAOF,EAAMM,OAAOJ,M,KAC/B,CACNJ,KAAKI,OAAQM,EAAAN,EAAMO,QAAQC,GAAQA,IAAQV,EAAMM,OAAOJ,WAAM,MAAAM,SAAA,EAAAA,EAAI,E,CAEnEV,KAAKa,UAAUC,KAAK,CACnBV,MAAOJ,KAAKI,MACZW,UAAWC,EAAuBC,MACjC,E,SAxCyCC,U,iBAIc,W,WAIaA,UAftElB,KAAKmB,EAAIC,EAAQpB,KAAKqB,K,CAsBvB,WAAAC,CAAYC,GACX,GAAIA,EAAU,CACbC,EAAaC,EAAgBF,EAAUG,EAAeT,K,EAKxD,mBAAAU,CAAoBJ,GACnB,GAAIA,EAAU,CACbC,EAAaI,EAAsBL,EAAUG,EAAeT,K,EAmB9D,iBAAAY,GACC7B,KAAKsB,YAAYtB,KAAK8B,KACtB9B,KAAK2B,oBAAoB3B,KAAK+B,aAC9B/B,KAAKI,MAAQC,EAAkBL,KAAKI,M,CAGrC,kBAAA4B,GACCC,GAAK,IAAMjC,KAAKkC,qB,CAGjB,iBAAAA,GACClC,KAAKqB,KAAKc,iBAAiB,qBAAqBC,SAASC,IACxD,IAAKA,EAAQC,aAAa,qBAAsB,CAC/CD,EAAQE,iBAAiB,aAAcvC,KAAKC,a,CAE7CoC,EAAQG,aAAa,oBAAqB,QAC1CH,EAAQ5B,QAAUT,KAAKI,MAAMqC,SAASJ,EAAQjC,MAAM,G,CAItD,MAAAsC,GACC,OACCvB,EAACwB,EAAI,CAACb,IAAK9B,KAAK8B,IAAKc,MAAO5C,KAAKmB,EAAE0B,QAAQnB,EAAeT,MAAOb,MAAOJ,KAAKI,OAC5Ee,EAAA,a"}
@@ -1,2 +0,0 @@
1
- import{r as t,h as o,a as i,g as a}from"./p-5bc604a3.js";import{L as e}from"./p-5defdc5e.js";import{g as s}from"./p-5de606f8.js";const l=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-layout{position:relative;display:block;width:100%}.gov-layout__section{display:flex;gap:var(--gov-layout-gap, 1.375rem);flex-direction:column}@media (min-width: 64em){.gov-layout__section{flex-direction:row}.gov-layout__section-aside-right .gov-layout-column:first-child,.gov-layout__section-aside .gov-layout-column:first-child{flex:1 1 auto;width:auto}.gov-layout__section-aside-right .gov-layout-column:last-child,.gov-layout__section-aside .gov-layout-column:last-child{flex:0 0 auto;width:calc(var(--gov-container-width, 73.75rem) / 3 - var(--gov-layout-gap, 1.375rem))}.gov-layout__section-aside-left .gov-layout-column:first-child{flex:0 0 auto;width:calc(var(--gov-container-width, 73.75rem) / 3 - var(--gov-layout-gap, 1.375rem))}.gov-layout__section-aside-left .gov-layout-column:last-child{flex:1 1 auto;width:auto}.gov-layout__section-aside-right-inverse .gov-layout-column:first-child{order:1}.gov-layout__section-aside-left-inverse .gov-layout-column:first-child{order:2}.gov-layout__section-text{width:var(--gov-layout-content-width, 48.75rem);margin-right:auto;margin-left:auto}.gov-layout__section-text-left{width:var(--gov-layout-content-width, 48.75rem);margin-right:auto}.gov-layout__section-text-right{width:var(--gov-layout-content-width, 48.75rem);margin-left:auto}}";const n=class{constructor(o){t(this,o);this.type="stretch";this.variant=undefined;this.inverse=false;this.h=s(this.host)}typeClass(t,o,i,a){const e=o?"-"+o:"";const s=i?"-"+i:"";const l=a?"-inverse":"";return t+" "+t+e+s+l}render(){return o(i,{type:this.type,class:this.h.classes(e.root)},o("section",{class:this.typeClass(e.section,this.type,this.variant,this.inverse)},o("slot",null)))}get host(){return a(this)}};n.style=l;export{n as gov_layout};
2
- //# sourceMappingURL=p-eaedc9e3.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["govLayoutCss","GovLayout","constructor","hostRef","this","h","govHost","host","typeClass","originalClass","type","variant","inverse","isType","isVariant","isInverse","render","Host","class","classes","LayoutClass","root","section"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout.scss?tag=gov-layout","../../../packages/core/src/components/gov-layout/gov-layout.tsx"],"sourcesContent":["/*\n * Layout\n */\n\n$class: \".gov-layout\";\n\n@mixin big() {\n\tflex: 1 1 auto;\n\twidth: auto;\n}\n\n@mixin small() {\n\tflex: 0 0 auto;\n\twidth: calc($container-width / 3 - $layout-gap);\n}\n\n#{$class} {\n\t@include base();\n\t&__section {\n\t\tdisplay: flex;\n\t\tgap: $layout-gap;\n\t\tflex-direction: column;\n\t}\n\n\t// MQ\n\t@include mq($from: lg) {\n\t\t&__section {\n\t\t\tflex-direction: row;\n\n\t\t\t&-aside-right,\n\t\t\t&-aside {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\t@include big;\n\t\t\t\t}\n\n\t\t\t\t#{$class}-column:last-child {\n\t\t\t\t\t@include small;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-left {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\t@include small;\n\t\t\t\t}\n\n\t\t\t\t#{$class}-column:last-child {\n\t\t\t\t\t@include big;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-right-inverse {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\torder: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-left-inverse {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\torder: 2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-text {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-right: auto;\n\t\t\t\tmargin-left: auto;\n\t\t\t}\n\n\t\t\t&-text-left {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-right: auto;\n\t\t\t}\n\n\t\t\t&-text-right {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-left: auto;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { LayoutClass, LayoutType, LayoutVariantType } from './constants'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { govHost } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-layout',\n\tstyleUrl: 'gov-layout.scss',\n})\nexport class GovLayout {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLayoutElement\n\t/**\n\t * Layout type\n\t */\n\t@Prop() readonly type?: LayoutType = 'stretch'\n\t/**\n\t * Layout align\n\t */\n\t@Prop() readonly variant?: LayoutVariantType\n\t/**\n\t * Determine if component should have inverse column order\n\t */\n\t@Prop() readonly inverse: boolean = false\n\n\tprivate typeClass(originalClass: string, type: string, variant: string, inverse: boolean) {\n\t\tconst isType = type ? '-' + type : ''\n\t\tconst isVariant = variant ? '-' + variant : ''\n\t\tconst isInverse = inverse ? '-inverse' : ''\n\t\treturn originalClass + ' ' + originalClass + isType + isVariant + isInverse\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host type={this.type} class={this.h.classes(LayoutClass.root)}>\n\t\t\t\t<section class={this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse)}>\n\t\t\t\t\t<slot />\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iIAAA,MAAMA,EAAe,umD,MCSRC,EAAS,MAGrB,WAAAC,CAAAC,G,oBAQqC,U,oCAQD,MAfnCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAiBf,SAAAC,CAAUC,EAAuBC,EAAcC,EAAiBC,GACvE,MAAMC,EAASH,EAAO,IAAMA,EAAO,GACnC,MAAMI,EAAYH,EAAU,IAAMA,EAAU,GAC5C,MAAMI,EAAYH,EAAU,WAAa,GACzC,OAAOH,EAAgB,IAAMA,EAAgBI,EAASC,EAAYC,C,CAGnE,MAAAC,GACC,OACCX,EAACY,EAAI,CAACP,KAAMN,KAAKM,KAAMQ,MAAOd,KAAKC,EAAEc,QAAQC,EAAYC,OACxDhB,EAAA,WAASa,MAAOd,KAAKI,UAAUY,EAAYE,QAASlB,KAAKM,KAAMN,KAAKO,QAASP,KAAKQ,UACjFP,EAAA,c"}
@@ -1,2 +0,0 @@
1
- import{r as i,c as e,h as r,a,g as o}from"./p-5bc604a3.js";import{a as t}from"./p-7f2c9830.js";import{v}from"./p-dcb5fb35.js";import{W as n,c as d}from"./p-6834d779.js";import{c as s}from"./p-24636c53.js";import{g,b as l,t as m}from"./p-5de606f8.js";import{F as c}from"./p-1c1d0bbe.js";import"./p-003e6cca.js";import"./p-03990da5.js";import"./p-ff7365ae.js";import"./p-55500e5a.js";const z='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-wizard-item{position:relative;display:block;width:100%;margin-bottom:1rem;background:var(--gov-wizard-bg-color, var(--gov-color-neutral-white))}.gov-wizard-item__header{position:relative;width:100%}.gov-wizard-item__arrow{flex:0 0 auto;width:0.75rem;height:0.75rem}.gov-wizard-item__title{margin:0;padding:0;font-family:var(--gov-font-family, "Roboto", sans-serif);font-weight:400;box-sizing:border-box;display:flex;gap:1rem;align-items:baseline}.gov-wizard-item__prefix{display:flex;flex:0 0 auto;justify-content:center;align-items:center;border-radius:50%;text-align:center}.gov-wizard-item__prefix .gov-icon{width:45%;height:45%}.gov-wizard-item__prefix span[slot=prefix]{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.gov-wizard-item__name{display:flex;flex-direction:column}.gov-wizard-item__label{display:flex;gap:0.5rem;align-items:center;font-weight:var(--gov-wizard-title-font-weight, 700)}.gov-wizard-item__annot{color:var(--gov-color-secondary)}.gov-wizard-item__content>*:last-child{margin-bottom:0}.gov-wizard-item[variant=primary] .gov-wizard-item__header{color:var(--gov-wizard-primary-color, var(--gov-color-primary-800))}.gov-wizard-item[variant=primary] .gov-wizard-item__prefix{background:var(--gov-wizard-primary-indicator-bg, var(--gov-color-primary-300));color:var(--gov-wizard-primary-indicator-color, var(--gov-color-primary-800))}.gov-wizard-item[variant=secondary] .gov-wizard-item__header{color:var(--gov-wizard-secondary-color, var(--gov-color-secondary-700))}.gov-wizard-item[variant=secondary] .gov-wizard-item__prefix{background:var(--gov-wizard-secondary-indicator-bg, var(--gov-color-secondary-400));color:var(--gov-wizard-secondary-indicator-color, var(--gov-color-secondary-700))}.gov-wizard-item[variant=success] .gov-wizard-item__header{color:var(--gov-wizard-success-color, var(--gov-color-success-500))}.gov-wizard-item[variant=success] .gov-wizard-item__prefix{background:var(--gov-wizard-success-indicator-bg, var(--gov-color-success));color:var(--gov-wizard-success-indicator-color, var(--gov-color-neutral-white))}.gov-wizard-item[variant=error] .gov-wizard-item__header{color:var(--gov-wizard-error-color, var(--gov-color-error-500))}.gov-wizard-item[variant=error] .gov-wizard-item__prefix{background:var(--gov-wizard-error-indicator-bg, var(--gov-color-error));color:var(--gov-wizard-error-indicator-color, var(--gov-color-neutral-white))}.gov-wizard-item[variant=warning] .gov-wizard-item__header{color:var(--gov-wizard-warning-color, var(--gov-color-warning-500))}.gov-wizard-item[variant=warning] .gov-wizard-item__prefix{background:var(--gov-wizard-warning-indicator-bg, var(--gov-color-warning));color:var(--gov-wizard-warning-indicator-color, var(--gov-color-neutral-white))}.gov-wizard-item__header{gap:1rem;padding:1rem;border-radius:0;text-align:left;transition:150ms linear color}.gov-wizard-item__header:focus{outline:none}.gov-wizard-item__header:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-wizard-item__prefix{position:absolute;left:1rem}.gov-wizard-item__header[aria-expanded=true] .gov-wizard-item__label .gov-icon{transform:scale(-1)}.gov-wizard-item[size=xs] .gov-wizard-item__title,.gov-wizard-item[size=s] .gov-wizard-item__title,.gov-wizard-item[size=m] .gov-wizard-item__title{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-wizard-item[size=xs] .gov-wizard-item__annot,.gov-wizard-item[size=s] .gov-wizard-item__annot,.gov-wizard-item[size=m] .gov-wizard-item__annot{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-wizard-item[size=xs] .gov-wizard-item__prefix,.gov-wizard-item[size=s] .gov-wizard-item__prefix,.gov-wizard-item[size=m] .gov-wizard-item__prefix{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);width:var(--gov-wizard-xs-indicator-size, 1.5rem);height:var(--gov-wizard-xs-indicator-size, 1.5rem);top:var(--gov-wizard-xs-top, 1rem)}.gov-wizard-item[size=xs] .gov-wizard-item__prefix+.gov-wizard-item__header,.gov-wizard-item[size=s] .gov-wizard-item__prefix+.gov-wizard-item__header,.gov-wizard-item[size=m] .gov-wizard-item__prefix+.gov-wizard-item__header{padding:var(--gov-wizard-xs-header-padding, 1rem 1rem 1rem 3.5rem)}.gov-wizard-item[size=xs] .gov-wizard-item__content,.gov-wizard-item[size=s] .gov-wizard-item__content,.gov-wizard-item[size=m] .gov-wizard-item__content{padding:var(--gov-wizard-content-padding, 0rem 1rem 1rem 1rem)}@media not all and (pointer: coarse){.gov-wizard-item[variant=primary][collapsible=""] .gov-wizard-item__header:hover,.gov-wizard-item[variant=primary][collapsible=true i] .gov-wizard-item__header:hover,.gov-wizard-item[variant=primary][collapsible="1"] .gov-wizard-item__header:hover{color:var(--gov-wizard-primary-hover-color, var(--gov-color-primary-900))}}@media not all and (pointer: coarse){.gov-wizard-item[variant=secondary][collapsible=""] .gov-wizard-item__header:hover,.gov-wizard-item[variant=secondary][collapsible=true i] .gov-wizard-item__header:hover,.gov-wizard-item[variant=secondary][collapsible="1"] .gov-wizard-item__header:hover{color:var(--gov-wizard-secondary-hover-color, var(--gov-color-secondary-800))}}@media not all and (pointer: coarse){.gov-wizard-item[variant=success][collapsible=""] .gov-wizard-item__header:hover,.gov-wizard-item[variant=success][collapsible=true i] .gov-wizard-item__header:hover,.gov-wizard-item[variant=success][collapsible="1"] .gov-wizard-item__header:hover{color:var(--gov-wizard-success-hover-color, var(--gov-color-success-600))}}@media not all and (pointer: coarse){.gov-wizard-item[variant=error][collapsible=""] .gov-wizard-item__header:hover,.gov-wizard-item[variant=error][collapsible=true i] .gov-wizard-item__header:hover,.gov-wizard-item[variant=error][collapsible="1"] .gov-wizard-item__header:hover{color:var(--gov-wizard-error-hover-color, var(--gov-color-error-600))}}@media not all and (pointer: coarse){.gov-wizard-item[variant=warning][collapsible=""] .gov-wizard-item__header:hover,.gov-wizard-item[variant=warning][collapsible=true i] .gov-wizard-item__header:hover,.gov-wizard-item[variant=warning][collapsible="1"] .gov-wizard-item__header:hover{color:var(--gov-wizard-warning-hover-color, var(--gov-color-warning-600))}}button.gov-wizard-item__header{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:flex-start;text-align:left}button.gov-wizard-item__header:focus{outline:none}@media (min-width: 30em){.gov-wizard-item[size=s] .gov-wizard-item__title,.gov-wizard-item[size=m] .gov-wizard-item__title{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-wizard-item[size=s] .gov-wizard-item__prefix,.gov-wizard-item[size=m] .gov-wizard-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-wizard-s-indicator-size, 2rem);height:var(--gov-wizard-s-indicator-size, 2rem);top:var(--gov-wizard-s-top, 0.8125rem)}.gov-wizard-item[size=s] .gov-wizard-item__prefix+.gov-wizard-item__header,.gov-wizard-item[size=m] .gov-wizard-item__prefix+.gov-wizard-item__header{padding:var(--gov-wizard-s-header-padding, 1rem 1rem 1rem 4rem)}}@media (min-width: 48em){.gov-wizard-item[size=m] .gov-wizard-item__title{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-wizard-item[size=m] .gov-wizard-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-wizard-m-indicator-size, 2.5rem);height:var(--gov-wizard-m-indicator-size, 2.5rem);top:var(--gov-wizard-m-top, 0.5625rem)}.gov-wizard-item[size=m] .gov-wizard-item__prefix+.gov-wizard-item__header{padding:var(--gov-wizard-m-header-padding, 1rem 1rem 1rem 4.5rem)}.gov-wizard-item[size=xs] .gov-wizard-item__content{padding:var(--gov-wizard-xs-content-padding, 0rem 1rem 1rem 3.5rem)}.gov-wizard-item[size=s] .gov-wizard-item__content{padding:var(--gov-wizard-s-content-padding, 0rem 1rem 1rem 4rem)}.gov-wizard-item[size=m] .gov-wizard-item__content{padding:var(--gov-wizard-m-content-padding, 0rem 1rem 1rem 4.5rem)}}';var w;(function(i){i["DIV"]="div";i["BUTTON"]="button"})(w||(w={}));const h=class{constructor(r){i(this,r);this.govChange=e(this,"gov-change",7);this.variant="primary";this.size="m";this.identifier=undefined;this.collapsible=false;this.annotation=undefined;this.label=undefined;this.disabled=false;this.isExpanded=false;this.labelTag="h3";this.h=g(this.host);this.triggerId=s("GovWizardItem");this.contentId=s("GovWizardContent")}validateLabel(i){if(!i){t(`[${n.root}]: Parameter label is required.`)}}validateTriggerTag(i){const e=["h1","h2","h3","h4","h5","h6","span"];if(i){if(!e.includes(i)){t(`[${n.root}]: Tag ${i} is not allowed.`)}}}validateVariant(i){v(d,i,n.root)}emmitChange(){this.govChange.emit({expanded:this.isExpanded,component:n.root})}componentWillLoad(){this.validateLabel(this.label);this.validateVariant(this.variant);this.validateTriggerTag(this.labelTag)}render(){const i=this.identifier||this.triggerId;const e=this.labelTag;const o=this.collapsible?w.BUTTON:w.DIV;const t=this.h.hasSlot("prefix")&&r("span",{class:n.prefix},r("slot",{name:"prefix"}));const v=r(e,{class:n.title},r("span",{class:n.name},r("span",{class:n.label},r("span",null,this.label),this.collapsible&&r("gov-icon",{class:n.arrow,name:"chevron-down"})),this.annotation&&r("span",{class:n.annot},this.annotation)));return r(a,{class:this.h.classes(n.root),"is-expanded":this.isExpanded,variant:this.variant,size:this.size,role:"listitem",collapsible:this.collapsible},this.collapsible?r(c,null,t,r(o,{id:i,class:n.header,"aria-expanded":l(this.isExpanded),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":m(this.disabled),onClick:i=>{i.preventDefault();i.stopPropagation();this.collapsible?this.toggle():false}},v)):r(c,null,t,r("div",{class:n.header},v)),this.collapsible?r("div",{class:n.content,id:this.contentId,"aria-hidden":l(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":i},r("slot",null)):r("div",{class:n.content,"aria-hidden":l(!this.isExpanded),hidden:!this.isExpanded},r("slot",null)))}async open(){this.isExpanded=true;this.emmitChange()}async close(){this.isExpanded=false;this.emmitChange()}async toggle(){this.isExpanded=!this.isExpanded;this.emmitChange()}async currentState(){return this.isExpanded}get host(){return o(this)}static get watchers(){return{label:["validateLabel"],labelTag:["validateTriggerTag"],variant:["validateVariant"]}}};h.style=z;export{h as gov_wizard_item};
2
- //# sourceMappingURL=p-f2206bbb.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["govWizardItemCss","Tags","GovWizardItem","constructor","hostRef","this","h","govHost","host","triggerId","createID","contentId","validateLabel","newValue","govErrorLog","WizardItemClass","root","validateTriggerTag","validTags","includes","validateVariant","validateProp","WizardVariants","emmitChange","govChange","emit","expanded","isExpanded","component","componentWillLoad","label","variant","labelTag","render","identifier","LabelTag","Tag","collapsible","BUTTON","DIV","prefixSlot","hasSlot","class","prefix","name","title","arrow","annotation","annot","Host","classes","size","role","Fragment","id","header","booleanString","disabled","toBoolAttrIfDefined","onClick","e","preventDefault","stopPropagation","toggle","content","hidden","open","close","currentState"],"sources":["../../../packages/core/src/components/gov-wizard/gov-wizard-item.scss?tag=gov-wizard-item","../../../packages/core/src/components/gov-wizard/gov-wizard-item.tsx"],"sourcesContent":["/*\n * Wizard - Item\n */\n\n@import \"../gov-wizard/gov-wizard-item-core.scss\";\n$class: \".gov-wizard-item\";\n\n#{$class} {\n\t@include wizard-item-core;\n\tmargin-bottom: rem-calc(16);\n\tbackground: $wizard-bg-color;\n\t&__header {\n\t\t@include focus-outline();\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttransition: $t linear color;\n\t}\n\t&__prefix {\n\t\tposition: absolute;\n\t\tleft: rem-calc(16);\n\t}\n\n\t// STATES\n\t&__header[aria-expanded=\"true\"] {\n\t\t#{$class}__label {\n\t\t\t.gov-icon {\n\t\t\t\ttransform: scale(-1);\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t&[size=\"#{$size-xs}\"],\n\t&[size=\"#{$size-s}\"],\n\t&[size=\"#{$size-m}\"] {\n\t\t#{$class} {\n\t\t\t&__title {\n\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-xs, \"font-size\"));\n\t\t\t}\n\t\t\t&__annot {\n\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-xs, \"font-size-annot\"));\n\t\t\t}\n\t\t\t&__prefix {\n\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-xs, \"font-size-indicator\"));\n\t\t\t\twidth: deep-map-get($wizard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\theight: deep-map-get($wizard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\ttop: deep-map-get($wizard-sizes, $size-xs, \"top\");\n\t\t\t\t+ #{$class}__header {\n\t\t\t\t\tpadding: deep-map-get($wizard-sizes, $size-xs, \"header-padding\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__content {\n\t\t\t\tpadding: $wizard-content-padding;\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $definitions in $wizard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t@include parameter(\"collapsible\") {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__header {\n\t\t\t\t\t\t@include hover() {\n\t\t\t\t\t\t\tcolor: get(\"hover-color\", $definitions);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// HOVERS\n\t@at-root button#{&}__header {\n\t\t@include button-core();\n\t\tjustify-content: flex-start;\n\t\ttext-align: left;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&[size=\"#{$size-s}\"],\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-s, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-s, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\ttop: deep-map-get($wizard-sizes, $size-s, \"top\");\n\t\t\t\t\t+ #{$class}__header {\n\t\t\t\t\t\tpadding: deep-map-get($wizard-sizes, $size-s, \"header-padding\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-m, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-m, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\ttop: deep-map-get($wizard-sizes, $size-m, \"top\");\n\t\t\t\t\t+ #{$class}__header {\n\t\t\t\t\t\tpadding: deep-map-get($wizard-sizes, $size-m, \"header-padding\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@each $size, $definitions in $wizard-sizes {\n\t\t\t&[size=\"#{$size}\"] {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { govErrorLog } from \"../../helpers/Log/gov.log\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizesType, WizardVariants, WizardVariantsType, WizardItemClass } from \"./constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { WizardItemEvent } from \"./gov-wizard-item.types\"\nimport Fragment from \"../../helpers/Fragment\"\n\nenum Tags {\n\tDIV = \"div\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-wizard-item\",\n\tstyleUrl: \"gov-wizard-item.scss\",\n})\nexport class GovWizardItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID(\"GovWizardItem\")\n\t\tthis.contentId = createID(\"GovWizardContent\")\n\t}\n\n\t@Element() readonly host: HTMLGovWizardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: WizardVariantsType = \"primary\"\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Custom wizard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines weather the wizard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Item annotation of the wizard\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Item label of the wizard\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Makes the wizard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\n\t/**\n\t * Used to change the HTML tag in the accordion trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: \"label-tag\" }) readonly labelTag: string = \"h3\"\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizardItemEvent>\n\n\t@Watch(\"label\")\n\tprivate validateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${WizardItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch(\"labelTag\")\n\tprivate validateTriggerTag(newValue: string): void {\n\t\tconst validTags = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"span\"]\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${WizardItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch(\"variant\")\n\tprivate validateVariant(newValue: string): void {\n\t\tvalidateProp(WizardVariants, newValue, WizardItemClass.root)\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizardItemClass.root })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.labelTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst LabelTag = this.labelTag\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\t\tconst prefixSlot = this.h.hasSlot(\"prefix\") && (<span class={WizardItemClass.prefix}><slot name=\"prefix\" /></span>)\n\n\t\tconst label = (\n\t\t\t<LabelTag class={WizardItemClass.title}>\n\t\t\t\t<span class={WizardItemClass.name}>\n\t\t\t\t\t<span class={WizardItemClass.label}>\n\t\t\t\t\t\t<span>{this.label}</span>\n\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.arrow} name=\"chevron-down\"></gov-icon>}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t{this.annotation && <span class={WizardItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t</span>\n\t\t\t</LabelTag>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardItemClass.root)} is-expanded={this.isExpanded} variant={this.variant} size={this.size} role=\"listitem\" collapsible={this.collapsible}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\t\tclass={WizardItemClass.header}\n\t\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\tthis.collapsible ? this.toggle() : false\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t</Fragment>\n\t\t\t\t) : (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t\t<div class={WizardItemClass.header}>{label}</div>\n\t\t\t\t\t</Fragment>\n\t\t\t\t)}\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\thidden={!this.isExpanded}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizardItemClass.content} aria-hidden={booleanString(!this.isExpanded)} hidden={!this.isExpanded}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the Wizard\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpanded = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the Wizard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpanded = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizard switch\n\t */\n\t@Method()\n\tpublic async toggle(): Promise<void> {\n\t\tthis.isExpanded = !this.isExpanded\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpanded\n\t}\n}\n"],"mappings":"8XAAA,MAAMA,EAAmB,mqSCUzB,IAAKC,GAAL,SAAKA,GACJA,EAAA,aACAA,EAAA,kBACA,EAHD,CAAKA,MAAI,K,MASIC,EAAa,MAKzB,WAAAC,CAAAC,G,6DAUgD,U,UAIN,I,2CAQF,M,6DAYH,M,gBAI2B,M,cAIF,KAzC7DC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,UAAYC,EAAS,iBAC1BL,KAAKM,UAAYD,EAAS,mB,CA8CnB,aAAAE,CAAcC,GACrB,IAAKA,EAAU,CACdC,EAAY,IAAIC,EAAgBC,sC,EAK1B,kBAAAC,CAAmBJ,GAC1B,MAAMK,EAAY,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,QACvD,GAAIL,EAAU,CACb,IAAKK,EAAUC,SAASN,GAAW,CAClCC,EAAY,IAAIC,EAAgBC,cAAcH,oB,GAMzC,eAAAO,CAAgBP,GACvBQ,EAAaC,EAAgBT,EAAUE,EAAgBC,K,CAGhD,WAAAO,GACPlB,KAAKmB,UAAUC,KAAK,CAAEC,SAAUrB,KAAKsB,WAAYC,UAAWb,EAAgBC,M,CAG7E,iBAAAa,GACCxB,KAAKO,cAAcP,KAAKyB,OACxBzB,KAAKe,gBAAgBf,KAAK0B,SAC1B1B,KAAKY,mBAAmBZ,KAAK2B,S,CAG9B,MAAAC,GACC,MAAMxB,EAAYJ,KAAK6B,YAAc7B,KAAKI,UAC1C,MAAM0B,EAAW9B,KAAK2B,SACtB,MAAMI,EAAM/B,KAAKgC,YAAcpC,EAAKqC,OAASrC,EAAKsC,IAClD,MAAMC,EAAanC,KAAKC,EAAEmC,QAAQ,WAAcnC,EAAA,QAAMoC,MAAO3B,EAAgB4B,QAAQrC,EAAA,QAAMsC,KAAK,YAEhG,MAAMd,EACLxB,EAAC6B,EAAQ,CAACO,MAAO3B,EAAgB8B,OAChCvC,EAAA,QAAMoC,MAAO3B,EAAgB6B,MAC5BtC,EAAA,QAAMoC,MAAO3B,EAAgBe,OAC5BxB,EAAA,YAAOD,KAAKyB,OACXzB,KAAKgC,aAAe/B,EAAA,YAAUoC,MAAO3B,EAAgB+B,MAAOF,KAAK,kBAGlEvC,KAAK0C,YAAczC,EAAA,QAAMoC,MAAO3B,EAAgBiC,OAAQ3C,KAAK0C,cAKjE,OACCzC,EAAC2C,EAAI,CAACP,MAAOrC,KAAKC,EAAE4C,QAAQnC,EAAgBC,MAAK,cAAeX,KAAKsB,WAAYI,QAAS1B,KAAK0B,QAASoB,KAAM9C,KAAK8C,KAAMC,KAAK,WAAWf,YAAahC,KAAKgC,aACzJhC,KAAKgC,YACL/B,EAAC+C,EAAQ,KACPb,EACDlC,EAAC8B,EAAG,CACHkB,GAAI7C,EACJiC,MAAO3B,EAAgBwC,OAAM,gBACdC,EAAcnD,KAAKsB,YAAW,gBAC9BtB,KAAKM,UACpB8C,SAAUpD,KAAKoD,SAAQ,gBACRC,EAAoBrD,KAAKoD,UACxCE,QAAUC,IACTA,EAAEC,iBACFD,EAAEE,kBACFzD,KAAKgC,YAAchC,KAAK0D,SAAW,KAAK,GAGxCjC,IAIHxB,EAAC+C,EAAQ,KACPb,EACDlC,EAAA,OAAKoC,MAAO3B,EAAgBwC,QAASzB,IAGtCzB,KAAKgC,YACL/B,EAAA,OACCoC,MAAO3B,EAAgBiD,QACvBV,GAAIjD,KAAKM,UAAS,cACL6C,GAAenD,KAAKsB,YACjCsC,QAAS5D,KAAKsB,WAAU,kBACPlB,GAEjBH,EAAA,cAGDA,EAAA,OAAKoC,MAAO3B,EAAgBiD,QAAO,cAAeR,GAAenD,KAAKsB,YAAasC,QAAS5D,KAAKsB,YAChGrB,EAAA,c,CAWL,UAAM4D,GACL7D,KAAKsB,WAAa,KAClBtB,KAAKkB,a,CAOC,WAAM4C,GACZ9D,KAAKsB,WAAa,MAClBtB,KAAKkB,a,CAOC,YAAMwC,GACZ1D,KAAKsB,YAActB,KAAKsB,WACxBtB,KAAKkB,a,CAOC,kBAAM6C,GACZ,OAAO/D,KAAKsB,U"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["govFormRadioCss","GovFormRadio","constructor","hostRef","this","hydrated","radioId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormRadioSizes","FormRadioClass","root","watchDisabled","passControlAttrs","passAttrToControl","size","toBoolAttr","invalid","componentWillLoad","componentDidRender","passAttrToLabel","identifier","String","required","canValidateWcagOnRender","delay","validateAccessibility","connectedCallback","render","wrapRadio","children","noLabel","class","label","Host","checked","toBoolAttrIfDefined","holder","Fragment","input","id","type","value","name","disabled","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","wcagDescribedBy","wcagLabelledBy","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef","validateWcagRef","validateWcagLabelFor"],"sources":["../../../packages/core/src/components/gov-form/radio/gov-form-radio.scss?tag=gov-form-radio","../../../packages/core/src/components/gov-form/radio/gov-form-radio.tsx"],"sourcesContent":["/*\n * Radio\n */\n\n@import \"../checkbox/gov-form-checkbox-core.scss\";\n$class: \".gov-form-radio\";\n\n#{$class} {\n\t@extend %form-checkbox-core;\n\tinput + span {\n\t\t&::before {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t\t&::after {\n\t\t\t@include pseudo();\n\t\t\tborder-radius: 50%;\n\t\t\tbackground: $form-radio-indicator-bg;\n\t\t\topacity: 0;\n\t\t\ttransition: $t linear opacity;\n\t\t}\n\t}\n\n\t&__label {\n\t\tposition: relative;\n\t}\n\n\t// STATES\n\tinput:checked + span::after {\n\t\topacity: 1;\n\t}\n\t@include parameter(\"invalid\") {\n\t\tinput + span::after {\n\t\t\tbackground: $form-state-color-error;\n\t\t}\n\t}\n\t@include parameter(\"disabled\") {\n\t\tinput:checked + span::after {\n\t\t\tbackground-color: $form-state-bg-disabled;\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $form-checkbox-core-sizes {\n\t\t&[size=\"#{$size}\"] {\n\t\t\tinput + span::after {\n\t\t\t\ttop: calc((get(\"indicator-size\", $definitions) - get(\"dot-size\", $definitions)) / 2);\n\t\t\t\tleft: calc((get(\"indicator-size\", $definitions) - get(\"dot-size\", $definitions)) / 2);\n\t\t\t\twidth: get(\"dot-size\", $definitions);\n\t\t\t\theight: get(\"dot-size\", $definitions);\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { createID } from \"../../../utils/string.utils\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { FormRadioClass, FormRadioSizes, FormRadioSizesType } from \"./constants\"\nimport { govHost, toBoolAttr, toBoolAttrIfDefined } from \"../../../helpers/Dom/template\"\nimport { validateWcagLabelFor, validateWcagRef } from \"../../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { delay } from \"../../../utils/utils\"\nimport { GovForm } from \"../../../helpers/Dom/form.types\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govForm } from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport { FormRadioEvent } from \"./gov-form-radio.types\"\n\n@Component({\n\ttag: \"gov-form-radio\",\n\tstyleUrl: \"gov-form-radio.scss\",\n})\nexport class GovFormRadio {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\n\tprivate readonly radioId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.radioId = createID(\"GovRadio\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormRadioElement\n\t/**\n\t * Value of radio\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({ attribute: \"no-label\" }) readonly noLabel: boolean = false\n\t/**\n\t * Radio button state\n\t */\n\t@Prop({ reflect: true, mutable: true }) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the radio component disabled.\n\t * This prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Name of the radio.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Radio's size.\n\t */\n\t@Prop() readonly size?: FormRadioSizesType = \"m\"\n\t/**\n\t * Custom radio identifier.\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({ attribute: \"wcag-described-by\" }) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Emitted when the radio has focus.\n\t */\n\t@Event({ eventName: \"gov-focus\" }) govFocus: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio loses focus.\n\t */\n\t@Event({ eventName: \"gov-blur\" }) govBlur: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio change value.\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<FormRadioEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormRadioSizes, newValue, FormRadioClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", \"radio\")\n\t}\n\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.radioId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst wrapRadio = children => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn <label class={FormRadioClass.label}>{children}</label>\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={FormRadioClass.root} hydrated={this.hydrated} checked={this.checked} size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t<div class={FormRadioClass.holder}>\n\t\t\t\t\t{wrapRadio(\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={FormRadioClass.input}\n\t\t\t\t\t\t\t\tid={this.identifier || this.radioId}\n\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t<slot name=\"label\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</Fragment>,\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormRadioClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormRadioClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.radioId, this.wcagLabelledBy, FormRadioClass.root)\n\t}\n}\n"],"mappings":"mhBAAA,MAAMA,EAAkB,kkP,MCkBXC,EAAY,MAQxB,WAAAC,CAAAC,G,sHAFQC,KAAAC,SAAW,M,kCAiB0C,M,aAIX,M,cAKb,M,cAKA,M,8BAQQ,I,8GApC5CD,KAAKE,QAAUC,EAAS,YAExBH,KAAKI,EAAIC,EAAQL,KAAKM,MACtBN,KAAKO,EAAIC,EAAQR,KAAKI,E,CAgEvB,YAAAK,CAAaC,GACZC,EAAaC,EAAgBF,EAAUG,EAAeC,K,CAMvD,aAAAC,GACCf,KAAKgB,kB,CAGE,gBAAAA,GACPhB,KAAKO,EAAEU,kBAAkB,OAAQjB,KAAKkB,MACtClB,KAAKO,EAAEU,kBAAkB,UAAWE,EAAWnB,KAAKoB,UACpDpB,KAAKO,EAAEU,kBAAkB,OAAQ,Q,CAIlC,iBAAAI,GACCrB,KAAKgB,kB,CAGN,wBAAMM,GACLtB,KAAKO,EAAEgB,gBAAgB,aAAcvB,KAAKwB,YAAcxB,KAAKE,SAC7DF,KAAKO,EAAEgB,gBAAgB,WAAYE,OAAOzB,KAAK0B,WAC/C,GAAIC,IAA2B,OACxBC,EAAM,WACN5B,KAAK6B,c,EAIb,iBAAAC,GACC9B,KAAKC,SAAW,I,CAGjB,MAAA8B,GACC,MAAMC,EAAYC,IACjB,GAAIjC,KAAKkC,QAAS,CACjB,OAAO9B,EAAA,SAAO+B,MAAOtB,EAAeuB,OAAQH,E,CAE7C,OAAOA,CAAQ,EAGhB,OACC7B,EAACiC,EAAI,CAACF,MAAOtB,EAAeC,KAAMb,SAAUD,KAAKC,SAAUqC,QAAStC,KAAKsC,QAASpB,KAAMlB,KAAKkB,KAAME,QAASmB,EAAoBvC,KAAKoB,UACpIhB,EAAA,OAAK+B,MAAOtB,EAAe2B,QACzBR,EACA5B,EAACqC,EAAQ,KACRrC,EAAA,SACC+B,MAAOtB,EAAe6B,MACtBC,GAAI3C,KAAKwB,YAAcxB,KAAKE,QAC5B0C,KAAK,QACLC,MAAO7C,KAAK6C,MACZC,KAAM9C,KAAK8C,KACXR,QAAStC,KAAKsC,QACdS,SAAU/C,KAAK+C,SACfC,QAAShD,KAAKiD,eAAeC,KAAKlD,MAClCmD,SAAUnD,KAAKoD,gBAAgBF,KAAKlD,MACpCqD,QAASrD,KAAKsD,eAAeJ,KAAKlD,MAClCuD,OAAQvD,KAAKwD,cAAcN,KAAKlD,MAChCyD,IAAKC,GAAO1D,KAAK2D,SAAWD,EAC5BhC,SAAU1B,KAAK0B,SAAQ,eACT1B,KAAKsC,QAAO,gBACXC,EAAoBvC,KAAK0B,UAAS,eACnCa,EAAoBvC,KAAKoB,SAAQ,mBAC7BpB,KAAK4D,gBAAe,kBACrB5D,KAAK6D,eAAc,gBACrBtB,EAAoBvC,KAAK+C,YAEzC3C,EAAA,YACCA,EAAA,QAAM0C,KAAK,c,CASV,cAAAG,CAAea,GACtBA,EAAEC,iB,CAGK,cAAAT,CAAeQ,GACtBA,EAAEC,kBACF/D,KAAKgE,SAASC,KAAK,CAClBC,UAAWrD,EAAeC,KAC1B+B,MAAO7C,KAAK6C,MACZP,QAAStC,KAAKsC,QACd6B,cAAeL,G,CAIT,aAAAN,CAAcM,GACrBA,EAAEC,kBACF/D,KAAKoE,QAAQH,KAAK,CACjBC,UAAWrD,EAAeC,KAC1B+B,MAAO7C,KAAK6C,MACZP,QAAStC,KAAKsC,QACd6B,cAAeL,G,CAIT,eAAAV,CAAgBU,GACvB9D,KAAKsC,QAAWwB,EAAEO,OAA4B/B,QAC9CwB,EAAEC,kBACF/D,KAAKsE,UAAUL,KAAK,CACnBC,UAAWrD,EAAeC,KAC1B+B,MAAO7C,KAAK6C,MACZP,QAAStC,KAAKsC,QACd6B,cAAeL,G,CAQjB,YAAMS,GACL,OAAOvE,KAAK2D,Q,CAOb,kBAAM9B,GACL2C,EAAgBxE,KAAK4D,gBAAiB,oBAAqB/C,EAAeC,MAC1E0D,EAAgBxE,KAAK6D,eAAgB,mBAAoBhD,EAAeC,MACxE2D,EAAqBzE,KAAKwB,YAAcxB,KAAKE,QAASF,KAAK6D,eAAgBhD,EAAeC,K"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["InfobarVariants","pick","Variants","InfobarClass","root","section","icon","content","closable","headline","close","govInfobarCss","GovInfobar","constructor","hostRef","undefined","this","h","govHost","host","validateVariant","newValue","validateProp","componentWillLoad","variant","componentDidRender","canValidateWcagOnRender","delay","validateAccessibility","render","inverse","closeButton","class","size","wcagLabel","wcagCloseLabel","type","onCloseHandler","bind","name","Host","classes","role","hasSlot","Fragment","wcagToggleLabel","toggleContent","hidden","toBoolAttr","e","govClose","emit","component","ref","originalEvent","validateWcagProp"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.scss?tag=gov-infobar","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type VariantType = `${ValueOf<typeof InfobarVariants>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\ticon: 'gov-infobar__icon',\n\tcontent: 'gov-infobar__content',\n\tclosable: 'gov-infobar__content--closable',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","/*\n * Infobar\n */\n\n$class: \".gov-infobar\";\n\n#{$class} {\n\t@include base();\n\n\t&__section {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t}\n\n\t&__icon {\n\t\tflex: 0 0 auto;\n\n\t\t& > * {\n\t\t\twidth: rem-calc(20);\n\t\t\theight: rem-calc(20);\n\t\t}\n\t}\n\n\t&__headline {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\n\t\t+ div {\n\t\t\tmargin-top: rem-calc(8);\n\t\t}\n\n\t\tp {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\tgov-button {\n\t\t\tmargin-top: rem-calc(-4);\n\t\t}\n\t}\n\n\t&__content {\n\t\t@include reset-last-margin();\n\t\twidth: 100%;\n\n\t\t&--closable {\n\t\t\tpadding-right: rem-calc(56);\n\t\t}\n\n\t\tp {\n\t\t\t@include typography($font-size-m);\n\t\t}\n\n\t\ta {\n\t\t\tcolor: inherit;\n\t\t\t@include hover() {\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t\t.gov-icon {\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__close {\n\t\tposition: absolute;\n\t\ttop: rem-calc(14);\n\t\tright: rem-calc(16);\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $infobar-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tbackground-color: get(\"bg-color\", $definitions);\n\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\tcolor: get(\"icon-color\", $definitions);\n\t\t\t\t}\n\n\t\t\t\t&__content {\n\t\t\t\t\tcolor: get(\"text-color\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@if deep-map-check($definitions, \"border\") {\n\t\t\t\tborder-bottom: $infobar-border;\n\t\t\t}\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tborder-bottom: $infobar-border;\n\t\t\t\tbackground-color: $infobar-inverse-bg;\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__icon {\n\t\t\t\t\t\tcolor: get(\"bg-color\", $definitions);\n\t\t\t\t\t}\n\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tcolor: $infobar-inverse-color;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {validateWcagProp} from '../../helpers/Validate/wcag'\nimport {delay} from '../../utils/utils'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {InfobarClass, InfobarVariants, VariantType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\n\n@Component({\n\ttag: 'gov-infobar',\n\tstyleUrl: 'gov-infobar.scss',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly headline: string\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant: VariantType = 'primary'\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\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 * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'wcag-close-label'}) readonly wcagCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'wcag-toggle-label'}) readonly wcagToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(InfobarVariants, newValue, InfobarClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\tlet inverse = !this.inverse\n\t\tlet variant = this.inverse ? 'secondary' : this.variant\n\n\t\tif (this.variant == 'warning') {\n\t\t\tinverse = false\n\t\t\tvariant = 'secondary'\n\t\t}\n\n\t\tconst closeButton = (\n\t\t\t<div class={InfobarClass.close}>\n\t\t\t\t<gov-button size=\"s\" wcagLabel={this.wcagCloseLabel} type=\"base\" variant={variant} inverse={inverse}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}>\n\t\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t\t</gov-button>\n\t\t\t</div>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} variant={this.variant}>\n\t\t\t\t<section class={InfobarClass.section} role={this.role}>\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={InfobarClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={InfobarClass.content + (this.closable ? ' ' + InfobarClass.closable : '')}>\n\t\t\t\t\t\t{this.headline ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<p>{this.headline}</p>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\twcagLabel={this.wcagToggleLabel}\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tvariant={variant}\n\t\t\t\t\t\t\t\t\t\tinverse={inverse}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</section>\n\t\t\t\t{this.closable && closeButton}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.closable) {\n\t\t\tvalidateWcagProp(this.wcagCloseLabel, 'wcag-close-label', InfobarClass.root)\n\t\t}\n\t\tif (this.headline) {\n\t\t\tvalidateWcagProp(this.wcagToggleLabel, 'wcag-toggle-label', InfobarClass.root)\n\t\t}\n\t}\n}\n"],"mappings":"0XAIO,MAAMA,EAAkBC,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,YAGpF,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,KAAM,oBACNC,QAAS,uBACTC,SAAU,iCACVC,SAAU,wBACVC,MAAO,sBCdR,MAAMC,EAAgB,uiO,MCgBTC,EAAU,MAGtB,WAAAC,CAAAC,G,mFAawC,U,UAIKC,U,aAIT,M,oBAIqC,0B,qBAIE,0B,cAQrC,M,mBAEb,MAtCxBC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAyCvB,eAAAC,CAAgBC,GACfC,EAAatB,EAAiBqB,EAAUlB,EAAaC,K,CAGtD,iBAAAmB,GACCP,KAAKI,gBAAgBJ,KAAKQ,Q,CAG3B,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNX,KAAKY,c,EAIb,MAAAC,GACC,IAAIC,GAAWd,KAAKc,QACpB,IAAIN,EAAUR,KAAKc,QAAU,YAAcd,KAAKQ,QAEhD,GAAIR,KAAKQ,SAAW,UAAW,CAC9BM,EAAU,MACVN,EAAU,W,CAGX,MAAMO,EACLd,EAAA,OAAKe,MAAO7B,EAAaO,OACxBO,EAAA,cAAYgB,KAAK,IAAIC,UAAWlB,KAAKmB,eAAgBC,KAAK,OAAOZ,QAASA,EAASM,QAASA,EAAO,eAC/Ed,KAAKqB,eAAeC,KAAKtB,OAC5CC,EAAA,YAAUsB,KAAK,WAKlB,OACCtB,EAACuB,EAAI,CAACR,MAAOhB,KAAKC,EAAEwB,QAAQtC,EAAaC,MAAOoB,QAASR,KAAKQ,SAC7DP,EAAA,WAASe,MAAO7B,EAAaE,QAASqC,KAAM1B,KAAK0B,MAC/C1B,KAAKC,EAAE0B,QAAQ,SACf1B,EAAA,OAAKe,MAAO7B,EAAaG,MACxBW,EAAA,QAAMsB,KAAK,UAGbtB,EAAA,OAAKe,MAAO7B,EAAaI,SAAWS,KAAKR,SAAW,IAAML,EAAaK,SAAW,KAChFQ,KAAKP,SACLQ,EAAC2B,EAAQ,KACR3B,EAAA,OAAKe,MAAO7B,EAAaM,UACxBQ,EAAA,SAAID,KAAKP,UACTQ,EAAA,cACCgB,KAAK,IACLC,UAAWlB,KAAK6B,gBAChBT,KAAK,OACLZ,QAASA,EACTM,QAASA,EAAO,eACF,IAAOd,KAAK8B,eAAiB9B,KAAK8B,eAEhD7B,EAAA,YAAUsB,KAAMvB,KAAK8B,cAAgB,aAAe,mBAGtD7B,EAAA,OAAK8B,QAAS/B,KAAK8B,cAAa,cAAeE,EAAWhC,KAAK8B,gBAC9D7B,EAAA,eAIFA,EAAA,eAIFD,KAAKR,UAAYuB,E,CAKrB,cAAAM,CAAeY,GACdjC,KAAKkC,SAASC,KAAK,CAClBC,UAAWjD,EAAaC,KACxBiD,IAAKrC,KAAKG,KACVmC,cAAeL,G,CAQjB,kBAAMrB,GACL,GAAIZ,KAAKR,SAAU,CAClB+C,EAAiBvC,KAAKmB,eAAgB,mBAAoBhC,EAAaC,K,CAExE,GAAIY,KAAKP,SAAU,CAClB8C,EAAiBvC,KAAK6B,gBAAiB,oBAAqB1C,EAAaC,K"}
@@ -1,2 +0,0 @@
1
- import{r as o,c as r,h as a,a as g,g as i}from"./p-5bc604a3.js";import{d as t,a as e,b as p,c as s}from"./p-3a04fb9b.js";import{g as m}from"./p-5de606f8.js";import{v as n}from"./p-dcb5fb35.js";import{t as f}from"./p-8fcc8483.js";import"./p-03990da5.js";import"./p-55500e5a.js";import"./p-7f2c9830.js";import"./p-003e6cca.js";const l='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}gov-form-group,gov-form-radio-group,gov-form-checkbox-group,.gov-form-group{position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap="2xs"],gov-form-radio-group[gap="2xs"],gov-form-checkbox-group[gap="2xs"],.gov-form-group[gap="2xs"]{gap:0.25rem}gov-form-group[gap=xs],gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-group[gap=xs]{gap:0.5rem}gov-form-group[gap=s],gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-group[gap=s]{gap:0.75rem}gov-form-group[gap=m],gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-group[gap=m]{gap:1rem}gov-form-group[gap=l],gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-group[gap=l]{gap:1.25rem}';const v=class{constructor(a){o(this,a);this.govChange=r(this,"gov-change",7);this.handleChange=o=>{o.stopPropagation();this.value=o.detail.value;this.govChange.emit({value:this.value,component:t.root})};this.gap=undefined;this.orientation="vertical";this.value=undefined;this.h=m(this.host)}validateGap(o){if(o){n(p,o,e.root)}}validateOrientation(o){if(o){n(s,o,e.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation)}componentDidRender(){f((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-radio").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=o.value===this.value}))}render(){return a(g,{gap:this.gap,class:this.h.classes(e.root),value:this.value},a("slot",null))}get host(){return i(this)}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}};v.style=l;export{v as gov_form_radio_group};
2
- //# sourceMappingURL=p-f4ef1b95.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["govFormGroupCss","GovFormRadioGroup","constructor","hostRef","this","handleChange","event","stopPropagation","value","detail","govChange","emit","component","FormRadioGroupClass","root","undefined","h","govHost","host","validateGap","newValue","validateProp","FormGroupSizes","FormGroupClass","validateOrientation","FormGroupOrientation","componentWillLoad","gap","orientation","componentDidRender","tick","rerenderComponent","querySelectorAll","forEach","element","hasAttribute","addEventListener","setAttribute","checked","render","Host","class","classes"],"sources":["../../../packages/core/src/components/gov-form/group/gov-form-group.scss?tag=gov-form-radio-group","../../../packages/core/src/components/gov-form/group/gov-form-radio-group.tsx"],"sourcesContent":["$class: \".gov-form-group\";\n\ngov-form-group, gov-form-radio-group, gov-form-checkbox-group, #{$class} {\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@each $gap, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$gap}\"] {\n\t\t\tgap: get($gap, $sizes);\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {\n\tFormGroupClass,\n\tFormGroupOrientation,\n\tFormGroupOrientationType,\n\tFormGroupSizes,\n\tFormGroupSizesType,\n\tFormRadioGroupClass\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormRadioEvent} from \"../radio/gov-form-radio.types\"\nimport {FormRadioGroupEvent} from \"./gov-form-group.types\"\nimport {tick} from \"../../../utils/stencil.utils\"\n\n@Component({\n\ttag: \"gov-form-radio-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormRadioGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\t/**\n\t * Group's value\n\t */\n\t@Prop({attribute: \"value\", mutable: true}) value?: string = undefined\n\t/**\n\t * Emitted when the checkbox change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioGroupEvent>\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\t@Watch(\"orientation\")\n\tvalidateOrientation(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupOrientation, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\thandleChange = (event: CustomEvent<FormRadioEvent>) => {\n\t\tevent.stopPropagation()\n\t\tthis.value = event.detail.value\n\t\tthis.govChange.emit({\n\t\t\tvalue: this.value,\n\t\t\tcomponent: FormRadioGroupClass.root,\n\t\t})\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t\tthis.validateOrientation(this.orientation)\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.rerenderComponent())\n\t}\n\n\trerenderComponent(): void {\n\t\tthis.host.querySelectorAll('gov-form-radio').forEach((element) => {\n\t\t\tif (!element.hasAttribute('listener-attached')) {\n\t\t\t\telement.addEventListener('gov-change', this.handleChange)\n\t\t\t}\n\t\t\telement.setAttribute('listener-attached', 'true')\n\t\t\telement.checked = element.value === this.value;\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)} value={this.value}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"qUAAA,MAAMA,EAAkB,0uD,MCoBXC,EAAiB,MAG7B,WAAAC,CAAAC,G,gDAoCAC,KAAAC,aAAgBC,IACfA,EAAMC,kBACNH,KAAKI,MAAQF,EAAMG,OAAOD,MAC1BJ,KAAKM,UAAUC,KAAK,CACnBH,MAAOJ,KAAKI,MACZI,UAAWC,EAAoBC,MAC9B,E,SAlCyCC,U,iBAIc,W,WAIEA,UAf3DX,KAAKY,EAAIC,EAAQb,KAAKc,K,CAsBvB,WAAAC,CAAYC,GACX,GAAIA,EAAU,CACbC,EAAaC,EAAgBF,EAAUG,EAAeT,K,EAKxD,mBAAAU,CAAoBJ,GACnB,GAAIA,EAAU,CACbC,EAAaI,EAAsBL,EAAUG,EAAeT,K,EAa9D,iBAAAY,GACCtB,KAAKe,YAAYf,KAAKuB,KACtBvB,KAAKoB,oBAAoBpB,KAAKwB,Y,CAG/B,kBAAAC,GACCC,GAAK,IAAM1B,KAAK2B,qB,CAGjB,iBAAAA,GACC3B,KAAKc,KAAKc,iBAAiB,kBAAkBC,SAASC,IACrD,IAAKA,EAAQC,aAAa,qBAAsB,CAC/CD,EAAQE,iBAAiB,aAAchC,KAAKC,a,CAE7C6B,EAAQG,aAAa,oBAAqB,QAC1CH,EAAQI,QAAUJ,EAAQ1B,QAAUJ,KAAKI,KAAK,G,CAIhD,MAAA+B,GACC,OACCvB,EAACwB,EAAI,CAACb,IAAKvB,KAAKuB,IAAKc,MAAOrC,KAAKY,EAAE0B,QAAQnB,EAAeT,MAAON,MAAOJ,KAAKI,OAC5EQ,EAAA,a"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["govFormSwitchCss","GovFormSwitch","constructor","hostRef","this","hydrated","checkboxId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormSwitchSizes","FormSwitchClass","root","watchDisabled","passControlAttrs","passAttrToControl","size","toBoolAttr","invalid","componentWillLoad","componentDidRender","passAttrToLabel","identifier","String","required","canValidateWcagOnRender","delay","validateAccessibility","connectedCallback","render","wrapCheckbox","children","noLabel","Host","class","classes","checked","toBoolAttrIfDefined","holder","Fragment","input","id","type","value","name","disabled","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","wcagDescribedBy","wcagLabelledBy","indicator","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef","validateWcagRef","validateWcagLabelFor"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.scss?tag=gov-form-switch","../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["/*\n * Switch\n */\n\n$class: \".gov-form-switch\";\n$indicator-ratio: calc(5 / 3);\n\n#{$class} {\n\tposition: relative;\n\tdisplay: flex;\n\t&__holder {\n\t\tdisplay: inline-flex;\n\t}\n\t&__input {\n\t\tposition: relative;\n\t\tz-index: 1;\n\t\tappearance: none;\n\t\tcursor: pointer;\n\t\tflex-shrink: 0;\n\t}\n\t.gov-form-label__label {\n\t\tposition: relative;\n\t\tz-index: 1;\n\t\tmargin-bottom: 0;\n\t\tcolor: $form-switch-color;\n\t}\n\t&__indicator {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tborder: $form-switch-indicator-border;\n\t\tbackground-color: $form-switch-indicator-bg;\n\t\ttransition: $t linear background-color;\n\t\t&::before {\n\t\t\t@include pseudo();\n\t\t\tborder-radius: 50%;\n\t\t\tbackground-color: $form-switch-indicator-circle-bg;\n\t\t\ttransition: $t linear left;\n\t\t\tbox-shadow: $form-switch-indicator-circle-box-shadow;\n\t\t}\n\t}\n\n\t// STATES\n\t// focus\n\t&__input:focus-visible ~ &__indicator {\n\t\toutline: $outline;\n\t}\n\t// checked\n\t&__input:checked + &__indicator {\n\t\tborder-color: $form-switch-indicator-bg-checked;\n\t\tbackground-color: $form-switch-indicator-bg-checked;\n\t}\n\n\t// disabled\n\t@include parameter(\"disabled\") {\n\t\tpointer-events: none;\n\t\t.gov-form-label__label {\n\t\t\tcolor: $form-state-color-disabled;\n\t\t}\n\t\t#{$class} {\n\t\t\t&__indicator {\n\t\t\t\t&::before {\n\t\t\t\t\tbackground: $form-state-bg-input-disabled;\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__input:checked + #{$class}__indicator {\n\t\t\t\tborder-color: $form-state-bg-disabled;\n\t\t\t\tbackground-color: $form-state-bg-disabled;\n\t\t\t}\n\t\t}\n\t}\n\n\t// invalid\n\t@include parameter(\"invalid\") {\n\t\t.gov-form-label__label {\n\t\t\tcolor: $form-state-color-error;\n\t\t}\n\t\t#{$class} {\n\t\t\t&__indicator {\n\t\t\t\tborder-color: $form-state-color-error;\n\t\t\t}\n\t\t\t&__input:checked + #{$class}__indicator {\n\t\t\t\tbackground-color: $form-state-color-error;\n\t\t\t}\n\t\t}\n\t}\n\n\t// sizes\n\t@each $size, $definitions in $form-switch-sizes {\n\t\t$indicator-width: calc(get(\"indicator-height\", $definitions) * $indicator-ratio);\n\t\t$indicator-height: get(\"indicator-height\", $definitions);\n\t\t$border-offset: calc(get(\"toggle-offset\", $definitions) - rem-calc(1));\n\n\t\t&[size=\"#{$size}\"] {\n\t\t\t.gov-form-label__label {\n\t\t\t\t@include typography($size);\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t\t#{$class} {\n\t\t\t\t&__holder {\n\t\t\t\t\tgap: get(\"gap\", $definitions);\n\t\t\t\t}\n\t\t\t\t&__input {\n\t\t\t\t\twidth: $indicator-width;\n\t\t\t\t\theight: $indicator-height;\n\t\t\t\t}\n\t\t\t\t&__indicator {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\twidth: $indicator-width;\n\t\t\t\t\theight: $indicator-height;\n\t\t\t\t\tborder-radius: calc($indicator-height * 0.5);\n\t\t\t\t\t&::before {\n\t\t\t\t\t\ttop: $border-offset;\n\t\t\t\t\t\tleft: $border-offset;\n\t\t\t\t\t\twidth: calc($indicator-height - (2 * get(\"toggle-offset\", $definitions)));\n\t\t\t\t\t\theight: calc($indicator-height - (2 * get(\"toggle-offset\", $definitions)));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// STATES\n\t\t\t\t&__input[aria-checked] + #{$class}__indicator {\n\t\t\t\t\t&::before {\n\t\t\t\t\t\tleft: calc($indicator-width - $indicator-height + $border-offset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\t#{$class}__input {\n\t\t\t\t\twidth: $indicator-width;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { createID } from \"../../../utils/string.utils\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { FormSwitchClass, FormSwitchSizes, FormSwitchSizesType } from \"./constants\"\nimport { govHost, toBoolAttr, toBoolAttrIfDefined } from \"../../../helpers/Dom/template\"\nimport { validateWcagLabelFor, validateWcagRef } from \"../../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { delay } from \"../../../utils/utils\"\nimport { GovForm } from \"../../../helpers/Dom/form.types\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govForm } from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport { FormSwitchEvent } from \"./gov-form-switch.types\"\n\n@Component({\n\ttag: \"gov-form-switch\",\n\tstyleUrl: \"gov-form-switch.scss\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({ attribute: \"no-label\" }) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({ reflect: true, mutable: true }) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t * This prevents users from being able to interact with the switch, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({ attribute: \"wcag-described-by\" }) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({ eventName: \"gov-focus\" }) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({ eventName: \"gov-blur\" }) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} hydrated={this.hydrated} checked={this.checked} size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t<div class={FormSwitchClass.holder}>\n\t\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}></span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</Fragment>,\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormSwitchClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormSwitchClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.checkboxId, this.wcagLabelledBy, FormSwitchClass.root)\n\t}\n}\n"],"mappings":"mhBAAA,MAAMA,EAAmB,stU,MCkBZC,EAAa,MAQzB,WAAAC,CAAAC,G,sHAFQC,KAAAC,SAAW,M,kCAiB0C,M,aAIX,M,cAKb,M,cAKA,M,8BAQS,I,8GApC7CD,KAAKE,WAAaC,EAAS,eAE3BH,KAAKI,EAAIC,EAAQL,KAAKM,MACtBN,KAAKO,EAAIC,EAAQR,KAAKI,E,CAgEvB,YAAAK,CAAaC,GACZC,EAAaC,EAAiBF,EAAUG,EAAgBC,K,CAMzD,aAAAC,GACCf,KAAKgB,kB,CAGE,gBAAAA,GACPhB,KAAKO,EAAEU,kBAAkB,OAAQjB,KAAKkB,MACtClB,KAAKO,EAAEU,kBAAkB,UAAWE,EAAWnB,KAAKoB,UACpDpB,KAAKO,EAAEU,kBAAkB,OAAQ,S,CAGlC,iBAAAI,GACCrB,KAAKgB,kB,CAGN,wBAAMM,GACLtB,KAAKO,EAAEgB,gBAAgB,aAAcvB,KAAKwB,YAAcxB,KAAKE,YAC7DF,KAAKO,EAAEgB,gBAAgB,WAAYE,OAAOzB,KAAK0B,WAC/C,GAAIC,IAA2B,OACxBC,EAAM,WACN5B,KAAK6B,c,EAIb,iBAAAC,GACC9B,KAAKC,SAAW,I,CAGjB,MAAA8B,GACC,MAAMC,EAAgBC,IACrB,GAAIjC,KAAKkC,QAAS,CACjB,OACC9B,EAAA,aACE6B,E,CAIJ,OAAOA,CAAQ,EAGhB,OACC7B,EAAC+B,EAAI,CAACC,MAAOpC,KAAKI,EAAEiC,QAAQxB,EAAgBC,MAAOb,SAAUD,KAAKC,SAAUqC,QAAStC,KAAKsC,QAASpB,KAAMlB,KAAKkB,KAAME,QAASmB,EAAoBvC,KAAKoB,UACrJhB,EAAA,OAAKgC,MAAOvB,EAAgB2B,QAC1BR,EACA5B,EAACqC,EAAQ,KACRrC,EAAA,SACCgC,MAAOvB,EAAgB6B,MACvBC,GAAI3C,KAAKwB,YAAcxB,KAAKE,WAC5B0C,KAAK,WACLC,MAAO7C,KAAK6C,MACZC,KAAM9C,KAAK8C,KACXC,SAAU/C,KAAK+C,SACfT,QAAStC,KAAKsC,QACdU,QAAShD,KAAKiD,eAAeC,KAAKlD,MAClCmD,SAAUnD,KAAKoD,gBAAgBF,KAAKlD,MACpCqD,QAASrD,KAAKsD,eAAeJ,KAAKlD,MAClCuD,OAAQvD,KAAKwD,cAAcN,KAAKlD,MAChCyD,IAAKC,GAAO1D,KAAK2D,SAAWD,EAC5BhC,SAAU1B,KAAK0B,SAAQ,eACT1B,KAAKsC,QAAO,gBACXC,EAAoBvC,KAAK0B,UAAS,eACnCa,EAAoBvC,KAAKoB,SAAQ,mBAC7BpB,KAAK4D,gBAAe,kBACrB5D,KAAK6D,eAAc,gBACrBtB,EAAoBvC,KAAK+C,YAEzC3C,EAAA,QAAMgC,MAAOvB,EAAgBiD,YAC7B1D,EAAA,QAAM0C,KAAK,a,CAQT,cAAAG,CAAec,GACtBA,EAAEC,iB,CAGK,cAAAV,CAAeS,GACtBA,EAAEC,kBACFhE,KAAKiE,SAASC,KAAK,CAClBC,UAAWtD,EAAgBC,KAC3BwB,QAAStC,KAAKsC,QACdO,MAAO7C,KAAK6C,MACZuB,cAAeL,G,CAIT,aAAAP,CAAcO,GACrBA,EAAEC,kBACFhE,KAAKqE,QAAQH,KAAK,CACjBC,UAAWtD,EAAgBC,KAC3BwB,QAAStC,KAAKsC,QACdO,MAAO7C,KAAK6C,MACZuB,cAAeL,G,CAIT,eAAAX,CAAgBW,GACvB/D,KAAKsC,QAAWyB,EAAEO,OAA4BhC,QAC9CyB,EAAEC,kBACFhE,KAAKuE,UAAUL,KAAK,CACnBC,UAAWtD,EAAgBC,KAC3BwB,QAAStC,KAAKsC,QACdO,MAAO7C,KAAK6C,MACZuB,cAAeL,G,CAQjB,YAAMS,GACL,OAAOxE,KAAK2D,Q,CAOb,kBAAM9B,GACL4C,EAAgBzE,KAAK4D,gBAAiB,oBAAqB/C,EAAgBC,MAC3E2D,EAAgBzE,KAAK6D,eAAgB,mBAAoBhD,EAAgBC,MACzE4D,EAAqB1E,KAAKwB,YAAcxB,KAAKE,WAAYF,KAAK6D,eAAgBhD,EAAgBC,K"}
@@ -1,2 +0,0 @@
1
- import{V as t}from"./p-ff7365ae.js";import{p as o}from"./p-03990da5.js";const a=o(t,["PRIMARY","SECONDARY","SUCCESS","ERROR","WARNING"]);var s;(function(t){t["TEXT"]="text";t["CHIP"]="chip"})(s||(s={}));var i;(function(t){t["HORIZONTAL"]="horizontal";t["VERTICAL"]="vertical"})(i||(i={}));const n={root:"gov-tabs",tabs:"gov-tabs__tabs",list:"gov-tabs__list",item:"gov-tabs__item",btn:"gov-tabs__btn"};const r={root:"gov-tabs-item",inner:"gov-tabs-item__inner"};export{r as T,n as a,s as b,a as c};
2
- //# sourceMappingURL=p-fa1e4aea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["EmptyClass","root","icon","container","content","govEmptyCss","GovEmpty","constructor","hostRef","this","h","govHost","host","render","Host","class","classes","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-empty/constants.ts","../../../packages/core/src/components/gov-empty/gov-empty.scss?tag=gov-empty","../../../packages/core/src/components/gov-empty/gov-empty.tsx"],"sourcesContent":["export const EmptyClass = {\n\troot: 'gov-empty',\n\ticon: 'gov-empty__icon',\n\tcontainer: 'gov-empty__container',\n\tcontent: 'gov-empty__content',\n}\n","/*\n * Alert\n */\n\n$class: \".gov-empty\";\n\n#{$class} {\n\t@include base();\n\t&__icon {\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: rem-calc(96);\n\t\theight: rem-calc(96);\n\t\tmargin-bottom: calc(rem-calc(96) / 3);\n\t\tborder-radius: 50%;\n\t\tbackground: $empty-icon-circle-bg;\n\t\tcolor: $empty-icon-color;\n\t\t& > * {\n\t\t\twidth: rem-calc(56);\n\t\t\theight: rem-calc(56);\n\t\t}\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t}\n}\n","import { Component, Element, Host, h } from '@stencil/core'\nimport { EmptyClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-empty',\n\tstyleUrl: 'gov-empty.scss',\n})\nexport class GovEmpty {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovEmptyElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(EmptyClass.root)}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<div class={EmptyClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t<div class={EmptyClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"6FAAO,MAAMA,EAAa,CACzBC,KAAM,YACNC,KAAM,kBACNC,UAAW,uBACXC,QAAS,sBCJV,MAAMC,EAAc,0zB,MCSPC,EAAQ,MAGpB,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQhB,EAAWC,OACrCQ,KAAKC,EAAEO,QAAQ,SACfP,EAAA,OAAKK,MAAOf,EAAWE,MACtBQ,EAAA,QAAMQ,KAAK,UAGbR,EAAA,OAAKK,MAAOf,EAAWI,SACtBM,EAAA,c"}
@@ -1,3 +0,0 @@
1
- import{r as t,h as a,a as e,g as s}from"./p-5bc604a3.js";import{N as i}from"./p-a6d14a47.js";import{v as o}from"./p-7724b535.js";import{c as n}from"./p-003e6cca.js";import{d as r}from"./p-03990da5.js";import"./p-7f2c9830.js";import"./p-24636c53.js";const p=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-nav{position:relative;display:block;width:100%;font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);background:var(--gov-nav-bg, var(--gov-color-primary));font-weight:bold;letter-spacing:0.0125em;text-transform:uppercase}@media (min-width: 48em){.gov-nav{text-align:center}.gov-nav__nav{display:flex;justify-content:space-between}}";const c=class{constructor(a){t(this,a);this.wcagLabel=undefined;this.wcagLabelledBy=undefined}async componentDidRender(){if(n()){await r(500);await this.validateAccessibility()}}render(){return a(e,{class:i.root},a("nav",{class:i.nav,role:"list","arial-label":this.wcagLabel,"arial-labelledby":this.wcagLabelledBy},a("slot",null)))}async validateAccessibility(){o(this.wcagLabel,this.wcagLabelledBy,i.root)}get host(){return s(this)}};c.style=p;export{c as gov_nav};
2
-
3
- //# sourceMappingURL=p-ff3323bd.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["govNavCss","GovNav","componentDidRender","canValidateWcagOnRender","delay","this","validateAccessibility","render","h","Host","class","NavClass","root","nav","role","wcagLabel","wcagLabelledBy","validateAccessibleLabel"],"sources":["../../../packages/core/src/components/gov-nav/gov-nav.scss?tag=gov-nav","../../../packages/core/src/components/gov-nav/gov-nav.tsx"],"sourcesContent":["/*\n * Nav\n */\n\n$class: \".gov-nav\";\n\n#{$class} {\n\t@include base();\n\t@include typography($font-size-s);\n\tbackground: $nav-bg;\n\tfont-weight: bold;\n\tletter-spacing: 0.0125em;\n\ttext-transform: uppercase;\n\n\t// MQ\n\t@include mq($from: md) {\n\t\ttext-align: center;\n\t\t&__nav {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: space-between;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { NavClass } from './constants'\nimport { validateAccessibleLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\n\n@Component({\n\ttag: 'gov-nav',\n\tstyleUrl: 'gov-nav.scss',\n})\nexport class GovNav {\n\t@Element() readonly host: HTMLGovNavElement\n\n\t/**\n\t * Adds accessible label for the accordion that is only shown for screen readers.\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\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={NavClass.root}>\n\t\t\t\t<nav class={NavClass.nav} role={'list'} arial-label={this.wcagLabel} arial-labelledby={this.wcagLabelledBy}>\n\t\t\t\t\t<slot />\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, NavClass.root)\n\t}\n}\n"],"mappings":"yPAAA,MAAMA,EAAY,8xB,MCULC,EAAM,M,gFAYlB,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNC,KAAKC,c,EAIb,MAAAC,GACC,OACCC,EAACC,EAAI,CAACC,MAAOC,EAASC,MACrBJ,EAAA,OAAKE,MAAOC,EAASE,IAAKC,KAAM,OAAM,cAAeT,KAAKU,UAAS,mBAAoBV,KAAKW,gBAC3FR,EAAA,c,CAUJ,kBAAMF,GACLW,EAAkBZ,KAAKU,UAAWV,KAAKW,eAAgBL,EAASC,K"}
@@ -1,43 +0,0 @@
1
- const is = (value) => value !== undefined && value !== null;
2
- const isObject = (obj) => typeof obj === 'object';
3
- const isString = (input) => is(input) && typeof input === 'string';
4
-
5
- const parseJSONString = (value) => {
6
- if (isString(value) && value.length) {
7
- try {
8
- console.log(value);
9
- const parsed = JSON.parse(value);
10
- if (Array.isArray(parsed) || isObject(parsed)) {
11
- return parsed;
12
- }
13
- }
14
- catch (e) {
15
- console.log(e);
16
- return null;
17
- }
18
- }
19
- return null;
20
- };
21
-
22
- const createArrayRange = (from, to) => {
23
- if (Number.isInteger(from) && Number.isInteger(to)) {
24
- return [...Array(to + 1).keys()].slice(from);
25
- }
26
- return [];
27
- };
28
- const propsValueToArray = (value) => {
29
- if (Array.isArray(value)) {
30
- return value;
31
- }
32
- else if (isString(value)) {
33
- const parsed = parseJSONString(value);
34
- if (Array.isArray(parsed)) {
35
- return parsed;
36
- }
37
- }
38
- return [];
39
- };
40
-
41
- export { createArrayRange as c, propsValueToArray as p };
42
-
43
- //# sourceMappingURL=array.utils-b27436ea.js.map