@gov-design-system-ce/components 0.0.53 → 0.0.54

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 (387) hide show
  1. package/dist/cjs/constants-440cd5c8.js +29 -0
  2. package/dist/cjs/constants-440cd5c8.js.map +1 -0
  3. package/dist/cjs/core.cjs.js +1 -1
  4. package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
  5. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-accordion.cjs.entry.js +3 -3
  7. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-alert.cjs.entry.js +2 -2
  9. package/dist/cjs/gov-app.cjs.entry.js +49 -43
  10. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  11. package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
  12. package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-badge.cjs.entry.js +1 -1
  14. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -2
  16. package/dist/cjs/gov-button.cjs.entry.js +2 -2
  17. package/dist/cjs/gov-card.cjs.entry.js +2 -2
  18. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  19. package/dist/cjs/gov-form-file.cjs.entry.js +2 -2
  20. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-form-input.cjs.entry.js +2 -2
  23. package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
  24. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
  25. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  26. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  27. package/dist/cjs/gov-icon.cjs.entry.js +22 -15
  28. package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
  29. package/dist/cjs/gov-modal.cjs.entry.js +2 -2
  30. package/dist/cjs/gov-nav.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
  32. package/dist/cjs/gov-prompt.cjs.entry.js +2 -2
  33. package/dist/cjs/gov-side-nav.cjs.entry.js +2 -2
  34. package/dist/cjs/gov-skeleton.cjs.entry.js +2 -2
  35. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  36. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  37. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  38. package/dist/cjs/gov-wizard-item.cjs.entry.js +114 -0
  39. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -0
  40. package/dist/cjs/{gov-wizzard.cjs.entry.js → gov-wizard.cjs.entry.js} +13 -13
  41. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -0
  42. package/dist/cjs/index-83edd4fe.js +4 -4
  43. package/dist/cjs/loader.cjs.js +1 -1
  44. package/dist/cjs/{wcag-b0321f09.js → wcag-d7912060.js} +2 -2
  45. package/dist/cjs/{wcag-b0321f09.js.map → wcag-d7912060.js.map} +1 -1
  46. package/dist/cjs/{win-53f637d4.js → win-0427c131.js} +4 -1
  47. package/dist/cjs/win-0427c131.js.map +1 -0
  48. package/dist/collection/collection-manifest.json +2 -2
  49. package/dist/collection/components/gov-accordion/gov-accordion-item.css +13 -10
  50. package/dist/collection/components/gov-accordion/gov-accordion.css +2 -2
  51. package/dist/collection/components/gov-alert/gov-alert.css +1 -1
  52. package/dist/collection/components/gov-app/gov-app.css +1 -1
  53. package/dist/collection/components/gov-app/gov-app.js +2 -2
  54. package/dist/collection/components/gov-app/gov-app.js.map +1 -1
  55. package/dist/collection/components/gov-attachments/gov-attachments-item.css +1 -1
  56. package/dist/collection/components/gov-attachments/gov-attachments.css +1 -1
  57. package/dist/collection/components/gov-backdrop/gov-backdrop.css +1 -1
  58. package/dist/collection/components/gov-badge/gov-badge.css +1 -1
  59. package/dist/collection/components/gov-badge/gov-badge.js +2 -2
  60. package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
  61. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +1 -1
  62. package/dist/collection/components/gov-button/default/gov-button.css +1 -1
  63. package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +1 -1
  64. package/dist/collection/components/gov-card/gov-card.css +1 -1
  65. package/dist/collection/components/gov-container/gov-container.css +1 -1
  66. package/dist/collection/components/gov-control-group/gov-control-group.css +1 -1
  67. package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +1 -1
  68. package/dist/collection/components/gov-empty/gov-empty.css +1 -1
  69. package/dist/collection/components/gov-error-code/gov-error-code.css +1 -1
  70. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +1 -1
  71. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +1 -1
  72. package/dist/collection/components/gov-form/control/gov-form-control.css +1 -1
  73. package/dist/collection/components/gov-form/file/gov-form-file.css +1 -1
  74. package/dist/collection/components/gov-form/group/gov-form-group.css +8 -8
  75. package/dist/collection/components/gov-form/input/gov-form-input.css +1 -1
  76. package/dist/collection/components/gov-form/label/gov-form-label.css +1 -1
  77. package/dist/collection/components/gov-form/message/gov-form-message.css +1 -1
  78. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +1 -1
  79. package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +1 -1
  80. package/dist/collection/components/gov-form/radio/gov-form-radio.css +1 -1
  81. package/dist/collection/components/gov-form/search/gov-form-search.css +1 -1
  82. package/dist/collection/components/gov-form/select/gov-form-select.css +1 -1
  83. package/dist/collection/components/gov-form/switch/gov-form-switch.css +1 -1
  84. package/dist/collection/components/gov-grid/gov-grid-item.css +1 -1
  85. package/dist/collection/components/gov-grid/gov-grid.css +1 -1
  86. package/dist/collection/components/gov-icon/gov-icon.css +1 -1
  87. package/dist/collection/components/gov-icon/gov-icon.js +14 -7
  88. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  89. package/dist/collection/components/gov-layout/gov-layout-column.css +1 -1
  90. package/dist/collection/components/gov-layout/gov-layout.css +1 -1
  91. package/dist/collection/components/gov-loading/loading/gov-loading.css +1 -1
  92. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +1 -1
  93. package/dist/collection/components/gov-message/gov-message.css +1 -1
  94. package/dist/collection/components/gov-modal/gov-modal.css +1 -1
  95. package/dist/collection/components/gov-nav/gov-nav-item.css +1 -1
  96. package/dist/collection/components/gov-nav/gov-nav.css +1 -1
  97. package/dist/collection/components/gov-pagination/gov-pagination.css +1 -1
  98. package/dist/collection/components/gov-promp/gov-prompt.css +1 -1
  99. package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +1 -1
  100. package/dist/collection/components/gov-side-nav/gov-side-nav.css +1 -1
  101. package/dist/collection/components/gov-spacer/gov-spacer.css +1 -1
  102. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +1 -1
  103. package/dist/collection/components/gov-statsbar/gov-statsbar.css +1 -1
  104. package/dist/collection/components/gov-stepper/gov-stepper-item.css +23 -23
  105. package/dist/collection/components/gov-stepper/gov-stepper.css +1 -1
  106. package/dist/collection/components/gov-tabs/gov-tabs-item.css +1 -1
  107. package/dist/collection/components/gov-tabs/gov-tabs.css +1 -1
  108. package/dist/collection/components/gov-tile/container/gov-tiles.css +1 -1
  109. package/dist/collection/components/gov-tile/gov-tile.css +1 -1
  110. package/dist/collection/components/gov-toast/gov-toast.css +1 -1
  111. package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +1 -1
  112. package/dist/collection/components/gov-tooltip/gov-tooltip.css +1 -1
  113. package/dist/collection/components/gov-wizard/constants.js +20 -0
  114. package/dist/collection/components/gov-wizard/constants.js.map +1 -0
  115. package/dist/collection/components/gov-wizard/gov-wizard-item.css +471 -0
  116. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js +2 -0
  117. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -0
  118. package/dist/collection/components/{gov-wizzard/gov-wizzard-item.js → gov-wizard/gov-wizard-item.js} +35 -35
  119. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -0
  120. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js +2 -0
  121. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -0
  122. package/dist/collection/components/{gov-wizzard/gov-wizzard.css → gov-wizard/gov-wizard.css} +4 -4
  123. package/dist/collection/components/{gov-wizzard/gov-wizzard.js → gov-wizard/gov-wizard.js} +20 -20
  124. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -0
  125. package/dist/collection/helpers/Dom/win.js +2 -0
  126. package/dist/collection/helpers/Dom/win.js.map +1 -1
  127. package/dist/collection/pages/Accordion.js +2 -2
  128. package/dist/collection/pages/Accordion.js.map +1 -1
  129. package/dist/collection/pages/Badge.js +6 -0
  130. package/dist/collection/pages/Badge.js.map +1 -1
  131. package/dist/collection/pages/{Wizzard.js → Wizard.js} +41 -41
  132. package/dist/collection/pages/Wizard.js.map +1 -0
  133. package/dist/collection/utils/icon.utils.js +8 -7
  134. package/dist/collection/utils/icon.utils.js.map +1 -1
  135. package/dist/components/gov-accordion-item.js +1 -1
  136. package/dist/components/gov-accordion-item.js.map +1 -1
  137. package/dist/components/gov-accordion.js +1 -1
  138. package/dist/components/gov-accordion.js.map +1 -1
  139. package/dist/components/gov-alert.js +1 -1
  140. package/dist/components/gov-app.js +1 -1
  141. package/dist/components/gov-app.js.map +1 -1
  142. package/dist/components/gov-attachments-item.js +1 -1
  143. package/dist/components/gov-attachments.js +1 -1
  144. package/dist/components/gov-backdrop.js +1 -1
  145. package/dist/components/gov-badge.js +1 -1
  146. package/dist/components/gov-breadcrumbs.js +1 -1
  147. package/dist/components/gov-button.js +1 -1
  148. package/dist/components/gov-card.js +1 -1
  149. package/dist/components/gov-form-autocomplete.js +1 -1
  150. package/dist/components/gov-form-checkbox.js +1 -1
  151. package/dist/components/gov-form-file.js +1 -1
  152. package/dist/components/gov-form-group.js +1 -1
  153. package/dist/components/gov-form-group.js.map +1 -1
  154. package/dist/components/gov-form-input.js +1 -1
  155. package/dist/components/gov-form-multi-select.js +1 -1
  156. package/dist/components/gov-form-radio.js +1 -1
  157. package/dist/components/gov-form-select.js +1 -1
  158. package/dist/components/gov-form-switch.js +1 -1
  159. package/dist/components/gov-icon.js +1 -1
  160. package/dist/components/gov-loading.js +1 -1
  161. package/dist/components/gov-modal.js +1 -1
  162. package/dist/components/gov-nav.js +1 -1
  163. package/dist/components/gov-pagination.js +1 -1
  164. package/dist/components/gov-prompt.js +1 -1
  165. package/dist/components/gov-side-nav-item.js +1 -1
  166. package/dist/components/gov-side-nav.js +1 -1
  167. package/dist/components/gov-side-nav.js.map +1 -1
  168. package/dist/components/gov-skeleton.js +1 -1
  169. package/dist/components/gov-skeleton.js.map +1 -1
  170. package/dist/components/gov-stepper-item.js +1 -1
  171. package/dist/components/gov-stepper-item.js.map +1 -1
  172. package/dist/components/gov-tabs.js +1 -1
  173. package/dist/components/gov-tile.js +1 -1
  174. package/dist/components/gov-toast.js +1 -1
  175. package/dist/components/{gov-wizzard-item.d.ts → gov-wizard-item.d.ts} +4 -4
  176. package/dist/components/gov-wizard-item.js +2 -0
  177. package/dist/components/gov-wizard-item.js.map +1 -0
  178. package/dist/components/{gov-wizzard.d.ts → gov-wizard.d.ts} +4 -4
  179. package/dist/components/gov-wizard.js +2 -0
  180. package/dist/components/gov-wizard.js.map +1 -0
  181. package/dist/components/{p-db22f9ce.js → p-3a46b683.js} +2 -2
  182. package/dist/components/{p-386409dc.js → p-3e8a9e92.js} +2 -2
  183. package/dist/components/{p-7bea2390.js → p-560846c7.js} +2 -2
  184. package/dist/components/p-6834d779.js +2 -0
  185. package/dist/components/p-6834d779.js.map +1 -0
  186. package/dist/components/{p-ccc44ac1.js → p-8da17139.js} +2 -2
  187. package/dist/components/{p-cf493ba0.js → p-a2e601c5.js} +2 -2
  188. package/dist/components/p-a2e601c5.js.map +1 -0
  189. package/dist/components/p-ae894a40.js +2 -0
  190. package/dist/components/{p-a20f1683.js → p-b9388dc1.js} +2 -2
  191. package/dist/components/p-c055eb68.js +2 -0
  192. package/dist/components/p-c055eb68.js.map +1 -0
  193. package/dist/components/p-cac3881f.js +2 -0
  194. package/dist/components/p-cac3881f.js.map +1 -0
  195. package/dist/components/{p-c0e49b09.js → p-d6ab5b8a.js} +2 -2
  196. package/dist/components/{p-103c7bd5.js → p-e9a01d67.js} +2 -2
  197. package/dist/core/core.esm.js +1 -1
  198. package/dist/core/core.esm.js.map +1 -1
  199. package/dist/core/{p-e39cd83c.entry.js → p-06699657.entry.js} +2 -2
  200. package/dist/core/{p-e39cd83c.entry.js.map → p-06699657.entry.js.map} +1 -1
  201. package/dist/core/{p-41f72892.entry.js → p-0c1697ce.entry.js} +2 -2
  202. package/dist/core/{p-9a3e3ace.entry.js → p-18ef9623.entry.js} +2 -2
  203. package/dist/core/{p-eda868dc.entry.js → p-22a86871.entry.js} +2 -2
  204. package/dist/core/{p-722218fd.entry.js → p-23385300.entry.js} +2 -2
  205. package/dist/core/{p-48349167.entry.js → p-33bf5974.entry.js} +2 -2
  206. package/dist/core/p-3b236ac2.entry.js +2 -0
  207. package/dist/core/p-3b236ac2.entry.js.map +1 -0
  208. package/dist/core/{p-9f541022.entry.js → p-3d0ab343.entry.js} +2 -2
  209. package/dist/core/{p-e0c04c5f.entry.js → p-41e88980.entry.js} +2 -2
  210. package/dist/core/{p-5a855a15.entry.js → p-42c1935f.entry.js} +2 -2
  211. package/dist/core/p-44af4bc9.entry.js +2 -0
  212. package/dist/core/p-44af4bc9.entry.js.map +1 -0
  213. package/dist/core/{p-de3dc437.entry.js → p-48cfc1c6.entry.js} +2 -2
  214. package/dist/core/p-64f7e661.entry.js +2 -0
  215. package/dist/core/p-64f7e661.entry.js.map +1 -0
  216. package/dist/core/p-6834d779.js +2 -0
  217. package/dist/core/p-6834d779.js.map +1 -0
  218. package/dist/core/{p-9ad54c30.entry.js → p-70140f70.entry.js} +2 -2
  219. package/dist/core/{p-a68547b1.entry.js → p-81643870.entry.js} +2 -2
  220. package/dist/core/{p-11be550d.entry.js → p-82f64673.entry.js} +2 -2
  221. package/dist/core/{p-fa71fb92.entry.js → p-9d72d80b.entry.js} +2 -2
  222. package/dist/core/{p-1ae47d62.entry.js → p-a5d00433.entry.js} +2 -2
  223. package/dist/core/{p-3bc977e2.entry.js → p-accf8575.entry.js} +2 -2
  224. package/dist/core/p-accf8575.entry.js.map +1 -0
  225. package/dist/core/p-ae894a40.js +2 -0
  226. package/dist/core/p-b9b57928.entry.js +2 -0
  227. package/dist/core/p-b9b57928.entry.js.map +1 -0
  228. package/dist/core/p-bd1cb5bd.entry.js +2 -0
  229. package/dist/core/p-bd1cb5bd.entry.js.map +1 -0
  230. package/dist/core/{p-7d680665.entry.js → p-bfb4d904.entry.js} +2 -2
  231. package/dist/core/p-cac3881f.js +2 -0
  232. package/dist/core/p-cac3881f.js.map +1 -0
  233. package/dist/core/p-d1b7d8a6.entry.js +2 -0
  234. package/dist/core/p-d1b7d8a6.entry.js.map +1 -0
  235. package/dist/core/{p-3d720d54.entry.js → p-dbb46457.entry.js} +2 -2
  236. package/dist/core/{p-b5a560d2.entry.js → p-dfc080f2.entry.js} +2 -2
  237. package/dist/core/{p-e1b3c361.entry.js → p-e769f3ee.entry.js} +2 -2
  238. package/dist/core/p-ea4459ae.entry.js +2 -0
  239. package/dist/core/p-ea4459ae.entry.js.map +1 -0
  240. package/dist/core/{p-d921bd4b.entry.js → p-f0a5847a.entry.js} +2 -2
  241. package/dist/core/{p-5150efee.entry.js → p-fc853777.entry.js} +2 -2
  242. package/dist/esm/constants-2499979c.js +24 -0
  243. package/dist/esm/constants-2499979c.js.map +1 -0
  244. package/dist/esm/core.js +1 -1
  245. package/dist/esm/gov-accordion-item.entry.js +1 -1
  246. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  247. package/dist/esm/gov-accordion.entry.js +3 -3
  248. package/dist/esm/gov-accordion.entry.js.map +1 -1
  249. package/dist/esm/gov-alert.entry.js +2 -2
  250. package/dist/esm/gov-app.entry.js +49 -43
  251. package/dist/esm/gov-app.entry.js.map +1 -1
  252. package/dist/esm/gov-attachments_3.entry.js +2 -2
  253. package/dist/esm/gov-backdrop.entry.js +2 -2
  254. package/dist/esm/gov-badge.entry.js +1 -1
  255. package/dist/esm/gov-badge.entry.js.map +1 -1
  256. package/dist/esm/gov-breadcrumbs.entry.js +2 -2
  257. package/dist/esm/gov-button.entry.js +2 -2
  258. package/dist/esm/gov-card.entry.js +2 -2
  259. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  260. package/dist/esm/gov-form-file.entry.js +2 -2
  261. package/dist/esm/gov-form-group.entry.js +1 -1
  262. package/dist/esm/gov-form-group.entry.js.map +1 -1
  263. package/dist/esm/gov-form-input.entry.js +2 -2
  264. package/dist/esm/gov-form-multi-select.entry.js +2 -2
  265. package/dist/esm/gov-form-radio.entry.js +2 -2
  266. package/dist/esm/gov-form-select.entry.js +2 -2
  267. package/dist/esm/gov-form-switch.entry.js +2 -2
  268. package/dist/esm/gov-icon.entry.js +22 -15
  269. package/dist/esm/gov-icon.entry.js.map +1 -1
  270. package/dist/esm/gov-modal.entry.js +2 -2
  271. package/dist/esm/gov-nav.entry.js +2 -2
  272. package/dist/esm/gov-pagination.entry.js +2 -2
  273. package/dist/esm/gov-prompt.entry.js +2 -2
  274. package/dist/esm/gov-side-nav.entry.js +2 -2
  275. package/dist/esm/gov-skeleton.entry.js +2 -2
  276. package/dist/esm/gov-stepper-item.entry.js +1 -1
  277. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  278. package/dist/esm/gov-tabs.entry.js +2 -2
  279. package/dist/esm/gov-wizard-item.entry.js +110 -0
  280. package/dist/esm/gov-wizard-item.entry.js.map +1 -0
  281. package/dist/esm/{gov-wizzard.entry.js → gov-wizard.entry.js} +13 -13
  282. package/dist/esm/gov-wizard.entry.js.map +1 -0
  283. package/dist/esm/index-ae3c50f1.js +4 -4
  284. package/dist/esm/loader.js +1 -1
  285. package/dist/esm/{wcag-afdfdddb.js → wcag-062e7ca9.js} +2 -2
  286. package/dist/esm/{wcag-afdfdddb.js.map → wcag-062e7ca9.js.map} +1 -1
  287. package/dist/esm/{win-7a1a8ac8.js → win-0a50f66e.js} +4 -2
  288. package/dist/esm/win-0a50f66e.js.map +1 -0
  289. package/dist/hydrate/index.js +106 -92
  290. package/dist/stencil.config.js +3 -3
  291. package/dist/stencil.config.js.map +1 -1
  292. package/dist/types/components/gov-app/gov-app.d.ts +1 -1
  293. package/dist/types/components/gov-icon/gov-icon.d.ts +1 -1
  294. package/dist/types/components/{gov-wizzard → gov-wizard}/constants.d.ts +2 -2
  295. package/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
  296. package/dist/types/components/{gov-wizzard/gov-wizzard-item.d.ts → gov-wizard/gov-wizard-item.d.ts} +13 -13
  297. package/dist/types/components/{gov-wizzard/gov-wizzard-item.types.d.ts → gov-wizard/gov-wizard-item.types.d.ts} +1 -1
  298. package/dist/types/components/{gov-wizzard/gov-wizzard.d.ts → gov-wizard/gov-wizard.d.ts} +7 -7
  299. package/dist/types/components.d.ts +50 -50
  300. package/dist/types/helpers/Dom/win.d.ts +2 -0
  301. package/dist/types/pages/Wizard.d.ts +3 -0
  302. package/package.json +2 -2
  303. package/dist/cjs/constants-21559414.js +0 -29
  304. package/dist/cjs/constants-21559414.js.map +0 -1
  305. package/dist/cjs/gov-wizzard-item.cjs.entry.js +0 -114
  306. package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +0 -1
  307. package/dist/cjs/gov-wizzard.cjs.entry.js.map +0 -1
  308. package/dist/cjs/win-53f637d4.js.map +0 -1
  309. package/dist/collection/components/gov-wizzard/constants.js +0 -20
  310. package/dist/collection/components/gov-wizzard/constants.js.map +0 -1
  311. package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +0 -471
  312. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js +0 -2
  313. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js.map +0 -1
  314. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +0 -1
  315. package/dist/collection/components/gov-wizzard/gov-wizzard-item.types.js +0 -2
  316. package/dist/collection/components/gov-wizzard/gov-wizzard-item.types.js.map +0 -1
  317. package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +0 -1
  318. package/dist/collection/pages/Wizzard.js.map +0 -1
  319. package/dist/components/gov-wizzard-item.js +0 -2
  320. package/dist/components/gov-wizzard-item.js.map +0 -1
  321. package/dist/components/gov-wizzard.js +0 -2
  322. package/dist/components/gov-wizzard.js.map +0 -1
  323. package/dist/components/p-0f5e2b0a.js +0 -2
  324. package/dist/components/p-34152b51.js +0 -2
  325. package/dist/components/p-34152b51.js.map +0 -1
  326. package/dist/components/p-64ced668.js +0 -2
  327. package/dist/components/p-64ced668.js.map +0 -1
  328. package/dist/components/p-c3f560b9.js +0 -2
  329. package/dist/components/p-c3f560b9.js.map +0 -1
  330. package/dist/components/p-cf493ba0.js.map +0 -1
  331. package/dist/core/p-05dc3d89.entry.js +0 -2
  332. package/dist/core/p-05dc3d89.entry.js.map +0 -1
  333. package/dist/core/p-0f5e2b0a.js +0 -2
  334. package/dist/core/p-16c3a489.entry.js +0 -2
  335. package/dist/core/p-16c3a489.entry.js.map +0 -1
  336. package/dist/core/p-2c7af892.entry.js +0 -2
  337. package/dist/core/p-2c7af892.entry.js.map +0 -1
  338. package/dist/core/p-34152b51.js +0 -2
  339. package/dist/core/p-34152b51.js.map +0 -1
  340. package/dist/core/p-3bc977e2.entry.js.map +0 -1
  341. package/dist/core/p-5195fd36.entry.js +0 -2
  342. package/dist/core/p-5195fd36.entry.js.map +0 -1
  343. package/dist/core/p-64ced668.js +0 -2
  344. package/dist/core/p-64ced668.js.map +0 -1
  345. package/dist/core/p-9751af2e.entry.js +0 -2
  346. package/dist/core/p-9751af2e.entry.js.map +0 -1
  347. package/dist/core/p-ac94d242.entry.js +0 -2
  348. package/dist/core/p-ac94d242.entry.js.map +0 -1
  349. package/dist/core/p-d2729599.entry.js +0 -2
  350. package/dist/core/p-d2729599.entry.js.map +0 -1
  351. package/dist/esm/constants-bf5a583f.js +0 -24
  352. package/dist/esm/constants-bf5a583f.js.map +0 -1
  353. package/dist/esm/gov-wizzard-item.entry.js +0 -110
  354. package/dist/esm/gov-wizzard-item.entry.js.map +0 -1
  355. package/dist/esm/gov-wizzard.entry.js.map +0 -1
  356. package/dist/esm/win-7a1a8ac8.js.map +0 -1
  357. package/dist/types/components/gov-wizzard/gov-wizzard-item.d.d.ts +0 -4
  358. package/dist/types/pages/Wizzard.d.ts +0 -3
  359. /package/dist/components/{p-db22f9ce.js.map → p-3a46b683.js.map} +0 -0
  360. /package/dist/components/{p-386409dc.js.map → p-3e8a9e92.js.map} +0 -0
  361. /package/dist/components/{p-7bea2390.js.map → p-560846c7.js.map} +0 -0
  362. /package/dist/components/{p-ccc44ac1.js.map → p-8da17139.js.map} +0 -0
  363. /package/dist/components/{p-0f5e2b0a.js.map → p-ae894a40.js.map} +0 -0
  364. /package/dist/components/{p-a20f1683.js.map → p-b9388dc1.js.map} +0 -0
  365. /package/dist/components/{p-c0e49b09.js.map → p-d6ab5b8a.js.map} +0 -0
  366. /package/dist/components/{p-103c7bd5.js.map → p-e9a01d67.js.map} +0 -0
  367. /package/dist/core/{p-41f72892.entry.js.map → p-0c1697ce.entry.js.map} +0 -0
  368. /package/dist/core/{p-9a3e3ace.entry.js.map → p-18ef9623.entry.js.map} +0 -0
  369. /package/dist/core/{p-eda868dc.entry.js.map → p-22a86871.entry.js.map} +0 -0
  370. /package/dist/core/{p-722218fd.entry.js.map → p-23385300.entry.js.map} +0 -0
  371. /package/dist/core/{p-48349167.entry.js.map → p-33bf5974.entry.js.map} +0 -0
  372. /package/dist/core/{p-9f541022.entry.js.map → p-3d0ab343.entry.js.map} +0 -0
  373. /package/dist/core/{p-e0c04c5f.entry.js.map → p-41e88980.entry.js.map} +0 -0
  374. /package/dist/core/{p-5a855a15.entry.js.map → p-42c1935f.entry.js.map} +0 -0
  375. /package/dist/core/{p-de3dc437.entry.js.map → p-48cfc1c6.entry.js.map} +0 -0
  376. /package/dist/core/{p-9ad54c30.entry.js.map → p-70140f70.entry.js.map} +0 -0
  377. /package/dist/core/{p-a68547b1.entry.js.map → p-81643870.entry.js.map} +0 -0
  378. /package/dist/core/{p-11be550d.entry.js.map → p-82f64673.entry.js.map} +0 -0
  379. /package/dist/core/{p-fa71fb92.entry.js.map → p-9d72d80b.entry.js.map} +0 -0
  380. /package/dist/core/{p-1ae47d62.entry.js.map → p-a5d00433.entry.js.map} +0 -0
  381. /package/dist/core/{p-0f5e2b0a.js.map → p-ae894a40.js.map} +0 -0
  382. /package/dist/core/{p-7d680665.entry.js.map → p-bfb4d904.entry.js.map} +0 -0
  383. /package/dist/core/{p-3d720d54.entry.js.map → p-dbb46457.entry.js.map} +0 -0
  384. /package/dist/core/{p-b5a560d2.entry.js.map → p-dfc080f2.entry.js.map} +0 -0
  385. /package/dist/core/{p-e1b3c361.entry.js.map → p-e769f3ee.entry.js.map} +0 -0
  386. /package/dist/core/{p-d921bd4b.entry.js.map → p-f0a5847a.entry.js.map} +0 -0
  387. /package/dist/core/{p-5150efee.entry.js.map → p-fc853777.entry.js.map} +0 -0
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83edd4fe.js');
6
- const wcag = require('./wcag-b0321f09.js');
7
- const win = require('./win-53f637d4.js');
6
+ const wcag = require('./wcag-d7912060.js');
7
+ const win = require('./win-0427c131.js');
8
8
  const utils = require('./utils-c9b1bba3.js');
