mp-design-system 1.2.62 → 1.2.64

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 (47) hide show
  1. package/dist/build/js/app.js +22 -2
  2. package/dist/build/scss/library.css +1 -2
  3. package/dist/build/scss/main.css +1 -2
  4. package/package.json +12 -6
  5. package/src/_includes/components/card/card.scss +1 -0
  6. package/src/_includes/components/card/product-card.njk +8 -0
  7. package/src/_includes/components/card-new/card-new.config.js +95 -0
  8. package/src/_includes/components/card-new/card-new.md +0 -0
  9. package/src/_includes/components/card-new/card-new.njk +169 -0
  10. package/src/_includes/components/card-new/card-new.scss +156 -0
  11. package/src/_includes/components/card-new/macro.njk +5 -0
  12. package/src/_includes/components/event-card/event-card.config.js +108 -0
  13. package/src/_includes/components/event-card/event-card.njk +1 -0
  14. package/src/_includes/components/event-card/event-card.scss +49 -0
  15. package/src/_includes/components/event-card/macro.njk +5 -0
  16. package/src/_includes/components/product-card/macro.njk +5 -0
  17. package/src/_includes/components/product-card/product-card.config.js +84 -0
  18. package/src/_includes/components/product-card/product-card.njk +1 -0
  19. package/src/_includes/components/product-card/product-card.scss +36 -0
  20. package/src/_includes/components/resource-card/macro.njk +5 -0
  21. package/src/_includes/components/resource-card/resource-card.config.js +59 -0
  22. package/src/_includes/components/resource-card/resource-card.njk +1 -0
  23. package/src/_includes/components/resource-card/resource-card.scss +0 -0
  24. package/src/_includes/components/twi/twi.scss +14 -0
  25. package/src/_includes/includes/system-scripts.njk +13 -0
  26. package/src/_includes/layout.njk +1 -1
  27. package/src/_includes/system-home-page.njk +1 -1
  28. package/src/assets/scss/components/index.scss +3 -0
  29. package/src/assets/scss/library.scss +94 -67
  30. package/src/assets/scss/objects/button-wrap.scss +18 -0
  31. package/src/assets/scss/objects/clickable-parent.scss +3 -0
  32. package/src/assets/scss/objects/index.scss +2 -0
  33. package/src/assets/scss/objects/prose.scss +5 -0
  34. package/src/assets/scss/tools/index.scss +1 -0
  35. package/src/components-full-pages.njk +2 -3
  36. package/src/components-pages.njk +5 -4
  37. package/src/index.njk +1 -86
  38. package/src/prototype/events-hub.njk +10 -9
  39. package/src/prototype/index.njk +330 -201
  40. package/src/prototype/range.njk +23 -12
  41. package/dist/build/arc.abe174a6.svg +0 -1
  42. package/dist/build/concentric.465e6b4d.svg +0 -1
  43. package/dist/build/crystal.8300dbe3.svg +0 -1
  44. package/dist/build/dots-pattern.1bae0e23.svg +0 -1
  45. package/dist/build/js/app.js.map +0 -1
  46. package/dist/build/scss/library.css.map +0 -1
  47. package/dist/build/scss/main.css.map +0 -1
@@ -0,0 +1,18 @@
1
+ @mixin button-wrap {
2
+ display: flex;
3
+ flex-flow: row wrap;
4
+ @include space('gap', '2xs');
5
+
6
+ & > .c-button,
7
+ & > button,
8
+ & > input[type='button'],
9
+ & > input[type='submit'] {
10
+ &:not(:only-child) {
11
+ flex-grow: 1;
12
+ }
13
+ }
14
+ }
15
+
16
+ .o-button-wrap {
17
+ @include button-wrap;
18
+ }
@@ -0,0 +1,3 @@
1
+ .o-clickable-parent {
2
+ @include clickable-parent;
3
+ }
@@ -1,2 +1,4 @@
1
+ @import './button-wrap.scss';
2
+ @import './clickable-parent.scss';
1
3
  @import './prose.scss';
2
4
  @import './grid.scss';
@@ -37,6 +37,11 @@
37
37
  margin-left: 1em;
38
38
  padding-left: 0.5rem;
39
39
 
40
+ // Bizzabo reset
41
+ &::before {
42
+ display: none !important;
43
+ }
44
+
40
45
  h3,
41
46
  h4 {
42
47
  line-height: lh('prose');
@@ -167,5 +167,6 @@
167
167
  inset: 0;
168
168
  cursor: pointer !important;
169
169
  display: flex;
170
+ z-index: 1;
170
171
  }
171
172
  }
@@ -4,9 +4,8 @@ pagination:
4
4
  size: 1
5
5
  alias: component
6
6
  permalink: "components/full/{{ component.slug }}/"
7
- title: 'Components'
8
- renderData:
9
- title: '{{ component.title }}'
7
+ eleventyComputed:
8
+ title: "{{ component.title }}"
10
9
  ---
11
10
 
12
11
  {% extends "layout.njk" %}
@@ -4,10 +4,9 @@ pagination:
4
4
  size: 1
5
5
  alias: component
6
6
  permalink: "components/{{ component.slug }}/"
7
- title: "Components"
8
7
  sidebar: components
9
- renderData:
10
- title: '{{ component.title }}'
8
+ eleventyComputed:
9
+ title: "{{ component.title }}"
11
10
  ---
12
11
 
