@gem-sdk/components 2.0.0-dev.887 → 2.0.0-dev.888

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.
@@ -5,7 +5,7 @@
5
5
  `,settings:[{id:"setting",controls:[{id:"label",label:"Text",type:"input",default:"View more"},{id:"translate",type:"input",default:"label"},{id:"iconVisible",label:"Icon Visible",type:"toggle",default:!1},{id:"iconSvg",label:"SVG Icon",type:"icon",default:`<svg style="width: 100%; height: 100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
6
6
  <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z" />
7
7
  </svg>
8
- `,placeholder:'E.g. <svg fill="currentColor"...'},{id:"iconAlign",label:"Icon Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],default:"left"},{id:"shouldClearSpace",label:"",type:"toggle",default:!1},{id:"target",type:"segment",options:[{label:"Current",value:"current"},{label:"New Tab",value:"new-tab"}],default:"current"}]},{id:"style",controls:[{id:"borderBtn",type:"border",label:"Border",emptyOnClear:!0,default:{normal:{borderType:"none",border:"none",isCustom:!1,borderWidth:"1px",width:"1px 1px 1px 1px"},hover:{isCustom:!1,borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"colorpicker",label:"Text Color",default:{normal:"text-3"},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1,hover:!1},state:{normal:!0,hover:!0}},{id:"boxShadowBtn",type:"boxShadow",label:"Button Shadow",hideOnState:{normal:!0,hover:!0},default:{normal:{type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90}},state:{normal:!0,hover:!0}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"small"}},state:{hover:!0,normal:!0}},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}},{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1"},hiddenSetting:{color:!0},ignoreReRender:!0},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],default:"default"},{id:"btnSpacing",label:"Inside space",type:"size",default:{type:"medium"},ignoreReRender:!0},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"width",type:"input:unit",label:"Width",placeholder:"Auto",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:void 0}}},{id:"iconSizeAuto",type:"toggle",label:"Icon Auto Size",default:!0},{id:"size",label:"Size Icon",type:"select",options:[{label:"Large",value:"1.2em"},{label:"Medium",value:"1em"},{label:"Small",value:"0.8em"}],devices:{desktop:{default:"1em"}}},{id:"iconDimension",type:"range",label:"Size",hide:!0,min:0,max:100,step:1,units:["px","em","rem"],devices:{desktop:{default:"24px"}}},{id:"spacing",label:"Spacing Icon",type:"input:unit",units:["px","em","rem","%"],placeholder:"Auto",default:"8px"},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"120px",height:"Auto",padding:{type:"medium",top:"8px",bottom:"8px",left:"24px",right:"24px"}}}},settingConfig:{width:{displayOptions:["full","auto","small","large","medium"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}},height:{displayOptions:["auto","small","large","medium"],sizeConfig:{small:"28px",medium:"36px",large:"44px"}}},hiddenSettings:["shape","gap"]}]}],ui:[{type:"group",controls:[{type:"control",label:{en:"Icon"},options:{label:"large"},setting:{id:"iconVisible"}},{type:"group",condition:"iconVisible == true",controls:[{type:"control",label:{en:""},layout:"vertical",setting:{id:"iconSvg"}},{type:"control",label:{en:"Position"},setting:{id:"iconAlign"}}]}]},{type:"control",label:{en:"Open in"},setting:{id:"target"}},{type:"group",label:{en:"Size"},controls:[{type:"control",setting:{id:"globalSize"},layout:"vertical"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"normal"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"normal"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"normal"}},{condition:"hasBoxShadowBtn.normal == true",type:"control",layout:"vertical",setting:{id:"boxShadowBtn",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"hover"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"hover"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"hover"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"hover"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"hover"}},{type:"control",condition:"hasBoxShadowBtn.hover == true",layout:"vertical",setting:{id:"boxShadowBtn",state:"hover"}}]}]}]},{type:"group",label:{en:"Text"},controls:[{type:"control",layout:"vertical",setting:{id:"typo"}}]},{type:"control",label:{en:"Align"},condition:"globalSize.width !== '100%'",options:{label:"large"},setting:{id:"align"}}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"product-view-more",name:{en:"Product View More"},icon:{desktop:`<svg width="96" height="36" viewBox="0 0 96 36" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ `,placeholder:'E.g. <svg fill="currentColor"...'},{id:"iconAlign",label:"Icon Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],default:"left"},{id:"shouldClearSpace",label:"",type:"toggle",default:!1},{id:"target",type:"segment",options:[{label:"Current",value:"current"},{label:"New Tab",value:"new-tab"}],default:"current"}]},{id:"style",controls:[{id:"borderBtn",type:"border",label:"Border",emptyOnClear:!0,default:{normal:{borderType:"none",border:"none",isCustom:!1,borderWidth:"1px",width:"1px 1px 1px 1px"},hover:{isCustom:!1,borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"colorpicker",label:"Text Color",default:{normal:"text-3"},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1,hover:!1},state:{normal:!0,hover:!0}},{id:"boxShadowBtn",type:"boxShadow",label:"Button Shadow",hideOnState:{normal:!0,hover:!0},default:{normal:{type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90}},state:{normal:!0,hover:!0}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"small"}},state:{hover:!0,normal:!0}},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}},{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1"},hiddenSetting:{color:!0},ignoreReRender:!0},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],default:"default"},{id:"btnSpacing",label:"Inside space",type:"size",default:{type:"medium"},ignoreReRender:!0},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"width",type:"input:unit",label:"Width",placeholder:"Auto",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:void 0}}},{id:"iconSizeAuto",type:"toggle",label:"Icon Auto Size",default:!0},{id:"size",label:"Size Icon",type:"select",options:[{label:"Large",value:"1.2em"},{label:"Medium",value:"1em"},{label:"Small",value:"0.8em"}],devices:{desktop:{default:"1em"}}},{id:"iconDimension",type:"range",label:"Size",hide:!0,min:0,max:100,step:1,units:["px","em","rem"],devices:{desktop:{default:"24px"}}},{id:"spacing",label:"Spacing Icon",type:"input:unit",units:["px","em","rem","%"],placeholder:"Auto",default:"8px"},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"Auto",height:"Auto",padding:{type:"medium",top:"8px",bottom:"8px",left:"24px",right:"24px"}}}},settingConfig:{width:{displayOptions:["full","auto","small","large","medium"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}},height:{displayOptions:["auto","small","large","medium"],sizeConfig:{small:"28px",medium:"36px",large:"44px"}}},hiddenSettings:["shape","gap"]}]}],ui:[{type:"group",controls:[{type:"control",label:{en:"Icon"},options:{label:"large"},setting:{id:"iconVisible"}},{type:"group",condition:"iconVisible == true",controls:[{type:"control",label:{en:""},layout:"vertical",setting:{id:"iconSvg"}},{type:"control",label:{en:"Position"},setting:{id:"iconAlign"}}]}]},{type:"control",label:{en:"Open in"},setting:{id:"target"}},{type:"group",label:{en:"Size"},controls:[{type:"control",setting:{id:"globalSize"},layout:"vertical"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"normal"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"normal"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"normal"}},{condition:"hasBoxShadowBtn.normal == true",type:"control",layout:"vertical",setting:{id:"boxShadowBtn",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"hover"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"hover"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"hover"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"hover"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"hover"}},{type:"control",condition:"hasBoxShadowBtn.hover == true",layout:"vertical",setting:{id:"boxShadowBtn",state:"hover"}}]}]}]},{type:"group",label:{en:"Text"},controls:[{type:"control",layout:"vertical",setting:{id:"typo"}}]},{type:"control",label:{en:"Align"},condition:"globalSize.width !== '100%'",options:{label:"large"},setting:{id:"align"}}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"product-view-more",name:{en:"Product View More"},icon:{desktop:`<svg width="96" height="36" viewBox="0 0 96 36" fill="none" xmlns="http://www.w3.org/2000/svg">
9
9
  <rect width="96" height="36" rx="3" fill="#424242"/>
