@gov-design-system-ce/components 0.0.49 → 0.0.50

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 (799) hide show
  1. package/dist/cjs/core.cjs.js +6 -2
  2. package/dist/cjs/core.cjs.js.map +1 -1
  3. package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gov-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/gov-app.cjs.entry.js +1 -1
  7. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-attachments_3.cjs.entry.js +1 -1
  9. package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
  10. package/dist/cjs/gov-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
  12. package/dist/cjs/gov-button.cjs.entry.js +1 -1
  13. package/dist/cjs/gov-card.cjs.entry.js +1 -1
  14. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  15. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  16. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  17. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  18. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  19. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  20. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-form-checkbox.cjs.entry.js +1 -1
  22. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
  24. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  25. package/dist/cjs/gov-form-input.cjs.entry.js +1 -1
  26. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-form-multi-select.cjs.entry.js +1 -1
  28. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  29. package/dist/cjs/gov-form-radio.cjs.entry.js +1 -1
  30. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  31. package/dist/cjs/gov-form-select.cjs.entry.js +1 -1
  32. package/dist/cjs/gov-form-switch.cjs.entry.js +1 -1
  33. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  34. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  35. package/dist/cjs/gov-icon.cjs.entry.js +1 -1
  36. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  37. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  38. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  39. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  40. package/dist/cjs/gov-modal.cjs.entry.js +1 -1
  41. package/dist/cjs/gov-nav-item.cjs.entry.js +1 -1
  42. package/dist/cjs/gov-nav.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-pagination.cjs.entry.js +1 -1
  44. package/dist/cjs/gov-prompt.cjs.entry.js +1 -1
  45. package/dist/cjs/gov-side-nav-item.cjs.entry.js +1 -1
  46. package/dist/cjs/gov-side-nav.cjs.entry.js +1 -1
  47. package/dist/cjs/gov-skeleton.cjs.entry.js +1 -1
  48. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  49. package/dist/cjs/gov-statsbar-item.cjs.entry.js +1 -1
  50. package/dist/cjs/gov-statsbar.cjs.entry.js +1 -1
  51. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  52. package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
  53. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  54. package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
  55. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  57. package/dist/cjs/gov-tiles.cjs.entry.js +1 -1
  58. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  59. package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
  60. package/dist/cjs/gov-tooltip.cjs.entry.js +1 -1
  61. package/dist/cjs/gov-wizzard-item.cjs.entry.js +1 -1
  62. package/dist/cjs/gov-wizzard.cjs.entry.js +1 -1
  63. package/dist/cjs/{index-7ba43a19.js → index-83edd4fe.js} +305 -52
  64. package/dist/cjs/index-83edd4fe.js.map +1 -0
  65. package/dist/cjs/loader.cjs.js +3 -11
  66. package/dist/cjs/loader.cjs.js.map +1 -1
  67. package/dist/collection/collection-manifest.json +62 -62
  68. package/dist/collection/components/gov-accordion/constants.js +3 -3
  69. package/dist/collection/components/gov-accordion/gov-accordion-item.js +14 -7
  70. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  71. package/dist/collection/components/gov-accordion/gov-accordion.js +16 -12
  72. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  73. package/dist/collection/components/gov-alert/constants.js +2 -2
  74. package/dist/collection/components/gov-alert/gov-alert.js +6 -3
  75. package/dist/collection/components/gov-alert/gov-alert.js.map +1 -1
  76. package/dist/collection/components/gov-app/gov-app.js +37 -37
  77. package/dist/collection/components/gov-app/gov-app.js.map +1 -1
  78. package/dist/collection/components/gov-attachments/gov-attachments-item.js +10 -8
  79. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  80. package/dist/collection/components/gov-attachments/gov-attachments.js +8 -7
  81. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
  82. package/dist/collection/components/gov-backdrop/gov-backdrop.js +10 -8
  83. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  84. package/dist/collection/components/gov-badge/gov-badge.js +18 -9
  85. package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
  86. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +10 -8
  87. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  88. package/dist/collection/components/gov-button/default/constants.js +3 -3
  89. package/dist/collection/components/gov-button/default/gov-button.js +26 -13
  90. package/dist/collection/components/gov-button/default/gov-button.js.map +1 -1
  91. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +8 -4
  92. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
  93. package/dist/collection/components/gov-card/gov-card.js +16 -12
  94. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  95. package/dist/collection/components/gov-container/gov-container.js +7 -5
  96. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  97. package/dist/collection/components/gov-control-group/constants.js +2 -2
  98. package/dist/collection/components/gov-control-group/gov-control-group.js +2 -1
  99. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  100. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +3 -3
  101. package/dist/collection/components/gov-empty/gov-empty.js +3 -3
  102. package/dist/collection/components/gov-error-code/gov-error-code.js +3 -3
  103. package/dist/collection/components/gov-form/autocomplete/constants.js +3 -3
  104. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +30 -15
  105. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  106. package/dist/collection/components/gov-form/checkbox/constants.js +2 -2
  107. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +14 -7
  108. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  109. package/dist/collection/components/gov-form/control/constants.js +2 -2
  110. package/dist/collection/components/gov-form/control/gov-form-control.js +4 -2
  111. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  112. package/dist/collection/components/gov-form/file/gov-form-file.js +20 -10
  113. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  114. package/dist/collection/components/gov-form/group/gov-form-group.js +2 -1
  115. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
  116. package/dist/collection/components/gov-form/input/constants.js +3 -3
  117. package/dist/collection/components/gov-form/input/gov-form-input.js +40 -24
  118. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  119. package/dist/collection/components/gov-form/label/gov-form-label.js +6 -4
  120. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  121. package/dist/collection/components/gov-form/message/constants.js +2 -2
  122. package/dist/collection/components/gov-form/message/gov-form-message.js +9 -7
  123. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
  124. package/dist/collection/components/gov-form/multiselect/constants.js +3 -3
  125. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +22 -11
  126. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  127. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +2 -2
  128. package/dist/collection/components/gov-form/radio/constants.js +2 -2
  129. package/dist/collection/components/gov-form/radio/gov-form-radio.js +14 -7
  130. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  131. package/dist/collection/components/gov-form/search/constants.js +2 -2
  132. package/dist/collection/components/gov-form/search/gov-form-search.js +4 -3
  133. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  134. package/dist/collection/components/gov-form/select/constants.js +3 -3
  135. package/dist/collection/components/gov-form/select/gov-form-select.js +22 -11
  136. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  137. package/dist/collection/components/gov-form/switch/constants.js +2 -2
  138. package/dist/collection/components/gov-form/switch/gov-form-switch.js +14 -7
  139. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  140. package/dist/collection/components/gov-grid/gov-grid-item.css +0 -44
  141. package/dist/collection/components/gov-grid/gov-grid-item.js +3 -3
  142. package/dist/collection/components/gov-grid/gov-grid.js +3 -3
  143. package/dist/collection/components/gov-icon/gov-icon.js +6 -5
  144. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  145. package/dist/collection/components/gov-layout/gov-layout-column.js +3 -3
  146. package/dist/collection/components/gov-layout/gov-layout.js +7 -5
  147. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
  148. package/dist/collection/components/gov-loading/loading/gov-loading.js +3 -3
  149. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +8 -4
  150. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  151. package/dist/collection/components/gov-message/constants.js +2 -2
  152. package/dist/collection/components/gov-message/gov-message.js +7 -6
  153. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  154. package/dist/collection/components/gov-modal/gov-modal.js +8 -4
  155. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
  156. package/dist/collection/components/gov-nav/gov-nav-item.js +3 -3
  157. package/dist/collection/components/gov-nav/gov-nav.js +7 -6
  158. package/dist/collection/components/gov-nav/gov-nav.js.map +1 -1
  159. package/dist/collection/components/gov-pagination/constants.js +3 -3
  160. package/dist/collection/components/gov-pagination/gov-pagination.js +10 -5
  161. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  162. package/dist/collection/components/gov-promp/gov-prompt.js +8 -4
  163. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
  164. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +15 -10
  165. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -1
  166. package/dist/collection/components/gov-side-nav/gov-side-nav.js +10 -8
  167. package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -1
  168. package/dist/collection/components/gov-spacer/constants.js +2 -2
  169. package/dist/collection/components/gov-spacer/gov-spacer.js +8 -6
  170. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  171. package/dist/collection/components/gov-statsbar/constants.js +2 -2
  172. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +6 -5
  173. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -1
  174. package/dist/collection/components/gov-statsbar/gov-statsbar.js +8 -6
  175. package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -1
  176. package/dist/collection/components/gov-stepper/constants.js +3 -3
  177. package/dist/collection/components/gov-stepper/gov-stepper-item.js +14 -10
  178. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
  179. package/dist/collection/components/gov-stepper/gov-stepper.js +8 -6
  180. package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -1
  181. package/dist/collection/components/gov-tabs/constants.js +2 -2
  182. package/dist/collection/components/gov-tabs/gov-tabs-item.js +10 -7
  183. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
  184. package/dist/collection/components/gov-tabs/gov-tabs.js +29 -19
  185. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  186. package/dist/collection/components/gov-tile/container/gov-tiles.js +4 -4
  187. package/dist/collection/components/gov-tile/gov-tile.js +6 -3
  188. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  189. package/dist/collection/components/gov-toast/constants.js +2 -2
  190. package/dist/collection/components/gov-toast/gov-toast.js +11 -8
  191. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  192. package/dist/collection/components/gov-tooltip/constants.js +3 -3
  193. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +3 -3
  194. package/dist/collection/components/gov-tooltip/gov-tooltip.js +15 -10
  195. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  196. package/dist/collection/components/gov-wizzard/constants.js +3 -3
  197. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +14 -7
  198. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -1
  199. package/dist/collection/components/gov-wizzard/gov-wizzard.js +6 -3
  200. package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +1 -1
  201. package/dist/collection/helpers/Dom/form.js +9 -9
  202. package/dist/collection/helpers/Dom/win.js +1 -1
  203. package/dist/collection/helpers/StorybookDocsTemplate.js +3 -3
  204. package/dist/collection/helpers/Validate/props.js +1 -1
  205. package/dist/collection/helpers/Validate/wcag.js +3 -3
  206. package/dist/collection/utils/ds.utils.js +1 -1
  207. package/dist/collection/utils/icon.utils.js +3 -3
  208. package/dist/components/gov-accordion-item.js +1 -156
  209. package/dist/components/gov-accordion-item.js.map +1 -1
  210. package/dist/components/gov-accordion.js +1 -94
  211. package/dist/components/gov-accordion.js.map +1 -1
  212. package/dist/components/gov-alert.js +1 -122
  213. package/dist/components/gov-alert.js.map +1 -1
  214. package/dist/components/gov-app.js +1 -8924
  215. package/dist/components/gov-app.js.map +1 -1
  216. package/dist/components/gov-attachments-item.js +1 -7
  217. package/dist/components/gov-attachments-item.js.map +1 -1
  218. package/dist/components/gov-attachments.js +1 -7
  219. package/dist/components/gov-attachments.js.map +1 -1
  220. package/dist/components/gov-backdrop.js +1 -7
  221. package/dist/components/gov-backdrop.js.map +1 -1
  222. package/dist/components/gov-badge.js +1 -7
  223. package/dist/components/gov-badge.js.map +1 -1
  224. package/dist/components/gov-breadcrumbs.js +1 -67
  225. package/dist/components/gov-breadcrumbs.js.map +1 -1
  226. package/dist/components/gov-button.js +1 -7
  227. package/dist/components/gov-button.js.map +1 -1
  228. package/dist/components/gov-card.js +1 -143
  229. package/dist/components/gov-card.js.map +1 -1
  230. package/dist/components/gov-container.js +1 -51
  231. package/dist/components/gov-container.js.map +1 -1
  232. package/dist/components/gov-control-group.js +1 -57
  233. package/dist/components/gov-control-group.js.map +1 -1
  234. package/dist/components/gov-cookiebar.js +1 -46
  235. package/dist/components/gov-cookiebar.js.map +1 -1
  236. package/dist/components/gov-dropdown.js +1 -150
  237. package/dist/components/gov-dropdown.js.map +1 -1
  238. package/dist/components/gov-empty.js +1 -44
  239. package/dist/components/gov-empty.js.map +1 -1
  240. package/dist/components/gov-error-code.js +1 -44
  241. package/dist/components/gov-error-code.js.map +1 -1
  242. package/dist/components/gov-form-autocomplete.js +1 -7
  243. package/dist/components/gov-form-autocomplete.js.map +1 -1
  244. package/dist/components/gov-form-checkbox.js +1 -159
  245. package/dist/components/gov-form-checkbox.js.map +1 -1
  246. package/dist/components/gov-form-control.js +1 -139
  247. package/dist/components/gov-form-control.js.map +1 -1
  248. package/dist/components/gov-form-file.js +1 -288
  249. package/dist/components/gov-form-file.js.map +1 -1
  250. package/dist/components/gov-form-group.js +1 -57
  251. package/dist/components/gov-form-group.js.map +1 -1
  252. package/dist/components/gov-form-input.js +1 -7
  253. package/dist/components/gov-form-input.js.map +1 -1
  254. package/dist/components/gov-form-label.js +1 -46
  255. package/dist/components/gov-form-label.js.map +1 -1
  256. package/dist/components/gov-form-message.js +1 -7
  257. package/dist/components/gov-form-message.js.map +1 -1
  258. package/dist/components/gov-form-multi-select.js +1 -270
  259. package/dist/components/gov-form-multi-select.js.map +1 -1
  260. package/dist/components/gov-form-password-power.js +1 -43
  261. package/dist/components/gov-form-password-power.js.map +1 -1
  262. package/dist/components/gov-form-radio.js +1 -153
  263. package/dist/components/gov-form-radio.js.map +1 -1
  264. package/dist/components/gov-form-search.js +1 -47
  265. package/dist/components/gov-form-search.js.map +1 -1
  266. package/dist/components/gov-form-select.js +1 -7
  267. package/dist/components/gov-form-select.js.map +1 -1
  268. package/dist/components/gov-form-switch.js +1 -153
  269. package/dist/components/gov-form-switch.js.map +1 -1
  270. package/dist/components/gov-grid-item.js +1 -49
  271. package/dist/components/gov-grid-item.js.map +1 -1
  272. package/dist/components/gov-grid.js +1 -44
  273. package/dist/components/gov-grid.js.map +1 -1
  274. package/dist/components/gov-icon.js +1 -7
  275. package/dist/components/gov-icon.js.map +1 -1
  276. package/dist/components/gov-layout-column.js +1 -38
  277. package/dist/components/gov-layout-column.js.map +1 -1
  278. package/dist/components/gov-layout.js +1 -51
  279. package/dist/components/gov-layout.js.map +1 -1
  280. package/dist/components/gov-loading.js +1 -58
  281. package/dist/components/gov-loading.js.map +1 -1
  282. package/dist/components/gov-message.js +1 -57
  283. package/dist/components/gov-message.js.map +1 -1
  284. package/dist/components/gov-modal.js +1 -146
  285. package/dist/components/gov-modal.js.map +1 -1
  286. package/dist/components/gov-nav-item.js +1 -53
  287. package/dist/components/gov-nav-item.js.map +1 -1
  288. package/dist/components/gov-nav.js +1 -57
  289. package/dist/components/gov-nav.js.map +1 -1
  290. package/dist/components/gov-pagination.js +1 -270
  291. package/dist/components/gov-pagination.js.map +1 -1
  292. package/dist/components/gov-prompt.js +1 -146
  293. package/dist/components/gov-prompt.js.map +1 -1
  294. package/dist/components/gov-side-nav-item.js +1 -124
  295. package/dist/components/gov-side-nav-item.js.map +1 -1
  296. package/dist/components/gov-side-nav.js +1 -73
  297. package/dist/components/gov-side-nav.js.map +1 -1
  298. package/dist/components/gov-skeleton.js +1 -137
  299. package/dist/components/gov-skeleton.js.map +1 -1
  300. package/dist/components/gov-spacer.js +1 -72
  301. package/dist/components/gov-spacer.js.map +1 -1
  302. package/dist/components/gov-statsbar-item.js +1 -51
  303. package/dist/components/gov-statsbar-item.js.map +1 -1
  304. package/dist/components/gov-statsbar.js +1 -65
  305. package/dist/components/gov-statsbar.js.map +1 -1
  306. package/dist/components/gov-stepper-item.js +1 -96
  307. package/dist/components/gov-stepper-item.js.map +1 -1
  308. package/dist/components/gov-stepper.js +1 -61
  309. package/dist/components/gov-stepper.js.map +1 -1
  310. package/dist/components/gov-tabs-item.js +1 -73
  311. package/dist/components/gov-tabs-item.js.map +1 -1
  312. package/dist/components/gov-tabs.js +1 -232
  313. package/dist/components/gov-tabs.js.map +1 -1
  314. package/dist/components/gov-tile.js +1 -80
  315. package/dist/components/gov-tile.js.map +1 -1
  316. package/dist/components/gov-tiles.js +1 -49
  317. package/dist/components/gov-tiles.js.map +1 -1
  318. package/dist/components/gov-toast.js +1 -136
  319. package/dist/components/gov-toast.js.map +1 -1
  320. package/dist/components/gov-tooltip-content.js +1 -54
  321. package/dist/components/gov-tooltip-content.js.map +1 -1
  322. package/dist/components/gov-tooltip.js +1 -176
  323. package/dist/components/gov-tooltip.js.map +1 -1
  324. package/dist/components/gov-wizzard-item.js +1 -144
  325. package/dist/components/gov-wizzard-item.js.map +1 -1
  326. package/dist/components/gov-wizzard.js +1 -83
  327. package/dist/components/gov-wizzard.js.map +1 -1
  328. package/dist/components/index.d.ts +14 -62
  329. package/dist/components/index.js +1 -62
  330. package/dist/components/index.js.map +1 -1
  331. package/dist/components/p-03990da5.js +2 -0
  332. package/dist/components/p-03990da5.js.map +1 -0
  333. package/dist/components/p-0f5e2b0a.js +2 -0
  334. package/dist/components/p-0f5e2b0a.js.map +1 -0
  335. package/dist/components/p-1020a160.js +2 -0
  336. package/dist/components/p-1020a160.js.map +1 -0
  337. package/dist/components/p-16e8c053.js +2 -0
  338. package/dist/components/p-16e8c053.js.map +1 -0
  339. package/dist/components/p-17c1ffc1.js +2 -0
  340. package/dist/components/p-17c1ffc1.js.map +1 -0
  341. package/dist/components/p-1b4f2520.js +2 -0
  342. package/dist/components/p-1b4f2520.js.map +1 -0
  343. package/dist/components/p-1c1d0bbe.js +2 -0
  344. package/dist/components/p-1c1d0bbe.js.map +1 -0
  345. package/dist/components/p-20853eff.js +2 -0
  346. package/dist/components/{gov-form-select2.js.map → p-20853eff.js.map} +1 -1
  347. package/dist/components/p-24636c53.js +2 -0
  348. package/dist/components/p-24636c53.js.map +1 -0
  349. package/dist/components/p-2692b1ff.js +2 -0
  350. package/dist/components/p-2692b1ff.js.map +1 -0
  351. package/dist/components/p-26acf964.js +2 -0
  352. package/dist/components/p-26acf964.js.map +1 -0
  353. package/dist/components/p-34152b51.js +2 -0
  354. package/dist/components/p-34152b51.js.map +1 -0
  355. package/dist/components/p-3464136c.js +2 -0
  356. package/dist/components/p-3464136c.js.map +1 -0
  357. package/dist/components/p-36be8f6e.js +2 -0
  358. package/dist/components/p-36be8f6e.js.map +1 -0
  359. package/dist/components/p-386409dc.js +2 -0
  360. package/dist/components/p-386409dc.js.map +1 -0
  361. package/dist/components/p-3dbf7f49.js +2 -0
  362. package/dist/components/p-3dbf7f49.js.map +1 -0
  363. package/dist/components/p-3f37ddb6.js +2 -0
  364. package/dist/components/p-3f37ddb6.js.map +1 -0
  365. package/dist/components/p-404f469e.js +2 -0
  366. package/dist/components/p-404f469e.js.map +1 -0
  367. package/dist/components/p-47172f0a.js +2 -0
  368. package/dist/components/p-47172f0a.js.map +1 -0
  369. package/dist/components/p-55500e5a.js +2 -0
  370. package/dist/components/p-55500e5a.js.map +1 -0
  371. package/dist/components/p-561fa17b.js +2 -0
  372. package/dist/components/p-561fa17b.js.map +1 -0
  373. package/dist/components/p-5bf5a42e.js +2 -0
  374. package/dist/components/p-5bf5a42e.js.map +1 -0
  375. package/dist/components/p-5defdc5e.js +2 -0
  376. package/dist/components/p-5defdc5e.js.map +1 -0
  377. package/dist/components/p-6278531b.js +2 -0
  378. package/dist/components/p-6278531b.js.map +1 -0
  379. package/dist/components/p-64ced668.js +2 -0
  380. package/dist/components/p-64ced668.js.map +1 -0
  381. package/dist/components/p-80c0109d.js +2 -0
  382. package/dist/components/p-80c0109d.js.map +1 -0
  383. package/dist/components/p-80e30702.js +2 -0
  384. package/dist/components/{constants13.js.map → p-80e30702.js.map} +1 -1
  385. package/dist/components/p-9144dde1.js +2 -0
  386. package/dist/components/p-9144dde1.js.map +1 -0
  387. package/dist/components/p-9331532e.js +2 -0
  388. package/dist/components/p-9331532e.js.map +1 -0
  389. package/dist/components/p-a5d69694.js +2 -0
  390. package/dist/components/p-a5d69694.js.map +1 -0
  391. package/dist/components/p-a6d14a47.js +2 -0
  392. package/dist/components/p-a6d14a47.js.map +1 -0
  393. package/dist/components/p-b72a7bed.js +2 -0
  394. package/dist/components/p-b72a7bed.js.map +1 -0
  395. package/dist/components/p-be4aab0e.js +2 -0
  396. package/dist/components/p-be4aab0e.js.map +1 -0
  397. package/dist/components/p-ccc44ac1.js +2 -0
  398. package/dist/components/p-ccc44ac1.js.map +1 -0
  399. package/dist/components/p-efcdfed8.js +2 -0
  400. package/dist/components/p-efcdfed8.js.map +1 -0
  401. package/dist/components/p-ff7365ae.js +2 -0
  402. package/dist/components/p-ff7365ae.js.map +1 -0
  403. package/dist/components/p-ffb7495c.js +2 -0
  404. package/dist/components/p-ffb7495c.js.map +1 -0
  405. package/dist/core/core.esm.js +1 -1
  406. package/dist/core/core.esm.js.map +1 -1
  407. package/dist/core/index.esm.js.map +1 -1
  408. package/dist/core/{p-f2d22b62.entry.js → p-02c3a3fd.entry.js} +2 -2
  409. package/dist/core/p-02c3a3fd.entry.js.map +1 -0
  410. package/dist/core/p-03990da5.js.map +1 -1
  411. package/dist/core/{p-24ba5c7b.entry.js → p-041d30b1.entry.js} +2 -2
  412. package/dist/core/p-041d30b1.entry.js.map +1 -0
  413. package/dist/core/{p-818bb0f5.entry.js → p-0eadfb3e.entry.js} +2 -2
  414. package/dist/core/p-0eadfb3e.entry.js.map +1 -0
  415. package/dist/core/{p-88c10472.entry.js → p-0eb11cfc.entry.js} +2 -2
  416. package/dist/core/p-0eb11cfc.entry.js.map +1 -0
  417. package/dist/core/p-0f5e2b0a.js.map +1 -1
  418. package/dist/core/p-1020a160.js.map +1 -1
  419. package/dist/core/p-10cbc3fe.js +3 -0
  420. package/dist/core/p-10cbc3fe.js.map +1 -0
  421. package/dist/core/{p-c0c9b349.entry.js → p-11be550d.entry.js} +2 -2
  422. package/dist/core/p-11be550d.entry.js.map +1 -0
  423. package/dist/core/{p-024fa230.entry.js → p-1ae47d62.entry.js} +2 -2
  424. package/dist/core/p-1ae47d62.entry.js.map +1 -0
  425. package/dist/core/p-1c1d0bbe.js.map +1 -1
  426. package/dist/core/{p-2713b83e.entry.js → p-1c62f175.entry.js} +2 -2
  427. package/dist/core/p-1c62f175.entry.js.map +1 -0
  428. package/dist/core/{p-7d7dab2e.entry.js → p-1da9f871.entry.js} +2 -2
  429. package/dist/core/p-1da9f871.entry.js.map +1 -0
  430. package/dist/core/{p-21375e02.entry.js → p-1e3cad4b.entry.js} +2 -2
  431. package/dist/core/p-1e3cad4b.entry.js.map +1 -0
  432. package/dist/core/{p-34508063.entry.js → p-228da18e.entry.js} +2 -2
  433. package/dist/core/p-228da18e.entry.js.map +1 -0
  434. package/dist/core/p-24636c53.js.map +1 -1
  435. package/dist/core/p-26acf964.js.map +1 -1
  436. package/dist/core/{p-439340f9.entry.js → p-2790d89e.entry.js} +2 -2
  437. package/dist/core/p-2790d89e.entry.js.map +1 -0
  438. package/dist/core/{p-a008979f.entry.js → p-2fe9d3ea.entry.js} +2 -2
  439. package/dist/core/p-2fe9d3ea.entry.js.map +1 -0
  440. package/dist/core/{p-1f883c31.entry.js → p-33895061.entry.js} +2 -2
  441. package/dist/core/p-33895061.entry.js.map +1 -0
  442. package/dist/core/p-34152b51.js.map +1 -1
  443. package/dist/core/p-3464136c.js.map +1 -1
  444. package/dist/core/p-34ed07f6.js.map +1 -1
  445. package/dist/core/{p-dbd6c9b5.entry.js → p-3559e7c5.entry.js} +2 -2
  446. package/dist/core/p-3559e7c5.entry.js.map +1 -0
  447. package/dist/core/p-36be8f6e.js.map +1 -1
  448. package/dist/core/{p-fd62778e.entry.js → p-3858e2c8.entry.js} +2 -2
  449. package/dist/core/p-3858e2c8.entry.js.map +1 -0
  450. package/dist/core/p-3b9df792.entry.js +2 -0
  451. package/dist/core/p-3b9df792.entry.js.map +1 -0
  452. package/dist/core/{p-b1ca32cc.entry.js → p-3d720d54.entry.js} +2 -2
  453. package/dist/core/p-3d720d54.entry.js.map +1 -0
  454. package/dist/core/p-3dbf7f49.js.map +1 -1
  455. package/dist/core/{p-40df0e89.entry.js → p-3e5432d7.entry.js} +2 -2
  456. package/dist/core/p-3e5432d7.entry.js.map +1 -0
  457. package/dist/core/p-3f37ddb6.js.map +1 -1
  458. package/dist/core/p-404f469e.js.map +1 -1
  459. package/dist/core/{p-00e21d46.entry.js → p-42cd2cc4.entry.js} +2 -2
  460. package/dist/core/p-42cd2cc4.entry.js.map +1 -0
  461. package/dist/core/{p-3b6d6f6f.entry.js → p-48349167.entry.js} +2 -2
  462. package/dist/core/p-48349167.entry.js.map +1 -0
  463. package/dist/core/{p-d9747cca.entry.js → p-49926f53.entry.js} +2 -2
  464. package/dist/core/p-49926f53.entry.js.map +1 -0
  465. package/dist/core/{p-2b0af68c.entry.js → p-5150efee.entry.js} +2 -2
  466. package/dist/core/p-5150efee.entry.js.map +1 -0
  467. package/dist/core/{p-1c20657a.entry.js → p-5316e768.entry.js} +2 -2
  468. package/dist/core/p-5316e768.entry.js.map +1 -0
  469. package/dist/core/p-55500e5a.js.map +1 -1
  470. package/dist/core/p-561fa17b.js.map +1 -1
  471. package/dist/core/{p-c134863d.entry.js → p-5a855a15.entry.js} +2 -2
  472. package/dist/core/p-5a855a15.entry.js.map +1 -0
  473. package/dist/core/p-5defdc5e.js.map +1 -1
  474. package/dist/core/{p-424fdf22.entry.js → p-5e23a6ba.entry.js} +2 -2
  475. package/dist/core/p-5e23a6ba.entry.js.map +1 -0
  476. package/dist/core/p-6278531b.js.map +1 -1
  477. package/dist/core/p-64ced668.js.map +1 -1
  478. package/dist/core/{p-1e1bd302.entry.js → p-6dacb8d3.entry.js} +2 -2
  479. package/dist/core/p-6dacb8d3.entry.js.map +1 -0
  480. package/dist/core/{p-174d3df0.entry.js → p-6f43bd00.entry.js} +2 -2
  481. package/dist/core/p-6f43bd00.entry.js.map +1 -0
  482. package/dist/core/{p-034c5c8f.entry.js → p-722218fd.entry.js} +2 -2
  483. package/dist/core/p-722218fd.entry.js.map +1 -0
  484. package/dist/core/{p-9a1d5c77.entry.js → p-739dd451.entry.js} +2 -2
  485. package/dist/core/p-739dd451.entry.js.map +1 -0
  486. package/dist/core/{p-51582b94.entry.js → p-7ab82a55.entry.js} +2 -2
  487. package/dist/core/p-7ab82a55.entry.js.map +1 -0
  488. package/dist/core/p-80e30702.js.map +1 -1
  489. package/dist/core/{p-ddffa85e.entry.js → p-88a78167.entry.js} +2 -2
  490. package/dist/core/p-88a78167.entry.js.map +1 -0
  491. package/dist/core/{p-ec8e7f8f.entry.js → p-89921159.entry.js} +2 -2
  492. package/dist/core/p-89921159.entry.js.map +1 -0
  493. package/dist/core/p-9144dde1.js.map +1 -1
  494. package/dist/core/{p-1bfe6f33.entry.js → p-93042b25.entry.js} +2 -2
  495. package/dist/core/p-93042b25.entry.js.map +1 -0
  496. package/dist/core/{p-b2c6a185.entry.js → p-9633e7b5.entry.js} +2 -2
  497. package/dist/core/p-9633e7b5.entry.js.map +1 -0
  498. package/dist/core/{p-82af6719.entry.js → p-9751af2e.entry.js} +2 -2
  499. package/dist/core/p-9751af2e.entry.js.map +1 -0
  500. package/dist/core/{p-6e6a44f0.entry.js → p-9a3e3ace.entry.js} +2 -2
  501. package/dist/core/p-9a3e3ace.entry.js.map +1 -0
  502. package/dist/core/{p-5f23b01d.entry.js → p-9ad54c30.entry.js} +2 -2
  503. package/dist/core/p-9ad54c30.entry.js.map +1 -0
  504. package/dist/core/p-9dab01be.js.map +1 -1
  505. package/dist/core/{p-b9bfca0a.entry.js → p-9e208f40.entry.js} +2 -2
  506. package/dist/core/p-9e208f40.entry.js.map +1 -0
  507. package/dist/core/p-9f541022.entry.js +2 -0
  508. package/dist/core/p-9f541022.entry.js.map +1 -0
  509. package/dist/core/p-a5d69694.js.map +1 -1
  510. package/dist/core/{p-8ee11310.entry.js → p-a68547b1.entry.js} +2 -2
  511. package/dist/core/p-a68547b1.entry.js.map +1 -0
  512. package/dist/core/p-a6d14a47.js.map +1 -1
  513. package/dist/core/{p-d7ee8f40.entry.js → p-a857915f.entry.js} +2 -2
  514. package/dist/core/{p-d7ee8f40.entry.js.map → p-a857915f.entry.js.map} +1 -1
  515. package/dist/core/{p-cbfe47ee.entry.js → p-aa4e716e.entry.js} +2 -2
  516. package/dist/core/p-aa4e716e.entry.js.map +1 -0
  517. package/dist/core/p-ac94d242.entry.js +2 -0
  518. package/dist/core/p-ac94d242.entry.js.map +1 -0
  519. package/dist/core/{p-32c8b7a4.entry.js → p-ae04e58f.entry.js} +2 -2
  520. package/dist/core/p-ae04e58f.entry.js.map +1 -0
  521. package/dist/core/{p-dae9dc31.entry.js → p-af7a89bc.entry.js} +2 -2
  522. package/dist/core/p-af7a89bc.entry.js.map +1 -0
  523. package/dist/core/{p-0b9eed8b.entry.js → p-b5a560d2.entry.js} +2 -2
  524. package/dist/core/p-b5a560d2.entry.js.map +1 -0
  525. package/dist/core/{p-b547d31a.entry.js → p-bbcbe1cc.entry.js} +2 -2
  526. package/dist/core/p-bbcbe1cc.entry.js.map +1 -0
  527. package/dist/core/p-be4aab0e.js.map +1 -1
  528. package/dist/core/{p-902ff1a5.entry.js → p-d2729599.entry.js} +2 -2
  529. package/dist/core/p-d2729599.entry.js.map +1 -0
  530. package/dist/core/{p-52373a5b.entry.js → p-d921bd4b.entry.js} +2 -2
  531. package/dist/core/p-d921bd4b.entry.js.map +1 -0
  532. package/dist/core/{p-8694e397.entry.js → p-da762184.entry.js} +2 -2
  533. package/dist/core/p-da762184.entry.js.map +1 -0
  534. package/dist/core/p-de3dc437.entry.js +2 -0
  535. package/dist/core/p-de3dc437.entry.js.map +1 -0
  536. package/dist/core/p-e0c04c5f.entry.js +2 -0
  537. package/dist/core/p-e0c04c5f.entry.js.map +1 -0
  538. package/dist/core/{p-c862ac0d.entry.js → p-e1b3c361.entry.js} +2 -2
  539. package/dist/core/p-e1b3c361.entry.js.map +1 -0
  540. package/dist/core/{p-2c821d36.entry.js → p-e86db39c.entry.js} +2 -2
  541. package/dist/core/p-e86db39c.entry.js.map +1 -0
  542. package/dist/core/{p-dfe0cb6d.entry.js → p-eda868dc.entry.js} +2 -2
  543. package/dist/core/p-eda868dc.entry.js.map +1 -0
  544. package/dist/core/{p-37599a2d.entry.js → p-f95bca5f.entry.js} +2 -2
  545. package/dist/core/p-f95bca5f.entry.js.map +1 -0
  546. package/dist/core/{p-1a4cb97e.entry.js → p-f969eec7.entry.js} +2 -2
  547. package/dist/core/p-f969eec7.entry.js.map +1 -0
  548. package/dist/core/{p-4b8bf83d.entry.js → p-fa71fb92.entry.js} +2 -2
  549. package/dist/core/p-fa71fb92.entry.js.map +1 -0
  550. package/dist/core/p-ff7365ae.js.map +1 -1
  551. package/dist/core/p-ffb7495c.js.map +1 -1
  552. package/dist/esm/core.js +3 -2
  553. package/dist/esm/core.js.map +1 -1
  554. package/dist/esm/gov-accordion-item.entry.js +1 -1
  555. package/dist/esm/gov-accordion.entry.js +1 -1
  556. package/dist/esm/gov-alert.entry.js +1 -1
  557. package/dist/esm/gov-app.entry.js +1 -1
  558. package/dist/esm/gov-app.entry.js.map +1 -1
  559. package/dist/esm/gov-attachments_3.entry.js +1 -1
  560. package/dist/esm/gov-backdrop.entry.js +1 -1
  561. package/dist/esm/gov-badge.entry.js +1 -1
  562. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  563. package/dist/esm/gov-button.entry.js +1 -1
  564. package/dist/esm/gov-card.entry.js +1 -1
  565. package/dist/esm/gov-container.entry.js +1 -1
  566. package/dist/esm/gov-control-group.entry.js +1 -1
  567. package/dist/esm/gov-cookiebar.entry.js +1 -1
  568. package/dist/esm/gov-dropdown.entry.js +1 -1
  569. package/dist/esm/gov-empty.entry.js +1 -1
  570. package/dist/esm/gov-error-code.entry.js +1 -1
  571. package/dist/esm/gov-form-autocomplete.entry.js +1 -1
  572. package/dist/esm/gov-form-checkbox.entry.js +1 -1
  573. package/dist/esm/gov-form-control.entry.js +1 -1
  574. package/dist/esm/gov-form-file.entry.js +1 -1
  575. package/dist/esm/gov-form-group.entry.js +1 -1
  576. package/dist/esm/gov-form-input.entry.js +1 -1
  577. package/dist/esm/gov-form-label.entry.js +1 -1
  578. package/dist/esm/gov-form-multi-select.entry.js +1 -1
  579. package/dist/esm/gov-form-password-power.entry.js +1 -1
  580. package/dist/esm/gov-form-radio.entry.js +1 -1
  581. package/dist/esm/gov-form-search.entry.js +1 -1
  582. package/dist/esm/gov-form-select.entry.js +1 -1
  583. package/dist/esm/gov-form-switch.entry.js +1 -1
  584. package/dist/esm/gov-grid-item.entry.js +1 -1
  585. package/dist/esm/gov-grid.entry.js +1 -1
  586. package/dist/esm/gov-icon.entry.js +1 -1
  587. package/dist/esm/gov-layout-column.entry.js +1 -1
  588. package/dist/esm/gov-layout.entry.js +1 -1
  589. package/dist/esm/gov-loading.entry.js +1 -1
  590. package/dist/esm/gov-message.entry.js +1 -1
  591. package/dist/esm/gov-modal.entry.js +1 -1
  592. package/dist/esm/gov-nav-item.entry.js +1 -1
  593. package/dist/esm/gov-nav.entry.js +1 -1
  594. package/dist/esm/gov-pagination.entry.js +1 -1
  595. package/dist/esm/gov-prompt.entry.js +1 -1
  596. package/dist/esm/gov-side-nav-item.entry.js +1 -1
  597. package/dist/esm/gov-side-nav.entry.js +1 -1
  598. package/dist/esm/gov-skeleton.entry.js +1 -1
  599. package/dist/esm/gov-spacer.entry.js +1 -1
  600. package/dist/esm/gov-statsbar-item.entry.js +1 -1
  601. package/dist/esm/gov-statsbar.entry.js +1 -1
  602. package/dist/esm/gov-stepper-item.entry.js +1 -1
  603. package/dist/esm/gov-stepper.entry.js +1 -1
  604. package/dist/esm/gov-tabs-item.entry.js +1 -1
  605. package/dist/esm/gov-tabs.entry.js +1 -1
  606. package/dist/esm/gov-tabs.entry.js.map +1 -1
  607. package/dist/esm/gov-tile.entry.js +1 -1
  608. package/dist/esm/gov-tiles.entry.js +1 -1
  609. package/dist/esm/gov-toast.entry.js +1 -1
  610. package/dist/esm/gov-tooltip-content.entry.js +1 -1
  611. package/dist/esm/gov-tooltip.entry.js +1 -1
  612. package/dist/esm/gov-wizzard-item.entry.js +1 -1
  613. package/dist/esm/gov-wizzard.entry.js +1 -1
  614. package/dist/esm/{index-12c94daf.js → index-ae3c50f1.js} +305 -53
  615. package/dist/esm/index-ae3c50f1.js.map +1 -0
  616. package/dist/esm/loader.js +3 -11
  617. package/dist/esm/loader.js.map +1 -1
  618. package/dist/hydrate/index.d.ts +17 -16
  619. package/dist/hydrate/index.js +199 -166
  620. package/dist/stencil.config.js +5 -11
  621. package/dist/stencil.config.js.map +1 -1
  622. package/dist/types/components/gov-accordion/constants.d.ts +2 -2
  623. package/dist/types/components/gov-alert/constants.d.ts +1 -1
  624. package/dist/types/components/gov-app/gov-app.d.ts +34 -34
  625. package/dist/types/components/gov-badge/constants.d.ts +1 -1
  626. package/dist/types/components/gov-button/default/constants.d.ts +5 -5
  627. package/dist/types/components/gov-button/dropdown/constants.d.ts +1 -1
  628. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  629. package/dist/types/components/gov-form/autocomplete/constants.d.ts +2 -2
  630. package/dist/types/components/gov-form/checkbox/constants.d.ts +1 -1
  631. package/dist/types/components/gov-form/control/constants.d.ts +1 -1
  632. package/dist/types/components/gov-form/group/constants.d.ts +1 -1
  633. package/dist/types/components/gov-form/input/constants.d.ts +4 -4
  634. package/dist/types/components/gov-form/label/constants.d.ts +1 -1
  635. package/dist/types/components/gov-form/message/constants.d.ts +1 -1
  636. package/dist/types/components/gov-form/multiselect/constants.d.ts +2 -2
  637. package/dist/types/components/gov-form/radio/constants.d.ts +1 -1
  638. package/dist/types/components/gov-form/search/constants.d.ts +1 -1
  639. package/dist/types/components/gov-form/select/constants.d.ts +2 -2
  640. package/dist/types/components/gov-form/switch/constants.d.ts +1 -1
  641. package/dist/types/components/gov-icon/constants.d.ts +1 -1
  642. package/dist/types/components/gov-layout/constants.d.ts +2 -2
  643. package/dist/types/components/gov-loading/skeleton/constants.d.ts +3 -3
  644. package/dist/types/components/gov-message/constants.d.ts +1 -1
  645. package/dist/types/components/gov-pagination/constants.d.ts +3 -3
  646. package/dist/types/components/gov-spacer/constants.d.ts +2 -2
  647. package/dist/types/components/gov-statsbar/constants.d.ts +2 -2
  648. package/dist/types/components/gov-stepper/constants.d.ts +2 -2
  649. package/dist/types/components/gov-tabs/constants.d.ts +3 -3
  650. package/dist/types/components/gov-toast/constants.d.ts +2 -2
  651. package/dist/types/components/gov-tooltip/constants.d.ts +3 -3
  652. package/dist/types/components/gov-wizzard/constants.d.ts +2 -2
  653. package/dist/types/components.d.ts +50 -0
  654. package/dist/types/stencil-public-runtime.d.ts +88 -17
  655. package/dist/types/types/interfaces.d.ts +2 -2
  656. package/dist/types/utils/utils.d.ts +1 -1
  657. package/loader/index.d.ts +10 -1
  658. package/package.json +22 -22
  659. package/dist/cjs/index-7ba43a19.js.map +0 -1
  660. package/dist/components/Fragment.js +0 -5
  661. package/dist/components/Fragment.js.map +0 -1
  662. package/dist/components/constants.js +0 -25
  663. package/dist/components/constants.js.map +0 -1
  664. package/dist/components/constants10.js +0 -19
  665. package/dist/components/constants10.js.map +0 -1
  666. package/dist/components/constants11.js +0 -22
  667. package/dist/components/constants11.js.map +0 -1
  668. package/dist/components/constants12.js +0 -25
  669. package/dist/components/constants12.js.map +0 -1
  670. package/dist/components/constants13.js +0 -29
  671. package/dist/components/constants14.js +0 -23
  672. package/dist/components/constants14.js.map +0 -1
  673. package/dist/components/constants15.js +0 -24
  674. package/dist/components/constants15.js.map +0 -1
  675. package/dist/components/constants2.js +0 -15
  676. package/dist/components/constants2.js.map +0 -1
  677. package/dist/components/constants3.js +0 -33
  678. package/dist/components/constants3.js.map +0 -1
  679. package/dist/components/constants4.js +0 -12
  680. package/dist/components/constants4.js.map +0 -1
  681. package/dist/components/constants5.js +0 -13
  682. package/dist/components/constants5.js.map +0 -1
  683. package/dist/components/constants6.js +0 -10
  684. package/dist/components/constants6.js.map +0 -1
  685. package/dist/components/constants7.js +0 -22
  686. package/dist/components/constants7.js.map +0 -1
  687. package/dist/components/constants8.js +0 -18
  688. package/dist/components/constants8.js.map +0 -1
  689. package/dist/components/constants9.js +0 -12
  690. package/dist/components/constants9.js.map +0 -1
  691. package/dist/components/form.js +0 -152
  692. package/dist/components/form.js.map +0 -1
  693. package/dist/components/gov-attachments-item2.js +0 -70
  694. package/dist/components/gov-attachments-item2.js.map +0 -1
  695. package/dist/components/gov-attachments2.js +0 -57
  696. package/dist/components/gov-attachments2.js.map +0 -1
  697. package/dist/components/gov-backdrop2.js +0 -64
  698. package/dist/components/gov-backdrop2.js.map +0 -1
  699. package/dist/components/gov-badge2.js +0 -108
  700. package/dist/components/gov-badge2.js.map +0 -1
  701. package/dist/components/gov-button2.js +0 -223
  702. package/dist/components/gov-button2.js.map +0 -1
  703. package/dist/components/gov-form-autocomplete2.js +0 -294
  704. package/dist/components/gov-form-autocomplete2.js.map +0 -1
  705. package/dist/components/gov-form-input2.js +0 -235
  706. package/dist/components/gov-form-input2.js.map +0 -1
  707. package/dist/components/gov-form-message2.js +0 -58
  708. package/dist/components/gov-form-message2.js.map +0 -1
  709. package/dist/components/gov-form-select2.js +0 -186
  710. package/dist/components/gov-icon2.js +0 -142
  711. package/dist/components/gov-icon2.js.map +0 -1
  712. package/dist/components/gov.log.js +0 -17
  713. package/dist/components/gov.log.js.map +0 -1
  714. package/dist/components/props.js +0 -14
  715. package/dist/components/props.js.map +0 -1
  716. package/dist/components/sizes.js +0 -18
  717. package/dist/components/sizes.js.map +0 -1
  718. package/dist/components/string.utils.js +0 -20
  719. package/dist/components/string.utils.js.map +0 -1
  720. package/dist/components/template.js +0 -113
  721. package/dist/components/template.js.map +0 -1
  722. package/dist/components/utils.js +0 -35
  723. package/dist/components/utils.js.map +0 -1
  724. package/dist/components/variants.js +0 -18
  725. package/dist/components/variants.js.map +0 -1
  726. package/dist/components/wcag.js +0 -62
  727. package/dist/components/wcag.js.map +0 -1
  728. package/dist/components/win.js +0 -23
  729. package/dist/components/win.js.map +0 -1
  730. package/dist/core/critical.css +0 -1
  731. package/dist/core/p-00e21d46.entry.js.map +0 -1
  732. package/dist/core/p-024fa230.entry.js.map +0 -1
  733. package/dist/core/p-034c5c8f.entry.js.map +0 -1
  734. package/dist/core/p-0b9eed8b.entry.js.map +0 -1
  735. package/dist/core/p-174d3df0.entry.js.map +0 -1
  736. package/dist/core/p-1a4cb97e.entry.js.map +0 -1
  737. package/dist/core/p-1bfe6f33.entry.js.map +0 -1
  738. package/dist/core/p-1c20657a.entry.js.map +0 -1
  739. package/dist/core/p-1d20b5af.entry.js +0 -2
  740. package/dist/core/p-1d20b5af.entry.js.map +0 -1
  741. package/dist/core/p-1e1bd302.entry.js.map +0 -1
  742. package/dist/core/p-1ea41454.entry.js +0 -2
  743. package/dist/core/p-1ea41454.entry.js.map +0 -1
  744. package/dist/core/p-1f883c31.entry.js.map +0 -1
  745. package/dist/core/p-21375e02.entry.js.map +0 -1
  746. package/dist/core/p-24ba5c7b.entry.js.map +0 -1
  747. package/dist/core/p-2713b83e.entry.js.map +0 -1
  748. package/dist/core/p-2b0af68c.entry.js.map +0 -1
  749. package/dist/core/p-2c0e96dd.entry.js +0 -2
  750. package/dist/core/p-2c0e96dd.entry.js.map +0 -1
  751. package/dist/core/p-2c821d36.entry.js.map +0 -1
  752. package/dist/core/p-32c8b7a4.entry.js.map +0 -1
  753. package/dist/core/p-34508063.entry.js.map +0 -1
  754. package/dist/core/p-37599a2d.entry.js.map +0 -1
  755. package/dist/core/p-397b0e73.entry.js +0 -2
  756. package/dist/core/p-397b0e73.entry.js.map +0 -1
  757. package/dist/core/p-3b6d6f6f.entry.js.map +0 -1
  758. package/dist/core/p-40df0e89.entry.js.map +0 -1
  759. package/dist/core/p-424fdf22.entry.js.map +0 -1
  760. package/dist/core/p-439340f9.entry.js.map +0 -1
  761. package/dist/core/p-4b8bf83d.entry.js.map +0 -1
  762. package/dist/core/p-51582b94.entry.js.map +0 -1
  763. package/dist/core/p-52373a5b.entry.js.map +0 -1
  764. package/dist/core/p-5f23b01d.entry.js.map +0 -1
  765. package/dist/core/p-6e6a44f0.entry.js.map +0 -1
  766. package/dist/core/p-7d7dab2e.entry.js.map +0 -1
  767. package/dist/core/p-818bb0f5.entry.js.map +0 -1
  768. package/dist/core/p-82af6719.entry.js.map +0 -1
  769. package/dist/core/p-8694e397.entry.js.map +0 -1
  770. package/dist/core/p-88c10472.entry.js.map +0 -1
  771. package/dist/core/p-8ee11310.entry.js.map +0 -1
  772. package/dist/core/p-902ff1a5.entry.js.map +0 -1
  773. package/dist/core/p-9a1d5c77.entry.js.map +0 -1
  774. package/dist/core/p-a008979f.entry.js.map +0 -1
  775. package/dist/core/p-b1ca32cc.entry.js.map +0 -1
  776. package/dist/core/p-b2c6a185.entry.js.map +0 -1
  777. package/dist/core/p-b547d31a.entry.js.map +0 -1
  778. package/dist/core/p-b9bfca0a.entry.js.map +0 -1
  779. package/dist/core/p-c0c9b349.entry.js.map +0 -1
  780. package/dist/core/p-c134863d.entry.js.map +0 -1
  781. package/dist/core/p-c862ac0d.entry.js.map +0 -1
  782. package/dist/core/p-cbfe47ee.entry.js.map +0 -1
  783. package/dist/core/p-d9747cca.entry.js.map +0 -1
  784. package/dist/core/p-dae9dc31.entry.js.map +0 -1
  785. package/dist/core/p-dbd6c9b5.entry.js.map +0 -1
  786. package/dist/core/p-dd6d9f6d.js +0 -3
  787. package/dist/core/p-dd6d9f6d.js.map +0 -1
  788. package/dist/core/p-ddffa85e.entry.js.map +0 -1
  789. package/dist/core/p-dfe0cb6d.entry.js.map +0 -1
  790. package/dist/core/p-e866befd.entry.js +0 -2
  791. package/dist/core/p-e866befd.entry.js.map +0 -1
  792. package/dist/core/p-ec8e7f8f.entry.js.map +0 -1
  793. package/dist/core/p-f2d22b62.entry.js.map +0 -1
  794. package/dist/core/p-fd62778e.entry.js.map +0 -1
  795. package/dist/custom-elements/index.d.ts +0 -399
  796. package/dist/custom-elements/index.js +0 -2
  797. package/dist/custom-elements/index.js.map +0 -1
  798. package/dist/esm/index-12c94daf.js.map +0 -1
  799. package/dist/esm/polyfills/css-shim.js +0 -1