9
9
  const template = require('./template-e1c4ff78.js');
10
10
  const constants = require('./constants-caad94b4.js');
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83edd4fe.js');
6
- const wcag = require('./wcag-b0321f09.js');
7
- const win = require('./win-53f637d4.js');
6
+ const wcag = require('./wcag-d7912060.js');
7
+ const win = require('./win-0427c131.js');
8
8
  const utils = require('./utils-c9b1bba3.js');
9
9
  const template = require('./template-e1c4ff78.js');
10
10
  require('./gov.log-0c9dca27.js');
@@ -57,7 +57,7 @@ const GovBadge = class {
57
57
  BadgeClass.root,
58
58
  this.h.hasSlot("right") ? BadgeClass.hasRight : undefined,
59
59
  this.h.hasSlot("left") ? BadgeClass.hasLeft : undefined,
60
- ]), disabled: this.disabled, href: this.href, variant: this.variant, size: this.size, inverse: this.inverse, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON }, index.h(Tag, { class: "element", href: this.href, target: this.target, "aria-label": this.wcagLabel, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), type: nativeType }, this.h.hasSlot("left") && index.h("slot", { name: "left" }), this.h.hasSlot("left-icon") && index.h("slot", { name: "left-icon" }), index.h("slot", null), this.h.hasSlot("right-icon") && index.h("slot", { name: "right-icon" }), this.h.hasSlot("right") && index.h("slot", { name: "right" }))));
60
+ ]), disabled: this.disabled, href: this.href, variant: this.variant, type: this.inverse ? undefined : "solid", size: this.size, inverse: this.inverse, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON }, index.h(Tag, { class: "element", href: this.href, target: this.target, "aria-label": this.wcagLabel, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), type: nativeType }, this.h.hasSlot("left") && index.h("slot", { name: "left" }), this.h.hasSlot("left-icon") && index.h("slot", { name: "left-icon" }), index.h("slot", null), this.h.hasSlot("right-icon") && index.h("slot", { name: "right-icon" }), this.h.hasSlot("right") && index.h("slot", { name: "right" }))));
61
61
  }
