morya-ui 0.4.4 → 0.4.5

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 (322) hide show
  1. package/CHANGELOG.md +811 -775
  2. package/LICENSE +21 -21
  3. package/README.md +156 -156
  4. package/README.zh-CN.md +156 -156
  5. package/dist/{Button-Bjsth0ct.js → Button-fKkfCnYv.js} +1 -1
  6. package/dist/{Checkbox-Bo26OGHP.js → Checkbox-BXC2mLNd.js} +1 -1
  7. package/dist/DatePicker-DcVjiS5d.js +848 -0
  8. package/dist/{Empty-rMhOPi79.js → Empty-By1qe-ew.js} +1 -1
  9. package/dist/{FlyoutSubmenu-C0id6-Sb.js → FlyoutSubmenu-C1n-fr6i.js} +1 -1
  10. package/dist/{Input-CxSTVp9E.js → Input-D2bee2LU.js} +2 -2
  11. package/dist/{Loading-D_qRwfKv.js → Loading-DE9Iaiao.js} +3 -3
  12. package/dist/Pagination-DpNOb0CS.js +178 -0
  13. package/dist/{Popover-D1uZ1N9Z.js → Popover-Bnz7KNZq.js} +2 -2
  14. package/dist/{ProgressSpinner-hmR23xpi.js → ProgressSpinner-vBXGvQ92.js} +1 -1
  15. package/dist/{Radio-CZAyelC_.js → Radio-BbznzRbr.js} +1 -1
  16. package/dist/{Segmented-BpdO7arR.js → Segmented-CMP3nBAP.js} +1 -1
  17. package/dist/{Select-CySmusHs.js → Select-q4X2ff_M.js} +3 -3
  18. package/dist/{Textarea-DskjTCcz.js → Textarea-DsFOAtPd.js} +2 -2
  19. package/dist/{Tooltip-DSfkflHp.js → Tooltip-5zRVTTVs.js} +2 -2
  20. package/dist/accordion/style.css +1206 -1205
  21. package/dist/affix/style.css +1206 -1205
  22. package/dist/alert/index.js +2 -2
  23. package/dist/alert/style.css +1206 -1205
  24. package/dist/anchor/style.css +1206 -1205
  25. package/dist/auto-complete/index.js +3 -3
  26. package/dist/auto-complete/style.css +1750 -1749
  27. package/dist/avatar/style.css +1319 -1318
  28. package/dist/badge/style.css +1372 -1371
  29. package/dist/block-ui/index.js +1 -1
  30. package/dist/block-ui/style.css +1206 -1205
  31. package/dist/breadcrumb/index.js +1 -1
  32. package/dist/breadcrumb/style.css +1206 -1205
  33. package/dist/button/index.js +1 -1
  34. package/dist/button/style.css +1910 -1909
  35. package/dist/calendar/index.js +3 -3
  36. package/dist/calendar/style.css +2081 -1880
  37. package/dist/card/style.css +1206 -1205
  38. package/dist/carousel/index.js +2 -2
  39. package/dist/carousel/style.css +2209 -2208
  40. package/dist/cascade-select/index.js +3 -3
  41. package/dist/cascade-select/style.css +1910 -1909
  42. package/dist/checkbox/index.js +1 -1
  43. package/dist/checkbox/style.css +1206 -1205
  44. package/dist/chip/index.js +1 -1
  45. package/dist/chip/style.css +1350 -1349
  46. package/dist/command-menu/index.js +3 -3
  47. package/dist/command-menu/style.css +1439 -1438
  48. package/dist/components/AutoComplete/styles.css +209 -209
  49. package/dist/components/Avatar/styles.css +113 -113
  50. package/dist/components/Badge/styles.css +164 -164
  51. package/dist/components/Button/styles.css +698 -698
  52. package/dist/components/Carousel/styles.css +302 -302
  53. package/dist/components/CascadeSelect/styles.css +168 -168
  54. package/dist/components/Chip/styles.css +144 -144
  55. package/dist/components/CommandMenu/styles.css +102 -102
  56. package/dist/components/ConfigProvider/styles.css +6 -6
  57. package/dist/components/ConfirmDialog/styles.css +24 -24
  58. package/dist/components/ConfirmPopup/styles.css +35 -35
  59. package/dist/components/ContextMenu/styles.css +138 -138
  60. package/dist/components/DatePicker/DatePicker.vue.d.ts +21 -0
  61. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  62. package/dist/components/DatePicker/styles.css +653 -453
  63. package/dist/components/DatePicker/types.d.ts +20 -2
  64. package/dist/components/DatePicker/types.d.ts.map +1 -1
  65. package/dist/components/Dialog/styles.css +420 -420
  66. package/dist/components/Dock/styles.css +84 -84
  67. package/dist/components/Drawer/styles.css +346 -346
  68. package/dist/components/Dropdown/styles.css +135 -135
  69. package/dist/components/Empty/styles.css +146 -146
  70. package/dist/components/FileUpload/styles.css +359 -359
  71. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  72. package/dist/components/Form/styles.css +125 -125
  73. package/dist/components/Gallery/styles.css +100 -100
  74. package/dist/components/Input/styles.css +392 -392
  75. package/dist/components/InputColor/styles.css +139 -139
  76. package/dist/components/InputNumber/styles.css +262 -262
  77. package/dist/components/InputPassword/styles.css +189 -189
  78. package/dist/components/InputTags/styles.css +121 -121
  79. package/dist/components/Layout/styles.css +433 -433
  80. package/dist/components/List/styles.css +229 -229
  81. package/dist/components/Listbox/styles.css +130 -130
  82. package/dist/components/Loading/styles.css +378 -378
  83. package/dist/components/MegaMenu/styles.css +97 -97
  84. package/dist/components/Menu/styles.css +565 -565
  85. package/dist/components/Menubar/styles.css +144 -144
  86. package/dist/components/Message/styles.css +248 -248
  87. package/dist/components/MeterGroup/styles.css +49 -49
  88. package/dist/components/OrderList/OrderList.vue.d.ts +13 -7
  89. package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
  90. package/dist/components/OrderList/styles.css +80 -7
  91. package/dist/components/OrderList/types.d.ts +20 -3
  92. package/dist/components/OrderList/types.d.ts.map +1 -1
  93. package/dist/components/Page/styles.css +430 -430
  94. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  95. package/dist/components/Pagination/styles.css +97 -124
  96. package/dist/components/Popover/styles.css +92 -92
  97. package/dist/components/Result/styles.css +146 -146
  98. package/dist/components/Scrollbar/styles.css +131 -131
  99. package/dist/components/Select/styles.css +222 -222
  100. package/dist/components/SelectButton/styles.css +107 -107
  101. package/dist/components/Sidebar/styles.css +74 -74
  102. package/dist/components/Slider/styles.css +211 -211
  103. package/dist/components/SplitButton/styles.css +216 -216
  104. package/dist/components/Status/styles.css +190 -190
  105. package/dist/components/Stepper/styles.css +152 -152
  106. package/dist/components/Switch/styles.css +129 -129
  107. package/dist/components/Table/Table.vue.d.ts +37 -282
  108. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  109. package/dist/components/Table/core/tree.d.ts +4 -0
  110. package/dist/components/Table/core/tree.d.ts.map +1 -1
  111. package/dist/components/Table/core/utils.d.ts +11 -3
  112. package/dist/components/Table/core/utils.d.ts.map +1 -1
  113. package/dist/components/Table/index.d.ts +1 -1
  114. package/dist/components/Table/index.d.ts.map +1 -1
  115. package/dist/components/Table/render/TableColumnSetting.vue.d.ts +25 -0
  116. package/dist/components/Table/render/TableColumnSetting.vue.d.ts.map +1 -0
  117. package/dist/components/Table/render/TableTbody.vue.d.ts +16 -0
  118. package/dist/components/Table/render/TableTbody.vue.d.ts.map +1 -1
  119. package/dist/components/Table/render/TableThead.vue.d.ts +8 -0
  120. package/dist/components/Table/render/TableThead.vue.d.ts.map +1 -1
  121. package/dist/components/Table/state/internal.d.ts +1 -1
  122. package/dist/components/Table/state/internal.d.ts.map +1 -1
  123. package/dist/components/Table/state/usePageItems.d.ts +1 -3
  124. package/dist/components/Table/state/usePageItems.d.ts.map +1 -1
  125. package/dist/components/Table/state/useVirtualRows.d.ts +20 -2
  126. package/dist/components/Table/state/useVirtualRows.d.ts.map +1 -1
  127. package/dist/components/Table/styles.css +95 -0
  128. package/dist/components/Table/types.d.ts +77 -12
  129. package/dist/components/Table/types.d.ts.map +1 -1
  130. package/dist/components/Tabs/styles.css +165 -165
  131. package/dist/components/Terminal/styles.css +75 -75
  132. package/dist/components/Textarea/styles.css +146 -146
  133. package/dist/components/TieredMenu/styles.css +125 -125
  134. package/dist/components/Timeline/styles.css +157 -157
  135. package/dist/components/TreeSelect/styles.css +172 -172
  136. package/dist/components/VirtualScroller/styles.css +27 -27
  137. package/dist/{config-BEpyhJi3.js → config-Cd20zAyW.js} +11 -1
  138. package/dist/config-provider/index.js +1 -1
  139. package/dist/config-provider/style.css +2302 -2301
  140. package/dist/confirm-dialog/index.js +4 -4
  141. package/dist/confirm-dialog/style.css +2348 -2347
  142. package/dist/confirm-popup/index.js +4 -4
  143. package/dist/confirm-popup/style.css +1939 -1938
  144. package/dist/context-menu/index.js +3 -3
  145. package/dist/context-menu/style.css +1475 -1474
  146. package/dist/data-view/index.js +3 -3
  147. package/dist/data-view/style.css +1681 -1707
  148. package/dist/date-picker/index.js +1 -1
  149. package/dist/date-picker/style.css +1991 -1658
  150. package/dist/date-picker/style.js +1 -0
  151. package/dist/descriptions/index.js +1 -1
  152. package/dist/descriptions/style.css +1206 -1205
  153. package/dist/dialog/index.js +4 -4
  154. package/dist/dialog/style.css +2324 -2323
  155. package/dist/divider/style.css +1206 -1205
  156. package/dist/dock/style.css +1290 -1289
  157. package/dist/drawer/index.js +3 -3
  158. package/dist/drawer/style.css +1552 -1551
  159. package/dist/dropdown/index.js +4 -4
  160. package/dist/dropdown/style.css +1472 -1471
  161. package/dist/empty/index.js +1 -1
  162. package/dist/empty/style.css +1352 -1351
  163. package/dist/fieldset/style.css +1206 -1205
  164. package/dist/file-upload/index.js +1 -1
  165. package/dist/file-upload/style.css +1565 -1564
  166. package/dist/flex/index.js +1 -1
  167. package/dist/flex/style.css +1206 -1205
  168. package/dist/float-label/style.css +1206 -1205
  169. package/dist/fluid/style.css +1206 -1205
  170. package/dist/form/index.js +1 -1
  171. package/dist/form/style.css +1333 -1332
  172. package/dist/gallery/index.js +1 -1
  173. package/dist/gallery/style.css +1437 -1436
  174. package/dist/grid/style.css +1206 -1205
  175. package/dist/icon/style.css +1206 -1205
  176. package/dist/icon-field/style.css +1598 -1597
  177. package/dist/image/index.js +1 -1
  178. package/dist/image/style.css +1206 -1205
  179. package/dist/index.d.ts +1 -1
  180. package/dist/index.d.ts.map +1 -1
  181. package/dist/index.js +4118 -3439
  182. package/dist/inplace/style.css +1206 -1205
  183. package/dist/input/index.js +1 -1
  184. package/dist/input/style.css +1723 -1722
  185. package/dist/input-color/index.js +2 -2
  186. package/dist/input-color/style.css +1347 -1346
  187. package/dist/input-group/style.css +1206 -1205
  188. package/dist/input-number/index.js +2 -2
  189. package/dist/input-number/style.css +1468 -1467
  190. package/dist/input-otp/index.js +2 -2
  191. package/dist/input-otp/style.css +1206 -1205
  192. package/dist/input-password/index.js +2 -2
  193. package/dist/input-password/style.css +1520 -1519
  194. package/dist/input-tags/index.js +2 -2
  195. package/dist/input-tags/style.css +1327 -1326
  196. package/dist/knob/style.css +1206 -1205
  197. package/dist/label/style.css +1206 -1205
  198. package/dist/layout/index.js +1 -1
  199. package/dist/layout/style.css +1770 -1769
  200. package/dist/list/index.js +4 -4
  201. package/dist/list/style.css +2061 -2087
  202. package/dist/listbox/index.js +2 -2
  203. package/dist/listbox/style.css +1498 -1497
  204. package/dist/loading/index.js +1 -1
  205. package/dist/loading/style.css +1586 -1585
  206. package/dist/locale/de-DE.d.ts.map +1 -1
  207. package/dist/locale/en-US.d.ts.map +1 -1
  208. package/dist/locale/es-ES.d.ts.map +1 -1
  209. package/dist/locale/fr-FR.d.ts.map +1 -1
  210. package/dist/locale/ja-JP.d.ts.map +1 -1
  211. package/dist/locale/ko-KR.d.ts.map +1 -1
  212. package/dist/locale/pt-BR.d.ts.map +1 -1
  213. package/dist/locale/ru-RU.d.ts.map +1 -1
  214. package/dist/locale/types.d.ts +18 -0
  215. package/dist/locale/types.d.ts.map +1 -1
  216. package/dist/locale/zh-CN.d.ts.map +1 -1
  217. package/dist/locale/zh-TW.d.ts.map +1 -1
  218. package/dist/{locale-CZddM-tH.js → locale-BcxMPufl.js} +1 -1
  219. package/dist/mega-menu/index.js +3 -3
  220. package/dist/mega-menu/style.css +1303 -1302
  221. package/dist/mentions/index.js +3 -3
  222. package/dist/mentions/style.css +1331 -1330
  223. package/dist/menu/index.js +4 -4
  224. package/dist/menu/style.css +2060 -2059
  225. package/dist/menubar/index.js +3 -3
  226. package/dist/menubar/style.css +1481 -1480
  227. package/dist/message/index.js +3 -3
  228. package/dist/message/style.css +1454 -1453
  229. package/dist/meter-group/style.css +1257 -1256
  230. package/dist/order-list/index.js +191 -101
  231. package/dist/order-list/style.css +1286 -1212
  232. package/dist/page/index.js +3 -3
  233. package/dist/page/style.css +2601 -2600
  234. package/dist/pagination/index.js +1 -1
  235. package/dist/pagination/style.css +1525 -1551
  236. package/dist/panel/index.js +1 -1
  237. package/dist/panel/style.css +1206 -1205
  238. package/dist/pick-list/index.js +1 -1
  239. package/dist/pick-list/style.css +1206 -1205
  240. package/dist/popover/index.js +1 -1
  241. package/dist/popover/style.css +1300 -1299
  242. package/dist/progress-bar/style.css +1206 -1205
  243. package/dist/progress-spinner/index.js +1 -1
  244. package/dist/progress-spinner/style.css +1206 -1205
  245. package/dist/qr-code/index.js +3 -3
  246. package/dist/qr-code/style.css +1904 -1903
  247. package/dist/radio/index.js +1 -1
  248. package/dist/radio/style.css +1206 -1205
  249. package/dist/rating/index.js +2 -2
  250. package/dist/rating/style.css +1206 -1205
  251. package/dist/result/index.js +1 -1
  252. package/dist/result/style.css +1352 -1351
  253. package/dist/scroll-top/index.js +2 -2
  254. package/dist/scroll-top/style.css +1337 -1336
  255. package/dist/scrollbar/style.css +1339 -1338
  256. package/dist/segmented/index.js +1 -1
  257. package/dist/segmented/style.css +1206 -1205
  258. package/dist/select/index.js +1 -1
  259. package/dist/select/style.css +2116 -2115
  260. package/dist/select-button/index.js +1 -1
  261. package/dist/select-button/style.css +1315 -1314
  262. package/dist/shared/styles/control-affix-icon.css +110 -110
  263. package/dist/shared/styles/control-suffix.css +118 -118
  264. package/dist/shared/styles/select-overlay.css +177 -177
  265. package/dist/sidebar/index.js +1 -1
  266. package/dist/sidebar/style.css +1280 -1279
  267. package/dist/skeleton/style.css +1206 -1205
  268. package/dist/slider/index.js +2 -2
  269. package/dist/slider/style.css +1419 -1418
  270. package/dist/space/index.js +1 -1
  271. package/dist/space/style.css +1206 -1205
  272. package/dist/speed-dial/index.js +3 -3
  273. package/dist/speed-dial/style.css +1206 -1205
  274. package/dist/split-button/index.js +3 -3
  275. package/dist/split-button/style.css +2120 -2119
  276. package/dist/splitter/index.js +1 -1
  277. package/dist/splitter/style.css +1206 -1205
  278. package/dist/statistic/style.css +1206 -1205
  279. package/dist/status/index.js +1 -1
  280. package/dist/status/style.css +1396 -1395
  281. package/dist/stepper/style.css +1358 -1357
  282. package/dist/styles/base.css +804 -804
  283. package/dist/styles.css +1 -1
  284. package/dist/switch/index.js +1 -1
  285. package/dist/switch/style.css +1337 -1336
  286. package/dist/table/index.js +975 -714
  287. package/dist/table/style.css +1908 -1839
  288. package/dist/tabs/index.js +1 -1
  289. package/dist/tabs/style.css +1502 -1501
  290. package/dist/tag/index.js +2 -2
  291. package/dist/tag/style.css +1206 -1205
  292. package/dist/terminal/index.js +1 -1
  293. package/dist/terminal/style.css +1283 -1282
  294. package/dist/textarea/index.js +1 -1
  295. package/dist/textarea/style.css +1477 -1476
  296. package/dist/theme/styles.css +402 -401
  297. package/dist/tiered-menu/index.js +3 -3
  298. package/dist/tiered-menu/style.css +1462 -1461
  299. package/dist/time-picker/index.js +5 -1
  300. package/dist/time-picker/style.css +1861 -1660
  301. package/dist/timeline/style.css +1494 -1493
  302. package/dist/toast/index.js +3 -3
  303. package/dist/toast/style.css +1904 -1903
  304. package/dist/toggle-button/index.js +1 -1
  305. package/dist/toggle-button/style.css +1206 -1205
  306. package/dist/toolbar/style.css +1206 -1205
  307. package/dist/tooltip/index.js +1 -1
  308. package/dist/tooltip/style.css +1206 -1205
  309. package/dist/tour/index.js +3 -3
  310. package/dist/tour/style.css +1904 -1903
  311. package/dist/tree/index.js +2 -2
  312. package/dist/tree/style.css +1206 -1205
  313. package/dist/tree-select/index.js +4 -4
  314. package/dist/tree-select/style.css +1914 -1913
  315. package/dist/typography/index.js +2 -2
  316. package/dist/typography/style.css +1352 -1351
  317. package/dist/{useMotionTransition-DqL_SEML.js → useMotionTransition-DohkfWRB.js} +1 -1
  318. package/dist/virtual-scroller/style.css +1367 -1366
  319. package/dist/watermark/style.css +1206 -1205
  320. package/package.json +1 -1
  321. package/dist/DatePicker-CsMGzCqY.js +0 -630
  322. package/dist/Pagination-CnGOpp0m.js +0 -171
