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

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 (434) 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/{constants-393e915a.js → constants-dde21dcf.js} +4 -4
  4. package/dist/cjs/{constants-393e915a.js.map → constants-dde21dcf.js.map} +1 -1
  5. package/dist/cjs/core.cjs.js +1 -1
  6. package/dist/cjs/gov-accordion-item.cjs.entry.js +3 -3
  7. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-accordion.cjs.entry.js +4 -4
  9. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-alert.cjs.entry.js +2 -2
  11. package/dist/cjs/gov-app.cjs.entry.js +120 -60
  12. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  13. package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
  14. package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
  15. package/dist/cjs/gov-badge.cjs.entry.js +1 -1
  16. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -2
  18. package/dist/cjs/gov-button.cjs.entry.js +2 -2
  19. package/dist/cjs/gov-card.cjs.entry.js +2 -2
  20. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  21. package/dist/cjs/gov-form-file.cjs.entry.js +8 -2
  22. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  23. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  24. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  25. package/dist/cjs/gov-form-input.cjs.entry.js +2 -2
  26. package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
  27. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
  28. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  29. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  30. package/dist/cjs/gov-icon.cjs.entry.js +22 -15
  31. package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  33. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-modal.cjs.entry.js +2 -2
  35. package/dist/cjs/gov-nav.cjs.entry.js +2 -2
  36. package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
  37. package/dist/cjs/gov-prompt.cjs.entry.js +2 -2
  38. package/dist/cjs/gov-side-nav.cjs.entry.js +2 -2
  39. package/dist/cjs/gov-skeleton.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  41. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  43. package/dist/cjs/gov-tile.cjs.entry.js +2 -15
  44. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-wizard-item.cjs.entry.js +114 -0
  46. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -0
  47. package/dist/cjs/{gov-wizzard.cjs.entry.js → gov-wizard.cjs.entry.js} +13 -13
  48. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -0
  49. package/dist/cjs/index-83edd4fe.js +4 -4
  50. package/dist/cjs/loader.cjs.js +1 -1
  51. package/dist/cjs/{wcag-b0321f09.js → wcag-d7912060.js} +2 -2
  52. package/dist/cjs/{wcag-b0321f09.js.map → wcag-d7912060.js.map} +1 -1
  53. package/dist/cjs/{win-53f637d4.js → win-0427c131.js} +4 -1
  54. package/dist/cjs/win-0427c131.js.map +1 -0
  55. package/dist/collection/collection-manifest.json +2 -2
  56. package/dist/collection/components/gov-accordion/constants.js +3 -3
  57. package/dist/collection/components/gov-accordion/constants.js.map +1 -1
  58. package/dist/collection/components/gov-accordion/gov-accordion-item.css +102 -71
  59. package/dist/collection/components/gov-accordion/gov-accordion-item.js +1 -1
  60. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  61. package/dist/collection/components/gov-accordion/gov-accordion.css +2 -2
  62. package/dist/collection/components/gov-alert/gov-alert.css +1 -1
  63. package/dist/collection/components/gov-app/gov-app.css +1 -1
  64. package/dist/collection/components/gov-app/gov-app.js +2 -2
  65. package/dist/collection/components/gov-app/gov-app.js.map +1 -1
  66. package/dist/collection/components/gov-attachments/gov-attachments-item.css +1 -1
  67. package/dist/collection/components/gov-attachments/gov-attachments.css +1 -1
  68. package/dist/collection/components/gov-backdrop/gov-backdrop.css +1 -1
  69. package/dist/collection/components/gov-badge/gov-badge.css +1 -1
  70. package/dist/collection/components/gov-badge/gov-badge.js +2 -2
  71. package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
  72. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +1 -1
  73. package/dist/collection/components/gov-button/default/gov-button.css +1 -1
  74. package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +1 -1
  75. package/dist/collection/components/gov-card/gov-card.css +1 -1
  76. package/dist/collection/components/gov-container/gov-container.css +1 -1
  77. package/dist/collection/components/gov-control-group/gov-control-group.css +1 -1
  78. package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +1 -1
  79. package/dist/collection/components/gov-empty/gov-empty.css +1 -1
  80. package/dist/collection/components/gov-error-code/gov-error-code.css +1 -1
  81. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +1 -1
  82. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +1 -1
  83. package/dist/collection/components/gov-form/control/gov-form-control.css +1 -1
  84. package/dist/collection/components/gov-form/file/gov-form-file.css +1 -1
  85. package/dist/collection/components/gov-form/file/gov-form-file.js +23 -0
  86. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  87. package/dist/collection/components/gov-form/group/gov-form-group.css +8 -8
  88. package/dist/collection/components/gov-form/input/gov-form-input.css +1 -1
  89. package/dist/collection/components/gov-form/label/gov-form-label.css +1 -1
  90. package/dist/collection/components/gov-form/message/gov-form-message.css +1 -1
  91. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +1 -1
  92. package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +1 -1
  93. package/dist/collection/components/gov-form/radio/gov-form-radio.css +1 -1
  94. package/dist/collection/components/gov-form/search/gov-form-search.css +1 -1
  95. package/dist/collection/components/gov-form/select/gov-form-select.css +1 -1
  96. package/dist/collection/components/gov-form/switch/gov-form-switch.css +1 -1
  97. package/dist/collection/components/gov-grid/gov-grid-item.css +1 -1
  98. package/dist/collection/components/gov-grid/gov-grid.css +1 -1
  99. package/dist/collection/components/gov-icon/gov-icon.css +1 -1
  100. package/dist/collection/components/gov-icon/gov-icon.js +14 -7
  101. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  102. package/dist/collection/components/gov-layout/gov-layout-column.css +1 -1
  103. package/dist/collection/components/gov-layout/gov-layout.css +1 -1
  104. package/dist/collection/components/gov-loading/loading/gov-loading.css +1 -1
  105. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +1 -1
  106. package/dist/collection/components/gov-message/gov-message.css +1 -1
  107. package/dist/collection/components/gov-message/gov-message.js +1 -1
  108. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  109. package/dist/collection/components/gov-modal/gov-modal.css +1 -1
  110. package/dist/collection/components/gov-nav/gov-nav-item.css +1 -1
  111. package/dist/collection/components/gov-nav/gov-nav.css +1 -1
  112. package/dist/collection/components/gov-pagination/gov-pagination.css +1 -1
  113. package/dist/collection/components/gov-promp/gov-prompt.css +1 -1
  114. package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +1 -1
  115. package/dist/collection/components/gov-side-nav/gov-side-nav.css +1 -1
  116. package/dist/collection/components/gov-spacer/gov-spacer.css +1 -1
  117. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +1 -1
  118. package/dist/collection/components/gov-statsbar/gov-statsbar.css +1 -1
  119. package/dist/collection/components/gov-stepper/gov-stepper-item.css +23 -23
  120. package/dist/collection/components/gov-stepper/gov-stepper.css +1 -1
  121. package/dist/collection/components/gov-tabs/gov-tabs-item.css +1 -1
  122. package/dist/collection/components/gov-tabs/gov-tabs.css +1 -1
  123. package/dist/collection/components/gov-tile/container/gov-tiles.css +1 -1
  124. package/dist/collection/components/gov-tile/gov-tile.css +1 -1
  125. package/dist/collection/components/gov-tile/gov-tile.js +19 -26
  126. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  127. package/dist/collection/components/gov-toast/gov-toast.css +1 -1
  128. package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +1 -1
  129. package/dist/collection/components/gov-tooltip/gov-tooltip.css +1 -1
  130. package/dist/collection/components/gov-wizard/constants.js +20 -0
  131. package/dist/collection/components/gov-wizard/constants.js.map +1 -0
  132. package/dist/collection/components/gov-wizard/gov-wizard-item.css +471 -0
  133. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js +2 -0
  134. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -0
  135. package/dist/collection/components/{gov-wizzard/gov-wizzard-item.js → gov-wizard/gov-wizard-item.js} +35 -35
  136. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -0
  137. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js +2 -0
  138. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -0
  139. package/dist/collection/components/{gov-wizzard/gov-wizzard.css → gov-wizard/gov-wizard.css} +4 -4
  140. package/dist/collection/components/{gov-wizzard/gov-wizzard.js → gov-wizard/gov-wizard.js} +20 -20
  141. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -0
  142. package/dist/collection/helpers/Dom/win.js +2 -0
  143. package/dist/collection/helpers/Dom/win.js.map +1 -1
  144. package/dist/collection/pages/Accordion.js +43 -4
  145. package/dist/collection/pages/Accordion.js.map +1 -1
  146. package/dist/collection/pages/Badge.js +6 -0
  147. package/dist/collection/pages/Badge.js.map +1 -1
  148. package/dist/collection/pages/Tiles.js +30 -15
  149. package/dist/collection/pages/Tiles.js.map +1 -1
  150. package/dist/collection/pages/{Wizzard.js → Wizard.js} +41 -41
  151. package/dist/collection/pages/Wizard.js.map +1 -0
  152. package/dist/collection/utils/icon.utils.js +8 -7
  153. package/dist/collection/utils/icon.utils.js.map +1 -1
  154. package/dist/components/gov-accordion-item.js +1 -1
  155. package/dist/components/gov-accordion-item.js.map +1 -1
  156. package/dist/components/gov-accordion.js +1 -1
  157. package/dist/components/gov-accordion.js.map +1 -1
  158. package/dist/components/gov-alert.js +1 -1
  159. package/dist/components/gov-app.js +1 -1
  160. package/dist/components/gov-app.js.map +1 -1
  161. package/dist/components/gov-attachments-item.js +1 -1
  162. package/dist/components/gov-attachments.js +1 -1
  163. package/dist/components/gov-backdrop.js +1 -1
  164. package/dist/components/gov-badge.js +1 -1
  165. package/dist/components/gov-breadcrumbs.js +1 -1
  166. package/dist/components/gov-button.js +1 -1
  167. package/dist/components/gov-card.js +1 -1
  168. package/dist/components/gov-form-autocomplete.js +1 -1
  169. package/dist/components/gov-form-checkbox.js +1 -1
  170. package/dist/components/gov-form-file.js +1 -1
  171. package/dist/components/gov-form-file.js.map +1 -1
  172. package/dist/components/gov-form-group.js +1 -1
  173. package/dist/components/gov-form-group.js.map +1 -1
  174. package/dist/components/gov-form-input.js +1 -1
  175. package/dist/components/gov-form-multi-select.js +1 -1
  176. package/dist/components/gov-form-radio.js +1 -1
  177. package/dist/components/gov-form-select.js +1 -1
  178. package/dist/components/gov-form-switch.js +1 -1
  179. package/dist/components/gov-icon.js +1 -1
  180. package/dist/components/gov-loading.js +1 -1
  181. package/dist/components/gov-message.js.map +1 -1
  182. package/dist/components/gov-modal.js +1 -1
  183. package/dist/components/gov-nav.js +1 -1
  184. package/dist/components/gov-pagination.js +1 -1
  185. package/dist/components/gov-prompt.js +1 -1
  186. package/dist/components/gov-side-nav-item.js +1 -1
  187. package/dist/components/gov-side-nav.js +1 -1
  188. package/dist/components/gov-side-nav.js.map +1 -1
  189. package/dist/components/gov-skeleton.js +1 -1
  190. package/dist/components/gov-skeleton.js.map +1 -1
  191. package/dist/components/gov-stepper-item.js +1 -1
  192. package/dist/components/gov-stepper-item.js.map +1 -1
  193. package/dist/components/gov-tabs.js +1 -1
  194. package/dist/components/gov-tile.js +1 -1
  195. package/dist/components/gov-tile.js.map +1 -1
  196. package/dist/components/gov-toast.js +1 -1
  197. package/dist/components/{gov-wizzard-item.d.ts → gov-wizard-item.d.ts} +4 -4
  198. package/dist/components/gov-wizard-item.js +2 -0
  199. package/dist/components/gov-wizard-item.js.map +1 -0
  200. package/dist/components/{gov-wizzard.d.ts → gov-wizard.d.ts} +4 -4
  201. package/dist/components/gov-wizard.js +2 -0
  202. package/dist/components/gov-wizard.js.map +1 -0
  203. package/dist/components/{p-db22f9ce.js → p-04086571.js} +2 -2
  204. package/dist/components/{p-7bea2390.js → p-3b1801e4.js} +2 -2
  205. package/dist/components/{p-386409dc.js → p-3e8a9e92.js} +2 -2
  206. package/dist/components/{p-103c7bd5.js → p-49620025.js} +2 -2
  207. package/dist/components/p-6834d779.js +2 -0
  208. package/dist/components/p-6834d779.js.map +1 -0
  209. package/dist/components/p-74b2311a.js +2 -0
  210. package/dist/components/p-74b2311a.js.map +1 -0
  211. package/dist/components/{p-a20f1683.js → p-8d128f59.js} +2 -2
  212. package/dist/components/{p-ccc44ac1.js → p-8da17139.js} +2 -2
  213. package/dist/components/{p-cf493ba0.js → p-a2e601c5.js} +2 -2
  214. package/dist/components/p-a2e601c5.js.map +1 -0
  215. package/dist/components/p-ae894a40.js +2 -0
  216. package/dist/components/p-bacc5e05.js +2 -0
  217. package/dist/components/p-bacc5e05.js.map +1 -0
  218. package/dist/components/p-cac3881f.js +2 -0
  219. package/dist/components/p-cac3881f.js.map +1 -0
  220. package/dist/components/{p-c0e49b09.js → p-f33b16d3.js} +2 -2
  221. package/dist/core/core.esm.js +1 -1
  222. package/dist/core/core.esm.js.map +1 -1
  223. package/dist/core/{p-e39cd83c.entry.js → p-06699657.entry.js} +2 -2
  224. package/dist/core/{p-e39cd83c.entry.js.map → p-06699657.entry.js.map} +1 -1
  225. package/dist/core/{p-41f72892.entry.js → p-0c1697ce.entry.js} +2 -2
  226. package/dist/core/{p-9a3e3ace.entry.js → p-18ef9623.entry.js} +2 -2
  227. package/dist/core/{p-eda868dc.entry.js → p-22a86871.entry.js} +2 -2
  228. package/dist/core/{p-722218fd.entry.js → p-23385300.entry.js} +2 -2
  229. package/dist/core/{p-48349167.entry.js → p-33bf5974.entry.js} +2 -2
  230. package/dist/core/{p-9f541022.entry.js → p-3d0ab343.entry.js} +2 -2
  231. package/dist/core/{p-e0c04c5f.entry.js → p-41e88980.entry.js} +2 -2
  232. package/dist/core/{p-5a855a15.entry.js → p-42c1935f.entry.js} +2 -2
  233. package/dist/core/{p-de3dc437.entry.js → p-48cfc1c6.entry.js} +2 -2
  234. package/dist/core/p-4e3d3563.entry.js +2 -0
  235. package/dist/core/p-4e3d3563.entry.js.map +1 -0
  236. package/dist/core/p-5316e768.entry.js.map +1 -1
  237. package/dist/core/p-63839c58.entry.js +2 -0
  238. package/dist/core/p-63839c58.entry.js.map +1 -0
  239. package/dist/core/p-64f7e661.entry.js +2 -0
  240. package/dist/core/p-64f7e661.entry.js.map +1 -0
  241. package/dist/core/p-6834d779.js +2 -0
  242. package/dist/core/p-6834d779.js.map +1 -0
  243. package/dist/core/{p-9ad54c30.entry.js → p-70140f70.entry.js} +2 -2
  244. package/dist/core/p-74b2311a.js +2 -0
  245. package/dist/core/p-74b2311a.js.map +1 -0
  246. package/dist/core/p-74f0be51.entry.js +2 -0
  247. package/dist/core/p-74f0be51.entry.js.map +1 -0
  248. package/dist/core/{p-3d720d54.entry.js → p-7d61b13e.entry.js} +2 -2
  249. package/dist/core/p-7d61b13e.entry.js.map +1 -0
  250. package/dist/core/{p-a68547b1.entry.js → p-81643870.entry.js} +2 -2
  251. package/dist/core/{p-11be550d.entry.js → p-82f64673.entry.js} +2 -2
  252. package/dist/core/p-87aca157.entry.js +2 -0
  253. package/dist/core/p-87aca157.entry.js.map +1 -0
  254. package/dist/core/{p-fa71fb92.entry.js → p-9d72d80b.entry.js} +2 -2
  255. package/dist/core/{p-1ae47d62.entry.js → p-a5d00433.entry.js} +2 -2
  256. package/dist/core/{p-3bc977e2.entry.js → p-accf8575.entry.js} +2 -2
  257. package/dist/core/p-accf8575.entry.js.map +1 -0
  258. package/dist/core/p-ae894a40.js +2 -0
  259. package/dist/core/p-bd1cb5bd.entry.js +2 -0
  260. package/dist/core/p-bd1cb5bd.entry.js.map +1 -0
  261. package/dist/core/{p-7d680665.entry.js → p-bfb4d904.entry.js} +2 -2
  262. package/dist/core/p-cac3881f.js +2 -0
  263. package/dist/core/p-cac3881f.js.map +1 -0
  264. package/dist/core/{p-b5a560d2.entry.js → p-dfc080f2.entry.js} +2 -2
  265. package/dist/core/{p-e1b3c361.entry.js → p-e769f3ee.entry.js} +2 -2
  266. package/dist/core/p-ea4459ae.entry.js +2 -0
  267. package/dist/core/p-ea4459ae.entry.js.map +1 -0
  268. package/dist/core/p-ed724948.entry.js +2 -0
  269. package/dist/core/p-ed724948.entry.js.map +1 -0
  270. package/dist/core/{p-d921bd4b.entry.js → p-f0a5847a.entry.js} +2 -2
  271. package/dist/core/{p-5150efee.entry.js → p-fc853777.entry.js} +2 -2
  272. package/dist/esm/{constants-858966b9.js → constants-09bda759.js} +4 -4
  273. package/dist/esm/{constants-858966b9.js.map → constants-09bda759.js.map} +1 -1
  274. package/dist/esm/constants-2499979c.js +24 -0
  275. package/dist/esm/constants-2499979c.js.map +1 -0
  276. package/dist/esm/core.js +1 -1
  277. package/dist/esm/gov-accordion-item.entry.js +3 -3
  278. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  279. package/dist/esm/gov-accordion.entry.js +4 -4
  280. package/dist/esm/gov-accordion.entry.js.map +1 -1
  281. package/dist/esm/gov-alert.entry.js +2 -2
  282. package/dist/esm/gov-app.entry.js +120 -60
  283. package/dist/esm/gov-app.entry.js.map +1 -1
  284. package/dist/esm/gov-attachments_3.entry.js +2 -2
  285. package/dist/esm/gov-backdrop.entry.js +2 -2
  286. package/dist/esm/gov-badge.entry.js +1 -1
  287. package/dist/esm/gov-badge.entry.js.map +1 -1
  288. package/dist/esm/gov-breadcrumbs.entry.js +2 -2
  289. package/dist/esm/gov-button.entry.js +2 -2
  290. package/dist/esm/gov-card.entry.js +2 -2
  291. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  292. package/dist/esm/gov-form-file.entry.js +8 -2
  293. package/dist/esm/gov-form-file.entry.js.map +1 -1
  294. package/dist/esm/gov-form-group.entry.js +1 -1
  295. package/dist/esm/gov-form-group.entry.js.map +1 -1
  296. package/dist/esm/gov-form-input.entry.js +2 -2
  297. package/dist/esm/gov-form-multi-select.entry.js +2 -2
  298. package/dist/esm/gov-form-radio.entry.js +2 -2
  299. package/dist/esm/gov-form-select.entry.js +2 -2
  300. package/dist/esm/gov-form-switch.entry.js +2 -2
  301. package/dist/esm/gov-icon.entry.js +22 -15
  302. package/dist/esm/gov-icon.entry.js.map +1 -1
  303. package/dist/esm/gov-message.entry.js +1 -1
  304. package/dist/esm/gov-message.entry.js.map +1 -1
  305. package/dist/esm/gov-modal.entry.js +2 -2
  306. package/dist/esm/gov-nav.entry.js +2 -2
  307. package/dist/esm/gov-pagination.entry.js +2 -2
  308. package/dist/esm/gov-prompt.entry.js +2 -2
  309. package/dist/esm/gov-side-nav.entry.js +2 -2
  310. package/dist/esm/gov-skeleton.entry.js +2 -2
  311. package/dist/esm/gov-stepper-item.entry.js +1 -1
  312. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  313. package/dist/esm/gov-tabs.entry.js +2 -2
  314. package/dist/esm/gov-tile.entry.js +2 -15
  315. package/dist/esm/gov-tile.entry.js.map +1 -1
  316. package/dist/esm/gov-wizard-item.entry.js +110 -0
  317. package/dist/esm/gov-wizard-item.entry.js.map +1 -0
  318. package/dist/esm/{gov-wizzard.entry.js → gov-wizard.entry.js} +13 -13
  319. package/dist/esm/gov-wizard.entry.js.map +1 -0
  320. package/dist/esm/index-ae3c50f1.js +4 -4
  321. package/dist/esm/loader.js +1 -1
  322. package/dist/esm/{wcag-afdfdddb.js → wcag-062e7ca9.js} +2 -2
  323. package/dist/esm/{wcag-afdfdddb.js.map → wcag-062e7ca9.js.map} +1 -1
  324. package/dist/esm/{win-7a1a8ac8.js → win-0a50f66e.js} +4 -2
  325. package/dist/esm/win-0a50f66e.js.map +1 -0
  326. package/dist/hydrate/index.js +192 -129
  327. package/dist/stencil.config.js +3 -3
  328. package/dist/stencil.config.js.map +1 -1
  329. package/dist/types/components/gov-accordion/constants.d.ts +3 -3
  330. package/dist/types/components/gov-app/gov-app.d.ts +1 -1
  331. package/dist/types/components/gov-form/file/gov-form-file.d.ts +4 -0
  332. package/dist/types/components/gov-icon/gov-icon.d.ts +1 -1
  333. package/dist/types/components/gov-message/gov-message.d.ts +1 -1
  334. package/dist/types/components/gov-tile/gov-tile.d.ts +4 -4
  335. package/dist/types/components/{gov-wizzard → gov-wizard}/constants.d.ts +2 -2
  336. package/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
  337. package/dist/types/components/{gov-wizzard/gov-wizzard-item.d.ts → gov-wizard/gov-wizard-item.d.ts} +13 -13
  338. package/dist/types/components/{gov-wizzard/gov-wizzard-item.types.d.ts → gov-wizard/gov-wizard-item.types.d.ts} +1 -1
  339. package/dist/types/components/{gov-wizzard/gov-wizzard.d.ts → gov-wizard/gov-wizard.d.ts} +7 -7
  340. package/dist/types/components.d.ts +64 -58
  341. package/dist/types/helpers/Dom/win.d.ts +2 -0
  342. package/dist/types/pages/Wizard.d.ts +3 -0
  343. package/package.json +1 -1
  344. package/dist/cjs/constants-21559414.js +0 -29
  345. package/dist/cjs/constants-21559414.js.map +0 -1
  346. package/dist/cjs/gov-wizzard-item.cjs.entry.js +0 -114
  347. package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +0 -1
  348. package/dist/cjs/gov-wizzard.cjs.entry.js.map +0 -1
  349. package/dist/cjs/win-53f637d4.js.map +0 -1
  350. package/dist/collection/components/gov-wizzard/constants.js +0 -20
  351. package/dist/collection/components/gov-wizzard/constants.js.map +0 -1
  352. package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +0 -471
  353. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js +0 -2
  354. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js.map +0 -1
  355. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +0 -1
  356. package/dist/collection/components/gov-wizzard/gov-wizzard-item.types.js +0 -2
  357. package/dist/collection/components/gov-wizzard/gov-wizzard-item.types.js.map +0 -1
  358. package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +0 -1
  359. package/dist/collection/pages/Wizzard.js.map +0 -1
  360. package/dist/components/gov-wizzard-item.js +0 -2
  361. package/dist/components/gov-wizzard-item.js.map +0 -1
  362. package/dist/components/gov-wizzard.js +0 -2
  363. package/dist/components/gov-wizzard.js.map +0 -1
  364. package/dist/components/p-0f5e2b0a.js +0 -2
  365. package/dist/components/p-34152b51.js +0 -2
  366. package/dist/components/p-34152b51.js.map +0 -1
  367. package/dist/components/p-37a7409e.js +0 -2
  368. package/dist/components/p-37a7409e.js.map +0 -1
  369. package/dist/components/p-64ced668.js +0 -2
  370. package/dist/components/p-64ced668.js.map +0 -1
  371. package/dist/components/p-c3f560b9.js +0 -2
  372. package/dist/components/p-c3f560b9.js.map +0 -1
  373. package/dist/components/p-cf493ba0.js.map +0 -1
  374. package/dist/core/p-05dc3d89.entry.js +0 -2
  375. package/dist/core/p-05dc3d89.entry.js.map +0 -1
  376. package/dist/core/p-0f5e2b0a.js +0 -2
  377. package/dist/core/p-16c3a489.entry.js +0 -2
  378. package/dist/core/p-16c3a489.entry.js.map +0 -1
  379. package/dist/core/p-2c7af892.entry.js +0 -2
  380. package/dist/core/p-2c7af892.entry.js.map +0 -1
  381. package/dist/core/p-34152b51.js +0 -2
  382. package/dist/core/p-34152b51.js.map +0 -1
  383. package/dist/core/p-37a7409e.js +0 -2
  384. package/dist/core/p-37a7409e.js.map +0 -1
  385. package/dist/core/p-3bc977e2.entry.js.map +0 -1
  386. package/dist/core/p-3d720d54.entry.js.map +0 -1
  387. package/dist/core/p-5195fd36.entry.js +0 -2
  388. package/dist/core/p-5195fd36.entry.js.map +0 -1
  389. package/dist/core/p-64ced668.js +0 -2
  390. package/dist/core/p-64ced668.js.map +0 -1
  391. package/dist/core/p-9751af2e.entry.js +0 -2
  392. package/dist/core/p-9751af2e.entry.js.map +0 -1
  393. package/dist/core/p-ac94d242.entry.js +0 -2
  394. package/dist/core/p-ac94d242.entry.js.map +0 -1
  395. package/dist/core/p-af7a89bc.entry.js +0 -2
  396. package/dist/core/p-af7a89bc.entry.js.map +0 -1
  397. package/dist/core/p-d2729599.entry.js +0 -2
  398. package/dist/core/p-d2729599.entry.js.map +0 -1
  399. package/dist/esm/constants-bf5a583f.js +0 -24
  400. package/dist/esm/constants-bf5a583f.js.map +0 -1
  401. package/dist/esm/gov-wizzard-item.entry.js +0 -110
  402. package/dist/esm/gov-wizzard-item.entry.js.map +0 -1
  403. package/dist/esm/gov-wizzard.entry.js.map +0 -1
  404. package/dist/esm/win-7a1a8ac8.js.map +0 -1
  405. package/dist/types/components/gov-wizzard/gov-wizzard-item.d.d.ts +0 -4
  406. package/dist/types/pages/Wizzard.d.ts +0 -3
  407. /package/dist/components/{p-db22f9ce.js.map → p-04086571.js.map} +0 -0
  408. /package/dist/components/{p-7bea2390.js.map → p-3b1801e4.js.map} +0 -0
  409. /package/dist/components/{p-386409dc.js.map → p-3e8a9e92.js.map} +0 -0
  410. /package/dist/components/{p-103c7bd5.js.map → p-49620025.js.map} +0 -0
  411. /package/dist/components/{p-a20f1683.js.map → p-8d128f59.js.map} +0 -0
  412. /package/dist/components/{p-ccc44ac1.js.map → p-8da17139.js.map} +0 -0
  413. /package/dist/components/{p-0f5e2b0a.js.map → p-ae894a40.js.map} +0 -0
  414. /package/dist/components/{p-c0e49b09.js.map → p-f33b16d3.js.map} +0 -0
  415. /package/dist/core/{p-41f72892.entry.js.map → p-0c1697ce.entry.js.map} +0 -0
  416. /package/dist/core/{p-9a3e3ace.entry.js.map → p-18ef9623.entry.js.map} +0 -0
  417. /package/dist/core/{p-eda868dc.entry.js.map → p-22a86871.entry.js.map} +0 -0
  418. /package/dist/core/{p-722218fd.entry.js.map → p-23385300.entry.js.map} +0 -0
  419. /package/dist/core/{p-48349167.entry.js.map → p-33bf5974.entry.js.map} +0 -0
  420. /package/dist/core/{p-9f541022.entry.js.map → p-3d0ab343.entry.js.map} +0 -0
  421. /package/dist/core/{p-e0c04c5f.entry.js.map → p-41e88980.entry.js.map} +0 -0
  422. /package/dist/core/{p-5a855a15.entry.js.map → p-42c1935f.entry.js.map} +0 -0
  423. /package/dist/core/{p-de3dc437.entry.js.map → p-48cfc1c6.entry.js.map} +0 -0
  424. /package/dist/core/{p-9ad54c30.entry.js.map → p-70140f70.entry.js.map} +0 -0
  425. /package/dist/core/{p-a68547b1.entry.js.map → p-81643870.entry.js.map} +0 -0
  426. /package/dist/core/{p-11be550d.entry.js.map → p-82f64673.entry.js.map} +0 -0
  427. /package/dist/core/{p-fa71fb92.entry.js.map → p-9d72d80b.entry.js.map} +0 -0
  428. /package/dist/core/{p-1ae47d62.entry.js.map → p-a5d00433.entry.js.map} +0 -0
  429. /package/dist/core/{p-0f5e2b0a.js.map → p-ae894a40.js.map} +0 -0
  430. /package/dist/core/{p-7d680665.entry.js.map → p-bfb4d904.entry.js.map} +0 -0
  431. /package/dist/core/{p-b5a560d2.entry.js.map → p-dfc080f2.entry.js.map} +0 -0
  432. /package/dist/core/{p-e1b3c361.entry.js.map → p-e769f3ee.entry.js.map} +0 -0
  433. /package/dist/core/{p-d921bd4b.entry.js.map → p-f0a5847a.entry.js.map} +0 -0
  434. /package/dist/core/{p-5150efee.entry.js.map → p-fc853777.entry.js.map} +0 -0
