@m3ui-vue/m3ui-vue 0.9.0 → 0.9.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 (364) hide show
  1. package/README.md +53 -2
  2. package/dist/API.md +3806 -0
  3. package/dist/MIcon-CaEooCmZ.js.map +1 -1
  4. package/dist/{MTextField-B0wGv1Mx.js → MTextField-Ck0oWDMk.js} +9 -3
  5. package/dist/MTextField-Ck0oWDMk.js.map +1 -0
  6. package/dist/api.json +1 -0
  7. package/dist/barcode.js.map +1 -1
  8. package/dist/chart.js.map +1 -1
  9. package/dist/code-editor.js +2 -2
  10. package/dist/code-editor.js.map +1 -1
  11. package/dist/components/MAbsolute.vue.d.ts +12 -0
  12. package/dist/components/MAlert.vue.d.ts +4 -0
  13. package/dist/components/MAppBar.vue.d.ts +12 -0
  14. package/dist/components/MAppLayout.vue.d.ts +2 -0
  15. package/dist/components/MAspectRatio.vue.d.ts +1 -0
  16. package/dist/components/MAutocomplete.vue.d.ts +18 -0
  17. package/dist/components/MAvatar.vue.d.ts +3 -0
  18. package/dist/components/MBadge.vue.d.ts +6 -0
  19. package/dist/components/MBar.vue.d.ts +5 -0
  20. package/dist/components/MBarcode.vue.d.ts +9 -0
  21. package/dist/components/MBottomSheet.vue.d.ts +3 -0
  22. package/dist/components/MBox.vue.d.ts +8 -2
  23. package/dist/components/MBreadcrumbs.vue.d.ts +2 -0
  24. package/dist/components/MButton.vue.d.ts +14 -4
  25. package/dist/components/MButtonGroup.vue.d.ts +7 -0
  26. package/dist/components/MCalendar.vue.d.ts +8 -0
  27. package/dist/components/MCard.vue.d.ts +17 -0
  28. package/dist/components/MCarousel.vue.d.ts +7 -1
  29. package/dist/components/MCenter.vue.d.ts +1 -0
  30. package/dist/components/MChart.vue.d.ts +7 -0
  31. package/dist/components/MChatBubble.vue.d.ts +10 -0
  32. package/dist/components/MCheckbox.vue.d.ts +5 -0
  33. package/dist/components/MChip.vue.d.ts +9 -0
  34. package/dist/components/MCircleProgressBar.vue.d.ts +7 -0
  35. package/dist/components/MCodeEditor.vue.d.ts +9 -0
  36. package/dist/components/MColorPicker.vue.d.ts +20 -0
  37. package/dist/components/MColorPickerModal.vue.d.ts +16 -0
  38. package/dist/components/MCommandPalette.vue.d.ts +8 -0
  39. package/dist/components/MConfirmDialog.vue.d.ts +7 -0
  40. package/dist/components/MContainer.vue.d.ts +4 -0
  41. package/dist/components/MContextMenu.vue.d.ts +3 -6
  42. package/dist/components/MCopyButton.vue.d.ts +10 -0
  43. package/dist/components/MDataTable.vue.d.ts +33 -12
  44. package/dist/components/MDatePicker.vue.d.ts +16 -0
  45. package/dist/components/MDatePickerModal.vue.d.ts +9 -0
  46. package/dist/components/MDateRangePicker.vue.d.ts +18 -0
  47. package/dist/components/MDateRangePickerModal.vue.d.ts +9 -0
  48. package/dist/components/MDialog.vue.d.ts +9 -7
  49. package/dist/components/MDivider.vue.d.ts +6 -0
  50. package/dist/components/MDragDropList.vue.d.ts +6 -0
  51. package/dist/components/MDragHandle.vue.d.ts +12 -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 +1 -1
  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 +10 -1
  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 +6 -0
  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 +4 -0
  75. package/dist/components/MList.vue.d.ts +7 -0
  76. package/dist/components/MListItem.vue.d.ts +29 -5
  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 +4 -1
  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 +10 -0
  109. package/dist/components/MScrollField.vue.d.ts +40 -0
  110. package/dist/components/MScrollable.vue.d.ts +12 -0
  111. package/dist/components/MSearchBar.vue.d.ts +6 -0
  112. package/dist/components/MSection.vue.d.ts +5 -0
  113. package/dist/components/MSegmentedButton.vue.d.ts +5 -0
  114. package/dist/components/MSelect.vue.d.ts +17 -0
  115. package/dist/components/MShader.vue.d.ts +1 -0
  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 +10 -0
  120. package/dist/components/MSkeleton.vue.d.ts +8 -0
  121. package/dist/components/MSlider.vue.d.ts +14 -0
  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 +6 -2
  126. package/dist/components/MSpotlightSearch.vue.d.ts +18 -0
  127. package/dist/components/MStack.vue.d.ts +7 -0
  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/MSwipeToDismiss.vue.d.ts +49 -0
  133. package/dist/components/MSwitch.vue.d.ts +5 -6
  134. package/dist/components/MTable.vue.d.ts +17 -4
  135. package/dist/components/MTabs.vue.d.ts +6 -0
  136. package/dist/components/MTagInput.vue.d.ts +17 -0
  137. package/dist/components/MTerminal.vue.d.ts +4 -0
  138. package/dist/components/MText.vue.d.ts +10 -0
  139. package/dist/components/MTextField.vue.d.ts +18 -0
  140. package/dist/components/MTimePicker.vue.d.ts +10 -0
  141. package/dist/components/MTimePickerModal.vue.d.ts +5 -0
  142. package/dist/components/MTimeline.vue.d.ts +3 -0
  143. package/dist/components/MTitle.vue.d.ts +4 -0
  144. package/dist/components/MToggleButton.vue.d.ts +4 -0
  145. package/dist/components/MToolbar.vue.d.ts +5 -0
  146. package/dist/components/MTooltip.vue.d.ts +7 -0
  147. package/dist/components/MTopAppBar.vue.d.ts +8 -0
  148. package/dist/components/MTour.vue.d.ts +5 -0
  149. package/dist/components/MTransferList.vue.d.ts +11 -0
  150. package/dist/components/MTransition.vue.d.ts +34 -0
  151. package/dist/components/MTree.vue.d.ts +11 -0
  152. package/dist/components/MTreeTable.vue.d.ts +7 -0
  153. package/dist/components/MVirtualTable.vue.d.ts +6 -0
  154. package/dist/components/MWindow.vue.d.ts +33 -1
  155. package/dist/components/_MColorPanel.vue.d.ts +18 -0
  156. package/dist/composables/_colorUtils.d.ts +34 -0
  157. package/dist/composables/_themeColor.d.ts +1 -0
  158. package/dist/composables/_useSpring.d.ts +15 -0
  159. package/dist/composables/dynamicColor.d.ts +18 -0
  160. package/dist/composables/useColorPalette.d.ts +27 -0
  161. package/dist/composables/useLocale.d.ts +12 -0
  162. package/dist/index.d.ts +9 -1
  163. package/dist/locales/index.js +70 -0
  164. package/dist/locales/index.js.map +1 -1
  165. package/dist/m3ui-vue.css +1 -1
  166. package/dist/m3ui.js +6456 -5273
  167. package/dist/m3ui.js.map +1 -1
  168. package/dist/markdown.js +1 -1
  169. package/dist/markdown.js.map +1 -1
  170. package/dist/material-color-utilities-Cktu8DBU.js +3160 -0
  171. package/dist/material-color-utilities-Cktu8DBU.js.map +1 -0
  172. package/dist/plugin.d.ts +18 -0
  173. package/dist/qrcode.js.map +1 -1
  174. package/dist/rich-text-editor.js +3 -3
  175. package/dist/rich-text-editor.js.map +1 -1
  176. package/dist/styles/palettes.css +546 -0
  177. package/dist/styles/theme.css +77 -0
  178. package/dist/styles.css +1 -1
  179. package/dist/terminal.js.map +1 -1
  180. package/dist/{useLocale-CmI675Ab.js → useLocale-CFW8cIzL.js} +23 -10
  181. package/dist/useLocale-CFW8cIzL.js.map +1 -0
  182. package/package.json +5 -2
  183. package/src/__tests__/MButtonGroup.test.ts +51 -0
  184. package/src/__tests__/MColorPicker.test.ts +141 -0
  185. package/src/__tests__/MDragHandle.test.ts +57 -0
  186. package/src/__tests__/MHotkeys.test.ts +57 -0
  187. package/src/__tests__/MListItemShape.test.ts +76 -0
  188. package/src/__tests__/MScrollField.test.ts +41 -0
  189. package/src/__tests__/MScrollable.test.ts +42 -0
  190. package/src/__tests__/MSwipeToDismiss.test.ts +104 -0
  191. package/src/__tests__/MTransition.test.ts +27 -0
  192. package/src/__tests__/dynamicColor.test.ts +191 -0
  193. package/src/__tests__/hostLocale.test.ts +57 -0
  194. package/src/components/MAbsolute.vue +18 -0
  195. package/src/components/MAlert.vue +12 -0
  196. package/src/components/MAppBar.vue +12 -0
  197. package/src/components/MAppLayout.vue +11 -0
  198. package/src/components/MAspectRatio.vue +6 -0
  199. package/src/components/MAutocomplete.vue +24 -0
  200. package/src/components/MAvatar.vue +12 -1
  201. package/src/components/MBadge.vue +11 -0
  202. package/src/components/MBar.vue +19 -0
  203. package/src/components/MBarcode.vue +14 -0
  204. package/src/components/MBottomSheet.vue +12 -0
  205. package/src/components/MBox.vue +15 -1
  206. package/src/components/MBreadcrumbs.vue +7 -0
  207. package/src/components/MButton.vue +22 -4
  208. package/src/components/MButtonGroup.vue +129 -35
  209. package/src/components/MCalendar.vue +14 -0
  210. package/src/components/MCard.vue +26 -0
  211. package/src/components/MCarousel.vue +17 -1
  212. package/src/components/MCenter.vue +6 -0
  213. package/src/components/MChart.vue +12 -0
  214. package/src/components/MChatBubble.vue +17 -0
  215. package/src/components/MCheckbox.vue +11 -0
  216. package/src/components/MChip.vue +17 -0
  217. package/src/components/MCircleProgressBar.vue +13 -0
  218. package/src/components/MCodeEditor.vue +15 -0
  219. package/src/components/MColorPicker.vue +124 -207
  220. package/src/components/MColorPickerModal.vue +58 -247
  221. package/src/components/MCommandPalette.vue +16 -0
  222. package/src/components/MConfirmDialog.vue +15 -0
  223. package/src/components/MContainer.vue +9 -0
  224. package/src/components/MContextMenu.vue +17 -6
  225. package/src/components/MCopyButton.vue +16 -0
  226. package/src/components/MDataTable.vue +58 -12
  227. package/src/components/MDatePicker.vue +21 -0
  228. package/src/components/MDatePickerModal.vue +16 -0
  229. package/src/components/MDateRangePicker.vue +23 -0
  230. package/src/components/MDateRangePickerModal.vue +16 -0
  231. package/src/components/MDialog.vue +27 -7
  232. package/src/components/MDivider.vue +6 -0
  233. package/src/components/MDragDropList.vue +18 -0
  234. package/src/components/MDragHandle.vue +54 -0
  235. package/src/components/MEmoji.vue +6 -0
  236. package/src/components/MEmojiButton.vue +11 -0
  237. package/src/components/MEmojiSelector.vue +7 -0
  238. package/src/components/MEmptyState.vue +9 -0
  239. package/src/components/MExpansionPanel.vue +17 -0
  240. package/src/components/MExportButton.vue +15 -0
  241. package/src/components/MFab.vue +17 -0
  242. package/src/components/MFabMenu.vue +20 -0
  243. package/src/components/MFileUpload.vue +19 -0
  244. package/src/components/MFixed.vue +16 -0
  245. package/src/components/MFlex.vue +11 -0
  246. package/src/components/MFooter.vue +11 -0
  247. package/src/components/MFullscreen.vue +8 -0
  248. package/src/components/MGrid.vue +12 -0
  249. package/src/components/MHotkeys.vue +20 -13
  250. package/src/components/MIcon.vue +10 -1
  251. package/src/components/MIconButton.vue +13 -0
  252. package/src/components/MInfiniteScroll.vue +16 -0
  253. package/src/components/MJsonEditor.vue +13 -0
  254. package/src/components/MJsonViewer.vue +7 -0
  255. package/src/components/MKanban.vue +18 -0
  256. package/src/components/MKbd.vue +6 -0
  257. package/src/components/MLightbox.vue +16 -0
  258. package/src/components/MList.vue +48 -3
  259. package/src/components/MListDetail.vue +11 -0
  260. package/src/components/MListItem.vue +112 -5
  261. package/src/components/MListSubheader.vue +6 -0
  262. package/src/components/MLoadingIndicator.vue +15 -0
  263. package/src/components/MLoadingOverlay.vue +12 -0
  264. package/src/components/MMarkdown.vue +7 -0
  265. package/src/components/MMaskField.vue +21 -0
  266. package/src/components/MMasonry.vue +11 -0
  267. package/src/components/MMenu.vue +16 -6
  268. package/src/components/MMenuDivider.vue +4 -0
  269. package/src/components/MMenuItem.vue +16 -0
  270. package/src/components/MMultiAutocomplete.vue +26 -0
  271. package/src/components/MMultiSelect.vue +27 -0
  272. package/src/components/MNavigationBar.vue +7 -0
  273. package/src/components/MNavigationDrawer.vue +25 -0
  274. package/src/components/MNavigationRail.vue +24 -6
  275. package/src/components/MNavigationSuite.vue +20 -3
  276. package/src/components/MNotificationHost.vue +3 -0
  277. package/src/components/MNumberField.vue +24 -0
  278. package/src/components/MOverlay.vue +10 -0
  279. package/src/components/MPageProgress.vue +7 -0
  280. package/src/components/MPagination.vue +15 -1
  281. package/src/components/MPasswordMeter.vue +7 -0
  282. package/src/components/MPinInput.vue +19 -0
  283. package/src/components/MProgressBar.vue +9 -0
  284. package/src/components/MPullToRefresh.vue +17 -0
  285. package/src/components/MQRCode.vue +12 -0
  286. package/src/components/MRadio.vue +11 -0
  287. package/src/components/MRadioGroup.vue +11 -0
  288. package/src/components/MRating.vue +19 -0
  289. package/src/components/MRelative.vue +8 -0
  290. package/src/components/MRelativeTime.vue +6 -0
  291. package/src/components/MResponsive.vue +9 -0
  292. package/src/components/MResult.vue +14 -0
  293. package/src/components/MRichTextEditor.vue +14 -0
  294. package/src/components/MScheduler.vue +21 -0
  295. package/src/components/MScrollField.vue +302 -0
  296. package/src/components/MScrollable.vue +167 -4
  297. package/src/components/MSearchBar.vue +17 -0
  298. package/src/components/MSection.vue +13 -0
  299. package/src/components/MSegmentedButton.vue +10 -0
  300. package/src/components/MSelect.vue +22 -0
  301. package/src/components/MShader.vue +13 -0
  302. package/src/components/MShape.vue +6 -0
  303. package/src/components/MShortNavigationBar.vue +23 -9
  304. package/src/components/MSideSheet.vue +13 -0
  305. package/src/components/MSignaturePad.vue +15 -0
  306. package/src/components/MSimpleCarousel.vue +18 -0
  307. package/src/components/MSkeleton.vue +8 -0
  308. package/src/components/MSlider.vue +21 -0
  309. package/src/components/MSnackbar.vue +5 -0
  310. package/src/components/MSpacer.vue +6 -0
  311. package/src/components/MSpinner.vue +10 -0
  312. package/src/components/MSplitButton.vue +14 -0
  313. package/src/components/MSplitter.vue +42 -9
  314. package/src/components/MSpotlightSearch.vue +27 -0
  315. package/src/components/MStack.vue +12 -0
  316. package/src/components/MStatCard.vue +13 -0
  317. package/src/components/MStepper.vue +12 -0
  318. package/src/components/MSticky.vue +7 -0
  319. package/src/components/MSubtitle.vue +9 -0
  320. package/src/components/MSupportingPane.vue +10 -0
  321. package/src/components/MSwipeToDismiss.vue +247 -0
  322. package/src/components/MSwitch.vue +14 -6
  323. package/src/components/MTable.vue +33 -4
  324. package/src/components/MTabs.vue +12 -0
  325. package/src/components/MTagInput.vue +23 -0
  326. package/src/components/MTerminal.vue +11 -0
  327. package/src/components/MText.vue +15 -0
  328. package/src/components/MTextField.vue +26 -0
  329. package/src/components/MTimePicker.vue +15 -0
  330. package/src/components/MTimePickerModal.vue +12 -0
  331. package/src/components/MTimeline.vue +7 -0
  332. package/src/components/MTitle.vue +9 -0
  333. package/src/components/MToggleButton.vue +12 -0
  334. package/src/components/MToolbar.vue +12 -0
  335. package/src/components/MTooltip.vue +15 -0
  336. package/src/components/MTopAppBar.vue +18 -0
  337. package/src/components/MTour.vue +13 -0
  338. package/src/components/MTransferList.vue +24 -0
  339. package/src/components/MTransition.vue +149 -0
  340. package/src/components/MTree.vue +11 -0
  341. package/src/components/MTreeTable.vue +15 -0
  342. package/src/components/MVirtualTable.vue +12 -0
  343. package/src/components/MWindow.vue +34 -0
  344. package/src/components/_MColorPanel.vue +478 -0
  345. package/src/composables/_colorUtils.ts +107 -0
  346. package/src/composables/_themeColor.ts +33 -0
  347. package/src/composables/_useSpring.ts +89 -0
  348. package/src/composables/dynamicColor.ts +85 -0
  349. package/src/composables/useColorPalette.ts +171 -25
  350. package/src/composables/useFieldBg.ts +6 -0
  351. package/src/composables/useLocale.ts +38 -3
  352. package/src/index.ts +9 -1
  353. package/src/locales/de.ts +10 -0
  354. package/src/locales/es.ts +10 -0
  355. package/src/locales/fr.ts +10 -0
  356. package/src/locales/ja.ts +10 -0
  357. package/src/locales/ko.ts +10 -0
  358. package/src/locales/pt.ts +10 -0
  359. package/src/locales/zh.ts +10 -0
  360. package/src/plugin.ts +30 -8
  361. package/src/styles/palettes.css +546 -0
  362. package/src/styles/theme.css +77 -0
  363. package/dist/MTextField-B0wGv1Mx.js.map +0 -1
  364. package/dist/useLocale-CmI675Ab.js.map +0 -1