10
10
  <path d="M19.4616 13.2727L22.0526 20.6193H22.1548L24.7457 13.2727H25.8537L22.6491 22H21.5582L18.3537 13.2727H19.4616ZM27.0767 22V15.4545H28.0824V22H27.0767ZM27.5881 14.3636C27.392 14.3636 27.223 14.2969 27.081 14.1634C26.9418 14.0298 26.8722 13.8693 26.8722 13.6818C26.8722 13.4943 26.9418 13.3338 27.081 13.2003C27.223 13.0668 27.392 13 27.5881 13C27.7841 13 27.9517 13.0668 28.0909 13.2003C28.233 13.3338 28.304 13.4943 28.304 13.6818C28.304 13.8693 28.233 14.0298 28.0909 14.1634C27.9517 14.2969 27.7841 14.3636 27.5881 14.3636ZM32.6687 22.1364C32.038 22.1364 31.494 21.9972 31.0366 21.7188C30.582 21.4375 30.2312 21.0455 29.984 20.5426C29.7397 20.0369 29.6175 19.4489 29.6175 18.7784C29.6175 18.108 29.7397 17.517 29.984 17.0057C30.2312 16.4915 30.5749 16.0909 31.0153 15.804C31.4585 15.5142 31.9755 15.3693 32.5664 15.3693C32.9073 15.3693 33.244 15.4261 33.5763 15.5398C33.9087 15.6534 34.2113 15.8381 34.484 16.0938C34.7567 16.3466 34.9741 16.6818 35.136 17.0994C35.2979 17.517 35.3789 18.0312 35.3789 18.642V19.0682H30.3335V18.1989H34.3562C34.3562 17.8295 34.2823 17.5 34.1346 17.2102C33.9897 16.9205 33.7823 16.6918 33.5124 16.5241C33.2454 16.3565 32.93 16.2727 32.5664 16.2727C32.1658 16.2727 31.8192 16.3722 31.5266 16.571C31.2369 16.767 31.0138 17.0227 30.8576 17.3381C30.7013 17.6534 30.6232 17.9915 30.6232 18.3523V18.9318C30.6232 19.4261 30.7085 19.8452 30.8789 20.1889C31.0522 20.5298 31.2923 20.7898 31.5991 20.9688C31.9059 21.1449 32.2624 21.233 32.6687 21.233C32.9329 21.233 33.1715 21.196 33.3846 21.1222C33.6005 21.0455 33.7866 20.9318 33.9428 20.7812C34.0991 20.6278 34.2198 20.4375 34.305 20.2102L35.2766 20.483C35.1744 20.8125 35.0025 21.1023 34.761 21.3523C34.5195 21.5994 34.2212 21.7926 33.8661 21.9318C33.511 22.0682 33.1119 22.1364 32.6687 22.1364ZM38.3917 22L36.3974 15.4545H37.4542L38.869 20.4659H38.9371L40.3349 15.4545H41.4087L42.7894 20.4489H42.8576L44.2724 15.4545H45.3292L43.3349 22H42.3462L40.9144 16.9716H40.8121L39.3803 22H38.3917ZM50.0337 22V15.4545H51.0053V16.4773H51.0906C51.2269 16.1278 51.4471 15.8565 51.7511 15.6634C52.055 15.4673 52.4201 15.3693 52.8462 15.3693C53.2781 15.3693 53.6374 15.4673 53.9244 15.6634C54.2141 15.8565 54.44 16.1278 54.6019 16.4773H54.6701C54.8377 16.1392 55.0891 15.8707 55.4244 15.6719C55.7596 15.4702 56.1616 15.3693 56.6303 15.3693C57.2156 15.3693 57.6942 15.5526 58.0664 15.919C58.4386 16.2827 58.6246 16.8494 58.6246 17.6193V22H57.619V17.6193C57.619 17.1364 57.4869 16.7912 57.2227 16.5838C56.9585 16.3764 56.6474 16.2727 56.2894 16.2727C55.8292 16.2727 55.4727 16.4119 55.2198 16.6903C54.967 16.9659 54.8406 17.3153 54.8406 17.7386V22H53.8178V17.517C53.8178 17.1449 53.6971 16.8452 53.4556 16.6179C53.2141 16.3878 52.9031 16.2727 52.5224 16.2727C52.261 16.2727 52.0167 16.3423 51.7894 16.4815C51.565 16.6207 51.3832 16.8139 51.244 17.0611C51.1076 17.3054 51.0394 17.5881 51.0394 17.9091V22H50.0337ZM63.1225 22.1364C62.5316 22.1364 62.0131 21.9957 61.5671 21.7145C61.1239 21.4332 60.7773 21.0398 60.5273 20.5341C60.2802 20.0284 60.1566 19.4375 60.1566 18.7614C60.1566 18.0795 60.2802 17.4844 60.5273 16.9759C60.7773 16.4673 61.1239 16.0724 61.5671 15.7912C62.0131 15.5099 62.5316 15.3693 63.1225 15.3693C63.7134 15.3693 64.2305 15.5099 64.6737 15.7912C65.1197 16.0724 65.4663 16.4673 65.7134 16.9759C65.9634 17.4844 66.0884 18.0795 66.0884 18.7614C66.0884 19.4375 65.9634 20.0284 65.7134 20.5341C65.4663 21.0398 65.1197 21.4332 64.6737 21.7145C64.2305 21.9957 63.7134 22.1364 63.1225 22.1364ZM63.1225 21.233C63.5714 21.233 63.9407 21.1179 64.2305 20.8878C64.5202 20.6577 64.7347 20.3551 64.8739 19.9801C65.0131 19.6051 65.0827 19.1989 65.0827 18.7614C65.0827 18.3239 65.0131 17.9162 64.8739 17.5384C64.7347 17.1605 64.5202 16.8551 64.2305 16.6222C63.9407 16.3892 63.5714 16.2727 63.1225 16.2727C62.6737 16.2727 62.3043 16.3892 62.0146 16.6222C61.7248 16.8551 61.5103 17.1605 61.3711 17.5384C61.2319 17.9162 61.1623 18.3239 61.1623 18.7614C61.1623 19.1989 61.2319 19.6051 61.3711 19.9801C61.5103 20.3551 61.7248 20.6577 62.0146 20.8878C62.3043 21.1179 62.6737 21.233 63.1225 21.233ZM67.6236 22V15.4545H68.5952V16.4432H68.6634C68.7827 16.1193 68.9986 15.8565 69.3111 15.6548C69.6236 15.4531 69.9759 15.3523 70.3679 15.3523C70.4418 15.3523 70.5341 15.3537 70.6449 15.3565C70.7557 15.3594 70.8395 15.3636 70.8963 15.3693V16.392C70.8622 16.3835 70.7841 16.3707 70.6619 16.3537C70.5426 16.3338 70.4162 16.3239 70.2827 16.3239C69.9645 16.3239 69.6804 16.3906 69.4304 16.5241C69.1832 16.6548 68.9872 16.8366 68.8423 17.0696C68.7003 17.2997 68.6293 17.5625 68.6293 17.858V22H67.6236ZM74.6335 22.1364C74.0028 22.1364 73.4588 21.9972 73.0014 21.7188C72.5469 21.4375 72.196 21.0455 71.9489 20.5426C71.7045 20.0369 71.5824 19.4489 71.5824 18.7784C71.5824 18.108 71.7045 17.517 71.9489 17.0057C72.196 16.4915 72.5398 16.0909 72.9801 15.804C73.4233 15.5142 73.9403 15.3693 74.5312 15.3693C74.8722 15.3693 75.2088 15.4261 75.5412 15.5398C75.8736 15.6534 76.1761 15.8381 76.4489 16.0938C76.7216 16.3466 76.9389 16.6818 77.1009 17.0994C77.2628 17.517 77.3438 18.0312 77.3438 18.642V19.0682H72.2983V18.1989H76.321C76.321 17.8295 76.2472 17.5 76.0994 17.2102C75.9545 16.9205 75.7472 16.6918 75.4773 16.5241C75.2102 16.3565 74.8949 16.2727 74.5312 16.2727C74.1307 16.2727 73.7841 16.3722 73.4915 16.571C73.2017 16.767 72.9787 17.0227 72.8224 17.3381C72.6662 17.6534 72.5881 17.9915 72.5881 18.3523V18.9318C72.5881 19.4261 72.6733 19.8452 72.8438 20.1889C73.017 20.5298 73.2571 20.7898 73.5639 20.9688C73.8707 21.1449 74.2273 21.233 74.6335 21.233C74.8977 21.233 75.1364 21.196 75.3494 21.1222C75.5653 21.0455 75.7514 20.9318 75.9077 20.7812C76.0639 20.6278 76.1847 20.4375 76.2699 20.2102L77.2415 20.483C77.1392 20.8125 76.9673 21.1023 76.7259 21.3523C76.4844 21.5994 76.1861 21.7926 75.831 21.9318C75.4759 22.0682 75.0767 22.1364 74.6335 22.1364Z" fill="#AAAAAA"/>