@@ -1,114 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-83edd4fe.js');
6
- const gov_log = require('./gov.log-0c9dca27.js');
7
- const props = require('./props-5f82e4c0.js');
8
- const constants = require('./constants-21559414.js');
9
- const string_utils = require('./string.utils-0f08c48c.js');
10
- const template = require('./template-e1c4ff78.js');
11
- const Fragment = require('./Fragment-52846f79.js');
12
- require('./variants-f5ffeef3.js');
13
- require('./sizes-79872c2a.js');
14
- require('./utils-c9b1bba3.js');
15
-
16
- const govWizzardItemCss = ".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-wizzard-item{position:relative;display:block;width:100%;margin-bottom:1rem;background:var(--gov-wizzard-bg-color, var(--gov-color-neutral-white))}.gov-wizzard-item__header{position:relative;width:100%}.gov-wizzard-item__arrow{flex:0 0 auto;width:0.75rem;height:0.75rem}.gov-wizzard-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-wizzard-item__prefix{display:flex;flex:0 0 auto;justify-content:center;align-items:center;border-radius:50%;text-align:center}.gov-wizzard-item__prefix .gov-icon{width:45%;height:45%}.gov-wizzard-item__prefix span[slot=prefix]{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.gov-wizzard-item__name{display:flex;flex-direction:column}.gov-wizzard-item__label{display:flex;gap:0.5rem;align-items:center;font-weight:var(--gov-wizzard-title-font-weight, 400)}.gov-wizzard-item__annot{color:var(--gov-color-secondary)}.gov-wizzard-item__content>*:last-child{margin-bottom:0}.gov-wizzard-item[variant=primary] .gov-wizzard-item__header{color:var(--gov-wizzard-primary-color, var(--gov-color-primary-800))}.gov-wizzard-item[variant=primary] .gov-wizzard-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-wizzard-item[variant=secondary] .gov-wizzard-item__header{color:var(--gov-wizzard-secondary-color, var(--gov-color-secondary-700))}.gov-wizzard-item[variant=secondary] .gov-wizzard-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-wizzard-item[variant=success] .gov-wizzard-item__header{color:var(--gov-wizzard-success-color, var(--gov-color-success-500))}.gov-wizzard-item[variant=success] .gov-wizzard-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-wizzard-item[variant=error] .gov-wizzard-item__header{color:var(--gov-wizzard-error-color, var(--gov-color-error-500))}.gov-wizzard-item[variant=error] .gov-wizzard-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-wizzard-item[variant=warning] .gov-wizzard-item__header{color:var(--gov-wizzard-warning-color, var(--gov-color-warning-500))}.gov-wizzard-item[variant=warning] .gov-wizzard-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-wizzard-item__header{gap:1rem;padding:1rem;border-radius:0;text-align:left;transition:150ms linear color}.gov-wizzard-item__header:focus{outline:none}.gov-wizzard-item__header:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-wizzard-item__prefix{position:absolute;left:1rem}.gov-wizzard-item__header[aria-expanded=true] .gov-wizzard-item__label .gov-icon{transform:scale(-1)}.gov-wizzard-item[size=xs] .gov-wizzard-item__title,.gov-wizzard-item[size=s] .gov-wizzard-item__title,.gov-wizzard-item[size=m] .gov-wizzard-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-wizzard-item[size=xs] .gov-wizzard-item__annot,.gov-wizzard-item[size=s] .gov-wizzard-item__annot,.gov-wizzard-item[size=m] .gov-wizzard-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-wizzard-item[size=xs] .gov-wizzard-item__prefix,.gov-wizzard-item[size=s] .gov-wizzard-item__prefix,.gov-wizzard-item[size=m] .gov-wizzard-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-wizzard-xs-indicator-size, 1.5rem);height:var(--gov-wizzard-xs-indicator-size, 1.5rem);top:var(--gov-wizzard-xs-top, 1rem)}.gov-wizzard-item[size=xs] .gov-wizzard-item__prefix+.gov-wizzard-item__header,.gov-wizzard-item[size=s] .gov-wizzard-item__prefix+.gov-wizzard-item__header,.gov-wizzard-item[size=m] .gov-wizzard-item__prefix+.gov-wizzard-item__header{padding:var(--gov-wizzard-xs-header-padding, 1rem 1rem 1rem 3.5rem)}.gov-wizzard-item[size=xs] .gov-wizzard-item__content,.gov-wizzard-item[size=s] .gov-wizzard-item__content,.gov-wizzard-item[size=m] .gov-wizzard-item__content{padding:var(--gov-wizzard-content-padding, 0rem 1rem 1rem 1rem)}@media not all and (pointer: coarse){.gov-wizzard-item[variant=primary][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=primary][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=primary][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-primary-hover-color, var(--gov-color-primary-900))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=secondary][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=secondary][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=secondary][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-secondary-hover-color, var(--gov-color-secondary-800))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=success][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=success][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=success][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-success-hover-color, var(--gov-color-success-600))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=error][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=error][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=error][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-error-hover-color, var(--gov-color-error-600))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=warning][collapsible=\"\"] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=warning][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=warning][collapsible=\"1\"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-warning-hover-color, var(--gov-color-warning-600))}}button.gov-wizzard-item__header{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:flex-start;text-align:left}button.gov-wizzard-item__header:focus{outline:none}@media (min-width: 30em){.gov-wizzard-item[size=s] .gov-wizzard-item__title,.gov-wizzard-item[size=m] .gov-wizzard-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-wizzard-item[size=s] .gov-wizzard-item__prefix,.gov-wizzard-item[size=m] .gov-wizzard-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-wizzard-s-indicator-size, 2rem);height:var(--gov-wizzard-s-indicator-size, 2rem);top:var(--gov-wizzard-s-top, 0.8125rem)}.gov-wizzard-item[size=s] .gov-wizzard-item__prefix+.gov-wizzard-item__header,.gov-wizzard-item[size=m] .gov-wizzard-item__prefix+.gov-wizzard-item__header{padding:var(--gov-wizzard-s-header-padding, 1rem 1rem 1rem 4rem)}}@media (min-width: 48em){.gov-wizzard-item[size=m] .gov-wizzard-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-wizzard-item[size=m] .gov-wizzard-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-wizzard-m-indicator-size, 2.5rem);height:var(--gov-wizzard-m-indicator-size, 2.5rem);top:var(--gov-wizzard-m-top, 0.5625rem)}.gov-wizzard-item[size=m] .gov-wizzard-item__prefix+.gov-wizzard-item__header{padding:var(--gov-wizzard-m-header-padding, 1rem 1rem 1rem 4.5rem)}.gov-wizzard-item[size=xs] .gov-wizzard-item__content{padding:var(--gov-wizzard-xs-content-padding, 0rem 1rem 1rem 3.5rem)}.gov-wizzard-item[size=s] .gov-wizzard-item__content{padding:var(--gov-wizzard-s-content-padding, 0rem 1rem 1rem 4rem)}.gov-wizzard-item[size=m] .gov-wizzard-item__content{padding:var(--gov-wizzard-m-content-padding, 0rem 1rem 1rem 4.5rem)}}";
17
-
18
- var Tags;
19
- (function (Tags) {
20
- Tags["DIV"] = "div";
21
- Tags["BUTTON"] = "button";
22
- })(Tags || (Tags = {}));
23
- const GovWizzardItem = class {
24
- constructor(hostRef) {
25
- index.registerInstance(this, hostRef);
26
- this.govChange = index.createEvent(this, "gov-change", 7);
27
- this.variant = "primary";
28
- this.size = "m";
29
- this.identifier = undefined;
30
- this.collapsible = false;
31
- this.annotation = undefined;
32
- this.label = undefined;
33
- this.disabled = false;
34
- this.isExpanded = false;
35
- this.labelTag = "h3";
36
- this.h = template.govHost(this.host);
37
- this.triggerId = string_utils.createID("GovWizzardItem");
38
- this.contentId = string_utils.createID("GovWizzardContent");
39
- }
40
- validateLabel(newValue) {
41
- if (!newValue) {
42
- gov_log.govErrorLog(`[${constants.WizzardItemClass.root}]: Parameter label is required.`);
43
- }
44
- }
45
- validateTriggerTag(newValue) {
46
- const validTags = ["h1", "h2", "h3", "h4", "h5", "h6", "span"];
47
- if (newValue) {
48
- if (!validTags.includes(newValue)) {
49
- gov_log.govErrorLog(`[${constants.WizzardItemClass.root}]: Tag ${newValue} is not allowed.`);
50
- }
51
- }
52
- }
53
- validateVariant(newValue) {
54
- props.validateProp(constants.WizardVariants, newValue, constants.WizzardItemClass.root);
55
- }
56
- emmitChange() {
57
- this.govChange.emit({ expanded: this.isExpanded, component: constants.WizzardItemClass.root });
58
- }
59
- componentWillLoad() {
60
- this.validateLabel(this.label);
61
- this.validateVariant(this.variant);
62
- this.validateTriggerTag(this.labelTag);
63
- }
64
- render() {
65
- const triggerId = this.identifier || this.triggerId;
66
- const LabelTag = this.labelTag;
67
- const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
68
- const prefixSlot = this.h.hasSlot("prefix") && (index.h("span", { class: constants.WizzardItemClass.prefix }, index.h("slot", { name: "prefix" })));
69
- const label = (index.h(LabelTag, { class: constants.WizzardItemClass.title }, index.h("span", { class: constants.WizzardItemClass.name }, index.h("span", { class: constants.WizzardItemClass.label }, index.h("span", null, this.label), this.collapsible && index.h("gov-icon", { class: constants.WizzardItemClass.arrow, name: "chevron-down" })), this.annotation && index.h("span", { class: constants.WizzardItemClass.annot }, this.annotation))));
70
- return (index.h(index.Host, { class: this.h.classes(constants.WizzardItemClass.root), "is-expanded": this.isExpanded, variant: this.variant, size: this.size, role: "listitem", collapsible: this.collapsible }, this.collapsible ? (index.h(Fragment.Fragment, null, prefixSlot, index.h(Tag, { id: triggerId, class: constants.WizzardItemClass.header, "aria-expanded": template.booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": template.toBoolAttrIfDefined(this.disabled), onClick: (e) => {
71
- e.preventDefault();
72
- e.stopPropagation();
73
- this.collapsible ? this.toggle() : false;
74
- } }, label))) : (index.h(Fragment.Fragment, null, prefixSlot, index.h("div", { class: constants.WizzardItemClass.header }, label))), this.collapsible ? (index.h("div", { class: constants.WizzardItemClass.content, id: this.contentId, "aria-hidden": template.booleanString(!this.isExpanded), hidden: !this.isExpanded, "aria-labelledby": triggerId }, index.h("slot", null))) : (index.h("div", { class: constants.WizzardItemClass.content, "aria-hidden": template.booleanString(!this.isExpanded), hidden: !this.isExpanded }, index.h("slot", null)))));
75
- }
76
- /**
77
- * Opening the Wizzard
78
- */
79
- async open() {
80
- this.isExpanded = true;
81
- this.emmitChange();
82
- }
83
- /**
84
- * Closing the Wizzard
85
- */
86
- async close() {
87
- this.isExpanded = false;
88
- this.emmitChange();
89
- }
90
- /**
91
- * Wizzard switch
92
- */
93
- async toggle() {
94
- this.isExpanded = !this.isExpanded;
95
- this.emmitChange();
96
- }
97
- /**
98
- * Returns the current state of the component
99
- */
100
- async currentState() {
101
- return this.isExpanded;
102
- }
103
- get host() { return index.getElement(this); }
104
- static get watchers() { return {
105
- "label": ["validateLabel"],
106
- "labelTag": ["validateTriggerTag"],
107
- "variant": ["validateVariant"]
108
- }; }
109
- };
110
- GovWizzardItem.style = govWizzardItemCss;
111
-
112
- exports.gov_wizzard_item = GovWizzardItem;
113
-
114
- //# sourceMappingURL=gov-wizzard-item.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"gov-wizzard-item.entry.cjs.js","mappings":"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","names":["govHost","createID","govErrorLog","WizzardItemClass","validateProp","WizardVariants","h","Host","Fragment","booleanString","toBoolAttrIfDefined"],"sources":["../../../packages/core/src/components/gov-wizzard/gov-wizzard-item.scss?tag=gov-wizzard-item","../../../packages/core/src/components/gov-wizzard/gov-wizzard-item.tsx"],"sourcesContent":["/*\n * Wizzard - Item\n */\n\n@import \"../gov-wizzard/gov-wizzard-item-core.scss\";\n$class: \".gov-wizzard-item\";\n\n#{$class} {\n\t@include wizzard-item-core;\n\tmargin-bottom: rem-calc(16);\n\tbackground: $wizzard-bg-color;\n\t&__header {\n\t\t@include focus-outline();\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttransition: $t linear color;\n\t}\n\t&__prefix {\n\t\tposition: absolute;\n\t\tleft: rem-calc(16);\n\t}\n\n\t// STATES\n\t&__header[aria-expanded=\"true\"] {\n\t\t#{$class}__label {\n\t\t\t.gov-icon {\n\t\t\t\ttransform: scale(-1);\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t&[size=\"#{$size-xs}\"],\n\t&[size=\"#{$size-s}\"],\n\t&[size=\"#{$size-m}\"] {\n\t\t#{$class} {\n\t\t\t&__title {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size\"));\n\t\t\t}\n\t\t\t&__annot {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size-annot\"));\n\t\t\t}\n\t\t\t&__prefix {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size-indicator\"));\n\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\theight: deep-map-get($wizzard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\ttop: deep-map-get($wizzard-sizes, $size-xs, \"top\");\n\t\t\t\t+ #{$class}__header {\n\t\t\t\t\tpadding: deep-map-get($wizzard-sizes, $size-xs, \"header-padding\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__content {\n\t\t\t\tpadding: $wizzard-content-padding;\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $definitions in $wizzard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t@include parameter(\"collapsible\") {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__header {\n\t\t\t\t\t\t@include hover() {\n\t\t\t\t\t\t\tcolor: get(\"hover-color\", $definitions);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// HOVERS\n\t@at-root button#{&}__header {\n\t\t@include button-core();\n\t\tjustify-content: flex-start;\n\t\ttext-align: left;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&[size=\"#{$size-s}\"],\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-s, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-s, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizzard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\ttop: deep-map-get($wizzard-sizes, $size-s, \"top\");\n\t\t\t\t\t+ #{$class}__header {\n\t\t\t\t\t\tpadding: deep-map-get($wizzard-sizes, $size-s, \"header-padding\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-m, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-m, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizzard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\ttop: deep-map-get($wizzard-sizes, $size-m, \"top\");\n\t\t\t\t\t+ #{$class}__header {\n\t\t\t\t\t\tpadding: deep-map-get($wizzard-sizes, $size-m, \"header-padding\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@each $size, $definitions in $wizzard-sizes {\n\t\t\t&[size=\"#{$size}\"] {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\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 { govErrorLog } from \"../../helpers/Log/gov.log\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizesType, WizardVariants, WizardVariantsType, WizzardItemClass } from \"./constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { WizzardItemEvent } from \"./gov-wizzard-item.types\"\nimport Fragment from \"../../helpers/Fragment\"\n\nenum Tags {\n\tDIV = \"div\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-wizzard-item\",\n\tstyleUrl: \"gov-wizzard-item.scss\",\n})\nexport class GovWizzardItem {\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(\"GovWizzardItem\")\n\t\tthis.contentId = createID(\"GovWizzardContent\")\n\t}\n\n\t@Element() readonly host: HTMLGovWizzardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: WizardVariantsType = \"primary\"\n\t/**\n\t * Size of wizzard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Custom wizzard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines weather the wizzard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Item annotation of the wizzard\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Item label of the wizzard\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Makes the wizzard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by default\n\t */\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\n\t/**\n\t * Used to change the HTML tag in the accordion trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: \"label-tag\" }) readonly labelTag: string = \"h3\"\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizzardItemEvent>\n\n\t@Watch(\"label\")\n\tprivate validateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${WizzardItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch(\"labelTag\")\n\tprivate validateTriggerTag(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(`[${WizzardItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch(\"variant\")\n\tprivate validateVariant(newValue: string): void {\n\t\tvalidateProp(WizardVariants, newValue, WizzardItemClass.root)\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizzardItemClass.root })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.labelTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst LabelTag = this.labelTag\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\t\tconst prefixSlot = this.h.hasSlot(\"prefix\") && (<span class={WizzardItemClass.prefix}><slot name=\"prefix\" /></span>)\n\n\t\tconst label = (\n\t\t\t<LabelTag class={WizzardItemClass.title}>\n\t\t\t\t<span class={WizzardItemClass.name}>\n\t\t\t\t\t<span class={WizzardItemClass.label}>\n\t\t\t\t\t\t<span>{this.label}</span>\n\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizzardItemClass.arrow} name=\"chevron-down\"></gov-icon>}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t{this.annotation && <span class={WizzardItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t</span>\n\t\t\t</LabelTag>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizzardItemClass.root)} is-expanded={this.isExpanded} variant={this.variant} size={this.size} role=\"listitem\" collapsible={this.collapsible}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\t\tclass={WizzardItemClass.header}\n\t\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\tthis.collapsible ? this.toggle() : false\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t</Fragment>\n\t\t\t\t) : (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t\t<div class={WizzardItemClass.header}>{label}</div>\n\t\t\t\t\t</Fragment>\n\t\t\t\t)}\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizzardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\thidden={!this.isExpanded}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizzardItemClass.content} aria-hidden={booleanString(!this.isExpanded)} hidden={!this.isExpanded}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the Wizzard\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpanded = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the Wizzard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpanded = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizzard switch\n\t */\n\t@Method()\n\tpublic async toggle(): Promise<void> {\n\t\tthis.isExpanded = !this.isExpanded\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpanded\n\t}\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"gov-wizzard.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,aAAa,GAAG,0bAA0b;;MCcnc,UAAU;EAKtB;;;gBAO0C,GAAG;;;IAN5C,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAoBO,YAAY,CAAC,QAAgB;IACpCC,kBAAY,CAACC,qBAAW,EAAE,QAAQ,EAAEC,sBAAY,CAAC,IAAI,CAAC,CAAA;GACtD;EAED,iBAAiB;IAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC5B;EAED,gBAAgB;IACf,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAACC,0BAAgB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAgC;MAC1F,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;;;;;;;KAOrC,CAAC,CAAA;GACF;EAED,MAAM,kBAAkB;IACvB,IAAIC,2BAAuB,EAAE,EAAE;MAC9B,MAAMC,WAAK,CAAC,GAAG,CAAC,CAAA;MAChB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;KACzB;GACD;EAED,MAAM;IACL,QACCC,QAACC,UAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAACL,sBAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IAC1EI,qBAAQ,CACF,EACP;GACD;;;;EAMM,MAAM,YAAY;IACxBE,sBAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAEN,sBAAY,CAAC,IAAI,CAAC,CAAA;GACzE;;;;;;;;;;","names":["govHost","validateProp","WizardSizes","WizzardClass","WizzardItemClass","canValidateWcagOnRender","delay","h","Host","validateWcagLabel"],"sources":["../../../packages/core/src/components/gov-wizzard/gov-wizzard.scss?tag=gov-wizzard","../../../packages/core/src/components/gov-wizzard/gov-wizzard.tsx"],"sourcesContent":["/*\n * Wizzard\n */\n\n$class: \".gov-wizzard\";\n\n#{$class} {\n\t@include base();\n\t@include reset-last-margin();\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizes, WizardSizesType, WizzardClass, WizzardItemClass } from \"./constants\"\nimport { GovWizzardItemChangeEvent } from \"./gov-wizzard-item.d\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateWcagLabel } from \"../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\n\n@Component({\n\ttag: \"gov-wizzard\",\n\tstyleUrl: \"gov-wizzard.scss\",\n})\nexport class GovWizzard {\n\tprivate h: GovHost\n\n\t@Element() readonly host: HTMLGovWizzardElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t/**\n\t * Size of wizzard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Adds accessible label for the wizzard that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Called when the wizzard children state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<GovWizzardItemChangeEvent>\n\n\t@Watch(\"size\")\n\tprivate validateSize(newValue: string): void {\n\t\tvalidateProp(WizardSizes, newValue, WizzardClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(WizzardItemClass.root).forEach((child: HTMLGovWizzardItemElement) => {\n\t\t\tchild.setAttribute(\"size\", this.size)\n\t\t\t/*\n\t\t\tchild.addEventListener('gov-change', (e: GovWizzardItemCustomEvent<GovWizzardItemChangeEvent>) => {\n\t\t\t\te.stopPropagation()\n\t\t\t\tthis.govChange.emit(e.detail)\n\t\t\t})\n\t\t\t*/\n\t\t})\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizzardClass.root)} role=\"list\" size={this.size}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tpublic async validateWcag(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, WizzardClass.root)\n\t}\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"win-53f637d4.js","mappings":";;;;AAQO,MAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,WAAW,CAAA;AAErD,MAAM,iBAAiB,GAAG,CAAI,IAAY,KAA6B,QAAQ,IAAI,MAAM,IAAIA,cAAQ,CAAC,IAA2B,EAAE,MAAM,CAAC,CAAA;AAE1I,MAAM,MAAM,GAAG;EACd,MAAM,aAAa,GAAY;IAC9B,uBAAuB,EAAE,KAAK;IAC9B,SAAS,EAAE,gBAAgB;IAC3B,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI;GACxC,CAAA;EAED,MAAM,cAAc,GAAG,iBAAiB,CAAU,eAAe,CAAC,CAAA;EAClE,IAAI,cAAc,EAAE;IACnB,uCAAY,aAAa,GAAK,cAAc,EAAE;GAC9C;EAED,OAAO,aAAa,CAAA;AACrB,CAAC,CAAA;MAEY,uBAAuB,GAAG,MAA0C,MAAM,EAAE,CAAC,wBAAuB;MACpG,SAAS,GAAG,MAA4B,MAAM,EAAE,CAAC,UAAS;MAC1D,YAAY,GAAG,MAA+B,MAAM,EAAE,CAAC;;;;;;","names":["property"],"sources":["../../../packages/core/src/helpers/Dom/win.ts"],"sourcesContent":["import { property } from '../../utils/utils'\n\ninterface IConfig {\n\tcanValidateWcagOnRender: boolean\n\ticonsPath: string\n\tdocumentNode: Document\n}\n\nexport const isWindow = typeof window !== \"undefined\"\n\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => isWindow && window && property(name as keyof typeof window, window)\n\nconst config = (): IConfig => {\n\tconst defaultConfig: IConfig = {\n\t\tcanValidateWcagOnRender: false,\n\t\ticonsPath: './assets/icons',\n\t\tdocumentNode: document ? document : null,\n\t}\n\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\n\tif (windowProperty) {\n\t\treturn { ...defaultConfig, ...windowProperty }\n\t}\n\n\treturn defaultConfig\n}\n\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n"],"version":3}
@@ -1,20 +0,0 @@
1
- import { Variants } from "../../core/constants/variants";
2
- import { Sizes } from "../../core/constants/sizes";
3
- import { pick } from "../../utils/utils";
4
- export const WizardVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS']);
5
- export const WizardSizes = pick(Sizes, ['_XS', '_S', '_M']);
6
- export const WizzardClass = {
7
- root: 'gov-wizzard',
8
- };
9
- export const WizzardItemClass = {
10
- root: 'gov-wizzard-item',
11
- header: 'gov-wizzard-item__header',
12
- arrow: 'gov-wizzard-item__arrow',
13
- title: 'gov-wizzard-item__title',
14
- name: 'gov-wizzard-item__name',
15
- label: 'gov-wizzard-item__label',
16
- annot: 'gov-wizzard-item__annot',
17
- prefix: 'gov-wizzard-item__prefix',
18
- content: 'gov-wizzard-item__content',
19
- };
20
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-wizzard/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAGxC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;AAGrG,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAG3D,MAAM,CAAC,MAAM,YAAY,GAAG;EAC3B,IAAI,EAAE,aAAa;CACnB,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG;EAC/B,IAAI,EAAE,kBAAkB;EACxB,MAAM,EAAE,0BAA0B;EAClC,KAAK,EAAE,yBAAyB;EAChC,KAAK,EAAE,yBAAyB;EAChC,IAAI,EAAE,wBAAwB;EAC9B,KAAK,EAAE,yBAAyB;EAChC,KAAK,EAAE,yBAAyB;EAChC,MAAM,EAAE,0BAA0B;EAClC,OAAO,EAAE,2BAA2B;CACpC,CAAA","sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { Sizes } from '../../core/constants/sizes'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const WizardVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type WizardVariantsType = `${ValueOf<typeof WizardVariants>}`\n\nexport const WizardSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type WizardSizesType = `${ValueOf<typeof WizardSizes>}`\n\nexport const WizzardClass = {\n\troot: 'gov-wizzard',\n}\n\nexport const WizzardItemClass = {\n\troot: 'gov-wizzard-item',\n\theader: 'gov-wizzard-item__header',\n\tarrow: 'gov-wizzard-item__arrow',\n\ttitle: 'gov-wizzard-item__title',\n\tname: 'gov-wizzard-item__name',\n\tlabel: 'gov-wizzard-item__label',\n\tannot: 'gov-wizzard-item__annot',\n\tprefix: 'gov-wizzard-item__prefix',\n\tcontent: 'gov-wizzard-item__content',\n}\n"]}