@gem-sdk/components 2.0.0-dev.275 → 2.0.0-dev.278

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 (112) hide show
  1. package/dist/cjs/article/components/ArticleReadMore.js +2 -4
  2. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +4 -4
  3. package/dist/cjs/builder.js +4 -8
  4. package/dist/cjs/button/components/Button.js +111 -184
  5. package/dist/cjs/button/components/Button.liquid.js +108 -171
  6. package/dist/cjs/button/components/ButtonIcon.js +17 -0
  7. package/dist/cjs/button/components/ButtonIcon.liquid.js +16 -0
  8. package/dist/cjs/button/components/ButtonLabel.js +18 -0
  9. package/dist/cjs/button/components/ButtonLabel.liquid.js +15 -0
  10. package/dist/cjs/button/components/ButtonLoadingIndicator.liquid.js +12 -0
  11. package/dist/cjs/button/components/common/attributes.js +15 -0
  12. package/dist/cjs/button/components/common/classes.js +55 -0
  13. package/dist/cjs/button/components/common/constants.js +26 -0
  14. package/dist/cjs/button/components/common/data.js +76 -0
  15. package/dist/cjs/button/components/common/helpers.js +131 -0
  16. package/dist/cjs/button/components/common/styles.js +157 -0
  17. package/dist/cjs/button/next.js +2 -6
  18. package/dist/cjs/button/setting/configs/settings.js +5 -1
  19. package/dist/cjs/cart/components/CheckoutNow.js +0 -2
  20. package/dist/cjs/coupon/components/Coupon.js +1 -3
  21. package/dist/cjs/dialog/setting/Dialog.js +7 -580
  22. package/dist/cjs/dialog/setting/configs/settings.js +325 -0
  23. package/dist/cjs/dialog/setting/configs/uiV1.js +288 -0
  24. package/dist/cjs/dialog/setting/configs/uiV2.js +258 -0
  25. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +3 -3
  26. package/dist/cjs/form/components/submit-button/SubmitButton.js +0 -4
  27. package/dist/cjs/index.js +2 -4
  28. package/dist/cjs/index.liquid.js +1 -3
  29. package/dist/cjs/post-purchase/callout-banner/components/CalloutText.js +1 -2
  30. package/dist/cjs/post-purchase/callout-banner/components/common/getClasses.js +2 -5
  31. package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +4 -2
  32. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +11 -1
  33. package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +1 -1
  34. package/dist/cjs/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +4 -1
  35. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +15 -2
  36. package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +3 -1
  37. package/dist/cjs/post-purchase/utils/constants.js +1 -1
  38. package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.js +2 -5
  39. package/dist/cjs/product/components/DynamicCheckout.js +2 -5
  40. package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
  41. package/dist/cjs/product/components/ProductButton.js +2 -3
  42. package/dist/cjs/product/components/ProductButton.liquid.js +3 -3
  43. package/dist/cjs/product/components/ProductDescription/index.liquid.js +1 -2
  44. package/dist/cjs/product/components/ProductViewMore.js +2 -5
  45. package/dist/cjs/product/components/ProductViewMore.liquid.js +2 -2
  46. package/dist/cjs/setting.js +2 -2
  47. package/dist/cjs/text/components/common/getClasses.js +1 -1
  48. package/dist/cjs/third-party/components/PushOwl.js +0 -5
  49. package/dist/esm/article/components/ArticleReadMore.js +1 -3
  50. package/dist/esm/banner/components/HeroBannerItem.liquid.js +4 -4
  51. package/dist/esm/builder.js +1 -5
  52. package/dist/esm/button/components/Button.js +113 -186
  53. package/dist/esm/button/components/Button.liquid.js +109 -172
  54. package/dist/esm/button/components/ButtonIcon.js +13 -0
  55. package/dist/esm/button/components/ButtonIcon.liquid.js +12 -0
  56. package/dist/esm/button/components/ButtonLabel.js +14 -0
  57. package/dist/esm/button/components/ButtonLabel.liquid.js +11 -0
  58. package/dist/esm/button/components/ButtonLoadingIndicator.liquid.js +8 -0
  59. package/dist/esm/button/components/common/attributes.js +13 -0
  60. package/dist/esm/button/components/common/classes.js +49 -0
  61. package/dist/esm/button/components/common/constants.js +24 -0
  62. package/dist/esm/button/components/common/data.js +74 -0
  63. package/dist/esm/button/components/common/helpers.js +118 -0
  64. package/dist/esm/button/components/common/styles.js +148 -0
  65. package/dist/esm/button/next.js +2 -6
  66. package/dist/esm/button/setting/configs/settings.js +5 -1
  67. package/dist/esm/cart/components/CheckoutNow.js +0 -2
  68. package/dist/esm/coupon/components/Coupon.js +1 -3
  69. package/dist/esm/dialog/setting/Dialog.js +7 -580
  70. package/dist/esm/dialog/setting/configs/settings.js +323 -0
  71. package/dist/esm/dialog/setting/configs/uiV1.js +286 -0
  72. package/dist/esm/dialog/setting/configs/uiV2.js +256 -0
  73. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +3 -3
  74. package/dist/esm/form/components/submit-button/SubmitButton.js +0 -4
  75. package/dist/esm/index.js +1 -2
  76. package/dist/esm/index.liquid.js +1 -2
  77. package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +1 -2
  78. package/dist/esm/post-purchase/callout-banner/components/common/getClasses.js +2 -5
  79. package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +4 -2
  80. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +11 -1
  81. package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +1 -1
  82. package/dist/esm/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +4 -1
  83. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +15 -2
  84. package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +3 -1
  85. package/dist/esm/post-purchase/utils/constants.js +1 -1
  86. package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.js +1 -4
  87. package/dist/esm/product/components/DynamicCheckout.js +1 -4
  88. package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
  89. package/dist/esm/product/components/ProductButton.js +1 -2
  90. package/dist/esm/product/components/ProductButton.liquid.js +1 -1
  91. package/dist/esm/product/components/ProductDescription/index.liquid.js +3 -4
  92. package/dist/esm/product/components/ProductViewMore.js +1 -4
  93. package/dist/esm/product/components/ProductViewMore.liquid.js +1 -1
  94. package/dist/esm/setting.js +2 -2
  95. package/dist/esm/text/components/common/getClasses.js +1 -1
  96. package/dist/esm/third-party/components/PushOwl.js +0 -5
  97. package/dist/types/index.d.ts +175 -267
  98. package/package.json +2 -2
  99. package/dist/cjs/button/components/v2/ButtonIcon.js +0 -18
  100. package/dist/cjs/button/components/v2/ButtonLabel.js +0 -25
  101. package/dist/cjs/button/components/v2/ButtonV2.js +0 -140
  102. package/dist/cjs/button/components/v2/ButtonV2.liquid.js +0 -181
  103. package/dist/cjs/button/hooks/useButtonCustomCss.js +0 -88
  104. package/dist/cjs/button/hooks/useButtonStyles.js +0 -93
  105. package/dist/esm/button/components/v2/ButtonIcon.js +0 -14
  106. package/dist/esm/button/components/v2/ButtonLabel.js +0 -21
  107. package/dist/esm/button/components/v2/ButtonV2.js +0 -136
  108. package/dist/esm/button/components/v2/ButtonV2.liquid.js +0 -177
  109. package/dist/esm/button/hooks/useButtonCustomCss.js +0 -84
  110. package/dist/esm/button/hooks/useButtonStyles.js +0 -91
  111. /package/dist/cjs/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
  112. /package/dist/esm/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
