@gem-sdk/components 2.0.0-staging.953 → 2.0.0-staging.955
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/ArticleReadMore.js +1 -1
- package/dist/cjs/article/components/ArticleReadMore.liquid.js +3 -3
- package/dist/cjs/article/components/ArticleTitle.js +1 -1
- package/dist/cjs/article/components/ArticleTitle.liquid.js +4 -4
- package/dist/cjs/article/settings/configs/article-read-more/settings.js +2 -2
- package/dist/cjs/article/settings/configs/article-read-more/ui-v2.js +1 -1
- package/dist/cjs/article/settings/configs/article-title/settings.js +1 -1
- package/dist/cjs/button/common/helpers.js +1 -1
- package/dist/cjs/button/common/styles.js +17 -17
- package/dist/cjs/cart/components/Cart.js +1 -1
- package/dist/cjs/form/settings/submit-button/configs/settings.js +1 -1
- package/dist/cjs/form/settings/submit-button/configs/ui-v2.js +1 -1
- package/dist/cjs/header/components/kind/basic/DesktopMenu.js +1 -1
- package/dist/cjs/header/components/kind/basic/DesktopMenuItem.js +1 -1
- package/dist/cjs/header/components/kind/basic/MenuMobileItem.js +1 -1
- package/dist/cjs/header/components/kind/basic/MobileMenu.js +1 -1
- package/dist/cjs/header/components/kind/basic/index.js +1 -1
- package/dist/cjs/header/components/kind/modern/index.js +1 -1
- package/dist/cjs/header/settings/configs/settings.js +1 -1
- package/dist/cjs/header/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/icon-list-v2/common/styles.js +1 -1
- package/dist/cjs/icon-list-v2/settings/configs/settings.js +1 -1
- package/dist/cjs/icon-list-v2/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/tab/common/styles.js +1 -1
- package/dist/cjs/text/common/styles.js +1 -1
- package/dist/esm/article/components/ArticleReadMore.js +1 -1
- package/dist/esm/article/components/ArticleReadMore.liquid.js +3 -3
- package/dist/esm/article/components/ArticleTitle.js +1 -1
- package/dist/esm/article/components/ArticleTitle.liquid.js +5 -5
- package/dist/esm/article/settings/configs/article-read-more/settings.js +2 -2
- package/dist/esm/article/settings/configs/article-read-more/ui-v2.js +1 -1
- package/dist/esm/article/settings/configs/article-title/settings.js +1 -1
- package/dist/esm/button/common/helpers.js +1 -1
- package/dist/esm/button/common/styles.js +16 -16
- package/dist/esm/cart/components/Cart.js +1 -1
- package/dist/esm/form/settings/submit-button/configs/settings.js +1 -1
- package/dist/esm/form/settings/submit-button/configs/ui-v2.js +1 -1
- package/dist/esm/header/components/kind/basic/DesktopMenu.js +1 -1
- package/dist/esm/header/components/kind/basic/DesktopMenuItem.js +1 -1
- package/dist/esm/header/components/kind/basic/MenuMobileItem.js +1 -1
- package/dist/esm/header/components/kind/basic/MobileMenu.js +1 -1
- package/dist/esm/header/components/kind/basic/index.js +1 -1
- package/dist/esm/header/components/kind/modern/index.js +1 -1
- package/dist/esm/header/settings/configs/settings.js +1 -1
- package/dist/esm/header/settings/configs/ui-v2.js +1 -1
- package/dist/esm/icon-list-v2/common/styles.js +1 -1
- package/dist/esm/icon-list-v2/settings/configs/settings.js +1 -1
- package/dist/esm/icon-list-v2/settings/configs/ui-v2.js +1 -1
- package/dist/esm/tab/common/styles.js +1 -1
- package/dist/esm/text/common/styles.js +1 -1
- package/dist/types/index.d.ts +17 -11
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{itemControlTemplate as e}from"./items.js";let IconListSettings=[{id:"setting",controls:[{id:"childItem",label:"Item management",type:"child-item",default:["Icon 1","Icon 2"],childTemplate:e,isDisabledDuplicateIncrease:!0},{id:"translate",type:"input",default:"childItem"},{id:"textTypo",type:"typography-v2",default:{type:"paragraph-1",attrs:{color:"text-1"}},ignoreReRender:!0,hiddenSetting:{textAlign:!0,textShadow:!0}},{id:"iconSvg",type:"icon",label:"Icon Parent",hideInput:!0,info:"Choose from list or paste any SVG icon",default:'<svg data-name="check-circle-filled" height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414807831544168"><path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"></path></svg>'},{id:"iconWidth",type:"input:stepper",label:"Icon Width",devices:{desktop:{default:24}},min:0},{id:"childConfig",type:"child-icon",label:"",default:[,,,].fill('<svg height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414807831544168"><path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"></path></svg>')},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{padding:{type:"custom",top:"0px",bottom:"0px",left:"0px",right:"0px"}}}},hiddenShowMore:!0,hiddenSettings:["shape","width","height","gap"]},{id:"iconType",type:"option:illustration",enableTooltip:!0,label:"Icon type",options:[{label:"Matching icons",value:"matching",svgName:"gp-item-list-icon-matching"},{label:"Different icons",value:"different",svgName:"gp-item-list-icon-different"}],default:"matching"}]},{id:"style",controls:[{id:"background",type:"background-media",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"}}},compoDefaultValue:{desktop:{default:{type:"color",color:"#DDDDDD",image:{src:"https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/",width:1200,height:480},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}},{id:"iconColor",type:"color-picker-v2",label:"Icon color",default:"text-1",compoDefaultValue:"text-1"},{id:"backgroundColor",type:"color-picker-v2",label:"Background color",default:"transparent",compoDefaultValue:"bg-1"},{id:"iconBorder",label:"Border",type:"border-v2",default:{},compoDefaultValue:{border:"solid",width:"1px 1px 1px 1px",position:"bottom",color:"line-3",isCustom:!0,borderWidth:"Mixed"}},{id:"iconRounded",type:"corner-v2",label:"Border Radius",default:{radiusType:"none"},compoDefaultValue:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}},{id:"horizontalSpacing",label:"Horizontal Spacing",type:"input:slider",units:["px"],min:0,max:40,ignoreMax:!0,devices:{desktop:{default:"8px"}}},{id:"position",type:"option:illustration",enableTooltip:!0,label:"Position",options:[{label:"Align center",value:"center",type:"align-pos",svgName:"gp-align-position-center"},{label:"Align top",value:"baseline",type:"align-pos",svgName:"gp-align-position-top"}],devices:{desktop:{default:"center"},tablet:{default:"center"},mobile:{default:"center"}}},{id:"contentBoxWidth",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0}],devices:{desktop:{default:"100%"}}},{id:"contentBoxPadding",label:"Padding",type:"padding-v2",devices:{desktop:{}},compoDefaultValue:{desktop:{default:{top:"16px",bottom:"16px",left:"16px",right:"16px"}}}},{id:"panelAlign",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"verticalSpacing",type:"input:slider",label:"Item gap",units:["px"],min:0,max:40,ignoreMax:!0,devices:{desktop:{default:"12px"}}}]}];export{IconListSettings};
|
|
1
|
+
import{itemControlTemplate as e}from"./items.js";let IconListSettings=[{id:"setting",controls:[{id:"childItem",label:"Item management",type:"child-item",default:["Icon 1","Icon 2"],childTemplate:e,isDisabledDuplicateIncrease:!0},{id:"translate",type:"input",default:"childItem"},{id:"textTypo",type:"typography-v2",default:{type:"paragraph-1",attrs:{color:"text-1"}},ignoreReRender:!0,hiddenSetting:{textAlign:!0,textShadow:!0}},{id:"iconSvg",type:"icon",label:"Icon Parent",hideInput:!0,info:"Choose from list or paste any SVG icon",default:'<svg data-name="check-circle-filled" height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414807831544168"><path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"></path></svg>'},{id:"iconWidth",type:"input:stepper",label:"Icon Width",devices:{desktop:{default:24}},min:0},{id:"childConfig",type:"child-icon",label:"",default:[,,,].fill('<svg height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414807831544168"><path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"></path></svg>')},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{padding:{type:"custom",top:"0px",bottom:"0px",left:"0px",right:"0px"}}}},hiddenShowMore:!0,hiddenSettings:["shape","width","height","gap"]},{id:"iconType",type:"option:illustration",enableTooltip:!0,label:"Icon type",options:[{label:"Matching icons",value:"matching",svgName:"gp-item-list-icon-matching"},{label:"Different icons",value:"different",svgName:"gp-item-list-icon-different"}],default:"matching"}]},{id:"style",controls:[{id:"background",type:"background-media",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"}}},compoDefaultValue:{desktop:{default:{type:"color",color:"#DDDDDD",image:{src:"https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/",width:1200,height:480},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}},{id:"iconColor",type:"color-picker-v2",label:"Icon color",default:"text-1",compoDefaultValue:"text-1"},{id:"backgroundColor",type:"color-picker-v2",label:"Background color",default:"transparent",compoDefaultValue:"bg-1"},{id:"iconBorder",label:"Border",type:"border-v2",default:{},compoDefaultValue:{border:"solid",width:"1px 1px 1px 1px",position:"bottom",color:"line-3",isCustom:!0,borderWidth:"Mixed"}},{id:"iconRounded",type:"corner-v2",label:"Border Radius",default:{radiusType:"none"},compoDefaultValue:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}},{id:"horizontalSpacing",label:"Horizontal Spacing",type:"input:slider",units:["px"],min:0,max:40,ignoreMax:!0,devices:{desktop:{default:"8px"}}},{id:"position",type:"option:illustration",enableTooltip:!0,label:"Position",options:[{label:"Align center",value:"center",type:"align-pos",svgName:"gp-align-position-center"},{label:"Align top",value:"baseline",type:"align-pos",svgName:"gp-align-position-top"}],devices:{desktop:{default:"center"},tablet:{default:"center"},mobile:{default:"center"}}},{id:"contentBoxWidth",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0}],devices:{desktop:{default:"100%"}}},{id:"contentBoxPadding",label:"Padding",type:"padding-v2",devices:{desktop:{}},compoDefaultValue:{desktop:{default:{top:"16px",bottom:"16px",left:"16px",right:"16px"}}}},{id:"contentBoxBorder",label:"Border",type:"border",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{border:"solid",width:"1px 1px 1px 1px",position:"bottom",color:"line-3",isCustom:!0,borderWidth:"Mixed"}}}},{id:"contentBoxRounded",type:"corner-v2",label:"Border Radius",devices:{desktop:{default:{radiusType:"none"}}},compoDefaultValue:{desktop:{default:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}}},{id:"contentBoxShadow",label:"Shadow",type:"shadow-v2",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}},{id:"panelAlign",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"verticalSpacing",type:"input:slider",label:"Item gap",units:["px"],min:0,max:40,ignoreMax:!0,devices:{desktop:{default:"12px"}}}]}];export{IconListSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let SettingUIV2=[{label:{en:"Item management"},controls:[{label:{en:"Order"},setting:{id:"childItem"}}]},{label:{en:"Icon style"},controls:[{label:{en:"Icon type "},setting:{id:"iconType"}},{conditionDisplay:'iconType === "matching"',label:{en:"Icon"},setting:{id:"iconSvg"}},{conditionDisplay:'iconType === "different"',layout:"vertical",setting:{id:"childConfig"}},{label:{en:"Icon color"},setting:{id:"iconColor"}},{label:{en:"Icon size"},setting:{id:"iconWidth"}}],moreSettings:{type:"collapse",controls:[{label:{en:"Position"},setting:{id:"position"}},{label:{en:"Padding"},controlConfig:{id:"padding",type:"padding-v2",linkWithSetting:{name:"globalSize",field:"padding"},compoDefaultValue:{default:{top:"4px",right:"4px",bottom:"4px",left:"4px"}}}},{label:{en:"Background"},setting:{id:"backgroundColor"}},{label:{en:"Border"},setting:{id:"iconBorder"}},{label:{en:"Corner"},setting:{id:"iconRounded"}}]}},{label:{en:"Text"},controls:[{setting:{id:"textTypo"},layout:"vertical"}]},{label:{en:"Item spacing"},controls:[{label:{en:"Gap"},setting:{id:"verticalSpacing"}}]},{label:{en:"Item style"},controls:[{label:{en:"Icon & text gap"},setting:{id:"horizontalSpacing"}}]},{label:{en:"Background"},controls:[{setting:{id:"background"},layout:"vertical"}]},{label:{en:"Size"},controls:[{label:{en:"Width"},setting:{id:"contentBoxWidth"},layout:"horizontal"},{label:{en:"Padding"},setting:{id:"contentBoxPadding"},layout:"horizontal"},{label:{en:"Arrange"},setting:{id:"panelAlign"}}]},{label:{en:"Shape"},controls:[{label:{en:"Border"},setting:{id:"
|
|
1
|
+
let SettingUIV2=[{label:{en:"Item management"},controls:[{label:{en:"Order"},setting:{id:"childItem"}}]},{label:{en:"Icon style"},controls:[{label:{en:"Icon type "},setting:{id:"iconType"}},{conditionDisplay:'iconType === "matching"',label:{en:"Icon"},setting:{id:"iconSvg"}},{conditionDisplay:'iconType === "different"',layout:"vertical",setting:{id:"childConfig"}},{label:{en:"Icon color"},setting:{id:"iconColor"}},{label:{en:"Icon size"},setting:{id:"iconWidth"}}],moreSettings:{type:"collapse",controls:[{label:{en:"Position"},setting:{id:"position"}},{label:{en:"Padding"},controlConfig:{id:"padding",type:"padding-v2",linkWithSetting:{name:"globalSize",field:"padding"},compoDefaultValue:{default:{top:"4px",right:"4px",bottom:"4px",left:"4px"}}}},{label:{en:"Background"},setting:{id:"backgroundColor"}},{label:{en:"Border"},setting:{id:"iconBorder"}},{label:{en:"Corner"},setting:{id:"iconRounded"}}]}},{label:{en:"Text"},controls:[{setting:{id:"textTypo"},layout:"vertical"}]},{label:{en:"Item spacing"},controls:[{label:{en:"Gap"},setting:{id:"verticalSpacing"}}]},{label:{en:"Item style"},controls:[{label:{en:"Icon & text gap"},setting:{id:"horizontalSpacing"}}]},{label:{en:"Background"},controls:[{setting:{id:"background"},layout:"vertical"}]},{label:{en:"Size"},controls:[{label:{en:"Width"},setting:{id:"contentBoxWidth"},layout:"horizontal"},{label:{en:"Padding"},setting:{id:"contentBoxPadding"},layout:"horizontal"},{label:{en:"Arrange"},setting:{id:"panelAlign"}}]},{label:{en:"Shape"},controls:[{label:{en:"Border"},setting:{id:"contentBoxBorder"}},{label:{en:"Corner"},setting:{id:"contentBoxRounded"}},{label:{en:"Shadow"},setting:{id:"contentBoxShadow"}}]},{controls:[{label:{en:"Align"},setting:{id:"align"},options:{labelVariant:"primary",fullWidth:!0,disableMessage:"Horizontal alignment is disabled when the width is set to 100% or greater"},conditionEnable:'!contentBoxWidth?.includes("%") || (parseInt(contentBoxWidth) < 100 && contentBoxWidth?.includes("%"))'}]}];export{SettingUIV2};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getStyleBackgroundByDevice as e,getGradientBgrStyleByDevice as t,makeStyleResponsive as
|
|
1
|
+
import{getStyleBackgroundByDevice as e,getGradientBgrStyleByDevice as t,makeStyleResponsive as l,makeWidth as r,makeStyle as o,getSingleColorVariable as a,getGlobalColorStateStyle as i,handleConvertBorderStyle as n,handleConvertBorderWidth as b,handleConvertBorderColor as c,filterHoverVariables as m}from"@gem-sdk/core";import{filterTruthyStyles as s}from"../../helpers.js";import{getStyleWidthByPositionResponsive as p}from"./helpers.js";let getStyleWrapper=(o,a)=>{let{background:i,containWidth:n,align:b}=o??{},c={...a,...e(i),...t(i,{desktop:!0,tablet:!0,mobile:!0}),...l("w",r(n)),...l("as",b)};return s(c)},getTabListStyle=e=>{let{panelAlign:t}=e??{},r={...l("jc",t),...l("w",{desktop:"100%",tablet:"100%",mobile:"100%"})};return s(r)},getItemStyle=(e,t)=>{let{labelColor:r,labelBgColor:g,borderTab:d,labelAlign:y,enableActiveEffect:S,panelWidth:v,position:h,panelFullWidth:u,labelWidth:w}=e??{},j={},T=!0===S||void 0===S;return j={...j=t&&T?{...l("jc",y),...o({c:a(r?.active??r?.normal),bgc:a(g?.active??g?.normal),bs:d?.active?.border??d?.normal?.border,bw:d?.active?.width??d?.normal?.width,bc:a(d?.active?.color??d?.normal?.color)})}:{...l("jc",y),...i("c",r),...i("bgc",g),...n(d),...b(d),...c(d)},...l("w",p({position:h,panelFullWidth:u,panelWidth:v,labelWidth:w}))},e?.enableHoverEffect||(j=m(j)),s(j)},getTabParentListStyle=e=>{let{panelAlign:t,panelAlignVertical:r}=e??{},o={...l("jc",t),...l("ai",r)};return s(o)},getContainContentStyle=()=>{let e={};return o({w:"100%"})&&(e={...o({w:"100%"})}),s(e)},getTabItemStyle=(e,t)=>{let l={...e,...o({h:"100%",v:t?"visible":"hidden",pos:t?"relative":"absolute"})};return s(l)};export{getContainContentStyle,getItemStyle,getStyleWrapper,getTabItemStyle,getTabListStyle,getTabParentListStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyle as e,makeStyleResponsive as t,makeGlobalSize as r,getSingleColorVariable as o,composeBorderResponsive as l,composeRadiusResponsive as i,getResponsiveStyleShadowWithoutState as n,getStyleShadow as a,makeLineClamp as d,getGlobalColorStyle as
|
|
1
|
+
import{makeStyle as e,makeStyleResponsive as t,makeGlobalSize as r,getSingleColorVariable as o,composeBorderResponsive as l,composeRadiusResponsive as i,getResponsiveStyleShadowWithoutState as n,getStyleShadow as a,makeLineClamp as d,getGlobalColorStyle as h,getGlobalColorStateStyle as s,composeTypographyStyle as y,getStyleBackgroundByDevice as c,getGradientBgrStyleByDevice as p,filterHoverVariables as u}from"@gem-sdk/core";import{formatThickness as g}from"./helpers.js";function filterTruthyStyles(e){return Object.fromEntries(Object.entries(e||{}).filter(([,e])=>!!e))}let getStyle=(r,o)=>{let l={...e({mr:r?.spacing,mb:r?.spacing}),...t("ta",r?.align),...o,"--dynamic-source-color":"#F4F4F4"};return filterTruthyStyles(l)},getContainerStyle=(e,r)=>{let{tagWidth:o}=r??{},l={...t("jc",e?.align),...o};return filterTruthyStyles(l)},getTextStyle=(S,w)=>{let f=r(w?.globalSize),m=[S?.lineThrough&&"line-through",S?.typo?.attrs?.underline&&"underline"].filter(Boolean),x={...f?.width?.["--w"]?f.width:{"--w":"100%"},...e({tdc:o(S?.lineColor?.normal),tdt:g(S?.thickness)}),...l(S?.shapeBorder),...i(S?.shapeRounded),...n(S?.shapeBoxShadow,"box-shadow",S?.shapeBoxShadow),...a({value:S?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:S?.typo?.custom?.hasShadowText}),...t("ta",S?.textAlign),...t("line-clamp",d(S?.lineClamp,S?.hasLineClamp)),...S?.textColor?h(S.textColor):s("c",S?.color),...y(S?.typo),"word-break":"break-word",...c(w?.background),...f.padding,...p(w?.background),overflow:"hidden",...S?.opacityPrice&&{opacity:`${S?.opacityPrice}%`},...e({tdl:m.join(" ")})};return S?.enableHoverEffect?filterTruthyStyles(x):u(x)},getTextStyleInline=e=>{let t={...y(e?.typo),"word-break":"break-word",overflow:"hidden"};return filterTruthyStyles(t)};export{getContainerStyle,getStyle,getTextStyle,getTextStyleInline};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -351,9 +351,7 @@ type ArticleTitleSettingProps = TextSettingProps & {
|
|
|
351
351
|
enableHoverTextColor?: boolean;
|
|
352
352
|
openNewTab?: boolean;
|
|
353
353
|
};
|
|
354
|
-
type ArticleTitleProps = BasePropsWrap<ArticleTitleSettingProps, TextStyleProps
|
|
355
|
-
enableHoverTextColor?: boolean;
|
|
356
|
-
}>;
|
|
354
|
+
type ArticleTitleProps = BasePropsWrap<ArticleTitleSettingProps, TextStyleProps>;
|
|
357
355
|
type ArticleExcerptProps = BasePropsWrap<TextSettingProps & {
|
|
358
356
|
linkArticle?: boolean;
|
|
359
357
|
}, TextStyleProps>;
|
|
@@ -406,6 +404,7 @@ type ArticleReadMoreStyleProps = TextStyleProps & ButtonStyleProps & {
|
|
|
406
404
|
alignText?: ObjectDevices<AlignProp>;
|
|
407
405
|
background?: ObjectDevices<BackgroundMedia>;
|
|
408
406
|
iconSpacing?: ObjectDevices<string>;
|
|
407
|
+
enableHoverEffectText?: boolean;
|
|
409
408
|
};
|
|
410
409
|
type ArticleReadMoreProps = BasePropsWrap<ArticleReadMoreSettingProps, ArticleReadMoreStyleProps> & {
|
|
411
410
|
className?: string;
|
|
@@ -932,12 +931,13 @@ type CartSettingProps = {
|
|
|
932
931
|
svgIcon?: string;
|
|
933
932
|
iconOnly?: boolean;
|
|
934
933
|
label?: string;
|
|
934
|
+
enableHoverEffect?: boolean;
|
|
935
935
|
};
|
|
936
936
|
type CartStyleProps = {
|
|
937
937
|
iconColor?: StateProp<ColorValueType>;
|
|
938
938
|
};
|
|
939
939
|
type CartSidebarSettingProps = {
|
|
940
|
-
setting: Pick<CartSettingProps, 'svgIcon' | 'iconOnly' | 'label'>;
|
|
940
|
+
setting: Pick<CartSettingProps, 'svgIcon' | 'iconOnly' | 'label' | 'enableHoverEffect'>;
|
|
941
941
|
styles: Pick<CartStyleProps, 'iconColor'>;
|
|
942
942
|
};
|
|
943
943
|
type CartProps = BasePropsWrap<CartSettingProps, CartStyleProps> & {
|
|
@@ -1546,7 +1546,7 @@ type OriginalSettingProps$6 = {
|
|
|
1546
1546
|
label?: string;
|
|
1547
1547
|
translate?: string;
|
|
1548
1548
|
};
|
|
1549
|
-
type SubmitButtonSettingProps = OriginalSettingProps$6 & Pick<ButtonSettingProps, 'iconAlign' | 'iconSvg' | 'iconVisible' | 'shouldClearSpace'>;
|
|
1549
|
+
type SubmitButtonSettingProps = OriginalSettingProps$6 & Pick<ButtonSettingProps, 'iconAlign' | 'iconSvg' | 'iconVisible' | 'shouldClearSpace' | 'enableHoverEffect'>;
|
|
1550
1550
|
type SubmitButtonStyleProps = ButtonStyleProps;
|
|
1551
1551
|
type SubmitButtonProps = BasePropsWrap<SubmitButtonSettingProps, SubmitButtonStyleProps> & {
|
|
1552
1552
|
children: React.ReactNode;
|
|
@@ -1693,6 +1693,7 @@ type MenuItemProps = {
|
|
|
1693
1693
|
closeMenu?: () => void;
|
|
1694
1694
|
menuBg?: ObjectDevices<ColorValueType>;
|
|
1695
1695
|
headerBg?: ObjectDevices<ColorValueType>;
|
|
1696
|
+
enableHoverEffect?: boolean;
|
|
1696
1697
|
};
|
|
1697
1698
|
type HeaderOriginalSettingProps = {
|
|
1698
1699
|
logo?: NonNullable<ImageProps['setting']>['srcSet'];
|
|
@@ -1704,6 +1705,8 @@ type HeaderOriginalSettingProps = {
|
|
|
1704
1705
|
cartIcon?: string;
|
|
1705
1706
|
openMode?: 'popup' | 'page';
|
|
1706
1707
|
buyNow?: boolean;
|
|
1708
|
+
cardEnableHoverEffect?: boolean;
|
|
1709
|
+
itemEnableHoverEffect?: boolean;
|
|
1707
1710
|
};
|
|
1708
1711
|
type HeaderSettingProps = HeaderOriginalSettingProps & Pick<MenuItemProps, 'arrow' | 'menu'>;
|
|
1709
1712
|
type HeaderStyleProps = {
|
|
@@ -1732,15 +1735,15 @@ declare const BasicHeader: ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btn
|
|
|
1732
1735
|
|
|
1733
1736
|
declare const ModernHeader: (props: HeaderCommonProps) => React.JSX.Element;
|
|
1734
1737
|
|
|
1735
|
-
type Props$1 = Pick<HeaderCommonProps, 'menu' | 'arrow' | 'typo' | 'typography' | 'menuTextColor' | 'height' | 'menuBg' | 'textColor'> & {
|
|
1738
|
+
type Props$1 = Pick<HeaderCommonProps, 'menu' | 'arrow' | 'typo' | 'typography' | 'menuTextColor' | 'height' | 'menuBg' | 'textColor' | 'itemEnableHoverEffect'> & {
|
|
1736
1739
|
className?: string;
|
|
1737
1740
|
};
|
|
1738
|
-
declare const MobileMenu: ({ menu, typography, typo, arrow, menuTextColor, menuBg, textColor, className, }: Props$1) => React.JSX.Element;
|
|
1741
|
+
declare const MobileMenu: ({ menu, typography, typo, arrow, menuTextColor, menuBg, textColor, className, itemEnableHoverEffect, }: Props$1) => React.JSX.Element;
|
|
1739
1742
|
|
|
1740
|
-
type Props = Pick<HeaderCommonProps, 'menu' | 'arrow' | 'typography' | 'typo' | 'headerBg' | 'menuTextColor' | 'height' | 'menuBg' | 'textColor'> & {
|
|
1743
|
+
type Props = Pick<HeaderCommonProps, 'menu' | 'arrow' | 'typography' | 'typo' | 'headerBg' | 'menuTextColor' | 'height' | 'menuBg' | 'textColor' | 'itemEnableHoverEffect'> & {
|
|
1741
1744
|
className?: string;
|
|
1742
1745
|
};
|
|
1743
|
-
declare const DesktopMenu: ({ menu, height, arrow, textColor, menuTextColor, typography, typo, headerBg, menuBg, className, }: Props) => React.JSX.Element;
|
|
1746
|
+
declare const DesktopMenu: ({ menu, height, arrow, textColor, menuTextColor, typography, typo, headerBg, menuBg, className, itemEnableHoverEffect, }: Props) => React.JSX.Element;
|
|
1744
1747
|
|
|
1745
1748
|
declare const headerSetting: {
|
|
1746
1749
|
Header: _gem_sdk_core.ComponentSetting<HeaderProps>;
|
|
@@ -1908,6 +1911,9 @@ type IconListStyleProps = {
|
|
|
1908
1911
|
panelAlign?: ObjectDevices<AlignProp>;
|
|
1909
1912
|
contentBoxWidth?: ObjectDevices<string | number>;
|
|
1910
1913
|
contentBoxPadding?: ObjectDevices<PaddingType$1>;
|
|
1914
|
+
contentBoxBorder?: ObjectDevices<Border>;
|
|
1915
|
+
contentBoxRounded?: ObjectDevices<CornerRadius>;
|
|
1916
|
+
contentBoxShadow?: ObjectDevices<ShadowProps>;
|
|
1911
1917
|
};
|
|
1912
1918
|
type IconListProps = BasePropsWrap<IconListSettingProps, IconListStyleProps> & {
|
|
1913
1919
|
pageContext?: PageContext;
|
|
@@ -6832,10 +6838,10 @@ declare const _default$2: {
|
|
|
6832
6838
|
Header: ({ builderAttrs, builderProps, style, setting, styles, children }: HeaderProps) => React.JSX.Element | null;
|
|
6833
6839
|
BasicHeader: ({ btnBgColor, btnBorder, btnRounded, btnSpacing, btnTextColor, btnTypography, btnType, btnWidth, openMode, buyNow, breakpoint, ...props }: HeaderCommonProps) => React.JSX.Element;
|
|
6834
6840
|
ModernHeader: (props: HeaderCommonProps) => React.JSX.Element;
|
|
6835
|
-
MobileMenu: ({ menu, typography, typo, arrow, menuTextColor, menuBg, textColor, className, }: Pick<HeaderCommonProps, "typo" | "textColor" | "typography" | "height" | "menu" | "arrow" | "menuTextColor" | "menuBg"> & {
|
|
6841
|
+
MobileMenu: ({ menu, typography, typo, arrow, menuTextColor, menuBg, textColor, className, itemEnableHoverEffect, }: Pick<HeaderCommonProps, "typo" | "textColor" | "typography" | "height" | "menu" | "arrow" | "menuTextColor" | "menuBg" | "itemEnableHoverEffect"> & {
|
|
6836
6842
|
className?: string | undefined;
|
|
6837
6843
|
}) => React.JSX.Element;
|
|
6838
|
-
DesktopMenu: ({ menu, height, arrow, textColor, menuTextColor, typography, typo, headerBg, menuBg, className, }: Pick<HeaderCommonProps, "typo" | "textColor" | "typography" | "height" | "menu" | "arrow" | "menuTextColor" | "menuBg" | "headerBg"> & {
|
|
6844
|
+
DesktopMenu: ({ menu, height, arrow, textColor, menuTextColor, typography, typo, headerBg, menuBg, className, itemEnableHoverEffect, }: Pick<HeaderCommonProps, "typo" | "textColor" | "typography" | "height" | "menu" | "arrow" | "menuTextColor" | "menuBg" | "headerBg" | "itemEnableHoverEffect"> & {
|
|
6839
6845
|
className?: string | undefined;
|
|
6840
6846
|
}) => React.JSX.Element;
|
|
6841
6847
|
Heading: React.FC<HeadingProps>;
|
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.955",
|
|
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.955",
|
|
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",
|