@gov-design-system-ce/components 4.1.0-rc1 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (897) 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 +2 -2
  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 +11 -9
  19. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-accordion.cjs.entry.js +4 -5
  21. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-attachments_3.cjs.entry.js +14 -15
  23. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-backdrop.cjs.entry.js +7 -8
  25. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +7 -8
  27. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-button.cjs.entry.js +12 -13
  29. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-card.cjs.entry.js +7 -8
  31. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-chip.cjs.entry.js +13 -14
  33. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-container.cjs.entry.js +3 -11
  35. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-control-group.cjs.entry.js +6 -7
  37. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-cookiebar.cjs.entry.js +3 -3
  39. package/dist/cjs/gov-dialog.cjs.entry.js +7 -8
  40. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  41. package/dist/cjs/gov-dropdown.cjs.entry.js +6 -6
  42. package/dist/cjs/gov-empty.cjs.entry.js +5 -6
  43. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-error-code.cjs.entry.js +3 -3
  45. package/dist/cjs/gov-flex_4.cjs.entry.js +339 -0
  46. package/dist/cjs/gov-flex_4.cjs.entry.js.map +1 -0
  47. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +6 -8
  48. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +6 -7
  50. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-form-checkbox.cjs.entry.js +9 -10
  52. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-form-control.cjs.entry.js +7 -7
  54. package/dist/cjs/gov-form-file.cjs.entry.js +13 -10
  55. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-form-group.cjs.entry.js +5 -6
  57. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  58. package/dist/cjs/gov-form-input_2.cjs.entry.js +14 -13
  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 +13 -29
  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 +2 -2
  63. package/dist/cjs/gov-form-radio-group.cjs.entry.js +6 -7
  64. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-form-radio.cjs.entry.js +8 -9
  66. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gov-form-search.cjs.entry.js +3 -3
  68. package/dist/cjs/gov-form-select.cjs.entry.js +10 -11
  69. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  70. package/dist/cjs/gov-form-switch.cjs.entry.js +9 -10
  71. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-grid-item.cjs.entry.js +3 -3
  73. package/dist/cjs/gov-grid.cjs.entry.js +3 -3
  74. package/dist/cjs/gov-infobar.cjs.entry.js +7 -8
  75. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  76. package/dist/cjs/gov-layout-column.cjs.entry.js +3 -3
  77. package/dist/cjs/gov-layout.cjs.entry.js +3 -3
  78. package/dist/cjs/gov-lifecycle.cjs.entry.js +47 -0
  79. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -0
  80. package/dist/cjs/gov-link.cjs.entry.js +51 -0
  81. package/dist/cjs/gov-link.cjs.entry.js.map +1 -0
  82. package/dist/cjs/gov-loading.cjs.entry.js +5 -6
  83. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  84. package/dist/cjs/gov-message.cjs.entry.js +6 -7
  85. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  86. package/dist/cjs/gov-pagination.cjs.entry.js +8 -9
  87. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  88. package/dist/cjs/gov-spacer.cjs.entry.js +5 -6
  89. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  90. package/dist/cjs/gov-stepper-item.cjs.entry.js +8 -9
  91. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  92. package/dist/cjs/gov-stepper.cjs.entry.js +7 -8
  93. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  94. package/dist/cjs/gov-tabs-item.cjs.entry.js +6 -6
  95. package/dist/cjs/gov-tabs.cjs.entry.js +7 -8
  96. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  97. package/dist/cjs/gov-tag.cjs.entry.js +11 -12
  98. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  99. package/dist/cjs/gov-tile.cjs.entry.js +3 -3
  100. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gov-tiles.cjs.entry.js +3 -3
  102. package/dist/cjs/gov-toast.cjs.entry.js +10 -11
  103. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  104. package/dist/cjs/gov-tooltip-content.cjs.entry.js +5 -5
  105. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
  106. package/dist/cjs/gov-tooltip.cjs.entry.js +12 -13
  107. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  108. package/dist/cjs/gov-wizard-item.cjs.entry.js +10 -11
  109. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  110. package/dist/cjs/gov-wizard.cjs.entry.js +10 -11
  111. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  112. package/dist/cjs/{win-587f4614.js → gov.log-bfea3151.js} +16 -4
  113. package/dist/cjs/gov.log-bfea3151.js.map +1 -0
  114. package/dist/cjs/{index-1af4880c.js → index-7ff4447c.js} +20 -12
  115. package/dist/cjs/index-7ff4447c.js.map +1 -0
  116. package/dist/cjs/loader.cjs.js +2 -2
  117. package/dist/cjs/{props-b8a955b2.js → props-d189860c.js} +2 -2
  118. package/dist/cjs/{props-b8a955b2.js.map → props-d189860c.js.map} +1 -1
  119. package/dist/cjs/{string.utils-2335838f.js → string.utils-b84c81cf.js} +2 -1
  120. package/dist/cjs/string.utils-b84c81cf.js.map +1 -0
  121. package/dist/cjs/{template-b070338f.js → template-39939fd6.js} +1 -20
  122. package/dist/cjs/template-39939fd6.js.map +1 -0
  123. package/dist/cjs/{wcag-31089f70.js → wcag-2927ff73.js} +5 -6
  124. package/dist/cjs/wcag-2927ff73.js.map +1 -0
  125. package/dist/collection/collection-manifest.json +3 -1
  126. package/dist/collection/components/gov-accordion/gov-accordion-item.js +8 -5
  127. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  128. package/dist/collection/components/gov-attachments/gov-attachments-item.css +6 -35
  129. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  130. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  131. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  132. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  133. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  134. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  135. package/dist/collection/components/gov-button/button/gov-button.js +9 -9
  136. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  137. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  138. package/dist/collection/components/gov-card/gov-card.js +1 -1
  139. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  140. package/dist/collection/components/gov-chip/gov-chip.js +16 -16
  141. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  142. package/dist/collection/components/gov-container/gov-container.js +2 -38
  143. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  144. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  145. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  146. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  147. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  148. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  149. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  150. package/dist/collection/components/gov-flex/constants.js +4 -0
  151. package/dist/collection/components/gov-flex/constants.js.map +1 -0
  152. package/dist/collection/components/gov-flex/gov-flex.js +127 -0
  153. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -0
  154. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +2 -21
  155. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  156. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +3 -3
  157. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  158. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  159. package/dist/collection/components/gov-form/file/gov-form-file.js +8 -23
  160. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  161. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  162. package/dist/collection/components/gov-form/group/gov-form-group.css +7 -36
  163. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  164. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  165. package/dist/collection/components/gov-form/input/constants.js +1 -0
  166. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  167. package/dist/collection/components/gov-form/input/gov-form-input.js +5 -3
  168. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  169. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  170. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  171. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +6 -30
  172. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  173. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  174. package/dist/collection/components/gov-form/radio/gov-form-radio.js +1 -1
  175. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  176. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  177. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  178. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  179. package/dist/collection/components/gov-form/switch/constants.js +1 -1
  180. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  181. package/dist/collection/components/gov-form/switch/gov-form-switch.js +4 -4
  182. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  183. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  184. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  185. package/dist/collection/components/gov-icon/constants.js +8 -7
  186. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  187. package/dist/collection/components/gov-icon/gov-icon.js +41 -10
  188. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  189. package/dist/collection/components/gov-icon/list.js +43 -151
  190. package/dist/collection/components/gov-icon/list.js.map +1 -1
  191. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  192. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  193. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  194. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  195. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +39 -0
  196. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -0
  197. package/dist/collection/components/gov-link/constants.js +7 -0
  198. package/dist/collection/components/gov-link/constants.js.map +1 -0
  199. package/dist/collection/components/gov-link/gov-link.js +129 -0
  200. package/dist/collection/components/gov-link/gov-link.js.map +1 -0
  201. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  202. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  203. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  204. package/dist/collection/components/gov-message/gov-message.js +1 -1
  205. package/dist/collection/components/gov-pagination/gov-pagination.js +2 -2
  206. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  207. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  208. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  209. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  210. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  211. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  212. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  213. package/dist/collection/components/gov-tag/gov-tag.js +9 -9
  214. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  215. package/dist/collection/components/gov-theme-switch/constants.js +9 -1
  216. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  217. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +134 -10
  218. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  219. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  220. package/dist/collection/components/gov-tile/gov-tile.js +7 -7
  221. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  222. package/dist/collection/components/gov-toast/constants.js +1 -0
  223. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  224. package/dist/collection/components/gov-toast/gov-toast.js +3 -4
  225. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  226. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  227. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  228. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  229. package/dist/collection/components/gov-wizard/gov-wizard-item.js +3 -3
  230. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  231. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  232. package/dist/collection/core/constants/colors.js +6 -8
  233. package/dist/collection/core/constants/colors.js.map +1 -1
  234. package/dist/collection/data/color-definitions.js +359 -172
  235. package/dist/collection/helpers/Dom/document.js +46 -0
  236. package/dist/collection/helpers/Dom/document.js.map +1 -0
  237. package/dist/collection/helpers/Dom/template.js +0 -18
  238. package/dist/collection/helpers/Dom/template.js.map +1 -1
  239. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  240. package/dist/collection/pages/Accordion.js +30 -30
  241. package/dist/collection/pages/Accordion.js.map +1 -1
  242. package/dist/collection/pages/Button.js +383 -383
  243. package/dist/collection/pages/Button.js.map +1 -1
  244. package/dist/collection/pages/Chip.js +53 -53
  245. package/dist/collection/pages/Chip.js.map +1 -1
  246. package/dist/collection/pages/ControlGroup.js +18 -18
  247. package/dist/collection/pages/ControlGroup.js.map +1 -1
  248. package/dist/collection/pages/Dialog.js +1 -1
  249. package/dist/collection/pages/Dialog.js.map +1 -1
  250. package/dist/collection/pages/Forms.js +206 -196
  251. package/dist/collection/pages/Forms.js.map +1 -1
  252. package/dist/collection/pages/Grid.js +1 -1
  253. package/dist/collection/pages/Grid.js.map +1 -1
  254. package/dist/collection/pages/Icon.js +10 -0
  255. package/dist/collection/pages/Icon.js.map +1 -1
  256. package/dist/collection/pages/Infobar.js +16 -16
  257. package/dist/collection/pages/Infobar.js.map +1 -1
  258. package/dist/collection/pages/Message.js +20 -20
  259. package/dist/collection/pages/Message.js.map +1 -1
  260. package/dist/collection/pages/Spacer.js +1 -1
  261. package/dist/collection/pages/Spacer.js.map +1 -1
  262. package/dist/collection/pages/Stepper.js +15 -15
  263. package/dist/collection/pages/Stepper.js.map +1 -1
  264. package/dist/collection/pages/Tag.js +135 -160
  265. package/dist/collection/pages/Tag.js.map +1 -1
  266. package/dist/collection/pages/ToastMessage.js +4 -4
  267. package/dist/collection/pages/ToastMessage.js.map +1 -1
  268. package/dist/collection/pages/ToastMessageCountdown.js +4 -4
  269. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
  270. package/dist/collection/pages/Tooltip.js +2 -2
  271. package/dist/collection/pages/Tooltip.js.map +1 -1
  272. package/dist/collection/pages/Typography.js +20 -0
  273. package/dist/collection/pages/Typography.js.map +1 -1
  274. package/dist/collection/pages/Wizard.js +2 -2
  275. package/dist/collection/pages/Wizard.js.map +1 -1
  276. package/dist/collection/utils/string.utils.js +1 -1
  277. package/dist/collection/utils/string.utils.js.map +1 -1
  278. package/dist/components/gov-accordion-item.js +1 -1
  279. package/dist/components/gov-accordion-item.js.map +1 -1
  280. package/dist/components/gov-accordion.js +1 -1
  281. package/dist/components/gov-attachments-item.js +1 -1
  282. package/dist/components/gov-attachments.js +1 -1
  283. package/dist/components/gov-backdrop.js +1 -1
  284. package/dist/components/gov-breadcrumbs.js +1 -1
  285. package/dist/components/gov-breadcrumbs.js.map +1 -1
  286. package/dist/components/gov-button.js +1 -1
  287. package/dist/components/gov-card.js +1 -1
  288. package/dist/components/gov-card.js.map +1 -1
  289. package/dist/components/gov-chip.js +1 -1
  290. package/dist/components/gov-container.js +1 -1
  291. package/dist/components/gov-container.js.map +1 -1
  292. package/dist/components/gov-control-group.js +1 -1
  293. package/dist/components/gov-cookiebar.js +1 -1
  294. package/dist/components/gov-dialog.js +1 -1
  295. package/dist/components/gov-dialog.js.map +1 -1
  296. package/dist/components/gov-dropdown.js +1 -1
  297. package/dist/components/gov-dropdown.js.map +1 -1
  298. package/dist/components/gov-empty.js +1 -1
  299. package/dist/components/gov-error-code.js +1 -1
  300. package/dist/components/{gov-app.d.ts → gov-flex.d.ts} +4 -4
  301. package/dist/components/gov-flex.js +2 -0
  302. package/dist/components/gov-flex.js.map +1 -0
  303. package/dist/components/gov-form-autocomplete.js +1 -1
  304. package/dist/components/gov-form-checkbox-group.js +1 -1
  305. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  306. package/dist/components/gov-form-checkbox.js +1 -1
  307. package/dist/components/gov-form-checkbox.js.map +1 -1
  308. package/dist/components/gov-form-control.js +1 -1
  309. package/dist/components/gov-form-file.js +1 -1
  310. package/dist/components/gov-form-file.js.map +1 -1
  311. package/dist/components/gov-form-group.js +1 -1
  312. package/dist/components/gov-form-input.js +1 -1
  313. package/dist/components/gov-form-label.js +1 -1
  314. package/dist/components/gov-form-label.js.map +1 -1
  315. package/dist/components/gov-form-message.js +1 -1
  316. package/dist/components/gov-form-multi-select.js +1 -1
  317. package/dist/components/gov-form-multi-select.js.map +1 -1
  318. package/dist/components/gov-form-password-power.js +1 -1
  319. package/dist/components/gov-form-radio-group.js +1 -1
  320. package/dist/components/gov-form-radio-group.js.map +1 -1
  321. package/dist/components/gov-form-radio.js +1 -1
  322. package/dist/components/gov-form-radio.js.map +1 -1
  323. package/dist/components/gov-form-search.js +1 -1
  324. package/dist/components/gov-form-select.js +1 -1
  325. package/dist/components/gov-form-switch.js +1 -1
  326. package/dist/components/gov-form-switch.js.map +1 -1
  327. package/dist/components/gov-grid-item.js +1 -1
  328. package/dist/components/gov-grid.js +1 -1
  329. package/dist/components/gov-icon.js +1 -1
  330. package/dist/components/gov-infobar.js +1 -1
  331. package/dist/components/gov-infobar.js.map +1 -1
  332. package/dist/components/gov-layout-column.js +1 -1
  333. package/dist/components/gov-layout.js +1 -1
  334. package/dist/components/gov-lifecycle.d.ts +11 -0
  335. package/dist/components/gov-lifecycle.js +2 -0
  336. package/dist/components/gov-lifecycle.js.map +1 -0
  337. package/dist/components/gov-link.d.ts +11 -0
  338. package/dist/components/gov-link.js +2 -0
  339. package/dist/components/gov-link.js.map +1 -0
  340. package/dist/components/gov-loading.js +1 -1
  341. package/dist/components/gov-loading.js.map +1 -1
  342. package/dist/components/gov-message.js +1 -1
  343. package/dist/components/gov-pagination.js +1 -1
  344. package/dist/components/gov-pagination.js.map +1 -1
  345. package/dist/components/gov-skeleton.js +1 -1
  346. package/dist/components/gov-spacer.js +1 -1
  347. package/dist/components/gov-stepper-item.js +1 -1
  348. package/dist/components/gov-stepper.js +1 -1
  349. package/dist/components/gov-tabs-item.js +1 -1
  350. package/dist/components/gov-tabs.js +1 -1
  351. package/dist/components/gov-tabs.js.map +1 -1
  352. package/dist/components/gov-tag.js +1 -1
  353. package/dist/components/gov-tag.js.map +1 -1
  354. package/dist/components/gov-theme-switch.js +1 -1
  355. package/dist/components/gov-theme-switch.js.map +1 -1
  356. package/dist/components/gov-tile.js +1 -1
  357. package/dist/components/gov-tile.js.map +1 -1
  358. package/dist/components/gov-tiles.js +1 -1
  359. package/dist/components/gov-toast.js +1 -1
  360. package/dist/components/gov-toast.js.map +1 -1
  361. package/dist/components/gov-tooltip-content.js +1 -1
  362. package/dist/components/gov-tooltip-content.js.map +1 -1
  363. package/dist/components/gov-tooltip.js +1 -1
  364. package/dist/components/gov-wizard-item.js +1 -1
  365. package/dist/components/gov-wizard-item.js.map +1 -1
  366. package/dist/components/gov-wizard.js +1 -1
  367. package/dist/components/index.js +1 -1
  368. package/dist/components/p-0b3574c2.js +2 -0
  369. package/dist/components/p-1eb9c053.js +2 -0
  370. package/dist/components/p-1eb9c053.js.map +1 -0
  371. package/dist/components/p-283b66c3.js +2 -0
  372. package/dist/components/p-283b66c3.js.map +1 -0
  373. package/dist/components/p-318d89bd.js +2 -0
  374. package/dist/components/{p-1366ed8d.js.map → p-318d89bd.js.map} +1 -1
  375. package/dist/components/p-3d7a21b5.js +2 -0
  376. package/dist/components/p-3d7a21b5.js.map +1 -0
  377. package/dist/components/{p-ae3dada7.js → p-42200001.js} +3 -3
  378. package/dist/components/p-42200001.js.map +1 -0
  379. package/dist/components/p-44a8a668.js +2 -0
  380. package/dist/components/p-46c567fd.js +2 -0
  381. package/dist/components/p-46c567fd.js.map +1 -0
  382. package/dist/components/p-5aad3497.js +2 -0
  383. package/dist/components/p-5aad3497.js.map +1 -0
  384. package/dist/components/p-68a1aaec.js +2 -0
  385. package/dist/components/p-68a1aaec.js.map +1 -0
  386. package/dist/components/p-73938936.js +2 -0
  387. package/dist/components/p-76d604c6.js +2 -0
  388. package/dist/components/p-7be2301a.js +2 -0
  389. package/dist/components/p-7f3becc5.js +2 -0
  390. package/dist/components/p-80dad64b.js +2 -0
  391. package/dist/components/{p-9a93146e.js.map → p-80dad64b.js.map} +1 -1
  392. package/dist/components/{p-7f8a24a7.js → p-860520b0.js} +2 -2
  393. package/dist/components/p-880743a5.js.map +1 -1
  394. package/dist/components/p-9908b9f0.js +2 -0
  395. package/dist/components/p-9908b9f0.js.map +1 -0
  396. package/dist/components/{p-59737af9.js → p-a521c59a.js} +2 -2
  397. package/dist/components/p-a6b7a6c2.js +2 -0
  398. package/dist/components/p-a6be4769.js +2 -0
  399. package/dist/components/p-a6be4769.js.map +1 -0
  400. package/dist/components/{p-6e19816b.js → p-ac359044.js} +2 -2
  401. package/dist/components/p-b95ebe8c.js +2 -0
  402. package/dist/components/{p-dbae2385.js.map → p-b95ebe8c.js.map} +1 -1
  403. package/dist/components/{p-0c93dd39.js → p-c61a5830.js} +2 -2
  404. package/dist/components/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  405. package/dist/components/p-cd6c2938.js.map +1 -0
  406. package/dist/components/p-e8ec030e.js +2 -0
  407. package/dist/components/p-e8ec030e.js.map +1 -0
  408. package/dist/components/p-ea7fdd2e.js +2 -0
  409. package/dist/components/p-ea7fdd2e.js.map +1 -0
  410. package/dist/core/core.css +8256 -7340
  411. package/dist/core/core.esm.js +1 -1
  412. package/dist/core/core.esm.js.map +1 -1
  413. package/dist/core/p-00d153bf.entry.js +2 -0
  414. package/dist/core/p-019e967c.entry.js +2 -0
  415. package/dist/core/{p-eeb9cb73.entry.js.map → p-019e967c.entry.js.map} +1 -1
  416. package/dist/core/p-04fa0ab5.entry.js +2 -0
  417. package/dist/core/{p-db940455.entry.js.map → p-04fa0ab5.entry.js.map} +1 -1
  418. package/dist/core/p-0b3574c2.js +2 -0
  419. package/dist/core/p-0be19b89.entry.js +2 -0
  420. package/dist/core/p-0fdd8929.entry.js +2 -0
  421. package/dist/core/{p-7cf554e6.entry.js.map → p-0fdd8929.entry.js.map} +1 -1
  422. package/dist/core/p-1200a32d.entry.js +2 -0
  423. package/dist/core/p-1200a32d.entry.js.map +1 -0
  424. package/dist/core/p-22fa411d.entry.js +2 -0
  425. package/dist/core/p-2739fa61.entry.js +2 -0
  426. package/dist/core/p-2739fa61.entry.js.map +1 -0
  427. package/dist/core/p-29ac15d2.js +2 -0
  428. package/dist/core/{p-28a7d3f7.js.map → p-29ac15d2.js.map} +1 -1
  429. package/dist/core/p-30eaeeec.entry.js +2 -0
  430. package/dist/core/p-3bbb77a0.js +2 -0
  431. package/dist/core/p-3cb36bae.entry.js +2 -0
  432. package/dist/core/p-3cb36bae.entry.js.map +1 -0
  433. package/dist/core/p-3d6edb09.entry.js +2 -0
  434. package/dist/core/p-3d6edb09.entry.js.map +1 -0
  435. package/dist/core/p-3f6a2d20.entry.js +2 -0
  436. package/dist/core/p-3f6a2d20.entry.js.map +1 -0
  437. package/dist/core/p-41c6b262.entry.js +2 -0
  438. package/dist/core/{p-e4978aab.entry.js.map → p-41c6b262.entry.js.map} +1 -1
  439. package/dist/core/p-432c3875.entry.js +2 -0
  440. package/dist/core/p-432c3875.entry.js.map +1 -0
  441. package/dist/core/p-439b66a5.entry.js +2 -0
  442. package/dist/core/{p-a53a277a.entry.js.map → p-439b66a5.entry.js.map} +1 -1
  443. package/dist/core/p-4b90fbc4.entry.js +2 -0
  444. package/dist/core/{p-17015e36.entry.js.map → p-4b90fbc4.entry.js.map} +1 -1
  445. package/dist/core/p-4c5f6299.entry.js +2 -0
  446. package/dist/core/p-4c5f6299.entry.js.map +1 -0
  447. package/dist/core/p-535316b4.entry.js +2 -0
  448. package/dist/core/p-5396935e.entry.js +2 -0
  449. package/dist/core/p-561718cd.entry.js +2 -0
  450. package/dist/core/{p-dc3fab19.entry.js.map → p-561718cd.entry.js.map} +1 -1
  451. package/dist/core/p-56dc370d.entry.js +2 -0
  452. package/dist/core/{p-6d772ff9.entry.js.map → p-56dc370d.entry.js.map} +1 -1
  453. package/dist/core/{p-42d9924c.js → p-56efd4a2.js} +2 -2
  454. package/dist/core/p-5aad3497.js +2 -0
  455. package/dist/core/p-5aad3497.js.map +1 -0
  456. package/dist/core/p-5b2131c1.entry.js +2 -0
  457. package/dist/core/p-5c9e6275.entry.js +2 -0
  458. package/dist/core/{p-f456bd71.entry.js.map → p-5c9e6275.entry.js.map} +1 -1
  459. package/dist/core/{p-60658ae9.js → p-5f1000da.js} +2 -2
  460. package/dist/core/p-65e67731.entry.js +2 -0
  461. package/dist/core/p-65e67731.entry.js.map +1 -0
  462. package/dist/core/p-6bb37fe2.entry.js +2 -0
  463. package/dist/core/{p-f1be099b.entry.js.map → p-6bb37fe2.entry.js.map} +1 -1
  464. package/dist/core/p-6e457b3d.entry.js +2 -0
  465. package/dist/core/{p-5dcbfca3.entry.js.map → p-6e457b3d.entry.js.map} +1 -1
  466. package/dist/core/p-72130a8f.entry.js +2 -0
  467. package/dist/core/p-72130a8f.entry.js.map +1 -0
  468. package/dist/core/p-76d604c6.js +2 -0
  469. package/dist/core/{p-a21dc94f.js.map → p-76d604c6.js.map} +1 -1
  470. package/dist/core/p-7b7e502b.entry.js +2 -0
  471. package/dist/core/p-7ba4daf4.js +2 -0
  472. package/dist/core/p-7e04730a.entry.js +2 -0
  473. package/dist/core/{p-182189d2.entry.js.map → p-7e04730a.entry.js.map} +1 -1
  474. package/dist/core/p-7f3becc5.js +2 -0
  475. package/dist/core/{p-a1e95a5f.js → p-8506b611.js} +3 -3
  476. package/dist/core/p-8506b611.js.map +1 -0
  477. package/dist/core/{p-e9a6cd71.js → p-860520b0.js} +2 -2
  478. package/dist/core/p-880743a5.js.map +1 -1
  479. package/dist/core/p-97a9725d.entry.js +2 -0
  480. package/dist/core/{p-9b41ac88.entry.js.map → p-97a9725d.entry.js.map} +1 -1
  481. package/dist/core/p-9c2c5447.entry.js +2 -0
  482. package/dist/core/p-9c2c5447.entry.js.map +1 -0
  483. package/dist/core/p-9fe35463.entry.js +2 -0
  484. package/dist/core/p-9fe35463.entry.js.map +1 -0
  485. package/dist/core/p-a521c59a.js +2 -0
  486. package/dist/core/p-b7cfe254.entry.js +2 -0
  487. package/dist/core/{p-963f9fcd.entry.js.map → p-b7cfe254.entry.js.map} +1 -1
  488. package/dist/core/p-b923a8d9.entry.js +2 -0
  489. package/dist/core/p-b923a8d9.entry.js.map +1 -0
  490. package/dist/core/p-bc966c46.entry.js +2 -0
  491. package/dist/core/{p-83039b10.entry.js.map → p-bc966c46.entry.js.map} +1 -1
  492. package/dist/core/p-bcb45a18.entry.js +2 -0
  493. package/dist/core/{p-2ed3afef.entry.js.map → p-bcb45a18.entry.js.map} +1 -1
  494. package/dist/core/p-bdc51179.entry.js +2 -0
  495. package/dist/core/p-bdc51179.entry.js.map +1 -0
  496. package/dist/core/p-c054f955.entry.js +2 -0
  497. package/dist/core/{p-663d3db2.entry.js.map → p-c054f955.entry.js.map} +1 -1
  498. package/dist/core/{p-c990d746.js → p-c61a5830.js} +2 -2
  499. package/dist/core/p-c916d0d2.entry.js +2 -0
  500. package/dist/core/p-c916d0d2.entry.js.map +1 -0
  501. package/dist/core/p-ccec8019.entry.js +2 -0
  502. package/dist/core/p-ccec8019.entry.js.map +1 -0
  503. package/dist/core/p-cd2d335d.entry.js +2 -0
  504. package/dist/core/{p-b3acb156.entry.js.map → p-cd2d335d.entry.js.map} +1 -1
  505. package/dist/core/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  506. package/dist/core/p-cd6c2938.js.map +1 -0
  507. package/dist/core/p-d65cef62.entry.js +2 -0
  508. package/dist/core/{p-aa8adc45.entry.js.map → p-d65cef62.entry.js.map} +1 -1
  509. package/dist/core/p-d836fcde.entry.js +2 -0
  510. package/dist/core/{p-b55fc943.entry.js.map → p-d836fcde.entry.js.map} +1 -1
  511. package/dist/core/p-da1db6fd.js +2 -0
  512. package/dist/core/p-da1db6fd.js.map +1 -0
  513. package/dist/core/p-da7f1e11.entry.js +2 -0
  514. package/dist/core/p-da7f1e11.entry.js.map +1 -0
  515. package/dist/core/p-dea64896.entry.js +2 -0
  516. package/dist/core/{p-ab9ae7ba.entry.js.map → p-dea64896.entry.js.map} +1 -1
  517. package/dist/core/{p-45a30859.js → p-e0e2e9c1.js} +2 -2
  518. package/dist/core/p-e44a0fee.js +2 -0
  519. package/dist/core/p-e61aa53b.entry.js +2 -0
  520. package/dist/core/{p-d2351924.entry.js.map → p-e61aa53b.entry.js.map} +1 -1
  521. package/dist/core/p-e834ee73.entry.js +2 -0
  522. package/dist/core/p-e834ee73.entry.js.map +1 -0
  523. package/dist/core/p-e8ec030e.js +2 -0
  524. package/dist/core/p-e8ec030e.js.map +1 -0
  525. package/dist/core/p-ea44d447.entry.js +2 -0
  526. package/dist/core/p-ea44d447.entry.js.map +1 -0
  527. package/dist/core/p-ea7fdd2e.js +2 -0
  528. package/dist/core/p-ea7fdd2e.js.map +1 -0
  529. package/dist/core/p-ed833334.entry.js +2 -0
  530. package/dist/core/p-ed833334.entry.js.map +1 -0
  531. package/dist/core/p-ed8fc183.entry.js +2 -0
  532. package/dist/core/p-ed8fc183.entry.js.map +1 -0
  533. package/dist/core/p-f4bcf817.entry.js +2 -0
  534. package/dist/core/p-f4bcf817.entry.js.map +1 -0
  535. package/dist/core/p-f4dac942.entry.js +2 -0
  536. package/dist/core/{p-9ff8f059.entry.js.map → p-f4dac942.entry.js.map} +1 -1
  537. package/dist/core/p-f7a4da9d.entry.js +2 -0
  538. package/dist/core/{p-a5489b0e.entry.js.map → p-f7a4da9d.entry.js.map} +1 -1
  539. package/dist/esm/{colors-02c1ea96.js → colors-4cf64720.js} +7 -9
  540. package/dist/esm/colors-4cf64720.js.map +1 -0
  541. package/dist/esm/{constants-6d727976.js → constants-085f9943.js} +2 -2
  542. package/dist/esm/{constants-6d727976.js.map → constants-085f9943.js.map} +1 -1
  543. package/dist/esm/{constants-990365f1.js → constants-372455eb.js} +3 -3
  544. package/dist/esm/{constants-990365f1.js.map → constants-372455eb.js.map} +1 -1
  545. package/dist/esm/{constants-d6418889.js → constants-3ab65c42.js} +2 -2
  546. package/dist/esm/{constants-d6418889.js.map → constants-3ab65c42.js.map} +1 -1
  547. package/dist/esm/{constants-48177684.js → constants-3b914c35.js} +3 -3
  548. package/dist/esm/{constants-48177684.js.map → constants-3b914c35.js.map} +1 -1
  549. package/dist/esm/{constants-d42abf99.js → constants-43f10674.js} +2 -2
  550. package/dist/esm/{constants-d42abf99.js.map → constants-43f10674.js.map} +1 -1
  551. package/dist/esm/{constants-501eb756.js → constants-4da2b3c0.js} +2 -2
  552. package/dist/esm/{constants-501eb756.js.map → constants-4da2b3c0.js.map} +1 -1
  553. package/dist/esm/{constants-c716fa44.js → constants-51f51588.js} +3 -3
  554. package/dist/esm/{constants-c716fa44.js.map → constants-51f51588.js.map} +1 -1
  555. package/dist/esm/{constants-f4e4ede6.js → constants-8429b68f.js} +3 -3
  556. package/dist/esm/{constants-f4e4ede6.js.map → constants-8429b68f.js.map} +1 -1
  557. package/dist/esm/{constants-47e20524.js → constants-9177ea52.js} +3 -3
  558. package/dist/esm/{constants-47e20524.js.map → constants-9177ea52.js.map} +1 -1
  559. package/dist/esm/{constants-7307438d.js → constants-bc210662.js} +3 -3
  560. package/dist/esm/{constants-7307438d.js.map → constants-bc210662.js.map} +1 -1
  561. package/dist/esm/core.js +3 -3
  562. package/dist/esm/{form-472e078d.js → form-713f26fd.js} +7 -6
  563. package/dist/esm/form-713f26fd.js.map +1 -0
  564. package/dist/esm/gov-accordion-item.entry.js +13 -11
  565. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  566. package/dist/esm/gov-accordion.entry.js +6 -7
  567. package/dist/esm/gov-accordion.entry.js.map +1 -1
  568. package/dist/esm/gov-attachments_3.entry.js +13 -14
  569. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  570. package/dist/esm/gov-backdrop.entry.js +7 -8
  571. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  572. package/dist/esm/gov-breadcrumbs.entry.js +7 -8
  573. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  574. package/dist/esm/gov-button.entry.js +12 -13
  575. package/dist/esm/gov-button.entry.js.map +1 -1
  576. package/dist/esm/gov-card.entry.js +7 -8
  577. package/dist/esm/gov-card.entry.js.map +1 -1
  578. package/dist/esm/gov-chip.entry.js +14 -15
  579. package/dist/esm/gov-chip.entry.js.map +1 -1
  580. package/dist/esm/gov-container.entry.js +3 -11
  581. package/dist/esm/gov-container.entry.js.map +1 -1
  582. package/dist/esm/gov-control-group.entry.js +7 -8
  583. package/dist/esm/gov-control-group.entry.js.map +1 -1
  584. package/dist/esm/gov-cookiebar.entry.js +3 -3
  585. package/dist/esm/gov-dialog.entry.js +7 -8
  586. package/dist/esm/gov-dialog.entry.js.map +1 -1
  587. package/dist/esm/gov-dropdown.entry.js +7 -7
  588. package/dist/esm/gov-empty.entry.js +7 -8
  589. package/dist/esm/gov-empty.entry.js.map +1 -1
  590. package/dist/esm/gov-error-code.entry.js +3 -3
  591. package/dist/esm/gov-flex_4.entry.js +332 -0
  592. package/dist/esm/gov-flex_4.entry.js.map +1 -0
  593. package/dist/esm/gov-form-autocomplete.entry.js +8 -10
  594. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  595. package/dist/esm/gov-form-checkbox-group.entry.js +8 -9
  596. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  597. package/dist/esm/gov-form-checkbox.entry.js +12 -13
  598. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  599. package/dist/esm/gov-form-control.entry.js +10 -10
  600. package/dist/esm/gov-form-file.entry.js +16 -13
  601. package/dist/esm/gov-form-file.entry.js.map +1 -1
  602. package/dist/esm/gov-form-group.entry.js +7 -8
  603. package/dist/esm/gov-form-group.entry.js.map +1 -1
  604. package/dist/esm/gov-form-input_2.entry.js +17 -16
  605. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  606. package/dist/esm/gov-form-multi-select.entry.js +16 -32
  607. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  608. package/dist/esm/gov-form-password-power.entry.js +2 -2
  609. package/dist/esm/gov-form-radio-group.entry.js +8 -9
  610. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  611. package/dist/esm/gov-form-radio.entry.js +11 -12
  612. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  613. package/dist/esm/gov-form-search.entry.js +4 -4
  614. package/dist/esm/gov-form-select.entry.js +13 -14
  615. package/dist/esm/gov-form-select.entry.js.map +1 -1
  616. package/dist/esm/gov-form-switch.entry.js +12 -13
  617. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  618. package/dist/esm/gov-grid-item.entry.js +3 -3
  619. package/dist/esm/gov-grid.entry.js +3 -3
  620. package/dist/esm/gov-infobar.entry.js +8 -9
  621. package/dist/esm/gov-infobar.entry.js.map +1 -1
  622. package/dist/esm/gov-layout-column.entry.js +3 -3
  623. package/dist/esm/gov-layout.entry.js +3 -3
  624. package/dist/esm/gov-lifecycle.entry.js +43 -0
  625. package/dist/esm/gov-lifecycle.entry.js.map +1 -0
  626. package/dist/esm/gov-link.entry.js +47 -0
  627. package/dist/esm/gov-link.entry.js.map +1 -0
  628. package/dist/esm/gov-loading.entry.js +6 -7
  629. package/dist/esm/gov-loading.entry.js.map +1 -1
  630. package/dist/esm/gov-message.entry.js +7 -8
  631. package/dist/esm/gov-message.entry.js.map +1 -1
  632. package/dist/esm/gov-pagination.entry.js +9 -10
  633. package/dist/esm/gov-pagination.entry.js.map +1 -1
  634. package/dist/esm/gov-spacer.entry.js +6 -7
  635. package/dist/esm/gov-spacer.entry.js.map +1 -1
  636. package/dist/esm/gov-stepper-item.entry.js +9 -10
  637. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  638. package/dist/esm/gov-stepper.entry.js +8 -9
  639. package/dist/esm/gov-stepper.entry.js.map +1 -1
  640. package/dist/esm/gov-tabs-item.entry.js +7 -7
  641. package/dist/esm/gov-tabs.entry.js +8 -9
  642. package/dist/esm/gov-tabs.entry.js.map +1 -1
  643. package/dist/esm/gov-tag.entry.js +12 -13
  644. package/dist/esm/gov-tag.entry.js.map +1 -1
  645. package/dist/esm/gov-tile.entry.js +4 -4
  646. package/dist/esm/gov-tile.entry.js.map +1 -1
  647. package/dist/esm/gov-tiles.entry.js +3 -3
  648. package/dist/esm/gov-toast.entry.js +11 -12
  649. package/dist/esm/gov-toast.entry.js.map +1 -1
  650. package/dist/esm/gov-tooltip-content.entry.js +6 -6
  651. package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
  652. package/dist/esm/gov-tooltip.entry.js +10 -11
  653. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  654. package/dist/esm/gov-wizard-item.entry.js +11 -12
  655. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  656. package/dist/esm/gov-wizard.entry.js +10 -11
  657. package/dist/esm/gov-wizard.entry.js.map +1 -1
  658. package/dist/esm/{win-cec370ad.js → gov.log-6b64cda6.js} +17 -3
  659. package/dist/esm/gov.log-6b64cda6.js.map +1 -0
  660. package/dist/esm/{index-d8b4eb6c.js → index-c263e031.js} +20 -12
  661. package/dist/esm/index-c263e031.js.map +1 -0
  662. package/dist/esm/loader.js +3 -3
  663. package/dist/esm/{props-c82e1abf.js → props-9d3c7ac1.js} +2 -2
  664. package/dist/esm/{props-c82e1abf.js.map → props-9d3c7ac1.js.map} +1 -1
  665. package/dist/esm/{string.utils-5ce3f551.js → string.utils-1da8f8fb.js} +2 -2
  666. package/dist/esm/string.utils-1da8f8fb.js.map +1 -0
  667. package/dist/esm/{template-3d84d705.js → template-7ecee4d1.js} +2 -20
  668. package/dist/esm/template-7ecee4d1.js.map +1 -0
  669. package/dist/esm/{utils-2b4ef320.js → utils-e10e994d.js} +2 -2
  670. package/dist/esm/{utils-2b4ef320.js.map → utils-e10e994d.js.map} +1 -1
  671. package/dist/esm/{wcag-fa5ce56c.js → wcag-253a4421.js} +3 -4
  672. package/dist/esm/wcag-253a4421.js.map +1 -0
  673. package/dist/hydrate/index.js +431 -10072
  674. package/dist/hydrate/index.mjs +431 -10072
  675. package/dist/stencil.config.js +9 -6
  676. package/dist/stencil.config.js.map +1 -1
  677. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +1 -0
  678. package/dist/types/components/gov-button/button/gov-button.d.ts +1 -1
  679. package/dist/types/components/gov-chip/gov-chip.d.ts +3 -3
  680. package/dist/types/components/gov-container/gov-container.d.ts +0 -6
  681. package/dist/types/components/gov-flex/constants.d.ts +3 -0
  682. package/dist/types/components/gov-flex/gov-flex.d.ts +33 -0
  683. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -4
  684. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -4
  685. package/dist/types/components/gov-form/input/constants.d.ts +1 -0
  686. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -2
  687. package/dist/types/components/gov-form/switch/constants.d.ts +1 -1
  688. package/dist/types/components/gov-icon/constants.d.ts +4 -1
  689. package/dist/types/components/gov-icon/gov-icon.d.ts +8 -3
  690. package/dist/types/components/gov-icon/list.d.ts +1 -1
  691. package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  692. package/dist/types/components/gov-link/constants.d.ts +7 -0
  693. package/dist/types/components/gov-link/gov-link.d.ts +30 -0
  694. package/dist/types/components/gov-tag/gov-tag.d.ts +2 -2
  695. package/dist/types/components/gov-theme-switch/constants.d.ts +9 -0
  696. package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +26 -2
  697. package/dist/types/components/gov-tile/gov-tile.d.ts +1 -1
  698. package/dist/types/components/gov-toast/constants.d.ts +1 -0
  699. package/dist/types/components.d.ts +191 -50
  700. package/dist/types/core/constants/colors.d.ts +6 -8
  701. package/dist/types/helpers/Dom/document.d.ts +4 -0
  702. package/dist/types/helpers/Dom/template.d.ts +0 -1
  703. package/dist/types/helpers/Dom/template.types.d.ts +0 -1
  704. package/dist/types/utils/string.utils.d.ts +1 -0
  705. package/package.json +4 -4
  706. package/dist/cjs/colors-976f6dff.js.map +0 -1
  707. package/dist/cjs/form-c1aec07a.js.map +0 -1
  708. package/dist/cjs/gov-app_2.cjs.entry.js +0 -9891
  709. package/dist/cjs/gov-app_2.cjs.entry.js.map +0 -1
  710. package/dist/cjs/gov-form-label.cjs.entry.js +0 -27
  711. package/dist/cjs/gov-form-label.cjs.entry.js.map +0 -1
  712. package/dist/cjs/gov-icon.cjs.entry.js +0 -161
  713. package/dist/cjs/gov-icon.cjs.entry.js.map +0 -1
  714. package/dist/cjs/gov.log-1e8bab6e.js +0 -21
  715. package/dist/cjs/gov.log-1e8bab6e.js.map +0 -1
  716. package/dist/cjs/index-1af4880c.js.map +0 -1
  717. package/dist/cjs/string.utils-2335838f.js.map +0 -1
  718. package/dist/cjs/template-b070338f.js.map +0 -1
  719. package/dist/cjs/wcag-31089f70.js.map +0 -1
  720. package/dist/cjs/win-587f4614.js.map +0 -1
  721. package/dist/collection/components/gov-app/gov-app.css +0 -68
  722. package/dist/collection/components/gov-app/gov-app.js +0 -93
  723. package/dist/collection/components/gov-app/gov-app.js.map +0 -1
  724. package/dist/components/gov-app.js +0 -2
  725. package/dist/components/gov-app.js.map +0 -1
  726. package/dist/components/p-0075138f.js +0 -2
  727. package/dist/components/p-0075138f.js.map +0 -1
  728. package/dist/components/p-08621bdf.js +0 -2
  729. package/dist/components/p-1366ed8d.js +0 -2
  730. package/dist/components/p-19c681a3.js +0 -2
  731. package/dist/components/p-1a0b3b4f.js +0 -2
  732. package/dist/components/p-1a0b3b4f.js.map +0 -1
  733. package/dist/components/p-255d0471.js +0 -2
  734. package/dist/components/p-255d0471.js.map +0 -1
  735. package/dist/components/p-565120d5.js +0 -2
  736. package/dist/components/p-736e4917.js +0 -2
  737. package/dist/components/p-7501abe8.js +0 -2
  738. package/dist/components/p-7501abe8.js.map +0 -1
  739. package/dist/components/p-778e3fff.js +0 -2
  740. package/dist/components/p-778e3fff.js.map +0 -1
  741. package/dist/components/p-7fd16831.js +0 -2
  742. package/dist/components/p-7fd16831.js.map +0 -1
  743. package/dist/components/p-95d41a3b.js.map +0 -1
  744. package/dist/components/p-9a93146e.js +0 -2
  745. package/dist/components/p-ae3dada7.js.map +0 -1
  746. package/dist/components/p-ae7e6127.js +0 -2
  747. package/dist/components/p-cc90a508.js +0 -2
  748. package/dist/components/p-cc90a508.js.map +0 -1
  749. package/dist/components/p-d5f25595.js +0 -2
  750. package/dist/components/p-d5f25595.js.map +0 -1
  751. package/dist/components/p-dbae2385.js +0 -2
  752. package/dist/components/p-dcaf0383.js +0 -2
  753. package/dist/components/p-dcaf0383.js.map +0 -1
  754. package/dist/components/p-e183a7c7.js +0 -2
  755. package/dist/components/p-e3aeaca0.js +0 -2
  756. package/dist/components/p-e3aeaca0.js.map +0 -1
  757. package/dist/components/p-edd1417b.js +0 -2
  758. package/dist/core/p-006e52f1.entry.js +0 -2
  759. package/dist/core/p-006e52f1.entry.js.map +0 -1
  760. package/dist/core/p-0075138f.js +0 -2
  761. package/dist/core/p-0075138f.js.map +0 -1
  762. package/dist/core/p-023787b3.entry.js +0 -2
  763. package/dist/core/p-023787b3.entry.js.map +0 -1
  764. package/dist/core/p-052cc573.js +0 -2
  765. package/dist/core/p-0a952b3c.entry.js +0 -2
  766. package/dist/core/p-0a952b3c.entry.js.map +0 -1
  767. package/dist/core/p-0ebc8365.entry.js +0 -2
  768. package/dist/core/p-0ebc8365.entry.js.map +0 -1
  769. package/dist/core/p-169b67af.js +0 -2
  770. package/dist/core/p-17015e36.entry.js +0 -2
  771. package/dist/core/p-182189d2.entry.js +0 -2
  772. package/dist/core/p-2614044c.js +0 -2
  773. package/dist/core/p-28a7d3f7.js +0 -2
  774. package/dist/core/p-2ed3afef.entry.js +0 -2
  775. package/dist/core/p-2effdd60.entry.js +0 -2
  776. package/dist/core/p-2effdd60.entry.js.map +0 -1
  777. package/dist/core/p-35e66bef.entry.js +0 -2
  778. package/dist/core/p-35e66bef.entry.js.map +0 -1
  779. package/dist/core/p-3f2b803c.entry.js +0 -2
  780. package/dist/core/p-477a5027.entry.js +0 -2
  781. package/dist/core/p-477a5027.entry.js.map +0 -1
  782. package/dist/core/p-47e364bb.entry.js +0 -2
  783. package/dist/core/p-47e364bb.entry.js.map +0 -1
  784. package/dist/core/p-4bce896c.js +0 -2
  785. package/dist/core/p-5c88f415.entry.js +0 -2
  786. package/dist/core/p-5c88f415.entry.js.map +0 -1
  787. package/dist/core/p-5dc0af54.entry.js +0 -2
  788. package/dist/core/p-5dc0af54.entry.js.map +0 -1
  789. package/dist/core/p-5dcbfca3.entry.js +0 -2
  790. package/dist/core/p-663d3db2.entry.js +0 -2
  791. package/dist/core/p-69d56f17.js +0 -2
  792. package/dist/core/p-6aa40794.js +0 -2
  793. package/dist/core/p-6b42a387.entry.js +0 -2
  794. package/dist/core/p-6d772ff9.entry.js +0 -2
  795. package/dist/core/p-6ed147a6.entry.js +0 -2
  796. package/dist/core/p-6ed147a6.entry.js.map +0 -1
  797. package/dist/core/p-7cf554e6.entry.js +0 -2
  798. package/dist/core/p-81b0848c.entry.js +0 -2
  799. package/dist/core/p-81b0848c.entry.js.map +0 -1
  800. package/dist/core/p-83039b10.entry.js +0 -2
  801. package/dist/core/p-904de5e6.entry.js +0 -2
  802. package/dist/core/p-904de5e6.entry.js.map +0 -1
  803. package/dist/core/p-91a9cd24.entry.js +0 -2
  804. package/dist/core/p-95d41a3b.js.map +0 -1
  805. package/dist/core/p-963f9fcd.entry.js +0 -2
  806. package/dist/core/p-9b41ac88.entry.js +0 -2
  807. package/dist/core/p-9d0f20ec.entry.js +0 -2
  808. package/dist/core/p-9d0f20ec.entry.js.map +0 -1
  809. package/dist/core/p-9dde00d8.entry.js +0 -2
  810. package/dist/core/p-9dde00d8.entry.js.map +0 -1
  811. package/dist/core/p-9ff8f059.entry.js +0 -2
  812. package/dist/core/p-a16229c6.entry.js +0 -2
  813. package/dist/core/p-a16229c6.entry.js.map +0 -1
  814. package/dist/core/p-a1e95a5f.js.map +0 -1
  815. package/dist/core/p-a1ebb4da.entry.js +0 -2
  816. package/dist/core/p-a1ebb4da.entry.js.map +0 -1
  817. package/dist/core/p-a21dc94f.js +0 -2
  818. package/dist/core/p-a53a277a.entry.js +0 -2
  819. package/dist/core/p-a5489b0e.entry.js +0 -2
  820. package/dist/core/p-a54f1db9.entry.js +0 -2
  821. package/dist/core/p-a693ffbf.js +0 -2
  822. package/dist/core/p-a693ffbf.js.map +0 -1
  823. package/dist/core/p-aa8adc45.entry.js +0 -2
  824. package/dist/core/p-ab9ae7ba.entry.js +0 -2
  825. package/dist/core/p-b3acb156.entry.js +0 -2
  826. package/dist/core/p-b48a4aa0.js +0 -2
  827. package/dist/core/p-b48a4aa0.js.map +0 -1
  828. package/dist/core/p-b55fc943.entry.js +0 -2
  829. package/dist/core/p-b838bb27.entry.js +0 -2
  830. package/dist/core/p-c214c202.entry.js +0 -2
  831. package/dist/core/p-c214c202.entry.js.map +0 -1
  832. package/dist/core/p-c4c7cb24.entry.js +0 -2
  833. package/dist/core/p-d2351924.entry.js +0 -2
  834. package/dist/core/p-db940455.entry.js +0 -2
  835. package/dist/core/p-dc3fab19.entry.js +0 -2
  836. package/dist/core/p-e0d428c9.js +0 -2
  837. package/dist/core/p-e0d428c9.js.map +0 -1
  838. package/dist/core/p-e134b123.entry.js +0 -2
  839. package/dist/core/p-e3aeaca0.js +0 -2
  840. package/dist/core/p-e3aeaca0.js.map +0 -1
  841. package/dist/core/p-e4978aab.entry.js +0 -2
  842. package/dist/core/p-edc05eff.entry.js +0 -2
  843. package/dist/core/p-edc05eff.entry.js.map +0 -1
  844. package/dist/core/p-eeb9cb73.entry.js +0 -2
  845. package/dist/core/p-f141ad5e.entry.js +0 -2
  846. package/dist/core/p-f1be099b.entry.js +0 -2
  847. package/dist/core/p-f456bd71.entry.js +0 -2
  848. package/dist/core/p-fa7caad6.entry.js +0 -2
  849. package/dist/core/p-fa7caad6.entry.js.map +0 -1
  850. package/dist/core/p-fc90bf06.entry.js +0 -2
  851. package/dist/core/p-fc90bf06.entry.js.map +0 -1
  852. package/dist/esm/colors-02c1ea96.js.map +0 -1
  853. package/dist/esm/form-472e078d.js.map +0 -1
  854. package/dist/esm/gov-app_2.entry.js +0 -9886
  855. package/dist/esm/gov-app_2.entry.js.map +0 -1
  856. package/dist/esm/gov-form-label.entry.js +0 -23
  857. package/dist/esm/gov-form-label.entry.js.map +0 -1
  858. package/dist/esm/gov-icon.entry.js +0 -157
  859. package/dist/esm/gov-icon.entry.js.map +0 -1
  860. package/dist/esm/gov.log-6e9faad2.js +0 -19
  861. package/dist/esm/gov.log-6e9faad2.js.map +0 -1
  862. package/dist/esm/index-d8b4eb6c.js.map +0 -1
  863. package/dist/esm/string.utils-5ce3f551.js.map +0 -1
  864. package/dist/esm/template-3d84d705.js.map +0 -1
  865. package/dist/esm/wcag-fa5ce56c.js.map +0 -1
  866. package/dist/esm/win-cec370ad.js.map +0 -1
  867. package/dist/types/components/gov-app/gov-app.d.ts +0 -37
  868. /package/dist/components/{p-19c681a3.js.map → p-0b3574c2.js.map} +0 -0
  869. /package/dist/components/{p-08621bdf.js.map → p-44a8a668.js.map} +0 -0
  870. /package/dist/components/{p-736e4917.js.map → p-73938936.js.map} +0 -0
  871. /package/dist/components/{p-565120d5.js.map → p-76d604c6.js.map} +0 -0
  872. /package/dist/components/{p-e183a7c7.js.map → p-7be2301a.js.map} +0 -0
  873. /package/dist/components/{p-edd1417b.js.map → p-7f3becc5.js.map} +0 -0
  874. /package/dist/components/{p-7f8a24a7.js.map → p-860520b0.js.map} +0 -0
  875. /package/dist/components/{p-59737af9.js.map → p-a521c59a.js.map} +0 -0
  876. /package/dist/components/{p-ae7e6127.js.map → p-a6b7a6c2.js.map} +0 -0
  877. /package/dist/components/{p-6e19816b.js.map → p-ac359044.js.map} +0 -0
  878. /package/dist/components/{p-0c93dd39.js.map → p-c61a5830.js.map} +0 -0
  879. /package/dist/core/{p-a54f1db9.entry.js.map → p-00d153bf.entry.js.map} +0 -0
  880. /package/dist/core/{p-169b67af.js.map → p-0b3574c2.js.map} +0 -0
  881. /package/dist/core/{p-3f2b803c.entry.js.map → p-0be19b89.entry.js.map} +0 -0
  882. /package/dist/core/{p-f141ad5e.entry.js.map → p-22fa411d.entry.js.map} +0 -0
  883. /package/dist/core/{p-b838bb27.entry.js.map → p-30eaeeec.entry.js.map} +0 -0
  884. /package/dist/core/{p-69d56f17.js.map → p-3bbb77a0.js.map} +0 -0
  885. /package/dist/core/{p-6b42a387.entry.js.map → p-535316b4.entry.js.map} +0 -0
  886. /package/dist/core/{p-91a9cd24.entry.js.map → p-5396935e.entry.js.map} +0 -0
  887. /package/dist/core/{p-42d9924c.js.map → p-56efd4a2.js.map} +0 -0
  888. /package/dist/core/{p-e134b123.entry.js.map → p-5b2131c1.entry.js.map} +0 -0
  889. /package/dist/core/{p-60658ae9.js.map → p-5f1000da.js.map} +0 -0
  890. /package/dist/core/{p-c4c7cb24.entry.js.map → p-7b7e502b.entry.js.map} +0 -0
  891. /package/dist/core/{p-2614044c.js.map → p-7ba4daf4.js.map} +0 -0
  892. /package/dist/core/{p-6aa40794.js.map → p-7f3becc5.js.map} +0 -0
  893. /package/dist/core/{p-e9a6cd71.js.map → p-860520b0.js.map} +0 -0
  894. /package/dist/core/{p-4bce896c.js.map → p-a521c59a.js.map} +0 -0
  895. /package/dist/core/{p-c990d746.js.map → p-c61a5830.js.map} +0 -0
  896. /package/dist/core/{p-45a30859.js.map → p-e0e2e9c1.js.map} +0 -0
  897. /package/dist/core/{p-052cc573.js.map → p-e44a0fee.js.map} +0 -0
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h, F as Fragment, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { a as pick } from './utils-2b4ef320.js';
1
+ import { r as registerInstance, h, F as Fragment, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { p as pick } from './utils-e10e994d.js';
3
3
  import { S as Sizes } from './sizes-5b9e579f.js';
4
- import { g as govHost } from './template-3d84d705.js';
4
+ import { g as govHost } from './template-7ecee4d1.js';
5
5
 
6
6
  pick(Sizes, ['_S', '_M', '_L']);
7
7
  const TileClass = {
@@ -25,7 +25,7 @@ const GovTile = class {
25
25
  this.h = govHost(this.host);
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: '64992b51709754e4b094dffaacb32439800e878f', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, h("slot", { key: '807706674b6d398a41a25bcbb100742a8bc8cebc', name: "icon" }), h("div", { key: 'b46011ea1ced783cf69187e18739b67c45137074', class: TileClass.content }, h("div", { key: '9e491d7ddc78c02290102623db5c2d639e19bb3e', class: TileClass.text }, h("div", { key: '12ec2a5d7988d7772f3228f79f1473378e5fe97d', class: TileClass.title }, this.href ? (h(Fragment, null, h("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, h("slot", { name: "title" })), h("span", { class: TileClass.icon }, h("gov-icon", { name: "chevron-right" })))) : (h("slot", { name: "title" }))), h("div", { key: '6ef9ba50fcd48facb2afea70d3881141e3c6e54a', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, h("slot", { key: 'c7d77b3642179b42a3b54423e53197385c0970e4' }))), h("slot", { key: 'efe6564689ed24e259985fddfe53ddf70ac76238', name: "button" }))));
28
+ return (h(Host, { key: '3fd4f5bb8f7cdcdb5a6bbed610ed4ab6ec2837f5', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, h("slot", { key: '97179af17c8f8b16de49ca36a7c548d20e53cbdf', name: "icon" }), h("div", { key: 'a60a8e60effd1337cc11c5afb347ab395673d724', class: TileClass.content }, h("div", { key: 'b27682c73305417442d9ebfd27e02cc80d10034c', class: TileClass.text }, h("div", { key: '0c891f670607dde529d5ef6b1c86a843b7600a30', class: TileClass.title }, this.href ? (h(Fragment, null, h("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, h("slot", { name: "title" })), h("span", { class: TileClass.icon }, h("gov-icon", { name: "chevron-right", type: "components" })))) : (h("slot", { name: "title" }))), h("div", { key: 'dcb5f3be57fa6ebaa507c12c9394f1b12837856e', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, h("slot", { key: 'c3b7fe9ef111769219f1d915929112fe083927c8' }))), h("slot", { key: '98173ea276fedd176720b79e5a55b3b2d5272536', name: "button" }))));
29
29
  }
30
30
  /**
31
31
  * Returns a clickable element instance
@@ -1 +1 @@
1
- {"file":"gov-tile.entry.js","mappings":";;;;;AAIyB,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAC;AAGjD,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,gBAAgB;IACtB,UAAU,EAAE,sBAAsB;CAClC;;MCNY,OAAO;IA0BnB;;oBArBuD,GAAG;;wBAQK,KAAK;;;QAcnE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EACxC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,SAAS,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,IAEpC,6DAAM,IAAI,EAAC,MAAM,GAAE,EACnB,4DAAK,KAAK,EAAE,SAAS,CAAC,OAAO,IAC5B,4DAAK,KAAK,EAAE,SAAS,CAAC,IAAI,IACzB,4DAAK,KAAK,EAAE,SAAS,CAAC,KAAK,IACzB,IAAI,CAAC,IAAI,IACT,EAAC,QAAQ,QACR,SACC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,SAAS,CAAC,IAAI,EACrB,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,UAAU,GAAG,EAAuC,CAAC,IACtE,YAAM,IAAI,EAAC,OAAO,GAAE,CACjB,EACJ,YAAM,KAAK,EAAE,SAAS,CAAC,IAAI,IAC1B,gBAAU,IAAI,EAAC,eAAe,GAAE,CAC1B,CACG,KAEX,YAAM,IAAI,EAAC,OAAO,GAAE,CACpB,CACI,EACN,4DAAK,KAAK,EAAE,GAAG,SAAS,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,SAAS,CAAC,UAAU,WAAW,GAAG,EAAE,EAAE,IAC3F,8DAAO,CACF,CACD,EACN,6DAAM,IAAI,EAAC,QAAQ,GAAE,CAChB,CACA,EACP;KACD;;;;IAMD,MAAM,aAAa;QAClB,OAAO,IAAI,CAAC,UAAU,CAAA;KACtB;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-tile/constants.ts","../../../packages/core/src/components/gov-tile/gov-tile.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TileSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type TileSizesType = `${ValueOf<typeof TileSizes>}`\n\nexport const TileClass = {\n\troot: 'gov-tile',\n\tlink: 'gov-tile__link',\n\tcontent: 'gov-tile__content',\n\ttext: 'gov-tile__text',\n\ttitle: 'gov-tile__title',\n\ticon: 'gov-tile__icon',\n\tannotation: 'gov-tile__annotation',\n}\n","import {Component, Element, Fragment, h, Host, Method, Prop} from \"@stencil/core\"\nimport {TileClass, TileSizesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {ButtonTargetType} from \"../gov-button/button/constants\"\n\n@Component({\n\ttag: \"gov-tile\",\n})\nexport class GovTile {\n\t@Element() host: HTMLGovTileElement\n\t/**\n\t * Tile’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: TileSizesType = \"m\"\n\t/**\n\t * Style variation of the tile.\n\t */\n\t@Prop() readonly orientation: \"vertical\" | \"horizontal\"\n\t/**\n\t * Tiles border\n\t */\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\n\t/**\n\t * Link on whole tile\n\t */\n\t@Prop({reflect: true}) 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?: ButtonTargetType\n\tprivate triggerRef?: HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TileClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t orientation={this.orientation}\n\t\t\t\t clickable={this.href ? true : null}\n\t\t\t>\n\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t<div class={TileClass.content}>\n\t\t\t\t\t<div class={TileClass.text}>\n\t\t\t\t\t\t<div class={TileClass.title}>\n\t\t\t\t\t\t\t{this.href ? (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\thref={this.href}\n\t\t\t\t\t\t\t\t\t\ttarget={this.target}\n\t\t\t\t\t\t\t\t\t\tclass={TileClass.link}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLSpanElement)}>\n\t\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t<span class={TileClass.icon}>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-right\"/>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={`${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}`}>\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot name=\"button\"/>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-tile.entry.js","mappings":";;;;;AAIyB,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAC;AAGjD,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,gBAAgB;IACtB,UAAU,EAAE,sBAAsB;CAClC;;MCNY,OAAO;IA0BnB;;oBArBuD,GAAG;;wBAQK,KAAK;;;QAcnE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EACxC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,SAAS,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,IAEpC,6DAAM,IAAI,EAAC,MAAM,GAAE,EACnB,4DAAK,KAAK,EAAE,SAAS,CAAC,OAAO,IAC5B,4DAAK,KAAK,EAAE,SAAS,CAAC,IAAI,IACzB,4DAAK,KAAK,EAAE,SAAS,CAAC,KAAK,IACzB,IAAI,CAAC,IAAI,IACT,EAAC,QAAQ,QACR,SACC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,SAAS,CAAC,IAAI,EACrB,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,UAAU,GAAG,EAAuC,CAAC,IACtE,YAAM,IAAI,EAAC,OAAO,GAAE,CACjB,EACJ,YAAM,KAAK,EAAE,SAAS,CAAC,IAAI,IAC1B,gBAAU,IAAI,EAAC,eAAe,EAAC,IAAI,EAAC,YAAY,GAAY,CACtD,CACG,KAEX,YAAM,IAAI,EAAC,OAAO,GAAE,CACpB,CACI,EACN,4DAAK,KAAK,EAAE,GAAG,SAAS,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,SAAS,CAAC,UAAU,WAAW,GAAG,EAAE,EAAE,IAC3F,8DAAO,CACF,CACD,EACN,6DAAM,IAAI,EAAC,QAAQ,GAAE,CAChB,CACA,EACP;KACD;;;;IAMD,MAAM,aAAa;QAClB,OAAO,IAAI,CAAC,UAAU,CAAA;KACtB;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-tile/constants.ts","../../../packages/core/src/components/gov-tile/gov-tile.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TileSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type TileSizesType = `${ValueOf<typeof TileSizes>}`\n\nexport const TileClass = {\n\troot: 'gov-tile',\n\tlink: 'gov-tile__link',\n\tcontent: 'gov-tile__content',\n\ttext: 'gov-tile__text',\n\ttitle: 'gov-tile__title',\n\ticon: 'gov-tile__icon',\n\tannotation: 'gov-tile__annotation',\n}\n","import {Component, Element, Fragment, h, Host, Method, Prop} from \"@stencil/core\"\nimport {TileClass, TileSizesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {ButtonTargetType} from \"../gov-button/button/constants\"\n\n@Component({\n\ttag: \"gov-tile\",\n})\nexport class GovTile {\n\t@Element() host: HTMLGovTileElement\n\t/**\n\t * Tile’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: TileSizesType = \"m\"\n\t/**\n\t * Style variation of the tile.\n\t */\n\t@Prop() readonly orientation: \"vertical\" | \"horizontal\"\n\t/**\n\t * Tiles border\n\t */\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\n\t/**\n\t * Link on whole tile\n\t */\n\t@Prop({reflect: true}) 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?: ButtonTargetType\n\tprivate triggerRef?: HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TileClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t orientation={this.orientation}\n\t\t\t\t clickable={this.href ? true : null}\n\t\t\t>\n\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t<div class={TileClass.content}>\n\t\t\t\t\t<div class={TileClass.text}>\n\t\t\t\t\t\t<div class={TileClass.title}>\n\t\t\t\t\t\t\t{this.href ? (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\thref={this.href}\n\t\t\t\t\t\t\t\t\t\ttarget={this.target}\n\t\t\t\t\t\t\t\t\t\tclass={TileClass.link}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLSpanElement)}>\n\t\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t<span class={TileClass.icon}>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-right\" type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<slot name=\"title\"/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={`${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}`}>\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot name=\"button\"/>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { g as govHost } from './template-3d84d705.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { g as govHost } from './template-7ecee4d1.js';
3
3
 
4
4
  const TilesClass = {
5
5
  root: 'gov-tiles',
@@ -12,7 +12,7 @@ const GovTiles = class {
12
12
  this.h = govHost(this.host);
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '9d2c26d6717e7d3e5780e322823f94773e515f97', class: this.h.classes(TilesClass.root) }, h("slot", { key: '7b4557531dcabfae72d123a578d43764cc3f03b5' })));
15
+ return (h(Host, { key: 'edb08ecaceb976d51978baf7ba3779d7e4e333cc', class: this.h.classes(TilesClass.root) }, h("slot", { key: 'a4aa065a8e108b9ceb692c264dec8c4fc559f80e' })));
16
16
  }
17
17
  get host() { return getElement(this); }
18
18
  };
@@ -1,13 +1,12 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { v as validateProp } from './props-c82e1abf.js';
3
- import { C as Colors } from './colors-02c1ea96.js';
4
- import { a as pick } from './utils-2b4ef320.js';
5
- import { g as govHost } from './template-3d84d705.js';
6
- import { c as createID } from './string.utils-5ce3f551.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { v as validateProp } from './props-9d3c7ac1.js';
3
+ import { C as Colors } from './colors-4cf64720.js';
4
+ import { p as pick } from './utils-e10e994d.js';
5
+ import { g as govHost } from './template-7ecee4d1.js';
6
+ import { c as createID } from './string.utils-1da8f8fb.js';
7
7
  import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
8
8
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
9
- import './gov.log-6e9faad2.js';
10
- import './win-cec370ad.js';
9
+ import './gov.log-6b64cda6.js';
11
10
 
12
11
  const ToastColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING']);
13
12
  var ToastType;
@@ -19,6 +18,7 @@ const ToastClass = {
19
18
  root: 'gov-toast',
20
19
  hidden: 'gov-toast--hidden',
21
20
  content: 'gov-toast__content',
21
+ icon: 'gov-toast__icon',
22
22
  close: 'gov-toast__close',
23
23
  timer: 'gov-toast__timer',
24
24
  };
@@ -72,12 +72,11 @@ const GovToast = class {
72
72
  }
73
73
  }
74
74
  render() {
75
- return (h(Host, { key: '940d040e89e39a45d89398d0b1bf7df0ad541132', class: this.h.classes(ToastClass.root), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, color: this.color, type: this.type, style: { "--toast-duration": this.time + "ms" } }, this.h.hasSlot("icon") && (h("slot", { key: '83468790661861781f8c1a0cbbb3b9a81f4a3120', name: "icon" })), h("div", Object.assign({ key: 'ae1ade607226894dfa26a0a5d9cd8dc727d23ea7', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), h("slot", { key: 'a53e4ec532d32417cd64950cc174c63c83e1a7eb' })), h("gov-button", { key: '5e8ff6bc372ff702e883386e0968a61a297afdf5', size: "s", "aria-label": this.accessibleCloseLabel, color: this.isBold ? this.color : "neutral", type: "base", "on-gov-click": this.onCloseHandler.bind(this), class: ToastClass.close }, this.closeLabel ? this.closeLabel : h("gov-icon", { name: "x-lg" })), h("div", { key: 'bf031915e9731e8f34a922651948f5a2efd8e95c', class: ToastClass.timer })));
75
+ return (h(Host, { key: '897da92a579e5854078657783d54c4fcca1f0311', class: this.h.classes(ToastClass.root), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, color: this.color, type: this.type, style: { "--toast-duration": this.time + "ms" } }, this.h.hasSlot("icon") && (h("span", { key: '50b2dde54f6e566f95c81bbd5dd6c27870338a70', class: ToastClass.icon }, h("slot", { key: 'f47d01268f3098f56b064fc41dc18bab64771073', name: "icon" }))), h("div", Object.assign({ key: '4e508603bd41bc5375ecf2d84e5a1df239fcc6c4', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), h("slot", { key: 'ff7e107c1486319621a1832bdcc0387f56dc56db' })), h("gov-button", { key: 'dfe2964f40d66df0335219b9bc66f5a316ecf8ca', size: "s", "aria-label": this.accessibleCloseLabel, color: this.isBold ? this.color : "neutral", type: "base", "on-gov-click": this.onCloseHandler.bind(this), class: ToastClass.close }, this.closeLabel ? this.closeLabel : h("gov-icon", { name: "x-lg", type: "components" })), h("div", { key: '5f0c872a74f8cac07431903519ecc191322d4397', class: ToastClass.timer })));
76
76
  }
77
77
  onCloseHandler() {
78
- this.destroy()
79
- .then(() => this.govClose.emit(this.toastId))
80
- .catch();
78
+ this.govClose.emit(this.toastId);
79
+ this.destroy().catch();
81
80
  }
82
81
  get isBold() {
83
82
  return this.type === "bold";
@@ -1 +1 @@
1
- {"file":"gov-toast.entry.js","mappings":";;;;;;;;;;;AAIO,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,S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8DAAO,CACF,EAEN,mEACC,IAAI,EAAC,GAAG,gBACI,IAAI,CAAC,oBAAoB,EACrC,KAAK,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,GAAG,SAAS,EAC3C,IAAI,EAAC,MAAM,kBACG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAC5C,KAAK,EAAE,UAAU,CAAC,KAAK,IAEtB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,GAAG,gBAAU,IAAI,EAAC,MAAM,GAAY,CAC1D,EAEb,4DAAK,KAAK,EAAE,UAAU,CAAC,KAAK,GAAQ,CAC9B,EACP;KACD;IAEO,cAAc;QACrB,IAAI,CAAC,OAAO,EAAE;aACZ,IAAI,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aAC5C,KAAK,EAAE,CAAA;KACT;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;KAC3B;IAED,IAAI,OAAO;QACV,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,CAAA;KACnD;;;;IAMD,MAAM,OAAO;QACZ,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC1B,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,mBAAmB,IAAI,CAAC,OAAO,IAAI,CAAC,CAAA;QACzE,IAAI,KAAK,EAAE;YACV,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;YACtC,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,UAAU,EAAE;gBACvC,KAAK,CAAC,MAAM,EAAE,CAAA;aACd;SACD;KACD;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-toast/constants.ts","../../../packages/core/src/components/gov-toast/gov-toast.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const ToastColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ToastColorType = `${ValueOf<typeof ToastColors>}`\n\nexport enum ToastType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type ToastTypesType = `${ValueOf<typeof ToastType>}`\n\nexport const ToastClass = {\n\troot: 'gov-toast',\n\thidden: 'gov-toast--hidden',\n\tcontent: 'gov-toast__content',\n\tclose: 'gov-toast__close',\n\ttimer: 'gov-toast__timer',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {ToastClass, ToastColors, ToastColorType, ToastTypesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {createID} from \"../../utils/string.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-toast\",\n})\nexport class GovToast {\n\tprivate h: GovHost\n\tprivate timeout\n\tprivate readonly toastId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.toastId = createID(\"GovToast\")\n\t}\n\n\t@Element() host: HTMLGovToastElement\n\t/**\n\t * Style variation of the toast message.\n\t */\n\t@Prop() readonly color?: ToastColorType = \"primary\"\n\n\t/**\n\t * Toast’s gravity\n\t */\n\t@Prop() readonly gravity: \"top\" | \"bottom\" = \"top\"\n\t/**\n\t * Toast’s position\n\t */\n\t@Prop() readonly position: \"left\" | \"center\" | \"right\" = \"right\"\n\t/**\n\t * Toast type\n\t */\n\t@Prop() readonly type?: ToastTypesType = \"bold\"\n\t/**\n\t * Number of milliseconds to wait before Toast disappear\n\t */\n\t@Prop() readonly time: number = 0\n\t/**\n\t * Closing button texting instead of icons\n\t */\n\t@Prop({attribute: \"close-label\"}) readonly closeLabel: string\n\t/**\n\t * Aria label for the closing button. It is mandatory if the alert is closable\n\t */\n\t@Prop({attribute: \"accessible-close-label\"}) readonly accessibleCloseLabel: string\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: \"gov-close\"}) govClose: EventEmitter<string>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ToastColors, newValue, ToastClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\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.runTimer()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\n\tdisconnectedCallback() {\n\t\tclearTimeout(this.timeout)\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\tprivate runTimer() {\n\t\tif (this.isTimer) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.classList.add(ToastClass.hidden)\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.destroy().catch()\n\t\t\t\t\tthis.govClose.emit(this.toastId)\n\t\t\t\t}, 600)\n\t\t\t}, this.time)\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(ToastClass.root)}\n\t\t\t\tdata-toast-id={this.toastId}\n\t\t\t\tgravity={this.gravity}\n\t\t\t\tposition={this.position}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tstyle={{\"--toast-duration\": this.time + \"ms\"}}\n\t\t\t>\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={ToastClass.content} {...this.inheritedAttributes} aria-live=\"polite\" role=\"status\">\n\t\t\t\t\t<slot/>\n\t\t\t\t</div>\n\n\t\t\t\t<gov-button\n\t\t\t\t\tsize=\"s\"\n\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\tclass={ToastClass.close}\n\t\t\t\t>\n\t\t\t\t\t{this.closeLabel ? this.closeLabel : <gov-icon name=\"x-lg\"></gov-icon>}\n\t\t\t\t</gov-button>\n\n\t\t\t\t<div class={ToastClass.timer}></div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(): void {\n\t\tthis.destroy()\n\t\t\t.then(() => this.govClose.emit(this.toastId))\n\t\t\t.catch()\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n\n\tget isTimer(): boolean {\n\t\treturn Number.isInteger(this.time) && this.time > 0\n\t}\n\n\t/**\n\t * Remove toast from dom\n\t */\n\t@Method()\n\tasync destroy(): Promise<void> {\n\t\tclearTimeout(this.timeout)\n\t\tconst toast = document.querySelector(`[data-toast-id=\"${this.toastId}\"]`)\n\t\tif (toast) {\n\t\t\ttoast.classList.add(ToastClass.hidden)\n\t\t\tif (typeof toast.remove === \"function\") {\n\t\t\t\ttoast.remove()\n\t\t\t}\n\t\t}\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-toast.entry.js","mappings":";;;;;;;;;;AAIO,MAAM,WAA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AAK,CAAC,MAAM,EAAE,CAAA;aACd;SACD;KACD;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-toast/constants.ts","../../../packages/core/src/components/gov-toast/gov-toast.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const ToastColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ToastColorType = `${ValueOf<typeof ToastColors>}`\n\nexport enum ToastType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type ToastTypesType = `${ValueOf<typeof ToastType>}`\n\nexport const ToastClass = {\n\troot: 'gov-toast',\n\thidden: 'gov-toast--hidden',\n\tcontent: 'gov-toast__content',\n\ticon: 'gov-toast__icon',\n\tclose: 'gov-toast__close',\n\ttimer: 'gov-toast__timer',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {ToastClass, ToastColors, ToastColorType, ToastTypesType} from \"./constants\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {createID} from \"../../utils/string.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-toast\",\n})\nexport class GovToast {\n\tprivate h: GovHost\n\tprivate timeout\n\tprivate readonly toastId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.toastId = createID(\"GovToast\")\n\t}\n\n\t@Element() host: HTMLGovToastElement\n\t/**\n\t * Style variation of the toast message.\n\t */\n\t@Prop() readonly color?: ToastColorType = \"primary\"\n\n\t/**\n\t * Toast’s gravity\n\t */\n\t@Prop() readonly gravity: \"top\" | \"bottom\" = \"top\"\n\t/**\n\t * Toast’s position\n\t */\n\t@Prop() readonly position: \"left\" | \"center\" | \"right\" = \"right\"\n\t/**\n\t * Toast type\n\t */\n\t@Prop() readonly type?: ToastTypesType = \"bold\"\n\t/**\n\t * Number of milliseconds to wait before Toast disappear\n\t */\n\t@Prop() readonly time: number = 0\n\t/**\n\t * Closing button texting instead of icons\n\t */\n\t@Prop({attribute: \"close-label\"}) readonly closeLabel: string\n\t/**\n\t * Aria label for the closing button. It is mandatory if the alert is closable\n\t */\n\t@Prop({attribute: \"accessible-close-label\"}) readonly accessibleCloseLabel: string\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: \"gov-close\"}) govClose: EventEmitter<string>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ToastColors, newValue, ToastClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\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.runTimer()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\n\tdisconnectedCallback() {\n\t\tclearTimeout(this.timeout)\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\tprivate runTimer() {\n\t\tif (this.isTimer) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.classList.add(ToastClass.hidden)\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.destroy().catch()\n\t\t\t\t\tthis.govClose.emit(this.toastId)\n\t\t\t\t}, 600)\n\t\t\t}, this.time)\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(ToastClass.root)}\n\t\t\t\tdata-toast-id={this.toastId}\n\t\t\t\tgravity={this.gravity}\n\t\t\t\tposition={this.position}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tstyle={{\"--toast-duration\": this.time + \"ms\"}}\n\t\t\t>\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<span class={ToastClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={ToastClass.content} {...this.inheritedAttributes} aria-live=\"polite\" role=\"status\">\n\t\t\t\t\t<slot/>\n\t\t\t\t</div>\n\n\t\t\t\t<gov-button\n\t\t\t\t\tsize=\"s\"\n\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\tclass={ToastClass.close}\n\t\t\t\t>\n\t\t\t\t\t{this.closeLabel ? this.closeLabel : <gov-icon name=\"x-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t</gov-button>\n\n\t\t\t\t<div class={ToastClass.timer}></div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(): void {\n\t\tthis.govClose.emit(this.toastId)\n\t\tthis.destroy().catch()\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n\n\tget isTimer(): boolean {\n\t\treturn Number.isInteger(this.time) && this.time > 0\n\t}\n\n\t/**\n\t * Remove toast from dom\n\t */\n\t@Method()\n\tasync destroy(): Promise<void> {\n\t\tclearTimeout(this.timeout)\n\t\tconst toast = document.querySelector(`[data-toast-id=\"${this.toastId}\"]`)\n\t\tif (toast) {\n\t\t\ttoast.classList.add(ToastClass.hidden)\n\t\t\tif (typeof toast.remove === \"function\") {\n\t\t\t\ttoast.remove()\n\t\t\t}\n\t\t}\n\t}\n}\n"],"version":3}
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { T as TooltipColors, a as TooltipSize, b as TooltipContentClass } from './constants-48177684.js';
3
- import { c as toBoolAttr } from './template-3d84d705.js';
4
- import './colors-02c1ea96.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { T as TooltipColors, a as TooltipSize, b as TooltipContentClass } from './constants-3b914c35.js';
3
+ import { c as toBoolAttr } from './template-7ecee4d1.js';
4
+ import './colors-4cf64720.js';
5
5
  import './sizes-5b9e579f.js';
6
- import './utils-2b4ef320.js';
6
+ import './utils-e10e994d.js';
7
7
 
8
8
  const GovTooltipContent = class {
9
9
  constructor(hostRef) {
@@ -34,7 +34,7 @@ const GovTooltipContent = class {
34
34
  }
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '53f6685cde44dc337600773140715671884c8d1f', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, h("slot", { key: '5f552ef5d7b650ae3bca48a41a244d058f9812a7' }), this.persist ? (h("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, h("gov-icon", { slot: "left-icon", name: "x-lg", type: "basic" }))) : null));
37
+ return (h(Host, { key: '9775080ab420c435e879ee1516f16bd7fb35f18d', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, h("slot", { key: 'b5a4adc4ff5ce735d2c1d3688a031e08cb8a97a1' }), this.persist ? (h("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, h("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
38
38
  }
39
39
  get host() { return getElement(this); }
40
40
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-tooltip-content.entry.js","mappings":";;;;;;;MAOa,iBAAiB;;;qBAOe,aAAa,CAAC,OAAO;oBAIvB,WAAW,CAAC,EAAE;uBAI5B,KAAK;yBAI6B,KAAK;wBAId,IAAI;;IAGzD,cAAc,CAAC,QAAiB;QAC/B,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC1B,IAAI,QAAQ,KAAK,KAAK,EAAE;YACvB,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC;gBACzB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,CAAA;aACrC,EAAE,GAAG,CAAC,CAAA;SACP;aAAM;YACN,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,SAAS,CAAA;SACtC;KACD;IAED,WAAW;QACV,IAAI,CAAC,SAAS,GAAG,KAAK,CAAA;QACtB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QACpB,MAAM,QAAQ,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAA0B,CAAA;QAChF,IAAI,QAAQ,EAAE;YACb,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAA;SACvB;KACD;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDACJ,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAC/B,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,CAAC,IAAI,CAAC,SAAS,iBACV,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,gBAC5B,IAAI,CAAC,SAAS,IAC1B,8DAAa,EACZ,IAAI,CAAC,OAAO,IACZ,kCACe,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,MAAM,IACZ,gBAAU,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAa,CACzD,IACV,IAAI,CACF,EACP;KACD;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-tooltip-content\",\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip is still visible.\n\t */\n\t@Prop() persist?: boolean = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\n\n\t@Watch(\"isVisible\")\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = \"hidden\"\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = \"visible\"\n\t\t}\n\t}\n\n\thideContent() {\n\t\tthis.isVisible = false\n\t\tthis.persist = false\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\n\t\tif (parentEl) {\n\t\t\tparentEl.hide().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={TooltipContentClass.root}\n\t\t\t\trole={\"tooltip\"}\n\t\t\t\thidden={!this.isVisible}\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\n\t\t\t\tis-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t\t{this.persist ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\n\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"base\"}>\n\t\t\t\t\t\t<gov-icon slot={\"left-icon\"} name={\"x-lg\"} type={\"basic\"}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-tooltip-content.entry.js","mappings":";;;;;;;MAOa,iBAAiB;;;qBAOe,aAAa,CAAC,OAAO;oBAIvB,WAAW,CAAC,EAAE;uBAI5B,KAAK;yBAI6B,KAAK;wBAId,IAAI;;IAGzD,cAAc,CAAC,QAAiB;QAC/B,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC1B,IAAI,QAAQ,KAAK,KAAK,EAAE;YACvB,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC;gBACzB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,CAAA;aACrC,EAAE,GAAG,CAAC,CAAA;SACP;aAAM;YACN,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,SAAS,CAAA;SACtC;KACD;IAED,WAAW;QACV,IAAI,CAAC,SAAS,GAAG,KAAK,CAAA;QACtB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QACpB,MAAM,QAAQ,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAA0B,CAAA;QAChF,IAAI,QAAQ,EAAE;YACb,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAA;SACvB;KACD;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDACJ,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAC/B,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,CAAC,IAAI,CAAC,SAAS,iBACV,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,gBAC5B,IAAI,CAAC,SAAS,IAC1B,8DAAa,EACZ,IAAI,CAAC,OAAO,IACZ,kCACe,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,MAAM,IACZ,gBAAU,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAa,CAC/D,IACV,IAAI,CACF,EACP;KACD;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-tooltip-content\",\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip is still visible.\n\t */\n\t@Prop() persist?: boolean = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\n\n\t@Watch(\"isVisible\")\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = \"hidden\"\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = \"visible\"\n\t\t}\n\t}\n\n\thideContent() {\n\t\tthis.isVisible = false\n\t\tthis.persist = false\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\n\t\tif (parentEl) {\n\t\t\tparentEl.hide().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={TooltipContentClass.root}\n\t\t\t\trole={\"tooltip\"}\n\t\t\t\thidden={!this.isVisible}\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\n\t\t\t\tis-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t\t{this.persist ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\n\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"base\"}>\n\t\t\t\t\t\t<gov-icon slot={\"icon-start\"} name={\"x-lg\"} type={\"components\"}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -1,14 +1,13 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { v as validateProp } from './props-c82e1abf.js';
3
- import { T as TooltipColors, a as TooltipSize, b as TooltipContentClass, c as TooltipPosition, d as TooltipClass } from './constants-48177684.js';
4
- import { c as createID } from './string.utils-5ce3f551.js';
5
- import { g as govHost } from './template-3d84d705.js';
6
- import { d as documentNode } from './win-cec370ad.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { v as validateProp } from './props-9d3c7ac1.js';
3
+ import { T as TooltipColors, a as TooltipSize, b as TooltipContentClass, c as TooltipPosition, d as TooltipClass } from './constants-3b914c35.js';
4
+ import { c as createID } from './string.utils-1da8f8fb.js';
5
+ import { g as govHost } from './template-7ecee4d1.js';
6
+ import { d as documentNode } from './gov.log-6b64cda6.js';
7
7
  import { t as tick } from './stencil.utils-f3c6c68d.js';
8
- import './gov.log-6e9faad2.js';
9
- import './colors-02c1ea96.js';
8
+ import './colors-4cf64720.js';
10
9
  import './sizes-5b9e579f.js';
11
- import './utils-2b4ef320.js';
10
+ import './utils-e10e994d.js';
12
11
 
13
12
  const GovTooltip = class {
14
13
  constructor(hostRef) {
@@ -202,11 +201,11 @@ const GovTooltip = class {
202
201
  }
203
202
  render() {
204
203
  var _a;
205
- return (h(Host, { key: 'f6273f5b0285855de2678de6cf9e56b3a538d1a2', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, h("span", { key: '1625bc58fec8bde766c69a072d4c8a3968271ab8', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
204
+ return (h(Host, { key: 'bc4cfa206b2e4060ca6070f0d4796df1a5df1bfc', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, h("span", { key: '8ce3bf37e9ab13190c476db7cf47b7d0319719fe', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
206
205
  if (this.persist === false) {
207
206
  this.hideTooltip();
208
207
  }
209
- }, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, h("slot", { key: '54fccbe8a9f1e53affd40fe026739cb5c278c902' }))));
208
+ }, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, h("slot", { key: 'c622fcd797a2c0dd303395d2d6391fbc747e4d18' }))));
210
209
  }
211
210
  /**
212
211
  * Showing the modal
@@ -1 +1 @@
1
- {"file":"gov-tooltip.entry.js","mappings":";;;;;;;;;;;;MAsBa,UAAU;IAKtB;;QAHiB,qBAAgB,GAAG,SAAS,CAAA;QAC5B,cAAS,GAAG,SAAS,CAAA;qBAYM,aAAa,CA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EAAE,OAAO,CAAC,CAAA;YACvD,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;YACpD,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;SAC5C;KACD;IAEO,aAAa;QACpB,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;QAChE,IAAI,SAAS,EAAE;YACd,SAAS,CAAC,MAAM,EAAE,CAAA;SAClB;KACD;IAED,MAAM;;QACL,QACC,EAAC,IAAI,qDACJ,EAAE,EAAE,IAAI,CAAC,SAAS,EAClB,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,IACvB,6DAAM,IAAI,EAAE,QAAQ,EACjB,QAAQ,EAAE,CAAC,EACX,UAAU,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,EACpC,MAAM,EAAE;gBACP,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,EAAE;oBAC3B,IAAI,CAAC,WAAW,EAAE,CAAA;iBAClB;aACD,sBACiB,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,CAAC,gBAAgB,IAAE,8DAAO,CAAO,CACvE,EACP;KACD;;;;IAMD,MAAM,IAAI;QACT,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;;;;IAMD,MAAM,IAAI;QACT,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QACpB,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-tooltip/gov-tooltip.tsx"],"sourcesContent":["import {Component, Element, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {\n\tTooltipClass,\n\tTooltipContentClass,\n\tTooltipPosition,\n\tTooltipPositionType,\n\tTooltipSize,\n\tTooltipSizeType,\n\tTooltipColors,\n\tTooltipColorType,\n} from \"./constants\"\nimport {createID} from \"../../utils/string.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {documentNode} from \"../../helpers/Dom/win\";\nimport {Nullable} from \"../../utils/helpers.types\";\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: \"gov-tooltip\",\n})\nexport class GovTooltip {\n\tprivate h: GovHost\n\tprivate readonly tooltipContentId = undefined\n\tprivate readonly tooltipId = undefined\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.tooltipId = createID(\"GovTooltip\")\n\t\tthis.tooltipContentId = createID(\"GovContentTooltip\")\n\t}\n\n\t@Element() host: HTMLGovTooltipElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip display position\n\t */\n\t@Prop({mutable: true}) position: TooltipPositionType = \"right\"\n\t/**\n\t * Information contained in the tooltip\n\t */\n\t@Prop() readonly message: string = undefined\n\t/**\n\t * Custom tooltip identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Trigger is just an icon\n\t */\n\t@Prop({reflect: true}) readonly icon: boolean = undefined\n\n\t@State() persist = false\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(TooltipColors, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(TooltipSize, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"position\")\n\tvalidatePosition(newValue: string): void {\n\t\tvalidateProp(TooltipPosition, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"message\")\n\trerenderMessage(): void {\n\t\tthis.createContentWrapper();\n\t}\n\n\tconnectedCallback() {\n\t\tthis.createContentWrapper()\n\t\tthis.registerListeners()\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t\tthis.validatePosition(this.position)\n\t}\n\n\tcomponentDidUpdate() {\n\t\tthis.createContentWrapper()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.removeContent()\n\t}\n\n\tprivate createContentWrapper() {\n\t\tif (this.tooltipContent) {\n\t\t\tif (this.message) {\n\t\t\t\tthis.tooltipContent.innerHTML = this.message\n\t\t\t} else if (this.insideContent) {\n\t\t\t\tthis.tooltipContent.innerHTML = this.insideContent.innerHTML\n\t\t\t}\n\t\t\treturn\n\t\t}\n\n\t\tlet content: HTMLGovTooltipContentElement;\n\t\tif (this.insideContent) {\n\t\t\tcontent = this.insideContent\n\t\t} else {\n\t\t\tcontent = documentNode().createElement(TooltipContentClass.root) as HTMLGovTooltipContentElement\n\t\t\tcontent.innerHTML = this.message\n\t\t}\n\n\t\tcontent.setAttribute(\"id\", this.identifier ?? this.tooltipContentId)\n\t\tcontent.setAttribute(\"parent-id\", this.tooltipId)\n\t\tcontent.setAttribute(\"color\", this.color)\n\t\tcontent.setAttribute(\"size\", this.size)\n\t\tdocumentNode().body.appendChild(content)\n\t}\n\n\tprivate get tooltipContent(): Nullable<HTMLGovTooltipContentElement> {\n\t\treturn documentNode().body.querySelector(`#${this.identifier ?? this.tooltipContentId}`);\n\t}\n\n\tprivate get insideContent(): Nullable<HTMLGovTooltipContentElement> {\n\t\treturn this.host.querySelector(TooltipContentClass.root)\n\t}\n\n\tprivate registerListeners() {\n\t\tthis.host.addEventListener(\"click\", e => {\n\t\t\te.preventDefault()\n\t\t\tthis.persist = true\n\t\t\tif (this.tooltipContent) {\n\t\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"true\")\n\t\t\t}\n\t\t\tthis.showTooltip()\n\t\t})\n\t\tthis.host.addEventListener(\"mouseenter\", e => {\n\t\t\te.preventDefault()\n\t\t\tthis.showTooltip()\n\t\t})\n\t\tthis.host.addEventListener(\"mouseleave\", e => {\n\t\t\te.preventDefault()\n\t\t\tif (this.persist === false) {\n\t\t\t\tthis.hideTooltip()\n\t\t\t}\n\t\t})\n\t}\n\n\tprivate verifyPositionSpace() {\n\t\tconst offset = 12\n\t\tconst windowWidth = window.innerWidth - (window.innerWidth - document.documentElement.clientWidth);\n\t\tconst trigger = this.host.getBoundingClientRect()\n\t\tconst trgWidth = this.host.offsetWidth\n\t\tconst trgHeight = this.host.offsetHeight\n\t\tconst contentWidth = this.tooltipContent.offsetWidth\n\t\tconst contentHeight = this.tooltipContent.offsetHeight\n\t\tconst triggerPos = {\n\t\t\tleft: trigger.left + document.documentElement.scrollLeft,\n\t\t\ttop: trigger.top + document.documentElement.scrollTop,\n\t\t}\n\n\t\tconst isRightSpace = ((triggerPos.left + offset + trigger.width) + contentWidth) <= windowWidth;\n\t\tconst isLeftSpace = triggerPos.left > contentWidth;\n\n\t\t// LEFT/RIGHT\n\t\tif (this.position === TooltipPosition.LEFT || this.position === TooltipPosition.RIGHT) {\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - ((contentHeight - trgHeight) / 2)) + \"px\";\n\t\t\tif (isRightSpace === false && isLeftSpace === false) {\n\t\t\t\tthis.position = TooltipPosition.TOP\n\t\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\n\t\t\t}\n\t\t\tif (isLeftSpace && isRightSpace === false && this.position === TooltipPosition.RIGHT) {\n\t\t\t\tthis.position = TooltipPosition.LEFT\n\t\t\t}\n\t\t\tif (isRightSpace && isLeftSpace === false && this.position === TooltipPosition.LEFT) {\n\t\t\t\tthis.position = TooltipPosition.RIGHT\n\t\t\t}\n\t\t}\n\t\tif (this.position === TooltipPosition.RIGHT) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.RIGHT)\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left + offset + trigger.width) + \"px\"\n\t\t}\n\t\tif (this.position === TooltipPosition.LEFT) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.LEFT)\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left - (contentWidth + offset)) + \"px\"\n\t\t}\n\n\t\t// LEFT/RIGHT FOR TOP/BOTTOM\n\t\tif (this.position === TooltipPosition.TOP || this.position === TooltipPosition.BOTTOM) {\n\t\t\tif (contentWidth > trgWidth) {\n\t\t\t\tlet leftPosition = (triggerPos.left - ((contentWidth - trgWidth) / 2));\n\t\t\t\tconst isNotLeftSpace = leftPosition < 0;\n\t\t\t\tconst isNotRightSpace = (leftPosition + contentWidth) > windowWidth;\n\t\t\t\tif (isNotLeftSpace && isNotRightSpace) {\n\t\t\t\t\tthis.tooltipContent.style.width = \"auto\";\n\t\t\t\t\tthis.tooltipContent.style.left = offset + \"px\";\n\t\t\t\t\tthis.tooltipContent.style.right = offset + \"px\";\n\t\t\t\t} else {\n\t\t\t\t\tif (isNotLeftSpace) {\n\t\t\t\t\t\tleftPosition = offset\n\t\t\t\t\t}\n\t\t\t\t\tif (isNotRightSpace) {\n\t\t\t\t\t\tleftPosition = leftPosition - ((windowWidth - (leftPosition + contentWidth + offset)) * -1)\n\t\t\t\t\t}\n\t\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst leftPosition = (triggerPos.left + ((trgWidth - contentWidth) / 2))\n\n\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\n\t\t\t}\n\t\t}\n\t\tif (this.position === TooltipPosition.TOP) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - (contentHeight + offset)) + \"px\"\n\t\t}\n\t\tif (this.position === TooltipPosition.BOTTOM) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.BOTTOM)\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top + (trgHeight + offset)) + \"px\"\n\t\t}\n\n\t\tthis.tooltipContent.style.opacity = '1'\n\n\t}\n\n\tprivate showTooltip() {\n\t\tif (this.tooltipContent) {\n\t\t\tthis.tooltipContent.style.opacity = '0'\n\t\t\tthis.tooltipContent.hidden = false\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"true\")\n\t\t\ttick(() => {\n\t\t\t\tthis.verifyPositionSpace()\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate hideTooltip() {\n\t\tif (this.tooltipContent) {\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"false\")\n\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"false\")\n\t\t\tthis.tooltipContent.removeAttribute('style')\n\t\t}\n\t}\n\n\tprivate removeContent() {\n\t\tconst contentEl = document.getElementById(this.tooltipContentId)\n\t\tif (contentEl) {\n\t\t\tcontentEl.remove()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tid={this.tooltipId}\n\t\t\t\tclass={this.h.classes(TooltipClass.root)}\n\t\t\t\tposition={this.position}>\n\t\t\t\t<span role={'button'}\n\t\t\t\t\t\t\ttabindex={0}\n\t\t\t\t\t\t\tonKeyPress={() => this.showTooltip()}\n\t\t\t\t\t\t\tonBlur={() => {\n\t\t\t\t\t\t\t\tif (this.persist === false) {\n\t\t\t\t\t\t\t\t\tthis.hideTooltip()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\taria-describedby={this.identifier ?? this.tooltipContentId}><slot/></span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showTooltip()\n\t}\n\n\t/**\n\t * Hiding the modal\n\t */\n\t@Method()\n\tasync hide(): Promise<void> {\n\t\tthis.persist = false\n\t\tthis.hideTooltip()\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-tooltip.entry.js","mappings":";;;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CAAA;SACF;KACD;IAEO,WAAW;QAClB,IAAI,IAAI,CAAC,cAAc,EAAE;YACxB,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;YACvD,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;YACpD,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;SAC5C;KACD;IAEO,aAAa;QACpB,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;QAChE,IAAI,SAAS,EAAE;YACd,SAAS,CAAC,MAAM,EAAE,CAAA;SAClB;KACD;IAED,MAAM;;QACL,QACC,EAAC,IAAI,qDACJ,EAAE,EAAE,IAAI,CAAC,SAAS,EAClB,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,IACvB,6DAAM,IAAI,EAAE,QAAQ,EACjB,QAAQ,EAAE,CAAC,EACX,UAAU,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,EACpC,MAAM,EAAE;gBACP,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,EAAE;oBAC3B,IAAI,CAAC,WAAW,EAAE,CAAA;iBAClB;aACD,sBACiB,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,CAAC,gBAAgB,IAAE,8DAAO,CAAO,CACvE,EACP;KACD;;;;IAMD,MAAM,IAAI;QACT,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;;;;IAMD,MAAM,IAAI;QACT,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QACpB,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-tooltip/gov-tooltip.tsx"],"sourcesContent":["import {Component, Element, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {\n\tTooltipClass,\n\tTooltipContentClass,\n\tTooltipPosition,\n\tTooltipPositionType,\n\tTooltipSize,\n\tTooltipSizeType,\n\tTooltipColors,\n\tTooltipColorType,\n} from \"./constants\"\nimport {createID} from \"../../utils/string.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {documentNode} from \"../../helpers/Dom/win\";\nimport {Nullable} from \"../../utils/helpers.types\";\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: \"gov-tooltip\",\n})\nexport class GovTooltip {\n\tprivate h: GovHost\n\tprivate readonly tooltipContentId = undefined\n\tprivate readonly tooltipId = undefined\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.tooltipId = createID(\"GovTooltip\")\n\t\tthis.tooltipContentId = createID(\"GovContentTooltip\")\n\t}\n\n\t@Element() host: HTMLGovTooltipElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip display position\n\t */\n\t@Prop({mutable: true}) position: TooltipPositionType = \"right\"\n\t/**\n\t * Information contained in the tooltip\n\t */\n\t@Prop() readonly message: string = undefined\n\t/**\n\t * Custom tooltip identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Trigger is just an icon\n\t */\n\t@Prop({reflect: true}) readonly icon: boolean = undefined\n\n\t@State() persist = false\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(TooltipColors, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(TooltipSize, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"position\")\n\tvalidatePosition(newValue: string): void {\n\t\tvalidateProp(TooltipPosition, newValue, TooltipClass.root)\n\t}\n\n\t@Watch(\"message\")\n\trerenderMessage(): void {\n\t\tthis.createContentWrapper();\n\t}\n\n\tconnectedCallback() {\n\t\tthis.createContentWrapper()\n\t\tthis.registerListeners()\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t\tthis.validatePosition(this.position)\n\t}\n\n\tcomponentDidUpdate() {\n\t\tthis.createContentWrapper()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.removeContent()\n\t}\n\n\tprivate createContentWrapper() {\n\t\tif (this.tooltipContent) {\n\t\t\tif (this.message) {\n\t\t\t\tthis.tooltipContent.innerHTML = this.message\n\t\t\t} else if (this.insideContent) {\n\t\t\t\tthis.tooltipContent.innerHTML = this.insideContent.innerHTML\n\t\t\t}\n\t\t\treturn\n\t\t}\n\n\t\tlet content: HTMLGovTooltipContentElement;\n\t\tif (this.insideContent) {\n\t\t\tcontent = this.insideContent\n\t\t} else {\n\t\t\tcontent = documentNode().createElement(TooltipContentClass.root) as HTMLGovTooltipContentElement\n\t\t\tcontent.innerHTML = this.message\n\t\t}\n\n\t\tcontent.setAttribute(\"id\", this.identifier ?? this.tooltipContentId)\n\t\tcontent.setAttribute(\"parent-id\", this.tooltipId)\n\t\tcontent.setAttribute(\"color\", this.color)\n\t\tcontent.setAttribute(\"size\", this.size)\n\t\tdocumentNode().body.appendChild(content)\n\t}\n\n\tprivate get tooltipContent(): Nullable<HTMLGovTooltipContentElement> {\n\t\treturn documentNode().body.querySelector(`#${this.identifier ?? this.tooltipContentId}`);\n\t}\n\n\tprivate get insideContent(): Nullable<HTMLGovTooltipContentElement> {\n\t\treturn this.host.querySelector(TooltipContentClass.root)\n\t}\n\n\tprivate registerListeners() {\n\t\tthis.host.addEventListener(\"click\", e => {\n\t\t\te.preventDefault()\n\t\t\tthis.persist = true\n\t\t\tif (this.tooltipContent) {\n\t\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"true\")\n\t\t\t}\n\t\t\tthis.showTooltip()\n\t\t})\n\t\tthis.host.addEventListener(\"mouseenter\", e => {\n\t\t\te.preventDefault()\n\t\t\tthis.showTooltip()\n\t\t})\n\t\tthis.host.addEventListener(\"mouseleave\", e => {\n\t\t\te.preventDefault()\n\t\t\tif (this.persist === false) {\n\t\t\t\tthis.hideTooltip()\n\t\t\t}\n\t\t})\n\t}\n\n\tprivate verifyPositionSpace() {\n\t\tconst offset = 12\n\t\tconst windowWidth = window.innerWidth - (window.innerWidth - document.documentElement.clientWidth);\n\t\tconst trigger = this.host.getBoundingClientRect()\n\t\tconst trgWidth = this.host.offsetWidth\n\t\tconst trgHeight = this.host.offsetHeight\n\t\tconst contentWidth = this.tooltipContent.offsetWidth\n\t\tconst contentHeight = this.tooltipContent.offsetHeight\n\t\tconst triggerPos = {\n\t\t\tleft: trigger.left + document.documentElement.scrollLeft,\n\t\t\ttop: trigger.top + document.documentElement.scrollTop,\n\t\t}\n\n\t\tconst isRightSpace = ((triggerPos.left + offset + trigger.width) + contentWidth) <= windowWidth;\n\t\tconst isLeftSpace = triggerPos.left > contentWidth;\n\n\t\t// LEFT/RIGHT\n\t\tif (this.position === TooltipPosition.LEFT || this.position === TooltipPosition.RIGHT) {\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - ((contentHeight - trgHeight) / 2)) + \"px\";\n\t\t\tif (isRightSpace === false && isLeftSpace === false) {\n\t\t\t\tthis.position = TooltipPosition.TOP\n\t\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\n\t\t\t}\n\t\t\tif (isLeftSpace && isRightSpace === false && this.position === TooltipPosition.RIGHT) {\n\t\t\t\tthis.position = TooltipPosition.LEFT\n\t\t\t}\n\t\t\tif (isRightSpace && isLeftSpace === false && this.position === TooltipPosition.LEFT) {\n\t\t\t\tthis.position = TooltipPosition.RIGHT\n\t\t\t}\n\t\t}\n\t\tif (this.position === TooltipPosition.RIGHT) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.RIGHT)\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left + offset + trigger.width) + \"px\"\n\t\t}\n\t\tif (this.position === TooltipPosition.LEFT) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.LEFT)\n\t\t\tthis.tooltipContent.style.left = (triggerPos.left - (contentWidth + offset)) + \"px\"\n\t\t}\n\n\t\t// LEFT/RIGHT FOR TOP/BOTTOM\n\t\tif (this.position === TooltipPosition.TOP || this.position === TooltipPosition.BOTTOM) {\n\t\t\tif (contentWidth > trgWidth) {\n\t\t\t\tlet leftPosition = (triggerPos.left - ((contentWidth - trgWidth) / 2));\n\t\t\t\tconst isNotLeftSpace = leftPosition < 0;\n\t\t\t\tconst isNotRightSpace = (leftPosition + contentWidth) > windowWidth;\n\t\t\t\tif (isNotLeftSpace && isNotRightSpace) {\n\t\t\t\t\tthis.tooltipContent.style.width = \"auto\";\n\t\t\t\t\tthis.tooltipContent.style.left = offset + \"px\";\n\t\t\t\t\tthis.tooltipContent.style.right = offset + \"px\";\n\t\t\t\t} else {\n\t\t\t\t\tif (isNotLeftSpace) {\n\t\t\t\t\t\tleftPosition = offset\n\t\t\t\t\t}\n\t\t\t\t\tif (isNotRightSpace) {\n\t\t\t\t\t\tleftPosition = leftPosition - ((windowWidth - (leftPosition + contentWidth + offset)) * -1)\n\t\t\t\t\t}\n\t\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst leftPosition = (triggerPos.left + ((trgWidth - contentWidth) / 2))\n\n\t\t\t\tthis.tooltipContent.style.left = leftPosition + \"px\"\n\t\t\t}\n\t\t}\n\t\tif (this.position === TooltipPosition.TOP) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.TOP)\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top - (contentHeight + offset)) + \"px\"\n\t\t}\n\t\tif (this.position === TooltipPosition.BOTTOM) {\n\t\t\tthis.tooltipContent.setAttribute(\"position\", TooltipPosition.BOTTOM)\n\t\t\tthis.tooltipContent.style.top = (triggerPos.top + (trgHeight + offset)) + \"px\"\n\t\t}\n\n\t\tthis.tooltipContent.style.opacity = '1'\n\n\t}\n\n\tprivate showTooltip() {\n\t\tif (this.tooltipContent) {\n\t\t\tthis.tooltipContent.style.opacity = '0'\n\t\t\tthis.tooltipContent.hidden = false\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"true\")\n\t\t\ttick(() => {\n\t\t\t\tthis.verifyPositionSpace()\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate hideTooltip() {\n\t\tif (this.tooltipContent) {\n\t\t\tthis.tooltipContent.setAttribute(\"is-visible\", \"false\")\n\t\t\tthis.tooltipContent.setAttribute(\"persist\", \"false\")\n\t\t\tthis.tooltipContent.removeAttribute('style')\n\t\t}\n\t}\n\n\tprivate removeContent() {\n\t\tconst contentEl = document.getElementById(this.tooltipContentId)\n\t\tif (contentEl) {\n\t\t\tcontentEl.remove()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tid={this.tooltipId}\n\t\t\t\tclass={this.h.classes(TooltipClass.root)}\n\t\t\t\tposition={this.position}>\n\t\t\t\t<span role={'button'}\n\t\t\t\t\t\t\ttabindex={0}\n\t\t\t\t\t\t\tonKeyPress={() => this.showTooltip()}\n\t\t\t\t\t\t\tonBlur={() => {\n\t\t\t\t\t\t\t\tif (this.persist === false) {\n\t\t\t\t\t\t\t\t\tthis.hideTooltip()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\taria-describedby={this.identifier ?? this.tooltipContentId}><slot/></span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showTooltip()\n\t}\n\n\t/**\n\t * Hiding the modal\n\t */\n\t@Method()\n\tasync hide(): Promise<void> {\n\t\tthis.persist = false\n\t\tthis.hideTooltip()\n\t}\n}\n"],"version":3}
@@ -1,12 +1,11 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { v as validateProp } from './props-c82e1abf.js';
3
- import { W as WizardItemClass, c as WizardColors } from './constants-f4e4ede6.js';
4
- import { c as createID } from './string.utils-5ce3f551.js';
5
- import { g as govHost, b as booleanString, t as toBoolAttrIfDefined } from './template-3d84d705.js';
6
- import './gov.log-6e9faad2.js';
7
- import './win-cec370ad.js';
8
- import './utils-2b4ef320.js';
9
- import './colors-02c1ea96.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { v as validateProp } from './props-9d3c7ac1.js';
3
+ import { W as WizardItemClass, c as WizardColors } from './constants-8429b68f.js';
4
+ import { c as createID } from './string.utils-1da8f8fb.js';
5
+ import { g as govHost, b as booleanString, t as toBoolAttrIfDefined } from './template-7ecee4d1.js';
6
+ import './gov.log-6b64cda6.js';
7
+ import './utils-e10e994d.js';
8
+ import './colors-4cf64720.js';
10
9
  import './sizes-5b9e579f.js';
11
10
 
12
11
  var Tags;
@@ -44,12 +43,12 @@ const GovWizardItem = class {
44
43
  render() {
45
44
  const triggerId = this.identifier || this.triggerId;
46
45
  const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
47
- const prefixSlot = this.h.hasSlot("prefix") && (h("span", { key: '3f59956339df074998165a5224c9df58054b3f34', class: WizardItemClass.prefix }, h("slot", { key: '6c9b2007a4480ea06d9c1968c9c9f90b1d03fe12', name: "prefix" })));
48
- return (h(Host, { key: '7c6523696e4ee074c82047d453355a46460e5f29', class: this.h.classes(WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, h("div", { key: '1881b5a37ce7b3587295ed8a38a5923afbf2ffdb', class: WizardItemClass.header }, prefixSlot, this.collapsible ? (h(Tag, { id: triggerId, class: this.h.classes(WizardItemClass.label), "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
46
+ const prefixSlot = this.h.hasSlot("prefix") && (h("span", { key: '5b4e2b9c66285827959d4df9801cef2b8de29764', class: WizardItemClass.prefix }, h("slot", { key: '6ffa576fe3be8febb899186208d8aa7ae1fecd96', name: "prefix" })));
47
+ return (h(Host, { key: '60fd0ec72cb212f73dddeec698c2003117b1fc02', class: this.h.classes(WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, h("div", { key: '02e7e16d0d559a3fd3f88a85b23d6263dfb3eeb8', class: WizardItemClass.header }, prefixSlot, this.collapsible ? (h(Tag, { id: triggerId, class: this.h.classes(WizardItemClass.label), "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
49
48
  e.preventDefault();
50
49
  e.stopPropagation();
51
50
  this.toggle();
52
- } }, h("span", { class: WizardItemClass.headline }, h("slot", { name: "headline" }), this.collapsible && h("gov-icon", { class: WizardItemClass.chevron, name: "chevron-down" })), h("slot", { name: "annotation" }))) : (h(Tag, { class: this.h.classes(WizardItemClass.label) }, h("span", { class: WizardItemClass.headline }, h("slot", { name: "headline" }), this.collapsible && h("gov-icon", { class: WizardItemClass.chevron, name: "chevron-down" })), h("slot", { name: "annotation" })))), this.collapsible ? (h("div", { class: WizardItemClass.content, id: this.contentId, "aria-hidden": booleanString(!this.isExpanded), hidden: !this.isExpanded, "aria-labelledby": triggerId }, h("slot", null))) : (h("div", { class: WizardItemClass.content, "aria-hidden": booleanString(!this.isExpanded), hidden: !this.isExpanded }, h("slot", null)))));
51
+ } }, h("span", { class: WizardItemClass.headline }, h("slot", { name: "headline" }), this.collapsible && h("gov-icon", { class: WizardItemClass.chevron, name: "chevron-down", type: "components" })), h("slot", { name: "annotation" }))) : (h(Tag, { class: this.h.classes(WizardItemClass.label) }, h("span", { class: WizardItemClass.headline }, h("slot", { name: "headline" }), this.collapsible && h("gov-icon", { class: WizardItemClass.chevron, name: "chevron-down", type: "components" })), h("slot", { name: "annotation" })))), this.collapsible ? (h("div", { class: WizardItemClass.content, id: this.contentId, "aria-hidden": booleanString(!this.isExpanded), hidden: !this.isExpanded, "aria-labelledby": triggerId }, h("slot", null))) : (h("div", { class: WizardItemClass.content, "aria-hidden": booleanString(!this.isExpanded), hidden: !this.isExpanded }, h("slot", null)))));
53
52
  }
54
53
  /**
55
54
  * Opening the Wizard
@@ -1 +1 @@
1
- {"file":"gov-wizard-item.entry.js","mappings":";;;;;;;;;;;AAQA,IAAK,IAGJ;AAHD,WAAK,IAAI;IACR,mBAAW,CAAA;IACX,yBAAiB,CAAA;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAKY,aAAa;IAMzB;;;QAFQ,aAAQ,GAAG,KAAK,CAAA;qBAYmB,SAAS;oBAIV,GAAG;;2BAQL,KAAK;wBAIR,KAAK;0BAIsB,KAAK;QA7BpE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;QAC1C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAA;KAC7C;IAiCO,aAAa,CAAC,QAAgB;QACrC,YAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,eAAe,CAAC,IAAI,CAAC,CAAA;KAC1D;IAEO,WAAW;QAClB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,eAAe,CAAC,IAAI,EAAE,CAAC,CAAA;KACnF;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,CAAC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AC,IAAI,CAAC,UAAU,CAAA;QAClC,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;;;;IAMM,MAAM,YAAY;QACxB,OAAO,IAAI,CAAC,UAAU,CAAA;KACtB;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-wizard/gov-wizard-item.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizesType, WizardColors, WizardColorType, WizardItemClass } from \"./constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { WizardItemEvent } from \"./gov-wizard-item.types\"\n\nenum Tags {\n\tDIV = \"div\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-wizard-item\",\n})\nexport class GovWizardItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID(\"GovWizardItem\")\n\t\tthis.contentId = createID(\"GovWizardContent\")\n\t}\n\n\t@Element() readonly host: HTMLGovWizardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color?: WizardColorType = \"primary\"\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Custom wizard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines weather the wizard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Makes the wizard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizardItemEvent>\n\n\t@Watch(\"color\")\n\tprivate validateColor(newValue: string): void {\n\t\tvalidateProp(WizardColors, newValue, WizardItemClass.root)\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizardItemClass.root })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\t\tconst prefixSlot = this.h.hasSlot(\"prefix\") && (<span class={WizardItemClass.prefix}><slot name=\"prefix\" /></span>)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardItemClass.root)}\n\t\t\t\t is-expanded={this.isExpanded}\n\t\t\t\t color={this.color}\n\t\t\t\t size={this.size}\n\t\t\t\t role=\"listitem\"\n\t\t\t\t collapsible={this.collapsible}\n\t\t\t\t hydrated={this.hydrated}>\n\t\t\t\t<div class={WizardItemClass.header}>\n\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\t\tclass={this.h.classes(WizardItemClass.label)}\n\t\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\tthis.toggle()\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Tag class={this.h.classes(WizardItemClass.label)}>\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\thidden={!this.isExpanded}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizardItemClass.content}\n\t\t\t\t\t\t aria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\t hidden={!this.isExpanded}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the Wizard\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpanded = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the Wizard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpanded = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizard switch\n\t */\n\t@Method()\n\tpublic async toggle(): Promise<void> {\n\t\tthis.isExpanded = !this.isExpanded\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpanded\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-wizard-item.entry.js","mappings":";;;;;;;;;;AAQA,IAAK,IAGJ;AAHD,WAAK,IAAI;IACR,mBAAW,CAAA;IACX,yBAAiB,CAAA;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAKY,aAAa;IAMzB;;;QAFQ,aAAQ,GAAG,KAAK,CAAA;qBAYmB,SAAS;oBAIV,GAAG;;2BAQL,KAAK;wBAIR,KAAK;0BAIsB,KAAK;QA7BpE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;QAC1C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAA;KAC7C;IAiCO,aAAa,CAAC,QAAgB;QACrC,YAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,eAAe,CAAC,IAAI,CAAC,CAAA;KAC1D;IAEO,WAAW;QAClB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,eAAe,CAAC,IAAI,EAAE,CAAC,CAAA;KACnF;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KAC9B;IAED,iBAAiB;QAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;KACpB;IAED,MAAM;QACL,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,SAAS,CAAA;QACnD,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,GAAG,I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import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizesType, WizardColors, WizardColorType, WizardItemClass } from \"./constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { WizardItemEvent } from \"./gov-wizard-item.types\"\n\nenum Tags {\n\tDIV = \"div\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-wizard-item\",\n})\nexport class GovWizardItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID(\"GovWizardItem\")\n\t\tthis.contentId = createID(\"GovWizardContent\")\n\t}\n\n\t@Element() readonly host: HTMLGovWizardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color?: WizardColorType = \"primary\"\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Custom wizard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines weather the wizard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Makes the wizard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizardItemEvent>\n\n\t@Watch(\"color\")\n\tprivate validateColor(newValue: string): void {\n\t\tvalidateProp(WizardColors, newValue, WizardItemClass.root)\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizardItemClass.root })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\t\tconst prefixSlot = this.h.hasSlot(\"prefix\") && (<span class={WizardItemClass.prefix}><slot name=\"prefix\" /></span>)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardItemClass.root)}\n\t\t\t\t is-expanded={this.isExpanded}\n\t\t\t\t color={this.color}\n\t\t\t\t size={this.size}\n\t\t\t\t role=\"listitem\"\n\t\t\t\t collapsible={this.collapsible}\n\t\t\t\t hydrated={this.hydrated}>\n\t\t\t\t<div class={WizardItemClass.header}>\n\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\t\tclass={this.h.classes(WizardItemClass.label)}\n\t\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\tthis.toggle()\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Tag class={this.h.classes(WizardItemClass.label)}>\n\t\t\t\t\t\t\t<span class={WizardItemClass.headline}>\n\t\t\t\t\t\t\t\t<slot name=\"headline\" />\n\t\t\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.chevron} name=\"chevron-down\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"annotation\"/>\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\thidden={!this.isExpanded}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizardItemClass.content}\n\t\t\t\t\t\t aria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\t hidden={!this.isExpanded}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the Wizard\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpanded = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the Wizard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpanded = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizard switch\n\t */\n\t@Method()\n\tpublic async toggle(): Promise<void> {\n\t\tthis.isExpanded = !this.isExpanded\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpanded\n\t}\n}\n"],"version":3}
@@ -1,14 +1,13 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { v as validateProp } from './props-c82e1abf.js';
3
- import { W as WizardItemClass, a as WizardClass, b as WizardSizes } from './constants-f4e4ede6.js';
4
- import { g as govHost } from './template-3d84d705.js';
5
- import { v as validateAccessibleLabel } from './wcag-fa5ce56c.js';
6
- import { c as canValidateWcagOnRender } from './win-cec370ad.js';
7
- import { d as delay } from './utils-2b4ef320.js';
8
- import './gov.log-6e9faad2.js';
9
- import './colors-02c1ea96.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { v as validateProp } from './props-9d3c7ac1.js';
3
+ import { W as WizardItemClass, a as WizardClass, b as WizardSizes } from './constants-8429b68f.js';
4
+ import { g as govHost } from './template-7ecee4d1.js';
5
+ import { v as validateAccessibleLabel } from './wcag-253a4421.js';
6
+ import { c as canValidateWcagOnRender } from './gov.log-6b64cda6.js';
7
+ import { d as delay } from './utils-e10e994d.js';
8
+ import './colors-4cf64720.js';
10
9
  import './sizes-5b9e579f.js';
11
- import './string.utils-5ce3f551.js';
10
+ import './string.utils-1da8f8fb.js';
12
11
  import './helpers.types-43ddbdb8.js';
13
12
 
14
13
  const GovWizard = class {
@@ -48,7 +47,7 @@ const GovWizard = class {
48
47
  this.hydrated = true;
49
48
  }
50
49
  render() {
51
- return (h(Host, { key: '5dd1ff1d4239f078562f4fbda12e37e6d3586b50', class: this.h.classes(WizardClass.root), role: "list", size: this.size, hydrated: this.hydrated }, h("slot", { key: 'eefabfef3f6ff5367a440df275cce51b179b24b4' })));
50
+ return (h(Host, { key: '3aa896212e044cc3952da66a72b1ca7a708ea0b3', class: this.h.classes(WizardClass.root), role: "list", size: this.size, hydrated: this.hydrated }, h("slot", { key: 'aeb21d97bb87dd3c9b5cd01abe2482c39e2ba8cf' })));
52
51
  }
53
52
  /**
54
53
  * Validate the WCAG attributes of the component
@@ -1 +1 @@
1
- {"file":"gov-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import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizes, WizardSizesType, WizardClass, WizardItemClass } from \"./constants\"\nimport { GovWizardItemChangeEvent } from \"./gov-wizard-item.d\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateAccessibleLabel } from \"../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\n\n@Component({\n\ttag: \"gov-wizard\",\n})\nexport class GovWizard {\n\tprivate h: GovHost\n\tprivate hydrated = false\n\n\t@Element() readonly host: HTMLGovWizardElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Adds accessible label for the wizard that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Called when the wizard children state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<GovWizardItemChangeEvent>\n\n\t@Watch(\"size\")\n\tprivate validateSize(newValue: string): void {\n\t\tvalidateProp(WizardSizes, newValue, WizardClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(WizardItemClass.root).forEach((child: HTMLGovWizardItemElement) => {\n\t\t\tchild.setAttribute(\"size\", this.size)\n\t\t\t/*\n\t\t\tchild.addEventListener('gov-change', (e: GovWizardItemCustomEvent<GovWizardItemChangeEvent>) => {\n\t\t\t\te.stopPropagation()\n\t\t\t\tthis.govChange.emit(e.detail)\n\t\t\t})\n\t\t\t*/\n\t\t})\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tpublic async validateWcag(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.wcagLabel, this.wcagLabelledBy, WizardClass.root)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-wizard.entry.js","mappings":";;;;;;;;;;;;MAaa,SAAS;IAMrB;;;QAJQ,aAAQ,GAAG,KAAK,CAAA;oBAWkB,GAAG;;;QAN5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAoBO,YAAY,CAAC,QAAgB;QACpC,YAAY,CAAC,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;KACrD;IAED,iBAAiB;QAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC5B;IAED,gBAAgB;QACf,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAA+B;YACxF,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;;;;;;;SAOrC,CAAC,CAAA;KACF;IAED,MAAM,kBAAkB;QACvB,IAAI,uBAAuB,EAAE,EAAE;YAC9B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;YAChB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;SACzB;KACD;IAED,iBAAiB;QAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;KACpB;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAClG,8DAAQ,CACF,EACP;KACD;;;;IAMM,MAAM,YAAY;QACxB,uBAAuB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;KAC9E;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-wizard/gov-wizard.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizes, WizardSizesType, WizardClass, WizardItemClass } from \"./constants\"\nimport { GovWizardItemChangeEvent } from \"./gov-wizard-item.d\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateAccessibleLabel } from \"../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\n\n@Component({\n\ttag: \"gov-wizard\",\n})\nexport class GovWizard {\n\tprivate h: GovHost\n\tprivate hydrated = false\n\n\t@Element() readonly host: HTMLGovWizardElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Adds accessible label for the wizard that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Called when the wizard children state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<GovWizardItemChangeEvent>\n\n\t@Watch(\"size\")\n\tprivate validateSize(newValue: string): void {\n\t\tvalidateProp(WizardSizes, newValue, WizardClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(WizardItemClass.root).forEach((child: HTMLGovWizardItemElement) => {\n\t\t\tchild.setAttribute(\"size\", this.size)\n\t\t\t/*\n\t\t\tchild.addEventListener('gov-change', (e: GovWizardItemCustomEvent<GovWizardItemChangeEvent>) => {\n\t\t\t\te.stopPropagation()\n\t\t\t\tthis.govChange.emit(e.detail)\n\t\t\t})\n\t\t\t*/\n\t\t})\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tpublic async validateWcag(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.wcagLabel, this.wcagLabelledBy, WizardClass.root)\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { p as property } from './utils-2b4ef320.js';
1
+ import { a as property } from './utils-e10e994d.js';
2
2
 
3
3
  const isWindow = typeof window !== "undefined";
4
4
  const getWindowProperty = (name) => isWindow && window && property(name, window);
@@ -26,6 +26,20 @@ const iconsPath = () => config().iconsPath;
26
26
  const iconsLazyLoad = () => config().iconsLazyLoad;
27
27
  const documentNode = () => config().documentNode;
28
28
 
29
- export { useLog as a, useErrorLog as b, canValidateWcagOnRender as c, documentNode as d, iconsPath as e, iconsLazyLoad as f, isWindow as i, useWarningLog as u };
29
+ const WARNING_COLORS = { bg: '#ecae1a', text: '#3b3b3b' };
30
+ const INFO_COLORS = { bg: '#2362a2', text: '#fff' };
31
+ const govLog = (message, colors = INFO_COLORS, args) => {
32
+ const styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(';');
33
+ if (useLog() || useWarningLog() || useErrorLog()) {
34
+ console.log('%cgov', styles, message, args);
35
+ }
36
+ };
37
+ const govWarningLog = (message, args) => {
38
+ if (useWarningLog()) {
39
+ govLog(message, WARNING_COLORS, args);
40
+ }
41
+ };
42
+
43
+ export { isWindow as a, iconsLazyLoad as b, canValidateWcagOnRender as c, documentNode as d, govWarningLog as g, iconsPath as i };
30
44
 
31
- //# sourceMappingURL=win-cec370ad.js.map
45
+ //# sourceMappingURL=gov.log-6b64cda6.js.map
@@ -0,0 +1 @@
1
+ {"file":"gov.log-6b64cda6.js","mappings":";;MAYa,QAAQ,GAAG,OAAO,MAAM,KAAK,YAAW;AAErD,MAAM,iBAAiB,GAAG,CAAI,IAAY,KAA6B,QAAQ,IAAI,MAAM,IAAI,QAAQ,CAAC,IAA2B,EAAE,MAAM,CAAC,CAAA;AAE1I,MAAM,MAAM,GAAG;IACd,MAAM,aAAa,GAAY;QAC9B,uBAAuB,EAAE,KAAK;QAC9B,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,GAAG,EAAE,KAAK;QACV,SAAS,EAAE,eAAe;QAC1B,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI;KACxC,CAAA;IAED,MAAM,cAAc,GAAG,iBAAiB,CAAU,eAAe,CAAC,CAAA;IAClE,IAAI,cAAc,EAAE;QACnB,uCAAY,aAAa,GAAK,cAAc,EAAE;KAC9C;IAED,OAAO,aAAa,CAAA;AACrB,CAAC,CAAA;MAEY,uBAAuB,GAAG,MAA0C,MAAM,EAAE,CAAC,wBAAuB;AAC1G,MAAM,aAAa,GAAG,MAA6B,MAAM,EAAE,CAAC,UAAU,CAAA;AACtE,MAAM,WAAW,GAAG,MAA2B,MAAM,EAAE,CAAC,QAAQ,CAAA;AAChE,MAAM,MAAM,GAAG,MAAsB,MAAM,EAAE,CAAC,GAAG,CAAA;MAC3C,SAAS,GAAG,MAA4B,MAAM,EAAE,CAAC,UAAS;MAC1D,aAAa,GAAG,MAAgC,MAAM,EAAE,CAAC,cAAa;MACtE,YAAY,GAAG,MAA+B,MAAM,EAAE,CAAC;;AClCpE,MAAM,cAAc,GAAgB,EAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAC,CAAA;AACpE,MAAM,WAAW,GAAgB,EAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAC,CAAA;AAGvD,MAAM,MAAM,GAAG,CAAC,OAAe,EAAE,SAAsB,WAAW,EAAE,IAAc;IACxF,MAAM,MAAM,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC,EAAE,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,kBAAkB,CAAC,CAAC,IAAI,CACzJ,GAAG,CACH,CAAA;IAED,IAAG,MAAM,EAAE,IAAI,aAAa,EAAE,IAAI,WAAW,EAAE,EAAE;QAChD,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;KAC3C;AACF,CAAC,CAAA;MAEY,aAAa,GAAG,CAAC,OAAe,EAAE,IAAc;IAC5D,IAAI,aAAa,EAAE,EAAE;QACpB,MAAM,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,CAAA;KACrC;AACF;;;;","names":[],"sources":["../../../packages/core/src/helpers/Dom/win.ts","../../../packages/core/src/helpers/Log/gov.log.ts"],"sourcesContent":["import { property } from '../../utils/utils'\n\ninterface IConfig {\n\tcanValidateWcagOnRender: boolean\n\twarningLog: boolean\n\terrorLog: boolean\n\tlog: boolean\n\ticonsPath: string\n\ticonsLazyLoad: boolean\n\tdocumentNode: Document\n}\n\nexport const isWindow = typeof window !== \"undefined\"\n\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => isWindow && window && property(name as keyof typeof window, window)\n\nconst config = (): IConfig => {\n\tconst defaultConfig: IConfig = {\n\t\tcanValidateWcagOnRender: false,\n\t\twarningLog: false,\n\t\terrorLog: false,\n\t\tlog: false,\n\t\ticonsPath: '/assets/icons',\n\t\ticonsLazyLoad: true,\n\t\tdocumentNode: document ? document : null,\n\t}\n\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\n\tif (windowProperty) {\n\t\treturn { ...defaultConfig, ...windowProperty }\n\t}\n\n\treturn defaultConfig\n}\n\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\nexport const useWarningLog = (): IConfig['warningLog'] => config().warningLog\nexport const useErrorLog = (): IConfig['errorLog'] => config().errorLog\nexport const useLog = (): IConfig['log'] => config().log\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const iconsLazyLoad = (): IConfig['iconsLazyLoad'] => config().iconsLazyLoad\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n","import {useErrorLog, useLog, useWarningLog} from \"../Dom/win\";\n\ninterface ColorConfig {\n\tbg: string\n\ttext: string\n}\n\nconst WARNING_COLORS: ColorConfig = {bg: '#ecae1a', text: '#3b3b3b'}\nconst INFO_COLORS: ColorConfig = {bg: '#2362a2', text: '#fff'}\nconst ERROR_COLORS: ColorConfig = {bg: '#c52a3a', text: '#fff'}\n\nexport const govLog = (message: string, colors: ColorConfig = INFO_COLORS, args?: unknown): void => {\n\tconst styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(\n\t\t';'\n\t)\n\n\tif(useLog() || useWarningLog() || useErrorLog()) {\n\t\tconsole.log('%cgov', styles, message, args)\n\t}\n}\n\nexport const govWarningLog = (message: string, args?: unknown): void => {\n\tif (useWarningLog()) {\n\t\tgovLog(message, WARNING_COLORS, args)\n\t}\n}\n\nexport const govErrorLog = (message: string, args?: unknown): void => {\n\tif (useErrorLog()) {\n\t\tgovLog(message, ERROR_COLORS, args)\n\t}\n}\n"],"version":3}