@gem-sdk/components 2.0.0-staging.851 → 2.0.0-staging.853
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.
- package/dist/cjs/accordion/common/styles.js +1 -1
- package/dist/cjs/icon-list-hoz/settings/ItemTemplate.js +1 -1
- package/dist/cjs/marquee/settings/configs/presets.js +2 -2
- package/dist/cjs/tab/components/Tabs.liquid.js +9 -9
- package/dist/esm/accordion/common/styles.js +1 -1
- package/dist/esm/icon-list-hoz/settings/ItemTemplate.js +1 -1
- package/dist/esm/marquee/settings/configs/presets.js +2 -2
- package/dist/esm/tab/components/Tabs.liquid.js +15 -15
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var core=require("@gem-sdk/core");const filterStyles=e=>{let t=["--mb","--mb-mobile","--mb-tablet","--d","--d-mobile","--d-tablet"];return t.forEach(t=>{delete e?.[t]}),e},contentSizePaddingSize=e=>core.makeGlobalSize(e?.contentSizePadding),getContainerStyles=(e,t)=>({...filterStyles(e),...contentSizePaddingSize(t).gap,...core.getStyleBackgroundByDevice(e?.backgroundContent),"border-radius":"inherit"}),widthHeightSizeControl=e=>core.makeGlobalSize(e),widthStyle=(e,t,o)=>widthHeightSizeControl(o).width["--w"]?widthHeightSizeControl(o).width:core.makeStyleResponsive("w",core.makeWidth(e,t)),getItemContainerStyles=(e,t)=>{let{borderContent:o,backgroundContent:r,roundedContent:l,accordionShadow:a,width:i,fullWidth:n,widthHeightSize:c,iconColor:g,color:S}=e??{};return{"--icon-expand-hover-color":t?core.getSingleColorVariable(S?.active??S?.normal):core.getSingleColorVariable(S?.hover??S?.normal),"--icon-expand-active-color":core.getSingleColorVariable(S?.active??S?.normal),"--icon-active-color":core.getSingleColorVariable(g?.active??g?.normal),"--icon-hover-color":t?core.getSingleColorVariable(g?.active):core.getSingleColorVariable(g?.hover),...widthStyle(i,n,c),...core.makeStyle({bs:o?.border??o?.border,bw:o?.width??o?.width,bc:core.getSingleColorVariable(o?.color??o?.color)}),...core.makeStyleResponsive("bg",r),...core.getStyleShadow({value:a,styleAppliedFor:"box-shadow",isEnableShadow:a?.enable}),...core.getRadiusStyleActiveState({...l,active:{...l||{},radiusType:"custom"}})}},headerContentPaddingSize=e=>core.makeGlobalSize(e),composePosition=e=>core.makeStyle({fd:"left"===e?"row":"row-reverse",jc:"right"===e?"space-between":""}),getDropdownStyles=(e,t)=>{let{headerContentPadding:o,widthHeightSize:r,itemHeaderSpacing:l,bgColor:a,headerBorder:i}=e??{},{isShow:n,iconPosition:c}=t??{};return{...o&&headerContentPaddingSize(o).padding,...l?.type||o?{}:core.composeSize(l?.custom),...widthHeightSizeControl(r).height,...composePosition(c),...n?core.makeStyle({bgc:core.getSingleColorVariable(a?.active??a?.normal),bs:i?.active?.border,bw:i?.active?.width,bc:core.getSingleColorVariable(i?.active?.color)}):{...core.getGlobalColorStateStyle("bgc",a),...core.handleConvertBorderStyle(i),...core.handleConvertBorderWidth(i),...core.handleConvertBorderColor(i),...core.getGlobalColorStateStyle("bgc",a)}}},getDropdownTextStyles=(e,t)=>({...t?core.makeStyle({c:core.getSingleColorVariable(e?.active??e?.normal)}):{...core.getGlobalColorStateStyle("c",e)}}),getIconRotateStyles=(e,t,o)=>{let{color:r}=e??{};return{...
|
|
1
|
+
"use strict";var core=require("@gem-sdk/core");const filterStyles=e=>{let t=["--mb","--mb-mobile","--mb-tablet","--d","--d-mobile","--d-tablet"];return t.forEach(t=>{delete e?.[t]}),e},contentSizePaddingSize=e=>core.makeGlobalSize(e?.contentSizePadding),getContainerStyles=(e,t)=>({...filterStyles(e),...contentSizePaddingSize(t).gap,...core.getStyleBackgroundByDevice(e?.backgroundContent),"border-radius":"inherit"}),widthHeightSizeControl=e=>core.makeGlobalSize(e),widthStyle=(e,t,o)=>widthHeightSizeControl(o).width["--w"]?widthHeightSizeControl(o).width:core.makeStyleResponsive("w",core.makeWidth(e,t)),getItemContainerStyles=(e,t)=>{let{borderContent:o,backgroundContent:r,roundedContent:l,accordionShadow:a,width:i,fullWidth:n,widthHeightSize:c,iconColor:g,color:S}=e??{};return{"--icon-expand-hover-color":t?core.getSingleColorVariable(S?.active??S?.normal??"transparent"):core.getSingleColorVariable(S?.hover??S?.active??S?.normal??"transparent"),"--icon-expand-active-color":core.getSingleColorVariable(S?.active??S?.normal??"transparent"),"--icon-active-color":core.getSingleColorVariable(g?.active??g?.normal??"text-1"),"--icon-hover-color":t?core.getSingleColorVariable(g?.active):core.getSingleColorVariable(g?.hover),...widthStyle(i,n,c),...core.makeStyle({bs:o?.border??o?.border,bw:o?.width??o?.width,bc:core.getSingleColorVariable(o?.color??o?.color)}),...core.makeStyleResponsive("bg",r),...core.getStyleShadow({value:a,styleAppliedFor:"box-shadow",isEnableShadow:a?.enable}),...core.getRadiusStyleActiveState({...l,active:{...l||{},radiusType:"custom"}})}},headerContentPaddingSize=e=>core.makeGlobalSize(e),composePosition=e=>core.makeStyle({fd:"left"===e?"row":"row-reverse",jc:"right"===e?"space-between":""}),getDropdownStyles=(e,t)=>{let{headerContentPadding:o,widthHeightSize:r,itemHeaderSpacing:l,bgColor:a,headerBorder:i}=e??{},{isShow:n,iconPosition:c}=t??{};return{...o&&headerContentPaddingSize(o).padding,...l?.type||o?{}:core.composeSize(l?.custom),...widthHeightSizeControl(r).height,...composePosition(c),...n?core.makeStyle({bgc:core.getSingleColorVariable(a?.active??a?.normal),bs:i?.active?.border,bw:i?.active?.width,bc:core.getSingleColorVariable(i?.active?.color)}):{...core.getGlobalColorStateStyle("bgc",a),...core.handleConvertBorderStyle(i),...core.handleConvertBorderWidth(i),...core.handleConvertBorderColor(i),...core.getGlobalColorStateStyle("bgc",a)}}},getDropdownTextStyles=(e,t)=>({...t?core.makeStyle({c:core.getSingleColorVariable(e?.active??e?.normal)}):{...core.getGlobalColorStateStyle("c",e)}}),getIconRotateStyles=(e,t,o)=>{let{color:r}=e??{};return{...core.makeStyle({c:core.getSingleColorVariable(t?r?.active??r?.normal??"transparent":r?.normal??"transparent")}),width:`${o??16}px`,height:`${o??16}px`}},composeIconGlobalSize=e=>core.makeGlobalSize(e),getGapStyles=(e,t)=>({...composeIconGlobalSize(e).gap,...core.makeStyleResponsive("jc",t)}),getIconStyles=(e,t)=>{let o=t?`${t}px`:"16px";return{...e,width:o,height:o,"--height":o}},getTemplateRow=e=>({"grid-template-rows":`${+!!e}fr`}),getRenderChildrenStyles=()=>({"grid-template-columns":"minmax(auto, 100%)"}),getIconGlobalSize=e=>core.makeGlobalSize(e)?.padding;exports.getContainerStyles=getContainerStyles,exports.getDropdownStyles=getDropdownStyles,exports.getDropdownTextStyles=getDropdownTextStyles,exports.getGapStyles=getGapStyles,exports.getIconGlobalSize=getIconGlobalSize,exports.getIconRotateStyles=getIconRotateStyles,exports.getIconStyles=getIconStyles,exports.getItemContainerStyles=getItemContainerStyles,exports.getRenderChildrenStyles=getRenderChildrenStyles,exports.getTemplateRow=getTemplateRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const itemChildrenTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemChildrenHalfStarTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-half-filled" width="20" height="20" fill="currentColor" data-id="508414815326765440" viewBox="0 0 256 256"><path d="M239.18 97.26A16.38 16.38 0 0 0 224.92 86l-59-4.76-22.78-55.09a16.36 16.36 0 0 0-30.27 0L90.11 81.23 31.08 86a16.46 16.46 0 0 0-9.37 28.86l45 38.83L53 211.75a16.4 16.4 0 0 0 24.5 17.82l50.5-31.08 50.53 31.08A16.4 16.4 0 0 0 203 211.75l-13.76-58.07 45-38.83a16.43 16.43 0 0 0 4.94-17.59Zm-15.34 5.47-48.7 42a8 8 0 0 0-2.56 7.91l14.88 62.8a.37.37 0 0 1-.17.48c-.18.14-.23.11-.38 0l-54.72-33.65a8 8 0 0 0-4.19-1.17V32c.24 0 .27.08.35.26L153 91.86a8 8 0 0 0 6.75 4.92l63.91 5.16c.16 0 .25 0 .34.29s0 .4-.16.5Z"/></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemSystemStarTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemControlTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",label:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>',iconLink:{link:"",target:"_self"}},styles:{align:{desktop:"left"},globalSize:{desktop:{width:"16px",padding:{type:"custom"}}},border:{normal:{borderType:"none",border:"none",width:"0px",color:"transparent",isCustom:!1}},bgColor:{normal:"transparent"},color:{normal:"
|
|
1
|
+
"use strict";const itemChildrenTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemChildrenHalfStarTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-half-filled" width="20" height="20" fill="currentColor" data-id="508414815326765440" viewBox="0 0 256 256"><path d="M239.18 97.26A16.38 16.38 0 0 0 224.92 86l-59-4.76-22.78-55.09a16.36 16.36 0 0 0-30.27 0L90.11 81.23 31.08 86a16.46 16.46 0 0 0-9.37 28.86l45 38.83L53 211.75a16.4 16.4 0 0 0 24.5 17.82l50.5-31.08 50.53 31.08A16.4 16.4 0 0 0 203 211.75l-13.76-58.07 45-38.83a16.43 16.43 0 0 0 4.94-17.59Zm-15.34 5.47-48.7 42a8 8 0 0 0-2.56 7.91l14.88 62.8a.37.37 0 0 1-.17.48c-.18.14-.23.11-.38 0l-54.72-33.65a8 8 0 0 0-4.19-1.17V32c.24 0 .27.08.35.26L153 91.86a8 8 0 0 0 6.75 4.92l63.91 5.16c.16 0 .25 0 .34.29s0 .4-.16.5Z"/></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemSystemStarTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemControlTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",label:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>',iconLink:{link:"",target:"_self"}},styles:{align:{desktop:"left"},globalSize:{desktop:{width:"16px",padding:{type:"custom"}}},border:{normal:{borderType:"none",border:"none",width:"0px",color:"transparent",isCustom:!1}},bgColor:{normal:"transparent"},color:{normal:"text-1"},iconRotate:0,spin:!1},advanced:{},childrens:[]}]};exports.itemChildrenHalfStarTemplate=itemChildrenHalfStarTemplate,exports.itemChildrenTemplate=itemChildrenTemplate,exports.itemControlTemplate=itemControlTemplate,exports.itemSystemStarTemplate=itemSystemStarTemplate;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</defs>
|
|
21
21
|
</svg>
|
|
22
22
|
|
|
23
|
-
`},components:[{tag:"Marquee",advanced:{
|
|
23
|
+
`},components:[{tag:"Marquee",advanced:{"spacing-setting":{desktop:{padding:{type:"custom",top:"16px",bottom:"16px",left:"0px",right:"0px"}}}},styles:{itemSpacing:{desktop:"60px"},itemMaxWidth:{desktop:"300px"}},settings:{childItem:["Item 1","Item 2","Item 3","Item 4"],itemWidthType:{desktop:"FIT_CONTENT"}},childrens:[childTextTemplate.renderChildTextTemplate("FREE SHIPPING"),childTextTemplate.renderChildTextTemplate("30 DAYS MONEY BACK GUARANTEE"),childTextTemplate.renderChildTextTemplate("LIMITED TIME 50% OFF SALE"),childTextTemplate.renderChildTextTemplate("LIFE TIME WARRANTY")]}]},{id:"marquee-image",name:{en:"Marquee"},icon:{desktop:`
|
|
24
24
|
<svg width="126" height="80" viewBox="0 0 126 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
25
25
|
<g clip-path="url(#clip0_10250_27631)">
|
|
26
26
|
<path d="M0 3C0 1.34315 1.34315 0 3 0H123C124.657 0 126 1.34315 126 3V77C126 78.6569 124.657 80 123 80H3C1.34315 80 0 78.6569 0 77V3Z" fill="#212121"></path>
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
</clipPath>
|
|
44
44
|
</defs>
|
|
45
45
|
</svg>
|
|
46
|
-
`},components:[{tag:"Marquee",advanced:{
|
|
46
|
+
`},components:[{tag:"Marquee",advanced:{"spacing-setting":{desktop:{padding:{type:"custom",top:"16px",bottom:"16px",left:"0px",right:"0px"}}}},styles:{itemSpacing:{desktop:"60px",mobile:"20px"},itemMaxWidth:{desktop:"300px",tablet:"300px",mobile:"150px"}},settings:{childItem:["Item 1","Item 2","Item 3","Item 4","Item 5"],itemWidthType:{desktop:"BASE_ON_NUMBER_OF_ITEMS",tablet:"BASE_ON_NUMBER_OF_ITEMS",mobile:"CUSTOM"}},childrens:[childImageTemplate.renderChildImageTemplate("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-fd204759-bd9d-4564-9e30-3ff2facb72de.png"),childImageTemplate.renderChildImageTemplate("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-83e1af8d-ad67-4b33-83ee-51f80fee6167.png"),childImageTemplate.renderChildImageTemplate("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-eee8f948-1544-47ee-acc0-8fe5b99f735a.png"),childImageTemplate.renderChildImageTemplate("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-2b1f58d6-457d-4734-a2f5-b5db983ef2fb.png"),childImageTemplate.renderChildImageTemplate("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-af77021a-12c9-40dd-8132-2c59edf287dc.png")]}]}];exports.MarqueePresets=MarqueePresets;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../helpers.js"),system=require("@gem-sdk/system"),attrs=require("../common/attrs.js"),Text_liquid=require("../../text/components/Text.liquid.js"),styles=require("../common/styles.js"),classes=require("../common/classes.js");const Tabs=e=>{let{builderProps:s,style:t,setting:a,advanced:l,rawChildren:r}=e;delete a?.labelTypoV2?.attrs?.color;let{cssClass:i}=l??{},{panelWidth:c,childItem:y,labelAlign:d,labelTypo:o,labelTypoV2:n}=a??{},p=system.createStateOrContext({setting:a,builderProps:s}),m=void 0;a&&!a?.labelWidth&&(a.labelWidth={desktop:"200px"});let g=system.createAttr({...attrs.getAttr({uid:s?.uid||""})}),u=system.createStyle({...styles.getStyleWrapper(a,t)}),C=system.createClass({...classes.getClassesWrapper({builderProps:s,advancedCssClass:i})}),$=system.createClass({...classes.getContainClasses({setting:a})}),v=classes.getStyleTagClasses({panelWidth:c,builderProps:s}),S=system.createClass({...classes.getTabParentListClasses()}),h=system.createStyle({...styles.getTabParentListStyle(a)}),b=system.createClass({...classes.getTabListClasses({setting:a})}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../helpers.js"),system=require("@gem-sdk/system"),attrs=require("../common/attrs.js"),Text_liquid=require("../../text/components/Text.liquid.js"),styles=require("../common/styles.js"),classes=require("../common/classes.js");const Tabs=e=>{let{builderProps:s,style:t,setting:a,advanced:l,rawChildren:r}=e;delete a?.labelTypoV2?.attrs?.color;let{cssClass:i}=l??{},{panelWidth:c,childItem:y,labelAlign:d,labelTypo:o,labelTypoV2:n}=a??{},p=system.createStateOrContext({setting:a,builderProps:s}),m=void 0;a&&!a?.labelWidth&&(a.labelWidth={desktop:"200px"});let g=system.createAttr({...attrs.getAttr({uid:s?.uid||""})}),u=system.createStyle({...styles.getStyleWrapper(a,t)}),C=system.createClass({...classes.getClassesWrapper({builderProps:s,advancedCssClass:i})}),$=system.createClass({...classes.getContainClasses({setting:a})}),v=classes.getStyleTagClasses({panelWidth:c,builderProps:s}),S=system.createClass({...classes.getTabParentListClasses()}),h=system.createStyle({...styles.getTabParentListStyle(a)}),b=system.createClass({...classes.getTabListClasses({setting:a})}),T=system.createStyle({...styles.getTabListStyle(a)}),x=e=>system.createClass({...classes.getItemClasses({setting:a,isNotLiquid:!1,isActive:e,currentDevice:m})}),q=e=>system.createStyle({...styles.getItemStyle(a,e)}),A=system.createClass({...classes.getWrapperContentClasses()}),f=system.createClass({...classes.getContainContentClasses()}),j=system.createStyle({...styles.getContainContentStyle()}),P=system.createAttr({...attrs.getAttrContent({uid:s?.uid||""})}),I=system.createClass({...classes.getTextClasses()}),L=()=>y?.map(e=>e?.replaceAll("'","'"))?.map((e,t)=>{let l=(a?.activeKey??0)<0||(a?.activeKey??0)>=(a?.childItem??[]).length?0===t:t===a?.activeKey;return core.template`
|
|
2
2
|
<li
|
|
3
3
|
aria-hidden
|
|
4
|
-
class="${
|
|
5
|
-
style="${
|
|
4
|
+
class="${x(l)}"
|
|
5
|
+
style="${q(l)}"
|
|
6
6
|
key="${s?.uid}"
|
|
7
7
|
|
|
8
8
|
>
|
|
9
|
-
${Text_liquid.default({className:
|
|
9
|
+
${Text_liquid.default({className:I,styles:{typo:n,typography:o,textAlign:d},setting:{...a,text:e,translate:`childItem_${t}`,htmlTag:"div",excludeFlex:!0},builderProps:s})}
|
|
10
10
|
</li>
|
|
11
11
|
`}).join(""),_=()=>core.WrapRenderChildren({uid:s?.uid||"",customProps:r?.[0].customProps},r?.map((e,t)=>{let l=(a?.activeKey??0)<0||(a?.activeKey??0)>=(a?.childItem??[]).length?0===t:t===a?.activeKey;return e?core.template`${core.RenderChildren({...e,parentUid:s?.uid,isActive:l})}`:""})),k=()=>core.RenderIf(core.isLocalEnv,`<script ${helpers.getSettingPreloadData('class="gps-link" delay',"src")}="{{ 'gp-tab.js' | asset_url }}" defer="defer"></script>`,`<script ${helpers.getSettingPreloadData('class="gps-link" delay',"src")}="${core.baseAssetURL}/assets-v2/gp-tab.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`);return core.template`
|
|
12
12
|
<gp-tab
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
<style>${v}</style>
|
|
18
18
|
<div class="${$}">
|
|
19
19
|
<div class="${S}" style="${h}">
|
|
20
|
-
<ul class="${b}" style="${
|
|
21
|
-
${
|
|
20
|
+
<ul class="${b}" style="${T}">
|
|
21
|
+
${L()}
|
|
22
22
|
</ul>
|
|
23
23
|
</div>
|
|
24
|
-
<div class="${
|
|
24
|
+
<div class="${A}">
|
|
25
25
|
<div
|
|
26
|
-
${{...
|
|
27
|
-
class="${
|
|
26
|
+
${{...P}}
|
|
27
|
+
class="${f}"
|
|
28
28
|
style="${j}"
|
|
29
29
|
>
|
|
30
30
|
${_()}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getStyleBackgroundByDevice as e,getSingleColorVariable as t,makeStyle as o,makeStyleResponsive as i,getStyleShadow as r,getRadiusStyleActiveState as n,composeSize as
|
|
1
|
+
import{getStyleBackgroundByDevice as e,getSingleColorVariable as t,makeStyle as o,makeStyleResponsive as i,getStyleShadow as r,getRadiusStyleActiveState as n,composeSize as a,getGlobalColorStateStyle as l,handleConvertBorderStyle as c,handleConvertBorderWidth as d,handleConvertBorderColor as g,makeGlobalSize as s,makeWidth as h}from"@gem-sdk/core";let filterStyles=e=>{let t=["--mb","--mb-mobile","--mb-tablet","--d","--d-mobile","--d-tablet"];return t.forEach(t=>{delete e?.[t]}),e},contentSizePaddingSize=e=>s(e?.contentSizePadding),getContainerStyles=(t,o)=>({...filterStyles(t),...contentSizePaddingSize(o).gap,...e(t?.backgroundContent),"border-radius":"inherit"}),widthHeightSizeControl=e=>s(e),widthStyle=(e,t,o)=>widthHeightSizeControl(o).width["--w"]?widthHeightSizeControl(o).width:i("w",h(e,t)),getItemContainerStyles=(e,a)=>{let{borderContent:l,backgroundContent:c,roundedContent:d,accordionShadow:g,width:s,fullWidth:h,widthHeightSize:p,iconColor:S,color:m}=e??{};return{"--icon-expand-hover-color":a?t(m?.active??m?.normal??"transparent"):t(m?.hover??m?.active??m?.normal??"transparent"),"--icon-expand-active-color":t(m?.active??m?.normal??"transparent"),"--icon-active-color":t(S?.active??S?.normal??"text-1"),"--icon-hover-color":a?t(S?.active):t(S?.hover),...widthStyle(s,h,p),...o({bs:l?.border??l?.border,bw:l?.width??l?.width,bc:t(l?.color??l?.color)}),...i("bg",c),...r({value:g,styleAppliedFor:"box-shadow",isEnableShadow:g?.enable}),...n({...d,active:{...d||{},radiusType:"custom"}})}},headerContentPaddingSize=e=>s(e),composePosition=e=>o({fd:"left"===e?"row":"row-reverse",jc:"right"===e?"space-between":""}),getDropdownStyles=(e,i)=>{let{headerContentPadding:r,widthHeightSize:n,itemHeaderSpacing:s,bgColor:h,headerBorder:p}=e??{},{isShow:S,iconPosition:m}=i??{};return{...r&&headerContentPaddingSize(r).padding,...s?.type||r?{}:a(s?.custom),...widthHeightSizeControl(n).height,...composePosition(m),...S?o({bgc:t(h?.active??h?.normal),bs:p?.active?.border,bw:p?.active?.width,bc:t(p?.active?.color)}):{...l("bgc",h),...c(p),...d(p),...g(p),...l("bgc",h)}}},getDropdownTextStyles=(e,i)=>({...i?o({c:t(e?.active??e?.normal)}):{...l("c",e)}}),getIconRotateStyles=(e,i,r)=>{let{color:n}=e??{};return{...o({c:t(i?n?.active??n?.normal??"transparent":n?.normal??"transparent")}),width:`${r??16}px`,height:`${r??16}px`}},composeIconGlobalSize=e=>s(e),getGapStyles=(e,t)=>({...composeIconGlobalSize(e).gap,...i("jc",t)}),getIconStyles=(e,t)=>{let o=t?`${t}px`:"16px";return{...e,width:o,height:o,"--height":o}},getTemplateRow=e=>({"grid-template-rows":`${+!!e}fr`}),getRenderChildrenStyles=()=>({"grid-template-columns":"minmax(auto, 100%)"}),getIconGlobalSize=e=>s(e)?.padding;export{getContainerStyles,getDropdownStyles,getDropdownTextStyles,getGapStyles,getIconGlobalSize,getIconRotateStyles,getIconStyles,getItemContainerStyles,getRenderChildrenStyles,getTemplateRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let itemChildrenTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemChildrenHalfStarTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-half-filled" width="20" height="20" fill="currentColor" data-id="508414815326765440" viewBox="0 0 256 256"><path d="M239.18 97.26A16.38 16.38 0 0 0 224.92 86l-59-4.76-22.78-55.09a16.36 16.36 0 0 0-30.27 0L90.11 81.23 31.08 86a16.46 16.46 0 0 0-9.37 28.86l45 38.83L53 211.75a16.4 16.4 0 0 0 24.5 17.82l50.5-31.08 50.53 31.08A16.4 16.4 0 0 0 203 211.75l-13.76-58.07 45-38.83a16.43 16.43 0 0 0 4.94-17.59Zm-15.34 5.47-48.7 42a8 8 0 0 0-2.56 7.91l14.88 62.8a.37.37 0 0 1-.17.48c-.18.14-.23.11-.38 0l-54.72-33.65a8 8 0 0 0-4.19-1.17V32c.24 0 .27.08.35.26L153 91.86a8 8 0 0 0 6.75 4.92l63.91 5.16c.16 0 .25 0 .34.29s0 .4-.16.5Z"/></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemSystemStarTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemControlTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",label:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>',iconLink:{link:"",target:"_self"}},styles:{align:{desktop:"left"},globalSize:{desktop:{width:"16px",padding:{type:"custom"}}},border:{normal:{borderType:"none",border:"none",width:"0px",color:"transparent",isCustom:!1}},bgColor:{normal:"transparent"},color:{normal:"
|
|
1
|
+
let itemChildrenTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemChildrenHalfStarTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-half-filled" width="20" height="20" fill="currentColor" data-id="508414815326765440" viewBox="0 0 256 256"><path d="M239.18 97.26A16.38 16.38 0 0 0 224.92 86l-59-4.76-22.78-55.09a16.36 16.36 0 0 0-30.27 0L90.11 81.23 31.08 86a16.46 16.46 0 0 0-9.37 28.86l45 38.83L53 211.75a16.4 16.4 0 0 0 24.5 17.82l50.5-31.08 50.53 31.08A16.4 16.4 0 0 0 203 211.75l-13.76-58.07 45-38.83a16.43 16.43 0 0 0 4.94-17.59Zm-15.34 5.47-48.7 42a8 8 0 0 0-2.56 7.91l14.88 62.8a.37.37 0 0 1-.17.48c-.18.14-.23.11-.38 0l-54.72-33.65a8 8 0 0 0-4.19-1.17V32c.24 0 .27.08.35.26L153 91.86a8 8 0 0 0 6.75 4.92l63.91 5.16c.16 0 .25 0 .34.29s0 .4-.16.5Z"/></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemSystemStarTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>'},styles:{globalSize:{desktop:{width:"16px",padding:{type:"custom"}}}},childrens:[]}]},itemControlTemplate={tag:"IconListHozItem",childrens:[{tag:"Icon",label:"Icon",settings:{iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" data-name="star-filled" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="m234.29 114.85-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76 22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08 59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"></path></svg>',iconLink:{link:"",target:"_self"}},styles:{align:{desktop:"left"},globalSize:{desktop:{width:"16px",padding:{type:"custom"}}},border:{normal:{borderType:"none",border:"none",width:"0px",color:"transparent",isCustom:!1}},bgColor:{normal:"transparent"},color:{normal:"text-1"},iconRotate:0,spin:!1},advanced:{},childrens:[]}]};export{itemChildrenHalfStarTemplate,itemChildrenTemplate,itemControlTemplate,itemSystemStarTemplate};
|
|
@@ -20,7 +20,7 @@ import{renderChildImageTemplate as C}from"./child-image-template.js";import{rend
|
|
|
20
20
|
</defs>
|
|
21
21
|
</svg>
|
|
22
22
|
|
|
23
|
-
`},components:[{tag:"Marquee",advanced:{
|
|
23
|
+
`},components:[{tag:"Marquee",advanced:{"spacing-setting":{desktop:{padding:{type:"custom",top:"16px",bottom:"16px",left:"0px",right:"0px"}}}},styles:{itemSpacing:{desktop:"60px"},itemMaxWidth:{desktop:"300px"}},settings:{childItem:["Item 1","Item 2","Item 3","Item 4"],itemWidthType:{desktop:"FIT_CONTENT"}},childrens:[e("FREE SHIPPING"),e("30 DAYS MONEY BACK GUARANTEE"),e("LIMITED TIME 50% OFF SALE"),e("LIFE TIME WARRANTY")]}]},{id:"marquee-image",name:{en:"Marquee"},icon:{desktop:`
|
|
24
24
|
<svg width="126" height="80" viewBox="0 0 126 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
25
25
|
<g clip-path="url(#clip0_10250_27631)">
|
|
26
26
|
<path d="M0 3C0 1.34315 1.34315 0 3 0H123C124.657 0 126 1.34315 126 3V77C126 78.6569 124.657 80 123 80H3C1.34315 80 0 78.6569 0 77V3Z" fill="#212121"></path>
|
|
@@ -43,4 +43,4 @@ import{renderChildImageTemplate as C}from"./child-image-template.js";import{rend
|
|
|
43
43
|
</clipPath>
|
|
44
44
|
</defs>
|
|
45
45
|
</svg>
|
|
46
|
-
`},components:[{tag:"Marquee",advanced:{
|
|
46
|
+
`},components:[{tag:"Marquee",advanced:{"spacing-setting":{desktop:{padding:{type:"custom",top:"16px",bottom:"16px",left:"0px",right:"0px"}}}},styles:{itemSpacing:{desktop:"60px",mobile:"20px"},itemMaxWidth:{desktop:"300px",tablet:"300px",mobile:"150px"}},settings:{childItem:["Item 1","Item 2","Item 3","Item 4","Item 5"],itemWidthType:{desktop:"BASE_ON_NUMBER_OF_ITEMS",tablet:"BASE_ON_NUMBER_OF_ITEMS",mobile:"CUSTOM"}},childrens:[C("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-fd204759-bd9d-4564-9e30-3ff2facb72de.png"),C("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-83e1af8d-ad67-4b33-83ee-51f80fee6167.png"),C("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-eee8f948-1544-47ee-acc0-8fe5b99f735a.png"),C("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-2b1f58d6-457d-4734-a2f5-b5db983ef2fb.png"),C("https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-af77021a-12c9-40dd-8132-2c59edf287dc.png")]}]}];export{MarqueePresets};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import{template as e,WrapRenderChildren as
|
|
1
|
+
import{template as e,WrapRenderChildren as s,RenderChildren as t,RenderIf as l,isLocalEnv as i,baseAssetURL as a}from"@gem-sdk/core";import{getSettingPreloadData as r}from"../../helpers.js";import{createStateOrContext as d,createAttr as c,createStyle as o,createClass as p}from"@gem-sdk/system";import{getAttr as m,getAttrContent as $}from"../common/attrs.js";import y from"../../text/components/Text.liquid.js";import{getStyleWrapper as u,getTabParentListStyle as n,getTabListStyle as v,getContainContentStyle as g,getItemStyle as f}from"../common/styles.js";import{getClassesWrapper as h,getContainClasses as b,getStyleTagClasses as j,getTabParentListClasses as x,getTabListClasses as k,getWrapperContentClasses as A,getContainContentClasses as K,getTextClasses as S,getItemClasses as T}from"../common/classes.js";let Tabs=E=>{let{builderProps:I,style:N,setting:P,advanced:_,rawChildren:q}=E;delete P?.labelTypoV2?.attrs?.color;let{cssClass:C}=_??{},{panelWidth:G,childItem:O,labelAlign:V,labelTypo:W,labelTypoV2:F}=P??{},J=d({setting:P,builderProps:I}),L=void 0;P&&!P?.labelWidth&&(P.labelWidth={desktop:"200px"});let M=c({...m({uid:I?.uid||""})}),R=o({...u(P,N)}),U=p({...h({builderProps:I,advancedCssClass:C})}),w=p({...b({setting:P})}),z=j({panelWidth:G,builderProps:I}),B=p({...x()}),D=o({...n(P)}),H=p({...k({setting:P})}),Q=o({...v(P)}),X=e=>p({...T({setting:P,isNotLiquid:!1,isActive:e,currentDevice:L})}),Y=e=>o({...f(P,e)}),Z=p({...A()}),ee=p({...K()}),es=o({...g()}),et=c({...$({uid:I?.uid||""})}),el=p({...S()}),ei=()=>O?.map(e=>e?.replaceAll("'","'"))?.map((s,t)=>{let l=(P?.activeKey??0)<0||(P?.activeKey??0)>=(P?.childItem??[]).length?0===t:t===P?.activeKey;return e`
|
|
2
2
|
<li
|
|
3
3
|
aria-hidden
|
|
4
|
-
class="${
|
|
5
|
-
style="${
|
|
6
|
-
key="${
|
|
4
|
+
class="${X(l)}"
|
|
5
|
+
style="${Y(l)}"
|
|
6
|
+
key="${I?.uid}"
|
|
7
7
|
|
|
8
8
|
>
|
|
9
|
-
${y({className:
|
|
9
|
+
${y({className:el,styles:{typo:F,typography:W,textAlign:V},setting:{...P,text:s,translate:`childItem_${t}`,htmlTag:"div",excludeFlex:!0},builderProps:I})}
|
|
10
10
|
</li>
|
|
11
|
-
`}).join(""),
|
|
11
|
+
`}).join(""),ea=()=>s({uid:I?.uid||"",customProps:q?.[0].customProps},q?.map((s,l)=>{let i=(P?.activeKey??0)<0||(P?.activeKey??0)>=(P?.childItem??[]).length?0===l:l===P?.activeKey;return s?e`${t({...s,parentUid:I?.uid,isActive:i})}`:""})),er=()=>l(i,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-tab.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${a}/assets-v2/gp-tab.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`);return e`
|
|
12
12
|
<gp-tab
|
|
13
13
|
${{...M}}
|
|
14
14
|
style="${R}"
|
|
15
15
|
class="${U}"
|
|
16
16
|
gp-data='${JSON.stringify(J)?.replaceAll("'","'")}'>
|
|
17
|
-
<style>${
|
|
17
|
+
<style>${z}</style>
|
|
18
18
|
<div class="${w}">
|
|
19
|
-
<div class="${
|
|
20
|
-
<ul class="${
|
|
21
|
-
${
|
|
19
|
+
<div class="${B}" style="${D}">
|
|
20
|
+
<ul class="${H}" style="${Q}">
|
|
21
|
+
${ei()}
|
|
22
22
|
</ul>
|
|
23
23
|
</div>
|
|
24
|
-
<div class="${
|
|
24
|
+
<div class="${Z}">
|
|
25
25
|
<div
|
|
26
|
-
${{...
|
|
27
|
-
class="${
|
|
26
|
+
${{...et}}
|
|
27
|
+
class="${ee}"
|
|
28
28
|
style="${es}"
|
|
29
29
|
>
|
|
30
|
-
${
|
|
30
|
+
${ea()}
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
</gp-tab>
|
|
35
|
-
${
|
|
35
|
+
${er()}
|
|
36
36
|
`};export{Tabs as default};
|