@gov-design-system-ce/components 4.6.0 → 4.6.3

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 (1274) hide show
  1. package/dist/cjs/Fragment-D4qSkFah.js.map +1 -1
  2. package/dist/cjs/accessibility-BQJmIVWV.js.map +1 -1
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  4. package/dist/cjs/array.utils-DOh1gCQS.js.map +1 -1
  5. package/dist/cjs/attribute-CH1-zDDl.js.map +1 -1
  6. package/dist/cjs/colors-DgrrxjsX.js.map +1 -1
  7. package/dist/cjs/constants-357ehBFU.js.map +1 -1
  8. package/dist/cjs/constants-CFAhiwqu.js.map +1 -1
  9. package/dist/cjs/constants-CYm8AK_D.js.map +1 -1
  10. package/dist/cjs/constants-CbBhWRUQ.js.map +1 -1
  11. package/dist/cjs/constants-ChDSk4SZ.js.map +1 -1
  12. package/dist/cjs/constants-D6LZ31rS.js.map +1 -1
  13. package/dist/cjs/constants-DcKnOyW4.js.map +1 -1
  14. package/dist/cjs/constants-Dmmp9FHy.js.map +1 -1
  15. package/dist/cjs/constants-WvkMgj1j.js.map +1 -1
  16. package/dist/cjs/constants-ymB2dvwV.js.map +1 -1
  17. package/dist/cjs/constants-z2ZSS2je.js.map +1 -1
  18. package/dist/cjs/form-GgXzZZ-E.js.map +1 -1
  19. package/dist/cjs/gov-accordion-item.cjs.entry.js +3 -3
  20. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  21. package/dist/cjs/gov-accordion-item.entry.cjs.js.map +1 -1
  22. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-accordion.entry.cjs.js.map +1 -1
  25. package/dist/cjs/gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js.map +1 -1
  26. package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
  27. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
  29. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-backdrop.entry.cjs.js.map +1 -1
  31. package/dist/cjs/gov-banner.cjs.entry.js +2 -2
  32. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gov-banner.entry.cjs.js.map +1 -1
  34. package/dist/cjs/gov-blockquote.cjs.entry.js +1 -1
  35. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-blockquote.entry.cjs.js.map +1 -1
  37. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
  38. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  39. package/dist/cjs/gov-breadcrumbs.entry.cjs.js.map +1 -1
  40. package/dist/cjs/gov-button.cjs.entry.js +3 -3
  41. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gov-button.entry.cjs.js.map +1 -1
  43. package/dist/cjs/gov-card.cjs.entry.js +1 -1
  44. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-card.entry.cjs.js.map +1 -1
  46. package/dist/cjs/gov-chip.cjs.entry.js +2 -2
  47. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  48. package/dist/cjs/gov-chip.entry.cjs.js.map +1 -1
  49. package/dist/cjs/gov-collapsible.cjs.entry.js +2 -2
  50. package/dist/cjs/gov-collapsible.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-collapsible.entry.cjs.js.map +1 -1
  52. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  53. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  54. package/dist/cjs/gov-container.entry.cjs.js.map +1 -1
  55. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  56. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  57. package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -1
  58. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  59. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
  60. package/dist/cjs/gov-cookiebar.entry.cjs.js.map +1 -1
  61. package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
  62. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  63. package/dist/cjs/gov-dialog.entry.cjs.js.map +1 -1
  64. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  65. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
  66. package/dist/cjs/gov-dropdown.entry.cjs.js.map +1 -1
  67. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  68. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  69. package/dist/cjs/gov-empty.entry.cjs.js.map +1 -1
  70. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  71. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-error-code.entry.cjs.js.map +1 -1
  73. package/dist/cjs/gov-flex.gov-icon.gov-theme-switch.entry.cjs.js.map +1 -1
  74. package/dist/cjs/gov-flex_3.cjs.entry.js +3 -3
  75. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  76. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
  77. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  78. package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +1 -1
  79. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +1 -1
  80. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  81. package/dist/cjs/gov-form-checkbox-group.entry.cjs.js.map +1 -1
  82. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  83. package/dist/cjs/gov-form-checkbox.entry.cjs.js.map +1 -1
  84. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  85. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  86. package/dist/cjs/gov-form-control.entry.cjs.js.map +1 -1
  87. package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
  88. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  89. package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -1
  90. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  91. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  92. package/dist/cjs/gov-form-group.entry.cjs.js.map +1 -1
  93. package/dist/cjs/gov-form-input.gov-skeleton.entry.cjs.js.map +1 -1
  94. package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
  95. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  96. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  97. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  98. package/dist/cjs/gov-form-label.entry.cjs.js.map +1 -1
  99. package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
  100. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gov-form-multi-select.entry.cjs.js.map +1 -1
  102. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  103. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
  104. package/dist/cjs/gov-form-password-power.entry.cjs.js.map +1 -1
  105. package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
  106. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  107. package/dist/cjs/gov-form-radio-group.entry.cjs.js.map +1 -1
  108. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  109. package/dist/cjs/gov-form-radio.entry.cjs.js.map +1 -1
  110. package/dist/cjs/gov-form-range.cjs.entry.js +2 -2
  111. package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -1
  112. package/dist/cjs/gov-form-range.entry.cjs.js.map +1 -1
  113. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  114. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  115. package/dist/cjs/gov-form-search.entry.cjs.js.map +1 -1
  116. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  117. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  118. package/dist/cjs/gov-form-select.entry.cjs.js.map +1 -1
  119. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  120. package/dist/cjs/gov-form-switch.entry.cjs.js.map +1 -1
  121. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  122. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  123. package/dist/cjs/gov-grid-item.entry.cjs.js.map +1 -1
  124. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  125. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  126. package/dist/cjs/gov-grid.entry.cjs.js.map +1 -1
  127. package/dist/cjs/gov-infobar.cjs.entry.js +2 -2
  128. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  129. package/dist/cjs/gov-infobar.entry.cjs.js.map +1 -1
  130. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  131. package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
  132. package/dist/cjs/gov-layout-column.entry.cjs.js.map +1 -1
  133. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  134. package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
  135. package/dist/cjs/gov-layout.entry.cjs.js.map +1 -1
  136. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  137. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -1
  138. package/dist/cjs/gov-lifecycle.entry.cjs.js.map +1 -1
  139. package/dist/cjs/gov-link.cjs.entry.js +1 -1
  140. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  141. package/dist/cjs/gov-link.entry.cjs.js.map +1 -1
  142. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  143. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  144. package/dist/cjs/gov-loading.entry.cjs.js.map +1 -1
  145. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  146. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  147. package/dist/cjs/gov-message.entry.cjs.js.map +1 -1
  148. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  149. package/dist/cjs/gov-pagination.entry.cjs.js.map +1 -1
  150. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  151. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  152. package/dist/cjs/gov-spacer.entry.cjs.js.map +1 -1
  153. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  154. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  155. package/dist/cjs/gov-stepper-item.entry.cjs.js.map +1 -1
  156. package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
  157. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  158. package/dist/cjs/gov-stepper.entry.cjs.js.map +1 -1
  159. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  160. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
  161. package/dist/cjs/gov-tabs-item.entry.cjs.js.map +1 -1
  162. package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
  163. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  164. package/dist/cjs/gov-tabs.entry.cjs.js.map +1 -1
  165. package/dist/cjs/gov-tag.cjs.entry.js +1 -1
  166. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  167. package/dist/cjs/gov-tag.entry.cjs.js.map +1 -1
  168. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  169. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  170. package/dist/cjs/gov-tile.entry.cjs.js.map +1 -1
  171. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  172. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  173. package/dist/cjs/gov-toast.entry.cjs.js.map +1 -1
  174. package/dist/cjs/gov-tooltip.gov-tooltip-content.entry.cjs.js.map +1 -1
  175. package/dist/cjs/gov-tooltip_2.cjs.entry.js +3 -3
  176. package/dist/cjs/gov-tooltip_2.cjs.entry.js.map +1 -1
  177. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  178. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  179. package/dist/cjs/gov-wizard-item.entry.cjs.js.map +1 -1
  180. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  181. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  182. package/dist/cjs/gov-wizard.entry.cjs.js.map +1 -1
  183. package/dist/cjs/gov.log-C5EH15b_.js.map +1 -1
  184. package/dist/cjs/helpers-DmI-ZOAH.js.map +1 -1
  185. package/dist/cjs/helpers.types-vap8QfRH.js.map +1 -1
  186. package/dist/cjs/props-CPENhBnM.js.map +1 -1
  187. package/dist/cjs/sizes-D5zsw2g5.js.map +1 -1
  188. package/dist/cjs/stencil.utils-8sCYbm34.js.map +1 -1
  189. package/dist/cjs/string.utils-BG4pUfEi.js.map +1 -1
  190. package/dist/cjs/template-Cj6PcLmR.js.map +1 -1
  191. package/dist/cjs/utils-NnC78QR3.js.map +1 -1
  192. package/dist/cjs/wcag-Bvzxnp5D.js.map +1 -1
  193. package/dist/collection/components/gov-accordion/constants.js.map +1 -1
  194. package/dist/collection/components/gov-accordion/gov-accordion-item.js +3 -3
  195. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  196. package/dist/collection/components/gov-accordion/gov-accordion.js +1 -1
  197. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  198. package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +1 -1
  199. package/dist/collection/components/gov-attachments/constants.js.map +1 -1
  200. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -1
  201. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  202. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  203. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  204. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
  205. package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
  206. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  207. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  208. package/dist/collection/components/gov-banner/constants.js.map +1 -1
  209. package/dist/collection/components/gov-banner/gov-banner.js +2 -2
  210. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
  211. package/dist/collection/components/gov-blockquote/constants.js.map +1 -1
  212. package/dist/collection/components/gov-blockquote/gov-blockquote.js +1 -1
  213. package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -1
  214. package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
  215. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -1
  216. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  217. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  218. package/dist/collection/components/gov-button/button/constants.js.map +1 -1
  219. package/dist/collection/components/gov-button/button/gov-button.js +5 -5
  220. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  221. package/dist/collection/components/gov-button/button/gov-button.types.js.map +1 -1
  222. package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -1
  223. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  224. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
  225. package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +1 -1
  226. package/dist/collection/components/gov-card/constants.js.map +1 -1
  227. package/dist/collection/components/gov-card/gov-card.js +1 -1
  228. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  229. package/dist/collection/components/gov-card/interfaces.js.map +1 -1
  230. package/dist/collection/components/gov-chip/constants.js.map +1 -1
  231. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  232. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  233. package/dist/collection/components/gov-collapsible/constants.js.map +1 -1
  234. package/dist/collection/components/gov-collapsible/gov-collapsible.js +2 -2
  235. package/dist/collection/components/gov-collapsible/gov-collapsible.js.map +1 -1
  236. package/dist/collection/components/gov-container/constants.js.map +1 -1
  237. package/dist/collection/components/gov-container/gov-container.js +1 -1
  238. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  239. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  240. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  241. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  242. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
  243. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  244. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
  245. package/dist/collection/components/gov-dialog/constants.js.map +1 -1
  246. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  247. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  248. package/dist/collection/components/gov-empty/constants.js.map +1 -1
  249. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  250. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
  251. package/dist/collection/components/gov-error-code/constants.js.map +1 -1
  252. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  253. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
  254. package/dist/collection/components/gov-flex/constants.js.map +1 -1
  255. package/dist/collection/components/gov-flex/gov-flex.js +1 -1
  256. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  257. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
  258. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -3
  259. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  260. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -1
  261. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
  262. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
  263. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  264. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +1 -1
  265. package/dist/collection/components/gov-form/control/constants.js.map +1 -1
  266. package/dist/collection/components/gov-form/control/gov-form-control.js +4 -4
  267. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  268. package/dist/collection/components/gov-form/file/constants.js.map +1 -1
  269. package/dist/collection/components/gov-form/file/gov-form-file.js +4 -4
  270. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  271. package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -1
  272. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  273. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  274. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
  275. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  276. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
  277. package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +1 -1
  278. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  279. package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
  280. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  281. package/dist/collection/components/gov-form/input/gov-form-input.js +6 -6
  282. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  283. package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +1 -1
  284. package/dist/collection/components/gov-form/label/constants.js.map +1 -1
  285. package/dist/collection/components/gov-form/label/gov-form-label.js +2 -2
  286. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  287. package/dist/collection/components/gov-form/message/constants.js.map +1 -1
  288. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  289. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
  290. package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
  291. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -4
  292. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  293. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
  294. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -1
  295. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  296. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
  297. package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
  298. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -2
  299. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  300. package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -1
  301. package/dist/collection/components/gov-form/range/constants.js.map +1 -1
  302. package/dist/collection/components/gov-form/range/gov-form-range.js +2 -2
  303. package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -1
  304. package/dist/collection/components/gov-form/search/constants.js.map +1 -1
  305. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  306. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  307. package/dist/collection/components/gov-form/select/constants.js.map +1 -1
  308. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  309. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  310. package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -1
  311. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  312. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  313. package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +1 -1
  314. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  315. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  316. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  317. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  318. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  319. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  320. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  321. package/dist/collection/components/gov-icon/helpers.js.map +1 -1
  322. package/dist/collection/components/gov-icon/list.js.map +1 -1
  323. package/dist/collection/components/gov-infobar/constants.js.map +1 -1
  324. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  325. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  326. package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +1 -1
  327. package/dist/collection/components/gov-layout/constants.js.map +1 -1
  328. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  329. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
  330. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  331. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
  332. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  333. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -1
  334. package/dist/collection/components/gov-link/constants.js.map +1 -1
  335. package/dist/collection/components/gov-link/gov-link.js +1 -1
  336. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  337. package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
  338. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  339. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  340. package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
  341. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  342. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  343. package/dist/collection/components/gov-message/constants.js.map +1 -1
  344. package/dist/collection/components/gov-message/gov-message.js +1 -1
  345. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  346. package/dist/collection/components/gov-pagination/constants.js.map +1 -1
  347. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  348. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  349. package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +1 -1
  350. package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
  351. package/dist/collection/components/gov-spacer/constants.js.map +1 -1
  352. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  353. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  354. package/dist/collection/components/gov-stepper/stepper/constants.js.map +1 -1
  355. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +1 -1
  356. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +1 -1
  357. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +1 -1
  358. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +1 -1
  359. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +1 -1
  360. package/dist/collection/components/gov-tabs/constants.js.map +1 -1
  361. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  362. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
  363. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  364. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  365. package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
  366. package/dist/collection/components/gov-tag/constants.js.map +1 -1
  367. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  368. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  369. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  370. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  371. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  372. package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +1 -1
  373. package/dist/collection/components/gov-tile/constants.js.map +1 -1
  374. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  375. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  376. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  377. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  378. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  379. package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
  380. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  381. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  382. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  383. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  384. package/dist/collection/components/gov-wizard/constants.js.map +1 -1
  385. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -1
  386. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  387. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  388. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -1
  389. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  390. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
  391. package/dist/collection/core/constants/colors.js.map +1 -1
  392. package/dist/collection/core/constants/sizes.js.map +1 -1
  393. package/dist/collection/core/constants/tags.js.map +1 -1
  394. package/dist/collection/core/constants/tokens.js.map +1 -1
  395. package/dist/collection/data/color-definitions.js +500 -494
  396. package/dist/collection/data/font-definitions.js +132 -132
  397. package/dist/collection/helpers/Accessibility/accessibility.js.map +1 -1
  398. package/dist/collection/helpers/Accessibility/attributes.js.map +1 -1
  399. package/dist/collection/helpers/Dom/attribute.js.map +1 -1
  400. package/dist/collection/helpers/Dom/document.js.map +1 -1
  401. package/dist/collection/helpers/Dom/form.js.map +1 -1
  402. package/dist/collection/helpers/Dom/form.types.js.map +1 -1
  403. package/dist/collection/helpers/Dom/template.js.map +1 -1
  404. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  405. package/dist/collection/helpers/Dom/win.js.map +1 -1
  406. package/dist/collection/helpers/Fragment.js.map +1 -1
  407. package/dist/collection/helpers/Log/gov.log.js.map +1 -1
  408. package/dist/collection/helpers/Validate/props.js.map +1 -1
  409. package/dist/collection/helpers/Validate/wcag.js.map +1 -1
  410. package/dist/collection/index.js.map +1 -1
  411. package/dist/collection/types/event.types.js.map +1 -1
  412. package/dist/collection/types/interfaces.js.map +1 -1
  413. package/dist/collection/utils/array.utils.js.map +1 -1
  414. package/dist/collection/utils/bool.utils.js.map +1 -1
  415. package/dist/collection/utils/dom.utils.js.map +1 -1
  416. package/dist/collection/utils/ds.utils.js.map +1 -1
  417. package/dist/collection/utils/file.utils.js.map +1 -1
  418. package/dist/collection/utils/helpers.types.js.map +1 -1
  419. package/dist/collection/utils/icon.utils.js.map +1 -1
  420. package/dist/collection/utils/number.utils.js.map +1 -1
  421. package/dist/collection/utils/object.utils.js.map +1 -1
  422. package/dist/collection/utils/stencil.utils.js.map +1 -1
  423. package/dist/collection/utils/string.utils.js.map +1 -1
  424. package/dist/collection/utils/utils.js.map +1 -1
  425. package/dist/components/gov-accordion-item.js +1 -1
  426. package/dist/components/gov-accordion-item.js.map +1 -1
  427. package/dist/components/gov-accordion.js +1 -1
  428. package/dist/components/gov-accordion.js.map +1 -1
  429. package/dist/components/gov-attachments-item.js +1 -1
  430. package/dist/components/gov-attachments.js +1 -1
  431. package/dist/components/gov-backdrop.js +1 -1
  432. package/dist/components/gov-banner.js +1 -1
  433. package/dist/components/gov-banner.js.map +1 -1
  434. package/dist/components/gov-blockquote.js +1 -1
  435. package/dist/components/gov-blockquote.js.map +1 -1
  436. package/dist/components/gov-breadcrumbs.js +1 -1
  437. package/dist/components/gov-breadcrumbs.js.map +1 -1
  438. package/dist/components/gov-button.js +1 -1
  439. package/dist/components/gov-card.js +1 -1
  440. package/dist/components/gov-card.js.map +1 -1
  441. package/dist/components/gov-chip.js +1 -1
  442. package/dist/components/gov-collapsible.js +1 -1
  443. package/dist/components/gov-collapsible.js.map +1 -1
  444. package/dist/components/gov-container.js +1 -1
  445. package/dist/components/gov-container.js.map +1 -1
  446. package/dist/components/gov-control-group.js +1 -1
  447. package/dist/components/gov-control-group.js.map +1 -1
  448. package/dist/components/gov-cookiebar.js +1 -1
  449. package/dist/components/gov-cookiebar.js.map +1 -1
  450. package/dist/components/gov-dialog.js +1 -1
  451. package/dist/components/gov-dialog.js.map +1 -1
  452. package/dist/components/gov-dropdown.js +1 -1
  453. package/dist/components/gov-dropdown.js.map +1 -1
  454. package/dist/components/gov-empty.js +1 -1
  455. package/dist/components/gov-empty.js.map +1 -1
  456. package/dist/components/gov-error-code.js +1 -1
  457. package/dist/components/gov-error-code.js.map +1 -1
  458. package/dist/components/gov-flex.js +1 -1
  459. package/dist/components/gov-flex.js.map +1 -1
  460. package/dist/components/gov-form-autocomplete.js +1 -1
  461. package/dist/components/gov-form-checkbox-group.js +1 -1
  462. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  463. package/dist/components/gov-form-checkbox.js +1 -1
  464. package/dist/components/gov-form-checkbox.js.map +1 -1
  465. package/dist/components/gov-form-control.js +1 -1
  466. package/dist/components/gov-form-control.js.map +1 -1
  467. package/dist/components/gov-form-file.js +1 -1
  468. package/dist/components/gov-form-file.js.map +1 -1
  469. package/dist/components/gov-form-group.js +1 -1
  470. package/dist/components/gov-form-group.js.map +1 -1
  471. package/dist/components/gov-form-input.js +1 -1
  472. package/dist/components/gov-form-label.js +1 -1
  473. package/dist/components/gov-form-label.js.map +1 -1
  474. package/dist/components/gov-form-message.js +1 -1
  475. package/dist/components/gov-form-multi-select.js +1 -1
  476. package/dist/components/gov-form-multi-select.js.map +1 -1
  477. package/dist/components/gov-form-password-power.js +1 -1
  478. package/dist/components/gov-form-password-power.js.map +1 -1
  479. package/dist/components/gov-form-radio-group.js +1 -1
  480. package/dist/components/gov-form-radio-group.js.map +1 -1
  481. package/dist/components/gov-form-radio.js.map +1 -1
  482. package/dist/components/gov-form-range.js +1 -1
  483. package/dist/components/gov-form-range.js.map +1 -1
  484. package/dist/components/gov-form-search.js +1 -1
  485. package/dist/components/gov-form-search.js.map +1 -1
  486. package/dist/components/gov-form-select.js +1 -1
  487. package/dist/components/gov-form-switch.js +1 -1
  488. package/dist/components/gov-form-switch.js.map +1 -1
  489. package/dist/components/gov-grid-item.js +1 -1
  490. package/dist/components/gov-grid-item.js.map +1 -1
  491. package/dist/components/gov-grid.js +1 -1
  492. package/dist/components/gov-grid.js.map +1 -1
  493. package/dist/components/gov-icon.js +1 -1
  494. package/dist/components/gov-infobar.js +1 -1
  495. package/dist/components/gov-infobar.js.map +1 -1
  496. package/dist/components/gov-layout-column.js +1 -1
  497. package/dist/components/gov-layout-column.js.map +1 -1
  498. package/dist/components/gov-layout.js +1 -1
  499. package/dist/components/gov-layout.js.map +1 -1
  500. package/dist/components/gov-lifecycle.js +1 -1
  501. package/dist/components/gov-lifecycle.js.map +1 -1
  502. package/dist/components/gov-link.js +1 -1
  503. package/dist/components/gov-link.js.map +1 -1
  504. package/dist/components/gov-loading.js +1 -1
  505. package/dist/components/gov-loading.js.map +1 -1
  506. package/dist/components/gov-message.js +1 -1
  507. package/dist/components/gov-message.js.map +1 -1
  508. package/dist/components/gov-pagination.js +1 -1
  509. package/dist/components/gov-pagination.js.map +1 -1
  510. package/dist/components/gov-skeleton.js +1 -1
  511. package/dist/components/gov-spacer.js +1 -1
  512. package/dist/components/gov-spacer.js.map +1 -1
  513. package/dist/components/gov-stepper-item.js +1 -1
  514. package/dist/components/gov-stepper-item.js.map +1 -1
  515. package/dist/components/gov-stepper.js +1 -1
  516. package/dist/components/gov-stepper.js.map +1 -1
  517. package/dist/components/gov-tabs-item.js +1 -1
  518. package/dist/components/gov-tabs-item.js.map +1 -1
  519. package/dist/components/gov-tabs.js +1 -1
  520. package/dist/components/gov-tabs.js.map +1 -1
  521. package/dist/components/gov-tag.js +1 -1
  522. package/dist/components/gov-tag.js.map +1 -1
  523. package/dist/components/gov-theme-switch.js +1 -1
  524. package/dist/components/gov-theme-switch.js.map +1 -1
  525. package/dist/components/gov-tile.js +1 -1
  526. package/dist/components/gov-tile.js.map +1 -1
  527. package/dist/components/gov-toast.js +1 -1
  528. package/dist/components/gov-toast.js.map +1 -1
  529. package/dist/components/gov-tooltip-content.js +1 -1
  530. package/dist/components/gov-tooltip.js +1 -1
  531. package/dist/components/gov-wizard-item.js +1 -1
  532. package/dist/components/gov-wizard-item.js.map +1 -1
  533. package/dist/components/gov-wizard.js +1 -1
  534. package/dist/components/gov-wizard.js.map +1 -1
  535. package/dist/components/p-4i8qDRtu.js.map +1 -1
  536. package/dist/components/p-5itQzbON.js.map +1 -1
  537. package/dist/components/p-9imLQpxb.js.map +1 -1
  538. package/dist/components/p-B0KFtEn3.js +2 -0
  539. package/dist/components/p-B0KFtEn3.js.map +1 -0
  540. package/dist/components/p-B0hcuYXk.js.map +1 -1
  541. package/dist/components/p-B3tdsiZv.js.map +1 -1
  542. package/dist/components/p-BKP-F1qP.js.map +1 -1
  543. package/dist/components/{p-D8QfVS4O.js → p-BNnuBQvo.js} +2 -2
  544. package/dist/components/p-BNnuBQvo.js.map +1 -0
  545. package/dist/components/p-BTwdrNoS.js.map +1 -1
  546. package/dist/components/p-BUmDydor.js.map +1 -1
  547. package/dist/components/{p-DW1DKFMF.js → p-BZTY3MxF.js} +2 -2
  548. package/dist/components/p-BZTY3MxF.js.map +1 -0
  549. package/dist/components/p-BcQO4NH2.js.map +1 -1
  550. package/dist/components/{p-BJnSrRNH.js → p-BrdXh0mI.js} +2 -2
  551. package/dist/components/p-BrdXh0mI.js.map +1 -0
  552. package/dist/components/{p-_FzmpyXv.js → p-Bv5L0j6n.js} +2 -2
  553. package/dist/components/p-Bv5L0j6n.js.map +1 -0
  554. package/dist/components/p-C6JN9gdb.js.map +1 -1
  555. package/dist/components/p-CNqoJU2V.js.map +1 -1
  556. package/dist/components/p-CQvUntGY.js.map +1 -1
  557. package/dist/components/p-CUVZZBqo.js.map +1 -1
  558. package/dist/components/p-CXgom82_.js.map +1 -1
  559. package/dist/components/p-CZr7GBEo.js.map +1 -1
  560. package/dist/components/p-CfaJM4SA.js +2 -0
  561. package/dist/components/p-CfaJM4SA.js.map +1 -0
  562. package/dist/components/p-Cjg0wpDG.js.map +1 -1
  563. package/dist/components/p-ClYmjarv.js.map +1 -1
  564. package/dist/components/p-DBXGhafv.js.map +1 -1
  565. package/dist/components/{p-Ba8Z-AIX.js → p-DFu5UVoP.js} +2 -2
  566. package/dist/components/p-DFu5UVoP.js.map +1 -0
  567. package/dist/components/p-DKo9A5gq.js.map +1 -1
  568. package/dist/components/{p-9VlKyZSl.js → p-DMVQRz4f.js} +2 -2
  569. package/dist/components/p-DMVQRz4f.js.map +1 -0
  570. package/dist/components/{p-2_-up8FX.js → p-DesycS6d.js} +2 -2
  571. package/dist/components/p-DesycS6d.js.map +1 -0
  572. package/dist/components/p-DfI_0WW6.js.map +1 -1
  573. package/dist/components/p-DrPpH_9c.js.map +1 -1
  574. package/dist/components/p-EeKNA85D.js.map +1 -1
  575. package/dist/components/p-GYov8gU1.js.map +1 -1
  576. package/dist/components/p-Nvj7WFs_.js.map +1 -1
  577. package/dist/components/p-Q99QrOoi.js.map +1 -1
  578. package/dist/components/p-U40vKHrs.js.map +1 -1
  579. package/dist/components/{p-DZJk8GrA.js → p-UDT3DloZ.js} +2 -2
  580. package/dist/components/p-UDT3DloZ.js.map +1 -0
  581. package/dist/components/{p-CWqMiVYH.js → p-djqfSbq-.js} +2 -2
  582. package/dist/components/p-djqfSbq-.js.map +1 -0
  583. package/dist/components/p-vN03FcXN.js.map +1 -1
  584. package/dist/components/{p-DhGb8cBK.js → p-x3w8Mun_.js} +2 -2
  585. package/dist/components/p-x3w8Mun_.js.map +1 -0
  586. package/dist/components/p-yqJEurSE.js +2 -0
  587. package/dist/components/p-yqJEurSE.js.map +1 -0
  588. package/dist/core/core.css +38 -38
  589. package/dist/core/core.esm.js +1 -1
  590. package/dist/core/gov-accordion-item.entry.esm.js.map +1 -1
  591. package/dist/core/gov-accordion.entry.esm.js.map +1 -1
  592. package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +1 -1
  593. package/dist/core/gov-backdrop.entry.esm.js.map +1 -1
  594. package/dist/core/gov-banner.entry.esm.js.map +1 -1
  595. package/dist/core/gov-blockquote.entry.esm.js.map +1 -1
  596. package/dist/core/gov-breadcrumbs.entry.esm.js.map +1 -1
  597. package/dist/core/gov-button.entry.esm.js.map +1 -1
  598. package/dist/core/gov-card.entry.esm.js.map +1 -1
  599. package/dist/core/gov-chip.entry.esm.js.map +1 -1
  600. package/dist/core/gov-collapsible.entry.esm.js.map +1 -1
  601. package/dist/core/gov-container.entry.esm.js.map +1 -1
  602. package/dist/core/gov-control-group.entry.esm.js.map +1 -1
  603. package/dist/core/gov-cookiebar.entry.esm.js.map +1 -1
  604. package/dist/core/gov-dialog.entry.esm.js.map +1 -1
  605. package/dist/core/gov-dropdown.entry.esm.js.map +1 -1
  606. package/dist/core/gov-empty.entry.esm.js.map +1 -1
  607. package/dist/core/gov-error-code.entry.esm.js.map +1 -1
  608. package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +1 -1
  609. package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -1
  610. package/dist/core/gov-form-checkbox-group.entry.esm.js.map +1 -1
  611. package/dist/core/gov-form-checkbox.entry.esm.js.map +1 -1
  612. package/dist/core/gov-form-control.entry.esm.js.map +1 -1
  613. package/dist/core/gov-form-file.entry.esm.js.map +1 -1
  614. package/dist/core/gov-form-group.entry.esm.js.map +1 -1
  615. package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +1 -1
  616. package/dist/core/gov-form-label.entry.esm.js.map +1 -1
  617. package/dist/core/gov-form-multi-select.entry.esm.js.map +1 -1
  618. package/dist/core/gov-form-password-power.entry.esm.js.map +1 -1
  619. package/dist/core/gov-form-radio-group.entry.esm.js.map +1 -1
  620. package/dist/core/gov-form-radio.entry.esm.js.map +1 -1
  621. package/dist/core/gov-form-range.entry.esm.js.map +1 -1
  622. package/dist/core/gov-form-search.entry.esm.js.map +1 -1
  623. package/dist/core/gov-form-select.entry.esm.js.map +1 -1
  624. package/dist/core/gov-form-switch.entry.esm.js.map +1 -1
  625. package/dist/core/gov-grid-item.entry.esm.js.map +1 -1
  626. package/dist/core/gov-grid.entry.esm.js.map +1 -1
  627. package/dist/core/gov-infobar.entry.esm.js.map +1 -1
  628. package/dist/core/gov-layout-column.entry.esm.js.map +1 -1
  629. package/dist/core/gov-layout.entry.esm.js.map +1 -1
  630. package/dist/core/gov-lifecycle.entry.esm.js.map +1 -1
  631. package/dist/core/gov-link.entry.esm.js.map +1 -1
  632. package/dist/core/gov-loading.entry.esm.js.map +1 -1
  633. package/dist/core/gov-message.entry.esm.js.map +1 -1
  634. package/dist/core/gov-pagination.entry.esm.js.map +1 -1
  635. package/dist/core/gov-spacer.entry.esm.js.map +1 -1
  636. package/dist/core/gov-stepper-item.entry.esm.js.map +1 -1
  637. package/dist/core/gov-stepper.entry.esm.js.map +1 -1
  638. package/dist/core/gov-tabs-item.entry.esm.js.map +1 -1
  639. package/dist/core/gov-tabs.entry.esm.js.map +1 -1
  640. package/dist/core/gov-tag.entry.esm.js.map +1 -1
  641. package/dist/core/gov-tile.entry.esm.js.map +1 -1
  642. package/dist/core/gov-toast.entry.esm.js.map +1 -1
  643. package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +1 -1
  644. package/dist/core/gov-wizard-item.entry.esm.js.map +1 -1
  645. package/dist/core/gov-wizard.entry.esm.js.map +1 -1
  646. package/dist/core/{p-37f6095e.entry.js → p-04ec45ab.entry.js} +2 -2
  647. package/dist/core/p-04ec45ab.entry.js.map +1 -0
  648. package/dist/core/p-0af96cc0.entry.js +2 -0
  649. package/dist/core/p-0af96cc0.entry.js.map +1 -0
  650. package/dist/core/{p-b93548cc.entry.js → p-11fc3899.entry.js} +2 -2
  651. package/dist/core/p-11fc3899.entry.js.map +1 -0
  652. package/dist/core/{p-67d1e6e2.entry.js → p-157a1636.entry.js} +2 -2
  653. package/dist/core/p-157a1636.entry.js.map +1 -0
  654. package/dist/core/p-1626cc67.entry.js +2 -0
  655. package/dist/core/p-1626cc67.entry.js.map +1 -0
  656. package/dist/core/{p-46effc25.entry.js → p-187c0eda.entry.js} +2 -2
  657. package/dist/core/p-187c0eda.entry.js.map +1 -0
  658. package/dist/core/p-3314505d.entry.js +2 -0
  659. package/dist/core/p-3314505d.entry.js.map +1 -0
  660. package/dist/core/p-33209782.entry.js +2 -0
  661. package/dist/core/p-33209782.entry.js.map +1 -0
  662. package/dist/core/{p-715c0e2e.entry.js → p-33b462c9.entry.js} +2 -2
  663. package/dist/core/p-33b462c9.entry.js.map +1 -0
  664. package/dist/core/{p-f067af74.entry.js → p-3e07bf07.entry.js} +2 -2
  665. package/dist/core/p-3e07bf07.entry.js.map +1 -0
  666. package/dist/core/p-3e5ae012.entry.js +2 -0
  667. package/dist/core/p-3e5ae012.entry.js.map +1 -0
  668. package/dist/core/p-46824842.entry.js.map +1 -1
  669. package/dist/core/{p-1375d52d.entry.js → p-469f14db.entry.js} +2 -2
  670. package/dist/core/p-469f14db.entry.js.map +1 -0
  671. package/dist/core/p-4c02094d.entry.js +2 -0
  672. package/dist/core/p-4c02094d.entry.js.map +1 -0
  673. package/dist/core/{p-6f173022.entry.js → p-4d365881.entry.js} +2 -2
  674. package/dist/core/p-4d365881.entry.js.map +1 -0
  675. package/dist/core/p-4d36cd18.entry.js +2 -0
  676. package/dist/core/p-4d36cd18.entry.js.map +1 -0
  677. package/dist/core/p-4d902f20.entry.js +2 -0
  678. package/dist/core/p-4d902f20.entry.js.map +1 -0
  679. package/dist/core/p-4da8ac1d.entry.js +2 -0
  680. package/dist/core/p-4da8ac1d.entry.js.map +1 -0
  681. package/dist/core/p-511eed88.entry.js +2 -0
  682. package/dist/core/p-511eed88.entry.js.map +1 -0
  683. package/dist/core/{p-8655fd24.entry.js → p-5305e82e.entry.js} +2 -2
  684. package/dist/core/p-5305e82e.entry.js.map +1 -0
  685. package/dist/core/p-558e75a6.entry.js +2 -0
  686. package/dist/core/p-558e75a6.entry.js.map +1 -0
  687. package/dist/core/p-5721cf9b.entry.js.map +1 -1
  688. package/dist/core/p-57ca8ac7.entry.js +2 -0
  689. package/dist/core/p-57ca8ac7.entry.js.map +1 -0
  690. package/dist/core/{p-8161e1fe.entry.js → p-5c872d64.entry.js} +2 -2
  691. package/dist/core/p-5c872d64.entry.js.map +1 -0
  692. package/dist/core/p-5itQzbON.js.map +1 -1
  693. package/dist/core/p-65a09763.entry.js +2 -0
  694. package/dist/core/p-65a09763.entry.js.map +1 -0
  695. package/dist/core/{p-e7f889c7.entry.js → p-6b44890d.entry.js} +2 -2
  696. package/dist/core/p-6b44890d.entry.js.map +1 -0
  697. package/dist/core/p-6d2ce4c7.entry.js +2 -0
  698. package/dist/core/p-6d2ce4c7.entry.js.map +1 -0
  699. package/dist/core/{p-b3b517f0.entry.js → p-70b5555f.entry.js} +2 -2
  700. package/dist/core/p-70b5555f.entry.js.map +1 -0
  701. package/dist/core/p-73bd93f9.entry.js +2 -0
  702. package/dist/core/p-73bd93f9.entry.js.map +1 -0
  703. package/dist/core/p-852310d9.entry.js +2 -0
  704. package/dist/core/p-852310d9.entry.js.map +1 -0
  705. package/dist/core/p-90ab65b4.entry.js +2 -0
  706. package/dist/core/p-90ab65b4.entry.js.map +1 -0
  707. package/dist/core/{p-2cfa670d.entry.js → p-91cbee1b.entry.js} +2 -2
  708. package/dist/core/p-91cbee1b.entry.js.map +1 -0
  709. package/dist/core/p-9d9e9401.entry.js +2 -0
  710. package/dist/core/p-9d9e9401.entry.js.map +1 -0
  711. package/dist/core/p-B6CqPcY_.js.map +1 -1
  712. package/dist/core/p-BUmDydor.js.map +1 -1
  713. package/dist/core/p-BcQO4NH2.js.map +1 -1
  714. package/dist/core/p-BjcqOprh.js.map +1 -1
  715. package/dist/core/p-Bo1ROm5Q.js.map +1 -1
  716. package/dist/core/p-Bz_RzYFb.js.map +1 -1
  717. package/dist/core/p-C3R1T_pg.js.map +1 -1
  718. package/dist/core/p-C6JN9gdb.js.map +1 -1
  719. package/dist/core/p-CDIRBJsi.js.map +1 -1
  720. package/dist/core/p-CQvUntGY.js.map +1 -1
  721. package/dist/core/p-Ccwpa1ck.js.map +1 -1
  722. package/dist/core/p-CgDnDrq5.js.map +1 -1
  723. package/dist/core/p-Cjg0wpDG.js.map +1 -1
  724. package/dist/core/p-CoD1xawt.js.map +1 -1
  725. package/dist/core/p-Cx3bEC5v.js.map +1 -1
  726. package/dist/core/p-CzXeijOj.js.map +1 -1
  727. package/dist/core/p-D4TGB274.js.map +1 -1
  728. package/dist/core/p-DBXGhafv.js.map +1 -1
  729. package/dist/core/p-DNztiAH0.js.map +1 -1
  730. package/dist/core/p-DQuL1Twl.js.map +1 -1
  731. package/dist/core/p-DYcNEwSZ.js.map +1 -1
  732. package/dist/core/p-EeKNA85D.js.map +1 -1
  733. package/dist/core/p-GYov8gU1.js.map +1 -1
  734. package/dist/core/p-NOJjz9dT.js.map +1 -1
  735. package/dist/core/p-Q99QrOoi.js.map +1 -1
  736. package/dist/core/p-U40vKHrs.js.map +1 -1
  737. package/dist/core/p-a2c61d50.entry.js +2 -0
  738. package/dist/core/p-a2c61d50.entry.js.map +1 -0
  739. package/dist/core/p-abb7780e.entry.js +2 -0
  740. package/dist/core/p-abb7780e.entry.js.map +1 -0
  741. package/dist/core/p-bd2df430.entry.js +2 -0
  742. package/dist/core/p-bd2df430.entry.js.map +1 -0
  743. package/dist/core/p-bd389bfd.entry.js +2 -0
  744. package/dist/core/p-bd389bfd.entry.js.map +1 -0
  745. package/dist/core/{p-7387370c.entry.js → p-be9af807.entry.js} +2 -2
  746. package/dist/core/p-be9af807.entry.js.map +1 -0
  747. package/dist/core/p-bf573a56.entry.js +2 -0
  748. package/dist/core/p-bf573a56.entry.js.map +1 -0
  749. package/dist/core/p-c1b9f1ab.entry.js +2 -0
  750. package/dist/core/p-c1b9f1ab.entry.js.map +1 -0
  751. package/dist/core/{p-01bc645f.entry.js → p-c21bc8f9.entry.js} +2 -2
  752. package/dist/core/p-c21bc8f9.entry.js.map +1 -0
  753. package/dist/core/{p-dec65494.entry.js → p-c4734357.entry.js} +2 -2
  754. package/dist/core/p-c4734357.entry.js.map +1 -0
  755. package/dist/core/p-c6b55c0a.entry.js.map +1 -1
  756. package/dist/core/p-cd163299.entry.js +2 -0
  757. package/dist/core/p-cd163299.entry.js.map +1 -0
  758. package/dist/core/p-d43959a0.entry.js +2 -0
  759. package/dist/core/p-d43959a0.entry.js.map +1 -0
  760. package/dist/core/p-d9c574f0.entry.js +2 -0
  761. package/dist/core/p-d9c574f0.entry.js.map +1 -0
  762. package/dist/core/p-da997fb3.entry.js +2 -0
  763. package/dist/core/p-da997fb3.entry.js.map +1 -0
  764. package/dist/core/{p-017d6340.entry.js → p-db860031.entry.js} +2 -2
  765. package/dist/core/p-db860031.entry.js.map +1 -0
  766. package/dist/core/p-def34832.entry.js +2 -0
  767. package/dist/core/p-def34832.entry.js.map +1 -0
  768. package/dist/core/p-e30968b3.entry.js +2 -0
  769. package/dist/core/p-e30968b3.entry.js.map +1 -0
  770. package/dist/core/{p-e1b2af6b.entry.js → p-e39e5dc7.entry.js} +2 -2
  771. package/dist/core/p-e39e5dc7.entry.js.map +1 -0
  772. package/dist/core/p-eb3f6808.entry.js +2 -0
  773. package/dist/core/p-eb3f6808.entry.js.map +1 -0
  774. package/dist/core/{p-f58a20af.entry.js → p-eb766437.entry.js} +2 -2
  775. package/dist/core/p-eb766437.entry.js.map +1 -0
  776. package/dist/core/{p-495e25d8.entry.js → p-f3887d6d.entry.js} +2 -2
  777. package/dist/core/p-f3887d6d.entry.js.map +1 -0
  778. package/dist/core/p-f7bdb44a.entry.js.map +1 -1
  779. package/dist/core/p-fca7a0d6.entry.js +2 -0
  780. package/dist/core/p-fca7a0d6.entry.js.map +1 -0
  781. package/dist/core/p-vN03FcXN.js.map +1 -1
  782. package/dist/esm/Fragment-5itQzbON.js.map +1 -1
  783. package/dist/esm/accessibility-wqNV8djF.js.map +1 -1
  784. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  785. package/dist/esm/array.utils-CJ0U_ONv.js.map +1 -1
  786. package/dist/esm/attribute-Bz_RzYFb.js.map +1 -1
  787. package/dist/esm/colors-U40vKHrs.js.map +1 -1
  788. package/dist/esm/constants-BNBB_29K.js.map +1 -1
  789. package/dist/esm/constants-BegH8u6i.js.map +1 -1
  790. package/dist/esm/constants-BiWo5BNa.js.map +1 -1
  791. package/dist/esm/constants-CysDgoMA.js.map +1 -1
  792. package/dist/esm/constants-DHvN41Ek.js.map +1 -1
  793. package/dist/esm/constants-DbTQsVRc.js.map +1 -1
  794. package/dist/esm/constants-Du0ZtfYe.js.map +1 -1
  795. package/dist/esm/constants-Q99QrOoi.js.map +1 -1
  796. package/dist/esm/constants-YOtDGTm5.js.map +1 -1
  797. package/dist/esm/constants-aqe7GX2n.js.map +1 -1
  798. package/dist/esm/constants-oYp2tkdN.js.map +1 -1
  799. package/dist/esm/form-DvhJiKwA.js.map +1 -1
  800. package/dist/esm/gov-accordion-item.entry.js +3 -3
  801. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  802. package/dist/esm/gov-accordion.entry.js +1 -1
  803. package/dist/esm/gov-accordion.entry.js.map +1 -1
  804. package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +1 -1
  805. package/dist/esm/gov-attachments_3.entry.js +3 -3
  806. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  807. package/dist/esm/gov-backdrop.entry.js +1 -1
  808. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  809. package/dist/esm/gov-banner.entry.js +2 -2
  810. package/dist/esm/gov-banner.entry.js.map +1 -1
  811. package/dist/esm/gov-blockquote.entry.js +1 -1
  812. package/dist/esm/gov-blockquote.entry.js.map +1 -1
  813. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  814. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  815. package/dist/esm/gov-button.entry.js +3 -3
  816. package/dist/esm/gov-button.entry.js.map +1 -1
  817. package/dist/esm/gov-card.entry.js +1 -1
  818. package/dist/esm/gov-card.entry.js.map +1 -1
  819. package/dist/esm/gov-chip.entry.js +2 -2
  820. package/dist/esm/gov-chip.entry.js.map +1 -1
  821. package/dist/esm/gov-collapsible.entry.js +2 -2
  822. package/dist/esm/gov-collapsible.entry.js.map +1 -1
  823. package/dist/esm/gov-container.entry.js +1 -1
  824. package/dist/esm/gov-container.entry.js.map +1 -1
  825. package/dist/esm/gov-control-group.entry.js +1 -1
  826. package/dist/esm/gov-control-group.entry.js.map +1 -1
  827. package/dist/esm/gov-cookiebar.entry.js +1 -1
  828. package/dist/esm/gov-cookiebar.entry.js.map +1 -1
  829. package/dist/esm/gov-dialog.entry.js +1 -1
  830. package/dist/esm/gov-dialog.entry.js.map +1 -1
  831. package/dist/esm/gov-dropdown.entry.js +1 -1
  832. package/dist/esm/gov-dropdown.entry.js.map +1 -1
  833. package/dist/esm/gov-empty.entry.js +1 -1
  834. package/dist/esm/gov-empty.entry.js.map +1 -1
  835. package/dist/esm/gov-error-code.entry.js +1 -1
  836. package/dist/esm/gov-error-code.entry.js.map +1 -1
  837. package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +1 -1
  838. package/dist/esm/gov-flex_3.entry.js +3 -3
  839. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  840. package/dist/esm/gov-form-autocomplete.entry.js +1 -1
  841. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  842. package/dist/esm/gov-form-checkbox-group.entry.js +1 -1
  843. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  844. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  845. package/dist/esm/gov-form-control.entry.js +1 -1
  846. package/dist/esm/gov-form-control.entry.js.map +1 -1
  847. package/dist/esm/gov-form-file.entry.js +1 -1
  848. package/dist/esm/gov-form-file.entry.js.map +1 -1
  849. package/dist/esm/gov-form-group.entry.js +1 -1
  850. package/dist/esm/gov-form-group.entry.js.map +1 -1
  851. package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +1 -1
  852. package/dist/esm/gov-form-input_2.entry.js +6 -6
  853. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  854. package/dist/esm/gov-form-label.entry.js +1 -1
  855. package/dist/esm/gov-form-label.entry.js.map +1 -1
  856. package/dist/esm/gov-form-multi-select.entry.js +2 -2
  857. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  858. package/dist/esm/gov-form-password-power.entry.js +1 -1
  859. package/dist/esm/gov-form-password-power.entry.js.map +1 -1
  860. package/dist/esm/gov-form-radio-group.entry.js +1 -1
  861. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  862. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  863. package/dist/esm/gov-form-range.entry.js +2 -2
  864. package/dist/esm/gov-form-range.entry.js.map +1 -1
  865. package/dist/esm/gov-form-search.entry.js +1 -1
  866. package/dist/esm/gov-form-search.entry.js.map +1 -1
  867. package/dist/esm/gov-form-select.entry.js +2 -2
  868. package/dist/esm/gov-form-select.entry.js.map +1 -1
  869. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  870. package/dist/esm/gov-grid-item.entry.js +1 -1
  871. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  872. package/dist/esm/gov-grid.entry.js +1 -1
  873. package/dist/esm/gov-grid.entry.js.map +1 -1
  874. package/dist/esm/gov-infobar.entry.js +2 -2
  875. package/dist/esm/gov-infobar.entry.js.map +1 -1
  876. package/dist/esm/gov-layout-column.entry.js +1 -1
  877. package/dist/esm/gov-layout-column.entry.js.map +1 -1
  878. package/dist/esm/gov-layout.entry.js +1 -1
  879. package/dist/esm/gov-layout.entry.js.map +1 -1
  880. package/dist/esm/gov-lifecycle.entry.js +1 -1
  881. package/dist/esm/gov-lifecycle.entry.js.map +1 -1
  882. package/dist/esm/gov-link.entry.js +1 -1
  883. package/dist/esm/gov-link.entry.js.map +1 -1
  884. package/dist/esm/gov-loading.entry.js +1 -1
  885. package/dist/esm/gov-loading.entry.js.map +1 -1
  886. package/dist/esm/gov-message.entry.js +1 -1
  887. package/dist/esm/gov-message.entry.js.map +1 -1
  888. package/dist/esm/gov-pagination.entry.js.map +1 -1
  889. package/dist/esm/gov-spacer.entry.js +1 -1
  890. package/dist/esm/gov-spacer.entry.js.map +1 -1
  891. package/dist/esm/gov-stepper-item.entry.js +1 -1
  892. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  893. package/dist/esm/gov-stepper.entry.js +1 -1
  894. package/dist/esm/gov-stepper.entry.js.map +1 -1
  895. package/dist/esm/gov-tabs-item.entry.js +1 -1
  896. package/dist/esm/gov-tabs-item.entry.js.map +1 -1
  897. package/dist/esm/gov-tabs.entry.js +1 -1
  898. package/dist/esm/gov-tabs.entry.js.map +1 -1
  899. package/dist/esm/gov-tag.entry.js +1 -1
  900. package/dist/esm/gov-tag.entry.js.map +1 -1
  901. package/dist/esm/gov-tile.entry.js +1 -1
  902. package/dist/esm/gov-tile.entry.js.map +1 -1
  903. package/dist/esm/gov-toast.entry.js +1 -1
  904. package/dist/esm/gov-toast.entry.js.map +1 -1
  905. package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +1 -1
  906. package/dist/esm/gov-tooltip_2.entry.js +3 -3
  907. package/dist/esm/gov-tooltip_2.entry.js.map +1 -1
  908. package/dist/esm/gov-wizard-item.entry.js +2 -2
  909. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  910. package/dist/esm/gov-wizard.entry.js +1 -1
  911. package/dist/esm/gov-wizard.entry.js.map +1 -1
  912. package/dist/esm/gov.log-BtqD9K8d.js.map +1 -1
  913. package/dist/esm/helpers-GYov8gU1.js.map +1 -1
  914. package/dist/esm/helpers.types-DNztiAH0.js.map +1 -1
  915. package/dist/esm/props-CJZgTDla.js.map +1 -1
  916. package/dist/esm/sizes-BcQO4NH2.js.map +1 -1
  917. package/dist/esm/stencil.utils-Cjg0wpDG.js.map +1 -1
  918. package/dist/esm/string.utils-vN03FcXN.js.map +1 -1
  919. package/dist/esm/template-CoD1xawt.js.map +1 -1
  920. package/dist/esm/utils-CQvUntGY.js.map +1 -1
  921. package/dist/esm/wcag-CD6_13JO.js.map +1 -1
  922. package/dist/globals.d.ts +2 -2
  923. package/dist/hydrate/index.js +75 -75
  924. package/dist/hydrate/index.mjs +75 -75
  925. package/dist/stencil.config.js.map +1 -1
  926. package/dist/types/interfaces.d.ts +1 -1
  927. package/dist/types/types/typings.d.ts +6 -6
  928. package/dist/types/work/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  929. package/package.json +29 -29
  930. package/dist/components/p-2_-up8FX.js.map +0 -1
  931. package/dist/components/p-9VlKyZSl.js.map +0 -1
  932. package/dist/components/p-BJnSrRNH.js.map +0 -1
  933. package/dist/components/p-Ba8Z-AIX.js.map +0 -1
  934. package/dist/components/p-BnxqJyb_.js +0 -2
  935. package/dist/components/p-BnxqJyb_.js.map +0 -1
  936. package/dist/components/p-CJnwyVlG.js +0 -2
  937. package/dist/components/p-CJnwyVlG.js.map +0 -1
  938. package/dist/components/p-CWqMiVYH.js.map +0 -1
  939. package/dist/components/p-CgXcNDpE.js +0 -2
  940. package/dist/components/p-CgXcNDpE.js.map +0 -1
  941. package/dist/components/p-D8QfVS4O.js.map +0 -1
  942. package/dist/components/p-DW1DKFMF.js.map +0 -1
  943. package/dist/components/p-DZJk8GrA.js.map +0 -1
  944. package/dist/components/p-DhGb8cBK.js.map +0 -1
  945. package/dist/components/p-_FzmpyXv.js.map +0 -1
  946. package/dist/core/p-017d6340.entry.js.map +0 -1
  947. package/dist/core/p-01bc645f.entry.js.map +0 -1
  948. package/dist/core/p-0e06af2b.entry.js +0 -2
  949. package/dist/core/p-0e06af2b.entry.js.map +0 -1
  950. package/dist/core/p-1375d52d.entry.js.map +0 -1
  951. package/dist/core/p-264cbd4e.entry.js +0 -2
  952. package/dist/core/p-264cbd4e.entry.js.map +0 -1
  953. package/dist/core/p-2cfa670d.entry.js.map +0 -1
  954. package/dist/core/p-33a62c22.entry.js +0 -2
  955. package/dist/core/p-33a62c22.entry.js.map +0 -1
  956. package/dist/core/p-37f6095e.entry.js.map +0 -1
  957. package/dist/core/p-3cf20b56.entry.js +0 -2
  958. package/dist/core/p-3cf20b56.entry.js.map +0 -1
  959. package/dist/core/p-46effc25.entry.js.map +0 -1
  960. package/dist/core/p-495e25d8.entry.js.map +0 -1
  961. package/dist/core/p-4aea131f.entry.js +0 -2
  962. package/dist/core/p-4aea131f.entry.js.map +0 -1
  963. package/dist/core/p-4ce8e721.entry.js +0 -2
  964. package/dist/core/p-4ce8e721.entry.js.map +0 -1
  965. package/dist/core/p-5283672a.entry.js +0 -2
  966. package/dist/core/p-5283672a.entry.js.map +0 -1
  967. package/dist/core/p-54209c57.entry.js +0 -2
  968. package/dist/core/p-54209c57.entry.js.map +0 -1
  969. package/dist/core/p-56dc11ba.entry.js +0 -2
  970. package/dist/core/p-56dc11ba.entry.js.map +0 -1
  971. package/dist/core/p-58911028.entry.js +0 -2
  972. package/dist/core/p-58911028.entry.js.map +0 -1
  973. package/dist/core/p-617b0dbe.entry.js +0 -2
  974. package/dist/core/p-617b0dbe.entry.js.map +0 -1
  975. package/dist/core/p-6781bfc0.entry.js +0 -2
  976. package/dist/core/p-6781bfc0.entry.js.map +0 -1
  977. package/dist/core/p-67d1e6e2.entry.js.map +0 -1
  978. package/dist/core/p-6e42a12a.entry.js +0 -2
  979. package/dist/core/p-6e42a12a.entry.js.map +0 -1
  980. package/dist/core/p-6f173022.entry.js.map +0 -1
  981. package/dist/core/p-7099beb0.entry.js +0 -2
  982. package/dist/core/p-7099beb0.entry.js.map +0 -1
  983. package/dist/core/p-715c0e2e.entry.js.map +0 -1
  984. package/dist/core/p-7387370c.entry.js.map +0 -1
  985. package/dist/core/p-768fe015.entry.js +0 -2
  986. package/dist/core/p-768fe015.entry.js.map +0 -1
  987. package/dist/core/p-7a3d4b6b.entry.js +0 -2
  988. package/dist/core/p-7a3d4b6b.entry.js.map +0 -1
  989. package/dist/core/p-7f4cf2f9.entry.js +0 -2
  990. package/dist/core/p-7f4cf2f9.entry.js.map +0 -1
  991. package/dist/core/p-8161e1fe.entry.js.map +0 -1
  992. package/dist/core/p-820eb0fb.entry.js +0 -2
  993. package/dist/core/p-820eb0fb.entry.js.map +0 -1
  994. package/dist/core/p-8655fd24.entry.js.map +0 -1
  995. package/dist/core/p-8f6172d4.entry.js +0 -2
  996. package/dist/core/p-8f6172d4.entry.js.map +0 -1
  997. package/dist/core/p-90cd5ffe.entry.js +0 -2
  998. package/dist/core/p-90cd5ffe.entry.js.map +0 -1
  999. package/dist/core/p-98314c19.entry.js +0 -2
  1000. package/dist/core/p-98314c19.entry.js.map +0 -1
  1001. package/dist/core/p-ac962619.entry.js +0 -2
  1002. package/dist/core/p-ac962619.entry.js.map +0 -1
  1003. package/dist/core/p-ae6d0bcd.entry.js +0 -2
  1004. package/dist/core/p-ae6d0bcd.entry.js.map +0 -1
  1005. package/dist/core/p-b3b517f0.entry.js.map +0 -1
  1006. package/dist/core/p-b7306a6f.entry.js +0 -2
  1007. package/dist/core/p-b7306a6f.entry.js.map +0 -1
  1008. package/dist/core/p-b93548cc.entry.js.map +0 -1
  1009. package/dist/core/p-be3bbe06.entry.js +0 -2
  1010. package/dist/core/p-be3bbe06.entry.js.map +0 -1
  1011. package/dist/core/p-cf06a38b.entry.js +0 -2
  1012. package/dist/core/p-cf06a38b.entry.js.map +0 -1
  1013. package/dist/core/p-dec65494.entry.js.map +0 -1
  1014. package/dist/core/p-df09f0be.entry.js +0 -2
  1015. package/dist/core/p-df09f0be.entry.js.map +0 -1
  1016. package/dist/core/p-e0634fae.entry.js +0 -2
  1017. package/dist/core/p-e0634fae.entry.js.map +0 -1
  1018. package/dist/core/p-e1b2af6b.entry.js.map +0 -1
  1019. package/dist/core/p-e29cd545.entry.js +0 -2
  1020. package/dist/core/p-e29cd545.entry.js.map +0 -1
  1021. package/dist/core/p-e5e7abe0.entry.js +0 -2
  1022. package/dist/core/p-e5e7abe0.entry.js.map +0 -1
  1023. package/dist/core/p-e7f889c7.entry.js.map +0 -1
  1024. package/dist/core/p-ebd3d25f.entry.js +0 -2
  1025. package/dist/core/p-ebd3d25f.entry.js.map +0 -1
  1026. package/dist/core/p-f067af74.entry.js.map +0 -1
  1027. package/dist/core/p-f58a20af.entry.js.map +0 -1
  1028. package/dist/core/p-fe3bd57c.entry.js +0 -2
  1029. package/dist/core/p-fe3bd57c.entry.js.map +0 -1
  1030. package/dist/dist/components/gov-accordion-item.d.ts +0 -11
  1031. package/dist/dist/components/gov-accordion.d.ts +0 -11
  1032. package/dist/dist/components/gov-app.d.ts +0 -11
  1033. package/dist/dist/components/gov-attachments-item.d.ts +0 -11
  1034. package/dist/dist/components/gov-attachments.d.ts +0 -11
  1035. package/dist/dist/components/gov-backdrop.d.ts +0 -11
  1036. package/dist/dist/components/gov-banner.d.ts +0 -11
  1037. package/dist/dist/components/gov-blockquote.d.ts +0 -11
  1038. package/dist/dist/components/gov-breadcrumbs.d.ts +0 -11
  1039. package/dist/dist/components/gov-button.d.ts +0 -11
  1040. package/dist/dist/components/gov-card.d.ts +0 -11
  1041. package/dist/dist/components/gov-chip.d.ts +0 -11
  1042. package/dist/dist/components/gov-collapsible.d.ts +0 -11
  1043. package/dist/dist/components/gov-container.d.ts +0 -11
  1044. package/dist/dist/components/gov-control-group.d.ts +0 -11
  1045. package/dist/dist/components/gov-cookiebar.d.ts +0 -11
  1046. package/dist/dist/components/gov-dialog.d.ts +0 -11
  1047. package/dist/dist/components/gov-dropdown.d.ts +0 -11
  1048. package/dist/dist/components/gov-empty.d.ts +0 -11
  1049. package/dist/dist/components/gov-error-code.d.ts +0 -11
  1050. package/dist/dist/components/gov-flex.d.ts +0 -11
  1051. package/dist/dist/components/gov-form-autocomplete.d.ts +0 -11
  1052. package/dist/dist/components/gov-form-checkbox-group.d.ts +0 -11
  1053. package/dist/dist/components/gov-form-checkbox.d.ts +0 -11
  1054. package/dist/dist/components/gov-form-control.d.ts +0 -11
  1055. package/dist/dist/components/gov-form-file.d.ts +0 -11
  1056. package/dist/dist/components/gov-form-group.d.ts +0 -11
  1057. package/dist/dist/components/gov-form-input.d.ts +0 -11
  1058. package/dist/dist/components/gov-form-label.d.ts +0 -11
  1059. package/dist/dist/components/gov-form-message.d.ts +0 -11
  1060. package/dist/dist/components/gov-form-multi-select.d.ts +0 -11
  1061. package/dist/dist/components/gov-form-password-power.d.ts +0 -11
  1062. package/dist/dist/components/gov-form-radio-group.d.ts +0 -11
  1063. package/dist/dist/components/gov-form-radio.d.ts +0 -11
  1064. package/dist/dist/components/gov-form-range.d.ts +0 -11
  1065. package/dist/dist/components/gov-form-search.d.ts +0 -11
  1066. package/dist/dist/components/gov-form-select.d.ts +0 -11
  1067. package/dist/dist/components/gov-form-switch.d.ts +0 -11
  1068. package/dist/dist/components/gov-grid-item.d.ts +0 -11
  1069. package/dist/dist/components/gov-grid.d.ts +0 -11
  1070. package/dist/dist/components/gov-icon.d.ts +0 -11
  1071. package/dist/dist/components/gov-infobar.d.ts +0 -11
  1072. package/dist/dist/components/gov-layout-column.d.ts +0 -11
  1073. package/dist/dist/components/gov-layout.d.ts +0 -11
  1074. package/dist/dist/components/gov-lifecycle.d.ts +0 -11
  1075. package/dist/dist/components/gov-link.d.ts +0 -11
  1076. package/dist/dist/components/gov-loading.d.ts +0 -11
  1077. package/dist/dist/components/gov-message.d.ts +0 -11
  1078. package/dist/dist/components/gov-pagination.d.ts +0 -11
  1079. package/dist/dist/components/gov-skeleton.d.ts +0 -11
  1080. package/dist/dist/components/gov-spacer.d.ts +0 -11
  1081. package/dist/dist/components/gov-stepper-item.d.ts +0 -11
  1082. package/dist/dist/components/gov-stepper.d.ts +0 -11
  1083. package/dist/dist/components/gov-tabs-item.d.ts +0 -11
  1084. package/dist/dist/components/gov-tabs.d.ts +0 -11
  1085. package/dist/dist/components/gov-tag.d.ts +0 -11
  1086. package/dist/dist/components/gov-theme-switch.d.ts +0 -11
  1087. package/dist/dist/components/gov-tile.d.ts +0 -11
  1088. package/dist/dist/components/gov-toast.d.ts +0 -11
  1089. package/dist/dist/components/gov-tooltip-content.d.ts +0 -11
  1090. package/dist/dist/components/gov-tooltip.d.ts +0 -11
  1091. package/dist/dist/components/gov-wizard-item.d.ts +0 -11
  1092. package/dist/dist/components/gov-wizard.d.ts +0 -11
  1093. package/dist/dist/components/index.d.ts +0 -33
  1094. package/dist/dist/dist/components/index.d.ts +0 -33
  1095. package/dist/dist/dist/globals.d.ts +0 -2
  1096. package/dist/dist/dist/hydrate/index.d.ts +0 -273
  1097. package/dist/dist/dist/types/interfaces.d.ts +0 -1
  1098. package/dist/dist/dist/types/stencil-public-runtime.d.ts +0 -1702
  1099. package/dist/dist/globals.d.ts +0 -2
  1100. package/dist/dist/hydrate/index.d.ts +0 -273
  1101. package/dist/dist/types/components/gov-accordion/constants.d.ts +0 -19
  1102. package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +0 -43
  1103. package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +0 -26
  1104. package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +0 -9
  1105. package/dist/dist/types/components/gov-attachments/constants.d.ts +0 -11
  1106. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +0 -4
  1107. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +0 -24
  1108. package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +0 -19
  1109. package/dist/dist/types/components/gov-backdrop/constants.d.ts +0 -4
  1110. package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +0 -32
  1111. package/dist/dist/types/components/gov-banner/constants.d.ts +0 -26
  1112. package/dist/dist/types/components/gov-banner/gov-banner.d.ts +0 -28
  1113. package/dist/dist/types/components/gov-blockquote/constants.d.ts +0 -10
  1114. package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +0 -15
  1115. package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +0 -3
  1116. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +0 -4
  1117. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +0 -42
  1118. package/dist/dist/types/components/gov-button/button/constants.d.ts +0 -29
  1119. package/dist/dist/types/components/gov-button/button/gov-button.d.ts +0 -133
  1120. package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +0 -4
  1121. package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +0 -10
  1122. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +0 -40
  1123. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +0 -4
  1124. package/dist/dist/types/components/gov-card/constants.d.ts +0 -16
  1125. package/dist/dist/types/components/gov-card/gov-card.d.ts +0 -57
  1126. package/dist/dist/types/components/gov-card/interfaces.d.ts +0 -4
  1127. package/dist/dist/types/components/gov-chip/constants.d.ts +0 -21
  1128. package/dist/dist/types/components/gov-chip/gov-chip.d.ts +0 -82
  1129. package/dist/dist/types/components/gov-collapsible/constants.d.ts +0 -18
  1130. package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +0 -36
  1131. package/dist/dist/types/components/gov-container/constants.d.ts +0 -3
  1132. package/dist/dist/types/components/gov-container/gov-container.d.ts +0 -6
  1133. package/dist/dist/types/components/gov-control-group/constants.d.ts +0 -7
  1134. package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +0 -24
  1135. package/dist/dist/types/components/gov-cookiebar/constants.d.ts +0 -7
  1136. package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +0 -7
  1137. package/dist/dist/types/components/gov-dialog/constants.d.ts +0 -11
  1138. package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +0 -70
  1139. package/dist/dist/types/components/gov-empty/constants.d.ts +0 -19
  1140. package/dist/dist/types/components/gov-empty/gov-empty.d.ts +0 -21
  1141. package/dist/dist/types/components/gov-error-code/constants.d.ts +0 -4
  1142. package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +0 -6
  1143. package/dist/dist/types/components/gov-flex/constants.d.ts +0 -7
  1144. package/dist/dist/types/components/gov-flex/gov-flex.d.ts +0 -39
  1145. package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +0 -11
  1146. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -149
  1147. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +0 -9
  1148. package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +0 -10
  1149. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +0 -86
  1150. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +0 -5
  1151. package/dist/dist/types/components/gov-form/control/constants.d.ts +0 -9
  1152. package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +0 -40
  1153. package/dist/dist/types/components/gov-form/file/constants.d.ts +0 -7
  1154. package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -129
  1155. package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +0 -11
  1156. package/dist/dist/types/components/gov-form/group/constants.d.ts +0 -18
  1157. package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +0 -32
  1158. package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +0 -18
  1159. package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +0 -7
  1160. package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +0 -32
  1161. package/dist/dist/types/components/gov-form/input/constants.d.ts +0 -28
  1162. package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +0 -178
  1163. package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +0 -4
  1164. package/dist/dist/types/components/gov-form/label/constants.d.ts +0 -8
  1165. package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +0 -26
  1166. package/dist/dist/types/components/gov-form/message/constants.d.ts +0 -11
  1167. package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +0 -23
  1168. package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +0 -10
  1169. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -127
  1170. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +0 -10
  1171. package/dist/dist/types/components/gov-form/password-power/constants.d.ts +0 -5
  1172. package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +0 -7
  1173. package/dist/dist/types/components/gov-form/radio/constants.d.ts +0 -10
  1174. package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +0 -83
  1175. package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +0 -5
  1176. package/dist/dist/types/components/gov-form/range/constants.d.ts +0 -9
  1177. package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +0 -116
  1178. package/dist/dist/types/components/gov-form/search/constants.d.ts +0 -10
  1179. package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +0 -13
  1180. package/dist/dist/types/components/gov-form/select/constants.d.ts +0 -8
  1181. package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +0 -89
  1182. package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +0 -9
  1183. package/dist/dist/types/components/gov-form/switch/constants.d.ts +0 -12
  1184. package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +0 -81
  1185. package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +0 -5
  1186. package/dist/dist/types/components/gov-grid/constants.d.ts +0 -10
  1187. package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +0 -46
  1188. package/dist/dist/types/components/gov-grid/gov-grid.d.ts +0 -19
  1189. package/dist/dist/types/components/gov-icon/constants.d.ts +0 -18
  1190. package/dist/dist/types/components/gov-icon/gov-icon.d.ts +0 -34
  1191. package/dist/dist/types/components/gov-icon/helpers.d.ts +0 -6
  1192. package/dist/dist/types/components/gov-icon/list.d.ts +0 -3
  1193. package/dist/dist/types/components/gov-infobar/constants.d.ts +0 -16
  1194. package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +0 -51
  1195. package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +0 -4
  1196. package/dist/dist/types/components/gov-layout/constants.d.ts +0 -20
  1197. package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +0 -6
  1198. package/dist/dist/types/components/gov-layout/gov-layout.d.ts +0 -20
  1199. package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +0 -14
  1200. package/dist/dist/types/components/gov-link/constants.d.ts +0 -8
  1201. package/dist/dist/types/components/gov-link/gov-link.d.ts +0 -34
  1202. package/dist/dist/types/components/gov-loading/loading/constants.d.ts +0 -9
  1203. package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +0 -13
  1204. package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +0 -21
  1205. package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +0 -46
  1206. package/dist/dist/types/components/gov-message/constants.d.ts +0 -13
  1207. package/dist/dist/types/components/gov-message/gov-message.d.ts +0 -16
  1208. package/dist/dist/types/components/gov-pagination/constants.d.ts +0 -22
  1209. package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +0 -97
  1210. package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +0 -5
  1211. package/dist/dist/types/components/gov-pagination/pagination.d.ts +0 -12
  1212. package/dist/dist/types/components/gov-spacer/constants.d.ts +0 -15
  1213. package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +0 -18
  1214. package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +0 -21
  1215. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +0 -4
  1216. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +0 -31
  1217. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +0 -22
  1218. package/dist/dist/types/components/gov-tabs/constants.d.ts +0 -28
  1219. package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +0 -54
  1220. package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +0 -70
  1221. package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +0 -14
  1222. package/dist/dist/types/components/gov-tag/constants.d.ts +0 -12
  1223. package/dist/dist/types/components/gov-tag/gov-tag.d.ts +0 -35
  1224. package/dist/dist/types/components/gov-theme-switch/constants.d.ts +0 -12
  1225. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +0 -46
  1226. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +0 -10
  1227. package/dist/dist/types/components/gov-tile/constants.d.ts +0 -13
  1228. package/dist/dist/types/components/gov-tile/gov-tile.d.ts +0 -34
  1229. package/dist/dist/types/components/gov-toast/constants.d.ts +0 -17
  1230. package/dist/dist/types/components/gov-toast/gov-toast.d.ts +0 -58
  1231. package/dist/dist/types/components/gov-tooltip/constants.d.ts +0 -20
  1232. package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +0 -28
  1233. package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +0 -58
  1234. package/dist/dist/types/components/gov-wizard/constants.d.ts +0 -19
  1235. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +0 -4
  1236. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +0 -60
  1237. package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +0 -4
  1238. package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +0 -35
  1239. package/dist/dist/types/core/constants/colors.d.ts +0 -13
  1240. package/dist/dist/types/core/constants/sizes.d.ts +0 -13
  1241. package/dist/dist/types/core/constants/tags.d.ts +0 -12
  1242. package/dist/dist/types/core/constants/tokens.d.ts +0 -1
  1243. package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +0 -1
  1244. package/dist/dist/types/helpers/Accessibility/attributes.d.ts +0 -1
  1245. package/dist/dist/types/helpers/Dom/attribute.d.ts +0 -13
  1246. package/dist/dist/types/helpers/Dom/document.d.ts +0 -4
  1247. package/dist/dist/types/helpers/Dom/form.d.ts +0 -3
  1248. package/dist/dist/types/helpers/Dom/form.types.d.ts +0 -11
  1249. package/dist/dist/types/helpers/Dom/template.d.ts +0 -10
  1250. package/dist/dist/types/helpers/Dom/template.types.d.ts +0 -14
  1251. package/dist/dist/types/helpers/Dom/win.d.ts +0 -18
  1252. package/dist/dist/types/helpers/Fragment.d.ts +0 -2
  1253. package/dist/dist/types/helpers/Log/gov.log.d.ts +0 -8
  1254. package/dist/dist/types/helpers/Validate/props.d.ts +0 -1
  1255. package/dist/dist/types/helpers/Validate/wcag.d.ts +0 -4
  1256. package/dist/dist/types/index.d.ts +0 -0
  1257. package/dist/dist/types/interfaces.d.ts +0 -1
  1258. package/dist/dist/types/stencil-public-runtime.d.ts +0 -1702
  1259. package/dist/dist/types/types/event.types.d.ts +0 -4
  1260. package/dist/dist/types/types/interfaces.d.ts +0 -2
  1261. package/dist/dist/types/types/typings.d.ts +0 -6
  1262. package/dist/dist/types/utils/array.utils.d.ts +0 -2
  1263. package/dist/dist/types/utils/bool.utils.d.ts +0 -1
  1264. package/dist/dist/types/utils/dom.utils.d.ts +0 -1
  1265. package/dist/dist/types/utils/ds.utils.d.ts +0 -1
  1266. package/dist/dist/types/utils/file.utils.d.ts +0 -3
  1267. package/dist/dist/types/utils/helpers.types.d.ts +0 -49
  1268. package/dist/dist/types/utils/icon.utils.d.ts +0 -4
  1269. package/dist/dist/types/utils/number.utils.d.ts +0 -1
  1270. package/dist/dist/types/utils/object.utils.d.ts +0 -2
  1271. package/dist/dist/types/utils/stencil.utils.d.ts +0 -1
  1272. package/dist/dist/types/utils/string.utils.d.ts +0 -4
  1273. package/dist/dist/types/utils/utils.d.ts +0 -20
  1274. package/dist/types/Users/KameraT/Desktop/Projects/DIA/Sarka/designSystemFinal/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
