@ilo-org/twig 1.1.5 → 1.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 (408) hide show
  1. package/LICENSE +183 -183
  2. package/dist/components/accordion/accordion.behavior.js +10 -1
  3. package/dist/components/breadcrumb/breadcrumb.behavior.js +10 -1
  4. package/dist/components/breadcrumb/breadcrumb.twig +2 -3
  5. package/dist/components/button/button.behavior.js +6 -0
  6. package/dist/components/button/button.twig +13 -8
  7. package/dist/components/callout/callout.behavior.js +10 -1
  8. package/{src/patterns/components/callout/callout.wingsuit.yml → dist/components/callout/callout.component.yml} +6 -7
  9. package/dist/components/callout/callout.twig +8 -8
  10. package/dist/components/callout/callout.wingsuit.yml +6 -7
  11. package/{src/patterns/components/checkbox/checkbox.wingsuit.yml → dist/components/checkbox/checkbox.component.yml} +6 -6
  12. package/dist/components/checkbox/checkbox.wingsuit.yml +6 -6
  13. package/{src/patterns/components/datepicker/datepicker.wingsuit.yml → dist/components/datepicker/datepicker.component.yml} +5 -5
  14. package/dist/components/datepicker/datepicker.wingsuit.yml +5 -5
  15. package/{src/patterns/components/dropdown/dropdown.wingsuit.yml → dist/components/dropdown/dropdown.component.yml} +7 -7
  16. package/dist/components/dropdown/dropdown.wingsuit.yml +7 -7
  17. package/dist/components/fileupload/fileupload.behavior.js +10 -1
  18. package/{src/patterns/components/fileupload/fileupload.wingsuit.yml → dist/components/fileupload/fileupload.component.yml} +7 -7
  19. package/dist/components/fileupload/fileupload.wingsuit.yml +7 -7
  20. package/{src/patterns/components/footer/footer.wingsuit.yml → dist/components/footer/footer.component.yml} +1 -1
  21. package/dist/components/footer/footer.wingsuit.yml +1 -1
  22. package/dist/components/icon/icon.behavior.js +687 -1
  23. package/dist/components/icon/icon.twig +0 -3
  24. package/dist/components/linklist/linklist.behavior.js +8 -1
  25. package/{src/patterns/components/list/list-item.wingsuit.yml → dist/components/list/list-item.component.yml} +2 -4
  26. package/dist/components/{list-item → list}/list-item.wingsuit.yml +2 -4
  27. package/{src/patterns/components/list/list.wingsuit.yml → dist/components/list/list.component.yml} +1 -1
  28. package/dist/components/list/list.wingsuit.yml +1 -1
  29. package/dist/components/loading/loading.behavior.js +10 -1
  30. package/{src/patterns/components/loading/loading.wingsuit.yml → dist/components/loading/loading.component.yml} +1 -1
  31. package/dist/components/loading/loading.wingsuit.yml +1 -1
  32. package/{src/patterns/components/localnav/localnav.wingsuit.yml → dist/components/localnav/localnav.component.yml} +1 -1
  33. package/dist/components/localnav/localnav.wingsuit.yml +1 -1
  34. package/dist/components/modal/modal.behavior.js +10 -1
  35. package/{src/patterns/components/modal/modal.wingsuit.yml → dist/components/modal/modal.component.yml} +1 -1
  36. package/dist/components/modal/modal.wingsuit.yml +1 -1
  37. package/dist/components/navigation/navigation.behavior.js +10 -1
  38. package/{src/patterns/components/navigation/navigation.wingsuit.yml → dist/components/navigation/navigation.component.yml} +2 -2
  39. package/dist/components/navigation/navigation.wingsuit.yml +2 -2
  40. package/dist/components/notification/notification.behavior.js +10 -1
  41. package/{src/patterns/components/numberpicker/numberpicker.wingsuit.yml → dist/components/numberpicker/numberpicker.component.yml} +6 -6
  42. package/dist/components/numberpicker/numberpicker.wingsuit.yml +6 -6
  43. package/{src/patterns/components/pagination/pagination.wingsuit.yml → dist/components/pagination/pagination.component.yml} +6 -6
  44. package/dist/components/pagination/pagination.wingsuit.yml +6 -6
  45. package/{src/patterns/components/radio/radio.wingsuit.yml → dist/components/radio/radio.component.yml} +6 -6
  46. package/dist/components/radio/radio.wingsuit.yml +6 -6
  47. package/dist/components/readmore/readmore.behavior.js +10 -1
  48. package/{src/patterns/components/readmore/readmore.wingsuit.yml → dist/components/readmore/readmore.component.yml} +1 -1
  49. package/dist/components/readmore/readmore.wingsuit.yml +1 -1
  50. package/dist/components/search/search.behavior.js +10 -1
  51. package/{src/patterns/components/search/search.wingsuit.yml → dist/components/search/search.component.yml} +8 -8
  52. package/dist/components/search/search.wingsuit.yml +8 -8
  53. package/dist/components/table/table.behavior.js +10 -1
  54. package/dist/components/tableofcontents/tableofcontents.behavior.js +10 -1
  55. package/dist/components/tabs/tabs.behavior.js +120 -1
  56. package/dist/components/tags/tag.behavior.js +10 -0
  57. package/{src/patterns/components/tags/tag.wingsuit.yml → dist/components/tags/tag.component.yml} +3 -6
  58. package/dist/components/{tag → tags}/tag.wingsuit.yml +3 -6
  59. package/{src/patterns/components/textarea/textarea.wingsuit.yml → dist/components/textarea/textarea.component.yml} +9 -9
  60. package/dist/components/textarea/textarea.wingsuit.yml +9 -9
  61. package/{src/patterns/components/textinput/textinput.wingsuit.yml → dist/components/textinput/textinput.component.yml} +7 -7
  62. package/dist/components/textinput/textinput.wingsuit.yml +7 -7
  63. package/{src/patterns/components/toggle/toggle.wingsuit.yml → dist/components/toggle/toggle.component.yml} +5 -5
  64. package/dist/components/toggle/toggle.wingsuit.yml +5 -5
  65. package/dist/components/tooltip/tooltip.behavior.js +116 -1
  66. package/dist/components/video/video.behavior.js +192 -16
  67. package/dist/styles/components/accordion.css +1 -0
  68. package/dist/styles/components/breadcrumb.css +1 -0
  69. package/dist/styles/components/button.css +1 -0
  70. package/dist/styles/components/callout.css +1 -0
  71. package/dist/styles/components/card.css +1 -0
  72. package/dist/styles/components/checkbox.css +1 -0
  73. package/dist/styles/components/contextmenu.css +1 -0
  74. package/dist/styles/components/datacard.css +1 -0
  75. package/dist/styles/components/dropdown.css +1 -0
  76. package/dist/styles/components/featurecard.css +1 -0
  77. package/dist/styles/components/fieldset.css +1 -0
  78. package/dist/styles/components/file-upload.css +1 -0
  79. package/dist/styles/components/footer.css +1 -0
  80. package/dist/styles/components/formcontrol.css +1 -0
  81. package/dist/styles/components/heading.css +1 -0
  82. package/dist/styles/components/herocard.css +1 -0
  83. package/dist/styles/components/input.css +1 -0
  84. package/dist/styles/components/linklist.css +1 -0
  85. package/dist/styles/components/list.css +1 -0
  86. package/dist/styles/components/loading.css +1 -0
  87. package/dist/styles/components/logo.css +1 -0
  88. package/dist/styles/components/navigation.css +1 -0
  89. package/dist/styles/components/pagination.css +1 -0
  90. package/dist/styles/components/profile.css +1 -0
  91. package/dist/styles/components/readmore.css +1 -0
  92. package/dist/styles/components/richtext.css +1 -0
  93. package/dist/{components/searchfield → styles/components}/searchfield.css +1 -1
  94. package/dist/styles/components/socialmedia.css +1 -0
  95. package/dist/styles/components/statcard.css +1 -0
  96. package/dist/styles/components/table.css +1 -0
  97. package/dist/styles/components/tableofcontents.css +1 -0
  98. package/dist/styles/components/tabs.css +1 -0
  99. package/dist/styles/components/tag.css +1 -0
  100. package/dist/styles/components/textarea.css +1 -0
  101. package/dist/styles/components/textinput.css +1 -0
  102. package/dist/styles/components/tooltip.css +1 -0
  103. package/dist/styles/global.css +2 -0
  104. package/dist/styles/global.css.map +1 -0
  105. package/dist/styles/index.css +9 -0
  106. package/dist/styles/index.css.map +1 -0
  107. package/dist/styles/monorepo.css +9 -0
  108. package/dist/styles/monorepo.css.map +1 -0
  109. package/package.json +45 -77
  110. package/README.md +0 -218
  111. package/dist/components/accordion/accordion.css +0 -1
  112. package/dist/components/breadcrumb/breadcrumb.css +0 -1
  113. package/dist/components/button/button.css +0 -1
  114. package/dist/components/callout/callout.css +0 -1
  115. package/dist/components/card/card.css +0 -1
  116. package/dist/components/checkbox/checkbox.css +0 -1
  117. package/dist/components/contextmenu/contextmenu.css +0 -1
  118. package/dist/components/datacard/datacard.css +0 -1
  119. package/dist/components/dropdown/dropdown.css +0 -1
  120. package/dist/components/featurecard/featurecard.css +0 -1
  121. package/dist/components/fieldset/fieldset.css +0 -1
  122. package/dist/components/file-upload/file-upload.css +0 -1
  123. package/dist/components/footer/footer.css +0 -1
  124. package/dist/components/formcontrol/formcontrol.css +0 -1
  125. package/dist/components/heading/heading.css +0 -1
  126. package/dist/components/herocard/herocard.css +0 -1
  127. package/dist/components/icon/icon.css +0 -1
  128. package/dist/components/input/input.css +0 -1
  129. package/dist/components/linklist/linklist.css +0 -1
  130. package/dist/components/list/list.css +0 -1
  131. package/dist/components/loading/loading.css +0 -1
  132. package/dist/components/logo/logo.css +0 -1
  133. package/dist/components/navigation/navigation.css +0 -1
  134. package/dist/components/pagination/pagination.css +0 -1
  135. package/dist/components/polyfill/polyfill.twig +0 -10
  136. package/dist/components/profile/profile.css +0 -1
  137. package/dist/components/readmore/readmore.css +0 -1
  138. package/dist/components/richtext/richtext.css +0 -1
  139. package/dist/components/socialmedia/socialmedia.css +0 -1
  140. package/dist/components/statcard/statcard.css +0 -1
  141. package/dist/components/table/table.css +0 -1
  142. package/dist/components/tableofcontents/tableofcontents.css +0 -1
  143. package/dist/components/tabs/tabs.css +0 -1
  144. package/dist/components/tag/tag.behavior.js +0 -1
  145. package/dist/components/tag/tag.css +0 -1
  146. package/dist/components/textarea/textarea.css +0 -1
  147. package/dist/components/textinput/textinput.css +0 -1
  148. package/dist/components/tooltip/tooltip.css +0 -1
  149. package/dist/global/styles.css +0 -9
  150. package/src/namespaces.js +0 -14
  151. package/src/patterns/components/accordion/accordion-item.twig +0 -22
  152. package/src/patterns/components/accordion/accordion.behavior.js +0 -16
  153. package/src/patterns/components/accordion/accordion.js +0 -200
  154. package/src/patterns/components/accordion/accordion.stories.jsx +0 -9
  155. package/src/patterns/components/accordion/accordion.twig +0 -16
  156. package/src/patterns/components/accordion/index.js +0 -7
  157. package/src/patterns/components/breadcrumb/breadcrumb.behavior.js +0 -16
  158. package/src/patterns/components/breadcrumb/breadcrumb.js +0 -280
  159. package/src/patterns/components/breadcrumb/breadcrumb.stories.jsx +0 -9
  160. package/src/patterns/components/breadcrumb/breadcrumb.twig +0 -55
  161. package/src/patterns/components/breadcrumb/index.js +0 -7
  162. package/src/patterns/components/button/button.stories.jsx +0 -9
  163. package/src/patterns/components/button/button.twig +0 -23
  164. package/src/patterns/components/button/index.js +0 -6
  165. package/src/patterns/components/callout/callout.behavior.js +0 -16
  166. package/src/patterns/components/callout/callout.js +0 -149
  167. package/src/patterns/components/callout/callout.stories.jsx +0 -9
  168. package/src/patterns/components/callout/callout.twig +0 -41
  169. package/src/patterns/components/callout/index.js +0 -7
  170. package/src/patterns/components/card/card.stories.jsx +0 -9
  171. package/src/patterns/components/card/card.twig +0 -24
  172. package/src/patterns/components/card/index.js +0 -6
  173. package/src/patterns/components/card_data/card_data.stories.jsx +0 -9
  174. package/src/patterns/components/card_data/card_data.twig +0 -101
  175. package/src/patterns/components/card_data/index.js +0 -9
  176. package/src/patterns/components/card_detail/card_detail.stories.jsx +0 -9
  177. package/src/patterns/components/card_detail/card_detail.twig +0 -37
  178. package/src/patterns/components/card_detail/index.js +0 -9
  179. package/src/patterns/components/card_factlist/card_factlist.stories.jsx +0 -9
  180. package/src/patterns/components/card_factlist/card_factlist.twig +0 -21
  181. package/src/patterns/components/card_factlist/index.js +0 -9
  182. package/src/patterns/components/card_feature/card_feature.stories.jsx +0 -9
  183. package/src/patterns/components/card_feature/card_feature.twig +0 -39
  184. package/src/patterns/components/card_feature/index.js +0 -9
  185. package/src/patterns/components/card_multilink/card_multilink.stories.jsx +0 -9
  186. package/src/patterns/components/card_multilink/card_multilink.twig +0 -45
  187. package/src/patterns/components/card_multilink/index.js +0 -9
  188. package/src/patterns/components/card_promo/card_promo.stories.jsx +0 -9
  189. package/src/patterns/components/card_promo/card_promo.twig +0 -35
  190. package/src/patterns/components/card_promo/index.js +0 -9
  191. package/src/patterns/components/card_stat/card_stat.stories.jsx +0 -9
  192. package/src/patterns/components/card_stat/card_stat.twig +0 -24
  193. package/src/patterns/components/card_stat/index.js +0 -9
  194. package/src/patterns/components/card_text/card_text.stories.jsx +0 -9
  195. package/src/patterns/components/card_text/card_text.twig +0 -35
  196. package/src/patterns/components/card_text/index.js +0 -9
  197. package/src/patterns/components/cardgroup/cardgroup.stories.jsx +0 -9
  198. package/src/patterns/components/cardgroup/cardgroup.twig +0 -44
  199. package/src/patterns/components/cardgroup/index.js +0 -6
  200. package/src/patterns/components/checkbox/checkbox.stories.jsx +0 -10
  201. package/src/patterns/components/checkbox/checkbox.twig +0 -17
  202. package/src/patterns/components/checkbox/index.js +0 -7
  203. package/src/patterns/components/contextmenu/contextmenu.stories.jsx +0 -9
  204. package/src/patterns/components/contextmenu/contextmenu.twig +0 -12
  205. package/src/patterns/components/contextmenu/index.js +0 -6
  206. package/src/patterns/components/datepicker/datepicker.stories.jsx +0 -9
  207. package/src/patterns/components/datepicker/datepicker.twig +0 -20
  208. package/src/patterns/components/datepicker/index.js +0 -7
  209. package/src/patterns/components/dropdown/dropdown.stories.jsx +0 -9
  210. package/src/patterns/components/dropdown/dropdown.twig +0 -22
  211. package/src/patterns/components/dropdown/index.js +0 -6
  212. package/src/patterns/components/fileupload/fileupload.behavior.js +0 -12
  213. package/src/patterns/components/fileupload/fileupload.js +0 -147
  214. package/src/patterns/components/fileupload/fileupload.stories.jsx +0 -9
  215. package/src/patterns/components/fileupload/fileupload.twig +0 -20
  216. package/src/patterns/components/fileupload/index.js +0 -8
  217. package/src/patterns/components/footer/footer.stories.jsx +0 -9
  218. package/src/patterns/components/footer/footer.twig +0 -63
  219. package/src/patterns/components/footer/index.js +0 -6
  220. package/src/patterns/components/form/fieldset.twig +0 -70
  221. package/src/patterns/components/form/form.stories.jsx +0 -9
  222. package/src/patterns/components/form/form.twig +0 -19
  223. package/src/patterns/components/form/formcontrol.twig +0 -89
  224. package/src/patterns/components/form/index.js +0 -6
  225. package/src/patterns/components/form/input.twig +0 -10
  226. package/src/patterns/components/hero/hero.stories.jsx +0 -9
  227. package/src/patterns/components/hero/hero.twig +0 -65
  228. package/src/patterns/components/hero/index.js +0 -7
  229. package/src/patterns/components/herocard/herocard.stories.jsx +0 -9
  230. package/src/patterns/components/herocard/herocard.twig +0 -30
  231. package/src/patterns/components/herocard/index.js +0 -6
  232. package/src/patterns/components/icon/icon.behavior.js +0 -16
  233. package/src/patterns/components/icon/icon.js +0 -128
  234. package/src/patterns/components/icon/icon.stories.jsx +0 -10
  235. package/src/patterns/components/icon/icon.twig +0 -4
  236. package/src/patterns/components/icon/index.js +0 -6
  237. package/src/patterns/components/image/image.stories.jsx +0 -9
  238. package/src/patterns/components/image/image.twig +0 -29
  239. package/src/patterns/components/image/index.js +0 -6
  240. package/src/patterns/components/link/index.js +0 -6
  241. package/src/patterns/components/link/link.stories.jsx +0 -9
  242. package/src/patterns/components/link/link.twig +0 -8
  243. package/src/patterns/components/linklist/index.js +0 -7
  244. package/src/patterns/components/linklist/linklist.behavior.js +0 -15
  245. package/src/patterns/components/linklist/linklist.js +0 -55
  246. package/src/patterns/components/linklist/linklist.stories.jsx +0 -14
  247. package/src/patterns/components/linklist/linklist.twig +0 -26
  248. package/src/patterns/components/list/index.js +0 -6
  249. package/src/patterns/components/list/list-item.twig +0 -6
  250. package/src/patterns/components/list/list.stories.jsx +0 -9
  251. package/src/patterns/components/list/list.twig +0 -35
  252. package/src/patterns/components/loading/index.js +0 -7
  253. package/src/patterns/components/loading/loading.behavior.js +0 -16
  254. package/src/patterns/components/loading/loading.js +0 -102
  255. package/src/patterns/components/loading/loading.stories.jsx +0 -9
  256. package/src/patterns/components/loading/loading.twig +0 -8
  257. package/src/patterns/components/localnav/index.js +0 -7
  258. package/src/patterns/components/localnav/localnav.stories.jsx +0 -9
  259. package/src/patterns/components/localnav/localnav.twig +0 -86
  260. package/src/patterns/components/logogrid/index.js +0 -6
  261. package/src/patterns/components/logogrid/logogrid.stories.jsx +0 -9
  262. package/src/patterns/components/logogrid/logogrid.twig +0 -17
  263. package/src/patterns/components/modal/index.js +0 -7
  264. package/src/patterns/components/modal/modal.behavior.js +0 -16
  265. package/src/patterns/components/modal/modal.js +0 -134
  266. package/src/patterns/components/modal/modal.stories.jsx +0 -10
  267. package/src/patterns/components/modal/modal.twig +0 -20
  268. package/src/patterns/components/navigation/index.js +0 -7
  269. package/src/patterns/components/navigation/navigation.behavior.js +0 -16
  270. package/src/patterns/components/navigation/navigation.js +0 -552
  271. package/src/patterns/components/navigation/navigation.stories.jsx +0 -10
  272. package/src/patterns/components/navigation/navigation.twig +0 -171
  273. package/src/patterns/components/notification/index.js +0 -7
  274. package/src/patterns/components/notification/notification.behavior.js +0 -16
  275. package/src/patterns/components/notification/notification.js +0 -97
  276. package/src/patterns/components/notification/notification.stories.jsx +0 -10
  277. package/src/patterns/components/notification/notification.twig +0 -18
  278. package/src/patterns/components/numberpicker/index.js +0 -7
  279. package/src/patterns/components/numberpicker/numberpicker.stories.jsx +0 -9
  280. package/src/patterns/components/numberpicker/numberpicker.twig +0 -16
  281. package/src/patterns/components/pagination/Pagination.stories.jsx +0 -9
  282. package/src/patterns/components/pagination/index.js +0 -6
  283. package/src/patterns/components/pagination/pagination.twig +0 -49
  284. package/src/patterns/components/picture/index.js +0 -6
  285. package/src/patterns/components/picture/picture.twig +0 -21
  286. package/src/patterns/components/polyfill/index.js +0 -6
  287. package/src/patterns/components/polyfill/polyfill.twig +0 -10
  288. package/src/patterns/components/profile/index.js +0 -6
  289. package/src/patterns/components/profile/profile.stories.jsx +0 -10
  290. package/src/patterns/components/profile/profile.twig +0 -26
  291. package/src/patterns/components/radio/index.js +0 -7
  292. package/src/patterns/components/radio/radio.stories.jsx +0 -10
  293. package/src/patterns/components/radio/radio.twig +0 -23
  294. package/src/patterns/components/readmore/index.js +0 -7
  295. package/src/patterns/components/readmore/readmore.behavior.js +0 -16
  296. package/src/patterns/components/readmore/readmore.js +0 -121
  297. package/src/patterns/components/readmore/readmore.stories.jsx +0 -10
  298. package/src/patterns/components/readmore/readmore.twig +0 -16
  299. package/src/patterns/components/richtext/index.js +0 -6
  300. package/src/patterns/components/richtext/richtext.stories.jsx +0 -10
  301. package/src/patterns/components/richtext/richtext.twig +0 -6
  302. package/src/patterns/components/search/index.js +0 -7
  303. package/src/patterns/components/search/search.behavior.js +0 -15
  304. package/src/patterns/components/search/search.js +0 -103
  305. package/src/patterns/components/search/search.stories.jsx +0 -10
  306. package/src/patterns/components/search/search.twig +0 -31
  307. package/src/patterns/components/socialmedia/index.js +0 -6
  308. package/src/patterns/components/socialmedia/socialmedia.mdx +0 -48
  309. package/src/patterns/components/socialmedia/socialmedia.stories.jsx +0 -15
  310. package/src/patterns/components/socialmedia/socialmedia.twig +0 -17
  311. package/src/patterns/components/table/index.js +0 -7
  312. package/src/patterns/components/table/table.behavior.js +0 -16
  313. package/src/patterns/components/table/table.js +0 -305
  314. package/src/patterns/components/table/table.stories.jsx +0 -10
  315. package/src/patterns/components/table/table.twig +0 -39
  316. package/src/patterns/components/tableofcontents/index.js +0 -7
  317. package/src/patterns/components/tableofcontents/tableofcontents.behavior.js +0 -16
  318. package/src/patterns/components/tableofcontents/tableofcontents.js +0 -172
  319. package/src/patterns/components/tableofcontents/tableofcontents.stories.jsx +0 -10
  320. package/src/patterns/components/tableofcontents/tableofcontents.twig +0 -47
  321. package/src/patterns/components/tabs/index.js +0 -7
  322. package/src/patterns/components/tabs/tabs.behavior.js +0 -27
  323. package/src/patterns/components/tabs/tabs.js +0 -212
  324. package/src/patterns/components/tabs/tabs.stories.jsx +0 -10
  325. package/src/patterns/components/tabs/tabs.twig +0 -29
  326. package/src/patterns/components/tags/index.js +0 -7
  327. package/src/patterns/components/tags/tag.behavior.js +0 -16
  328. package/src/patterns/components/tags/tag.js +0 -159
  329. package/src/patterns/components/tags/tag.stories.jsx +0 -10
  330. package/src/patterns/components/tags/tag.twig +0 -30
  331. package/src/patterns/components/tags/tags.twig +0 -15
  332. package/src/patterns/components/textarea/index.js +0 -7
  333. package/src/patterns/components/textarea/textarea.stories.jsx +0 -9
  334. package/src/patterns/components/textarea/textarea.twig +0 -14
  335. package/src/patterns/components/textinput/index.js +0 -7
  336. package/src/patterns/components/textinput/textinput.stories.jsx +0 -10
  337. package/src/patterns/components/textinput/textinput.twig +0 -14
  338. package/src/patterns/components/toggle/index.js +0 -7
  339. package/src/patterns/components/toggle/toggle.stories.jsx +0 -10
  340. package/src/patterns/components/toggle/toggle.twig +0 -36
  341. package/src/patterns/components/tooltip/index.js +0 -7
  342. package/src/patterns/components/tooltip/tooltip.behavior.js +0 -16
  343. package/src/patterns/components/tooltip/tooltip.js +0 -156
  344. package/src/patterns/components/tooltip/tooltip.stories.jsx +0 -10
  345. package/src/patterns/components/tooltip/tooltip.twig +0 -14
  346. package/src/patterns/components/video/index.js +0 -7
  347. package/src/patterns/components/video/video.behavior.js +0 -16
  348. package/src/patterns/components/video/video.js +0 -120
  349. package/src/patterns/components/video/video.stories.jsx +0 -10
  350. package/src/patterns/components/video/video.twig +0 -18
  351. package/src/patterns/components/video/videoplayer.twig +0 -8
  352. package/src/tokens/exports/_colors.scss +0 -7
  353. package/src/tokens/exports/_font-families.scss +0 -6
  354. package/src/tokens/exports/_font-sizes-heading.scss +0 -10
  355. package/src/tokens/index.scss +0 -7
  356. package/src/vendorjs/lib.vendor.js +0 -1
  357. /package/{src/patterns/components/accordion/accordion.wingsuit.yml → dist/components/accordion/accordion.component.yml} +0 -0
  358. /package/{src/patterns/components/breadcrumb/breadcrumb.wingsuit.yml → dist/components/breadcrumb/breadcrumb.component.yml} +0 -0
  359. /package/{src/patterns/components/button/button.wingsuit.yml → dist/components/button/button.component.yml} +0 -0
  360. /package/{src/patterns/components/card/card.wingsuit.yml → dist/components/card/card.component.yml} +0 -0
  361. /package/{src/patterns/components/card_data/card_data.wingsuit.yml → dist/components/card_data/card_data.component.yml} +0 -0
  362. /package/{src/patterns/components/card_detail/card_detail.wingsuit.yml → dist/components/card_detail/card_detail.component.yml} +0 -0
  363. /package/{src/patterns/components/card_factlist/card_factlist.wingsuit.yml → dist/components/card_factlist/card_factlist.component.yml} +0 -0
  364. /package/{src/patterns/components/card_feature/card_feature.wingsuit.yml → dist/components/card_feature/card_feature.component.yml} +0 -0
  365. /package/{src/patterns/components/card_multilink/card_multilink.wingsuit.yml → dist/components/card_multilink/card_multilink.component.yml} +0 -0
  366. /package/{src/patterns/components/card_promo/card_promo.wingsuit.yml → dist/components/card_promo/card_promo.component.yml} +0 -0
  367. /package/{src/patterns/components/card_stat/card_stat.wingsuit.yml → dist/components/card_stat/card_stat.component.yml} +0 -0
  368. /package/{src/patterns/components/card_text/card_text.wingsuit.yml → dist/components/card_text/card_text.component.yml} +0 -0
  369. /package/{src/patterns/components/cardgroup/cardgroup.wingsuit.yml → dist/components/cardgroup/cardgroup.component.yml} +0 -0
  370. /package/{src/patterns/components/contextmenu/contextmenu.wingsuit.yml → dist/components/contextmenu/contextmenu.component.yml} +0 -0
  371. /package/{src/patterns/components/form/form.wingsuit.yml → dist/components/form/form.component.yml} +0 -0
  372. /package/{src/patterns/components/hero/hero.wingsuit.yml → dist/components/hero/hero.component.yml} +0 -0
  373. /package/{src/patterns/components/herocard/herocard.wingsuit.yml → dist/components/herocard/herocard.component.yml} +0 -0
  374. /package/{src/patterns/components/icon/icon.wingsuit.yml → dist/components/icon/icon.component.yml} +0 -0
  375. /package/{src/patterns/components/image/image.wingsuit.yml → dist/components/image/image.component.yml} +0 -0
  376. /package/{src/patterns/components/link/link.wingsuit.yml → dist/components/link/link.component.yml} +0 -0
  377. /package/{src/patterns/components/linklist/linklist.wingsuit.yml → dist/components/linklist/linklist.component.yml} +0 -0
  378. /package/{src/patterns/components/logogrid/logogrid.wingsuit.yml → dist/components/logogrid/logogrid.component.yml} +0 -0
  379. /package/{src/patterns/components/notification/notification.wingsuit.yml → dist/components/notification/notification.component.yml} +0 -0
  380. /package/{src/patterns/components/profile/profile.wingsuit.yml → dist/components/profile/profile.component.yml} +0 -0
  381. /package/{src/patterns/components/richtext/richtext.wingsuit.yml → dist/components/richtext/richtext.component.yml} +0 -0
  382. /package/{src/patterns/components/socialmedia/socialmedia.wingsuit.yml → dist/components/socialmedia/socialmedia.component.yml} +0 -0
  383. /package/{src/patterns/components/table/table.wingsuit.yml → dist/components/table/table.component.yml} +0 -0
  384. /package/{src/patterns/components/tableofcontents/tableofcontents.wingsuit.yml → dist/components/tableofcontents/tableofcontents.component.yml} +0 -0
  385. /package/{src/patterns/components/tabs/tabs.wingsuit.yml → dist/components/tabs/tabs.component.yml} +0 -0
  386. /package/{src/patterns/components/tags/tags.wingsuit.yml → dist/components/tags/tags.component.yml} +0 -0
  387. /package/{src/patterns/components/tooltip/tooltip.wingsuit.yml → dist/components/tooltip/tooltip.component.yml} +0 -0
  388. /package/{src/patterns/components/video/video.wingsuit.yml → dist/components/video/video.component.yml} +0 -0
  389. /package/dist/{components/cardgroup → styles/components}/cardgroup.css +0 -0
  390. /package/dist/{components/container → styles/components}/container.css +0 -0
  391. /package/dist/{components/credit → styles/components}/credit.css +0 -0
  392. /package/dist/{components/datepicker → styles/components}/datepicker.css +0 -0
  393. /package/dist/{components/detailcard → styles/components}/detailcard.css +0 -0
  394. /package/dist/{components/empty → styles/components}/empty.css +0 -0
  395. /package/dist/{components/factlistcard → styles/components}/factlistcard.css +0 -0
  396. /package/dist/{components/form → styles/components}/form.css +0 -0
  397. /package/dist/{components/hero → styles/components}/hero.css +0 -0
  398. /package/dist/{components/image → styles/components}/image.css +0 -0
  399. /package/dist/{components/link → styles/components}/link.css +0 -0
  400. /package/dist/{components/logogrid → styles/components}/logogrid.css +0 -0
  401. /package/dist/{components/modal → styles/components}/modal.css +0 -0
  402. /package/dist/{components/multilinkcard → styles/components}/multilinkcard.css +0 -0
  403. /package/dist/{components/notification → styles/components}/notification.css +0 -0
  404. /package/dist/{components/promocard → styles/components}/promocard.css +0 -0
  405. /package/dist/{components/radio → styles/components}/radio.css +0 -0
  406. /package/dist/{components/textcard → styles/components}/textcard.css +0 -0
  407. /package/dist/{components/toggle → styles/components}/toggle.css +0 -0
  408. /package/dist/{components/video → styles/components}/video.css +0 -0
