diff --git a/README.md b/README.md
index 2acabe8..422a150 100644
--- a/README.md
+++ b/README.md
@@ -32,51 +32,51 @@ import { useState } from "react";
import Modal from "vz-react-modal";
export default function App() {
- // Define state to track whether the modal is open or not
- const [isOpen, setIsOpen] = useState(false);
-
- // Add function to handle the close event of the modal
- const handleClose = () => {
- setIsOpen(false);
- };
-
- // Add function to handle the open event of the modal
- const handleClick = () => {
- setIsOpen(true);
- };
-
- return (
-
-
vz-react-modal
-
- Open Modal
-
- {/* Pass the props to the Modal component */}
-
-
- );
+ // Define state to track whether the modal is open or not
+ const [isOpen, setIsOpen] = useState(false);
+
+ // Add function to handle the close event of the modal
+ const handleClose = () => {
+ setIsOpen(false);
+ };
+
+ // Add function to handle the open event of the modal
+ const handleClick = () => {
+ setIsOpen(true);
+ };
+
+ return (
+
+
vz-react-modal
+
+ Open Modal
+
+ {/* Pass the props to the Modal component */}
+
+
+ );
}
```
diff --git a/package.json b/package.json
index 075a9f0..ebe2b4c 100644
--- a/package.json
+++ b/package.json
@@ -1,73 +1,73 @@
{
- "name": "vz-react-modal",
- "private": false,
- "version": "1.0.6",
- "author": "Vinodh Zamboulingame",
- "description": "A lightweight React modal component based on the HTML dialog element",
- "type": "module",
- "license": "MIT",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/vzamboulingame/vz-react-modal.git"
- },
- "keywords": [
- "react",
- "modal",
- "dialog",
- "component",
- "ui",
- "typescript",
- "tailwind",
- "tailwindcss",
- "vite",
- "openclassrooms"
- ],
- "scripts": {
- "dev": "vite",
- "build": "tsc && vite build",
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
- "preview": "vite preview"
- },
- "files": [
- "dist"
- ],
- "main": "./dist/vz-react-modal.umd.cjs",
- "module": "./dist/vz-react-modal.es.js",
- "types": "./dist/index.d.ts",
- "exports": {
- ".": {
- "types": "./dist/index.d.ts",
- "import": "./dist/vz-react-modal.es.js",
- "require": "./dist/vz-react-modal.umd.cjs"
- }
- },
- "sideEffects": [
- "**/*.css"
- ],
- "dependencies": {
- "react": "^18.2.0",
- "react-dom": "^18.2.0"
- },
- "devDependencies": {
- "@types/node": "^20.8.2",
- "@types/react": "^18.2.24",
- "@types/react-dom": "^18.2.7",
- "@typescript-eslint/eslint-plugin": "^6.0.0",
- "@typescript-eslint/parser": "^6.0.0",
- "@vitejs/plugin-react-swc": "^3.3.2",
- "autoprefixer": "^10.4.16",
- "eslint": "^8.45.0",
- "eslint-plugin-react-hooks": "^4.6.0",
- "eslint-plugin-react-refresh": "^0.4.3",
- "postcss": "^8.4.31",
- "tailwindcss": "^3.3.3",
- "typescript": "^5.0.2",
- "vite": "^4.4.5",
- "vite-plugin-dts": "^3.6.0",
- "vite-plugin-lib-inject-css": "^1.3.0"
- },
- "peerDependencies": {
- "react": "^18.2.0",
- "react-dom": "^18.2.0"
- }
+ "name": "vz-react-modal",
+ "private": false,
+ "version": "1.0.7",
+ "author": "Vinodh Zamboulingame",
+ "description": "A lightweight React modal component based on the HTML dialog element",
+ "type": "module",
+ "license": "MIT",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/vzamboulingame/vz-react-modal.git"
+ },
+ "keywords": [
+ "react",
+ "modal",
+ "dialog",
+ "component",
+ "ui",
+ "typescript",
+ "tailwind",
+ "tailwindcss",
+ "vite",
+ "openclassrooms"
+ ],
+ "scripts": {
+ "dev": "vite",
+ "build": "tsc && vite build",
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
+ "preview": "vite preview"
+ },
+ "files": [
+ "dist"
+ ],
+ "main": "./dist/vz-react-modal.umd.cjs",
+ "module": "./dist/vz-react-modal.es.js",
+ "types": "./dist/index.d.ts",
+ "exports": {
+ ".": {
+ "types": "./dist/index.d.ts",
+ "import": "./dist/vz-react-modal.es.js",
+ "require": "./dist/vz-react-modal.umd.cjs"
+ }
+ },
+ "sideEffects": [
+ "**/*.css"
+ ],
+ "dependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ },
+ "devDependencies": {
+ "@types/node": "^20.8.2",
+ "@types/react": "^18.2.24",
+ "@types/react-dom": "^18.2.7",
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
+ "@typescript-eslint/parser": "^6.0.0",
+ "@vitejs/plugin-react-swc": "^3.3.2",
+ "autoprefixer": "^10.4.16",
+ "eslint": "^8.45.0",
+ "eslint-plugin-react-hooks": "^4.6.0",
+ "eslint-plugin-react-refresh": "^0.4.3",
+ "postcss": "^8.4.31",
+ "tailwindcss": "^3.3.3",
+ "typescript": "^5.0.2",
+ "vite": "^4.4.5",
+ "vite-plugin-dts": "^3.6.0",
+ "vite-plugin-lib-inject-css": "^1.3.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ }
}