@gem-sdk/components 2.0.0-dev.275 → 2.0.0-dev.277
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.
- package/dist/cjs/article/components/ArticleReadMore.js +2 -4
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +4 -4
- package/dist/cjs/builder.js +4 -8
- package/dist/cjs/button/components/Button.js +111 -184
- package/dist/cjs/button/components/Button.liquid.js +108 -171
- package/dist/cjs/button/components/ButtonIcon.js +17 -0
- package/dist/cjs/button/components/ButtonIcon.liquid.js +16 -0
- package/dist/cjs/button/components/ButtonLabel.js +18 -0
- package/dist/cjs/button/components/ButtonLabel.liquid.js +15 -0
- package/dist/cjs/button/components/ButtonLoadingIndicator.liquid.js +12 -0
- package/dist/cjs/button/components/common/attributes.js +15 -0
- package/dist/cjs/button/components/common/classes.js +55 -0
- package/dist/cjs/button/components/common/constants.js +26 -0
- package/dist/cjs/button/components/common/data.js +76 -0
- package/dist/cjs/button/components/common/helpers.js +131 -0
- package/dist/cjs/button/components/common/styles.js +157 -0
- package/dist/cjs/button/next.js +2 -6
- package/dist/cjs/button/setting/configs/settings.js +5 -1
- package/dist/cjs/cart/components/CheckoutNow.js +0 -2
- package/dist/cjs/coupon/components/Coupon.js +1 -3
- package/dist/cjs/dialog/setting/Dialog.js +7 -580
- package/dist/cjs/dialog/setting/configs/settings.js +325 -0
- package/dist/cjs/dialog/setting/configs/uiV1.js +288 -0
- package/dist/cjs/dialog/setting/configs/uiV2.js +258 -0
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +3 -3
- package/dist/cjs/form/components/submit-button/SubmitButton.js +0 -4
- package/dist/cjs/index.js +2 -4
- package/dist/cjs/index.liquid.js +1 -3
- package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.js +2 -5
- package/dist/cjs/product/components/DynamicCheckout.js +2 -5
- package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/cjs/product/components/ProductButton.js +2 -3
- package/dist/cjs/product/components/ProductButton.liquid.js +3 -3
- package/dist/cjs/product/components/ProductDescription/index.liquid.js +1 -2
- package/dist/cjs/product/components/ProductViewMore.js +2 -5
- package/dist/cjs/product/components/ProductViewMore.liquid.js +2 -2
- package/dist/cjs/setting.js +2 -2
- package/dist/cjs/text/components/common/getClasses.js +1 -1
- package/dist/cjs/third-party/components/PushOwl.js +0 -5
- package/dist/esm/article/components/ArticleReadMore.js +1 -3
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +4 -4
- package/dist/esm/builder.js +1 -5
- package/dist/esm/button/components/Button.js +113 -186
- package/dist/esm/button/components/Button.liquid.js +109 -172
- package/dist/esm/button/components/ButtonIcon.js +13 -0
- package/dist/esm/button/components/ButtonIcon.liquid.js +12 -0
- package/dist/esm/button/components/ButtonLabel.js +14 -0
- package/dist/esm/button/components/ButtonLabel.liquid.js +11 -0
- package/dist/esm/button/components/ButtonLoadingIndicator.liquid.js +8 -0
- package/dist/esm/button/components/common/attributes.js +13 -0
- package/dist/esm/button/components/common/classes.js +49 -0
- package/dist/esm/button/components/common/constants.js +24 -0
- package/dist/esm/button/components/common/data.js +74 -0
- package/dist/esm/button/components/common/helpers.js +118 -0
- package/dist/esm/button/components/common/styles.js +148 -0
- package/dist/esm/button/next.js +2 -6
- package/dist/esm/button/setting/configs/settings.js +5 -1
- package/dist/esm/cart/components/CheckoutNow.js +0 -2
- package/dist/esm/coupon/components/Coupon.js +1 -3
- package/dist/esm/dialog/setting/Dialog.js +7 -580
- package/dist/esm/dialog/setting/configs/settings.js +323 -0
- package/dist/esm/dialog/setting/configs/uiV1.js +286 -0
- package/dist/esm/dialog/setting/configs/uiV2.js +256 -0
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +3 -3
- package/dist/esm/form/components/submit-button/SubmitButton.js +0 -4
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.liquid.js +1 -2
- package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.js +1 -4
- package/dist/esm/product/components/DynamicCheckout.js +1 -4
- package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/esm/product/components/ProductButton.js +1 -2
- package/dist/esm/product/components/ProductButton.liquid.js +1 -1
- package/dist/esm/product/components/ProductDescription/index.liquid.js +3 -4
- package/dist/esm/product/components/ProductViewMore.js +1 -4
- package/dist/esm/product/components/ProductViewMore.liquid.js +1 -1
- package/dist/esm/setting.js +2 -2
- package/dist/esm/text/components/common/getClasses.js +1 -1
- package/dist/esm/third-party/components/PushOwl.js +0 -5
- package/dist/types/index.d.ts +174 -266
- package/package.json +2 -2
- package/dist/cjs/button/components/v2/ButtonIcon.js +0 -18
- package/dist/cjs/button/components/v2/ButtonLabel.js +0 -25
- package/dist/cjs/button/components/v2/ButtonV2.js +0 -140
- package/dist/cjs/button/components/v2/ButtonV2.liquid.js +0 -181
- package/dist/cjs/button/hooks/useButtonCustomCss.js +0 -88
- package/dist/cjs/button/hooks/useButtonStyles.js +0 -93
- package/dist/esm/button/components/v2/ButtonIcon.js +0 -14
- package/dist/esm/button/components/v2/ButtonLabel.js +0 -21
- package/dist/esm/button/components/v2/ButtonV2.js +0 -136
- package/dist/esm/button/components/v2/ButtonV2.liquid.js +0 -177
- package/dist/esm/button/hooks/useButtonCustomCss.js +0 -84
- package/dist/esm/button/hooks/useButtonStyles.js +0 -91
- /package/dist/cjs/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
- /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';
|
package/dist/esm/index.liquid.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { default as
|
|
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';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import Button from '../../../button/components/
|
|
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/
|
|
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/
|
|
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,
|
|
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,
|
|
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 {
|
|
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/
|
|
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 ?? {};
|
package/dist/esm/setting.js
CHANGED
|
@@ -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' : ''}`;
|