@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,3 +1,2 @@
1
- import{r as o,c as i,h as r,a as t,g as e}from"./p-5bc604a3.js";import{c as s}from"./p-24636c53.js";import{v as c}from"./p-dcb5fb35.js";import{g as a,i as h,j as g}from"./p-61a2b12a.js";import{g as v,a as m,t as l}from"./p-5de606f8.js";import{a as f,b as n}from"./p-7724b535.js";import{c as d}from"./p-003e6cca.js";import{d as w}from"./p-03990da5.js";import{F as b}from"./p-1c1d0bbe.js";import"./p-7f2c9830.js";import"./p-55500e5a.js";import"./p-ff7365ae.js";import"./p-6278531b.js";import"./p-9dab01be.js";import"./p-3464136c.js";const _='.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-switch{position:relative;display:flex}.gov-form-switch__holder{display:inline-flex}.gov-form-switch__input{position:relative;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;flex-shrink:0}.gov-form-switch .gov-form-label__label{position:relative;z-index:1;margin-bottom:0;color:var(--gov-form-switch-color, var(--gov-color-secondary-800))}.gov-form-switch__indicator{position:absolute;top:0;left:0;border:var(--gov-form-switch-indicator-border, 0.0625rem solid var(--gov-color-secondary-500));background-color:var(--gov-form-switch-indicator-bg, var(--gov-color-secondary-300));transition:150ms linear background-color}.gov-form-switch__indicator::before{content:"";position:absolute;display:block;border-radius:50%;background-color:var(--gov-form-switch-indicator-circle-bg, var(--gov-color-neutral-white));transition:150ms linear left;box-shadow:var(--gov-form-switch-indicator-circle-box-shadow, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.35))}.gov-form-switch__input:focus-visible~.gov-form-switch__indicator{outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base)}.gov-form-switch__input:checked+.gov-form-switch__indicator{border-color:var(--gov-form-switch-indicator-bg-checked, var(--gov-color-primary));background-color:var(--gov-form-switch-indicator-bg-checked, var(--gov-color-primary))}.gov-form-switch[disabled=""],.gov-form-switch[disabled=true i],.gov-form-switch[disabled="1"]{pointer-events:none}.gov-form-switch[disabled=""] .gov-form-label__label,.gov-form-switch[disabled=true i] .gov-form-label__label,.gov-form-switch[disabled="1"] .gov-form-label__label{color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600))}.gov-form-switch[disabled=""] .gov-form-switch__indicator::before,.gov-form-switch[disabled=true i] .gov-form-switch__indicator::before,.gov-form-switch[disabled="1"] .gov-form-switch__indicator::before{background:var(--gov-form-input-disabled-bg, var(--gov-color-secondary-300))}.gov-form-switch[disabled=""] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[disabled=true i] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[disabled="1"] .gov-form-switch__input:checked+.gov-form-switch__indicator{border-color:var(--gov-form-input-disabled-bg, var(--gov-color-primary-400));background-color:var(--gov-form-input-disabled-bg, var(--gov-color-primary-400))}.gov-form-switch[invalid=""] .gov-form-label__label,.gov-form-switch[invalid=true i] .gov-form-label__label,.gov-form-switch[invalid="1"] .gov-form-label__label{color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-switch[invalid=""] .gov-form-switch__indicator,.gov-form-switch[invalid=true i] .gov-form-switch__indicator,.gov-form-switch[invalid="1"] .gov-form-switch__indicator{border-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-switch[invalid=""] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[invalid=true i] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[invalid="1"] .gov-form-switch__input:checked+.gov-form-switch__indicator{background-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-switch[size=xs] .gov-form-label__label{font-weight:var(--gov-text-xs-font-weight);font-size:var(--gov-text-xs-font-size);line-height:var(--gov-text-xs-line-height);letter-spacing:var(--gov-text-xs-letter-spacing);margin-bottom:0}.gov-form-switch[size=xs] .gov-form-switch__holder{gap:var(--gov-form-switch-xs-gap, 0.75rem)}.gov-form-switch[size=xs] .gov-form-switch__input{width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667);height:var(--gov-form-switch-xs-indicator-height, 1.25rem)}.gov-form-switch[size=xs] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667);height:var(--gov-form-switch-xs-indicator-height, 1.25rem);border-radius:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 0.5)}.gov-form-switch[size=xs] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-xs-toggle-offset, 0.051875rem) - 0.0625rem);left:calc(var(--gov-form-switch-xs-toggle-offset, 0.051875rem) - 0.0625rem);width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) - 2 * var(--gov-form-switch-xs-toggle-offset, 0.051875rem));height:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) - 2 * var(--gov-form-switch-xs-toggle-offset, 0.051875rem))}.gov-form-switch[size=xs] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667 - var(--gov-form-switch-xs-indicator-height, 1.25rem) + var(--gov-form-switch-xs-toggle-offset, 0.051875rem) - 0.0625rem)}.gov-form-switch[size=xs] label{display:inline-flex}.gov-form-switch[size=xs] label .gov-form-switch__input{width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667)}.gov-form-switch[size=s] .gov-form-label__label{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);margin-bottom:0}.gov-form-switch[size=s] .gov-form-switch__holder{gap:var(--gov-form-switch-s-gap, 0.75rem)}.gov-form-switch[size=s] .gov-form-switch__input{width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667);height:var(--gov-form-switch-s-indicator-height, 1.375rem)}.gov-form-switch[size=s] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667);height:var(--gov-form-switch-s-indicator-height, 1.375rem);border-radius:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 0.5)}.gov-form-switch[size=s] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-s-toggle-offset, 0.0575rem) - 0.0625rem);left:calc(var(--gov-form-switch-s-toggle-offset, 0.0575rem) - 0.0625rem);width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) - 2 * var(--gov-form-switch-s-toggle-offset, 0.0575rem));height:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) - 2 * var(--gov-form-switch-s-toggle-offset, 0.0575rem))}.gov-form-switch[size=s] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667 - var(--gov-form-switch-s-indicator-height, 1.375rem) + var(--gov-form-switch-s-toggle-offset, 0.0575rem) - 0.0625rem)}.gov-form-switch[size=s] label{display:inline-flex}.gov-form-switch[size=s] label .gov-form-switch__input{width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667)}.gov-form-switch[size=m] .gov-form-label__label{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);margin-bottom:0}.gov-form-switch[size=m] .gov-form-switch__holder{gap:var(--gov-form-switch-m-gap, 1rem)}.gov-form-switch[size=m] .gov-form-switch__input{width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667);height:var(--gov-form-switch-m-indicator-height, 1.5rem)}.gov-form-switch[size=m] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667);height:var(--gov-form-switch-m-indicator-height, 1.5rem);border-radius:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 0.5)}.gov-form-switch[size=m] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-m-toggle-offset, 0.0625rem) - 0.0625rem);left:calc(var(--gov-form-switch-m-toggle-offset, 0.0625rem) - 0.0625rem);width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) - 2 * var(--gov-form-switch-m-toggle-offset, 0.0625rem));height:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) - 2 * var(--gov-form-switch-m-toggle-offset, 0.0625rem))}.gov-form-switch[size=m] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667 - var(--gov-form-switch-m-indicator-height, 1.5rem) + var(--gov-form-switch-m-toggle-offset, 0.0625rem) - 0.0625rem)}.gov-form-switch[size=m] label{display:inline-flex}.gov-form-switch[size=m] label .gov-form-switch__input{width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667)}.gov-form-switch[size=l] .gov-form-label__label{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);margin-bottom:0}.gov-form-switch[size=l] .gov-form-switch__holder{gap:var(--gov-form-switch-l-gap, 1rem)}.gov-form-switch[size=l] .gov-form-switch__input{width:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667);height:var(--gov-form-switch-l-indicator-height, 2rem)}.gov-form-switch[size=l] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667);height:var(--gov-form-switch-l-indicator-height, 2rem);border-radius:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 0.5)}.gov-form-switch[size=l] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-l-toggle-offset, 0.083125rem) - 0.0625rem);left:calc(var(--gov-form-switch-l-toggle-offset, 0.083125rem) - 0.0625rem);width:calc(var(--gov-form-switch-l-indicator-height, 2rem) - 2 * var(--gov-form-switch-l-toggle-offset, 0.083125rem));height:calc(var(--gov-form-switch-l-indicator-height, 2rem) - 2 * var(--gov-form-switch-l-toggle-offset, 0.083125rem))}.gov-form-switch[size=l] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667 - var(--gov-form-switch-l-indicator-height, 2rem) + var(--gov-form-switch-l-toggle-offset, 0.083125rem) - 0.0625rem)}.gov-form-switch[size=l] label{display:inline-flex}.gov-form-switch[size=l] label .gov-form-switch__input{width:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667)}';const p=class{constructor(r){o(this,r);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govChange=i(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.wcagDescribedBy=undefined;this.wcagLabelledBy=undefined;this.checkboxId=s("GovCheckbox");this.h=v(this.host);this.f=a(this.h)}validateSize(o){c(g,o,h.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",m(this.invalid));this.f.passAttrToControl("type","switch")}componentWillLoad(){this.passControlAttrs()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));if(d()){await w(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const o=o=>{if(this.noLabel){return r("label",null,o)}return o};return r(t,{class:this.h.classes(h.root),hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:l(this.invalid)},r("div",{class:h.holder},o(r(b,null,r("input",{class:h.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:o=>this.inputRef=o,required:this.required,"aria-checked":this.checked,"aria-required":l(this.required),"aria-invalid":l(this.invalid),"aria-describedby":this.wcagDescribedBy,"aria-labelledby":this.wcagLabelledBy,"aria-disabled":l(this.disabled)}),r("span",{class:h.indicator}),r("slot",{name:"label"})))))}onClickHandler(o){o.stopPropagation()}onFocusHandler(o){o.stopPropagation();this.govFocus.emit({component:h.root,checked:this.checked,value:this.value,originalEvent:o})}onBlurHandler(o){o.stopPropagation();this.govBlur.emit({component:h.root,checked:this.checked,value:this.value,originalEvent:o})}onChangeHandler(o){this.checked=o.target.checked;o.stopPropagation();this.govChange.emit({component:h.root,checked:this.checked,value:this.value,originalEvent:o})}async getRef(){return this.inputRef}async validateAccessibility(){f(this.wcagDescribedBy,"wcag-described-by",h.root);f(this.wcagLabelledBy,"wcag-labelled-by",h.root);n(this.identifier||this.checkboxId,this.wcagLabelledBy,h.root)}get host(){return e(this)}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}};p.style=_;export{p as gov_form_switch};
2
-
3
- //# sourceMappingURL=p-f6a4bf04.entry.js.map
1
+ import{r as o,c as i,h as r,a as t,g as e}from"./p-a6221940.js";import{c as s}from"./p-95d41a3b.js";import{v as c}from"./p-344c72d7.js";import{g as a,i as h,j as g}from"./p-c98fe646.js";import{g as v,a as m,t as l}from"./p-4191acf2.js";import{a as f,b as n}from"./p-92b7481f.js";import{c as d}from"./p-e618f1cb.js";import{d as w}from"./p-e0e2e9c1.js";import{F as b}from"./p-1c1d0bbe.js";import"./p-e296ca83.js";import"./p-92f420cb.js";import"./p-03dbb8b1.js";import"./p-f0d542f2.js";import"./p-45b869ae.js";import"./p-7ba4daf4.js";const _='.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-switch{position:relative;display:flex}.gov-form-switch__holder{display:inline-flex}.gov-form-switch__input{position:relative;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;flex-shrink:0}.gov-form-switch .gov-form-label__label{position:relative;z-index:1;margin-bottom:0;color:var(--gov-form-switch-color, var(--gov-color-secondary-800))}.gov-form-switch__indicator{position:absolute;top:0;left:0;border:var(--gov-form-switch-indicator-border, 0.0625rem solid var(--gov-color-secondary-500));background-color:var(--gov-form-switch-indicator-bg, var(--gov-color-secondary-300));transition:150ms linear background-color}.gov-form-switch__indicator::before{content:"";position:absolute;display:block;border-radius:50%;background-color:var(--gov-form-switch-indicator-circle-bg, var(--gov-color-neutral-white));transition:150ms linear left;box-shadow:var(--gov-form-switch-indicator-circle-box-shadow, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.35))}.gov-form-switch__input:focus-visible~.gov-form-switch__indicator{outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base)}.gov-form-switch__input:checked+.gov-form-switch__indicator{border-color:var(--gov-form-switch-indicator-bg-checked, var(--gov-color-primary));background-color:var(--gov-form-switch-indicator-bg-checked, var(--gov-color-primary))}.gov-form-switch[disabled=""],.gov-form-switch[disabled=true i],.gov-form-switch[disabled="1"]{pointer-events:none}.gov-form-switch[disabled=""] .gov-form-label__label,.gov-form-switch[disabled=true i] .gov-form-label__label,.gov-form-switch[disabled="1"] .gov-form-label__label{color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600))}.gov-form-switch[disabled=""] .gov-form-switch__indicator::before,.gov-form-switch[disabled=true i] .gov-form-switch__indicator::before,.gov-form-switch[disabled="1"] .gov-form-switch__indicator::before{background:var(--gov-form-input-disabled-bg, var(--gov-color-secondary-300))}.gov-form-switch[disabled=""] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[disabled=true i] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[disabled="1"] .gov-form-switch__input:checked+.gov-form-switch__indicator{border-color:var(--gov-form-input-disabled-bg, var(--gov-color-primary-400));background-color:var(--gov-form-input-disabled-bg, var(--gov-color-primary-400))}.gov-form-switch[invalid=""] .gov-form-label__label,.gov-form-switch[invalid=true i] .gov-form-label__label,.gov-form-switch[invalid="1"] .gov-form-label__label{color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-switch[invalid=""] .gov-form-switch__indicator,.gov-form-switch[invalid=true i] .gov-form-switch__indicator,.gov-form-switch[invalid="1"] .gov-form-switch__indicator{border-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-switch[invalid=""] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[invalid=true i] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[invalid="1"] .gov-form-switch__input:checked+.gov-form-switch__indicator{background-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-switch[size=xs] .gov-form-label__label{font-weight:var(--gov-text-xs-font-weight);font-size:var(--gov-text-xs-font-size);line-height:var(--gov-text-xs-line-height);letter-spacing:var(--gov-text-xs-letter-spacing);margin-bottom:0}.gov-form-switch[size=xs] .gov-form-switch__holder{gap:var(--gov-form-switch-xs-gap, 0.75rem)}.gov-form-switch[size=xs] .gov-form-switch__input{width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667);height:var(--gov-form-switch-xs-indicator-height, 1.25rem)}.gov-form-switch[size=xs] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667);height:var(--gov-form-switch-xs-indicator-height, 1.25rem);border-radius:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 0.5)}.gov-form-switch[size=xs] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-xs-toggle-offset, 0.051875rem) - 0.0625rem);left:calc(var(--gov-form-switch-xs-toggle-offset, 0.051875rem) - 0.0625rem);width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) - 2 * var(--gov-form-switch-xs-toggle-offset, 0.051875rem));height:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) - 2 * var(--gov-form-switch-xs-toggle-offset, 0.051875rem))}.gov-form-switch[size=xs] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667 - var(--gov-form-switch-xs-indicator-height, 1.25rem) + var(--gov-form-switch-xs-toggle-offset, 0.051875rem) - 0.0625rem)}.gov-form-switch[size=xs] label{display:inline-flex}.gov-form-switch[size=xs] label .gov-form-switch__input{width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667)}.gov-form-switch[size=s] .gov-form-label__label{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);margin-bottom:0}.gov-form-switch[size=s] .gov-form-switch__holder{gap:var(--gov-form-switch-s-gap, 0.75rem)}.gov-form-switch[size=s] .gov-form-switch__input{width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667);height:var(--gov-form-switch-s-indicator-height, 1.375rem)}.gov-form-switch[size=s] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667);height:var(--gov-form-switch-s-indicator-height, 1.375rem);border-radius:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 0.5)}.gov-form-switch[size=s] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-s-toggle-offset, 0.0575rem) - 0.0625rem);left:calc(var(--gov-form-switch-s-toggle-offset, 0.0575rem) - 0.0625rem);width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) - 2 * var(--gov-form-switch-s-toggle-offset, 0.0575rem));height:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) - 2 * var(--gov-form-switch-s-toggle-offset, 0.0575rem))}.gov-form-switch[size=s] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667 - var(--gov-form-switch-s-indicator-height, 1.375rem) + var(--gov-form-switch-s-toggle-offset, 0.0575rem) - 0.0625rem)}.gov-form-switch[size=s] label{display:inline-flex}.gov-form-switch[size=s] label .gov-form-switch__input{width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667)}.gov-form-switch[size=m] .gov-form-label__label{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);margin-bottom:0}.gov-form-switch[size=m] .gov-form-switch__holder{gap:var(--gov-form-switch-m-gap, 1rem)}.gov-form-switch[size=m] .gov-form-switch__input{width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667);height:var(--gov-form-switch-m-indicator-height, 1.5rem)}.gov-form-switch[size=m] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667);height:var(--gov-form-switch-m-indicator-height, 1.5rem);border-radius:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 0.5)}.gov-form-switch[size=m] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-m-toggle-offset, 0.0625rem) - 0.0625rem);left:calc(var(--gov-form-switch-m-toggle-offset, 0.0625rem) - 0.0625rem);width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) - 2 * var(--gov-form-switch-m-toggle-offset, 0.0625rem));height:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) - 2 * var(--gov-form-switch-m-toggle-offset, 0.0625rem))}.gov-form-switch[size=m] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667 - var(--gov-form-switch-m-indicator-height, 1.5rem) + var(--gov-form-switch-m-toggle-offset, 0.0625rem) - 0.0625rem)}.gov-form-switch[size=m] label{display:inline-flex}.gov-form-switch[size=m] label .gov-form-switch__input{width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667)}.gov-form-switch[size=l] .gov-form-label__label{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);margin-bottom:0}.gov-form-switch[size=l] .gov-form-switch__holder{gap:var(--gov-form-switch-l-gap, 1rem)}.gov-form-switch[size=l] .gov-form-switch__input{width:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667);height:var(--gov-form-switch-l-indicator-height, 2rem)}.gov-form-switch[size=l] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667);height:var(--gov-form-switch-l-indicator-height, 2rem);border-radius:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 0.5)}.gov-form-switch[size=l] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-l-toggle-offset, 0.083125rem) - 0.0625rem);left:calc(var(--gov-form-switch-l-toggle-offset, 0.083125rem) - 0.0625rem);width:calc(var(--gov-form-switch-l-indicator-height, 2rem) - 2 * var(--gov-form-switch-l-toggle-offset, 0.083125rem));height:calc(var(--gov-form-switch-l-indicator-height, 2rem) - 2 * var(--gov-form-switch-l-toggle-offset, 0.083125rem))}.gov-form-switch[size=l] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667 - var(--gov-form-switch-l-indicator-height, 2rem) + var(--gov-form-switch-l-toggle-offset, 0.083125rem) - 0.0625rem)}.gov-form-switch[size=l] label{display:inline-flex}.gov-form-switch[size=l] label .gov-form-switch__input{width:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667)}';const p=_;const u=class{constructor(r){o(this,r);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govChange=i(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.wcagDescribedBy=undefined;this.wcagLabelledBy=undefined;this.checkboxId=s("GovCheckbox");this.h=v(this.host);this.f=a(this.h)}validateSize(o){c(g,o,h.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",m(this.invalid));this.f.passAttrToControl("type","switch")}componentWillLoad(){this.passControlAttrs()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));if(d()){await w(500);await this.validateWcag()}}connectedCallback(){this.hydrated=true}render(){const o=o=>{if(this.noLabel){return r("label",null,o)}return o};return r(t,{class:this.h.classes(h.root),hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:l(this.invalid)},r("div",{class:h.holder},o(r(b,null,r("input",{class:h.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:o=>this.inputRef=o,required:this.required,"aria-checked":this.checked,"aria-required":l(this.required),"aria-invalid":l(this.invalid),"aria-describedby":this.wcagDescribedBy,"aria-labelledby":this.wcagLabelledBy,"aria-disabled":l(this.disabled)}),r("span",{class:h.indicator}),r("slot",{name:"label"})))))}onClickHandler(o){o.stopPropagation()}onFocusHandler(o){o.stopPropagation();this.govFocus.emit({component:h.root,checked:this.checked,value:this.value,originalEvent:o})}onBlurHandler(o){o.stopPropagation();this.govBlur.emit({component:h.root,checked:this.checked,value:this.value,originalEvent:o})}onChangeHandler(o){this.checked=o.target.checked;o.stopPropagation();this.govChange.emit({component:h.root,checked:this.checked,value:this.value,originalEvent:o})}async getRef(){return this.inputRef}async validateWcag(){f(this.wcagDescribedBy,"wcag-described-by",h.root);f(this.wcagLabelledBy,"wcag-labelled-by",h.root);n(this.identifier||this.checkboxId,this.wcagLabelledBy,h.root)}get host(){return e(this)}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}};u.style=p;export{u as gov_form_switch};
2
+ //# sourceMappingURL=p-680c0fee.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govFormSwitchCss","GovFormSwitchStyle0","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","validateWcag","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.validateWcag()\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 validateWcag(): 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,stUACzB,MAAAC,EAAeD,E,MCiBFE,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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{p as o}from"./p-e0e2e9c1.js";import{S as e}from"./p-92f420cb.js";o(e,["_XS","_S","_M","_L","_XL"]);const l={root:"gov-form-label",label:"gov-form-label__label"};export{l as F};
2
+ //# sourceMappingURL=p-7ba4daf4.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pick","Sizes","FormLabelClass","root","label"],"sources":["../../../packages/core/src/components/gov-form/label/constants.ts"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\nimport { Sizes } from \"../../../core/constants/sizes\"\nimport { ValueOf } from \"../../../types/interfaces\"\n\nexport const FormLabelSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type FormLabelSizesTypes = `${ValueOf<typeof FormLabelSizes>}`\n\nexport const FormLabelClass = {\n\troot: 'gov-form-label',\n\tlabel: 'gov-form-label__label',\n}\n"],"mappings":"wEAI8BA,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,Q,MAGvDC,EAAiB,CAC7BC,KAAM,iBACNC,MAAO,gC"}
1
+ {"version":3,"names":["pick","Sizes","FormLabelClass","root","label"],"sources":["../../../packages/core/src/components/gov-form/label/constants.ts"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\nimport { Sizes } from \"../../../core/constants/sizes\"\nimport { ValueOf } from \"../../../types/interfaces\"\n\nexport const FormLabelSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type FormLabelSizesTypes = `${ValueOf<typeof FormLabelSizes>}`\n\nexport const FormLabelClass = {\n\troot: 'gov-form-label',\n\tlabel: 'gov-form-label__label',\n}\n"],"mappings":"wEAI8BA,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,Q,MAGvDC,EAAiB,CAC7BC,KAAM,iBACNC,MAAO,gC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as o,h as t,a as i,g as e}from"./p-5bc604a3.js";import{g as r}from"./p-5de606f8.js";const n={root:"gov-empty",icon:"gov-empty__icon",container:"gov-empty__container",content:"gov-empty__content"};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-empty{position:relative;display:block;width:100%}.gov-empty__icon{display:inline-flex;justify-content:center;align-items:center;width:6rem;height:6rem;margin-bottom:2rem;border-radius:50%;background:var(--gov-empty-icon-circle-bg, linear-gradient(to bottom, var(--gov-color-primary-200), var(--gov-color-neutral-white)));color:var(--gov-empty-icon-color, var(--gov-color-primary))}.gov-empty__icon>*{width:3.5rem;height:3.5rem}.gov-empty__content>*:last-child{margin-bottom:0}";const s=class{constructor(t){o(this,t);this.h=r(this.host)}render(){return t(i,{class:this.h.classes(n.root)},this.h.hasSlot("icon")&&t("div",{class:n.icon},t("slot",{name:"icon"})),t("div",{class:n.content},t("slot",null)))}get host(){return e(this)}};s.style=a;export{s as gov_empty};
2
- //# sourceMappingURL=p-fc710edb.entry.js.map
1
+ import{r as o,h as e,a as t,g as a}from"./p-a6221940.js";import{g as i}from"./p-4191acf2.js";const r={root:"gov-empty",icon:"gov-empty__icon",container:"gov-empty__container",content:"gov-empty__content"};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-empty{position:relative;display:block;width:100%}.gov-empty__icon{display:inline-flex;justify-content:center;align-items:center;width:6rem;height:6rem;margin-bottom:2rem;border-radius:50%;background:var(--gov-empty-icon-circle-bg, linear-gradient(to bottom, var(--gov-color-primary-200), var(--gov-color-neutral-white)));color:var(--gov-empty-icon-color, var(--gov-color-primary))}.gov-empty__icon>*{width:3.5rem;height:3.5rem}.gov-empty__content>*:last-child{margin-bottom:0}";const c=n;const s=class{constructor(e){o(this,e);this.h=i(this.host)}render(){return e(t,{key:"c82d19938b561c87b71dddd89fdac22a441a7694",class:this.h.classes(r.root)},this.h.hasSlot("icon")&&e("div",{key:"216a756eaaeef5032b60c0b11e2e8e751aedda5b",class:r.icon},e("slot",{key:"980a0e840474c32d27590ac5640476e0e192209c",name:"icon"})),e("div",{key:"a3e1275bf59225caa12e631c65cbed51c08d6ddc",class:r.content},e("slot",{key:"cd1a2407f415c6f826f81f8592677308cb8776a5"})))}get host(){return a(this)}};s.style=c;export{s as gov_empty};
2
+ //# sourceMappingURL=p-7eeb23c5.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["EmptyClass","root","icon","container","content","govEmptyCss","GovEmptyStyle0","GovEmpty","constructor","hostRef","this","h","govHost","host","render","Host","key","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,0zBACpB,MAAAC,EAAeD,E,MCQFE,EAAQ,MAGpB,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQlB,EAAWC,OACrCS,KAAKC,EAAEQ,QAAQ,SACfR,EAAA,OAAAK,IAAA,2CAAKC,MAAOjB,EAAWE,MACtBS,EAAA,QAAAK,IAAA,2CAAMI,KAAK,UAGbT,EAAA,OAAAK,IAAA,2CAAKC,MAAOjB,EAAWI,SACtBO,EAAA,QAAAK,IAAA,8C","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as o,c as a,h as e,a as t,g as i}from"./p-a6221940.js";import{g as d,a as r}from"./p-4191acf2.js";import{c as s}from"./p-e618f1cb.js";import{a as l}from"./p-e296ca83.js";import{a as n}from"./p-92b7481f.js";import{c as m}from"./p-95d41a3b.js";import{d as c}from"./p-e0e2e9c1.js";import{M as g}from"./p-0134b442.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-modal{display:none}.gov-modal__dialog{z-index:101;position:fixed;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:100%;max-width:var(--gov-modal-max-width, 52.5rem);height:100%;padding:0.5rem;border:none;background:transparent;transform:translate(-50%, -50%);pointer-events:none}.gov-modal__inner{position:relative;display:flex;flex-direction:column;width:100%;max-height:100%;border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-modal-bg, var(--gov-color-neutral-white));overflow:hidden;pointer-events:auto;box-shadow:0 0 1.5rem rgba(var(--gov-color-secondary-800-rgb), 0.24)}.gov-modal__header{display:flex;gap:1rem;align-items:flex-start;padding:1.5rem 1rem;border-bottom:var(--gov-modal-border-color, 0.0625rem solid var(--gov-color-secondary-500))}.gov-modal__icon{flex:0 0 auto;padding-top:calc((var(--gov-text-3xl-font-size) * 1.5 - 1.5rem) / 2)}.gov-modal__icon>*{width:1.5rem;height:1.5rem}.gov-modal__title{font-weight:var(--gov-text-3xl-font-weight);font-size:var(--gov-text-3xl-font-size);line-height:var(--gov-text-3xl-line-height);letter-spacing:var(--gov-text-3xl-letter-spacing);margin:0}.gov-modal__close{flex:0 0 auto;margin-left:auto}.gov-modal__content{height:100%;padding:1.5rem 1rem;color:var(--gov-modal-text-color, var(--gov-color-secondary-700));overflow:auto}.gov-modal__content>*:last-child{margin-bottom:0}.gov-modal__footer,.gov-modal__actions{padding:1.5rem 1rem;border-top:var(--gov-modal-border-color, 0.0625rem solid var(--gov-color-secondary-500))}.gov-modal__actions{display:flex;gap:0.5rem 1rem;flex-wrap:wrap;justify-content:flex-end}.gov-modal__dialog:focus .gov-modal__inner{outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base)}.gov-modal[open=""],.gov-modal[open=true i],.gov-modal[open="1"]{display:block}@media (min-width: 30em){.gov-modal__dialog{max-width:calc(var(--gov-modal-max-width, 52.5rem) + 3rem);padding:1.5rem}.gov-modal__dialog:focus{outline-offset:-1.5rem}.gov-modal__inner{box-shadow:0 0 2rem rgba(var(--gov-color-secondary-800-rgb), 0.32)}.gov-modal--prompt .gov-modal__dialog{max-width:calc(var(--gov-modal-prompt-max-width, 33.125rem) + 3rem)}}@media (min-width: 48em){.gov-modal__header{gap:1.25rem;padding:2rem 2.5rem 2rem 3rem}.gov-modal__content{padding:2rem 3rem}.gov-modal__footer{padding:1rem 3rem}.gov-modal--prompt .gov-modal__header,.gov-modal--prompt .gov-modal__content,.gov-modal--prompt .gov-modal__footer,.gov-modal--prompt .gov-modal__actions{padding:1.5rem}}';const v=h;const p=class{constructor(e){o(this,e);this.govClose=a(this,"gov-close",7);this.open=false;this.label=undefined;this.role="dialog";this.labelTag="h2";this.wcagLabelledBy=undefined;this.wcagDescribedBy=undefined;this.wcagCloseLabel="Zavřít okno";this.wcagCloseLabelledBy=undefined;this.h=d(this.host);this.labelId=m("GovPromptLabel");this.contentId=m("GovPromptContent")}validateLabelTag(o){const a=["h1","h2","h3","h4","h5","h6"];if(o){if(!a.includes(o)){l(`[${g.root}]: Tag ${o} is not allowed.`)}}}watchOpen(o){this.open=o;if(o&&this.closeCtaRef){this.closeCtaRef.setFocus().catch()}}showModal(){this.open=true;document.body.classList.add(g.bodyFix)}hideModal(){this.open=false;document.body.classList.remove(g.bodyFix)}async componentWillRender(){if(this.open){this.showModal()}else{this.hideModal()}}async componentDidRender(){if(s()){await c(500);await this.validateWcag()}}render(){const o=this.labelTag;return e(t,{key:"eafb47c3de00f2944cf648244a0cc4d57579c7ff",class:this.h.classes(g.rootPrompt),open:this.open},e("dialog",{key:"4e93478ea3a360bb6249725b4299f1db89626e72",class:g.dialog,hidden:!this.open,tabindex:"-1",open:this.open,"aria-modal":"true","aria-hidden":r(!this.open),"aria-labelledby":this.wcagLabelledBy||this.labelId,"aria-describedby":this.wcagDescribedBy||this.contentId,role:this.role},e("div",{key:"0e4dc70872d6bab33e36e192ec921a05e278e844",class:g.inner},e("div",{key:"3be8a8bed33a9640dcba8e8374512efadb4c4a63",class:g.header},this.h.hasSlot("icon")&&e("div",{key:"76931e2ab2a270ce04a71c7d8d32ead065da6eca",class:g.icon},e("slot",{key:"3a49590e4c2b67742aa7202e440408a307975ad3",name:"icon"})),this.label&&e(o,{key:"8e3cd8b4940f6222e15efb63317e151efa2e6b5f",class:g.title,id:this.labelId},this.label),e("gov-button",{key:"23de5a7c3bb39f3896c134665aa564d584160914",class:g.close,variant:"primary",wcagLabel:this.wcagCloseLabel,wcagLabelledBy:this.wcagCloseLabelledBy,type:"base",ref:o=>this.closeCtaRef=o,"on-gov-click":this.onCloseHandler.bind(this)},e("gov-icon",{key:"4769f23e5e772c92ed07ba8244d2da674acb8d33",name:"x-lg"}))),e("div",{key:"1b181dd790d066b2aa943c91ef2e0f47f8a0e5df",class:g.content,id:this.contentId},e("slot",{key:"04cf9527b390b134ee7900ff3283b84cb5b6cdcb"})),e("div",{key:"350de95cfb9e765da4ebdc8f0f179bcc040baf28",class:g.actions},e("slot",{key:"206f016467e43154a75c02c2708a65a589d09710",name:"actions"})))),this.open?e("gov-backdrop",{"wcag-label":this.wcagCloseLabel,"wcag-labelled-by":this.wcagCloseLabelledBy,"on-gov-click":this.onCloseHandler.bind(this)}):null)}onCloseHandler(o){o.stopPropagation();this.hideModal();this.govClose.emit(o)}async show(){this.showModal()}async hide(){this.hideModal()}async validateWcag(){n(this.wcagLabelledBy,"wcag-labelled-by",g.root);n(this.wcagDescribedBy,"wcag-described-by",g.root)}get host(){return i(this)}static get watchers(){return{labelTag:["validateLabelTag"],open:["watchOpen"]}}};p.style=v;export{p as gov_prompt};
2
+ //# sourceMappingURL=p-815d86ed.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govPromptCss","GovPromptStyle0","GovPrompt","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","validateWcag","render","LabelTag","labelTag","Host","key","class","classes","rootPrompt","dialog","hidden","tabindex","toBoolAttr","wcagLabelledBy","wcagDescribedBy","role","inner","header","hasSlot","icon","name","label","title","id","close","variant","wcagLabel","wcagCloseLabel","wcagCloseLabelledBy","type","ref","el","onCloseHandler","bind","content","actions","e","stopPropagation","govClose","emit","show","hide","validateWcagRef"],"sources":["../../../packages/core/src/components/gov-promp/gov-prompt.scss?tag=gov-prompt","../../../packages/core/src/components/gov-promp/gov-prompt.tsx"],"sourcesContent":["/*\n * Prompt\n */\n\n// $class: \".gov-prompt\";\n@import \"../gov-modal/gov-modal.scss\";\n\n// #{$class} {\n// \t//\n// }\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, 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 {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 '../gov-modal/constants'\n\n@Component({\n\ttag: 'gov-prompt',\n\tstyleUrl: 'gov-prompt.scss',\n})\nexport class GovPrompt {\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('GovPromptLabel')\n\t\tthis.contentId = createID('GovPromptContent')\n\t}\n\n\t@Element() host: HTMLGovPromptElement\n\t/**\n\t * Attribute for modal window display\n\t */\n\t@Prop({mutable: true}) open = 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.validateWcag()\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.rootPrompt)} 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=\"-1\"\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\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\tref={el => (this.closeCtaRef = el)}\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<div class={ModalClass.actions}>\n\t\t\t\t\t\t\t<slot name=\"actions\"/>\n\t\t\t\t\t\t</div>\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\tthis.hideModal()\n\t\tthis.govClose.emit(e)\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 validateWcag(): 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":"mUAAA,MAAMA,EAAe,wyFACrB,MAAAC,EAAeD,E,MCcFE,EAAS,MAMrB,WAAAC,CAAAC,G,wDAU8B,M,+BAQsB,S,cAIQ,K,iFAYa,c,mCAjCxEC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,QAAUC,EAAS,kBACxBL,KAAKM,UAAYD,EAAS,mB,CA0C3B,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,CAAAC,IAAA,2CAACC,MAAOrC,KAAKC,EAAEqC,QAAQ1B,EAAW2B,YAAaxB,KAAMf,KAAKe,MAC9Dd,EAAA,UAAAmC,IAAA,2CACCC,MAAOzB,EAAW4B,OAClBC,QAASzC,KAAKe,KACd2B,SAAS,KACT3B,KAAMf,KAAKe,KAAI,aACJ,OAAM,cACJ4B,GAAY3C,KAAKe,MAAK,kBAClBf,KAAK4C,gBAAkB5C,KAAKI,QAAO,mBAClCJ,KAAK6C,iBAAmB7C,KAAKM,UAC/CwC,KAAM9C,KAAK8C,MAEX7C,EAAA,OAAAmC,IAAA,2CAAKC,MAAOzB,EAAWmC,OACtB9C,EAAA,OAAAmC,IAAA,2CAAKC,MAAOzB,EAAWoC,QACrBhD,KAAKC,EAAEgD,QAAQ,SACfhD,EAAA,OAAAmC,IAAA,2CAAKC,MAAOzB,EAAWsC,MACtBjD,EAAA,QAAAmC,IAAA,2CAAMe,KAAK,UAGZnD,KAAKoD,OACLnD,EAACgC,EAAQ,CAAAG,IAAA,2CAACC,MAAOzB,EAAWyC,MAAOC,GAAItD,KAAKI,SAC1CJ,KAAKoD,OAGRnD,EAAA,cAAAmC,IAAA,2CACCC,MAAOzB,EAAW2C,MAClBC,QAAQ,UACRC,UAAWzD,KAAK0D,eAChBd,eAAgB5C,KAAK2D,oBACrBC,KAAK,OACLC,IAAKC,GAAO9D,KAAKgB,YAAc8C,EAAG,eACpB9D,KAAK+D,eAAeC,KAAKhE,OAEvCC,EAAA,YAAAmC,IAAA,2CAAUe,KAAK,WAGjBlD,EAAA,OAAAmC,IAAA,2CAAKC,MAAOzB,EAAWqD,QAASX,GAAItD,KAAKM,WACxCL,EAAA,QAAAmC,IAAA,8CAEDnC,EAAA,OAAAmC,IAAA,2CAAKC,MAAOzB,EAAWsD,SACtBjE,EAAA,QAAAmC,IAAA,2CAAMe,KAAK,eAKbnD,KAAKe,KACLd,EAAA,6BAA0BD,KAAK0D,eAAc,mBAAoB1D,KAAK2D,oBAAmB,eACpE3D,KAAK+D,eAAeC,KAAKhE,QAC3C,K,CAKC,cAAA+D,CAAeI,GACtBA,EAAEC,kBACFpE,KAAKyB,YACLzB,KAAKqE,SAASC,KAAKH,E,CAOpB,UAAMI,GACLvE,KAAKmB,W,CAON,UAAMqD,GACLxE,KAAKyB,W,CAON,kBAAMM,GACL0C,EAAgBzE,KAAK4C,eAAgB,mBAAoBhC,EAAWC,MACpE4D,EAAgBzE,KAAK6C,gBAAiB,oBAAqBjC,EAAWC,K","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as e,h as i,a as s,g as a}from"./p-5bc604a3.js";import{v as o}from"./p-dcb5fb35.js";import{S as t}from"./p-55500e5a.js";import{p as r}from"./p-03990da5.js";import{g as p}from"./p-5de606f8.js";import"./p-7f2c9830.js";import"./p-003e6cca.js";const n=r(t,["_2XS","_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL"]);var c;(function(e){e["NONE"]="none";e["SM"]="sm";e["MD"]="md";e["LG"]="lg";e["XL"]="xl"})(c||(c={}));const m={root:"gov-spacer"};const g='.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-spacer{position:relative;display:block;width:100%}.gov-spacer[size=unset]{height:0}.gov-spacer[size="2xs"]{height:0.25rem}.gov-spacer[size=xs]{height:0.5rem}.gov-spacer[size=s]{height:0.75rem}.gov-spacer[size=m]{height:1rem}.gov-spacer[size=l]{height:1.25rem}.gov-spacer[size=xl]{height:1.75rem}.gov-spacer[size="2xl"]{height:2rem}.gov-spacer[size="3xl"]{height:3rem}.gov-spacer[size="4xl"]{height:4.5rem}.gov-spacer[breakpoint=none]{display:none}.gov-spacer[breakpoint=sm]{display:none}@media (min-width: 30em){.gov-spacer[breakpoint=sm]{display:block}}.gov-spacer[breakpoint=md]{display:none}@media (min-width: 48em){.gov-spacer[breakpoint=md]{display:block}}.gov-spacer[breakpoint=lg]{display:none}@media (min-width: 64em){.gov-spacer[breakpoint=lg]{display:block}}.gov-spacer[breakpoint=xl]{display:none}@media (min-width: 75em){.gov-spacer[breakpoint=xl]{display:block}}';const d=class{constructor(i){e(this,i);this.size=undefined;this.breakpoint=undefined;this.h=p(this.host)}validateSize(e){o(n,e,m.root)}validateBreakpoint(e){o(c,e,m.root)}componentWillLoad(){this.validateSize(this.size);this.validateBreakpoint(this.breakpoint)}render(){return i(s,{class:this.h.classes(m.root),size:this.size,breakpoint:this.breakpoint})}get host(){return a(this)}static get watchers(){return{size:["validateSize"],breakpoint:["validateBreakpoint"]}}};d.style=g;export{d as gov_spacer};
2
- //# sourceMappingURL=p-529ce9a4.entry.js.map
1
+ import{r as e,h as i,a as s,g as a}from"./p-a6221940.js";import{v as o}from"./p-344c72d7.js";import{S as t}from"./p-92f420cb.js";import{p as r}from"./p-e0e2e9c1.js";import{g as p}from"./p-4191acf2.js";import"./p-e296ca83.js";import"./p-e618f1cb.js";const n=r(t,["_2XS","_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL"]);var c;(function(e){e["NONE"]="none";e["SM"]="sm";e["MD"]="md";e["LG"]="lg";e["XL"]="xl"})(c||(c={}));const m={root:"gov-spacer"};const g='.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-spacer{position:relative;display:block;width:100%}.gov-spacer[size=unset]{height:0}.gov-spacer[size="2xs"]{height:0.25rem}.gov-spacer[size=xs]{height:0.5rem}.gov-spacer[size=s]{height:0.75rem}.gov-spacer[size=m]{height:1rem}.gov-spacer[size=l]{height:1.25rem}.gov-spacer[size=xl]{height:1.75rem}.gov-spacer[size="2xl"]{height:2rem}.gov-spacer[size="3xl"]{height:3rem}.gov-spacer[size="4xl"]{height:4.5rem}.gov-spacer[breakpoint=none]{display:none}.gov-spacer[breakpoint=sm]{display:none}@media (min-width: 30em){.gov-spacer[breakpoint=sm]{display:block}}.gov-spacer[breakpoint=md]{display:none}@media (min-width: 48em){.gov-spacer[breakpoint=md]{display:block}}.gov-spacer[breakpoint=lg]{display:none}@media (min-width: 64em){.gov-spacer[breakpoint=lg]{display:block}}.gov-spacer[breakpoint=xl]{display:none}@media (min-width: 75em){.gov-spacer[breakpoint=xl]{display:block}}';const d=g;const h=class{constructor(i){e(this,i);this.size=undefined;this.breakpoint=undefined;this.h=p(this.host)}validateSize(e){o(n,e,m.root)}validateBreakpoint(e){o(c,e,m.root)}componentWillLoad(){this.validateSize(this.size);this.validateBreakpoint(this.breakpoint)}render(){return i(s,{key:"e33645cb98a3f4e5b37df3d65e930b2b3c7a51a8",class:this.h.classes(m.root),size:this.size,breakpoint:this.breakpoint})}get host(){return a(this)}static get watchers(){return{size:["validateSize"],breakpoint:["validateBreakpoint"]}}};h.style=d;export{h as gov_spacer};
2
+ //# sourceMappingURL=p-854e705c.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SpacerSize","pick","Sizes","SpacerBreakpoints","SpacerClass","root","govSpacerCss","GovSpacerStyle0","GovSpacer","constructor","hostRef","undefined","this","h","govHost","host","validateSize","newValue","validateProp","validateBreakpoint","componentWillLoad","size","breakpoint","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-spacer/constants.tsx","../../../packages/core/src/components/gov-spacer/gov-spacer.scss?tag=gov-spacer","../../../packages/core/src/components/gov-spacer/gov-spacer.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL'])\nexport type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`\n\nexport enum SpacerBreakpoints {\n\tNONE = 'none',\n\tSM = 'sm',\n\tMD = 'md',\n\tLG = 'lg',\n\tXL = 'xl',\n}\nexport type SpacerBreakpointsType = `${ValueOf<typeof SpacerBreakpoints>}`\n\nexport const SpacerClass = {\n\troot: 'gov-spacer',\n}\n","/*\n * Spacer\n */\n\n$class: \".gov-spacer\";\n\n#{$class} {\n\t@include base();\n\n\t// VARIANTS\n\t@each $name, $value in $sizes {\n\t\t&[size=\"#{$name}\"] {\n\t\t\theight: #{$value};\n\t\t}\n\t}\n\t@each $name, $value in $mq-breakpoints {\n\t\t&[breakpoint=\"#{$name}\"] {\n\t\t\tdisplay: none;\n\n\t\t\t@if #{$value} != \"0\" {\n\t\t\t\t@include mq($from: #{$name}) {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { SpacerBreakpoints, SpacerBreakpointsType, SpacerClass, SpacerSize, SpacerSizeType } from './constants'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { govHost } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-spacer',\n\tstyleUrl: 'gov-spacer.scss',\n})\nexport class GovSpacer {\n\tprivate h: GovHost\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\t@Element() host: HTMLGovSpacerElement\n\t/**\n\t * Spacer’s size\n\t */\n\t@Prop() readonly size?: SpacerSizeType\n\t/**\n\t * Breakpoint\n\t */\n\t@Prop() readonly breakpoint?: SpacerBreakpointsType = undefined\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SpacerSize, newValue, SpacerClass.root)\n\t}\n\n\t@Watch('breakpoint')\n\tvalidateBreakpoint(newValue: string): void {\n\t\tvalidateProp(SpacerBreakpoints, newValue, SpacerClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateBreakpoint(this.breakpoint)\n\t}\n\n\trender() {\n\t\treturn <Host class={this.h.classes(SpacerClass.root)} size={this.size} breakpoint={this.breakpoint}></Host>\n\t}\n}\n"],"mappings":"yPAIO,MAAMA,EAAaC,EAAKC,EAAO,CAAC,OAAQ,MAAO,KAAM,KAAM,KAAM,MAAO,OAAQ,OAAQ,SAG/F,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,WACAA,EAAA,WACAA,EAAA,WACAA,EAAA,UACA,EAND,CAAYA,MAAiB,KAStB,MAAMC,EAAc,CAC1BC,KAAM,cCjBP,MAAMC,EAAe,ysCACrB,MAAAC,EAAeD,E,MCSFE,EAAS,MAErB,WAAAC,CAAAC,G,8CAWsDC,UAVrDC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAavB,YAAAC,CAAaC,GACZC,EAAalB,EAAYiB,EAAUb,EAAYC,K,CAIhD,kBAAAc,CAAmBF,GAClBC,EAAaf,EAAmBc,EAAUb,EAAYC,K,CAGvD,iBAAAe,GACCR,KAAKI,aAAaJ,KAAKS,MACvBT,KAAKO,mBAAmBP,KAAKU,W,CAG9B,MAAAC,GACC,OAAOV,EAACW,EAAI,CAAAC,IAAA,2CAACC,MAAOd,KAAKC,EAAEc,QAAQvB,EAAYC,MAAOgB,KAAMT,KAAKS,KAAMC,WAAYV,KAAKU,Y","ignoreList":[]}
@@ -1,2 +1,2 @@
1
1
  const o={root:"gov-grid"};const t={root:"gov-grid-item"};export{o as G,t as a};
2
- //# sourceMappingURL=p-ffb7495c.js.map
2
+ //# sourceMappingURL=p-880743a5.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GridClass","root","GridItemClass"],"sources":["../../../packages/core/src/components/gov-grid/constants.ts"],"sourcesContent":["export const GridClass = {\n\troot: 'gov-grid',\n}\n\nexport const GridItemClass = {\n\troot: 'gov-grid-item',\n}\n"],"mappings":"MAAaA,EAAY,CACxBC,KAAM,Y,MAGMC,EAAgB,CAC5BD,KAAM,wB"}
1
+ {"version":3,"names":["GridClass","root","GridItemClass"],"sources":["../../../packages/core/src/components/gov-grid/constants.ts"],"sourcesContent":["export const GridClass = {\n\troot: 'gov-grid',\n}\n\nexport const GridItemClass = {\n\troot: 'gov-grid-item',\n}\n"],"mappings":"MAAaA,EAAY,CACxBC,KAAM,Y,MAGMC,EAAgB,CAC5BD,KAAM,wB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{d as t,r as i,h as s,a as n,g as e}from"./p-a6221940.js";import{i as o,e as a}from"./p-e618f1cb.js";import{g as r}from"./p-4191acf2.js";import"./p-e0e2e9c1.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-rc11";const p=()=>l;const f={};const d={};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(f[s]){return f[s]}if(!d[s]){d[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 d[s];f[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=y;const w=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"]}}};w.style=v;export{w as gov_icon};
2
+ //# sourceMappingURL=p-893bc0ef.entry.js.map
@@ -0,0 +1 @@
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","GovIconStyle0","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,wkBACnB,MAAAC,EAAeD,E,MCWFE,EAAO,MAGlB,WAAAC,CAAAC,G,oBAQuB,K,UAIA,Q,qCAEI,M,WACF,MAdvBC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAkBhB,sBAAMC,GACZ,MAAMtB,KAACA,EAAIuB,QAAEA,EAAOtB,KAAEA,GAAQiB,KAC9B,IAAyBlB,IAASuB,EAAS,CACzC,M,CAEF,IACEL,KAAKM,eAAiBpB,EAAU,CAACJ,OAAMC,Q,CACvC,MAAOwB,GACPP,KAAKQ,MAAQ,I,EAIjB,iBAAAC,GACE,GAAIC,IAAiB,CACnBV,KAAKK,QAAU,KACfL,KAAKI,mBAAmBO,S,KACnB,CACLX,KAAKY,kBAAiB3B,UACpBe,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,QAAQ1D,EAAUC,OACpC6B,EAAA,QAAM2B,MAAOzD,EAAUE,OAAQyD,UAAW9B,KAAKM,W","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as o,h as e,a as i,g as t}from"./p-5bc604a3.js";import{a as r}from"./p-7f2c9830.js";import{a}from"./p-a6d14a47.js";import"./p-003e6cca.js";import"./p-03990da5.js";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-nav-item{display:block}.gov-nav-item__link{position:relative;display:block;padding:0.9375rem 3rem 0.9375rem 2.25rem;color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:none}.gov-nav-item__link:focus{outline:none}.gov-nav-item__link: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-nav-item__link:focus{outline-color:var(--gov-nav-color, var(--gov-color-neutral-white))}@media not all and (pointer: coarse){.gov-nav-item__link:hover{color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:underline}}@media (min-width: 48em){.gov-nav-item__link{display:inline-flex;justify-content:center;align-items:center;height:100%;padding:1.375rem 1.25rem 1.3125rem}.gov-nav-item__link::before{content:"";position:absolute;display:block;top:0;left:50%;width:0;height:0.125rem;background:var(--gov-nav-color, var(--gov-color-neutral-white));transform:translate(-50%);transition:width 150ms}@media not all and (pointer: coarse){.gov-nav-item__link:hover{text-decoration:none}.gov-nav-item__link:hover::before{width:100%}}}';const s=class{constructor(e){o(this,e);this.isExpandedState=undefined;this.href=undefined}validateHref(o){if(!o){r(`[${a.root}]: Parameter href is required.`)}}componentWillLoad(){this.validateHref(this.href)}render(){return e(i,{class:a.root,role:"listitem"},e("a",{href:this.href,class:a.link},e("slot",null)))}get host(){return t(this)}static get watchers(){return{href:["validateHref"]}}};s.style=n;export{s as gov_nav_item};
2
- //# sourceMappingURL=p-60963ed7.entry.js.map
1
+ import{r as e,h as o,a,g as i}from"./p-a6221940.js";import{a as t}from"./p-e296ca83.js";import{a as r}from"./p-3983d290.js";import"./p-e618f1cb.js";import"./p-e0e2e9c1.js";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-nav-item{display:block}.gov-nav-item__link{position:relative;display:block;padding:0.9375rem 3rem 0.9375rem 2.25rem;color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:none}.gov-nav-item__link:focus{outline:none}.gov-nav-item__link: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-nav-item__link:focus{outline-color:var(--gov-nav-color, var(--gov-color-neutral-white))}@media not all and (pointer: coarse){.gov-nav-item__link:hover{color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:underline}}@media (min-width: 48em){.gov-nav-item__link{display:inline-flex;justify-content:center;align-items:center;height:100%;padding:1.375rem 1.25rem 1.3125rem}.gov-nav-item__link::before{content:"";position:absolute;display:block;top:0;left:50%;width:0;height:0.125rem;background:var(--gov-nav-color, var(--gov-color-neutral-white));transform:translate(-50%);transition:width 150ms}@media not all and (pointer: coarse){.gov-nav-item__link:hover{text-decoration:none}.gov-nav-item__link:hover::before{width:100%}}}';const s=n;const l=class{constructor(o){e(this,o);this.isExpandedState=undefined;this.href=undefined}validateHref(e){if(!e){t(`[${r.root}]: Parameter href is required.`)}}componentWillLoad(){this.validateHref(this.href)}render(){return o(a,{key:"dd8ad75d2391f39589dc1c2d52ef40bb2bf4f750",class:r.root,role:"listitem"},o("a",{key:"a193d5088343a4651ca35fa1ea75e28770de7ad1",href:this.href,class:r.link},o("slot",{key:"dca0edca0e9ecbf13aa3c2e0287ea78dba114505"})))}get host(){return i(this)}static get watchers(){return{href:["validateHref"]}}};l.style=s;export{l as gov_nav_item};
2
+ //# sourceMappingURL=p-8c80d1aa.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govNavItemCss","GovNavItemStyle0","GovNavItem","validateHref","newValue","govErrorLog","NavItemClass","root","componentWillLoad","this","href","render","h","Host","key","class","role","link"],"sources":["../../../packages/core/src/components/gov-nav/gov-nav-item.scss?tag=gov-nav-item","../../../packages/core/src/components/gov-nav/gov-nav-item.tsx"],"sourcesContent":["/*\n * Nav - Item\n */\n\n$class: \".gov-nav-item\";\n\n#{$class} {\n\tdisplay: block;\n\t&__link {\n\t\t@include focus-outline();\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\tpadding: rem-calc(15 48 15 36);\n\t\tcolor: $nav-color;\n\t\ttext-decoration: none;\n\t\t&:focus {\n\t\t\toutline-color: $nav-color;\n\t\t}\n\t\t@include hover() {\n\t\t\tcolor: $nav-color;\n\t\t\ttext-decoration: underline;\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: md) {\n\t\t&__link {\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\theight: 100%;\n\t\t\tpadding: rem-calc(22 20 21);\n\t\t\t&::before {\n\t\t\t\t@include pseudo();\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 50%;\n\t\t\t\twidth: 0;\n\t\t\t\theight: rem-calc(2);\n\t\t\t\tbackground: $nav-color;\n\t\t\t\ttransform: translate(-50%);\n\t\t\t\ttransition: width $t;\n\t\t\t}\n\t\t\t@include hover() {\n\t\t\t\ttext-decoration: none;\n\t\t\t\t&::before {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Host, Watch } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { NavItemClass } from './constants'\n\n@Component({\n\ttag: 'gov-nav-item',\n\tstyleUrl: 'gov-nav-item.scss',\n})\nexport class GovNavItem {\n\t@Element() readonly host: HTMLGovNavItemElement\n\t@State() isExpandedState: boolean\n\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\n\t@Watch('href')\n\tvalidateHref(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${NavItemClass.root}]: Parameter href is required.`)\n\t\t}\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateHref(this.href)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={NavItemClass.root} role=\"listitem\">\n\t\t\t\t<a href={this.href} class={NavItemClass.link}>\n\t\t\t\t\t<slot />\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"4KAAA,MAAMA,EAAgB,y+CACtB,MAAAC,EAAeD,E,MCOFE,EAAU,M,4EAWtB,YAAAC,CAAaC,GACZ,IAAKA,EAAU,CACdC,EAAY,IAAIC,EAAaC,qC,EAI/B,iBAAAC,GACCC,KAAKN,aAAaM,KAAKC,K,CAGxB,MAAAC,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOT,EAAaC,KAAMS,KAAK,YACpCJ,EAAA,KAAAE,IAAA,2CAAGJ,KAAMD,KAAKC,KAAMK,MAAOT,EAAaW,MACvCL,EAAA,QAAAE,IAAA,8C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{V as e}from"./p-ff7365ae.js";import{S as t}from"./p-55500e5a.js";import{p as o}from"./p-03990da5.js";const p=o(e,["PRIMARY","SECONDARY","WARNING","ERROR","SUCCESS"]);const s=o(t,["_XS","_S","_M"]);const r={root:"gov-stepper"};const i={root:"gov-stepper-item",rootWithAnnot:"gov-stepper-item gov-stepper-item--w-annot",header:"gov-stepper-item__header",title:"gov-stepper-item__title",label:"gov-stepper-item__label",name:"gov-stepper-item__name",annot:"gov-stepper-item__annot",prefix:"gov-stepper-item__prefix",content:"gov-stepper-item__content",suffix:"gov-stepper-item__suffix"};export{i as S,r as a,s as b,p as c};
2
- //# sourceMappingURL=p-9144dde1.js.map
1
+ import{V as e}from"./p-03dbb8b1.js";import{S as t}from"./p-92f420cb.js";import{p as o}from"./p-e0e2e9c1.js";const p=o(e,["PRIMARY","SECONDARY","WARNING","ERROR","SUCCESS"]);const s=o(t,["_XS","_S","_M"]);const r={root:"gov-stepper"};const i={root:"gov-stepper-item",rootWithAnnot:"gov-stepper-item gov-stepper-item--w-annot",header:"gov-stepper-item__header",title:"gov-stepper-item__title",label:"gov-stepper-item__label",name:"gov-stepper-item__name",annot:"gov-stepper-item__annot",prefix:"gov-stepper-item__prefix",content:"gov-stepper-item__content",suffix:"gov-stepper-item__suffix"};export{i as S,r as a,s as b,p as c};
2
+ //# sourceMappingURL=p-8dfac7d7.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["StepperVariants","pick","Variants","StepperSizes","Sizes","StepperClass","root","StepperItemClass","rootWithAnnot","header","title","label","name","annot","prefix","content","suffix"],"sources":["../../../packages/core/src/components/gov-stepper/constants.ts"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { Sizes } from '../../core/constants/sizes'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const StepperVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type StepperVariantType = `${ValueOf<typeof StepperVariants>}`\n\nexport const StepperSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type StepperSizesType = `${ValueOf<typeof StepperSizes>}`\n\nexport const StepperClass = {\n\troot: 'gov-stepper',\n}\n\nexport const StepperItemClass = {\n\troot: 'gov-stepper-item',\n\trootWithAnnot: 'gov-stepper-item gov-stepper-item--w-annot',\n\theader: 'gov-stepper-item__header',\n\ttitle: 'gov-stepper-item__title',\n\tlabel: 'gov-stepper-item__label',\n\tname: 'gov-stepper-item__name',\n\tannot: 'gov-stepper-item__annot',\n\tprefix: 'gov-stepper-item__prefix',\n\tcontent: 'gov-stepper-item__content',\n\tsuffix: 'gov-stepper-item__suffix',\n}\n"],"mappings":"kHAKaA,EAAkBC,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,Y,MAG9EC,EAAeF,EAAKG,EAAO,CAAC,MAAO,KAAM,O,MAGzCC,EAAe,CAC3BC,KAAM,e,MAGMC,EAAmB,CAC/BD,KAAM,mBACNE,cAAe,6CACfC,OAAQ,2BACRC,MAAO,0BACPC,MAAO,0BACPC,KAAM,yBACNC,MAAO,0BACPC,OAAQ,2BACRC,QAAS,4BACTC,OAAQ,mC"}
1
+ {"version":3,"names":["StepperVariants","pick","Variants","StepperSizes","Sizes","StepperClass","root","StepperItemClass","rootWithAnnot","header","title","label","name","annot","prefix","content","suffix"],"sources":["../../../packages/core/src/components/gov-stepper/constants.ts"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { Sizes } from '../../core/constants/sizes'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const StepperVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type StepperVariantType = `${ValueOf<typeof StepperVariants>}`\n\nexport const StepperSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type StepperSizesType = `${ValueOf<typeof StepperSizes>}`\n\nexport const StepperClass = {\n\troot: 'gov-stepper',\n}\n\nexport const StepperItemClass = {\n\troot: 'gov-stepper-item',\n\trootWithAnnot: 'gov-stepper-item gov-stepper-item--w-annot',\n\theader: 'gov-stepper-item__header',\n\ttitle: 'gov-stepper-item__title',\n\tlabel: 'gov-stepper-item__label',\n\tname: 'gov-stepper-item__name',\n\tannot: 'gov-stepper-item__annot',\n\tprefix: 'gov-stepper-item__prefix',\n\tcontent: 'gov-stepper-item__content',\n\tsuffix: 'gov-stepper-item__suffix',\n}\n"],"mappings":"kHAKaA,EAAkBC,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,Y,MAG9EC,EAAeF,EAAKG,EAAO,CAAC,MAAO,KAAM,O,MAGzCC,EAAe,CAC3BC,KAAM,e,MAGMC,EAAmB,CAC/BD,KAAM,mBACNE,cAAe,6CACfC,OAAQ,2BACRC,MAAO,0BACPC,MAAO,0BACPC,KAAM,yBACNC,MAAO,0BACPC,OAAQ,2BACRC,QAAS,4BACTC,OAAQ,mC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as i,c as e,h as r,a,g as o}from"./p-a6221940.js";import{a as t}from"./p-e296ca83.js";import{v as d}from"./p-344c72d7.js";import{W as v,c as n}from"./p-20fd8011.js";import{c as s}from"./p-95d41a3b.js";import{g,b as l,t as m}from"./p-4191acf2.js";import{F as c}from"./p-1c1d0bbe.js";import"./p-e618f1cb.js";import"./p-e0e2e9c1.js";import"./p-03dbb8b1.js";import"./p-92f420cb.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)}}';const w=z;var h;(function(i){i["DIV"]="div";i["BUTTON"]="button"})(h||(h={}));const p=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(`[${v.root}]: Parameter label is required.`)}}validateTriggerTag(i){const e=["h1","h2","h3","h4","h5","h6","span"];if(i){if(!e.includes(i)){t(`[${v.root}]: Tag ${i} is not allowed.`)}}}validateVariant(i){d(n,i,v.root)}emmitChange(){this.govChange.emit({expanded:this.isExpanded,component:v.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?h.BUTTON:h.DIV;const t=this.h.hasSlot("prefix")&&r("span",{key:"959248c1bae00af1c1de0009e8db1317f57773b5",class:v.prefix},r("slot",{key:"9c9b5c4f0d3024b68c49a47fea8d0c504f0c44bd",name:"prefix"}));const d=r(e,{key:"fd079e23c2fd79052d42ff5ba30a55a4d8240c44",class:v.title},r("span",{key:"cb40be0048459dfff7468598c60e157377e77fce",class:v.name},r("span",{key:"29a40cff9bcca1a166fde9a22d84cf1c7ac5dc00",class:v.label},r("span",{key:"03b626c21f20592c9729f3ec4dd217d13e35813a"},this.label),this.collapsible&&r("gov-icon",{key:"19f6a985e209cedf1f49cab330973bd9839d9881",class:v.arrow,name:"chevron-down"})),this.annotation&&r("span",{key:"17c5dddce1df76479a02bdc688bab54b498cef81",class:v.annot},this.annotation)));return r(a,{key:"be03f0870b5b3b6691700478e6c33f4e130bf2ae",class:this.h.classes(v.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:v.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}},d)):r(c,null,t,r("div",{class:v.header},d)),this.collapsible?r("div",{class:v.content,id:this.contentId,"aria-hidden":l(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":i},r("slot",null)):r("div",{class:v.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"]}}};p.style=w;export{p as gov_wizard_item};
2
+ //# sourceMappingURL=p-8fc87295.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govWizardItemCss","GovWizardItemStyle0","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","key","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":"mYAAA,MAAMA,EAAmB,mqSACzB,MAAAC,EAAeD,ECSf,IAAKE,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,QAAAoC,IAAA,2CAAMC,MAAO5B,EAAgB6B,QAAQtC,EAAA,QAAAoC,IAAA,2CAAMG,KAAK,YAEhG,MAAMf,EACLxB,EAAC6B,EAAQ,CAAAO,IAAA,2CAACC,MAAO5B,EAAgB+B,OAChCxC,EAAA,QAAAoC,IAAA,2CAAMC,MAAO5B,EAAgB8B,MAC5BvC,EAAA,QAAAoC,IAAA,2CAAMC,MAAO5B,EAAgBe,OAC5BxB,EAAA,QAAAoC,IAAA,4CAAOrC,KAAKyB,OACXzB,KAAKgC,aAAe/B,EAAA,YAAAoC,IAAA,2CAAUC,MAAO5B,EAAgBgC,MAAOF,KAAK,kBAGlExC,KAAK2C,YAAc1C,EAAA,QAAAoC,IAAA,2CAAMC,MAAO5B,EAAgBkC,OAAQ5C,KAAK2C,cAKjE,OACC1C,EAAC4C,EAAI,CAAAR,IAAA,2CAACC,MAAOtC,KAAKC,EAAE6C,QAAQpC,EAAgBC,MAAK,cAAeX,KAAKsB,WAAYI,QAAS1B,KAAK0B,QAASqB,KAAM/C,KAAK+C,KAAMC,KAAK,WAAWhB,YAAahC,KAAKgC,aACzJhC,KAAKgC,YACL/B,EAACgD,EAAQ,KACPd,EACDlC,EAAC8B,EAAG,CACHmB,GAAI9C,EACJkC,MAAO5B,EAAgByC,OAAM,gBACdC,EAAcpD,KAAKsB,YAAW,gBAC9BtB,KAAKM,UACpB+C,SAAUrD,KAAKqD,SAAQ,gBACRC,EAAoBtD,KAAKqD,UACxCE,QAAUC,IACTA,EAAEC,iBACFD,EAAEE,kBACF1D,KAAKgC,YAAchC,KAAK2D,SAAW,KAAK,GAGxClC,IAIHxB,EAACgD,EAAQ,KACPd,EACDlC,EAAA,OAAKqC,MAAO5B,EAAgByC,QAAS1B,IAGtCzB,KAAKgC,YACL/B,EAAA,OACCqC,MAAO5B,EAAgBkD,QACvBV,GAAIlD,KAAKM,UAAS,cACL8C,GAAepD,KAAKsB,YACjCuC,QAAS7D,KAAKsB,WAAU,kBACPlB,GAEjBH,EAAA,cAGDA,EAAA,OAAKqC,MAAO5B,EAAgBkD,QAAO,cAAeR,GAAepD,KAAKsB,YAAauC,QAAS7D,KAAKsB,YAChGrB,EAAA,c,CAWL,UAAM6D,GACL9D,KAAKsB,WAAa,KAClBtB,KAAKkB,a,CAOC,WAAM6C,GACZ/D,KAAKsB,WAAa,MAClBtB,KAAKkB,a,CAOC,YAAMyC,GACZ3D,KAAKsB,YAActB,KAAKsB,WACxBtB,KAAKkB,a,CAOC,kBAAM8C,GACZ,OAAOhE,KAAKsB,U","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{g as e}from"./p-e296ca83.js";import{s as t}from"./p-95d41a3b.js";import{d as r}from"./p-e618f1cb.js";const n=(t,r,n)=>{if(t===undefined||String(t).length===0){e(`[${n}]: The (${r}) attribute is important for correct accessibility.`)}};const i=(n,i,a)=>{if(typeof n==="undefined"||n===undefined){return true}if(String(n).length===0){e(`[${a}]: Attribute (${i}) is defined with an empty value.`);return false}let s=[];const f=t(n);if(Array.isArray(f)){s=f.filter((function(e){return e.trim().length>0}))}return!!s.filter((e=>{if(r().getElementById(e)===null){return false}else{return true}})).length};const a=(t,n,i)=>{const a=r().querySelector(`[for=${t}]`);if(a===null){const t=r().getElementById(n);if(t===null){e(`[${i}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`);return false}}return true};const s=(t,n,i)=>{if(typeof t==="string"&&t.length>0){return true}if(typeof n==="string"&&n.length>0){const e=r().getElementById(n);if(e){return true}}e(`[${i}]: The element has no defined wcag-label or wcag-labelled-by attribute.`);return false};export{i as a,a as b,n as c,s as v};
2
+ //# sourceMappingURL=p-92b7481f.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["validateWcagProp","value","propName","component","undefined","String","length","govWarningLog","validateWcagRef","referenceId","name","strings","referenceIds","splitByWhitespace","Array","isArray","filter","e","trim","documentNode","getElementById","validateWcagLabelFor","inputId","labelledBy","labelEl","querySelector","labelledByEl","validateWcagLabel","label"],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\nimport { splitByWhitespace } from '../../utils/string.utils'\nimport { documentNode } from '../Dom/win'\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateWcagLabel = (label: string | undefined, labelledBy: string | undefined, component: string): boolean => {\n\tif (typeof label === 'string' && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined wcag-label or wcag-labelled-by attribute.`)\n\treturn false\n}\n"],"mappings":"kHAIaA,EAAmB,CAACC,EAA2BC,EAAkBC,KAC7E,GAAIF,IAAUG,WAAaC,OAAOJ,GAAOK,SAAW,EAAG,CACtDC,EAAc,IAAIJ,YAAoBD,uD,SAI3BM,EAAkB,CAACC,EAAqBC,EAAcP,KAClE,UAAWM,IAAgB,aAAeA,IAAgBL,UAAW,CACpE,OAAO,I,CAER,GAAIC,OAAOI,GAAaH,SAAW,EAAG,CACrCC,EAAc,IAAIJ,kBAA0BO,sCAC5C,OAAO,K,CAER,IAAIC,EAAU,GACd,MAAMC,EAAeC,EAAkBJ,GACvC,GAAIK,MAAMC,QAAQH,GAAe,CAChCD,EAAUC,EAAaI,QAAO,SAAUC,GACvC,OAAOA,EAAEC,OAAOZ,OAAS,C,IAI3B,QAASK,EAAQK,QAAOP,IACvB,GAAIU,IAAeC,eAAeX,KAAiB,KAAM,CAExD,OAAO,K,KACD,CACN,OAAO,I,KAENH,MAAM,E,MAGGe,EAAuB,CAACC,EAAiBC,EAAgCpB,KACrF,MAAMqB,EAAUL,IAAeM,cAAc,QAAQH,MACrD,GAAIE,IAAY,KAAM,CACrB,MAAME,EAAeP,IAAeC,eAAeG,GACnD,GAAIG,IAAiB,KAAM,CAC1BnB,EAAc,IAAIJ,iFAClB,OAAO,K,EAGT,OAAO,IAAI,E,MAGCwB,EAAoB,CAACC,EAA2BL,EAAgCpB,KAC5F,UAAWyB,IAAU,UAAYA,EAAMtB,OAAS,EAAG,CAClD,OAAO,I,CAER,UAAWiB,IAAe,UAAYA,EAAWjB,OAAS,EAAG,CAC5D,MAAMoB,EAAeP,IAAeC,eAAeG,GACnD,GAAIG,EAAc,CACjB,OAAO,I,EAGTnB,EAAc,IAAIJ,4EAClB,OAAO,KAAK,S","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as s,c as i,h as t,a,g as o}from"./p-a6221940.js";import{v as e}from"./p-344c72d7.js";import{W as r,a as n,b as p}from"./p-20fd8011.js";import{g as c}from"./p-4191acf2.js";import{v as d}from"./p-92b7481f.js";import{c as m}from"./p-e618f1cb.js";import{d as f}from"./p-e0e2e9c1.js";import"./p-e296ca83.js";import"./p-03dbb8b1.js";import"./p-92f420cb.js";import"./p-95d41a3b.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 b=h;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){e(p,s,n.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(r.root).forEach((s=>{s.setAttribute("size",this.size)}))}async componentDidRender(){if(m()){await f(500);await this.validateWcag()}}render(){return t(a,{key:"26b6562d1cd89e5d657dc09d80ed5462932b7b82",class:this.h.classes(n.root),role:"list",size:this.size},t("slot",{key:"dbf43754a78107578778f681c41fd212be493b96"}))}async validateWcag(){d(this.wcagLabel,this.wcagLabelledBy,n.root)}get host(){return o(this)}static get watchers(){return{size:["validateSize"]}}};l.style=b;export{l as gov_wizard};
2
+ //# sourceMappingURL=p-92bef3b8.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govWizardCss","GovWizardStyle0","GovWizard","constructor","hostRef","this","h","govHost","host","validateSize","newValue","validateProp","WizardSizes","WizardClass","root","componentWillLoad","size","componentDidLoad","querySelectorAll","WizardItemClass","forEach","child","setAttribute","componentDidRender","canValidateWcagOnRender","delay","validateWcag","render","Host","key","class","classes","role","validateWcagLabel","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 { validateWcagLabel } 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.validateWcag()\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 validateWcag(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, WizardClass.root)\n\t}\n}\n"],"mappings":"iYAAA,MAAMA,EAAe,ybACrB,MAAAC,EAAeD,E,MCaFE,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,CAAAC,IAAA,2CAACC,MAAOzB,KAAKC,EAAEyB,QAAQlB,EAAYC,MAAOkB,KAAK,OAAOhB,KAAMX,KAAKW,MACrEV,EAAA,QAAAuB,IAAA,6C,CASI,kBAAMH,GACZO,EAAkB5B,KAAK6B,UAAW7B,KAAK8B,eAAgBtB,EAAYC,K","ignoreList":[]}
@@ -1,2 +1,2 @@
1
1
  var x;(function(x){x["_2XS"]="2xs";x["_XS"]="xs";x["_S"]="s";x["_M"]="m";x["_L"]="l";x["_XL"]="xl";x["_2XL"]="2xl";x["_3XL"]="3xl";x["_4XL"]="4xl";x["_5XL"]="6xl";x["_6XL"]="6xl"})(x||(x={}));export{x as S};
2
- //# sourceMappingURL=p-55500e5a.js.map
2
+ //# sourceMappingURL=p-92f420cb.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Sizes"],"sources":["../../../packages/core/src/core/constants/sizes.ts"],"sourcesContent":["export enum Sizes {\n\t_2XS = '2xs',\n\t_XS = 'xs',\n\t_S = 's',\n\t_M = 'm',\n\t_L = 'l',\n\t_XL = 'xl',\n\t_2XL = '2xl',\n\t_3XL = '3xl',\n\t_4XL = '4xl',\n\t_5XL = '6xl',\n\t_6XL = '6xl',\n}\n"],"mappings":"IAAYA,GAAZ,SAAYA,GACXA,EAAA,cACAA,EAAA,YACAA,EAAA,UACAA,EAAA,UACAA,EAAA,UACAA,EAAA,YACAA,EAAA,cACAA,EAAA,cACAA,EAAA,cACAA,EAAA,cACAA,EAAA,aACA,EAZD,CAAYA,MAAK,Y"}
1
+ {"version":3,"names":["Sizes"],"sources":["../../../packages/core/src/core/constants/sizes.ts"],"sourcesContent":["export enum Sizes {\n\t_2XS = '2xs',\n\t_XS = 'xs',\n\t_S = 's',\n\t_M = 'm',\n\t_L = 'l',\n\t_XL = 'xl',\n\t_2XL = '2xl',\n\t_3XL = '3xl',\n\t_4XL = '4xl',\n\t_5XL = '6xl',\n\t_6XL = '6xl',\n}\n"],"mappings":"IAAYA,GAAZ,SAAYA,GACXA,EAAA,cACAA,EAAA,YACAA,EAAA,UACAA,EAAA,UACAA,EAAA,UACAA,EAAA,YACAA,EAAA,cACAA,EAAA,cACAA,EAAA,cACAA,EAAA,cACAA,EAAA,aACA,EAZD,CAAYA,MAAK,Y","ignoreList":[]}
@@ -1,3 +1,2 @@
1
- import{r as o,h as r,a as e,g as a}from"./p-5bc604a3.js";import{p as s,d as n}from"./p-03990da5.js";import{V as t}from"./p-ff7365ae.js";import{g as i}from"./p-5de606f8.js";import{v as g}from"./p-dcb5fb35.js";import{c as l}from"./p-003e6cca.js";import{v}from"./p-7724b535.js";import"./p-7f2c9830.js";import"./p-24636c53.js";const c=s(t,["PRIMARY","SECONDARY","SUCCESS","ERROR","WARNING"]);var d;(function(o){o["CIRCLE"]="circle";o["REACT"]="rect";o["TEXT"]="text"})(d||(d={}));var k;(function(o){o["PULSE"]="pulse";o["PROGRESS"]="progress";o["FALSE"]="false"})(k||(k={}));const p={root:"gov-skeleton",loader:"gov-skeleton__loader"};const u=".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-skeleton__loader{position:relative;display:inline-block;width:var(--gov-skeleton-width, 100%);height:var(--gov-skeleton-height, 20px);border-radius:var(--gov-skeleton-border-radius, var(--gov-border-radius, 0.1875rem));outline:none;overflow:hidden;box-sizing:border-box;will-change:transform}.gov-skeleton__loader+.gov-skeleton__loader{margin-top:var(--gov-skeleton-margin-top, 8px)}.gov-skeleton__loader.circle{width:var(--gov-skeleton-circle-size, 60px);height:var(--gov-skeleton-circle-size, 60px);border-radius:var(--gov-skeleton-circle-radius, 50%)}.gov-skeleton__loader.rect{border-radius:var(--gov-skeleton-rect-radius, 0)}.gov-skeleton__loader.progress{background-size:200px 100%;animation:progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite}.gov-skeleton__loader.pulse{animation:pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;animation-delay:0.5s}@media (prefers-reduced-motion: reduce){.gov-skeleton__loader.pulse,.gov-skeleton__loader.progress{background-image:none;animation:none}}.gov-skeleton[variant=warning] .gov-skeleton__loader{background-color:var(--gov-skeleton-warning-background, var(--gov-color-warning-100));background-repeat:no-repeat}.gov-skeleton[variant=warning] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-warning-background, var(--gov-color-warning-100)), var(--gov-skeleton-warning-foreground, var(--gov-color-warning-200)), var(--gov-skeleton-warning-background, var(--gov-color-warning-100)))}.gov-skeleton[variant=error] .gov-skeleton__loader{background-color:var(--gov-skeleton-error-background, var(--gov-color-error-100));background-repeat:no-repeat}.gov-skeleton[variant=error] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-error-background, var(--gov-color-error-100)), var(--gov-skeleton-error-foreground, var(--gov-color-error-200)), var(--gov-skeleton-error-background, var(--gov-color-error-100)))}.gov-skeleton[variant=secondary] .gov-skeleton__loader{background-color:var(--gov-skeleton-secondary-background, var(--gov-color-secondary-300));background-repeat:no-repeat}.gov-skeleton[variant=secondary] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-secondary-background, var(--gov-color-secondary-300)), var(--gov-skeleton-secondary-foreground, var(--gov-color-secondary-100)), var(--gov-skeleton-secondary-background, var(--gov-color-secondary-300)))}.gov-skeleton[variant=success] .gov-skeleton__loader{background-color:var(--gov-skeleton-success-background, var(--gov-color-success-100));background-repeat:no-repeat}.gov-skeleton[variant=success] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-success-background, var(--gov-color-success-100)), var(--gov-skeleton-success-foreground, var(--gov-color-success-200)), var(--gov-skeleton-success-background, var(--gov-color-success-100)))}.gov-skeleton[variant=primary] .gov-skeleton__loader{background-color:var(--gov-skeleton-primary-background, var(--gov-color-primary-100));background-repeat:no-repeat}.gov-skeleton[variant=primary] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-primary-background, var(--gov-color-primary-100)), var(--gov-skeleton-primary-foreground, var(--gov-color-primary-200)), var(--gov-skeleton-primary-background, var(--gov-color-primary-100)))}";const m=class{constructor(r){o(this,r);this.items=[];this.variant="secondary";this.count=1;this.shape="text";this.width=null;this.height=null;this.animation="progress";this.wcagLabel=undefined;this.h=i(this.host)}validateVariant(o){g(c,o,p.root)}validateShape(o){g(d,o,p.root)}validateAnimation(o){g(k,o,p.root)}componentWillLoad(){this.validateVariant(this.variant);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init()}componentWillUpdate(){this.init()}async componentDidRender(){if(l()){await n(500);await this.validateAccessibility()}}init(){this.items.length=this.count;this.items.fill(1)}get style(){const o={width:null,height:null};if(this.width){o.width=this.width}if(this.height){o.height=this.height}return Object.assign({},o)}render(){return r(e,{class:this.h.classes(p.root),variant:this.variant},this.items.map(((o,e)=>r("span",{key:e,class:{circle:this.shape==="circle",rect:this.shape==="rect",progress:this.animation==="progress",pulse:this.animation==="pulse",[p.loader]:true},"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100","aria-valuetext":this.wcagLabel,role:"progressbar",tabindex:"0",style:this.style}))))}async validateAccessibility(){v(this.wcagLabel,undefined,p.root)}get host(){return a(this)}static get watchers(){return{variant:["validateVariant"],shape:["validateShape"],animation:["validateAnimation"]}}};m.style=u;export{m as gov_skeleton};
2
-
3
- //# sourceMappingURL=p-28a50f60.entry.js.map
1
+ import{r as o,h as r,a as e,g as a}from"./p-a6221940.js";import{p as s,d as n}from"./p-e0e2e9c1.js";import{V as t}from"./p-03dbb8b1.js";import{g as i}from"./p-4191acf2.js";import{v as g}from"./p-344c72d7.js";import{c as l}from"./p-e618f1cb.js";import{v}from"./p-92b7481f.js";import"./p-e296ca83.js";import"./p-95d41a3b.js";const c=s(t,["PRIMARY","SECONDARY","SUCCESS","ERROR","WARNING"]);var d;(function(o){o["CIRCLE"]="circle";o["REACT"]="rect";o["TEXT"]="text"})(d||(d={}));var k;(function(o){o["PULSE"]="pulse";o["PROGRESS"]="progress";o["FALSE"]="false"})(k||(k={}));const p={root:"gov-skeleton",loader:"gov-skeleton__loader"};const u=".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-skeleton__loader{position:relative;display:inline-block;width:var(--gov-skeleton-width, 100%);height:var(--gov-skeleton-height, 20px);border-radius:var(--gov-skeleton-border-radius, var(--gov-border-radius, 0.1875rem));outline:none;overflow:hidden;box-sizing:border-box;will-change:transform}.gov-skeleton__loader+.gov-skeleton__loader{margin-top:var(--gov-skeleton-margin-top, 8px)}.gov-skeleton__loader.circle{width:var(--gov-skeleton-circle-size, 60px);height:var(--gov-skeleton-circle-size, 60px);border-radius:var(--gov-skeleton-circle-radius, 50%)}.gov-skeleton__loader.rect{border-radius:var(--gov-skeleton-rect-radius, 0)}.gov-skeleton__loader.progress{background-size:200px 100%;animation:progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite}.gov-skeleton__loader.pulse{animation:pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;animation-delay:0.5s}@media (prefers-reduced-motion: reduce){.gov-skeleton__loader.pulse,.gov-skeleton__loader.progress{background-image:none;animation:none}}.gov-skeleton[variant=warning] .gov-skeleton__loader{background-color:var(--gov-skeleton-warning-background, var(--gov-color-warning-100));background-repeat:no-repeat}.gov-skeleton[variant=warning] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-warning-background, var(--gov-color-warning-100)), var(--gov-skeleton-warning-foreground, var(--gov-color-warning-200)), var(--gov-skeleton-warning-background, var(--gov-color-warning-100)))}.gov-skeleton[variant=error] .gov-skeleton__loader{background-color:var(--gov-skeleton-error-background, var(--gov-color-error-100));background-repeat:no-repeat}.gov-skeleton[variant=error] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-error-background, var(--gov-color-error-100)), var(--gov-skeleton-error-foreground, var(--gov-color-error-200)), var(--gov-skeleton-error-background, var(--gov-color-error-100)))}.gov-skeleton[variant=secondary] .gov-skeleton__loader{background-color:var(--gov-skeleton-secondary-background, var(--gov-color-secondary-300));background-repeat:no-repeat}.gov-skeleton[variant=secondary] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-secondary-background, var(--gov-color-secondary-300)), var(--gov-skeleton-secondary-foreground, var(--gov-color-secondary-100)), var(--gov-skeleton-secondary-background, var(--gov-color-secondary-300)))}.gov-skeleton[variant=success] .gov-skeleton__loader{background-color:var(--gov-skeleton-success-background, var(--gov-color-success-100));background-repeat:no-repeat}.gov-skeleton[variant=success] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-success-background, var(--gov-color-success-100)), var(--gov-skeleton-success-foreground, var(--gov-color-success-200)), var(--gov-skeleton-success-background, var(--gov-color-success-100)))}.gov-skeleton[variant=primary] .gov-skeleton__loader{background-color:var(--gov-skeleton-primary-background, var(--gov-color-primary-100));background-repeat:no-repeat}.gov-skeleton[variant=primary] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-primary-background, var(--gov-color-primary-100)), var(--gov-skeleton-primary-foreground, var(--gov-color-primary-200)), var(--gov-skeleton-primary-background, var(--gov-color-primary-100)))}";const b=u;const m=class{constructor(r){o(this,r);this.items=[];this.variant="secondary";this.count=1;this.shape="text";this.width=null;this.height=null;this.animation="progress";this.wcagLabel=undefined;this.h=i(this.host)}validateVariant(o){g(c,o,p.root)}validateShape(o){g(d,o,p.root)}validateAnimation(o){g(k,o,p.root)}componentWillLoad(){this.validateVariant(this.variant);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init()}componentWillUpdate(){this.init()}async componentDidRender(){if(l()){await n(500);await this.validateWcag()}}init(){this.items.length=this.count;this.items.fill(1)}get style(){const o={width:null,height:null};if(this.width){o.width=this.width}if(this.height){o.height=this.height}return Object.assign({},o)}render(){return r(e,{key:"415b3912396ef67e1e8e66ebdbc6bab08928b14e",class:this.h.classes(p.root),variant:this.variant},this.items.map(((o,e)=>r("span",{key:e,class:{circle:this.shape==="circle",rect:this.shape==="rect",progress:this.animation==="progress",pulse:this.animation==="pulse",[p.loader]:true},"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100","aria-valuetext":this.wcagLabel,role:"progressbar",tabindex:"0",style:this.style}))))}async validateWcag(){v(this.wcagLabel,undefined,p.root)}get host(){return a(this)}static get watchers(){return{variant:["validateVariant"],shape:["validateShape"],animation:["validateAnimation"]}}};m.style=b;export{m as gov_skeleton};
2
+ //# sourceMappingURL=p-94bc809d.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SkeletonVariants","pick","Variants","SkeletonShapes","SkeletonAnimation","SkeletonClass","root","loader","govSkeletonCss","GovSkeletonStyle0","GovSkeleton","constructor","hostRef","this","items","h","govHost","host","validateVariant","newValue","validateProp","validateShape","validateAnimation","componentWillLoad","variant","shape","animation","init","componentWillUpdate","componentDidRender","canValidateWcagOnRender","delay","validateWcag","length","count","fill","style","dimenssionsStyles","width","height","Object","assign","render","Host","key","class","classes","map","_","index","circle","rect","progress","pulse","wcagLabel","role","tabindex","validateWcagLabel","undefined"],"sources":["../../../packages/core/src/components/gov-loading/skeleton/constants.ts","../../../packages/core/src/components/gov-loading/skeleton/gov-skeleton.scss?tag=gov-skeleton","../../../packages/core/src/components/gov-loading/skeleton/gov-skeleton.tsx"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\nimport { Variants } from \"../../../core/constants/variants\"\nimport { ValueOf } from \"../../../types/interfaces\"\n\nexport const SkeletonVariants = pick(Variants, [\"PRIMARY\", \"SECONDARY\", \"SUCCESS\", \"ERROR\", \"WARNING\"])\nexport type SkeletonVariantsType = `${ValueOf<typeof SkeletonVariants>}`\n\nexport enum SkeletonShapes {\n\tCIRCLE = 'circle',\n\tREACT = 'rect',\n\tTEXT = 'text'\n}\nexport type SkeletonShapesType = `${ValueOf<typeof SkeletonShapes>}`\n\nexport enum SkeletonAnimation {\n\tPULSE = 'pulse',\n\tPROGRESS = 'progress',\n\tFALSE = 'false'\n}\nexport type SkeletonAnimationType = `${ValueOf<typeof SkeletonAnimation>}`\n\nexport const SkeletonClass = {\n\troot: 'gov-skeleton',\n\tloader: 'gov-skeleton__loader',\n}\n","$class: \".gov-skeleton\";\n\n#{$class} {\n\t&__loader {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\twidth: $skeleton-width;\n\t\theight: $skeleton-height;\n\t\tborder-radius: $skeleton-border-radius;\n\t\toutline: none;\n\t\toverflow: hidden;\n\t\tbox-sizing: border-box;\n\t\twill-change: transform;\n\n\t\t+ #{$class}__loader {\n\t\t\tmargin-top: $skeleton-margin-top;\n\t\t}\n\n\t\t&.circle {\n\t\t\twidth: $skeleton-circle-size;\n\t\t\theight: $skeleton-circle-size;\n\t\t\tborder-radius: $skeleton-circle-radius;\n\t\t}\n\n\t\t&.rect {\n\t\t\tborder-radius: $skeleton-rect-radius;\n\t\t}\n\n\t\t&.progress {\n\t\t\tbackground-size: 200px 100%;\n\t\t\tanimation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\t}\n\n\t\t&.pulse {\n\t\t\tanimation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\t\tanimation-delay: 0.5s;\n\t\t}\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t&.pulse,\n\t\t\t&.progress {\n\t\t\t\tbackground-image: none;\n\t\t\t\tanimation: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t@each $variant, $definitions in $skeleton-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t#{$class}__loader {\n\t\t\t\tbackground-color: get(\"background\", $definitions);\n\t\t\t\tbackground-repeat: no-repeat;\n\n\t\t\t\t&.progress {\n\t\t\t\t\tbackground-image: linear-gradient(90deg, get(\"background\", $definitions), get(\"foreground\", $definitions), get(\"background\", $definitions));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport {\n\tSkeletonAnimation,\n\tSkeletonAnimationType,\n\tSkeletonClass, SkeletonShapes,\n\tSkeletonShapesType, SkeletonVariants,\n\tSkeletonVariantsType,\n} from \"./constants\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govHost } from \"../../../helpers/Dom/template\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { delay } from \"../../../utils/utils\"\nimport { validateWcagLabel } from \"../../../helpers/Validate/wcag\"\n\n@Component({\n\ttag: \"gov-skeleton\",\n\tstyleUrl: \"gov-skeleton.scss\",\n})\nexport class GovSkeleton {\n\th: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovSkeletonElement\n\t/**\n\t * Style variation of the skeleton.\n\t */\n\t@Prop() readonly variant?: SkeletonVariantsType = \"secondary\"\n\t/**\n\t * Number of rows of current skeleton type\n\t */\n\t@Prop() count = 1\n\t/**\n\t * Shape of the skeleton\n\t */\n\t@Prop() shape?: SkeletonShapesType = \"text\"\n\t/**\n\t * Width of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() width: string = null\n\t/**\n\t * Height of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() height: string = null\n\t/**\n\t * Animation type\n\t */\n\t@Prop() animation?: SkeletonAnimationType = \"progress\"\n\t/**\n\t * Adds accessible label for the skeleton that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\n\titems: number[] = []\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(SkeletonVariants, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('shape')\n\tvalidateShape(newValue: string): void {\n\t\tvalidateProp(SkeletonShapes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('animation')\n\tvalidateAnimation(newValue: string): void {\n\t\tvalidateProp(SkeletonAnimation, newValue, SkeletonClass.root)\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateShape(this.shape)\n\t\tthis.validateAnimation(this.animation)\n\t\tthis.init()\n\t}\n\n\tcomponentWillUpdate() {\n\t\tthis.init()\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tinit() {\n\t\tthis.items.length = this.count\n\t\tthis.items.fill(1)\n\t}\n\n\tget style() {\n\t\tconst dimenssionsStyles: {\n\t\t\twidth?: string,\n\t\t\theight?: string,\n\t\t} = {\n\t\t\twidth: null,\n\t\t\theight: null,\n\t\t}\n\t\tif (this.width) {\n\t\t\tdimenssionsStyles.width = this.width\n\t\t}\n\n\t\tif (this.height) {\n\t\t\tdimenssionsStyles.height = this.height\n\t\t}\n\n\t\treturn { ...dimenssionsStyles }\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(SkeletonClass.root)} variant={this.variant}>\n\t\t\t\t{this.items.map((_, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\tclass={{\n\t\t\t\t\t\t\t\tcircle: this.shape === \"circle\",\n\t\t\t\t\t\t\t\trect: this.shape === \"rect\",\n\t\t\t\t\t\t\t\tprogress: this.animation === \"progress\",\n\t\t\t\t\t\t\t\tpulse: this.animation === \"pulse\",\n\t\t\t\t\t\t\t\t[SkeletonClass.loader]: true,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taria-busy=\"true\"\n\t\t\t\t\t\t\taria-valuemin=\"0\"\n\t\t\t\t\t\t\taria-valuemax=\"100\"\n\t\t\t\t\t\t\taria-valuetext={this.wcagLabel}\n\t\t\t\t\t\t\trole=\"progressbar\"\n\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\tstyle={this.style}\n\t\t\t\t\t\t></span>\n\t\t\t\t\t)\n\t\t\t\t})}\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 validateWcag(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, undefined, SkeletonClass.root)\n\t}\n}\n"],"mappings":"mUAIO,MAAMA,EAAmBC,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,YAG5F,IAAYC,GAAZ,SAAYA,GACXA,EAAA,mBACAA,EAAA,gBACAA,EAAA,cACA,EAJD,CAAYA,MAAc,KAO1B,IAAYC,GAAZ,SAAYA,GACXA,EAAA,iBACAA,EAAA,uBACAA,EAAA,gBACA,EAJD,CAAYA,MAAiB,KAOtB,MAAMC,EAAgB,CAC5BC,KAAM,eACNC,OAAQ,wBCvBT,MAAMC,EAAiB,0pHACvB,MAAAC,EAAeD,E,MCkBFE,EAAW,MAGvB,WAAAC,CAAAC,G,UAkCAC,KAAAC,MAAkB,G,aA1BgC,Y,WAIlC,E,WAIqB,O,WAIb,K,YAIC,K,eAImB,W,yBA3B3CD,KAAKE,EAAIC,EAAQH,KAAKI,K,CAoCvB,eAAAC,CAAgBC,GACfC,EAAapB,EAAkBmB,EAAUd,EAAcC,K,CAIxD,aAAAe,CAAcF,GACbC,EAAajB,EAAgBgB,EAAUd,EAAcC,K,CAItD,iBAAAgB,CAAkBH,GACjBC,EAAahB,EAAmBe,EAAUd,EAAcC,K,CAGzD,iBAAAiB,GACCV,KAAKK,gBAAgBL,KAAKW,SAC1BX,KAAKQ,cAAcR,KAAKY,OACxBZ,KAAKS,kBAAkBT,KAAKa,WAC5Bb,KAAKc,M,CAGN,mBAAAC,GACCf,KAAKc,M,CAGN,wBAAME,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNlB,KAAKmB,c,EAIb,IAAAL,GACCd,KAAKC,MAAMmB,OAASpB,KAAKqB,MACzBrB,KAAKC,MAAMqB,KAAK,E,CAGjB,SAAIC,GACH,MAAMC,EAGF,CACHC,MAAO,KACPC,OAAQ,MAET,GAAI1B,KAAKyB,MAAO,CACfD,EAAkBC,MAAQzB,KAAKyB,K,CAGhC,GAAIzB,KAAK0B,OAAQ,CAChBF,EAAkBE,OAAS1B,KAAK0B,M,CAGjC,OAAAC,OAAAC,OAAA,GAAYJ,E,CAGb,MAAAK,GACC,OACC3B,EAAC4B,EAAI,CAAAC,IAAA,2CAACC,MAAOhC,KAAKE,EAAE+B,QAAQzC,EAAcC,MAAOkB,QAASX,KAAKW,SAC7DX,KAAKC,MAAMiC,KAAI,CAACC,EAAGC,IAElBlC,EAAA,QACC6B,IAAKK,EACLJ,MAAO,CACNK,OAAQrC,KAAKY,QAAU,SACvB0B,KAAMtC,KAAKY,QAAU,OACrB2B,SAAUvC,KAAKa,YAAc,WAC7B2B,MAAOxC,KAAKa,YAAc,QAC1B,CAACrB,EAAcE,QAAS,MACxB,YAES,OAAM,gBACF,IAAG,gBACH,MAAK,iBACHM,KAAKyC,UACrBC,KAAK,cACLC,SAAS,IACTpB,MAAOvB,KAAKuB,U,CAYlB,kBAAMJ,GACLyB,EAAkB5C,KAAKyC,UAAWI,UAAWrD,EAAcC,K","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t}from"./p-03990da5.js";import{V as s}from"./p-ff7365ae.js";var o;(function(t){t["LEFT"]="left"})(o||(o={}));const a=t(s,["PRIMARY","SECONDARY"]);const r={root:"gov-statsbar",section:"gov-statsbar__section"};const e={root:"gov-statsbar-item",icon:"gov-statsbar-item__icon",number:"gov-statsbar-item__number",text:"gov-statsbar-item__text"};export{a as S,e as a,r as b,o as c};
2
- //# sourceMappingURL=p-17ebfe85.js.map
1
+ import{p as t}from"./p-e0e2e9c1.js";import{V as s}from"./p-03dbb8b1.js";var o;(function(t){t["LEFT"]="left"})(o||(o={}));const a=t(s,["PRIMARY","SECONDARY"]);const r={root:"gov-statsbar",section:"gov-statsbar__section"};const e={root:"gov-statsbar-item",icon:"gov-statsbar-item__icon",number:"gov-statsbar-item__number",text:"gov-statsbar-item__text"};export{a as S,e as a,r as b,o as c};
2
+ //# sourceMappingURL=p-94dd1649.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["StatsBarIconPosition","StatsBarVariants","pick","Variants","StatsBarClass","root","section","StatsBarItemClass","icon","number","text"],"sources":["../../../packages/core/src/components/gov-statsbar/constants.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\nimport { Variants } from '../../core/constants/variants'\n\nexport enum StatsBarIconPosition {\n\tLEFT = 'left',\n}\nexport type StatsBarIconPositionType = `${ValueOf<typeof StatsBarIconPosition>}`\n\nexport const StatsBarVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type StatsBarVariantType = `${ValueOf<typeof StatsBarVariants>}`\n\nexport const StatsBarClass = {\n\troot: 'gov-statsbar',\n\tsection: 'gov-statsbar__section',\n}\n\nexport const StatsBarItemClass = {\n\troot: 'gov-statsbar-item',\n\ticon: 'gov-statsbar-item__icon',\n\tnumber: 'gov-statsbar-item__number',\n\ttext: 'gov-statsbar-item__text',\n}\n"],"mappings":"4EAIYA,GAAZ,SAAYA,GACXA,EAAA,cACA,EAFD,CAAYA,MAAoB,K,MAKnBC,EAAmBC,EAAKC,EAAU,CAAC,UAAW,c,MAG9CC,EAAgB,CAC5BC,KAAM,eACNC,QAAS,yB,MAGGC,EAAoB,CAChCF,KAAM,oBACNG,KAAM,0BACNC,OAAQ,4BACRC,KAAM,kC"}
1
+ {"version":3,"names":["StatsBarIconPosition","StatsBarVariants","pick","Variants","StatsBarClass","root","section","StatsBarItemClass","icon","number","text"],"sources":["../../../packages/core/src/components/gov-statsbar/constants.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\nimport { Variants } from '../../core/constants/variants'\n\nexport enum StatsBarIconPosition {\n\tLEFT = 'left',\n}\nexport type StatsBarIconPositionType = `${ValueOf<typeof StatsBarIconPosition>}`\n\nexport const StatsBarVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type StatsBarVariantType = `${ValueOf<typeof StatsBarVariants>}`\n\nexport const StatsBarClass = {\n\troot: 'gov-statsbar',\n\tsection: 'gov-statsbar__section',\n}\n\nexport const StatsBarItemClass = {\n\troot: 'gov-statsbar-item',\n\ticon: 'gov-statsbar-item__icon',\n\tnumber: 'gov-statsbar-item__number',\n\ttext: 'gov-statsbar-item__text',\n}\n"],"mappings":"4EAIYA,GAAZ,SAAYA,GACXA,EAAA,cACA,EAFD,CAAYA,MAAoB,K,MAKnBC,EAAmBC,EAAKC,EAAU,CAAC,UAAW,c,MAG9CC,EAAgB,CAC5BC,KAAM,eACNC,QAAS,yB,MAGGC,EAAoB,CAChCF,KAAM,oBACNG,KAAM,0BACNC,OAAQ,4BACRC,KAAM,kC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
1
  function n(){return Math.random().toString(16).slice(-4)}function r(r){return`${r}-${n()}${n()}-${n()}-${n()}-${n()}-${n()}${n()}${n()}`}function t(n){if(typeof n!=="string")return n;return n.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function u(n){if(typeof n!=="string")return n;return n.split(/(\s+)/)}export{r as c,t as r,u as s};
2
- //# sourceMappingURL=p-24636c53.js.map
2
+ //# sourceMappingURL=p-95d41a3b.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["chr4","Math","random","toString","slice","createID","prefix","removeDiacritics","string","normalize","replace","splitByWhitespace","split"],"sources":["../../../packages/core/src/utils/string.utils.ts"],"sourcesContent":["function chr4(): string {\n\treturn Math.random().toString(16).slice(-4)\n}\n\nexport function createID(prefix: string): string {\n\treturn `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`\n}\n\nexport function removeDiacritics(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '')\n}\n\nexport function splitByWhitespace(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.split(/(\\s+)/)\n}\n"],"mappings":"AAAA,SAASA,IACR,OAAOC,KAAKC,SAASC,SAAS,IAAIC,OAAO,EAC1C,C,SAEgBC,EAASC,GACxB,MAAO,GAAGA,KAAUN,MAASA,OAAUA,OAAUA,OAAUA,OAAUA,MAASA,MAASA,KACxF,C,SAEgBO,EAAiBC,GAChC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOC,UAAU,OAAOC,QAAQ,mBAAoB,GAC5D,C,SAEgBC,EAAkBH,GACjC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOI,MAAM,QACrB,Q"}
1
+ {"version":3,"names":["chr4","Math","random","toString","slice","createID","prefix","removeDiacritics","string","normalize","replace","splitByWhitespace","split"],"sources":["../../../packages/core/src/utils/string.utils.ts"],"sourcesContent":["function chr4(): string {\n\treturn Math.random().toString(16).slice(-4)\n}\n\nexport function createID(prefix: string): string {\n\treturn `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`\n}\n\nexport function removeDiacritics(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '')\n}\n\nexport function splitByWhitespace(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.split(/(\\s+)/)\n}\n"],"mappings":"AAAA,SAASA,IACR,OAAOC,KAAKC,SAASC,SAAS,IAAIC,OAAO,EAC1C,C,SAEgBC,EAASC,GACxB,MAAO,GAAGA,KAAUN,MAASA,OAAUA,OAAUA,OAAUA,OAAUA,MAASA,MAASA,KACxF,C,SAEgBO,EAAiBC,GAChC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOC,UAAU,OAAOC,QAAQ,mBAAoB,GAC5D,C,SAEgBC,EAAkBH,GACjC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOI,MAAM,QACrB,Q","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as i,h as t,a as s,g as o}from"./p-a6221940.js";import{v as e}from"./p-344c72d7.js";import{T as h,a,b as n,c as r,d as c}from"./p-ce45c786.js";import{c as p}from"./p-95d41a3b.js";import{g as d}from"./p-4191acf2.js";import"./p-e296ca83.js";import"./p-e618f1cb.js";import"./p-e0e2e9c1.js";import"./p-03dbb8b1.js";import"./p-92f420cb.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-tooltip{display:inline-block;border-bottom:1px dashed currentcolor;color:var(--gov-color-primary);cursor:help}.gov-tooltip[icon=""],.gov-tooltip[icon=true i],.gov-tooltip[icon="1"]{border-bottom:0}';const f=l;const m=class{constructor(t){i(this,t);this.tooltipContentId=undefined;this.tooltipId=undefined;this.variant=h.PRIMARY;this.size=a._M;this.position="right";this.message=undefined;this.identifier=undefined;this.icon=undefined;this.persist=false;this.h=d(this.host);this.tooltipId=p("GovTooltip");this.tooltipContentId=p("GovContentTooltip")}validateVariant(i){e(h,i,c.root)}validateSize(i){e(a,i,c.root)}validatePosition(i){e(r,i,c.root)}rerenderMessage(){var i;const t=document.body.querySelector(`#${(i=this.identifier)!==null&&i!==void 0?i:this.tooltipContentId}`);if(!t){this.createContentWrapper()}}componentWillLoad(){this.validateVariant(this.variant);this.validateSize(this.size);this.validatePosition(this.position);this.createContentWrapper();this.registerListeners()}disconnectedCallback(){this.removeContent()}createContentWrapper(){var i;const t=this.host.querySelector(n.root);if(t){this.content=t}else{this.content=document.createElement(n.root);this.content.innerHTML=this.message;this.host.appendChild(this.content)}this.content.setAttribute("id",(i=this.identifier)!==null&&i!==void 0?i:this.tooltipContentId);this.content.setAttribute("parent-id",this.tooltipId);this.content.setAttribute("variant",this.variant);this.content.setAttribute("size",this.size);document.body.appendChild(this.content)}registerListeners(){this.host.addEventListener("click",(i=>{i.preventDefault();this.persist=true;if(this.content){this.content.setAttribute("persist","true")}this.showTooltip()}));this.host.addEventListener("focus",(i=>{i.preventDefault();this.showTooltip()}));this.host.addEventListener("blur",(i=>{i.preventDefault();if(this.persist===false){this.hideTooltip()}}));this.host.addEventListener("mouseenter",(i=>{i.preventDefault();this.showTooltip()}));this.host.addEventListener("mouseleave",(i=>{i.preventDefault();if(this.persist===false){this.hideTooltip()}}))}verifyPositionSpace(){const i=12;const t=window.innerWidth-(window.innerWidth-document.documentElement.clientWidth);const s=this.host.getBoundingClientRect();const o=this.host.offsetWidth;const e=this.host.offsetHeight;const h=this.content.offsetWidth;const a=this.content.offsetHeight;const n={left:s.left+document.documentElement.scrollLeft,top:s.top+document.documentElement.scrollTop};const c=n.left+i+s.width+h<=t;const p=n.left>h;if(this.position===r.LEFT||this.position===r.RIGHT){this.content.style.top=n.top-(a-e)/2+"px";if(c===false&&p===false){this.position=r.TOP;this.content.setAttribute("position",r.TOP)}if(p&&c===false&&this.position===r.RIGHT){this.position=r.LEFT}if(c&&p===false&&this.position===r.LEFT){this.position=r.RIGHT}}if(this.position===r.RIGHT){this.content.setAttribute("position",r.RIGHT);this.content.style.left=n.left+i+s.width+"px"}if(this.position===r.LEFT){this.content.setAttribute("position",r.LEFT);this.content.style.left=n.left-(h+i)+"px"}if(this.position===r.TOP||this.position===r.BOTTOM){if(h>o){let s=n.left-(h-o)/2;const e=s<0;const a=s+h>t;if(e&&a){this.content.style.width="auto";this.content.style.left=i+"px";this.content.style.right=i+"px"}else{if(e){s=i}if(a){s=s-(t-(s+h+i))*-1}this.content.style.left=s+"px"}}else{const i=n.left+(o-h)/2;this.content.style.left=i+"px"}}if(this.position===r.TOP){this.content.setAttribute("position",r.TOP);this.content.style.top=n.top-(a+i)+"px"}if(this.position===r.BOTTOM){this.content.setAttribute("position",r.BOTTOM);this.content.style.top=n.top+(e+i)+"px"}this.content.style.opacity="1"}showTooltip(){if(this.content){this.content.style.opacity="0";this.content.hidden=false;this.content.setAttribute("is-visible","true");requestAnimationFrame((()=>{this.verifyPositionSpace()}))}}hideTooltip(){if(this.content){this.content.setAttribute("is-visible","false");this.content.setAttribute("persist","false");this.content.removeAttribute("style")}}removeContent(){const i=document.getElementById(this.tooltipContentId);if(i){i.remove()}}render(){var i;return t(s,{key:"2073902a25078b3875e41e710a9b583a30d2d09e",id:this.tooltipId,class:this.h.classes(c.root),position:this.position},t("span",{key:"56d35be005985c3a4a22d4975714141ae4817157",role:"button",tabindex:0,"aria-describedby":(i=this.identifier)!==null&&i!==void 0?i:this.tooltipContentId},t("slot",{key:"61c4bc19ef21b15791eff343964aafa4fc4dde99"})))}async show(){this.showTooltip()}async hide(){this.persist=false;this.hideTooltip()}get host(){return o(this)}static get watchers(){return{variant:["validateVariant"],size:["validateSize"],position:["validatePosition"],message:["rerenderMessage"]}}};m.style=f;export{m as gov_tooltip};
2
+ //# sourceMappingURL=p-9de457bf.entry.js.map