mp-design-system 1.2.63 → 1.2.65
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +35 -29
- package/dist/build/js/app.js +1 -22
- package/dist/build/scss/library.css +1 -1
- package/dist/build/scss/main.css +1 -1
- package/package.json +35 -46
- package/src/_data/components.js +0 -104
- package/src/_data/config.js +0 -14
- package/src/_data/helpers.js +0 -6
- package/src/_headers +0 -9
- package/src/_includes/components/accordion/accordion.config.js +0 -28
- package/src/_includes/components/accordion/accordion.md +0 -15
- package/src/_includes/components/accordion/accordion.njk +0 -10
- package/src/_includes/components/accordion/accordion.scss +0 -54
- package/src/_includes/components/accordion/macro.njk +0 -5
- package/src/_includes/components/alert/alert.config.js +0 -65
- package/src/_includes/components/alert/alert.njk +0 -27
- package/src/_includes/components/alert/alert.scss +0 -80
- package/src/_includes/components/alert/macro.njk +0 -5
- package/src/_includes/components/back-to-top/back-to-top.config.js +0 -10
- package/src/_includes/components/back-to-top/back-to-top.njk +0 -7
- package/src/_includes/components/back-to-top/back-to-top.scss +0 -22
- package/src/_includes/components/back-to-top/macro.njk +0 -5
- package/src/_includes/components/breadcrumb/breadcrumb.config.js +0 -20
- package/src/_includes/components/breadcrumb/breadcrumb.njk +0 -19
- package/src/_includes/components/breadcrumb/breadcrumb.scss +0 -69
- package/src/_includes/components/breadcrumb/macro.njk +0 -5
- package/src/_includes/components/button/button.config.js +0 -89
- package/src/_includes/components/button/button.njk +0 -38
- package/src/_includes/components/button/button.scss +0 -178
- package/src/_includes/components/button/macro.njk +0 -5
- package/src/_includes/components/campaign/campaign.config.js +0 -68
- package/src/_includes/components/campaign/campaign.njk +0 -26
- package/src/_includes/components/campaign/campaign.scss +0 -108
- package/src/_includes/components/campaign/macro.njk +0 -5
- package/src/_includes/components/card/card.config.js +0 -1058
- package/src/_includes/components/card/card.njk +0 -206
- package/src/_includes/components/card/card.scss +0 -508
- package/src/_includes/components/card/existing-customer-card.config.js +0 -51
- package/src/_includes/components/card/existing-customer-card.njk +0 -40
- package/src/_includes/components/card/existing-customer-card.scss +0 -100
- package/src/_includes/components/card/industry-card.config.js +0 -51
- package/src/_includes/components/card/industry-card.njk +0 -34
- package/src/_includes/components/card/industry-card.scss +0 -85
- package/src/_includes/components/card/macro.njk +0 -29
- package/src/_includes/components/card/measurement-type-card.config.js +0 -35
- package/src/_includes/components/card/measurement-type-card.njk +0 -35
- package/src/_includes/components/card/measurement-type-card.scss +0 -56
- package/src/_includes/components/card/product-card.config.js +0 -91
- package/src/_includes/components/card/product-card.njk +0 -58
- package/src/_includes/components/card/product-card.scss +0 -88
- package/src/_includes/components/card/search-result-card.config.js +0 -29
- package/src/_includes/components/card/search-result-card.njk +0 -33
- package/src/_includes/components/card/search-result-card.scss +0 -48
- package/src/_includes/components/card/technology-card.config.js +0 -35
- package/src/_includes/components/card/technology-card.njk +0 -35
- package/src/_includes/components/card/technology-card.scss +0 -56
- package/src/_includes/components/card-new/card-new.config.js +0 -95
- package/src/_includes/components/card-new/card-new.md +0 -0
- package/src/_includes/components/card-new/card-new.njk +0 -169
- package/src/_includes/components/card-new/card-new.scss +0 -156
- package/src/_includes/components/card-new/macro.njk +0 -5
- package/src/_includes/components/comparison-table/comparison-table.config.js +0 -92
- package/src/_includes/components/comparison-table/comparison-table.njk +0 -76
- package/src/_includes/components/comparison-table/comparison-table.scss +0 -187
- package/src/_includes/components/comparison-table/macro.njk +0 -5
- package/src/_includes/components/component/categories.js +0 -5
- package/src/_includes/components/component/component.njk +0 -71
- package/src/_includes/components/component/preview-card-example.njk +0 -347
- package/src/_includes/components/component/preview-cards-three-alt.njk +0 -3
- package/src/_includes/components/component/preview-cards-three.njk +0 -3
- package/src/_includes/components/component/preview-cards-two.njk +0 -3
- package/src/_includes/components/component/preview-content-width.njk +0 -5
- package/src/_includes/components/component/preview-default.njk +0 -3
- package/src/_includes/components/component/preview-fixed-width.njk +0 -5
- package/src/_includes/components/component/preview-form.njk +0 -3
- package/src/_includes/components/component/preview-icons.njk +0 -3
- package/src/_includes/components/component/preview-sidebar.njk +0 -5
- package/src/_includes/components/embed/embed.njk +0 -11
- package/src/_includes/components/embed/embed.scss +0 -17
- package/src/_includes/components/embed/macro.njk +0 -9
- package/src/_includes/components/embed/youtube.config.js +0 -19
- package/src/_includes/components/embed/youtube.njk +0 -5
- package/src/_includes/components/event-card/event-card.config.js +0 -108
- package/src/_includes/components/event-card/event-card.njk +0 -1
- package/src/_includes/components/event-card/event-card.scss +0 -49
- package/src/_includes/components/event-card/macro.njk +0 -5
- package/src/_includes/components/eyebrow/eyebrow.config.js +0 -84
- package/src/_includes/components/eyebrow/eyebrow.njk +0 -24
- package/src/_includes/components/eyebrow/eyebrow.scss +0 -71
- package/src/_includes/components/eyebrow/macro.njk +0 -5
- package/src/_includes/components/facet/facet.config.js +0 -110
- package/src/_includes/components/facet/facet.njk +0 -25
- package/src/_includes/components/facet/facet.scss +0 -49
- package/src/_includes/components/facet/macro.njk +0 -5
- package/src/_includes/components/featured-article-card/featured-article-card.config.js +0 -32
- package/src/_includes/components/featured-article-card/featured-article-card.njk +0 -24
- package/src/_includes/components/featured-article-card/featured-article-card.scss +0 -34
- package/src/_includes/components/featured-article-card/macro.njk +0 -5
- package/src/_includes/components/features-table/features-table.config.js +0 -137
- package/src/_includes/components/features-table/features-table.njk +0 -364
- package/src/_includes/components/features-table/features-table.scss +0 -96
- package/src/_includes/components/features-table/macro.njk +0 -5
- package/src/_includes/components/filter-search/filter-search.config.js +0 -16
- package/src/_includes/components/filter-search/filter-search.njk +0 -11
- package/src/_includes/components/filter-search/filter-search.scss +0 -33
- package/src/_includes/components/filter-search/macro.njk +0 -5
- package/src/_includes/components/footer/footer.config.js +0 -7
- package/src/_includes/components/footer/footer.njk +0 -81
- package/src/_includes/components/footer/footer.scss +0 -127
- package/src/_includes/components/footer/macro.njk +0 -5
- package/src/_includes/components/gallery/gallery.config.js +0 -55
- package/src/_includes/components/gallery/gallery.md +0 -1
- package/src/_includes/components/gallery/gallery.njk +0 -51
- package/src/_includes/components/gallery/gallery.scss +0 -54
- package/src/_includes/components/gallery/macro.njk +0 -5
- package/src/_includes/components/header/header.config.js +0 -38
- package/src/_includes/components/header/header.md +0 -4
- package/src/_includes/components/header/header.njk +0 -111
- package/src/_includes/components/header/header.scss +0 -273
- package/src/_includes/components/header/macro.njk +0 -5
- package/src/_includes/components/hero/hero.config.js +0 -144
- package/src/_includes/components/hero/hero.njk +0 -109
- package/src/_includes/components/hero/hero.scss +0 -356
- package/src/_includes/components/hero/macro.njk +0 -5
- package/src/_includes/components/hotspot-image/hotspot-image.config.js +0 -55
- package/src/_includes/components/hotspot-image/hotspot-image.njk +0 -41
- package/src/_includes/components/hotspot-image/hotspot-image.scss +0 -103
- package/src/_includes/components/hotspot-image/macro.njk +0 -5
- package/src/_includes/components/icon/icon.config.js +0 -18
- package/src/_includes/components/icon/icon.md +0 -1
- package/src/_includes/components/icon/icon.njk +0 -13
- package/src/_includes/components/icon/icon.scss +0 -6
- package/src/_includes/components/icon/macro.njk +0 -5
- package/src/_includes/components/input/checkbox.config.js +0 -41
- package/src/_includes/components/input/checkbox.njk +0 -2
- package/src/_includes/components/input/input.config.js +0 -67
- package/src/_includes/components/input/input.njk +0 -15
- package/src/_includes/components/input/input.scss +0 -136
- package/src/_includes/components/input/macro.njk +0 -25
- package/src/_includes/components/input/radio.config.js +0 -41
- package/src/_includes/components/input/radio.njk +0 -2
- package/src/_includes/components/input/radio.scss +0 -143
- package/src/_includes/components/input/select.config.js +0 -70
- package/src/_includes/components/input/select.njk +0 -13
- package/src/_includes/components/input/textarea.config.js +0 -51
- package/src/_includes/components/input/textarea.njk +0 -4
- package/src/_includes/components/input/toggle.config.js +0 -41
- package/src/_includes/components/input/toggle.njk +0 -5
- package/src/_includes/components/input/toggle.scss +0 -75
- package/src/_includes/components/internal-nav/internal-nav.config.js +0 -41
- package/src/_includes/components/internal-nav/internal-nav.njk +0 -24
- package/src/_includes/components/internal-nav/internal-nav.scss +0 -74
- package/src/_includes/components/internal-nav/macro.njk +0 -5
- package/src/_includes/components/meta-box/macro.njk +0 -5
- package/src/_includes/components/meta-box/meta-box.config.js +0 -74
- package/src/_includes/components/meta-box/meta-box.njk +0 -36
- package/src/_includes/components/meta-box/meta-box.scss +0 -10
- package/src/_includes/components/off-canvas/macro.njk +0 -5
- package/src/_includes/components/off-canvas/off-canvas.config.js +0 -28
- package/src/_includes/components/off-canvas/off-canvas.njk +0 -28
- package/src/_includes/components/off-canvas/off-canvas.scss +0 -102
- package/src/_includes/components/option-list/macro.njk +0 -5
- package/src/_includes/components/option-list/option-list.config.js +0 -51
- package/src/_includes/components/option-list/option-list.njk +0 -10
- package/src/_includes/components/option-list/option-list.scss +0 -39
- package/src/_includes/components/post-meta/macro.njk +0 -5
- package/src/_includes/components/post-meta/post-meta.config.js +0 -44
- package/src/_includes/components/post-meta/post-meta.njk +0 -16
- package/src/_includes/components/post-meta/post-meta.scss +0 -7
- package/src/_includes/components/product-card/macro.njk +0 -5
- package/src/_includes/components/product-card/product-card.config.js +0 -84
- package/src/_includes/components/product-card/product-card.njk +0 -1
- package/src/_includes/components/product-card/product-card.scss +0 -36
- package/src/_includes/components/product-signpost/macro.njk +0 -3
- package/src/_includes/components/product-signpost/product-signpost.config.js +0 -43
- package/src/_includes/components/product-signpost/product-signpost.njk +0 -16
- package/src/_includes/components/product-signpost/product-signpost.scss +0 -61
- package/src/_includes/components/prose/macro.njk +0 -11
- package/src/_includes/components/prose/prose.config.js +0 -65
- package/src/_includes/components/prose/prose.md +0 -1
- package/src/_includes/components/prose/prose.njk +0 -17
- package/src/_includes/components/quote/macro.njk +0 -5
- package/src/_includes/components/quote/quote.config.js +0 -19
- package/src/_includes/components/quote/quote.njk +0 -9
- package/src/_includes/components/quote/quote.scss +0 -51
- package/src/_includes/components/resource-card/macro.njk +0 -5
- package/src/_includes/components/resource-card/resource-card.config.js +0 -59
- package/src/_includes/components/resource-card/resource-card.njk +0 -1
- package/src/_includes/components/resource-card/resource-card.scss +0 -0
- package/src/_includes/components/scroll-spy/macro.njk +0 -5
- package/src/_includes/components/scroll-spy/scroll-spy.config.js +0 -24
- package/src/_includes/components/scroll-spy/scroll-spy.md +0 -3
- package/src/_includes/components/scroll-spy/scroll-spy.njk +0 -5
- package/src/_includes/components/scroll-spy/scroll-spy.scss +0 -54
- package/src/_includes/components/series/macro.njk +0 -5
- package/src/_includes/components/series/series.config.js +0 -35
- package/src/_includes/components/series/series.njk +0 -15
- package/src/_includes/components/series/series.scss +0 -20
- package/src/_includes/components/signpost/macro.njk +0 -5
- package/src/_includes/components/signpost/signpost.config.js +0 -36
- package/src/_includes/components/signpost/signpost.njk +0 -21
- package/src/_includes/components/signpost/signpost.scss +0 -66
- package/src/_includes/components/slat/slat.config.js +0 -59
- package/src/_includes/components/slat/slat.njk +0 -15
- package/src/_includes/components/slat/slat.scss +0 -53
- package/src/_includes/components/table/macro.njk +0 -11
- package/src/_includes/components/table/table.config.js +0 -68
- package/src/_includes/components/table/table.md +0 -16
- package/src/_includes/components/table/table.njk +0 -28
- package/src/_includes/components/table/table.scss +0 -157
- package/src/_includes/components/tabs/macro.njk +0 -9
- package/src/_includes/components/tabs/tabs-radio.config.js +0 -32
- package/src/_includes/components/tabs/tabs-radio.njk +0 -9
- package/src/_includes/components/tabs/tabs.config.js +0 -57
- package/src/_includes/components/tabs/tabs.njk +0 -17
- package/src/_includes/components/tabs/tabs.scss +0 -105
- package/src/_includes/components/twi/macro.njk +0 -5
- package/src/_includes/components/twi/twi.config.js +0 -46
- package/src/_includes/components/twi/twi.md +0 -1
- package/src/_includes/components/twi/twi.njk +0 -30
- package/src/_includes/components/twi/twi.scss +0 -44
- package/src/_includes/components/usp/macro.njk +0 -5
- package/src/_includes/components/usp/usp.config.js +0 -55
- package/src/_includes/components/usp/usp.md +0 -101
- package/src/_includes/components/usp/usp.njk +0 -42
- package/src/_includes/components/usp/usp.scss +0 -60
- package/src/_includes/content-page.njk +0 -53
- package/src/_includes/includes/color-swatches.njk +0 -260
- package/src/_includes/includes/related-events.njk +0 -60
- package/src/_includes/includes/resources.njk +0 -78
- package/src/_includes/includes/system-footer.njk +0 -30
- package/src/_includes/includes/system-header.njk +0 -30
- package/src/_includes/includes/system-scripts.njk +0 -88
- package/src/_includes/layout.njk +0 -69
- package/src/_includes/library-navigation/brand-nav.njk +0 -67
- package/src/_includes/library-navigation/components-nav.njk +0 -88
- package/src/_includes/library-navigation/content-nav.njk +0 -53
- package/src/_includes/library-navigation/system-nav.njk +0 -9
- package/src/_includes/library.njk +0 -5
- package/src/_includes/navigation/blog.njk +0 -16
- package/src/_includes/navigation/corporate.njk +0 -25
- package/src/_includes/navigation/store.njk +0 -29
- package/src/_includes/page.njk +0 -14
- package/src/_includes/patterns-page.njk +0 -41
- package/src/_includes/system-home-page.njk +0 -28
- package/src/_includes/system-page.njk +0 -27
- package/src/_includes/system.njk +0 -39
- package/src/_redirects +0 -13
- package/src/assets/fonts/Inter-Bold.woff +0 -0
- package/src/assets/fonts/Inter-Bold.woff2 +0 -0
- package/src/assets/fonts/Inter-Regular.woff +0 -0
- package/src/assets/fonts/Inter-Regular.woff2 +0 -0
- package/src/assets/fonts/Inter-SemiBold.woff +0 -0
- package/src/assets/fonts/Inter-SemiBold.woff2 +0 -0
- package/src/assets/js/app.js +0 -40
- package/src/assets/js/imports/accordion.js +0 -17
- package/src/assets/js/imports/carousel.js +0 -22
- package/src/assets/js/imports/clear-form.js +0 -27
- package/src/assets/js/imports/comparison.js +0 -64
- package/src/assets/js/imports/facet.js +0 -23
- package/src/assets/js/imports/gallery.js +0 -87
- package/src/assets/js/imports/hero-pattern.js +0 -94
- package/src/assets/js/imports/hero-video.js +0 -53
- package/src/assets/js/imports/hotspot-image.js +0 -91
- package/src/assets/js/imports/internal-nav.js +0 -41
- package/src/assets/js/imports/off-canvas.js +0 -219
- package/src/assets/js/imports/responsive-table.js +0 -30
- package/src/assets/js/imports/scroll-spy.js +0 -46
- package/src/assets/js/imports/scrollbar-width.js +0 -15
- package/src/assets/js/imports/tabs.js +0 -58
- package/src/assets/js/imports/utilities.js +0 -31
- package/src/assets/scss/components/form.scss +0 -306
- package/src/assets/scss/components/headings.scss +0 -68
- package/src/assets/scss/components/index.scss +0 -52
- package/src/assets/scss/components/lightbox.scss +0 -64
- package/src/assets/scss/components/product-finder.scss +0 -75
- package/src/assets/scss/elements/index.scss +0 -2
- package/src/assets/scss/elements/reset.scss +0 -139
- package/src/assets/scss/elements/typography.scss +0 -25
- package/src/assets/scss/foundations/animation.scss +0 -4
- package/src/assets/scss/foundations/colour.scss +0 -85
- package/src/assets/scss/foundations/index.scss +0 -4
- package/src/assets/scss/foundations/space.scss +0 -57
- package/src/assets/scss/foundations/typography.scss +0 -159
- package/src/assets/scss/library.scss +0 -672
- package/src/assets/scss/main.scss +0 -6
- package/src/assets/scss/objects/button-wrap.scss +0 -18
- package/src/assets/scss/objects/clickable-parent.scss +0 -3
- package/src/assets/scss/objects/grid.scss +0 -329
- package/src/assets/scss/objects/index.scss +0 -4
- package/src/assets/scss/objects/prose.scss +0 -164
- package/src/assets/scss/objects/syntax-highlighting.scss +0 -211
- package/src/assets/scss/tools/breakout.scss +0 -17
- package/src/assets/scss/tools/cutoff.scss +0 -50
- package/src/assets/scss/tools/index.scss +0 -172
- package/src/assets/scss/utilities/colour.scss +0 -10
- package/src/assets/scss/utilities/disabled.scss +0 -8
- package/src/assets/scss/utilities/display.scss +0 -156
- package/src/assets/scss/utilities/divider.scss +0 -6
- package/src/assets/scss/utilities/ellipsis.scss +0 -7
- package/src/assets/scss/utilities/flex.scss +0 -47
- package/src/assets/scss/utilities/flow.scss +0 -69
- package/src/assets/scss/utilities/gap.scss +0 -3
- package/src/assets/scss/utilities/hr.scss +0 -23
- package/src/assets/scss/utilities/index.scss +0 -18
- package/src/assets/scss/utilities/link.scss +0 -26
- package/src/assets/scss/utilities/scroll-shadows.scss +0 -69
- package/src/assets/scss/utilities/space.scss +0 -370
- package/src/assets/scss/utilities/typography.scss +0 -35
- package/src/assets/scss/utilities/wrap.scss +0 -24
- package/src/assets/svg/arc.svg +0 -1
- package/src/assets/svg/concentric.svg +0 -1
- package/src/assets/svg/crystal.svg +0 -1
- package/src/assets/svg/dots-pattern.svg +0 -1
- package/src/brand/colors.njk +0 -69
- package/src/brand/illustration.md +0 -50
- package/src/brand/images.md +0 -101
- package/src/brand/index.njk +0 -147
- package/src/brand/logo.md +0 -107
- package/src/brand/patterns.njk +0 -49
- package/src/brand/requirements.md +0 -98
- package/src/brand/resources.njk +0 -75
- package/src/brand/typography.md +0 -101
- package/src/components/colour.njk +0 -327
- package/src/components/creating-a-component.md +0 -163
- package/src/components/css.md +0 -65
- package/src/components/flow.njk +0 -131
- package/src/components/grid/generic.njk +0 -99
- package/src/components/grid/index.njk +0 -86
- package/src/components/grid/layout.njk +0 -56
- package/src/components/grid/wrap.njk +0 -20
- package/src/components/iconography.njk +0 -92
- package/src/components/index.njk +0 -65
- package/src/components/installation.md +0 -61
- package/src/components/publishing-the-system.md +0 -25
- package/src/components/space.njk +0 -191
- package/src/components/typography.njk +0 -135
- package/src/components/utilities.md +0 -182
- package/src/components-full-pages.njk +0 -24
- package/src/components-pages.njk +0 -103
- package/src/content/and-so/please-write-responsibly.md +0 -15
- package/src/content/and-so/sitting-down.md +0 -13
- package/src/content/big-ideas.md +0 -63
- package/src/content/boilerplate.md +0 -33
- package/src/content/elevator-pitch.md +0 -33
- package/src/content/index.njk +0 -126
- package/src/content/our-voice/1-big-picture.md +0 -37
- package/src/content/our-voice/2-whats-most-important.md +0 -38
- package/src/content/our-voice/3-write-like-we-speak.md +0 -50
- package/src/content/our-voice/4-write-to-be-skimmed.md +0 -50
- package/src/content/our-voice/5-active-sentences.md +0 -73
- package/src/content/our-voice/6-add-energy.md +0 -34
- package/src/content/our-voice/7-small-surprises.md +0 -44
- package/src/content/our-voice/seven-steps.md +0 -21
- package/src/content/our-voice/which-techniques-when.md +0 -39
- package/src/content/real-life-examples/01-who-we-are-boilerplate.md +0 -39
- package/src/content/real-life-examples/02-event-announcement.md +0 -38
- package/src/content/real-life-examples/03-customer-support-letter.md +0 -58
- package/src/content/real-life-examples/04-delay-in-shipment-letter.md +0 -62
- package/src/content/real-life-examples/05-overview-events-training.md +0 -41
- package/src/content/real-life-examples/06-digital-product-description.md +0 -40
- package/src/content/real-life-examples/07-recruitment.md +0 -42
- package/src/content/real-life-examples/08-industry-sector-1.md +0 -43
- package/src/content/real-life-examples/09-industry-sector-2.md +0 -47
- package/src/content/real-life-examples/10-website-information.md +0 -50
- package/src/content/real-life-examples/11-internal-update.md +0 -37
- package/src/content/real-life-examples/12-value-proposition.md +0 -44
- package/src/index.njk +0 -152
- package/src/patterns/form.njk +0 -349
- package/src/patterns/grid-of-cards.njk +0 -66
- package/src/patterns/index.njk +0 -19
- package/src/patterns/mp-form.njk +0 -111
- package/src/patterns/usps.njk +0 -149
- package/src/prototype/blog-post.njk +0 -123
- package/src/prototype/blog.njk +0 -168
- package/src/prototype/card-test.njk +0 -147
- package/src/prototype/creating-a-page.njk +0 -74
- package/src/prototype/events-hub.njk +0 -520
- package/src/prototype/form-altcha.njk +0 -705
- package/src/prototype/form-cloudflare.njk +0 -688
- package/src/prototype/form-hcaptcha.njk +0 -693
- package/src/prototype/home.njk +0 -24
- package/src/prototype/index.njk +0 -893
- package/src/prototype/oma.njk +0 -167
- package/src/prototype/product.njk +0 -480
- package/src/prototype/products.njk +0 -163
- package/src/prototype/range.njk +0 -263
- package/src/prototype/request-a-quote.njk +0 -147
- package/src/prototype/sections.njk +0 -295
- package/src/prototype/spline.njk +0 -16
- package/src/prototype/thanks.njk +0 -31
- package/src/prototype/webinar.njk +0 -118
- package/src/prototype/webinars-3-2-1.njk +0 -397
- package/src/prototype/webinars.njk +0 -405
- package/src/quickstart.md +0 -41
- package/src/robots.txt +0 -5
- package/src/static/adobe/MP Franklin colour swatches.ai +0 -914
- package/src/static/img/aeris.jpg +0 -0
- package/src/static/img/article-1.jpg +0 -0
- package/src/static/img/article-2.jpg +0 -0
- package/src/static/img/blog-image-1.jpg +0 -0
- package/src/static/img/blog-page-image-1.jpg +0 -0
- package/src/static/img/blog-page-image-2.jpg +0 -0
- package/src/static/img/blog-page-image-3.jpg +0 -0
- package/src/static/img/blog-page-image-4.jpg +0 -0
- package/src/static/img/blog-page-image-5.jpg +0 -0
- package/src/static/img/blog-page-image-6.jpg +0 -0
- package/src/static/img/campaign.jpg +0 -0
- package/src/static/img/case-study-1.jpg +0 -0
- package/src/static/img/case-study-2.jpg +0 -0
- package/src/static/img/case-study-3.jpg +0 -0
- package/src/static/img/empyrean.jpg +0 -0
- package/src/static/img/epsilon.jpg +0 -0
- package/src/static/img/favicon-32x32.png +0 -0
- package/src/static/img/favicon.svg +0 -1
- package/src/static/img/featured-blog-post.jpg +0 -0
- package/src/static/img/featured-event-1.jpg +0 -0
- package/src/static/img/featured-event-2.jpg +0 -0
- package/src/static/img/featured-event-3.jpg +0 -0
- package/src/static/img/flow-2.png +0 -0
- package/src/static/img/flow-diagram.png +0 -0
- package/src/static/img/flow.png +0 -0
- package/src/static/img/grid-captivate-1.jpg +0 -0
- package/src/static/img/homepage_1_back.webp +0 -0
- package/src/static/img/homepage_1_back_alt.webp +0 -0
- package/src/static/img/homepage_1_front_full.webp +0 -0
- package/src/static/img/homepage_2_back.webp +0 -0
- package/src/static/img/homepage_2_back_alt.webp +0 -0
- package/src/static/img/homepage_2_front_full.webp +0 -0
- package/src/static/img/itcss.svg +0 -8
- package/src/static/img/leneo.jpg +0 -0
- package/src/static/img/mastersizer.jpg +0 -0
- package/src/static/img/microcal.jpg +0 -0
- package/src/static/img/morphologi.jpg +0 -0
- package/src/static/img/omnisec.jpg +0 -0
- package/src/static/img/open-graph-image.jpg +0 -0
- package/src/static/img/product-accessory-1.jpg +0 -0
- package/src/static/img/product-accessory-2.jpg +0 -0
- package/src/static/img/product-image.jpg +0 -0
- package/src/static/img/products-1.jpg +0 -0
- package/src/static/img/products-2.jpg +0 -0
- package/src/static/img/products-3.jpg +0 -0
- package/src/static/img/products-4.jpg +0 -0
- package/src/static/img/products-5.jpg +0 -0
- package/src/static/img/products-6.jpg +0 -0
- package/src/static/img/qualityspec.jpg +0 -0
- package/src/static/img/range-product-1.jpg +0 -0
- package/src/static/img/range-product-2.jpg +0 -0
- package/src/static/img/range.jpg +0 -0
- package/src/static/img/salt.png +0 -0
- package/src/static/img/sector-1.jpg +0 -0
- package/src/static/img/sector-2.jpg +0 -0
- package/src/static/img/sector-3.jpg +0 -0
- package/src/static/img/sector-4.jpg +0 -0
- package/src/static/img/sector-5.jpg +0 -0
- package/src/static/img/slide-1.jpg +0 -0
- package/src/static/img/slide-2.jpg +0 -0
- package/src/static/img/slide-3.jpg +0 -0
- package/src/static/img/slide-4.webp +0 -0
- package/src/static/img/slide-5.webp +0 -0
- package/src/static/img/slide-6.webp +0 -0
- package/src/static/img/slide-7.webp +0 -0
- package/src/static/img/zetasizer.jpg +0 -0
- package/src/static/pdf/PN12558_Physical_branding_v23.pdf +0 -0
- package/src/static/pdf/Power of One - Malvern Panalytical rebranding guidance.pdf +0 -0
- package/src/static/svg/crop-diagram-1.svg +0 -1
- package/src/static/svg/crop-diagram-2.svg +0 -1
- package/src/static/svg/icon-globe-alt--white.svg +0 -4
- package/src/static/svg/icon-globe-alt.svg +0 -4
- package/src/static/svg/icon-live-webinars--white.svg +0 -6
- package/src/static/svg/icon-live-webinars.svg +0 -6
- package/src/static/svg/icon-recorded-webinars--white.svg +0 -4
- package/src/static/svg/icon-recorded-webinars.svg +0 -4
- package/src/static/svg/icon-user-training--white.svg +0 -5
- package/src/static/svg/icon-user-training.svg +0 -5
- package/src/static/svg/imaging-matrix.svg +0 -56
- package/src/static/svg/large-envelope.svg +0 -1
- package/src/static/svg/large-globe.svg +0 -1
- package/src/static/svg/large-student.svg +0 -1
- package/src/static/svg/logo-black.svg +0 -1
- package/src/static/svg/logo-color-white-text.svg +0 -1
- package/src/static/svg/logo-simple.svg +0 -1
- package/src/static/svg/logo-small.svg +0 -1
- package/src/static/svg/logo-spacing-horizontal.svg +0 -1
- package/src/static/svg/logo-spacing-vertical.svg +0 -1
- package/src/static/svg/logo-stacked.svg +0 -1
- package/src/static/svg/logo-white.svg +0 -1
- package/src/static/svg/logo-x.svg +0 -1
- package/src/static/svg/logo.svg +0 -1
- package/src/static/svg/sprite.svg +0 -48
- package/src/static/svg/typography-spacing.svg +0 -2345
- package/src/static/zip/MP_logo.zip +0 -0
- package/src/static/zip/SVG_patterns.zip +0 -0
package/package.json
CHANGED
@@ -1,46 +1,35 @@
|
|
1
|
-
{
|
2
|
-
"name": "mp-design-system",
|
3
|
-
"version": "1.2.
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
|
8
|
-
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
"@
|
24
|
-
"@
|
25
|
-
"@
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"
|
34
|
-
|
35
|
-
|
36
|
-
"vite-plugin-sass-dts": "^1.3.29"
|
37
|
-
},
|
38
|
-
"alias": {
|
39
|
-
"mp": "./node_modules/mp-design-system/src/assets/scss",
|
40
|
-
"comp": "./src/_includes/components"
|
41
|
-
},
|
42
|
-
"dependencies": {
|
43
|
-
"@vitejs/plugin-vue": "^5.2.1",
|
44
|
-
"vite": "^6.0.3"
|
45
|
-
}
|
46
|
-
}
|
1
|
+
{
|
2
|
+
"name": "mp-design-system",
|
3
|
+
"version": "1.2.65",
|
4
|
+
"type": "module",
|
5
|
+
"files": [
|
6
|
+
"dist/build/**/*"
|
7
|
+
],
|
8
|
+
"scripts": {
|
9
|
+
"dev": "vite",
|
10
|
+
"build": "vite build",
|
11
|
+
"preview": "vite preview",
|
12
|
+
"lint": "eslint . --fix",
|
13
|
+
"format": "prettier --write src/",
|
14
|
+
"prepublishOnly": "rimraf dist && npm run build"
|
15
|
+
},
|
16
|
+
"dependencies": {
|
17
|
+
"pinia": "^2.2.6",
|
18
|
+
"raw-loader": "^4.0.2",
|
19
|
+
"vue": "^3.5.13",
|
20
|
+
"vue-router": "^4.4.5"
|
21
|
+
},
|
22
|
+
"devDependencies": {
|
23
|
+
"@eslint/js": "^9.14.0",
|
24
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
25
|
+
"@vue/eslint-config-prettier": "^10.1.0",
|
26
|
+
"eslint": "^9.14.0",
|
27
|
+
"eslint-plugin-vue": "^9.30.0",
|
28
|
+
"prettier": "^3.4.2",
|
29
|
+
"rimraf": "^6.0.1",
|
30
|
+
"sass": "^1.71.0",
|
31
|
+
"utopia-core-scss": "^1.2.1",
|
32
|
+
"vite": "^6.0.1",
|
33
|
+
"vite-plugin-vue-devtools": "^7.6.5"
|
34
|
+
}
|
35
|
+
}
|
package/src/_data/components.js
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
const slugify = require('slugify');
|
2
|
-
const requireGlob = require('require-glob');
|
3
|
-
const categories = require('../_includes/components/component/categories');
|
4
|
-
|
5
|
-
function convertComponent(component, key) {
|
6
|
-
// Extract variants from component and remove them
|
7
|
-
let { variants = [] } = component;
|
8
|
-
delete component.variants;
|
9
|
-
|
10
|
-
// Back out if the object isn't valid
|
11
|
-
if (!component || !component.title) return null;
|
12
|
-
|
13
|
-
// Sensible defaults for previews, categories & slugs
|
14
|
-
component.preview = component.preview || 'default';
|
15
|
-
component.category = component.category || categories.component;
|
16
|
-
const compSlug = component.slug || slugify(component.title.toLowerCase());
|
17
|
-
|
18
|
-
// Loop the variants, returning a merged combo of component, then variant
|
19
|
-
variants = variants.map(variant => {
|
20
|
-
const slug = slugify(variant.title.toLowerCase());
|
21
|
-
return {
|
22
|
-
...component,
|
23
|
-
...variant,
|
24
|
-
variant: true,
|
25
|
-
preview: variant.preview !== undefined ? variant.preview || 'default' : component.preview || 'default',
|
26
|
-
context: {
|
27
|
-
...component.context,
|
28
|
-
...variant.context
|
29
|
-
},
|
30
|
-
originalTitle: variant.title,
|
31
|
-
title: component.title + ' - ' + variant.title,
|
32
|
-
slug: compSlug + '-' + slug
|
33
|
-
}
|
34
|
-
});
|
35
|
-
|
36
|
-
// Create a siblings group (a slimmed down array of component objects)
|
37
|
-
const siblings = [
|
38
|
-
{
|
39
|
-
slug: compSlug,
|
40
|
-
title: component.title,
|
41
|
-
},
|
42
|
-
...variants.map(x => ({ slug: x.slug, title: x.originalTitle }))
|
43
|
-
];
|
44
|
-
|
45
|
-
// Return the main component, then the variants
|
46
|
-
return [
|
47
|
-
{
|
48
|
-
slug: compSlug,
|
49
|
-
...component,
|
50
|
-
siblings
|
51
|
-
},
|
52
|
-
...variants.map(x => ({
|
53
|
-
...x,
|
54
|
-
siblings
|
55
|
-
}))
|
56
|
-
]
|
57
|
-
}
|
58
|
-
|
59
|
-
function reducer(options, tree, fileObj) {
|
60
|
-
if (!fileObj) return tree;
|
61
|
-
if (tree.components === undefined) tree.components = [];
|
62
|
-
tree.components.push(fileObj.exports);
|
63
|
-
return tree;
|
64
|
-
}
|
65
|
-
|
66
|
-
module.exports = async function() {
|
67
|
-
// Pull in all the config files
|
68
|
-
const modules = await requireGlob('../_includes/**/*.config.js', { reducer, bustCache: true });
|
69
|
-
|
70
|
-
// Convert the components into our required format
|
71
|
-
const components = modules.components.map(convertComponent).filter(Boolean).flat();
|
72
|
-
|
73
|
-
// Sort them alphabetically
|
74
|
-
components.sort((a, b) => {
|
75
|
-
return a.title > b.title ? 1 : -1;
|
76
|
-
});
|
77
|
-
|
78
|
-
// Take the categories object and convert it into component groups
|
79
|
-
const componentCategories = Object.values(categories).map(x => ({
|
80
|
-
name: x,
|
81
|
-
components: []
|
82
|
-
}));
|
83
|
-
|
84
|
-
// Place each component into the correct group
|
85
|
-
components.forEach(x => {
|
86
|
-
let category = componentCategories.find(y => y.name === x.category);
|
87
|
-
if (!category) return
|
88
|
-
|
89
|
-
category.components.push(x);
|
90
|
-
});
|
91
|
-
|
92
|
-
// Return the components and the menu, broken down into categories
|
93
|
-
return {
|
94
|
-
components,
|
95
|
-
menu: componentCategories.map(x => {
|
96
|
-
return {
|
97
|
-
name: x.name,
|
98
|
-
components: x.components
|
99
|
-
.filter(x => !x.variant)
|
100
|
-
.map(x => ({ slug: x.slug, title: x.title, siblings: x.siblings.filter(y => y.slug !== x.slug) }))
|
101
|
-
}
|
102
|
-
})
|
103
|
-
};
|
104
|
-
}
|
package/src/_data/config.js
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
const package = require('../../package.json');
|
2
|
-
|
3
|
-
module.exports = function () {
|
4
|
-
const url = process.env.URL;
|
5
|
-
|
6
|
-
return {
|
7
|
-
name: 'Project Franklin',
|
8
|
-
logo: ['Franklin', 'Design system & brand guide'],
|
9
|
-
creator: 'Malvern Panalytical',
|
10
|
-
dsVersion: package.version,
|
11
|
-
url,
|
12
|
-
openGraphImage: `${url}/static/img/open-graph-image.jpg`
|
13
|
-
};
|
14
|
-
}
|
package/src/_data/helpers.js
DELETED
package/src/_headers
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Content-Security-Policy: default-src 'self'; base-uri 'self'; block-all-mixed-content; font-src 'self' https://fonts.gstatic.com; form-action 'self'; frame-src 'self' https://brand.malvernpanalytical.com https://www.youtube.com https://challenges.cloudflare.com https://newassets.hcaptcha.com; frame-ancestors 'self' https://brand.malvernpanalytical.com; img-src 'self' data: https://dam.malvernpanalytical.com https://p3.aprimocdn.net https://img.youtube.com; object-src 'none'; picture-in-picture 'self'; sandbox allow-forms allow-same-origin allow-scripts allow-downloads; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://eu.altcha.org https://challenges.cloudflare.com https://js.hcaptcha.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; upgrade-insecure-requests;
|
3
|
-
X-Content-Type-Options: nosniff
|
4
|
-
X-Frame-Options: SAMEORIGIN
|
5
|
-
X-XSS-Protection: 1; mode=block
|
6
|
-
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
|
7
|
-
Referrer-Policy: strict-origin-when-cross-origin
|
8
|
-
Permissions-Policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=(), sync-xhr=(), microphone=(), speaker=()
|
9
|
-
Feature-Policy: accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'none'; camera 'none'; encrypted-media 'none'; fullscreen 'self'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; picture-in-picture 'none'; speaker 'self'; sync-xhr 'self'; usb 'none'; vr 'none'
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
title: 'Accordion',
|
3
|
-
component: {
|
4
|
-
name: 'accordion'
|
5
|
-
},
|
6
|
-
figma: 'https://www.figma.com/file/szD8e7jNeWIfKpt6y41isi/Franklin-design-system?type=design&node-id=6879%3A3616&mode=design&t=vh7UGUcY3zjfbgUR-1',
|
7
|
-
docs: true,
|
8
|
-
context: {
|
9
|
-
items: [
|
10
|
-
{
|
11
|
-
title: 'Do I need to prepare the workspace prior to installation?',
|
12
|
-
content: 'All instruments need a power source, and some have additional requirements such as a water supply or waste extraction. Where this the case, we will advise you prior to shipping your instrument.'
|
13
|
-
},
|
14
|
-
{
|
15
|
-
title: 'What specialist skills or knowledge are required?',
|
16
|
-
content: 'You don\'t need any specialist skills or knowledge to perform a Smart Install. Simply follow the instructions provided.'
|
17
|
-
},
|
18
|
-
{
|
19
|
-
title: 'Do I need specialist tools or equipment to Smart Install a new instrument?',
|
20
|
-
content: '<ul><li>For installation of a Mastersizer or Zetasizer system, you will need a computer with internet access in order to view the installation guides. For installation of an Epsilon 1 XRF instrument, you will also need a smartphone or tablet to connect with our support personnel via a secure, augmented reality (AR) platform.</li><li>Everything else you need to install your new instrument will be provided.</li></ul>'
|
21
|
-
},
|
22
|
-
{
|
23
|
-
title: 'What languages are available for the Smart Install guides?',
|
24
|
-
content: '<ul><li>Mastersizer: English, Chinese, Korean, French, German and Japanese</li><li>Zetasizer: English, Chinese, Korean, French, German and Japanese</li><li>Epsilon 1: English, French, German and Japanese, Spanish and Portuguese</li></ul>'
|
25
|
-
}
|
26
|
-
]
|
27
|
-
}
|
28
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
- To make an item display in its opened state when the page loads, add the class `c-accordion--item__open`
|
2
|
-
- The classnames `o-prose` and `u-flow--prose` on the content are optional
|
3
|
-
## Blank HTML template
|
4
|
-
```html
|
5
|
-
<dl class="c-accordion">
|
6
|
-
<div class="c-accordion__item">
|
7
|
-
<dt class="c-accordion__title">Title one</dt>
|
8
|
-
<dd class="c-accordion__content o-prose u-flow--prose">Content one</dd>
|
9
|
-
</div>
|
10
|
-
<div class="c-accordion__item">
|
11
|
-
<dt class="c-accordion__title">Title two</dt>
|
12
|
-
<dd class="c-accordion__content o-prose u-flow--prose">Content two</dd>
|
13
|
-
</div>
|
14
|
-
</dl>
|
15
|
-
```
|
@@ -1,10 +0,0 @@
|
|
1
|
-
{% from "components/icon/macro.njk" import icon %}
|
2
|
-
|
3
|
-
<dl class="c-accordion">
|
4
|
-
{% for item in params.items %}
|
5
|
-
<div class="c-accordion__item {{ 'c-accordion__item--open' if item.state }}">
|
6
|
-
<dt class="c-accordion__title">{{ item.title }}</dt>
|
7
|
-
<dd class="c-accordion__content o-prose u-flow--prose">{{ item.content | safe }}</dd>
|
8
|
-
</div>
|
9
|
-
{% endfor %}
|
10
|
-
</dl>
|
@@ -1,54 +0,0 @@
|
|
1
|
-
.c-accordion {
|
2
|
-
&__item {
|
3
|
-
@include padding('xs',0);
|
4
|
-
|
5
|
-
& + & {
|
6
|
-
border-top: 1px solid color('petrol', 'step-2');
|
7
|
-
}
|
8
|
-
}
|
9
|
-
|
10
|
-
&__title {
|
11
|
-
@include step(1);
|
12
|
-
@include padding('xs',0);
|
13
|
-
cursor: pointer;
|
14
|
-
font-weight: weight('bold');
|
15
|
-
position: relative;
|
16
|
-
|
17
|
-
&:before {
|
18
|
-
background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 1V17M1 9H17" stroke="%23252525" stroke-width="2" stroke-linecap="round"/></svg>');
|
19
|
-
background-position: center center;
|
20
|
-
background-repeat: no-repeat;
|
21
|
-
content: "";
|
22
|
-
display: block;
|
23
|
-
height: 1em;
|
24
|
-
left: 0;
|
25
|
-
position: absolute;
|
26
|
-
width: 1em;
|
27
|
-
}
|
28
|
-
|
29
|
-
.c-accordion__item--open &:before {
|
30
|
-
background-image: url('data:image/svg+xml;utf8,<svg width="10" height="2" viewBox="0 0 10 2" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1H9" stroke="%23252525" stroke-width="2" stroke-linecap="round"/></svg>');
|
31
|
-
transform: scaleX(1.75);
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
&__content {
|
36
|
-
margin-left: 0;
|
37
|
-
@include padding-bottom('xs');
|
38
|
-
display: none;
|
39
|
-
|
40
|
-
.c-accordion__item--open & {
|
41
|
-
display: block;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
|
45
|
-
&__title,
|
46
|
-
&__content {
|
47
|
-
@include padding-left('l-xl');
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
// Fix for Tridion mangling the HTML
|
52
|
-
.o-prose .c-accordion > dd:not([class]) {
|
53
|
-
margin-left: 0;
|
54
|
-
}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
title: 'Alert',
|
3
|
-
component: {
|
4
|
-
name: 'alert'
|
5
|
-
},
|
6
|
-
figma: 'https://www.figma.com/file/rUQ6aPQAfBX55o3hH0Lqb3/Design-exploration?node-id=315%3A6334',
|
7
|
-
context: {
|
8
|
-
content: '<p>During the COVID-19 situation, our sales team are still available to answer all your sales enquiries</p>'
|
9
|
-
},
|
10
|
-
variants: [
|
11
|
-
{
|
12
|
-
title: 'Error',
|
13
|
-
context: {
|
14
|
-
type: 'error'
|
15
|
-
}
|
16
|
-
},
|
17
|
-
{
|
18
|
-
title: 'Warning',
|
19
|
-
context: {
|
20
|
-
type: 'warning'
|
21
|
-
}
|
22
|
-
},
|
23
|
-
{
|
24
|
-
title: 'Success',
|
25
|
-
context: {
|
26
|
-
type: 'success'
|
27
|
-
}
|
28
|
-
},
|
29
|
-
{
|
30
|
-
title: 'Different icon',
|
31
|
-
context: {
|
32
|
-
icon: 'log-out'
|
33
|
-
}
|
34
|
-
},
|
35
|
-
{
|
36
|
-
title: 'With link',
|
37
|
-
context: {
|
38
|
-
content: '<p><a class="c-alert__text-link c-twi" href="#">During the COVID-19 situation</a>, our sales team are still available to answer all your sales enquiries</p>'
|
39
|
-
}
|
40
|
-
},
|
41
|
-
{
|
42
|
-
title: 'Multiline',
|
43
|
-
context: {
|
44
|
-
content: '<h6>Check your email</h6><p>Thank you for signing up for this event.</p><p>We\'ve sent you an email with further details on the event. Please note that you may need to access this email to complete your registration.</p>',
|
45
|
-
type: 'success',
|
46
|
-
multiline: true
|
47
|
-
}
|
48
|
-
}
|
49
|
-
],
|
50
|
-
props: [
|
51
|
-
{
|
52
|
-
table: [
|
53
|
-
['content', 'html', 'HTML for the alert'],
|
54
|
-
['type', 'string', '"error", "success", "warning", "info"'],
|
55
|
-
['icon', 'string', 'An icon from the <a href="/components/icons">icons</a> system']
|
56
|
-
]
|
57
|
-
},
|
58
|
-
{
|
59
|
-
title: 'CSS modifiers',
|
60
|
-
table: [
|
61
|
-
['c-alert--[type]', 'info, error, warning, success', 'The \'type\' of alert']
|
62
|
-
]
|
63
|
-
}
|
64
|
-
]
|
65
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
{% from "components/icon/macro.njk" import icon %}
|
2
|
-
|
3
|
-
{% set icons = {
|
4
|
-
info: 'info',
|
5
|
-
warning: 'info',
|
6
|
-
success: 'tick',
|
7
|
-
error: 'cross'
|
8
|
-
} %}
|
9
|
-
|
10
|
-
{% set type = params.type or 'info' %}
|
11
|
-
|
12
|
-
{%- set classNames = "mp c-alert" -%}
|
13
|
-
|
14
|
-
{%- if params.classes -%}
|
15
|
-
{% set classNames = classNames + " " + params.classes %}
|
16
|
-
{% endif %}
|
17
|
-
|
18
|
-
{%- if params.multiline -%}
|
19
|
-
{% set classNames = classNames + " c-alert--multiline" %}
|
20
|
-
{% endif %}
|
21
|
-
|
22
|
-
{% set classNames = classNames + " c-alert--" + type %}
|
23
|
-
|
24
|
-
<div class="{{ classNames }}">
|
25
|
-
{{ params.content | safe }}
|
26
|
-
{{ icon({ id: params.icon or icons[type] }) }}
|
27
|
-
</div>
|
@@ -1,80 +0,0 @@
|
|
1
|
-
.c-alert {
|
2
|
-
--alert-border: #{color('utility-blue')};
|
3
|
-
border-left: 4px solid color('utility-blue');
|
4
|
-
border-left-color: var(--alert-border);
|
5
|
-
|
6
|
-
background: color('utility-blue', 'step-3');
|
7
|
-
@include padding('s', 's', 's', 'xl');
|
8
|
-
position: relative;
|
9
|
-
|
10
|
-
&.mp p {
|
11
|
-
line-height: lh('prose');
|
12
|
-
}
|
13
|
-
|
14
|
-
& > * + * {
|
15
|
-
margin-top: 1em;
|
16
|
-
}
|
17
|
-
|
18
|
-
:has(.u-fill):hover .c-alert__text-link {
|
19
|
-
text-decoration: none;
|
20
|
-
}
|
21
|
-
|
22
|
-
a,
|
23
|
-
&__text-link,
|
24
|
-
&__text-link.c-twi {
|
25
|
-
color: var(--alert-border);
|
26
|
-
text-decoration: underline;
|
27
|
-
|
28
|
-
&:hover {
|
29
|
-
text-decoration: none;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
& .c-icon {
|
34
|
-
position: absolute;
|
35
|
-
left: 1.25rem;
|
36
|
-
top: 1.25rem;
|
37
|
-
margin-top: 0;
|
38
|
-
font-size: 1.5rem;
|
39
|
-
color: black;
|
40
|
-
color: var(--alert-border);
|
41
|
-
}
|
42
|
-
|
43
|
-
pre {
|
44
|
-
background: transparent;
|
45
|
-
padding: 0;
|
46
|
-
max-width: 100%;
|
47
|
-
overflow-x: auto;
|
48
|
-
@include step(-1);
|
49
|
-
}
|
50
|
-
|
51
|
-
&--multiline {
|
52
|
-
@include padding('s', 's', 's', 0);
|
53
|
-
|
54
|
-
&> *:not(.c-icon) {
|
55
|
-
@include padding-left('s');
|
56
|
-
|
57
|
-
&:first-child {
|
58
|
-
color: var(--alert-border);
|
59
|
-
@include padding-left('xl');
|
60
|
-
font-size: inherit;
|
61
|
-
line-height: lh('prose');
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
|
-
&--warning {
|
67
|
-
background: color('utility-orange', 'step-3');
|
68
|
-
--alert-border: #{color('utility-orange')};
|
69
|
-
}
|
70
|
-
|
71
|
-
&--success {
|
72
|
-
background: color('green', 'step-3');
|
73
|
-
--alert-border: #{color('green')};
|
74
|
-
}
|
75
|
-
|
76
|
-
&--error {
|
77
|
-
background: color('red', 'step-3');
|
78
|
-
--alert-border: #{color('red')};
|
79
|
-
}
|
80
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
.c-back-to-top {
|
2
|
-
position: fixed;
|
3
|
-
background: color('blue');
|
4
|
-
color: color('white') !important;
|
5
|
-
height: 2.6rem;
|
6
|
-
width: 2.6rem;
|
7
|
-
right: var(--space-xs);
|
8
|
-
bottom: var(--space-xs);
|
9
|
-
display: flex;
|
10
|
-
justify-content: center;
|
11
|
-
align-items: center;
|
12
|
-
border-radius: 4rem;
|
13
|
-
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 20%);
|
14
|
-
transition: 300ms background-color, 300ms color;
|
15
|
-
|
16
|
-
&:where(:hover, :focus) {
|
17
|
-
background: color('blue', 'step--1');
|
18
|
-
}
|
19
|
-
|
20
|
-
&__icon {
|
21
|
-
}
|
22
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
title: 'Breadcrumb',
|
3
|
-
component: {
|
4
|
-
name: 'breadcrumb',
|
5
|
-
},
|
6
|
-
context: {
|
7
|
-
links: [
|
8
|
-
{ link: '/en/services', label: 'Contract Research and Manufacturing...' },
|
9
|
-
{ link: '/en/services/pharmaceutical-drug-development', label: 'Pharmaceutical drug development...' },
|
10
|
-
{ link: '', label: 'Pre-clinical process research and...' },
|
11
|
-
]
|
12
|
-
},
|
13
|
-
props: [
|
14
|
-
{
|
15
|
-
table: [
|
16
|
-
['links', 'link[]', '"link" and "label" objects']
|
17
|
-
]
|
18
|
-
}
|
19
|
-
]
|
20
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
{% from "components/icon/macro.njk" import icon %}
|
2
|
-
|
3
|
-
<nav class="c-breadcrumb {{ params.classes }}" aria-label="Breadcrumb">
|
4
|
-
<ol class="c-breadcrumb__list" role="list">
|
5
|
-
{% for item in params.links %}
|
6
|
-
{% if loop.index < loop.length %}
|
7
|
-
<li class="c-breadcrumb__item" role="listitem">
|
8
|
-
<a href="{{ item.link }}" class="c-breadcrumb__link">{{ item.label }}</a>
|
9
|
-
{{ icon({ id: 'chevron-down' }) }}
|
10
|
-
</li>
|
11
|
-
{% else %}
|
12
|
-
<li class="c-breadcrumb__item" role="listitem">
|
13
|
-
<span class="c-breadcrumb__current" aria-current="{{ item.label }}">{{ item.label}}</span>
|
14
|
-
</li>
|
15
|
-
{% endif %}
|
16
|
-
{% endfor %}
|
17
|
-
</ol>
|
18
|
-
</nav>
|
19
|
-
|