@gov-design-system-ce/components 4.1.0-rc04 → 4.1.0

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 (830) hide show
  1. package/dist/cjs/{colors-976f6dff.js → colors-f7c8eadd.js} +7 -9
  2. package/dist/cjs/colors-f7c8eadd.js.map +1 -0
  3. package/dist/cjs/{constants-e2807da6.js → constants-49f0efa6.js} +2 -2
  4. package/dist/cjs/{constants-e2807da6.js.map → constants-49f0efa6.js.map} +1 -1
  5. package/dist/cjs/{constants-43c0c51b.js → constants-4dfa23e3.js} +2 -2
  6. package/dist/cjs/{constants-43c0c51b.js.map → constants-4dfa23e3.js.map} +1 -1
  7. package/dist/cjs/{constants-441d1af4.js → constants-82929d01.js} +2 -2
  8. package/dist/cjs/{constants-441d1af4.js.map → constants-82929d01.js.map} +1 -1
  9. package/dist/cjs/{constants-bd0d66ac.js → constants-b9fece07.js} +2 -2
  10. package/dist/cjs/{constants-bd0d66ac.js.map → constants-b9fece07.js.map} +1 -1
  11. package/dist/cjs/{constants-5037cdc9.js → constants-c0886404.js} +2 -2
  12. package/dist/cjs/{constants-5037cdc9.js.map → constants-c0886404.js.map} +1 -1
  13. package/dist/cjs/{constants-861428a4.js → constants-f464dc4c.js} +2 -2
  14. package/dist/cjs/{constants-861428a4.js.map → constants-f464dc4c.js.map} +1 -1
  15. package/dist/cjs/core.cjs.js +1 -1
  16. package/dist/cjs/{form-c1aec07a.js → form-4e66039a.js} +4 -3
  17. package/dist/cjs/form-4e66039a.js.map +1 -0
  18. package/dist/cjs/gov-accordion-item.cjs.entry.js +4 -5
  19. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-accordion.cjs.entry.js +3 -4
  21. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-attachments_3.cjs.entry.js +11 -12
  23. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-backdrop.cjs.entry.js +4 -5
  25. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +5 -6
  27. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-button.cjs.entry.js +10 -11
  29. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-card.cjs.entry.js +5 -6
  31. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-chip.cjs.entry.js +11 -12
  33. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-container.cjs.entry.js +2 -10
  35. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-control-group.cjs.entry.js +4 -5
  37. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  39. package/dist/cjs/gov-dialog.cjs.entry.js +5 -6
  40. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  41. package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
  42. package/dist/cjs/gov-empty.cjs.entry.js +3 -4
  43. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  45. package/dist/cjs/gov-flex_4.cjs.entry.js +322 -0
  46. package/dist/cjs/gov-flex_4.cjs.entry.js.map +1 -0
  47. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +4 -6
  48. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +5 -6
  50. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-form-checkbox.cjs.entry.js +7 -8
  52. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-form-control.cjs.entry.js +5 -5
  54. package/dist/cjs/gov-form-file.cjs.entry.js +5 -6
  55. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-form-group.cjs.entry.js +4 -5
  57. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  58. package/dist/cjs/gov-form-input_2.cjs.entry.js +12 -11
  59. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  60. package/dist/cjs/gov-form-multi-select.cjs.entry.js +9 -10
  61. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  63. package/dist/cjs/gov-form-radio-group.cjs.entry.js +5 -6
  64. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-form-radio.cjs.entry.js +6 -7
  66. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  68. package/dist/cjs/gov-form-select.cjs.entry.js +8 -9
  69. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  70. package/dist/cjs/gov-form-switch.cjs.entry.js +7 -8
  71. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-grid-item.cjs.entry.js +2 -2
  73. package/dist/cjs/gov-grid.cjs.entry.js +2 -2
  74. package/dist/cjs/gov-infobar.cjs.entry.js +6 -7
  75. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  76. package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
  77. package/dist/cjs/gov-layout.cjs.entry.js +2 -2
  78. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  79. package/dist/cjs/gov-link.cjs.entry.js +51 -0
  80. package/dist/cjs/gov-link.cjs.entry.js.map +1 -0
  81. package/dist/cjs/gov-loading.cjs.entry.js +4 -5
  82. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  83. package/dist/cjs/gov-message.cjs.entry.js +5 -6
  84. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  85. package/dist/cjs/gov-pagination.cjs.entry.js +5 -6
  86. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  87. package/dist/cjs/gov-spacer.cjs.entry.js +4 -5
  88. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  89. package/dist/cjs/gov-stepper-item.cjs.entry.js +6 -7
  90. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  91. package/dist/cjs/gov-stepper.cjs.entry.js +6 -7
  92. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  93. package/dist/cjs/gov-tabs-item.cjs.entry.js +4 -4
  94. package/dist/cjs/gov-tabs.cjs.entry.js +6 -7
  95. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  96. package/dist/cjs/gov-tag.cjs.entry.js +10 -11
  97. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  98. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  99. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  100. package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
  101. package/dist/cjs/gov-toast.cjs.entry.js +6 -6
  102. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  103. package/dist/cjs/gov-tooltip-content.cjs.entry.js +4 -4
  104. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
  105. package/dist/cjs/gov-tooltip.cjs.entry.js +10 -11
  106. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  107. package/dist/cjs/gov-wizard-item.cjs.entry.js +8 -9
  108. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  109. package/dist/cjs/gov-wizard.cjs.entry.js +8 -9
  110. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  111. package/dist/cjs/{win-587f4614.js → gov.log-bfea3151.js} +16 -4
  112. package/dist/cjs/gov.log-bfea3151.js.map +1 -0
  113. package/dist/cjs/index-7ff4447c.js +6 -14
  114. package/dist/cjs/loader.cjs.js +1 -1
  115. package/dist/cjs/{props-b8a955b2.js → props-d189860c.js} +2 -2
  116. package/dist/cjs/{props-b8a955b2.js.map → props-d189860c.js.map} +1 -1
  117. package/dist/cjs/{template-b070338f.js → template-39939fd6.js} +1 -20
  118. package/dist/cjs/template-39939fd6.js.map +1 -0
  119. package/dist/cjs/{wcag-b8d80c7d.js → wcag-2927ff73.js} +4 -5
  120. package/dist/cjs/wcag-2927ff73.js.map +1 -0
  121. package/dist/collection/collection-manifest.json +1 -0
  122. package/dist/collection/components/gov-accordion/gov-accordion-item.js +1 -1
  123. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  124. package/dist/collection/components/gov-attachments/gov-attachments-item.css +6 -35
  125. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  126. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  127. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  128. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  129. package/dist/collection/components/gov-button/button/gov-button.js +9 -9
  130. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  131. package/dist/collection/components/gov-card/gov-card.js +1 -1
  132. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  133. package/dist/collection/components/gov-chip/gov-chip.js +16 -16
  134. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  135. package/dist/collection/components/gov-container/gov-container.js +2 -38
  136. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  137. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  138. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  139. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -20
  140. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  141. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
  142. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  143. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  144. package/dist/collection/components/gov-form/file/gov-form-file.js +1 -20
  145. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  146. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  147. package/dist/collection/components/gov-form/group/gov-form-group.css +7 -36
  148. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  149. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  150. package/dist/collection/components/gov-form/input/constants.js +1 -0
  151. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  152. package/dist/collection/components/gov-form/input/gov-form-input.js +5 -3
  153. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  154. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  155. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  156. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -4
  157. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  158. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  159. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  160. package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
  161. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  162. package/dist/collection/components/gov-form/switch/constants.js +1 -1
  163. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  164. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -2
  165. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  166. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  167. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  168. package/dist/collection/components/gov-icon/constants.js +8 -7
  169. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  170. package/dist/collection/components/gov-icon/gov-icon.js +38 -6
  171. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  172. package/dist/collection/components/gov-icon/list.js +37 -151
  173. package/dist/collection/components/gov-icon/list.js.map +1 -1
  174. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  175. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  176. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  177. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  178. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  179. package/dist/collection/components/gov-link/constants.js +7 -0
  180. package/dist/collection/components/gov-link/constants.js.map +1 -0
  181. package/dist/collection/components/gov-link/gov-link.js +129 -0
  182. package/dist/collection/components/gov-link/gov-link.js.map +1 -0
  183. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  184. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  185. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  186. package/dist/collection/components/gov-message/gov-message.js +1 -1
  187. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  188. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  189. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  190. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  191. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  192. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  193. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  194. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  195. package/dist/collection/components/gov-tag/gov-tag.js +9 -9
  196. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  197. package/dist/collection/components/gov-theme-switch/constants.js +9 -1
  198. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  199. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +134 -10
  200. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  201. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  202. package/dist/collection/components/gov-tile/gov-tile.js +7 -7
  203. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  204. package/dist/collection/components/gov-toast/constants.js +1 -0
  205. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  206. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  207. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  208. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  209. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  210. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  211. package/dist/collection/components/gov-wizard/gov-wizard-item.js +3 -3
  212. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  213. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  214. package/dist/collection/core/constants/colors.js +6 -8
  215. package/dist/collection/core/constants/colors.js.map +1 -1
  216. package/dist/collection/data/color-definitions.js +359 -172
  217. package/dist/collection/helpers/Dom/document.js +28 -0
  218. package/dist/collection/helpers/Dom/document.js.map +1 -0
  219. package/dist/collection/helpers/Dom/template.js +0 -18
  220. package/dist/collection/helpers/Dom/template.js.map +1 -1
  221. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  222. package/dist/collection/pages/Accordion.js +30 -30
  223. package/dist/collection/pages/Accordion.js.map +1 -1
  224. package/dist/collection/pages/Button.js +383 -383
  225. package/dist/collection/pages/Button.js.map +1 -1
  226. package/dist/collection/pages/Chip.js +53 -53
  227. package/dist/collection/pages/Chip.js.map +1 -1
  228. package/dist/collection/pages/ControlGroup.js +18 -18
  229. package/dist/collection/pages/ControlGroup.js.map +1 -1
  230. package/dist/collection/pages/Dialog.js +1 -1
  231. package/dist/collection/pages/Dialog.js.map +1 -1
  232. package/dist/collection/pages/Forms.js +47 -37
  233. package/dist/collection/pages/Forms.js.map +1 -1
  234. package/dist/collection/pages/Icon.js +10 -0
  235. package/dist/collection/pages/Icon.js.map +1 -1
  236. package/dist/collection/pages/Infobar.js +16 -16
  237. package/dist/collection/pages/Infobar.js.map +1 -1
  238. package/dist/collection/pages/Message.js +20 -20
  239. package/dist/collection/pages/Message.js.map +1 -1
  240. package/dist/collection/pages/Stepper.js +15 -15
  241. package/dist/collection/pages/Stepper.js.map +1 -1
  242. package/dist/collection/pages/Tag.js +23 -23
  243. package/dist/collection/pages/Tag.js.map +1 -1
  244. package/dist/collection/pages/ToastMessage.js +4 -4
  245. package/dist/collection/pages/ToastMessage.js.map +1 -1
  246. package/dist/collection/pages/ToastMessageCountdown.js +4 -4
  247. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
  248. package/dist/collection/pages/Tooltip.js +2 -2
  249. package/dist/collection/pages/Tooltip.js.map +1 -1
  250. package/dist/collection/pages/Typography.js +20 -0
  251. package/dist/collection/pages/Typography.js.map +1 -1
  252. package/dist/collection/pages/Wizard.js +1 -1
  253. package/dist/collection/pages/Wizard.js.map +1 -1
  254. package/dist/components/gov-accordion-item.js +1 -1
  255. package/dist/components/gov-accordion-item.js.map +1 -1
  256. package/dist/components/gov-accordion.js +1 -1
  257. package/dist/components/gov-attachments-item.js +1 -1
  258. package/dist/components/gov-attachments.js +1 -1
  259. package/dist/components/gov-backdrop.js +1 -1
  260. package/dist/components/gov-breadcrumbs.js +1 -1
  261. package/dist/components/gov-breadcrumbs.js.map +1 -1
  262. package/dist/components/gov-button.js +1 -1
  263. package/dist/components/gov-card.js +1 -1
  264. package/dist/components/gov-card.js.map +1 -1
  265. package/dist/components/gov-chip.js +1 -1
  266. package/dist/components/gov-container.js +1 -1
  267. package/dist/components/gov-container.js.map +1 -1
  268. package/dist/components/gov-control-group.js +1 -1
  269. package/dist/components/gov-cookiebar.js +1 -1
  270. package/dist/components/gov-dialog.js +1 -1
  271. package/dist/components/gov-dialog.js.map +1 -1
  272. package/dist/components/gov-dropdown.js +1 -1
  273. package/dist/components/gov-empty.js +1 -1
  274. package/dist/components/gov-error-code.js +1 -1
  275. package/dist/components/gov-flex.js +1 -1
  276. package/dist/components/gov-form-autocomplete.js +1 -1
  277. package/dist/components/gov-form-checkbox-group.js +1 -1
  278. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  279. package/dist/components/gov-form-checkbox.js +1 -1
  280. package/dist/components/gov-form-checkbox.js.map +1 -1
  281. package/dist/components/gov-form-control.js +1 -1
  282. package/dist/components/gov-form-file.js +1 -1
  283. package/dist/components/gov-form-file.js.map +1 -1
  284. package/dist/components/gov-form-group.js +1 -1
  285. package/dist/components/gov-form-input.js +1 -1
  286. package/dist/components/gov-form-label.js +1 -1
  287. package/dist/components/gov-form-label.js.map +1 -1
  288. package/dist/components/gov-form-message.js +1 -1
  289. package/dist/components/gov-form-multi-select.js +1 -1
  290. package/dist/components/gov-form-multi-select.js.map +1 -1
  291. package/dist/components/gov-form-password-power.js +1 -1
  292. package/dist/components/gov-form-password-power.js.map +1 -1
  293. package/dist/components/gov-form-radio-group.js +1 -1
  294. package/dist/components/gov-form-radio-group.js.map +1 -1
  295. package/dist/components/gov-form-radio.js +1 -1
  296. package/dist/components/gov-form-radio.js.map +1 -1
  297. package/dist/components/gov-form-search.js +1 -1
  298. package/dist/components/gov-form-select.js +1 -1
  299. package/dist/components/gov-form-switch.js +1 -1
  300. package/dist/components/gov-form-switch.js.map +1 -1
  301. package/dist/components/gov-grid-item.js +1 -1
  302. package/dist/components/gov-grid.js +1 -1
  303. package/dist/components/gov-icon.js +1 -1
  304. package/dist/components/gov-infobar.js +1 -1
  305. package/dist/components/gov-infobar.js.map +1 -1
  306. package/dist/components/gov-layout-column.js +1 -1
  307. package/dist/components/gov-layout.js +1 -1
  308. package/dist/components/gov-lifecycle.js +1 -1
  309. package/dist/components/gov-link.d.ts +11 -0
  310. package/dist/components/gov-link.js +2 -0
  311. package/dist/components/gov-link.js.map +1 -0
  312. package/dist/components/gov-loading.js +1 -1
  313. package/dist/components/gov-loading.js.map +1 -1
  314. package/dist/components/gov-message.js +1 -1
  315. package/dist/components/gov-pagination.js +1 -1
  316. package/dist/components/gov-pagination.js.map +1 -1
  317. package/dist/components/gov-skeleton.js +1 -1
  318. package/dist/components/gov-spacer.js +1 -1
  319. package/dist/components/gov-stepper-item.js +1 -1
  320. package/dist/components/gov-stepper.js +1 -1
  321. package/dist/components/gov-tabs-item.js +1 -1
  322. package/dist/components/gov-tabs.js +1 -1
  323. package/dist/components/gov-tabs.js.map +1 -1
  324. package/dist/components/gov-tag.js +1 -1
  325. package/dist/components/gov-tag.js.map +1 -1
  326. package/dist/components/gov-theme-switch.js +1 -1
  327. package/dist/components/gov-theme-switch.js.map +1 -1
  328. package/dist/components/gov-tile.js +1 -1
  329. package/dist/components/gov-tile.js.map +1 -1
  330. package/dist/components/gov-tiles.js +1 -1
  331. package/dist/components/gov-toast.js +1 -1
  332. package/dist/components/gov-toast.js.map +1 -1
  333. package/dist/components/gov-tooltip-content.js +1 -1
  334. package/dist/components/gov-tooltip-content.js.map +1 -1
  335. package/dist/components/gov-tooltip.js +1 -1
  336. package/dist/components/gov-tooltip.js.map +1 -1
  337. package/dist/components/gov-wizard-item.js +1 -1
  338. package/dist/components/gov-wizard-item.js.map +1 -1
  339. package/dist/components/gov-wizard.js +1 -1
  340. package/dist/components/p-20c2203a.js +2 -0
  341. package/dist/components/p-20c2203a.js.map +1 -0
  342. package/dist/components/p-227eb30d.js +2 -0
  343. package/dist/components/{p-dcee21ca.js.map → p-227eb30d.js.map} +1 -1
  344. package/dist/components/p-2b87c27b.js +2 -0
  345. package/dist/components/{p-3b807239.js.map → p-2b87c27b.js.map} +1 -1
  346. package/dist/components/p-31a99bfc.js +2 -0
  347. package/dist/components/{p-bd22e21d.js → p-4149f195.js} +2 -2
  348. package/dist/components/p-44a8a668.js +2 -0
  349. package/dist/components/p-45097b4c.js +2 -0
  350. package/dist/components/p-45097b4c.js.map +1 -0
  351. package/dist/components/{p-1f3bb41d.js → p-5952a5d0.js} +2 -2
  352. package/dist/components/p-5aad3497.js +2 -0
  353. package/dist/components/p-5aad3497.js.map +1 -0
  354. package/dist/components/p-68a1aaec.js +2 -0
  355. package/dist/components/p-68a1aaec.js.map +1 -0
  356. package/dist/components/p-76d604c6.js +2 -0
  357. package/dist/components/p-7d4f2214.js +2 -0
  358. package/dist/components/{p-6ea84137.js.map → p-7d4f2214.js.map} +1 -1
  359. package/dist/components/p-7f3becc5.js +2 -0
  360. package/dist/components/p-859a4f0d.js +2 -0
  361. package/dist/components/{p-820b66c0.js.map → p-859a4f0d.js.map} +1 -1
  362. package/dist/components/{p-7f8a24a7.js → p-860520b0.js} +2 -2
  363. package/dist/components/p-929ebfb5.js +2 -0
  364. package/dist/components/p-929ebfb5.js.map +1 -0
  365. package/dist/components/p-9908b9f0.js +2 -0
  366. package/dist/components/p-9908b9f0.js.map +1 -0
  367. package/dist/components/{p-19c681a3.js → p-a2435993.js} +2 -2
  368. package/dist/components/{p-59737af9.js → p-a521c59a.js} +2 -2
  369. package/dist/components/{p-0c93dd39.js → p-c61a5830.js} +2 -2
  370. package/dist/components/p-dc952cc2.js +2 -0
  371. package/dist/components/p-dc952cc2.js.map +1 -0
  372. package/dist/components/{p-23b7e680.js → p-dfb5794a.js} +2 -2
  373. package/dist/components/p-ea7fdd2e.js +2 -0
  374. package/dist/components/p-ea7fdd2e.js.map +1 -0
  375. package/dist/components/p-f44899e1.js +2 -0
  376. package/dist/components/p-f44899e1.js.map +1 -0
  377. package/dist/core/core.css +7985 -7198
  378. package/dist/core/core.esm.js +1 -1
  379. package/dist/core/core.esm.js.map +1 -1
  380. package/dist/core/p-00d153bf.entry.js +2 -0
  381. package/dist/core/p-019e967c.entry.js +2 -0
  382. package/dist/core/{p-83aa4327.entry.js.map → p-019e967c.entry.js.map} +1 -1
  383. package/dist/core/p-0be19b89.entry.js +2 -0
  384. package/dist/core/p-1abdcb62.entry.js +2 -0
  385. package/dist/core/p-1abdcb62.entry.js.map +1 -0
  386. package/dist/core/p-1ac9544f.entry.js +2 -0
  387. package/dist/core/{p-f963bb2f.entry.js.map → p-1ac9544f.entry.js.map} +1 -1
  388. package/dist/core/p-1b3c808d.entry.js +2 -0
  389. package/dist/core/p-1b3c808d.entry.js.map +1 -0
  390. package/dist/core/p-20c2203a.js +2 -0
  391. package/dist/core/p-20c2203a.js.map +1 -0
  392. package/dist/core/p-22fa411d.entry.js +2 -0
  393. package/dist/core/p-2c290fe5.entry.js +2 -0
  394. package/dist/core/p-2c290fe5.entry.js.map +1 -0
  395. package/dist/core/p-2c59483f.entry.js +2 -0
  396. package/dist/core/p-2c59483f.entry.js.map +1 -0
  397. package/dist/core/p-30eaeeec.entry.js +2 -0
  398. package/dist/core/p-3bbb77a0.js +2 -0
  399. package/dist/core/p-3fc3c26b.entry.js +2 -0
  400. package/dist/core/{p-212759be.entry.js.map → p-3fc3c26b.entry.js.map} +1 -1
  401. package/dist/core/p-40d764ac.entry.js +2 -0
  402. package/dist/core/{p-0d2c4d31.entry.js.map → p-40d764ac.entry.js.map} +1 -1
  403. package/dist/core/p-410ec0dd.entry.js +2 -0
  404. package/dist/core/{p-10f9bf55.entry.js.map → p-410ec0dd.entry.js.map} +1 -1
  405. package/dist/core/p-439b66a5.entry.js +2 -0
  406. package/dist/core/{p-92e13f9d.entry.js.map → p-439b66a5.entry.js.map} +1 -1
  407. package/dist/core/p-443a813a.entry.js +2 -0
  408. package/dist/core/{p-eebf7ad8.entry.js.map → p-443a813a.entry.js.map} +1 -1
  409. package/dist/core/p-48c93ac0.entry.js +2 -0
  410. package/dist/core/p-48c93ac0.entry.js.map +1 -0
  411. package/dist/core/p-52ca31be.entry.js +2 -0
  412. package/dist/core/{p-378e0723.entry.js.map → p-52ca31be.entry.js.map} +1 -1
  413. package/dist/core/p-535316b4.entry.js +2 -0
  414. package/dist/core/{p-b822b9ff.entry.js → p-5396935e.entry.js} +2 -2
  415. package/dist/core/{p-42d9924c.js → p-56efd4a2.js} +2 -2
  416. package/dist/core/p-5aad3497.js +2 -0
  417. package/dist/core/p-5aad3497.js.map +1 -0
  418. package/dist/core/p-5b2131c1.entry.js +2 -0
  419. package/dist/core/p-5ed63e9c.entry.js +2 -0
  420. package/dist/core/{p-1fdc2457.entry.js.map → p-5ed63e9c.entry.js.map} +1 -1
  421. package/dist/core/{p-60658ae9.js → p-5f1000da.js} +2 -2
  422. package/dist/core/p-6454af62.entry.js +2 -0
  423. package/dist/core/{p-56f9e026.entry.js.map → p-6454af62.entry.js.map} +1 -1
  424. package/dist/core/p-74458da3.entry.js +2 -0
  425. package/dist/core/p-74458da3.entry.js.map +1 -0
  426. package/dist/core/p-76d604c6.js +2 -0
  427. package/dist/core/{p-a21dc94f.js.map → p-76d604c6.js.map} +1 -1
  428. package/dist/core/p-773f71f6.entry.js +2 -0
  429. package/dist/core/{p-67200095.entry.js.map → p-773f71f6.entry.js.map} +1 -1
  430. package/dist/core/p-783a6b5b.entry.js +2 -0
  431. package/dist/core/{p-0a24806a.entry.js.map → p-783a6b5b.entry.js.map} +1 -1
  432. package/dist/core/p-7b7e502b.entry.js +2 -0
  433. package/dist/core/p-7ba4daf4.js +2 -0
  434. package/dist/core/p-7bf52eb9.entry.js +2 -0
  435. package/dist/core/p-7bf52eb9.entry.js.map +1 -0
  436. package/dist/core/p-7d6073aa.entry.js +2 -0
  437. package/dist/core/{p-fb0df3a5.entry.js.map → p-7d6073aa.entry.js.map} +1 -1
  438. package/dist/core/p-7f3becc5.js +2 -0
  439. package/dist/core/{p-e9a6cd71.js → p-860520b0.js} +2 -2
  440. package/dist/core/p-8701c28e.entry.js +2 -0
  441. package/dist/core/p-8701c28e.entry.js.map +1 -0
  442. package/dist/core/p-951823cb.entry.js +2 -0
  443. package/dist/core/{p-75ea368b.entry.js.map → p-951823cb.entry.js.map} +1 -1
  444. package/dist/core/p-9da91318.entry.js +2 -0
  445. package/dist/core/{p-1f1895c0.entry.js.map → p-9da91318.entry.js.map} +1 -1
  446. package/dist/core/p-a218e2eb.entry.js +2 -0
  447. package/dist/core/{p-d3963396.entry.js.map → p-a218e2eb.entry.js.map} +1 -1
  448. package/dist/core/{p-169b67af.js → p-a2435993.js} +2 -2
  449. package/dist/core/p-a521c59a.js +2 -0
  450. package/dist/core/p-b1efeb41.entry.js +2 -0
  451. package/dist/core/p-b1efeb41.entry.js.map +1 -0
  452. package/dist/core/p-b4af0bec.entry.js +2 -0
  453. package/dist/core/p-b4af0bec.entry.js.map +1 -0
  454. package/dist/core/p-bc966c46.entry.js +2 -0
  455. package/dist/core/p-bdc51179.entry.js +2 -0
  456. package/dist/core/p-bdc51179.entry.js.map +1 -0
  457. package/dist/core/p-c20fe3da.entry.js +2 -0
  458. package/dist/core/{p-8f10919c.entry.js.map → p-c20fe3da.entry.js.map} +1 -1
  459. package/dist/core/p-c4ffcc37.entry.js +2 -0
  460. package/dist/core/p-c4ffcc37.entry.js.map +1 -0
  461. package/dist/core/p-c52afdfc.js +2 -0
  462. package/dist/core/{p-842cb87f.js.map → p-c52afdfc.js.map} +1 -1
  463. package/dist/core/{p-c990d746.js → p-c61a5830.js} +2 -2
  464. package/dist/core/p-cb557873.entry.js +2 -0
  465. package/dist/core/{p-3844a27d.entry.js.map → p-cb557873.entry.js.map} +1 -1
  466. package/dist/core/p-d24710ff.entry.js +2 -0
  467. package/dist/core/p-d24710ff.entry.js.map +1 -0
  468. package/dist/core/p-d65cef62.entry.js +2 -0
  469. package/dist/core/{p-4cb4de7b.entry.js.map → p-d65cef62.entry.js.map} +1 -1
  470. package/dist/core/p-da1db6fd.js +2 -0
  471. package/dist/core/p-da1db6fd.js.map +1 -0
  472. package/dist/core/p-db22d51c.entry.js +2 -0
  473. package/dist/core/{p-f1c8a96b.entry.js.map → p-db22d51c.entry.js.map} +1 -1
  474. package/dist/core/p-dec3f948.entry.js +2 -0
  475. package/dist/core/{p-7b48b1b8.entry.js.map → p-dec3f948.entry.js.map} +1 -1
  476. package/dist/core/{p-45a30859.js → p-e0e2e9c1.js} +2 -2
  477. package/dist/core/p-e2517a72.entry.js +2 -0
  478. package/dist/core/{p-57b0e670.entry.js.map → p-e2517a72.entry.js.map} +1 -1
  479. package/dist/core/p-e44a0fee.js +2 -0
  480. package/dist/core/{p-58dc3ec3.entry.js → p-e834ee73.entry.js} +2 -2
  481. package/dist/core/p-ea7fdd2e.js +2 -0
  482. package/dist/core/p-ea7fdd2e.js.map +1 -0
  483. package/dist/core/p-ed1131cb.entry.js +2 -0
  484. package/dist/core/{p-c5b5fd69.entry.js.map → p-ed1131cb.entry.js.map} +1 -1
  485. package/dist/core/p-f1056a83.entry.js +2 -0
  486. package/dist/core/{p-32bba4e7.entry.js.map → p-f1056a83.entry.js.map} +1 -1
  487. package/dist/core/p-f1fa5e1e.entry.js +2 -0
  488. package/dist/core/{p-1600c1fb.entry.js.map → p-f1fa5e1e.entry.js.map} +1 -1
  489. package/dist/core/p-f4bcf817.entry.js +2 -0
  490. package/dist/core/p-f4bcf817.entry.js.map +1 -0
  491. package/dist/core/p-f6709826.entry.js +2 -0
  492. package/dist/core/p-f6709826.entry.js.map +1 -0
  493. package/dist/core/{p-5ad3097c.entry.js → p-f7a4da9d.entry.js} +2 -2
  494. package/dist/core/p-fca60e04.entry.js +2 -0
  495. package/dist/core/{p-8fe36a5b.entry.js.map → p-fca60e04.entry.js.map} +1 -1
  496. package/dist/core/p-fe6fed11.entry.js +2 -0
  497. package/dist/core/p-fe6fed11.entry.js.map +1 -0
  498. package/dist/esm/{colors-02c1ea96.js → colors-4cf64720.js} +7 -9
  499. package/dist/esm/colors-4cf64720.js.map +1 -0
  500. package/dist/esm/{constants-6d727976.js → constants-085f9943.js} +2 -2
  501. package/dist/esm/{constants-6d727976.js.map → constants-085f9943.js.map} +1 -1
  502. package/dist/esm/{constants-990365f1.js → constants-372455eb.js} +3 -3
  503. package/dist/esm/{constants-990365f1.js.map → constants-372455eb.js.map} +1 -1
  504. package/dist/esm/{constants-d6418889.js → constants-3ab65c42.js} +2 -2
  505. package/dist/esm/{constants-d6418889.js.map → constants-3ab65c42.js.map} +1 -1
  506. package/dist/esm/{constants-48177684.js → constants-3b914c35.js} +3 -3
  507. package/dist/esm/{constants-48177684.js.map → constants-3b914c35.js.map} +1 -1
  508. package/dist/esm/{constants-d42abf99.js → constants-43f10674.js} +2 -2
  509. package/dist/esm/{constants-d42abf99.js.map → constants-43f10674.js.map} +1 -1
  510. package/dist/esm/{constants-501eb756.js → constants-4da2b3c0.js} +2 -2
  511. package/dist/esm/{constants-501eb756.js.map → constants-4da2b3c0.js.map} +1 -1
  512. package/dist/esm/{constants-c716fa44.js → constants-51f51588.js} +3 -3
  513. package/dist/esm/{constants-c716fa44.js.map → constants-51f51588.js.map} +1 -1
  514. package/dist/esm/{constants-f4e4ede6.js → constants-8429b68f.js} +3 -3
  515. package/dist/esm/{constants-f4e4ede6.js.map → constants-8429b68f.js.map} +1 -1
  516. package/dist/esm/{constants-47e20524.js → constants-9177ea52.js} +3 -3
  517. package/dist/esm/{constants-47e20524.js.map → constants-9177ea52.js.map} +1 -1
  518. package/dist/esm/{constants-7307438d.js → constants-bc210662.js} +3 -3
  519. package/dist/esm/{constants-7307438d.js.map → constants-bc210662.js.map} +1 -1
  520. package/dist/esm/core.js +1 -1
  521. package/dist/esm/{form-472e078d.js → form-713f26fd.js} +7 -6
  522. package/dist/esm/form-713f26fd.js.map +1 -0
  523. package/dist/esm/gov-accordion-item.entry.js +6 -7
  524. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  525. package/dist/esm/gov-accordion.entry.js +5 -6
  526. package/dist/esm/gov-accordion.entry.js.map +1 -1
  527. package/dist/esm/gov-attachments_3.entry.js +10 -11
  528. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  529. package/dist/esm/gov-backdrop.entry.js +4 -5
  530. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  531. package/dist/esm/gov-breadcrumbs.entry.js +5 -6
  532. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  533. package/dist/esm/gov-button.entry.js +10 -11
  534. package/dist/esm/gov-button.entry.js.map +1 -1
  535. package/dist/esm/gov-card.entry.js +5 -6
  536. package/dist/esm/gov-card.entry.js.map +1 -1
  537. package/dist/esm/gov-chip.entry.js +12 -13
  538. package/dist/esm/gov-chip.entry.js.map +1 -1
  539. package/dist/esm/gov-container.entry.js +2 -10
  540. package/dist/esm/gov-container.entry.js.map +1 -1
  541. package/dist/esm/gov-control-group.entry.js +5 -6
  542. package/dist/esm/gov-control-group.entry.js.map +1 -1
  543. package/dist/esm/gov-cookiebar.entry.js +1 -1
  544. package/dist/esm/gov-dialog.entry.js +5 -6
  545. package/dist/esm/gov-dialog.entry.js.map +1 -1
  546. package/dist/esm/gov-dropdown.entry.js +4 -4
  547. package/dist/esm/gov-empty.entry.js +5 -6
  548. package/dist/esm/gov-empty.entry.js.map +1 -1
  549. package/dist/esm/gov-error-code.entry.js +1 -1
  550. package/dist/esm/gov-flex_4.entry.js +315 -0
  551. package/dist/esm/gov-flex_4.entry.js.map +1 -0
  552. package/dist/esm/gov-form-autocomplete.entry.js +6 -8
  553. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  554. package/dist/esm/gov-form-checkbox-group.entry.js +7 -8
  555. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  556. package/dist/esm/gov-form-checkbox.entry.js +10 -11
  557. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  558. package/dist/esm/gov-form-control.entry.js +8 -8
  559. package/dist/esm/gov-form-file.entry.js +8 -9
  560. package/dist/esm/gov-form-file.entry.js.map +1 -1
  561. package/dist/esm/gov-form-group.entry.js +6 -7
  562. package/dist/esm/gov-form-group.entry.js.map +1 -1
  563. package/dist/esm/gov-form-input_2.entry.js +15 -14
  564. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  565. package/dist/esm/gov-form-multi-select.entry.js +12 -13
  566. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  567. package/dist/esm/gov-form-password-power.entry.js +1 -1
  568. package/dist/esm/gov-form-radio-group.entry.js +7 -8
  569. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  570. package/dist/esm/gov-form-radio.entry.js +9 -10
  571. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  572. package/dist/esm/gov-form-search.entry.js +3 -3
  573. package/dist/esm/gov-form-select.entry.js +11 -12
  574. package/dist/esm/gov-form-select.entry.js.map +1 -1
  575. package/dist/esm/gov-form-switch.entry.js +10 -11
  576. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  577. package/dist/esm/gov-grid-item.entry.js +2 -2
  578. package/dist/esm/gov-grid.entry.js +2 -2
  579. package/dist/esm/gov-infobar.entry.js +7 -8
  580. package/dist/esm/gov-infobar.entry.js.map +1 -1
  581. package/dist/esm/gov-layout-column.entry.js +2 -2
  582. package/dist/esm/gov-layout.entry.js +2 -2
  583. package/dist/esm/gov-lifecycle.entry.js +1 -1
  584. package/dist/esm/gov-link.entry.js +47 -0
  585. package/dist/esm/gov-link.entry.js.map +1 -0
  586. package/dist/esm/gov-loading.entry.js +5 -6
  587. package/dist/esm/gov-loading.entry.js.map +1 -1
  588. package/dist/esm/gov-message.entry.js +6 -7
  589. package/dist/esm/gov-message.entry.js.map +1 -1
  590. package/dist/esm/gov-pagination.entry.js +6 -7
  591. package/dist/esm/gov-pagination.entry.js.map +1 -1
  592. package/dist/esm/gov-spacer.entry.js +5 -6
  593. package/dist/esm/gov-spacer.entry.js.map +1 -1
  594. package/dist/esm/gov-stepper-item.entry.js +7 -8
  595. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  596. package/dist/esm/gov-stepper.entry.js +7 -8
  597. package/dist/esm/gov-stepper.entry.js.map +1 -1
  598. package/dist/esm/gov-tabs-item.entry.js +5 -5
  599. package/dist/esm/gov-tabs.entry.js +7 -8
  600. package/dist/esm/gov-tabs.entry.js.map +1 -1
  601. package/dist/esm/gov-tag.entry.js +11 -12
  602. package/dist/esm/gov-tag.entry.js.map +1 -1
  603. package/dist/esm/gov-tile.entry.js +3 -3
  604. package/dist/esm/gov-tile.entry.js.map +1 -1
  605. package/dist/esm/gov-tiles.entry.js +2 -2
  606. package/dist/esm/gov-toast.entry.js +7 -7
  607. package/dist/esm/gov-toast.entry.js.map +1 -1
  608. package/dist/esm/gov-tooltip-content.entry.js +5 -5
  609. package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
  610. package/dist/esm/gov-tooltip.entry.js +8 -9
  611. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  612. package/dist/esm/gov-wizard-item.entry.js +9 -10
  613. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  614. package/dist/esm/gov-wizard.entry.js +8 -9
  615. package/dist/esm/gov-wizard.entry.js.map +1 -1
  616. package/dist/esm/{win-cec370ad.js → gov.log-066c3139.js} +17 -3
  617. package/dist/esm/gov.log-066c3139.js.map +1 -0
  618. package/dist/esm/index-c263e031.js +6 -14
  619. package/dist/esm/loader.js +1 -1
  620. package/dist/esm/{props-c82e1abf.js → props-fb6587c3.js} +2 -2
  621. package/dist/esm/{props-c82e1abf.js.map → props-fb6587c3.js.map} +1 -1
  622. package/dist/esm/{template-3d84d705.js → template-7ecee4d1.js} +2 -20
  623. package/dist/esm/template-7ecee4d1.js.map +1 -0
  624. package/dist/esm/{utils-2b4ef320.js → utils-e10e994d.js} +2 -2
  625. package/dist/esm/{utils-2b4ef320.js.map → utils-e10e994d.js.map} +1 -1
  626. package/dist/esm/{wcag-d7c6c252.js → wcag-de9a3dc6.js} +2 -3
  627. package/dist/esm/wcag-de9a3dc6.js.map +1 -0
  628. package/dist/hydrate/index.js +224 -138
  629. package/dist/hydrate/index.mjs +224 -138
  630. package/dist/stencil.config.js +6 -4
  631. package/dist/stencil.config.js.map +1 -1
  632. package/dist/types/components/gov-button/button/gov-button.d.ts +1 -1
  633. package/dist/types/components/gov-chip/gov-chip.d.ts +3 -3
  634. package/dist/types/components/gov-container/gov-container.d.ts +0 -6
  635. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -4
  636. package/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -4
  637. package/dist/types/components/gov-form/input/constants.d.ts +1 -0
  638. package/dist/types/components/gov-form/switch/constants.d.ts +1 -1
  639. package/dist/types/components/gov-icon/constants.d.ts +4 -1
  640. package/dist/types/components/gov-icon/gov-icon.d.ts +8 -2
  641. package/dist/types/components/gov-icon/list.d.ts +1 -1
  642. package/dist/types/components/gov-link/constants.d.ts +7 -0
  643. package/dist/types/components/gov-link/gov-link.d.ts +30 -0
  644. package/dist/types/components/gov-tag/gov-tag.d.ts +2 -2
  645. package/dist/types/components/gov-theme-switch/constants.d.ts +9 -0
  646. package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +26 -2
  647. package/dist/types/components/gov-tile/gov-tile.d.ts +1 -1
  648. package/dist/types/components/gov-toast/constants.d.ts +1 -0
  649. package/dist/types/components.d.ts +117 -37
  650. package/dist/types/core/constants/colors.d.ts +6 -8
  651. package/dist/types/helpers/Dom/document.d.ts +3 -0
  652. package/dist/types/helpers/Dom/template.d.ts +0 -1
  653. package/dist/types/helpers/Dom/template.types.d.ts +0 -1
  654. package/package.json +3 -3
  655. package/dist/cjs/colors-976f6dff.js.map +0 -1
  656. package/dist/cjs/form-c1aec07a.js.map +0 -1
  657. package/dist/cjs/gov-flex.cjs.entry.js +0 -31
  658. package/dist/cjs/gov-flex.cjs.entry.js.map +0 -1
  659. package/dist/cjs/gov-form-label.cjs.entry.js +0 -27
  660. package/dist/cjs/gov-form-label.cjs.entry.js.map +0 -1
  661. package/dist/cjs/gov-icon.cjs.entry.js +0 -161
  662. package/dist/cjs/gov-icon.cjs.entry.js.map +0 -1
  663. package/dist/cjs/gov-theme-switch.cjs.entry.js +0 -73
  664. package/dist/cjs/gov-theme-switch.cjs.entry.js.map +0 -1
  665. package/dist/cjs/gov.log-1e8bab6e.js +0 -21
  666. package/dist/cjs/gov.log-1e8bab6e.js.map +0 -1
  667. package/dist/cjs/template-b070338f.js.map +0 -1
  668. package/dist/cjs/wcag-b8d80c7d.js.map +0 -1
  669. package/dist/cjs/win-587f4614.js.map +0 -1
  670. package/dist/components/p-0075138f.js +0 -2
  671. package/dist/components/p-0075138f.js.map +0 -1
  672. package/dist/components/p-02da2aee.js +0 -2
  673. package/dist/components/p-02da2aee.js.map +0 -1
  674. package/dist/components/p-08621bdf.js +0 -2
  675. package/dist/components/p-1a0b3b4f.js +0 -2
  676. package/dist/components/p-1a0b3b4f.js.map +0 -1
  677. package/dist/components/p-1d3019f3.js +0 -2
  678. package/dist/components/p-255d0471.js +0 -2
  679. package/dist/components/p-255d0471.js.map +0 -1
  680. package/dist/components/p-387052e1.js +0 -2
  681. package/dist/components/p-387052e1.js.map +0 -1
  682. package/dist/components/p-3b807239.js +0 -2
  683. package/dist/components/p-565120d5.js +0 -2
  684. package/dist/components/p-5cc316bc.js +0 -2
  685. package/dist/components/p-5cc316bc.js.map +0 -1
  686. package/dist/components/p-6ea84137.js +0 -2
  687. package/dist/components/p-7501abe8.js +0 -2
  688. package/dist/components/p-7501abe8.js.map +0 -1
  689. package/dist/components/p-820b66c0.js +0 -2
  690. package/dist/components/p-c211c3e1.js +0 -2
  691. package/dist/components/p-c211c3e1.js.map +0 -1
  692. package/dist/components/p-dcee21ca.js +0 -2
  693. package/dist/components/p-e3aeaca0.js +0 -2
  694. package/dist/components/p-e3aeaca0.js.map +0 -1
  695. package/dist/components/p-edd1417b.js +0 -2
  696. package/dist/core/p-0075138f.js +0 -2
  697. package/dist/core/p-0075138f.js.map +0 -1
  698. package/dist/core/p-052cc573.js +0 -2
  699. package/dist/core/p-0a24806a.entry.js +0 -2
  700. package/dist/core/p-0d2c4d31.entry.js +0 -2
  701. package/dist/core/p-10f9bf55.entry.js +0 -2
  702. package/dist/core/p-12680890.entry.js +0 -2
  703. package/dist/core/p-12680890.entry.js.map +0 -1
  704. package/dist/core/p-1600c1fb.entry.js +0 -2
  705. package/dist/core/p-18025823.entry.js +0 -2
  706. package/dist/core/p-18025823.entry.js.map +0 -1
  707. package/dist/core/p-18dbe177.entry.js +0 -2
  708. package/dist/core/p-18dbe177.entry.js.map +0 -1
  709. package/dist/core/p-1a550eee.entry.js +0 -2
  710. package/dist/core/p-1a550eee.entry.js.map +0 -1
  711. package/dist/core/p-1f1895c0.entry.js +0 -2
  712. package/dist/core/p-1fdc2457.entry.js +0 -2
  713. package/dist/core/p-212759be.entry.js +0 -2
  714. package/dist/core/p-215504c1.entry.js +0 -2
  715. package/dist/core/p-2614044c.js +0 -2
  716. package/dist/core/p-2c3ddc57.entry.js +0 -2
  717. package/dist/core/p-31e7d262.entry.js +0 -2
  718. package/dist/core/p-31e7d262.entry.js.map +0 -1
  719. package/dist/core/p-32bba4e7.entry.js +0 -2
  720. package/dist/core/p-378e0723.entry.js +0 -2
  721. package/dist/core/p-3844a27d.entry.js +0 -2
  722. package/dist/core/p-4bce896c.js +0 -2
  723. package/dist/core/p-4cb4de7b.entry.js +0 -2
  724. package/dist/core/p-56f9e026.entry.js +0 -2
  725. package/dist/core/p-57b0e670.entry.js +0 -2
  726. package/dist/core/p-668ca722.entry.js +0 -2
  727. package/dist/core/p-67200095.entry.js +0 -2
  728. package/dist/core/p-69d56f17.js +0 -2
  729. package/dist/core/p-6aa40794.js +0 -2
  730. package/dist/core/p-731fe7d8.entry.js +0 -2
  731. package/dist/core/p-731fe7d8.entry.js.map +0 -1
  732. package/dist/core/p-7591976a.entry.js +0 -2
  733. package/dist/core/p-75ea368b.entry.js +0 -2
  734. package/dist/core/p-7b48b1b8.entry.js +0 -2
  735. package/dist/core/p-7de47344.entry.js +0 -2
  736. package/dist/core/p-7de47344.entry.js.map +0 -1
  737. package/dist/core/p-83aa4327.entry.js +0 -2
  738. package/dist/core/p-842cb87f.js +0 -2
  739. package/dist/core/p-89b69743.entry.js +0 -2
  740. package/dist/core/p-89b69743.entry.js.map +0 -1
  741. package/dist/core/p-8a796fbe.entry.js +0 -2
  742. package/dist/core/p-8f10919c.entry.js +0 -2
  743. package/dist/core/p-8fe36a5b.entry.js +0 -2
  744. package/dist/core/p-915e53ac.entry.js +0 -2
  745. package/dist/core/p-915e53ac.entry.js.map +0 -1
  746. package/dist/core/p-92e13f9d.entry.js +0 -2
  747. package/dist/core/p-a21dc94f.js +0 -2
  748. package/dist/core/p-a274cdaa.entry.js +0 -2
  749. package/dist/core/p-a274cdaa.entry.js.map +0 -1
  750. package/dist/core/p-a693ffbf.js +0 -2
  751. package/dist/core/p-a693ffbf.js.map +0 -1
  752. package/dist/core/p-a9a095c2.entry.js +0 -2
  753. package/dist/core/p-a9a095c2.entry.js.map +0 -1
  754. package/dist/core/p-ab68c0b7.entry.js +0 -2
  755. package/dist/core/p-ab68c0b7.entry.js.map +0 -1
  756. package/dist/core/p-b48a4aa0.js +0 -2
  757. package/dist/core/p-b48a4aa0.js.map +0 -1
  758. package/dist/core/p-b50ffab3.entry.js +0 -2
  759. package/dist/core/p-b70cc248.entry.js +0 -2
  760. package/dist/core/p-c0a5a3f7.entry.js +0 -2
  761. package/dist/core/p-c0a5a3f7.entry.js.map +0 -1
  762. package/dist/core/p-c5b5fd69.entry.js +0 -2
  763. package/dist/core/p-d1c4eb91.entry.js +0 -2
  764. package/dist/core/p-d3963396.entry.js +0 -2
  765. package/dist/core/p-d4fbc249.entry.js +0 -2
  766. package/dist/core/p-d4fbc249.entry.js.map +0 -1
  767. package/dist/core/p-d949aac7.entry.js +0 -2
  768. package/dist/core/p-d949aac7.entry.js.map +0 -1
  769. package/dist/core/p-e0d428c9.js +0 -2
  770. package/dist/core/p-e0d428c9.js.map +0 -1
  771. package/dist/core/p-e3aeaca0.js +0 -2
  772. package/dist/core/p-e3aeaca0.js.map +0 -1
  773. package/dist/core/p-e6af4c58.entry.js +0 -2
  774. package/dist/core/p-e6af4c58.entry.js.map +0 -1
  775. package/dist/core/p-ede7af0a.entry.js +0 -2
  776. package/dist/core/p-ede7af0a.entry.js.map +0 -1
  777. package/dist/core/p-eebc9e71.entry.js +0 -2
  778. package/dist/core/p-eebc9e71.entry.js.map +0 -1
  779. package/dist/core/p-eebf7ad8.entry.js +0 -2
  780. package/dist/core/p-f1c8a96b.entry.js +0 -2
  781. package/dist/core/p-f963bb2f.entry.js +0 -2
  782. package/dist/core/p-fb0df3a5.entry.js +0 -2
  783. package/dist/esm/colors-02c1ea96.js.map +0 -1
  784. package/dist/esm/form-472e078d.js.map +0 -1
  785. package/dist/esm/gov-flex.entry.js +0 -27
  786. package/dist/esm/gov-flex.entry.js.map +0 -1
  787. package/dist/esm/gov-form-label.entry.js +0 -23
  788. package/dist/esm/gov-form-label.entry.js.map +0 -1
  789. package/dist/esm/gov-icon.entry.js +0 -157
  790. package/dist/esm/gov-icon.entry.js.map +0 -1
  791. package/dist/esm/gov-theme-switch.entry.js +0 -69
  792. package/dist/esm/gov-theme-switch.entry.js.map +0 -1
  793. package/dist/esm/gov.log-6e9faad2.js +0 -19
  794. package/dist/esm/gov.log-6e9faad2.js.map +0 -1
  795. package/dist/esm/template-3d84d705.js.map +0 -1
  796. package/dist/esm/wcag-d7c6c252.js.map +0 -1
  797. package/dist/esm/win-cec370ad.js.map +0 -1
  798. /package/dist/components/{p-1d3019f3.js.map → p-31a99bfc.js.map} +0 -0
  799. /package/dist/components/{p-bd22e21d.js.map → p-4149f195.js.map} +0 -0
  800. /package/dist/components/{p-08621bdf.js.map → p-44a8a668.js.map} +0 -0
  801. /package/dist/components/{p-1f3bb41d.js.map → p-5952a5d0.js.map} +0 -0
  802. /package/dist/components/{p-565120d5.js.map → p-76d604c6.js.map} +0 -0
  803. /package/dist/components/{p-edd1417b.js.map → p-7f3becc5.js.map} +0 -0
  804. /package/dist/components/{p-7f8a24a7.js.map → p-860520b0.js.map} +0 -0
  805. /package/dist/components/{p-19c681a3.js.map → p-a2435993.js.map} +0 -0
  806. /package/dist/components/{p-59737af9.js.map → p-a521c59a.js.map} +0 -0
  807. /package/dist/components/{p-0c93dd39.js.map → p-c61a5830.js.map} +0 -0
  808. /package/dist/components/{p-23b7e680.js.map → p-dfb5794a.js.map} +0 -0
  809. /package/dist/core/{p-b50ffab3.entry.js.map → p-00d153bf.entry.js.map} +0 -0
  810. /package/dist/core/{p-d1c4eb91.entry.js.map → p-0be19b89.entry.js.map} +0 -0
  811. /package/dist/core/{p-215504c1.entry.js.map → p-22fa411d.entry.js.map} +0 -0
  812. /package/dist/core/{p-668ca722.entry.js.map → p-30eaeeec.entry.js.map} +0 -0
  813. /package/dist/core/{p-69d56f17.js.map → p-3bbb77a0.js.map} +0 -0
  814. /package/dist/core/{p-7591976a.entry.js.map → p-535316b4.entry.js.map} +0 -0
  815. /package/dist/core/{p-b822b9ff.entry.js.map → p-5396935e.entry.js.map} +0 -0
  816. /package/dist/core/{p-42d9924c.js.map → p-56efd4a2.js.map} +0 -0
  817. /package/dist/core/{p-8a796fbe.entry.js.map → p-5b2131c1.entry.js.map} +0 -0
  818. /package/dist/core/{p-60658ae9.js.map → p-5f1000da.js.map} +0 -0
  819. /package/dist/core/{p-b70cc248.entry.js.map → p-7b7e502b.entry.js.map} +0 -0
  820. /package/dist/core/{p-2614044c.js.map → p-7ba4daf4.js.map} +0 -0
  821. /package/dist/core/{p-6aa40794.js.map → p-7f3becc5.js.map} +0 -0
  822. /package/dist/core/{p-e9a6cd71.js.map → p-860520b0.js.map} +0 -0
  823. /package/dist/core/{p-169b67af.js.map → p-a2435993.js.map} +0 -0
  824. /package/dist/core/{p-4bce896c.js.map → p-a521c59a.js.map} +0 -0
  825. /package/dist/core/{p-2c3ddc57.entry.js.map → p-bc966c46.entry.js.map} +0 -0
  826. /package/dist/core/{p-c990d746.js.map → p-c61a5830.js.map} +0 -0
  827. /package/dist/core/{p-45a30859.js.map → p-e0e2e9c1.js.map} +0 -0
  828. /package/dist/core/{p-052cc573.js.map → p-e44a0fee.js.map} +0 -0
  829. /package/dist/core/{p-58dc3ec3.entry.js.map → p-e834ee73.entry.js.map} +0 -0
  830. /package/dist/core/{p-5ad3097c.entry.js.map → p-f7a4da9d.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"gov-form-select.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;MA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,CAAC;YACnB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAA;KACF;;;;IAMD,MAAM,QAAQ,CAAC,OAAsB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KACpC;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;;;;;;","names":["govHost","govForm","createID","validateProp","FormSelectSizes","FormSelectClass","propsValueToArray","toBoolAttr","AttributeObserver","ariaAttributes","inheritAriaAttributes","tick","h","Host","toBoolAttrIfDefined"],"sources":["../../../packages/core/src/components/gov-form/select/gov-form-select.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govForm} from '../../../helpers/Dom/form'\nimport {GovForm} from '../../../helpers/Dom/form.types'\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\nimport {GovHost} from '../../../helpers/Dom/template.types'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {createID} from '../../../utils/string.utils'\nimport {FormSelectClass, FormSelectSizes, FormSelectSizesType,} from './constants'\nimport {FormSelectEvent, FormSelectOption} from './gov-form-select.types'\nimport {propsValueToArray} from \"../../../utils/array.utils\";\nimport {tick} from \"../../../utils/stencil.utils\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-form-select',\n})\nexport class GovFormSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate selectRef?: HTMLSelectElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly selectId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.selectId = createID('GovSelect')\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Options of select\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | FormSelectOption[]\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormSelectEvent>\n\t@State() focused: boolean\n\t@State() optionsState: FormSelectOption[] = []\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | FormSelectOption[]): void {\n\t\tthis.optionsState = propsValueToArray(newValue)\n\t}\n\n\t@Watch('disabled')\n\t@Watch('invalid')\n\t@Watch('success')\n\t@Watch('size')\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@Watch('value')\n\twatchValue(): void {\n\t\tthis.markSelectedValue()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl('size', this.size)\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl('success', toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl('type', 'select')\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.markSelectedValue()\n\n\t\tthis.optionsState = propsValueToArray(this.options)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\t\ttick(() => this.markSelectedValue())\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate markSelectedValue() {\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\tif (option.value === this.value) {\n\t\t\t\toption.setAttribute('selected', 'selected')\n\t\t\t} else {\n\t\t\t\toption.removeAttribute('selected')\n\t\t\t}\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSelectClass.root} size={this.size}>\n\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<gov-icon slot=\"right-icon\" name=\"chevron-down\" class=\"icon-arrow\"></gov-icon>\n\t\t\t\t\t{this.h.hasSlot('right-icon') && !(this.success || this.invalid) && <slot name=\"right-icon\"/>}\n\t\t\t\t\t{this.success && <gov-icon slot=\"validation-icon\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t{this.invalid && <gov-icon slot=\"validation-icon\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t<select\n\t\t\t\t\t\tid={this.identifier || this.selectId}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={option.value === this.value}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.value = (e.target as HTMLSelectElement).value\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\n\t}\n\n\t/**\n\t * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-form-select.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;MAkBa,aAAa;IAQzB;;;;;;;;oBAsB8C,GAAG;;wBASZ,KAAK;;wBASL,KAAK;;;4BAkBE,EAAE;mCAyBH,EAAE;QAlF5C,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAGC,YAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACxB,IAAI,CAAC,QAAQ,GAAGC,qBAAQ,CAAC,WAAW,CAAC,CAAA;KACrC;IAyDD,YAAY,CAAC,QAAgB;QAC5BC,kBAAY,CAACC,oBAAe,EAAE,QAAQ,EAAEC,oBAAe,CAAC,IAAI,CAAC,CAAA;KAC7D;IAGD,YAAY,CAAC,QAAqC;QACjD,IAAI,CAAC,YAAY,GAAGC,6BAAiB,CAAC,QAAQ,CAAC,CAAA;KAC/C;IAMD,iBAAiB;QAChB,I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CAAA;QACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAEP,oBAAe,CAAC,IAAI;YAC/B,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAA;KACF;IAEO,aAAa,CAAC,CAAa;QAClC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACjB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAA;KACF;IAEO,eAAe,CAAC,CAAQ;QAC/B,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA4B,CAAC,KAAK,CAAA;QAClD,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC,CAAA;KACF;;;;IAMD,MAAM,QAAQ,CAAC,OAAsB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KACpC;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;;;;;;","names":["govHost","govForm","createID","validateProp","FormSelectSizes","FormSelectClass","propsValueToArray","toBoolAttr","AttributeObserver","ariaAttributes","inheritAriaAttributes","tick","h","Host","toBoolAttrIfDefined"],"sources":["../../../packages/core/src/components/gov-form/select/gov-form-select.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govForm} from '../../../helpers/Dom/form'\nimport {GovForm} from '../../../helpers/Dom/form.types'\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\nimport {GovHost} from '../../../helpers/Dom/template.types'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {createID} from '../../../utils/string.utils'\nimport {FormSelectClass, FormSelectSizes, FormSelectSizesType,} from './constants'\nimport {FormSelectEvent, FormSelectOption} from './gov-form-select.types'\nimport {propsValueToArray} from \"../../../utils/array.utils\";\nimport {tick} from \"../../../utils/stencil.utils\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-form-select',\n})\nexport class GovFormSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate selectRef?: HTMLSelectElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly selectId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.selectId = createID('GovSelect')\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Options of select\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | FormSelectOption[]\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormSelectEvent>\n\t@State() focused: boolean\n\t@State() optionsState: FormSelectOption[] = []\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | FormSelectOption[]): void {\n\t\tthis.optionsState = propsValueToArray(newValue)\n\t}\n\n\t@Watch('disabled')\n\t@Watch('invalid')\n\t@Watch('success')\n\t@Watch('size')\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@Watch('value')\n\twatchValue(): void {\n\t\tthis.markSelectedValue()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl('size', this.size)\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl('success', toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl('type', 'select')\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.markSelectedValue()\n\n\t\tthis.optionsState = propsValueToArray(this.options)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\t\ttick(() => this.markSelectedValue())\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate markSelectedValue() {\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\tif (option.value === this.value) {\n\t\t\t\toption.setAttribute('selected', 'selected')\n\t\t\t} else {\n\t\t\t\toption.removeAttribute('selected')\n\t\t\t}\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSelectClass.root} size={this.size}>\n\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<select\n\t\t\t\t\t\tid={this.identifier || this.selectId}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={option.value === this.value}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t\t{this.success && <gov-icon class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.invalid && <gov-icon class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t<gov-icon class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.value = (e.target as HTMLSelectElement).value\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\n\t}\n\n\t/**\n\t * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n}\n"],"version":3}
@@ -4,18 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-7ff4447c.js');
6
6
  const string_utils = require('./string.utils-b84c81cf.js');
7
- const props = require('./props-b8a955b2.js');
8
- const form = require('./form-c1aec07a.js');
9
- const template = require('./template-b070338f.js');
7
+ const props = require('./props-d189860c.js');
8
+ const form = require('./form-4e66039a.js');
9
+ const template = require('./template-39939fd6.js');
10
10
  const Fragment = require('./Fragment-52846f79.js');
11
11
  const attribute = require('./attribute-06dc5228.js');
12
12
  const accessibility = require('./accessibility-c475826b.js');
13
- require('./gov.log-1e8bab6e.js');
14
- require('./win-587f4614.js');
13
+ require('./gov.log-bfea3151.js');
15
14
  require('./utils-d263c5c6.js');
16
15
  require('./sizes-89f8d3b2.js');
17
- require('./constants-bd0d66ac.js');
18
- require('./colors-976f6dff.js');
16
+ require('./constants-b9fece07.js');
17
+ require('./colors-f7c8eadd.js');
19
18
  require('./constants-47ba678b.js');
20
19
  require('./constants-87bab1ed.js');
21
20
 
@@ -84,7 +83,7 @@ const GovFormSwitch = class {
84
83
  }
85
84
  return children;
86
85
  };
