@gem-sdk/components 2.0.0-staging.942 → 2.0.0-staging.943

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,9 +1,9 @@
1
- "use strict";var core=require("@gem-sdk/core");const getButtonStyles=(e,t)=>({...e,enableTextStyle:!0,...t&&{boxShadowBtn:{...e?.boxShadowBtn,focus:void 0}}}),getButtonStyle=(e,t)=>({...e,...core.makeStyleResponsive("ta",t?.align)}),getInnerBorderCornerCss=e=>{let{uid:t,styles:o}=e,r=o?.borderBtnV2,n=o?.roundedBtnV2,s=o?.boxShadowBtn,a=e=>e?core.getStyleShadow({value:e,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:!0})["--shadow"]:"none",d={desktop:"",tablet:"@media only screen and (max-width: 1024px) and (min-width: 768px)",mobile:"@media only screen and (max-width: 768px)"},i=e=>{let o=d[e]?`${d[e]} {`:"",i=o?"}":"";return`
1
+ "use strict";var core=require("@gem-sdk/core");const getButtonStyles=(e,t)=>{let o=JSON.parse(JSON.stringify(e||{}));return delete o?.borderBtnV2?.normal?.borderType,delete o?.borderBtnV2?.hover?.borderType,delete o?.borderBtnV2?.active?.borderType,{...o,enableTextStyle:!0,...t&&{boxShadowBtn:{...o?.boxShadowBtn,focus:void 0}}}},getButtonStyle=(e,t)=>({...e,...core.makeStyleResponsive("ta",t?.align)}),getInnerBorderCornerCss=e=>{let{uid:t,styles:o}=e,r=o?.borderBtnV2,n=o?.roundedBtnV2,a=o?.boxShadowBtn,s=e=>e?core.getStyleShadow({value:e,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:!0})["--shadow"]:"none",d={desktop:"",tablet:"@media only screen and (max-width: 1024px) and (min-width: 768px)",mobile:"@media only screen and (max-width: 768px)"},i=e=>{let o=d[e]?`${d[e]} {`:"",i=o?"}":"";return`
2
2
  ${o}
3
3
  .gp-coupon[data-active="true"] .${t}::before {
4
4
  ${core.composeBorderCss(r?.active,{important:!0})};
5
5
  ${core.composeCornerCss(n?.active,!0)};
6
- box-shadow: ${a(s?.active??{})} !important;
6
+ box-shadow: ${s(a?.active??{})} !important;
7
7
  }
8
8
  .gp-coupon[data-active="true"] .${t} {
9
9
  ${core.composeCornerCss(n?.active,!0)};
@@ -1,12 +1,12 @@
1
- import{makeStyleResponsive as t,composeBorderCss as e,composeCornerCss as o,getStyleShadow as n}from"@gem-sdk/core";let getButtonStyles=(t,e)=>({...t,enableTextStyle:!0,...e&&{boxShadowBtn:{...t?.boxShadowBtn,focus:void 0}}}),getButtonStyle=(e,o)=>({...e,...t("ta",o?.align)}),getInnerBorderCornerCss=t=>{let{uid:a,styles:r}=t,d=r?.borderBtnV2,i=r?.roundedBtnV2,l=r?.boxShadowBtn,s=t=>t?n({value:t,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:!0})["--shadow"]:"none",p={desktop:"",tablet:"@media only screen and (max-width: 1024px) and (min-width: 768px)",mobile:"@media only screen and (max-width: 768px)"},b=t=>{let n=p[t]?`${p[t]} {`:"",r=n?"}":"";return`
2
- ${n}
3
- .gp-coupon[data-active="true"] .${a}::before {
4
- ${e(d?.active,{important:!0})};
1
+ import{makeStyleResponsive as e,composeBorderCss as t,composeCornerCss as o,getStyleShadow as r}from"@gem-sdk/core";let getButtonStyles=(e,t)=>{let o=JSON.parse(JSON.stringify(e||{}));return delete o?.borderBtnV2?.normal?.borderType,delete o?.borderBtnV2?.hover?.borderType,delete o?.borderBtnV2?.active?.borderType,{...o,enableTextStyle:!0,...t&&{boxShadowBtn:{...o?.boxShadowBtn,focus:void 0}}}},getButtonStyle=(t,o)=>({...t,...e("ta",o?.align)}),getInnerBorderCornerCss=e=>{let{uid:n,styles:a}=e,d=a?.borderBtnV2,i=a?.roundedBtnV2,l=a?.boxShadowBtn,s=e=>e?r({value:e,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:!0})["--shadow"]:"none",b={desktop:"",tablet:"@media only screen and (max-width: 1024px) and (min-width: 768px)",mobile:"@media only screen and (max-width: 768px)"},p=e=>{let r=b[e]?`${b[e]} {`:"",a=r?"}":"";return`
2
+ ${r}
3
+ .gp-coupon[data-active="true"] .${n}::before {
4
+ ${t(d?.active,{important:!0})};
5
5
  ${o(i?.active,!0)};
6
6
  box-shadow: ${s(l?.active??{})} !important;
7
7
  }
8
- .gp-coupon[data-active="true"] .${a} {
8
+ .gp-coupon[data-active="true"] .${n} {
9
9
  ${o(i?.active,!0)};
10
10
  }
11
- ${r}
12
- `};return[b("desktop"),b("tablet"),b("mobile")].join("\n").trim()};export{getButtonStyle,getButtonStyles,getInnerBorderCornerCss};
11
+ ${a}
12
+ `};return[p("desktop"),p("tablet"),p("mobile")].join("\n").trim()};export{getButtonStyle,getButtonStyles,getInnerBorderCornerCss};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.942",
3
+ "version": "2.0.0-staging.943",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",