@gov-design-system-ce/components 0.0.66 → 0.0.67

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 (359) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
  3. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-accordion.cjs.entry.js +2 -2
  5. package/dist/cjs/gov-app.cjs.entry.js +159 -0
  6. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  7. package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
  8. package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
  9. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -2
  10. package/dist/cjs/gov-button.cjs.entry.js +8 -3
  11. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-card.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-chip.cjs.entry.js +6 -1
  14. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
  16. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  18. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
  19. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  20. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-form-file.cjs.entry.js +2 -2
  23. package/dist/cjs/gov-form-input.cjs.entry.js +2 -2
  24. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  25. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-form-multi-select.cjs.entry.js +73 -10
  27. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
  29. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  30. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-icon.cjs.entry.js +2 -2
  32. package/dist/cjs/gov-infobar.cjs.entry.js +3 -3
  33. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-modal.cjs.entry.js +11 -11
  35. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-nav.cjs.entry.js +2 -2
  37. package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
  38. package/dist/cjs/gov-prompt.cjs.entry.js +14 -14
  39. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -1
  40. package/dist/cjs/gov-side-nav.cjs.entry.js +2 -2
  41. package/dist/cjs/gov-skeleton.cjs.entry.js +2 -2
  42. package/dist/cjs/gov-statsbar-item.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  45. package/dist/cjs/gov-tag.cjs.entry.js +6 -1
  46. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  47. package/dist/cjs/gov-tooltip.cjs.entry.js +1 -1
  48. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-wizard.cjs.entry.js +2 -2
  50. package/dist/cjs/helpers-2c870ff5.js +19 -0
  51. package/dist/cjs/helpers-2c870ff5.js.map +1 -0
  52. package/dist/cjs/loader.cjs.js +1 -1
  53. package/dist/cjs/{wcag-d7912060.js → wcag-ebd590c0.js} +2 -2
  54. package/dist/cjs/{wcag-d7912060.js.map → wcag-ebd590c0.js.map} +1 -1
  55. package/dist/cjs/{win-0427c131.js → win-9d1a8a53.js} +2 -2
  56. package/dist/cjs/win-9d1a8a53.js.map +1 -0
  57. package/dist/collection/components/gov-accordion/gov-accordion-item.css +1 -0
  58. package/dist/collection/components/gov-button/button/gov-button.js +44 -5
  59. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  60. package/dist/collection/components/gov-chip/gov-chip.js +40 -1
  61. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  62. package/dist/collection/components/gov-control-group/constants.js +1 -1
  63. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  64. package/dist/collection/components/gov-control-group/gov-control-group.css +18 -0
  65. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  66. package/dist/collection/components/gov-error-code/gov-error-code.css +4 -4
  67. package/dist/collection/components/gov-form/control/gov-form-control.css +13 -13
  68. package/dist/collection/components/gov-form/label/gov-form-label.css +5 -0
  69. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +250 -11
  70. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  71. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
  72. package/dist/collection/components/gov-icon/helpers.js +14 -0
  73. package/dist/collection/components/gov-icon/helpers.js.map +1 -0
  74. package/dist/collection/components/gov-infobar/gov-infobar.css +3 -5
  75. package/dist/collection/components/gov-modal/gov-modal.js +13 -12
  76. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
  77. package/dist/collection/components/gov-promp/gov-prompt.js +18 -17
  78. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
  79. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +2 -2
  80. package/dist/collection/components/gov-tag/gov-tag.js +40 -1
  81. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  82. package/dist/collection/components/gov-tooltip/gov-tooltip.css +0 -2
  83. package/dist/collection/helpers/Dom/win.js +1 -1
  84. package/dist/collection/helpers/Dom/win.js.map +1 -1
  85. package/dist/collection/pages/Button.js +4 -0
  86. package/dist/collection/pages/Button.js.map +1 -1
  87. package/dist/collection/pages/ControlGroup.js +95 -0
  88. package/dist/collection/pages/ControlGroup.js.map +1 -1
  89. package/dist/collection/pages/Forms.js +16 -0
  90. package/dist/collection/pages/Forms.js.map +1 -1
  91. package/dist/collection/pages/Infobar.js +44 -0
  92. package/dist/collection/pages/Infobar.js.map +1 -1
  93. package/dist/collection/utils/helpers.types.js +54 -0
  94. package/dist/collection/utils/helpers.types.js.map +1 -0
  95. package/dist/components/gov-accordion-item.js +1 -1
  96. package/dist/components/gov-accordion-item.js.map +1 -1
  97. package/dist/components/gov-accordion.js +1 -1
  98. package/dist/components/gov-app.js +1 -1
  99. package/dist/components/gov-app.js.map +1 -1
  100. package/dist/components/gov-attachments-item.js +1 -1
  101. package/dist/components/gov-attachments.js +1 -1
  102. package/dist/components/gov-backdrop.js +1 -1
  103. package/dist/components/gov-breadcrumbs.js +1 -1
  104. package/dist/components/gov-button.js +1 -1
  105. package/dist/components/gov-card.js +1 -1
  106. package/dist/components/gov-chip.js +1 -1
  107. package/dist/components/gov-control-group.js +1 -1
  108. package/dist/components/gov-control-group.js.map +1 -1
  109. package/dist/components/gov-error-code.js +1 -1
  110. package/dist/components/gov-error-code.js.map +1 -1
  111. package/dist/components/gov-form-autocomplete.js +1 -1
  112. package/dist/components/gov-form-checkbox.js +1 -1
  113. package/dist/components/gov-form-control.js +1 -1
  114. package/dist/components/gov-form-control.js.map +1 -1
  115. package/dist/components/gov-form-file.js +1 -1
  116. package/dist/components/gov-form-input.js +1 -1
  117. package/dist/components/gov-form-label.js +1 -1
  118. package/dist/components/gov-form-label.js.map +1 -1
  119. package/dist/components/gov-form-multi-select.js +1 -1
  120. package/dist/components/gov-form-multi-select.js.map +1 -1
  121. package/dist/components/gov-form-radio.js +1 -1
  122. package/dist/components/gov-form-select.js +1 -1
  123. package/dist/components/gov-form-switch.js +1 -1
  124. package/dist/components/gov-icon.js +1 -1
  125. package/dist/components/gov-infobar.js +1 -1
  126. package/dist/components/gov-infobar.js.map +1 -1
  127. package/dist/components/gov-loading.js +1 -1
  128. package/dist/components/gov-modal.js +1 -1
  129. package/dist/components/gov-modal.js.map +1 -1
  130. package/dist/components/gov-nav.js +1 -1
  131. package/dist/components/gov-pagination.js +1 -1
  132. package/dist/components/gov-prompt.js +1 -1
  133. package/dist/components/gov-prompt.js.map +1 -1
  134. package/dist/components/gov-side-nav-item.js +1 -1
  135. package/dist/components/gov-side-nav.js +1 -1
  136. package/dist/components/gov-skeleton.js +1 -1
  137. package/dist/components/gov-statsbar-item.js +1 -1
  138. package/dist/components/gov-statsbar-item.js.map +1 -1
  139. package/dist/components/gov-tabs.js +1 -1
  140. package/dist/components/gov-tag.js +1 -1
  141. package/dist/components/gov-tag.js.map +1 -1
  142. package/dist/components/gov-tile.js +1 -1
  143. package/dist/components/gov-toast.js +1 -1
  144. package/dist/components/gov-tooltip-content.js +1 -1
  145. package/dist/components/gov-tooltip.js +1 -1
  146. package/dist/components/gov-tooltip.js.map +1 -1
  147. package/dist/components/gov-wizard-item.js +1 -1
  148. package/dist/components/gov-wizard.js +1 -1
  149. package/dist/components/p-00b7c4f5.js +2 -0
  150. package/dist/components/{p-d60bcfde.js → p-26dfbba1.js} +2 -2
  151. package/dist/components/p-2bf5b814.js +2 -0
  152. package/dist/components/p-2bf5b814.js.map +1 -0
  153. package/dist/{core/p-4bd25e13.entry.js → components/p-3e4eae42.js} +2 -2
  154. package/dist/components/p-3e4eae42.js.map +1 -0
  155. package/dist/components/{p-3718261d.js → p-464fc42a.js} +2 -2
  156. package/dist/components/{p-977c00bf.js → p-4fdfb242.js} +2 -2
  157. package/dist/components/{p-f2efd9b5.js → p-530fbb0a.js} +2 -2
  158. package/dist/components/{p-4d3ad11d.js → p-8cdad015.js} +2 -2
  159. package/dist/components/{p-01973e7c.js → p-a00cf51c.js} +2 -2
  160. package/dist/components/{p-517eadc5.js → p-a0a3393f.js} +2 -2
  161. package/dist/components/p-b07b6908.js +2 -0
  162. package/dist/components/p-b07b6908.js.map +1 -0
  163. package/dist/components/p-d23e6972.js +2 -0
  164. package/dist/components/p-d23e6972.js.map +1 -0
  165. package/dist/core/core.css +1 -1
  166. package/dist/core/core.esm.js +1 -1
  167. package/dist/core/core.esm.js.map +1 -1
  168. package/dist/core/{p-c0be9590.entry.js → p-093160bb.entry.js} +2 -2
  169. package/dist/core/{p-9af6210d.entry.js → p-0950ca8d.entry.js} +2 -2
  170. package/dist/core/{p-466f885b.entry.js → p-13942637.entry.js} +2 -2
  171. package/dist/core/p-13942637.entry.js.map +1 -0
  172. package/dist/core/p-1fd3d109.entry.js +2 -0
  173. package/dist/core/{p-2bcabdd5.entry.js.map → p-1fd3d109.entry.js.map} +1 -1
  174. package/dist/core/{p-965f24fb.entry.js → p-26921fac.entry.js} +2 -2
  175. package/dist/core/{p-c3e4700b.entry.js → p-28c83bdf.entry.js} +2 -2
  176. package/dist/core/p-2bf5b814.js +2 -0
  177. package/dist/core/p-2bf5b814.js.map +1 -0
  178. package/dist/core/p-31b93317.entry.js +2 -0
  179. package/dist/core/p-31b93317.entry.js.map +1 -0
  180. package/dist/core/{p-e9c0fac1.entry.js → p-3aa4cf18.entry.js} +2 -2
  181. package/dist/core/{p-029beaf4.entry.js → p-6b1c11ba.entry.js} +2 -2
  182. package/dist/core/p-6b1c11ba.entry.js.map +1 -0
  183. package/dist/core/p-74882c70.entry.js +2 -0
  184. package/dist/core/p-74882c70.entry.js.map +1 -0
  185. package/dist/core/{p-b3840f50.entry.js → p-79ca1b62.entry.js} +2 -2
  186. package/dist/core/{p-a54c1e85.entry.js → p-7cd73b1e.entry.js} +2 -2
  187. package/dist/core/p-878741b6.entry.js +2 -0
  188. package/dist/core/{p-9d4a6e9b.entry.js.map → p-878741b6.entry.js.map} +1 -1
  189. package/dist/core/{p-2016172f.entry.js → p-89b3e4d4.entry.js} +2 -2
  190. package/dist/core/{p-2016172f.entry.js.map → p-89b3e4d4.entry.js.map} +1 -1
  191. package/dist/core/p-9aeb4282.entry.js +2 -0
  192. package/dist/core/p-9aeb4282.entry.js.map +1 -0
  193. package/dist/core/{p-a3b6c5c7.entry.js → p-9d10131d.entry.js} +2 -2
  194. package/dist/core/p-a7d895cb.entry.js +2 -0
  195. package/dist/core/{p-7b7f8cc2.entry.js.map → p-a7d895cb.entry.js.map} +1 -1
  196. package/dist/core/{p-a133cdda.entry.js → p-acb40ea2.entry.js} +2 -2
  197. package/dist/core/{p-b49ac370.entry.js → p-af1433f7.entry.js} +2 -2
  198. package/dist/core/{p-eb0c9716.entry.js → p-ba7cbd7f.entry.js} +2 -2
  199. package/dist/core/p-bb7f0a66.entry.js +2 -0
  200. package/dist/core/p-bb7f0a66.entry.js.map +1 -0
  201. package/dist/core/p-bd763705.entry.js +2 -0
  202. package/dist/core/p-bd763705.entry.js.map +1 -0
  203. package/dist/core/p-bf39d442.entry.js +2 -0
  204. package/dist/core/p-bf39d442.entry.js.map +1 -0
  205. package/dist/core/p-c44d44df.entry.js +2 -0
  206. package/dist/core/p-c44d44df.entry.js.map +1 -0
  207. package/dist/core/{p-87b5668e.entry.js → p-cef10fe5.entry.js} +2 -2
  208. package/dist/core/p-d1a3e571.entry.js +2 -0
  209. package/dist/core/p-d1a3e571.entry.js.map +1 -0
  210. package/dist/core/p-d23e6972.js +2 -0
  211. package/dist/core/p-d23e6972.js.map +1 -0
  212. package/dist/core/{p-4accef73.entry.js → p-d4d59523.entry.js} +2 -2
  213. package/dist/core/p-ea275d90.entry.js +2 -0
  214. package/dist/core/p-ea275d90.entry.js.map +1 -0
  215. package/dist/core/p-ecc8cc47.entry.js +2 -0
  216. package/dist/core/p-ecc8cc47.entry.js.map +1 -0
  217. package/dist/core/p-ee35ca3f.entry.js +2 -0
  218. package/dist/core/p-ee35ca3f.entry.js.map +1 -0
  219. package/dist/core/{p-6833aeaf.entry.js → p-f4a6a339.entry.js} +2 -2
  220. package/dist/core/p-faabd332.js +2 -0
  221. package/dist/core/p-fc81b896.entry.js +2 -0
  222. package/dist/core/p-fc81b896.entry.js.map +1 -0
  223. package/dist/core/{p-83afcd5b.entry.js → p-fda41420.entry.js} +2 -2
  224. package/dist/esm/core.js +1 -1
  225. package/dist/esm/gov-accordion-item.entry.js +1 -1
  226. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  227. package/dist/esm/gov-accordion.entry.js +2 -2
  228. package/dist/esm/gov-app.entry.js +159 -0
  229. package/dist/esm/gov-app.entry.js.map +1 -1
  230. package/dist/esm/gov-attachments_3.entry.js +2 -2
  231. package/dist/esm/gov-backdrop.entry.js +2 -2
  232. package/dist/esm/gov-breadcrumbs.entry.js +2 -2
  233. package/dist/esm/gov-button.entry.js +8 -3
  234. package/dist/esm/gov-button.entry.js.map +1 -1
  235. package/dist/esm/gov-card.entry.js +2 -2
  236. package/dist/esm/gov-chip.entry.js +6 -1
  237. package/dist/esm/gov-chip.entry.js.map +1 -1
  238. package/dist/esm/gov-control-group.entry.js +2 -2
  239. package/dist/esm/gov-control-group.entry.js.map +1 -1
  240. package/dist/esm/gov-error-code.entry.js +1 -1
  241. package/dist/esm/gov-error-code.entry.js.map +1 -1
  242. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  243. package/dist/esm/gov-form-control.entry.js +1 -1
  244. package/dist/esm/gov-form-control.entry.js.map +1 -1
  245. package/dist/esm/gov-form-file.entry.js +2 -2
  246. package/dist/esm/gov-form-input.entry.js +2 -2
  247. package/dist/esm/gov-form-label.entry.js +1 -1
  248. package/dist/esm/gov-form-label.entry.js.map +1 -1
  249. package/dist/esm/gov-form-multi-select.entry.js +73 -10
  250. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  251. package/dist/esm/gov-form-radio.entry.js +2 -2
  252. package/dist/esm/gov-form-select.entry.js +2 -2
  253. package/dist/esm/gov-form-switch.entry.js +2 -2
  254. package/dist/esm/gov-icon.entry.js +2 -2
  255. package/dist/esm/gov-infobar.entry.js +3 -3
  256. package/dist/esm/gov-infobar.entry.js.map +1 -1
  257. package/dist/esm/gov-modal.entry.js +11 -11
  258. package/dist/esm/gov-modal.entry.js.map +1 -1
  259. package/dist/esm/gov-nav.entry.js +2 -2
  260. package/dist/esm/gov-pagination.entry.js +2 -2
  261. package/dist/esm/gov-prompt.entry.js +14 -14
  262. package/dist/esm/gov-prompt.entry.js.map +1 -1
  263. package/dist/esm/gov-side-nav.entry.js +2 -2
  264. package/dist/esm/gov-skeleton.entry.js +2 -2
  265. package/dist/esm/gov-statsbar-item.entry.js +1 -1
  266. package/dist/esm/gov-statsbar-item.entry.js.map +1 -1
  267. package/dist/esm/gov-tabs.entry.js +2 -2
  268. package/dist/esm/gov-tag.entry.js +6 -1
  269. package/dist/esm/gov-tag.entry.js.map +1 -1
  270. package/dist/esm/gov-tooltip.entry.js +1 -1
  271. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  272. package/dist/esm/gov-wizard.entry.js +2 -2
  273. package/dist/esm/helpers-bc0fd116.js +17 -0
  274. package/dist/esm/helpers-bc0fd116.js.map +1 -0
  275. package/dist/esm/loader.js +1 -1
  276. package/dist/esm/{wcag-06bd4d01.js → wcag-b7b67e25.js} +2 -2
  277. package/dist/esm/{wcag-06bd4d01.js.map → wcag-b7b67e25.js.map} +1 -1
  278. package/dist/esm/{win-0a50f66e.js → win-0d231cca.js} +2 -2
  279. package/dist/esm/win-0d231cca.js.map +1 -0
  280. package/dist/hydrate/index.js +305 -44
  281. package/dist/types/components/gov-button/button/gov-button.d.ts +9 -1
  282. package/dist/types/components/gov-chip/gov-chip.d.ts +8 -0
  283. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  284. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +33 -1
  285. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +1 -0
  286. package/dist/types/components/gov-icon/helpers.d.ts +5 -0
  287. package/dist/types/components/gov-modal/gov-modal.d.ts +3 -3
  288. package/dist/types/components/gov-promp/gov-prompt.d.ts +3 -3
  289. package/dist/types/components/gov-tag/gov-tag.d.ts +8 -0
  290. package/dist/types/components.d.ts +86 -2
  291. package/dist/types/utils/helpers.types.d.ts +49 -0
  292. package/package.json +2 -2
  293. package/dist/cjs/win-0427c131.js.map +0 -1
  294. package/dist/collection/helpers/StorybookDocsTemplate.js +0 -9
  295. package/dist/collection/helpers/StorybookDocsTemplate.js.map +0 -1
  296. package/dist/components/p-7fe7f6cd.js +0 -2
  297. package/dist/components/p-7fe7f6cd.js.map +0 -1
  298. package/dist/components/p-ae894a40.js +0 -2
  299. package/dist/components/p-cac3881f.js +0 -2
  300. package/dist/components/p-cac3881f.js.map +0 -1
  301. package/dist/components/p-d71d23ef.js +0 -2
  302. package/dist/components/p-d71d23ef.js.map +0 -1
  303. package/dist/core/p-029beaf4.entry.js.map +0 -1
  304. package/dist/core/p-14ca0233.entry.js +0 -2
  305. package/dist/core/p-14ca0233.entry.js.map +0 -1
  306. package/dist/core/p-2a95f9fb.entry.js +0 -2
  307. package/dist/core/p-2a95f9fb.entry.js.map +0 -1
  308. package/dist/core/p-2bcabdd5.entry.js +0 -2
  309. package/dist/core/p-356adceb.entry.js +0 -2
  310. package/dist/core/p-356adceb.entry.js.map +0 -1
  311. package/dist/core/p-3bd226fc.entry.js +0 -2
  312. package/dist/core/p-3bd226fc.entry.js.map +0 -1
  313. package/dist/core/p-466f885b.entry.js.map +0 -1
  314. package/dist/core/p-4bd25e13.entry.js.map +0 -1
  315. package/dist/core/p-53549fe4.entry.js +0 -2
  316. package/dist/core/p-53549fe4.entry.js.map +0 -1
  317. package/dist/core/p-570ef4e5.js +0 -2
  318. package/dist/core/p-603a9d99.entry.js +0 -2
  319. package/dist/core/p-603a9d99.entry.js.map +0 -1
  320. package/dist/core/p-7b7f8cc2.entry.js +0 -2
  321. package/dist/core/p-7d85bc32.entry.js +0 -2
  322. package/dist/core/p-7d85bc32.entry.js.map +0 -1
  323. package/dist/core/p-8811fe68.entry.js +0 -2
  324. package/dist/core/p-8811fe68.entry.js.map +0 -1
  325. package/dist/core/p-9d4a6e9b.entry.js +0 -2
  326. package/dist/core/p-a9493d11.entry.js +0 -2
  327. package/dist/core/p-a9493d11.entry.js.map +0 -1
  328. package/dist/core/p-c5e9da95.entry.js +0 -2
  329. package/dist/core/p-c5e9da95.entry.js.map +0 -1
  330. package/dist/core/p-cac3881f.js +0 -2
  331. package/dist/core/p-cac3881f.js.map +0 -1
  332. package/dist/core/p-d4c468b9.entry.js +0 -2
  333. package/dist/core/p-d4c468b9.entry.js.map +0 -1
  334. package/dist/esm/win-0a50f66e.js.map +0 -1
  335. package/dist/types/helpers/StorybookDocsTemplate.d.ts +0 -3
  336. /package/dist/components/{p-ae894a40.js.map → p-00b7c4f5.js.map} +0 -0
  337. /package/dist/components/{p-d60bcfde.js.map → p-26dfbba1.js.map} +0 -0
  338. /package/dist/components/{p-3718261d.js.map → p-464fc42a.js.map} +0 -0
  339. /package/dist/components/{p-977c00bf.js.map → p-4fdfb242.js.map} +0 -0
  340. /package/dist/components/{p-f2efd9b5.js.map → p-530fbb0a.js.map} +0 -0
  341. /package/dist/components/{p-4d3ad11d.js.map → p-8cdad015.js.map} +0 -0
  342. /package/dist/components/{p-01973e7c.js.map → p-a00cf51c.js.map} +0 -0
  343. /package/dist/components/{p-517eadc5.js.map → p-a0a3393f.js.map} +0 -0
  344. /package/dist/core/{p-c0be9590.entry.js.map → p-093160bb.entry.js.map} +0 -0
  345. /package/dist/core/{p-9af6210d.entry.js.map → p-0950ca8d.entry.js.map} +0 -0
  346. /package/dist/core/{p-965f24fb.entry.js.map → p-26921fac.entry.js.map} +0 -0
  347. /package/dist/core/{p-c3e4700b.entry.js.map → p-28c83bdf.entry.js.map} +0 -0
  348. /package/dist/core/{p-e9c0fac1.entry.js.map → p-3aa4cf18.entry.js.map} +0 -0
  349. /package/dist/core/{p-b3840f50.entry.js.map → p-79ca1b62.entry.js.map} +0 -0
  350. /package/dist/core/{p-a54c1e85.entry.js.map → p-7cd73b1e.entry.js.map} +0 -0
  351. /package/dist/core/{p-a3b6c5c7.entry.js.map → p-9d10131d.entry.js.map} +0 -0
  352. /package/dist/core/{p-a133cdda.entry.js.map → p-acb40ea2.entry.js.map} +0 -0
  353. /package/dist/core/{p-b49ac370.entry.js.map → p-af1433f7.entry.js.map} +0 -0
  354. /package/dist/core/{p-eb0c9716.entry.js.map → p-ba7cbd7f.entry.js.map} +0 -0
  355. /package/dist/core/{p-87b5668e.entry.js.map → p-cef10fe5.entry.js.map} +0 -0
  356. /package/dist/core/{p-4accef73.entry.js.map → p-d4d59523.entry.js.map} +0 -0
  357. /package/dist/core/{p-6833aeaf.entry.js.map → p-f4a6a339.entry.js.map} +0 -0
  358. /package/dist/core/{p-570ef4e5.js.map → p-faabd332.js.map} +0 -0
  359. /package/dist/core/{p-83afcd5b.entry.js.map → p-fda41420.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "../../../stencil-public-runtime";
2
- import { ButtonSizesType, NativeTypesType, TypesType, ButtonVariantType, ButtonTargetType } from "./constants";
2
+ import { ButtonSizesType, ButtonTargetType, ButtonVariantType, NativeTypesType, TypesType } from "./constants";
3
3
  import { ButtonEvent } from "./gov-button.types";
4
4
  export declare class GovButton {
5
5
  private h;
@@ -30,6 +30,14 @@ export declare class GovButton {
30
30
  * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute
31
31
  */
32
32
  readonly name: string;
33
+ /**
34
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
35
+ */
36
+ readonly iconLeft?: string;
37
+ /**
38
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
39
+ */
40
+ readonly iconRight?: string;
33
41
  /**
34
42
  * Makes the button component disabled.
35
43
  * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies
@@ -26,6 +26,14 @@ export declare class GovChip {
26
26
  * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target
27
27
  */
28
28
  readonly target: string;
29
+ /**
30
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
31
+ */
32
+ readonly iconLeft?: string;
33
+ /**
34
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
35
+ */
36
+ readonly iconRight?: string;
29
37
  /**
30
38
  * Chip’s size.
31
39
  */
@@ -1,6 +1,6 @@
1
1
  import { Variants } from '../../core/constants/variants';
2
2
  import { ValueOf } from '../../types/interfaces';
3
- export declare const ControlGroupVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY">;
3
+ export declare const ControlGroupVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY" | "SUCCESS" | "ERROR" | "WARNING">;
4
4
  export type ControlGroupVariantType = `${ValueOf<typeof ControlGroupVariants>}`;
5
5
  export declare const ControlGroupClass: {
6
6
  root: string;
@@ -30,6 +30,10 @@ export declare class GovFormMultiSelect {
30
30
  * Name of the select.
31
31
  */
32
32
  readonly name: string;
33
+ /**
34
+ * Option to hide the list of selected items
35
+ */
36
+ readonly hideSelectedList: boolean;
33
37
  /**
34
38
  * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.
35
39
  * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
@@ -80,12 +84,20 @@ export declare class GovFormMultiSelect {
80
84
  * Emitted when the select change value.
81
85
  */
82
86
  govChange: EventEmitter<FormMultiselectEvent>;
87
+ /**
88
+ * Emitted when an item is selected
89
+ */
90
+ govSelect: EventEmitter<FormMultiselectEvent>;
91
+ /**
92
+ * Emitted when an item is removed
93
+ */
94
+ govRemove: EventEmitter<FormMultiselectEvent>;
83
95
  focused: boolean;
84
96
  value: string;
85
97
  selectedOptions: GovFormMultiSelectItem[];
98
+ options: GovFormMultiSelectItem[];
86
99
  validateVariant(newValue: string): void;
87
100
  validateSize(newValue: string): void;
88
- emitChange(newValue: GovFormMultiSelectItem[]): void;
89
101
  watchDisabled(): void;
90
102
  private passControlAttrs;
91
103
  componentWillLoad(): void;
@@ -114,6 +126,26 @@ export declare class GovFormMultiSelect {
114
126
  * Returns an instance of the native html select element
115
127
  */
116
128
  getRef(): Promise<HTMLSelectElement>;
129
+ /**
130
+ * Returns a list of selected items
131
+ */
132
+ getSelectedOptions(): Promise<GovFormMultiSelectItem[]>;
133
+ /**
134
+ * Setting a list of options to choose from
135
+ */
136
+ setOptions(options: GovFormMultiSelectItem[]): Promise<void>;
137
+ /**
138
+ * Setting the list of selected options
139
+ */
140
+ setSelectedOptions(options: GovFormMultiSelectItem[]): Promise<void>;
141
+ /**
142
+ * To remove an option from the selected list
143
+ */
144
+ removeSelectedOption(option: GovFormMultiSelectItem): Promise<void>;
145
+ /**
146
+ * Returns an instance of the native html select element
147
+ */
148
+ setSelectedOption(option: GovFormMultiSelectItem): Promise<void>;
117
149
  /**
118
150
  * Validate the WCAG attributes of the component
119
151
  */
@@ -2,6 +2,7 @@ import { GovBaseEvent } from "../../../types/event.types";
2
2
  export interface GovFormMultiSelectItem {
3
3
  name: string;
4
4
  value: string;
5
+ disabled?: boolean;
5
6
  }
6
7
  export interface FormMultiselectEvent extends GovBaseEvent {
7
8
  value: GovFormMultiSelectItem[];
@@ -0,0 +1,5 @@
1
+ import { Nullable } from "../../types/interfaces";
2
+ export declare const prepareIconFormat: (value: string) => Nullable<{
3
+ type: string;
4
+ name: string;
5
+ }>;
@@ -1,5 +1,5 @@
1
- import { EventEmitter } from "../../stencil-public-runtime";
2
- import { Nullable } from "../../types/interfaces";
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { Nullable } from '../../types/interfaces';
3
3
  export declare class GovModal {
4
4
  private h;
5
5
  private readonly labelId;
@@ -37,7 +37,7 @@ export declare class GovModal {
37
37
  /**
38
38
  * Adds accessible label for the modal close button that is only shown for screen readers.
39
39
  */
40
- wcagCloseLabel: string;
40
+ readonly wcagCloseLabel: string;
41
41
  /**
42
42
  * A string of identifiers that indicate alternative label elements for closing the modal window
43
43
  */
@@ -1,5 +1,5 @@
1
- import { EventEmitter } from "../../stencil-public-runtime";
2
- import { Nullable } from "../../types/interfaces";
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { Nullable } from '../../types/interfaces';
3
3
  export declare class GovPrompt {
4
4
  private h;
5
5
  private readonly labelId;
@@ -33,7 +33,7 @@ export declare class GovPrompt {
33
33
  /**
34
34
  * Adds accessible label for the modal close button that is only shown for screen readers.
35
35
  */
36
- wcagCloseLabel: string;
36
+ readonly wcagCloseLabel: string;
37
37
  /**
38
38
  * A string of identifiers that indicate alternative label elements for closing the modal window
39
39
  */
@@ -7,6 +7,14 @@ export declare class GovTag {
7
7
  * Determine if component should have inverse colors to be used on dark background
8
8
  */
9
9
  readonly inverse: boolean;
10
+ /**
11
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
12
+ */
13
+ readonly iconLeft?: string;
14
+ /**
15
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
16
+ */
17
+ readonly iconRight?: string;
10
18
  /**
11
19
  * Tag’s size.
12
20
  */
@@ -28,7 +28,7 @@ import { FormInputEvent } from "./components/gov-form/input/gov-form-input.types
28
28
  import { FormLabelSizesTypes } from "./components/gov-form/label/constants";
29
29
  import { FormMessageVariantType } from "./components/gov-form/message/constants";
30
30
  import { FormMultiselectSizesType, FormMultiselectVariantType } from "./components/gov-form/multiselect/constants";
31
- import { FormMultiselectEvent } from "./components/gov-form/multiselect/gov-form-multi-select.types";
31
+ import { FormMultiselectEvent, GovFormMultiSelectItem } from "./components/gov-form/multiselect/gov-form-multi-select.types";
32
32
  import { FormRadioSizesType } from "./components/gov-form/radio/constants";
33
33
  import { FormRadioEvent } from "./components/gov-form/radio/gov-form-radio.types";
34
34
  import { FormSearchVariantType } from "./components/gov-form/search/constants";
@@ -77,7 +77,7 @@ export { FormInputEvent } from "./components/gov-form/input/gov-form-input.types
77
77
  export { FormLabelSizesTypes } from "./components/gov-form/label/constants";
78
78
  export { FormMessageVariantType } from "./components/gov-form/message/constants";
79
79
  export { FormMultiselectSizesType, FormMultiselectVariantType } from "./components/gov-form/multiselect/constants";
80
- export { FormMultiselectEvent } from "./components/gov-form/multiselect/gov-form-multi-select.types";
80
+ export { FormMultiselectEvent, GovFormMultiSelectItem } from "./components/gov-form/multiselect/gov-form-multi-select.types";
81
81
  export { FormRadioSizesType } from "./components/gov-form/radio/constants";
82
82
  export { FormRadioEvent } from "./components/gov-form/radio/gov-form-radio.types";
83
83
  export { FormSearchVariantType } from "./components/gov-form/search/constants";
@@ -271,6 +271,14 @@ export namespace Components {
271
271
  * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang
272
272
  */
273
273
  "hreflang": string;
274
+ /**
275
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
276
+ */
277
+ "iconLeft"?: string;
278
+ /**
279
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
280
+ */
281
+ "iconRight"?: string;
274
282
  /**
275
283
  * Custom button identifier
276
284
  */
@@ -440,6 +448,14 @@ export namespace Components {
440
448
  * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href
441
449
  */
442
450
  "href": string;
451
+ /**
452
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
453
+ */
454
+ "iconLeft"?: string;
455
+ /**
456
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
457
+ */
458
+ "iconRight"?: string;
443
459
  /**
444
460
  * Custom chip identifier. Otherwise, it will be generated
445
461
  */
@@ -982,6 +998,14 @@ export namespace Components {
982
998
  * Returns an instance of the native html select element
983
999
  */
984
1000
  "getRef": () => Promise<HTMLSelectElement>;
1001
+ /**
1002
+ * Returns a list of selected items
1003
+ */
1004
+ "getSelectedOptions": () => Promise<GovFormMultiSelectItem[]>;
1005
+ /**
1006
+ * Option to hide the list of selected items
1007
+ */
1008
+ "hideSelectedList": boolean;
985
1009
  /**
986
1010
  * Custom select identifier.
987
1011
  */
@@ -1006,6 +1030,10 @@ export namespace Components {
1006
1030
  * Custom select placeholder.
1007
1031
  */
1008
1032
  "placeholder": string;
1033
+ /**
1034
+ * To remove an option from the selected list
1035
+ */
1036
+ "removeSelectedOption": (option: GovFormMultiSelectItem) => Promise<void>;
1009
1037
  /**
1010
1038
  * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
1011
1039
  */
@@ -1014,6 +1042,18 @@ export namespace Components {
1014
1042
  * Returns the current state of the component
1015
1043
  */
1016
1044
  "setFocus": (options?: FocusOptions) => Promise<void>;
1045
+ /**
1046
+ * Setting a list of options to choose from
1047
+ */
1048
+ "setOptions": (options: GovFormMultiSelectItem[]) => Promise<void>;
1049
+ /**
1050
+ * Returns an instance of the native html select element
1051
+ */
1052
+ "setSelectedOption": (option: GovFormMultiSelectItem) => Promise<void>;
1053
+ /**
1054
+ * Setting the list of selected options
1055
+ */
1056
+ "setSelectedOptions": (options: GovFormMultiSelectItem[]) => Promise<void>;
1017
1057
  /**
1018
1058
  * Sets the ordered value of the element
1019
1059
  */
@@ -1758,6 +1798,14 @@ export namespace Components {
1758
1798
  "triggerIdentifier": string;
1759
1799
  }
1760
1800
  interface GovTag {
1801
+ /**
1802
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
1803
+ */
1804
+ "iconLeft"?: string;
1805
+ /**
1806
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
1807
+ */
1808
+ "iconRight"?: string;
1761
1809
  /**
1762
1810
  * Determine if component should have inverse colors to be used on dark background
1763
1811
  */
@@ -2658,6 +2706,14 @@ declare namespace LocalJSX {
2658
2706
  * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang
2659
2707
  */
2660
2708
  "hreflang"?: string;
2709
+ /**
2710
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
2711
+ */
2712
+ "iconLeft"?: string;
2713
+ /**
2714
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
2715
+ */
2716
+ "iconRight"?: string;
2661
2717
  /**
2662
2718
  * Custom button identifier
2663
2719
  */
@@ -2815,6 +2871,14 @@ declare namespace LocalJSX {
2815
2871
  * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href
2816
2872
  */
2817
2873
  "href"?: string;
2874
+ /**
2875
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
2876
+ */
2877
+ "iconLeft"?: string;
2878
+ /**
2879
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
2880
+ */
2881
+ "iconRight"?: string;
2818
2882
  /**
2819
2883
  * Custom chip identifier. Otherwise, it will be generated
2820
2884
  */
@@ -3343,6 +3407,10 @@ declare namespace LocalJSX {
3343
3407
  * Makes the select component disabled. This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.
3344
3408
  */
3345
3409
  "disabled"?: boolean;
3410
+ /**
3411
+ * Option to hide the list of selected items
3412
+ */
3413
+ "hideSelectedList"?: boolean;
3346
3414
  /**
3347
3415
  * Custom select identifier.
3348
3416
  */
@@ -3375,6 +3443,14 @@ declare namespace LocalJSX {
3375
3443
  * Emitted when the select has focus.
3376
3444
  */
3377
3445
  "onGov-focus"?: (event: GovFormMultiSelectCustomEvent<FormMultiselectEvent>) => void;
3446
+ /**
3447
+ * Emitted when an item is removed
3448
+ */
3449
+ "onGov-remove"?: (event: GovFormMultiSelectCustomEvent<FormMultiselectEvent>) => void;
3450
+ /**
3451
+ * Emitted when an item is selected
3452
+ */
3453
+ "onGov-select"?: (event: GovFormMultiSelectCustomEvent<FormMultiselectEvent>) => void;
3378
3454
  /**
3379
3455
  * Custom select placeholder.
3380
3456
  */
@@ -4063,6 +4139,14 @@ declare namespace LocalJSX {
4063
4139
  "triggerIdentifier"?: string;
4064
4140
  }
4065
4141
  interface GovTag {
4142
+ /**
4143
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
4144
+ */
4145
+ "iconLeft"?: string;
4146
+ /**
4147
+ * Definition of the button icon on the left. The icon must be defined in the form "type/name".
4148
+ */
4149
+ "iconRight"?: string;
4066
4150
  /**
4067
4151
  * Determine if component should have inverse colors to be used on dark background
4068
4152
  */
@@ -0,0 +1,49 @@
1
+ export type Optional<T> = T | undefined;
2
+ export type Nullable<T> = T | null;
3
+ export type OptionalProperty<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
4
+ export type ValueOf<T> = T[keyof T];
5
+ export type DeepPartial<T> = {
6
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
7
+ };
8
+ export type ObjectOrArrayType<T> = T | T[];
9
+ export declare const ObjectOrArray: {
10
+ first: <T>(item: ObjectOrArrayType<T>) => T;
11
+ array: <T_1>(item: ObjectOrArrayType<T_1>) => T_1[];
12
+ };
13
+ export declare const Omit: <T extends object, P extends keyof T, R extends Omit<T, P>>(properties: P[], object: T) => R;
14
+ export declare const whenDefined: <I, O>(fn: (input: I) => O) => (value?: I) => O;
15
+ /**
16
+ * Comparator function which defines the sort order
17
+ * @example
18
+ * ```
19
+ * // sorts objects by `id` property
20
+ * [{ id: 3 }, { id: 2 }, { id: 1 }].sort(compare(['id']))
21
+ *
22
+ * // sorts objects by `id` and `name` properties
23
+ * [{ id: 3, name: 'b' }, { id: 2, name: 'a' }, { id: 1, name: 'b' }].sort(compare(['id', 'name']))
24
+ * ```
25
+ *
26
+ * @param {Array<keyof T>} properties
27
+ * @return {number}
28
+ */
29
+ export declare const compare: <T extends object>(properties: (keyof T)[]) => (a: T, b: T) => number;
30
+ export declare const is: <T>(value: T) => value is T;
31
+ export declare const has: <T extends object, P extends keyof T>(property: P) => (object: OptionalProperty<T, P>) => object is T;
32
+ export declare const equals: <A>(a?: A) => (b?: A) => boolean;
33
+ export declare const prop: <T, P extends keyof T>(property: P) => (object: T) => T[P];
34
+ export declare const propOptional: <T, P extends keyof T>(property: P) => (object?: T) => T[P];
35
+ export declare const hasOwnProperty: <X extends object, Y extends PropertyKey>(obj: X, prop: Y) => obj is X & Record<Y, ValueOf<X>>;
36
+ export declare const isObject: <T extends object>(obj: unknown) => obj is T;
37
+ export declare const isString: (input: unknown) => input is string;
38
+ export declare const isNumber: (input: unknown) => input is string;
39
+ type Entries<T> = {
40
+ [K in keyof T]: [K, T[K]];
41
+ }[keyof T][];
42
+ export declare const getEntries: <T extends object>(obj: T) => Entries<T>;
43
+ export declare const getKeys: <T extends object>(obj: T) => (keyof T)[];
44
+ export declare const getValues: <T extends object>(obj: T) => ValueOf<T>[];
45
+ export declare const first: <T>(array: T[]) => T;
46
+ export declare const pairs: <T>(arr: T[]) => Array<[string, string]>;
47
+ export declare const find: <T, S extends T>(predicate: (item: T) => item is S) => (array?: T[]) => S;
48
+ export declare const filter: <T, S extends T>(predicate: (item: T) => item is S) => (array?: T[]) => S[];
49
+ export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gov-design-system-ce/components",
3
3
  "description": "This package includes Gov Design System Web Components and related utilities.",
4
4
  "author": "Zdeněk Vítek",
5
- "version": "0.0.66",
5
+ "version": "0.0.67",
6
6
  "license": "EUPL v1.2 Licensed",
7
7
  "main": "./dist/index.cjs.js",
8
8
  "unpkg": "./dist/core/core.esm.js",
@@ -24,6 +24,6 @@
24
24
  "dependencies" : {
25
25
  "@gov-design-system-ce/icons": "0.0.12",
26
26
  "@gov-design-system-ce/fonts": "0.0.2",
27
- "@gov-design-system-ce/styles": "0.0.14"
27
+ "@gov-design-system-ce/styles": "0.0.15"
28
28
  }
29
29
  }
@@ -1 +0,0 @@
1
- {"file":"win-0427c131.js","mappings":";;;;AASO,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,aAAa,EAAE,IAAI;IACnB,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,aAAa,GAAG,MAAgC,MAAM,EAAE,CAAC,cAAa;MACtE,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\ticonsLazyLoad: boolean\n\tdocumentNode: Document\n}\n\nexport const isWindow = typeof window !== \"undefined\"\n\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => isWindow && window && property(name as keyof typeof window, window)\n\nconst config = (): IConfig => {\n\tconst defaultConfig: IConfig = {\n\t\tcanValidateWcagOnRender: false,\n\t\ticonsPath: './assets/icons',\n\t\ticonsLazyLoad: true,\n\t\tdocumentNode: document ? document : null,\n\t}\n\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\n\tif (windowProperty) {\n\t\treturn { ...defaultConfig, ...windowProperty }\n\t}\n\n\treturn defaultConfig\n}\n\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const iconsLazyLoad = (): IConfig['iconsLazyLoad'] => config().iconsLazyLoad\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n"],"version":3}
@@ -1,9 +0,0 @@
1
- import { ArgsTable, Stories, PRIMARY_STORY, Primary as PrimaryStory } from "@storybook/addon-docs";
2
- import React from "react";
3
- import { h } from "@stencil/core";
4
- export const docsPage = (component, Readme) => {
5
- return {
6
- page: () => (h(React.Fragment, null, h("h1", null, component), h("h2", null, "Playground"), h(PrimaryStory, null), h(ArgsTable, { story: PRIMARY_STORY }), h("h2", null, "Stories"), h(Stories, { title: "", includePrimary: false }), h(Readme, null))),
7
- };
8
- };
9
- //# sourceMappingURL=StorybookDocsTemplate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorybookDocsTemplate.js","sourceRoot":"","sources":["../../../../../src/helpers/StorybookDocsTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAClG,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AACjC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,SAAiB,EAAE,MAAc,EAAE,EAAE;EAC7D,OAAO;IACN,IAAI,EAAE,GAAG,EAAE,CAAC,CACX,EAAC,KAAK,CAAC,QAAQ;MACd,cAAK,SAAS,CAAM;MAEpB,2BAAmB;MACnB,EAAC,YAAY,OAAG;MAChB,EAAC,SAAS,IAAC,KAAK,EAAE,aAAa,GAAI;MAEnC,wBAAgB;MAChB,EAAC,OAAO,IAAC,KAAK,EAAC,EAAE,EAAC,cAAc,EAAE,KAAK,GAAI;MAC3C,EAAC,MAAM,OAAG,CACM,CACjB;GACD,CAAA;AACF,CAAC,CAAA","sourcesContent":["import { ArgsTable, Stories, PRIMARY_STORY, Primary as PrimaryStory } from '@storybook/addon-docs'\nimport React from 'react'\nimport { h } from '@stencil/core'\nexport const docsPage = (component: string, Readme: string) => {\n\treturn {\n\t\tpage: () => (\n\t\t\t<React.Fragment>\n\t\t\t\t<h1>{component}</h1>\n\n\t\t\t\t<h2>Playground</h2>\n\t\t\t\t<PrimaryStory />\n\t\t\t\t<ArgsTable story={PRIMARY_STORY} />\n\n\t\t\t\t<h2>Stories</h2>\n\t\t\t\t<Stories title=\"\" includePrimary={false} />\n\t\t\t\t<Readme />\n\t\t\t</React.Fragment>\n\t\t),\n\t}\n}\n"]}