@gem-sdk/components 3.0.2 → 3.0.4

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 system=require("@gem-sdk/system"),core=require("@gem-sdk/core");const getDotStyle=(e,t)=>{let{dotStyle:r,dotGapToCarousel:o,vertical:s}=e,l="react"===t,c=()=>{let e={};return core.DEVICES.forEach(t=>{let o=core.getResponsiveValueByScreen(r,t),s="desktop"===t?"":`${t}`;e[`--d${0===s.length?"":"-"+s}`]=o&&"none"!==o?"flex":"none"}),e},y={...core.makeDotGapToCarouselStyle(r,o,s),...c()},a=l?system.createStyleReact(y):system.createStyle(y);return{dotStyle:a}};exports.getDotStyle=getDotStyle;
1
+ "use strict";var system=require("@gem-sdk/system"),core=require("@gem-sdk/core");const getDotStyle=(e,t)=>{let{dotStyle:r,dotGapToCarousel:o,vertical:s,showDots:c}=e,l="react"===t,y=()=>{let e={};return core.DEVICES.forEach(t=>{let o=core.getResponsiveValueByScreen(r,t),s=core.getResponsiveValueByScreen(c,t),l="desktop"===t?"":`${t}`;e[`--d${0===l.length?"":"-"+l}`]=o&&"none"!==o&&s?"flex":"none"}),e},n={...core.makeDotGapToCarouselStyle(r,o,s),...y()},a=l?system.createStyleReact(n):system.createStyle(n);return{dotStyle:a}};exports.getDotStyle=getDotStyle;
@@ -95,7 +95,7 @@
95
95
  type="gp-feature-image-only"
96
96
  product-id="{{product.id}}"
97
97
  product-media="{{product.media.size}}"
98
- class="${d(v)}
98
+ class="${d(v)}"
99
99
  style="${_function.getStyleOfObject(m)}"
100
100
  >
101
101
  <div
@@ -1 +1 @@
1
- import{createStyleReact as e,createStyle as t}from"@gem-sdk/system";import{makeDotGapToCarouselStyle as o,DEVICES as r,getResponsiveValueByScreen as l}from"@gem-sdk/core";let getDotStyle=(m,n)=>{let{dotStyle:d,dotGapToCarousel:g,vertical:s}=m,f="react"===n,p=()=>{let e={};return r.forEach(t=>{let o=l(d,t),r="desktop"===t?"":`${t}`;e[`--d${0===r.length?"":"-"+r}`]=o&&"none"!==o?"flex":"none"}),e},y={...o(d,g,s),...p()},c=f?e(y):t(y);return{dotStyle:c}};export{getDotStyle};
1
+ import{createStyleReact as e,createStyle as t}from"@gem-sdk/system";import{makeDotGapToCarouselStyle as o,DEVICES as r,getResponsiveValueByScreen as l}from"@gem-sdk/core";let getDotStyle=(m,n)=>{let{dotStyle:d,dotGapToCarousel:g,vertical:s,showDots:f}=m,p="react"===n,y=()=>{let e={};return r.forEach(t=>{let o=l(d,t),r=l(f,t),m="desktop"===t?"":`${t}`;e[`--d${0===m.length?"":"-"+m}`]=o&&"none"!==o&&r?"flex":"none"}),e},c={...o(d,g,s),...y()},k=p?e(c):t(c);return{dotStyle:k}};export{getDotStyle};
@@ -95,7 +95,7 @@ import{makeStyleResponsive as e,template as a,cls as i}from"@gem-sdk/core";impor
95
95
  type="gp-feature-image-only"
96
96
  product-id="{{product.id}}"
97
97
  product-media="{{product.media.size}}"
98
- class="${S(B)}
98
+ class="${S(B)}"
99
99
  style="${p(P)}"
100
100
  >
101
101
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",