@m3ui-vue/m3ui-vue 0.5.10 → 0.6.1

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.
Files changed (87) hide show
  1. package/README.md +36 -2
  2. package/dist/{MMenuItem-DyY4zhRA.js → MMenuItem-DbbrJhFE.js} +2 -2
  3. package/dist/{MMenuItem-DyY4zhRA.js.map → MMenuItem-DbbrJhFE.js.map} +1 -1
  4. package/dist/barcode.d.ts +1 -0
  5. package/dist/barcode.js +51 -0
  6. package/dist/barcode.js.map +1 -0
  7. package/dist/code-editor.js +1 -1
  8. package/dist/components/MAutocomplete.vue.d.ts +1 -1
  9. package/dist/components/MBarcode.vue.d.ts +35 -0
  10. package/dist/components/MButton.vue.d.ts +1 -1
  11. package/dist/components/MButtonGroup.vue.d.ts +1 -1
  12. package/dist/components/MChatBubble.vue.d.ts +1 -1
  13. package/dist/components/MCircleProgressBar.vue.d.ts +1 -1
  14. package/dist/components/MCopyButton.vue.d.ts +31 -0
  15. package/dist/components/MExportButton.vue.d.ts +43 -0
  16. package/dist/components/MFab.vue.d.ts +1 -1
  17. package/dist/components/MKbd.vue.d.ts +12 -0
  18. package/dist/components/MLightbox.vue.d.ts +53 -0
  19. package/dist/components/MMultiAutocomplete.vue.d.ts +1 -1
  20. package/dist/components/MMultiSelect.vue.d.ts +1 -1
  21. package/dist/components/MPasswordMeter.vue.d.ts +17 -0
  22. package/dist/components/MPinInput.vue.d.ts +35 -0
  23. package/dist/components/MQRCode.vue.d.ts +35 -0
  24. package/dist/components/MRating.vue.d.ts +1 -1
  25. package/dist/components/MRelativeTime.vue.d.ts +8 -0
  26. package/dist/components/MSelect.vue.d.ts +1 -1
  27. package/dist/components/MShader.vue.d.ts +2 -2
  28. package/dist/components/MSignaturePad.vue.d.ts +37 -0
  29. package/dist/components/MSlider.vue.d.ts +1 -1
  30. package/dist/components/MSplitButton.vue.d.ts +1 -1
  31. package/dist/components/MSubtitle.vue.d.ts +1 -1
  32. package/dist/components/MTerminal.vue.d.ts +2 -2
  33. package/dist/components/MTitle.vue.d.ts +1 -1
  34. package/dist/components/MWindow.vue.d.ts +1 -1
  35. package/dist/composables/useColorPalette.d.ts +9 -0
  36. package/dist/composables/useLocale.d.ts +2 -0
  37. package/dist/index.d.ts +9 -0
  38. package/dist/locales/index.js +7 -0
  39. package/dist/locales/index.js.map +1 -1
  40. package/dist/m3ui-vue.css +1 -1
  41. package/dist/m3ui.js +1737 -1021
  42. package/dist/m3ui.js.map +1 -1
  43. package/dist/plugin.d.ts +9 -0
  44. package/dist/qrcode.d.ts +1 -0
  45. package/dist/qrcode.js +117 -0
  46. package/dist/qrcode.js.map +1 -0
  47. package/dist/rich-text-editor.js +2 -2
  48. package/dist/styles.css +1 -1
  49. package/dist/{useLocale-QCIVDYWx.js → useLocale-BKsIWNix.js} +2 -1
  50. package/dist/useLocale-BKsIWNix.js.map +1 -0
  51. package/package.json +21 -1
  52. package/src/__tests__/MBarcode.test.ts +40 -0
  53. package/src/__tests__/MCopyButton.test.ts +49 -0
  54. package/src/__tests__/MExportButton.test.ts +64 -0
  55. package/src/__tests__/MKbd.test.ts +33 -0
  56. package/src/__tests__/MLightbox.test.ts +195 -0
  57. package/src/__tests__/MPasswordMeter.test.ts +43 -0
  58. package/src/__tests__/MPinInput.test.ts +138 -0
  59. package/src/__tests__/MQRCode.test.ts +58 -0
  60. package/src/__tests__/MRelativeTime.test.ts +43 -0
  61. package/src/__tests__/MSignaturePad.test.ts +62 -0
  62. package/src/__tests__/plugin.test.ts +20 -1
  63. package/src/__tests__/useColorPalette.test.ts +22 -0
  64. package/src/barcode.ts +1 -0
  65. package/src/components/MBarcode.vue +61 -0
  66. package/src/components/MCopyButton.vue +62 -0
  67. package/src/components/MExportButton.vue +73 -0
  68. package/src/components/MKbd.vue +36 -0
  69. package/src/components/MLightbox.vue +405 -0
  70. package/src/components/MPasswordMeter.vue +56 -0
  71. package/src/components/MPinInput.vue +202 -0
  72. package/src/components/MQRCode.vue +131 -0
  73. package/src/components/MRelativeTime.vue +68 -0
  74. package/src/components/MSignaturePad.vue +138 -0
  75. package/src/composables/useColorPalette.ts +29 -2
  76. package/src/composables/useLocale.ts +5 -0
  77. package/src/index.ts +9 -0
  78. package/src/locales/de.ts +2 -0
  79. package/src/locales/es.ts +2 -0
  80. package/src/locales/fr.ts +2 -0
  81. package/src/locales/ja.ts +2 -0
  82. package/src/locales/ko.ts +2 -0
  83. package/src/locales/pt.ts +2 -0
  84. package/src/locales/zh.ts +2 -0
  85. package/src/plugin.ts +16 -4
  86. package/src/qrcode.ts +1 -0
  87. package/dist/useLocale-QCIVDYWx.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { r as e } from "./useLocale-QCIVDYWx.js";
