@creativoma/liquid-glass 1.0.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/LICENCE +21 -0
- package/README.md +237 -0
- package/dist/components/LiquidGlass.d.ts +6 -0
- package/dist/components/LiquidGlass.d.ts.map +1 -0
- package/dist/components/types.d.ts +23 -0
- package/dist/components/types.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +395 -0
- package/dist/index.umd.js +22 -0
- package/dist/style.css +1 -0
- package/package.json +84 -0
package/LICENCE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mariano Alvarez
|
|
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,237 @@
|
|
|
1
|
+
# @creativoma/liquid-glass
|
|
2
|
+
|
|
3
|
+
A modern React component with liquid frosted glass effect using TailwindCSS. Perfect for creating elegant interfaces with glassmorphism effect.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@creativoma/liquid-glass)
|
|
6
|
+
|
|
7
|
+
## 🚀 Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @creativoma/liquid-glass
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
yarn add @creativoma/liquid-glass
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pnpm add @creativoma/liquid-glass
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 📖 Basic Usage
|
|
22
|
+
|
|
23
|
+
```jsx
|
|
24
|
+
import { LiquidGlass } from '@creativoma/liquid-glass'
|
|
25
|
+
|
|
26
|
+
function App() {
|
|
27
|
+
return (
|
|
28
|
+
<LiquidGlass backdropBlur={3} tintColor="rgba(255, 255, 255, 0.25)">
|
|
29
|
+
<div className="p-8">
|
|
30
|
+
<h1>Your content here</h1>
|
|
31
|
+
<p>The frosted glass effect is applied to this container</p>
|
|
32
|
+
</div>
|
|
33
|
+
</LiquidGlass>
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## ⚙️ Props
|
|
39
|
+
|
|
40
|
+
| Prop | Type | Default | Description |
|
|
41
|
+
| ------------------------- | ----------------- | --------------------------- | ----------------------------------------------------- |
|
|
42
|
+
| `children` | `React.ReactNode` | - | Content to display inside the container |
|
|
43
|
+
| `className` | `string` | `''` | Additional TailwindCSS CSS classes |
|
|
44
|
+
| `backdropBlur` | `number` | `2` | Blur level for the backdrop filter (in px) |
|
|
45
|
+
| `tintColor` | `string` | `'rgba(255, 255, 255, .2)'` | Tint overlay color (rgba) |
|
|
46
|
+
| `displacementScale` | `number` | `150` | Displacement map scale (liquid effect intensity) |
|
|
47
|
+
| `turbulenceBaseFrequency` | `string` | `'0.008 0.008'` | Turbulence base frequency (controls noise size) |
|
|
48
|
+
| `turbulenceSeed` | `number` | `1.5` | Turbulence seed (for different noise patterns) |
|
|
49
|
+
| `as` | `ElementType` | `'div'` | HTML component to render (div, button, section, etc.) |
|
|
50
|
+
| `style` | `CSSProperties` | - | Additional inline styles |
|
|
51
|
+
|
|
52
|
+
## 💡 Advanced Examples
|
|
53
|
+
|
|
54
|
+
### Card with glass effect
|
|
55
|
+
|
|
56
|
+
```jsx
|
|
57
|
+
<LiquidGlass
|
|
58
|
+
backdropBlur={5}
|
|
59
|
+
tintColor="rgba(255, 255, 255, 0.3)"
|
|
60
|
+
className="max-w-md rounded-xl p-6"
|
|
61
|
+
>
|
|
62
|
+
<h2 className="mb-4 text-2xl font-bold text-white">Card Title</h2>
|
|
63
|
+
<p className="text-white/90">
|
|
64
|
+
Card content with elegant frosted glass effect.
|
|
65
|
+
</p>
|
|
66
|
+
</LiquidGlass>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Button with liquid glass effect
|
|
70
|
+
|
|
71
|
+
```jsx
|
|
72
|
+
<LiquidGlass
|
|
73
|
+
as="button"
|
|
74
|
+
backdropBlur={3}
|
|
75
|
+
tintColor="rgba(0, 0, 0, 0.2)"
|
|
76
|
+
className="rounded-full px-8 py-4 font-semibold text-white transition-transform hover:scale-110"
|
|
77
|
+
>
|
|
78
|
+
Click Me!
|
|
79
|
+
</LiquidGlass>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Modal with glassmorphism
|
|
83
|
+
|
|
84
|
+
```jsx
|
|
85
|
+
<div className="fixed inset-0 flex items-center justify-center bg-black/50">
|
|
86
|
+
<LiquidGlass
|
|
87
|
+
backdropBlur={10}
|
|
88
|
+
tintColor="rgba(255, 255, 255, 0.15)"
|
|
89
|
+
className="max-w-lg rounded-2xl p-8 shadow-2xl"
|
|
90
|
+
>
|
|
91
|
+
<h3 className="mb-4 text-xl font-semibold text-white">
|
|
92
|
+
Modal with Liquid Glass
|
|
93
|
+
</h3>
|
|
94
|
+
<p className="mb-6 text-white/90">
|
|
95
|
+
This is an example of a modal with glassmorphism effect
|
|
96
|
+
</p>
|
|
97
|
+
<button className="rounded-lg bg-blue-500 px-4 py-2 text-white">
|
|
98
|
+
Close
|
|
99
|
+
</button>
|
|
100
|
+
</LiquidGlass>
|
|
101
|
+
</div>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Navbar with glass effect
|
|
105
|
+
|
|
106
|
+
```jsx
|
|
107
|
+
<LiquidGlass
|
|
108
|
+
backdropBlur={4}
|
|
109
|
+
tintColor="rgba(255, 255, 255, 0.1)"
|
|
110
|
+
className="fixed top-0 right-0 left-0 z-50 border-b border-white/20"
|
|
111
|
+
>
|
|
112
|
+
<nav className="container mx-auto flex items-center justify-between px-6 py-4">
|
|
113
|
+
<div className="text-xl font-bold text-white">My App</div>
|
|
114
|
+
<div className="flex gap-6 text-white">
|
|
115
|
+
<a href="#home">Home</a>
|
|
116
|
+
<a href="#about">About</a>
|
|
117
|
+
<a href="#contact">Contact</a>
|
|
118
|
+
</div>
|
|
119
|
+
</nav>
|
|
120
|
+
</LiquidGlass>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Advanced liquid effect customization
|
|
124
|
+
|
|
125
|
+
```jsx
|
|
126
|
+
<LiquidGlass
|
|
127
|
+
backdropBlur={3}
|
|
128
|
+
tintColor="rgba(100, 200, 255, 0.2)"
|
|
129
|
+
displacementScale={200}
|
|
130
|
+
turbulenceBaseFrequency="0.01 0.01"
|
|
131
|
+
turbulenceSeed={5}
|
|
132
|
+
className="rounded-3xl p-12"
|
|
133
|
+
>
|
|
134
|
+
<p className="text-white">Custom liquid effect</p>
|
|
135
|
+
</LiquidGlass>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## 🛠️ Development
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Clone the repository
|
|
142
|
+
git clone https://github.com/creativoma/liquid-glass.git
|
|
143
|
+
cd liquid-glass
|
|
144
|
+
|
|
145
|
+
# Install dependencies
|
|
146
|
+
pnpm install
|
|
147
|
+
|
|
148
|
+
# Development mode
|
|
149
|
+
pnpm run dev
|
|
150
|
+
|
|
151
|
+
# Linting and formatting
|
|
152
|
+
pnpm run lint
|
|
153
|
+
pnpm run format
|
|
154
|
+
|
|
155
|
+
# Build library
|
|
156
|
+
pnpm run build:lib
|
|
157
|
+
|
|
158
|
+
# Build demo
|
|
159
|
+
pnpm run build:demo
|
|
160
|
+
|
|
161
|
+
# Preview
|
|
162
|
+
pnpm run preview
|
|
163
|
+
|
|
164
|
+
# Publish (requires permissions)
|
|
165
|
+
npm publish
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## 🧪 Project Structure
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
liquid-glass/
|
|
172
|
+
├── src/
|
|
173
|
+
│ ├── components/
|
|
174
|
+
│ │ ├── LiquidGlass.tsx
|
|
175
|
+
│ │ └── types.ts
|
|
176
|
+
│ ├── App.tsx # Demo application
|
|
177
|
+
│ ├── main.tsx # Demo entry point
|
|
178
|
+
│ ├── index.ts # Library entry point
|
|
179
|
+
│ └── index.css
|
|
180
|
+
├── dist/ # Compiled files
|
|
181
|
+
├── public/ # Demo assets
|
|
182
|
+
├── README.md
|
|
183
|
+
├── package.json
|
|
184
|
+
├── tsconfig.json
|
|
185
|
+
├── vite.config.ts # Demo build config
|
|
186
|
+
├── vite.config.lib.ts # Library build config
|
|
187
|
+
└── tailwind.config.js
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## 📋 Requirements
|
|
191
|
+
|
|
192
|
+
- React >= 18.0.0
|
|
193
|
+
- React DOM >= 18.0.0
|
|
194
|
+
- TailwindCSS (component uses Tailwind classes)
|
|
195
|
+
|
|
196
|
+
## 🏗️ Technologies
|
|
197
|
+
|
|
198
|
+
- **React** - Component library
|
|
199
|
+
- **TypeScript** - Static typing
|
|
200
|
+
- **Vite** - Build tool and bundler
|
|
201
|
+
- **Tailwind CSS** - CSS framework for glassmorphism effect
|
|
202
|
+
- **SVG Filters** - Advanced visual effects with feTurbulence and feDisplacementMap
|
|
203
|
+
|
|
204
|
+
## 📦 Available Formats
|
|
205
|
+
|
|
206
|
+
This package includes multiple formats for maximum compatibility:
|
|
207
|
+
|
|
208
|
+
- **ESM** (`dist/index.esm.js`) - For modern applications
|
|
209
|
+
- **UMD** (`dist/index.umd.js`) - For universal compatibility
|
|
210
|
+
- **TypeScript** (`dist/index.d.ts`) - Type definitions
|
|
211
|
+
|
|
212
|
+
## 🤝 Contributing
|
|
213
|
+
|
|
214
|
+
Contributions are welcome! Please:
|
|
215
|
+
|
|
216
|
+
1. Fork the project
|
|
217
|
+
2. Create a branch for your feature (`git checkout -b feature/amazing-feature`)
|
|
218
|
+
3. Commit your changes (`git commit -m 'Add amazing feature'`)
|
|
219
|
+
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
220
|
+
5. Open a Pull Request
|
|
221
|
+
|
|
222
|
+
## 📄 License
|
|
223
|
+
|
|
224
|
+
MIT © [creativoma](https://github.com/creativoma)
|
|
225
|
+
|
|
226
|
+
## 🏷️ Changelog
|
|
227
|
+
|
|
228
|
+
### 1.0.0
|
|
229
|
+
|
|
230
|
+
- First version of LiquidGlass component
|
|
231
|
+
- Frosted glass effect with backdrop-filter
|
|
232
|
+
- Animated liquid effect with SVG filters (feTurbulence + feDisplacementMap)
|
|
233
|
+
- Full customization of liquid effect (displacement scale, turbulence frequency, seed)
|
|
234
|
+
- Support for polymorphic component with `as` prop
|
|
235
|
+
- Full integration with TailwindCSS
|
|
236
|
+
- Optimized build with tree-shaking
|
|
237
|
+
- Full TypeScript support
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiquidGlass.d.ts","sourceRoot":"","sources":["../../src/components/LiquidGlass.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAS,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuGrC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties, ElementType, HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface LiquidGlassProps extends Omit<HTMLAttributes<HTMLElement>, 'as'> {
|
|
4
|
+
/** Content to display inside the glass container */
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** Additional TailwindCSS classes */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Blur level for the backdrop filter (in px) */
|
|
9
|
+
backdropBlur?: number;
|
|
10
|
+
/** Tint overlay color */
|
|
11
|
+
tintColor?: string;
|
|
12
|
+
/** Displacement map scale (liquid effect intensity) */
|
|
13
|
+
displacementScale?: number;
|
|
14
|
+
/** Turbulence base frequency (controls noise size) */
|
|
15
|
+
turbulenceBaseFrequency?: string;
|
|
16
|
+
/** Turbulence seed (for different noise patterns) */
|
|
17
|
+
turbulenceSeed?: number;
|
|
18
|
+
/** HTML component to render (div, button, section, etc.) */
|
|
19
|
+
as?: ElementType;
|
|
20
|
+
/** Additional inline styles */
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/components/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE7E,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC;IAC/C,oDAAoD;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B,sDAAsD;IACtD,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAEhC,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB,4DAA4D;IAC5D,EAAE,CAAC,EAAE,WAAW,CAAA;IAEhB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import ee, { useId as re } from "react";
|
|
2
|
+
var A = { exports: {} }, R = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var D;
|
|
13
|
+
function te() {
|
|
14
|
+
if (D) return R;
|
|
15
|
+
D = 1;
|
|
16
|
+
var c = Symbol.for("react.transitional.element"), b = Symbol.for("react.fragment");
|
|
17
|
+
function u(d, s, l) {
|
|
18
|
+
var m = null;
|
|
19
|
+
if (l !== void 0 && (m = "" + l), s.key !== void 0 && (m = "" + s.key), "key" in s) {
|
|
20
|
+
l = {};
|
|
21
|
+
for (var p in s)
|
|
22
|
+
p !== "key" && (l[p] = s[p]);
|
|
23
|
+
} else l = s;
|
|
24
|
+
return s = l.ref, {
|
|
25
|
+
$$typeof: c,
|
|
26
|
+
type: d,
|
|
27
|
+
key: m,
|
|
28
|
+
ref: s !== void 0 ? s : null,
|
|
29
|
+
props: l
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return R.Fragment = b, R.jsx = u, R.jsxs = u, R;
|
|
33
|
+
}
|
|
34
|
+
var x = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var M;
|
|
45
|
+
function ne() {
|
|
46
|
+
return M || (M = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function c(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === Z ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
52
|
+
switch (e) {
|
|
53
|
+
case j:
|
|
54
|
+
return "Fragment";
|
|
55
|
+
case G:
|
|
56
|
+
return "Profiler";
|
|
57
|
+
case z:
|
|
58
|
+
return "StrictMode";
|
|
59
|
+
case B:
|
|
60
|
+
return "Suspense";
|
|
61
|
+
case J:
|
|
62
|
+
return "SuspenseList";
|
|
63
|
+
case H:
|
|
64
|
+
return "Activity";
|
|
65
|
+
}
|
|
66
|
+
if (typeof e == "object")
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case W:
|
|
71
|
+
return "Portal";
|
|
72
|
+
case q:
|
|
73
|
+
return (e.displayName || "Context") + ".Provider";
|
|
74
|
+
case U:
|
|
75
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case V:
|
|
77
|
+
var r = e.render;
|
|
78
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
+
case X:
|
|
80
|
+
return r = e.displayName || null, r !== null ? r : c(e.type) || "Memo";
|
|
81
|
+
case N:
|
|
82
|
+
r = e._payload, e = e._init;
|
|
83
|
+
try {
|
|
84
|
+
return c(e(r));
|
|
85
|
+
} catch {
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
function b(e) {
|
|
91
|
+
return "" + e;
|
|
92
|
+
}
|
|
93
|
+
function u(e) {
|
|
94
|
+
try {
|
|
95
|
+
b(e);
|
|
96
|
+
var r = !1;
|
|
97
|
+
} catch {
|
|
98
|
+
r = !0;
|
|
99
|
+
}
|
|
100
|
+
if (r) {
|
|
101
|
+
r = console;
|
|
102
|
+
var t = r.error, a = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
103
|
+
return t.call(
|
|
104
|
+
r,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
a
|
|
107
|
+
), b(e);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function d(e) {
|
|
111
|
+
if (e === j) return "<>";
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === N)
|
|
113
|
+
return "<...>";
|
|
114
|
+
try {
|
|
115
|
+
var r = c(e);
|
|
116
|
+
return r ? "<" + r + ">" : "<...>";
|
|
117
|
+
} catch {
|
|
118
|
+
return "<...>";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function s() {
|
|
122
|
+
var e = k.A;
|
|
123
|
+
return e === null ? null : e.getOwner();
|
|
124
|
+
}
|
|
125
|
+
function l() {
|
|
126
|
+
return Error("react-stack-top-frame");
|
|
127
|
+
}
|
|
128
|
+
function m(e) {
|
|
129
|
+
if (C.call(e, "key")) {
|
|
130
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
+
if (r && r.isReactWarning) return !1;
|
|
132
|
+
}
|
|
133
|
+
return e.key !== void 0;
|
|
134
|
+
}
|
|
135
|
+
function p(e, r) {
|
|
136
|
+
function t() {
|
|
137
|
+
F || (F = !0, console.error(
|
|
138
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
|
+
r
|
|
140
|
+
));
|
|
141
|
+
}
|
|
142
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
143
|
+
get: t,
|
|
144
|
+
configurable: !0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function T() {
|
|
148
|
+
var e = c(this.type);
|
|
149
|
+
return I[e] || (I[e] = !0, console.error(
|
|
150
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
|
+
}
|
|
153
|
+
function g(e, r, t, a, f, i, y, O) {
|
|
154
|
+
return t = i.ref, e = {
|
|
155
|
+
$$typeof: P,
|
|
156
|
+
type: e,
|
|
157
|
+
key: r,
|
|
158
|
+
props: i,
|
|
159
|
+
_owner: f
|
|
160
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
161
|
+
enumerable: !1,
|
|
162
|
+
get: T
|
|
163
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
164
|
+
configurable: !1,
|
|
165
|
+
enumerable: !1,
|
|
166
|
+
writable: !0,
|
|
167
|
+
value: 0
|
|
168
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
169
|
+
configurable: !1,
|
|
170
|
+
enumerable: !1,
|
|
171
|
+
writable: !0,
|
|
172
|
+
value: null
|
|
173
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
174
|
+
configurable: !1,
|
|
175
|
+
enumerable: !1,
|
|
176
|
+
writable: !0,
|
|
177
|
+
value: y
|
|
178
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
179
|
+
configurable: !1,
|
|
180
|
+
enumerable: !1,
|
|
181
|
+
writable: !0,
|
|
182
|
+
value: O
|
|
183
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
184
|
+
}
|
|
185
|
+
function h(e, r, t, a, f, i, y, O) {
|
|
186
|
+
var o = r.children;
|
|
187
|
+
if (o !== void 0)
|
|
188
|
+
if (a)
|
|
189
|
+
if (Q(o)) {
|
|
190
|
+
for (a = 0; a < o.length; a++)
|
|
191
|
+
v(o[a]);
|
|
192
|
+
Object.freeze && Object.freeze(o);
|
|
193
|
+
} else
|
|
194
|
+
console.error(
|
|
195
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
|
+
);
|
|
197
|
+
else v(o);
|
|
198
|
+
if (C.call(r, "key")) {
|
|
199
|
+
o = c(e);
|
|
200
|
+
var E = Object.keys(r).filter(function(K) {
|
|
201
|
+
return K !== "key";
|
|
202
|
+
});
|
|
203
|
+
a = 0 < E.length ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}", L[o + a] || (E = 0 < E.length ? "{" + E.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
204
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
205
|
+
let props = %s;
|
|
206
|
+
<%s {...props} />
|
|
207
|
+
React keys must be passed directly to JSX without using spread:
|
|
208
|
+
let props = %s;
|
|
209
|
+
<%s key={someKey} {...props} />`,
|
|
210
|
+
a,
|
|
211
|
+
o,
|
|
212
|
+
E,
|
|
213
|
+
o
|
|
214
|
+
), L[o + a] = !0);
|
|
215
|
+
}
|
|
216
|
+
if (o = null, t !== void 0 && (u(t), o = "" + t), m(r) && (u(r.key), o = "" + r.key), "key" in r) {
|
|
217
|
+
t = {};
|
|
218
|
+
for (var w in r)
|
|
219
|
+
w !== "key" && (t[w] = r[w]);
|
|
220
|
+
} else t = r;
|
|
221
|
+
return o && p(
|
|
222
|
+
t,
|
|
223
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
224
|
+
), g(
|
|
225
|
+
e,
|
|
226
|
+
o,
|
|
227
|
+
i,
|
|
228
|
+
f,
|
|
229
|
+
s(),
|
|
230
|
+
t,
|
|
231
|
+
y,
|
|
232
|
+
O
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
function v(e) {
|
|
236
|
+
typeof e == "object" && e !== null && e.$$typeof === P && e._store && (e._store.validated = 1);
|
|
237
|
+
}
|
|
238
|
+
var _ = ee, P = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), z = Symbol.for("react.strict_mode"), G = Symbol.for("react.profiler"), U = Symbol.for("react.consumer"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, Q = Array.isArray, S = console.createTask ? console.createTask : function() {
|
|
239
|
+
return null;
|
|
240
|
+
};
|
|
241
|
+
_ = {
|
|
242
|
+
"react-stack-bottom-frame": function(e) {
|
|
243
|
+
return e();
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
var F, I = {}, Y = _["react-stack-bottom-frame"].bind(
|
|
247
|
+
_,
|
|
248
|
+
l
|
|
249
|
+
)(), $ = S(d(l)), L = {};
|
|
250
|
+
x.Fragment = j, x.jsx = function(e, r, t, a, f) {
|
|
251
|
+
var i = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
252
|
+
return h(
|
|
253
|
+
e,
|
|
254
|
+
r,
|
|
255
|
+
t,
|
|
256
|
+
!1,
|
|
257
|
+
a,
|
|
258
|
+
f,
|
|
259
|
+
i ? Error("react-stack-top-frame") : Y,
|
|
260
|
+
i ? S(d(e)) : $
|
|
261
|
+
);
|
|
262
|
+
}, x.jsxs = function(e, r, t, a, f) {
|
|
263
|
+
var i = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return h(
|
|
265
|
+
e,
|
|
266
|
+
r,
|
|
267
|
+
t,
|
|
268
|
+
!0,
|
|
269
|
+
a,
|
|
270
|
+
f,
|
|
271
|
+
i ? Error("react-stack-top-frame") : Y,
|
|
272
|
+
i ? S(d(e)) : $
|
|
273
|
+
);
|
|
274
|
+
};
|
|
275
|
+
}()), x;
|
|
276
|
+
}
|
|
277
|
+
process.env.NODE_ENV === "production" ? A.exports = te() : A.exports = ne();
|
|
278
|
+
var n = A.exports;
|
|
279
|
+
const oe = ({
|
|
280
|
+
children: c,
|
|
281
|
+
className: b = "",
|
|
282
|
+
backdropBlur: u = 2,
|
|
283
|
+
tintColor: d = "rgba(255, 255, 255, .2)",
|
|
284
|
+
displacementScale: s = 150,
|
|
285
|
+
turbulenceBaseFrequency: l = "0.008 0.008",
|
|
286
|
+
turbulenceSeed: m = 1.5,
|
|
287
|
+
as: p = "div",
|
|
288
|
+
style: T,
|
|
289
|
+
...g
|
|
290
|
+
}) => {
|
|
291
|
+
const v = `liquid-glass-${re().replace(/:/g, "-")}`;
|
|
292
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
293
|
+
/* @__PURE__ */ n.jsx("svg", { style: { display: "none" }, children: /* @__PURE__ */ n.jsxs(
|
|
294
|
+
"filter",
|
|
295
|
+
{
|
|
296
|
+
id: v,
|
|
297
|
+
x: "0%",
|
|
298
|
+
y: "0%",
|
|
299
|
+
width: "100%",
|
|
300
|
+
height: "100%",
|
|
301
|
+
filterUnits: "objectBoundingBox",
|
|
302
|
+
children: [
|
|
303
|
+
/* @__PURE__ */ n.jsx(
|
|
304
|
+
"feTurbulence",
|
|
305
|
+
{
|
|
306
|
+
type: "fractalNoise",
|
|
307
|
+
baseFrequency: l,
|
|
308
|
+
numOctaves: 1,
|
|
309
|
+
seed: m,
|
|
310
|
+
result: "turbulence"
|
|
311
|
+
}
|
|
312
|
+
),
|
|
313
|
+
/* @__PURE__ */ n.jsxs("feComponentTransfer", { in: "turbulence", result: "mapped", children: [
|
|
314
|
+
/* @__PURE__ */ n.jsx("feFuncR", { type: "gamma", amplitude: 1, exponent: 10, offset: 0.5 }),
|
|
315
|
+
/* @__PURE__ */ n.jsx("feFuncG", { type: "gamma", amplitude: 0, exponent: 1, offset: 0 }),
|
|
316
|
+
/* @__PURE__ */ n.jsx("feFuncB", { type: "gamma", amplitude: 0, exponent: 1, offset: 0.5 })
|
|
317
|
+
] }),
|
|
318
|
+
/* @__PURE__ */ n.jsx("feGaussianBlur", { in: "turbulence", stdDeviation: 3, result: "softMap" }),
|
|
319
|
+
/* @__PURE__ */ n.jsx(
|
|
320
|
+
"feSpecularLighting",
|
|
321
|
+
{
|
|
322
|
+
in: "softMap",
|
|
323
|
+
surfaceScale: 5,
|
|
324
|
+
specularConstant: 1,
|
|
325
|
+
specularExponent: 100,
|
|
326
|
+
lightingColor: "white",
|
|
327
|
+
result: "specLight",
|
|
328
|
+
children: /* @__PURE__ */ n.jsx("fePointLight", { x: -200, y: -200, z: 300 })
|
|
329
|
+
}
|
|
330
|
+
),
|
|
331
|
+
/* @__PURE__ */ n.jsx(
|
|
332
|
+
"feComposite",
|
|
333
|
+
{
|
|
334
|
+
in: "specLight",
|
|
335
|
+
operator: "arithmetic",
|
|
336
|
+
k1: 0,
|
|
337
|
+
k2: 1,
|
|
338
|
+
k3: 1,
|
|
339
|
+
k4: 0,
|
|
340
|
+
result: "litImage"
|
|
341
|
+
}
|
|
342
|
+
),
|
|
343
|
+
/* @__PURE__ */ n.jsx(
|
|
344
|
+
"feDisplacementMap",
|
|
345
|
+
{
|
|
346
|
+
in: "SourceGraphic",
|
|
347
|
+
in2: "softMap",
|
|
348
|
+
scale: s,
|
|
349
|
+
xChannelSelector: "R",
|
|
350
|
+
yChannelSelector: "G"
|
|
351
|
+
}
|
|
352
|
+
)
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
) }),
|
|
356
|
+
/* @__PURE__ */ n.jsxs(
|
|
357
|
+
p,
|
|
358
|
+
{
|
|
359
|
+
className: `relative overflow-hidden ${b}`,
|
|
360
|
+
style: {
|
|
361
|
+
boxShadow: "0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1)",
|
|
362
|
+
...T
|
|
363
|
+
},
|
|
364
|
+
...g,
|
|
365
|
+
children: [
|
|
366
|
+
/* @__PURE__ */ n.jsx(
|
|
367
|
+
"div",
|
|
368
|
+
{
|
|
369
|
+
className: "absolute inset-0 z-0 overflow-hidden",
|
|
370
|
+
style: {
|
|
371
|
+
backdropFilter: `blur(${u}px)`,
|
|
372
|
+
WebkitBackdropFilter: `blur(${u}px)`,
|
|
373
|
+
filter: `url(#${v})`,
|
|
374
|
+
isolation: "isolate"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
),
|
|
378
|
+
/* @__PURE__ */ n.jsx(
|
|
379
|
+
"div",
|
|
380
|
+
{
|
|
381
|
+
className: "absolute inset-0 z-[1]",
|
|
382
|
+
style: {
|
|
383
|
+
background: d
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
),
|
|
387
|
+
/* @__PURE__ */ n.jsx("div", { className: "relative z-[2]", children: c })
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
)
|
|
391
|
+
] });
|
|
392
|
+
};
|
|
393
|
+
export {
|
|
394
|
+
oe as LiquidGlass
|
|
395
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(function(d,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(d=typeof globalThis<"u"?globalThis:d||self,E(d.LiquidGlass={},d.React))})(this,function(d,E){"use strict";var g={exports:{}},x={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var C;function z(){if(C)return x;C=1;var u=Symbol.for("react.transitional.element"),v=Symbol.for("react.fragment");function c(m,s,l){var p=null;if(l!==void 0&&(p=""+l),s.key!==void 0&&(p=""+s.key),"key"in s){l={};for(var b in s)b!=="key"&&(l[b]=s[b])}else l=s;return s=l.ref,{$$typeof:u,type:m,key:p,ref:s!==void 0?s:null,props:l}}return x.Fragment=v,x.jsx=c,x.jsxs=c,x}var T={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var F;function U(){return F||(F=1,process.env.NODE_ENV!=="production"&&function(){function u(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case J:return"Profiler";case B:return"StrictMode";case Q:return"Suspense";case K:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case V:return"Portal";case H:return(e.displayName||"Context")+".Provider";case X:return(e._context.displayName||"Context")+".Consumer";case Z:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return r=e.displayName||null,r!==null?r:u(e.type)||"Memo";case Y:r=e._payload,e=e._init;try{return u(e(r))}catch{}}return null}function v(e){return""+e}function c(e){try{v(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,a=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),v(e)}}function m(e){if(e===S)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===Y)return"<...>";try{var r=u(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=O.A;return e===null?null:e.getOwner()}function l(){return Error("react-stack-top-frame")}function p(e){if(L.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function b(e,r){function t(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function j(){var e=u(this.type);return $[e]||($[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function k(e,r,t,a,f,i,A,P){return t=i.ref,e={$$typeof:I,type:e,key:r,props:i,_owner:f},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:j}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,r,t,a,f,i,A,P){var o=r.children;if(o!==void 0)if(a)if(ne(o)){for(a=0;a<o.length;a++)_(o[a]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _(o);if(L.call(r,"key")){o=u(e);var R=Object.keys(r).filter(function(ae){return ae!=="key"});a=0<R.length?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}",W[o+a]||(R=0<R.length?"{"+R.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,a,o,R,o),W[o+a]=!0)}if(o=null,t!==void 0&&(c(t),o=""+t),p(r)&&(c(r.key),o=""+r.key),"key"in r){t={};for(var N in r)N!=="key"&&(t[N]=r[N])}else t=r;return o&&b(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),k(e,o,i,f,s(),t,A,P)}function _(e){typeof e=="object"&&e!==null&&e.$$typeof===I&&e._store&&(e._store.validated=1)}var h=E,I=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),H=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),te=Symbol.for("react.client.reference"),O=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,ne=Array.isArray,w=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(e){return e()}};var M,$={},D=h["react-stack-bottom-frame"].bind(h,l)(),G=w(m(l)),W={};T.Fragment=S,T.jsx=function(e,r,t,a,f){var i=1e4>O.recentlyCreatedOwnerStacks++;return y(e,r,t,!1,a,f,i?Error("react-stack-top-frame"):D,i?w(m(e)):G)},T.jsxs=function(e,r,t,a,f){var i=1e4>O.recentlyCreatedOwnerStacks++;return y(e,r,t,!0,a,f,i?Error("react-stack-top-frame"):D,i?w(m(e)):G)}}()),T}process.env.NODE_ENV==="production"?g.exports=z():g.exports=U();var n=g.exports;const q=({children:u,className:v="",backdropBlur:c=2,tintColor:m="rgba(255, 255, 255, .2)",displacementScale:s=150,turbulenceBaseFrequency:l="0.008 0.008",turbulenceSeed:p=1.5,as:b="div",style:j,...k})=>{const _=`liquid-glass-${E.useId().replace(/:/g,"-")}`;return n.jsxs(n.Fragment,{children:[n.jsx("svg",{style:{display:"none"},children:n.jsxs("filter",{id:_,x:"0%",y:"0%",width:"100%",height:"100%",filterUnits:"objectBoundingBox",children:[n.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:l,numOctaves:1,seed:p,result:"turbulence"}),n.jsxs("feComponentTransfer",{in:"turbulence",result:"mapped",children:[n.jsx("feFuncR",{type:"gamma",amplitude:1,exponent:10,offset:.5}),n.jsx("feFuncG",{type:"gamma",amplitude:0,exponent:1,offset:0}),n.jsx("feFuncB",{type:"gamma",amplitude:0,exponent:1,offset:.5})]}),n.jsx("feGaussianBlur",{in:"turbulence",stdDeviation:3,result:"softMap"}),n.jsx("feSpecularLighting",{in:"softMap",surfaceScale:5,specularConstant:1,specularExponent:100,lightingColor:"white",result:"specLight",children:n.jsx("fePointLight",{x:-200,y:-200,z:300})}),n.jsx("feComposite",{in:"specLight",operator:"arithmetic",k1:0,k2:1,k3:1,k4:0,result:"litImage"}),n.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"softMap",scale:s,xChannelSelector:"R",yChannelSelector:"G"})]})}),n.jsxs(b,{className:`relative overflow-hidden ${v}`,style:{boxShadow:"0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1)",...j},...k,children:[n.jsx("div",{className:"absolute inset-0 z-0 overflow-hidden",style:{backdropFilter:`blur(${c}px)`,WebkitBackdropFilter:`blur(${c}px)`,filter:`url(#${_})`,isolation:"isolate"}}),n.jsx("div",{className:"absolute inset-0 z-[1]",style:{background:m}}),n.jsx("div",{className:"relative z-[2]",children:u})]})]})};d.LiquidGlass=q,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.7 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-500:oklch(62.3% .214 259.815);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--drop-shadow-lg:0 4px 4px #00000026;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-0{z-index:0}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[2\]{z-index:2}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-block{display:inline-block}.aspect-square{aspect-ratio:1}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-full{width:100%}.max-w-5xl{max-width:var(--container-5xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-white\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-12{padding:calc(var(--spacing)*12)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-8{padding-top:calc(var(--spacing)*8)}.text-center{text-align:center}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-white{color:var(--color-white)}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab,red,red)){.text-white\/60{color:color-mix(in oklab,var(--color-white)60%,transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white)70%,transparent)}}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\/80{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.text-white\/90{color:color-mix(in oklab,var(--color-white)90%,transparent)}}.uppercase{text-transform:uppercase}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--drop-shadow-lg));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-\[1\.02\]:hover{scale:1.02}}@media (min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:p-8{padding:calc(var(--spacing)*8)}.sm\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.sm\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media (min-width:64rem){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
|
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@creativoma/liquid-glass",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "A React wrapper component with liquid frosted glass effect using TailwindCSS",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.esm.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"homepage": "https://github.com/creativoma/liquid-glass#readme",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/creativoma/liquid-glass.git"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/index.esm.js",
|
|
17
|
+
"require": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"keywords": [
|
|
28
|
+
"react",
|
|
29
|
+
"glass",
|
|
30
|
+
"frosted-glass",
|
|
31
|
+
"liquid-glass",
|
|
32
|
+
"glassmorphism",
|
|
33
|
+
"backdrop-filter",
|
|
34
|
+
"component",
|
|
35
|
+
"tailwindcss",
|
|
36
|
+
"wrapper",
|
|
37
|
+
"ui",
|
|
38
|
+
"typescript",
|
|
39
|
+
"frontend"
|
|
40
|
+
],
|
|
41
|
+
"author": {
|
|
42
|
+
"name": "creativoma"
|
|
43
|
+
},
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": ">=18.0.0",
|
|
47
|
+
"react-dom": ">=18.0.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@tailwindcss/postcss": "^4.1.7",
|
|
51
|
+
"@types/node": "^20.17.47",
|
|
52
|
+
"@types/react": "^19.1.4",
|
|
53
|
+
"@types/react-dom": "^19.1.5",
|
|
54
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
55
|
+
"autoprefixer": "^10.4.16",
|
|
56
|
+
"postcss": "^8.5.3",
|
|
57
|
+
"react": "^19.1.0",
|
|
58
|
+
"globals": "^16.1.0",
|
|
59
|
+
"react-dom": "^19.1.0",
|
|
60
|
+
"tailwindcss": "^4.1.7",
|
|
61
|
+
"typescript": "^5.8.3",
|
|
62
|
+
"vite": "^5.0.8",
|
|
63
|
+
"vite-plugin-dts": "^3.6.4",
|
|
64
|
+
"prettier": "^3.5.3",
|
|
65
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
66
|
+
"@eslint/js": "^9.27.0",
|
|
67
|
+
"eslint": "^9.27.0",
|
|
68
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
69
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
70
|
+
"typescript-eslint": "^8.32.1"
|
|
71
|
+
},
|
|
72
|
+
"publishConfig": {
|
|
73
|
+
"registry": "https://registry.npmjs.org/",
|
|
74
|
+
"access": "public"
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"dev": "vite",
|
|
78
|
+
"preview": "vite preview",
|
|
79
|
+
"build:demo": "vite build --config vite.config.ts",
|
|
80
|
+
"build:lib": "tsc && vite build --config vite.config.lib.ts",
|
|
81
|
+
"lint": "eslint . --ext .ts,.tsx",
|
|
82
|
+
"format": "prettier --write ."
|
|
83
|
+
}
|
|
84
|
+
}
|