@greatapps/common 1.1.157 → 1.1.158
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,6 @@ import { DesktopShell } from "./shells/DesktopShell";
|
|
|
5
5
|
import { MdShell } from "./shells/MdShell";
|
|
6
6
|
import { MobileShell } from "./shells/MobileShell";
|
|
7
7
|
import { TabsMobileShell } from "./shells/TabsMobileShell";
|
|
8
|
-
import { CancelledSubscriptionBanner } from "./CancelledSubscriptionBanner";
|
|
9
8
|
import { NavItems } from "./subcomponents/NavItems";
|
|
10
9
|
import { ProjectSelector } from "./subcomponents/ProjectSelector";
|
|
11
10
|
import { PlanCard } from "./subcomponents/PlanCard";
|
|
@@ -14,7 +13,6 @@ import { NavItemsContext } from "./NavItemsContext";
|
|
|
14
13
|
function AppNavigationRoot({ children, mobileVariant = "sheet", mobileTabsOffset, onCancelledReactivate }) {
|
|
15
14
|
const [navItems, setNavItems] = useState([]);
|
|
16
15
|
return /* @__PURE__ */ jsxs(NavItemsContext.Provider, { value: { navItems, setNavItems, mobileVariant }, children: [
|
|
17
|
-
/* @__PURE__ */ jsx(CancelledSubscriptionBanner, { onReactivate: onCancelledReactivate }),
|
|
18
16
|
/* @__PURE__ */ jsx(DesktopShell, { children }),
|
|
19
17
|
/* @__PURE__ */ jsx(MdShell, { children }),
|
|
20
18
|
mobileVariant === "sheet" ? /* @__PURE__ */ jsx(MobileShell, { children }) : /* @__PURE__ */ jsx(TabsMobileShell, { topOffset: mobileTabsOffset, children })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/navigation/AppNavigation.tsx"],"sourcesContent":["'use client';\r\n\r\nimport { ReactNode, useState } from 'react';\r\nimport { DesktopShell } from './shells/DesktopShell';\r\nimport { MdShell } from './shells/MdShell';\r\nimport { MobileShell } from './shells/MobileShell';\r\nimport { TabsMobileShell } from './shells/TabsMobileShell';\r\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../src/components/navigation/AppNavigation.tsx"],"sourcesContent":["'use client';\r\n\r\nimport { ReactNode, useState } from 'react';\r\nimport { DesktopShell } from './shells/DesktopShell';\r\nimport { MdShell } from './shells/MdShell';\r\nimport { MobileShell } from './shells/MobileShell';\r\nimport { TabsMobileShell } from './shells/TabsMobileShell';\r\nimport { NavItems } from './subcomponents/NavItems';\r\nimport { ProjectSelector } from './subcomponents/ProjectSelector';\r\nimport { PlanCard } from './subcomponents/PlanCard';\r\nimport { CreditsCard } from './subcomponents/CreditsCard';\r\nimport { NavItemsContext } from './NavItemsContext';\r\nimport type { NavItemConfig } from './subcomponents/NavItems';\r\n\r\nexport type { NavItemConfig } from './subcomponents/NavItems';\r\nexport type { ProjectSelectorProps } from './subcomponents/ProjectSelector';\r\nexport type { PlanCardProps } from './subcomponents/PlanCard';\r\nexport type { CreditsCardProps } from './subcomponents/CreditsCard';\r\n\r\ninterface AppNavigationProps {\r\n children: ReactNode;\r\n mobileVariant?: 'sheet' | 'tabs';\r\n mobileTabsOffset?: string;\r\n onCancelledReactivate?: () => void;\r\n}\r\n\r\nfunction AppNavigationRoot({ children, mobileVariant = 'sheet', mobileTabsOffset, onCancelledReactivate }: AppNavigationProps) {\r\n const [navItems, setNavItems] = useState<NavItemConfig[]>([]);\r\n\r\n return (\r\n <NavItemsContext.Provider value={{ navItems, setNavItems, mobileVariant }}>\r\n <DesktopShell>{children}</DesktopShell>\r\n <MdShell>{children}</MdShell>\r\n {mobileVariant === 'sheet' ? (\r\n <MobileShell>{children}</MobileShell>\r\n ) : (\r\n <TabsMobileShell topOffset={mobileTabsOffset}>{children}</TabsMobileShell>\r\n )}\r\n </NavItemsContext.Provider>\r\n );\r\n}\r\n\r\nexport const AppNavigation = Object.assign(AppNavigationRoot, {\r\n NavItems,\r\n ProjectSelector,\r\n PlanCard,\r\n CreditsCard,\r\n});\r\n"],"mappings":";AA8BI,SACE,KADF;AA5BJ,SAAoB,gBAAgB;AACpC,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AACzB,SAAS,mBAAmB;AAC5B,SAAS,uBAAuB;AAehC,SAAS,kBAAkB,EAAE,UAAU,gBAAgB,SAAS,kBAAkB,sBAAsB,GAAuB;AAC7H,QAAM,CAAC,UAAU,WAAW,IAAI,SAA0B,CAAC,CAAC;AAE5D,SACE,qBAAC,gBAAgB,UAAhB,EAAyB,OAAO,EAAE,UAAU,aAAa,cAAc,GACtE;AAAA,wBAAC,gBAAc,UAAS;AAAA,IACxB,oBAAC,WAAS,UAAS;AAAA,IAClB,kBAAkB,UACjB,oBAAC,eAAa,UAAS,IAEvB,oBAAC,mBAAgB,WAAW,kBAAmB,UAAS;AAAA,KAE5D;AAEJ;AAEO,MAAM,gBAAgB,OAAO,OAAO,mBAAmB;AAAA,EAC5D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -5,7 +5,6 @@ import { DesktopShell } from './shells/DesktopShell';
|
|
|
5
5
|
import { MdShell } from './shells/MdShell';
|
|
6
6
|
import { MobileShell } from './shells/MobileShell';
|
|
7
7
|
import { TabsMobileShell } from './shells/TabsMobileShell';
|
|
8
|
-
import { CancelledSubscriptionBanner } from './CancelledSubscriptionBanner';
|
|
9
8
|
import { NavItems } from './subcomponents/NavItems';
|
|
10
9
|
import { ProjectSelector } from './subcomponents/ProjectSelector';
|
|
11
10
|
import { PlanCard } from './subcomponents/PlanCard';
|
|
@@ -30,7 +29,6 @@ function AppNavigationRoot({ children, mobileVariant = 'sheet', mobileTabsOffset
|
|
|
30
29
|
|
|
31
30
|
return (
|
|
32
31
|
<NavItemsContext.Provider value={{ navItems, setNavItems, mobileVariant }}>
|
|
33
|
-
<CancelledSubscriptionBanner onReactivate={onCancelledReactivate} />
|
|
34
32
|
<DesktopShell>{children}</DesktopShell>
|
|
35
33
|
<MdShell>{children}</MdShell>
|
|
36
34
|
{mobileVariant === 'sheet' ? (
|