@the-portland-company/shell 0.23.0 → 0.24.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/native.cjs CHANGED
@@ -1863,6 +1863,42 @@ function NavTabStrip({
1863
1863
  ) : null
1864
1864
  ] });
1865
1865
  }
1866
+ var BETA_BANNER_DEFAULTS = {
1867
+ text: "Our product is in Beta. Thank you for participating in the Pilot Program. ",
1868
+ linkLabel: "You can click here to see the Terms & Conditions for Beta users.",
1869
+ href: "https://app.politogyvrm.com/beta-terms-and-conditions"
1870
+ };
1871
+ function NavBetaBanner({ text, linkLabel, href }) {
1872
+ const body = text ?? BETA_BANNER_DEFAULTS.text;
1873
+ const label = linkLabel ?? BETA_BANNER_DEFAULTS.linkLabel;
1874
+ const target = href ?? BETA_BANNER_DEFAULTS.href;
1875
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1876
+ "div",
1877
+ {
1878
+ role: "note",
1879
+ className: "w-full border-y px-4 py-2 text-center text-sm",
1880
+ style: {
1881
+ background: "var(--beta-banner-bg)",
1882
+ borderColor: "var(--beta-banner-border)",
1883
+ color: "var(--beta-banner-text)"
1884
+ },
1885
+ children: [
1886
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: body }),
1887
+ /* @__PURE__ */ jsxRuntime.jsx(
1888
+ "a",
1889
+ {
1890
+ href: safeHref(target),
1891
+ target: "_blank",
1892
+ rel: "noreferrer",
1893
+ className: "font-bold underline",
1894
+ style: { color: "var(--beta-banner-text)" },
1895
+ children: label
1896
+ }
1897
+ )
1898
+ ]
1899
+ }
1900
+ );
1901
+ }
1866
1902
  function useCloseNavDetailsOnOutsideClick() {
1867
1903
  react.useEffect(() => {
1868
1904
  const close = (target) => {
@@ -1882,12 +1918,13 @@ function useCloseNavDetailsOnOutsideClick() {
1882
1918
  };
1883
1919
  }, []);
1884
1920
  }
1885
- function NavAppShell({ sidebar, topBar, children }) {
1921
+ function NavAppShell({ sidebar, topBar, betaBanner, children }) {
1886
1922
  useCloseNavDetailsOnOutsideClick();
1887
1923
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen bg-[color:var(--background)] text-[color:var(--foreground)]", children: [
1888
1924
  /* @__PURE__ */ jsxRuntime.jsx(NavSidebar, { ...sidebar }),
1889
1925
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "lg:pl-[240px]", children: [
1890
1926
  /* @__PURE__ */ jsxRuntime.jsx(NavTopBar, { ...topBar }),
1927
+ betaBanner ? /* @__PURE__ */ jsxRuntime.jsx(NavBetaBanner, { ...betaBanner }) : null,
1891
1928
  /* @__PURE__ */ jsxRuntime.jsx("main", { className: "px-6 py-7", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto max-w-7xl", children }) })
1892
1929
  ] })
1893
1930
  ] });
@@ -1895,6 +1932,7 @@ function NavAppShell({ sidebar, topBar, children }) {
1895
1932
 
1896
1933
  exports.FuelAction = FuelAction;
1897
1934
  exports.NavAppShell = NavAppShell;
1935
+ exports.NavBetaBanner = NavBetaBanner;
1898
1936
  exports.NavChromeProvider = NavChromeProvider;
1899
1937
  exports.NavDisplayAction = NavDisplayAction;
1900
1938
  exports.NavSidebar = NavSidebar;