@@ -1,11 +1,21 @@
1
1
  export type TextVariant = 'display-large' | 'display-medium' | 'display-small' | 'headline-large' | 'headline-medium' | 'headline-small' | 'title-large' | 'title-medium' | 'title-small' | 'body-large' | 'body-medium' | 'body-small' | 'label-large' | 'label-medium' | 'label-small';
2
2
  type __VLS_Props = {
3
+ /** Typography variant from the Material 3 type scale */
3
4
  variant?: TextVariant;
5
+ /**
6
+ * HTML tag to render (auto-selected based on variant — h1/h2/h3 for display/headline, p for title/body,
7
+ * span for label)
8
+ */
4
9
  tag?: string;
10
+ /** Text color */
5
11
  color?: 'on-surface' | 'on-surface-variant' | 'primary' | 'secondary' | 'tertiary' | 'error' | 'inherit';
12
+ /** Text alignment */
6
13
  align?: 'left' | 'center' | 'right';
14
+ /** Truncate text with ellipsis on overflow */
7
15
  truncate?: boolean;
16
+ /** Clamp text to a specific number of lines */
8
17
  lines?: 1 | 2 | 3 | 4 | 5 | 6;
18
+ /** Font weight override */
9
19
  weight?: 'regular' | 'medium' | 'bold';
10
20
  };
