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.
- package/dist/build/js/app.js +22 -2
- package/dist/build/scss/library.css +1 -2
- package/dist/build/scss/main.css +1 -2
- package/package.json +12 -6
- package/src/_includes/components/card/card.scss +1 -0
- package/src/_includes/components/card/product-card.njk +8 -0
- package/src/_includes/components/card-new/card-new.config.js +95 -0
- package/src/_includes/components/card-new/card-new.md +0 -0
- package/src/_includes/components/card-new/card-new.njk +169 -0
- package/src/_includes/components/card-new/card-new.scss +156 -0
- package/src/_includes/components/card-new/macro.njk +5 -0
- package/src/_includes/components/event-card/event-card.config.js +108 -0
- package/src/_includes/components/event-card/event-card.njk +1 -0
- package/src/_includes/components/event-card/event-card.scss +49 -0
- package/src/_includes/components/event-card/macro.njk +5 -0
- package/src/_includes/components/product-card/macro.njk +5 -0
- package/src/_includes/components/product-card/product-card.config.js +84 -0
- package/src/_includes/components/product-card/product-card.njk +1 -0
- package/src/_includes/components/product-card/product-card.scss +36 -0
- package/src/_includes/components/resource-card/macro.njk +5 -0
- package/src/_includes/components/resource-card/resource-card.config.js +59 -0
- package/src/_includes/components/resource-card/resource-card.njk +1 -0
- package/src/_includes/components/resource-card/resource-card.scss +0 -0
- package/src/_includes/components/twi/twi.scss +14 -0
- package/src/_includes/includes/system-scripts.njk +13 -0
- package/src/_includes/layout.njk +1 -1
- package/src/_includes/system-home-page.njk +1 -1
- package/src/assets/scss/components/index.scss +3 -0
- package/src/assets/scss/library.scss +94 -67
- package/src/assets/scss/objects/button-wrap.scss +18 -0
- package/src/assets/scss/objects/clickable-parent.scss +3 -0
- package/src/assets/scss/objects/index.scss +2 -0
- package/src/assets/scss/objects/prose.scss +5 -0
- package/src/assets/scss/tools/index.scss +1 -0
- package/src/components-full-pages.njk +2 -3
- package/src/components-pages.njk +5 -4
- package/src/index.njk +1 -86
- package/src/prototype/events-hub.njk +10 -9
- package/src/prototype/index.njk +330 -201
- package/src/prototype/range.njk +23 -12
- package/dist/build/arc.abe174a6.svg +0 -1
- package/dist/build/concentric.465e6b4d.svg +0 -1
- package/dist/build/crystal.8300dbe3.svg +0 -1
- package/dist/build/dots-pattern.1bae0e23.svg +0 -1
- package/dist/build/js/app.js.map +0 -1
- package/dist/build/scss/library.css.map +0 -1
- 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
|
+
}
|
package/src/components-pages.njk
CHANGED
@@ -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
|
-
|
10
|
-
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
|
-
<
|
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
|
-
|
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
|
-
{{
|
114
|
-
|
115
|
-
|
116
|
-
|
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: '
|
128
|
-
time: '11:00 –
|
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: [
|