87
- return (index.h(index.Host, { class: this.h.classes(form.FormSwitchClass.root), hydrated: this.hydrated, checked: this.checked, size: this.size, invalid: template.toBoolAttrIfDefined(this.invalid) }, wrapCheckbox(index.h(Fragment.Fragment, null, index.h("input", Object.assign({ class: form.FormSwitchClass.input, id: this.identifier || this.checkboxId, type: "checkbox", value: this.value, name: this.name, disabled: this.disabled, checked: this.checked, onClick: this.onClickHandler.bind(this), onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), ref: el => (this.inputRef = el), required: this.required }, this.inheritedAttributes, { "aria-checked": this.checked, "aria-required": template.toBoolAttrIfDefined(this.required), "aria-invalid": template.toBoolAttrIfDefined(this.invalid), "aria-disabled": template.toBoolAttrIfDefined(this.disabled) })), index.h("span", null, index.h("span", { class: form.FormSwitchClass.indicator }, this.checked && index.h("gov-icon", { type: "basic", name: "check-lg" })), index.h("slot", { name: "label" }))))));
86
+ return (index.h(index.Host, { class: this.h.classes(form.FormSwitchClass.root), hydrated: this.hydrated, checked: this.checked, size: this.size, invalid: template.toBoolAttrIfDefined(this.invalid) }, wrapCheckbox(index.h(Fragment.Fragment, null, index.h("input", Object.assign({ class: form.FormSwitchClass.input, id: this.identifier || this.checkboxId, type: "checkbox", value: this.value, name: this.name, disabled: this.disabled, checked: this.checked, onClick: this.onClickHandler.bind(this), onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), ref: el => (this.inputRef = el), required: this.required }, this.inheritedAttributes, { "aria-checked": this.checked, "aria-required": template.toBoolAttrIfDefined(this.required), "aria-invalid": template.toBoolAttrIfDefined(this.invalid), "aria-disabled": template.toBoolAttrIfDefined(this.disabled) })), index.h("span", null, index.h("span", { class: form.FormSwitchClass.indicator }, this.checked && index.h("gov-icon", { name: "check-lg", type: "components" })), index.h("slot", { name: "label" }))))));
88
87
  }
