@cooperco/cooper-component-library 0.1.86 → 0.1.87
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/cms/0076-rename-image-to-media-tile-content.cjs +34 -0
- package/dist/cms/contentful/migrations/scripts/0076-rename-image-to-media-tile-content.cjs +34 -0
- package/dist/cms/migrations/scripts/0076-rename-image-to-media-tile-content.cjs +34 -0
- package/dist/cms/scripts/0076-rename-image-to-media-tile-content.cjs +34 -0
- package/dist/lib/css/main.css +69 -83
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const tileContent = migration.editContentType('tileContent')
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// Create the new media field with support for both image and video
|
|
9
|
+
tileContent.editField('image', {
|
|
10
|
+
name: 'Media',
|
|
11
|
+
type: 'Link',
|
|
12
|
+
linkType: 'Entry',
|
|
13
|
+
required: false,
|
|
14
|
+
validations: [{ linkContentType: ['image', 'video'] }],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
// @ts-check
|
|
20
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
21
|
+
down: async function (migration) {
|
|
22
|
+
const tileContent = migration.editContentType('tileContent')
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
// Restore the old image field
|
|
26
|
+
tileContent.editField('image', {
|
|
27
|
+
name: 'Image',
|
|
28
|
+
type: 'Link',
|
|
29
|
+
linkType: 'Entry',
|
|
30
|
+
required: false,
|
|
31
|
+
validations: [{ linkContentType: ['image'] }],
|
|
32
|
+
})
|
|
33
|
+
},
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const tileContent = migration.editContentType('tileContent')
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// Create the new media field with support for both image and video
|
|
9
|
+
tileContent.editField('image', {
|
|
10
|
+
name: 'Media',
|
|
11
|
+
type: 'Link',
|
|
12
|
+
linkType: 'Entry',
|
|
13
|
+
required: false,
|
|
14
|
+
validations: [{ linkContentType: ['image', 'video'] }],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
// @ts-check
|
|
20
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
21
|
+
down: async function (migration) {
|
|
22
|
+
const tileContent = migration.editContentType('tileContent')
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
// Restore the old image field
|
|
26
|
+
tileContent.editField('image', {
|
|
27
|
+
name: 'Image',
|
|
28
|
+
type: 'Link',
|
|
29
|
+
linkType: 'Entry',
|
|
30
|
+
required: false,
|
|
31
|
+
validations: [{ linkContentType: ['image'] }],
|
|
32
|
+
})
|
|
33
|
+
},
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const tileContent = migration.editContentType('tileContent')
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// Create the new media field with support for both image and video
|
|
9
|
+
tileContent.editField('image', {
|
|
10
|
+
name: 'Media',
|
|
11
|
+
type: 'Link',
|
|
12
|
+
linkType: 'Entry',
|
|
13
|
+
required: false,
|
|
14
|
+
validations: [{ linkContentType: ['image', 'video'] }],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
// @ts-check
|
|
20
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
21
|
+
down: async function (migration) {
|
|
22
|
+
const tileContent = migration.editContentType('tileContent')
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
// Restore the old image field
|
|
26
|
+
tileContent.editField('image', {
|
|
27
|
+
name: 'Image',
|
|
28
|
+
type: 'Link',
|
|
29
|
+
linkType: 'Entry',
|
|
30
|
+
required: false,
|
|
31
|
+
validations: [{ linkContentType: ['image'] }],
|
|
32
|
+
})
|
|
33
|
+
},
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const tileContent = migration.editContentType('tileContent')
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// Create the new media field with support for both image and video
|
|
9
|
+
tileContent.editField('image', {
|
|
10
|
+
name: 'Media',
|
|
11
|
+
type: 'Link',
|
|
12
|
+
linkType: 'Entry',
|
|
13
|
+
required: false,
|
|
14
|
+
validations: [{ linkContentType: ['image', 'video'] }],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
// @ts-check
|
|
20
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
21
|
+
down: async function (migration) {
|
|
22
|
+
const tileContent = migration.editContentType('tileContent')
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
// Restore the old image field
|
|
26
|
+
tileContent.editField('image', {
|
|
27
|
+
name: 'Image',
|
|
28
|
+
type: 'Link',
|
|
29
|
+
linkType: 'Entry',
|
|
30
|
+
required: false,
|
|
31
|
+
validations: [{ linkContentType: ['image'] }],
|
|
32
|
+
})
|
|
33
|
+
},
|
|
34
|
+
}
|
package/dist/lib/css/main.css
CHANGED
|
@@ -81,45 +81,13 @@ div {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.tile-content ul,
|
|
85
|
-
ol {
|
|
84
|
+
/* .tile-content ul,
|
|
85
|
+
.tile-content ol {
|
|
86
86
|
padding-left: 1rem;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.content-module-body-copy ul,
|
|
90
|
-
.content-module-body-copy ol {
|
|
91
|
-
padding-left: 1rem;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.content-module-body-copy ul {
|
|
95
|
-
list-style: none;
|
|
96
|
-
padding-left: 1rem;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.content-module-body-copy ul li {
|
|
100
|
-
display: flex;
|
|
101
|
-
align-items: flex-start;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.content-module-body-copy ul li::before {
|
|
105
|
-
content: "•";
|
|
106
|
-
color: var(--bullet-color);
|
|
107
|
-
font-size: 1.2em;
|
|
108
|
-
line-height: inherit;
|
|
109
|
-
flex-shrink: 0;
|
|
110
|
-
margin-right: 0.5rem;
|
|
111
|
-
margin-left: -1rem;
|
|
112
|
-
}
|
|
87
|
+
} */
|
|
113
88
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
padding-left: 1.5rem;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.content-module-body-copy ol li::marker {
|
|
120
|
-
color: var(--bullet-color);
|
|
121
|
-
font-weight: 600;
|
|
122
|
-
}
|
|
89
|
+
/* Bullet list styles in @layer components
|
|
90
|
+
and shared across .content-module-body-copy and .body-copy-with-lists */
|
|
123
91
|
|
|
124
92
|
.content-module-body-copy {
|
|
125
93
|
white-space: pre-line;
|
|
@@ -206,29 +174,29 @@ ol {
|
|
|
206
174
|
}
|
|
207
175
|
|
|
208
176
|
.content-module-body-copy table ul {
|
|
209
|
-
list-style:
|
|
177
|
+
list-style: none;
|
|
210
178
|
margin: 1em 0 0 1em;
|
|
211
|
-
padding-left:
|
|
179
|
+
padding-left: 0;
|
|
212
180
|
text-align: left;
|
|
213
181
|
}
|
|
214
182
|
|
|
215
183
|
.content-module-body-copy table ul li {
|
|
216
|
-
|
|
184
|
+
position: relative;
|
|
185
|
+
padding-left: 1.5em;
|
|
217
186
|
margin: 0;
|
|
218
|
-
padding: 0;
|
|
219
187
|
}
|
|
220
188
|
|
|
221
|
-
.content-module-body-copy table
|
|
222
|
-
|
|
223
|
-
display: none;
|
|
189
|
+
.content-module-body-copy table td:first-child {
|
|
190
|
+
--bullet-color: var(--rosemary);
|
|
224
191
|
}
|
|
225
192
|
|
|
226
|
-
.content-module-body-copy table
|
|
227
|
-
color: var(--
|
|
193
|
+
.content-module-body-copy table td:nth-child(2) {
|
|
194
|
+
--bullet-color: var(--iris);
|
|
228
195
|
}
|
|
229
196
|
|
|
230
|
-
.content-module-body-copy table td:nth-child(
|
|
231
|
-
|
|
197
|
+
.content-module-body-copy table td:nth-child(3),
|
|
198
|
+
.content-module-body-copy table td:nth-child(4) {
|
|
199
|
+
--bullet-color: var(--rosemary);
|
|
232
200
|
}
|
|
233
201
|
|
|
234
202
|
.content-module-body-copy table ul p {
|
|
@@ -240,7 +208,7 @@ ol {
|
|
|
240
208
|
}
|
|
241
209
|
|
|
242
210
|
.accordion-item-body ul,
|
|
243
|
-
ol {
|
|
211
|
+
.accordion-item-body ol {
|
|
244
212
|
padding-left: 1rem;
|
|
245
213
|
}
|
|
246
214
|
|
|
@@ -250,7 +218,6 @@ ol {
|
|
|
250
218
|
}
|
|
251
219
|
}
|
|
252
220
|
|
|
253
|
-
|
|
254
221
|
@media (min-width: 1024px) {
|
|
255
222
|
.container-hero-right {
|
|
256
223
|
padding-right: max(20px, calc((100% - 1024px) / 2));
|
|
@@ -313,44 +280,63 @@ ol {
|
|
|
313
280
|
transform: translateY(0);
|
|
314
281
|
}
|
|
315
282
|
|
|
316
|
-
/*
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
283
|
+
/* ─── Unified bullet styles ─── */
|
|
284
|
+
@layer components {
|
|
285
|
+
/* Unordered list */
|
|
286
|
+
.content-module-body-copy ul,
|
|
287
|
+
.body-copy-with-lists ul,
|
|
288
|
+
.accordion-item-body ul {
|
|
289
|
+
list-style: none;
|
|
290
|
+
padding-left: 0;
|
|
291
|
+
}
|
|
322
292
|
|
|
323
|
-
.body-copy
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
293
|
+
.content-module-body-copy ul li,
|
|
294
|
+
.body-copy-with-lists ul li,
|
|
295
|
+
.accordion-item-body ul li {
|
|
296
|
+
position: relative;
|
|
297
|
+
padding-left: 1.5rem;
|
|
298
|
+
}
|
|
327
299
|
|
|
328
|
-
.body-copy
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
300
|
+
.content-module-body-copy ul li::before,
|
|
301
|
+
.body-copy-with-lists ul li::before,
|
|
302
|
+
.accordion-item-body ul li::before {
|
|
303
|
+
content: '•';
|
|
304
|
+
color: var(--bullet-color);
|
|
305
|
+
font-size: 2em;
|
|
306
|
+
line-height: 0.8;
|
|
307
|
+
position: absolute;
|
|
308
|
+
left: 0;
|
|
309
|
+
}
|
|
336
310
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
311
|
+
/* Ordered list */
|
|
312
|
+
.content-module-body-copy ol,
|
|
313
|
+
.body-copy-with-lists ol,
|
|
314
|
+
.accordion-item-body ol {
|
|
315
|
+
list-style: none;
|
|
316
|
+
padding-left: 0;
|
|
317
|
+
counter-reset: list-counter;
|
|
318
|
+
}
|
|
342
319
|
|
|
343
|
-
.body-copy
|
|
344
|
-
|
|
345
|
-
|
|
320
|
+
.content-module-body-copy ol li,
|
|
321
|
+
.body-copy-with-lists ol li,
|
|
322
|
+
.accordion-item-body ol li {
|
|
323
|
+
position: relative;
|
|
324
|
+
padding-left: 1em;
|
|
325
|
+
counter-increment: list-counter;
|
|
326
|
+
}
|
|
346
327
|
|
|
347
|
-
.body-copy
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
328
|
+
.content-module-body-copy ol li::before,
|
|
329
|
+
.body-copy-with-lists ol li::before,
|
|
330
|
+
.accordion-item-body ol li::before {
|
|
331
|
+
content: counter(list-counter) '.';
|
|
332
|
+
color: var(--bullet-color);
|
|
333
|
+
font-size: 1em;
|
|
334
|
+
line-height: inherit;
|
|
335
|
+
position: absolute;
|
|
336
|
+
left: 0;
|
|
337
|
+
top: 0;
|
|
338
|
+
font-weight: 600;
|
|
339
|
+
}
|
|
354
340
|
}
|
|
355
341
|
|
|
356
342
|
@layer utilities {
|