@gem-sdk/components 12.0.0-staging.34 → 12.0.0-staging.35
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/estimate-delivery/common/styles.js +1 -1
- package/dist/cjs/estimate-delivery/components/EstimateDate.js +1 -1
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +2 -2
- package/dist/esm/estimate-delivery/common/styles.js +1 -1
- package/dist/esm/estimate-delivery/components/EstimateDate.js +1 -1
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +3 -3
- package/dist/types/index.d.ts +10 -34
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const getStyleEstimateDate=(t,e)=>({align:t?.align,typo:t?.[e]});exports.getStyleEstimateDate=getStyleEstimateDate;
|
|
1
|
+
"use strict";const getStyleEstimateDate=(t,e)=>({align:t?.align,typo:t?.[e]}),getTextStyles=t=>({hasTextShadowNotState:t?.hasTextShadowNotState,typography:t?.typography,typo:t?.typo,textAlign:t?.textAlign,lineClamp:t?.lineClamp,hasLineClamp:t?.hasLineClamp,hasTextShadow:t?.hasTextShadow,textShadow:t?.textShadow,align:t?.align});exports.getStyleEstimateDate=getStyleEstimateDate,exports.getTextStyles=getTextStyles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),system=require("@gem-sdk/system"),Text=require("../../text/components/Text.js"),classes=require("../common/classes.js"),helpers=require("../common/helpers.js");const EstimateDate=({setting:e,styles:s,builderAttrs:t,style:r,builderProps:a,advanced:l,children:c})=>{let i=system.createClass({"estimate-date-container":!0}),
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),system=require("@gem-sdk/system"),Text=require("../../text/components/Text.js"),classes=require("../common/classes.js"),helpers=require("../common/helpers.js"),styles=require("../common/styles.js");const EstimateDate=({setting:e,styles:s,builderAttrs:t,style:r,builderProps:a,advanced:l,children:c})=>{let i=system.createClass({"estimate-date-container":!0}),m=classes.getClassAdvanced({setting:e,advanced:l,type:"React"}),n=helpers.getNewSetting({type:"React",styles:s,setting:e,builderProps:a});return jsxRuntime.jsx(Text.default,{builderProps:a,builderAttrs:t,advanced:{...l,cssClass:m},style:r,styles:styles.getTextStyles(s),setting:n,className:i,children:c})};exports.default=EstimateDate;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers$1=require("../../helpers.js"),system=require("@gem-sdk/system"),Text_liquid=require("../../text/components/Text.liquid.js"),classes=require("../common/classes.js"),helpers=require("../common/helpers.js");const EstimateDate=({setting:e={},styles:s,builderAttrs:t,style:r,builderProps:a,advanced:i,isText:l,pageContext:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers$1=require("../../helpers.js"),system=require("@gem-sdk/system"),Text_liquid=require("../../text/components/Text.liquid.js"),classes=require("../common/classes.js"),helpers=require("../common/helpers.js"),styles=require("../common/styles.js");const EstimateDate=({setting:e={},styles:s,builderAttrs:t,style:r,builderProps:a,advanced:i,isText:l,pageContext:c})=>{let d=system.createClass({"estimate-date-container":!0}),o=classes.getClassAdvanced({setting:e,advanced:i,type:"Liquid"}),n=helpers.getNewSetting({type:"Liquid",styles:s,setting:e,builderProps:a,pageContext:c});return core.template`
|
|
2
2
|
<gp-estimate-date>
|
|
3
|
-
${Text_liquid.default({builderProps:a,builderAttrs:t,advanced:{...i,cssClass:
|
|
3
|
+
${Text_liquid.default({builderProps:a,builderAttrs:t,advanced:{...i,cssClass:o},style:r,styles:styles.getTextStyles(s),setting:n,className:d,isText:l,pageContext:c,elementAttrs:{"setting-estimate-date":encodeURIComponent(JSON.stringify(e))}})}
|
|
4
4
|
</gp-estimate-date>
|
|
5
5
|
${core.RenderIf(core.isLocalEnv,`<script ${helpers$1.getSettingPreloadData('class="gps-link" delay',"src")}="{{ 'gp-estimate-date-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${helpers$1.getSettingPreloadData('class="gps-link" delay',"src")}="${core.baseAssetURL}/assets-v2/gp-estimate-date-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
6
6
|
`};exports.default=EstimateDate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let getStyleEstimateDate=(t,e)=>({align:t?.align,typo:t?.[e]});export{getStyleEstimateDate};
|
|
1
|
+
let getStyleEstimateDate=(t,e)=>({align:t?.align,typo:t?.[e]}),getTextStyles=t=>({hasTextShadowNotState:t?.hasTextShadowNotState,typography:t?.typography,typo:t?.typo,textAlign:t?.textAlign,lineClamp:t?.lineClamp,hasLineClamp:t?.hasLineClamp,hasTextShadow:t?.hasTextShadow,textShadow:t?.textShadow,align:t?.align});export{getStyleEstimateDate,getTextStyles};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsx as t}from"react/jsx-runtime";import{createClass as e}from"@gem-sdk/system";import s from"../../text/components/Text.js";import{getClassAdvanced as m}from"../common/classes.js";import{getNewSetting as r}from"../common/helpers.js";let EstimateDate=({setting:
|
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{createClass as e}from"@gem-sdk/system";import s from"../../text/components/Text.js";import{getClassAdvanced as m}from"../common/classes.js";import{getNewSetting as r}from"../common/helpers.js";import{getTextStyles as o}from"../common/styles.js";let EstimateDate=({setting:a,styles:i,builderAttrs:c,style:l,builderProps:n,advanced:p,children:d})=>{let f=e({"estimate-date-container":!0}),y=m({setting:a,advanced:p,type:"React"}),j=r({type:"React",styles:i,setting:a,builderProps:n});return t(s,{builderProps:n,builderAttrs:c,advanced:{...p,cssClass:y},style:l,styles:o(i),setting:j,className:f,children:d})};export{EstimateDate as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as
|
|
1
|
+
import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as m}from"@gem-sdk/core";import{getSettingPreloadData as r}from"../../helpers.js";import{createClass as i}from"@gem-sdk/system";import a from"../../text/components/Text.liquid.js";import{getClassAdvanced as o}from"../common/classes.js";import{getNewSetting as p}from"../common/helpers.js";import{getTextStyles as d}from"../common/styles.js";let EstimateDate=({setting:l={},styles:c,builderAttrs:n,style:f,builderProps:g,advanced:y,isText:j,pageContext:u})=>{let E=i({"estimate-date-container":!0}),S=o({setting:l,advanced:y,type:"Liquid"}),v=p({type:"Liquid",styles:c,setting:l,builderProps:g,pageContext:u});return e`
|
|
2
2
|
<gp-estimate-date>
|
|
3
|
-
${
|
|
3
|
+
${a({builderProps:g,builderAttrs:n,advanced:{...y,cssClass:S},style:f,styles:d(c),setting:v,className:E,isText:j,pageContext:u,elementAttrs:{"setting-estimate-date":encodeURIComponent(JSON.stringify(l))}})}
|
|
4
4
|
</gp-estimate-date>
|
|
5
|
-
${t(s,`<script ${
|
|
5
|
+
${t(s,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-estimate-date-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${m}/assets-v2/gp-estimate-date-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
6
6
|
`};export{EstimateDate as default};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1535,45 +1535,14 @@ type EstimateStyleProps = {
|
|
|
1535
1535
|
shapeRounded?: ObjectDevices<CornerRadius>;
|
|
1536
1536
|
shapeBoxShadow?: ObjectDevices<ShadowProps>;
|
|
1537
1537
|
};
|
|
1538
|
-
type
|
|
1539
|
-
children: React.ReactNode;
|
|
1540
|
-
};
|
|
1541
|
-
type EstimateDateProps = BasePropsWrap<{
|
|
1542
|
-
htmlTag?: number;
|
|
1543
|
-
text?: string;
|
|
1544
|
-
translate?: string;
|
|
1545
|
-
globalSize?: ObjectDevices<SizeSettingGlobal>;
|
|
1546
|
-
background?: ObjectDevices<BackgroundMedia>;
|
|
1547
|
-
enableCustomText?: boolean;
|
|
1548
|
-
customText?: string;
|
|
1549
|
-
minEstimate?: number;
|
|
1550
|
-
maxEstimate?: number;
|
|
1551
|
-
estimateTime?: number;
|
|
1552
|
-
typeFormat?: string;
|
|
1553
|
-
customFormat?: string;
|
|
1554
|
-
typeEstimate?: string;
|
|
1555
|
-
ifOutOfStock?: string;
|
|
1556
|
-
}, {
|
|
1557
|
-
textShadowNotState?: ShadowProps;
|
|
1558
|
-
hasTextShadowNotState?: boolean;
|
|
1559
|
-
typography?: TypographySetting;
|
|
1560
|
-
typoCustom?: TypographySettingV2;
|
|
1561
|
-
typoDate?: TypographySettingV2;
|
|
1562
|
-
typo?: TypographySettingV2;
|
|
1563
|
-
textAlign?: ObjectDevices<AlignProp>;
|
|
1564
|
-
lineClamp?: ObjectDevices<number>;
|
|
1565
|
-
hasLineClamp?: ObjectDevices<boolean>;
|
|
1566
|
-
hasTextShadow?: StateProp<boolean>;
|
|
1567
|
-
textShadow?: StateProp<ShadowProps>;
|
|
1568
|
-
align?: ObjectDevices<AlignProp>;
|
|
1569
|
-
}> & Omit<React.ComponentPropsWithoutRef<'h1'>, 'children'> & {
|
|
1538
|
+
type EstimateDateProps = BasePropsWrap<EstimateSettingProps, EstimateStyleProps> & Omit<React.ComponentPropsWithoutRef<'h1'>, 'children'> & {
|
|
1570
1539
|
children: React.ReactNode;
|
|
1571
1540
|
};
|
|
1572
1541
|
|
|
1573
1542
|
declare const EstimateDate$1: React.FC<EstimateDateProps>;
|
|
1574
1543
|
|
|
1575
1544
|
declare const estimateDeliverySetting: {
|
|
1576
|
-
EstimateDate: _gem_sdk_core.ComponentSetting<
|
|
1545
|
+
EstimateDate: _gem_sdk_core.ComponentSetting<EstimateDateProps>;
|
|
1577
1546
|
};
|
|
1578
1547
|
|
|
1579
1548
|
type RootProps$1 = {
|
|
@@ -6512,6 +6481,13 @@ declare const EstimateDate: ({ setting, styles, builderAttrs, style, builderProp
|
|
|
6512
6481
|
hasTextShadow?: Partial<Record<_gem_sdk_core.StateType, boolean>> | undefined;
|
|
6513
6482
|
textShadow?: Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ShadowProps>> | undefined;
|
|
6514
6483
|
align?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.AlignProp>> | undefined;
|
|
6484
|
+
padding?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.SizeSettingGlobal>> | undefined;
|
|
6485
|
+
border?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.Border>>>> | undefined;
|
|
6486
|
+
rounded?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.CornerRadius>>>> | undefined;
|
|
6487
|
+
boxShadow?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ShadowProps>>>> | undefined;
|
|
6488
|
+
shapeBorder?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.Border>> | undefined;
|
|
6489
|
+
shapeRounded?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.CornerRadius>> | undefined;
|
|
6490
|
+
shapeBoxShadow?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.ShadowProps>> | undefined;
|
|
6515
6491
|
}, Record<string, any>> & {
|
|
6516
6492
|
builderAttrs?: Record<string, any> | undefined;
|
|
6517
6493
|
style?: React.CSSProperties | undefined;
|
|
@@ -7818,7 +7794,7 @@ declare const _default$1: {
|
|
|
7818
7794
|
Section: _gem_sdk_core.ComponentSetting<RowProps>;
|
|
7819
7795
|
Row: _gem_sdk_core.ComponentSetting<RowProps>;
|
|
7820
7796
|
Col: _gem_sdk_core.ComponentSetting<ColProps>;
|
|
7821
|
-
EstimateDate: _gem_sdk_core.ComponentSetting<
|
|
7797
|
+
EstimateDate: _gem_sdk_core.ComponentSetting<EstimateDateProps>;
|
|
7822
7798
|
Dialog: _gem_sdk_core.ComponentSetting<DialogProps$1>;
|
|
7823
7799
|
Coupon: _gem_sdk_core.ComponentSetting<CouponProps>;
|
|
7824
7800
|
Countdown: _gem_sdk_core.ComponentSetting<CountdownProps>;
|