@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
@@ -1 +0,0 @@
1
- {"file":"gov-wizzard-item.entry.cjs.js","mappings":";;;;;;;;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,+1SAA+1S;;ACUz3S,IAAK,IAGJ;AAHD,WAAK,IAAI;EACR,mBAAW,CAAA;EACX,yBAAiB,CAAA;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAMY,cAAc;EAK1B;;;mBAUgD,SAAS;gBAIf,GAAG;;uBAQL,KAAK;;;oBAYR,KAAK;sBAIsB,KAAK;oBAIP,IAAI;IAzCjE,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAA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","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"]}
@@ -1,471 +0,0 @@
1
- /* stylelint-disable */
2
- /* stylelint-enable */
3
- /* stylelint-disable */
4
- /* stylelint-enable */
5
- /* stylelint-disable */
6
- /* stylelint-enable */
7
- /* stylelint-disable */
8
- /* stylelint-enable */
9
- /* [Core] - Buttons
10
- ------------------------------------------------------------------ */
11
- /*
12
- * Gets color from theme-colors or from palette-colors
13
- */
14
- /*
15
- * Converts hex value to rgb colors value
16
- */
17
- /* stylelint-disable order/order */
18
- /* stylelint-enable order/order */
19
- /*
20
- * Generates list of utility classes for margin, padding
21
- *
22
- * Make sure $list of definitions is sorted so that last item is defined last
23
- * So largest views are mentioned last.
24
- */
25
- /*
26
- - Variables - Sizes
27
- */
28
- /* "Constants" for general usage */
29
- /*
30
- - Variables - Layout
31
- */
32
- /**
33
- * Utilities - Offset
34
- */
35
- /* stylelint-disable order/order */
36
- /* stylelint-enable order/order */
37
- /* stylelint-disable order/order */
38
- /* stylelint-enable order/order */
39
- /* stylelint-disable order/order */
40
- /* stylelint-enable order/order */
41
- /**
42
- * Generates CSS3 var with default value
43
- */
44
- /*
45
- - Variables - General
46
- */
47
- /*
48
- - Variables - Typography
49
- */
50
- /*
51
- - Variables - Variants
52
- */
53
- /*
54
- - Variables - Container
55
- */
56
- /*
57
- - Variables - Sizes
58
- */
59
- /* "Constants" for general usage */
60
- /*
61
- - Variables - Accordion
62
- */
63
- /*
64
- - Variables - Attachments
65
- */
66
- /*
67
- - Variables - Alert
68
- */
69
- /*
70
- - Variables - Backdrop
71
- */
72
- /*
73
- - Variables - Buttons (&& Badges)
74
- */
75
- /*
76
- - Variables - Breadcrumbs
77
- */
78
- /*
79
- - Variables - Classes
80
- */
81
- /*
82
- - Variables - Colors
83
- */
84
- /*
85
- - Variables - Control Group
86
- */
87
- /*
88
- - Variables - Cookiebar
89
- */
90
- /*
91
- - Variables - Dropdown
92
- */
93
- /*
94
- - Variables - Card
95
- */
96
- /*
97
- - Variables - Message
98
- */
99
- /*
100
- - Variables - Empty
101
- */
102
- /*
103
- - Variables - Error code
104
- */
105
- /*
106
- - Variables - Grid
107
- */
108
- /*
109
- - Variables - Tiles
110
- */
111
- /*
112
- - Variables - Modal & Prompt
113
- */
114
- /**
115
- * Utilities - Offset
116
- */
117
- /*
118
- - Variables - shadows
119
- */
120
- /* "Constants" for general usage */
121
- /*
122
- - Variables - Statsbar
123
- */
124
- /*
125
- - Variables - Tabs
126
- */
127
- /*
128
- - Variables - Tooltip
129
- */
130
- /*
131
- - Variables - Loading
132
- */
133
- /*
134
- - Variables - Forms
135
- */
136
- /*
137
- - Variables - Form Autocomplete
138
- */
139
- /*
140
- - Variables - Form Message
141
- */
142
- /*
143
- - Variables - Form label
144
- */
145
- /*
146
- - Variables - Form switch
147
- */
148
- /*
149
- - Variables - Form select
150
- */
151
- /*
152
- - Variables - Form input
153
- */
154
- /*
155
- - Variables - Form multiselect
156
- */
157
- /*
158
- - Variables - Form password power
159
- */
160
- /*
161
- - Variables - Form checkbox & radio
162
- */
163
- /*
164
- - Variables - Form group
165
- */
166
- /*
167
- - Variables - Form file
168
- */
169
- /*
170
- - Variables - Toast Message
171
- */
172
- /*
173
- - Variables - Wizzard
174
- */
175
- /*
176
- - Variables - Stepper
177
- */
178
- /*
179
- - Variables - Side nav
180
- */
181
- /*
182
- - Variables - Grid & Tile
183
- */
184
- /*
185
- - Variables - Pagination
186
- */
187
- /*
188
- - Variables - Nav
189
- */
190
- /*
191
- - Variables - Layout
192
- */
193
- .gov-spin-animation,
194
- .gov-pseudo-spin-animation::before {
195
- animation: spin 4s linear infinite;
196
- }
197
-
198
- @keyframes spin {
199
- 100% {
200
- transform: rotate(360deg);
201
- }
202
- }
203
- @keyframes countdown {
204
- to {
205
- transform: scaleX(0);
206
- }
207
- }
208
- @keyframes progress {
209
- 0% {
210
- background-position: -200px 0;
211
- }
212
- 100% {
213
- background-position: calc(200px + 100%) 0;
214
- }
215
- }
216
- @keyframes pulse {
217
- 0% {
218
- opacity: 1;
219
- }
220
- 50% {
221
- opacity: 0.4;
222
- }
223
- 100% {
224
- opacity: 1;
225
- }
226
- }
227
- /*
228
- * Wizzard - Item
229
- */
230
- /*
231
- * Wizzard & Stepper Shared Definitions
232
- */
233
- .gov-wizzard-item {
234
- position: relative;
235
- display: block;
236
- width: 100%;
237
- margin-bottom: 1rem;
238
- background: var(--gov-wizzard-bg-color, var(--gov-color-neutral-white));
239
- }
240
- .gov-wizzard-item__header {
241
- position: relative;
242
- width: 100%;
243
- }
244
- .gov-wizzard-item__arrow {
245
- flex: 0 0 auto;
246
- width: 0.75rem;
247
- height: 0.75rem;
248
- }
249
- .gov-wizzard-item__title {
250
- margin: 0;
251
- padding: 0;
252
- font-family: var(--gov-font-family, "Roboto", sans-serif);
253
- font-weight: 400;
254
- box-sizing: border-box;
255
- display: flex;
256
- gap: 1rem;
257
- align-items: baseline;
258
- }
259
- .gov-wizzard-item__prefix {
260
- display: flex;
261
- flex: 0 0 auto;
262
- justify-content: center;
263
- align-items: center;
264
- border-radius: 50%;
265
- text-align: center;
266
- }
267
- .gov-wizzard-item__prefix .gov-icon {
268
- width: 45%;
269
- height: 45%;
270
- }
271
- .gov-wizzard-item__prefix span[slot=prefix] {
272
- display: flex;
273
- justify-content: center;
274
- align-items: center;
275
- width: 100%;
276
- height: 100%;
277
- }
278
- .gov-wizzard-item__name {
279
- display: flex;
280
- flex-direction: column;
281
- }
282
- .gov-wizzard-item__label {
283
- display: flex;
284
- gap: 0.5rem;
285
- align-items: center;
286
- font-weight: var(--gov-wizzard-title-font-weight, 400);
287
- }
288
- .gov-wizzard-item__annot {
289
- color: var(--gov-color-secondary);
290
- }
291
- .gov-wizzard-item__content > *:last-child {
292
- margin-bottom: 0;
293
- }
294
- .gov-wizzard-item[variant=primary] .gov-wizzard-item__header {
295
- color: var(--gov-wizzard-primary-color, var(--gov-color-primary-800));
296
- }
297
- .gov-wizzard-item[variant=primary] .gov-wizzard-item__prefix {
298
- background: var(--gov-wizzard-primary-indicator-bg, var(--gov-color-primary-300));
299
- color: var(--gov-wizzard-primary-indicator-color, var(--gov-color-primary-800));
300
- }
301
- .gov-wizzard-item[variant=secondary] .gov-wizzard-item__header {
302
- color: var(--gov-wizzard-secondary-color, var(--gov-color-secondary-700));
303
- }
304
- .gov-wizzard-item[variant=secondary] .gov-wizzard-item__prefix {
305
- background: var(--gov-wizzard-secondary-indicator-bg, var(--gov-color-secondary-400));
306
- color: var(--gov-wizzard-secondary-indicator-color, var(--gov-color-secondary-700));
307
- }
308
- .gov-wizzard-item[variant=success] .gov-wizzard-item__header {
309
- color: var(--gov-wizzard-success-color, var(--gov-color-success-500));
310
- }
311
- .gov-wizzard-item[variant=success] .gov-wizzard-item__prefix {
312
- background: var(--gov-wizzard-success-indicator-bg, var(--gov-color-success));
313
- color: var(--gov-wizzard-success-indicator-color, var(--gov-color-neutral-white));
314
- }
315
- .gov-wizzard-item[variant=error] .gov-wizzard-item__header {
316
- color: var(--gov-wizzard-error-color, var(--gov-color-error-500));
317
- }
318
- .gov-wizzard-item[variant=error] .gov-wizzard-item__prefix {
319
- background: var(--gov-wizzard-error-indicator-bg, var(--gov-color-error));
320
- color: var(--gov-wizzard-error-indicator-color, var(--gov-color-neutral-white));
321
- }
322
- .gov-wizzard-item[variant=warning] .gov-wizzard-item__header {
323
- color: var(--gov-wizzard-warning-color, var(--gov-color-warning-500));
324
- }
325
- .gov-wizzard-item[variant=warning] .gov-wizzard-item__prefix {
326
- background: var(--gov-wizzard-warning-indicator-bg, var(--gov-color-warning));
327
- color: var(--gov-wizzard-warning-indicator-color, var(--gov-color-neutral-white));
328
- }
329
- .gov-wizzard-item__header {
330
- gap: 1rem;
331
- padding: 1rem;
332
- border-radius: 0;
333
- text-align: left;
334
- transition: 150ms linear color;
335
- }
336
- .gov-wizzard-item__header:focus {
337
- outline: none;
338
- }
339
- .gov-wizzard-item__header:focus-visible {
340
- border-radius: var(--gov-border-radius, 0.1875rem);
341
- outline: var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);
342
- outline-offset: 0;
343
- }
344
- .gov-wizzard-item__prefix {
345
- position: absolute;
346
- left: 1rem;
347
- }
348
- .gov-wizzard-item__header[aria-expanded=true] .gov-wizzard-item__label .gov-icon {
349
- transform: scale(-1);
350
- }
351
- .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 {
352
- font-weight: var(--gov-text-m-font-weight);
353
- font-size: var(--gov-text-m-font-size);
354
- line-height: var(--gov-text-m-line-height);
355
- letter-spacing: var(--gov-text-m-letter-spacing);
356
- }
357
- .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 {
358
- font-weight: var(--gov-text-s-font-weight);
359
- font-size: var(--gov-text-s-font-size);
360
- line-height: var(--gov-text-s-line-height);
361
- letter-spacing: var(--gov-text-s-letter-spacing);
362
- }
363
- .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 {
364
- font-weight: var(--gov-text-m-font-weight);
365
- font-size: var(--gov-text-m-font-size);
366
- line-height: var(--gov-text-m-line-height);
367
- letter-spacing: var(--gov-text-m-letter-spacing);
368
- width: var(--gov-wizzard-xs-indicator-size, 1.5rem);
369
- height: var(--gov-wizzard-xs-indicator-size, 1.5rem);
370
- top: var(--gov-wizzard-xs-top, 1rem);
371
- }
372
- .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 {
373
- padding: var(--gov-wizzard-xs-header-padding, 1rem 1rem 1rem 3.5rem);
374
- }
375
- .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 {
376
- padding: var(--gov-wizzard-content-padding, 0rem 1rem 1rem 1rem);
377
- }
378
- @media not all and (pointer: coarse) {
379
- .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 {
380
- color: var(--gov-wizzard-primary-hover-color, var(--gov-color-primary-900));
381
- }
382
- }
383
- @media not all and (pointer: coarse) {
384
- .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 {
385
- color: var(--gov-wizzard-secondary-hover-color, var(--gov-color-secondary-800));
386
- }
387
- }
388
- @media not all and (pointer: coarse) {
389
- .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 {
390
- color: var(--gov-wizzard-success-hover-color, var(--gov-color-success-600));
391
- }
392
- }
393
- @media not all and (pointer: coarse) {
394
- .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 {
395
- color: var(--gov-wizzard-error-hover-color, var(--gov-color-error-600));
396
- }
397
- }
398
- @media not all and (pointer: coarse) {
399
- .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 {
400
- color: var(--gov-wizzard-warning-hover-color, var(--gov-color-warning-600));
401
- }
402
- }
403
- button.gov-wizzard-item__header {
404
- display: inline-flex;
405
- vertical-align: middle;
406
- justify-content: center;
407
- align-items: center;
408
- border: 0;
409
- background-color: transparent;
410
- text-align: center;
411
- text-decoration: none;
412
- cursor: pointer;
413
- -webkit-appearance: none;
414
- -moz-appearance: none;
415
- appearance: none;
416
- justify-content: flex-start;
417
- text-align: left;
418
- }
419
- button.gov-wizzard-item__header:focus {
420
- outline: none;
421
- }
422
-
423
- @media (min-width: 30em) {
424
- .gov-wizzard-item[size=s] .gov-wizzard-item__title, .gov-wizzard-item[size=m] .gov-wizzard-item__title {
425
- font-weight: var(--gov-text-l-font-weight);
426
- font-size: var(--gov-text-l-font-size);
427
- line-height: var(--gov-text-l-line-height);
428
- letter-spacing: var(--gov-text-l-letter-spacing);
429
- }
430
- .gov-wizzard-item[size=s] .gov-wizzard-item__prefix, .gov-wizzard-item[size=m] .gov-wizzard-item__prefix {
431
- font-weight: var(--gov-text-xl-font-weight);
432
- font-size: var(--gov-text-xl-font-size);
433
- line-height: var(--gov-text-xl-line-height);
434
- letter-spacing: var(--gov-text-xl-letter-spacing);
435
- width: var(--gov-wizzard-s-indicator-size, 2rem);
436
- height: var(--gov-wizzard-s-indicator-size, 2rem);
437
- top: var(--gov-wizzard-s-top, 0.8125rem);
438
- }
439
- .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 {
440
- padding: var(--gov-wizzard-s-header-padding, 1rem 1rem 1rem 4rem);
441
- }
442
- }
443
- @media (min-width: 48em) {
444
- .gov-wizzard-item[size=m] .gov-wizzard-item__title {
445
- font-weight: var(--gov-text-l-font-weight);
446
- font-size: var(--gov-text-l-font-size);
447
- line-height: var(--gov-text-l-line-height);
448
- letter-spacing: var(--gov-text-l-letter-spacing);
449
- }
450
- .gov-wizzard-item[size=m] .gov-wizzard-item__prefix {
451
- font-weight: var(--gov-text-xl-font-weight);
452
- font-size: var(--gov-text-xl-font-size);
453
- line-height: var(--gov-text-xl-line-height);
454
- letter-spacing: var(--gov-text-xl-letter-spacing);
455
- width: var(--gov-wizzard-m-indicator-size, 2.5rem);
456
- height: var(--gov-wizzard-m-indicator-size, 2.5rem);
457
- top: var(--gov-wizzard-m-top, 0.5625rem);
458
- }
459
- .gov-wizzard-item[size=m] .gov-wizzard-item__prefix + .gov-wizzard-item__header {
460
- padding: var(--gov-wizzard-m-header-padding, 1rem 1rem 1rem 4.5rem);
461
- }
462
- .gov-wizzard-item[size=xs] .gov-wizzard-item__content {
463
- padding: var(--gov-wizzard-xs-content-padding, 0rem 1rem 1rem 3.5rem);
464
- }
465
- .gov-wizzard-item[size=s] .gov-wizzard-item__content {
466
- padding: var(--gov-wizzard-s-content-padding, 0rem 1rem 1rem 4rem);
467
- }
468
- .gov-wizzard-item[size=m] .gov-wizzard-item__content {
469
- padding: var(--gov-wizzard-m-content-padding, 0rem 1rem 1rem 4.5rem);
470
- }
471
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=gov-wizzard-item.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gov-wizzard-item.d.js","sourceRoot":"","sources":["../../../../../../src/components/gov-wizzard/gov-wizzard-item.d.tsx"],"names":[],"mappings":"","sourcesContent":["export interface GovWizzardItemChangeEvent {\n\topen: boolean\n\telement: HTMLGovWizzardItemElement\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"gov-wizzard-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-wizzard/gov-wizzard-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,E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UAAU,qBACP,SAAS;QAE1B,eAAQ,CACH,CACN,CAAC,CAAC,CAAC,CACH,WAAK,KAAK,EAAE,gBAAgB,CAAC,OAAO,iBAAe,aAAa,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,UAAU;QAC3G,eAAQ,CACH,CACN,CACK,CACP,CAAA;EACF,CAAC;EAED;;KAEG;EAEH,KAAK,CAAC,IAAI;IACT,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;IACtB,IAAI,CAAC,WAAW,EAAE,CAAA;EACnB,CAAC;EAED;;KAEG;EAEI,KAAK,CAAC,KAAK;IACjB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;IACvB,IAAI,CAAC,WAAW,EAAE,CAAA;EACnB,CAAC;EAED;;KAEG;EAEI,KAAK,CAAC,MAAM;IAClB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAA;IAClC,IAAI,CAAC,WAAW,EAAE,CAAA;EACnB,CAAC;EAED;;KAEG;EAEI,KAAK,CAAC,YAAY;IACxB,OAAO,IAAI,CAAC,UAAU,CAAA;EACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["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"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=gov-wizzard-item.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gov-wizzard-item.types.js","sourceRoot":"","sources":["../../../../../../src/components/gov-wizzard/gov-wizzard-item.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../types/event.types\"\n\nexport interface WizzardItemEvent extends GovBaseEvent {\n\texpanded: boolean\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"gov-wizzard.js","sourceRoot":"","sources":["../../../../../../src/components/gov-wizzard/gov-wizzard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAmB,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE1F,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,KAAK,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["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"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Wizzard.js","sourceRoot":"","sources":["../../../../../src/pages/Wizzard.ts"],"names":[],"mappings":"AAAA,MAAM,WAAY,SAAQ,WAAW;EACpC,iBAAiB;IAChB,IAAI,CAAC,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EhB,CAAA;EACF,CAAC;CACD;AAED,IAAI,cAAc,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,EAAE;EACrD,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAA;CAClD","sourcesContent":["class WizzardPage extends HTMLElement {\n\tconnectedCallback() {\n\t\tthis.innerHTML = `\n <h2>Wizzard</h2>\n\t\t\t<div class=\"gov-bg--secondary-300\" style=\"padding: 48px\">\n\t\t\t\t<gov-wizzard>\n\t\t\t\t\t<gov-wizzard-item label-tag=\"h1\" label=\"Font Awesome Icon\" variant=\"success\" collapsible>\n\t\t\t\t\t\t<span slot=\"prefix\"><gov-icon name=\"check-lg\"></gov-icon></span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Kontaktní osoby\" variant=\"primary\" is-expanded>\n\t\t\t\t\t\t<span slot=\"prefix\">2</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Působnost v agendách\" variant=\"secondary\" collapsible=\"false\">\n\t\t\t\t\t\t<span slot=\"prefix\">3</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Zřizované organizace\" variant=\"error\" collapsible annotation=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus.\">\n\t\t\t\t\t\t<span slot=\"prefix\">4</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Zřizované organizace\" variant=\"warning\" is-expanded>\n\t\t\t\t\t\t<span slot=\"prefix\">5</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t</gov-wizzard>\n\n\t\t\t\t<br><br>\n\n\t\t\t\t<gov-wizzard size=\"s\">\n\t\t\t\t\t<gov-wizzard-item label-tag=\"h1\" label=\"Font Awesome Icon\" variant=\"success\" annotation=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus.\" collapsible>\n\t\t\t\t\t\t<gov-icon slot=\"prefix\" name=\"check-lg\"></gov-icon>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Kontaktní osoby\" variant=\"primary\" is-expanded>\n\t\t\t\t\t\t<span slot=\"prefix\">2</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Působnost v agendách\" variant=\"secondary\">\n\t\t\t\t\t\t<span slot=\"prefix\">3</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Zřizované organizace\" variant=\"error\">\n\t\t\t\t\t\t<span slot=\"prefix\">4</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Zřizované organizace\" variant=\"warning\">\n\t\t\t\t\t\t<span slot=\"prefix\">5</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t</gov-wizzard>\n\t\t\t\t<br><br>\n\n\t\t\t\t<gov-wizzard size=\"xs\">\n\t\t\t\t\t<gov-wizzard-item label-tag=\"h1\" label=\"Font Awesome Icon\" variant=\"success\" annotation=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus.\" collapsible>\n\t\t\t\t\t\t<gov-icon slot=\"prefix\" name=\"check-lg\"></gov-icon>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Kontaktní osoby\" variant=\"primary\" is-expanded>\n\t\t\t\t\t\t<span slot=\"prefix\">2</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Působnost v agendách\" variant=\"secondary\">\n\t\t\t\t\t\t<span slot=\"prefix\">3</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Zřizované organizace\" variant=\"error\">\n\t\t\t\t\t\t<span slot=\"prefix\">4</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t\t<gov-wizzard-item label=\"Zřizované organizace\" variant=\"warning\">\n\t\t\t\t\t\t<span slot=\"prefix\">5</span>\n\t\t\t\t\t\t<p>Opět věc a stylování obsahu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula sollicitudin risus, quis tempor metus imperdiet vitae. Duis in blandit lacus.</p>\n\t\t\t\t\t</gov-wizzard-item>\n\t\t\t\t</gov-wizzard>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\nif (customElements.get('wizzard-page') === undefined) {\n\tcustomElements.define('wizzard-page', WizzardPage)\n}\n"]}