groundfloor-react-ui 1.3.63 → 1.3.64
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/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2887,7 +2887,7 @@ svg {
|
|
|
2887
2887
|
${({customModalFooterStyle:e})=>e}
|
|
2888
2888
|
`,rc=m.div`
|
|
2889
2889
|
cursor: pointer;
|
|
2890
|
-
`;try{E.setAppElement("#root")}catch(e){E.setAppElement("#__next")}const nc=({modalIsOpen:e,toggleModal:l,closeOnOutsideClick:i,headerContent:o,bodyContent:c,footerContent:a,customModalHeaderStyle:r,customModalBodyStyle:n,customModalFooterStyle:s,customWidth:d,customMinWidth:p,customMaxWidth:m,contentStyle:u,contentWrapperStyle:f,customZIndex:g,hideCrossIcon:h,...C})=>{const y={overlay:{zIndex:g,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",minWidth:p,overflow:"hidden",border:`1px solid ${(b()||R).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:d&&d,maxWidth:m&&m,...u}};return t.createElement("div",null,t.createElement(E,L({closeTimeoutMS:500,isOpen:e,onRequestClose:i?l:void 0,style:y,contentLabel:"Modal"},C),o&&t.createElement(ic,{style:r,"data-accordion":"contentClickFalse"},o,!h&&t.createElement(rc,{onClick:l},t.createElement(_,{onClick:l,icon:"close-icon",size:18}))),!o&&!h&&t.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginRight:"24px",paddingTop:"24px"}},t.createElement("div",null),t.createElement(rc,{onClick:l},t.createElement(_,{icon:"close-icon",size:18}))),t.createElement(cc,{contentWrapperStyle:f,"data-accordion":"contentClickFalse"},t.createElement(oc,{inBuiltCss:Z,style:n,"data-accordion":"contentClickFalse"},c),a&&t.createElement(ac,{inBuiltCss:Z,style:s,"data-accordion":"contentClickFalse"},a))),t.createElement(lc,null))};nc.propTypes={modalIsOpen:e.bool,toggleModal:e.func,closeOnOutsideClick:e.bool,headerContent:e.any,hideCrossIcon:e.bool,bodyContent:e.any,footerContent:e.any,customModalHeaderStyle:e.object,customModalBodyStyle:e.object,customModalFooterStyle:e.object,customMinWidth:e.string,contentStyle:e.object,contentWrapperStyle:e.object,customZIndex:e.number},nc.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999,hideCrossIcon:!1};const sc=m.div`
|
|
2890
|
+
`;try{E.setAppElement("#root")}catch(e){E.setAppElement("#__next")}const nc=({modalIsOpen:e,toggleModal:l,closeOnOutsideClick:i,headerContent:o,bodyContent:c,footerContent:a,customModalHeaderStyle:r,customModalBodyStyle:n,customModalFooterStyle:s,customWidth:d,customMinWidth:p,customMaxWidth:m,contentStyle:u,contentWrapperStyle:f,customZIndex:g,hideCrossIcon:h,...C})=>{const y={overlay:{zIndex:g,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",minWidth:p,overflow:"hidden",border:`1px solid ${(b()||R).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:d&&d,maxWidth:m&&m,...u}};return t.createElement("div",null,t.createElement(E,L({closeTimeoutMS:500,isOpen:e,onRequestClose:i?l:void 0,style:y,contentLabel:"Modal",onAfterOpen:()=>{try{document.body.style.overflow="hidden"}catch(e){console.log("error in modal onAfterOpen",e)}},onAfterClose:()=>{try{document.body.style.overflow="auto"}catch(e){console.log("error in modal onAfterClose",e)}}},C),o&&t.createElement(ic,{style:r,"data-accordion":"contentClickFalse"},o,!h&&t.createElement(rc,{onClick:l},t.createElement(_,{onClick:l,icon:"close-icon",size:18}))),!o&&!h&&t.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginRight:"24px",paddingTop:"24px"}},t.createElement("div",null),t.createElement(rc,{onClick:l},t.createElement(_,{icon:"close-icon",size:18}))),t.createElement(cc,{contentWrapperStyle:f,"data-accordion":"contentClickFalse"},t.createElement(oc,{inBuiltCss:Z,style:n,"data-accordion":"contentClickFalse"},c),a&&t.createElement(ac,{inBuiltCss:Z,style:s,"data-accordion":"contentClickFalse"},a))),t.createElement(lc,null))};nc.propTypes={modalIsOpen:e.bool,toggleModal:e.func,closeOnOutsideClick:e.bool,headerContent:e.any,hideCrossIcon:e.bool,bodyContent:e.any,footerContent:e.any,customModalHeaderStyle:e.object,customModalBodyStyle:e.object,customModalFooterStyle:e.object,customMinWidth:e.string,contentStyle:e.object,contentWrapperStyle:e.object,customZIndex:e.number},nc.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999,hideCrossIcon:!1};const sc=m.div`
|
|
2891
2891
|
${({theme:e,type:t,customStyles:l})=>{if(e){let i={};if(e[t]){for(const t in e.common)i[t]=e.common[t];for(const l in e[t])i[l]=e[t][l],delete e.common[l]}return{...i,...l}}}}
|
|
2892
2892
|
}
|
|
2893
2893
|
`,dc=({theme:e,toggleSimple:l,contentTrigger:i,contentOverlay:o,popperOptionsP:c,settingsP:a,customStyles:r,...n})=>{let s={},d={};l?(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d}):(s={...s,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},d={...d,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),s={...s,...c},d={...d,...a};const{getArrowProps:p,getTooltipProps:m,setTooltipRef:b,setTriggerRef:u,visible:f}=C({...d},s);return t.createElement(t.Fragment,null,t.createElement("div",{ref:u,style:{width:"fit-content",height:"fit-content"}},i),f&&t.createElement(sc,L({type:l?"simple-overlay":"overlay",theme:e,ref:b},m({className:"tooltip-container"}),{customStyles:r}),o))};dc.propTypes={theme:e.object,contentTrigger:e.any,contentOverlay:e.any,popperOptionsP:e.object,settingsP:e.object,customStyles:e.object,toggleSimple:e.bool},dc.defaultProps={theme:Z,contentTrigger:t.createElement("div",null,"Trigger"),contentOverlay:t.createElement("div",null,"I am the Overlay")};const pc=m.div`
|
package/dist/index.js
CHANGED
|
@@ -2887,7 +2887,7 @@ svg {
|
|
|
2887
2887
|
${({customModalFooterStyle:e})=>e}
|
|
2888
2888
|
`,er=h.default.div`
|
|
2889
2889
|
cursor: pointer;
|
|
2890
|
-
`;try{k.default.setAppElement("#root")}catch(e){k.default.setAppElement("#__next")}const tr=({modalIsOpen:e,toggleModal:t,closeOnOutsideClick:a,headerContent:o,bodyContent:r,footerContent:i,customModalHeaderStyle:c,customModalBodyStyle:n,customModalFooterStyle:d,customWidth:s,customMinWidth:p,customMaxWidth:u,contentStyle:f,contentWrapperStyle:m,customZIndex:b,hideCrossIcon:h,...C})=>{const y={overlay:{zIndex:b,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",minWidth:p,overflow:"hidden",border:`1px solid ${(l.useTheme()||I).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:s&&s,maxWidth:u&&u,...f}};return g.default.createElement("div",null,g.default.createElement(k.default,E({closeTimeoutMS:500,isOpen:e,onRequestClose:a?t:void 0,style:y,contentLabel:"Modal"},C),o&&g.default.createElement(Qo,{style:c,"data-accordion":"contentClickFalse"},o,!h&&g.default.createElement(er,{onClick:t},g.default.createElement(Q,{onClick:t,icon:"close-icon",size:18}))),!o&&!h&&g.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginRight:"24px",paddingTop:"24px"}},g.default.createElement("div",null),g.default.createElement(er,{onClick:t},g.default.createElement(Q,{icon:"close-icon",size:18}))),g.default.createElement($o,{contentWrapperStyle:m,"data-accordion":"contentClickFalse"},g.default.createElement(Ko,{inBuiltCss:P,style:n,"data-accordion":"contentClickFalse"},r),i&&g.default.createElement(_o,{inBuiltCss:P,style:d,"data-accordion":"contentClickFalse"},i))),g.default.createElement(No,null))};tr.propTypes={modalIsOpen:b.default.bool,toggleModal:b.default.func,closeOnOutsideClick:b.default.bool,headerContent:b.default.any,hideCrossIcon:b.default.bool,bodyContent:b.default.any,footerContent:b.default.any,customModalHeaderStyle:b.default.object,customModalBodyStyle:b.default.object,customModalFooterStyle:b.default.object,customMinWidth:b.default.string,contentStyle:b.default.object,contentWrapperStyle:b.default.object,customZIndex:b.default.number},tr.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999,hideCrossIcon:!1};const lr=h.default.div`
|
|
2890
|
+
`;try{k.default.setAppElement("#root")}catch(e){k.default.setAppElement("#__next")}const tr=({modalIsOpen:e,toggleModal:t,closeOnOutsideClick:a,headerContent:o,bodyContent:r,footerContent:i,customModalHeaderStyle:c,customModalBodyStyle:n,customModalFooterStyle:d,customWidth:s,customMinWidth:p,customMaxWidth:u,contentStyle:f,contentWrapperStyle:m,customZIndex:b,hideCrossIcon:h,...C})=>{const y={overlay:{zIndex:b,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",minWidth:p,overflow:"hidden",border:`1px solid ${(l.useTheme()||I).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:s&&s,maxWidth:u&&u,...f}};return g.default.createElement("div",null,g.default.createElement(k.default,E({closeTimeoutMS:500,isOpen:e,onRequestClose:a?t:void 0,style:y,contentLabel:"Modal",onAfterOpen:()=>{try{document.body.style.overflow="hidden"}catch(e){console.log("error in modal onAfterOpen",e)}},onAfterClose:()=>{try{document.body.style.overflow="auto"}catch(e){console.log("error in modal onAfterClose",e)}}},C),o&&g.default.createElement(Qo,{style:c,"data-accordion":"contentClickFalse"},o,!h&&g.default.createElement(er,{onClick:t},g.default.createElement(Q,{onClick:t,icon:"close-icon",size:18}))),!o&&!h&&g.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginRight:"24px",paddingTop:"24px"}},g.default.createElement("div",null),g.default.createElement(er,{onClick:t},g.default.createElement(Q,{icon:"close-icon",size:18}))),g.default.createElement($o,{contentWrapperStyle:m,"data-accordion":"contentClickFalse"},g.default.createElement(Ko,{inBuiltCss:P,style:n,"data-accordion":"contentClickFalse"},r),i&&g.default.createElement(_o,{inBuiltCss:P,style:d,"data-accordion":"contentClickFalse"},i))),g.default.createElement(No,null))};tr.propTypes={modalIsOpen:b.default.bool,toggleModal:b.default.func,closeOnOutsideClick:b.default.bool,headerContent:b.default.any,hideCrossIcon:b.default.bool,bodyContent:b.default.any,footerContent:b.default.any,customModalHeaderStyle:b.default.object,customModalBodyStyle:b.default.object,customModalFooterStyle:b.default.object,customMinWidth:b.default.string,contentStyle:b.default.object,contentWrapperStyle:b.default.object,customZIndex:b.default.number},tr.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999,hideCrossIcon:!1};const lr=h.default.div`
|
|
2891
2891
|
${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.common)a[t]=e.common[t];for(const l in e[t])a[l]=e[t][l],delete e.common[l]}return{...a,...l}}}}
|
|
2892
2892
|
}
|
|
2893
2893
|
`,ar=({theme:e,toggleSimple:t,contentTrigger:l,contentOverlay:a,popperOptionsP:r,settingsP:i,customStyles:c,...n})=>{let d={},s={};t?(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s}):(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),d={...d,...r},s={...s,...i};const{getArrowProps:p,getTooltipProps:u,setTooltipRef:f,setTriggerRef:m,visible:b}=o.usePopperTooltip({...s},d);return g.default.createElement(g.default.Fragment,null,g.default.createElement("div",{ref:m,style:{width:"fit-content",height:"fit-content"}},l),b&&g.default.createElement(lr,E({type:t?"simple-overlay":"overlay",theme:e,ref:f},u({className:"tooltip-container"}),{customStyles:c}),a))};ar.propTypes={theme:b.default.object,contentTrigger:b.default.any,contentOverlay:b.default.any,popperOptionsP:b.default.object,settingsP:b.default.object,customStyles:b.default.object,toggleSimple:b.default.bool},ar.defaultProps={theme:P,contentTrigger:g.default.createElement("div",null,"Trigger"),contentOverlay:g.default.createElement("div",null,"I am the Overlay")};const or=h.default.div`
|