@gem-sdk/components 17.0.0-dev.130 → 17.0.0-dev.131
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,33 +1,33 @@
|
|
|
1
|
-
"use strict";var e=require("@gem-sdk/system"),
|
|
2
|
-
${
|
|
3
|
-
${
|
|
1
|
+
"use strict";var e=require("@gem-sdk/system"),o=require("@gem-sdk/core"),t=require("./helpers.js");exports.getStyle=(s,r="liquid")=>{let{uid:a,vertical:i,showArrow:l,gapToEachSize:n,left:p,arrowBackgroundColor:g,arrowButtonSize:c,rootId:d,arrowBorder:m,arrowCorner:S,arrowCustomColor:$,arrowIconSize:y,arrowShadow:C}=s,b=o.makeStyle({bg:o.getSingleColorVariable(g)}),h=o.makeStyle({c:o.getSingleColorVariable($)}),u=o.getResponsiveStyleShadowWithoutState(C,"box-shadow",C),w=t.getResponsiveSetting(m||{}),v=t.getResponsiveSetting(S||{}),k=o.getPaddingGlobalSize(c),R=t.getResponsiveSetting(y||{}),x=t.getResponsiveSetting(l||{}),q=o.makeStyle({v:"hidden"}),f=t.getResponsiveWidth(c),z=t.getResponsiveHeight(c),B=o.makeStyleResponsive("w",R,"px"),A=o.makeStyleResponsive("h",R,"px"),P=o.makeStyleResponsive("d",t.getArrowDisplayStyle(x)),V=o.makeStyle(t.getArrowPositionStyle({vertical:i,arrowType:x,gapToEachSize:n??"",left:!!p})),W={...b,...P,...V,...f,...z,...k,...u,..."liquid"===r?q:{}},j={...h,...B,...A},D="react"===r?e.createStyleReact(W):e.createStyle(W),E="react"===r?e.createStyleReact(j):e.createStyle(j),G=`
|
|
2
|
+
${d?"."+d:""}.gp-carousel-arrow-${a} {
|
|
3
|
+
${o.composeCornerCss(v.desktop)}
|
|
4
4
|
}
|
|
5
|
-
${
|
|
5
|
+
${d?"."+d:""}.gp-carousel-arrow-${a}::before {
|
|
6
6
|
content: '';
|
|
7
7
|
height: 100%;
|
|
8
8
|
width: 100%;
|
|
9
9
|
position: absolute;
|
|
10
10
|
pointer-events: none;
|
|
11
11
|
z-index: 10;
|
|
12
|
-
${
|
|
13
|
-
${
|
|
12
|
+
${o.composeBorderCss(w.desktop)}
|
|
13
|
+
${o.composeCornerCss(v.desktop)}
|
|
14
14
|
}
|
|
15
15
|
@media only screen and (max-width: 1024px) and (min-width: 768px) {
|
|
16
|
-
${
|
|
17
|
-
${
|
|
16
|
+
${d?"."+d:""}.gp-carousel-arrow-${a} {
|
|
17
|
+
${o.composeCornerCss(v.tablet)}
|
|
18
18
|
}
|
|
19
|
-
${
|
|
20
|
-
${
|
|
21
|
-
${
|
|
19
|
+
${d?"."+d:""}.gp-carousel-arrow-${a}::before {
|
|
20
|
+
${o.composeBorderCss(w.tablet)}
|
|
21
|
+
${o.composeCornerCss(v.tablet)}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
@media only screen and (max-width: 768px) {
|
|
25
|
-
${
|
|
26
|
-
${
|
|
25
|
+
${d?"."+d:""}.gp-carousel-arrow-${a} {
|
|
26
|
+
${o.composeCornerCss(v.mobile)}
|
|
27
27
|
}
|
|
28
|
-
${
|
|
29
|
-
${
|
|
30
|
-
${
|
|
28
|
+
${d?"."+d:""}.gp-carousel-arrow-${a}::before {
|
|
29
|
+
${o.composeBorderCss(w.mobile)}
|
|
30
|
+
${o.composeCornerCss(v.mobile)}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`;return{buttonStyle:D,buttonContentStyle:E,innerBorderCss:
|
|
33
|
+
`;return{buttonStyle:D,buttonContentStyle:E,innerBorderCss:G}};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import{createStyleReact as e,createStyle as
|
|
2
|
-
${
|
|
3
|
-
${
|
|
1
|
+
import{createStyleReact as e,createStyle as o}from"@gem-sdk/system";import{makeStyle as r,getSingleColorVariable as t,getResponsiveStyleShadowWithoutState as a,getPaddingGlobalSize as i,makeStyleResponsive as l,composeCornerCss as p,composeBorderCss as d}from"@gem-sdk/core";import{getResponsiveWidth as s,getResponsiveHeight as $,getArrowDisplayStyle as n,getArrowPositionStyle as m,getResponsiveSetting as c}from"./helpers.js";let b=(b,g="liquid")=>{let{uid:w,vertical:h,showArrow:u,gapToEachSize:x,left:f,arrowBackgroundColor:k,arrowButtonSize:y,rootId:q,arrowBorder:v,arrowCorner:z,arrowCustomColor:S,arrowIconSize:j,arrowShadow:E}=b,T=r({bg:t(k)}),A=r({c:t(S)}),B=a(E,"box-shadow",E),C=c(v||{}),D=c(z||{}),F=i(y),G=c(j||{}),H=c(u||{}),I=r({v:"hidden"}),J=s(y),K=$(y),L=l("w",G,"px"),M=l("h",G,"px"),N=l("d",n(H)),O=r(m({vertical:h,arrowType:H,gapToEachSize:x??"",left:!!f})),P={...T,...N,...O,...J,...K,...F,...B,..."liquid"===g?I:{}},Q={...A,...L,...M},R="react"===g?e(P):o(P),U="react"===g?e(Q):o(Q),V=`
|
|
2
|
+
${q?"."+q:""}.gp-carousel-arrow-${w} {
|
|
3
|
+
${p(D.desktop)}
|
|
4
4
|
}
|
|
5
|
-
${
|
|
5
|
+
${q?"."+q:""}.gp-carousel-arrow-${w}::before {
|
|
6
6
|
content: '';
|
|
7
7
|
height: 100%;
|
|
8
8
|
width: 100%;
|
|
9
9
|
position: absolute;
|
|
10
10
|
pointer-events: none;
|
|
11
11
|
z-index: 10;
|
|
12
|
-
${
|
|
13
|
-
${
|
|
12
|
+
${d(C.desktop)}
|
|
13
|
+
${p(D.desktop)}
|
|
14
14
|
}
|
|
15
15
|
@media only screen and (max-width: 1024px) and (min-width: 768px) {
|
|
16
|
-
${
|
|
17
|
-
${
|
|
16
|
+
${q?"."+q:""}.gp-carousel-arrow-${w} {
|
|
17
|
+
${p(D.tablet)}
|
|
18
18
|
}
|
|
19
|
-
${
|
|
20
|
-
${
|
|
21
|
-
${
|
|
19
|
+
${q?"."+q:""}.gp-carousel-arrow-${w}::before {
|
|
20
|
+
${d(C.tablet)}
|
|
21
|
+
${p(D.tablet)}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
@media only screen and (max-width: 768px) {
|
|
25
|
-
${
|
|
26
|
-
${
|
|
25
|
+
${q?"."+q:""}.gp-carousel-arrow-${w} {
|
|
26
|
+
${p(D.mobile)}
|
|
27
27
|
}
|
|
28
|
-
${
|
|
29
|
-
${
|
|
30
|
-
${
|
|
28
|
+
${q?"."+q:""}.gp-carousel-arrow-${w}::before {
|
|
29
|
+
${d(C.mobile)}
|
|
30
|
+
${p(D.mobile)}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`;return{buttonStyle:R,buttonContentStyle:U,innerBorderCss:
|
|
33
|
+
`;return{buttonStyle:R,buttonContentStyle:U,innerBorderCss:V}};export{b as getStyle};
|