@orangecheck/design 0.6.1 → 0.7.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 +150 -0
- package/dist/chrome.d.ts +150 -0
- package/dist/chrome.js +1633 -0
- package/dist/chrome.js.map +1 -0
- package/dist/chrome.mjs +1616 -0
- package/dist/chrome.mjs.map +1 -0
- package/dist/components.d.mts +5 -1
- package/dist/components.d.ts +5 -1
- package/dist/components.js +1874 -7
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1835 -1
- package/dist/components.mjs.map +1 -1
- package/dist/composites.d.mts +88 -0
- package/dist/composites.d.ts +88 -0
- package/dist/composites.js +268 -0
- package/dist/composites.js.map +1 -0
- package/dist/composites.mjs +236 -0
- package/dist/composites.mjs.map +1 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1912 -133
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1888 -135
- package/dist/index.mjs.map +1 -1
- package/dist/primitives.d.mts +25 -2
- package/dist/primitives.d.ts +25 -2
- package/dist/primitives.js +95 -3
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +90 -4
- package/dist/primitives.mjs.map +1 -1
- package/dist/styles.css +0 -1
- package/package.json +12 -2
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { DisplayIdentity, OcSignOutScope, DisplayIdentityKind, OcAccountSummary } from '@orangecheck/auth-client';
|
|
4
|
+
|
|
5
|
+
type EcosystemSlug = 'home' | 'docs' | 'fleet' | 'me' | 'vault' | 'attest' | 'lock' | 'vote' | 'stamp' | 'agent' | 'pledge' | 'analytics';
|
|
6
|
+
interface EcosystemSwitcherProps {
|
|
7
|
+
current: EcosystemSlug;
|
|
8
|
+
className?: string;
|
|
9
|
+
showOwnerEntries?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function EcosystemSwitcher({ current, className, showOwnerEntries, }: EcosystemSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
type FamilyCategory = 'hub' | 'product' | 'protocol' | 'owner';
|
|
14
|
+
interface FamilyProperty {
|
|
15
|
+
slug: EcosystemSlug;
|
|
16
|
+
origin: string;
|
|
17
|
+
hostname: string;
|
|
18
|
+
label: string;
|
|
19
|
+
sub: string;
|
|
20
|
+
docsHref: string;
|
|
21
|
+
category: FamilyCategory;
|
|
22
|
+
}
|
|
23
|
+
declare const FAMILY_PROPERTIES: ReadonlyArray<FamilyProperty>;
|
|
24
|
+
type SiteState = 'alpha' | 'beta' | 'live';
|
|
25
|
+
declare const SITE_STATE_LABEL: Record<Exclude<SiteState, 'live'>, string>;
|
|
26
|
+
declare function findFamilyProperty(slug: EcosystemSlug): FamilyProperty | undefined;
|
|
27
|
+
|
|
28
|
+
interface OcLogoDropdownProps {
|
|
29
|
+
current: EcosystemSlug;
|
|
30
|
+
homeHref?: string;
|
|
31
|
+
siteState?: SiteState;
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
triggerClassName?: string;
|
|
35
|
+
popoverClassName?: string;
|
|
36
|
+
showOwnerEntries?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare function OcLogoDropdown({ current, homeHref, siteState, children, className, triggerClassName, popoverClassName, showOwnerEntries, }: OcLogoDropdownProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
interface OcAccountMenuItem {
|
|
41
|
+
href: string;
|
|
42
|
+
label: string;
|
|
43
|
+
external?: boolean;
|
|
44
|
+
}
|
|
45
|
+
interface OcAccountMenuBuildInfo {
|
|
46
|
+
version: string;
|
|
47
|
+
sha?: string;
|
|
48
|
+
repo?: string;
|
|
49
|
+
}
|
|
50
|
+
interface OcAccountMenuSession {
|
|
51
|
+
status: 'loading' | 'authenticated' | 'anonymous' | 'error';
|
|
52
|
+
account: {
|
|
53
|
+
didOc: string;
|
|
54
|
+
displayName: string | null;
|
|
55
|
+
displayIdentity: DisplayIdentity;
|
|
56
|
+
nostrNpub?: string | null;
|
|
57
|
+
} | null;
|
|
58
|
+
signOut: (opts?: {
|
|
59
|
+
scope?: OcSignOutScope;
|
|
60
|
+
}) => void | Promise<void>;
|
|
61
|
+
refresh: () => void | Promise<void>;
|
|
62
|
+
setDisplayIdentity: (kind: DisplayIdentityKind) => Promise<void>;
|
|
63
|
+
roster?: OcAccountSummary[];
|
|
64
|
+
switchAccount?: (didOc: string) => Promise<void>;
|
|
65
|
+
addAccountUrl?: (returnTo?: string) => string;
|
|
66
|
+
}
|
|
67
|
+
interface OcAccountMenuProps {
|
|
68
|
+
current: EcosystemSlug;
|
|
69
|
+
signInUrl?: string;
|
|
70
|
+
signInLabel?: string;
|
|
71
|
+
signOutRedirect?: string;
|
|
72
|
+
menuItems?: ReadonlyArray<OcAccountMenuItem>;
|
|
73
|
+
primaryNavLinks?: ReadonlyArray<OcAccountMenuItem>;
|
|
74
|
+
secondaryNavLinks?: ReadonlyArray<OcAccountMenuItem>;
|
|
75
|
+
showFamilyDashboard?: boolean;
|
|
76
|
+
build?: OcAccountMenuBuildInfo;
|
|
77
|
+
siteState?: SiteState;
|
|
78
|
+
className?: string;
|
|
79
|
+
triggerClassName?: string;
|
|
80
|
+
popoverClassName?: string;
|
|
81
|
+
}
|
|
82
|
+
declare function OcAccountMenu(props: OcAccountMenuProps): react_jsx_runtime.JSX.Element;
|
|
83
|
+
interface OcAccountMenuViewProps extends OcAccountMenuProps {
|
|
84
|
+
session: OcAccountMenuSession;
|
|
85
|
+
}
|
|
86
|
+
declare function OcAccountMenuView({ current, signInUrl, signInLabel, signOutRedirect, menuItems, primaryNavLinks, secondaryNavLinks, showFamilyDashboard, build, siteState, className, triggerClassName, popoverClassName, session, }: OcAccountMenuViewProps): react_jsx_runtime.JSX.Element;
|
|
87
|
+
|
|
88
|
+
interface OcPrimaryNavLink {
|
|
89
|
+
href: string;
|
|
90
|
+
label: string;
|
|
91
|
+
external?: boolean;
|
|
92
|
+
matchExact?: boolean;
|
|
93
|
+
}
|
|
94
|
+
interface OcPrimaryNavProps {
|
|
95
|
+
activePath: string;
|
|
96
|
+
links: ReadonlyArray<OcPrimaryNavLink>;
|
|
97
|
+
className?: string;
|
|
98
|
+
}
|
|
99
|
+
declare function OcPrimaryNav({ activePath, links, className }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
|
|
100
|
+
|
|
101
|
+
interface OcDashboardTool {
|
|
102
|
+
id: string;
|
|
103
|
+
href: string;
|
|
104
|
+
label: string;
|
|
105
|
+
tagline?: string;
|
|
106
|
+
icon?: ReactNode;
|
|
107
|
+
external?: boolean;
|
|
108
|
+
}
|
|
109
|
+
interface OcDashboardShellProps {
|
|
110
|
+
rootHref?: string;
|
|
111
|
+
siteLabel?: ReactNode;
|
|
112
|
+
tools: ReadonlyArray<OcDashboardTool>;
|
|
113
|
+
active?: string;
|
|
114
|
+
eyebrow?: ReactNode;
|
|
115
|
+
title?: ReactNode;
|
|
116
|
+
description?: ReactNode;
|
|
117
|
+
children: ReactNode;
|
|
118
|
+
className?: string;
|
|
119
|
+
}
|
|
120
|
+
declare function OcDashboardShell({ rootHref, siteLabel, tools, active, eyebrow, title, description, children, className, }: OcDashboardShellProps): react_jsx_runtime.JSX.Element;
|
|
121
|
+
interface OcDashboardHubProps {
|
|
122
|
+
tools: ReadonlyArray<OcDashboardTool>;
|
|
123
|
+
className?: string;
|
|
124
|
+
}
|
|
125
|
+
declare function OcDashboardHub({ tools, className }: OcDashboardHubProps): react_jsx_runtime.JSX.Element;
|
|
126
|
+
|
|
127
|
+
interface AppShellProps {
|
|
128
|
+
eyebrow?: ReactNode;
|
|
129
|
+
title?: ReactNode;
|
|
130
|
+
description?: ReactNode;
|
|
131
|
+
headerActions?: ReactNode;
|
|
132
|
+
children: ReactNode;
|
|
133
|
+
className?: string;
|
|
134
|
+
}
|
|
135
|
+
declare function AppShell({ eyebrow, title, description, headerActions, children, className, }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
interface LayoutSubHeaderTag {
|
|
138
|
+
label: string;
|
|
139
|
+
hideBelow?: 'sm' | 'md' | 'lg';
|
|
140
|
+
}
|
|
141
|
+
interface LayoutSubHeaderProps {
|
|
142
|
+
product: string;
|
|
143
|
+
status?: string;
|
|
144
|
+
tags?: LayoutSubHeaderTag[];
|
|
145
|
+
noHeartbeat?: boolean;
|
|
146
|
+
className?: string;
|
|
147
|
+
}
|
|
148
|
+
declare function LayoutSubHeader({ product, status, tags, noHeartbeat, className, }: LayoutSubHeaderProps): react_jsx_runtime.JSX.Element;
|
|
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 };
|
package/dist/chrome.d.ts
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { DisplayIdentity, OcSignOutScope, DisplayIdentityKind, OcAccountSummary } from '@orangecheck/auth-client';
|
|
4
|
+
|
|
5
|
+
type EcosystemSlug = 'home' | 'docs' | 'fleet' | 'me' | 'vault' | 'attest' | 'lock' | 'vote' | 'stamp' | 'agent' | 'pledge' | 'analytics';
|
|
6
|
+
interface EcosystemSwitcherProps {
|
|
7
|
+
current: EcosystemSlug;
|
|
8
|
+
className?: string;
|
|
9
|
+
showOwnerEntries?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function EcosystemSwitcher({ current, className, showOwnerEntries, }: EcosystemSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
type FamilyCategory = 'hub' | 'product' | 'protocol' | 'owner';
|
|
14
|
+
interface FamilyProperty {
|
|
15
|
+
slug: EcosystemSlug;
|
|
16
|
+
origin: string;
|
|
17
|
+
hostname: string;
|
|
18
|
+
label: string;
|
|
19
|
+
sub: string;
|
|
20
|
+
docsHref: string;
|
|
21
|
+
category: FamilyCategory;
|
|
22
|
+
}
|
|
23
|
+
declare const FAMILY_PROPERTIES: ReadonlyArray<FamilyProperty>;
|
|
24
|
+
type SiteState = 'alpha' | 'beta' | 'live';
|
|
25
|
+
declare const SITE_STATE_LABEL: Record<Exclude<SiteState, 'live'>, string>;
|
|
26
|
+
declare function findFamilyProperty(slug: EcosystemSlug): FamilyProperty | undefined;
|
|
27
|
+
|
|
28
|
+
interface OcLogoDropdownProps {
|
|
29
|
+
current: EcosystemSlug;
|
|
30
|
+
homeHref?: string;
|
|
31
|
+
siteState?: SiteState;
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
triggerClassName?: string;
|
|
35
|
+
popoverClassName?: string;
|
|
36
|
+
showOwnerEntries?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare function OcLogoDropdown({ current, homeHref, siteState, children, className, triggerClassName, popoverClassName, showOwnerEntries, }: OcLogoDropdownProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
interface OcAccountMenuItem {
|
|
41
|
+
href: string;
|
|
42
|
+
label: string;
|
|
43
|
+
external?: boolean;
|
|
44
|
+
}
|
|
45
|
+
interface OcAccountMenuBuildInfo {
|
|
46
|
+
version: string;
|
|
47
|
+
sha?: string;
|
|
48
|
+
repo?: string;
|
|
49
|
+
}
|
|
50
|
+
interface OcAccountMenuSession {
|
|
51
|
+
status: 'loading' | 'authenticated' | 'anonymous' | 'error';
|
|
52
|
+
account: {
|
|
53
|
+
didOc: string;
|
|
54
|
+
displayName: string | null;
|
|
55
|
+
displayIdentity: DisplayIdentity;
|
|
56
|
+
nostrNpub?: string | null;
|
|
57
|
+
} | null;
|
|
58
|
+
signOut: (opts?: {
|
|
59
|
+
scope?: OcSignOutScope;
|
|
60
|
+
}) => void | Promise<void>;
|
|
61
|
+
refresh: () => void | Promise<void>;
|
|
62
|
+
setDisplayIdentity: (kind: DisplayIdentityKind) => Promise<void>;
|
|
63
|
+
roster?: OcAccountSummary[];
|
|
64
|
+
switchAccount?: (didOc: string) => Promise<void>;
|
|
65
|
+
addAccountUrl?: (returnTo?: string) => string;
|
|
66
|
+
}
|
|
67
|
+
interface OcAccountMenuProps {
|
|
68
|
+
current: EcosystemSlug;
|
|
69
|
+
signInUrl?: string;
|
|
70
|
+
signInLabel?: string;
|
|
71
|
+
signOutRedirect?: string;
|
|
72
|
+
menuItems?: ReadonlyArray<OcAccountMenuItem>;
|
|
73
|
+
primaryNavLinks?: ReadonlyArray<OcAccountMenuItem>;
|
|
74
|
+
secondaryNavLinks?: ReadonlyArray<OcAccountMenuItem>;
|
|
75
|
+
showFamilyDashboard?: boolean;
|
|
76
|
+
build?: OcAccountMenuBuildInfo;
|
|
77
|
+
siteState?: SiteState;
|
|
78
|
+
className?: string;
|
|
79
|
+
triggerClassName?: string;
|
|
80
|
+
popoverClassName?: string;
|
|
81
|
+
}
|
|
82
|
+
declare function OcAccountMenu(props: OcAccountMenuProps): react_jsx_runtime.JSX.Element;
|
|
83
|
+
interface OcAccountMenuViewProps extends OcAccountMenuProps {
|
|
84
|
+
session: OcAccountMenuSession;
|
|
85
|
+
}
|
|
86
|
+
declare function OcAccountMenuView({ current, signInUrl, signInLabel, signOutRedirect, menuItems, primaryNavLinks, secondaryNavLinks, showFamilyDashboard, build, siteState, className, triggerClassName, popoverClassName, session, }: OcAccountMenuViewProps): react_jsx_runtime.JSX.Element;
|
|
87
|
+
|
|
88
|
+
interface OcPrimaryNavLink {
|
|
89
|
+
href: string;
|
|
90
|
+
label: string;
|
|
91
|
+
external?: boolean;
|
|
92
|
+
matchExact?: boolean;
|
|
93
|
+
}
|
|
94
|
+
interface OcPrimaryNavProps {
|
|
95
|
+
activePath: string;
|
|
96
|
+
links: ReadonlyArray<OcPrimaryNavLink>;
|
|
97
|
+
className?: string;
|
|
98
|
+
}
|
|
99
|
+
declare function OcPrimaryNav({ activePath, links, className }: OcPrimaryNavProps): react_jsx_runtime.JSX.Element;
|
|
100
|
+
|
|
101
|
+
interface OcDashboardTool {
|
|
102
|
+
id: string;
|
|
103
|
+
href: string;
|
|
104
|
+
label: string;
|
|
105
|
+
tagline?: string;
|
|
106
|
+
icon?: ReactNode;
|
|
107
|
+
external?: boolean;
|
|
108
|
+
}
|
|
109
|
+
interface OcDashboardShellProps {
|
|
110
|
+
rootHref?: string;
|
|
111
|
+
siteLabel?: ReactNode;
|
|
112
|
+
tools: ReadonlyArray<OcDashboardTool>;
|
|
113
|
+
active?: string;
|
|
114
|
+
eyebrow?: ReactNode;
|
|
115
|
+
title?: ReactNode;
|
|
116
|
+
description?: ReactNode;
|
|
117
|
+
children: ReactNode;
|
|
118
|
+
className?: string;
|
|
119
|
+
}
|
|
120
|
+
declare function OcDashboardShell({ rootHref, siteLabel, tools, active, eyebrow, title, description, children, className, }: OcDashboardShellProps): react_jsx_runtime.JSX.Element;
|
|
121
|
+
interface OcDashboardHubProps {
|
|
122
|
+
tools: ReadonlyArray<OcDashboardTool>;
|
|
123
|
+
className?: string;
|
|
124
|
+
}
|
|
125
|
+
declare function OcDashboardHub({ tools, className }: OcDashboardHubProps): react_jsx_runtime.JSX.Element;
|
|
126
|
+
|
|
127
|
+
interface AppShellProps {
|
|
128
|
+
eyebrow?: ReactNode;
|
|
129
|
+
title?: ReactNode;
|
|
130
|
+
description?: ReactNode;
|
|
131
|
+
headerActions?: ReactNode;
|
|
132
|
+
children: ReactNode;
|
|
133
|
+
className?: string;
|
|
134
|
+
}
|
|
135
|
+
declare function AppShell({ eyebrow, title, description, headerActions, children, className, }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
interface LayoutSubHeaderTag {
|
|
138
|
+
label: string;
|
|
139
|
+
hideBelow?: 'sm' | 'md' | 'lg';
|
|
140
|
+
}
|
|
141
|
+
interface LayoutSubHeaderProps {
|
|
142
|
+
product: string;
|
|
143
|
+
status?: string;
|
|
144
|
+
tags?: LayoutSubHeaderTag[];
|
|
145
|
+
noHeartbeat?: boolean;
|
|
146
|
+
className?: string;
|
|
147
|
+
}
|
|
148
|
+
declare function LayoutSubHeader({ product, status, tags, noHeartbeat, className, }: LayoutSubHeaderProps): react_jsx_runtime.JSX.Element;
|
|
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 };
|