@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.
Files changed (148) hide show
  1. package/dist/cjs/article/components/ArticleReadMore.js +2 -4
  2. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +5 -5
  3. package/dist/cjs/builder.js +17 -21
  4. package/dist/cjs/button/components/Button.js +111 -184
  5. package/dist/cjs/button/components/Button.liquid.js +108 -171
  6. package/dist/cjs/button/components/ButtonIcon.js +17 -0
  7. package/dist/cjs/button/components/ButtonIcon.liquid.js +16 -0
  8. package/dist/cjs/button/components/ButtonLabel.js +18 -0
  9. package/dist/cjs/button/components/ButtonLabel.liquid.js +15 -0
  10. package/dist/cjs/button/components/ButtonLoadingIndicator.liquid.js +12 -0
  11. package/dist/cjs/button/components/common/attributes.js +15 -0
  12. package/dist/cjs/button/components/common/classes.js +55 -0
  13. package/dist/cjs/button/components/common/constants.js +26 -0
  14. package/dist/cjs/button/components/common/data.js +76 -0
  15. package/dist/cjs/button/components/common/helpers.js +131 -0
  16. package/dist/cjs/button/components/common/styles.js +157 -0
  17. package/dist/cjs/button/next.js +2 -6
  18. package/dist/cjs/button/setting/configs/settings.js +5 -1
  19. package/dist/cjs/cart/components/CheckoutNow.js +0 -2
  20. package/dist/cjs/cart/components/ShopPayButton/ShopPayButton.js +70 -0
  21. package/dist/cjs/cart/components/ShopPayButton/ShopPayButton.liquid.js +71 -0
  22. package/dist/cjs/cart/components/ShopPayButton/common/classes.js +18 -0
  23. package/dist/cjs/cart/components/ShopPayButton/common/helpers.js +31 -0
  24. package/dist/cjs/cart/components/ShopPayButton/common/styles.js +12 -0
  25. package/dist/cjs/cart/components/ShopPayButton/hooks/useShopPayButton.js +70 -0
  26. package/dist/cjs/cart/next.js +1 -1
  27. package/dist/cjs/coupon/components/Coupon.js +1 -3
  28. package/dist/cjs/dialog/setting/Dialog.js +7 -580
  29. package/dist/cjs/dialog/setting/configs/settings.js +325 -0
  30. package/dist/cjs/dialog/setting/configs/uiV1.js +288 -0
  31. package/dist/cjs/dialog/setting/configs/uiV2.js +258 -0
  32. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +4 -4
  33. package/dist/cjs/form/components/submit-button/SubmitButton.js +0 -4
  34. package/dist/cjs/header/components/kind/basic/index.js +1 -1
  35. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  36. package/dist/cjs/index.js +41 -43
  37. package/dist/cjs/index.liquid.js +10 -12
  38. package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.js +25 -0
  39. package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.liquid.js +23 -0
  40. package/dist/cjs/product/components/DynamicCheckout/common/classes.js +32 -0
  41. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +181 -0
  42. package/dist/cjs/product/components/DynamicCheckout/components/Button.liquid.js +58 -0
  43. package/dist/cjs/product/components/DynamicCheckout.js +2 -5
  44. package/dist/cjs/product/components/FileUpload/components/common/index.js +2 -2
  45. package/dist/cjs/product/components/ProductButton.js +2 -3
  46. package/dist/cjs/product/components/ProductButton.liquid.js +3 -3
  47. package/dist/cjs/product/components/ProductDescription/common/const.js +9 -0
  48. package/dist/cjs/product/components/ProductDescription/common/getClasses.js +30 -0
  49. package/dist/cjs/product/components/ProductDescription/common/getStyle.js +81 -0
  50. package/dist/cjs/product/components/ProductDescription/hooks/useGpDescription.js +90 -0
  51. package/dist/cjs/product/components/ProductDescription/index.js +115 -0
  52. package/dist/cjs/product/components/ProductDescription/index.liquid.js +85 -0
  53. package/dist/cjs/product/components/ProductViewMore.js +2 -5
  54. package/dist/cjs/product/components/ProductViewMore.liquid.js +2 -2
  55. package/dist/cjs/product/next.js +1 -1
  56. package/dist/cjs/setting.js +3 -3
  57. package/dist/cjs/text/components/common/getClasses.js +1 -1
  58. package/dist/cjs/third-party/components/PushOwl.js +0 -5
  59. package/dist/esm/article/components/ArticleReadMore.js +1 -3
  60. package/dist/esm/banner/components/HeroBannerItem.liquid.js +5 -5
  61. package/dist/esm/builder.js +4 -8
  62. package/dist/esm/button/components/Button.js +113 -186
  63. package/dist/esm/button/components/Button.liquid.js +109 -172
  64. package/dist/esm/button/components/ButtonIcon.js +13 -0
  65. package/dist/esm/button/components/ButtonIcon.liquid.js +12 -0
  66. package/dist/esm/button/components/ButtonLabel.js +14 -0
  67. package/dist/esm/button/components/ButtonLabel.liquid.js +11 -0
  68. package/dist/esm/button/components/ButtonLoadingIndicator.liquid.js +8 -0
  69. package/dist/esm/button/components/common/attributes.js +13 -0
  70. package/dist/esm/button/components/common/classes.js +49 -0
  71. package/dist/esm/button/components/common/constants.js +24 -0
  72. package/dist/esm/button/components/common/data.js +74 -0
  73. package/dist/esm/button/components/common/helpers.js +118 -0
  74. package/dist/esm/button/components/common/styles.js +148 -0
  75. package/dist/esm/button/next.js +2 -6
  76. package/dist/esm/button/setting/configs/settings.js +5 -1
  77. package/dist/esm/cart/components/CheckoutNow.js +0 -2
  78. package/dist/esm/cart/components/ShopPayButton/ShopPayButton.js +66 -0
  79. package/dist/esm/cart/components/ShopPayButton/ShopPayButton.liquid.js +67 -0
  80. package/dist/esm/cart/components/ShopPayButton/common/classes.js +15 -0
  81. package/dist/esm/cart/components/ShopPayButton/common/helpers.js +27 -0
  82. package/dist/esm/cart/components/ShopPayButton/common/styles.js +10 -0
  83. package/dist/esm/cart/components/ShopPayButton/hooks/useShopPayButton.js +68 -0
  84. package/dist/esm/cart/next.js +1 -1
  85. package/dist/esm/coupon/components/Coupon.js +1 -3
  86. package/dist/esm/dialog/setting/Dialog.js +7 -580
  87. package/dist/esm/dialog/setting/configs/settings.js +323 -0
  88. package/dist/esm/dialog/setting/configs/uiV1.js +286 -0
  89. package/dist/esm/dialog/setting/configs/uiV2.js +256 -0
  90. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +4 -4
  91. package/dist/esm/form/components/submit-button/SubmitButton.js +0 -4
  92. package/dist/esm/header/components/kind/basic/index.js +1 -1
  93. package/dist/esm/header/components/kind/modern/index.js +1 -1
  94. package/dist/esm/index.js +4 -5
  95. package/dist/esm/index.liquid.js +4 -5
  96. package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.js +21 -0
  97. package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.liquid.js +19 -0
  98. package/dist/esm/product/components/DynamicCheckout/common/classes.js +30 -0
  99. package/dist/esm/product/components/DynamicCheckout/common/styles.js +179 -0
  100. package/dist/esm/product/components/DynamicCheckout/components/Button.liquid.js +54 -0
  101. package/dist/esm/product/components/DynamicCheckout.js +1 -4
  102. package/dist/esm/product/components/FileUpload/components/common/index.js +2 -2
  103. package/dist/esm/product/components/ProductButton.js +1 -2
  104. package/dist/esm/product/components/ProductButton.liquid.js +1 -1
  105. package/dist/esm/product/components/ProductDescription/common/const.js +6 -0
  106. package/dist/esm/product/components/ProductDescription/common/getClasses.js +27 -0
  107. package/dist/esm/product/components/ProductDescription/common/getStyle.js +77 -0
  108. package/dist/esm/product/components/ProductDescription/hooks/useGpDescription.js +88 -0
  109. package/dist/esm/product/components/ProductDescription/index.js +111 -0
  110. package/dist/esm/product/components/ProductDescription/index.liquid.js +81 -0
  111. package/dist/esm/product/components/ProductViewMore.js +1 -4
  112. package/dist/esm/product/components/ProductViewMore.liquid.js +1 -1
  113. package/dist/esm/product/next.js +1 -1
  114. package/dist/esm/setting.js +3 -3
  115. package/dist/esm/text/components/common/getClasses.js +1 -1
  116. package/dist/esm/third-party/components/PushOwl.js +0 -5
  117. package/dist/types/index.d.ts +200 -360
  118. package/package.json +2 -2
  119. package/dist/cjs/button/components/v2/ButtonIcon.js +0 -18
  120. package/dist/cjs/button/components/v2/ButtonLabel.js +0 -25
  121. package/dist/cjs/button/components/v2/ButtonV2.js +0 -140
  122. package/dist/cjs/button/components/v2/ButtonV2.liquid.js +0 -181
  123. package/dist/cjs/button/hooks/useButtonCustomCss.js +0 -88
  124. package/dist/cjs/button/hooks/useButtonStyles.js +0 -93
  125. package/dist/cjs/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -20
  126. package/dist/cjs/cart/components/ShopPayButton/index.js +0 -113
  127. package/dist/cjs/cart/components/ShopPayButton/index.liquid.js +0 -51
  128. package/dist/cjs/product/components/DynamicCheckout.liquid.js +0 -250
  129. package/dist/cjs/product/components/ProductDescription/const.js +0 -5
  130. package/dist/cjs/product/components/ProductDescription.js +0 -172
  131. package/dist/cjs/product/components/ProductDescription.liquid.js +0 -120
  132. package/dist/esm/button/components/v2/ButtonIcon.js +0 -14
  133. package/dist/esm/button/components/v2/ButtonLabel.js +0 -21
  134. package/dist/esm/button/components/v2/ButtonV2.js +0 -136
  135. package/dist/esm/button/components/v2/ButtonV2.liquid.js +0 -177
  136. package/dist/esm/button/hooks/useButtonCustomCss.js +0 -84
  137. package/dist/esm/button/hooks/useButtonStyles.js +0 -91
  138. package/dist/esm/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -17
  139. package/dist/esm/cart/components/ShopPayButton/index.js +0 -109
  140. package/dist/esm/cart/components/ShopPayButton/index.liquid.js +0 -47
  141. package/dist/esm/product/components/DynamicCheckout.liquid.js +0 -246
  142. package/dist/esm/product/components/ProductDescription/const.js +0 -3
  143. package/dist/esm/product/components/ProductDescription.js +0 -168
  144. package/dist/esm/product/components/ProductDescription.liquid.js +0 -116
  145. /package/dist/cjs/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
  146. /package/dist/cjs/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
  147. /package/dist/esm/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
  148. /package/dist/esm/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