@@ -40,7 +40,7 @@ const GovSpacer = class {
40
40
  this.validateBreakpoint(this.breakpoint);
41
41
  }
42
42
  render() {
43
- return index.h(index.Host, { key: '97560206986a3dea272c7e4a939bb91a050f6252', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
43
+ return index.h(index.Host, { key: 'd1b9c583b3b0381b426fb1b54be26821af691a4e', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
44
44
  }
45
45
  get host() { return index.getElement(this); }
46
46
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-spacer.entry.cjs.js","mappings":";;;;;;;;;AAIO,MAAM,UAAU,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAGvG,IAAY,iBAMX;AAND,CAAA,UAAY,iBAAiB,EAAA;AAC5B,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACV,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,GAM5B,EAAA,CAAA,CAAA;AAGM,MAAM,WAAW,GAAG;AAC1B,IAAA,IAAI,EAAE,YAAY;CAClB;;MCTY,SAAS,GAAA,MAAA;AAErB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAQA;;AAEG;AACc,QAAA,IAAU,CAAA,UAAA,GAA2B,SAAS;QAV9D,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAYD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5BC,kBAAY,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;AAIrD,IAAA,kBAAkB,CAAC,QAAgB,EAAA;QAClCA,kBAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;IAG5D,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5B,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC;;IAGzC,MAAM,GAAA;AACL,QAAA,OAAOC,OAAC,CAAAC,UAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAA,CAAS;;;;;;;;;;;","names":["pick","Sizes","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-spacer/constants.tsx","../../../packages/core/src/components/gov-spacer/gov-spacer.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL'])\r\nexport type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`\r\n\r\nexport enum SpacerBreakpoints {\r\n\tNONE = 'none',\r\n\tSM = 'sm',\r\n\tMD = 'md',\r\n\tLG = 'lg',\r\n\tXL = 'xl',\r\n}\r\nexport type SpacerBreakpointsType = `${ValueOf<typeof SpacerBreakpoints>}`\r\n\r\nexport const SpacerClass = {\r\n\troot: 'gov-spacer',\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\r\nimport { validateProp } from '../../helpers/Validate/props'\r\nimport { SpacerBreakpoints, SpacerBreakpointsType, SpacerClass, SpacerSize, SpacerSizeType } from './constants'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\nimport { govHost } from '../../helpers/Dom/template'\r\n\r\n@Component({\r\n\ttag: 'gov-spacer',\r\n})\r\nexport class GovSpacer {\r\n\tprivate h: GovHost\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\t@Element() host: HTMLGovSpacerElement\r\n\t/**\r\n\t * Spacer’s size\r\n\t */\r\n\t@Prop() readonly size?: SpacerSizeType\r\n\t/**\r\n\t * Breakpoint\r\n\t */\r\n\t@Prop() readonly breakpoint?: SpacerBreakpointsType = undefined\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(SpacerSize, newValue, SpacerClass.root)\r\n\t}\r\n\r\n\t@Watch('breakpoint')\r\n\tvalidateBreakpoint(newValue: string): void {\r\n\t\tvalidateProp(SpacerBreakpoints, newValue, SpacerClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validateBreakpoint(this.breakpoint)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn <Host class={this.h.classes(SpacerClass.root)} size={this.size} breakpoint={this.breakpoint}></Host>\r\n\t}\r\n}\r\n"],"version":3}
1
+ {"file":"gov-spacer.entry.cjs.js","mappings":";;;;;;;;;AAIO,MAAM,UAAU,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAGvG,IAAY,iBAMX;AAND,CAAA,UAAY,iBAAiB,EAAA;AAC5B,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACV,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,GAM5B,EAAA,CAAA,CAAA;AAGM,MAAM,WAAW,GAAG;AAC1B,IAAA,IAAI,EAAE,YAAY;CAClB;;MCTY,SAAS,GAAA,MAAA;AAErB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAQA;;AAEG;AACc,QAAA,IAAU,CAAA,UAAA,GAA2B,SAAS;QAV9D,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAYD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5BC,kBAAY,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;AAIrD,IAAA,kBAAkB,CAAC,QAAgB,EAAA;QAClCA,kBAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;IAG5D,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5B,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC;;IAGzC,MAAM,GAAA;AACL,QAAA,OAAOC,OAAC,CAAAC,UAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAA,CAAS;;;;;;;;;;;","names":["pick","Sizes","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-spacer/constants.tsx","../../../packages/core/src/components/gov-spacer/gov-spacer.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL'])\nexport type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`\n\nexport enum SpacerBreakpoints {\n\tNONE = 'none',\n\tSM = 'sm',\n\tMD = 'md',\n\tLG = 'lg',\n\tXL = 'xl',\n}\nexport type SpacerBreakpointsType = `${ValueOf<typeof SpacerBreakpoints>}`\n\nexport const SpacerClass = {\n\troot: 'gov-spacer',\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { SpacerBreakpoints, SpacerBreakpointsType, SpacerClass, SpacerSize, SpacerSizeType } from './constants'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { govHost } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-spacer',\n})\nexport class GovSpacer {\n\tprivate h: GovHost\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\t@Element() host: HTMLGovSpacerElement\n\t/**\n\t * Spacer’s size\n\t */\n\t@Prop() readonly size?: SpacerSizeType\n\t/**\n\t * Breakpoint\n\t */\n\t@Prop() readonly breakpoint?: SpacerBreakpointsType = undefined\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SpacerSize, newValue, SpacerClass.root)\n\t}\n\n\t@Watch('breakpoint')\n\tvalidateBreakpoint(newValue: string): void {\n\t\tvalidateProp(SpacerBreakpoints, newValue, SpacerClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateBreakpoint(this.breakpoint)\n\t}\n\n\trender() {\n\t\treturn <Host class={this.h.classes(SpacerClass.root)} size={this.size} breakpoint={this.breakpoint}></Host>\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-spacer.entry.cjs.js","sources":["../../../packages/core/src/components/gov-spacer/constants.tsx","../../../packages/core/src/components/gov-spacer/gov-spacer.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL'])\r\nexport type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`\r\n\r\nexport enum SpacerBreakpoints {\r\n\tNONE = 'none',\r\n\tSM = 'sm',\r\n\tMD = 'md',\r\n\tLG = 'lg',\r\n\tXL = 'xl',\r\n}\r\nexport type SpacerBreakpointsType = `${ValueOf<typeof SpacerBreakpoints>}`\r\n\r\nexport const SpacerClass = {\r\n\troot: 'gov-spacer',\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\r\nimport { validateProp } from '../../helpers/Validate/props'\r\nimport { SpacerBreakpoints, SpacerBreakpointsType, SpacerClass, SpacerSize, SpacerSizeType } from './constants'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\nimport { govHost } from '../../helpers/Dom/template'\r\n\r\n@Component({\r\n\ttag: 'gov-spacer',\r\n})\r\nexport class GovSpacer {\r\n\tprivate h: GovHost\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\t@Element() host: HTMLGovSpacerElement\r\n\t/**\r\n\t * Spacer’s size\r\n\t */\r\n\t@Prop() readonly size?: SpacerSizeType\r\n\t/**\r\n\t * Breakpoint\r\n\t */\r\n\t@Prop() readonly breakpoint?: SpacerBreakpointsType = undefined\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(SpacerSize, newValue, SpacerClass.root)\r\n\t}\r\n\r\n\t@Watch('breakpoint')\r\n\tvalidateBreakpoint(newValue: string): void {\r\n\t\tvalidateProp(SpacerBreakpoints, newValue, SpacerClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validateBreakpoint(this.breakpoint)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn <Host class={this.h.classes(SpacerClass.root)} size={this.size} breakpoint={this.breakpoint}></Host>\r\n\t}\r\n}\r\n"],"names":["pick","Sizes","govHost","validateProp","h","Host"],"mappings":";;;;;;;;;AAIO,MAAM,UAAU,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAGvG,IAAY,iBAMX;AAND,CAAA,UAAY,iBAAiB,EAAA;AAC5B,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACV,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,GAM5B,EAAA,CAAA,CAAA;AAGM,MAAM,WAAW,GAAG;AAC1B,IAAA,IAAI,EAAE,YAAY;CAClB;;MCTY,SAAS,GAAA,MAAA;AAErB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAQA;;AAEG;AACc,QAAA,IAAU,CAAA,UAAA,GAA2B,SAAS;QAV9D,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAYD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5BC,kBAAY,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;AAIrD,IAAA,kBAAkB,CAAC,QAAgB,EAAA;QAClCA,kBAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;IAG5D,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5B,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC;;IAGzC,MAAM,GAAA;AACL,QAAA,OAAOC,OAAC,CAAAC,UAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAA,CAAS;;;;;;;;;;;"}
1
+ {"version":3,"file":"gov-spacer.entry.cjs.js","sources":["../../../packages/core/src/components/gov-spacer/constants.tsx","../../../packages/core/src/components/gov-spacer/gov-spacer.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL'])\nexport type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`\n\nexport enum SpacerBreakpoints {\n\tNONE = 'none',\n\tSM = 'sm',\n\tMD = 'md',\n\tLG = 'lg',\n\tXL = 'xl',\n}\nexport type SpacerBreakpointsType = `${ValueOf<typeof SpacerBreakpoints>}`\n\nexport const SpacerClass = {\n\troot: 'gov-spacer',\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { SpacerBreakpoints, SpacerBreakpointsType, SpacerClass, SpacerSize, SpacerSizeType } from './constants'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { govHost } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-spacer',\n})\nexport class GovSpacer {\n\tprivate h: GovHost\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\t@Element() host: HTMLGovSpacerElement\n\t/**\n\t * Spacer’s size\n\t */\n\t@Prop() readonly size?: SpacerSizeType\n\t/**\n\t * Breakpoint\n\t */\n\t@Prop() readonly breakpoint?: SpacerBreakpointsType = undefined\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SpacerSize, newValue, SpacerClass.root)\n\t}\n\n\t@Watch('breakpoint')\n\tvalidateBreakpoint(newValue: string): void {\n\t\tvalidateProp(SpacerBreakpoints, newValue, SpacerClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateBreakpoint(this.breakpoint)\n\t}\n\n\trender() {\n\t\treturn <Host class={this.h.classes(SpacerClass.root)} size={this.size} breakpoint={this.breakpoint}></Host>\n\t}\n}\n"],"names":["pick","Sizes","govHost","validateProp","h","Host"],"mappings":";;;;;;;;;AAIO,MAAM,UAAU,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAGvG,IAAY,iBAMX;AAND,CAAA,UAAY,iBAAiB,EAAA;AAC5B,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACT,IAAA,iBAAA,CAAA,IAAA,CAAA,GAAA,IAAS;AACV,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,GAM5B,EAAA,CAAA,CAAA;AAGM,MAAM,WAAW,GAAG;AAC1B,IAAA,IAAI,EAAE,YAAY;CAClB;;MCTY,SAAS,GAAA,MAAA;AAErB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAQA;;AAEG;AACc,QAAA,IAAU,CAAA,UAAA,GAA2B,SAAS;QAV9D,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAYD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5BC,kBAAY,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;AAIrD,IAAA,kBAAkB,CAAC,QAAgB,EAAA;QAClCA,kBAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;IAG5D,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5B,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC;;IAGzC,MAAM,GAAA;AACL,QAAA,OAAOC,OAAC,CAAAC,UAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAA,CAAS;;;;;;;;;;;"}
@@ -39,7 +39,7 @@ const GovStepperItem = class {
39
39
  render() {
40
40
  const triggerId = this.identifier || this.triggerId;
41
41
  const contentId = this.contentId;
42
- return (index.h(index.Host, { key: '609a7f8b92363c1de962f2260d36fc674bd4c193', id: triggerId, class: this.h.classes(constants.StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, index.h("div", { key: '5afa6db421d268ff22727bedff02fe7e37273b7c' }, index.h("div", { key: 'f09a6804198fbf9a37b0553bf0539e26dd28d9f4', class: constants.StepperItemClass.steps }, index.h("span", { key: 'e9f495a434501d1b5f7ac65fb757cca181156814' }), index.h("span", { key: 'bb3b4bd8d1e613090f9e369a72c20e04eeaad1a9', class: constants.StepperItemClass.prefix }, index.h("slot", { key: '5d8ee1538f9232cc62d76b1aa2497195732c0b7f', name: "prefix" })), index.h("span", { key: 'cb3c58492c7190ae67770ed411bf154e831573ca' })), index.h("div", { key: '5747894f97b0ff23250ead28081410404bfbd0a8', class: constants.StepperItemClass.main }, index.h("span", { key: '801116e18ad8b6543ceb9106195f5baed23170ee', class: constants.StepperItemClass.headline }, index.h("slot", { key: '5e032e03983befdeddfa82f3756b7677549cfd53', name: "headline" })), index.h("slot", { key: '81ae890926e9966125ef3869da9c0230faf7b8a7', name: "annotation" }), this.h.hasSlot('content') && (index.h("div", { key: '4c1bd6e0144a7fd3c8457de9ca2332289a5b86cb', class: constants.StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, index.h("slot", { key: 'a8122225841c58776cde45f4a5e61292a2bab389', name: "content" })))))));
42
+ return (index.h(index.Host, { key: '126275cd984137b2c6d6cc5bdd2074adf14cee7b', id: triggerId, class: this.h.classes(constants.StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, index.h("div", { key: '15c1f0a0d533cd5473611b388590a6af94755ab9' }, index.h("div", { key: '85535167b5359d00e773ffac3aa64ae95d9a005a', class: constants.StepperItemClass.steps }, index.h("span", { key: '37558ddd120824a5f234503b8cfb673352f642e1' }), index.h("span", { key: '647d2862b31d2e6e1c51f90e0cbf8eb76af9f5a8', class: constants.StepperItemClass.prefix }, index.h("slot", { key: 'c58b03ec979eafc5db766c0134def19cbe2582d1', name: "prefix" })), index.h("span", { key: 'c294e1f9af11588960c8ccf5d16186eb2e57cc74' })), index.h("div", { key: 'ca82d4d7c0617f0c13de80c5a4247d8f9cd3d2e7', class: constants.StepperItemClass.main }, index.h("span", { key: '6d1cb25eca0517abcb0557579eab240beaff7557', class: constants.StepperItemClass.headline }, index.h("slot", { key: '3ef65e410481935cab120087b9454be9ce16ac1a', name: "headline" })), index.h("slot", { key: '8b7f8674a3347b2b51987ec7054835a8db203df8', name: "annotation" }), this.h.hasSlot('content') && (index.h("div", { key: '208b1c3d7f235748a04f4c31d525263aad01c90e', class: constants.StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, index.h("slot", { key: '9b68d8eb8c095fd45b741fe2398d957b589fbd94', name: "content" })))))));
43
43
  }
44
44
  get host() { return index.getElement(this); }
45
45
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-stepper-item.entry.cjs.js","mappings":";;;;;;;;;;;;MAWa,cAAc,GAAA,MAAA;AAM1B,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAUxB;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,GAAsB,SAAS;AACrD;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAsB,GAAG;QAd7C,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,SAAS,GAAGC,qBAAQ,CAAC,gBAAgB,CAAC;AAC3C,QAAA,IAAI,CAAC,SAAS,GAAGA,qBAAQ,CAAC,mBAAmB,CAAC;AAC9C;AAsBD,IAAA,aAAa,CAAC,QAAgB,EAAA;QAC7BC,kBAAY,CAACC,uBAAa,EAAE,QAAQ,EAAEC,0BAAgB,CAAC,IAAI,CAAC;;IAG7D,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC;;IAG/B,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;;IAGrB,MAAM,GAAA;QACL,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,SAAS;AACnD,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS;QAEhC,QACCC,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAACF,0BAAgB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAC,UAAU,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EAC5H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;;;;","names":["govHost","createID","validateProp","StepperColors","StepperItemClass","h","Host"],"sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper-item.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch, Host, Event, EventEmitter } from '@stencil/core'\r\nimport { validateProp } from '../../../helpers/Validate/props'\r\nimport { StepperSizesType, StepperItemClass, StepperColorType, StepperColors } from './constants'\r\nimport { createID } from '../../../utils/string.utils'\r\nimport { govHost } from '../../../helpers/Dom/template'\r\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\r\nimport { GovHost } from '../../../helpers/Dom/template.types'\r\n\r\n@Component({\r\n\ttag: 'gov-stepper-item',\r\n})\r\nexport class GovStepperItem {\r\n\tprivate h: GovHost\r\n\tprivate readonly triggerId: string\r\n\tprivate readonly contentId: string\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.triggerId = createID('GovStepperItem')\r\n\t\tthis.contentId = createID('GovStepperContent')\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovStepperItemElement\r\n\r\n\t/**\r\n\t * Style variation of the button.\r\n\t */\r\n\t@Prop() readonly color?: StepperColorType = 'primary'\r\n\t/**\r\n\t * Size of stepper\r\n\t */\r\n\t@Prop() readonly size?: StepperSizesType = 'm'\r\n\t/**\r\n\t * Custom stepper item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Called when the accordion state changes\r\n\t */\r\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(StepperColors, newValue, StepperItemClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst triggerId = this.identifier || this.triggerId\r\n\t\tconst contentId = this.contentId\r\n\r\n\t\treturn (\r\n\t\t\t<Host id={triggerId} class={this.h.classes(StepperItemClass.root)} color={this.color} role=\"listitem\" hydrated={this.hydrated}>\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<div class={StepperItemClass.steps}>\r\n\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\r\n\t\t\t\t\t\t\t<slot name=\"prefix\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class={StepperItemClass.main}>\r\n\t\t\t\t\t\t<span class={StepperItemClass.headline}>\r\n\t\t\t\t\t\t\t<slot name=\"headline\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<slot name=\"annotation\"/>\r\n\r\n\t\t\t\t\t\t{this.h.hasSlot('content') && (\r\n\t\t\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId}\r\n\t\t\t\t\t\t\t\t role=\"tabpanel\">\r\n\t\t\t\t\t\t\t\t<slot name=\"content\"/>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"version":3}
1
+ {"file":"gov-stepper-item.entry.cjs.js","mappings":";;;;;;;;;;;;MAWa,cAAc,GAAA,MAAA;AAM1B,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAUxB;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,GAAsB,SAAS;AACrD;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAsB,GAAG;QAd7C,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,SAAS,GAAGC,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,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR,EACNA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAED,0BAAgB,CAAC,IAAI,EAAA,EAChCC,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAED,0BAAgB,CAAC,QAAQ,EAAA,EACrCC,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,UAAU,EAAA,CAAE,CACjB,EACPA,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,YAAY,EAAE,CAAA,EAExB,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,KACzBA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAED,0BAAgB,CAAC,OAAO,EAAE,EAAE,EAAE,SAAS,qBAAmB,SAAS,EAC7E,IAAI,EAAC,UAAU,EAAA,EAChBC,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,SAAS,EAAE,CAAA,CACjB,CACN,CACI,CACD,CACA;;;;;;;;;;","names":["govHost","createID","validateProp","StepperColors","StepperItemClass","h","Host"],"sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper-item.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch, Host, Event, EventEmitter } from '@stencil/core'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { StepperSizesType, StepperItemClass, StepperColorType, StepperColors } from './constants'\nimport { createID } from '../../../utils/string.utils'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\nimport { GovHost } from '../../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-stepper-item',\n})\nexport class GovStepperItem {\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('GovStepperItem')\n\t\tthis.contentId = createID('GovStepperContent')\n\t}\n\n\t@Element() readonly host: HTMLGovStepperItemElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color?: StepperColorType = 'primary'\n\t/**\n\t * Size of stepper\n\t */\n\t@Prop() readonly size?: StepperSizesType = 'm'\n\t/**\n\t * Custom stepper item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(StepperColors, newValue, StepperItemClass.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 contentId = this.contentId\n\n\t\treturn (\n\t\t\t<Host id={triggerId} class={this.h.classes(StepperItemClass.root)} color={this.color} role=\"listitem\" hydrated={this.hydrated}>\n\t\t\t\t<div>\n\t\t\t\t\t<div class={StepperItemClass.steps}>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\n\t\t\t\t\t\t\t<slot name=\"prefix\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class={StepperItemClass.main}>\n\t\t\t\t\t\t<span class={StepperItemClass.headline}>\n\t\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<slot name=\"annotation\"/>\n\n\t\t\t\t\t\t{this.h.hasSlot('content') && (\n\t\t\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId}\n\t\t\t\t\t\t\t\t role=\"tabpanel\">\n\t\t\t\t\t\t\t\t<slot name=\"content\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-stepper-item.entry.cjs.js","sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper-item.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch, Host, Event, EventEmitter } from '@stencil/core'\r\nimport { validateProp } from '../../../helpers/Validate/props'\r\nimport { StepperSizesType, StepperItemClass, StepperColorType, StepperColors } from './constants'\r\nimport { createID } from '../../../utils/string.utils'\r\nimport { govHost } from '../../../helpers/Dom/template'\r\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\r\nimport { GovHost } from '../../../helpers/Dom/template.types'\r\n\r\n@Component({\r\n\ttag: 'gov-stepper-item',\r\n})\r\nexport class GovStepperItem {\r\n\tprivate h: GovHost\r\n\tprivate readonly triggerId: string\r\n\tprivate readonly contentId: string\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.triggerId = createID('GovStepperItem')\r\n\t\tthis.contentId = createID('GovStepperContent')\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovStepperItemElement\r\n\r\n\t/**\r\n\t * Style variation of the button.\r\n\t */\r\n\t@Prop() readonly color?: StepperColorType = 'primary'\r\n\t/**\r\n\t * Size of stepper\r\n\t */\r\n\t@Prop() readonly size?: StepperSizesType = 'm'\r\n\t/**\r\n\t * Custom stepper item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Called when the accordion state changes\r\n\t */\r\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(StepperColors, newValue, StepperItemClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst triggerId = this.identifier || this.triggerId\r\n\t\tconst contentId = this.contentId\r\n\r\n\t\treturn (\r\n\t\t\t<Host id={triggerId} class={this.h.classes(StepperItemClass.root)} color={this.color} role=\"listitem\" hydrated={this.hydrated}>\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<div class={StepperItemClass.steps}>\r\n\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\r\n\t\t\t\t\t\t\t<slot name=\"prefix\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class={StepperItemClass.main}>\r\n\t\t\t\t\t\t<span class={StepperItemClass.headline}>\r\n\t\t\t\t\t\t\t<slot name=\"headline\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<slot name=\"annotation\"/>\r\n\r\n\t\t\t\t\t\t{this.h.hasSlot('content') && (\r\n\t\t\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId}\r\n\t\t\t\t\t\t\t\t role=\"tabpanel\">\r\n\t\t\t\t\t\t\t\t<slot name=\"content\"/>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"names":["govHost","createID","validateProp","StepperColors","StepperItemClass","h","Host"],"mappings":";;;;;;;;;;;;MAWa,cAAc,GAAA,MAAA;AAM1B,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAUxB;;AAEG;AACc,QAAA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AAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAED,0BAAgB,CAAC,MAAM,EAAA,EACnCC,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,QAAQ,EAAA,CAAE,CACf,EACPA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR,EACNA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAED,0BAAgB,CAAC,IAAI,EAAA,EAChCC,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAED,0BAAgB,CAAC,QAAQ,EAAA,EACrCC,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,UAAU,EAAA,CAAE,CACjB,EACPA,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,YAAY,EAAE,CAAA,EAExB,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,KACzBA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAED,0BAAgB,CAAC,OAAO,EAAE,EAAE,EAAE,SAAS,qBAAmB,SAAS,EAC7E,IAAI,EAAC,UAAU,EAAA,EAChBC,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,SAAS,EAAE,CAAA,CACjB,CACN,CACI,CACD,CACA;;;;;;;;;;"}
1
+ {"version":3,"file":"gov-stepper-item.entry.cjs.js","sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper-item.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch, Host, Event, EventEmitter } from '@stencil/core'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { StepperSizesType, StepperItemClass, StepperColorType, StepperColors } from './constants'\nimport { createID } from '../../../utils/string.utils'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\nimport { GovHost } from '../../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-stepper-item',\n})\nexport class GovStepperItem {\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('GovStepperItem')\n\t\tthis.contentId = createID('GovStepperContent')\n\t}\n\n\t@Element() readonly host: HTMLGovStepperItemElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color?: StepperColorType = 'primary'\n\t/**\n\t * Size of stepper\n\t */\n\t@Prop() readonly size?: StepperSizesType = 'm'\n\t/**\n\t * Custom stepper item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(StepperColors, newValue, StepperItemClass.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 contentId = this.contentId\n\n\t\treturn (\n\t\t\t<Host id={triggerId} class={this.h.classes(StepperItemClass.root)} color={this.color} role=\"listitem\" hydrated={this.hydrated}>\n\t\t\t\t<div>\n\t\t\t\t\t<div class={StepperItemClass.steps}>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\n\t\t\t\t\t\t\t<slot name=\"prefix\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class={StepperItemClass.main}>\n\t\t\t\t\t\t<span class={StepperItemClass.headline}>\n\t\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<slot name=\"annotation\"/>\n\n\t\t\t\t\t\t{this.h.hasSlot('content') && (\n\t\t\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId}\n\t\t\t\t\t\t\t\t role=\"tabpanel\">\n\t\t\t\t\t\t\t\t<slot name=\"content\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"names":["govHost","createID","validateProp","StepperColors","StepperItemClass","h","Host"],"mappings":";;;;;;;;;;;;MAWa,cAAc,GAAA,MAAA;AAM1B,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAUxB;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,GAAsB,SAAS;AACrD;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAsB,GAAG;QAd7C,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,SAAS,GAAGC,qBAAQ,CAAC,gBAAgB,CAAC;AAC3C,QAAA,IAAI,CAAC,SAAS,GAAGA,qBAAQ,CAAC,mBAAmB,CAAC;AAC9C;AAsBD,IAAA,aAAa,CAAC,QAAgB,EAAA;QAC7BC,kBAAY,CAACC,uBAAa,EAAE,QAAQ,EAAEC,0BAAgB,CAAC,IAAI,CAAC;;IAG7D,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC;;IAG/B,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;;IAGrB,MAAM,GAAA;QACL,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,SAAS;AACnD,QAAA,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,OAAO,CAAC,SAAS,CAAC,KACzBA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAED,0BAAgB,CAAC,OAAO,EAAE,EAAE,EAAE,SAAS,qBAAmB,SAAS,EAC7E,IAAI,EAAC,UAAU,EAAA,EAChBC,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,SAAS,EAAE,CAAA,CACjB,CACN,CACI,CACD,CACA;;;;;;;;;;"}
@@ -39,7 +39,7 @@ const GovStepper = class {
39
39
  this.hydrated = true;
40
40
  }
41
41
  render() {
42
- return (index.h(index.Host, { key: '92d3349a28b4330a3bea5293853612d0a0b96069', class: this.h.classes(constants.StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, index.h("slot", { key: 'a5b65c3a06c63f826d6c968c69f1452abe0408af' })));
42
+ return (index.h(index.Host, { key: '339a1f4eaaa246d8329841d99e784b8c157bb5d3', class: this.h.classes(constants.StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, index.h("slot", { key: '9e1604e94a11bbc3b2f8230193b43f9466601866' })));
43
43
  }
44
44
  get host() { return index.getElement(this); }
45
45
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-stepper.entry.cjs.js","mappings":";;;;;;;;;;;MAWa,UAAU,GAAA,MAAA;AAItB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAOxB;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAsB,GAAG;QAP7C,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAaD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5BC,kBAAY,CAACC,sBAAY,EAAE,QAAQ,EAAEC,sBAAY,CAAC,IAAI,CAAC;;IAGxD,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;IAG7B,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAACC,0BAAgB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAgC,KAAI;YAC9F,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;YACrC,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAuD,KAAI;gBAChG,CAAC,CAAC,eAAe,EAAE;gBACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;AAC9B,aAAC,CAAC;AACH,SAAC,CAAC;;IAGH,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;;IAGrB,MAAM,GAAA;QACL,QACCC,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAACH,sBAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EACnGE,OAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF;;;;;;;;;;","names":["govHost","validateProp","StepperSizes","StepperClass","StepperItemClass","h","Host"],"sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop, Watch } from '@stencil/core'\r\nimport { validateProp } from '../../../helpers/Validate/props'\r\nimport { StepperClass, StepperItemClass, StepperSizes, StepperSizesType } from './constants'\r\nimport { GovStepperItemCustomEvent } from '../../../components'\r\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\r\nimport { GovHost } from '../../../helpers/Dom/template.types'\r\nimport { govHost } from '../../../helpers/Dom/template'\r\n\r\n@Component({\r\n\ttag: 'gov-stepper',\r\n})\r\nexport class GovStepper {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovStepperElement\r\n\t/**\r\n\t * Size of stepper\r\n\t */\r\n\t@Prop() readonly size?: StepperSizesType = 'm'\r\n\t/**\r\n\t * Called when the Stepper state changes\r\n\t */\r\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(StepperSizes, newValue, StepperClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.host.querySelectorAll(StepperItemClass.root).forEach((child: HTMLGovStepperItemElement) => {\r\n\t\t\tchild.setAttribute('size', this.size)\r\n\t\t\tchild.addEventListener('gov-change', (e: GovStepperItemCustomEvent<GovStepperItemChangeEvent>) => {\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tthis.govChange.emit(e.detail)\r\n\t\t\t})\r\n\t\t})\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(StepperClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"version":3}
1
+ {"file":"gov-stepper.entry.cjs.js","mappings":";;;;;;;;;;;MAWa,UAAU,GAAA,MAAA;AAItB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAOxB;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAsB,GAAG;QAP7C,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAaD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5BC,kBAAY,CAACC,sBAAY,EAAE,QAAQ,EAAEC,sBAAY,CAAC,IAAI,CAAC;;IAGxD,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;IAG7B,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAACC,0BAAgB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAgC,KAAI;YAC9F,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;YACrC,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAuD,KAAI;gBAChG,CAAC,CAAC,eAAe,EAAE;gBACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;AAC9B,aAAC,CAAC;AACH,SAAC,CAAC;;IAGH,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;;IAGrB,MAAM,GAAA;QACL,QACCC,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAACH,sBAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EACnGE,OAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF;;;;;;;;;;","names":["govHost","validateProp","StepperSizes","StepperClass","StepperItemClass","h","Host"],"sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop, Watch } from '@stencil/core'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { StepperClass, StepperItemClass, StepperSizes, StepperSizesType } from './constants'\nimport { GovStepperItemCustomEvent } from '../../../components'\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { govHost } from '../../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-stepper',\n})\nexport class GovStepper {\n\tprivate h: GovHost\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovStepperElement\n\t/**\n\t * Size of stepper\n\t */\n\t@Prop() readonly size?: StepperSizesType = 'm'\n\t/**\n\t * Called when the Stepper state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(StepperSizes, newValue, StepperClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(StepperItemClass.root).forEach((child: HTMLGovStepperItemElement) => {\n\t\t\tchild.setAttribute('size', this.size)\n\t\t\tchild.addEventListener('gov-change', (e: GovStepperItemCustomEvent<GovStepperItemChangeEvent>) => {\n\t\t\t\te.stopPropagation()\n\t\t\t\tthis.govChange.emit(e.detail)\n\t\t\t})\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(StepperClass.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"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-stepper.entry.cjs.js","sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop, Watch } from '@stencil/core'\r\nimport { validateProp } from '../../../helpers/Validate/props'\r\nimport { StepperClass, StepperItemClass, StepperSizes, StepperSizesType } from './constants'\r\nimport { GovStepperItemCustomEvent } from '../../../components'\r\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\r\nimport { GovHost } from '../../../helpers/Dom/template.types'\r\nimport { govHost } from '../../../helpers/Dom/template'\r\n\r\n@Component({\r\n\ttag: 'gov-stepper',\r\n})\r\nexport class GovStepper {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovStepperElement\r\n\t/**\r\n\t * Size of stepper\r\n\t */\r\n\t@Prop() readonly size?: StepperSizesType = 'm'\r\n\t/**\r\n\t * Called when the Stepper state changes\r\n\t */\r\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(StepperSizes, newValue, StepperClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.host.querySelectorAll(StepperItemClass.root).forEach((child: HTMLGovStepperItemElement) => {\r\n\t\t\tchild.setAttribute('size', this.size)\r\n\t\t\tchild.addEventListener('gov-change', (e: GovStepperItemCustomEvent<GovStepperItemChangeEvent>) => {\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tthis.govChange.emit(e.detail)\r\n\t\t\t})\r\n\t\t})\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(StepperClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"names":["govHost","validateProp","St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CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF;;;;;;;;;;"}
1
+ {"version":3,"file":"gov-stepper.entry.cjs.js","sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop, Watch } from '@stencil/core'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { StepperClass, StepperItemClass, StepperSizes, StepperSizesType } from './constants'\nimport { GovStepperItemCustomEvent } from '../../../components'\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { govHost } from '../../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-stepper',\n})\nexport class GovStepper {\n\tprivate h: GovHost\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovStepperElement\n\t/**\n\t * Size of stepper\n\t */\n\t@Prop() readonly size?: StepperSizesType = 'm'\n\t/**\n\t * Called when the Stepper state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(StepperSizes, newValue, StepperClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(StepperItemClass.root).forEach((child: HTMLGovStepperItemElement) => {\n\t\t\tchild.setAttribute('size', this.size)\n\t\t\tchild.addEventListener('gov-change', (e: GovStepperItemCustomEvent<GovStepperItemChangeEvent>) => {\n\t\t\t\te.stopPropagation()\n\t\t\t\tthis.govChange.emit(e.detail)\n\t\t\t})\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(StepperClass.root)} role=\"list\" size={this.size} hydrated={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AE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EACnGE,OAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF;;;;;;;;;;"}
@@ -31,7 +31,7 @@ const GovTabsItem = class {
31
31
  }
32
32
  }
33
33
  render() {
34
- return (index.h(index.Host, { key: '7de42fde0ca4e787967c76a14aa2498367f66a1c', class: this.h.classes(constants.TabsItemClass.root), default: this.default }, index.h("div", { key: '89f6bf8f5505ed17e5a9c46f60dfbf34353a75e6', class: constants.TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": template.toBoolAttrIfDefined(!this.isActive) }, index.h("slot", { key: '690b06566e645ce22ec34c47c56852a75ac1069b' }))));
34
+ return (index.h(index.Host, { key: '49f4fbd9c9211ebd58c89d538df85164473c4f76', class: this.h.classes(constants.TabsItemClass.root), default: this.default }, index.h("div", { key: 'cbb71bd33c068923a8d23b62c43b1c757d4d0c78', class: constants.TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": template.toBoolAttrIfDefined(!this.isActive) }, index.h("slot", { key: 'fdf732f55e7ce4cb1d96ec8c7124124d9ca3e198' }))));
35
35
  }
36
36
  /**
37
37
  * Returns a unique tab content identifier
@@ -1 +1 @@
1
- {"file":"gov-tabs-item.entry.cjs.js","mappings":";;;;;;;;;;MASa,WAAW,GAAA,MAAA;AAKvB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAmBA;;AAEG;AAC6B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AASzD;;AAEG;AACc,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;AAChC,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;QAlCxB,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAA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ACpB,OAAO,IAAI,CAAC,QAAQ;;AAGrB;;AAEG;IAEH,MAAM,eAAe,CAAC,MAAe,EAAA;AACpC,QAAA,IAAI,CAAC,QAAQ,GAAG,MAAM;;;;;;;;;;;","names":["govHost","createID","TabsClass","h","Host","TabsItemClass","toBoolAttrIfDefined"],"sources":["../../../packages/core/src/components/gov-tabs/gov-tabs-item.tsx"],"sourcesContent":["import {Component, Element, h, Host, Method, Prop, State, Watch} from '@stencil/core'\r\nimport {createID} from '../../utils/string.utils'\r\nimport {govHost, toBoolAttrIfDefined} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {TabsClass, TabsItemClass} from './constants'\r\n\r\n@Component({\r\n\ttag: 'gov-tabs-item',\r\n})\r\nexport class GovTabsItem {\r\n\tprivate h: GovHost\r\n\tprivate readonly contentId: string\r\n\tprivate readonly triggerId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.contentId = createID('GovTabContent')\r\n\t\tthis.triggerId = createID('GovTabTrigger')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTabsItemElement\r\n\t/**\r\n\t * Custom tab item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Custom tab trigger item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly triggerIdentifier: string\r\n\t/**\r\n\t * Item name of the tab\r\n\t */\r\n\t@Prop({reflect: true}) readonly label: string\r\n\t/**\r\n\t * Item disable state\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Icon definition at the stat. Use the type/name notation\r\n\t */\r\n\t@Prop({reflect: true, attribute: 'icon-start'}) readonly iconStart: string\r\n\t/**\r\n\t * Icon definition at the end. Use the type/name notation\r\n\t */\r\n\t@Prop({reflect: true, attribute: 'icon-end'}) readonly iconEnd: string\r\n\t/**\r\n\t * Default selected tab\r\n\t */\r\n\t@Prop() readonly default: boolean = false\r\n\t@State() isActive = false\r\n\r\n\t@Watch('label')\r\n\t@Watch('disabled')\r\n\trerenderParent() {\r\n\t\tconst element = this.h.getParent(TabsClass.root) as HTMLGovTabsElement;\r\n\t\tif (element) {\r\n\t\t\telement.rerender().catch()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TabsItemClass.root)} default={this.default}>\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass={TabsItemClass.inner}\r\n\t\t\t\t\trole=\"tabpanel\"\r\n\t\t\t\t\tid={this.identifier || this.contentId}\r\n\t\t\t\t\thidden={!this.isActive}\r\n\t\t\t\t\taria-labelledby={this.triggerIdentifier || this.triggerId}\r\n\t\t\t\t\taria-hidden={toBoolAttrIfDefined(!this.isActive)}\r\n\t\t\t\t>\r\n\t\t\t\t\t<slot></slot>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab content identifier\r\n\t */\r\n\t@Method()\r\n\tasync getIdentifier(): Promise<string> {\r\n\t\treturn this.identifier || this.contentId\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab trigger identifier\r\n\t */\r\n\t@Method()\r\n\tasync getTriggerIdentifier(): Promise<string> {\r\n\t\treturn this.triggerIdentifier || this.triggerId\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab trigger identifier\r\n\t */\r\n\t@Method()\r\n\tasync getDisableState(): Promise<boolean> {\r\n\t\treturn this.disabled\r\n\t}\r\n\r\n\t/**\r\n\t * Set status of tab-item\r\n\t */\r\n\t@Method()\r\n\tasync setActiveStatus(status: boolean): Promise<void> {\r\n\t\tthis.isActive = status\r\n\t}\r\n}\r\n"],"version":3}
1
+ {"file":"gov-tabs-item.entry.cjs.js","mappings":";;;;;;;;;;MASa,WAAW,GAAA,MAAA;AAKvB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAmBA;;AAEG;AAC6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UAAU,IAAI,IAAI,CAAC,SAAS;;AAGzC;;AAEG;AAEH,IAAA,MAAM,oBAAoB,GAAA;AACzB,QAAA,OAAO,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,SAAS;;AAGhD;;AAEG;AAEH,IAAA,MAAM,eAAe,GAAA;QACpB,OAAO,IAAI,CAAC,QAAQ;;AAGrB;;AAEG;IAEH,MAAM,eAAe,CAAC,MAAe,EAAA;AACpC,QAAA,IAAI,CAAC,QAAQ,GAAG,MAAM;;;;;;;;;;;","names":["govHost","createID","TabsClass","h","Host","TabsItemClass","toBoolAttrIfDefined"],"sources":["../../../packages/core/src/components/gov-tabs/gov-tabs-item.tsx"],"sourcesContent":["import {Component, Element, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {createID} from '../../utils/string.utils'\nimport {govHost, toBoolAttrIfDefined} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {TabsClass, TabsItemClass} from './constants'\n\n@Component({\n\ttag: 'gov-tabs-item',\n})\nexport class GovTabsItem {\n\tprivate h: GovHost\n\tprivate readonly contentId: string\n\tprivate readonly triggerId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.contentId = createID('GovTabContent')\n\t\tthis.triggerId = createID('GovTabTrigger')\n\t}\n\n\t@Element() host: HTMLGovTabsItemElement\n\t/**\n\t * Custom tab item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Custom tab trigger item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly triggerIdentifier: string\n\t/**\n\t * Item name of the tab\n\t */\n\t@Prop({reflect: true}) readonly label: string\n\t/**\n\t * Item disable state\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Icon definition at the stat. Use the type/name notation\n\t */\n\t@Prop({reflect: true, attribute: 'icon-start'}) readonly iconStart: string\n\t/**\n\t * Icon definition at the end. Use the type/name notation\n\t */\n\t@Prop({reflect: true, attribute: 'icon-end'}) readonly iconEnd: string\n\t/**\n\t * Default selected tab\n\t */\n\t@Prop() readonly default: boolean = false\n\t@State() isActive = false\n\n\t@Watch('label')\n\t@Watch('disabled')\n\trerenderParent() {\n\t\tconst element = this.h.getParent(TabsClass.root) as HTMLGovTabsElement;\n\t\tif (element) {\n\t\t\telement.rerender().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TabsItemClass.root)} default={this.default}>\n\t\t\t\t<div\n\t\t\t\t\tclass={TabsItemClass.inner}\n\t\t\t\t\trole=\"tabpanel\"\n\t\t\t\t\tid={this.identifier || this.contentId}\n\t\t\t\t\thidden={!this.isActive}\n\t\t\t\t\taria-labelledby={this.triggerIdentifier || this.triggerId}\n\t\t\t\t\taria-hidden={toBoolAttrIfDefined(!this.isActive)}\n\t\t\t\t>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns a unique tab content identifier\n\t */\n\t@Method()\n\tasync getIdentifier(): Promise<string> {\n\t\treturn this.identifier || this.contentId\n\t}\n\n\t/**\n\t * Returns a unique tab trigger identifier\n\t */\n\t@Method()\n\tasync getTriggerIdentifier(): Promise<string> {\n\t\treturn this.triggerIdentifier || this.triggerId\n\t}\n\n\t/**\n\t * Returns a unique tab trigger identifier\n\t */\n\t@Method()\n\tasync getDisableState(): Promise<boolean> {\n\t\treturn this.disabled\n\t}\n\n\t/**\n\t * Set status of tab-item\n\t */\n\t@Method()\n\tasync setActiveStatus(status: boolean): Promise<void> {\n\t\tthis.isActive = status\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tabs-item.entry.cjs.js","sources":["../../../packages/core/src/components/gov-tabs/gov-tabs-item.tsx"],"sourcesContent":["import {Component, Element, h, Host, Method, Prop, State, Watch} from '@stencil/core'\r\nimport {createID} from '../../utils/string.utils'\r\nimport {govHost, toBoolAttrIfDefined} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {TabsClass, TabsItemClass} from './constants'\r\n\r\n@Component({\r\n\ttag: 'gov-tabs-item',\r\n})\r\nexport class GovTabsItem {\r\n\tprivate h: GovHost\r\n\tprivate readonly contentId: string\r\n\tprivate readonly triggerId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.contentId = createID('GovTabContent')\r\n\t\tthis.triggerId = createID('GovTabTrigger')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTabsItemElement\r\n\t/**\r\n\t * Custom tab item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Custom tab trigger item identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly triggerIdentifier: string\r\n\t/**\r\n\t * Item name of the tab\r\n\t */\r\n\t@Prop({reflect: true}) readonly label: string\r\n\t/**\r\n\t * Item disable state\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Icon definition at the stat. Use the type/name notation\r\n\t */\r\n\t@Prop({reflect: true, attribute: 'icon-start'}) readonly iconStart: string\r\n\t/**\r\n\t * Icon definition at the end. Use the type/name notation\r\n\t */\r\n\t@Prop({reflect: true, attribute: 'icon-end'}) readonly iconEnd: string\r\n\t/**\r\n\t * Default selected tab\r\n\t */\r\n\t@Prop() readonly default: boolean = false\r\n\t@State() isActive = false\r\n\r\n\t@Watch('label')\r\n\t@Watch('disabled')\r\n\trerenderParent() {\r\n\t\tconst element = this.h.getParent(TabsClass.root) as HTMLGovTabsElement;\r\n\t\tif (element) {\r\n\t\t\telement.rerender().catch()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TabsItemClass.root)} default={this.default}>\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass={TabsItemClass.inner}\r\n\t\t\t\t\trole=\"tabpanel\"\r\n\t\t\t\t\tid={this.identifier || this.contentId}\r\n\t\t\t\t\thidden={!this.isActive}\r\n\t\t\t\t\taria-labelledby={this.triggerIdentifier || this.triggerId}\r\n\t\t\t\t\taria-hidden={toBoolAttrIfDefined(!this.isActive)}\r\n\t\t\t\t>\r\n\t\t\t\t\t<slot></slot>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab content identifier\r\n\t */\r\n\t@Method()\r\n\tasync getIdentifier(): Promise<string> {\r\n\t\treturn this.identifier || this.contentId\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab trigger identifier\r\n\t */\r\n\t@Method()\r\n\tasync getTriggerIdentifier(): Promise<string> {\r\n\t\treturn this.triggerIdentifier || this.triggerId\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a unique tab trigger identifier\r\n\t */\r\n\t@Method()\r\n\tasync getDisableState(): Promise<boolean> {\r\n\t\treturn this.disabled\r\n\t}\r\n\r\n\t/**\r\n\t * Set status of tab-item\r\n\t */\r\n\t@Method()\r\n\tasync setActiveStatus(status: boolean): Promise<void> {\r\n\t\tthis.isActive = status\r\n\t}\r\n}\r\n"],"names":["govHost","createID","TabsClass","h","Host","TabsItemClass","toBoolAttrIfDefined"],"mappings":";;;;;;;;;;MASa,WAAW,GAAA,MAAA;AAKvB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAmBA;;AAEG;AAC6B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AASzD;;AAEG;AACc,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;AAChC,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;QAlCxB,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,SAAS,GAAGC,qBAAQ,CAAC,eAAe,CAAC;AAC1C,QAAA,IAAI,CAAC,SAAS,GAAGA,qBAAQ,CAAC,eAA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
+ {"version":3,"file":"gov-tabs-item.entry.cjs.js","sources":["../../../packages/core/src/components/gov-tabs/gov-tabs-item.tsx"],"sourcesContent":["import {Component, Element, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {createID} from '../../utils/string.utils'\nimport {govHost, toBoolAttrIfDefined} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {TabsClass, TabsItemClass} from './constants'\n\n@Component({\n\ttag: 'gov-tabs-item',\n})\nexport class GovTabsItem {\n\tprivate h: GovHost\n\tprivate readonly contentId: string\n\tprivate readonly triggerId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.contentId = createID('GovTabContent')\n\t\tthis.triggerId = createID('GovTabTrigger')\n\t}\n\n\t@Element() host: HTMLGovTabsItemElement\n\t/**\n\t * Custom tab item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Custom tab trigger item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly triggerIdentifier: string\n\t/**\n\t * Item name of the tab\n\t */\n\t@Prop({reflect: true}) readonly label: string\n\t/**\n\t * Item disable state\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Icon definition at the stat. Use the type/name notation\n\t */\n\t@Prop({reflect: true, attribute: 'icon-start'}) readonly iconStart: string\n\t/**\n\t * Icon definition at the end. Use the type/name notation\n\t */\n\t@Prop({reflect: true, attribute: 'icon-end'}) readonly iconEnd: string\n\t/**\n\t * Default selected tab\n\t */\n\t@Prop() readonly default: boolean = false\n\t@State() isActive = false\n\n\t@Watch('label')\n\t@Watch('disabled')\n\trerenderParent() {\n\t\tconst element = this.h.getParent(TabsClass.root) as HTMLGovTabsElement;\n\t\tif (element) {\n\t\t\telement.rerender().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TabsItemClass.root)} default={this.default}>\n\t\t\t\t<div\n\t\t\t\t\tclass={TabsItemClass.inner}\n\t\t\t\t\trole=\"tabpanel\"\n\t\t\t\t\tid={this.identifier || this.contentId}\n\t\t\t\t\thidden={!this.isActive}\n\t\t\t\t\taria-labelledby={this.triggerIdentifier || this.triggerId}\n\t\t\t\t\taria-hidden={toBoolAttrIfDefined(!this.isActive)}\n\t\t\t\t>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns a unique tab content identifier\n\t */\n\t@Method()\n\tasync getIdentifier(): Promise<string> {\n\t\treturn this.identifier || this.contentId\n\t}\n\n\t/**\n\t * Returns a unique tab trigger identifier\n\t */\n\t@Method()\n\tasync getTriggerIdentifier(): Promise<string> {\n\t\treturn this.triggerIdentifier || this.triggerId\n\t}\n\n\t/**\n\t * Returns a unique tab trigger identifier\n\t */\n\t@Method()\n\tasync getDisableState(): Promise<boolean> {\n\t\treturn this.disabled\n\t}\n\n\t/**\n\t * Set status of tab-item\n\t */\n\t@Method()\n\tasync setActiveStatus(status: boolean): Promise<void> {\n\t\tthis.isActive = status\n\t}\n}\n"],"names":["govHost","createID","TabsClass","h","Host","TabsItemClass","toBoolAttrIfDefined"],"mappings":";;;;;;;;;;MASa,WAAW,GAAA,MAAA;AAKvB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAmBA;;AAEG;AAC6B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AASzD;;AAEG;AACc,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;AAChC,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;QAlCxB,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,SAAS,GAAGC,qBAAQ,CAAC,eAAe,CAAC;AAC1C,QAAA,IAAI,CAAC,SAAS,GAAGA,qBAAQ,CAAC,eAAe,CAAC;AAC1C;IAmCD,cAAc,GAAA;AACb,QAAA,MAAM,OAAO,GAAG,IAAI,CA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host, { key: '0b339dda9cd002b5548650f0f996d349842f4c8b', class: this.h.classes(constants.TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, index.h("div", Object.assign({ key: '683da4323be50ee97c0f2b666423308b2feb6ff3', class: constants.TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), index.h("ul", { key: '0a255d6a8a57744c0636a41e567661775d450dee', class: constants.TabsClass.list }, this.controllers.map(control => (index.h("li", { class: constants.TabsClass.item }, this.type == "text" ? (index.h("button", { class: constants.TabsClass.btn, id: control.triggerIdentifier, role: "tab", type: "button", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": template.toBoolAttr(control.disabled), "aria-selected": template.toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (index.h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (index.h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (index.h("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": template.booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (index.h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (index.h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), index.h("slot", { key: '367950fe8ebba21bbe73c51a0d4c33efbb33e093' })));
139
+ return (index.h(index.Host, { key: '5dfd9d6ca4a17c425a96a1f766d599de80db6028', class: this.h.classes(constants.TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, index.h("div", Object.assign({ key: 'a195131ab673e7b9906777757f5c7e8c8421ddad', class: constants.TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), index.h("ul", { key: '3dd46399f5054881f71242b2f184ebfb11fac51e', class: constants.TabsClass.list }, this.controllers.map(control => (index.h("li", { class: constants.TabsClass.item }, this.type == "text" ? (index.h("button", { class: constants.TabsClass.btn, id: control.triggerIdentifier, role: "tab", type: "button", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": template.toBoolAttr(control.disabled), "aria-selected": template.toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (index.h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (index.h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (index.h("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": template.booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (index.h("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (index.h("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), index.h("slot", { key: '5fc402a27b6236ca10c8f3370f946b7ceadb5342' })));
140
140
  }
141
141
  getCurrentTab() {
142
142
  return this.controllers.find(control => control.active) || null;
@@ -1 +1 @@
1
- {"file":"gov-tabs.entry.cjs.js","mappings":";;;;;;;;;;;;;;;MA2Ba,OAAO,GAAA,MAAA;AAKnB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAHQ,QAAA,IAA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AiB,CAAwB,CAAC,QAAQ,EAAE;;qBACxE;oBACN,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,KAAK,EAAE;;gBAGpD,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;gBACxC,IAAI,CAAC,QAAQ,EAAE;AACf,gBAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC;;;;AAKpD;;AAEG;AAEH,IAAA,MAAM,OAAO,GAAA;QACZ,IAAI,CAAC,kBAAkB,EAAE;;AAG1B;;AAEG;AAEH,IAAA,MAAM,UAAU,GAAA;QACf,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,IAAI,IAAI;;AAG5C;;AAEG;IAEH,MAAM,YAAY,CAAC,UAAkB,EAAA;AACpC,QAAA,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC;QACtC,IAAI,CAAC,QAAQ,EAAE;;AAGhB;;AAEG;AAEH,IAAA,MAAM,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;;;;;;;;;;;;","names":["govHost","validateProp","TabTypes","TabsClass","TabColors","TabSizes","AttributeObserver","ariaAttributes","inheritAriaAttributes","TabsItemClass","prepareIconFormat","hasOwnProperty","h","Host","toBoolAttr","booleanString"],"sources":["../../../packages/core/src/components/gov-tabs/gov-tabs.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {\r\n\tColorType,\r\n\tTabColors,\r\n\tTabOrientationType,\r\n\tTabsClass,\r\n\tTabsItemClass,\r\n\tTabSizes,\r\n\tTabSizeType,\r\n\tTabType,\r\n\tTabTypes\r\n} from \"./constants\"\r\nimport {GovTabControllerItem} from \"./gov-tabs.types\"\r\nimport {booleanString, govHost, toBoolAttr} from \"../../helpers/Dom/template\"\r\nimport {Nullable} from \"../../types/interfaces\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {hasOwnProperty} from \"../../utils/helpers.types\";\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\r\n\r\n\r\n@Component({\r\n\ttag: \"gov-tabs\",\r\n})\r\nexport class GovTabs {\r\n\tprivate h: GovHost\r\n\tprivate triggerRefs: Record<string, HTMLButtonElement | HTMLGovChipElement> = {}\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTabsElement\r\n\t/**\r\n\t * Tabs type\r\n\t */\r\n\t@Prop() readonly type: TabType = \"text\"\r\n\t/**\r\n\t * Tabs size.\r\n\t */\r\n\t@Prop() readonly size?: TabSizeType = 'm'\r\n\t/**\r\n\t * Style variation of the tab chips.\r\n\t */\r\n\t@Prop() readonly color?: ColorType = \"primary\"\r\n\t/**\r\n\t * Tabs orientation\r\n\t */\r\n\t@Prop() readonly orientation: TabOrientationType = \"horizontal\"\r\n\t/**\r\n\t * Icon and description display direction\r\n\t */\r\n\t@Prop({reflect: true}) readonly direction: 'row' | 'column' = 'row'\r\n\t/**\r\n\t * Emitted when the tab is changed.\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<HTMLGovTabsItemElement>\r\n\r\n\t@Watch(\"type\")\r\n\tvalidateType(newValue: string): void {\r\n\t\tvalidateProp(TabTypes, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(TabColors, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(TabSizes, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@State() controllers: GovTabControllerItem[] = []\r\n\t@State() focusIndex = 0\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.prepareControllers()\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tprivate prepareControllers(skipDefault = false): void {\r\n\t\tthis.controllers = []\r\n\t\tconst promises: Promise<GovTabControllerItem>[] = []\r\n\t\tthis.host.querySelectorAll(':scope > ' + TabsItemClass.root).forEach((tab: HTMLGovTabsItemElement) => {\r\n\t\t\tconst controlItem = Promise.all([\r\n\t\t\t\ttab.getIdentifier(),\r\n\t\t\t\ttab.getTriggerIdentifier(),\r\n\t\t\t\ttab.getDisableState()\r\n\t\t\t]).then(([identifier, triggerIdentifier, disabled]) => {\r\n\t\t\t\tconst isDefault = typeof tab.getAttribute(\"default\") === \"string\"\r\n\t\t\t\tconst iconStart = prepareIconFormat(tab.getAttribute('icon-start'))\r\n\t\t\t\tconst iconEnd = prepareIconFormat(tab.getAttribute('icon-end'))\r\n\t\t\t\treturn {\r\n\t\t\t\t\tlabel: tab.getAttribute(\"label\"),\r\n\t\t\t\t\tdirection: tab.getAttribute(\"direction\"),\r\n\t\t\t\t\tcontentIdentifier: identifier,\r\n\t\t\t\t\tdisabled: disabled,\r\n\t\t\t\t\ttriggerIdentifier: triggerIdentifier,\r\n\t\t\t\t\telement: tab,\r\n\t\t\t\t\tactive: false,\r\n\t\t\t\t\tdefault: isDefault,\r\n\t\t\t\t\ticonStart,\r\n\t\t\t\t\ticonEnd\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tpromises.push(controlItem)\r\n\t\t});\r\n\t\tPromise.all(promises).then(controllers => {\r\n\t\t\tif (skipDefault === false) {\r\n\t\t\t\tlet defaultTabIndex = controllers.findIndex(controller => controller.default)\r\n\t\t\t\tif (defaultTabIndex === -1) defaultTabIndex = 0\r\n\t\t\t\tthis.focusIndex = defaultTabIndex\r\n\t\t\t\tcontrollers[defaultTabIndex].active = true\r\n\t\t\t} else if (this.focusIndex > -1 && hasOwnProperty(controllers, this.focusIndex)) {\r\n\t\t\t\tcontrollers[this.focusIndex].active = true\r\n\t\t\t}\r\n\t\t\tconst isWrongCombination = controllers.findIndex((controller) => controller.active && controller.disabled)\r\n\t\t\tif (isWrongCombination > -1) {\r\n\t\t\t\tcontrollers[isWrongCombination].active = false;\r\n\t\t\t\tconst firstGoodTab = controllers.findIndex((controller) => !controller.disabled)\r\n\t\t\t\tif (firstGoodTab > -1) {\r\n\t\t\t\t\tcontrollers[firstGoodTab].active = true\r\n\t\t\t\t\tthis.focusIndex = firstGoodTab;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.controllers = [...controllers]\r\n\t\t\tthis.reRender()\r\n\t\t})\r\n\t}\r\n\r\n\tprivate setActiveByIdentifier(identifier: string) {\r\n\t\tconst temp = []\r\n\t\tthis.controllers.map(item => {\r\n\t\t\titem.active = identifier === item.triggerIdentifier || identifier === item.contentIdentifier\r\n\t\t\ttemp.push(item)\r\n\t\t})\r\n\t\tthis.controllers = [...temp]\r\n\t}\r\n\r\n\tprivate reRender() {\r\n\t\tthis.controllers.map(control => {\r\n\t\t\tcontrol.element.setActiveStatus(control.active).catch()\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes(TabsClass.root)}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t\tdirection={this.direction}\r\n\t\t\t\tonKeyDown={this.onKeydownHandler.bind(this)}\r\n\t\t\t>\r\n\t\t\t\t<div class={TabsClass.tabs}\r\n\t\t\t\t\t role=\"tablist\"\r\n\t\t\t\t\t {...this.inheritedAttributes}>\r\n\t\t\t\t\t<ul class={TabsClass.list}>\r\n\t\t\t\t\t\t{this.controllers.map(control => (\r\n\t\t\t\t\t\t\t<li class={TabsClass.item}>\r\n\t\t\t\t\t\t\t\t{this.type == \"text\" ? (\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\tclass={TabsClass.btn}\r\n\t\t\t\t\t\t\t\t\t\tid={control.triggerIdentifier}\r\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\tonClick={() => this.onSelectHandler(control)}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\r\n\t\t\t\t\t\t\t\t\t\taria-disabled={toBoolAttr(control.disabled)}\r\n\t\t\t\t\t\t\t\t\t\taria-selected={toBoolAttr(control.active)}\r\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\r\n\t\t\t\t\t\t\t\t\t\ttabindex={control.active && !control.disabled ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLButtonElement)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t\t{control.label}\r\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t<gov-chip\r\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\t\t\ttag={'button'}\r\n\t\t\t\t\t\t\t\t\t\tidentifier={control.triggerIdentifier}\r\n\t\t\t\t\t\t\t\t\t\taria-selected={booleanString(control.active)}\r\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\r\n\t\t\t\t\t\t\t\t\t\tfocusable={control.active}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\r\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\t\t\t\t\tsize={this.size === \"xs\" ? \"xs\" : (this.size === \"s\" ? \"s\" : \"m\")}\r\n\t\t\t\t\t\t\t\t\t\ttype={control.active ? \"solid\" : \"outlined\"}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLGovChipElement)}\r\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onSelectHandler(control)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}\r\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-start\"></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t\t{control.label}\r\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}\r\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-end\"></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t</gov-chip>\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t))}\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</div>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate getCurrentTab(): GovTabControllerItem | null {\r\n\t\treturn this.controllers.find(control => control.active) || null\r\n\t}\r\n\r\n\tprivate onSelectHandler(control: GovTabControllerItem) {\r\n\t\tconst index = this.controllers.findIndex(t => t.triggerIdentifier === control.triggerIdentifier);\r\n\t\tthis.focusIndex = index\r\n\t\tthis.setActiveByIdentifier(control.triggerIdentifier)\r\n\t\tthis.reRender()\r\n\t\tthis.govChange.emit(this.getCurrentTab().element)\r\n\t}\r\n\r\n\tprivate onKeydownHandler(e: KeyboardEvent) {\r\n\t\tconst keyCode = e.keyCode\r\n\r\n\t\te.stopPropagation()\r\n\t\tthis.goToPrevNext(keyCode)\r\n\t}\r\n\r\n\tprivate goToPrevNext(keyCode: number) {\r\n\t\tif ([37, 38, 39, 40].includes(keyCode)) {\r\n\t\t\tif (false === (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1)) {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\r\n\t\t\tthis.controllers[this.focusIndex].active = false\r\n\r\n\t\t\tif (keyCode === 39 || keyCode === 40) {\r\n\t\t\t\tthis.focusIndex++\r\n\t\t\t\tif (this.focusIndex >= this.controllers.length) {\r\n\t\t\t\t\tthis.focusIndex = 0\r\n\t\t\t\t}\r\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\r\n\t\t\t\t\tthis.goToPrevNext(40)\r\n\t\t\t\t}\r\n\t\t\t} else if (keyCode === 37 || keyCode === 38) {\r\n\t\t\t\tthis.focusIndex--\r\n\t\t\t\tif (this.focusIndex < 0) {\r\n\t\t\t\t\tthis.focusIndex = this.controllers.length - 1\r\n\t\t\t\t}\r\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\r\n\t\t\t\t\tthis.goToPrevNext(38)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1) {\r\n\t\t\t\tconst current = this.controllers[this.focusIndex]\r\n\t\t\t\tcurrent.active = true\r\n\t\t\t\tconst trigger = this.triggerRefs[current.triggerIdentifier]\r\n\t\t\t\tif (trigger.nodeName.toLowerCase() === 'gov-chip') {\r\n\t\t\t\t\t(this.triggerRefs[current.triggerIdentifier] as HTMLGovChipElement).setFocus()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.triggerRefs[current.triggerIdentifier].focus()\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.controllers = [...this.controllers]\r\n\t\t\t\tthis.reRender()\r\n\t\t\t\tthis.govChange.emit(this.getCurrentTab().element)\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync refresh(): Promise<void> {\r\n\t\tthis.prepareControllers()\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the currently selected tabs-item\r\n\t */\r\n\t@Method()\r\n\tasync currentTab(): Promise<Nullable<HTMLGovTabsItemElement>> {\r\n\t\treturn this.getCurrentTab().element || null\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync setActiveTab(identifier: string): Promise<void> {\r\n\t\tthis.setActiveByIdentifier(identifier)\r\n\t\tthis.reRender()\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync rerender(): Promise<void> {\r\n\t\tthis.prepareControllers(true);\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I,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC;gBAC3D,IAAI,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,UAAU,EAAE;oBACjD,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAwB,CAAC,QAAQ,EAAE;;qBACxE;oBACN,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,KAAK,EAAE;;gBAGpD,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;gBACxC,IAAI,CAAC,QAAQ,EAAE;AACf,gBAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC;;;;AAKpD;;AAEG;AAEH,IAAA,MAAM,OAAO,GAAA;QACZ,IAAI,CAAC,kBAAkB,EAAE;;AAG1B;;AAEG;AAEH,IAAA,MAAM,UAAU,GAAA;QACf,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,IAAI,IAAI;;AAG5C;;AAEG;IAEH,MAAM,YAAY,CAAC,UAAkB,EAAA;AACpC,QAAA,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC;QACtC,IAAI,CAAC,QAAQ,EAAE;;AAGhB;;AAEG;AAEH,IAAA,MAAM,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;;;;;;;;;;;;","names":["govHost","validateProp","TabTypes","TabsClass","TabColors","TabSizes","AttributeObserver","ariaAttributes","inheritAriaAttributes","TabsItemClass","prepareIconFormat","hasOwnProperty","h","Host","toBoolAttr","booleanString"],"sources":["../../../packages/core/src/components/gov-tabs/gov-tabs.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {\n\tColorType,\n\tTabColors,\n\tTabOrientationType,\n\tTabsClass,\n\tTabsItemClass,\n\tTabSizes,\n\tTabSizeType,\n\tTabType,\n\tTabTypes\n} from \"./constants\"\nimport {GovTabControllerItem} from \"./gov-tabs.types\"\nimport {booleanString, govHost, toBoolAttr} from \"../../helpers/Dom/template\"\nimport {Nullable} from \"../../types/interfaces\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {hasOwnProperty} from \"../../utils/helpers.types\";\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n\n@Component({\n\ttag: \"gov-tabs\",\n})\nexport class GovTabs {\n\tprivate h: GovHost\n\tprivate triggerRefs: Record<string, HTMLButtonElement | HTMLGovChipElement> = {}\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovTabsElement\n\t/**\n\t * Tabs type\n\t */\n\t@Prop() readonly type: TabType = \"text\"\n\t/**\n\t * Tabs size.\n\t */\n\t@Prop() readonly size?: TabSizeType = 'm'\n\t/**\n\t * Style variation of the tab chips.\n\t */\n\t@Prop() readonly color?: ColorType = \"primary\"\n\t/**\n\t * Tabs orientation\n\t */\n\t@Prop() readonly orientation: TabOrientationType = \"horizontal\"\n\t/**\n\t * Icon and description display direction\n\t */\n\t@Prop({reflect: true}) readonly direction: 'row' | 'column' = 'row'\n\t/**\n\t * Emitted when the tab is changed.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<HTMLGovTabsItemElement>\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(TabTypes, newValue, TabsClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(TabColors, newValue, TabsClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(TabSizes, newValue, TabsClass.root)\n\t}\n\n\t@State() controllers: GovTabControllerItem[] = []\n\t@State() focusIndex = 0\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() {\n\t\tthis.prepareControllers()\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate prepareControllers(skipDefault = false): void {\n\t\tthis.controllers = []\n\t\tconst promises: Promise<GovTabControllerItem>[] = []\n\t\tthis.host.querySelectorAll(':scope > ' + TabsItemClass.root).forEach((tab: HTMLGovTabsItemElement) => {\n\t\t\tconst controlItem = Promise.all([\n\t\t\t\ttab.getIdentifier(),\n\t\t\t\ttab.getTriggerIdentifier(),\n\t\t\t\ttab.getDisableState()\n\t\t\t]).then(([identifier, triggerIdentifier, disabled]) => {\n\t\t\t\tconst isDefault = typeof tab.getAttribute(\"default\") === \"string\"\n\t\t\t\tconst iconStart = prepareIconFormat(tab.getAttribute('icon-start'))\n\t\t\t\tconst iconEnd = prepareIconFormat(tab.getAttribute('icon-end'))\n\t\t\t\treturn {\n\t\t\t\t\tlabel: tab.getAttribute(\"label\"),\n\t\t\t\t\tdirection: tab.getAttribute(\"direction\"),\n\t\t\t\t\tcontentIdentifier: identifier,\n\t\t\t\t\tdisabled: disabled,\n\t\t\t\t\ttriggerIdentifier: triggerIdentifier,\n\t\t\t\t\telement: tab,\n\t\t\t\t\tactive: false,\n\t\t\t\t\tdefault: isDefault,\n\t\t\t\t\ticonStart,\n\t\t\t\t\ticonEnd\n\t\t\t\t}\n\t\t\t})\n\t\t\tpromises.push(controlItem)\n\t\t});\n\t\tPromise.all(promises).then(controllers => {\n\t\t\tif (skipDefault === false) {\n\t\t\t\tlet defaultTabIndex = controllers.findIndex(controller => controller.default)\n\t\t\t\tif (defaultTabIndex === -1) defaultTabIndex = 0\n\t\t\t\tthis.focusIndex = defaultTabIndex\n\t\t\t\tcontrollers[defaultTabIndex].active = true\n\t\t\t} else if (this.focusIndex > -1 && hasOwnProperty(controllers, this.focusIndex)) {\n\t\t\t\tcontrollers[this.focusIndex].active = true\n\t\t\t}\n\t\t\tconst isWrongCombination = controllers.findIndex((controller) => controller.active && controller.disabled)\n\t\t\tif (isWrongCombination > -1) {\n\t\t\t\tcontrollers[isWrongCombination].active = false;\n\t\t\t\tconst firstGoodTab = controllers.findIndex((controller) => !controller.disabled)\n\t\t\t\tif (firstGoodTab > -1) {\n\t\t\t\t\tcontrollers[firstGoodTab].active = true\n\t\t\t\t\tthis.focusIndex = firstGoodTab;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.controllers = [...controllers]\n\t\t\tthis.reRender()\n\t\t})\n\t}\n\n\tprivate setActiveByIdentifier(identifier: string) {\n\t\tconst temp = []\n\t\tthis.controllers.map(item => {\n\t\t\titem.active = identifier === item.triggerIdentifier || identifier === item.contentIdentifier\n\t\t\ttemp.push(item)\n\t\t})\n\t\tthis.controllers = [...temp]\n\t}\n\n\tprivate reRender() {\n\t\tthis.controllers.map(control => {\n\t\t\tcontrol.element.setActiveStatus(control.active).catch()\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(TabsClass.root)}\n\t\t\t\tsize={this.size}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tdirection={this.direction}\n\t\t\t\tonKeyDown={this.onKeydownHandler.bind(this)}\n\t\t\t>\n\t\t\t\t<div class={TabsClass.tabs}\n\t\t\t\t\t role=\"tablist\"\n\t\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<ul class={TabsClass.list}>\n\t\t\t\t\t\t{this.controllers.map(control => (\n\t\t\t\t\t\t\t<li class={TabsClass.item}>\n\t\t\t\t\t\t\t\t{this.type == \"text\" ? (\n\t\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\t\tclass={TabsClass.btn}\n\t\t\t\t\t\t\t\t\t\tid={control.triggerIdentifier}\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\t\tonClick={() => this.onSelectHandler(control)}\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\n\t\t\t\t\t\t\t\t\t\taria-disabled={toBoolAttr(control.disabled)}\n\t\t\t\t\t\t\t\t\t\taria-selected={toBoolAttr(control.active)}\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\n\t\t\t\t\t\t\t\t\t\ttabindex={control.active && !control.disabled ? 0 : -1}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLButtonElement)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t\t{control.label}\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<gov-chip\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\n\t\t\t\t\t\t\t\t\t\ttag={'button'}\n\t\t\t\t\t\t\t\t\t\tidentifier={control.triggerIdentifier}\n\t\t\t\t\t\t\t\t\t\taria-selected={booleanString(control.active)}\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\n\t\t\t\t\t\t\t\t\t\tfocusable={control.active}\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\t\t\t\t\tsize={this.size === \"xs\" ? \"xs\" : (this.size === \"s\" ? \"s\" : \"m\")}\n\t\t\t\t\t\t\t\t\t\ttype={control.active ? \"solid\" : \"outlined\"}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLGovChipElement)}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onSelectHandler(control)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-start\"></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t\t{control.label}\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-end\"></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t</gov-chip>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate getCurrentTab(): GovTabControllerItem | null {\n\t\treturn this.controllers.find(control => control.active) || null\n\t}\n\n\tprivate onSelectHandler(control: GovTabControllerItem) {\n\t\tconst index = this.controllers.findIndex(t => t.triggerIdentifier === control.triggerIdentifier);\n\t\tthis.focusIndex = index\n\t\tthis.setActiveByIdentifier(control.triggerIdentifier)\n\t\tthis.reRender()\n\t\tthis.govChange.emit(this.getCurrentTab().element)\n\t}\n\n\tprivate onKeydownHandler(e: KeyboardEvent) {\n\t\tconst keyCode = e.keyCode\n\n\t\te.stopPropagation()\n\t\tthis.goToPrevNext(keyCode)\n\t}\n\n\tprivate goToPrevNext(keyCode: number) {\n\t\tif ([37, 38, 39, 40].includes(keyCode)) {\n\t\t\tif (false === (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1)) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.controllers[this.focusIndex].active = false\n\n\t\t\tif (keyCode === 39 || keyCode === 40) {\n\t\t\t\tthis.focusIndex++\n\t\t\t\tif (this.focusIndex >= this.controllers.length) {\n\t\t\t\t\tthis.focusIndex = 0\n\t\t\t\t}\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\n\t\t\t\t\tthis.goToPrevNext(40)\n\t\t\t\t}\n\t\t\t} else if (keyCode === 37 || keyCode === 38) {\n\t\t\t\tthis.focusIndex--\n\t\t\t\tif (this.focusIndex < 0) {\n\t\t\t\t\tthis.focusIndex = this.controllers.length - 1\n\t\t\t\t}\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\n\t\t\t\t\tthis.goToPrevNext(38)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1) {\n\t\t\t\tconst current = this.controllers[this.focusIndex]\n\t\t\t\tcurrent.active = true\n\t\t\t\tconst trigger = this.triggerRefs[current.triggerIdentifier]\n\t\t\t\tif (trigger.nodeName.toLowerCase() === 'gov-chip') {\n\t\t\t\t\t(this.triggerRefs[current.triggerIdentifier] as HTMLGovChipElement).setFocus()\n\t\t\t\t} else {\n\t\t\t\t\tthis.triggerRefs[current.triggerIdentifier].focus()\n\t\t\t\t}\n\n\t\t\t\tthis.controllers = [...this.controllers]\n\t\t\t\tthis.reRender()\n\t\t\t\tthis.govChange.emit(this.getCurrentTab().element)\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Regenerate tabs controllers\n\t */\n\t@Method()\n\tasync refresh(): Promise<void> {\n\t\tthis.prepareControllers()\n\t}\n\n\t/**\n\t * Returns the currently selected tabs-item\n\t */\n\t@Method()\n\tasync currentTab(): Promise<Nullable<HTMLGovTabsItemElement>> {\n\t\treturn this.getCurrentTab().element || null\n\t}\n\n\t/**\n\t * Regenerate tabs controllers\n\t */\n\t@Method()\n\tasync setActiveTab(identifier: string): Promise<void> {\n\t\tthis.setActiveByIdentifier(identifier)\n\t\tthis.reRender()\n\t}\n\n\t/**\n\t * Regenerate tabs controllers\n\t */\n\t@Method()\n\tasync rerender(): Promise<void> {\n\t\tthis.prepareControllers(true);\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tabs.entry.cjs.js","sources":["../../../packages/core/src/components/gov-tabs/gov-tabs.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {\r\n\tColorType,\r\n\tTabColors,\r\n\tTabOrientationType,\r\n\tTabsClass,\r\n\tTabsItemClass,\r\n\tTabSizes,\r\n\tTabSizeType,\r\n\tTabType,\r\n\tTabTypes\r\n} from \"./constants\"\r\nimport {GovTabControllerItem} from \"./gov-tabs.types\"\r\nimport {booleanString, govHost, toBoolAttr} from \"../../helpers/Dom/template\"\r\nimport {Nullable} from \"../../types/interfaces\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {hasOwnProperty} from \"../../utils/helpers.types\";\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\r\n\r\n\r\n@Component({\r\n\ttag: \"gov-tabs\",\r\n})\r\nexport class GovTabs {\r\n\tprivate h: GovHost\r\n\tprivate triggerRefs: Record<string, HTMLButtonElement | HTMLGovChipElement> = {}\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTabsElement\r\n\t/**\r\n\t * Tabs type\r\n\t */\r\n\t@Prop() readonly type: TabType = \"text\"\r\n\t/**\r\n\t * Tabs size.\r\n\t */\r\n\t@Prop() readonly size?: TabSizeType = 'm'\r\n\t/**\r\n\t * Style variation of the tab chips.\r\n\t */\r\n\t@Prop() readonly color?: ColorType = \"primary\"\r\n\t/**\r\n\t * Tabs orientation\r\n\t */\r\n\t@Prop() readonly orientation: TabOrientationType = \"horizontal\"\r\n\t/**\r\n\t * Icon and description display direction\r\n\t */\r\n\t@Prop({reflect: true}) readonly direction: 'row' | 'column' = 'row'\r\n\t/**\r\n\t * Emitted when the tab is changed.\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<HTMLGovTabsItemElement>\r\n\r\n\t@Watch(\"type\")\r\n\tvalidateType(newValue: string): void {\r\n\t\tvalidateProp(TabTypes, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(TabColors, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(TabSizes, newValue, TabsClass.root)\r\n\t}\r\n\r\n\t@State() controllers: GovTabControllerItem[] = []\r\n\t@State() focusIndex = 0\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.prepareControllers()\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tprivate prepareControllers(skipDefault = false): void {\r\n\t\tthis.controllers = []\r\n\t\tconst promises: Promise<GovTabControllerItem>[] = []\r\n\t\tthis.host.querySelectorAll(':scope > ' + TabsItemClass.root).forEach((tab: HTMLGovTabsItemElement) => {\r\n\t\t\tconst controlItem = Promise.all([\r\n\t\t\t\ttab.getIdentifier(),\r\n\t\t\t\ttab.getTriggerIdentifier(),\r\n\t\t\t\ttab.getDisableState()\r\n\t\t\t]).then(([identifier, triggerIdentifier, disabled]) => {\r\n\t\t\t\tconst isDefault = typeof tab.getAttribute(\"default\") === \"string\"\r\n\t\t\t\tconst iconStart = prepareIconFormat(tab.getAttribute('icon-start'))\r\n\t\t\t\tconst iconEnd = prepareIconFormat(tab.getAttribute('icon-end'))\r\n\t\t\t\treturn {\r\n\t\t\t\t\tlabel: tab.getAttribute(\"label\"),\r\n\t\t\t\t\tdirection: tab.getAttribute(\"direction\"),\r\n\t\t\t\t\tcontentIdentifier: identifier,\r\n\t\t\t\t\tdisabled: disabled,\r\n\t\t\t\t\ttriggerIdentifier: triggerIdentifier,\r\n\t\t\t\t\telement: tab,\r\n\t\t\t\t\tactive: false,\r\n\t\t\t\t\tdefault: isDefault,\r\n\t\t\t\t\ticonStart,\r\n\t\t\t\t\ticonEnd\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tpromises.push(controlItem)\r\n\t\t});\r\n\t\tPromise.all(promises).then(controllers => {\r\n\t\t\tif (skipDefault === false) {\r\n\t\t\t\tlet defaultTabIndex = controllers.findIndex(controller => controller.default)\r\n\t\t\t\tif (defaultTabIndex === -1) defaultTabIndex = 0\r\n\t\t\t\tthis.focusIndex = defaultTabIndex\r\n\t\t\t\tcontrollers[defaultTabIndex].active = true\r\n\t\t\t} else if (this.focusIndex > -1 && hasOwnProperty(controllers, this.focusIndex)) {\r\n\t\t\t\tcontrollers[this.focusIndex].active = true\r\n\t\t\t}\r\n\t\t\tconst isWrongCombination = controllers.findIndex((controller) => controller.active && controller.disabled)\r\n\t\t\tif (isWrongCombination > -1) {\r\n\t\t\t\tcontrollers[isWrongCombination].active = false;\r\n\t\t\t\tconst firstGoodTab = controllers.findIndex((controller) => !controller.disabled)\r\n\t\t\t\tif (firstGoodTab > -1) {\r\n\t\t\t\t\tcontrollers[firstGoodTab].active = true\r\n\t\t\t\t\tthis.focusIndex = firstGoodTab;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.controllers = [...controllers]\r\n\t\t\tthis.reRender()\r\n\t\t})\r\n\t}\r\n\r\n\tprivate setActiveByIdentifier(identifier: string) {\r\n\t\tconst temp = []\r\n\t\tthis.controllers.map(item => {\r\n\t\t\titem.active = identifier === item.triggerIdentifier || identifier === item.contentIdentifier\r\n\t\t\ttemp.push(item)\r\n\t\t})\r\n\t\tthis.controllers = [...temp]\r\n\t}\r\n\r\n\tprivate reRender() {\r\n\t\tthis.controllers.map(control => {\r\n\t\t\tcontrol.element.setActiveStatus(control.active).catch()\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes(TabsClass.root)}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t\tdirection={this.direction}\r\n\t\t\t\tonKeyDown={this.onKeydownHandler.bind(this)}\r\n\t\t\t>\r\n\t\t\t\t<div class={TabsClass.tabs}\r\n\t\t\t\t\t role=\"tablist\"\r\n\t\t\t\t\t {...this.inheritedAttributes}>\r\n\t\t\t\t\t<ul class={TabsClass.list}>\r\n\t\t\t\t\t\t{this.controllers.map(control => (\r\n\t\t\t\t\t\t\t<li class={TabsClass.item}>\r\n\t\t\t\t\t\t\t\t{this.type == \"text\" ? (\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\tclass={TabsClass.btn}\r\n\t\t\t\t\t\t\t\t\t\tid={control.triggerIdentifier}\r\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\tonClick={() => this.onSelectHandler(control)}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\r\n\t\t\t\t\t\t\t\t\t\taria-disabled={toBoolAttr(control.disabled)}\r\n\t\t\t\t\t\t\t\t\t\taria-selected={toBoolAttr(control.active)}\r\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\r\n\t\t\t\t\t\t\t\t\t\ttabindex={control.active && !control.disabled ? 0 : -1}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLButtonElement)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t\t{control.label}\r\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t<gov-chip\r\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\r\n\t\t\t\t\t\t\t\t\t\ttag={'button'}\r\n\t\t\t\t\t\t\t\t\t\tidentifier={control.triggerIdentifier}\r\n\t\t\t\t\t\t\t\t\t\taria-selected={booleanString(control.active)}\r\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\r\n\t\t\t\t\t\t\t\t\t\tfocusable={control.active}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\r\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\t\t\t\t\tsize={this.size === \"xs\" ? \"xs\" : (this.size === \"s\" ? \"s\" : \"m\")}\r\n\t\t\t\t\t\t\t\t\t\ttype={control.active ? \"solid\" : \"outlined\"}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLGovChipElement)}\r\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onSelectHandler(control)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}\r\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-start\"></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t\t{control.label}\r\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\r\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}\r\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-end\"></gov-icon>) : null}\r\n\t\t\t\t\t\t\t\t\t</gov-chip>\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t))}\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</div>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate getCurrentTab(): GovTabControllerItem | null {\r\n\t\treturn this.controllers.find(control => control.active) || null\r\n\t}\r\n\r\n\tprivate onSelectHandler(control: GovTabControllerItem) {\r\n\t\tconst index = this.controllers.findIndex(t => t.triggerIdentifier === control.triggerIdentifier);\r\n\t\tthis.focusIndex = index\r\n\t\tthis.setActiveByIdentifier(control.triggerIdentifier)\r\n\t\tthis.reRender()\r\n\t\tthis.govChange.emit(this.getCurrentTab().element)\r\n\t}\r\n\r\n\tprivate onKeydownHandler(e: KeyboardEvent) {\r\n\t\tconst keyCode = e.keyCode\r\n\r\n\t\te.stopPropagation()\r\n\t\tthis.goToPrevNext(keyCode)\r\n\t}\r\n\r\n\tprivate goToPrevNext(keyCode: number) {\r\n\t\tif ([37, 38, 39, 40].includes(keyCode)) {\r\n\t\t\tif (false === (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1)) {\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\r\n\t\t\tthis.controllers[this.focusIndex].active = false\r\n\r\n\t\t\tif (keyCode === 39 || keyCode === 40) {\r\n\t\t\t\tthis.focusIndex++\r\n\t\t\t\tif (this.focusIndex >= this.controllers.length) {\r\n\t\t\t\t\tthis.focusIndex = 0\r\n\t\t\t\t}\r\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\r\n\t\t\t\t\tthis.goToPrevNext(40)\r\n\t\t\t\t}\r\n\t\t\t} else if (keyCode === 37 || keyCode === 38) {\r\n\t\t\t\tthis.focusIndex--\r\n\t\t\t\tif (this.focusIndex < 0) {\r\n\t\t\t\t\tthis.focusIndex = this.controllers.length - 1\r\n\t\t\t\t}\r\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\r\n\t\t\t\t\tthis.goToPrevNext(38)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1) {\r\n\t\t\t\tconst current = this.controllers[this.focusIndex]\r\n\t\t\t\tcurrent.active = true\r\n\t\t\t\tconst trigger = this.triggerRefs[current.triggerIdentifier]\r\n\t\t\t\tif (trigger.nodeName.toLowerCase() === 'gov-chip') {\r\n\t\t\t\t\t(this.triggerRefs[current.triggerIdentifier] as HTMLGovChipElement).setFocus()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.triggerRefs[current.triggerIdentifier].focus()\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.controllers = [...this.controllers]\r\n\t\t\t\tthis.reRender()\r\n\t\t\t\tthis.govChange.emit(this.getCurrentTab().element)\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync refresh(): Promise<void> {\r\n\t\tthis.prepareControllers()\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the currently selected tabs-item\r\n\t */\r\n\t@Method()\r\n\tasync currentTab(): Promise<Nullable<HTMLGovTabsItemElement>> {\r\n\t\treturn this.getCurrentTab().element || null\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync setActiveTab(identifier: string): Promise<void> {\r\n\t\tthis.setActiveByIdentifier(identifier)\r\n\t\tthis.reRender()\r\n\t}\r\n\r\n\t/**\r\n\t * Regenerate tabs controllers\r\n\t */\r\n\t@Method()\r\n\tasync rerender(): Promise<void> {\r\n\t\tthis.prepareControllers(true);\r\n\t}\r\n}\r\n"],"names":["govHost","validateProp","TabTypes","TabsClass","TabColors","TabSizes","AttributeObserver","ariaAttributes","inheritAriaAttributes","TabsItemClass","prepareIconFormat","hasOwnProperty","h","Host","toBoolAttr","booleanString"],"mappings":";;;;;;;;;;;;;;;MA2Ba,OAAO,GAAA,MAAA;AAKn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AAE;oBACjD,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAwB,CAAC,QAAQ,EAAE;;qBACxE;oBACN,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,KAAK,EAAE;;gBAGpD,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;gBACxC,IAAI,CAAC,QAAQ,EAAE;AACf,gBAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC;;;;AAKpD;;AAEG;AAEH,IAAA,MAAM,OAAO,GAAA;QACZ,IAAI,CAAC,kBAAkB,EAAE;;AAG1B;;AAEG;AAEH,IAAA,MAAM,UAAU,GAAA;QACf,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,IAAI,IAAI;;AAG5C;;AAEG;IAEH,MAAM,YAAY,CAAC,UAAkB,EAAA;AACpC,QAAA,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC;QACtC,IAAI,CAAC,QAAQ,EAAE;;AAGhB;;AAEG;AAEH,IAAA,MAAM,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;;;;;;;;;;;;"}
1
+ {"version":3,"file":"gov-tabs.entry.cjs.js","sources":["../../../packages/core/src/components/gov-tabs/gov-tabs.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {\n\tColorType,\n\tTabColors,\n\tTabOrientationType,\n\tTabsClass,\n\tTabsItemClass,\n\tTabSizes,\n\tTabSizeType,\n\tTabType,\n\tTabTypes\n} from \"./constants\"\nimport {GovTabControllerItem} from \"./gov-tabs.types\"\nimport {booleanString, govHost, toBoolAttr} from \"../../helpers/Dom/template\"\nimport {Nullable} from \"../../types/interfaces\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {hasOwnProperty} from \"../../utils/helpers.types\";\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n\n@Component({\n\ttag: \"gov-tabs\",\n})\nexport class GovTabs {\n\tprivate h: GovHost\n\tprivate triggerRefs: Record<string, HTMLButtonElement | HTMLGovChipElement> = {}\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovTabsElement\n\t/**\n\t * Tabs type\n\t */\n\t@Prop() readonly type: TabType = \"text\"\n\t/**\n\t * Tabs size.\n\t */\n\t@Prop() readonly size?: TabSizeType = 'm'\n\t/**\n\t * Style variation of the tab chips.\n\t */\n\t@Prop() readonly color?: ColorType = \"primary\"\n\t/**\n\t * Tabs orientation\n\t */\n\t@Prop() readonly orientation: TabOrientationType = \"horizontal\"\n\t/**\n\t * Icon and description display direction\n\t */\n\t@Prop({reflect: true}) readonly direction: 'row' | 'column' = 'row'\n\t/**\n\t * Emitted when the tab is changed.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<HTMLGovTabsItemElement>\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(TabTypes, newValue, TabsClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(TabColors, newValue, TabsClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(TabSizes, newValue, TabsClass.root)\n\t}\n\n\t@State() controllers: GovTabControllerItem[] = []\n\t@State() focusIndex = 0\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() {\n\t\tthis.prepareControllers()\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate prepareControllers(skipDefault = false): void {\n\t\tthis.controllers = []\n\t\tconst promises: Promise<GovTabControllerItem>[] = []\n\t\tthis.host.querySelectorAll(':scope > ' + TabsItemClass.root).forEach((tab: HTMLGovTabsItemElement) => {\n\t\t\tconst controlItem = Promise.all([\n\t\t\t\ttab.getIdentifier(),\n\t\t\t\ttab.getTriggerIdentifier(),\n\t\t\t\ttab.getDisableState()\n\t\t\t]).then(([identifier, triggerIdentifier, disabled]) => {\n\t\t\t\tconst isDefault = typeof tab.getAttribute(\"default\") === \"string\"\n\t\t\t\tconst iconStart = prepareIconFormat(tab.getAttribute('icon-start'))\n\t\t\t\tconst iconEnd = prepareIconFormat(tab.getAttribute('icon-end'))\n\t\t\t\treturn {\n\t\t\t\t\tlabel: tab.getAttribute(\"label\"),\n\t\t\t\t\tdirection: tab.getAttribute(\"direction\"),\n\t\t\t\t\tcontentIdentifier: identifier,\n\t\t\t\t\tdisabled: disabled,\n\t\t\t\t\ttriggerIdentifier: triggerIdentifier,\n\t\t\t\t\telement: tab,\n\t\t\t\t\tactive: false,\n\t\t\t\t\tdefault: isDefault,\n\t\t\t\t\ticonStart,\n\t\t\t\t\ticonEnd\n\t\t\t\t}\n\t\t\t})\n\t\t\tpromises.push(controlItem)\n\t\t});\n\t\tPromise.all(promises).then(controllers => {\n\t\t\tif (skipDefault === false) {\n\t\t\t\tlet defaultTabIndex = controllers.findIndex(controller => controller.default)\n\t\t\t\tif (defaultTabIndex === -1) defaultTabIndex = 0\n\t\t\t\tthis.focusIndex = defaultTabIndex\n\t\t\t\tcontrollers[defaultTabIndex].active = true\n\t\t\t} else if (this.focusIndex > -1 && hasOwnProperty(controllers, this.focusIndex)) {\n\t\t\t\tcontrollers[this.focusIndex].active = true\n\t\t\t}\n\t\t\tconst isWrongCombination = controllers.findIndex((controller) => controller.active && controller.disabled)\n\t\t\tif (isWrongCombination > -1) {\n\t\t\t\tcontrollers[isWrongCombination].active = false;\n\t\t\t\tconst firstGoodTab = controllers.findIndex((controller) => !controller.disabled)\n\t\t\t\tif (firstGoodTab > -1) {\n\t\t\t\t\tcontrollers[firstGoodTab].active = true\n\t\t\t\t\tthis.focusIndex = firstGoodTab;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.controllers = [...controllers]\n\t\t\tthis.reRender()\n\t\t})\n\t}\n\n\tprivate setActiveByIdentifier(identifier: string) {\n\t\tconst temp = []\n\t\tthis.controllers.map(item => {\n\t\t\titem.active = identifier === item.triggerIdentifier || identifier === item.contentIdentifier\n\t\t\ttemp.push(item)\n\t\t})\n\t\tthis.controllers = [...temp]\n\t}\n\n\tprivate reRender() {\n\t\tthis.controllers.map(control => {\n\t\t\tcontrol.element.setActiveStatus(control.active).catch()\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(TabsClass.root)}\n\t\t\t\tsize={this.size}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tdirection={this.direction}\n\t\t\t\tonKeyDown={this.onKeydownHandler.bind(this)}\n\t\t\t>\n\t\t\t\t<div class={TabsClass.tabs}\n\t\t\t\t\t role=\"tablist\"\n\t\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<ul class={TabsClass.list}>\n\t\t\t\t\t\t{this.controllers.map(control => (\n\t\t\t\t\t\t\t<li class={TabsClass.item}>\n\t\t\t\t\t\t\t\t{this.type == \"text\" ? (\n\t\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\t\tclass={TabsClass.btn}\n\t\t\t\t\t\t\t\t\t\tid={control.triggerIdentifier}\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\t\tonClick={() => this.onSelectHandler(control)}\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\n\t\t\t\t\t\t\t\t\t\taria-disabled={toBoolAttr(control.disabled)}\n\t\t\t\t\t\t\t\t\t\taria-selected={toBoolAttr(control.active)}\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\n\t\t\t\t\t\t\t\t\t\ttabindex={control.active && !control.disabled ? 0 : -1}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLButtonElement)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t\t{control.label}\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<gov-chip\n\t\t\t\t\t\t\t\t\t\trole=\"tab\"\n\t\t\t\t\t\t\t\t\t\ttag={'button'}\n\t\t\t\t\t\t\t\t\t\tidentifier={control.triggerIdentifier}\n\t\t\t\t\t\t\t\t\t\taria-selected={booleanString(control.active)}\n\t\t\t\t\t\t\t\t\t\taria-controls={control.contentIdentifier}\n\t\t\t\t\t\t\t\t\t\tfocusable={control.active}\n\t\t\t\t\t\t\t\t\t\tdisabled={control.disabled}\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\t\t\t\t\tsize={this.size === \"xs\" ? \"xs\" : (this.size === \"s\" ? \"s\" : \"m\")}\n\t\t\t\t\t\t\t\t\t\ttype={control.active ? \"solid\" : \"outlined\"}\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRefs[control.triggerIdentifier] = el as HTMLGovChipElement)}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onSelectHandler(control)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{control.iconStart ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconStart.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconStart.type}\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-start\"></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t\t{control.label}\n\t\t\t\t\t\t\t\t\t\t{control.iconEnd ? (<gov-icon\n\t\t\t\t\t\t\t\t\t\t\tname={control.iconEnd.name}\n\t\t\t\t\t\t\t\t\t\t\ttype={control.iconEnd.type}\n\t\t\t\t\t\t\t\t\t\t\tslot=\"icon-end\"></gov-icon>) : null}\n\t\t\t\t\t\t\t\t\t</gov-chip>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate getCurrentTab(): GovTabControllerItem | null {\n\t\treturn this.controllers.find(control => control.active) || null\n\t}\n\n\tprivate onSelectHandler(control: GovTabControllerItem) {\n\t\tconst index = this.controllers.findIndex(t => t.triggerIdentifier === control.triggerIdentifier);\n\t\tthis.focusIndex = index\n\t\tthis.setActiveByIdentifier(control.triggerIdentifier)\n\t\tthis.reRender()\n\t\tthis.govChange.emit(this.getCurrentTab().element)\n\t}\n\n\tprivate onKeydownHandler(e: KeyboardEvent) {\n\t\tconst keyCode = e.keyCode\n\n\t\te.stopPropagation()\n\t\tthis.goToPrevNext(keyCode)\n\t}\n\n\tprivate goToPrevNext(keyCode: number) {\n\t\tif ([37, 38, 39, 40].includes(keyCode)) {\n\t\t\tif (false === (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1)) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.controllers[this.focusIndex].active = false\n\n\t\t\tif (keyCode === 39 || keyCode === 40) {\n\t\t\t\tthis.focusIndex++\n\t\t\t\tif (this.focusIndex >= this.controllers.length) {\n\t\t\t\t\tthis.focusIndex = 0\n\t\t\t\t}\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\n\t\t\t\t\tthis.goToPrevNext(40)\n\t\t\t\t}\n\t\t\t} else if (keyCode === 37 || keyCode === 38) {\n\t\t\t\tthis.focusIndex--\n\t\t\t\tif (this.focusIndex < 0) {\n\t\t\t\t\tthis.focusIndex = this.controllers.length - 1\n\t\t\t\t}\n\t\t\t\tif (this.controllers[this.focusIndex].disabled) {\n\t\t\t\t\tthis.goToPrevNext(38)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.focusIndex >= 0 && this.focusIndex <= this.controllers.length - 1) {\n\t\t\t\tconst current = this.controllers[this.focusIndex]\n\t\t\t\tcurrent.active = true\n\t\t\t\tconst trigger = this.triggerRefs[current.triggerIdentifier]\n\t\t\t\tif (trigger.nodeName.toLowerCase() === 'gov-chip') {\n\t\t\t\t\t(this.triggerRefs[current.triggerIdentifier] as HTMLGovChipElement).setFocus()\n\t\t\t\t} else {\n\t\t\t\t\tthis.triggerRefs[current.triggerIdentifier].focus()\n\t\t\t\t}\n\n\t\t\t\tthis.controllers = [...this.controllers]\n\t\t\t\tthis.reRender()\n\t\t\t\tthis.govChange.emit(this.getCurrentTab().element)\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Regenerate tabs controllers\n\t */\n\t@Method()\n\tasync refresh(): Promise<void> {\n\t\tthis.prepareControllers()\n\t}\n\n\t/**\n\t * Returns the currently selected tabs-item\n\t */\n\t@Method()\n\tasync currentTab(): Promise<Nullable<HTMLGovTabsItemElement>> {\n\t\treturn this.getCurrentTab().element || null\n\t}\n\n\t/**\n\t * Regenerate tabs controllers\n\t */\n\t@Method()\n\tasync setActiveTab(identifier: string): Promise<void> {\n\t\tthis.setActiveByIdentifier(identifier)\n\t\tthis.reRender()\n\t}\n\n\t/**\n\t * Regenerate tabs controllers\n\t */\n\t@Method()\n\tasync rerender(): Promise<void> {\n\t\tthis.prepareControllers(true);\n\t}\n}\n"],"names":["govHost","validateProp","TabTypes","TabsClass","TabColors","TabSizes","AttributeObserver","ariaAttributes","inheritAriaAttributes","TabsItemClass","prepareIconFormat","hasOwnProperty","h","Host","toBoolAttr","booleanString"],"mappings":";;;;;;;;;;;;;;;MA2Ba,OAAO,GAAA,MAAA;AAKnB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAHQ,QAAA,IAAW,CAAA,WAAA,GAA2D,EAAE;AAQhF;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAY,MAAM;AACvC;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAiB,GAAG;AACzC;;AAEG;AACc,QAAA,IAAK,CAAA,KAAA,GAAe,SAAS;AAC9C;;AAEG;AACc,QAAA,IAAW,CAAA,WAAA,GAAuB,YAAY;AAC/D;;AAEG;AAC6B,QAAA,IAAS,CAAA,SAAA,GAAqB,KAAK;AAqB1D,QAAA,IAAW,CAAA,WAAA,GAA2B,EAAE;AACxC,QAAA,IAAU,CAAA,UAAA,GAAG,CAAC;AACd,QAAA,IAAmB,CAAA,mBAAA,GAAe,EAAE;QA9C5C,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AA6BD,IAAA,YAAY,CAAC,QAAgB,EAAA;QAC5BC,kBAAY,CAACC,kBAAQ,EAAE,Q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C;QACtC,IAAI,CAAC,QAAQ,EAAE;;AAGhB;;AAEG;AAEH,IAAA,MAAM,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;;;;;;;;;;;;"}
@@ -50,7 +50,7 @@ const GovTag = class {
50
50
  render() {
51
51
  const iconStart = helpers.prepareIconFormat(this.iconStart);
52
52
  const iconEnd = helpers.prepareIconFormat(this.iconEnd);
53
- return (index.h(index.Host, { key: 'bb366b85a94d134d58766604e6410e17bed07adc', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, index.h("span", { key: '963aa53926b6b65bbc155c349a119f46aabe59c8', class: "element" }, index.h("slot", { key: '3164cfa09970ac3e0f97df7265afd45a623b09aa', name: "icon-start" }, iconStart && index.h("gov-icon", { key: '335c0e5db0cb5a808c553bd4c9f6893d17a8fac9', type: iconStart.type, name: iconStart.name })), index.h("slot", { key: '9be29754dcefdaa37daee39befdc6a708e36324d' }), index.h("slot", { key: '6dffe882089838615e9fe451fc800b728885746a', name: "icon-end" }, iconEnd && index.h("gov-icon", { key: '415d8c03fefdf6281ae13668fb7b3aeaa572856e', type: iconEnd.type, name: iconEnd.name })))));
53
+ return (index.h(index.Host, { key: '9ed31c6f9d34001618223db4d842ee55611f8896', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, index.h("span", { key: '617d6cf19dc34385815916b6656f48c14428bff6', class: "element" }, index.h("slot", { key: 'd95d40e8a9de633865f174821050ab57174b435f', name: "icon-start" }, iconStart && index.h("gov-icon", { key: '95a813406d45b8a69f4d4804f4063a7fa88d1038', type: iconStart.type, name: iconStart.name })), index.h("slot", { key: '4e4ad28e073bc933e3a193283e46d50f413bcf62' }), index.h("slot", { key: '0642ab987098007d4335d8aed281f4cd431bfe10', name: "icon-end" }, iconEnd && index.h("gov-icon", { key: '00ea783ae37eb0a4461cb97e15cdc9efc332bb27', type: iconEnd.type, name: iconEnd.name })))));
54
54
  }
55
55
  get host() { return index.getElement(this);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SAAS,CAAC;QACnD,MAAM,OAAO,GAAGA,yBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC;AAC/C,QAAA,QACCC,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EACzC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EAAA,EAEfD,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EACpBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,YAAY,IACrB,SAAS,IAAIA,uEAAU,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,GAAa,CACzE,EACPA,OAAO,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EACPA,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,UAAU,EAAA,EACnB,OAAO,IAAIA,OAAA,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAU,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,GAAa,CACnE,CACD,CACD;;;;;;;;;;;","names":["pick","Sizes","ButtonColors","govHost","validateProp","ButtonSizes","prepareIconFormat","h","Host"],"sources":["../../../packages/core/src/components/gov-tag/constants.ts","../../../packages/core/src/components/gov-tag/gov-tag.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const TagSizes = pick(Sizes, ['_XS', '_S', '_M'])\r\nexport type TagSizesType = `${ValueOf<typeof TagSizes>}`\r\n\r\nexport enum TagType {\r\n\tBOLD = 'bold',\r\n\tSUBTLE = 'subtle',\r\n}\r\nexport type TagTypesType = `${ValueOf<typeof TagType>}`\r\n\r\nexport const TagClass = {\r\n\troot: 'gov-tag',\r\n}\r\n","import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\r\nimport {govHost} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {validateProp} from '../../helpers/Validate/props'\r\nimport {ButtonSizes, ButtonColors, ButtonColorType} from '../gov-button/button/constants'\r\nimport {TagClass, TagSizes, TagSizesType, TagTypesType} from './constants'\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\n\r\n@Component({\r\n\ttag: 'gov-tag',\r\n})\r\nexport class GovTag {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTagElement\r\n\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\r\n\t/**\r\n\t * Tag’s size.\r\n\t */\r\n\t@Prop({reflect: true}) readonly size: TagSizesType = TagSizes._S\r\n\t/**\r\n\t * Style variation of the tag.\r\n\t */\r\n\t@Prop({reflect: true}) readonly color: ButtonColorType = ButtonColors.PRIMARY\r\n\t/**\r\n\t * Tag’s type\r\n\t */\r\n\t@Prop({reflect: true}) readonly type: TagTypesType\r\n\t/**\r\n\t * Expands the tag to fill 100% of the container width\r\n\t */\r\n\t@Prop({reflect: true}) readonly expanded: boolean = false\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ButtonColors, newValue, TagClass.root)\r\n\t}\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(ButtonSizes, newValue, TagClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\r\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TagClass.root)}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t>\r\n\t\t\t\t<span class=\"element\">\r\n\t\t\t\t\t<slot name=\"icon-start\">\r\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t<slot name=\"icon-end\">\r\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t</span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"version":3}
1
+ {"file":"gov-tag.entry.cjs.js","mappings":";;;;;;;;;;;;AAIO,MAAM,QAAQ,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAGxD,IAAY,OAGX;AAHD,CAAA,UAAY,OAAO,EAAA;AAClB,IAAA,OAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,OAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHW,OAAO,KAAP,OAAO,GAGlB,EAAA,CAAA,CAAA;AAGM,MAAM,QAAQ,GAAG;AACvB,IAAA,IAAI,EAAE,SAAS;CACf;;MCJY,MAAM,GAAA,MAAA;AAGlB,IAAA,WAAA,CAAA,OAAA,E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ACrB,SAAS,IAAIA,uEAAU,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,GAAa,CACzE,EACPA,OAAO,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EACPA,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,UAAU,EAAA,EACnB,OAAO,IAAIA,OAAA,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAU,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,GAAa,CACnE,CACD,CACD;;;;;;;;;;;","names":["pick","Sizes","ButtonColors","govHost","validateProp","ButtonSizes","prepareIconFormat","h","Host"],"sources":["../../../packages/core/src/components/gov-tag/constants.ts","../../../packages/core/src/components/gov-tag/gov-tag.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TagSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type TagSizesType = `${ValueOf<typeof TagSizes>}`\n\nexport enum TagType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type TagTypesType = `${ValueOf<typeof TagType>}`\n\nexport const TagClass = {\n\troot: 'gov-tag',\n}\n","import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonSizes, ButtonColors, ButtonColorType} from '../gov-button/button/constants'\nimport {TagClass, TagSizes, TagSizesType, TagTypesType} from './constants'\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\n\n@Component({\n\ttag: 'gov-tag',\n})\nexport class GovTag {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovTagElement\n\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\n\t/**\n\t * Tag’s size.\n\t */\n\t@Prop({reflect: true}) readonly size: TagSizesType = TagSizes._S\n\t/**\n\t * Style variation of the tag.\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType = ButtonColors.PRIMARY\n\t/**\n\t * Tag’s type\n\t */\n\t@Prop({reflect: true}) readonly type: TagTypesType\n\t/**\n\t * Expands the tag to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, TagClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, TagClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TagClass.root)}\n\t\t\t\tcolor={this.color}\n\t\t\t\tsize={this.size}\n\t\t\t\ttype={this.type}\n\t\t\t>\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<slot name=\"icon-start\">\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<slot name=\"icon-end\">\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tag.entry.cjs.js","sources":["../../../packages/core/src/components/gov-tag/constants.ts","../../../packages/core/src/components/gov-tag/gov-tag.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const TagSizes = pick(Sizes, ['_XS', '_S', '_M'])\r\nexport type TagSizesType = `${ValueOf<typeof TagSizes>}`\r\n\r\nexport enum TagType {\r\n\tBOLD = 'bold',\r\n\tSUBTLE = 'subtle',\r\n}\r\nexport type TagTypesType = `${ValueOf<typeof TagType>}`\r\n\r\nexport const TagClass = {\r\n\troot: 'gov-tag',\r\n}\r\n","import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\r\nimport {govHost} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {validateProp} from '../../helpers/Validate/props'\r\nimport {ButtonSizes, ButtonColors, ButtonColorType} from '../gov-button/button/constants'\r\nimport {TagClass, TagSizes, TagSizesType, TagTypesType} from './constants'\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\n\r\n@Component({\r\n\ttag: 'gov-tag',\r\n})\r\nexport class GovTag {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovTagElement\r\n\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\r\n\t/**\r\n\t * Tag’s size.\r\n\t */\r\n\t@Prop({reflect: true}) readonly size: TagSizesType = TagSizes._S\r\n\t/**\r\n\t * Style variation of the tag.\r\n\t */\r\n\t@Prop({reflect: true}) readonly color: ButtonColorType = ButtonColors.PRIMARY\r\n\t/**\r\n\t * Tag’s type\r\n\t */\r\n\t@Prop({reflect: true}) readonly type: TagTypesType\r\n\t/**\r\n\t * Expands the tag to fill 100% of the container width\r\n\t */\r\n\t@Prop({reflect: true}) readonly expanded: boolean = false\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ButtonColors, newValue, TagClass.root)\r\n\t}\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(ButtonSizes, newValue, TagClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\r\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TagClass.root)}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t>\r\n\t\t\t\t<span class=\"element\">\r\n\t\t\t\t\t<slot name=\"icon-start\">\r\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t<slot name=\"icon-end\">\r\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t</span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"names":["pick","Sizes","ButtonColors","govHost","validateProp","ButtonSizes","prepareIconFormat","h","Host"],"mappings":";;;;;;;;;;;;AAIO,MAAM,QAAQ,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAA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C,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EACzC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EAAA,EAEfD,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EACpBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,YAAY,IACrB,SAAS,IAAIA,uEAAU,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,GAAa,CACzE,EACPA,OAAO,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EACPA,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,UAAU,EAAA,EACnB,OAAO,IAAIA,OAAA,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAU,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,GAAa,CACnE,CACD,CACD;;;;;;;;;;;"}
1
+ {"version":3,"file":"gov-tag.entry.cjs.js","sources":["../../../packages/core/src/components/gov-tag/constants.ts","../../../packages/core/src/components/gov-tag/gov-tag.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const TagSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type TagSizesType = `${ValueOf<typeof TagSizes>}`\n\nexport enum TagType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type TagTypesType = `${ValueOf<typeof TagType>}`\n\nexport const TagClass = {\n\troot: 'gov-tag',\n}\n","import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonSizes, ButtonColors, ButtonColorType} from '../gov-button/button/constants'\nimport {TagClass, TagSizes, TagSizesType, TagTypesType} from './constants'\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\n\n@Component({\n\ttag: 'gov-tag',\n})\nexport class GovTag {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovTagElement\n\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\n\t/**\n\t * Tag’s size.\n\t */\n\t@Prop({reflect: true}) readonly size: TagSizesType = TagSizes._S\n\t/**\n\t * Style variation of the tag.\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType = ButtonColors.PRIMARY\n\t/**\n\t * Tag’s type\n\t */\n\t@Prop({reflect: true}) readonly type: TagTypesType\n\t/**\n\t * Expands the tag to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, TagClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, TagClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\n\t\treturn (\n\t\t\t<Host class={this.h.classes(TagClass.root)}\n\t\t\t\tcolor={this.color}\n\t\t\t\tsize={this.size}\n\t\t\t\ttype={this.type}\n\t\t\t>\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<slot name=\"icon-start\">\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<slot name=\"icon-end\">\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"names":["pick","Sizes","ButtonColors","govHost","validateProp","ButtonSizes","prepareIconFormat","h","Host"],"mappings":";;;;;;;;;;;;AAIO,MAAM,QAAQ,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAGxD,IAAY,OAGX;AAHD,CAAA,UAAY,OAAO,EAAA;AAClB,IAAA,OAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,OAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHW,OAAO,KAAP,OAAO,GAGlB,EAAA,CAAA,CAAA;AAGM,MAAM,QAAQ,GAAG;AACvB,IAAA,IAAI,EAAE,SAAS;CACf;;MCJY,MAAM,GAAA,MAAA;AAGlB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAcA;;AAEG;AAC6B,QAAA,IAAA,CAAA,IAAI,GAAiB,QAAQ,CAAC,EAAE;AAChE;;AAEG;AAC6B,QAAA,IAAA,CAAA,KAAK,GAAoBC,sBAAY,CAAC,OAAO;AAK7E;;AAEG;AAC6B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;QA5BxD,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AA8BD,IAAA,aAAa,CAAC,QAAgB,EAAA;QAC7BC,kBAAY,CAACF,sBAAY,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC;;AAIpD,IAAA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