@m3ui-vue/m3ui-vue 0.6.2 → 0.6.4
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 +8 -6
- package/dist/components/MWindow.vue.d.ts +29 -16
- package/dist/m3ui.js +139 -122
- package/dist/m3ui.js.map +1 -1
- package/dist/terminal.js +9 -8
- package/dist/terminal.js.map +1 -1
- package/package.json +1 -1
- package/src/components/MSlider.vue +82 -33
- package/src/components/MTerminal.vue +12 -6
- package/src/components/MWindow.vue +10 -6
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
135+ tree-shakeable components following [Material Design 3](https://m3.material.io/) guidelines. Ships with 30 color palettes, dark mode, i18n support, and full TypeScript coverage.
|
|
20
20
|
|
|
21
21
|
## Getting Started
|
|
22
22
|
|
|
@@ -58,7 +58,7 @@ In your main stylesheet (e.g. `src/style.css`):
|
|
|
58
58
|
```css
|
|
59
59
|
@import 'tailwindcss';
|
|
60
60
|
@import '@m3ui-vue/m3ui-vue/theme';
|
|
61
|
-
@import '@m3ui-vue/m3ui-vue/palettes'; /*
|
|
61
|
+
@import '@m3ui-vue/m3ui-vue/palettes'; /* 30 color palettes */
|
|
62
62
|
@import '@m3ui-vue/m3ui-vue/styles'; /* component transitions & animations */
|
|
63
63
|
```
|
|
64
64
|
|
|
@@ -182,6 +182,7 @@ const name = ref('')
|
|
|
182
182
|
| `MBottomSheet` | Bottom sheet |
|
|
183
183
|
| `MSideSheet` | Side sheet |
|
|
184
184
|
| `MProgressBar` | Linear progress |
|
|
185
|
+
| `MCircleProgressBar` | Circular progress (circle or wavy variant) |
|
|
185
186
|
| `MPageProgress` | Top/bottom page-loading bar, auto-wired to vue-router when present, or driven by hand via `usePageProgress()` |
|
|
186
187
|
| `MSpinner` | Circular spinner |
|
|
187
188
|
| `MLoadingOverlay` | Full-area loading |
|
|
@@ -195,7 +196,7 @@ const name = ref('')
|
|
|
195
196
|
| | |
|
|
196
197
|
|---|---|
|
|
197
198
|
| `MTabs` | Tab navigation |
|
|
198
|
-
| `MMenu` / `MMenuItem` | Dropdown menus |
|
|
199
|
+
| `MMenu` / `MMenuItem` / `MMenuDivider` | Dropdown menus |
|
|
199
200
|
| `MContextMenu` | Right-click context menu |
|
|
200
201
|
| `MBreadcrumbs` | Breadcrumb trail |
|
|
201
202
|
| `MStepper` | Step-by-step wizard |
|
|
@@ -267,6 +268,7 @@ const name = ref('')
|
|
|
267
268
|
| `MTransferList` | Dual-list transfer |
|
|
268
269
|
| `MInfiniteScroll` | Infinite scroll wrapper |
|
|
269
270
|
| `MTour` | Feature tour / onboarding |
|
|
271
|
+
| `MShader` | Shadertoy-style GLSL/WGSL fragment shader renderer (WebGPU with WebGL2 fallback) |
|
|
270
272
|
|
|
271
273
|
### Separate Entry Points
|
|
272
274
|
|
|
@@ -287,7 +289,7 @@ import { MBarcode } from '@m3ui-vue/m3ui-vue/barcode'
|
|
|
287
289
|
| | |
|
|
288
290
|
|---|---|
|
|
289
291
|
| `useTheme()` | Light / dark / system theme with `cycle()` |
|
|
290
|
-
| `useColorPalette()` | Switch between
|
|
292
|
+
| `useColorPalette()` | Switch between 30 palettes at runtime |
|
|
291
293
|
| `useToast()` | Programmatic toast notifications |
|
|
292
294
|
| `useNotification()` | Rich notifications with actions |
|
|
293
295
|
| `useFieldBg()` | Context-aware field background color |
|
|
@@ -297,9 +299,9 @@ import { MBarcode } from '@m3ui-vue/m3ui-vue/barcode'
|
|
|
297
299
|
|
|
298
300
|
## Color Palettes
|
|
299
301
|
|
|
300
|
-
|
|
302
|
+
30 built-in palettes with light and dark variants:
|
|
301
303
|
|
|
302
|
-
`purple` (default) `indigo` `navy` `blue` `cyan` `teal` `green` `lime` `olive` `amber` `sand` `orange` `deep-orange` `brown` `red` `coral` `crimson` `pink` `violet` `slate`
|
|
304
|
+
`purple` (default) `indigo` `navy` `blue` `cyan` `teal` `green` `lime` `olive` `amber` `sand` `orange` `deep-orange` `brown` `red` `coral` `crimson` `pink` `violet` `slate` `graphite` `charcoal` `steel` `ash` `iron` `fog` `pewter` `smoke` `stone` `zinc`
|
|
303
305
|
|
|
304
306
|
### Switch at Runtime
|
|
305
307
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
2
4
|
modelValue: boolean;
|
|
3
5
|
title?: string;
|
|
4
6
|
icon?: string;
|
|
@@ -15,20 +17,28 @@ type __VLS_Props = {
|
|
|
15
17
|
x?: number;
|
|
16
18
|
y?: number;
|
|
17
19
|
resetPosition?: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare var __VLS_1: {}, __VLS_8: {}, __VLS_20: {};
|
|
20
|
-
type __VLS_Slots = {} & {
|
|
21
|
-
header?: (props: typeof __VLS_1) => any;
|
|
22
|
-
} & {
|
|
23
|
-
actions?: (props: typeof __VLS_8) => any;
|
|
24
|
-
} & {
|
|
25
|
-
default?: (props: typeof __VLS_20) => any;
|
|
26
|
-
};
|
|
27
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
21
|
"update:modelValue": (value: boolean) => any;
|
|
29
22
|
close: () => any;
|
|
30
23
|
minimize: () => any;
|
|
31
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
25
|
+
modelValue: boolean;
|
|
26
|
+
title?: string;
|
|
27
|
+
icon?: string;
|
|
28
|
+
width?: string;
|
|
29
|
+
height?: string;
|
|
30
|
+
minWidth?: number;
|
|
31
|
+
minHeight?: number;
|
|
32
|
+
maxWidth?: number;
|
|
33
|
+
maxHeight?: number;
|
|
34
|
+
resizable?: boolean;
|
|
35
|
+
draggable?: boolean;
|
|
36
|
+
closable?: boolean;
|
|
37
|
+
minimizable?: boolean;
|
|
38
|
+
x?: number;
|
|
39
|
+
y?: number;
|
|
40
|
+
resetPosition?: boolean;
|
|
41
|
+
}> & Readonly<{
|
|
32
42
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
33
43
|
onClose?: (() => any) | undefined;
|
|
34
44
|
onMinimize?: (() => any) | undefined;
|
|
@@ -44,10 +54,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
44
54
|
draggable: boolean;
|
|
45
55
|
resizable: boolean;
|
|
46
56
|
resetPosition: boolean;
|
|
47
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
58
|
+
header?: (props: {}) => any;
|
|
59
|
+
} & {
|
|
60
|
+
actions?: (props: {}) => any;
|
|
61
|
+
} & {
|
|
62
|
+
default?: (props: {}) => any;
|
|
63
|
+
}>;
|
|
51
64
|
type __VLS_WithSlots<T, S> = T & {
|
|
52
65
|
new (): {
|
|
53
66
|
$slots: S;
|