my-animated-components 1.2.2 → 1.2.4

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.js CHANGED
@@ -933,11 +933,18 @@ const NavItem = ({ children, className = '', href, active = false, size = 'md',
933
933
  };
934
934
 
935
935
  const Navbar = ({ children, className = '', brand }) => {
936
+ const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
936
937
  return (React.createElement(motion.nav, { className: `bg-white shadow ${className}`, initial: { opacity: 0, y: -50 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.5 } },
937
938
  React.createElement("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8" },
938
939
  React.createElement("div", { className: "flex justify-between h-16" },
939
940
  React.createElement("div", { className: "flex-shrink-0 flex items-center" }, brand),
940
- React.createElement("div", { className: "flex items-center" }, children)))));
941
+ React.createElement("div", { className: "hidden md:flex items-center space-x-4" }, children),
942
+ React.createElement("div", { className: "flex md:hidden items-center" },
943
+ React.createElement("button", { type: "button", className: "text-gray-800 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-400", onClick: () => setIsMobileMenuOpen(!isMobileMenuOpen) }, isMobileMenuOpen ? (React.createElement("svg", { className: "w-6 h-6", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
944
+ React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" }))) : (React.createElement("svg", { className: "w-6 h-6", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
945
+ React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M4 6h16M4 12h16M4 18h16" }))))))),
946
+ isMobileMenuOpen && (React.createElement("div", { className: "md:hidden bg-white shadow-md" },
947
+ React.createElement("div", { className: "space-y-2 px-4 py-2" }, React.Children.map(children, (child) => (React.createElement("div", { className: "text-gray-800 hover:text-gray-600" }, child))))))));
941
948
  };
942
949
 
943
950
  const Offcanvas = ({ children, className = '', isOpen, onClose, position = 'left' }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-animated-components",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
@@ -10,21 +10,58 @@
10
10
  },
11
11
  "keywords": [
12
12
  "react",
13
+ "react-components",
13
14
  "react-hooks",
15
+ "react-ui",
16
+ "animated-components",
17
+ "animation-library",
18
+ "motion-effects",
19
+ "motion-ui",
20
+ "framer-motion",
21
+ "tailwindcss",
22
+ "ui-library",
23
+ "responsive-ui",
24
+ "responsive-design",
25
+ "modern-ui",
26
+ "beautiful-ui",
27
+ "design-system",
28
+ "react-animations",
29
+ "css-animations",
30
+ "motion-animations",
31
+ "page-transitions",
32
+ "page-animations",
33
+ "interactive-ui",
34
+ "frontend-library",
35
+ "ui-kit",
36
+ "react-ui-kit",
37
+ "component-library",
38
+ "dynamic-components",
39
+ "custom-hooks",
14
40
  "useState",
15
41
  "useEffect",
16
42
  "useRef",
17
43
  "useContext",
18
44
  "useReducer",
19
- "custom-hook",
20
- "component",
21
- "frontend",
22
- "UI",
23
45
  "navigation",
24
46
  "routing",
25
- "navigate",
47
+ "page-navigation",
26
48
  "router",
27
- "page-navigation"
49
+ "menu-transitions",
50
+ "interactive-design",
51
+ "material-ui-alternative",
52
+ "bootstrap-alternative",
53
+ "animation-toolkit",
54
+ "transition-effects",
55
+ "micro-interactions",
56
+ "react-motion",
57
+ "motion-components",
58
+ "professional-ui",
59
+ "easy-to-use",
60
+ "developer-friendly",
61
+ "reusable-components",
62
+ "high-performance-ui",
63
+ "typescript-support",
64
+ "my-animated-components"
28
65
  ],
29
66
  "author": "",
30
67
  "license": "ISC",
@@ -46,4 +83,4 @@
46
83
  "tslib": "^2.6.2",
47
84
  "typescript": "^5.7.3"
48
85
  }
49
- }
86
+ }
@@ -1,10 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- export default {
3
- content: [
4
- './src/**/*.{html,js,ts,tsx,jsx}',
5
- ],
6
- theme: {
7
- extend: {},
8
- },
9
- plugins: [],
10
- };
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "jsx": "react",
4
- "target": "ES2020",
5
- "module": "ESNext",
6
- "declaration": true,
7
- "declarationDir": "dist",
8
- "strict": true,
9
- "esModuleInterop": true,
10
- "moduleResolution": "node",
11
- "skipLibCheck": true,
12
- "forceConsistentCasingInFileNames": true
13
- },
14
- "include": ["src/**/*"],
15
- "exclude": ["node_modules", "dist"]
16
- }
17
-