@ilo-org/twig 1.1.6 → 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 +11 -6
- 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.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 +1 -4
- 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/global.css +2 -0
- package/dist/styles/global.css.map +1 -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 +43 -75
- package/README.md +0 -218
- package/dist/components/polyfill/polyfill.twig +0 -10
- package/dist/components/tag/tag.behavior.js +0 -1
- 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-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/accordion → styles/components}/accordion.css +0 -0
- /package/dist/{components/breadcrumb → styles/components}/breadcrumb.css +0 -0
- /package/dist/{components/button → styles/components}/button.css +0 -0
- /package/dist/{components/callout → styles/components}/callout.css +0 -0
- /package/dist/{components/card → styles/components}/card.css +0 -0
- /package/dist/{components/cardgroup → styles/components}/cardgroup.css +0 -0
- /package/dist/{components/checkbox → styles/components}/checkbox.css +0 -0
- /package/dist/{components/container → styles/components}/container.css +0 -0
- /package/dist/{components/contextmenu → styles/components}/contextmenu.css +0 -0
- /package/dist/{components/credit → styles/components}/credit.css +0 -0
- /package/dist/{components/datacard → styles/components}/datacard.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/dropdown → styles/components}/dropdown.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/featurecard → styles/components}/featurecard.css +0 -0
- /package/dist/{components/fieldset → styles/components}/fieldset.css +0 -0
- /package/dist/{components/file-upload → styles/components}/file-upload.css +0 -0
- /package/dist/{components/footer → styles/components}/footer.css +0 -0
- /package/dist/{components/form → styles/components}/form.css +0 -0
- /package/dist/{components/formcontrol → styles/components}/formcontrol.css +0 -0
- /package/dist/{components/heading → styles/components}/heading.css +0 -0
- /package/dist/{components/hero → styles/components}/hero.css +0 -0
- /package/dist/{components/herocard → styles/components}/herocard.css +0 -0
- /package/dist/{components/image → styles/components}/image.css +0 -0
- /package/dist/{components/input → styles/components}/input.css +0 -0
- /package/dist/{components/link → styles/components}/link.css +0 -0
- /package/dist/{components/linklist → styles/components}/linklist.css +0 -0
- /package/dist/{components/list → styles/components}/list.css +0 -0
- /package/dist/{components/loading → styles/components}/loading.css +0 -0
- /package/dist/{components/logo → styles/components}/logo.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/navigation → styles/components}/navigation.css +0 -0
- /package/dist/{components/notification → styles/components}/notification.css +0 -0
- /package/dist/{components/pagination → styles/components}/pagination.css +0 -0
- /package/dist/{components/profile → styles/components}/profile.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/readmore → styles/components}/readmore.css +0 -0
- /package/dist/{components/richtext → styles/components}/richtext.css +0 -0
- /package/dist/{components/searchfield → styles/components}/searchfield.css +0 -0
- /package/dist/{components/socialmedia → styles/components}/socialmedia.css +0 -0
- /package/dist/{components/statcard → styles/components}/statcard.css +0 -0
- /package/dist/{components/table → styles/components}/table.css +0 -0
- /package/dist/{components/tableofcontents → styles/components}/tableofcontents.css +0 -0
- /package/dist/{components/tabs → styles/components}/tabs.css +0 -0
- /package/dist/{components/tag → styles/components}/tag.css +0 -0
- /package/dist/{components/textarea → styles/components}/textarea.css +0 -0
- /package/dist/{components/textcard → styles/components}/textcard.css +0 -0
- /package/dist/{components/textinput → styles/components}/textinput.css +0 -0
- /package/dist/{components/toggle → styles/components}/toggle.css +0 -0
- /package/dist/{components/tooltip → styles/components}/tooltip.css +0 -0
- /package/dist/{components/video → styles/components}/video.css +0 -0
- /package/dist/{global/styles.css → styles/index.css} +0 -0
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Tooltip module which handles showing a bit of markup on mouseover
|
|
3
|
-
*
|
|
4
|
-
* @class Tooltip
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { createPopper, right } from "@popperjs/core";
|
|
8
|
-
|
|
9
|
-
export default class Tooltip {
|
|
10
|
-
/**
|
|
11
|
-
* Tooltip constructor which assigns the element passed into the constructor
|
|
12
|
-
* to the `this.element` property for later reference
|
|
13
|
-
*
|
|
14
|
-
* @param {HTMLElement} element - REQUIRED - the module's container
|
|
15
|
-
*/
|
|
16
|
-
constructor(element) {
|
|
17
|
-
/**
|
|
18
|
-
* Reference to the DOM element that is the root of the component
|
|
19
|
-
* @property {Object}
|
|
20
|
-
*/
|
|
21
|
-
this.element = element;
|
|
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} ReadMore A reference to the instance of the class
|
|
33
|
-
* @chainable
|
|
34
|
-
*/
|
|
35
|
-
init() {
|
|
36
|
-
this.cacheDomReferences().setupHandlers().enable();
|
|
37
|
-
|
|
38
|
-
return this;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Find all necessary DOM elements used in the view and cache them
|
|
43
|
-
*
|
|
44
|
-
* @return {Object} ReadMore A reference to the instance of the class
|
|
45
|
-
* @chainable
|
|
46
|
-
*/
|
|
47
|
-
cacheDomReferences() {
|
|
48
|
-
/**
|
|
49
|
-
* The button for toggling Read More state
|
|
50
|
-
* @type {Object}
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
// enable defaults
|
|
54
|
-
this.prefix = this.element.getAttribute("data-prefix");
|
|
55
|
-
this.tooltip = this.element.querySelector(`.${this.prefix}--tooltip`);
|
|
56
|
-
this.arrow = this.element.querySelector(`.${this.prefix}--tooltip--arrow`);
|
|
57
|
-
this.alignment = this.arrow.getAttribute("data-alignment");
|
|
58
|
-
this.placement = this.tooltip.getAttribute("data-placement");
|
|
59
|
-
|
|
60
|
-
return this;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Bind event handlers with the proper context of `this`.
|
|
65
|
-
*
|
|
66
|
-
* @return {Object} Tooltip A reference to the current instance of the class
|
|
67
|
-
* @chainable
|
|
68
|
-
*/
|
|
69
|
-
setupHandlers() {
|
|
70
|
-
this.onMouseOver = this.handleOnMouseOver.bind(this);
|
|
71
|
-
this.onFocus = this.handleOnMouseOver.bind(this);
|
|
72
|
-
this.onMouseOut = this.handleOnMouseOut.bind(this);
|
|
73
|
-
this.onBlur = this.handleOnMouseOut.bind(this);
|
|
74
|
-
|
|
75
|
-
return this;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Creates event listeners to enable interaction with view
|
|
80
|
-
*
|
|
81
|
-
* @return {Object} ReadMore A reference to the instance of the class
|
|
82
|
-
* @chainable
|
|
83
|
-
*/
|
|
84
|
-
enable() {
|
|
85
|
-
this.element.addEventListener("mouseover", this.onMouseOver);
|
|
86
|
-
this.element.addEventListener("focus", this.onMouseOver);
|
|
87
|
-
this.element.addEventListener("mouseout", this.onMouseOut);
|
|
88
|
-
this.element.addEventListener("blur", this.onMouseOut);
|
|
89
|
-
return this;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
handleOnMouseOver(e) {
|
|
93
|
-
const target = e.currentTarget;
|
|
94
|
-
|
|
95
|
-
if (target != null) {
|
|
96
|
-
const rect = target.getBoundingClientRect();
|
|
97
|
-
this.tooltip.classList.add(`${this.prefix}--tooltip--visible`);
|
|
98
|
-
this.tooltip.classList.add(`${this.prefix}--tooltip--fade`);
|
|
99
|
-
this.postMouseOver(rect);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return this;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
handleOnMouseOut() {
|
|
106
|
-
setTimeout(() => {
|
|
107
|
-
this.tooltip.classList.remove(`${this.prefix}--tooltip--fade`);
|
|
108
|
-
this.tooltip.classList.remove(`${this.prefix}--tooltip--visible`);
|
|
109
|
-
}, 200);
|
|
110
|
-
|
|
111
|
-
return this;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
postMouseOver(hoverRect) {
|
|
115
|
-
const ttNode = this.tooltip;
|
|
116
|
-
this.setMaxWidthAndClass(this.tooltip);
|
|
117
|
-
if (ttNode != null) {
|
|
118
|
-
// Create Popper instance if not already existing
|
|
119
|
-
if (!this.popper) {
|
|
120
|
-
this.popper = createPopper(this.element, this.tooltip, {
|
|
121
|
-
// Set tooltip priority to be placed on top first
|
|
122
|
-
placement: "top",
|
|
123
|
-
modifiers: [
|
|
124
|
-
"flip", // Changes the side of the tooltip if there isnt space
|
|
125
|
-
"preventOverflow",
|
|
126
|
-
{
|
|
127
|
-
name: "offset",
|
|
128
|
-
options: {
|
|
129
|
-
offset: [0, 12], // Adjust offset as needed
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// Update Popper position
|
|
137
|
-
this.popper.update();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return this;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Set max width and add class based on content length
|
|
145
|
-
*
|
|
146
|
-
* @param {string} content - Tooltip content
|
|
147
|
-
*/
|
|
148
|
-
setMaxWidthAndClass(tooltip) {
|
|
149
|
-
const tooltipText = tooltip.textContent || tooltip.innerText;
|
|
150
|
-
const textLength = tooltipText.trim().length;
|
|
151
|
-
|
|
152
|
-
if (textLength > 50) {
|
|
153
|
-
this.tooltip.classList.add(`${this.prefix}--tooltip--long`);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{# tooltip.twig #}
|
|
2
|
-
|
|
3
|
-
{% set icontheme = icontheme|default("light") %}
|
|
4
|
-
{% set theme = theme|default("dark") %}
|
|
5
|
-
|
|
6
|
-
<div class="{{prefix}}--tooltip--wrapper {% if icon|boolval %} {{prefix}}--tooltip--wrapper__icon {{prefix}}--tooltip--wrapper__icon__theme__{{icontheme}} {% endif %}" role="status" aria-live="polite" aria-relevant="additions" data-loadcomponent="Tooltip" data-prefix="{{prefix}}">
|
|
7
|
-
{% if not icon|boolval %}
|
|
8
|
-
{{ children }}
|
|
9
|
-
{% endif %}
|
|
10
|
-
<span data-id={{tooltipId}} id="tooltip" role="tooltip" class="{{prefix}}--tooltip {{prefix}}--tooltip--{{theme}}" data-alignment="left" >
|
|
11
|
-
<span data-popper-arrow class="{{prefix}}--tooltip--arrow {{prefix}}--tooltip--arrow--placement-negative" data-placement="negative" role="presentation"></span>
|
|
12
|
-
{{label}}
|
|
13
|
-
</span>
|
|
14
|
-
</div>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Video from "./video";
|
|
2
|
-
|
|
3
|
-
Drupal.behaviors.media = {
|
|
4
|
-
attach() {
|
|
5
|
-
Array.prototype.forEach.call(
|
|
6
|
-
document.querySelectorAll(`[data-loadcomponent="Video"]`),
|
|
7
|
-
(element) => {
|
|
8
|
-
if (!element.dataset.jsProcessed) {
|
|
9
|
-
// eslint-disable-next-line no-console
|
|
10
|
-
new Video(element);
|
|
11
|
-
element.dataset.jsProcessed = true;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
},
|
|
16
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import "videojs-youtube";
|
|
2
|
-
import videojs from "video.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The Video module which handles rendering field labels inline on a form.
|
|
6
|
-
*
|
|
7
|
-
* @class Video
|
|
8
|
-
*/
|
|
9
|
-
export default class Video {
|
|
10
|
-
/**
|
|
11
|
-
* Video constructor which assigns the element passed into the constructor
|
|
12
|
-
* to the `this.element` property for later reference
|
|
13
|
-
*
|
|
14
|
-
* @param {HTMLElement} element - REQUIRED - the module's container
|
|
15
|
-
*/
|
|
16
|
-
constructor(element) {
|
|
17
|
-
/**
|
|
18
|
-
* Reference to the DOM element that is the root of the component
|
|
19
|
-
* @property {Object}
|
|
20
|
-
*/
|
|
21
|
-
this.element = element;
|
|
22
|
-
|
|
23
|
-
// get the theme prefix
|
|
24
|
-
this.prefix = this.element.dataset.prefix;
|
|
25
|
-
this.controlsprefix = `${this.prefix}--video--controls`;
|
|
26
|
-
|
|
27
|
-
// Initialize the view
|
|
28
|
-
this.init();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Initializes the view by calling the functions to
|
|
33
|
-
* create DOM references, setup event handlers and
|
|
34
|
-
* then create the event listeners
|
|
35
|
-
*
|
|
36
|
-
* @return {Object} ReadMore A reference to the instance of the class
|
|
37
|
-
* @chainable
|
|
38
|
-
*/
|
|
39
|
-
init() {
|
|
40
|
-
this.cacheDomReferences().start().setupHandlers().enable();
|
|
41
|
-
|
|
42
|
-
return this;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Find all necessary DOM elements used in the view and cache them
|
|
47
|
-
*
|
|
48
|
-
* @return {Object} ReadMore A reference to the instance of the class
|
|
49
|
-
* @chainable
|
|
50
|
-
*/
|
|
51
|
-
cacheDomReferences() {
|
|
52
|
-
/**
|
|
53
|
-
* The button for toggling Read More state
|
|
54
|
-
* @type {Object}
|
|
55
|
-
*/
|
|
56
|
-
this.VideoElement = this.element.querySelector(
|
|
57
|
-
`.${this.prefix}--video--element`
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
return this;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Bind event handlers with the proper context of `this`.
|
|
65
|
-
*
|
|
66
|
-
* @return {Object} Video A reference to the current instance of the class
|
|
67
|
-
* @chainable
|
|
68
|
-
*/
|
|
69
|
-
setupHandlers() {
|
|
70
|
-
return this;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Creates event listeners to enable interaction with view
|
|
75
|
-
*
|
|
76
|
-
* @return {Object} Video A reference to the instance of the class
|
|
77
|
-
* @chainable
|
|
78
|
-
*/
|
|
79
|
-
enable() {
|
|
80
|
-
return this;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Starts up videojs
|
|
85
|
-
*
|
|
86
|
-
* @return {Object} Video A reference to the instance of the class
|
|
87
|
-
* @chainable
|
|
88
|
-
*/
|
|
89
|
-
start() {
|
|
90
|
-
this.player = videojs(this.VideoElement, {
|
|
91
|
-
autoplay: false,
|
|
92
|
-
controls: true,
|
|
93
|
-
preload: "auto",
|
|
94
|
-
bigPlayButton: false,
|
|
95
|
-
controlBar: {
|
|
96
|
-
descriptionsButton: false,
|
|
97
|
-
playbackRateMenuButton: false,
|
|
98
|
-
chaptersButton: false,
|
|
99
|
-
audioTrackButton: false,
|
|
100
|
-
pictureInPictureToggle: false,
|
|
101
|
-
subsCapsButton: false,
|
|
102
|
-
seekToLive: false,
|
|
103
|
-
liveDisplay: false,
|
|
104
|
-
},
|
|
105
|
-
textTrackDisplay: false,
|
|
106
|
-
liveTracker: false,
|
|
107
|
-
errorDisplay: false,
|
|
108
|
-
textTrackSettings: false,
|
|
109
|
-
resizeManager: false,
|
|
110
|
-
sources: [
|
|
111
|
-
{ type: this.element.dataset.vjsType, src: this.element.dataset.src },
|
|
112
|
-
],
|
|
113
|
-
dataSetup: {
|
|
114
|
-
techOrder: ["youtube"],
|
|
115
|
-
},
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
return this;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{#
|
|
2
|
-
VIDEO COMPONENT
|
|
3
|
-
#}
|
|
4
|
-
|
|
5
|
-
<figure class="{{prefix}}--video" data-prefix="{{prefix}}">
|
|
6
|
-
<div class="{{prefix}}--video--wrapper">
|
|
7
|
-
{% include "@components/video/videoplayer.twig" with {
|
|
8
|
-
alt: alt,
|
|
9
|
-
controls: video.controls,
|
|
10
|
-
prefix: prefix,
|
|
11
|
-
src: video.src,
|
|
12
|
-
tracks: video.tracks,
|
|
13
|
-
url: url,
|
|
14
|
-
vjsType: vjsType
|
|
15
|
-
} %}
|
|
16
|
-
</div>
|
|
17
|
-
<figcaption class="{{prefix}}--video--caption">{{caption}}</figcaption>
|
|
18
|
-
</figure>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{#
|
|
2
|
-
VIDEO PLAYER SUB-COMPONENT
|
|
3
|
-
#}
|
|
4
|
-
{% set poster = url|last %}
|
|
5
|
-
<div class="{{prefix}}--videoplayer" data-loadcomponent="Video" data-prefix="{{prefix}}" data-src="{{src}}" data-vjs-type="{{vjsType}}">
|
|
6
|
-
<video class="{{prefix}}--video--element" poster="{{poster.src}}">
|
|
7
|
-
</video>
|
|
8
|
-
</div>
|
package/src/tokens/index.scss
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "videojs";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{src/patterns/components/card/card.wingsuit.yml → dist/components/card/card.component.yml}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{src/patterns/components/form/form.wingsuit.yml → dist/components/form/form.component.yml}
RENAMED
|
File without changes
|
/package/{src/patterns/components/hero/hero.wingsuit.yml → dist/components/hero/hero.component.yml}
RENAMED
|
File without changes
|
|
File without changes
|
/package/{src/patterns/components/icon/icon.wingsuit.yml → dist/components/icon/icon.component.yml}
RENAMED
|
File without changes
|
|
File without changes
|
/package/{src/patterns/components/link/link.wingsuit.yml → dist/components/link/link.component.yml}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{src/patterns/components/tabs/tabs.wingsuit.yml → dist/components/tabs/tabs.component.yml}
RENAMED
|
File without changes
|
/package/{src/patterns/components/tags/tags.wingsuit.yml → dist/components/tags/tags.component.yml}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|