@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)=>({...
|
|
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
|
|
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
|
|
2
|
-
${
|
|
3
|
-
.gp-coupon[data-active="true"] .${
|
|
4
|
-
${
|
|
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"] .${
|
|
8
|
+
.gp-coupon[data-active="true"] .${n} {
|
|
9
9
|
${o(i?.active,!0)};
|
|
10
10
|
}
|
|
11
|
-
${
|
|
12
|
-
`};return[
|
|
11
|
+
${a}
|
|
12
|
+
`};return[p("desktop"),p("tablet"),p("mobile")].join("\n").trim()};export{getButtonStyle,getButtonStyles,getInnerBorderCornerCss};
|