@gem-sdk/components 2.0.0-staging.1049 → 2.0.0-staging.1051

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";const SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH={HOME:1,OTHERS_TEMPLATE:2},SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX={HOME:0,OTHERS_TEMPLATE:1};exports.SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX=SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX,exports.SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH=SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH;
1
+ "use strict";const SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH={HOME:2,OTHERS_TEMPLATE:2},SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX={HOME:0,OTHERS_TEMPLATE:1};exports.SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX=SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX,exports.SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH=SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH;
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core");require("react");var Row=require("../../../grid/components/row/Row.js"),system=require("@gem-sdk/system"),classes=require("./common/classes.js"),styles=require("./common/styles.js"),helpers=require("./common/helpers.js"),Link=require("../../../link/components/Link.js");const CollectionBanner=({builderAttrs:e,builderProps:s,setting:t,style:r,children:l,advanced:a})=>{let n=core.useCollection(),i=core.useEditorMode(),{link:o,layout:c,width:m,verticalGutter:u,verticalAlign:y,horizontalAlign:d}=t??{};helpers.updateBackroundImageSrc({setting:t,collectionSrc:n?.collectionMedia?.src});let g=system.createClass({...classes.getClassContainerBanner({builderProps:s,setting:t,advanced:a})}),j=system.createClass({...classes.getClassContainerBackgoundImage({setting:t})}),C=system.createClass({...classes.getClassOverlayBanner({setting:t})}),k=system.createClass({...classes.getClassLinkBanner()}),x=system.createStyle({...styles.getDimension({setting:t})}),p=system.createStyle({...styles.getStyleOverlay({setting:t})}),q=system.createStyle({...styles.getStyleContainerBackgoundImage({setting:t,hasCollectionImage:!1})});return jsxRuntime.jsxs("div",{...e,className:g,style:x,children:[jsxRuntime.jsx("div",{"aria-label":"Background Image",role:"banner",className:j,style:q}),jsxRuntime.jsx("div",{"aria-label":"Overlay",role:"banner",className:C,style:p}),system.If(!!o?.link&&"edit"!==i,jsxRuntime.jsx(Link.default,{setting:{href:o?.link,target:o?.target},className:k})),jsxRuntime.jsx(Row.default,{setting:{layout:c,horizontalAlign:d,verticalAlign:y},styles:{verticalGutter:u,width:m,fullWidth:{desktop:!1,tablet:!1,mobile:!1}},style:r,children:l})]})};exports.default=CollectionBanner;
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core");require("react");var Row=require("../../../grid/components/row/Row.js"),system=require("@gem-sdk/system"),classes=require("./common/classes.js"),styles=require("./common/styles.js"),helpers=require("./common/helpers.js"),Link=require("../../../link/components/Link.js");const CollectionBanner=({builderAttrs:e,builderProps:s,setting:t,style:r,children:l,advanced:a})=>{let n=core.useCollection(),i=core.useEditorMode(),{link:o,layout:c,width:m,verticalGutter:u,verticalAlign:y,horizontalAlign:d}=t??{};helpers.updateBackroundImageSrc({setting:t,collectionSrc:n?.collectionMedia?.src});let g=system.createClass({...classes.getClassContainerBanner({builderProps:s,setting:t,advanced:a})}),j=system.createClass({...classes.getClassContainerBackgoundImage({setting:t})}),C=system.createClass({...classes.getClassOverlayBanner({setting:t})}),k=system.createClass({...classes.getClassLinkBanner()}),x=system.createStyle({...styles.getDimension({setting:t,style:r})}),p=system.createStyle({...styles.getStyleOverlay({setting:t})}),q=system.createStyle({...styles.getStyleContainerBackgoundImage({setting:t,hasCollectionImage:!1})});return jsxRuntime.jsxs("div",{...e,className:g,style:x,children:[jsxRuntime.jsx("div",{"aria-label":"Background Image",role:"banner",className:j,style:q}),jsxRuntime.jsx("div",{"aria-label":"Overlay",role:"banner",className:C,style:p}),system.If(!!o?.link&&"edit"!==i,jsxRuntime.jsx(Link.default,{setting:{href:o?.link,target:o?.target},className:k})),jsxRuntime.jsx(Row.default,{setting:{layout:c,horizontalAlign:d,verticalAlign:y},styles:{verticalGutter:u,width:m,fullWidth:{desktop:!1,tablet:!1,mobile:!1}},style:r,children:l})]})};exports.default=CollectionBanner;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),Row_liquid=require("../../../grid/components/row/Row.liquid.js"),system=require("@gem-sdk/system"),classes=require("./common/classes.js"),styles=require("./common/styles.js"),helpers=require("./common/helpers.js");const CollectionBanner=({builderAttrs:e,builderProps:s,setting:l,style:t,children:a,rawChildren:r,advanced:n})=>{let{link:i,layout:o,width:c,verticalGutter:m,horizontalAlign:y,verticalAlign:d}=l??{};helpers.updateBackroundImageSrc({setting:l,collectionSrc:`{% if collection.image %} {{ collection.image.src | image_url}} {% else %} ${helpers.defaultImageUrl} {% endif %}`});let g=system.createClass({...classes.getClassContainerBanner({builderProps:s,setting:l,advanced:n})}),u=system.createClass({...classes.getClassContainerBackgoundImage({setting:l})}),C=system.createClass({...classes.getClassOverlayBanner({setting:l})}),$=system.createClass({...classes.getClassLinkBanner()}),p=system.createStyle({...styles.getDimension({setting:l})}),v=system.createStyle({...styles.getStyleOverlay({setting:l})}),k=system.createStyle({...styles.getStyleContainerBackgoundImage({setting:l,hasCollectionImage:!1})});return core.template`
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),Row_liquid=require("../../../grid/components/row/Row.liquid.js"),system=require("@gem-sdk/system"),classes=require("./common/classes.js"),styles=require("./common/styles.js"),helpers=require("./common/helpers.js");const CollectionBanner=({builderAttrs:e,builderProps:s,setting:l,style:t,children:a,rawChildren:r,advanced:n})=>{let{link:i,layout:o,width:c,verticalGutter:m,horizontalAlign:y,verticalAlign:d}=l??{};helpers.updateBackroundImageSrc({setting:l,collectionSrc:`{% if collection.image %} {{ collection.image.src | image_url}} {% else %} ${helpers.defaultImageUrl} {% endif %}`});let g=system.createClass({...classes.getClassContainerBanner({builderProps:s,setting:l,advanced:n})}),u=system.createClass({...classes.getClassContainerBackgoundImage({setting:l})}),C=system.createClass({...classes.getClassOverlayBanner({setting:l})}),$=system.createClass({...classes.getClassLinkBanner()}),p=system.createStyle({...styles.getDimension({setting:l,style:t})}),v=system.createStyle({...styles.getStyleOverlay({setting:l})}),k=system.createStyle({...styles.getStyleContainerBackgoundImage({setting:l,hasCollectionImage:!1})});return core.template`
3
3
  <div ${{...e}} class="${g}" style="${p}">
4
4
  <div
5
5
  aria-label="Background Image"
@@ -1 +1 @@
1
- "use strict";var core=require("@gem-sdk/core");const getDimension=({setting:e})=>{let{fixedMode:t,height:o,background:a}=e??{},r=t?{"--aspect":composeAspect(a?.desktop?.image),"--aspect-tablet":composeAspect(a?.tablet?.image),"--aspect-mobile":composeAspect(a?.mobile?.image)}:core.makeStyleResponsive("h",o);return r},getStyleOverlay=({setting:e})=>{let{overlayOpacity:t,overlayColor:o}=e??{};return{...core.getGlobalColorStateStyle("bgc",o),...core.makeStyleState("op",t)}},getStyleContainerBackgoundImage=({setting:e,hasCollectionImage:t})=>{let{hoverDuration:o,background:a,hoverScale:r}=e??{};return{...core.getStyleBackgroundByDevice(a),"--duration":`${o??0}s`,"--scale":`${r??100}%`,...t?{...core.makeStyleResponsive("bgi",makeBackgroundImage("url({{ collection.image.src | image_url}})"))}:{}}},makeBackgroundImage=e=>({desktop:e,tablet:e,mobile:e}),composeAspect=e=>{if(e&&e.width&&e.height&&e.src)return`${e.width}/${e.height}`};exports.getDimension=getDimension,exports.getStyleContainerBackgoundImage=getStyleContainerBackgoundImage,exports.getStyleOverlay=getStyleOverlay;
1
+ "use strict";var core=require("@gem-sdk/core");const getDimension=({setting:e,style:t})=>{let{fixedMode:o,height:a,background:l}=e??{},r=o?{"--aspect":composeAspect(l?.desktop?.image),"--aspect-tablet":composeAspect(l?.tablet?.image),"--aspect-mobile":composeAspect(l?.mobile?.image)}:core.makeStyleResponsive("h",a);return{...r,"--d":t?.["--d"]||"block","--d-mobile":t?.["--d-mobile"]||"block","--d-tablet":t?.["--d-tablet"]||"block"}},getStyleOverlay=({setting:e})=>{let{overlayOpacity:t,overlayColor:o}=e??{};return{...core.getGlobalColorStateStyle("bgc",o),...core.makeStyleState("op",t)}},getStyleContainerBackgoundImage=({setting:e,hasCollectionImage:t})=>{let{hoverDuration:o,background:a,hoverScale:l}=e??{};return{...core.getStyleBackgroundByDevice(a),"--duration":`${o??0}s`,"--scale":`${l??100}%`,...t?{...core.makeStyleResponsive("bgi",makeBackgroundImage("url({{ collection.image.src | image_url}})"))}:{}}},makeBackgroundImage=e=>({desktop:e,tablet:e,mobile:e}),composeAspect=e=>{if(e&&e.width&&e.height&&e.src)return`${e.width}/${e.height}`};exports.getDimension=getDimension,exports.getStyleContainerBackgoundImage=getStyleContainerBackgoundImage,exports.getStyleOverlay=getStyleOverlay;
@@ -1 +1 @@
1
- "use strict";var core=require("@gem-sdk/core"),helpers=require("./helpers.js");function filterTruthyStyles(e){return Object.fromEntries(Object.entries(e||{}).filter(([,e])=>!!e))}const getStyle=(e,t,r)=>{let{sizeSetting:l,background:o}=e??{},{ratioOptions:i,aspectRatio:a}=t??{},s={...r,...helpers.getVisibilityStyle(r),...core.makeStyleWithDefault("w",core.getWidthByShapeGlobalSize(l,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...helpers.getStyleAspectRatioHeroBannerCustom(o,l,helpers.getAspectRatioSettings(i,a)),...core.makeStyleResponsive("h",core.getHeightByShapeGlobalSize(l))};return filterTruthyStyles(s)},getContainerStyle=(e,t)=>{let{sizeSetting:r,background:l,borderBg:o,cornerBg:i,shadowBg:a,hasActiveShadow:s}=e??{},{ratioOptions:y,aspectRatio:g}=t??{},S={...helpers.getStyleAspectRatioHeroBannerCustom(l,r,helpers.getAspectRatioSettings(y,g)),...core.makeStyle({bs:o?.border??o?.border,bw:o?.width??o?.width,bc:core.getSingleColorVariable(o?.color)}),...core.getRadiusStyleActiveState({...i,active:{...i||{},radiusType:"custom"}}),...core.getStyleShadow({value:a,styleAppliedFor:"box-shadow",isEnableShadow:s})};return filterTruthyStyles(S)},getOverlayStyle=e=>{let{overlayColor:t,overlayOpacity:r}=e??{},l=core.getGlobalColorStateStyle("bgc",t),o=core.makeStyleState("op",r),{disableOpacity:i,disableHoverOpacity:a}=helpers.opacityEnabledData(e);i&&(delete l?.["--bgc"],delete o?.["--op"]),a&&(delete l?.["--hvr-bgc"],delete o?.["--hvr-op"]);let s={...l,...o,"--top":"0","--left":"0"};return filterTruthyStyles(s)},getRowStyle=e=>{let{contentPadding:t}=e??{},r={...core.getResponsiveStylePadding(t)};return filterTruthyStyles(r)},getAdaptiveStyle=e=>{let{sizeSetting:t,background:r}=e??{},l={...helpers.getDisplayStyleByFitContent(t,r),...core.makeStyleResponsive("h",core.getHeightByShapeGlobalSize(t)),...core.makeStyleWithDefault("w",core.getWidthByShapeGlobalSize(t,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),"--op":0,"--z":-1};return filterTruthyStyles(l)},getBackgroundStyle=(e,t,r)=>{let{hoverEffectScale:l,background:o,hoverEffectDuration:i}=e??{},a={...helpers.getStyleHeroBannerBg(helpers.getResponsiveSetting(o||{}),t),...core.getStyleBackgroundByDevice(o,{ignoreBgAttachment:!0,ignoreBackgroundImage:!0}),"--duration":`${i??0}s`,"--scale":helpers.formatHoverScale(l),...core.makeStyleResponsive("pos",helpers.getAttachmentDevice(o)),transform:r,transition:"transform 300ms cubic-bezier(0,0,0,1)"};return filterTruthyStyles(a)},getContainBackgroundStyle=e=>{let{borderBg:t,cornerBg:r}=e??{},l={"clip-path":helpers.getClipPath(t?.width,r)};return filterTruthyStyles(l)},getHtml5VideoStyle=e=>{let t={...core.makeStyleResponsive("aspect",e)};return filterTruthyStyles(t)},getYoutubeIframeStyle=e=>{let t={...core.makeStyleResponsive("aspect",e),"pointer-event":"none"};return filterTruthyStyles(t)};exports.getAdaptiveStyle=getAdaptiveStyle,exports.getBackgroundStyle=getBackgroundStyle,exports.getContainBackgroundStyle=getContainBackgroundStyle,exports.getContainerStyle=getContainerStyle,exports.getHtml5VideoStyle=getHtml5VideoStyle,exports.getOverlayStyle=getOverlayStyle,exports.getRowStyle=getRowStyle,exports.getStyle=getStyle,exports.getYoutubeIframeStyle=getYoutubeIframeStyle;
1
+ "use strict";var core=require("@gem-sdk/core"),helpers=require("./helpers.js");function filterTruthyStyles(e){return Object.fromEntries(Object.entries(e||{}).filter(([,e])=>!!e))}const getStyle=(e,t,r)=>{let{sizeSetting:l,background:o}=e??{},{ratioOptions:i,aspectRatio:a}=t??{},s={...r,...helpers.getVisibilityStyle(r),...core.makeStyleWithDefault("w",core.getWidthByShapeGlobalSize(l,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...helpers.getStyleAspectRatioHeroBannerCustom(o,l,helpers.getAspectRatioSettings(i,a)),...core.makeStyleResponsive("h",core.getHeightByShapeGlobalSize(l))};return filterTruthyStyles(s)},getContainerStyle=(e,t)=>{let{sizeSetting:r,background:l,borderBg:o,cornerBg:i,shadowBg:a,hasActiveShadow:s}=e??{},{ratioOptions:y,aspectRatio:g}=t??{},S={...helpers.getStyleAspectRatioHeroBannerCustom(l,r,helpers.getAspectRatioSettings(y,g)),...core.makeStyle({bs:o?.border??o?.border,bw:o?.width??o?.width,bc:core.getSingleColorVariable(o?.color)}),...core.getRadiusStyleActiveState({...i,active:{...i||{},radiusType:"custom"}}),...l?{...core.getStyleBgColor(l)}:{},...core.getStyleShadow({value:a,styleAppliedFor:"box-shadow",isEnableShadow:s})};return filterTruthyStyles(S)},getOverlayStyle=e=>{let{overlayColor:t,overlayOpacity:r}=e??{},l=core.getGlobalColorStateStyle("bgc",t),o=core.makeStyleState("op",r),{disableOpacity:i,disableHoverOpacity:a}=helpers.opacityEnabledData(e);i&&(delete l?.["--bgc"],delete o?.["--op"]),a&&(delete l?.["--hvr-bgc"],delete o?.["--hvr-op"]);let s={...l,...o,"--top":"0","--left":"0"};return filterTruthyStyles(s)},getRowStyle=e=>{let{contentPadding:t}=e??{},r={...core.getResponsiveStylePadding(t)};return filterTruthyStyles(r)},getAdaptiveStyle=e=>{let{sizeSetting:t,background:r}=e??{},l={...helpers.getDisplayStyleByFitContent(t,r),...core.makeStyleResponsive("h",core.getHeightByShapeGlobalSize(t)),...core.makeStyleWithDefault("w",core.getWidthByShapeGlobalSize(t,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),"--op":0,"--z":-1};return filterTruthyStyles(l)},getBackgroundStyle=(e,t,r)=>{let{hoverEffectScale:l,background:o,hoverEffectDuration:i}=e??{},a={...helpers.getStyleHeroBannerBg(helpers.getResponsiveSetting(o||{}),t),...core.getStyleBackgroundByDevice(o,{ignoreBgAttachment:!0,ignoreBackgroundImage:!0}),"--duration":`${i??0}s`,"--scale":helpers.formatHoverScale(l),...core.makeStyleResponsive("pos",helpers.getAttachmentDevice(o)),transform:r,transition:"transform 300ms cubic-bezier(0,0,0,1)"};return filterTruthyStyles(a)},getContainBackgroundStyle=e=>{let{borderBg:t,cornerBg:r}=e??{},l={"clip-path":helpers.getClipPath(t?.width,r)};return filterTruthyStyles(l)},getHtml5VideoStyle=e=>{let t={...core.makeStyleResponsive("aspect",e)};return filterTruthyStyles(t)},getYoutubeIframeStyle=e=>{let t={...core.makeStyleResponsive("aspect",e),"pointer-event":"none"};return filterTruthyStyles(t)};exports.getAdaptiveStyle=getAdaptiveStyle,exports.getBackgroundStyle=getBackgroundStyle,exports.getContainBackgroundStyle=getContainBackgroundStyle,exports.getContainerStyle=getContainerStyle,exports.getHtml5VideoStyle=getHtml5VideoStyle,exports.getOverlayStyle=getOverlayStyle,exports.getRowStyle=getRowStyle,exports.getStyle=getStyle,exports.getYoutubeIframeStyle=getYoutubeIframeStyle;
@@ -93,6 +93,7 @@
93
93
  left: 0;
94
94
  pointer-events: none;
95
95
  z-index: -1;
96
+ transition-duration: 0.2s;
96
97
  }
97
98
 
98
99
  .wrap__button--unbranded__${t} .shopify-payment-button .shopify-payment-button__button--unbranded::after {
@@ -3,7 +3,7 @@
3
3
  assign current_variant = product.selected_or_first_available_variant
4
4
  assign available = current_variant.available | default: false
5
5
  -%}
6
- <gp-product-quantity-
6
+ <gp-product-quantity
7
7
  ${{...h}}
8
8
  data-price="${n}"
9
9
  class="${q}"
@@ -1 +1 @@
1
- let SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH={HOME:1,OTHERS_TEMPLATE:2},SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX={HOME:0,OTHERS_TEMPLATE:1};export{SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX,SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH};
1
+ let SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH={HOME:2,OTHERS_TEMPLATE:2},SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX={HOME:0,OTHERS_TEMPLATE:1};export{SHOPIFY_TEMPLATE_BREADCRUMB_ITEM_INDEX,SHOPIFY_TEMPLATE_BREADCRUMB_LENGTH};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useCollection as t,useEditorMode as r}from"@gem-sdk/core";import"react";import l from"../../../grid/components/row/Row.js";import{createClass as s,createStyle as m,If as i}from"@gem-sdk/system";import{getClassContainerBanner as a,getClassContainerBackgoundImage as n,getClassOverlayBanner as c,getClassLinkBanner as d}from"./common/classes.js";import{getDimension as p,getStyleOverlay as f,getStyleContainerBackgoundImage as g}from"./common/styles.js";import{updateBackroundImageSrc as k}from"./common/helpers.js";import y from"../../../link/components/Link.js";let CollectionBanner=({builderAttrs:b,builderProps:h,setting:j,style:u,children:v,advanced:N})=>{let B=t(),C=r(),{link:w,layout:x,width:I,verticalGutter:L,verticalAlign:M,horizontalAlign:O}=j??{};k({setting:j,collectionSrc:B?.collectionMedia?.src});let R=s({...a({builderProps:h,setting:j,advanced:N})}),S=s({...n({setting:j})}),W=s({...c({setting:j})}),q=s({...d()}),z=m({...p({setting:j})}),A=m({...f({setting:j})}),D=m({...g({setting:j,hasCollectionImage:!1})});return e("div",{...b,className:R,style:z,children:[o("div",{"aria-label":"Background Image",role:"banner",className:S,style:D}),o("div",{"aria-label":"Overlay",role:"banner",className:W,style:A}),i(!!w?.link&&"edit"!==C,o(y,{setting:{href:w?.link,target:w?.target},className:q})),o(l,{setting:{layout:x,horizontalAlign:O,verticalAlign:M},styles:{verticalGutter:L,width:I,fullWidth:{desktop:!1,tablet:!1,mobile:!1}},style:u,children:v})]})};export{CollectionBanner as default};
2
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useCollection as t,useEditorMode as r}from"@gem-sdk/core";import"react";import l from"../../../grid/components/row/Row.js";import{createClass as s,createStyle as m,If as i}from"@gem-sdk/system";import{getClassContainerBanner as a,getClassContainerBackgoundImage as n,getClassOverlayBanner as c,getClassLinkBanner as d}from"./common/classes.js";import{getDimension as p,getStyleOverlay as f,getStyleContainerBackgoundImage as g}from"./common/styles.js";import{updateBackroundImageSrc as k}from"./common/helpers.js";import y from"../../../link/components/Link.js";let CollectionBanner=({builderAttrs:b,builderProps:h,setting:j,style:u,children:v,advanced:N})=>{let B=t(),C=r(),{link:w,layout:x,width:I,verticalGutter:L,verticalAlign:M,horizontalAlign:O}=j??{};k({setting:j,collectionSrc:B?.collectionMedia?.src});let R=s({...a({builderProps:h,setting:j,advanced:N})}),S=s({...n({setting:j})}),W=s({...c({setting:j})}),q=s({...d()}),z=m({...p({setting:j,style:u})}),A=m({...f({setting:j})}),D=m({...g({setting:j,hasCollectionImage:!1})});return e("div",{...b,className:R,style:z,children:[o("div",{"aria-label":"Background Image",role:"banner",className:S,style:D}),o("div",{"aria-label":"Overlay",role:"banner",className:W,style:A}),i(!!w?.link&&"edit"!==C,o(y,{setting:{href:w?.link,target:w?.target},className:q})),o(l,{setting:{layout:x,horizontalAlign:O,verticalAlign:M},styles:{verticalGutter:L,width:I,fullWidth:{desktop:!1,tablet:!1,mobile:!1}},style:u,children:v})]})};export{CollectionBanner as default};
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import{template as e,RenderIf as l}from"@gem-sdk/core";import o from"../../../grid/components/row/Row.liquid.js";import{createClass as r,createStyle as t}from"@gem-sdk/system";import{getClassContainerBanner as s,getClassContainerBackgoundImage as i,getClassOverlayBanner as a,getClassLinkBanner as m}from"./common/classes.js";import{getDimension as n,getStyleOverlay as c,getStyleContainerBackgoundImage as d}from"./common/styles.js";import{updateBackroundImageSrc as $,defaultImageUrl as g}from"./common/helpers.js";let CollectionBanner=({builderAttrs:f,builderProps:p,setting:v,style:y,children:b,rawChildren:k,advanced:u})=>{let{link:h,layout:j,width:B,verticalGutter:C,horizontalAlign:w,verticalAlign:I}=v??{};$({setting:v,collectionSrc:`{% if collection.image %} {{ collection.image.src | image_url}} {% else %} ${g} {% endif %}`});let q=r({...s({builderProps:p,setting:v,advanced:u})}),x=r({...i({setting:v})}),O=r({...a({setting:v})}),R=r({...m()}),S=t({...n({setting:v})}),W=t({...c({setting:v})}),_=t({...d({setting:v,hasCollectionImage:!1})});return e`
2
+ import{template as e,RenderIf as l}from"@gem-sdk/core";import o from"../../../grid/components/row/Row.liquid.js";import{createClass as r,createStyle as t}from"@gem-sdk/system";import{getClassContainerBanner as s,getClassContainerBackgoundImage as i,getClassOverlayBanner as a,getClassLinkBanner as m}from"./common/classes.js";import{getDimension as n,getStyleOverlay as c,getStyleContainerBackgoundImage as d}from"./common/styles.js";import{updateBackroundImageSrc as $,defaultImageUrl as g}from"./common/helpers.js";let CollectionBanner=({builderAttrs:f,builderProps:p,setting:v,style:y,children:b,rawChildren:k,advanced:u})=>{let{link:h,layout:j,width:B,verticalGutter:C,horizontalAlign:w,verticalAlign:I}=v??{};$({setting:v,collectionSrc:`{% if collection.image %} {{ collection.image.src | image_url}} {% else %} ${g} {% endif %}`});let q=r({...s({builderProps:p,setting:v,advanced:u})}),x=r({...i({setting:v})}),O=r({...a({setting:v})}),R=r({...m()}),S=t({...n({setting:v,style:y})}),W=t({...c({setting:v})}),_=t({...d({setting:v,hasCollectionImage:!1})});return e`
3
3
  <div ${{...f}} class="${q}" style="${S}">
4
4
  <div
5
5
  aria-label="Background Image"
@@ -1 +1 @@
1
- import{makeStyleResponsive as e,getGlobalColorStateStyle as t,makeStyleState as o,getStyleBackgroundByDevice as a}from"@gem-sdk/core";let getDimension=({setting:t})=>{let{fixedMode:o,height:a,background:g}=t??{},i=o?{"--aspect":composeAspect(g?.desktop?.image),"--aspect-tablet":composeAspect(g?.tablet?.image),"--aspect-mobile":composeAspect(g?.mobile?.image)}:e("h",a);return i},getStyleOverlay=({setting:e})=>{let{overlayOpacity:a,overlayColor:g}=e??{};return{...t("bgc",g),...o("op",a)}},getStyleContainerBackgoundImage=({setting:t,hasCollectionImage:o})=>{let{hoverDuration:g,background:i,hoverScale:m}=t??{};return{...a(i),"--duration":`${g??0}s`,"--scale":`${m??100}%`,...o?{...e("bgi",makeBackgroundImage("url({{ collection.image.src | image_url}})"))}:{}}},makeBackgroundImage=e=>({desktop:e,tablet:e,mobile:e}),composeAspect=e=>{if(e&&e.width&&e.height&&e.src)return`${e.width}/${e.height}`};export{getDimension,getStyleContainerBackgoundImage,getStyleOverlay};
1
+ import{makeStyleResponsive as e,getGlobalColorStateStyle as t,makeStyleState as o,getStyleBackgroundByDevice as a}from"@gem-sdk/core";let getDimension=({setting:t,style:o})=>{let{fixedMode:a,height:l,background:c}=t??{},i=a?{"--aspect":composeAspect(c?.desktop?.image),"--aspect-tablet":composeAspect(c?.tablet?.image),"--aspect-mobile":composeAspect(c?.mobile?.image)}:e("h",l);return{...i,"--d":o?.["--d"]||"block","--d-mobile":o?.["--d-mobile"]||"block","--d-tablet":o?.["--d-tablet"]||"block"}},getStyleOverlay=({setting:e})=>{let{overlayOpacity:a,overlayColor:l}=e??{};return{...t("bgc",l),...o("op",a)}},getStyleContainerBackgoundImage=({setting:t,hasCollectionImage:o})=>{let{hoverDuration:l,background:c,hoverScale:i}=t??{};return{...a(c),"--duration":`${l??0}s`,"--scale":`${i??100}%`,...o?{...e("bgi",makeBackgroundImage("url({{ collection.image.src | image_url}})"))}:{}}},makeBackgroundImage=e=>({desktop:e,tablet:e,mobile:e}),composeAspect=e=>{if(e&&e.width&&e.height&&e.src)return`${e.width}/${e.height}`};export{getDimension,getStyleContainerBackgoundImage,getStyleOverlay};
@@ -1 +1 @@
1
- import{makeStyleWithDefault as t,getWidthByShapeGlobalSize as e,makeStyleResponsive as r,getHeightByShapeGlobalSize as l,makeStyle as o,getSingleColorVariable as i,getRadiusStyleActiveState as y,getStyleShadow as n,getGlobalColorStateStyle as g,makeStyleState as u,getResponsiveStylePadding as a,getStyleBackgroundByDevice as s}from"@gem-sdk/core";import{getVisibilityStyle as c,getStyleAspectRatioHeroBannerCustom as S,getAspectRatioSettings as d,getDisplayStyleByFitContent as h,getStyleHeroBannerBg as p,formatHoverScale as b,getAttachmentDevice as f,getClipPath as m,opacityEnabledData as w,getResponsiveSetting as T}from"./helpers.js";function filterTruthyStyles(t){return Object.fromEntries(Object.entries(t||{}).filter(([,t])=>!!t))}let getStyle=(o,i,y)=>{let{sizeSetting:n,background:g}=o??{},{ratioOptions:u,aspectRatio:a}=i??{},s={...y,...c(y),...t("w",e(n,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...S(g,n,d(u,a)),...r("h",l(n))};return filterTruthyStyles(s)},getContainerStyle=(t,e)=>{let{sizeSetting:r,background:l,borderBg:g,cornerBg:u,shadowBg:a,hasActiveShadow:s}=t??{},{ratioOptions:c,aspectRatio:h}=e??{},p={...S(l,r,d(c,h)),...o({bs:g?.border??g?.border,bw:g?.width??g?.width,bc:i(g?.color)}),...y({...u,active:{...u||{},radiusType:"custom"}}),...n({value:a,styleAppliedFor:"box-shadow",isEnableShadow:s})};return filterTruthyStyles(p)},getOverlayStyle=t=>{let{overlayColor:e,overlayOpacity:r}=t??{},l=g("bgc",e),o=u("op",r),{disableOpacity:i,disableHoverOpacity:y}=w(t);i&&(delete l?.["--bgc"],delete o?.["--op"]),y&&(delete l?.["--hvr-bgc"],delete o?.["--hvr-op"]);let n={...l,...o,"--top":"0","--left":"0"};return filterTruthyStyles(n)},getRowStyle=t=>{let{contentPadding:e}=t??{},r={...a(e)};return filterTruthyStyles(r)},getAdaptiveStyle=o=>{let{sizeSetting:i,background:y}=o??{},n={...h(i,y),...r("h",l(i)),...t("w",e(i,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),"--op":0,"--z":-1};return filterTruthyStyles(n)},getBackgroundStyle=(t,e,l)=>{let{hoverEffectScale:o,background:i,hoverEffectDuration:y}=t??{},n={...p(T(i||{}),e),...s(i,{ignoreBgAttachment:!0,ignoreBackgroundImage:!0}),"--duration":`${y??0}s`,"--scale":b(o),...r("pos",f(i)),transform:l,transition:"transform 300ms cubic-bezier(0,0,0,1)"};return filterTruthyStyles(n)},getContainBackgroundStyle=t=>{let{borderBg:e,cornerBg:r}=t??{},l={"clip-path":m(e?.width,r)};return filterTruthyStyles(l)},getHtml5VideoStyle=t=>{let e={...r("aspect",t)};return filterTruthyStyles(e)},getYoutubeIframeStyle=t=>{let e={...r("aspect",t),"pointer-event":"none"};return filterTruthyStyles(e)};export{getAdaptiveStyle,getBackgroundStyle,getContainBackgroundStyle,getContainerStyle,getHtml5VideoStyle,getOverlayStyle,getRowStyle,getStyle,getYoutubeIframeStyle};
1
+ import{makeStyleWithDefault as t,getWidthByShapeGlobalSize as e,makeStyleResponsive as r,getHeightByShapeGlobalSize as l,makeStyle as o,getSingleColorVariable as i,getRadiusStyleActiveState as y,getStyleBgColor as n,getStyleShadow as g,getGlobalColorStateStyle as u,makeStyleState as a,getResponsiveStylePadding as s,getStyleBackgroundByDevice as c}from"@gem-sdk/core";import{getVisibilityStyle as S,getStyleAspectRatioHeroBannerCustom as d,getAspectRatioSettings as h,getDisplayStyleByFitContent as p,getStyleHeroBannerBg as b,formatHoverScale as f,getAttachmentDevice as m,getClipPath as w,opacityEnabledData as T,getResponsiveSetting as v}from"./helpers.js";function filterTruthyStyles(t){return Object.fromEntries(Object.entries(t||{}).filter(([,t])=>!!t))}let getStyle=(o,i,y)=>{let{sizeSetting:n,background:g}=o??{},{ratioOptions:u,aspectRatio:a}=i??{},s={...y,...S(y),...t("w",e(n,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...d(g,n,h(u,a)),...r("h",l(n))};return filterTruthyStyles(s)},getContainerStyle=(t,e)=>{let{sizeSetting:r,background:l,borderBg:u,cornerBg:a,shadowBg:s,hasActiveShadow:c}=t??{},{ratioOptions:S,aspectRatio:p}=e??{},b={...d(l,r,h(S,p)),...o({bs:u?.border??u?.border,bw:u?.width??u?.width,bc:i(u?.color)}),...y({...a,active:{...a||{},radiusType:"custom"}}),...l?{...n(l)}:{},...g({value:s,styleAppliedFor:"box-shadow",isEnableShadow:c})};return filterTruthyStyles(b)},getOverlayStyle=t=>{let{overlayColor:e,overlayOpacity:r}=t??{},l=u("bgc",e),o=a("op",r),{disableOpacity:i,disableHoverOpacity:y}=T(t);i&&(delete l?.["--bgc"],delete o?.["--op"]),y&&(delete l?.["--hvr-bgc"],delete o?.["--hvr-op"]);let n={...l,...o,"--top":"0","--left":"0"};return filterTruthyStyles(n)},getRowStyle=t=>{let{contentPadding:e}=t??{},r={...s(e)};return filterTruthyStyles(r)},getAdaptiveStyle=o=>{let{sizeSetting:i,background:y}=o??{},n={...p(i,y),...r("h",l(i)),...t("w",e(i,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),"--op":0,"--z":-1};return filterTruthyStyles(n)},getBackgroundStyle=(t,e,l)=>{let{hoverEffectScale:o,background:i,hoverEffectDuration:y}=t??{},n={...b(v(i||{}),e),...c(i,{ignoreBgAttachment:!0,ignoreBackgroundImage:!0}),"--duration":`${y??0}s`,"--scale":f(o),...r("pos",m(i)),transform:l,transition:"transform 300ms cubic-bezier(0,0,0,1)"};return filterTruthyStyles(n)},getContainBackgroundStyle=t=>{let{borderBg:e,cornerBg:r}=t??{},l={"clip-path":w(e?.width,r)};return filterTruthyStyles(l)},getHtml5VideoStyle=t=>{let e={...r("aspect",t)};return filterTruthyStyles(e)},getYoutubeIframeStyle=t=>{let e={...r("aspect",t),"pointer-event":"none"};return filterTruthyStyles(e)};export{getAdaptiveStyle,getBackgroundStyle,getContainBackgroundStyle,getContainerStyle,getHtml5VideoStyle,getOverlayStyle,getRowStyle,getStyle,getYoutubeIframeStyle};
@@ -93,6 +93,7 @@ import{getWidthHeightGlobalSize as t,getPaddingGlobalSize as o,composeShadowCss
93
93
  left: 0;
94
94
  pointer-events: none;
95
95
  z-index: -1;
96
+ transition-duration: 0.2s;
96
97
  }
97
98
 
98
99
  .wrap__button--unbranded__${e} .shopify-payment-button .shopify-payment-button__button--unbranded::after {
@@ -3,7 +3,7 @@ import{template as t,RenderIf as s,isLocalEnv as e,baseAssetURL as a}from"@gem-s
3
3
  assign current_variant = product.selected_or_first_available_variant
4
4
  assign available = current_variant.available | default: false
5
5
  -%}
6
- <gp-product-quantity-
6
+ <gp-product-quantity
7
7
  ${{...z}}
8
8
  data-price="${P}"
9
9
  class="${F}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.1049",
3
+ "version": "2.0.0-staging.1051",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",