@pixonui/react 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 PixonUI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,96 @@
1
+ # @pixonui/react
2
+
3
+ <div align="center">
4
+ <p align="center">
5
+ <strong>Modern. Decoupled. Glassmorphic. Native-First.</strong>
6
+ </p>
7
+ <p align="center">
8
+ The core React component library for PixonUI, built for performance and aesthetics.
9
+ </p>
10
+ </div>
11
+
12
+ ## 🚀 Key Philosophies
13
+
14
+ - **Native-First**: We prefer native browser APIs (like `<dialog>`, `IntersectionObserver`, and `ValidityState`) over heavy JavaScript polyfills.
15
+ - **Zero Dependencies**: We don't use Radix or other headless libraries. Every component is built from scratch for maximum control and minimum bundle size.
16
+ - **Ultra-Performance**: Optimized for 120fps interactions using CSS variables for mouse tracking and `content-visibility` for large datasets.
17
+ - **Full Theme Support**: Native support for Light and Dark modes with theme-aware patterns and glassmorphism.
18
+
19
+ ## 📦 Installation
20
+
21
+ ```bash
22
+ npm install @pixonui/react
23
+ ```
24
+
25
+ ## 🔧 Configuration
26
+
27
+ Add the package to your `tailwind.config.js` content array:
28
+
29
+ ```js
30
+ /** @type {import('tailwindcss').Config} */
31
+ module.exports = {
32
+ content: [
33
+ "./src/**/*.{js,ts,jsx,tsx}",
34
+ "./node_modules/@pixonui/react/dist/**/*.{js,mjs}"
35
+ ],
36
+ theme: {
37
+ extend: {
38
+ // PixonUI looks best with a dark background
39
+ colors: {
40
+ background: '#0A0A0A',
41
+ }
42
+ },
43
+ },
44
+ plugins: [require("tailwindcss-animate")],
45
+ }
46
+ ```
47
+
48
+ ## 🛠️ Usage Examples
49
+
50
+ ### Native Dialog (Modal)
51
+ ```tsx
52
+ import { Dialog, DialogHeader, DialogTitle, Button } from '@pixonui/react';
53
+
54
+ function MyModal() {
55
+ const [open, setOpen] = React.useState(false);
56
+
57
+ return (
58
+ <>
59
+ <Button onClick={() => setOpen(true)}>Open Dialog</Button>
60
+ <Dialog isOpen={open} onClose={() => setOpen(false)}>
61
+ <DialogHeader>
62
+ <DialogTitle>Native Dialog</DialogTitle>
63
+ </DialogHeader>
64
+ <p>This uses the native HTML5 &lt;dialog&gt; tag!</p>
65
+ </Dialog>
66
+ </>
67
+ );
68
+ }
69
+ ```
70
+
71
+ ### Advanced Motion
72
+ ```tsx
73
+ import { Reveal, Magnetic, NumberTicker } from '@pixonui/react';
74
+
75
+ function Hero() {
76
+ return (
77
+ <div>
78
+ <Reveal direction="up">
79
+ <h1>Welcome to the Future</h1>
80
+ </Reveal>
81
+
82
+ <Magnetic>
83
+ <button>I follow your mouse</button>
84
+ </Magnetic>
85
+
86
+ <p>
87
+ Users joined: <NumberTicker value={10000} />
88
+ </p>
89
+ </div>
90
+ );
91
+ }
92
+ ```
93
+
94
+ ## 📄 License
95
+
96
+ MIT