@gov-design-system-ce/components 0.0.58 → 0.0.59

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 (302) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-app.cjs.entry.js +96 -37
  3. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  5. package/dist/cjs/gov-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
  7. package/dist/cjs/gov-button.cjs.entry.js +1 -1
  8. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  10. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  11. package/dist/cjs/gov-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/gov-infobar.cjs.entry.js +90 -0
  13. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -0
  14. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  15. package/dist/cjs/gov-tooltip-content.cjs.entry.js +16 -4
  16. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-tooltip.cjs.entry.js +73 -46
  18. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  19. package/dist/cjs/index-83edd4fe.js +4 -4
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/collection/collection-manifest.json +1 -1
  22. package/dist/collection/components/gov-accordion/gov-accordion-item.css +1 -1
  23. package/dist/collection/components/gov-accordion/gov-accordion.css +1 -1
  24. package/dist/collection/components/gov-app/gov-app.css +1 -1
  25. package/dist/collection/components/gov-app/gov-app.js +2 -2
  26. package/dist/collection/components/gov-app/gov-app.js.map +1 -1
  27. package/dist/collection/components/gov-attachments/gov-attachments-item.css +1 -1
  28. package/dist/collection/components/gov-attachments/gov-attachments.css +1 -1
  29. package/dist/collection/components/gov-backdrop/gov-backdrop.css +1 -1
  30. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  31. package/dist/collection/components/gov-badge/gov-badge.css +41 -11
  32. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +1 -1
  33. package/dist/collection/components/gov-button/default/gov-button.css +10 -1
  34. package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +1 -1
  35. package/dist/collection/components/gov-card/gov-card.css +1 -1
  36. package/dist/collection/components/gov-container/gov-container.css +1 -1
  37. package/dist/collection/components/gov-control-group/gov-control-group.css +1 -1
  38. package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +1 -1
  39. package/dist/collection/components/gov-empty/gov-empty.css +1 -1
  40. package/dist/collection/components/gov-error-code/gov-error-code.css +1 -1
  41. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +1 -1
  42. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +1 -1
  43. package/dist/collection/components/gov-form/control/gov-form-control.css +1 -1
  44. package/dist/collection/components/gov-form/file/gov-form-file.css +1 -1
  45. package/dist/collection/components/gov-form/group/gov-form-group.css +1 -1
  46. package/dist/collection/components/gov-form/input/gov-form-input.css +1 -1
  47. package/dist/collection/components/gov-form/label/gov-form-label.css +5 -1
  48. package/dist/collection/components/gov-form/message/gov-form-message.css +1 -1
  49. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +1 -1
  50. package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +1 -1
  51. package/dist/collection/components/gov-form/radio/gov-form-radio.css +1 -1
  52. package/dist/collection/components/gov-form/search/gov-form-search.css +1 -1
  53. package/dist/collection/components/gov-form/select/gov-form-select.css +1 -1
  54. package/dist/collection/components/gov-form/switch/gov-form-switch.css +1 -1
  55. package/dist/collection/components/gov-grid/gov-grid-item.css +1 -1
  56. package/dist/collection/components/gov-grid/gov-grid.css +1 -1
  57. package/dist/collection/components/gov-icon/gov-icon.css +1 -1
  58. package/dist/collection/components/gov-infobar/default/constants.js +12 -0
  59. package/dist/collection/components/gov-infobar/default/constants.js.map +1 -0
  60. package/dist/collection/components/gov-infobar/default/gov-infobar.css +384 -0
  61. package/dist/collection/components/{gov-alert/gov-alert.js → gov-infobar/default/gov-infobar.js} +27 -27
  62. package/dist/collection/components/gov-infobar/default/gov-infobar.js.map +1 -0
  63. package/dist/collection/components/gov-infobar/default/gov-infobar.types.js +2 -0
  64. package/dist/collection/components/gov-infobar/default/gov-infobar.types.js.map +1 -0
  65. package/dist/collection/components/gov-layout/gov-layout-column.css +1 -1
  66. package/dist/collection/components/gov-layout/gov-layout.css +1 -1
  67. package/dist/collection/components/gov-loading/loading/gov-loading.css +1 -1
  68. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +1 -1
  69. package/dist/collection/components/gov-message/gov-message.css +1 -1
  70. package/dist/collection/components/gov-modal/gov-modal.css +1 -1
  71. package/dist/collection/components/gov-nav/gov-nav-item.css +1 -1
  72. package/dist/collection/components/gov-nav/gov-nav.css +1 -1
  73. package/dist/collection/components/gov-pagination/gov-pagination.css +1 -1
  74. package/dist/collection/components/gov-promp/gov-prompt.css +1 -1
  75. package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +1 -1
  76. package/dist/collection/components/gov-side-nav/gov-side-nav.css +1 -1
  77. package/dist/collection/components/gov-spacer/gov-spacer.css +1 -1
  78. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +1 -1
  79. package/dist/collection/components/gov-statsbar/gov-statsbar.css +1 -1
  80. package/dist/collection/components/gov-stepper/gov-stepper-item.css +1 -1
  81. package/dist/collection/components/gov-stepper/gov-stepper.css +1 -1
  82. package/dist/collection/components/gov-tabs/gov-tabs-item.css +1 -1
  83. package/dist/collection/components/gov-tabs/gov-tabs.css +1 -1
  84. package/dist/collection/components/gov-tile/container/gov-tiles.css +1 -1
  85. package/dist/collection/components/gov-tile/gov-tile.css +1 -1
  86. package/dist/collection/components/gov-toast/gov-toast.css +2 -2
  87. package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +32 -27
  88. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +101 -5
  89. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  90. package/dist/collection/components/gov-tooltip/gov-tooltip.css +1 -17
  91. package/dist/collection/components/gov-tooltip/gov-tooltip.js +83 -51
  92. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  93. package/dist/collection/components/gov-wizard/gov-wizard-item.css +1 -1
  94. package/dist/collection/components/gov-wizard/gov-wizard.css +1 -1
  95. package/dist/collection/pages/Card.js +11 -9
  96. package/dist/collection/pages/Card.js.map +1 -1
  97. package/dist/collection/pages/Home.js +43 -1
  98. package/dist/collection/pages/Home.js.map +1 -1
  99. package/dist/collection/pages/{Alert.js → Infobar.js} +42 -27
  100. package/dist/collection/pages/Infobar.js.map +1 -0
  101. package/dist/components/gov-accordion-item.js +1 -1
  102. package/dist/components/gov-app.js +1 -1
  103. package/dist/components/gov-app.js.map +1 -1
  104. package/dist/components/gov-attachments-item.js +1 -1
  105. package/dist/components/gov-badge.js +1 -1
  106. package/dist/components/gov-button.js +1 -1
  107. package/dist/components/gov-card.js +1 -1
  108. package/dist/components/gov-form-autocomplete.js +1 -1
  109. package/dist/components/gov-form-checkbox.js +1 -1
  110. package/dist/components/gov-form-file.js +1 -1
  111. package/dist/components/gov-form-input.js +1 -1
  112. package/dist/components/gov-form-label.js +1 -1
  113. package/dist/components/gov-form-label.js.map +1 -1
  114. package/dist/components/gov-form-multi-select.js +1 -1
  115. package/dist/components/gov-form-select.js +1 -1
  116. package/dist/components/gov-icon.js +1 -1
  117. package/dist/components/{gov-alert.d.ts → gov-infobar.d.ts} +4 -4
  118. package/dist/components/gov-infobar.js +2 -0
  119. package/dist/components/gov-infobar.js.map +1 -0
  120. package/dist/components/gov-loading.js +1 -1
  121. package/dist/components/gov-modal.js +1 -1
  122. package/dist/components/gov-pagination.js +1 -1
  123. package/dist/components/gov-prompt.js +1 -1
  124. package/dist/components/gov-side-nav-item.js +1 -1
  125. package/dist/components/gov-tabs.js +1 -1
  126. package/dist/components/gov-tile.js +1 -1
  127. package/dist/components/gov-toast.js +1 -1
  128. package/dist/components/gov-tooltip-content.js +1 -1
  129. package/dist/components/gov-tooltip-content.js.map +1 -1
  130. package/dist/components/gov-tooltip.js +1 -1
  131. package/dist/components/gov-tooltip.js.map +1 -1
  132. package/dist/components/gov-wizard-item.js +1 -1
  133. package/dist/components/{p-da3b225f.js → p-30af8d08.js} +2 -2
  134. package/dist/components/p-3e8a9e92.js.map +1 -1
  135. package/dist/components/{p-a6915747.js → p-5d8154f9.js} +2 -2
  136. package/dist/components/{p-0378da4d.js → p-8d44ca3c.js} +2 -2
  137. package/dist/components/p-8d44ca3c.js.map +1 -0
  138. package/dist/components/{p-404f469e.js → p-9a4c910d.js} +2 -2
  139. package/dist/components/{p-70d9d879.js → p-ae179d8a.js} +2 -2
  140. package/dist/components/p-ae179d8a.js.map +1 -0
  141. package/dist/components/{p-35f6490a.js → p-afb7fc88.js} +2 -2
  142. package/dist/components/{p-ee60cdd1.js → p-b430ee05.js} +2 -2
  143. package/dist/components/{p-9cba3cd3.js → p-e24896b9.js} +2 -2
  144. package/dist/core/core.css +1 -1
  145. package/dist/core/core.esm.js +1 -1
  146. package/dist/core/core.esm.js.map +1 -1
  147. package/dist/core/{p-3d0ab343.entry.js → p-0c57e410.entry.js} +2 -2
  148. package/dist/core/{p-42c1935f.entry.js → p-243a61bf.entry.js} +2 -2
  149. package/dist/core/{p-18ef9623.entry.js → p-2bf0c1c5.entry.js} +2 -2
  150. package/dist/core/p-2c0ac7ab.entry.js +2 -0
  151. package/dist/core/{p-85258200.entry.js.map → p-2c0ac7ab.entry.js.map} +1 -1
  152. package/dist/core/p-307d4c56.entry.js +2 -0
  153. package/dist/core/p-307d4c56.entry.js.map +1 -0
  154. package/dist/core/{p-6a65af35.entry.js → p-32a4b7e3.entry.js} +2 -2
  155. package/dist/core/p-32a4b7e3.entry.js.map +1 -0
  156. package/dist/core/{p-bd1cb5bd.entry.js → p-4452c278.entry.js} +2 -2
  157. package/dist/core/{p-a85f4a62.entry.js → p-49729bd4.entry.js} +2 -2
  158. package/dist/core/{p-ae894a40.js → p-570ef4e5.js} +2 -2
  159. package/dist/core/p-5cc3e768.entry.js +2 -0
  160. package/dist/core/p-5cc3e768.entry.js.map +1 -0
  161. package/dist/core/{p-33bf5974.entry.js → p-7372b066.entry.js} +2 -2
  162. package/dist/core/{p-69f944d1.entry.js → p-73fb7ac7.entry.js} +2 -2
  163. package/dist/core/{p-87aca157.entry.js → p-7702c8c2.entry.js} +2 -2
  164. package/dist/core/{p-9d72d80b.entry.js → p-7e8d2066.entry.js} +2 -2
  165. package/dist/core/{p-a5d00433.entry.js → p-7fa1290e.entry.js} +2 -2
  166. package/dist/core/{p-fb99f144.entry.js → p-8033916b.entry.js} +2 -2
  167. package/dist/core/p-82b4b522.entry.js +2 -0
  168. package/dist/core/p-82b4b522.entry.js.map +1 -0
  169. package/dist/core/{p-8fce08d1.entry.js → p-8667d5df.entry.js} +2 -2
  170. package/dist/core/{p-41e88980.entry.js → p-93897e60.entry.js} +2 -2
  171. package/dist/core/{p-41e88980.entry.js.map → p-93897e60.entry.js.map} +1 -1
  172. package/dist/core/{p-cacd0fed.entry.js → p-998c3336.entry.js} +2 -2
  173. package/dist/core/{p-404f469e.js → p-9a4c910d.js} +2 -2
  174. package/dist/core/{p-667dc3de.entry.js → p-afa12399.entry.js} +2 -2
  175. package/dist/core/{p-70140f70.entry.js → p-b0c97376.entry.js} +2 -2
  176. package/dist/core/p-bcf71ab5.entry.js +2 -0
  177. package/dist/core/p-bcf71ab5.entry.js.map +1 -0
  178. package/dist/core/{p-0c1697ce.entry.js → p-c4c9ff83.entry.js} +2 -2
  179. package/dist/core/{p-af646ce2.entry.js → p-c61444f7.entry.js} +2 -2
  180. package/dist/core/p-c61444f7.entry.js.map +1 -0
  181. package/dist/core/{p-d4cfa93a.entry.js → p-cb37644f.entry.js} +2 -2
  182. package/dist/core/{p-9bfab069.entry.js → p-ce262a72.entry.js} +2 -2
  183. package/dist/core/p-f9dfaff1.entry.js +2 -0
  184. package/dist/core/p-f9dfaff1.entry.js.map +1 -0
  185. package/dist/core/{p-13624a77.entry.js → p-fea58abc.entry.js} +2 -2
  186. package/dist/core/{p-dd39ede4.entry.js → p-ff97a688.entry.js} +2 -2
  187. package/dist/esm/{constants-f7b618c2.js → constants-887c5391.js} +2 -2
  188. package/dist/esm/{constants-f7b618c2.js.map → constants-887c5391.js.map} +1 -1
  189. package/dist/esm/core.js +1 -1
  190. package/dist/esm/gov-accordion.entry.js +1 -1
  191. package/dist/esm/gov-app.entry.js +96 -37
  192. package/dist/esm/gov-app.entry.js.map +1 -1
  193. package/dist/esm/gov-attachments_3.entry.js +1 -1
  194. package/dist/esm/gov-backdrop.entry.js +1 -1
  195. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  196. package/dist/esm/gov-badge.entry.js +1 -1
  197. package/dist/esm/gov-badge.entry.js.map +1 -1
  198. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  199. package/dist/esm/gov-button.entry.js +2 -2
  200. package/dist/esm/gov-button.entry.js.map +1 -1
  201. package/dist/esm/gov-card.entry.js +1 -1
  202. package/dist/esm/gov-form-checkbox.entry.js +1 -1
  203. package/dist/esm/gov-form-file.entry.js +1 -1
  204. package/dist/esm/gov-form-input.entry.js +1 -1
  205. package/dist/esm/gov-form-label.entry.js +1 -1
  206. package/dist/esm/gov-form-label.entry.js.map +1 -1
  207. package/dist/esm/gov-form-multi-select.entry.js +1 -1
  208. package/dist/esm/gov-form-radio.entry.js +1 -1
  209. package/dist/esm/gov-form-select.entry.js +1 -1
  210. package/dist/esm/gov-form-switch.entry.js +1 -1
  211. package/dist/esm/gov-icon.entry.js +1 -1
  212. package/dist/esm/gov-infobar.entry.js +86 -0
  213. package/dist/esm/gov-infobar.entry.js.map +1 -0
  214. package/dist/esm/gov-modal.entry.js +1 -1
  215. package/dist/esm/gov-nav.entry.js +1 -1
  216. package/dist/esm/gov-pagination.entry.js +1 -1
  217. package/dist/esm/gov-prompt.entry.js +1 -1
  218. package/dist/esm/gov-side-nav.entry.js +1 -1
  219. package/dist/esm/gov-skeleton.entry.js +1 -1
  220. package/dist/esm/gov-tabs.entry.js +1 -1
  221. package/dist/esm/gov-toast.entry.js +1 -1
  222. package/dist/esm/gov-tooltip-content.entry.js +17 -5
  223. package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
  224. package/dist/esm/gov-tooltip.entry.js +74 -47
  225. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  226. package/dist/esm/gov-wizard.entry.js +1 -1
  227. package/dist/esm/index-ae3c50f1.js +4 -4
  228. package/dist/esm/loader.js +1 -1
  229. package/dist/esm/{wcag-062e7ca9.js → wcag-06bd4d01.js} +2 -2
  230. package/dist/esm/{wcag-062e7ca9.js.map → wcag-06bd4d01.js.map} +1 -1
  231. package/dist/globals.d.ts +2 -0
  232. package/dist/hydrate/index.js +287 -184
  233. package/dist/types/components/gov-app/gov-app.d.ts +1 -1
  234. package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +1 -1
  235. package/dist/types/components/gov-infobar/default/constants.d.ts +12 -0
  236. package/dist/types/components/{gov-alert/gov-alert.d.ts → gov-infobar/default/gov-infobar.d.ts} +9 -9
  237. package/dist/types/components/gov-infobar/default/gov-infobar.types.d.ts +4 -0
  238. package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +19 -1
  239. package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +7 -3
  240. package/dist/types/components.d.ts +116 -84
  241. package/dist/types/pages/Infobar.d.ts +3 -0
  242. package/dist/types/types/typings.d.ts +6 -0
  243. package/package.json +2 -2
  244. package/dist/cjs/gov-alert.cjs.entry.js +0 -90
  245. package/dist/cjs/gov-alert.cjs.entry.js.map +0 -1
  246. package/dist/collection/components/gov-alert/constants.js +0 -12
  247. package/dist/collection/components/gov-alert/constants.js.map +0 -1
  248. package/dist/collection/components/gov-alert/gov-alert.css +0 -398
  249. package/dist/collection/components/gov-alert/gov-alert.js.map +0 -1
  250. package/dist/collection/components/gov-alert/gov-alert.types.js +0 -2
  251. package/dist/collection/components/gov-alert/gov-alert.types.js.map +0 -1
  252. package/dist/collection/pages/Alert.js.map +0 -1
  253. package/dist/components/gov-alert.js +0 -2
  254. package/dist/components/gov-alert.js.map +0 -1
  255. package/dist/components/p-0378da4d.js.map +0 -1
  256. package/dist/components/p-70d9d879.js.map +0 -1
  257. package/dist/core/p-3b9df792.entry.js +0 -2
  258. package/dist/core/p-3b9df792.entry.js.map +0 -1
  259. package/dist/core/p-3e5432d7.entry.js +0 -2
  260. package/dist/core/p-3e5432d7.entry.js.map +0 -1
  261. package/dist/core/p-4c79a97a.entry.js +0 -2
  262. package/dist/core/p-4c79a97a.entry.js.map +0 -1
  263. package/dist/core/p-6a65af35.entry.js.map +0 -1
  264. package/dist/core/p-85258200.entry.js +0 -2
  265. package/dist/core/p-af646ce2.entry.js.map +0 -1
  266. package/dist/core/p-bbcbe1cc.entry.js +0 -2
  267. package/dist/core/p-bbcbe1cc.entry.js.map +0 -1
  268. package/dist/core/p-dfc080f2.entry.js +0 -2
  269. package/dist/core/p-dfc080f2.entry.js.map +0 -1
  270. package/dist/esm/gov-alert.entry.js +0 -86
  271. package/dist/esm/gov-alert.entry.js.map +0 -1
  272. package/dist/types/components/gov-alert/constants.d.ts +0 -12
  273. package/dist/types/components/gov-alert/gov-alert.types.d.ts +0 -4
  274. package/dist/types/pages/Alert.d.ts +0 -3
  275. /package/dist/components/{p-da3b225f.js.map → p-30af8d08.js.map} +0 -0
  276. /package/dist/components/{p-a6915747.js.map → p-5d8154f9.js.map} +0 -0
  277. /package/dist/components/{p-404f469e.js.map → p-9a4c910d.js.map} +0 -0
  278. /package/dist/components/{p-35f6490a.js.map → p-afb7fc88.js.map} +0 -0
  279. /package/dist/components/{p-ee60cdd1.js.map → p-b430ee05.js.map} +0 -0
  280. /package/dist/components/{p-9cba3cd3.js.map → p-e24896b9.js.map} +0 -0
  281. /package/dist/core/{p-3d0ab343.entry.js.map → p-0c57e410.entry.js.map} +0 -0
  282. /package/dist/core/{p-42c1935f.entry.js.map → p-243a61bf.entry.js.map} +0 -0
  283. /package/dist/core/{p-18ef9623.entry.js.map → p-2bf0c1c5.entry.js.map} +0 -0
  284. /package/dist/core/{p-bd1cb5bd.entry.js.map → p-4452c278.entry.js.map} +0 -0
  285. /package/dist/core/{p-a85f4a62.entry.js.map → p-49729bd4.entry.js.map} +0 -0
  286. /package/dist/core/{p-ae894a40.js.map → p-570ef4e5.js.map} +0 -0
  287. /package/dist/core/{p-33bf5974.entry.js.map → p-7372b066.entry.js.map} +0 -0
  288. /package/dist/core/{p-69f944d1.entry.js.map → p-73fb7ac7.entry.js.map} +0 -0
  289. /package/dist/core/{p-87aca157.entry.js.map → p-7702c8c2.entry.js.map} +0 -0
  290. /package/dist/core/{p-9d72d80b.entry.js.map → p-7e8d2066.entry.js.map} +0 -0
  291. /package/dist/core/{p-a5d00433.entry.js.map → p-7fa1290e.entry.js.map} +0 -0
  292. /package/dist/core/{p-fb99f144.entry.js.map → p-8033916b.entry.js.map} +0 -0
  293. /package/dist/core/{p-8fce08d1.entry.js.map → p-8667d5df.entry.js.map} +0 -0
  294. /package/dist/core/{p-cacd0fed.entry.js.map → p-998c3336.entry.js.map} +0 -0
  295. /package/dist/core/{p-404f469e.js.map → p-9a4c910d.js.map} +0 -0
  296. /package/dist/core/{p-667dc3de.entry.js.map → p-afa12399.entry.js.map} +0 -0
  297. /package/dist/core/{p-70140f70.entry.js.map → p-b0c97376.entry.js.map} +0 -0
  298. /package/dist/core/{p-0c1697ce.entry.js.map → p-c4c9ff83.entry.js.map} +0 -0
  299. /package/dist/core/{p-d4cfa93a.entry.js.map → p-cb37644f.entry.js.map} +0 -0
  300. /package/dist/core/{p-9bfab069.entry.js.map → p-ce262a72.entry.js.map} +0 -0
  301. /package/dist/core/{p-13624a77.entry.js.map → p-fea58abc.entry.js.map} +0 -0
  302. /package/dist/core/{p-dd39ede4.entry.js.map → p-ff97a688.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import '../../pages/Accordion';
2
- import '../../pages/Alert';
2
+ import '../../pages/Infobar';
3
3
  import '../../pages/Badge';
4
4
  import '../../pages/Breadcrumbs';
5
5
  import '../../pages/Button';
@@ -2,7 +2,7 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class GovBackdrop {
3
3
  private h;
4
4
  constructor();
5
- host: HTMLGovAlertElement;
5
+ host: HTMLGovBackdropElement;
6
6
  /**
7
7
  * Determine if component should have inverse colors to be used on dark background.
8
8
  */
@@ -0,0 +1,12 @@
1
+ import { Variants } from '../../../core/constants/variants';
2
+ import { ValueOf } from '../../../types/interfaces';
3
+ export declare const InfobarVariants: Pick<typeof Variants, "PRIMARY" | "SECONDARY" | "SUCCESS" | "ERROR" | "WARNING">;
4
+ export type VariantType = `${ValueOf<typeof InfobarVariants>}`;
5
+ export declare const InfobarClass: {
6
+ root: string;
7
+ section: string;
8
+ icon: string;
9
+ content: string;
10
+ headline: string;
11
+ close: string;
12
+ };
@@ -1,11 +1,11 @@
1
- import { EventEmitter } from "../../stencil-public-runtime";
1
+ import { EventEmitter } from "../../../stencil-public-runtime";
2
2
  import { VariantType } from "./constants";
3
- import { AlertEvent } from "./gov-alert.types";
4
- import { ButtonEvent } from "../gov-button/default/gov-button.types";
5
- export declare class GovAlert {
3
+ import { InfobarEvent } from "./gov-infobar.types";
4
+ import { ButtonEvent } from "../../gov-button/default/gov-button.types";
5
+ export declare class GovInfobar {
6
6
  private h;
7
7
  constructor();
8
- host: HTMLGovAlertElement;
8
+ host: HTMLGovInfobarElement;
9
9
  /**
10
10
  * Style variation of the button.
11
11
  */
@@ -19,19 +19,19 @@ export declare class GovAlert {
19
19
  */
20
20
  readonly inverse: boolean;
21
21
  /**
22
- * Aria label for the closing button. It is mandatory if the alert is closable
22
+ * Aria label for the closing button. It is mandatory if the infobar is closable
23
23
  */
24
24
  readonly wcagCloseLabel: string;
25
25
  /**
26
- * Aria label for the toggle button. It is mandatory if the alert has headline
26
+ * Aria label for the toggle button. It is mandatory if the infobar has headline
27
27
  */
28
28
  readonly wcagToggleLabel: string;
29
29
  /**
30
30
  * Called when the close button is clicked
31
31
  */
32
- govClose: EventEmitter<AlertEvent>;
32
+ govClose: EventEmitter<InfobarEvent>;
33
33
  /**
34
- * Displays the option to close the alert
34
+ * Displays the option to close the infobar
35
35
  */
36
36
  readonly closable?: boolean;
37
37
  toggleContent: boolean;
@@ -0,0 +1,4 @@
1
+ import { GovBaseEvent } from "../../../types/event.types";
2
+ export interface InfobarEvent extends GovBaseEvent {
3
+ ref: HTMLGovInfobarElement;
4
+ }
@@ -1,10 +1,28 @@
1
+ import { TooltipSizeType, TooltipVariantType } from "./constants";
1
2
  export declare class GovTooltipContent {
2
3
  private timeout;
3
4
  host: HTMLGovTooltipContentElement;
5
+ /**
6
+ * Style variation of the tooltip
7
+ */
8
+ readonly variant?: TooltipVariantType;
9
+ /**
10
+ * Tooltip’s size.
11
+ */
12
+ readonly size?: TooltipSizeType;
13
+ /**
14
+ * Tooltip is still visible.
15
+ */
16
+ persist?: boolean;
17
+ /**
18
+ * Indicates display of tooltip content
19
+ */
20
+ isVisible: boolean;
4
21
  /**
5
22
  * Indicates display of tooltip content
6
23
  */
7
- readonly isVisible: boolean;
24
+ parentId: string;
8
25
  visibleContent(newValue: boolean): void;
26
+ hideContent(): void;
9
27
  render(): any;
10
28
  }
@@ -1,7 +1,8 @@
1
- import { TooltipPositionType, TooltipSizeType, TooltipVariantType } from './constants';
1
+ import { TooltipPositionType, TooltipSizeType, TooltipVariantType } from "./constants";
2
2
  export declare class GovTooltip {
3
3
  private h;
4
4
  private content;
5
+ private readonly tooltipContentId;
5
6
  private readonly tooltipId;
6
7
  constructor();
7
8
  host: HTMLGovTooltipElement;
@@ -18,7 +19,7 @@ export declare class GovTooltip {
18
19
  */
19
20
  position: TooltipPositionType;
20
21
  /**
21
- * Information contained in the tolltip
22
+ * Information contained in the tooltip
22
23
  */
23
24
  readonly message: string;
24
25
  /**
@@ -29,22 +30,25 @@ export declare class GovTooltip {
29
30
  * Trigger is just an icon
30
31
  */
31
32
  readonly icon: boolean;
33
+ persist: boolean;
32
34
  validateVariant(newValue: string): void;
33
35
  validateSize(newValue: string): void;
34
36
  validatePosition(newValue: string): void;
35
37
  componentWillLoad(): void;
38
+ disconnectedCallback(): void;
36
39
  private createContentWrapper;
37
40
  private registerListeners;
38
41
  private verifyPositionSpace;
39
42
  private showTooltip;
40
43
  private hideTooltip;
44
+ private removeContent;
41
45
  render(): any;
42
46
  /**
43
47
  * Showing the modal
44
48
  */
45
49
  show(): Promise<void>;
46
50
  /**
47
- * Hidding the modal
51
+ * Hiding the modal
48
52
  */
49
53
  hide(): Promise<void>;
50
54
  }
@@ -7,8 +7,6 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { AccordionSizeType, AccordionVariantType } from "./components/gov-accordion/constants";
9
9
  import { AccordionEvent, AccordionItemEvent } from "./components/gov-accordion/gov-accordion.types";
10
- import { VariantType } from "./components/gov-alert/constants";
11
- import { AlertEvent } from "./components/gov-alert/gov-alert.types";
12
10
  import { ButtonSizesType, ButtonTargetType, ButtonVariantType, NativeTypesType as NativeTypesType1, TypesType } from "./components/gov-button/default/constants";
13
11
  import { NativeTypesType } from "./components/gov-badge/constants";
14
12
  import { GovBreadcrumbsChangeEvent } from "./components/gov-breadcrumbs/gov-breadcrumbs.d";
@@ -17,7 +15,7 @@ import { GovCardChangeEvent } from "./components/gov-card/interfaces";
17
15
  import { ControlGroupVariantType } from "./components/gov-control-group/constants";
18
16
  import { PositionType } from "./components/gov-button/dropdown/constants";
19
17
  import { DropdownEvent } from "./components/gov-button/dropdown/gov-dropdown.types";
20
- import { SizesType, VariantType as VariantType1 } from "./components/gov-form/autocomplete/constants";
18
+ import { SizesType, VariantType } from "./components/gov-form/autocomplete/constants";
21
19
  import { FormAutocompleteEvent, GovFormAutocompleteItem } from "./components/gov-form/autocomplete/gov-form-autocomplete.types";
22
20
  import { FormCheckboxSizesType } from "./components/gov-form/checkbox/constants";
23
21
  import { FormCheckboxEvent } from "./components/gov-form/checkbox/gov-form-checkbox.types";
@@ -39,6 +37,8 @@ import { FormSelectEvent } from "./components/gov-form/select/gov-form-select.ty
39
37
  import { FormSwitchSizesType } from "./components/gov-form/switch/constants";
40
38
  import { FormSwitchEvent } from "./components/gov-form/switch/gov-form-switch.types";
41
39
  import { Type as Type1 } from "./components/gov-icon/constants";
40
+ import { VariantType as VariantType1 } from "./components/gov-infobar/default/constants";
41
+ import { InfobarEvent } from "./components/gov-infobar/default/gov-infobar.types";
42
42
  import { LayoutType, LayoutVariantType } from "./components/gov-layout/constants";
43
43
  import { MessageVariantType } from "./components/gov-message/constants";
44
44
  import { PaginationSizeType, PaginationType, PaginationVariantType } from "./components/gov-pagination/constants";
@@ -57,8 +57,6 @@ import { GovWizardItemChangeEvent } from "./components/gov-wizard/gov-wizard-ite
57
57
  import { WizardItemEvent } from "./components/gov-wizard/gov-wizard-item.types";
58
58
  export { AccordionSizeType, AccordionVariantType } from "./components/gov-accordion/constants";
59
59
  export { AccordionEvent, AccordionItemEvent } from "./components/gov-accordion/gov-accordion.types";
60
- export { VariantType } from "./components/gov-alert/constants";
61
- export { AlertEvent } from "./components/gov-alert/gov-alert.types";
62
60
  export { ButtonSizesType, ButtonTargetType, ButtonVariantType, NativeTypesType as NativeTypesType1, TypesType } from "./components/gov-button/default/constants";
63
61
  export { NativeTypesType } from "./components/gov-badge/constants";
64
62
  export { GovBreadcrumbsChangeEvent } from "./components/gov-breadcrumbs/gov-breadcrumbs.d";
@@ -67,7 +65,7 @@ export { GovCardChangeEvent } from "./components/gov-card/interfaces";
67
65
  export { ControlGroupVariantType } from "./components/gov-control-group/constants";
68
66
  export { PositionType } from "./components/gov-button/dropdown/constants";
69
67
  export { DropdownEvent } from "./components/gov-button/dropdown/gov-dropdown.types";
70
- export { SizesType, VariantType as VariantType1 } from "./components/gov-form/autocomplete/constants";
68
+ export { SizesType, VariantType } from "./components/gov-form/autocomplete/constants";
71
69
  export { FormAutocompleteEvent, GovFormAutocompleteItem } from "./components/gov-form/autocomplete/gov-form-autocomplete.types";
72
70
  export { FormCheckboxSizesType } from "./components/gov-form/checkbox/constants";
73
71
  export { FormCheckboxEvent } from "./components/gov-form/checkbox/gov-form-checkbox.types";
@@ -89,6 +87,8 @@ export { FormSelectEvent } from "./components/gov-form/select/gov-form-select.ty
89
87
  export { FormSwitchSizesType } from "./components/gov-form/switch/constants";
90
88
  export { FormSwitchEvent } from "./components/gov-form/switch/gov-form-switch.types";
91
89
  export { Type as Type1 } from "./components/gov-icon/constants";
90
+ export { VariantType as VariantType1 } from "./components/gov-infobar/default/constants";
91
+ export { InfobarEvent } from "./components/gov-infobar/default/gov-infobar.types";
92
92
  export { LayoutType, LayoutVariantType } from "./components/gov-layout/constants";
93
93
  export { MessageVariantType } from "./components/gov-message/constants";
94
94
  export { PaginationSizeType, PaginationType, PaginationVariantType } from "./components/gov-pagination/constants";
@@ -170,36 +170,6 @@ export namespace Components {
170
170
  */
171
171
  "variant"?: AccordionVariantType;
172
172
  }
173
- interface GovAlert {
174
- /**
175
- * Displays the option to close the alert
176
- */
177
- "closable"?: boolean;
178
- /**
179
- * Style variation of the button.
180
- */
181
- "headline": string;
182
- /**
183
- * Determine if component should have inverse colors to be used on dark background
184
- */
185
- "inverse": boolean;
186
- /**
187
- * Validate the WCAG attributes of the component
188
- */
189
- "validateWcag": () => Promise<void>;
190
- /**
191
- * Style variation of the button.
192
- */
193
- "variant": VariantType;
194
- /**
195
- * Aria label for the closing button. It is mandatory if the alert is closable
196
- */
197
- "wcagCloseLabel": string;
198
- /**
199
- * Aria label for the toggle button. It is mandatory if the alert has headline
200
- */
201
- "wcagToggleLabel": string;
202
- }
203
173
  interface GovApp {
204
174
  }
205
175
  interface GovAttachments {
@@ -619,7 +589,7 @@ export namespace Components {
619
589
  /**
620
590
  * Style variation of the form input.
621
591
  */
622
- "variant"?: VariantType1;
592
+ "variant"?: VariantType;
623
593
  /**
624
594
  * Indicates the id of a component that describes the input.
625
595
  */
@@ -1273,6 +1243,36 @@ export namespace Components {
1273
1243
  */
1274
1244
  "type": Type1;
1275
1245
  }
1246
+ interface GovInfobar {
1247
+ /**
1248
+ * Displays the option to close the infobar
1249
+ */
1250
+ "closable"?: boolean;
1251
+ /**
1252
+ * Style variation of the button.
1253
+ */
1254
+ "headline": string;
1255
+ /**
1256
+ * Determine if component should have inverse colors to be used on dark background
1257
+ */
1258
+ "inverse": boolean;
1259
+ /**
1260
+ * Validate the WCAG attributes of the component
1261
+ */
1262
+ "validateWcag": () => Promise<void>;
1263
+ /**
1264
+ * Style variation of the button.
1265
+ */
1266
+ "variant": VariantType1;
1267
+ /**
1268
+ * Aria label for the closing button. It is mandatory if the infobar is closable
1269
+ */
1270
+ "wcagCloseLabel": string;
1271
+ /**
1272
+ * Aria label for the toggle button. It is mandatory if the infobar has headline
1273
+ */
1274
+ "wcagToggleLabel": string;
1275
+ }
1276
1276
  interface GovLayout {
1277
1277
  /**
1278
1278
  * Determine if component should have inverse column order
@@ -1770,7 +1770,7 @@ export namespace Components {
1770
1770
  }
1771
1771
  interface GovTooltip {
1772
1772
  /**
1773
- * Hidding the modal
1773
+ * Hiding the modal
1774
1774
  */
1775
1775
  "hide": () => Promise<void>;
1776
1776
  /**
@@ -1782,7 +1782,7 @@ export namespace Components {
1782
1782
  */
1783
1783
  "identifier": string;
1784
1784
  /**
1785
- * Information contained in the tolltip
1785
+ * Information contained in the tooltip
1786
1786
  */
1787
1787
  "message": string;
1788
1788
  /**
@@ -1807,6 +1807,22 @@ export namespace Components {
1807
1807
  * Indicates display of tooltip content
1808
1808
  */
1809
1809
  "isVisible": boolean;
1810
+ /**
1811
+ * Indicates display of tooltip content
1812
+ */
1813
+ "parentId": string;
1814
+ /**
1815
+ * Tooltip is still visible.
1816
+ */
1817
+ "persist"?: boolean;
1818
+ /**
1819
+ * Tooltip’s size.
1820
+ */
1821
+ "size"?: TooltipSizeType;
1822
+ /**
1823
+ * Style variation of the tooltip
1824
+ */
1825
+ "variant"?: TooltipVariantType;
1810
1826
  }
1811
1827
  interface GovWizard {
1812
1828
  /**
@@ -1889,10 +1905,6 @@ export interface GovAccordionItemCustomEvent<T> extends CustomEvent<T> {
1889
1905
  detail: T;
1890
1906
  target: HTMLGovAccordionItemElement;
1891
1907
  }
1892
- export interface GovAlertCustomEvent<T> extends CustomEvent<T> {
1893
- detail: T;
1894
- target: HTMLGovAlertElement;
1895
- }
1896
1908
  export interface GovAttachmentsItemCustomEvent<T> extends CustomEvent<T> {
1897
1909
  detail: T;
1898
1910
  target: HTMLGovAttachmentsItemElement;
@@ -1957,6 +1969,10 @@ export interface GovFormSwitchCustomEvent<T> extends CustomEvent<T> {
1957
1969
  detail: T;
1958
1970
  target: HTMLGovFormSwitchElement;
1959
1971
  }
1972
+ export interface GovInfobarCustomEvent<T> extends CustomEvent<T> {
1973
+ detail: T;
1974
+ target: HTMLGovInfobarElement;
1975
+ }
1960
1976
  export interface GovModalCustomEvent<T> extends CustomEvent<T> {
1961
1977
  detail: T;
1962
1978
  target: HTMLGovModalElement;
@@ -2014,12 +2030,6 @@ declare global {
2014
2030
  prototype: HTMLGovAccordionItemElement;
2015
2031
  new (): HTMLGovAccordionItemElement;
2016
2032
  };
2017
- interface HTMLGovAlertElement extends Components.GovAlert, HTMLStencilElement {
2018
- }
2019
- var HTMLGovAlertElement: {
2020
- prototype: HTMLGovAlertElement;
2021
- new (): HTMLGovAlertElement;
2022
- };
2023
2033
  interface HTMLGovAppElement extends Components.GovApp, HTMLStencilElement {
2024
2034
  }
2025
2035
  var HTMLGovAppElement: {
@@ -2206,6 +2216,12 @@ declare global {
2206
2216
  prototype: HTMLGovIconElement;
2207
2217
  new (): HTMLGovIconElement;
2208
2218
  };
2219
+ interface HTMLGovInfobarElement extends Components.GovInfobar, HTMLStencilElement {
2220
+ }
2221
+ var HTMLGovInfobarElement: {
2222
+ prototype: HTMLGovInfobarElement;
2223
+ new (): HTMLGovInfobarElement;
2224
+ };
2209
2225
  interface HTMLGovLayoutElement extends Components.GovLayout, HTMLStencilElement {
2210
2226
  }
2211
2227
  var HTMLGovLayoutElement: {
@@ -2365,7 +2381,6 @@ declare global {
2365
2381
  interface HTMLElementTagNameMap {
2366
2382
  "gov-accordion": HTMLGovAccordionElement;
2367
2383
  "gov-accordion-item": HTMLGovAccordionItemElement;
2368
- "gov-alert": HTMLGovAlertElement;
2369
2384
  "gov-app": HTMLGovAppElement;
2370
2385
  "gov-attachments": HTMLGovAttachmentsElement;
2371
2386
  "gov-attachments-item": HTMLGovAttachmentsItemElement;
@@ -2397,6 +2412,7 @@ declare global {
2397
2412
  "gov-grid": HTMLGovGridElement;
2398
2413
  "gov-grid-item": HTMLGovGridItemElement;
2399
2414
  "gov-icon": HTMLGovIconElement;
2415
+ "gov-infobar": HTMLGovInfobarElement;
2400
2416
  "gov-layout": HTMLGovLayoutElement;
2401
2417
  "gov-layout-column": HTMLGovLayoutColumnElement;
2402
2418
  "gov-loading": HTMLGovLoadingElement;
@@ -2478,36 +2494,6 @@ declare namespace LocalJSX {
2478
2494
  */
2479
2495
  "variant"?: AccordionVariantType;
2480
2496
  }
2481
- interface GovAlert {
2482
- /**
2483
- * Displays the option to close the alert
2484
- */
2485
- "closable"?: boolean;
2486
- /**
2487
- * Style variation of the button.
2488
- */
2489
- "headline"?: string;
2490
- /**
2491
- * Determine if component should have inverse colors to be used on dark background
2492
- */
2493
- "inverse"?: boolean;
2494
- /**
2495
- * Called when the close button is clicked
2496
- */
2497
- "onGov-close"?: (event: GovAlertCustomEvent<AlertEvent>) => void;
2498
- /**
2499
- * Style variation of the button.
2500
- */
2501
- "variant"?: VariantType;
2502
- /**
2503
- * Aria label for the closing button. It is mandatory if the alert is closable
2504
- */
2505
- "wcagCloseLabel"?: string;
2506
- /**
2507
- * Aria label for the toggle button. It is mandatory if the alert has headline
2508
- */
2509
- "wcagToggleLabel"?: string;
2510
- }
2511
2497
  interface GovApp {
2512
2498
  }
2513
2499
  interface GovAttachments {
@@ -2897,7 +2883,7 @@ declare namespace LocalJSX {
2897
2883
  /**
2898
2884
  * Style variation of the form input.
2899
2885
  */
2900
- "variant"?: VariantType1;
2886
+ "variant"?: VariantType;
2901
2887
  /**
2902
2888
  * Indicates the id of a component that describes the input.
2903
2889
  */
@@ -3559,6 +3545,36 @@ declare namespace LocalJSX {
3559
3545
  */
3560
3546
  "type"?: Type1;
3561
3547
  }
3548
+ interface GovInfobar {
3549
+ /**
3550
+ * Displays the option to close the infobar
3551
+ */
3552
+ "closable"?: boolean;
3553
+ /**
3554
+ * Style variation of the button.
3555
+ */
3556
+ "headline"?: string;
3557
+ /**
3558
+ * Determine if component should have inverse colors to be used on dark background
3559
+ */
3560
+ "inverse"?: boolean;
3561
+ /**
3562
+ * Called when the close button is clicked
3563
+ */
3564
+ "onGov-close"?: (event: GovInfobarCustomEvent<InfobarEvent>) => void;
3565
+ /**
3566
+ * Style variation of the button.
3567
+ */
3568
+ "variant"?: VariantType1;
3569
+ /**
3570
+ * Aria label for the closing button. It is mandatory if the infobar is closable
3571
+ */
3572
+ "wcagCloseLabel"?: string;
3573
+ /**
3574
+ * Aria label for the toggle button. It is mandatory if the infobar has headline
3575
+ */
3576
+ "wcagToggleLabel"?: string;
3577
+ }
3562
3578
  interface GovLayout {
3563
3579
  /**
3564
3580
  * Determine if component should have inverse column order
@@ -4004,7 +4020,7 @@ declare namespace LocalJSX {
4004
4020
  */
4005
4021
  "identifier"?: string;
4006
4022
  /**
4007
- * Information contained in the tolltip
4023
+ * Information contained in the tooltip
4008
4024
  */
4009
4025
  "message"?: string;
4010
4026
  /**
@@ -4025,6 +4041,22 @@ declare namespace LocalJSX {
4025
4041
  * Indicates display of tooltip content
4026
4042
  */
4027
4043
  "isVisible"?: boolean;
4044
+ /**
4045
+ * Indicates display of tooltip content
4046
+ */
4047
+ "parentId"?: string;
4048
+ /**
4049
+ * Tooltip is still visible.
4050
+ */
4051
+ "persist"?: boolean;
4052
+ /**
4053
+ * Tooltip’s size.
4054
+ */
4055
+ "size"?: TooltipSizeType;
4056
+ /**
4057
+ * Style variation of the tooltip
4058
+ */
4059
+ "variant"?: TooltipVariantType;
4028
4060
  }
4029
4061
  interface GovWizard {
4030
4062
  /**
@@ -4089,7 +4121,6 @@ declare namespace LocalJSX {
4089
4121
  interface IntrinsicElements {
4090
4122
  "gov-accordion": GovAccordion;
4091
4123
  "gov-accordion-item": GovAccordionItem;
4092
- "gov-alert": GovAlert;
4093
4124
  "gov-app": GovApp;
4094
4125
  "gov-attachments": GovAttachments;
4095
4126
  "gov-attachments-item": GovAttachmentsItem;
@@ -4121,6 +4152,7 @@ declare namespace LocalJSX {
4121
4152
  "gov-grid": GovGrid;
4122
4153
  "gov-grid-item": GovGridItem;
4123
4154
  "gov-icon": GovIcon;
4155
+ "gov-infobar": GovInfobar;
4124
4156
  "gov-layout": GovLayout;
4125
4157
  "gov-layout-column": GovLayoutColumn;
4126
4158
  "gov-loading": GovLoading;
@@ -4155,7 +4187,6 @@ declare module "@stencil/core" {
4155
4187
  interface IntrinsicElements {
4156
4188
  "gov-accordion": LocalJSX.GovAccordion & JSXBase.HTMLAttributes<HTMLGovAccordionElement>;
4157
4189
  "gov-accordion-item": LocalJSX.GovAccordionItem & JSXBase.HTMLAttributes<HTMLGovAccordionItemElement>;
4158
- "gov-alert": LocalJSX.GovAlert & JSXBase.HTMLAttributes<HTMLGovAlertElement>;
4159
4190
  "gov-app": LocalJSX.GovApp & JSXBase.HTMLAttributes<HTMLGovAppElement>;
4160
4191
  "gov-attachments": LocalJSX.GovAttachments & JSXBase.HTMLAttributes<HTMLGovAttachmentsElement>;
4161
4192
  "gov-attachments-item": LocalJSX.GovAttachmentsItem & JSXBase.HTMLAttributes<HTMLGovAttachmentsItemElement>;
@@ -4187,6 +4218,7 @@ declare module "@stencil/core" {
4187
4218
  "gov-grid": LocalJSX.GovGrid & JSXBase.HTMLAttributes<HTMLGovGridElement>;
4188
4219
  "gov-grid-item": LocalJSX.GovGridItem & JSXBase.HTMLAttributes<HTMLGovGridItemElement>;
4189
4220
  "gov-icon": LocalJSX.GovIcon & JSXBase.HTMLAttributes<HTMLGovIconElement>;
4221
+ "gov-infobar": LocalJSX.GovInfobar & JSXBase.HTMLAttributes<HTMLGovInfobarElement>;
4190
4222
  "gov-layout": LocalJSX.GovLayout & JSXBase.HTMLAttributes<HTMLGovLayoutElement>;
4191
4223
  "gov-layout-column": LocalJSX.GovLayoutColumn & JSXBase.HTMLAttributes<HTMLGovLayoutColumnElement>;
4192
4224
  "gov-loading": LocalJSX.GovLoading & JSXBase.HTMLAttributes<HTMLGovLoadingElement>;
@@ -0,0 +1,3 @@
1
+ declare class InfobarPage extends HTMLElement {
2
+ connectedCallback(): void;
3
+ }
@@ -0,0 +1,6 @@
1
+ declare module '*.jpg'
2
+
3
+ declare module '*.md' {
4
+ const value: string // markdown is just a string
5
+ export default value
6
+ }
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.58",
5
+ "version": "0.0.59",
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.11",
26
26
  "@gov-design-system-ce/fonts": "0.0.2",
27
- "@gov-design-system-ce/styles": "0.0.8"
27
+ "@gov-design-system-ce/styles": "0.0.9"
28
28
  }
29
29
  }
@@ -1,90 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-83edd4fe.js');
6
- const props = require('./props-5f82e4c0.js');
7
- const variants = require('./variants-f5ffeef3.js');
8
- const utils = require('./utils-c9b1bba3.js');
9
- const template = require('./template-e1c4ff78.js');
10
- const Fragment = require('./Fragment-52846f79.js');
11
- const wcag = require('./wcag-d7912060.js');
12
- const win = require('./win-0427c131.js');
13
- require('./gov.log-0c9dca27.js');
14
- require('./string.utils-0f08c48c.js');
15
-
16
- const AlertVariants = utils.pick(variants.Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS']);
17
- const AlertClass = {
18
- root: 'gov-alert',
19
- section: 'gov-alert__section',
20
- icon: 'gov-alert__icon',
21
- content: 'gov-alert__content',
22
- headline: 'gov-alert__headline',
23
- close: 'gov-alert__close',
24
- };
25
-
26
- const govAlertCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-alert{position:relative;display:block;width:100%}.gov-alert__section{display:block;width:100%;max-width:calc(var(--gov-container-width, 73.75rem) + 2 * var(--gov-container-padding, 2.5rem));margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile, 1.25rem);padding-left:var(--gov-container-padding-mobile, 1.25rem);display:flex;gap:1rem;padding-top:1rem;padding-bottom:1rem}@media (min-width: 48em){.gov-alert__section{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}.gov-alert__icon{flex:0 0 auto}.gov-alert__icon>*{width:1.25rem;height:1.25rem}.gov-alert__headline{display:flex;gap:1rem}.gov-alert__headline+div{margin-top:0.5rem}.gov-alert__headline p{margin-bottom:0}.gov-alert__headline gov-button{margin-top:-0.25rem}.gov-alert__content{padding-right:3.25rem}.gov-alert__content>*:last-child{margin-bottom:0}.gov-alert__content p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-alert__content a{color:inherit}@media not all and (pointer: coarse){.gov-alert__content a:hover{color:inherit}}.gov-alert__close{position:absolute;top:0.625rem;right:1rem}.gov-alert[variant=warning]{background-color:var(--gov-alert-warning-bg-color, var(--gov-color-warning))}.gov-alert[variant=warning] .gov-alert__icon{color:var(--gov-alert-warning-icon-color, var(--gov-color-secondary))}.gov-alert[variant=warning] .gov-alert__content{color:var(--gov-alert-warning-text-color, var(--gov-color-secondary))}.gov-alert[variant=warning][inverse=\"\"],.gov-alert[variant=warning][inverse=true i],.gov-alert[variant=warning][inverse=\"1\"]{border-bottom:var(--gov-alert-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-alert-inverse-bg, var(--gov-color-neutral-white))}.gov-alert[variant=warning][inverse=\"\"] .gov-alert__icon,.gov-alert[variant=warning][inverse=true i] .gov-alert__icon,.gov-alert[variant=warning][inverse=\"1\"] .gov-alert__icon{color:var(--gov-alert-warning-bg-color, var(--gov-color-warning))}.gov-alert[variant=warning][inverse=\"\"] .gov-alert__content,.gov-alert[variant=warning][inverse=true i] .gov-alert__content,.gov-alert[variant=warning][inverse=\"1\"] .gov-alert__content{color:var(--gov-alert-inverse-color, var(--gov-color-secondary-800))}.gov-alert[variant=error]{background-color:var(--gov-alert-error-bg-color, var(--gov-color-error))}.gov-alert[variant=error] .gov-alert__icon{color:var(--gov-alert-error-icon-color, var(--gov-color-neutral-white))}.gov-alert[variant=error] .gov-alert__content{color:var(--gov-alert-error-text-color, var(--gov-color-neutral-white))}.gov-alert[variant=error][inverse=\"\"],.gov-alert[variant=error][inverse=true i],.gov-alert[variant=error][inverse=\"1\"]{border-bottom:var(--gov-alert-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-alert-inverse-bg, var(--gov-color-neutral-white))}.gov-alert[variant=error][inverse=\"\"] .gov-alert__icon,.gov-alert[variant=error][inverse=true i] .gov-alert__icon,.gov-alert[variant=error][inverse=\"1\"] .gov-alert__icon{color:var(--gov-alert-error-bg-color, var(--gov-color-error))}.gov-alert[variant=error][inverse=\"\"] .gov-alert__content,.gov-alert[variant=error][inverse=true i] .gov-alert__content,.gov-alert[variant=error][inverse=\"1\"] .gov-alert__content{color:var(--gov-alert-inverse-color, var(--gov-color-secondary-800))}.gov-alert[variant=secondary]{background-color:var(--gov-alert-secondary-bg-color, var(--gov-color-secondary))}.gov-alert[variant=secondary] .gov-alert__icon{color:var(--gov-alert-secondary-icon-color, var(--gov-color-neutral-white))}.gov-alert[variant=secondary] .gov-alert__content{color:var(--gov-alert-secondary-text-color, var(--gov-color-neutral-white))}.gov-alert[variant=secondary][inverse=\"\"],.gov-alert[variant=secondary][inverse=true i],.gov-alert[variant=secondary][inverse=\"1\"]{border-bottom:var(--gov-alert-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-alert-inverse-bg, var(--gov-color-neutral-white))}.gov-alert[variant=secondary][inverse=\"\"] .gov-alert__icon,.gov-alert[variant=secondary][inverse=true i] .gov-alert__icon,.gov-alert[variant=secondary][inverse=\"1\"] .gov-alert__icon{color:var(--gov-alert-secondary-bg-color, var(--gov-color-secondary))}.gov-alert[variant=secondary][inverse=\"\"] .gov-alert__content,.gov-alert[variant=secondary][inverse=true i] .gov-alert__content,.gov-alert[variant=secondary][inverse=\"1\"] .gov-alert__content{color:var(--gov-alert-inverse-color, var(--gov-color-secondary-800))}.gov-alert[variant=success]{background-color:var(--gov-alert-success-bg-color, var(--gov-color-success-500))}.gov-alert[variant=success] .gov-alert__icon{color:var(--gov-alert-success-icon-color, var(--gov-color-neutral-white))}.gov-alert[variant=success] .gov-alert__content{color:var(--gov-alert-success-text-color, var(--gov-color-neutral-white))}.gov-alert[variant=success][inverse=\"\"],.gov-alert[variant=success][inverse=true i],.gov-alert[variant=success][inverse=\"1\"]{border-bottom:var(--gov-alert-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-alert-inverse-bg, var(--gov-color-neutral-white))}.gov-alert[variant=success][inverse=\"\"] .gov-alert__icon,.gov-alert[variant=success][inverse=true i] .gov-alert__icon,.gov-alert[variant=success][inverse=\"1\"] .gov-alert__icon{color:var(--gov-alert-success-bg-color, var(--gov-color-success-500))}.gov-alert[variant=success][inverse=\"\"] .gov-alert__content,.gov-alert[variant=success][inverse=true i] .gov-alert__content,.gov-alert[variant=success][inverse=\"1\"] .gov-alert__content{color:var(--gov-alert-inverse-color, var(--gov-color-secondary-800))}.gov-alert[variant=primary]{background-color:var(--gov-alert-primary-bg-color, var(--gov-color-primary))}.gov-alert[variant=primary] .gov-alert__icon{color:var(--gov-alert-primary-icon-color, var(--gov-color-neutral-white))}.gov-alert[variant=primary] .gov-alert__content{color:var(--gov-alert-primary-text-color, var(--gov-color-neutral-white))}.gov-alert[variant=primary][inverse=\"\"],.gov-alert[variant=primary][inverse=true i],.gov-alert[variant=primary][inverse=\"1\"]{border-bottom:var(--gov-alert-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-alert-inverse-bg, var(--gov-color-neutral-white))}.gov-alert[variant=primary][inverse=\"\"] .gov-alert__icon,.gov-alert[variant=primary][inverse=true i] .gov-alert__icon,.gov-alert[variant=primary][inverse=\"1\"] .gov-alert__icon{color:var(--gov-alert-primary-bg-color, var(--gov-color-primary))}.gov-alert[variant=primary][inverse=\"\"] .gov-alert__content,.gov-alert[variant=primary][inverse=true i] .gov-alert__content,.gov-alert[variant=primary][inverse=\"1\"] .gov-alert__content{color:var(--gov-alert-inverse-color, var(--gov-color-secondary-800))}@media (min-width: 75em){.gov-alert__content{padding-right:2rem}}";
27
-
28
- const GovAlert = class {
29
- constructor(hostRef) {
30
- index.registerInstance(this, hostRef);
31
- this.govClose = index.createEvent(this, "gov-close", 7);
32
- this.headline = undefined;
33
- this.variant = "primary";
34
- this.inverse = false;
35
- this.wcagCloseLabel = undefined;
36
- this.wcagToggleLabel = undefined;
37
- this.closable = false;
38
- this.toggleContent = false;
39
- this.h = template.govHost(this.host);
40
- }
41
- validateVariant(newValue) {
42
- props.validateProp(AlertVariants, newValue, AlertClass.root);
43
- }
44
- componentWillLoad() {
45
- this.validateVariant(this.variant);
46
- }
47
- async componentDidRender() {
48
- if (win.canValidateWcagOnRender()) {
49
- await utils.delay(500);
50
- await this.validateWcag();
51
- }
52
- }
53
- render() {
54
- let inverse = !this.inverse;
55
- let variant = this.inverse ? "secondary" : this.variant;
56
- if (this.variant == "warning") {
57
- inverse = false;
58
- variant = "secondary";
59
- }
60
- const closeButton = (index.h("div", { class: AlertClass.close }, index.h("gov-button", { size: "s", "aria-label": this.wcagCloseLabel, type: "base", variant: variant, inverse: inverse, "on-gov-click": this.onCloseHandler.bind(this) }, index.h("gov-icon", { name: "x-lg" }))));
61
- return (index.h(index.Host, { class: this.h.classes(AlertClass.root), variant: this.variant }, index.h("section", { class: AlertClass.section, role: "alert" }, this.h.hasSlot("icon") && (index.h("div", { class: AlertClass.icon }, index.h("slot", { name: "icon" }))), index.h("div", { class: AlertClass.content }, this.headline ? (index.h(Fragment.Fragment, null, index.h("div", { class: AlertClass.headline }, index.h("p", null, this.headline), index.h("gov-button", { size: "s", "aria-label": this.wcagToggleLabel, type: "base", variant: variant, inverse: inverse, "on-gov-click": () => this.toggleContent = !this.toggleContent }, index.h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down' }))), index.h("div", { hidden: !this.toggleContent, "aria-hidden": template.toBoolAttr(this.toggleContent) }, index.h("slot", null)))) : (index.h("slot", null)))), this.closable && closeButton));
62
- }
63
- onCloseHandler(e) {
64
- this.govClose.emit({
65
- component: AlertClass.root,
66
- ref: this.host,
67
- originalEvent: e,
68
- });
69
- }
70
- /**
71
- * Validate the WCAG attributes of the component
72
- */
73
- async validateWcag() {
74
- if (this.closable) {
75
- wcag.validateWcagProp(this.wcagCloseLabel, 'wcag-close-label', AlertClass.root);
76
- }
77
- if (this.headline) {
78
- wcag.validateWcagProp(this.wcagToggleLabel, 'wcag-toggle-label', AlertClass.root);
79
- }
80
- }
81
- get host() { return index.getElement(this); }
82
- static get watchers() { return {
83
- "variant": ["validateVariant"]
84
- }; }
85
- };
86
- GovAlert.style = govAlertCss;
87
-
88
- exports.gov_alert = GovAlert;
89
-
90
- //# sourceMappingURL=gov-alert.cjs.entry.js.map