@gem-sdk/components 2.0.0-staging.971 → 2.0.0-staging.972
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");const composeGlobalSize=e=>core.makeGlobalSize(e?.size),composePaddingSize=e=>core.makeGlobalSize(e?.paddingSize),appendTypoStyle=e=>core.composeTypographyStyle(e?.typo),createContentWithStyles=(e,t)=>({...core.makeStyle({jc:e?.arrangeContent}),...core.makeStyleResponsive("w",e?.contentWidth),...composePaddingSize(e).padding,...composeGlobalSize(e).height,...core.makeStyleState("bg",t?.backgroundColor),...core.composeRadius(t?.roundedBtn),...core.handleConvertBorderWidth(t?.borderBtn),...core.handleConvertBorderStyle(t?.borderBtn),...core.handleConvertBorderColor(t?.borderBtn),...core.getStyleShadowState(t?.boxShadowBtn,"box-shadow",t?.hasBoxShadowBtn)}),createLayoutStyles=(e,t)=>({...core.getGlobalColorStateStyle("c",t?.textColor),...core.makeStyleResponsive("gg",t?.spacing),...e?.fileUploadLayout==="horizontal"?{...core.makeStyle({ai:e?.positionHorizontal})}:{}}),createIconContainerStyles=e=>({...e?.fileUploadLayout==="vertical"?{...core.makeStyle({w:"100%",jc:e?.positionVertical,o:e?.iconAlignVertical!=="above"?"1":"unset"})}:{...core.makeStyle({o:e?.iconAlignHorizontal!=="left"?"1":"unset"})}}),createIconContentStyles=(e,t)=>({...core.makeStyleResponsive("w",e?.iconSize,"px"),...core.makeStyleResponsive("h",e?.iconSize,"px"),...core.getGlobalColorStateStyle("c",t?.textColor),"--height-desktop":`${e?.iconSize?.desktop}`,"--height-tablet":`${e?.iconSize?.tablet??e?.iconSize?.desktop}`,"--height-mobile":`${e?.iconSize?.mobile??e?.iconSize?.tablet??e?.iconSize?.desktop}`}),createTypoStyles=e=>({...appendTypoStyle(e),...core.makeStyleResponsive("ta",e?.textAlign),"--hvr-c":e?.textColor?.hover??e?.textColor?.normal??"",...core.getStyleShadow({value:e?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:e?.typo?.custom?.hasShadowText})}),createMessageStyles=()=>({...core.makeStyle({c:"#DB3D31",size:"12px"})}),createWrapContentWidthStyles=e=>({...core.makeStyle({jc:e?.arrangeContent}),...composeGlobalSize(e).width}),createContainerStyles=(e,t)=>({...core.makeStyleResponsive("jc",e),"--text-hover-color":t?.hover??t?.normal
|
|
1
|
+
"use strict";var core=require("@gem-sdk/core");const composeGlobalSize=e=>core.makeGlobalSize(e?.size),composePaddingSize=e=>core.makeGlobalSize(e?.paddingSize),appendTypoStyle=e=>core.composeTypographyStyle(e?.typo),createContentWithStyles=(e,t)=>({...core.makeStyle({jc:e?.arrangeContent}),...core.makeStyleResponsive("w",e?.contentWidth),...composePaddingSize(e).padding,...composeGlobalSize(e).height,...core.makeStyleState("bg",t?.backgroundColor),...core.composeRadius(t?.roundedBtn),...core.handleConvertBorderWidth(t?.borderBtn),...core.handleConvertBorderStyle(t?.borderBtn),...core.handleConvertBorderColor(t?.borderBtn),...core.getStyleShadowState(t?.boxShadowBtn,"box-shadow",t?.hasBoxShadowBtn)}),createLayoutStyles=(e,t)=>({...core.getGlobalColorStateStyle("c",t?.textColor),...core.makeStyleResponsive("gg",t?.spacing),...e?.fileUploadLayout==="horizontal"?{...core.makeStyle({ai:e?.positionHorizontal})}:{}}),createIconContainerStyles=e=>({...e?.fileUploadLayout==="vertical"?{...core.makeStyle({w:"100%",jc:e?.positionVertical,o:e?.iconAlignVertical!=="above"?"1":"unset"})}:{...core.makeStyle({o:e?.iconAlignHorizontal!=="left"?"1":"unset"})}}),createIconContentStyles=(e,t)=>({...core.makeStyleResponsive("w",e?.iconSize,"px"),...core.makeStyleResponsive("h",e?.iconSize,"px"),...core.getGlobalColorStateStyle("c",t?.textColor),"--height-desktop":`${e?.iconSize?.desktop}`,"--height-tablet":`${e?.iconSize?.tablet??e?.iconSize?.desktop}`,"--height-mobile":`${e?.iconSize?.mobile??e?.iconSize?.tablet??e?.iconSize?.desktop}`}),createTypoStyles=e=>({...appendTypoStyle(e),...core.makeStyleResponsive("ta",e?.textAlign),"--hvr-c":e?.textColor?.hover??e?.textColor?.normal??"",...core.getStyleShadow({value:e?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:e?.typo?.custom?.hasShadowText})}),createMessageStyles=()=>({...core.makeStyle({c:"#DB3D31",size:"12px"})}),createWrapContentWidthStyles=e=>({...core.makeStyle({jc:e?.arrangeContent}),...composeGlobalSize(e).width}),createContainerStyles=(e,t)=>({...core.makeStyleResponsive("jc",e),"--text-hover-color":core.getSingleColorVariable(t?.hover??t?.normal)});exports.composeGlobalSize=composeGlobalSize,exports.composePaddingSize=composePaddingSize,exports.createContainerStyles=createContainerStyles,exports.createContentWithStyles=createContentWithStyles,exports.createIconContainerStyles=createIconContainerStyles,exports.createIconContentStyles=createIconContentStyles,exports.createLayoutStyles=createLayoutStyles,exports.createMessageStyles=createMessageStyles,exports.createTypoStyles=createTypoStyles,exports.createWrapContentWidthStyles=createWrapContentWidthStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyle as e,makeStyleResponsive as t,makeStyleState as o,composeRadius as a,handleConvertBorderWidth as n,handleConvertBorderStyle as i,handleConvertBorderColor as l,getStyleShadowState as r,getGlobalColorStateStyle as c,getStyleShadow as s,
|
|
1
|
+
import{makeStyle as e,makeStyleResponsive as t,makeStyleState as o,composeRadius as a,handleConvertBorderWidth as n,handleConvertBorderStyle as i,handleConvertBorderColor as l,getStyleShadowState as r,getGlobalColorStateStyle as c,getStyleShadow as s,getSingleColorVariable as S,makeGlobalSize as p,composeTypographyStyle as d}from"@gem-sdk/core";let composeGlobalSize=e=>p(e?.size),composePaddingSize=e=>p(e?.paddingSize),appendTypoStyle=e=>d(e?.typo),createContentWithStyles=(c,s)=>({...e({jc:c?.arrangeContent}),...t("w",c?.contentWidth),...composePaddingSize(c).padding,...composeGlobalSize(c).height,...o("bg",s?.backgroundColor),...a(s?.roundedBtn),...n(s?.borderBtn),...i(s?.borderBtn),...l(s?.borderBtn),...r(s?.boxShadowBtn,"box-shadow",s?.hasBoxShadowBtn)}),createLayoutStyles=(o,a)=>({...c("c",a?.textColor),...t("gg",a?.spacing),...o?.fileUploadLayout==="horizontal"?{...e({ai:o?.positionHorizontal})}:{}}),createIconContainerStyles=t=>({...t?.fileUploadLayout==="vertical"?{...e({w:"100%",jc:t?.positionVertical,o:t?.iconAlignVertical!=="above"?"1":"unset"})}:{...e({o:t?.iconAlignHorizontal!=="left"?"1":"unset"})}}),createIconContentStyles=(e,o)=>({...t("w",e?.iconSize,"px"),...t("h",e?.iconSize,"px"),...c("c",o?.textColor),"--height-desktop":`${e?.iconSize?.desktop}`,"--height-tablet":`${e?.iconSize?.tablet??e?.iconSize?.desktop}`,"--height-mobile":`${e?.iconSize?.mobile??e?.iconSize?.tablet??e?.iconSize?.desktop}`}),createTypoStyles=e=>({...appendTypoStyle(e),...t("ta",e?.textAlign),"--hvr-c":e?.textColor?.hover??e?.textColor?.normal??"",...s({value:e?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:e?.typo?.custom?.hasShadowText})}),createMessageStyles=()=>({...e({c:"#DB3D31",size:"12px"})}),createWrapContentWidthStyles=t=>({...e({jc:t?.arrangeContent}),...composeGlobalSize(t).width}),createContainerStyles=(e,o)=>({...t("jc",e),"--text-hover-color":S(o?.hover??o?.normal)});export{composeGlobalSize,composePaddingSize,createContainerStyles,createContentWithStyles,createIconContainerStyles,createIconContentStyles,createLayoutStyles,createMessageStyles,createTypoStyles,createWrapContentWidthStyles};
|