@total_onion/onion-library 1.0.13 → 1.0.15

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.
@@ -93,7 +93,7 @@
93
93
  {% set tabletSlides = 'data-tabletslides="' ~ fields.carousel_number_of_slides_tablet ~ '"' %}
94
94
  {% set desktopSlides = 'data-desktopslides="' ~ fields.carousel_number_of_slides_desktop ~ '"' %}
95
95
 
96
- {% set imageSizes = '(min-width: 1440px) ' ~ (100 / fields.carousel_number_of_slides_desktop)|round ~ 'vw, (min-width: 1024px) ' ~ (100 / fields.carousel_number_of_slides_desktop)|round ~ 'vw, (min-width: 768px) ' ~ (100 / fields.carousel_number_of_slides_tablet)|round ~ 'vw, (min-width: 300px) ' ~(100 / fields.carousel_number_of_slides_mobile)|round ~ 'vw, 100vw' %}
96
+ {% set imageSizes = '(min-width: 1440px) ' ~ (100 / fields.carousel_number_of_slides_desktop|default(1))|round ~ 'vw, (min-width: 1024px) ' ~ (100 / fields.carousel_number_of_slides_desktop|default(1))|round ~ 'vw, (min-width: 768px) ' ~ (100 / fields.carousel_number_of_slides_tablet|default(1))|round ~ 'vw, (min-width: 300px) ' ~(100 / fields.carousel_number_of_slides_mobile|default(1))|round ~ 'vw, 100vw' %}
97
97
 
98
98
 
99
99
  {% set sectionDataAttributes = dataAttributeEntryPoint ~ centerInsufficientSlidesDesktop ~ centerInsufficientSlidesPortrait ~ centerInsufficientSlidesMobile ~ autoplay ~ freeMode ~ mouseWheel ~ transitionDelay ~ transitionSpeed ~ transitionStyle ~ fractionStyle ~ fractionString ~ mobileSlides ~ tabletSlides ~ desktopSlides %}
@@ -115,8 +115,6 @@
115
115
  {% endif %}
116
116
  <div class="swiper-slide {{ blockClassName }}__slide" data-pattern-repeater-child="1">
117
117
  {{ include("blocks/" ~ slide.acf_fc_layout|replace({"_" : "-"}) ~ ".twig", {fields: slide, block, options, nav_menus, cta_styles, market_slug, imageSizes }, with_context = false, ignore_missing = true) }}
118
-
119
-
120
118
  </div>
121
119
  {% endfor %}
122
120
  </div>
@@ -14,7 +14,7 @@
14
14
  {% set gridLayoutContainer = include('components/grid-layout-container.twig') %}
15
15
  {% set gridGapMults = include('components/grid-gap-mults.twig') %}
16
16
  {% set blockElementType = fields.block_element_type|default('section')|ru %}
17
- {% set imageSizes = '(min-width: 1440px) ' ~ (100 / fields.grid_columns_desktop)|round ~ 'vw, (min-width: 1024px) ' ~ (100 / fields.grid_columns_desktop)|round ~ 'vw, (min-width: 768px) ' ~ (100 / fields.grid_columns_portrait)|round ~ 'vw, (min-width: 300px) ' ~(100 / fields.grid_columns_mobile)|round ~ 'vw, 100vw' %}
17
+ {% set imageSizes = '(min-width: 1440px) ' ~ (100 / fields.grid_columns_desktop|default(1))|round ~ 'vw, (min-width: 1024px) ' ~ (100 / fields.grid_columns_desktop|default(1))|round ~ 'vw, (min-width: 768px) ' ~ (100 / fields.grid_columns_portrait|default(1))|round ~ 'vw, (min-width: 300px) ' ~(100 / fields.grid_columns_mobile|default(1))|round ~ 'vw, 100vw' %}
18
18
 
19
19
  {% set sectionStyles = styleEntryPoint ~ fallbackBackgroundColour ~ gridGapMults ~ gridLayoutContainer ~ containerOverflowType ~ blockPosition %}
20
20
 
@@ -2,6 +2,26 @@
2
2
  "key": "group_68752075dd831",
3
3
  "title": "Block: Market Selector v3",
4
4
  "fields": [
5
+ {
6
+ "key": "field_687531fa51664",
7
+ "label": "Selector Settings",
8
+ "name": "",
9
+ "aria-label": "",
10
+ "type": "tab",
11
+ "instructions": "",
12
+ "required": 0,
13
+ "conditional_logic": 0,
14
+ "wrapper": {
15
+ "width": "",
16
+ "class": "",
17
+ "id": ""
18
+ },
19
+ "wpml_cf_preferences": 0,
20
+ "placement": "top",
21
+ "endpoint": 0,
22
+ "no_preference": 0,
23
+ "selected": 0
24
+ },
5
25
  {
6
26
  "key": "field_6875207709d8d",
7
27
  "label": "Selector Type",
@@ -16,7 +36,7 @@
16
36
  "class": "",
17
37
  "id": ""
18
38
  },
19
- "wpml_cf_preferences": 0,
39
+ "wpml_cf_preferences": 3,
20
40
  "choices": {
21
41
  "__pop-up": "Pop Up",
22
42
  "__inline": "Inline"
@@ -55,5 +75,5 @@
55
75
  "acfe_display_title": "",
56
76
  "acfe_meta": "",
57
77
  "acfe_note": "",
58
- "modified": 1752507313
78
+ "modified": 1752510991
59
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {