glass-studio-ui-pro 1.1.3 → 1.1.5

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 CHANGED
@@ -3,38 +3,39 @@
3
3
  **Premium Liquid Glass UI Library for Vue 3**
4
4
 
5
5
  > [!IMPORTANT]
6
- > **DỰ ÁN ĐANG PHÁT TRIỂN**: Thư viện hiện tại đang trong giai đoạn Beta chưa mở công khai cho mọi người sử dụng.
7
- > **Ngày ra mắt chính thức: 01/05/2026**.
6
+ > **UNDER ACTIVE DEVELOPMENT**: This library is currently in Beta and is not yet available for public use.
7
+ > **Official Launch Date: May 1st, 2026**.
8
8
 
9
9
  ![Glass Studio Preview](https://i.ibb.co/yc8QmHwZ/Screenshot-2026-03-27-154613.png)
10
10
 
11
- `glass-studio-ui-pro` thư viện UI chuyên về hiệu ứng kính mờ (Glassmorphism) hiệu năng cao cho Vue 3. Thư viện cung cấp các bộ lọc biến dạng lỏng (Liquid Distortion), hệ thống đổ bóng đa tầng các preset chuyên nghiệp giúp tạo ra giao diện sang trọng, đẳng cấp.
11
+ `glass-studio-ui-pro` is a high-performance Vue 3 UI library specialized in advanced Glassmorphism effects. It features real-time Liquid Distortion filters, multi-layered reflection systems, and professional-grade presets for crafting state-of-the-art premium interfaces.
12
12
 
13
13
  ---
14
14
 
15
- ## ✨ Tính năng nổi bật
15
+ ## ✨ Key Features
16
16
 
17
- - **Liquid Glass Distortion**: Tích hợp các bộ lọc biến dạng kính chân thực (Mist, Grain, Frosted, Ripple).
18
- - **Pro Presets**: Hơn 10 thiết kế kính được tinh chỉnh sẵn (Heavy-frost, Crystal, Deep-velvet...).
19
- - **Advanced Shadow Engine**: Hệ thống đổ bóng phản xạ (Reflex) bóng mờ (Mist) tạo độ sâu vật lý.
20
- - **License Guard**: Hệ thống bảo mật quản bản quyền thời gian thực.
21
- - **TypeScript First**: Hỗ trợ đầy đủ kiểu dữ liệu, tối ưu cho DX (Developer Experience).
17
+ - **Liquid Glass Distortion**: Physically accurate glass distortion filters (Mist, Grain, Frosted, Ripple, Wavy).
18
+ - **Professional Presets**: 6 specialized material presets (Glass Frost, Grain Frost, Soft Mist, Light Frost, Fine Frost, Heavy Frost).
19
+ - **Advanced Shadow Engine**: Realistic elevation-based reflections (Reflex) and ambient glints (Mist).
20
+ - **Neon Glow System**: Integrated liquid glow effects for buttons and interactive states.
21
+ - **License Guard**: Real-time security and license verification system for enterprise use.
22
+ - **TypeScript Native**: Full type safety and optimized Developer Experience (DX).
22
23
 
23
24
  ---
24
25
 
25
- ## 🚀 Bắt đầu sử dụng
26
+ ## 🚀 Getting Started
26
27
 
27
- ### 1. Cài đặt
28
+ ### 1. Installation
28
29
 
29
30
  ```bash
30
31
  npm install glass-studio-ui-pro
31
- # hoặc
32
+ # or
32
33
  yarn add glass-studio-ui-pro
33
34
  ```
34
35
 
35
- ### 2. Cấu hình Plugin (main.ts)
36
+ ### 2. Plugin Configuration (`main.ts`)
36
37
 
37
- Để kích hoạt đầy đủ tính năng Pro, bạn cần đăng ký plugin truyền vào **License Key**:
38
+ To unlock all Pro features, register the plugin and provide your **License Key**:
38
39
 
39
40
  ```typescript
40
41
  import { createApp } from "vue";
@@ -43,7 +44,7 @@ import "glass-studio-ui-pro/style.css";
43
44
 
44
45
  const app = createApp(App);
45
46
 
46
- // Khởi tạo GlassUI với License Key của bạn
47
+ // Initialize GlassUI with your Pro License Key
47
48
  app.use(GlassUI, {
48
49
  licenseKey: "YOUR-PRO-LICENSE-KEY",
49
50
  });
@@ -51,9 +52,9 @@ app.use(GlassUI, {
51
52
  app.mount("#app");
52
53
  ```
53
54
 
54
- ### 3. Cài đặt SVG Filters (Root App)
55
+ ### 3. Global SVG Filters (`App.vue`)
55
56
 
56
- Để các hiệu ứng biến dạng (Distortion) hoạt động, bạn **bắt buộc** phải đặt `CmFilters` tại file root (thường `App.vue`):
57
+ The liquid distortion engine requires the `CmFilters` component to be present at the root level (usually in `App.vue`):
57
58
 
58
59
  ```vue
59
60
  <script setup>
@@ -64,93 +65,143 @@ import { CmFilters } from "glass-studio-ui-pro";
64
65
  <div id="app">
65
66
  <router-view />
66
67
  <CmFilters />
67
- <!-- Engine xử hiệu ứng kính -->
68
+ <!-- The core engine for glass distortion effects -->
68
69
  </div>
69
70
  </template>
70
71
  ```
71
72
 
72
73
  ---
73
74
 
74
- ## 🎨 Sử dụng linh kiện
75
+ ## 🔑 PRO License Registration
75
76
 
76
- ### CmCard (Thẻ kính)
77
+ To purchase a PRO license and unlock all premium glass effects, please visit [https://finzo.duckdns.org/](https://finzo.duckdns.org/) and follow these steps:
78
+
79
+ 1. **Register an account**: Create your developer account on the platform.
80
+ 2. **Purchase**: Navigate to the **NPM Libraries** section, select **Glass Studio UI Pro**, and complete the payment process.
81
+ 3. **Get your Key**: After successful payment, you will receive a unique `licenseKey`.
82
+
83
+ ---
84
+
85
+ ## 🎨 Component Usage
86
+
87
+ ### CmCard (Glass Surface)
88
+ A versatile container with backdrop blur and texture.
77
89
 
78
90
  ```vue
79
91
  <template>
80
92
  <CmCard type="heavy-frost" shadow="mist" distortion="wavy">
81
93
  <h3>Liquid Glass Performance</h3>
82
- <p>Nội dung hiển thị với hiệu ứng kính cao cấp.</p>
94
+ <p>Content rendered with premium glass optics.</p>
83
95
  </CmCard>
84
96
  </template>
85
97
  ```
86
98
 
87
- ### CmButton (Nút bấm thủy tinh)
99
+ ### CmButton (Glass Controls)
100
+ Interactive buttons with material presets and liquid glow.
88
101
 
89
102
  ```vue
90
103
  <template>
91
104
  <CmButton variant="primary" glow :blur="20" distortion="frosted">
92
- Bắt đầu ngay
105
+ Explore Pro
93
106
  </CmButton>
94
107
  </template>
95
108
  ```
96
109
 
110
+ ### CmCheckbox (Liquid Selection)
111
+ Neon-lit checkboxes with animated state transitions.
112
+
113
+ ```vue
114
+ <template>
115
+ <CmCheckbox v-model="isChecked" label="Enable Reflections" />
116
+ </template>
117
+ ```
118
+
119
+ ### CmToolbar (Adaptive Navigation)
120
+ Glass toolbars with multiple layout modes (Full, Floating, Fit).
121
+
122
+ ```vue
123
+ <template>
124
+ <CmToolbar width="floating" type="fine-frost" shadow="reflex">
125
+ <template #left><span>Logo</span></template>
126
+ <CmButton variant="ghost">Home</CmButton>
127
+ <template #right><CmButton variant="primary">Login</CmButton></template>
128
+ </CmToolbar>
129
+ </template>
130
+ ```
131
+
97
132
  ---
98
133
 
99
- ## 📖 Bảng thông số (API Reference)
134
+ ## 📖 API Reference
100
135
 
101
136
  ### CmCard Props
102
137
 
103
138
  | Prop | Type | Default | Description |
104
- | :----------- | :----------- | :------- | :------------------------------------------------------------- |
105
- | `type` | `CardPreset` | `'none'` | Các preset sẵn có: `glass-frost`, `heavy-frost`, `crystal`... |
106
- | `blur` | `number` | `12` | Độ mờ của lớp kính (px). |
107
- | `opacity` | `number` | `0.12` | Độ trong suốt của nền (0-1). |
108
- | `distortion` | `string` | `'none'` | Kiểu biến dạng: `wavy`, `frosted`, `grain`, `ripple`, `mist`. |
109
- | `shadow` | `string` \| `boolean` | `false` | Kiểu đổ bóng: `mist`, `reflex`. |
139
+ | :--- | :--- | :--- | :--- |
140
+ | `type` | `Preset` | `'glass-frost'` | Material type: `glass-frost`, `grain-frost`, `soft-mist`, `light-frost`, `fine-frost`, `heavy-frost`. |
141
+ | `blur` | `number` | `12` | Backdrop blur radius (px). |
142
+ | `opacity` | `number` | `0.12` | Background surface opacity (0-1). |
143
+ | `distortion`| `string` | `'none'` | Filter style: `wavy`, `frosted`, `grain`, `ripple`, `mist`. |
144
+ | `shadow` | `string` | `'none'` | Shadow style: `mist`, `reflex`. |
145
+
146
+ ### CmButton Props
147
+
148
+ | Prop | Type | Default | Description |
149
+ | :--- | :--- | :--- | :--- |
150
+ | `variant` | `string` | `'default'` | Visual style: `default`, `primary`, `ghost`, `solid`. |
151
+ | `glow` | `boolean` | `false` | Enables the liquid neon glow effect. |
152
+ | `type` | `Preset` | `'glass-frost'` | Material surface preset. |
153
+ | `blur` | `number` | `12` | Backdrop blur intensity. |
154
+ | `active` | `boolean` | `false` | Visual active state toggle. |
155
+
156
+ ### CmCheckbox Props
157
+
158
+ | Prop | Type | Default | Description |
159
+ | :--- | :--- | :--- | :--- |
160
+ | `v-model` | `boolean` | `false` | Two-way binding state. |
161
+ | `label` | `string` | `''` | Optional label text. |
162
+ | `disabled` | `boolean` | `false` | Prevents user interaction. |
110
163
 
111
164
  ### CmModal Props
112
165
 
113
166
  | Prop | Type | Default | Description |
114
167
  | :--- | :--- | :--- | :--- |
115
- | `v-model` | `boolean` | `false` | Trạng thái hiển thị (Bắt buộc). |
116
- | `title` | `string` | `''` | Tiêu đề của Modal. |
117
- | `width` | `string` | `'500px'` | Chiều rộng tối đa của Modal. |
118
- | `distortion`| `string` | `'frosted'`| Kiểu biến dạng bề mặt kính. |
119
- | `showClose` | `boolean` | `true` | Hiển thị nút đóng (X). |
168
+ | `v-model` | `boolean` | `false` | Controls visibility (Required). |
169
+ | `title` | `string` | `''` | Header title text. |
170
+ | `type` | `Preset` | `'heavy-frost'` | Modal material style. |
171
+ | `shadow` | `string` | `'reflex'` | Surface reflection mode. |
120
172
 
121
173
  ### CmToolbar Props
122
174
 
123
175
  | Prop | Type | Default | Description |
124
176
  | :--- | :--- | :--- | :--- |
125
- | `position` | `string` | `'static'`| Vị trí: `top`, `bottom`, `static`. |
126
- | `floating` | `boolean` | `false` | Hiển thị dạng trôi nổi (có margin). |
127
- | `narrow` | `boolean` | `false` | Giảm kích thước padding dọc. |
128
- | `distortion`| `string` | `'mist'` | Kiểu biến dạng bề mặt kính. |
129
- | `shadow` | `string` | `'reflex'`| Hiệu ứng đổ bóng đặc thù. |
177
+ | `width` | `string` | `'full'` | Width mode: `full`, `floating`, `fit`. |
178
+ | `type` | `Preset` | `'glass-frost'` | Material surface preset. |
179
+ | `shadow` | `string` | `'reflex'` | Surface glint intensity. |
180
+ | `position` | `string` | `'static'` | CSS Position: `static`, `top`, `bottom`. |
130
181
 
131
182
  ---
132
183
 
133
- ## 🔐 Bảo mật & Bản quyền
184
+ ## 🔐 Security & License Guard
134
185
 
135
- Đây phiên bản **Pro**. Nếu không License Key hợp lệ hoặc bản quyền hết hạn:
186
+ This is the **Pro** version of the library. If a valid License Key is not detected or has expired:
136
187
 
137
- - Linh kiện sẽ chuyển sang trạng thái **Secure Lock** (Giao diện tối giản).
138
- - Hiển thị thông báo lỗi trực tiếp từ hệ thống (Vd: **"LICENSE HAS EXPIRED"**).
139
- - Các bộ lọc cao cấp sẽ bị hiệu hóa để bảo vệ tài sản trí tuệ.
188
+ - Components will enter **Secure Lock** state (Blackout/Restricted UI).
189
+ - Console warnings will be triggered (e.g., **"LICENSE_REQUIRED"**).
190
+ - Advanced SVG Filters and material presets will be disabled to protect intellectual property.
140
191
 
141
- Bạn thể kiểm tra trạng thái bản quyền:
192
+ You can check the current license status programmatically:
142
193
 
143
194
  ```typescript
144
195
  import { getLicenseStatus } from "glass-studio-ui-pro";
145
196
 
146
197
  const status = getLicenseStatus();
147
198
  if (!status.isValid) {
148
- console.error("Lỗi bản quyền:", status.message);
199
+ console.warn("License Issue:", status.message);
149
200
  }
150
201
  ```
151
202
 
152
203
  ---
153
204
 
154
- ## 📄 Bản quyền
205
+ ## 📄 License
155
206
 
156
- (C) 2026 Glass Studio & CM Team. Mọi quyền được bảo lưu.
207
+ (C) 2026 Glass Studio & CM Team. All rights reserved. Intellectual Property under private commercial license.
@@ -0,0 +1,32 @@
1
+ interface Props {
2
+ type?: 'info' | 'success' | 'warning' | 'error';
3
+ title?: string;
4
+ message?: string;
5
+ duration?: number;
6
+ closable?: boolean;
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<Props, {
18
+ close: () => void;
19
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
20
+ type: "info" | "success" | "warning" | "error";
21
+ title: string;
22
+ duration: number;
23
+ message: string;
24
+ closable: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -4,6 +4,7 @@ export interface LicenseStatus {
4
4
  tier: "free" | "pro";
5
5
  remainingDays?: number;
6
6
  message?: string;
7
+ renewalUrl?: string;
7
8
  }
8
9
  /**
9
10
  * Internal hardware/software lock validation.
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { default as CmCard } from './components/CmCard.vue';
2
- import { default as CmButton } from './components/CmButton.vue';
3
- import { default as CmCheckbox } from './components/CmCheckbox.vue';
4
- import { default as CmFilters } from './components/CmFilters.vue';
5
- import { default as CmModal } from './components/CmModal.vue';
6
- import { default as CmToolbar } from './components/CmToolbar.vue';
1
+ import { default as CgCard } from './components/CgCard.vue';
2
+ import { default as CgButton } from './components/CgButton.vue';
3
+ import { default as CgCheckbox } from './components/CgCheckbox.vue';
4
+ import { default as CgFilters } from './components/CgFilters.vue';
5
+ import { default as CgModal } from './components/CgModal.vue';
6
+ import { default as CgToolbar } from './components/CgToolbar.vue';
7
+ import { default as CgNotification } from './components/CgNotification.vue';
7
8
  import { getLicenseStatus } from './core/license';
8
- export { CmCard, CmButton, CmCheckbox, CmFilters, CmModal, CmToolbar, getLicenseStatus };
9
+ export { CgCard, CgButton, CgCheckbox, CgFilters, CgModal, CgToolbar, CgNotification, getLicenseStatus };
9
10
  export interface GlassUIOptions {
10
11
  licenseKey?: string;
11
12
  }