@@ -0,0 +1,256 @@
1
+ const SettingUIV2 = [
2
+ {
3
+ label: {
4
+ en: 'Popup Name'
5
+ },
6
+ controls: [
7
+ {
8
+ label: {
9
+ en: 'Name'
10
+ },
11
+ setting: {
12
+ id: 'name'
13
+ }
14
+ }
15
+ ]
16
+ },
17
+ {
18
+ label: {
19
+ en: 'Button close'
20
+ },
21
+ controls: [
22
+ {
23
+ label: {
24
+ en: 'Button size'
25
+ },
26
+ setting: {
27
+ id: 'btnSize'
28
+ }
29
+ },
30
+ {
31
+ label: {
32
+ en: 'Background'
33
+ },
34
+ setting: {
35
+ id: 'btnBg'
36
+ }
37
+ }
38
+ ],
39
+ moreSettings: {
40
+ controls: [
41
+ {
42
+ setting: {
43
+ id: 'closeButtonPosition'
44
+ },
45
+ label: {
46
+ en: 'Position'
47
+ }
48
+ },
49
+ {
50
+ label: {
51
+ en: 'Color'
52
+ },
53
+ setting: {
54
+ id: 'btnColor'
55
+ }
56
+ },
57
+ {
58
+ label: {
59
+ en: 'Corner'
60
+ },
61
+ setting: {
62
+ id: 'btnRounded'
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ },
68
+ {
69
+ controls: [
70
+ {
71
+ label: {
72
+ en: 'Overlay'
73
+ },
74
+ setting: {
75
+ id: 'isOverlay'
76
+ },
77
+ options: {
78
+ labelVariant: 'primary',
79
+ toggleStyle: 'switch'
80
+ }
81
+ },
82
+ {
83
+ conditionDisplay: `isOverlay === true`,
84
+ label: {
85
+ en: 'Color'
86
+ },
87
+ setting: {
88
+ id: 'overlayColor'
89
+ }
90
+ },
91
+ {
92
+ conditionDisplay: `isOverlay === true`,
93
+ label: {
94
+ en: 'Click to close'
95
+ },
96
+ setting: {
97
+ id: 'closeOnClickOutside'
98
+ }
99
+ },
100
+ {
101
+ conditionDisplay: `isOverlay === true`,
102
+ label: {
103
+ en: 'Opacity'
104
+ },
105
+ setting: {
106
+ id: 'overlayOpacity'
107
+ }
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ label: {
113
+ en: 'Size'
114
+ },
115
+ controls: [
116
+ {
117
+ label: {
118
+ en: 'Full screen'
119
+ },
120
+ setting: {
121
+ id: 'fullScreen'
122
+ }
123
+ },
124
+ {
125
+ conditionDisplay: `!fullScreen`,
126
+ label: {
127
+ en: 'Width'
128
+ },
129
+ setting: {
130
+ id: 'width'
131
+ }
132
+ },
133
+ {
134
+ conditionDisplay: `!fullScreen`,
135
+ label: {
136
+ en: 'Height'
137
+ },
138
+ setting: {
139
+ id: 'height'
140
+ }
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ label: {
146
+ en: 'Background'
147
+ },
148
+ controls: [
149
+ {
150
+ setting: {
151
+ id: 'background'
152
+ },
153
+ layout: 'vertical'
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ label: {
159
+ en: 'Position'
160
+ },
161
+ controls: [
162
+ {
163
+ label: {
164
+ en: 'Choose'
165
+ },
166
+ type: 'combo',
167
+ iconPrefix: 'gp-position',
168
+ iconName: 'polaris-edit',
169
+ isHideClear: true,
170
+ getValueFromSettingID: 'position',
171
+ controls: [
172
+ {
173
+ label: {
174
+ en: 'Choose'
175
+ },
176
+ setting: {
177
+ id: 'position'
178
+ },
179
+ options: {
180
+ labelAlign: 'top'
181
+ }
182
+ }
183
+ ],
184
+ conditionDisplay: `!fullScreen`
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ label: {
190
+ en: 'Display'
191
+ },
192
+ controls: [
193
+ {
194
+ label: {
195
+ en: 'Show when'
196
+ },
197
+ setting: {
198
+ id: 'trigger'
199
+ }
200
+ },
201
+ {
202
+ conditionDisplay: `trigger === 'show-after-time'`,
203
+ label: {
204
+ en: 'Time'
205
+ },
206
+ setting: {
207
+ id: 'triggerTime'
208
+ }
209
+ },
210
+ {
211
+ conditionDisplay: `trigger === 'show-after-scroll'`,
212
+ label: {
213
+ en: 'Scroll'
214
+ },
215
+ setting: {
216
+ id: 'triggerPercentage'
217
+ }
218
+ },
219
+ {
220
+ conditionDisplay: `trigger === 'show-when-about-exit'`,
221
+ label: {
222
+ en: 'On mobile'
223
+ },
224
+ setting: {
225
+ id: 'mobileTrigger'
226
+ }
227
+ },
228
+ {
229
+ conditionDisplay: `trigger === 'show-when-about-exit' && mobileTrigger === 'timer'`,
230
+ label: {
231
+ en: 'After load'
232
+ },
233
+ setting: {
234
+ id: 'mobileTriggerTime'
235
+ }
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ label: {
241
+ en: 'Effect'
242
+ },
243
+ controls: [
244
+ {
245
+ setting: {
246
+ id: 'effectType'
247
+ },
248
+ label: {
249
+ en: 'Entrance effect'
250
+ }
251
+ }
252
+ ]
253
+ }
254
+ ];
255
+
256
+ export { SettingUIV2 };
@@ -1,8 +1,9 @@
1
1
  import { RenderIf, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
2
- import { getDynamicSourceLocales, getSettingPreloadData } from '../../helpers.js';
3
2
  import '@gem-sdk/system';
3
+ import { getDynamicSourceLocales, getSettingPreloadData } from '../../helpers.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
6
+ import 'next/link';
6
7
  import '../../product/components/ProductVariants/variants/index.js';
7
8
  import Text from '../../text/components/Text.liquid.js';
8
9
  import '../../product/components/ProductBadge/constants.js';
@@ -10,9 +11,8 @@ import '../../product/components/constants/product-bundle.js';
10
11
  import '../../product/components/ProductBadge/types.js';
11
12
  import '../../product/components/ProductBadge/utils/shape.js';
12
13
  import '../../accordion/setting/configs/settings.js';
13
- import 'next/head';
14
- import 'next/link';
15
14
  import '@gem-sdk/keen-slider/react';
15
+ import 'next/head';
16
16
  import 'next/image';
17
17
  import 'react-youtube';
18
18
  import '../../image/components/AdaptiveImage.js';
@@ -1,9 +1,5 @@
1
1
  'use client';
2
2
  import { jsx, Fragment } from 'react/jsx-runtime';
3
- import '@gem-sdk/core';
4
- import 'next/head';
5
- import 'react';
6
- import 'next/link';
7
3
  import Button from '../../../button/components/Button.js';
8
4
  import { composeSetting } from './common/composeSetting.js';
9
5
  import { createStyle } from '@gem-sdk/system';
package/dist/esm/index.js CHANGED
@@ -3,9 +3,8 @@ export { default as Accordion } from './accordion/components/Accordion.js';
3
3
  export { default as AccordionItem } from './accordion/components/AccordionItem.js';
4
4
  export { default as Breadcrumb } from './breadcrumb/components/Breadcrumb.js';
5
5
  export { default as breadcrumbSetting } from './breadcrumb/setting/index.js';
6
+ export { default as Button } from './button/components/Button.js';
6
7
  export { default as buttonSetting } from './button/setting/index.js';
7
- export { default as Button } from './button/components/v2/ButtonV2.js';
8
- export { default as ButtonV1 } from './button/components/Button.js';
9
8
  export { default as couponSetting } from './coupon/setting/index.js';
10
9
  export { default as Coupon } from './coupon/components/Coupon.js';
11
10
  export { default as carouselSetting } from './carousel/setting/index.js';
@@ -1,6 +1,5 @@
1
1
  'use client';
2
- export { default as ButtonV1 } from './button/components/Button.liquid.js';
3
- export { default as Button } from './button/components/v2/ButtonV2.liquid.js';
2
+ export { default as Button } from './button/components/Button.liquid.js';
4
3
  export { default as Coupon } from './coupon/components/Coupon.liquid.js';
5
4
  export { default as Col } from './grid/col/Col.liquid.js';
6
5
  export { default as Row } from './grid/row/Row.liquid.js';
@@ -11,7 +11,6 @@ const CalloutText = ({ setting = {}, styles = {}, style, builderAttrs, builderPr
11
11
  const { message } = setting;
12
12
  const wrapperClasses = createClass({
13
13
  ...getCalloutTextWrapperClasses({
14
- align,
15
14
  builderProps
16
15
  })
17
16
  });
@@ -21,7 +20,7 @@ const CalloutText = ({ setting = {}, styles = {}, style, builderAttrs, builderPr
21
20
  const textStyles = {
22
21
  ...getTextStyles(styles)
23
22
  };
24
- const wrapperStyles = createStyle(getCalloutTextStyle(style));
23
+ const wrapperStyles = createStyle(getCalloutTextStyle(style, align));
25
24
  const wrapperAttrs = createAttr({
26
25
  ...builderAttrs
27
26
  });
@@ -1,13 +1,10 @@
1
1
  import { composeClasses } from '@gem-sdk/core';
2
2
 
3
- const getCalloutTextWrapperClasses = ({ align, builderProps })=>{
3
+ const getCalloutTextWrapperClasses = ({ builderProps })=>{
4
4
  let classList = 'gp-flex gp-w-full';
5
5
  if (builderProps?.uid) classList += `${builderProps?.uid}`;
6
6
  return {
7
- ...composeClasses(classList),
8
- 'gp-justify-start': align === 'left',
9
- 'gp-justify-end': align === 'right',
10
- 'gp-justify-center': align === 'center'
7
+ ...composeClasses(classList)
11
8
  };
12
9
  };
13
10
  const getCalloutBoxWrapperClasses = (styles)=>{
@@ -1,8 +1,10 @@
1
+ import { makeStyleResponsive } from '@gem-sdk/core';
1
2
  import { filterTruthyStyles } from '../../../../helpers.js';
2
3
 
3
- const getCalloutTextStyle = (style)=>{
4
+ const getCalloutTextStyle = (style, align)=>{
4
5
  return filterTruthyStyles({
5
- ...style
6
+ ...style,
7
+ ...makeStyleResponsive('jc', align)
6
8
  });
7
9
  };
8
10
  const getTextStyles = (styles)=>{
@@ -162,7 +162,17 @@ const CalloutTextSettings = [
162
162
  iconName: 'gp-align-right'
163
163
  }
164
164
  ],
165
- default: 'left'
165
+ devices: {
166
+ desktop: {
167
+ default: 'left'
168
+ },
169
+ tablet: {
170
+ default: 'left'
171
+ },
172
+ mobile: {
173
+ default: 'left'
174
+ }
175
+ }
166
176
  }
167
177
  ]
168
178
  }
@@ -23,7 +23,7 @@ const useListCarousel = (props)=>{
23
23
  Array.from({
24
24
  length: itemPerRow - listItem.length
25
25
  }).forEach(()=>{
26
- temp.push({});
26
+ temp.push(null);
27
27
  });
28
28
  return temp;
29
29
  }
@@ -39,7 +39,10 @@ const useProductImagePostPurchase = (props)=>{
39
39
  ratioLayoutRight
40
40
  ]);
41
41
  const isImageListCarousel = useMemo(()=>{
42
- return layoutType !== 'two-col' && ([
42
+ return ![
43
+ 'two-col',
44
+ 'one-col'
45
+ ].includes(layoutType) && ([
43
46
  'left',
44
47
  'right'
45
48
  ].includes(layoutType) || displayType === 'slider');
@@ -200,13 +200,26 @@ const SettingV2 = [
200
200
  },
201
201
  {
202
202
  id: 'ftWidth',
203
- type: 'input:unit',
203
+ type: 'dropdown:input',
204
204
  label: 'Width',
205
- min: 0,
206
205
  units: [
207
206
  'px',
208
207
  '%'
209
208
  ],
209
+ hideUnit: false,
210
+ inputType: 'number',
211
+ displayOptions: [
212
+ {
213
+ label: 'Full',
214
+ value: '100%',
215
+ showValue: true
216
+ },
217
+ {
218
+ label: 'Default',
219
+ value: '1200px',
220
+ showValue: true
221
+ }
222
+ ],
210
223
  devices: {
211
224
  desktop: {
212
225
  default: '100%'
@@ -222,7 +222,9 @@ const SettingUIV2 = [
222
222
  id: 'align'
223
223
  },
224
224
  options: {
225
- labelVariant: 'primary'
225
+ labelVariant: 'primary',
226
+ fullWidth: true,
227
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
226
228
  },
227
229
  conditionEnable: '!(parseInt(ftWidth) >= 100 && ftWidth?.includes("%"))'
228
230
  }
@@ -13,7 +13,7 @@ const postPurchaseSpacing = [
13
13
  },
14
14
  {
15
15
  label: 'Default',
16
- value: undefined,
16
+ value: 'none',
17
17
  displayValue: '14px',
18
18
  showValue: true
19
19
  },
@@ -1,9 +1,6 @@
1
1
  'use client';
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import Button from '../../../button/components/v2/ButtonV2.js';
4
- import '@gem-sdk/core';
5
- import 'next/link';
6
- import 'react';
3
+ import Button from '../../../button/components/Button.js';
7
4
 
8
5
  const DynamicCheckout = ({ builderProps, builderAttrs, style, styles, advanced, setting })=>{
9
6
  const { ...buttonStyles } = styles ?? {};
@@ -1,9 +1,6 @@
1
1
  'use client';
2
2
  import { jsx, Fragment } from 'react/jsx-runtime';
3
- import Button from '../../button/components/v2/ButtonV2.js';
4
- import '@gem-sdk/core';
5
- import 'next/link';
6
- import 'react';
3
+ import Button from '../../button/components/Button.js';
7
4
 
8
5
  const DynamicCheckout = ({ builderProps, builderAttrs, style, styles, advanced, setting })=>{
9
6
  const { ...buttonStyles } = styles ?? {};
@@ -4,10 +4,10 @@ import 'react';
4
4
  import '@gem-sdk/core';
5
5
  import '@gem-sdk/system';
6
6
  import { getDynamicSourceLocales } from '../../../../../helpers.js';
7
- import 'next/head';
8
7
  import 'next/link';
9
8
  import '@gem-sdk/keen-slider/react';
10
9
  import '../../../ProductVariants/variants/index.js';
10
+ import 'next/head';
11
11
  import 'next/image';
12
12
  import 'react-youtube';
13
13
  import '../../../../../image/components/AdaptiveImage.js';
@@ -2,8 +2,7 @@
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { useStoreFront, useCurrency, useEditorMode, useCartId, useCartUI, useInteraction, useCreateCart, useAddToCart, useCurrentVariant, useQuantity, useProduct, useProductProperties, useProductStore, useHasPreSelected, useCurrentVariantInStock, getGlobalColorStateStyle, makeStyle, cls } from '@gem-sdk/core';
4
4
  import { useCallback, useMemo } from 'react';
5
- import Button from '../../button/components/v2/ButtonV2.js';
6
- import 'next/link';
5
+ import Button from '../../button/components/Button.js';
7
6
  import useNotification from '../../notification/hooks/use-notification.js';
8
7
  import '../../notification/components/Notice.js';
9
8
  import Text from '../../text/components/Text.js';
@@ -1,6 +1,6 @@
1
1
  import { splitStyle, template, makeStyleResponsive, RenderIf, isLocalEnv, baseAssetURL, makeStyle } from '@gem-sdk/core';
2
+ import Button from '../../button/components/Button.liquid.js';
2
3
  import { getInsertLinkData, getDynamicSourceLocales, getSettingPreloadData } from '../../helpers.js';
3
- import Button from '../../button/components/v2/ButtonV2.liquid.js';
4
4
  import { ProductPrice } from './ProductPrice.liquid.js';
5
5
 
6
6
  const NODE_PRICE_EMPTY = null;
@@ -1,6 +1,6 @@
1
- import { makeStyleResponsive, makeLineClamp, template, dataStringify, isSafari, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
1
+ import { makeStyleResponsive, makeLineClamp, template, dataStringify, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
2
2
  import { getSettingPreloadData } from '../../../helpers.js';
3
- import { createClass, createStyle, createAttr, createStateOrContext, LiquidIf, Liquid, If, LiquidUnless } from '@gem-sdk/system';
3
+ import { createClass, createStyle, createAttr, createStateOrContext, LiquidIf, Liquid, LiquidUnless, If } from '@gem-sdk/system';
4
4
  import { getClasses, getButtonClasses } from './common/getClasses.js';
5
5
  import { getTextStyle, getButtonStyle, getStaticCss } from './common/getStyle.js';
6
6
  import { ICON_SVG } from './common/const.js';
@@ -41,7 +41,7 @@ const ProductDescription = (props)=>{
41
41
  const textAttr = createAttr({
42
42
  'data-gp-text': ''
43
43
  });
44
- const { gpDescriptionCss, textDescriptionCss } = getStaticCss();
44
+ const { textDescriptionCss } = getStaticCss();
45
45
  const noDescriptionHtml = 'product.description == blank';
46
46
  const renderScript = ()=>{
47
47
  const jsURL = isLocalEnv ? `{{ 'gp-product-description-v2.js' | asset_url }}` : `${baseAssetURL}/assets-v2/gp-product-description-v2.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;
@@ -63,7 +63,6 @@ const ProductDescription = (props)=>{
63
63
  class="${gpDescriptionClasses}"
64
64
  gp-data='${dataStringify(stateData).replaceAll("'", ''')}'>
65
65
  <style>${textDescriptionCss}</style>
66
- ${If(!isSafari(), `<style>${gpDescriptionCss}</style>`, ' ')}
67
66
  ${LiquidUnless('product', `<p>Product not found</p>`, template`<${Tag} ${textAttr} class="${textClasses}" style="${textStyle}">
68
67
  {{product.description}}
69
68
  </${Tag}>
@@ -1,9 +1,6 @@
1
1
  'use client';
2
2
  import { jsx, Fragment } from 'react/jsx-runtime';
3
- import Button from '../../button/components/v2/ButtonV2.js';
4
- import '@gem-sdk/core';
5
- import 'next/link';
6
- import 'react';
3
+ import Button from '../../button/components/Button.js';
7
4
 
8
5
  const ProductViewMore = ({ setting, builderProps, builderAttrs, style, styles, advanced, children })=>{
9
6
  const { ...buttonStyles } = styles ?? {};
@@ -1,6 +1,6 @@
1
1
  import { template, makeStyleResponsive, RenderIf, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
2
+ import Button from '../../button/components/Button.liquid.js';
2
3
  import { getSettingPreloadData } from '../../helpers.js';
3
- import Button from '../../button/components/v2/ButtonV2.liquid.js';
4
4
 
5
5
  const ProductViewMore = ({ setting, builderProps, builderAttrs, style, styles, advanced, pageContext })=>{
6
6
  const { ...buttonStyles } = styles ?? {};
@@ -5,16 +5,16 @@ import '@gem-sdk/core';
5
5
  import textSetting from './text/setting/index.js';
6
6
  import '@gem-sdk/system';
7
7
  import breadcrumbSetting from './breadcrumb/setting/index.js';
8
- import buttonSetting from './button/setting/index.js';
9
- import 'next/head';
10
8
  import linkSetting from './link/setting/index.js';
11
9
  import 'next/link';
10
+ import buttonSetting from './button/setting/index.js';
12
11
  import couponSetting from './coupon/setting/index.js';
13
12
  import carouselSetting from './carousel/setting/index.js';
14
13
  import '@gem-sdk/keen-slider/react';
15
14
  import './product/components/ProductVariants/variants/index.js';
16
15
  import cartSetting from './cart/setting/index.js';
17
16
  import gridSetting from './grid/setting/index.js';
17
+ import 'next/head';
18
18
  import 'next/image';
19
19
  import 'react-youtube';
20
20
  import imageSetting from './image/setting/index.js';
@@ -26,7 +26,7 @@ const getTextClasses = ({ styles, setting, className, mode })=>{
26
26
  const { text, options } = setting ?? {};
27
27
  let classList = '';
28
28
  if (!text) {
29
- classList += `gp-relative empty:gp-pl-[2px] after:gp-content-['Your_custom_text_goes_here'] after:gp-absolute after:gp-select-none after:gp-top-0 after:gp-left-[2px] after:gp-w-full after:gp-truncate after:gp-text-black after:gp-opacity-20`;
29
+ classList += `gp-relative empty:gp-pl-[2px] after:gp-content-['Your_custom_text_goes_here'] after:gp-absolute after:gp-select-none after:gp-top-0 after:gp-left-[2px] after:gp-w-full after:gp-truncate after:gp-text-black after:gp-opacity-20 `;
30
30
  }
31
31
  if (styles?.underlineLink) {
32
32
  classList += `${styles.underlineLink.hover ? 'hover:gp-underline' : ''} ${styles.underlineLink.normal ? 'gp-underline' : ''}`;
@@ -1,9 +1,4 @@
1
1
  'use client';
2
- import 'react/jsx-runtime';
3
- import '@gem-sdk/core';
4
- import 'next/head';
5
- import 'react';
6
- import 'next/link';
7
2
  import Button from '../../button/components/Button.js';
8
3
 
9
4
  const PushOwl = Button;