@gem-sdk/components 2.0.0-dev.274 → 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 +5 -5
- package/dist/cjs/builder.js +17 -21
- 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/cart/components/ShopPayButton/ShopPayButton.js +70 -0
- package/dist/cjs/cart/components/ShopPayButton/ShopPayButton.liquid.js +71 -0
- package/dist/cjs/cart/components/ShopPayButton/common/classes.js +18 -0
- package/dist/cjs/cart/components/ShopPayButton/common/helpers.js +31 -0
- package/dist/cjs/cart/components/ShopPayButton/common/styles.js +12 -0
- package/dist/cjs/cart/components/ShopPayButton/hooks/useShopPayButton.js +70 -0
- package/dist/cjs/cart/next.js +1 -1
- 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 +4 -4
- package/dist/cjs/form/components/submit-button/SubmitButton.js +0 -4
- package/dist/cjs/header/components/kind/basic/index.js +1 -1
- package/dist/cjs/header/components/kind/modern/index.js +1 -1
- package/dist/cjs/index.js +41 -43
- package/dist/cjs/index.liquid.js +10 -12
- package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.js +25 -0
- package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.liquid.js +23 -0
- package/dist/cjs/product/components/DynamicCheckout/common/classes.js +32 -0
- package/dist/cjs/product/components/DynamicCheckout/common/styles.js +181 -0
- package/dist/cjs/product/components/DynamicCheckout/components/Button.liquid.js +58 -0
- package/dist/cjs/product/components/DynamicCheckout.js +2 -5
- package/dist/cjs/product/components/FileUpload/components/common/index.js +2 -2
- 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/common/const.js +9 -0
- package/dist/cjs/product/components/ProductDescription/common/getClasses.js +30 -0
- package/dist/cjs/product/components/ProductDescription/common/getStyle.js +81 -0
- package/dist/cjs/product/components/ProductDescription/hooks/useGpDescription.js +90 -0
- package/dist/cjs/product/components/ProductDescription/index.js +115 -0
- package/dist/cjs/product/components/ProductDescription/index.liquid.js +85 -0
- package/dist/cjs/product/components/ProductViewMore.js +2 -5
- package/dist/cjs/product/components/ProductViewMore.liquid.js +2 -2
- package/dist/cjs/product/next.js +1 -1
- package/dist/cjs/setting.js +3 -3
- 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 +5 -5
- package/dist/esm/builder.js +4 -8
- 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/cart/components/ShopPayButton/ShopPayButton.js +66 -0
- package/dist/esm/cart/components/ShopPayButton/ShopPayButton.liquid.js +67 -0
- package/dist/esm/cart/components/ShopPayButton/common/classes.js +15 -0
- package/dist/esm/cart/components/ShopPayButton/common/helpers.js +27 -0
- package/dist/esm/cart/components/ShopPayButton/common/styles.js +10 -0
- package/dist/esm/cart/components/ShopPayButton/hooks/useShopPayButton.js +68 -0
- package/dist/esm/cart/next.js +1 -1
- 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 +4 -4
- package/dist/esm/form/components/submit-button/SubmitButton.js +0 -4
- package/dist/esm/header/components/kind/basic/index.js +1 -1
- package/dist/esm/header/components/kind/modern/index.js +1 -1
- package/dist/esm/index.js +4 -5
- package/dist/esm/index.liquid.js +4 -5
- package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.js +21 -0
- package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.liquid.js +19 -0
- package/dist/esm/product/components/DynamicCheckout/common/classes.js +30 -0
- package/dist/esm/product/components/DynamicCheckout/common/styles.js +179 -0
- package/dist/esm/product/components/DynamicCheckout/components/Button.liquid.js +54 -0
- package/dist/esm/product/components/DynamicCheckout.js +1 -4
- package/dist/esm/product/components/FileUpload/components/common/index.js +2 -2
- 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/common/const.js +6 -0
- package/dist/esm/product/components/ProductDescription/common/getClasses.js +27 -0
- package/dist/esm/product/components/ProductDescription/common/getStyle.js +77 -0
- package/dist/esm/product/components/ProductDescription/hooks/useGpDescription.js +88 -0
- package/dist/esm/product/components/ProductDescription/index.js +111 -0
- package/dist/esm/product/components/ProductDescription/index.liquid.js +81 -0
- package/dist/esm/product/components/ProductViewMore.js +1 -4
- package/dist/esm/product/components/ProductViewMore.liquid.js +1 -1
- package/dist/esm/product/next.js +1 -1
- package/dist/esm/setting.js +3 -3
- 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 +200 -360
- 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/cjs/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -20
- package/dist/cjs/cart/components/ShopPayButton/index.js +0 -113
- package/dist/cjs/cart/components/ShopPayButton/index.liquid.js +0 -51
- package/dist/cjs/product/components/DynamicCheckout.liquid.js +0 -250
- package/dist/cjs/product/components/ProductDescription/const.js +0 -5
- package/dist/cjs/product/components/ProductDescription.js +0 -172
- package/dist/cjs/product/components/ProductDescription.liquid.js +0 -120
- 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/esm/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -17
- package/dist/esm/cart/components/ShopPayButton/index.js +0 -109
- package/dist/esm/cart/components/ShopPayButton/index.liquid.js +0 -47
- package/dist/esm/product/components/DynamicCheckout.liquid.js +0 -246
- package/dist/esm/product/components/ProductDescription/const.js +0 -3
- package/dist/esm/product/components/ProductDescription.js +0 -168
- package/dist/esm/product/components/ProductDescription.liquid.js +0 -116
- /package/dist/cjs/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
- /package/dist/cjs/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
- /package/dist/esm/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
- /package/dist/esm/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const SettingUIV2 = [
|
|
4
|
+
{
|
|
5
|
+
label: {
|
|
6
|
+
en: 'Popup Name'
|
|
7
|
+
},
|
|
8
|
+
controls: [
|
|
9
|
+
{
|
|
10
|
+
label: {
|
|
11
|
+
en: 'Name'
|
|
12
|
+
},
|
|
13
|
+
setting: {
|
|
14
|
+
id: 'name'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: {
|
|
21
|
+
en: 'Button close'
|
|
22
|
+
},
|
|
23
|
+
controls: [
|
|
24
|
+
{
|
|
25
|
+
label: {
|
|
26
|
+
en: 'Button size'
|
|
27
|
+
},
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'btnSize'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: {
|
|
34
|
+
en: 'Background'
|
|
35
|
+
},
|
|
36
|
+
setting: {
|
|
37
|
+
id: 'btnBg'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
moreSettings: {
|
|
42
|
+
controls: [
|
|
43
|
+
{
|
|
44
|
+
setting: {
|
|
45
|
+
id: 'closeButtonPosition'
|
|
46
|
+
},
|
|
47
|
+
label: {
|
|
48
|
+
en: 'Position'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: {
|
|
53
|
+
en: 'Color'
|
|
54
|
+
},
|
|
55
|
+
setting: {
|
|
56
|
+
id: 'btnColor'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: {
|
|
61
|
+
en: 'Corner'
|
|
62
|
+
},
|
|
63
|
+
setting: {
|
|
64
|
+
id: 'btnRounded'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
controls: [
|
|
72
|
+
{
|
|
73
|
+
label: {
|
|
74
|
+
en: 'Overlay'
|
|
75
|
+
},
|
|
76
|
+
setting: {
|
|
77
|
+
id: 'isOverlay'
|
|
78
|
+
},
|
|
79
|
+
options: {
|
|
80
|
+
labelVariant: 'primary',
|
|
81
|
+
toggleStyle: 'switch'
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
conditionDisplay: `isOverlay === true`,
|
|
86
|
+
label: {
|
|
87
|
+
en: 'Color'
|
|
88
|
+
},
|
|
89
|
+
setting: {
|
|
90
|
+
id: 'overlayColor'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
conditionDisplay: `isOverlay === true`,
|
|
95
|
+
label: {
|
|
96
|
+
en: 'Click to close'
|
|
97
|
+
},
|
|
98
|
+
setting: {
|
|
99
|
+
id: 'closeOnClickOutside'
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
conditionDisplay: `isOverlay === true`,
|
|
104
|
+
label: {
|
|
105
|
+
en: 'Opacity'
|
|
106
|
+
},
|
|
107
|
+
setting: {
|
|
108
|
+
id: 'overlayOpacity'
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
label: {
|
|
115
|
+
en: 'Size'
|
|
116
|
+
},
|
|
117
|
+
controls: [
|
|
118
|
+
{
|
|
119
|
+
label: {
|
|
120
|
+
en: 'Full screen'
|
|
121
|
+
},
|
|
122
|
+
setting: {
|
|
123
|
+
id: 'fullScreen'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
conditionDisplay: `!fullScreen`,
|
|
128
|
+
label: {
|
|
129
|
+
en: 'Width'
|
|
130
|
+
},
|
|
131
|
+
setting: {
|
|
132
|
+
id: 'width'
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
conditionDisplay: `!fullScreen`,
|
|
137
|
+
label: {
|
|
138
|
+
en: 'Height'
|
|
139
|
+
},
|
|
140
|
+
setting: {
|
|
141
|
+
id: 'height'
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
label: {
|
|
148
|
+
en: 'Background'
|
|
149
|
+
},
|
|
150
|
+
controls: [
|
|
151
|
+
{
|
|
152
|
+
setting: {
|
|
153
|
+
id: 'background'
|
|
154
|
+
},
|
|
155
|
+
layout: 'vertical'
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
label: {
|
|
161
|
+
en: 'Position'
|
|
162
|
+
},
|
|
163
|
+
controls: [
|
|
164
|
+
{
|
|
165
|
+
label: {
|
|
166
|
+
en: 'Choose'
|
|
167
|
+
},
|
|
168
|
+
type: 'combo',
|
|
169
|
+
iconPrefix: 'gp-position',
|
|
170
|
+
iconName: 'polaris-edit',
|
|
171
|
+
isHideClear: true,
|
|
172
|
+
getValueFromSettingID: 'position',
|
|
173
|
+
controls: [
|
|
174
|
+
{
|
|
175
|
+
label: {
|
|
176
|
+
en: 'Choose'
|
|
177
|
+
},
|
|
178
|
+
setting: {
|
|
179
|
+
id: 'position'
|
|
180
|
+
},
|
|
181
|
+
options: {
|
|
182
|
+
labelAlign: 'top'
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
conditionDisplay: `!fullScreen`
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
label: {
|
|
192
|
+
en: 'Display'
|
|
193
|
+
},
|
|
194
|
+
controls: [
|
|
195
|
+
{
|
|
196
|
+
label: {
|
|
197
|
+
en: 'Show when'
|
|
198
|
+
},
|
|
199
|
+
setting: {
|
|
200
|
+
id: 'trigger'
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
conditionDisplay: `trigger === 'show-after-time'`,
|
|
205
|
+
label: {
|
|
206
|
+
en: 'Time'
|
|
207
|
+
},
|
|
208
|
+
setting: {
|
|
209
|
+
id: 'triggerTime'
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
conditionDisplay: `trigger === 'show-after-scroll'`,
|
|
214
|
+
label: {
|
|
215
|
+
en: 'Scroll'
|
|
216
|
+
},
|
|
217
|
+
setting: {
|
|
218
|
+
id: 'triggerPercentage'
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
conditionDisplay: `trigger === 'show-when-about-exit'`,
|
|
223
|
+
label: {
|
|
224
|
+
en: 'On mobile'
|
|
225
|
+
},
|
|
226
|
+
setting: {
|
|
227
|
+
id: 'mobileTrigger'
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
conditionDisplay: `trigger === 'show-when-about-exit' && mobileTrigger === 'timer'`,
|
|
232
|
+
label: {
|
|
233
|
+
en: 'After load'
|
|
234
|
+
},
|
|
235
|
+
setting: {
|
|
236
|
+
id: 'mobileTriggerTime'
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
label: {
|
|
243
|
+
en: 'Effect'
|
|
244
|
+
},
|
|
245
|
+
controls: [
|
|
246
|
+
{
|
|
247
|
+
setting: {
|
|
248
|
+
id: 'effectType'
|
|
249
|
+
},
|
|
250
|
+
label: {
|
|
251
|
+
en: 'Entrance effect'
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
];
|
|
257
|
+
|
|
258
|
+
exports.SettingUIV2 = SettingUIV2;
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var core = require('@gem-sdk/core');
|
|
6
|
-
var helpers = require('../../helpers.js');
|
|
7
6
|
require('@gem-sdk/system');
|
|
7
|
+
var helpers = require('../../helpers.js');
|
|
8
8
|
require('react/jsx-runtime');
|
|
9
9
|
require('react');
|
|
10
|
+
require('next/link');
|
|
10
11
|
require('../../product/components/ProductVariants/variants/index.js');
|
|
11
12
|
var Text_liquid = require('../../text/components/Text.liquid.js');
|
|
12
13
|
require('../../product/components/ProductBadge/constants.js');
|
|
@@ -14,13 +15,12 @@ require('../../product/components/constants/product-bundle.js');
|
|
|
14
15
|
require('../../product/components/ProductBadge/types.js');
|
|
15
16
|
require('../../product/components/ProductBadge/utils/shape.js');
|
|
16
17
|
require('../../accordion/setting/configs/settings.js');
|
|
17
|
-
require('next/head');
|
|
18
|
-
require('next/link');
|
|
19
18
|
require('@gem-sdk/keen-slider/react');
|
|
19
|
+
require('next/head');
|
|
20
20
|
require('next/image');
|
|
21
21
|
require('react-youtube');
|
|
22
22
|
require('../../image/components/AdaptiveImage.js');
|
|
23
|
-
require('../../cart/components/ShopPayButton/
|
|
23
|
+
require('../../cart/components/ShopPayButton/ShopPayButton.js');
|
|
24
24
|
require('../../countdown-timer/setting/configs/settings.js');
|
|
25
25
|
require('../../header/components/Header.js');
|
|
26
26
|
require('../../header/components/kind/basic/index.js');
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
require('@gem-sdk/core');
|
|
8
|
-
require('next/head');
|
|
9
|
-
require('react');
|
|
10
|
-
require('next/link');
|
|
11
7
|
var Button = require('../../../button/components/Button.js');
|
|
12
8
|
var composeSetting = require('./common/composeSetting.js');
|
|
13
9
|
var system = require('@gem-sdk/system');
|
|
@@ -13,7 +13,7 @@ require('next/head');
|
|
|
13
13
|
require('next/image');
|
|
14
14
|
require('react-youtube');
|
|
15
15
|
var Image = require('../../../../image/components/Image.js');
|
|
16
|
-
require('../../../../cart/components/ShopPayButton/
|
|
16
|
+
require('../../../../cart/components/ShopPayButton/ShopPayButton.js');
|
|
17
17
|
var CheckoutNow = require('../../../../cart/components/CheckoutNow.js');
|
|
18
18
|
|
|
19
19
|
const MobileMenu = dynamic(()=>Promise.resolve().then(function () { return require('./MobileMenu.js'); }));
|
|
@@ -13,7 +13,7 @@ require('next/image');
|
|
|
13
13
|
require('react-youtube');
|
|
14
14
|
require('next/link');
|
|
15
15
|
require('../../../../image/components/AdaptiveImage.js');
|
|
16
|
-
require('../../../../cart/components/ShopPayButton/
|
|
16
|
+
require('../../../../cart/components/ShopPayButton/ShopPayButton.js');
|
|
17
17
|
|
|
18
18
|
const ModernHeader = (props)=>{
|
|
19
19
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
package/dist/cjs/index.js
CHANGED
|
@@ -5,15 +5,14 @@ var Accordion = require('./accordion/components/Accordion.js');
|
|
|
5
5
|
var AccordionItem = require('./accordion/components/AccordionItem.js');
|
|
6
6
|
var Breadcrumb = require('./breadcrumb/components/Breadcrumb.js');
|
|
7
7
|
var index$1 = require('./breadcrumb/setting/index.js');
|
|
8
|
-
var index$2 = require('./button/setting/index.js');
|
|
9
|
-
var ButtonV2 = require('./button/components/v2/ButtonV2.js');
|
|
10
8
|
var Button = require('./button/components/Button.js');
|
|
9
|
+
var index$2 = require('./button/setting/index.js');
|
|
11
10
|
var index$3 = require('./coupon/setting/index.js');
|
|
12
11
|
var Coupon = require('./coupon/components/Coupon.js');
|
|
13
12
|
var index$4 = require('./carousel/setting/index.js');
|
|
14
13
|
var Carousel = require('./carousel/components/Carousel.js');
|
|
15
14
|
var CarouselItem = require('./carousel/components/CarouselItem.js');
|
|
16
|
-
var index$
|
|
15
|
+
var index$5 = require('./cart/setting/index.js');
|
|
17
16
|
var CartLineVariant = require('./cart/components/CartLineVariant.js');
|
|
18
17
|
var Cart = require('./cart/components/Cart.js');
|
|
19
18
|
var CartList = require('./cart/components/CartList.js');
|
|
@@ -27,50 +26,50 @@ var CartDiscount = require('./cart/components/CartDiscount.js');
|
|
|
27
26
|
var CartOrderNote = require('./cart/components/CartOrderNote.js');
|
|
28
27
|
var CartLineAttribute = require('./cart/components/CartLineAttribute.js');
|
|
29
28
|
var CouponList = require('./cart/components/CouponList.js');
|
|
30
|
-
var
|
|
29
|
+
var ShopPayButton = require('./cart/components/ShopPayButton/ShopPayButton.js');
|
|
31
30
|
var CheckoutNow = require('./cart/components/CheckoutNow.js');
|
|
32
|
-
var index$
|
|
31
|
+
var index$6 = require('./collection/setting/index.js');
|
|
33
32
|
var CollectionTitle = require('./collection/components/CollectionTitle.js');
|
|
34
33
|
var CollectionBanner = require('./collection/components/CollectionBanner.js');
|
|
35
34
|
var CollectionDescription = require('./collection/components/CollectionDescription.js');
|
|
36
35
|
var CollectionToolbar = require('./collection/components/CollectionToolbar.js');
|
|
37
36
|
var CollectionPaginator = require('./collection/components/CollectionPaginator.js');
|
|
38
|
-
var index$
|
|
37
|
+
var index$7 = require('./countdown-timer/setting/index.js');
|
|
39
38
|
var Countdown = require('./countdown-timer/components/Countdown.js');
|
|
40
|
-
var index$
|
|
39
|
+
var index$8 = require('./grid/setting/index.js');
|
|
41
40
|
var Col = require('./grid/col/Col.js');
|
|
42
41
|
var Row = require('./grid/row/Row.js');
|
|
43
42
|
var Section = require('./grid/section/Section.js');
|
|
44
43
|
var Root = require('./grid/components/Root.js');
|
|
45
|
-
var index$
|
|
44
|
+
var index$9 = require('./heading/setting/index.js');
|
|
46
45
|
var Heading = require('./heading/Heading.js');
|
|
47
|
-
var index$
|
|
46
|
+
var index$c = require('./header/setting/index.js');
|
|
48
47
|
var Header = require('./header/components/Header.js');
|
|
49
|
-
var index$
|
|
50
|
-
var index$
|
|
48
|
+
var index$a = require('./header/components/kind/basic/index.js');
|
|
49
|
+
var index$b = require('./header/components/kind/modern/index.js');
|
|
51
50
|
var MobileMenu = require('./header/components/kind/basic/MobileMenu.js');
|
|
52
51
|
var DesktopMenu = require('./header/components/kind/basic/DesktopMenu.js');
|
|
53
|
-
var index$
|
|
52
|
+
var index$d = require('./icon/setting/index.js');
|
|
54
53
|
var Icon = require('./icon/components/Icon.js');
|
|
55
|
-
var index$
|
|
54
|
+
var index$e = require('./image/setting/index.js');
|
|
56
55
|
var Image = require('./image/components/Image.js');
|
|
57
56
|
var BackgroundImage = require('./image/components/BackgroundImage.js');
|
|
58
|
-
var index$
|
|
57
|
+
var index$f = require('./input/setting/index.js');
|
|
59
58
|
var Input = require('./input/Input.js');
|
|
60
|
-
var index$
|
|
59
|
+
var index$g = require('./line/setting/index.js');
|
|
61
60
|
var Line = require('./line/Line.js');
|
|
62
|
-
var index$
|
|
61
|
+
var index$h = require('./link/setting/index.js');
|
|
63
62
|
var Link = require('./link/components/Link.js');
|
|
64
|
-
var index$
|
|
63
|
+
var index$i = require('./modal/setting/index.js');
|
|
65
64
|
var confirm = require('./modal/components/confirm.js');
|
|
66
65
|
var Modal = require('./modal/components/Modal.js');
|
|
67
|
-
var index$
|
|
66
|
+
var index$j = require('./pagination/setting/index.js');
|
|
68
67
|
var Pagination = require('./pagination/Pagination.js');
|
|
69
68
|
var index$p = require('./product/setting/index.js');
|
|
70
69
|
var Product = require('./product/components/Product.js');
|
|
71
|
-
var index$
|
|
70
|
+
var index$k = require('./product/components/ProductTitle/index.js');
|
|
72
71
|
var ProductQuantity = require('./product/components/ProductQuantity.js');
|
|
73
|
-
var
|
|
72
|
+
var index$l = require('./product/components/ProductDescription/index.js');
|
|
74
73
|
var ProductPrice = require('./product/components/ProductPrice.js');
|
|
75
74
|
var ProductButton = require('./product/components/ProductButton.js');
|
|
76
75
|
var index$m = require('./product/components/ProductVariants/index.js');
|
|
@@ -80,7 +79,7 @@ var ProductProperties = require('./product/components/ProductProperties.js');
|
|
|
80
79
|
var index$n = require('./product/components/ProductQuickView/index.js');
|
|
81
80
|
var ProductTag = require('./product/components/ProductTag.js');
|
|
82
81
|
var ProductList = require('./product/components/ProductList.js');
|
|
83
|
-
var DynamicCheckout = require('./product/components/DynamicCheckout.js');
|
|
82
|
+
var DynamicCheckout = require('./product/components/DynamicCheckout/DynamicCheckout.js');
|
|
84
83
|
var ProductBundleDiscount = require('./product/components/ProductBundleDiscount.js');
|
|
85
84
|
var ProductBundleDiscountItem = require('./product/components/ProductBundleDiscountItem.js');
|
|
86
85
|
var Vendor = require('./product/components/Vendor.js');
|
|
@@ -269,7 +268,7 @@ var product2Col = require('./post-purchase/product/settings/presets-config/produ
|
|
|
269
268
|
var productDefault = require('./post-purchase/product/settings/presets-config/product-presets/product-default.js');
|
|
270
269
|
var index$R = require('./post-purchase/product/settings/index.js');
|
|
271
270
|
var ProductTitle = require('./post-purchase/product/components/ProductTitle.js');
|
|
272
|
-
var ProductDescription
|
|
271
|
+
var ProductDescription = require('./post-purchase/product/components/ProductDescription.js');
|
|
273
272
|
var ProductPrice$1 = require('./post-purchase/product/components/ProductPrice.js');
|
|
274
273
|
var AcceptButton = require('./post-purchase/product/components/AcceptButton.js');
|
|
275
274
|
var ProductQuantity$1 = require('./post-purchase/product/components/ProductQuantity.js');
|
|
@@ -326,15 +325,14 @@ exports.Accordion = Accordion.default;
|
|
|
326
325
|
exports.AccordionItem = AccordionItem.default;
|
|
327
326
|
exports.Breadcrumb = Breadcrumb.default;
|
|
328
327
|
exports.breadcrumbSetting = index$1.default;
|
|
328
|
+
exports.Button = Button.default;
|
|
329
329
|
exports.buttonSetting = index$2.default;
|
|
330
|
-
exports.Button = ButtonV2.default;
|
|
331
|
-
exports.ButtonV1 = Button.default;
|
|
332
330
|
exports.couponSetting = index$3.default;
|
|
333
331
|
exports.Coupon = Coupon.default;
|
|
334
332
|
exports.carouselSetting = index$4.default;
|
|
335
333
|
exports.Carousel = Carousel.default;
|
|
336
334
|
exports.CarouselItem = CarouselItem.default;
|
|
337
|
-
exports.cartSetting = index$
|
|
335
|
+
exports.cartSetting = index$5.default;
|
|
338
336
|
exports.CartLineVariant = CartLineVariant.default;
|
|
339
337
|
exports.Cart = Cart.default;
|
|
340
338
|
exports.CartList = CartList.default;
|
|
@@ -348,50 +346,50 @@ exports.CartDiscount = CartDiscount.default;
|
|
|
348
346
|
exports.CartOrderNote = CartOrderNote.default;
|
|
349
347
|
exports.CartLineAttribute = CartLineAttribute.default;
|
|
350
348
|
exports.CouponList = CouponList.default;
|
|
351
|
-
exports.ShopPayButton =
|
|
349
|
+
exports.ShopPayButton = ShopPayButton.default;
|
|
352
350
|
exports.CheckoutNow = CheckoutNow.default;
|
|
353
|
-
exports.collectionSetting = index$
|
|
351
|
+
exports.collectionSetting = index$6.default;
|
|
354
352
|
exports.CollectionTitle = CollectionTitle.default;
|
|
355
353
|
exports.CollectionBanner = CollectionBanner.default;
|
|
356
354
|
exports.CollectionDescription = CollectionDescription.default;
|
|
357
355
|
exports.CollectionToolbar = CollectionToolbar.default;
|
|
358
356
|
exports.CollectionPaginator = CollectionPaginator.default;
|
|
359
|
-
exports.countdownSetting = index$
|
|
357
|
+
exports.countdownSetting = index$7.default;
|
|
360
358
|
exports.Countdown = Countdown.default;
|
|
361
|
-
exports.gridSetting = index$
|
|
359
|
+
exports.gridSetting = index$8.default;
|
|
362
360
|
exports.Col = Col.default;
|
|
363
361
|
exports.Row = Row.default;
|
|
364
362
|
exports.Section = Section.default;
|
|
365
363
|
exports.Root = Root.default;
|
|
366
|
-
exports.headingSetting = index$
|
|
364
|
+
exports.headingSetting = index$9.default;
|
|
367
365
|
exports.Heading = Heading.default;
|
|
368
|
-
exports.headerSetting = index$
|
|
366
|
+
exports.headerSetting = index$c.default;
|
|
369
367
|
exports.Header = Header.default;
|
|
370
|
-
exports.BasicHeader = index$
|
|
371
|
-
exports.ModernHeader = index$
|
|
368
|
+
exports.BasicHeader = index$a.default;
|
|
369
|
+
exports.ModernHeader = index$b.default;
|
|
372
370
|
exports.MobileMenu = MobileMenu.default;
|
|
373
371
|
exports.DesktopMenu = DesktopMenu.default;
|
|
374
|
-
exports.iconSetting = index$
|
|
372
|
+
exports.iconSetting = index$d.default;
|
|
375
373
|
exports.Icon = Icon.default;
|
|
376
|
-
exports.imageSetting = index$
|
|
374
|
+
exports.imageSetting = index$e.default;
|
|
377
375
|
exports.Image = Image.default;
|
|
378
376
|
exports.BackgroundImage = BackgroundImage.default;
|
|
379
|
-
exports.inputSetting = index$
|
|
377
|
+
exports.inputSetting = index$f.default;
|
|
380
378
|
exports.Input = Input.default;
|
|
381
|
-
exports.lineSetting = index$
|
|
379
|
+
exports.lineSetting = index$g.default;
|
|
382
380
|
exports.Line = Line.default;
|
|
383
|
-
exports.linkSetting = index$
|
|
381
|
+
exports.linkSetting = index$h.default;
|
|
384
382
|
exports.Link = Link.default;
|
|
385
|
-
exports.modalSetting = index$
|
|
383
|
+
exports.modalSetting = index$i.default;
|
|
386
384
|
exports.openConfirm = confirm.openConfirm;
|
|
387
385
|
exports.Modal = Modal.default;
|
|
388
|
-
exports.paginationSetting = index$
|
|
386
|
+
exports.paginationSetting = index$j.default;
|
|
389
387
|
exports.Pagination = Pagination.default;
|
|
390
388
|
exports.productSetting = index$p.default;
|
|
391
389
|
exports.Product = Product.default;
|
|
392
|
-
exports.ProductTitle = index$
|
|
390
|
+
exports.ProductTitle = index$k.default;
|
|
393
391
|
exports.ProductQuantity = ProductQuantity.default;
|
|
394
|
-
exports.ProductDescription =
|
|
392
|
+
exports.ProductDescription = index$l.default;
|
|
395
393
|
exports.ProductPrice = ProductPrice.default;
|
|
396
394
|
exports.ProductButton = ProductButton.default;
|
|
397
395
|
exports.ProductVariants = index$m.default;
|
|
@@ -590,7 +588,7 @@ exports.postPurchaseProduct2Col = product2Col.postPurchaseProduct2Col;
|
|
|
590
588
|
exports.postPurchaseProductDefault = productDefault.postPurchaseProductDefault;
|
|
591
589
|
exports.postPurchaseProductSetting = index$R.default;
|
|
592
590
|
exports.PostPurchaseProductTitle = ProductTitle.default;
|
|
593
|
-
exports.PostPurchaseProductDescription = ProductDescription
|
|
591
|
+
exports.PostPurchaseProductDescription = ProductDescription.default;
|
|
594
592
|
exports.PostPurchaseProductPrice = ProductPrice$1.default;
|
|
595
593
|
exports.PostPurchaseAcceptButton = AcceptButton.default;
|
|
596
594
|
exports.PostPurchaseProductQuantity = ProductQuantity$1.default;
|
package/dist/cjs/index.liquid.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var Button_liquid = require('./button/components/Button.liquid.js');
|
|
5
|
-
var ButtonV2_liquid = require('./button/components/v2/ButtonV2.liquid.js');
|
|
6
5
|
var Coupon_liquid = require('./coupon/components/Coupon.liquid.js');
|
|
7
6
|
var Col_liquid = require('./grid/col/Col.liquid.js');
|
|
8
7
|
var Row_liquid = require('./grid/row/Row.liquid.js');
|
|
@@ -14,20 +13,20 @@ var Product_liquid = require('./product/components/Product.liquid.js');
|
|
|
14
13
|
var index_liquid = require('./product/components/ProductTitle/index.liquid.js');
|
|
15
14
|
var ProductPrice_liquid = require('./product/components/ProductPrice.liquid.js');
|
|
16
15
|
var ProductButton_liquid = require('./product/components/ProductButton.liquid.js');
|
|
17
|
-
var
|
|
16
|
+
var index_liquid$1 = require('./product/components/ProductDescription/index.liquid.js');
|
|
18
17
|
var ProductImages_liquid = require('./product/components/ProductImages.liquid.js');
|
|
19
18
|
var ProductImages_liquid$1 = require('./product/components/ProductImagesV2/liquid/ProductImages.liquid.js');
|
|
20
19
|
var ProductQuantity_liquid = require('./product/components/ProductQuantity.liquid.js');
|
|
21
|
-
var index_liquid$
|
|
20
|
+
var index_liquid$2 = require('./product/components/ProductVariants/index.liquid.js');
|
|
22
21
|
var ProductTag_liquid = require('./product/components/ProductTag.liquid.js');
|
|
23
22
|
var ProductProperties_liquid = require('./product/components/ProductProperties.liquid.js');
|
|
24
23
|
var ProductList_liquid = require('./product/components/ProductList.liquid.js');
|
|
25
|
-
var DynamicCheckout_liquid = require('./product/components/DynamicCheckout.liquid.js');
|
|
24
|
+
var DynamicCheckout_liquid = require('./product/components/DynamicCheckout/DynamicCheckout.liquid.js');
|
|
26
25
|
var Vendor_liquid = require('./product/components/Vendor.liquid.js');
|
|
27
26
|
var ProductBundleDiscount_liquid = require('./product/components/ProductBundleDiscount.liquid.js');
|
|
28
27
|
var ProductBundleDiscountItem_liquid = require('./product/components/ProductBundleDiscountItem.liquid.js');
|
|
29
28
|
var ProductViewMore_liquid = require('./product/components/ProductViewMore.liquid.js');
|
|
30
|
-
var index_liquid$
|
|
29
|
+
var index_liquid$3 = require('./product/components/ProductBadge/index.liquid.js');
|
|
31
30
|
var Sku_liquid = require('./product/components/Sku.liquid.js');
|
|
32
31
|
var UploadFile_liquid = require('./product/components/FileUpload/components/UploadFile.liquid.js');
|
|
33
32
|
var Heading_liquid = require('./heading/Heading.liquid.js');
|
|
@@ -49,7 +48,7 @@ var TabItem_liquid = require('./tab/components/TabItem.liquid.js');
|
|
|
49
48
|
var HeroBanner_liquid = require('./banner/components/HeroBanner.liquid.js');
|
|
50
49
|
var CSSCode_liquid = require('./code/components/CSSCode.liquid.js');
|
|
51
50
|
var StockCounter_liquid = require('./stock-counter/components/StockCounter.liquid.js');
|
|
52
|
-
var
|
|
51
|
+
var ShopPayButton_liquid = require('./cart/components/ShopPayButton/ShopPayButton.liquid.js');
|
|
53
52
|
var Newsletter_liquid = require('./form/components/newsletter/Newsletter.liquid.js');
|
|
54
53
|
var Contact_liquid = require('./form/components/contact/Contact.liquid.js');
|
|
55
54
|
var FormEmail_liquid = require('./form/components/form-email/FormEmail.liquid.js');
|
|
@@ -198,8 +197,7 @@ var Marquee_liquid = require('./marquee/components/Marquee.liquid.js');
|
|
|
198
197
|
|
|
199
198
|
|
|
200
199
|
|
|
201
|
-
exports.
|
|
202
|
-
exports.Button = ButtonV2_liquid.default;
|
|
200
|
+
exports.Button = Button_liquid.default;
|
|
203
201
|
exports.Coupon = Coupon_liquid.default;
|
|
204
202
|
exports.Col = Col_liquid.default;
|
|
205
203
|
exports.Row = Row_liquid.default;
|
|
@@ -211,11 +209,11 @@ exports.Product = Product_liquid.default;
|
|
|
211
209
|
exports.ProductTitle = index_liquid.default;
|
|
212
210
|
exports.ProductPrice = ProductPrice_liquid.ProductPrice;
|
|
213
211
|
exports.ProductButton = ProductButton_liquid.default;
|
|
214
|
-
exports.ProductDescription =
|
|
212
|
+
exports.ProductDescription = index_liquid$1.default;
|
|
215
213
|
exports.ProductImages = ProductImages_liquid.default;
|
|
216
214
|
exports.ProductImagesV2 = ProductImages_liquid$1.default;
|
|
217
215
|
exports.ProductQuantity = ProductQuantity_liquid.default;
|
|
218
|
-
exports.ProductVariants = index_liquid$
|
|
216
|
+
exports.ProductVariants = index_liquid$2.default;
|
|
219
217
|
exports.ProductTag = ProductTag_liquid.default;
|
|
220
218
|
exports.ProductProperties = ProductProperties_liquid.default;
|
|
221
219
|
exports.ProductList = ProductList_liquid.default;
|
|
@@ -224,7 +222,7 @@ exports.ProductVendor = Vendor_liquid.default;
|
|
|
224
222
|
exports.ProductBundleDiscount = ProductBundleDiscount_liquid.default;
|
|
225
223
|
exports.ProductBundleDiscountItem = ProductBundleDiscountItem_liquid.default;
|
|
226
224
|
exports.ProductViewMore = ProductViewMore_liquid.default;
|
|
227
|
-
exports.ProductBadge = index_liquid$
|
|
225
|
+
exports.ProductBadge = index_liquid$3.default;
|
|
228
226
|
exports.ProductSku = Sku_liquid.default;
|
|
229
227
|
exports.FileUpload = UploadFile_liquid.default;
|
|
230
228
|
exports.Heading = Heading_liquid.default;
|
|
@@ -246,7 +244,7 @@ exports.TabItem = TabItem_liquid.default;
|
|
|
246
244
|
exports.HeroBanner = HeroBanner_liquid.default;
|
|
247
245
|
exports.CSSCode = CSSCode_liquid.default;
|
|
248
246
|
exports.StockCounter = StockCounter_liquid.default;
|
|
249
|
-
exports.ShopPayButton =
|
|
247
|
+
exports.ShopPayButton = ShopPayButton_liquid.default;
|
|
250
248
|
exports.Newsletter = Newsletter_liquid.default;
|
|
251
249
|
exports.ContactForm = Contact_liquid.default;
|
|
252
250
|
exports.FormEmail = FormEmail_liquid.default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var Button = require('../../../button/components/Button.js');
|
|
8
|
+
|
|
9
|
+
const DynamicCheckout = ({ builderProps, builderAttrs, style, styles, advanced, setting })=>{
|
|
10
|
+
const { ...buttonStyles } = styles ?? {};
|
|
11
|
+
const label = setting?.label || 'Buy it now';
|
|
12
|
+
return /*#__PURE__*/ jsxRuntime.jsx(Button.default, {
|
|
13
|
+
builderProps: builderProps,
|
|
14
|
+
builderAttrs: builderAttrs,
|
|
15
|
+
advanced: advanced,
|
|
16
|
+
setting: {
|
|
17
|
+
label: label,
|
|
18
|
+
htmlType: 'button'
|
|
19
|
+
},
|
|
20
|
+
style: style,
|
|
21
|
+
styles: buttonStyles
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.default = DynamicCheckout;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Button_liquid = require('./components/Button.liquid.js');
|
|
6
|
+
|
|
7
|
+
const DynamicCheckout = ({ builderProps, styles, advanced, setting, pageContext })=>{
|
|
8
|
+
const { ...buttonStyles } = styles ?? {};
|
|
9
|
+
const label = setting?.label || 'Buy it now';
|
|
10
|
+
return Button_liquid.default({
|
|
11
|
+
builderProps,
|
|
12
|
+
className: '',
|
|
13
|
+
advanced,
|
|
14
|
+
setting: {
|
|
15
|
+
label: label,
|
|
16
|
+
htmlType: 'button'
|
|
17
|
+
},
|
|
18
|
+
styles: buttonStyles,
|
|
19
|
+
pageContext
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.default = DynamicCheckout;
|