@orangecheck/ui 0.4.0 → 0.6.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
@@ -8,15 +8,55 @@ interface EcosystemSwitcherProps {
8
8
  }
9
9
  declare function EcosystemSwitcher({ current, className, }: EcosystemSwitcherProps): react_jsx_runtime.JSX.Element;
10
10
 
11
+ type FamilyCategory = 'hub' | 'product' | 'protocol';
12
+ interface FamilyProperty {
13
+ slug: EcosystemSlug;
14
+ origin: string;
15
+ hostname: string;
16
+ label: string;
17
+ sub: string;
18
+ docsHref: string;
19
+ category: FamilyCategory;
20
+ }
21
+ declare const FAMILY_PROPERTIES: ReadonlyArray<FamilyProperty>;
22
+ type SiteState = 'alpha' | 'beta' | 'live';
23
+ declare const SITE_STATE_LABEL: Record<Exclude<SiteState, 'live'>, string>;
24
+ declare function findFamilyProperty(slug: EcosystemSlug): FamilyProperty | undefined;
25
+
11
26
  interface OcLogoDropdownProps {
12
27
  current: EcosystemSlug;
13
28
  homeHref?: string;
29
+ siteState?: SiteState;
14
30
  children: ReactNode;
15
31
  className?: string;
16
32
  triggerClassName?: string;
17
33
  popoverClassName?: string;
18
34
  }
19
- declare function OcLogoDropdown({ current, homeHref, children, className, triggerClassName, popoverClassName, }: OcLogoDropdownProps): react_jsx_runtime.JSX.Element;
35
+ declare function OcLogoDropdown({ current, homeHref, siteState, children, className, triggerClassName, popoverClassName, }: OcLogoDropdownProps): react_jsx_runtime.JSX.Element;
36
+
37
+ interface OcAccountMenuItem {
38
+ href: string;
39
+ label: string;
40
+ external?: boolean;
41
+ }
42
+ interface OcAccountMenuBuildInfo {
43
+ version: string;
44
+ sha?: string;
45
+ repo?: string;
46
+ }
47
+ interface OcAccountMenuProps {
48
+ current: EcosystemSlug;
49
+ signInUrl?: string;
50
+ signInLabel?: string;
51
+ menuItems?: ReadonlyArray<OcAccountMenuItem>;
52
+ showFamilyDashboard?: boolean;
53
+ build?: OcAccountMenuBuildInfo;
54
+ siteState?: SiteState;
55
+ className?: string;
56
+ triggerClassName?: string;
57
+ popoverClassName?: string;
58
+ }
59
+ declare function OcAccountMenu({ current, signInUrl, signInLabel, menuItems, showFamilyDashboard, build, siteState, className, triggerClassName, popoverClassName, }: OcAccountMenuProps): react_jsx_runtime.JSX.Element;
20
60
 
21
61
  interface AppShellProps {
22
62
  eyebrow?: ReactNode;
@@ -68,4 +108,4 @@ declare function StatTile({ children, ...item }: StatItem & {
68
108
  children?: ReactNode;
69
109
  }): react_jsx_runtime.JSX.Element;
70
110
 
71
- export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, EmptyState, type EmptyStateCta, type EmptyStateProps, OcLogoDropdown, type OcLogoDropdownProps, SectionHeader, type SectionHeaderProps, StatGrid, type StatGridProps, type StatItem, StatTile };
111
+ 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, OcLogoDropdown, type OcLogoDropdownProps, SITE_STATE_LABEL, SectionHeader, type SectionHeaderProps, type SiteState, StatGrid, type StatGridProps, type StatItem, StatTile, findFamilyProperty };
package/dist/index.d.ts CHANGED
@@ -8,15 +8,55 @@ interface EcosystemSwitcherProps {
8
8
  }
9
9
  declare function EcosystemSwitcher({ current, className, }: EcosystemSwitcherProps): react_jsx_runtime.JSX.Element;
10
10
 
11
+ type FamilyCategory = 'hub' | 'product' | 'protocol';
12
+ interface FamilyProperty {
13
+ slug: EcosystemSlug;
14
+ origin: string;
15
+ hostname: string;
16
+ label: string;
17
+ sub: string;
18
+ docsHref: string;
19
+ category: FamilyCategory;
20
+ }
21
+ declare const FAMILY_PROPERTIES: ReadonlyArray<FamilyProperty>;
22
+ type SiteState = 'alpha' | 'beta' | 'live';
23
+ declare const SITE_STATE_LABEL: Record<Exclude<SiteState, 'live'>, string>;
24
+ declare function findFamilyProperty(slug: EcosystemSlug): FamilyProperty | undefined;
25
+
11
26
  interface OcLogoDropdownProps {
12
27
  current: EcosystemSlug;
13
28
  homeHref?: string;
29
+ siteState?: SiteState;
14
30
  children: ReactNode;
15
31
  className?: string;
16
32
  triggerClassName?: string;
17
33
  popoverClassName?: string;
18
34
  }
19
- declare function OcLogoDropdown({ current, homeHref, children, className, triggerClassName, popoverClassName, }: OcLogoDropdownProps): react_jsx_runtime.JSX.Element;
35
+ declare function OcLogoDropdown({ current, homeHref, siteState, children, className, triggerClassName, popoverClassName, }: OcLogoDropdownProps): react_jsx_runtime.JSX.Element;
36
+
37
+ interface OcAccountMenuItem {
38
+ href: string;
39
+ label: string;
40
+ external?: boolean;
41
+ }
42
+ interface OcAccountMenuBuildInfo {
43
+ version: string;
44
+ sha?: string;
45
+ repo?: string;
46
+ }
47
+ interface OcAccountMenuProps {
48
+ current: EcosystemSlug;
49
+ signInUrl?: string;
50
+ signInLabel?: string;
51
+ menuItems?: ReadonlyArray<OcAccountMenuItem>;
52
+ showFamilyDashboard?: boolean;
53
+ build?: OcAccountMenuBuildInfo;
54
+ siteState?: SiteState;
55
+ className?: string;
56
+ triggerClassName?: string;
57
+ popoverClassName?: string;
58
+ }
59
+ declare function OcAccountMenu({ current, signInUrl, signInLabel, menuItems, showFamilyDashboard, build, siteState, className, triggerClassName, popoverClassName, }: OcAccountMenuProps): react_jsx_runtime.JSX.Element;
20
60
 
21
61
  interface AppShellProps {
22
62
  eyebrow?: ReactNode;
@@ -68,4 +108,4 @@ declare function StatTile({ children, ...item }: StatItem & {
68
108
  children?: ReactNode;
69
109
  }): react_jsx_runtime.JSX.Element;
70
110
 
71
- export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, EmptyState, type EmptyStateCta, type EmptyStateProps, OcLogoDropdown, type OcLogoDropdownProps, SectionHeader, type SectionHeaderProps, StatGrid, type StatGridProps, type StatItem, StatTile };
111
+ 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, OcLogoDropdown, type OcLogoDropdownProps, SITE_STATE_LABEL, SectionHeader, type SectionHeaderProps, type SiteState, StatGrid, type StatGridProps, type StatItem, StatTile, findFamilyProperty };