11
21
  declare var __VLS_8: {};
@@ -1,19 +1,37 @@
1
1
  type __VLS_Props = {
2
+ /** Bound value (v-model) */
2
3
  modelValue: string | number;
4
+ /** Field label */
3
5
  label: string;
6
+ /** HTML input type */
4
7
  type?: string;
8
+ /** Visual style */
5
9
  variant?: "filled" | "outlined";
10
+ /** Puts the field in error state (red border and label) */
6
11
  error?: boolean;
12
+ /** Error message shown below the field (only visible when error is true) */
7
13
  errorLabel?: string;
14
+ /** Hint text shown below the field */
8
15
  hint?: string;
16
+ /** Disables the field */
9
17
  disabled?: boolean;
18
+ /** Marks as required — adds a red asterisk after the label */
10
19
  required?: boolean;
20
+ /** Renders a textarea instead of an input */
11
21
  multiline?: boolean;
22
+ /** Textarea rows (when multiline) */
12
23
  rows?: number;
24
+ /** Passed through to the native autocomplete attribute */
13
25
  autocomplete?: string;
26
+ /** Material Symbol shown before the input */
14
27
  leadingIcon?: string;
28
+ /** Show a clear button when the field has a value */
15
29
  clearable?: boolean;
30
+ /**
31
+ * Overrides the auto-detected background color used to cut the floating label out of the outlined border
32
+ */
16
33
  fieldBg?: string;
34
+ /** Delay (ms) before firing the @debounced event. v-model always updates immediately */
17
35
  debounce?: number;
18
36
  };
