@gem-sdk/components 2.0.0-dev.843 → 2.0.0-dev.844

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";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),react=require("react"),helper=require("../../utils/helper.js"),MoneyLine=require("./priceBreakdown/MoneyLine.js");const PostPurchaseProductPriceBreakdown=({setting:e={},styles:t={},style:i,builderAttrs:s,builderProps:l,children:r})=>{let o=core.useCurrentVariant(),n=core.useProduct(),{quantity:a}=core.useQuantity(),u=o?.price??0,c=parseFloat(core.shopifyPriceRounding(core.useProductOfferDiscount(),2)),d=c*(a||1),p=u*(a||1),x=core.useFormatMoney(p,!0),m=core.useFormatMoney(d,!0),g=core.useFormatMoney(p-d,!0),h=n?.baseID?.replace("gid://shopify/Product/",""),{labelStyle:j,moneyStyle:f,spacing:y,width:b,align:L,isShowPrice:w}=t,R=react.useMemo(()=>helper.postPurchaseSpacing[y||"none"],[y]),[v,P]=react.useState(w);react.useEffect(()=>{P(w)},[w]);let q=react.useMemo(()=>[{title:e.subTotalLabel,money:x,uniqueId:"subTotalLabel"},{title:e.discountLabel,money:c>0?m:"No discount",uniqueId:"discountLabel"},{title:e.taxesLabel,uniqueId:"taxesLabel",tooltip:{content:"Taxes will be calculated on real offer page",width:"20em"}},{title:e.shippingLabel,uniqueId:"shippingLabel",tooltip:{content:"Shipping fee will be calculated on real offer page",width:"23em"}},{title:e.totalLabel,uniqueId:"totalLabel",money:g}],[c,m,e.discountLabel,e.shippingLabel,e.subTotalLabel,e.taxesLabel,e.totalLabel,x,g]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{onClick:()=>P(e=>!e),className:"gp-flex gp-text-[#1879B9] gp-h-4.5 gp-cursor-pointer","aria-hidden":"true",children:[jsxRuntime.jsx("p",{className:"gp-underline",children:v?"Show price breakdown":"Hide price breakdown"}),jsxRuntime.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`${v||"gp-rotate-180"}`,children:jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0187 10.3598C10.7759 10.5853 10.3963 10.5712 10.1708 10.3284L8.01045 8.00191L5.85012 10.3284C5.62464 10.5712 5.245 10.5853 5.00218 10.3598C4.75935 10.1343 4.74529 9.75469 4.97077 9.51187L7.57077 6.71187C7.6843 6.58961 7.84361 6.52014 8.01045 6.52014C8.17729 6.52014 8.3366 6.58961 8.45012 6.71187L11.0501 9.51187C11.2756 9.75469 11.2615 10.1343 11.0187 10.3598Z",fill:"#1879B9"})})]}),jsxRuntime.jsx("div",{className:"gp-w-full gp-h-[1px] gp-bg-[#E9E9E9] gp-my-3"}),v?jsxRuntime.jsx("div",{className:"gp-col-[1] gp-row-[1] gp-overflow-hidden",children:jsxRuntime.jsxs("div",{...s,className:core.cls(l?.uid,"gp-flex gp-w-full","gp-min-h-0","left"===L?"gp-justify-start":"right"===L?"gp-justify-end":"gp-justify-center"),style:{...i},id:`shopify-text-element-${l?.uid}`,"data-product-id":h,children:[jsxRuntime.jsx("div",{className:"gp-flex gp-flex-col",style:{...core.makeStyleResponsive("w",b),gap:R},children:q.map((e,t)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(MoneyLine.default,{uniqueId:e.uniqueId,builderPropsUID:l?.uid,title:e.title,money:e.money,tooltipData:e.tooltip,labelTextStyles:{typo:j},moneyTextStyles:{typo:f}}),t==q.length-2&&jsxRuntime.jsx("hr",{})]},e.uniqueId))}),r]})}):null]})};exports.default=PostPurchaseProductPriceBreakdown;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),react=require("react"),helper=require("../../utils/helper.js"),MoneyLine=require("./priceBreakdown/MoneyLine.js");const PostPurchaseProductPriceBreakdown=({setting:e={},styles:t={},style:i,builderAttrs:l,builderProps:s,children:o})=>{let r=core.useCurrentVariant(),n=core.useProduct(),{quantity:a}=core.useQuantity(),u=r?.price??0,c=parseFloat(core.shopifyPriceRounding(core.useProductOfferDiscount(),2)),d=c*(a||1),p=u*(a||1),x=core.useFormatMoney(p,!0),m=core.useFormatMoney(d,!0),g=core.useFormatMoney(p-d,!0),h=n?.baseID?.replace("gid://shopify/Product/",""),{labelStyle:j,moneyStyle:b,spacing:f,width:y,align:L,isShowPrice:w}=t,R=react.useMemo(()=>helper.postPurchaseSpacing[f||"none"],[f]),[v,P]=react.useState(w);react.useEffect(()=>{P(w)},[w]);let q=react.useMemo(()=>[{title:e.subTotalLabel,money:x,uniqueId:"subTotalLabel"},{title:e.discountLabel,money:c>0?m:"No discount",uniqueId:"discountLabel"},{title:e.taxesLabel,uniqueId:"taxesLabel",tooltip:{content:"Taxes will be calculated on real offer page",width:"20em"}},{title:e.shippingLabel,uniqueId:"shippingLabel",tooltip:{content:"Shipping fee will be calculated on real offer page",width:"23em"}},{title:e.totalLabel,uniqueId:"totalLabel",money:g}],[c,m,e.discountLabel,e.shippingLabel,e.subTotalLabel,e.taxesLabel,e.totalLabel,x,g]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"gp-flex gp-text-[#1879B9] gp-h-4.5 gp-cursor-pointer",onClick:()=>P(e=>!e),onKeyUp:()=>null,role:"button",tabIndex:0,"aria-hidden":"true",children:[jsxRuntime.jsx("p",{className:"gp-underline",children:v?"Show price breakdown":"Hide price breakdown"}),jsxRuntime.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`${v||"gp-rotate-180"}`,children:jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0187 10.3598C10.7759 10.5853 10.3963 10.5712 10.1708 10.3284L8.01045 8.00191L5.85012 10.3284C5.62464 10.5712 5.245 10.5853 5.00218 10.3598C4.75935 10.1343 4.74529 9.75469 4.97077 9.51187L7.57077 6.71187C7.6843 6.58961 7.84361 6.52014 8.01045 6.52014C8.17729 6.52014 8.3366 6.58961 8.45012 6.71187L11.0501 9.51187C11.2756 9.75469 11.2615 10.1343 11.0187 10.3598Z",fill:"#1879B9"})})]}),jsxRuntime.jsx("div",{className:"gp-w-full gp-h-[1px] gp-bg-[#E9E9E9] gp-my-3"}),v?jsxRuntime.jsx("div",{className:"gp-col-[1] gp-row-[1] gp-overflow-hidden",children:jsxRuntime.jsxs("div",{...l,className:core.cls(s?.uid,"gp-flex gp-w-full","gp-min-h-0","left"===L?"gp-justify-start":"right"===L?"gp-justify-end":"gp-justify-center"),style:{...i},id:`shopify-text-element-${s?.uid}`,"data-product-id":h,children:[jsxRuntime.jsx("div",{className:"gp-flex gp-flex-col",style:{...core.makeStyleResponsive("w",y),gap:R},children:q.map((e,t)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(MoneyLine.default,{uniqueId:e.uniqueId,builderPropsUID:s?.uid,title:e.title,money:e.money,tooltipData:e.tooltip,labelTextStyles:{typo:j},moneyTextStyles:{typo:b}}),t==q.length-2&&jsxRuntime.jsx("hr",{})]},e.uniqueId))}),o]})}):null]})};exports.default=PostPurchaseProductPriceBreakdown;
@@ -3,7 +3,7 @@
3
3
  <path d="M4.31507 1.5C4.00299 1.5 3.75 1.7641 3.75 2.08989V4.92135C3.75 5.24713 4.00299 5.51124 4.31507 5.51124H5.21918C5.53125 5.51124 5.78425 5.24713 5.78425 4.92135V3.6236H10.9829V20.3764H9.73973C9.42769 20.3764 9.17466 20.6405 9.17466 20.9663V21.9101C9.17466 22.2359 9.42769 22.5 9.73973 22.5H14.2603C14.5723 22.5 14.8253 22.2359 14.8253 21.9101V20.9663C14.8253 20.6405 14.5723 20.3764 14.2603 20.3764H13.0171V3.6236H18.2158V4.92135C18.2158 5.24714 18.4688 5.51124 18.7808 5.51124H19.6849C19.997 5.51124 20.25 5.24714 20.25 4.92135V2.08989C20.25 1.7641 19.997 1.5 19.6849 1.5H4.31507Z" fill="currentColor"/>
4
4
  </svg>
5
5
 
6
- `,settings:[{id:"setting",controls:[{id:"htmlTag",label:"HTML Tag",type:"select",options:[{value:"h1",label:"H1"},{value:"h2",label:"H2"},{value:"h3",label:"H3"},{value:"h4",label:"H4"},{value:"h5",label:"H5"},{value:"h6",label:"H6"},{value:"div",label:"Div"},{value:"p",label:"P"}],default:"h1"},{id:"linkProduct",label:"Link To Product",type:"select",options:[{label:"Open product page",value:!0},{label:"None",value:!1}],default:!1,info:"Ability to click on product title to go to product detail page."}]},{id:"style",controls:[{id:"typo",type:"typography-v2",default:{type:"subheading-3"},ignoreReRender:!0,hiddenSetting:{color:!0}},{id:"textAlign",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"text"},{label:"Center",value:"center",type:"text"},{label:"Right",value:"right",type:"text"},{label:"Justify",value:"justify",type:"text"}],devices:{desktop:{default:"left"}}},{id:"hasLineClamp",type:"toggle",label:"Has Line Clamp",devices:{desktop:{default:!1}}},{id:"lineClamp",type:"input:number",min:1,label:"Line Clamp",devices:{desktop:{default:12}},hide:!0},{id:"color",label:"Text Color",type:"colorpicker",default:{normal:"text-2"},state:{normal:!0,hover:!0}},{id:"hasTextShadow",type:"toggle",label:"Enable Text Shadow",default:{normal:!1,hover:!1},state:{normal:!0,hover:!0}},{id:"textShadow",type:"textShadow",label:"Text Shadow",hideOnState:{normal:!0,hover:!0},default:{normal:{type:"shadow-1"}},state:{normal:!0,hover:!0}}]}],ui:[{type:"control",label:{en:"Product link"},setting:{id:"linkProduct"},options:{label:"large",hideOnPages:["STATIC"]}},{type:"control",label:{en:"Text"},setting:{id:"typo"},layout:"vertical"},{type:"group",label:{en:""},controls:[{type:"control",label:{en:"Max lines"},setting:{id:"hasLineClamp"},options:{label:"large"}},{type:"control",label:{en:"Max lines"},setting:{id:"lineClamp"},condition:"hasLineClamp == true"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Text color"},setting:{id:"color",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Text color"},setting:{id:"color",state:"hover"}}]}]}]},{type:"control",label:{en:"Align"},setting:{id:"textAlign"}},{type:"group",label:{en:"SEO"},controls:[{type:"control",label:{en:"HTML tag"},setting:{id:"htmlTag"}}]}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"product-title",name:{en:"Product Title"},icon:{desktop:`<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
6
+ `,settings:[{id:"setting",controls:[{id:"htmlTag",label:"HTML Tag",type:"select",options:[{value:"h1",label:"H1"},{value:"h2",label:"H2"},{value:"h3",label:"H3"},{value:"h4",label:"H4"},{value:"h5",label:"H5"},{value:"h6",label:"H6"},{value:"div",label:"Div"}],default:"h1"},{id:"linkProduct",label:"Link To Product",type:"select",options:[{label:"Open product page",value:!0},{label:"None",value:!1}],default:!1,info:"Ability to click on product title to go to product detail page."}]},{id:"style",controls:[{id:"typo",type:"typography-v2",default:{type:"subheading-3"},ignoreReRender:!0,hiddenSetting:{color:!0}},{id:"textAlign",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"text"},{label:"Center",value:"center",type:"text"},{label:"Right",value:"right",type:"text"},{label:"Justify",value:"justify",type:"text"}],devices:{desktop:{default:"left"}}},{id:"hasLineClamp",type:"toggle",label:"Has Line Clamp",devices:{desktop:{default:!1}}},{id:"lineClamp",type:"input:number",min:1,label:"Line Clamp",devices:{desktop:{default:12}},hide:!0},{id:"color",label:"Text Color",type:"colorpicker",default:{normal:"text-2"},state:{normal:!0,hover:!0}},{id:"hasTextShadow",type:"toggle",label:"Enable Text Shadow",default:{normal:!1,hover:!1},state:{normal:!0,hover:!0}},{id:"textShadow",type:"textShadow",label:"Text Shadow",hideOnState:{normal:!0,hover:!0},default:{normal:{type:"shadow-1"}},state:{normal:!0,hover:!0}}]}],ui:[{type:"control",label:{en:"Product link"},setting:{id:"linkProduct"},options:{label:"large",hideOnPages:["STATIC"]}},{type:"control",label:{en:"Text"},setting:{id:"typo"},layout:"vertical"},{type:"group",label:{en:""},controls:[{type:"control",label:{en:"Max lines"},setting:{id:"hasLineClamp"},options:{label:"large"}},{type:"control",label:{en:"Max lines"},setting:{id:"lineClamp"},condition:"hasLineClamp == true"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Text color"},setting:{id:"color",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Text color"},setting:{id:"color",state:"hover"}}]}]}]},{type:"control",label:{en:"Align"},setting:{id:"textAlign"}},{type:"group",label:{en:"SEO"},controls:[{type:"control",label:{en:"HTML tag"},setting:{id:"htmlTag"}}]}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"product-title",name:{en:"Product Title"},icon:{desktop:`<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
7
7
  <path d="M15.0639 18.875V17.3636H24.0696V18.875H20.4389V29H18.6889V18.875H15.0639ZM28.3338 29.1761C27.5156 29.1761 26.8016 28.9886 26.1918 28.6136C25.5819 28.2386 25.1084 27.714 24.7713 27.0398C24.4342 26.3655 24.2656 25.5777 24.2656 24.6761C24.2656 23.7708 24.4342 22.9792 24.7713 22.3011C25.1084 21.6231 25.5819 21.0966 26.1918 20.7216C26.8016 20.3466 27.5156 20.1591 28.3338 20.1591C29.152 20.1591 29.866 20.3466 30.4759 20.7216C31.0857 21.0966 31.5592 21.6231 31.8963 22.3011C32.2334 22.9792 32.402 23.7708 32.402 24.6761C32.402 25.5777 32.2334 26.3655 31.8963 27.0398C31.5592 27.714 31.0857 28.2386 30.4759 28.6136C29.866 28.9886 29.152 29.1761 28.3338 29.1761ZM28.3395 27.75C28.8698 27.75 29.3092 27.6098 29.6577 27.3295C30.0062 27.0492 30.2637 26.6761 30.4304 26.2102C30.6009 25.7443 30.6861 25.2311 30.6861 24.6705C30.6861 24.1136 30.6009 23.6023 30.4304 23.1364C30.2637 22.6667 30.0062 22.2898 29.6577 22.0057C29.3092 21.7216 28.8698 21.5795 28.3395 21.5795C27.8054 21.5795 27.3622 21.7216 27.0099 22.0057C26.6615 22.2898 26.402 22.6667 26.2315 23.1364C26.0649 23.6023 25.9815 24.1136 25.9815 24.6705C25.9815 25.2311 26.0649 25.7443 26.2315 26.2102C26.402 26.6761 26.6615 27.0492 27.0099 27.3295C27.3622 27.6098 27.8054 27.75 28.3395 27.75ZM38.3722 20.2727V21.6364H33.6051V20.2727H38.3722ZM34.8835 18.1818H36.5824V26.4375C36.5824 26.767 36.6316 27.0152 36.7301 27.1818C36.8286 27.3447 36.9555 27.4564 37.1108 27.517C37.2699 27.5739 37.4422 27.6023 37.6278 27.6023C37.7642 27.6023 37.8835 27.5928 37.9858 27.5739C38.0881 27.5549 38.1676 27.5398 38.2244 27.5284L38.5312 28.9318C38.4328 28.9697 38.2926 29.0076 38.1108 29.0455C37.929 29.0871 37.7017 29.1098 37.429 29.1136C36.982 29.1212 36.5653 29.0417 36.179 28.875C35.7926 28.7083 35.4801 28.4508 35.2415 28.1023C35.0028 27.7538 34.8835 27.3163 34.8835 26.7898V18.1818ZM43.919 29.1761C43.0592 29.1761 42.3187 28.9924 41.6974 28.625C41.08 28.2538 40.6027 27.733 40.2656 27.0625C39.9323 26.3883 39.7656 25.5985 39.7656 24.6932C39.7656 23.7992 39.9323 23.0114 40.2656 22.3295C40.6027 21.6477 41.0724 21.1155 41.6747 20.733C42.2808 20.3504 42.9891 20.1591 43.7997 20.1591C44.2921 20.1591 44.7694 20.2405 45.2315 20.4034C45.6937 20.5663 46.1084 20.822 46.4759 21.1705C46.8433 21.5189 47.133 21.9716 47.3452 22.5284C47.5573 23.0814 47.6634 23.7538 47.6634 24.5455V25.1477H40.7259V23.875H45.9986C45.9986 23.428 45.9077 23.0322 45.7259 22.6875C45.544 22.339 45.2884 22.0644 44.9588 21.8636C44.633 21.6629 44.2505 21.5625 43.8111 21.5625C43.3338 21.5625 42.9171 21.6799 42.5611 21.9148C42.2088 22.1458 41.9361 22.4489 41.7429 22.8239C41.5535 23.1951 41.4588 23.5985 41.4588 24.0341V25.0284C41.4588 25.6117 41.5611 26.108 41.7656 26.517C41.974 26.9261 42.2637 27.2386 42.6349 27.4545C43.0062 27.6667 43.4399 27.7727 43.9361 27.7727C44.258 27.7727 44.5516 27.7273 44.8168 27.6364C45.0819 27.5417 45.3111 27.4015 45.5043 27.2159C45.6974 27.0303 45.8452 26.8011 45.9474 26.5284L47.5554 26.8182C47.4266 27.2917 47.1955 27.7064 46.8622 28.0625C46.5327 28.4148 46.1179 28.6894 45.6179 28.8864C45.1217 29.0795 44.5554 29.1761 43.919 29.1761ZM53.919 29V17.3636H55.6179V21.6875H55.7202C55.8187 21.5057 55.9607 21.2955 56.1463 21.0568C56.3319 20.8182 56.5895 20.6098 56.919 20.4318C57.2486 20.25 57.6842 20.1591 58.2259 20.1591C58.9304 20.1591 59.5592 20.3371 60.1122 20.6932C60.6652 21.0492 61.099 21.5625 61.4134 22.233C61.7315 22.9034 61.8906 23.7102 61.8906 24.6534C61.8906 25.5966 61.7334 26.4053 61.419 27.0795C61.1046 27.75 60.6728 28.267 60.1236 28.6307C59.5743 28.9905 58.9474 29.1705 58.2429 29.1705C57.7126 29.1705 57.2789 29.0814 56.9418 28.9034C56.6084 28.7254 56.3471 28.517 56.1577 28.2784C55.9683 28.0398 55.8224 27.8277 55.7202 27.642H55.5781V29H53.919ZM55.5838 24.6364C55.5838 25.25 55.6728 25.7879 55.8509 26.25C56.0289 26.7121 56.2865 27.0739 56.6236 27.3352C56.9607 27.5928 57.3736 27.7216 57.8622 27.7216C58.3698 27.7216 58.794 27.5871 59.1349 27.3182C59.4759 27.0455 59.7334 26.6761 59.9077 26.2102C60.0857 25.7443 60.1747 25.2197 60.1747 24.6364C60.1747 24.0606 60.0876 23.5436 59.9134 23.0852C59.7429 22.6269 59.4853 22.2652 59.1406 22C58.7997 21.7348 58.3736 21.6023 57.8622 21.6023C57.3698 21.6023 56.9531 21.7292 56.6122 21.983C56.2751 22.2367 56.0194 22.5909 55.8452 23.0455C55.6709 23.5 55.5838 24.0303 55.5838 24.6364ZM66.3381 29.1932C65.785 29.1932 65.285 29.0909 64.8381 28.8864C64.3911 28.678 64.0369 28.3769 63.7756 27.983C63.518 27.589 63.3892 27.1061 63.3892 26.5341C63.3892 26.0417 63.4839 25.6364 63.6733 25.3182C63.8627 25 64.1184 24.7481 64.4403 24.5625C64.7623 24.3769 65.1222 24.2367 65.5199 24.142C65.9176 24.0473 66.3229 23.9754 66.7358 23.9261C67.2585 23.8655 67.6828 23.8163 68.0085 23.7784C68.3343 23.7367 68.571 23.6705 68.7188 23.5795C68.8665 23.4886 68.9403 23.3409 68.9403 23.1364V23.0966C68.9403 22.6004 68.8002 22.2159 68.5199 21.9432C68.2434 21.6705 67.8305 21.5341 67.2812 21.5341C66.7093 21.5341 66.2585 21.661 65.929 21.9148C65.6032 22.1648 65.3778 22.4432 65.2528 22.75L63.6562 22.3864C63.8456 21.8561 64.1222 21.428 64.4858 21.1023C64.8532 20.7727 65.2756 20.5341 65.7528 20.3864C66.2301 20.2348 66.732 20.1591 67.2585 20.1591C67.607 20.1591 67.9763 20.2008 68.3665 20.2841C68.7604 20.3636 69.1278 20.5114 69.4688 20.7273C69.8134 20.9432 70.0956 21.2519 70.3153 21.6534C70.535 22.0511 70.6449 22.5682 70.6449 23.2045V29H68.9858V27.8068H68.9176C68.8078 28.0265 68.643 28.2424 68.4233 28.4545C68.2036 28.6667 67.9214 28.8428 67.5767 28.983C67.232 29.1231 66.8191 29.1932 66.3381 29.1932ZM66.7074 27.8295C67.1771 27.8295 67.5786 27.7367 67.9119 27.5511C68.2491 27.3655 68.5047 27.1231 68.679 26.8239C68.857 26.5208 68.946 26.197 68.946 25.8523V24.7273C68.8854 24.7879 68.768 24.8447 68.5938 24.8977C68.4233 24.947 68.2282 24.9905 68.0085 25.0284C67.7888 25.0625 67.5748 25.0947 67.3665 25.125C67.1581 25.1515 66.9839 25.1742 66.8438 25.1932C66.5142 25.2348 66.2131 25.3049 65.9403 25.4034C65.6714 25.5019 65.4555 25.6439 65.2926 25.8295C65.1335 26.0114 65.054 26.2538 65.054 26.5568C65.054 26.9773 65.2093 27.2955 65.5199 27.5114C65.8305 27.7235 66.2263 27.8295 66.7074 27.8295ZM76.5668 32.4545C75.8736 32.4545 75.277 32.3636 74.777 32.1818C74.2808 32 73.8755 31.7595 73.5611 31.4602C73.2467 31.161 73.0118 30.8333 72.8565 30.4773L74.3168 29.875C74.419 30.0417 74.5554 30.2178 74.7259 30.4034C74.9001 30.5928 75.1349 30.7538 75.4304 30.8864C75.7296 31.0189 76.1141 31.0852 76.5838 31.0852C77.2277 31.0852 77.7599 30.928 78.1804 30.6136C78.6009 30.303 78.8111 29.8068 78.8111 29.125V27.4091H78.7031C78.6009 27.5947 78.4531 27.8011 78.2599 28.0284C78.0705 28.2557 77.8092 28.4527 77.4759 28.6193C77.1425 28.786 76.7088 28.8693 76.1747 28.8693C75.4853 28.8693 74.8641 28.7083 74.3111 28.3864C73.7618 28.0606 73.3262 27.5814 73.0043 26.9489C72.6861 26.3125 72.527 25.5303 72.527 24.6023C72.527 23.6742 72.6842 22.8788 72.9986 22.2159C73.3168 21.553 73.7524 21.0455 74.3054 20.6932C74.8584 20.3371 75.4853 20.1591 76.1861 20.1591C76.7277 20.1591 77.1652 20.25 77.4986 20.4318C77.8319 20.6098 78.0914 20.8182 78.277 21.0568C78.4664 21.2955 78.6122 21.5057 78.7145 21.6875H78.8395V20.2727H80.5043V29.1932C80.5043 29.9432 80.33 30.5587 79.9815 31.0398C79.633 31.5208 79.1615 31.8769 78.5668 32.108C77.9759 32.339 77.3092 32.4545 76.5668 32.4545ZM76.5497 27.4602C77.0384 27.4602 77.4512 27.3466 77.7884 27.1193C78.1293 26.8883 78.3868 26.5587 78.5611 26.1307C78.7391 25.6989 78.8281 25.1818 78.8281 24.5795C78.8281 23.9924 78.741 23.4754 78.5668 23.0284C78.3925 22.5814 78.1368 22.233 77.7997 21.983C77.4626 21.7292 77.0459 21.6023 76.5497 21.6023C76.0384 21.6023 75.6122 21.7348 75.2713 22C74.9304 22.2614 74.6728 22.6174 74.4986 23.0682C74.3281 23.5189 74.2429 24.0227 74.2429 24.5795C74.2429 25.1515 74.33 25.6534 74.5043 26.0852C74.6785 26.517 74.9361 26.8542 75.277 27.0966C75.6217 27.339 76.0459 27.4602 76.5497 27.4602Z" fill="#AAAAAA"/>
8
8
  </svg>
9
9
  `},components:[{tag:"ProductTitle",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}}]}],locales:{editor:{en:{product_not_found:"Product Not Found"}}}};exports.default=config;
@@ -2,7 +2,7 @@
2
2
  <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
3
3
  <path d="M3.16699 4C2.89085 4 2.66699 4.22386 2.66699 4.5V36.8333C2.66699 37.1095 2.89085 37.3333 3.16699 37.3333H36.8337C37.1098 37.3333 37.3337 37.1095 37.3337 36.8333V4.5C37.3337 4.22386 37.1098 4 36.8337 4H3.16699ZM16.0003 6.66667H24.0003V12H16.0003V6.66667ZM34.667 34.6667H5.33366V6.66667H13.3337V12V13.3333V14.1667C13.3337 14.4428 13.5575 14.6667 13.8337 14.6667H34.667V34.6667ZM34.667 12H26.667V6.66667H34.667V12Z" fill="currentColor"/>
4
4
  </svg>
5
- `,settings:[{id:"setting",controls:[{id:"childItem",label:"Tabs Item",type:"child-item",default:["Tab 1","Tab 2"],expandItem:!0},{id:"translate",type:"input",default:"childItem"},{id:"position",type:"layout-segment",label:"Layout",disableToggle:!0,options:[{value:"top",label:"Top",type:"layout-align"},{value:"left",label:"Left",type:"layout-align"},{value:"right",label:"Right",type:"layout-align"}],devices:{desktop:{default:"top"},tablet:{default:"top"},mobile:{default:"top"}}},{id:"group-header",label:"Tabs Header",type:"group",controls:[{id:"labelTypoV2",type:"typography-v2",default:{type:"paragraph-1"},hiddenSetting:{color:!0},ignoreReRender:!0},{id:"panelFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"panelWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"200px"}}},{id:"panelAlign",type:"segment",label:"Alignment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Center",value:"center",type:"align",tooltip:"Align center"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],devices:{desktop:{default:"left"}}},{id:"labelWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"200px"}}},{id:"labelAlign",type:"segment",label:"Text alignment",options:[{label:"Left",value:"left",type:"text"},{label:"Center",value:"center",type:"text"},{label:"Right",value:"right",type:"text"}],devices:{desktop:{default:"left"}}}]},{id:"behavior-state-group",type:"behavior-state",controls:[{id:"labelBgColor",label:"Background Color",type:"colorpicker",default:{active:"#f5f5f5"},state:{normal:!0,hover:!0,active:!0}},{id:"labelColor",label:"Text Color",type:"colorpicker",default:{normal:"#121212"},state:{normal:!0,hover:!0,active:!0}},{id:"borderTab",type:"border",label:"Border",default:{normal:{border:"none",width:"1px 1px 1px 1px",borderWidth:"1px",color:"#121212",isCustom:!1,position:"all"},hover:{border:"none",width:"1px 1px 1px 1px",borderWidth:"1px",color:"#121212",isCustom:!1,position:"all"},active:{border:"solid",width:"0px 0px 2px 0px",borderWidth:"2px",color:"#121212",position:"bottom",isCustom:!0}},state:{hover:!0,normal:!0,active:!0}}]},{id:"background",type:"background",ignoreReRender:!0,devices:{desktop:{default:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}}]}],ui:[{type:"group",label:{en:"Item management"},controls:[{type:"control",layout:"vertical",setting:{id:"childItem"}}]},{type:"group",label:{en:"Layout"},options:{labelSpacing:"medium"},controls:[{type:"control",layout:"vertical",setting:{id:"position"}}]},{type:"group",label:{en:"Tab header"},controls:[{type:"control",layout:"vertical",setting:{id:"labelTypoV2"}},{type:"control",label:{en:"Text align"},setting:{id:"labelAlign"}},{type:"control",label:{en:"Full Width"},setting:{id:"panelFullWidth"},condition:'position == "top"'},{condition:'panelFullWidth == false && position == "top"',type:"control",label:{en:"Width"},setting:{id:"panelWidth"}},{condition:'panelFullWidth == false && position == "top"',type:"control",label:{en:"Align"},setting:{id:"panelAlign"}},{condition:'position != "top"',type:"control",label:{en:"Width"},setting:{id:"labelWidth"}}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"hover"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"hover"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"hover"}}]},{type:"group",label:{en:"Active"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"active"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"active"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"active"}}]}]}]},{type:"control",label:{en:"Background"},options:{label:"large",styleLabel:{marginBottom:"4px"}},setting:{id:"background"},layout:"vertical"}],editorConfigs:{slots:{children:!1}},presets:[{id:"tab",name:{en:"Tab"},icon:{desktop:`
5
+ `,settings:[{id:"setting",controls:[{id:"childItem",label:"Tabs Item",type:"child-item",default:["Tab 1","Tab 2"],expandItem:!0},{id:"translate",type:"input",default:"childItem"},{id:"position",type:"layout-segment",label:"Layout",disableToggle:!0,options:[{value:"top",label:"Top",type:"layout-align"},{value:"left",label:"Left",type:"layout-align"},{value:"right",label:"Right",type:"layout-align"}],devices:{desktop:{default:"top"},tablet:{default:"top"},mobile:{default:"top"}}},{id:"group-header",label:"Tabs Header",type:"group",controls:[{id:"labelTypoV2",type:"typography-v2",default:{type:"paragraph-1"},hiddenSetting:{color:!0},ignoreReRender:!0},{id:"panelFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"panelWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"Auto"}}},{id:"panelAlign",type:"segment",label:"Alignment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Center",value:"center",type:"align",tooltip:"Align center"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],devices:{desktop:{default:"left"}}},{id:"labelWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"200px"}}},{id:"labelAlign",type:"segment",label:"Text alignment",options:[{label:"Left",value:"left",type:"text"},{label:"Center",value:"center",type:"text"},{label:"Right",value:"right",type:"text"}],devices:{desktop:{default:"left"}}}]},{id:"behavior-state-group",type:"behavior-state",controls:[{id:"labelBgColor",label:"Background Color",type:"colorpicker",default:{active:"#f5f5f5"},state:{normal:!0,hover:!0,active:!0}},{id:"labelColor",label:"Text Color",type:"colorpicker",default:{normal:"#121212"},state:{normal:!0,hover:!0,active:!0}},{id:"borderTab",type:"border",label:"Border",default:{normal:{border:"none",width:"1px 1px 1px 1px",borderWidth:"1px",color:"#121212",isCustom:!1,position:"all"},hover:{border:"none",width:"1px 1px 1px 1px",borderWidth:"1px",color:"#121212",isCustom:!1,position:"all"},active:{border:"solid",width:"0px 0px 2px 0px",borderWidth:"2px",color:"#121212",position:"bottom",isCustom:!0}},state:{hover:!0,normal:!0,active:!0}}]},{id:"background",type:"background",ignoreReRender:!0,devices:{desktop:{default:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}}]}],ui:[{type:"group",label:{en:"Item management"},controls:[{type:"control",layout:"vertical",setting:{id:"childItem"}}]},{type:"group",label:{en:"Layout"},options:{labelSpacing:"medium"},controls:[{type:"control",layout:"vertical",setting:{id:"position"}}]},{type:"group",label:{en:"Tab header"},controls:[{type:"control",layout:"vertical",setting:{id:"labelTypoV2"}},{type:"control",label:{en:"Text align"},setting:{id:"labelAlign"}},{type:"control",label:{en:"Full Width"},setting:{id:"panelFullWidth"},condition:'position == "top"'},{condition:'panelFullWidth == false && position == "top"',type:"control",label:{en:"Width"},setting:{id:"panelWidth"}},{condition:'panelFullWidth == false && position == "top"',type:"control",label:{en:"Align"},setting:{id:"panelAlign"}},{condition:'position != "top"',type:"control",label:{en:"Width"},setting:{id:"labelWidth"}}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"hover"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"hover"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"hover"}}]},{type:"group",label:{en:"Active"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"active"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"active"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"active"}}]}]}]},{type:"control",label:{en:"Background"},options:{label:"large",styleLabel:{marginBottom:"4px"}},setting:{id:"background"},layout:"vertical"}],editorConfigs:{slots:{children:!1}},presets:[{id:"tab",name:{en:"Tab"},icon:{desktop:`
6
6
  <svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
7
7
  <rect x="8" y="30" width="32" height="2" fill="#D6D6D6"/>
8
8
  <rect x="8" y="12" width="32" height="8" rx="4" fill="#757575"/>
@@ -1 +1 @@
1
- import{jsxs as e,Fragment as t,jsx as l}from"react/jsx-runtime";import{useCurrentVariant as i,useProduct as o,useQuantity as a,shopifyPriceRounding as r,useProductOfferDiscount as n,useFormatMoney as d,cls as p,makeStyleResponsive as s}from"@gem-sdk/core";import{useMemo as u,useState as c,useEffect as g}from"react";import{postPurchaseSpacing as h}from"../../utils/helper.js";import m from"./priceBreakdown/MoneyLine.js";let PostPurchaseProductPriceBreakdown=({setting:f={},styles:b={},style:w,builderAttrs:L,builderProps:y,children:x})=>{let v=i(),I=o(),{quantity:P}=a(),q=v?.price??0,N=parseFloat(r(n(),2)),k=N*(P||1),C=q*(P||1),j=d(C,!0),B=d(k,!0),T=d(C-k,!0),S=I?.baseID?.replace("gid://shopify/Product/",""),{labelStyle:D,moneyStyle:E,spacing:M,width:R,align:$,isShowPrice:F}=b,H=u(()=>h[M||"none"],[M]),[U,Z]=c(F);g(()=>{Z(F)},[F]);let z=u(()=>[{title:f.subTotalLabel,money:j,uniqueId:"subTotalLabel"},{title:f.discountLabel,money:N>0?B:"No discount",uniqueId:"discountLabel"},{title:f.taxesLabel,uniqueId:"taxesLabel",tooltip:{content:"Taxes will be calculated on real offer page",width:"20em"}},{title:f.shippingLabel,uniqueId:"shippingLabel",tooltip:{content:"Shipping fee will be calculated on real offer page",width:"23em"}},{title:f.totalLabel,uniqueId:"totalLabel",money:T}],[N,B,f.discountLabel,f.shippingLabel,f.subTotalLabel,f.taxesLabel,f.totalLabel,j,T]);return e(t,{children:[e("div",{onClick:()=>Z(e=>!e),className:"gp-flex gp-text-[#1879B9] gp-h-4.5 gp-cursor-pointer","aria-hidden":"true",children:[l("p",{className:"gp-underline",children:U?"Show price breakdown":"Hide price breakdown"}),l("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`${U||"gp-rotate-180"}`,children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0187 10.3598C10.7759 10.5853 10.3963 10.5712 10.1708 10.3284L8.01045 8.00191L5.85012 10.3284C5.62464 10.5712 5.245 10.5853 5.00218 10.3598C4.75935 10.1343 4.74529 9.75469 4.97077 9.51187L7.57077 6.71187C7.6843 6.58961 7.84361 6.52014 8.01045 6.52014C8.17729 6.52014 8.3366 6.58961 8.45012 6.71187L11.0501 9.51187C11.2756 9.75469 11.2615 10.1343 11.0187 10.3598Z",fill:"#1879B9"})})]}),l("div",{className:"gp-w-full gp-h-[1px] gp-bg-[#E9E9E9] gp-my-3"}),U?l("div",{className:"gp-col-[1] gp-row-[1] gp-overflow-hidden",children:e("div",{...L,className:p(y?.uid,"gp-flex gp-w-full","gp-min-h-0","left"===$?"gp-justify-start":"right"===$?"gp-justify-end":"gp-justify-center"),style:{...w},id:`shopify-text-element-${y?.uid}`,"data-product-id":S,children:[l("div",{className:"gp-flex gp-flex-col",style:{...s("w",R),gap:H},children:z.map((t,i)=>e("div",{children:[l(m,{uniqueId:t.uniqueId,builderPropsUID:y?.uid,title:t.title,money:t.money,tooltipData:t.tooltip,labelTextStyles:{typo:D},moneyTextStyles:{typo:E}}),i==z.length-2&&l("hr",{})]},t.uniqueId))}),x]})}):null]})};export{PostPurchaseProductPriceBreakdown as default};
1
+ import{jsxs as e,Fragment as t,jsx as l}from"react/jsx-runtime";import{useCurrentVariant as i,useProduct as o,useQuantity as a,shopifyPriceRounding as n,useProductOfferDiscount as r,useFormatMoney as d,cls as p,makeStyleResponsive as s}from"@gem-sdk/core";import{useMemo as u,useState as c,useEffect as g}from"react";import{postPurchaseSpacing as h}from"../../utils/helper.js";import m from"./priceBreakdown/MoneyLine.js";let PostPurchaseProductPriceBreakdown=({setting:b={},styles:f={},style:w,builderAttrs:y,builderProps:L,children:x})=>{let v=i(),I=o(),{quantity:P}=a(),q=v?.price??0,N=parseFloat(n(r(),2)),k=N*(P||1),C=q*(P||1),j=d(C,!0),B=d(k,!0),T=d(C-k,!0),S=I?.baseID?.replace("gid://shopify/Product/",""),{labelStyle:D,moneyStyle:E,spacing:M,width:R,align:U,isShowPrice:$}=f,F=u(()=>h[M||"none"],[M]),[H,K]=c($);g(()=>{K($)},[$]);let Z=u(()=>[{title:b.subTotalLabel,money:j,uniqueId:"subTotalLabel"},{title:b.discountLabel,money:N>0?B:"No discount",uniqueId:"discountLabel"},{title:b.taxesLabel,uniqueId:"taxesLabel",tooltip:{content:"Taxes will be calculated on real offer page",width:"20em"}},{title:b.shippingLabel,uniqueId:"shippingLabel",tooltip:{content:"Shipping fee will be calculated on real offer page",width:"23em"}},{title:b.totalLabel,uniqueId:"totalLabel",money:T}],[N,B,b.discountLabel,b.shippingLabel,b.subTotalLabel,b.taxesLabel,b.totalLabel,j,T]);return e(t,{children:[e("div",{className:"gp-flex gp-text-[#1879B9] gp-h-4.5 gp-cursor-pointer",onClick:()=>K(e=>!e),onKeyUp:()=>null,role:"button",tabIndex:0,"aria-hidden":"true",children:[l("p",{className:"gp-underline",children:H?"Show price breakdown":"Hide price breakdown"}),l("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`${H||"gp-rotate-180"}`,children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0187 10.3598C10.7759 10.5853 10.3963 10.5712 10.1708 10.3284L8.01045 8.00191L5.85012 10.3284C5.62464 10.5712 5.245 10.5853 5.00218 10.3598C4.75935 10.1343 4.74529 9.75469 4.97077 9.51187L7.57077 6.71187C7.6843 6.58961 7.84361 6.52014 8.01045 6.52014C8.17729 6.52014 8.3366 6.58961 8.45012 6.71187L11.0501 9.51187C11.2756 9.75469 11.2615 10.1343 11.0187 10.3598Z",fill:"#1879B9"})})]}),l("div",{className:"gp-w-full gp-h-[1px] gp-bg-[#E9E9E9] gp-my-3"}),H?l("div",{className:"gp-col-[1] gp-row-[1] gp-overflow-hidden",children:e("div",{...y,className:p(L?.uid,"gp-flex gp-w-full","gp-min-h-0","left"===U?"gp-justify-start":"right"===U?"gp-justify-end":"gp-justify-center"),style:{...w},id:`shopify-text-element-${L?.uid}`,"data-product-id":S,children:[l("div",{className:"gp-flex gp-flex-col",style:{...s("w",R),gap:F},children:Z.map((t,i)=>e("div",{children:[l(m,{uniqueId:t.uniqueId,builderPropsUID:L?.uid,title:t.title,money:t.money,tooltipData:t.tooltip,labelTextStyles:{typo:D},moneyTextStyles:{typo:E}}),i==Z.length-2&&l("hr",{})]},t.uniqueId))}),x]})}):null]})};export{PostPurchaseProductPriceBreakdown as default};
@@ -3,7 +3,7 @@ let config={tag:"ProductTitle",label:"Product Title",icon:`
3
3
  <path d="M4.31507 1.5C4.00299 1.5 3.75 1.7641 3.75 2.08989V4.92135C3.75 5.24713 4.00299 5.51124 4.31507 5.51124H5.21918C5.53125 5.51124 5.78425 5.24713 5.78425 4.92135V3.6236H10.9829V20.3764H9.73973C9.42769 20.3764 9.17466 20.6405 9.17466 20.9663V21.9101C9.17466 22.2359 9.42769 22.5 9.73973 22.5H14.2603C14.5723 22.5 14.8253 22.2359 14.8253 21.9101V20.9663C14.8253 20.6405 14.5723 20.3764 14.2603 20.3764H13.0171V3.6236H18.2158V4.92135C18.2158 5.24714 18.4688 5.51124 18.7808 5.51124H19.6849C19.997 5.51124 20.25 5.24714 20.25 4.92135V2.08989C20.25 1.7641 19.997 1.5 19.6849 1.5H4.31507Z" fill="currentColor"/>
4
4
  </svg>
5
5
 
6
- `,settings:[{id:"setting",controls:[{id:"htmlTag",label:"HTML Tag",type:"select",options:[{value:"h1",label:"H1"},{value:"h2",label:"H2"},{value:"h3",label:"H3"},{value:"h4",label:"H4"},{value:"h5",label:"H5"},{value:"h6",label:"H6"},{value:"div",label:"Div"},{value:"p",label:"P"}],default:"h1"},{id:"linkProduct",label:"Link To Product",type:"select",options:[{label:"Open product page",value:!0},{label:"None",value:!1}],default:!1,info:"Ability to click on product title to go to product detail page."}]},{id:"style",controls:[{id:"typo",type:"typography-v2",default:{type:"subheading-3"},ignoreReRender:!0,hiddenSetting:{color:!0}},{id:"textAlign",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"text"},{label:"Center",value:"center",type:"text"},{label:"Right",value:"right",type:"text"},{label:"Justify",value:"justify",type:"text"}],devices:{desktop:{default:"left"}}},{id:"hasLineClamp",type:"toggle",label:"Has Line Clamp",devices:{desktop:{default:!1}}},{id:"lineClamp",type:"input:number",min:1,label:"Line Clamp",devices:{desktop:{default:12}},hide:!0},{id:"color",label:"Text Color",type:"colorpicker",default:{normal:"text-2"},state:{normal:!0,hover:!0}},{id:"hasTextShadow",type:"toggle",label:"Enable Text Shadow",default:{normal:!1,hover:!1},state:{normal:!0,hover:!0}},{id:"textShadow",type:"textShadow",label:"Text Shadow",hideOnState:{normal:!0,hover:!0},default:{normal:{type:"shadow-1"}},state:{normal:!0,hover:!0}}]}],ui:[{type:"control",label:{en:"Product link"},setting:{id:"linkProduct"},options:{label:"large",hideOnPages:["STATIC"]}},{type:"control",label:{en:"Text"},setting:{id:"typo"},layout:"vertical"},{type:"group",label:{en:""},controls:[{type:"control",label:{en:"Max lines"},setting:{id:"hasLineClamp"},options:{label:"large"}},{type:"control",label:{en:"Max lines"},setting:{id:"lineClamp"},condition:"hasLineClamp == true"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Text color"},setting:{id:"color",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Text color"},setting:{id:"color",state:"hover"}}]}]}]},{type:"control",label:{en:"Align"},setting:{id:"textAlign"}},{type:"group",label:{en:"SEO"},controls:[{type:"control",label:{en:"HTML tag"},setting:{id:"htmlTag"}}]}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"product-title",name:{en:"Product Title"},icon:{desktop:`<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
6
+ `,settings:[{id:"setting",controls:[{id:"htmlTag",label:"HTML Tag",type:"select",options:[{value:"h1",label:"H1"},{value:"h2",label:"H2"},{value:"h3",label:"H3"},{value:"h4",label:"H4"},{value:"h5",label:"H5"},{value:"h6",label:"H6"},{value:"div",label:"Div"}],default:"h1"},{id:"linkProduct",label:"Link To Product",type:"select",options:[{label:"Open product page",value:!0},{label:"None",value:!1}],default:!1,info:"Ability to click on product title to go to product detail page."}]},{id:"style",controls:[{id:"typo",type:"typography-v2",default:{type:"subheading-3"},ignoreReRender:!0,hiddenSetting:{color:!0}},{id:"textAlign",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"text"},{label:"Center",value:"center",type:"text"},{label:"Right",value:"right",type:"text"},{label:"Justify",value:"justify",type:"text"}],devices:{desktop:{default:"left"}}},{id:"hasLineClamp",type:"toggle",label:"Has Line Clamp",devices:{desktop:{default:!1}}},{id:"lineClamp",type:"input:number",min:1,label:"Line Clamp",devices:{desktop:{default:12}},hide:!0},{id:"color",label:"Text Color",type:"colorpicker",default:{normal:"text-2"},state:{normal:!0,hover:!0}},{id:"hasTextShadow",type:"toggle",label:"Enable Text Shadow",default:{normal:!1,hover:!1},state:{normal:!0,hover:!0}},{id:"textShadow",type:"textShadow",label:"Text Shadow",hideOnState:{normal:!0,hover:!0},default:{normal:{type:"shadow-1"}},state:{normal:!0,hover:!0}}]}],ui:[{type:"control",label:{en:"Product link"},setting:{id:"linkProduct"},options:{label:"large",hideOnPages:["STATIC"]}},{type:"control",label:{en:"Text"},setting:{id:"typo"},layout:"vertical"},{type:"group",label:{en:""},controls:[{type:"control",label:{en:"Max lines"},setting:{id:"hasLineClamp"},options:{label:"large"}},{type:"control",label:{en:"Max lines"},setting:{id:"lineClamp"},condition:"hasLineClamp == true"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Text color"},setting:{id:"color",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Text color"},setting:{id:"color",state:"hover"}}]}]}]},{type:"control",label:{en:"Align"},setting:{id:"textAlign"}},{type:"group",label:{en:"SEO"},controls:[{type:"control",label:{en:"HTML tag"},setting:{id:"htmlTag"}}]}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"product-title",name:{en:"Product Title"},icon:{desktop:`<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
7
7
  <path d="M15.0639 18.875V17.3636H24.0696V18.875H20.4389V29H18.6889V18.875H15.0639ZM28.3338 29.1761C27.5156 29.1761 26.8016 28.9886 26.1918 28.6136C25.5819 28.2386 25.1084 27.714 24.7713 27.0398C24.4342 26.3655 24.2656 25.5777 24.2656 24.6761C24.2656 23.7708 24.4342 22.9792 24.7713 22.3011C25.1084 21.6231 25.5819 21.0966 26.1918 20.7216C26.8016 20.3466 27.5156 20.1591 28.3338 20.1591C29.152 20.1591 29.866 20.3466 30.4759 20.7216C31.0857 21.0966 31.5592 21.6231 31.8963 22.3011C32.2334 22.9792 32.402 23.7708 32.402 24.6761C32.402 25.5777 32.2334 26.3655 31.8963 27.0398C31.5592 27.714 31.0857 28.2386 30.4759 28.6136C29.866 28.9886 29.152 29.1761 28.3338 29.1761ZM28.3395 27.75C28.8698 27.75 29.3092 27.6098 29.6577 27.3295C30.0062 27.0492 30.2637 26.6761 30.4304 26.2102C30.6009 25.7443 30.6861 25.2311 30.6861 24.6705C30.6861 24.1136 30.6009 23.6023 30.4304 23.1364C30.2637 22.6667 30.0062 22.2898 29.6577 22.0057C29.3092 21.7216 28.8698 21.5795 28.3395 21.5795C27.8054 21.5795 27.3622 21.7216 27.0099 22.0057C26.6615 22.2898 26.402 22.6667 26.2315 23.1364C26.0649 23.6023 25.9815 24.1136 25.9815 24.6705C25.9815 25.2311 26.0649 25.7443 26.2315 26.2102C26.402 26.6761 26.6615 27.0492 27.0099 27.3295C27.3622 27.6098 27.8054 27.75 28.3395 27.75ZM38.3722 20.2727V21.6364H33.6051V20.2727H38.3722ZM34.8835 18.1818H36.5824V26.4375C36.5824 26.767 36.6316 27.0152 36.7301 27.1818C36.8286 27.3447 36.9555 27.4564 37.1108 27.517C37.2699 27.5739 37.4422 27.6023 37.6278 27.6023C37.7642 27.6023 37.8835 27.5928 37.9858 27.5739C38.0881 27.5549 38.1676 27.5398 38.2244 27.5284L38.5312 28.9318C38.4328 28.9697 38.2926 29.0076 38.1108 29.0455C37.929 29.0871 37.7017 29.1098 37.429 29.1136C36.982 29.1212 36.5653 29.0417 36.179 28.875C35.7926 28.7083 35.4801 28.4508 35.2415 28.1023C35.0028 27.7538 34.8835 27.3163 34.8835 26.7898V18.1818ZM43.919 29.1761C43.0592 29.1761 42.3187 28.9924 41.6974 28.625C41.08 28.2538 40.6027 27.733 40.2656 27.0625C39.9323 26.3883 39.7656 25.5985 39.7656 24.6932C39.7656 23.7992 39.9323 23.0114 40.2656 22.3295C40.6027 21.6477 41.0724 21.1155 41.6747 20.733C42.2808 20.3504 42.9891 20.1591 43.7997 20.1591C44.2921 20.1591 44.7694 20.2405 45.2315 20.4034C45.6937 20.5663 46.1084 20.822 46.4759 21.1705C46.8433 21.5189 47.133 21.9716 47.3452 22.5284C47.5573 23.0814 47.6634 23.7538 47.6634 24.5455V25.1477H40.7259V23.875H45.9986C45.9986 23.428 45.9077 23.0322 45.7259 22.6875C45.544 22.339 45.2884 22.0644 44.9588 21.8636C44.633 21.6629 44.2505 21.5625 43.8111 21.5625C43.3338 21.5625 42.9171 21.6799 42.5611 21.9148C42.2088 22.1458 41.9361 22.4489 41.7429 22.8239C41.5535 23.1951 41.4588 23.5985 41.4588 24.0341V25.0284C41.4588 25.6117 41.5611 26.108 41.7656 26.517C41.974 26.9261 42.2637 27.2386 42.6349 27.4545C43.0062 27.6667 43.4399 27.7727 43.9361 27.7727C44.258 27.7727 44.5516 27.7273 44.8168 27.6364C45.0819 27.5417 45.3111 27.4015 45.5043 27.2159C45.6974 27.0303 45.8452 26.8011 45.9474 26.5284L47.5554 26.8182C47.4266 27.2917 47.1955 27.7064 46.8622 28.0625C46.5327 28.4148 46.1179 28.6894 45.6179 28.8864C45.1217 29.0795 44.5554 29.1761 43.919 29.1761ZM53.919 29V17.3636H55.6179V21.6875H55.7202C55.8187 21.5057 55.9607 21.2955 56.1463 21.0568C56.3319 20.8182 56.5895 20.6098 56.919 20.4318C57.2486 20.25 57.6842 20.1591 58.2259 20.1591C58.9304 20.1591 59.5592 20.3371 60.1122 20.6932C60.6652 21.0492 61.099 21.5625 61.4134 22.233C61.7315 22.9034 61.8906 23.7102 61.8906 24.6534C61.8906 25.5966 61.7334 26.4053 61.419 27.0795C61.1046 27.75 60.6728 28.267 60.1236 28.6307C59.5743 28.9905 58.9474 29.1705 58.2429 29.1705C57.7126 29.1705 57.2789 29.0814 56.9418 28.9034C56.6084 28.7254 56.3471 28.517 56.1577 28.2784C55.9683 28.0398 55.8224 27.8277 55.7202 27.642H55.5781V29H53.919ZM55.5838 24.6364C55.5838 25.25 55.6728 25.7879 55.8509 26.25C56.0289 26.7121 56.2865 27.0739 56.6236 27.3352C56.9607 27.5928 57.3736 27.7216 57.8622 27.7216C58.3698 27.7216 58.794 27.5871 59.1349 27.3182C59.4759 27.0455 59.7334 26.6761 59.9077 26.2102C60.0857 25.7443 60.1747 25.2197 60.1747 24.6364C60.1747 24.0606 60.0876 23.5436 59.9134 23.0852C59.7429 22.6269 59.4853 22.2652 59.1406 22C58.7997 21.7348 58.3736 21.6023 57.8622 21.6023C57.3698 21.6023 56.9531 21.7292 56.6122 21.983C56.2751 22.2367 56.0194 22.5909 55.8452 23.0455C55.6709 23.5 55.5838 24.0303 55.5838 24.6364ZM66.3381 29.1932C65.785 29.1932 65.285 29.0909 64.8381 28.8864C64.3911 28.678 64.0369 28.3769 63.7756 27.983C63.518 27.589 63.3892 27.1061 63.3892 26.5341C63.3892 26.0417 63.4839 25.6364 63.6733 25.3182C63.8627 25 64.1184 24.7481 64.4403 24.5625C64.7623 24.3769 65.1222 24.2367 65.5199 24.142C65.9176 24.0473 66.3229 23.9754 66.7358 23.9261C67.2585 23.8655 67.6828 23.8163 68.0085 23.7784C68.3343 23.7367 68.571 23.6705 68.7188 23.5795C68.8665 23.4886 68.9403 23.3409 68.9403 23.1364V23.0966C68.9403 22.6004 68.8002 22.2159 68.5199 21.9432C68.2434 21.6705 67.8305 21.5341 67.2812 21.5341C66.7093 21.5341 66.2585 21.661 65.929 21.9148C65.6032 22.1648 65.3778 22.4432 65.2528 22.75L63.6562 22.3864C63.8456 21.8561 64.1222 21.428 64.4858 21.1023C64.8532 20.7727 65.2756 20.5341 65.7528 20.3864C66.2301 20.2348 66.732 20.1591 67.2585 20.1591C67.607 20.1591 67.9763 20.2008 68.3665 20.2841C68.7604 20.3636 69.1278 20.5114 69.4688 20.7273C69.8134 20.9432 70.0956 21.2519 70.3153 21.6534C70.535 22.0511 70.6449 22.5682 70.6449 23.2045V29H68.9858V27.8068H68.9176C68.8078 28.0265 68.643 28.2424 68.4233 28.4545C68.2036 28.6667 67.9214 28.8428 67.5767 28.983C67.232 29.1231 66.8191 29.1932 66.3381 29.1932ZM66.7074 27.8295C67.1771 27.8295 67.5786 27.7367 67.9119 27.5511C68.2491 27.3655 68.5047 27.1231 68.679 26.8239C68.857 26.5208 68.946 26.197 68.946 25.8523V24.7273C68.8854 24.7879 68.768 24.8447 68.5938 24.8977C68.4233 24.947 68.2282 24.9905 68.0085 25.0284C67.7888 25.0625 67.5748 25.0947 67.3665 25.125C67.1581 25.1515 66.9839 25.1742 66.8438 25.1932C66.5142 25.2348 66.2131 25.3049 65.9403 25.4034C65.6714 25.5019 65.4555 25.6439 65.2926 25.8295C65.1335 26.0114 65.054 26.2538 65.054 26.5568C65.054 26.9773 65.2093 27.2955 65.5199 27.5114C65.8305 27.7235 66.2263 27.8295 66.7074 27.8295ZM76.5668 32.4545C75.8736 32.4545 75.277 32.3636 74.777 32.1818C74.2808 32 73.8755 31.7595 73.5611 31.4602C73.2467 31.161 73.0118 30.8333 72.8565 30.4773L74.3168 29.875C74.419 30.0417 74.5554 30.2178 74.7259 30.4034C74.9001 30.5928 75.1349 30.7538 75.4304 30.8864C75.7296 31.0189 76.1141 31.0852 76.5838 31.0852C77.2277 31.0852 77.7599 30.928 78.1804 30.6136C78.6009 30.303 78.8111 29.8068 78.8111 29.125V27.4091H78.7031C78.6009 27.5947 78.4531 27.8011 78.2599 28.0284C78.0705 28.2557 77.8092 28.4527 77.4759 28.6193C77.1425 28.786 76.7088 28.8693 76.1747 28.8693C75.4853 28.8693 74.8641 28.7083 74.3111 28.3864C73.7618 28.0606 73.3262 27.5814 73.0043 26.9489C72.6861 26.3125 72.527 25.5303 72.527 24.6023C72.527 23.6742 72.6842 22.8788 72.9986 22.2159C73.3168 21.553 73.7524 21.0455 74.3054 20.6932C74.8584 20.3371 75.4853 20.1591 76.1861 20.1591C76.7277 20.1591 77.1652 20.25 77.4986 20.4318C77.8319 20.6098 78.0914 20.8182 78.277 21.0568C78.4664 21.2955 78.6122 21.5057 78.7145 21.6875H78.8395V20.2727H80.5043V29.1932C80.5043 29.9432 80.33 30.5587 79.9815 31.0398C79.633 31.5208 79.1615 31.8769 78.5668 32.108C77.9759 32.339 77.3092 32.4545 76.5668 32.4545ZM76.5497 27.4602C77.0384 27.4602 77.4512 27.3466 77.7884 27.1193C78.1293 26.8883 78.3868 26.5587 78.5611 26.1307C78.7391 25.6989 78.8281 25.1818 78.8281 24.5795C78.8281 23.9924 78.741 23.4754 78.5668 23.0284C78.3925 22.5814 78.1368 22.233 77.7997 21.983C77.4626 21.7292 77.0459 21.6023 76.5497 21.6023C76.0384 21.6023 75.6122 21.7348 75.2713 22C74.9304 22.2614 74.6728 22.6174 74.4986 23.0682C74.3281 23.5189 74.2429 24.0227 74.2429 24.5795C74.2429 25.1515 74.33 25.6534 74.5043 26.0852C74.6785 26.517 74.9361 26.8542 75.277 27.0966C75.6217 27.339 76.0459 27.4602 76.5497 27.4602Z" fill="#AAAAAA"/>
8
8
  </svg>
9
9
  `},components:[{tag:"ProductTitle",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}}]}],locales:{editor:{en:{product_not_found:"Product Not Found"}}}};export{config as default};
