@orangecheck/design 0.13.1 → 0.14.1

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
@@ -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
@@ -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
@@ -1863,6 +1863,39 @@ function LayoutSubHeader({
1863
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)) })
1864
1864
  ] }) });
1865
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
+ }
1866
1899
 
1867
1900
  exports.AppShell = AppShell;
1868
1901
  exports.EcosystemSwitcher = EcosystemSwitcher;
@@ -1870,6 +1903,7 @@ exports.FAMILY_PROPERTIES = FAMILY_PROPERTIES;
1870
1903
  exports.LayoutSubHeader = LayoutSubHeader;
1871
1904
  exports.OcAccountMenu = OcAccountMenu;
1872
1905
  exports.OcAccountMenuView = OcAccountMenuView;
1906
+ exports.OcAppBar = OcAppBar;
1873
1907
  exports.OcDashboardHub = OcDashboardHub;
1874
1908
  exports.OcDashboardShell = OcDashboardShell;
1875
1909
  exports.OcLogoDropdown = OcLogoDropdown;