@m3ui-vue/m3ui-vue 0.7.1 → 0.8.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 (118) hide show
  1. package/README.md +14 -6
  2. package/dist/{MMenuItem-xQ1x6-DH.js → MMenuItem-CDWfeU4F.js} +331 -252
  3. package/dist/MMenuItem-CDWfeU4F.js.map +1 -0
  4. package/dist/code-editor.d.ts +1 -0
  5. package/dist/code-editor.js +22 -7
  6. package/dist/code-editor.js.map +1 -1
  7. package/dist/components/MButton.vue.d.ts +7 -0
  8. package/dist/components/MCalendar.vue.d.ts +0 -1
  9. package/dist/components/MCard.vue.d.ts +2 -0
  10. package/dist/components/MCarousel.vue.d.ts +12 -14
  11. package/dist/components/MChatBubble.vue.d.ts +0 -1
  12. package/dist/components/MCircleProgressBar.vue.d.ts +0 -1
  13. package/dist/components/MCodeEditor.vue.d.ts +1 -1
  14. package/dist/components/MConfirmDialog.vue.d.ts +3 -0
  15. package/dist/components/MDatePicker.vue.d.ts +1 -3
  16. package/dist/components/MDatePickerModal.vue.d.ts +0 -1
  17. package/dist/components/MDateRangePicker.vue.d.ts +1 -3
  18. package/dist/components/MDateRangePickerModal.vue.d.ts +0 -1
  19. package/dist/components/MDialog.vue.d.ts +23 -7
  20. package/dist/components/MFab.vue.d.ts +2 -2
  21. package/dist/components/MKanban.vue.d.ts +1 -0
  22. package/dist/components/MListItem.vue.d.ts +11 -6
  23. package/dist/components/MNavigationRail.vue.d.ts +17 -1
  24. package/dist/components/MScheduler.vue.d.ts +0 -1
  25. package/dist/components/MSelect.vue.d.ts +1 -0
  26. package/dist/components/MShape.vue.d.ts +51 -0
  27. package/dist/components/MShortNavigationBar.vue.d.ts +34 -0
  28. package/dist/components/MSimpleCarousel.vue.d.ts +45 -0
  29. package/dist/components/MSwitch.vue.d.ts +8 -0
  30. package/dist/components/MTabs.vue.d.ts +3 -0
  31. package/dist/components/MToggleButton.vue.d.ts +29 -0
  32. package/dist/components/MTree.vue.d.ts +0 -1
  33. package/dist/components/MTreeTable.vue.d.ts +1 -0
  34. package/dist/index.d.ts +9 -1
  35. package/dist/m3ui-vue.css +1 -1
  36. package/dist/m3ui.js +4387 -2525
  37. package/dist/m3ui.js.map +1 -1
  38. package/dist/rich-text-editor.js +1 -1
  39. package/dist/styles/palettes.css +659 -0
  40. package/dist/styles/theme.css +1 -0
  41. package/dist/styles.css +1 -1
  42. package/package.json +16 -1
  43. package/src/__tests__/MCarousel.test.ts +33 -0
  44. package/src/__tests__/MShape.test.ts +36 -0
  45. package/src/__tests__/MToggleButton.test.ts +27 -0
  46. package/src/__tests__/useColorPalette.test.ts +2 -2
  47. package/src/code-editor.ts +1 -0
  48. package/src/components/MAutocomplete.vue +40 -27
  49. package/src/components/MBadge.vue +1 -1
  50. package/src/components/MBottomSheet.vue +4 -4
  51. package/src/components/MButton.vue +51 -21
  52. package/src/components/MButtonGroup.vue +2 -2
  53. package/src/components/MCalendar.vue +9 -5
  54. package/src/components/MCard.vue +76 -11
  55. package/src/components/MCarousel.vue +123 -173
  56. package/src/components/MChatBubble.vue +0 -1
  57. package/src/components/MCheckbox.vue +58 -13
  58. package/src/components/MChip.vue +26 -6
  59. package/src/components/MCircleProgressBar.vue +7 -4
  60. package/src/components/MCodeEditor.vue +60 -9
  61. package/src/components/MColorPicker.vue +9 -8
  62. package/src/components/MColorPickerModal.vue +2 -2
  63. package/src/components/MCommandPalette.vue +1 -1
  64. package/src/components/MConfirmDialog.vue +4 -0
  65. package/src/components/MContextMenu.vue +27 -6
  66. package/src/components/MDatePicker.vue +23 -20
  67. package/src/components/MDatePickerModal.vue +14 -9
  68. package/src/components/MDateRangePicker.vue +24 -21
  69. package/src/components/MDateRangePickerModal.vue +12 -7
  70. package/src/components/MDialog.vue +103 -12
  71. package/src/components/MFab.vue +10 -7
  72. package/src/components/MFabMenu.vue +1 -1
  73. package/src/components/MIconButton.vue +41 -19
  74. package/src/components/MKanban.vue +5 -1
  75. package/src/components/MListItem.vue +35 -17
  76. package/src/components/MLoadingIndicator.vue +14 -7
  77. package/src/components/MMaskField.vue +14 -6
  78. package/src/components/MMenu.vue +32 -7
  79. package/src/components/MMenuItem.vue +2 -2
  80. package/src/components/MMultiAutocomplete.vue +46 -27
  81. package/src/components/MMultiSelect.vue +45 -23
  82. package/src/components/MNavigationBar.vue +5 -10
  83. package/src/components/MNavigationDrawer.vue +10 -9
  84. package/src/components/MNavigationRail.vue +335 -22
  85. package/src/components/MNumberField.vue +14 -6
  86. package/src/components/MOverlay.vue +1 -1
  87. package/src/components/MPinInput.vue +7 -4
  88. package/src/components/MProgressBar.vue +16 -10
  89. package/src/components/MRadio.vue +54 -12
  90. package/src/components/MScheduler.vue +10 -6
  91. package/src/components/MSearchBar.vue +8 -3
  92. package/src/components/MSegmentedButton.vue +14 -9
  93. package/src/components/MSelect.vue +49 -33
  94. package/src/components/MShape.vue +107 -0
  95. package/src/components/MShortNavigationBar.vue +113 -0
  96. package/src/components/MSideSheet.vue +1 -1
  97. package/src/components/MSimpleCarousel.vue +325 -0
  98. package/src/components/MSnackbar.vue +4 -4
  99. package/src/components/MSplitButton.vue +32 -17
  100. package/src/components/MSpotlightSearch.vue +1 -1
  101. package/src/components/MSwitch.vue +96 -18
  102. package/src/components/MTabs.vue +16 -12
  103. package/src/components/MTagInput.vue +33 -22
  104. package/src/components/MTextField.vue +14 -6
  105. package/src/components/MTimePicker.vue +9 -9
  106. package/src/components/MTimePickerModal.vue +16 -16
  107. package/src/components/MToggleButton.vue +188 -0
  108. package/src/components/MToolbar.vue +5 -3
  109. package/src/components/MTooltip.vue +4 -4
  110. package/src/components/MTopAppBar.vue +19 -7
  111. package/src/components/MTour.vue +1 -1
  112. package/src/components/MTree.vue +4 -2
  113. package/src/components/MTreeTable.vue +5 -1
  114. package/src/composables/useColorPalette.ts +10 -0
  115. package/src/index.ts +9 -1
  116. package/src/styles/palettes.css +659 -0
  117. package/src/styles/theme.css +1 -0
  118. package/dist/MMenuItem-xQ1x6-DH.js.map +0 -1
