@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
@@ -78,7 +78,7 @@
78
78
  - Variables - Attachments
79
79
  */
80
80
  /*
81
- - Variables - Alert
81
+ - Variables - Infobar
82
82
  */
83
83
  /*
84
84
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -78,7 +78,7 @@
78
78
  - Variables - Attachments
79
79
  */
80
80
  /*
81
- - Variables - Alert
81
+ - Variables - Infobar
82
82
  */
83
83
  /*
84
84
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -74,7 +74,7 @@
74
74
  - Variables - Attachments
75
75
  */
76
76
  /*
77
- - Variables - Alert
77
+ - Variables - Infobar
78
78
  */
79
79
  /*
80
80
  - Variables - Backdrop
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -238,7 +238,7 @@
238
238
  padding: 0.75rem 1rem;
239
239
  border-left: 0.25rem solid transparent;
240
240
  background: var(--gov-toast-message-bg, var(--gov-color-neutral-white));
241
- z-index: 201;
241
+ z-index: 301;
242
242
  position: relative;
243
243
  position: fixed;
244
244
  max-width: 23.4375rem;
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -255,10 +255,31 @@
255
255
  height: 0;
256
256
  border: 0.625rem solid transparent;
257
257
  }
258
+ .gov-tooltip-content gov-button {
259
+ position: absolute;
260
+ right: 0;
261
+ top: 0;
262
+ }
258
263
  .gov-tooltip-content[is-visible=""], .gov-tooltip-content[is-visible=true i], .gov-tooltip-content[is-visible="1"] {
259
264
  opacity: 1;
260
265
  }
261
- .gov-tooltip[size=s] .gov-tooltip-content {
266
+ .gov-tooltip-content[variant=secondary] {
267
+ --gov-tooltip-content-bg-color: var(--gov-tooltip-secondary-bg-color, var(--gov-color-secondary));
268
+ --gov-tooltip-content-text-color: var(--gov-tooltip-secondary-text-color, var(--gov-color-neutral-white));
269
+ }
270
+ .gov-tooltip-content[variant=secondary][inverse=""], .gov-tooltip-content[variant=secondary][inverse=true i], .gov-tooltip-content[variant=secondary][inverse="1"] {
271
+ --gov-tooltip-content-bg-color: var(--gov-color-neutral-white);
272
+ --gov-tooltip-content-text-color: var(--gov-tooltip-secondary-text-color-inverse, var(--gov-color-secondary));
273
+ }
274
+ .gov-tooltip-content[variant=primary] {
275
+ --gov-tooltip-content-bg-color: var(--gov-tooltip-primary-bg-color, var(--gov-color-primary-300));
276
+ --gov-tooltip-content-text-color: var(--gov-tooltip-primary-text-color, var(--gov-color-secondary));
277
+ }
278
+ .gov-tooltip-content[variant=primary][inverse=""], .gov-tooltip-content[variant=primary][inverse=true i], .gov-tooltip-content[variant=primary][inverse="1"] {
279
+ --gov-tooltip-content-bg-color: var(--gov-color-neutral-white);
280
+ --gov-tooltip-content-text-color: var(--gov-tooltip-primary-text-color-inverse, var(--gov-color-primary));
281
+ }
282
+ .gov-tooltip-content[size=s] {
262
283
  --gov-tooltip-content-padding: var(--gov-tooltip-s-padding, 0.5rem);
263
284
  --gov-tooltip-content-arrow-size: var(--gov-tooltip-s-arrow-size, 0.4375rem);
264
285
  --gov-tooltip-content-letter-spacing: var(--gov-tooltip-s-letter-spacing, 0.0125rem);
@@ -267,7 +288,7 @@
267
288
  line-height: var(--gov-text-s-line-height);
268
289
  letter-spacing: var(--gov-text-s-letter-spacing);
269
290
  }
270
- .gov-tooltip[size=l] .gov-tooltip-content {
291
+ .gov-tooltip-content[size=l] {
271
292
  --gov-tooltip-content-padding: var(--gov-tooltip-l-padding, 1rem);
272
293
  --gov-tooltip-content-arrow-size: var(--gov-tooltip-l-arrow-size, 0.875rem);
273
294
  --gov-tooltip-content-letter-spacing: var(--gov-tooltip-l-letter-spacing, 0.002rem);
@@ -276,54 +297,38 @@
276
297
  line-height: var(--gov-text-xl-line-height);
277
298
  letter-spacing: var(--gov-text-xl-letter-spacing);
278
299
  }
279
- .gov-tooltip[position=top] .gov-tooltip-content {
280
- bottom: 100%;
281
- margin-bottom: 0.625rem;
282
- }
283
- .gov-tooltip[position=top] .gov-tooltip-content, .gov-tooltip[position=top] .gov-tooltip-content::before {
300
+ .gov-tooltip-content[position=top]::before {
284
301
  left: 50%;
285
302
  transform: translateX(-50%);
286
303
  }
287
- .gov-tooltip[position=top] .gov-tooltip-content::before {
304
+ .gov-tooltip-content[position=top]::before {
288
305
  top: 100%;
289
306
  border-bottom-width: 0;
290
307
  border-top-color: var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300));
291
308
  }
292
- .gov-tooltip[position=bottom] .gov-tooltip-content {
293
- top: 100%;
294
- margin-top: 0.625rem;
295
- }
296
- .gov-tooltip[position=bottom] .gov-tooltip-content, .gov-tooltip[position=bottom] .gov-tooltip-content::before {
309
+ .gov-tooltip-content[position=bottom]::before {
297
310
  left: 50%;
298
311
  transform: translateX(-50%);
299
312
  }
300
- .gov-tooltip[position=bottom] .gov-tooltip-content::before {
313
+ .gov-tooltip-content[position=bottom]::before {
301
314
  bottom: 100%;
302
315
  border-top-width: 0;
303
316
  border-bottom-color: var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300));
304
317
  }
305
- .gov-tooltip[position=left] .gov-tooltip-content {
306
- right: 100%;
307
- margin-right: 0.625rem;
308
- }
309
- .gov-tooltip[position=left] .gov-tooltip-content, .gov-tooltip[position=left] .gov-tooltip-content::before {
318
+ .gov-tooltip-content[position=left]::before {
310
319
  top: 50%;
311
320
  transform: translateY(-50%);
312
321
  }
313
- .gov-tooltip[position=left] .gov-tooltip-content::before {
322
+ .gov-tooltip-content[position=left]::before {
314
323
  left: 100%;
315
324
  border-right-width: 0;
316
325
  border-left-color: var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300));
317
326
  }
318
- .gov-tooltip[position=right] .gov-tooltip-content {
319
- left: 100%;
320
- margin-left: 0.625rem;
321
- }
322
- .gov-tooltip[position=right] .gov-tooltip-content, .gov-tooltip[position=right] .gov-tooltip-content::before {
327
+ .gov-tooltip-content[position=right]::before {
323
328
  top: 50%;
324
329
  transform: translateY(-50%);
325
330
  }
326
- .gov-tooltip[position=right] .gov-tooltip-content::before {
331
+ .gov-tooltip-content[position=right]::before {
327
332
  right: 100%;
328
333
  border-left-width: 0;
329
334
  border-right-color: var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300));
@@ -1,23 +1,35 @@
1
1
  import { h, Host } from "@stencil/core";
2
- import { TooltipContentClass } from "./constants";
2
+ import { TooltipContentClass, TooltipSize, TooltipVariant } from "./constants";
3
3
  import { toBoolAttr } from "../../helpers/Dom/template";
4
4
  export class GovTooltipContent {
5
5
  constructor() {
6
+ this.variant = TooltipVariant.PRIMARY;
7
+ this.size = TooltipSize._M;
8
+ this.persist = false;
6
9
  this.isVisible = false;
10
+ this.parentId = null;
7
11
  }
8
12
  visibleContent(newValue) {
9
13
  clearTimeout(this.timeout);
10
14
  if (newValue === false) {
11
15
  this.timeout = setTimeout(() => {
12
- this.host.style.visibility = 'hidden';
16
+ this.host.style.visibility = "hidden";
13
17
  }, 250);
14
18
  }
15
19
  else {
16
- this.host.style.visibility = 'visible';
20
+ this.host.style.visibility = "visible";
21
+ }
22
+ }
23
+ hideContent() {
24
+ this.isVisible = false;
25
+ this.persist = false;
26
+ const parentEl = document.getElementById(this.parentId);
27
+ if (parentEl) {
28
+ parentEl.hide().catch();
17
29
  }
18
30
  }
19
31
  render() {
20
- return (h(Host, { class: TooltipContentClass.root, role: 'tooltip', hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, h("slot", null)));
32
+ return (h(Host, { class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, h("slot", null), this.persist ? (h("gov-button", { "on-gov-click": this.hideContent.bind(this), variant: this.variant, size: this.size, type: "base", inverse: this.variant === TooltipVariant.SECONDARY }, h("gov-icon", { slot: "left-icon", name: "x-lg", type: "basic" }))) : null));
21
33
  }
22
34
  static get is() { return "gov-tooltip-content"; }
23
35
  static get originalStyleUrls() {
@@ -32,7 +44,55 @@ export class GovTooltipContent {
32
44
  }
33
45
  static get properties() {
34
46
  return {
35
- "isVisible": {
47
+ "variant": {
48
+ "type": "string",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "TooltipVariantType",
52
+ "resolved": "\"primary\" | \"secondary\"",
53
+ "references": {
54
+ "TooltipVariantType": {
55
+ "location": "import",
56
+ "path": "./constants",
57
+ "id": "../../../packages/core/src/components/gov-tooltip/constants.tsx::TooltipVariantType"
58
+ }
59
+ }
60
+ },
61
+ "required": false,
62
+ "optional": true,
63
+ "docs": {
64
+ "tags": [],
65
+ "text": "Style variation of the tooltip"
66
+ },
67
+ "attribute": "variant",
68
+ "reflect": false,
69
+ "defaultValue": "TooltipVariant.PRIMARY"
70
+ },
71
+ "size": {
72
+ "type": "string",
73
+ "mutable": false,
74
+ "complexType": {
75
+ "original": "TooltipSizeType",
76
+ "resolved": "\"l\" | \"m\" | \"s\"",
77
+ "references": {
78
+ "TooltipSizeType": {
79
+ "location": "import",
80
+ "path": "./constants",
81
+ "id": "../../../packages/core/src/components/gov-tooltip/constants.tsx::TooltipSizeType"
82
+ }
83
+ }
84
+ },
85
+ "required": false,
86
+ "optional": true,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": "Tooltip\u2019s size."
90
+ },
91
+ "attribute": "size",
92
+ "reflect": false,
93
+ "defaultValue": "TooltipSize._M"
94
+ },
95
+ "persist": {
36
96
  "type": "boolean",
37
97
  "mutable": false,
38
98
  "complexType": {
@@ -41,6 +101,24 @@ export class GovTooltipContent {
41
101
  "references": {}
42
102
  },
43
103
  "required": false,
104
+ "optional": true,
105
+ "docs": {
106
+ "tags": [],
107
+ "text": "Tooltip is still visible."
108
+ },
109
+ "attribute": "persist",
110
+ "reflect": false,
111
+ "defaultValue": "false"
112
+ },
113
+ "isVisible": {
114
+ "type": "boolean",
115
+ "mutable": true,
116
+ "complexType": {
117
+ "original": "boolean",
118
+ "resolved": "boolean",
119
+ "references": {}
120
+ },
121
+ "required": false,
44
122
  "optional": false,
45
123
  "docs": {
46
124
  "tags": [],
@@ -49,6 +127,24 @@ export class GovTooltipContent {
49
127
  "attribute": "is-visible",
50
128
  "reflect": false,
51
129
  "defaultValue": "false"
130
+ },
131
+ "parentId": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "string",
136
+ "resolved": "string",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "Indicates display of tooltip content"
144
+ },
145
+ "attribute": "parent-id",
146
+ "reflect": false,
147
+ "defaultValue": "null"
52
148
  }
53
149
  };
54
150
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gov-tooltip-content.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tooltip/gov-tooltip-content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAMvD,MAAM,OAAO,iBAAiB;;qBAOoC,KAAK;;EAGtE,cAAc,CAAC,QAAiB;IAC/B,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC1B,IAAI,QAAQ,KAAK,KAAK,EAAE;MACvB,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;QAC9B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,CAAA;MACtC,CAAC,EAAE,GAAG,CAAC,CAAA;KACP;SAAM;MACN,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,SAAS,CAAA;KACtC;EACF,CAAC;EAED,MAAM;IACL,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,SAAS,iBAAe,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAc,IAAI,CAAC,SAAS;MACpJ,eAAa,CACP,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\nimport { TooltipContentClass } from './constants'\nimport { toBoolAttr } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-tooltip-content',\n\tstyleUrl: 'gov-tooltip-content.scss',\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: 'is-visible' }) readonly isVisible: boolean = false\n\n\t@Watch('isVisible')\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = 'hidden'\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = 'visible'\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={TooltipContentClass.root} role={'tooltip'} hidden={!this.isVisible} aria-hidden={!toBoolAttr(this.isVisible)} is-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-tooltip-content.js","sourceRoot":"","sources":["../../../../../../src/components/gov-tooltip/gov-tooltip-content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAmB,cAAc,EAAsB,MAAM,aAAa,CAAA;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAMvD,MAAM,OAAO,iBAAiB;;mBAOmB,cAAc,CAAC,OAAO;gBAI5B,WAAW,CAAC,EAAE;mBAI5B,KAAK;qBAI6B,KAAK;oBAId,IAAI;;EAGzD,cAAc,CAAC,QAAiB;IAC/B,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC1B,IAAI,QAAQ,KAAK,KAAK,EAAE;MACvB,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;QAC9B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ,CAAA;MACtC,CAAC,EAAE,GAAG,CAAC,CAAA;KACP;SAAM;MACN,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,SAAS,CAAA;KACtC;EACF,CAAC;EAED,WAAW;IACV,IAAI,CAAC,SAAS,GAAG,KAAK,CAAA;IACtB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;IACpB,MAAM,QAAQ,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAA0B,CAAA;IAChF,IAAI,QAAQ,EAAE;MACb,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAA;KACvB;EACF,CAAC;EAED,MAAM;IACL,OAAO,CACN,EAAC,IAAI,IACJ,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAC/B,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,CAAC,IAAI,CAAC,SAAS,iBACV,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,gBAC5B,IAAI,CAAC,SAAS;MAC1B,eAAa;MACZ,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CACf,kCACe,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,cAAc,CAAC,SAAS;QAClD,gBAAU,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAa,CACzD,CACb,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipVariant, TooltipVariantType } from \"./constants\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-tooltip-content\",\n\tstyleUrl: \"gov-tooltip-content.scss\",\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly variant?: TooltipVariantType = TooltipVariant.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip is still visible.\n\t */\n\t@Prop() persist?: boolean = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\n\n\t@Watch(\"isVisible\")\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = \"hidden\"\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = \"visible\"\n\t\t}\n\t}\n\n\thideContent() {\n\t\tthis.isVisible = false\n\t\tthis.persist = false\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\n\t\tif (parentEl) {\n\t\t\tparentEl.hide().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={TooltipContentClass.root}\n\t\t\t\trole={\"tooltip\"}\n\t\t\t\thidden={!this.isVisible}\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\n\t\t\t\tis-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t\t{this.persist ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"base\"}\n\t\t\t\t\t\tinverse={this.variant === TooltipVariant.SECONDARY}>\n\t\t\t\t\t\t<gov-icon slot={\"left-icon\"} name={\"x-lg\"} type={\"basic\"}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -64,7 +64,7 @@
64
64
  - Variables - Attachments
65
65
  */
66
66
  /*
67
- - Variables - Alert
67
+ - Variables - Infobar
68
68
  */
69
69
  /*
70
70
  - Variables - Backdrop
@@ -237,20 +237,4 @@
237
237
  .gov-tooltip[icon=""], .gov-tooltip[icon=true i], .gov-tooltip[icon="1"] {
238
238
  display: inline-flex;
239
239
  border-bottom: 0;
240
- }
241
- .gov-tooltip[variant=secondary] {
242
- --gov-tooltip-content-bg-color: var(--gov-tooltip-secondary-bg-color, var(--gov-color-secondary));
243
- --gov-tooltip-content-text-color: var(--gov-tooltip-secondary-text-color, var(--gov-color-neutral-white));
244
- }
245
- .gov-tooltip[variant=secondary][inverse=""], .gov-tooltip[variant=secondary][inverse=true i], .gov-tooltip[variant=secondary][inverse="1"] {
246
- --gov-tooltip-content-bg-color: var(--gov-color-neutral-white);
247
- --gov-tooltip-content-text-color: var(--gov-tooltip-secondary-text-color-inverse, var(--gov-color-secondary));
248
- }
249
- .gov-tooltip[variant=primary] {
250
- --gov-tooltip-content-bg-color: var(--gov-tooltip-primary-bg-color, var(--gov-color-primary-300));
251
- --gov-tooltip-content-text-color: var(--gov-tooltip-primary-text-color, var(--gov-color-secondary));
252
- }
253
- .gov-tooltip[variant=primary][inverse=""], .gov-tooltip[variant=primary][inverse=true i], .gov-tooltip[variant=primary][inverse="1"] {
254
- --gov-tooltip-content-bg-color: var(--gov-color-neutral-white);
255
- --gov-tooltip-content-text-color: var(--gov-tooltip-primary-text-color-inverse, var(--gov-color-primary));
256
240
  }