@m3ui-vue/m3ui-vue 0.8.0 → 0.8.2

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 (67) hide show
  1. package/README.md +9 -1
  2. package/dist/{MMenuItem-vSLbJGqe.js → MMenuItem-BAWmUTT3.js} +367 -189
  3. package/dist/MMenuItem-BAWmUTT3.js.map +1 -0
  4. package/dist/code-editor.js +1 -1
  5. package/dist/code-editor.js.map +1 -1
  6. package/dist/components/MButton.vue.d.ts +7 -0
  7. package/dist/components/MCalendar.vue.d.ts +0 -1
  8. package/dist/components/MCarousel.vue.d.ts +12 -14
  9. package/dist/components/MContextMenu.vue.d.ts +25 -4
  10. package/dist/components/MDatePicker.vue.d.ts +1 -3
  11. package/dist/components/MDatePickerModal.vue.d.ts +0 -1
  12. package/dist/components/MDateRangePicker.vue.d.ts +1 -3
  13. package/dist/components/MDateRangePickerModal.vue.d.ts +0 -1
  14. package/dist/components/MKanban.vue.d.ts +1 -0
  15. package/dist/components/MMenu.vue.d.ts +20 -2
  16. package/dist/components/MMenuDivider.vue.d.ts +13 -1
  17. package/dist/components/MMenuItem.vue.d.ts +3 -0
  18. package/dist/components/MScheduler.vue.d.ts +0 -1
  19. package/dist/components/MShape.vue.d.ts +51 -0
  20. package/dist/components/MShortNavigationBar.vue.d.ts +34 -0
  21. package/dist/components/MSimpleCarousel.vue.d.ts +45 -0
  22. package/dist/components/MToggleButton.vue.d.ts +29 -0
  23. package/dist/components/MTree.vue.d.ts +0 -1
  24. package/dist/components/MTreeTable.vue.d.ts +1 -0
  25. package/dist/index.d.ts +8 -1
  26. package/dist/m3ui-vue.css +1 -1
  27. package/dist/m3ui.js +5599 -3973
  28. package/dist/m3ui.js.map +1 -1
  29. package/dist/rich-text-editor.js +8 -8
  30. package/dist/styles/palettes.css +22 -22
  31. package/dist/styles.css +1 -1
  32. package/package.json +4 -1
  33. package/src/__tests__/MCarousel.test.ts +33 -0
  34. package/src/__tests__/MShape.test.ts +36 -0
  35. package/src/__tests__/MToggleButton.test.ts +27 -0
  36. package/src/components/MAutocomplete.vue +5 -1
  37. package/src/components/MButton.vue +15 -2
  38. package/src/components/MCalendar.vue +9 -5
  39. package/src/components/MCarousel.vue +123 -173
  40. package/src/components/MCodeEditor.vue +6 -1
  41. package/src/components/MCommandPalette.vue +4 -0
  42. package/src/components/MContextMenu.vue +287 -13
  43. package/src/components/MDatePicker.vue +12 -9
  44. package/src/components/MDatePickerModal.vue +9 -4
  45. package/src/components/MDateRangePicker.vue +12 -9
  46. package/src/components/MDateRangePickerModal.vue +9 -4
  47. package/src/components/MKanban.vue +5 -1
  48. package/src/components/MMenu.vue +308 -20
  49. package/src/components/MMenuDivider.vue +16 -0
  50. package/src/components/MMenuItem.vue +60 -18
  51. package/src/components/MMultiAutocomplete.vue +5 -1
  52. package/src/components/MMultiSelect.vue +5 -1
  53. package/src/components/MScheduler.vue +10 -6
  54. package/src/components/MSearchBar.vue +5 -1
  55. package/src/components/MSelect.vue +5 -1
  56. package/src/components/MShape.vue +107 -0
  57. package/src/components/MShortNavigationBar.vue +113 -0
  58. package/src/components/MSimpleCarousel.vue +325 -0
  59. package/src/components/MSpotlightSearch.vue +6 -0
  60. package/src/components/MToggleButton.vue +188 -0
  61. package/src/components/MTopAppBar.vue +6 -2
  62. package/src/components/MTree.vue +4 -2
  63. package/src/components/MTreeTable.vue +5 -1
  64. package/src/composables/useColorPalette.ts +1 -1
  65. package/src/index.ts +8 -1
  66. package/src/styles/palettes.css +22 -22
  67. package/dist/MMenuItem-vSLbJGqe.js.map +0 -1
