@gem-sdk/components 2.0.0-staging.908 → 2.0.0-staging.909

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 filterStyles=e=>{let t=["--mb","--mb-mobile","--mb-tablet"];return t.forEach(t=>{delete e?.[t]}),e},getStyleContainerIconlistMain=({styles:e,style:t,type:r})=>{let{background:o}=e??{};return{...t="react"===r?filterStyles(t):t,...core.getStyleBackgroundByDevice(o)}},getStyleWraplistIcon=({styles:e})=>{let{align:t}=e??{};return{...core.makeStyleResponsive("jc",t)}},getStyleColListIcon=({styles:e})=>{let{verticalSpacing:t}=e??{};return{...core.makeStyleResponsive("rg",t)}},getStyleWrapItemIcon=({styles:e})=>{let{horizontalSpacing:t,position:r}=e??{};return{...core.makeStyleResponsive("cg",t),...core.makeStyleResponsive("ai",r)}},getStyleWrapIcon=({styles:e,setting:t})=>{let{iconBorder:r,backgroundColor:o,iconRounded:l}=e??{},{globalSize:i}=t??{},n=core.makeGlobalSize(i);return{...n.padding,...core.makeStyle({bs:r?.border,bw:r?.width,bc:core.getSingleColorVariable(r?.color),bg:o,bblr:l?.bblr,bbrr:l?.bbrr,btlr:l?.btlr,btrr:l?.btrr}),...core.makeStyleResponsive("pos",{desktop:"relative",tablet:"relative",mobile:"relative"}),...core.makeStyleResponsive("top",{desktop:"inherit",tablet:"inherit",mobile:"inherit"})}},getStyleIcon=({styles:e,setting:t})=>{let{iconColor:r}=e||{},{iconWidth:o}=t??{};return{"--c":core.getSingleColorVariable(r),"--w":"100%","--h":"100%","--size-desktop":`${o?.desktop}px`,"--size-tablet":`${o?.tablet||o?.desktop}px`,"--size-mobile":`${o?.mobile||o?.tablet||o?.desktop}px`}},getStyleTypoText=({setting:e})=>({typo:e?.textTypo});exports.getStyleColListIcon=getStyleColListIcon,exports.getStyleContainerIconlistMain=getStyleContainerIconlistMain,exports.getStyleIcon=getStyleIcon,exports.getStyleTypoText=getStyleTypoText,exports.getStyleWrapIcon=getStyleWrapIcon,exports.getStyleWrapItemIcon=getStyleWrapItemIcon,exports.getStyleWraplistIcon=getStyleWraplistIcon;
1
+ "use strict";var core=require("@gem-sdk/core");const filterStyles=e=>{let t=["--mb","--mb-mobile","--mb-tablet"];return t.forEach(t=>{delete e?.[t]}),e},getStyleContainerIconlistMain=({styles:e,style:t,type:r})=>{let{background:o}=e??{};return{...t="react"===r?filterStyles(t):t,...core.getStyleBackgroundByDevice(o),...core.getGradientBgrStyleByDevice(o)}},getStyleWraplistIcon=({styles:e})=>{let{align:t}=e??{};return{...core.makeStyleResponsive("jc",t)}},getStyleColListIcon=({styles:e})=>{let{verticalSpacing:t}=e??{};return{...core.makeStyleResponsive("rg",t)}},getStyleWrapItemIcon=({styles:e})=>{let{horizontalSpacing:t,position:r}=e??{};return{...core.makeStyleResponsive("cg",t),...core.makeStyleResponsive("ai",r)}},getStyleWrapIcon=({styles:e,setting:t})=>{let{iconBorder:r,backgroundColor:o,iconRounded:l}=e??{},{globalSize:i}=t??{},n=core.makeGlobalSize(i);return{...n.padding,...core.makeStyle({bs:r?.border,bw:r?.width,bc:core.getSingleColorVariable(r?.color),bg:o,bblr:l?.bblr,bbrr:l?.bbrr,btlr:l?.btlr,btrr:l?.btrr}),...core.makeStyleResponsive("pos",{desktop:"relative",tablet:"relative",mobile:"relative"}),...core.makeStyleResponsive("top",{desktop:"inherit",tablet:"inherit",mobile:"inherit"})}},getStyleIcon=({styles:e,setting:t})=>{let{iconColor:r}=e||{},{iconWidth:o}=t??{};return{"--c":core.getSingleColorVariable(r),"--w":"100%","--h":"100%","--size-desktop":`${o?.desktop}px`,"--size-tablet":`${o?.tablet||o?.desktop}px`,"--size-mobile":`${o?.mobile||o?.tablet||o?.desktop}px`}},getStyleTypoText=({setting:e})=>({typo:e?.textTypo});exports.getStyleColListIcon=getStyleColListIcon,exports.getStyleContainerIconlistMain=getStyleContainerIconlistMain,exports.getStyleIcon=getStyleIcon,exports.getStyleTypoText=getStyleTypoText,exports.getStyleWrapIcon=getStyleWrapIcon,exports.getStyleWrapItemIcon=getStyleWrapItemIcon,exports.getStyleWraplistIcon=getStyleWraplistIcon;
@@ -1 +1 @@
1
- import{getStyleBackgroundByDevice as t,makeStyleResponsive as e,makeGlobalSize as l,makeStyle as r,getSingleColorVariable as o}from"@gem-sdk/core";let filterStyles=t=>{let e=["--mb","--mb-mobile","--mb-tablet"];return e.forEach(e=>{delete t?.[e]}),t},getStyleContainerIconlistMain=({styles:e,style:l,type:r})=>{let{background:o}=e??{};return{...l="react"===r?filterStyles(l):l,...t(o)}},getStyleWraplistIcon=({styles:t})=>{let{align:l}=t??{};return{...e("jc",l)}},getStyleColListIcon=({styles:t})=>{let{verticalSpacing:l}=t??{};return{...e("rg",l)}},getStyleWrapItemIcon=({styles:t})=>{let{horizontalSpacing:l,position:r}=t??{};return{...e("cg",l),...e("ai",r)}},getStyleWrapIcon=({styles:t,setting:i})=>{let{iconBorder:b,backgroundColor:n,iconRounded:p}=t??{},{globalSize:a}=i??{},c=l(a);return{...c.padding,...r({bs:b?.border,bw:b?.width,bc:o(b?.color),bg:n,bblr:p?.bblr,bbrr:p?.bbrr,btlr:p?.btlr,btrr:p?.btrr}),...e("pos",{desktop:"relative",tablet:"relative",mobile:"relative"}),...e("top",{desktop:"inherit",tablet:"inherit",mobile:"inherit"})}},getStyleIcon=({styles:t,setting:e})=>{let{iconColor:l}=t||{},{iconWidth:r}=e??{};return{"--c":o(l),"--w":"100%","--h":"100%","--size-desktop":`${r?.desktop}px`,"--size-tablet":`${r?.tablet||r?.desktop}px`,"--size-mobile":`${r?.mobile||r?.tablet||r?.desktop}px`}},getStyleTypoText=({setting:t})=>({typo:t?.textTypo});export{getStyleColListIcon,getStyleContainerIconlistMain,getStyleIcon,getStyleTypoText,getStyleWrapIcon,getStyleWrapItemIcon,getStyleWraplistIcon};
1
+ import{getStyleBackgroundByDevice as t,getGradientBgrStyleByDevice as e,makeStyleResponsive as l,makeGlobalSize as r,makeStyle as o,getSingleColorVariable as i}from"@gem-sdk/core";let filterStyles=t=>{let e=["--mb","--mb-mobile","--mb-tablet"];return e.forEach(e=>{delete t?.[e]}),t},getStyleContainerIconlistMain=({styles:l,style:r,type:o})=>{let{background:i}=l??{};return{...r="react"===o?filterStyles(r):r,...t(i),...e(i)}},getStyleWraplistIcon=({styles:t})=>{let{align:e}=t??{};return{...l("jc",e)}},getStyleColListIcon=({styles:t})=>{let{verticalSpacing:e}=t??{};return{...l("rg",e)}},getStyleWrapItemIcon=({styles:t})=>{let{horizontalSpacing:e,position:r}=t??{};return{...l("cg",e),...l("ai",r)}},getStyleWrapIcon=({styles:t,setting:e})=>{let{iconBorder:b,backgroundColor:n,iconRounded:p}=t??{},{globalSize:a}=e??{},c=r(a);return{...c.padding,...o({bs:b?.border,bw:b?.width,bc:i(b?.color),bg:n,bblr:p?.bblr,bbrr:p?.bbrr,btlr:p?.btlr,btrr:p?.btrr}),...l("pos",{desktop:"relative",tablet:"relative",mobile:"relative"}),...l("top",{desktop:"inherit",tablet:"inherit",mobile:"inherit"})}},getStyleIcon=({styles:t,setting:e})=>{let{iconColor:l}=t||{},{iconWidth:r}=e??{};return{"--c":i(l),"--w":"100%","--h":"100%","--size-desktop":`${r?.desktop}px`,"--size-tablet":`${r?.tablet||r?.desktop}px`,"--size-mobile":`${r?.mobile||r?.tablet||r?.desktop}px`}},getStyleTypoText=({setting:t})=>({typo:t?.textTypo});export{getStyleColListIcon,getStyleContainerIconlistMain,getStyleIcon,getStyleTypoText,getStyleWrapIcon,getStyleWrapItemIcon,getStyleWraplistIcon};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.908",
3
+ "version": "2.0.0-staging.909",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",