@@ -1,8 +1,2 @@
1
- import { G as GovAttachmentsItem$1, d as defineCustomElement$1 } from './gov-attachments-item2.js';
2
-
3
- const GovAttachmentsItem = GovAttachmentsItem$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { GovAttachmentsItem, defineCustomElement };
7
-
1
+ import{G as o,d as s}from"./p-2692b1ff.js";const t=o;const f=s;export{t as GovAttachmentsItem,f as defineCustomElement};
8
2
  //# sourceMappingURL=gov-attachments-item.js.map
@@ -1 +1 @@
1
- {"file":"gov-attachments-item.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -1,8 +1,2 @@
1
- import { G as GovAttachments$1, d as defineCustomElement$1 } from './gov-attachments2.js';
2
-
3
- const GovAttachments = GovAttachments$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { GovAttachments, defineCustomElement };
7
-
1
+ import{G as c,d as o}from"./p-ccc44ac1.js";const s=c;const t=o;export{s as GovAttachments,t as defineCustomElement};
8
2
  //# sourceMappingURL=gov-attachments.js.map
@@ -1 +1 @@
1
- {"file":"gov-attachments.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -1,8 +1,2 @@
1
- import { G as GovBackdrop$1, d as defineCustomElement$1 } from './gov-backdrop2.js';
2
-
3
- const GovBackdrop = GovBackdrop$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { GovBackdrop, defineCustomElement };
7
-
1
+ import{G as o,d as s}from"./p-386409dc.js";const t=o;const c=s;export{t as GovBackdrop,c as defineCustomElement};
8
2
  //# sourceMappingURL=gov-backdrop.js.map
@@ -1 +1 @@
1
- {"file":"gov-backdrop.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -1,8 +1,2 @@
1
- import { G as GovBadge$1, d as defineCustomElement$1 } from './gov-badge2.js';
2
-
3
- const GovBadge = GovBadge$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { GovBadge, defineCustomElement };
7
-
1
+ import{G as o,d as s}from"./p-5bf5a42e.js";const t=o;const a=s;export{t as GovBadge,a as defineCustomElement};
8
2
  //# sourceMappingURL=gov-badge.js.map
@@ -1 +1 @@
1
- {"file":"gov-badge.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -1,68 +1,2 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { v as validateWcagLabel } from './wcag.js';
3
- import { c as canValidateWcagOnRender } from './win.js';
4
- import { d as delay } from './utils.js';
5
- import { g as govHost } from './template.js';
6
-
7
- const BreadcrumbsClass = {
8
- root: 'gov-breadcrumbs',
9
- };
10
-
11
- const govBreadcrumbsCss = ".gov-breadcrumbs ul{margin:0;padding:0}.gov-breadcrumbs li{margin:0;padding:0;background:none}.gov-breadcrumbs li::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-breadcrumbs ul{position:relative;display:flex;width:100%;padding-bottom:0.3125rem;overflow-x:auto}.gov-breadcrumbs li{display:flex;justify-content:flex-start;align-items:center;white-space:nowrap}.gov-breadcrumbs button{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);padding:0;border:none;background:none;color:var(--gov-breadcrumbs-link-color, var(--gov-color-primary));text-decoration:underline}.gov-breadcrumbs button:hover{text-decoration:none}.gov-breadcrumbs .gov-icon{width:0.625rem;height:0.625rem;margin:0rem 1rem;color:var(--gov-breadcrumbs-arrow-color, var(--gov-color-secondary-600))}";
12
-
13
- const GovBreadcrumbs$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
14
- constructor() {
15
- super();
16
- this.__registerHost();
17
- this.govChange = createEvent(this, "gov-change", 7);
18
- this.collapsible = false;
19
- this.isExpanded = false;
20
- this.wcagLabel = undefined;
21
- this.wcagLabelledBy = undefined;
22
- this.h = govHost(this.host);
23
- }
24
- async componentDidRender() {
25
- if (canValidateWcagOnRender()) {
26
- await delay(500);
27
- await this.validateWcag();
28
- }
29
- }
30
- render() {
31
- return (h(Host, { class: this.h.classes(BreadcrumbsClass.root) }, h("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, h("slot", null))));
32
- }
33
- /**
34
- * Validate the WCAG attributes of the component
35
- */
36
- async validateWcag() {
37
- validateWcagLabel(this.wcagLabel, this.wcagLabelledBy, BreadcrumbsClass.root);
38
- }
39
- get host() { return this; }
40
- static get style() { return govBreadcrumbsCss; }
41
- }, [4, "gov-breadcrumbs", {
42
- "collapsible": [4],
43
- "isExpanded": [4, "is-expanded"],
44
- "wcagLabel": [1, "wcag-label"],
45
- "wcagLabelledBy": [1, "wcag-labelded-by"],
46
- "validateWcag": [64]
47
- }]);
48
- function defineCustomElement$1() {
49
- if (typeof customElements === "undefined") {
50
- return;
51
- }
52
- const components = ["gov-breadcrumbs"];
53
- components.forEach(tagName => { switch (tagName) {
54
- case "gov-breadcrumbs":
55
- if (!customElements.get(tagName)) {
56
- customElements.define(tagName, GovBreadcrumbs$1);
57
- }
58
- break;
59
- } });
60
- }
61
- defineCustomElement$1();
62
-
63
- const GovBreadcrumbs = GovBreadcrumbs$1;
64
- const defineCustomElement = defineCustomElement$1;
65
-
66
- export { GovBreadcrumbs, defineCustomElement };
67
-
1
+ import{p as e,H as o,c as t,h as a,d as r}from"./p-80c0109d.js";import{v as s}from"./p-0f5e2b0a.js";import{c as i}from"./p-34152b51.js";import{d as n}from"./p-03990da5.js";import{g as c}from"./p-3f37ddb6.js";const d={root:"gov-breadcrumbs"};const l=".gov-breadcrumbs ul{margin:0;padding:0}.gov-breadcrumbs li{margin:0;padding:0;background:none}.gov-breadcrumbs li::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-breadcrumbs ul{position:relative;display:flex;width:100%;padding-bottom:0.3125rem;overflow-x:auto}.gov-breadcrumbs li{display:flex;justify-content:flex-start;align-items:center;white-space:nowrap}.gov-breadcrumbs button{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);padding:0;border:none;background:none;color:var(--gov-breadcrumbs-link-color, var(--gov-color-primary));text-decoration:underline}.gov-breadcrumbs button:hover{text-decoration:none}.gov-breadcrumbs .gov-icon{width:0.625rem;height:0.625rem;margin:0rem 1rem;color:var(--gov-breadcrumbs-arrow-color, var(--gov-color-secondary-600))}";const g=e(class e extends o{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.collapsible=false;this.isExpanded=false;this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.h=c(this.host)}async componentDidRender(){if(i()){await n(500);await this.validateWcag()}}render(){return a(r,{class:this.h.classes(d.root)},a("nav",{"aria-label":this.wcagLabel,"aria-labelledby":this.wcagLabelledBy},a("slot",null)))}async validateWcag(){s(this.wcagLabel,this.wcagLabelledBy,d.root)}get host(){return this}static get style(){return l}},[4,"gov-breadcrumbs",{collapsible:[4],isExpanded:[4,"is-expanded"],wcagLabel:[1,"wcag-label"],wcagLabelledBy:[1,"wcag-labelded-by"],validateWcag:[64]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-breadcrumbs"];e.forEach((e=>{switch(e){case"gov-breadcrumbs":if(!customElements.get(e)){customElements.define(e,g)}break}}))}m();const b=g;const p=m;export{b as GovBreadcrumbs,p as defineCustomElement};
68
2
  //# sourceMappingURL=gov-breadcrumbs.js.map
@@ -1 +1 @@
1
- {"file":"gov-breadcrumbs.js","mappings":";;;;;;AAAO,MAAM,gBAAgB,GAAG;EAC/B,IAAI,EAAE,iBAAiB;CACvB;;ACFD,MAAM,iBAAiB,GAAG,mrCAAmrC;;MCahsCA,gBAAc;EAG1B;;;;uBAQwC,KAAK;sBAIsB,KAAK;;;IAXvE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAyBD,MAAM,kBAAkB;IACvB,IAAI,uBAAuB,EAAE,EAAE;MAC9B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;MAChB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;KACzB;GACD;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,IACjD,yBAAiB,IAAI,CAAC,SAAS,qBAAmB,IAAI,CAAC,cAAc,IACpE,eAAO,CACF,CACA,EACP;GACD;;;;EAOD,MAAM,YAAY;IACjB,iBAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;GAC7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovBreadcrumbs"],"sources":["../../../packages/core/src/components/gov-breadcrumbs/constants.ts","../../../packages/core/src/components/gov-breadcrumbs/gov-breadcrumbs.scss?tag=gov-breadcrumbs","../../../packages/core/src/components/gov-breadcrumbs/gov-breadcrumbs.tsx"],"sourcesContent":["export const BreadcrumbsClass = {\n\troot: 'gov-breadcrumbs',\n}\n","/*\n * Pagination\n */\n\n$class: \".gov-breadcrumbs\";\n\n#{$class} {\n\tul {\n\t\t@extend %reset-ul;\n\t\t@include base(flex);\n\t\tpadding-bottom: rem-calc(5);\n\t\toverflow-x: auto;\n\t}\n\tli {\n\t\t@extend %reset-ul-li;\n\t\tdisplay: flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t\twhite-space: nowrap;\n\t}\n\tbutton {\n\t\t@include typography($font-size-m);\n\t\tpadding: 0;\n\t\tborder: none;\n\t\tbackground: none;\n\t\tcolor: $breadcrumbs-link-color;\n\t\ttext-decoration: underline;\n\t\t&:hover {\n\t\t\ttext-decoration: none;\n\t\t}\n\t}\n\t& .gov-icon {\n\t\twidth: rem-calc(10);\n\t\theight: rem-calc(10);\n\t\tmargin: rem-calc(0 16px);\n\t\tcolor: $breadcrumbs-arrow-color;\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop, Event, EventEmitter } from '@stencil/core'\nimport { BreadcrumbsClass } from './constants'\nimport { validateWcagLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\nimport { GovBreadcrumbsChangeEvent } from './gov-breadcrumbs.d'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-breadcrumbs',\n\tstyleUrl: 'gov-breadcrumbs.scss',\n})\nexport class GovBreadcrumbs {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovBreadcrumbsElement\n\t/**\n\t * Defines wether the components can be collapsible when element doesn't fit in one row.\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the breadcrumbs are open or closed by default\n\t */\n\t@Prop({ attribute: 'is-expanded' }) readonly isExpanded: boolean = false\n\t/**\n\t * Adds accessible label for the pagination that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\t/**\n\t * Indicates the id of a component that labels the pagination.\n\t */\n\t@Prop({ attribute: 'wcag-labelded-by' }) readonly wcagLabelledBy: string\n\n\t/**\n\t * Called when the Breadrumbs state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovBreadcrumbsChangeEvent>\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(BreadcrumbsClass.root)}>\n\t\t\t\t<nav aria-label={this.wcagLabel} aria-labelledby={this.wcagLabelledBy}>\n\t\t\t\t\t<slot/>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, BreadcrumbsClass.root)\n\t}\n}\n"],"version":3}
1
+ {"version":3,"names":["BreadcrumbsClass","root","govBreadcrumbsCss","GovBreadcrumbs","proxyCustomElement","H","constructor","this","h","govHost","host","componentDidRender","canValidateWcagOnRender","delay","validateWcag","render","Host","class","classes","wcagLabel","wcagLabelledBy","validateWcagLabel"],"sources":["../../../packages/core/src/components/gov-breadcrumbs/constants.ts","../../../packages/core/src/components/gov-breadcrumbs/gov-breadcrumbs.scss?tag=gov-breadcrumbs","../../../packages/core/src/components/gov-breadcrumbs/gov-breadcrumbs.tsx"],"sourcesContent":["export const BreadcrumbsClass = {\n\troot: 'gov-breadcrumbs',\n}\n","/*\n * Pagination\n */\n\n$class: \".gov-breadcrumbs\";\n\n#{$class} {\n\tul {\n\t\t@extend %reset-ul;\n\t\t@include base(flex);\n\t\tpadding-bottom: rem-calc(5);\n\t\toverflow-x: auto;\n\t}\n\tli {\n\t\t@extend %reset-ul-li;\n\t\tdisplay: flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t\twhite-space: nowrap;\n\t}\n\tbutton {\n\t\t@include typography($font-size-m);\n\t\tpadding: 0;\n\t\tborder: none;\n\t\tbackground: none;\n\t\tcolor: $breadcrumbs-link-color;\n\t\ttext-decoration: underline;\n\t\t&:hover {\n\t\t\ttext-decoration: none;\n\t\t}\n\t}\n\t& .gov-icon {\n\t\twidth: rem-calc(10);\n\t\theight: rem-calc(10);\n\t\tmargin: rem-calc(0 16px);\n\t\tcolor: $breadcrumbs-arrow-color;\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop, Event, EventEmitter } from '@stencil/core'\nimport { BreadcrumbsClass } from './constants'\nimport { validateWcagLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\nimport { GovBreadcrumbsChangeEvent } from './gov-breadcrumbs.d'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-breadcrumbs',\n\tstyleUrl: 'gov-breadcrumbs.scss',\n})\nexport class GovBreadcrumbs {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovBreadcrumbsElement\n\t/**\n\t * Defines wether the components can be collapsible when element doesn't fit in one row.\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the breadcrumbs are open or closed by default\n\t */\n\t@Prop({ attribute: 'is-expanded' }) readonly isExpanded: boolean = false\n\t/**\n\t * Adds accessible label for the pagination that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\t/**\n\t * Indicates the id of a component that labels the pagination.\n\t */\n\t@Prop({ attribute: 'wcag-labelded-by' }) readonly wcagLabelledBy: string\n\n\t/**\n\t * Called when the Breadrumbs state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovBreadcrumbsChangeEvent>\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(BreadcrumbsClass.root)}>\n\t\t\t\t<nav aria-label={this.wcagLabel} aria-labelledby={this.wcagLabelledBy}>\n\t\t\t\t\t<slot/>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, BreadcrumbsClass.root)\n\t}\n}\n"],"mappings":"gNAAO,MAAMA,EAAmB,CAC/BC,KAAM,mBCDP,MAAMC,EAAoB,orC,MCabC,EAAcC,EAAA,MAAAD,UAAAE,EAG1B,WAAAC,G,qFAQwC,M,gBAI2B,M,uDAXlEC,KAAKC,EAAIC,EAAQF,KAAKG,K,CA0BvB,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNN,KAAKO,c,EAIb,MAAAC,GACC,OACCP,EAACQ,EAAI,CAACC,MAAOV,KAAKC,EAAEU,QAAQlB,EAAiBC,OAC5CO,EAAA,oBAAiBD,KAAKY,UAAS,kBAAmBZ,KAAKa,gBACtDZ,EAAA,c,CAWJ,kBAAMM,GACLO,EAAkBd,KAAKY,UAAWZ,KAAKa,eAAgBpB,EAAiBC,K"}
@@ -1,8 +1,2 @@
1
- import { G as GovButton$1, d as defineCustomElement$1 } from './gov-button2.js';
2
-
3
- const GovButton = GovButton$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { GovButton, defineCustomElement };
7
-
1
+ import{G as o,d as s}from"./p-efcdfed8.js";const t=o;const c=s;export{t as GovButton,c as defineCustomElement};
8
2
  //# sourceMappingURL=gov-button.js.map
@@ -1 +1 @@
1
- {"file":"gov-button.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -1,144 +1,2 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { g as govHost, b as booleanString } from './template.js';
3
- import { c as createID } from './string.utils.js';
4
- import { g as govErrorLog } from './gov.log.js';
5
- import { v as validateWcagLabel } from './wcag.js';
6
- import { c as canValidateWcagOnRender } from './win.js';
7
- import { d as delay } from './utils.js';
8
- import { d as defineCustomElement$2 } from './gov-icon2.js';
9
-
10
- const CardClass = {
11
- root: 'gov-card',
12
- header: 'gov-card__header',
13
- title: 'gov-card__title',
14
- inner: 'gov-card__inner',
15
- img: 'gov-card__img',
16
- main: 'gov-card__main',
17
- content: 'gov-card__content',
18
- icon: 'gov-card__icon',
19
- btns: 'gov-card__btns',
20
- footer: 'gov-card__footer',
21
- arrow: 'gov-card__arrow',
22
- };
23
-
24
- const govCardCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-card{position:relative;display:flex;width:100%;flex-direction:column;border:var(--gov-card-border-width, 0.0625rem solid var(--gov-color-secondary-500));border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-card-bg, var(--gov-color-neutral-white));overflow:hidden}.gov-card__header{gap:1.75rem;width:100%;padding:1.5rem;border-bottom:var(--gov-card-border-width, 0.0625rem solid var(--gov-color-secondary-500));border-radius:0;text-align:left;text-transform:none;transition:background-color 150ms ease-in-out}.gov-card__arrow{flex:0 0 auto;width:1rem;height:1rem;color:var(--gov-card-arrow-color, var(--gov-color-primary))}.gov-card__title{margin:0;padding:0;font-family:var(--gov-font-family, \"Roboto\", sans-serif);font-weight:400;box-sizing:border-box;font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);color:var(--gov-card-title-color, var(--gov-color-secondary-800));font-weight:700}.gov-card__img{width:100%;margin:0;line-height:1}.gov-card__img img{width:100%;height:auto}.gov-card__inner{display:flex;flex:1 1 auto;flex-direction:column}.gov-card__inner[aria-hidden=\"\"],.gov-card__inner[aria-hidden=true i],.gov-card__inner[aria-hidden=\"1\"]{display:none}.gov-card__main{display:flex;gap:16px 24px;flex:1 1 auto;flex-direction:column;padding:1.5rem}.gov-card__icon{flex:0 0 auto;width:2.5rem;height:2.5rem;color:var(--gov-card-icon-color, var(--gov-color-primary))}.gov-card__btns{display:flex;gap:1rem;flex:0 0 auto;flex-wrap:wrap}.gov-card__content>*:last-child{margin-bottom:0}.gov-card__footer{padding:1rem 1.5rem;background:var(--gov-card-footer-bg, var(--gov-color-primary-100))}.gov-card__footer>*:last-child{margin-bottom:0}.gov-card__footer p{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-card[is-expanded=\"\"],.gov-card[is-expanded=true i],.gov-card[is-expanded=\"1\"]{height:100%}.gov-card[collapsible=\"\"] .gov-card__header,.gov-card[collapsible=true i] .gov-card__header,.gov-card[collapsible=\"1\"] .gov-card__header{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:space-between;text-align:left}.gov-card[collapsible=\"\"] .gov-card__header:focus,.gov-card[collapsible=true i] .gov-card__header:focus,.gov-card[collapsible=\"1\"] .gov-card__header:focus{outline:none}.gov-card[collapsible=\"\"] .gov-card__header:focus,.gov-card[collapsible=true i] .gov-card__header:focus,.gov-card[collapsible=\"1\"] .gov-card__header:focus{outline:none}.gov-card[collapsible=\"\"] .gov-card__header:focus-visible,.gov-card[collapsible=true i] .gov-card__header:focus-visible,.gov-card[collapsible=\"1\"] .gov-card__header:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:-0.125rem}@media not all and (pointer: coarse){.gov-card[collapsible=\"\"] .gov-card__header:hover,.gov-card[collapsible=true i] .gov-card__header:hover,.gov-card[collapsible=\"1\"] .gov-card__header:hover{background:var(--gov-card-header-hover-bg, var(--gov-color-primary-100))}}.gov-card[collapsible=\"\"][is-expanded=\"\"] .gov-card__header,.gov-card[collapsible=\"\"][is-expanded=true i] .gov-card__header,.gov-card[collapsible=\"\"][is-expanded=\"1\"] .gov-card__header,.gov-card[collapsible=true i][is-expanded=\"\"] .gov-card__header,.gov-card[collapsible=true i][is-expanded=true i] .gov-card__header,.gov-card[collapsible=true i][is-expanded=\"1\"] .gov-card__header,.gov-card[collapsible=\"1\"][is-expanded=\"\"] .gov-card__header,.gov-card[collapsible=\"1\"][is-expanded=true i] .gov-card__header,.gov-card[collapsible=\"1\"][is-expanded=\"1\"] .gov-card__header{border-bottom:var(--gov-card-border-width, 0.0625rem solid var(--gov-color-secondary-500))}.gov-card[collapsible=\"\"][is-expanded=\"\"] .gov-card__arrow,.gov-card[collapsible=\"\"][is-expanded=true i] .gov-card__arrow,.gov-card[collapsible=\"\"][is-expanded=\"1\"] .gov-card__arrow,.gov-card[collapsible=true i][is-expanded=\"\"] .gov-card__arrow,.gov-card[collapsible=true i][is-expanded=true i] .gov-card__arrow,.gov-card[collapsible=true i][is-expanded=\"1\"] .gov-card__arrow,.gov-card[collapsible=\"1\"][is-expanded=\"\"] .gov-card__arrow,.gov-card[collapsible=\"1\"][is-expanded=true i] .gov-card__arrow,.gov-card[collapsible=\"1\"][is-expanded=\"1\"] .gov-card__arrow{transform:scale(-1)}@media (min-width: 30em){.gov-card[promotion=\"\"] .gov-card__main,.gov-card[promotion=true i] .gov-card__main,.gov-card[promotion=\"1\"] .gov-card__main{flex-direction:row;padding:2rem}.gov-card[promotion=\"\"] .gov-card__icon,.gov-card[promotion=true i] .gov-card__icon,.gov-card[promotion=\"1\"] .gov-card__icon{width:3rem;height:3rem}.gov-card[promotion=\"\"] .gov-card__btns,.gov-card[promotion=true i] .gov-card__btns,.gov-card[promotion=\"1\"] .gov-card__btns{flex-direction:column}}";
25
-
26
- const GovCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
27
- constructor() {
28
- super();
29
- this.__registerHost();
30
- this.govToggle = createEvent(this, "gov-toggle", 7);
31
- this.promotion = false;
32
- this.label = undefined;
33
- this.collapsible = false;
34
- this.expanded = false;
35
- this.headlineTag = 'h3';
36
- this.wcagTriggerLabel = undefined;
37
- this.wcagTriggerLabelledBy = undefined;
38
- this.isExpanded = undefined;
39
- this.h = govHost(this.host);
40
- this.headlineId = createID('GovCardHeadline');
41
- this.contentId = createID('GovCardContent');
42
- }
43
- validateHeadlineTag(newValue) {
44
- const validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span'];
45
- if (newValue) {
46
- if (!validTags.includes(newValue)) {
47
- govErrorLog(`[${CardClass.root}]: Tag ${newValue} is not allowed.`);
48
- }
49
- }
50
- }
51
- componentWillLoad() {
52
- this.isExpanded = this.label ? this.expanded : true;
53
- this.validateHeadlineTag(this.headlineTag);
54
- }
55
- async componentDidRender() {
56
- if (canValidateWcagOnRender()) {
57
- await delay(500);
58
- await this.validateWcag();
59
- }
60
- }
61
- emmitChange() {
62
- this.govToggle.emit({ open: this.isExpanded, element: this.host });
63
- }
64
- render() {
65
- const HeadlineTag = this.headlineTag;
66
- return (h(Host, { class: this.h.classes(CardClass.root), "is-expanded": this.isExpanded, collapsible: booleanString(this.collapsible), promotion: this.promotion }, this.label && this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.wcagTriggerLabel, "aria-labelledby": this.wcagTriggerLabelledBy, "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h(HeadlineTag, { class: CardClass.title }, this.label), h("gov-icon", { class: CardClass.arrow, name: "chevron-down" }))) : null, this.label && !this.collapsible ? (h("div", { class: CardClass.header }, h(HeadlineTag, { class: CardClass.title }, this.label))) : null, h("div", { class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.isExpanded) : undefined, hidden: this.collapsible ? !this.isExpanded : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (h("p", { class: CardClass.img }, h("slot", { name: "img" }))), h("div", { class: CardClass.main }, this.h.hasSlot('icon') && this.promotion && (h("div", { class: CardClass.icon }, h("slot", { name: "icon" }))), h("div", { class: CardClass.content }, h("slot", null)), this.h.hasSlot('btn') && this.promotion && (h("div", { class: CardClass.btns }, h("slot", { name: "btn" })))), this.h.hasSlot('footer') && (h("div", { class: CardClass.footer }, h("slot", { name: "footer" }))))));
67
- }
68
- onClickHandler(e) {
69
- e.stopPropagation();
70
- if (this.collapsible) {
71
- this.isExpanded = !this.isExpanded;
72
- this.emmitChange();
73
- }
74
- }
75
- /**
76
- * Open the card if it is collapsible
77
- */
78
- async open() {
79
- if (this.collapsible) {
80
- this.isExpanded = true;
81
- this.emmitChange();
82
- }
83
- }
84
- /**
85
- * Close the card if it is collapsible
86
- */
87
- async close() {
88
- if (this.collapsible) {
89
- this.isExpanded = false;
90
- this.emmitChange();
91
- }
92
- }
93
- /**
94
- * Validate the WCAG attributes of the component
95
- */
96
- async validateWcag() {
97
- if (this.collapsible) {
98
- validateWcagLabel(this.wcagTriggerLabel, this.wcagTriggerLabelledBy, CardClass.root);
99
- }
100
- }
101
- get host() { return this; }
102
- static get watchers() { return {
103
- "headlineTag": ["validateHeadlineTag"]
104
- }; }
105
- static get style() { return govCardCss; }
106
- }, [4, "gov-card", {
107
- "promotion": [4],
108
- "label": [1],
109
- "collapsible": [4],
110
- "expanded": [4],
111
- "headlineTag": [1, "headline-tag"],
112
- "wcagTriggerLabel": [1, "wcag-trigger-label"],
113
- "wcagTriggerLabelledBy": [1, "wcag-trigger-labelled-by"],
114
- "isExpanded": [32],
115
- "open": [64],
116
- "close": [64],
117
- "validateWcag": [64]
118
- }]);
119
- function defineCustomElement$1() {
120
- if (typeof customElements === "undefined") {
121
- return;
122
- }
123
- const components = ["gov-card", "gov-icon"];
124
- components.forEach(tagName => { switch (tagName) {
125
- case "gov-card":
126
- if (!customElements.get(tagName)) {
127
- customElements.define(tagName, GovCard$1);
128
- }
129
- break;
130
- case "gov-icon":
131
- if (!customElements.get(tagName)) {
132
- defineCustomElement$2();
133
- }
134
- break;
135
- } });
136
- }
137
- defineCustomElement$1();
138
-
139
- const GovCard = GovCard$1;
140
- const defineCustomElement = defineCustomElement$1;
141
-
142
- export { GovCard, defineCustomElement };
143
-
1
+ import{p as o,H as a,c as e,h as r,d as i}from"./p-80c0109d.js";import{g as t,b as d}from"./p-3f37ddb6.js";import{c}from"./p-24636c53.js";import{a as s}from"./p-561fa17b.js";import{v as n}from"./p-0f5e2b0a.js";import{c as l}from"./p-34152b51.js";import{d as g}from"./p-03990da5.js";import{d as v}from"./p-47172f0a.js";const h={root:"gov-card",header:"gov-card__header",title:"gov-card__title",inner:"gov-card__inner",img:"gov-card__img",main:"gov-card__main",content:"gov-card__content",icon:"gov-card__icon",btns:"gov-card__btns",footer:"gov-card__footer",arrow:"gov-card__arrow"};const p='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-card{position:relative;display:flex;width:100%;flex-direction:column;border:var(--gov-card-border-width, 0.0625rem solid var(--gov-color-secondary-500));border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-card-bg, var(--gov-color-neutral-white));overflow:hidden}.gov-card__header{gap:1.75rem;width:100%;padding:1.5rem;border-bottom:var(--gov-card-border-width, 0.0625rem solid var(--gov-color-secondary-500));border-radius:0;text-align:left;text-transform:none;transition:background-color 150ms ease-in-out}.gov-card__arrow{flex:0 0 auto;width:1rem;height:1rem;color:var(--gov-card-arrow-color, var(--gov-color-primary))}.gov-card__title{margin:0;padding:0;font-family:var(--gov-font-family, "Roboto", sans-serif);font-weight:400;box-sizing:border-box;font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);color:var(--gov-card-title-color, var(--gov-color-secondary-800));font-weight:700}.gov-card__img{width:100%;margin:0;line-height:1}.gov-card__img img{width:100%;height:auto}.gov-card__inner{display:flex;flex:1 1 auto;flex-direction:column}.gov-card__inner[aria-hidden=""],.gov-card__inner[aria-hidden=true i],.gov-card__inner[aria-hidden="1"]{display:none}.gov-card__main{display:flex;gap:16px 24px;flex:1 1 auto;flex-direction:column;padding:1.5rem}.gov-card__icon{flex:0 0 auto;width:2.5rem;height:2.5rem;color:var(--gov-card-icon-color, var(--gov-color-primary))}.gov-card__btns{display:flex;gap:1rem;flex:0 0 auto;flex-wrap:wrap}.gov-card__content>*:last-child{margin-bottom:0}.gov-card__footer{padding:1rem 1.5rem;background:var(--gov-card-footer-bg, var(--gov-color-primary-100))}.gov-card__footer>*:last-child{margin-bottom:0}.gov-card__footer p{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-card[is-expanded=""],.gov-card[is-expanded=true i],.gov-card[is-expanded="1"]{height:100%}.gov-card[collapsible=""] .gov-card__header,.gov-card[collapsible=true i] .gov-card__header,.gov-card[collapsible="1"] .gov-card__header{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:space-between;text-align:left}.gov-card[collapsible=""] .gov-card__header:focus,.gov-card[collapsible=true i] .gov-card__header:focus,.gov-card[collapsible="1"] .gov-card__header:focus{outline:none}.gov-card[collapsible=""] .gov-card__header:focus,.gov-card[collapsible=true i] .gov-card__header:focus,.gov-card[collapsible="1"] .gov-card__header:focus{outline:none}.gov-card[collapsible=""] .gov-card__header:focus-visible,.gov-card[collapsible=true i] .gov-card__header:focus-visible,.gov-card[collapsible="1"] .gov-card__header:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:-0.125rem}@media not all and (pointer: coarse){.gov-card[collapsible=""] .gov-card__header:hover,.gov-card[collapsible=true i] .gov-card__header:hover,.gov-card[collapsible="1"] .gov-card__header:hover{background:var(--gov-card-header-hover-bg, var(--gov-color-primary-100))}}.gov-card[collapsible=""][is-expanded=""] .gov-card__header,.gov-card[collapsible=""][is-expanded=true i] .gov-card__header,.gov-card[collapsible=""][is-expanded="1"] .gov-card__header,.gov-card[collapsible=true i][is-expanded=""] .gov-card__header,.gov-card[collapsible=true i][is-expanded=true i] .gov-card__header,.gov-card[collapsible=true i][is-expanded="1"] .gov-card__header,.gov-card[collapsible="1"][is-expanded=""] .gov-card__header,.gov-card[collapsible="1"][is-expanded=true i] .gov-card__header,.gov-card[collapsible="1"][is-expanded="1"] .gov-card__header{border-bottom:var(--gov-card-border-width, 0.0625rem solid var(--gov-color-secondary-500))}.gov-card[collapsible=""][is-expanded=""] .gov-card__arrow,.gov-card[collapsible=""][is-expanded=true i] .gov-card__arrow,.gov-card[collapsible=""][is-expanded="1"] .gov-card__arrow,.gov-card[collapsible=true i][is-expanded=""] .gov-card__arrow,.gov-card[collapsible=true i][is-expanded=true i] .gov-card__arrow,.gov-card[collapsible=true i][is-expanded="1"] .gov-card__arrow,.gov-card[collapsible="1"][is-expanded=""] .gov-card__arrow,.gov-card[collapsible="1"][is-expanded=true i] .gov-card__arrow,.gov-card[collapsible="1"][is-expanded="1"] .gov-card__arrow{transform:scale(-1)}@media (min-width: 30em){.gov-card[promotion=""] .gov-card__main,.gov-card[promotion=true i] .gov-card__main,.gov-card[promotion="1"] .gov-card__main{flex-direction:row;padding:2rem}.gov-card[promotion=""] .gov-card__icon,.gov-card[promotion=true i] .gov-card__icon,.gov-card[promotion="1"] .gov-card__icon{width:3rem;height:3rem}.gov-card[promotion=""] .gov-card__btns,.gov-card[promotion=true i] .gov-card__btns,.gov-card[promotion="1"] .gov-card__btns{flex-direction:column}}';const _=o(class o extends a{constructor(){super();this.__registerHost();this.govToggle=e(this,"gov-toggle",7);this.promotion=false;this.label=undefined;this.collapsible=false;this.expanded=false;this.headlineTag="h3";this.wcagTriggerLabel=undefined;this.wcagTriggerLabelledBy=undefined;this.isExpanded=undefined;this.h=t(this.host);this.headlineId=c("GovCardHeadline");this.contentId=c("GovCardContent")}validateHeadlineTag(o){const a=["h1","h2","h3","h4","h5","h6","span"];if(o){if(!a.includes(o)){s(`[${h.root}]: Tag ${o} is not allowed.`)}}}componentWillLoad(){this.isExpanded=this.label?this.expanded:true;this.validateHeadlineTag(this.headlineTag)}async componentDidRender(){if(l()){await g(500);await this.validateWcag()}}emmitChange(){this.govToggle.emit({open:this.isExpanded,element:this.host})}render(){const o=this.headlineTag;return r(i,{class:this.h.classes(h.root),"is-expanded":this.isExpanded,collapsible:d(this.collapsible),promotion:this.promotion},this.label&&this.collapsible?r("button",{id:this.headlineId,class:h.header,"aria-label":this.wcagTriggerLabel,"aria-labelledby":this.wcagTriggerLabelledBy,"aria-expanded":d(this.isExpanded),"aria-controls":this.contentId,onClick:this.onClickHandler.bind(this)},r(o,{class:h.title},this.label),r("gov-icon",{class:h.arrow,name:"chevron-down"})):null,this.label&&!this.collapsible?r("div",{class:h.header},r(o,{class:h.title},this.label)):null,r("div",{class:h.inner,id:this.contentId,"aria-hidden":this.collapsible?d(!this.isExpanded):undefined,hidden:this.collapsible?!this.isExpanded:undefined,"aria-labelledby":this.collapsible?this.headlineId:undefined},this.h.hasSlot("img")&&r("p",{class:h.img},r("slot",{name:"img"})),r("div",{class:h.main},this.h.hasSlot("icon")&&this.promotion&&r("div",{class:h.icon},r("slot",{name:"icon"})),r("div",{class:h.content},r("slot",null)),this.h.hasSlot("btn")&&this.promotion&&r("div",{class:h.btns},r("slot",{name:"btn"}))),this.h.hasSlot("footer")&&r("div",{class:h.footer},r("slot",{name:"footer"}))))}onClickHandler(o){o.stopPropagation();if(this.collapsible){this.isExpanded=!this.isExpanded;this.emmitChange()}}async open(){if(this.collapsible){this.isExpanded=true;this.emmitChange()}}async close(){if(this.collapsible){this.isExpanded=false;this.emmitChange()}}async validateWcag(){if(this.collapsible){n(this.wcagTriggerLabel,this.wcagTriggerLabelledBy,h.root)}}get host(){return this}static get watchers(){return{headlineTag:["validateHeadlineTag"]}}static get style(){return p}},[4,"gov-card",{promotion:[4],label:[1],collapsible:[4],expanded:[4],headlineTag:[1,"headline-tag"],wcagTriggerLabel:[1,"wcag-trigger-label"],wcagTriggerLabelledBy:[1,"wcag-trigger-labelled-by"],isExpanded:[32],open:[64],close:[64],validateWcag:[64]}]);function m(){if(typeof customElements==="undefined"){return}const o=["gov-card","gov-icon"];o.forEach((o=>{switch(o){case"gov-card":if(!customElements.get(o)){customElements.define(o,_)}break;case"gov-icon":if(!customElements.get(o)){v()}break}}))}m();const f=_;const b=m;export{f as GovCard,b as defineCustomElement};
144
2
  //# sourceMappingURL=gov-card.js.map
@@ -1 +1 @@
1
- {"file":"gov-card.js","mappings":"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","names":["GovCard"],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.scss?tag=gov-card","../../../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\tcontent: 'gov-card__content',\n\ticon: 'gov-card__icon',\n\tbtns: 'gov-card__btns',\n\tfooter: 'gov-card__footer',\n\tarrow: 'gov-card__arrow',\n}\n","/*\n * Alert\n */\n\n$class: \".gov-card\";\n\n#{$class} {\n\t@include base(flex);\n\tflex-direction: column;\n\tborder: $card-border;\n\tborder-radius: $border-radius;\n\tbackground: $card-bg;\n\toverflow: hidden;\n\t&__header {\n\t\tgap: rem-calc(28);\n\t\twidth: 100%;\n\t\tpadding: rem-calc(24);\n\t\tborder-bottom: $card-border;\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttext-transform: none;\n\t\ttransition: background-color $t ease-in-out;\n\t}\n\t&__arrow {\n\t\tflex: 0 0 auto;\n\t\twidth: rem-calc(16);\n\t\theight: rem-calc(16);\n\t\tcolor: $card-arrow-color;\n\t}\n\t&__title {\n\t\t@include general;\n\t\t@include typography($font-size-xl);\n\t\tcolor: $card-title-color;\n\t\tfont-weight: 700;\n\t}\n\t&__img {\n\t\twidth: 100%;\n\t\tmargin: 0;\n\t\tline-height: 1;\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n\t}\n\t&__inner {\n\t\tdisplay: flex;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\t\t@include parameter(\"aria-hidden\") {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\t&__main {\n\t\tdisplay: flex;\n\t\tgap: 16px 24px;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\t\tpadding: rem-calc(24);\n\t}\n\t&__icon {\n\t\tflex: 0 0 auto;\n\t\twidth: rem-calc(40);\n\t\theight: rem-calc(40);\n\t\tcolor: $card-icon-color;\n\t}\n\t&__btns {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tflex: 0 0 auto;\n\t\tflex-wrap: wrap;\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t}\n\t&__footer {\n\t\t@include reset-last-margin();\n\t\tpadding: rem-calc(16 24);\n\t\tbackground: $card-footer-bg;\n\t\tp {\n\t\t\t@include typography($font-size-s);\n\t\t}\n\t}\n\n\t// STATES\n\t@include parameter(\"is-expanded\") {\n\t\theight: 100%;\n\t}\n\n\t// VARIANTS\n\t@include parameter(\"collapsible\") {\n\t\t#{$class} {\n\t\t\t&__header {\n\t\t\t\t@include button-core();\n\t\t\t\t@include focus-outline($border-radius, rem-calc(-2));\n\t\t\t\tjustify-content: space-between;\n\t\t\t\ttext-align: left;\n\t\t\t\t@include hover() {\n\t\t\t\t\tbackground: $card-header-hover-bg;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// STATES\n\t\t@include parameter(\"is-expanded\") {\n\t\t\t#{$class} {\n\t\t\t\t&__header {\n\t\t\t\t\tborder-bottom: $card-border;\n\t\t\t\t}\n\t\t\t\t&__arrow {\n\t\t\t\t\ttransform: scale(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t// VARIANTS\n\t\t@include parameter(\"promotion\") {\n\t\t\t#{$class} {\n\t\t\t\t&__main {\n\t\t\t\t\tflex-direction: row;\n\t\t\t\t\tpadding: rem-calc(32);\n\t\t\t\t}\n\t\t\t\t&__icon {\n\t\t\t\t\twidth: rem-calc(48);\n\t\t\t\t\theight: rem-calc(48);\n\t\t\t\t}\n\t\t\t\t&__btns {\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch, State, Method, Event, EventEmitter } from '@stencil/core'\nimport { CardClass } from './constants'\nimport { govHost, booleanString } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { createID } from '../../utils/string.utils'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateWcagLabel } 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\tstyleUrl: 'gov-card.scss',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\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 * Item label of the card\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Defines wether 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 by default\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Used to change the HMTL tag in the card headline for correct semantic structure\n\t */\n\t@Prop({ attribute: 'headline-tag' }) readonly headlineTag: string = 'h3'\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-trigger-label' }) wcagTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({ attribute: 'wcag-trigger-labelled-by' }) wcagTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({ eventName: 'gov-toggle' }) govToggle: EventEmitter<GovCardChangeEvent>\n\t@State() isExpanded: boolean\n\n\t@Watch('headlineTag')\n\tvalidateHeadlineTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${CardClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.isExpanded = this.label ? this.expanded : true\n\t\tthis.validateHeadlineTag(this.headlineTag)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govToggle.emit({ open: this.isExpanded, element: this.host })\n\t}\n\n\trender() {\n\t\tconst HeadlineTag = this.headlineTag\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} is-expanded={this.isExpanded} collapsible={booleanString(this.collapsible)} promotion={this.promotion}>\n\t\t\t\t{this.label && 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.wcagTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.wcagTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\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<HeadlineTag class={CardClass.title}>{this.label}</HeadlineTag>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : null}\n\n\t\t\t\t{this.label && !this.collapsible ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<HeadlineTag class={CardClass.title}>{this.label}</HeadlineTag>\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.isExpanded) : undefined}\n\t\t\t\t\thidden={this.collapsible ? !this.isExpanded : 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<div class={CardClass.content}>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\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.isExpanded = !this.isExpanded\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Open the card if it is collapsible\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = true\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Close the card if it is collapsible\n\t */\n\t@Method()\n\tasync close(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = false\n\t\t\tthis.emmitChange()\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\tif (this.collapsible) {\n\t\t\tvalidateWcagLabel(this.wcagTriggerLabel, this.wcagTriggerLabelledBy, CardClass.root)\n\t\t}\n\t}\n}\n"],"version":3}
1
+ {"version":3,"names":["CardClass","root","header","title","inner","img","main","content","icon","btns","footer","arrow","govCardCss","GovCard","proxyCustomElement","H","constructor","this","h","govHost","host","headlineId","createID","contentId","validateHeadlineTag","newValue","validTags","includes","govErrorLog","componentWillLoad","isExpanded","label","expanded","headlineTag","componentDidRender","canValidateWcagOnRender","delay","validateWcag","emmitChange","govToggle","emit","open","element","render","HeadlineTag","Host","class","classes","collapsible","booleanString","promotion","id","wcagTriggerLabel","wcagTriggerLabelledBy","onClick","onClickHandler","bind","name","undefined","hidden","hasSlot","e","stopPropagation","close","validateWcagLabel"],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.scss?tag=gov-card","../../../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\tcontent: 'gov-card__content',\n\ticon: 'gov-card__icon',\n\tbtns: 'gov-card__btns',\n\tfooter: 'gov-card__footer',\n\tarrow: 'gov-card__arrow',\n}\n","/*\n * Alert\n */\n\n$class: \".gov-card\";\n\n#{$class} {\n\t@include base(flex);\n\tflex-direction: column;\n\tborder: $card-border;\n\tborder-radius: $border-radius;\n\tbackground: $card-bg;\n\toverflow: hidden;\n\t&__header {\n\t\tgap: rem-calc(28);\n\t\twidth: 100%;\n\t\tpadding: rem-calc(24);\n\t\tborder-bottom: $card-border;\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttext-transform: none;\n\t\ttransition: background-color $t ease-in-out;\n\t}\n\t&__arrow {\n\t\tflex: 0 0 auto;\n\t\twidth: rem-calc(16);\n\t\theight: rem-calc(16);\n\t\tcolor: $card-arrow-color;\n\t}\n\t&__title {\n\t\t@include general;\n\t\t@include typography($font-size-xl);\n\t\tcolor: $card-title-color;\n\t\tfont-weight: 700;\n\t}\n\t&__img {\n\t\twidth: 100%;\n\t\tmargin: 0;\n\t\tline-height: 1;\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n\t}\n\t&__inner {\n\t\tdisplay: flex;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\t\t@include parameter(\"aria-hidden\") {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\t&__main {\n\t\tdisplay: flex;\n\t\tgap: 16px 24px;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\t\tpadding: rem-calc(24);\n\t}\n\t&__icon {\n\t\tflex: 0 0 auto;\n\t\twidth: rem-calc(40);\n\t\theight: rem-calc(40);\n\t\tcolor: $card-icon-color;\n\t}\n\t&__btns {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tflex: 0 0 auto;\n\t\tflex-wrap: wrap;\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t}\n\t&__footer {\n\t\t@include reset-last-margin();\n\t\tpadding: rem-calc(16 24);\n\t\tbackground: $card-footer-bg;\n\t\tp {\n\t\t\t@include typography($font-size-s);\n\t\t}\n\t}\n\n\t// STATES\n\t@include parameter(\"is-expanded\") {\n\t\theight: 100%;\n\t}\n\n\t// VARIANTS\n\t@include parameter(\"collapsible\") {\n\t\t#{$class} {\n\t\t\t&__header {\n\t\t\t\t@include button-core();\n\t\t\t\t@include focus-outline($border-radius, rem-calc(-2));\n\t\t\t\tjustify-content: space-between;\n\t\t\t\ttext-align: left;\n\t\t\t\t@include hover() {\n\t\t\t\t\tbackground: $card-header-hover-bg;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// STATES\n\t\t@include parameter(\"is-expanded\") {\n\t\t\t#{$class} {\n\t\t\t\t&__header {\n\t\t\t\t\tborder-bottom: $card-border;\n\t\t\t\t}\n\t\t\t\t&__arrow {\n\t\t\t\t\ttransform: scale(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t// VARIANTS\n\t\t@include parameter(\"promotion\") {\n\t\t\t#{$class} {\n\t\t\t\t&__main {\n\t\t\t\t\tflex-direction: row;\n\t\t\t\t\tpadding: rem-calc(32);\n\t\t\t\t}\n\t\t\t\t&__icon {\n\t\t\t\t\twidth: rem-calc(48);\n\t\t\t\t\theight: rem-calc(48);\n\t\t\t\t}\n\t\t\t\t&__btns {\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch, State, Method, Event, EventEmitter } from '@stencil/core'\nimport { CardClass } from './constants'\nimport { govHost, booleanString } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { createID } from '../../utils/string.utils'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateWcagLabel } 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\tstyleUrl: 'gov-card.scss',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\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 * Item label of the card\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Defines wether 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 by default\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Used to change the HMTL tag in the card headline for correct semantic structure\n\t */\n\t@Prop({ attribute: 'headline-tag' }) readonly headlineTag: string = 'h3'\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-trigger-label' }) wcagTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({ attribute: 'wcag-trigger-labelled-by' }) wcagTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({ eventName: 'gov-toggle' }) govToggle: EventEmitter<GovCardChangeEvent>\n\t@State() isExpanded: boolean\n\n\t@Watch('headlineTag')\n\tvalidateHeadlineTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${CardClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.isExpanded = this.label ? this.expanded : true\n\t\tthis.validateHeadlineTag(this.headlineTag)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govToggle.emit({ open: this.isExpanded, element: this.host })\n\t}\n\n\trender() {\n\t\tconst HeadlineTag = this.headlineTag\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} is-expanded={this.isExpanded} collapsible={booleanString(this.collapsible)} promotion={this.promotion}>\n\t\t\t\t{this.label && 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.wcagTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.wcagTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\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<HeadlineTag class={CardClass.title}>{this.label}</HeadlineTag>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : null}\n\n\t\t\t\t{this.label && !this.collapsible ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<HeadlineTag class={CardClass.title}>{this.label}</HeadlineTag>\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.isExpanded) : undefined}\n\t\t\t\t\thidden={this.collapsible ? !this.isExpanded : 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<div class={CardClass.content}>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\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.isExpanded = !this.isExpanded\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Open the card if it is collapsible\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = true\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Close the card if it is collapsible\n\t */\n\t@Method()\n\tasync close(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = false\n\t\t\tthis.emmitChange()\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\tif (this.collapsible) {\n\t\t\tvalidateWcagLabel(this.wcagTriggerLabel, this.wcagTriggerLabelledBy, CardClass.root)\n\t\t}\n\t}\n}\n"],"mappings":"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"}
@@ -1,52 +1,2 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { g as govHost, s as slottedChildren } from './template.js';
3
-
4
- const ContainerClass = {
5
- root: 'gov-container',
6
- };
7
-
8
- const govContainerCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-container{display:block;width:100%;max-width:calc(var(--gov-container-width, 73.75rem) + 2 * var(--gov-container-padding, 2.5rem));margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile, 1.25rem);padding-left:var(--gov-container-padding-mobile, 1.25rem)}@media (min-width: 48em){.gov-container{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}";
9
-
10
- const GovContainer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
11
- constructor() {
12
- super();
13
- this.__registerHost();
14
- this.h = govHost(this.host);
15
- }
16
- render() {
17
- return (h(Host, { class: this.h.classes(ContainerClass.root) }, h("slot", null)));
18
- }
19
- /**
20
- * Returns slotted children
21
- *
22
- * @return {Promise<Node[]>}
23
- */
24
- async slottedChildren() {
25
- return Promise.resolve(slottedChildren(this.host));
26
- }
27
- get host() { return this; }
28
- static get style() { return govContainerCss; }
29
- }, [4, "gov-container", {
30
- "slottedChildren": [64]
31
- }]);
32
- function defineCustomElement$1() {
33
- if (typeof customElements === "undefined") {
34
- return;
35
- }
36
- const components = ["gov-container"];
37
- components.forEach(tagName => { switch (tagName) {
38
- case "gov-container":
39
- if (!customElements.get(tagName)) {
40
- customElements.define(tagName, GovContainer$1);
41
- }
42
- break;
43
- } });
44
- }
45
- defineCustomElement$1();
46
-
47
- const GovContainer = GovContainer$1;
48
- const defineCustomElement = defineCustomElement$1;
49
-
50
- export { GovContainer, defineCustomElement };
51
-
1
+ import{p as t,H as n,h as o,d as e}from"./p-80c0109d.js";import{g as i,s as r}from"./p-3f37ddb6.js";const a={root:"gov-container"};const s=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-container{display:block;width:100%;max-width:calc(var(--gov-container-width, 73.75rem) + 2 * var(--gov-container-padding, 2.5rem));margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile, 1.25rem);padding-left:var(--gov-container-padding-mobile, 1.25rem)}@media (min-width: 48em){.gov-container{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}";const c=t(class t extends n{constructor(){super();this.__registerHost();this.h=i(this.host)}render(){return o(e,{class:this.h.classes(a.root)},o("slot",null))}async slottedChildren(){return Promise.resolve(r(this.host))}get host(){return this}static get style(){return s}},[4,"gov-container",{slottedChildren:[64]}]);function d(){if(typeof customElements==="undefined"){return}const t=["gov-container"];t.forEach((t=>{switch(t){case"gov-container":if(!customElements.get(t)){customElements.define(t,c)}break}}))}d();const g=c;const m=d;export{g as GovContainer,m as defineCustomElement};
52
2
  //# sourceMappingURL=gov-container.js.map
@@ -1 +1 @@
1
- {"file":"gov-container.js","mappings":";;;AAAO,MAAM,cAAc,GAAG;EAC7B,IAAI,EAAE,eAAe;CACrB;;ACFD,MAAM,eAAe,GAAG,swBAAswB;;MCSjxBA,cAAY;EAGxB;;;IACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAID,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAC/C,eAAQ,CACF,EACP;GACD;;;;;;EAQD,MAAM,eAAe;IACpB,OAAO,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;GAClD;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovContainer"],"sources":["../../../packages/core/src/components/gov-container/constants.tsx","../../../packages/core/src/components/gov-container/gov-container.scss?tag=gov-container","../../../packages/core/src/components/gov-container/gov-container.tsx"],"sourcesContent":["export const ContainerClass = {\n\troot: 'gov-container',\n}\n","/*\n * Container\n */\n\n$class: \".gov-container\";\n\n#{$class} {\n\t@include container();\n}\n","import { Component, Element, h, Host, Method } from '@stencil/core'\nimport { govHost, slottedChildren } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { ContainerClass } from './constants'\n\n@Component({\n\ttag: 'gov-container',\n\tstyleUrl: 'gov-container.scss',\n})\nexport class GovContainer {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovContainerElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ContainerClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns slotted children\n\t *\n\t * @return {Promise<Node[]>}\n\t */\n\t@Method()\n\tasync slottedChildren(): Promise<Node[]> {\n\t\treturn Promise.resolve(slottedChildren(this.host))\n\t}\n}\n"],"version":3}
1
+ {"version":3,"names":["ContainerClass","root","govContainerCss","GovContainer","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","class","classes","slottedChildren","Promise","resolve"],"sources":["../../../packages/core/src/components/gov-container/constants.tsx","../../../packages/core/src/components/gov-container/gov-container.scss?tag=gov-container","../../../packages/core/src/components/gov-container/gov-container.tsx"],"sourcesContent":["export const ContainerClass = {\n\troot: 'gov-container',\n}\n","/*\n * Container\n */\n\n$class: \".gov-container\";\n\n#{$class} {\n\t@include container();\n}\n","import { Component, Element, h, Host, Method } from '@stencil/core'\nimport { govHost, slottedChildren } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { ContainerClass } from './constants'\n\n@Component({\n\ttag: 'gov-container',\n\tstyleUrl: 'gov-container.scss',\n})\nexport class GovContainer {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovContainerElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ContainerClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns slotted children\n\t *\n\t * @return {Promise<Node[]>}\n\t */\n\t@Method()\n\tasync slottedChildren(): Promise<Node[]> {\n\t\treturn Promise.resolve(slottedChildren(this.host))\n\t}\n}\n"],"mappings":"oGAAO,MAAMA,EAAiB,CAC7BC,KAAM,iBCDP,MAAMC,EAAkB,uwB,MCSXC,EAAYC,EAAA,MAAAD,UAAAE,EAGxB,WAAAC,G,8BACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQd,EAAeC,OAC1CO,EAAA,a,CAWH,qBAAMO,GACL,OAAOC,QAAQC,QAAQF,EAAgBR,KAAKG,M"}
@@ -1,58 +1,2 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { V as Variants } from './variants.js';
3
- import { g as govHost } from './template.js';
4
- import { v as validateProp } from './props.js';
5
- import { p as pick } from './utils.js';
6
-
7
- pick(Variants, ['PRIMARY', 'SECONDARY']);
8
- const ControlGroupClass = {
9
- root: 'gov-control-group',
10
- };
11
-
12
- const govControlGroupCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-control-group{position:relative;display:flex;width:100%;align-items:center;border-radius:var(--gov-control-group-border-radius, 0.25rem)}.gov-control-group .element *,.gov-control-group .gov-button .element{border:none !important;border-radius:0}.gov-control-group[variant=primary]{border:var(--gov-control-group-border-primary, 0.0625rem solid var(--gov-color-primary-600))}.gov-control-group[variant=primary]>*{border-right:var(--gov-control-group-border-primary, 0.0625rem solid var(--gov-color-primary-600))}.gov-control-group[variant=secondary]{border:var(--gov-control-group-border-secondary, 0.0625rem solid var(--gov-color-secondary-700))}.gov-control-group[variant=secondary]>*{border-right:var(--gov-control-group-border-secondary, 0.0625rem solid var(--gov-color-secondary-700))}.gov-control-group>*:last-child{border-right:none}.gov-control-group.no-border>*{border-right:none}";
13
-
14
- const GovControlGroup$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
15
- constructor() {
16
- super();
17
- this.__registerHost();
18
- this.variant = Variants.PRIMARY;
19
- this.noBorder = false;
20
- this.h = govHost(this.host);
21
- }
22
- validateVariant(newValue) {
23
- validateProp(Variants, newValue, ControlGroupClass.root);
24
- }
25
- render() {
26
- const noBorder = this.noBorder === true ? "no-border" : undefined;
27
- return (h(Host, { class: this.h.classes([ControlGroupClass.root, noBorder]), variant: this.variant }, h("slot", null)));
28
- }
29
- get host() { return this; }
30
- static get watchers() { return {
31
- "variant": ["validateVariant"]
32
- }; }
33
- static get style() { return govControlGroupCss; }
34
- }, [4, "gov-control-group", {
35
- "variant": [1],
36
- "noBorder": [4, "no-border"]
37
- }]);
38
- function defineCustomElement$1() {
39
- if (typeof customElements === "undefined") {
40
- return;
41
- }
42
- const components = ["gov-control-group"];
43
- components.forEach(tagName => { switch (tagName) {
44
- case "gov-control-group":
45
- if (!customElements.get(tagName)) {
46
- customElements.define(tagName, GovControlGroup$1);
47
- }
48
- break;
49
- } });
50
- }
51
- defineCustomElement$1();
52
-
53
- const GovControlGroup = GovControlGroup$1;
54
- const defineCustomElement = defineCustomElement$1;
55
-
56
- export { GovControlGroup, defineCustomElement };
57
-
1
+ import{p as o,H as r,h as t,d as e}from"./p-80c0109d.js";import{V as n}from"./p-ff7365ae.js";import{g as a}from"./p-3f37ddb6.js";import{v as s}from"./p-26acf964.js";import{p as i}from"./p-03990da5.js";i(n,["PRIMARY","SECONDARY"]);const c={root:"gov-control-group"};const g=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-control-group{position:relative;display:flex;width:100%;align-items:center;border-radius:var(--gov-control-group-border-radius, 0.25rem)}.gov-control-group .element *,.gov-control-group .gov-button .element{border:none !important;border-radius:0}.gov-control-group[variant=primary]{border:var(--gov-control-group-border-primary, 0.0625rem solid var(--gov-color-primary-600))}.gov-control-group[variant=primary]>*{border-right:var(--gov-control-group-border-primary, 0.0625rem solid var(--gov-color-primary-600))}.gov-control-group[variant=secondary]{border:var(--gov-control-group-border-secondary, 0.0625rem solid var(--gov-color-secondary-700))}.gov-control-group[variant=secondary]>*{border-right:var(--gov-control-group-border-secondary, 0.0625rem solid var(--gov-color-secondary-700))}.gov-control-group>*:last-child{border-right:none}.gov-control-group.no-border>*{border-right:none}";const p=o(class o extends r{constructor(){super();this.__registerHost();this.variant=n.PRIMARY;this.noBorder=false;this.h=a(this.host)}validateVariant(o){s(n,o,c.root)}render(){const o=this.noBorder===true?"no-border":undefined;return t(e,{class:this.h.classes([c.root,o]),variant:this.variant},t("slot",null))}get host(){return this}static get watchers(){return{variant:["validateVariant"]}}static get style(){return g}},[4,"gov-control-group",{variant:[1],noBorder:[4,"no-border"]}]);function d(){if(typeof customElements==="undefined"){return}const o=["gov-control-group"];o.forEach((o=>{switch(o){case"gov-control-group":if(!customElements.get(o)){customElements.define(o,p)}break}}))}d();const l=p;const v=d;export{l as GovControlGroup,v as defineCustomElement};
58
2
  //# sourceMappingURL=gov-control-group.js.map