@@ -2,6 +2,7 @@ type __VLS_Props = {
2
2
  variant?: 'elevated' | 'filled' | 'outlined';
3
3
  clickable?: boolean;
4
4
  elevated?: boolean;
5
+ disabled?: boolean;
5
6
  /** src URL for a full-bleed header image */
6
7
  image?: string;
7
8
  imageAlt?: string;
@@ -21,6 +22,7 @@ type __VLS_Slots = {} & {
21
22
  };
22
23
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
24
  variant: "elevated" | "filled" | "outlined";
25
+ disabled: boolean;
24
26
  elevated: boolean;
25
27
  clickable: boolean;
26
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -2,44 +2,42 @@ export interface CarouselItem {
2
2
  src: string;
3
3
  alt?: string;
4
4
  label?: string;
5
- supportingText?: string;
6
- ratio?: number;
7
5
  }
8
6
  type __VLS_Props = {
9
7
  items: CarouselItem[];
10
- layout?: 'hero' | 'multi-browse' | 'uncontained';
8
+ /** Target width of the large, fully-visible focal item, in px (preferredItemWidth). */
9
+ itemWidth?: number;
10
+ /** Spacing between item slots, in px. Real default (CarouselDefaults.ItemSpacing) is 0. */
11
+ itemSpacing?: number;
12
+ /** Real default (CarouselDefaults.MinSmallItemSize) is 40. */
13
+ minSmallItemWidth?: number;
14
+ /** Real default (CarouselDefaults.MaxSmallItemSize) is 56. */
15
+ maxSmallItemWidth?: number;
11
16
  height?: string;
12
17
  showArrows?: boolean;
13
- showIndicators?: boolean;
14
18
  autoplay?: boolean;
15
19
  interval?: number;
16
- gap?: number;
17
- visibleItems?: number;
18
- animated?: boolean;
19
20
  };
20
21
  declare function scrollToItem(index: number): void;
21
- declare function scrollToPage(page: number): void;
22
22
  declare function next(): void;
23
23
  declare function prev(): void;
24
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
25
25
  next: typeof next;
26
26
  prev: typeof prev;
27
27
  scrollToItem: typeof scrollToItem;
28
- scrollToPage: typeof scrollToPage;
29
28
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
29
  change: (index: number) => any;
31
30
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
32
31
  onChange?: ((index: number) => any) | undefined;
33
32
  }>, {
34
33
  height: string;
35
- layout: "hero" | "multi-browse" | "uncontained";
34
+ itemWidth: number;
35
+ itemSpacing: number;
36
+ minSmallItemWidth: number;
37
+ maxSmallItemWidth: number;
36
38
  showArrows: boolean;
37
- showIndicators: boolean;
38
39
  autoplay: boolean;
39
40
  interval: number;
40
- gap: number;
41
- visibleItems: number;
42
- animated: boolean;
43
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
42
  declare const _default: typeof __VLS_export;
45
43
  export default _default;
@@ -4,7 +4,6 @@ type __VLS_Props = {
4
4
  time?: string;
5
5
  side?: 'left' | 'right';
6
6
  avatar?: string;
7
- avatarSrc?: string;
8
7
  status?: 'sent' | 'delivered' | 'read';
9
8
  color?: 'primary' | 'secondary' | 'tertiary';
10
9
  tail?: boolean;
@@ -13,7 +13,6 @@ type __VLS_Slots = {} & {
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
15
  color: "primary" | "secondary" | "tertiary" | "error";
16
- size: number;
17
16
  variant: "circle" | "wavy";
18
17
  thickness: number;
19
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,4 @@
1
- type Language = 'javascript' | 'typescript' | 'json' | 'html' | 'css' | 'python' | 'vue' | 'plain';
1
+ type Language = 'javascript' | 'typescript' | 'json' | 'html' | 'css' | 'python' | 'vue' | 'c' | 'cpp' | 'rust' | 'asm' | 'plain';
2
2
  type __VLS_Props = {
3
3
  modelValue: string;
4
4
  language?: Language;
@@ -6,6 +6,8 @@ type __VLS_Props = {
6
6
  cancelLabel?: string;
7
7
  danger?: boolean;
8
8
  loading?: boolean;
9
+ /** Passed straight through to MDialog's `closable` — show/hide the header close (X) button. */
10
+ closable?: boolean;
9
11
  };
10
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
13
  "update:modelValue": (args_0: boolean) => any;
@@ -15,6 +17,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
15
17
  onConfirm?: (() => any) | undefined;
16
18
  }>, {
17
19
  loading: boolean;
20
+ closable: boolean;
18
21
  danger: boolean;
19
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
23
  declare const _default: typeof __VLS_export;
@@ -17,8 +17,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
17
17
  "update:modelValue": (args_0: string | null) => any;
18
18
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((args_0: string | null) => any) | undefined;
20
- }>, {
21
- locale: string;
22
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
21
  declare const _default: typeof __VLS_export;
24
22
  export default _default;
@@ -14,7 +14,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
14
14
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
15
15
  }>, {
16
16
  show: boolean;
17
- locale: string;
18
17
  modelValue: string | null;
19
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
19
  declare const _default: typeof __VLS_export;
@@ -23,8 +23,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
23
23
  "update:modelValue": (args_0: DateRange) => any;
24
24
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
25
  "onUpdate:modelValue"?: ((args_0: DateRange) => any) | undefined;
26
- }>, {
27
- locale: string;
28
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
27
  declare const _default: typeof __VLS_export;
30
28
  export default _default;
@@ -18,7 +18,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
18
18
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
19
19
  }>, {
20
20
  show: boolean;
21
- locale: string;
22
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
22
  declare const _default: typeof __VLS_export;
24
23
  export default _default;
@@ -2,29 +2,45 @@ type __VLS_Props = {
2
2
  modelValue: boolean;
3
3
  title?: string;
4
4
  maxWidth?: string;
5
+ /**
6
+ * M3's `AlertDialogDefaults` has no max-height token at all (only `DialogMaxWidth`) — the
7
+ * default here is a library-chosen viewport-relative cap, not a spec value.
8
+ */
9
+ maxHeight?: string;
5
10
  persistent?: boolean;
6
11
  fullscreen?: boolean;
7
12
  closeLabel?: string;
13
+ /**
14
+ * Whether the header shows a close ("X") icon button. M3's `AlertDialog` spec has no such
15
+ * button — it expects only a Cancel/Confirm text button in the actions row — so this is a
16
+ * deliberate library extension on top of the spec, kept opt-out (default `true`, matching
17
+ * this component's existing behavior) rather than added unconditionally.
18
+ */
19
+ closable?: boolean;
8
20
  };
9
- declare var __VLS_13: {}, __VLS_22: {}, __VLS_24: {}, __VLS_39: {}, __VLS_41: {}, __VLS_43: {};
21
+ declare var __VLS_20: {}, __VLS_22: {}, __VLS_24: {}, __VLS_26: {}, __VLS_41: {}, __VLS_43: {}, __VLS_45: {};
10
22
  type __VLS_Slots = {} & {
11
- title?: (props: typeof __VLS_13) => any;
23
+ icon?: (props: typeof __VLS_20) => any;
12
24
  } & {
13
- default?: (props: typeof __VLS_22) => any;
25
+ title?: (props: typeof __VLS_22) => any;
14
26
  } & {
15
- actions?: (props: typeof __VLS_24) => any;
27
+ default?: (props: typeof __VLS_24) => any;
16
28
  } & {
17
- title?: (props: typeof __VLS_39) => any;
29
+ actions?: (props: typeof __VLS_26) => any;
18
30
  } & {
19
- actions?: (props: typeof __VLS_41) => any;
31
+ title?: (props: typeof __VLS_41) => any;
20
32
  } & {
21
- default?: (props: typeof __VLS_43) => any;
33
+ actions?: (props: typeof __VLS_43) => any;
34
+ } & {
35
+ default?: (props: typeof __VLS_45) => any;
22
36
  };
23
37
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
38
  "update:modelValue": (args_0: boolean) => any;
25
39
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
40
  "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
27
41
  }>, {
42
+ maxHeight: string;
43
+ closable: boolean;
28
44
  maxWidth: string;
29
45
  persistent: boolean;
30
46
  fullscreen: boolean;
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  icon: string;
9
9
  label?: string;
10
10
  color?: 'primary' | 'secondary' | 'tertiary' | 'surface';
11
- size?: 'small' | 'regular' | 'large';
11
+ size?: 'small' | 'regular' | 'medium' | 'large';
12
12
  disabled?: boolean;
13
13
  items?: SpeedDialItem[];
14
14
  direction?: 'up' | 'down' | 'left' | 'right' | 'radial';
@@ -46,7 +46,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
46
46
  onClick?: ((args_0: MouseEvent) => any) | undefined;
47
47
  }>, {
48
48
  color: "primary" | "secondary" | "tertiary" | "surface";
49
- size: "small" | "regular" | "large";
49
+ size: "small" | "regular" | "medium" | "large";
50
50
  disabled: boolean;
51
51
  persistent: boolean;
52
52
  direction: "up" | "down" | "left" | "right" | "radial";
@@ -10,6 +10,7 @@ export interface KanbanColumn {
10
10
  }
11
11
  type __VLS_Props = {
12
12
  modelValue: KanbanColumn[];
13
+ emptyText?: string;
13
14
  };
14
15
  declare var __VLS_1: {
15
16
  card: KanbanCard;
@@ -2,6 +2,7 @@ export type ListItemLeading = 'icon' | 'avatar' | 'checkbox' | 'radio' | 'image'
2
2
  export type ListItemTrailing = 'icon' | 'text' | 'switch' | 'checkbox';
3
3
  type __VLS_Props = {
4
4
  title?: string;
5
+ overline?: string;
5
6
  subtitle?: string;
6
7
  description?: string;
7
8
  lines?: 1 | 2 | 3;
@@ -23,19 +24,23 @@ type __VLS_Props = {
23
24
  expandable?: boolean;
24
25
  expanded?: boolean;
25
26
  };
26
- declare var __VLS_1: {}, __VLS_8: {}, __VLS_21: {}, __VLS_32: {}, __VLS_54: {}, __VLS_56: {};
27
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_23: {}, __VLS_34: {}, __VLS_56: {}, __VLS_58: {}, __VLS_60: {};
27
28
  type __VLS_Slots = {} & {
28
29
  leading?: (props: typeof __VLS_1) => any;
29
30
  } & {
30
- default?: (props: typeof __VLS_8) => any;
31
+ overline?: (props: typeof __VLS_8) => any;
31
32
  } & {
32
- children?: (props: typeof __VLS_21) => any;
33
+ default?: (props: typeof __VLS_10) => any;
33
34
  } & {
34
- leading?: (props: typeof __VLS_32) => any;
35
+ children?: (props: typeof __VLS_23) => any;
35
36
  } & {
36
- default?: (props: typeof __VLS_54) => any;
37
+ leading?: (props: typeof __VLS_34) => any;
37
38
  } & {
38
- trailing?: (props: typeof __VLS_56) => any;
39
+ overline?: (props: typeof __VLS_56) => any;
40
+ } & {
41
+ default?: (props: typeof __VLS_58) => any;
42
+ } & {
43
+ trailing?: (props: typeof __VLS_60) => any;
39
44
  };
40
45
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
46
  click: (e: MouseEvent) => any;
@@ -10,16 +10,32 @@ type __VLS_Props = {
10
10
  modelValue: string | number;
11
11
  items: NavRailItem[];
12
12
  alignment?: 'top' | 'center' | 'bottom';
13
+ /** M3 `WideNavigationRail`'s expanded state: items become icon+label side by side in a full-width pill instead of icon-over-label in a narrow centered one. */
14
+ expanded?: boolean;
15
+ /**
16
+ * M3 `ModalWideNavigationRail` (default `hideOnCollapse = false` variant — not the
17
+ * dismissible, slide-from-offscreen one). Instead of this rail itself resizing between
18
+ * collapsed/expanded, the collapsed rail stays on screen exactly as-is (so it never
19
+ * affects the app's layout grid — `ModalWideNavigationRail`'s whole point) and `expanded`
20
+ * instead opens a Teleported, scrim-backed panel that floats above the rest of the app.
21
+ */
22
+ modal?: boolean;
13
23
  };
14
- declare var __VLS_1: {};
24
+ declare var __VLS_1: {}, __VLS_45: {};
15
25
  type __VLS_Slots = {} & {
16
26
  fab?: (props: typeof __VLS_1) => any;
27
+ } & {
28
+ fab?: (props: typeof __VLS_45) => any;
17
29
  };
18
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
31
  "update:modelValue": (args_0: string | number) => any;
32
+ "update:expanded": (args_0: boolean) => any;
20
33
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
34
  "onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
35
+ "onUpdate:expanded"?: ((args_0: boolean) => any) | undefined;
22
36
  }>, {
37
+ modal: boolean;
38
+ expanded: boolean;
23
39
  alignment: "top" | "center" | "bottom";
24
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
41
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -31,7 +31,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
31
31
  }) => any) | undefined;
32
32
  }>, {
33
33
  view: "week" | "day";
34
- locale: string;
35
34
  events: SchedulerEvent[];
36
35
  startHour: number;
37
36
  endHour: number;
@@ -18,6 +18,7 @@ type __VLS_Props = {
18
18
  leadingIcon?: string;
19
19
  clearable?: boolean;
20
20
  fieldBg?: string;
21
+ noResultsText?: string;
21
22
  };
22
23
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
24
  "update:modelValue": (args_0: unknown) => any;
@@ -0,0 +1,51 @@
1
+ import { type ShapeName } from 'shape-morph';
2
+ export type { ShapeName };
3
+ export { shapeNames } from 'shape-morph';
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
7
+ /** One of M3's 35 named "expressive" shapes (MaterialShapes.kt), e.g. 'Cookie9Sided', 'Heart'. */
8
+ shape: ShapeName;
9
+ /**
10
+ * Fill color used when there's no default slot content to clip (a decorative solid shape).
11
+ * SVG `fill`, not a `background-color` — a `bg-*` Tailwind class on the component itself has
12
+ * no effect here; use `fill` (or a `text-*` class, since the default is `currentColor`).
13
+ */
14
+ fill?: string;
15
+ /** Spring-morph into the new outline when `shape` changes — false snaps instantly instead. */
16
+ animate?: boolean;
17
+ /**
18
+ * Multiplier on the morph spring's speed (1 = default). Scales stiffness by speed² and the
19
+ * damping coefficient by speed, which time-scales the spring uniformly without changing its
20
+ * character (same amount of overshoot/settle shape, just faster or slower).
21
+ */
22
+ speed?: number;
23
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
24
+ /** One of M3's 35 named "expressive" shapes (MaterialShapes.kt), e.g. 'Cookie9Sided', 'Heart'. */
25
+ shape: ShapeName;
26
+ /**
27
+ * Fill color used when there's no default slot content to clip (a decorative solid shape).
28
+ * SVG `fill`, not a `background-color` — a `bg-*` Tailwind class on the component itself has
29
+ * no effect here; use `fill` (or a `text-*` class, since the default is `currentColor`).
30
+ */
31
+ fill?: string;
32
+ /** Spring-morph into the new outline when `shape` changes — false snaps instantly instead. */
33
+ animate?: boolean;
34
+ /**
35
+ * Multiplier on the morph spring's speed (1 = default). Scales stiffness by speed² and the
36
+ * damping coefficient by speed, which time-scales the spring uniformly without changing its
37
+ * character (same amount of overshoot/settle shape, just faster or slower).
38
+ */
39
+ speed?: number;
40
+ }> & Readonly<{}>, {
41
+ animate: boolean;
42
+ fill: string;
43
+ speed: number;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
45
+ default?: (props: {}) => any;
46
+ }>;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,34 @@
1
+ export interface ShortNavBarItem {
2
+ value: string | number;
3
+ label: string;
4
+ icon: string;
5
+ badge?: number;
6
+ badgeDot?: boolean;
7
+ }
8
+ type __VLS_Props = {
9
+ modelValue: string | number;
10
+ items: ShortNavBarItem[];
11
+ /**
12
+ * 'equal' (ShortNavigationBarArrangement.EqualWeight): items evenly fill the bar — recommended
13
+ * for small-width screens. 'centered' (.Centered): items are grouped toward the center instead
14
+ * of stretching edge to edge — recommended for medium-width screens, paired with iconPosition
15
+ * 'start'. Real Compose computes this via a custom MeasurePolicy at layout time; ported here as
16
+ * the same closed-form percentage formula (calculateCenteredContentHorizontalPadding), since it
17
+ * only ever depends on the item count, not on measured content size.
18
+ */
19
+ arrangement?: 'equal' | 'centered';
20
+ /** NavigationItemIconPosition — 'top' stacks icon above label (ShortNavigationBarItem's
21
+ * default); 'start' places the icon beside the label inside a single wider pill, meant for
22
+ * the 'centered' arrangement on wider/landscape layouts. */
23
+ iconPosition?: 'top' | 'start';
24
+ };
25
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ "update:modelValue": (args_0: string | number) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ "onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
29
+ }>, {
30
+ iconPosition: "top" | "start";
31
+ arrangement: "equal" | "centered";
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
@@ -0,0 +1,45 @@
1
+ export interface SimpleCarouselItem {
2
+ src: string;
3
+ alt?: string;
4
+ label?: string;
5
+ supportingText?: string;
6
+ ratio?: number;
7
+ }
8
+ type __VLS_Props = {
9
+ items: SimpleCarouselItem[];
10
+ layout?: 'hero' | 'multi-browse' | 'uncontained';
11
+ height?: string;
12
+ showArrows?: boolean;
13
+ showIndicators?: boolean;
14
+ autoplay?: boolean;
15
+ interval?: number;
16
+ gap?: number;
17
+ visibleItems?: number;
18
+ animated?: boolean;
19
+ };
20
+ declare function scrollToItem(index: number): void;
21
+ declare function scrollToPage(page: number): void;
22
+ declare function next(): void;
23
+ declare function prev(): void;
24
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
25
+ next: typeof next;
26
+ prev: typeof prev;
27
+ scrollToItem: typeof scrollToItem;
28
+ scrollToPage: typeof scrollToPage;
29
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ change: (index: number) => any;
31
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onChange?: ((index: number) => any) | undefined;
33
+ }>, {
34
+ height: string;
35
+ layout: "hero" | "multi-browse" | "uncontained";
36
+ showArrows: boolean;
37
+ autoplay: boolean;
38
+ interval: number;
39
+ gap: number;
40
+ showIndicators: boolean;
41
+ visibleItems: number;
42
+ animated: boolean;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
+ declare const _default: typeof __VLS_export;
45
+ export default _default;
@@ -3,6 +3,13 @@ type __VLS_Props = {
3
3
  disabled?: boolean;
4
4
  label?: string;
5
5
  color?: 'primary' | 'secondary' | 'tertiary' | 'error';
6
+ /**
7
+ * M3 officially has two Switch variants: with a check icon inside the thumb (the
8
+ * `thumbContent` slot filled), and without (Compose's actual default — `thumbContent`
9
+ * defaults to `null`). Defaults to `true` here to keep this component's existing look;
10
+ * pass `false` for the plain/no-icon variant.
11
+ */
12
+ icon?: boolean;
6
13
  };
7
14
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
15
  "update:modelValue": (args_0: boolean) => any;
@@ -10,6 +17,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
10
17
  "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
11
18
  }>, {
12
19
  color: "primary" | "secondary" | "tertiary" | "error";
20
+ icon: boolean;
13
21
  disabled: boolean;
14
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
23
  declare const _default: typeof __VLS_export;
@@ -8,6 +8,8 @@ type __VLS_Props = {
8
8
  modelValue: string | number;
9
9
  tabs: Tab[];
10
10
  variant?: 'primary' | 'secondary';
11
+ /** Fixed (default, M3 `TabRow`): tabs evenly share the available width, no scrolling — use for 2-5 tabs. Scrollable (M3 `ScrollableTabRow`): tabs keep their natural width and the row scrolls horizontally when they overflow — use for many tabs. */
12
+ scrollable?: boolean;
11
13
  };
12
14
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
15
  "update:modelValue": (args_0: string | number) => any;
@@ -15,6 +17,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
15
17
  "onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
16
18
  }>, {
17
19
  variant: "primary" | "secondary";
20
+ scrollable: boolean;
18
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
22
  declare const _default: typeof __VLS_export;
20
23
  export default _default;
@@ -0,0 +1,29 @@
1
+ type __VLS_Props = {
2
+ /** Whether the toggle button is checked/selected — v-model. */
3
+ checked: boolean;
4
+ variant?: 'filled' | 'tonal' | 'outlined' | 'elevated';
5
+ disabled?: boolean;
6
+ icon?: string;
7
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
8
+ };
9
+ declare var __VLS_6: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_6) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ "update:checked": (args_0: boolean) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:checked"?: ((args_0: boolean) => any) | undefined;
17
+ }>, {
18
+ size: "xs" | "sm" | "md" | "lg" | "xl";
19
+ variant: "filled" | "tonal" | "outlined" | "elevated";
20
+ disabled: boolean;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -54,7 +54,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
54
54
  }>, {
55
55
  selected: string | number | null;
56
56
  checked: (string | number)[];
57
- emptyText: string;
58
57
  checkable: boolean;
59
58
  defaultExpanded: (string | number)[] | "all" | "none";
60
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -15,6 +15,7 @@ type __VLS_Props = {
15
15
  defaultExpanded?: boolean;
16
16
  indent?: number;
17
17
  dense?: boolean;
18
+ emptyText?: string;
18
19
  };
19
20
  declare function expandAll(): void;
20
21
  declare function collapseAll(): void;
package/dist/index.d.ts CHANGED
@@ -32,6 +32,7 @@ export type { ButtonGroupOption } from './components/MButtonGroup.vue';
32
32
  export { default as MCalendar } from './components/MCalendar.vue';
33
33
  export { default as MCard } from './components/MCard.vue';
34
34
  export { default as MCarousel } from './components/MCarousel.vue';
35
+ export type { CarouselItem } from './components/MCarousel.vue';
35
36
  export { default as MCenter } from './components/MCenter.vue';
36
37
  export { default as MChatBubble } from './components/MChatBubble.vue';
37
38
  export { default as MCheckbox } from './components/MCheckbox.vue';
@@ -70,6 +71,7 @@ export { default as MIcon } from './components/MIcon.vue';
70
71
  export { default as MIconButton } from './components/MIconButton.vue';
71
72
  export { default as MInfiniteScroll } from './components/MInfiniteScroll.vue';
72
73
  export { default as MJsonViewer } from './components/MJsonViewer.vue';
74
+ export type { JsonViewerLabels } from './components/MJsonViewer.vue';
73
75
  export { default as MKanban } from './components/MKanban.vue';
74
76
  export { default as MKbd } from './components/MKbd.vue';
75
77
  export { default as MLightbox } from './components/MLightbox.vue';
@@ -116,8 +118,14 @@ export { default as MSelect } from './components/MSelect.vue';
116
118
  export type { SelectOption } from './components/MSelect.vue';
117
119
  export { default as MShader } from './components/MShader.vue';
118
120
  export type { ShaderRenderer, ShaderStatus } from './components/MShader.vue';
121
+ export { default as MShape, shapeNames } from './components/MShape.vue';
122
+ export type { ShapeName } from './components/MShape.vue';
123
+ export { default as MShortNavigationBar } from './components/MShortNavigationBar.vue';
124
+ export type { ShortNavBarItem } from './components/MShortNavigationBar.vue';
119
125
  export { default as MSideSheet } from './components/MSideSheet.vue';
120
126
  export { default as MSignaturePad } from './components/MSignaturePad.vue';
127
+ export { default as MSimpleCarousel } from './components/MSimpleCarousel.vue';
128
+ export type { SimpleCarouselItem } from './components/MSimpleCarousel.vue';
121
129
  export { default as MSkeleton } from './components/MSkeleton.vue';
122
130
  export { default as MSlider } from './components/MSlider.vue';
123
131
  export { default as MSnackbar } from './components/MSnackbar.vue';
@@ -142,6 +150,7 @@ export { default as MTimeline } from './components/MTimeline.vue';
142
150
  export { default as MTimePicker } from './components/MTimePicker.vue';
143
151
  export { default as MTimePickerModal } from './components/MTimePickerModal.vue';
144
152
  export { default as MTitle } from './components/MTitle.vue';
153
+ export { default as MToggleButton } from './components/MToggleButton.vue';
145
154
  export { default as MTooltip } from './components/MTooltip.vue';
146
155
  export { default as MToolbar } from './components/MToolbar.vue';
147
156
  export { default as MTopAppBar } from './components/MTopAppBar.vue';
@@ -156,7 +165,6 @@ export { emojiCategories, allEmojis, randomEmoji } from './data/emojis';
156
165
  export type { Placement } from './components/MAbsolute.vue';
157
166
  export type { BadgePosition, BadgeOverlap } from './components/MBadge.vue';
158
167
  export type { CalendarEvent } from './components/MCalendar.vue';
159
- export type { CarouselItem } from './components/MCarousel.vue';
160
168
  export type { DataTableColumn, DataTableFetchParams } from './components/MDataTable.vue';
161
169
  export type { DateRange } from './components/MDateRangePicker.vue';
162
170
  export type { DragDropItem } from './components/MDragDropList.vue';