11
11
  </svg>
@@ -5,7 +5,7 @@ let config={tag:"ProductViewMore",label:"Product View More",icon:`<svg width="96
5
5
  `,settings:[{id:"setting",controls:[{id:"label",label:"Text",type:"input",default:"View more"},{id:"translate",type:"input",default:"label"},{id:"iconVisible",label:"Icon Visible",type:"toggle",default:!1},{id:"iconSvg",label:"SVG Icon",type:"icon",default:`<svg style="width: 100%; height: 100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">
6
6
  <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z" />
7
7
  </svg>
8
- `,placeholder:'E.g. <svg fill="currentColor"...'},{id:"iconAlign",label:"Icon Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],default:"left"},{id:"shouldClearSpace",label:"",type:"toggle",default:!1},{id:"target",type:"segment",options:[{label:"Current",value:"current"},{label:"New Tab",value:"new-tab"}],default:"current"}]},{id:"style",controls:[{id:"borderBtn",type:"border",label:"Border",emptyOnClear:!0,default:{normal:{borderType:"none",border:"none",isCustom:!1,borderWidth:"1px",width:"1px 1px 1px 1px"},hover:{isCustom:!1,borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"colorpicker",label:"Text Color",default:{normal:"text-3"},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1,hover:!1},state:{normal:!0,hover:!0}},{id:"boxShadowBtn",type:"boxShadow",label:"Button Shadow",hideOnState:{normal:!0,hover:!0},default:{normal:{type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90}},state:{normal:!0,hover:!0}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"small"}},state:{hover:!0,normal:!0}},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}},{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1"},hiddenSetting:{color:!0},ignoreReRender:!0},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],default:"default"},{id:"btnSpacing",label:"Inside space",type:"size",default:{type:"medium"},ignoreReRender:!0},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"width",type:"input:unit",label:"Width",placeholder:"Auto",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:void 0}}},{id:"iconSizeAuto",type:"toggle",label:"Icon Auto Size",default:!0},{id:"size",label:"Size Icon",type:"select",options:[{label:"Large",value:"1.2em"},{label:"Medium",value:"1em"},{label:"Small",value:"0.8em"}],devices:{desktop:{default:"1em"}}},{id:"iconDimension",type:"range",label:"Size",hide:!0,min:0,max:100,step:1,units:["px","em","rem"],devices:{desktop:{default:"24px"}}},{id:"spacing",label:"Spacing Icon",type:"input:unit",units:["px","em","rem","%"],placeholder:"Auto",default:"8px"},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"120px",height:"Auto",padding:{type:"medium",top:"8px",bottom:"8px",left:"24px",right:"24px"}}}},settingConfig:{width:{displayOptions:["full","auto","small","large","medium"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}},height:{displayOptions:["auto","small","large","medium"],sizeConfig:{small:"28px",medium:"36px",large:"44px"}}},hiddenSettings:["shape","gap"]}]}],ui:[{type:"group",controls:[{type:"control",label:{en:"Icon"},options:{label:"large"},setting:{id:"iconVisible"}},{type:"group",condition:"iconVisible == true",controls:[{type:"control",label:{en:""},layout:"vertical",setting:{id:"iconSvg"}},{type:"control",label:{en:"Position"},setting:{id:"iconAlign"}}]}]},{type:"control",label:{en:"Open in"},setting:{id:"target"}},{type:"group",label:{en:"Size"},controls:[{type:"control",setting:{id:"globalSize"},layout:"vertical"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"normal"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"normal"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"normal"}},{condition:"hasBoxShadowBtn.normal == true",type:"control",layout:"vertical",setting:{id:"boxShadowBtn",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"hover"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"hover"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"hover"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"hover"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"hover"}},{type:"control",condition:"hasBoxShadowBtn.hover == true",layout:"vertical",setting:{id:"boxShadowBtn",state:"hover"}}]}]}]},{type:"group",label:{en:"Text"},controls:[{type:"control",layout:"vertical",setting:{id:"typo"}}]},{type:"control",label:{en:"Align"},condition:"globalSize.width !== '100%'",options:{label:"large"},setting:{id:"align"}}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"product-view-more",name:{en:"Product View More"},icon:{desktop:`<svg width="96" height="36" viewBox="0 0 96 36" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ `,placeholder:'E.g. <svg fill="currentColor"...'},{id:"iconAlign",label:"Icon Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],default:"left"},{id:"shouldClearSpace",label:"",type:"toggle",default:!1},{id:"target",type:"segment",options:[{label:"Current",value:"current"},{label:"New Tab",value:"new-tab"}],default:"current"}]},{id:"style",controls:[{id:"borderBtn",type:"border",label:"Border",emptyOnClear:!0,default:{normal:{borderType:"none",border:"none",isCustom:!1,borderWidth:"1px",width:"1px 1px 1px 1px"},hover:{isCustom:!1,borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"colorpicker",label:"Text Color",default:{normal:"text-3"},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1,hover:!1},state:{normal:!0,hover:!0}},{id:"boxShadowBtn",type:"boxShadow",label:"Button Shadow",hideOnState:{normal:!0,hover:!0},default:{normal:{type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90}},state:{normal:!0,hover:!0}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"small"}},state:{hover:!0,normal:!0}},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}},{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1"},hiddenSetting:{color:!0},ignoreReRender:!0},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],default:"default"},{id:"btnSpacing",label:"Inside space",type:"size",default:{type:"medium"},ignoreReRender:!0},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"width",type:"input:unit",label:"Width",placeholder:"Auto",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:void 0}}},{id:"iconSizeAuto",type:"toggle",label:"Icon Auto Size",default:!0},{id:"size",label:"Size Icon",type:"select",options:[{label:"Large",value:"1.2em"},{label:"Medium",value:"1em"},{label:"Small",value:"0.8em"}],devices:{desktop:{default:"1em"}}},{id:"iconDimension",type:"range",label:"Size",hide:!0,min:0,max:100,step:1,units:["px","em","rem"],devices:{desktop:{default:"24px"}}},{id:"spacing",label:"Spacing Icon",type:"input:unit",units:["px","em","rem","%"],placeholder:"Auto",default:"8px"},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"Auto",height:"Auto",padding:{type:"medium",top:"8px",bottom:"8px",left:"24px",right:"24px"}}}},settingConfig:{width:{displayOptions:["full","auto","small","large","medium"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}},height:{displayOptions:["auto","small","large","medium"],sizeConfig:{small:"28px",medium:"36px",large:"44px"}}},hiddenSettings:["shape","gap"]}]}],ui:[{type:"group",controls:[{type:"control",label:{en:"Icon"},options:{label:"large"},setting:{id:"iconVisible"}},{type:"group",condition:"iconVisible == true",controls:[{type:"control",label:{en:""},layout:"vertical",setting:{id:"iconSvg"}},{type:"control",label:{en:"Position"},setting:{id:"iconAlign"}}]}]},{type:"control",label:{en:"Open in"},setting:{id:"target"}},{type:"group",label:{en:"Size"},controls:[{type:"control",setting:{id:"globalSize"},layout:"vertical"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"normal"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"normal"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"normal"}},{condition:"hasBoxShadowBtn.normal == true",type:"control",layout:"vertical",setting:{id:"boxShadowBtn",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"hover"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"hover"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"hover"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"hover"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"hover"}},{type:"control",condition:"hasBoxShadowBtn.hover == true",layout:"vertical",setting:{id:"boxShadowBtn",state:"hover"}}]}]}]},{type:"group",label:{en:"Text"},controls:[{type:"control",layout:"vertical",setting:{id:"typo"}}]},{type:"control",label:{en:"Align"},condition:"globalSize.width !== '100%'",options:{label:"large"},setting:{id:"align"}}],editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"product-view-more",name:{en:"Product View More"},icon:{desktop:`<svg width="96" height="36" viewBox="0 0 96 36" fill="none" xmlns="http://www.w3.org/2000/svg">
9
9
  <rect width="96" height="36" rx="3" fill="#424242"/>
10
10
  <path d="M19.4616 13.2727L22.0526 20.6193H22.1548L24.7457 13.2727H25.8537L22.6491 22H21.5582L18.3537 13.2727H19.4616ZM27.0767 22V15.4545H28.0824V22H27.0767ZM27.5881 14.3636C27.392 14.3636 27.223 14.2969 27.081 14.1634C26.9418 14.0298 26.8722 13.8693 26.8722 13.6818C26.8722 13.4943 26.9418 13.3338 27.081 13.2003C27.223 13.0668 27.392 13 27.5881 13C27.7841 13 27.9517 13.0668 28.0909 13.2003C28.233 13.3338 28.304 13.4943 28.304 13.6818C28.304 13.8693 28.233 14.0298 28.0909 14.1634C27.9517 14.2969 27.7841 14.3636 27.5881 14.3636ZM32.6687 22.1364C32.038 22.1364 31.494 21.9972 31.0366 21.7188C30.582 21.4375 30.2312 21.0455 29.984 20.5426C29.7397 20.0369 29.6175 19.4489 29.6175 18.7784C29.6175 18.108 29.7397 17.517 29.984 17.0057C30.2312 16.4915 30.5749 16.0909 31.0153 15.804C31.4585 15.5142 31.9755 15.3693 32.5664 15.3693C32.9073 15.3693 33.244 15.4261 33.5763 15.5398C33.9087 15.6534 34.2113 15.8381 34.484 16.0938C34.7567 16.3466 34.9741 16.6818 35.136 17.0994C35.2979 17.517 35.3789 18.0312 35.3789 18.642V19.0682H30.3335V18.1989H34.3562C34.3562 17.8295 34.2823 17.5 34.1346 17.2102C33.9897 16.9205 33.7823 16.6918 33.5124 16.5241C33.2454 16.3565 32.93 16.2727 32.5664 16.2727C32.1658 16.2727 31.8192 16.3722 31.5266 16.571C31.2369 16.767 31.0138 17.0227 30.8576 17.3381C30.7013 17.6534 30.6232 17.9915 30.6232 18.3523V18.9318C30.6232 19.4261 30.7085 19.8452 30.8789 20.1889C31.0522 20.5298 31.2923 20.7898 31.5991 20.9688C31.9059 21.1449 32.2624 21.233 32.6687 21.233C32.9329 21.233 33.1715 21.196 33.3846 21.1222C33.6005 21.0455 33.7866 20.9318 33.9428 20.7812C34.0991 20.6278 34.2198 20.4375 34.305 20.2102L35.2766 20.483C35.1744 20.8125 35.0025 21.1023 34.761 21.3523C34.5195 21.5994 34.2212 21.7926 33.8661 21.9318C33.511 22.0682 33.1119 22.1364 32.6687 22.1364ZM38.3917 22L36.3974 15.4545H37.4542L38.869 20.4659H38.9371L40.3349 15.4545H41.4087L42.7894 20.4489H42.8576L44.2724 15.4545H45.3292L43.3349 22H42.3462L40.9144 16.9716H40.8121L39.3803 22H38.3917ZM50.0337 22V15.4545H51.0053V16.4773H51.0906C51.2269 16.1278 51.4471 15.8565 51.7511 15.6634C52.055 15.4673 52.4201 15.3693 52.8462 15.3693C53.2781 15.3693 53.6374 15.4673 53.9244 15.6634C54.2141 15.8565 54.44 16.1278 54.6019 16.4773H54.6701C54.8377 16.1392 55.0891 15.8707 55.4244 15.6719C55.7596 15.4702 56.1616 15.3693 56.6303 15.3693C57.2156 15.3693 57.6942 15.5526 58.0664 15.919C58.4386 16.2827 58.6246 16.8494 58.6246 17.6193V22H57.619V17.6193C57.619 17.1364 57.4869 16.7912 57.2227 16.5838C56.9585 16.3764 56.6474 16.2727 56.2894 16.2727C55.8292 16.2727 55.4727 16.4119 55.2198 16.6903C54.967 16.9659 54.8406 17.3153 54.8406 17.7386V22H53.8178V17.517C53.8178 17.1449 53.6971 16.8452 53.4556 16.6179C53.2141 16.3878 52.9031 16.2727 52.5224 16.2727C52.261 16.2727 52.0167 16.3423 51.7894 16.4815C51.565 16.6207 51.3832 16.8139 51.244 17.0611C51.1076 17.3054 51.0394 17.5881 51.0394 17.9091V22H50.0337ZM63.1225 22.1364C62.5316 22.1364 62.0131 21.9957 61.5671 21.7145C61.1239 21.4332 60.7773 21.0398 60.5273 20.5341C60.2802 20.0284 60.1566 19.4375 60.1566 18.7614C60.1566 18.0795 60.2802 17.4844 60.5273 16.9759C60.7773 16.4673 61.1239 16.0724 61.5671 15.7912C62.0131 15.5099 62.5316 15.3693 63.1225 15.3693C63.7134 15.3693 64.2305 15.5099 64.6737 15.7912C65.1197 16.0724 65.4663 16.4673 65.7134 16.9759C65.9634 17.4844 66.0884 18.0795 66.0884 18.7614C66.0884 19.4375 65.9634 20.0284 65.7134 20.5341C65.4663 21.0398 65.1197 21.4332 64.6737 21.7145C64.2305 21.9957 63.7134 22.1364 63.1225 22.1364ZM63.1225 21.233C63.5714 21.233 63.9407 21.1179 64.2305 20.8878C64.5202 20.6577 64.7347 20.3551 64.8739 19.9801C65.0131 19.6051 65.0827 19.1989 65.0827 18.7614C65.0827 18.3239 65.0131 17.9162 64.8739 17.5384C64.7347 17.1605 64.5202 16.8551 64.2305 16.6222C63.9407 16.3892 63.5714 16.2727 63.1225 16.2727C62.6737 16.2727 62.3043 16.3892 62.0146 16.6222C61.7248 16.8551 61.5103 17.1605 61.3711 17.5384C61.2319 17.9162 61.1623 18.3239 61.1623 18.7614C61.1623 19.1989 61.2319 19.6051 61.3711 19.9801C61.5103 20.3551 61.7248 20.6577 62.0146 20.8878C62.3043 21.1179 62.6737 21.233 63.1225 21.233ZM67.6236 22V15.4545H68.5952V16.4432H68.6634C68.7827 16.1193 68.9986 15.8565 69.3111 15.6548C69.6236 15.4531 69.9759 15.3523 70.3679 15.3523C70.4418 15.3523 70.5341 15.3537 70.6449 15.3565C70.7557 15.3594 70.8395 15.3636 70.8963 15.3693V16.392C70.8622 16.3835 70.7841 16.3707 70.6619 16.3537C70.5426 16.3338 70.4162 16.3239 70.2827 16.3239C69.9645 16.3239 69.6804 16.3906 69.4304 16.5241C69.1832 16.6548 68.9872 16.8366 68.8423 17.0696C68.7003 17.2997 68.6293 17.5625 68.6293 17.858V22H67.6236ZM74.6335 22.1364C74.0028 22.1364 73.4588 21.9972 73.0014 21.7188C72.5469 21.4375 72.196 21.0455 71.9489 20.5426C71.7045 20.0369 71.5824 19.4489 71.5824 18.7784C71.5824 18.108 71.7045 17.517 71.9489 17.0057C72.196 16.4915 72.5398 16.0909 72.9801 15.804C73.4233 15.5142 73.9403 15.3693 74.5312 15.3693C74.8722 15.3693 75.2088 15.4261 75.5412 15.5398C75.8736 15.6534 76.1761 15.8381 76.4489 16.0938C76.7216 16.3466 76.9389 16.6818 77.1009 17.0994C77.2628 17.517 77.3438 18.0312 77.3438 18.642V19.0682H72.2983V18.1989H76.321C76.321 17.8295 76.2472 17.5 76.0994 17.2102C75.9545 16.9205 75.7472 16.6918 75.4773 16.5241C75.2102 16.3565 74.8949 16.2727 74.5312 16.2727C74.1307 16.2727 73.7841 16.3722 73.4915 16.571C73.2017 16.767 72.9787 17.0227 72.8224 17.3381C72.6662 17.6534 72.5881 17.9915 72.5881 18.3523V18.9318C72.5881 19.4261 72.6733 19.8452 72.8438 20.1889C73.017 20.5298 73.2571 20.7898 73.5639 20.9688C73.8707 21.1449 74.2273 21.233 74.6335 21.233C74.8977 21.233 75.1364 21.196 75.3494 21.1222C75.5653 21.0455 75.7514 20.9318 75.9077 20.7812C76.0639 20.6278 76.1847 20.4375 76.2699 20.2102L77.2415 20.483C77.1392 20.8125 76.9673 21.1023 76.7259 21.3523C76.4844 21.5994 76.1861 21.7926 75.831 21.9318C75.4759 22.0682 75.0767 22.1364 74.6335 22.1364Z" fill="#AAAAAA"/>
11
11
  </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.887",
3
+ "version": "2.0.0-dev.888",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -21,7 +21,7 @@
21
21
  "format": "prettier --write \"./src/**/*.{ts,tsx}\""
22
22
  },
23
23
  "devDependencies": {
24
- "@gem-sdk/core": "2.0.0-dev.887",
24
+ "@gem-sdk/core": "2.0.0-dev.888",
25
25
  "@gem-sdk/styles": "2.0.0-dev.878",
26
26
  "@types/react-transition-group": "^4.4.5"
27
27
  },