@total_onion/onion-library 1.1.15 → 1.1.17

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.
@@ -226,6 +226,123 @@
226
226
  "acfe_layout_col": "auto",
227
227
  "acfe_layout_allowed_col": false
228
228
  },
229
+ "layout_68c3f9a582094": {
230
+ "key": "layout_68c3f9a582094",
231
+ "name": "product_description",
232
+ "label": "Product Description",
233
+ "display": "block",
234
+ "sub_fields": [
235
+ {
236
+ "key": "field_68c3f9a582097",
237
+ "label": "Grid Layout",
238
+ "name": "",
239
+ "aria-label": "",
240
+ "type": "tab",
241
+ "instructions": "",
242
+ "required": 0,
243
+ "conditional_logic": 0,
244
+ "wrapper": {
245
+ "width": "",
246
+ "class": "",
247
+ "id": ""
248
+ },
249
+ "wpml_cf_preferences": 3,
250
+ "placement": "top",
251
+ "endpoint": 0,
252
+ "no_preference": 0,
253
+ "selected": 0
254
+ },
255
+ {
256
+ "key": "field_68c3f9a582098",
257
+ "label": "Grid layout",
258
+ "name": "grid_layout",
259
+ "aria-label": "",
260
+ "type": "clone",
261
+ "instructions": "",
262
+ "required": 0,
263
+ "conditional_logic": 0,
264
+ "wrapper": {
265
+ "width": "",
266
+ "class": "",
267
+ "id": ""
268
+ },
269
+ "wpml_cf_preferences": 3,
270
+ "clone": [
271
+ "group_68822860bda9f"
272
+ ],
273
+ "display": "seamless",
274
+ "layout": "block",
275
+ "prefix_label": 0,
276
+ "prefix_name": 0,
277
+ "acfe_seamless_style": 0,
278
+ "acfe_clone_modal": 0,
279
+ "acfe_clone_modal_close": 0,
280
+ "acfe_clone_modal_button": "",
281
+ "acfe_clone_modal_size": "large"
282
+ },
283
+ {
284
+ "key": "field_68c3f9a582099",
285
+ "label": "Style",
286
+ "name": "",
287
+ "aria-label": "",
288
+ "type": "tab",
289
+ "instructions": "",
290
+ "required": 0,
291
+ "conditional_logic": 0,
292
+ "wrapper": {
293
+ "width": "",
294
+ "class": "",
295
+ "id": ""
296
+ },
297
+ "wpml_cf_preferences": 3,
298
+ "placement": "top",
299
+ "endpoint": 0,
300
+ "no_preference": 0,
301
+ "selected": 0
302
+ },
303
+ {
304
+ "key": "field_68c3f9a58209a",
305
+ "label": "Text editor settings fields",
306
+ "name": "text_editor_settings_fields",
307
+ "aria-label": "",
308
+ "type": "clone",
309
+ "instructions": "",
310
+ "required": 0,
311
+ "conditional_logic": 0,
312
+ "wrapper": {
313
+ "width": "",
314
+ "class": "",
315
+ "id": ""
316
+ },
317
+ "wpml_cf_preferences": 3,
318
+ "clone": [
319
+ "group_687a4e2334e37"
320
+ ],
321
+ "display": "seamless",
322
+ "layout": "block",
323
+ "prefix_label": 0,
324
+ "prefix_name": 0,
325
+ "acfe_seamless_style": 0,
326
+ "acfe_clone_modal": 0,
327
+ "acfe_clone_modal_close": 0,
328
+ "acfe_clone_modal_button": "",
329
+ "acfe_clone_modal_size": "large"
330
+ }
331
+ ],
332
+ "min": "",
333
+ "max": "",
334
+ "acfe_flexible_render_template": false,
335
+ "acfe_flexible_render_style": false,
336
+ "acfe_flexible_render_script": false,
337
+ "acfe_flexible_thumbnail": false,
338
+ "acfe_flexible_settings": false,
339
+ "acfe_flexible_settings_size": "medium",
340
+ "acfe_layout_locations": [],
341
+ "acfe_flexible_modal_edit_size": false,
342
+ "acfe_flexible_category": false,
343
+ "acfe_layout_col": "auto",
344
+ "acfe_layout_allowed_col": false
345
+ },
229
346
  "layout_6890c6b5b778e": {
230
347
  "key": "layout_6890c6b5b778e",
231
348
  "name": "product_country",
@@ -2099,7 +2216,7 @@
2099
2216
  "class": "",
2100
2217
  "id": ""
2101
2218
  },
2102
- "wpml_cf_preferences": "",
2219
+ "wpml_cf_preferences": 3,
2103
2220
  "placement": "top",
2104
2221
  "endpoint": 0,
2105
2222
  "no_preference": 0,
@@ -2119,7 +2236,7 @@
2119
2236
  "class": "",
2120
2237
  "id": ""
2121
2238
  },
2122
- "wpml_cf_preferences": "",
2239
+ "wpml_cf_preferences": 3,
2123
2240
  "clone": [
2124
2241
  "group_68822860bda9f"
2125
2242
  ],
@@ -2147,7 +2264,7 @@
2147
2264
  "class": "",
2148
2265
  "id": ""
2149
2266
  },
2150
- "wpml_cf_preferences": "",
2267
+ "wpml_cf_preferences": 3,
2151
2268
  "placement": "top",
2152
2269
  "endpoint": 0,
2153
2270
  "no_preference": 0,
@@ -2167,7 +2284,7 @@
2167
2284
  "class": "",
2168
2285
  "id": ""
