opus-toolkit-components 1.8.4 → 1.8.5

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.
@@ -1,8 +1,8 @@
1
- export interface FooterProps {
2
- left?: React.ReactNode;
3
- center?: React.ReactNode;
4
- right?: React.ReactNode;
5
- className?: string;
6
- }
7
-
8
- export const Footer: React.ComponentType<FooterProps>;
1
+ export interface FooterProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ left?: React.ReactNode;
3
+ center?: React.ReactNode;
4
+ right?: React.ReactNode;
5
+ className?: string;
6
+ }
7
+
8
+ export const Footer: React.ComponentType<FooterProps>;
@@ -1,15 +1,27 @@
1
- export type HeroIconName = keyof typeof HeroIcons;
2
- export type C247IconName = keyof typeof C247Icons;
3
- export type IconName = HeroIconName | C247IconName;
4
-
5
- export type IconLibrary = "hero" | "c247";
6
-
7
- export interface IconProps extends React.SVGProps<SVGSVGElement> {
8
- name: IconName;
9
- library?: IconLibrary;
10
- size?: number;
11
- className?: string;
12
- color?: string;
13
- }
14
-
15
- export const Icon: React.FC<IconProps>;
1
+ import type * as HeroIcons from "@heroicons/react/24/solid";
2
+
3
+ export type HeroIconName = keyof typeof HeroIcons;
4
+ export type C247IconName =
5
+ | "C247Billing"
6
+ | "C247Dashboard"
7
+ | "C247Deployment"
8
+ | "C247Form"
9
+ | "C247Planner"
10
+ | "C247Reports"
11
+ | "C247Screening"
12
+ | "C247Settings"
13
+ | "C247Support"
14
+ | "C247Tasks";
15
+ export type IconName = HeroIconName | C247IconName;
16
+
17
+ export type IconLibrary = "hero" | "c247";
18
+
19
+ export interface IconProps extends React.SVGProps<SVGSVGElement> {
20
+ name: IconName;
21
+ library?: IconLibrary;
22
+ size?: number;
23
+ className?: string;
24
+ color?: string;
25
+ }
26
+
27
+ export const Icon: React.FC<IconProps>;
@@ -1,8 +1,8 @@
1
- export interface LoaderProps {
2
- isLoading: boolean;
3
- loaderText?: string;
4
- customLoader?: React.ReactNode;
5
- className?: string;
6
- }
7
-
8
- export const Loader: React.FC<LoaderProps>;
1
+ export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ isLoading: boolean;
3
+ loaderText?: string;
4
+ customLoader?: React.ReactNode;
5
+ className?: string;
6
+ }
7
+
8
+ export const Loader: React.FC<LoaderProps>;
@@ -1,13 +1,18 @@
1
+ import type { IconProps } from "../Icon";
2
+
1
3
  export interface SidebarMenuItem {
2
4
  key: string | number;
3
5
  name: string;
4
- icon?: string;
6
+ path?: string;
5
7
  href?: string;
8
+ iconProps?: IconProps;
9
+ onClick?: (key: string | number) => void;
6
10
  }
7
11
 
8
12
  export interface SidebarMenuGroup {
9
13
  key: string | number;
10
14
  name: string;
15
+ iconProps?: IconProps;
11
16
  children: SidebarMenuItem[];
12
17
  }
13
18