@total_onion/onion-library 1.0.126 → 1.0.127

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.
@@ -0,0 +1,6 @@
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
+ @mixin additionalStyles() {
5
+
6
+ }
@@ -0,0 +1,7 @@
1
+ export default function accentimagev3Js ( options = {} ) {
2
+ try {
3
+ const { block } = options;
4
+ } catch ( error ) {
5
+ console.error( error );
6
+ }
7
+ }
@@ -0,0 +1,14 @@
1
+ <?php
2
+
3
+ acf_register_block_type(
4
+ array(
5
+ 'name' => 'accent-image-v3',
6
+ 'title' => __( 'Accent image 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,7 @@
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/accent-image-v3/accent-image-v3-extra';
5
+ .accent-image-v3 {
6
+ @include accent-image-v3-extra.additionalStyles();
7
+ }
@@ -0,0 +1,18 @@
1
+
2
+ {% set blockClassName = "accent-image-v3" %}
3
+ {% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
4
+ {% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
5
+ {% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
6
+ {% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
7
+ {% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
8
+
9
+ {% set sectionStyles = styleEntryPoint %}
10
+
11
+ {{previewEntryPoint}}
12
+ <section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" style="{{sectionStyles}}" data-assetkey="{{blockClassName}}">
13
+
14
+ {% if fields.accent_image_v3.enable_accent_image_v3 %}
15
+ {{ include('components/accent-image-v3.twig', {fields, block, blockClassName, is_preview}, with_context = false, ignore_missing = true) }}
16
+ {% endif %}
17
+ {{htmlEntryPoint}}
18
+ </section>
@@ -0,0 +1,81 @@
1
+ {
2
+ "key": "group_6890e1233ff2d",
3
+ "title": "Block: Accent Image V3",
4
+ "fields": [
5
+ {
6
+ "key": "field_6890e1257104e",
7
+ "label": "Accent Image V3",
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": 3,
20
+ "placement": "top",
21
+ "endpoint": 0,
22
+ "no_preference": 0,
23
+ "selected": 0
24
+ },
25
+ {
26
+ "key": "field_6890e1f108b98",
27
+ "label": "Accent Image V3 fields",
28
+ "name": "accent_image_v3_fields",
29
+ "aria-label": "",
30
+ "type": "clone",
31
+ "instructions": "",
32
+ "required": 0,
33
+ "conditional_logic": 0,
34
+ "wrapper": {
35
+ "width": "",
36
+ "class": "",
37
+ "id": ""
38
+ },
39
+ "wpml_cf_preferences": 0,
40
+ "clone": [
41
+ "group_686cd5547efd2"
42
+ ],
43
+ "display": "seamless",
44
+ "layout": "block",
45
+ "prefix_label": 0,
46
+ "prefix_name": 0,
47
+ "acfe_seamless_style": 0,
48
+ "acfe_clone_modal": 0,
49
+ "acfe_clone_modal_close": 0,
50
+ "acfe_clone_modal_button": "",
51
+ "acfe_clone_modal_size": "large"
52
+ }
53
+ ],
54
+ "location": [
55
+ [
56
+ {
57
+ "param": "block",
58
+ "operator": "==",
59
+ "value": "acf\/accent-image-v3"
60
+ }
61
+ ]
62
+ ],
63
+ "menu_order": 0,
64
+ "position": "normal",
65
+ "style": "default",
66
+ "label_placement": "left",
67
+ "instruction_placement": "label",
68
+ "hide_on_screen": "",
69
+ "active": true,
70
+ "description": "",
71
+ "show_in_rest": 0,
72
+ "acfe_autosync": [
73
+ "json"
74
+ ],
75
+ "acfml_field_group_mode": "localization",
76
+ "acfe_form": 0,
77
+ "acfe_display_title": "",
78
+ "acfe_meta": "",
79
+ "acfe_note": "",
80
+ "modified": 1754325536
81
+ }
@@ -1,6 +1,6 @@
1
- {% if fields.accent_image_v2.enable_accent_image_v2 %}
2
- {% for image in fields.accent_image_v2.accent_images %}
3
- {% set accentImage = get_image(image.accent_image_v2_image) %}
1
+ {% if fields.accent_image_v3.enable_accent_image_v3 %}
2
+ {% for image in fields.accent_image_v3.accent_images %}
3
+ {% set accentImage = get_image(image.accent_image_v3_image) %}
4
4
  {% set rotationDesktop = image.desktop_positioning.image_rotation_desktop|default(0) %}
5
5
  {% set rotationMobile = image.mobile_positioning.image_rotation_mobile|default(rotationDesktop) %}
6
6
  {% set opacity = image.accent_image_opacity|default(1) %}
@@ -101,7 +101,7 @@
101
101
  alt="{{ accentImage.alt }}"
102
102
  loading="lazy"
103
103
  />
104
- {% if fields.accent_image_v2.show_image_number and is_preview%}
104
+ {% if fields.accent_image_v3.show_image_number and is_preview%}
105
105
  <div class="{{blockClassName}}__image-number">{{ loop.index }}</div>
106
106
  {% endif %}
107
107
  </{{accentImageContainerElement}}>
@@ -20,6 +20,9 @@
20
20
  "layout": "block",
21
21
  "acfe_seamless_style": 0,
22
22
  "acfe_group_modal": 0,
23
+ "acfe_group_modal_close": 0,
24
+ "acfe_group_modal_button": "",
25
+ "acfe_group_modal_size": "large",
23
26
  "sub_fields": [
24
27
  {
25
28
  "key": "field_686cd5548b803",
@@ -128,8 +131,8 @@
128
131
  },
129
132
  {
130
133
  "key": "field_686cd5549023b",
131
- "label": "Accent Image v2 Image",
132
- "name": "accent_image_v2_image",
134
+ "label": "Accent Image v3 Image",
135
+ "name": "accent_image_v3_image",
133
136
  "aria-label": "",
134
137
  "type": "image",
135
138
  "instructions": "",
@@ -141,8 +144,11 @@
141
144
  "id": ""
142
145
  },
143
146
  "wpml_cf_preferences": 3,
147
+ "uploader": "",
144
148
  "return_format": "id",
145
149
  "library": "all",
150
+ "upload_folder": "",
151
+ "acfe_thumbnail": 0,
146
152
  "min_width": "",
147
153
  "min_height": "",
148
154
  "min_size": "",
@@ -151,10 +157,7 @@
151
157
  "max_size": "",
152
158
  "mime_types": "",
153
159
  "preview_size": "medium",
154
- "parent_repeater": "field_686cd5548bfb0",
155
- "uploader": "",
156
- "acfe_thumbnail": 0,
157
- "upload_folder": ""
160
+ "parent_repeater": "field_686cd5548bfb0"
158
161
  },
159
162
  {
160
163
  "key": "field_686cd554905f8",
@@ -912,10 +915,7 @@
912
915
  }
913
916
  ]
914
917
  }
915
- ],
916
- "acfe_group_modal_close": 0,
917
- "acfe_group_modal_button": "",
918
- "acfe_group_modal_size": "large"
918
+ ]
919
919
  }
920
920
  ],
921
921
  "location": [
@@ -944,5 +944,5 @@
944
944
  "acfe_display_title": "",
945
945
  "acfe_meta": "",
946
946
  "acfe_note": "",
947
- "modified": 1751962992
947
+ "modified": 1754326595
948
948
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.0.126",
3
+ "version": "1.0.127",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {