@gem-sdk/components 8.0.0-dev.81 → 8.0.0-dev.84

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,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"),React=require("react"),Text=require("../../text/components/Text.js"),useDynamicProduct=require("../hooks/useDynamicProduct.js");const PostPurchaseProductPrice=({styles:e,style:r,builderAttrs:t,builderProps:c,children:o,setting:s})=>{let i=core.useCurrentVariant(),u=core.useProduct(),a=core.convertDecimalToNumber(i?.price)??0,p=core.convertDecimalToNumber(i?.salePrice)??0,n=parseFloat(core.shopifyPriceRounding(core.useProductOfferDiscount(),2)),d=a-n>0?a-n:a,{isDynamicProduct:l}=useDynamicProduct.useDynamicProduct(),{t:m}=core.useI18nStore(),{priceType:g,source:x}=s??{},P="compare"===g,h="offer"===g,y="price"===x,j="compare-price"===x,f=React.useMemo(()=>P?y?a:p:h?d:a,[P,y,h,a,p,d]),R=core.useFormatMoney(parseFloat(core.shopifyPriceRounding(Number(f)||0,2)),!1),D=u?.baseID?.replace("gid://shopify/Product/",""),N=React.useMemo(()=>P&&(!n&&p<a||a<=0),[P,n,a,p]);return!f||N?jsxRuntime.jsx("div",{className:"gp-h-[28px] gp-px-1.5 gp-py-1 gp-flex gp-border gp-border-light-200 gp-items-center gp-justify-center gp-rounded-lg",style:{borderStyle:"dashed",strokeDasharray:"2,2"},children:jsxRuntime.jsx("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:m(P?"No compare price":"No price")})}):jsxRuntime.jsxs("div",{...t,className:core.cls(c?.uid),style:{...r},id:`shopify-text-element-${c?.uid}`,"data-product-id":D,children:[jsxRuntime.jsx(Text.default,{styles:e,setting:{text:l?"$???":R},className:core.cls({"gp-money":h,"gp-product-compare-price":P,"gp-line-through":P&&j&&e?.lineThrough})}),o]})};exports.default=PostPurchaseProductPrice;
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),React=require("react"),Text=require("../../text/components/Text.js"),useDynamicProduct=require("../hooks/useDynamicProduct.js"),TooltipHover=require("../../../common/components/TooltipHover.js");const PostPurchaseProductPrice=({styles:e,style:r,builderAttrs:o,builderProps:t,children:s,setting:c})=>{let i=core.useCurrentVariant(),u=core.useProduct(),a=core.convertDecimalToNumber(i?.price)??0,n=core.convertDecimalToNumber(i?.salePrice)??0,p=parseFloat(core.shopifyPriceRounding(core.useProductOfferDiscount(),2)),d=a-p>0?a-p:a,{isDynamicProduct:l}=useDynamicProduct.useDynamicProduct(),{t:m}=core.useI18nStore(),{isEditMode:x}=core.useRenderMode(),{priceType:g,source:h}=c??{},y="compare"===g,P="offer"===g,f="price"===h,j=React.useMemo(()=>y?f?a:n:P?d:a,[y,f,P,a,n,d]),b=core.useFormatMoney(parseFloat(core.shopifyPriceRounding(Number(j)||0,2)),!1),R=u?.baseID?.replace("gid://shopify/Product/",""),N=React.useMemo(()=>y&&(!p&&n<a||a<=0),[y,p,a,n]);return(!j||N)&&x?jsxRuntime.jsx(TooltipHover.default,{enable:!0,text:"Not be displayed when published",width:"205px",position:"bottom",className:"gp-arrow-left-offset-10",children:jsxRuntime.jsx("div",{className:"gp-h-[28px] gp-px-1.5 gp-py-1 gp-flex gp-border gp-border-light-200 gp-items-center gp-justify-center gp-rounded-lg",style:{borderStyle:"dashed",strokeDasharray:"2,2"},children:jsxRuntime.jsx("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:m(y?"No compare price":"No discount")})})}):N?null:jsxRuntime.jsxs("div",{...o,className:core.cls(t?.uid),style:{...r},id:`shopify-text-element-${t?.uid}`,"data-product-id":R,children:[jsxRuntime.jsx(Text.default,{styles:e,setting:{text:l?"$???":b},className:core.cls({"gp-money":P,"gp-product-compare-price":y,"gp-line-through":y&&e?.lineThrough})}),s]})};exports.default=PostPurchaseProductPrice;
@@ -5,4 +5,4 @@
5
5
  <rect x="31" y="31" width="34" height="7" rx="3" fill="#424242"/>
6
6
  <rect x="36" y="41" width="24" height="7" rx="3" fill="#424242"/>
7
7
  </svg>
8
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[12],display:"fill"}}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProduct1Col=postPurchaseProduct1Col;
8
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[12],display:"fill"}}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProduct1Col=postPurchaseProduct1Col;
@@ -8,4 +8,4 @@
8
8
  <rect x="64" width="28" height="7" rx="3" fill="#424242"/>
9
9
  <rect x="64" y="11" width="14" height="7" rx="3" fill="#424242"/>
10
10
  </svg>
11
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"left",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{advanced:{blockPadding:"base"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProduct2Col=postPurchaseProduct2Col;
11
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"left",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{advanced:{blockPadding:"base"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProduct2Col=postPurchaseProduct2Col;
@@ -9,4 +9,4 @@
9
9
  <rect x="57" width="32" height="7" rx="3" fill="#424242"/>
10
10
  <rect x="57" y="11" width="18" height="7" rx="3" fill="#424242"/>
11
11
  </svg>
12
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare",color:{normal:"text-1"}}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProductOfferDefault=postPurchaseProductOfferDefault;
12
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"},styles:{color:{normal:"text-1"}}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProductOfferDefault=postPurchaseProductOfferDefault;
@@ -1 +1 @@
1
- "use strict";const SettingUIV2=[{label:{en:"Display"},controls:[{type:"control",label:{en:"Price"},options:{labelVariant:"primary"},setting:{id:"priceType"}},{type:"control",label:{en:"Source"},setting:{id:"source"},conditionDisplay:'priceType === "compare"'}]},{label:{en:"Text"},controls:[{type:"control",label:{en:""},setting:{id:"typo"},layout:"vertical"}]}];exports.SettingUIV2=SettingUIV2;
1
+ "use strict";const SettingUIV2=[{label:{en:"Display"},controls:[{type:"control",label:{en:"Price"},setting:{id:"priceType"}},{type:"control",label:{en:"Source"},setting:{id:"source"},conditionDisplay:'priceType === "compare"'}]},{label:{en:"Text"},controls:[{type:"control",label:{en:""},setting:{id:"typo"},layout:"vertical"}]}];exports.SettingUIV2=SettingUIV2;
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useCurrentVariant as t,useProduct as p,convertDecimalToNumber as o,shopifyPriceRounding as s,useProductOfferDiscount as c,useI18nStore as a,useFormatMoney as i,cls as d}from"@gem-sdk/core";import{useMemo as m}from"react";import l from"../../text/components/Text.js";import{useDynamicProduct as g}from"../hooks/useDynamicProduct.js";let PostPurchaseProductPrice=({styles:u,style:n,builderAttrs:h,builderProps:f,children:x,setting:y})=>{let P=t(),N=p(),b=o(P?.price)??0,j=o(P?.salePrice)??0,k=parseFloat(s(c(),2)),D=b-k>0?b-k:b,{isDynamicProduct:v}=g(),{t:F}=a(),{priceType:T,source:$}=y??{},I="compare"===T,S="offer"===T,q="price"===$,w="compare-price"===$,z=m(()=>I?q?b:j:S?D:b,[I,q,S,b,j,D]),A=i(parseFloat(s(Number(z)||0,2)),!1),B=N?.baseID?.replace("gid://shopify/Product/",""),C=m(()=>I&&(!k&&j<b||b<=0),[I,k,b,j]);return!z||C?e("div",{className:"gp-h-[28px] gp-px-1.5 gp-py-1 gp-flex gp-border gp-border-light-200 gp-items-center gp-justify-center gp-rounded-lg",style:{borderStyle:"dashed",strokeDasharray:"2,2"},children:e("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:F(I?"No compare price":"No price")})}):r("div",{...h,className:d(f?.uid),style:{...n},id:`shopify-text-element-${f?.uid}`,"data-product-id":B,children:[e(l,{styles:u,setting:{text:v?"$???":A},className:d({"gp-money":S,"gp-product-compare-price":I,"gp-line-through":I&&w&&u?.lineThrough})}),x]})};export{PostPurchaseProductPrice as default};
2
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useCurrentVariant as t,useProduct as o,convertDecimalToNumber as p,shopifyPriceRounding as s,useProductOfferDiscount as i,useI18nStore as a,useRenderMode as c,useFormatMoney as d,cls as l}from"@gem-sdk/core";import{useMemo as m}from"react";import n from"../../text/components/Text.js";import{useDynamicProduct as g}from"../hooks/useDynamicProduct.js";import u from"../../../common/components/TooltipHover.js";let PostPurchaseProductPrice=({styles:h,style:f,builderAttrs:x,builderProps:y,children:P,setting:b})=>{let N=t(),j=o(),k=p(N?.price)??0,v=p(N?.salePrice)??0,w=parseFloat(s(i(),2)),D=k-w>0?k-w:k,{isDynamicProduct:T}=g(),{t:F}=a(),{isEditMode:$}=c(),{priceType:H,source:I}=b??{},S="compare"===H,q="offer"===H,z="price"===I,A=m(()=>S?z?k:v:q?D:k,[S,z,q,k,v,D]),B=d(parseFloat(s(Number(A)||0,2)),!1),C=j?.baseID?.replace("gid://shopify/Product/",""),E=m(()=>S&&(!w&&v<k||k<=0),[S,w,k,v]);return(!A||E)&&$?e(u,{enable:!0,text:"Not be displayed when published",width:"205px",position:"bottom",className:"gp-arrow-left-offset-10",children:e("div",{className:"gp-h-[28px] gp-px-1.5 gp-py-1 gp-flex gp-border gp-border-light-200 gp-items-center gp-justify-center gp-rounded-lg",style:{borderStyle:"dashed",strokeDasharray:"2,2"},children:e("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:F(S?"No compare price":"No discount")})})}):E?null:r("div",{...x,className:l(y?.uid),style:{...f},id:`shopify-text-element-${y?.uid}`,"data-product-id":C,children:[e(n,{styles:h,setting:{text:T?"$???":B},className:l({"gp-money":q,"gp-product-compare-price":S,"gp-line-through":S&&h?.lineThrough})}),P]})};export{PostPurchaseProductPrice as default};
@@ -5,4 +5,4 @@ let postPurchaseProduct1Col={id:"post-purchase-product-offer-1-col",name:{en:"Pr
5
5
  <rect x="31" y="31" width="34" height="7" rx="3" fill="#424242"/>
6
6
  <rect x="36" y="41" width="24" height="7" rx="3" fill="#424242"/>
7
7
  </svg>
8
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[12],display:"fill"}}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProduct1Col};
8
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[12],display:"fill"}}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProduct1Col};
@@ -8,4 +8,4 @@ let postPurchaseProduct2Col={id:"post-purchase-product-offer-2-col",name:{en:"Pr
8
8
  <rect x="64" width="28" height="7" rx="3" fill="#424242"/>
9
9
  <rect x="64" y="11" width="14" height="7" rx="3" fill="#424242"/>
10
10
  </svg>
11
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"left",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{advanced:{blockPadding:"base"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProduct2Col};
11
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"left",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{advanced:{blockPadding:"base"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProduct2Col};
@@ -9,4 +9,4 @@ let postPurchaseProductOfferDefault={id:"post-purchase-product-offer",name:{en:"
9
9
  <rect x="57" width="32" height="7" rx="3" fill="#424242"/>
10
10
  <rect x="57" y="11" width="18" height="7" rx="3" fill="#424242"/>
11
11
  </svg>
12
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare",color:{normal:"text-1"}}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProductOfferDefault};
12
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"},styles:{color:{normal:"text-1"}}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProductOfferDefault};
@@ -1 +1 @@
1
- let SettingUIV2=[{label:{en:"Display"},controls:[{type:"control",label:{en:"Price"},options:{labelVariant:"primary"},setting:{id:"priceType"}},{type:"control",label:{en:"Source"},setting:{id:"source"},conditionDisplay:'priceType === "compare"'}]},{label:{en:"Text"},controls:[{type:"control",label:{en:""},setting:{id:"typo"},layout:"vertical"}]}];export{SettingUIV2};
1
+ let SettingUIV2=[{label:{en:"Display"},controls:[{type:"control",label:{en:"Price"},setting:{id:"priceType"}},{type:"control",label:{en:"Source"},setting:{id:"source"},conditionDisplay:'priceType === "compare"'}]},{label:{en:"Text"},controls:[{type:"control",label:{en:""},setting:{id:"typo"},layout:"vertical"}]}];export{SettingUIV2};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "8.0.0-dev.81",
3
+ "version": "8.0.0-dev.84",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@gem-sdk/core": "8.0.0-dev.77",
30
- "@gem-sdk/styles": "8.0.0-dev.59",
30
+ "@gem-sdk/styles": "8.0.0-dev.84",
31
31
  "@gem-sdk/system": "8.0.0-dev.59",
32
32
  "@types/react-transition-group": "^4.4.12",
33
33
  "tsup": "^8.5.0",