@orion-studios/payload-admin-components 0.2.0-beta.0 → 0.2.0-beta.2

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.
@@ -0,0 +1,74 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ declare function Logo(): react_jsx_runtime.JSX.Element;
5
+
6
+ declare function Icon(): react_jsx_runtime.JSX.Element;
7
+
8
+ declare function Dashboard(): react_jsx_runtime.JSX.Element;
9
+
10
+ declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element;
11
+ declare function ThemeProvider({ children }: {
12
+ children: React.ReactNode;
13
+ }): react_jsx_runtime.JSX.Element;
14
+
15
+ declare function HelpTooltip({ content, position, }: {
16
+ content: string;
17
+ position?: 'top' | 'right' | 'bottom' | 'left';
18
+ }): react_jsx_runtime.JSX.Element;
19
+
20
+ type BadgeStatus = 'draft' | 'published' | 'changed';
21
+ declare function StatusBadge({ status, size, }: {
22
+ status: BadgeStatus;
23
+ size?: 'sm' | 'md';
24
+ }): react_jsx_runtime.JSX.Element;
25
+
26
+ declare function EmptyState({ icon, title, description, actionLabel, actionHref, }: {
27
+ icon?: ReactNode;
28
+ title: string;
29
+ description: string;
30
+ actionLabel?: string;
31
+ actionHref?: string;
32
+ }): react_jsx_runtime.JSX.Element;
33
+
34
+ interface BlockOption {
35
+ slug: string;
36
+ label: string;
37
+ description?: string;
38
+ icon?: React.ReactNode;
39
+ imageURL?: string;
40
+ }
41
+ declare function BlockPicker({ blocks, onSelect, }: {
42
+ blocks: BlockOption[];
43
+ onSelect: (slug: string) => void;
44
+ }): react_jsx_runtime.JSX.Element;
45
+
46
+ interface TabConfig {
47
+ label: string;
48
+ icon?: React.ReactNode;
49
+ content: React.ReactNode;
50
+ }
51
+ declare function SectionTabs({ tabs, defaultTab, }: {
52
+ tabs: TabConfig[];
53
+ defaultTab?: number;
54
+ }): react_jsx_runtime.JSX.Element | null;
55
+
56
+ declare function WelcomeHeader({ title, description, tooltip, actions, }: {
57
+ title: string;
58
+ description?: string;
59
+ tooltip?: string;
60
+ actions?: React.ReactNode;
61
+ }): react_jsx_runtime.JSX.Element;
62
+
63
+ type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
64
+ declare function useTheme(): {
65
+ theme: ThemeOption;
66
+ setTheme: (newTheme: ThemeOption) => void;
67
+ isDark: boolean;
68
+ isBrand: boolean;
69
+ isLoading: boolean;
70
+ toggleDarkMode: () => void;
71
+ toggleBrandMode: () => void;
72
+ };
73
+
74
+ export { BlockPicker, Dashboard, EmptyState, HelpTooltip, Icon, Logo, SectionTabs, StatusBadge, type ThemeOption, ThemeProvider, ThemeSwitcher, WelcomeHeader, useTheme };
@@ -0,0 +1,74 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ declare function Logo(): react_jsx_runtime.JSX.Element;
5
+
6
+ declare function Icon(): react_jsx_runtime.JSX.Element;
7
+
8
+ declare function Dashboard(): react_jsx_runtime.JSX.Element;
9
+
10
+ declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element;
11
+ declare function ThemeProvider({ children }: {
12
+ children: React.ReactNode;
13
+ }): react_jsx_runtime.JSX.Element;
14
+
15
+ declare function HelpTooltip({ content, position, }: {
16
+ content: string;
17
+ position?: 'top' | 'right' | 'bottom' | 'left';
18
+ }): react_jsx_runtime.JSX.Element;
19
+
20
+ type BadgeStatus = 'draft' | 'published' | 'changed';
21
+ declare function StatusBadge({ status, size, }: {
22
+ status: BadgeStatus;
23
+ size?: 'sm' | 'md';
24
+ }): react_jsx_runtime.JSX.Element;
25
+
26
+ declare function EmptyState({ icon, title, description, actionLabel, actionHref, }: {
27
+ icon?: ReactNode;
28
+ title: string;
29
+ description: string;
30
+ actionLabel?: string;
31
+ actionHref?: string;
32
+ }): react_jsx_runtime.JSX.Element;
33
+
34
+ interface BlockOption {
35
+ slug: string;
36
+ label: string;
37
+ description?: string;
38
+ icon?: React.ReactNode;
39
+ imageURL?: string;
40
+ }
41
+ declare function BlockPicker({ blocks, onSelect, }: {
42
+ blocks: BlockOption[];
43
+ onSelect: (slug: string) => void;
44
+ }): react_jsx_runtime.JSX.Element;
45
+
46
+ interface TabConfig {
47
+ label: string;
48
+ icon?: React.ReactNode;
49
+ content: React.ReactNode;
50
+ }
51
+ declare function SectionTabs({ tabs, defaultTab, }: {
52
+ tabs: TabConfig[];
53
+ defaultTab?: number;
54
+ }): react_jsx_runtime.JSX.Element | null;
55
+
56
+ declare function WelcomeHeader({ title, description, tooltip, actions, }: {
57
+ title: string;
58
+ description?: string;
59
+ tooltip?: string;
60
+ actions?: React.ReactNode;
61
+ }): react_jsx_runtime.JSX.Element;
62
+
63
+ type ThemeOption = 'light' | 'dark' | 'brand-light' | 'brand-dark';
64
+ declare function useTheme(): {
65
+ theme: ThemeOption;
66
+ setTheme: (newTheme: ThemeOption) => void;
67
+ isDark: boolean;
68
+ isBrand: boolean;
69
+ isLoading: boolean;
70
+ toggleDarkMode: () => void;
71
+ toggleBrandMode: () => void;
72
+ };
73
+
74
+ export { BlockPicker, Dashboard, EmptyState, HelpTooltip, Icon, Logo, SectionTabs, StatusBadge, type ThemeOption, ThemeProvider, ThemeSwitcher, WelcomeHeader, useTheme };