@total_onion/onion-library 1.0.78 → 1.0.79

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,21 @@
1
+ @use 'Assets/scss/theme/breakpoints';
2
+ @use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
3
+ @use 'Assets/scss/modules/library-modules/core-functions/core-functions';
4
+
5
+ @mixin elementPositioning() {
6
+ position: var(--element-position, relative);
7
+ z-index: var(--element-z-index);
8
+ place-self: var(--mobile-vertical-placement)
9
+ var(--mobile-horizontal-placement);
10
+ translate: var(--element-horizontal-offset-mobile, 0)
11
+ var(--element-vertical-offset-mobile, 0);
12
+ rotate: var(--element-rotation-mobile, 0deg);
13
+
14
+ @include core-mixins.device(breakpoints.$tabLandscape) {
15
+ place-self: var(--desktop-vertical-placement)
16
+ var(--desktop-horizontal-placement);
17
+ translate: var(--element-horizontal-offset-desktop, 0)
18
+ var(--element-vertical-offset-desktop, 0);
19
+ rotate: var(--element-rotation-desktop, 0deg);
20
+ }
21
+ }
@@ -0,0 +1,471 @@
1
+ {
2
+ "key": "group_6882281544263",
3
+ "title": "Component: Element positioning v3",
4
+ "fields": [
5
+ {
6
+ "key": "field_6882281551d86",
7
+ "label": "Element positioning",
8
+ "name": "element_positioning",
9
+ "aria-label": "",
10
+ "type": "group",
11
+ "instructions": "",
12
+ "required": 0,
13
+ "conditional_logic": 0,
14
+ "wrapper": {
15
+ "width": "",
16
+ "class": "",
17
+ "id": ""
18
+ },
19
+ "wpml_cf_preferences": 3,
20
+ "user_roles": [
21
+ "administrator"
22
+ ],
23
+ "layout": "block",
24
+ "acfe_seamless_style": 0,
25
+ "acfe_group_modal": 0,
26
+ "acfe_group_modal_close": 0,
27
+ "acfe_group_modal_button": "",
28
+ "acfe_group_modal_size": "large",
29
+ "sub_fields": [
30
+ {
31
+ "key": "field_6882281553c68",
32
+ "label": "Stacking level (Z-index)",
33
+ "name": "element_z_index",
34
+ "aria-label": "",
35
+ "type": "range",
36
+ "instructions": "",
37
+ "required": 0,
38
+ "conditional_logic": 0,
39
+ "wrapper": {
40
+ "width": "",
41
+ "class": "",
42
+ "id": ""
43
+ },
44
+ "wpml_cf_preferences": 3,
45
+ "user_roles": [
46
+ "administrator"
47
+ ],
48
+ "default_value": 3,
49
+ "min": -1,
50
+ "max": 40,
51
+ "step": "",
52
+ "prepend": "",
53
+ "append": ""
54
+ },
55
+ {
56
+ "key": "field_68822815540a3",
57
+ "label": "Element position",
58
+ "name": "element_position",
59
+ "aria-label": "",
60
+ "type": "radio",
61
+ "instructions": "",
62
+ "required": 0,
63
+ "conditional_logic": 0,
64
+ "wrapper": {
65
+ "width": "",
66
+ "class": "",
67
+ "id": ""
68
+ },
69
+ "wpml_cf_preferences": 3,
70
+ "choices": {
71
+ "__relative": "Relative",
72
+ "__absolute": "Absolute"
73
+ },
74
+ "default_value": "__relative",
75
+ "return_format": "value",
76
+ "allow_null": 0,
77
+ "other_choice": 0,
78
+ "layout": "horizontal",
79
+ "save_other_choice": 0
80
+ },
81
+ {
82
+ "key": "field_6882281554472",
83
+ "label": "Unit Type",
84
+ "name": "unit_type",
85
+ "aria-label": "",
86
+ "type": "radio",
87
+ "instructions": "",
88
+ "required": 0,
89
+ "conditional_logic": 0,
90
+ "wrapper": {
91
+ "width": "",
92
+ "class": "",
93
+ "id": ""
94
+ },
95
+ "wpml_cf_preferences": 3,
96
+ "choices": {
97
+ "px": "Pixel",
98
+ "%": "Percent"
99
+ },
100
+ "default_value": "%",
101
+ "return_format": "value",
102
+ "allow_null": 0,
103
+ "other_choice": 0,
104
+ "layout": "vertical",
105
+ "save_other_choice": 0
106
+ },
107
+ {
108
+ "key": "field_688228155485d",
109
+ "label": "Desktop",
110
+ "name": "",
111
+ "aria-label": "",
112
+ "type": "tab",
113
+ "instructions": "",
114
+ "required": 0,
115
+ "conditional_logic": 0,
116
+ "wrapper": {
117
+ "width": "",
118
+ "class": "",
119
+ "id": ""
120
+ },
121
+ "wpml_cf_preferences": 3,
122
+ "placement": "top",
123
+ "endpoint": 0,
124
+ "no_preference": 0,
125
+ "selected": 0
126
+ },
127
+ {
128
+ "key": "field_6882281554c48",
129
+ "label": "Desktop positioning",
130
+ "name": "desktop_positioning",
131
+ "aria-label": "",
132
+ "type": "group",
133
+ "instructions": "",
134
+ "required": 0,
135
+ "conditional_logic": 0,
136
+ "wrapper": {
137
+ "width": "",
138
+ "class": "",
139
+ "id": ""
140
+ },
141
+ "wpml_cf_preferences": 3,
142
+ "user_roles": [
143
+ "administrator"
144
+ ],
145
+ "layout": "block",
146
+ "acfe_seamless_style": 0,
147
+ "acfe_group_modal": 0,
148
+ "acfe_group_modal_close": 0,
149
+ "acfe_group_modal_button": "",
150
+ "acfe_group_modal_size": "large",
151
+ "sub_fields": [
152
+ {
153
+ "key": "field_688228155c594",
154
+ "label": "Vertical position",
155
+ "name": "vertical_snap",
156
+ "aria-label": "",
157
+ "type": "radio",
158
+ "instructions": "",
159
+ "required": 0,
160
+ "conditional_logic": 0,
161
+ "wrapper": {
162
+ "width": "",
163
+ "class": "",
164
+ "id": ""
165
+ },
166
+ "wpml_cf_preferences": 3,
167
+ "choices": {
168
+ "__flex-start": "Top",
169
+ "__center": "Center",
170
+ "__flex-end": "Bottom"
171
+ },
172
+ "default_value": "__center",
173
+ "return_format": "value",
174
+ "allow_null": 0,
175
+ "other_choice": 0,
176
+ "layout": "vertical",
177
+ "save_other_choice": 0
178
+ },
179
+ {
180
+ "key": "field_688228155c937",
181
+ "label": "Horizontal position",
182
+ "name": "horizontal_snap",
183
+ "aria-label": "",
184
+ "type": "radio",
185
+ "instructions": "",
186
+ "required": 0,
187
+ "conditional_logic": 0,
188
+ "wrapper": {
189
+ "width": "",
190
+ "class": "",
191
+ "id": ""
192
+ },
193
+ "wpml_cf_preferences": 3,
194
+ "choices": {
195
+ "__flex-start": "Left",
196
+ "__center": "Cntr",
197
+ "__flex-end": "Right"
198
+ },
199
+ "default_value": "__center",
200
+ "return_format": "value",
201
+ "allow_null": 0,
202
+ "other_choice": 0,
203
+ "layout": "horizontal",
204
+ "save_other_choice": 0
205
+ },
206
+ {
207
+ "key": "field_688228155cd32",
208
+ "label": "Vertical offset",
209
+ "name": "vertical_offset",
210
+ "aria-label": "",
211
+ "type": "range",
212
+ "instructions": "Negative values move up and positive move down",
213
+ "required": 0,
214
+ "conditional_logic": 0,
215
+ "wrapper": {
216
+ "width": "",
217
+ "class": "",
218
+ "id": ""
219
+ },
220
+ "wpml_cf_preferences": 3,
221
+ "default_value": "",
222
+ "min": -400,
223
+ "max": 400,
224
+ "step": "",
225
+ "prepend": "",
226
+ "append": ""
227
+ },
228
+ {
229
+ "key": "field_688228155d114",
230
+ "label": "Horizontal offset",
231
+ "name": "horizontal_offset",
232
+ "aria-label": "",
233
+ "type": "range",
234
+ "instructions": "Negative values move left and positive move right",
235
+ "required": 0,
236
+ "conditional_logic": 0,
237
+ "wrapper": {
238
+ "width": "",
239
+ "class": "",
240
+ "id": ""
241
+ },
242
+ "wpml_cf_preferences": 3,
243
+ "default_value": "",
244
+ "min": -400,
245
+ "max": 400,
246
+ "step": "",
247
+ "prepend": "",
248
+ "append": ""
249
+ },
250
+ {
251
+ "key": "field_688228155d4fc",
252
+ "label": "Element rotation Desktop",
253
+ "name": "element_rotation_desktop",
254
+ "aria-label": "",
255
+ "type": "range",
256
+ "instructions": "",
257
+ "required": 0,
258
+ "conditional_logic": 0,
259
+ "wrapper": {
260
+ "width": "",
261
+ "class": "",
262
+ "id": ""
263
+ },
264
+ "wpml_cf_preferences": 3,
265
+ "default_value": 0,
266
+ "min": -180,
267
+ "max": 180,
268
+ "step": "",
269
+ "prepend": "",
270
+ "append": ""
271
+ }
272
+ ]
273
+ },
274
+ {
275
+ "key": "field_6882281555030",
276
+ "label": "Mobile",
277
+ "name": "",
278
+ "aria-label": "",
279
+ "type": "tab",
280
+ "instructions": "",
281
+ "required": 0,
282
+ "conditional_logic": 0,
283
+ "wrapper": {
284
+ "width": "",
285
+ "class": "",
286
+ "id": ""
287
+ },
288
+ "wpml_cf_preferences": 3,
289
+ "placement": "top",
290
+ "endpoint": 0,
291
+ "no_preference": 0,
292
+ "selected": 0
293
+ },
294
+ {
295
+ "key": "field_6882281555415",
296
+ "label": "Mobile positioning",
297
+ "name": "mobile_positioning",
298
+ "aria-label": "",
299
+ "type": "group",
300
+ "instructions": "",
301
+ "required": 0,
302
+ "conditional_logic": 0,
303
+ "wrapper": {
304
+ "width": "",
305
+ "class": "",
306
+ "id": ""
307
+ },
308
+ "wpml_cf_preferences": 3,
309
+ "user_roles": [
310
+ "administrator"
311
+ ],
312
+ "layout": "block",
313
+ "acfe_seamless_style": 0,
314
+ "acfe_group_modal": 0,
315
+ "acfe_group_modal_close": 0,
316
+ "acfe_group_modal_button": "",
317
+ "acfe_group_modal_size": "large",
318
+ "sub_fields": [
319
+ {
320
+ "key": "field_6882281567476",
321
+ "label": "Vertical position",
322
+ "name": "vertical_snap",
323
+ "aria-label": "",
324
+ "type": "radio",
325
+ "instructions": "",
326
+ "required": 0,
327
+ "conditional_logic": 0,
328
+ "wrapper": {
329
+ "width": "",
330
+ "class": "",
331
+ "id": ""
332
+ },
333
+ "wpml_cf_preferences": 3,
334
+ "choices": {
335
+ "__flex-start": "Top",
336
+ "__center": "Center",
337
+ "__flex-end": "Bottom"
338
+ },
339
+ "default_value": "__center",
340
+ "return_format": "value",
341
+ "allow_null": 0,
342
+ "other_choice": 0,
343
+ "layout": "vertical",
344
+ "save_other_choice": 0
345
+ },
346
+ {
347
+ "key": "field_688228156793e",
348
+ "label": "Horizontal position",
349
+ "name": "horizontal_snap",
350
+ "aria-label": "",
351
+ "type": "radio",
352
+ "instructions": "",
353
+ "required": 0,
354
+ "conditional_logic": 0,
355
+ "wrapper": {
356
+ "width": "",
357
+ "class": "",
358
+ "id": ""
359
+ },
360
+ "wpml_cf_preferences": 3,
361
+ "choices": {
362
+ "__flex-start": "Left",
363
+ "__center": "Cntr",
364
+ "__flex-end": "Right"
365
+ },
366
+ "default_value": "__center",
367
+ "return_format": "value",
368
+ "allow_null": 0,
369
+ "other_choice": 0,
370
+ "layout": "horizontal",
371
+ "save_other_choice": 0
372
+ },
373
+ {
374
+ "key": "field_6882281567cea",
375
+ "label": "Vertical offset",
376
+ "name": "vertical_offset",
377
+ "aria-label": "",
378
+ "type": "range",
379
+ "instructions": "Negative values move up and positive move down",
380
+ "required": 0,
381
+ "conditional_logic": 0,
382
+ "wrapper": {
383
+ "width": "",
384
+ "class": "",
385
+ "id": ""
386
+ },
387
+ "wpml_cf_preferences": 3,
388
+ "default_value": "",
389
+ "min": -400,
390
+ "max": 400,
391
+ "step": "",
392
+ "prepend": "",
393
+ "append": ""
394
+ },
395
+ {
396
+ "key": "field_68822815680e1",
397
+ "label": "Horizontal offset",
398
+ "name": "horizontal_offset",
399
+ "aria-label": "",
400
+ "type": "range",
401
+ "instructions": "Negative values move left and positive move right",
402
+ "required": 0,
403
+ "conditional_logic": 0,
404
+ "wrapper": {
405
+ "width": "",
406
+ "class": "",
407
+ "id": ""
408
+ },
409
+ "wpml_cf_preferences": 3,
410
+ "default_value": "",
411
+ "min": -400,
412
+ "max": 400,
413
+ "step": "",
414
+ "prepend": "",
415
+ "append": ""
416
+ },
417
+ {
418
+ "key": "field_68822815684c4",
419
+ "label": "Element rotation Mobile",
420
+ "name": "element_rotation_mobile",
421
+ "aria-label": "",
422
+ "type": "range",
423
+ "instructions": "",
424
+ "required": 0,
425
+ "conditional_logic": 0,
426
+ "wrapper": {
427
+ "width": "",
428
+ "class": "",
429
+ "id": ""
430
+ },
431
+ "wpml_cf_preferences": 3,
432
+ "default_value": 0,
433
+ "min": -180,
434
+ "max": 180,
435
+ "step": "",
436
+ "prepend": "",
437
+ "append": ""
438
+ }
439
+ ]
440
+ }
441
+ ]
442
+ }
443
+ ],
444
+ "location": [
445
+ [
446
+ {
447
+ "param": "post_type",
448
+ "operator": "==",
449
+ "value": "post"
450
+ }
451
+ ]
452
+ ],
453
+ "menu_order": 0,
454
+ "position": "normal",
455
+ "style": "default",
456
+ "label_placement": "left",
457
+ "instruction_placement": "label",
458
+ "hide_on_screen": "",
459
+ "active": false,
460
+ "description": "",
461
+ "show_in_rest": 0,
462
+ "acfe_autosync": [
463
+ "json"
464
+ ],
465
+ "acfml_field_group_mode": "localization",
466
+ "acfe_form": 0,
467
+ "acfe_display_title": "",
468
+ "acfe_meta": "",
469
+ "acfe_note": "",
470
+ "modified": 1753360418
471
+ }
@@ -0,0 +1,61 @@
1
+ @use 'Assets/scss/theme/breakpoints';
2
+ @use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
3
+ @use 'Assets/scss/modules/library-modules/core-functions/core-functions';
4
+
5
+ @mixin gridLayoutContainer() {
6
+ display: grid;
7
+ position: relative;
8
+ grid-auto-flow: var(--grid-auto-flow-mobile, row);
9
+ --grid-auto-columns-custom-size: #{core-functions.fluidSize(
10
+ var(--grid-auto-columns-custom),
11
+ 'static'
12
+ )};
13
+ grid-auto-columns: var(--grid-auto-columns, auto);
14
+ grid-gap: calc(var(--global-inline-spacing) * var(--row-gap-mult-mobile, 0))
15
+ calc(var(--global-inline-spacing) * var(--column-gap-mult-mobile, 0));
16
+ grid-template-columns: var(
17
+ --grid-template-columns-custom-mobile,
18
+ repeat(
19
+ var(--grid-columns-mobile, 1),
20
+ var(--grid-auto-columns-custom-size, var(--grid-auto-columns, auto))
21
+ )
22
+ );
23
+ grid-template-rows: var(--grid-template-rows-custom-mobile);
24
+ grid-auto-rows: var(--grid-auto-rows);
25
+
26
+ @include core-mixins.device(breakpoints.$tabPortrait) {
27
+ grid-gap: calc(
28
+ var(--global-inline-spacing) * var(--row-gap-mult-portrait, 0)
29
+ )
30
+ calc(
31
+ var(--global-inline-spacing) *
32
+ var(--column-gap-mult-portrait, 0)
33
+ );
34
+ grid-template-columns: var(
35
+ --grid-template-columns-custom-portrait,
36
+ repeat(
37
+ var(--grid-columns-portrait, 1),
38
+ var(
39
+ --grid-auto-columns-custom-size,
40
+ var(--grid-auto-columns, auto)
41
+ )
42
+ )
43
+ );
44
+ grid-template-rows: var(--grid-template-rows-custom-portrait);
45
+ }
46
+
47
+ @include core-mixins.device(breakpoints.$tabLandscape) {
48
+ grid-gap: calc(
49
+ var(--global-inline-spacing) * var(--row-gap-mult-desktop, 0)
50
+ )
51
+ calc(
52
+ var(--global-inline-spacing) * var(--column-gap-mult-desktop, 0)
53
+ );
54
+ grid-template-columns: var(
55
+ --grid-template-columns-custom-desktop,
56
+ repeat(var(--grid-columns-desktop, 1), 1fr)
57
+ );
58
+ grid-auto-flow: var(--grid-auto-flow-desktop, row);
59
+ grid-template-rows: var(--grid-template-rows-custom-desktop);
60
+ }
61
+ }