mp-design-system 1.2.28 → 1.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/build/scss/library.css +1 -1
  2. package/dist/build/scss/library.css.map +1 -1
  3. package/dist/build/scss/main.css +1 -1
  4. package/dist/build/scss/main.css.map +1 -1
  5. package/package.json +1 -1
  6. package/src/_includes/components/button/button.scss +1 -1
  7. package/src/_includes/components/card/existing-customer-card.config.js +2 -2
  8. package/src/_includes/components/card/existing-customer-card.njk +7 -3
  9. package/src/_includes/components/card/industry-card.config.js +26 -3
  10. package/src/_includes/components/card/industry-card.njk +32 -6
  11. package/src/_includes/components/card/industry-card.scss +76 -6
  12. package/src/_includes/components/card/macro.njk +10 -2
  13. package/src/_includes/components/card/measurement-type-card.config.js +35 -0
  14. package/src/_includes/components/card/measurement-type-card.njk +35 -0
  15. package/src/_includes/components/card/measurement-type-card.scss +56 -0
  16. package/src/_includes/components/card/{product-comparison-card.config.js → product-card.config.js} +28 -27
  17. package/src/_includes/components/card/product-card.njk +50 -0
  18. package/src/_includes/components/card/product-card.scss +88 -0
  19. package/src/_includes/components/card/search-result-card.config.js +2 -2
  20. package/src/_includes/components/card/search-result-card.njk +9 -5
  21. package/src/_includes/components/card/search-result-card.scss +5 -1
  22. package/src/_includes/components/card/technology-card.config.js +35 -0
  23. package/src/_includes/components/card/technology-card.njk +35 -0
  24. package/src/_includes/components/card/technology-card.scss +56 -0
  25. package/src/_includes/components/signpost/signpost.config.js +14 -1
  26. package/src/_includes/components/signpost/signpost.njk +7 -4
  27. package/src/_includes/components/signpost/signpost.scss +23 -0
  28. package/src/_includes/components/tabs/tabs.scss +4 -0
  29. package/src/_includes/components/twi/twi.scss +4 -0
  30. package/src/_includes/navigation/corporate.njk +0 -3
  31. package/src/assets/scss/components/index.scss +3 -1
  32. package/src/assets/scss/components/product-finder.scss +1 -1
  33. package/src/assets/scss/tools/cutoff.scss +5 -1
  34. package/src/assets/scss/utilities/space.scss +6 -0
  35. package/src/index.njk +1 -1
  36. package/src/prototype/events-hub.njk +463 -0
  37. package/src/prototype/index.njk +251 -182
  38. package/src/prototype/range.njk +5 -5
  39. package/src/prototype/sections.njk +6 -1
  40. package/src/static/svg/icon-globe-alt.svg +4 -0
  41. package/src/static/svg/icon-live-webinars.svg +6 -0
  42. package/src/static/svg/icon-recorded-webinars.svg +4 -0
  43. package/src/static/svg/icon-user-trainings.svg +5 -0
  44. package/src/_includes/components/card/product-comparison-card.njk +0 -37
  45. package/src/_includes/components/card/product-comparison-card.scss +0 -79
@@ -1,37 +0,0 @@
1
- {%- from "components/button/macro.njk" import button -%}
2
- {%- from "components/twi/macro.njk" import twi -%}
3
-
4
- <article class="mp c-product-comparison-card" role="article" aria-label="Product card">
5
- <div class="c-product-comparison-card__body">
6
- <h3 class="c-product-comparison-card__heading">{{ params.title }}</h3>
7
- <p>{{ params.description }}</p>
8
- {% if params.features | length %}
9
- <p class="c-product-comparison-card__features-list-heading">Features include</p>
10
- <ul class="c-product-comparison-card__features-list">
11
- {% for feature in params.features %}
12
- <li class="c-product-comparison-card__feature--{{ feature.icon }}">
13
- {{ twi({
14
- label: feature.label,
15
- icon: feature.icon
16
- }) }}
17
- </li>
18
- {% endfor %}
19
- </ul>
20
- {% endif %}
21
- <footer class="c-product-comparison-card__footer">
22
- {% if params.footer.buttons | length %}
23
- {% for item in params.footer.buttons %}
24
- {{ button({
25
- link: item.link,
26
- label: item.label,
27
- colour: 'outline-green' if loop.index0 == 0 else 'green'
28
- }) }}
29
- {% endfor %}
30
- {% endif %}
31
- </footer>
32
- </div>
33
- <figure class="c-product-comparison-card__image">
34
- <img src="{{ params.image.src }}" alt="{{ params.image.alt or params.title }}" />
35
- </figure>
36
- </article>
37
-
@@ -1,79 +0,0 @@
1
- .c-product-comparison-card {
2
- @extend .u-flow--2xs;
3
- background: color('white');
4
- display: flex;
5
- flex-flow: column;
6
- flex-grow: 1;
7
- border: 1px solid color('petrol', 'step-2');
8
-
9
- & > * + * {
10
- @include margin-top('2xs');
11
- }
12
-
13
- &__body {
14
- @include padding('s-m');
15
- display: flex;
16
- flex-flow: column;
17
- flex-grow: 1;
18
-
19
- & > * + * {
20
- @include margin-top('xs');
21
- }
22
- }
23
-
24
- &__heading {
25
- @extend .c-h;
26
- @extend .c-h--step-1;
27
- }
28
-
29
- &__features-list {
30
- @include margin-top('2xs');
31
- list-style: none;
32
-
33
- &-heading {
34
- @include margin-top('s');
35
- font-weight: weight("bold");
36
- }
37
-
38
- & > * + * {
39
- @include margin-top('3xs');
40
- }
41
- }
42
-
43
- &__feature {
44
- &--tick {
45
- svg {
46
- color: color('green');
47
- }
48
- }
49
-
50
- &--cross {
51
- color: color('grey', 'step-2');
52
- }
53
- }
54
-
55
- &__footer {
56
- @include margin-top('auto');
57
- @include padding-top('s');
58
- display: flex;
59
- flex-flow: row;
60
- flex-wrap: wrap;
61
- gap: var(--space-2xs);
62
-
63
- & > * {
64
- flex-grow: 1;
65
- }
66
- }
67
-
68
- &__image {
69
- height: 10em;
70
- order: -1;
71
- aspect-ratio: 16/9;
72
-
73
- img {
74
- height: 100%;
75
- width: 100%;
76
- object-fit: contain;
77
- }
78
- }
79
- }