@slicemachine/adapter-nuxt 0.3.18-dev-slice-templates-svelte-nuxt.4 → 0.3.18-dev-next-release.9

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.
Files changed (42) hide show
  1. package/dist/Hero/javascript.vue +75 -43
  2. package/dist/Hero/typescript.vue +75 -43
  3. package/dist/hooks/project-init.cjs +1 -1
  4. package/dist/hooks/project-init.cjs.map +1 -1
  5. package/dist/hooks/project-init.js +1 -1
  6. package/dist/hooks/project-init.js.map +1 -1
  7. package/dist/plugin.cjs +1 -4
  8. package/dist/plugin.cjs.map +1 -1
  9. package/dist/plugin.js +1 -4
  10. package/dist/plugin.js.map +1 -1
  11. package/package.json +3 -3
  12. package/src/hooks/project-init.ts +1 -1
  13. package/src/plugin.ts +1 -4
  14. package/dist/AlternateGrid/javascript.vue +0 -228
  15. package/dist/AlternateGrid/screenshot-default.png +0 -0
  16. package/dist/AlternateGrid/screenshot-imageRight.png +0 -0
  17. package/dist/AlternateGrid/typescript.vue +0 -235
  18. package/dist/CallToAction/javascript.vue +0 -127
  19. package/dist/CallToAction/screenshot-alignLeft.png +0 -0
  20. package/dist/CallToAction/screenshot-default.png +0 -0
  21. package/dist/CallToAction/typescript.vue +0 -134
  22. package/dist/CustomerLogos/javascript.vue +0 -115
  23. package/dist/CustomerLogos/screenshot-default.png +0 -0
  24. package/dist/CustomerLogos/typescript.vue +0 -122
  25. package/dist/sliceTemplates/AlternateGrid/index.cjs +0 -436
  26. package/dist/sliceTemplates/AlternateGrid/index.cjs.map +0 -1
  27. package/dist/sliceTemplates/AlternateGrid/index.d.ts +0 -8
  28. package/dist/sliceTemplates/AlternateGrid/index.js +0 -436
  29. package/dist/sliceTemplates/AlternateGrid/index.js.map +0 -1
  30. package/dist/sliceTemplates/CallToAction/index.cjs +0 -264
  31. package/dist/sliceTemplates/CallToAction/index.cjs.map +0 -1
  32. package/dist/sliceTemplates/CallToAction/index.d.ts +0 -8
  33. package/dist/sliceTemplates/CallToAction/index.js +0 -264
  34. package/dist/sliceTemplates/CallToAction/index.js.map +0 -1
  35. package/dist/sliceTemplates/CustomerLogos/index.cjs +0 -314
  36. package/dist/sliceTemplates/CustomerLogos/index.cjs.map +0 -1
  37. package/dist/sliceTemplates/CustomerLogos/index.d.ts +0 -7
  38. package/dist/sliceTemplates/CustomerLogos/index.js +0 -314
  39. package/dist/sliceTemplates/CustomerLogos/index.js.map +0 -1
  40. package/src/sliceTemplates/AlternateGrid/index.ts +0 -441
  41. package/src/sliceTemplates/CallToAction/index.ts +0 -265
  42. package/src/sliceTemplates/CustomerLogos/index.ts +0 -313