@@ -0,0 +1,115 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+ var core = require('@gem-sdk/core');
8
+ var NoDataState = require('../../../common/components/NoDataState.js');
9
+ var _const = require('./common/const.js');
10
+ var system = require('@gem-sdk/system');
11
+ var getClasses = require('./common/getClasses.js');
12
+ var getStyle = require('./common/getStyle.js');
13
+ var useGpDescription = require('./hooks/useGpDescription.js');
14
+
15
+ const ProductDescription = (props)=>{
16
+ const { setting, advanced, builderProps } = props;
17
+ const { htmlTag } = setting ?? {};
18
+ const Tag = htmlTag === 'html' ? 'div' : 'p';
19
+ const product = core.useProduct();
20
+ const currentDevice = core.useCurrentDevice();
21
+ const hasLineClamp = core.getResponsiveValueByScreen(setting?.hasLineClamp, currentDevice);
22
+ const { ref, open, isShowViewMore, handleToggleShowMore, mode, redirectProductShopifyLink } = useGpDescription.useGpDescription(setting);
23
+ const gpDescriptionClasses = system.createClass({
24
+ 'gp-product-description': true,
25
+ [advanced?.cssClass]: true
26
+ });
27
+ const textClasses = system.createClass(getClasses.getClasses({
28
+ setting
29
+ }));
30
+ const buttonClasses = system.createClass(getClasses.getButtonClasses({
31
+ setting
32
+ }));
33
+ const showMoreTextClasses = system.createClass({
34
+ 'gp-show-more-text': true
35
+ });
36
+ const showMoreIconClasses = system.createClass({
37
+ 'gp-show-more-icon gp-ml-1': true,
38
+ ...open ? {
39
+ 'gp-rotate-180': true
40
+ } : {}
41
+ });
42
+ const textStyle = system.createStyle({
43
+ ...getStyle.getTextStyle({
44
+ setting
45
+ }),
46
+ ...!open ? core.makeStyleResponsive('line-clamp', core.makeLineClamp(setting?.lineClamp, setting?.hasLineClamp)) : {}
47
+ });
48
+ const buttonStyle = system.createStyle(getStyle.getButtonStyle({
49
+ setting
50
+ }));
51
+ const attr = system.createAttr({
52
+ 'data-id': `${builderProps?.uid}`
53
+ });
54
+ const textAttr = system.createAttr({
55
+ 'data-gp-text': ''
56
+ });
57
+ const { gpDescriptionCss, textDescriptionCss } = getStyle.getStaticCss();
58
+ const noDescriptionHtml = !product?.descriptionHtml;
59
+ if (noDescriptionHtml && mode === 'edit') {
60
+ return /*#__PURE__*/ jsxRuntime.jsx(NoDataState.default, {
61
+ elementType: "secondary",
62
+ description: "Highlight key benefits with product description.",
63
+ descriptionActions: [
64
+ {
65
+ text: 'Add description',
66
+ callback: redirectProductShopifyLink
67
+ },
68
+ {
69
+ text: 'sync data',
70
+ callback: 'syncProduct'
71
+ }
72
+ ]
73
+ });
74
+ }
75
+ return system.If(noDescriptionHtml, '', /*#__PURE__*/ jsxRuntime.jsxs("div", {
76
+ ...attr,
77
+ className: gpDescriptionClasses,
78
+ children: [
79
+ /*#__PURE__*/ jsxRuntime.jsx("style", {
80
+ children: textDescriptionCss
81
+ }),
82
+ system.If(!core.isSafari(), /*#__PURE__*/ jsxRuntime.jsx("style", {
83
+ children: gpDescriptionCss
84
+ }), ' '),
85
+ /*#__PURE__*/ jsxRuntime.jsx(Tag, {
86
+ ref: ref,
87
+ ...textAttr,
88
+ className: textClasses,
89
+ style: textStyle,
90
+ dangerouslySetInnerHTML: {
91
+ __html: product?.descriptionHtml || ''
92
+ }
93
+ }),
94
+ system.If(hasLineClamp && isShowViewMore, /*#__PURE__*/ jsxRuntime.jsxs("button", {
95
+ className: buttonClasses,
96
+ style: buttonStyle,
97
+ onClick: handleToggleShowMore,
98
+ children: [
99
+ /*#__PURE__*/ jsxRuntime.jsx("span", {
100
+ className: showMoreTextClasses,
101
+ children: system.If(open, setting?.viewLessText || '', setting?.viewMoreText)
102
+ }),
103
+ system.If(setting?.enableViewMoreIcon, /*#__PURE__*/ jsxRuntime.jsx("span", {
104
+ className: showMoreIconClasses,
105
+ dangerouslySetInnerHTML: {
106
+ __html: _const.ICON_SVG
107
+ }
108
+ }))
109
+ ]
110
+ }), ' ')
111
+ ]
112
+ }));
113
+ };
114
+
115
+ exports.default = ProductDescription;
@@ -0,0 +1,85 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var core = require('@gem-sdk/core');
6
+ var helpers = require('../../../helpers.js');
7
+ var system = require('@gem-sdk/system');
8
+ var getClasses = require('./common/getClasses.js');
9
+ var getStyle = require('./common/getStyle.js');
10
+ var _const = require('./common/const.js');
11
+
12
+ const ProductDescription = (props)=>{
13
+ const { setting, advanced, builderProps } = props;
14
+ const { htmlTag } = setting ?? {};
15
+ const Tag = htmlTag === 'html' ? 'div' : 'p';
16
+ const gpDescriptionClasses = system.createClass({
17
+ 'gp-product-description': true,
18
+ [advanced?.cssClass]: true
19
+ });
20
+ const textClasses = system.createClass(getClasses.getClasses({
21
+ setting
22
+ }));
23
+ const buttonClasses = system.createClass(getClasses.getButtonClasses({
24
+ setting
25
+ }));
26
+ const showMoreTextClasses = system.createClass({
27
+ 'gp-show-more-text': true
28
+ });
29
+ const showMoreIconClasses = system.createClass({
30
+ 'gp-show-more-icon gp-ml-1': true
31
+ });
32
+ const textStyle = system.createStyle({
33
+ ...getStyle.getTextStyle({
34
+ setting,
35
+ renderMaxHeight: true
36
+ }),
37
+ ...core.makeStyleResponsive('line-clamp', core.makeLineClamp(setting?.lineClamp, setting?.hasLineClamp))
38
+ });
39
+ const buttonStyle = system.createStyle(getStyle.getButtonStyle({
40
+ setting
41
+ }));
42
+ const attr = system.createAttr({
43
+ 'data-id': `${builderProps?.uid}`
44
+ });
45
+ const textAttr = system.createAttr({
46
+ 'data-gp-text': ''
47
+ });
48
+ const { textDescriptionCss } = getStyle.getStaticCss();
49
+ const noDescriptionHtml = 'product.description == blank';
50
+ const renderScript = ()=>{
51
+ const jsURL = core.isLocalEnv ? `{{ 'gp-product-description-v2.js' | asset_url }}` : `${core.baseAssetURL}/assets-v2/gp-product-description-v2.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;
52
+ return `<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="${jsURL}" defer="defer"></script>`;
53
+ };
54
+ const stateData = system.createStateOrContext({
55
+ setting: {
56
+ lineClamp: setting?.lineClamp,
57
+ hasLineClamp: setting?.hasLineClamp,
58
+ viewMoreText: setting?.viewMoreText,
59
+ viewLessText: setting?.viewLessText,
60
+ enableViewMoreIcon: setting?.enableViewMoreIcon
61
+ },
62
+ textStyle
63
+ });
64
+ return system.LiquidIf(noDescriptionHtml, '', system.Liquid(core.template`
65
+ <gp-product-description-v2
66
+ ${attr}
67
+ class="${gpDescriptionClasses}"
68
+ gp-data='${core.dataStringify(stateData).replaceAll("'", '&#039;')}'>
69
+ <style>${textDescriptionCss}</style>
70
+ ${system.LiquidUnless('product', `<p>Product not found</p>`, core.template`<${Tag} ${textAttr} class="${textClasses}" style="${textStyle}">
71
+ {{product.description}}
72
+ </${Tag}>
73
+ ${system.LiquidUnless(noDescriptionHtml, core.template`<button type="button" class="${buttonClasses}" style="${buttonStyle}">
74
+ <span class="${showMoreTextClasses}">
75
+ ${system.If(false, setting?.viewLessText || '', setting?.viewMoreText)}
76
+ </span>
77
+ ${system.If(setting?.enableViewMoreIcon, core.template`<span class="${showMoreIconClasses}">${_const.ICON_SVG}</span>`, ' ')}
78
+ </button>`)}`)}
79
+ </gp-product-description-v2>
80
+
81
+ ${renderScript()}
82
+ `));
83
+ };
84
+
85
+ exports.default = ProductDescription;
@@ -4,16 +4,13 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
- var ButtonV2 = require('../../button/components/v2/ButtonV2.js');
8
- require('@gem-sdk/core');
9
- require('next/link');
10
- require('react');
7
+ var Button = require('../../button/components/Button.js');
11
8
 
12
9
  const ProductViewMore = ({ setting, builderProps, builderAttrs, style, styles, advanced, children })=>{
13
10
  const { ...buttonStyles } = styles ?? {};
14
11
  const { label, iconSvg, iconAlign, iconVisible, shouldClearSpace } = setting ?? {};
15
12
  return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
16
- children: /*#__PURE__*/ jsxRuntime.jsx(ButtonV2.default, {
13
+ children: /*#__PURE__*/ jsxRuntime.jsx(Button.default, {
17
14
  builderProps: builderProps,
18
15
  builderAttrs: builderAttrs,
19
16
  advanced: advanced,
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@gem-sdk/core');
6
+ var Button_liquid = require('../../button/components/Button.liquid.js');
6
7
  var helpers = require('../../helpers.js');
7
- var ButtonV2_liquid = require('../../button/components/v2/ButtonV2.liquid.js');
8
8
 
9
9
  const ProductViewMore = ({ setting, builderProps, builderAttrs, style, styles, advanced, pageContext })=>{
10
10
  const { ...buttonStyles } = styles ?? {};
11
11
  const { label, iconSvg, iconAlign, iconVisible, translate } = setting ?? {};
12
12
  return core.template`
13
13
  <gp-product-view-more>
14
- ${ButtonV2_liquid.default({
14
+ ${Button_liquid.default({
15
15
  className: 'btn-view-more',
16
16
  builderProps: builderProps,
17
17
  builderAttrs: builderAttrs,
@@ -17,7 +17,7 @@ const ProductTitle = dynamic(()=>Promise.resolve().then(function () { return req
17
17
  const ProductQuantity = dynamic(()=>Promise.resolve().then(function () { return require('./components/ProductQuantity.js'); }), {
18
18
  loading: Loading.default
19
19
  });
20
- const ProductDescription = dynamic(()=>Promise.resolve().then(function () { return require('./components/ProductDescription.js'); }), {
20
+ const ProductDescription = dynamic(()=>Promise.resolve().then(function () { return require('./components/ProductDescription/index.js'); }), {
21
21
  loading: Loading.default
22
22
  });
23
23
  const ProductPrice = dynamic(()=>Promise.resolve().then(function () { return require('./components/ProductPrice.js'); }), {
@@ -9,21 +9,21 @@ require('@gem-sdk/core');
9
9
  var index$m = require('./text/setting/index.js');
10
10
  require('@gem-sdk/system');
11
11
  var index$1 = require('./breadcrumb/setting/index.js');
12
- var index$2 = require('./button/setting/index.js');
13
- require('next/head');
14
12
  var index$f = require('./link/setting/index.js');
15
13
  require('next/link');
14
+ var index$2 = require('./button/setting/index.js');
16
15
  var index$3 = require('./coupon/setting/index.js');
17
16
  var index$4 = require('./carousel/setting/index.js');
18
17
  require('@gem-sdk/keen-slider/react');
19
18
  require('./product/components/ProductVariants/variants/index.js');
20
19
  var index$5 = require('./cart/setting/index.js');
21
20
  var index$8 = require('./grid/setting/index.js');
21
+ require('next/head');
22
22
  require('next/image');
23
23
  require('react-youtube');
24
24
  var index$c = require('./image/setting/index.js');
25
25
  require('./image/components/AdaptiveImage.js');
26
- require('./cart/components/ShopPayButton/index.js');
26
+ require('./cart/components/ShopPayButton/ShopPayButton.js');
27
27
  var index$6 = require('./collection/setting/index.js');
28
28
  var index$7 = require('./countdown-timer/setting/index.js');
29
29
  var index$9 = require('./heading/setting/index.js');
@@ -28,7 +28,7 @@ const getTextClasses = ({ styles, setting, className, mode })=>{
28
28
  const { text, options } = setting ?? {};
29
29
  let classList = '';
30
30
  if (!text) {
31
- 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`;
31
+ 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 `;
32
32
  }
33
33
  if (styles?.underlineLink) {
34
34
  classList += `${styles.underlineLink.hover ? 'hover:gp-underline' : ''} ${styles.underlineLink.normal ? 'gp-underline' : ''}`;
@@ -3,11 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- require('react/jsx-runtime');
7
- require('@gem-sdk/core');
8
- require('next/head');
9
- require('react');
10
- require('next/link');
11
6
  var Button = require('../../button/components/Button.js');
12
7
 
13
8
  const PushOwl = Button.default;
@@ -1,10 +1,8 @@
1
1
  'use client';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import Text from '../../text/components/Text.js';
4
- import Button from '../../button/components/v2/ButtonV2.js';
4
+ import Button from '../../button/components/Button.js';
5
5
  import { useArticleStore } from '@gem-sdk/core';
6
- import 'next/link';
7
- import 'react';
8
6
 
9
7
  const ArticleReadMore = ({ setting, builderAttrs, builderProps, styles, style, advanced })=>{
10
8
  const article = useArticleStore((s)=>s.article);
@@ -1,25 +1,25 @@
1
1
  import { template, getAspectRatioGlobalSize, getResponsiveValueByScreen } from '@gem-sdk/core';
2
2
  import { createStyle, createClass, If } from '@gem-sdk/system';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+ import 'next/link';
3
6
  import Row from '../../grid/row/Row.liquid.js';
4
7
  import NextImage from '../../image/components/NextImage.liquid.js';
5
8
  import HTML5Embed from '../../video/components/HTML5Embed.liquid.js';
6
- import 'react';
7
- import 'react/jsx-runtime';
8
9
  import '../../product/components/ProductVariants/variants/index.js';
9
10
  import '../../product/components/ProductBadge/constants.js';
10
11
  import '../../product/components/constants/product-bundle.js';
11
12
  import '../../product/components/ProductBadge/types.js';
12
13
  import '../../product/components/ProductBadge/utils/shape.js';
13
14
  import '../../accordion/setting/configs/settings.js';
14
- import 'next/head';
15
- import 'next/link';
16
15
  import '@gem-sdk/keen-slider/react';
16
+ import 'next/head';
17
17
  import 'next/image';
18
18
  import { DEVICES, getImageSrc } from '../../image/helpers/getSrcSet.js';
19
19
  import { getYoutubeVideoId, youtubeVideoRegex } from '../../video/helpers/common.js';
20
20
  import 'react-youtube';
21
21
  import '../../image/components/AdaptiveImage.js';
22
- import '../../cart/components/ShopPayButton/index.js';
22
+ import '../../cart/components/ShopPayButton/ShopPayButton.js';
23
23
  import '../../countdown-timer/setting/configs/settings.js';
24
24
  import '../../header/components/Header.js';
25
25
  import '../../header/components/kind/basic/index.js';
@@ -3,11 +3,7 @@ import './accordion/setting/configs/settings.js';
3
3
  import Accordion from './accordion/components/Accordion.js';
4
4
  import AccordionItem from './accordion/components/AccordionItem.js';
5
5
  import Breadcrumb from './breadcrumb/components/Breadcrumb.js';
6
- import Button from './button/components/v2/ButtonV2.js';
7
- import 'react/jsx-runtime';
8
- import '@gem-sdk/core';
9
- import 'next/link';
10
- import 'react';
6
+ import Button from './button/components/Button.js';
11
7
  import Coupon from './coupon/components/Coupon.js';
12
8
  import Carousel from './carousel/components/Carousel.js';
13
9
  import CarouselItem from './carousel/components/CarouselItem.js';
@@ -136,7 +132,7 @@ import CartDiscount from './cart/components/CartDiscount.js';
136
132
  import CartOrderNote from './cart/components/CartOrderNote.js';
137
133
  import CartLineAttribute from './cart/components/CartLineAttribute.js';
138
134
  import CouponList from './cart/components/CouponList.js';
139
- import ShopPayButton from './cart/components/ShopPayButton/index.js';
135
+ import ShopPayButton from './cart/components/ShopPayButton/ShopPayButton.js';
140
136
  import CheckoutNow from './cart/components/CheckoutNow.js';
141
137
  import CollectionTitle from './collection/components/CollectionTitle.js';
142
138
  import CollectionBanner from './collection/components/CollectionBanner.js';
@@ -180,7 +176,7 @@ import PostPurchaseProductVariants from './post-purchase/product/components/prod
180
176
  import Product from './product/components/Product.js';
181
177
  import ProductTitle from './product/components/ProductTitle/index.js';
182
178
  import ProductQuantity from './product/components/ProductQuantity.js';
183
- import ProductDescription from './product/components/ProductDescription.js';
179
+ import ProductDescription from './product/components/ProductDescription/index.js';
184
180
  import ProductPrice from './product/components/ProductPrice.js';
185
181
  import ProductButton from './product/components/ProductButton.js';
186
182
  import ProductVariants from './product/components/ProductVariants/index.js';
@@ -190,7 +186,7 @@ import ProductProperties from './product/components/ProductProperties.js';
190
186
  import QuickView from './product/components/ProductQuickView/index.js';
191
187
  import ProductTag from './product/components/ProductTag.js';
192
188
  import ProductList from './product/components/ProductList.js';
193
- import DynamicCheckout from './product/components/DynamicCheckout.js';
189
+ import DynamicCheckout from './product/components/DynamicCheckout/DynamicCheckout.js';
194
190
  import ProductBundleDiscount from './product/components/ProductBundleDiscount.js';
195
191
  import ProductBundleDiscountItem from './product/components/ProductBundleDiscountItem.js';
196
192
  import ProductVendor from './product/components/Vendor.js';