@@ -2,7 +2,7 @@ let config={tag:"Tabs",label:"Tab",icon:`
2
2
  <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
3
3
  <path d="M3.16699 4C2.89085 4 2.66699 4.22386 2.66699 4.5V36.8333C2.66699 37.1095 2.89085 37.3333 3.16699 37.3333H36.8337C37.1098 37.3333 37.3337 37.1095 37.3337 36.8333V4.5C37.3337 4.22386 37.1098 4 36.8337 4H3.16699ZM16.0003 6.66667H24.0003V12H16.0003V6.66667ZM34.667 34.6667H5.33366V6.66667H13.3337V12V13.3333V14.1667C13.3337 14.4428 13.5575 14.6667 13.8337 14.6667H34.667V34.6667ZM34.667 12H26.667V6.66667H34.667V12Z" fill="currentColor"/>
4
4
  </svg>
5
- `,settings:[{id:"setting",controls:[{id:"childItem",label:"Tabs Item",type:"child-item",default:["Tab 1","Tab 2"],expandItem:!0},{id:"translate",type:"input",default:"childItem"},{id:"position",type:"layout-segment",label:"Layout",disableToggle:!0,options:[{value:"top",label:"Top",type:"layout-align"},{value:"left",label:"Left",type:"layout-align"},{value:"right",label:"Right",type:"layout-align"}],devices:{desktop:{default:"top"},tablet:{default:"top"},mobile:{default:"top"}}},{id:"group-header",label:"Tabs Header",type:"group",controls:[{id:"labelTypoV2",type:"typography-v2",default:{type:"paragraph-1"},hiddenSetting:{color:!0},ignoreReRender:!0},{id:"panelFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"panelWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"200px"}}},{id:"panelAlign",type:"segment",label:"Alignment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Center",value:"center",type:"align",tooltip:"Align center"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],devices:{desktop:{default:"left"}}},{id:"labelWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"200px"}}},{id:"labelAlign",type:"segment",label:"Text alignment",options:[{label:"Left",value:"left",type:"text"},{label:"Center",value:"center",type:"text"},{label:"Right",value:"right",type:"text"}],devices:{desktop:{default:"left"}}}]},{id:"behavior-state-group",type:"behavior-state",controls:[{id:"labelBgColor",label:"Background Color",type:"colorpicker",default:{active:"#f5f5f5"},state:{normal:!0,hover:!0,active:!0}},{id:"labelColor",label:"Text Color",type:"colorpicker",default:{normal:"#121212"},state:{normal:!0,hover:!0,active:!0}},{id:"borderTab",type:"border",label:"Border",default:{normal:{border:"none",width:"1px 1px 1px 1px",borderWidth:"1px",color:"#121212",isCustom:!1,position:"all"},hover:{border:"none",width:"1px 1px 1px 1px",borderWidth:"1px",color:"#121212",isCustom:!1,position:"all"},active:{border:"solid",width:"0px 0px 2px 0px",borderWidth:"2px",color:"#121212",position:"bottom",isCustom:!0}},state:{hover:!0,normal:!0,active:!0}}]},{id:"background",type:"background",ignoreReRender:!0,devices:{desktop:{default:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}}]}],ui:[{type:"group",label:{en:"Item management"},controls:[{type:"control",layout:"vertical",setting:{id:"childItem"}}]},{type:"group",label:{en:"Layout"},options:{labelSpacing:"medium"},controls:[{type:"control",layout:"vertical",setting:{id:"position"}}]},{type:"group",label:{en:"Tab header"},controls:[{type:"control",layout:"vertical",setting:{id:"labelTypoV2"}},{type:"control",label:{en:"Text align"},setting:{id:"labelAlign"}},{type:"control",label:{en:"Full Width"},setting:{id:"panelFullWidth"},condition:'position == "top"'},{condition:'panelFullWidth == false && position == "top"',type:"control",label:{en:"Width"},setting:{id:"panelWidth"}},{condition:'panelFullWidth == false && position == "top"',type:"control",label:{en:"Align"},setting:{id:"panelAlign"}},{condition:'position != "top"',type:"control",label:{en:"Width"},setting:{id:"labelWidth"}}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"hover"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"hover"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"hover"}}]},{type:"group",label:{en:"Active"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"active"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"active"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"active"}}]}]}]},{type:"control",label:{en:"Background"},options:{label:"large",styleLabel:{marginBottom:"4px"}},setting:{id:"background"},layout:"vertical"}],editorConfigs:{slots:{children:!1}},presets:[{id:"tab",name:{en:"Tab"},icon:{desktop:`
5
+ `,settings:[{id:"setting",controls:[{id:"childItem",label:"Tabs Item",type:"child-item",default:["Tab 1","Tab 2"],expandItem:!0},{id:"translate",type:"input",default:"childItem"},{id:"position",type:"layout-segment",label:"Layout",disableToggle:!0,options:[{value:"top",label:"Top",type:"layout-align"},{value:"left",label:"Left",type:"layout-align"},{value:"right",label:"Right",type:"layout-align"}],devices:{desktop:{default:"top"},tablet:{default:"top"},mobile:{default:"top"}}},{id:"group-header",label:"Tabs Header",type:"group",controls:[{id:"labelTypoV2",type:"typography-v2",default:{type:"paragraph-1"},hiddenSetting:{color:!0},ignoreReRender:!0},{id:"panelFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"panelWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"Auto"}}},{id:"panelAlign",type:"segment",label:"Alignment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Center",value:"center",type:"align",tooltip:"Align center"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],devices:{desktop:{default:"left"}}},{id:"labelWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"200px"}}},{id:"labelAlign",type:"segment",label:"Text alignment",options:[{label:"Left",value:"left",type:"text"},{label:"Center",value:"center",type:"text"},{label:"Right",value:"right",type:"text"}],devices:{desktop:{default:"left"}}}]},{id:"behavior-state-group",type:"behavior-state",controls:[{id:"labelBgColor",label:"Background Color",type:"colorpicker",default:{active:"#f5f5f5"},state:{normal:!0,hover:!0,active:!0}},{id:"labelColor",label:"Text Color",type:"colorpicker",default:{normal:"#121212"},state:{normal:!0,hover:!0,active:!0}},{id:"borderTab",type:"border",label:"Border",default:{normal:{border:"none",width:"1px 1px 1px 1px",borderWidth:"1px",color:"#121212",isCustom:!1,position:"all"},hover:{border:"none",width:"1px 1px 1px 1px",borderWidth:"1px",color:"#121212",isCustom:!1,position:"all"},active:{border:"solid",width:"0px 0px 2px 0px",borderWidth:"2px",color:"#121212",position:"bottom",isCustom:!0}},state:{hover:!0,normal:!0,active:!0}}]},{id:"background",type:"background",ignoreReRender:!0,devices:{desktop:{default:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}}]}],ui:[{type:"group",label:{en:"Item management"},controls:[{type:"control",layout:"vertical",setting:{id:"childItem"}}]},{type:"group",label:{en:"Layout"},options:{labelSpacing:"medium"},controls:[{type:"control",layout:"vertical",setting:{id:"position"}}]},{type:"group",label:{en:"Tab header"},controls:[{type:"control",layout:"vertical",setting:{id:"labelTypoV2"}},{type:"control",label:{en:"Text align"},setting:{id:"labelAlign"}},{type:"control",label:{en:"Full Width"},setting:{id:"panelFullWidth"},condition:'position == "top"'},{condition:'panelFullWidth == false && position == "top"',type:"control",label:{en:"Width"},setting:{id:"panelWidth"}},{condition:'panelFullWidth == false && position == "top"',type:"control",label:{en:"Align"},setting:{id:"panelAlign"}},{condition:'position != "top"',type:"control",label:{en:"Width"},setting:{id:"labelWidth"}}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"hover"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"hover"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"hover"}}]},{type:"group",label:{en:"Active"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"labelBgColor",state:"active"}},{type:"control",label:{en:"Text color"},setting:{id:"labelColor",state:"active"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderTab",state:"active"}}]}]}]},{type:"control",label:{en:"Background"},options:{label:"large",styleLabel:{marginBottom:"4px"}},setting:{id:"background"},layout:"vertical"}],editorConfigs:{slots:{children:!1}},presets:[{id:"tab",name:{en:"Tab"},icon:{desktop:`
6
6
  <svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
7
7
  <rect x="8" y="30" width="32" height="2" fill="#D6D6D6"/>
8
8
  <rect x="8" y="12" width="32" height="8" rx="4" fill="#757575"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.843",
3
+ "version": "2.0.0-dev.844",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",