@cooperco/cooper-component-library 0.1.99 → 0.1.100

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.
@@ -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
+ }
@@ -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: 0,
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
  }