@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.
- package/LICENSE +183 -183
- package/dist/components/accordion/accordion.behavior.js +10 -1
- package/dist/components/breadcrumb/breadcrumb.behavior.js +10 -1
- package/dist/components/breadcrumb/breadcrumb.twig +2 -3
- package/dist/components/button/button.behavior.js +6 -0
- package/dist/components/button/button.twig +13 -8
- package/dist/components/callout/callout.behavior.js +10 -1
- package/{src/patterns/components/callout/callout.wingsuit.yml → dist/components/callout/callout.component.yml} +6 -7
- package/dist/components/callout/callout.twig +8 -8
- package/dist/components/callout/callout.wingsuit.yml +6 -7
- package/{src/patterns/components/checkbox/checkbox.wingsuit.yml → dist/components/checkbox/checkbox.component.yml} +6 -6
- package/dist/components/checkbox/checkbox.wingsuit.yml +6 -6
- package/{src/patterns/components/datepicker/datepicker.wingsuit.yml → dist/components/datepicker/datepicker.component.yml} +5 -5
- package/dist/components/datepicker/datepicker.wingsuit.yml +5 -5
- package/{src/patterns/components/dropdown/dropdown.wingsuit.yml → dist/components/dropdown/dropdown.component.yml} +7 -7
- package/dist/components/dropdown/dropdown.wingsuit.yml +7 -7
- package/dist/components/fileupload/fileupload.behavior.js +10 -1
- package/{src/patterns/components/fileupload/fileupload.wingsuit.yml → dist/components/fileupload/fileupload.component.yml} +7 -7
- package/dist/components/fileupload/fileupload.wingsuit.yml +7 -7
- package/{src/patterns/components/footer/footer.wingsuit.yml → dist/components/footer/footer.component.yml} +1 -1
- package/dist/components/footer/footer.wingsuit.yml +1 -1
- package/dist/components/icon/icon.behavior.js +687 -1
- package/dist/components/icon/icon.twig +0 -3
- package/dist/components/linklist/linklist.behavior.js +8 -1
- package/{src/patterns/components/list/list-item.wingsuit.yml → dist/components/list/list-item.component.yml} +2 -4
- package/dist/components/{list-item → list}/list-item.wingsuit.yml +2 -4
- package/{src/patterns/components/list/list.wingsuit.yml → dist/components/list/list.component.yml} +1 -1
- package/dist/components/list/list.wingsuit.yml +1 -1
- package/dist/components/loading/loading.behavior.js +10 -1
- package/{src/patterns/components/loading/loading.wingsuit.yml → dist/components/loading/loading.component.yml} +1 -1
- package/dist/components/loading/loading.wingsuit.yml +1 -1
- package/{src/patterns/components/localnav/localnav.wingsuit.yml → dist/components/localnav/localnav.component.yml} +1 -1
- package/dist/components/localnav/localnav.wingsuit.yml +1 -1
- package/dist/components/modal/modal.behavior.js +10 -1
- package/{src/patterns/components/modal/modal.wingsuit.yml → dist/components/modal/modal.component.yml} +1 -1
- package/dist/components/modal/modal.wingsuit.yml +1 -1
- package/dist/components/navigation/navigation.behavior.js +10 -1
- package/{src/patterns/components/navigation/navigation.wingsuit.yml → dist/components/navigation/navigation.component.yml} +2 -2
- package/dist/components/navigation/navigation.wingsuit.yml +2 -2
- package/dist/components/notification/notification.behavior.js +10 -1
- package/{src/patterns/components/numberpicker/numberpicker.wingsuit.yml → dist/components/numberpicker/numberpicker.component.yml} +6 -6
- package/dist/components/numberpicker/numberpicker.wingsuit.yml +6 -6
- package/{src/patterns/components/pagination/pagination.wingsuit.yml → dist/components/pagination/pagination.component.yml} +6 -6
- package/dist/components/pagination/pagination.wingsuit.yml +6 -6
- package/{src/patterns/components/radio/radio.wingsuit.yml → dist/components/radio/radio.component.yml} +6 -6
- package/dist/components/radio/radio.wingsuit.yml +6 -6
- package/dist/components/readmore/readmore.behavior.js +10 -1
- package/{src/patterns/components/readmore/readmore.wingsuit.yml → dist/components/readmore/readmore.component.yml} +1 -1
- package/dist/components/readmore/readmore.wingsuit.yml +1 -1
- package/dist/components/search/search.behavior.js +10 -1
- package/{src/patterns/components/search/search.wingsuit.yml → dist/components/search/search.component.yml} +8 -8
- package/dist/components/search/search.wingsuit.yml +8 -8
- package/dist/components/table/table.behavior.js +10 -1
- package/dist/components/tableofcontents/tableofcontents.behavior.js +10 -1
- package/dist/components/tabs/tabs.behavior.js +120 -1
- package/dist/components/tags/tag.behavior.js +10 -0
- package/{src/patterns/components/tags/tag.wingsuit.yml → dist/components/tags/tag.component.yml} +3 -6
- package/dist/components/{tag → tags}/tag.wingsuit.yml +3 -6
- package/{src/patterns/components/textarea/textarea.wingsuit.yml → dist/components/textarea/textarea.component.yml} +9 -9
- package/dist/components/textarea/textarea.wingsuit.yml +9 -9
- package/{src/patterns/components/textinput/textinput.wingsuit.yml → dist/components/textinput/textinput.component.yml} +7 -7
- package/dist/components/textinput/textinput.wingsuit.yml +7 -7
- package/{src/patterns/components/toggle/toggle.wingsuit.yml → dist/components/toggle/toggle.component.yml} +5 -5
- package/dist/components/toggle/toggle.wingsuit.yml +5 -5
- package/dist/components/tooltip/tooltip.behavior.js +116 -1
- package/dist/components/video/video.behavior.js +192 -16
- package/dist/styles/components/accordion.css +1 -0
- package/dist/styles/components/breadcrumb.css +1 -0
- package/dist/styles/components/button.css +1 -0
- package/dist/styles/components/callout.css +1 -0
- package/dist/styles/components/card.css +1 -0
- package/dist/styles/components/checkbox.css +1 -0
- package/dist/styles/components/contextmenu.css +1 -0
- package/dist/styles/components/datacard.css +1 -0
- package/dist/styles/components/dropdown.css +1 -0
- package/dist/styles/components/featurecard.css +1 -0
- package/dist/styles/components/fieldset.css +1 -0
- package/dist/styles/components/file-upload.css +1 -0
- package/dist/styles/components/footer.css +1 -0
- package/dist/styles/components/formcontrol.css +1 -0
- package/dist/styles/components/heading.css +1 -0
- package/dist/styles/components/herocard.css +1 -0
- package/dist/styles/components/input.css +1 -0
- package/dist/styles/components/linklist.css +1 -0
- package/dist/styles/components/list.css +1 -0
- package/dist/styles/components/loading.css +1 -0
- package/dist/styles/components/logo.css +1 -0
- package/dist/styles/components/navigation.css +1 -0
- package/dist/styles/components/pagination.css +1 -0
- package/dist/styles/components/profile.css +1 -0
- package/dist/styles/components/readmore.css +1 -0
- package/dist/styles/components/richtext.css +1 -0
- package/dist/{components/searchfield → styles/components}/searchfield.css +1 -1
- package/dist/styles/components/socialmedia.css +1 -0
- package/dist/styles/components/statcard.css +1 -0
- package/dist/styles/components/table.css +1 -0
- package/dist/styles/components/tableofcontents.css +1 -0
- package/dist/styles/components/tabs.css +1 -0
- package/dist/styles/components/tag.css +1 -0
- package/dist/styles/components/textarea.css +1 -0
- package/dist/styles/components/textinput.css +1 -0
- package/dist/styles/components/tooltip.css +1 -0
- package/dist/styles/global.css +2 -0
- package/dist/styles/global.css.map +1 -0
- package/dist/styles/index.css +9 -0
- package/dist/styles/index.css.map +1 -0
- package/dist/styles/monorepo.css +9 -0
- package/dist/styles/monorepo.css.map +1 -0
- package/package.json +45 -77
- package/README.md +0 -218
- package/dist/components/accordion/accordion.css +0 -1
- package/dist/components/breadcrumb/breadcrumb.css +0 -1
- package/dist/components/button/button.css +0 -1
- package/dist/components/callout/callout.css +0 -1
- package/dist/components/card/card.css +0 -1
- package/dist/components/checkbox/checkbox.css +0 -1
- package/dist/components/contextmenu/contextmenu.css +0 -1
- package/dist/components/datacard/datacard.css +0 -1
- package/dist/components/dropdown/dropdown.css +0 -1
- package/dist/components/featurecard/featurecard.css +0 -1
- package/dist/components/fieldset/fieldset.css +0 -1
- package/dist/components/file-upload/file-upload.css +0 -1
- package/dist/components/footer/footer.css +0 -1
- package/dist/components/formcontrol/formcontrol.css +0 -1
- package/dist/components/heading/heading.css +0 -1
- package/dist/components/herocard/herocard.css +0 -1
- package/dist/components/icon/icon.css +0 -1
- package/dist/components/input/input.css +0 -1
- package/dist/components/linklist/linklist.css +0 -1
- package/dist/components/list/list.css +0 -1
- package/dist/components/loading/loading.css +0 -1
- package/dist/components/logo/logo.css +0 -1
- package/dist/components/navigation/navigation.css +0 -1
- package/dist/components/pagination/pagination.css +0 -1
- package/dist/components/polyfill/polyfill.twig +0 -10
- package/dist/components/profile/profile.css +0 -1
- package/dist/components/readmore/readmore.css +0 -1
- package/dist/components/richtext/richtext.css +0 -1
- package/dist/components/socialmedia/socialmedia.css +0 -1
- package/dist/components/statcard/statcard.css +0 -1
- package/dist/components/table/table.css +0 -1
- package/dist/components/tableofcontents/tableofcontents.css +0 -1
- package/dist/components/tabs/tabs.css +0 -1
- package/dist/components/tag/tag.behavior.js +0 -1
- package/dist/components/tag/tag.css +0 -1
- package/dist/components/textarea/textarea.css +0 -1
- package/dist/components/textinput/textinput.css +0 -1
- package/dist/components/tooltip/tooltip.css +0 -1
- package/dist/global/styles.css +0 -9
- package/src/namespaces.js +0 -14
- package/src/patterns/components/accordion/accordion-item.twig +0 -22
- package/src/patterns/components/accordion/accordion.behavior.js +0 -16
- package/src/patterns/components/accordion/accordion.js +0 -200
- package/src/patterns/components/accordion/accordion.stories.jsx +0 -9
- package/src/patterns/components/accordion/accordion.twig +0 -16
- package/src/patterns/components/accordion/index.js +0 -7
- package/src/patterns/components/breadcrumb/breadcrumb.behavior.js +0 -16
- package/src/patterns/components/breadcrumb/breadcrumb.js +0 -280
- package/src/patterns/components/breadcrumb/breadcrumb.stories.jsx +0 -9
- package/src/patterns/components/breadcrumb/breadcrumb.twig +0 -55
- package/src/patterns/components/breadcrumb/index.js +0 -7
- package/src/patterns/components/button/button.stories.jsx +0 -9
- package/src/patterns/components/button/button.twig +0 -23
- package/src/patterns/components/button/index.js +0 -6
- package/src/patterns/components/callout/callout.behavior.js +0 -16
- package/src/patterns/components/callout/callout.js +0 -149
- package/src/patterns/components/callout/callout.stories.jsx +0 -9
- package/src/patterns/components/callout/callout.twig +0 -41
- package/src/patterns/components/callout/index.js +0 -7
- package/src/patterns/components/card/card.stories.jsx +0 -9
- package/src/patterns/components/card/card.twig +0 -24
- package/src/patterns/components/card/index.js +0 -6
- package/src/patterns/components/card_data/card_data.stories.jsx +0 -9
- package/src/patterns/components/card_data/card_data.twig +0 -101
- package/src/patterns/components/card_data/index.js +0 -9
- package/src/patterns/components/card_detail/card_detail.stories.jsx +0 -9
- package/src/patterns/components/card_detail/card_detail.twig +0 -37
- package/src/patterns/components/card_detail/index.js +0 -9
- package/src/patterns/components/card_factlist/card_factlist.stories.jsx +0 -9
- package/src/patterns/components/card_factlist/card_factlist.twig +0 -21
- package/src/patterns/components/card_factlist/index.js +0 -9
- package/src/patterns/components/card_feature/card_feature.stories.jsx +0 -9
- package/src/patterns/components/card_feature/card_feature.twig +0 -39
- package/src/patterns/components/card_feature/index.js +0 -9
- package/src/patterns/components/card_multilink/card_multilink.stories.jsx +0 -9
- package/src/patterns/components/card_multilink/card_multilink.twig +0 -45
- package/src/patterns/components/card_multilink/index.js +0 -9
- package/src/patterns/components/card_promo/card_promo.stories.jsx +0 -9
- package/src/patterns/components/card_promo/card_promo.twig +0 -35
- package/src/patterns/components/card_promo/index.js +0 -9
- package/src/patterns/components/card_stat/card_stat.stories.jsx +0 -9
- package/src/patterns/components/card_stat/card_stat.twig +0 -24
- package/src/patterns/components/card_stat/index.js +0 -9
- package/src/patterns/components/card_text/card_text.stories.jsx +0 -9
- package/src/patterns/components/card_text/card_text.twig +0 -35
- package/src/patterns/components/card_text/index.js +0 -9
- package/src/patterns/components/cardgroup/cardgroup.stories.jsx +0 -9
- package/src/patterns/components/cardgroup/cardgroup.twig +0 -44
- package/src/patterns/components/cardgroup/index.js +0 -6
- package/src/patterns/components/checkbox/checkbox.stories.jsx +0 -10
- package/src/patterns/components/checkbox/checkbox.twig +0 -17
- package/src/patterns/components/checkbox/index.js +0 -7
- package/src/patterns/components/contextmenu/contextmenu.stories.jsx +0 -9
- package/src/patterns/components/contextmenu/contextmenu.twig +0 -12
- package/src/patterns/components/contextmenu/index.js +0 -6
- package/src/patterns/components/datepicker/datepicker.stories.jsx +0 -9
- package/src/patterns/components/datepicker/datepicker.twig +0 -20
- package/src/patterns/components/datepicker/index.js +0 -7
- package/src/patterns/components/dropdown/dropdown.stories.jsx +0 -9
- package/src/patterns/components/dropdown/dropdown.twig +0 -22
- package/src/patterns/components/dropdown/index.js +0 -6
- package/src/patterns/components/fileupload/fileupload.behavior.js +0 -12
- package/src/patterns/components/fileupload/fileupload.js +0 -147
- package/src/patterns/components/fileupload/fileupload.stories.jsx +0 -9
- package/src/patterns/components/fileupload/fileupload.twig +0 -20
- package/src/patterns/components/fileupload/index.js +0 -8
- package/src/patterns/components/footer/footer.stories.jsx +0 -9
- package/src/patterns/components/footer/footer.twig +0 -63
- package/src/patterns/components/footer/index.js +0 -6
- package/src/patterns/components/form/fieldset.twig +0 -70
- package/src/patterns/components/form/form.stories.jsx +0 -9
- package/src/patterns/components/form/form.twig +0 -19
- package/src/patterns/components/form/formcontrol.twig +0 -89
- package/src/patterns/components/form/index.js +0 -6
- package/src/patterns/components/form/input.twig +0 -10
- package/src/patterns/components/hero/hero.stories.jsx +0 -9
- package/src/patterns/components/hero/hero.twig +0 -65
- package/src/patterns/components/hero/index.js +0 -7
- package/src/patterns/components/herocard/herocard.stories.jsx +0 -9
- package/src/patterns/components/herocard/herocard.twig +0 -30
- package/src/patterns/components/herocard/index.js +0 -6
- package/src/patterns/components/icon/icon.behavior.js +0 -16
- package/src/patterns/components/icon/icon.js +0 -128
- package/src/patterns/components/icon/icon.stories.jsx +0 -10
- package/src/patterns/components/icon/icon.twig +0 -4
- package/src/patterns/components/icon/index.js +0 -6
- package/src/patterns/components/image/image.stories.jsx +0 -9
- package/src/patterns/components/image/image.twig +0 -29
- package/src/patterns/components/image/index.js +0 -6
- package/src/patterns/components/link/index.js +0 -6
- package/src/patterns/components/link/link.stories.jsx +0 -9
- package/src/patterns/components/link/link.twig +0 -8
- package/src/patterns/components/linklist/index.js +0 -7
- package/src/patterns/components/linklist/linklist.behavior.js +0 -15
- package/src/patterns/components/linklist/linklist.js +0 -55
- package/src/patterns/components/linklist/linklist.stories.jsx +0 -14
- package/src/patterns/components/linklist/linklist.twig +0 -26
- package/src/patterns/components/list/index.js +0 -6
- package/src/patterns/components/list/list-item.twig +0 -6
- package/src/patterns/components/list/list.stories.jsx +0 -9
- package/src/patterns/components/list/list.twig +0 -35
- package/src/patterns/components/loading/index.js +0 -7
- package/src/patterns/components/loading/loading.behavior.js +0 -16
- package/src/patterns/components/loading/loading.js +0 -102
- package/src/patterns/components/loading/loading.stories.jsx +0 -9
- package/src/patterns/components/loading/loading.twig +0 -8
- package/src/patterns/components/localnav/index.js +0 -7
- package/src/patterns/components/localnav/localnav.stories.jsx +0 -9
- package/src/patterns/components/localnav/localnav.twig +0 -86
- package/src/patterns/components/logogrid/index.js +0 -6
- package/src/patterns/components/logogrid/logogrid.stories.jsx +0 -9
- package/src/patterns/components/logogrid/logogrid.twig +0 -17
- package/src/patterns/components/modal/index.js +0 -7
- package/src/patterns/components/modal/modal.behavior.js +0 -16
- package/src/patterns/components/modal/modal.js +0 -134
- package/src/patterns/components/modal/modal.stories.jsx +0 -10
- package/src/patterns/components/modal/modal.twig +0 -20
- package/src/patterns/components/navigation/index.js +0 -7
- package/src/patterns/components/navigation/navigation.behavior.js +0 -16
- package/src/patterns/components/navigation/navigation.js +0 -552
- package/src/patterns/components/navigation/navigation.stories.jsx +0 -10
- package/src/patterns/components/navigation/navigation.twig +0 -171
- package/src/patterns/components/notification/index.js +0 -7
- package/src/patterns/components/notification/notification.behavior.js +0 -16
- package/src/patterns/components/notification/notification.js +0 -97
- package/src/patterns/components/notification/notification.stories.jsx +0 -10
- package/src/patterns/components/notification/notification.twig +0 -18
- package/src/patterns/components/numberpicker/index.js +0 -7
- package/src/patterns/components/numberpicker/numberpicker.stories.jsx +0 -9
- package/src/patterns/components/numberpicker/numberpicker.twig +0 -16
- package/src/patterns/components/pagination/Pagination.stories.jsx +0 -9
- package/src/patterns/components/pagination/index.js +0 -6
- package/src/patterns/components/pagination/pagination.twig +0 -49
- package/src/patterns/components/picture/index.js +0 -6
- package/src/patterns/components/picture/picture.twig +0 -21
- package/src/patterns/components/polyfill/index.js +0 -6
- package/src/patterns/components/polyfill/polyfill.twig +0 -10
- package/src/patterns/components/profile/index.js +0 -6
- package/src/patterns/components/profile/profile.stories.jsx +0 -10
- package/src/patterns/components/profile/profile.twig +0 -26
- package/src/patterns/components/radio/index.js +0 -7
- package/src/patterns/components/radio/radio.stories.jsx +0 -10
- package/src/patterns/components/radio/radio.twig +0 -23
- package/src/patterns/components/readmore/index.js +0 -7
- package/src/patterns/components/readmore/readmore.behavior.js +0 -16
- package/src/patterns/components/readmore/readmore.js +0 -121
- package/src/patterns/components/readmore/readmore.stories.jsx +0 -10
- package/src/patterns/components/readmore/readmore.twig +0 -16
- package/src/patterns/components/richtext/index.js +0 -6
- package/src/patterns/components/richtext/richtext.stories.jsx +0 -10
- package/src/patterns/components/richtext/richtext.twig +0 -6
- package/src/patterns/components/search/index.js +0 -7
- package/src/patterns/components/search/search.behavior.js +0 -15
- package/src/patterns/components/search/search.js +0 -103
- package/src/patterns/components/search/search.stories.jsx +0 -10
- package/src/patterns/components/search/search.twig +0 -31
- package/src/patterns/components/socialmedia/index.js +0 -6
- package/src/patterns/components/socialmedia/socialmedia.mdx +0 -48
- package/src/patterns/components/socialmedia/socialmedia.stories.jsx +0 -15
- package/src/patterns/components/socialmedia/socialmedia.twig +0 -17
- package/src/patterns/components/table/index.js +0 -7
- package/src/patterns/components/table/table.behavior.js +0 -16
- package/src/patterns/components/table/table.js +0 -305
- package/src/patterns/components/table/table.stories.jsx +0 -10
- package/src/patterns/components/table/table.twig +0 -39
- package/src/patterns/components/tableofcontents/index.js +0 -7
- package/src/patterns/components/tableofcontents/tableofcontents.behavior.js +0 -16
- package/src/patterns/components/tableofcontents/tableofcontents.js +0 -172
- package/src/patterns/components/tableofcontents/tableofcontents.stories.jsx +0 -10
- package/src/patterns/components/tableofcontents/tableofcontents.twig +0 -47
- package/src/patterns/components/tabs/index.js +0 -7
- package/src/patterns/components/tabs/tabs.behavior.js +0 -27
- package/src/patterns/components/tabs/tabs.js +0 -212
- package/src/patterns/components/tabs/tabs.stories.jsx +0 -10
- package/src/patterns/components/tabs/tabs.twig +0 -29
- package/src/patterns/components/tags/index.js +0 -7
- package/src/patterns/components/tags/tag.behavior.js +0 -16
- package/src/patterns/components/tags/tag.js +0 -159
- package/src/patterns/components/tags/tag.stories.jsx +0 -10
- package/src/patterns/components/tags/tag.twig +0 -30
- package/src/patterns/components/tags/tags.twig +0 -15
- package/src/patterns/components/textarea/index.js +0 -7
- package/src/patterns/components/textarea/textarea.stories.jsx +0 -9
- package/src/patterns/components/textarea/textarea.twig +0 -14
- package/src/patterns/components/textinput/index.js +0 -7
- package/src/patterns/components/textinput/textinput.stories.jsx +0 -10
- package/src/patterns/components/textinput/textinput.twig +0 -14
- package/src/patterns/components/toggle/index.js +0 -7
- package/src/patterns/components/toggle/toggle.stories.jsx +0 -10
- package/src/patterns/components/toggle/toggle.twig +0 -36
- package/src/patterns/components/tooltip/index.js +0 -7
- package/src/patterns/components/tooltip/tooltip.behavior.js +0 -16
- package/src/patterns/components/tooltip/tooltip.js +0 -156
- package/src/patterns/components/tooltip/tooltip.stories.jsx +0 -10
- package/src/patterns/components/tooltip/tooltip.twig +0 -14
- package/src/patterns/components/video/index.js +0 -7
- package/src/patterns/components/video/video.behavior.js +0 -16
- package/src/patterns/components/video/video.js +0 -120
- package/src/patterns/components/video/video.stories.jsx +0 -10
- package/src/patterns/components/video/video.twig +0 -18
- package/src/patterns/components/video/videoplayer.twig +0 -8
- package/src/tokens/exports/_colors.scss +0 -7
- package/src/tokens/exports/_font-families.scss +0 -6
- package/src/tokens/exports/_font-sizes-heading.scss +0 -10
- package/src/tokens/index.scss +0 -7
- package/src/vendorjs/lib.vendor.js +0 -1
- /package/{src/patterns/components/accordion/accordion.wingsuit.yml → dist/components/accordion/accordion.component.yml} +0 -0
- /package/{src/patterns/components/breadcrumb/breadcrumb.wingsuit.yml → dist/components/breadcrumb/breadcrumb.component.yml} +0 -0
- /package/{src/patterns/components/button/button.wingsuit.yml → dist/components/button/button.component.yml} +0 -0
- /package/{src/patterns/components/card/card.wingsuit.yml → dist/components/card/card.component.yml} +0 -0
- /package/{src/patterns/components/card_data/card_data.wingsuit.yml → dist/components/card_data/card_data.component.yml} +0 -0
- /package/{src/patterns/components/card_detail/card_detail.wingsuit.yml → dist/components/card_detail/card_detail.component.yml} +0 -0
- /package/{src/patterns/components/card_factlist/card_factlist.wingsuit.yml → dist/components/card_factlist/card_factlist.component.yml} +0 -0
- /package/{src/patterns/components/card_feature/card_feature.wingsuit.yml → dist/components/card_feature/card_feature.component.yml} +0 -0
- /package/{src/patterns/components/card_multilink/card_multilink.wingsuit.yml → dist/components/card_multilink/card_multilink.component.yml} +0 -0
- /package/{src/patterns/components/card_promo/card_promo.wingsuit.yml → dist/components/card_promo/card_promo.component.yml} +0 -0
- /package/{src/patterns/components/card_stat/card_stat.wingsuit.yml → dist/components/card_stat/card_stat.component.yml} +0 -0
- /package/{src/patterns/components/card_text/card_text.wingsuit.yml → dist/components/card_text/card_text.component.yml} +0 -0
- /package/{src/patterns/components/cardgroup/cardgroup.wingsuit.yml → dist/components/cardgroup/cardgroup.component.yml} +0 -0
- /package/{src/patterns/components/contextmenu/contextmenu.wingsuit.yml → dist/components/contextmenu/contextmenu.component.yml} +0 -0
- /package/{src/patterns/components/form/form.wingsuit.yml → dist/components/form/form.component.yml} +0 -0
- /package/{src/patterns/components/hero/hero.wingsuit.yml → dist/components/hero/hero.component.yml} +0 -0
- /package/{src/patterns/components/herocard/herocard.wingsuit.yml → dist/components/herocard/herocard.component.yml} +0 -0
- /package/{src/patterns/components/icon/icon.wingsuit.yml → dist/components/icon/icon.component.yml} +0 -0
- /package/{src/patterns/components/image/image.wingsuit.yml → dist/components/image/image.component.yml} +0 -0
- /package/{src/patterns/components/link/link.wingsuit.yml → dist/components/link/link.component.yml} +0 -0
- /package/{src/patterns/components/linklist/linklist.wingsuit.yml → dist/components/linklist/linklist.component.yml} +0 -0
- /package/{src/patterns/components/logogrid/logogrid.wingsuit.yml → dist/components/logogrid/logogrid.component.yml} +0 -0
- /package/{src/patterns/components/notification/notification.wingsuit.yml → dist/components/notification/notification.component.yml} +0 -0
- /package/{src/patterns/components/profile/profile.wingsuit.yml → dist/components/profile/profile.component.yml} +0 -0
- /package/{src/patterns/components/richtext/richtext.wingsuit.yml → dist/components/richtext/richtext.component.yml} +0 -0
- /package/{src/patterns/components/socialmedia/socialmedia.wingsuit.yml → dist/components/socialmedia/socialmedia.component.yml} +0 -0
- /package/{src/patterns/components/table/table.wingsuit.yml → dist/components/table/table.component.yml} +0 -0
- /package/{src/patterns/components/tableofcontents/tableofcontents.wingsuit.yml → dist/components/tableofcontents/tableofcontents.component.yml} +0 -0
- /package/{src/patterns/components/tabs/tabs.wingsuit.yml → dist/components/tabs/tabs.component.yml} +0 -0
- /package/{src/patterns/components/tags/tags.wingsuit.yml → dist/components/tags/tags.component.yml} +0 -0
- /package/{src/patterns/components/tooltip/tooltip.wingsuit.yml → dist/components/tooltip/tooltip.component.yml} +0 -0
- /package/{src/patterns/components/video/video.wingsuit.yml → dist/components/video/video.component.yml} +0 -0
- /package/dist/{components/cardgroup → styles/components}/cardgroup.css +0 -0
- /package/dist/{components/container → styles/components}/container.css +0 -0
- /package/dist/{components/credit → styles/components}/credit.css +0 -0
- /package/dist/{components/datepicker → styles/components}/datepicker.css +0 -0
- /package/dist/{components/detailcard → styles/components}/detailcard.css +0 -0
- /package/dist/{components/empty → styles/components}/empty.css +0 -0
- /package/dist/{components/factlistcard → styles/components}/factlistcard.css +0 -0
- /package/dist/{components/form → styles/components}/form.css +0 -0
- /package/dist/{components/hero → styles/components}/hero.css +0 -0
- /package/dist/{components/image → styles/components}/image.css +0 -0
- /package/dist/{components/link → styles/components}/link.css +0 -0
- /package/dist/{components/logogrid → styles/components}/logogrid.css +0 -0
- /package/dist/{components/modal → styles/components}/modal.css +0 -0
- /package/dist/{components/multilinkcard → styles/components}/multilinkcard.css +0 -0
- /package/dist/{components/notification → styles/components}/notification.css +0 -0
- /package/dist/{components/promocard → styles/components}/promocard.css +0 -0
- /package/dist/{components/radio → styles/components}/radio.css +0 -0
- /package/dist/{components/textcard → styles/components}/textcard.css +0 -0
- /package/dist/{components/toggle → styles/components}/toggle.css +0 -0
- /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,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,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,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,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,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,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,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,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>
|