@gem-sdk/components 2.0.0-staging.911 → 2.0.0-staging.914
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/article/components/ArticleList.js +1 -1
- package/dist/cjs/article/components/ArticleList.liquid.js +3 -4
- package/dist/cjs/breadcrumb/components/templates/home.js +2 -2
- package/dist/cjs/breadcrumb/settings/Breadcrumb.js +1 -1
- package/dist/cjs/collection/settings/collection-banner/configs/settings.js +1 -1
- package/dist/cjs/grid/settings/Row.js +1 -1
- package/dist/cjs/shop-pay-installment/settings/ShopPayInstallments.js +1 -1
- package/dist/esm/article/components/ArticleList.js +1 -1
- package/dist/esm/article/components/ArticleList.liquid.js +3 -4
- package/dist/esm/breadcrumb/components/templates/home.js +3 -3
- package/dist/esm/breadcrumb/settings/Breadcrumb.js +1 -1
- package/dist/esm/collection/settings/collection-banner/configs/settings.js +1 -1
- package/dist/esm/grid/settings/Row.js +1 -1
- package/dist/esm/shop-pay-installment/settings/ShopPayInstallments.js +1 -1
- package/package.json +2 -2
|
@@ -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"),ChildrenDroppable=require("../../grid/components/ChildrenDroppable.js"),Loading=require("../../common/components/Loading.js"),React=require("react"),ArticleNotFound=require("./ArticleNotFound.js");const ArticleList=e=>{let t=core.useEditorMode(),{styles:i,setting:r,className:l,children:o,builderProps:a,advanced:n,builderAttrs:s}=e??{},{articleSetting:d,numberOfArticle:c}=r??{},{articleIds:u,articlePickType:g}=d??{},{border:m,rounded:p,hasBoxShadow:h,boxShadow:y}=n??{},b=core.composeAdvanceStyle({border:m,rounded:p,hasBoxShadow:h,boxShadow:y,"spacing-setting":n?.["spacing-setting"]}),x={first:u?.length||50,where:{baseIDIn:[...d?.articleIds??[]]},orderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"}},j={first:1,where:{baseID:d?.blogId},orderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"},articlesOrderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"}},[v,f]=React.useState(!0),A=core.useBlogsQuery("latest"===g?j:null,{revalidateOnMount:!0}),R=core.useArticlesQuery("manually"===g?x:null,{revalidateOnMount:!0}),S=A.data?.blogs?.edges?.[0]?.node,D="manually"===g?R.isLoading:A.isLoading,w="manually"===g?R.isValidating:A.isValidating,T="manually"===g?R.error:A.error,k=A?.data?.blogs?.edges?.[0]?.node,B="latest"===g?core.flattenConnection(k?.articles):core.flattenConnection(R?.data?.articles),L=(e,t)=>({...e??{},blog:{title:t?.title??"",handle:t?.handle??""}}),P="latest"===g?B?.filter((e,t)=>t<+(c||4)).map(e=>L(e,k)):"manually"===g&&d?.articleIds?.length?u?.map(e=>{let t=B?.find(t=>t?.baseID===e);return L(t,t?.blogs?.edges?.[0]?.node)}).filter(Boolean):B.filter((e,t)=>t<(d?.numOfSelectedArticles||4)).map(e=>L(e,e?.blogs?.edges?.[0]?.node));return P?.length||D||"edit"!=t?jsxRuntime.jsxs("div",{...s,className:a?.builderData?.uid,children:[w||D?jsxRuntime.jsx(Loading.default,{}):T?jsxRuntime.jsxs("div",{children:["Error: ",T?.message]}):P?.length?jsxRuntime.jsx(core.ArticleListProvider,{styles:{horizontalGutter:i?.horizontalGutter,verticalGutter:i?.verticalGutter,spacing:i?.spacing,width:i?.width,height:i?.height},settings:{slidesToShow:r?.slideToShow??{desktop:4,tablet:3,mobile:1}},articles:P,children:jsxRuntime.jsx("div",{"data-id":a?.uid,className:"gp-relative
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),ChildrenDroppable=require("../../grid/components/ChildrenDroppable.js"),Loading=require("../../common/components/Loading.js"),React=require("react"),ArticleNotFound=require("./ArticleNotFound.js");const ArticleList=e=>{let t=core.useEditorMode(),{styles:i,setting:r,className:l,children:o,builderProps:a,advanced:n,builderAttrs:s}=e??{},{articleSetting:d,numberOfArticle:c}=r??{},{articleIds:u,articlePickType:g}=d??{},{border:m,rounded:p,hasBoxShadow:h,boxShadow:y}=n??{},b=core.composeAdvanceStyle({border:m,rounded:p,hasBoxShadow:h,boxShadow:y,"spacing-setting":n?.["spacing-setting"]}),x={first:u?.length||50,where:{baseIDIn:[...d?.articleIds??[]]},orderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"}},j={first:1,where:{baseID:d?.blogId},orderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"},articlesOrderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"}},[v,f]=React.useState(!0),A=core.useBlogsQuery("latest"===g?j:null,{revalidateOnMount:!0}),R=core.useArticlesQuery("manually"===g?x:null,{revalidateOnMount:!0}),S=A.data?.blogs?.edges?.[0]?.node,D="manually"===g?R.isLoading:A.isLoading,w="manually"===g?R.isValidating:A.isValidating,T="manually"===g?R.error:A.error,k=A?.data?.blogs?.edges?.[0]?.node,B="latest"===g?core.flattenConnection(k?.articles):core.flattenConnection(R?.data?.articles),L=(e,t)=>({...e??{},blog:{title:t?.title??"",handle:t?.handle??""}}),P="latest"===g?B?.filter((e,t)=>t<+(c||4)).map(e=>L(e,k)):"manually"===g&&d?.articleIds?.length?u?.map(e=>{let t=B?.find(t=>t?.baseID===e);return L(t,t?.blogs?.edges?.[0]?.node)}).filter(Boolean):B.filter((e,t)=>t<(d?.numOfSelectedArticles||4)).map(e=>L(e,e?.blogs?.edges?.[0]?.node));return P?.length||D||"edit"!=t?jsxRuntime.jsxs("div",{...s,className:a?.builderData?.uid,children:[w||D?jsxRuntime.jsx(Loading.default,{}):T?jsxRuntime.jsxs("div",{children:["Error: ",T?.message]}):P?.length?jsxRuntime.jsx(core.ArticleListProvider,{styles:{horizontalGutter:i?.horizontalGutter,verticalGutter:i?.verticalGutter,spacing:i?.spacing,width:i?.width,height:i?.height},settings:{slidesToShow:r?.slideToShow??{desktop:4,tablet:3,mobile:1}},articles:P,children:jsxRuntime.jsx("div",{"data-id":a?.uid,className:"gp-relative",children:jsxRuntime.jsx("div",{style:{...b,...core.makeStyleWithDefault("w",core.makeWidth(i?.width),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...core.makeStyleResponsive("rg",i?.horizontalGutter),...core.makeStyleResponsive("cg",i?.verticalGutter),...core.getStyleBackgroundByDevice(r?.background),...core.getGradientBgrStyleByDevice(r?.background),...core.makeStyleResponsive("gtc",{desktop:`repeat(${core.getResponsiveValueByScreen(r?.slideToShow,"desktop")}, minmax(0, 1fr))`,tablet:r?.slideToShow?.tablet&&`repeat(${core.getResponsiveValueByScreen(r?.slideToShow,"tablet")}, minmax(0, 1fr))`,mobile:r?.slideToShow?.mobile&&`repeat(${core.getResponsiveValueByScreen(r?.slideToShow,"mobile")}, minmax(0, 1fr))`})},className:core.cls(l,"gp-m-auto gp-grid gp-w-full"),children:P.map(e=>jsxRuntime.jsx(core.ArticleProvider,{article:e,readOnly:!0,children:jsxRuntime.jsx("div",{"data-component-type":"component","data-component-tag":"Article","data-component-label":"Article","data-component-no-setting":!0,"data-article-id":e?.baseID?.replace("gid://shopify/OnlineStoreArticle/",""),children:core.isEmptyChildren(o)?jsxRuntime.jsx(ChildrenDroppable.default,{}):o})},e?.id))})})}):jsxRuntime.jsx("div",{children:"Articles not found"}),core.filterToolbarPreview(o,!0)]}):v?jsxRuntime.jsx(ArticleNotFound.default,{blogHandle:S?.handle,onClose:()=>f(!1),articlePickType:g??"manually",children:o}):null};exports.default=ArticleList;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers$1=require("../common/helpers.js"),helpers=require("../../helpers.js");const ArticleList=e=>{let{styles:l,setting:t,className:i,children:a,builderProps:r,advanced:s}=e??{},{border:o,rounded:c,hasBoxShadow:n,boxShadow:g}=s??{},d=core.composeAdvanceStyle({border:o,rounded:c,hasBoxShadow:n,boxShadow:g,"spacing-setting":s?.["spacing-setting"]}),p=t?.articleSetting,m=t?.articleOrderBy??"UPDATED_AT_REVERSE",u=p?.articlePickType??"manually",y="manually"===u&&p?.articleHandles?.length?p?.articleHandles:[],
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers$1=require("../common/helpers.js"),helpers=require("../../helpers.js");const ArticleList=e=>{let{styles:l,setting:t,className:i,children:a,builderProps:r,advanced:s}=e??{},{border:o,rounded:c,hasBoxShadow:n,boxShadow:g}=s??{},d=core.composeAdvanceStyle({border:o,rounded:c,hasBoxShadow:n,boxShadow:g,"spacing-setting":s?.["spacing-setting"]}),p=t?.articleSetting,m=t?.articleOrderBy??"UPDATED_AT_REVERSE",u=p?.articlePickType??"manually",y="manually"===u&&p?.articleHandles?.length?p?.articleHandles:[],b="manually"===u&&p?.articleBlogTitles?.length?p?.articleBlogTitles:[],h=p?.blogHandle??"",_=helpers.convertUnitToNumber(t?.numberOfArticle,4);return core.template`
|
|
3
3
|
<div
|
|
4
4
|
data-id="${r?.uid}"
|
|
5
5
|
items-repeat
|
|
6
|
-
class="gp-overflow-hidden"
|
|
7
6
|
>
|
|
8
7
|
<div style="${{...d,...core.makeStyleWithDefault("w",core.makeWidth(l?.width),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...core.makeStyleResponsive("rg",l?.horizontalGutter),...core.makeStyleResponsive("cg",l?.verticalGutter),...core.getStyleBackgroundByDevice(t?.background),...core.getGradientBgrStyleByDevice(t?.background),...core.makeStyleResponsive("gtc",{desktop:`repeat(${core.getResponsiveValueByScreen(t?.slideToShow,"desktop")}, minmax(0, 1fr))`,tablet:t?.slideToShow?.tablet&&`repeat(${core.getResponsiveValueByScreen(t?.slideToShow,"tablet")}, minmax(0, 1fr))`,mobile:t?.slideToShow?.mobile&&`repeat(${core.getResponsiveValueByScreen(t?.slideToShow,"mobile")}, minmax(0, 1fr))`})}}"
|
|
9
8
|
class="${core.cls(i,"gp-grid !gp-m-auto gp-w-full",s?.cssClass)}"
|
|
@@ -11,7 +10,7 @@
|
|
|
11
10
|
{% liquid
|
|
12
11
|
assign articlePickType = '${u}'
|
|
13
12
|
assign articleHandles = '${y.toString()}'| split: ","
|
|
14
|
-
assign articleBlogTitle = "${helpers$1.convertSpecialCharacter(
|
|
13
|
+
assign articleBlogTitle = "${helpers$1.convertSpecialCharacter(b.toString())}" | split: ","
|
|
15
14
|
assign limit = "${"manually"===u?p?.articleIds?.length:_}"
|
|
16
15
|
assign blogTitle = ''
|
|
17
16
|
assign all_articles = null | sort
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
assign all_articles = all_articles | concat: articleByHandle
|
|
23
22
|
endfor
|
|
24
23
|
else
|
|
25
|
-
assign current_blog_handle = blogs['${
|
|
24
|
+
assign current_blog_handle = blogs['${h}']
|
|
26
25
|
if gp_enable_custom_dynamic_blog == true
|
|
27
26
|
assign current_blog_handle = blogs[blog.handle]
|
|
28
27
|
endif
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var core=require("@gem-sdk/core");const BreadcrumbHomeTemplate=({composePageClasses:e,breadcrumbChildItemStyles:r})=>core.template`
|
|
1
|
+
"use strict";var core=require("@gem-sdk/core"),helpers=require("../../../helpers.js");const BreadcrumbHomeTemplate=({composePageClasses:e,breadcrumbChildItemStyles:r})=>core.template`
|
|
2
2
|
<a class="${e}" style="${r}" href="{{ routes.root_url }}">
|
|
3
|
-
|
|
3
|
+
${helpers.getStaticLocale("Breadcrumb","home")}
|
|
4
4
|
</a>`;exports.BreadcrumbHomeTemplate=BreadcrumbHomeTemplate;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
<path d="M48.0568 14V5.27273H51.0057C51.6903 5.27273 52.25 5.39631 52.6847 5.64347C53.1222 5.88778 53.446 6.21875 53.6562 6.63636C53.8665 7.05398 53.9716 7.51989 53.9716 8.03409C53.9716 8.5483 53.8665 9.01562 53.6562 9.43608C53.4489 9.85653 53.1278 10.1918 52.6932 10.4418C52.2585 10.6889 51.7017 10.8125 51.0227 10.8125H48.9091V9.875H50.9886C51.4574 9.875 51.8338 9.79403 52.1179 9.6321C52.402 9.47017 52.608 9.25142 52.7358 8.97585C52.8665 8.69744 52.9318 8.38352 52.9318 8.03409C52.9318 7.68466 52.8665 7.37216 52.7358 7.09659C52.608 6.82102 52.4006 6.60511 52.1136 6.44886C51.8267 6.28977 51.446 6.21023 50.9716 6.21023H49.1136V14H48.0568ZM57.4638 14.1534C57.049 14.1534 56.6726 14.0753 56.3345 13.919C55.9964 13.7599 55.728 13.5312 55.5291 13.233C55.3303 12.9318 55.2308 12.5682 55.2308 12.142C55.2308 11.767 55.3047 11.4631 55.4524 11.2301C55.6001 10.9943 55.7976 10.8097 56.0447 10.6761C56.2919 10.5426 56.5646 10.4432 56.8629 10.3778C57.1641 10.3097 57.4666 10.2557 57.7706 10.2159C58.1683 10.1648 58.4908 10.1264 58.7379 10.1009C58.9879 10.0724 59.1697 10.0256 59.2834 9.96023C59.3999 9.89489 59.4581 9.78125 59.4581 9.61932V9.58523C59.4581 9.16477 59.343 8.83807 59.1129 8.60511C58.8857 8.37216 58.5405 8.25568 58.0774 8.25568C57.5973 8.25568 57.2209 8.3608 56.9482 8.57102C56.6754 8.78125 56.4837 9.00568 56.3729 9.24432L55.4183 8.90341C55.5888 8.50568 55.8161 8.19602 56.1001 7.97443C56.3871 7.75 56.6996 7.59375 57.0376 7.50568C57.3786 7.41477 57.7138 7.36932 58.0433 7.36932C58.2536 7.36932 58.495 7.39489 58.7678 7.44602C59.0433 7.49432 59.3089 7.59517 59.5646 7.74858C59.8232 7.90199 60.0376 8.13352 60.2081 8.44318C60.3786 8.75284 60.4638 9.16761 60.4638 9.6875V14H59.4581V13.1136H59.407C59.3388 13.2557 59.2251 13.4077 59.0661 13.5696C58.907 13.7315 58.6953 13.8693 58.4311 13.983C58.1669 14.0966 57.8445 14.1534 57.4638 14.1534ZM57.6172 13.25C58.0149 13.25 58.3501 13.1719 58.6229 13.0156C58.8984 12.8594 59.1058 12.6577 59.245 12.4105C59.3871 12.1634 59.4581 11.9034 59.4581 11.6307V10.7102C59.4155 10.7614 59.3217 10.8082 59.1768 10.8509C59.0348 10.8906 58.87 10.9261 58.6825 10.9574C58.4979 10.9858 58.3175 11.0114 58.1413 11.0341C57.968 11.054 57.8274 11.071 57.7195 11.0852C57.4581 11.1193 57.2138 11.1747 56.9865 11.2514C56.7621 11.3253 56.5803 11.4375 56.4411 11.5881C56.3047 11.7358 56.2365 11.9375 56.2365 12.1932C56.2365 12.5426 56.3658 12.8068 56.6243 12.9858C56.8857 13.1619 57.2166 13.25 57.6172 13.25ZM64.9414 16.5909C64.4556 16.5909 64.038 16.5284 63.6886 16.4034C63.3391 16.2812 63.0479 16.1193 62.815 15.9176C62.5849 15.7188 62.4016 15.5057 62.2653 15.2784L63.0664 14.7159C63.1573 14.8352 63.2724 14.9716 63.4116 15.125C63.5508 15.2812 63.7411 15.4162 63.9826 15.5298C64.2269 15.6463 64.5465 15.7045 64.9414 15.7045C65.4698 15.7045 65.9059 15.5767 66.2496 15.321C66.5934 15.0653 66.7653 14.6648 66.7653 14.1193V12.7898H66.68C66.6062 12.9091 66.5011 13.0568 66.3647 13.233C66.2312 13.4062 66.038 13.5611 65.7852 13.6974C65.5352 13.831 65.1971 13.8977 64.771 13.8977C64.2425 13.8977 63.7681 13.7727 63.3477 13.5227C62.93 13.2727 62.5991 12.9091 62.3548 12.4318C62.1133 11.9545 61.9925 11.375 61.9925 10.6932C61.9925 10.0227 62.1104 9.43892 62.3462 8.94176C62.582 8.44176 62.9102 8.0554 63.3306 7.78267C63.7511 7.5071 64.2369 7.36932 64.788 7.36932C65.2141 7.36932 65.5522 7.44034 65.8022 7.58239C66.055 7.72159 66.2482 7.88068 66.3817 8.05966C66.5181 8.2358 66.6232 8.38068 66.6971 8.49432H66.7994V7.45455H67.771V14.1875C67.771 14.75 67.6431 15.2074 67.3874 15.5597C67.1346 15.9148 66.7937 16.1747 66.3647 16.3395C65.9386 16.5071 65.4641 16.5909 64.9414 16.5909ZM64.9073 12.9943C65.3107 12.9943 65.6516 12.902 65.93 12.7173C66.2085 12.5327 66.4201 12.267 66.565 11.9205C66.7099 11.5739 66.7823 11.1591 66.7823 10.6761C66.7823 10.2045 66.7113 9.78835 66.5692 9.42756C66.4272 9.06676 66.217 8.78409 65.9386 8.57955C65.6602 8.375 65.3164 8.27273 64.9073 8.27273C64.4812 8.27273 64.1261 8.38068 63.842 8.59659C63.5607 8.8125 63.3491 9.10227 63.207 9.46591C63.0678 9.82955 62.9982 10.233 62.9982 10.6761C62.9982 11.1307 63.0692 11.5327 63.2113 11.8821C63.3562 12.2287 63.5692 12.5014 63.8505 12.7003C64.1346 12.8963 64.4869 12.9943 64.9073 12.9943ZM72.3562 14.1364C71.7255 14.1364 71.1815 13.9972 70.7241 13.7188C70.2695 13.4375 69.9187 13.0455 69.6715 12.5426C69.4272 12.0369 69.305 11.4489 69.305 10.7784C69.305 10.108 69.4272 9.51705 69.6715 9.00568C69.9187 8.49148 70.2624 8.09091 70.7028 7.80398C71.146 7.5142 71.663 7.36932 72.2539 7.36932C72.5948 7.36932 72.9315 7.42614 73.2638 7.53977C73.5962 7.65341 73.8988 7.83807 74.1715 8.09375C74.4442 8.34659 74.6616 8.68182 74.8235 9.09943C74.9854 9.51705 75.0664 10.0312 75.0664 10.642V11.0682H70.021V10.1989H74.0437C74.0437 9.82955 73.9698 9.5 73.8221 9.21023C73.6772 8.92045 73.4698 8.69176 73.1999 8.52415C72.9329 8.35653 72.6175 8.27273 72.2539 8.27273C71.8533 8.27273 71.5067 8.37216 71.2141 8.57102C70.9244 8.76705 70.7013 9.02273 70.5451 9.33807C70.3888 9.65341 70.3107 9.99148 70.3107 10.3523V10.9318C70.3107 11.4261 70.396 11.8452 70.5664 12.1889C70.7397 12.5298 70.9798 12.7898 71.2866 12.9688C71.5934 13.1449 71.9499 13.233 72.3562 13.233C72.6204 13.233 72.859 13.196 73.0721 13.1222C73.288 13.0455 73.4741 12.9318 73.6303 12.7812C73.7866 12.6278 73.9073 12.4375 73.9925 12.2102L74.9641 12.483C74.8619 12.8125 74.69 13.1023 74.4485 13.3523C74.207 13.5994 73.9087 13.7926 73.5536 13.9318C73.1985 14.0682 72.7994 14.1364 72.3562 14.1364Z" fill="#F9F9F9"/>
|
|
6
6
|
</svg>
|
|
7
7
|
|
|
8
|
-
`},components:[{tag:"Breadcrumb",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}}]}]};exports.default=config;
|
|
8
|
+
`},components:[{tag:"Breadcrumb",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}}]}],locales:{editor:{en:{home:"Home"}}}};exports.default=config;
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.08398 6C5.08398 6.82843 5.75556 7.5 6.58398 7.5H11.584C12.4124 7.5 13.084 6.82843 13.084 6V5C13.084 4.17157 12.4124 3.5 11.584 3.5L6.58398 3.5C5.75556 3.5 5.08398 4.17157 5.08398 5V6ZM6.58398 6.5C6.30784 6.5 6.08398 6.27614 6.08398 6V5C6.08398 4.72386 6.30784 4.5 6.58398 4.5L11.584 4.5C11.8601 4.5 12.084 4.72386 12.084 5V6C12.084 6.27614 11.8601 6.5 11.584 6.5H6.58398Z" fill="currentColor"/>
|
|
12
12
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.58398 12.5C2.75556 12.5 2.08398 11.8284 2.08398 11L2.08398 10C2.08398 9.17157 2.75556 8.5 3.58398 8.5H11.584C12.4124 8.5 13.084 9.17157 13.084 10V11C13.084 11.8284 12.4124 12.5 11.584 12.5L3.58398 12.5ZM3.08398 11C3.08398 11.2761 3.30784 11.5 3.58398 11.5L11.584 11.5C11.8601 11.5 12.084 11.2761 12.084 11V10C12.084 9.72386 11.8601 9.5 11.584 9.5L3.58398 9.5C3.30784 9.5 3.08398 9.72386 3.08398 10L3.08398 11Z" fill="currentColor"/>
|
|
13
13
|
</svg>
|
|
14
|
-
`,iconName:"gp-justify-content-bottom"}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-align-top",tooltip:"Align top"},{label:"Center",value:"center",iconName:"gp-align-center-vertical",tooltip:"Align center"},{label:"End",value:"end",iconName:"gp-align-bottom",tooltip:"Align bottom"},{label:"Between",value:"space-between",tooltip:"Distribute vertical spacing",iconName:"gp-justify-content-space-between"}],devices:{desktop:{default:"start"}}},{id:"content-dimension-group",type:"group",label:"Content Dimension",controls:[{id:"fixedMode",type:"toggle",default:!1},{id:"height",label:"Height",type:"input:unit",units:["px"],placeholder:"Auto",devices:{desktop:{default:"500px"}},info:"Full Width: To set Hero Banner full width, first you drag & drop a Section element from left sidebar, then make it full-width, after that you put your Hero Banner inside Section you have created."},{id:"contentPosition",label:"Content Position",type:"option:value",options:[{label:"Start",value:"top",tooltip:"Align top",iconName:"gp-align-top"},{label:"Center",value:"center",tooltip:"Align vertical center",iconName:"gp-align-center-vertical"},{label:"End",value:"bottom",tooltip:"Align bottom",iconName:"gp-align-bottom"}],default:"center"},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0},tablet:{default:!0},mobile:{default:!0}}},{id:"width",type:"input:unit",label:"Width",min:0,units:["px"],devices:{desktop:{default:"1200px"}}},{id:"verticalGutter",type:"input:slider",units:["px"],min:0,max:120,ignoreMax:!0,label:"Spacing",devices:{desktop:{default:"32px"}}}]},{id:"image-info",label:"Image",type:"group",controls:[{id:"background",type:"background-image",ignoreReRender:!0,isBackground:!0,isHideClear:!0,devices:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-lifestyle-2_large.png",width:1920,height:900},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},compoDefaultValue:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-lifestyle-2_large.png",width:1920,height:900},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}},{id:"hoverEffect",label:"Hover effect",type:"option:value",options:[{label:"None",value:"none"},{label:"Zoom",value:"zoom"}],default:"none"},{id:"hoverScale",type:"input:slider",label:"Zoom Value",units:["%"],min:100,max:200,step:1,default:110,useOnlyUnitInit:!0,isNumber:!0},{id:"hoverDuration",type:"input:unit",label:"Zoom Time",min:0,units:["s"],default:"0.5",useOnlyUnitInit:!0,isNumber:!0}]},{id:"overlay",label:"Overlay",type:"group",controls:[{id:"overlayOpacity",label:"Opacity",type:"input:slider",min:0,max:100,units:["%"],step:1,default:{normal:"20%"},state:{normal:!0,hover:!0}},{id:"overlayColor",label:"Color",type:"color-picker-v2",default:{normal:"#121212"},state:{normal:!0,hover:!0}}]}]}];exports.CollectionBannerSettings=CollectionBannerSettings;
|
|
14
|
+
`,iconName:"gp-justify-content-bottom"}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-align-top",tooltip:"Align top"},{label:"Center",value:"center",iconName:"gp-align-center-vertical",tooltip:"Align center"},{label:"End",value:"end",iconName:"gp-align-bottom",tooltip:"Align bottom"},{label:"Between",value:"space-between",tooltip:"Distribute vertical spacing",iconName:"gp-justify-content-space-between"}],devices:{desktop:{default:"start"}}},{id:"content-dimension-group",type:"group",label:"Content Dimension",controls:[{id:"fixedMode",type:"toggle",default:!1},{id:"height",label:"Height",type:"input:unit",units:["px"],placeholder:"Auto",devices:{desktop:{default:"500px"}},info:"Full Width: To set Hero Banner full width, first you drag & drop a Section element from left sidebar, then make it full-width, after that you put your Hero Banner inside Section you have created."},{id:"contentPosition",label:"Content Position",type:"option:value",options:[{label:"Start",value:"top",tooltip:"Align top",iconName:"gp-align-top"},{label:"Center",value:"center",tooltip:"Align vertical center",iconName:"gp-align-center-vertical"},{label:"End",value:"bottom",tooltip:"Align bottom",iconName:"gp-align-bottom"}],default:"center"},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0},tablet:{default:!0},mobile:{default:!0}}},{id:"width",type:"input:unit",label:"Width",min:0,units:["px"],devices:{desktop:{default:"1200px"}}},{id:"verticalGutter",type:"input:slider",units:["px"],min:0,max:120,ignoreMax:!0,label:"Spacing",devices:{desktop:{default:"32px"}}}]},{id:"image-info",label:"Image",type:"group",controls:[{id:"background",type:"background-image",ignoreReRender:!0,isBackground:!0,isHideClear:!0,fixedDisplayValue:"Collection image",devices:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-lifestyle-2_large.png",width:1920,height:900},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},compoDefaultValue:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-lifestyle-2_large.png",width:1920,height:900},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}},{id:"hoverEffect",label:"Hover effect",type:"option:value",options:[{label:"None",value:"none"},{label:"Zoom",value:"zoom"}],default:"none"},{id:"hoverScale",type:"input:slider",label:"Zoom Value",units:["%"],min:100,max:200,step:1,default:110,useOnlyUnitInit:!0,isNumber:!0},{id:"hoverDuration",type:"input:unit",label:"Zoom Time",min:0,units:["s"],default:"0.5",useOnlyUnitInit:!0,isNumber:!0}]},{id:"overlay",label:"Overlay",type:"group",controls:[{id:"overlayOpacity",label:"Opacity",type:"input:slider",min:0,max:100,units:["%"],step:1,default:{normal:"20%"},state:{normal:!0,hover:!0}},{id:"overlayColor",label:"Color",type:"color-picker-v2",default:{normal:"#121212"},state:{normal:!0,hover:!0}}]}]}];exports.CollectionBannerSettings=CollectionBannerSettings;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 3.00391C1.83579 3.00391 1.5 3.33969 1.5 3.75391C1.5 4.16812 1.83579 4.50391 2.25 4.50391L21.7514 4.50391C22.1656 4.50391 22.5014 4.16812 22.5014 3.75391C22.5014 3.33969 22.1656 3.00391 21.7514 3.00391H2.25ZM2.25 19.4988C1.83579 19.4988 1.5 19.8346 1.5 20.2488C1.5 20.663 1.83579 20.9988 2.25 20.9988H9.67911C10.0933 20.9988 10.4291 20.663 10.4291 20.2488C10.4291 19.8346 10.0933 19.4988 9.67911 19.4988H2.25ZM1.5 9.25207C1.5 8.83786 1.83579 8.50207 2.25 8.50207L9.67911 8.50207C10.0933 8.50207 10.4291 8.83786 10.4291 9.25207C10.4291 9.66628 10.0933 10.0021 9.67911 10.0021L2.25 10.0021C1.83579 10.0021 1.5 9.66628 1.5 9.25207ZM2.25 14.0012C1.83579 14.0012 1.5 14.337 1.5 14.7512C1.5 15.1654 1.83579 15.5012 2.25 15.5012L9.67911 15.5012C10.0933 15.5012 10.4291 15.1654 10.4291 14.7512C10.4291 14.337 10.0933 14.0012 9.67911 14.0012L2.25 14.0012ZM13.5725 9.25207C13.5725 8.83786 13.9083 8.50207 14.3225 8.50207H21.7516C22.1658 8.50207 22.5016 8.83786 22.5016 9.25207C22.5016 9.66628 22.1658 10.0021 21.7516 10.0021H14.3225C13.9083 10.0021 13.5725 9.66628 13.5725 9.25207ZM14.3225 14.0012C13.9083 14.0012 13.5725 14.337 13.5725 14.7512C13.5725 15.1654 13.9083 15.5012 14.3225 15.5012H21.7516C22.1658 15.5012 22.5016 15.1654 22.5016 14.7512C22.5016 14.337 22.1658 14.0012 21.7516 14.0012H14.3225Z" fill="white"/>
|
|
4
4
|
</svg>
|
|
5
|
-
`,settings:settings.RowSettings,ui:uiV1.SettingUIV1,uiV2:uiV2.SettingUIV2,presets:presets.RowPreset,editorConfigs:{placeholder:{notAppendLeftRight:!0},slots:{children:!0},toolbar:{parent:!0}},rootOverride:{"spacing-setting":{desktop:{margin:{bottom:
|
|
5
|
+
`,settings:settings.RowSettings,ui:uiV1.SettingUIV1,uiV2:uiV2.SettingUIV2,presets:presets.RowPreset,editorConfigs:{placeholder:{notAppendLeftRight:!0},slots:{children:!0},toolbar:{parent:!0}},rootOverride:{advanced:{"spacing-setting":{desktop:{margin:{bottom:"16px"}}}},styles:{width:{desktop:"default"}}}};exports.default=config;
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
</defs>
|
|
10
10
|
</svg>
|
|
11
11
|
<span class="preset-item-title"> Shop Pay Installments</span>
|
|
12
|
-
</div>`,config={tag:helpers.APP_CONFIG.id,label:helpers.APP_CONFIG.label,icon,settings:settings.ShopPayInstallmentSettings,ui:[{type:"group",label:{en:""},options:{labelSpacing:"small"},controls:[{type:"control",label:{en:""},layout:"vertical",setting:{id:"setupGuide"}}]}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"shop-pay-installment",name:{en:"Shop Pay Installments"},icon:{desktop:icon},components:[{tag:"ShopPayInstallments",advanced:{margin:{desktop:{bottom:"var(--g-s-l)"}}}}]}]};exports.default=config;
|
|
12
|
+
</div>`,config={tag:helpers.APP_CONFIG.id,label:helpers.APP_CONFIG.label,icon,settings:settings.ShopPayInstallmentSettings,ui:[{type:"group",label:{en:""},options:{labelSpacing:"small"},controls:[{type:"control",label:{en:""},layout:"vertical",setting:{id:"setupGuide"}}]}],editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:"shop-pay-installment",name:{en:"Shop Pay Installments"},icon:{desktop:icon},components:[{tag:"ShopPayInstallments",advanced:{margin:{desktop:{bottom:"var(--g-s-l)"}}}}]}]};exports.default=config;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useEditorMode as i,composeAdvanceStyle as l,useBlogsQuery as a,useArticlesQuery as r,flattenConnection as o,ArticleListProvider as d,makeStyleWithDefault as n,makeWidth as s,makeStyleResponsive as c,getStyleBackgroundByDevice as m,getGradientBgrStyleByDevice as g,getResponsiveValueByScreen as p,cls as h,ArticleProvider as u,isEmptyChildren as b,filterToolbarPreview as f}from"@gem-sdk/core";import w from"../../grid/components/ChildrenDroppable.js";import A from"../../common/components/Loading.js";import{useState as T}from"react";import y from"./ArticleNotFound.js";let ArticleList=D=>{let v=i(),{styles:S,setting:O,className:k,children:I,builderProps:L,advanced:E,builderAttrs:P}=D??{},{articleSetting:G,numberOfArticle:_}=O??{},{articleIds:x,articlePickType:C}=G??{},{border:M,rounded:j,hasBoxShadow:B,boxShadow:F}=E??{},N=l({border:M,rounded:j,hasBoxShadow:B,boxShadow:F,"spacing-setting":E?.["spacing-setting"]}),z={first:x?.length||50,where:{baseIDIn:[...G?.articleIds??[]]},orderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"}},R={first:1,where:{baseID:G?.blogId},orderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"},articlesOrderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"}},[U,$]=T(!0),V=a("latest"===C?R:null,{revalidateOnMount:!0}),H=r("manually"===C?z:null,{revalidateOnMount:!0}),q=V.data?.blogs?.edges?.[0]?.node,J="manually"===C?H.isLoading:V.isLoading,K="manually"===C?H.isValidating:V.isValidating,Q="manually"===C?H.error:V.error,W=V?.data?.blogs?.edges?.[0]?.node,X="latest"===C?o(W?.articles):o(H?.data?.articles),Y=(e,t)=>({...e??{},blog:{title:t?.title??"",handle:t?.handle??""}}),Z="latest"===C?X?.filter((e,t)=>t<+(_||4)).map(e=>Y(e,W)):"manually"===C&&G?.articleIds?.length?x?.map(e=>{let t=X?.find(t=>t?.baseID===e);return Y(t,t?.blogs?.edges?.[0]?.node)}).filter(Boolean):X.filter((e,t)=>t<(G?.numOfSelectedArticles||4)).map(e=>Y(e,e?.blogs?.edges?.[0]?.node));return Z?.length||J||"edit"!=v?t("div",{...P,className:L?.builderData?.uid,children:[K||J?e(A,{}):Q?t("div",{children:["Error: ",Q?.message]}):Z?.length?e(d,{styles:{horizontalGutter:S?.horizontalGutter,verticalGutter:S?.verticalGutter,spacing:S?.spacing,width:S?.width,height:S?.height},settings:{slidesToShow:O?.slideToShow??{desktop:4,tablet:3,mobile:1}},articles:Z,children:e("div",{"data-id":L?.uid,className:"gp-relative
|
|
2
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useEditorMode as i,composeAdvanceStyle as l,useBlogsQuery as a,useArticlesQuery as r,flattenConnection as o,ArticleListProvider as d,makeStyleWithDefault as n,makeWidth as s,makeStyleResponsive as c,getStyleBackgroundByDevice as m,getGradientBgrStyleByDevice as g,getResponsiveValueByScreen as p,cls as h,ArticleProvider as u,isEmptyChildren as b,filterToolbarPreview as f}from"@gem-sdk/core";import w from"../../grid/components/ChildrenDroppable.js";import A from"../../common/components/Loading.js";import{useState as T}from"react";import y from"./ArticleNotFound.js";let ArticleList=D=>{let v=i(),{styles:S,setting:O,className:k,children:I,builderProps:L,advanced:E,builderAttrs:P}=D??{},{articleSetting:G,numberOfArticle:_}=O??{},{articleIds:x,articlePickType:C}=G??{},{border:M,rounded:j,hasBoxShadow:B,boxShadow:F}=E??{},N=l({border:M,rounded:j,hasBoxShadow:B,boxShadow:F,"spacing-setting":E?.["spacing-setting"]}),z={first:x?.length||50,where:{baseIDIn:[...G?.articleIds??[]]},orderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"}},R={first:1,where:{baseID:G?.blogId},orderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"},articlesOrderBy:{direction:"DESC",field:"PLATFORM_UPDATED_AT"}},[U,$]=T(!0),V=a("latest"===C?R:null,{revalidateOnMount:!0}),H=r("manually"===C?z:null,{revalidateOnMount:!0}),q=V.data?.blogs?.edges?.[0]?.node,J="manually"===C?H.isLoading:V.isLoading,K="manually"===C?H.isValidating:V.isValidating,Q="manually"===C?H.error:V.error,W=V?.data?.blogs?.edges?.[0]?.node,X="latest"===C?o(W?.articles):o(H?.data?.articles),Y=(e,t)=>({...e??{},blog:{title:t?.title??"",handle:t?.handle??""}}),Z="latest"===C?X?.filter((e,t)=>t<+(_||4)).map(e=>Y(e,W)):"manually"===C&&G?.articleIds?.length?x?.map(e=>{let t=X?.find(t=>t?.baseID===e);return Y(t,t?.blogs?.edges?.[0]?.node)}).filter(Boolean):X.filter((e,t)=>t<(G?.numOfSelectedArticles||4)).map(e=>Y(e,e?.blogs?.edges?.[0]?.node));return Z?.length||J||"edit"!=v?t("div",{...P,className:L?.builderData?.uid,children:[K||J?e(A,{}):Q?t("div",{children:["Error: ",Q?.message]}):Z?.length?e(d,{styles:{horizontalGutter:S?.horizontalGutter,verticalGutter:S?.verticalGutter,spacing:S?.spacing,width:S?.width,height:S?.height},settings:{slidesToShow:O?.slideToShow??{desktop:4,tablet:3,mobile:1}},articles:Z,children:e("div",{"data-id":L?.uid,className:"gp-relative",children:e("div",{style:{...N,...n("w",s(S?.width),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...c("rg",S?.horizontalGutter),...c("cg",S?.verticalGutter),...m(O?.background),...g(O?.background),...c("gtc",{desktop:`repeat(${p(O?.slideToShow,"desktop")}, minmax(0, 1fr))`,tablet:O?.slideToShow?.tablet&&`repeat(${p(O?.slideToShow,"tablet")}, minmax(0, 1fr))`,mobile:O?.slideToShow?.mobile&&`repeat(${p(O?.slideToShow,"mobile")}, minmax(0, 1fr))`})},className:h(k,"gp-m-auto gp-grid gp-w-full"),children:Z.map(t=>e(u,{article:t,readOnly:!0,children:e("div",{"data-component-type":"component","data-component-tag":"Article","data-component-label":"Article","data-component-no-setting":!0,"data-article-id":t?.baseID?.replace("gid://shopify/OnlineStoreArticle/",""),children:b(I)?e(w,{}):I})},t?.id))})})}):e("div",{children:"Articles not found"}),f(I,!0)]}):U?e(y,{blogHandle:q?.handle,onClose:()=>$(!1),articlePickType:C??"manually",children:I}):null};export{ArticleList as default};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{composeAdvanceStyle as l,template as e,makeStyleWithDefault as i,makeWidth as t,makeStyleResponsive as a,getStyleBackgroundByDevice as r,getGradientBgrStyleByDevice as s,getResponsiveValueByScreen as n,cls as o}from"@gem-sdk/core";import{convertSpecialCharacter as c}from"../common/helpers.js";import{convertUnitToNumber as g}from"../../helpers.js";let ArticleList=d=>{let{styles:m,setting:p,className:u,children:b,builderProps:
|
|
2
|
+
import{composeAdvanceStyle as l,template as e,makeStyleWithDefault as i,makeWidth as t,makeStyleResponsive as a,getStyleBackgroundByDevice as r,getGradientBgrStyleByDevice as s,getResponsiveValueByScreen as n,cls as o}from"@gem-sdk/core";import{convertSpecialCharacter as c}from"../common/helpers.js";import{convertUnitToNumber as g}from"../../helpers.js";let ArticleList=d=>{let{styles:m,setting:p,className:u,children:b,builderProps:_,advanced:f}=d??{},{border:h,rounded:T,hasBoxShadow:y,boxShadow:$}=f??{},w=l({border:h,rounded:T,hasBoxShadow:y,boxShadow:$,"spacing-setting":f?.["spacing-setting"]}),S=p?.articleSetting,k=p?.articleOrderBy??"UPDATED_AT_REVERSE",E=S?.articlePickType??"manually",v="manually"===E&&S?.articleHandles?.length?S?.articleHandles:[],B="manually"===E&&S?.articleBlogTitles?.length?S?.articleBlogTitles:[],H=S?.blogHandle??"",R=g(p?.numberOfArticle,4);return e`
|
|
3
3
|
<div
|
|
4
|
-
data-id="${
|
|
4
|
+
data-id="${_?.uid}"
|
|
5
5
|
items-repeat
|
|
6
|
-
class="gp-overflow-hidden"
|
|
7
6
|
>
|
|
8
7
|
<div style="${{...w,...i("w",t(m?.width),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...a("rg",m?.horizontalGutter),...a("cg",m?.verticalGutter),...r(p?.background),...s(p?.background),...a("gtc",{desktop:`repeat(${n(p?.slideToShow,"desktop")}, minmax(0, 1fr))`,tablet:p?.slideToShow?.tablet&&`repeat(${n(p?.slideToShow,"tablet")}, minmax(0, 1fr))`,mobile:p?.slideToShow?.mobile&&`repeat(${n(p?.slideToShow,"mobile")}, minmax(0, 1fr))`})}}"
|
|
9
|
-
class="${o(u,"gp-grid !gp-m-auto gp-w-full",
|
|
8
|
+
class="${o(u,"gp-grid !gp-m-auto gp-w-full",f?.cssClass)}"
|
|
10
9
|
>
|
|
11
10
|
{% liquid
|
|
12
11
|
assign articlePickType = '${E}'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{template as e}from"@gem-sdk/core";let BreadcrumbHomeTemplate=({composePageClasses:
|
|
2
|
-
<a class="${
|
|
3
|
-
|
|
1
|
+
import{template as e}from"@gem-sdk/core";import{getStaticLocale as r}from"../../../helpers.js";let BreadcrumbHomeTemplate=({composePageClasses:m,breadcrumbChildItemStyles:o})=>e`
|
|
2
|
+
<a class="${m}" style="${o}" href="{{ routes.root_url }}">
|
|
3
|
+
${r("Breadcrumb","home")}
|
|
4
4
|
</a>`;export{BreadcrumbHomeTemplate};
|
|
@@ -5,4 +5,4 @@ import{BreadcrumbSettings as C}from"./configs/settings.js";import{SettingUIV1 as
|
|
|
5
5
|
<path d="M48.0568 14V5.27273H51.0057C51.6903 5.27273 52.25 5.39631 52.6847 5.64347C53.1222 5.88778 53.446 6.21875 53.6562 6.63636C53.8665 7.05398 53.9716 7.51989 53.9716 8.03409C53.9716 8.5483 53.8665 9.01562 53.6562 9.43608C53.4489 9.85653 53.1278 10.1918 52.6932 10.4418C52.2585 10.6889 51.7017 10.8125 51.0227 10.8125H48.9091V9.875H50.9886C51.4574 9.875 51.8338 9.79403 52.1179 9.6321C52.402 9.47017 52.608 9.25142 52.7358 8.97585C52.8665 8.69744 52.9318 8.38352 52.9318 8.03409C52.9318 7.68466 52.8665 7.37216 52.7358 7.09659C52.608 6.82102 52.4006 6.60511 52.1136 6.44886C51.8267 6.28977 51.446 6.21023 50.9716 6.21023H49.1136V14H48.0568ZM57.4638 14.1534C57.049 14.1534 56.6726 14.0753 56.3345 13.919C55.9964 13.7599 55.728 13.5312 55.5291 13.233C55.3303 12.9318 55.2308 12.5682 55.2308 12.142C55.2308 11.767 55.3047 11.4631 55.4524 11.2301C55.6001 10.9943 55.7976 10.8097 56.0447 10.6761C56.2919 10.5426 56.5646 10.4432 56.8629 10.3778C57.1641 10.3097 57.4666 10.2557 57.7706 10.2159C58.1683 10.1648 58.4908 10.1264 58.7379 10.1009C58.9879 10.0724 59.1697 10.0256 59.2834 9.96023C59.3999 9.89489 59.4581 9.78125 59.4581 9.61932V9.58523C59.4581 9.16477 59.343 8.83807 59.1129 8.60511C58.8857 8.37216 58.5405 8.25568 58.0774 8.25568C57.5973 8.25568 57.2209 8.3608 56.9482 8.57102C56.6754 8.78125 56.4837 9.00568 56.3729 9.24432L55.4183 8.90341C55.5888 8.50568 55.8161 8.19602 56.1001 7.97443C56.3871 7.75 56.6996 7.59375 57.0376 7.50568C57.3786 7.41477 57.7138 7.36932 58.0433 7.36932C58.2536 7.36932 58.495 7.39489 58.7678 7.44602C59.0433 7.49432 59.3089 7.59517 59.5646 7.74858C59.8232 7.90199 60.0376 8.13352 60.2081 8.44318C60.3786 8.75284 60.4638 9.16761 60.4638 9.6875V14H59.4581V13.1136H59.407C59.3388 13.2557 59.2251 13.4077 59.0661 13.5696C58.907 13.7315 58.6953 13.8693 58.4311 13.983C58.1669 14.0966 57.8445 14.1534 57.4638 14.1534ZM57.6172 13.25C58.0149 13.25 58.3501 13.1719 58.6229 13.0156C58.8984 12.8594 59.1058 12.6577 59.245 12.4105C59.3871 12.1634 59.4581 11.9034 59.4581 11.6307V10.7102C59.4155 10.7614 59.3217 10.8082 59.1768 10.8509C59.0348 10.8906 58.87 10.9261 58.6825 10.9574C58.4979 10.9858 58.3175 11.0114 58.1413 11.0341C57.968 11.054 57.8274 11.071 57.7195 11.0852C57.4581 11.1193 57.2138 11.1747 56.9865 11.2514C56.7621 11.3253 56.5803 11.4375 56.4411 11.5881C56.3047 11.7358 56.2365 11.9375 56.2365 12.1932C56.2365 12.5426 56.3658 12.8068 56.6243 12.9858C56.8857 13.1619 57.2166 13.25 57.6172 13.25ZM64.9414 16.5909C64.4556 16.5909 64.038 16.5284 63.6886 16.4034C63.3391 16.2812 63.0479 16.1193 62.815 15.9176C62.5849 15.7188 62.4016 15.5057 62.2653 15.2784L63.0664 14.7159C63.1573 14.8352 63.2724 14.9716 63.4116 15.125C63.5508 15.2812 63.7411 15.4162 63.9826 15.5298C64.2269 15.6463 64.5465 15.7045 64.9414 15.7045C65.4698 15.7045 65.9059 15.5767 66.2496 15.321C66.5934 15.0653 66.7653 14.6648 66.7653 14.1193V12.7898H66.68C66.6062 12.9091 66.5011 13.0568 66.3647 13.233C66.2312 13.4062 66.038 13.5611 65.7852 13.6974C65.5352 13.831 65.1971 13.8977 64.771 13.8977C64.2425 13.8977 63.7681 13.7727 63.3477 13.5227C62.93 13.2727 62.5991 12.9091 62.3548 12.4318C62.1133 11.9545 61.9925 11.375 61.9925 10.6932C61.9925 10.0227 62.1104 9.43892 62.3462 8.94176C62.582 8.44176 62.9102 8.0554 63.3306 7.78267C63.7511 7.5071 64.2369 7.36932 64.788 7.36932C65.2141 7.36932 65.5522 7.44034 65.8022 7.58239C66.055 7.72159 66.2482 7.88068 66.3817 8.05966C66.5181 8.2358 66.6232 8.38068 66.6971 8.49432H66.7994V7.45455H67.771V14.1875C67.771 14.75 67.6431 15.2074 67.3874 15.5597C67.1346 15.9148 66.7937 16.1747 66.3647 16.3395C65.9386 16.5071 65.4641 16.5909 64.9414 16.5909ZM64.9073 12.9943C65.3107 12.9943 65.6516 12.902 65.93 12.7173C66.2085 12.5327 66.4201 12.267 66.565 11.9205C66.7099 11.5739 66.7823 11.1591 66.7823 10.6761C66.7823 10.2045 66.7113 9.78835 66.5692 9.42756C66.4272 9.06676 66.217 8.78409 65.9386 8.57955C65.6602 8.375 65.3164 8.27273 64.9073 8.27273C64.4812 8.27273 64.1261 8.38068 63.842 8.59659C63.5607 8.8125 63.3491 9.10227 63.207 9.46591C63.0678 9.82955 62.9982 10.233 62.9982 10.6761C62.9982 11.1307 63.0692 11.5327 63.2113 11.8821C63.3562 12.2287 63.5692 12.5014 63.8505 12.7003C64.1346 12.8963 64.4869 12.9943 64.9073 12.9943ZM72.3562 14.1364C71.7255 14.1364 71.1815 13.9972 70.7241 13.7188C70.2695 13.4375 69.9187 13.0455 69.6715 12.5426C69.4272 12.0369 69.305 11.4489 69.305 10.7784C69.305 10.108 69.4272 9.51705 69.6715 9.00568C69.9187 8.49148 70.2624 8.09091 70.7028 7.80398C71.146 7.5142 71.663 7.36932 72.2539 7.36932C72.5948 7.36932 72.9315 7.42614 73.2638 7.53977C73.5962 7.65341 73.8988 7.83807 74.1715 8.09375C74.4442 8.34659 74.6616 8.68182 74.8235 9.09943C74.9854 9.51705 75.0664 10.0312 75.0664 10.642V11.0682H70.021V10.1989H74.0437C74.0437 9.82955 73.9698 9.5 73.8221 9.21023C73.6772 8.92045 73.4698 8.69176 73.1999 8.52415C72.9329 8.35653 72.6175 8.27273 72.2539 8.27273C71.8533 8.27273 71.5067 8.37216 71.2141 8.57102C70.9244 8.76705 70.7013 9.02273 70.5451 9.33807C70.3888 9.65341 70.3107 9.99148 70.3107 10.3523V10.9318C70.3107 11.4261 70.396 11.8452 70.5664 12.1889C70.7397 12.5298 70.9798 12.7898 71.2866 12.9688C71.5934 13.1449 71.9499 13.233 72.3562 13.233C72.6204 13.233 72.859 13.196 73.0721 13.1222C73.288 13.0455 73.4741 12.9318 73.6303 12.7812C73.7866 12.6278 73.9073 12.4375 73.9925 12.2102L74.9641 12.483C74.8619 12.8125 74.69 13.1023 74.4485 13.3523C74.207 13.5994 73.9087 13.7926 73.5536 13.9318C73.1985 14.0682 72.7994 14.1364 72.3562 14.1364Z" fill="#F9F9F9"/>
|
|
6
6
|
</svg>
|
|
7
7
|
|
|
8
|
-
`},components:[{tag:"Breadcrumb",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}}]}]};export{config as default};
|
|
8
|
+
`},components:[{tag:"Breadcrumb",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}}]}],locales:{editor:{en:{home:"Home"}}}};export{config as default};
|
|
@@ -11,4 +11,4 @@ let CollectionBannerSettings=[{id:"setting",controls:[{id:"layout",type:"layout"
|
|
|
11
11
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.08398 6C5.08398 6.82843 5.75556 7.5 6.58398 7.5H11.584C12.4124 7.5 13.084 6.82843 13.084 6V5C13.084 4.17157 12.4124 3.5 11.584 3.5L6.58398 3.5C5.75556 3.5 5.08398 4.17157 5.08398 5V6ZM6.58398 6.5C6.30784 6.5 6.08398 6.27614 6.08398 6V5C6.08398 4.72386 6.30784 4.5 6.58398 4.5L11.584 4.5C11.8601 4.5 12.084 4.72386 12.084 5V6C12.084 6.27614 11.8601 6.5 11.584 6.5H6.58398Z" fill="currentColor"/>
|
|
12
12
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.58398 12.5C2.75556 12.5 2.08398 11.8284 2.08398 11L2.08398 10C2.08398 9.17157 2.75556 8.5 3.58398 8.5H11.584C12.4124 8.5 13.084 9.17157 13.084 10V11C13.084 11.8284 12.4124 12.5 11.584 12.5L3.58398 12.5ZM3.08398 11C3.08398 11.2761 3.30784 11.5 3.58398 11.5L11.584 11.5C11.8601 11.5 12.084 11.2761 12.084 11V10C12.084 9.72386 11.8601 9.5 11.584 9.5L3.58398 9.5C3.30784 9.5 3.08398 9.72386 3.08398 10L3.08398 11Z" fill="currentColor"/>
|
|
13
13
|
</svg>
|
|
14
|
-
`,iconName:"gp-justify-content-bottom"}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-align-top",tooltip:"Align top"},{label:"Center",value:"center",iconName:"gp-align-center-vertical",tooltip:"Align center"},{label:"End",value:"end",iconName:"gp-align-bottom",tooltip:"Align bottom"},{label:"Between",value:"space-between",tooltip:"Distribute vertical spacing",iconName:"gp-justify-content-space-between"}],devices:{desktop:{default:"start"}}},{id:"content-dimension-group",type:"group",label:"Content Dimension",controls:[{id:"fixedMode",type:"toggle",default:!1},{id:"height",label:"Height",type:"input:unit",units:["px"],placeholder:"Auto",devices:{desktop:{default:"500px"}},info:"Full Width: To set Hero Banner full width, first you drag & drop a Section element from left sidebar, then make it full-width, after that you put your Hero Banner inside Section you have created."},{id:"contentPosition",label:"Content Position",type:"option:value",options:[{label:"Start",value:"top",tooltip:"Align top",iconName:"gp-align-top"},{label:"Center",value:"center",tooltip:"Align vertical center",iconName:"gp-align-center-vertical"},{label:"End",value:"bottom",tooltip:"Align bottom",iconName:"gp-align-bottom"}],default:"center"},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0},tablet:{default:!0},mobile:{default:!0}}},{id:"width",type:"input:unit",label:"Width",min:0,units:["px"],devices:{desktop:{default:"1200px"}}},{id:"verticalGutter",type:"input:slider",units:["px"],min:0,max:120,ignoreMax:!0,label:"Spacing",devices:{desktop:{default:"32px"}}}]},{id:"image-info",label:"Image",type:"group",controls:[{id:"background",type:"background-image",ignoreReRender:!0,isBackground:!0,isHideClear:!0,devices:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-lifestyle-2_large.png",width:1920,height:900},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},compoDefaultValue:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-lifestyle-2_large.png",width:1920,height:900},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}},{id:"hoverEffect",label:"Hover effect",type:"option:value",options:[{label:"None",value:"none"},{label:"Zoom",value:"zoom"}],default:"none"},{id:"hoverScale",type:"input:slider",label:"Zoom Value",units:["%"],min:100,max:200,step:1,default:110,useOnlyUnitInit:!0,isNumber:!0},{id:"hoverDuration",type:"input:unit",label:"Zoom Time",min:0,units:["s"],default:"0.5",useOnlyUnitInit:!0,isNumber:!0}]},{id:"overlay",label:"Overlay",type:"group",controls:[{id:"overlayOpacity",label:"Opacity",type:"input:slider",min:0,max:100,units:["%"],step:1,default:{normal:"20%"},state:{normal:!0,hover:!0}},{id:"overlayColor",label:"Color",type:"color-picker-v2",default:{normal:"#121212"},state:{normal:!0,hover:!0}}]}]}];export{CollectionBannerSettings};
|
|
14
|
+
`,iconName:"gp-justify-content-bottom"}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-align-top",tooltip:"Align top"},{label:"Center",value:"center",iconName:"gp-align-center-vertical",tooltip:"Align center"},{label:"End",value:"end",iconName:"gp-align-bottom",tooltip:"Align bottom"},{label:"Between",value:"space-between",tooltip:"Distribute vertical spacing",iconName:"gp-justify-content-space-between"}],devices:{desktop:{default:"start"}}},{id:"content-dimension-group",type:"group",label:"Content Dimension",controls:[{id:"fixedMode",type:"toggle",default:!1},{id:"height",label:"Height",type:"input:unit",units:["px"],placeholder:"Auto",devices:{desktop:{default:"500px"}},info:"Full Width: To set Hero Banner full width, first you drag & drop a Section element from left sidebar, then make it full-width, after that you put your Hero Banner inside Section you have created."},{id:"contentPosition",label:"Content Position",type:"option:value",options:[{label:"Start",value:"top",tooltip:"Align top",iconName:"gp-align-top"},{label:"Center",value:"center",tooltip:"Align vertical center",iconName:"gp-align-center-vertical"},{label:"End",value:"bottom",tooltip:"Align bottom",iconName:"gp-align-bottom"}],default:"center"},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0},tablet:{default:!0},mobile:{default:!0}}},{id:"width",type:"input:unit",label:"Width",min:0,units:["px"],devices:{desktop:{default:"1200px"}}},{id:"verticalGutter",type:"input:slider",units:["px"],min:0,max:120,ignoreMax:!0,label:"Spacing",devices:{desktop:{default:"32px"}}}]},{id:"image-info",label:"Image",type:"group",controls:[{id:"background",type:"background-image",ignoreReRender:!0,isBackground:!0,isHideClear:!0,fixedDisplayValue:"Collection image",devices:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-lifestyle-2_large.png",width:1920,height:900},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},compoDefaultValue:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-lifestyle-2_large.png",width:1920,height:900},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}},{id:"hoverEffect",label:"Hover effect",type:"option:value",options:[{label:"None",value:"none"},{label:"Zoom",value:"zoom"}],default:"none"},{id:"hoverScale",type:"input:slider",label:"Zoom Value",units:["%"],min:100,max:200,step:1,default:110,useOnlyUnitInit:!0,isNumber:!0},{id:"hoverDuration",type:"input:unit",label:"Zoom Time",min:0,units:["s"],default:"0.5",useOnlyUnitInit:!0,isNumber:!0}]},{id:"overlay",label:"Overlay",type:"group",controls:[{id:"overlayOpacity",label:"Opacity",type:"input:slider",min:0,max:100,units:["%"],step:1,default:{normal:"20%"},state:{normal:!0,hover:!0}},{id:"overlayColor",label:"Color",type:"color-picker-v2",default:{normal:"#121212"},state:{normal:!0,hover:!0}}]}]}];export{CollectionBannerSettings};
|
|
@@ -2,4 +2,4 @@ import{SettingUIV2 as o}from"./configs/row/ui-v2.js";import{SettingUIV1 as t}fro
|
|
|
2
2
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 3.00391C1.83579 3.00391 1.5 3.33969 1.5 3.75391C1.5 4.16812 1.83579 4.50391 2.25 4.50391L21.7514 4.50391C22.1656 4.50391 22.5014 4.16812 22.5014 3.75391C22.5014 3.33969 22.1656 3.00391 21.7514 3.00391H2.25ZM2.25 19.4988C1.83579 19.4988 1.5 19.8346 1.5 20.2488C1.5 20.663 1.83579 20.9988 2.25 20.9988H9.67911C10.0933 20.9988 10.4291 20.663 10.4291 20.2488C10.4291 19.8346 10.0933 19.4988 9.67911 19.4988H2.25ZM1.5 9.25207C1.5 8.83786 1.83579 8.50207 2.25 8.50207L9.67911 8.50207C10.0933 8.50207 10.4291 8.83786 10.4291 9.25207C10.4291 9.66628 10.0933 10.0021 9.67911 10.0021L2.25 10.0021C1.83579 10.0021 1.5 9.66628 1.5 9.25207ZM2.25 14.0012C1.83579 14.0012 1.5 14.337 1.5 14.7512C1.5 15.1654 1.83579 15.5012 2.25 15.5012L9.67911 15.5012C10.0933 15.5012 10.4291 15.1654 10.4291 14.7512C10.4291 14.337 10.0933 14.0012 9.67911 14.0012L2.25 14.0012ZM13.5725 9.25207C13.5725 8.83786 13.9083 8.50207 14.3225 8.50207H21.7516C22.1658 8.50207 22.5016 8.83786 22.5016 9.25207C22.5016 9.66628 22.1658 10.0021 21.7516 10.0021H14.3225C13.9083 10.0021 13.5725 9.66628 13.5725 9.25207ZM14.3225 14.0012C13.9083 14.0012 13.5725 14.337 13.5725 14.7512C13.5725 15.1654 13.9083 15.5012 14.3225 15.5012H21.7516C22.1658 15.5012 22.5016 15.1654 22.5016 14.7512C22.5016 14.337 22.1658 14.0012 21.7516 14.0012H14.3225Z" fill="white"/>
|
|
4
4
|
</svg>
|
|
5
|
-
`,settings:e,ui:t,uiV2:o,presets:i,editorConfigs:{placeholder:{notAppendLeftRight:!0},slots:{children:!0},toolbar:{parent:!0}},rootOverride:{"spacing-setting":{desktop:{margin:{bottom:
|
|
5
|
+
`,settings:e,ui:t,uiV2:o,presets:i,editorConfigs:{placeholder:{notAppendLeftRight:!0},slots:{children:!0},toolbar:{parent:!0}},rootOverride:{advanced:{"spacing-setting":{desktop:{margin:{bottom:"16px"}}}},styles:{width:{desktop:"default"}}}};export{config as default};
|
|
@@ -9,4 +9,4 @@ import{APP_CONFIG as A}from"../components/common/helpers.js";import{ShopPayInsta
|
|
|
9
9
|
</defs>
|
|
10
10
|
</svg>
|
|
11
11
|
<span class="preset-item-title"> Shop Pay Installments</span>
|
|
12
|
-
</div>`,config={tag:A.id,label:A.label,icon,settings:t,ui:[{type:"group",label:{en:""},options:{labelSpacing:"small"},controls:[{type:"control",label:{en:""},layout:"vertical",setting:{id:"setupGuide"}}]}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"shop-pay-installment",name:{en:"Shop Pay Installments"},icon:{desktop:icon},components:[{tag:"ShopPayInstallments",advanced:{margin:{desktop:{bottom:"var(--g-s-l)"}}}}]}]};export{config as default};
|
|
12
|
+
</div>`,config={tag:A.id,label:A.label,icon,settings:t,ui:[{type:"group",label:{en:""},options:{labelSpacing:"small"},controls:[{type:"control",label:{en:""},layout:"vertical",setting:{id:"setupGuide"}}]}],editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:"shop-pay-installment",name:{en:"Shop Pay Installments"},icon:{desktop:icon},components:[{tag:"ShopPayInstallments",advanced:{margin:{desktop:{bottom:"var(--g-s-l)"}}}}]}]};export{config as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-staging.
|
|
3
|
+
"version": "2.0.0-staging.914",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gem-sdk/core": "2.0.0-staging.
|
|
28
|
+
"@gem-sdk/core": "2.0.0-staging.912",
|
|
29
29
|
"@gem-sdk/styles": "2.0.0-staging.886",
|
|
30
30
|
"@gem-sdk/system": "2.0.0-staging.711",
|
|
31
31
|
"tsup": "^8.5.0",
|