@gem-sdk/components 2.0.0-dev.702 → 2.0.0-dev.704

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.
Files changed (72) hide show
  1. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +86 -134
  2. package/dist/cjs/button/components/common/helpers.js +2 -9
  3. package/dist/cjs/button/components/common/styles.js +14 -81
  4. package/dist/cjs/button/setting/configs/settings.js +85 -133
  5. package/dist/cjs/coupon/common/classes.js +3 -12
  6. package/dist/cjs/coupon/common/styles.js +7 -17
  7. package/dist/cjs/coupon/setting/config/settings.js +60 -100
  8. package/dist/cjs/form/setting/submit-button/configs/settings.js +103 -250
  9. package/dist/cjs/helpers.js +4 -1
  10. package/dist/cjs/image/components/NextImage.liquid.js +2 -2
  11. package/dist/cjs/index.js +4 -0
  12. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +2 -2
  13. package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +72 -2
  14. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +12 -12
  15. package/dist/cjs/product/components/ProductBadge/index.liquid.js +12 -3
  16. package/dist/cjs/product/components/ProductBadge/utils/generateLiquidContent.js +2 -2
  17. package/dist/cjs/product/components/ProductButton/common/styles.js +4 -14
  18. package/dist/cjs/product/components/ProductDescription/index.liquid.js +21 -4
  19. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -1
  20. package/dist/cjs/product/setting/constant/bundle-layout/horizontalThree.js +1 -0
  21. package/dist/cjs/product/setting/constant/bundle-layout/horizontalTwo.js +1 -0
  22. package/dist/cjs/product/setting/constant/bundle-layout/verticalThree.js +1 -0
  23. package/dist/cjs/product/setting/constant/bundle-layout/verticalTwo.js +1 -0
  24. package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +86 -134
  25. package/dist/cjs/product/setting/product-badge/configs/settings.js +5 -0
  26. package/dist/cjs/product/setting/product-button/configs/settings.js +142 -222
  27. package/dist/cjs/product/setting/product-description/configs/settings.js +5 -0
  28. package/dist/cjs/product/setting/product-view-more/configs/settings.js +100 -148
  29. package/dist/cjs/stock-counter/components/StockCounter.js +0 -2
  30. package/dist/cjs/stock-counter/components/StockCounter.liquid.js +44 -3
  31. package/dist/cjs/stock-counter/components/common/getContent.js +19 -10
  32. package/dist/cjs/stock-counter/helpers.js +20 -3
  33. package/dist/cjs/stock-counter/index.js +0 -1
  34. package/dist/cjs/stock-counter/setting/configs/settingsV2.js +5 -0
  35. package/dist/cjs/third-party/setting/Selleasy/index.js +5 -5
  36. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +86 -134
  37. package/dist/esm/button/components/common/helpers.js +2 -9
  38. package/dist/esm/button/components/common/styles.js +16 -81
  39. package/dist/esm/button/setting/configs/settings.js +85 -133
  40. package/dist/esm/coupon/common/classes.js +3 -12
  41. package/dist/esm/coupon/common/styles.js +7 -17
  42. package/dist/esm/coupon/setting/config/settings.js +60 -100
  43. package/dist/esm/form/setting/submit-button/configs/settings.js +103 -250
  44. package/dist/esm/helpers.js +4 -1
  45. package/dist/esm/image/components/NextImage.liquid.js +2 -2
  46. package/dist/esm/index.js +1 -0
  47. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +2 -2
  48. package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +72 -2
  49. package/dist/esm/product/components/DynamicCheckout/common/styles.js +12 -12
  50. package/dist/esm/product/components/ProductBadge/index.liquid.js +13 -4
  51. package/dist/esm/product/components/ProductBadge/utils/generateLiquidContent.js +2 -2
  52. package/dist/esm/product/components/ProductButton/common/styles.js +4 -14
  53. package/dist/esm/product/components/ProductDescription/index.liquid.js +22 -5
  54. package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -1
  55. package/dist/esm/product/setting/constant/bundle-layout/horizontalThree.js +1 -0
  56. package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +1 -0
  57. package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +1 -0
  58. package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +1 -0
  59. package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +86 -134
  60. package/dist/esm/product/setting/product-badge/configs/settings.js +5 -0
  61. package/dist/esm/product/setting/product-button/configs/settings.js +142 -222
  62. package/dist/esm/product/setting/product-description/configs/settings.js +5 -0
  63. package/dist/esm/product/setting/product-view-more/configs/settings.js +100 -148
  64. package/dist/esm/stock-counter/components/StockCounter.js +0 -2
  65. package/dist/esm/stock-counter/components/StockCounter.liquid.js +46 -5
  66. package/dist/esm/stock-counter/components/common/getContent.js +19 -11
  67. package/dist/esm/stock-counter/helpers.js +20 -4
  68. package/dist/esm/stock-counter/index.js +0 -1
  69. package/dist/esm/stock-counter/setting/configs/settingsV2.js +5 -0
  70. package/dist/esm/third-party/setting/Selleasy/index.js +5 -5
  71. package/dist/types/index.d.ts +40 -28
  72. package/package.json +3 -3