62
62
  onClickHandler(e) {
63
63
  e.stopPropagation();
@@ -1 +1 @@
1
- {"file":"gov-badge.entry.cjs.js","mappings":";;;;;;;;;;;;;AAEA,IAAY,UAIX;AAJD,WAAY,UAAU;EACrB,qBAAO,CAAA;EACP,2BAAa,CAAA;EACb,+B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IAAI,CAAC,CAAC,CAAC,CAAA;KACrB;GACD;;;;EAMD,MAAM,aAAa;IAClB,OAAO,IAAI,CAAC,UAAU,CAAA;GACtB;;;;;;;;;;;","names":["ButtonSizes","ButtonVariants","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-badge/constants.ts","../../../packages/core/src/components/gov-badge/gov-badge.scss?tag=gov-badge","../../../packages/core/src/components/gov-badge/gov-badge.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\n\nexport enum NativeType {\n\tA = 'a',\n\tSPAN = 'span',\n\tBUTTON = 'button',\n}\n\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\n\nexport const BadgeClass = {\n\troot: 'gov-badge',\n\tinner: 'gov-badge__inner',\n\thasRight: 'gov-badge--has-right',\n\thasLeft: 'gov-badge--has-left',\n}\n","/*\n * Badge\n */\n\n// Shared definitions - button & badge\n@import \"../gov-button/default/gov-button-core\";\n\n.gov-badge {\n\t@extend %button-core;\n\tdisplay: inline-flex;\n\ta .gov-icon {\n\t\tmargin: 0;\n\t}\n\t.element {\n\t\tpadding: rem-calc(4 10);\n\t\tfont-family: $font-family-primary;\n\t\tfont-weight: 400;\n\t\tletter-spacing: initial;\n\t}\n\t.gov-button {\n\t\t.element {\n\t\t\tborder: none;\n\t\t}\n\t}\n\t&--has-right > .element {\n\t\tpadding-top: 0 !important;\n\t\tpadding-right: 0 !important;\n\t\tpadding-bottom: 0 !important;\n\t}\n\n\t&--has-left > .element {\n\t\tpadding-top: 0 !important;\n\t\tpadding-bottom: 0 !important;\n\t\tpadding-left: 0 !important;\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $button-sizes {\n\t\t$radius: calc(#{get(\"min-height\", $definitions)} * 0.5);\n\t\t&[size=\"#{$size}\"] {\n\t\t\t.element {\n\t\t\t\tborder-radius: $radius;\n\t\t\t}\n\n\t\t\t// HOVERS\n\t\t\t&[hoverable] .element {\n\t\t\t\t@include focus-outline($radius, $outline-offset);\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $types in $badge-inverse-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\t.element {\n\t\t\t\t\tborder-width: rem-calc(1);\n\t\t\t\t\tborder-color: deep-map-get($badge-inverse-variants, $variant, \"border-color\");\n\t\t\t\t\tbackground-color: deep-map-get($badge-inverse-variants, $variant, \"bg\");\n\t\t\t\t\tcolor: deep-map-get($badge-inverse-variants, $variant, \"color\");\n\t\t\t\t\t@include hover() {\n\t\t\t\t\t\tborder-color: deep-map-get($badge-inverse-variants, $variant, \"border-color-hover\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { BadgeClass, NativeType, NativeTypesType } from \"./constants\"\nimport {\n\tButtonSizes,\n\tButtonSizesType,\n\tButtonVariants,\n\tButtonVariantType,\n} from \"../gov-button/default/constants\"\n\n@Component({\n\ttag: \"gov-badge\",\n\tstyleUrl: \"gov-badge.scss\",\n})\nexport class GovBadge {\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovBadgeElement\n\n\t/**\n\t * Determine if component should have inverse colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Makes the badge component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\t/**\n\t * Badge’s size.\n\t */\n\t@Prop() readonly size: ButtonSizesType = ButtonSizes._M\n\t/**\n\t * Used to change the HTML tag in the badge\n\t */\n\t@Prop() readonly tag: NativeTypesType = \"span\"\n\t/**\n\t * Style variation of the badge.\n\t */\n\t@Prop() readonly variant: ButtonVariantType = ButtonVariants.PRIMARY\n\t/**\n\t * Adds accessible label for the button that is only shown for screen readers.\n\t * Typically, this label text replaces the visible text on the button for users who use assistive technology.\n\t */\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\n\t/**\n\t * Emitted when the button click.\n\t */\n\t@Event({ eventName: \"gov-click\" }) govClick: EventEmitter<PointerEvent>\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(ButtonVariants, newValue, BadgeClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, BadgeClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? NativeType.A : this.tag\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([\n\t\t\t\t\tBadgeClass.root,\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? BadgeClass.hasRight : undefined,\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? BadgeClass.hasLeft : undefined,\n\t\t\t\t])}\n\t\t\t\tdisabled={this.disabled}\n\t\t\t\thref={this.href}\n\t\t\t\tvariant={this.variant}\n\t\t\t\tsize={this.size}\n\t\t\t\tinverse={this.inverse}\n\t\t\t\thoverable={Tag == NativeType.A || Tag == NativeType.BUTTON}\n\t\t\t>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\taria-label={this.wcagLabel}\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\ttype={nativeType}>\n\t\t\t\t\t{this.h.hasSlot(\"left\") && <slot name=\"left\"></slot>}\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t<slot />\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && <slot name=\"right-icon\"></slot>}\n\t\t\t\t\t{this.h.hasSlot(\"right\") && <slot name=\"right\"></slot>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false && this.tag === NativeType.BUTTON) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-badge.entry.cjs.js","mappings":";;;;;;;;;;;;;AAEA,IAAY,UAIX;AAJD,WAAY,UAAU;EACrB,qBAAO,CAAA;EACP,2BAAa,CAAA;EACb,+BAAiB,CAAA;AAClB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAIM,MAAM,UAAU,GAAG;EACzB,IAAI,EAAE,WAAW;EACjB,KAAK,EAAE,kBAAkB;EACzB,QAAQ,EAAE,sBAAsB;EAChC,OAAO,EAAE,qBAAqB;CAC9B;;ACfD,MAAM,WAAW,GAAG,8o4EAA8o4E;;MCWrp4E,QAAQ;EAIpB;;;mBASoC,KAAK;oBAKJ,KAAK;;;gBAcDA,qBAAW,CAAC,EAAE;eAIf,MAAM;mBAIAC,wBAAc,CAAC,OAAO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C,IAAI,GAAG,IAAI,UAAU,CAAC,MAAM,IAE1DD,QAAC,GAAG,IACH,KAAK,EAAC,SAAS,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,gBACP,IAAI,CAAC,SAAS,EAC1B,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,UAAU,GAAG,EAA2D,CAAC,EAC1F,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EACvC,IAAI,EAAE,UAAU,IACf,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAIA,kBAAM,IAAI,EAAC,MAAM,GAAQ,EACnD,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAIA,kBAAM,IAAI,EAAC,WAAW,GAAQ,EAC9DA,qBAAQ,EACP,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAIA,kBAAM,IAAI,EAAC,YAAY,GAAQ,EAC/D,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,IAAIA,kBAAM,IAAI,EAAC,OAAO,GAAQ,CACjD,CACA,EACP;GACD;EAEO,cAAc,CAAC,CAAe;IACrC,CAAC,CAAC,eAAe,EAAE,CAAA;IACnB,IAAI,IAAI,CAAC,QAAQ,KAAK,KAAK,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,MAAM,EAAE;MAC9D,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACrB;GACD;;;;EAMD,MAAM,aAAa;IAClB,OAAO,IAAI,CAAC,UAAU,CAAA;GACtB;;;;;;;;;;;","names":["ButtonSizes","ButtonVariants","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-badge/constants.ts","../../../packages/core/src/components/gov-badge/gov-badge.scss?tag=gov-badge","../../../packages/core/src/components/gov-badge/gov-badge.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\n\nexport enum NativeType {\n\tA = 'a',\n\tSPAN = 'span',\n\tBUTTON = 'button',\n}\n\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\n\nexport const BadgeClass = {\n\troot: 'gov-badge',\n\tinner: 'gov-badge__inner',\n\thasRight: 'gov-badge--has-right',\n\thasLeft: 'gov-badge--has-left',\n}\n","/*\n * Badge\n */\n\n// Shared definitions - button & badge\n@import \"../gov-button/default/gov-button-core\";\n\n.gov-badge {\n\t@extend %button-core;\n\tdisplay: inline-flex;\n\ta .gov-icon {\n\t\tmargin: 0;\n\t}\n\t.element {\n\t\tpadding: rem-calc(4 10);\n\t\tfont-family: $font-family-primary;\n\t\tfont-weight: 400;\n\t\tletter-spacing: initial;\n\t}\n\t.gov-button {\n\t\t.element {\n\t\t\tborder: none;\n\t\t}\n\t}\n\t&--has-right > .element {\n\t\tpadding-top: 0 !important;\n\t\tpadding-right: 0 !important;\n\t\tpadding-bottom: 0 !important;\n\t}\n\n\t&--has-left > .element {\n\t\tpadding-top: 0 !important;\n\t\tpadding-bottom: 0 !important;\n\t\tpadding-left: 0 !important;\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $button-sizes {\n\t\t$radius: calc(#{get(\"min-height\", $definitions)} * 0.5);\n\t\t&[size=\"#{$size}\"] {\n\t\t\t.element {\n\t\t\t\tborder-radius: $radius;\n\t\t\t}\n\n\t\t\t// HOVERS\n\t\t\t&[hoverable] .element {\n\t\t\t\t@include focus-outline($radius, $outline-offset);\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $types in $badge-inverse-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\t.element {\n\t\t\t\t\tborder-width: rem-calc(1);\n\t\t\t\t\tborder-color: deep-map-get($badge-inverse-variants, $variant, \"border-color\");\n\t\t\t\t\tbackground-color: deep-map-get($badge-inverse-variants, $variant, \"bg\");\n\t\t\t\t\tcolor: deep-map-get($badge-inverse-variants, $variant, \"color\");\n\t\t\t\t\t@include hover() {\n\t\t\t\t\t\tborder-color: deep-map-get($badge-inverse-variants, $variant, \"border-color-hover\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { BadgeClass, NativeType, NativeTypesType } from \"./constants\"\nimport { ButtonSizes, ButtonSizesType, ButtonVariants, ButtonVariantType } from \"../gov-button/default/constants\"\n\n@Component({\n\ttag: \"gov-badge\",\n\tstyleUrl: \"gov-badge.scss\",\n})\nexport class GovBadge {\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovBadgeElement\n\n\t/**\n\t * Determine if component should have inverse colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Makes the badge component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\t/**\n\t * Badge’s size.\n\t */\n\t@Prop() readonly size: ButtonSizesType = ButtonSizes._M\n\t/**\n\t * Used to change the HTML tag in the badge\n\t */\n\t@Prop() readonly tag: NativeTypesType = \"span\"\n\t/**\n\t * Style variation of the badge.\n\t */\n\t@Prop() readonly variant: ButtonVariantType = ButtonVariants.PRIMARY\n\t/**\n\t * Adds accessible label for the button that is only shown for screen readers.\n\t * Typically, this label text replaces the visible text on the button for users who use assistive technology.\n\t */\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\n\t/**\n\t * Emitted when the button click.\n\t */\n\t@Event({ eventName: \"gov-click\" }) govClick: EventEmitter<PointerEvent>\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(ButtonVariants, newValue, BadgeClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, BadgeClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateSize(this.size)\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? NativeType.A : this.tag\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([\n\t\t\t\t\tBadgeClass.root,\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? BadgeClass.hasRight : undefined,\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? BadgeClass.hasLeft : undefined,\n\t\t\t\t])}\n\t\t\t\tdisabled={this.disabled}\n\t\t\t\thref={this.href}\n\t\t\t\tvariant={this.variant}\n\t\t\t\ttype={this.inverse ? undefined : \"solid\"}\n\t\t\t\tsize={this.size}\n\t\t\t\tinverse={this.inverse}\n\t\t\t\thoverable={Tag == NativeType.A || Tag == NativeType.BUTTON}\n\t\t\t>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\taria-label={this.wcagLabel}\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\ttype={nativeType}>\n\t\t\t\t\t{this.h.hasSlot(\"left\") && <slot name=\"left\"></slot>}\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t<slot />\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && <slot name=\"right-icon\"></slot>}\n\t\t\t\t\t{this.h.hasSlot(\"right\") && <slot name=\"right\"></slot>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false && this.tag === NativeType.BUTTON) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\n\t}\n}\n"],"version":3}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83edd4fe.js');
6
- const wcag = require('./wcag-b0321f09.js');
7
- const win = require('./win-53f637d4.js');
6
+ const wcag = require('./wcag-d7912060.js');
7
+ const win = require('./win-0427c131.js');
8
8
  const utils = require('./utils-c9b1bba3.js');
9
9
  const template = require('./template-e1c4ff78.js');
10
10
  require('./gov.log-0c9dca27.js');
@@ -7,8 +7,8 @@ const props = require('./props-5f82e4c0.js');
7
7
  const constants = require('./constants-ff12205f.js');
8
8
  const template = require('./template-e1c4ff78.js');
9
9
  const sizes = require('./sizes-79872c2a.js');
10
- const wcag = require('./wcag-b0321f09.js');
11
- const win = require('./win-53f637d4.js');
10
+ const wcag = require('./wcag-d7912060.js');
11
+ const win = require('./win-0427c131.js');
12
12
  const utils = require('./utils-c9b1bba3.js');
13
13
  require('./gov.log-0c9dca27.js');
14
14
  require('./variants-f5ffeef3.js');
@@ -6,8 +6,8 @@ const index = require('./index-83edd4fe.js');
6
6
  const template = require('./template-e1c4ff78.js');
7
7
  const string_utils = require('./string.utils-0f08c48c.js');
8
8
  const gov_log = require('./gov.log-0c9dca27.js');
9
- const wcag = require('./wcag-b0321f09.js');
10
- const win = require('./win-53f637d4.js');
9
+ const wcag = require('./wcag-d7912060.js');
10
+ const win = require('./win-0427c131.js');
11
11
  const utils = require('./utils-c9b1bba3.js');
12
12
 
13
13
  const CardClass = {
@@ -7,8 +7,8 @@ const string_utils = require('./string.utils-0f08c48c.js');
7
7
  const props = require('./props-5f82e4c0.js');
8
8
  const form = require('./form-f68d13c6.js');
9
9
  const template = require('./template-e1c4ff78.js');
10
- const wcag = require('./wcag-b0321f09.js');
11
- const win = require('./win-53f637d4.js');
10
+ const wcag = require('./wcag-d7912060.js');
11
+ const win = require('./win-0427c131.js');
12
12
  const utils = require('./utils-c9b1bba3.js');
13
13
  const Fragment = require('./Fragment-52846f79.js');
14
14
  require('./gov.log-0c9dca27.js');
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-83edd4fe.js');
6
6
  const string_utils = require('./string.utils-0f08c48c.js');
7
7
  const template = require('./template-e1c4ff78.js');
8
- const wcag = require('./wcag-b0321f09.js');
9
- const win = require('./win-53f637d4.js');
8
+ const wcag = require('./wcag-d7912060.js');
9
+ const win = require('./win-0427c131.js');
10
10
  const utils = require('./utils-c9b1bba3.js');
11
11
  const form = require('./form-f68d13c6.js');
12
12
  require('./gov.log-0c9dca27.js');
@@ -19,7 +19,7 @@ const FormGroupClass = {
19
19
  root: 'gov-form-group',
20
20
  };
21
21
 
22
- const govFormGroupCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-group{position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}.gov-form-group .gov-form-label__label{margin:0}.gov-form-group[gap=\"2xs\"]{gap:0.25rem}.gov-form-group[gap=xs]{gap:0.5rem}.gov-form-group[gap=s]{gap:0.75rem}.gov-form-group[gap=m]{gap:1rem}.gov-form-group[gap=l]{gap:1.25rem}.gov-form-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}.gov-form-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}";
22
+ const govFormGroupCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-group{position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}.gov-form-group .gov-form-label__label{margin:0}.gov-form-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}.gov-form-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}.gov-form-group[gap=\"2xs\"]{gap:0.25rem}.gov-form-group[gap=xs]{gap:0.5rem}.gov-form-group[gap=s]{gap:0.75rem}.gov-form-group[gap=m]{gap:1rem}.gov-form-group[gap=l]{gap:1.25rem}";
23
23
 
24
24
  const GovFormGroup = class {
25
25
  constructor(hostRef) {
@@ -1 +1 @@
1
- {"file":"gov-form-group.entry.cjs.js","mappings":";;;;;;;;;;;AAIO,MAAM,cAAc,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAG5E,IAAY,oBAGX;AAHD,WAAY,oBAAoB;EAC/B,iDAAyB,CAAA;EACzB,6CAAqB,CAAA;AACtB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;AAGM,MAAM,cAAc,GAAG;EAC7B,IAAI,EAAE,gBAAgB;CACtB;;ACfD,MAAM,eAAe,GAAG,6zBAA6zB;;MCUx0B,YAAY;EAGxB;;eAQ4C,SAAS;uBAIK,UAAU;IAXnE,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAaD,WAAW,CAAC,QAAgB;IAC3BC,kBAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,CAAA;GAC3D;EAED,iBAAiB;IAChB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;GAC1B;EAED,MAAM;IACL,QACCC,QAACC,UAAI,IAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAC9DD,qBAAa,CACP,EACP;GACD;;;;;;;;;;","names":["pick","Sizes","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-form/group/constants.ts","../../../packages/core/src/components/gov-form/group/gov-form-group.scss?tag=gov-form-group","../../../packages/core/src/components/gov-form/group/gov-form-group.tsx"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\nimport { Sizes } from \"../../../core/constants/sizes\"\nimport { ValueOf } from \"../../../types/interfaces\"\n\nexport const FormGroupSizes = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L'])\nexport type FormGroupSizesType = `${ValueOf<typeof FormGroupSizes>}`\n\nexport enum FormGroupOrientation {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\nexport type FormGroupOrientationType = `${ValueOf<typeof FormGroupOrientation>}`\n\nexport const FormGroupClass = {\n\troot: 'gov-form-group',\n}\n","$class: \".gov-form-group\";\n\n#{$class} {\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t// VARIANTS\n\t@each $gap, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$gap}\"] {\n\t\t\tgap: get($gap, $sizes);\n\t\t}\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { FormGroupClass, FormGroupSizes, FormGroupSizesType, FormGroupOrientationType } from \"./constants\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govHost } from \"../../../helpers/Dom/template\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\n\n@Component({\n\ttag: \"gov-form-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-form-group.entry.cjs.js","mappings":";;;;;;;;;;;AAIO,MAAM,cAAc,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAG5E,IAAY,oBAGX;AAHD,WAAY,oBAAoB;EAC/B,iDAAyB,CAAA;EACzB,6CAAqB,CAAA;AACtB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;AAGM,MAAM,cAAc,GAAG;EAC7B,IAAI,EAAE,gBAAgB;CACtB;;ACfD,MAAM,eAAe,GAAG,6zBAA6zB;;MCUx0B,YAAY;EAGxB;;eAQ4C,SAAS;uBAIK,UAAU;IAXnE,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAaD,WAAW,CAAC,QAAgB;IAC3BC,kBAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,CAAA;GAC3D;EAED,iBAAiB;IAChB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;GAC1B;EAED,MAAM;IACL,QACCC,QAACC,UAAI,IAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAC9DD,qBAAa,CACP,EACP;GACD;;;;;;;;;;","names":["pick","Sizes","govHost","validateProp","h","Host"],"sources":["../../../packages/core/src/components/gov-form/group/constants.ts","../../../packages/core/src/components/gov-form/group/gov-form-group.scss?tag=gov-form-group","../../../packages/core/src/components/gov-form/group/gov-form-group.tsx"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\nimport { Sizes } from \"../../../core/constants/sizes\"\nimport { ValueOf } from \"../../../types/interfaces\"\n\nexport const FormGroupSizes = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L'])\nexport type FormGroupSizesType = `${ValueOf<typeof FormGroupSizes>}`\n\nexport enum FormGroupOrientation {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\nexport type FormGroupOrientationType = `${ValueOf<typeof FormGroupOrientation>}`\n\nexport const FormGroupClass = {\n\troot: 'gov-form-group',\n}\n","$class: \".gov-form-group\";\n\n#{$class} {\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@each $gap, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$gap}\"] {\n\t\t\tgap: get($gap, $sizes);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { FormGroupClass, FormGroupSizes, FormGroupSizesType, FormGroupOrientationType } from \"./constants\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govHost } from \"../../../helpers/Dom/template\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\n\n@Component({\n\ttag: \"gov-form-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-83edd4fe.js');
6
6
  const form = require('./form-f68d13c6.js');
7
7
  const template = require('./template-e1c4ff78.js');
8
- const win = require('./win-53f637d4.js');
8
+ const win = require('./win-0427c131.js');
9
9
  const props = require('./props-5f82e4c0.js');
10
- const wcag = require('./wcag-b0321f09.js');
10
+ const wcag = require('./wcag-d7912060.js');
11
11
  const string_utils = require('./string.utils-0f08c48c.js');
12
12
  const utils = require('./utils-c9b1bba3.js');
13
13
  require('./sizes-79872c2a.js');
@@ -6,8 +6,8 @@ const index = require('./index-83edd4fe.js');
6
6
  const template = require('./template-e1c4ff78.js');
7
7
  const form = require('./form-f68d13c6.js');
8
8
  const props = require('./props-5f82e4c0.js');
9
- const wcag = require('./wcag-b0321f09.js');
10
- const win = require('./win-53f637d4.js');
9
+ const wcag = require('./wcag-d7912060.js');
10
+ const win = require('./win-0427c131.js');
11
11
  const string_utils = require('./string.utils-0f08c48c.js');
12
12
  const utils = require('./utils-c9b1bba3.js');
13
13
  require('./sizes-79872c2a.js');
@@ -7,8 +7,8 @@ const string_utils = require('./string.utils-0f08c48c.js');
7
7
  const props = require('./props-5f82e4c0.js');
8
8
  const form = require('./form-f68d13c6.js');
9
9
  const template = require('./template-e1c4ff78.js');
10
- const wcag = require('./wcag-b0321f09.js');
11
- const win = require('./win-53f637d4.js');
10
+ const wcag = require('./wcag-d7912060.js');
11
+ const win = require('./win-0427c131.js');
12
12
  const utils = require('./utils-c9b1bba3.js');
13
13
  const Fragment = require('./Fragment-52846f79.js');
14
14
  require('./gov.log-0c9dca27.js');
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-83edd4fe.js');
6
6
  const form = require('./form-f68d13c6.js');
7
7
  const template = require('./template-e1c4ff78.js');
8
- const win = require('./win-53f637d4.js');
8
+ const win = require('./win-0427c131.js');
9
9
  const props = require('./props-5f82e4c0.js');
10
- const wcag = require('./wcag-b0321f09.js');
10
+ const wcag = require('./wcag-d7912060.js');
11
11
  const string_utils = require('./string.utils-0f08c48c.js');
12
12
  const utils = require('./utils-c9b1bba3.js');
13
13
  require('./sizes-79872c2a.js');
@@ -7,8 +7,8 @@ const string_utils = require('./string.utils-0f08c48c.js');
7
7
  const props = require('./props-5f82e4c0.js');
8
8
  const form = require('./form-f68d13c6.js');
9
9
  const template = require('./template-e1c4ff78.js');
10
- const wcag = require('./wcag-b0321f09.js');
11
- const win = require('./win-53f637d4.js');
10
+ const wcag = require('./wcag-d7912060.js');
11
+ const win = require('./win-0427c131.js');
12
12
  const utils = require('./utils-c9b1bba3.js');
13
13
  const Fragment = require('./Fragment-52846f79.js');
14
14
  require('./gov.log-0c9dca27.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83edd4fe.js');
6
- const win = require('./win-53f637d4.js');
6
+ const win = require('./win-0427c131.js');
7
7
  const template = require('./template-e1c4ff78.js');
8
8
  require('./utils-c9b1bba3.js');
9
9
 
@@ -18,7 +18,7 @@ const IconClass = {
18
18
  holder: 'gov-icon__holder',
19
19
  };
20
20
 
21
- const version = "0.0.53";
21
+ const version = "0.0.54";
22
22
 
23
23
  const dsVersion = () => {
24
24
  return version;
@@ -26,7 +26,7 @@ const dsVersion = () => {
26
26
 
27
27
  const iconCache = {};
28
28
  const requestCache = {};
29
- const isExternalUrl = (path) => path.startsWith('http://') || path.startsWith('https://');
29
+ const isExternalUrl = (path) => path.startsWith("http://") || path.startsWith("https://");
30
30
  const iconUrl = (path, name, type) => {
31
31
  if (isExternalUrl(path)) {
32
32
  return `${path}/${type}/${name}.svg?v=${dsVersion()}`;
@@ -34,11 +34,12 @@ const iconUrl = (path, name, type) => {
34
34
  return index.getAssetPath(`${path}/${type}/${name}.svg`) + `?v=${dsVersion()}`;
35
35
  };
36
36
  async function fetchIcon({ name, type }) {
37
- if (iconCache[name]) {
38
- return iconCache[name];
37
+ const cacheKey = type + "-" + name;
38
+ if (iconCache[cacheKey]) {
39
+ return iconCache[cacheKey];
39
40
  }
40
- if (!requestCache[name]) {
41
- requestCache[name] = fetch(iconUrl(win.iconsPath(), name, type)).then(resp => {
41
+ if (!requestCache[cacheKey]) {
42
+ requestCache[cacheKey] = fetch(iconUrl(win.iconsPath(), name, type)).then(resp => {
42
43
  if (resp.status === 200) {
43
44
  return resp.text();
44
45
  }
@@ -47,8 +48,8 @@ async function fetchIcon({ name, type }) {
47
48
  }
48
49
  });
49
50
  }
50
- const path = await requestCache[name];
51
- iconCache[name] = path;
51
+ const path = await requestCache[cacheKey];
52
+ iconCache[cacheKey] = path;
52
53
  return path;
53
54
  }
54
55
 
@@ -58,7 +59,7 @@ const GovIcon = class {
58
59
  constructor(hostRef) {
59
60
  index.registerInstance(this, hostRef);
60
61
  this.name = null;
61
- this.type = 'basic';
62
+ this.type = "basic";
62
63
  this.iconData = undefined;
63
64
  this.visible = false;
64
65
  this.error = false;
@@ -77,10 +78,16 @@ const GovIcon = class {
77
78
  }
78
79
  }
79
80
  connectedCallback() {
80
- this.waitUntilVisible(async () => {
81
+ if (win.iconsLazyLoad()) {
81
82
  this.visible = true;
82
- await this.loadIconPathData();
83
- });
83
+ this.loadIconPathData().finally();
84
+ }
85
+ else {
86
+ this.waitUntilVisible(async () => {
87
+ this.visible = true;
88
+ await this.loadIconPathData();
89
+ });
90
+ }
84
91
  }
85
92
  disconnectedCallback() {
86
93
  if (this.intersectionObserver) {
@@ -92,7 +99,7 @@ const GovIcon = class {
92
99
  await this.loadIconPathData();
93
100
  }
94
101
  waitUntilVisible(callback) {
95
- if (typeof window === 'undefined' || !window.IntersectionObserver) {
102
+ if (typeof window === "undefined" || !window.IntersectionObserver) {
96
103
  callback();
97
104
  return;
98
105
  }
@@ -106,7 +113,7 @@ const GovIcon = class {
106
113
  callback();
107
114
  }
108
115
  });
109
- }, { rootMargin: '50px' });
116
+ }, { rootMargin: "50px" });
110
117
  this.intersectionObserver.observe(this.host);
111
118
  }
112
119
  render() {
@@ -1 +1 @@
1
- {"file":"gov-icon.entry.cjs.js","mappings":";;;;;;;;;AAEA,IAAK,KAIJ;AAJD,WAAK,KAAK;EACT,wBAAe,CAAA;EACf,4BAAmB,CAAA;EACnB,4BAAmB,CAAA;AACpB,CAAC,EAJI,KAAK,KAAL,KAAK,QAIT;AAGM,MAAM,SAAS,GAAG;EACxB,IAAI,EAAE,UAAU;EAChB,MAAM,EA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AC,oBAAoB,EAAE;YAC7B,IAAI,CAAC,oBAAoB,CAAC,UAAU,EAAE,CAAA;YACtC,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAA;WAChC;UACD,QAAQ,EAAE,CAAA;SACV;OACD,CAAC,CAAA;KACF,EACD,EAAE,UAAU,EAAE,MAAM,EAAE,CACtB,CAAA;IACD,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC5C;EAED,MAAM;IACL,IAAI,IAAI,CAAC,KAAK,EAAE;MACf,OAAO,IAAI,CAAA;KACX;IACD,QACCC,QAACC,UAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAC1CD,kBAAM,KAAK,EAAE,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,QAAQ,GAAS,CAC1D,EACP;GACD;;;;;;;;;;;","names":["getAssetPath","iconsPath","govHost","h","Host"],"sources":["../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/utils/ds.utils.ts","../../../packages/core/src/utils/icon.utils.ts","../../../packages/core/src/components/gov-icon/gov-icon.scss?tag=gov-icon","../../../packages/core/src/components/gov-icon/gov-icon.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import { version } from '../../package.json'\n\nexport const dsVersion = (): string => {\n\treturn version\n}\n","import { getAssetPath } from '@stencil/core'\nimport { dsVersion } from './ds.utils'\nimport { iconsPath } from '../helpers/Dom/win'\n\nconst iconCache: { [key: string]: string } = {}\nconst requestCache: { [key: string]: Promise<string> } = {}\n\nconst isExternalUrl = (path: string) => path.startsWith('http://') || path.startsWith('https://')\nconst iconUrl = (path: string, name: string, type: string) => {\n\tif (isExternalUrl(path)) {\n\t\treturn `${path}/${type}/${name}.svg?v=${dsVersion()}`\n\t}\n\treturn getAssetPath(`${path}/${type}/${name}.svg`) + `?v=${dsVersion()}`\n}\n\nexport async function fetchIcon({ name, type }: { name: string; type: string }): Promise<string> {\n\tif (iconCache[name]) {\n\t\treturn iconCache[name]\n\t}\n\tif (!requestCache[name]) {\n\t\trequestCache[name] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\n\t\t\tif (resp.status === 200) {\n\t\t\t\treturn resp.text()\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Gov Icon doesn't exists\")\n\t\t\t}\n\t\t})\n\t}\n\tconst path = await requestCache[name]\n\ticonCache[name] = path\n\treturn path\n}\n","/*\n * Icon\n */\n\n$class: \".gov-icon\";\n\n#{$class} {\n\tdisplay: inline-flex;\n\t&__holder,\n\tsvg {\n\t\tdisplay: inline-flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n}\n","import { Build, Component, Element, h, Prop, State, Watch, Host } from '@stencil/core'\nimport { IconClass, Type } from './constants'\nimport { fetchIcon } from '../../utils/icon.utils'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\tassetsDirs: ['assets'],\n\tstyleUrl: 'gov-icon.scss',\n\ttag: 'gov-icon',\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Name of icon\n\t */\n\t@Prop() name: string = null\n\t/**\n\t * Type of icon\n\t */\n\t@Prop() type: Type = 'basic'\n\t@State() private iconData: string\n\t@State() private visible = false\n\t@State() private error = false\n\tprivate intersectionObserver: IntersectionObserver\n\n\t@Watch('name')\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst { name, visible, type } = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\ttry {\n\t\t\tthis.iconData = await fetchIcon({ name, type })\n\t\t} catch (e) {\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\tconnectedCallback(): void {\n\t\tthis.waitUntilVisible(async () => {\n\t\t\tthis.visible = true\n\t\t\tawait this.loadIconPathData()\n\t\t})\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === 'undefined' || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif(this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{ rootMargin: '50px' }\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)}>\n\t\t\t\t<span class={IconClass.holder} innerHTML={this.iconData}></span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-icon.entry.cjs.js","mappings":";;;;;;;;;AAEA,IAAK,KAIJ;AAJD,WAAK,KAAK;EACT,wBAAe,CAAA;EACf,4BAAmB,CAAA;EACnB,4BAAmB,CAAA;AACpB,CAAC,EAJI,KAAK,KAAL,KAAK,QAIT;AAGM,MAAM,SAAS,GAAG;EACxB,IAA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AAM,KAAK,WAAW,IAAI,CAAE,MAAc,CAAC,oBAAoB,EAAE;MAC/F,QAAQ,EAAE,CAAA;MACV,OAAM;KACN;IACD,IAAI,CAAC,oBAAoB,GAAG,IAAI,oBAAoB,CACnD,OAAO;MACN,OAAO,CAAC,OAAO,CAAC,KAAK;QACpB,IAAI,KAAK,CAAC,cAAc,EAAE;UACzB,IAAI,IAAI,CAAC,oBAAoB,EAAE;YAC9B,IAAI,CAAC,oBAAoB,CAAC,UAAU,EAAE,CAAA;YACtC,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAA;WAChC;UACD,QAAQ,EAAE,CAAA;SACV;OACD,CAAC,CAAA;KACF,EACD,EAAE,UAAU,EAAE,MAAM,EAAE,CACtB,CAAA;IACD,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC5C;EAED,MAAM;IACL,IAAI,IAAI,CAAC,KAAK,EAAE;MACf,OAAO,IAAI,CAAA;KACX;IACD,QACCC,QAACC,UAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAC1CD,kBAAM,KAAK,EAAE,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,QAAQ,GAAS,CAC1D,EACP;GACD;;;;;;;;;;;","names":["getAssetPath","iconsPath","govHost","iconsLazyLoad","h","Host"],"sources":["../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/utils/ds.utils.ts","../../../packages/core/src/utils/icon.utils.ts","../../../packages/core/src/components/gov-icon/gov-icon.scss?tag=gov-icon","../../../packages/core/src/components/gov-icon/gov-icon.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import { version } from '../../package.json'\n\nexport const dsVersion = (): string => {\n\treturn version\n}\n","import { getAssetPath } from \"@stencil/core\"\nimport { dsVersion } from \"./ds.utils\"\nimport { iconsPath } from \"../helpers/Dom/win\"\n\nconst iconCache: { [key: string]: string } = {}\nconst requestCache: { [key: string]: Promise<string> } = {}\n\nconst isExternalUrl = (path: string) => path.startsWith(\"http://\") || path.startsWith(\"https://\")\nconst iconUrl = (path: string, name: string, type: string) => {\n\tif (isExternalUrl(path)) {\n\t\treturn `${path}/${type}/${name}.svg?v=${dsVersion()}`\n\t}\n\treturn getAssetPath(`${path}/${type}/${name}.svg`) + `?v=${dsVersion()}`\n}\n\nexport async function fetchIcon({ name, type }: { name: string; type: string }): Promise<string> {\n\tconst cacheKey = type + \"-\" + name\n\tif (iconCache[cacheKey]) {\n\t\treturn iconCache[cacheKey]\n\t}\n\tif (!requestCache[cacheKey]) {\n\t\trequestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\n\t\t\tif (resp.status === 200) {\n\t\t\t\treturn resp.text()\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Gov Icon doesn't exists\")\n\t\t\t}\n\t\t})\n\t}\n\tconst path = await requestCache[cacheKey]\n\ticonCache[cacheKey] = path\n\treturn path\n}\n","/*\n * Icon\n */\n\n$class: \".gov-icon\";\n\n#{$class} {\n\tdisplay: inline-flex;\n\t&__holder,\n\tsvg {\n\t\tdisplay: inline-flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n}\n","import { Build, Component, Element, h, Host, Prop, State, Watch } from \"@stencil/core\"\nimport { IconClass, Type } from \"./constants\"\nimport { fetchIcon } from \"../../utils/icon.utils\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { iconsLazyLoad } from \"../../helpers/Dom/win\"\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\tstyleUrl: \"gov-icon.scss\",\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Name of icon\n\t */\n\t@Prop() name: string = null\n\t/**\n\t * Type of icon\n\t */\n\t@Prop() type: Type = \"basic\"\n\t@State() private iconData: string\n\t@State() private visible = false\n\t@State() private error = false\n\tprivate intersectionObserver: IntersectionObserver\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst { name, visible, type } = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\ttry {\n\t\t\tthis.iconData = await fetchIcon({ name, type })\n\t\t} catch (e) {\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\tconnectedCallback(): void {\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{ rootMargin: \"50px\" },\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)}>\n\t\t\t\t<span class={IconClass.holder} innerHTML={this.iconData}></span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83edd4fe.js');
6
6
  const template = require('./template-e1c4ff78.js');
7
- const win = require('./win-53f637d4.js');
7
+ const win = require('./win-0427c131.js');
8
8
  const gov_log = require('./gov.log-0c9dca27.js');
9
- const wcag = require('./wcag-b0321f09.js');
9
+ const wcag = require('./wcag-d7912060.js');
10
10
  const string_utils = require('./string.utils-0f08c48c.js');
11
11
  const utils = require('./utils-c9b1bba3.js');
12
12
  const constants = require('./constants-66cb0615.js');
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83edd4fe.js');
6
6
  const constants = require('./constants-2b1c31b8.js');
7
- const wcag = require('./wcag-b0321f09.js');
8
- const win = require('./win-53f637d4.js');
7
+ const wcag = require('./wcag-d7912060.js');
8
+ const win = require('./win-0427c131.js');
9
9
  const utils = require('./utils-c9b1bba3.js');
10
10
  require('./gov.log-0c9dca27.js');
11
11
  require('./string.utils-0f08c48c.js');
@@ -9,8 +9,8 @@ const sizes = require('./sizes-79872c2a.js');
9
9
  const variants = require('./variants-f5ffeef3.js');
10
10
  const utils = require('./utils-c9b1bba3.js');
11
11
  const template = require('./template-e1c4ff78.js');
12
- const wcag = require('./wcag-b0321f09.js');
13
- const win = require('./win-53f637d4.js');
12
+ const wcag = require('./wcag-d7912060.js');
13
+ const win = require('./win-0427c131.js');
14
14
  const string_utils = require('./string.utils-0f08c48c.js');
15
15
  require('./gov.log-0c9dca27.js');
16
16
 
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83edd4fe.js');
6
6
  const string_utils = require('./string.utils-0f08c48c.js');
7
- const wcag = require('./wcag-b0321f09.js');
7
+ const wcag = require('./wcag-d7912060.js');
8
8
  const constants = require('./constants-66cb0615.js');
9
- const win = require('./win-53f637d4.js');
9
+ const win = require('./win-0427c131.js');
10
10
  const utils = require('./utils-c9b1bba3.js');
11
11
  const template = require('./template-e1c4ff78.js');
12
12
  const gov_log = require('./gov.log-0c9dca27.js');
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83edd4fe.js');
6
6
  const constants = require('./constants-0488d137.js');
7
- const wcag = require('./wcag-b0321f09.js');
8
- const win = require('./win-53f637d4.js');
7
+ const wcag = require('./wcag-d7912060.js');
8
+ const win = require('./win-0427c131.js');
9
9
  const utils = require('./utils-c9b1bba3.js');
10
10
  const template = require('./template-e1c4ff78.js');
11
11
  require('./gov.log-0c9dca27.js');
@@ -7,8 +7,8 @@ const utils = require('./utils-c9b1bba3.js');
7
7
  const variants = require('./variants-f5ffeef3.js');
8
8
  const template = require('./template-e1c4ff78.js');
9
9
  const props = require('./props-5f82e4c0.js');
10
- const win = require('./win-53f637d4.js');
11
- const wcag = require('./wcag-b0321f09.js');
10
+ const win = require('./win-0427c131.js');
11
+ const wcag = require('./wcag-d7912060.js');
12
12
  require('./gov.log-0c9dca27.js');
13
13
  require('./string.utils-0f08c48c.js');
14
14
 
@@ -12,7 +12,7 @@ require('./variants-f5ffeef3.js');
12
12
  require('./sizes-79872c2a.js');
13
13
  require('./utils-c9b1bba3.js');
14
14
 
15
- const govStepperItemCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-stepper-item{position:relative;display:block;width:100%}.gov-stepper-item__header{position:relative;width:100%}.gov-stepper-item__arrow{flex:0 0 auto;width:0.75rem;height:0.75rem}.gov-stepper-item__title{margin:0;padding:0;font-family:var(--gov-font-family, \"Roboto\", sans-serif);font-weight:400;box-sizing:border-box;display:flex;gap:1rem;align-items:baseline}.gov-stepper-item__prefix{display:flex;flex:0 0 auto;justify-content:center;align-items:center;border-radius:50%;text-align:center}.gov-stepper-item__prefix .gov-icon{width:45%;height:45%}.gov-stepper-item__prefix span[slot=prefix]{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.gov-stepper-item__name{display:flex;flex-direction:column}.gov-stepper-item__label{display:flex;gap:0.5rem;align-items:center;font-weight:var(--gov-wizzard-title-font-weight, 400)}.gov-stepper-item__annot{color:var(--gov-color-secondary)}.gov-stepper-item__content>*:last-child{margin-bottom:0}.gov-stepper-item[variant=primary] .gov-stepper-item__header{color:var(--gov-wizzard-primary-color, var(--gov-color-primary-800))}.gov-stepper-item[variant=primary] .gov-stepper-item__prefix{background:var(--gov-wizzard-primary-indicator-bg, var(--gov-color-primary-300));color:var(--gov-wizzard-primary-indicator-color, var(--gov-color-primary-800))}.gov-stepper-item[variant=secondary] .gov-stepper-item__header{color:var(--gov-wizzard-secondary-color, var(--gov-color-secondary-700))}.gov-stepper-item[variant=secondary] .gov-stepper-item__prefix{background:var(--gov-wizzard-secondary-indicator-bg, var(--gov-color-secondary-400));color:var(--gov-wizzard-secondary-indicator-color, var(--gov-color-secondary-700))}.gov-stepper-item[variant=success] .gov-stepper-item__header{color:var(--gov-wizzard-success-color, var(--gov-color-success-500))}.gov-stepper-item[variant=success] .gov-stepper-item__prefix{background:var(--gov-wizzard-success-indicator-bg, var(--gov-color-success));color:var(--gov-wizzard-success-indicator-color, var(--gov-color-neutral-white))}.gov-stepper-item[variant=error] .gov-stepper-item__header{color:var(--gov-wizzard-error-color, var(--gov-color-error-500))}.gov-stepper-item[variant=error] .gov-stepper-item__prefix{background:var(--gov-wizzard-error-indicator-bg, var(--gov-color-error));color:var(--gov-wizzard-error-indicator-color, var(--gov-color-neutral-white))}.gov-stepper-item[variant=warning] .gov-stepper-item__header{color:var(--gov-wizzard-warning-color, var(--gov-color-warning-500))}.gov-stepper-item[variant=warning] .gov-stepper-item__prefix{background:var(--gov-wizzard-warning-indicator-bg, var(--gov-color-warning));color:var(--gov-wizzard-warning-indicator-color, var(--gov-color-neutral-white))}.gov-stepper-item::before{content:\"\";position:absolute;display:block;width:0.125rem}.gov-stepper-item:last-child::before{content:none}.gov-stepper-item[variant=primary]::before{background:var(--gov-wizzard-primary-indicator-bg, var(--gov-color-primary-300))}.gov-stepper-item[variant=secondary]::before{background:var(--gov-wizzard-secondary-indicator-bg, var(--gov-color-secondary-400))}.gov-stepper-item[variant=success]::before{background:var(--gov-wizzard-success-indicator-bg, var(--gov-color-success))}.gov-stepper-item[variant=error]::before{background:var(--gov-wizzard-error-indicator-bg, var(--gov-color-error))}.gov-stepper-item[variant=warning]::before{background:var(--gov-wizzard-warning-indicator-bg, var(--gov-color-warning))}.gov-stepper-item[size=xs]{min-height:calc(var(--gov-stepper-xs-indicator-size, 1.5rem) + 3 * var(--gov-stepper-xs-connect-gap, 0.5rem))}.gov-stepper-item[size=xs]::before{top:calc(var(--gov-stepper-xs-indicator-size, 1.5rem) + var(--gov-stepper-xs-connect-gap, 0.5rem));bottom:var(--gov-stepper-xs-connect-gap, 0.5rem);left:calc((var(--gov-stepper-xs-indicator-size, 1.5rem) - 0.125rem) / 2)}.gov-stepper-item[size=xs]:last-child{min-height:0}.gov-stepper-item[size=xs] .gov-stepper-item__title{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-stepper-item[size=xs] .gov-stepper-item__annot{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-stepper-item[size=xs] .gov-stepper-item__prefix{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);width:var(--gov-stepper-xs-indicator-size, 1.5rem);height:var(--gov-stepper-xs-indicator-size, 1.5rem);box-shadow:0 0 0 var(--gov-stepper-xs-connect-gap, 0.5rem) var(--gov-color-neutral-white)}.gov-stepper-item[size=xs] .gov-stepper-item__content{padding:var(--gov-stepper-xs-content-padding, 1rem 1rem 2rem 2.5rem)}.gov-stepper-item--w-annot[size=xs]{min-height:calc(var(--gov-stepper-xs-indicator-size, 1.5rem) * 1.5 + 3 * var(--gov-stepper-xs-connect-gap, 0.5rem))}.gov-stepper-item[size=s]{min-height:calc(var(--gov-stepper-s-indicator-size, 2rem) + 3 * var(--gov-stepper-s-connect-gap, 1rem))}.gov-stepper-item[size=s]::before{top:calc(var(--gov-stepper-s-indicator-size, 2rem) + var(--gov-stepper-s-connect-gap, 1rem));bottom:var(--gov-stepper-s-connect-gap, 1rem);left:calc((var(--gov-stepper-s-indicator-size, 2rem) - 0.125rem) / 2)}.gov-stepper-item[size=s]:last-child{min-height:0}.gov-stepper-item[size=s] .gov-stepper-item__title{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-stepper-item[size=s] .gov-stepper-item__annot{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-stepper-item[size=s] .gov-stepper-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-stepper-s-indicator-size, 2rem);height:var(--gov-stepper-s-indicator-size, 2rem);box-shadow:0 0 0 var(--gov-stepper-s-connect-gap, 1rem) var(--gov-color-neutral-white)}.gov-stepper-item[size=s] .gov-stepper-item__content{padding:var(--gov-stepper-s-content-padding, 1rem 1rem 2rem 3rem)}.gov-stepper-item--w-annot[size=s]{min-height:calc(var(--gov-stepper-s-indicator-size, 2rem) * 1.5 + 3 * var(--gov-stepper-s-connect-gap, 1rem))}.gov-stepper-item[size=m]{min-height:calc(var(--gov-stepper-m-indicator-size, 2.5rem) + 3 * var(--gov-stepper-m-connect-gap, 1rem))}.gov-stepper-item[size=m]::before{top:calc(var(--gov-stepper-m-indicator-size, 2.5rem) + var(--gov-stepper-m-connect-gap, 1rem));bottom:var(--gov-stepper-m-connect-gap, 1rem);left:calc((var(--gov-stepper-m-indicator-size, 2.5rem) - 0.125rem) / 2)}.gov-stepper-item[size=m]:last-child{min-height:0}.gov-stepper-item[size=m] .gov-stepper-item__title{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing)}.gov-stepper-item[size=m] .gov-stepper-item__annot{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-stepper-item[size=m] .gov-stepper-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-stepper-m-indicator-size, 2.5rem);height:var(--gov-stepper-m-indicator-size, 2.5rem);box-shadow:0 0 0 var(--gov-stepper-m-connect-gap, 1rem) var(--gov-color-neutral-white)}.gov-stepper-item[size=m] .gov-stepper-item__content{padding:var(--gov-stepper-m-content-padding, 1rem 1rem 2rem 3.5rem)}.gov-stepper-item--w-annot[size=m]{min-height:calc(var(--gov-stepper-m-indicator-size, 2.5rem) * 1.5 + 3 * var(--gov-stepper-m-connect-gap, 1rem))}";
15
+ const govStepperItemCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-stepper-item{position:relative;display:block;width:100%}.gov-stepper-item__header{position:relative;width:100%}.gov-stepper-item__arrow{flex:0 0 auto;width:0.75rem;height:0.75rem}.gov-stepper-item__title{margin:0;padding:0;font-family:var(--gov-font-family, \"Roboto\", sans-serif);font-weight:400;box-sizing:border-box;display:flex;gap:1rem;align-items:baseline}.gov-stepper-item__prefix{display:flex;flex:0 0 auto;justify-content:center;align-items:center;border-radius:50%;text-align:center}.gov-stepper-item__prefix .gov-icon{width:45%;height:45%}.gov-stepper-item__prefix span[slot=prefix]{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.gov-stepper-item__name{display:flex;flex-direction:column}.gov-stepper-item__label{display:flex;gap:0.5rem;align-items:center;font-weight:var(--gov-wizard-title-font-weight, 400)}.gov-stepper-item__annot{color:var(--gov-color-secondary)}.gov-stepper-item__content>*:last-child{margin-bottom:0}.gov-stepper-item[variant=primary] .gov-stepper-item__header{color:var(--gov-wizard-primary-color, var(--gov-color-primary-800))}.gov-stepper-item[variant=primary] .gov-stepper-item__prefix{background:var(--gov-wizard-primary-indicator-bg, var(--gov-color-primary-300));color:var(--gov-wizard-primary-indicator-color, var(--gov-color-primary-800))}.gov-stepper-item[variant=secondary] .gov-stepper-item__header{color:var(--gov-wizard-secondary-color, var(--gov-color-secondary-700))}.gov-stepper-item[variant=secondary] .gov-stepper-item__prefix{background:var(--gov-wizard-secondary-indicator-bg, var(--gov-color-secondary-400));color:var(--gov-wizard-secondary-indicator-color, var(--gov-color-secondary-700))}.gov-stepper-item[variant=success] .gov-stepper-item__header{color:var(--gov-wizard-success-color, var(--gov-color-success-500))}.gov-stepper-item[variant=success] .gov-stepper-item__prefix{background:var(--gov-wizard-success-indicator-bg, var(--gov-color-success));color:var(--gov-wizard-success-indicator-color, var(--gov-color-neutral-white))}.gov-stepper-item[variant=error] .gov-stepper-item__header{color:var(--gov-wizard-error-color, var(--gov-color-error-500))}.gov-stepper-item[variant=error] .gov-stepper-item__prefix{background:var(--gov-wizard-error-indicator-bg, var(--gov-color-error));color:var(--gov-wizard-error-indicator-color, var(--gov-color-neutral-white))}.gov-stepper-item[variant=warning] .gov-stepper-item__header{color:var(--gov-wizard-warning-color, var(--gov-color-warning-500))}.gov-stepper-item[variant=warning] .gov-stepper-item__prefix{background:var(--gov-wizard-warning-indicator-bg, var(--gov-color-warning));color:var(--gov-wizard-warning-indicator-color, var(--gov-color-neutral-white))}.gov-stepper-item::before{content:\"\";position:absolute;display:block;width:0.125rem}.gov-stepper-item:last-child::before{content:none}.gov-stepper-item[variant=primary]::before{background:var(--gov-wizard-primary-indicator-bg, var(--gov-color-primary-300))}.gov-stepper-item[variant=secondary]::before{background:var(--gov-wizard-secondary-indicator-bg, var(--gov-color-secondary-400))}.gov-stepper-item[variant=success]::before{background:var(--gov-wizard-success-indicator-bg, var(--gov-color-success))}.gov-stepper-item[variant=error]::before{background:var(--gov-wizard-error-indicator-bg, var(--gov-color-error))}.gov-stepper-item[variant=warning]::before{background:var(--gov-wizard-warning-indicator-bg, var(--gov-color-warning))}.gov-stepper-item[size=xs]{min-height:calc(var(--gov-stepper-xs-indicator-size, 1.5rem) + 3 * var(--gov-stepper-xs-connect-gap, 0.5rem))}.gov-stepper-item[size=xs]::before{top:calc(var(--gov-stepper-xs-indicator-size, 1.5rem) + var(--gov-stepper-xs-connect-gap, 0.5rem));bottom:var(--gov-stepper-xs-connect-gap, 0.5rem);left:calc((var(--gov-stepper-xs-indicator-size, 1.5rem) - 0.125rem) / 2)}.gov-stepper-item[size=xs]:last-child{min-height:0}.gov-stepper-item[size=xs] .gov-stepper-item__title{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-stepper-item[size=xs] .gov-stepper-item__annot{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-stepper-item[size=xs] .gov-stepper-item__prefix{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);width:var(--gov-stepper-xs-indicator-size, 1.5rem);height:var(--gov-stepper-xs-indicator-size, 1.5rem);box-shadow:0 0 0 var(--gov-stepper-xs-connect-gap, 0.5rem) var(--gov-color-neutral-white)}.gov-stepper-item[size=xs] .gov-stepper-item__content{padding:var(--gov-stepper-xs-content-padding, 1rem 1rem 2rem 2.5rem)}.gov-stepper-item--w-annot[size=xs]{min-height:calc(var(--gov-stepper-xs-indicator-size, 1.5rem) * 1.5 + 3 * var(--gov-stepper-xs-connect-gap, 0.5rem))}.gov-stepper-item[size=s]{min-height:calc(var(--gov-stepper-s-indicator-size, 2rem) + 3 * var(--gov-stepper-s-connect-gap, 1rem))}.gov-stepper-item[size=s]::before{top:calc(var(--gov-stepper-s-indicator-size, 2rem) + var(--gov-stepper-s-connect-gap, 1rem));bottom:var(--gov-stepper-s-connect-gap, 1rem);left:calc((var(--gov-stepper-s-indicator-size, 2rem) - 0.125rem) / 2)}.gov-stepper-item[size=s]:last-child{min-height:0}.gov-stepper-item[size=s] .gov-stepper-item__title{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-stepper-item[size=s] .gov-stepper-item__annot{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-stepper-item[size=s] .gov-stepper-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-stepper-s-indicator-size, 2rem);height:var(--gov-stepper-s-indicator-size, 2rem);box-shadow:0 0 0 var(--gov-stepper-s-connect-gap, 1rem) var(--gov-color-neutral-white)}.gov-stepper-item[size=s] .gov-stepper-item__content{padding:var(--gov-stepper-s-content-padding, 1rem 1rem 2rem 3rem)}.gov-stepper-item--w-annot[size=s]{min-height:calc(var(--gov-stepper-s-indicator-size, 2rem) * 1.5 + 3 * var(--gov-stepper-s-connect-gap, 1rem))}.gov-stepper-item[size=m]{min-height:calc(var(--gov-stepper-m-indicator-size, 2.5rem) + 3 * var(--gov-stepper-m-connect-gap, 1rem))}.gov-stepper-item[size=m]::before{top:calc(var(--gov-stepper-m-indicator-size, 2.5rem) + var(--gov-stepper-m-connect-gap, 1rem));bottom:var(--gov-stepper-m-connect-gap, 1rem);left:calc((var(--gov-stepper-m-indicator-size, 2.5rem) - 0.125rem) / 2)}.gov-stepper-item[size=m]:last-child{min-height:0}.gov-stepper-item[size=m] .gov-stepper-item__title{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing)}.gov-stepper-item[size=m] .gov-stepper-item__annot{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-stepper-item[size=m] .gov-stepper-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-stepper-m-indicator-size, 2.5rem);height:var(--gov-stepper-m-indicator-size, 2.5rem);box-shadow:0 0 0 var(--gov-stepper-m-connect-gap, 1rem) var(--gov-color-neutral-white)}.gov-stepper-item[size=m] .gov-stepper-item__content{padding:var(--gov-stepper-m-content-padding, 1rem 1rem 2rem 3.5rem)}.gov-stepper-item--w-annot[size=m]{min-height:calc(var(--gov-stepper-m-indicator-size, 2.5rem) * 1.5 + 3 * var(--gov-stepper-m-connect-gap, 1rem))}";
16
16
 
17
17
  const GovStepperItem = class {
18
18
  constructor(hostRef) {
@@ -1 +1 @@
1
- {"file":"gov-stepper-item.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,uyQAAuyQ;;MCapzQ,cAAc;EAK1B;;;;mBAYgD,SAAS;gBAId,GAAG;;;;sBAgBoB,IAAI;IA/BrE,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,SAAS,GAAGC,qBAAQ,CAAC,gBAAgB,CAAC,CAAA;IAC3C,IAAI,CAAC,SAAS,GAAGA,qBAAQ,CAAC,mBAAmB,CAAC,CAAA;GAC9C;EAmCD,aAAa,CAAC,QAAgB;IAC7B,IAAI,CAAC,QAAQ,EAAE;MACdC,mBAAW,CAAC,IAAIC,0BAAgB,CAAC,IAAI,iCAAiC,CAAC,CAAA;KACvE;GACD;EAGD,kBAAkB,CAAC,QAAgB;IAClC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;IAC9D,IAAI,QAAQ,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClCD,mBAAW,CAAC,IAAIC,0BAAgB,CAAC,IAAI,UAAU,QAAQ,kBAAkB,CAAC,CAAA;OAC1E;KACD;GACD;EAGD,eAAe,CAAC,QAAgB;IAC/BC,kBAAY,CAACC,yBAAe,EAAE,QAAQ,EAAEF,0BAAgB,CAAC,IAAI,CAAC,CAAA;GAC9D;EAED,iBAA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AAgB,CAAC,OAAO,EAAE,EAAE,EAAE,SAAS,qBAAmB,SAAS,EAAE,IAAI,EAAC,UAAU,IAC/FG,kBAAM,IAAI,EAAC,SAAS,GAAG,CAClB,CACN,CACK,EACP;GACD;;;;EAMD,MAAM,YAAY;IACjB,OAAO,IAAI,CAAC,eAAe,CAAA;GAC3B;;;;;;;;;;;;","names":["govHost","createID","govErrorLog","StepperItemClass","validateProp","StepperVariants","h","Host","prepareClasses"],"sources":["../../../packages/core/src/components/gov-stepper/gov-stepper-item.scss?tag=gov-stepper-item","../../../packages/core/src/components/gov-stepper/gov-stepper-item.tsx"],"sourcesContent":["/*\n * Stepper - Item\n */\n\n@import \"../gov-wizzard/gov-wizzard-item-core.scss\";\n$class: \".gov-stepper-item\";\n\n#{$class} {\n\t@include wizzard-item-core;\n\t&::before {\n\t\t@include pseudo();\n\t\twidth: rem-calc(2);\n\t}\n\t&:last-child::before {\n\t\tcontent: none;\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $wizzard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t&::before {\n\t\t\t\tbackground: get(\"indicator-bg\", $definitions);\n\t\t\t}\n\t\t}\n\t}\n\t@each $size, $definitions in $stepper-sizes {\n\t\t$connect-gap: get(\"connect-gap\", $definitions);\n\t\t&[size=\"#{$size}\"] {\n\t\t\tmin-height: calc(get(\"indicator-size\", $definitions) + 3 * $connect-gap);\n\t\t\t&::before {\n\t\t\t\ttop: calc(get(\"indicator-size\", $definitions) + $connect-gap);\n\t\t\t\tbottom: $connect-gap;\n\t\t\t\tleft: calc((get(\"indicator-size\", $definitions) - rem-calc(2)) / 2);\n\t\t\t}\n\t\t\t&:last-child {\n\t\t\t\tmin-height: 0;\n\t\t\t}\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(get(\"font-size\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__annot {\n\t\t\t\t\t@include typography(get(\"font-size-annot\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(get(\"font-size-indicator\", $definitions));\n\t\t\t\t\twidth: get(\"indicator-size\", $definitions);\n\t\t\t\t\theight: get(\"indicator-size\", $definitions);\n\t\t\t\t\tbox-shadow: 0 0 0 $connect-gap color(\"neutral.white\");\n\t\t\t\t}\n\t\t\t\t&__content {\n\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t&--w-annot[size=\"#{$size}\"] {\n\t\t\tmin-height: calc(get(\"indicator-size\", $definitions) * 1.5 + 3 * $connect-gap);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Watch, Host, Method, Event, EventEmitter } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { StepperSizesType, StepperItemClass, StepperVariantType, StepperVariants } from './constants'\nimport { createID } from '../../utils/string.utils'\nimport { govHost, prepareClasses } 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\tstyleUrl: 'gov-stepper-item.scss',\n})\nexport class GovStepperItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\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\t@State() isExpandedState: boolean\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: StepperVariantType = '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 * Item name of the stepper\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Item annotation of the stepper\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Used to change the HMTL tag in the stepper trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: 'trigger-tag' }) readonly triggerTag: string = 'h3'\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('label')\n\tvalidateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${StepperItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch('triggerTag')\n\tvalidateTriggerTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${StepperItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(StepperVariants, newValue, StepperItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.triggerTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst contentId = this.contentId\n\t\tconst { label } = this\n\t\tconst TriggerTag = this.triggerTag\n\n\t\treturn (\n\t\t\t<Host class={prepareClasses([StepperItemClass.root, this.annotation && StepperItemClass.rootWithAnnot])} variant={this.variant}>\n\t\t\t\t<div id={triggerId} class={StepperItemClass.header} role=\"listitem\">\n\t\t\t\t\t<TriggerTag class={StepperItemClass.title}>\n\t\t\t\t\t\t{this.h.hasSlot('prefix') && (\n\t\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\n\t\t\t\t\t\t\t\t<slot name=\"prefix\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<span class={StepperItemClass.name}>\n\t\t\t\t\t\t\t<span class={StepperItemClass.label}>{label}</span>\n\t\t\t\t\t\t\t{this.annotation && <span class={StepperItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</TriggerTag>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('content') && (\n\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId} role=\"tabpanel\">\n\t\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync currentState(): Promise<boolean> {\n\t\treturn this.isExpandedState\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-stepper-item.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,kxQAAkxQ;;MCa/xQ,cAAc;EAK1B;;;;mBAYgD,SAAS;gBAId,GAAG;;;;sBAgBoB,IAAI;IA/BrE,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,SAAS,GAAGC,qBAAQ,CAAC,gBAAgB,CAAC,CAAA;IAC3C,IAAI,CAAC,SAAS,GAAGA,qBAAQ,CAAC,mBAAmB,CAAC,CAAA;GAC9C;EAmCD,aAAa,CAAC,QAAgB;IAC7B,IAAI,CAAC,QAAQ,EAAE;MACdC,mBAAW,CAAC,IAAIC,0BAAgB,CAAC,IAAI,iCAAiC,CAAC,CAAA;KACvE;GACD;EAGD,kBAAkB,CAAC,QAAgB;IAClC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;IAC9D,IAAI,QAAQ,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QA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gB,CAAC,KAAK,IAAG,KAAK,CAAQ,EAClD,IAAI,CAAC,UAAU,IAAIG,kBAAM,KAAK,EAAEH,0BAAgB,CAAC,KAAK,IAAG,IAAI,CAAC,UAAU,CAAQ,CAC3E,CACK,CACR,EAEL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,KACzBG,iBAAK,KAAK,EAAEH,0BAAgB,CAAC,OAAO,EAAE,EAAE,EAAE,SAAS,qBAAmB,SAAS,EAAE,IAAI,EAAC,UAAU,IAC/FG,kBAAM,IAAI,EAAC,SAAS,GAAG,CAClB,CACN,CACK,EACP;GACD;;;;EAMD,MAAM,YAAY;IACjB,OAAO,IAAI,CAAC,eAAe,CAAA;GAC3B;;;;;;;;;;;;","names":["govHost","createID","govErrorLog","StepperItemClass","validateProp","StepperVariants","h","Host","prepareClasses"],"sources":["../../../packages/core/src/components/gov-stepper/gov-stepper-item.scss?tag=gov-stepper-item","../../../packages/core/src/components/gov-stepper/gov-stepper-item.tsx"],"sourcesContent":["/*\n * Stepper - Item\n */\n\n@import \"../gov-wizard/gov-wizard-item-core.scss\";\n$class: \".gov-stepper-item\";\n\n#{$class} {\n\t@include wizard-item-core;\n\t&::before {\n\t\t@include pseudo();\n\t\twidth: rem-calc(2);\n\t}\n\t&:last-child::before {\n\t\tcontent: none;\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $wizard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t&::before {\n\t\t\t\tbackground: get(\"indicator-bg\", $definitions);\n\t\t\t}\n\t\t}\n\t}\n\t@each $size, $definitions in $stepper-sizes {\n\t\t$connect-gap: get(\"connect-gap\", $definitions);\n\t\t&[size=\"#{$size}\"] {\n\t\t\tmin-height: calc(get(\"indicator-size\", $definitions) + 3 * $connect-gap);\n\t\t\t&::before {\n\t\t\t\ttop: calc(get(\"indicator-size\", $definitions) + $connect-gap);\n\t\t\t\tbottom: $connect-gap;\n\t\t\t\tleft: calc((get(\"indicator-size\", $definitions) - rem-calc(2)) / 2);\n\t\t\t}\n\t\t\t&:last-child {\n\t\t\t\tmin-height: 0;\n\t\t\t}\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(get(\"font-size\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__annot {\n\t\t\t\t\t@include typography(get(\"font-size-annot\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(get(\"font-size-indicator\", $definitions));\n\t\t\t\t\twidth: get(\"indicator-size\", $definitions);\n\t\t\t\t\theight: get(\"indicator-size\", $definitions);\n\t\t\t\t\tbox-shadow: 0 0 0 $connect-gap color(\"neutral.white\");\n\t\t\t\t}\n\t\t\t\t&__content {\n\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t&--w-annot[size=\"#{$size}\"] {\n\t\t\tmin-height: calc(get(\"indicator-size\", $definitions) * 1.5 + 3 * $connect-gap);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Watch, Host, Method, Event, EventEmitter } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { StepperSizesType, StepperItemClass, StepperVariantType, StepperVariants } from './constants'\nimport { createID } from '../../utils/string.utils'\nimport { govHost, prepareClasses } 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\tstyleUrl: 'gov-stepper-item.scss',\n})\nexport class GovStepperItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\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\t@State() isExpandedState: boolean\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: StepperVariantType = '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 * Item name of the stepper\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Item annotation of the stepper\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Used to change the HMTL tag in the stepper trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: 'trigger-tag' }) readonly triggerTag: string = 'h3'\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('label')\n\tvalidateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${StepperItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch('triggerTag')\n\tvalidateTriggerTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${StepperItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(StepperVariants, newValue, StepperItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.triggerTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst contentId = this.contentId\n\t\tconst { label } = this\n\t\tconst TriggerTag = this.triggerTag\n\n\t\treturn (\n\t\t\t<Host class={prepareClasses([StepperItemClass.root, this.annotation && StepperItemClass.rootWithAnnot])} variant={this.variant}>\n\t\t\t\t<div id={triggerId} class={StepperItemClass.header} role=\"listitem\">\n\t\t\t\t\t<TriggerTag class={StepperItemClass.title}>\n\t\t\t\t\t\t{this.h.hasSlot('prefix') && (\n\t\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\n\t\t\t\t\t\t\t\t<slot name=\"prefix\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<span class={StepperItemClass.name}>\n\t\t\t\t\t\t\t<span class={StepperItemClass.label}>{label}</span>\n\t\t\t\t\t\t\t{this.annotation && <span class={StepperItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</TriggerTag>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('content') && (\n\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId} role=\"tabpanel\">\n\t\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync currentState(): Promise<boolean> {\n\t\treturn this.isExpandedState\n\t}\n}\n"],"version":3}
@@ -6,8 +6,8 @@ const index = require('./index-83edd4fe.js');
6
6
  const props = require('./props-5f82e4c0.js');
7
7
  const constants = require('./constants-23b7a283.js');
8
8
  const template = require('./template-e1c4ff78.js');
9
- const wcag = require('./wcag-b0321f09.js');
10
- const win = require('./win-53f637d4.js');
9
+ const wcag = require('./wcag-d7912060.js');
10
+ const win = require('./win-0427c131.js');
11
11
  const utils = require('./utils-c9b1bba3.js');
12
12
  const string_utils = require('./string.utils-0f08c48c.js');
13
13
  require('./gov.log-0c9dca27.js');