@cooperco/cooper-component-library 0.1.133 → 0.1.135

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,29 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const ctaAction = migration.editContentType('ctaAction')
6
+
7
+ ctaAction.editField('triggerMappingValue').validations([
8
+ {
9
+ in: ['Sign-in modal', 'Load More', 'Sign-up modal'],
10
+ },
11
+ ])
12
+
13
+ ctaAction.changeFieldControl('triggerMappingValue', 'builtin', 'dropdown', {
14
+ helpText: 'A trigger that determines the action of the CTA.',
15
+ })
16
+ },
17
+
18
+ // @ts-check
19
+ /** @type { import('contentful-migration').MigrationFunction } */
20
+ down: function (migration) {
21
+ const ctaAction = migration.editContentType('ctaAction')
22
+
23
+ ctaAction.editField('triggerMappingValue').validations([
24
+ {
25
+ in: ['Sign-in modal', 'Load More'],
26
+ },
27
+ ])
28
+ },
29
+ }
@@ -0,0 +1,29 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const ctaAction = migration.editContentType('ctaAction')
6
+
7
+ ctaAction.editField('triggerMappingValue').validations([
8
+ {
9
+ in: ['Sign-in modal', 'Load More', 'Sign-up modal'],
10
+ },
11
+ ])
12
+
13
+ ctaAction.changeFieldControl('triggerMappingValue', 'builtin', 'dropdown', {
14
+ helpText: 'A trigger that determines the action of the CTA.',
15
+ })
16
+ },
17
+
18
+ // @ts-check
19
+ /** @type { import('contentful-migration').MigrationFunction } */
20
+ down: function (migration) {
21
+ const ctaAction = migration.editContentType('ctaAction')
22
+
23
+ ctaAction.editField('triggerMappingValue').validations([
24
+ {
25
+ in: ['Sign-in modal', 'Load More'],
26
+ },
27
+ ])
28
+ },
29
+ }
@@ -0,0 +1,29 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const ctaAction = migration.editContentType('ctaAction')
6
+
7
+ ctaAction.editField('triggerMappingValue').validations([
8
+ {
9
+ in: ['Sign-in modal', 'Load More', 'Sign-up modal'],
10
+ },
11
+ ])
12
+
13
+ ctaAction.changeFieldControl('triggerMappingValue', 'builtin', 'dropdown', {
14
+ helpText: 'A trigger that determines the action of the CTA.',
15
+ })
16
+ },
17
+
18
+ // @ts-check
19
+ /** @type { import('contentful-migration').MigrationFunction } */
20
+ down: function (migration) {
21
+ const ctaAction = migration.editContentType('ctaAction')
22
+
23
+ ctaAction.editField('triggerMappingValue').validations([
24
+ {
25
+ in: ['Sign-in modal', 'Load More'],
26
+ },
27
+ ])
28
+ },
29
+ }
@@ -0,0 +1,29 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const ctaAction = migration.editContentType('ctaAction')
6
+
7
+ ctaAction.editField('triggerMappingValue').validations([
8
+ {
9
+ in: ['Sign-in modal', 'Load More', 'Sign-up modal'],
10
+ },
11
+ ])
12
+
13
+ ctaAction.changeFieldControl('triggerMappingValue', 'builtin', 'dropdown', {
14
+ helpText: 'A trigger that determines the action of the CTA.',
15
+ })
16
+ },
17
+
18
+ // @ts-check
19
+ /** @type { import('contentful-migration').MigrationFunction } */
20
+ down: function (migration) {
21
+ const ctaAction = migration.editContentType('ctaAction')
22
+
23
+ ctaAction.editField('triggerMappingValue').validations([
24
+ {
25
+ in: ['Sign-in modal', 'Load More'],
26
+ },
27
+ ])
28
+ },
29
+ }
@@ -9651,8 +9651,8 @@ function Ol() {
9651
9651
  Ol();
9652
9652
  const Fl = ["innerHTML"], Dl = ["innerHTML"], Rl = ["src"], jl = {
9653
9653
  key: 2,
9654
- class: "relative z-10 w-full"
9655
- }, Hl = { class: "relative z-10 mt-4 flex flex-wrap items-center justify-center gap-6" }, zl = { class: "flex flex-wrap items-center justify-center gap-4" }, Nl = ["aria-label", "aria-current", "onClick"], Vl = /* @__PURE__ */ o2({
9654
+ class: "relative z-10 w-full min-w-[150px] md:min-w-[350px] overflow-hidden"
9655
+ }, Hl = { class: "relative z-10 mt-4 flex flex-wrap items-center justify-center gap-3 md:gap-6" }, zl = { class: "flex flex-wrap items-center justify-center gap-4" }, Nl = ["aria-label", "aria-current", "onClick"], Vl = /* @__PURE__ */ o2({
9656
9656
  __name: "TileContentImageStackedAnimatedTile",
9657
9657
  props: {
9658
9658
  __typename: {},
@@ -9693,11 +9693,12 @@ const Fl = ["innerHTML"], Dl = ["innerHTML"], Rl = ["src"], jl = {
9693
9693
  i.value >= _.length && (i.value = 0);
9694
9694
  });
9695
9695
  const g = {
9696
+ root: "w-full",
9696
9697
  itemscontent: "overflow-hidden w-full rounded-full",
9697
9698
  itemscontainer: "flex",
9698
9699
  item: "flex shrink-0 grow w-full"
9699
- }, p = (_) => N(
9700
- "w-full min-w-[150px] md:min-w-[350px] relative rounded-full z-10",
9700
+ }, p = (_, E = !1) => N(
9701
+ E ? "w-full relative rounded-full z-10" : "w-full min-w-[150px] md:min-w-[350px] relative rounded-full z-10",
9701
9702
  _ == null ? void 0 : _.class
9702
9703
  ), b = A(() => {
9703
9704
  var _;
@@ -9749,7 +9750,7 @@ const Fl = ["innerHTML"], Dl = ["innerHTML"], Rl = ["src"], jl = {
9749
9750
  key: 0,
9750
9751
  ref_key: "target",
9751
9752
  ref: e,
9752
- class: x(`tile-content-media relative ${((F = s.value) == null ? void 0 : F.media) ?? ""} max-w-[350px]`)
9753
+ class: x(`tile-content-media relative ${((F = s.value) == null ? void 0 : F.media) ?? ""} ${u.value ? "max-w-[150px] md:max-w-[350px]" : "max-w-[350px]"}`)
9753
9754
  }, [
9754
9755
  _.includeDecoration ? (m(), v("img", {
9755
9756
  key: 0,
@@ -9802,7 +9803,7 @@ const Fl = ["innerHTML"], Dl = ["innerHTML"], Rl = ["src"], jl = {
9802
9803
  }, {
9803
9804
  item: m2(($2) => [
9804
9805
  B2(_2, H($2.data, {
9805
- class: p($2.data)
9806
+ class: p($2.data, !0)
9806
9807
  }), null, 16, ["class"])
9807
9808
  ]),
9808
9809
  _: 1
@@ -9870,7 +9871,7 @@ const Fl = ["innerHTML"], Dl = ["innerHTML"], Rl = ["src"], jl = {
9870
9871
  ], 2);
9871
9872
  };
9872
9873
  }
9873
- }), Wl = /* @__PURE__ */ Ze(Vl, [["__scopeId", "data-v-a23f5d64"]]), Ul = { key: 0 }, ql = /* @__PURE__ */ o2({
9874
+ }), Wl = /* @__PURE__ */ Ze(Vl, [["__scopeId", "data-v-de58d6ae"]]), Ul = { key: 0 }, ql = /* @__PURE__ */ o2({
9874
9875
  __name: "HelloBanner",
9875
9876
  props: {
9876
9877
  __typename: {},