@@ -1,23 +0,0 @@
1
- {#
2
- BUTTON COMPONENT
3
- #}
4
- {% if url %}
5
- <a class="{{prefix}}--button ilo--button--{{size}} {{prefix}}--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly|boolval %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target %} target="{{target}}" rel="noopener noreferrer"{% endif %}{{ disabled|boolval ? ' disabled' }}>
6
- <span class="link__label">{{label}}</span>
7
- {% block button_icon %}
8
- {% if icon %}
9
- {% include '@components/icon/icon.twig' with {
10
- prefix: prefix,
11
- name: icon.name,
12
- size: icon.size,
13
- color: icon.color
14
- } only %}
15
- {% endif %}
16
- {% endblock %}
17
- </a>
18
- {% else %}
19
- <button class="{{prefix}}--button ilo--button--{{size}} {{prefix}}--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly|boolval %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal|boolval %} aria-haspopup="dialog" {% endif %}{{ disabled|boolval ? ' disabled' }}{% if name %} name="{{name}}" {% endif %}>
20
- <span class="button__label">{{label}}</span>
21
- {{ block("button_icon") }}
22
- </button>
23
- {% endif %}
@@ -1,6 +0,0 @@
1
- /**
2
- * button
3
- */
4
- // Module template
5
- import "./button.twig";
6
- import "./button.wingsuit.yml";
@@ -1,16 +0,0 @@
1
- import Callout from "./callout";
2
-
3
- Drupal.behaviors.callout = {
4
- attach() {
5
- Array.prototype.forEach.call(
6
- document.querySelectorAll(`[data-loadcomponent="Callout"]`),
7
- (element) => {
8
- if (!element.dataset.jsProcessed) {
9
- // eslint-disable-next-line no-console
10
- new Callout(element);
11
- element.dataset.jsProcessed = true;
12
- }
13
- }
14
- );
15
- },
16
- };
@@ -1,149 +0,0 @@
1
- import { EVENTS } from "@ilo-org/utils";
2
-
3
- /**
4
- * The Callout module which handles rendering field labels inline on a form.
5
- *
6
- * @class Callout
7
- */
8
- export default class Callout {
9
- /**
10
- * Callout constructor which assigns the element passed into the constructor
11
- * to the `this.element` property for later reference
12
- *
13
- * @param {HTMLElement} element - REQUIRED - the module's container
14
- */
15
- constructor(element) {
16
- /**
17
- * Reference to the DOM element that is the root of the component
18
- * @property {Object}
19
- */
20
- this.element = element;
21
- this.toggleLabel = "";
22
-
23
- // Initialize the view
24
- this.init();
25
- }
26
-
27
- /**
28
- * Initializes the view by calling the functions to
29
- * create DOM references, setup event handlers and
30
- * then create the event listeners
31
- *
32
- * @return {Object} Callout A reference to the instance of the class
33
- * @chainable
34
- */
35
- init() {
36
- this.cacheDomReferences().setupHandlers().enable();
37
- if (!this.toggleOpen && this.toggleCollapsible) {
38
- this.calcHeight();
39
- }
40
-
41
- return this;
42
- }
43
-
44
- /**
45
- * Find all necessary DOM elements used in the view and cache them
46
- *
47
- * @return {Object} Callout A reference to the instance of the class
48
- * @chainable
49
- */
50
- cacheDomReferences() {
51
- /**
52
- * The field that a user interacts with on a form
53
- * @type {Object}
54
- */
55
- this.toggle = this.element.querySelector(".ilo--callout--toggle");
56
- this.toggleOpen = this.element.classList.value.includes("callout--open");
57
- this.toggleCollapsible =
58
- this.element.classList.value.includes("callout--collapse");
59
- if (this.toggle) {
60
- this.toggleLabel = this.toggle.querySelector(
61
- ".ilo--callout--button-text"
62
- );
63
- this.toggleLabelOpen = this.toggle.getAttribute("data-open");
64
- this.toggleLabelClosed = this.toggle.getAttribute("data-closed");
65
- }
66
- this.button = this.element.querySelector(".ilo--button");
67
-
68
- return this;
69
- }
70
-
71
- /**
72
- * Bind event handlers with the proper context of `this`.
73
- *
74
- * @return {Object} Callout A reference to the current instance of the class
75
- * @chainable
76
- */
77
- setupHandlers() {
78
- this.onToggle = this.handleToggle.bind(this);
79
- this.onClick = this.handleClick.bind(this);
80
-
81
- return this;
82
- }
83
-
84
- /**
85
- * Creates event listeners to enable interaction with view
86
- *
87
- * @return {Object} Callout A reference to the instance of the class
88
- * @chainable
89
- */
90
- enable() {
91
- if (this.toggle) {
92
- this.toggle.addEventListener(EVENTS.CLICK, this.onToggle);
93
- }
94
-
95
- if (this.button) {
96
- this.button.addEventListener(EVENTS.CLICK, this.onClick);
97
- }
98
-
99
- return this;
100
- }
101
-
102
- /**
103
- * calcHeight
104
- *
105
- * @return {Object} Callout A reference to the instance of the class
106
- * @chainable
107
- */
108
- calcHeight() {
109
- this.header = this.element.querySelector('[class*="--header"]');
110
- this.height = this.header.offsetHeight;
111
- this.element.style.maxHeight = `${this.height + 25}px`;
112
-
113
- return this;
114
- }
115
-
116
- /**
117
- * Onclick interaction
118
- *
119
- * @return {Object} Callout A reference to the instance of the class
120
- * @chainable
121
- */
122
- handleClick() {
123
- // callback of sorts
124
- return this;
125
- }
126
-
127
- /**
128
- * handleToggle
129
- *
130
- * toggle the collapse state of the callout
131
- *
132
- * @param {Object} e - Event
133
- * @return {Object} Callout A reference to the instance of the class
134
- * @chainable
135
- */
136
- handleToggle(e) {
137
- e.preventDefault();
138
- this.toggleOpen = !this.toggleOpen;
139
-
140
- const label = this.toggleOpen
141
- ? this.toggleLabelOpen
142
- : this.toggleLabelClosed;
143
-
144
- this.element.classList.toggle("ilo--callout--open");
145
- this.toggleLabel.innerText = label;
146
-
147
- return this;
148
- }
149
- }
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./callout.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,41 +0,0 @@
1
- {#
2
- CALLOUT COMPONENT
3
- #}
4
- <div class="{{prefix}}--callout {{prefix}}--callout--{{alert}} {% if isCollapsible|boolval and isOpen|boolval %} {{prefix}}--callout--open {% endif %} {% if isCollapsible|boolval %} {{prefix}}--callout--collapse {% endif %}" data-loadcomponent="Callout">
5
- <div class="{{prefix}}--callout--sidebar">
6
- <span class="{{prefix}}--callout--icon icon icon--{{alert}}"></span>
7
- </div>
8
- <div class="{{prefix}}--callout--content">
9
- <div class="{{prefix}}--callout--header">
10
- <h5 class="{{prefix}}--callout--title">{{ title }}</h5>
11
- {% if isCollapsible|boolval %}
12
- <button class="{{prefix}}--callout--toggle" type="button" data-open="{{ toggleOpenLabel }}" data-closed="{{ toggleClosedLabel }}">
13
- <span class="{{prefix}}--callout--button-text">
14
- {% if isOpen %}
15
- {{ toggleOpenLabel }}
16
- {% else %}
17
- {{ toggleClosedLabel }}
18
- {% endif %}
19
- </span>
20
- <span class="{{prefix}}--callout--toggle--icon" role="presentation"></span>
21
- </button>
22
- {% endif %}
23
- </div>
24
- {{ content }}
25
- {% if button %}
26
- <div class="{{prefix}}--callout--footer">
27
- {% include '@components/button/button.twig' with {
28
- label: button.label,
29
- url: button.url,
30
- target: button.target,
31
- icon: button.icon,
32
- className: button.className,
33
- icon: button.icon,
34
- iconPosition: button.iconPosition,
35
- size: "small",
36
- type: "secondary",
37
- } %}
38
- </div>
39
- {% endif %}
40
- </div>
41
- </div>
@@ -1,7 +0,0 @@
1
- /**
2
- * callout
3
- */
4
- // Module template
5
- import "./callout.twig";
6
- import "./callout.wingsuit.yml";
7
- import "./callout.behavior";
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,24 +0,0 @@
1
- {#
2
- CARD COMPONENT
3
- #}
4
- {% if type == "" %}
5
- {% set type = variant %}
6
- {% endif %}
7
-
8
- {% if type == "data" %}
9
- {% include "@components/card_data/card_data.twig" %}
10
- {% elseif type == "detail" %}
11
- {% include "@components/card_detail/card_detail.twig" %}
12
- {% elseif type == "factlist" %}
13
- {% include "@components/card_factlist/card_factlist.twig" %}
14
- {% elseif type == "feature" %}
15
- {% include "@components/card_feature/card_feature.twig" %}
16
- {% elseif type == "multilink" %}
17
- {% include "@components/card_multilink/card_multilink.twig" %}
18
- {% elseif type == "promo" %}
19
- {% include "@components/card_promo/card_promo.twig" %}
20
- {% elseif type == "stat" %}
21
- {% include "@components/card_stat/card_stat.twig" %}
22
- {% elseif type == "text" %}
23
- {% include "@components/card_text/card_text.twig" %}
24
- {% endif %}
@@ -1,6 +0,0 @@
1
- /**
2
- * card
3
- */
4
- // Module template
5
- import "./card.twig";
6
- import "./card.wingsuit.yml";
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_data.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,101 +0,0 @@
1
- {# card_data.twig #}
2
-
3
- {% if not columns %}
4
- {% set columns = "one" %}
5
- {% endif %}
6
-
7
- {# Different layout options to apply depending on if the card has an image
8
- or if it has links. If it has two columns with image, then image goes on one side
9
- and content goes on the other. If it has two columns witout image but links, then
10
- links go on one side and the rest of the content goes on the other. Otherwise, flow
11
- all content normally. #}
12
- {% if image %}
13
- {% set content = "with-image" %}
14
- {% elseif not image and dataset.links %}
15
- {% set content = "no-image-with-links" %}
16
- {% else %}
17
- {% set content = "default" %}
18
- {% endif %}
19
-
20
-
21
- <div class="{{prefix}}--card {{prefix}}--card__type__data {{prefix}}--card__size__{{size}} {{prefix}}--card__type__data__columns__{{columns}}">
22
- <div class="{{prefix}}--card--wrap">
23
- {% if not image and eyebrow %}
24
- <div class="{{prefix}}--card--eyebrow">{{ eyebrow }}</div>
25
- {% endif %}
26
- <div class="{{prefix}}--card--content {{prefix}}--card--content__{{ content }}">
27
- {% if image %}
28
- <div class="{{prefix}}--card--area--image">
29
- {% if eyebrow %}
30
- <div class="{{prefix}}--card--eyebrow">{{ eyebrow }}</div>
31
- {% endif %}
32
- <div class="{{prefix}}--card--image">
33
- {% include "@components/picture/picture.twig" with { image: image, class: "card" } %}
34
- </div>
35
- </div>
36
- {% endif %}
37
- {% if dataset.content %}
38
- {% for item in dataset.content.items %}
39
- <div class="{{prefix}}--card--area--content">
40
- {% block content_item %}
41
- <p class="{{prefix}}--card__type__data--content-label">{{ item.label }}</p>
42
- <p class="{{prefix}}--card__type__data--content-copy">{{ item.copy }}</p>
43
- {% endblock %}
44
- </div>
45
- {% endfor %}
46
- {% endif %}
47
- {% if dataset.files %}
48
- <div class="{{prefix}}--card--area--files">
49
- {% block area_files %}
50
- <div class="{{prefix}}--card__type__data--content-files">
51
- <p class="{{prefix}}--card__type__data--content-label">{{ dataset.files.headline }}</p>
52
- {% for item in dataset.files.items %}
53
- {% include "@components/button/button.twig" with {
54
- type: "primary",
55
- size: "small",
56
- url: item.url,
57
- label: item.label,
58
- prefix: prefix
59
- } only %}
60
- {% endfor %}
61
- </div>
62
- {% endblock %}
63
- </div>
64
- {% endif %}
65
- {% if dataset.cta %}
66
- <div class="{{prefix}}--card--area--cta">
67
- {% block area_cta %}
68
- <div class="{{prefix}}--card__type__data--content-cta">
69
- <p class="{{prefix}}--card__type__data--content-label">{{ dataset.cta.headline }}</p>
70
- {% for item in dataset.cta.items %}
71
- {% include "@components/button/button.twig" with {
72
- type: "secondary",
73
- size: "small",
74
- url: item.url,
75
- label: item.label,
76
- prefix: prefix
77
- } only %}
78
- {% endfor %}
79
- </div>
80
- {% endblock %}
81
- </div>
82
- {% endif %}
83
- {% if dataset.links %}
84
- <div class="{{prefix}}--card--area--links">
85
- {% block area_links %}
86
- <div class="{{prefix}}--card__type__data--content-links">
87
- <p class="{{prefix}}--card__type__data--content-label">{{ dataset.links.headline }}</p>
88
- {% for item in dataset.links.items %}
89
- {% include "@components/link/link.twig" with {
90
- url: item.url,
91
- label: item.label,
92
- prefix: prefix
93
- } only %}
94
- {% endfor %}
95
- </div>
96
- {% endblock %}
97
- </div>
98
- {% endif %}
99
- </div>
100
- </div>
101
- </div>
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_data.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_detail.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,37 +0,0 @@
1
- {#
2
- DETAIL CARD COMPONENT
3
- #}
4
-
5
- <div class="{{prefix}}--card {{prefix}}--card__type__detail {{prefix}}--card__action {{prefix}}--card__size__{{size}} {% if isvideo|boolval %} {{prefix}}--card__isvideo {% endif %}">
6
- <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
7
- <span class="{{prefix}}--card--link--text">{{title}}</span>
8
- </a>
9
- <div class="{{prefix}}--card--wrap">
10
- {% if image %}
11
- <div class="{{prefix}}--card--image--wrapper">
12
- {% include "@components/picture/picture.twig" with {
13
- image: image,
14
- class: "card"
15
- }
16
- %}
17
- </div>
18
- {% endif %}
19
- <div class="{{prefix}}--card--content">
20
- {% if eyebrow %}
21
- <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
22
- {% endif %}
23
- {% if title %}
24
- <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
25
- {% endif %}
26
- {% if intro %}
27
- <p class="{{prefix}}--card--intro">{{intro}}</p>
28
- {% endif %}
29
- {% if date %}
30
- <time class="{{prefix}}--card--date" datetime="{{date.unix}}">{{date.human}}</time>
31
- {% endif %}
32
- {% if dateExtra %}
33
- <p class="{{prefix}}--card--date-extra">{{dateExtra}}</p>
34
- {% endif %}
35
- </div>
36
- </div>
37
- </div>
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_detail.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_factlist.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,21 +0,0 @@
1
- {#
2
- FACT LIST CARD COMPONENT
3
- #}
4
- <div class="{{prefix}}--card {{prefix}}--card__type__factlist {{prefix}}--card__size__{{size}} {{prefix}}--card__theme__{{theme}}">
5
- <div class="{{prefix}}--card--wrap">
6
- <div class="{{prefix}}--card--content">
7
- {% if title %}
8
- <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
9
- {% endif %}
10
- {% if list %}
11
- {% include "@components/list/list.twig" with {
12
- title: list.title,
13
- ordered: list.ordered,
14
- alignment: list.alignment,
15
- items: list.items,
16
- prefix: prefix,
17
- } only %}
18
- {% endif %}
19
- </div>
20
- </div>
21
- </div>
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_factlist.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_feature.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,39 +0,0 @@
1
- {#
2
- FEATURE CARD COMPONENT
3
- #}
4
-
5
- <div class="{{prefix}}--card {{prefix}}--card__type__feature {{prefix}}--card__action {{prefix}}--card__theme__{{theme}} {{prefix}}--card__size__{{ size }} {% if isvideo|boolval %} {{prefix}}--card__isvideo {% endif %} {% if cta %} {{prefix}}--card__linklist {% endif %}">
6
- <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
7
- <span class="{{prefix}}--card--link--text">{{title}}</span>
8
- </a>
9
- <div class="{{prefix}}--card--wrap">
10
- {% if image %}
11
- <div class="{{prefix}}--card--image--wrapper">
12
- {% include "@components/picture/picture.twig" with {
13
- image: image,
14
- class: "card"
15
- }
16
- %}
17
- </div>
18
- {% endif %}
19
- <div class="{{prefix}}--card--content">
20
- {% if eyebrow %}
21
- <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
22
- {% endif %}
23
- {% if title %}
24
- <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
25
- {% endif %}
26
- {% if date %}
27
- <time class="{{prefix}}--card--date" datetime="{{date.unix}}">{{date.human}}</time>
28
- {% endif %}
29
- {% if cta %}
30
- {% include "@components/linklist/linklist.twig" with {
31
- linkgroup: [{
32
- links: [cta]
33
- }],
34
- prefix: prefix
35
- } only %}
36
- {% endif %}
37
- </div>
38
- </div>
39
- </div>
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_feature.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_multilink.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,45 +0,0 @@
1
- {# card_multilink.twig #}
2
-
3
- <div class="{{prefix}}--card {{prefix}}--card__type__multilink {% if link|length > 0 %} {{prefix}}--card__action {% endif %} {{prefix}}--card__size__{{size}} {% if isvideo|boolval %} {{prefix}}--card__isvideo {% endif %} {% if linklist %} {{prefix}}--card__linklist {% endif %} {% if size == "wide" or size == "fluid" %} {{prefix}}--card__align__{{alignment}} {% endif %}">
4
- {% if link|length > 0 %}
5
- <a class="{{prefix}}--card--link" href="{{link}}" title="{{title}}">
6
- <span class="{{prefix}}--card--link--text">{{title}}</span>
7
- </a>
8
- {% endif %}
9
- <div class="{{prefix}}--card--wrap">
10
- <div class="{{prefix}}--card--image--wrapper">
11
- {% include "@components/picture/picture.twig" with {
12
- image: image,
13
- class: "card"
14
- }
15
- %}
16
- </div>
17
- <div class="{{prefix}}--card--content">
18
- {% if eyebrow %}
19
- <p class="{{prefix}}--card--eyebrow">{{eyebrow}}</p>
20
- {% endif %}
21
- {% if title %}
22
- <{{titleLevel|default('p')}} class="{{ prefix }}--card--title">{{ title }}</{{titleLevel|default('p')}}>
23
- {% endif %}
24
- {% if image %}
25
- <div class="{{prefix}}--card--image--wrapper">
26
- {% include "@components/picture/picture.twig" with {
27
- image: image,
28
- class: "card"
29
- }
30
- %}
31
- </div>
32
- {% endif %}
33
- {% if intro %}
34
- <p class="{{prefix}}--card--intro">{{intro}}</p>
35
- {% endif %}
36
- {% if linklist %}
37
- {% include "@components/linklist/linklist.twig" with {
38
- headline: linklist.headline,
39
- linkgroup: linklist.linkgroup,
40
- prefix: prefix
41
- } only %}
42
- {% endif %}
43
- </div>
44
- </div>
45
- </div>
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_multilink.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };
@@ -1,9 +0,0 @@
1
- import "./index";
2
-
3
- export default {};
4
- const patternDefinition = require("./card_promo.wingsuit.yml");
5
-
6
- /* eslint-disable-next-line */
7
- export const wingsuit = {
8
- patternDefinition,
9
- };