@gov-design-system-ce/components 4.1.3-BETA-10 → 4.2.0

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 (645) hide show
  1. package/dist/cjs/{constants-02aec493.js → constants-7f713d6c.js} +2 -2
  2. package/dist/cjs/{constants-02aec493.js.map → constants-7f713d6c.js.map} +1 -1
  3. package/dist/cjs/{constants-4dfa23e3.js → constants-c7447ffd.js} +3 -1
  4. package/dist/cjs/constants-c7447ffd.js.map +1 -0
  5. package/dist/cjs/{constants-52053f2d.js → constants-c84c60d6.js} +3 -1
  6. package/dist/cjs/constants-c84c60d6.js.map +1 -0
  7. package/dist/cjs/core.cjs.js +1 -1
  8. package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
  9. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-banner.cjs.entry.js +79 -0
  11. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -0
  12. package/dist/cjs/gov-blockquote.cjs.entry.js +33 -0
  13. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -0
  14. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
  15. package/dist/cjs/gov-button.cjs.entry.js +5 -4
  16. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-card.cjs.entry.js +1 -1
  18. package/dist/cjs/gov-chip.cjs.entry.js +4 -3
  19. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  22. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
  24. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  25. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  26. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  28. package/dist/cjs/gov-flex_3.cjs.entry.js +5 -5
  29. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -2
  31. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +3 -3
  33. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -1
  35. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  37. package/dist/cjs/gov-form-file.cjs.entry.js +3 -2
  38. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  39. package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-form-input_2.cjs.entry.js +10 -8
  41. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -3
  44. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  46. package/dist/cjs/gov-form-radio-group.cjs.entry.js +3 -3
  47. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  48. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -1
  49. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  50. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  51. package/dist/cjs/gov-form-select.cjs.entry.js +4 -3
  52. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -1
  54. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  55. package/dist/cjs/gov-grid-item.cjs.entry.js +13 -7
  56. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  57. package/dist/cjs/gov-grid.cjs.entry.js +7 -5
  58. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-infobar.cjs.entry.js +4 -3
  60. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  61. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  62. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  63. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  64. package/dist/cjs/gov-link.cjs.entry.js +2 -1
  65. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  66. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  67. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  68. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  69. package/dist/cjs/gov-pagination.cjs.entry.js +2 -1
  70. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  71. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  72. package/dist/cjs/gov-stepper-item.cjs.entry.js +2 -2
  73. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  74. package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
  75. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  76. package/dist/cjs/gov-tabs.cjs.entry.js +3 -2
  77. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  78. package/dist/cjs/gov-tag.cjs.entry.js +1 -1
  79. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  80. package/dist/cjs/gov-toast.cjs.entry.js +3 -2
  81. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  82. package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
  83. package/dist/cjs/gov-tooltip.cjs.entry.js +2 -2
  84. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  85. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  86. package/dist/cjs/index-0e4f24f9.js +8 -4
  87. package/dist/cjs/loader.cjs.js +1 -1
  88. package/dist/collection/collection-manifest.json +2 -1
  89. package/dist/collection/components/gov-attachments/gov-attachments-item.css +3 -4
  90. package/dist/collection/components/gov-banner/constants.js +26 -0
  91. package/dist/collection/components/gov-banner/constants.js.map +1 -0
  92. package/dist/collection/components/gov-banner/gov-banner.js +202 -0
  93. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -0
  94. package/dist/collection/components/gov-blocquote/constants.js +10 -0
  95. package/dist/collection/components/gov-blocquote/constants.js.map +1 -0
  96. package/dist/collection/components/gov-blocquote/gov-blockquote.js +61 -0
  97. package/dist/collection/components/gov-blocquote/gov-blockquote.js.map +1 -0
  98. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  99. package/dist/collection/components/gov-button/button/gov-button.js +5 -4
  100. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  101. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  102. package/dist/collection/components/gov-card/gov-card.js +1 -1
  103. package/dist/collection/components/gov-chip/gov-chip.js +4 -3
  104. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  105. package/dist/collection/components/gov-container/gov-container.js +1 -1
  106. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  107. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  108. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  109. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  110. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  111. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  112. package/dist/collection/components/gov-flex/gov-flex.js +22 -3
  113. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  114. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -2
  115. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  116. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -1
  117. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  118. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  119. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -2
  120. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  121. package/dist/collection/components/gov-form/group/constants.js +1 -1
  122. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  123. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +2 -2
  124. package/dist/collection/components/gov-form/group/gov-form-group.css +4 -4
  125. package/dist/collection/components/gov-form/group/gov-form-group.js +2 -2
  126. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +2 -2
  127. package/dist/collection/components/gov-form/input/gov-form-input.js +7 -6
  128. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  129. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  130. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  131. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -3
  132. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  133. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  134. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -1
  135. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  136. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  137. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -3
  138. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  139. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -1
  140. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  141. package/dist/collection/components/gov-grid/constants.js +2 -0
  142. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  143. package/dist/collection/components/gov-grid/gov-grid-item.js +111 -20
  144. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  145. package/dist/collection/components/gov-grid/gov-grid.js +56 -14
  146. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  147. package/dist/collection/components/gov-icon/gov-icon.js +0 -2
  148. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  149. package/dist/collection/components/gov-infobar/gov-infobar.js +4 -3
  150. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  151. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  152. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  153. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  154. package/dist/collection/components/gov-link/constants.js +1 -0
  155. package/dist/collection/components/gov-link/constants.js.map +1 -1
  156. package/dist/collection/components/gov-link/gov-link.js +1 -1
  157. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  158. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  159. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +3 -2
  160. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  161. package/dist/collection/components/gov-message/gov-message.js +1 -1
  162. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  163. package/dist/collection/components/gov-pagination/gov-pagination.js +2 -1
  164. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  165. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  166. package/dist/collection/components/gov-stepper/constants.js +2 -0
  167. package/dist/collection/components/gov-stepper/constants.js.map +1 -1
  168. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  169. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
  170. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  171. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  172. package/dist/collection/components/gov-tabs/gov-tabs.js +3 -2
  173. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  174. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  175. package/dist/collection/components/gov-theme-switch/constants.js +1 -0
  176. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  177. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  178. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  179. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  180. package/dist/collection/components/gov-toast/gov-toast.js +3 -2
  181. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  182. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  183. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  184. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  185. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  186. package/dist/collection/pages/Banner.js +268 -0
  187. package/dist/collection/pages/Banner.js.map +1 -0
  188. package/dist/collection/pages/Blockquote.js +25 -0
  189. package/dist/collection/pages/Blockquote.js.map +1 -0
  190. package/dist/collection/pages/Breadcrumbs.js +2 -2
  191. package/dist/collection/pages/Breadcrumbs.js.map +1 -1
  192. package/dist/collection/pages/Card.js +2 -2
  193. package/dist/collection/pages/Card.js.map +1 -1
  194. package/dist/collection/pages/Flex.js +1 -1
  195. package/dist/collection/pages/Flex.js.map +1 -1
  196. package/dist/collection/pages/Grid.js +61 -40
  197. package/dist/collection/pages/Grid.js.map +1 -1
  198. package/dist/collection/pages/Home.js +57 -0
  199. package/dist/collection/pages/Home.js.map +1 -1
  200. package/dist/collection/pages/Infobar.js +36 -56
  201. package/dist/collection/pages/Infobar.js.map +1 -1
  202. package/dist/collection/pages/Layout.js +10 -10
  203. package/dist/collection/pages/Layout.js.map +1 -1
  204. package/dist/collection/pages/Tag.js +14 -0
  205. package/dist/collection/pages/Tag.js.map +1 -1
  206. package/dist/collection/pages/Tiles.js +8 -235
  207. package/dist/collection/pages/Tiles.js.map +1 -1
  208. package/dist/collection/pages/Typography.js +110 -51
  209. package/dist/collection/pages/Typography.js.map +1 -1
  210. package/dist/components/gov-accordion-item.js +1 -1
  211. package/dist/components/gov-attachments-item.js +1 -1
  212. package/dist/components/{gov-tiles.d.ts → gov-banner.d.ts} +4 -4
  213. package/dist/components/gov-banner.js +2 -0
  214. package/dist/components/gov-banner.js.map +1 -0
  215. package/dist/components/gov-blockquote.d.ts +11 -0
  216. package/dist/components/gov-blockquote.js +2 -0
  217. package/dist/components/gov-blockquote.js.map +1 -0
  218. package/dist/components/gov-breadcrumbs.js +1 -1
  219. package/dist/components/gov-breadcrumbs.js.map +1 -1
  220. package/dist/components/gov-button.js +1 -1
  221. package/dist/components/gov-card.js +1 -1
  222. package/dist/components/gov-chip.js +1 -1
  223. package/dist/components/gov-container.js +1 -1
  224. package/dist/components/gov-control-group.js +1 -1
  225. package/dist/components/gov-cookiebar.js +1 -1
  226. package/dist/components/gov-dialog.js +1 -1
  227. package/dist/components/gov-dialog.js.map +1 -1
  228. package/dist/components/gov-dropdown.js +1 -1
  229. package/dist/components/gov-empty.js +1 -1
  230. package/dist/components/gov-error-code.js +1 -1
  231. package/dist/components/gov-flex.js +1 -1
  232. package/dist/components/gov-flex.js.map +1 -1
  233. package/dist/components/gov-form-autocomplete.js +1 -1
  234. package/dist/components/gov-form-checkbox-group.js +1 -1
  235. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  236. package/dist/components/gov-form-checkbox.js +1 -1
  237. package/dist/components/gov-form-checkbox.js.map +1 -1
  238. package/dist/components/gov-form-control.js +1 -1
  239. package/dist/components/gov-form-file.js +1 -1
  240. package/dist/components/gov-form-file.js.map +1 -1
  241. package/dist/components/gov-form-group.js +1 -1
  242. package/dist/components/gov-form-input.js +1 -1
  243. package/dist/components/gov-form-label.js +1 -1
  244. package/dist/components/gov-form-message.js +1 -1
  245. package/dist/components/gov-form-multi-select.js +1 -1
  246. package/dist/components/gov-form-multi-select.js.map +1 -1
  247. package/dist/components/gov-form-password-power.js +1 -1
  248. package/dist/components/gov-form-radio-group.js +1 -1
  249. package/dist/components/gov-form-radio-group.js.map +1 -1
  250. package/dist/components/gov-form-radio.js +1 -1
  251. package/dist/components/gov-form-radio.js.map +1 -1
  252. package/dist/components/gov-form-search.js +1 -1
  253. package/dist/components/gov-form-select.js +1 -1
  254. package/dist/components/gov-form-switch.js +1 -1
  255. package/dist/components/gov-form-switch.js.map +1 -1
  256. package/dist/components/gov-grid-item.js +1 -1
  257. package/dist/components/gov-grid-item.js.map +1 -1
  258. package/dist/components/gov-grid.js +1 -1
  259. package/dist/components/gov-grid.js.map +1 -1
  260. package/dist/components/gov-icon.js +1 -1
  261. package/dist/components/gov-infobar.js +1 -1
  262. package/dist/components/gov-infobar.js.map +1 -1
  263. package/dist/components/gov-layout-column.js +1 -1
  264. package/dist/components/gov-layout.js +1 -1
  265. package/dist/components/gov-lifecycle.js +1 -1
  266. package/dist/components/gov-link.js +1 -1
  267. package/dist/components/gov-link.js.map +1 -1
  268. package/dist/components/gov-loading.js +1 -1
  269. package/dist/components/gov-loading.js.map +1 -1
  270. package/dist/components/gov-message.js +1 -1
  271. package/dist/components/gov-message.js.map +1 -1
  272. package/dist/components/gov-pagination.js +1 -1
  273. package/dist/components/gov-pagination.js.map +1 -1
  274. package/dist/components/gov-skeleton.js +1 -1
  275. package/dist/components/gov-spacer.js +1 -1
  276. package/dist/components/gov-stepper-item.js +1 -1
  277. package/dist/components/gov-stepper-item.js.map +1 -1
  278. package/dist/components/gov-stepper.js +1 -1
  279. package/dist/components/gov-tabs-item.js +1 -1
  280. package/dist/components/gov-tabs.js +1 -1
  281. package/dist/components/gov-tabs.js.map +1 -1
  282. package/dist/components/gov-tag.js +1 -1
  283. package/dist/components/gov-theme-switch.js +1 -1
  284. package/dist/components/gov-theme-switch.js.map +1 -1
  285. package/dist/components/gov-tile.js +1 -1
  286. package/dist/components/gov-toast.js +1 -1
  287. package/dist/components/gov-toast.js.map +1 -1
  288. package/dist/components/gov-tooltip-content.js +1 -1
  289. package/dist/components/gov-tooltip.js +1 -1
  290. package/dist/components/gov-tooltip.js.map +1 -1
  291. package/dist/components/gov-wizard-item.js +1 -1
  292. package/dist/components/gov-wizard.js +1 -1
  293. package/dist/components/p-0327a469.js +2 -0
  294. package/dist/components/p-0327a469.js.map +1 -0
  295. package/dist/components/p-2ca5423c.js +2 -0
  296. package/dist/components/p-2ca5423c.js.map +1 -0
  297. package/dist/components/p-2fc08a71.js +2 -0
  298. package/dist/components/p-2fc08a71.js.map +1 -0
  299. package/dist/components/p-3c90521b.js +2 -0
  300. package/dist/components/p-3c90521b.js.map +1 -0
  301. package/dist/components/p-3fead64a.js +2 -0
  302. package/dist/components/p-3fead64a.js.map +1 -0
  303. package/dist/components/p-4fba9df0.js +2 -0
  304. package/dist/components/p-4fba9df0.js.map +1 -0
  305. package/dist/components/p-69a31c96.js +2 -0
  306. package/dist/components/p-69a31c96.js.map +1 -0
  307. package/dist/components/p-b533871a.js +2 -0
  308. package/dist/components/p-b533871a.js.map +1 -0
  309. package/dist/components/p-b5dc6bae.js +2 -0
  310. package/dist/components/p-b5dc6bae.js.map +1 -0
  311. package/dist/components/p-ea128b8b.js +2 -0
  312. package/dist/components/p-ea128b8b.js.map +1 -0
  313. package/dist/components/p-f9a1ff6e.js +2 -0
  314. package/dist/components/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  315. package/dist/components/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  316. package/dist/core/core.css +2711 -1506
  317. package/dist/core/core.esm.js +1 -1
  318. package/dist/core/core.esm.js.map +1 -1
  319. package/dist/core/p-005214d1.entry.js +2 -0
  320. package/dist/core/p-0ef1f684.entry.js +2 -0
  321. package/dist/core/p-0ef1f684.entry.js.map +1 -0
  322. package/dist/core/p-0fc9ea97.entry.js +2 -0
  323. package/dist/core/p-0fc9ea97.entry.js.map +1 -0
  324. package/dist/core/p-132c9a87.entry.js +2 -0
  325. package/dist/core/p-132c9a87.entry.js.map +1 -0
  326. package/dist/core/p-16d3a79a.entry.js +2 -0
  327. package/dist/core/{p-49ebfe10.entry.js.map → p-16d3a79a.entry.js.map} +1 -1
  328. package/dist/core/p-16f44a0b.entry.js +2 -0
  329. package/dist/core/p-16f44a0b.entry.js.map +1 -0
  330. package/dist/core/p-1c7c9144.entry.js +2 -0
  331. package/dist/core/p-1cf1dd10.entry.js +2 -0
  332. package/dist/core/{p-bd667900.entry.js.map → p-1cf1dd10.entry.js.map} +1 -1
  333. package/dist/core/{p-9fcb2ba7.entry.js → p-23b4dcd3.entry.js} +2 -2
  334. package/dist/core/p-2536a8ff.entry.js +2 -0
  335. package/dist/core/p-2536a8ff.entry.js.map +1 -0
  336. package/dist/core/p-28d1bc01.entry.js +2 -0
  337. package/dist/core/p-28d1bc01.entry.js.map +1 -0
  338. package/dist/core/p-2ca5423c.js +2 -0
  339. package/dist/core/p-2ca5423c.js.map +1 -0
  340. package/dist/core/{p-a5648769.entry.js → p-3acaa012.entry.js} +2 -2
  341. package/dist/core/{p-a5648769.entry.js.map → p-3acaa012.entry.js.map} +1 -1
  342. package/dist/core/p-3d7fb8f8.entry.js +2 -0
  343. package/dist/core/p-3d7fb8f8.entry.js.map +1 -0
  344. package/dist/core/{p-fd7a3951.entry.js → p-46ecf09e.entry.js} +2 -2
  345. package/dist/core/p-49cd4d0d.entry.js +2 -0
  346. package/dist/core/{p-0932c74d.entry.js.map → p-49cd4d0d.entry.js.map} +1 -1
  347. package/dist/core/{p-eed4e606.entry.js → p-5108eb37.entry.js} +2 -2
  348. package/dist/core/{p-eed4e606.entry.js.map → p-5108eb37.entry.js.map} +1 -1
  349. package/dist/core/p-52103c05.entry.js +2 -0
  350. package/dist/core/p-52103c05.entry.js.map +1 -0
  351. package/dist/core/{p-ab500948.entry.js → p-5242b51b.entry.js} +2 -2
  352. package/dist/core/p-564555e6.entry.js +2 -0
  353. package/dist/core/p-59fe6cbc.entry.js +2 -0
  354. package/dist/core/p-59fe6cbc.entry.js.map +1 -0
  355. package/dist/core/p-650fe9e8.entry.js +2 -0
  356. package/dist/core/{p-9e77f076.entry.js.map → p-650fe9e8.entry.js.map} +1 -1
  357. package/dist/core/p-6e41cf69.entry.js +2 -0
  358. package/dist/core/p-7399ad59.entry.js +2 -0
  359. package/dist/core/p-7399ad59.entry.js.map +1 -0
  360. package/dist/core/p-79ec86da.entry.js +2 -0
  361. package/dist/core/p-80bebb7f.entry.js +2 -0
  362. package/dist/core/p-80bebb7f.entry.js.map +1 -0
  363. package/dist/core/p-8cbe8add.entry.js +2 -0
  364. package/dist/core/{p-e078dab3.entry.js.map → p-8cbe8add.entry.js.map} +1 -1
  365. package/dist/core/p-8f73f8e0.entry.js +2 -0
  366. package/dist/core/p-94119ad4.entry.js +2 -0
  367. package/dist/core/p-94119ad4.entry.js.map +1 -0
  368. package/dist/core/p-952ab9e5.entry.js +2 -0
  369. package/dist/core/{p-a8a5e8ca.entry.js.map → p-952ab9e5.entry.js.map} +1 -1
  370. package/dist/core/{p-5ff7f0c4.entry.js → p-99f192c1.entry.js} +2 -2
  371. package/dist/core/p-9ae280b2.entry.js +2 -0
  372. package/dist/core/p-9ae280b2.entry.js.map +1 -0
  373. package/dist/core/p-9c1601b3.entry.js +2 -0
  374. package/dist/core/p-9c1601b3.entry.js.map +1 -0
  375. package/dist/core/p-a02f2547.entry.js +2 -0
  376. package/dist/core/p-ab11081d.entry.js +2 -0
  377. package/dist/core/p-ab11081d.entry.js.map +1 -0
  378. package/dist/core/p-ab868410.entry.js +2 -0
  379. package/dist/core/{p-f9474bb3.entry.js.map → p-ab868410.entry.js.map} +1 -1
  380. package/dist/core/{p-a58f4e2b.entry.js → p-ae88fe6b.entry.js} +2 -2
  381. package/dist/core/p-c07f6bb4.entry.js +2 -0
  382. package/dist/core/p-c07f6bb4.entry.js.map +1 -0
  383. package/dist/core/{p-d512059d.entry.js → p-c2abc031.entry.js} +2 -2
  384. package/dist/core/p-c688349d.entry.js +2 -0
  385. package/dist/core/p-c6fdc0a9.entry.js +2 -0
  386. package/dist/core/p-c6fdc0a9.entry.js.map +1 -0
  387. package/dist/core/p-c91512dd.entry.js +2 -0
  388. package/dist/core/p-cf9d5c2f.entry.js +2 -0
  389. package/dist/core/p-cf9d5c2f.entry.js.map +1 -0
  390. package/dist/core/p-d1270d72.entry.js +2 -0
  391. package/dist/core/{p-93179cbf.entry.js.map → p-d1270d72.entry.js.map} +1 -1
  392. package/dist/core/p-d141e9ca.entry.js +2 -0
  393. package/dist/core/p-d141e9ca.entry.js.map +1 -0
  394. package/dist/core/p-de852480.entry.js +2 -0
  395. package/dist/core/p-e89471ef.entry.js +2 -0
  396. package/dist/core/p-ea128b8b.js +2 -0
  397. package/dist/core/p-ea128b8b.js.map +1 -0
  398. package/dist/core/p-eb8a9705.entry.js +2 -0
  399. package/dist/core/p-eb8a9705.entry.js.map +1 -0
  400. package/dist/core/p-ee950038.entry.js +2 -0
  401. package/dist/core/p-ee950038.entry.js.map +1 -0
  402. package/dist/core/p-f0e001c7.entry.js +2 -0
  403. package/dist/core/{p-c9d70c7a.entry.js.map → p-f0e001c7.entry.js.map} +1 -1
  404. package/dist/core/{p-9514520c.entry.js → p-f120ba66.entry.js} +2 -2
  405. package/dist/core/p-f120ba66.entry.js.map +1 -0
  406. package/dist/core/p-f333c673.entry.js +2 -0
  407. package/dist/core/{p-07b1fa1c.entry.js.map → p-f333c673.entry.js.map} +1 -1
  408. package/dist/core/p-f7e47c0a.entry.js +2 -0
  409. package/dist/core/p-f7e47c0a.entry.js.map +1 -0
  410. package/dist/core/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  411. package/dist/core/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  412. package/dist/esm/{constants-4da2b3c0.js → constants-1548499a.js} +2 -2
  413. package/dist/esm/{constants-4da2b3c0.js.map → constants-1548499a.js.map} +1 -1
  414. package/dist/esm/{constants-372455eb.js → constants-7b1ce2ec.js} +3 -1
  415. package/dist/esm/constants-7b1ce2ec.js.map +1 -0
  416. package/dist/esm/{constants-2d5a0e18.js → constants-dc2115cb.js} +3 -1
  417. package/dist/esm/constants-dc2115cb.js.map +1 -0
  418. package/dist/esm/core.js +1 -1
  419. package/dist/esm/gov-attachments_3.entry.js +2 -2
  420. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  421. package/dist/esm/gov-banner.entry.js +75 -0
  422. package/dist/esm/gov-banner.entry.js.map +1 -0
  423. package/dist/esm/gov-blockquote.entry.js +29 -0
  424. package/dist/esm/gov-blockquote.entry.js.map +1 -0
  425. package/dist/esm/gov-breadcrumbs.entry.js +1 -1
  426. package/dist/esm/gov-button.entry.js +5 -4
  427. package/dist/esm/gov-button.entry.js.map +1 -1
  428. package/dist/esm/gov-card.entry.js +1 -1
  429. package/dist/esm/gov-chip.entry.js +4 -3
  430. package/dist/esm/gov-chip.entry.js.map +1 -1
  431. package/dist/esm/gov-container.entry.js +1 -1
  432. package/dist/esm/gov-control-group.entry.js +1 -1
  433. package/dist/esm/gov-cookiebar.entry.js +1 -1
  434. package/dist/esm/gov-dialog.entry.js +1 -1
  435. package/dist/esm/gov-dialog.entry.js.map +1 -1
  436. package/dist/esm/gov-dropdown.entry.js +1 -1
  437. package/dist/esm/gov-empty.entry.js +1 -1
  438. package/dist/esm/gov-error-code.entry.js +1 -1
  439. package/dist/esm/gov-flex_3.entry.js +5 -5
  440. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  441. package/dist/esm/gov-form-autocomplete.entry.js +3 -2
  442. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  443. package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
  444. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  445. package/dist/esm/gov-form-checkbox.entry.js +2 -1
  446. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  447. package/dist/esm/gov-form-control.entry.js +1 -1
  448. package/dist/esm/gov-form-file.entry.js +3 -2
  449. package/dist/esm/gov-form-file.entry.js.map +1 -1
  450. package/dist/esm/gov-form-group.entry.js +2 -2
  451. package/dist/esm/gov-form-input_2.entry.js +10 -8
  452. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  453. package/dist/esm/gov-form-label.entry.js +1 -1
  454. package/dist/esm/gov-form-multi-select.entry.js +4 -3
  455. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  456. package/dist/esm/gov-form-password-power.entry.js +1 -1
  457. package/dist/esm/gov-form-radio-group.entry.js +3 -3
  458. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  459. package/dist/esm/gov-form-radio.entry.js +2 -1
  460. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  461. package/dist/esm/gov-form-search.entry.js +1 -1
  462. package/dist/esm/gov-form-select.entry.js +4 -3
  463. package/dist/esm/gov-form-select.entry.js.map +1 -1
  464. package/dist/esm/gov-form-switch.entry.js +2 -1
  465. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  466. package/dist/esm/gov-grid-item.entry.js +13 -7
  467. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  468. package/dist/esm/gov-grid.entry.js +7 -5
  469. package/dist/esm/gov-grid.entry.js.map +1 -1
  470. package/dist/esm/gov-infobar.entry.js +4 -3
  471. package/dist/esm/gov-infobar.entry.js.map +1 -1
  472. package/dist/esm/gov-layout-column.entry.js +1 -1
  473. package/dist/esm/gov-layout.entry.js +1 -1
  474. package/dist/esm/gov-lifecycle.entry.js +1 -1
  475. package/dist/esm/gov-link.entry.js +2 -1
  476. package/dist/esm/gov-link.entry.js.map +1 -1
  477. package/dist/esm/gov-loading.entry.js +1 -1
  478. package/dist/esm/gov-message.entry.js +1 -1
  479. package/dist/esm/gov-message.entry.js.map +1 -1
  480. package/dist/esm/gov-pagination.entry.js +2 -1
  481. package/dist/esm/gov-pagination.entry.js.map +1 -1
  482. package/dist/esm/gov-spacer.entry.js +1 -1
  483. package/dist/esm/gov-stepper-item.entry.js +2 -2
  484. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  485. package/dist/esm/gov-stepper.entry.js +2 -2
  486. package/dist/esm/gov-tabs-item.entry.js +1 -1
  487. package/dist/esm/gov-tabs.entry.js +3 -2
  488. package/dist/esm/gov-tabs.entry.js.map +1 -1
  489. package/dist/esm/gov-tag.entry.js +1 -1
  490. package/dist/esm/gov-tile.entry.js +1 -1
  491. package/dist/esm/gov-toast.entry.js +3 -2
  492. package/dist/esm/gov-toast.entry.js.map +1 -1
  493. package/dist/esm/gov-tooltip-content.entry.js +1 -1
  494. package/dist/esm/gov-tooltip.entry.js +2 -2
  495. package/dist/esm/gov-wizard-item.entry.js +2 -2
  496. package/dist/esm/gov-wizard.entry.js +1 -1
  497. package/dist/esm/index-bf8a6f64.js +8 -4
  498. package/dist/esm/loader.js +1 -1
  499. package/dist/hydrate/index.js +246 -128
  500. package/dist/hydrate/index.mjs +246 -128
  501. package/dist/stencil.config.js +2 -1
  502. package/dist/stencil.config.js.map +1 -1
  503. package/dist/types/components/gov-banner/constants.d.ts +26 -0
  504. package/dist/types/components/gov-banner/gov-banner.d.ts +38 -0
  505. package/dist/types/components/gov-blocquote/constants.d.ts +10 -0
  506. package/dist/types/components/gov-blocquote/gov-blockquote.d.ts +15 -0
  507. package/dist/types/components/gov-button/button/constants.d.ts +1 -1
  508. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  509. package/dist/types/components/gov-flex/gov-flex.d.ts +5 -1
  510. package/dist/types/components/gov-form/group/constants.d.ts +1 -1
  511. package/dist/types/components/gov-grid/constants.d.ts +4 -0
  512. package/dist/types/components/gov-grid/gov-grid-item.d.ts +25 -5
  513. package/dist/types/components/gov-grid/gov-grid.d.ts +11 -2
  514. package/dist/types/components/gov-icon/constants.d.ts +1 -1
  515. package/dist/types/components/gov-infobar/constants.d.ts +1 -1
  516. package/dist/types/components/gov-link/constants.d.ts +1 -0
  517. package/dist/types/components/gov-stepper/constants.d.ts +2 -0
  518. package/dist/types/components/gov-theme-switch/constants.d.ts +1 -0
  519. package/dist/types/components.d.ts +179 -36
  520. package/dist/types/pages/Banner.d.ts +3 -0
  521. package/dist/types/pages/Blockquote.d.ts +3 -0
  522. package/package.json +3 -3
  523. package/dist/cjs/constants-4dfa23e3.js.map +0 -1
  524. package/dist/cjs/constants-52053f2d.js.map +0 -1
  525. package/dist/cjs/gov-tiles.cjs.entry.js +0 -26
  526. package/dist/cjs/gov-tiles.cjs.entry.js.map +0 -1
  527. package/dist/collection/components/gov-tile/container/constants.js +0 -4
  528. package/dist/collection/components/gov-tile/container/constants.js.map +0 -1
  529. package/dist/collection/components/gov-tile/container/gov-tiles.js +0 -37
  530. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +0 -1
  531. package/dist/components/gov-tiles.js +0 -2
  532. package/dist/components/gov-tiles.js.map +0 -1
  533. package/dist/components/p-076c8b31.js +0 -2
  534. package/dist/components/p-076c8b31.js.map +0 -1
  535. package/dist/components/p-13a70392.js +0 -2
  536. package/dist/components/p-13a70392.js.map +0 -1
  537. package/dist/components/p-4d513423.js +0 -2
  538. package/dist/components/p-4d513423.js.map +0 -1
  539. package/dist/components/p-4faecdb2.js +0 -2
  540. package/dist/components/p-4faecdb2.js.map +0 -1
  541. package/dist/components/p-558cbab0.js +0 -2
  542. package/dist/components/p-558cbab0.js.map +0 -1
  543. package/dist/components/p-880743a5.js +0 -2
  544. package/dist/components/p-880743a5.js.map +0 -1
  545. package/dist/components/p-a521c59a.js +0 -2
  546. package/dist/components/p-a521c59a.js.map +0 -1
  547. package/dist/components/p-a877bf8a.js +0 -2
  548. package/dist/components/p-a877bf8a.js.map +0 -1
  549. package/dist/components/p-b97d8edd.js +0 -2
  550. package/dist/components/p-b97d8edd.js.map +0 -1
  551. package/dist/components/p-c438a723.js +0 -2
  552. package/dist/components/p-c5e91e5a.js +0 -2
  553. package/dist/components/p-c5e91e5a.js.map +0 -1
  554. package/dist/core/p-07b1fa1c.entry.js +0 -2
  555. package/dist/core/p-0932c74d.entry.js +0 -2
  556. package/dist/core/p-13c6da90.entry.js +0 -2
  557. package/dist/core/p-13c6da90.entry.js.map +0 -1
  558. package/dist/core/p-15a7b952.entry.js +0 -2
  559. package/dist/core/p-15a7b952.entry.js.map +0 -1
  560. package/dist/core/p-2470194a.entry.js +0 -2
  561. package/dist/core/p-2470194a.entry.js.map +0 -1
  562. package/dist/core/p-2abdce2d.entry.js +0 -2
  563. package/dist/core/p-2abdce2d.entry.js.map +0 -1
  564. package/dist/core/p-2ae8b8d5.entry.js +0 -2
  565. package/dist/core/p-2ae8b8d5.entry.js.map +0 -1
  566. package/dist/core/p-3627773f.entry.js +0 -2
  567. package/dist/core/p-3627773f.entry.js.map +0 -1
  568. package/dist/core/p-36b35592.entry.js +0 -2
  569. package/dist/core/p-36b35592.entry.js.map +0 -1
  570. package/dist/core/p-3974176f.entry.js +0 -2
  571. package/dist/core/p-3974176f.entry.js.map +0 -1
  572. package/dist/core/p-3b8b331f.entry.js +0 -2
  573. package/dist/core/p-41e0ad2e.entry.js +0 -2
  574. package/dist/core/p-41e0ad2e.entry.js.map +0 -1
  575. package/dist/core/p-49ebfe10.entry.js +0 -2
  576. package/dist/core/p-4aa5db49.entry.js +0 -2
  577. package/dist/core/p-4aa5db49.entry.js.map +0 -1
  578. package/dist/core/p-5e42395f.entry.js +0 -2
  579. package/dist/core/p-5e42395f.entry.js.map +0 -1
  580. package/dist/core/p-72c4ebcd.entry.js +0 -2
  581. package/dist/core/p-72cdac94.entry.js +0 -2
  582. package/dist/core/p-77bf7b01.entry.js +0 -2
  583. package/dist/core/p-77bf7b01.entry.js.map +0 -1
  584. package/dist/core/p-7a44bd0a.entry.js +0 -2
  585. package/dist/core/p-7a44bd0a.entry.js.map +0 -1
  586. package/dist/core/p-7c0be05a.entry.js +0 -2
  587. package/dist/core/p-7c0be05a.entry.js.map +0 -1
  588. package/dist/core/p-80c7db1f.entry.js +0 -2
  589. package/dist/core/p-80c7db1f.entry.js.map +0 -1
  590. package/dist/core/p-880743a5.js +0 -2
  591. package/dist/core/p-880743a5.js.map +0 -1
  592. package/dist/core/p-8e5f45d0.entry.js +0 -2
  593. package/dist/core/p-8ede0622.entry.js +0 -2
  594. package/dist/core/p-9256cf6c.entry.js +0 -2
  595. package/dist/core/p-93179cbf.entry.js +0 -2
  596. package/dist/core/p-93b747c1.entry.js +0 -2
  597. package/dist/core/p-9514520c.entry.js.map +0 -1
  598. package/dist/core/p-9897ac81.entry.js +0 -2
  599. package/dist/core/p-9897ac81.entry.js.map +0 -1
  600. package/dist/core/p-9e77f076.entry.js +0 -2
  601. package/dist/core/p-a0728f09.entry.js +0 -2
  602. package/dist/core/p-a0728f09.entry.js.map +0 -1
  603. package/dist/core/p-a22517e2.entry.js +0 -2
  604. package/dist/core/p-a22517e2.entry.js.map +0 -1
  605. package/dist/core/p-a521c59a.js +0 -2
  606. package/dist/core/p-a521c59a.js.map +0 -1
  607. package/dist/core/p-a8a5e8ca.entry.js +0 -2
  608. package/dist/core/p-b319674e.entry.js +0 -2
  609. package/dist/core/p-b404f53c.entry.js +0 -2
  610. package/dist/core/p-bd667900.entry.js +0 -2
  611. package/dist/core/p-c34dad75.entry.js +0 -2
  612. package/dist/core/p-c9d70c7a.entry.js +0 -2
  613. package/dist/core/p-e078dab3.entry.js +0 -2
  614. package/dist/core/p-e4ac787c.entry.js +0 -2
  615. package/dist/core/p-e4ac787c.entry.js.map +0 -1
  616. package/dist/core/p-e7b3b5db.entry.js +0 -2
  617. package/dist/core/p-e7b3b5db.entry.js.map +0 -1
  618. package/dist/core/p-f60265c3.entry.js +0 -2
  619. package/dist/core/p-f6863a64.entry.js +0 -2
  620. package/dist/core/p-f6863a64.entry.js.map +0 -1
  621. package/dist/core/p-f9474bb3.entry.js +0 -2
  622. package/dist/esm/constants-2d5a0e18.js.map +0 -1
  623. package/dist/esm/constants-372455eb.js.map +0 -1
  624. package/dist/esm/gov-tiles.entry.js +0 -22
  625. package/dist/esm/gov-tiles.entry.js.map +0 -1
  626. package/dist/types/components/gov-tile/container/constants.d.ts +0 -3
  627. package/dist/types/components/gov-tile/container/gov-tiles.d.ts +0 -10
  628. /package/dist/components/{p-c438a723.js.map → p-f9a1ff6e.js.map} +0 -0
  629. /package/dist/core/{p-8e5f45d0.entry.js.map → p-005214d1.entry.js.map} +0 -0
  630. /package/dist/core/{p-93b747c1.entry.js.map → p-1c7c9144.entry.js.map} +0 -0
  631. /package/dist/core/{p-9fcb2ba7.entry.js.map → p-23b4dcd3.entry.js.map} +0 -0
  632. /package/dist/core/{p-fd7a3951.entry.js.map → p-46ecf09e.entry.js.map} +0 -0
  633. /package/dist/core/{p-ab500948.entry.js.map → p-5242b51b.entry.js.map} +0 -0
  634. /package/dist/core/{p-b319674e.entry.js.map → p-564555e6.entry.js.map} +0 -0
  635. /package/dist/core/{p-b404f53c.entry.js.map → p-6e41cf69.entry.js.map} +0 -0
  636. /package/dist/core/{p-f60265c3.entry.js.map → p-79ec86da.entry.js.map} +0 -0
  637. /package/dist/core/{p-3b8b331f.entry.js.map → p-8f73f8e0.entry.js.map} +0 -0
  638. /package/dist/core/{p-5ff7f0c4.entry.js.map → p-99f192c1.entry.js.map} +0 -0
  639. /package/dist/core/{p-c34dad75.entry.js.map → p-a02f2547.entry.js.map} +0 -0
  640. /package/dist/core/{p-a58f4e2b.entry.js.map → p-ae88fe6b.entry.js.map} +0 -0
  641. /package/dist/core/{p-d512059d.entry.js.map → p-c2abc031.entry.js.map} +0 -0
  642. /package/dist/core/{p-72cdac94.entry.js.map → p-c688349d.entry.js.map} +0 -0
  643. /package/dist/core/{p-8ede0622.entry.js.map → p-c91512dd.entry.js.map} +0 -0
  644. /package/dist/core/{p-9256cf6c.entry.js.map → p-de852480.entry.js.map} +0 -0
  645. /package/dist/core/{p-72c4ebcd.entry.js.map → p-e89471ef.entry.js.map} +0 -0