2169
2286
  },
2170
- "wpml_cf_preferences": "",
2287
+ "wpml_cf_preferences": 3,
2171
2288
  "clone": [
2172
2289
  "group_687a4e2334e37"
2173
2290
  ],
@@ -2216,7 +2333,7 @@
2216
2333
  "class": "",
2217
2334
  "id": ""
2218
2335
  },
2219
- "wpml_cf_preferences": "",
2336
+ "wpml_cf_preferences": 3,
2220
2337
  "placement": "top",
2221
2338
  "endpoint": 0,
2222
2339
  "no_preference": 0,
@@ -2236,7 +2353,7 @@
2236
2353
  "class": "",
2237
2354
  "id": ""
2238
2355
  },
2239
- "wpml_cf_preferences": "",
2356
+ "wpml_cf_preferences": 3,
2240
2357
  "clone": [
2241
2358
  "group_68822860bda9f"
2242
2359
  ],
@@ -2264,7 +2381,7 @@
2264
2381
  "class": "",
2265
2382
  "id": ""
2266
2383
  },
2267
- "wpml_cf_preferences": "",
2384
+ "wpml_cf_preferences": 3,
2268
2385
  "placement": "top",
2269
2386
  "endpoint": 0,
2270
2387
  "no_preference": 0,
@@ -2284,7 +2401,7 @@
2284
2401
  "class": "",
2285
2402
  "id": ""
2286
2403
  },
2287
- "wpml_cf_preferences": "",
2404
+ "wpml_cf_preferences": 3,
2288
2405
  "clone": [
2289
2406
  "group_687a4e2334e37"
2290
2407
  ],
@@ -2998,5 +3115,5 @@
2998
3115
  "acfe_display_title": "",
2999
3116
  "acfe_meta": "",
3000
3117
  "acfe_note": "",
3001
- "modified": 1757434763
3118
+ "modified": 1757673908
3002
3119
  }
@@ -0,0 +1,14 @@
1
+ {% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
2
+ {% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
3
+ {% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
4
+ {% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
5
+ {% set elementType = field.element_type|ru %}
6
+ <style>
7
+ .{{blockClassName}}__product-description.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
8
+ {{textEditorStyleVars}}
9
+ {{gridLayoutElement}}
10
+ }
11
+ </style>
12
+ <div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{blockClassName}}__info-item {{block.id}}">
13
+ <{{elementType|default('p')}} data-pattern-post-info="description" class="{{blockClassName}}__product-description {{textEditorElementClasses}} {{block.id}}">{{post.product_description}}</{{elementType|default('p')}}>
14
+ </div>
@@ -1,3 +1,6 @@
1
+ @use '../fields-core-mixins-v3/core-mixins-v3';
2
+ @use '../fields-core-functions-v3/core-functions-v3';
3
+ @use '../../breakpoints';
1
4
  // @use 'NodeModules/@pernod-ricard-global-cms/cblvideocontroller/vc-styles';
2
5
  // @use 'Assets/scss/blocks/video-content-v3/video-content-v3-extra';
3
6
  .video-content-v3 {
@@ -16,7 +19,7 @@
16
19
  transition: opacity 0.5s, background-color 1s;
17
20
  z-index: -1;
18
21
 
19
- @include core-mixins.device(breakpoints.$tabPortrait) {
22
+ @include core-mixins-v3.device(breakpoints.$tabPortrait) {
20
23
  object-fit: cover;
21
24
  grid-area: main;
22
25
  }
@@ -50,8 +53,8 @@
50
53
  left: 50%;
51
54
  top: 50%;
52
55
  transform: translate(-50%, -50%);
53
- width: core-functions.fluidSize(84, 'static');
54
- height: core-functions.fluidSize(84, 'static');
56
+ width: core-functions-v3.fluidSize(84, 'static');
57
+ height: core-functions-v3.fluidSize(84, 'static');
55
58
 
56
59
  --spinner-bg-colour: #ffffff54;
57
60
  --spinner-colour: white;
@@ -60,17 +63,17 @@
60
63
  content: '';
61
64
  top: 0;
62
65
  left: 0;
63
- width: core-functions.fluidSize(84, 'static');
64
- height: core-functions.fluidSize(84, 'static');
66
+ width: core-functions-v3.fluidSize(84, 'static');
67
+ height: core-functions-v3.fluidSize(84, 'static');
65
68
  position: absolute;
66
69
  border-radius: 50%;
67
- border-right: solid core-functions.fluidSize(5, 'static')
70
+ border-right: solid core-functions-v3.fluidSize(5, 'static')
68
71
  var(--spinner-bg-colour);
69
- border-left: solid core-functions.fluidSize(5, 'static')
72
+ border-left: solid core-functions-v3.fluidSize(5, 'static')
70
73
  var(--spinner-bg-colour);
71
- border-top: solid core-functions.fluidSize(5, 'static')
74
+ border-top: solid core-functions-v3.fluidSize(5, 'static')
72
75
  var(--spinner-bg-colour);
73
- border-bottom: solid core-functions.fluidSize(5, 'static')
76
+ border-bottom: solid core-functions-v3.fluidSize(5, 'static')
74
77
  var(--spinner-colour);
75
78
  animation: rotate 1s linear infinite;
76
79
  }
@@ -80,7 +83,7 @@
80
83
  &__video-play-button {
81
84
  grid-area: main;
82
85
  place-self: center;
83
- @include playButtonDefault();
86
+ // @include playButtonDefault();
84
87
  transform: scale(1);
85
88
  transition: transform 0.3s 0.5s;
86
89