@gem-sdk/components 2.0.0-dev.640 → 2.0.0-dev.643

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 (23) hide show
  1. package/dist/cjs/carousel/arrow/Arrow.js +9 -10
  2. package/dist/cjs/carousel/arrow/common/getClass.js +1 -1
  3. package/dist/cjs/carousel/carousel-item/common/getClass.js +1 -1
  4. package/dist/cjs/carousel/root/Carousel.js +3 -2
  5. package/dist/cjs/carousel/setting/configs/uiV2.js +1 -0
  6. package/dist/cjs/modal/components/Modal.js +26 -5
  7. package/dist/cjs/product/components/ProductImagesV2/common/getStyle.js +1 -1
  8. package/dist/cjs/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +4 -1
  9. package/dist/cjs/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +12 -8
  10. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +1 -1
  11. package/dist/cjs/third-party/components/SproutPlantTreesGrowSales.liquid.js +1 -1
  12. package/dist/esm/carousel/arrow/Arrow.js +10 -11
  13. package/dist/esm/carousel/arrow/common/getClass.js +1 -1
  14. package/dist/esm/carousel/carousel-item/common/getClass.js +1 -1
  15. package/dist/esm/carousel/root/Carousel.js +3 -2
  16. package/dist/esm/carousel/setting/configs/uiV2.js +1 -0
  17. package/dist/esm/modal/components/Modal.js +26 -5
  18. package/dist/esm/product/components/ProductImagesV2/common/getStyle.js +1 -1
  19. package/dist/esm/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +4 -1
  20. package/dist/esm/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +12 -8
  21. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +1 -1
  22. package/dist/esm/third-party/components/SproutPlantTreesGrowSales.liquid.js +1 -1
  23. package/package.json +2 -2