@@ -1 +1 @@
1
- {"file":"gov-control-group.js","mappings":";;;;;;AAI6B,IAAI,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,EAAC;AAG9D,MAAM,iBAAiB,GAAG;EAChC,IAAI,EAAE,mBAAmB;CACzB;;ACTD,MAAM,kBAAkB,GAAG,stCAAstC;;MCWpuCA,iBAAe;EAG3B;;;mBAQ6C,QAAQ,CAAC,OAAO;oBAIE,KAAK;IAXnE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAaD,eAAe,CAAC,QAAgB;IAC/B,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAA;GACxD;EAED,MAAM;IACL,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,IAAI,GAAG,WAAW,GAAG,SAAS,CAAA;IACjE,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,EACzD,OAAO,EAAE,IAAI,CAAC,OAAO,IACrB,eAAQ,CACF,EACP;GACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovControlGroup"],"sources":["../../../packages/core/src/components/gov-control-group/constants.ts","../../../packages/core/src/components/gov-control-group/gov-control-group.scss?tag=gov-control-group","../../../packages/core/src/components/gov-control-group/gov-control-group.tsx"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\n\nexport const ControlGroups = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type ControlGroupType = `${ValueOf<typeof ControlGroups>}`\n\nexport const ControlGroupClass = {\n\troot: 'gov-control-group',\n}\n","/*\n * Control group\n */\n\n$class: \".gov-control-group\";\n\n#{$class} {\n\t@include base(flex);\n\talign-items: center;\n\tborder-radius: $control-group-border-radius;\n\t.element *,\n\t.gov-button .element {\n\t\tborder: none !important;\n\t\tborder-radius: 0;\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $control-group-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tborder: get(\"border\", $definitions);\n\t\t\t> * {\n\t\t\t\tborder-right: get(\"border\", $definitions);\n\t\t\t}\n\t\t}\n\t}\n\n\t> * {\n\t\t&:last-child {\n\t\t\tborder-right: none;\n\t\t}\n\t}\n\t&.no-border {\n\t\t> * {\n\t\t\tborder-right: none;\n\t\t}\n\t}\n}\n\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { Variants } from \"../../core/constants/variants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { ControlGroupClass, ControlGroupType } from \"./constants\"\n\n@Component({\n\ttag: \"gov-control-group\",\n\tstyleUrl: \"gov-control-group.scss\",\n})\nexport class GovControlGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovControlGroupElement\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly variant: ControlGroupType = Variants.PRIMARY\n\t/**\n\t * Specifies the display of the border between elements\n\t */\n\t@Prop({ attribute: \"no-border\" }) readonly noBorder: boolean = false\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(Variants, newValue, ControlGroupClass.root)\n\t}\n\n\trender() {\n\t\tconst noBorder = this.noBorder === true ? \"no-border\" : undefined\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([ControlGroupClass.root, noBorder])}\n\t\t\t\tvariant={this.variant}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"version":3,"names":["pick","Variants","ControlGroupClass","root","govControlGroupCss","GovControlGroup","proxyCustomElement","H","constructor","PRIMARY","this","h","govHost","host","validateVariant","newValue","validateProp","render","noBorder","undefined","Host","class","classes","variant"],"sources":["../../../packages/core/src/components/gov-control-group/constants.ts","../../../packages/core/src/components/gov-control-group/gov-control-group.scss?tag=gov-control-group","../../../packages/core/src/components/gov-control-group/gov-control-group.tsx"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\n\nexport const ControlGroups = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type ControlGroupType = `${ValueOf<typeof ControlGroups>}`\n\nexport const ControlGroupClass = {\n\troot: 'gov-control-group',\n}\n","/*\n * Control group\n */\n\n$class: \".gov-control-group\";\n\n#{$class} {\n\t@include base(flex);\n\talign-items: center;\n\tborder-radius: $control-group-border-radius;\n\t.element *,\n\t.gov-button .element {\n\t\tborder: none !important;\n\t\tborder-radius: 0;\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $control-group-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tborder: get(\"border\", $definitions);\n\t\t\t> * {\n\t\t\t\tborder-right: get(\"border\", $definitions);\n\t\t\t}\n\t\t}\n\t}\n\n\t> * {\n\t\t&:last-child {\n\t\t\tborder-right: none;\n\t\t}\n\t}\n\t&.no-border {\n\t\t> * {\n\t\t\tborder-right: none;\n\t\t}\n\t}\n}\n\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { Variants } from \"../../core/constants/variants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { ControlGroupClass, ControlGroupType } from \"./constants\"\n\n@Component({\n\ttag: \"gov-control-group\",\n\tstyleUrl: \"gov-control-group.scss\",\n})\nexport class GovControlGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovControlGroupElement\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly variant: ControlGroupType = Variants.PRIMARY\n\t/**\n\t * Specifies the display of the border between elements\n\t */\n\t@Prop({ attribute: \"no-border\" }) readonly noBorder: boolean = false\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(Variants, newValue, ControlGroupClass.root)\n\t}\n\n\trender() {\n\t\tconst noBorder = this.noBorder === true ? \"no-border\" : undefined\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([ControlGroupClass.root, noBorder])}\n\t\t\t\tvariant={this.variant}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"yMAI6BA,EAAKC,EAAU,CAAC,UAAW,cAGjD,MAAMC,EAAoB,CAChCC,KAAM,qBCRP,MAAMC,EAAqB,utC,MCWdC,EAAeC,EAAA,MAAAD,UAAAE,EAG3B,WAAAC,G,2CAQ6CP,EAASQ,Q,cAIS,MAX9DC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAcvB,eAAAC,CAAgBC,GACfC,EAAaf,EAAUc,EAAUb,EAAkBC,K,CAGpD,MAAAc,GACC,MAAMC,EAAWR,KAAKQ,WAAa,KAAO,YAAcC,UACxD,OACCR,EAACS,EAAI,CACJC,MAAOX,KAAKC,EAAEW,QAAQ,CAACpB,EAAkBC,KAAMe,IAC/CK,QAASb,KAAKa,SACdZ,EAAA,a"}