@lgsm/modules 1.2.0 → 1.4.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.
@@ -0,0 +1 @@
1
+ export declare function decodeToken(token: string): any;
@@ -0,0 +1 @@
1
+ export declare const loginRedirect: (url: string) => void;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ interface ModalProps {
3
+ children: ReactNode;
4
+ title: ReactNode;
5
+ action?: () => void;
6
+ isDialogOpen: boolean;
7
+ onClose: () => void;
8
+ isDisabled?: boolean;
9
+ buttonText: string;
10
+ }
11
+ export declare const Modal: ({ children, title, action, isDialogOpen, onClose, buttonText }: ModalProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1 @@
1
+ export declare const Sonner: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Toaster as Sonner } from 'sonner';
2
+ type ToasterProps = React.ComponentProps<typeof Sonner>;
3
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
4
+ export { Toaster };
@@ -0,0 +1,3 @@
1
+ export declare const notifySuccess: (msg: string, desc: string) => void;
2
+ export declare const notifyError: (msg: string, desc: string) => void;
3
+ export declare const notifyWarning: (msg: string, desc: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lgsm/modules",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "vite build",
@@ -69,11 +69,15 @@
69
69
  "vitest": "3.0.7"
70
70
  },
71
71
  "dependencies": {
72
+ "@radix-ui/react-dialog": "^1.1.15",
72
73
  "@radix-ui/react-slot": "^1.2.3",
73
74
  "@tailwindcss/vite": "^4.1.13",
74
75
  "axios": "^1.12.2",
75
76
  "class-variance-authority": "^0.7.1",
77
+ "jwt-decode": "^4.0.0",
76
78
  "lucide-react": "^0.544.0",
79
+ "next-themes": "^0.4.6",
80
+ "sonner": "^2.0.7",
77
81
  "tailwind-merge": "^3.3.1",
78
82
  "tailwindcss-animate": "^1.0.7",
79
83
  "zustand": "^5.0.8"