@orangecheck/ui 0.6.1 → 0.8.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.d.mts CHANGED
@@ -58,6 +58,8 @@ interface OcAccountMenuProps {
58
58
  signInUrl?: string;
59
59
  signInLabel?: string;
60
60
  menuItems?: ReadonlyArray<OcAccountMenuItem>;
61
+ primaryNavLinks?: ReadonlyArray<OcAccountMenuItem>;
62
+ secondaryNavLinks?: ReadonlyArray<OcAccountMenuItem>;
61
63
  showFamilyDashboard?: boolean;
62
64
  build?: OcAccountMenuBuildInfo;
63
65
  siteState?: SiteState;
@@ -69,7 +71,46 @@ declare function OcAccountMenu(props: OcAccountMenuProps): react_jsx_runtime.JSX
69
71
  interface OcAccountMenuViewProps extends OcAccountMenuProps {
70
72
  session: OcAccountMenuSession;
71
73
  }
72
- declare function OcAccountMenuView({ current, signInUrl, signInLabel, menuItems, showFamilyDashboard, build, siteState, className, triggerClassName, popoverClassName, session, }: OcAccountMenuViewProps): react_jsx_runtime.JSX.Element;
74
+ declare function OcAccountMenuView({ current, signInUrl, signInLabel, menuItems, primaryNavLinks, secondaryNavLinks, showFamilyDashboard, build, siteState, className, triggerClassName, popoverClassName, session, }: OcAccountMenuViewProps): react_jsx_runtime.JSX.Element;
75
+
76
+ interface OcPrimaryNavLink {
77
+ href: string;
78
+ label: string;
79
+ external?: boolean;
80
+ matchExact?: boolean;
81
+ }
82
+ interface OcPrimaryNavProps {
83
+ activePath: string;
84
+ links: ReadonlyArray<OcPrimaryNavLink>;
85
+ className?: string;
86
+ }
87
+ declare function OcPrimaryNav({ activePath, links, className }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
88
+
89
+ interface OcDashboardTool {
90
+ id: string;
91
+ href: string;
92
+ label: string;
93
+ tagline?: string;
94
+ icon?: ReactNode;
95
+ external?: boolean;
96
+ }
97
+ interface OcDashboardShellProps {
98
+ rootHref?: string;
99
+ siteLabel?: ReactNode;
100
+ tools: ReadonlyArray<OcDashboardTool>;
101
+ active?: string;
102
+ eyebrow?: ReactNode;
103
+ title?: ReactNode;
104
+ description?: ReactNode;
105
+ children: ReactNode;
106
+ className?: string;
107
+ }
108
+ declare function OcDashboardShell({ rootHref, siteLabel, tools, active, eyebrow, title, description, children, className, }: OcDashboardShellProps): react_jsx_runtime.JSX.Element;
109
+ interface OcDashboardHubProps {
110
+ tools: ReadonlyArray<OcDashboardTool>;
111
+ className?: string;
112
+ }
113
+ declare function OcDashboardHub({ tools, className }: OcDashboardHubProps): react_jsx_runtime.JSX.Element;
73
114
 
74
115
  interface AppShellProps {
75
116
  eyebrow?: ReactNode;
@@ -121,4 +162,4 @@ declare function StatTile({ children, ...item }: StatItem & {
121
162
  children?: ReactNode;
122
163
  }): react_jsx_runtime.JSX.Element;
123
164
 
124
- export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, EmptyState, type EmptyStateCta, type EmptyStateProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, OcAccountMenu, type OcAccountMenuBuildInfo, type OcAccountMenuItem, type OcAccountMenuProps, type OcAccountMenuSession, OcAccountMenuView, type OcAccountMenuViewProps, OcLogoDropdown, type OcLogoDropdownProps, SITE_STATE_LABEL, SectionHeader, type SectionHeaderProps, type SiteState, StatGrid, type StatGridProps, type StatItem, StatTile, findFamilyProperty };
165
+ export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, EmptyState, type EmptyStateCta, type EmptyStateProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, 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, SectionHeader, type SectionHeaderProps, type SiteState, StatGrid, type StatGridProps, type StatItem, StatTile, findFamilyProperty };
package/dist/index.d.ts CHANGED
@@ -58,6 +58,8 @@ interface OcAccountMenuProps {
58
58
  signInUrl?: string;
59
59
  signInLabel?: string;
60
60
  menuItems?: ReadonlyArray<OcAccountMenuItem>;
61
+ primaryNavLinks?: ReadonlyArray<OcAccountMenuItem>;
62
+ secondaryNavLinks?: ReadonlyArray<OcAccountMenuItem>;
61
63
  showFamilyDashboard?: boolean;
62
64
  build?: OcAccountMenuBuildInfo;
63
65
  siteState?: SiteState;
@@ -69,7 +71,46 @@ declare function OcAccountMenu(props: OcAccountMenuProps): react_jsx_runtime.JSX
69
71
  interface OcAccountMenuViewProps extends OcAccountMenuProps {
70
72
  session: OcAccountMenuSession;
71
73
  }
72
- declare function OcAccountMenuView({ current, signInUrl, signInLabel, menuItems, showFamilyDashboard, build, siteState, className, triggerClassName, popoverClassName, session, }: OcAccountMenuViewProps): react_jsx_runtime.JSX.Element;
74
+ declare function OcAccountMenuView({ current, signInUrl, signInLabel, menuItems, primaryNavLinks, secondaryNavLinks, showFamilyDashboard, build, siteState, className, triggerClassName, popoverClassName, session, }: OcAccountMenuViewProps): react_jsx_runtime.JSX.Element;
75
+
76
+ interface OcPrimaryNavLink {
77
+ href: string;
78
+ label: string;
79
+ external?: boolean;
80
+ matchExact?: boolean;
81
+ }
82
+ interface OcPrimaryNavProps {
83
+ activePath: string;
84
+ links: ReadonlyArray<OcPrimaryNavLink>;
85
+ className?: string;
86
+ }
87
+ declare function OcPrimaryNav({ activePath, links, className }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
88
+
89
+ interface OcDashboardTool {
90
+ id: string;
91
+ href: string;
92
+ label: string;
93
+ tagline?: string;
94
+ icon?: ReactNode;
95
+ external?: boolean;
96
+ }
97
+ interface OcDashboardShellProps {
98
+ rootHref?: string;
99
+ siteLabel?: ReactNode;
100
+ tools: ReadonlyArray<OcDashboardTool>;
101
+ active?: string;
102
+ eyebrow?: ReactNode;
103
+ title?: ReactNode;
104
+ description?: ReactNode;
105
+ children: ReactNode;
106
+ className?: string;
107
+ }
108
+ declare function OcDashboardShell({ rootHref, siteLabel, tools, active, eyebrow, title, description, children, className, }: OcDashboardShellProps): react_jsx_runtime.JSX.Element;
109
+ interface OcDashboardHubProps {
110
+ tools: ReadonlyArray<OcDashboardTool>;
111
+ className?: string;
112
+ }
113
+ declare function OcDashboardHub({ tools, className }: OcDashboardHubProps): react_jsx_runtime.JSX.Element;
73
114
 
74
115
  interface AppShellProps {
75
116
  eyebrow?: ReactNode;
@@ -121,4 +162,4 @@ declare function StatTile({ children, ...item }: StatItem & {
121
162
  children?: ReactNode;
122
163
  }): react_jsx_runtime.JSX.Element;
123
164
 
124
- export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, EmptyState, type EmptyStateCta, type EmptyStateProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, OcAccountMenu, type OcAccountMenuBuildInfo, type OcAccountMenuItem, type OcAccountMenuProps, type OcAccountMenuSession, OcAccountMenuView, type OcAccountMenuViewProps, OcLogoDropdown, type OcLogoDropdownProps, SITE_STATE_LABEL, SectionHeader, type SectionHeaderProps, type SiteState, StatGrid, type StatGridProps, type StatItem, StatTile, findFamilyProperty };
165
+ export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, EmptyState, type EmptyStateCta, type EmptyStateProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, 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, SectionHeader, type SectionHeaderProps, type SiteState, StatGrid, type StatGridProps, type StatItem, StatTile, findFamilyProperty };