@total_onion/onion-library 1.0.97 → 1.0.98

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.
@@ -19,10 +19,12 @@
19
19
  }
20
20
  }
21
21
  &__block-container {
22
- @include grid-layout-element-v3.gridLayoutElement();
23
22
  z-index: 5;
24
23
  pointer-events: none;
25
24
  position: relative;
25
+ &.grid-layout-container {
26
+ @include grid-layout-container-v3.gridLayoutContainer();
27
+ }
26
28
  &:has(.video-content-v3__video-container.video-playing) {
27
29
  z-index: 100;
28
30
  }
@@ -6,7 +6,7 @@
6
6
  {% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
7
7
  {% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
8
8
 
9
- {% set layoutType = fields.layout_type|ru %}
9
+ {% set layoutType = fields.layout_type|ru|default('grid') %}
10
10
  {% set layoutStyles = '' %}
11
11
  {% if layoutType == 'flex' %}
12
12
  {% set layoutStyles = include('components/flex-layout-container-v3.twig') %}
@@ -39,7 +39,6 @@
39
39
  }
40
40
  </style>
41
41
  <div class="group-container-v3__grid-container {{layoutClass}} {{block.id}}">
42
-
43
42
  {% for section in fields.sections %}
44
43
  {% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: section, block }, with_context = false) %}
45
44
  {% if block %}
@@ -50,7 +49,7 @@
50
49
  {{gridLayoutElement}}
51
50
  }
52
51
  </style>
53
- <div class="group-container-v3__block-container {{block.id}}">
52
+ <div class="group-container-v3__block-container {{layoutClass}} {{block.id}}">
54
53
  {% if fields.show_block_numbers and is_preview %}
55
54
  <div class="{{blockClassName}}__block-number">{{ loop.index }}</div>
56
55
  {% endif %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {