@slicemachine/adapter-nuxt 0.3.18-dev-slice-templates-svelte-nuxt.1 → 0.3.18-dev-slice-templates-svelte-nuxt.3

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.
@@ -8,39 +8,52 @@ defineProps(getSliceComponentProps(["slice", "index", "slices", "context"]));
8
8
  <section
9
9
  :data-slice-type="slice.slice_type"
10
10
  :data-slice-variation="slice.variation"
11
- class="es-bounded es-fullpage-hero es-bounded__content es-fullpage-hero__content"
12
- :class="
13
- slice.variation === 'imageRight'
14
- ? 'es-fullpage-hero__image--right'
15
- : 'es-fullpage-hero__image--left'
16
- "
11
+ class="es-bounded es-fullpage-hero"
17
12
  >
18
- <div>
19
- <PrismicImage
20
- v-if="isFilled.image(slice.primary.image)"
21
- :field="slice.primary.image"
22
- class="es-fullpage-hero__image"
23
- />
24
- </div>
25
- <div class="es-fullpage-hero__content-right">
26
- <div class="es-fullpage-hero__content__intro">
27
- <p
28
- v-if="isFilled.keyText(slice.primary.eyebrowHeadline)"
29
- class="es-fullpage-hero__content__intro__eyebrow"
30
- >
31
- {{ slice.primary.eyebrowHeadline }}
32
- </p>
33
- <PrismicRichText
34
- v-if="isFilled.richText(slice.primary.title)"
35
- class="es-fullpage-hero__content__intro__headline"
36
- :field="slice.primary.title"
13
+ <div
14
+ class="es-fullpage-hero__content"
15
+ :class="
16
+ slice.variation === 'imageRight'
17
+ ? 'es-fullpage-hero__image--right'
18
+ : 'es-fullpage-hero__image--left'
19
+ "
20
+ >
21
+ <div>
22
+ <PrismicImage
23
+ v-if="isFilled.image(slice.primary.image)"
24
+ :field="slice.primary.image"
25
+ class="es-fullpage-hero__image"
37
26
  />
38
27
  </div>
39
- <PrismicRichText
40
- v-if="isFilled.richText(slice.primary.description)"
41
- class="es-fullpage-hero__content__intro__description"
42
- :field="slice.primary.description"
43
- />
28
+ <div class="es-fullpage-hero__content-right">
29
+ <div class="es-fullpage-hero__content__intro">
30
+ <p
31
+ v-if="isFilled.keyText(slice.primary.eyebrowHeadline)"
32
+ class="es-fullpage-hero__content__intro__eyebrow"
33
+ >
34
+ {{ slice.primary.eyebrowHeadline }}
35
+ </p>
36
+ <div
37
+ v-if="isFilled.richText(slice.primary.title)"
38
+ class="es-fullpage-hero__content__intro__headline"
39
+ >
40
+ <PrismicRichText :field="slice.primary.title" />
41
+ </div>
42
+ <div
43
+ v-if="isFilled.richText(slice.primary.description)"
44
+ class="es-fullpage-hero__content__intro__description"
45
+ >
46
+ <PrismicRichText :field="slice.primary.description" />
47
+ </div>
48
+ <PrismicLink
49
+ v-if="isFilled.link(slice.primary.callToActionLink)"
50
+ class="es-call-to-action__link"
51
+ :field="slice.primary.callToActionLink"
52
+ >
53
+ {{ slice.primary.callToActionLabel || "Learn more…" }}
54
+ </PrismicLink>
55
+ </div>
56
+ </div>
44
57
  </div>
45
58
  </section>
46
59
  </template>
@@ -52,12 +65,6 @@ defineProps(getSliceComponentProps(["slice", "index", "slices", "context"]));
52
65
  position: relative;
53
66
  }
54
67
 