19
37
  declare var __VLS_6: {};
@@ -1,13 +1,23 @@
1
1
  type __VLS_Props = {
2
+ /** Selected time (HH:MM, v-model) */
2
3
  modelValue: string | null;
4
+ /** Field label */
3
5
  label?: string;
6
+ /** Placeholder shown when no time is selected — falls back to label, then the current locale's string */
4
7
  placeholder?: string;
8
+ /** Disables the picker */
5
9
  disabled?: boolean;
10
+ /** Error state */
6
11
  error?: boolean;
12
+ /** Error message shown when error is true */
7
13
  errorLabel?: string;
14
+ /** Hint text below the field */
8
15
  hint?: string;
16
+ /** Minute increment step */
9
17
  minuteStep?: number;
18
+ /** Use 24-hour format */
10
19
  use24h?: boolean;
20
+ /** Overrides the auto-detected background color used to cut the floating label out of the border */
11
21
  fieldBg?: string;
12
22
  };
13
23
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1,8 +1,13 @@
1
1
  type __VLS_Props = {
2
+ /** Selected time in HH:MM format (v-model) */
2
3
  modelValue: string | null;
4
+ /** Controls dialog visibility (v-model:show) */
3
5
  show?: boolean;
6
+ /** Use 24-hour format (shows inner ring 13-23) */
4
7
  use24h?: boolean;
8
+ /** Minute increment step */
5
9
  minuteStep?: number;
10
+ /** Dialog title */
6
11
  title?: string;
7
12
  };
8
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -7,8 +7,11 @@ export interface TimelineItem {
7
7
  dotColor?: string;
8
8
  }
9
9
  type __VLS_Props = {
10
+ /** Array of timeline entries — required */
10
11
  items: TimelineItem[];
12
+ /** Compact spacing between items */
11
13
  dense?: boolean;
14
+ /** Alternate items left/right of a central line instead of a single left-aligned column */
12
15
  alternating?: boolean;
13
16
  };
