randmarcomps 1.31.0 → 1.32.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/randmarcomps.d.ts +12 -58
- package/dist/randmarcomps.js +385 -384
- package/dist/randmarcomps.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -10,6 +10,14 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
|
10
10
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
11
11
|
import { VariantProps } from 'class-variance-authority';
|
|
12
12
|
|
|
13
|
+
export declare function AvatarFooter({ getMyAccountPath, publicName, applicationName }: AvatarFooterProps): JSX.Element;
|
|
14
|
+
|
|
15
|
+
export declare interface AvatarFooterProps {
|
|
16
|
+
publicName?: string;
|
|
17
|
+
applicationName: string;
|
|
18
|
+
getMyAccountPath: (appId: string) => string;
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
14
22
|
|
|
15
23
|
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -35,79 +43,25 @@ export declare function InputOTPSlot({ index, className, ...props }: React_2.Com
|
|
|
35
43
|
index: number;
|
|
36
44
|
}): JSX.Element;
|
|
37
45
|
|
|
38
|
-
export declare function Layout({ children, routes,
|
|
46
|
+
export declare function Layout({ children, routes, footer, searchResultsRouteName, dashboardTitle, onSignOut, }: LayoutProps): JSX.Element;
|
|
39
47
|
|
|
40
|
-
/**
|
|
41
|
-
* Props for the Layout component
|
|
42
|
-
*/
|
|
43
48
|
declare interface LayoutProps {
|
|
44
|
-
/**
|
|
45
|
-
* Child components to render within the layout
|
|
46
|
-
*/
|
|
47
49
|
children: React.ReactNode;
|
|
48
|
-
|
|
49
|
-
* Array of application routes for navigation
|
|
50
|
-
*/
|
|
50
|
+
footer: React.ReactNode;
|
|
51
51
|
routes: NavRoute[];
|
|
52
|
-
/**
|
|
53
|
-
* Route name for search results page
|
|
54
|
-
* @default "search"
|
|
55
|
-
*/
|
|
56
52
|
searchResultsRouteName?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Function to get the path to the account page for a given appID
|
|
59
|
-
*/
|
|
60
|
-
getMyAccountPath: (appId: string) => string;
|
|
61
|
-
/**
|
|
62
|
-
* Account data containing partner information
|
|
63
|
-
*/
|
|
64
|
-
accountData?: {
|
|
65
|
-
PublicName?: string;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* Application name from the user profile
|
|
69
|
-
*/
|
|
70
|
-
applicationName?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Title to display in the dashboard header
|
|
73
|
-
* @default "Partner Dashboard"
|
|
74
|
-
*/
|
|
75
53
|
dashboardTitle?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Function to handle sign out action
|
|
78
|
-
*/
|
|
79
54
|
onSignOut: () => void;
|
|
80
55
|
}
|
|
81
56
|
|
|
82
|
-
export declare function Navbar({ routes,
|
|
57
|
+
export declare function Navbar({ routes, footer, dashboardTitle }: NavbarProps): JSX.Element;
|
|
83
58
|
|
|
84
59
|
declare interface NavbarProps {
|
|
85
|
-
/**
|
|
86
|
-
* Array of application routes to display in the navigation
|
|
87
|
-
*/
|
|
88
60
|
routes: NavRoute[];
|
|
89
|
-
/**
|
|
90
|
-
* Function to get the path to the account page for a given appID
|
|
91
|
-
*/
|
|
92
|
-
getMyAccountPath: (appId: string) => string;
|
|
93
|
-
/**
|
|
94
|
-
* Public name of the partner
|
|
95
|
-
*/
|
|
96
|
-
publicName?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Application name from the user profile
|
|
99
|
-
*/
|
|
100
|
-
applicationName?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Title to display in the dashboard header
|
|
103
|
-
* @default "Partner Dashboard"
|
|
104
|
-
*/
|
|
105
61
|
dashboardTitle?: string;
|
|
62
|
+
footer: React.ReactNode;
|
|
106
63
|
}
|
|
107
64
|
|
|
108
|
-
/**
|
|
109
|
-
* Minimal interface for route configuration needed by the navbar
|
|
110
|
-
*/
|
|
111
65
|
export declare interface NavRoute {
|
|
112
66
|
key: string;
|
|
113
67
|
path: string;
|