@total_onion/onion-library 1.0.108 → 1.0.109

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-v3/core-mixins-v3';
2
+ @use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
3
+ @use 'Assets/scss/theme/breakpoints';
4
+ @mixin additionalStyles() {
5
+
6
+ }
@@ -0,0 +1,119 @@
1
+ export default function accordionv3Js ( options = {} ) {
2
+ try {
3
+ const { block } = options;
4
+
5
+ const blockClassName = block.dataset.assetkey;
6
+ const sections = block.querySelectorAll(
7
+ `.${blockClassName}-content`
8
+ );
9
+ const closeAccordionSections = () => {
10
+ sections.forEach((section) => {
11
+ if (section.classList.contains('active')) {
12
+ const question = section.querySelector(
13
+ `.${blockClassName}-question-wrapper`
14
+ );
15
+ const answer = section.querySelector(
16
+ `.${blockClassName}-answer-wrapper`
17
+ );
18
+ const svg = section.querySelector(
19
+ `.${blockClassName}-icon`
20
+ );
21
+ const iconImage = section.querySelector(
22
+ `.${blockClassName}-image-wrapper`
23
+ );
24
+ const sectionHeight = answer.scrollHeight;
25
+ answer.animate(
26
+ [
27
+ {
28
+ height: sectionHeight + 'px'
29
+ },
30
+ {height: '0px'}
31
+ ],
32
+ {
33
+ fill: 'forwards',
34
+ duration: 200,
35
+ easing: 'ease-out'
36
+ }
37
+ );
38
+ answer.setAttribute('aria-hidden', 'true');
39
+ question.classList.remove('active');
40
+ section.classList.remove('active');
41
+ if (svg) {
42
+ svg.classList.remove('active');
43
+ }
44
+ if (iconImage) {
45
+ iconImage.classList.remove('image-icon-active');
46
+ }
47
+ }
48
+ });
49
+ };
50
+
51
+ sections.forEach((section) => {
52
+ const question = section.querySelector(
53
+ `.${blockClassName}-question-wrapper`
54
+ );
55
+ const answer = section.querySelector(
56
+ `.${blockClassName}-answer-wrapper`
57
+ );
58
+ const svg = section.querySelector(`.${blockClassName}-icon`);
59
+ const iconImage = section.querySelector(
60
+ `.${blockClassName}-image-wrapper`
61
+ );
62
+ question.addEventListener('click', () => {
63
+ const isCollapsed = answer.getAttribute('aria-hidden') === 'true';
64
+ closeAccordionSections();
65
+ if (isCollapsed) {
66
+ const sectionHeight = answer.scrollHeight;
67
+ answer.animate(
68
+ [
69
+ {height: '0px'},
70
+ {
71
+ height: sectionHeight + 'px'
72
+ }
73
+ ],
74
+ {
75
+ fill: 'forwards',
76
+ duration: 200,
77
+ easing: 'ease-out'
78
+ }
79
+ );
80
+ section.classList.add('active');
81
+ answer.classList.add('active');
82
+ answer.setAttribute('aria-hidden', 'false');
83
+ if (svg) {
84
+ svg.classList.add('active');
85
+ }
86
+ if (iconImage) {
87
+ iconImage.classList.add('image-icon-active');
88
+ }
89
+ } else {
90
+ const sectionHeight = answer.scrollHeight;
91
+ section.classList.remove('active');
92
+ answer.animate(
93
+ [
94
+ {
95
+ height: sectionHeight + 'px'
96
+ },
97
+ {height: '0px'}
98
+ ],
99
+ {
100
+ fill: 'forwards',
101
+ duration: 200,
102
+ easing: 'ease-out'
103
+ }
104
+ );
105
+ answer.classList.remove('active');
106
+ answer.setAttribute('aria-hidden', 'true');
107
+ if (svg) {
108
+ svg.classList.remove('active');
109
+ }
110
+ if (iconImage) {
111
+ iconImage.classList.remove('image-icon-active');
112
+ }
113
+ }
114
+ });
115
+ });
116
+ } catch ( error ) {
117
+ console.error( error );
118
+ }
119
+ }
@@ -0,0 +1,14 @@
1
+ <?php
2
+
3
+ acf_register_block_type(
4
+ array(
5
+ 'name' => 'accordion-v3',
6
+ 'title' => __( 'Accordion 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,185 @@
1
+ @use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
2
+ @use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
3
+ @use 'Assets/scss/theme/breakpoints';
4
+ @use 'Assets/scss/blocks/accordion-v3/accordion-v3-extra';
5
+ @use 'Assets/scss/modules/library-modules/content-container-settings-v3/content-container-settings-v3';
6
+
7
+ .accordion-v3 {
8
+
9
+ @include content-container-settings-v3.contentContainerSettingsV3();
10
+ width: 100%;
11
+ pointer-events: all;
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: core-functions-v3.fluidSize(var(--title-gap), 'mobile');
15
+ @include core-mixins-v3.device(breakpoints.$tabPortrait) {
16
+ gap: core-functions-v3.fluidSize(var(--title-gap), 'portrait');
17
+ }
18
+ @include core-mixins-v3.device(breakpoints.$tabLandscape) {
19
+ gap: core-functions-v3.fluidSize(var(--title-gap), 'desktop');
20
+ }
21
+
22
+ &-wrapper {
23
+ text-align: initial;
24
+ background: var(--background-color);
25
+ }
26
+
27
+ &-question-wrapper {
28
+ cursor: pointer;
29
+ place-items: flex-start;
30
+ button {
31
+ width: 100%;
32
+ align-items: center;
33
+ cursor: pointer;
34
+ background: unset;
35
+ padding: unset;
36
+ border: unset;
37
+ }
38
+ }
39
+
40
+ &-image-wrapper {
41
+ grid-area: icon;
42
+ position: absolute;
43
+ right: core-functions-v3.fluidSize(2,'static');
44
+ width: core-functions-v3.fluidSize(var(--image-icon-size), 'mobile');
45
+
46
+ @include core-mixins-v3.device(breakpoints.$tabPortrait) {
47
+ width: core-functions-v3.fluidSize(var(--image-icon-size), 'portrait');
48
+ }
49
+
50
+ @include core-mixins-v3.device(breakpoints.$tabLandscape) {
51
+ width: core-functions-v3.fluidSize(var(--image-icon-size), 'desktop');
52
+ }
53
+
54
+ img {
55
+ width: 100%;
56
+ }
57
+ }
58
+
59
+ &-question {
60
+ text-align: left;
61
+ display: grid;
62
+ grid-template:
63
+ 'question icon'
64
+ 'answer ...' / auto min-content;
65
+ &--icon-left {
66
+ grid-template:
67
+ 'icon question'
68
+ '... answer' / min-content auto;
69
+ column-gap: core-functions-v3.fluidSize(20, 'static');
70
+ }
71
+ }
72
+
73
+ &-answer-wrapper {
74
+ overflow: hidden;
75
+ height: 0;
76
+ grid-area: answer;
77
+
78
+ p {
79
+ padding-inline: core-functions-v3.fluidSize(
80
+ var(--text-padding-horizontal),
81
+ 'mobile'
82
+ );
83
+
84
+ @include core-mixins-v3.device(breakpoints.$tabPortrait) {
85
+ padding-inline: core-functions-v3.fluidSize(
86
+ var(--text-padding-horizontal),
87
+ 'portrait'
88
+ );
89
+ }
90
+
91
+ @include core-mixins-v3.device(breakpoints.$tabLandscape) {
92
+ padding-inline: core-functions-v3.fluidSize(
93
+ var(--text-padding-horizontal),
94
+ 'desktop'
95
+ );
96
+ }
97
+ }
98
+ }
99
+
100
+ &-answer {
101
+ font-size: core-functions-v3.fontSize(22, 'static');
102
+ grid-column: 1/-1;
103
+ padding-bottom: core-functions-v3.fluidSize(20, 'mobile');
104
+ padding-top: core-functions-v3.fluidSize(20, 'mobile');
105
+
106
+ @include core-mixins-v3.device(breakpoints.$tabPortrait) {
107
+ padding-bottom: core-functions-v3.fluidSize(20, 'portrait');
108
+ padding-top: core-functions-v3.fluidSize(20, 'portrait');
109
+ }
110
+
111
+ @include core-mixins-v3.device(breakpoints.$tabLandscape) {
112
+ padding-bottom: core-functions-v3.fluidSize(20, 'desktop');
113
+ padding-top: core-functions-v3.fluidSize(20, 'desktop');
114
+ }
115
+
116
+ &:last-child {
117
+ padding-bottom: 0;
118
+ }
119
+ }
120
+
121
+ &-icon {
122
+ grid-area: icon;
123
+ background: var(--icon-background-color);
124
+ display: flex;
125
+ align-items: center;
126
+ height: core-functions-v3.fluidSize(50, 'static');
127
+ width: core-functions-v3.fluidSize(50, 'static');
128
+
129
+ &.active {
130
+ .accordion-v3-animation {
131
+ &:before {
132
+ transform: rotate(90deg);
133
+ }
134
+
135
+ &:after {
136
+ transform: rotate(180deg);
137
+ }
138
+ }
139
+ }
140
+ }
141
+
142
+ .image-icon-active {
143
+ transform: rotate(var(--image-icon-rotation-deg));
144
+ transition: transform 0.3s ease;
145
+ }
146
+
147
+ :not(.image-icon-active, .lottie-animations *) {
148
+ transform: rotate(0deg);
149
+ transition: transform 0.3s ease;
150
+ }
151
+
152
+ &-animation {
153
+ height: core-functions-v3.fluidSize(20, 'static');
154
+ margin: auto;
155
+ position: relative;
156
+ transition: transform 0.3s ease;
157
+ width: core-functions-v3.fluidSize(20, 'static');
158
+
159
+ &:before,
160
+ &:after {
161
+ background-color: red;
162
+ content: '';
163
+ position: absolute;
164
+ transition: transform 0.25s ease-out;
165
+ }
166
+
167
+ &:before {
168
+ height: 100%;
169
+ left: 50%;
170
+ margin-left: -1px;
171
+ top: 0;
172
+ width: 2px;
173
+ }
174
+
175
+ &:after {
176
+ height: 2px;
177
+ left: 0;
178
+ margin-top: -1px;
179
+ top: 50%;
180
+ width: 100%;
181
+ }
182
+ }
183
+ }
184
+
185
+ @include accordion-v3-extra.additionalStyles();
@@ -0,0 +1,52 @@
1
+
2
+ {% set blockClassName = "accordion-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 backgroundColor = '--background-color: ' ~ fields.accordion_title.background_color ~ ';' %}
10
+ {% set iconBackgroundColor = '--icon-background-color: ' ~ fields.accordion_title.icon_background_color ~ ';' %}
11
+ {% set textPaddingHorizontal = '--text-padding-horizontal: ' ~ fields.accordion_text.text_padding_horizontal ~ ';' %}
12
+ {% set enableCustomIcon = fields.accordion_title.enable_custom_icon %}
13
+ {% set imageIcon = get_image(fields.accordion_title.image_icon) %}
14
+ {% set imageIconSize = '--image-icon-size: ' ~ fields.accordion_title.image_icon_size ~ ';' %}
15
+ {% set imageIconRotationDeg = '--image-icon-rotation-deg: ' ~ fields.accordion_title.image_icon_rotation_deg ~ 'deg;' %}
16
+
17
+ {% set sectionStyles = styleEntryPoint ~ backgroundColor ~ iconBackgroundColor ~ textPaddingHorizontal ~ titleGap ~ imageIconSize ~ imageIconRotationDeg %}
18
+
19
+ {{previewEntryPoint}}
20
+ <style>
21
+ .{{blockClassName}}.{{block.id}}{
22
+ {{sectionStyles}}
23
+ }
24
+ </style>
25
+ <section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
26
+
27
+ <div class="{{ blockClassName }}-wrapper">
28
+ <div class="{{ blockClassName }}-content">
29
+ <h3 class="{{ blockClassName }}-question-wrapper">
30
+ <button class="{{ blockClassName }}-question">
31
+ {% set block = block|merge({'id': block.id ~ '-' ~ 1 }) %}
32
+ {{ include('components/wysiwyg-editor-v3.twig', { fields: fields.title, block, blockClassName}, with_context = false, ignore_missing = true) }}
33
+ {% if enableCustomIcon %}
34
+ <div class="{{ blockClassName }}-image-wrapper">
35
+ <img class="{{ blockClassName }}-image-icon" src="{{imageIcon.src}}" alt="{{imageIcon.alt}}" width="{{imageIcon.width}}" height="{{imageIcon.height}}">
36
+ </div>
37
+ {% else %}
38
+ <div class="{{ blockClassName }}-icon">
39
+ <div class="{{ blockClassName }}-animation"></div>
40
+ </div>
41
+ {% endif %}
42
+ <div class="{{ blockClassName }}-answer-wrapper" aria-hidden="true">
43
+ {% set block = block|merge({'id': block.id ~ '-' ~ 2 }) %}
44
+ {{ include('components/wysiwyg-editor-v3.twig', { fields: fields.text, block, blockClassName}, with_context = false, ignore_missing = true) }}
45
+ </div>
46
+ </button>
47
+ </h3>
48
+ </div>
49
+ </div>
50
+
51
+ {{htmlEntryPoint}}
52
+ </section>
@@ -0,0 +1,469 @@
1
+ {
2
+ "key": "group_6888d2f0b230b",
3
+ "title": "Block: Accordion v3",
4
+ "fields": [
5
+ {
6
+ "key": "field_6888d2f2717ea",
7
+ "label": "Content",
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_688a90ef935eb",
27
+ "label": "Title",
28
+ "name": "title",
29
+ "aria-label": "",
30
+ "type": "group",
31
+ "instructions": "",
32
+ "required": 0,
33
+ "conditional_logic": 0,
34
+ "wrapper": {
35
+ "width": "",
36
+ "class": "",
37
+ "id": ""
38
+ },
39
+ "wpml_cf_preferences": 3,
40
+ "layout": "block",
41
+ "acfe_seamless_style": 0,
42
+ "acfe_group_modal": 0,
43
+ "acfe_group_modal_close": 0,
44
+ "acfe_group_modal_button": "",
45
+ "acfe_group_modal_size": "large",
46
+ "sub_fields": [
47
+ {
48
+ "key": "field_688a9174b4c02",
49
+ "label": "Accordion Title Wysiwyg",
50
+ "name": "accordion_title_wysiwyg",
51
+ "aria-label": "",
52
+ "type": "clone",
53
+ "instructions": "",
54
+ "required": 0,
55
+ "conditional_logic": 0,
56
+ "wrapper": {
57
+ "width": "",
58
+ "class": "",
59
+ "id": ""
60
+ },
61
+ "wpml_cf_preferences": 3,
62
+ "clone": [
63
+ "group_6867e153af466"
64
+ ],
65
+ "display": "seamless",
66
+ "layout": "block",
67
+ "prefix_label": 0,
68
+ "prefix_name": 0,
69
+ "acfe_seamless_style": 0,
70
+ "acfe_clone_modal": 0,
71
+ "acfe_clone_modal_close": 0,
72
+ "acfe_clone_modal_button": "",
73
+ "acfe_clone_modal_size": "large"
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "key": "field_688a90f8935ec",
79
+ "label": "Text",
80
+ "name": "text",
81
+ "aria-label": "",
82
+ "type": "group",
83
+ "instructions": "",
84
+ "required": 0,
85
+ "conditional_logic": 0,
86
+ "wrapper": {
87
+ "width": "",
88
+ "class": "",
89
+ "id": ""
90
+ },
91
+ "wpml_cf_preferences": 3,
92
+ "layout": "block",
93
+ "acfe_seamless_style": 0,
94
+ "acfe_group_modal": 0,
95
+ "acfe_group_modal_close": 0,
96
+ "acfe_group_modal_button": "",
97
+ "acfe_group_modal_size": "large",
98
+ "sub_fields": [
99
+ {
100
+ "key": "field_688a91f9b4c03",
101
+ "label": "Accordion Text Wysiwyg",
102
+ "name": "accordion_text_wysiwyg",
103
+ "aria-label": "",
104
+ "type": "clone",
105
+ "instructions": "",
106
+ "required": 0,
107
+ "conditional_logic": 0,
108
+ "wrapper": {
109
+ "width": "",
110
+ "class": "",
111
+ "id": ""
112
+ },
113
+ "wpml_cf_preferences": 3,
114
+ "clone": [
115
+ "group_6867e153af466"
116
+ ],
117
+ "display": "seamless",
118
+ "layout": "block",
119
+ "prefix_label": 0,
120
+ "prefix_name": 0,
121
+ "acfe_seamless_style": 0,
122
+ "acfe_clone_modal": 0,
123
+ "acfe_clone_modal_close": 0,
124
+ "acfe_clone_modal_button": "",
125
+ "acfe_clone_modal_size": "large"
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "key": "field_6888ed3cb1732",
131
+ "label": "Settings",
132
+ "name": "",
133
+ "aria-label": "",
134
+ "type": "tab",
135
+ "instructions": "",
136
+ "required": 0,
137
+ "conditional_logic": 0,
138
+ "wrapper": {
139
+ "width": "",
140
+ "class": "",
141
+ "id": ""
142
+ },
143
+ "wpml_cf_preferences": 3,
144
+ "placement": "top",
145
+ "endpoint": 0,
146
+ "no_preference": 0,
147
+ "selected": 0
148
+ },
149
+ {
150
+ "key": "field_6888ed4bb1733",
151
+ "label": "Accordion Title",
152
+ "name": "accordion_title",
153
+ "aria-label": "",
154
+ "type": "group",
155
+ "instructions": "",
156
+ "required": 0,
157
+ "conditional_logic": 0,
158
+ "wrapper": {
159
+ "width": "",
160
+ "class": "",
161
+ "id": ""
162
+ },
163
+ "wpml_cf_preferences": 3,
164
+ "layout": "block",
165
+ "acfe_seamless_style": 0,
166
+ "acfe_group_modal": 0,
167
+ "acfe_group_modal_close": 0,
168
+ "acfe_group_modal_button": "",
169
+ "acfe_group_modal_size": "large",
170
+ "sub_fields": [
171
+ {
172
+ "key": "field_6888f39268455",
173
+ "label": "Background Color",
174
+ "name": "background_color",
175
+ "aria-label": "",
176
+ "type": "color_picker",
177
+ "instructions": "",
178
+ "required": 0,
179
+ "conditional_logic": 0,
180
+ "wrapper": {
181
+ "width": "50",
182
+ "class": "",
183
+ "id": ""
184
+ },
185
+ "wpml_cf_preferences": 3,
186
+ "default_value": "",
187
+ "enable_opacity": 0,
188
+ "return_format": "string",
189
+ "display": "default",
190
+ "button_label": "Select Color",
191
+ "color_picker": 1,
192
+ "absolute": 0,
193
+ "input": 1,
194
+ "allow_null": 1,
195
+ "theme_colors": 0,
196
+ "colors": []
197
+ },
198
+ {
199
+ "key": "field_6888f3a868456",
200
+ "label": "Icon Background Color",
201
+ "name": "icon_background_color",
202
+ "aria-label": "",
203
+ "type": "color_picker",
204
+ "instructions": "",
205
+ "required": 0,
206
+ "conditional_logic": 0,
207
+ "wrapper": {
208
+ "width": "50",
209
+ "class": "",
210
+ "id": ""
211
+ },
212
+ "wpml_cf_preferences": 3,
213
+ "default_value": "",
214
+ "enable_opacity": 0,
215
+ "return_format": "string",
216
+ "display": "default",
217
+ "button_label": "Select Color",
218
+ "color_picker": 1,
219
+ "absolute": 0,
220
+ "input": 1,
221
+ "allow_null": 1,
222
+ "theme_colors": 0,
223
+ "colors": []
224
+ },
225
+ {
226
+ "key": "field_6888f3da68458",
227
+ "label": "Enable Custom Icon",
228
+ "name": "enable_custom_icon",
229
+ "aria-label": "",
230
+ "type": "true_false",
231
+ "instructions": "",
232
+ "required": 0,
233
+ "conditional_logic": 0,
234
+ "wrapper": {
235
+ "width": "50",
236
+ "class": "",
237
+ "id": ""
238
+ },
239
+ "wpml_cf_preferences": 3,
240
+ "message": "",
241
+ "default_value": 0,
242
+ "ui_on_text": "",
243
+ "ui_off_text": "",
244
+ "ui": 1,
245
+ "style": ""
246
+ },
247
+ {
248
+ "key": "field_6888f3e868459",
249
+ "label": "Image Icon",
250
+ "name": "image_icon",
251
+ "aria-label": "",
252
+ "type": "image",
253
+ "instructions": "",
254
+ "required": 0,
255
+ "conditional_logic": [
256
+ [
257
+ {
258
+ "field": "field_6888f3da68458",
259
+ "operator": "==",
260
+ "value": "1"
261
+ }
262
+ ]
263
+ ],
264
+ "wrapper": {
265
+ "width": "50",
266
+ "class": "",
267
+ "id": ""
268
+ },
269
+ "wpml_cf_preferences": 3,
270
+ "uploader": "",
271
+ "return_format": "id",
272
+ "library": "all",
273
+ "upload_folder": "",
274
+ "acfe_thumbnail": 0,
275
+ "min_width": "",
276
+ "min_height": "",
277
+ "min_size": "",
278
+ "max_width": "",
279
+ "max_height": "",
280
+ "max_size": "",
281
+ "mime_types": "",
282
+ "allow_in_bindings": 1,
283
+ "preview_size": "medium"
284
+ },
285
+ {
286
+ "key": "field_6888f4166845a",
287
+ "label": "Image Icon Size",
288
+ "name": "image_icon_size",
289
+ "aria-label": "",
290
+ "type": "range",
291
+ "instructions": "",
292
+ "required": 0,
293
+ "conditional_logic": [
294
+ [
295
+ {
296
+ "field": "field_6888f3da68458",
297
+ "operator": "==",
298
+ "value": "1"
299
+ }
300
+ ]
301
+ ],
302
+ "wrapper": {
303
+ "width": "50",
304
+ "class": "",
305
+ "id": ""
306
+ },
307
+ "wpml_cf_preferences": 3,
308
+ "default_value": "",
309
+ "min": "",
310
+ "max": "",
311
+ "step": "",
312
+ "prepend": "",
313
+ "append": ""
314
+ },
315
+ {
316
+ "key": "field_6888f4326845b",
317
+ "label": "Image Icon Rotation Deg",
318
+ "name": "image_icon_rotation_deg",
319
+ "aria-label": "",
320
+ "type": "range",
321
+ "instructions": "",
322
+ "required": 0,
323
+ "conditional_logic": [
324
+ [
325
+ {
326
+ "field": "field_6888f3da68458",
327
+ "operator": "==",
328
+ "value": "1"
329
+ }
330
+ ]
331
+ ],
332
+ "wrapper": {
333
+ "width": "50",
334
+ "class": "",
335
+ "id": ""
336
+ },
337
+ "wpml_cf_preferences": 3,
338
+ "default_value": 90,
339
+ "min": -180,
340
+ "max": 180,
341
+ "step": "",
342
+ "prepend": "",
343
+ "append": ""
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "key": "field_6888ed5fb1734",
349
+ "label": "Accordion Text",
350
+ "name": "accordion_text",
351
+ "aria-label": "",
352
+ "type": "group",
353
+ "instructions": "",
354
+ "required": 0,
355
+ "conditional_logic": 0,
356
+ "wrapper": {
357
+ "width": "",
358
+ "class": "",
359
+ "id": ""
360
+ },
361
+ "wpml_cf_preferences": 3,
362
+ "layout": "block",
363
+ "acfe_seamless_style": 0,
364
+ "acfe_group_modal": 0,
365
+ "acfe_group_modal_close": 0,
366
+ "acfe_group_modal_button": "",
367
+ "acfe_group_modal_size": "large",
368
+ "sub_fields": [
369
+ {
370
+ "key": "field_6888f22274893",
371
+ "label": "Text Padding Horizontal",
372
+ "name": "text_padding_horizontal",
373
+ "aria-label": "",
374
+ "type": "range",
375
+ "instructions": "",
376
+ "required": 0,
377
+ "conditional_logic": 0,
378
+ "wrapper": {
379
+ "width": "",
380
+ "class": "",
381
+ "id": ""
382
+ },
383
+ "wpml_cf_preferences": 3,
384
+ "default_value": 20,
385
+ "min": 0,
386
+ "max": 50,
387
+ "step": "",
388
+ "prepend": "",
389
+ "append": ""
390
+ }
391
+ ]
392
+ },
393
+ {
394
+ "key": "field_6889138d4e54c",
395
+ "label": "Block Padding",
396
+ "name": "",
397
+ "aria-label": "",
398
+ "type": "tab",
399
+ "instructions": "",
400
+ "required": 0,
401
+ "conditional_logic": 0,
402
+ "wrapper": {
403
+ "width": "",
404
+ "class": "",
405
+ "id": ""
406
+ },
407
+ "wpml_cf_preferences": 3,
408
+ "placement": "top",
409
+ "endpoint": 0,
410
+ "no_preference": 0,
411
+ "selected": 0
412
+ },
413
+ {
414
+ "key": "field_688913984e54d",
415
+ "label": "Block Padding fields",
416
+ "name": "block_padding_fields",
417
+ "aria-label": "",
418
+ "type": "clone",
419
+ "instructions": "",
420
+ "required": 0,
421
+ "conditional_logic": 0,
422
+ "wrapper": {
423
+ "width": "",
424
+ "class": "",
425
+ "id": ""
426
+ },
427
+ "wpml_cf_preferences": 3,
428
+ "clone": [
429
+ "group_638f4148bc10b"
430
+ ],
431
+ "display": "seamless",
432
+ "layout": "block",
433
+ "prefix_label": 0,
434
+ "prefix_name": 0,
435
+ "acfe_seamless_style": 0,
436
+ "acfe_clone_modal": 0,
437
+ "acfe_clone_modal_close": 0,
438
+ "acfe_clone_modal_button": "",
439
+ "acfe_clone_modal_size": "large"
440
+ }
441
+ ],
442
+ "location": [
443
+ [
444
+ {
445
+ "param": "block",
446
+ "operator": "==",
447
+ "value": "acf\/accordion-v3"
448
+ }
449
+ ]
450
+ ],
451
+ "menu_order": 0,
452
+ "position": "normal",
453
+ "style": "default",
454
+ "label_placement": "left",
455
+ "instruction_placement": "label",
456
+ "hide_on_screen": "",
457
+ "active": true,
458
+ "description": "",
459
+ "show_in_rest": 0,
460
+ "acfe_autosync": [
461
+ "json"
462
+ ],
463
+ "acfml_field_group_mode": "localization",
464
+ "acfe_form": 0,
465
+ "acfe_display_title": "",
466
+ "acfe_meta": "",
467
+ "acfe_note": "",
468
+ "modified": 1753912871
469
+ }
@@ -3,7 +3,7 @@
3
3
  {% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields, block, blockClassName, is_preview }, with_context = false) %}
4
4
  {% set elementType = fields.element_type|ru %}
5
5
  <style>
6
- .{{blockClassName|default('default-class')}}__content-container.{{block.id}}{
6
+ .{{blockClassName}}__content-container.{{block.id}}{
7
7
  {{textEditorStyleVars}}
8
8
  }
9
9
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.0.108",
3
+ "version": "1.0.109",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {