@gem-sdk/components 2.0.0-dev.551 → 2.0.0-dev.552

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.
@@ -1,445 +1,449 @@
1
1
  const verticalTwo = [
2
2
  {
3
- "childrens": [
3
+ childrens: [
4
4
  {
5
- "childrens": [
5
+ childrens: [
6
6
  {
7
- "label": "Text Block",
8
- "settings": {
9
- "background": {
10
- "desktop": {
11
- "attachment": "scroll",
12
- "color": "transparent",
13
- "image": {
14
- "height": 0,
15
- "src": "",
16
- "width": 0
7
+ label: 'Text Block',
8
+ settings: {
9
+ background: {
10
+ desktop: {
11
+ attachment: 'scroll',
12
+ color: 'transparent',
13
+ image: {
14
+ height: 0,
15
+ src: '',
16
+ width: 0
17
17
  },
18
- "position": {
19
- "x": 50,
20
- "y": 50
18
+ position: {
19
+ x: 50,
20
+ y: 50
21
21
  },
22
- "repeat": "no-repeat",
23
- "size": "cover",
24
- "type": "color"
22
+ repeat: 'no-repeat',
23
+ size: 'cover',
24
+ type: 'color'
25
25
  }
26
26
  },
27
- "globalSize": {
28
- "desktop": {
29
- "padding": {
30
- "type": "custom"
27
+ globalSize: {
28
+ desktop: {
29
+ padding: {
30
+ type: 'custom'
31
31
  },
32
- "width": "100%"
32
+ width: '100%'
33
33
  }
34
34
  },
35
- "htmlTag": "div",
36
- "text": "bundle-title",
37
- "translate": "text"
35
+ htmlTag: 'div',
36
+ text: 'bundle-title',
37
+ translate: 'text'
38
38
  },
39
- "styles": {
40
- "align": {
41
- "desktop": "left"
39
+ styles: {
40
+ align: {
41
+ desktop: 'left'
42
42
  },
43
- "hasLineClamp": {
44
- "desktop": false
43
+ hasLineClamp: {
44
+ desktop: false
45
45
  },
46
- "lineClamp": {
47
- "desktop": 1,
48
- "mobile": 1,
49
- "tablet": 1
46
+ lineClamp: {
47
+ desktop: 1,
48
+ mobile: 1,
49
+ tablet: 1
50
50
  },
51
- "textAlign": {
52
- "desktop": "left"
51
+ textAlign: {
52
+ desktop: 'left'
53
53
  },
54
- "typo": {
55
- "attrs": {
56
- "bold": true,
57
- "color": "#121212"
54
+ typo: {
55
+ attrs: {
56
+ bold: true,
57
+ color: '#121212'
58
58
  },
59
- "type": "subheading-2"
59
+ type: 'subheading-2'
60
60
  }
61
61
  },
62
- "tag": "Text",
63
- "uid": "gM8g6bIPhc",
64
- "childrens": []
62
+ tag: 'Text',
63
+ uid: 'gM8g6bIPhc',
64
+ childrens: []
65
65
  },
66
66
  {
67
- "label": "Text Block",
68
- "settings": {
69
- "background": {
70
- "desktop": {
71
- "attachment": "scroll",
72
- "color": "transparent",
73
- "image": {
74
- "height": 0,
75
- "src": "",
76
- "width": 0
67
+ label: 'Text Block',
68
+ settings: {
69
+ background: {
70
+ desktop: {
71
+ attachment: 'scroll',
72
+ color: 'transparent',
73
+ image: {
74
+ height: 0,
75
+ src: '',
76
+ width: 0
77
77
  },
78
- "position": {
79
- "x": 50,
80
- "y": 50
78
+ position: {
79
+ x: 50,
80
+ y: 50
81
81
  },
82
- "repeat": "no-repeat",
83
- "size": "cover",
84
- "type": "color"
82
+ repeat: 'no-repeat',
83
+ size: 'cover',
84
+ type: 'color'
85
85
  }
86
86
  },
87
- "globalSize": {
88
- "desktop": {
89
- "padding": {
90
- "type": "custom"
87
+ globalSize: {
88
+ desktop: {
89
+ padding: {
90
+ type: 'custom'
91
91
  },
92
- "width": "100%"
92
+ width: '100%'
93
93
  }
94
94
  },
95
- "htmlTag": "div",
96
- "text": "<p>Great value</p>",
97
- "translate": "text"
95
+ htmlTag: 'div',
96
+ text: '<p>Great value</p>',
97
+ translate: 'text'
98
98
  },
99
- "styles": {
100
- "align": {
101
- "desktop": "left"
99
+ styles: {
100
+ align: {
101
+ desktop: 'left'
102
102
  },
103
- "hasLineClamp": {
104
- "desktop": false
103
+ hasLineClamp: {
104
+ desktop: false
105
105
  },
106
- "lineClamp": {
107
- "desktop": 1,
108
- "mobile": 1,
109
- "tablet": 1
106
+ lineClamp: {
107
+ desktop: 1,
108
+ mobile: 1,
109
+ tablet: 1
110
110
  },
111
- "textAlign": {
112
- "desktop": "left"
111
+ textAlign: {
112
+ desktop: 'left'
113
113
  },
114
- "typo": {
115
- "attrs": {
116
- "color": "#121212"
114
+ typo: {
115
+ attrs: {
116
+ color: '#121212'
117
117
  },
118
- "type": "paragraph-1"
118
+ type: 'paragraph-1'
119
119
  }
120
120
  },
121
- "tag": "Text",
122
- "uid": "gKf_DRU8mg",
123
- "childrens": [],
124
- "advanced": {
125
- "spacing-setting": {
126
- "desktop": {
127
- "margin": {
128
- "bottom": 0
121
+ tag: 'Text',
122
+ uid: 'gKf_DRU8mg',
123
+ childrens: [],
124
+ advanced: {
125
+ 'spacing-setting': {
126
+ desktop: {
127
+ margin: {
128
+ bottom: 0
129
129
  }
130
130
  }
131
131
  }
132
132
  }
133
133
  }
134
134
  ],
135
- "label": "Block",
136
- "settings": {},
137
- "styles": {},
138
- "tag": "Col",
139
- "uid": "gUsNDh7fOr"
135
+ label: 'Block',
136
+ settings: {},
137
+ styles: {},
138
+ tag: 'Col',
139
+ uid: 'gUsNDh7fOr'
140
140
  },
141
141
  {
142
- "uid": "g7Le3WhxZn",
143
- "tag": "Col",
144
- "label": "Block",
145
- "settings": {},
146
- "childrens": [
142
+ uid: 'g7Le3WhxZn',
143
+ tag: 'Col',
144
+ label: 'Block',
145
+ settings: {},
146
+ childrens: [
147
147
  {
148
- "advanced": {
149
- "d": {
150
- "desktop": true,
151
- "mobile": true,
152
- "tablet": true
153
- },
154
- "editorData": {
155
- "css": ".{{rootClassName}} > div > div{\nwidth:100%;\n}",
156
- "rootClassName": "{{rootClassName}}"
157
- },
158
- "hasBoxShadow": {
159
- "desktop": {
160
- "normal": false
148
+ advanced: {
149
+ d: {
150
+ desktop: true,
151
+ mobile: true,
152
+ tablet: true
153
+ },
154
+ editorData: {
155
+ css: '.{{rootClassName}} > div > div{\nwidth:100%;\n}',
156
+ rootClassName: '{{rootClassName}}'
157
+ },
158
+ hasBoxShadow: {
159
+ desktop: {
160
+ normal: false
161
161
  }
162
162
  },
163
- "left": {
164
- "desktop": "0px"
163
+ left: {
164
+ desktop: '0px'
165
165
  },
166
- "op": {
167
- "desktop": "100%"
166
+ op: {
167
+ desktop: '100%'
168
168
  },
169
- "pos": {
170
- "desktop": "static"
169
+ pos: {
170
+ desktop: 'static'
171
171
  },
172
- "right": {
173
- "desktop": "0px"
172
+ right: {
173
+ desktop: '0px'
174
174
  },
175
- "rounded": {
176
- "desktop": {
177
- "normal": {
178
- "bblr": "0px",
179
- "bbrr": "0px",
180
- "btlr": "0px",
181
- "btrr": "0px",
182
- "radiusType": "none"
175
+ rounded: {
176
+ desktop: {
177
+ normal: {
178
+ bblr: '0px',
179
+ bbrr: '0px',
180
+ btlr: '0px',
181
+ btrr: '0px',
182
+ radiusType: 'none'
183
183
  }
184
184
  }
185
185
  },
186
- "spacing-setting": {
187
- "desktop": {
188
- "margin": {
189
- "bottom": "8px"
186
+ 'spacing-setting': {
187
+ desktop: {
188
+ margin: {
189
+ bottom: '8px'
190
190
  }
191
191
  }
192
192
  },
193
- "z": {
194
- "desktop": 1
193
+ z: {
194
+ desktop: 1
195
195
  }
196
196
  },
197
- "label": "Product Badge",
198
- "settings": {
199
- "contentType": "text",
200
- "displayContent": "SALE {percent_discount}",
201
- "displayTrigger": [
197
+ label: 'Product Badge',
198
+ settings: {
199
+ contentType: 'text',
200
+ displayContent: 'SALE {percent_discount}',
201
+ displayTrigger: [
202
202
  {
203
- "conditionType": "exact_or_above",
204
- "from": "1",
205
- "priority": 0,
206
- "quantityType": "exact_or_above",
207
- "to": "15",
208
- "triggerEvent": "inventory_status",
209
- "type": "in_stock"
203
+ conditionType: 'exact_or_above',
204
+ from: '1',
205
+ priority: 0,
206
+ quantityType: 'exact_or_above',
207
+ to: '15',
208
+ triggerEvent: 'inventory_status',
209
+ type: 'in_stock'
210
210
  }
211
211
  ],
212
- "image": {
213
- "src": "https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677"
212
+ image: {
213
+ src: 'https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677'
214
214
  },
215
- "positionWithImage": "outside",
216
- "shape": "horizontal_rectangle"
215
+ positionWithImage: 'outside',
216
+ shape: 'horizontal_rectangle'
217
217
  },
218
- "styles": {
219
- "align": {
220
- "desktop": "left"
221
- },
222
- "badgeColor": "#FF614C",
223
- "borderRadius": {
224
- "bblr": "0px",
225
- "bbrr": "0px",
226
- "btlr": "0px",
227
- "btrr": "0px",
228
- "radiusType": "custom"
229
- },
230
- "hasShadow": false,
231
- "imageSize": {
232
- "desktop": {
233
- "disableShapeLinked": true,
234
- "height": "auto",
235
- "shape": "original",
236
- "shapeLinked": true,
237
- "width": "20%"
218
+ styles: {
219
+ align: {
220
+ desktop: 'left'
221
+ },
222
+ badgeColorV2: {
223
+ desktop: {
224
+ normal: '#FF614C'
225
+ }
226
+ },
227
+ borderRadius: {
228
+ bblr: '0px',
229
+ bbrr: '0px',
230
+ btlr: '0px',
231
+ btrr: '0px',
232
+ radiusType: 'custom'
233
+ },
234
+ hasShadow: false,
235
+ imageSize: {
236
+ desktop: {
237
+ disableShapeLinked: true,
238
+ height: 'auto',
239
+ shape: 'original',
240
+ shapeLinked: true,
241
+ width: '20%'
238
242
  }
239
243
  },
240
- "position": {
241
- "desktop": {
242
- "bottomGap": "0",
243
- "leftGap": "0",
244
- "placement": "top-left",
245
- "rightGap": "0",
246
- "topGap": "0"
244
+ position: {
245
+ desktop: {
246
+ bottomGap: '0',
247
+ leftGap: '0',
248
+ placement: 'top-left',
249
+ rightGap: '0',
250
+ topGap: '0'
247
251
  }
248
252
  },
249
- "shapeShadow": {
250
- "angle": 90,
251
- "blur": "12px",
252
- "color": "#121212",
253
- "distance": "4px",
254
- "spread": "0px",
255
- "type": "shadow-1"
256
- },
257
- "textColor": "text-3",
258
- "textSize": {
259
- "desktop": {
260
- "disableShapeLinked": true,
261
- "gap": "",
262
- "height": "Auto",
263
- "hiddenShape": true,
264
- "padding": {
265
- "bottom": "8px",
266
- "left": "12px",
267
- "right": "12px",
268
- "top": "8px"
253
+ shapeShadow: {
254
+ angle: 90,
255
+ blur: '12px',
256
+ color: '#121212',
257
+ distance: '4px',
258
+ spread: '0px',
259
+ type: 'shadow-1'
260
+ },
261
+ textColor: 'text-3',
262
+ textSize: {
263
+ desktop: {
264
+ disableShapeLinked: true,
265
+ gap: '',
266
+ height: 'Auto',
267
+ hiddenShape: true,
268
+ padding: {
269
+ bottom: '8px',
270
+ left: '12px',
271
+ right: '12px',
272
+ top: '8px'
269
273
  },
270
- "shape": "custom",
271
- "shapeLinked": false,
272
- "width": "100%"
274
+ shape: 'custom',
275
+ shapeLinked: false,
276
+ width: '100%'
273
277
  }
274
278
  },
275
- "typo": {
276
- "attrs": {
277
- "color": "text-3"
279
+ typo: {
280
+ attrs: {
281
+ color: 'text-3'
278
282
  },
279
- "custom": {
280
- "fontSize": {
281
- "desktop": "15px"
283
+ custom: {
284
+ fontSize: {
285
+ desktop: '15px'
282
286
  }
283
287
  },
284
- "type": "paragraph-1"
288
+ type: 'paragraph-1'
285
289
  }
286
290
  },
287
- "tag": "ProductBadge",
288
- "uid": "gPMEqW9TKV"
291
+ tag: 'ProductBadge',
292
+ uid: 'gPMEqW9TKV'
289
293
  },
290
294
  {
291
- "childrens": [
295
+ childrens: [
292
296
  {
293
- "childrens": [
297
+ childrens: [
294
298
  {
295
- "label": "Product Price",
296
- "settings": {
297
- "hasOnlyDefaultVariant": false
299
+ label: 'Product Price',
300
+ settings: {
301
+ hasOnlyDefaultVariant: false
298
302
  },
299
- "styles": {
300
- "color": {
301
- "normal": "#B4B4B4"
303
+ styles: {
304
+ color: {
305
+ normal: '#B4B4B4'
302
306
  },
303
- "hasTextShadow": {
304
- "normal": false
307
+ hasTextShadow: {
308
+ normal: false
305
309
  },
306
- "lineColor": "text-1",
307
- "lineThrough": true,
308
- "priceType": "compare",
309
- "textAlign": {
310
- "desktop": "right"
310
+ lineColor: 'text-1',
311
+ lineThrough: true,
312
+ priceType: 'compare',
313
+ textAlign: {
314
+ desktop: 'right'
311
315
  },
312
- "textShadow": {
313
- "normal": {
314
- "type": "shadow-1"
316
+ textShadow: {
317
+ normal: {
318
+ type: 'shadow-1'
315
319
  }
316
320
  },
317
- "thickness": "1px",
318
- "typo": {
319
- "type": "paragraph-1"
321
+ thickness: '1px',
322
+ typo: {
323
+ type: 'paragraph-1'
320
324
  }
321
325
  },
322
- "tag": "ProductPrice",
323
- "uid": "g6nLP4HJHr",
324
- "childrens": []
326
+ tag: 'ProductPrice',
327
+ uid: 'g6nLP4HJHr',
328
+ childrens: []
325
329
  }
326
330
  ],
327
- "label": "Block",
328
- "settings": {},
329
- "styles": {},
330
- "tag": "Col",
331
- "uid": "gjH1W3Ljxp"
331
+ label: 'Block',
332
+ settings: {},
333
+ styles: {},
334
+ tag: 'Col',
335
+ uid: 'gjH1W3Ljxp'
332
336
  },
333
337
  {
334
- "tag": "Col",
335
- "label": "Block",
336
- "settings": {},
337
- "childrens": [
338
+ tag: 'Col',
339
+ label: 'Block',
340
+ settings: {},
341
+ childrens: [
338
342
  {
339
- "label": "Product Price",
340
- "settings": {
341
- "hasOnlyDefaultVariant": false
343
+ label: 'Product Price',
344
+ settings: {
345
+ hasOnlyDefaultVariant: false
342
346
  },
343
- "styles": {
344
- "color": {
345
- "normal": "#242424"
347
+ styles: {
348
+ color: {
349
+ normal: '#242424'
346
350
  },
347
- "hasTextShadow": {
348
- "normal": false
351
+ hasTextShadow: {
352
+ normal: false
349
353
  },
350
- "lineColor": "text-1",
351
- "lineThrough": true,
352
- "priceType": "regular",
353
- "textAlign": {
354
- "desktop": "right"
354
+ lineColor: 'text-1',
355
+ lineThrough: true,
356
+ priceType: 'regular',
357
+ textAlign: {
358
+ desktop: 'right'
355
359
  },
356
- "textShadow": {
357
- "normal": {
358
- "type": "shadow-1"
360
+ textShadow: {
361
+ normal: {
362
+ type: 'shadow-1'
359
363
  }
360
364
  },
361
- "thickness": 1,
362
- "typo": {
363
- "type": "subheading-2"
365
+ thickness: 1,
366
+ typo: {
367
+ type: 'subheading-2'
364
368
  }
365
369
  },
366
- "tag": "ProductPrice",
367
- "uid": "gzGEbvnT3K",
368
- "childrens": []
370
+ tag: 'ProductPrice',
371
+ uid: 'gzGEbvnT3K',
372
+ childrens: []
369
373
  }
370
374
  ],
371
- "uid": "gNSAXKYuIB"
375
+ uid: 'gNSAXKYuIB'
372
376
  }
373
377
  ],
374
- "label": "Row",
375
- "settings": {
376
- "blockAlignment": "start",
377
- "horizontalAlign": {
378
- "desktop": "end"
379
- },
380
- "inlineAlignment": "start",
381
- "layout": {
382
- "desktop": {
383
- "cols": [
378
+ label: 'Row',
379
+ settings: {
380
+ blockAlignment: 'start',
381
+ horizontalAlign: {
382
+ desktop: 'end'
383
+ },
384
+ inlineAlignment: 'start',
385
+ layout: {
386
+ desktop: {
387
+ cols: [
384
388
  6,
385
389
  6
386
390
  ],
387
- "display": "fit"
391
+ display: 'fit'
388
392
  },
389
- "mobile": {
390
- "cols": [
393
+ mobile: {
394
+ cols: [
391
395
  6,
392
396
  6
393
397
  ],
394
- "display": "fit"
398
+ display: 'fit'
395
399
  }
396
400
  },
397
- "verticalAlign": {
398
- "desktop": "center"
401
+ verticalAlign: {
402
+ desktop: 'center'
399
403
  }
400
404
  },
401
- "styles": {
402
- "background": {
403
- "desktop": {
404
- "attachment": "scroll",
405
- "color": "transparent",
406
- "image": {
407
- "height": 0,
408
- "src": "",
409
- "width": 0
405
+ styles: {
406
+ background: {
407
+ desktop: {
408
+ attachment: 'scroll',
409
+ color: 'transparent',
410
+ image: {
411
+ height: 0,
412
+ src: '',
413
+ width: 0
410
414
  },
411
- "position": {
412
- "x": 50,
413
- "y": 50
415
+ position: {
416
+ x: 50,
417
+ y: 50
414
418
  },
415
- "repeat": "no-repeat",
416
- "size": "cover",
417
- "type": "color"
419
+ repeat: 'no-repeat',
420
+ size: 'cover',
421
+ type: 'color'
418
422
  }
419
423
  },
420
- "columnGap": {
421
- "desktop": "1%"
424
+ columnGap: {
425
+ desktop: '1%'
422
426
  },
423
- "fullWidth": {
424
- "desktop": false,
425
- "mobile": false,
426
- "tablet": false
427
+ fullWidth: {
428
+ desktop: false,
429
+ mobile: false,
430
+ tablet: false
427
431
  },
428
- "preloadBgImage": false,
429
- "verticalGutter": {
430
- "desktop": "8px"
432
+ preloadBgImage: false,
433
+ verticalGutter: {
434
+ desktop: '8px'
431
435
  },
432
- "width": {
433
- "desktop": "100%"
436
+ width: {
437
+ desktop: '100%'
434
438
  }
435
439
  },
436
- "tag": "Row",
437
- "uid": "gkZXC79fdE",
438
- "advanced": {
439
- "spacing-setting": {
440
- "desktop": {
441
- "margin": {
442
- "bottom": 0
440
+ tag: 'Row',
441
+ uid: 'gkZXC79fdE',
442
+ advanced: {
443
+ 'spacing-setting': {
444
+ desktop: {
445
+ margin: {
446
+ bottom: 0
443
447
  }
444
448
  }
445
449
  }
@@ -448,68 +452,68 @@ const verticalTwo = [
448
452
  ]
449
453
  }
450
454
  ],
451
- "label": "Row",
452
- "settings": {
453
- "blockAlignment": "start",
454
- "horizontalAlign": {
455
- "desktop": "space-between"
455
+ label: 'Row',
456
+ settings: {
457
+ blockAlignment: 'start',
458
+ horizontalAlign: {
459
+ desktop: 'space-between'
456
460
  },
457
- "inlineAlignment": "start",
458
- "layout": {
459
- "desktop": {
460
- "cols": [
461
+ inlineAlignment: 'start',
462
+ layout: {
463
+ desktop: {
464
+ cols: [
461
465
  6,
462
466
  6
463
467
  ],
464
- "display": "fit"
468
+ display: 'fit'
465
469
  },
466
- "mobile": {
467
- "cols": [
470
+ mobile: {
471
+ cols: [
468
472
  6,
469
473
  6
470
474
  ],
471
- "display": "fit"
475
+ display: 'fit'
472
476
  }
473
477
  },
474
- "verticalAlign": {
475
- "desktop": "center"
478
+ verticalAlign: {
479
+ desktop: 'center'
476
480
  }
477
481
  },
478
- "styles": {
479
- "background": {
480
- "desktop": {
481
- "attachment": "scroll",
482
- "color": "transparent",
483
- "image": {
484
- "height": 0,
485
- "src": "",
486
- "width": 0
482
+ styles: {
483
+ background: {
484
+ desktop: {
485
+ attachment: 'scroll',
486
+ color: 'transparent',
487
+ image: {
488
+ height: 0,
489
+ src: '',
490
+ width: 0
487
491
  },
488
- "position": {
489
- "x": 50,
490
- "y": 50
492
+ position: {
493
+ x: 50,
494
+ y: 50
491
495
  },
492
- "repeat": "no-repeat",
493
- "size": "cover",
494
- "type": "color"
496
+ repeat: 'no-repeat',
497
+ size: 'cover',
498
+ type: 'color'
495
499
  }
496
500
  },
497
- "columnGap": {
498
- "desktop": "1%"
501
+ columnGap: {
502
+ desktop: '1%'
499
503
  },
500
- "fullWidth": {
501
- "desktop": true,
502
- "mobile": true,
503
- "tablet": true
504
+ fullWidth: {
505
+ desktop: true,
506
+ mobile: true,
507
+ tablet: true
504
508
  },
505
- "preloadBgImage": false,
506
- "verticalGutter": {
507
- "desktop": "16px"
509
+ preloadBgImage: false,
510
+ verticalGutter: {
511
+ desktop: '16px'
508
512
  },
509
- "width": {}
513
+ width: {}
510
514
  },
511
- "tag": "Row",
512
- "uid": "g8_-a9Ub8r"
515
+ tag: 'Row',
516
+ uid: 'g8_-a9Ub8r'
513
517
  }
514
518
  ];
515
519