@gov-design-system-ce/components 4.0.5 → 4.0.6-alpha.1

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 (1462) hide show
  1. package/dist/cjs/Fragment-52846f79.js +7 -0
  2. package/dist/cjs/Fragment-52846f79.js.map +1 -0
  3. package/dist/cjs/constants-0c6c8e11.js +30 -0
  4. package/dist/cjs/constants-0c6c8e11.js.map +1 -0
  5. package/dist/cjs/constants-1490a5eb.js +25 -0
  6. package/dist/cjs/constants-1490a5eb.js.map +1 -0
  7. package/dist/cjs/constants-20b3f7ee.js +28 -0
  8. package/dist/cjs/constants-20b3f7ee.js.map +1 -0
  9. package/dist/cjs/constants-25f7a6be.js +22 -0
  10. package/dist/cjs/constants-25f7a6be.js.map +1 -0
  11. package/dist/cjs/constants-2b1c31b8.js +15 -0
  12. package/dist/cjs/constants-2b1c31b8.js.map +1 -0
  13. package/dist/cjs/constants-427a2843.js +33 -0
  14. package/dist/cjs/constants-427a2843.js.map +1 -0
  15. package/dist/cjs/constants-440cd5c8.js +29 -0
  16. package/dist/cjs/constants-440cd5c8.js.map +1 -0
  17. package/dist/cjs/constants-61f8be34.js +26 -0
  18. package/dist/cjs/constants-61f8be34.js.map +1 -0
  19. package/dist/cjs/constants-66cb0615.js +20 -0
  20. package/dist/cjs/constants-66cb0615.js.map +1 -0
  21. package/dist/cjs/constants-6df82618.js +21 -0
  22. package/dist/cjs/constants-6df82618.js.map +1 -0
  23. package/dist/cjs/constants-97eea364.js +14 -0
  24. package/dist/cjs/constants-97eea364.js.map +1 -0
  25. package/dist/cjs/constants-a31344ad.js +37 -0
  26. package/dist/cjs/constants-a31344ad.js.map +1 -0
  27. package/dist/cjs/constants-caad94b4.js +16 -0
  28. package/dist/cjs/constants-caad94b4.js.map +1 -0
  29. package/dist/cjs/constants-dde21dcf.js +30 -0
  30. package/dist/cjs/constants-dde21dcf.js.map +1 -0
  31. package/dist/cjs/constants-ded92f8a.js +13 -0
  32. package/dist/cjs/constants-ded92f8a.js.map +1 -0
  33. package/dist/cjs/core.cjs.js +48 -0
  34. package/dist/cjs/core.cjs.js.map +1 -0
  35. package/dist/cjs/form-74063d50.js +163 -0
  36. package/dist/cjs/form-74063d50.js.map +1 -0
  37. package/dist/cjs/gov-accordion-item.cjs.entry.js +102 -0
  38. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -0
  39. package/dist/cjs/gov-accordion.cjs.entry.js +77 -0
  40. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -0
  41. package/dist/cjs/gov-attachments_3.cjs.entry.js +120 -0
  42. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -0
  43. package/dist/cjs/gov-backdrop.cjs.entry.js +50 -0
  44. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -0
  45. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +73 -0
  46. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -0
  47. package/dist/cjs/gov-button.cjs.entry.js +179 -0
  48. package/dist/cjs/gov-button.cjs.entry.js.map +1 -0
  49. package/dist/cjs/gov-card.cjs.entry.js +112 -0
  50. package/dist/cjs/gov-card.cjs.entry.js.map +1 -0
  51. package/dist/cjs/gov-chip.cjs.entry.js +108 -0
  52. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -0
  53. package/dist/cjs/gov-container.cjs.entry.js +36 -0
  54. package/dist/cjs/gov-container.cjs.entry.js.map +1 -0
  55. package/dist/cjs/gov-control-group.cjs.entry.js +43 -0
  56. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -0
  57. package/dist/cjs/gov-cookiebar.cjs.entry.js +33 -0
  58. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -0
  59. package/dist/cjs/gov-dropdown.cjs.entry.js +135 -0
  60. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -0
  61. package/dist/cjs/gov-empty.cjs.entry.js +31 -0
  62. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -0
  63. package/dist/cjs/gov-error-code.cjs.entry.js +31 -0
  64. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -0
  65. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +245 -0
  66. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -0
  67. package/dist/cjs/gov-form-checkbox.cjs.entry.js +131 -0
  68. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -0
  69. package/dist/cjs/gov-form-control.cjs.entry.js +107 -0
  70. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -0
  71. package/dist/cjs/gov-form-file.cjs.entry.js +246 -0
  72. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -0
  73. package/dist/cjs/gov-form-group.cjs.entry.js +59 -0
  74. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -0
  75. package/dist/cjs/gov-form-input.cjs.entry.js +194 -0
  76. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -0
  77. package/dist/cjs/gov-form-label.cjs.entry.js +30 -0
  78. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
  79. package/dist/cjs/gov-form-multi-select.cjs.entry.js +304 -0
  80. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -0
  81. package/dist/cjs/gov-form-password-power.cjs.entry.js +28 -0
  82. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -0
  83. package/dist/cjs/gov-form-radio.cjs.entry.js +131 -0
  84. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -0
  85. package/dist/cjs/gov-form-search.cjs.entry.js +32 -0
  86. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -0
  87. package/dist/cjs/gov-form-select.cjs.entry.js +167 -0
  88. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -0
  89. package/dist/cjs/gov-form-switch.cjs.entry.js +131 -0
  90. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -0
  91. package/dist/cjs/gov-grid-item.cjs.entry.js +30 -0
  92. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -0
  93. package/dist/cjs/gov-grid.cjs.entry.js +28 -0
  94. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -0
  95. package/dist/cjs/gov-icon.cjs.entry.js +135 -0
  96. package/dist/cjs/gov-icon.cjs.entry.js.map +1 -0
  97. package/dist/cjs/gov-infobar.cjs.entry.js +92 -0
  98. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -0
  99. package/dist/cjs/gov-layout-column.cjs.entry.js +25 -0
  100. package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -0
  101. package/dist/cjs/gov-layout.cjs.entry.js +34 -0
  102. package/dist/cjs/gov-layout.cjs.entry.js.map +1 -0
  103. package/dist/cjs/gov-loading.cjs.entry.js +30 -0
  104. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -0
  105. package/dist/cjs/gov-message.cjs.entry.js +44 -0
  106. package/dist/cjs/gov-message.cjs.entry.js.map +1 -0
  107. package/dist/cjs/gov-modal.cjs.entry.js +109 -0
  108. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -0
  109. package/dist/cjs/gov-nav-item.cjs.entry.js +39 -0
  110. package/dist/cjs/gov-nav-item.cjs.entry.js.map +1 -0
  111. package/dist/cjs/gov-nav.cjs.entry.js +42 -0
  112. package/dist/cjs/gov-nav.cjs.entry.js.map +1 -0
  113. package/dist/cjs/gov-pagination.cjs.entry.js +228 -0
  114. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -0
  115. package/dist/cjs/gov-prompt.cjs.entry.js +106 -0
  116. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -0
  117. package/dist/cjs/gov-side-nav-item.cjs.entry.js +87 -0
  118. package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -0
  119. package/dist/cjs/gov-side-nav.cjs.entry.js +56 -0
  120. package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -0
  121. package/dist/cjs/gov-skeleton.cjs.entry.js +117 -0
  122. package/dist/cjs/gov-skeleton.cjs.entry.js.map +1 -0
  123. package/dist/cjs/gov-spacer.cjs.entry.js +58 -0
  124. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -0
  125. package/dist/cjs/gov-statsbar-item.cjs.entry.js +40 -0
  126. package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -0
  127. package/dist/cjs/gov-statsbar.cjs.entry.js +53 -0
  128. package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -0
  129. package/dist/cjs/gov-stepper-item.cjs.entry.js +78 -0
  130. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -0
  131. package/dist/cjs/gov-stepper.cjs.entry.js +51 -0
  132. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -0
  133. package/dist/cjs/gov-tabs-item.cjs.entry.js +53 -0
  134. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -0
  135. package/dist/cjs/gov-tabs.cjs.entry.js +198 -0
  136. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -0
  137. package/dist/cjs/gov-tag.cjs.entry.js +57 -0
  138. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -0
  139. package/dist/cjs/gov-tile.cjs.entry.js +42 -0
  140. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -0
  141. package/dist/cjs/gov-tiles.cjs.entry.js +33 -0
  142. package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -0
  143. package/dist/cjs/gov-toast.cjs.entry.js +101 -0
  144. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -0
  145. package/dist/cjs/gov-tooltip-content.cjs.entry.js +54 -0
  146. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -0
  147. package/dist/cjs/gov-tooltip.cjs.entry.js +223 -0
  148. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -0
  149. package/dist/cjs/gov-wizard-item.cjs.entry.js +115 -0
  150. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -0
  151. package/dist/cjs/gov-wizard.cjs.entry.js +69 -0
  152. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -0
  153. package/dist/cjs/gov.log-b842920d.js +28 -0
  154. package/dist/cjs/gov.log-b842920d.js.map +1 -0
  155. package/dist/cjs/helpers-2c870ff5.js +19 -0
  156. package/dist/cjs/helpers-2c870ff5.js.map +1 -0
  157. package/dist/cjs/index-7b6bba34.js +2713 -0
  158. package/dist/cjs/index-7b6bba34.js.map +1 -0
  159. package/dist/cjs/index.cjs.js +4 -0
  160. package/dist/cjs/index.cjs.js.map +1 -0
  161. package/dist/cjs/loader.cjs.js +15 -0
  162. package/dist/cjs/loader.cjs.js.map +1 -0
  163. package/dist/cjs/props-d6146e54.js +16 -0
  164. package/dist/cjs/props-d6146e54.js.map +1 -0
  165. package/dist/cjs/sizes-79872c2a.js +18 -0
  166. package/dist/cjs/sizes-79872c2a.js.map +1 -0
  167. package/dist/cjs/string.utils-0f08c48c.js +24 -0
  168. package/dist/cjs/string.utils-0f08c48c.js.map +1 -0
  169. package/dist/cjs/template-9534c584.js +132 -0
  170. package/dist/cjs/template-9534c584.js.map +1 -0
  171. package/dist/cjs/utils-c9b1bba3.js +41 -0
  172. package/dist/cjs/utils-c9b1bba3.js.map +1 -0
  173. package/dist/cjs/variants-f5ffeef3.js +18 -0
  174. package/dist/cjs/variants-f5ffeef3.js.map +1 -0
  175. package/dist/cjs/wcag-e6257f27.js +67 -0
  176. package/dist/cjs/wcag-e6257f27.js.map +1 -0
  177. package/dist/cjs/win-5521073d.js +39 -0
  178. package/dist/cjs/win-5521073d.js.map +1 -0
  179. package/dist/collection/collection-manifest.json +71 -0
  180. package/dist/collection/components/gov-accordion/constants.js +21 -0
  181. package/dist/collection/components/gov-accordion/constants.js.map +1 -0
  182. package/dist/collection/components/gov-accordion/gov-accordion-item.css +524 -0
  183. package/dist/collection/components/gov-accordion/gov-accordion-item.js +304 -0
  184. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -0
  185. package/dist/collection/components/gov-accordion/gov-accordion.css +240 -0
  186. package/dist/collection/components/gov-accordion/gov-accordion.js +226 -0
  187. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -0
  188. package/dist/collection/components/gov-accordion/gov-accordion.types.js +2 -0
  189. package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +1 -0
  190. package/dist/collection/components/gov-attachments/constants.js +12 -0
  191. package/dist/collection/components/gov-attachments/constants.js.map +1 -0
  192. package/dist/collection/components/gov-attachments/gov-attachments-item.css +261 -0
  193. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js +2 -0
  194. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -0
  195. package/dist/collection/components/gov-attachments/gov-attachments-item.js +123 -0
  196. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -0
  197. package/dist/collection/components/gov-attachments/gov-attachments.css +247 -0
  198. package/dist/collection/components/gov-attachments/gov-attachments.js +100 -0
  199. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -0
  200. package/dist/collection/components/gov-backdrop/constants.js +5 -0
  201. package/dist/collection/components/gov-backdrop/constants.js.map +1 -0
  202. package/dist/collection/components/gov-backdrop/gov-backdrop.css +246 -0
  203. package/dist/collection/components/gov-backdrop/gov-backdrop.js +142 -0
  204. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -0
  205. package/dist/collection/components/gov-breadcrumbs/constants.js +4 -0
  206. package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -0
  207. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +306 -0
  208. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js +2 -0
  209. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -0
  210. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +209 -0
  211. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -0
  212. package/dist/collection/components/gov-button/button/constants.js +29 -0
  213. package/dist/collection/components/gov-button/button/constants.js.map +1 -0
  214. package/dist/collection/components/gov-button/button/gov-button.css +1154 -0
  215. package/dist/collection/components/gov-button/button/gov-button.js +885 -0
  216. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -0
  217. package/dist/collection/components/gov-button/button/gov-button.types.js +2 -0
  218. package/dist/collection/components/gov-button/button/gov-button.types.js.map +1 -0
  219. package/dist/collection/components/gov-button/dropdown/constants.js +10 -0
  220. package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -0
  221. package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +264 -0
  222. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +177 -0
  223. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -0
  224. package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js +2 -0
  225. package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +1 -0
  226. package/dist/collection/components/gov-card/constants.js +14 -0
  227. package/dist/collection/components/gov-card/constants.js.map +1 -0
  228. package/dist/collection/components/gov-card/gov-card.css +377 -0
  229. package/dist/collection/components/gov-card/gov-card.js +311 -0
  230. package/dist/collection/components/gov-card/gov-card.js.map +1 -0
  231. package/dist/collection/components/gov-card/interfaces.js +2 -0
  232. package/dist/collection/components/gov-card/interfaces.js.map +1 -0
  233. package/dist/collection/components/gov-chip/constants.js +13 -0
  234. package/dist/collection/components/gov-chip/constants.js.map +1 -0
  235. package/dist/collection/components/gov-chip/gov-chip.css +1255 -0
  236. package/dist/collection/components/gov-chip/gov-chip.js +462 -0
  237. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -0
  238. package/dist/collection/components/gov-container/constants.js +4 -0
  239. package/dist/collection/components/gov-container/constants.js.map +1 -0
  240. package/dist/collection/components/gov-container/gov-container.css +247 -0
  241. package/dist/collection/components/gov-container/gov-container.js +60 -0
  242. package/dist/collection/components/gov-container/gov-container.js.map +1 -0
  243. package/dist/collection/components/gov-control-group/constants.js +7 -0
  244. package/dist/collection/components/gov-control-group/constants.js.map +1 -0
  245. package/dist/collection/components/gov-control-group/gov-control-group.css +280 -0
  246. package/dist/collection/components/gov-control-group/gov-control-group.js +84 -0
  247. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -0
  248. package/dist/collection/components/gov-cookiebar/constants.js +9 -0
  249. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -0
  250. package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +289 -0
  251. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +24 -0
  252. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -0
  253. package/dist/collection/components/gov-empty/constants.js +7 -0
  254. package/dist/collection/components/gov-empty/constants.js.map +1 -0
  255. package/dist/collection/components/gov-empty/gov-empty.css +255 -0
  256. package/dist/collection/components/gov-empty/gov-empty.js +24 -0
  257. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -0
  258. package/dist/collection/components/gov-error-code/constants.js +7 -0
  259. package/dist/collection/components/gov-error-code/constants.js.map +1 -0
  260. package/dist/collection/components/gov-error-code/gov-error-code.css +270 -0
  261. package/dist/collection/components/gov-error-code/gov-error-code.js +24 -0
  262. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -0
  263. package/dist/collection/components/gov-form/autocomplete/constants.js +13 -0
  264. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -0
  265. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +290 -0
  266. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +824 -0
  267. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -0
  268. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js +2 -0
  269. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -0
  270. package/dist/collection/components/gov-form/checkbox/constants.js +9 -0
  271. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -0
  272. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +402 -0
  273. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +442 -0
  274. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -0
  275. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js +2 -0
  276. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +1 -0
  277. package/dist/collection/components/gov-form/control/constants.js +9 -0
  278. package/dist/collection/components/gov-form/control/constants.js.map +1 -0
  279. package/dist/collection/components/gov-form/control/gov-form-control.css +291 -0
  280. package/dist/collection/components/gov-form/control/gov-form-control.js +241 -0
  281. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -0
  282. package/dist/collection/components/gov-form/file/constants.js +10 -0
  283. package/dist/collection/components/gov-form/file/constants.js.map +1 -0
  284. package/dist/collection/components/gov-form/file/gov-form-file.css +301 -0
  285. package/dist/collection/components/gov-form/file/gov-form-file.js +744 -0
  286. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -0
  287. package/dist/collection/components/gov-form/file/gov-form-file.types.js +2 -0
  288. package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -0
  289. package/dist/collection/components/gov-form/group/constants.js +12 -0
  290. package/dist/collection/components/gov-form/group/constants.js.map +1 -0
  291. package/dist/collection/components/gov-form/group/gov-form-group.css +261 -0
  292. package/dist/collection/components/gov-form/group/gov-form-group.js +102 -0
  293. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -0
  294. package/dist/collection/components/gov-form/input/constants.js +29 -0
  295. package/dist/collection/components/gov-form/input/constants.js.map +1 -0
  296. package/dist/collection/components/gov-form/input/gov-form-input.css +523 -0
  297. package/dist/collection/components/gov-form/input/gov-form-input.js +948 -0
  298. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -0
  299. package/dist/collection/components/gov-form/input/gov-form-input.types.js +2 -0
  300. package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +1 -0
  301. package/dist/collection/components/gov-form/label/constants.js +8 -0
  302. package/dist/collection/components/gov-form/label/constants.js.map +1 -0
  303. package/dist/collection/components/gov-form/label/gov-form-label.css +252 -0
  304. package/dist/collection/components/gov-form/label/gov-form-label.js +130 -0
  305. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -0
  306. package/dist/collection/components/gov-form/message/constants.js +9 -0
  307. package/dist/collection/components/gov-form/message/constants.js.map +1 -0
  308. package/dist/collection/components/gov-form/message/gov-form-message.css +262 -0
  309. package/dist/collection/components/gov-form/message/gov-form-message.js +95 -0
  310. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -0
  311. package/dist/collection/components/gov-form/multiselect/constants.js +12 -0
  312. package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -0
  313. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +639 -0
  314. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +936 -0
  315. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -0
  316. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js +2 -0
  317. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -0
  318. package/dist/collection/components/gov-form/password-power/constants.js +6 -0
  319. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -0
  320. package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +275 -0
  321. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +43 -0
  322. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -0
  323. package/dist/collection/components/gov-form/radio/constants.js +11 -0
  324. package/dist/collection/components/gov-form/radio/constants.js.map +1 -0
  325. package/dist/collection/components/gov-form/radio/gov-form-radio.css +401 -0
  326. package/dist/collection/components/gov-form/radio/gov-form-radio.js +442 -0
  327. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -0
  328. package/dist/collection/components/gov-form/radio/gov-form-radio.types.js +2 -0
  329. package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -0
  330. package/dist/collection/components/gov-form/search/constants.js +9 -0
  331. package/dist/collection/components/gov-form/search/constants.js.map +1 -0
  332. package/dist/collection/components/gov-form/search/gov-form-search.css +274 -0
  333. package/dist/collection/components/gov-form/search/gov-form-search.js +51 -0
  334. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -0
  335. package/dist/collection/components/gov-form/select/constants.js +10 -0
  336. package/dist/collection/components/gov-form/select/constants.js.map +1 -0
  337. package/dist/collection/components/gov-form/select/gov-form-select.css +598 -0
  338. package/dist/collection/components/gov-form/select/gov-form-select.js +613 -0
  339. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -0
  340. package/dist/collection/components/gov-form/select/gov-form-select.types.js +2 -0
  341. package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -0
  342. package/dist/collection/components/gov-form/switch/constants.js +10 -0
  343. package/dist/collection/components/gov-form/switch/constants.js.map +1 -0
  344. package/dist/collection/components/gov-form/switch/gov-form-switch.css +440 -0
  345. package/dist/collection/components/gov-form/switch/gov-form-switch.js +442 -0
  346. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -0
  347. package/dist/collection/components/gov-form/switch/gov-form-switch.types.js +2 -0
  348. package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +1 -0
  349. package/dist/collection/components/gov-grid/constants.js +7 -0
  350. package/dist/collection/components/gov-grid/constants.js.map +1 -0
  351. package/dist/collection/components/gov-grid/gov-grid-item.css +437 -0
  352. package/dist/collection/components/gov-grid/gov-grid-item.js +119 -0
  353. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -0
  354. package/dist/collection/components/gov-grid/gov-grid.css +256 -0
  355. package/dist/collection/components/gov-grid/gov-grid.js +65 -0
  356. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -0
  357. package/dist/collection/components/gov-icon/constants.js +11 -0
  358. package/dist/collection/components/gov-icon/constants.js.map +1 -0
  359. package/dist/collection/components/gov-icon/gov-icon.css +250 -0
  360. package/dist/collection/components/gov-icon/gov-icon.js +139 -0
  361. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -0
  362. package/dist/collection/components/gov-icon/helpers.js +14 -0
  363. package/dist/collection/components/gov-icon/helpers.js.map +1 -0
  364. package/dist/collection/components/gov-icon/list.js +282 -0
  365. package/dist/collection/components/gov-icon/list.js.map +1 -0
  366. package/dist/collection/components/gov-infobar/constants.js +13 -0
  367. package/dist/collection/components/gov-infobar/constants.js.map +1 -0
  368. package/dist/collection/components/gov-infobar/gov-infobar.css +388 -0
  369. package/dist/collection/components/gov-infobar/gov-infobar.js +270 -0
  370. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -0
  371. package/dist/collection/components/gov-infobar/gov-infobar.types.js +2 -0
  372. package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +1 -0
  373. package/dist/collection/components/gov-layout/constants.js +19 -0
  374. package/dist/collection/components/gov-layout/constants.js.map +1 -0
  375. package/dist/collection/components/gov-layout/gov-layout-column.css +237 -0
  376. package/dist/collection/components/gov-layout/gov-layout-column.js +24 -0
  377. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -0
  378. package/dist/collection/components/gov-layout/gov-layout.css +282 -0
  379. package/dist/collection/components/gov-layout/gov-layout.js +102 -0
  380. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -0
  381. package/dist/collection/components/gov-loading/loading/constants.js +6 -0
  382. package/dist/collection/components/gov-loading/loading/constants.js.map +1 -0
  383. package/dist/collection/components/gov-loading/loading/gov-loading.css +261 -0
  384. package/dist/collection/components/gov-loading/loading/gov-loading.js +24 -0
  385. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -0
  386. package/dist/collection/components/gov-loading/skeleton/constants.js +20 -0
  387. package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -0
  388. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +300 -0
  389. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +271 -0
  390. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -0
  391. package/dist/collection/components/gov-message/constants.js +10 -0
  392. package/dist/collection/components/gov-message/constants.js.map +1 -0
  393. package/dist/collection/components/gov-message/gov-message.css +319 -0
  394. package/dist/collection/components/gov-message/gov-message.js +64 -0
  395. package/dist/collection/components/gov-message/gov-message.js.map +1 -0
  396. package/dist/collection/components/gov-modal/constants.js +15 -0
  397. package/dist/collection/components/gov-modal/constants.js.map +1 -0
  398. package/dist/collection/components/gov-modal/gov-modal.css +345 -0
  399. package/dist/collection/components/gov-modal/gov-modal.js +358 -0
  400. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -0
  401. package/dist/collection/components/gov-nav/constants.js +9 -0
  402. package/dist/collection/components/gov-nav/constants.js.map +1 -0
  403. package/dist/collection/components/gov-nav/gov-nav-item.css +288 -0
  404. package/dist/collection/components/gov-nav/gov-nav-item.js +68 -0
  405. package/dist/collection/components/gov-nav/gov-nav-item.js.map +1 -0
  406. package/dist/collection/components/gov-nav/gov-nav.css +254 -0
  407. package/dist/collection/components/gov-nav/gov-nav.js +98 -0
  408. package/dist/collection/components/gov-nav/gov-nav.js.map +1 -0
  409. package/dist/collection/components/gov-pagination/constants.js +21 -0
  410. package/dist/collection/components/gov-pagination/constants.js.map +1 -0
  411. package/dist/collection/components/gov-pagination/gov-pagination.css +394 -0
  412. package/dist/collection/components/gov-pagination/gov-pagination.js +535 -0
  413. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -0
  414. package/dist/collection/components/gov-pagination/gov-pagination.types.js +2 -0
  415. package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +1 -0
  416. package/dist/collection/components/gov-pagination/pagination.js +55 -0
  417. package/dist/collection/components/gov-pagination/pagination.js.map +1 -0
  418. package/dist/collection/components/gov-promp/constants.js +13 -0
  419. package/dist/collection/components/gov-promp/constants.js.map +1 -0
  420. package/dist/collection/components/gov-promp/gov-prompt.css +348 -0
  421. package/dist/collection/components/gov-promp/gov-prompt.js +337 -0
  422. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -0
  423. package/dist/collection/components/gov-side-nav/constants.js +16 -0
  424. package/dist/collection/components/gov-side-nav/constants.js.map +1 -0
  425. package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +384 -0
  426. package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js +2 -0
  427. package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js.map +1 -0
  428. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +336 -0
  429. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -0
  430. package/dist/collection/components/gov-side-nav/gov-side-nav.css +237 -0
  431. package/dist/collection/components/gov-side-nav/gov-side-nav.js +171 -0
  432. package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -0
  433. package/dist/collection/components/gov-spacer/constants.js +15 -0
  434. package/dist/collection/components/gov-spacer/constants.js.map +1 -0
  435. package/dist/collection/components/gov-spacer/gov-spacer.css +302 -0
  436. package/dist/collection/components/gov-spacer/gov-spacer.js +97 -0
  437. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -0
  438. package/dist/collection/components/gov-statsbar/constants.js +18 -0
  439. package/dist/collection/components/gov-statsbar/constants.js.map +1 -0
  440. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +296 -0
  441. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +66 -0
  442. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -0
  443. package/dist/collection/components/gov-statsbar/gov-statsbar.css +281 -0
  444. package/dist/collection/components/gov-statsbar/gov-statsbar.js +104 -0
  445. package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -0
  446. package/dist/collection/components/gov-stepper/constants.js +21 -0
  447. package/dist/collection/components/gov-stepper/constants.js.map +1 -0
  448. package/dist/collection/components/gov-stepper/gov-stepper-item.css +467 -0
  449. package/dist/collection/components/gov-stepper/gov-stepper-item.d.js +2 -0
  450. package/dist/collection/components/gov-stepper/gov-stepper-item.d.js.map +1 -0
  451. package/dist/collection/components/gov-stepper/gov-stepper-item.js +250 -0
  452. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -0
  453. package/dist/collection/components/gov-stepper/gov-stepper.css +237 -0
  454. package/dist/collection/components/gov-stepper/gov-stepper.js +99 -0
  455. package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -0
  456. package/dist/collection/components/gov-tabs/constants.js +25 -0
  457. package/dist/collection/components/gov-tabs/constants.js.map +1 -0
  458. package/dist/collection/components/gov-tabs/gov-tabs-item.css +238 -0
  459. package/dist/collection/components/gov-tabs/gov-tabs-item.js +186 -0
  460. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -0
  461. package/dist/collection/components/gov-tabs/gov-tabs.css +389 -0
  462. package/dist/collection/components/gov-tabs/gov-tabs.js +440 -0
  463. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -0
  464. package/dist/collection/components/gov-tabs/gov-tabs.types.js +2 -0
  465. package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -0
  466. package/dist/collection/components/gov-tag/constants.js +4 -0
  467. package/dist/collection/components/gov-tag/constants.js.map +1 -0
  468. package/dist/collection/components/gov-tag/gov-tag.css +1259 -0
  469. package/dist/collection/components/gov-tag/gov-tag.js +157 -0
  470. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -0
  471. package/dist/collection/components/gov-tile/constants.js +10 -0
  472. package/dist/collection/components/gov-tile/constants.js.map +1 -0
  473. package/dist/collection/components/gov-tile/container/constants.js +4 -0
  474. package/dist/collection/components/gov-tile/container/constants.js.map +1 -0
  475. package/dist/collection/components/gov-tile/container/gov-tiles.css +319 -0
  476. package/dist/collection/components/gov-tile/container/gov-tiles.js +70 -0
  477. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +1 -0
  478. package/dist/collection/components/gov-tile/gov-tile.css +314 -0
  479. package/dist/collection/components/gov-tile/gov-tile.js +108 -0
  480. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -0
  481. package/dist/collection/components/gov-toast/constants.js +13 -0
  482. package/dist/collection/components/gov-toast/constants.js.map +1 -0
  483. package/dist/collection/components/gov-toast/gov-toast.css +403 -0
  484. package/dist/collection/components/gov-toast/gov-toast.js +267 -0
  485. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -0
  486. package/dist/collection/components/gov-tooltip/constants.js +19 -0
  487. package/dist/collection/components/gov-tooltip/constants.js.map +1 -0
  488. package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +348 -0
  489. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +159 -0
  490. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -0
  491. package/dist/collection/components/gov-tooltip/gov-tooltip.css +241 -0
  492. package/dist/collection/components/gov-tooltip/gov-tooltip.js +396 -0
  493. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -0
  494. package/dist/collection/components/gov-wizard/constants.js +20 -0
  495. package/dist/collection/components/gov-wizard/constants.js.map +1 -0
  496. package/dist/collection/components/gov-wizard/gov-wizard-item.css +474 -0
  497. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js +2 -0
  498. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -0
  499. package/dist/collection/components/gov-wizard/gov-wizard-item.js +387 -0
  500. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -0
  501. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js +2 -0
  502. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -0
  503. package/dist/collection/components/gov-wizard/gov-wizard.css +240 -0
  504. package/dist/collection/components/gov-wizard/gov-wizard.js +173 -0
  505. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -0
  506. package/dist/collection/core/constants/sizes.js +15 -0
  507. package/dist/collection/core/constants/sizes.js.map +1 -0
  508. package/dist/collection/core/constants/tags.js +14 -0
  509. package/dist/collection/core/constants/tags.js.map +1 -0
  510. package/dist/collection/core/constants/tokens.js +17 -0
  511. package/dist/collection/core/constants/tokens.js.map +1 -0
  512. package/dist/collection/core/constants/variants.js +15 -0
  513. package/dist/collection/core/constants/variants.js.map +1 -0
  514. package/dist/collection/data/color-definitions.js +307 -0
  515. package/dist/collection/data/font-definitions.js +94 -0
  516. package/dist/collection/helpers/Dom/form.js +72 -0
  517. package/dist/collection/helpers/Dom/form.js.map +1 -0
  518. package/dist/collection/helpers/Dom/form.types.js +2 -0
  519. package/dist/collection/helpers/Dom/form.types.js.map +1 -0
  520. package/dist/collection/helpers/Dom/template.js +120 -0
  521. package/dist/collection/helpers/Dom/template.js.map +1 -0
  522. package/dist/collection/helpers/Dom/template.types.js +2 -0
  523. package/dist/collection/helpers/Dom/template.types.js.map +1 -0
  524. package/dist/collection/helpers/Dom/win.js +27 -0
  525. package/dist/collection/helpers/Dom/win.js.map +1 -0
  526. package/dist/collection/helpers/Fragment.js +2 -0
  527. package/dist/collection/helpers/Fragment.js.map +1 -0
  528. package/dist/collection/helpers/Log/gov.log.js +21 -0
  529. package/dist/collection/helpers/Log/gov.log.js.map +1 -0
  530. package/dist/collection/helpers/Validate/props.js +10 -0
  531. package/dist/collection/helpers/Validate/props.js.map +1 -0
  532. package/dist/collection/helpers/Validate/wcag.js +58 -0
  533. package/dist/collection/helpers/Validate/wcag.js.map +1 -0
  534. package/dist/collection/index.js +2 -0
  535. package/dist/collection/index.js.map +1 -0
  536. package/dist/collection/pages/Accordion.js +239 -0
  537. package/dist/collection/pages/Accordion.js.map +1 -0
  538. package/dist/collection/pages/Breadcrumbs.js +37 -0
  539. package/dist/collection/pages/Breadcrumbs.js.map +1 -0
  540. package/dist/collection/pages/Button.js +1346 -0
  541. package/dist/collection/pages/Button.js.map +1 -0
  542. package/dist/collection/pages/Card.js +104 -0
  543. package/dist/collection/pages/Card.js.map +1 -0
  544. package/dist/collection/pages/Chip.js +381 -0
  545. package/dist/collection/pages/Chip.js.map +1 -0
  546. package/dist/collection/pages/Container.js +15 -0
  547. package/dist/collection/pages/Container.js.map +1 -0
  548. package/dist/collection/pages/ControlGroup.js +301 -0
  549. package/dist/collection/pages/ControlGroup.js.map +1 -0
  550. package/dist/collection/pages/Cookiebar.js +29 -0
  551. package/dist/collection/pages/Cookiebar.js.map +1 -0
  552. package/dist/collection/pages/Empty.js +43 -0
  553. package/dist/collection/pages/Empty.js.map +1 -0
  554. package/dist/collection/pages/Error.js +16 -0
  555. package/dist/collection/pages/Error.js.map +1 -0
  556. package/dist/collection/pages/FormLabel.js +13 -0
  557. package/dist/collection/pages/FormLabel.js.map +1 -0
  558. package/dist/collection/pages/FormMessage.js +82 -0
  559. package/dist/collection/pages/FormMessage.js.map +1 -0
  560. package/dist/collection/pages/Forms.js +1584 -0
  561. package/dist/collection/pages/Forms.js.map +1 -0
  562. package/dist/collection/pages/FormsRestructure.js +13 -0
  563. package/dist/collection/pages/FormsRestructure.js.map +1 -0
  564. package/dist/collection/pages/Grid.js +92 -0
  565. package/dist/collection/pages/Grid.js.map +1 -0
  566. package/dist/collection/pages/Home.js +51 -0
  567. package/dist/collection/pages/Home.js.map +1 -0
  568. package/dist/collection/pages/Infobar.js +149 -0
  569. package/dist/collection/pages/Infobar.js.map +1 -0
  570. package/dist/collection/pages/Layout.js +97 -0
  571. package/dist/collection/pages/Layout.js.map +1 -0
  572. package/dist/collection/pages/Loading.js +95 -0
  573. package/dist/collection/pages/Loading.js.map +1 -0
  574. package/dist/collection/pages/Message.js +94 -0
  575. package/dist/collection/pages/Message.js.map +1 -0
  576. package/dist/collection/pages/Modal.js +57 -0
  577. package/dist/collection/pages/Modal.js.map +1 -0
  578. package/dist/collection/pages/Nav.js +30 -0
  579. package/dist/collection/pages/Nav.js.map +1 -0
  580. package/dist/collection/pages/Pagination.js +38 -0
  581. package/dist/collection/pages/Pagination.js.map +1 -0
  582. package/dist/collection/pages/Prompt.js +48 -0
  583. package/dist/collection/pages/Prompt.js.map +1 -0
  584. package/dist/collection/pages/SideNav.js +117 -0
  585. package/dist/collection/pages/SideNav.js.map +1 -0
  586. package/dist/collection/pages/Spacer.js +25 -0
  587. package/dist/collection/pages/Spacer.js.map +1 -0
  588. package/dist/collection/pages/Statsbar.js +202 -0
  589. package/dist/collection/pages/Statsbar.js.map +1 -0
  590. package/dist/collection/pages/Stepper.js +88 -0
  591. package/dist/collection/pages/Stepper.js.map +1 -0
  592. package/dist/collection/pages/Tabs.js +323 -0
  593. package/dist/collection/pages/Tabs.js.map +1 -0
  594. package/dist/collection/pages/Tag.js +253 -0
  595. package/dist/collection/pages/Tag.js.map +1 -0
  596. package/dist/collection/pages/Tiles.js +125 -0
  597. package/dist/collection/pages/Tiles.js.map +1 -0
  598. package/dist/collection/pages/ToastMessage.js +47 -0
  599. package/dist/collection/pages/ToastMessage.js.map +1 -0
  600. package/dist/collection/pages/ToastMessageCountdown.js +47 -0
  601. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -0
  602. package/dist/collection/pages/Tooltip.js +158 -0
  603. package/dist/collection/pages/Tooltip.js.map +1 -0
  604. package/dist/collection/pages/Typography.js +75 -0
  605. package/dist/collection/pages/Typography.js.map +1 -0
  606. package/dist/collection/pages/Wizard.js +88 -0
  607. package/dist/collection/pages/Wizard.js.map +1 -0
  608. package/dist/collection/types/event.types.js +2 -0
  609. package/dist/collection/types/event.types.js.map +1 -0
  610. package/dist/collection/types/interfaces.js +2 -0
  611. package/dist/collection/types/interfaces.js.map +1 -0
  612. package/dist/collection/utils/array.utils.js +7 -0
  613. package/dist/collection/utils/array.utils.js.map +1 -0
  614. package/dist/collection/utils/bool.utils.js +15 -0
  615. package/dist/collection/utils/bool.utils.js.map +1 -0
  616. package/dist/collection/utils/ds.utils.js +5 -0
  617. package/dist/collection/utils/ds.utils.js.map +1 -0
  618. package/dist/collection/utils/file.utils.js +26 -0
  619. package/dist/collection/utils/file.utils.js.map +1 -0
  620. package/dist/collection/utils/helpers.types.js +54 -0
  621. package/dist/collection/utils/helpers.types.js.map +1 -0
  622. package/dist/collection/utils/icon.utils.js +32 -0
  623. package/dist/collection/utils/icon.utils.js.map +1 -0
  624. package/dist/collection/utils/number.utils.js +4 -0
  625. package/dist/collection/utils/number.utils.js.map +1 -0
  626. package/dist/collection/utils/string.utils.js +17 -0
  627. package/dist/collection/utils/string.utils.js.map +1 -0
  628. package/dist/collection/utils/utils.js +35 -0
  629. package/dist/collection/utils/utils.js.map +1 -0
  630. package/dist/components/gov-accordion-item.d.ts +11 -0
  631. package/dist/components/gov-accordion-item.js +2 -0
  632. package/dist/components/gov-accordion-item.js.map +1 -0
  633. package/dist/components/gov-accordion.d.ts +11 -0
  634. package/dist/components/gov-accordion.js +2 -0
  635. package/dist/components/gov-accordion.js.map +1 -0
  636. package/dist/components/gov-attachments-item.d.ts +11 -0
  637. package/dist/components/gov-attachments-item.js +2 -0
  638. package/dist/components/gov-attachments-item.js.map +1 -0
  639. package/dist/components/gov-attachments.d.ts +11 -0
  640. package/dist/components/gov-attachments.js +2 -0
  641. package/dist/components/gov-attachments.js.map +1 -0
  642. package/dist/components/gov-backdrop.d.ts +11 -0
  643. package/dist/components/gov-backdrop.js +2 -0
  644. package/dist/components/gov-backdrop.js.map +1 -0
  645. package/dist/components/gov-breadcrumbs.d.ts +11 -0
  646. package/dist/components/gov-breadcrumbs.js +2 -0
  647. package/dist/components/gov-breadcrumbs.js.map +1 -0
  648. package/dist/components/gov-button.d.ts +11 -0
  649. package/dist/components/gov-button.js +2 -0
  650. package/dist/components/gov-button.js.map +1 -0
  651. package/dist/components/gov-card.d.ts +11 -0
  652. package/dist/components/gov-card.js +2 -0
  653. package/dist/components/gov-card.js.map +1 -0
  654. package/dist/components/gov-chip.d.ts +11 -0
  655. package/dist/components/gov-chip.js +2 -0
  656. package/dist/components/gov-chip.js.map +1 -0
  657. package/dist/components/gov-container.d.ts +11 -0
  658. package/dist/components/gov-container.js +2 -0
  659. package/dist/components/gov-container.js.map +1 -0
  660. package/dist/components/gov-control-group.d.ts +11 -0
  661. package/dist/components/gov-control-group.js +2 -0
  662. package/dist/components/gov-control-group.js.map +1 -0
  663. package/dist/components/gov-cookiebar.d.ts +11 -0
  664. package/dist/components/gov-cookiebar.js +2 -0
  665. package/dist/components/gov-cookiebar.js.map +1 -0
  666. package/dist/components/gov-dropdown.d.ts +11 -0
  667. package/dist/components/gov-dropdown.js +2 -0
  668. package/dist/components/gov-dropdown.js.map +1 -0
  669. package/dist/components/gov-empty.d.ts +11 -0
  670. package/dist/components/gov-empty.js +2 -0
  671. package/dist/components/gov-empty.js.map +1 -0
  672. package/dist/components/gov-error-code.d.ts +11 -0
  673. package/dist/components/gov-error-code.js +2 -0
  674. package/dist/components/gov-error-code.js.map +1 -0
  675. package/dist/components/gov-form-autocomplete.d.ts +11 -0
  676. package/dist/components/gov-form-autocomplete.js +2 -0
  677. package/dist/components/gov-form-autocomplete.js.map +1 -0
  678. package/dist/components/gov-form-checkbox.d.ts +11 -0
  679. package/dist/components/gov-form-checkbox.js +2 -0
  680. package/dist/components/gov-form-checkbox.js.map +1 -0
  681. package/dist/components/gov-form-control.d.ts +11 -0
  682. package/dist/components/gov-form-control.js +2 -0
  683. package/dist/components/gov-form-control.js.map +1 -0
  684. package/dist/components/gov-form-file.d.ts +11 -0
  685. package/dist/components/gov-form-file.js +2 -0
  686. package/dist/components/gov-form-file.js.map +1 -0
  687. package/dist/components/gov-form-group.d.ts +11 -0
  688. package/dist/components/gov-form-group.js +2 -0
  689. package/dist/components/gov-form-group.js.map +1 -0
  690. package/dist/components/gov-form-input.d.ts +11 -0
  691. package/dist/components/gov-form-input.js +2 -0
  692. package/dist/components/gov-form-input.js.map +1 -0
  693. package/dist/components/gov-form-label.d.ts +11 -0
  694. package/dist/components/gov-form-label.js +2 -0
  695. package/dist/components/gov-form-label.js.map +1 -0
  696. package/dist/components/gov-form-message.d.ts +11 -0
  697. package/dist/components/gov-form-message.js +2 -0
  698. package/dist/components/gov-form-message.js.map +1 -0
  699. package/dist/components/gov-form-multi-select.d.ts +11 -0
  700. package/dist/components/gov-form-multi-select.js +2 -0
  701. package/dist/components/gov-form-multi-select.js.map +1 -0
  702. package/dist/components/gov-form-password-power.d.ts +11 -0
  703. package/dist/components/gov-form-password-power.js +2 -0
  704. package/dist/components/gov-form-password-power.js.map +1 -0
  705. package/dist/components/gov-form-radio.d.ts +11 -0
  706. package/dist/components/gov-form-radio.js +2 -0
  707. package/dist/components/gov-form-radio.js.map +1 -0
  708. package/dist/components/gov-form-search.d.ts +11 -0
  709. package/dist/components/gov-form-search.js +2 -0
  710. package/dist/components/gov-form-search.js.map +1 -0
  711. package/dist/components/gov-form-select.d.ts +11 -0
  712. package/dist/components/gov-form-select.js +2 -0
  713. package/dist/components/gov-form-select.js.map +1 -0
  714. package/dist/components/gov-form-switch.d.ts +11 -0
  715. package/dist/components/gov-form-switch.js +2 -0
  716. package/dist/components/gov-form-switch.js.map +1 -0
  717. package/dist/components/gov-grid-item.d.ts +11 -0
  718. package/dist/components/gov-grid-item.js +2 -0
  719. package/dist/components/gov-grid-item.js.map +1 -0
  720. package/dist/components/gov-grid.d.ts +11 -0
  721. package/dist/components/gov-grid.js +2 -0
  722. package/dist/components/gov-grid.js.map +1 -0
  723. package/dist/components/gov-icon.d.ts +11 -0
  724. package/dist/components/gov-icon.js +2 -0
  725. package/dist/components/gov-icon.js.map +1 -0
  726. package/dist/components/gov-infobar.d.ts +11 -0
  727. package/dist/components/gov-infobar.js +2 -0
  728. package/dist/components/gov-infobar.js.map +1 -0
  729. package/dist/components/gov-layout-column.d.ts +11 -0
  730. package/dist/components/gov-layout-column.js +2 -0
  731. package/dist/components/gov-layout-column.js.map +1 -0
  732. package/dist/components/gov-layout.d.ts +11 -0
  733. package/dist/components/gov-layout.js +2 -0
  734. package/dist/components/gov-layout.js.map +1 -0
  735. package/dist/components/gov-loading.d.ts +11 -0
  736. package/dist/components/gov-loading.js +2 -0
  737. package/dist/components/gov-loading.js.map +1 -0
  738. package/dist/components/gov-message.d.ts +11 -0
  739. package/dist/components/gov-message.js +2 -0
  740. package/dist/components/gov-message.js.map +1 -0
  741. package/dist/components/gov-modal.d.ts +11 -0
  742. package/dist/components/gov-modal.js +2 -0
  743. package/dist/components/gov-modal.js.map +1 -0
  744. package/dist/components/gov-nav-item.d.ts +11 -0
  745. package/dist/components/gov-nav-item.js +2 -0
  746. package/dist/components/gov-nav-item.js.map +1 -0
  747. package/dist/components/gov-nav.d.ts +11 -0
  748. package/dist/components/gov-nav.js +2 -0
  749. package/dist/components/gov-nav.js.map +1 -0
  750. package/dist/components/gov-pagination.d.ts +11 -0
  751. package/dist/components/gov-pagination.js +2 -0
  752. package/dist/components/gov-pagination.js.map +1 -0
  753. package/dist/components/gov-prompt.d.ts +11 -0
  754. package/dist/components/gov-prompt.js +2 -0
  755. package/dist/components/gov-prompt.js.map +1 -0
  756. package/dist/components/gov-side-nav-item.d.ts +11 -0
  757. package/dist/components/gov-side-nav-item.js +2 -0
  758. package/dist/components/gov-side-nav-item.js.map +1 -0
  759. package/dist/components/gov-side-nav.d.ts +11 -0
  760. package/dist/components/gov-side-nav.js +2 -0
  761. package/dist/components/gov-side-nav.js.map +1 -0
  762. package/dist/components/gov-skeleton.d.ts +11 -0
  763. package/dist/components/gov-skeleton.js +2 -0
  764. package/dist/components/gov-skeleton.js.map +1 -0
  765. package/dist/components/gov-spacer.d.ts +11 -0
  766. package/dist/components/gov-spacer.js +2 -0
  767. package/dist/components/gov-spacer.js.map +1 -0
  768. package/dist/components/gov-statsbar-item.d.ts +11 -0
  769. package/dist/components/gov-statsbar-item.js +2 -0
  770. package/dist/components/gov-statsbar-item.js.map +1 -0
  771. package/dist/components/gov-statsbar.d.ts +11 -0
  772. package/dist/components/gov-statsbar.js +2 -0
  773. package/dist/components/gov-statsbar.js.map +1 -0
  774. package/dist/components/gov-stepper-item.d.ts +11 -0
  775. package/dist/components/gov-stepper-item.js +2 -0
  776. package/dist/components/gov-stepper-item.js.map +1 -0
  777. package/dist/components/gov-stepper.d.ts +11 -0
  778. package/dist/components/gov-stepper.js +2 -0
  779. package/dist/components/gov-stepper.js.map +1 -0
  780. package/dist/components/gov-tabs-item.d.ts +11 -0
  781. package/dist/components/gov-tabs-item.js +2 -0
  782. package/dist/components/gov-tabs-item.js.map +1 -0
  783. package/dist/components/gov-tabs.d.ts +11 -0
  784. package/dist/components/gov-tabs.js +2 -0
  785. package/dist/components/gov-tabs.js.map +1 -0
  786. package/dist/components/gov-tag.d.ts +11 -0
  787. package/dist/components/gov-tag.js +2 -0
  788. package/dist/components/gov-tag.js.map +1 -0
  789. package/dist/components/gov-tile.d.ts +11 -0
  790. package/dist/components/gov-tile.js +2 -0
  791. package/dist/components/gov-tile.js.map +1 -0
  792. package/dist/components/gov-tiles.d.ts +11 -0
  793. package/dist/components/gov-tiles.js +2 -0
  794. package/dist/components/gov-tiles.js.map +1 -0
  795. package/dist/components/gov-toast.d.ts +11 -0
  796. package/dist/components/gov-toast.js +2 -0
  797. package/dist/components/gov-toast.js.map +1 -0
  798. package/dist/components/gov-tooltip-content.d.ts +11 -0
  799. package/dist/components/gov-tooltip-content.js +2 -0
  800. package/dist/components/gov-tooltip-content.js.map +1 -0
  801. package/dist/components/gov-tooltip.d.ts +11 -0
  802. package/dist/components/gov-tooltip.js +2 -0
  803. package/dist/components/gov-tooltip.js.map +1 -0
  804. package/dist/components/gov-wizard-item.d.ts +11 -0
  805. package/dist/components/gov-wizard-item.js +2 -0
  806. package/dist/components/gov-wizard-item.js.map +1 -0
  807. package/dist/components/gov-wizard.d.ts +11 -0
  808. package/dist/components/gov-wizard.js +2 -0
  809. package/dist/components/gov-wizard.js.map +1 -0
  810. package/dist/components/index.d.ts +33 -0
  811. package/dist/components/index.js +2 -0
  812. package/dist/components/index.js.map +1 -0
  813. package/dist/components/p-003e6cca.js +2 -0
  814. package/dist/components/p-003e6cca.js.map +1 -0
  815. package/dist/components/p-033f8bda.js +2 -0
  816. package/dist/components/p-033f8bda.js.map +1 -0
  817. package/dist/components/p-03990da5.js +2 -0
  818. package/dist/components/p-03990da5.js.map +1 -0
  819. package/dist/components/p-15f4916d.js +2 -0
  820. package/dist/components/p-15f4916d.js.map +1 -0
  821. package/dist/components/p-17ebfe85.js +2 -0
  822. package/dist/components/p-17ebfe85.js.map +1 -0
  823. package/dist/components/p-1c1d0bbe.js +2 -0
  824. package/dist/components/p-1c1d0bbe.js.map +1 -0
  825. package/dist/components/p-24636c53.js +2 -0
  826. package/dist/components/p-24636c53.js.map +1 -0
  827. package/dist/components/p-2af02cbd.js +2 -0
  828. package/dist/components/p-2af02cbd.js.map +1 -0
  829. package/dist/components/p-2bf5b814.js +2 -0
  830. package/dist/components/p-2bf5b814.js.map +1 -0
  831. package/dist/components/p-2dee9951.js +2 -0
  832. package/dist/components/p-2dee9951.js.map +1 -0
  833. package/dist/components/p-3464136c.js +2 -0
  834. package/dist/components/p-3464136c.js.map +1 -0
  835. package/dist/components/p-3c71d697.js +2 -0
  836. package/dist/components/p-3c71d697.js.map +1 -0
  837. package/dist/components/p-4ff831e3.js +2 -0
  838. package/dist/components/p-4ff831e3.js.map +1 -0
  839. package/dist/components/p-53e02bee.js +2 -0
  840. package/dist/components/p-53e02bee.js.map +1 -0
  841. package/dist/components/p-5459708d.js +2 -0
  842. package/dist/components/p-5459708d.js.map +1 -0
  843. package/dist/components/p-55500e5a.js +2 -0
  844. package/dist/components/p-55500e5a.js.map +1 -0
  845. package/dist/components/p-5defdc5e.js +2 -0
  846. package/dist/components/p-5defdc5e.js.map +1 -0
  847. package/dist/components/p-6278531b.js +2 -0
  848. package/dist/components/p-6278531b.js.map +1 -0
  849. package/dist/components/p-6834d779.js +2 -0
  850. package/dist/components/p-6834d779.js.map +1 -0
  851. package/dist/components/p-74b2311a.js +2 -0
  852. package/dist/components/p-74b2311a.js.map +1 -0
  853. package/dist/components/p-7b41bbaf.js +2 -0
  854. package/dist/components/p-7b41bbaf.js.map +1 -0
  855. package/dist/components/p-7ca3be1b.js +2 -0
  856. package/dist/components/p-7ca3be1b.js.map +1 -0
  857. package/dist/components/p-7f2c9830.js +2 -0
  858. package/dist/components/p-7f2c9830.js.map +1 -0
  859. package/dist/components/p-9144dde1.js +2 -0
  860. package/dist/components/p-9144dde1.js.map +1 -0
  861. package/dist/components/p-9a4c910d.js +2 -0
  862. package/dist/components/p-9a4c910d.js.map +1 -0
  863. package/dist/components/p-a6d14a47.js +2 -0
  864. package/dist/components/p-a6d14a47.js.map +1 -0
  865. package/dist/components/p-b72a7bed.js +2 -0
  866. package/dist/components/p-b72a7bed.js.map +1 -0
  867. package/dist/components/p-b9ee51d6.js +2 -0
  868. package/dist/components/p-b9ee51d6.js.map +1 -0
  869. package/dist/components/p-be4aab0e.js +2 -0
  870. package/dist/components/p-be4aab0e.js.map +1 -0
  871. package/dist/components/p-c353678b.js +2 -0
  872. package/dist/components/p-c353678b.js.map +1 -0
  873. package/dist/components/p-db1f0452.js +2 -0
  874. package/dist/components/p-db1f0452.js.map +1 -0
  875. package/dist/components/p-dcb5fb35.js +2 -0
  876. package/dist/components/p-dcb5fb35.js.map +1 -0
  877. package/dist/components/p-dee8dc92.js +2 -0
  878. package/dist/components/p-dee8dc92.js.map +1 -0
  879. package/dist/components/p-efda0473.js +2 -0
  880. package/dist/components/p-efda0473.js.map +1 -0
  881. package/dist/components/p-f8b7ea69.js +2 -0
  882. package/dist/components/p-f8b7ea69.js.map +1 -0
  883. package/dist/components/p-fa1e4aea.js +2 -0
  884. package/dist/components/p-fa1e4aea.js.map +1 -0
  885. package/dist/components/p-ff7365ae.js +2 -0
  886. package/dist/components/p-ff7365ae.js.map +1 -0
  887. package/dist/components/p-ffb7495c.js +2 -0
  888. package/dist/components/p-ffb7495c.js.map +1 -0
  889. package/dist/core/core.css +1 -0
  890. package/dist/core/core.esm.js +2 -0
  891. package/dist/core/core.esm.js.map +1 -0
  892. package/dist/core/index.esm.js +2 -0
  893. package/dist/core/index.esm.js.map +1 -0
  894. package/dist/core/p-0028fadc.entry.js +2 -0
  895. package/dist/core/p-0028fadc.entry.js.map +1 -0
  896. package/dist/core/p-003e6cca.js +2 -0
  897. package/dist/core/p-003e6cca.js.map +1 -0
  898. package/dist/core/p-03990da5.js +2 -0
  899. package/dist/core/p-03990da5.js.map +1 -0
  900. package/dist/core/p-0ab12526.entry.js +2 -0
  901. package/dist/core/p-0ab12526.entry.js.map +1 -0
  902. package/dist/core/p-0c5c6dee.entry.js +2 -0
  903. package/dist/core/p-0c5c6dee.entry.js.map +1 -0
  904. package/dist/core/p-0e5fa8bf.js +2 -0
  905. package/dist/core/p-0e5fa8bf.js.map +1 -0
  906. package/dist/core/p-127af1b4.entry.js +2 -0
  907. package/dist/core/p-127af1b4.entry.js.map +1 -0
  908. package/dist/core/p-13414324.entry.js +2 -0
  909. package/dist/core/p-13414324.entry.js.map +1 -0
  910. package/dist/core/p-148501cc.entry.js +2 -0
  911. package/dist/core/p-148501cc.entry.js.map +1 -0
  912. package/dist/core/p-151f1b89.entry.js +2 -0
  913. package/dist/core/p-151f1b89.entry.js.map +1 -0
  914. package/dist/core/p-17ebfe85.js +2 -0
  915. package/dist/core/p-17ebfe85.js.map +1 -0
  916. package/dist/core/p-1bc2f62c.entry.js +2 -0
  917. package/dist/core/p-1bc2f62c.entry.js.map +1 -0
  918. package/dist/core/p-1c1d0bbe.js +2 -0
  919. package/dist/core/p-1c1d0bbe.js.map +1 -0
  920. package/dist/core/p-1fee1753.entry.js +2 -0
  921. package/dist/core/p-1fee1753.entry.js.map +1 -0
  922. package/dist/core/p-24636c53.js +2 -0
  923. package/dist/core/p-24636c53.js.map +1 -0
  924. package/dist/core/p-2aaf310a.entry.js +2 -0
  925. package/dist/core/p-2aaf310a.entry.js.map +1 -0
  926. package/dist/core/p-2bf5b814.js +2 -0
  927. package/dist/core/p-2bf5b814.js.map +1 -0
  928. package/dist/core/p-30673e46.entry.js +2 -0
  929. package/dist/core/p-30673e46.entry.js.map +1 -0
  930. package/dist/core/p-3464136c.js +2 -0
  931. package/dist/core/p-3464136c.js.map +1 -0
  932. package/dist/core/p-3975851f.entry.js +2 -0
  933. package/dist/core/p-3975851f.entry.js.map +1 -0
  934. package/dist/core/p-4988c0bb.entry.js +2 -0
  935. package/dist/core/p-4988c0bb.entry.js.map +1 -0
  936. package/dist/core/p-4c55142b.js +2 -0
  937. package/dist/core/p-4c55142b.js.map +1 -0
  938. package/dist/core/p-529ce9a4.entry.js +2 -0
  939. package/dist/core/p-529ce9a4.entry.js.map +1 -0
  940. package/dist/core/p-531c350f.entry.js +2 -0
  941. package/dist/core/p-531c350f.entry.js.map +1 -0
  942. package/dist/core/p-53e0ad52.entry.js +2 -0
  943. package/dist/core/p-53e0ad52.entry.js.map +1 -0
  944. package/dist/core/p-54fa7af5.entry.js +2 -0
  945. package/dist/core/p-54fa7af5.entry.js.map +1 -0
  946. package/dist/core/p-55500e5a.js +2 -0
  947. package/dist/core/p-55500e5a.js.map +1 -0
  948. package/dist/core/p-555eaa93.entry.js +2 -0
  949. package/dist/core/p-555eaa93.entry.js.map +1 -0
  950. package/dist/core/p-55cb727e.entry.js +2 -0
  951. package/dist/core/p-55cb727e.entry.js.map +1 -0
  952. package/dist/core/p-5bc604a3.js +3 -0
  953. package/dist/core/p-5bc604a3.js.map +1 -0
  954. package/dist/core/p-5de606f8.js +2 -0
  955. package/dist/core/p-5de606f8.js.map +1 -0
  956. package/dist/core/p-5defdc5e.js +2 -0
  957. package/dist/core/p-5defdc5e.js.map +1 -0
  958. package/dist/core/p-60963ed7.entry.js +2 -0
  959. package/dist/core/p-60963ed7.entry.js.map +1 -0
  960. package/dist/core/p-60d681a6.entry.js +2 -0
  961. package/dist/core/p-60d681a6.entry.js.map +1 -0
  962. package/dist/core/p-6278531b.js +2 -0
  963. package/dist/core/p-6278531b.js.map +1 -0
  964. package/dist/core/p-64c5748e.entry.js +2 -0
  965. package/dist/core/p-64c5748e.entry.js.map +1 -0
  966. package/dist/core/p-67096d72.entry.js +2 -0
  967. package/dist/core/p-67096d72.entry.js.map +1 -0
  968. package/dist/core/p-6834d779.js +2 -0
  969. package/dist/core/p-6834d779.js.map +1 -0
  970. package/dist/core/p-6bf8e7bf.entry.js +2 -0
  971. package/dist/core/p-6bf8e7bf.entry.js.map +1 -0
  972. package/dist/core/p-705efbf1.entry.js +2 -0
  973. package/dist/core/p-705efbf1.entry.js.map +1 -0
  974. package/dist/core/p-728201f5.entry.js +2 -0
  975. package/dist/core/p-728201f5.entry.js.map +1 -0
  976. package/dist/core/p-72c5997f.entry.js +2 -0
  977. package/dist/core/p-72c5997f.entry.js.map +1 -0
  978. package/dist/core/p-74882c70.entry.js +2 -0
  979. package/dist/core/p-74882c70.entry.js.map +1 -0
  980. package/dist/core/p-74b2311a.js +2 -0
  981. package/dist/core/p-74b2311a.js.map +1 -0
  982. package/dist/core/p-7724b535.js +2 -0
  983. package/dist/core/p-7724b535.js.map +1 -0
  984. package/dist/core/p-7f158b6f.entry.js +2 -0
  985. package/dist/core/p-7f158b6f.entry.js.map +1 -0
  986. package/dist/core/p-7f2c9830.js +2 -0
  987. package/dist/core/p-7f2c9830.js.map +1 -0
  988. package/dist/core/p-90c068ff.entry.js +2 -0
  989. package/dist/core/p-90c068ff.entry.js.map +1 -0
  990. package/dist/core/p-9144dde1.js +2 -0
  991. package/dist/core/p-9144dde1.js.map +1 -0
  992. package/dist/core/p-927880d6.entry.js +2 -0
  993. package/dist/core/p-927880d6.entry.js.map +1 -0
  994. package/dist/core/p-9402e4cc.entry.js +2 -0
  995. package/dist/core/p-9402e4cc.entry.js.map +1 -0
  996. package/dist/core/p-9469ecc2.entry.js +2 -0
  997. package/dist/core/p-9469ecc2.entry.js.map +1 -0
  998. package/dist/core/p-984b36f7.entry.js +2 -0
  999. package/dist/core/p-984b36f7.entry.js.map +1 -0
  1000. package/dist/core/p-9a4c910d.js +2 -0
  1001. package/dist/core/p-9a4c910d.js.map +1 -0
  1002. package/dist/core/p-9dab01be.js +2 -0
  1003. package/dist/core/p-9dab01be.js.map +1 -0
  1004. package/dist/core/p-a35484ed.entry.js +2 -0
  1005. package/dist/core/p-a35484ed.entry.js.map +1 -0
  1006. package/dist/core/p-a6d14a47.js +2 -0
  1007. package/dist/core/p-a6d14a47.js.map +1 -0
  1008. package/dist/core/p-ac856de6.entry.js +2 -0
  1009. package/dist/core/p-ac856de6.entry.js.map +1 -0
  1010. package/dist/core/p-adf276b0.entry.js +2 -0
  1011. package/dist/core/p-adf276b0.entry.js.map +1 -0
  1012. package/dist/core/p-b7e0b030.entry.js +2 -0
  1013. package/dist/core/p-b7e0b030.entry.js.map +1 -0
  1014. package/dist/core/p-b8ff6287.entry.js +2 -0
  1015. package/dist/core/p-b8ff6287.entry.js.map +1 -0
  1016. package/dist/core/p-be4aab0e.js +2 -0
  1017. package/dist/core/p-be4aab0e.js.map +1 -0
  1018. package/dist/core/p-be8eec3f.entry.js +2 -0
  1019. package/dist/core/p-be8eec3f.entry.js.map +1 -0
  1020. package/dist/core/p-c6a4ca41.entry.js +2 -0
  1021. package/dist/core/p-c6a4ca41.entry.js.map +1 -0
  1022. package/dist/core/p-c9e1e6fe.entry.js +2 -0
  1023. package/dist/core/p-c9e1e6fe.entry.js.map +1 -0
  1024. package/dist/core/p-ce1486b8.entry.js +2 -0
  1025. package/dist/core/p-ce1486b8.entry.js.map +1 -0
  1026. package/dist/core/p-d2c370d6.entry.js +2 -0
  1027. package/dist/core/p-d2c370d6.entry.js.map +1 -0
  1028. package/dist/core/p-d513468a.entry.js +2 -0
  1029. package/dist/core/p-d513468a.entry.js.map +1 -0
  1030. package/dist/core/p-db1f0452.js +2 -0
  1031. package/dist/core/p-db1f0452.js.map +1 -0
  1032. package/dist/core/p-dcb5fb35.js +2 -0
  1033. package/dist/core/p-dcb5fb35.js.map +1 -0
  1034. package/dist/core/p-dd4445ee.entry.js +2 -0
  1035. package/dist/core/p-dd4445ee.entry.js.map +1 -0
  1036. package/dist/core/p-e4f11ddf.entry.js +2 -0
  1037. package/dist/core/p-e4f11ddf.entry.js.map +1 -0
  1038. package/dist/core/p-eaedc9e3.entry.js +2 -0
  1039. package/dist/core/p-eaedc9e3.entry.js.map +1 -0
  1040. package/dist/core/p-ed580ac7.entry.js +2 -0
  1041. package/dist/core/p-ed580ac7.entry.js.map +1 -0
  1042. package/dist/core/p-f1031bac.entry.js +2 -0
  1043. package/dist/core/p-f1031bac.entry.js.map +1 -0
  1044. package/dist/core/p-f12b1ebe.entry.js +2 -0
  1045. package/dist/core/p-f12b1ebe.entry.js.map +1 -0
  1046. package/dist/core/p-f2206bbb.entry.js +2 -0
  1047. package/dist/core/p-f2206bbb.entry.js.map +1 -0
  1048. package/dist/core/p-f4f969d0.entry.js +2 -0
  1049. package/dist/core/p-f4f969d0.entry.js.map +1 -0
  1050. package/dist/core/p-f59b858f.entry.js +2 -0
  1051. package/dist/core/p-f59b858f.entry.js.map +1 -0
  1052. package/dist/core/p-f7065042.entry.js +2 -0
  1053. package/dist/core/p-f7065042.entry.js.map +1 -0
  1054. package/dist/core/p-f9dcaafb.entry.js +2 -0
  1055. package/dist/core/p-f9dcaafb.entry.js.map +1 -0
  1056. package/dist/core/p-fa1e4aea.js +2 -0
  1057. package/dist/core/p-fa1e4aea.js.map +1 -0
  1058. package/dist/core/p-fc710edb.entry.js +2 -0
  1059. package/dist/core/p-fc710edb.entry.js.map +1 -0
  1060. package/dist/core/p-fddbe065.entry.js +2 -0
  1061. package/dist/core/p-fddbe065.entry.js.map +1 -0
  1062. package/dist/core/p-ff7365ae.js +2 -0
  1063. package/dist/core/p-ff7365ae.js.map +1 -0
  1064. package/dist/core/p-ffb7495c.js +2 -0
  1065. package/dist/core/p-ffb7495c.js.map +1 -0
  1066. package/dist/esm/Fragment-8d8d54fb.js +5 -0
  1067. package/dist/esm/Fragment-8d8d54fb.js.map +1 -0
  1068. package/dist/esm/constants-09bda759.js +25 -0
  1069. package/dist/esm/constants-09bda759.js.map +1 -0
  1070. package/dist/esm/constants-2499979c.js +24 -0
  1071. package/dist/esm/constants-2499979c.js.map +1 -0
  1072. package/dist/esm/constants-27b48cd1.js +22 -0
  1073. package/dist/esm/constants-27b48cd1.js.map +1 -0
  1074. package/dist/esm/constants-2a283e9a.js +18 -0
  1075. package/dist/esm/constants-2a283e9a.js.map +1 -0
  1076. package/dist/esm/constants-2b14bb01.js +10 -0
  1077. package/dist/esm/constants-2b14bb01.js.map +1 -0
  1078. package/dist/esm/constants-34a29ae2.js +33 -0
  1079. package/dist/esm/constants-34a29ae2.js.map +1 -0
  1080. package/dist/esm/constants-3786b01b.js +22 -0
  1081. package/dist/esm/constants-3786b01b.js.map +1 -0
  1082. package/dist/esm/constants-3df712e2.js +13 -0
  1083. package/dist/esm/constants-3df712e2.js.map +1 -0
  1084. package/dist/esm/constants-47d7a8bc.js +17 -0
  1085. package/dist/esm/constants-47d7a8bc.js.map +1 -0
  1086. package/dist/esm/constants-6df4edc4.js +29 -0
  1087. package/dist/esm/constants-6df4edc4.js.map +1 -0
  1088. package/dist/esm/constants-78474786.js +25 -0
  1089. package/dist/esm/constants-78474786.js.map +1 -0
  1090. package/dist/esm/constants-867ac6e2.js +19 -0
  1091. package/dist/esm/constants-867ac6e2.js.map +1 -0
  1092. package/dist/esm/constants-887c5391.js +23 -0
  1093. package/dist/esm/constants-887c5391.js.map +1 -0
  1094. package/dist/esm/constants-d71c09e0.js +12 -0
  1095. package/dist/esm/constants-d71c09e0.js.map +1 -0
  1096. package/dist/esm/constants-ebec7de8.js +12 -0
  1097. package/dist/esm/constants-ebec7de8.js.map +1 -0
  1098. package/dist/esm/core.js +43 -0
  1099. package/dist/esm/core.js.map +1 -0
  1100. package/dist/esm/form-39dc6896.js +145 -0
  1101. package/dist/esm/form-39dc6896.js.map +1 -0
  1102. package/dist/esm/gov-accordion-item.entry.js +98 -0
  1103. package/dist/esm/gov-accordion-item.entry.js.map +1 -0
  1104. package/dist/esm/gov-accordion.entry.js +73 -0
  1105. package/dist/esm/gov-accordion.entry.js.map +1 -0
  1106. package/dist/esm/gov-attachments_3.entry.js +114 -0
  1107. package/dist/esm/gov-attachments_3.entry.js.map +1 -0
  1108. package/dist/esm/gov-backdrop.entry.js +46 -0
  1109. package/dist/esm/gov-backdrop.entry.js.map +1 -0
  1110. package/dist/esm/gov-breadcrumbs.entry.js +69 -0
  1111. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -0
  1112. package/dist/esm/gov-button.entry.js +175 -0
  1113. package/dist/esm/gov-button.entry.js.map +1 -0
  1114. package/dist/esm/gov-card.entry.js +108 -0
  1115. package/dist/esm/gov-card.entry.js.map +1 -0
  1116. package/dist/esm/gov-chip.entry.js +104 -0
  1117. package/dist/esm/gov-chip.entry.js.map +1 -0
  1118. package/dist/esm/gov-container.entry.js +32 -0
  1119. package/dist/esm/gov-container.entry.js.map +1 -0
  1120. package/dist/esm/gov-control-group.entry.js +39 -0
  1121. package/dist/esm/gov-control-group.entry.js.map +1 -0
  1122. package/dist/esm/gov-cookiebar.entry.js +29 -0
  1123. package/dist/esm/gov-cookiebar.entry.js.map +1 -0
  1124. package/dist/esm/gov-dropdown.entry.js +131 -0
  1125. package/dist/esm/gov-dropdown.entry.js.map +1 -0
  1126. package/dist/esm/gov-empty.entry.js +27 -0
  1127. package/dist/esm/gov-empty.entry.js.map +1 -0
  1128. package/dist/esm/gov-error-code.entry.js +27 -0
  1129. package/dist/esm/gov-error-code.entry.js.map +1 -0
  1130. package/dist/esm/gov-form-autocomplete.entry.js +241 -0
  1131. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -0
  1132. package/dist/esm/gov-form-checkbox.entry.js +127 -0
  1133. package/dist/esm/gov-form-checkbox.entry.js.map +1 -0
  1134. package/dist/esm/gov-form-control.entry.js +103 -0
  1135. package/dist/esm/gov-form-control.entry.js.map +1 -0
  1136. package/dist/esm/gov-form-file.entry.js +242 -0
  1137. package/dist/esm/gov-form-file.entry.js.map +1 -0
  1138. package/dist/esm/gov-form-group.entry.js +55 -0
  1139. package/dist/esm/gov-form-group.entry.js.map +1 -0
  1140. package/dist/esm/gov-form-input.entry.js +190 -0
  1141. package/dist/esm/gov-form-input.entry.js.map +1 -0
  1142. package/dist/esm/gov-form-label.entry.js +26 -0
  1143. package/dist/esm/gov-form-label.entry.js.map +1 -0
  1144. package/dist/esm/gov-form-multi-select.entry.js +300 -0
  1145. package/dist/esm/gov-form-multi-select.entry.js.map +1 -0
  1146. package/dist/esm/gov-form-password-power.entry.js +24 -0
  1147. package/dist/esm/gov-form-password-power.entry.js.map +1 -0
  1148. package/dist/esm/gov-form-radio.entry.js +127 -0
  1149. package/dist/esm/gov-form-radio.entry.js.map +1 -0
  1150. package/dist/esm/gov-form-search.entry.js +28 -0
  1151. package/dist/esm/gov-form-search.entry.js.map +1 -0
  1152. package/dist/esm/gov-form-select.entry.js +163 -0
  1153. package/dist/esm/gov-form-select.entry.js.map +1 -0
  1154. package/dist/esm/gov-form-switch.entry.js +127 -0
  1155. package/dist/esm/gov-form-switch.entry.js.map +1 -0
  1156. package/dist/esm/gov-grid-item.entry.js +26 -0
  1157. package/dist/esm/gov-grid-item.entry.js.map +1 -0
  1158. package/dist/esm/gov-grid.entry.js +24 -0
  1159. package/dist/esm/gov-grid.entry.js.map +1 -0
  1160. package/dist/esm/gov-icon.entry.js +131 -0
  1161. package/dist/esm/gov-icon.entry.js.map +1 -0
  1162. package/dist/esm/gov-infobar.entry.js +88 -0
  1163. package/dist/esm/gov-infobar.entry.js.map +1 -0
  1164. package/dist/esm/gov-layout-column.entry.js +21 -0
  1165. package/dist/esm/gov-layout-column.entry.js.map +1 -0
  1166. package/dist/esm/gov-layout.entry.js +30 -0
  1167. package/dist/esm/gov-layout.entry.js.map +1 -0
  1168. package/dist/esm/gov-loading.entry.js +26 -0
  1169. package/dist/esm/gov-loading.entry.js.map +1 -0
  1170. package/dist/esm/gov-message.entry.js +40 -0
  1171. package/dist/esm/gov-message.entry.js.map +1 -0
  1172. package/dist/esm/gov-modal.entry.js +105 -0
  1173. package/dist/esm/gov-modal.entry.js.map +1 -0
  1174. package/dist/esm/gov-nav-item.entry.js +35 -0
  1175. package/dist/esm/gov-nav-item.entry.js.map +1 -0
  1176. package/dist/esm/gov-nav.entry.js +38 -0
  1177. package/dist/esm/gov-nav.entry.js.map +1 -0
  1178. package/dist/esm/gov-pagination.entry.js +224 -0
  1179. package/dist/esm/gov-pagination.entry.js.map +1 -0
  1180. package/dist/esm/gov-prompt.entry.js +102 -0
  1181. package/dist/esm/gov-prompt.entry.js.map +1 -0
  1182. package/dist/esm/gov-side-nav-item.entry.js +83 -0
  1183. package/dist/esm/gov-side-nav-item.entry.js.map +1 -0
  1184. package/dist/esm/gov-side-nav.entry.js +52 -0
  1185. package/dist/esm/gov-side-nav.entry.js.map +1 -0
  1186. package/dist/esm/gov-skeleton.entry.js +113 -0
  1187. package/dist/esm/gov-skeleton.entry.js.map +1 -0
  1188. package/dist/esm/gov-spacer.entry.js +54 -0
  1189. package/dist/esm/gov-spacer.entry.js.map +1 -0
  1190. package/dist/esm/gov-statsbar-item.entry.js +36 -0
  1191. package/dist/esm/gov-statsbar-item.entry.js.map +1 -0
  1192. package/dist/esm/gov-statsbar.entry.js +49 -0
  1193. package/dist/esm/gov-statsbar.entry.js.map +1 -0
  1194. package/dist/esm/gov-stepper-item.entry.js +74 -0
  1195. package/dist/esm/gov-stepper-item.entry.js.map +1 -0
  1196. package/dist/esm/gov-stepper.entry.js +47 -0
  1197. package/dist/esm/gov-stepper.entry.js.map +1 -0
  1198. package/dist/esm/gov-tabs-item.entry.js +49 -0
  1199. package/dist/esm/gov-tabs-item.entry.js.map +1 -0
  1200. package/dist/esm/gov-tabs.entry.js +194 -0
  1201. package/dist/esm/gov-tabs.entry.js.map +1 -0
  1202. package/dist/esm/gov-tag.entry.js +53 -0
  1203. package/dist/esm/gov-tag.entry.js.map +1 -0
  1204. package/dist/esm/gov-tile.entry.js +38 -0
  1205. package/dist/esm/gov-tile.entry.js.map +1 -0
  1206. package/dist/esm/gov-tiles.entry.js +29 -0
  1207. package/dist/esm/gov-tiles.entry.js.map +1 -0
  1208. package/dist/esm/gov-toast.entry.js +97 -0
  1209. package/dist/esm/gov-toast.entry.js.map +1 -0
  1210. package/dist/esm/gov-tooltip-content.entry.js +50 -0
  1211. package/dist/esm/gov-tooltip-content.entry.js.map +1 -0
  1212. package/dist/esm/gov-tooltip.entry.js +219 -0
  1213. package/dist/esm/gov-tooltip.entry.js.map +1 -0
  1214. package/dist/esm/gov-wizard-item.entry.js +111 -0
  1215. package/dist/esm/gov-wizard-item.entry.js.map +1 -0
  1216. package/dist/esm/gov-wizard.entry.js +65 -0
  1217. package/dist/esm/gov-wizard.entry.js.map +1 -0
  1218. package/dist/esm/gov.log-49da0221.js +25 -0
  1219. package/dist/esm/gov.log-49da0221.js.map +1 -0
  1220. package/dist/esm/helpers-bc0fd116.js +17 -0
  1221. package/dist/esm/helpers-bc0fd116.js.map +1 -0
  1222. package/dist/esm/index-eb59f132.js +2682 -0
  1223. package/dist/esm/index-eb59f132.js.map +1 -0
  1224. package/dist/esm/index.js +3 -0
  1225. package/dist/esm/index.js.map +1 -0
  1226. package/dist/esm/loader.js +11 -0
  1227. package/dist/esm/loader.js.map +1 -0
  1228. package/dist/esm/polyfills/core-js.js +11 -0
  1229. package/dist/esm/polyfills/dom.js +79 -0
  1230. package/dist/esm/polyfills/es5-html-element.js +1 -0
  1231. package/dist/esm/polyfills/index.js +34 -0
  1232. package/dist/esm/polyfills/system.js +6 -0
  1233. package/dist/esm/props-a85d9c89.js +14 -0
  1234. package/dist/esm/props-a85d9c89.js.map +1 -0
  1235. package/dist/esm/sizes-6c5943b4.js +18 -0
  1236. package/dist/esm/sizes-6c5943b4.js.map +1 -0
  1237. package/dist/esm/string.utils-f268fc6b.js +20 -0
  1238. package/dist/esm/string.utils-f268fc6b.js.map +1 -0
  1239. package/dist/esm/template-a0067bb6.js +123 -0
  1240. package/dist/esm/template-a0067bb6.js.map +1 -0
  1241. package/dist/esm/utils-c057a3fa.js +35 -0
  1242. package/dist/esm/utils-c057a3fa.js.map +1 -0
  1243. package/dist/esm/variants-2b936d58.js +18 -0
  1244. package/dist/esm/variants-2b936d58.js.map +1 -0
  1245. package/dist/esm/wcag-7d25e12b.js +62 -0
  1246. package/dist/esm/wcag-7d25e12b.js.map +1 -0
  1247. package/dist/esm/win-1dbd3f5c.js +31 -0
  1248. package/dist/esm/win-1dbd3f5c.js.map +1 -0
  1249. package/dist/hydrate/index.d.ts +218 -0
  1250. package/dist/hydrate/index.js +12700 -0
  1251. package/dist/hydrate/package.json +6 -0
  1252. package/dist/index.cjs.js +1 -0
  1253. package/dist/index.js +1 -0
  1254. package/dist/stencil.config.js +97 -0
  1255. package/dist/stencil.config.js.map +1 -0
  1256. package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  1257. package/dist/types/components/gov-accordion/constants.d.ts +22 -0
  1258. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +58 -0
  1259. package/dist/types/components/gov-accordion/gov-accordion.d.ts +42 -0
  1260. package/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
  1261. package/dist/types/components/gov-attachments/constants.d.ts +11 -0
  1262. package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
  1263. package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
  1264. package/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
  1265. package/dist/types/components/gov-backdrop/constants.d.ts +4 -0
  1266. package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +28 -0
  1267. package/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
  1268. package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
  1269. package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
  1270. package/dist/types/components/gov-button/button/constants.d.ts +30 -0
  1271. package/dist/types/components/gov-button/button/gov-button.d.ts +179 -0
  1272. package/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
  1273. package/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
  1274. package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +34 -0
  1275. package/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
  1276. package/dist/types/components/gov-card/constants.d.ts +13 -0
  1277. package/dist/types/components/gov-card/gov-card.d.ts +60 -0
  1278. package/dist/types/components/gov-card/interfaces.d.ts +4 -0
  1279. package/dist/types/components/gov-chip/constants.d.ts +13 -0
  1280. package/dist/types/components/gov-chip/gov-chip.d.ts +93 -0
  1281. package/dist/types/components/gov-container/constants.d.ts +3 -0
  1282. package/dist/types/components/gov-container/gov-container.d.ts +12 -0
  1283. package/dist/types/components/gov-control-group/constants.d.ts +7 -0
  1284. package/dist/types/components/gov-control-group/gov-control-group.d.ts +16 -0
  1285. package/dist/types/components/gov-cookiebar/constants.d.ts +8 -0
  1286. package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
  1287. package/dist/types/components/gov-empty/constants.d.ts +6 -0
  1288. package/dist/types/components/gov-empty/gov-empty.d.ts +6 -0
  1289. package/dist/types/components/gov-error-code/constants.d.ts +6 -0
  1290. package/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
  1291. package/dist/types/components/gov-form/autocomplete/constants.d.ts +14 -0
  1292. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +151 -0
  1293. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
  1294. package/dist/types/components/gov-form/checkbox/constants.d.ts +9 -0
  1295. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +87 -0
  1296. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
  1297. package/dist/types/components/gov-form/control/constants.d.ts +9 -0
  1298. package/dist/types/components/gov-form/control/gov-form-control.d.ts +47 -0
  1299. package/dist/types/components/gov-form/file/constants.d.ts +9 -0
  1300. package/dist/types/components/gov-form/file/gov-form-file.d.ts +142 -0
  1301. package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
  1302. package/dist/types/components/gov-form/group/constants.d.ts +12 -0
  1303. package/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
  1304. package/dist/types/components/gov-form/input/constants.d.ts +30 -0
  1305. package/dist/types/components/gov-form/input/gov-form-input.d.ts +186 -0
  1306. package/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
  1307. package/dist/types/components/gov-form/label/constants.d.ts +8 -0
  1308. package/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
  1309. package/dist/types/components/gov-form/message/constants.d.ts +9 -0
  1310. package/dist/types/components/gov-form/message/gov-form-message.d.ts +19 -0
  1311. package/dist/types/components/gov-form/multiselect/constants.d.ts +13 -0
  1312. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +157 -0
  1313. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +9 -0
  1314. package/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
  1315. package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
  1316. package/dist/types/components/gov-form/radio/constants.d.ts +11 -0
  1317. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +87 -0
  1318. package/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
  1319. package/dist/types/components/gov-form/search/constants.d.ts +9 -0
  1320. package/dist/types/components/gov-form/search/gov-form-search.d.ts +9 -0
  1321. package/dist/types/components/gov-form/select/constants.d.ts +11 -0
  1322. package/dist/types/components/gov-form/select/gov-form-select.d.ts +115 -0
  1323. package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
  1324. package/dist/types/components/gov-form/switch/constants.d.ts +10 -0
  1325. package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +87 -0
  1326. package/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
  1327. package/dist/types/components/gov-grid/constants.d.ts +6 -0
  1328. package/dist/types/components/gov-grid/gov-grid-item.d.ts +26 -0
  1329. package/dist/types/components/gov-grid/gov-grid.d.ts +14 -0
  1330. package/dist/types/components/gov-icon/constants.d.ts +12 -0
  1331. package/dist/types/components/gov-icon/gov-icon.d.ts +23 -0
  1332. package/dist/types/components/gov-icon/helpers.d.ts +5 -0
  1333. package/dist/types/components/gov-icon/list.d.ts +3 -0
  1334. package/dist/types/components/gov-infobar/constants.d.ts +13 -0
  1335. package/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
  1336. package/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
  1337. package/dist/types/components/gov-layout/constants.d.ts +20 -0
  1338. package/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
  1339. package/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
  1340. package/dist/types/components/gov-loading/loading/constants.d.ts +5 -0
  1341. package/dist/types/components/gov-loading/loading/gov-loading.d.ts +6 -0
  1342. package/dist/types/components/gov-loading/skeleton/constants.d.ts +20 -0
  1343. package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +52 -0
  1344. package/dist/types/components/gov-message/constants.d.ts +10 -0
  1345. package/dist/types/components/gov-message/gov-message.d.ts +12 -0
  1346. package/dist/types/components/gov-modal/constants.d.ts +14 -0
  1347. package/dist/types/components/gov-modal/gov-modal.d.ts +70 -0
  1348. package/dist/types/components/gov-nav/constants.d.ts +8 -0
  1349. package/dist/types/components/gov-nav/gov-nav-item.d.ts +12 -0
  1350. package/dist/types/components/gov-nav/gov-nav.d.ts +17 -0
  1351. package/dist/types/components/gov-pagination/constants.d.ts +22 -0
  1352. package/dist/types/components/gov-pagination/gov-pagination.d.ts +103 -0
  1353. package/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
  1354. package/dist/types/components/gov-pagination/pagination.d.ts +12 -0
  1355. package/dist/types/components/gov-promp/constants.d.ts +12 -0
  1356. package/dist/types/components/gov-promp/gov-prompt.d.ts +66 -0
  1357. package/dist/types/components/gov-side-nav/constants.d.ts +15 -0
  1358. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +4 -0
  1359. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +67 -0
  1360. package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +32 -0
  1361. package/dist/types/components/gov-spacer/constants.d.ts +15 -0
  1362. package/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
  1363. package/dist/types/components/gov-statsbar/constants.d.ts +18 -0
  1364. package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +14 -0
  1365. package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +19 -0
  1366. package/dist/types/components/gov-stepper/constants.d.ts +22 -0
  1367. package/dist/types/components/gov-stepper/gov-stepper-item.d.d.ts +4 -0
  1368. package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +48 -0
  1369. package/dist/types/components/gov-stepper/gov-stepper.d.ts +20 -0
  1370. package/dist/types/components/gov-tabs/constants.d.ts +25 -0
  1371. package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +37 -0
  1372. package/dist/types/components/gov-tabs/gov-tabs.d.ts +72 -0
  1373. package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +8 -0
  1374. package/dist/types/components/gov-tag/constants.d.ts +3 -0
  1375. package/dist/types/components/gov-tag/gov-tag.d.ts +30 -0
  1376. package/dist/types/components/gov-tile/constants.d.ts +9 -0
  1377. package/dist/types/components/gov-tile/container/constants.d.ts +3 -0
  1378. package/dist/types/components/gov-tile/container/gov-tiles.d.ts +15 -0
  1379. package/dist/types/components/gov-tile/gov-tile.d.ts +21 -0
  1380. package/dist/types/components/gov-toast/constants.d.ts +14 -0
  1381. package/dist/types/components/gov-toast/gov-toast.d.ts +53 -0
  1382. package/dist/types/components/gov-tooltip/constants.d.ts +20 -0
  1383. package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +28 -0
  1384. package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +54 -0
  1385. package/dist/types/components/gov-wizard/constants.d.ts +21 -0
  1386. package/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
  1387. package/dist/types/components/gov-wizard/gov-wizard-item.d.ts +72 -0
  1388. package/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
  1389. package/dist/types/components/gov-wizard/gov-wizard.d.ts +33 -0
  1390. package/dist/types/components.d.ts +4516 -0
  1391. package/dist/types/core/constants/sizes.d.ts +13 -0
  1392. package/dist/types/core/constants/tags.d.ts +12 -0
  1393. package/dist/types/core/constants/tokens.d.ts +1 -0
  1394. package/dist/types/core/constants/variants.d.ts +12 -0
  1395. package/dist/types/helpers/Dom/form.d.ts +3 -0
  1396. package/dist/types/helpers/Dom/form.types.d.ts +11 -0
  1397. package/dist/types/helpers/Dom/template.d.ts +11 -0
  1398. package/dist/types/helpers/Dom/template.types.d.ts +13 -0
  1399. package/dist/types/helpers/Dom/win.d.ts +18 -0
  1400. package/dist/types/helpers/Fragment.d.ts +2 -0
  1401. package/dist/types/helpers/Log/gov.log.d.ts +8 -0
  1402. package/dist/types/helpers/Validate/props.d.ts +1 -0
  1403. package/dist/types/helpers/Validate/wcag.d.ts +4 -0
  1404. package/dist/types/index.d.ts +1 -0
  1405. package/dist/types/interfaces.d.ts +1 -0
  1406. package/dist/types/pages/Accordion.d.ts +3 -0
  1407. package/dist/types/pages/Breadcrumbs.d.ts +3 -0
  1408. package/dist/types/pages/Button.d.ts +3 -0
  1409. package/dist/types/pages/Card.d.ts +3 -0
  1410. package/dist/types/pages/Chip.d.ts +3 -0
  1411. package/dist/types/pages/Container.d.ts +3 -0
  1412. package/dist/types/pages/ControlGroup.d.ts +3 -0
  1413. package/dist/types/pages/Cookiebar.d.ts +3 -0
  1414. package/dist/types/pages/Empty.d.ts +3 -0
  1415. package/dist/types/pages/Error.d.ts +3 -0
  1416. package/dist/types/pages/FormLabel.d.ts +3 -0
  1417. package/dist/types/pages/FormMessage.d.ts +3 -0
  1418. package/dist/types/pages/Forms.d.ts +8 -0
  1419. package/dist/types/pages/FormsRestructure.d.ts +3 -0
  1420. package/dist/types/pages/Grid.d.ts +3 -0
  1421. package/dist/types/pages/Home.d.ts +3 -0
  1422. package/dist/types/pages/Infobar.d.ts +3 -0
  1423. package/dist/types/pages/Layout.d.ts +3 -0
  1424. package/dist/types/pages/Loading.d.ts +3 -0
  1425. package/dist/types/pages/Message.d.ts +3 -0
  1426. package/dist/types/pages/Modal.d.ts +3 -0
  1427. package/dist/types/pages/Nav.d.ts +3 -0
  1428. package/dist/types/pages/Pagination.d.ts +3 -0
  1429. package/dist/types/pages/Prompt.d.ts +3 -0
  1430. package/dist/types/pages/SideNav.d.ts +3 -0
  1431. package/dist/types/pages/Spacer.d.ts +3 -0
  1432. package/dist/types/pages/Statsbar.d.ts +3 -0
  1433. package/dist/types/pages/Stepper.d.ts +3 -0
  1434. package/dist/types/pages/Tabs.d.ts +3 -0
  1435. package/dist/types/pages/Tag.d.ts +3 -0
  1436. package/dist/types/pages/Tiles.d.ts +3 -0
  1437. package/dist/types/pages/ToastMessage.d.ts +3 -0
  1438. package/dist/types/pages/ToastMessageCountdown.d.ts +3 -0
  1439. package/dist/types/pages/Tooltip.d.ts +3 -0
  1440. package/dist/types/pages/Typography.d.ts +3 -0
  1441. package/dist/types/pages/Wizard.d.ts +3 -0
  1442. package/dist/types/stencil-public-runtime.d.ts +1652 -0
  1443. package/dist/types/types/event.types.d.ts +4 -0
  1444. package/dist/types/types/interfaces.d.ts +2 -0
  1445. package/dist/types/utils/array.utils.d.ts +1 -0
  1446. package/dist/types/utils/bool.utils.d.ts +1 -0
  1447. package/dist/types/utils/ds.utils.d.ts +1 -0
  1448. package/dist/types/utils/file.utils.d.ts +3 -0
  1449. package/dist/types/utils/helpers.types.d.ts +49 -0
  1450. package/dist/types/utils/icon.utils.d.ts +4 -0
  1451. package/dist/types/utils/number.utils.d.ts +1 -0
  1452. package/dist/types/utils/string.utils.d.ts +3 -0
  1453. package/dist/types/utils/utils.d.ts +20 -0
  1454. package/loader/cdn.js +3 -0
  1455. package/loader/index.cjs.js +3 -0
  1456. package/loader/index.d.ts +21 -0
  1457. package/loader/index.es2017.js +3 -0
  1458. package/loader/index.js +4 -0
  1459. package/loader/package.json +11 -0
  1460. package/package.json +2 -2
  1461. package/LICENSE +0 -21
  1462. package/readme.md +0 -8