@@ -1,127 +0,0 @@
1
- <script setup>
2
- import { ref } from "vue";
3
- import { isFilled } from "@prismicio/client";
4
- import { PrismicLink, PrismicImage, PrismicRichText } from "@prismicio/svelte";
5
-
6
- defineProps(getSliceComponentProps(["slice", "index", "slices", "context"]));
7
-
8
- const alignment = slice.variation === "alignLeft" ? ref("left") : ref("center");
9
- </script>
10
-
11
- <template>
12
- <section
13
- :data-slice-type="slice.slice_type"
14
- :data-slice-variation="slice.variation"
15
- class="es-bounded es-call-to-action"
16
- >
17
- <div class="es-bounded__content es-call-to-action__content">
18
- <PrismicImage
19
- v-if="isFilled.image(slice.primary.image)"
20
- :field="slice.primary.image"
21
- class="es-call-to-action__image"
22
- />
23
- <div class="es-call-to-action__content">
24
- <h2
25
- v-if="isFilled.richText(slice.primary.title)"
26
- class="es-call-to-action__content__heading"
27
- >
28
- <PrismicRichText :field="slice.primary.title" />
29
- </h2>
30
- <div
31
- v-if="isFilled.richText(slice.primary.paragraph)"
32
- class="es-call-to-action__content__paragraph"
33
- >
34
- <PrismicRichText :field="slice.primary.paragraph" />
35
- </div>
36
- </div>
37
- <PrismicLink
38
- v-if="isFilled.link(slice.primary.buttonLink)"
39
- :field="slice.primary.buttonLink"
40
- class="es-call-to-action__button"
41
- >
42
- {{ slice.primary.buttonLabel || "Learn more…" }}
43
- </PrismicLink>
44
- </div>
45
- </section>
46
- </template>
47
-
48
- <style>
49
- .es-bounded {
50
- padding: 8vw 2rem;
51
- }
52
-
53
- .es-bounded__content {
54
- margin-left: auto;
55
- margin-right: auto;
56
- }
57
-
58
- @media screen and (min-width: 640px) {
59
- .es-bounded__content {
60
- max-width: 90%;
61
- }
62
- }
63
-
64
- @media screen and (min-width: 896px) {
65
- .es-bounded__content {
66
- max-width: 80%;
67
- }
68
- }
69
-
70
- @media screen and (min-width: 1280px) {
71
- .es-bounded__content {
72
- max-width: 75%;
73
- }
74
- }
75
-
76
- .es-call-to-action {
77
- background-color: #fff;
78
- color: #333;
79
- }
80
-
81
- .es-call-to-action__content {
82
- display: grid;
83
- gap: 2rem;
84
- }
85
-
86
- .es-call-to-action__image {
87
- max-width: 14rem;
88
- height: auto;
89
- width: auto;
90
- justify-self: v-bind(alignment);
91
- }
92
-
93
- .es-call-to-action__content {
94
- display: grid;
95
- gap: 1rem;
96
- justify-items: v-bind(alignment);
97
- }
98
-
99
- .es-call-to-action__content__heading {
100
- font-size: 2rem;
101
- font-weight: 700;
102
- text-align: v-bind(alignment);
103
- }
104
-
105
- .es-call-to-action__content__paragraph {
106
- font-size: 1.15rem;
107
- max-width: 38rem;
108
- text-align: v-bind(alignment);
109
- }
110
-
111
- .es-call-to-action__button {
112
- justify-self: v-bind(alignment);
113
- border-radius: 0.25rem;
114
- display: inline-block;
115
- font-size: 0.875rem;
116
- line-height: 1.3;
117
- padding: 1rem 2.625rem;
118
- text-align: v-bind(alignment);
119
- transition: background-color 100ms linear;
120
- background-color: #16745f;
121
- color: #fff;
122
- }
123
-
124
- .es-call-to-action__button:hover {
125
- background-color: #0d5e4c;
126
- }
127
- </style>
@@ -1,134 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref } from "vue";
3
- import { Content, isFilled } from "@prismicio/client";
4
- import { PrismicLink, PrismicImage, PrismicRichText } from "@prismicio/svelte";
5
-
6
- defineProps(
7
- getSliceComponentProps<Content.PascalNameToReplaceSlice>([
8
- "slice",
9
- "index",
10
- "slices",
11
- "context",
12
- ]),
13
- );
14
-
15
- const alignment = slice.variation === "alignLeft" ? ref("left") : ref("center");
16
- </script>
17
-
18
- <template>
19
- <section
20
- :data-slice-type="slice.slice_type"
21
- :data-slice-variation="slice.variation"
22
- class="es-bounded es-call-to-action"
23
- >
24
- <div class="es-bounded__content es-call-to-action__content">
25
- <PrismicImage
26
- v-if="isFilled.image(slice.primary.image)"
27
- :field="slice.primary.image"
28
- class="es-call-to-action__image"
29
- />
30
- <div class="es-call-to-action__content">
31
- <h2
32
- v-if="isFilled.richText(slice.primary.title)"
33
- class="es-call-to-action__content__heading"
34
- >
35
- <PrismicRichText :field="slice.primary.title" />
36
- </h2>
37
- <div
38
- v-if="isFilled.richText(slice.primary.paragraph)"
39
- class="es-call-to-action__content__paragraph"
40
- >
41
- <PrismicRichText :field="slice.primary.paragraph" />
42
- </div>
43
- </div>
44
- <PrismicLink
45
- v-if="isFilled.link(slice.primary.buttonLink)"
46
- :field="slice.primary.buttonLink"
47
- class="es-call-to-action__button"
48
- >
49
- {{ slice.primary.buttonLabel || "Learn more…" }}
50
- </PrismicLink>
51
- </div>
52
- </section>
53
- </template>
54
-
55
- <style>
56
- .es-bounded {
57
- padding: 8vw 2rem;
58
- }
59
-
60
- .es-bounded__content {
61
- margin-left: auto;
62
- margin-right: auto;
63
- }
64
-
65
- @media screen and (min-width: 640px) {
66
- .es-bounded__content {
67
- max-width: 90%;
68
- }
69
- }
70
-
71
- @media screen and (min-width: 896px) {
72
- .es-bounded__content {
73
- max-width: 80%;
74
- }
75
- }
76
-
77
- @media screen and (min-width: 1280px) {
78
- .es-bounded__content {
79
- max-width: 75%;
80
- }
81
- }
82
-
83
- .es-call-to-action {
84
- background-color: #fff;
85
- color: #333;
86
- }
87
-
88
- .es-call-to-action__content {
89
- display: grid;
90
- gap: 2rem;
91
- }
92
-
93
- .es-call-to-action__image {
94
- max-width: 14rem;
95
- height: auto;
96
- width: auto;
97
- justify-self: v-bind(alignment);
98
- }
99
-
100
- .es-call-to-action__content {
101
- display: grid;
102
- gap: 1rem;
103
- justify-items: v-bind(alignment);
104
- }
105
-
106
- .es-call-to-action__content__heading {
107
- font-size: 2rem;
108
- font-weight: 700;
109
- text-align: v-bind(alignment);
110
- }
111
-
112
- .es-call-to-action__content__paragraph {
113
- font-size: 1.15rem;
114
- max-width: 38rem;
115
- text-align: v-bind(alignment);
116
- }
117
-
118
- .es-call-to-action__button {
119
- justify-self: v-bind(alignment);
120
- border-radius: 0.25rem;
121
- display: inline-block;
122
- font-size: 0.875rem;
123
- line-height: 1.3;
124
- padding: 1rem 2.625rem;
125
- text-align: v-bind(alignment);
126
- transition: background-color 100ms linear;
127
- background-color: #16745f;
128
- color: #fff;
129
- }
130
-
131
- .es-call-to-action__button:hover {
132
- background-color: #0d5e4c;
133
- }
134
- </style>
@@ -1,115 +0,0 @@
1
- <script setup lang="ts">
2
- import { isFilled } from "@prismicio/client";
3
-
4
- defineProps(getSliceComponentProps(["slice", "index", "slices", "context"]));
5
- </script>
6
-
7
- <template>
8
- <section
9
- :data-slice-type="slice.slice_type"
10
- :data-slice-variation="slice.variation"
11
- class="es-bounded es-customer-logos"
12
- >
13
- <div class="es-bounded__content es-customer-logos__content">
14
- <h2
15
- v-if="isFilled.richText(slice.primary.eyebrowHeadline)"
16
- class="es-customer-logos__heading"
17
- >
18
- <PrismicRichText :field="slice.primary.eyebrowHeadline" />
19
- </h2>
20
- <ul v-if="slice.items.length > 0" class="es-customer-logos__logos">
21
- <li
22
- v-for="item in slice.items"
23
- :key="item.image.url"
24
- class="es-customer-logos__logo"
25
- >
26
- <PrismicLink :field="item.link">
27
- <PrismicImage
28
- :field="item.image"
29
- :height="26"
30
- :width="160"
31
- class="es-customer-logos__logo__link__image"
32
- />
33
- </PrismicLink>
34
- </li>
35
- </ul>
36
- <PrismicLink
37
- :field="slice.primary.callToActionLink"
38
- class="es-customer-logos__button"
39
- >
40
- {{ slice.primary.callToActionLabel || "Learn more..." }}
41
- </PrismicLink>
42
- </div>
43
- </section>
44
- </template>
45
-
46
- <style scoped>
47
- .es-bounded {
48
- margin: 0px;
49
- min-width: 0px;
50
- position: relative;
51
- padding: 8vw 1.25rem;
52
- }
53
-
54
- .es-bounded__content {
55
- min-width: 0px;
56
- max-width: 90%;
57
- margin: 0px auto;
58
- font-family: system-ui, sans-serif;
59
- }
60
-
61
- .es-customer-logos {
62
- background-color: #f4f0ec;
63
- color: #333;
64
- }
65
-
66
- .es-customer-logos__content {
67
- display: grid;
68
- gap: 2rem;
69
- justify-items: center;
70
- }
71
-
72
- .es-customer-logos__heading {
73
- color: #8592e0;
74
- font-size: 1.5rem;
75
- font-weight: 500;
76
- text-align: center;
77
- }
78
-
79
- .es-customer-logos__logos {
80
- display: grid;
81
- grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
82
- grid-column-gap: 1.25rem;
83
- grid-row-gap: 2rem;
84
- align-items: center;
85
- list-style-type: none;
86
- width: 100%;
87
- }
88
-
89
- @media (min-width: 1200px) {
90
- .es-customer-logos__logos {
91
- margin-left: -3rem;
92
- }
93
- }
94
-
95
- .es-customer-logos__logo {
96
- margin: 0;
97
- display: flex;
98
- justify-content: center;
99
- }
100
-
101
- @media (min-width: 1200px) {
102
- .es-customer-logos__logo {
103
- margin-left: 3rem;
104
- }
105
- }
106
-
107
- .es-customer-logos__logo__link__image {
108
- max-width: 10rem;
109
- }
110
-
111
- .es-customer-logos__button {
112
- justify-self: center;
113
- text-decoration: underline;
114
- }
115
- </style>
@@ -1,122 +0,0 @@
1
- <script setup lang="ts">
2
- import { Content, isFilled } from "@prismicio/client";
3
-
4
- defineProps(
5
- getSliceComponentProps<Content.PascalNameToReplaceSlice>([
6
- "slice",
7
- "index",
8
- "slices",
9
- "context",
10
- ]),
11
- );
12
- </script>
13
-
14
- <template>
15
- <section
16
- :data-slice-type="slice.slice_type"
17
- :data-slice-variation="slice.variation"
18
- class="es-bounded es-customer-logos"
19
- >
20
- <div class="es-bounded__content es-customer-logos__content">
21
- <h2
22
- v-if="isFilled.richText(slice.primary.eyebrowHeadline)"
23
- class="es-customer-logos__heading"
24
- >
25
- <PrismicRichText :field="slice.primary.eyebrowHeadline" />
26
- </h2>
27
- <ul v-if="slice.items.length > 0" class="es-customer-logos__logos">
28
- <li
29
- v-for="item in slice.items"
30
- :key="item.image.url"
31
- class="es-customer-logos__logo"
32
- >
33
- <PrismicLink :field="item.link">
34
- <PrismicImage
35
- :field="item.image"
36
- :height="26"
37
- :width="160"
38
- class="es-customer-logos__logo__link__image"
39
- />
40
- </PrismicLink>
41
- </li>
42
- </ul>
43
- <PrismicLink
44
- :field="slice.primary.callToActionLink"
45
- class="es-customer-logos__button"
46
- >
47
- {{ slice.primary.callToActionLabel || "Learn more..." }}
48
- </PrismicLink>
49
- </div>
50
- </section>
51
- </template>
52
-
53
- <style scoped>
54
- .es-bounded {
55
- margin: 0px;
56
- min-width: 0px;
57
- position: relative;
58
- padding: 8vw 1.25rem;
59
- }
60
-
61
- .es-bounded__content {
62
- min-width: 0px;
63
- max-width: 90%;
64
- margin: 0px auto;
65
- font-family: system-ui, sans-serif;
66
- }
67
-
68
- .es-customer-logos {
69
- background-color: #f4f0ec;
70
- color: #333;
71
- }
72
-
73
- .es-customer-logos__content {
74
- display: grid;
75
- gap: 2rem;
76
- justify-items: center;
77
- }
78
-
79
- .es-customer-logos__heading {
80
- color: #8592e0;
81
- font-size: 1.5rem;
82
- font-weight: 500;
83
- text-align: center;
84
- }
85
-
86
- .es-customer-logos__logos {
87
- display: grid;
88
- grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
89
- grid-column-gap: 1.25rem;
90
- grid-row-gap: 2rem;
91
- align-items: center;
92
- list-style-type: none;
93
- width: 100%;
94
- }
95
-
96
- @media (min-width: 1200px) {
97
- .es-customer-logos__logos {
98
- margin-left: -3rem;
99
- }
100
- }
101
-
102
- .es-customer-logos__logo {
103
- margin: 0;
104
- display: flex;
105
- justify-content: center;
106
- }
107
-
108
- @media (min-width: 1200px) {
109
- .es-customer-logos__logo {
110
- margin-left: 3rem;
111
- }
112
- }
113
-
114
- .es-customer-logos__logo__link__image {
115
- max-width: 10rem;
116
- }
117
-
118
- .es-customer-logos__button {
119
- justify-self: center;
120
- text-decoration: underline;
121
- }
122
- </style>