1
+ import { r as e } from "./useLocale-BKsIWNix.js";
2
2
  import { t } from "./MIcon-CaEooCmZ.js";
3
3
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
4
  import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, watch as v, withCtx as y } from "vue";
@@ -24,10 +24,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
24
24
  "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
25
25
  onDebounced?: ((args_0: string) => any) | undefined;
26
26
  }>, {
27
+ mode: "docked" | "modal";
27
28
  required: boolean;
28
29
  modelValue: undefined;
29
30
  variant: "filled" | "outlined";
30
- mode: "docked" | "modal";
31
31
  disabled: boolean;
32
32
  clearable: boolean;
33
33
  debounce: number;
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ /** Barcode symbology. Common values: 'CODE128', 'EAN13', 'EAN8', 'UPC', 'CODE39', 'ITF14', 'MSI', 'pharmacode', 'codabar'. */
4
+ format?: string;
5
+ width?: number;
6
+ height?: number;
7
+ displayValue?: boolean;
8
+ color?: string;
9
+ background?: string;
10
+ margin?: number;
11
+ fontSize?: number;
12
+ label?: string;
13
+ };
14
+ declare var __VLS_1: {};
15
+ type __VLS_Slots = {} & {
16
+ error?: (props: typeof __VLS_1) => any;
17
+ };
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ format: string;
20
+ width: number;
21
+ height: number;
22
+ displayValue: boolean;
23
+ color: string;
24
+ background: string;
25
+ margin: number;
26
+ fontSize: number;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -19,9 +19,9 @@ type __VLS_Slots = {} & {
19
19
  default?: (props: typeof __VLS_20) => any;
20
20
  };
21
21
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
+ color: string;
22
23
  type: "button" | "submit" | "reset";
23
24
  size: "xs" | "sm" | "md" | "lg" | "xl";
24
- color: string;
25
25
  loading: boolean;
26
26
  variant: "filled" | "tonal" | "outlined" | "text" | "elevated";