55
- .es-bounded__content {
56
- min-width: 0px;
57
- max-width: 90%;
58
- margin: 0px auto;
59
- }
60
-
61
68
  .es-fullpage-hero {
62
69
  font-family: system-ui, sans-serif;
63
70
  background-color: #fff;
@@ -163,45 +170,6 @@ defineProps(getSliceComponentProps(["slice", "index", "slices", "context"]));
163
170
  }
164
171
  }
165
172
 
166
- .es-fullpage-hero__content__items {
167
- display: grid;
168
- gap: 2rem;
169
- }
170
-
171
- @media (min-width: 640px) {
172
- .es-fullpage-hero__content__items {
173
- grid-template-columns: repeat(2, 1fr);
174
- }
175
- }
176
-
177
- .es-fullpage-hero__item {
178
- display: grid;
179
- align-content: start;
180
- }
181
-
182
- .es-fullpage-hero__item__icon {
183
- max-height: 3rem;
184
- }
185
-
186
- .es-fullpage-hero__item__heading {
187
- font-weight: 700;
188
- font-size: 1.17rem;
189
- margin-top: 0;
190
- margin-bottom: 0.5rem;
191
- }
192
-
193
- .es-fullpage-hero__item__heading > * {
194
- margin: 0;
195
- }
196
-
197
- .es-fullpage-hero__item__description {
198
- font-size: 0.9rem;
199
- }
200
-
201
- .es-fullpage-hero__item__description > * {
202
- margin: 0;
203
- }
204
-
205
173
  .es-call-to-action__link {
206
174
  justify-self: flex-start;
207
175
  border-radius: 0.25rem;
@@ -15,39 +15,52 @@ defineProps(
15
15
  <section
16
16
  :data-slice-type="slice.slice_type"
17
17
  :data-slice-variation="slice.variation"
18
- class="es-bounded es-fullpage-hero es-bounded__content es-fullpage-hero__content"
19
- :class="
20
- slice.variation === 'imageRight'
21
- ? 'es-fullpage-hero__image--right'
22
- : 'es-fullpage-hero__image--left'
23
- "
18
+ class="es-bounded es-fullpage-hero"
24
19
  >
25
- <div>
26
- <PrismicImage
27
- v-if="isFilled.image(slice.primary.image)"
28
- :field="slice.primary.image"
29
- class="es-fullpage-hero__image"
30
- />
31
- </div>
32
- <div class="es-fullpage-hero__content-right">
33
- <div class="es-fullpage-hero__content__intro">
34
- <p
35
- v-if="isFilled.keyText(slice.primary.eyebrowHeadline)"
36
- class="es-fullpage-hero__content__intro__eyebrow"
37
- >
38
- {{ slice.primary.eyebrowHeadline }}
39
- </p>
40
- <PrismicRichText
41
- v-if="isFilled.richText(slice.primary.title)"
42
- class="es-fullpage-hero__content__intro__headline"
43
- :field="slice.primary.title"
20
+ <div
21
+ class="es-fullpage-hero__content"
22
+ :class="
23
+ slice.variation === 'imageRight'
24
+ ? 'es-fullpage-hero__image--right'
25
+ : 'es-fullpage-hero__image--left'
26
+ "
27
+ >
28
+ <div>
29
+ <PrismicImage
30
+ v-if="isFilled.image(slice.primary.image)"
31
+ :field="slice.primary.image"
32
+ class="es-fullpage-hero__image"
44
33
  />
45
34
  </div>
46
- <PrismicRichText
47
- v-if="isFilled.richText(slice.primary.description)"
48
- class="es-fullpage-hero__content__intro__description"
49
- :field="slice.primary.description"
50
- />
35
+ <div class="es-fullpage-hero__content-right">
36
+ <div class="es-fullpage-hero__content__intro">
37
+ <p
38
+ v-if="isFilled.keyText(slice.primary.eyebrowHeadline)"
39
+ class="es-fullpage-hero__content__intro__eyebrow"
40
+ >
41
+ {{ slice.primary.eyebrowHeadline }}
42
+ </p>
43
+ <div
44
+ v-if="isFilled.richText(slice.primary.title)"
45
+ class="es-fullpage-hero__content__intro__headline"
46
+ >
47
+ <PrismicRichText :field="slice.primary.title" />
48
+ </div>
49
+ <div
50
+ v-if="isFilled.richText(slice.primary.description)"
51
+ class="es-fullpage-hero__content__intro__description"
52
+ >
53
+ <PrismicRichText :field="slice.primary.description" />
54
+ </div>
55
+ <PrismicLink
56
+ v-if="isFilled.link(slice.primary.callToActionLink)"
57
+ class="es-call-to-action__link"
58
+ :field="slice.primary.callToActionLink"
59
+ >
60
+ {{ slice.primary.callToActionLabel || "Learn more…" }}
61
+ </PrismicLink>
62
+ </div>
63
+ </div>
51
64
  </div>
52
65
  </section>
53
66
  </template>
@@ -59,12 +72,6 @@ defineProps(
59
72
  position: relative;
60
73
  }
61
74
 
62
- .es-bounded__content {
63
- min-width: 0px;
64
- max-width: 90%;
65
- margin: 0px auto;
66
- }
67
-
68
75
  .es-fullpage-hero {
69
76
  font-family: system-ui, sans-serif;
70
77
  background-color: #fff;
@@ -170,45 +177,6 @@ defineProps(
170
177
  }
171
178
  }
172
179
 
173
- .es-fullpage-hero__content__items {
174
- display: grid;
175
- gap: 2rem;
176
- }
177
-
178
- @media (min-width: 640px) {
179
- .es-fullpage-hero__content__items {
180
- grid-template-columns: repeat(2, 1fr);
181
- }
182
- }
183
-
184
- .es-fullpage-hero__item {
185
- display: grid;
186
- align-content: start;
187
- }
188
-
189
- .es-fullpage-hero__item__icon {
190
- max-height: 3rem;
191
- }
192
-
193
- .es-fullpage-hero__item__heading {
194
- font-weight: 700;
195
- font-size: 1.17rem;
196
- margin-top: 0;
197
- margin-bottom: 0.5rem;
198
- }
199
-
200
- .es-fullpage-hero__item__heading > * {
201
- margin: 0;
202
- }
203
-
204
- .es-fullpage-hero__item__description {
205
- font-size: 0.9rem;
206
- }
207
-
208
- .es-fullpage-hero__item__description > * {
209
- margin: 0;
210
- }
211
-
212
180
  .es-call-to-action__link {
213
181
  justify-self: flex-start;
214
182
  border-radius: 0.25rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slicemachine/adapter-nuxt",
3
- "version": "0.3.18-dev-slice-templates-svelte-nuxt.1",
3
+ "version": "0.3.18-dev-slice-templates-svelte-nuxt.3",
4
4
  "description": "Slice Machine adapter for Nuxt 3.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -61,7 +61,7 @@
61
61
  "dependencies": {
62
62
  "@prismicio/simulator": "^0.1.4",
63
63
  "@prismicio/types-internal": "^2.0.0",
64
- "@slicemachine/plugin-kit": "^0.4.18-dev-slice-templates-svelte-nuxt.1",
64
+ "@slicemachine/plugin-kit": "^0.4.18-dev-slice-templates-svelte-nuxt.3",
65
65
  "common-tags": "^1.8.2",
66
66
  "fp-ts": "^2.13.1",
67
67
  "io-ts": "^2.2.20",
@@ -103,5 +103,5 @@
103
103
  "engines": {
104
104
  "node": ">=14.15.0"
105
105
  },
106
- "gitHead": "536a293a5db080b95d5ee6d0115a34a4b62a1818"
106
+ "gitHead": "b26332fb655a9289121dc24c8d7a4ed2bd1da453"
107
107
  }