@gem-sdk/components 2.0.0-staging.1068 → 2.0.0-staging.1070

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.
@@ -6,6 +6,7 @@
6
6
  }
7
7
  .gp-coupon[data-active="true"] .${t} {
8
8
  ${core.composeCornerCss(n?.active,!0)};
9
+ box-shadow: ${i} !important;
9
10
  }
10
11
  `.trim();return a?`${r} {
11
12
  ${s}
@@ -23,7 +23,7 @@
23
23
  ${composeFontSize(e?.typo?.custom?.fontSize?.[t])}
24
24
  `:""}
25
25
  ${composeSpacing(t,n.padding)}
26
- ${composeSize(n.width[t]??"auto",n.height[t]??"auto",!1)}
26
+ ${composeSize(n.width[t]||"auto",n.height[t]||"auto",!1)}
27
27
  ${core.composeShadowCss({boxShadowValue:e?.boxShadowBtn?.normal,hasBoxShadow:e?.hasBoxShadowBtn?.normal})||""}
28
28
  ${core.composeCornerCss(e?.roundedBtnV2?.normal,!0)}
29
29
  ${"desktop"===t?core.composeTypographyV2Css(e?.typo,!0):""}
@@ -1,4 +1,4 @@
1
- import{makeStyleResponsive as e,getStyleShadow as t,composeBorderCss as r,composeCornerCss as o}from"@gem-sdk/core";let getButtonStyles=e=>{let t=JSON.parse(JSON.stringify(e||{}));return delete t?.borderBtnV2?.normal?.borderType,delete t?.borderBtnV2?.hover?.borderType,delete t?.borderBtnV2?.active?.borderType,delete t?.boxShadowBtn?.active,{...t,enableTextStyle:!0}},getButtonStyle=(t,r)=>({...t,...e("ta",r?.align)}),getInnerBorderCornerCss=e=>{let{uid:n,styles:a}=e;if(!n||!a)return"";let{borderBtnV2:i,roundedBtnV2:d,boxShadowBtn:l}=a,c=e=>e?t({value:e,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:!0})["--shadow"]:"none",p=l?.active?.enable!==void 0?c(l?.active??{}):"",s={desktop:"",tablet:"@media only screen and (max-width: 1024px) and (min-width: 768px)",mobile:"@media only screen and (max-width: 768px)"},u=e=>{let t=s[e],a=!!t,l=`
1
+ import{makeStyleResponsive as e,getStyleShadow as t,composeBorderCss as r,composeCornerCss as o}from"@gem-sdk/core";let getButtonStyles=e=>{let t=JSON.parse(JSON.stringify(e||{}));return delete t?.borderBtnV2?.normal?.borderType,delete t?.borderBtnV2?.hover?.borderType,delete t?.borderBtnV2?.active?.borderType,delete t?.boxShadowBtn?.active,{...t,enableTextStyle:!0}},getButtonStyle=(t,r)=>({...t,...e("ta",r?.align)}),getInnerBorderCornerCss=e=>{let{uid:n,styles:a}=e;if(!n||!a)return"";let{borderBtnV2:i,roundedBtnV2:d,boxShadowBtn:l}=a,c=e=>e?t({value:e,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:!0})["--shadow"]:"none",p=l?.active?.enable!==void 0?c(l?.active??{}):"",s={desktop:"",tablet:"@media only screen and (max-width: 1024px) and (min-width: 768px)",mobile:"@media only screen and (max-width: 768px)"},b=e=>{let t=s[e],a=!!t,l=`
2
2
  .gp-coupon[data-active="true"] .${n}::before {
3
3
  ${r(i?.active,{important:!0})};
4
4
  ${o(d?.active,!0)};
@@ -6,10 +6,11 @@ import{makeStyleResponsive as e,getStyleShadow as t,composeBorderCss as r,compos
6
6
  }
7
7
  .gp-coupon[data-active="true"] .${n} {
8
8
  ${o(d?.active,!0)};
9
+ box-shadow: ${p} !important;
9
10
  }
10
11
  `.trim();return a?`${t} {
11
12
  ${l}
12
- }`:l};return u("desktop")},getInnerActiveStyles=e=>{let t=e?.backgroundColorV2?.active,r=e?.textColor?.active;if(!t&&!r)return"";let o=`.gp-coupon[data-active="true"] button {
13
+ }`:l};return b("desktop")},getInnerActiveStyles=e=>{let t=e?.backgroundColorV2?.active,r=e?.textColor?.active;if(!t&&!r)return"";let o=`.gp-coupon[data-active="true"] button {
13
14
  `;return t&&(o+=` background-color: ${t} !important;
14
15
  `),r&&(o+=` color: ${r} !important;
15
16
  `),o+="}"};export{getButtonStyle,getButtonStyles,getInnerActiveStyles,getInnerBorderCornerCss};
@@ -23,7 +23,7 @@ import{getWidthHeightGlobalSize as t,getPaddingGlobalSize as o,composeShadowCss
23
23
  ${composeFontSize(p?.typo?.custom?.fontSize?.[o])}
24
24
  `:""}
25
25
  ${composeSpacing(o,b.padding)}
26
- ${composeSize(b.width[o]??"auto",b.height[o]??"auto",!1)}
26
+ ${composeSize(b.width[o]||"auto",b.height[o]||"auto",!1)}
27
27
  ${n({boxShadowValue:p?.boxShadowBtn?.normal,hasBoxShadow:p?.hasBoxShadowBtn?.normal})||""}
28
28
  ${e(p?.roundedBtnV2?.normal,!0)}
29
29
  ${"desktop"===o?a(p?.typo,!0):""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.1068",
3
+ "version": "2.0.0-staging.1070",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",