@@ -0,0 +1,2 @@
1
+ import{r,h as e,a as o,g as a}from"./p-5bc604a3.js";import{v as s}from"./p-dcb5fb35.js";import{V as g}from"./p-ff7365ae.js";import{p as v}from"./p-03990da5.js";import{g as n}from"./p-5de606f8.js";import"./p-7f2c9830.js";import"./p-003e6cca.js";v(g,["PRIMARY","SECONDARY","WARNING","ERROR","SUCCESS"]);const i={root:"gov-message",icon:"gov-message__icon",content:"gov-message__content",close:"gov-message__close"};const t='.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-message{position:relative;display:flex;gap:1rem;flex-direction:column;padding:0.75rem 1rem;border-left:0.25rem solid transparent;background:var(--gov-toast-message-bg, var(--gov-color-neutral-white))}.gov-message__icon{flex:0 0 1.25rem;width:1.25rem;height:1.25rem}.gov-message__content{flex:1 1 auto}.gov-message__content>*:last-child{margin-bottom:0}.gov-message__content p{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)}@media (min-width: 30em){.gov-message{flex-direction:row}}.gov-message[shadow=""],.gov-message[shadow=true i],.gov-message[shadow="1"]{box-shadow:var(--gov-message-box-shadow, 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1))}.gov-message[variant=warning]{border-left-color:var(--gov-message-warning-color, var(--gov-color-warning));background:var(--gov-message-warning-bg-color, var(--gov-color-warning-100))}.gov-message[variant=warning] .gov-message__icon{color:var(--gov-message-warning-color, var(--gov-color-warning))}.gov-message[variant=warning][inverse=""],.gov-message[variant=warning][inverse=true i],.gov-message[variant=warning][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=error]{border-left-color:var(--gov-message-error-color, var(--gov-color-error));background:var(--gov-message-error-bg-color, var(--gov-color-error-100))}.gov-message[variant=error] .gov-message__icon{color:var(--gov-message-error-color, var(--gov-color-error))}.gov-message[variant=error][inverse=""],.gov-message[variant=error][inverse=true i],.gov-message[variant=error][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=secondary]{border-left-color:var(--gov-message-secondary-color, var(--gov-color-secondary));background:var(--gov-message-secondary-bg-color, var(--gov-color-secondary-200))}.gov-message[variant=secondary] .gov-message__icon{color:var(--gov-message-secondary-color, var(--gov-color-secondary))}.gov-message[variant=secondary][inverse=""],.gov-message[variant=secondary][inverse=true i],.gov-message[variant=secondary][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=success]{border-left-color:var(--gov-message-success-color, var(--gov-color-success));background:var(--gov-message-success-bg-color, var(--gov-color-success-100))}.gov-message[variant=success] .gov-message__icon{color:var(--gov-message-success-color, var(--gov-color-success))}.gov-message[variant=success][inverse=""],.gov-message[variant=success][inverse=true i],.gov-message[variant=success][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=primary]{border-left-color:var(--gov-message-primary-color, var(--gov-color-primary));background:var(--gov-message-primary-bg-color, var(--gov-color-primary-100))}.gov-message[variant=primary] .gov-message__icon{color:var(--gov-message-primary-color, var(--gov-color-primary))}.gov-message[variant=primary][inverse=""],.gov-message[variant=primary][inverse=true i],.gov-message[variant=primary][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}';const c=class{constructor(e){r(this,e);this.variant=g.PRIMARY;this.h=n(this.host)}validateVariant(r){s(g,r,i.root)}render(){return e(o,{class:this.h.classes(i.root),variant:this.variant,role:"alert"},this.h.hasSlot("icon")&&e("span",{class:i.icon},e("slot",{name:"icon"})),e("div",{class:i.content},e("slot",null)))}get host(){return a(this)}static get watchers(){return{variant:["validateVariant"]}}};c.style=t;export{c as gov_message};
2
+ //# sourceMappingURL=p-60d681a6.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pick","Variants","MessageClass","root","icon","content","close","govMessageCss","GovMessage","constructor","hostRef","PRIMARY","this","h","govHost","host","validateVariant","newValue","validateProp","render","Host","class","classes","variant","role","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.scss?tag=gov-message","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type MessageVariantType = `${ValueOf<typeof MessageVariants>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\ticon: 'gov-message__icon',\n\tcontent: 'gov-message__content',\n\tclose: 'gov-message__close',\n}\n","/*\n * Alert\n */\n\n@import \"../gov-toast/gov-toast-message-core.scss\";\n$class: \".gov-message\";\n\n#{$class} {\n\t@include toast-message-core;\n\n\t// VARIANTS\n\t@include parameter(\"shadow\") {\n\t\tbox-shadow: $message-box-shadow;\n\t}\n\t@each $variant, $definitions in $message-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tborder-left-color: get(\"color\", $definitions);\n\t\t\tbackground: get(\"bg-color\", $definitions);\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\tcolor: get(\"color\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tbackground: $message-bg-inverse;\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 { MessageClass, MessageVariantType } from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Variants } from \"../../core/constants/variants\"\n\n@Component({\n\ttag: \"gov-message\",\n\tstyleUrl: \"gov-message.scss\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly variant: MessageVariantType = Variants.PRIMARY\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(Variants, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} variant={this.variant} role=\"alert\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<span class={MessageClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.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":"oPAI+BA,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,YAGpF,MAAMC,EAAe,CAC3BC,KAAM,cACNC,KAAM,oBACNC,QAAS,uBACTC,MAAO,sBCXR,MAAMC,EAAgB,oiH,MCWTC,EAAU,MAGtB,WAAAC,CAAAC,G,uBAS+CT,EAASU,QARvDC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAWvB,eAAAC,CAAgBC,GACfC,EAAajB,EAAUgB,EAAUf,EAAaC,K,CAG/C,MAAAgB,GACC,OACCN,EAACO,EAAI,CAACC,MAAOT,KAAKC,EAAES,QAAQpB,EAAaC,MAAOoB,QAASX,KAAKW,QAASC,KAAK,SAC1EZ,KAAKC,EAAEY,QAAQ,SACfZ,EAAA,QAAMQ,MAAOnB,EAAaE,MACzBS,EAAA,QAAMa,KAAK,UAIbb,EAAA,OAAKQ,MAAOnB,EAAaG,SACxBQ,EAAA,c"}
@@ -0,0 +1,2 @@
1
+ import{V as o}from"./p-ff7365ae.js";import{p as s}from"./p-03990da5.js";const a=s(o,["SECONDARY","SUCCESS","ERROR","WARNING"]);const e={root:"gov-form-message",content:"gov-form-message__content",icon:"gov-form-message__icon"};export{e as F,a};
2
+ //# sourceMappingURL=p-6278531b.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FormMessageVariants","pick","Variants","FormMessageClass","root","content","icon"],"sources":["../../../packages/core/src/components/gov-form/message/constants.ts"],"sourcesContent":["import { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormMessageVariants = pick(Variants, ['SECONDARY', 'SUCCESS', 'ERROR', 'WARNING'])\nexport type FormMessageVariantType = `${ValueOf<typeof FormMessageVariants>}`\n\nexport const FormMessageClass = {\n\troot: 'gov-form-message',\n\tcontent: 'gov-form-message__content',\n\ticon: 'gov-form-message__icon',\n}\n"],"mappings":"8EAIaA,EAAsBC,EAAKC,EAAU,CAAC,YAAa,UAAW,QAAS,Y,MAGvEC,EAAmB,CAC/BC,KAAM,mBACNC,QAAS,4BACTC,KAAM,iC"}
@@ -0,0 +1,2 @@
1
+ import{r as o,c as a,h as e,a as t,g as i}from"./p-5bc604a3.js";import{g as r,a as s}from"./p-5de606f8.js";import{c as d}from"./p-003e6cca.js";import{a as l}from"./p-7f2c9830.js";import{a as n}from"./p-7724b535.js";import{c as m}from"./p-24636c53.js";import{d as g}from"./p-03990da5.js";import{M as c}from"./p-be4aab0e.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=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=r(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(`[${c.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(c.bodyFix)}hideModal(){this.open=false;document.body.classList.remove(c.bodyFix)}async componentWillRender(){if(this.open){this.showModal()}else{this.hideModal()}}async componentDidRender(){if(d()){await g(500);await this.validateWcag()}}render(){const o=this.labelTag;return e(t,{class:this.h.classes(c.rootPrompt),open:this.open},e("dialog",{class:c.dialog,hidden:!this.open,tabindex:"-1",open:this.open,"aria-modal":"true","aria-hidden":s(!this.open),"aria-labelledby":this.wcagLabelledBy||this.labelId,"aria-describedby":this.wcagDescribedBy||this.contentId,role:this.role},e("div",{class:c.inner},e("div",{class:c.header},this.h.hasSlot("icon")&&e("div",{class:c.icon},e("slot",{name:"icon"})),this.label&&e(o,{class:c.title,id:this.labelId},this.label),e("gov-button",{class:c.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",{name:"x-lg"}))),e("div",{class:c.content,id:this.contentId},e("slot",null)),e("div",{class:c.actions},e("slot",{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",c.root);n(this.wcagDescribedBy,"wcag-described-by",c.root)}get host(){return i(this)}static get watchers(){return{labelTag:["validateLabelTag"],open:["watchOpen"]}}};v.style=h;export{v as gov_prompt};
2
+ //# sourceMappingURL=p-64c5748e.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govPromptCss","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","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,wyF,MCeRC,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,CAACC,MAAOpC,KAAKC,EAAEoC,QAAQzB,EAAW0B,YAAavB,KAAMf,KAAKe,MAC9Dd,EAAA,UACCmC,MAAOxB,EAAW2B,OAClBC,QAASxC,KAAKe,KACd0B,SAAS,KACT1B,KAAMf,KAAKe,KAAI,aACJ,OAAM,cACJ2B,GAAY1C,KAAKe,MAAK,kBAClBf,KAAK2C,gBAAkB3C,KAAKI,QAAO,mBAClCJ,KAAK4C,iBAAmB5C,KAAKM,UAC/CuC,KAAM7C,KAAK6C,MAEX5C,EAAA,OAAKmC,MAAOxB,EAAWkC,OACtB7C,EAAA,OAAKmC,MAAOxB,EAAWmC,QACrB/C,KAAKC,EAAE+C,QAAQ,SACf/C,EAAA,OAAKmC,MAAOxB,EAAWqC,MACtBhD,EAAA,QAAMiD,KAAK,UAGZlD,KAAKmD,OACLlD,EAACgC,EAAQ,CAACG,MAAOxB,EAAWwC,MAAOC,GAAIrD,KAAKI,SAC1CJ,KAAKmD,OAGRlD,EAAA,cACCmC,MAAOxB,EAAW0C,MAClBC,QAAQ,UACRC,UAAWxD,KAAKyD,eAChBd,eAAgB3C,KAAK0D,oBACrBC,KAAK,OACLC,IAAKC,GAAO7D,KAAKgB,YAAc6C,EAAG,eACpB7D,KAAK8D,eAAeC,KAAK/D,OAEvCC,EAAA,YAAUiD,KAAK,WAGjBjD,EAAA,OAAKmC,MAAOxB,EAAWoD,QAASX,GAAIrD,KAAKM,WACxCL,EAAA,cAEDA,EAAA,OAAKmC,MAAOxB,EAAWqD,SACtBhE,EAAA,QAAMiD,KAAK,eAKblD,KAAKe,KACLd,EAAA,6BAA0BD,KAAKyD,eAAc,mBAAoBzD,KAAK0D,oBAAmB,eACpE1D,KAAK8D,eAAeC,KAAK/D,QAC3C,K,CAKC,cAAA8D,CAAeI,GACtBA,EAAEC,kBACFnE,KAAKyB,YACLzB,KAAKoE,SAASC,KAAKH,E,CAOpB,UAAMI,GACLtE,KAAKmB,W,CAON,UAAMoD,GACLvE,KAAKyB,W,CAON,kBAAMM,GACLyC,EAAgBxE,KAAK2C,eAAgB,mBAAoB/B,EAAWC,MACpE2D,EAAgBxE,KAAK4C,gBAAiB,oBAAqBhC,EAAWC,K"}
@@ -0,0 +1,2 @@
1
+ import{r as o,h as t,a as i,g as e}from"./p-5bc604a3.js";import{T as r,a as n,b as a}from"./p-9a4c910d.js";import{a as s}from"./p-5de606f8.js";import"./p-ff7365ae.js";import"./p-55500e5a.js";import"./p-03990da5.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-content{z-index:51;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);position:absolute;display:none;width:-moz-max-content;width:max-content;max-width:var(--gov-tooltip-content-max-width, 21rem);padding:1rem;border-radius:0.1875rem;background-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300));color:var(--gov-tooltip-content-text-color, var(--gov-color-secondary));letter-spacing:0.0125rem;visibility:hidden;opacity:0;transition:opacity 0.2s ease-in}.gov-tooltip-content::before{content:"";position:absolute;display:block;width:0;height:0;border:0.625rem solid transparent}.gov-tooltip-content gov-button{position:absolute;right:0;top:0}.gov-tooltip-content[persist=""],.gov-tooltip-content[persist=true i],.gov-tooltip-content[persist="1"]{padding-right:3.25rem}.gov-tooltip-content[is-visible=""],.gov-tooltip-content[is-visible=true i],.gov-tooltip-content[is-visible="1"]{display:block;opacity:1}.gov-tooltip-content[variant=secondary]{--gov-tooltip-content-bg-color:var(--gov-tooltip-secondary-bg-color, var(--gov-color-secondary));--gov-tooltip-content-text-color:var(--gov-tooltip-secondary-text-color, var(--gov-color-neutral-white))}.gov-tooltip-content[variant=secondary][inverse=""],.gov-tooltip-content[variant=secondary][inverse=true i],.gov-tooltip-content[variant=secondary][inverse="1"]{--gov-tooltip-content-bg-color:var(--gov-color-neutral-white);--gov-tooltip-content-text-color:var(--gov-tooltip-secondary-text-color-inverse, var(--gov-color-secondary))}.gov-tooltip-content[variant=primary]{--gov-tooltip-content-bg-color:var(--gov-tooltip-primary-bg-color, var(--gov-color-primary-300));--gov-tooltip-content-text-color:var(--gov-tooltip-primary-text-color, var(--gov-color-secondary))}.gov-tooltip-content[variant=primary][inverse=""],.gov-tooltip-content[variant=primary][inverse=true i],.gov-tooltip-content[variant=primary][inverse="1"]{--gov-tooltip-content-bg-color:var(--gov-color-neutral-white);--gov-tooltip-content-text-color:var(--gov-tooltip-primary-text-color-inverse, var(--gov-color-primary))}.gov-tooltip-content[size=s]{--gov-tooltip-content-padding:var(--gov-tooltip-s-padding, 0.5rem);--gov-tooltip-content-arrow-size:var(--gov-tooltip-s-arrow-size, 0.4375rem);--gov-tooltip-content-letter-spacing:var(--gov-tooltip-s-letter-spacing, 0.0125rem);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-tooltip-content[size=s][persist=true i]{padding-right:var(--gov-tooltip-s-persist-space, 3rem)}.gov-tooltip-content[size=l]{--gov-tooltip-content-padding:var(--gov-tooltip-l-padding, 1rem);--gov-tooltip-content-arrow-size:var(--gov-tooltip-l-arrow-size, 0.875rem);--gov-tooltip-content-letter-spacing:var(--gov-tooltip-l-letter-spacing, 0.002rem);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)}.gov-tooltip-content[size=l][persist=true i]{padding-right:var(--gov-tooltip-s-persist-space, 4rem)}.gov-tooltip-content[position=top]::before{left:50%;transform:translateX(-50%)}.gov-tooltip-content[position=top]::before{top:100%;border-bottom-width:0;border-top-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300))}.gov-tooltip-content[position=bottom]::before{left:50%;transform:translateX(-50%)}.gov-tooltip-content[position=bottom]::before{bottom:100%;border-top-width:0;border-bottom-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300))}.gov-tooltip-content[position=left]::before{top:50%;transform:translateY(-50%)}.gov-tooltip-content[position=left]::before{left:100%;border-right-width:0;border-left-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300))}.gov-tooltip-content[position=right]::before{top:50%;transform:translateY(-50%)}.gov-tooltip-content[position=right]::before{right:100%;border-left-width:0;border-right-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300))}';const v=class{constructor(t){o(this,t);this.variant=r.PRIMARY;this.size=n._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(o){clearTimeout(this.timeout);if(o===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const o=document.getElementById(this.parentId);if(o){o.hide().catch()}}render(){return t(i,{class:a.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!s(this.isVisible),"is-visible":this.isVisible},t("slot",null),this.persist?t("gov-button",{"on-gov-click":this.hideContent.bind(this),variant:this.variant,size:this.size,type:"base",inverse:this.variant===r.SECONDARY},t("gov-icon",{slot:"left-icon",name:"x-lg",type:"basic"})):null)}get host(){return e(this)}static get watchers(){return{isVisible:["visibleContent"]}}};v.style=l;export{v as gov_tooltip_content};
2
+ //# sourceMappingURL=p-67096d72.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govTooltipContentCss","GovTooltipContent","TooltipVariant","PRIMARY","TooltipSize","_M","visibleContent","newValue","clearTimeout","this","timeout","setTimeout","host","style","visibility","hideContent","isVisible","persist","parentEl","document","getElementById","parentId","hide","catch","render","h","Host","class","TooltipContentClass","root","role","hidden","toBoolAttr","bind","variant","size","type","inverse","SECONDARY","slot","name"],"sources":["../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.scss?tag=gov-tooltip-content","../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"sourcesContent":["/*\n * Tooltip - Content\n */\n\n$class: \".gov-tooltip-content\";\n\n#{$class} {\n\t@include z-index(\"bar\", 1);\n\t@include typography($font-size-m);\n\tposition: absolute;\n\tdisplay: none;\n\twidth: max-content;\n\n\tmax-width: $tooltip-content-max-width;\n\tpadding: rem-calc(16);\n\tborder-radius: rem-calc(3);\n\tbackground-color: $tooltip-content-bg-color;\n\tcolor: $tooltip-content-text-color;\n\tletter-spacing: rem-calc(0.2);\n\tvisibility: hidden;\n\topacity: 0;\n\ttransition: opacity 0.2s ease-in;\n\n\t&::before {\n\t\t@include pseudo();\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder: rem-calc(10) solid transparent;\n\t}\n\n\t& gov-button {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t}\n\n\t@include parameter(\"persist\") {\n\t\tpadding-right: rem-calc(52);\n\t}\n\n\t// STATES\n\t@include parameter(\"is-visible\") {\n\t\tdisplay: block;\n\t\topacity: 1;\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $tooltip-content-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t--#{$prefix}tooltip-content-bg-color: #{get(\"bg-color\", $definitions)};\n\t\t\t--#{$prefix}tooltip-content-text-color: #{get(\"text-color\", $definitions)};\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\t--#{$prefix}tooltip-content-bg-color: #{color(\"neutral.white\")};\n\t\t\t\t--#{$prefix}tooltip-content-text-color: #{get(\"text-color-inverse\", $definitions)};\n\t\t\t}\n\t\t}\n\t}\n\t@each $size, $definitions in $tooltip-content-sizes {\n\t\t&[size=\"#{$size}\"] {\n\t\t\t--#{$prefix}tooltip-content-padding: #{get(\"padding\", $definitions)};\n\t\t\t--#{$prefix}tooltip-content-arrow-size: #{get(\"arrow-size\", $definitions)};\n\t\t\t--#{$prefix}tooltip-content-letter-spacing: #{get(\"letter-spacing\", $definitions)};\n\t\t\t@include typography(get(\"typography\", $definitions));\n\n\t\t\t&[persist=\"true\" i] {\n\t\t\t\tpadding-right: #{get(\"persist-space\", $definitions)};\n\t\t\t}\n\t\t}\n\t}\n\t@each $position, $definitions in $tooltip-content-positions {\n\t\t$oppositeProperty: get(\"oppositeProperty\", $definitions);\n\n\t\t&[position=\"#{$position}\"] {\n\t\t\t&::before {\n\t\t\t\t#{get(\"directionProperty\", $definitions)}: 50%;\n\t\t\t\ttransform: #{get(\"transformFn\", $definitions) }(-50%);\n\t\t\t}\n\n\t\t\t&::before {\n\t\t\t\t#{$position}: 100%;\n\t\t\t\tborder-#{$oppositeProperty}-width: 0;\n\t\t\t\tborder-#{$position}-color: $tooltip-content-bg-color;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipVariant, TooltipVariantType } from \"./constants\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-tooltip-content\",\n\tstyleUrl: \"gov-tooltip-content.scss\",\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly variant?: TooltipVariantType = TooltipVariant.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip is still visible.\n\t */\n\t@Prop() persist?: boolean = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\n\n\t@Watch(\"isVisible\")\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = \"hidden\"\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = \"visible\"\n\t\t}\n\t}\n\n\thideContent() {\n\t\tthis.isVisible = false\n\t\tthis.persist = false\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\n\t\tif (parentEl) {\n\t\t\tparentEl.hide().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={TooltipContentClass.root}\n\t\t\t\trole={\"tooltip\"}\n\t\t\t\thidden={!this.isVisible}\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\n\t\t\t\tis-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t\t{this.persist ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"base\"}\n\t\t\t\t\t\tinverse={this.variant === TooltipVariant.SECONDARY}>\n\t\t\t\t\t\t<gov-icon slot={\"left-icon\"} name={\"x-lg\"} type={\"basic\"}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uNAAA,MAAMA,EAAuB,87I,MCQhBC,EAAiB,M,sCAOmBC,EAAeC,Q,UAIrBC,EAAYC,G,aAI1B,M,eAIkC,M,cAIT,I,CAGrD,cAAAC,CAAeC,GACdC,aAAaC,KAAKC,SAClB,GAAIH,IAAa,MAAO,CACvBE,KAAKC,QAAUC,YAAW,KACzBF,KAAKG,KAAKC,MAAMC,WAAa,QAAQ,GACnC,I,KACG,CACNL,KAAKG,KAAKC,MAAMC,WAAa,S,EAI/B,WAAAC,GACCN,KAAKO,UAAY,MACjBP,KAAKQ,QAAU,MACf,MAAMC,EAAWC,SAASC,eAAeX,KAAKY,UAC9C,GAAIH,EAAU,CACbA,EAASI,OAAOC,O,EAIlB,MAAAC,GACC,OACCC,EAACC,EAAI,CACJC,MAAOC,EAAoBC,KAC3BC,KAAM,UACNC,QAAStB,KAAKO,UAAS,eACTgB,EAAWvB,KAAKO,WAAU,aAC5BP,KAAKO,WACjBS,EAAA,aACChB,KAAKQ,QACLQ,EAAA,6BACehB,KAAKM,YAAYkB,KAAKxB,MACpCyB,QAASzB,KAAKyB,QACdC,KAAM1B,KAAK0B,KACXC,KAAM,OACNC,QAAS5B,KAAKyB,UAAYhC,EAAeoC,WACzCb,EAAA,YAAUc,KAAM,YAAaC,KAAM,OAAQJ,KAAM,WAE/C,K"}
@@ -0,0 +1,2 @@
1
+ import{V as a}from"./p-ff7365ae.js";import{S as o}from"./p-55500e5a.js";import{p as t}from"./p-03990da5.js";const r=t(a,["PRIMARY","SECONDARY","WARNING","ERROR","SUCCESS"]);const e=t(o,["_XS","_S","_M"]);const i={root:"gov-wizard"};const _={root:"gov-wizard-item",header:"gov-wizard-item__header",arrow:"gov-wizard-item__arrow",title:"gov-wizard-item__title",name:"gov-wizard-item__name",label:"gov-wizard-item__label",annot:"gov-wizard-item__annot",prefix:"gov-wizard-item__prefix",content:"gov-wizard-item__content"};export{_ as W,i as a,e as b,r as c};
2
+ //# sourceMappingURL=p-6834d779.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WizardVariants","pick","Variants","WizardSizes","Sizes","WizardClass","root","WizardItemClass","header","arrow","title","name","label","annot","prefix","content"],"sources":["../../../packages/core/src/components/gov-wizard/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 WizardVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type WizardVariantsType = `${ValueOf<typeof WizardVariants>}`\n\nexport const WizardSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type WizardSizesType = `${ValueOf<typeof WizardSizes>}`\n\nexport const WizardClass = {\n\troot: 'gov-wizard',\n}\n\nexport const WizardItemClass = {\n\troot: 'gov-wizard-item',\n\theader: 'gov-wizard-item__header',\n\tarrow: 'gov-wizard-item__arrow',\n\ttitle: 'gov-wizard-item__title',\n\tname: 'gov-wizard-item__name',\n\tlabel: 'gov-wizard-item__label',\n\tannot: 'gov-wizard-item__annot',\n\tprefix: 'gov-wizard-item__prefix',\n\tcontent: 'gov-wizard-item__content',\n}\n"],"mappings":"kHAKaA,EAAiBC,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,Y,MAG7EC,EAAcF,EAAKG,EAAO,CAAC,MAAO,KAAM,O,MAGxCC,EAAc,CAC1BC,KAAM,c,MAGMC,EAAkB,CAC9BD,KAAM,kBACNE,OAAQ,0BACRC,MAAO,yBACPC,MAAO,yBACPC,KAAM,wBACNC,MAAO,yBACPC,MAAO,yBACPC,OAAQ,0BACRC,QAAS,mC"}
@@ -0,0 +1,2 @@
1
+ import{r as e,h as t,a as i,g as r}from"./p-5bc604a3.js";import{g as o,p as s}from"./p-5de606f8.js";const d={root:"gov-tiles"};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-tiles{overflow:hidden}.gov-tiles>*{margin:0 -0.0625rem -0.0625rem 0;border:0.0625rem solid var(--gov-tiles-border-color, var(--gov-color-secondary-500));border-width:0 0 0.0625rem}.gov-tiles>*:last-child{border-bottom-width:0}.gov-tiles[no-border]>*{border:none}@media (min-width: 48em){.gov-tiles{display:grid}.gov-tiles--x2{grid-template-columns:repeat(2, 1fr)}.gov-tiles--x2>*{border-width:0.0625rem 0.0625rem 0.0625rem 0}.gov-tiles--x2>*:nth-child(-n+3){border-top-width:0}.gov-tiles--x2>*:nth-child(2n+2){border-right-width:0}}@media (min-width: 48em) and (max-width: 63.99em){.gov-tiles--x3,.gov-tiles--x4{grid-template-columns:repeat(2, 1fr)}.gov-tiles--x3>*,.gov-tiles--x4>*{border-width:0.0625rem 0.0625rem 0.0625rem 0}.gov-tiles--x3>*:nth-child(-n+3),.gov-tiles--x4>*:nth-child(-n+3){border-top-width:0}.gov-tiles--x3>*:nth-child(2n+2),.gov-tiles--x4>*:nth-child(2n+2){border-right-width:0}}@media (min-width: 64em){.gov-tiles--x3{grid-template-columns:repeat(3, 1fr)}.gov-tiles--x3>*{border-width:0.0625rem 0.0625rem 0.0625rem 0}.gov-tiles--x3>*:nth-child(-n+4){border-top-width:0}.gov-tiles--x3>*:nth-child(3n+3){border-right-width:0}}@media (min-width: 64em) and (max-width: 74.99em){.gov-tiles--x4{grid-template-columns:repeat(3, 1fr)}.gov-tiles--x4>*{border-width:0.0625rem 0.0625rem 0.0625rem 0}.gov-tiles--x4>*:nth-child(-n+4){border-top-width:0}.gov-tiles--x4>*:nth-child(3n+3){border-right-width:0}}@media (min-width: 75em){.gov-tiles--x4{grid-template-columns:repeat(4, 1fr)}.gov-tiles--x4>*{border-width:0.0625rem 0.0625rem 0.0625rem 0}.gov-tiles--x4>*:nth-child(-n+5){border-top-width:0}.gov-tiles--x4>*:nth-child(4n+4){border-right-width:0}}";const n=class{constructor(t){e(this,t);this.columns=3;this.noBorder=false;this.h=o(this.host)}get classNames(){return s([d.root,this.columns&&d.root+"--x"+this.columns])}render(){return t(i,{class:this.h.classes(this.classNames)},t("slot",null))}get host(){return r(this)}};n.style=l;export{n as gov_tiles};
2
+ //# sourceMappingURL=p-6bf8e7bf.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TilesClass","root","govTilesCss","GovTiles","constructor","hostRef","this","h","govHost","host","classNames","prepareClasses","columns","render","Host","class","classes"],"sources":["../../../packages/core/src/components/gov-tile/container/constants.ts","../../../packages/core/src/components/gov-tile/container/gov-tiles.scss?tag=gov-tiles","../../../packages/core/src/components/gov-tile/container/gov-tiles.tsx"],"sourcesContent":["export const TilesClass = {\n\troot: 'gov-tiles',\n}\n","/*\n * Tiles\n */\n\n$class: \".gov-tiles\";\n$line-width: rem-calc(1);\n\n@mixin grid-lines($i) {\n\tgrid-template-columns: repeat(#{$i}, 1fr);\n\t& > * {\n\t\tborder-width: $line-width $line-width $line-width 0;\n\t\t&:nth-child(-n + #{$i + 1}) {\n\t\t\tborder-top-width: 0;\n\t\t}\n\t\t&:nth-child(#{$i}n + #{$i}) {\n\t\t\tborder-right-width: 0;\n\t\t}\n\t}\n}\n\n#{$class} {\n\toverflow: hidden;\n\t& > * {\n\t\tmargin: 0 calc($line-width * -1) calc($line-width * -1) 0;\n\t\tborder: $line-width solid $tiles-border-color;\n\t\tborder-width: 0 0 $line-width;\n\t\t&:last-child {\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\t}\n\t&[no-border] {\n\t\t& > * {\n\t\t\tborder: none;\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@include mq($from: md) {\n\t\tdisplay: grid;\n\t\t&--x2 {\n\t\t\t@include grid-lines(2);\n\t\t}\n\t\t@include mq($until: lg) {\n\t\t\t&--x3,\n\t\t\t&--x4 {\n\t\t\t\t@include grid-lines(2);\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: lg) {\n\t\t&--x3 {\n\t\t\t@include grid-lines(3);\n\t\t}\n\t\t@include mq($until: xl) {\n\t\t\t&--x4 {\n\t\t\t\t@include grid-lines(3);\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: xl) {\n\t\t&--x4 {\n\t\t\t@include grid-lines(4);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { TilesClass } from './constants'\nimport { prepareClasses } from '../../../helpers/Dom/template'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-tiles',\n\tstyleUrl: 'gov-tiles.scss',\n})\nexport class GovTiles {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\t/**\n\t * Number of columns between 1-4\n\t */\n\t@Prop() readonly columns: number = 3\n\t/**\n\t * Tiles border\n\t */\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\n\n\t@Element() host: HTMLGovTilesElement\n\n\tget classNames(): string {\n\t\treturn prepareClasses([TilesClass.root, this.columns && TilesClass.root + '--x' + this.columns])\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(this.classNames)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"oGAAO,MAAMA,EAAa,CACzBC,KAAM,aCDP,MAAMC,EAAc,89D,MCUPC,EAAQ,MAGpB,WAAAC,CAAAC,G,uBAMmC,E,cAI4B,MAT9DC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAavB,cAAIC,GACH,OAAOC,EAAe,CAACX,EAAWC,KAAMK,KAAKM,SAAWZ,EAAWC,KAAO,MAAQK,KAAKM,S,CAGxF,MAAAC,GACC,OACCN,EAACO,EAAI,CAACC,MAAOT,KAAKC,EAAES,QAAQV,KAAKI,aAChCH,EAAA,a"}
@@ -0,0 +1,2 @@
1
+ import{r as o,h as r,a as s}from"./p-5bc604a3.js";const a={root:"gov-form-password-power",bar:"gov-form-password-power__bar",text:"gov-form-password-power__text"};const e='.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-password-power{display:flex;align-items:center;width:100%;gap:1.5rem;height:1.5rem}.gov-form-password-power__bar{display:flex;gap:0.25rem;width:100%}.gov-form-password-power__bar span{display:inline-block;width:100%;height:var(--gov-form-password-power-height, 0.25rem);border-radius:var(--gov-form-password-power-radius, 0.125rem);background-color:var(--gov-form-password-power-color, var(--gov-color-secondary-600))}.gov-form-password-power__text{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);text-align:right;flex-basis:3.5rem}.gov-form-password-power[power="1"]{color:var(--gov-form-password-power-color-weak, var(--gov-color-error))}.gov-form-password-power[power="1"] .gov-form-password-power__bar span:nth-child(1){background-color:var(--gov-form-password-power-color-weak, var(--gov-color-error))}.gov-form-password-power[power="2"]{color:var(--gov-form-password-power-color-medium, var(--gov-color-warning-500))}.gov-form-password-power[power="2"] .gov-form-password-power__bar span:nth-child(1),.gov-form-password-power[power="2"] .gov-form-password-power__bar span:nth-child(2){background-color:var(--gov-form-password-power-color-medium, var(--gov-color-warning-500))}.gov-form-password-power[power="3"]{color:var(--gov-form-password-power-color-strong, var(--gov-color-success-500))}.gov-form-password-power[power="3"] .gov-form-password-power__bar span{background-color:var(--gov-form-password-power-color-strong, var(--gov-color-success-500))}';const p=class{constructor(r){o(this,r);this.power=undefined}render(){return r(s,{class:a.root},r("span",{class:a.bar},r("span",null),r("span",null),r("span",null)),r("span",{class:a.text},r("slot",null)))}};p.style=e;export{p as gov_form_password_power};
2
+ //# sourceMappingURL=p-705efbf1.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FormPasswordPowerClass","root","bar","text","govFormPasswordPowerCss","GovFormPasswordPower","render","h","Host","class"],"sources":["../../../packages/core/src/components/gov-form/password-power/constants.ts","../../../packages/core/src/components/gov-form/password-power/gov-form-password-power.scss?tag=gov-form-password-power","../../../packages/core/src/components/gov-form/password-power/gov-form-password-power.tsx"],"sourcesContent":["export const FormPasswordPowerClass = {\n\troot: 'gov-form-password-power',\n bar: 'gov-form-password-power__bar',\n text: 'gov-form-password-power__text',\n}\n","$class: \".gov-form-password-power\";\n\n#{$class} {\n display: flex;\n align-items: center;\n width: 100%;\n gap: rem-calc(24);\n height: rem-calc(24);\n &__bar {\n display: flex;\n gap: rem-calc(4);\n width: 100%;\n span {\n display: inline-block;\n width: 100%;\n height: $form-password-power-height;\n border-radius: $form-password-power-radius;\n background-color: $form-password-power-color;\n }\n }\n &__text {\n @include typography($font-size-s);\n text-align: right;\n flex-basis: rem-calc(56);\n }\n\n // STATES\n &[power=\"1\"] {\n color: $form-password-power-color-weak;\n #{$class}__bar {\n span:nth-child(1) {\n background-color: $form-password-power-color-weak;\n }\n }\n }\n &[power=\"2\"] {\n color: $form-password-power-color-medium;\n #{$class}__bar {\n span:nth-child(1),\n span:nth-child(2) {\n background-color: $form-password-power-color-medium;\n }\n }\n }\n &[power=\"3\"] {\n color: $form-password-power-color-strong;\n #{$class}__bar {\n span {\n background-color: $form-password-power-color-strong;\n }\n }\n }\n}\n","import {Component, h, Host, Prop} from '@stencil/core'\nimport {FormPasswordPowerClass} from './constants'\n\n@Component({\n\ttag: 'gov-form-password-power',\n\tstyleUrl: 'gov-form-password-power.scss',\n})\nexport class GovFormPasswordPower {\n\t/**\n\t * Password power: 0 - none, 1 - weak, 2 - medium, 3 - strong\n\t */\n\t@Prop({reflect: true}) readonly power: number\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormPasswordPowerClass.root}>\n\t\t\t\t\t<span class={FormPasswordPowerClass.bar}>\n\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</span>\n\t\t\t\t\t<span class={FormPasswordPowerClass.text}>\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"kDAAO,MAAMA,EAAyB,CACrCC,KAAM,0BACHC,IAAK,+BACLC,KAAM,iCCHV,MAAMC,EAA0B,i5D,MCOnBC,EAAoB,M,8CAMhC,MAAAC,GACC,OACCC,EAACC,EAAI,CAACC,MAAOT,EAAuBC,MAClCM,EAAA,QAAME,MAAOT,EAAuBE,KAClCK,EAAA,aACAA,EAAA,aACAA,EAAA,cAEFA,EAAA,QAAME,MAAOT,EAAuBG,MAClCI,EAAA,c"}
@@ -0,0 +1,2 @@
1
+ import{d as t,r as i,h as s,a as n,g as e}from"./p-5bc604a3.js";import{i as o,e as a}from"./p-003e6cca.js";import{g as r}from"./p-5de606f8.js";import"./p-03990da5.js";var c;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(c||(c={}));const h={root:"gov-icon",holder:"gov-icon__holder"};const l="4.0.6-alpha.1";const p=()=>l;const d={};const f={};const u=t=>t.startsWith("http://")||t.startsWith("https://");const g=(i,s,n)=>{if(u(i)){return`${i}/${n}/${s}.svg?v=${p()}`}return t(`${i}/${n}/${s}.svg`)+`?v=${p()}`};async function m({name:t,type:i}){const s=i+"-"+t;if(d[s]){return d[s]}if(!f[s]){f[s]=fetch(g(o(),t,i)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const n=await f[s];d[s]=n;return n}const y=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-icon{display:inline-flex}.gov-icon__holder{display:inline-flex;width:100%;height:100%}.gov-icon__holder+.gov-icon__holder{display:none !important}.gov-icon svg{display:inline-flex;width:100%;height:100%;max-width:100%;max-height:100%}";const v=class{constructor(t){i(this,t);this.name=null;this.type="basic";this.iconData=undefined;this.visible=false;this.error=false;this.h=r(this.host)}async loadIconPathData(){const{name:t,visible:i,type:s}=this;if(!t||!i){return}try{this.iconData=await m({name:t,type:s})}catch(t){this.error=true}}connectedCallback(){if(a()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((i=>{i.forEach((i=>{if(i.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}render(){if(this.error){return null}return s(n,{class:this.h.classes(h.root)},s("span",{class:h.holder,innerHTML:this.iconData}))}static get assetsDirs(){return["assets"]}get host(){return e(this)}static get watchers(){return{name:["loadIconPathData"]}}};v.style=y;export{v as gov_icon};
2
+ //# sourceMappingURL=p-728201f5.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","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,wBCTF,MAAMC,EAAY,IACjBC,ECCR,MAAMC,EAAuC,GAC7C,MAAMC,EAAmD,GAEzD,MAAMC,EAAiBC,GAAiBA,EAAKC,WAAW,YAAcD,EAAKC,WAAW,YACtF,MAAMC,EAAU,CAACF,EAAcG,EAAcC,KAC5C,GAAIL,EAAcC,GAAO,CACxB,MAAO,GAAGA,KAAQI,KAAQD,WAAcR,K,CAEzC,OAAOU,EAAa,GAAGL,KAAQI,KAAQD,SAAc,MAAMR,KAAa,EAGlEW,eAAeC,GAAUJ,KAAEA,EAAIC,KAAEA,IACvC,MAAMI,EAAWJ,EAAO,IAAMD,EAC9B,GAAIN,EAAUW,GAAW,CACxB,OAAOX,EAAUW,E,CAElB,IAAKV,EAAaU,GAAW,CAC5BV,EAAaU,GAAYC,MAAMP,EAAQQ,IAAaP,EAAMC,IAAOO,MAAKC,IACrE,GAAIA,EAAKC,SAAW,IAAK,CACxB,OAAOD,EAAKE,M,KACN,CACN,MAAM,IAAIC,MAAM,0B,KAInB,MAAMf,QAAaF,EAAaU,GAChCX,EAAUW,GAAYR,EACtB,OAAOA,CACR,CChCA,MAAMgB,EAAa,wkB,MCYNC,EAAO,MAGlB,WAAAC,CAAAC,G,oBAQuB,K,UAIA,Q,qCAEI,M,WACF,MAdvBC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAkBhB,sBAAMC,GACZ,MAAMrB,KAACA,EAAIsB,QAAEA,EAAOrB,KAAEA,GAAQgB,KAC9B,IAAyBjB,IAASsB,EAAS,CACzC,M,CAEF,IACEL,KAAKM,eAAiBnB,EAAU,CAACJ,OAAMC,Q,CACvC,MAAOuB,GACPP,KAAKQ,MAAQ,I,EAIjB,iBAAAC,GACE,GAAIC,IAAiB,CACnBV,KAAKK,QAAU,KACfL,KAAKI,mBAAmBO,S,KACnB,CACLX,KAAKY,kBAAiB1B,UACpBc,KAAKK,QAAU,WACTL,KAAKI,kBAAkB,G,EAKnC,oBAAAS,GACE,GAAIb,KAAKc,qBAAsB,CAC7Bd,KAAKc,qBAAqBC,aAC1Bf,KAAKc,qBAAuB,I,EAIhC,uBAAME,SACEhB,KAAKI,kB,CAGL,gBAAAQ,CAAiBK,GACvB,UAA+BC,SAAW,cAAiBA,OAAeC,qBAAsB,CAC9FF,IACA,M,CAEFjB,KAAKc,qBAAuB,IAAIK,sBAC9BC,IACEA,EAAQC,SAAQC,IACd,GAAIA,EAAMC,eAAgB,CACxB,GAAIvB,KAAKc,qBAAsB,CAC7Bd,KAAKc,qBAAqBC,aAC1Bf,KAAKc,qBAAuB,I,CAE9BG,G,IAEF,GAEJ,CAACO,WAAY,SAEfxB,KAAKc,qBAAqBW,QAAQzB,KAAKG,K,CAGzC,MAAAuB,GACE,GAAI1B,KAAKQ,MAAO,CACd,OAAO,I,CAET,OACEP,EAAC0B,EAAI,CAACC,MAAO5B,KAAKC,EAAE4B,QAAQzD,EAAUC,OACpC4B,EAAA,QAAM2B,MAAOxD,EAAUE,OAAQwD,UAAW9B,KAAKM,W"}
@@ -0,0 +1,2 @@
1
+ import{r as o,h as r,a as e,g as i}from"./p-5bc604a3.js";import{g as t}from"./p-5de606f8.js";const n={root:"gov-error-code",icon:"gov-error-code__icon",holder:"gov-error-code__holder",content:"gov-error-code__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-error-code{position:relative;display:block;width:100%}.gov-error-code__holder{margin:0 auto;text-align:center}.gov-error-code__content>*:last-child{margin-bottom:0}.gov-error-code__icon{display:flex;justify-content:center;align-items:center;width:9.375rem;height:9.375rem;margin:0 auto 1.5rem;border-radius:50%;background:var(--gov-error-icon-circle-bg, linear-gradient(to bottom, var(--gov-color-primary-200), var(--gov-color-neutral-white)));color:var(--gov-error-icon-color, var(--gov-color-primary))}.gov-error-code__icon>*{width:6.5625rem;height:6.5625rem}@media (min-width: 48em){.gov-error-code__icon{width:12.5rem;height:12.5rem;margin:0 auto 2rem}.gov-error-code__icon>*{width:8.75rem;height:8.75rem}}";const c=class{constructor(r){o(this,r);this.h=t(this.host)}render(){return r(e,{class:this.h.classes(n.root)},r("div",{class:n.holder},this.h.hasSlot("icon")&&r("div",{class:n.icon},r("slot",{name:"icon"})),r("div",{class:n.content},r("slot",null))))}get host(){return i(this)}};c.style=a;export{c as gov_error_code};
2
+ //# sourceMappingURL=p-72c5997f.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ErrorCodeClass","root","icon","holder","content","govErrorCodeCss","GovErrorCode","constructor","hostRef","this","h","govHost","host","render","Host","class","classes","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-error-code/constants.ts","../../../packages/core/src/components/gov-error-code/gov-error-code.scss?tag=gov-error-code","../../../packages/core/src/components/gov-error-code/gov-error-code.tsx"],"sourcesContent":["export const ErrorCodeClass = {\n\troot: 'gov-error-code',\n\ticon: 'gov-error-code__icon',\n\tholder: 'gov-error-code__holder',\n\tcontent: 'gov-error-code__content',\n}\n","/*\n * Alert\n */\n\n$class: \".gov-error-code\";\n\n#{$class} {\n\t@include base();\n\t&__holder {\n\t\tmargin: 0 auto;\n\t\ttext-align: center;\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t}\n\t&__icon {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: rem-calc(150);\n\t\theight: rem-calc(150);\n\t\tmargin: 0 auto rem-calc(24);\n\t\tborder-radius: 50%;\n\t\tbackground: $error-icon-circle-bg;\n\t\tcolor: $error-icon-color;\n\t\t& > * {\n\t\t\twidth: rem-calc(105);\n\t\t\theight: rem-calc(105);\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: md) {\n\t\t&__icon {\n\t\t\twidth: rem-calc(200);\n\t\t\theight: rem-calc(200);\n\t\t\tmargin: 0 auto rem-calc(32);\n\t\t\t& > * {\n\t\t\t\twidth: rem-calc(140);\n\t\t\t\theight: rem-calc(140);\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host } from '@stencil/core'\nimport { ErrorCodeClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-error-code',\n\tstyleUrl: 'gov-error-code.scss',\n})\nexport class GovErrorCode {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovErrorCodeElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ErrorCodeClass.root)}>\n\t\t\t\t<div class={ErrorCodeClass.holder}>\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={ErrorCodeClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={ErrorCodeClass.content}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"6FAAO,MAAMA,EAAiB,CAC7BC,KAAM,iBACNC,KAAM,uBACNC,OAAQ,yBACRC,QAAS,2BCJV,MAAMC,EAAkB,oiC,MCSXC,EAAY,MAGxB,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQhB,EAAeC,OAC1CS,EAAA,OAAKK,MAAOf,EAAeG,QACzBM,KAAKC,EAAEO,QAAQ,SACfP,EAAA,OAAKK,MAAOf,EAAeE,MAC1BQ,EAAA,QAAMQ,KAAK,UAGbR,EAAA,OAAKK,MAAOf,EAAeI,SAC1BM,EAAA,e"}
@@ -0,0 +1,2 @@
1
+ import{r as o,c as e,h as l,a as t}from"./p-5bc604a3.js";import{F as r}from"./p-3464136c.js";import"./p-03990da5.js";import"./p-55500e5a.js";const a='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-label{position:relative;display:flex;width:100%}.gov-form-label__label{display:inline-block;color:var(--gov-form-label-color, #686868);cursor:pointer;box-sizing:border-box}.gov-form-label[legend=""] .gov-form-label__label,.gov-form-label[legend=true i] .gov-form-label__label,.gov-form-label[legend="1"] .gov-form-label__label{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:1rem;padding:0;color:var(--gov-form-legend-color, #3b3b3b)}';const i=class{constructor(l){o(this,l);this.govClick=e(this,"gov-click",7);this.identifier=undefined;this.size="m";this.required=false;this.legend=false}render(){const o=this.legend?"legend":"label";return l(t,{class:r.root,size:this.size},l(o,{class:r.label,htmlFor:this.identifier,onClick:()=>this.govClick.emit()},l("slot",null),this.required?l("span",{class:"gov-color--error-500"}," *"):null))}};i.style=a;export{i as gov_form_label};
2
+ //# sourceMappingURL=p-74882c70.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govFormLabelCss","GovFormLabel","render","Tag","this","legend","h","Host","class","FormLabelClass","root","size","label","htmlFor","identifier","onClick","govClick","emit","required"],"sources":["../../../packages/core/src/components/gov-form/label/gov-form-label.scss?tag=gov-form-label","../../../packages/core/src/components/gov-form/label/gov-form-label.tsx"],"sourcesContent":["/*\n * Label\n */\n\n$class: \".gov-form-label\";\n\n#{$class} {\n\t@include base(flex);\n\t&__label {\n\t\tdisplay: inline-block;\n\t\tcolor: $form-label-color;\n\t\tcursor: pointer;\n\t\tbox-sizing: border-box;\n\t}\n\n\t@include parameter(\"legend\") {\n\t\t#{$class}__label {\n\t\t\t@include typography($font-size-l);\n\t\t\tmargin-bottom: 1rem;\n\t\t\tpadding: 0;\n\t\t\tcolor: $form-legend-color;\n\t\t}\n\t}\n}\n","import { Component, Event, EventEmitter, h, Prop, Host } from '@stencil/core'\nimport { FormLabelClass, FormLabelSizesTypes } from './constants'\n\n@Component({\n\ttag: 'gov-form-label',\n\tstyleUrl: 'gov-form-label.scss',\n})\nexport class GovFormLabel {\n\t/**\n\t * Identifier for label.\n\t */\n\t@Prop({ attribute: 'identifier' }) readonly identifier: string\n\t/**\n\t * Label's size.\n\t */\n\t@Prop() readonly size?: FormLabelSizesTypes = 'm'\n\t/**\n\t * Set whether the input is required or not.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Use label as a legend for better accessibility.\n\t * Note: Don't forget to set the fieldset attribute of the gov-form-control component\n\t */\n\t@Prop() readonly legend: boolean = false\n\t/**\n\t * Emitted when the label click.\n\t */\n\t@Event({ eventName: 'gov-click' }) govClick: EventEmitter<PointerEvent>\n\n\trender() {\n\t\tconst Tag = this.legend ? 'legend' : 'label'\n\t\treturn (\n\t\t\t<Host class={FormLabelClass.root} size={this.size}>\n\t\t\t\t<Tag class={FormLabelClass.label} htmlFor={this.identifier} onClick={() => this.govClick.emit()}>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t\t{this.required ? <span class=\"gov-color--error-500\">&nbsp;*</span> : null}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"6IAAA,MAAMA,EAAkB,65B,MCOXC,EAAY,M,iGAQsB,I,cAIT,M,YAKF,K,CAMnC,MAAAC,GACC,MAAMC,EAAMC,KAAKC,OAAS,SAAW,QACrC,OACCC,EAACC,EAAI,CAACC,MAAOC,EAAeC,KAAMC,KAAMP,KAAKO,MAC5CL,EAACH,EAAG,CAACK,MAAOC,EAAeG,MAAOC,QAAST,KAAKU,WAAYC,QAAS,IAAMX,KAAKY,SAASC,QACxFX,EAAA,aACCF,KAAKc,SAAWZ,EAAA,QAAME,MAAM,wBAAsB,MAAkB,M"}
@@ -0,0 +1,2 @@
1
+ import{S as o}from"./p-55500e5a.js";import{V as i}from"./p-ff7365ae.js";import{p as t}from"./p-03990da5.js";const a=t(o,["_XS","_S","_M","_L"]);const c=t(i,["PRIMARY","SECONDARY","CUSTOM"]);const r={root:"gov-accordion"};const n={root:"gov-accordion-item",header:"gov-accordion-item__header",icon:"gov-accordion-item__icon",title:"gov-accordion-item__title",label:"gov-accordion-item__label",annotation:"gov-accordion-item__annotation",suffix:"gov-accordion-item__suffix",right:"gov-accordion-item__right",arrow:"gov-accordion-item__arrow",content:"gov-accordion-item__content"};export{n as A,r as a,a as b,c};
2
+ //# sourceMappingURL=p-74b2311a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AccordionSizes","pick","Sizes","AccordionVariants","Variants","AccordionClass","root","AccordionItemClass","header","icon","title","label","annotation","suffix","right","arrow","content"],"sources":["../../../packages/core/src/components/gov-accordion/constants.ts"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const AccordionSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type AccordionSizeType = `${ValueOf<typeof AccordionSizes>}`\n\nexport const AccordionVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'CUSTOM'])\nexport type AccordionVariantType = `${ValueOf<typeof AccordionVariants>}`\n\nexport const AccordionClass = {\n\troot: 'gov-accordion',\n}\n\nexport const AccordionItemClass = {\n\troot: 'gov-accordion-item',\n\theader: 'gov-accordion-item__header',\n\ticon: 'gov-accordion-item__icon',\n\ttitle: 'gov-accordion-item__title',\n\tlabel: 'gov-accordion-item__label',\n\tannotation: 'gov-accordion-item__annotation',\n\tsuffix: 'gov-accordion-item__suffix',\n\tright: 'gov-accordion-item__right',\n\tarrow: 'gov-accordion-item__arrow',\n\tcontent: 'gov-accordion-item__content',\n}\n"],"mappings":"kHAKaA,EAAiBC,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,O,MAGjDC,EAAoBF,EAAKG,EAAU,CAAC,UAAW,YAAa,W,MAG5DC,EAAiB,CAC7BC,KAAM,iB,MAGMC,EAAqB,CACjCD,KAAM,qBACNE,OAAQ,6BACRC,KAAM,2BACNC,MAAO,4BACPC,MAAO,4BACPC,WAAY,iCACZC,OAAQ,6BACRC,MAAO,4BACPC,MAAO,4BACPC,QAAS,sC"}
@@ -0,0 +1,2 @@
1
+ import{g as e}from"./p-7f2c9830.js";import{s as t}from"./p-24636c53.js";import{d as r}from"./p-003e6cca.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,s)=>{if(typeof n==="undefined"||n===undefined){return true}if(String(n).length===0){e(`[${s}]: Attribute (${i}) is defined with an empty value.`);return false}let a=[];const f=t(n);if(Array.isArray(f)){a=f.filter((function(e){return e.trim().length>0}))}return!!a.filter((e=>{if(r().getElementById(e)===null){return false}else{return true}})).length};const s=(t,n,i)=>{const s=r().querySelector(`[for=${t}]`);if(s===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 a=(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,s as b,n as c,a as v};
2
+ //# sourceMappingURL=p-7724b535.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"}
@@ -0,0 +1,2 @@
1
+ import{r as o,c as a,h as e,a as t,g as i}from"./p-5bc604a3.js";import{g as s,c as r,a as d}from"./p-5de606f8.js";import{c as l}from"./p-003e6cca.js";import{a as n}from"./p-7f2c9830.js";import{a as m}from"./p-7724b535.js";import{c as g}from"./p-24636c53.js";import{d as h}from"./p-03990da5.js";import{M as c}from"./p-be4aab0e.js";const v='.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 p=class{constructor(e){o(this,e);this.govClose=a(this,"gov-close",7);this.open=false;this.blockClose=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=s(this.host);this.labelId=g("GovModalLabel");this.contentId=g("GovModalContent")}validateLabelTag(o){const a=["h1","h2","h3","h4","h5","h6"];if(o){if(!a.includes(o)){n(`[${c.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(c.bodyFix)}hideModal(){this.open=false;document.body.classList.remove(c.bodyFix)}async componentWillRender(){if(this.open){this.showModal()}else{this.hideModal()}}async componentDidRender(){if(l()){await h(500);await this.validateWcag()}}render(){const o=this.labelTag;return e(t,{class:this.h.classes(c.root),open:this.open},e("dialog",{class:c.dialog,hidden:!this.open,tabindex:r(this.open),open:this.open,"aria-modal":"true","aria-hidden":d(!this.open),"aria-labelledby":this.wcagLabelledBy||this.labelId,"aria-describedby":this.wcagDescribedBy||this.contentId,role:this.role},e("div",{class:c.inner},e("div",{class:c.header},this.h.hasSlot("icon")&&e("div",{class:c.icon},e("slot",{name:"icon"})),this.label&&e(o,{class:c.title,id:this.labelId},this.label),e("gov-button",{ref:o=>this.closeCtaRef=o,disabled:this.blockClose,class:c.close,variant:"primary",wcagLabel:this.wcagCloseLabel,wcagLabelledBy:this.wcagCloseLabelledBy,type:"base","on-gov-click":this.onCloseHandler.bind(this)},e("gov-icon",{name:"x-lg"}))),e("div",{class:c.content,id:this.contentId},e("slot",null)),this.h.hasSlot("footer")&&e("div",{class:c.footer},e("slot",{name:"footer"})))),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();if(this.blockClose===false){this.hideModal();this.govClose.emit(o)}}async show(){this.showModal()}async hide(){this.hideModal()}async validateWcag(){m(this.wcagLabelledBy,"wcag-labelled-by",c.root);m(this.wcagDescribedBy,"wcag-described-by",c.root)}get host(){return i(this)}static get watchers(){return{labelTag:["validateLabelTag"],open:["watchOpen"]}}};p.style=v;export{p as gov_modal};
2
+ //# sourceMappingURL=p-7f158b6f.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govModalCss","GovModal","constructor","hostRef","this","h","govHost","host","labelId","createID","contentId","validateLabelTag","newValue","validTags","includes","govErrorLog","ModalClass","root","watchOpen","open","closeCtaRef","setFocus","catch","showModal","document","body","classList","add","bodyFix","hideModal","remove","componentWillRender","componentDidRender","canValidateWcagOnRender","delay","validateWcag","render","LabelTag","labelTag","Host","class","classes","dialog","hidden","tabindex","boolToFocusValue","toBoolAttr","wcagLabelledBy","wcagDescribedBy","role","inner","header","hasSlot","icon","name","label","title","id","ref","el","disabled","blockClose","close","variant","wcagLabel","wcagCloseLabel","wcagCloseLabelledBy","type","onCloseHandler","bind","content","footer","e","stopPropagation","govClose","emit","show","hide","validateWcagRef"],"sources":["../../../packages/core/src/components/gov-modal/gov-modal.scss?tag=gov-modal","../../../packages/core/src/components/gov-modal/gov-modal.tsx"],"sourcesContent":["/*\n * Modal\n */\n\n$class: \".gov-modal\";\n\n#{$class} {\n\tdisplay: none;\n\n\t&__dialog {\n\t\t@include z-index(\"modal\", 1);\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tmax-width: $modal-max-width;\n\t\theight: 100%;\n\t\tpadding: rem-calc(8);\n\t\tborder: none;\n\t\tbackground: transparent;\n\t\ttransform: translate(-50%, -50%);\n\t\tpointer-events: none;\n\t}\n\n\t&__inner {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t\tmax-height: 100%;\n\t\tborder-radius: $border-radius;\n\t\tbackground: $modal-bg;\n\t\toverflow: hidden;\n\t\tpointer-events: auto;\n\t\tbox-shadow: get($shadow-l, $shadows);\n\t}\n\n\t&__header {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\talign-items: flex-start;\n\t\tpadding: rem-calc(24 16);\n\t\tborder-bottom: $modal-border;\n\t}\n\n\t&__icon {\n\t\tflex: 0 0 auto;\n\t\tpadding-top: calc(((var(--gov-text-#{$font-size-3xl}-font-size) * 1.5) - rem-calc(24)) / 2);\n\n\t\t& > * {\n\t\t\twidth: rem-calc(24);\n\t\t\theight: rem-calc(24);\n\t\t}\n\t}\n\n\t&__title {\n\t\t@include typography($font-size-3xl);\n\t\tmargin: 0;\n\t}\n\n\t&__close {\n\t\tflex: 0 0 auto;\n\t\tmargin-left: auto;\n\t}\n\n\t&__content {\n\t\t@include reset-last-margin();\n\t\theight: 100%;\n\t\tpadding: rem-calc(24 16);\n\t\tcolor: $modal-text-color;\n\t\toverflow: auto;\n\t}\n\n\t&__footer,\n\t&__actions {\n\t\tpadding: rem-calc(24 16);\n\t\tborder-top: $modal-border;\n\t}\n\n\t&__actions {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(8 16);\n\t\tflex-wrap: wrap;\n\t\tjustify-content: flex-end;\n\t}\n\n\t// STATES\n\t&__dialog:focus &__inner {\n\t\toutline: $outline;\n\t}\n\n\t@include parameter(\"open\") {\n\t\tdisplay: block;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&__dialog {\n\t\t\tmax-width: calc($modal-max-width + 2 * rem-calc(24));\n\t\t\tpadding: rem-calc(24);\n\n\t\t\t&:focus {\n\t\t\t\toutline-offset: rem-calc(-24);\n\t\t\t}\n\t\t}\n\t\t&__inner {\n\t\t\tbox-shadow: get($shadow-xl, $shadows);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt &__dialog {\n\t\t\tmax-width: calc($modal-prompt-max-width + 2 * rem-calc(24));\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&__header {\n\t\t\tgap: rem-calc(20);\n\t\t\tpadding: rem-calc(32 40 32 48);\n\t\t}\n\t\t&__content {\n\t\t\tpadding: rem-calc(32 48);\n\t\t}\n\t\t&__footer {\n\t\t\tpadding: rem-calc(16 48);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt {\n\t\t\t#{$class} {\n\t\t\t\t&__header,\n\t\t\t\t&__content,\n\t\t\t\t&__footer,\n\t\t\t\t&__actions {\n\t\t\t\t\tpadding: rem-calc(24);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch} from '@stencil/core'\nimport {boolToFocusValue, govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {govErrorLog} from '../../helpers/Log/gov.log'\nimport {validateWcagRef} from '../../helpers/Validate/wcag'\nimport {Nullable} from '../../types/interfaces'\nimport {createID} from '../../utils/string.utils'\nimport {delay} from '../../utils/utils'\nimport {ModalClass} from './constants'\n\n@Component({\n\ttag: 'gov-modal',\n\tstyleUrl: 'gov-modal.scss',\n})\nexport class GovModal {\n\tprivate h: GovHost\n\tprivate readonly labelId: string\n\tprivate readonly contentId: string\n\tprivate closeCtaRef?: HTMLGovButtonElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.labelId = createID('GovModalLabel')\n\t\tthis.contentId = createID('GovModalContent')\n\t}\n\n\t@Element() host: HTMLGovModalElement\n\n\t/**\n\t * Attribute for modal window display\n\t */\n\t@Prop({mutable: true}) open = false\n\t/**\n\t * Attribute allowing blocking the modal closing\n\t */\n\t@Prop() blockClose = false\n\t/**\n\t * Title of modal window\n\t */\n\t@Prop() label: string\n\t/**\n\t * Role of modal\n\t */\n\t@Prop({attribute: 'role'}) role: Nullable<string> = 'dialog'\n\t/**\n\t * Used to change the HTML tag in the modal label for correct semantic structure\n\t */\n\t@Prop({attribute: 'label-tag'}) readonly labelTag: string = 'h2'\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({attribute: 'wcag-labelled-by'}) wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component that describes the modal.\n\t */\n\t@Prop({attribute: 'wcag-described-by'}) wcagDescribedBy: string\n\t/**\n\t * Adds accessible label for the modal close button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'wcag-close-label'}) readonly wcagCloseLabel: string = 'Zavřít okno'\n\t/**\n\t * A string of identifiers that indicate alternative label elements for closing the modal window\n\t */\n\t@Prop({attribute: 'wcag-close-labelled-by'}) wcagCloseLabelledBy: string\n\t/**\n\t * Emitted when modal window closes.\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<PointerEvent>\n\n\t@Watch('labelTag')\n\tvalidateLabelTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('open')\n\twatchOpen(newValue: boolean): void {\n\t\tthis.open = newValue\n\t\tif (newValue && this.closeCtaRef) {\n\t\t\tthis.closeCtaRef.setFocus().catch()\n\t\t}\n\t}\n\n\tprivate showModal() {\n\t\tthis.open = true\n\t\tdocument.body.classList.add(ModalClass.bodyFix)\n\t}\n\n\tprivate hideModal() {\n\t\tthis.open = false\n\t\tdocument.body.classList.remove(ModalClass.bodyFix)\n\t}\n\n\tasync componentWillRender() {\n\t\tif (this.open) {\n\t\t\tthis.showModal()\n\t\t} else {\n\t\t\tthis.hideModal()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.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.root)} open={this.open}>\n\t\t\t\t<dialog\n\t\t\t\t\tclass={ModalClass.dialog}\n\t\t\t\t\thidden={!this.open}\n\t\t\t\t\ttabindex={boolToFocusValue(this.open)}\n\t\t\t\t\topen={this.open}\n\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy || this.labelId}\n\t\t\t\t\taria-describedby={this.wcagDescribedBy || this.contentId}\n\t\t\t\t\trole={this.role}\n\t\t\t\t>\n\t\t\t\t\t<div class={ModalClass.inner}>\n\t\t\t\t\t\t<div class={ModalClass.header}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<div class={ModalClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{this.label && (\n\t\t\t\t\t\t\t\t<LabelTag class={ModalClass.title} id={this.labelId}>\n\t\t\t\t\t\t\t\t\t{this.label}\n\t\t\t\t\t\t\t\t</LabelTag>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\tref={el => (this.closeCtaRef = el)}\n\t\t\t\t\t\t\t\tdisabled={this.blockClose}\n\t\t\t\t\t\t\t\tclass={ModalClass.close}\n\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\twcagLabel={this.wcagCloseLabel}\n\t\t\t\t\t\t\t\twcagLabelledBy={this.wcagCloseLabelledBy}\n\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\"/>\n\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={ModalClass.content} id={this.contentId}>\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t\t<div class={ModalClass.footer}>\n\t\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</dialog>\n\n\t\t\t\t{this.open ? (\n\t\t\t\t\t<gov-backdrop wcag-label={this.wcagCloseLabel} wcag-labelled-by={this.wcagCloseLabelledBy}\n\t\t\t\t\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}/>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t\tif (this.blockClose === false) {\n\t\t\tthis.hideModal()\n\t\t\tthis.govClose.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showModal()\n\t}\n\n\t/**\n\t * Hiding the modal\n\t */\n\t@Method()\n\tasync hide(): Promise<void> {\n\t\tthis.hideModal()\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync 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":"0UAAA,MAAMA,EAAc,wyF,MCePC,EAAQ,MAMpB,WAAAC,CAAAC,G,wDAW8B,M,gBAIT,M,+BAQ+B,S,cAIQ,K,iFAYa,c,mCAtCxEC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,QAAUC,EAAS,iBACxBL,KAAKM,UAAYD,EAAS,kB,CA+C3B,gBAAAE,CAAiBC,GAChB,MAAMC,EAAY,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,MACjD,GAAID,EAAU,CACb,IAAKC,EAAUC,SAASF,GAAW,CAClCG,EAAY,IAAIC,EAAWC,cAAcL,oB,GAM5C,SAAAM,CAAUN,GACTR,KAAKe,KAAOP,EACZ,GAAIA,GAAYR,KAAKgB,YAAa,CACjChB,KAAKgB,YAAYC,WAAWC,O,EAItB,SAAAC,GACPnB,KAAKe,KAAO,KACZK,SAASC,KAAKC,UAAUC,IAAIX,EAAWY,Q,CAGhC,SAAAC,GACPzB,KAAKe,KAAO,MACZK,SAASC,KAAKC,UAAUI,OAAOd,EAAWY,Q,CAG3C,yBAAMG,GACL,GAAI3B,KAAKe,KAAM,CACdf,KAAKmB,W,KACC,CACNnB,KAAKyB,W,EAIP,wBAAMG,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACN9B,KAAK+B,c,EAIb,MAAAC,GACC,MAAMC,EAAWjC,KAAKkC,SACtB,OACCjC,EAACkC,EAAI,CAACC,MAAOpC,KAAKC,EAAEoC,QAAQzB,EAAWC,MAAOE,KAAMf,KAAKe,MACxDd,EAAA,UACCmC,MAAOxB,EAAW0B,OAClBC,QAASvC,KAAKe,KACdyB,SAAUC,EAAiBzC,KAAKe,MAChCA,KAAMf,KAAKe,KAAI,aACJ,OAAM,cACJ2B,GAAY1C,KAAKe,MAAK,kBAClBf,KAAK2C,gBAAkB3C,KAAKI,QAAO,mBAClCJ,KAAK4C,iBAAmB5C,KAAKM,UAC/CuC,KAAM7C,KAAK6C,MAEX5C,EAAA,OAAKmC,MAAOxB,EAAWkC,OACtB7C,EAAA,OAAKmC,MAAOxB,EAAWmC,QACrB/C,KAAKC,EAAE+C,QAAQ,SACf/C,EAAA,OAAKmC,MAAOxB,EAAWqC,MACtBhD,EAAA,QAAMiD,KAAK,UAGZlD,KAAKmD,OACLlD,EAACgC,EAAQ,CAACG,MAAOxB,EAAWwC,MAAOC,GAAIrD,KAAKI,SAC1CJ,KAAKmD,OAGRlD,EAAA,cACCqD,IAAKC,GAAOvD,KAAKgB,YAAcuC,EAC/BC,SAAUxD,KAAKyD,WACfrB,MAAOxB,EAAW8C,MAClBC,QAAQ,UACRC,UAAW5D,KAAK6D,eAChBlB,eAAgB3C,KAAK8D,oBACrBC,KAAK,OAAM,eACG/D,KAAKgE,eAAeC,KAAKjE,OAEvCC,EAAA,YAAUiD,KAAK,WAGjBjD,EAAA,OAAKmC,MAAOxB,EAAWsD,QAASb,GAAIrD,KAAKM,WACxCL,EAAA,cAEAD,KAAKC,EAAE+C,QAAQ,WACf/C,EAAA,OAAKmC,MAAOxB,EAAWuD,QACtBlE,EAAA,QAAMiD,KAAK,cAMdlD,KAAKe,KACLd,EAAA,6BAA0BD,KAAK6D,eAAc,mBAAoB7D,KAAK8D,oBAAmB,eACpE9D,KAAKgE,eAAeC,KAAKjE,QAC3C,K,CAKC,cAAAgE,CAAeI,GACtBA,EAAEC,kBACF,GAAIrE,KAAKyD,aAAe,MAAO,CAC9BzD,KAAKyB,YACLzB,KAAKsE,SAASC,KAAKH,E,EAQrB,UAAMI,GACLxE,KAAKmB,W,CAON,UAAMsD,GACLzE,KAAKyB,W,CAON,kBAAMM,GACL2C,EAAgB1E,KAAK2C,eAAgB,mBAAoB/B,EAAWC,MACpE6D,EAAgB1E,KAAK4C,gBAAiB,oBAAqBhC,EAAWC,K"}
@@ -0,0 +1,2 @@
1
+ import{u as o,a as t,b as a}from"./p-003e6cca.js";const s={bg:"#ecae1a",text:"#3b3b3b"};const c={bg:"#2362a2",text:"#fff"};const f={bg:"#c52a3a",text:"#fff"};const n=(s,f=c)=>{const n=["color: "+f.text,"background: "+f.bg,"font-size: 11px","padding: 2px 4px","border-radius: 3px","font-weight: 600"].join(";");if(t()||a()||o()){console.log("%cgov",n,s)}};const e=o=>{if(a()){n(o,s)}};const b=t=>{if(o()){n(t,f)}};export{b as a,e as g};
2
+ //# sourceMappingURL=p-7f2c9830.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WARNING_COLORS","bg","text","INFO_COLORS","ERROR_COLORS","govLog","message","colors","styles","join","useLog","useWarningLog","useErrorLog","console","log","govWarningLog","govErrorLog"],"sources":["../../../packages/core/src/helpers/Log/gov.log.ts"],"sourcesContent":["import {useErrorLog, useLog, useWarningLog} from \"../Dom/win\";\n\ninterface ColorConfig {\n\tbg: string\n\ttext: string\n}\n\nconst WARNING_COLORS: ColorConfig = {bg: '#ecae1a', text: '#3b3b3b'}\nconst INFO_COLORS: ColorConfig = {bg: '#2362a2', text: '#fff'}\nconst ERROR_COLORS: ColorConfig = {bg: '#c52a3a', text: '#fff'}\n\nexport const govLog = (message: string, colors: ColorConfig = INFO_COLORS): void => {\n\tconst styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(\n\t\t';'\n\t)\n\n\tif(useLog() || useWarningLog() || useErrorLog()) {\n\t\tconsole.log('%cgov', styles, message)\n\t}\n}\n\nexport const govWarningLog = (message: string): void => {\n\tif (useWarningLog()) {\n\t\tgovLog(message, WARNING_COLORS)\n\t}\n}\n\nexport const govErrorLog = (message: string): void => {\n\tif (useErrorLog()) {\n\t\tgovLog(message, ERROR_COLORS)\n\t}\n}\n"],"mappings":"kDAOA,MAAMA,EAA8B,CAACC,GAAI,UAAWC,KAAM,WAC1D,MAAMC,EAA2B,CAACF,GAAI,UAAWC,KAAM,QACvD,MAAME,EAA4B,CAACH,GAAI,UAAWC,KAAM,QAEjD,MAAMG,EAAS,CAACC,EAAiBC,EAAsBJ,KAC7D,MAAMK,EAAS,CAAC,UAAYD,EAAOL,KAAM,eAAiBK,EAAON,GAAI,kBAAmB,mBAAoB,qBAAsB,oBAAoBQ,KACrJ,KAGD,GAAGC,KAAYC,KAAmBC,IAAe,CAChDC,QAAQC,IAAI,QAASN,EAAQF,E,SAIlBS,EAAiBT,IAC7B,GAAIK,IAAiB,CACpBN,EAAOC,EAASN,E,SAILgB,EAAeV,IAC3B,GAAIM,IAAe,CAClBP,EAAOC,EAASF,E"}
@@ -0,0 +1,2 @@
1
+ import{r as o,h as i,a as n,g as a}from"./p-5bc604a3.js";import{g as r,p as t}from"./p-5de606f8.js";const e={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const s=".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-loading{display:block}.gov-loading__content{z-index:101;position:fixed;top:50%;left:50%;display:flex;gap:1rem;flex-direction:column;align-items:center;min-width:9.6875rem;padding:1.5rem;border-radius:0.5rem;background:var(--gov-loading-bg, rgba(var(--gov-color-secondary-400-rgb), 0.8));color:var(--gov-loading-color, var(--gov-color-primary));text-align:center;transform:translate(-50%, -50%)}.gov-loading__icon{width:4rem;height:4rem;line-height:1}.gov-loading__icon svg{width:100%;height:100%}";const g=class{constructor(i){o(this,i);this.h=r(this.host)}render(){return i(n,{class:this.h.classes(e.root)},i("div",{class:e.content},i("gov-icon",{class:t([e.icon,"gov-spin-animation"]),name:"loader"}),i("slot",null)),i("gov-backdrop",{inverse:true}))}get host(){return a(this)}};g.style=s;export{g as gov_loading};
2
+ //# sourceMappingURL=p-90c068ff.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LoadingClass","root","content","icon","govLoadingCss","GovLoading","constructor","hostRef","this","h","govHost","host","render","Host","class","classes","prepareClasses","name","inverse"],"sources":["../../../packages/core/src/components/gov-loading/loading/constants.ts","../../../packages/core/src/components/gov-loading/loading/gov-loading.scss?tag=gov-loading","../../../packages/core/src/components/gov-loading/loading/gov-loading.tsx"],"sourcesContent":["export const LoadingClass = {\n\troot: 'gov-loading',\n\tcontent: 'gov-loading__content',\n\ticon: 'gov-loading__icon',\n}\n","/*\n * Loading\n */\n\n$class: \".gov-loading\";\n\n#{$class} {\n\tdisplay: block;\n\t&__content {\n\t\t@include z-index(\"modal\", 1);\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tmin-width: rem-calc(155);\n\t\tpadding: rem-calc(24);\n\t\tborder-radius: rem-calc(8);\n\t\tbackground: $loading-bg;\n\t\tcolor: $loading-color;\n\t\ttext-align: center;\n\t\ttransform: translate(-50%, -50%);\n\t}\n\t&__icon {\n\t\twidth: rem-calc(64);\n\t\theight: rem-calc(64);\n\t\tline-height: 1;\n\n\t\tsvg {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host } from \"@stencil/core\"\nimport { LoadingClass } from \"./constants\"\nimport { govHost, prepareClasses } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\n\n@Component({\n\ttag: \"gov-loading\",\n\tstyleUrl: \"gov-loading.scss\",\n})\nexport class GovLoading {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLoadingElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LoadingClass.root)}>\n\t\t\t\t<div class={LoadingClass.content}>\n\t\t\t\t\t<gov-icon class={prepareClasses([LoadingClass.icon, \"gov-spin-animation\"])} name=\"loader\"></gov-icon>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t<gov-backdrop inverse={true} />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"oGAAO,MAAMA,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,KAAM,qBCHP,MAAMC,EAAgB,80B,MCSTC,EAAU,MAGtB,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQf,EAAaC,OACxCQ,EAAA,OAAKK,MAAOd,EAAaE,SACxBO,EAAA,YAAUK,MAAOE,EAAe,CAAChB,EAAaG,KAAM,uBAAwBc,KAAK,WACjFR,EAAA,cAEDA,EAAA,gBAAcS,QAAS,O"}
@@ -0,0 +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
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as i,h as e,a as s,g as o}from"./p-5bc604a3.js";import{a}from"./p-5de606f8.js";import{v as n}from"./p-dcb5fb35.js";import{c as r}from"./p-24636c53.js";import{d as h,t as l,h as c}from"./p-03990da5.js";import{F as m,a as p,b as d}from"./p-9dab01be.js";import"./p-7f2c9830.js";import"./p-003e6cca.js";import"./p-55500e5a.js";import"./p-ff7365ae.js";const g='.gov-form-autocomplete__list{margin:0;padding:0}.gov-form-autocomplete__list>.gov-form-autocomplete__item{margin:0;padding:0;background:none}.gov-form-autocomplete__list>.gov-form-autocomplete__item::before{display:none}.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-autocomplete{position:relative;display:block;width:100%}.gov-form-autocomplete__list{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);position:absolute;top:100%;right:0;left:0;z-index:5;max-height:14.0625rem;margin-top:0.5rem;border:var(--gov-autocomplete-item-hover, 0.0625rem solid var(--gov-color-secondary-500));border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-autocomplete-bg, var(--gov-color-neutral-white));overflow-x:hidden;overflow-y:auto;overscroll-behavior:none}.gov-form-autocomplete__list>.gov-form-autocomplete__item{padding:0.75rem 0.5rem;cursor:pointer}.gov-form-autocomplete__item--empty,.gov-form-autocomplete__item--loading{padding:0.75rem 0.5rem;color:var(--gov-autocomplete-item-disable-color, var(--gov-color-secondary-600))}.gov-form-autocomplete__item--empty .gov-icon,.gov-form-autocomplete__item--empty .gov-spin-animation,.gov-form-autocomplete__item--loading .gov-icon,.gov-form-autocomplete__item--loading .gov-spin-animation{width:12px;height:12px}.gov-form-autocomplete__list:empty{display:none}.gov-form-autocomplete__item[aria-selected=""],.gov-form-autocomplete__item[aria-selected=true i],.gov-form-autocomplete__item[aria-selected="1"]{background:var(--gov-autocomplete-item-select, var(--gov-color-secondary-400))}@media not all and (pointer: coarse){.gov-form-autocomplete__item:hover{background:var(--gov-autocomplete-item-hover, var(--gov-color-primary-100))}}';const u=class{constructor(e){t(this,e);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govInput=i(this,"gov-input",7);this.govSelect=i(this,"gov-select",7);this.templateResolver=t=>t[this.nameKey];this.value="";this.identifier=undefined;this.variant=undefined;this.success=undefined;this.size="m";this.nameKey="name";this.name=undefined;this.required=false;this.disabled=false;this.placeholder=undefined;this.readonly=undefined;this.invalid=undefined;this.minlength=3;this.maxlength=undefined;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.messageLoading="Načítám...";this.wcagDescribedBy=undefined;this.wcagLabelledBy=undefined;this.wcagOwns=undefined;this.focused=undefined;this.processing=false;this.arrowCounter=-1;this.list=[];this.listBoxId=r("GovListBox")}validateVariant(t){n(p,t,m.root)}validateSize(t){n(d,t,m.root)}onArrowUp(){if(this.arrowCounter>0){this.arrowCounter=this.arrowCounter-1;this.moveToView().finally()}}onArrowDown(){if(this.arrowCounter<this.list.length-1){this.arrowCounter=this.arrowCounter+1;this.moveToView().finally()}}async moveToView(){await h(200);const t=this.listRef.offsetHeight;const i=this.listRef.querySelector('li[aria-selected="true"]');if(i&&t){const t=i.offsetTop;this.listRef.scrollTo({top:t,behavior:"smooth"})}}doSearch(){if(Number.isInteger(this.minlength)&&this.isValueAccepted===false&&this.minlength){this.list=[];this.arrowCounter=-1;this.processing=false;return}if(this.searchCallback){this.processing=true;this.searchCallback(this.value).then((t=>this.list=t)).catch((()=>this.list=[])).finally((()=>{this.arrowCounter=-1;this.processing=false}))}}get isValueAccepted(){if(typeof this.value==="string"){return this.value.length>=this.minlength}else{return false}}componentWillLoad(){this.validateVariant(this.variant);this.validateSize(this.size)}render(){return e(s,{class:m.root,size:this.size,variant:this.variant},e("gov-form-input",{placeholder:this.placeholder,name:this.name,disabled:this.disabled,readonly:this.readonly,autocomplete:false,size:this.size,variant:this.variant,required:this.required,invalid:this.invalid,success:this.success,role:"searchbox",value:this.value,minlength:this.minlength,maxlength:this.maxlength,"on-gov-input":l(this.onInputHandler.bind(this),200),"on-gov-keyup":this.onKeyUpHandler.bind(this),"on-gov-keydown":this.onKeyDownHandler.bind(this),"on-gov-focus":this.onFocusHandler.bind(this),"on-gov-blur":this.onBlurHandler.bind(this),wcagAutocomplete:"list",wcagDescribedBy:this.wcagDescribedBy,wcagLabelledBy:this.wcagLabelledBy,wcagOwns:[this.listBoxId,this.wcagOwns].join(" "),wcagExpanded:this.list.length&&this.focused,ref:t=>this.inputRef=t},e("slot",{slot:"right-icon",name:"right-icon"})),e("ul",{class:m.list,role:"listbox",id:this.listBoxId,ref:t=>this.listRef=t},this.focused&&this.list.length===0&&this.processing===false&&this.isValueAccepted&&this.messageEmpty?e("li",{class:m.empty},this.messageEmpty):null,this.focused&&this.processing===true&&this.isValueAccepted?e("li",{class:m.loading},e("gov-icon",{name:"loader",class:"gov-spin-animation"})," ",this.messageLoading):null,this.list.map(((t,i)=>{const s=this.arrowCounter===i;return e("li",{class:m.item,innerHTML:this.templateResolver(t,s),role:"option","aria-posinset":i,tabindex:s?0:-1,"aria-setsize":this.list.length,onTouchStart:t=>this.onSelectHandler(t,i),onMouseDown:t=>this.onSelectHandler(t,i),"aria-selected":a(s)})}))))}onFocusHandler(t){this.focused=true;this.arrowCounter=-1;if((this.value||this.minlength===0)&&this.searchCallback){this.doSearch()}t.stopPropagation();this.govFocus.emit({originalEvent:t,component:m.root,value:this.value,selected:null})}onBlurHandler(t){this.focused=false;this.list=[];this.arrowCounter=-1;t.stopPropagation();this.govBlur.emit({originalEvent:t,component:m.root,value:this.value,selected:null})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({originalEvent:t,component:m.root,value:this.value,selected:null});this.doSearch()}onSelectHandler(t,i=-1){let e=null;if(i>-1){e=this.list[i]}else if(c(this.arrowCounter,this.list)){e=this.list[this.arrowCounter]}if(e){this.govSelect.emit({component:m.root,value:this.value,selected:e,originalEvent:t});this.list=[];if(c(this.nameKey,e)&&typeof e[this.nameKey]==="string"){this.value=e[this.nameKey]}}}onKeyUpHandler(t){const i=t.detail.originalEvent;t.stopPropagation();i.stopPropagation();if(i.keyCode===38)this.onArrowUp();else if(i.keyCode===40)this.onArrowDown();else if(i.keyCode===13){t.preventDefault();i.preventDefault();this.onSelectHandler(t)}}onKeyDownHandler(t){const i=t.detail.originalEvent;t.stopPropagation();i.stopPropagation();if(i.keyCode===13){t.preventDefault();i.preventDefault()}}async setFocus(t){return this.inputRef.focus(t)}async setOptions(t){this.list=Array.isArray(t)?t:[];this.arrowCounter=-1}async clearValue(){this.value="";this.inputRef.value="";await this.inputRef.clearValue()}async setProcessing(t){this.processing=t}async setSearchCallback(t){this.searchCallback=t}async setTemplateResolver(t){this.templateResolver=t}get host(){return o(this)}static get watchers(){return{variant:["validateVariant"],size:["validateSize"]}}};u.style=g;export{u as gov_form_autocomplete};
2
+ //# sourceMappingURL=p-927880d6.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govFormAutocompleteCss","GovFormAutocomplete","constructor","hostRef","this","templateResolver","item","nameKey","listBoxId","createID","validateVariant","newValue","validateProp","FormAutocompleteVariants","FormAutocompleteClass","root","validateSize","FormAutocompleteSizes","onArrowUp","arrowCounter","moveToView","finally","onArrowDown","list","length","delay","heightOfList","listRef","offsetHeight","selected","querySelector","offsetTop","scrollTo","top","behavior","doSearch","Number","isInteger","minlength","isValueAccepted","processing","searchCallback","value","then","response","catch","componentWillLoad","variant","size","render","h","Host","class","placeholder","name","disabled","readonly","autocomplete","required","invalid","success","role","maxlength","throttle","onInputHandler","bind","onKeyUpHandler","onKeyDownHandler","onFocusHandler","onBlurHandler","wcagAutocomplete","wcagDescribedBy","wcagLabelledBy","wcagOwns","join","wcagExpanded","focused","ref","el","inputRef","slot","id","messageEmpty","empty","loading","messageLoading","map","index","isSelected","innerHTML","tabindex","onTouchStart","e","onSelectHandler","onMouseDown","toBoolAttr","stopPropagation","govFocus","emit","originalEvent","component","govBlur","target","govInput","has","govSelect","event","detail","keyCode","preventDefault","setFocus","options","focus","setOptions","Array","isArray","clearValue","setProcessing","status","setSearchCallback","callback","setTemplateResolver"],"sources":["../../../packages/core/src/components/gov-form/autocomplete/gov-form-autocomplete.scss?tag=gov-form-autocomplete","../../../packages/core/src/components/gov-form/autocomplete/gov-form-autocomplete.tsx"],"sourcesContent":["$class: \".gov-form-autocomplete\";\n\n#{$class} {\n\t@include base();\n\t&__list {\n\t\t@include typography($font-size-s);\n\t\t@extend %reset-ul;\n\t\tposition: absolute;\n\t\ttop: 100%;\n\t\tright: 0;\n\t\tleft: 0;\n\t\tz-index: 5;\n\t\tmax-height: rem-calc(225);\n\t\tmargin-top: rem-calc(8);\n\t\tborder: $form-autocomplete-border;\n\t\tborder-radius: $border-radius;\n\t\tbackground: $form-autocomplete-bg;\n\t\toverflow-x: hidden;\n\t\toverflow-y: auto;\n\t\toverscroll-behavior: none;\n\t}\n\t&__list > &__item {\n\t\t@extend %reset-ul-li;\n\t\tpadding: rem-calc(12 8);\n\t\tcursor: pointer;\n\t}\n\t&__item {\n\t\t&--empty,\n\t\t&--loading {\n\t\t\tpadding: rem-calc(12 8);\n\t\t\tcolor: $form-autocomplete-item-disable-color;\n\t\t\t& .gov-icon,\n\t\t\t& .gov-spin-animation {\n\t\t\t\twidth: 12px;\n\t\t\t\theight: 12px;\n\t\t\t}\n\t\t}\n\t}\n\n\t// STATES\n\t&__list:empty {\n\t\tdisplay: none;\n\t}\n\n\t// HOVERS\n\t&__item {\n\t\t@include parameter(\"aria-selected\") {\n\t\t\tbackground: $form-autocomplete-item-select-bg;\n\t\t}\n\t\t@include hover() {\n\t\t\tbackground: $form-autocomplete-item-hover-bg;\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {toBoolAttr} from '../../../helpers/Dom/template'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {Nullable} from '../../../types/interfaces'\nimport {createID} from '../../../utils/string.utils'\nimport {delay, has, throttle} from '../../../utils/utils'\nimport {FormInputEvent} from '../input/gov-form-input.types'\nimport {\n\tFormAutocompleteClass,\n\tFormAutocompleteSizes,\n\tFormAutocompleteVariants,\n\tSizesType,\n\tVariantType\n} from './constants'\nimport {FormAutocompleteEvent, GovFormAutocompleteItem} from './gov-form-autocomplete.types'\n\n@Component({\n\ttag: 'gov-form-autocomplete',\n\tstyleUrl: 'gov-form-autocomplete.scss',\n})\nexport class GovFormAutocomplete {\n\tprivate inputRef?: HTMLGovFormInputElement\n\tprivate listRef?: HTMLUListElement\n\tprivate readonly listBoxId: string\n\tprivate searchCallback: (value: string) => Promise<GovFormAutocompleteItem[]>\n\tprivate templateResolver: (item: GovFormAutocompleteItem, selected: boolean) => string = item => item[this.nameKey]\n\n\tconstructor() {\n\t\tthis.listBoxId = createID('GovListBox')\n\t}\n\n\t@Element() host: HTMLGovFormInputElement\n\t/**\n\t * Value of input\n\t */\n\t@Prop({reflect: true, mutable: true}) value = ''\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Style variation of the form input.\n\t */\n\t@Prop() readonly variant?: VariantType\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: SizesType = 'm'\n\t/**\n\t * Main key name in the object\n\t */\n\t@Prop() readonly nameKey: string = 'name'\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\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 input component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Text that appears in the form control when it has no value set\n\t */\n\t@Prop() readonly placeholder: string\n\t/**\n\t * The value is not editable\n\t */\n\t@Prop() readonly readonly: boolean\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 * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number = 3\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Custom message for when there is a blank sheet\n\t */\n\t@Prop({attribute: 'message-empty'}) readonly messageEmpty: string = 'Nebyly nalezeny žádné výsledky'\n\t/**\n\t * Custom message for when data is loaded\n\t */\n\t@Prop({attribute: 'message-loading'}) readonly messageLoading: string = 'Načítám...'\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 * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-owns\n\t */\n\t@Prop({attribute: 'wcag-owns'}) readonly wcagOwns: string\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormAutocompleteEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormAutocompleteEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: 'gov-input'}) govInput: EventEmitter<FormAutocompleteEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: 'gov-select'}) govSelect: EventEmitter<FormAutocompleteEvent>\n\t@State() focused: boolean\n\t@State() processing = false\n\t@State() arrowCounter = -1\n\t@State() list: GovFormAutocompleteItem[] = []\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(FormAutocompleteVariants, newValue, FormAutocompleteClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormAutocompleteSizes, newValue, FormAutocompleteClass.root)\n\t}\n\n\tprivate onArrowUp() {\n\t\tif (this.arrowCounter > 0) {\n\t\t\tthis.arrowCounter = this.arrowCounter - 1\n\t\t\tthis.moveToView().finally()\n\t\t}\n\t}\n\n\tprivate onArrowDown() {\n\t\tif (this.arrowCounter < this.list.length - 1) {\n\t\t\tthis.arrowCounter = this.arrowCounter + 1\n\t\t\tthis.moveToView().finally()\n\t\t}\n\t}\n\n\tprivate async moveToView() {\n\t\tawait delay(200)\n\t\tconst heightOfList = this.listRef.offsetHeight\n\t\tconst selected = this.listRef.querySelector('li[aria-selected=\"true\"]') as HTMLUListElement\n\t\tif (selected && heightOfList) {\n\t\t\tconst offsetTop = selected.offsetTop\n\t\t\tthis.listRef.scrollTo({top: offsetTop, behavior: 'smooth'})\n\t\t}\n\t}\n\n\tprivate doSearch() {\n\t\tif (Number.isInteger(this.minlength) && this.isValueAccepted === false && this.minlength) {\n\t\t\tthis.list = []\n\t\t\tthis.arrowCounter = -1\n\t\t\tthis.processing = false\n\t\t\treturn\n\t\t}\n\t\tif (this.searchCallback) {\n\t\t\tthis.processing = true\n\t\t\tthis.searchCallback(this.value)\n\t\t\t\t.then(response => (this.list = response))\n\t\t\t\t.catch(() => (this.list = []))\n\t\t\t\t.finally(() => {\n\t\t\t\t\tthis.arrowCounter = -1\n\t\t\t\t\tthis.processing = false\n\t\t\t\t})\n\t\t}\n\t}\n\n\tget isValueAccepted() {\n\t\tif (typeof this.value === 'string') {\n\t\t\treturn this.value.length >= this.minlength\n\t\t} else {\n\t\t\treturn false\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormAutocompleteClass.root} size={this.size} variant={this.variant}>\n\t\t\t\t<gov-form-input\n\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\treadonly={this.readonly}\n\t\t\t\t\tautocomplete={false}\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t\tinvalid={this.invalid}\n\t\t\t\t\tsuccess={this.success}\n\t\t\t\t\trole={'searchbox'}\n\t\t\t\t\tvalue={this.value}\n\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\ton-gov-input={throttle(this.onInputHandler.bind(this), 200)}\n\t\t\t\t\ton-gov-keyup={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\ton-gov-keydown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\ton-gov-focus={this.onFocusHandler.bind(this)}\n\t\t\t\t\ton-gov-blur={this.onBlurHandler.bind(this)}\n\t\t\t\t\twcagAutocomplete={'list'}\n\t\t\t\t\twcagDescribedBy={this.wcagDescribedBy}\n\t\t\t\t\twcagLabelledBy={this.wcagLabelledBy}\n\t\t\t\t\twcagOwns={[this.listBoxId, this.wcagOwns].join(' ')}\n\t\t\t\t\twcagExpanded={this.list.length && this.focused}\n\t\t\t\t\tref={el => (this.inputRef = el as HTMLGovFormInputElement)}\n\t\t\t\t>\n\t\t\t\t\t<slot slot=\"right-icon\" name=\"right-icon\"/>\n\t\t\t\t</gov-form-input>\n\t\t\t\t<ul class={FormAutocompleteClass.list} role={'listbox'} id={this.listBoxId}\n\t\t\t\t\t\tref={el => (this.listRef = el as HTMLUListElement)}>\n\t\t\t\t\t{this.focused && this.list.length === 0 && this.processing === false && this.isValueAccepted && this.messageEmpty ? (\n\t\t\t\t\t\t<li class={FormAutocompleteClass.empty}>{this.messageEmpty}</li>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{this.focused && this.processing === true && this.isValueAccepted ? (\n\t\t\t\t\t\t<li class={FormAutocompleteClass.loading}>\n\t\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>\n\t\t\t\t\t\t\t&nbsp;{this.messageLoading}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{this.list.map((item, index) => {\n\t\t\t\t\t\tconst isSelected = this.arrowCounter === index\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t\tclass={FormAutocompleteClass.item}\n\t\t\t\t\t\t\t\tinnerHTML={this.templateResolver(item, isSelected)}\n\t\t\t\t\t\t\t\trole={'option'}\n\t\t\t\t\t\t\t\taria-posinset={index}\n\t\t\t\t\t\t\t\ttabindex={isSelected ? 0 : -1}\n\t\t\t\t\t\t\t\taria-setsize={this.list.length}\n\t\t\t\t\t\t\t\tonTouchStart={(e: TouchEvent) => this.onSelectHandler(e, index)}\n\t\t\t\t\t\t\t\tonMouseDown={(e: PointerEvent) => this.onSelectHandler(e, index)}\n\t\t\t\t\t\t\t\taria-selected={toBoolAttr(isSelected)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)\n\t\t\t\t\t})}\n\t\t\t\t</ul>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.arrowCounter = -1\n\t\tif ((this.value || this.minlength === 0) && this.searchCallback) {\n\t\t\tthis.doSearch()\n\t\t}\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\toriginalEvent: e,\n\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\tvalue: this.value,\n\t\t\tselected: null,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.list = []\n\t\tthis.arrowCounter = -1\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\toriginalEvent: e,\n\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\tvalue: this.value,\n\t\t\tselected: null,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLGovFormInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\toriginalEvent: e,\n\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\tvalue: this.value,\n\t\t\tselected: null,\n\t\t})\n\t\tthis.doSearch()\n\t}\n\n\tprivate onSelectHandler(e: PointerEvent | CustomEvent | TouchEvent, index = -1) {\n\t\tlet selected: Nullable<GovFormAutocompleteItem> = null\n\t\tif (index > -1) {\n\t\t\tselected = this.list[index]\n\t\t} else if (has(this.arrowCounter, this.list)) {\n\t\t\tselected = this.list[this.arrowCounter]\n\t\t}\n\t\tif (selected) {\n\t\t\tthis.govSelect.emit({\n\t\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\t\tvalue: this.value,\n\t\t\t\tselected: selected,\n\t\t\t\toriginalEvent: e,\n\t\t\t})\n\t\t\tthis.list = []\n\t\t\tif (has(this.nameKey, selected) && typeof selected[this.nameKey] === 'string') {\n\t\t\t\tthis.value = selected[this.nameKey]\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate onKeyUpHandler(e: CustomEvent) {\n\t\tconst event = (e.detail as FormInputEvent).originalEvent as KeyboardEvent\n\t\te.stopPropagation()\n\t\tevent.stopPropagation()\n\t\tif (event.keyCode === 38) this.onArrowUp()\n\t\telse if (event.keyCode === 40) this.onArrowDown()\n\t\telse if (event.keyCode === 13) {\n\t\t\te.preventDefault()\n\t\t\tevent.preventDefault()\n\t\t\tthis.onSelectHandler(e)\n\t\t}\n\t}\n\n\tprivate onKeyDownHandler(e: CustomEvent) {\n\t\tconst event = (e.detail as FormInputEvent).originalEvent as KeyboardEvent\n\t\te.stopPropagation()\n\t\tevent.stopPropagation()\n\t\tif (event.keyCode === 13) {\n\t\t\te.preventDefault()\n\t\t\tevent.preventDefault()\n\t\t}\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Set options for list\n\t */\n\t@Method()\n\tasync setOptions(options: GovFormAutocompleteItem[]): Promise<void> {\n\t\tthis.list = Array.isArray(options) ? options : []\n\t\tthis.arrowCounter = -1\n\t}\n\n\t/**\n\t * Clears whisperer value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = ''\n\t\tthis.inputRef.value = ''\n\n\t\tawait this.inputRef.clearValue()\n\t}\n\n\t/**\n\t * Clears whisperer value\n\t */\n\t@Method()\n\tasync setProcessing(status: boolean): Promise<void> {\n\t\tthis.processing = status\n\t}\n\n\t/**\n\t * Set a custom asynchronous function for the whisperer\n\t */\n\t@Method()\n\tasync setSearchCallback(callback: (value: string) => Promise<any>) {\n\t\tthis.searchCallback = callback\n\t}\n\n\t/**\n\t * Setting a custom whisper result template\n\t * @param callback\n\t */\n\t@Method()\n\tasync setTemplateResolver(callback: (item: GovFormAutocompleteItem) => string) {\n\t\tthis.templateResolver = callback\n\t}\n}\n"],"mappings":"2WAAA,MAAMA,EAAyB,skE,MCoBlBC,EAAmB,MAO/B,WAAAC,CAAAC,G,0JAFQC,KAAAC,iBAAiFC,GAAQA,EAAKF,KAAKG,S,WAU7D,G,kFAgBV,I,aAID,O,kCASE,M,cAKA,M,yFAgBA,E,2CAQ+B,iC,oBAII,a,4HA+BlD,M,mBACG,E,UACkB,GAtG1CH,KAAKI,UAAYC,EAAS,a,CAyG3B,eAAAC,CAAgBC,GACfC,EAAaC,EAA0BF,EAAUG,EAAsBC,K,CAIxE,YAAAC,CAAaL,GACZC,EAAaK,EAAuBN,EAAUG,EAAsBC,K,CAG7D,SAAAG,GACP,GAAId,KAAKe,aAAe,EAAG,CAC1Bf,KAAKe,aAAef,KAAKe,aAAe,EACxCf,KAAKgB,aAAaC,S,EAIZ,WAAAC,GACP,GAAIlB,KAAKe,aAAef,KAAKmB,KAAKC,OAAS,EAAG,CAC7CpB,KAAKe,aAAef,KAAKe,aAAe,EACxCf,KAAKgB,aAAaC,S,EAIZ,gBAAMD,SACPK,EAAM,KACZ,MAAMC,EAAetB,KAAKuB,QAAQC,aAClC,MAAMC,EAAWzB,KAAKuB,QAAQG,cAAc,4BAC5C,GAAID,GAAYH,EAAc,CAC7B,MAAMK,EAAYF,EAASE,UAC3B3B,KAAKuB,QAAQK,SAAS,CAACC,IAAKF,EAAWG,SAAU,U,EAI3C,QAAAC,GACP,GAAIC,OAAOC,UAAUjC,KAAKkC,YAAclC,KAAKmC,kBAAoB,OAASnC,KAAKkC,UAAW,CACzFlC,KAAKmB,KAAO,GACZnB,KAAKe,cAAgB,EACrBf,KAAKoC,WAAa,MAClB,M,CAED,GAAIpC,KAAKqC,eAAgB,CACxBrC,KAAKoC,WAAa,KAClBpC,KAAKqC,eAAerC,KAAKsC,OACvBC,MAAKC,GAAaxC,KAAKmB,KAAOqB,IAC9BC,OAAM,IAAOzC,KAAKmB,KAAO,KACzBF,SAAQ,KACRjB,KAAKe,cAAgB,EACrBf,KAAKoC,WAAa,KAAK,G,EAK3B,mBAAID,GACH,UAAWnC,KAAKsC,QAAU,SAAU,CACnC,OAAOtC,KAAKsC,MAAMlB,QAAUpB,KAAKkC,S,KAC3B,CACN,OAAO,K,EAIT,iBAAAQ,GACC1C,KAAKM,gBAAgBN,KAAK2C,SAC1B3C,KAAKY,aAAaZ,KAAK4C,K,CAGxB,MAAAC,GACC,OACCC,EAACC,EAAI,CAACC,MAAOtC,EAAsBC,KAAMiC,KAAM5C,KAAK4C,KAAMD,QAAS3C,KAAK2C,SACvEG,EAAA,kBACCG,YAAajD,KAAKiD,YAClBC,KAAMlD,KAAKkD,KACXC,SAAUnD,KAAKmD,SACfC,SAAUpD,KAAKoD,SACfC,aAAc,MACdT,KAAM5C,KAAK4C,KACXD,QAAS3C,KAAK2C,QACdW,SAAUtD,KAAKsD,SACfC,QAASvD,KAAKuD,QACdC,QAASxD,KAAKwD,QACdC,KAAM,YACNnB,MAAOtC,KAAKsC,MACZJ,UAAWlC,KAAKkC,UAChBwB,UAAW1D,KAAK0D,UAAS,eACXC,EAAS3D,KAAK4D,eAAeC,KAAK7D,MAAO,KAAI,eAC7CA,KAAK8D,eAAeD,KAAK7D,MAAK,iBAC5BA,KAAK+D,iBAAiBF,KAAK7D,MAAK,eAClCA,KAAKgE,eAAeH,KAAK7D,MAAK,cAC/BA,KAAKiE,cAAcJ,KAAK7D,MACrCkE,iBAAkB,OAClBC,gBAAiBnE,KAAKmE,gBACtBC,eAAgBpE,KAAKoE,eACrBC,SAAU,CAACrE,KAAKI,UAAWJ,KAAKqE,UAAUC,KAAK,KAC/CC,aAAcvE,KAAKmB,KAAKC,QAAUpB,KAAKwE,QACvCC,IAAKC,GAAO1E,KAAK2E,SAAWD,GAE5B5B,EAAA,QAAM8B,KAAK,aAAa1B,KAAK,gBAE9BJ,EAAA,MAAIE,MAAOtC,EAAsBS,KAAMsC,KAAM,UAAWoB,GAAI7E,KAAKI,UAC/DqE,IAAKC,GAAO1E,KAAKuB,QAAUmD,GAC3B1E,KAAKwE,SAAWxE,KAAKmB,KAAKC,SAAW,GAAKpB,KAAKoC,aAAe,OAASpC,KAAKmC,iBAAmBnC,KAAK8E,aACpGhC,EAAA,MAAIE,MAAOtC,EAAsBqE,OAAQ/E,KAAK8E,cAC3C,KACH9E,KAAKwE,SAAWxE,KAAKoC,aAAe,MAAQpC,KAAKmC,gBACjDW,EAAA,MAAIE,MAAOtC,EAAsBsE,SAChClC,EAAA,YAAUI,KAAK,SAASF,MAAM,uBAAgC,IACvDhD,KAAKiF,gBAEV,KACHjF,KAAKmB,KAAK+D,KAAI,CAAChF,EAAMiF,KACrB,MAAMC,EAAapF,KAAKe,eAAiBoE,EACzC,OACCrC,EAAA,MACCE,MAAOtC,EAAsBR,KAC7BmF,UAAWrF,KAAKC,iBAAiBC,EAAMkF,GACvC3B,KAAM,SAAQ,gBACC0B,EACfG,SAAUF,EAAa,GAAK,EAAC,eACfpF,KAAKmB,KAAKC,OACxBmE,aAAeC,GAAkBxF,KAAKyF,gBAAgBD,EAAGL,GACzDO,YAAcF,GAAoBxF,KAAKyF,gBAAgBD,EAAGL,GAAM,gBACjDQ,EAAWP,IACzB,K,CAQA,cAAApB,CAAewB,GACtBxF,KAAKwE,QAAU,KACfxE,KAAKe,cAAgB,EACrB,IAAKf,KAAKsC,OAAStC,KAAKkC,YAAc,IAAMlC,KAAKqC,eAAgB,CAChErC,KAAK+B,U,CAENyD,EAAEI,kBACF5F,KAAK6F,SAASC,KAAK,CAClBC,cAAeP,EACfQ,UAAWtF,EAAsBC,KACjC2B,MAAOtC,KAAKsC,MACZb,SAAU,M,CAIJ,aAAAwC,CAAcuB,GACrBxF,KAAKwE,QAAU,MACfxE,KAAKmB,KAAO,GACZnB,KAAKe,cAAgB,EACrByE,EAAEI,kBACF5F,KAAKiG,QAAQH,KAAK,CACjBC,cAAeP,EACfQ,UAAWtF,EAAsBC,KACjC2B,MAAOtC,KAAKsC,MACZb,SAAU,M,CAIJ,cAAAmC,CAAe4B,GACtBxF,KAAKsC,MAASkD,EAAEU,OAAmC5D,MACnDkD,EAAEI,kBACF5F,KAAKmG,SAASL,KAAK,CAClBC,cAAeP,EACfQ,UAAWtF,EAAsBC,KACjC2B,MAAOtC,KAAKsC,MACZb,SAAU,OAEXzB,KAAK+B,U,CAGE,eAAA0D,CAAgBD,EAA4CL,GAAS,GAC5E,IAAI1D,EAA8C,KAClD,GAAI0D,GAAS,EAAG,CACf1D,EAAWzB,KAAKmB,KAAKgE,E,MACf,GAAIiB,EAAIpG,KAAKe,aAAcf,KAAKmB,MAAO,CAC7CM,EAAWzB,KAAKmB,KAAKnB,KAAKe,a,CAE3B,GAAIU,EAAU,CACbzB,KAAKqG,UAAUP,KAAK,CACnBE,UAAWtF,EAAsBC,KACjC2B,MAAOtC,KAAKsC,MACZb,SAAUA,EACVsE,cAAeP,IAEhBxF,KAAKmB,KAAO,GACZ,GAAIiF,EAAIpG,KAAKG,QAASsB,WAAoBA,EAASzB,KAAKG,WAAa,SAAU,CAC9EH,KAAKsC,MAAQb,EAASzB,KAAKG,Q,GAKtB,cAAA2D,CAAe0B,GACtB,MAAMc,EAASd,EAAEe,OAA0BR,cAC3CP,EAAEI,kBACFU,EAAMV,kBACN,GAAIU,EAAME,UAAY,GAAIxG,KAAKc,iBAC1B,GAAIwF,EAAME,UAAY,GAAIxG,KAAKkB,mBAC/B,GAAIoF,EAAME,UAAY,GAAI,CAC9BhB,EAAEiB,iBACFH,EAAMG,iBACNzG,KAAKyF,gBAAgBD,E,EAIf,gBAAAzB,CAAiByB,GACxB,MAAMc,EAASd,EAAEe,OAA0BR,cAC3CP,EAAEI,kBACFU,EAAMV,kBACN,GAAIU,EAAME,UAAY,GAAI,CACzBhB,EAAEiB,iBACFH,EAAMG,gB,EAQR,cAAMC,CAASC,GACd,OAAO3G,KAAK2E,SAASiC,MAAMD,E,CAO5B,gBAAME,CAAWF,GAChB3G,KAAKmB,KAAO2F,MAAMC,QAAQJ,GAAWA,EAAU,GAC/C3G,KAAKe,cAAgB,C,CAOtB,gBAAMiG,GACLhH,KAAKsC,MAAQ,GACbtC,KAAK2E,SAASrC,MAAQ,SAEhBtC,KAAK2E,SAASqC,Y,CAOrB,mBAAMC,CAAcC,GACnBlH,KAAKoC,WAAa8E,C,CAOnB,uBAAMC,CAAkBC,GACvBpH,KAAKqC,eAAiB+E,C,CAQvB,yBAAMC,CAAoBD,GACzBpH,KAAKC,iBAAmBmH,C"}
@@ -0,0 +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-0e5fa8bf.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.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()}}render(){const o=o=>{if(this.noLabel){return r("label",null,o)}return o};return r(t,{class:this.h.classes(h.root),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"]}}};p.style=_;export{p as gov_form_switch};
2
+ //# sourceMappingURL=p-9402e4cc.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govFormSwitchCss","GovFormSwitch","constructor","hostRef","this","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","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\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\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)} 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,stU,MCkBZC,EAAa,MAOzB,WAAAC,CAAAC,G,wJAe6D,M,aAIX,M,cAKb,M,cAKA,M,8BAQS,I,8GApC7CC,KAAKC,WAAaC,EAAS,eAE3BF,KAAKG,EAAIC,EAAQJ,KAAKK,MACtBL,KAAKM,EAAIC,EAAQP,KAAKG,E,CAgEvB,YAAAK,CAAaC,GACZC,EAAaC,EAAiBF,EAAUG,EAAgBC,K,CAMzD,aAAAC,GACCd,KAAKe,kB,CAGE,gBAAAA,GACPf,KAAKM,EAAEU,kBAAkB,OAAQhB,KAAKiB,MACtCjB,KAAKM,EAAEU,kBAAkB,UAAWE,EAAWlB,KAAKmB,UACpDnB,KAAKM,EAAEU,kBAAkB,OAAQ,S,CAGlC,iBAAAI,GACCpB,KAAKe,kB,CAGN,wBAAMM,GACLrB,KAAKM,EAAEgB,gBAAgB,aAActB,KAAKuB,YAAcvB,KAAKC,YAC7DD,KAAKM,EAAEgB,gBAAgB,WAAYE,OAAOxB,KAAKyB,WAC/C,GAAIC,IAA2B,OACxBC,EAAM,WACN3B,KAAK4B,c,EAIb,MAAAC,GACC,MAAMC,EAAgBC,IACrB,GAAI/B,KAAKgC,QAAS,CACjB,OACC7B,EAAA,aACE4B,E,CAIJ,OAAOA,CAAQ,EAGhB,OACC5B,EAAC8B,EAAI,CAACC,MAAOlC,KAAKG,EAAEgC,QAAQvB,EAAgBC,MAAOuB,QAASpC,KAAKoC,QAASnB,KAAMjB,KAAKiB,KAAME,QAASkB,EAAoBrC,KAAKmB,UAC5HhB,EAAA,OAAK+B,MAAOtB,EAAgB0B,QAC1BR,EACA3B,EAACoC,EAAQ,KACRpC,EAAA,SACC+B,MAAOtB,EAAgB4B,MACvBC,GAAIzC,KAAKuB,YAAcvB,KAAKC,WAC5ByC,KAAK,WACLC,MAAO3C,KAAK2C,MACZC,KAAM5C,KAAK4C,KACXC,SAAU7C,KAAK6C,SACfT,QAASpC,KAAKoC,QACdU,QAAS9C,KAAK+C,eAAeC,KAAKhD,MAClCiD,SAAUjD,KAAKkD,gBAAgBF,KAAKhD,MACpCmD,QAASnD,KAAKoD,eAAeJ,KAAKhD,MAClCqD,OAAQrD,KAAKsD,cAAcN,KAAKhD,MAChCuD,IAAKC,GAAOxD,KAAKyD,SAAWD,EAC5B/B,SAAUzB,KAAKyB,SAAQ,eACTzB,KAAKoC,QAAO,gBACXC,EAAoBrC,KAAKyB,UAAS,eACnCY,EAAoBrC,KAAKmB,SAAQ,mBAC7BnB,KAAK0D,gBAAe,kBACrB1D,KAAK2D,eAAc,gBACrBtB,EAAoBrC,KAAK6C,YAEzC1C,EAAA,QAAM+B,MAAOtB,EAAgBgD,YAC7BzD,EAAA,QAAMyC,KAAK,a,CAQT,cAAAG,CAAec,GACtBA,EAAEC,iB,CAGK,cAAAV,CAAeS,GACtBA,EAAEC,kBACF9D,KAAK+D,SAASC,KAAK,CAClBC,UAAWrD,EAAgBC,KAC3BuB,QAASpC,KAAKoC,QACdO,MAAO3C,KAAK2C,MACZuB,cAAeL,G,CAIT,aAAAP,CAAcO,GACrBA,EAAEC,kBACF9D,KAAKmE,QAAQH,KAAK,CACjBC,UAAWrD,EAAgBC,KAC3BuB,QAASpC,KAAKoC,QACdO,MAAO3C,KAAK2C,MACZuB,cAAeL,G,CAIT,eAAAX,CAAgBW,GACvB7D,KAAKoC,QAAWyB,EAAEO,OAA4BhC,QAC9CyB,EAAEC,kBACF9D,KAAKqE,UAAUL,KAAK,CACnBC,UAAWrD,EAAgBC,KAC3BuB,QAASpC,KAAKoC,QACdO,MAAO3C,KAAK2C,MACZuB,cAAeL,G,CAQjB,YAAMS,GACL,OAAOtE,KAAKyD,Q,CAOb,kBAAM7B,GACL2C,EAAgBvE,KAAK0D,gBAAiB,oBAAqB9C,EAAgBC,MAC3E0D,EAAgBvE,KAAK2D,eAAgB,mBAAoB/C,EAAgBC,MACzE2D,EAAqBxE,KAAKuB,YAAcvB,KAAKC,WAAYD,KAAK2D,eAAgB/C,EAAgBC,K"}
@@ -0,0 +1,2 @@
1
+ import{r as a,h as r,a as o,g as t}from"./p-5bc604a3.js";import{v as i}from"./p-dcb5fb35.js";import{S as s,a as n,b as e,c as v}from"./p-17ebfe85.js";import{g as c}from"./p-5de606f8.js";import"./p-7f2c9830.js";import"./p-003e6cca.js";import"./p-03990da5.js";import"./p-ff7365ae.js";const d='.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-statsbar{position:relative;display:block;width:100%;padding:1.25rem 0}.gov-statsbar__section{display:block;width:100%;max-width:calc(var(--gov-container-width, 73.75rem) + 2 * var(--gov-container-padding, 2.5rem));margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile, 1.25rem);padding-left:var(--gov-container-padding-mobile, 1.25rem)}@media (min-width: 48em){.gov-statsbar__section{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}.gov-statsbar[variant=primary]{background-color:var(--gov-statsbar-primary-bg-color, var(--gov-color-primary-200));color:var(--gov-statsbar-primary-text-color, var(--gov-color-primary))}.gov-statsbar[variant=primary][inverse=""],.gov-statsbar[variant=primary][inverse=true i],.gov-statsbar[variant=primary][inverse="1"]{background:var(--gov-color-neutral-white);color:var(--gov-statsbar-primary-text-color-inverse, var(--gov-color-primary))}.gov-statsbar[variant=secondary]{background-color:var(--gov-statsbar-secondary-bg-color, var(--gov-color-secondary));color:var(--gov-statsbar-secondary-text-color, var(--gov-color-neutral-white))}.gov-statsbar[variant=secondary][inverse=""],.gov-statsbar[variant=secondary][inverse=true i],.gov-statsbar[variant=secondary][inverse="1"]{background:var(--gov-color-neutral-white);color:var(--gov-statsbar-secondary-text-color-inverse, var(--gov-color-secondary))}@media (min-width: 30em){.gov-statsbar__section{display:flex;flex-wrap:wrap;justify-content:center}}@media (min-width: 48em){.gov-statsbar{padding:0}}';const g=class{constructor(r){a(this,r);this.iconPosition=undefined;this.variant=s.PRIMARY;this.h=c(this.host)}validateIconPosition(a){i(v,a,e.root)}validateVariant(a){i(s,a,e.root)}componentWillLoad(){this.validateIconPosition(this.iconPosition);this.validateVariant(this.variant)}componentDidLoad(){this.host.querySelectorAll(n.root).forEach((a=>{if(this.iconPosition==="left"){a.setAttribute("icon-position","left")}}))}render(){return r(o,{class:this.h.classes(e.root),variant:this.variant},r("section",{class:e.section},r("slot",null)))}get host(){return t(this)}static get watchers(){return{iconPosition:["validateIconPosition"],variant:["validateVariant"]}}};g.style=d;export{g as gov_statsbar};
2
+ //# sourceMappingURL=p-9469ecc2.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govStatsbarCss","GovStatsbar","constructor","hostRef","StatsBarVariants","PRIMARY","this","h","govHost","host","validateIconPosition","newValue","validateProp","StatsBarIconPosition","StatsBarClass","root","validateVariant","componentWillLoad","iconPosition","variant","componentDidLoad","querySelectorAll","StatsBarItemClass","forEach","node","setAttribute","render","Host","class","classes","section"],"sources":["../../../packages/core/src/components/gov-statsbar/gov-statsbar.scss?tag=gov-statsbar","../../../packages/core/src/components/gov-statsbar/gov-statsbar.tsx"],"sourcesContent":["/*\n * Statsbar\n */\n\n$class: \".gov-statsbar\";\n\n#{$class} {\n\t@include base();\n\tpadding: rem-calc(20) 0;\n\t&__section {\n\t\t@include container();\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $statsbar-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tbackground-color: #{get(\"bg-color\", $definitions)};\n\t\t\tcolor: #{get(\"text-color\", $definitions)};\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tbackground: color(\"neutral.white\");\n\t\t\t\tcolor: #{get(\"text-color-inverse\", $definitions)};\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&__section {\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: wrap;\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\tpadding: 0;\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport {\n\tStatsBarClass,\n\tStatsBarIconPosition,\n\tStatsBarIconPositionType,\n\tStatsBarItemClass,\n\tStatsBarVariants,\n\tStatsBarVariantType,\n} from \"./constants\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { govHost } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-statsbar\",\n\tstyleUrl: \"gov-statsbar.scss\",\n})\nexport class GovStatsbar {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovStatsbarElement\n\n\t/**\n\t * Icon’s position\n\t */\n\t@Prop({ attribute: \"icon-position\" }) readonly iconPosition?: StatsBarIconPositionType\n\t/**\n\t * Style variation\n\t */\n\t@Prop({ attribute: \"variant\" }) readonly variant?: StatsBarVariantType = StatsBarVariants.PRIMARY\n\n\t@Watch(\"iconPosition\")\n\tvalidateIconPosition(newValue: string): void {\n\t\tvalidateProp(StatsBarIconPosition, newValue, StatsBarClass.root)\n\t}\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(StatsBarVariants, newValue, StatsBarClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateIconPosition(this.iconPosition)\n\t\tthis.validateVariant(this.variant)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(StatsBarItemClass.root).forEach((node: any) => {\n\t\t\tif (this.iconPosition === \"left\") {\n\t\t\t\tnode.setAttribute(\"icon-position\", \"left\")\n\t\t\t}\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(StatsBarClass.root)} variant={this.variant}>\n\t\t\t\t<section class={StatsBarClass.section}>\n\t\t\t\t\t<slot />\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"0RAAA,MAAMA,EAAiB,83D,MCiBVC,EAAW,MAGvB,WAAAC,CAAAC,G,mDAayEC,EAAiBC,QAZzFC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAevB,oBAAAC,CAAqBC,GACpBC,EAAaC,EAAsBF,EAAUG,EAAcC,K,CAI5D,eAAAC,CAAgBL,GACfC,EAAaR,EAAkBO,EAAUG,EAAcC,K,CAGxD,iBAAAE,GACCX,KAAKI,qBAAqBJ,KAAKY,cAC/BZ,KAAKU,gBAAgBV,KAAKa,Q,CAG3B,gBAAAC,GACCd,KAAKG,KAAKY,iBAAiBC,EAAkBP,MAAMQ,SAASC,IAC3D,GAAIlB,KAAKY,eAAiB,OAAQ,CACjCM,EAAKC,aAAa,gBAAiB,O,KAKtC,MAAAC,GACC,OACCnB,EAACoB,EAAI,CAACC,MAAOtB,KAAKC,EAAEsB,QAAQf,EAAcC,MAAOI,QAASb,KAAKa,SAC9DZ,EAAA,WAASqB,MAAOd,EAAcgB,SAC7BvB,EAAA,c"}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as s,a,g as e,c as o}from"./p-5bc604a3.js";import{c as i,v as r}from"./p-7724b535.js";import{c as n}from"./p-003e6cca.js";import{d as c}from"./p-03990da5.js";import{g as m}from"./p-5de606f8.js";import{F as g,a as l}from"./p-6278531b.js";import{v}from"./p-dcb5fb35.js";import{c as p}from"./p-24636c53.js";import"./p-7f2c9830.js";import"./p-ff7365ae.js";const h={root:"gov-attachments",label:"gov-attachments__label",list:"gov-attachments__list"};const f={root:"gov-attachments-item",name:"gov-attachments-item__name",file:"gov-attachments-item__file",messages:"gov-attachments-item__messages"};const d=".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-attachments{position:relative;display:block;width:100%}.gov-attachments__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);color:var(--gov-form-label-color, #686868)}.gov-attachments__list>*:last-child{margin-bottom:0}";const y=class{constructor(s){t(this,s);this.label=undefined;this.wcagLabel=undefined;this.h=m(this.host)}async componentDidRender(){if(n()){await c(500);await this.validateWcag()}}render(){return s(a,{class:this.h.classes(h.root)},this.label?s("p",{class:h.label},this.label):null,s("div",{class:h.list,role:"list","aria-label":this.wcagLabel},s("slot",null)))}async validateWcag(){i(this.wcagLabel,"wcag-label",h.root)}get host(){return e(this)}};y.style=d;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-attachments-item{position:relative;display:block;width:100%;margin:0rem 0rem 0.5rem}.gov-attachments-item__messages>*:last-child{margin-bottom:0}.gov-attachments-item__file{display:flex;gap:1rem}.gov-attachments-item__name{display:flex;gap:0 0.5rem;flex-wrap:wrap;align-items:center;align-self:center;margin:0;color:var(--gov-attachments-name-color, var(--gov-color-primary))}.gov-attachments-item__name span{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);color:var(--gov-attachments-decor-color, var(--gov-color-secondary-700))}";const x=class{constructor(s){t(this,s);this.govRemove=o(this,"gov-remove",7);this.wcagRemoveLabel=undefined;this.wcagRemoveLabelledBy=undefined;this.h=m(this.host)}async componentDidRender(){if(n()){await c(500);await this.validateWcag()}}render(){return s(a,{class:this.h.classes(f.root),role:"listitem"},s("div",{class:f.file},s("p",{class:f.name},s("slot",null),s("slot",{name:"info"})),s("gov-button",{variant:"primary",type:"base",size:"s","wcag-label":this.wcagRemoveLabel,"wcag-labelled-by":this.wcagRemoveLabelledBy,"on-gov-click":this.govRemove.emit},s("gov-icon",{slot:"left-icon",name:"x-lg"}))),this.h.hasSlot("message")&&s("div",{class:f.messages},s("slot",{name:"message"})))}async validateWcag(){r(this.wcagRemoveLabel,this.wcagRemoveLabelledBy,f.root)}get host(){return e(this)}};x.style=u;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-message{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);display:flex;gap:0.5rem;margin:0rem 0rem 1rem}.gov-form-message__icon{position:relative;top:calc(var(--gov-text-s-font-size) / 6);display:flex}.gov-form-message__icon>*{width:calc(var(--gov-text-s-font-size) * 1.167);height:calc(var(--gov-text-s-font-size) * 1.167)}.gov-form-message[variant=error]{color:var(--gov-form-message-error-color, var(--gov-color-error-400))}.gov-form-message[variant=secondary]{color:var(--gov-form-message-secondary-color, var(--gov-color-secondary-700))}.gov-form-message[variant=warning]{color:var(--gov-form-message-warning-color, var(--gov-color-warning-500))}.gov-form-message[variant=success]{color:var(--gov-form-message-success-color, var(--gov-color-success-500))}";const b=class{constructor(s){t(this,s);this.variant="secondary";this.h=m(this.host);this.messageId=p("GovFormMessage")}validateVariant(t){v(l,t,g.root)}componentWillLoad(){this.validateVariant(this.variant)}render(){return s(a,{class:this.h.classes(g.root),variant:this.variant},this.h.hasSlot("icon")&&s("span",{class:g.icon},s("slot",{name:"icon"})),s("span",{id:this.messageId,class:g.content},s("slot",null)))}async identifier(){return this.messageId}get host(){return e(this)}static get watchers(){return{variant:["validateVariant"]}}};b.style=_;export{y as gov_attachments,x as gov_attachments_item,b as gov_form_message};
2
+ //# sourceMappingURL=p-984b36f7.entry.js.map