@nkanish/liquidglass-ui 0.0.0-stage → 0.2.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) 2026 Nitin Kanish, Debugged Pro
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 CHANGED
@@ -1,3 +1,139 @@
1
- # Temporary Holding Version
1
+ # LiquidGlass UI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > Advanced Apple Liquid Glass (iOS 26 / macOS Tahoe) UI component library for React
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@nkanish/liquidglass-ui.svg)](https://www.npmjs.com/package/@nkanish/liquidglass-ui)
6
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
7
+
8
+ ## What is LiquidGlass UI?
9
+
10
+ LiquidGlass UI brings Apple's beautiful Liquid Glass design language to the web. It features authentic glass effects with backdrop blur, SVG refraction/lensing, and smooth animations that respond to user interaction.
11
+
12
+ ## Screenshots
13
+
14
+ ### Landing Page with Refraction Effect
15
+ ![Landing Page](https://raw.githubusercontent.com/nitinkanish/liquidglass-ui/main/docs/assets/docs-landing-refraction.png)
16
+
17
+ ### Side-by-Side Comparison with glisse
18
+ ![Comparison](https://raw.githubusercontent.com/nitinkanish/liquidglass-ui/main/docs/assets/comparison-full.png)
19
+
20
+ ### Component Documentation
21
+ ![Component Docs](https://raw.githubusercontent.com/nitinkanish/liquidglass-ui/main/docs/assets/docs-component-button.png)
22
+
23
+ ## Key Features
24
+
25
+ - **57 Components** - Comprehensive UI toolkit with 41 component files
26
+ - **Authentic Glass Effect** - Glisse-compatible SVG refraction with edge lensing, chromatic aberration, and specular highlights
27
+ - **Dark Mode** - Automatic light/dark theme switching
28
+ - **Accessible** - Full ARIA support and keyboard navigation
29
+ - **TypeScript** - Complete type definitions
30
+ - **Zero Dependencies** - Only React as peer dependency
31
+ - **86 Tests** - Comprehensive test coverage
32
+
33
+ ## Glass Refraction
34
+
35
+ The glass refraction effect is based on [glisse](https://github.com/0kzh/glisse) (MIT License) by Kelvin Zhang. Enable it on any Glass component:
36
+
37
+ ```tsx
38
+ <Glass refraction refractionDepth={8} refractionDome={4} shine={0.3}>
39
+ Content with edge refraction effect
40
+ </Glass>
41
+ ```
42
+
43
+ ## Quick Start
44
+
45
+ ```bash
46
+ npm install @nkanish/liquidglass-ui
47
+ ```
48
+
49
+ ```tsx
50
+ import { GlassProvider, Button, GlassCard } from '@nkanish/liquidglass-ui';
51
+ import '@nkanish/liquidglass-ui/styles.css';
52
+
53
+ function App() {
54
+ return (
55
+ <GlassProvider>
56
+ <GlassCard>
57
+ <h1>Hello, Glass!</h1>
58
+ <Button variant="filled">Click me</Button>
59
+ </GlassCard>
60
+ </GlassProvider>
61
+ );
62
+ }
63
+ ```
64
+
65
+ ## Documentation
66
+
67
+ See the full documentation and live demos: [Documentation Site](https://liquidglass-ui-docs.vercel.app/)
68
+
69
+ ## Repository Structure
70
+
71
+ ```
72
+ liquidglass-ui/
73
+ ├── packages/
74
+ │ └── liquidglass-ui/ # The npm package
75
+ ├── apps/
76
+ │ └── docs/ # Documentation site
77
+ ├── docs/
78
+ │ ├── research.md # Research notes
79
+ │ └── PUBLISHING.md # Publishing guide
80
+ └── .github/
81
+ └── workflows/ # CI/CD workflows
82
+ ```
83
+
84
+ ## Development
85
+
86
+ ```bash
87
+ # Install dependencies
88
+ pnpm install
89
+
90
+ # Start docs dev server
91
+ pnpm dev
92
+
93
+ # Build library
94
+ pnpm build:lib
95
+
96
+ # Run tests
97
+ pnpm test
98
+ ```
99
+
100
+ ## Component List
101
+
102
+ ### Layout
103
+ - GlassProvider, Glass, GlassCard
104
+
105
+ ### Buttons
106
+ - Button, IconButton, Toggle
107
+
108
+ ### Forms
109
+ - Input, Textarea, SearchField, Select, Checkbox, Radio, Switch, Slider, DatePicker
110
+
111
+ ### Navigation
112
+ - TabBar, SegmentedControl, Tabs, Navbar, Sidebar, Dock, Carousel
113
+
114
+ ### Overlays
115
+ - Modal, Sheet, Menu, Tooltip, Drawer, Popover, ContextMenu, CommandPalette
116
+
117
+ ### Feedback
118
+ - Toast, Alert, Progress, Spinner
119
+
120
+ ### Data Display
121
+ - Badge, Avatar, Chip, Accordion, Separator, Skeleton
122
+
123
+ ### Actions
124
+ - FloatingActionButton (FAB)
125
+
126
+ ## Browser Support
127
+
128
+ - Chrome 76+
129
+ - Firefox 103+
130
+ - Safari 9+
131
+ - Edge 79+
132
+
133
+ ## License
134
+
135
+ MIT License - Copyright (c) 2026 Nitin Kanish, Debugged Pro
136
+
137
+ ---
138
+
139
+ **Developed by Nitin Kanish, Debugged Pro**
@@ -0,0 +1,41 @@
1
+ # Third Party Notices
2
+
3
+ This file contains attributions for third-party code used in LiquidGlass UI.
4
+
5
+ ## glisse
6
+
7
+ The glass refraction effect implementation is based on [glisse](https://github.com/0kzh/glisse).
8
+
9
+ ```
10
+ MIT License
11
+
12
+ Copyright (c) 2024 Kelvin Zhang
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+ ```
32
+
33
+ ### Attribution
34
+
35
+ The following files contain code derived from glisse:
36
+
37
+ - `src/hooks/use-glisse-effect.ts` - SVG displacement map generation and filter chain
38
+ - `src/components/Glass.tsx` - Refraction effect integration
39
+
40
+ The implementation ports glisse's displacement map generation algorithm (lensMap function),
41
+ SVG filter construction (buildFilter), and PNG encoding for feImage elements.