@gem-sdk/components 2.0.0-staging.1006 → 2.0.0-staging.1007

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 getStyles=e=>{let{valueBgColor:o,valueTextColor:t,fullWidth:r,width:c,height:l,borderInput:s,borderRadius:a,hasShadowInput:S,shadowInput:d}=e??{},g=core.makeStyleResponsive("w",core.makeWidth(c,r)),n=l?core.makeStyleResponsive("h",l):{},y=core.getGlobalColorStateResponsiveStyle("bg",o);y["--focus-bg"]||(y["--focus-bg"]=y["--bg"]);let h=core.getGlobalColorStateStyle("c",t);return h["--focus-c"]||(h["--focus-c"]=h["--c"]),{...g,...core.handleConvertBorderStyle(s),...core.handleConvertBorderWidth(s),...core.handleConvertBorderColor(s),...y,...h,...n,...core.composeRadius(a),...core.getStyleShadowState(d,"box-shadow",S)}};exports.getStyles=getStyles;
1
+ "use strict";var core=require("@gem-sdk/core");const getStyles=e=>{let{valueBgColor:o,valueTextColor:t,valueTypo:r,valueTypography:c,fullWidth:l,width:s,height:a,borderInput:S,borderRadius:d,hasShadowInput:g,shadowInput:y}=e??{},n=core.composeTypographyStyle(r,c),h=core.makeStyleResponsive("w",core.makeWidth(s,l)),i=a?core.makeStyleResponsive("h",a):{},p=core.getGlobalColorStateResponsiveStyle("bg",o);p["--focus-bg"]||(p["--focus-bg"]=p["--bg"]);let u=core.getGlobalColorStateStyle("c",t);return u["--focus-c"]||(u["--focus-c"]=u["--c"]),{...h,...core.handleConvertBorderStyle(S),...core.handleConvertBorderWidth(S),...core.handleConvertBorderColor(S),...p,...u,...i,...core.composeRadius(d),...core.getStyleShadowState(y,"box-shadow",g),...n}};exports.getStyles=getStyles;
@@ -1 +1 @@
1
- import{makeStyleResponsive as e,makeWidth as o,getGlobalColorStateResponsiveStyle as t,getGlobalColorStateStyle as c,handleConvertBorderStyle as s,handleConvertBorderWidth as g,handleConvertBorderColor as r,composeRadius as b,getStyleShadowState as f}from"@gem-sdk/core";let getStyles=l=>{let{valueBgColor:u,valueTextColor:m,fullWidth:d,width:h,height:p,borderInput:w,borderRadius:x,hasShadowInput:y,shadowInput:S}=l??{},a=e("w",o(h,d)),i=p?e("h",p):{},k=t("bg",u);k["--focus-bg"]||(k["--focus-bg"]=k["--bg"]);let n=c("c",m);return n["--focus-c"]||(n["--focus-c"]=n["--c"]),{...a,...s(w),...g(w),...r(w),...k,...n,...i,...b(x),...f(S,"box-shadow",y)}};export{getStyles};
1
+ import{composeTypographyStyle as e,makeStyleResponsive as o,makeWidth as t,getGlobalColorStateResponsiveStyle as c,getGlobalColorStateStyle as s,handleConvertBorderStyle as g,handleConvertBorderWidth as r,handleConvertBorderColor as b,composeRadius as f,getStyleShadowState as l}from"@gem-sdk/core";let getStyles=u=>{let{valueBgColor:m,valueTextColor:d,valueTypo:h,valueTypography:p,fullWidth:w,width:x,height:y,borderInput:S,borderRadius:a,hasShadowInput:i,shadowInput:k}=u??{},n=e(h,p),j=o("w",t(x,w)),q=y?o("h",y):{},v=c("bg",m);v["--focus-bg"]||(v["--focus-bg"]=v["--bg"]);let z=s("c",d);return z["--focus-c"]||(z["--focus-c"]=z["--c"]),{...j,...g(S),...r(S),...b(S),...v,...z,...q,...f(a),...l(k,"box-shadow",i),...n}};export{getStyles};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.1006",
3
+ "version": "2.0.0-staging.1007",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",