ikon-react-components-lib 1.0.1 → 1.0.3

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/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
2
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
3
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
4
4
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
+ import { AxiosInstance } from 'axios';
5
6
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
6
7
  import { ClassProp } from 'class-variance-authority/types';
7
8
  import { ClassValue } from 'clsx';
@@ -184,6 +185,8 @@ export declare function AvatarGroupCount({ className, ...props }: React_2.Compon
184
185
 
185
186
  export declare function AvatarImage({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Image>): JSX.Element;
186
187
 
188
+ export declare const axiosInstance: AxiosInstance;
189
+
187
190
  export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
188
191
  asChild?: boolean;
189
192
  }): JSX.Element;
@@ -346,14 +349,7 @@ export declare function CommandSeparator({ className, ...props }: React_2.Compon
346
349
 
347
350
  export declare function CommandShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
348
351
 
349
- export declare const convertFileToObject: (file: File) => Promise<{
350
- message: string;
351
- fileName: string;
352
- size: number;
353
- type: string;
354
- lastModified: number;
355
- base64: string;
356
- }>;
352
+ export declare const convertFileToObject: (file: File) => Promise<FileObjType>;
357
353
 
358
354
  export declare interface CookieSessionOptionsProps {
359
355
  maxAge?: number;
@@ -644,7 +640,7 @@ export declare function FileUploader({ label, isDrag, onFileSelect, }: FileUploa
644
640
  export declare interface FileUploaderProps {
645
641
  label?: string;
646
642
  isDrag?: boolean;
647
- onFileSelect: (fileObj: FileObjType) => Promise<FileObjType> | void;
643
+ onFileSelect: (fileObj: FileObjType) => Promise<FileObjType> | Promise<void> | void;
648
644
  }
649
645
 
650
646
  declare interface FontContextType {
@@ -745,6 +741,8 @@ export declare function FormMultiComboboxInput({ formControl, name, label, place
745
741
 
746
742
  export declare function FormOtpInput({ formControl, label, formDescription, extraFormComponent, name, ...inputProps }: FormInputProps): JSX.Element;
747
743
 
744
+ export declare function FormPasswordInput({ formControl, label, formDescription, extraFormComponent, name, ...inputProps }: FormInputProps): JSX.Element;
745
+
748
746
  export declare function FormPhoneInput(): JSX.Element;
749
747
 
750
748
  export declare function FormTextarea({ formControl, name, label, formItemClass, formDescription, ...textAreaProps }: FormTextareaProps): JSX.Element;
@@ -1075,6 +1073,12 @@ export declare function RenderAppBreadcrumb({ breadcrumb, }: {
1075
1073
  breadcrumb: BreadcrumbItemProps;
1076
1074
  }): JSX.Element;
1077
1075
 
1076
+ export declare function RenderSidebarNav({ items, sidebarHeader, sidebarFooter, }: {
1077
+ items: SidebarNavItem[];
1078
+ sidebarHeader?: ReactNode;
1079
+ sidebarFooter?: ReactNode;
1080
+ }): null;
1081
+
1078
1082
  export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.Root>): JSX.Element;
1079
1083
 
1080
1084
  export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ikon-react-components-lib",
3
3
  "private": false,
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "type": "module",
6
6
  "main": "./dist/ikon-react-components-lib.cjs.js",
7
7
  "module": "./dist/ikon-react-components-lib.es.js",
@@ -66,7 +66,6 @@
66
66
  "jwt-decode": "^4.0.0",
67
67
  "lucide-react": "^0.574.0",
68
68
  "motion": "^12.34.3",
69
- "next-themes": "^0.4.6",
70
69
  "react": "^19.2.0",
71
70
  "react-big-calendar": "^1.19.4",
72
71
  "react-cropper": "^2.3.3",
@@ -74,7 +73,7 @@
74
73
  "react-dom": "^19.2.0",
75
74
  "react-hook-form": "^7.71.1",
76
75
  "react-resizable-panels": "^4.6.4",
77
- "react-router-dom": "^7.13.0",
76
+ "react-router": "^7.13.1",
78
77
  "recharts": "^2.15.4",
79
78
  "remark-gfm": "^4.0.1",
80
79
  "sonner": "^2.0.7",