13
12
  {% extends "library.njk" %}
@@ -53,7 +52,9 @@ renderData:
53
52
  <button type="button" class="c-library__frame-background">Toggle background</button>
54
53
  <a href="/components/full/{{ component.slug }}" target="_blank">Open fullscreen</a>
55
54
  </div>
56
- <iframe src="/components/full/{{ component.slug }}" sandbox="allow-same-origin allow-scripts allow-forms allow-modals" style="" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" scrolling="yes"></iframe>
55
+ <div class="c-library__frame-wrap" id="iframe-wrap">
56
+ <iframe src="/components/full/{{ component.slug }}" sandbox="allow-same-origin allow-scripts allow-forms allow-modals" style="" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" scrolling="yes"></iframe>
57
+ </div>
57
58
  </div>
58
59
  </div>
59
60
 
package/src/index.njk CHANGED
@@ -1,9 +1,8 @@
1
1
  ---
2
- title: "Welcome"
3
2
  subtitle: Our design system helps us create consistent experiences across our websites and beyond. It also makes the design and development process faster, more efficient and scalable.
4
3
  description: Franklin is Malvern Panalytical's design system for public-facing websites and digital products.
5
4
  layout: system-home-page
6
- renderData:
5
+ eleventyComputed:
7
6
  title: "Welcome to the Franklin design system"
8
7
  ---
9
8
 
@@ -73,90 +72,6 @@ renderData:
73
72
  </div>
74
73
  </div>
75
74
 
76
-
77
-
78
- {# <div class="o-grid o-grid--of-four">
79
- {{ card({
80
- theme: {
81
- layout: 'single',
82
- size: 'large',
83
- border: true
84
- },
85
- header: {
86
- title: 'Quick start'
87
- },
88
- body: {
89
- content: '<p>The basics of how to make a digital product \'feel\' like Malvern Panalytical.</p>'
90
- },
91
- footer: {
92
- cta: {
93
- link: '/quickstart',
94
- label: 'Read the quick start guide'
95
- }
96
- }
97
- }) }}
98
-
99
- {{ card({
100
- theme: {
101
- layout: 'single',
102
- size: 'large',
103
- border: true
104
- },
105
- header: {
106
- title: 'Brand and visual identity'
107
- },
108
- body: {
109
- content: '<p>Colors, fonts, logos; it\'s all here.</p>'
110
- },
111
- footer: {
112
- cta: {
113
- link: '/brand/',
114
- label: 'Read brand guidelines'
115
- }
116
- }
117
- }) }}
118
-
119
- {{ card({
120
- theme: {
121
- layout: 'single',
122
- size: 'large',
123
- border: true
124
- },
125
- header: {
126
- title: 'Tone of voice'
127
- },
128
- body: {
129
- content: '<p>Guidelines to help us make our writing clearer, simpler and more inspiring.</p>'
130
- },
131
- footer: {
132
- cta: {
133
- link: '/content/',
134
- label: 'Read tone of voice guidelines'
135
- }
136
- }
137
- }) }}
138
-
139
- {{ card({
140
- theme: {
141
- layout: 'single',
142
- size: 'large',
143
- border: true
144
- },
145
- header: {
146
- title: 'Component library'
147
- },
148
- body: {
149
- content: '<p>Styles and reusable building blocks of the system.</p>'
150
- },
151
- footer: {
152
- cta: {
153
- link: '/components/',
154
- label: 'Browse components'
155
- }
156
- }
157
- }) }}
158
- </div> #}
159
-
160
75
  {% set content %}
161
76
 
162
77
  ## What is Franklin?
@@ -10,6 +10,8 @@ tagTitle: Events hub
10
10
  {% from "components/product-signpost/macro.njk" import productSignpost %}
11
11
  {% from "components/signpost/macro.njk" import signpost %}
12
12
  {% from "components/twi/macro.njk" import twi %}
13
+ {% from "components/twi/macro.njk" import twi %}
14
+ {% from "components/event-card/macro.njk" import eventCardNew %}
13
15
 
14
16
  {% set siteNav %}{% include "navigation/corporate.njk" %}{% endset %}
15
17
 
@@ -110,12 +112,10 @@ tagTitle: Events hub
110
112
  <h2 class="c-h c-h--step-5">This week</h2>
111
113
  </header>
112
114
 
113
- {{ card({
114
- theme: {
115
- layout: 'multi c-card--layout-multi-40-60',
116
- name: 'featured',
117
- switch: false
118
- },
115
+ {{ eventCardNew({
116
+ type: 'event',
117
+ theme: 'dark',
118
+ layout: 'switch',
119
119
  image: {
120
120
  src: 'https://p3.aprimocdn.net/malvernpanalytical/346cf3ca-b1a0-4725-8ba4-adea00c33589/shutterstock_1099481945_Original%20file.jpg?quality=60&width=810',
121
121
  alt: 'Alt'
@@ -124,10 +124,11 @@ tagTitle: Events hub
124
124
  title: 'Does your nasal spray have the right droplet size?',
125
125
  meta: ['English'],
126
126
  date: {
127
- date: '2021-02-09' | createDate,
128
- time: '11:00 – 1200',
127
+ date: '2024-08-09' | createDate,
128
+ time: '11:00 – 12:00',
129
129
  timezone: 'EST'
130
- }
130
+ },
131
+ location: 'Virtual'
131
132
  },
132
133
  body: {
133
134
  keySpecs: [