@@ -10,6 +10,12 @@ type __VLS_Props = {
10
10
  disabled?: boolean;
11
11
  loading?: boolean;
12
12
  icon?: string;
13
+ /**
14
+ * Which side of the label `icon` renders on. Real M3 buttons support both via
15
+ * `ButtonDefaults.contentPaddingFor(hasStartIcon/hasEndIcon)` — padding ends up identical
16
+ * either way at every tier, so this only changes render order, not spacing.
17
+ */
18
+ iconPos?: 'leading' | 'trailing';
13
19
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
14
20
  shape?: 'rounded' | 'squared';
15
21
  to?: string | Record<string, any>;
@@ -26,6 +32,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
26
32
  variant: "filled" | "tonal" | "outlined" | "text" | "elevated";
27
33
  shape: "rounded" | "squared";
28
34
  disabled: boolean;
35
+ iconPos: "leading" | "trailing";
29
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
37
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
38
  declare const _default: typeof __VLS_export;
@@ -19,7 +19,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
19
19
  onDateClick?: ((args_0: string) => any) | undefined;
20
20
  onEventClick?: ((args_0: CalendarEvent) => any) | undefined;
21
21
  }>, {
22
- locale: string;
23
22
  events: CalendarEvent[];
24
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
24
  declare const _default: typeof __VLS_export;
@@ -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;
@@ -1,17 +1,38 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * How items with a `#children` slot behave.
4
+ * `'flyout'` opens a hover-positioned side panel (desktop).
5
+ * `'push'` replaces the panel's own content with the submenu and a
6
+ * back header — no positioning math, works with touch. Useful for mobile.
7
+ */
8
+ submenuMode?: 'flyout' | 'push';
9
+ /**
10
+ * `'standard'` is M3's baseline menu — square-ish 4dp corners
11
+ * (`MenuTokens.ContainerShape`/`CornerExtraSmall`).
12
+ * `'expressive'` is M3's rounder "vertical menu" styling — 16dp corners
13
+ * (`SegmentedMenuTokens.ContainerShape`/`CornerLarge`). Combine with
14
+ * `<MMenuDivider gap />` to split the panel into independently-rounded
15
+ * groups with a visible gap between them, instead of a plain line.
16
+ */
17
+ variant?: 'standard' | 'expressive';
18
+ };
1
19
  declare function showAt(x: number, y: number): Promise<void>;
2
20
  declare function show(e: MouseEvent): void;
3
21
  declare function hide(): void;
4
- declare var __VLS_1: {}, __VLS_15: {};
22
+ declare var __VLS_1: {}, __VLS_52: {};
5
23
  type __VLS_Slots = {} & {
6
24
  trigger?: (props: typeof __VLS_1) => any;
7
25
  } & {
8
- default?: (props: typeof __VLS_15) => any;
26
+ default?: (props: typeof __VLS_52) => any;
9
27
  };
