@m3ui-vue/m3ui-vue 0.8.8 → 0.9.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 (375) hide show
  1. package/README.md +25 -5
  2. package/dist/API.md +3661 -0
  3. package/dist/MIcon-CaEooCmZ.js.map +1 -1
  4. package/dist/{MMenuItem-5xojJYAL.js → MTextField-pJU1vFaR.js} +374 -364
  5. package/dist/MTextField-pJU1vFaR.js.map +1 -0
  6. package/dist/api.json +1 -0
  7. package/dist/barcode.js +9 -11
  8. package/dist/barcode.js.map +1 -1
  9. package/dist/chart.js.map +1 -1
  10. package/dist/code-editor.js +2 -2
  11. package/dist/code-editor.js.map +1 -1
  12. package/dist/components/MAbsolute.vue.d.ts +12 -0
  13. package/dist/components/MAlert.vue.d.ts +4 -0
  14. package/dist/components/MAppBar.vue.d.ts +12 -0
  15. package/dist/components/MAppLayout.vue.d.ts +2 -0
  16. package/dist/components/MAspectRatio.vue.d.ts +1 -0
  17. package/dist/components/MAutocomplete.vue.d.ts +18 -0
  18. package/dist/components/MAvatar.vue.d.ts +3 -0
  19. package/dist/components/MBadge.vue.d.ts +6 -0
  20. package/dist/components/MBar.vue.d.ts +5 -0
  21. package/dist/components/MBarcode.vue.d.ts +9 -0
  22. package/dist/components/MBottomSheet.vue.d.ts +3 -0
  23. package/dist/components/MBox.vue.d.ts +6 -0
  24. package/dist/components/MBreadcrumbs.vue.d.ts +2 -0
  25. package/dist/components/MButton.vue.d.ts +14 -4
  26. package/dist/components/MButtonGroup.vue.d.ts +7 -0
  27. package/dist/components/MCalendar.vue.d.ts +8 -0
  28. package/dist/components/MCard.vue.d.ts +17 -0
  29. package/dist/components/MCarousel.vue.d.ts +61 -36
  30. package/dist/components/MCenter.vue.d.ts +1 -0
  31. package/dist/components/MChart.vue.d.ts +7 -0
  32. package/dist/components/MChatBubble.vue.d.ts +10 -0
  33. package/dist/components/MCheckbox.vue.d.ts +5 -0
  34. package/dist/components/MChip.vue.d.ts +9 -0
  35. package/dist/components/MCircleProgressBar.vue.d.ts +7 -0
  36. package/dist/components/MCodeEditor.vue.d.ts +9 -0
  37. package/dist/components/MColorPicker.vue.d.ts +8 -0
  38. package/dist/components/MColorPickerModal.vue.d.ts +4 -0
  39. package/dist/components/MCommandPalette.vue.d.ts +8 -0
  40. package/dist/components/MConfirmDialog.vue.d.ts +7 -0
  41. package/dist/components/MContainer.vue.d.ts +4 -0
  42. package/dist/components/MContextMenu.vue.d.ts +3 -6
  43. package/dist/components/MCopyButton.vue.d.ts +10 -0
  44. package/dist/components/MDataTable.vue.d.ts +33 -12
  45. package/dist/components/MDatePicker.vue.d.ts +16 -0
  46. package/dist/components/MDatePickerModal.vue.d.ts +9 -0
  47. package/dist/components/MDateRangePicker.vue.d.ts +18 -0
  48. package/dist/components/MDateRangePickerModal.vue.d.ts +9 -0
  49. package/dist/components/MDialog.vue.d.ts +10 -6
  50. package/dist/components/MDivider.vue.d.ts +6 -0
  51. package/dist/components/MDragDropList.vue.d.ts +6 -0
  52. package/dist/components/MEmoji.vue.d.ts +6 -0
  53. package/dist/components/MEmojiButton.vue.d.ts +5 -0
  54. package/dist/components/MEmojiSelector.vue.d.ts +21 -5
  55. package/dist/components/MEmptyState.vue.d.ts +4 -0
  56. package/dist/components/MExpansionPanel.vue.d.ts +9 -0
  57. package/dist/components/MExportButton.vue.d.ts +8 -0
  58. package/dist/components/MFab.vue.d.ts +9 -0
  59. package/dist/components/MFabMenu.vue.d.ts +15 -1
  60. package/dist/components/MFileUpload.vue.d.ts +8 -0
  61. package/dist/components/MFixed.vue.d.ts +10 -0
  62. package/dist/components/MFlex.vue.d.ts +7 -1
  63. package/dist/components/MFooter.vue.d.ts +11 -0
  64. package/dist/components/MFullscreen.vue.d.ts +2 -0
  65. package/dist/components/MGrid.vue.d.ts +7 -0
  66. package/dist/components/MHotkeys.vue.d.ts +4 -0
  67. package/dist/components/MIcon.vue.d.ts +2 -0
  68. package/dist/components/MIconButton.vue.d.ts +10 -0
  69. package/dist/components/MInfiniteScroll.vue.d.ts +6 -0
  70. package/dist/components/MJsonEditor.vue.d.ts +8 -0
  71. package/dist/components/MJsonViewer.vue.d.ts +4 -0
  72. package/dist/components/MKanban.vue.d.ts +2 -0
  73. package/dist/components/MKbd.vue.d.ts +2 -0
  74. package/dist/components/MLightbox.vue.d.ts +19 -5
  75. package/dist/components/MList.vue.d.ts +7 -0
  76. package/dist/components/MListItem.vue.d.ts +24 -0
  77. package/dist/components/MListSubheader.vue.d.ts +6 -0
  78. package/dist/components/MLoadingIndicator.vue.d.ts +10 -0
  79. package/dist/components/MLoadingOverlay.vue.d.ts +5 -0
  80. package/dist/components/MMarkdown.vue.d.ts +3 -0
  81. package/dist/components/MMaskField.vue.d.ts +15 -0
  82. package/dist/components/MMasonry.vue.d.ts +5 -0
  83. package/dist/components/MMenu.vue.d.ts +3 -6
  84. package/dist/components/MMenuDivider.vue.d.ts +4 -0
  85. package/dist/components/MMenuItem.vue.d.ts +5 -0
  86. package/dist/components/MMultiAutocomplete.vue.d.ts +20 -0
  87. package/dist/components/MMultiSelect.vue.d.ts +21 -0
  88. package/dist/components/MNavigationBar.vue.d.ts +2 -0
  89. package/dist/components/MNavigationDrawer.vue.d.ts +11 -0
  90. package/dist/components/MNavigationRail.vue.d.ts +9 -6
  91. package/dist/components/MNavigationSuite.vue.d.ts +5 -3
  92. package/dist/components/MNumberField.vue.d.ts +17 -0
  93. package/dist/components/MOverlay.vue.d.ts +3 -0
  94. package/dist/components/MPageProgress.vue.d.ts +3 -0
  95. package/dist/components/MPagination.vue.d.ts +3 -0
  96. package/dist/components/MPasswordMeter.vue.d.ts +1 -0
  97. package/dist/components/MPinInput.vue.d.ts +11 -0
  98. package/dist/components/MProgressBar.vue.d.ts +6 -0
  99. package/dist/components/MPullToRefresh.vue.d.ts +8 -0
  100. package/dist/components/MQRCode.vue.d.ts +6 -0
  101. package/dist/components/MRadio.vue.d.ts +5 -0
  102. package/dist/components/MRadioGroup.vue.d.ts +6 -0
  103. package/dist/components/MRating.vue.d.ts +11 -0
  104. package/dist/components/MRelativeTime.vue.d.ts +1 -0
  105. package/dist/components/MResponsive.vue.d.ts +3 -0
  106. package/dist/components/MResult.vue.d.ts +6 -0
  107. package/dist/components/MRichTextEditor.vue.d.ts +8 -0
  108. package/dist/components/MScheduler.vue.d.ts +48 -1
  109. package/dist/components/MScrollable.vue.d.ts +3 -0
  110. package/dist/components/MSearchBar.vue.d.ts +6 -0
  111. package/dist/components/MSection.vue.d.ts +5 -0
  112. package/dist/components/MSegmentedButton.vue.d.ts +5 -0
  113. package/dist/components/MSelect.vue.d.ts +17 -0
  114. package/dist/components/MShader.vue.d.ts +1 -0
  115. package/dist/components/MShape.vue.d.ts +1 -1
  116. package/dist/components/MShortNavigationBar.vue.d.ts +8 -9
  117. package/dist/components/MSideSheet.vue.d.ts +3 -0
  118. package/dist/components/MSignaturePad.vue.d.ts +7 -0
  119. package/dist/components/MSimpleCarousel.vue.d.ts +12 -2
  120. package/dist/components/MSkeleton.vue.d.ts +8 -0
  121. package/dist/components/MSlider.vue.d.ts +15 -1
  122. package/dist/components/MSnackbar.vue.d.ts +1 -0
  123. package/dist/components/MSpinner.vue.d.ts +6 -0
  124. package/dist/components/MSplitButton.vue.d.ts +7 -0
  125. package/dist/components/MSplitter.vue.d.ts +4 -0
  126. package/dist/components/MSpotlightSearch.vue.d.ts +18 -0
  127. package/dist/components/MStack.vue.d.ts +8 -1
  128. package/dist/components/MStatCard.vue.d.ts +7 -0
  129. package/dist/components/MStepper.vue.d.ts +7 -0
  130. package/dist/components/MSticky.vue.d.ts +2 -0
  131. package/dist/components/MSubtitle.vue.d.ts +4 -0
  132. package/dist/components/MSwitch.vue.d.ts +5 -6
  133. package/dist/components/MTable.vue.d.ts +17 -4
  134. package/dist/components/MTabs.vue.d.ts +6 -0
  135. package/dist/components/MTagInput.vue.d.ts +17 -0
  136. package/dist/components/MTerminal.vue.d.ts +4 -0
  137. package/dist/components/MText.vue.d.ts +10 -0
  138. package/dist/components/MTextField.vue.d.ts +18 -0
  139. package/dist/components/MTimePicker.vue.d.ts +10 -0
  140. package/dist/components/MTimePickerModal.vue.d.ts +5 -0
  141. package/dist/components/MTimeline.vue.d.ts +3 -0
  142. package/dist/components/MTitle.vue.d.ts +4 -0
  143. package/dist/components/MToggleButton.vue.d.ts +4 -0
  144. package/dist/components/MToolbar.vue.d.ts +6 -1
  145. package/dist/components/MTooltip.vue.d.ts +7 -0
  146. package/dist/components/MTopAppBar.vue.d.ts +8 -0
  147. package/dist/components/MTour.vue.d.ts +5 -0
  148. package/dist/components/MTransferList.vue.d.ts +11 -0
  149. package/dist/components/MTree.vue.d.ts +11 -0
  150. package/dist/components/MTreeTable.vue.d.ts +7 -0
  151. package/dist/components/MVirtualTable.vue.d.ts +6 -0
  152. package/dist/components/MWindow.vue.d.ts +33 -1
  153. package/dist/composables/_carouselStrategy.d.ts +101 -0
  154. package/dist/composables/useLocale.d.ts +21 -0
  155. package/dist/data/emoji-names/emoji-names-de.d.ts +2 -0
  156. package/dist/data/emoji-names/emoji-names-en.d.ts +2 -0
  157. package/dist/data/emoji-names/emoji-names-es.d.ts +2 -0
  158. package/dist/data/emoji-names/emoji-names-fr.d.ts +2 -0
  159. package/dist/data/emoji-names/emoji-names-ja.d.ts +2 -0
  160. package/dist/data/emoji-names/emoji-names-ko.d.ts +2 -0
  161. package/dist/data/emoji-names/emoji-names-pt.d.ts +2 -0
  162. package/dist/data/emoji-names/emoji-names-zh.d.ts +2 -0
  163. package/dist/data/emojis.d.ts +7 -1
  164. package/dist/emoji-names-de-BphO5XpV.js +1877 -0
  165. package/dist/emoji-names-de-BphO5XpV.js.map +1 -0
  166. package/dist/emoji-names-en-9ZvMRvzi.js +1877 -0
  167. package/dist/emoji-names-en-9ZvMRvzi.js.map +1 -0
  168. package/dist/emoji-names-es-DvfWU3Pj.js +1877 -0
  169. package/dist/emoji-names-es-DvfWU3Pj.js.map +1 -0
  170. package/dist/emoji-names-fr-B-jhUlsP.js +1877 -0
  171. package/dist/emoji-names-fr-B-jhUlsP.js.map +1 -0
  172. package/dist/emoji-names-ja-l8cMFJo1.js +1877 -0
  173. package/dist/emoji-names-ja-l8cMFJo1.js.map +1 -0
  174. package/dist/emoji-names-ko-YP-o9G0c.js +1877 -0
  175. package/dist/emoji-names-ko-YP-o9G0c.js.map +1 -0
  176. package/dist/emoji-names-pt-DGj_Js4M.js +1877 -0
  177. package/dist/emoji-names-pt-DGj_Js4M.js.map +1 -0
  178. package/dist/emoji-names-zh-Dzecwtw_.js +1877 -0
  179. package/dist/emoji-names-zh-Dzecwtw_.js.map +1 -0
  180. package/dist/index.d.ts +2 -2
  181. package/dist/locales/index.js +140 -7
  182. package/dist/locales/index.js.map +1 -1
  183. package/dist/m3ui-vue.css +1 -1
  184. package/dist/m3ui.js +6642 -5160
  185. package/dist/m3ui.js.map +1 -1
  186. package/dist/markdown.js +1 -1
  187. package/dist/markdown.js.map +1 -1
  188. package/dist/plugin.d.ts +6 -0
  189. package/dist/qrcode.js.map +1 -1
  190. package/dist/rich-text-editor.js +10 -10
  191. package/dist/rich-text-editor.js.map +1 -1
  192. package/dist/styles.css +1 -1
  193. package/dist/terminal.js +34 -27
  194. package/dist/terminal.js.map +1 -1
  195. package/dist/{useLocale-D3ZWZ8jY.js → useLocale-Drihe5G2.js} +33 -11
  196. package/dist/useLocale-Drihe5G2.js.map +1 -0
  197. package/package.json +4 -2
  198. package/src/__tests__/MCarousel.test.ts +183 -21
  199. package/src/__tests__/MDialog.test.ts +18 -0
  200. package/src/__tests__/MEmojiSelector.test.ts +138 -0
  201. package/src/__tests__/MHotkeys.test.ts +57 -0
  202. package/src/__tests__/MLightbox.test.ts +313 -5
  203. package/src/__tests__/MScheduler.test.ts +122 -0
  204. package/src/__tests__/MTerminal.test.ts +63 -0
  205. package/src/__tests__/attrsFallthrough.test.ts +65 -0
  206. package/src/__tests__/hostLocale.test.ts +57 -0
  207. package/src/__tests__/plugin.test.ts +28 -1
  208. package/src/components/MAbsolute.vue +18 -0
  209. package/src/components/MAlert.vue +12 -0
  210. package/src/components/MAppBar.vue +12 -0
  211. package/src/components/MAppLayout.vue +11 -0
  212. package/src/components/MAspectRatio.vue +6 -0
  213. package/src/components/MAutocomplete.vue +24 -0
  214. package/src/components/MAvatar.vue +12 -1
  215. package/src/components/MBadge.vue +11 -0
  216. package/src/components/MBar.vue +19 -0
  217. package/src/components/MBarcode.vue +18 -2
  218. package/src/components/MBottomSheet.vue +13 -1
  219. package/src/components/MBox.vue +12 -0
  220. package/src/components/MBreadcrumbs.vue +7 -0
  221. package/src/components/MButton.vue +22 -4
  222. package/src/components/MButtonGroup.vue +13 -0
  223. package/src/components/MCalendar.vue +14 -0
  224. package/src/components/MCard.vue +26 -0
  225. package/src/components/MCarousel.vue +542 -200
  226. package/src/components/MCenter.vue +6 -0
  227. package/src/components/MChart.vue +12 -0
  228. package/src/components/MChatBubble.vue +17 -0
  229. package/src/components/MCheckbox.vue +11 -0
  230. package/src/components/MChip.vue +17 -0
  231. package/src/components/MCircleProgressBar.vue +13 -0
  232. package/src/components/MCodeEditor.vue +18 -2
  233. package/src/components/MColorPicker.vue +13 -0
  234. package/src/components/MColorPickerModal.vue +12 -0
  235. package/src/components/MCommandPalette.vue +17 -1
  236. package/src/components/MConfirmDialog.vue +15 -0
  237. package/src/components/MContainer.vue +9 -0
  238. package/src/components/MContextMenu.vue +20 -7
  239. package/src/components/MCopyButton.vue +16 -0
  240. package/src/components/MDataTable.vue +58 -12
  241. package/src/components/MDatePicker.vue +21 -0
  242. package/src/components/MDatePickerModal.vue +17 -1
  243. package/src/components/MDateRangePicker.vue +23 -0
  244. package/src/components/MDateRangePickerModal.vue +17 -1
  245. package/src/components/MDialog.vue +43 -10
  246. package/src/components/MDivider.vue +6 -0
  247. package/src/components/MDragDropList.vue +18 -0
  248. package/src/components/MEmoji.vue +6 -0
  249. package/src/components/MEmojiButton.vue +11 -0
  250. package/src/components/MEmojiSelector.vue +486 -78
  251. package/src/components/MEmptyState.vue +9 -0
  252. package/src/components/MExpansionPanel.vue +17 -0
  253. package/src/components/MExportButton.vue +15 -0
  254. package/src/components/MFab.vue +20 -1
  255. package/src/components/MFabMenu.vue +20 -0
  256. package/src/components/MFileUpload.vue +19 -0
  257. package/src/components/MFixed.vue +16 -0
  258. package/src/components/MFlex.vue +11 -0
  259. package/src/components/MFooter.vue +11 -0
  260. package/src/components/MFullscreen.vue +8 -0
  261. package/src/components/MGrid.vue +12 -0
  262. package/src/components/MHotkeys.vue +20 -13
  263. package/src/components/MIcon.vue +10 -1
  264. package/src/components/MIconButton.vue +13 -0
  265. package/src/components/MInfiniteScroll.vue +16 -0
  266. package/src/components/MJsonEditor.vue +13 -0
  267. package/src/components/MJsonViewer.vue +7 -0
  268. package/src/components/MKanban.vue +18 -0
  269. package/src/components/MKbd.vue +6 -0
  270. package/src/components/MLightbox.vue +766 -268
  271. package/src/components/MList.vue +15 -0
  272. package/src/components/MListDetail.vue +11 -0
  273. package/src/components/MListItem.vue +37 -0
  274. package/src/components/MListSubheader.vue +6 -0
  275. package/src/components/MLoadingIndicator.vue +15 -0
  276. package/src/components/MLoadingOverlay.vue +18 -1
  277. package/src/components/MMarkdown.vue +7 -0
  278. package/src/components/MMaskField.vue +21 -0
  279. package/src/components/MMasonry.vue +11 -0
  280. package/src/components/MMenu.vue +19 -7
  281. package/src/components/MMenuDivider.vue +4 -0
  282. package/src/components/MMenuItem.vue +16 -0
  283. package/src/components/MMultiAutocomplete.vue +26 -0
  284. package/src/components/MMultiSelect.vue +27 -0
  285. package/src/components/MNavigationBar.vue +7 -0
  286. package/src/components/MNavigationDrawer.vue +30 -1
  287. package/src/components/MNavigationRail.vue +27 -6
  288. package/src/components/MNavigationSuite.vue +20 -3
  289. package/src/components/MNotificationHost.vue +3 -0
  290. package/src/components/MNumberField.vue +24 -0
  291. package/src/components/MOverlay.vue +11 -0
  292. package/src/components/MPageProgress.vue +7 -0
  293. package/src/components/MPagination.vue +15 -1
  294. package/src/components/MPasswordMeter.vue +7 -0
  295. package/src/components/MPinInput.vue +19 -0
  296. package/src/components/MProgressBar.vue +9 -0
  297. package/src/components/MPullToRefresh.vue +17 -0
  298. package/src/components/MQRCode.vue +12 -0
  299. package/src/components/MRadio.vue +11 -0
  300. package/src/components/MRadioGroup.vue +11 -0
  301. package/src/components/MRating.vue +19 -0
  302. package/src/components/MRelative.vue +8 -0
  303. package/src/components/MRelativeTime.vue +6 -0
  304. package/src/components/MResponsive.vue +9 -0
  305. package/src/components/MResult.vue +14 -0
  306. package/src/components/MRichTextEditor.vue +14 -0
  307. package/src/components/MScheduler.vue +303 -115
  308. package/src/components/MScrollable.vue +8 -0
  309. package/src/components/MSearchBar.vue +17 -0
  310. package/src/components/MSection.vue +13 -0
  311. package/src/components/MSegmentedButton.vue +10 -0
  312. package/src/components/MSelect.vue +22 -0
  313. package/src/components/MShader.vue +13 -0
  314. package/src/components/MShape.vue +6 -0
  315. package/src/components/MShortNavigationBar.vue +23 -9
  316. package/src/components/MSideSheet.vue +14 -1
  317. package/src/components/MSignaturePad.vue +15 -0
  318. package/src/components/MSimpleCarousel.vue +18 -0
  319. package/src/components/MSkeleton.vue +8 -0
  320. package/src/components/MSlider.vue +21 -0
  321. package/src/components/MSnackbar.vue +5 -0
  322. package/src/components/MSpacer.vue +6 -0
  323. package/src/components/MSpinner.vue +10 -0
  324. package/src/components/MSplitButton.vue +17 -1
  325. package/src/components/MSplitter.vue +10 -0
  326. package/src/components/MSpotlightSearch.vue +28 -1
  327. package/src/components/MStack.vue +12 -0
  328. package/src/components/MStatCard.vue +13 -0
  329. package/src/components/MStepper.vue +12 -0
  330. package/src/components/MSticky.vue +7 -0
  331. package/src/components/MSubtitle.vue +9 -0
  332. package/src/components/MSupportingPane.vue +10 -0
  333. package/src/components/MSwitch.vue +14 -6
  334. package/src/components/MTable.vue +33 -4
  335. package/src/components/MTabs.vue +12 -0
  336. package/src/components/MTagInput.vue +23 -0
  337. package/src/components/MTerminal.vue +33 -10
  338. package/src/components/MText.vue +15 -0
  339. package/src/components/MTextField.vue +26 -0
  340. package/src/components/MTimePicker.vue +15 -0
  341. package/src/components/MTimePickerModal.vue +13 -1
  342. package/src/components/MTimeline.vue +7 -0
  343. package/src/components/MTitle.vue +9 -0
  344. package/src/components/MToggleButton.vue +12 -0
  345. package/src/components/MToolbar.vue +12 -0
  346. package/src/components/MTooltip.vue +18 -0
  347. package/src/components/MTopAppBar.vue +18 -0
  348. package/src/components/MTour.vue +15 -2
  349. package/src/components/MTransferList.vue +24 -0
  350. package/src/components/MTree.vue +11 -0
  351. package/src/components/MTreeTable.vue +15 -0
  352. package/src/components/MVirtualTable.vue +12 -0
  353. package/src/components/MWindow.vue +34 -0
  354. package/src/composables/_carouselStrategy.ts +712 -0
  355. package/src/composables/useLocale.ts +54 -3
  356. package/src/data/emoji-names/emoji-names-de.ts +1875 -0
  357. package/src/data/emoji-names/emoji-names-en.ts +1875 -0
  358. package/src/data/emoji-names/emoji-names-es.ts +1875 -0
  359. package/src/data/emoji-names/emoji-names-fr.ts +1875 -0
  360. package/src/data/emoji-names/emoji-names-ja.ts +1875 -0
  361. package/src/data/emoji-names/emoji-names-ko.ts +1875 -0
  362. package/src/data/emoji-names/emoji-names-pt.ts +1875 -0
  363. package/src/data/emoji-names/emoji-names-zh.ts +1875 -0
  364. package/src/data/emojis.ts +29 -198
  365. package/src/index.ts +2 -2
  366. package/src/locales/de.ts +19 -0
  367. package/src/locales/es.ts +19 -0
  368. package/src/locales/fr.ts +19 -0
  369. package/src/locales/ja.ts +19 -0
  370. package/src/locales/ko.ts +19 -0
  371. package/src/locales/pt.ts +19 -0
  372. package/src/locales/zh.ts +19 -0
  373. package/src/plugin.ts +14 -2
  374. package/dist/MMenuItem-5xojJYAL.js.map +0 -1
  375. package/dist/useLocale-D3ZWZ8jY.js.map +0 -1