@@ -100,252 +100,116 @@ const SubmitButtonSettings = [
100
100
  {
101
101
  id: 'borderBtnV2',
102
102
  type: 'border-v2',
103
- devices: {
104
- desktop: {
105
- default: {
106
- normal: {
107
- borderType: 'none',
108
- border: 'none',
109
- borderWidth: '1px',
110
- width: '1px 1px 1px 1px',
111
- color: '#121212',
112
- isCustom: true
113
- },
114
- hover: {
115
- borderType: 'none',
116
- border: 'none',
117
- borderWidth: '1px',
118
- width: '1px 1px 1px 1px',
119
- color: '#121212',
120
- isCustom: true
121
- }
122
- }
103
+ default: {
104
+ normal: {
105
+ borderType: 'none',
106
+ border: 'none',
107
+ borderWidth: '1px',
108
+ width: '1px 1px 1px 1px',
109
+ color: '#121212',
110
+ isCustom: true
111
+ },
112
+ hover: {
113
+ borderType: 'none',
114
+ border: 'none',
115
+ borderWidth: '1px',
116
+ width: '1px 1px 1px 1px',
117
+ color: '#121212',
118
+ isCustom: true
123
119
  }
124
120
  },
125
121
  compoDefaultValue: {
126
- desktop: {
127
- default: {
128
- normal: {
129
- border: 'solid',
130
- color: '#121212',
131
- width: '1px',
132
- borderWidth: '1px'
133
- },
134
- hover: {
135
- border: 'solid',
136
- color: '#121212',
137
- width: '1px',
138
- borderWidth: '1px'
139
- }
140
- }
141
- },
142
- tablet: {
143
- default: {
144
- normal: {
145
- border: 'solid',
146
- color: '#121212',
147
- width: '1px',
148
- borderWidth: '1px'
149
- },
150
- hover: {
151
- border: 'solid',
152
- color: '#121212',
153
- width: '1px',
154
- borderWidth: '1px'
155
- }
156
- }
122
+ normal: {
123
+ border: 'solid',
124
+ color: '#121212',
125
+ width: '1px',
126
+ borderWidth: '1px'
157
127
  },
158
- mobile: {
159
- default: {
160
- normal: {
161
- border: 'solid',
162
- color: '#121212',
163
- width: '1px',
164
- borderWidth: '1px'
165
- },
166
- hover: {
167
- border: 'solid',
168
- color: '#121212',
169
- width: '1px',
170
- borderWidth: '1px'
171
- }
172
- }
128
+ hover: {
129
+ border: 'solid',
130
+ color: '#121212',
131
+ width: '1px',
132
+ borderWidth: '1px'
173
133
  }
174
134
  }
175
135
  },
176
136
  {
177
137
  id: 'roundedBtnV2',
178
138
  type: 'corner-v2',
179
- devices: {
180
- desktop: {
181
- default: {
182
- normal: {
183
- btrr: '0px',
184
- bblr: '0px',
185
- bbrr: '0px',
186
- btlr: '0px',
187
- radiusType: 'none'
188
- },
189
- hover: {
190
- btrr: '0px',
191
- bblr: '0px',
192
- bbrr: '0px',
193
- btlr: '0px',
194
- radiusType: 'none'
195
- }
196
- }
139
+ default: {
140
+ normal: {
141
+ btrr: '0px',
142
+ bblr: '0px',
143
+ bbrr: '0px',
144
+ btlr: '0px',
145
+ radiusType: 'none'
146
+ },
147
+ hover: {
148
+ btrr: '0px',
149
+ bblr: '0px',
150
+ bbrr: '0px',
151
+ btlr: '0px',
152
+ radiusType: 'none'
197
153
  }
198
154
  },
199
155
  compoDefaultValue: {
200
- desktop: {
201
- default: {
202
- normal: {
203
- btrr: '8px',
204
- bblr: '8px',
205
- bbrr: '8px',
206
- btlr: '8px',
207
- radiusType: 'rounded'
208
- },
209
- hover: {
210
- btrr: '8px',
211
- bblr: '8px',
212
- bbrr: '8px',
213
- btlr: '8px',
214
- radiusType: 'rounded'
215
- }
216
- }
217
- },
218
- tablet: {
219
- default: {
220
- normal: {
221
- btrr: '8px',
222
- bblr: '8px',
223
- bbrr: '8px',
224
- btlr: '8px',
225
- radiusType: 'rounded'
226
- },
227
- hover: {
228
- btrr: '8px',
229
- bblr: '8px',
230
- bbrr: '8px',
231
- btlr: '8px',
232
- radiusType: 'rounded'
233
- }
234
- }
156
+ normal: {
157
+ btrr: '8px',
158
+ bblr: '8px',
159
+ bbrr: '8px',
160
+ btlr: '8px',
161
+ radiusType: 'rounded'
235
162
  },
236
- mobile: {
237
- default: {
238
- normal: {
239
- btrr: '8px',
240
- bblr: '8px',
241
- bbrr: '8px',
242
- btlr: '8px',
243
- radiusType: 'rounded'
244
- },
245
- hover: {
246
- btrr: '8px',
247
- bblr: '8px',
248
- bbrr: '8px',
249
- btlr: '8px',
250
- radiusType: 'rounded'
251
- }
252
- }
163
+ hover: {
164
+ btrr: '8px',
165
+ bblr: '8px',
166
+ bbrr: '8px',
167
+ btlr: '8px',
168
+ radiusType: 'rounded'
253
169
  }
254
170
  }
255
171
  },
256
172
  {
257
173
  id: 'boxShadowBtnV2',
258
174
  type: 'shadow-v2',
259
- devices: {
260
- desktop: {
261
- default: {
262
- normal: {
263
- type: 'shadow-1',
264
- distance: '4px',
265
- blur: '4px',
266
- spread: '0px',
267
- color: '#121212',
268
- angle: 45,
269
- enable: false
270
- },
271
- hover: {
272
- type: 'shadow-1',
273
- distance: '4px',
274
- blur: '4px',
275
- spread: '0px',
276
- color: '#121212',
277
- angle: 45,
278
- enable: false
279
- }
280
- }
175
+ default: {
176
+ normal: {
177
+ type: 'shadow-1',
178
+ distance: '4px',
179
+ blur: '4px',
180
+ spread: '0px',
181
+ color: '#121212',
182
+ angle: 45,
183
+ enable: false
184
+ },
185
+ hover: {
186
+ type: 'shadow-1',
187
+ distance: '4px',
188
+ blur: '4px',
189
+ spread: '0px',
190
+ color: '#121212',
191
+ angle: 45,
192
+ enable: false
281
193
  }
282
194
  },
283
195
  compoDefaultValue: {
284
- desktop: {
285
- default: {
286
- normal: {
287
- type: 'shadow-1',
288
- distance: '4px',
289
- blur: '4px',
290
- spread: '0px',
291
- color: '#121212',
292
- angle: 45,
293
- enable: true
294
- },
295
- hover: {
296
- type: 'shadow-1',
297
- distance: '4px',
298
- blur: '4px',
299
- spread: '0px',
300
- color: '#121212',
301
- angle: 45,
302
- enable: true
303
- }
304
- }
305
- },
306
- tablet: {
307
- default: {
308
- normal: {
309
- type: 'shadow-1',
310
- distance: '4px',
311
- blur: '4px',
312
- spread: '0px',
313
- color: '#121212',
314
- angle: 45,
315
- enable: true
316
- },
317
- hover: {
318
- type: 'shadow-1',
319
- distance: '4px',
320
- blur: '4px',
321
- spread: '0px',
322
- color: '#121212',
323
- angle: 45,
324
- enable: true
325
- }
326
- }
196
+ normal: {
197
+ type: 'shadow-1',
198
+ distance: '4px',
199
+ blur: '4px',
200
+ spread: '0px',
201
+ color: '#121212',
202
+ angle: 45,
203
+ enable: true
327
204
  },
328
- mobile: {
329
- default: {
330
- normal: {
331
- type: 'shadow-1',
332
- distance: '4px',
333
- blur: '4px',
334
- spread: '0px',
335
- color: '#121212',
336
- angle: 45,
337
- enable: true
338
- },
339
- hover: {
340
- type: 'shadow-1',
341
- distance: '4px',
342
- blur: '4px',
343
- spread: '0px',
344
- color: '#121212',
345
- angle: 45,
346
- enable: true
347
- }
348
- }
205
+ hover: {
206
+ type: 'shadow-1',
207
+ distance: '4px',
208
+ blur: '4px',
209
+ spread: '0px',
210
+ color: '#121212',
211
+ angle: 45,
212
+ enable: true
349
213
  }
350
214
  }
351
215
  },
@@ -377,21 +241,13 @@ const SubmitButtonSettings = [
377
241
  {
378
242
  id: 'backgroundColorV2',
379
243
  type: 'color-picker-v2',
380
- devices: {
381
- desktop: {
382
- default: {
383
- normal: 'brand',
384
- hover: 'highlight'
385
- }
386
- }
244
+ default: {
245
+ normal: 'brand',
246
+ hover: 'highlight'
387
247
  },
388
248
  compoDefaultValue: {
389
- desktop: {
390
- default: {
391
- normal: 'brand',
392
- hover: 'highlight'
393
- }
394
- }
249
+ normal: 'brand',
250
+ hover: 'highlight'
395
251
  },
396
252
  enableGradient: true
397
253
  },
@@ -410,19 +266,11 @@ const SubmitButtonSettings = [
410
266
  {
411
267
  id: 'textColorHover',
412
268
  type: 'color-picker-v2',
413
- devices: {
414
- desktop: {
415
- default: {
416
- hover: 'text-3'
417
- }
418
- }
269
+ default: {
270
+ hover: 'text-3'
419
271
  },
420
272
  compoDefaultValue: {
421
- desktop: {
422
- default: {
423
- hover: 'text-3'
424
- }
425
- }
273
+ hover: 'text-3'
426
274
  }
427
275
  },
428
276
  {
@@ -482,17 +330,23 @@ const SubmitButtonSettings = [
482
330
  {
483
331
  label: 'Left',
484
332
  value: 'left',
485
- type: 'align'
333
+ type: 'align',
334
+ tooltip: 'Align left',
335
+ iconName: 'gp-align-left'
486
336
  },
487
337
  {
488
338
  label: 'Center',
489
339
  value: 'center',
490
- type: 'align'
340
+ type: 'align',
341
+ tooltip: 'Align center',
342
+ iconName: 'gp-align-center'
491
343
  },
492
344
  {
493
345
  label: 'Right',
494
346
  value: 'right',
495
- type: 'align'
347
+ type: 'align',
348
+ tooltip: 'Align right',
349
+ iconName: 'gp-align-right'
496
350
  }
497
351
  ],
498
352
  devices: {
@@ -509,7 +363,6 @@ const SubmitButtonSettings = [
509
363
  type: 'paragraph-1'
510
364
  },
511
365
  hiddenSetting: {
512
- // color: true,
513
366
  transform: true,
514
367
  textAlign: true
515
368
  },
@@ -37,7 +37,7 @@ const isHexTransparent = (hex)=>{
37
37
  return Boolean(a);
38
38
  };
39
39
  const youtubeShortsRegex = /^(?:https?:\/\/)?(?:www\.)?youtube\.com\/shorts\/([^"&?/\s]{11})$/i;
40
- const getDynamicSourceLocales = ({ val, uid, settingId, isLiquid, pageContext, isCapitalize, defaultVal = '', translate, isReplaceLocationOrigin, isReplaceMaxSize })=>{
40
+ const getDynamicSourceLocales = ({ val, uid, settingId, isLiquid, pageContext, isCapitalize, defaultVal = '', translate, isReplaceLocationOrigin, isReplaceMaxSize, isReplaceInventoryQuantity })=>{
41
41
  const hasLiquidInValue = new RegExp(/\{\{.*?\}\}|\{%.*?%\}/).test(val?.toString() ?? '');
42
42
  const translateLimit = pageContext?.isTranslateWithLocale ? 1000 : 5000;
43
43
  if (!translate || !val?.toString().trim() || val.toString().length > translateLimit || hasLiquidInValue || pageContext?.isPreviewing) return val ?? defaultVal;
@@ -52,6 +52,9 @@ const getDynamicSourceLocales = ({ val, uid, settingId, isLiquid, pageContext, i
52
52
  if (isReplaceMaxSize) {
53
53
  locale += ` | replace: '$max_size', '10MB'`;
54
54
  }
55
+ if (isReplaceInventoryQuantity) {
56
+ locale += ` | replace: '<$quantity$>', inventory_quantity | replace: '&lt;$quantity$&gt;', inventory_quantity`;
57
+ }
55
58
  if (isCapitalize) {
56
59
  locale = `${locale} | downcase`;
57
60
  }
@@ -5,8 +5,8 @@ import { getNextImageStyles } from './common/styles.js';
5
5
  import { getNextImageLiquidAttrs } from './helpers/getNextImageLiquidAttrs.js';
6
6
 
7
7
  const NextImage = (props)=>{
8
- const { style, setting, priority, className, pageContext, width, height, isNotLazyload, isDisableObjectFit, isDisableAspectStyle, enableLazyLoadImage = true } = props;
9
- const hasLazyLoad = !isNotLazyload && enableLazyLoadImage && !priority;
8
+ const { style, setting, priority, className, pageContext, width, height, customLazyload, isDisableObjectFit, isDisableAspectStyle, enableLazyLoadImage = true } = props;
9
+ const hasLazyLoad = !customLazyload && enableLazyLoadImage && !priority;
10
10
  const nextImageStyles = createStyle({
11
11
  ...style,
12
12
  ...getNextImageStyles({
package/dist/esm/index.js CHANGED
@@ -320,3 +320,4 @@ export { default as StockCounter } from './stock-counter/components/StockCounter
320
320
  export { default as ThirdPartySlot } from './third-party-slot/components/ThirdPartySlot.js';
321
321
  export { default as ShopPayInstallments } from './shop-pay-installment/components/ShopPayInstallments.js';
322
322
  export { default as Sticky } from './sticky/components/Sticky.js';
323
+ export { convertSizeToWidth, transformHighlighTag, transformNumberTag } from './stock-counter/helpers.js';
@@ -133,13 +133,13 @@ const SettingV2 = [
133
133
  },
134
134
  {
135
135
  id: 'ftEnabled',
136
- type: 'toggle:layout-post-purchase',
136
+ type: 'toggle',
137
137
  label: 'Feature image',
138
138
  default: true
139
139
  },
140
140
  {
141
141
  id: 'ilEnabled',
142
- type: 'toggle:layout-post-purchase',
142
+ type: 'toggle',
143
143
  label: 'Image list',
144
144
  default: true
145
145
  }
@@ -55,7 +55,42 @@ const SettingUIV2 = [
55
55
  fullWidth: true,
56
56
  tooltipPosition: 'right'
57
57
  },
58
- conditionEnable: 'ilEnabled == true'
58
+ conditionEnable: 'ilEnabled == true',
59
+ controlChangeTrigger: {
60
+ settings: [
61
+ {
62
+ condition: `ftEnabled === false && ilEnabled === true`,
63
+ source: [
64
+ 'ilEnabled',
65
+ 'ftEnabled',
66
+ 'layoutType'
67
+ ],
68
+ action: {
69
+ controlId: 'layoutType',
70
+ groupType: 'setting',
71
+ controlType: 'setting',
72
+ newValue: 'two-col'
73
+ }
74
+ },
75
+ {
76
+ condition: `ftEnabled === true && ilEnabled === true`,
77
+ source: [
78
+ 'ilEnabled',
79
+ 'ftEnabled',
80
+ 'layoutType'
81
+ ],
82
+ action: {
83
+ controlId: 'layoutType',
84
+ groupType: 'setting',
85
+ controlType: 'setting',
86
+ newValue: 'left'
87
+ }
88
+ }
89
+ ],
90
+ options: {
91
+ noRecordHistory: true
92
+ }
93
+ }
59
94
  },
60
95
  {
61
96
  setting: {
@@ -101,7 +136,42 @@ const SettingUIV2 = [
101
136
  fullWidth: true,
102
137
  tooltipPosition: 'right'
103
138
  },
104
- conditionEnable: 'ftEnabled == true'
139
+ conditionEnable: 'ftEnabled == true',
140
+ controlChangeTrigger: {
141
+ settings: [
142
+ {
143
+ condition: `ilEnabled === false && ftEnabled === true`,
144
+ source: [
145
+ 'ilEnabled',
146
+ 'ftEnabled',
147
+ 'layoutType'
148
+ ],
149
+ action: {
150
+ controlId: 'layoutType',
151
+ groupType: 'setting',
152
+ controlType: 'setting',
153
+ newValue: 'only-feature'
154
+ }
155
+ },
156
+ {
157
+ condition: `ilEnabled === true && ftEnabled === true`,
158
+ source: [
159
+ 'ilEnabled',
160
+ 'ftEnabled',
161
+ 'layoutType'
162
+ ],
163
+ action: {
164
+ controlId: 'layoutType',
165
+ groupType: 'setting',
166
+ controlType: 'setting',
167
+ newValue: 'left'
168
+ }
169
+ }
170
+ ],
171
+ options: {
172
+ noRecordHistory: true
173
+ }
174
+ }
105
175
  },
106
176
  {
107
177
  label: {
@@ -49,36 +49,36 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
49
49
  ${composeSpacing(device, composeGlobalSize.padding)}
50
50
  ${composeSize(composeGlobalSize.width[device] ?? 'auto', composeGlobalSize.height[device] ?? 'auto', false)}
51
51
  ${composeShadowCss({
52
- boxShadowValue: styles?.boxShadowBtnV2?.[device]?.normal,
53
- hasBoxShadow: styles?.boxShadowBtnV2?.[device]?.normal?.type !== 'none'
52
+ boxShadowValue: styles?.boxShadowBtnV2?.normal,
53
+ hasBoxShadow: styles?.boxShadowBtnV2?.normal?.type !== 'none'
54
54
  }) || ''}
55
- ${composeCornerCss(styles?.roundedBtnV2?.[device]?.normal, true)}
55
+ ${composeCornerCss(styles?.roundedBtnV2?.normal, true)}
56
56
  ${device === 'desktop' ? composeTypographyV2Css(styles?.typo, true) : ''}
57
57
  }
58
58
 
59
59
  .wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded:hover {
60
60
  ${composeShadowCss({
61
- boxShadowValue: styles?.boxShadowBtnV2?.[device]?.hover,
62
- hasBoxShadow: styles?.boxShadowBtnV2?.[device]?.hover?.type !== 'none',
61
+ boxShadowValue: styles?.boxShadowBtnV2?.hover,
62
+ hasBoxShadow: styles?.boxShadowBtnV2?.hover?.type !== 'none',
63
63
  important: true
64
64
  }) || ''}
65
- ${composeTextHoverColorCss(device, styles?.textColorHover, true)}
65
+ ${composeTextHoverColorCss(styles?.textColorHover, true)}
66
66
  }
67
67
 
68
68
  .wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded::before {
69
- ${composeBorderCss(styles?.borderBtnV2?.[device]?.normal)}
70
- ${composeCornerCss(styles?.roundedBtnV2?.[device]?.normal)}
69
+ ${composeBorderCss(styles?.borderBtnV2?.normal)}
70
+ ${composeCornerCss(styles?.roundedBtnV2?.normal)}
71
71
  ${composeBackgroundImageCss(styles?.backgroundImage, {
72
72
  device,
73
73
  state: 'normal'
74
74
  })}
75
- ${composeBackgroundCss(styles?.backgroundColorV2?.[device]?.normal)}
75
+ ${composeBackgroundCss(styles?.backgroundColorV2?.normal)}
76
76
  }
77
77
 
78
78
  .wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded:hover::before {
79
- ${composeBorderCss(styles?.borderBtnV2?.[device]?.hover)}
80
- ${composeCornerCss(styles?.roundedBtnV2?.[device]?.hover)}
81
- ${composeBackgroundCss(styles?.backgroundColorV2?.[device]?.hover)}
79
+ ${composeBorderCss(styles?.borderBtnV2?.hover)}
80
+ ${composeCornerCss(styles?.roundedBtnV2?.hover)}
81
+ ${composeBackgroundCss(styles?.backgroundColorV2?.hover)}
82
82
  }
83
83
  `;
84
84
  };