randmarcomps 1.30.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/README.md CHANGED
@@ -18,6 +18,23 @@ This component library requires the following dependencies:
18
18
  npm install tailwindcss@^4.0.0
19
19
  ```
20
20
 
21
+ For Tailwind CSS v4, you need to add the following directives to your CSS file to include the styles from randmarcomps:
22
+
23
+ ```css
24
+ /* In your main CSS file (e.g., src/index.css) */
25
+ @import "tailwindcss";
26
+ @plugin "tailwindcss-animate";
27
+ @custom-variant dark (&:is(.dark *));
28
+ @import "../node_modules/randmarcomps/dist/style.css";
29
+ @source "../node_modules/randmarcomps/dist";
30
+
31
+ /* Rest of your CSS */
32
+ ```
33
+
34
+ This directive tells Tailwind to process the components from randmarcomps when generating your CSS.
35
+
36
+ If you're using a different path structure, adjust the path accordingly. The path should be relative to your CSS file.
37
+
21
38
  ### React Router
22
39
 
23
40
  Several components (like Navbar and Topbar) require React Router:
@@ -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, searchResultsRouteName, getMyAccountPath, accountData, applicationName, dashboardTitle, onSignOut, }: LayoutProps): JSX.Element;
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, getMyAccountPath, publicName, applicationName, dashboardTitle }: NavbarProps): JSX.Element;
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;