@@ -1,4 +1,9 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A single-value dropdown select, docked or as a modal dialog on smaller screens.
4
+ *
5
+ * @event update:modelValue Emitted with the selected option's value.
6
+ */
2
7
  import { computed, ref, useId, onMounted, onUnmounted, watch } from 'vue'
3
8
  import MIcon from './MIcon.vue'
4
9
  import MIconButton from './MIconButton.vue'
@@ -17,20 +22,37 @@ defineOptions({ inheritAttrs: false })
17
22
 
18
23
  const props = withDefaults(
19
24
  defineProps<{
25
+ /** Selected value (any type — v-model) */
20
26
  modelValue: unknown
27
+ /** The options to choose from; see `SelectOption`. */
21
28
  options: SelectOption[]
29
+ /** Field label */
22
30
  label?: string
31
+ /** Placeholder when no value selected */
23
32
  placeholder?: string
33
+ /** Visual style */
24
34
  variant?: 'filled' | 'outlined'
35
+ /** Dropdown mode: docked (inline) or modal (dialog) */
25
36
  mode?: 'docked' | 'modal'
37
+ /** Disables the select */
26
38
  disabled?: boolean
39
+ /** Error state */
27
40
  error?: boolean
41
+ /** Error message shown when error is true */
28
42
  errorLabel?: string
43
+ /** Hint text below the field */
29
44
  hint?: string
45
+ /** Marks as required — adds a red asterisk after the label */
30
46
  required?: boolean
47
+ /** Material Symbol shown before the trigger */
31
48
  leadingIcon?: string
49
+ /** Show a clear button to reset the selection */
32
50
  clearable?: boolean
51
+ /**
52
+ * Overrides the auto-detected background color used to cut the floating label out of the outlined border
53
+ */
33
54
  fieldBg?: string
55
+ /** Text shown when options is empty — defaults to the current locale's string */
34
56
  noResultsText?: string
35
57
  }>(),
36
58
  {
@@ -1,4 +1,16 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A canvas container for hand-written shaders. Give it a GLSL fragment shader (Shadertoy-style — it runs on
4
+ * WebGL2 and works everywhere) and, optionally, a WGSL fragment shader that runs on WebGPU when the browser
5
+ * supports it. `renderer="auto"` picks WebGPU whenever both a `wgsl` source and browser support are present,
6
+ * otherwise it falls back to WebGL2 — so the same component works as a drop-in on old and new browsers alike.
7
+ *
8
+ * @slot loading Shown while the backend initializes (default: MSpinner)
9
+ * @slot fallback Shown when neither WebGL2 nor WebGPU is available at all
10
+ * @slot error Shown on a shader compile/link/runtime error, with the message
11
+ * @event error Emitted on a shader compile/link error, or a WebGPU runtime error
12
+ * @event ready Emitted once the backend has initialized — which backend ended up driving the canvas
13
+ */
2
14
  /// <reference types="@webgpu/types" />
3
15
  import { ref, shallowRef, onMounted, onBeforeUnmount, watch } from 'vue'
4
16
  import MSpinner from './MSpinner.vue'
@@ -22,6 +34,7 @@ const props = withDefaults(
22
34
  renderer?: ShaderRenderer
23
35
  /** Custom uniforms. Keys/shape are locked in at mount time; only values are reactive per frame. */
24
36
  uniforms?: Record<string, number | number[]>
37
+ /** Freezes the render loop and the shader clock */
25
38
  paused?: boolean
26
39
  /** Device pixel ratio to render at. Defaults to devicePixelRatio, capped at 2 for performance. */
27
40
  pixelRatio?: number
@@ -3,6 +3,12 @@ export { shapeNames } from 'shape-morph'
3
3
  </script>
4
4
 
5
5
  <script setup lang="ts">
6
+ /**
7
+ * Clips its content — or renders a filled shape with no content — into one of Material 3's 35 real "expressive"
8
+ * shapes. Changing `shape` spring-morphs into the new outline instead of snapping.
9
+ *
10
+ * @slot default Content clipped to the shape (an image, an icon, anything). Without it the shape is drawn filled with `fill`.
11
+ */
6
12
  import { onUnmounted, ref, useId, watch } from 'vue'
7
13
  import { AnimatedMorph, getShape, toSvgPath, type ShapeName } from 'shape-morph'
8
14
 
@@ -1,4 +1,10 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * M3 Expressive's shorter navigation bar (64dp, vs. MNavigationBar's classic 80dp) — a genuinely separate
4
+ * component, not just a size variant.
5
+ *
6
+ * @event update:modelValue Emitted when an item is clicked — powers v-model
7
+ */
2
8
  import { computed } from 'vue'
3
9
  import MIcon from './MIcon.vue'
4
10
  import MBadge from './MBadge.vue'
@@ -18,20 +24,28 @@ export interface ShortNavBarItem {
18
24
 
19
25
  const props = withDefaults(
20
26
  defineProps<{
27
+ /** Active item value, v-model */
21
28
  modelValue: string | number
29
+ /** Array of nav bar items (see `ShortNavBarItem`) */
22
30
  items: ShortNavBarItem[]
23
31
  /**
24
- * 'equal' (ShortNavigationBarArrangement.EqualWeight): items evenly fill the bar — recommended
25
- * for small-width screens. 'centered' (.Centered): items are grouped toward the center instead
26
- * of stretching edge to edge — recommended for medium-width screens, paired with iconPosition
27
- * 'start'. Real Compose computes this via a custom MeasurePolicy at layout time; ported here as
28
- * the same closed-form percentage formula (calculateCenteredContentHorizontalPadding), since it
29
- * only ever depends on the item count, not on measured content size.
32
+ * 'equal' fills the bar edge to edge (small screens); 'centered' groups items toward the middle instead,
33
+ * recommended for medium/landscape screens
30
34
  */
35
+ // 'equal' (ShortNavigationBarArrangement.EqualWeight): items evenly fill the bar — recommended
36
+ // for small-width screens. 'centered' (.Centered): items are grouped toward the center instead
37
+ // of stretching edge to edge — recommended for medium-width screens, paired with iconPosition
38
+ // 'start'. Real Compose computes this via a custom MeasurePolicy at layout time; ported here as
39
+ // the same closed-form percentage formula (calculateCenteredContentHorizontalPadding), since it
40
+ // only ever depends on the item count, not on measured content size.
31
41
  arrangement?: 'equal' | 'centered'
32
- /** NavigationItemIconPosition — 'top' stacks icon above label (ShortNavigationBarItem's
33
- * default); 'start' places the icon beside the label inside a single wider pill, meant for
34
- * the 'centered' arrangement on wider/landscape layouts. */
42
+ /**
43
+ * 'top' stacks the icon above the label; 'start' places it beside the label in one wider pill — typically
44
+ * paired with arrangement='centered'
45
+ */
46
+ // NavigationItemIconPosition — 'top' stacks icon above label (ShortNavigationBarItem's
47
+ // default); 'start' places the icon beside the label inside a single wider pill, meant for
48
+ // the 'centered' arrangement on wider/landscape layouts.
35
49
  iconPosition?: 'top' | 'start'
36
50
  }>(),
37
51
  {
@@ -1,10 +1,23 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A panel that slides in from the right edge of the screen. Supports drag-to-dismiss from its left edge, or
4
+ * tapping the scrim.
5
+ *
6
+ * @slot header Replaces the default title text entirely — the close button stays
7
+ * @slot default Sheet body content (scrollable)
8
+ * @slot actions Footer action buttons, shown in a bordered strip below the content
9
+ * @event update:modelValue Emitted when the sheet closes (scrim click, drag-to-dismiss from the left edge, or
10
+ * the close button) — powers v-model
11
+ */
2
12
  import MIcon from './MIcon.vue'
3
13
  import { useSheetMotion } from '../composables/_useSheetMotion'
4
14
 
5
15
  withDefaults(defineProps<{
16
+ /** Open/closed state (v-model) */
6
17
  modelValue: boolean
18
+ /** Sheet header title, ignored if the header slot is used */
7
19
  title?: string
20
+ /** Tailwind width class for the panel (capped at max-w-[90vw]) */
8
21
  width?: string
9
22
  }>(), { width: 'w-80' })
10
23
 
@@ -17,7 +30,7 @@ const motion = useSheetMotion('x', close)
17
30
 
18
31
  <template>
19
32
  <Teleport to="body">
20
- <Transition :css="false" @enter="motion.onEnter" @leave="motion.onLeave">
33
+ <Transition :css="false" @enter="motion.onEnter" @leave="motion.onLeave" appear>
21
34
  <div v-if="modelValue" class="fixed inset-0 z-200 flex justify-end">
22
35
  <!-- Scrim -->
23
36
  <div data-sheet-scrim class="absolute inset-0 bg-scrim/32" @click="close" />
@@ -1,14 +1,29 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A bordered canvas that captures pointer strokes for signature capture. There's no v-model, since a signature
4
+ * isn't a simple value — read it out via events or the exposed methods.
5
+ *
6
+ * @event end Fires after a stroke ends, with a PNG data: URL of the canvas
7
+ * @event change Fires alongside end, and also after undo() — same data: URL payload
8
+ * @event begin Fires on the first pointerdown of a new stroke
9
+ */
2
10
  import { computed, onMounted, ref, watch } from 'vue'
3
11
 
4
12
  const props = withDefaults(
5
13
  defineProps<{
14
+ /** Canvas width in px */
6
15
  width?: number
16
+ /** Canvas height in px */
7
17
  height?: number
18
+ /** Stroke width */
8
19
  lineWidth?: number
20
+ /** Stroke color */
9
21
  color?: string
22
+ /** Canvas background color */
10
23
  background?: string
24
+ /** Container border style */
11
25
  variant?: 'filled' | 'outlined'
26
+ /** Disables drawing */
12
27
  disabled?: boolean
13
28
  }>(),
14
29
  {
@@ -1,4 +1,12 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A scroll-snap image carousel with three fixed-width layouts — hero (one protagonist item with peeking
4
+ * neighbors), multi-browse (several items at once, statically sized), and uncontained (variable-width items,
5
+ * optionally animated by scroll position). For the real M3 multi-browse carousel — where items continuously
6
+ * resize as you scroll instead of snapping between fixed widths — see MCarousel.
7
+ *
8
+ * @event change Fires with the new active item index whenever the track scrolls to a different closest item
9
+ */
2
10
  import { ref, computed, onMounted, onBeforeUnmount, watch, nextTick } from 'vue'
3
11
  import MIcon from './MIcon.vue'
4
12
 
@@ -12,15 +20,25 @@ export interface SimpleCarouselItem {
12
20
 
13
21
  const props = withDefaults(
14
22
  defineProps<{
23
+ /** Slides to render — required */
15
24
  items: SimpleCarouselItem[]
25
+ /** Carousel layout style */
16
26
  layout?: 'hero' | 'multi-browse' | 'uncontained'
27
+ /** Track height */
17
28
  height?: string
29
+ /** Show prev/next arrow buttons (fade in on hover) */
18
30
  showArrows?: boolean
31
+ /** Show dot indicators below the track */
19
32
  showIndicators?: boolean
33
+ /** Auto-advance slides — pauses while the pointer is over the carousel */
20
34
  autoplay?: boolean
35
+ /** Autoplay interval in ms */
21
36
  interval?: number
37
+ /** Gap between items in pixels */
22
38
  gap?: number
39
+ /** Number of visible items (multi-browse layout only) */
23
40
  visibleItems?: number
41
+ /** Dynamically grow the centered item and shrink the others while scrolling (uncontained layout only) */
24
42
  animated?: boolean
25
43
  }>(),
26
44
  {
@@ -1,9 +1,17 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A loading placeholder shape — text, circular, rectangular, or rounded — with pulse or wave animation.
4
+ */
2
5
  withDefaults(defineProps<{
6
+ /** Skeleton shape */
3
7
  variant?: 'text' | 'circular' | 'rectangular' | 'rounded'
8
+ /** CSS width (defaults to 100%, or 40px for circular) */
4
9
  width?: string
10
+ /** CSS height (defaults to 14px for text, 40px for circular, 100px otherwise) */
5
11
  height?: string
12
+ /** Number of text lines (text variant only) — the last line renders at 60% width */
6
13
  lines?: number
14
+ /** Animation style */
7
15
  animation?: 'pulse' | 'wave' | 'none'
8
16
  }>(), {
9
17
  variant: 'text',
@@ -1,22 +1,43 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * The M3 slider — vertical bar thumb, rounded track with gap, standard/centered/range variants, horizontal or
4
+ * vertical.
5
+ *
6
+ * @event update:modelValue Emitted while dragging and on key presses, with the new value (a `[low, high]` pair
7
+ * for the range variant).
8
+ */
2
9
  import { computed, onBeforeUnmount, ref } from 'vue'
3
10
  import MIcon from './MIcon.vue'
4
11
 
5
12
  const props = withDefaults(
6
13
  defineProps<{
14
+ /** Current value — a tuple when variant is range */
7
15
  modelValue: number | [number, number]
16
+ /** Minimum value */
8
17
  min?: number
18
+ /** Maximum value */
9
19
  max?: number
20
+ /** Step increment */
10
21
  step?: number
22
+ /** Disables the slider */
11
23
  disabled?: boolean
24
+ /** Label text */
12
25
  label?: string
26
+ /** Show current value beside label */
13
27
  showValue?: boolean
28
+ /** Show value tooltip while dragging */
14
29
  showTooltip?: boolean
30
+ /** Slider orientation */
15
31
  orientation?: 'horizontal' | 'vertical'
32
+ /** Track and thumb size */
16
33
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
34
+ /** Standard, centered (from middle), or range (two thumbs) */
17
35
  variant?: 'standard' | 'centered' | 'range'
36
+ /** Show stop dots at each step (max 30 visible) */
18
37
  stops?: boolean
38
+ /** Material Symbol icon shown before the slider — hides once the fill reaches it */
19
39
  icon?: string
40
+ /** Base color — used for the fill and thumb unless overridden by fillColor/thumbColor */
20
41
  color?: 'primary' | 'secondary' | 'tertiary' | 'error'
21
42
  /** Custom color (hex, rgb(), a CSS var, etc.) for the filled/active portion of the track and the corner dot. Defaults to `color`'s M3 token. */
22
43
  fillColor?: string
@@ -1,4 +1,8 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Renders the toasts shown with `useToast()`. It's mounted for you the first time `useToast()` is called, so you
4
+ * don't place it yourself; its position comes from `useToast().position`.
5
+ */
2
6
  import { computed } from "vue";
3
7
  import { useToast } from "../composables/useToast";
4
8
  import MIcon from "./MIcon.vue";
@@ -6,6 +10,7 @@ import MSpinner from "./MSpinner.vue";
6
10
  import { useLocale } from '../composables/useLocale';
7
11
 
8
12
  const props = defineProps<{
13
+ /** Accessible label of each toast's close button. Defaults to the locale's "Close". */
9
14
  closeAriaLabel?: string
10
15
  }>()
11
16
 
@@ -1,3 +1,9 @@
1
+ <!--
2
+ /**
3
+ * Pushes flex siblings apart — renders a simple `flex: 1` div. Use it inside MFlex/MStack (or any flex
4
+ * container) to push a group of items to the far edge.
5
+ */
6
+ -->
1
7
  <template>
2
8
  <div class="flex-1" />
3
9
  </template>
@@ -1,11 +1,21 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A small circular loading spinner — a standard ring, or the M3 Expressive wavy variant. For a larger,
4
+ * shape-morphing loading affordance, see MLoadingIndicator.
5
+ */
2
6
  import { computed } from "vue";
3
7
  import { useLocale } from '../composables/useLocale';
4
8
 
5
9
  const props = withDefaults(
6
10
  defineProps<{
11
+ /** Size in px */
7
12
  size?: number;
13
+ /**
14
+ * M3 Expressive wavy animation style — the ring rotates while a wave travels along its stroke, instead of a
15
+ * plain spin
16
+ */
8
17
  wavy?: boolean;
18
+ /** Aria label for the spinner's status role — falls back to the locale string ('Loading') when omitted */
9
19
  label?: string;
10
20
  }>(),
11
21
  { size: 20, wavy: false },
@@ -1,4 +1,11 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A button split into a main action and a dropdown toggle — click the main part for the primary action, the
4
+ * arrow for alternatives.
5
+ *
6
+ * @slot menu Custom dropdown content. Used instead of items. Call close() to dismiss.
7
+ * @event click Emitted when the main (left) button is clicked
8
+ */
2
9
  import { computed, onMounted, onUnmounted, ref } from 'vue'
3
10
  import MIcon from './MIcon.vue'
4
11
 
@@ -9,13 +16,22 @@ export interface SplitButtonItem {
9
16
  onClick?: () => void
10
17
  }
11
18
 
19
+ defineOptions({ inheritAttrs: false })
20
+
12
21
  const props = withDefaults(defineProps<{
22
+ /** Main button label */
13
23
  label: string
24
+ /** Main button icon */
14
25
  icon?: string
26
+ /** Visual style */
15
27
  variant?: 'filled' | 'tonal' | 'outlined' | 'elevated'
28
+ /** Color scheme */
16
29
  color?: 'primary' | 'secondary' | 'tertiary'
30
+ /** Button size */
17
31
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
32
+ /** Disables both parts */
18
33
  disabled?: boolean
34
+ /** Dropdown menu items; see `SplitButtonItem` */
19
35
  items?: SplitButtonItem[]
20
36
  }>(), {
21
37
  variant: 'tonal',
@@ -159,7 +175,7 @@ onUnmounted(() => {
159
175
  </script>
160
176
 
161
177
  <template>
162
- <div ref="containerEl" :class="containerClasses">
178
+ <div ref="containerEl" v-bind="$attrs" :class="containerClasses">
163
179
  <!-- Main action -->
164
180
  <button
165
181
  type="button"
@@ -1,11 +1,21 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Two resizable panels divided by a draggable handle.
4
+ *
5
+ * @slot first Content for the first (left/top) panel
6
+ * @slot second Content for the second (right/bottom) panel
7
+ */
2
8
  import { ref, computed, onBeforeUnmount } from 'vue'
3
9
 
4
10
  const props = withDefaults(
5
11
  defineProps<{
12
+ /** Split direction */
6
13
  direction?: 'horizontal' | 'vertical'
14
+ /** Initial split percentage */
7
15
  initialSplit?: number
16
+ /** Minimum panel percentage */
8
17
  min?: number
18
+ /** Maximum panel percentage */
9
19
  max?: number
10
20
  }>(),
11
21
  { direction: 'horizontal', initialSplit: 50, min: 10, max: 90 },
@@ -1,4 +1,13 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A spotlight-style search overlay. Unlike MCommandPalette, it doesn't filter internally — you own the results
4
+ * array and update it from the search event, which makes it a natural fit for async/remote search.
5
+ *
6
+ * @event update:modelValue Emitted on open/close — powers v-model
7
+ * @event select Emitted when a result is chosen (click, or Enter)
8
+ * @event search Emitted as the query changes (debounced by the debounce prop) — drive your own filtering and
9
+ * update results in response
10
+ */
2
11
  import { ref, computed, watch, nextTick, onMounted, onBeforeUnmount } from 'vue'
3
12
  import MIcon from './MIcon.vue'
4
13
  import MSpinner from './MSpinner.vue'
@@ -16,15 +25,33 @@ export interface SpotlightResult {
16
25
 
17
26
  const props = withDefaults(
18
27
  defineProps<{
28
+ /** Open/closed state (v-model). Required — there is no default. */
19
29
  modelValue: boolean
30
+ /**
31
+ * Results to render — the component does no filtering itself, it just displays whatever you pass via the
32
+ * search event handler
33
+ */
20
34
  results?: SpotlightResult[]
35
+ /** Search input placeholder — falls back to the locale's own string when unset */
21
36
  placeholder?: string
37
+ /** Shows a spinner in place of the clear button, e.g. while an async search is in flight */
22
38
  loading?: boolean
39
+ /** Empty-state text — falls back to the locale's own string when unset */
23
40
  noResultsText?: string
41
+ /**
42
+ * Global keyboard shortcut key (no modifier) to open the search — ignored while focus is in a text
43
+ * input/textarea/contenteditable
44
+ */
24
45
  hotkey?: string
46
+ /**
47
+ * Delay in ms before the search event fires after the query changes; 0 fires immediately on every keystroke
48
+ */
25
49
  debounce?: number
50
+ /** Footer hint text for the arrow keys — falls back to the locale's own string when unset */
26
51
  navigateHint?: string
52
+ /** Footer hint text for Enter — falls back to the locale's own string when unset */
27
53
  openHint?: string
54
+ /** Footer hint text for Escape — falls back to the locale's own string when unset */
28
55
  closeHint?: string
29
56
  }>(),
30
57
  {
@@ -144,7 +171,7 @@ onBeforeUnmount(() => {
144
171
 
145
172
  <template>
146
173
  <Teleport to="body">
147
- <Transition name="m3-spot">
174
+ <Transition name="m3-spot" appear>
148
175
  <div
149
176
  v-if="modelValue"
150
177
  class="fixed inset-0 z-50 flex items-start justify-center bg-scrim/32 pt-[12vh]"
@@ -1,14 +1,26 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Flex stack with gap, alignment, and optional dividers between items.
4
+ *
5
+ * @slot default The stacked items.
6
+ */
2
7
  import { computed } from 'vue'
3
8
 
4
9
  const props = withDefaults(
5
10
  defineProps<{
11
+ /** Stack direction */
6
12
  direction?: 'column' | 'row'
13
+ /** Gap between items (ignored when divider is true) */
7
14
  gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'
15
+ /** Cross-axis alignment */
8
16
  align?: 'start' | 'center' | 'end' | 'stretch' | 'baseline'
17
+ /** Main-axis alignment */
9
18
  justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'
19
+ /** Allow items to wrap */
10
20
  wrap?: boolean
21
+ /** Show dividers between items instead of a gap */
11
22
  divider?: boolean
23
+ /** Use inline-flex */
12
24
  inline?: boolean
13
25
  }>(),
14
26
  { direction: 'column', gap: 'md', align: 'stretch', justify: 'start', wrap: false, divider: false, inline: false },
@@ -1,14 +1,27 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A compact metric card — title, value, optional icon, and a trend indicator, with a built-in loading skeleton.
4
+ *
5
+ * @slot footer Extra content appended after the trend indicator/label row (only rendered when trend,
6
+ * trendLabel, or this slot is present)
7
+ */
2
8
  import { computed } from 'vue'
3
9
  import MIcon from './MIcon.vue'
4
10
 
5
11
  const props = withDefaults(defineProps<{
12
+ /** Stat label text — required */
6
13
  title: string
14
+ /** Main stat value — required */
7
15
  value: string | number
16
+ /** Material Symbol icon shown in a colored container on the right */
8
17
  icon?: string
18
+ /** Percentage change — positive shows green/up, negative red/down, zero neutral/flat */
9
19
  trend?: number
20
+ /** Text next to the trend indicator (e.g. "vs last month") */
10
21
  trendLabel?: string
22
+ /** Icon container color */
11
23
  color?: 'primary' | 'secondary' | 'tertiary' | 'error' | 'success'
24
+ /** Show a skeleton placeholder instead of the value */
12
25
  loading?: boolean
13
26
  }>(), { color: 'primary' })
14
27
 
@@ -1,4 +1,9 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A multi-step wizard, horizontal or vertical, with icons, descriptions, and optional/error states.
4
+ *
5
+ * @event update:modelValue Emitted with the new current step index.
6
+ */
2
7
  import { computed } from 'vue'
3
8
  import MIcon from './MIcon.vue'
4
9
 
@@ -11,9 +16,16 @@ export interface StepItem {
11
16
  }
12
17
 
13
18
  const props = withDefaults(defineProps<{
19
+ /** Step definitions (see `StepItem`) */
14
20
  steps: StepItem[]
21
+ /** Active step index (0-based), v-model */
15
22
  modelValue: number
23
+ /** Layout direction */
16
24
  direction?: 'horizontal' | 'vertical'
25
+ /**
26
+ * When true, steps are not clickable — only the active step changes via v-model from outside. When false, any
27
+ * non-active step can be clicked to jump to it.
28
+ */
17
29
  linear?: boolean
18
30
  }>(), { direction: 'horizontal', linear: true })
19
31
 
@@ -1,9 +1,16 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Sticks content to the top of its scroll container using `position: sticky`.
4
+ *
5
+ * @slot default The content that sticks.
6
+ */
2
7
  import { computed } from 'vue'
3
8
 
4
9
  const props = withDefaults(
5
10
  defineProps<{
11
+ /** Sticky offset from top (number = px) */
6
12
  top?: string | number
13
+ /** Z-index value */
7
14
  zIndex?: number
8
15
  }>(),
9
16
  { top: 0, zIndex: 40 },
@@ -1,13 +1,22 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Secondary text component with muted color by default — a thin wrapper around `MText`.
4
+ *
5
+ * @slot default The subtitle text.
6
+ */
2
7
  import { computed } from 'vue'
3
8
  import MText from './MText.vue'
4
9
  import type { TextVariant } from './MText.vue'
5
10
 
6
11
  const props = withDefaults(
7
12
  defineProps<{
13
+ /** Subtitle size (maps to body-large/medium/small) */
8
14
  size?: 'large' | 'medium' | 'small'
15
+ /** Text color */
9
16
  color?: 'on-surface' | 'on-surface-variant' | 'primary' | 'secondary' | 'tertiary' | 'error' | 'inherit'
17
+ /** Text alignment */
10
18
  align?: 'left' | 'center' | 'right'
19
+ /** Truncate text with ellipsis on overflow */
11
20
  truncate?: boolean
12
21
  }>(),
13
22
  { size: 'large', color: 'on-surface-variant' },
@@ -1,4 +1,14 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * Material 3's supporting pane layout: main content plus a narrower pane that supports it, like related videos
4
+ * next to a player, a cart next to a product or comments next to a document. With room for two panes (840px and
5
+ * up) the supporting pane sits beside the main one; on smaller screens it moves under it, or into a bottom
6
+ * sheet with `single-pane="sheet"`. It measures its own width, not the window's.
7
+ *
8
+ * @slot main The main content
9
+ * @slot supporting Content that supports the main pane: related items, a summary, details, tools
10
+ * @event update:open Emitted when the sheet is dismissed, or closed because both panes fit again
11
+ */
2
12
  import { computed, ref, watch } from 'vue'
3
13
  import MBottomSheet from './MBottomSheet.vue'
4
14
  import { useWindowSizeClass } from '../composables/useWindowSizeClass'
@@ -1,19 +1,27 @@
1
1
  <script setup lang="ts">
2
+ /**
3
+ * A toggle switch with an optional label, 4 semantic colors, and both M3 icon variants.
4
+ *
5
+ * @event update:modelValue Emitted with the new on/off state.
6
+ */
2
7
  import { computed, ref } from 'vue'
3
8
  import MIcon from './MIcon.vue'
4
9
 
5
10
  const props = withDefaults(
6
11
  defineProps<{
12
+ /** Toggle state (v-model) */
7
13
  modelValue: boolean
14
+ /** Disables the switch */
8
15
  disabled?: boolean
16
+ /** Label text */
9
17
  label?: string
18
+ /** Track/thumb color when on */
10
19
  color?: 'primary' | 'secondary' | 'tertiary' | 'error'
11
- /**
12
- * M3 officially has two Switch variants: with a check icon inside the thumb (the
13
- * `thumbContent` slot filled), and without (Compose's actual default — `thumbContent`
14
- * defaults to `null`). Defaults to `true` here to keep this component's existing look;
15
- * pass `false` for the plain/no-icon variant.
16
- */
20
+ /** Shows a check icon in the thumb while on. Set to `false` for M3's plain switch without an icon. */
21
+ // M3 officially has two Switch variants: with a check icon inside the thumb (the
22
+ // `thumbContent` slot filled), and without (Compose's actual default — `thumbContent`
23
+ // defaults to `null`). Defaults to `true` here to keep this component's existing look;
24
+ // pass `false` for the plain/no-icon variant.
17
25
  icon?: boolean
18
26
  }>(),
19
27
  { disabled: false, color: 'primary', icon: true },