14
17
  declare var __VLS_7: `item-${number}`, __VLS_8: {
@@ -1,7 +1,11 @@
1
1
  type __VLS_Props = {
2
+ /** Title size (maps to headline-large/medium/small) */
2
3
  size?: 'large' | 'medium' | 'small';
4
+ /** Text color */
3
5
  color?: 'on-surface' | 'on-surface-variant' | 'primary' | 'secondary' | 'tertiary' | 'error' | 'inherit';
6
+ /** Text alignment */
4
7
  align?: 'left' | 'center' | 'right';
8
+ /** Truncate text with ellipsis on overflow */
5
9
  truncate?: boolean;
6
10
  };
7
11
  declare var __VLS_8: {};
@@ -1,9 +1,13 @@
1
1
  type __VLS_Props = {
2
2
  /** Whether the toggle button is checked/selected — v-model. */
3
3
  checked: boolean;
4
+ /** Visual style, matching MButton's naming */
4
5
  variant?: 'filled' | 'tonal' | 'outlined' | 'elevated';
6
+ /** Disables interaction */
5
7
  disabled?: boolean;
8
+ /** Material Symbol icon name shown before the label */
6
9
  icon?: string;
10
+ /** Same 5-tier expressive sizing as MButton */
7
11
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
8
12
  };
9
13
  declare var __VLS_6: {};
@@ -1,8 +1,13 @@
1
1
  type __VLS_Props = {
2
+ /** Docked (edge-attached, full width/height, bordered) or floating (rounded pill with shadow) */
2
3
  variant?: 'docked' | 'floating';
4
+ /** Layout direction */
3
5
  orientation?: 'horizontal' | 'vertical';
6
+ /** Background color scheme */
4
7
  color?: 'surface' | 'primary' | 'secondary' | 'tertiary';
8
+ /** Where the #fab slot renders relative to the toolbar body */
5
9
  fabPosition?: 'start' | 'end' | 'none';
10
+ /** Item alignment along the main axis */
6
11
  align?: 'start' | 'center' | 'end' | 'between';
7
12
  };
8
13
  declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
@@ -1,7 +1,14 @@
1
1
  type __VLS_Props = {
2
+ /** Tooltip text (plain variant), or the rich variant's title line */
2
3
  text?: string;
4
+ /** Tooltip position relative to the trigger */
3
5
  placement?: 'top' | 'bottom' | 'left' | 'right';
6
+ /** Show delay in ms after hover/focus */
4
7
  delay?: number;
8
+ /**
9
+ * Rich tooltip with a #content slot and optional #actions. Stays open when hovering the tooltip itself
10
+ * instead of closing immediately.
11
+ */
5
12
  rich?: boolean;
6
13
  };
7
14
  declare var __VLS_1: {}, __VLS_15: {}, __VLS_17: {};
@@ -1,12 +1,20 @@
1
1
  type __VLS_Props = {
2
+ /** App bar title */
2
3
  title?: string;
4
+ /** 64dp small/center-aligned row, or a 112dp medium / 152dp large two-row layout with the title below */
3
5
  variant?: 'center' | 'small' | 'medium' | 'large';
6
+ /** Leading icon (e.g. menu, arrow_back) */
4
7
  navigationIcon?: string;
5
8
  /** Accessible label for the navigation icon button — defaults to the
6
9
  * locale's generic "Menu" label; override when navigationIcon is
7
10
  * actually a back arrow rather than a drawer toggle. */
8
11
  navigationLabel?: string;
12
+ /**
13
+ * Swaps both container color (surface → surface-container) and elevation (level 0 → level 2), matching the
14
+ * real M3 on-scroll container tokens rather than just adding a shadow
15
+ */
9
16
  elevated?: boolean;
17
+ /** Add a bottom border (border-outline-variant) */
10
18
  bordered?: boolean;
11
19
  };
12
20
  declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
@@ -5,10 +5,15 @@ export interface TourStep {
5
5
  placement?: 'top' | 'bottom' | 'left' | 'right';
6
6
  }
7
7
  type __VLS_Props = {
8
+ /** Show/hide the tour (v-model) */
8
9
  modelValue: boolean;
10
+ /** Ordered list of steps; see `TourStep` */
9
11
  steps: TourStep[];
12
+ /** Label for the Previous button (defaults to the locale string, 'Previous') */
10
13
  prevLabel?: string;
14
+ /** Label for the Next button (defaults to the locale string, 'Next') */
11
15
  nextLabel?: string;
16
+ /** Label for the final step's button (defaults to the locale string, 'Finish') */
12
17
  finishLabel?: string;
13
18
  };
14
19
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -9,16 +9,27 @@ declare const _default: typeof __VLS_export;
9
9
  export default _default;
10
10
  declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
11
11
  props: import("vue").PublicProps & __VLS_PrettifyLocal<{
12
+ /** Values in the target (right or bottom) pane (v-model) */
12
13
  modelValue: (string | number)[];
14
+ /** Full list of items; see `TransferItem` (or your own type extending it) */
13
15
  items: T[];
16
+ /** Source pane title (defaults to the locale string) */
14
17
  sourceTitle?: string;
18
+ /** Target pane title (defaults to the locale string) */
15
19
  targetTitle?: string;
20
+ /** Show a search field in each pane. It matches the label and the description */
16
21
  filterable?: boolean;
22
+ /** Search field placeholder (defaults to the locale string) */
17
23
  searchPlaceholder?: string;
24
+ /** Text when a pane is empty (defaults to the locale string) */
18
25
  emptyText?: string;
26
+ /** Aria label for the move-all-right button (defaults to the locale string) */
19
27
  moveAllRightLabel?: string;
28
+ /** Aria label for the move-selected-right button (defaults to the locale string) */
20
29
  moveRightLabel?: string;
30
+ /** Aria label for the move-selected-left button (defaults to the locale string) */
21
31
  moveLeftLabel?: string;
32
+ /** Aria label for the move-all-left button (defaults to the locale string) */
22
33
  moveAllLeftLabel?: string;
23
34
  /** Height of each list's scroll area (any CSS length). */
24
35
  listHeight?: string;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * M3's navigation transitions between two views (a port of Compose's `MaterialTransitions`): `shared-axis`
3
+ * slides the new view in from the side as the old one slides out (use `reverse` when going back), and
4
+ * `fade-through` fades the old view out and the new one in with a slight scale, for destinations without a
5
+ * spatial relationship such as navigation bar tabs. Wrap content that changes its `key` (or a `v-if`/`v-else`
6
+ * pair, or a `<RouterView>` slot's component); both views overlap while they animate.
7
+ *
8
+ * @slot default The current view; give it a `key` that changes with it
9
+ */
10
+ type __VLS_Props = {
11
+ /** `shared-axis` (horizontal, for forward/back navigation) or `fade-through` (unrelated destinations) */
12
+ type?: 'shared-axis' | 'fade-through';
13
+ /** Shared axis: play the backward transition (the new view comes from the start side) */
14
+ reverse?: boolean;
15
+ /** Animate the first view too */
16
+ appear?: boolean;
17
+ };
18
+ declare var __VLS_12: {};
19
+ type __VLS_Slots = {} & {
20
+ default?: (props: typeof __VLS_12) => any;
21
+ };
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ reverse: boolean;
24
+ type: "shared-axis" | "fade-through";
25
+ appear: boolean;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -1,3 +1,12 @@
1
+ /**
2
+ * A hierarchical tree view with expand/collapse, single-node selection, and optional cascading checkbox
3
+ * selection.
4
+ *
5
+ * @event update:selected Fires when a node is clicked, toggling selection (clicking the already-selected node
6
+ * clears it)
7
+ * @event update:checked Fires when a checkbox toggles a node (checkable mode)
8
+ * @event node-click Fires whenever a node row is clicked, alongside update:selected
9
+ */
1
10
  import { type Ref } from 'vue';
2
11
  export interface TreeNode {
3
12
  id: string | number;
@@ -20,6 +29,7 @@ export interface TreeContext {
20
29
  getLeafIds: (node: TreeNode) => (string | number)[];
21
30
  }
22
31
  type __VLS_Props = {
32
+ /** Root nodes to render — required */
23
33
  nodes: TreeNode[];
24
34
  /** Currently selected node id (single-select). */
25
35
  selected?: string | number | null;
@@ -32,6 +42,7 @@ type __VLS_Props = {
32
42
  * 'all' | 'none' | array of ids (default: 'none').
33
43
  */
34
44
  defaultExpanded?: (string | number)[] | 'all' | 'none';
45
+ /** Text shown when nodes is empty. Falls back to the app's configured locale's noItems string */
35
46
  emptyText?: string;
36
47
  };
37
48
  declare function expandAll(): void;
@@ -9,12 +9,19 @@ export interface TreeTableRow {
9
9
  children?: TreeTableRow[];
10
10
  }
11
11
  type __VLS_Props = {
12
+ /** Column definitions; see `TreeTableColumn` */
12
13
  columns: TreeTableColumn[];
14
+ /** Hierarchical rows with an optional children array; see `TreeTableRow` */
13
15
  rows: TreeTableRow[];
16
+ /** Unique key field */
14
17
  rowKey?: string;
18
+ /** Expand all nodes with children by default */
15
19
  defaultExpanded?: boolean;
20
+ /** Indentation per depth level, in px */
16
21
  indent?: number;
22
+ /** Compact row height */
17
23
  dense?: boolean;
24
+ /** Text shown when rows is empty. Falls back to the app's configured locale's noResults string */
18
25
  emptyText?: string;
19
26
  };
20
27
  declare function expandAll(): void;
@@ -6,11 +6,17 @@ export interface VTableColumn {
6
6
  sortable?: boolean;
7
7
  }
8
8
  type __VLS_Props = {
9
+ /** Column definitions; see `VTableColumn` */
9
10
  columns: VTableColumn[];
11
+ /** All rows — the full array is held in memory, only visible rows are rendered to the DOM */
10
12
  rows: Record<string, any>[];
13
+ /** Fixed row height in px, used for the virtualization math */
11
14
  rowHeight?: number;
15
+ /** Unique key field */
12
16
  rowKey?: string;
17
+ /** Extra rows rendered above/below the visible viewport, to reduce blank flashes on fast scroll */
13
18
  overscan?: number;
19
+ /** Scrollable container height (any valid CSS height) */
14
20
  maxHeight?: string;
15
21
  };
16
22
  declare var __VLS_17: `cell-${string}`, __VLS_18: {
@@ -1,18 +1,31 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
3
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
4
+ /** Visible state (v-model) */
4
5
  modelValue: boolean;
6
+ /** Window title in the title bar */
5
7
  title?: string;
8
+ /** Material Symbol icon in the title bar */
6
9
  icon?: string;
10
+ /** Initial width */
7
11
  width?: string;
12
+ /** Initial height */
8
13
  height?: string;
14
+ /** Minimum width in px */
9
15
  minWidth?: number;
16
+ /** Minimum height in px */
10
17
  minHeight?: number;
18
+ /** Maximum width in px */
11
19
  maxWidth?: number;
20
+ /** Maximum height in px */
12
21
  maxHeight?: number;
22
+ /** Allow resizing from edges and corners */
13
23
  resizable?: boolean;
24
+ /** Allow dragging from the title bar */
14
25
  draggable?: boolean;
26
+ /** Show close button */
15
27
  closable?: boolean;
28
+ /** Show minimize button (collapses to title bar) */
16
29
  minimizable?: boolean;
17
30
  /** Maximize button, and double-click on the title bar, to fill the parent and back. */
18
31
  maximizable?: boolean;
@@ -27,8 +40,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
27
40
  * The container should clip it (`overflow: hidden`).
28
41
  */
29
42
  offscreen?: boolean;
43
+ /** Initial X position */
30
44
  x?: number;
45
+ /** Initial Y position */
31
46
  y?: number;
47
+ /** Reset position, size, and state when the window is closed */
32
48
  resetPosition?: boolean;
33
49
  }, {
34
50
  /** Brings the window to the front, e.g. from a taskbar. */
@@ -42,18 +58,31 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
42
58
  minimize: () => any;
43
59
  maximize: (maximized: boolean) => any;
44
60
  }, string, import("vue").PublicProps, Readonly<{
61
+ /** Visible state (v-model) */
45
62
  modelValue: boolean;
63
+ /** Window title in the title bar */
46
64
  title?: string;
65
+ /** Material Symbol icon in the title bar */
47
66
  icon?: string;
67
+ /** Initial width */
48
68
  width?: string;
69
+ /** Initial height */
49
70
  height?: string;
71
+ /** Minimum width in px */
50
72
  minWidth?: number;
73
+ /** Minimum height in px */
51
74
  minHeight?: number;
75
+ /** Maximum width in px */
52
76
  maxWidth?: number;
77
+ /** Maximum height in px */
53
78
  maxHeight?: number;
79
+ /** Allow resizing from edges and corners */
54
80
  resizable?: boolean;
81
+ /** Allow dragging from the title bar */
55
82
  draggable?: boolean;
83
+ /** Show close button */
56
84
  closable?: boolean;
85
+ /** Show minimize button (collapses to title bar) */
57
86
  minimizable?: boolean;
58
87
  /** Maximize button, and double-click on the title bar, to fill the parent and back. */
59
88
  maximizable?: boolean;
@@ -68,8 +97,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
68
97
  * The container should clip it (`overflow: hidden`).
69
98
  */
70
99
  offscreen?: boolean;
100
+ /** Initial X position */
71
101
  x?: number;
102
+ /** Initial Y position */
72
103
  y?: number;
104
+ /** Reset position, size, and state when the window is closed */
73
105
  resetPosition?: boolean;
74
106
  }> & Readonly<{
75
107
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -88,8 +120,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
88
120
  maximizable: boolean;
89
121
  draggable: boolean;
90
122
  minWidth: number;
91
- resizable: boolean;
92
123
  snap: boolean;
124
+ resizable: boolean;
93
125
  offscreen: boolean;
94
126
  resetPosition: boolean;
95
127
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ modelValue: string;
3
+ presets: string[];
4
+ alpha: boolean;
5
+ recent: boolean;
6
+ eyedropper: boolean;
7
+ /** Shown as the left half of the preview, click to restore */
8
+ original?: string;
9
+ };
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
11
+ focus: () => void | undefined;
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (args_0: string) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
@@ -0,0 +1,34 @@
1
+ export interface Rgba {
2
+ r: number;
3
+ g: number;
4
+ b: number;
5
+ a: number;
6
+ }
7
+ /** h 0–360, s/v 0–100 */
8
+ export interface Hsv {
9
+ h: number;
10
+ s: number;
11
+ v: number;
12
+ }
13
+ /** h 0–360, s/l 0–100 */
14
+ export interface Hsl {
15
+ h: number;
16
+ s: number;
17
+ l: number;
18
+ }
19
+ /** Parses `#rgb`, `#rgba`, `#rrggbb` or `#rrggbbaa` (the `#` is optional). r/g/b 0–255, a 0–1. */
20
+ export declare function parseHex(input: string): Rgba | null;
21
+ /** `#rrggbb`, or `#rrggbbaa` when a < 1. Lowercase. */
22
+ export declare function toHex({ r, g, b, a }: Rgba): string;
23
+ /** Lowercase canonical form of a hex string, or '' when it isn't one. */
24
+ export declare function normalizeHex(input: string): string;
25
+ export declare function rgbToHsv({ r, g, b }: Rgba): Hsv;
26
+ export declare function hsvToRgb({ h, s, v }: Hsv, a?: number): Rgba;
27
+ export declare function hsvToHsl({ h, s, v }: Hsv): Hsl;
28
+ export declare function hslToHsv({ h, s, l }: Hsl): Hsv;
29
+ /** Black or white, whichever reads better on the color (WCAG relative luminance). */
30
+ export declare function inkFor(hex: string): '#000000' | '#ffffff';
31
+ export declare const recentColors: import("vue").Ref<string[], string[]>;
32
+ export declare function pushRecentColor(hex: string, limit: number): void;
33
+ /** Default swatches for both pickers: the Material 2014 palette's 500 tones plus grey, black and white (3 rows of 7) */
34
+ export declare const defaultColorPresets: string[];
@@ -0,0 +1 @@
1
+ export declare function syncThemeColor(role: string): void;
@@ -0,0 +1,15 @@
1
+ export interface SpringSpec {
2
+ dampingRatio: number;
3
+ stiffness: number;
4
+ }
5
+ /** MotionSchemeKeyTokens.FastSpatial in the Standard scheme (StandardMotionTokens.SpringFastSpatial*) */
6
+ export declare const FAST_SPATIAL: SpringSpec;
7
+ /** MotionSchemeKeyTokens.DefaultEffects in the Standard scheme */
8
+ export declare const DEFAULT_EFFECTS: SpringSpec;
9
+ /** MotionSchemeKeyTokens.DefaultSpatial in the Standard scheme */
10
+ export declare const DEFAULT_SPATIAL: SpringSpec;
11
+ export declare function useSpring(target: () => number[], apply: (values: readonly number[]) => void, spec?: SpringSpec): {
12
+ snap: () => void;
13
+ };
14
+ /** Compose's FastOutSlowInEasing, cubic-bezier(0.4, 0, 0.2, 1) — the easing of a default tween() */
15
+ export declare function fastOutSlowIn(t: number): number;
@@ -0,0 +1,18 @@
1
+ export type SchemeVariant = 'tonal-spot' | 'expressive' | 'vibrant' | 'fidelity' | 'content' | 'neutral' | 'monochrome' | 'rainbow' | 'fruit-salad';
2
+ export interface SeedOptions {
3
+ /** How the seed spreads into the scheme. `tonal-spot` is Android's default (calm, seed-led). */
4
+ variant?: SchemeVariant;
5
+ /** Contrast level: 0 standard, 0.5 medium, 1 high (-1 reduced). */
6
+ contrast?: number;
7
+ }
8
+ /** Token name (as in `--color-<name>`) → hex, for each scheme. */
9
+ export interface GeneratedScheme {
10
+ light: Record<string, string>;
11
+ dark: Record<string, string>;
12
+ }
13
+ /** The `--color-*` roles a generated scheme sets. `success*` is a library extension and stays as themed. */
14
+ export declare const schemeRoles: readonly ["primary", "on-primary", "primary-container", "on-primary-container", "secondary", "on-secondary", "secondary-container", "on-secondary-container", "tertiary", "on-tertiary", "tertiary-container", "on-tertiary-container", "error", "on-error", "error-container", "on-error-container", "background", "on-background", "surface", "on-surface", "surface-variant", "on-surface-variant", "surface-dim", "surface-bright", "surface-container-lowest", "surface-container-low", "surface-container", "surface-container-high", "surface-container-highest", "outline", "outline-variant", "inverse-surface", "inverse-on-surface", "inverse-primary", "scrim", "shadow", "primary-fixed", "primary-fixed-dim", "on-primary-fixed", "on-primary-fixed-variant", "secondary-fixed", "secondary-fixed-dim", "on-secondary-fixed", "on-secondary-fixed-variant", "tertiary-fixed", "tertiary-fixed-dim", "on-tertiary-fixed", "on-tertiary-fixed-variant"];
15
+ /** Generates the light and dark schemes for a seed color (`#rrggbb`). */
16
+ export declare function generateScheme(seed: string, options?: SeedOptions): Promise<GeneratedScheme>;
17
+ /** CSS for a scheme under `[data-palette='<id>']` (light) and `[data-palette='<id>'].dark`, like palettes.css. */
18
+ export declare function schemeToCss(scheme: GeneratedScheme, id: string): string;
@@ -1,13 +1,33 @@
1
+ import { type SeedOptions } from './dynamicColor';
1
2
  export interface Palette {
2
3
  id: string;
3
4
  label: string;
5
+ /**
6
+ * The palette's key color. A custom palette (`createM3UI({ customPalettes })`) with no CSS of its own gets its
7
+ * scheme generated from it; one with `[data-palette='<id>']` rules keeps them.
8
+ */
4
9
  seed: string;
5
10
  }
6
11
  export declare const palettes: Palette[];
12
+ /** The palette id used while a seed color is active (`useColorPalette().setSeed()`). */
13
+ export declare const SEED_PALETTE = "seed";
14
+ export interface ActiveSeed extends SeedOptions {
15
+ seed: string;
16
+ }
7
17
  export declare function useColorPalette(): {
8
18
  palette: import("vue").Ref<string, string>;
9
19
  palettes: Palette[];
10
20
  set: (id: string) => void;
21
+ seed: Readonly<import("vue").Ref<{
22
+ readonly seed: string;
23
+ readonly variant?: import("./dynamicColor").SchemeVariant | undefined;
24
+ readonly contrast?: number | undefined;
25
+ } | null, {
26
+ readonly seed: string;
27
+ readonly variant?: import("./dynamicColor").SchemeVariant | undefined;
28
+ readonly contrast?: number | undefined;
29
+ } | null>>;
30
+ setSeed: (seed: string, options?: SeedOptions) => Promise<void>;
11
31
  persistPalette: import("vue").Ref<boolean, boolean>;
12
32
  setPersistPalette: (enabled: boolean) => void;
13
33
  };
@@ -18,3 +38,10 @@ export declare function useColorPalette(): {
18
38
  * Not exported from the package's public entry points.
19
39
  */
20
40
  export declare function __forcePalette(id: string, persist: boolean): void;
41
+ /**
42
+ * Internal: `createM3UI({ palette })`'s first-visit default. Sets `current` too, so a later `useColorPalette()`
43
+ * doesn't write its stale initial value back over it.
44
+ */
45
+ export declare function __defaultPalette(id: string): void;
46
+ /** Internal: `createM3UI({ seed })`. */
47
+ export declare function __defaultSeed(seed: string, options: SeedOptions | undefined, persist: boolean): Promise<void>;
@@ -31,6 +31,16 @@ export interface M3Locale {
31
31
  pickEnd: string;
32
32
  previousMonth: string;
33
33
  nextMonth: string;
34
+ selectColor: string;
35
+ colorHue: string;
36
+ colorSaturation: string;
37
+ colorBrightness: string;
38
+ colorAlpha: string;
39
+ colorEyedropper: string;
40
+ colorOriginal: string;
41
+ colorFormat: string;
42
+ colorRecent: string;
43
+ colorPresets: string;
34
44
  dayView: string;
35
45
  weekView: string;
36
46
  allDay: string;
@@ -130,4 +140,6 @@ export interface M3Locale {
130
140
  }
131
141
  export declare const defaultLocale: M3Locale;
132
142
  export declare const M3_LOCALE_KEY: InjectionKey<MaybeRef<Partial<M3Locale>>>;
143
+ /** @internal Called by `createM3UI()`; not exported from the package. */
144
+ export declare function __setAppLocale(locale: MaybeRef<Partial<M3Locale>> | null): void;
133
145
  export declare function useLocale(): M3Locale;
package/dist/index.d.ts CHANGED
@@ -3,7 +3,10 @@ export type { M3UIOptions } from './plugin';
3
3
  export { useTheme } from './composables/useTheme';
4
4
  export type { Theme } from './composables/useTheme';
5
5
  export { useColorPalette, palettes } from './composables/useColorPalette';
6
- export type { Palette } from './composables/useColorPalette';
6
+ export type { Palette, ActiveSeed } from './composables/useColorPalette';
7
+ export { SEED_PALETTE } from './composables/useColorPalette';
8
+ export { generateScheme, schemeToCss, schemeRoles } from './composables/dynamicColor';
9
+ export type { SchemeVariant, SeedOptions, GeneratedScheme } from './composables/dynamicColor';
7
10
  export { useToast } from './composables/useToast';
8
11
  export type { Toast, ToastVariant, ToastPosition, ToastAction, ToastOptions } from './composables/useToast';
9
12
  export { useFieldBg } from './composables/useFieldBg';
@@ -53,6 +56,7 @@ export { default as MDateRangePicker } from './components/MDateRangePicker.vue';
53
56
  export { default as MDateRangePickerModal } from './components/MDateRangePickerModal.vue';
54
57
  export { default as MDialog } from './components/MDialog.vue';
55
58
  export { default as MDivider } from './components/MDivider.vue';
59
+ export { default as MDragHandle } from './components/MDragHandle.vue';
56
60
  export { default as MDragDropList } from './components/MDragDropList.vue';
57
61
  export { default as MEmoji } from './components/MEmoji.vue';
58
62
  export { default as MEmojiButton } from './components/MEmojiButton.vue';
@@ -120,6 +124,7 @@ export { default as MScrollable } from './components/MScrollable.vue';
120
124
  export { default as MSearchBar } from './components/MSearchBar.vue';
121
125
  export { default as MSection } from './components/MSection.vue';
122
126
  export { default as MSegmentedButton } from './components/MSegmentedButton.vue';
127
+ export { default as MScrollField } from './components/MScrollField.vue';
123
128
  export { default as MSelect } from './components/MSelect.vue';
124
129
  export type { SelectOption } from './components/MSelect.vue';
125
130
  export { default as MShader } from './components/MShader.vue';
@@ -146,6 +151,8 @@ export { default as MStatCard } from './components/MStatCard.vue';
146
151
  export { default as MStepper } from './components/MStepper.vue';
147
152
  export { default as MSticky } from './components/MSticky.vue';
148
153
  export { default as MSubtitle } from './components/MSubtitle.vue';
154
+ export { default as MSwipeToDismiss } from './components/MSwipeToDismiss.vue';
155
+ export type { SwipeToDismissValue } from './components/MSwipeToDismiss.vue';
149
156
  export { default as MSwitch } from './components/MSwitch.vue';
150
157
  export { default as MTable } from './components/MTable.vue';
151
158
  export { default as MTagInput } from './components/MTagInput.vue';
@@ -163,6 +170,7 @@ export { default as MTopAppBar } from './components/MTopAppBar.vue';
163
170
  export { default as MTour } from './components/MTour.vue';
164
171
  export { default as MTransferList } from './components/MTransferList.vue';
165
172
  export { default as MTree } from './components/MTree.vue';
173
+ export { default as MTransition } from './components/MTransition.vue';
166
174
  export { default as MTreeTable } from './components/MTreeTable.vue';
167
175
  export { default as MVirtualTable } from './components/MVirtualTable.vue';
168
176
  export { default as MWindow } from './components/MWindow.vue';