@@ -14,16 +14,15 @@ const Arrow = (props)=>{
14
14
  const { isRenderCustomIcon } = common.getData(props);
15
15
  const { buttonClass, buttonContentClass } = getClass.getClass(props);
16
16
  const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle.getStyle(props, 'react');
17
- const customIcon = system.If(isRenderCustomIcon, custom ?? '', /*#__PURE__*/ jsxRuntime.jsx("svg", {
18
- height: "100%",
19
- width: "100%",
20
- xmlns: "http://www.w3.org/2000/svg",
21
- viewBox: "0 0 24 24",
22
- fill: "currentColor",
23
- children: /*#__PURE__*/ jsxRuntime.jsx("path", {
24
- d: "M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"
25
- })
26
- }));
17
+ const customIcon = system.If(isRenderCustomIcon, custom ?? '', `<svg
18
+ height="100%"
19
+ width="100%"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ fill="currentColor"
23
+ >
24
+ <path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z" />
25
+ </svg>`);
27
26
  const buttonContent = /*#__PURE__*/ jsxRuntime.jsx("div", {
28
27
  className: buttonContentClass,
29
28
  style: buttonContentStyle,
@@ -28,7 +28,7 @@ const getClass = (props)=>{
28
28
  [classAction]: true
29
29
  },
30
30
  ...{
31
- hidden: isHiddenWhenDisabled && disabled,
31
+ 'gp-invisible': isHiddenWhenDisabled && disabled,
32
32
  'gp-cursor-default gp-text-gray-300': disabled,
33
33
  'gp-cursor-pointer gp-text-gray-500': !disabled,
34
34
  '!gp-invisible group-hover/carousel:!gp-visible': showWhenHover,
@@ -18,7 +18,7 @@ const getClass = (props)=>{
18
18
  }
19
19
  });
20
20
  const carouselItemInnerClass = system.createClass({
21
- 'gp-h-full gp-w-full': true
21
+ 'gp-w-full': true
22
22
  });
23
23
  return {
24
24
  carouselItemClass,
@@ -23,7 +23,7 @@ const Carousel = /*#__PURE__*/ React.forwardRef((props, ref)=>{
23
23
  setting
24
24
  };
25
25
  const { arrowButtonSize, arrowBackgroundColor, arrowGapToEachSide = '16', roundedArrow, arrowIconSize, arrowCustomColor, arrowBorder, arrowShadow, showWhenHover } = setting ?? {};
26
- const { totalSlideItem, isInfinity, slider, currentSlide, localRef, showNavigation, isRenderDots, handleDotClick, getItemsPerPage, sliderRef, handleNextAndPrevSlide, dispatchEventSelectSlide, getNumberOfFullWidthShow } = useCarousel.useCarousel(renderData, ref);
26
+ const { totalSlideItem, isInfinity, slider, currentSlide, localRef, showNavigation, isRenderDots, slideMaxIndex, handleDotClick, getItemsPerPage, sliderRef, handleNextAndPrevSlide, dispatchEventSelectSlide, getNumberOfFullWidthShow } = useCarousel.useCarousel(renderData, ref);
27
27
  const { loopConfig, arrowShowConfig } = getData.getData(renderData);
28
28
  const { rootClassRender, wrapperClassRender, wrapperInnerClass, sliderClass } = getClass.getClass(renderData);
29
29
  const { rootStyleRender, wrapperStyleRender, wrapperInnerStyle } = getStyle.getStyle(renderData);
@@ -32,6 +32,7 @@ const Carousel = /*#__PURE__*/ React.forwardRef((props, ref)=>{
32
32
  const enabledSneakPeak = setting?.sneakPeak?.[currentDevice];
33
33
  const renderArrow = (position)=>{
34
34
  const isNext = position === 'next';
35
+ const isDisable = isNext ? !isInfinity && slider?.track?.details?.abs === slideMaxIndex : !isInfinity && slider?.track?.details?.abs === 0;
35
36
  return /*#__PURE__*/ jsxRuntime.jsx(Arrow.default, {
36
37
  uid: builderProps?.uid,
37
38
  custom: setting?.arrowCustom ?? '',
@@ -50,7 +51,7 @@ const Carousel = /*#__PURE__*/ React.forwardRef((props, ref)=>{
50
51
  handleNextAndPrevSlide(position);
51
52
  },
52
53
  left: !isNext,
53
- disabled: !isInfinity && slider?.track?.details?.abs === 0,
54
+ disabled: isDisable,
54
55
  vertical: setting?.vertical,
55
56
  isHiddenWhenDisabled: isHiddenArrowWhenDisabled,
56
57
  rootId: props?.parentClass
@@ -61,6 +61,7 @@ const carouselNavigationSettings = {
61
61
  },
62
62
  fixedValue: 'Edit',
63
63
  iconName: 'polaris-measurement-size',
64
+ isHideClear: true,
64
65
  controls: [
65
66
  {
66
67
  setting: {
@@ -14,6 +14,7 @@ const Modal = ({ setting, styles, children, willUnmount, closeOnEscape, onKeypre
14
14
  const { open } = setting ?? {};
15
15
  const container = useModalContainer.default();
16
16
  const overlay = React.useRef(null);
17
+ const closeButton = React.useRef(null);
17
18
  const keyboardClose = React.useCallback((event)=>{
18
19
  const keyCode = event.code;
19
20
  const isKeyCodeEscape = keyCode === 'Escape';
@@ -38,7 +39,8 @@ const Modal = ({ setting, styles, children, willUnmount, closeOnEscape, onKeypre
38
39
  ]);
39
40
  const handleClickOverlay = React.useCallback((e)=>{
40
41
  const isClickOutside = e.target === overlay.current;
41
- if (closeOnClickOutside && isClickOutside) {
42
+ const isClickCloseButton = e.target === closeButton.current;
43
+ if (closeOnClickOutside && isClickOutside || isClickCloseButton) {
42
44
  window?.parent?.postMessage?.(JSON.stringify({
43
45
  type: 'active-modal',
44
46
  value: false
@@ -77,7 +79,7 @@ const Modal = ({ setting, styles, children, willUnmount, closeOnEscape, onKeypre
77
79
  /*#__PURE__*/ jsxRuntime.jsx("span", {
78
80
  className: "gp-inline-block gp-h-screen gp-align-middle"
79
81
  }),
80
- /*#__PURE__*/ jsxRuntime.jsx("div", {
82
+ /*#__PURE__*/ jsxRuntime.jsxs("div", {
81
83
  className: core.cls('gp-relative gp-my-8 gp-inline-block gp-w-full gp-overflow-hidden gp-rounded gp-bg-white gp-p-6 gp-text-left gp-align-middle gp-shadow-xl gp-transition-all gp-duration-100', {
82
84
  'gp-max-w-2xl': !styles?.width,
83
85
  'gp-scale-100 gp-opacity-100': open,
@@ -86,9 +88,28 @@ const Modal = ({ setting, styles, children, willUnmount, closeOnEscape, onKeypre
86
88
  style: {
87
89
  width: styles?.width
88
90
  },
89
- children: /*#__PURE__*/ jsxRuntime.jsx("div", {
90
- children: core.isEmptyChildren(children) ? /*#__PURE__*/ jsxRuntime.jsx(ChildrenDroppable.default, {}) : children
91
- })
91
+ children: [
92
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
93
+ className: "gp-absolute gp-right-[16px] gp-top-[16px] gp-z-10 gp-cursor-pointer",
94
+ onClick: handleClickOverlay,
95
+ "aria-hidden": "true",
96
+ children: /*#__PURE__*/ jsxRuntime.jsx("svg", {
97
+ ref: closeButton,
98
+ width: "16",
99
+ height: "16",
100
+ viewBox: "0 0 16 16",
101
+ fill: "none",
102
+ xmlns: "http://www.w3.org/2000/svg",
103
+ children: /*#__PURE__*/ jsxRuntime.jsx("path", {
104
+ d: "M11.1758 12.0241C11.4101 12.2584 11.79 12.2584 12.0243 12.0241C12.2586 11.7898 12.2586 11.4099 12.0243 11.1755L8.84858 7.9998L12.0243 4.82407C12.2586 4.58975 12.2586 4.20986 12.0243 3.97554C11.79 3.74123 11.4101 3.74123 11.1758 3.97554L8.00005 7.15128L4.82431 3.97554C4.59 3.74123 4.2101 3.74123 3.97578 3.97554C3.74147 4.20986 3.74147 4.58975 3.97578 4.82407L7.15152 7.9998L3.97579 11.1755C3.74147 11.4099 3.74147 11.7898 3.97579 12.0241C4.2101 12.2584 4.59 12.2584 4.82431 12.0241L8.00005 8.84833L11.1758 12.0241Z",
105
+ fill: "#676767"
106
+ })
107
+ })
108
+ }),
109
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
110
+ children: core.isEmptyChildren(children) ? /*#__PURE__*/ jsxRuntime.jsx(ChildrenDroppable.default, {}) : children
111
+ })
112
+ ]
92
113
  })
93
114
  ]
94
115
  })
@@ -190,7 +190,7 @@ const getGalleryCarouselStyle = (setting)=>{
190
190
  const getWidthByLayoutForCarouselByDevice = (device)=>{
191
191
  const layout = core.getResponsiveValueByScreen(setting?.position, device);
192
192
  const isLayoutBottom = layout === 'bottom-center' || layout === 'inside-bottom';
193
- const isInsideLayout = layout === 'inside-left' || layout === 'inside-right';
193
+ const isInsideLayout = layout === 'inside-left' || layout === 'inside-right' || layout === 'left' || layout === 'right';
194
194
  const shapeSetting = core.getResponsiveValueByScreen(shapeByLayout, device);
195
195
  return isLayoutBottom || isInsideLayout || !shapeSetting?.width ? '100%' : shapeSetting.width;
196
196
  };
@@ -140,7 +140,10 @@ const ProductGalleryGrid = ({ builderPropUID, wrapperStyle, children, enableLazy
140
140
  layout: setting?.layout,
141
141
  qualityType: setting?.qualityType,
142
142
  qualityPercent: setting?.qualityPercent
143
- }, {})}
143
+ }, {
144
+ width: '100%',
145
+ height: '100%'
146
+ })}
144
147
 
145
148
  <div class="gp-absolute gp-inset-0 gp-flex gp-cursor-pointer gp-items-center gp-justify-center gp-bg-black/50 gp-opacity-0 gp-transition-opacity gp-duration-100 group-hover:gp-opacity-100"
146
149
  style="${_function.getStyleOfObject(productGallery.getZoomDisplay(setting?.clickOpenLightBox))}" >
@@ -24,7 +24,7 @@ const ProductImagesLightBox = ({ builderPropUID, productImages, open, imageRatio
24
24
  productImages,
25
25
  featuredImageGlobal
26
26
  ]);
27
- const showControl = {
27
+ const navigationEnable = {
28
28
  desktop: productImages && productImages.length > 1,
29
29
  mobile: productImages && productImages?.length > 1,
30
30
  tablet: productImages && productImages?.length > 1
@@ -47,7 +47,10 @@ const ProductImagesLightBox = ({ builderPropUID, productImages, open, imageRatio
47
47
  width: '80%'
48
48
  },
49
49
  closeOnClickOutside: true,
50
- onClose: ()=>onHandleClose(),
50
+ onClose: ()=>{
51
+ onHandleClose();
52
+ console.log('onHandleClose');
53
+ },
51
54
  disableIframeClickEvent: true,
52
55
  contentClass: "mobile:!gp-w-[100%] gp-px-2 gp-pb-10",
53
56
  children: /*#__PURE__*/ jsxRuntime.jsx(Carousel.default, {
@@ -79,17 +82,18 @@ const ProductImagesLightBox = ({ builderPropUID, productImages, open, imageRatio
79
82
  mobile: '#121212',
80
83
  tablet: '#121212'
81
84
  },
82
- controlOverContent: {
83
- desktop: true,
84
- mobile: true,
85
- tablet: true
86
- },
87
- arrow: showControl,
88
85
  dotSize: {
89
86
  desktop: 12
90
87
  },
91
88
  dotGapToCarousel: {
92
89
  desktop: 12
90
+ },
91
+ navigationEnable,
92
+ navigationStyle: {
93
+ desktop: 'outside'
94
+ },
95
+ arrowIconSize: {
96
+ desktop: 24
93
97
  }
94
98
  },
95
99
  styles: {
@@ -154,7 +154,7 @@ const productFeatureImageSetting = [
154
154
  {
155
155
  id: 'ftLoop',
156
156
  type: 'toggle',
157
- devices: getDefaultResponsive(false)
157
+ devices: getDefaultResponsive(true)
158
158
  },
159
159
  {
160
160
  id: 'ftPauseOnHover',
@@ -6,7 +6,7 @@ var thirdParty = require('../helpers/thirdParty.js');
6
6
 
7
7
  const SproutPlantTreesGrowSales = ({ setting, advanced })=>{
8
8
  const { align, appBlockId } = setting ?? {};
9
- return thirdParty.getLiquidForAppBlock(appBlockId, align, advanced?.cssClass);
9
+ return thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block`);
10
10
  };
11
11
 
12
12
  exports.default = SproutPlantTreesGrowSales;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { getClass } from './common/getClass.js';
4
4
  import { getStyle } from './common/getStyle.js';
5
5
  import { getData } from './common/common.js';
@@ -10,16 +10,15 @@ const Arrow = (props)=>{
10
10
  const { isRenderCustomIcon } = getData(props);
11
11
  const { buttonClass, buttonContentClass } = getClass(props);
12
12
  const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle(props, 'react');
13
- const customIcon = If(isRenderCustomIcon, custom ?? '', /*#__PURE__*/ jsx("svg", {
14
- height: "100%",
15
- width: "100%",
16
- xmlns: "http://www.w3.org/2000/svg",
17
- viewBox: "0 0 24 24",
18
- fill: "currentColor",
19
- children: /*#__PURE__*/ jsx("path", {
20
- d: "M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"
21
- })
22
- }));
13
+ const customIcon = If(isRenderCustomIcon, custom ?? '', `<svg
14
+ height="100%"
15
+ width="100%"
16
+ xmlns="http://www.w3.org/2000/svg"
17
+ viewBox="0 0 24 24"
18
+ fill="currentColor"
19
+ >
20
+ <path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z" />
21
+ </svg>`);
23
22
  const buttonContent = /*#__PURE__*/ jsx("div", {
24
23
  className: buttonContentClass,
25
24
  style: buttonContentStyle,
@@ -26,7 +26,7 @@ const getClass = (props)=>{
26
26
  [classAction]: true
27
27
  },
28
28
  ...{
29
- hidden: isHiddenWhenDisabled && disabled,
29
+ 'gp-invisible': isHiddenWhenDisabled && disabled,
30
30
  'gp-cursor-default gp-text-gray-300': disabled,
31
31
  'gp-cursor-pointer gp-text-gray-500': !disabled,
32
32
  '!gp-invisible group-hover/carousel:!gp-visible': showWhenHover,
@@ -16,7 +16,7 @@ const getClass = (props)=>{
16
16
  }
17
17
  });
18
18
  const carouselItemInnerClass = createClass({
19
- 'gp-h-full gp-w-full': true
19
+ 'gp-w-full': true
20
20
  });
21
21
  return {
22
22
  carouselItemClass,
@@ -19,7 +19,7 @@ const Carousel = /*#__PURE__*/ forwardRef((props, ref)=>{
19
19
  setting
20
20
  };
21
21
  const { arrowButtonSize, arrowBackgroundColor, arrowGapToEachSide = '16', roundedArrow, arrowIconSize, arrowCustomColor, arrowBorder, arrowShadow, showWhenHover } = setting ?? {};
22
- const { totalSlideItem, isInfinity, slider, currentSlide, localRef, showNavigation, isRenderDots, handleDotClick, getItemsPerPage, sliderRef, handleNextAndPrevSlide, dispatchEventSelectSlide, getNumberOfFullWidthShow } = useCarousel(renderData, ref);
22
+ const { totalSlideItem, isInfinity, slider, currentSlide, localRef, showNavigation, isRenderDots, slideMaxIndex, handleDotClick, getItemsPerPage, sliderRef, handleNextAndPrevSlide, dispatchEventSelectSlide, getNumberOfFullWidthShow } = useCarousel(renderData, ref);
23
23
  const { loopConfig, arrowShowConfig } = getData(renderData);
24
24
  const { rootClassRender, wrapperClassRender, wrapperInnerClass, sliderClass } = getClass(renderData);
25
25
  const { rootStyleRender, wrapperStyleRender, wrapperInnerStyle } = getStyle(renderData);
@@ -28,6 +28,7 @@ const Carousel = /*#__PURE__*/ forwardRef((props, ref)=>{
28
28
  const enabledSneakPeak = setting?.sneakPeak?.[currentDevice];
29
29
  const renderArrow = (position)=>{
30
30
  const isNext = position === 'next';
31
+ const isDisable = isNext ? !isInfinity && slider?.track?.details?.abs === slideMaxIndex : !isInfinity && slider?.track?.details?.abs === 0;
31
32
  return /*#__PURE__*/ jsx(Arrow, {
32
33
  uid: builderProps?.uid,
33
34
  custom: setting?.arrowCustom ?? '',
@@ -46,7 +47,7 @@ const Carousel = /*#__PURE__*/ forwardRef((props, ref)=>{
46
47
  handleNextAndPrevSlide(position);
47
48
  },
48
49
  left: !isNext,
49
- disabled: !isInfinity && slider?.track?.details?.abs === 0,
50
+ disabled: isDisable,
50
51
  vertical: setting?.vertical,
51
52
  isHiddenWhenDisabled: isHiddenArrowWhenDisabled,
52
53
  rootId: props?.parentClass
@@ -59,6 +59,7 @@ const carouselNavigationSettings = {
59
59
  },
60
60
  fixedValue: 'Edit',
61
61
  iconName: 'polaris-measurement-size',
62
+ isHideClear: true,
62
63
  controls: [
63
64
  {
64
65
  setting: {
@@ -10,6 +10,7 @@ const Modal = ({ setting, styles, children, willUnmount, closeOnEscape, onKeypre
10
10
  const { open } = setting ?? {};
11
11
  const container = useModalContainer();
12
12
  const overlay = useRef(null);
13
+ const closeButton = useRef(null);
13
14
  const keyboardClose = useCallback((event)=>{
14
15
  const keyCode = event.code;
15
16
  const isKeyCodeEscape = keyCode === 'Escape';
@@ -34,7 +35,8 @@ const Modal = ({ setting, styles, children, willUnmount, closeOnEscape, onKeypre
34
35
  ]);
35
36
  const handleClickOverlay = useCallback((e)=>{
36
37
  const isClickOutside = e.target === overlay.current;
37
- if (closeOnClickOutside && isClickOutside) {
38
+ const isClickCloseButton = e.target === closeButton.current;
39
+ if (closeOnClickOutside && isClickOutside || isClickCloseButton) {
38
40
  window?.parent?.postMessage?.(JSON.stringify({
39
41
  type: 'active-modal',
40
42
  value: false
@@ -73,7 +75,7 @@ const Modal = ({ setting, styles, children, willUnmount, closeOnEscape, onKeypre
73
75
  /*#__PURE__*/ jsx("span", {
74
76
  className: "gp-inline-block gp-h-screen gp-align-middle"
75
77
  }),
76
- /*#__PURE__*/ jsx("div", {
78
+ /*#__PURE__*/ jsxs("div", {
77
79
  className: cls('gp-relative gp-my-8 gp-inline-block gp-w-full gp-overflow-hidden gp-rounded gp-bg-white gp-p-6 gp-text-left gp-align-middle gp-shadow-xl gp-transition-all gp-duration-100', {
78
80
  'gp-max-w-2xl': !styles?.width,
79
81
  'gp-scale-100 gp-opacity-100': open,
@@ -82,9 +84,28 @@ const Modal = ({ setting, styles, children, willUnmount, closeOnEscape, onKeypre
82
84
  style: {
83
85
  width: styles?.width
84
86
  },
85
- children: /*#__PURE__*/ jsx("div", {
86
- children: isEmptyChildren(children) ? /*#__PURE__*/ jsx(ChildrenDroppable, {}) : children
87
- })
87
+ children: [
88
+ /*#__PURE__*/ jsx("div", {
89
+ className: "gp-absolute gp-right-[16px] gp-top-[16px] gp-z-10 gp-cursor-pointer",
90
+ onClick: handleClickOverlay,
91
+ "aria-hidden": "true",
92
+ children: /*#__PURE__*/ jsx("svg", {
93
+ ref: closeButton,
94
+ width: "16",
95
+ height: "16",
96
+ viewBox: "0 0 16 16",
97
+ fill: "none",
98
+ xmlns: "http://www.w3.org/2000/svg",
99
+ children: /*#__PURE__*/ jsx("path", {
100
+ d: "M11.1758 12.0241C11.4101 12.2584 11.79 12.2584 12.0243 12.0241C12.2586 11.7898 12.2586 11.4099 12.0243 11.1755L8.84858 7.9998L12.0243 4.82407C12.2586 4.58975 12.2586 4.20986 12.0243 3.97554C11.79 3.74123 11.4101 3.74123 11.1758 3.97554L8.00005 7.15128L4.82431 3.97554C4.59 3.74123 4.2101 3.74123 3.97578 3.97554C3.74147 4.20986 3.74147 4.58975 3.97578 4.82407L7.15152 7.9998L3.97579 11.1755C3.74147 11.4099 3.74147 11.7898 3.97579 12.0241C4.2101 12.2584 4.59 12.2584 4.82431 12.0241L8.00005 8.84833L11.1758 12.0241Z",
101
+ fill: "#676767"
102
+ })
103
+ })
104
+ }),
105
+ /*#__PURE__*/ jsx("div", {
106
+ children: isEmptyChildren(children) ? /*#__PURE__*/ jsx(ChildrenDroppable, {}) : children
107
+ })
108
+ ]
88
109
  })
89
110
  ]
90
111
  })
@@ -188,7 +188,7 @@ const getGalleryCarouselStyle = (setting)=>{
188
188
  const getWidthByLayoutForCarouselByDevice = (device)=>{
189
189
  const layout = getResponsiveValueByScreen(setting?.position, device);
190
190
  const isLayoutBottom = layout === 'bottom-center' || layout === 'inside-bottom';
191
- const isInsideLayout = layout === 'inside-left' || layout === 'inside-right';
191
+ const isInsideLayout = layout === 'inside-left' || layout === 'inside-right' || layout === 'left' || layout === 'right';
192
192
  const shapeSetting = getResponsiveValueByScreen(shapeByLayout, device);
193
193
  return isLayoutBottom || isInsideLayout || !shapeSetting?.width ? '100%' : shapeSetting.width;
194
194
  };
@@ -136,7 +136,10 @@ const ProductGalleryGrid = ({ builderPropUID, wrapperStyle, children, enableLazy
136
136
  layout: setting?.layout,
137
137
  qualityType: setting?.qualityType,
138
138
  qualityPercent: setting?.qualityPercent
139
- }, {})}
139
+ }, {
140
+ width: '100%',
141
+ height: '100%'
142
+ })}
140
143
 
141
144
  <div class="gp-absolute gp-inset-0 gp-flex gp-cursor-pointer gp-items-center gp-justify-center gp-bg-black/50 gp-opacity-0 gp-transition-opacity gp-duration-100 group-hover:gp-opacity-100"
142
145
  style="${getStyleOfObject(getZoomDisplay(setting?.clickOpenLightBox))}" >
@@ -20,7 +20,7 @@ const ProductImagesLightBox = ({ builderPropUID, productImages, open, imageRatio
20
20
  productImages,
21
21
  featuredImageGlobal
22
22
  ]);
23
- const showControl = {
23
+ const navigationEnable = {
24
24
  desktop: productImages && productImages.length > 1,
25
25
  mobile: productImages && productImages?.length > 1,
26
26
  tablet: productImages && productImages?.length > 1
@@ -43,7 +43,10 @@ const ProductImagesLightBox = ({ builderPropUID, productImages, open, imageRatio
43
43
  width: '80%'
44
44
  },
45
45
  closeOnClickOutside: true,
46
- onClose: ()=>onHandleClose(),
46
+ onClose: ()=>{
47
+ onHandleClose();
48
+ console.log('onHandleClose');
49
+ },
47
50
  disableIframeClickEvent: true,
48
51
  contentClass: "mobile:!gp-w-[100%] gp-px-2 gp-pb-10",
49
52
  children: /*#__PURE__*/ jsx(Carousel, {
@@ -75,17 +78,18 @@ const ProductImagesLightBox = ({ builderPropUID, productImages, open, imageRatio
75
78
  mobile: '#121212',
76
79
  tablet: '#121212'
77
80
  },
78
- controlOverContent: {
79
- desktop: true,
80
- mobile: true,
81
- tablet: true
82
- },
83
- arrow: showControl,
84
81
  dotSize: {
85
82
  desktop: 12
86
83
  },
87
84
  dotGapToCarousel: {
88
85
  desktop: 12
86
+ },
87
+ navigationEnable,
88
+ navigationStyle: {
89
+ desktop: 'outside'
90
+ },
91
+ arrowIconSize: {
92
+ desktop: 24
89
93
  }
90
94
  },
91
95
  styles: {
@@ -152,7 +152,7 @@ const productFeatureImageSetting = [
152
152
  {
153
153
  id: 'ftLoop',
154
154
  type: 'toggle',
155
- devices: getDefaultResponsive(false)
155
+ devices: getDefaultResponsive(true)
156
156
  },
157
157
  {
158
158
  id: 'ftPauseOnHover',
@@ -2,7 +2,7 @@ import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
2
2
 
3
3
  const SproutPlantTreesGrowSales = ({ setting, advanced })=>{
4
4
  const { align, appBlockId } = setting ?? {};
5
- return getLiquidForAppBlock(appBlockId, align, advanced?.cssClass);
5
+ return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block`);
6
6
  };
7
7
 
8
8
  export { SproutPlantTreesGrowSales as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.640",
3
+ "version": "2.0.0-dev.643",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "scan-all-text": "node ./scripts/scan-all-text.js"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "2.0.0-dev.640",
28
+ "@gem-sdk/core": "2.0.0-dev.641",
29
29
  "@gem-sdk/styles": "2.0.0-dev.571",
30
30
  "@gem-sdk/system": "2.0.0-dev.504",
31
31
  "@types/react-transition-group": "^4.4.5",