@gem-sdk/components 2.0.0-staging.732 → 2.0.0-staging.733

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"),helpers=require("../../../helpers.js");const getWrapperStyle=(e,t)=>{let{align:r}=t??{},o={...e,...core.makeStyleResponsive("ta",r)};return helpers.filterTruthyStyles(o)},getContainerStyle=e=>{let{bgColor:t,iconBorder:r,iconRounded:o,globalSize:l,iconShadow:i}=e??{},h=core.makeGlobalSizeIcon(l),a={...h.padding,...core.handleConvertBorderStyle(r),...core.handleConvertBorderWidth(r),...core.handleConvertBorderColor(r),...core.composeRadius(o),...core.getGlobalColorStateStyle("bg",t),...core.getResponsiveStyleShadowWithoutState(i,"box-shadow",i)};return helpers.filterTruthyStyles(a)},getIconStyle=e=>{let{globalSize:t,color:r,spin:o,iconRotate:l}=e??{},i=()=>o?0:l||0,h=core.makeGlobalSizeIcon(t),a={...core.getGlobalColorStateStyle("c",r),...core.makeStyle({t:`rotate(${i()}deg)`}),...h.width,...h.height,...h.minWidth,"--height-desktop":`${t?.desktop?.width}`,"--height-tablet":`${t?.tablet?.width||t?.desktop?.width}`,"--height-mobile":`${t?.mobile?.width||t?.tablet?.width||t?.desktop?.width}`};return helpers.filterTruthyStyles(a)};exports.getContainerStyle=getContainerStyle,exports.getIconStyle=getIconStyle,exports.getWrapperStyle=getWrapperStyle;
1
+ "use strict";var core=require("@gem-sdk/core"),helpers=require("../../../helpers.js");const getWrapperStyle=(e,t)=>{let{align:r}=t??{},o={...e,...core.makeStyleResponsive("ta",r)};return helpers.filterTruthyStyles(o)},getContainerStyle=e=>{let{bgColor:t,iconBorder:r,iconRounded:o,globalSize:l,iconShadow:a}=e??{},i=core.makeGlobalSizeIcon(l),h={...i.padding,...core.handleConvertBorderStyle(r),...core.handleConvertBorderWidth(r),...core.handleConvertBorderColor(r),...core.composeRadius(o),...core.getGlobalColorStateStyle("bg",t),...core.getStyleShadow({value:a,styleAppliedFor:"box-shadow",isEnableShadow:a?.enable})};return helpers.filterTruthyStyles(h)},getIconStyle=e=>{let{globalSize:t,color:r,spin:o,iconRotate:l}=e??{},a=()=>o?0:l||0,i=core.makeGlobalSizeIcon(t),h={...core.getGlobalColorStateStyle("c",r),...core.makeStyle({t:`rotate(${a()}deg)`}),...i.width,...i.height,...i.minWidth,"--height-desktop":`${t?.desktop?.width}`,"--height-tablet":`${t?.tablet?.width||t?.desktop?.width}`,"--height-mobile":`${t?.mobile?.width||t?.tablet?.width||t?.desktop?.width}`};return helpers.filterTruthyStyles(h)};exports.getContainerStyle=getContainerStyle,exports.getIconStyle=getIconStyle,exports.getWrapperStyle=getWrapperStyle;
@@ -1,2 +1,2 @@
1
1
  "use strict";const IconSettings=[{id:"setting",controls:[{id:"iconSvg",type:"icon",label:"Icon",info:"Choose from list or paste any SVG icon",default:`<svg height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414815326568808">
2
- <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"></path></svg>`},{id:"iconLinkEnable",type:"toggle",default:!0},{id:"iconLink",type:"pick-link",label:"Source URL",default:{type:"open-page",link:"",target:"_self",title:""},hiddenOptions:{"stay-on-page":!0}}]},{id:"style",controls:[{id:"iconWidth",type:"input:unit",label:"Icon Width",units:["px"],devices:{desktop:{default:"20px"}}},{id:"iconSpacing",label:"Icon Spacing",type:"size",hasNoneValue:!0,emptyOnClear:!0,default:{type:"none"},ignoreReRender:!0},{id:"bgColor",type:"color-picker-v2",state:{hover:!0,normal:!0}},{id:"color",type:"color-picker-v2",label:"Color",default:{normal:"line-3"},state:{hover:!0,normal:!0}},{id:"iconBorder",type:"border-v2",label:"Border",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#000000",isCustom:!1}},state:{hover:!0,normal:!0}},{id:"iconRounded",type:"corner-v2",label:"Border Radius",default:{hover:{radiusType:"none"},normal:{radiusType:"none"}},state:{hover:!0,normal:!0}},{id:"iconShadow",type:"shadow-v2",devices:{desktop:{default:{enable:!1}}},compoDefaultValue:{desktop:{default:{type:"shadow-2",distance:"12px",blur:"12px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}},{id:"spin",type:"toggle",label:"Spin",default:!1},{id:"iconRotate",type:"angle",label:"Icon Rotate",info:"Rotate this icon",default:0,max:359,min:0},{id:"align",label:"Alignment",type:"option:value",devices:{desktop:{default:"center"}},options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}]},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"24px",padding:{type:"custom"},isDropDownWidth:!0}}},settingConfig:{padding:{paddingConfig:{small:{vertical:"8px",horizontal:"8px"},medium:{vertical:"16px",horizontal:"16px"},large:{vertical:"24px",horizontal:"24px"},custom:{vertical:"0px",horizontal:"0px"}}}},hiddenSettings:["shape","height","gap"]}]}];exports.IconSettings=IconSettings;
2
+ <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"></path></svg>`},{id:"iconLinkEnable",type:"toggle",default:!0},{id:"iconLink",type:"pick-link",label:"Source URL",default:{type:"open-page",link:"",target:"_self",title:""},hiddenOptions:{"stay-on-page":!0}}]},{id:"style",controls:[{id:"iconWidth",type:"input:unit",label:"Icon Width",units:["px"],devices:{desktop:{default:"20px"}}},{id:"iconSpacing",label:"Icon Spacing",type:"size",hasNoneValue:!0,emptyOnClear:!0,default:{type:"none"},ignoreReRender:!0},{id:"bgColor",type:"color-picker-v2",state:{hover:!0,normal:!0}},{id:"color",type:"color-picker-v2",label:"Color",default:{normal:"line-3"},state:{hover:!0,normal:!0}},{id:"iconBorder",type:"border-v2",label:"Border",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#000000",isCustom:!1}},state:{hover:!0,normal:!0}},{id:"iconRounded",type:"corner-v2",label:"Border Radius",default:{hover:{radiusType:"none"},normal:{radiusType:"none"}},state:{hover:!0,normal:!0}},{id:"iconShadow",type:"shadow-v2",default:{enable:!1},compoDefaultValue:{type:"shadow-2",distance:"12px",blur:"12px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}},{id:"spin",type:"toggle",label:"Spin",default:!1},{id:"iconRotate",type:"angle",label:"Icon Rotate",info:"Rotate this icon",default:0,max:359,min:0},{id:"align",label:"Alignment",type:"option:value",devices:{desktop:{default:"center"}},options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}]},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"24px",padding:{type:"custom"},isDropDownWidth:!0}}},settingConfig:{padding:{paddingConfig:{small:{vertical:"8px",horizontal:"8px"},medium:{vertical:"16px",horizontal:"16px"},large:{vertical:"24px",horizontal:"24px"},custom:{vertical:"0px",horizontal:"0px"}}}},hiddenSettings:["shape","height","gap"]}]}];exports.IconSettings=IconSettings;
@@ -1 +1 @@
1
- import{makeStyleResponsive as t,makeGlobalSizeIcon as e,handleConvertBorderStyle as i,handleConvertBorderWidth as r,handleConvertBorderColor as o,composeRadius as h,getGlobalColorStateStyle as d,getResponsiveStyleShadowWithoutState as l,makeStyle as g}from"@gem-sdk/core";import{filterTruthyStyles as p}from"../../../helpers.js";let getWrapperStyle=(e,i)=>{let{align:r}=i??{},o={...e,...t("ta",r)};return p(o)},getContainerStyle=t=>{let{bgColor:g,iconBorder:a,iconRounded:n,globalSize:m,iconShadow:s}=t??{},w=e(m),b={...w.padding,...i(a),...r(a),...o(a),...h(n),...d("bg",g),...l(s,"box-shadow",s)};return p(b)},getIconStyle=t=>{let{globalSize:i,color:r,spin:o,iconRotate:h}=t??{},l=()=>o?0:h||0,a=e(i),n={...d("c",r),...g({t:`rotate(${l()}deg)`}),...a.width,...a.height,...a.minWidth,"--height-desktop":`${i?.desktop?.width}`,"--height-tablet":`${i?.tablet?.width||i?.desktop?.width}`,"--height-mobile":`${i?.mobile?.width||i?.tablet?.width||i?.desktop?.width}`};return p(n)};export{getContainerStyle,getIconStyle,getWrapperStyle};
1
+ import{makeStyleResponsive as t,makeGlobalSizeIcon as e,handleConvertBorderStyle as i,handleConvertBorderWidth as l,handleConvertBorderColor as o,composeRadius as r,getGlobalColorStateStyle as d,getStyleShadow as h,makeStyle as a}from"@gem-sdk/core";import{filterTruthyStyles as p}from"../../../helpers.js";let getWrapperStyle=(e,i)=>{let{align:l}=i??{},o={...e,...t("ta",l)};return p(o)},getContainerStyle=t=>{let{bgColor:a,iconBorder:g,iconRounded:n,globalSize:s,iconShadow:b}=t??{},w=e(s),m={...w.padding,...i(g),...l(g),...o(g),...r(n),...d("bg",a),...h({value:b,styleAppliedFor:"box-shadow",isEnableShadow:b?.enable})};return p(m)},getIconStyle=t=>{let{globalSize:i,color:l,spin:o,iconRotate:r}=t??{},h=()=>o?0:r||0,g=e(i),n={...d("c",l),...a({t:`rotate(${h()}deg)`}),...g.width,...g.height,...g.minWidth,"--height-desktop":`${i?.desktop?.width}`,"--height-tablet":`${i?.tablet?.width||i?.desktop?.width}`,"--height-mobile":`${i?.mobile?.width||i?.tablet?.width||i?.desktop?.width}`};return p(n)};export{getContainerStyle,getIconStyle,getWrapperStyle};
@@ -1,2 +1,2 @@
1
1
  let IconSettings=[{id:"setting",controls:[{id:"iconSvg",type:"icon",label:"Icon",info:"Choose from list or paste any SVG icon",default:`<svg height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414815326568808">
2
- <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"></path></svg>`},{id:"iconLinkEnable",type:"toggle",default:!0},{id:"iconLink",type:"pick-link",label:"Source URL",default:{type:"open-page",link:"",target:"_self",title:""},hiddenOptions:{"stay-on-page":!0}}]},{id:"style",controls:[{id:"iconWidth",type:"input:unit",label:"Icon Width",units:["px"],devices:{desktop:{default:"20px"}}},{id:"iconSpacing",label:"Icon Spacing",type:"size",hasNoneValue:!0,emptyOnClear:!0,default:{type:"none"},ignoreReRender:!0},{id:"bgColor",type:"color-picker-v2",state:{hover:!0,normal:!0}},{id:"color",type:"color-picker-v2",label:"Color",default:{normal:"line-3"},state:{hover:!0,normal:!0}},{id:"iconBorder",type:"border-v2",label:"Border",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#000000",isCustom:!1}},state:{hover:!0,normal:!0}},{id:"iconRounded",type:"corner-v2",label:"Border Radius",default:{hover:{radiusType:"none"},normal:{radiusType:"none"}},state:{hover:!0,normal:!0}},{id:"iconShadow",type:"shadow-v2",devices:{desktop:{default:{enable:!1}}},compoDefaultValue:{desktop:{default:{type:"shadow-2",distance:"12px",blur:"12px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}},{id:"spin",type:"toggle",label:"Spin",default:!1},{id:"iconRotate",type:"angle",label:"Icon Rotate",info:"Rotate this icon",default:0,max:359,min:0},{id:"align",label:"Alignment",type:"option:value",devices:{desktop:{default:"center"}},options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}]},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"24px",padding:{type:"custom"},isDropDownWidth:!0}}},settingConfig:{padding:{paddingConfig:{small:{vertical:"8px",horizontal:"8px"},medium:{vertical:"16px",horizontal:"16px"},large:{vertical:"24px",horizontal:"24px"},custom:{vertical:"0px",horizontal:"0px"}}}},hiddenSettings:["shape","height","gap"]}]}];export{IconSettings};
2
+ <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"></path></svg>`},{id:"iconLinkEnable",type:"toggle",default:!0},{id:"iconLink",type:"pick-link",label:"Source URL",default:{type:"open-page",link:"",target:"_self",title:""},hiddenOptions:{"stay-on-page":!0}}]},{id:"style",controls:[{id:"iconWidth",type:"input:unit",label:"Icon Width",units:["px"],devices:{desktop:{default:"20px"}}},{id:"iconSpacing",label:"Icon Spacing",type:"size",hasNoneValue:!0,emptyOnClear:!0,default:{type:"none"},ignoreReRender:!0},{id:"bgColor",type:"color-picker-v2",state:{hover:!0,normal:!0}},{id:"color",type:"color-picker-v2",label:"Color",default:{normal:"line-3"},state:{hover:!0,normal:!0}},{id:"iconBorder",type:"border-v2",label:"Border",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#000000",isCustom:!1}},state:{hover:!0,normal:!0}},{id:"iconRounded",type:"corner-v2",label:"Border Radius",default:{hover:{radiusType:"none"},normal:{radiusType:"none"}},state:{hover:!0,normal:!0}},{id:"iconShadow",type:"shadow-v2",default:{enable:!1},compoDefaultValue:{type:"shadow-2",distance:"12px",blur:"12px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}},{id:"spin",type:"toggle",label:"Spin",default:!1},{id:"iconRotate",type:"angle",label:"Icon Rotate",info:"Rotate this icon",default:0,max:359,min:0},{id:"align",label:"Alignment",type:"option:value",devices:{desktop:{default:"center"}},options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}]},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"24px",padding:{type:"custom"},isDropDownWidth:!0}}},settingConfig:{padding:{paddingConfig:{small:{vertical:"8px",horizontal:"8px"},medium:{vertical:"16px",horizontal:"16px"},large:{vertical:"24px",horizontal:"24px"},custom:{vertical:"0px",horizontal:"0px"}}}},hiddenSettings:["shape","height","gap"]}]}];export{IconSettings};
@@ -1954,7 +1954,7 @@ type IconProps = {
1954
1954
  iconRounded?: StateProp<CornerRadius>;
1955
1955
  iconSpacing?: SizeSetting;
1956
1956
  globalSize?: ObjectDevices$1<SizeSettingGlobal>;
1957
- iconShadow?: ObjectDevices$1<ShadowProps$1>;
1957
+ iconShadow?: ShadowProps$1;
1958
1958
  }> & {
1959
1959
  advanced?: any;
1960
1960
  } & Omit<React.ComponentPropsWithoutRef<'div'>, ''>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.732",
3
+ "version": "2.0.0-staging.733",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",