27
27
  shape: "rounded" | "squared";
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
18
18
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
20
20
  }>, {
21
- size: "xs" | "sm" | "md" | "lg" | "xl";
22
21
  color: "primary" | "secondary" | "tertiary";
22
+ size: "xs" | "sm" | "md" | "lg" | "xl";
23
23
  variant: "standard" | "connected";
24
24
  multiSelect: boolean;
25
25
  selectionRequired: boolean;
@@ -16,8 +16,8 @@ type __VLS_Slots = {} & {
16
16
  default?: (props: typeof __VLS_6) => any;
17
17
  };
18
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
- size: "small" | "medium" | "large";
20
19
  color: "primary" | "secondary" | "tertiary";
20
+ size: "small" | "medium" | "large";
21
21
  side: "left" | "right";
22
22
  tail: boolean;
23
23
  maxWidth: string;
@@ -12,8 +12,8 @@ type __VLS_Slots = {} & {
12
12
  default?: (props: typeof __VLS_1) => any;
13
13
  };
14
14
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
- size: number;
16
15
  color: "primary" | "secondary" | "tertiary" | "error";
16
+ size: number;
17
17
  variant: "circle" | "wavy";
18
18
  thickness: number;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,31 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ icon?: string;
4
+ copiedIcon?: string;
5
+ label?: string;
6
+ copiedLabel?: string;
7
+ variant?: 'standard' | 'filled' | 'tonal' | 'outlined';
8
+ shape?: 'rounded' | 'squared';
9
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
10
+ disabled?: boolean;
11
+ resetDelay?: number;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ error: (args_0: unknown) => any;
15
+ copied: (args_0: string) => any;
16
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onError?: ((args_0: unknown) => any) | undefined;
18
+ onCopied?: ((args_0: string) => any) | undefined;
19
+ }>, {
20
+ label: string;
21
+ size: "xs" | "sm" | "md" | "lg" | "xl" | number;
22
+ variant: "standard" | "filled" | "tonal" | "outlined";
23
+ icon: string;
24
+ shape: "rounded" | "squared";
25
+ disabled: boolean;
26
+ copiedIcon: string;
27
+ copiedLabel: string;
28
+ resetDelay: number;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
@@ -0,0 +1,43 @@
1
+ type __VLS_Props = {
2
+ data: Record<string, unknown>[];
3
+ format?: 'csv' | 'json';
4
+ filename?: string;
5
+ label?: string;
6
+ icon?: string;
7
+ variant?: 'filled' | 'tonal' | 'outlined' | 'text' | 'elevated';
8
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
9
+ disabled?: boolean;
10
+ };
11
+ declare var __VLS_10: {};
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_10) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ error: (args_0: unknown) => any;
17
+ exported: (args_0: {
18
+ format: string;
19
+ filename: string;
20
+ }) => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onError?: ((args_0: unknown) => any) | undefined;
23
+ onExported?: ((args_0: {
24
+ format: string;
25
+ filename: string;
26
+ }) => any) | undefined;
27
+ }>, {
28
+ format: "csv" | "json";
29
+ label: string;
30
+ size: "xs" | "sm" | "md" | "lg" | "xl";
31
+ variant: "filled" | "tonal" | "outlined" | "text" | "elevated";
32
+ icon: string;
33
+ disabled: boolean;
34
+ filename: string;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -26,8 +26,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
26
26
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
27
  onClick?: ((args_0: MouseEvent) => any) | undefined;
28
28
  }>, {
29
- size: "small" | "regular" | "large";
30
29
  color: "primary" | "secondary" | "tertiary" | "surface";
30
+ size: "small" | "regular" | "large";
31
31
  disabled: boolean;
32
32
  persistent: boolean;
33
33
  direction: "up" | "down" | "left" | "right" | "radial";
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ /** A '+'-delimited string ("Ctrl+Shift+K") or an array of keys (['Ctrl', 'Shift', 'K']). */
3
+ keys: string | string[];
4
+ size?: 'sm' | 'md' | 'lg';
5
+ separator?: string;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ size: "sm" | "md" | "lg";
9
+ separator: string;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,53 @@
1
+ export interface LightboxItem {
2
+ src: string;
3
+ alt?: string;
4
+ caption?: string;
5
+ }
6
+ type __VLS_Props = {
7
+ modelValue?: boolean;
8
+ /** Explicit gallery. Omit it to auto-detect `<img>` elements rendered in the default slot instead. */
9
+ items?: LightboxItem[];
10
+ index?: number;
11
+ loop?: boolean;
12
+ closeLabel?: string;
13
+ /** Show a row of clickable thumbnails at the bottom for jumping directly to an image. */
14
+ showThumbnails?: boolean;
15
+ /** Round the corners of the main opened image (the thumbnail strip keeps its own fixed rounding). */
16
+ rounded?: boolean;
17
+ };
18
+ declare function open(i?: number, sourceEl?: HTMLElement): void;
19
+ declare function close(): void;
20
+ declare function next(): void;
21
+ declare function prev(): void;
22
+ declare var __VLS_1: {};
23
+ type __VLS_Slots = {} & {
24
+ default?: (props: typeof __VLS_1) => any;
25
+ };
26
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
27
+ open: typeof open;
28
+ close: typeof close;
29
+ next: typeof next;
30
+ prev: typeof prev;
31
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
+ "update:modelValue": (args_0: boolean) => any;
33
+ change: (index: number) => any;
34
+ "update:index": (args_0: number) => any;
35
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
37
+ onChange?: ((index: number) => any) | undefined;
38
+ "onUpdate:index"?: ((args_0: number) => any) | undefined;
39
+ }>, {
40
+ modelValue: boolean;
41
+ rounded: boolean;
42
+ index: number;
43
+ loop: boolean;
44
+ showThumbnails: boolean;
45
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
+ declare const _default: typeof __VLS_export;
48
+ export default _default;
49
+ type __VLS_WithSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -26,10 +26,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
26
26
  "onUpdate:modelValue"?: ((args_0: unknown[]) => any) | undefined;
27
27
  onDebounced?: ((args_0: string) => any) | undefined;
28
28
  }>, {
29
+ mode: "docked" | "modal";
29
30
  required: boolean;
30
31
  modelValue: unknown[];
31
32
  variant: "filled" | "outlined";
32
- mode: "docked" | "modal";
33
33
  disabled: boolean;
34
34
  clearable: boolean;
35
35
  debounce: number;
@@ -33,10 +33,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
33
33
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
34
34
  "onUpdate:modelValue"?: ((args_0: unknown[]) => any) | undefined;
35
35
  }>, {
36
+ mode: "docked" | "modal";
36
37
  required: boolean;
37
38
  modelValue: unknown[];
38
39
  variant: "filled" | "outlined";
39
- mode: "docked" | "modal";
40
40
  disabled: boolean;
41
41
  clearable: boolean;
42
42
  searchable: boolean;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ /** 5 labels, weakest to strongest. */
4
+ labels?: string[];
5
+ /** Length considered "long enough" — also used (+4) as the "very long" bonus threshold. */
6
+ minLength?: number;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ score: (args_0: number) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onScore?: ((args_0: number) => any) | undefined;
12
+ }>, {
13
+ labels: string[];
14
+ minLength: number;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ modelValue: string;
3
+ length?: number;
4
+ /** Segment sizes for a grouped layout, e.g. [2, 4, 2, 3, 1, 3] renders `__ ____ __ ___ _ ___`. Overrides `length` (derived as the sum). */
5
+ groups?: number[];
6
+ /** Visual separator rendered between groups (only used when `groups` is set). */
7
+ separator?: string;
8
+ type?: 'numeric' | 'alphanumeric';
9
+ masked?: boolean;
10
+ variant?: 'filled' | 'outlined';
11
+ error?: boolean;
12
+ errorLabel?: string;
13
+ hint?: string;
14
+ disabled?: boolean;
15
+ autoFocus?: boolean;
16
+ label?: string;
17
+ };
18
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ "update:modelValue": (args_0: string) => any;
20
+ complete: (args_0: string) => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
23
+ onComplete?: ((args_0: string) => any) | undefined;
24
+ }>, {
25
+ length: number;
26
+ type: "numeric" | "alphanumeric";
27
+ modelValue: string;
28
+ variant: "filled" | "outlined";
29
+ disabled: boolean;
30
+ separator: string;
31
+ masked: boolean;
32
+ autoFocus: boolean;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ size?: number;
4
+ /** Quiet zone around the code, in modules. */
5
+ margin?: number;
6
+ errorCorrectionLevel?: 'L' | 'M' | 'Q' | 'H';
7
+ color?: string;
8
+ background?: string;
9
+ label?: string;
10
+ /** Rounds the outer container corners. */
11
+ rounded?: boolean;
12
+ /** 'square' is the classic scannable pixel grid. 'dots' rounds each module — still fully scannable, just a softer look. */
13
+ moduleStyle?: 'square' | 'dots';
14
+ };
15
+ declare var __VLS_1: {};
16
+ type __VLS_Slots = {} & {
17
+ error?: (props: typeof __VLS_1) => any;
18
+ };
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ color: string;
21
+ background: string;
22
+ margin: number;
23
+ size: number;
24
+ rounded: boolean;
25
+ errorCorrectionLevel: "L" | "M" | "Q" | "H";
26
+ moduleStyle: "square" | "dots";
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((args_0: number) => any) | undefined;
15
15
  }>, {
16
- size: number;
17
16
  color: string;
17
+ size: number;
18
18
  icon: string;
19
19
  max: number;
20
20
  halfIncrements: boolean;
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ value: string | number | Date;
3
+ /** BCP-47 locale tag (e.g. 'es-ES'). Defaults to the app's locale (via createM3UI/useLocale), then the browser's locale. */
4
+ locale?: string;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -24,10 +24,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
24
24
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
25
  "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
26
26
  }>, {
27
+ mode: "docked" | "modal";
27
28
  required: boolean;
28
29
  modelValue: undefined;
29
30
  variant: "filled" | "outlined";
30
- mode: "docked" | "modal";
31
31
  disabled: boolean;
32
32
  clearable: boolean;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -36,11 +36,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
36
36
  play: () => void;
37
37
  restart: () => Promise<void>;
38
38
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
- ready: (renderer: "webgpu" | "webgl") => any;
40
39
  error: (message: string) => any;
40
+ ready: (renderer: "webgpu" | "webgl") => any;
41
41
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
42
- onReady?: ((renderer: "webgpu" | "webgl") => any) | undefined;
43
42
  onError?: ((message: string) => any) | undefined;
43
+ onReady?: ((renderer: "webgpu" | "webgl") => any) | undefined;
44
44
  }>, {
45
45
  renderer: ShaderRenderer;
46
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,37 @@
1
+ type __VLS_Props = {
2
+ width?: number;
3
+ height?: number;
4
+ lineWidth?: number;
5
+ color?: string;
6
+ background?: string;
7
+ variant?: 'filled' | 'outlined';
8
+ disabled?: boolean;
9
+ };
10
+ declare function clear(): void;
11
+ declare function undo(): void;
12
+ declare function isEmpty(): boolean;
13
+ declare function toDataURL(type?: string, quality?: number): string;
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
15
+ clear: typeof clear;
16
+ undo: typeof undo;
17
+ isEmpty: typeof isEmpty;
18
+ toDataURL: typeof toDataURL;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ change: (args_0: string) => any;
21
+ end: (args_0: string) => any;
22
+ begin: () => any;
23
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onChange?: ((args_0: string) => any) | undefined;
25
+ onEnd?: ((args_0: string) => any) | undefined;
26
+ onBegin?: (() => any) | undefined;
27
+ }>, {
28
+ width: number;
29
+ height: number;
30
+ color: string;
31
+ background: string;
32
+ variant: "filled" | "outlined";
33
+ disabled: boolean;
34
+ lineWidth: number;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
@@ -19,8 +19,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
19
19
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((args_0: number | [number, number]) => any) | undefined;
21
21
  }>, {
22
- size: "xs" | "sm" | "md" | "lg" | "xl";
23
22
  color: "primary" | "secondary" | "tertiary" | "error";
23
+ size: "xs" | "sm" | "md" | "lg" | "xl";
24
24
  variant: "standard" | "centered" | "range";
25
25
  disabled: boolean;
26
26
  max: number;
@@ -24,8 +24,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
24
24
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
25
  onClick?: ((args_0: MouseEvent) => any) | undefined;
26
26
  }>, {
27
- size: "xs" | "sm" | "md" | "lg" | "xl";
28
27
  color: "primary" | "secondary" | "tertiary";
28
+ size: "xs" | "sm" | "md" | "lg" | "xl";
29
29
  variant: "filled" | "tonal" | "outlined" | "elevated";
30
30
  disabled: boolean;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -9,8 +9,8 @@ type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
- size: "large" | "medium" | "small";
13
12
  color: "on-surface" | "on-surface-variant" | "primary" | "secondary" | "tertiary" | "error" | "inherit";
13
+ size: "large" | "medium" | "small";
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
16
  declare const _default: typeof __VLS_export;
@@ -10,11 +10,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
10
10
  clear: () => any;
11
11
  focus: () => any;
12
12
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- line: (args_0: string) => any;
14
13
  input: (args_0: string) => any;
14
+ line: (args_0: string) => any;
15
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onLine?: ((args_0: string) => any) | undefined;
17
16
  onInput?: ((args_0: string) => any) | undefined;
17
+ onLine?: ((args_0: string) => any) | undefined;
18
18
  }>, {
19
19
  title: string;
20
20
  readonly: boolean;
@@ -9,8 +9,8 @@ type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
- size: "large" | "medium" | "small";
13
12
  color: "on-surface" | "on-surface-variant" | "primary" | "secondary" | "tertiary" | "error" | "inherit";
13
+ size: "large" | "medium" | "small";
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
16
  declare const _default: typeof __VLS_export;
@@ -33,9 +33,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
33
33
  onClose?: (() => any) | undefined;
34
34
  onMinimize?: (() => any) | undefined;
35
35
  }>, {
36
+ width: string;
36
37
  height: string;
37
38
  minHeight: number;
38
- width: string;
39
39
  closable: boolean;
40
40
  y: number;
41
41
  x: number;
@@ -8,4 +8,13 @@ export declare function useColorPalette(): {
8
8
  palette: import("vue").Ref<string, string>;
9
9
  palettes: Palette[];
10
10
  set: (id: string) => void;
11
+ persistPalette: import("vue").Ref<boolean, boolean>;
12
+ setPersistPalette: (enabled: boolean) => void;
11
13
  };
14
+ /**
15
+ * Internal: used by `createM3UI({ palette, persistPalette: false })` to force a palette on boot,
16
+ * bypassing whatever is already in localStorage, without waiting for a component to call
17
+ * `useColorPalette()` (which is what actually reacts to `current` via the watchEffect above).
18
+ * Not exported from the package's public entry points.
19
+ */
20
+ export declare function __forcePalette(id: string, persist: boolean): void;
@@ -1,5 +1,7 @@
1
1
  import { type InjectionKey, type MaybeRef } from 'vue';
2
2
  export interface M3Locale {
3
+ /** BCP-47 language tag (e.g. 'en', 'es', 'pt') — read by locale-aware components (MRelativeTime) that use Intl formatting. */
4
+ lang: string;
3
5
  search: string;
4
6
  noResults: string;
5
7
  close: string;
package/dist/index.d.ts CHANGED
@@ -40,6 +40,7 @@ export { default as MCommandPalette } from './components/MCommandPalette.vue';
40
40
  export { default as MConfirmDialog } from './components/MConfirmDialog.vue';
41
41
  export { default as MContainer } from './components/MContainer.vue';
42
42
  export { default as MContextMenu } from './components/MContextMenu.vue';
43
+ export { default as MCopyButton } from './components/MCopyButton.vue';
43
44
  export { default as MDataTable } from './components/MDataTable.vue';
44
45
  export { default as MDatePicker } from './components/MDatePicker.vue';
45
46
  export { default as MDatePickerModal } from './components/MDatePickerModal.vue';
@@ -53,6 +54,7 @@ export { default as MEmojiButton } from './components/MEmojiButton.vue';
53
54
  export { default as MEmojiSelector } from './components/MEmojiSelector.vue';
54
55
  export { default as MEmptyState } from './components/MEmptyState.vue';
55
56
  export { default as MExpansionPanel } from './components/MExpansionPanel.vue';
57
+ export { default as MExportButton } from './components/MExportButton.vue';
56
58
  export { default as MFab } from './components/MFab.vue';
57
59
  export { default as MFileUpload } from './components/MFileUpload.vue';
58
60
  export { default as MFixed } from './components/MFixed.vue';
@@ -66,6 +68,9 @@ export { default as MIconButton } from './components/MIconButton.vue';
66
68
  export { default as MInfiniteScroll } from './components/MInfiniteScroll.vue';
67
69
  export { default as MJsonViewer } from './components/MJsonViewer.vue';
68
70
  export { default as MKanban } from './components/MKanban.vue';
71
+ export { default as MKbd } from './components/MKbd.vue';
72
+ export { default as MLightbox } from './components/MLightbox.vue';
73
+ export type { LightboxItem } from './components/MLightbox.vue';
69
74
  export { default as MList } from './components/MList.vue';
70
75
  export { default as MListItem } from './components/MListItem.vue';
71
76
  export { default as MListSubheader } from './components/MListSubheader.vue';
@@ -85,12 +90,15 @@ export { default as MNavigationDrawer } from './components/MNavigationDrawer.vue
85
90
  export { default as MNavigationRail } from './components/MNavigationRail.vue';
86
91
  export { default as MOverlay } from './components/MOverlay.vue';
87
92
  export { default as MPagination } from './components/MPagination.vue';
93
+ export { default as MPasswordMeter } from './components/MPasswordMeter.vue';
94
+ export { default as MPinInput } from './components/MPinInput.vue';
88
95
  export { default as MProgressBar } from './components/MProgressBar.vue';
89
96
  export { default as MCircleProgressBar } from './components/MCircleProgressBar.vue';
90
97
  export { default as MRadio } from './components/MRadio.vue';
91
98
  export { default as MRadioGroup } from './components/MRadioGroup.vue';
92
99
  export { default as MRating } from './components/MRating.vue';
93
100
  export { default as MRelative } from './components/MRelative.vue';
101
+ export { default as MRelativeTime } from './components/MRelativeTime.vue';
94
102
  export { default as MResponsive } from './components/MResponsive.vue';
95
103
  export { default as MResult } from './components/MResult.vue';
96
104
  export { default as MScheduler } from './components/MScheduler.vue';
@@ -102,6 +110,7 @@ export type { SelectOption } from './components/MSelect.vue';
102
110
  export { default as MShader } from './components/MShader.vue';
103
111
  export type { ShaderRenderer, ShaderStatus } from './components/MShader.vue';
104
112
  export { default as MSideSheet } from './components/MSideSheet.vue';
113
+ export { default as MSignaturePad } from './components/MSignaturePad.vue';
105
114
  export { default as MSkeleton } from './components/MSkeleton.vue';
106
115
  export { default as MSlider } from './components/MSlider.vue';
107
116
  export { default as MSnackbar } from './components/MSnackbar.vue';