@gov-design-system-ce/components 4.1.1 → 4.1.3-BETA-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 (471) hide show
  1. package/dist/cjs/core.cjs.js +2 -2
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
  3. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
  5. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
  7. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
  8. package/dist/cjs/gov-button.cjs.entry.js +1 -1
  9. package/dist/cjs/gov-card.cjs.entry.js +10 -7
  10. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  11. package/dist/cjs/gov-chip.cjs.entry.js +3 -3
  12. package/dist/cjs/gov-container.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
  14. package/dist/cjs/gov-cookiebar.cjs.entry.js +2 -2
  15. package/dist/cjs/gov-dialog.cjs.entry.js +2 -2
  16. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/gov-empty.cjs.entry.js +2 -2
  18. package/dist/cjs/gov-error-code.cjs.entry.js +2 -2
  19. package/dist/cjs/{gov-flex_4.cjs.entry.js → gov-flex_3.cjs.entry.js} +24 -29
  20. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -0
  21. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +2 -2
  22. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +3 -3
  23. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-form-checkbox.cjs.entry.js +1 -1
  25. package/dist/cjs/gov-form-control.cjs.entry.js +2 -2
  26. package/dist/cjs/gov-form-file.cjs.entry.js +2 -2
  27. package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
  28. package/dist/cjs/gov-form-input_2.cjs.entry.js +7 -7
  29. package/dist/cjs/gov-form-label.cjs.entry.js +27 -0
  30. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
  31. package/dist/cjs/gov-form-multi-select.cjs.entry.js +3 -3
  32. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  33. package/dist/cjs/gov-form-radio-group.cjs.entry.js +3 -3
  34. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  35. package/dist/cjs/gov-form-radio.cjs.entry.js +1 -1
  36. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  37. package/dist/cjs/gov-form-select.cjs.entry.js +3 -3
  38. package/dist/cjs/gov-form-switch.cjs.entry.js +1 -1
  39. package/dist/cjs/gov-grid-item.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-grid.cjs.entry.js +2 -2
  41. package/dist/cjs/gov-infobar.cjs.entry.js +3 -3
  42. package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
  43. package/dist/cjs/gov-layout.cjs.entry.js +2 -2
  44. package/dist/cjs/gov-lifecycle.cjs.entry.js +2 -2
  45. package/dist/cjs/gov-link.cjs.entry.js +2 -2
  46. package/dist/cjs/gov-loading.cjs.entry.js +2 -2
  47. package/dist/cjs/gov-message.cjs.entry.js +2 -2
  48. package/dist/cjs/gov-pagination.cjs.entry.js +1 -1
  49. package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
  50. package/dist/cjs/gov-stepper-item.cjs.entry.js +2 -2
  51. package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
  52. package/dist/cjs/gov-tabs-item.cjs.entry.js +2 -2
  53. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  54. package/dist/cjs/gov-tag.cjs.entry.js +3 -2
  55. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  57. package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
  58. package/dist/cjs/gov-toast.cjs.entry.js +2 -2
  59. package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
  60. package/dist/cjs/gov-tooltip.cjs.entry.js +3 -3
  61. package/dist/cjs/gov-wizard-item.cjs.entry.js +3 -3
  62. package/dist/cjs/gov-wizard.cjs.entry.js +2 -2
  63. package/dist/cjs/{index-7ff4447c.js → index-67e87c27.js} +14 -3
  64. package/dist/cjs/index-67e87c27.js.map +1 -0
  65. package/dist/cjs/loader.cjs.js +2 -2
  66. package/dist/collection/components/gov-attachments/gov-attachments-item.css +2 -7
  67. package/dist/collection/components/gov-card/constants.js +7 -4
  68. package/dist/collection/components/gov-card/constants.js.map +1 -1
  69. package/dist/collection/components/gov-card/gov-card.js +16 -10
  70. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  71. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  72. package/dist/collection/components/gov-container/gov-container.js +1 -1
  73. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  74. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  75. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  76. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  77. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  78. package/dist/collection/components/gov-flex/constants.js +2 -0
  79. package/dist/collection/components/gov-flex/constants.js.map +1 -1
  80. package/dist/collection/components/gov-flex/gov-flex.js +33 -9
  81. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  82. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -1
  83. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  84. package/dist/collection/components/gov-form/file/gov-form-file.js +1 -1
  85. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  86. package/dist/collection/components/gov-form/group/gov-form-group.css +3 -8
  87. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  88. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  89. package/dist/collection/components/gov-form/input/gov-form-input.js +5 -5
  90. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  91. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  92. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +2 -2
  93. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  94. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  95. package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
  96. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  97. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  98. package/dist/collection/components/gov-icon/gov-icon.js +8 -0
  99. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  100. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  101. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  102. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  103. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  104. package/dist/collection/components/gov-link/gov-link.js +1 -1
  105. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  106. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  107. package/dist/collection/components/gov-message/gov-message.js +1 -1
  108. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  109. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  110. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  111. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  112. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  113. package/dist/collection/components/gov-tag/gov-tag.js +20 -1
  114. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  115. package/dist/collection/components/gov-theme-switch/constants.js +0 -2
  116. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  117. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +32 -9
  118. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  119. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  120. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  121. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  122. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  123. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  124. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  125. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  126. package/dist/collection/pages/Card.js +22 -37
  127. package/dist/collection/pages/Card.js.map +1 -1
  128. package/dist/collection/pages/Flex.js +62 -0
  129. package/dist/collection/pages/Flex.js.map +1 -0
  130. package/dist/collection/pages/Forms.js +5 -5
  131. package/dist/collection/pages/Forms.js.map +1 -1
  132. package/dist/collection/pages/Tag.js +30 -23
  133. package/dist/collection/pages/Tag.js.map +1 -1
  134. package/dist/collection/utils/icon.utils.js +4 -0
  135. package/dist/collection/utils/icon.utils.js.map +1 -1
  136. package/dist/components/gov-accordion-item.js +1 -1
  137. package/dist/components/gov-accordion.js +1 -1
  138. package/dist/components/gov-attachments-item.js +1 -1
  139. package/dist/components/gov-attachments.js +1 -1
  140. package/dist/components/gov-backdrop.js +1 -1
  141. package/dist/components/gov-breadcrumbs.js +1 -1
  142. package/dist/components/gov-button.js +1 -1
  143. package/dist/components/gov-card.js +1 -1
  144. package/dist/components/gov-card.js.map +1 -1
  145. package/dist/components/gov-chip.js +1 -1
  146. package/dist/components/gov-container.js +1 -1
  147. package/dist/components/gov-control-group.js +1 -1
  148. package/dist/components/gov-cookiebar.js +1 -1
  149. package/dist/components/gov-dialog.js +1 -1
  150. package/dist/components/gov-dropdown.js +1 -1
  151. package/dist/components/gov-empty.js +1 -1
  152. package/dist/components/gov-error-code.js +1 -1
  153. package/dist/components/gov-flex.js +1 -1
  154. package/dist/components/gov-flex.js.map +1 -1
  155. package/dist/components/gov-form-autocomplete.js +1 -1
  156. package/dist/components/gov-form-checkbox-group.js +1 -1
  157. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  158. package/dist/components/gov-form-checkbox.js +1 -1
  159. package/dist/components/gov-form-control.js +1 -1
  160. package/dist/components/gov-form-file.js +1 -1
  161. package/dist/components/gov-form-file.js.map +1 -1
  162. package/dist/components/gov-form-group.js +1 -1
  163. package/dist/components/gov-form-input.js +1 -1
  164. package/dist/components/gov-form-label.js +1 -1
  165. package/dist/components/gov-form-label.js.map +1 -1
  166. package/dist/components/gov-form-message.js +1 -1
  167. package/dist/components/gov-form-multi-select.js +1 -1
  168. package/dist/components/gov-form-password-power.js +1 -1
  169. package/dist/components/gov-form-radio-group.js +1 -1
  170. package/dist/components/gov-form-radio-group.js.map +1 -1
  171. package/dist/components/gov-form-radio.js +1 -1
  172. package/dist/components/gov-form-search.js +1 -1
  173. package/dist/components/gov-form-select.js +1 -1
  174. package/dist/components/gov-form-switch.js +1 -1
  175. package/dist/components/gov-grid-item.js +1 -1
  176. package/dist/components/gov-grid.js +1 -1
  177. package/dist/components/gov-icon.js +1 -1
  178. package/dist/components/gov-infobar.js +1 -1
  179. package/dist/components/gov-layout-column.js +1 -1
  180. package/dist/components/gov-layout.js +1 -1
  181. package/dist/components/gov-lifecycle.js +1 -1
  182. package/dist/components/gov-link.js +1 -1
  183. package/dist/components/gov-link.js.map +1 -1
  184. package/dist/components/gov-loading.js +1 -1
  185. package/dist/components/gov-loading.js.map +1 -1
  186. package/dist/components/gov-message.js +1 -1
  187. package/dist/components/gov-pagination.js +1 -1
  188. package/dist/components/gov-skeleton.js +1 -1
  189. package/dist/components/gov-spacer.js +1 -1
  190. package/dist/components/gov-stepper-item.js +1 -1
  191. package/dist/components/gov-stepper.js +1 -1
  192. package/dist/components/gov-tabs-item.js +1 -1
  193. package/dist/components/gov-tabs.js +1 -1
  194. package/dist/components/gov-tabs.js.map +1 -1
  195. package/dist/components/gov-tag.js +1 -1
  196. package/dist/components/gov-tag.js.map +1 -1
  197. package/dist/components/gov-theme-switch.js +1 -1
  198. package/dist/components/gov-theme-switch.js.map +1 -1
  199. package/dist/components/gov-tile.js +1 -1
  200. package/dist/components/gov-tiles.js +1 -1
  201. package/dist/components/gov-toast.js +1 -1
  202. package/dist/components/gov-tooltip-content.js +1 -1
  203. package/dist/components/gov-tooltip.js +1 -1
  204. package/dist/components/gov-tooltip.js.map +1 -1
  205. package/dist/components/gov-wizard-item.js +1 -1
  206. package/dist/components/gov-wizard.js +1 -1
  207. package/dist/components/index.js +1 -1
  208. package/dist/components/{p-73938936.js → p-03ad4e0f.js} +2 -2
  209. package/dist/components/p-115b9cf3.js +3 -0
  210. package/dist/components/p-115b9cf3.js.map +1 -0
  211. package/dist/components/p-2bd9e821.js +2 -0
  212. package/dist/components/{p-1eb9c053.js.map → p-2bd9e821.js.map} +1 -1
  213. package/dist/components/p-34c6a704.js +2 -0
  214. package/dist/components/{p-b95ebe8c.js.map → p-34c6a704.js.map} +1 -1
  215. package/dist/components/{p-ac359044.js → p-350e060c.js} +2 -2
  216. package/dist/components/{p-7be2301a.js → p-384c7f2a.js} +2 -2
  217. package/dist/components/p-50964838.js +2 -0
  218. package/dist/components/p-50964838.js.map +1 -0
  219. package/dist/components/{p-318d89bd.js → p-8080982e.js} +2 -2
  220. package/dist/components/p-8ee6f2f3.js +2 -0
  221. package/dist/components/{p-a6be4769.js → p-915c4f3a.js} +2 -2
  222. package/dist/components/p-ae7a283c.js +2 -0
  223. package/dist/components/{p-283b66c3.js → p-e532e5e5.js} +2 -2
  224. package/dist/core/core.css +438 -273
  225. package/dist/core/core.esm.js +1 -1
  226. package/dist/core/core.esm.js.map +1 -1
  227. package/dist/core/p-017ff5a5.entry.js +2 -0
  228. package/dist/core/{p-2739fa61.entry.js.map → p-017ff5a5.entry.js.map} +1 -1
  229. package/dist/core/{p-c916d0d2.entry.js → p-032accfb.entry.js} +2 -2
  230. package/dist/core/p-058e6fe2.entry.js +2 -0
  231. package/dist/core/{p-3d6edb09.entry.js.map → p-058e6fe2.entry.js.map} +1 -1
  232. package/dist/core/{p-0be19b89.entry.js → p-063b70a2.entry.js} +2 -2
  233. package/dist/core/{p-dea64896.entry.js → p-0724cb6a.entry.js} +2 -2
  234. package/dist/core/p-09c9eba6.entry.js +2 -0
  235. package/dist/core/p-09ea5c11.entry.js +2 -0
  236. package/dist/core/p-09ea5c11.entry.js.map +1 -0
  237. package/dist/core/p-0c076b21.entry.js +2 -0
  238. package/dist/core/{p-97a9725d.entry.js → p-0f0f7302.entry.js} +2 -2
  239. package/dist/core/p-10f773c2.entry.js +2 -0
  240. package/dist/core/p-14d66f26.entry.js +2 -0
  241. package/dist/core/p-1aa7450e.entry.js +2 -0
  242. package/dist/core/{p-6bb37fe2.entry.js.map → p-1aa7450e.entry.js.map} +1 -1
  243. package/dist/core/p-237a5b91.entry.js +2 -0
  244. package/dist/core/{p-e61aa53b.entry.js.map → p-237a5b91.entry.js.map} +1 -1
  245. package/dist/core/p-269071f5.entry.js +2 -0
  246. package/dist/core/{p-da7f1e11.entry.js.map → p-269071f5.entry.js.map} +1 -1
  247. package/dist/core/p-2ee042d4.js +3 -0
  248. package/dist/core/p-2ee042d4.js.map +1 -0
  249. package/dist/core/{p-ed833334.entry.js → p-33310735.entry.js} +2 -2
  250. package/dist/core/p-347d15d5.entry.js +2 -0
  251. package/dist/core/{p-019e967c.entry.js.map → p-347d15d5.entry.js.map} +1 -1
  252. package/dist/core/p-37473c34.entry.js +2 -0
  253. package/dist/core/p-37473c34.entry.js.map +1 -0
  254. package/dist/core/{p-432c3875.entry.js → p-3849ca02.entry.js} +2 -2
  255. package/dist/core/p-3a7381e7.entry.js +2 -0
  256. package/dist/core/{p-bdc51179.entry.js.map → p-3a7381e7.entry.js.map} +1 -1
  257. package/dist/core/p-43d3dbc0.entry.js +2 -0
  258. package/dist/core/p-45b759f4.entry.js +2 -0
  259. package/dist/core/{p-f4dac942.entry.js.map → p-45b759f4.entry.js.map} +1 -1
  260. package/dist/core/p-4c60e125.entry.js +2 -0
  261. package/dist/core/p-4e29744a.entry.js +2 -0
  262. package/dist/core/{p-41c6b262.entry.js.map → p-4e29744a.entry.js.map} +1 -1
  263. package/dist/core/p-4fa0320d.entry.js +2 -0
  264. package/dist/core/p-50af9ae8.entry.js +2 -0
  265. package/dist/core/{p-ccec8019.entry.js → p-5c3f4cfe.entry.js} +2 -2
  266. package/dist/core/p-6b7c3a96.entry.js +2 -0
  267. package/dist/core/{p-4c5f6299.entry.js.map → p-6b7c3a96.entry.js.map} +1 -1
  268. package/dist/core/p-71f5d4ff.entry.js +2 -0
  269. package/dist/core/{p-439b66a5.entry.js.map → p-71f5d4ff.entry.js.map} +1 -1
  270. package/dist/core/{p-9fe35463.entry.js → p-77daba72.entry.js} +2 -2
  271. package/dist/core/p-7a21fb90.entry.js +2 -0
  272. package/dist/core/{p-56dc370d.entry.js.map → p-7a21fb90.entry.js.map} +1 -1
  273. package/dist/core/{p-d65cef62.entry.js → p-7baee44f.entry.js} +2 -2
  274. package/dist/core/{p-7e04730a.entry.js → p-7dfb7e36.entry.js} +2 -2
  275. package/dist/core/p-8bb6c816.entry.js +2 -0
  276. package/dist/core/{p-bc966c46.entry.js.map → p-8bb6c816.entry.js.map} +1 -1
  277. package/dist/core/p-8cc5ad01.entry.js +2 -0
  278. package/dist/core/p-8cc5ad01.entry.js.map +1 -0
  279. package/dist/core/p-906865d0.entry.js +2 -0
  280. package/dist/core/{p-c054f955.entry.js.map → p-906865d0.entry.js.map} +1 -1
  281. package/dist/core/{p-b7cfe254.entry.js → p-927c31dd.entry.js} +2 -2
  282. package/dist/core/p-967a1094.entry.js +2 -0
  283. package/dist/core/{p-04fa0ab5.entry.js.map → p-967a1094.entry.js.map} +1 -1
  284. package/dist/core/{p-3cb36bae.entry.js → p-9846fd13.entry.js} +2 -2
  285. package/dist/core/{p-1200a32d.entry.js → p-994385ca.entry.js} +2 -2
  286. package/dist/core/{p-d836fcde.entry.js → p-9f8d69a9.entry.js} +2 -2
  287. package/dist/core/{p-e834ee73.entry.js → p-a6a9de9a.entry.js} +2 -2
  288. package/dist/core/p-b62e49ee.entry.js +2 -0
  289. package/dist/core/{p-bcb45a18.entry.js → p-c0800e6d.entry.js} +2 -2
  290. package/dist/core/p-cecbe73f.entry.js +2 -0
  291. package/dist/core/{p-5c9e6275.entry.js.map → p-cecbe73f.entry.js.map} +1 -1
  292. package/dist/core/p-d795a421.entry.js +2 -0
  293. package/dist/core/{p-0fdd8929.entry.js → p-d9b42773.entry.js} +2 -2
  294. package/dist/core/{p-561718cd.entry.js → p-e0a199ff.entry.js} +2 -2
  295. package/dist/core/p-e215f3ee.entry.js +2 -0
  296. package/dist/core/p-ed02945f.entry.js +2 -0
  297. package/dist/core/p-ee55932a.entry.js +2 -0
  298. package/dist/core/{p-f7a4da9d.entry.js → p-f2bb8c29.entry.js} +2 -2
  299. package/dist/core/{p-72130a8f.entry.js → p-f54edd6c.entry.js} +2 -2
  300. package/dist/core/p-f7f60f91.entry.js +2 -0
  301. package/dist/core/{p-b923a8d9.entry.js.map → p-f7f60f91.entry.js.map} +1 -1
  302. package/dist/core/{p-ed8fc183.entry.js → p-fcac8531.entry.js} +2 -2
  303. package/dist/esm/core.js +3 -3
  304. package/dist/esm/gov-accordion-item.entry.js +1 -1
  305. package/dist/esm/gov-accordion.entry.js +1 -1
  306. package/dist/esm/gov-attachments_3.entry.js +3 -3
  307. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  308. package/dist/esm/gov-backdrop.entry.js +1 -1
  309. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  310. package/dist/esm/gov-button.entry.js +1 -1
  311. package/dist/esm/gov-card.entry.js +10 -7
  312. package/dist/esm/gov-card.entry.js.map +1 -1
  313. package/dist/esm/gov-chip.entry.js +3 -3
  314. package/dist/esm/gov-container.entry.js +2 -2
  315. package/dist/esm/gov-control-group.entry.js +2 -2
  316. package/dist/esm/gov-cookiebar.entry.js +2 -2
  317. package/dist/esm/gov-dialog.entry.js +2 -2
  318. package/dist/esm/gov-dropdown.entry.js +1 -1
  319. package/dist/esm/gov-empty.entry.js +2 -2
  320. package/dist/esm/gov-error-code.entry.js +2 -2
  321. package/dist/esm/{gov-flex_4.entry.js → gov-flex_3.entry.js} +25 -29
  322. package/dist/esm/gov-flex_3.entry.js.map +1 -0
  323. package/dist/esm/gov-form-autocomplete.entry.js +2 -2
  324. package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
  325. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  326. package/dist/esm/gov-form-checkbox.entry.js +1 -1
  327. package/dist/esm/gov-form-control.entry.js +2 -2
  328. package/dist/esm/gov-form-file.entry.js +2 -2
  329. package/dist/esm/gov-form-group.entry.js +2 -2
  330. package/dist/esm/gov-form-input_2.entry.js +7 -7
  331. package/dist/esm/gov-form-label.entry.js +23 -0
  332. package/dist/esm/gov-form-label.entry.js.map +1 -0
  333. package/dist/esm/gov-form-multi-select.entry.js +3 -3
  334. package/dist/esm/gov-form-password-power.entry.js +2 -2
  335. package/dist/esm/gov-form-radio-group.entry.js +3 -3
  336. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  337. package/dist/esm/gov-form-radio.entry.js +1 -1
  338. package/dist/esm/gov-form-search.entry.js +2 -2
  339. package/dist/esm/gov-form-select.entry.js +3 -3
  340. package/dist/esm/gov-form-switch.entry.js +1 -1
  341. package/dist/esm/gov-grid-item.entry.js +2 -2
  342. package/dist/esm/gov-grid.entry.js +2 -2
  343. package/dist/esm/gov-infobar.entry.js +3 -3
  344. package/dist/esm/gov-layout-column.entry.js +2 -2
  345. package/dist/esm/gov-layout.entry.js +2 -2
  346. package/dist/esm/gov-lifecycle.entry.js +2 -2
  347. package/dist/esm/gov-link.entry.js +2 -2
  348. package/dist/esm/gov-loading.entry.js +2 -2
  349. package/dist/esm/gov-message.entry.js +2 -2
  350. package/dist/esm/gov-pagination.entry.js +1 -1
  351. package/dist/esm/gov-spacer.entry.js +2 -2
  352. package/dist/esm/gov-stepper-item.entry.js +2 -2
  353. package/dist/esm/gov-stepper.entry.js +2 -2
  354. package/dist/esm/gov-tabs-item.entry.js +2 -2
  355. package/dist/esm/gov-tabs.entry.js +2 -2
  356. package/dist/esm/gov-tag.entry.js +3 -2
  357. package/dist/esm/gov-tag.entry.js.map +1 -1
  358. package/dist/esm/gov-tile.entry.js +2 -2
  359. package/dist/esm/gov-tiles.entry.js +2 -2
  360. package/dist/esm/gov-toast.entry.js +2 -2
  361. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  362. package/dist/esm/gov-tooltip.entry.js +3 -3
  363. package/dist/esm/gov-wizard-item.entry.js +3 -3
  364. package/dist/esm/gov-wizard.entry.js +2 -2
  365. package/dist/esm/{index-c263e031.js → index-087b155c.js} +14 -4
  366. package/dist/esm/index-087b155c.js.map +1 -0
  367. package/dist/esm/loader.js +3 -3
  368. package/dist/hydrate/index.js +102 -76
  369. package/dist/hydrate/index.mjs +102 -76
  370. package/dist/types/components/gov-card/constants.d.ts +8 -4
  371. package/dist/types/components/gov-card/gov-card.d.ts +3 -2
  372. package/dist/types/components/gov-flex/constants.d.ts +4 -0
  373. package/dist/types/components/gov-flex/gov-flex.d.ts +9 -7
  374. package/dist/types/components/gov-tag/gov-tag.d.ts +4 -0
  375. package/dist/types/components/gov-theme-switch/constants.d.ts +0 -2
  376. package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +8 -4
  377. package/dist/types/components.d.ts +50 -22
  378. package/dist/types/pages/Flex.d.ts +3 -0
  379. package/package.json +1 -1
  380. package/dist/cjs/gov-flex_4.cjs.entry.js.map +0 -1
  381. package/dist/cjs/index-7ff4447c.js.map +0 -1
  382. package/dist/components/p-1eb9c053.js +0 -2
  383. package/dist/components/p-3d7a21b5.js +0 -2
  384. package/dist/components/p-42200001.js +0 -3
  385. package/dist/components/p-42200001.js.map +0 -1
  386. package/dist/components/p-46c567fd.js +0 -2
  387. package/dist/components/p-46c567fd.js.map +0 -1
  388. package/dist/components/p-68a1aaec.js +0 -2
  389. package/dist/components/p-68a1aaec.js.map +0 -1
  390. package/dist/components/p-a6b7a6c2.js +0 -2
  391. package/dist/components/p-b95ebe8c.js +0 -2
  392. package/dist/core/p-00d153bf.entry.js +0 -2
  393. package/dist/core/p-019e967c.entry.js +0 -2
  394. package/dist/core/p-04fa0ab5.entry.js +0 -2
  395. package/dist/core/p-22fa411d.entry.js +0 -2
  396. package/dist/core/p-2739fa61.entry.js +0 -2
  397. package/dist/core/p-30eaeeec.entry.js +0 -2
  398. package/dist/core/p-3d6edb09.entry.js +0 -2
  399. package/dist/core/p-3f6a2d20.entry.js +0 -2
  400. package/dist/core/p-3f6a2d20.entry.js.map +0 -1
  401. package/dist/core/p-41c6b262.entry.js +0 -2
  402. package/dist/core/p-439b66a5.entry.js +0 -2
  403. package/dist/core/p-4b90fbc4.entry.js +0 -2
  404. package/dist/core/p-4c5f6299.entry.js +0 -2
  405. package/dist/core/p-535316b4.entry.js +0 -2
  406. package/dist/core/p-5396935e.entry.js +0 -2
  407. package/dist/core/p-56dc370d.entry.js +0 -2
  408. package/dist/core/p-5b2131c1.entry.js +0 -2
  409. package/dist/core/p-5c9e6275.entry.js +0 -2
  410. package/dist/core/p-65e67731.entry.js +0 -2
  411. package/dist/core/p-6bb37fe2.entry.js +0 -2
  412. package/dist/core/p-6e457b3d.entry.js +0 -2
  413. package/dist/core/p-7b7e502b.entry.js +0 -2
  414. package/dist/core/p-8506b611.js +0 -3
  415. package/dist/core/p-8506b611.js.map +0 -1
  416. package/dist/core/p-9c2c5447.entry.js +0 -2
  417. package/dist/core/p-9c2c5447.entry.js.map +0 -1
  418. package/dist/core/p-b923a8d9.entry.js +0 -2
  419. package/dist/core/p-bc966c46.entry.js +0 -2
  420. package/dist/core/p-bdc51179.entry.js +0 -2
  421. package/dist/core/p-c054f955.entry.js +0 -2
  422. package/dist/core/p-cd2d335d.entry.js +0 -2
  423. package/dist/core/p-da7f1e11.entry.js +0 -2
  424. package/dist/core/p-e61aa53b.entry.js +0 -2
  425. package/dist/core/p-ea44d447.entry.js +0 -2
  426. package/dist/core/p-f4bcf817.entry.js +0 -2
  427. package/dist/core/p-f4dac942.entry.js +0 -2
  428. package/dist/esm/gov-flex_4.entry.js.map +0 -1
  429. package/dist/esm/index-c263e031.js.map +0 -1
  430. /package/dist/components/{p-73938936.js.map → p-03ad4e0f.js.map} +0 -0
  431. /package/dist/components/{p-ac359044.js.map → p-350e060c.js.map} +0 -0
  432. /package/dist/components/{p-7be2301a.js.map → p-384c7f2a.js.map} +0 -0
  433. /package/dist/components/{p-318d89bd.js.map → p-8080982e.js.map} +0 -0
  434. /package/dist/components/{p-a6b7a6c2.js.map → p-8ee6f2f3.js.map} +0 -0
  435. /package/dist/components/{p-a6be4769.js.map → p-915c4f3a.js.map} +0 -0
  436. /package/dist/components/{p-3d7a21b5.js.map → p-ae7a283c.js.map} +0 -0
  437. /package/dist/components/{p-283b66c3.js.map → p-e532e5e5.js.map} +0 -0
  438. /package/dist/core/{p-c916d0d2.entry.js.map → p-032accfb.entry.js.map} +0 -0
  439. /package/dist/core/{p-0be19b89.entry.js.map → p-063b70a2.entry.js.map} +0 -0
  440. /package/dist/core/{p-dea64896.entry.js.map → p-0724cb6a.entry.js.map} +0 -0
  441. /package/dist/core/{p-7b7e502b.entry.js.map → p-09c9eba6.entry.js.map} +0 -0
  442. /package/dist/core/{p-5b2131c1.entry.js.map → p-0c076b21.entry.js.map} +0 -0
  443. /package/dist/core/{p-97a9725d.entry.js.map → p-0f0f7302.entry.js.map} +0 -0
  444. /package/dist/core/{p-65e67731.entry.js.map → p-10f773c2.entry.js.map} +0 -0
  445. /package/dist/core/{p-cd2d335d.entry.js.map → p-14d66f26.entry.js.map} +0 -0
  446. /package/dist/core/{p-ed833334.entry.js.map → p-33310735.entry.js.map} +0 -0
  447. /package/dist/core/{p-432c3875.entry.js.map → p-3849ca02.entry.js.map} +0 -0
  448. /package/dist/core/{p-22fa411d.entry.js.map → p-43d3dbc0.entry.js.map} +0 -0
  449. /package/dist/core/{p-30eaeeec.entry.js.map → p-4c60e125.entry.js.map} +0 -0
  450. /package/dist/core/{p-5396935e.entry.js.map → p-4fa0320d.entry.js.map} +0 -0
  451. /package/dist/core/{p-6e457b3d.entry.js.map → p-50af9ae8.entry.js.map} +0 -0
  452. /package/dist/core/{p-ccec8019.entry.js.map → p-5c3f4cfe.entry.js.map} +0 -0
  453. /package/dist/core/{p-9fe35463.entry.js.map → p-77daba72.entry.js.map} +0 -0
  454. /package/dist/core/{p-d65cef62.entry.js.map → p-7baee44f.entry.js.map} +0 -0
  455. /package/dist/core/{p-7e04730a.entry.js.map → p-7dfb7e36.entry.js.map} +0 -0
  456. /package/dist/core/{p-b7cfe254.entry.js.map → p-927c31dd.entry.js.map} +0 -0
  457. /package/dist/core/{p-3cb36bae.entry.js.map → p-9846fd13.entry.js.map} +0 -0
  458. /package/dist/core/{p-1200a32d.entry.js.map → p-994385ca.entry.js.map} +0 -0
  459. /package/dist/core/{p-d836fcde.entry.js.map → p-9f8d69a9.entry.js.map} +0 -0
  460. /package/dist/core/{p-e834ee73.entry.js.map → p-a6a9de9a.entry.js.map} +0 -0
  461. /package/dist/core/{p-ea44d447.entry.js.map → p-b62e49ee.entry.js.map} +0 -0
  462. /package/dist/core/{p-bcb45a18.entry.js.map → p-c0800e6d.entry.js.map} +0 -0
  463. /package/dist/core/{p-00d153bf.entry.js.map → p-d795a421.entry.js.map} +0 -0
  464. /package/dist/core/{p-0fdd8929.entry.js.map → p-d9b42773.entry.js.map} +0 -0
  465. /package/dist/core/{p-561718cd.entry.js.map → p-e0a199ff.entry.js.map} +0 -0
  466. /package/dist/core/{p-535316b4.entry.js.map → p-e215f3ee.entry.js.map} +0 -0
  467. /package/dist/core/{p-4b90fbc4.entry.js.map → p-ed02945f.entry.js.map} +0 -0
  468. /package/dist/core/{p-f4bcf817.entry.js.map → p-ee55932a.entry.js.map} +0 -0
  469. /package/dist/core/{p-f7a4da9d.entry.js.map → p-f2bb8c29.entry.js.map} +0 -0
  470. /package/dist/core/{p-72130a8f.entry.js.map → p-f54edd6c.entry.js.map} +0 -0
  471. /package/dist/core/{p-ed8fc183.entry.js.map → p-fcac8531.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"gov-attachments.gov-attachments-item.gov-form-message.entry.js","mappings":";;;;;;;;;;;;AAAO,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,uBAAuB;CAC7B,CAAA;AAEM,MAAM,oBAAoB,GAAG;IACnC,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,4BAA4B;IAClC,QAAQ,EAAE,gCAAgC;CAC1C;;MCAY,cAAc;IAG1B;;;;QACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAYD,MAAM,kBAAkB;QACvB,IAAI,uBAAuB,EAAE,EAAE;YAC9B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;YAChB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;SACzB;KACD;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAChD,IAAI,CAAC,KAAK,GAAG,SAAG,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAG,IAAI,CAAC,KAAK,CAAK,GAAG,IAAI,EACvE,4DAAK,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAC,MAAM,gBAAa,IAAI,CAAC,SAAS,IACxE,8DAAQ,CACH,CACA,EACP;KACD;;;;IAMD,MAAM,YAAY;QACjB,gBAAgB,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;KACrE;;;;ACpDF,MAAM,qBAAqB,GAAG,suBAAsuB,CAAC;AAC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C,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;KAC3C;IAaD,aAAa,CAAC,QAAgB;QAC7B,YAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;KAChE;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KAC9B;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IACpF,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,6DAAM,IAAI,EAAC,MAAM,GAAG,CACpB,EACD,6DAAM,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,gBAAgB,CAAC,OAAO,IACxD,8DAAQ,CACF,CACD,EACP;KACD;;;;IAMD,MAAM,UAAU;QACf,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-attachments/constants.ts","../../../packages/core/src/components/gov-attachments/gov-attachments.tsx","../../../packages/core/src/components/gov-attachments/gov-attachments-item.scss?tag=gov-attachments-item","../../../packages/core/src/components/gov-attachments/gov-attachments-item.tsx","../../../packages/core/src/components/gov-form/message/gov-form-message.tsx"],"sourcesContent":["export const AttachmentsClass = {\n\troot: 'gov-attachments',\n\tlabel: 'gov-attachments__label',\n\tlist: 'gov-attachments__list',\n}\n\nexport const AttachmentsItemClass = {\n\troot: 'gov-attachments-item',\n\tname: 'gov-attachments-item__name',\n\tfile: 'gov-attachments-item__file',\n\tmessages: 'gov-attachments-item__messages',\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { AttachmentsClass } from './constants'\nimport { validateWcagProp } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments',\n})\nexport class GovAttachments {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsElement\n\t/**\n\t * Label of attachments section\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Adds accessible label for the attachment section that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsClass.root)}>\n\t\t\t\t{this.label ? <p class={AttachmentsClass.label}>{this.label}</p> : null}\n\t\t\t\t<div class={AttachmentsClass.list} role=\"list\" aria-label={this.wcagLabel}>\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\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagProp(this.wcagLabel, 'wcag-label', AttachmentsClass.root)\n\t}\n}\n","/* Attachments - Item */\n\n\ngov-attachments-item, .gov-attachments-item {\n\t// VARIABLES\n\t@import \"gov-attachments-variables\";\n\n\t@include base($display: flex);\n\tgap: var(--spacing-s);\n\t&__messages {\n\t\t@include reset-last-margin();\n\t}\n\t&__file {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t}\n\t&__name {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t\tflex-wrap: wrap;\n\t\talign-items: center;\n\t\tmargin: 0;\n\t\tcolor: $attachments-name-color;\n\t\tspan {\n\t\t\t@include typography(\"xs\");\n\t\t\tcolor: $attachments-decor-color;\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {AttachmentsItemClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments-item',\n\tstyleUrl: 'gov-attachments-item.scss',\n})\nexport class GovAttachmentsItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsItemElement\n\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-remove-label'}) readonly accessibleRemoveLabel: string\n\t/**\n\t * Indicates the id of a component that labels the remove button.\n\t */\n\t@Prop({attribute: 'accessible-remove-labelledby'}) readonly accessibleRemoveLabelledBy: string\n\t/**\n\t * Emitted when the file is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<PointerEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsItemClass.root)} role=\"listitem\">\n\t\t\t\t<div class={AttachmentsItemClass.file}>\n\t\t\t\t\t<p class={AttachmentsItemClass.name}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t<slot name=\"info\"/>\n\t\t\t\t\t</p>\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleRemoveLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleRemoveLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.govRemove.emit}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon slot=\"icon-start\" name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('message') && (\n\t\t\t\t\t<div class={AttachmentsItemClass.messages}>\n\t\t\t\t\t\t<slot name=\"message\"/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleRemoveLabel, this.accessibleRemoveLabelledBy, AttachmentsItemClass.root, this.host)\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop, Watch } from '@stencil/core'\nimport {FormMessageClass, FormMessageSizesTypes, FormMessageColors, FormMessageColorType} from './constants'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { createID } from '../../../utils/string.utils'\n\n@Component({\n\ttag: 'gov-form-message',\n})\nexport class GovFormMessage {\n\th: GovHost\n\tprivate readonly messageId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.messageId = createID('GovFormMessage')\n\t}\n\n\t@Element() host: HTMLGovFormMessageElement\n\t/**\n\t * Style variation of the message.\n\t */\n\t@Prop({ attribute: 'color' }) readonly color?: FormMessageColorType = 'neutral'\n\t/**\n\t * Message's size.\n\t */\n\t@Prop() readonly size?: FormMessageSizesTypes = 'm'\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(FormMessageColors, newValue, FormMessageClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormMessageClass.root)} color={this.color} size={this.size}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\t\t\t\t<span id={this.messageId} class={FormMessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns unique identifier of message\n\t */\n\t@Method()\n\tasync identifier(): Promise<string> {\n\t\treturn this.messageId\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-attachments.gov-attachments-item.gov-form-message.entry.js","mappings":";;;;;;;;;;;;AAAO,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,uBAAuB;CAC7B,CAAA;AAEM,MAAM,oBAAoB,GAAG;IACnC,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,4BAA4B;IAClC,QAAQ,EAAE,gCAAgC;CAC1C;;MCAY,cAAc;IAG1B;;;;QACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAYD,MAAM,kBAAkB;QACvB,IAAI,uBAAuB,EAAE,EAAE;YAC9B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;YAChB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;SACzB;KACD;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAChD,IAAI,CAAC,KAAK,GAAG,SAAG,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAG,IAAI,CAAC,KAAK,CAAK,GAAG,IAAI,EACvE,4DAAK,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAC,MAAM,gBAAa,IAA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;QAC1B,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;KAC1H;;;;;MClEW,cAAc;IAI1B;;qBASsE,SAAS;oBAI/B,GAAG;QAZlD,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;KAC3C;IAaD,aAAa,CAAC,QAAgB;QAC7B,YAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;KAChE;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KAC9B;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IACpF,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,6DAAM,IAAI,EAAC,MAAM,GAAG,CACpB,EACD,6DAAM,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,gBAAgB,CAAC,OAAO,IACxD,8DAAQ,CACF,CACD,EACP;KACD;;;;IAMD,MAAM,UAAU;QACf,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-attachments/constants.ts","../../../packages/core/src/components/gov-attachments/gov-attachments.tsx","../../../packages/core/src/components/gov-attachments/gov-attachments-item.scss?tag=gov-attachments-item","../../../packages/core/src/components/gov-attachments/gov-attachments-item.tsx","../../../packages/core/src/components/gov-form/message/gov-form-message.tsx"],"sourcesContent":["export const AttachmentsClass = {\n\troot: 'gov-attachments',\n\tlabel: 'gov-attachments__label',\n\tlist: 'gov-attachments__list',\n}\n\nexport const AttachmentsItemClass = {\n\troot: 'gov-attachments-item',\n\tname: 'gov-attachments-item__name',\n\tfile: 'gov-attachments-item__file',\n\tmessages: 'gov-attachments-item__messages',\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { AttachmentsClass } from './constants'\nimport { validateWcagProp } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments',\n})\nexport class GovAttachments {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsElement\n\t/**\n\t * Label of attachments section\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Adds accessible label for the attachment section that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsClass.root)}>\n\t\t\t\t{this.label ? <p class={AttachmentsClass.label}>{this.label}</p> : null}\n\t\t\t\t<div class={AttachmentsClass.list} role=\"list\" aria-label={this.wcagLabel}>\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\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagProp(this.wcagLabel, 'wcag-label', AttachmentsClass.root)\n\t}\n}\n","/* Attachments - Item */\n\n\ngov-attachments-item, .gov-attachments-item {\n\t// VARIABLES\n\t@import \"gov-attachments-variables\";\n\n\t@include base($display: flex);\n\tgap: var(--spacing-s);\n\t&__messages {\n\t\t@include reset-last-margin();\n\t}\n\t&__file {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t}\n\t&__name {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t\tflex-wrap: wrap;\n\t\talign-items: center;\n\t\tmargin: 0;\n\t\tcolor: $attachments-name-color;\n\t\tspan {\n\t\t\t@include typography(\"xs\");\n\t\t\tcolor: $attachments-decor-color;\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {AttachmentsItemClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-attachments-item',\n\tstyleUrl: 'gov-attachments-item.scss',\n})\nexport class GovAttachmentsItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsItemElement\n\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-remove-label'}) readonly accessibleRemoveLabel: string\n\t/**\n\t * Indicates the id of a component that labels the remove button.\n\t */\n\t@Prop({attribute: 'accessible-remove-labelledby'}) readonly accessibleRemoveLabelledBy: string\n\t/**\n\t * Emitted when the file is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<PointerEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsItemClass.root)} role=\"listitem\">\n\t\t\t\t<div class={AttachmentsItemClass.file}>\n\t\t\t\t\t<p class={AttachmentsItemClass.name}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t<slot name=\"info\"/>\n\t\t\t\t\t</p>\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleRemoveLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleRemoveLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.govRemove.emit}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon slot=\"icon-start\" name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('message') && (\n\t\t\t\t\t<div class={AttachmentsItemClass.messages}>\n\t\t\t\t\t\t<slot name=\"message\"/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleRemoveLabel, this.accessibleRemoveLabelledBy, AttachmentsItemClass.root, this.host)\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop, Watch } from '@stencil/core'\nimport {FormMessageClass, FormMessageSizesTypes, FormMessageColors, FormMessageColorType} from './constants'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { createID } from '../../../utils/string.utils'\n\n@Component({\n\ttag: 'gov-form-message',\n})\nexport class GovFormMessage {\n\th: GovHost\n\tprivate readonly messageId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.messageId = createID('GovFormMessage')\n\t}\n\n\t@Element() host: HTMLGovFormMessageElement\n\t/**\n\t * Style variation of the message.\n\t */\n\t@Prop({ attribute: 'color' }) readonly color?: FormMessageColorType = 'neutral'\n\t/**\n\t * Message's size.\n\t */\n\t@Prop() readonly size?: FormMessageSizesTypes = 'm'\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(FormMessageColors, newValue, FormMessageClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormMessageClass.root)} color={this.color} size={this.size}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\t\t\t\t<span id={this.messageId} class={FormMessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns unique identifier of message\n\t */\n\t@Method()\n\tasync identifier(): Promise<string> {\n\t\treturn this.messageId\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { v as validateAccessibleLabel } from './wcag-253a4421.js';
3
3
  import { c as canValidateWcagOnRender } from './gov.log-6b64cda6.js';
4
4
  import { g as govHost } from './template-7ecee4d1.js';
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { v as validateAccessibleLabel } from './wcag-253a4421.js';
3
3
  import { c as canValidateWcagOnRender } from './gov.log-6b64cda6.js';
4
4
  import { g as govHost } from './template-7ecee4d1.js';
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { v as validateProp } from './props-9d3c7ac1.js';
3
3
  import { B as ButtonClass, a as ButtonColors, c as ButtonType, N as NativeType } from './constants-51f51588.js';
4
4
  import { g as govHost, t as toBoolAttrIfDefined } from './template-7ecee4d1.js';
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { g as govHost, b as booleanString } from './template-7ecee4d1.js';
3
3
  import { c as createID } from './string.utils-1da8f8fb.js';
4
4
  import { v as validateAccessibleLabel } from './wcag-253a4421.js';
@@ -6,17 +6,20 @@ import { c as canValidateWcagOnRender } from './gov.log-6b64cda6.js';
6
6
  import { d as delay } from './utils-e10e994d.js';
7
7
  import './helpers.types-43ddbdb8.js';
8
8
 
9
+ var CardDirection;
10
+ (function (CardDirection) {
11
+ CardDirection["HORIZONTAL"] = "horizontal";
12
+ CardDirection["VERTICAL"] = "vertical";
13
+ })(CardDirection || (CardDirection = {}));
9
14
  const CardClass = {
10
15
  root: 'gov-card',
11
16
  header: 'gov-card__header',
12
- title: 'gov-card__title',
17
+ arrow: 'gov-card__arrow',
13
18
  inner: 'gov-card__inner',
14
19
  img: 'gov-card__img',
15
- main: 'gov-card__main',
16
20
  icon: 'gov-card__icon',
17
- btns: 'gov-card__btns',
21
+ content: 'gov-card__content',
18
22
  footer: 'gov-card__footer',
19
- arrow: 'gov-card__arrow',
20
23
  };
21
24
 
22
25
  const GovCard = class {
@@ -24,7 +27,7 @@ const GovCard = class {
24
27
  registerInstance(this, hostRef);
25
28
  this.govToggle = createEvent(this, "gov-toggle", 7);
26
29
  this.hydrated = false;
27
- this.promotion = false;
30
+ this.direction = "vertical";
28
31
  this.collapsible = false;
29
32
  this.open = true;
30
33
  this.accessibleTriggerLabel = undefined;
@@ -43,7 +46,7 @@ const GovCard = class {
43
46
  this.hydrated = true;
44
47
  }
45
48
  render() {
46
- return (h(Host, { key: 'c7dd00e1eee01b7005b98b39ddfccf784dc2808e', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), promotion: this.promotion, hydrated: this.hydrated }, this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h("slot", { name: "headline" }), h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (h("div", { class: CardClass.header }, h("slot", { name: "headline" }))) : null, h("div", { key: '369364ba24e3d93c1ac78a584dd1fd48c44b892b', class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (h("p", { key: '813afe326da050fc90039355853617f267505fab', class: CardClass.img }, h("slot", { key: '5817f673e65eeb32c5740c7524518d726a98364c', name: "img" }))), h("div", { key: 'd47df9920b2ce96f2c535bb0bfd3723c2a7b7a9e', class: CardClass.main }, this.h.hasSlot('icon') && this.promotion && (h("div", { key: 'c2649f05b9e7c25b7d77a02f692d45f0e30caa60', class: CardClass.icon }, h("slot", { key: '9c5c54d2bf6c4a83bd6490b2ad7ef7a1ca9d53d5', name: "icon" }))), h("slot", { key: '49608def955a9fa5f5c1ed957ca63bc698b9aeab' }), this.h.hasSlot('btn') && this.promotion && (h("div", { key: '2bfc4a6c551fe33c4da625f800a796eb619746d3', class: CardClass.btns }, h("slot", { key: '050552b970e6d16586f57ed3dab46e6fcff9d95b', name: "btn" })))), this.h.hasSlot('footer') && (h("div", { key: '364cdbd90941b2e93cecc9742ff08479f82d0c14', class: CardClass.footer }, h("slot", { key: '0352680a92293ddfe93c055b1d7e5555967f870b', name: "footer" }))))));
49
+ return (h(Host, { key: '16ef4ffbb0a84bb231008f4f52a4ffe1f2f809d8', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), direction: this.direction, hydrated: this.hydrated }, this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h("slot", { name: "headline" }), h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (h("div", { class: CardClass.header }, h("slot", { name: "headline" }))) : null, h("div", { key: '749f6e4b624f4cdda53d2e3433b451d56c742667', class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (h("div", { key: 'f4b953ddf9b4f59bc111b512bb3de3510b28af7f', class: CardClass.img }, h("slot", { key: '2867a29e49e67aff041ac0705527c5f76f4a019e', name: "img" }))), this.h.hasSlot('icon') && (h("div", { key: '8c8e55d3faff7cfbd6abe698cd8801f7fc41dbad', class: CardClass.icon }, h("slot", { key: '4d9eaeb0b3af65e4bf5de75090f9346942069e86', name: "icon" }))), h("div", { key: '77a9a065fb2803b5f39f1b5716d9810c04b6971b', class: CardClass.content }, h("slot", { key: 'acec7d3d4b6ac5533e5df218fe38e26147c440d8' })), this.h.hasSlot('footer') && (h("div", { key: '1e63a0811f487e18cbbef8b045651c0e5b745f37', class: CardClass.footer }, h("slot", { key: '4bffc12bffb3e29527aad38b6edbe8c00527a843', name: "footer" }))))));
47
50
  }
48
51
  onClickHandler(e) {
49
52
  e.stopPropagation();
@@ -1 +1 @@
1
- {"file":"gov-card.entry.js","mappings":";;;;;;;;AAAO,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,kBAAkB;IAC1B,KAAK,EAAE,iBAAiB;IACxB,KAAK,EAAE,iBAAiB;IACxB,GAAG,EAAE,eAAe;IACpB,IAAI,EAAE,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AI,EAAC,QAAQ,GAAE,CAChB,CACN,CACI,CACA,EACP;KACD;IAEO,cAAc,CAAC,CAAC;QACvB,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,IAAI,CAAC,WAAW,EAAE;YACrB,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;YACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAC,CAAC,CAAA;SAC1D;KACD;;;;IAMD,MAAM,qBAAqB;QAC1B,IAAI,IAAI,CAAC,WAAW,EAAE;YACrB,uBAAuB,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;SACjH;KACD;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.tsx"],"sourcesContent":["export const CardClass = {\n\troot: 'gov-card',\n\theader: 'gov-card__header',\n\ttitle: 'gov-card__title',\n\tinner: 'gov-card__inner',\n\timg: 'gov-card__img',\n\tmain: 'gov-card__main',\n\ticon: 'gov-card__icon',\n\tbtns: 'gov-card__btns',\n\tfooter: 'gov-card__footer',\n\tarrow: 'gov-card__arrow',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {CardClass} from './constants'\nimport {booleanString, govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {createID} from '../../utils/string.utils'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {GovCardChangeEvent} from './interfaces'\n\n@Component({\n\ttag: 'gov-card',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Style variation of the card.\n\t */\n\t@Prop() readonly promotion: boolean = false\n\t/**\n\t * Defines weather the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the card is open or closed\n\t */\n\t@Prop({reflect: true, mutable: true}) open = true\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) accessibleTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) accessibleTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({eventName: 'gov-toggle'}) govToggle: EventEmitter<GovCardChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} open={this.open}\n\t\t\t\t collapsible={booleanString(this.collapsible)} promotion={this.promotion} hydrated={this.hydrated}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.accessibleTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : this.h.hasSlot(\"headline\") ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={CardClass.inner}\n\t\t\t\t\tid={this.contentId}\n\t\t\t\t\taria-hidden={this.collapsible ? booleanString(!this.open) : undefined}\n\t\t\t\t\thidden={this.collapsible ? !this.open : undefined}\n\t\t\t\t\taria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t>\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<p class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\"/>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.main}>\n\t\t\t\t\t\t{this.h.hasSlot('icon') && this.promotion && (\n\t\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<slot/>\n\n\t\t\t\t\t\t{this.h.hasSlot('btn') && this.promotion && (\n\t\t\t\t\t\t\t<div class={CardClass.btns}>\n\t\t\t\t\t\t\t\t<slot name=\"btn\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t</div>\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) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.open = !this.open\n\t\t\tthis.govToggle.emit({open: this.open, element: this.host})\n\t\t}\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host)\n\t\t}\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-card.entry.js","mappings":";;;;;;;;AAEA,IAAY,aAGX;AAHD,WAAY,aAAa;IACxB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;AACtB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAGM,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,kBAAkB;IAC1B,KAAK,EAAE,iBAAiB;IACxB,KAAK,EAAE,iBAAiB;IACxB,GAAG,EAAE,eAAe;IACpB,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,mBAAmB;IAC5B,MAAM,EAAE,kBAAkB;CAC1B;;MCJY,OAAO;IAMnB;;;QAFQ,aAAQ,GAAG,KAAK,CAAA;yBAawB,UAAU;2BAIlB,KAAK;oBAIA,IAAI;;;QAlBhD,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAA;QAC7C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;KAC3C;IA6BD,MAAM,kBAAkB;QACvB,IAAI,uBAAuB,EAAE,EAAE;YAC9B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;YAChB,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;SAClC;KACD;IAED,iBAAiB;QAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;KACpB;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,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AAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,4DAAK,KAAK,EAAE,SAAS,CAAC,IAAI,IACzB,6DAAM,IAAI,EAAC,MAAM,GAAE,CACd,CACN,EAED,4DAAK,KAAK,EAAE,SAAS,CAAC,OAAO,IAC5B,8DAAO,CACF,EAEL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KACxB,4DAAK,KAAK,EAAE,SAAS,CAAC,MAAM,IAC3B,6DAAM,IAAI,EAAC,QAAQ,GAAE,CAChB,CACN,CACI,CACA,EACP;KACD;IAEO,cAAc,CAAC,CAAC;QACvB,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,IAAI,CAAC,WAAW,EAAE;YACrB,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;YACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAC,CAAC,CAAA;SAC1D;KACD;;;;IAMD,MAAM,qBAAqB;QAC1B,IAAI,IAAI,CAAC,WAAW,EAAE;YACrB,uBAAuB,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;SACjH;KACD;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.tsx"],"sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\n\nexport enum CardDirection {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\nexport type CardDirectionType = `${ValueOf<typeof CardDirection>}`\n\nexport const CardClass = {\n\troot: 'gov-card',\n\theader: 'gov-card__header',\n\tarrow: 'gov-card__arrow',\n\tinner: 'gov-card__inner',\n\timg: 'gov-card__img',\n\ticon: 'gov-card__icon',\n\tcontent: 'gov-card__content',\n\tfooter: 'gov-card__footer',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {CardClass, CardDirectionType} from './constants'\nimport {booleanString, govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {createID} from '../../utils/string.utils'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {GovCardChangeEvent} from './interfaces'\n\n@Component({\n\ttag: 'gov-card',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Card direction\n\t */\n\t@Prop() readonly direction: CardDirectionType = \"vertical\"\n\t/**\n\t * Defines weather the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the card is open or closed\n\t */\n\t@Prop({reflect: true, mutable: true}) open = true\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) accessibleTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) accessibleTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({eventName: 'gov-toggle'}) govToggle: EventEmitter<GovCardChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} open={this.open}\n\t\t\t\t collapsible={booleanString(this.collapsible)} direction={this.direction} hydrated={this.hydrated}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.accessibleTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : this.h.hasSlot(\"headline\") ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={CardClass.inner}\n\t\t\t\t\tid={this.contentId}\n\t\t\t\t\taria-hidden={this.collapsible ? booleanString(!this.open) : undefined}\n\t\t\t\t\thidden={this.collapsible ? !this.open : undefined}\n\t\t\t\t\taria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t>\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<div class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={CardClass.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\n\t\t\t\t\t<div class={CardClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t</div>\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) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.open = !this.open\n\t\t\tthis.govToggle.emit({open: this.open, element: this.host})\n\t\t}\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host)\n\t\t}\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { v as validateProp } from './props-9d3c7ac1.js';
3
3
  import { g as govHost } from './template-7ecee4d1.js';
4
4
  import { p as pick } from './utils-e10e994d.js';
@@ -82,11 +82,11 @@ const GovChip = class {
82
82
  const nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined;
83
83
  const iconStart = prepareIconFormat(this.iconStart);
84
84
  const iconEnd = prepareIconFormat(this.iconEnd);
85
- return (h(Host, { key: 'cb016dddaaadd7de70e72707d7ad44e87a597a34', class: this.h.classes([
85
+ return (h(Host, { key: '35148b293a6ae608eb1c4e0db06bbfff8b9fdca7', class: this.h.classes([
86
86
  ChipClass.root,
87
87
  this.h.hasSlot("right") ? ChipClass.hasRight : undefined,
88
88
  this.h.hasSlot("left") ? ChipClass.hasLeft : undefined,
89
- ]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, h(Tag, Object.assign({ key: 'd34d8a67eeb4b6d3f1b79118224a50f394e31003', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), tabindex: (this.h.hasSlot("left") || this.h.hasSlot("right") || this.disabled) && !this.focusable ? "-1" : "0", id: this.identifier || this.chipId, type: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), h("slot", { key: '1927da9845f36a47d30d7aef2e5292b0fd14a9e9', name: "left" }), h("slot", { key: 'c8334498b94e4d3caa6f7db5e7ec638bbce52cbc', name: "icon-start" }, iconStart && h("gov-icon", { key: '310fb65c135105ee26cc6d58f810768843700b0a', type: iconStart.type, name: iconStart.name })), h("slot", { key: '4a089b176703b5c600d2a519f90be655397d5f27' }), h("slot", { key: '0dfede9f85605499bdbd09f43b642a1cee68fcf2', name: "icon-end" }, iconEnd && h("gov-icon", { key: 'beb20c5691f2ed1a6cb556d440d72a86de280a73', type: iconEnd.type, name: iconEnd.name })), h("slot", { key: '92e05b922fe474e259e18301eba6c13586794a1e', name: "right" }))));
89
+ ]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, h(Tag, Object.assign({ key: '01ba70f91c8be428f91ca4744d093e408dd5acbe', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), tabindex: (this.h.hasSlot("left") || this.h.hasSlot("right") || this.disabled) && !this.focusable ? "-1" : "0", id: this.identifier || this.chipId, type: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), h("slot", { key: '28acde76889a8b529dae69b1e55f5f3db51b8e25', name: "left" }), h("slot", { key: '1c8fc171656757933a0bb0568a335ee11c09ce6f', name: "icon-start" }, iconStart && h("gov-icon", { key: 'b2e91ec6724f3ad50433c10597c44f50826dfcfe', type: iconStart.type, name: iconStart.name })), h("slot", { key: '0a37763084f9a0b7269efe6cc6ebd71161890861' }), h("slot", { key: '5b37c8b8350ed2ead0a85d81ed0ba22295b3679e', name: "icon-end" }, iconEnd && h("gov-icon", { key: '22dfae0ca565fddaa10e6179dc7d0ef38839764f', type: iconEnd.type, name: iconEnd.name })), h("slot", { key: 'fe177d273f38e81cc9ffc686c62e05bd466c1fe8', name: "right" }))));
90
90
  }
91
91
  onClickHandler(e) {
92
92
  e.stopPropagation();
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { g as govHost } from './template-7ecee4d1.js';
3
3
 
4
4
  const ContainerClass = {
@@ -11,7 +11,7 @@ const GovContainer = class {
11
11
  this.h = govHost(this.host);
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '72c32b930fe5a024a469c2d8170a7597e990e659', class: this.h.classes(ContainerClass.root) }, h("slot", { key: 'a4ad5247d403cd17ba46529cc204c936b82dd97d' })));
14
+ return (h(Host, { key: '0844c86e0eacd5f89bcfcad2b60e56da0097b506', class: this.h.classes(ContainerClass.root) }, h("slot", { key: '5cd801a016968be5968a3598d3efa3b222953120' })));
15
15
  }
16
16
  get host() { return getElement(this); }
17
17
  };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { C as Colors } from './colors-4cf64720.js';
3
3
  import { g as govHost } from './template-7ecee4d1.js';
4
4
  import { v as validateProp } from './props-9d3c7ac1.js';
@@ -22,7 +22,7 @@ const GovControlGroup = class {
22
22
  validateProp(Colors, newValue, ControlGroupClass.root);
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: 'e2a56a633370dd4172c9d0895b51b7138d0a19a0', class: this.h.classes(ControlGroupClass.root), color: this.color }, h("slot", { key: '76d02cd85f4207a4e2f5a198e36d6ff53ee77e28' })));
25
+ return (h(Host, { key: 'bee513bb064b3a276eaede7f93ed12b97edb7adb', class: this.h.classes(ControlGroupClass.root), color: this.color }, h("slot", { key: 'adba55ccd38d432ae11fa4967996d8bcaf552427' })));
26
26
  }
27
27
  get host() { return getElement(this); }
28
28
  static get watchers() { return {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { g as govHost } from './template-7ecee4d1.js';
3
3
 
4
4
  const CookieConsentClass = {
@@ -15,7 +15,7 @@ const GovCookiebar = class {
15
15
  this.h = govHost(this.host);
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '1955ae868b0e5255aea8ebc8e26146c4d973a75b', class: this.h.classes(CookieConsentClass.root) }, h("div", { key: 'cec7976304269a18f2fd71ffb0e398c60e17c4d5', class: CookieConsentClass.content }, h("slot", { key: 'f311694262ff0297c86ae435874f2108621bb7dc', name: "headline" }), h("slot", { key: '7ea9f4b7e848bf3afa2039f5ec4ab14ce2573243' })), (this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (h("div", { key: '9230c752f5fa798d7784406dc6d114c159c8aa6e', class: CookieConsentClass.actions }, this.h.hasSlot('actions-primary') && (h("div", { key: '324e807bcc4e867f6561723edbe4028bb484297f', class: CookieConsentClass.actionsPrimary }, h("slot", { key: 'bf945e0d01c7497cd8575b01fd9be172968179cd', name: "actions-primary" }))), this.h.hasSlot('actions-secondary') && (h("div", { key: '8d836b11f057ec6840aa7ba62900dde267e9bdad', class: CookieConsentClass.actionsSecondary }, h("slot", { key: '8b9144381a5e6b54017bd6fb6ffc9c56437b62d0', name: "actions-secondary" })))))));
18
+ return (h(Host, { key: '311f0da16d86ab548e90e8f7be69d23d88a71ae4', class: this.h.classes(CookieConsentClass.root) }, h("div", { key: 'f371e0bfa5ad8b2195aec2fd0c02f86fb81d58ff', class: CookieConsentClass.content }, h("slot", { key: '96433ca7228d4bf61bfc6dc041bc519c83f56109', name: "headline" }), h("slot", { key: '4fa8e397eba029f55329d0ca6d24044ae7c9a513' })), (this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (h("div", { key: 'a1d5e5d03d8d89bceb65f45f75d7dc3d446d1b62', class: CookieConsentClass.actions }, this.h.hasSlot('actions-primary') && (h("div", { key: '4ee2b3b82b91bdfb3d87a7bc34e9b0d4e2fc4f33', class: CookieConsentClass.actionsPrimary }, h("slot", { key: '7c0cbf9c5f334cffa4a4eb3f2af9a05bfc8af208', name: "actions-primary" }))), this.h.hasSlot('actions-secondary') && (h("div", { key: 'e40a9f403e994584f53df9e0d84e27aa08c849e2', class: CookieConsentClass.actionsSecondary }, h("slot", { key: '5a2bc741413334a0f08bf2d17b94d1c51b5c3f69', name: "actions-secondary" })))))));
19
19
  }
20
20
  get host() { return getElement(this); }
21
21
  };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { g as govHost, a as boolToFocusValue, c as toBoolAttr } from './template-7ecee4d1.js';
3
3
  import { c as canValidateWcagOnRender } from './gov.log-6b64cda6.js';
4
4
  import { a as validateWcagRef } from './wcag-253a4421.js';
@@ -67,7 +67,7 @@ const GovDialog = class {
67
67
  document.body.classList.remove(DialogClass.bodyFix);
68
68
  }
69
69
  render() {
70
- return (h(Host, { key: 'fe34cd83c969ab539a47c4f851231085f34b21f6', class: this.h.classes(DialogClass.root), open: this.open, hydrated: this.hydrated }, h("dialog", { key: 'd013f87f499635ed0d0f1cc016cc1e84410154b4', class: DialogClass.dialog, hidden: !this.open, tabindex: boolToFocusValue(this.open), open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.accessibleLabelledBy || this.labelId, "aria-describedby": this.accessibleDescribedBy || this.contentId, role: this.role }, h("div", { key: '6018f61d5a335583dc05a0f8cdef6c4562977558', class: DialogClass.inner }, h("div", { key: '9ab56eb94d92f67291b783ec8310fec2c3da9d33', class: DialogClass.header }, h("slot", { key: 'b2248113ca181acbd9e0c960c4e7b13c3e114ae3', name: "icon" }), this.h.hasSlot('title') && (h("span", { key: 'fce7d93f476553e3cc53c8dc987d65cb64538552', class: DialogClass.title, id: this.labelId }, h("slot", { key: 'b151367fda2f5f87d6de3cabbf46cacc9d427f0f', name: "title" }))), h("gov-button", { key: 'e3622dc8601452c2d52a5d17a611d27cd0d17e97', ref: el => (this.closeCtaRef = el), disabled: this.blockClose, class: DialogClass.close, color: "primary", "aria-label": this.accessibleCloseLabel, "aria-labelledby": this.accessibleCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { key: 'aa75b37c5aa82566d2e9f6b49351dba0550052de', slot: "icon-start", name: "x-lg", type: "components" }))), h("div", { key: '608ac5fe732219559583cfb512d14b9221619a6b', class: DialogClass.content, id: this.contentId }, h("slot", { key: 'cd93b5061448c1d4c4d2dece9a349a8fa11f6c28' })), this.h.hasSlot('footer') && (h("div", { key: '759319b3fb204e9f8f869d3839fc3f91f42b494f', class: DialogClass.footer }, h("slot", { key: '5937ba641d297c61645f6216d63656cd883e5280', name: "footer" }))))), this.open ? (h("gov-backdrop", { disabled: this.blockBackdropClose, "aria-label": this.accessibleCloseLabel, "aria-labelled-by": this.accessibleCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
70
+ return (h(Host, { key: 'c3b65521da7837b81972262ecf614d3c12f14bb3', class: this.h.classes(DialogClass.root), open: this.open, hydrated: this.hydrated }, h("dialog", { key: '98b6d6db6fc9bd35760c03586548cc8a2470752a', class: DialogClass.dialog, hidden: !this.open, tabindex: boolToFocusValue(this.open), open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.accessibleLabelledBy || this.labelId, "aria-describedby": this.accessibleDescribedBy || this.contentId, role: this.role }, h("div", { key: 'a8517c656ef3d3e3cf17bc9914e268a20b0e0e4b', class: DialogClass.inner }, h("div", { key: '3ba16e3bafe7936f0c0a999d45d5efdd64291ec3', class: DialogClass.header }, h("slot", { key: '736a0a11d601e9f522e69369ffa0f276c9673803', name: "icon" }), this.h.hasSlot('title') && (h("span", { key: '5505a53174c82c1faf73ed500c5672f2dc8ea83b', class: DialogClass.title, id: this.labelId }, h("slot", { key: '391dd6236c23c14e62c8c97a94c5733409939c32', name: "title" }))), h("gov-button", { key: '867505a691e69da09808350fc7eefb51974005ba', ref: el => (this.closeCtaRef = el), disabled: this.blockClose, class: DialogClass.close, color: "primary", "aria-label": this.accessibleCloseLabel, "aria-labelledby": this.accessibleCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { key: '6fe742ccf5aca7f27cac627373a338d46bbccfda', slot: "icon-start", name: "x-lg", type: "components" }))), h("div", { key: '9d9d6a45d79215ba5415512405ce7577d6a1dc26', class: DialogClass.content, id: this.contentId }, h("slot", { key: 'f9b32ee565586b3741c166a0aa14ca1d1c55f032' })), this.h.hasSlot('footer') && (h("div", { key: '8628b46f0196f38f7d2f273f0860a7c6cee62655', class: DialogClass.footer }, h("slot", { key: '0742967012eab82c36f9dfe0f3b43213be8bcd47', name: "footer" }))))), this.open ? (h("gov-backdrop", { disabled: this.blockBackdropClose, "aria-label": this.accessibleCloseLabel, "aria-labelled-by": this.accessibleCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
71
71
  }
72
72
  onCloseHandler(e) {
73
73
  e.stopPropagation();
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { g as govHost, c as toBoolAttr } from './template-7ecee4d1.js';
3
3
  import { c as createID } from './string.utils-1da8f8fb.js';
4
4
  import { B as ButtonClass } from './constants-51f51588.js';
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { p as pick } from './utils-e10e994d.js';
3
3
  import { S as Sizes } from './sizes-5b9e579f.js';
4
4
  import { g as govHost } from './template-7ecee4d1.js';
@@ -25,7 +25,7 @@ const GovEmpty = class {
25
25
  this.validateSize(this.size);
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: '25d3813acc796b96c6e51aec4a55fc2efa725aa6', class: this.h.classes(EmptyClass.root), size: this.size }, this.h.hasSlot('icon') && (h("slot", { key: '7fccad0fe25b57219f06cfbcf18a2f2bff19c905', name: "icon" })), h("div", { key: 'a4cffd5e7175ba9273a5ea74ba622e2a577ba0fe', class: EmptyClass.content }, h("slot", { key: '53fd435d43baa4841ecb5e3d5817efcb57433eab', name: "headline" }), h("slot", { key: '314e7a0fd7a381dbc4a85da4df2082ce4946b7b5' }))));
28
+ return (h(Host, { key: '3346bc91e4af67ca885ec89364d3caed0553f87c', class: this.h.classes(EmptyClass.root), size: this.size }, this.h.hasSlot('icon') && (h("slot", { key: '6ae5bf19e792bc94fedaa9fe3a56cafa103356f4', name: "icon" })), h("div", { key: '3cb5595ef6de22c590844902d5fe59a2066b0bf7', class: EmptyClass.content }, h("slot", { key: 'dedf42aac4d7a4304a0eeeae7e5a7e1be8e4aac5', name: "headline" }), h("slot", { key: '0d061d5b70d90c3bf6446ff78618e6506446bde2' }))));
29
29
  }
30
30
  get host() { return getElement(this); }
31
31
  static get watchers() { return {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { g as govHost } from './template-7ecee4d1.js';
3
3
 
4
4
  const ErrorCodeClass = {
@@ -12,7 +12,7 @@ const GovErrorCode = class {
12
12
  this.h = govHost(this.host);
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '90ebeeb8f2e7ed539e7069a876aa1fe3027873fc', class: this.h.classes(ErrorCodeClass.root), align: "center" }, this.h.hasSlot('icon') && (h("slot", { key: 'a31a15dd5276be32288c691d5bb7b8cf9d6615ab', name: "icon" })), h("div", { key: '0dfc7905d1e515a7ecc1eba1dd3912cd32774ca3', class: ErrorCodeClass.content }, h("slot", { key: '238e3ab94cf05880567e2ac2c54c9f9c572ff014', name: "headline" }), h("slot", { key: '56519d70f3ab7b162e9e9a78bf7bfabef89a9b2d' }))));
15
+ return (h(Host, { key: 'c47e051194598ee060955a36959d11340b66dadc', class: this.h.classes(ErrorCodeClass.root), align: "center" }, this.h.hasSlot('icon') && (h("slot", { key: '510cdd27231b580403e76154d263af37877bd7b3', name: "icon" })), h("div", { key: '1b65726c29093652b1f2b6470669cedb5b951c7b', class: ErrorCodeClass.content }, h("slot", { key: 'd5fb45bfdfd4cc096e9f4ed213f0b50baaf225e6', name: "headline" }), h("slot", { key: '1950c6c8b034319c3d499b3470b4a2e0e1c7855a' }))));
16
16
  }
17
17
  get host() { return getElement(this); }
18
18
  };
@@ -1,9 +1,8 @@
1
- import { r as registerInstance, h, a as Host, g as getElement, c as createEvent, d as getAssetPath } from './index-c263e031.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement, c as getAssetPath, B as Build, d as createEvent } from './index-087b155c.js';
2
+ import { S as Sizes } from './sizes-5b9e579f.js';
2
3
  import { g as govHost } from './template-7ecee4d1.js';
3
- import { F as FormLabelClass } from './constants-43f10674.js';
4
4
  import { p as pick } from './utils-e10e994d.js';
5
5
  import { C as Colors } from './colors-4cf64720.js';
6
- import { S as Sizes } from './sizes-5b9e579f.js';
7
6
  import { i as iconsPath, a as isWindow, b as iconsLazyLoad } from './gov.log-6b64cda6.js';
8
7
  import { v as validateProp } from './props-9d3c7ac1.js';
9
8
 
@@ -20,29 +19,15 @@ const GovFlex = class {
20
19
  this.wrap = undefined;
21
20
  this.alignContent = undefined;
22
21
  this.alignSelf = undefined;
22
+ this.gap = undefined;
23
23
  this.h = govHost(this.host);
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: '77d5eb1db594698f6fde4bf497209912de71173f', class: this.h.classes(FlexClass.root) }, h("slot", { key: '6c01ff6ec88c53dbf9e83d492f660c96e9e7fc2a' })));
26
+ return (h(Host, { key: '08c1591134f0b5c95a18ac9e1d3723c12d9bc47b', class: this.h.classes(FlexClass.root) }, h("slot", { key: 'b66fb8ffa35b0fb98eed3440a55a92a1bd97eb76' })));
27
27
  }
28
28
  get host() { return getElement(this); }
29
29
  };
30
30
 
31
- const GovFormLabel = class {
32
- constructor(hostRef) {
33
- registerInstance(this, hostRef);
34
- this.govClick = createEvent(this, "gov-click", 7);
35
- this.identifier = undefined;
36
- this.size = 'm';
37
- this.required = false;
38
- this.legend = false;
39
- }
40
- render() {
41
- const Tag = this.legend ? 'legend' : 'label';
42
- return (h(Host, { key: '3e02eaa899126807c31fac8d3b6f352a07a73a9d', class: FormLabelClass.root, size: this.size }, h(Tag, { key: 'a1213cf879e26565c4c84d31ab6a46dac2a9ee4e', class: FormLabelClass.label, htmlFor: this.identifier, onClick: () => this.govClick.emit() }, h("slot", { key: '46a6a39821d6f3f786b843c037b0b423ba2445ae' }), this.required ? h("span", { class: "gov-color--error-500" }, "\u00A0*") : null)));
43
- }
44
- };
45
-
46
31
  pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL']);
47
32
  const IconColors = pick(Colors, [
48
33
  'DEFAULT',
@@ -67,7 +52,7 @@ const IconClass = {
67
52
  holder: 'gov-icon__holder',
68
53
  };
69
54
 
70
- const version = "4.1.1";
55
+ const version = "4.1.3-BETA-1";
71
56
 
72
57
  const dsVersion = () => {
73
58
  return version;
@@ -84,10 +69,14 @@ const iconUrl = (path, name, type) => {
84
69
  };
85
70
  async function fetchIcon({ name, type }) {
86
71
  const cacheKey = type + "-" + name;
72
+ console.log('cacheKey', cacheKey);
73
+ console.log('iconCache[cacheKey]', iconCache, iconCache[cacheKey]);
87
74
  if (iconCache[cacheKey]) {
88
75
  return iconCache[cacheKey];
89
76
  }
77
+ console.log('requestCache[cacheKey]', requestCache, requestCache[cacheKey]);
90
78
  if (!requestCache[cacheKey]) {
79
+ console.log('iconUrl(iconsPath(), name, type)', iconUrl(iconsPath(), name, type));
91
80
  requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {
92
81
  if (resp.status === 200) {
93
82
  return resp.text();
@@ -166,12 +155,17 @@ const GovIcon = class {
166
155
  }
167
156
  async loadIconPathData() {
168
157
  const { name, visible } = this;
158
+ console.log('name, visible', name, visible);
159
+ console.log('Build.isBrowser', Build.isBrowser);
169
160
  if (!name || !visible) {
161
+ console.log('return');
170
162
  return;
171
163
  }
172
164
  await this.loadIcon();
173
165
  }
174
166
  connectedCallback() {
167
+ console.log('connectedCallback icon', this.name);
168
+ console.log('iconsLazyLoad()', iconsLazyLoad());
175
169
  if (iconsLazyLoad()) {
176
170
  this.visible = true;
177
171
  this.loadIconPathData().finally();
@@ -184,12 +178,14 @@ const GovIcon = class {
184
178
  }
185
179
  }
186
180
  disconnectedCallback() {
181
+ console.log('disconnectedCallback');
187
182
  if (this.intersectionObserver) {
188
183
  this.intersectionObserver.disconnect();
189
184
  this.intersectionObserver = null;
190
185
  }
191
186
  }
192
187
  async componentWillLoad() {
188
+ console.log('componentWillLoad');
193
189
  this.validateSize(this.size);
194
190
  this.validateColor(this.color);
195
191
  await this.loadIconPathData();
@@ -215,6 +211,7 @@ const GovIcon = class {
215
211
  async loadIcon() {
216
212
  try {
217
213
  const { name, type } = this;
214
+ console.log('loadIcon -> name, type', name, type);
218
215
  const data = await fetchIcon({ name, type });
219
216
  const isValid = isValidSVG(data);
220
217
  this.host.innerHTML = isValid ? data : null;
@@ -245,8 +242,6 @@ const ThemeSwitchClass = {
245
242
  indicator: 'gov-theme-switch__indicator',
246
243
  iconLight: 'gov-theme-switch__icon-light',
247
244
  iconDark: 'gov-theme-switch__icon-dark',
248
- labelLight: 'gov-theme-switch__label-light',
249
- labelDark: 'gov-theme-switch__label-dark',
250
245
  };
251
246
  const ATTRIBUTE_THEME_NAME = 'data-theme';
252
247
 
@@ -270,10 +265,11 @@ const GovThemeSwitch = class {
270
265
  });
271
266
  };
272
267
  this.size = "m";
273
- this.ariaLabelLight = undefined;
274
- this.ariaLabelDark = undefined;
275
- this.labelLight = undefined;
276
- this.labelDark = undefined;
268
+ this.displayLabel = false;
269
+ this.ariaLabelLight = "Přenout na tmavý mód";
270
+ this.ariaLabelDark = "Přepnout na světlý mód";
271
+ this.labelLight = "Světlý mód";
272
+ this.labelDark = "Tmavý mód";
277
273
  this.theme = ThemeList.auto;
278
274
  this.h = govHost(this.host);
279
275
  }
@@ -318,7 +314,7 @@ const GovThemeSwitch = class {
318
314
  if (this.theme === ThemeList.auto) {
319
315
  isDark = this.isSystemPrefersColorDark;
320
316
  }
321
- return (h(Host, { key: 'a83f030f54527f8e8a2d23c3769f3f1b41c4af4f', class: this.h.classes(ThemeSwitchClass.root), theme: isDark ? ThemeList.dark : ThemeList.light, size: this.size }, h("button", { key: '54f8337d911cf64f24c8db089b9092b806c3a926', onClick: () => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark), "aria-label": isDark ? this.ariaLabelLight : this.ariaLabelDark }, h("span", { key: '483310b54df8e8de42c087f04b7e0758067c22b8' }, h("span", { key: '88b822cac4b5dc3897fa19252b5b1e1a559b8d6d', class: ThemeSwitchClass.indicator }, ThemeList.light && h("gov-icon", { key: 'f6f162cda66facba8940ba55f7f3283e7796d157', name: "sun", class: ThemeSwitchClass.iconLight, type: "components" }), ThemeList.dark && h("gov-icon", { key: 'b36b009c1787e37a3fd5108618c6bb5993f97a23', name: "moon", class: ThemeSwitchClass.iconDark, type: "components" })), h("gov-form-label", { key: 'dff2b2b454a87faa1d7e471d2a271c333c983aad', class: ThemeSwitchClass.labelLight, size: this.size }, this.labelLight), h("gov-form-label", { key: '1b682ccaff92cc4cfe8462ff2a59507fd61b114b', class: ThemeSwitchClass.labelDark, size: this.size }, this.labelDark)))));
317
+ return (h(Host, { key: '784ed0513ea1436bb754dc82691646422789783b', class: this.h.classes(ThemeSwitchClass.root), theme: isDark ? ThemeList.dark : ThemeList.light, size: this.size }, h("button", { key: 'd4abc155a8ae8f07d0a49c378e295c3ab57318d4', onClick: () => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark), "aria-current": this.theme, "aria-label": isDark ? this.ariaLabelDark : this.ariaLabelLight }, h("span", { key: '7f713875d5618acc919702cdc60e9db58dfb9db5' }, h("span", { key: '0b57c0153047ef292b6bdc43b49e5a1a9cdc17e1', class: ThemeSwitchClass.indicator }, ThemeList.light && h("gov-icon", { key: 'ae2c751435a2bc9c1e9f8dfa4ca52e13943ada9b', name: "sun", class: ThemeSwitchClass.iconLight, type: "components" }), ThemeList.dark && h("gov-icon", { key: '7a4ee602a37742ab94dcee47a7c4970d5dce5bb6', name: "moon", class: ThemeSwitchClass.iconDark, type: "components" })), this.displayLabel && (isDark ? this.labelDark : this.labelLight)))));
322
318
  }
323
319
  get host() { return getElement(this); }
324
320
  static get watchers() { return {
@@ -327,6 +323,6 @@ const GovThemeSwitch = class {
327
323
  }; }
328
324
  };
329
325
 
330
- export { GovFlex as gov_flex, GovFormLabel as gov_form_label, GovIcon as gov_icon, GovThemeSwitch as gov_theme_switch };
326
+ export { GovFlex as gov_flex, GovIcon as gov_icon, GovThemeSwitch as gov_theme_switch };
331
327
 
332
- //# sourceMappingURL=gov-flex_4.entry.js.map
328
+ //# sourceMappingURL=gov-flex_3.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"gov-flex.gov-icon.gov-theme-switch.entry.js","mappings":";;;;;;;;AAMO,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;CAChB;;MCAY,OAAO;IAGnB;;yBASyE,KAAK;;;;;;;QAR7E,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAsDD,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI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+DACC,6DAAM,KAAK,EAAE,gBAAgB,CAAC,SAAS,IACrC,SAAS,CAAC,KAAK,IAAI,iEAAU,IAAI,EAAC,KAAK,EAAC,KAAK,EAAE,gBAAgB,CAAC,SAAS,EAAE,IAAI,EAAC,YAAY,GAAY,EACxG,SAAS,CAAC,IAAI,IAAI,iEAAU,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAE,IAAI,EAAC,YAAY,GAAY,CAClG,EACN,IAAI,CAAC,YAAY,KAAK,MAAM,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,CAC3D,CACC,CACH,EACP;KACD;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx","../../../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/helpers/Dom/document.ts","../../../packages/core/src/components/gov-icon/gov-icon.tsx","../../../packages/core/src/components/gov-theme-switch/constants.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.types.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.tsx"],"sourcesContent":["import {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const FlexSizes = Sizes\nexport type FlexSizesType = `${ValueOf<typeof FlexSizes>}`\n\nexport const FlexClass = {\n\troot: 'gov-flex',\n}\n\n","import {Component, Element, h, Host, Prop} from '@stencil/core'\nimport {FlexClass, FlexSizesType} from './constants'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-flex',\n})\nexport class GovFlex {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Controls the flex direction of the container.\n\t */\n\t@Prop() direction: 'row' | 'row-reverse' | 'column' | 'column-reverse' = 'row';\n\n\t/**\n\t * Defines how the browser distributes space between and around content items along the main axis.\n\t */\n\t@Prop({\n\t\tattribute: 'justify-content',\n\t\treflect: true\n\t}) justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';\n\n\t/**\n\t * Aligns flex items along the cross axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-items',\n\t\treflect: true\n\t}) alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\n\n\t/**\n\t * Controls whether the flex container is a single-line or multi-line flex container.\n\t */\n\t@Prop({reflect: true}) wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n\n\t/**\n\t * Aligns the flex container's lines within when there is extra space in the cross-axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-content',\n\t\treflect: true\n\t}) alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';\n\n\t/**\n\t * Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.\n\t */\n\t@Prop({\n\t\tattribute: 'align-self',\n\t\treflect: true\n\t}) alignSelf?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({\n\t\tattribute: 'gap',\n\t\treflect: true\n\t}) gap?: FlexSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FlexClass.root)}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n","import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils';\nimport { Colors } from '../../core/constants/colors';\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\n\nexport const IconColors = pick(Colors, [\n\t'DEFAULT',\n\t'PRIMARY',\n\t'SECONDARY',\n\t'NEUTRAL',\n\t'ERROR',\n\t'SUCCESS',\n\t'WARNING',\n\t'DISABLED',\n\t'WHITE',\n\t'BLACK',\n])\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\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\tconsole.log('cacheKey', cacheKey);\n\tconsole.log('iconCache[cacheKey]', iconCache, iconCache[cacheKey]);\n\tif (iconCache[cacheKey]) {\n\t\treturn iconCache[cacheKey]\n\t}\n\tconsole.log('requestCache[cacheKey]', requestCache, requestCache[cacheKey]);\n\t\n\tif (!requestCache[cacheKey]) {\n\t\tconsole.log('iconUrl(iconsPath(), name, type)', iconUrl(iconsPath(), name, type));\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","import {Nullable} from \"../../utils/helpers.types\";\nimport {isWindow} from \"./win\";\n\nexport const setCookie = (name: string, value: string, days?: number) => {\n\tif (!isWindow) {\n\t\treturn\n\t}\n\tlet expires = \"\";\n\tif (days) {\n\t\tconst date = new Date();\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n\t\texpires = \"; expires=\" + date.toUTCString();\n\t}\n\tdocument.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;\n}\n\nexport const getCookie = (name: string): Nullable<string> => {\n\tif (!isWindow) {\n\t\treturn null\n\t}\n\tconst nameEQ = name + \"=\";\n\tconst cookies = document.cookie.split(';');\n\tfor (let i = 0; i < cookies.length; i++) {\n\t\tlet cookie = cookies[i].trim();\n\t\tif (cookie.startsWith(nameEQ)) {\n\t\t\treturn decodeURIComponent(cookie.substring(nameEQ.length));\n\t\t}\n\t}\n\treturn null;\n}\n\nexport const isValidSVG = (svgContent: string): boolean => {\n\ttry {\n\t\tconst parser = new DOMParser();\n\t\tconst doc = parser.parseFromString(svgContent, \"image/svg+xml\");\n\t\tconst parseError = doc.querySelector(\"parsererror\");\n\t\tif (parseError) {\n\t\t\treturn false;\n\t\t}\n\t\tconst svgElement = doc.documentElement;\n\t\tif (svgElement.tagName.toLowerCase() !== \"svg\") {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t} catch (error) {\n\t\treturn false;\n\t}\n}\n","import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} 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\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tconsole.log('name, visible', name, visible);\n\t\tconsole.log('Build.isBrowser', Build.isBrowser);\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\tconsole.log('return');\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tconsole.log('connectedCallback icon', this.name);\n\t\tconsole.log('iconsLazyLoad()', iconsLazyLoad());\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tconsole.log('disconnectedCallback');\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tconsole.log('componentWillLoad');\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{rootMargin: \"50px\"},\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconsole.log('loadIcon -> name, type', name, type);\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n","import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\n\nexport const ThemeSwitchClass = {\n\troot: 'gov-theme-switch',\n\tindicator: 'gov-theme-switch__indicator',\n\ticonLight: 'gov-theme-switch__icon-light',\n\ticonDark: 'gov-theme-switch__icon-dark',\n}\n\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\n","import {GovBaseEvent} from \"../../types/event.types\";\n\nexport enum ThemeList {\n\tauto = 'auto',\n\tlight = 'light',\n\tdark = 'dark'\n}\n\nexport interface ThemeSwitchEvent extends GovBaseEvent {\n\tref: HTMLGovThemeSwitchElement;\n\tstate: ThemeList\n}\n\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\";\nimport {govHost} from \"../../helpers/Dom/template\";\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\nimport {isWindow} from \"../../helpers/Dom/win\";\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\n\n@Component({\n\ttag: \"gov-theme-switch\",\n})\nexport class GovThemeSwitch {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovThemeSwitchElement\n\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\n\t/**\n\t * Display switch label\n\t */\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přenout na tmavý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\n\t/**\n\t * Called when the theme is changed by the user\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\n\t}\n\n\t@Watch(\"theme\")\n\twatchTheme(newValue: ThemeList): void {\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\n\t\tthis.htmlElement.classList.add(newValue);\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\n\t}\n\n\t@State() theme: ThemeList = ThemeList.auto\n\n\tprivate get storageValue() {\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\n\t}\n\n\tprivate get htmlElement(): HTMLElement {\n\t\treturn document.documentElement\n\t}\n\n\tprivate get isSystemPrefersColorDark(): boolean {\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.initDefaultState()\n\t\tthis.validateSize(this.size)\n\t}\n\n\tprivate initDefaultState() {\n\t\tconst options = Object.keys(ThemeList);\n\t\tlet currentState = this.storageValue;\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\n\n\t\tif (currentState && options.includes(currentState)) {\n\t\t\tthis.theme = currentState as ThemeList;\n\t\t} else if (htmlState && options.includes(htmlState)) {\n\t\t\tthis.theme = htmlState as ThemeList;\n\t\t} else {\n\t\t\tthis.theme = ThemeList.auto;\n\t\t}\n\t}\n\n\tprivate setThemeState = (state: ThemeList) => {\n\t\tthis.theme = state;\n\n\t\tthis.govChange.emit({\n\t\t\tcomponent: ThemeSwitchClass.root,\n\t\t\tstate: this.theme,\n\t\t\tref: this.host\n\t\t})\n\t}\n\n\trender() {\n\t\tlet isDark = this.theme === ThemeList.dark;\n\t\tif (this.theme === ThemeList.auto) {\n\t\t\tisDark = this.isSystemPrefersColorDark;\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\n\t\t\t\t size={this.size}>\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\n\t\t\t\t\t\taria-current={this.theme}\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{this.displayLabel && (isDark ? this.labelDark : this.labelLight)}\n\t\t\t\t\t</span>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { c as toBoolAttr, b as booleanString } from './template-7ecee4d1.js';
3
3
  import { v as validateProp } from './props-9d3c7ac1.js';
4
4
  import { c as createID } from './string.utils-1da8f8fb.js';
@@ -119,7 +119,7 @@ const GovFormAutocomplete = class {
119
119
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
120
120
  }
121
121
  render() {
122
- return (h(Host, { key: '1914bf635c1c0bf169d6f45fe4dab9a2738d390a', class: FormAutocompleteClass.root, size: this.size }, h("gov-form-input", Object.assign({ key: '75926414421d120acb5deea317d6d9afe11ddd11', placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, required: this.required, invalid: this.invalid, success: this.success, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), this.throttleTime), "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) }, this.inheritedAttributes, { "aria-autocomplete": 'list', "aria-owns": [this.listBoxId, this.inheritedAttributes['aria-owns']].join(' '), "aria-expanded": booleanString(this.list.length && this.focused ? true : false), ref: el => (this.inputRef = el) }), h("slot", { key: '1870810c9a7d6a258da3ec6d26e19cceef9da425', name: "validation-icon" }), h("slot", { key: 'f6753deca157766fe66424d148a4416b1500e79e', name: "icon-end" })), h("ul", { key: '4a63a2c01d13870b6e49392118f291f2e43e3a34', class: FormAutocompleteClass.list, role: 'listbox', "aria-hidden": toBoolAttr(!this.focused), hidden: !this.focused, id: this.listBoxId, ref: el => (this.listRef = el) }, this.focused && this.list.length === 0 && this.processing === false && this.isValueAccepted && this.messageEmpty ? (h("li", { class: FormAutocompleteClass.empty }, this.messageEmpty)) : null, this.focused && this.processing === true && this.isValueAccepted ? (h("li", { class: FormAutocompleteClass.loading }, h("gov-skeleton", { size: "m" }))) : null, this.focused ? this.list.map((item, index) => {
122
+ return (h(Host, { key: 'a8bf269f28c969a01b9d6fd884b5e6dd253905f6', class: FormAutocompleteClass.root, size: this.size }, h("gov-form-input", Object.assign({ key: '13797f47506657569fe824ecb8d82f54cdd7f62e', placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, required: this.required, invalid: this.invalid, success: this.success, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), this.throttleTime), "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) }, this.inheritedAttributes, { "aria-autocomplete": 'list', "aria-owns": [this.listBoxId, this.inheritedAttributes['aria-owns']].join(' '), "aria-expanded": booleanString(this.list.length && this.focused ? true : false), ref: el => (this.inputRef = el) }), h("slot", { key: 'aa60e7afc9f03418525f40f54989c56ac817a08a', name: "validation-icon" }), h("slot", { key: 'fd1aa38d3f92793689e7238c4cc7b11fdb6d7c83', name: "icon-end" })), h("ul", { key: 'f721a4bebd03c2837604e42d4ece440f2668e4db', class: FormAutocompleteClass.list, role: 'listbox', "aria-hidden": toBoolAttr(!this.focused), hidden: !this.focused, id: this.listBoxId, ref: el => (this.listRef = el) }, this.focused && this.list.length === 0 && this.processing === false && this.isValueAccepted && this.messageEmpty ? (h("li", { class: FormAutocompleteClass.empty }, this.messageEmpty)) : null, this.focused && this.processing === true && this.isValueAccepted ? (h("li", { class: FormAutocompleteClass.loading }, h("gov-skeleton", { size: "m" }))) : null, this.focused ? this.list.map((item, index) => {
123
123
  const isSelected = this.arrowCounter === index;
124
124
  return (h("li", { class: FormAutocompleteClass.item, innerHTML: this.templateResolver(item, isSelected), role: 'option', "aria-posinset": index, tabindex: isSelected ? 0 : -1, "aria-setsize": this.list.length, onTouchStart: (e) => this.onSelectHandler(e, index), onMouseDown: (e) => this.onSelectHandler(e, index), "aria-selected": toBoolAttr(isSelected) }, h("slot", { name: "list-item-left" }), h("slot", { name: "list-item-right" })));
125
125
  }) : null)));
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-087b155c.js';
2
2
  import { F as FormCheckboxGroupClass, a as FormGroupClass, b as FormGroupSizes, c as FormGroupOrientation } from './constants-4da2b3c0.js';
3
3
  import { g as govHost } from './template-7ecee4d1.js';
4
4
  import { v as validateProp } from './props-9d3c7ac1.js';
@@ -9,7 +9,7 @@ import './sizes-5b9e579f.js';
9
9
  import './gov.log-6b64cda6.js';
10
10
  import './helpers.types-43ddbdb8.js';
11
11
 
12
- const govFormGroupCss = ":root{--roboto:Roboto, sans-serif}gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0 !important;margin-bottom:0 !important;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:var(--gap, var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:var(--gap, var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:var(--gap, var(--spacing-s-nudge))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:var(--gap, var(--spacing-m))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:var(--gap, var(--spacing-m-nudge))}";
12
+ const govFormGroupCss = "gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:var(--gap, var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:var(--gap, var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:var(--gap, var(--spacing-s-nudge))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:var(--gap, var(--spacing-m))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:var(--gap, var(--spacing-m-nudge))}";
13
13
  const GovFormCheckboxGroupStyle0 = govFormGroupCss;
14
14
 
15
15
  const GovFormCheckboxGroup = class {
@@ -66,7 +66,7 @@ const GovFormCheckboxGroup = class {
66
66
  });
67
67
  }
68
68
  render() {
69
- return (h(Host, { key: '9f0b69dea278df308a3ad5dacf989d4a89687b2a', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, h("slot", { key: '14abf79a5ef9bc899b2732f6ae159781afa51fe2' })));
69
+ return (h(Host, { key: '7f71876a9b72b688bb354a1477153bd8d1b5ad05', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, h("slot", { key: '2b3ce2b04ab3a2e55128a6d8c00a1d41217061f6' })));
70
70
  }
71
71
  get host() { return getElement(this); }
72
72
  static get watchers() { return {