@m3ui-vue/m3ui-vue 0.9.2 → 1.0.0

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 (139) hide show
  1. package/README.md +26 -29
  2. package/dist/API.md +242 -22
  3. package/dist/{MIcon-CaEooCmZ.js → MIcon-DLOkQduI.js} +10 -3
  4. package/dist/MIcon-DLOkQduI.js.map +1 -0
  5. package/dist/{MTextField-Ck0oWDMk.js → MTextField-TZ7lfr09.js} +551 -216
  6. package/dist/MTextField-TZ7lfr09.js.map +1 -0
  7. package/dist/THIRD_PARTY_LICENSES.md +547 -0
  8. package/dist/api.json +1 -1
  9. package/dist/code-editor.js +2 -2
  10. package/dist/components/MAppBarWithSearch.vue.d.ts +70 -0
  11. package/dist/components/MBottomAppBar.vue.d.ts +37 -0
  12. package/dist/components/MBottomSheetScaffold.vue.d.ts +40 -0
  13. package/dist/components/MButton.vue.d.ts +4 -2
  14. package/dist/components/MButtonGroup.vue.d.ts +2 -0
  15. package/dist/components/MChatBubble.vue.d.ts +1 -1
  16. package/dist/components/MChip.vue.d.ts +19 -2
  17. package/dist/components/MContainer.vue.d.ts +1 -1
  18. package/dist/components/MDataTable.vue.d.ts +1 -1
  19. package/dist/components/MDialog.vue.d.ts +1 -1
  20. package/dist/components/MFab.vue.d.ts +15 -4
  21. package/dist/components/MIcon.vue.d.ts +3 -0
  22. package/dist/components/MIconButton.vue.d.ts +15 -1
  23. package/dist/components/MListItem.vue.d.ts +2 -2
  24. package/dist/components/MLoadingOverlay.vue.d.ts +1 -1
  25. package/dist/components/MMenuItem.vue.d.ts +17 -4
  26. package/dist/components/MNavigationRail.vue.d.ts +6 -0
  27. package/dist/components/MSearchBar.vue.d.ts +5 -3
  28. package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
  29. package/dist/components/MSplitButton.vue.d.ts +2 -0
  30. package/dist/components/MTable.vue.d.ts +1 -1
  31. package/dist/components/MTabs.vue.d.ts +6 -0
  32. package/dist/components/MTimePickerModal.vue.d.ts +3 -0
  33. package/dist/components/MTimeScroll.vue.d.ts +22 -0
  34. package/dist/components/MToggleButton.vue.d.ts +2 -0
  35. package/dist/components/MTopAppBar.vue.d.ts +33 -2
  36. package/dist/components/MTree.vue.d.ts +2 -2
  37. package/dist/components/_MDrawerItemList.vue.d.ts +3 -0
  38. package/dist/composables/_searchAppBar.d.ts +6 -0
  39. package/dist/composables/_themeTransition.d.ts +2 -0
  40. package/dist/composables/_useSpring.d.ts +5 -5
  41. package/dist/composables/motion.d.ts +101 -0
  42. package/dist/composables/useColorPalette.d.ts +10 -0
  43. package/dist/composables/useLocale.d.ts +9 -0
  44. package/dist/directives/vRipple.d.ts +16 -0
  45. package/dist/emoji-names-de-BphO5XpV.js.map +1 -1
  46. package/dist/emoji-names-en-9ZvMRvzi.js.map +1 -1
  47. package/dist/emoji-names-es-DvfWU3Pj.js.map +1 -1
  48. package/dist/emoji-names-fr-B-jhUlsP.js.map +1 -1
  49. package/dist/emoji-names-ja-l8cMFJo1.js.map +1 -1
  50. package/dist/emoji-names-ko-YP-o9G0c.js.map +1 -1
  51. package/dist/emoji-names-pt-DGj_Js4M.js.map +1 -1
  52. package/dist/emoji-names-zh-Dzecwtw_.js.map +1 -1
  53. package/dist/index.d.ts +11 -1
  54. package/dist/locales/index.js +63 -0
  55. package/dist/locales/index.js.map +1 -1
  56. package/dist/m3ui-vue.css +1 -1
  57. package/dist/m3ui.js +7716 -6768
  58. package/dist/m3ui.js.map +1 -1
  59. package/dist/plugin.d.ts +7 -0
  60. package/dist/rich-text-editor.js +22 -22
  61. package/dist/styles/palettes-contrast.css +7764 -0
  62. package/dist/styles/theme.css +59 -2
  63. package/dist/styles.css +1 -1
  64. package/dist/terminal.js +1 -1
  65. package/dist/{useLocale-CFW8cIzL.js → useLocale-CuvWRZ1h.js} +10 -1
  66. package/dist/useLocale-CuvWRZ1h.js.map +1 -0
  67. package/package.json +4 -2
  68. package/src/__tests__/MAppBarWithSearch.test.ts +96 -0
  69. package/src/__tests__/MBottomAppBar.test.ts +71 -0
  70. package/src/__tests__/MBottomSheetScaffold.test.ts +101 -0
  71. package/src/__tests__/MChip.test.ts +63 -0
  72. package/src/__tests__/MFab.test.ts +36 -0
  73. package/src/__tests__/MIconButton.test.ts +60 -0
  74. package/src/__tests__/MMenuItem.test.ts +84 -0
  75. package/src/__tests__/MNavigationRail.test.ts +77 -0
  76. package/src/__tests__/MScrollField.test.ts +28 -0
  77. package/src/__tests__/MTabs.test.ts +39 -0
  78. package/src/__tests__/MTimePickerModal.test.ts +52 -0
  79. package/src/__tests__/MTimeScroll.test.ts +44 -0
  80. package/src/__tests__/MTopAppBar.test.ts +99 -0
  81. package/src/__tests__/contrast.test.ts +64 -0
  82. package/src/__tests__/dynamicColor.test.ts +17 -0
  83. package/src/__tests__/motion.test.ts +37 -0
  84. package/src/__tests__/themeTransition.test.ts +119 -0
  85. package/src/__tests__/vRipple.test.ts +92 -0
  86. package/src/components/MAppBarWithSearch.vue +236 -0
  87. package/src/components/MBottomAppBar.vue +181 -0
  88. package/src/components/MBottomSheetScaffold.vue +296 -0
  89. package/src/components/MBreadcrumbs.vue +1 -1
  90. package/src/components/MButton.vue +4 -13
  91. package/src/components/MButtonGroup.vue +4 -11
  92. package/src/components/MChip.vue +137 -5
  93. package/src/components/MFab.vue +81 -27
  94. package/src/components/MIcon.vue +4 -2
  95. package/src/components/MIconButton.vue +96 -24
  96. package/src/components/MMenuItem.vue +115 -13
  97. package/src/components/MNavigationDrawer.vue +2 -2
  98. package/src/components/MNavigationRail.vue +135 -8
  99. package/src/components/MScrollField.vue +10 -2
  100. package/src/components/MSearchBar.vue +28 -12
  101. package/src/components/MSplitButton.vue +5 -12
  102. package/src/components/MTabs.vue +16 -5
  103. package/src/components/MTimePickerModal.vue +48 -8
  104. package/src/components/MTimeScroll.vue +161 -0
  105. package/src/components/MToggleButton.vue +5 -12
  106. package/src/components/MTopAppBar.vue +252 -28
  107. package/src/composables/_carouselStrategy.ts +3 -0
  108. package/src/composables/_searchAppBar.ts +9 -0
  109. package/src/composables/_themeColor.ts +11 -4
  110. package/src/composables/_themeTransition.ts +71 -0
  111. package/src/composables/_useSpring.ts +12 -20
  112. package/src/composables/motion.ts +73 -0
  113. package/src/composables/useColorPalette.ts +103 -20
  114. package/src/composables/useLocale.ts +18 -0
  115. package/src/composables/useTheme.ts +4 -12
  116. package/src/data/emoji-names/emoji-names-de.ts +1 -0
  117. package/src/data/emoji-names/emoji-names-en.ts +1 -0
  118. package/src/data/emoji-names/emoji-names-es.ts +1 -0
  119. package/src/data/emoji-names/emoji-names-fr.ts +1 -0
  120. package/src/data/emoji-names/emoji-names-ja.ts +1 -0
  121. package/src/data/emoji-names/emoji-names-ko.ts +1 -0
  122. package/src/data/emoji-names/emoji-names-pt.ts +1 -0
  123. package/src/data/emoji-names/emoji-names-zh.ts +1 -0
  124. package/src/data/emojis.ts +1 -0
  125. package/src/directives/vRipple.ts +73 -0
  126. package/src/index.ts +13 -1
  127. package/src/locales/de.ts +9 -0
  128. package/src/locales/es.ts +9 -0
  129. package/src/locales/fr.ts +9 -0
  130. package/src/locales/ja.ts +9 -0
  131. package/src/locales/ko.ts +9 -0
  132. package/src/locales/pt.ts +9 -0
  133. package/src/locales/zh.ts +9 -0
  134. package/src/plugin.ts +11 -1
  135. package/src/styles/palettes-contrast.css +7764 -0
  136. package/src/styles/theme.css +59 -2
  137. package/dist/MIcon-CaEooCmZ.js.map +0 -1
  138. package/dist/MTextField-Ck0oWDMk.js.map +0 -1
  139. package/dist/useLocale-CFW8cIzL.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { i as e } from "./useLocale-CFW8cIzL.js";