@@ -3,20 +3,25 @@ import { GridItemClass } from "./constants";
3
3
  import { govHost } from "../../helpers/Dom/template";
4
4
  export class GovGridItem {
5
5
  constructor() {
6
- this.size = '12/12';
7
- this.sizeSm = undefined;
8
- this.sizeMd = undefined;
9
- this.sizeLg = undefined;
10
- this.sizeXl = undefined;
6
+ this.column = "12";
7
+ this.columnSm = undefined;
8
+ this.columnMd = undefined;
9
+ this.columnLg = undefined;
10
+ this.columnXl = undefined;
11
+ this.row = "1";
12
+ this.rowSm = undefined;
13
+ this.rowMd = undefined;
14
+ this.rowLg = undefined;
15
+ this.rowXl = undefined;
11
16
  this.h = govHost(this.host);
12
17
  }
13
18
  render() {
14
- return (h(Host, { key: 'e1dc6e3517618361ab3b5e3ad499a5bbbaae3d6a', class: this.h.classes(GridItemClass.root), role: "listitem", size: this.size, "size-sm": this.sizeSm, "size-md": this.sizeMd, "size-lg": this.sizeLg, "size-xl": this.sizeXl }, h("slot", { key: '53780db95fa728f252302cb86923ad9e9fcd9b66' })));
19
+ return (h(Host, { key: '58d1762c23639140ca76c43b99b6f00451531da9', class: this.h.classes(GridItemClass.root), role: "listitem" }, h("slot", { key: '87b4642506246324607c1ff3c7ca71e98fe5dd0a' })));
15
20
  }
16
21
  static get is() { return "gov-grid-item"; }
17
22
  static get properties() {
18
23
  return {
19
- "size": {
24
+ "column": {
20
25
  "type": "string",
21
26
  "mutable": false,
22
27
  "complexType": {
@@ -30,11 +35,11 @@ export class GovGridItem {
30
35
  "tags": [],
31
36
  "text": "Cell size as a fraction of 1/12 of the grid size"
32
37
  },
33
- "attribute": "size",
38
+ "attribute": "col-span",
34
39
  "reflect": false,
35
- "defaultValue": "'12/12'"
40
+ "defaultValue": "\"12\""
36
41
  },
37
- "sizeSm": {
42
+ "columnSm": {
38
43
  "type": "string",
39
44
  "mutable": false,
40
45
  "complexType": {
@@ -43,15 +48,15 @@ export class GovGridItem {
43
48
  "references": {}
44
49
  },
45
50
  "required": false,
46
- "optional": false,
51
+ "optional": true,
47
52
  "docs": {
48
53
  "tags": [],
49
54
  "text": "Cell size for SM media query and up as a fraction of 12 of the grid size"
50
55
  },
51
- "attribute": "size-sm",
56
+ "attribute": "col-span-sm",
52
57
  "reflect": false
53
58
  },
54
- "sizeMd": {
59
+ "columnMd": {
55
60
  "type": "string",
56
61
  "mutable": false,
57
62
  "complexType": {
@@ -60,15 +65,15 @@ export class GovGridItem {
60
65
  "references": {}
61
66
  },
62
67
  "required": false,
63
- "optional": false,
68
+ "optional": true,
64
69
  "docs": {
65
70
  "tags": [],
66
71
  "text": "Cell size for MD media query and up as a fraction of 12 of the grid size"
67
72
  },
68
- "attribute": "size-md",
73
+ "attribute": "col-span-md",
69
74
  "reflect": false
70
75
  },
71
- "sizeLg": {
76
+ "columnLg": {
72
77
  "type": "string",
73
78
  "mutable": false,
74
79
  "complexType": {
@@ -77,15 +82,32 @@ export class GovGridItem {
77
82
  "references": {}
78
83
  },
79
84
  "required": false,
80
- "optional": false,
85
+ "optional": true,
81
86
  "docs": {
82
87
  "tags": [],
83
88
  "text": "Cell size for LG media query and up as a fraction of 12 of the grid size"
84
89
  },
85
- "attribute": "size-lg",
90
+ "attribute": "col-span-lg",
91
+ "reflect": false
92
+ },
93
+ "columnXl": {
94
+ "type": "string",
95
+ "mutable": false,
96
+ "complexType": {
97
+ "original": "string",
98
+ "resolved": "string",
99
+ "references": {}
100
+ },
101
+ "required": false,
102
+ "optional": true,
103
+ "docs": {
104
+ "tags": [],
105
+ "text": "Cell size for XL media query and up as a fraction of 12 of the grid size"
106
+ },
107
+ "attribute": "col-span-xl",
86
108
  "reflect": false
87
109
  },
88
- "sizeXl": {
110
+ "row": {
89
111
  "type": "string",
90
112
  "mutable": false,
91
113
  "complexType": {
@@ -95,11 +117,80 @@ export class GovGridItem {
95
117
  },
96
118
  "required": false,
97
119
  "optional": false,
120
+ "docs": {
121
+ "tags": [],
122
+ "text": "Connects rows in the grid"
123
+ },
124
+ "attribute": "row-span",
125
+ "reflect": false,
126
+ "defaultValue": "\"1\""
127
+ },
128
+ "rowSm": {
129
+ "type": "string",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "string",
133
+ "resolved": "string",
134
+ "references": {}
135
+ },
136
+ "required": false,
137
+ "optional": true,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": "Cell size for SM media query and up as a fraction of 12 of the grid size"
141
+ },
142
+ "attribute": "row-span-sm",
143
+ "reflect": false
144
+ },
145
+ "rowMd": {
146
+ "type": "string",
147
+ "mutable": false,
148
+ "complexType": {
149
+ "original": "string",
150
+ "resolved": "string",
151
+ "references": {}
152
+ },
153
+ "required": false,
154
+ "optional": true,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": "Cell size for MD media query and up as a fraction of 12 of the grid size"
158
+ },
159
+ "attribute": "row-span-md",
160
+ "reflect": false
161
+ },
162
+ "rowLg": {
163
+ "type": "string",
164
+ "mutable": false,
165
+ "complexType": {
166
+ "original": "string",
167
+ "resolved": "string",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": true,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": "Cell size for LG media query and up as a fraction of 12 of the grid size"
175
+ },
176
+ "attribute": "row-span-lg",
177
+ "reflect": false
178
+ },
179
+ "rowXl": {
180
+ "type": "string",
181
+ "mutable": false,
182
+ "complexType": {
183
+ "original": "string",
184
+ "resolved": "string",
185
+ "references": {}
186
+ },
187
+ "required": false,
188
+ "optional": true,
98
189
  "docs": {
99
190
  "tags": [],
100
191
  "text": "Cell size for XL media query and up as a fraction of 12 of the grid size"
101
192
  },
102
- "attribute": "size-xl",
193
+ "attribute": "row-span-xl",
103
194
  "reflect": false
104
195
  }
105
196
  };
@@ -1 +1 @@
1
- {"version":3,"file":"gov-grid-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/gov-grid-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,WAAW;IAGvB;oBAQgC,OAAO;;;;;QAPtC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAwBD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDACJ,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EACzC,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,aACN,IAAI,CAAC,MAAM,aACX,IAAI,CAAC,MAAM,aACX,IAAI,CAAC,MAAM,aACX,IAAI,CAAC,MAAM;YAEpB,8DAAQ,CACF,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop() readonly size: string = '12/12'\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-sm' }) readonly sizeSm: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-md' }) readonly sizeMd: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-lg' }) readonly sizeLg: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-xl' }) readonly sizeXl: string\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t\tsize={this.size}\n\t\t\t\tsize-sm={this.sizeSm}\n\t\t\t\tsize-md={this.sizeMd}\n\t\t\t\tsize-lg={this.sizeLg}\n\t\t\t\tsize-xl={this.sizeXl}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-grid-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/gov-grid-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,WAAW;IAGvB;sBAQ2D,IAAI;;;;;mBAoBP,GAAG;;;;;QA3B1D,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA6CD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDACJ,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EACzC,IAAI,EAAC,UAAU;YAEf,8DAAQ,CACF,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span' }) readonly column: string = \"12\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-sm' }) readonly columnSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-md' }) readonly columnMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-lg' }) readonly columnLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-xl' }) readonly columnXl?: string\n\t/**\n\t * Connects rows in the grid\n\t */\n\t@Prop({ attribute: 'row-span' }) readonly row: string = \"1\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-sm' }) readonly rowSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-md' }) readonly rowMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-lg' }) readonly rowLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-xl' }) readonly rowXl?: string\n\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -3,18 +3,19 @@ import { GridClass } from "./constants";
3
3
  import { govHost } from "../../helpers/Dom/template";
4
4
  export class GovGrid {
5
5
  constructor() {
6
- this.alignX = undefined;
7
- this.alignY = undefined;
6
+ this.columns = "12";
7
+ this.alignItems = undefined;
8
+ this.justifyItems = undefined;
9
+ this.gap = undefined;
8
10
  this.h = govHost(this.host);
9
11
  }
10
- // vertical / horizontal align
11
12
  render() {
12
- return (h(Host, { key: 'd2f4e42a186e0d8020abc96ef3ca0956e1492d05', class: this.h.classes(GridClass.root), "align-x": this.alignX, "align-y": this.alignY, role: "list" }, h("slot", { key: '46c60ccdda81ce271aeaca46bead1bf33e22c041' })));
13
+ return (h(Host, { key: '7092dda416db17f4137ecd04bea2659dfe76b0e0', class: this.h.classes(GridClass.root), role: "list" }, h("slot", { key: 'b05231f0b950cd8c6830ee96e3d16e798ed97835' })));
13
14
  }
14
15
  static get is() { return "gov-grid"; }
15
16
  static get properties() {
16
17
  return {
17
- "alignX": {
18
+ "columns": {
18
19
  "type": "string",
19
20
  "mutable": false,
20
21
  "complexType": {
@@ -23,30 +24,71 @@ export class GovGrid {
23
24
  "references": {}
24
25
  },
25
26
  "required": false,
26
- "optional": false,
27
+ "optional": true,
28
+ "docs": {
29
+ "tags": [],
30
+ "text": "Setting the number of grid columns"
31
+ },
32
+ "attribute": "columns",
33
+ "reflect": true,
34
+ "defaultValue": "\"12\""
35
+ },
36
+ "alignItems": {
37
+ "type": "string",
38
+ "mutable": false,
39
+ "complexType": {
40
+ "original": "'start' | 'center' | 'end' | 'stretch'",
41
+ "resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
42
+ "references": {}
43
+ },
44
+ "required": false,
45
+ "optional": true,
27
46
  "docs": {
28
47
  "tags": [],
29
48
  "text": "Horizontal align of cells"
30
49
  },
31
- "attribute": "align-x",
32
- "reflect": false
50
+ "attribute": "align-items",
51
+ "reflect": true
33
52
  },
34
- "alignY": {
53
+ "justifyItems": {
35
54
  "type": "string",
36
55
  "mutable": false,
37
56
  "complexType": {
38
- "original": "string",
39
- "resolved": "string",
57
+ "original": "'start' | 'center' | 'end' | 'stretch'",
58
+ "resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
40
59
  "references": {}
41
60
  },
42
61
  "required": false,
43
- "optional": false,
62
+ "optional": true,
44
63
  "docs": {
45
64
  "tags": [],
46
65
  "text": "Vertical align of cells"
47
66
  },
48
- "attribute": "align-y",
49
- "reflect": false
67
+ "attribute": "justify-items",
68
+ "reflect": true
69
+ },
70
+ "gap": {
71
+ "type": "string",
72
+ "mutable": false,
73
+ "complexType": {
74
+ "original": "GridSizesType",
75
+ "resolved": "\"2xl\" | \"2xs\" | \"3xl\" | \"4xl\" | \"6xl\" | \"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
76
+ "references": {
77
+ "GridSizesType": {
78
+ "location": "import",
79
+ "path": "./constants",
80
+ "id": "../../../packages/core/src/components/gov-grid/constants.ts::GridSizesType"
81
+ }
82
+ }
83
+ },
84
+ "required": false,
85
+ "optional": true,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": "The gap property creates consistent spacing between flex items in the container."
89
+ },
90
+ "attribute": "gap",
91
+ "reflect": true
50
92
  }
51
93
  };
52
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gov-grid.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/gov-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,OAAO;IAGnB;;;QACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAaD,8BAA8B;IAE9B,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,aAAW,IAAI,CAAC,MAAM,aAAW,IAAI,CAAC,MAAM,EAAE,IAAI,EAAC,MAAM;YACnG,8DAAa,CACP,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-x' }) readonly alignX: string\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'align-y' }) readonly alignY: string\n\n\t// vertical / horizontal align\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} align-x={this.alignX} align-y={this.alignY} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-grid.js","sourceRoot":"","sources":["../../../../../../src/components/gov-grid/gov-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,SAAS,EAAiB,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAMpD,MAAM,OAAO,OAAO;IAGnB;uBASkE,IAAI;;;;QARrE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAwBD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM;YACvD,8DAAa,CACP,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass, GridSizesType } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Setting the number of grid columns\n\t */\n\t@Prop({ attribute: 'columns', reflect: true }) columns?: string = \"12\";\n\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-items', reflect: true }) alignItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'justify-items', reflect: true }) justifyItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({ attribute: 'gap', reflect: true }) gap?: GridSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -78,8 +78,6 @@ export class GovIcon {
78
78
  this.host.innerHTML = isValid ? data : null;
79
79
  }
80
80
  catch (e) {
81
- console.log(e);
82
- console.log(JSON.stringify(e));
83
81
  this.host.innerHTML = '';
84
82
  this.error = true;
85
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gov-icon.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/gov-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACpF,OAA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K,CAAC,QAAQ;QACrB,IAAI,CAAC;YACJ,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAA;YACzB,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAA;YAC1C,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;YAChC,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QAC7C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACf,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;YAC/B,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QAClB,CAAC;IACF,CAAC;IAED,MAAM;QACL,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,OAAO,IAAI,CAAA;QACZ,CAAC;QACD,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAG,CAClF,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{rootMargin: \"50px\"},\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tconsole.log(e);\n\t\t\tconsole.log(JSON.stringify(e));\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-icon.js","sourceRoot":"","sources":["../../../../../../src/components/gov-icon/gov-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACpF,OAAO,EAAC,SAAS,EAAE,UAAU,EAAoC,MAAM,aAAa,CAAA;AAC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AI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAA;YACzB,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAA;YAC1C,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;YAChC,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QAC7C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QAClB,CAAC;IACF,CAAC;IAED,MAAM;QACL,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,OAAO,IAAI,CAAA;QACZ,CAAC;QACD,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAG,CAClF,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{rootMargin: \"50px\"},\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n"]}
@@ -32,15 +32,16 @@ export class GovInfobar {
32
32
  this.inheritedAttributes = inheritAriaAttributes(this.host);
33
33
  }
34
34
  disconnectedCallback() {
35
- this.attributeObserver.stopObserving();
35
+ var _a;
36
+ (_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
36
37
  }
37
38
  onAriaAttributeChange(attributeName, newValue) {
38
39
  this.host.removeAttribute(attributeName);
39
40
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
40
41
  }
41
42
  render() {
42
- const closeButton = (h("gov-button", { key: '2d0597a56f6edb97e7feff654ba98885fa48033a', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, h("gov-icon", { key: 'c17ba542b02a4910a136eec6cb4556d1857dffb2', name: "x-lg", type: "components" })));
43
- return (h(Host, { key: 'd71d1b8ffe158de90f3fb520bd996a8246988d3d', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, h("section", Object.assign({ key: '12cce82faa13fa39135fe92b0ab61bc2b01fa083', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), h("slot", { key: 'bc48d4e5dfad03cd9c54054225a4c3db0ec09cd9', name: "icon" }), h("div", { key: '70422e59cb69504d1aca5d45b9f9700b35b344f0', class: InfobarClass.content }, this.h.hasSlot('headline') ? (h(Fragment, null, h("div", { class: InfobarClass.headline }, h("slot", { name: "headline" }), h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), h("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, h("slot", null)))) : (h("slot", null))), this.closable && closeButton)));
43
+ const closeButton = (h("gov-button", { key: '86cbac93b6d258503af7dc3016aeb465b3573072', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, h("gov-icon", { key: '4c6b17d93c677e0ad25afc611cd64d42fb5a7d14', name: "x-lg", type: "components" })));
44
+ return (h(Host, { key: '039cb25b798660d17a34e943d63099bdb09a424d', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, h("section", Object.assign({ key: '68b0cea9fd672762f677019f5762368e9bd97088', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), this.h.hasSlot("icon") && (h("span", { key: '6150ac778d70268e75c5c0f9195094ec38869025' }, h("slot", { key: 'c9992923e5c53a6bcc03ab6bcb69b3aa4ea439b4', name: "icon" }))), h("div", { key: 'b95e4a257672af49c273972de9ff41433d5e46f8', class: InfobarClass.content }, this.h.hasSlot('headline') ? (h(Fragment, null, h("div", { class: InfobarClass.headline }, h("slot", { name: "headline" }), h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), h("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, h("slot", null)))) : (h("slot", null))), this.closable && closeButton)));
44
45
  }
45
46
  onCloseHandler(e) {
46
47
  this.govClose.emit({
@@ -1 +1 @@
1
- {"version":3,"file":"gov-infobar.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/gov-infobar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAClG,OAAO,EAAC,OAAO,EAAE,UAAU,EAAC,MAAM,4BAA4B,CAAA;AAE9D,OAAO,QAAQ,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AAEzD,OAAO,EAAY,YAAY,EAAE,aAAa,EAAmB,MAAM,aAAa,CAAA;AAEpF,OAAO,EAAC,iBAAiB,EAAa,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAC,cAAc,EAAC,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAKhF,MAAM,OAAO,UAAU;IAItB;qBASoC,SAAS;oBAIF,MAAM;oBAIJ,SAAS;oCAI+B,yBAAyB;qCAIvB,yBAAyB;wBAQ1E,KAAK;6BAElB,KAAK;mCACa,EAAE;QAnC5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAqCD,aAAa,CAAC,QAAgB;QAC7B,YAA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AY,CAAC,IAAI;YAC5B,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;IACH,CAAC;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;IAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-infobar.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/g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;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"]}
@@ -6,7 +6,7 @@ export class GovLayoutColumn {
6
6
  this.h = govHost(this.host);
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: 'ebef4ca76b1308a566c862b5a49eecf1eb3fce99', class: this.h.classes(LayoutColumnClass.root) }, h("slot", { key: 'aaeefeb1a56b294d91b1327fd52eb16486cfb918' })));
9
+ return (h(Host, { key: 'd312c9ffd071d7f002ed74095279ac3c1c549c48', class: this.h.classes(LayoutColumnClass.root) }, h("slot", { key: 'c57685e71dc20fb558a3b9c21ff2456906130b54' })));
10
10
  }
11
11
  static get is() { return "gov-layout-column"; }
12
12
  static get elementRef() { return "host"; }
@@ -15,7 +15,7 @@ export class GovLayout {
15
15
  return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: 'c35fc39e07229363bdf36be5856165e7e8eb7985', type: this.type, class: this.h.classes(LayoutClass.root) }, h("section", { key: 'dc50cf9cba8bd4e879291fddfbd41955f2d10330', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, h("slot", { key: '017a329c119529d3893e187b6a8bbccfbbc76679' }))));
18
+ return (h(Host, { key: '2683ce4af13c8862c4cb671735c30ed630c9b452', type: this.type, class: this.h.classes(LayoutClass.root) }, h("section", { key: '48f71de1a388997388849018cf93bb8e305d51f9', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, h("slot", { key: 'f4955f6e169d0fbc55a74ae8759ab5e82dc24f71' }))));
19
19
  }
20
20
  static get is() { return "gov-layout"; }
21
21
  static get properties() {
@@ -32,7 +32,7 @@ export class GovLifecycle {
32
32
  console.log('componentDidUpdate', this.uniqueId);
33
33
  }
34
34
  render() {
35
- return (h(Host, { key: '506eabaae01ae888fa838c10572e55bbe6fb7015', identifier: this.uniqueId }, h("span", { key: '7604a29214fdffb1a470d83d7db37a583e5072ed' }, "lifecycle ", this.uniqueId)));
35
+ return (h(Host, { key: '556587d121852458ea1bb0aefb93e370db14854c', identifier: this.uniqueId }, h("span", { key: 'd61e27a4e6cff37986e9494576b58adca98bb755' }, "lifecycle ", this.uniqueId)));
36
36
  }
37
37
  static get is() { return "gov-lifecycle"; }
38
38
  }
@@ -3,5 +3,6 @@ import { Sizes } from "../../core/constants/sizes";
3
3
  export const LinkSizes = pick(Sizes, ['_S', '_M', '_L']);
4
4
  export const LinkClass = {
5
5
  root: 'gov-link',
6
+ external: 'gov-link--external',
6
7
  };
7
8
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-link/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGxD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;CAChB,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const LinkSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LinkSizesType = `${ValueOf<typeof LinkSizes>}`\n\nexport const LinkClass = {\n\troot: 'gov-link',\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-link/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGxD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,oBAAoB;CAC9B,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const LinkSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LinkSizesType = `${ValueOf<typeof LinkSizes>}`\n\nexport const LinkClass = {\n\troot: 'gov-link',\n\texternal: 'gov-link--external',\n}\n"]}
@@ -24,7 +24,7 @@ export class GovLink {
24
24
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
25
25
  }
26
26
  render() {
27
- return (h(Host, { key: '233af48c179501fe03ee2e5931806e1955913b59', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, h("a", Object.assign({ key: '679067805205d76500979620b1ef4405139bb339', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), h("slot", { key: 'd24c4ab99451f317a453c8131bd0506606322553', name: "icon-start" }), h("slot", { key: '276923f48cdc13985115e8d4e8860a2fb0c692e2' }), this.external ? h("gov-icon", { name: "box-arrow-up-right", type: "components" }) : h("slot", { name: "icon-end" }))));
27
+ return (h(Host, { key: '7aef45575f952100a25a516df44a62337fbdf1e1', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, h("a", Object.assign({ key: 'cba0aac863ce6dae404356cd960c6782e418d856', class: "element", href: this.href, target: this.external ? '_blank' : this.target, rel: this.external ? "noreferrer" : null }, this.inheritedAttributes), h("slot", { key: 'b3379f496c8d5f163ffa9f6a58655666e1c23e54', name: "icon-start" }), h("span", { key: '385c05b3c80e93678c5525609c477c7c157f9f44' }, h("slot", { key: 'a67cbe6a79e0eafa287ca32984061c4000b19cf5' })), h("slot", { key: '6696335405444439c32fb8b9817926a40fc7a48c', name: "icon-end" }), this.external && h("gov-icon", { key: '4773079d84ca23e0000ae31fca59d09e95d1f45f', name: "box-arrow-up-right", type: "components", size: this.size, class: LinkClass.external }))));
28
28
  }
29
29
  static get is() { return "gov-link"; }
30
30
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"gov-link.js","sourceRoot":"","sources":["../../../../../../src/components/gov-link/gov-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAC,SAAS,EAAE,SAAS,EAAgB,M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O;gBACN,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAU,IAAI,EAAC,oBAAoB,EAAC,IAAI,EAAC,YAAY,GAAY,CAAC,CAAC,CAAC,YAAM,IAAI,EAAC,UAAU,GAAE,CACzG,CACE,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Host, h, Prop, Watch, State} from '@stencil/core'\nimport {LinkClass, LinkSizes, LinkSizesType} from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-link',\n})\nexport class GovLink {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLinkElement\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly size?: LinkSizesType = 'm'\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly external?: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LinkSizes, newValue, LinkClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LinkClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t href={this.href}\n\t\t\t\t external={this.external}>\n\t\t\t\t<a class=\"element\"\n\t\t\t\t href={this.href}\n\t\t\t\t target={this.target}\n\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<slot name=\"icon-start\"/>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.external ? <gov-icon name=\"box-arrow-up-right\" type=\"components\"></gov-icon> : <slot name=\"icon-end\"/>}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-link.js","sourceRoot":"","sources":["../../../../../../src/components/gov-link/gov-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAC,SAAS,EAAE,SAAS,EAAgB,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAKhF,MAAM,OAAO,OAAO;IAGnB;oBAQwC,GAAG;wBAIL,KAAK;;;mCAkBA,EAAE;QA7B5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAwBD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAClD,CAAC;IAID,iBAAiB;QAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,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;;;;;CACD","sourcesContent":["import {Component, Element, Host, h, Prop, Watch, State} from '@stencil/core'\nimport {LinkClass, LinkSizes, LinkSizesType} from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-link',\n})\nexport class GovLink {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLinkElement\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly size?: LinkSizesType = 'm'\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly external?: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LinkSizes, newValue, LinkClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LinkClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t href={this.href}\n\t\t\t\t external={this.external}>\n\t\t\t\t<a class=\"element\"\n\t\t\t\t href={this.href}\n\t\t\t\t target={this.external ? '_blank' : this.target}\n\t\t\t\t rel={this.external ? \"noreferrer\" : null}\n\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<slot name=\"icon-start\"/>\n\t\t\t\t\t<span><slot/></span>\n\t\t\t\t\t<slot name=\"icon-end\"/>\n\t\t\t\t\t{this.external && <gov-icon name=\"box-arrow-up-right\" type=\"components\" size={this.size} class={LinkClass.external}></gov-icon>}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -14,7 +14,7 @@ export class GovLoading {
14
14
  this.validateSize(this.size);
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: '4c33339523674f2f2415dfb326131858de9eecf9', class: this.h.classes(LoadingClass.root), size: this.size }, h("div", { key: '8c25628dd3072fd89665ccfedb9596383181b13d', class: LoadingClass.content }, h("gov-icon", { key: 'a9969874350b5316c61a94b12d41a0130eeded0f', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), h("slot", { key: '14c716ecc352a0d947a6e3d932d2ab9075dedb97' })), h("gov-backdrop", { key: '507610e5a61b34be2166fb4a30539a134dc1b262', inverse: true })));
17
+ return (h(Host, { key: '94858803191375ac772236470c1db63c2823b74d', class: this.h.classes(LoadingClass.root), size: this.size }, h("div", { key: '817f8ba4e3c9a6a37732c00480a10033b68ca360', class: LoadingClass.content }, h("gov-icon", { key: '93496ec9365c67bd05d5561a5ffbee4e7384611c', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), h("slot", { key: 'ba4e09cc9bc1a26e9df6f852c5809a980e0bf3fd' })), h("gov-backdrop", { key: '3cb83fca1624bd0593f92b46860b8160d0d1bbcf', inverse: true })));
18
18
  }
19
19
  static get is() { return "gov-loading"; }
20
20
  static get properties() {
@@ -43,7 +43,8 @@ export class GovSkeleton {
43
43
  this.init();
44
44
  }
45
45
  disconnectedCallback() {
46
- this.attributeObserver.stopObserving();
46
+ var _a;
47
+ (_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
47
48
  }
48
49
  onAriaAttributeChange(attributeName, newValue) {
49
50
  this.host.removeAttribute(attributeName);
@@ -66,7 +67,7 @@ export class GovSkeleton {
66
67
  return Object.assign({}, dimenssionsStyles);
67
68
  }
68
69
  render() {
69
- return (h(Host, Object.assign({ key: '175dad78f57ee2e44fe3097e0595f59254e1003b', size: this.size, color: this.color, class: {
70
+ return (h(Host, Object.assign({ key: '5f948f681fcb9e8edeba710b0bc9b44d4bd44c68', size: this.size, color: this.color, class: {
70
71
  [SkeletonClass.root]: true,
71
72
  circle: this.shape === "circle",
72
73
  line: this.shape === "line",
@@ -1 +1 @@
1
- {"version":3,"file":"gov-skeleton.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-loading/skeleton/gov-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EACN,iBAAiB,EAEjB,aAAa,EAEb,cAAc,EAEd,aAAa,GACb,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAC,OAAO,EAAC,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAC,iBAAiB,EAAa,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AAKnF,MAAM,OAAO,WAAW;IAIvB;QA8BA,UAAK,GAAa,EAAE,CAAA;oBAtByB,GAAG;qBAIH,SAAS;qBAIjB,MAAM;qBAInB,IAAI;sBAIH,IAAI;yBAIe,UAAU;mCAmBX,EAAE;QA9C5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA+BD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,aAA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Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {\n\tSkeletonAnimation,\n\tSkeletonAnimationType,\n\tSkeletonClass,\n\tSkeletonColorType,\n\tSkeletonShapes,\n\tSkeletonShapesType,\n\tSkeletonSizes,\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormInputSizesType} from \"../../gov-form/input/constants\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-skeleton\",\n})\nexport class GovSkeleton {\n\th: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovSkeletonElement\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Style variation of the skeleton.\n\t */\n\t@Prop() readonly color?: SkeletonColorType = \"neutral\"\n\t/**\n\t * Shape of the skeleton\n\t */\n\t@Prop() shape?: SkeletonShapesType = \"line\"\n\t/**\n\t * Width of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() width: string = null\n\t/**\n\t * Height of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() height: string = null\n\t/**\n\t * Animation type\n\t */\n\t@Prop() animation?: SkeletonAnimationType = \"progress\"\n\n\titems: number[] = []\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SkeletonSizes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('shape')\n\tvalidateShape(newValue: string): void {\n\t\tvalidateProp(SkeletonShapes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('animation')\n\tvalidateAnimation(newValue: string): void {\n\t\tvalidateProp(SkeletonAnimation, newValue, SkeletonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateShape(this.shape)\n\t\tthis.validateAnimation(this.animation)\n\t\tthis.init()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentWillUpdate() {\n\t\tthis.init()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tinit() {\n\t\tthis.items.fill(1)\n\t}\n\n\tget style() {\n\t\tconst dimenssionsStyles: {\n\t\t\twidth?: string,\n\t\t\theight?: string,\n\t\t} = {\n\t\t\twidth: null,\n\t\t\theight: null,\n\t\t}\n\t\tif (this.width) {\n\t\t\tdimenssionsStyles.width = this.width\n\t\t}\n\n\t\tif (this.height) {\n\t\t\tdimenssionsStyles.height = this.height\n\t\t}\n\n\t\treturn {...dimenssionsStyles}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t color={this.color}\n\t\t\t\t class={{\n\t\t\t\t\t [SkeletonClass.root]: true,\n\t\t\t\t\t circle: this.shape === \"circle\",\n\t\t\t\t\t line: this.shape === \"line\",\n\t\t\t\t\t progress: this.animation === \"progress\",\n\t\t\t\t\t pulse: this.animation === \"pulse\",\n\t\t\t\t }}\n\t\t\t\t {...this.inheritedAttributes}\n\t\t\t\t aria-busy=\"true\"\n\t\t\t\t aria-valuemin=\"0\"\n\t\t\t\t aria-valuemax=\"100\"\n\t\t\t\t role=\"progressbar\"\n\t\t\t\t tabindex=\"0\"\n\t\t\t\t style={this.style}>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-skeleton.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-loading/skeleton/gov-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC7E,OAAO,EACN,iBAAiB,EAEjB,aAAa,EAEb,cAAc,EAEd,aAAa,GACb,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAC,OAAO,EAAC,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAC,iBAAiB,EAAa,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AAKnF,MAAM,OAAO,WAAW;IAIvB;QA8BA,UAAK,GAAa,EAAE,CAAA;oBAtByB,GAAG;qBAIH,SAAS;qBAIjB,MAAM;qBAInB,IAAI;sBAIH,IAAI;yBAIe,UAAU;mCAmBX,EAAE;QA9C5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA+BD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,aAAa,EAAE,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,CAAA;IAC1D,CAAC;IAGD,aAAa,CAAC,QAAgB;QAC7B,YAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,CAAA;IAC3D,CAAC;IAGD,iBAAiB,CAAC,QAAgB;QACjC,YAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,aAAa,CA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;YAChB,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACrC,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,iBAAiB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACvC,CAAC;QAED,yBAAW,iBAAiB,EAAC;IAC9B,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,mEAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE;gBACN,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,IAAI;gBAC1B,MAAM,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;gBAC/B,IAAI,EAAE,IAAI,CAAC,KAAK,KAAK,MAAM;gBAC3B,QAAQ,EAAE,IAAI,CAAC,SAAS,KAAK,UAAU;gBACvC,KAAK,EAAE,IAAI,CAAC,SAAS,KAAK,OAAO;aACjC,IACG,IAAI,CAAC,mBAAmB,iBAClB,MAAM,mBACF,GAAG,mBACH,KAAK,EACnB,IAAI,EAAC,aAAa,EAClB,QAAQ,EAAC,GAAG,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,IACb,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {\n\tSkeletonAnimation,\n\tSkeletonAnimationType,\n\tSkeletonClass,\n\tSkeletonColorType,\n\tSkeletonShapes,\n\tSkeletonShapesType,\n\tSkeletonSizes,\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormInputSizesType} from \"../../gov-form/input/constants\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-skeleton\",\n})\nexport class GovSkeleton {\n\th: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovSkeletonElement\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Style variation of the skeleton.\n\t */\n\t@Prop() readonly color?: SkeletonColorType = \"neutral\"\n\t/**\n\t * Shape of the skeleton\n\t */\n\t@Prop() shape?: SkeletonShapesType = \"line\"\n\t/**\n\t * Width of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() width: string = null\n\t/**\n\t * Height of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() height: string = null\n\t/**\n\t * Animation type\n\t */\n\t@Prop() animation?: SkeletonAnimationType = \"progress\"\n\n\titems: number[] = []\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SkeletonSizes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('shape')\n\tvalidateShape(newValue: string): void {\n\t\tvalidateProp(SkeletonShapes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('animation')\n\tvalidateAnimation(newValue: string): void {\n\t\tvalidateProp(SkeletonAnimation, newValue, SkeletonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateShape(this.shape)\n\t\tthis.validateAnimation(this.animation)\n\t\tthis.init()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentWillUpdate() {\n\t\tthis.init()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tinit() {\n\t\tthis.items.fill(1)\n\t}\n\n\tget style() {\n\t\tconst dimenssionsStyles: {\n\t\t\twidth?: string,\n\t\t\theight?: string,\n\t\t} = {\n\t\t\twidth: null,\n\t\t\theight: null,\n\t\t}\n\t\tif (this.width) {\n\t\t\tdimenssionsStyles.width = this.width\n\t\t}\n\n\t\tif (this.height) {\n\t\t\tdimenssionsStyles.height = this.height\n\t\t}\n\n\t\treturn {...dimenssionsStyles}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t color={this.color}\n\t\t\t\t class={{\n\t\t\t\t\t [SkeletonClass.root]: true,\n\t\t\t\t\t circle: this.shape === \"circle\",\n\t\t\t\t\t line: this.shape === \"line\",\n\t\t\t\t\t progress: this.animation === \"progress\",\n\t\t\t\t\t pulse: this.animation === \"pulse\",\n\t\t\t\t }}\n\t\t\t\t {...this.inheritedAttributes}\n\t\t\t\t aria-busy=\"true\"\n\t\t\t\t aria-valuemin=\"0\"\n\t\t\t\t aria-valuemax=\"100\"\n\t\t\t\t role=\"progressbar\"\n\t\t\t\t tabindex=\"0\"\n\t\t\t\t style={this.style}>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}