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
@@ -1,67 +0,0 @@
|
|
1
|
-
const categories = require('../component/categories');
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
title: 'Input',
|
5
|
-
category: categories.form,
|
6
|
-
component: {
|
7
|
-
name: 'input'
|
8
|
-
},
|
9
|
-
figma: 'https://www.figma.com/file/rUQ6aPQAfBX55o3hH0Lqb3/Design-exploration?node-id=213%3A918',
|
10
|
-
preview: 'form',
|
11
|
-
context: {
|
12
|
-
label: 'Label',
|
13
|
-
name: 'name',
|
14
|
-
id: 'id',
|
15
|
-
type: 'text',
|
16
|
-
placeholder: 'Placeholder',
|
17
|
-
required: true
|
18
|
-
},
|
19
|
-
variants: [
|
20
|
-
{
|
21
|
-
title: 'With error',
|
22
|
-
context: {
|
23
|
-
error: true
|
24
|
-
}
|
25
|
-
},
|
26
|
-
{
|
27
|
-
title: 'With error message',
|
28
|
-
context: {
|
29
|
-
error: 'This field is required'
|
30
|
-
}
|
31
|
-
},
|
32
|
-
{
|
33
|
-
title: 'With button',
|
34
|
-
context: {
|
35
|
-
button: true,
|
36
|
-
buttontext: 'Search'
|
37
|
-
}
|
38
|
-
},
|
39
|
-
{
|
40
|
-
title: 'Disabled',
|
41
|
-
context: {
|
42
|
-
disabled: true
|
43
|
-
}
|
44
|
-
}
|
45
|
-
],
|
46
|
-
props: [
|
47
|
-
{
|
48
|
-
table: [
|
49
|
-
['label', 'string'],
|
50
|
-
['id', 'string', 'ID attribute'],
|
51
|
-
['name', 'string', 'Name attribute (falls back to ID)'],
|
52
|
-
['type', 'string', 'Defaults to text'],
|
53
|
-
['placeholder', 'string'],
|
54
|
-
['required', 'bool']
|
55
|
-
]
|
56
|
-
},
|
57
|
-
{
|
58
|
-
title: 'CSS modifiers',
|
59
|
-
table: [
|
60
|
-
['c-input--alt', '', 'Petrol step 3 alternative background'],
|
61
|
-
['c-input--large', '', 'Taller input'],
|
62
|
-
['c-input--select', '', 'Add dropdown arrow'],
|
63
|
-
['c-input--textarea', '', 'Prevent horizontal resizing']
|
64
|
-
]
|
65
|
-
}
|
66
|
-
]
|
67
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
{% inputWrapper params.error %}
|
2
|
-
<div class="c-input__wrap">
|
3
|
-
<label class="{{ 'u-hidden' if params.hideLabel else 'c-label' }}" for="{{ params.id }}">{{ params.label }}</label>
|
4
|
-
{% if params.button %}
|
5
|
-
<div class="u-flex u-border">
|
6
|
-
{% endif %}
|
7
|
-
<input type="{{ params.type or 'text' }}" class="c-input {{ 'c-input--with-button' if params.button }}{{ params.classes }}" name="{{ params.name or params.id }}" placeholder="{{ params.placeholder }}" id="{{ params.id }}" {{ 'required' if params.required }} {{ 'disabled' if params.disabled }} />
|
8
|
-
{% if params.button %}
|
9
|
-
<button type="button" class="mp c-button--white">Search</button>
|
10
|
-
{% endif %}
|
11
|
-
{% if params.button %}
|
12
|
-
</div>
|
13
|
-
{% endif %}
|
14
|
-
</div>
|
15
|
-
{% endinputWrapper %}
|
@@ -1,136 +0,0 @@
|
|
1
|
-
.c-input {
|
2
|
-
background: color('white');
|
3
|
-
border: 1px solid color('petrol', 'step-2');
|
4
|
-
-webkit-appearance: none;
|
5
|
-
appearance: none;
|
6
|
-
border-radius: 0;
|
7
|
-
font: inherit;
|
8
|
-
@include padding('2xs');
|
9
|
-
color: inherit;
|
10
|
-
font-size: 1rem;
|
11
|
-
display: block;
|
12
|
-
width: 100%;
|
13
|
-
|
14
|
-
&:focus {
|
15
|
-
outline: none;
|
16
|
-
border-color: color('petrol');
|
17
|
-
}
|
18
|
-
|
19
|
-
&::-webkit-calendar-picker-indicator {
|
20
|
-
cursor: pointer;
|
21
|
-
|
22
|
-
&:hover {
|
23
|
-
background-color: color('utility-blue', 'step-3');
|
24
|
-
outline: var(--space-2xs) solid color('utility-blue', 'step-3');
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
&--alt {
|
29
|
-
background: color('petrol', 'step-3');
|
30
|
-
border: none;
|
31
|
-
}
|
32
|
-
|
33
|
-
&--large {
|
34
|
-
min-height: 56px;
|
35
|
-
}
|
36
|
-
|
37
|
-
&--select {
|
38
|
-
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="10"><path fill="%23006DAF" fill-rule="nonzero" d="M9 7.59L1.7.29A1 1 0 10.3 1.71l8 8a1 1 0 001.4 0l8-8A1 1 0 1016.3.29L9 7.6z"/></svg>');
|
39
|
-
background-position: center right 1rem;
|
40
|
-
background-repeat: no-repeat;
|
41
|
-
background-size: 0.875em auto;
|
42
|
-
}
|
43
|
-
|
44
|
-
&--textarea {
|
45
|
-
resize: vertical;
|
46
|
-
min-height: 10rem;;
|
47
|
-
}
|
48
|
-
|
49
|
-
&--file {
|
50
|
-
border: 0;
|
51
|
-
padding: 0;
|
52
|
-
cursor: pointer;
|
53
|
-
|
54
|
-
@at-root ::-webkit-file-upload-button {
|
55
|
-
@extend %c-button;
|
56
|
-
@extend .c-button--blue;
|
57
|
-
display: inline-flex;
|
58
|
-
@include margin-right('xs');
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
&-error {
|
63
|
-
--error-state: #{color('red')};
|
64
|
-
position: relative;
|
65
|
-
|
66
|
-
.c-form__input-wrap,
|
67
|
-
&> fieldset {
|
68
|
-
&::after {
|
69
|
-
content: '';
|
70
|
-
height: 2rem;
|
71
|
-
width: 2rem;
|
72
|
-
@include margin('auto', 0);
|
73
|
-
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="%23CE0058"/><path stroke="%23fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16.666 7.333l-9.333 9.334M7.333 7.333l9.333 9.334"/></svg>') no-repeat center;
|
74
|
-
flex-shrink: 0;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
&> fieldset::after {
|
79
|
-
position: absolute;
|
80
|
-
top: 0;
|
81
|
-
right: 0;
|
82
|
-
bottom: 0;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
&-error & {
|
87
|
-
border-color: color('red');
|
88
|
-
|
89
|
-
&:focus {
|
90
|
-
border-color: color('red', 'step--1');
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
|
-
&-message {
|
95
|
-
@include step(-1);
|
96
|
-
color: var(--error-state);
|
97
|
-
|
98
|
-
&> * {
|
99
|
-
@include margin-top('2xs');
|
100
|
-
}
|
101
|
-
}
|
102
|
-
|
103
|
-
&[disabled],
|
104
|
-
[disabled],
|
105
|
-
&--disabled {
|
106
|
-
background-color: color('petrol', 'step-2');
|
107
|
-
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" id="lock" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.45 4.17A4 4 0 0 1 16.28 7v3h-8V7a4 4 0 0 1 1.17-2.83ZM6.28 10V7a6 6 0 1 1 12 0v3h.22c1.64 0 2.78 1.46 2.78 3v7c0 1.54-1.14 3-2.78 3H6.06c-1.65 0-2.78-1.46-2.78-3v-7c0-1.54 1.13-3 2.78-3h.22Zm1 2H6.06c-.33 0-.78.33-.78 1v7c0 .67.45 1 .78 1H18.5c.32 0 .78-.33.78-1v-7c0-.67-.46-1-.78-1H7.28Zm3 3.35a2 2 0 1 1 3 1.73v1.77a1 1 0 1 1-2 0v-1.77a2 2 0 0 1-1-1.73Z"/></svg>');
|
108
|
-
background-position: right var(--space-2xs) center;
|
109
|
-
background-repeat: no-repeat;
|
110
|
-
@include space('background-size', 's');
|
111
|
-
cursor: not-allowed;
|
112
|
-
opacity: 0.6;
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
.u-disabled > .c-input {
|
117
|
-
@extend .c-input--disabled;
|
118
|
-
}
|
119
|
-
|
120
|
-
.c-input--with-button {
|
121
|
-
// padding-right: 44px;
|
122
|
-
border: 0;
|
123
|
-
}
|
124
|
-
|
125
|
-
.c-input--with-button + [type] {
|
126
|
-
// transform: translateY(-50%);
|
127
|
-
// position: absolute;
|
128
|
-
@include padding('xs');
|
129
|
-
color: color('utility-blue');
|
130
|
-
// right: 0;
|
131
|
-
// top: 50%;
|
132
|
-
|
133
|
-
svg {
|
134
|
-
display: block;
|
135
|
-
}
|
136
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
{% from "components/component/component.njk" import c %}
|
2
|
-
|
3
|
-
{% macro checkbox(params, type = 'checkbox') %}
|
4
|
-
{{ c({ name: 'checkbox', folder: 'input' }, params) }}
|
5
|
-
{% endmacro %}
|
6
|
-
|
7
|
-
{% macro input(params) %}
|
8
|
-
{{ c({ name: 'input' }, params) }}
|
9
|
-
{% endmacro %}
|
10
|
-
|
11
|
-
{% macro radio(params) %}
|
12
|
-
{{ c({ name: 'radio', folder: 'input' }, params) }}
|
13
|
-
{% endmacro %}
|
14
|
-
|
15
|
-
{% macro select(params) %}
|
16
|
-
{{ c({ name: 'select', folder: 'input' }, params) }}
|
17
|
-
{% endmacro %}
|
18
|
-
|
19
|
-
{% macro textarea(params) %}
|
20
|
-
{{ c({ name: 'textarea', folder: 'input' }, params) }}
|
21
|
-
{% endmacro %}
|
22
|
-
|
23
|
-
{% macro toggle(params, type='toggle') %}
|
24
|
-
{{ c({ name: 'toggle', folder: 'input' }, params) }}
|
25
|
-
{% endmacro %}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
const categories = require('../component/categories');
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
title: 'Radio',
|
5
|
-
category: categories.form,
|
6
|
-
component: {
|
7
|
-
name: 'radio',
|
8
|
-
folder: 'input'
|
9
|
-
},
|
10
|
-
preview: 'form',
|
11
|
-
figma: 'https://www.figma.com/file/rUQ6aPQAfBX55o3hH0Lqb3/Design-exploration?node-id=213%3A587',
|
12
|
-
context: {
|
13
|
-
label: 'Label',
|
14
|
-
name: 'name',
|
15
|
-
id: 'id'
|
16
|
-
},
|
17
|
-
variants: [
|
18
|
-
{
|
19
|
-
title: 'Checked',
|
20
|
-
context: {
|
21
|
-
checked: true
|
22
|
-
}
|
23
|
-
},
|
24
|
-
{
|
25
|
-
title: 'Disabled',
|
26
|
-
context: {
|
27
|
-
disabled: true
|
28
|
-
}
|
29
|
-
}
|
30
|
-
],
|
31
|
-
props: [
|
32
|
-
{
|
33
|
-
table: [
|
34
|
-
['label', 'string'],
|
35
|
-
['id', 'string', 'ID attribute'],
|
36
|
-
['name', 'string', 'Name attribute (falls back to ID)'],
|
37
|
-
['checked', 'bool', 'Is this input checked?']
|
38
|
-
]
|
39
|
-
}
|
40
|
-
]
|
41
|
-
}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
<input type="radio" class="c-radio" name="{{ params.name or params.id }}" id="{{ params.id }}" value="{{ params.value }}" {{ 'checked' if params.checked }} {{ 'required' if params.required }} {{ 'disabled' if params.disabled }} />
|
2
|
-
<label for="{{ params.id }}">{{ params.label }}</label>
|
@@ -1,143 +0,0 @@
|
|
1
|
-
.c-radio,
|
2
|
-
.c-checkbox {
|
3
|
-
@extend .u-hidden;
|
4
|
-
|
5
|
-
&+label,
|
6
|
-
&+input[type=hidden]+label {
|
7
|
-
@include padding-left('l');
|
8
|
-
position: relative;
|
9
|
-
@include step(-1);
|
10
|
-
box-decoration-break: clone;
|
11
|
-
-webkit-box-decoration-break: clone;
|
12
|
-
|
13
|
-
&:before {
|
14
|
-
transform: translateY(-50%);
|
15
|
-
position: absolute;
|
16
|
-
content: '';
|
17
|
-
border: 1px solid color('petrol', 'step-2');
|
18
|
-
border-radius: 2px;
|
19
|
-
height: 1.25rem;
|
20
|
-
width: 1.25rem;
|
21
|
-
left: 0;
|
22
|
-
top: 50%;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
&:focus+label:before,
|
27
|
-
&:focus+input[type=hidden]+label:before {
|
28
|
-
outline: 2px solid;
|
29
|
-
}
|
30
|
-
|
31
|
-
&[disabled],
|
32
|
-
[disabled] & {
|
33
|
-
&+label:before {
|
34
|
-
background-color: color('petrol', 'step-2');
|
35
|
-
cursor: not-allowed;
|
36
|
-
opacity: 0.6;
|
37
|
-
|
38
|
-
}
|
39
|
-
|
40
|
-
&:hover+label:before {
|
41
|
-
background-color: color('petrol', 'step-2');
|
42
|
-
}
|
43
|
-
}
|
44
|
-
|
45
|
-
|
46
|
-
&--box {
|
47
|
-
&+label {
|
48
|
-
@include padding('s');
|
49
|
-
height: 100%;
|
50
|
-
width: 100%;
|
51
|
-
background: color('white');
|
52
|
-
display: flex;
|
53
|
-
align-items: center;
|
54
|
-
justify-content: center;
|
55
|
-
border-radius: 6px;
|
56
|
-
text-align: center;
|
57
|
-
font-weight: 700;
|
58
|
-
word-break: break-word;
|
59
|
-
flex-wrap: wrap;
|
60
|
-
|
61
|
-
&:before,
|
62
|
-
&:after {
|
63
|
-
display: none;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
&:checked+label {
|
68
|
-
background: color('blue');
|
69
|
-
color: color('white');
|
70
|
-
}
|
71
|
-
|
72
|
-
&[disabled]+label {
|
73
|
-
background: color('grey', 'step-3');
|
74
|
-
color: color('grey', 'step-1');
|
75
|
-
border: 1px solid color('grey', 'step-2');
|
76
|
-
cursor: not-allowed;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
}
|
81
|
-
|
82
|
-
.c-checkbox {
|
83
|
-
|
84
|
-
&:checked+label:before,
|
85
|
-
&:checked+input[type=hidden]+label:before {
|
86
|
-
background: color('utility-blue');
|
87
|
-
}
|
88
|
-
|
89
|
-
&:checked+label:after,
|
90
|
-
&:checked+input[type=hidden]+label:after {
|
91
|
-
transform: translateX(6.5px) translateY(-1.5px) translateY(-50%) rotate(45deg);
|
92
|
-
position: absolute;
|
93
|
-
content: '';
|
94
|
-
width: 7px;
|
95
|
-
height: 11px;
|
96
|
-
border-bottom: 3px solid color('white');
|
97
|
-
border-right: 3px solid color('white');
|
98
|
-
left: 0;
|
99
|
-
top: 50%;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
|
103
|
-
.c-radio,
|
104
|
-
.c-checkbox {
|
105
|
-
|
106
|
-
&+label:hover:before,
|
107
|
-
&+input[type=hidden]+label:hover:before {
|
108
|
-
background-color: color('utility-blue', 'step-3');
|
109
|
-
}
|
110
|
-
}
|
111
|
-
|
112
|
-
.c-checkbox {
|
113
|
-
|
114
|
-
&:checked+label:hover:before,
|
115
|
-
&:checked+input[type=hidden]+label:hover:before {
|
116
|
-
background: color('utility-blue', 'step--1');
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
.c-radio {
|
121
|
-
|
122
|
-
&+label:before,
|
123
|
-
&+input[type=hidden]+label:before {
|
124
|
-
border-radius: 100%;
|
125
|
-
}
|
126
|
-
|
127
|
-
&:checked+label:before,
|
128
|
-
&:checked+input[type=hidden]+label:before {
|
129
|
-
box-shadow: inset 0 0 0 5px color('utility-blue');
|
130
|
-
}
|
131
|
-
|
132
|
-
&:checked+label:hover:before,
|
133
|
-
&:checked+input[type=hidden]+label:hover:before {
|
134
|
-
box-shadow: inset 0 0 0 5px color('utility-blue', 'step--1');
|
135
|
-
}
|
136
|
-
}
|
137
|
-
|
138
|
-
.c-off-canvas .c-checkbox-group {
|
139
|
-
&>* {
|
140
|
-
width: 100%;
|
141
|
-
margin-left: 0;
|
142
|
-
}
|
143
|
-
}
|
@@ -1,70 +0,0 @@
|
|
1
|
-
const categories = require('../component/categories');
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
title: 'Select',
|
5
|
-
category: categories.form,
|
6
|
-
component: {
|
7
|
-
name: 'select',
|
8
|
-
folder: 'input'
|
9
|
-
},
|
10
|
-
figma: 'https://www.figma.com/file/rUQ6aPQAfBX55o3hH0Lqb3/Design-exploration?node-id=213%3A918',
|
11
|
-
preview: 'form',
|
12
|
-
context: {
|
13
|
-
label: 'Label',
|
14
|
-
name: 'name',
|
15
|
-
id: 'id',
|
16
|
-
placeholder: 'Placeholder',
|
17
|
-
required: true,
|
18
|
-
options: [
|
19
|
-
['option-1', 'Option 1'],
|
20
|
-
['Option 2'],
|
21
|
-
['option-3', 'Option 3'],
|
22
|
-
]
|
23
|
-
},
|
24
|
-
variants: [
|
25
|
-
{
|
26
|
-
title: 'Selected option',
|
27
|
-
context: {
|
28
|
-
value: 'option-3'
|
29
|
-
}
|
30
|
-
},
|
31
|
-
{
|
32
|
-
title: 'With error',
|
33
|
-
context: {
|
34
|
-
error: true
|
35
|
-
}
|
36
|
-
},
|
37
|
-
{
|
38
|
-
title: 'With error message',
|
39
|
-
context: {
|
40
|
-
error: 'This field is required'
|
41
|
-
}
|
42
|
-
},
|
43
|
-
{
|
44
|
-
title: 'Disabled',
|
45
|
-
context: {
|
46
|
-
disabled: true
|
47
|
-
}
|
48
|
-
}
|
49
|
-
],
|
50
|
-
props: [
|
51
|
-
{
|
52
|
-
table: [
|
53
|
-
['label', 'string'],
|
54
|
-
['id', 'string', 'ID attribute'],
|
55
|
-
['name', 'string', 'Name attribute (falls back to ID)'],
|
56
|
-
['placeholder', 'string'],
|
57
|
-
['required', 'bool'],
|
58
|
-
['options', 'option[]', 'Array of options'],
|
59
|
-
['value', 'string', 'Currently selected value']
|
60
|
-
]
|
61
|
-
},
|
62
|
-
{
|
63
|
-
title: '<code>option</code>',
|
64
|
-
table: [
|
65
|
-
['0', 'string', 'Value'],
|
66
|
-
['1', 'string', 'Label (defaults to value if not passed)'],
|
67
|
-
]
|
68
|
-
}
|
69
|
-
]
|
70
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
{% inputWrapper params.error %}
|
2
|
-
<div class="c-input__wrap">
|
3
|
-
<label class="{{ 'u-hidden' if params.hideLabel else 'c-label' }}{{ params.classes }}" for="{{ params.id }}">{{ params.label }}</label>
|
4
|
-
<select class="c-input c-input--select" name="{{ params.name or params.id }}" id="{{ params.id }}" {{ 'required' if params.required }} {{ 'disabled' if params.disabled }}>
|
5
|
-
{% if params.placeholder %}<option value="">{{ params.placeholder }}</option>{% endif %}
|
6
|
-
{% if params.options | length %}
|
7
|
-
{% for option in params.options %}
|
8
|
-
<option value="{{ option[0] }}" {{ 'selected' if params.value == option[0] }}>{{ option[1] or option[0] }}</option>
|
9
|
-
{% endfor %}
|
10
|
-
{% endif %}
|
11
|
-
</select>
|
12
|
-
</div>
|
13
|
-
{% endinputWrapper %}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
const categories = require('../component/categories');
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
title: 'Textarea',
|
5
|
-
category: categories.form,
|
6
|
-
component: {
|
7
|
-
name: 'textarea',
|
8
|
-
folder: 'input'
|
9
|
-
},
|
10
|
-
figma: 'https://www.figma.com/file/rUQ6aPQAfBX55o3hH0Lqb3/Design-exploration?node-id=213%3A918',
|
11
|
-
preview: 'form',
|
12
|
-
context: {
|
13
|
-
label: 'Label',
|
14
|
-
name: 'name',
|
15
|
-
id: 'id',
|
16
|
-
placeholder: 'Placeholder',
|
17
|
-
required: true
|
18
|
-
},
|
19
|
-
variants: [
|
20
|
-
{
|
21
|
-
title: 'With error',
|
22
|
-
context: {
|
23
|
-
error: true
|
24
|
-
}
|
25
|
-
},
|
26
|
-
{
|
27
|
-
title: 'With error message',
|
28
|
-
context: {
|
29
|
-
error: 'This field is required'
|
30
|
-
}
|
31
|
-
},
|
32
|
-
{
|
33
|
-
title: 'Disabled',
|
34
|
-
context: {
|
35
|
-
disabled: true
|
36
|
-
}
|
37
|
-
}
|
38
|
-
],
|
39
|
-
props: [
|
40
|
-
{
|
41
|
-
table: [
|
42
|
-
['label', 'string'],
|
43
|
-
['id', 'string', 'ID attribute'],
|
44
|
-
['name', 'string', 'Name attribute (falls back to ID)'],
|
45
|
-
['type', 'string', 'Defaults to text'],
|
46
|
-
['placeholder', 'string'],
|
47
|
-
['required', 'bool']
|
48
|
-
]
|
49
|
-
}
|
50
|
-
]
|
51
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
{% inputWrapper params.error %}
|
2
|
-
<label class="{{ 'u-hidden' if params.hideLabel else 'c-label' }}{{ params.classes }}" for="{{ params.id }}">{{ params.label }}</label>
|
3
|
-
<textarea class="c-input c-input--textarea" name="{{ params.name or params.id }}" placeholder="{{ params.placeholder }}" id="{{ params.id }}" {{ 'required' if params.required }} {{ 'disabled' if params.disabled }}></textarea>
|
4
|
-
{% endinputWrapper %}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
const categories = require('../component/categories');
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
title: 'Toggle',
|
5
|
-
category: categories.form,
|
6
|
-
component: {
|
7
|
-
name: 'toggle',
|
8
|
-
folder: 'input'
|
9
|
-
},
|
10
|
-
figma: 'https://www.figma.com/file/szD8e7jNeWIfKpt6y41isi/Franklin-design-system?node-id=213-918',
|
11
|
-
preview: 'form',
|
12
|
-
context: {
|
13
|
-
label: 'Label',
|
14
|
-
name: 'name',
|
15
|
-
id: 'id'
|
16
|
-
},
|
17
|
-
variants: [
|
18
|
-
{
|
19
|
-
title: 'Toggled on',
|
20
|
-
context: {
|
21
|
-
checked: true
|
22
|
-
}
|
23
|
-
},
|
24
|
-
{
|
25
|
-
title: 'Disabled',
|
26
|
-
context: {
|
27
|
-
disabled: true
|
28
|
-
}
|
29
|
-
}
|
30
|
-
],
|
31
|
-
props: [
|
32
|
-
{
|
33
|
-
table: [
|
34
|
-
['label', 'string'],
|
35
|
-
['id', 'string', 'ID attribute'],
|
36
|
-
['name', 'string', 'Name attribute (falls back to ID)'],
|
37
|
-
['checked', 'bool', 'Is this input checked?']
|
38
|
-
]
|
39
|
-
}
|
40
|
-
]
|
41
|
-
}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
<label for="{{ params.id }}" class="c-toggle">
|
2
|
-
<input type="checkbox" class="c-toggle__checkbox" id="{{ params.id }}" value="{{ params.value }}" role="switch" aria-checked="false" aria-label="{{ params.label }}" {{ 'checked' if params.checked }} {{ 'required' if params.required }} {{ 'disabled' if params.disabled }} />
|
3
|
-
<span class="c-toggle__slider"></span>
|
4
|
-
<span class="c-toggle__label">{{ params.label }}</span>
|
5
|
-
</label>
|