10
- declare const __VLS_base: import("vue").DefineComponent<{}, {
28
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
11
29
  show: typeof show;
12
30
  showAt: typeof showAt;
13
31
  hide: typeof hide;
14
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
33
+ variant: "standard" | "expressive";
34
+ submenuMode: "flyout" | "push";
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
37
  declare const _default: typeof __VLS_export;
17
38
  export default _default;
@@ -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;
@@ -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;
@@ -1,22 +1,40 @@
1
1
  type __VLS_Props = {
2
2
  /** Which edge of the trigger the dropdown aligns to. */
3
3
  align?: 'left' | 'right';
4
+ /**
5
+ * How items with a `#children` slot behave.
6
+ * `'flyout'` opens a hover-positioned side panel (desktop).
7
+ * `'push'` replaces the panel's own content with the submenu and a
8
+ * back header — no positioning math, works with touch. Useful for mobile.
9
+ */
10
+ submenuMode?: 'flyout' | 'push';
11
+ /**
12
+ * `'standard'` is M3's baseline menu — square-ish 4dp corners
13
+ * (`MenuTokens.ContainerShape`/`CornerExtraSmall`).
14
+ * `'expressive'` is M3's rounder "vertical menu" styling — 16dp corners
15
+ * (`SegmentedMenuTokens.ContainerShape`/`CornerLarge`). Combine with
16
+ * `<MMenuDivider gap />` to split the panel into independently-rounded
17
+ * groups with a visible gap between them, instead of a plain line.
18
+ */
19
+ variant?: 'standard' | 'expressive';
4
20
  };
5
21
  declare function close(): void;
6
22
  declare var __VLS_1: {
7
23
  open: boolean;
8
- }, __VLS_15: {
24
+ }, __VLS_52: {
9
25
  close: typeof close;
10
26
  };
11
27
  type __VLS_Slots = {} & {
12
28
  trigger?: (props: typeof __VLS_1) => any;
13
29
  } & {
14
- default?: (props: typeof __VLS_15) => any;
30
+ default?: (props: typeof __VLS_52) => any;
15
31
  };
16
32
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
17
33
  close: typeof close;
18
34
  open: import("vue").Ref<boolean, boolean>;
19
35
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
36
+ variant: "standard" | "expressive";
37
+ submenuMode: "flyout" | "push";
20
38
  align: "left" | "right";
21
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
40
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,3 +1,15 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ type __VLS_Props = {
2
+ /**
3
+ * Marks this as a group boundary for `MMenu`/`MContextMenu`'s
4
+ * `variant="expressive"` — instead of rendering this divider in place,
5
+ * the parent menu splits its panel into two independently-rounded group
6
+ * boxes with a small gap between them. Has no effect outside an
7
+ * `expressive` menu, where it renders as a normal divider line.
8
+ */
9
+ gap?: boolean;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ gap: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
14
  declare const _default: typeof __VLS_export;
3
15
  export default _default;
@@ -4,6 +4,8 @@ type __VLS_Props = {
4
4
  to?: string | Record<string, any>;
5
5
  disabled?: boolean;
6
6
  danger?: boolean;
7
+ /** Keep the menu open after this item is clicked (e.g. checkable/toggle items). */
8
+ keepOpen?: boolean;
7
9
  };
8
10
  declare var __VLS_14: {}, __VLS_33: {};
9
11
  type __VLS_Slots = {} & {
@@ -18,6 +20,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
18
20
  }>, {
19
21
  disabled: boolean;
20
22
  danger: boolean;
23
+ keepOpen: boolean;
21
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
26
  declare const _default: typeof __VLS_export;
@@ -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;
@@ -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;
@@ -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';
@@ -117,8 +118,14 @@ export { default as MSelect } from './components/MSelect.vue';
117
118
  export type { SelectOption } from './components/MSelect.vue';
118
119
  export { default as MShader } from './components/MShader.vue';
119
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';
120
125
  export { default as MSideSheet } from './components/MSideSheet.vue';
121
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';
122
129
  export { default as MSkeleton } from './components/MSkeleton.vue';
123
130
  export { default as MSlider } from './components/MSlider.vue';
124
131
  export { default as MSnackbar } from './components/MSnackbar.vue';
@@ -143,6 +150,7 @@ export { default as MTimeline } from './components/MTimeline.vue';
143
150
  export { default as MTimePicker } from './components/MTimePicker.vue';
144
151
  export { default as MTimePickerModal } from './components/MTimePickerModal.vue';
145
152
  export { default as MTitle } from './components/MTitle.vue';
153
+ export { default as MToggleButton } from './components/MToggleButton.vue';
146
154
  export { default as MTooltip } from './components/MTooltip.vue';
147
155
  export { default as MToolbar } from './components/MToolbar.vue';
148
156
  export { default as MTopAppBar } from './components/MTopAppBar.vue';
@@ -157,7 +165,6 @@ export { emojiCategories, allEmojis, randomEmoji } from './data/emojis';
157
165
  export type { Placement } from './components/MAbsolute.vue';
158
166
  export type { BadgePosition, BadgeOverlap } from './components/MBadge.vue';
159
167
  export type { CalendarEvent } from './components/MCalendar.vue';
160
- export type { CarouselItem } from './components/MCarousel.vue';
161
168
  export type { DataTableColumn, DataTableFetchParams } from './components/MDataTable.vue';
162
169
  export type { DateRange } from './components/MDateRangePicker.vue';
163
170
  export type { DragDropItem } from './components/MDragDropList.vue';