@@ -1,804 +1,804 @@
1
- /* Shared tokens consumption, type, focus, and mixed selectors. */
2
-
3
- :root {
4
- /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
5
- --m-menu-min-width: 12rem;
6
- }
7
-
8
- .m-button,
9
- .m-input,
10
- .m-card,
11
- .m-dialog,
12
- .m-drawer,
13
- .m-popover,
14
- .m-accordion,
15
- .m-scrollbar,
16
- .m-panel,
17
- .m-fieldset,
18
- .m-flex,
19
- .m-space,
20
- .m-grid,
21
- .m-layout,
22
- .m-layout-header,
23
- .m-layout-footer,
24
- .m-layout-sider,
25
- .m-splitter,
26
- .m-stepper,
27
- .m-toolbar,
28
- .m-page-content,
29
- .m-page-header,
30
- .m-page-toolbar,
31
- .m-menu,
32
- .m-menubar,
33
- .m-contextmenu,
34
- .m-tieredmenu,
35
- .m-dropdown,
36
- .m-breadcrumb,
37
- .m-tabs,
38
- .m-datepicker,
39
- .m-listbox,
40
- .m-togglebutton,
41
- .m-select,
42
- .m-textarea,
43
- .m-selectbutton,
44
- .m-inputotp,
45
- .m-knob,
46
- .m-autocomplete,
47
- .m-splitbutton,
48
- .m-tree,
49
- .m-timeline,
50
- .m-dataview,
51
- .m-confirmpopup,
52
- .m-scrolltop,
53
- .m-blockui,
54
- .m-inplace,
55
- .m-message,
56
- .m-toast,
57
- .m-tooltip,
58
- .m-empty,
59
- .m-result,
60
- .m-progress-spinner,
61
- .m-cascadeselect,
62
- .m-treeselect,
63
- .m-inputcolor,
64
- .m-inputtags,
65
- .m-label,
66
- .m-speeddial,
67
- .m-orderlist,
68
- .m-picklist,
69
- .m-virtualscroller,
70
- .m-megamenu,
71
- .m-dock,
72
- .m-sidebar,
73
- .m-commandmenu,
74
- .m-fileupload,
75
- .m-carousel,
76
- .m-gallery,
77
- .m-metergroup,
78
- .m-fluid,
79
- .m-terminal {
80
- font-family: var(--m-font-sans);
81
- box-sizing: border-box;
82
- }
83
-
84
- .m-input:disabled,
85
- .m-textarea:disabled,
86
- .m-password__input:disabled,
87
- .m-inputnumber__input:disabled,
88
- .m-inputotp__input:disabled,
89
- .m-inputcolor__text:disabled,
90
- .m-inputcolor__swatch:disabled,
91
- .m-inputtags--disabled {
92
- background-color: var(--m-color-bg-disabled);
93
- color: var(--m-color-text-disabled);
94
- cursor: not-allowed;
95
- opacity: 1;
96
- }
97
-
98
- .m-input-field__control--prefixed .m-input:disabled,
99
- .m-input-field__control--suffixed .m-input:disabled,
100
- .m-input-field__control--clearable .m-input:disabled,
101
- .m-password--disabled .m-password__input,
102
- .m-inputnumber--disabled .m-inputnumber__input,
103
- .m-datepicker--disabled .m-datepicker__input,
104
- .m-icon-field--anchored .m-input:disabled,
105
- .m-icon-field--anchored .m-textarea:disabled {
106
- opacity: 1;
107
- }
108
-
109
- .m-input::placeholder,
110
- .m-textarea::placeholder,
111
- .m-password__input::placeholder,
112
- .m-inputnumber__input::placeholder,
113
- .m-inputtags__input::placeholder,
114
- .m-inputcolor__text::placeholder {
115
- color: var(--m-color-text-muted);
116
- opacity: 1;
117
- }
118
-
119
- .m-input-field__meta,
120
- .m-textarea-field__meta,
121
- .m-password-field__meta {
122
- align-items: baseline;
123
- display: flex;
124
- gap: var(--m-space-2);
125
- justify-content: space-between;
126
- }
127
-
128
- .m-input-field__meta:not(:has(.m-input-field__help)),
129
- .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
130
- .m-password-field__meta:not(:has(.m-password__feedback)) {
131
- justify-content: flex-end;
132
- }
133
-
134
- .m-input-field__count,
135
- .m-textarea-field__count,
136
- .m-password-field__count {
137
- color: var(--m-color-text-muted);
138
- flex: 0 0 auto;
139
- font-size: var(--m-font-size-xs);
140
- margin-left: auto;
141
- }
142
-
143
- .m-dropdown__item--parent {
144
- align-items: center;
145
- display: flex;
146
- justify-content: space-between;
147
- width: 100%;
148
- }
149
-
150
- .m-dropdown__icon,
151
- .m-dropdown__caret,
152
- .m-menu__icon,
153
- .m-menubar__icon {
154
- flex-shrink: 0;
155
- }
156
-
157
- .m-dropdown__submenu-wrap {
158
- position: relative;
159
- }
160
-
161
- .m-dropdown__submenu {
162
- --m-dropdown-submenu-max-height: min(18rem, 45vh);
163
- background: var(--m-color-surface);
164
- border: var(--m-border-width) solid var(--m-color-border);
165
- border-radius: var(--m-radius-md);
166
- box-shadow: var(--m-shadow-md);
167
- max-height: var(--m-dropdown-submenu-max-height);
168
- max-width: calc(100vw - 2 * var(--m-space-4));
169
- min-width: 10rem;
170
- overflow: hidden;
171
- padding: var(--m-space-1);
172
- /* Same as .m-dropdown__menu: size to content instead of being clamped
173
- by the space left of the anchor in the viewport. */
174
- width: max-content;
175
- }
176
-
177
- .m-dropdown__submenu--teleported {
178
- position: fixed;
179
- z-index: var(--m-z-dropdown);
180
- }
181
-
182
- .m-dropdown__submenu-scroll {
183
- max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
184
- min-height: 0;
185
- }
186
-
187
- .m-dropdown__submenu-view {
188
- display: grid;
189
- gap: var(--m-space-1);
190
- }
191
-
192
- .m-fade-enter-active,
193
- .m-fade-leave-active {
194
- transition: opacity var(--m-motion-exit) var(--m-motion-ease);
195
- }
196
-
197
- .m-fade-enter-from,
198
- .m-fade-leave-to {
199
- opacity: 0;
200
- }
201
-
202
- .m-scale-fade-enter-active {
203
- transition:
204
- opacity var(--m-motion-enter) var(--m-motion-ease),
205
- transform var(--m-motion-enter) var(--m-motion-ease);
206
- }
207
-
208
- .m-scale-fade-leave-active {
209
- transition:
210
- opacity var(--m-motion-exit) var(--m-motion-ease),
211
- transform var(--m-motion-exit) var(--m-motion-ease);
212
- }
213
-
214
- .m-scale-fade-enter-from,
215
- .m-scale-fade-leave-to {
216
- opacity: 0;
217
- transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
218
- }
219
-
220
- .m-slide-fade-enter-active {
221
- transition:
222
- opacity var(--m-motion-enter) var(--m-motion-ease),
223
- transform var(--m-motion-enter) var(--m-motion-ease);
224
- }
225
-
226
- .m-slide-fade-leave-active {
227
- transition:
228
- opacity var(--m-motion-exit) var(--m-motion-ease),
229
- transform var(--m-motion-exit) var(--m-motion-ease);
230
- }
231
-
232
- .m-slide-fade-enter-from,
233
- .m-slide-fade-leave-to {
234
- opacity: 0;
235
- transform: translateY(calc(var(--m-motion-distance) * -1));
236
- }
237
-
238
- /* Generic center zoom (opacity + scale on the transitioning root) */
239
- .m-zoom-enter-active {
240
- transition:
241
- opacity var(--m-motion-enter) var(--m-motion-ease),
242
- transform var(--m-motion-enter) var(--m-motion-ease);
243
- }
244
-
245
- .m-zoom-leave-active {
246
- transition:
247
- opacity var(--m-motion-exit) var(--m-motion-ease),
248
- transform var(--m-motion-exit) var(--m-motion-ease);
249
- }
250
-
251
- .m-zoom-enter-from,
252
- .m-zoom-leave-to {
253
- opacity: 0;
254
- transform: scale(0.95);
255
- }
256
-
257
- .m-slide-up-enter-active,
258
- .m-slide-down-enter-active,
259
- .m-slide-left-enter-active,
260
- .m-slide-right-enter-active {
261
- transition:
262
- opacity var(--m-motion-enter) var(--m-motion-ease),
263
- transform var(--m-motion-enter) var(--m-motion-ease);
264
- }
265
-
266
- .m-slide-up-leave-active,
267
- .m-slide-down-leave-active,
268
- .m-slide-left-leave-active,
269
- .m-slide-right-leave-active {
270
- transition:
271
- opacity var(--m-motion-exit) var(--m-motion-ease),
272
- transform var(--m-motion-exit) var(--m-motion-ease);
273
- }
274
-
275
- .m-slide-up-enter-from,
276
- .m-slide-up-leave-to {
277
- opacity: 0;
278
- transform: translateY(var(--m-motion-distance));
279
- }
280
-
281
- .m-slide-down-enter-from,
282
- .m-slide-down-leave-to {
283
- opacity: 0;
284
- transform: translateY(calc(var(--m-motion-distance) * -1));
285
- }
286
-
287
- .m-slide-left-enter-from,
288
- .m-slide-left-leave-to {
289
- opacity: 0;
290
- transform: translateX(var(--m-motion-distance));
291
- }
292
-
293
- .m-slide-right-enter-from,
294
- .m-slide-right-leave-to {
295
- opacity: 0;
296
- transform: translateX(calc(var(--m-motion-distance) * -1));
297
- }
298
-
299
- [data-m-motion="reduced"] .m-fade-enter-active,
300
- [data-m-motion="reduced"] .m-fade-leave-active,
301
- [data-m-motion="reduced"] .m-scale-fade-enter-active,
302
- [data-m-motion="reduced"] .m-scale-fade-leave-active,
303
- [data-m-motion="reduced"] .m-slide-fade-enter-active,
304
- [data-m-motion="reduced"] .m-slide-fade-leave-active,
305
- [data-m-motion="reduced"] .m-zoom-enter-active,
306
- [data-m-motion="reduced"] .m-zoom-leave-active,
307
- [data-m-motion="reduced"] .m-slide-up-enter-active,
308
- [data-m-motion="reduced"] .m-slide-up-leave-active,
309
- [data-m-motion="reduced"] .m-slide-down-enter-active,
310
- [data-m-motion="reduced"] .m-slide-down-leave-active,
311
- [data-m-motion="reduced"] .m-slide-left-enter-active,
312
- [data-m-motion="reduced"] .m-slide-left-leave-active,
313
- [data-m-motion="reduced"] .m-slide-right-enter-active,
314
- [data-m-motion="reduced"] .m-slide-right-leave-active,
315
- [data-m-motion="none"] .m-fade-enter-active,
316
- [data-m-motion="none"] .m-fade-leave-active,
317
- [data-m-motion="none"] .m-scale-fade-enter-active,
318
- [data-m-motion="none"] .m-scale-fade-leave-active,
319
- [data-m-motion="none"] .m-slide-fade-enter-active,
320
- [data-m-motion="none"] .m-slide-fade-leave-active,
321
- [data-m-motion="none"] .m-zoom-enter-active,
322
- [data-m-motion="none"] .m-zoom-leave-active,
323
- [data-m-motion="none"] .m-slide-up-enter-active,
324
- [data-m-motion="none"] .m-slide-up-leave-active,
325
- [data-m-motion="none"] .m-slide-down-enter-active,
326
- [data-m-motion="none"] .m-slide-down-leave-active,
327
- [data-m-motion="none"] .m-slide-left-enter-active,
328
- [data-m-motion="none"] .m-slide-left-leave-active,
329
- [data-m-motion="none"] .m-slide-right-enter-active,
330
- [data-m-motion="none"] .m-slide-right-leave-active {
331
- transition: none;
332
- }
333
-
334
- [data-m-motion="reduced"] .m-scale-fade-enter-from,
335
- [data-m-motion="reduced"] .m-scale-fade-leave-to,
336
- [data-m-motion="reduced"] .m-slide-fade-enter-from,
337
- [data-m-motion="reduced"] .m-slide-fade-leave-to,
338
- [data-m-motion="reduced"] .m-zoom-enter-from,
339
- [data-m-motion="reduced"] .m-zoom-leave-to,
340
- [data-m-motion="reduced"] .m-slide-up-enter-from,
341
- [data-m-motion="reduced"] .m-slide-up-leave-to,
342
- [data-m-motion="reduced"] .m-slide-down-enter-from,
343
- [data-m-motion="reduced"] .m-slide-down-leave-to,
344
- [data-m-motion="reduced"] .m-slide-left-enter-from,
345
- [data-m-motion="reduced"] .m-slide-left-leave-to,
346
- [data-m-motion="reduced"] .m-slide-right-enter-from,
347
- [data-m-motion="reduced"] .m-slide-right-leave-to,
348
- [data-m-motion="none"] .m-scale-fade-enter-from,
349
- [data-m-motion="none"] .m-scale-fade-leave-to,
350
- [data-m-motion="none"] .m-slide-fade-enter-from,
351
- [data-m-motion="none"] .m-slide-fade-leave-to,
352
- [data-m-motion="none"] .m-zoom-enter-from,
353
- [data-m-motion="none"] .m-zoom-leave-to,
354
- [data-m-motion="none"] .m-slide-up-enter-from,
355
- [data-m-motion="none"] .m-slide-up-leave-to,
356
- [data-m-motion="none"] .m-slide-down-enter-from,
357
- [data-m-motion="none"] .m-slide-down-leave-to,
358
- [data-m-motion="none"] .m-slide-left-enter-from,
359
- [data-m-motion="none"] .m-slide-left-leave-to,
360
- [data-m-motion="none"] .m-slide-right-enter-from,
361
- [data-m-motion="none"] .m-slide-right-leave-to {
362
- transform: none;
363
- }
364
-
365
- /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
366
- @keyframes m-progress-spinner-rotate {
367
- 100% {
368
- transform: rotate(360deg);
369
- }
370
- }
371
-
372
- .m-checkbox,
373
- .m-radio,
374
- .m-switch {
375
- align-items: center;
376
- color: var(--m-color-text);
377
- cursor: pointer;
378
- display: inline-flex;
379
- font-family: var(--m-font-sans);
380
- gap: var(--m-space-2);
381
- /* 与输入框圆角保持一致,配合 MScrollbar 使用 */
382
- position: relative;
383
- }
384
-
385
- .m-checkbox--disabled,
386
- .m-radio--disabled,
387
- .m-switch--disabled {
388
- color: var(--m-color-text-disabled);
389
- cursor: not-allowed;
390
- opacity: 1;
391
- }
392
-
393
- .m-checkbox--invalid .m-checkbox__control,
394
- .m-radio--invalid .m-radio__control {
395
- border-color: var(--m-color-danger);
396
- }
397
-
398
- .m-checkbox__input,
399
- .m-radio__input,
400
- .m-switch__input {
401
- clip: rect(0, 0, 0, 0);
402
- clip-path: inset(50%);
403
- height: 1px;
404
- margin: -1px;
405
- overflow: hidden;
406
- opacity: 0;
407
- position: absolute;
408
- white-space: nowrap;
409
- width: 1px;
410
- }
411
-
412
- .m-checkbox__control,
413
- .m-radio__control {
414
- align-items: center;
415
- background: var(--m-color-surface);
416
- border: var(--m-border-width) solid var(--m-color-border);
417
- display: inline-flex;
418
- flex: 0 0 auto;
419
- height: var(--m-checkbox-control-size, 1.125rem);
420
- justify-content: center;
421
- transition:
422
- background-color var(--m-motion-fast) var(--m-motion-ease),
423
- border-color var(--m-motion-fast) var(--m-motion-ease),
424
- box-shadow var(--m-motion-fast) var(--m-motion-ease);
425
- width: var(--m-checkbox-control-size, 1.125rem);
426
- }
427
-
428
- .m-checkbox__input:checked + .m-checkbox__control,
429
- .m-radio__input:checked + .m-radio__control {
430
- background: var(--m-color-primary);
431
- border-color: var(--m-color-primary);
432
- }
433
-
434
- .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
435
- .m-radio:not(.m-radio--disabled):hover .m-radio__control {
436
- border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
437
- }
438
-
439
- .m-checkbox__input:focus-visible + .m-checkbox__control,
440
- .m-radio__input:focus-visible + .m-radio__control,
441
- .m-switch__input:focus-visible + .m-switch__track {
442
- box-shadow: var(--m-focus-shadow);
443
- outline: none;
444
- }
445
-
446
- .m-checkbox__label,
447
- .m-radio__label,
448
- .m-switch__label {
449
- font-size: var(--m-font-size-md);
450
- }
451
-
452
- .m-textarea-field,
453
- .m-select-field {
454
- display: grid;
455
- font-family: var(--m-font-sans);
456
- gap: var(--m-space-2);
457
- max-width: 100%;
458
- min-width: var(--m-menu-min-width);
459
- position: relative;
460
- width: fit-content;
461
- }
462
-
463
- .m-textarea-field--fluid,
464
- .m-select-field--fluid {
465
- width: 100%;
466
- }
467
-
468
- .m-textarea-field__label,
469
- .m-select-field__label {
470
- color: var(--m-color-text);
471
- font-family: var(--m-font-sans);
472
- font-size: var(--m-font-size-md);
473
- font-weight: 500;
474
- }
475
-
476
- .m-textarea-field__help,
477
- .m-select-field__help {
478
- color: var(--m-color-text-muted);
479
- font-size: var(--m-font-size-xs);
480
- }
481
-
482
- .m-textarea-field__help--invalid,
483
- .m-select-field__help--invalid {
484
- color: var(--m-color-danger);
485
- }
486
-
487
- .m-textarea,
488
- .m-select {
489
- background: var(--m-color-surface);
490
- border: var(--m-border-width) solid var(--m-color-border);
491
- border-radius: var(--m-radius-control);
492
- color: var(--m-color-text);
493
- font: inherit;
494
- transition:
495
- border-color var(--m-motion-fast) var(--m-motion-ease),
496
- box-shadow var(--m-motion-fast) var(--m-motion-ease),
497
- background-color var(--m-motion-fast) var(--m-motion-ease);
498
- width: 100%;
499
- }
500
-
501
- .m-textarea--invalid:focus,
502
- .m-textarea--invalid:focus-visible,
503
- .m-select--invalid.m-select--open,
504
- .m-select--invalid:focus,
505
- .m-select--invalid:focus-visible {
506
- border-color: var(--m-color-danger);
507
- box-shadow: var(--m-focus-shadow-danger);
508
- }
509
-
510
- .m-textarea:disabled,
511
- .m-select:disabled,
512
- .m-select--disabled {
513
- background-color: var(--m-color-bg-disabled);
514
- color: var(--m-color-text-disabled);
515
- cursor: not-allowed;
516
- opacity: 1;
517
- }
518
-
519
- .m-inputgroup > .m-input,
520
- .m-inputgroup > .m-input-field,
521
- .m-inputgroup > .m-password-field,
522
- .m-inputgroup > .m-inputnumber-field {
523
- flex: 1 1 auto;
524
- min-width: 0;
525
- }
526
-
527
- .m-inputgroup > .m-input-field,
528
- .m-inputgroup > .m-password-field,
529
- .m-inputgroup > .m-inputnumber-field {
530
- display: flex;
531
- flex-direction: column;
532
- gap: 0;
533
- }
534
-
535
- .m-inputgroup > .m-input,
536
- .m-inputgroup .m-input,
537
- .m-inputgroup .m-password,
538
- .m-inputgroup .m-inputnumber__input-wrap,
539
- .m-inputgroup .m-input-field__control--prefixed,
540
- .m-inputgroup .m-input-field__control--suffixed,
541
- .m-inputgroup .m-input-field__control--clearable {
542
- border-radius: 0;
543
- width: 100%;
544
- }
545
-
546
- .m-inputgroup > :first-child.m-input,
547
- .m-inputgroup > :first-child .m-input,
548
- .m-inputgroup > :first-child .m-password,
549
- .m-inputgroup > :first-child .m-inputnumber__input-wrap,
550
- .m-inputgroup > :first-child .m-input-field__control--prefixed,
551
- .m-inputgroup > :first-child .m-input-field__control--suffixed,
552
- .m-inputgroup > :first-child .m-input-field__control--clearable,
553
- .m-inputgroup > :first-child.m-inputgroup-addon {
554
- border-bottom-left-radius: var(--m-radius-control);
555
- border-top-left-radius: var(--m-radius-control);
556
- }
557
-
558
- .m-inputgroup > :last-child.m-input,
559
- .m-inputgroup > :last-child .m-input,
560
- .m-inputgroup > :last-child .m-password,
561
- .m-inputgroup > :last-child .m-inputnumber__input-wrap,
562
- .m-inputgroup > :last-child .m-input-field__control--prefixed,
563
- .m-inputgroup > :last-child .m-input-field__control--suffixed,
564
- .m-inputgroup > :last-child .m-input-field__control--clearable,
565
- .m-inputgroup > :last-child.m-inputgroup-addon {
566
- border-bottom-right-radius: var(--m-radius-control);
567
- border-top-right-radius: var(--m-radius-control);
568
- }
569
-
570
- .m-inputgroup > .m-inputgroup-addon + .m-input,
571
- .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
572
- .m-inputgroup > .m-input + .m-inputgroup-addon,
573
- .m-inputgroup > .m-input-field + .m-inputgroup-addon {
574
- margin-left: calc(var(--m-border-width) * -1);
575
- }
576
-
577
- .m-layout__scrollbar > .m-scrollbar__wrap {
578
- height: 100%;
579
- overflow-x: hidden;
580
- }
581
-
582
- .m-layout-sider__scrollbar > .m-scrollbar__wrap {
583
- height: 100%;
584
- overflow-x: hidden;
585
- }
586
-
587
- .m-terminal__scrollbar > .m-scrollbar__wrap {
588
- height: 100%;
589
- overflow-x: hidden;
590
- }
591
-
592
- .m-scroll-body.m-scrollbar {
593
- min-height: 0;
594
- min-width: 0;
595
- }
596
-
597
- /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
598
- .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
599
- width: 100%;
600
- }
601
-
602
- .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
603
- overflow: auto;
604
- }
605
-
606
- .m-orderlist__btn,
607
- .m-picklist__btn {
608
- align-items: center;
609
- background: var(--m-color-surface);
610
- border: var(--m-border-width) solid var(--m-color-border);
611
- border-radius: var(--m-radius-sm);
612
- color: var(--m-color-text);
613
- cursor: pointer;
614
- display: inline-flex;
615
- font: inherit;
616
- gap: 0;
617
- justify-content: center;
618
- min-height: var(--m-control-height-small, 1.75rem);
619
- min-width: var(--m-control-affix-size);
620
- padding: var(--m-space-1) var(--m-space-2);
621
- }
622
-
623
- .m-orderlist__btn:hover:not(:disabled),
624
- .m-picklist__btn:hover:not(:disabled) {
625
- border-color: var(--m-color-primary);
626
- color: var(--m-color-primary);
627
- }
628
-
629
- .m-orderlist__btn:disabled,
630
- .m-picklist__btn:disabled {
631
- cursor: not-allowed;
632
- opacity: var(--m-opacity-disabled);
633
- }
634
-
635
- .m-orderlist__btn:focus-visible,
636
- .m-picklist__btn:focus-visible {
637
- border-color: var(--m-color-primary);
638
- box-shadow: var(--m-focus-shadow);
639
- outline: none;
640
- }
641
-
642
- .m-picklist__btn .m-icon + .m-icon {
643
- margin-left: -0.35rem;
644
- }
645
-
646
- .m-orderlist__scrollbar,
647
- .m-picklist__scrollbar {
648
- flex: 1;
649
- max-height: 16rem;
650
- min-height: 12rem;
651
- min-width: var(--m-menu-min-width);
652
- }
653
-
654
- .m-orderlist__list,
655
- .m-picklist__list {
656
- background: var(--m-color-surface);
657
- border: var(--m-border-width) solid var(--m-color-border);
658
- border-radius: var(--m-radius-md);
659
- padding: var(--m-space-1);
660
- }
661
-
662
- .m-orderlist__options,
663
- .m-picklist__options {
664
- list-style: none;
665
- margin: 0;
666
- padding: 0;
667
- }
668
-
669
- .m-orderlist__item,
670
- .m-picklist__item {
671
- border-radius: var(--m-radius-sm);
672
- cursor: pointer;
673
- padding: var(--m-space-2) var(--m-space-3);
674
- }
675
-
676
- .m-orderlist__item:hover,
677
- .m-picklist__item:hover {
678
- background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
679
- }
680
-
681
- .m-orderlist__item:focus-visible,
682
- .m-picklist__item:focus-visible {
683
- box-shadow: var(--m-focus-shadow);
684
- outline: none;
685
- }
686
-
687
- .m-orderlist__item--selected,
688
- .m-picklist__item--selected {
689
- background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
690
- color: var(--m-color-primary);
691
- font-weight: 500;
692
- }
693
-
694
- .m-carousel__nav,
695
- .m-gallery__nav {
696
- background: var(--m-color-surface);
697
- border: var(--m-border-width) solid var(--m-color-border);
698
- border-radius: var(--m-radius-full, 999px);
699
- color: var(--m-color-text);
700
- cursor: pointer;
701
- flex: 0 0 auto;
702
- font: inherit;
703
- height: var(--m-control-affix-size);
704
- width: var(--m-control-affix-size);
705
- }
706
-
707
- .m-carousel__nav:disabled,
708
- .m-gallery__nav:disabled {
709
- cursor: not-allowed;
710
- opacity: var(--m-opacity-disabled);
711
- }
712
-
713
- /* Shared hover/focus for remaining form triggers */
714
- .m-inputotp__input:hover:not(:disabled):not(:focus),
715
- .m-cascadeselect:not(.m-cascadeselect--open)
716
- .m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
717
- .m-treeselect:not(.m-treeselect--open)
718
- .m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
719
- .m-inputcolor__text:hover:not(:disabled):not(:focus),
720
- .m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
721
- .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
722
- .m-inplace__display:hover:not(:focus-visible) {
723
- border-color: var(--m-color-primary-hover);
724
- }
725
-
726
- .m-inputotp__input:focus,
727
- .m-inputotp__input:focus-visible,
728
- .m-cascadeselect--open .m-cascadeselect__trigger,
729
- .m-cascadeselect__trigger:focus,
730
- .m-cascadeselect__trigger:focus-visible,
731
- .m-treeselect--open .m-treeselect__trigger,
732
- .m-treeselect__trigger:focus,
733
- .m-treeselect__trigger:focus-visible,
734
- .m-inputcolor__text:focus,
735
- .m-inputcolor__text:focus-visible,
736
- .m-inputtags:focus-within,
737
- .m-togglebutton:focus-visible,
738
- .m-selectbutton__button:focus-visible,
739
- .m-splitbutton__main:focus-visible,
740
- .m-splitbutton__trigger:focus-visible,
741
- .m-inplace__display:focus-visible,
742
- .m-pagination__button:focus-visible {
743
- border-color: var(--m-color-primary);
744
- box-shadow: var(--m-focus-shadow);
745
- outline: none;
746
- }
747
-
748
- .m-inputotp--invalid .m-inputotp__input:focus,
749
- .m-inputotp--invalid .m-inputotp__input:focus-visible,
750
- .m-inputtags--invalid:focus-within,
751
- .m-inputcolor--invalid .m-inputcolor__text:focus,
752
- .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
753
- border-color: var(--m-color-danger);
754
- box-shadow: var(--m-focus-shadow-danger);
755
- }
756
-
757
- .m-checkbox-group,
758
- .m-radio-group {
759
- display: flex;
760
- flex-wrap: wrap;
761
- gap: var(--m-space-3);
762
- }
763
-
764
- .m-checkbox--small .m-checkbox__control,
765
- .m-radio--small .m-radio__control {
766
- height: 0.95rem;
767
- width: 0.95rem;
768
- }
769
-
770
- .m-checkbox--large .m-checkbox__control,
771
- .m-radio--large .m-radio__control {
772
- height: 1.35rem;
773
- width: 1.35rem;
774
- }
775
-
776
- .m-inputnumber__clear,
777
- .m-autocomplete__clear {
778
- background: transparent;
779
- border: 0;
780
- color: var(--m-color-text-muted);
781
- cursor: pointer;
782
- font: inherit;
783
- line-height: 1;
784
- }
785
-
786
- [data-m-motion="none"] *,
787
- [data-m-motion="none"] *::before,
788
- [data-m-motion="none"] *::after {
789
- animation-duration: 0.01ms !important;
790
- animation-iteration-count: 1 !important;
791
- scroll-behavior: auto !important;
792
- transition-duration: 0.01ms !important;
793
- }
794
-
795
- [data-m-motion="reduced"] .m-progress-spinner,
796
- [data-m-motion="reduced"] .m-progress-spinner__circle,
797
- [data-m-motion="reduced"] .m-skeleton,
798
- [data-m-motion="reduced"] .m-badge--processing,
799
- [data-m-motion="reduced"] .m-icon--spin,
800
- [data-m-motion="reduced"] .m-button__spinner,
801
- [data-m-motion="reduced"] .m-select__loading-icon,
802
- [data-m-motion="reduced"] .m-switch__loading-icon {
803
- animation: none !important;
804
- }
1
+ /* Shared tokens consumption, type, focus, and mixed selectors. */
2
+
3
+ :root {
4
+ /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
5
+ --m-menu-min-width: 12rem;
6
+ }
7
+
8
+ .m-button,
9
+ .m-input,
10
+ .m-card,
11
+ .m-dialog,
12
+ .m-drawer,
13
+ .m-popover,
14
+ .m-accordion,
15
+ .m-scrollbar,
16
+ .m-panel,
17
+ .m-fieldset,
18
+ .m-flex,
19
+ .m-space,
20
+ .m-grid,
21
+ .m-layout,
22
+ .m-layout-header,
23
+ .m-layout-footer,
24
+ .m-layout-sider,
25
+ .m-splitter,
26
+ .m-stepper,
27
+ .m-toolbar,
28
+ .m-page-content,
29
+ .m-page-header,
30
+ .m-page-toolbar,
31
+ .m-menu,
32
+ .m-menubar,
33
+ .m-contextmenu,
34
+ .m-tieredmenu,
35
+ .m-dropdown,
36
+ .m-breadcrumb,
37
+ .m-tabs,
38
+ .m-datepicker,
39
+ .m-listbox,
40
+ .m-togglebutton,
41
+ .m-select,
42
+ .m-textarea,
43
+ .m-selectbutton,
44
+ .m-inputotp,
45
+ .m-knob,
46
+ .m-autocomplete,
47
+ .m-splitbutton,
48
+ .m-tree,
49
+ .m-timeline,
50
+ .m-dataview,
51
+ .m-confirmpopup,
52
+ .m-scrolltop,
53
+ .m-blockui,
54
+ .m-inplace,
55
+ .m-message,
56
+ .m-toast,
57
+ .m-tooltip,
58
+ .m-empty,
59
+ .m-result,
60
+ .m-progress-spinner,
61
+ .m-cascadeselect,
62
+ .m-treeselect,
63
+ .m-inputcolor,
64
+ .m-inputtags,
65
+ .m-label,
66
+ .m-speeddial,
67
+ .m-orderlist,
68
+ .m-picklist,
69
+ .m-virtualscroller,
70
+ .m-megamenu,
71
+ .m-dock,
72
+ .m-sidebar,
73
+ .m-commandmenu,
74
+ .m-fileupload,
75
+ .m-carousel,
76
+ .m-gallery,
77
+ .m-metergroup,
78
+ .m-fluid,
79
+ .m-terminal {
80
+ font-family: var(--m-font-sans);
81
+ box-sizing: border-box;
82
+ }
83
+
84
+ .m-input:disabled,
85
+ .m-textarea:disabled,
86
+ .m-password__input:disabled,
87
+ .m-inputnumber__input:disabled,
88
+ .m-inputotp__input:disabled,
89
+ .m-inputcolor__text:disabled,
90
+ .m-inputcolor__swatch:disabled,
91
+ .m-inputtags--disabled {
92
+ background-color: var(--m-color-bg-disabled);
93
+ color: var(--m-color-text-disabled);
94
+ cursor: not-allowed;
95
+ opacity: 1;
96
+ }
97
+
98
+ .m-input-field__control--prefixed .m-input:disabled,
99
+ .m-input-field__control--suffixed .m-input:disabled,
100
+ .m-input-field__control--clearable .m-input:disabled,
101
+ .m-password--disabled .m-password__input,
102
+ .m-inputnumber--disabled .m-inputnumber__input,
103
+ .m-datepicker--disabled .m-datepicker__input,
104
+ .m-icon-field--anchored .m-input:disabled,
105
+ .m-icon-field--anchored .m-textarea:disabled {
106
+ opacity: 1;
107
+ }
108
+
109
+ .m-input::placeholder,
110
+ .m-textarea::placeholder,
111
+ .m-password__input::placeholder,
112
+ .m-inputnumber__input::placeholder,
113
+ .m-inputtags__input::placeholder,
114
+ .m-inputcolor__text::placeholder {
115
+ color: var(--m-color-text-muted);
116
+ opacity: 1;
117
+ }
118
+
119
+ .m-input-field__meta,
120
+ .m-textarea-field__meta,
121
+ .m-password-field__meta {
122
+ align-items: baseline;
123
+ display: flex;
124
+ gap: var(--m-space-2);
125
+ justify-content: space-between;
126
+ }
127
+
128
+ .m-input-field__meta:not(:has(.m-input-field__help)),
129
+ .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
130
+ .m-password-field__meta:not(:has(.m-password__feedback)) {
131
+ justify-content: flex-end;
132
+ }
133
+
134
+ .m-input-field__count,
135
+ .m-textarea-field__count,
136
+ .m-password-field__count {
137
+ color: var(--m-color-text-muted);
138
+ flex: 0 0 auto;
139
+ font-size: var(--m-font-size-xs);
140
+ margin-left: auto;
141
+ }
142
+
143
+ .m-dropdown__item--parent {
144
+ align-items: center;
145
+ display: flex;
146
+ justify-content: space-between;
147
+ width: 100%;
148
+ }
149
+
150
+ .m-dropdown__icon,
151
+ .m-dropdown__caret,
152
+ .m-menu__icon,
153
+ .m-menubar__icon {
154
+ flex-shrink: 0;
155
+ }
156
+
157
+ .m-dropdown__submenu-wrap {
158
+ position: relative;
159
+ }
160
+
161
+ .m-dropdown__submenu {
162
+ --m-dropdown-submenu-max-height: min(18rem, 45vh);
163
+ background: var(--m-color-surface);
164
+ border: var(--m-border-width) solid var(--m-color-border);
165
+ border-radius: var(--m-radius-md);
166
+ box-shadow: var(--m-shadow-md);
167
+ max-height: var(--m-dropdown-submenu-max-height);
168
+ max-width: calc(100vw - 2 * var(--m-space-4));
169
+ min-width: 10rem;
170
+ overflow: hidden;
171
+ padding: var(--m-space-1);
172
+ /* Same as .m-dropdown__menu: size to content instead of being clamped
173
+ by the space left of the anchor in the viewport. */
174
+ width: max-content;
175
+ }
176
+
177
+ .m-dropdown__submenu--teleported {
178
+ position: fixed;
179
+ z-index: var(--m-z-dropdown);
180
+ }
181
+
182
+ .m-dropdown__submenu-scroll {
183
+ max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
184
+ min-height: 0;
185
+ }
186
+
187
+ .m-dropdown__submenu-view {
188
+ display: grid;
189
+ gap: var(--m-space-1);
190
+ }
191
+
192
+ .m-fade-enter-active,
193
+ .m-fade-leave-active {
194
+ transition: opacity var(--m-motion-exit) var(--m-motion-ease);
195
+ }
196
+
197
+ .m-fade-enter-from,
198
+ .m-fade-leave-to {
199
+ opacity: 0;
200
+ }
201
+
202
+ .m-scale-fade-enter-active {
203
+ transition:
204
+ opacity var(--m-motion-enter) var(--m-motion-ease),
205
+ transform var(--m-motion-enter) var(--m-motion-ease);
206
+ }
207
+
208
+ .m-scale-fade-leave-active {
209
+ transition:
210
+ opacity var(--m-motion-exit) var(--m-motion-ease),
211
+ transform var(--m-motion-exit) var(--m-motion-ease);
212
+ }
213
+
214
+ .m-scale-fade-enter-from,
215
+ .m-scale-fade-leave-to {
216
+ opacity: 0;
217
+ transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
218
+ }
219
+
220
+ .m-slide-fade-enter-active {
221
+ transition:
222
+ opacity var(--m-motion-enter) var(--m-motion-ease),
223
+ transform var(--m-motion-enter) var(--m-motion-ease);
224
+ }
225
+
226
+ .m-slide-fade-leave-active {
227
+ transition:
228
+ opacity var(--m-motion-exit) var(--m-motion-ease),
229
+ transform var(--m-motion-exit) var(--m-motion-ease);
230
+ }
231
+
232
+ .m-slide-fade-enter-from,
233
+ .m-slide-fade-leave-to {
234
+ opacity: 0;
235
+ transform: translateY(calc(var(--m-motion-distance) * -1));
236
+ }
237
+
238
+ /* Generic center zoom (opacity + scale on the transitioning root) */
239
+ .m-zoom-enter-active {
240
+ transition:
241
+ opacity var(--m-motion-enter) var(--m-motion-ease),
242
+ transform var(--m-motion-enter) var(--m-motion-ease);
243
+ }
244
+
245
+ .m-zoom-leave-active {
246
+ transition:
247
+ opacity var(--m-motion-exit) var(--m-motion-ease),
248
+ transform var(--m-motion-exit) var(--m-motion-ease);
249
+ }
250
+
251
+ .m-zoom-enter-from,
252
+ .m-zoom-leave-to {
253
+ opacity: 0;
254
+ transform: scale(0.95);
255
+ }
256
+
257
+ .m-slide-up-enter-active,
258
+ .m-slide-down-enter-active,
259
+ .m-slide-left-enter-active,
260
+ .m-slide-right-enter-active {
261
+ transition:
262
+ opacity var(--m-motion-enter) var(--m-motion-ease),
263
+ transform var(--m-motion-enter) var(--m-motion-ease);
264
+ }
265
+
266
+ .m-slide-up-leave-active,
267
+ .m-slide-down-leave-active,
268
+ .m-slide-left-leave-active,
269
+ .m-slide-right-leave-active {
270
+ transition:
271
+ opacity var(--m-motion-exit) var(--m-motion-ease),
272
+ transform var(--m-motion-exit) var(--m-motion-ease);
273
+ }
274
+
275
+ .m-slide-up-enter-from,
276
+ .m-slide-up-leave-to {
277
+ opacity: 0;
278
+ transform: translateY(var(--m-motion-distance));
279
+ }
280
+
281
+ .m-slide-down-enter-from,
282
+ .m-slide-down-leave-to {
283
+ opacity: 0;
284
+ transform: translateY(calc(var(--m-motion-distance) * -1));
285
+ }
286
+
287
+ .m-slide-left-enter-from,
288
+ .m-slide-left-leave-to {
289
+ opacity: 0;
290
+ transform: translateX(var(--m-motion-distance));
291
+ }
292
+
293
+ .m-slide-right-enter-from,
294
+ .m-slide-right-leave-to {
295
+ opacity: 0;
296
+ transform: translateX(calc(var(--m-motion-distance) * -1));
297
+ }
298
+
299
+ [data-m-motion="reduced"] .m-fade-enter-active,
300
+ [data-m-motion="reduced"] .m-fade-leave-active,
301
+ [data-m-motion="reduced"] .m-scale-fade-enter-active,
302
+ [data-m-motion="reduced"] .m-scale-fade-leave-active,
303
+ [data-m-motion="reduced"] .m-slide-fade-enter-active,
304
+ [data-m-motion="reduced"] .m-slide-fade-leave-active,
305
+ [data-m-motion="reduced"] .m-zoom-enter-active,
306
+ [data-m-motion="reduced"] .m-zoom-leave-active,
307
+ [data-m-motion="reduced"] .m-slide-up-enter-active,
308
+ [data-m-motion="reduced"] .m-slide-up-leave-active,
309
+ [data-m-motion="reduced"] .m-slide-down-enter-active,
310
+ [data-m-motion="reduced"] .m-slide-down-leave-active,
311
+ [data-m-motion="reduced"] .m-slide-left-enter-active,
312
+ [data-m-motion="reduced"] .m-slide-left-leave-active,
313
+ [data-m-motion="reduced"] .m-slide-right-enter-active,
314
+ [data-m-motion="reduced"] .m-slide-right-leave-active,
315
+ [data-m-motion="none"] .m-fade-enter-active,
316
+ [data-m-motion="none"] .m-fade-leave-active,
317
+ [data-m-motion="none"] .m-scale-fade-enter-active,
318
+ [data-m-motion="none"] .m-scale-fade-leave-active,
319
+ [data-m-motion="none"] .m-slide-fade-enter-active,
320
+ [data-m-motion="none"] .m-slide-fade-leave-active,
321
+ [data-m-motion="none"] .m-zoom-enter-active,
322
+ [data-m-motion="none"] .m-zoom-leave-active,
323
+ [data-m-motion="none"] .m-slide-up-enter-active,
324
+ [data-m-motion="none"] .m-slide-up-leave-active,
325
+ [data-m-motion="none"] .m-slide-down-enter-active,
326
+ [data-m-motion="none"] .m-slide-down-leave-active,
327
+ [data-m-motion="none"] .m-slide-left-enter-active,
328
+ [data-m-motion="none"] .m-slide-left-leave-active,
329
+ [data-m-motion="none"] .m-slide-right-enter-active,
330
+ [data-m-motion="none"] .m-slide-right-leave-active {
331
+ transition: none;
332
+ }
333
+
334
+ [data-m-motion="reduced"] .m-scale-fade-enter-from,
335
+ [data-m-motion="reduced"] .m-scale-fade-leave-to,
336
+ [data-m-motion="reduced"] .m-slide-fade-enter-from,
337
+ [data-m-motion="reduced"] .m-slide-fade-leave-to,
338
+ [data-m-motion="reduced"] .m-zoom-enter-from,
339
+ [data-m-motion="reduced"] .m-zoom-leave-to,
340
+ [data-m-motion="reduced"] .m-slide-up-enter-from,
341
+ [data-m-motion="reduced"] .m-slide-up-leave-to,
342
+ [data-m-motion="reduced"] .m-slide-down-enter-from,
343
+ [data-m-motion="reduced"] .m-slide-down-leave-to,
344
+ [data-m-motion="reduced"] .m-slide-left-enter-from,
345
+ [data-m-motion="reduced"] .m-slide-left-leave-to,
346
+ [data-m-motion="reduced"] .m-slide-right-enter-from,
347
+ [data-m-motion="reduced"] .m-slide-right-leave-to,
348
+ [data-m-motion="none"] .m-scale-fade-enter-from,
349
+ [data-m-motion="none"] .m-scale-fade-leave-to,
350
+ [data-m-motion="none"] .m-slide-fade-enter-from,
351
+ [data-m-motion="none"] .m-slide-fade-leave-to,
352
+ [data-m-motion="none"] .m-zoom-enter-from,
353
+ [data-m-motion="none"] .m-zoom-leave-to,
354
+ [data-m-motion="none"] .m-slide-up-enter-from,
355
+ [data-m-motion="none"] .m-slide-up-leave-to,
356
+ [data-m-motion="none"] .m-slide-down-enter-from,
357
+ [data-m-motion="none"] .m-slide-down-leave-to,
358
+ [data-m-motion="none"] .m-slide-left-enter-from,
359
+ [data-m-motion="none"] .m-slide-left-leave-to,
360
+ [data-m-motion="none"] .m-slide-right-enter-from,
361
+ [data-m-motion="none"] .m-slide-right-leave-to {
362
+ transform: none;
363
+ }
364
+
365
+ /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
366
+ @keyframes m-progress-spinner-rotate {
367
+ 100% {
368
+ transform: rotate(360deg);
369
+ }
370
+ }
371
+
372
+ .m-checkbox,
373
+ .m-radio,
374
+ .m-switch {
375
+ align-items: center;
376
+ color: var(--m-color-text);
377
+ cursor: pointer;
378
+ display: inline-flex;
379
+ font-family: var(--m-font-sans);
380
+ gap: var(--m-space-2);
381
+ /* 与输入框圆角保持一致,配合 MScrollbar 使用 */
382
+ position: relative;
383
+ }
384
+
385
+ .m-checkbox--disabled,
386
+ .m-radio--disabled,
387
+ .m-switch--disabled {
388
+ color: var(--m-color-text-disabled);
389
+ cursor: not-allowed;
390
+ opacity: 1;
391
+ }
392
+
393
+ .m-checkbox--invalid .m-checkbox__control,
394
+ .m-radio--invalid .m-radio__control {
395
+ border-color: var(--m-color-danger);
396
+ }
397
+
398
+ .m-checkbox__input,
399
+ .m-radio__input,
400
+ .m-switch__input {
401
+ clip: rect(0, 0, 0, 0);
402
+ clip-path: inset(50%);
403
+ height: 1px;
404
+ margin: -1px;
405
+ overflow: hidden;
406
+ opacity: 0;
407
+ position: absolute;
408
+ white-space: nowrap;
409
+ width: 1px;
410
+ }
411
+
412
+ .m-checkbox__control,
413
+ .m-radio__control {
414
+ align-items: center;
415
+ background: var(--m-color-surface);
416
+ border: var(--m-border-width) solid var(--m-color-border);
417
+ display: inline-flex;
418
+ flex: 0 0 auto;
419
+ height: var(--m-checkbox-control-size, 1.125rem);
420
+ justify-content: center;
421
+ transition:
422
+ background-color var(--m-motion-fast) var(--m-motion-ease),
423
+ border-color var(--m-motion-fast) var(--m-motion-ease),
424
+ box-shadow var(--m-motion-fast) var(--m-motion-ease);
425
+ width: var(--m-checkbox-control-size, 1.125rem);
426
+ }
427
+
428
+ .m-checkbox__input:checked + .m-checkbox__control,
429
+ .m-radio__input:checked + .m-radio__control {
430
+ background: var(--m-color-primary);
431
+ border-color: var(--m-color-primary);
432
+ }
433
+
434
+ .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
435
+ .m-radio:not(.m-radio--disabled):hover .m-radio__control {
436
+ border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
437
+ }
438
+
439
+ .m-checkbox__input:focus-visible + .m-checkbox__control,
440
+ .m-radio__input:focus-visible + .m-radio__control,
441
+ .m-switch__input:focus-visible + .m-switch__track {
442
+ box-shadow: var(--m-focus-shadow);
443
+ outline: none;
444
+ }
445
+
446
+ .m-checkbox__label,
447
+ .m-radio__label,
448
+ .m-switch__label {
449
+ font-size: var(--m-font-size-md);
450
+ }
451
+
452
+ .m-textarea-field,
453
+ .m-select-field {
454
+ display: grid;
455
+ font-family: var(--m-font-sans);
456
+ gap: var(--m-space-2);
457
+ max-width: 100%;
458
+ min-width: var(--m-menu-min-width);
459
+ position: relative;
460
+ width: fit-content;
461
+ }
462
+
463
+ .m-textarea-field--fluid,
464
+ .m-select-field--fluid {
465
+ width: 100%;
466
+ }
467
+
468
+ .m-textarea-field__label,
469
+ .m-select-field__label {
470
+ color: var(--m-color-text);
471
+ font-family: var(--m-font-sans);
472
+ font-size: var(--m-font-size-md);
473
+ font-weight: 500;
474
+ }
475
+
476
+ .m-textarea-field__help,
477
+ .m-select-field__help {
478
+ color: var(--m-color-text-muted);
479
+ font-size: var(--m-font-size-xs);
480
+ }
481
+
482
+ .m-textarea-field__help--invalid,
483
+ .m-select-field__help--invalid {
484
+ color: var(--m-color-danger);
485
+ }
486
+
487
+ .m-textarea,
488
+ .m-select {
489
+ background: var(--m-color-surface);
490
+ border: var(--m-border-width) solid var(--m-color-border);
491
+ border-radius: var(--m-radius-control);
492
+ color: var(--m-color-text);
493
+ font: inherit;
494
+ transition:
495
+ border-color var(--m-motion-fast) var(--m-motion-ease),
496
+ box-shadow var(--m-motion-fast) var(--m-motion-ease),
497
+ background-color var(--m-motion-fast) var(--m-motion-ease);
498
+ width: 100%;
499
+ }
500
+
501
+ .m-textarea--invalid:focus,
502
+ .m-textarea--invalid:focus-visible,
503
+ .m-select--invalid.m-select--open,
504
+ .m-select--invalid:focus,
505
+ .m-select--invalid:focus-visible {
506
+ border-color: var(--m-color-danger);
507
+ box-shadow: var(--m-focus-shadow-danger);
508
+ }
509
+
510
+ .m-textarea:disabled,
511
+ .m-select:disabled,
512
+ .m-select--disabled {
513
+ background-color: var(--m-color-bg-disabled);
514
+ color: var(--m-color-text-disabled);
515
+ cursor: not-allowed;
516
+ opacity: 1;
517
+ }
518
+
519
+ .m-inputgroup > .m-input,
520
+ .m-inputgroup > .m-input-field,
521
+ .m-inputgroup > .m-password-field,
522
+ .m-inputgroup > .m-inputnumber-field {
523
+ flex: 1 1 auto;
524
+ min-width: 0;
525
+ }
526
+
527
+ .m-inputgroup > .m-input-field,
528
+ .m-inputgroup > .m-password-field,
529
+ .m-inputgroup > .m-inputnumber-field {
530
+ display: flex;
531
+ flex-direction: column;
532
+ gap: 0;
533
+ }
534
+
535
+ .m-inputgroup > .m-input,
536
+ .m-inputgroup .m-input,
537
+ .m-inputgroup .m-password,
538
+ .m-inputgroup .m-inputnumber__input-wrap,
539
+ .m-inputgroup .m-input-field__control--prefixed,
540
+ .m-inputgroup .m-input-field__control--suffixed,
541
+ .m-inputgroup .m-input-field__control--clearable {
542
+ border-radius: 0;
543
+ width: 100%;
544
+ }
545
+
546
+ .m-inputgroup > :first-child.m-input,
547
+ .m-inputgroup > :first-child .m-input,
548
+ .m-inputgroup > :first-child .m-password,
549
+ .m-inputgroup > :first-child .m-inputnumber__input-wrap,
550
+ .m-inputgroup > :first-child .m-input-field__control--prefixed,
551
+ .m-inputgroup > :first-child .m-input-field__control--suffixed,
552
+ .m-inputgroup > :first-child .m-input-field__control--clearable,
553
+ .m-inputgroup > :first-child.m-inputgroup-addon {
554
+ border-bottom-left-radius: var(--m-radius-control);
555
+ border-top-left-radius: var(--m-radius-control);
556
+ }
557
+
558
+ .m-inputgroup > :last-child.m-input,
559
+ .m-inputgroup > :last-child .m-input,
560
+ .m-inputgroup > :last-child .m-password,
561
+ .m-inputgroup > :last-child .m-inputnumber__input-wrap,
562
+ .m-inputgroup > :last-child .m-input-field__control--prefixed,
563
+ .m-inputgroup > :last-child .m-input-field__control--suffixed,
564
+ .m-inputgroup > :last-child .m-input-field__control--clearable,
565
+ .m-inputgroup > :last-child.m-inputgroup-addon {
566
+ border-bottom-right-radius: var(--m-radius-control);
567
+ border-top-right-radius: var(--m-radius-control);
568
+ }
569
+
570
+ .m-inputgroup > .m-inputgroup-addon + .m-input,
571
+ .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
572
+ .m-inputgroup > .m-input + .m-inputgroup-addon,
573
+ .m-inputgroup > .m-input-field + .m-inputgroup-addon {
574
+ margin-left: calc(var(--m-border-width) * -1);
575
+ }
576
+
577
+ .m-layout__scrollbar > .m-scrollbar__wrap {
578
+ height: 100%;
579
+ overflow-x: hidden;
580
+ }
581
+
582
+ .m-layout-sider__scrollbar > .m-scrollbar__wrap {
583
+ height: 100%;
584
+ overflow-x: hidden;
585
+ }
586
+
587
+ .m-terminal__scrollbar > .m-scrollbar__wrap {
588
+ height: 100%;
589
+ overflow-x: hidden;
590
+ }
591
+
592
+ .m-scroll-body.m-scrollbar {
593
+ min-height: 0;
594
+ min-width: 0;
595
+ }
596
+
597
+ /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
598
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
599
+ width: 100%;
600
+ }
601
+
602
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
603
+ overflow: auto;
604
+ }
605
+
606
+ .m-orderlist__btn,
607
+ .m-picklist__btn {
608
+ align-items: center;
609
+ background: var(--m-color-surface);
610
+ border: var(--m-border-width) solid var(--m-color-border);
611
+ border-radius: var(--m-radius-sm);
612
+ color: var(--m-color-text);
613
+ cursor: pointer;
614
+ display: inline-flex;
615
+ font: inherit;
616
+ gap: 0;
617
+ justify-content: center;
618
+ min-height: var(--m-control-height-small, 1.75rem);
619
+ min-width: var(--m-control-affix-size);
620
+ padding: var(--m-space-1) var(--m-space-2);
621
+ }
622
+
623
+ .m-orderlist__btn:hover:not(:disabled),
624
+ .m-picklist__btn:hover:not(:disabled) {
625
+ border-color: var(--m-color-primary);
626
+ color: var(--m-color-primary);
627
+ }
628
+
629
+ .m-orderlist__btn:disabled,
630
+ .m-picklist__btn:disabled {
631
+ cursor: not-allowed;
632
+ opacity: var(--m-opacity-disabled);
633
+ }
634
+
635
+ .m-orderlist__btn:focus-visible,
636
+ .m-picklist__btn:focus-visible {
637
+ border-color: var(--m-color-primary);
638
+ box-shadow: var(--m-focus-shadow);
639
+ outline: none;
640
+ }
641
+
642
+ .m-picklist__btn .m-icon + .m-icon {
643
+ margin-left: -0.35rem;
644
+ }
645
+
646
+ .m-orderlist__scrollbar,
647
+ .m-picklist__scrollbar {
648
+ flex: 1;
649
+ max-height: 16rem;
650
+ min-height: 12rem;
651
+ min-width: var(--m-menu-min-width);
652
+ }
653
+
654
+ .m-orderlist__list,
655
+ .m-picklist__list {
656
+ background: var(--m-color-surface);
657
+ border: var(--m-border-width) solid var(--m-color-border);
658
+ border-radius: var(--m-radius-md);
659
+ padding: var(--m-space-1);
660
+ }
661
+
662
+ .m-orderlist__options,
663
+ .m-picklist__options {
664
+ list-style: none;
665
+ margin: 0;
666
+ padding: 0;
667
+ }
668
+
669
+ .m-orderlist__item,
670
+ .m-picklist__item {
671
+ border-radius: var(--m-radius-sm);
672
+ cursor: pointer;
673
+ padding: var(--m-space-2) var(--m-space-3);
674
+ }
675
+
676
+ .m-orderlist__item:hover,
677
+ .m-picklist__item:hover {
678
+ background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
679
+ }
680
+
681
+ .m-orderlist__item:focus-visible,
682
+ .m-picklist__item:focus-visible {
683
+ box-shadow: var(--m-focus-shadow);
684
+ outline: none;
685
+ }
686
+
687
+ .m-orderlist__item--selected,
688
+ .m-picklist__item--selected {
689
+ background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
690
+ color: var(--m-color-primary);
691
+ font-weight: 500;
692
+ }
693
+
694
+ .m-carousel__nav,
695
+ .m-gallery__nav {
696
+ background: var(--m-color-surface);
697
+ border: var(--m-border-width) solid var(--m-color-border);
698
+ border-radius: var(--m-radius-full, 999px);
699
+ color: var(--m-color-text);
700
+ cursor: pointer;
701
+ flex: 0 0 auto;
702
+ font: inherit;
703
+ height: var(--m-control-affix-size);
704
+ width: var(--m-control-affix-size);
705
+ }
706
+
707
+ .m-carousel__nav:disabled,
708
+ .m-gallery__nav:disabled {
709
+ cursor: not-allowed;
710
+ opacity: var(--m-opacity-disabled);
711
+ }
712
+
713
+ /* Shared hover/focus for remaining form triggers */
714
+ .m-inputotp__input:hover:not(:disabled):not(:focus),
715
+ .m-cascadeselect:not(.m-cascadeselect--open)
716
+ .m-cascadeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
717
+ .m-treeselect:not(.m-treeselect--open)
718
+ .m-treeselect__trigger:hover:not(:disabled):not(:focus):not(:focus-visible),
719
+ .m-inputcolor__text:hover:not(:disabled):not(:focus),
720
+ .m-inputtags:hover:not(.m-inputtags--disabled):not(:focus-within),
721
+ .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked):not(:focus-visible),
722
+ .m-inplace__display:hover:not(:focus-visible) {
723
+ border-color: var(--m-color-primary-hover);
724
+ }
725
+
726
+ .m-inputotp__input:focus,
727
+ .m-inputotp__input:focus-visible,
728
+ .m-cascadeselect--open .m-cascadeselect__trigger,
729
+ .m-cascadeselect__trigger:focus,
730
+ .m-cascadeselect__trigger:focus-visible,
731
+ .m-treeselect--open .m-treeselect__trigger,
732
+ .m-treeselect__trigger:focus,
733
+ .m-treeselect__trigger:focus-visible,
734
+ .m-inputcolor__text:focus,
735
+ .m-inputcolor__text:focus-visible,
736
+ .m-inputtags:focus-within,
737
+ .m-togglebutton:focus-visible,
738
+ .m-selectbutton__button:focus-visible,
739
+ .m-splitbutton__main:focus-visible,
740
+ .m-splitbutton__trigger:focus-visible,
741
+ .m-inplace__display:focus-visible,
742
+ .m-pagination__button:focus-visible {
743
+ border-color: var(--m-color-primary);
744
+ box-shadow: var(--m-focus-shadow);
745
+ outline: none;
746
+ }
747
+
748
+ .m-inputotp--invalid .m-inputotp__input:focus,
749
+ .m-inputotp--invalid .m-inputotp__input:focus-visible,
750
+ .m-inputtags--invalid:focus-within,
751
+ .m-inputcolor--invalid .m-inputcolor__text:focus,
752
+ .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
753
+ border-color: var(--m-color-danger);
754
+ box-shadow: var(--m-focus-shadow-danger);
755
+ }
756
+
757
+ .m-checkbox-group,
758
+ .m-radio-group {
759
+ display: flex;
760
+ flex-wrap: wrap;
761
+ gap: var(--m-space-3);
762
+ }
763
+
764
+ .m-checkbox--small .m-checkbox__control,
765
+ .m-radio--small .m-radio__control {
766
+ height: 0.95rem;
767
+ width: 0.95rem;
768
+ }
769
+
770
+ .m-checkbox--large .m-checkbox__control,
771
+ .m-radio--large .m-radio__control {
772
+ height: 1.35rem;
773
+ width: 1.35rem;
774
+ }
775
+
776
+ .m-inputnumber__clear,
777
+ .m-autocomplete__clear {
778
+ background: transparent;
779
+ border: 0;
780
+ color: var(--m-color-text-muted);
781
+ cursor: pointer;
782
+ font: inherit;
783
+ line-height: 1;
784
+ }
785
+
786
+ [data-m-motion="none"] *,
787
+ [data-m-motion="none"] *::before,
788
+ [data-m-motion="none"] *::after {
789
+ animation-duration: 0.01ms !important;
790
+ animation-iteration-count: 1 !important;
791
+ scroll-behavior: auto !important;
792
+ transition-duration: 0.01ms !important;
793
+ }
794
+
795
+ [data-m-motion="reduced"] .m-progress-spinner,
796
+ [data-m-motion="reduced"] .m-progress-spinner__circle,
797
+ [data-m-motion="reduced"] .m-skeleton,
798
+ [data-m-motion="reduced"] .m-badge--processing,
799
+ [data-m-motion="reduced"] .m-icon--spin,
800
+ [data-m-motion="reduced"] .m-button__spinner,
801
+ [data-m-motion="reduced"] .m-select__loading-icon,
802
+ [data-m-motion="reduced"] .m-switch__loading-icon {
803
+ animation: none !important;
804
+ }