@gem-sdk/components 2.0.0-dev.367 → 2.0.0-dev.369
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/builder.js +104 -102
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.liquid.js +2 -0
- package/dist/cjs/line/components/Divider.liquid.js +1 -1
- package/dist/cjs/line/components/Line.liquid.js +1 -1
- package/dist/cjs/sticky/components/Sticky.js +18 -113
- package/dist/cjs/sticky/components/Sticky.liquid.js +18 -51
- package/dist/cjs/sticky/components/common/styles.js +42 -0
- package/dist/cjs/sticky/components/hooks/useSticky.js +119 -0
- package/dist/cjs/sticky/index.js +1 -0
- package/dist/cjs/third-party/components/AppstleBundlesDiscounts.js +33 -0
- package/dist/cjs/third-party/components/AppstleBundlesDiscounts.liquid.js +12 -0
- package/dist/cjs/third-party/configs/AppstleBundlesDiscounts.js +12 -0
- package/dist/cjs/third-party/index.js +3 -1
- package/dist/cjs/third-party/next.js +5 -0
- package/dist/cjs/third-party/setting/AppstleBundlesDiscounts.js +146 -0
- package/dist/esm/builder.js +104 -102
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.liquid.js +1 -0
- package/dist/esm/line/components/Divider.liquid.js +1 -1
- package/dist/esm/line/components/Line.liquid.js +1 -1
- package/dist/esm/sticky/components/Sticky.js +19 -114
- package/dist/esm/sticky/components/Sticky.liquid.js +19 -52
- package/dist/esm/sticky/components/common/styles.js +40 -0
- package/dist/esm/sticky/components/hooks/useSticky.js +114 -0
- package/dist/esm/sticky/index.js +1 -0
- package/dist/esm/third-party/components/AppstleBundlesDiscounts.js +29 -0
- package/dist/esm/third-party/components/AppstleBundlesDiscounts.liquid.js +8 -0
- package/dist/esm/third-party/configs/AppstleBundlesDiscounts.js +8 -0
- package/dist/esm/third-party/index.js +3 -1
- package/dist/esm/third-party/next.js +5 -0
- package/dist/esm/third-party/setting/AppstleBundlesDiscounts.js +142 -0
- package/dist/types/index.d.ts +18 -1
- package/package.json +2 -2
package/dist/cjs/builder.js
CHANGED
|
@@ -6,8 +6,111 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var Accordion = require('./accordion/components/Accordion.js');
|
|
7
7
|
var AccordionItem = require('./accordion/components/AccordionItem.js');
|
|
8
8
|
require('./accordion/setting/configs/settings.js');
|
|
9
|
+
var ArticleList = require('./article/components/ArticleList.js');
|
|
10
|
+
var ArticleTitle = require('./article/components/ArticleTitle.js');
|
|
11
|
+
var ArticleExcerpt = require('./article/components/ArticleExcerpt.js');
|
|
12
|
+
var ArticleContent = require('./article/components/ArticleContent.js');
|
|
13
|
+
var ArticleImage = require('./article/components/ArticleImage.js');
|
|
14
|
+
var ArticlePagination = require('./article/components/ArticlePagination.js');
|
|
15
|
+
var ArticleAuthor = require('./article/components/ArticleAuthor.js');
|
|
16
|
+
var ArticleTag = require('./article/components/ArticleTag.js');
|
|
17
|
+
var ArticleCategory = require('./article/components/ArticleCategory.js');
|
|
18
|
+
var ArticleDate = require('./article/components/ArticleDate.js');
|
|
19
|
+
var ArticleReadMore = require('./article/components/ArticleReadMore.js');
|
|
20
|
+
var HeroBanner = require('./banner/components/HeroBanner.js');
|
|
21
|
+
var Breadcrumb = require('./breadcrumb/components/Breadcrumb.js');
|
|
22
|
+
var Button = require('./button/components/Button.js');
|
|
23
|
+
var Carousel = require('./carousel/components/Carousel.js');
|
|
24
|
+
var CarouselItem = require('./carousel/components/CarouselItem.js');
|
|
25
|
+
var Cart = require('./cart/components/Cart.js');
|
|
26
|
+
var CartList = require('./cart/components/CartList.js');
|
|
27
|
+
var CartLinePrice = require('./cart/components/CartLinePrice.js');
|
|
28
|
+
var CartLineVariant = require('./cart/components/CartLineVariant.js');
|
|
29
|
+
var CartLineImage = require('./cart/components/CartLineImage.js');
|
|
30
|
+
var CartTotalPrice = require('./cart/components/CartTotalPrice.js');
|
|
31
|
+
var CartTotalItem = require('./cart/components/CartTotalItem.js');
|
|
32
|
+
var CartCheckout = require('./cart/components/CartCheckout.js');
|
|
33
|
+
var DiscountInput = require('./cart/components/DiscountInput.js');
|
|
34
|
+
var CartDiscount = require('./cart/components/CartDiscount.js');
|
|
35
|
+
var CartOrderNote = require('./cart/components/CartOrderNote.js');
|
|
36
|
+
var CartLineAttribute = require('./cart/components/CartLineAttribute.js');
|
|
37
|
+
var CouponList = require('./cart/components/CouponList.js');
|
|
38
|
+
var ShopPayButton = require('./cart/components/ShopPayButton/ShopPayButton.js');
|
|
39
|
+
var CheckoutNow = require('./cart/components/CheckoutNow.js');
|
|
40
|
+
var CSSCode = require('./code/components/CSSCode.js');
|
|
41
|
+
var CollectionTitle = require('./collection/components/collection-title/components/CollectionTitle.js');
|
|
42
|
+
var CollectionBanner = require('./collection/components/collection-banner/components/CollectionBanner.js');
|
|
43
|
+
var CollectionDescription = require('./collection/components/collection-description/components/CollectionDescription.js');
|
|
44
|
+
var CollectionToolbar = require('./collection/components/collection-toolbar/components/CollectionToolbar.js');
|
|
45
|
+
var CollectionPaginator = require('./collection/components/collection-paginator/components/CollectionPaginator.js');
|
|
46
|
+
var Countdown = require('./countdown-timer/components/Countdown.js');
|
|
47
|
+
require('./countdown-timer/setting/configs/settings.js');
|
|
48
|
+
var Coupon = require('./coupon/components/Coupon.js');
|
|
49
|
+
var Dialog = require('./dialog/components/Dialog.js');
|
|
50
|
+
var EstimateDate = require('./estimate-delivery/components/EstimateDate.js');
|
|
51
|
+
require('./estimate-delivery/setting/configs/settings.js');
|
|
52
|
+
var Root = require('./grid/components/Root.js');
|
|
53
|
+
var Section = require('./grid/section/Section.js');
|
|
54
|
+
var Row = require('./grid/row/Row.js');
|
|
55
|
+
var Col = require('./grid/col/Col.js');
|
|
56
|
+
var Newsletter = require('./form/components/newsletter/Newsletter.js');
|
|
57
|
+
var Contact = require('./form/components/contact/Contact.js');
|
|
58
|
+
var FormEmail = require('./form/components/form-email/FormEmail.js');
|
|
59
|
+
var SubmitButton = require('./form/components/submit-button/SubmitButton.js');
|
|
60
|
+
var FormDropdown = require('./form/components/form-dropdown/FormDropdown.js');
|
|
61
|
+
var TextField = require('./form/components/textfield/TextField.js');
|
|
62
|
+
var TextArea = require('./form/components/textarea/TextArea.js');
|
|
63
|
+
var FormCheckbox = require('./form/components/form-checkbox/FormCheckbox.js');
|
|
64
|
+
var TextInput = require('./form/components/textinput/TextInput.js');
|
|
65
|
+
require('./form/setting/contact/Contact.js');
|
|
66
|
+
var Header = require('./header/components/Header.js');
|
|
67
|
+
var index = require('./header/components/kind/basic/index.js');
|
|
68
|
+
var index$1 = require('./header/components/kind/modern/index.js');
|
|
69
|
+
var MobileMenu = require('./header/components/kind/basic/MobileMenu.js');
|
|
70
|
+
var DesktopMenu = require('./header/components/kind/basic/DesktopMenu.js');
|
|
71
|
+
var Heading = require('./heading/Heading.js');
|
|
72
|
+
var Icon = require('./icon/components/Icon.js');
|
|
73
|
+
var IconList = require('./icon-list/components/IconList.js');
|
|
74
|
+
var IconListItem = require('./icon-list/components/IconListItem.js');
|
|
75
|
+
var IconListHoz = require('./icon-list-hoz/components/IconListHoz.js');
|
|
76
|
+
var IconListHozItem = require('./icon-list-hoz/components/IconListHozItem.js');
|
|
77
|
+
var IconList$1 = require('./icon-list-v2/components/IconList.js');
|
|
78
|
+
require('./icon-list-v2/setting/configs/settings.js');
|
|
79
|
+
var Image = require('./image/components/Image.js');
|
|
80
|
+
var ImageComparison = require('./image-comparison/components/ImageComparison.js');
|
|
81
|
+
var ImageDetection = require('./image-detection/ImageDetection.js');
|
|
82
|
+
var Input = require('./input/Input.js');
|
|
83
|
+
var Line = require('./line/components/Line.js');
|
|
84
|
+
var Link = require('./link/components/Link.js');
|
|
85
|
+
var Marquee = require('./marquee/components/Marquee.js');
|
|
86
|
+
var MarqueeItem = require('./marquee/components/MarqueeItem.js');
|
|
87
|
+
var Menu = require('./menu/components/Menu.js');
|
|
88
|
+
var Modal = require('./modal/components/Modal.js');
|
|
89
|
+
require('./modal/components/confirm.js');
|
|
90
|
+
var Pagination = require('./pagination/Pagination.js');
|
|
91
|
+
var AdvancedListPostPurchase = require('./post-purchase/advanced-list/components/AdvancedListPostPurchase.js');
|
|
92
|
+
var PostPurchaseAdvancedListItem = require('./post-purchase/advanced-list/components/PostPurchaseAdvancedListItem.js');
|
|
93
|
+
var Button$1 = require('./post-purchase/button/Button.js');
|
|
94
|
+
var CalloutBox = require('./post-purchase/callout-banner/components/CalloutBox.js');
|
|
95
|
+
var CalloutText = require('./post-purchase/callout-banner/components/CalloutText.js');
|
|
96
|
+
var PostPurchaseCountdownTimer = require('./post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js');
|
|
97
|
+
var Image$1 = require('./post-purchase/image/components/Image.js');
|
|
98
|
+
var PostPurchaseLine = require('./post-purchase/line/components/PostPurchaseLine.js');
|
|
99
|
+
var PostPurchaseLink = require('./post-purchase/link/components/PostPurchaseLink.js');
|
|
100
|
+
var index$2 = require('./post-purchase/text/index.js');
|
|
101
|
+
var ProductTitle = require('./post-purchase/product/components/ProductTitle.js');
|
|
102
|
+
var ProductDescription = require('./post-purchase/product/components/ProductDescription.js');
|
|
103
|
+
var ProductPrice = require('./post-purchase/product/components/ProductPrice.js');
|
|
104
|
+
var ProductVariant = require('./post-purchase/product/components/product-variant/components/ProductVariant.js');
|
|
105
|
+
var AcceptButton = require('./post-purchase/product/components/AcceptButton.js');
|
|
106
|
+
var ProductQuantity = require('./post-purchase/product/components/ProductQuantity.js');
|
|
107
|
+
var ProductOffer = require('./post-purchase/product/components/product-offer/components/ProductOffer.js');
|
|
108
|
+
var ProductPriceBreakdown = require('./post-purchase/product/components/ProductPriceBreakdown.js');
|
|
109
|
+
var ProductDiscountTag = require('./post-purchase/product/components/ProductDiscountTag.js');
|
|
110
|
+
var index$3 = require('./post-purchase/product/components/product-image/index.js');
|
|
9
111
|
var RechargeSubscriptions = require('./third-party/components/RechargeSubscriptions.js');
|
|
10
112
|
var EcomsendBackInStockAlert = require('./third-party/components/EcomsendBackInStockAlert.js');
|
|
113
|
+
var AppstleBundlesDiscounts = require('./third-party/components/AppstleBundlesDiscounts.js');
|
|
11
114
|
var JudgemeReviews = require('./third-party/components/JudgemeReviews.js');
|
|
12
115
|
var LooxReviews = require('./third-party/components/LooxReviews.js');
|
|
13
116
|
var Klaviyo = require('./third-party/components/Klaviyo.js');
|
|
@@ -120,108 +223,6 @@ var BfSizeChartSizeGuide = require('./third-party/components/BfSizeChartSizeGuid
|
|
|
120
223
|
var AlsoBoughtCbb = require('./third-party/components/AlsoBoughtCbb.js');
|
|
121
224
|
var HextomFreeShippingBar = require('./third-party/components/HextomFreeShippingBar.js');
|
|
122
225
|
var EcoboostifyShoppableReelUgc = require('./third-party/components/EcoboostifyShoppableReelUgc.js');
|
|
123
|
-
var ArticleList = require('./article/components/ArticleList.js');
|
|
124
|
-
var ArticleTitle = require('./article/components/ArticleTitle.js');
|
|
125
|
-
var ArticleExcerpt = require('./article/components/ArticleExcerpt.js');
|
|
126
|
-
var ArticleContent = require('./article/components/ArticleContent.js');
|
|
127
|
-
var ArticleImage = require('./article/components/ArticleImage.js');
|
|
128
|
-
var ArticlePagination = require('./article/components/ArticlePagination.js');
|
|
129
|
-
var ArticleAuthor = require('./article/components/ArticleAuthor.js');
|
|
130
|
-
var ArticleTag = require('./article/components/ArticleTag.js');
|
|
131
|
-
var ArticleCategory = require('./article/components/ArticleCategory.js');
|
|
132
|
-
var ArticleDate = require('./article/components/ArticleDate.js');
|
|
133
|
-
var ArticleReadMore = require('./article/components/ArticleReadMore.js');
|
|
134
|
-
var HeroBanner = require('./banner/components/HeroBanner.js');
|
|
135
|
-
var Breadcrumb = require('./breadcrumb/components/Breadcrumb.js');
|
|
136
|
-
var Button = require('./button/components/Button.js');
|
|
137
|
-
var Carousel = require('./carousel/components/Carousel.js');
|
|
138
|
-
var CarouselItem = require('./carousel/components/CarouselItem.js');
|
|
139
|
-
var Cart = require('./cart/components/Cart.js');
|
|
140
|
-
var CartList = require('./cart/components/CartList.js');
|
|
141
|
-
var CartLinePrice = require('./cart/components/CartLinePrice.js');
|
|
142
|
-
var CartLineVariant = require('./cart/components/CartLineVariant.js');
|
|
143
|
-
var CartLineImage = require('./cart/components/CartLineImage.js');
|
|
144
|
-
var CartTotalPrice = require('./cart/components/CartTotalPrice.js');
|
|
145
|
-
var CartTotalItem = require('./cart/components/CartTotalItem.js');
|
|
146
|
-
var CartCheckout = require('./cart/components/CartCheckout.js');
|
|
147
|
-
var DiscountInput = require('./cart/components/DiscountInput.js');
|
|
148
|
-
var CartDiscount = require('./cart/components/CartDiscount.js');
|
|
149
|
-
var CartOrderNote = require('./cart/components/CartOrderNote.js');
|
|
150
|
-
var CartLineAttribute = require('./cart/components/CartLineAttribute.js');
|
|
151
|
-
var CouponList = require('./cart/components/CouponList.js');
|
|
152
|
-
var ShopPayButton = require('./cart/components/ShopPayButton/ShopPayButton.js');
|
|
153
|
-
var CheckoutNow = require('./cart/components/CheckoutNow.js');
|
|
154
|
-
var CSSCode = require('./code/components/CSSCode.js');
|
|
155
|
-
var CollectionTitle = require('./collection/components/collection-title/components/CollectionTitle.js');
|
|
156
|
-
var CollectionBanner = require('./collection/components/collection-banner/components/CollectionBanner.js');
|
|
157
|
-
var CollectionDescription = require('./collection/components/collection-description/components/CollectionDescription.js');
|
|
158
|
-
var CollectionToolbar = require('./collection/components/collection-toolbar/components/CollectionToolbar.js');
|
|
159
|
-
var CollectionPaginator = require('./collection/components/collection-paginator/components/CollectionPaginator.js');
|
|
160
|
-
var Countdown = require('./countdown-timer/components/Countdown.js');
|
|
161
|
-
require('./countdown-timer/setting/configs/settings.js');
|
|
162
|
-
var Coupon = require('./coupon/components/Coupon.js');
|
|
163
|
-
var Dialog = require('./dialog/components/Dialog.js');
|
|
164
|
-
var EstimateDate = require('./estimate-delivery/components/EstimateDate.js');
|
|
165
|
-
require('./estimate-delivery/setting/configs/settings.js');
|
|
166
|
-
var Root = require('./grid/components/Root.js');
|
|
167
|
-
var Section = require('./grid/section/Section.js');
|
|
168
|
-
var Row = require('./grid/row/Row.js');
|
|
169
|
-
var Col = require('./grid/col/Col.js');
|
|
170
|
-
var Newsletter = require('./form/components/newsletter/Newsletter.js');
|
|
171
|
-
var Contact = require('./form/components/contact/Contact.js');
|
|
172
|
-
var FormEmail = require('./form/components/form-email/FormEmail.js');
|
|
173
|
-
var SubmitButton = require('./form/components/submit-button/SubmitButton.js');
|
|
174
|
-
var FormDropdown = require('./form/components/form-dropdown/FormDropdown.js');
|
|
175
|
-
var TextField = require('./form/components/textfield/TextField.js');
|
|
176
|
-
var TextArea = require('./form/components/textarea/TextArea.js');
|
|
177
|
-
var FormCheckbox = require('./form/components/form-checkbox/FormCheckbox.js');
|
|
178
|
-
var TextInput = require('./form/components/textinput/TextInput.js');
|
|
179
|
-
require('./form/setting/contact/Contact.js');
|
|
180
|
-
var Header = require('./header/components/Header.js');
|
|
181
|
-
var index = require('./header/components/kind/basic/index.js');
|
|
182
|
-
var index$1 = require('./header/components/kind/modern/index.js');
|
|
183
|
-
var MobileMenu = require('./header/components/kind/basic/MobileMenu.js');
|
|
184
|
-
var DesktopMenu = require('./header/components/kind/basic/DesktopMenu.js');
|
|
185
|
-
var Heading = require('./heading/Heading.js');
|
|
186
|
-
var Icon = require('./icon/components/Icon.js');
|
|
187
|
-
var IconList = require('./icon-list/components/IconList.js');
|
|
188
|
-
var IconListItem = require('./icon-list/components/IconListItem.js');
|
|
189
|
-
var IconListHoz = require('./icon-list-hoz/components/IconListHoz.js');
|
|
190
|
-
var IconListHozItem = require('./icon-list-hoz/components/IconListHozItem.js');
|
|
191
|
-
var IconList$1 = require('./icon-list-v2/components/IconList.js');
|
|
192
|
-
require('./icon-list-v2/setting/configs/settings.js');
|
|
193
|
-
var Image = require('./image/components/Image.js');
|
|
194
|
-
var ImageComparison = require('./image-comparison/components/ImageComparison.js');
|
|
195
|
-
var ImageDetection = require('./image-detection/ImageDetection.js');
|
|
196
|
-
var Input = require('./input/Input.js');
|
|
197
|
-
var Line = require('./line/components/Line.js');
|
|
198
|
-
var Link = require('./link/components/Link.js');
|
|
199
|
-
var Marquee = require('./marquee/components/Marquee.js');
|
|
200
|
-
var MarqueeItem = require('./marquee/components/MarqueeItem.js');
|
|
201
|
-
var Menu = require('./menu/components/Menu.js');
|
|
202
|
-
var Modal = require('./modal/components/Modal.js');
|
|
203
|
-
require('./modal/components/confirm.js');
|
|
204
|
-
var Pagination = require('./pagination/Pagination.js');
|
|
205
|
-
var AdvancedListPostPurchase = require('./post-purchase/advanced-list/components/AdvancedListPostPurchase.js');
|
|
206
|
-
var PostPurchaseAdvancedListItem = require('./post-purchase/advanced-list/components/PostPurchaseAdvancedListItem.js');
|
|
207
|
-
var Button$1 = require('./post-purchase/button/Button.js');
|
|
208
|
-
var CalloutBox = require('./post-purchase/callout-banner/components/CalloutBox.js');
|
|
209
|
-
var CalloutText = require('./post-purchase/callout-banner/components/CalloutText.js');
|
|
210
|
-
var PostPurchaseCountdownTimer = require('./post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js');
|
|
211
|
-
var Image$1 = require('./post-purchase/image/components/Image.js');
|
|
212
|
-
var PostPurchaseLine = require('./post-purchase/line/components/PostPurchaseLine.js');
|
|
213
|
-
var PostPurchaseLink = require('./post-purchase/link/components/PostPurchaseLink.js');
|
|
214
|
-
var index$2 = require('./post-purchase/text/index.js');
|
|
215
|
-
var ProductTitle = require('./post-purchase/product/components/ProductTitle.js');
|
|
216
|
-
var ProductDescription = require('./post-purchase/product/components/ProductDescription.js');
|
|
217
|
-
var ProductPrice = require('./post-purchase/product/components/ProductPrice.js');
|
|
218
|
-
var ProductVariant = require('./post-purchase/product/components/product-variant/components/ProductVariant.js');
|
|
219
|
-
var AcceptButton = require('./post-purchase/product/components/AcceptButton.js');
|
|
220
|
-
var ProductQuantity = require('./post-purchase/product/components/ProductQuantity.js');
|
|
221
|
-
var ProductOffer = require('./post-purchase/product/components/product-offer/components/ProductOffer.js');
|
|
222
|
-
var ProductPriceBreakdown = require('./post-purchase/product/components/ProductPriceBreakdown.js');
|
|
223
|
-
var ProductDiscountTag = require('./post-purchase/product/components/ProductDiscountTag.js');
|
|
224
|
-
var index$3 = require('./post-purchase/product/components/product-image/index.js');
|
|
225
226
|
var Product = require('./product/components/ProductWrap/Product.js');
|
|
226
227
|
var index$4 = require('./product/components/ProductTitle/index.js');
|
|
227
228
|
var index$5 = require('./product/components/ProductQuantity/index.js');
|
|
@@ -263,6 +264,7 @@ var Text = require('./post-purchase/text/components/Text.js');
|
|
|
263
264
|
|
|
264
265
|
var builder = {
|
|
265
266
|
EcomsendBackInStockAlert: EcomsendBackInStockAlert.default,
|
|
267
|
+
AppstleBundlesDiscounts: AppstleBundlesDiscounts.default,
|
|
266
268
|
Accordion: Accordion.default,
|
|
267
269
|
AccordionItem: AccordionItem.default,
|
|
268
270
|
ArticleList: ArticleList.default,
|
package/dist/cjs/index.js
CHANGED
|
@@ -196,6 +196,7 @@ var TabItem = require('./tab/components/TabItem.js');
|
|
|
196
196
|
var Text$1 = require('./text/components/Text.js');
|
|
197
197
|
var Textarea = require('./textarea/Textarea.js');
|
|
198
198
|
var Video = require('./video/components/Video.js');
|
|
199
|
+
var AppstleBundlesDiscounts = require('./third-party/components/AppstleBundlesDiscounts.js');
|
|
199
200
|
var EcomsendBackInStockAlert = require('./third-party/components/EcomsendBackInStockAlert.js');
|
|
200
201
|
var EstimatedDeliveryDatePlus = require('./third-party/components/EstimatedDeliveryDatePlus.js');
|
|
201
202
|
var OkendoReviewsLoyalty = require('./third-party/components/OkendoReviewsLoyalty.js');
|
|
@@ -528,6 +529,7 @@ exports.TabItem = TabItem.default;
|
|
|
528
529
|
exports.Text = Text$1.default;
|
|
529
530
|
exports.Textarea = Textarea.default;
|
|
530
531
|
exports.Video = Video.default;
|
|
532
|
+
exports.AppstleBundlesDiscounts = AppstleBundlesDiscounts.default;
|
|
531
533
|
exports.EcomsendBackInStockAlert = EcomsendBackInStockAlert.default;
|
|
532
534
|
exports.EstimatedDeliveryDatePlus = EstimatedDeliveryDatePlus.default;
|
|
533
535
|
exports.OkendoReviewsLoyalty = OkendoReviewsLoyalty.default;
|
package/dist/cjs/index.liquid.js
CHANGED
|
@@ -195,6 +195,7 @@ var AlsoBoughtCbb_liquid = require('./third-party/components/AlsoBoughtCbb.liqui
|
|
|
195
195
|
var HextomFreeShippingBar_liquid = require('./third-party/components/HextomFreeShippingBar.liquid.js');
|
|
196
196
|
var EcoboostifyShoppableReelUgc_liquid = require('./third-party/components/EcoboostifyShoppableReelUgc.liquid.js');
|
|
197
197
|
var EcomsendBackInStockAlert_liquid = require('./third-party/components/EcomsendBackInStockAlert.liquid.js');
|
|
198
|
+
var AppstleBundlesDiscounts_liquid = require('./third-party/components/AppstleBundlesDiscounts.liquid.js');
|
|
198
199
|
var TrustshopProductReviews_liquid = require('./third-party/components/TrustshopProductReviews.liquid.js');
|
|
199
200
|
var StellarDeliveryDatePickup_liquid = require('./third-party/components/StellarDeliveryDatePickup.liquid.js');
|
|
200
201
|
var ThirdPartySlot_liquid = require('./third-party-slot/components/ThirdPartySlot.liquid.js');
|
|
@@ -393,6 +394,7 @@ exports.AlsoBoughtCbb = AlsoBoughtCbb_liquid.default;
|
|
|
393
394
|
exports.HextomFreeShippingBar = HextomFreeShippingBar_liquid.default;
|
|
394
395
|
exports.EcoboostifyShoppableReelUgc = EcoboostifyShoppableReelUgc_liquid.default;
|
|
395
396
|
exports.EcomsendBackInStockAlert = EcomsendBackInStockAlert_liquid.default;
|
|
397
|
+
exports.AppstleBundlesDiscounts = AppstleBundlesDiscounts_liquid.default;
|
|
396
398
|
exports.TrustshopProductReviews = TrustshopProductReviews_liquid.default;
|
|
397
399
|
exports.StellarDeliveryDatePickup = StellarDeliveryDatePickup_liquid.default;
|
|
398
400
|
exports.ThirdPartySlot = ThirdPartySlot_liquid.default;
|
|
@@ -16,7 +16,7 @@ const Divider = ({ className, fixedSide, config })=>{
|
|
|
16
16
|
const styleContainerDivider = styles.getStyleContainerDivider({
|
|
17
17
|
config
|
|
18
18
|
});
|
|
19
|
-
return core.template`<div class="${classContainerDivider}" style="${styleContainerDivider}"
|
|
19
|
+
return core.template`<div class="${classContainerDivider}" style="${styleContainerDivider}"></div>`;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
exports.default = Divider;
|
|
@@ -58,7 +58,7 @@ const Line = (props)=>{
|
|
|
58
58
|
};
|
|
59
59
|
return core.template`
|
|
60
60
|
<div data-id="${builderProps?.uid}" class="${classContainerLine}">
|
|
61
|
-
<div style="${styleWrapNotIcon}" class="${classWrapNotIcon}"
|
|
61
|
+
<div style="${styleWrapNotIcon}" class="${classWrapNotIcon}"></div>
|
|
62
62
|
<div class="${classWrapIcon}" style="${styleWrapIcon}">
|
|
63
63
|
${Divider_liquid.default(propsDividerLeft)}
|
|
64
64
|
${system.If(!!iconSvg, core.template`
|
|
@@ -7,69 +7,28 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var core = require('@gem-sdk/core');
|
|
8
8
|
var Head = require('next/head');
|
|
9
9
|
var ChildrenDroppable = require('../../grid/components/ChildrenDroppable.js');
|
|
10
|
-
|
|
10
|
+
require('react');
|
|
11
11
|
var _const = require('../../common/const.js');
|
|
12
|
-
var
|
|
12
|
+
var useSticky = require('./hooks/useSticky.js');
|
|
13
|
+
var system = require('@gem-sdk/system');
|
|
13
14
|
|
|
14
15
|
const Sticky = ({ children, builderAttrs, setting, style, builderProps })=>{
|
|
15
|
-
const {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
const { minimize, background, preloadBgImage } = setting ?? {};
|
|
17
|
+
const { w, displayStyle, positionStyle, getCSSAlign } = useSticky.default(setting);
|
|
18
|
+
const computedContainerStyles = system.createStyle({
|
|
19
|
+
margin: '0 auto',
|
|
20
|
+
...style,
|
|
21
|
+
...w,
|
|
22
|
+
...core.getStyleBackgroundByDevice(background),
|
|
23
|
+
...displayStyle(),
|
|
24
|
+
...positionStyle(),
|
|
25
|
+
...getCSSAlign(),
|
|
26
|
+
zIndex: _const.ELEMENT_Z_INDEX.STICKY
|
|
20
27
|
});
|
|
21
|
-
const
|
|
22
|
-
const sidebarMode = core.usePageStore((s)=>s.sidebarMode === 'interaction');
|
|
23
|
-
const currentDevice = core.useCurrentDevice();
|
|
24
|
-
const getCSSPosition = (position)=>{
|
|
25
|
-
return position == 'top' ? 'sticky' : 'fixed';
|
|
26
|
-
};
|
|
27
|
-
const getCSSAlignByDevice = (position, device)=>{
|
|
28
|
-
return {
|
|
29
|
-
[`--left${device}`]: position == 'top' ? '0' : '50%',
|
|
30
|
-
[`--t${device}`]: position == 'top' ? 'unset' : 'translateX(-50%)'
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
const getCSSAlign = ()=>{
|
|
34
|
-
return {
|
|
35
|
-
...getCSSAlignByDevice(position?.desktop, ''),
|
|
36
|
-
...getCSSAlignByDevice(position?.tablet ?? position?.desktop, '-tablet'),
|
|
37
|
-
...getCSSAlignByDevice(position?.mobile ?? position?.desktop, '-mobile')
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
const gap = React.useMemo(()=>{
|
|
41
|
-
if (sidebarMode && position?.[currentDevice] === 'top') {
|
|
42
|
-
return '40px';
|
|
43
|
-
}
|
|
44
|
-
return undefined;
|
|
45
|
-
}, [
|
|
46
|
-
currentDevice,
|
|
47
|
-
sidebarMode,
|
|
48
|
-
position
|
|
49
|
-
]);
|
|
50
|
-
const displayStyle = React.useCallback(()=>{
|
|
51
|
-
return {
|
|
52
|
-
[`--top`]: gap ?? 'auto',
|
|
53
|
-
[`--top-tablet`]: gap ?? 'auto',
|
|
54
|
-
[`--top-mobile`]: gap ?? 'auto',
|
|
55
|
-
[`--${position?.desktop}`]: gap ?? 0,
|
|
56
|
-
[`--${position?.tablet ?? position?.desktop}-tablet`]: gap ?? 0,
|
|
57
|
-
[`--${position?.mobile ?? position?.desktop}-mobile`]: gap ?? 0
|
|
58
|
-
};
|
|
59
|
-
}, [
|
|
60
|
-
gap,
|
|
61
|
-
position
|
|
62
|
-
]);
|
|
63
|
-
const positionStyle = ()=>{
|
|
64
|
-
return {
|
|
65
|
-
[`--pos`]: getCSSPosition(position?.desktop),
|
|
66
|
-
[`--pos-tablet`]: getCSSPosition(position?.tablet ?? position?.desktop),
|
|
67
|
-
[`--pos-mobile`]: getCSSPosition(position?.mobile ?? position?.desktop)
|
|
68
|
-
};
|
|
69
|
-
};
|
|
28
|
+
const computedMinimizeClasses = system.createClass(core.composeClasses('sticky-minimize gp-fixed gp-flex gp-h-[32px] gp-w-[76px] gp-cursor-pointer gp-items-center gp-gap-[4px] gp-border gp-border-[#D8E1FF] gp-bg-white hover:gp-bg-[#D8E1FF]'));
|
|
70
29
|
if (minimize) {
|
|
71
30
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
72
|
-
className:
|
|
31
|
+
className: computedMinimizeClasses,
|
|
73
32
|
"data-uid": builderProps?.uid,
|
|
74
33
|
"data-id": builderProps?.uid,
|
|
75
34
|
...builderAttrs,
|
|
@@ -78,52 +37,7 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps })=>{
|
|
|
78
37
|
zIndex: _const.ELEMENT_Z_INDEX.STICKY
|
|
79
38
|
},
|
|
80
39
|
children: [
|
|
81
|
-
|
|
82
|
-
className: "gp-ml-[7px]",
|
|
83
|
-
width: "16",
|
|
84
|
-
height: "16",
|
|
85
|
-
viewBox: "0 0 16 16",
|
|
86
|
-
fill: "none",
|
|
87
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
88
|
-
children: [
|
|
89
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
90
|
-
fillRule: "evenodd",
|
|
91
|
-
clipRule: "evenodd",
|
|
92
|
-
d: "M5.75 1.25C4.64543 1.25 3.75 2.14543 3.75 3.25C3.75 4.35457 4.64543 5.25 5.75 5.25C6.85457 5.25 7.75 4.35457 7.75 3.25C7.75 2.14543 6.85457 1.25 5.75 1.25ZM4.75 3.25C4.75 2.69772 5.19772 2.25 5.75 2.25C6.30228 2.25 6.75 2.69772 6.75 3.25C6.75 3.80228 6.30228 4.25 5.75 4.25C5.19772 4.25 4.75 3.80228 4.75 3.25Z",
|
|
93
|
-
fill: "#3C67FF"
|
|
94
|
-
}),
|
|
95
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
96
|
-
fillRule: "evenodd",
|
|
97
|
-
clipRule: "evenodd",
|
|
98
|
-
d: "M5.75 6C4.64543 6 3.75 6.89543 3.75 8C3.75 9.10457 4.64543 10 5.75 10C6.85457 10 7.75 9.10457 7.75 8C7.75 6.89543 6.85457 6 5.75 6ZM4.75 8C4.75 7.44772 5.19772 7 5.75 7C6.30228 7 6.75 7.44772 6.75 8C6.75 8.55228 6.30228 9 5.75 9C5.19772 9 4.75 8.55228 4.75 8Z",
|
|
99
|
-
fill: "#3C67FF"
|
|
100
|
-
}),
|
|
101
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
102
|
-
fillRule: "evenodd",
|
|
103
|
-
clipRule: "evenodd",
|
|
104
|
-
d: "M3.75 12.75C3.75 11.6454 4.64543 10.75 5.75 10.75C6.85457 10.75 7.75 11.6454 7.75 12.75C7.75 13.8546 6.85457 14.75 5.75 14.75C4.64543 14.75 3.75 13.8546 3.75 12.75ZM5.75 11.75C5.19772 11.75 4.75 12.1977 4.75 12.75C4.75 13.3023 5.19772 13.75 5.75 13.75C6.30228 13.75 6.75 13.3023 6.75 12.75C6.75 12.1977 6.30228 11.75 5.75 11.75Z",
|
|
105
|
-
fill: "#3C67FF"
|
|
106
|
-
}),
|
|
107
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
108
|
-
fillRule: "evenodd",
|
|
109
|
-
clipRule: "evenodd",
|
|
110
|
-
d: "M10.25 1.25C9.14543 1.25 8.25 2.14543 8.25 3.25C8.25 4.35457 9.14543 5.25 10.25 5.25C11.3546 5.25 12.25 4.35457 12.25 3.25C12.25 2.14543 11.3546 1.25 10.25 1.25ZM9.25 3.25C9.25 2.69772 9.69772 2.25 10.25 2.25C10.8023 2.25 11.25 2.69772 11.25 3.25C11.25 3.80228 10.8023 4.25 10.25 4.25C9.69772 4.25 9.25 3.80228 9.25 3.25Z",
|
|
111
|
-
fill: "#3C67FF"
|
|
112
|
-
}),
|
|
113
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
114
|
-
fillRule: "evenodd",
|
|
115
|
-
clipRule: "evenodd",
|
|
116
|
-
d: "M8.25 8C8.25 6.89543 9.14543 6 10.25 6C11.3546 6 12.25 6.89543 12.25 8C12.25 9.10457 11.3546 10 10.25 10C9.14543 10 8.25 9.10457 8.25 8ZM10.25 7C9.69772 7 9.25 7.44772 9.25 8C9.25 8.55228 9.69772 9 10.25 9C10.8023 9 11.25 8.55228 11.25 8C11.25 7.44772 10.8023 7 10.25 7Z",
|
|
117
|
-
fill: "#3C67FF"
|
|
118
|
-
}),
|
|
119
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
120
|
-
fillRule: "evenodd",
|
|
121
|
-
clipRule: "evenodd",
|
|
122
|
-
d: "M10.25 10.75C9.14543 10.75 8.25 11.6454 8.25 12.75C8.25 13.8546 9.14543 14.75 10.25 14.75C11.3546 14.75 12.25 13.8546 12.25 12.75C12.25 11.6454 11.3546 10.75 10.25 10.75ZM9.25 12.75C9.25 12.1977 9.69772 11.75 10.25 11.75C10.8023 11.75 11.25 12.1977 11.25 12.75C11.25 13.3023 10.8023 13.75 10.25 13.75C9.69772 13.75 9.25 13.3023 9.25 12.75Z",
|
|
123
|
-
fill: "#3C67FF"
|
|
124
|
-
})
|
|
125
|
-
]
|
|
126
|
-
}),
|
|
40
|
+
useSticky.minimizeSvg,
|
|
127
41
|
/*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
128
42
|
className: "gp-text-[12px] gp-font-medium gp-text-[#3C67FF]",
|
|
129
43
|
children: "Sticky"
|
|
@@ -155,16 +69,7 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps })=>{
|
|
|
155
69
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
156
70
|
className: core.cls('sticky-wrapper', builderProps?.uid),
|
|
157
71
|
id: builderProps?.uid,
|
|
158
|
-
style:
|
|
159
|
-
margin: '0 auto',
|
|
160
|
-
...style,
|
|
161
|
-
...w,
|
|
162
|
-
...core.getStyleBackgroundByDevice(background),
|
|
163
|
-
...displayStyle(),
|
|
164
|
-
...positionStyle(),
|
|
165
|
-
...getCSSAlign(),
|
|
166
|
-
zIndex: _const.ELEMENT_Z_INDEX.STICKY
|
|
167
|
-
},
|
|
72
|
+
style: computedContainerStyles,
|
|
168
73
|
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
169
74
|
...builderAttrs,
|
|
170
75
|
"data-id": builderProps?.uid,
|
|
@@ -4,51 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@gem-sdk/core');
|
|
6
6
|
var helpers = require('../../helpers.js');
|
|
7
|
-
require('
|
|
8
|
-
require('
|
|
9
|
-
var _const = require('../../common/const.js');
|
|
7
|
+
var system = require('@gem-sdk/system');
|
|
8
|
+
var styles = require('./common/styles.js');
|
|
10
9
|
|
|
11
10
|
const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced })=>{
|
|
12
11
|
const { width, fullWidth, position, background, display, preloadBgImage, isScrollToTop } = setting ?? {};
|
|
13
12
|
const advancedDisplay = advanced?.d;
|
|
14
13
|
const w = core.makeWidth(width, fullWidth);
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const getCSSAlign = ()=>{
|
|
25
|
-
return {
|
|
26
|
-
...getCSSAlignByDevice(position?.desktop, ''),
|
|
27
|
-
...getCSSAlignByDevice(position?.tablet ?? position?.desktop, '-tablet'),
|
|
28
|
-
...getCSSAlignByDevice(position?.mobile ?? position?.desktop, '-mobile')
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
const getDisplayStyle = (device, display, position)=>{
|
|
32
|
-
const style = {
|
|
33
|
-
[`--top${device}`]: 'auto',
|
|
34
|
-
[`--${position + device}`]: '0',
|
|
35
|
-
[`--pos${device}`]: getCSSPosition(position)
|
|
36
|
-
};
|
|
37
|
-
if (display === 'after-first-cart-button') style[`--d${device}`] = 'none';
|
|
38
|
-
return style;
|
|
39
|
-
};
|
|
40
|
-
const displayStyle = ()=>{
|
|
41
|
-
return {
|
|
42
|
-
...getDisplayStyle('', display?.desktop, position?.desktop),
|
|
43
|
-
...getDisplayStyle('-tablet', display?.tablet ?? display?.desktop, position?.tablet ?? position?.desktop),
|
|
44
|
-
...getDisplayStyle('-mobile', display?.mobile ?? display?.desktop, position?.mobile ?? position?.desktop)
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
return core.template`
|
|
48
|
-
${core.RenderIf(!!preloadBgImage, `${core.RenderIf(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.mobile?.image?.src, `<link rel="preload" href="${background?.mobile?.image?.src}" as="image" />`)}`)}
|
|
49
|
-
<gp-sticky
|
|
50
|
-
data-id="${builderProps?.uid}"
|
|
51
|
-
gp-data='${JSON.stringify({
|
|
14
|
+
const computedContainerStyles = system.createStyle(styles.getContainerStyles({
|
|
15
|
+
w,
|
|
16
|
+
background,
|
|
17
|
+
position,
|
|
18
|
+
style,
|
|
19
|
+
display
|
|
20
|
+
}));
|
|
21
|
+
const computedContainerClasses = system.createClass(core.composeClasses(`${builderProps?.uid} ${helpers.getSettingPreloadData('gps-lazy')} ${advanced?.cssClass} ${isScrollToTop ? '!gp-pointer-events-none [&_gp-button_a]:!gp-pointer-events-auto' : ''}`));
|
|
22
|
+
const createDataState = system.createStateOrContext({
|
|
52
23
|
uid: builderProps?.uid,
|
|
53
24
|
setting: {
|
|
54
25
|
display
|
|
@@ -56,19 +27,15 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced
|
|
|
56
27
|
advanced: {
|
|
57
28
|
d: advancedDisplay
|
|
58
29
|
}
|
|
59
|
-
})
|
|
30
|
+
});
|
|
31
|
+
return core.template`
|
|
32
|
+
${core.RenderIf(!!preloadBgImage, `${core.RenderIf(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.mobile?.image?.src, `<link rel="preload" href="${background?.mobile?.image?.src}" as="image" />`)}`)}
|
|
33
|
+
<gp-sticky
|
|
34
|
+
gp-data='${JSON.stringify(createDataState)}'
|
|
60
35
|
id="${builderProps?.uid}"
|
|
61
36
|
data-id="${builderProps?.uid}"
|
|
62
|
-
class="${
|
|
63
|
-
style="${
|
|
64
|
-
margin: '0 auto',
|
|
65
|
-
...style,
|
|
66
|
-
...core.makeStyleResponsive('w', w),
|
|
67
|
-
...core.getStyleBackgroundByDevice(background),
|
|
68
|
-
...displayStyle(),
|
|
69
|
-
...getCSSAlign(),
|
|
70
|
-
'z-index': _const.ELEMENT_Z_INDEX.STICKY
|
|
71
|
-
}}"
|
|
37
|
+
class="${computedContainerClasses}"
|
|
38
|
+
style="${computedContainerStyles}"
|
|
72
39
|
>
|
|
73
40
|
<div ${{
|
|
74
41
|
...builderAttrs
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@gem-sdk/core');
|
|
4
|
+
var helpers = require('../../../helpers.js');
|
|
5
|
+
require('react/jsx-runtime');
|
|
6
|
+
require('react');
|
|
7
|
+
var _const = require('../../../common/const.js');
|
|
8
|
+
|
|
9
|
+
const getCSSAlignByDevice = (position, device)=>{
|
|
10
|
+
return {
|
|
11
|
+
[`--left${device}`]: position == 'top' ? '0' : '50%',
|
|
12
|
+
[`--t${device}`]: position == 'top' ? 'unset' : 'translateX(-50%)'
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
const getCSSAlign = (position)=>{
|
|
16
|
+
return {
|
|
17
|
+
...getCSSAlignByDevice(position?.desktop, ''),
|
|
18
|
+
...getCSSAlignByDevice(position?.tablet ?? position?.desktop, '-tablet'),
|
|
19
|
+
...getCSSAlignByDevice(position?.mobile ?? position?.desktop, '-mobile')
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
const displayStyle = (display, position)=>{
|
|
23
|
+
return {
|
|
24
|
+
...helpers.getDisplayStyle('', display?.desktop),
|
|
25
|
+
...helpers.getDisplayStyle('-tablet', display?.tablet ?? display?.desktop),
|
|
26
|
+
...helpers.getDisplayStyle('-mobile', display?.mobile ?? display?.desktop)
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
const getContainerStyles = (args)=>{
|
|
30
|
+
const { style, w, background, position, display } = args;
|
|
31
|
+
return {
|
|
32
|
+
margin: '0 auto',
|
|
33
|
+
...style,
|
|
34
|
+
...core.makeStyleResponsive('w', w),
|
|
35
|
+
...core.getStyleBackgroundByDevice(background),
|
|
36
|
+
...displayStyle(display),
|
|
37
|
+
...getCSSAlign(position),
|
|
38
|
+
'z-index': _const.ELEMENT_Z_INDEX.STICKY
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.getContainerStyles = getContainerStyles;
|