@cooperco/cooper-component-library 0.1.99 → 0.1.101
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/0085-add-vertical-alignment-to-content-module.cjs +36 -0
- package/dist/cms/contentful/migrations/scripts/0085-add-vertical-alignment-to-content-module.cjs +36 -0
- package/dist/cms/migrations/scripts/0085-add-vertical-alignment-to-content-module.cjs +36 -0
- package/dist/cms/scripts/0085-add-vertical-alignment-to-content-module.cjs +36 -0
- package/dist/lib/component-lib.js +13 -13
- package/dist/lib/component-lib.umd.cjs +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('verticalAlignment', {
|
|
8
|
+
name: 'Vertical Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Top', 'Center', 'Bottom'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'verticalAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Set the vertical alignment of the content module within its container.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('verticalAlignment').afterField('alignment')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('verticalAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
package/dist/cms/contentful/migrations/scripts/0085-add-vertical-alignment-to-content-module.cjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('verticalAlignment', {
|
|
8
|
+
name: 'Vertical Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Top', 'Center', 'Bottom'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'verticalAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Set the vertical alignment of the content module within its container.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('verticalAlignment').afterField('alignment')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('verticalAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('verticalAlignment', {
|
|
8
|
+
name: 'Vertical Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Top', 'Center', 'Bottom'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'verticalAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Set the vertical alignment of the content module within its container.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('verticalAlignment').afterField('alignment')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('verticalAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('verticalAlignment', {
|
|
8
|
+
name: 'Vertical Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Top', 'Center', 'Bottom'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'verticalAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Set the vertical alignment of the content module within its container.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('verticalAlignment').afterField('alignment')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('verticalAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
|
@@ -7913,7 +7913,7 @@ const Zr = {
|
|
|
7913
7913
|
key: 2,
|
|
7914
7914
|
class: "mx-auto mt-16 w-fit"
|
|
7915
7915
|
}, u6 = {
|
|
7916
|
-
key:
|
|
7916
|
+
key: 3,
|
|
7917
7917
|
class: "w-full pt-2"
|
|
7918
7918
|
}, h6 = ["src"], f6 = /* @__PURE__ */ t2({
|
|
7919
7919
|
__name: "TileCollectionModule",
|
|
@@ -8014,16 +8014,16 @@ const Zr = {
|
|
|
8014
8014
|
size: "xl",
|
|
8015
8015
|
"background-color": y(i)
|
|
8016
8016
|
}), null, 16, ["background-color"]))), 128))
|
|
8017
|
+
])) : k("", !0),
|
|
8018
|
+
u.includeDecoration && !s.value ? (m(), M("div", u6, [
|
|
8019
|
+
S("img", {
|
|
8020
|
+
src: d.value,
|
|
8021
|
+
class: "mx-auto w-full lg:w-3/4",
|
|
8022
|
+
alt: "Decorative background image",
|
|
8023
|
+
loading: "lazy"
|
|
8024
|
+
}, null, 8, h6)
|
|
8017
8025
|
])) : k("", !0)
|
|
8018
|
-
], 2)
|
|
8019
|
-
u.includeDecoration && !s.value ? (m(), M("div", u6, [
|
|
8020
|
-
S("img", {
|
|
8021
|
-
src: d.value,
|
|
8022
|
-
class: "mx-auto w-full lg:w-3/4",
|
|
8023
|
-
alt: "Decorative background image",
|
|
8024
|
-
loading: "lazy"
|
|
8025
|
-
}, null, 8, h6)
|
|
8026
|
-
])) : k("", !0)
|
|
8026
|
+
], 2)
|
|
8027
8027
|
], 2);
|
|
8028
8028
|
};
|
|
8029
8029
|
}
|
|
@@ -8927,12 +8927,12 @@ const D6 = ["innerHTML"], R6 = ["innerHTML"], j6 = ["src"], H6 = /* @__PURE__ */
|
|
|
8927
8927
|
}, [
|
|
8928
8928
|
u.headline ? (m(), M("h3", {
|
|
8929
8929
|
key: 0,
|
|
8930
|
-
class: x(`tile-content-headline w-full ${(($ = o.value) == null ? void 0 : $.headline) ?? ""} text-${y(l).subheadline}`),
|
|
8930
|
+
class: x(`tile-content-headline w-full ${(($ = o.value) == null ? void 0 : $.headline) ?? ""} text-${y(l).subheadline} ${u.includeDecoration ? "" : "max-w-none"}`),
|
|
8931
8931
|
innerHTML: u.headline
|
|
8932
8932
|
}, null, 10, D6)) : k("", !0),
|
|
8933
8933
|
u.bodyCopy ? (m(), M("div", {
|
|
8934
8934
|
key: 1,
|
|
8935
|
-
class: x(`tile-content-body-copy ${((A = o.value) == null ? void 0 : A.description) ?? ""} w-full text-${y(l).copy} body-copy-with-lists`),
|
|
8935
|
+
class: x(`tile-content-body-copy ${((A = o.value) == null ? void 0 : A.description) ?? ""} w-full text-${y(l).copy} body-copy-with-lists ${u.includeDecoration ? "" : "max-w-none"}`),
|
|
8936
8936
|
style: M2({ "--bullet-color": `var(--${y(l).bullet})` }),
|
|
8937
8937
|
innerHTML: u.bodyCopy
|
|
8938
8938
|
}, null, 14, R6)) : k("", !0)
|
|
@@ -9011,7 +9011,7 @@ const D6 = ["innerHTML"], R6 = ["innerHTML"], j6 = ["src"], H6 = /* @__PURE__ */
|
|
|
9011
9011
|
], 2);
|
|
9012
9012
|
};
|
|
9013
9013
|
}
|
|
9014
|
-
}), z6 = /* @__PURE__ */ Ae(H6, [["__scopeId", "data-v-
|
|
9014
|
+
}), z6 = /* @__PURE__ */ Ae(H6, [["__scopeId", "data-v-85251556"]]), N6 = { key: 0 }, V6 = /* @__PURE__ */ t2({
|
|
9015
9015
|
__name: "HelloBanner",
|
|
9016
9016
|
props: {
|
|
9017
9017
|
__typename: {},
|