@spaceandtimelabs/dapp-mi-components 0.3.2 → 0.4.0

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.umd.js CHANGED
@@ -5062,5 +5062,5 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
5062
5062
  border-radius: 15px;
5063
5063
  backdrop-filter: blur(10px);
5064
5064
  }
5065
- `,gq=({children:e,onAuthButtonClick:t,onSidebarLinkClick:n})=>{const{isMobileDown:o}=xn(),{isDrawerOpen:r}=Jn();return V.useEffect(()=>{if(typeof window<"u")return/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent)?document.body.classList.add("safari-browser"):document.body.classList.remove("safari-browser"),()=>{document.body.classList.remove("safari-browser")}},[]),s.jsxs(Mq,{className:`${r&&o?"sideNavMobile":""} `,children:[s.jsx(ud,{onAuthButtonClick:t}),!o||r?s.jsx(gu,{onSidebarLinkClick:n,children:e}):e]})},mu=()=>{const{isMobileDown:e}=xn();return s.jsx(Jo,{children:s.jsxs("div",{className:"listHead",children:[s.jsx("h4",{className:"listHeadTitle",children:oe.MY_SAVED_QUERIES}),s.jsxs("div",{className:"query-actions",children:[s.jsx(ae,{text:e?oe.CREATE:oe.CREATE_NEW_QUERY,variants:"primary",className:"primary",type:"button",sizes:"sm",icon:Za,iconPosition:"right"}),s.jsx(ae,{text:oe.VIEW_QUERY_HISTORY,variants:"secondary",className:"secondary",type:"button",sizes:"sm"})]})]})})};_e.error,_e.currency,_e.popularTrade,_e.success,_e.suggestion,_e.trade,_e.default;const qu=(e,t)=>Array.from({length:t},(n,o)=>({...e,id:o+1})),mq=[Wn.queryName,Wn.queryContent,Wn.lastModified,Wn.queryBugName,Wn.tag],qq=()=>{const[e,t]=V.useState(qu(ht,4)),{isChatBotPinned:n}=Xt(),o=()=>{const i={id:e.length+1,title:ht==null?void 0:ht.title,image:ht==null?void 0:ht.image,appsDashboard:ht==null?void 0:ht.appsDashboard};t([...e,i])},r=qu(Cf,2);return s.jsx(Jo,{children:s.jsx(E.Box,{component:"div",className:"project-content-wrapp",children:s.jsxs("div",{className:"customCard",children:[s.jsx(Mi,{title:oe.MY_PROJECTS,subTitle:oe.APPS_DASHBOARDS_SUBTITLE}),s.jsxs("div",{className:"project-section",children:[s.jsx("h2",{className:"section-title",children:oe.APPS_AND_DASHBORADS}),s.jsxs("div",{className:"project-container",children:[s.jsxs(E.Grid,{container:!0,spacing:2,children:[e.map(i=>s.jsx(E.Grid,{item:!0,md:n?6:4,sm:6,xs:12,children:s.jsx(Yr,{variants:"dashboard",title:i==null?void 0:i.title,image:i==null?void 0:i.appsDashboard})},i==null?void 0:i.id)),s.jsx(E.Grid,{item:!0,md:n?6:4,sm:6,xs:12,children:s.jsx(ae,{type:"button",className:"createButton",onClick:o,text:"Create New",sizes:"sm",variants:"secondary",icon:Qa,iconPosition:"left"})})]}),s.jsxs(E.Box,{component:"div",className:"savedQueryList",children:[s.jsx(mu,{}),s.jsx(bd,{headers:mq,data:r,actionButtons:Hf()})]})]})]})]})})})};D.Accordion=ks,D.ActivityBar=Id,D.Button=ae,D.Cards=Yr,D.Chat=Xm,D.ChatBotButton=Gm,D.ChatBotComponentsTab=Jm,D.ChatBotWrapper=nu,D.ChoiceOptions=$m,D.Circular=us,D.CloseIconComponent=Fs,D.CommonDrawer=_s,D.CommonTable=bd,D.CommonTooltip=ao,D.CreateProject=eq,D.CurrencyBox=ou,D.CustomSwitch=hd,D.EditMenu=Mu,D.ErrorBoundary=oM,D.Explore=Rs,D.ExplorePage=hl,D.Footer=Vs,D.GlobalStyle=Tu,D.Header=ud,D.Input=Cr,D.Landing=Gs,D.LandingDrawer=gu,D.LandingPage=Yl,D.Layout=gq,D.MI_DAPP_COMPONENTS_THEME=Oa,D.MyAppsContent=ls,D.MyProjectHeader=Mi,D.MyProjects=qq,D.MySavedQueries=mu,D.NextIcon=ds,D.OverlayLoading=DM,D.PageHead=Ys,D.PagesVersions=du,D.PaginationComponent=As,D.PopoverMenu=Bo,D.PopularTrade=ru,D.PreviousIcon=ss,D.ProfileTooltip=lu,D.SideBarButtons=mi,D.SideBarListItem=gi,D.SpinKitCube=Ad,D.SuggestedTrade=iu,D.TabsComponent=Zr,D.TradeInfo=au,D.TradeSuccess=su,D.TypeWriterInput=Bs,D.add=of,D.addIcn=nf,D.arrowDown=rf,D.arrowRight=af,D.arrowRightUp=wo,D.btnArrowRight=sf,D.circular=df,D.create=uf,D.data=ns,D.downArrow=Af,D.edit=cf,D.filterIcn=pf,D.icnSearchInput=ff,D.infoCircle=lf,D.layer=Mf,D.magicpen=gf,D.menu=mf,D.messages=qf,D.pages=vf,D.plus=zf,D.proofOFSql=jf,D.rightArrow=Nf,D.scroll=xf,D.search=Tf,D.setting=Of,D.settings=If,D.share=os,D.spaceArchitecture=rs,D.transactions=is,D.upload=as,D.variableTheme=ho,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
5065
+ `,gq=({children:e,onAuthButtonClick:t,onSidebarLinkClick:n,hideNavbar:o=!1})=>{const{isMobileDown:r}=xn(),{isDrawerOpen:i}=Jn();return V.useEffect(()=>{if(typeof window<"u")return/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent)?document.body.classList.add("safari-browser"):document.body.classList.remove("safari-browser"),()=>{document.body.classList.remove("safari-browser")}},[]),s.jsxs(Mq,{className:`${i&&r?"sideNavMobile":""} `,children:[o===!1&&s.jsx(ud,{onAuthButtonClick:t}),!r||i?s.jsx(gu,{onSidebarLinkClick:n,children:e}):e]})},mu=()=>{const{isMobileDown:e}=xn();return s.jsx(Jo,{children:s.jsxs("div",{className:"listHead",children:[s.jsx("h4",{className:"listHeadTitle",children:oe.MY_SAVED_QUERIES}),s.jsxs("div",{className:"query-actions",children:[s.jsx(ae,{text:e?oe.CREATE:oe.CREATE_NEW_QUERY,variants:"primary",className:"primary",type:"button",sizes:"sm",icon:Za,iconPosition:"right"}),s.jsx(ae,{text:oe.VIEW_QUERY_HISTORY,variants:"secondary",className:"secondary",type:"button",sizes:"sm"})]})]})})};_e.error,_e.currency,_e.popularTrade,_e.success,_e.suggestion,_e.trade,_e.default;const qu=(e,t)=>Array.from({length:t},(n,o)=>({...e,id:o+1})),mq=[Wn.queryName,Wn.queryContent,Wn.lastModified,Wn.queryBugName,Wn.tag],qq=()=>{const[e,t]=V.useState(qu(ht,4)),{isChatBotPinned:n}=Xt(),o=()=>{const i={id:e.length+1,title:ht==null?void 0:ht.title,image:ht==null?void 0:ht.image,appsDashboard:ht==null?void 0:ht.appsDashboard};t([...e,i])},r=qu(Cf,2);return s.jsx(Jo,{children:s.jsx(E.Box,{component:"div",className:"project-content-wrapp",children:s.jsxs("div",{className:"customCard",children:[s.jsx(Mi,{title:oe.MY_PROJECTS,subTitle:oe.APPS_DASHBOARDS_SUBTITLE}),s.jsxs("div",{className:"project-section",children:[s.jsx("h2",{className:"section-title",children:oe.APPS_AND_DASHBORADS}),s.jsxs("div",{className:"project-container",children:[s.jsxs(E.Grid,{container:!0,spacing:2,children:[e.map(i=>s.jsx(E.Grid,{item:!0,md:n?6:4,sm:6,xs:12,children:s.jsx(Yr,{variants:"dashboard",title:i==null?void 0:i.title,image:i==null?void 0:i.appsDashboard})},i==null?void 0:i.id)),s.jsx(E.Grid,{item:!0,md:n?6:4,sm:6,xs:12,children:s.jsx(ae,{type:"button",className:"createButton",onClick:o,text:"Create New",sizes:"sm",variants:"secondary",icon:Qa,iconPosition:"left"})})]}),s.jsxs(E.Box,{component:"div",className:"savedQueryList",children:[s.jsx(mu,{}),s.jsx(bd,{headers:mq,data:r,actionButtons:Hf()})]})]})]})]})})})};D.Accordion=ks,D.ActivityBar=Id,D.Button=ae,D.Cards=Yr,D.Chat=Xm,D.ChatBotButton=Gm,D.ChatBotComponentsTab=Jm,D.ChatBotWrapper=nu,D.ChoiceOptions=$m,D.Circular=us,D.CloseIconComponent=Fs,D.CommonDrawer=_s,D.CommonTable=bd,D.CommonTooltip=ao,D.CreateProject=eq,D.CurrencyBox=ou,D.CustomSwitch=hd,D.EditMenu=Mu,D.ErrorBoundary=oM,D.Explore=Rs,D.ExplorePage=hl,D.Footer=Vs,D.GlobalStyle=Tu,D.Header=ud,D.Input=Cr,D.Landing=Gs,D.LandingDrawer=gu,D.LandingPage=Yl,D.Layout=gq,D.MI_DAPP_COMPONENTS_THEME=Oa,D.MyAppsContent=ls,D.MyProjectHeader=Mi,D.MyProjects=qq,D.MySavedQueries=mu,D.NextIcon=ds,D.OverlayLoading=DM,D.PageHead=Ys,D.PagesVersions=du,D.PaginationComponent=As,D.PopoverMenu=Bo,D.PopularTrade=ru,D.PreviousIcon=ss,D.ProfileTooltip=lu,D.SideBarButtons=mi,D.SideBarListItem=gi,D.SpinKitCube=Ad,D.SuggestedTrade=iu,D.TabsComponent=Zr,D.TradeInfo=au,D.TradeSuccess=su,D.TypeWriterInput=Bs,D.add=of,D.addIcn=nf,D.arrowDown=rf,D.arrowRight=af,D.arrowRightUp=wo,D.btnArrowRight=sf,D.circular=df,D.create=uf,D.data=ns,D.downArrow=Af,D.edit=cf,D.filterIcn=pf,D.icnSearchInput=ff,D.infoCircle=lf,D.layer=Mf,D.magicpen=gf,D.menu=mf,D.messages=qf,D.pages=vf,D.plus=zf,D.proofOFSql=jf,D.rightArrow=Nf,D.scroll=xf,D.search=Tf,D.setting=Of,D.settings=If,D.share=os,D.spaceArchitecture=rs,D.transactions=is,D.upload=as,D.variableTheme=ho,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
5066
5066
  //# sourceMappingURL=index.umd.js.map