@total_onion/onion-library 2.0.126 → 2.0.128
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/components/block-post-type-filter-grid-v3/group_64690c62487bc.json +224 -92
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/buy-now-widget.vue +5 -5
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/global-image-widget.vue +1 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-author-widget.vue +1 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-category-widget.vue +1 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-component.vue +2 -59
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-headline-widget.vue +1 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-image-widget.vue +5 -5
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-info-description.vue +2 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-info-subtitle.vue +2 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-link-widget.vue +3 -3
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-publish-widget.vue +1 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-title-widget.vue +1 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/ptfg-utils.vue +10 -10
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/shopify-add-to-cart.vue +6 -12
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/spacer-widget.vue +1 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.js +1 -1
- package/package.json +1 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/cocktail-category.vue +0 -40
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/cocktail-tasting-notes.vue +0 -15
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/drink-tastes.vue +0 -26
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/featured-post-component.vue +0 -62
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-email-widget.vue +0 -20
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-name-widget.vue +0 -15
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-questionaire-widget.vue +0 -17
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-rating-widget.vue +0 -25
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-abv.vue +0 -18
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-age-statement.vue +0 -17
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-bazaarvoice.vue +0 -15
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-brand.vue +0 -16
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-cask-type.vue +0 -16
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-country.vue +0 -14
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-description.vue +0 -15
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-details-name.vue +0 -18
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-details-price.vue +0 -15
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-finish.vue +0 -15
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-history.vue +0 -16
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-link.vue +0 -15
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-logo-widget.vue +0 -22
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-name.vue +0 -17
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-nose.vue +0 -16
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-price.vue +0 -15
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-slug.vue +0 -14
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-taste.vue +0 -16
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-whisky-type.vue +0 -25
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/social-media-item.vue +0 -58
package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-history.vue
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement, textEditorStyles } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
7
|
-
const textEditorStylesString = textEditorStyles(props);
|
|
8
|
-
</script>
|
|
9
|
-
<template>
|
|
10
|
-
<div :class="`${blockClassname}__product-history ${blockClassname}__info-item ${element.text_style?.typography_style.slice(
|
|
11
|
-
2
|
|
12
|
-
)}`" :style="`${gridLayoutString} ${textEditorStylesString}`">
|
|
13
|
-
<h4 v-if="element.headline_text">{{ element.headline_text }}</h4>
|
|
14
|
-
{{ post.post_data.product_history }}
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element", "ctaIcons"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
7
|
-
|
|
8
|
-
</script>
|
|
9
|
-
<template>
|
|
10
|
-
<div :class="`${blockClassname}__product-link ${blockClassname}__info-item`" :style="`${gridLayoutString}`">
|
|
11
|
-
<a :href="props.post.link" :class="`${blockClassname}__cta cmpl-cta-style-${element.cta_style.slice(
|
|
12
|
-
2
|
|
13
|
-
)}`" :style="`${gridLayoutString}`" v-if="element.product_link_text">{{ element.product_link_text }}</a>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-logo-widget.vue
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const imageType = 'image';
|
|
7
|
-
let postType = props.post.post_data.post_type;
|
|
8
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
9
|
-
</script>
|
|
10
|
-
<template>
|
|
11
|
-
<div :class="`${blockClassname}__media-image-container ${blockClassname}__info-item`" :href="props.post.link"
|
|
12
|
-
v-if="element.acf_fc_layout == 'product-logo'" :style="`${gridLayoutString}`">
|
|
13
|
-
<img :class="`${blockClassname}__post-image ${blockClassname}__media-${imageType} style-svg`" loading="lazy"
|
|
14
|
-
:src="props.post.post_images['post_' + imageType + '_src']"
|
|
15
|
-
:width="props.post.post_images['post_' + imageType + '_width']"
|
|
16
|
-
:height="props.post.post_images['post_' + imageType + '_height']"
|
|
17
|
-
:srcset="props.post.post_images['post_' + imageType + '_srcset']"
|
|
18
|
-
sizes="(max-width: 414px) 100px, (max-width: 768px) 150px, (max-width: 1024px) 200px, (max-width: 1440px) 275px, (max-width: 1800px) 300px"
|
|
19
|
-
:alt="props.post.post_images['post_' + imageType + '_alt_text']"
|
|
20
|
-
:style="`--post-image-width: ${element.post_image_width}%;`" />
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
7
|
-
|
|
8
|
-
</script>
|
|
9
|
-
<template>
|
|
10
|
-
<div :class="`${blockClassname}__product-link ${blockClassname}__info-item ${props.element.text_style?.typography_style.slice(
|
|
11
|
-
2
|
|
12
|
-
)}`" :style="`${gridLayoutString}`">
|
|
13
|
-
<h4 :class="`${element.text_style?.typography_style.slice(2)}`"
|
|
14
|
-
:style="`--text-align: ${props.element.text_style?.text_align.slice(2)}; --text-transform: ${props.element.text_style?.text_transform.slice(2)}; --font-weight: ${props.element.text_style.text_font_weight.slice(2)}; --text-colour: ${textColour}`">
|
|
15
|
-
{{ props.post.post_data?.product_name }}</h4>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement, textEditorStyles } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
7
|
-
const textEditorStylesString = textEditorStyles(props);
|
|
8
|
-
</script>
|
|
9
|
-
<template>
|
|
10
|
-
<div :class="`${blockClassname}__product-nose ${blockClassname}__info-item ${element.text_style?.typography_style.slice(
|
|
11
|
-
2
|
|
12
|
-
)}`" :style="`${gridLayoutString} ${textEditorStylesString}`">
|
|
13
|
-
<h4 v-if="element.headline_text">{{ element.headline_text }}</h4>
|
|
14
|
-
{{ props.post.post_data.product_nose }}
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-price.vue
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement, textEditorStyles } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
7
|
-
const textEditorStylesString = textEditorStyles(props);
|
|
8
|
-
</script>
|
|
9
|
-
<template>
|
|
10
|
-
<div :class="`${blockClassname}__price ${blockClassname}__info-item ${element.text_style?.typography_style.slice(
|
|
11
|
-
2
|
|
12
|
-
)}`" :style="`${gridLayoutString} ${textEditorStylesString}`">
|
|
13
|
-
<span>{{ post.post_data.product_price }}</span>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement, textEditorStyles } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
7
|
-
const textEditorStylesString = textEditorStyles(props);
|
|
8
|
-
</script>
|
|
9
|
-
<template>
|
|
10
|
-
<div :class="`${blockClassname}__product-c7-slug ${blockClassname}__info-item`"
|
|
11
|
-
:style="`${gridLayoutString} ${textEditorStylesString}`">
|
|
12
|
-
<div class="c7-buy-product c7-buy-variant" :data-product-slug="`${props.post.post_data.c7_slug}`"></div>
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-taste.vue
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement, textEditorStyles } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
7
|
-
const textEditorStylesString = textEditorStyles(props);
|
|
8
|
-
</script>
|
|
9
|
-
<template>
|
|
10
|
-
<div :class="`${blockClassname}__product-taste ${blockClassname}__info-item ${element.text_style?.typography_style.slice(
|
|
11
|
-
2
|
|
12
|
-
)}`" :style="`${gridLayoutString} ${textEditorStylesString}`">
|
|
13
|
-
<h4 v-if="element.headline_text">{{ element.headline_text }}</h4>
|
|
14
|
-
{{ post.post_data.product_taste }}
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-whisky-type.vue
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement, textEditorStyles } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
7
|
-
const textEditorStylesString = textEditorStyles(props);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
</script>
|
|
11
|
-
<template>
|
|
12
|
-
<div :class="`${blockClassname}__product-whisky-type ${blockClassname}__info-item ${element.text_style?.typography_style.slice(
|
|
13
|
-
2
|
|
14
|
-
)}`" :style="`${gridLayoutString} ${textEditorStylesString}`" v-if="post.post_data.product_whisky_type">
|
|
15
|
-
<p :class="`${element.text_style?.typography_style.slice(2)}`" :style="`--text-align: ${element.text_style?.text_align.slice(
|
|
16
|
-
2
|
|
17
|
-
)}; --text-transform: ${element.text_style?.text_transform.slice(
|
|
18
|
-
2
|
|
19
|
-
)}; --font-weight: ${element.text_style.text_font_weight.slice(
|
|
20
|
-
2
|
|
21
|
-
)}; --text-colour: ${textColour}`">
|
|
22
|
-
{{ post.post_data.product_whisky_type }}
|
|
23
|
-
</p>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/social-media-item.vue
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { gridLayoutElement, textEditorStyles } from "./ptfg-utils.vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps(["post", "element", "fields"]);
|
|
5
|
-
const blockClassname = "post-type-filter-grid-v3";
|
|
6
|
-
const imageType = props.element?.image_select?.slice(2);
|
|
7
|
-
const setAsBackgroundImage = props.element?.set_as_background_image;
|
|
8
|
-
let positioningString = '';
|
|
9
|
-
let postImageWidthString = `--post-image-width-mobile: ${props.element.post_image_width}%; --post-image-width-desktop: ${props.element.post_image_width}%;`;
|
|
10
|
-
if (imageType === 'image_accent') {
|
|
11
|
-
const elementPositioning = props.element?.post_image_positioning.element_positioning;
|
|
12
|
-
positioningString = `
|
|
13
|
-
--element-rotation-desktop: ${elementPositioning.desktop_positioning.element_rotation_desktop}deg;
|
|
14
|
-
--element-rotation-mobile: ${elementPositioning.desktop_positioning.element_rotation_desktop}deg;
|
|
15
|
-
--element-z-index: ${elementPositioning.element_z_index};
|
|
16
|
-
--element-horizontal-offset-mobile: ${elementPositioning.mobile_positioning.horizontal_offset}%;
|
|
17
|
-
--element-vertical-offset-mobile: ${elementPositioning.mobile_positioning.vertical_offset}%;
|
|
18
|
-
--element-horizontal-offset-desktop: ${elementPositioning.desktop_positioning.horizontal_offset}%;
|
|
19
|
-
--element-vertical-offset-desktop: ${elementPositioning.desktop_positioning.vertical_offset}%;
|
|
20
|
-
--mobile-horizontal-placement: ${elementPositioning.mobile_positioning.horizontal_snap?.slice(2)};
|
|
21
|
-
--mobile-vertical-placement: ${elementPositioning.mobile_positioning.vertical_snap?.slice(2)};
|
|
22
|
-
--desktop-horizontal-placement: ${elementPositioning.desktop_positioning.horizontal_snap?.slice(2)};
|
|
23
|
-
--desktop-vertical-placement: ${elementPositioning.desktop_positioning.vertical_snap?.slice(2)};
|
|
24
|
-
`;
|
|
25
|
-
postImageWidthString = `--post-image-width-mobile: calc( ${props.element.post_image_width_mobile_px} / var(--mobile-design-reference) * var(--screen-width-mobile)); --post-image-width-desktop: calc(${props.element.post_image_width_desktop_px} / var(--desktop-design-reference) * var(--screen-width-desktop));`;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const styleString = `
|
|
29
|
-
|
|
30
|
-
--post-image-border-radius: ${props.fields.post_image_border_radius};
|
|
31
|
-
`
|
|
32
|
-
let postType = props.post.post_data.post_type;
|
|
33
|
-
let sizes = "(min-width: 1440px) 50vw, (min-width: 1024px) 50vw, (min-width: 768px) 768px') 100vw";
|
|
34
|
-
|
|
35
|
-
const gridLayoutString = gridLayoutElement(props);
|
|
36
|
-
const textEditorStylesString = textEditorStyles(props);
|
|
37
|
-
|
|
38
|
-
</script>
|
|
39
|
-
<template>
|
|
40
|
-
<a :class="`${blockClassname}__post-image-container-link ${blockClassname}__info-item ${blockClassname}__post-image-container--${imageType} ${blockClassname}__post-image-container-link--${props.fields.show_alt_image_on_hover ? 'show-alt-image-on-hover' : 'no-hover'} ${setAsBackgroundImage ? blockClassname + '__post-image-container-link--set-as-background-image' : ''}`"
|
|
41
|
-
:href="props.post.link" :aria-label="props.post.post_title" :style="`${gridLayoutString}`">
|
|
42
|
-
<img v-if="props.post.post_images['post_' + imageType + '_src']"
|
|
43
|
-
:class="`${blockClassname}__post-image ${blockClassname}__post-${imageType} ${blockClassname}__post-image--${imageType}`"
|
|
44
|
-
loading="lazy" :src="props.post.post_images['post_' + imageType + '_src']"
|
|
45
|
-
:width="props.post.post_images['post_' + imageType + '_width']"
|
|
46
|
-
:height="props.post.post_images['post_' + imageType + '_height']"
|
|
47
|
-
:srcset="props.post.post_images['post_' + imageType + '_srcset']" :sizes=sizes
|
|
48
|
-
:alt="props.post.post_images['post_' + imageType + '_alt_text']"
|
|
49
|
-
:style="`${styleString} ${positioningString} ${postImageWidthString}`" />
|
|
50
|
-
<img v-if="props.fields.show_alt_image_on_hover"
|
|
51
|
-
:class="`${blockClassname}__post-image--secondary ${blockClassname}__post-${imageType}`" loading="lazy"
|
|
52
|
-
:src="props.post.post_images['post_' + imageType + '_src']"
|
|
53
|
-
:width="props.post.post_images['post_' + imageType + '_width']"
|
|
54
|
-
:height="props.post.post_images['post_' + imageType + '_height']"
|
|
55
|
-
:srcset="props.post.post_images['post_' + imageType + '_srcset']" :sizes=sizes
|
|
56
|
-
:alt="props.post.post_images['post_' + imageType + '_alt_text']" :style="`${postImageWidthString}`" />
|
|
57
|
-
</a>
|
|
58
|
-
</template>
|