@orangecheck/design 0.13.0 → 0.14.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/chrome.d.mts CHANGED
@@ -96,7 +96,7 @@ interface OcPrimaryNavProps {
96
96
  links: ReadonlyArray<OcPrimaryNavLink>;
97
97
  className?: string;
98
98
  }
99
- declare function OcPrimaryNav({ activePath, links, className }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
99
+ declare function OcPrimaryNav({ activePath, links, className, }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
100
100
 
101
101
  interface OcDashboardTool {
102
102
  id: string;
@@ -147,4 +147,14 @@ interface LayoutSubHeaderProps {
147
147
  }
148
148
  declare function LayoutSubHeader({ product, status, tags, noHeartbeat, className, }: LayoutSubHeaderProps): react_jsx_runtime.JSX.Element;
149
149
 
150
- export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, LayoutSubHeader, type LayoutSubHeaderProps, type LayoutSubHeaderTag, OcAccountMenu, type OcAccountMenuBuildInfo, type OcAccountMenuItem, type OcAccountMenuProps, type OcAccountMenuSession, OcAccountMenuView, type OcAccountMenuViewProps, OcDashboardHub, type OcDashboardHubProps, OcDashboardShell, type OcDashboardShellProps, type OcDashboardTool, OcLogoDropdown, type OcLogoDropdownProps, OcPrimaryNav, type OcPrimaryNavLink, type OcPrimaryNavProps, SITE_STATE_LABEL, type SiteState, findFamilyProperty };
150
+ interface OcAppBarProps {
151
+ variant?: 'full' | 'contained';
152
+ start?: ReactNode;
153
+ center?: ReactNode;
154
+ end?: ReactNode;
155
+ sticky?: boolean;
156
+ className?: string;
157
+ }
158
+ declare function OcAppBar({ variant, start, center, end, sticky, className, }: OcAppBarProps): react_jsx_runtime.JSX.Element;
159
+
160
+ export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, LayoutSubHeader, type LayoutSubHeaderProps, type LayoutSubHeaderTag, OcAccountMenu, type OcAccountMenuBuildInfo, type OcAccountMenuItem, type OcAccountMenuProps, type OcAccountMenuSession, OcAccountMenuView, type OcAccountMenuViewProps, OcAppBar, type OcAppBarProps, OcDashboardHub, type OcDashboardHubProps, OcDashboardShell, type OcDashboardShellProps, type OcDashboardTool, OcLogoDropdown, type OcLogoDropdownProps, OcPrimaryNav, type OcPrimaryNavLink, type OcPrimaryNavProps, SITE_STATE_LABEL, type SiteState, findFamilyProperty };
package/dist/chrome.d.ts CHANGED
@@ -96,7 +96,7 @@ interface OcPrimaryNavProps {
96
96
  links: ReadonlyArray<OcPrimaryNavLink>;
97
97
  className?: string;
98
98
  }
99
- declare function OcPrimaryNav({ activePath, links, className }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
99
+ declare function OcPrimaryNav({ activePath, links, className, }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
100
100
 
101
101
  interface OcDashboardTool {
102
102
  id: string;
@@ -147,4 +147,14 @@ interface LayoutSubHeaderProps {
147
147
  }
148
148
  declare function LayoutSubHeader({ product, status, tags, noHeartbeat, className, }: LayoutSubHeaderProps): react_jsx_runtime.JSX.Element;
149
149
 
150
- export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, LayoutSubHeader, type LayoutSubHeaderProps, type LayoutSubHeaderTag, OcAccountMenu, type OcAccountMenuBuildInfo, type OcAccountMenuItem, type OcAccountMenuProps, type OcAccountMenuSession, OcAccountMenuView, type OcAccountMenuViewProps, OcDashboardHub, type OcDashboardHubProps, OcDashboardShell, type OcDashboardShellProps, type OcDashboardTool, OcLogoDropdown, type OcLogoDropdownProps, OcPrimaryNav, type OcPrimaryNavLink, type OcPrimaryNavProps, SITE_STATE_LABEL, type SiteState, findFamilyProperty };
150
+ interface OcAppBarProps {
151
+ variant?: 'full' | 'contained';
152
+ start?: ReactNode;
153
+ center?: ReactNode;
154
+ end?: ReactNode;
155
+ sticky?: boolean;
156
+ className?: string;
157
+ }
158
+ declare function OcAppBar({ variant, start, center, end, sticky, className, }: OcAppBarProps): react_jsx_runtime.JSX.Element;
159
+
160
+ export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, LayoutSubHeader, type LayoutSubHeaderProps, type LayoutSubHeaderTag, OcAccountMenu, type OcAccountMenuBuildInfo, type OcAccountMenuItem, type OcAccountMenuProps, type OcAccountMenuSession, OcAccountMenuView, type OcAccountMenuViewProps, OcAppBar, type OcAppBarProps, OcDashboardHub, type OcDashboardHubProps, OcDashboardShell, type OcDashboardShellProps, type OcDashboardTool, OcLogoDropdown, type OcLogoDropdownProps, OcPrimaryNav, type OcPrimaryNavLink, type OcPrimaryNavProps, SITE_STATE_LABEL, type SiteState, findFamilyProperty };
package/dist/chrome.js CHANGED
@@ -1510,7 +1510,11 @@ function isActive(pathname, link) {
1510
1510
  if (link.href === "/") return pathname === "/";
1511
1511
  return pathname === link.href || pathname.startsWith(link.href + "/");
1512
1512
  }
1513
- function OcPrimaryNav({ activePath, links, className }) {
1513
+ function OcPrimaryNav({
1514
+ activePath,
1515
+ links,
1516
+ className
1517
+ }) {
1514
1518
  return /* @__PURE__ */ jsxRuntime.jsx(
1515
1519
  "nav",
1516
1520
  {
@@ -1519,7 +1523,7 @@ function OcPrimaryNav({ activePath, links, className }) {
1519
1523
  "data-oc-primary-nav": "",
1520
1524
  children: links.map((link) => {
1521
1525
  const active = isActive(activePath, link);
1522
- const className2 = "font-display relative shrink-0 px-2 py-1 sm:px-3 text-[11px] sm:text-[12px] font-semibold tracking-wider uppercase transition-colors " + (active ? 'text-primary after:bg-primary after:absolute after:inset-x-2 after:-bottom-[13px] after:h-px after:content-[""]' : "text-muted-foreground hover:text-foreground");
1526
+ const className2 = "font-display shrink-0 px-2 py-1 sm:px-3 text-[11px] sm:text-[12px] font-semibold tracking-wider uppercase transition-colors " + (active ? "text-primary" : "text-muted-foreground hover:text-foreground");
1523
1527
  const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1524
1528
  link.label,
1525
1529
  link.external ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -1859,6 +1863,39 @@ function LayoutSubHeader({
1859
1863
  tags.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1 tracking-widest uppercase", children: tags.map((tag, i) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: tag.hideBelow ? HIDE[tag.hideBelow] : void 0, children: tag.label }, i)) })
1860
1864
  ] }) });
1861
1865
  }
1866
+ function OcAppBar({
1867
+ variant = "full",
1868
+ start,
1869
+ center,
1870
+ end,
1871
+ sticky = true,
1872
+ className
1873
+ }) {
1874
+ return /* @__PURE__ */ jsxRuntime.jsx(
1875
+ "header",
1876
+ {
1877
+ className: cn(
1878
+ "bg-background/90 supports-[backdrop-filter]:bg-background/70 w-full border-b backdrop-blur",
1879
+ sticky && "sticky top-0 z-50",
1880
+ className
1881
+ ),
1882
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
1883
+ "div",
1884
+ {
1885
+ className: cn(
1886
+ variant === "full" ? "app-bar" : "container",
1887
+ "flex h-12 items-center justify-between gap-4"
1888
+ ),
1889
+ children: [
1890
+ start,
1891
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 justify-center px-2", children: center }),
1892
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", children: end })
1893
+ ]
1894
+ }
1895
+ )
1896
+ }
1897
+ );
1898
+ }
1862
1899
 
1863
1900
  exports.AppShell = AppShell;
1864
1901
  exports.EcosystemSwitcher = EcosystemSwitcher;
@@ -1866,6 +1903,7 @@ exports.FAMILY_PROPERTIES = FAMILY_PROPERTIES;
1866
1903
  exports.LayoutSubHeader = LayoutSubHeader;
1867
1904
  exports.OcAccountMenu = OcAccountMenu;
1868
1905
  exports.OcAccountMenuView = OcAccountMenuView;
1906
+ exports.OcAppBar = OcAppBar;
1869
1907
  exports.OcDashboardHub = OcDashboardHub;
1870
1908
  exports.OcDashboardShell = OcDashboardShell;
1871
1909
  exports.OcLogoDropdown = OcLogoDropdown;