89
88
  onClickHandler(e) {
90
89
  e.stopPropagation();
@@ -1 +1 @@
1
- {"file":"gov-form-switch.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;MAiBa,aAAa;IASzB;;;;;QAFQ,aAAQ,GAAG,KAAK,CAAA;;uBAiBmC,KAAK;uBAIhB,KAAK;wBAIhB,KAAK;wBAIL,KAAK;;oBAQI,GAAG;;;mCAkCN,EAAE;QApE5C,IAAI,CAAC,UAAU,GAAGA,qBAAQ,CAAC,aAAa,CAAC,CAAA;QAEzC,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAGC,YAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACxB;IAqDD,YAAY,CAAC,QAAgB;QAC5BC,kBAAY,CAACC,oBAAe,EAAE,QAAQ,EAAEC,oBAAe,CAAC,IAAI,CAAC,CAAA;KAC7D;IAKD,aAAa;QACZ,IAAI,CAAC,gBAAgB,EAAE,CAAA;KACvB;IAIO,gBAAgB;QACvB,IAAI,CAAC,CAAC,CAAC,iBA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AAC;YACnB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAA;KACpB;;;;;;;;;;;","names":["createID","govHost","govForm","validateProp","FormSwitchSizes","FormSwitchClass","toBoolAttr","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host","toBoolAttrIfDefined","Fragment"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormSwitchEvent} from \"./gov-form-switch.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon type=\"basic\" name=\"check-lg\"/>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-form-switch.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;MAiBa,aAAa;IASzB;;;;;QAFQ,aAAQ,GAAG,KAAK,CAAA;;uBAiBmC,KAAK;uBAIhB,KAAK;wBAIhB,KAAK;wBAIL,KAAK;;oBAQI,GAAG;;;mCAkCN,EAAE;QApE5C,IAAI,CAAC,UAAU,GAAGA,qBAAQ,CAAC,aAAa,CAAC,CAAA;QAEzC,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAGC,YAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACxB;IAqDD,YAAY,CAAC,QAAgB;QAC5BC,kBAAY,CAACC,oBAAe,EAAE,QAAQ,EAAEC,oBAAe,CAAC,IAAI,CAAC,CAAA;KAC7D;IAKD,aAAa;QACZ,IAAI,CAAC,gBAAgB,EAAE,CAAA;KACvB;IAIO,gBAAgB;QACvB,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,SAAS,EAAEC,mBAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;QAC7D,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,UAAU,EAAEA,mBAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;KAC1C;IAED,gBAAg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U,EAAC,IAAI,EAAC,YAAY,GAAY,CAClE,EACPA,kBAAM,IAAI,EAAC,OAAO,GAAQ,CACpB,CACG,CACX,CACK,EACP;KACD;IAEO,cAAc,CAAC,CAAQ;QAC9B,CAAC,CAAC,eAAe,EAAE,CAAA;KACnB;IAEO,cAAc,CAAC,CAAa;QACnC,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAEL,oBAAe,CAAC,IAAI;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAEO,aAAa,CAAC,CAAa;QAClC,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACjB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAEO,eAAe,CAAC,CAAQ;QAC/B,IAAI,CAAC,OAAO,GAAI,CAAC,CAAC,MAA2B,CAAC,OAAO,CAAA;QACrD,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,SAAS,EAAEA,oBAAe,CAAC,IAAI;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAA;KACpB;;;;;;;;;;;","names":["createID","govHost","govForm","validateProp","FormSwitchSizes","FormSwitchClass","toBoolAttr","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host","toBoolAttrIfDefined","Fragment"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormSwitchEvent} from \"./gov-form-switch.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"version":3}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-7ff4447c.js');
6
6
  const constants = require('./constants-52053f2d.js');
7
- const template = require('./template-b070338f.js');
7
+ const template = require('./template-39939fd6.js');
8
8
 
9
9
  const GovGridItem = class {
10
10
  constructor(hostRef) {
@@ -17,7 +17,7 @@ const GovGridItem = class {
17
17
  this.h = template.govHost(this.host);
18
18
  }
19
19
  render() {
20
- return (index.h(index.Host, { key: '67fe774dc5344926db8dbfef6f761a305326b82c', class: this.h.classes(constants.GridItemClass.root), role: "listitem", size: this.size, "size-sm": this.sizeSm, "size-md": this.sizeMd, "size-lg": this.sizeLg, "size-xl": this.sizeXl }, index.h("slot", { key: 'b26c3ac972e728a3cbc8713e3c284834d2413ca4' })));
20
+ return (index.h(index.Host, { key: 'd830b7cb16e1ad4a07b5b5348c05434eb31a1f9e', class: this.h.classes(constants.GridItemClass.root), role: "listitem", size: this.size, "size-sm": this.sizeSm, "size-md": this.sizeMd, "size-lg": this.sizeLg, "size-xl": this.sizeXl }, index.h("slot", { key: '235bd47e47d94457cdbbf1d4530cf2e0bcddc4a3' })));
21
21
  }
22
22
  get host() { return index.getElement(this); }
23
23
  };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-7ff4447c.js');
6
6
  const constants = require('./constants-52053f2d.js');
7
- const template = require('./template-b070338f.js');
7
+ const template = require('./template-39939fd6.js');
8
8
 
9
9
  const GovGrid = class {
10
10
  constructor(hostRef) {
@@ -15,7 +15,7 @@ const GovGrid = class {
15
15
  }
16
16
  // vertical / horizontal align
17
17
  render() {
18
- return (index.h(index.Host, { key: '0b77c477c260c74b5953f9a170da4aee66a8a73a', class: this.h.classes(constants.GridClass.root), "align-x": this.alignX, "align-y": this.alignY, role: "list" }, index.h("slot", { key: '98d0f2a4fadf05fc42ed313b69ad034af2a45705' })));
18
+ return (index.h(index.Host, { key: '81e96a065c6472ae76e4768cf2b8373b94f0d0a4', class: this.h.classes(constants.GridClass.root), "align-x": this.alignX, "align-y": this.alignY, role: "list" }, index.h("slot", { key: 'c3965bafe6a5870352a7cded3fc96adfbeb41724' })));
19
19
  }
20
20
  get host() { return index.getElement(this); }
21
21
  };
@@ -3,15 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-7ff4447c.js');
6
- const template = require('./template-b070338f.js');
6
+ const template = require('./template-39939fd6.js');
7
7
  const Fragment = require('./Fragment-52846f79.js');
8
- const props = require('./props-b8a955b2.js');
9
- const colors = require('./colors-976f6dff.js');
8
+ const props = require('./props-d189860c.js');
9
+ const colors = require('./colors-f7c8eadd.js');
10
10
  const utils = require('./utils-d263c5c6.js');
11
11
  const attribute = require('./attribute-06dc5228.js');
12
12
  const accessibility = require('./accessibility-c475826b.js');
13
- require('./gov.log-1e8bab6e.js');
14
- require('./win-587f4614.js');
13
+ require('./gov.log-bfea3151.js');
15
14
 
16
15
  const InfobarColors = utils.pick(colors.Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING']);
17
16
  var InfobarType;
@@ -62,8 +61,8 @@ const GovInfobar = class {
62
61
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
63
62
  }
64
63
  render() {
65
- const closeButton = (index.h("gov-button", { key: '6d4f29f3bc1399f97833680692a69c4a1a2584b5', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, index.h("gov-icon", { key: 'c1ae2403b5cbbf93aa248ed410882423b60f9915', name: "x-lg" })));
66
- return (index.h(index.Host, { key: '356c03e3e65b07704a677ce6fab744f97b499d92', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, index.h("section", Object.assign({ key: 'cb599860defaae413b1c90c3bbdb83bfc22c3bfc', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), index.h("slot", { key: '3f57ba1936c854f7889ab966a87493193d2ef42a', name: "icon" }), index.h("div", { key: 'cd283d13c928691e6fd2d3a5f5fb47deaa7b6ffb', class: InfobarClass.content }, this.h.hasSlot('headline') ? (index.h(Fragment.Fragment, null, index.h("div", { class: InfobarClass.headline }, index.h("slot", { name: "headline" }), index.h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, index.h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down' }))), index.h("div", { hidden: !this.toggleContent, "aria-hidden": template.toBoolAttr(this.toggleContent) }, index.h("slot", null)))) : (index.h("slot", null))), this.closable && closeButton)));
64
+ const closeButton = (index.h("gov-button", { key: '4569d98296984f33ff83947f92a95a0a3bf0d3e3', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, index.h("gov-icon", { key: 'aafcdbde7ca0e13d9e733036da6cc6085143966d', name: "x-lg", type: "components" })));
65
+ return (index.h(index.Host, { key: '9b558a0c786862d032ed6fb5d274fc0c3cdae617', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, index.h("section", Object.assign({ key: '9bded4750afdfef6ace0e5a39be2d6283b30d725', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), index.h("slot", { key: '011f9d52f9f971a560fd0220be40b5a221a5f4b3', name: "icon" }), index.h("div", { key: 'd613d4ab22f89da935fe60b866ea262802c5d18f', class: InfobarClass.content }, this.h.hasSlot('headline') ? (index.h(Fragment.Fragment, null, index.h("div", { class: InfobarClass.headline }, index.h("slot", { name: "headline" }), index.h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, index.h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), index.h("div", { hidden: !this.toggleContent, "aria-hidden": template.toBoolAttr(this.toggleContent) }, index.h("slot", null)))) : (index.h("slot", null))), this.closable && closeButton)));
67
66
  }
68
67
  onCloseHandler(e)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K,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,GAAG,SAAS,gBAC/B,IAAI,CAAC,qBAAqB,kBACxB,OAAO,IAAI,CAAC,aAAa,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,IAE9DA,sBAAU,IAAI,EAAE,IAAI,CAAC,aAAa,GAAG,YAAY,GAAG,cAAc,GAAa,CACnE,CACR,EACNA,iBAAK,MAAM,EAAE,CAAC,IAAI,CAAC,aAAa,iBAAeG,mBAAU,CAAC,IAAI,CAAC,aAAa,CAAC,IAC5EH,qBAAO,CACF,CACI,KAEXA,qBAAO,CACP,CACI,EACL,IAAI,CAAC,QAAQ,IAAI,WAAW,CACpB,CACJ,EACP;KACD;IAED,cAAc,CAAC,CAA2B;QACzC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAE,YAAY,CAAC,IAAI;YAC5B,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;KAC3B;;;;;;;;;","names":["pick","Colors","govHost","validateProp","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host","Fragment","toBoolAttr"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-infobar.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAIO,MAAM,aAAa,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG7G,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGM,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;IAC/B,O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ACP,CACI,EACL,IAAI,CAAC,QAAQ,IAAI,WAAW,CACpB,CACJ,EACP;KACD;IAED,cAAc,CAAC,CAA2B;QACzC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAE,YAAY,CAAC,IAAI;YAC5B,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;KAC3B;;;;;;;;;","names":["pick","Colors","govHost","validateProp","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host","Fragment","toBoolAttr"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"version":3}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-7ff4447c.js');
6
6
  const constants = require('./constants-a33f6e99.js');
7
- const template = require('./template-b070338f.js');
7
+ const template = require('./template-39939fd6.js');
8
8
 
9
9
  const GovLayoutColumn = class {
10
10
  constructor(hostRef) {
@@ -12,7 +12,7 @@ const GovLayoutColumn = class {
12
12
  this.h = template.govHost(this.host);
13
13
  }
14
14
  render() {
15
- return (index.h(index.Host, { key: 'df54ae33d7014e4ac0dfa79ffcc9c4c1ad92dffb', class: this.h.classes(constants.LayoutColumnClass.root) }, index.h("slot", { key: '7dfb2ebdcf8974ae17ca181017f2fee58776df9c' })));
15
+ return (index.h(index.Host, { key: '8566cc892984b1ce728c679107e228d8320f3048', class: this.h.classes(constants.LayoutColumnClass.root) }, index.h("slot", { key: 'e3a085ef568fa75ef813b775344adbd6f4ef2773' })));
16
16
  }
17
17
  get host() { return index.getElement(this); }
18
18
  };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-7ff4447c.js');
6
6
  const constants = require('./constants-a33f6e99.js');
7
- const template = require('./template-b070338f.js');
7
+ const template = require('./template-39939fd6.js');
8
8
 
9
9
  const GovLayout = class {
10
10
  constructor(hostRef) {
@@ -21,7 +21,7 @@ const GovLayout = class {
21
21
  return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
22
22
  }
23
23
  render() {
24
- return (index.h(index.Host, { key: '8fb6469e60ee22db59a32f94911e5bd559284438', type: this.type, class: this.h.classes(constants.LayoutClass.root) }, index.h("section", { key: 'ef0b2eb7cf294ad4c54585ce329283f34b88c371', class: this.typeClass(constants.LayoutClass.section, this.type, this.variant, this.inverse) }, index.h("slot", { key: '9dd0552d1146df7a89aeae135979f572dfc09204' }))));
24
+ return (index.h(index.Host, { key: 'ba8fc53df2f13fcf8b87f25f073d0284b68b0a3a', type: this.type, class: this.h.classes(constants.LayoutClass.root) }, index.h("section", { key: 'f645a9b32495c4fc1c0c86a0078c78c4bc00a1e8', class: this.typeClass(constants.LayoutClass.section, this.type, this.variant, this.inverse) }, index.h("slot", { key: '5b0d1a3a137a8fe3bb90ae5dff2dbc179575af56' }))));
25
25
  }
26
26
  get host() { return index.getElement(this); }
27
27
  };
@@ -38,7 +38,7 @@ const GovLifecycle = class {
38
38
  console.log('componentDidUpdate', this.uniqueId);
39
39
  }
40
40
  render() {
41
- return (index.h(index.Host, { key: '9571f893e056c8fa159479cb06da8c06e8724600', identifier: this.uniqueId }, index.h("span", { key: '98894ab03591844c115b94a43ee170585295ddcf' }, "lifecycle ", this.uniqueId)));
41
+ return (index.h(index.Host, { key: '7bd4b9b30b6fe4e1732232fa4e70d66756c2139d', identifier: this.uniqueId }, index.h("span", { key: '70d6b8d178133ee89b795c4018687c7afb2576f0' }, "lifecycle ", this.uniqueId)));
42
42
  }
43
43
  };
44
44
 
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-7ff4447c.js');
6
+ const utils = require('./utils-d263c5c6.js');
7
+ const sizes = require('./sizes-89f8d3b2.js');
8
+ const template = require('./template-39939fd6.js');
9
+ const props = require('./props-d189860c.js');
10
+ const accessibility = require('./accessibility-c475826b.js');
11
+ require('./gov.log-bfea3151.js');
12
+ require('./attribute-06dc5228.js');
13
+
14
+ const LinkSizes = utils.pick(sizes.Sizes, ['_S', '_M', '_L']);
15
+ const LinkClass = {
16
+ root: 'gov-link',
17
+ };
18
+
19
+ const GovLink = class {
20
+ constructor(hostRef) {
21
+ index.registerInstance(this, hostRef);
22
+ this.size = 'm';
23
+ this.external = false;
24
+ this.href = undefined;
25
+ this.target = undefined;
26
+ this.inheritedAttributes = {};
27
+ this.h = template.govHost(this.host);
28
+ }
29
+ validateSize(newValue) {
30
+ props.validateProp(LinkSizes, newValue, LinkClass.root);
31
+ }
32
+ componentWillLoad() {
33
+ this.validateSize(this.size);
34
+ this.inheritedAttributes = accessibility.inheritAriaAttributes(this.host);
35
+ }
36
+ onAriaAttributeChange(attributeName, newValue) {
37
+ this.host.removeAttribute(attributeName);
38
+ this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
39
+ }
40
+ render() {
41
+ return (index.h(index.Host, { key: '8723fc6fc0cf3faf4a0fb48b38ad2f0d0a21704b', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, index.h("a", Object.assign({ key: '1bfe7837dab38690789ec818f6134a50a93d1e4e', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), index.h("slot", { key: '96d6ce9e164a8fa5b6d5c115d52988bdfff3eceb', name: "icon-start" }), index.h("slot", { key: 'bcc373fec9e7e159c6b31a2ad846dd929d189d1e' }), this.external ? index.h("gov-icon", { name: "box-arrow-up-right", type: "components" }) : index.h("slot", { name: "icon-end" }))));
42
+ }
43
+ get host() { return index.getElement(this); }
44
+ static get watchers() { return {
45
+ "size": ["validateSize"]
46
+ }; }
47
+ };
48
+
49
+ exports.gov_link = GovLink;
50
+
51
+ //# sourceMappingURL=gov-link.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"gov-link.entry.cjs.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,GAAGA,sBAAU,IAAI,EAAC,oBAAoB,EAAC,IAAI,EAAC,YAAY,GAAY,GAAGA,kBAAM,IAAI,EAAC,UAAU,GAAE,CACzG,CACE,EACP;KACD;;;;;;;;;","names":["pick","Sizes","govHost","validateProp","inheritAriaAttributes","h","Host"],"sources":["../../../packages/core/src/components/gov-link/constants.ts","../../../packages/core/src/components/gov-link/gov-link.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const LinkSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LinkSizesType = `${ValueOf<typeof LinkSizes>}`\n\nexport const LinkClass = {\n\troot: 'gov-link',\n}\n","import {Component, Element, Host, h, Prop, Watch, State} from '@stencil/core'\nimport {LinkClass, LinkSizes, LinkSizesType} from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-link',\n})\nexport class GovLink {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLinkElement\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly size?: LinkSizesType = 'm'\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly external?: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LinkSizes, newValue, LinkClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LinkClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t href={this.href}\n\t\t\t\t external={this.external}>\n\t\t\t\t<a class=\"element\"\n\t\t\t\t href={this.href}\n\t\t\t\t target={this.target}\n\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<slot name=\"icon-start\"/>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.external ? <gov-icon name=\"box-arrow-up-right\" type=\"components\"></gov-icon> : <slot name=\"icon-end\"/>}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -5,10 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-7ff4447c.js');
6
6
  const utils = require('./utils-d263c5c6.js');
7
7
  const sizes = require('./sizes-89f8d3b2.js');
8
- const template = require('./template-b070338f.js');
9
- const props = require('./props-b8a955b2.js');
10
- require('./gov.log-1e8bab6e.js');
11
- require('./win-587f4614.js');
8
+ const template = require('./template-39939fd6.js');
9
+ const props = require('./props-d189860c.js');
10
+ require('./gov.log-bfea3151.js');
12
11
 
13
12
  const LoadingSizes = utils.pick(sizes.Sizes, ['_S', '_M', '_L']);
14
13
  const LoadingClass = {
@@ -30,7 +29,7 @@ const GovLoading = class {
30
29
  this.validateSize(this.size);
31
30
  }
32
31
  render() {
33
- return (index.h(index.Host, { key: '513f13c80fc2af7545772534af1cc04ded202ec3', class: this.h.classes(LoadingClass.root), size: this.size }, index.h("div", { key: 'f4c66ec827f34cd2498c69b44d8dbbfba69aa3c7', class: LoadingClass.content }, index.h("gov-icon", { key: 'fceceebd341d720f4d1d38b234ff5770110392d8', class: template.prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader" }), index.h("slot", { key: '85e34ce7d618a4b73668d80e3419a98e14ec524b' })), index.h("gov-backdrop", { key: 'a240f9f8b15dbc422adeda6674e019f6b118dc6a', inverse: true })));
32
+ return (index.h(index.Host, { key: '3f7cec1f98aa0c68f42eb3049ae8d34270e17258', class: this.h.classes(LoadingClass.root), size: this.size }, index.h("div", { key: '9ad1ca86b0221f2668f47eb72c080e9ecd05ed68', class: LoadingClass.content }, index.h("gov-icon", { key: '5d75c634386c8226c553b787355b29b0581601c5', class: template.prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), index.h("slot", { key: '99ff7f6f1c8bd8135959ea36bc484eab6c9a4b6b' })), index.h("gov-backdrop", { key: 'dcaa2ab6dbcca347d5934df52e0f4989701c0259', inverse: true })));
34
33
  }
35
34
  get host() { return index.getElement(this); }
36
35
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-loading.entry.cjs.js","mappings":";;;;;;;;;;;;AAIO,MAAM,YAAY,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGpD,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;IAC/B,IAAI,EAAE,mBAAmB;CACzB;;MCFY,UAAU;IAGtB;;oBAQ2C,GAAG;QAP7C,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IASD,YAAY,CAAC,QAAgB;QAC5BC,kBAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;KACvD;IAED,iBAAiB;QAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC5B;IAED,MAAM;QACL,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAC9DD,kEAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/BA,uEACC,KAAK,EAAEE,uBAAc,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,EAChE,IAAI,EAAC,QAAQ,GACZ,EACFF,oEAAQ,CACH,EACNA,2EAAc,OAAO,EAAE,IAAI,GAAI,CACzB,EACP;KACD;;;;;;;;;","names":["pick","Sizes","govHost","validateProp","h","Host","prepareClasses"],"sources":["../../../packages/core/src/components/gov-loading/loading/constants.ts","../../../packages/core/src/components/gov-loading/loading/gov-loading.tsx"],"sourcesContent":["import {pick} from \"../../../utils/utils\";\nimport {Sizes} from \"../../../core/constants/sizes\";\nimport {ValueOf} from \"../../../types/interfaces\";\n\nexport const LoadingSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LoadingSizesType = `${ValueOf<typeof LoadingSizes>}`\n\nexport const LoadingClass = {\n\troot: 'gov-loading',\n\tcontent: 'gov-loading__content',\n\ticon: 'gov-loading__icon',\n}\n","import {Component, Element, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {LoadingClass, LoadingSizes, LoadingSizesType} from \"./constants\"\nimport { govHost, prepareClasses } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\";\n\n@Component({\n\ttag: \"gov-loading\",\n})\nexport class GovLoading {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLoadingElement\n\t/**\n\t * Loading size\n\t */\n\t@Prop() readonly size?: LoadingSizesType = 'm'\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LoadingSizes, newValue, LoadingClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LoadingClass.root)} size={this.size}>\n\t\t\t\t<div class={LoadingClass.content}>\n\t\t\t\t\t<gov-icon\n\t\t\t\t\t\tclass={prepareClasses([LoadingClass.icon, \"gov-spin-animation\"])}\n\t\t\t\t\t\tname=\"loader\"\n\t\t\t\t\t/>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t<gov-backdrop inverse={true} />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-loading.entry.cjs.js","mappings":";;;;;;;;;;;AAIO,MAAM,YAAY,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGpD,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;IAC/B,IAAI,EAAE,mBAAmB;CACzB;;MCFY,UAAU;IAGtB;;oBAQ2C,GAAG;QAP7C,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IASD,YAAY,CAAC,QAAgB;QAC5BC,kBAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;KACvD;IAED,iBAAiB;QAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC5B;IAED,MAAM;QACL,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAC9DD,kEAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/BA,uEACC,KAAK,EAAEE,uBAAc,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,EAChE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,YAAY,GAChB,EACFF,oEAAQ,CACH,EACNA,2EAAc,OAAO,EAAE,IAAI,GAAI,CACzB,EACP;KACD;;;;;;;;;","names":["pick","Sizes","govHost","validateProp","h","Host","prepareClasses"],"sources":["../../../packages/core/src/components/gov-loading/loading/constants.ts","../../../packages/core/src/components/gov-loading/loading/gov-loading.tsx"],"sourcesContent":["import {pick} from \"../../../utils/utils\";\nimport {Sizes} from \"../../../core/constants/sizes\";\nimport {ValueOf} from \"../../../types/interfaces\";\n\nexport const LoadingSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LoadingSizesType = `${ValueOf<typeof LoadingSizes>}`\n\nexport const LoadingClass = {\n\troot: 'gov-loading',\n\tcontent: 'gov-loading__content',\n\ticon: 'gov-loading__icon',\n}\n","import {Component, Element, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {LoadingClass, LoadingSizes, LoadingSizesType} from \"./constants\"\nimport { govHost, prepareClasses } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\";\n\n@Component({\n\ttag: \"gov-loading\",\n})\nexport class GovLoading {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLoadingElement\n\t/**\n\t * Loading size\n\t */\n\t@Prop() readonly size?: LoadingSizesType = 'm'\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LoadingSizes, newValue, LoadingClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LoadingClass.root)} size={this.size}>\n\t\t\t\t<div class={LoadingClass.content}>\n\t\t\t\t\t<gov-icon\n\t\t\t\t\t\tclass={prepareClasses([LoadingClass.icon, \"gov-spin-animation\"])}\n\t\t\t\t\t\tname=\"loader\"\n\t\t\t\t\t\ttype=\"components\"\n\t\t\t\t\t/>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t<gov-backdrop inverse={true} />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -3,12 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-7ff4447c.js');
6
- const props = require('./props-b8a955b2.js');
7
- const colors = require('./colors-976f6dff.js');
6
+ const props = require('./props-d189860c.js');
7
+ const colors = require('./colors-f7c8eadd.js');
8
8
  const utils = require('./utils-d263c5c6.js');
9
- const template = require('./template-b070338f.js');
10
- require('./gov.log-1e8bab6e.js');
11
- require('./win-587f4614.js');
9
+ const template = require('./template-39939fd6.js');
10
+ require('./gov.log-bfea3151.js');
12
11
 
13
12
  utils.pick(colors.Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING']);
14
13
  var MessageType;
@@ -32,7 +31,7 @@ const GovMessage = class {
32
31
  props.validateProp(colors.Colors, newValue, MessageClass.root);
33
32
  }
34
33
  render() {
35
- return (index.h(index.Host, { key: '9379d874b17b448a37771cf06fde7ac8a87ea7c7', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (index.h("slot", { key: '4ff98ecd6b2b9e97d8083e9e907265e6bb265f79', name: "icon" })), index.h("div", { key: '2be09cb7021a713e90008ac8180c153361620a65', class: MessageClass.content }, index.h("slot", { key: '54f7fe2ade82698f072eae27eb58cf4ade008553' }))));
34
+ return (index.h(index.Host, { key: 'e9250a61d94bf14a9d32eef5a69a9347df89a1e2', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (index.h("slot", { key: '00a69ab91656245790d88c02cbaa14d365f48140', name: "icon" })), index.h("div", { key: 'c95cb839c2f24f744aff2a9580c44c18102d1fc9', class: MessageClass.content }, index.h("slot", { key: '71d8d21cff90b5498940d99947d62fec1f400f1e' }))));
36
35
  }
37
36
  get host() { return index.getElement(this); }
38
37
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-message.entry.cjs.js","mappings":";;;;;;;;;;;;AAI6BA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,EAAC;AAGhG,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGM,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;CAC/B;;MCNY,UAAU;IAGtB;;qBAS2CA,aAAM,CAAC,OAAO;oBAId,QAAQ;QAZlD,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAcD,aAAa,CAAC,QAAgB;QAC7BC,kBAAY,CAACF,aAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;KACjD;IAED,MAAM;QACL,QACCG,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAC,QAAQ,IAC/F,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtBD,mEAAM,IAAI,EAAC,MAAM,GAAG,CACpB,EAEDA,kEAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/BA,oEAAQ,CACH,CACA,EACP;KACD;;;;;;;;;","names":["pick","Colors","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\n\nexport enum MessageType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\tcontent: 'gov-message__content',\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Colors } from \"../../core/constants/colors\"\n\n@Component({\n\ttag: \"gov-message\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\n\t/**\n\t * Message type\n\t */\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-message.entry.cjs.js","mappings":";;;;;;;;;;;AAI6BA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,EAAC;AAGhG,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGM,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;CAC/B;;MCNY,UAAU;IAGtB;;qBAS2CA,aAAM,CAAC,OAAO;oBAId,QAAQ;QAZlD,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAcD,aAAa,CAAC,QAAgB;QAC7BC,kBAAY,CAACF,aAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;KACjD;IAED,MAAM;QACL,QACCG,QAACC,UAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAC,QAAQ,IAC/F,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtBD,mEAAM,IAAI,EAAC,MAAM,GAAG,CACpB,EAEDA,kEAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/BA,oEAAQ,CACH,CACA,EACP;KACD;;;;;;;;;","names":["pick","Colors","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\n\nexport enum MessageType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\tcontent: 'gov-message__content',\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Colors } from \"../../core/constants/colors\"\n\n@Component({\n\ttag: \"gov-message\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\n\t/**\n\t * Message type\n\t */\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -4,17 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-7ff4447c.js');
6
6
  const Fragment = require('./Fragment-52846f79.js');
7
- const props = require('./props-b8a955b2.js');
7
+ const props = require('./props-d189860c.js');
8
8
  const sizes = require('./sizes-89f8d3b2.js');
9
- const colors = require('./colors-976f6dff.js');
9
+ const colors = require('./colors-f7c8eadd.js');
10
10
  const utils = require('./utils-d263c5c6.js');
11
- const template = require('./template-b070338f.js');
11
+ const template = require('./template-39939fd6.js');
12
12
  const string_utils = require('./string.utils-b84c81cf.js');
13
13
  const array_utils = require('./array.utils-96eadde3.js');
14
14
  const attribute = require('./attribute-06dc5228.js');
15
15
  const accessibility = require('./accessibility-c475826b.js');
16
- require('./gov.log-1e8bab6e.js');
17
- require('./win-587f4614.js');
16
+ require('./gov.log-bfea3151.js');
18
17
  require('./helpers.types-ff60c9bd.js');
19
18
 
20
19
  const PaginationSizes = utils.pick(sizes.Sizes, ['_S', '_M']);
@@ -177,7 +176,7 @@ const GovPagination = class {
177
176
  const ariaCurrent = template.toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined);
178
177
  return (index.h("gov-button", { href: this.prepareLinkUrl(page), color: this.color, size: this.size, type: "base", disabled: isDisabled, "on-gov-click": (e) => this.onClickHandler(e, page), "aria-label": description ? description : page > -1 ? `${this.accessiblePageLabel} ${page}` : undefined, "aria-current": ariaCurrent, class: PaginationClass.inner, focusable: true }, content));
179
178
  };
180
- return (index.h(index.Host, { class: this.h.classes(PaginationClass.root), type: this.type, color: this.color, size: this.size }, index.h("nav", Object.assign({}, this.inheritedAttributes), index.h("ul", { class: PaginationClass.list }, index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.currentPage > 1 ? 1 : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-left" }), this.labelStart)), index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-left" }), this.labelPrev)), this.type == "select" ? (index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemSelect]) }, index.h("span", { class: PaginationClass.inner }, index.h("span", { id: this.pageSelectId, hidden: true }, this.accessibleSelectLabel), index.h("gov-form-select", { size: this.size, color: this.color, identifier: this.selectIdentifier || this.selectId, "aria-labelledby": this.pageSelectId, "on-gov-change": this.onSelectHandler.bind(this) }, array_utils.createArrayRange(1, this.pagination.totalPages).map(page => (index.h("option", { value: page, selected: this.pagination.currentPage === page }, page))))))) : (index.h(Fragment.Fragment, null, this.pagination.pages.map(page => (index.h("li", { class: this.isActivePageClass(PaginationClass.item, page) }, pageResolver(page, page, '')))), this.pagination.totalPages ? (index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemMore]) }, index.h("span", { class: PaginationClass.inner }, index.h("span", { id: this.pageSelectId, hidden: true }, this.accessibleSelectLabel), index.h("gov-form-select", { size: this.size, color: this.color, identifier: this.selectIdentifier || this.selectId, "aria-labelledby": this.pageSelectId, ref: el => (this.spreadSelectRef = el), "on-gov-change": this.onSelectHandler.bind(this) }, index.h("option", { selected: true, hidden: true }, "..."), array_utils.createArrayRange(1, this.pagination.totalPages).map(page => (index.h("option", { value: page, selected: false }, page))))))) : null)), index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-right" }), this.labelNext)), index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-right" }), this.labelEnd))))));
179
+ return (index.h(index.Host, { class: this.h.classes(PaginationClass.root), type: this.type, color: this.color, size: this.size }, index.h("nav", Object.assign({}, this.inheritedAttributes), index.h("ul", { class: PaginationClass.list }, index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.currentPage > 1 ? 1 : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-left", type: "components" }), this.labelStart)), index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-left", type: "components" }), this.labelPrev)), this.type == "select" ? (index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemSelect]) }, index.h("span", { class: PaginationClass.inner }, index.h("span", { id: this.pageSelectId, hidden: true }, this.accessibleSelectLabel), index.h("gov-form-select", { size: this.size, color: this.color, identifier: this.selectIdentifier || this.selectId, "aria-labelledby": this.pageSelectId, "on-gov-change": this.onSelectHandler.bind(this) }, array_utils.createArrayRange(1, this.pagination.totalPages).map(page => (index.h("option", { value: page, selected: this.pagination.currentPage === page }, page))))))) : (index.h(Fragment.Fragment, null, this.pagination.pages.map(page => (index.h("li", { class: this.isActivePageClass(PaginationClass.item, page) }, pageResolver(page, page, '')))), this.pagination.totalPages ? (index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemMore]) }, index.h("span", { class: PaginationClass.inner }, index.h("span", { id: this.pageSelectId, hidden: true }, this.accessibleSelectLabel), index.h("gov-form-select", { size: this.size, color: this.color, identifier: this.selectIdentifier || this.selectId, "aria-labelledby": this.pageSelectId, ref: el => (this.spreadSelectRef = el), "on-gov-change": this.onSelectHandler.bind(this) }, index.h("option", { selected: true, hidden: true }, "..."), array_utils.createArrayRange(1, this.pagination.totalPages).map(page => (index.h("option", { value: page, selected: false }, page))))))) : null)), index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-right", type: "components" }), this.labelNext)), index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-right", type: "components" }), this.labelEnd))))));
181
180
  }
182
181
  onClickHandler(e, page) {
183
182
  e.stopPropagation();