glass-studio-ui-pro 0.1.26 → 0.1.27
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/README.md +13 -99
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,116 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# glass-studio-ui-pro
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Premium Liquid Glass UI Library for Vue 3.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## ✨ Features
|
|
12
|
-
|
|
13
|
-
- **Liquid Glass Distortion**: Real-time high-fidelity glass distortion effects (Mist, Grain, Frosted).
|
|
14
|
-
- **Pro Presets**: 10+ professionally tuned glass styles (Glass-frost, Light-frost, Heavy-frost, etc.).
|
|
15
|
-
- **Advanced Shadow Engine**: Multi-layered reflection and mist shadows for physical depth.
|
|
16
|
-
- **License Guard**: Secure component locking with real-time error messaging from API.
|
|
17
|
-
- **Vue 3 First**: Built using `<script setup>` and TypeScript for a modern DX.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## 🚀 Getting Started
|
|
22
|
-
|
|
23
|
-
### 1. Installation
|
|
24
|
-
|
|
25
|
-
Install the library using npm or yarn:
|
|
5
|
+
## Features
|
|
6
|
+
- Liquid Glass Distortion
|
|
7
|
+
- Pro Presets
|
|
8
|
+
- License Guard
|
|
9
|
+
- Vue 3 Support
|
|
26
10
|
|
|
11
|
+
## Installation
|
|
27
12
|
```bash
|
|
28
13
|
npm install glass-studio-ui-pro
|
|
29
14
|
```
|
|
30
15
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
In your `main.ts` or `main.js`, register the plugin and provide your **License Key**:
|
|
34
|
-
|
|
16
|
+
## Global Setup
|
|
35
17
|
```typescript
|
|
36
18
|
import { createApp } from "vue";
|
|
37
19
|
import { GlassUI } from "glass-studio-ui-pro";
|
|
38
|
-
import "glass-studio-ui-pro/style.css";
|
|
20
|
+
import "glass-studio-ui-pro/style.css";
|
|
39
21
|
|
|
40
22
|
const app = createApp(App);
|
|
41
|
-
|
|
42
|
-
// Initialize GlassUI with your Pro License Key
|
|
43
23
|
app.use(GlassUI, {
|
|
44
|
-
licenseKey: 'YOUR-
|
|
24
|
+
licenseKey: 'YOUR-LICENSE-KEY'
|
|
45
25
|
});
|
|
46
|
-
|
|
47
26
|
app.mount("#app");
|
|
48
27
|
```
|
|
49
28
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
To enable liquid glass textures, you **must** include the `CmFilters` component once in your root `App.vue`:
|
|
53
|
-
|
|
54
|
-
```vue
|
|
55
|
-
<script setup>
|
|
56
|
-
import { CmFilters } from "glass-studio-ui-pro";
|
|
57
|
-
</script>
|
|
58
|
-
|
|
59
|
-
<template>
|
|
60
|
-
<div id="app">
|
|
61
|
-
<router-view />
|
|
62
|
-
<CmFilters /> <!-- Required for distortions -->
|
|
63
|
-
</div>
|
|
64
|
-
</template>
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## 🎨 Usage
|
|
70
|
-
|
|
71
|
-
### Basic Glass Card
|
|
72
|
-
|
|
73
|
-
```vue
|
|
74
|
-
<script setup>
|
|
75
|
-
import { CmCard, CmButton } from "glass-studio-ui-pro";
|
|
76
|
-
</script>
|
|
77
|
-
|
|
78
|
-
<template>
|
|
79
|
-
<CmCard type="heavy-frost" shadow="mist">
|
|
80
|
-
<h3>Liquid Glass Title</h3>
|
|
81
|
-
<p>This card features deep blur and high-fidelity frost texture.</p>
|
|
82
|
-
|
|
83
|
-
<CmButton variant="primary" glow>
|
|
84
|
-
Action Button
|
|
85
|
-
</CmButton>
|
|
86
|
-
</CmCard>
|
|
87
|
-
</template>
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## 🔐 License & Security
|
|
93
|
-
|
|
94
|
-
This is a **Pro** version of the library. If a valid license is not detected, components will enter a "Secure Lock" state:
|
|
95
|
-
- Visuals will revert to a simplified dark aesthetic.
|
|
96
|
-
- A descriptive error message (e.g., **"LICENSE HAS EXPIRED"**) will be displayed.
|
|
97
|
-
|
|
98
|
-
```typescript
|
|
99
|
-
import { getLicenseStatus } from "glass-studio-ui-pro";
|
|
100
|
-
|
|
101
|
-
const status = getLicenseStatus();
|
|
102
|
-
console.log(status.isValid); // boolean
|
|
103
|
-
console.log(status.message); // Info from API
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
---
|
|
107
|
-
|
|
108
|
-
## 🌍 Localization (Việt Nam)
|
|
109
|
-
|
|
110
|
-
Hệ thống được tối ưu mang lại trải nghiệm thị giác cao cấp với hiệu ứng bề mặt kính mờ, kính nhám và cơ chế bảo mật bản quyền chuyên nghiệp.
|
|
111
|
-
|
|
112
|
-
---
|
|
113
|
-
|
|
114
|
-
## 📄 License
|
|
115
|
-
|
|
116
|
-
(C) 2026 Glass Studio & CM Team. All Rights Reserved.
|
|
29
|
+
## License
|
|
30
|
+
(C) 2026 Glass Studio All Rights Reserved.
|