@gem-sdk/components 12.0.0-dev.89 → 12.0.0-dev.90

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.
@@ -1 +1 @@
1
- "use strict";var core=require("@gem-sdk/core"),system=require("@gem-sdk/system");const getStyle=e=>{let{styles:t,setting:r,style:i,rootStyles:o}=e,{arrowGapToEachSide:s="16"}=r??{},a=core.makeStyleResponsive("h",core.getHeightByShapeGlobalSize(t?.sizeSetting)),c=core.makeStyleWithDefault("w",core.getWidthByShapeGlobalSize(t?.sizeSetting,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),l=system.createStyle({...i,...!e?.isProductList&&a,...c,...core.getBgByDevice({backgroundColor:t?.backgroundColor,backgroundImage:t?.backgroundImage})}),g=system.createStyle({...core.makeContainerWidthOrHeight({vertical:r?.vertical,dotStyle:r?.dotStyle}),gap:s+"px"}),y=system.createStyle({...core.makeStyleResponsive("jc",t?.align),...o,...!!e?.isProductList&&a}),n=system.createStyle({...c,...a}),S=system.createStyle({overflow:"hidden",flex:1,width:"100%",height:"100%",transitionTimingFunction:r?.animationMode??"ease"});return{rootStyleRender:y,wrapperStyleRender:l,wrapperInnerStyle:g,sliderStyle:n,sliderWrapperStyle:S}};exports.getStyle=getStyle;
1
+ "use strict";var core=require("@gem-sdk/core"),system=require("@gem-sdk/system");const getStyle=e=>{let{styles:t,setting:r,style:i,rootStyles:o}=e,{arrowGapToEachSide:s="16"}=r??{},a=core.makeStyleResponsive("h",core.getHeightByShapeGlobalSize(t?.sizeSetting)),c=core.makeStyleWithDefault("w",core.getWidthByShapeGlobalSize(t?.sizeSetting,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),l=system.createStyle({...i,...!e?.isProductList&&a,...c,...core.getBgByDevice({backgroundColor:t?.backgroundColor,backgroundImage:t?.backgroundImage})}),g=system.createStyle({...core.makeContainerWidthOrHeight({vertical:r?.vertical,dotStyle:r?.dotStyle}),gap:s+"px"}),y=system.createStyle({...core.makeStyleResponsive("jc",t?.align),...o,...!!e?.isProductList&&a}),n=system.createStyle({...c,...a}),S=system.createStyle({overflow:"hidden",flex:1,width:"100%",height:"100%","transition-timing-function":r?.animationMode??"ease"});return{rootStyleRender:y,wrapperStyleRender:l,wrapperInnerStyle:g,sliderStyle:n,sliderWrapperStyle:S}};exports.getStyle=getStyle;
@@ -1 +1 @@
1
- import{makeStyleResponsive as t,getHeightByShapeGlobalSize as e,makeStyleWithDefault as o,getWidthByShapeGlobalSize as i,getBgByDevice as r,makeContainerWidthOrHeight as g}from"@gem-sdk/core";import{createStyle as n}from"@gem-sdk/system";let getStyle=a=>{let{styles:d,setting:l,style:c,rootStyles:s}=a,{arrowGapToEachSide:m="16"}=l??{},u=t("h",e(d?.sizeSetting)),k=o("w",i(d?.sizeSetting,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),b=n({...c,...!a?.isProductList&&u,...k,...r({backgroundColor:d?.backgroundColor,backgroundImage:d?.backgroundImage})}),p=n({...g({vertical:l?.vertical,dotStyle:l?.dotStyle}),gap:m+"px"}),w=n({...t("jc",d?.align),...s,...!!a?.isProductList&&u}),S=n({...k,...u}),h=n({overflow:"hidden",flex:1,width:"100%",height:"100%",transitionTimingFunction:l?.animationMode??"ease"});return{rootStyleRender:w,wrapperStyleRender:b,wrapperInnerStyle:p,sliderStyle:S,sliderWrapperStyle:h}};export{getStyle};
1
+ import{makeStyleResponsive as t,getHeightByShapeGlobalSize as e,makeStyleWithDefault as o,getWidthByShapeGlobalSize as i,getBgByDevice as r,makeContainerWidthOrHeight as g}from"@gem-sdk/core";import{createStyle as n}from"@gem-sdk/system";let getStyle=a=>{let{styles:d,setting:l,style:c,rootStyles:s}=a,{arrowGapToEachSide:m="16"}=l??{},u=t("h",e(d?.sizeSetting)),k=o("w",i(d?.sizeSetting,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),b=n({...c,...!a?.isProductList&&u,...k,...r({backgroundColor:d?.backgroundColor,backgroundImage:d?.backgroundImage})}),p=n({...g({vertical:l?.vertical,dotStyle:l?.dotStyle}),gap:m+"px"}),w=n({...t("jc",d?.align),...s,...!!a?.isProductList&&u}),S=n({...k,...u}),f=n({overflow:"hidden",flex:1,width:"100%",height:"100%","transition-timing-function":l?.animationMode??"ease"});return{rootStyleRender:w,wrapperStyleRender:b,wrapperInnerStyle:p,sliderStyle:S,sliderWrapperStyle:f}};export{getStyle};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "12.0.0-dev.89",
3
+ "version": "12.0.0-dev.90",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",