@total_onion/onion-library 1.0.147 → 1.0.149
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-group-container-v3/group_6865578ada499.json +101 -3
- package/components/block-product-info-v3/product-info-v3/product-cask-type.twig +14 -0
- package/components/block-product-info-v3/product-info-v3/product-finish.twig +14 -0
- package/components/block-product-info-v3/product-info-v3/product-nose.twig +14 -0
- package/components/block-product-info-v3/product-info-v3/product-taste.twig +14 -0
- package/components/block-smash-balloon-social-media-v3/smash-balloon-social-media-v3-extra.scss +6 -0
- package/components/block-smash-balloon-social-media-v3/smash-balloon-social-media-v3.js +8 -0
- package/components/block-smash-balloon-social-media-v3/smash-balloon-social-media-v3.php +14 -0
- package/components/block-smash-balloon-social-media-v3/smash-balloon-social-media-v3.scss +11 -0
- package/components/block-smash-balloon-social-media-v3/smash-balloon-social-media-v3.twig +18 -0
- package/package.json +31 -31
|
@@ -363,6 +363,103 @@
|
|
|
363
363
|
"acfe_layout_col": "auto",
|
|
364
364
|
"acfe_layout_allowed_col": false
|
|
365
365
|
},
|
|
366
|
+
"layout_6890e2955cff4": {
|
|
367
|
+
"key": "layout_6890e2955cff4",
|
|
368
|
+
"name": "accent_image_v3",
|
|
369
|
+
"label": "Accent Image v3",
|
|
370
|
+
"display": "block",
|
|
371
|
+
"sub_fields": [
|
|
372
|
+
{
|
|
373
|
+
"key": "field_6890e2955cff7",
|
|
374
|
+
"label": "Grid Layout",
|
|
375
|
+
"name": "",
|
|
376
|
+
"aria-label": "",
|
|
377
|
+
"type": "tab",
|
|
378
|
+
"instructions": "",
|
|
379
|
+
"required": 0,
|
|
380
|
+
"conditional_logic": 0,
|
|
381
|
+
"wrapper": {
|
|
382
|
+
"width": "",
|
|
383
|
+
"class": "",
|
|
384
|
+
"id": ""
|
|
385
|
+
},
|
|
386
|
+
"wpml_cf_preferences": 3,
|
|
387
|
+
"placement": "top",
|
|
388
|
+
"endpoint": 0,
|
|
389
|
+
"no_preference": 0,
|
|
390
|
+
"selected": 0
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"key": "field_6890e2955cff8",
|
|
394
|
+
"label": "grid layout",
|
|
395
|
+
"name": "grid_layout",
|
|
396
|
+
"aria-label": "",
|
|
397
|
+
"type": "clone",
|
|
398
|
+
"instructions": "",
|
|
399
|
+
"required": 0,
|
|
400
|
+
"conditional_logic": 0,
|
|
401
|
+
"wrapper": {
|
|
402
|
+
"width": "",
|
|
403
|
+
"class": "",
|
|
404
|
+
"id": ""
|
|
405
|
+
},
|
|
406
|
+
"wpml_cf_preferences": 3,
|
|
407
|
+
"clone": [
|
|
408
|
+
"group_6504a81a0623c"
|
|
409
|
+
],
|
|
410
|
+
"display": "seamless",
|
|
411
|
+
"layout": "block",
|
|
412
|
+
"prefix_label": 0,
|
|
413
|
+
"prefix_name": 0,
|
|
414
|
+
"acfe_seamless_style": 0,
|
|
415
|
+
"acfe_clone_modal": 0,
|
|
416
|
+
"acfe_clone_modal_close": 0,
|
|
417
|
+
"acfe_clone_modal_button": "",
|
|
418
|
+
"acfe_clone_modal_size": "large"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"key": "field_6890e2955cff9",
|
|
422
|
+
"label": "Accent Image fields",
|
|
423
|
+
"name": "accent_image_fields",
|
|
424
|
+
"aria-label": "",
|
|
425
|
+
"type": "clone",
|
|
426
|
+
"instructions": "",
|
|
427
|
+
"required": 0,
|
|
428
|
+
"conditional_logic": 0,
|
|
429
|
+
"wrapper": {
|
|
430
|
+
"width": "",
|
|
431
|
+
"class": "",
|
|
432
|
+
"id": ""
|
|
433
|
+
},
|
|
434
|
+
"wpml_cf_preferences": 3,
|
|
435
|
+
"clone": [
|
|
436
|
+
"group_6890e1233ff2d"
|
|
437
|
+
],
|
|
438
|
+
"display": "seamless",
|
|
439
|
+
"layout": "block",
|
|
440
|
+
"prefix_label": 0,
|
|
441
|
+
"prefix_name": 0,
|
|
442
|
+
"acfe_seamless_style": 0,
|
|
443
|
+
"acfe_clone_modal": 0,
|
|
444
|
+
"acfe_clone_modal_close": 0,
|
|
445
|
+
"acfe_clone_modal_button": "",
|
|
446
|
+
"acfe_clone_modal_size": "large"
|
|
447
|
+
}
|
|
448
|
+
],
|
|
449
|
+
"min": "",
|
|
450
|
+
"max": "",
|
|
451
|
+
"acfe_flexible_render_template": false,
|
|
452
|
+
"acfe_flexible_render_style": false,
|
|
453
|
+
"acfe_flexible_render_script": false,
|
|
454
|
+
"acfe_flexible_thumbnail": false,
|
|
455
|
+
"acfe_flexible_settings": false,
|
|
456
|
+
"acfe_flexible_settings_size": "medium",
|
|
457
|
+
"acfe_layout_locations": [],
|
|
458
|
+
"acfe_flexible_modal_edit_size": false,
|
|
459
|
+
"acfe_flexible_category": false,
|
|
460
|
+
"acfe_layout_col": "auto",
|
|
461
|
+
"acfe_layout_allowed_col": false
|
|
462
|
+
},
|
|
366
463
|
"layout_68719af41ceed": {
|
|
367
464
|
"key": "layout_68719af41ceed",
|
|
368
465
|
"name": "video_content_v3",
|
|
@@ -773,8 +870,8 @@
|
|
|
773
870
|
},
|
|
774
871
|
"layout_689076649608d": {
|
|
775
872
|
"key": "layout_689076649608d",
|
|
776
|
-
"name": "
|
|
777
|
-
"label": "Smash Balloon Social Media",
|
|
873
|
+
"name": "smash_balloon_social_media_v3",
|
|
874
|
+
"label": "Smash Balloon Social Media V3",
|
|
778
875
|
"display": "block",
|
|
779
876
|
"sub_fields": [
|
|
780
877
|
{
|
|
@@ -2805,9 +2902,10 @@
|
|
|
2805
2902
|
"json"
|
|
2806
2903
|
],
|
|
2807
2904
|
"acfml_field_group_mode": "localization",
|
|
2905
|
+
"acfml_field_group_mode": "localization",
|
|
2808
2906
|
"acfe_form": 0,
|
|
2809
2907
|
"acfe_display_title": "",
|
|
2810
2908
|
"acfe_meta": "",
|
|
2811
2909
|
"acfe_note": "",
|
|
2812
2910
|
"modified": 1754409996
|
|
2813
|
-
}
|
|
2911
|
+
}
|
|
@@ -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-cask-type.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
|
|
8
|
+
{{textEditorStyleVars}}
|
|
9
|
+
{{gridLayoutElement}}
|
|
10
|
+
}
|
|
11
|
+
</style>
|
|
12
|
+
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
|
|
13
|
+
<{{elementType|default('p')}} data-pattern-post-info="name" class="{{blockClassName}}__product-cask-type {{blockClassName}}__info-item {{textEditorElementClasses}} {{block.id}}">{{post.product_cask_type}}</{{elementType|default('p')}}>
|
|
14
|
+
</div>
|
|
@@ -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-finish.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
|
|
8
|
+
{{textEditorStyleVars}}
|
|
9
|
+
{{gridLayoutElement}}
|
|
10
|
+
}
|
|
11
|
+
</style>
|
|
12
|
+
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
|
|
13
|
+
<{{elementType|default('p')}} data-pattern-post-info="name" class="{{blockClassName}}__product-finish {{blockClassName}}__info-item {{textEditorElementClasses}} {{block.id}}">{{post.product_finish}}</{{elementType|default('p')}}>
|
|
14
|
+
</div>
|
|
@@ -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-nose.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
|
|
8
|
+
{{textEditorStyleVars}}
|
|
9
|
+
{{gridLayoutElement}}
|
|
10
|
+
}
|
|
11
|
+
</style>
|
|
12
|
+
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
|
|
13
|
+
<{{elementType|default('p')}} data-pattern-post-info="name" class="{{blockClassName}}__product-nose {{blockClassName}}__info-item {{textEditorElementClasses}} {{block.id}}">{{post.product_nose}}</{{elementType|default('p')}}>
|
|
14
|
+
</div>
|
|
@@ -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-taste.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
|
|
8
|
+
{{textEditorStyleVars}}
|
|
9
|
+
{{gridLayoutElement}}
|
|
10
|
+
}
|
|
11
|
+
</style>
|
|
12
|
+
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
|
|
13
|
+
<{{elementType|default('p')}} data-pattern-post-info="name" class="{{blockClassName}}__product-taste {{blockClassName}}__info-item {{textEditorElementClasses}} {{block.id}}">{{post.product_taste}}</{{elementType|default('p')}}>
|
|
14
|
+
</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
acf_register_block_type(
|
|
4
|
+
array(
|
|
5
|
+
'name' => 'smash-balloon-social-media-v3',
|
|
6
|
+
'title' => __( 'Smash balloon social media v3', 'Global-theme Admin' ),
|
|
7
|
+
'render_callback' => 'athena_block_render_post_object',
|
|
8
|
+
'category' => 'common',
|
|
9
|
+
'icon' => get_svg_icon_content('brick.svg'),
|
|
10
|
+
'keywords' => array('content', 'text' ),
|
|
11
|
+
'mode' => 'preview',
|
|
12
|
+
'supports' => array( 'align' => false, 'anchor' => true ),
|
|
13
|
+
)
|
|
14
|
+
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
|
|
2
|
+
// @use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
3
|
+
// @use 'Assets/scss/theme/breakpoints';
|
|
4
|
+
@use 'Assets/scss/blocks/smash-balloon-social-media-v3/smash-balloon-social-media-v3-extra';
|
|
5
|
+
.smash-balloon-social-media-v3 {
|
|
6
|
+
&__instagram {
|
|
7
|
+
width:100%;
|
|
8
|
+
position:relative;
|
|
9
|
+
}
|
|
10
|
+
@include smash-balloon-social-media-v3-extra.additionalStyles();
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{% set blockClassName = "smashballoon" %}
|
|
2
|
+
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
|
|
3
|
+
{% set htmlEntryPoint = include('entry-points/entry-point-html.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
|
|
4
|
+
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
|
|
5
|
+
{% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
|
|
6
|
+
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
7
|
+
|
|
8
|
+
{% set sectionStyles = styleEntryPoint %}
|
|
9
|
+
|
|
10
|
+
{{previewEntryPoint}}
|
|
11
|
+
|
|
12
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}}" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" style="{{sectionStyles}}" data-assetkey="{{blockClassName}}">
|
|
13
|
+
{% if fields.social_media_type == 'instagram' %}
|
|
14
|
+
{{ function('do_shortcode', '[instagram-feed feed=' ~ fields.feed_id ~ ']') }}
|
|
15
|
+
{% endif %}
|
|
16
|
+
|
|
17
|
+
{{htmlEntryPoint}}
|
|
18
|
+
</section>
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
2
|
+
"name": "@total_onion/onion-library",
|
|
3
|
+
"version": "1.0.149",
|
|
4
|
+
"description": "Component library",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "esbuild",
|
|
8
|
+
"test": "jest"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/Chivas-Brothers/cbl-component-library.git"
|
|
13
|
+
},
|
|
14
|
+
"author": "Ciaran",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/Chivas-Brothers/cbl-component-library/issues"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/Chivas-Brothers/cbl-component-library#readme",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"cpy": "^9.0.1",
|
|
22
|
+
"fs": "^0.0.1-security",
|
|
23
|
+
"fs-extra": "^11.1.0",
|
|
24
|
+
"glob": "^11.0.0",
|
|
25
|
+
"prettier": "^2.6.2",
|
|
26
|
+
"yargs": "^17.4.1"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"dotenv": "^16.0.3",
|
|
30
|
+
"esbuild": "0.25.5"
|
|
31
|
+
}
|
|
32
|
+
}
|