2
- import { t } from "./MIcon-CaEooCmZ.js";
1
+ import { i as e } from "./useLocale-CuvWRZ1h.js";
2
+ import { t } from "./MIcon-DLOkQduI.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";
5
5
  //#region src/components/MCodeEditor.vue?vue&type=script&setup=true&lang.ts
@@ -0,0 +1,70 @@
1
+ type __VLS_Props = {
2
+ /** Search query (v-model) */
3
+ modelValue?: string;
4
+ /** Whether the search is expanded (v-model:expanded) */
5
+ expanded?: boolean;
6
+ /** Defaults to the locale's "Search..." */
7
+ placeholder?: string;
8
+ /** How the search expands: full screen (default), full screen keeping the pill input, or a docked panel */
9
+ searchVariant?: 'fullscreen' | 'fullscreen-contained' | 'docked';
10
+ /** Icon shown in the collapsed search bar */
11
+ leadingIcon?: string;
12
+ /** Shows a spinner in the expanded header instead of the clear button */
13
+ loading?: boolean;
14
+ /** Shows a clear (×) button once there is a query */
15
+ clearable?: boolean;
16
+ /** Leading icon outside the search bar (e.g. menu, arrow_back) */
17
+ navigationIcon?: string;
18
+ /** Accessible label for the navigation icon button; defaults to the locale's "Menu" */
19
+ navigationLabel?: string;
20
+ /** No app bar container, only the search bar (Compose's TopSearchBar) */
21
+ transparent?: boolean;
22
+ /**
23
+ * How the bar reacts to `scrollTarget` scrolling: `pinned` stays and changes color once content is under
24
+ * it; `enter-always` also hides while scrolling down and comes back on any scroll up. With `enter-always`
25
+ * the bar is sticky over the content: put it at the top of the scrolling element (or of the page)
26
+ */
27
+ scrollBehavior?: 'pinned' | 'enter-always';
28
+ /** What `scrollBehavior` follows: an element or a CSS selector for it. Defaults to the window */
29
+ scrollTarget?: HTMLElement | string | null;
30
+ };
31
+ declare var __VLS_1: {}, __VLS_21: {}, __VLS_24: {}, __VLS_26: {}, __VLS_28: {};
32
+ type __VLS_Slots = {} & {
33
+ navigation?: (props: typeof __VLS_1) => any;
34
+ } & {
35
+ leading?: (props: typeof __VLS_21) => any;
36
+ } & {
37
+ trailing?: (props: typeof __VLS_24) => any;
38
+ } & {
39
+ default?: (props: typeof __VLS_26) => any;
40
+ } & {
41
+ actions?: (props: typeof __VLS_28) => any;
42
+ };
43
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
+ search: (args_0: string) => any;
45
+ "update:modelValue": (args_0: string) => any;
46
+ "update:expanded": (args_0: boolean) => any;
47
+ navigation: () => any;
48
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
49
+ onSearch?: ((args_0: string) => any) | undefined;
50
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
51
+ "onUpdate:expanded"?: ((args_0: boolean) => any) | undefined;
52
+ onNavigation?: (() => any) | undefined;
53
+ }>, {
54
+ transparent: boolean;
55
+ modelValue: string;
56
+ loading: boolean;
57
+ expanded: boolean;
58
+ leadingIcon: string;
59
+ clearable: boolean;
60
+ searchVariant: "fullscreen" | "fullscreen-contained" | "docked";
61
+ scrollTarget: HTMLElement | string | null;
62
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
63
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
64
+ declare const _default: typeof __VLS_export;
65
+ export default _default;
66
+ type __VLS_WithSlots<T, S> = T & {
67
+ new (): {
68
+ $slots: S;
69
+ };
70
+ };
@@ -0,0 +1,37 @@
1
+ type __VLS_Props = {
2
+ /** M3 Expressive's FlexibleBottomAppBar: 64px instead of 80px, 16px side padding, no FAB slot */
3
+ flexible?: boolean;
4
+ /**
5
+ * How the actions are spread: `start` (the standard bar's), `between` (the flexible bar's default),
6
+ * `around`, `evenly`, or `fixed` (centered, 32px apart: FlexibleFixedHorizontalArrangement)
7
+ */
8
+ arrangement?: 'start' | 'between' | 'around' | 'evenly' | 'fixed';
9
+ /** Container color: surface-container, or a color's container for a vibrant bar */
10
+ color?: 'surface' | 'primary' | 'secondary' | 'tertiary';
11
+ /** `pinned` stays put; `exit-always` collapses while the content scrolls down and returns when it scrolls up */
12
+ scrollBehavior?: 'pinned' | 'exit-always';
13
+ /** What `exit-always` follows: an element or a CSS selector for it. Defaults to the window */
14
+ scrollTarget?: HTMLElement | string | null;
15
+ };
16
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
17
+ type __VLS_Slots = {} & {
18
+ default?: (props: typeof __VLS_1) => any;
19
+ } & {
20
+ default?: (props: typeof __VLS_3) => any;
21
+ } & {
22
+ fab?: (props: typeof __VLS_5) => any;
23
+ };
24
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
+ color: "surface" | "primary" | "secondary" | "tertiary";
26
+ scrollBehavior: "pinned" | "exit-always";
27
+ scrollTarget: HTMLElement | string | null;
28
+ flexible: boolean;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,40 @@
1
+ export type BottomSheetValue = 'hidden' | 'partial' | 'expanded';
2
+ type __VLS_Props = {
3
+ /** The sheet's state (v-model): `partial` shows `peekHeight` of it, `expanded` all of it, `hidden` none */
4
+ modelValue?: BottomSheetValue;
5
+ /** Height in px the partially expanded sheet shows (BottomSheetDefaults.SheetPeekHeight) */
6
+ peekHeight?: number;
7
+ /** Leaves out the hidden state, so the sheet can't be swiped away (Compose's default for this sheet) */
8
+ skipHiddenState?: boolean;
9
+ /** Lets the sheet be dragged; with false it only moves through v-model and the handle */
10
+ swipeEnabled?: boolean;
11
+ /** Maximum width in px; the sheet is centered when the screen is wider */
12
+ maxWidth?: number;
13
+ };
14
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
15
+ type __VLS_Slots = {} & {
16
+ 'top-bar'?: (props: typeof __VLS_1) => any;
17
+ } & {
18
+ default?: (props: typeof __VLS_3) => any;
19
+ } & {
20
+ sheet?: (props: typeof __VLS_5) => any;
21
+ };
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ "update:modelValue": (args_0: BottomSheetValue) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ "onUpdate:modelValue"?: ((args_0: BottomSheetValue) => any) | undefined;
26
+ }>, {
27
+ modelValue: BottomSheetValue;
28
+ peekHeight: number;
29
+ skipHiddenState: boolean;
30
+ swipeEnabled: boolean;
31
+ maxWidth: number;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
36
+ type __VLS_WithSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -29,10 +29,12 @@ type __VLS_Props = {
29
29
  shape?: 'rounded' | 'squared';
30
30
  /** Vue Router destination — renders as RouterLink instead of button */
31
31
  to?: string | Record<string, any>;
32
+ /** Any CSS color for the press ripple; defaults to the button's content color */
33
+ rippleColor?: string;
32
34
  };
33
- declare var __VLS_20: {};
35
+ declare var __VLS_18: {};
34
36
  type __VLS_Slots = {} & {
35
- default?: (props: typeof __VLS_20) => any;
37
+ default?: (props: typeof __VLS_18) => any;
36
38
  };
37
39
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
38
40
  color: string;
@@ -19,6 +19,8 @@ type __VLS_Props = {
19
19
  selectionRequired?: boolean;
20
20
  /** Selected button color */
21
21
  color?: 'primary' | 'secondary' | 'tertiary';
22
+ /** Any CSS color for the press ripple; defaults to the button's content color */
23
+ rippleColor?: string;
22
24
  };
23
25
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
26
  "update:modelValue": (args_0: unknown) => any;
@@ -29,9 +29,9 @@ type __VLS_Slots = {} & {
29
29
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
30
30
  color: "primary" | "secondary" | "tertiary";
31
31
  size: "small" | "medium" | "large";
32
+ maxWidth: string;
32
33
  side: "left" | "right";
33
34
  tail: boolean;
34
- maxWidth: string;
35
35
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
37
  declare const _default: typeof __VLS_export;
@@ -14,20 +14,37 @@ type __VLS_Props = {
14
14
  disabled?: boolean;
15
15
  /** Leading Material Symbol icon */
16
16
  icon?: string;
17
+ /**
18
+ * One of M3's chips: `assist` (an action), `filter` (on/off, v-model:selected; a check slides in while
19
+ * selected), `input` (a piece of user input, with an optional #avatar and `removable`), `suggestion`.
20
+ * Leave unset for the generic tone-colored chip
21
+ */
22
+ type?: 'assist' | 'filter' | 'input' | 'suggestion';
23
+ /** Typed assist, filter and suggestion chips: surface-container-low with elevation 1 instead of an outline */
24
+ elevated?: boolean;
25
+ /** Typed chips: a trailing Material Symbol icon (e.g. arrow_drop_down on a filter chip that opens a menu) */
26
+ trailingIcon?: string;
17
27
  };
18
- declare var __VLS_15: {};
28
+ declare var __VLS_1: {}, __VLS_13: {}, __VLS_39: {};
19
29
  type __VLS_Slots = {} & {
20
- default?: (props: typeof __VLS_15) => any;
30
+ avatar?: (props: typeof __VLS_1) => any;
31
+ } & {
32
+ default?: (props: typeof __VLS_13) => any;
33
+ } & {
34
+ default?: (props: typeof __VLS_39) => any;
21
35
  };
22
36
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
37
  remove: () => any;
24
38
  click: () => any;
39
+ "update:selected": (args_0: boolean) => any;
25
40
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
41
  onRemove?: (() => any) | undefined;
27
42
  onClick?: (() => any) | undefined;
43
+ "onUpdate:selected"?: ((args_0: boolean) => any) | undefined;
28
44
  }>, {
29
45
  selected: boolean;
30
46
  disabled: boolean;
47
+ elevated: boolean;
31
48
  clickable: boolean;
32
49
  tone: string;
33
50
  removable: boolean;
@@ -13,8 +13,8 @@ type __VLS_Slots = {} & {
13
13
  default?: (props: typeof __VLS_1) => any;
14
14
  };
15
15
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
- padding: boolean;
17
16
  maxWidth: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
17
+ padding: boolean;
18
18
  fluid: boolean;
19
19
  centered: boolean;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -119,11 +119,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
119
119
  modelValue: Record<string, any>[];
120
120
  loading: boolean;
121
121
  dense: boolean;
122
+ selectable: boolean;
122
123
  page: number;
123
124
  perPage: number;
124
125
  total: number;
125
126
  rowKey: string;
126
- selectable: boolean;
127
127
  selectOnRowClick: boolean;
128
128
  searchable: boolean;
129
129
  expandable: boolean;
@@ -45,9 +45,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
45
45
  }>, {
46
46
  maxHeight: string;
47
47
  closable: boolean;
48
+ fullscreen: boolean;
48
49
  maxWidth: string;
49
50
  persistent: boolean;
50
- fullscreen: boolean;
51
51
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
52
52
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
53
53
  declare const _default: typeof __VLS_export;
@@ -9,9 +9,17 @@ type __VLS_Props = {
9
9
  icon: string;
10
10
  /** Extended FAB label text */
11
11
  label?: string;
12
- /** Color scheme */
12
+ /**
13
+ * Extended FAB only: false collapses it to a plain FAB (the label fades out and the width shrinks to a
14
+ * square), e.g. while the content scrolls. Compose's `expanded`
15
+ */
16
+ expanded?: boolean;
17
+ /** Color scheme; defaults to primary, or secondary inside an MBottomAppBar */
13
18
  color?: 'primary' | 'secondary' | 'tertiary' | 'surface';
14
- /** FAB size */
19
+ /**
20
+ * FAB size. With a `label`, small/medium/large are M3 Expressive's extended FABs (56/80/96px, title-medium,
21
+ * title-large and headline-small labels); regular is the baseline extended FAB
22
+ */
15
23
  size?: 'small' | 'regular' | 'medium' | 'large';
16
24
  /** Disables interaction */
17
25
  disabled?: boolean;
@@ -42,12 +50,14 @@ type __VLS_Props = {
42
50
  * the content's own leave animation has time to play instead of just
43
51
  * vanishing. 'none' skips any panel-level transition entirely. */
44
52
  contentTransition?: 'scale' | 'fade' | 'none';
53
+ /** Any CSS color for the press ripple; defaults to the FAB's content color */
54
+ rippleColor?: string;
45
55
  };
46
- declare var __VLS_46: {
56
+ declare var __VLS_47: {
47
57
  close: () => boolean;
48
58
  };
49
59
  type __VLS_Slots = {} & {
50
- content?: (props: typeof __VLS_46) => any;
60
+ content?: (props: typeof __VLS_47) => any;
51
61
  };
52
62
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
63
  click: (args_0: MouseEvent) => any;
@@ -57,6 +67,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
57
67
  color: "primary" | "secondary" | "tertiary" | "surface";
58
68
  size: "small" | "regular" | "medium" | "large";
59
69
  scrim: boolean;
70
+ expanded: boolean;
60
71
  disabled: boolean;
61
72
  persistent: boolean;
62
73
  direction: "up" | "down" | "left" | "right" | "radial";
@@ -3,9 +3,12 @@ type __VLS_Props = {
3
3
  name: string;
4
4
  /** Icon size in px */
5
5
  size?: number;
6
+ /** Filled glyph (the Material Symbols FILL axis), as M3 draws a selected icon */
7
+ filled?: boolean;
6
8
  };
7
9
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
10
  size: number;
11
+ filled: boolean;
9
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
13
  declare const _default: typeof __VLS_export;
11
14
  export default _default;
@@ -16,12 +16,26 @@ type __VLS_Props = {
16
16
  disabled?: boolean;
17
17
  /** Vue Router destination — renders as RouterLink instead of button */
18
18
  to?: string | Record<string, any>;
19
+ /** Any CSS color for the press ripple; defaults to the button's content color */
20
+ rippleColor?: string;
21
+ /**
22
+ * Makes it a toggle button (v-model:checked): selected colors, a filled icon, and a shape that morphs when
23
+ * pressed and when checked. Leave it unset for a plain icon button
24
+ */
25
+ checked?: boolean;
26
+ /** Icon shown while checked, when it differs from `icon` (e.g. 'pause' for 'play_arrow') */
27
+ checkedIcon?: string;
19
28
  };
20
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ "update:checked": (args_0: boolean) => any;
31
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ "onUpdate:checked"?: ((args_0: boolean) => any) | undefined;
33
+ }>, {
21
34
  size: "xs" | "sm" | "md" | "lg" | "xl" | number;
22
35
  variant: "standard" | "filled" | "tonal" | "outlined";
23
36
  shape: "rounded" | "squared";
24
37
  disabled: boolean;
38
+ checked: boolean;
25
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
40
  declare const _default: typeof __VLS_export;
27
41
  export default _default;
@@ -68,12 +68,12 @@ type __VLS_Slots = {} & {
68
68
  };
69
69
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
70
  click: (e: MouseEvent) => any;
71
- "update:trailingValue": (value: boolean) => any;
72
71
  "update:expanded": (value: boolean) => any;
72
+ "update:trailingValue": (value: boolean) => any;
73
73
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
74
74
  onClick?: ((e: MouseEvent) => any) | undefined;
75
- "onUpdate:trailingValue"?: ((value: boolean) => any) | undefined;
76
75
  "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
76
+ "onUpdate:trailingValue"?: ((value: boolean) => any) | undefined;
77
77
  }>, {
78
78
  active: boolean;
79
79
  disabled: boolean;
@@ -19,8 +19,8 @@ type __VLS_Slots = {} & {
19
19
  default?: (props: typeof __VLS_33) => 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
- spinnerSize: number;
23
22
  fullscreen: boolean;
23
+ spinnerSize: number;
24
24
  opaque: boolean;
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -9,21 +9,34 @@ type __VLS_Props = {
9
9
  disabled?: boolean;
10
10
  /** Danger/destructive styling (error color) */
11
11
  danger?: boolean;
12
- /** Keep the menu open after this item is clicked (e.g. checkable/toggle items). */
12
+ /** Keep the menu open after this item is clicked. Defaults to true for `checked` items, false otherwise */
13
13
  keepOpen?: boolean;
14
+ /** Makes it one choice of several (radio-like): selected look while true. Leave unset for a plain item */
15
+ selected?: boolean;
16
+ /** Makes it an on/off setting (v-model:checked, checkbox-like): checked look while true. Leave unset for a plain item */
17
+ checked?: boolean;
18
+ /**
19
+ * Icon shown while selected or checked. Defaults to a check that slides in when the item has no `icon`;
20
+ * with an `icon`, that icon stays and turns filled
21
+ */
22
+ selectedIcon?: string;
14
23
  };
15
- declare var __VLS_14: {}, __VLS_33: {};
24
+ declare var __VLS_21: {}, __VLS_40: {};
16
25
  type __VLS_Slots = {} & {
17
- default?: (props: typeof __VLS_14) => any;
26
+ default?: (props: typeof __VLS_21) => any;
18
27
  } & {
19
- children?: (props: typeof __VLS_33) => any;
28
+ children?: (props: typeof __VLS_40) => any;
20
29
  };
21
30
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
31
  click: () => any;
32
+ "update:checked": (args_0: boolean) => any;
23
33
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
34
  onClick?: (() => any) | undefined;
35
+ "onUpdate:checked"?: ((args_0: boolean) => any) | undefined;
25
36
  }>, {
37
+ selected: boolean;
26
38
  disabled: boolean;
39
+ checked: boolean;
27
40
  danger: boolean;
28
41
  keepOpen: boolean;
29
42
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -26,6 +26,11 @@ type __VLS_Props = {
26
26
  * widening in place. It closes on a scrim click, Escape or picking an item, emitting `update:expanded`.
27
27
  */
28
28
  modal?: boolean;
29
+ /**
30
+ * With `modal`: no collapsed rail on screen; the expanded rail slides in from off-screen and can be swiped
31
+ * away (Compose's `hideOnCollapse`). Open it from your own menu button
32
+ */
33
+ hideOnCollapse?: boolean;
29
34
  };
30
35
  declare var __VLS_1: {}, __VLS_53: {};
31
36
  type __VLS_Slots = {} & {
@@ -43,6 +48,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
43
48
  expanded: boolean;
44
49
  modal: boolean;
45
50
  alignment: "top" | "center" | "bottom";
51
+ hideOnCollapse: boolean;
46
52
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
53
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
48
54
  declare const _default: typeof __VLS_export;
@@ -7,8 +7,10 @@ type __VLS_Props = {
7
7
  placeholder?: string;
8
8
  /** 'docked' grows into a rounded panel anchored below the bar (default).
9
9
  * 'fullscreen' takes over the whole viewport, matching M3's mobile
10
- * search pattern — the leading icon becomes a back button either way. */
11
- variant?: 'docked' | 'fullscreen';
10
+ * search pattern — the leading icon becomes a back button either way.
11
+ * 'fullscreen-contained' (M3 Expressive's ExpandedFullScreenContainedSearchBar) also takes the whole
12
+ * viewport, on surface-container-low, but keeps the input in its pill shape, with no divider. */
13
+ variant?: 'docked' | 'fullscreen' | 'fullscreen-contained';
12
14
  /** Icon shown in the collapsed bar */
13
15
  leadingIcon?: string;
14
16
  /** Which side of the *collapsed* bar the leading icon sits on. The
@@ -46,7 +48,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
46
48
  }>, {
47
49
  modelValue: string;
48
50
  loading: boolean;
49
- variant: "docked" | "fullscreen";
51
+ variant: "docked" | "fullscreen" | "fullscreen-contained";
50
52
  disabled: boolean;
51
53
  leadingIcon: string;
52
54
  clearable: boolean;
@@ -31,8 +31,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
31
31
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
32
32
  "onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
33
33
  }>, {
34
- arrangement: "equal" | "centered";
35
34
  iconPosition: "top" | "start";
35
+ arrangement: "equal" | "centered";
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -19,6 +19,8 @@ type __VLS_Props = {
19
19
  disabled?: boolean;
20
20
  /** Dropdown menu items; see `SplitButtonItem` */
21
21
  items?: SplitButtonItem[];
22
+ /** Any CSS color for the press ripple; defaults to the button's content color */
23
+ rippleColor?: string;
22
24
  };
23
25
  declare var __VLS_34: {
24
26
  close: () => boolean;
@@ -76,11 +76,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
76
76
  }>, {
77
77
  modelValue: Record<string, any>[];
78
78
  loading: boolean;
79
+ selectable: boolean;
79
80
  page: number;
80
81
  perPage: number;
81
82
  total: number;
82
83
  rowKey: string;
83
- selectable: boolean;
84
84
  selectOnRowClick: boolean;
85
85
  searchable: boolean;
86
86
  serverSide: boolean;
@@ -16,6 +16,12 @@ type __VLS_Props = {
16
16
  variant?: 'primary' | 'secondary';
17
17
  /** 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. */
18
18
  scrollable?: boolean;
19
+ /**
20
+ * Where a tab's icon goes: `top`, stacked above the label in a 64px tab (Compose's `Tab`), or `leading`,
21
+ * beside the label in a 48px tab (Compose's `LeadingIconTab`). Defaults to `top` for primary tabs and
22
+ * `leading` for secondary ones.
23
+ */
24
+ iconPosition?: 'top' | 'leading';
19
25
  };
20
26
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
27
  "update:modelValue": (args_0: string | number) => any;
@@ -9,6 +9,8 @@ type __VLS_Props = {
9
9
  minuteStep?: number;
10
10
  /** Dialog title */
11
11
  title?: string;
12
+ /** How the time is picked before switching to keyboard input: a clock `dial`, or `scroll` wheels (MTimeScroll) */
13
+ mode?: 'dial' | 'scroll';
12
14
  };
13
15
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
16
  "update:modelValue": (args_0: string | null) => any;
@@ -17,6 +19,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
17
19
  "onUpdate:modelValue"?: ((args_0: string | null) => any) | undefined;
18
20
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
19
21
  }>, {
22
+ mode: "dial" | "scroll";
20
23
  show: boolean;
21
24
  modelValue: string | null;
22
25
  minuteStep: number;
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ /** Selected time in HH:MM, 24-hour (v-model); null shows 12:00 AM (00:00 in 24-hour mode) */
3
+ modelValue: string | null;
4
+ /** 24-hour wheel (00–23) instead of 1–12 with AM/PM */
5
+ use24h?: boolean;
6
+ /** Minute increment step; the minute wheel shows only multiples of it */
7
+ minuteStep?: number;
8
+ /** Disables the wheels and the AM/PM toggle */
9
+ disabled?: boolean;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (args_0: string) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
15
+ }>, {
16
+ modelValue: string | null;
17
+ disabled: boolean;
18
+ minuteStep: number;
19
+ use24h: boolean;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -9,6 +9,8 @@ type __VLS_Props = {
9
9
  icon?: string;
10
10
  /** Same 5-tier expressive sizing as MButton */
11
11
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
12
+ /** Any CSS color for the press ripple; defaults to the button's content color */
13
+ rippleColor?: string;
12
14
  };
13
15
  declare var __VLS_6: {};
14
16
  type __VLS_Slots = {} & {
@@ -1,8 +1,17 @@
1
1
  type __VLS_Props = {
2
2
  /** App bar title */
3
3
  title?: string;
4
+ /** A line below the title (Compose's `subtitle`): small, center-aligned and flexible medium/large bars */
5
+ subtitle?: string;
4
6
  /** 64dp small/center-aligned row, or a 112dp medium / 152dp large two-row layout with the title below */
5
7
  variant?: 'center' | 'small' | 'medium' | 'large';
8
+ /**
9
+ * Medium/large only: M3 Expressive's MediumFlexibleTopAppBar / LargeFlexibleTopAppBar, with a
10
+ * headline-medium / display-small title and room for a subtitle (112/136dp and 120/152dp tall)
11
+ */
12
+ flexible?: boolean;
13
+ /** Medium/large only: where the title row sits (Compose's `titleHorizontalAlignment`) */
14
+ titleAlignment?: 'start' | 'center';
6
15
  /** Leading icon (e.g. menu, arrow_back) */
7
16
  navigationIcon?: string;
8
17
  /** Accessible label for the navigation icon button — defaults to the
@@ -16,16 +25,35 @@ type __VLS_Props = {
16
25
  elevated?: boolean;
17
26
  /** Add a bottom border (border-outline-variant) */
18
27
  bordered?: boolean;
28
+ /**
29
+ * How the bar reacts to `scrollTarget` scrolling (Compose's TopAppBarDefaults scroll behaviors). `pinned`
30
+ * stays put and takes the scrolled container color once the content moves under it; `enter-always` hides
31
+ * (a medium/large bar collapses to the small one) while the content scrolls down and comes back as soon as
32
+ * it scrolls up; `exit-until-collapsed` collapses a medium/large bar as the content scrolls and expands it
33
+ * only back at the top. The last two make the bar sticky over the content: put it at the top of the
34
+ * scrolling element (or of the page)
35
+ */
36
+ scrollBehavior?: 'pinned' | 'enter-always' | 'exit-until-collapsed';
37
+ /** What `scrollBehavior` follows: an element or a CSS selector for it. Defaults to the window */
38
+ scrollTarget?: HTMLElement | string | null;
19
39
  };
20
- declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
40
+ declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {}, __VLS_16: {}, __VLS_18: {}, __VLS_20: {}, __VLS_22: {};
21
41
  type __VLS_Slots = {} & {
22
42
  navigation?: (props: typeof __VLS_1) => any;
23
43
  } & {
24
44
  title?: (props: typeof __VLS_10) => any;
25
45
  } & {
26
- actions?: (props: typeof __VLS_12) => any;
46
+ subtitle?: (props: typeof __VLS_12) => any;
27
47
  } & {
28
48
  title?: (props: typeof __VLS_14) => any;
49
+ } & {
50
+ subtitle?: (props: typeof __VLS_16) => any;
51
+ } & {
52
+ actions?: (props: typeof __VLS_18) => any;
53
+ } & {
54
+ title?: (props: typeof __VLS_20) => any;
55
+ } & {
56
+ subtitle?: (props: typeof __VLS_22) => any;
29
57
  };
30
58
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
59
  navigation: () => any;
@@ -33,6 +61,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
33
61
  onNavigation?: (() => any) | undefined;
34
62
  }>, {
35
63
  variant: "center" | "small" | "medium" | "large";
64
+ scrollTarget: HTMLElement | string | null;
65
+ flexible: boolean;
66
+ titleAlignment: "start" | "center";
36
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
68
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
69
  declare const _default: typeof __VLS_export;