morya-ui 0.3.3 → 0.3.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 (260) hide show
  1. package/CHANGELOG.md +530 -516
  2. package/LICENSE +21 -21
  3. package/README.md +150 -150
  4. package/README.zh-CN.md +150 -150
  5. package/dist/{Button-gBiRj7wz.js → Button-3vJoiEQC.js} +1 -1
  6. package/dist/{Checkbox-BzbAUfyZ.js → Checkbox-B2gcDJHM.js} +1 -1
  7. package/dist/{Empty-C5tndBOm.js → Empty-5pTDp3ZM.js} +1 -1
  8. package/dist/{FlyoutSubmenu-H_741alW.js → FlyoutSubmenu-C_OrDaPN.js} +1 -1
  9. package/dist/{Loading-qS2Yv_gm.js → Loading-Ba-Js5-u.js} +3 -3
  10. package/dist/{Pagination-Bvv2qvEK.js → Pagination-lJ7cce6g.js} +2 -2
  11. package/dist/{Popover-rnZG_ap0.js → Popover-CQ2VYpFJ.js} +2 -2
  12. package/dist/{Radio-rF6zdR5Y.js → Radio-BbJ_Jyil.js} +1 -1
  13. package/dist/{Select-CiXd074W.js → Select-DyxORH6Q.js} +3 -3
  14. package/dist/{Tooltip-B02o9BOW.js → Tooltip-D3WUemno.js} +2 -2
  15. package/dist/accordion/style.css +1148 -1148
  16. package/dist/auto-complete/index.js +3 -3
  17. package/dist/auto-complete/style.css +1690 -1690
  18. package/dist/avatar/style.css +1261 -1261
  19. package/dist/badge/style.css +1315 -1315
  20. package/dist/block-ui/index.js +1 -1
  21. package/dist/block-ui/style.css +1148 -1148
  22. package/dist/breadcrumb/index.js +1 -1
  23. package/dist/breadcrumb/style.css +1148 -1148
  24. package/dist/button/index.js +1 -1
  25. package/dist/button/style.css +2134 -2134
  26. package/dist/card/style.css +1148 -1148
  27. package/dist/carousel/index.js +1 -1
  28. package/dist/carousel/style.css +1249 -1249
  29. package/dist/cascade-select/index.js +3 -3
  30. package/dist/cascade-select/style.css +1839 -1839
  31. package/dist/checkbox/index.js +1 -1
  32. package/dist/checkbox/style.css +1148 -1148
  33. package/dist/chip/index.js +1 -1
  34. package/dist/chip/style.css +1292 -1292
  35. package/dist/command-menu/index.js +3 -3
  36. package/dist/command-menu/style.css +1381 -1381
  37. package/dist/components/AutoComplete/styles.css +209 -209
  38. package/dist/components/Avatar/styles.css +113 -113
  39. package/dist/components/Badge/styles.css +165 -165
  40. package/dist/components/Button/styles.css +962 -962
  41. package/dist/components/Carousel/styles.css +101 -101
  42. package/dist/components/CascadeSelect/styles.css +157 -157
  43. package/dist/components/Chip/styles.css +144 -144
  44. package/dist/components/CommandMenu/styles.css +102 -102
  45. package/dist/components/ConfigProvider/styles.css +6 -6
  46. package/dist/components/ConfirmDialog/styles.css +24 -24
  47. package/dist/components/ConfirmPopup/styles.css +35 -35
  48. package/dist/components/ContextMenu/styles.css +138 -138
  49. package/dist/components/DatePicker/styles.css +335 -335
  50. package/dist/components/Dialog/styles.css +421 -421
  51. package/dist/components/Dock/styles.css +84 -84
  52. package/dist/components/Drawer/styles.css +334 -334
  53. package/dist/components/Dropdown/styles.css +130 -130
  54. package/dist/components/Empty/styles.css +146 -146
  55. package/dist/components/FileUpload/styles.css +359 -359
  56. package/dist/components/Form/styles.css +114 -114
  57. package/dist/components/Gallery/styles.css +100 -100
  58. package/dist/components/Input/styles.css +356 -356
  59. package/dist/components/InputColor/styles.css +129 -129
  60. package/dist/components/InputNumber/styles.css +261 -261
  61. package/dist/components/InputPassword/styles.css +178 -178
  62. package/dist/components/InputTags/styles.css +112 -112
  63. package/dist/components/Layout/styles.css +433 -433
  64. package/dist/components/Loading/styles.css +378 -378
  65. package/dist/components/MegaMenu/styles.css +97 -97
  66. package/dist/components/Menu/styles.css +564 -564
  67. package/dist/components/Menubar/styles.css +144 -144
  68. package/dist/components/Message/styles.css +250 -250
  69. package/dist/components/MeterGroup/styles.css +49 -49
  70. package/dist/components/Page/PageContent.vue.d.ts +1 -0
  71. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  72. package/dist/components/Page/PageFilters.vue.d.ts +5 -3
  73. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  74. package/dist/components/Page/styles.css +430 -394
  75. package/dist/components/Page/types.d.ts +7 -2
  76. package/dist/components/Page/types.d.ts.map +1 -1
  77. package/dist/components/Pagination/styles.css +105 -105
  78. package/dist/components/Popover/styles.css +92 -92
  79. package/dist/components/Result/styles.css +146 -146
  80. package/dist/components/Scrollbar/styles.css +131 -131
  81. package/dist/components/Select/styles.css +192 -192
  82. package/dist/components/SelectButton/styles.css +105 -105
  83. package/dist/components/Sidebar/styles.css +74 -74
  84. package/dist/components/Slider/styles.css +211 -211
  85. package/dist/components/SplitButton/styles.css +216 -216
  86. package/dist/components/Status/styles.css +191 -191
  87. package/dist/components/Stepper/styles.css +135 -135
  88. package/dist/components/Switch/styles.css +129 -129
  89. package/dist/components/Table/Table.vue.d.ts +1 -0
  90. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  91. package/dist/components/Table/styles.css +28 -0
  92. package/dist/components/Table/types.d.ts +6 -0
  93. package/dist/components/Table/types.d.ts.map +1 -1
  94. package/dist/components/Tabs/styles.css +131 -131
  95. package/dist/components/Terminal/styles.css +74 -74
  96. package/dist/components/Textarea/styles.css +126 -126
  97. package/dist/components/TieredMenu/styles.css +125 -125
  98. package/dist/components/Timeline/styles.css +159 -159
  99. package/dist/components/TreeSelect/styles.css +161 -161
  100. package/dist/components/TreeTable/styles.css +97 -97
  101. package/dist/components/VirtualScroller/styles.css +27 -27
  102. package/dist/{config-CapALqt3.js → config-De8ueCY-.js} +2 -0
  103. package/dist/config-provider/index.js +1 -1
  104. package/dist/config-provider/style.css +2472 -2472
  105. package/dist/confirm-dialog/index.js +4 -4
  106. package/dist/confirm-dialog/style.css +2555 -2555
  107. package/dist/confirm-popup/index.js +4 -4
  108. package/dist/confirm-popup/style.css +2145 -2145
  109. package/dist/context-menu/index.js +3 -3
  110. package/dist/context-menu/style.css +1417 -1417
  111. package/dist/data-view/index.js +3 -3
  112. package/dist/data-view/style.css +1631 -1631
  113. package/dist/date-picker/index.js +3 -3
  114. package/dist/date-picker/style.css +1483 -1483
  115. package/dist/dialog/index.js +4 -4
  116. package/dist/dialog/style.css +2531 -2531
  117. package/dist/divider/style.css +1148 -1148
  118. package/dist/dock/style.css +1232 -1232
  119. package/dist/drawer/index.js +3 -3
  120. package/dist/drawer/style.css +1482 -1482
  121. package/dist/dropdown/index.js +4 -4
  122. package/dist/dropdown/style.css +1409 -1409
  123. package/dist/empty/index.js +1 -1
  124. package/dist/empty/style.css +1294 -1294
  125. package/dist/fieldset/style.css +1148 -1148
  126. package/dist/file-upload/index.js +1 -1
  127. package/dist/file-upload/style.css +1507 -1507
  128. package/dist/flex/index.js +2 -2
  129. package/dist/flex/style.css +1148 -1148
  130. package/dist/float-label/style.css +1148 -1148
  131. package/dist/fluid/style.css +1148 -1148
  132. package/dist/form/index.js +1 -1
  133. package/dist/form/style.css +1264 -1264
  134. package/dist/gallery/index.js +1 -1
  135. package/dist/gallery/style.css +1379 -1379
  136. package/dist/grid/index.js +1 -1
  137. package/dist/grid/style.css +1148 -1148
  138. package/dist/icon/style.css +1148 -1148
  139. package/dist/icon-field/style.css +1504 -1504
  140. package/dist/index.js +1235 -1215
  141. package/dist/inplace/style.css +1148 -1148
  142. package/dist/input/index.js +2 -2
  143. package/dist/input/style.css +1504 -1504
  144. package/dist/input-color/index.js +2 -2
  145. package/dist/input-color/style.css +1279 -1279
  146. package/dist/input-group/style.css +1148 -1148
  147. package/dist/input-number/index.js +2 -2
  148. package/dist/input-number/style.css +1409 -1409
  149. package/dist/input-otp/index.js +2 -2
  150. package/dist/input-otp/style.css +1148 -1148
  151. package/dist/input-password/index.js +2 -2
  152. package/dist/input-password/style.css +1326 -1326
  153. package/dist/input-tags/index.js +2 -2
  154. package/dist/input-tags/style.css +1260 -1260
  155. package/dist/knob/style.css +1148 -1148
  156. package/dist/label/style.css +1148 -1148
  157. package/dist/layout/index.js +1 -1
  158. package/dist/layout/style.css +1712 -1712
  159. package/dist/listbox/index.js +2 -2
  160. package/dist/listbox/style.css +1306 -1306
  161. package/dist/loading/index.js +1 -1
  162. package/dist/loading/style.css +1528 -1528
  163. package/dist/locale/en-US.d.ts.map +1 -1
  164. package/dist/locale/types.d.ts +4 -0
  165. package/dist/locale/types.d.ts.map +1 -1
  166. package/dist/locale/zh-CN.d.ts.map +1 -1
  167. package/dist/{locale-Bzm2nbEp.js → locale-xavS6-Hw.js} +1 -1
  168. package/dist/mega-menu/index.js +3 -3
  169. package/dist/mega-menu/style.css +1245 -1245
  170. package/dist/menu/index.js +4 -4
  171. package/dist/menu/style.css +2001 -2001
  172. package/dist/menubar/index.js +3 -3
  173. package/dist/menubar/style.css +1423 -1423
  174. package/dist/message/index.js +3 -3
  175. package/dist/message/style.css +1398 -1398
  176. package/dist/meter-group/style.css +1199 -1199
  177. package/dist/order-list/index.js +1 -1
  178. package/dist/order-list/style.css +1148 -1148
  179. package/dist/page/index.js +70 -54
  180. package/dist/page/style.css +2803 -2767
  181. package/dist/pagination/index.js +1 -1
  182. package/dist/pagination/style.css +1445 -1445
  183. package/dist/panel/index.js +1 -1
  184. package/dist/panel/style.css +1148 -1148
  185. package/dist/pick-list/index.js +1 -1
  186. package/dist/pick-list/style.css +1148 -1148
  187. package/dist/popover/index.js +1 -1
  188. package/dist/popover/style.css +1242 -1242
  189. package/dist/progress-bar/style.css +1148 -1148
  190. package/dist/progress-spinner/index.js +1 -1
  191. package/dist/progress-spinner/style.css +1148 -1148
  192. package/dist/radio/index.js +1 -1
  193. package/dist/radio/style.css +1148 -1148
  194. package/dist/rating/index.js +2 -2
  195. package/dist/rating/style.css +1148 -1148
  196. package/dist/result/index.js +1 -1
  197. package/dist/result/style.css +1294 -1294
  198. package/dist/scroll-top/index.js +2 -2
  199. package/dist/scroll-top/style.css +1279 -1279
  200. package/dist/scrollbar/style.css +1281 -1281
  201. package/dist/select/index.js +1 -1
  202. package/dist/select/style.css +1901 -1901
  203. package/dist/select-button/index.js +1 -1
  204. package/dist/select-button/style.css +1255 -1255
  205. package/dist/shared/gap.d.ts +4 -1
  206. package/dist/shared/gap.d.ts.map +1 -1
  207. package/dist/shared/styles/control-affix-icon.css +110 -110
  208. package/dist/shared/styles/control-suffix.css +118 -118
  209. package/dist/shared/styles/select-overlay.css +175 -175
  210. package/dist/sidebar/index.js +1 -1
  211. package/dist/sidebar/style.css +1222 -1222
  212. package/dist/skeleton/style.css +1148 -1148
  213. package/dist/slider/index.js +2 -2
  214. package/dist/slider/style.css +1361 -1361
  215. package/dist/space/index.js +2 -2
  216. package/dist/space/style.css +1148 -1148
  217. package/dist/speed-dial/index.js +3 -3
  218. package/dist/speed-dial/style.css +1148 -1148
  219. package/dist/split-button/index.js +3 -3
  220. package/dist/split-button/style.css +2326 -2326
  221. package/dist/splitter/index.js +1 -1
  222. package/dist/splitter/style.css +1148 -1148
  223. package/dist/status/index.js +1 -1
  224. package/dist/status/style.css +1339 -1339
  225. package/dist/stepper/style.css +1283 -1283
  226. package/dist/styles/base.css +790 -790
  227. package/dist/styles.css +1 -1
  228. package/dist/switch/index.js +1 -1
  229. package/dist/switch/style.css +1279 -1279
  230. package/dist/table/index.js +249 -244
  231. package/dist/table/style.css +1840 -1812
  232. package/dist/tabs/index.js +1 -1
  233. package/dist/tabs/style.css +1410 -1410
  234. package/dist/tag/index.js +2 -2
  235. package/dist/tag/style.css +1148 -1148
  236. package/dist/terminal/index.js +1 -1
  237. package/dist/terminal/style.css +1224 -1224
  238. package/dist/textarea/index.js +2 -2
  239. package/dist/textarea/style.css +1274 -1274
  240. package/dist/theme/styles.css +358 -358
  241. package/dist/tiered-menu/index.js +3 -3
  242. package/dist/tiered-menu/style.css +1404 -1404
  243. package/dist/timeline/style.css +1438 -1438
  244. package/dist/toast/index.js +3 -3
  245. package/dist/toast/style.css +1148 -1148
  246. package/dist/toggle-button/index.js +1 -1
  247. package/dist/toggle-button/style.css +1148 -1148
  248. package/dist/toolbar/style.css +1148 -1148
  249. package/dist/tooltip/index.js +1 -1
  250. package/dist/tooltip/style.css +1148 -1148
  251. package/dist/tree/index.js +2 -2
  252. package/dist/tree/style.css +1148 -1148
  253. package/dist/tree-select/index.js +4 -4
  254. package/dist/tree-select/style.css +1843 -1843
  255. package/dist/tree-table/index.js +1 -1
  256. package/dist/tree-table/style.css +1245 -1245
  257. package/dist/{useMotionTransition-95Y79FoL.js → useMotionTransition-tW0yeJsy.js} +1 -1
  258. package/dist/virtual-scroller/style.css +1309 -1309
  259. package/dist/{vnode-C7Y1SjKB.js → vnode-CmdNQlN7.js} +18 -23
  260. package/package.json +1 -1
@@ -1,790 +1,790 @@
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-treetable,
71
- .m-megamenu,
72
- .m-dock,
73
- .m-sidebar,
74
- .m-commandmenu,
75
- .m-fileupload,
76
- .m-carousel,
77
- .m-gallery,
78
- .m-metergroup,
79
- .m-fluid,
80
- .m-terminal {
81
- font-family: var(--m-font-sans);
82
- box-sizing: border-box;
83
- }
84
-
85
- .m-button:disabled,
86
- .m-input:disabled,
87
- .m-password__input:disabled,
88
- .m-inputnumber__input:disabled,
89
- .m-inputotp__input:disabled,
90
- .m-inputcolor__text:disabled,
91
- .m-inputcolor__swatch:disabled,
92
- .m-inputtags--disabled {
93
- cursor: not-allowed;
94
- opacity: var(--m-opacity-disabled);
95
- }
96
-
97
- .m-input-field__control--prefixed .m-input:disabled,
98
- .m-input-field__control--suffixed .m-input:disabled,
99
- .m-input-field__control--clearable .m-input:disabled,
100
- .m-password--disabled .m-password__input,
101
- .m-inputnumber--disabled .m-inputnumber__input,
102
- .m-datepicker--disabled .m-datepicker__input,
103
- .m-icon-field--anchored .m-input:disabled,
104
- .m-icon-field--anchored .m-textarea:disabled {
105
- opacity: 1;
106
- }
107
-
108
- .m-input::placeholder,
109
- .m-textarea::placeholder,
110
- .m-password__input::placeholder,
111
- .m-inputnumber__input::placeholder,
112
- .m-inputtags__input::placeholder,
113
- .m-inputcolor__text::placeholder {
114
- color: var(--m-color-text-muted);
115
- opacity: 1;
116
- }
117
-
118
- .m-input-field__meta,
119
- .m-textarea-field__meta,
120
- .m-password-field__meta {
121
- align-items: baseline;
122
- display: flex;
123
- gap: var(--m-space-2);
124
- justify-content: space-between;
125
- }
126
-
127
- .m-input-field__meta:not(:has(.m-input-field__help)),
128
- .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
129
- .m-password-field__meta:not(:has(.m-password__feedback)) {
130
- justify-content: flex-end;
131
- }
132
-
133
- .m-input-field__count,
134
- .m-textarea-field__count,
135
- .m-password-field__count {
136
- color: var(--m-color-text-muted);
137
- flex: 0 0 auto;
138
- font-size: var(--m-font-size-xs);
139
- margin-left: auto;
140
- }
141
-
142
- .m-dropdown__item--parent {
143
- align-items: center;
144
- display: flex;
145
- justify-content: space-between;
146
- width: 100%;
147
- }
148
-
149
- .m-dropdown__icon,
150
- .m-dropdown__caret,
151
- .m-menu__icon,
152
- .m-menubar__icon {
153
- flex-shrink: 0;
154
- }
155
-
156
- .m-dropdown__submenu-wrap {
157
- position: relative;
158
- }
159
-
160
- .m-dropdown__submenu {
161
- --m-dropdown-submenu-max-height: min(18rem, 45vh);
162
- background: var(--m-color-surface);
163
- border: var(--m-border-width) solid var(--m-color-border);
164
- border-radius: var(--m-radius-md);
165
- box-shadow: var(--m-shadow-md);
166
- max-height: var(--m-dropdown-submenu-max-height);
167
- max-width: calc(100vw - 2 * var(--m-space-4));
168
- min-width: 10rem;
169
- overflow: hidden;
170
- padding: var(--m-space-1);
171
- /* Same as .m-dropdown__menu: size to content instead of being clamped
172
- by the space left of the anchor in the viewport. */
173
- width: max-content;
174
- }
175
-
176
- .m-dropdown__submenu--teleported {
177
- position: fixed;
178
- z-index: var(--m-z-dropdown);
179
- }
180
-
181
- .m-dropdown__submenu-scroll {
182
- max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
183
- min-height: 0;
184
- }
185
-
186
- .m-dropdown__submenu-view {
187
- display: grid;
188
- gap: var(--m-space-1);
189
- }
190
-
191
- .m-fade-enter-active,
192
- .m-fade-leave-active {
193
- transition: opacity var(--m-motion-exit) var(--m-motion-ease);
194
- }
195
-
196
- .m-fade-enter-from,
197
- .m-fade-leave-to {
198
- opacity: 0;
199
- }
200
-
201
- .m-scale-fade-enter-active {
202
- transition:
203
- opacity var(--m-motion-enter) var(--m-motion-ease),
204
- transform var(--m-motion-enter) var(--m-motion-ease);
205
- }
206
-
207
- .m-scale-fade-leave-active {
208
- transition:
209
- opacity var(--m-motion-exit) var(--m-motion-ease),
210
- transform var(--m-motion-exit) var(--m-motion-ease);
211
- }
212
-
213
- .m-scale-fade-enter-from,
214
- .m-scale-fade-leave-to {
215
- opacity: 0;
216
- transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
217
- }
218
-
219
- .m-slide-fade-enter-active {
220
- transition:
221
- opacity var(--m-motion-enter) var(--m-motion-ease),
222
- transform var(--m-motion-enter) var(--m-motion-ease);
223
- }
224
-
225
- .m-slide-fade-leave-active {
226
- transition:
227
- opacity var(--m-motion-exit) var(--m-motion-ease),
228
- transform var(--m-motion-exit) var(--m-motion-ease);
229
- }
230
-
231
- .m-slide-fade-enter-from,
232
- .m-slide-fade-leave-to {
233
- opacity: 0;
234
- transform: translateY(calc(var(--m-motion-distance) * -1));
235
- }
236
-
237
- /* Generic center zoom (opacity + scale on the transitioning root) */
238
- .m-zoom-enter-active {
239
- transition:
240
- opacity var(--m-motion-enter) var(--m-motion-ease),
241
- transform var(--m-motion-enter) var(--m-motion-ease);
242
- }
243
-
244
- .m-zoom-leave-active {
245
- transition:
246
- opacity var(--m-motion-exit) var(--m-motion-ease),
247
- transform var(--m-motion-exit) var(--m-motion-ease);
248
- }
249
-
250
- .m-zoom-enter-from,
251
- .m-zoom-leave-to {
252
- opacity: 0;
253
- transform: scale(0.95);
254
- }
255
-
256
- .m-slide-up-enter-active,
257
- .m-slide-down-enter-active,
258
- .m-slide-left-enter-active,
259
- .m-slide-right-enter-active {
260
- transition:
261
- opacity var(--m-motion-enter) var(--m-motion-ease),
262
- transform var(--m-motion-enter) var(--m-motion-ease);
263
- }
264
-
265
- .m-slide-up-leave-active,
266
- .m-slide-down-leave-active,
267
- .m-slide-left-leave-active,
268
- .m-slide-right-leave-active {
269
- transition:
270
- opacity var(--m-motion-exit) var(--m-motion-ease),
271
- transform var(--m-motion-exit) var(--m-motion-ease);
272
- }
273
-
274
- .m-slide-up-enter-from,
275
- .m-slide-up-leave-to {
276
- opacity: 0;
277
- transform: translateY(var(--m-motion-distance));
278
- }
279
-
280
- .m-slide-down-enter-from,
281
- .m-slide-down-leave-to {
282
- opacity: 0;
283
- transform: translateY(calc(var(--m-motion-distance) * -1));
284
- }
285
-
286
- .m-slide-left-enter-from,
287
- .m-slide-left-leave-to {
288
- opacity: 0;
289
- transform: translateX(var(--m-motion-distance));
290
- }
291
-
292
- .m-slide-right-enter-from,
293
- .m-slide-right-leave-to {
294
- opacity: 0;
295
- transform: translateX(calc(var(--m-motion-distance) * -1));
296
- }
297
-
298
- [data-m-motion="reduced"] .m-fade-enter-active,
299
- [data-m-motion="reduced"] .m-fade-leave-active,
300
- [data-m-motion="reduced"] .m-scale-fade-enter-active,
301
- [data-m-motion="reduced"] .m-scale-fade-leave-active,
302
- [data-m-motion="reduced"] .m-slide-fade-enter-active,
303
- [data-m-motion="reduced"] .m-slide-fade-leave-active,
304
- [data-m-motion="reduced"] .m-zoom-enter-active,
305
- [data-m-motion="reduced"] .m-zoom-leave-active,
306
- [data-m-motion="reduced"] .m-slide-up-enter-active,
307
- [data-m-motion="reduced"] .m-slide-up-leave-active,
308
- [data-m-motion="reduced"] .m-slide-down-enter-active,
309
- [data-m-motion="reduced"] .m-slide-down-leave-active,
310
- [data-m-motion="reduced"] .m-slide-left-enter-active,
311
- [data-m-motion="reduced"] .m-slide-left-leave-active,
312
- [data-m-motion="reduced"] .m-slide-right-enter-active,
313
- [data-m-motion="reduced"] .m-slide-right-leave-active,
314
- [data-m-motion="none"] .m-fade-enter-active,
315
- [data-m-motion="none"] .m-fade-leave-active,
316
- [data-m-motion="none"] .m-scale-fade-enter-active,
317
- [data-m-motion="none"] .m-scale-fade-leave-active,
318
- [data-m-motion="none"] .m-slide-fade-enter-active,
319
- [data-m-motion="none"] .m-slide-fade-leave-active,
320
- [data-m-motion="none"] .m-zoom-enter-active,
321
- [data-m-motion="none"] .m-zoom-leave-active,
322
- [data-m-motion="none"] .m-slide-up-enter-active,
323
- [data-m-motion="none"] .m-slide-up-leave-active,
324
- [data-m-motion="none"] .m-slide-down-enter-active,
325
- [data-m-motion="none"] .m-slide-down-leave-active,
326
- [data-m-motion="none"] .m-slide-left-enter-active,
327
- [data-m-motion="none"] .m-slide-left-leave-active,
328
- [data-m-motion="none"] .m-slide-right-enter-active,
329
- [data-m-motion="none"] .m-slide-right-leave-active {
330
- transition: none;
331
- }
332
-
333
- [data-m-motion="reduced"] .m-scale-fade-enter-from,
334
- [data-m-motion="reduced"] .m-scale-fade-leave-to,
335
- [data-m-motion="reduced"] .m-slide-fade-enter-from,
336
- [data-m-motion="reduced"] .m-slide-fade-leave-to,
337
- [data-m-motion="reduced"] .m-zoom-enter-from,
338
- [data-m-motion="reduced"] .m-zoom-leave-to,
339
- [data-m-motion="reduced"] .m-slide-up-enter-from,
340
- [data-m-motion="reduced"] .m-slide-up-leave-to,
341
- [data-m-motion="reduced"] .m-slide-down-enter-from,
342
- [data-m-motion="reduced"] .m-slide-down-leave-to,
343
- [data-m-motion="reduced"] .m-slide-left-enter-from,
344
- [data-m-motion="reduced"] .m-slide-left-leave-to,
345
- [data-m-motion="reduced"] .m-slide-right-enter-from,
346
- [data-m-motion="reduced"] .m-slide-right-leave-to,
347
- [data-m-motion="none"] .m-scale-fade-enter-from,
348
- [data-m-motion="none"] .m-scale-fade-leave-to,
349
- [data-m-motion="none"] .m-slide-fade-enter-from,
350
- [data-m-motion="none"] .m-slide-fade-leave-to,
351
- [data-m-motion="none"] .m-zoom-enter-from,
352
- [data-m-motion="none"] .m-zoom-leave-to,
353
- [data-m-motion="none"] .m-slide-up-enter-from,
354
- [data-m-motion="none"] .m-slide-up-leave-to,
355
- [data-m-motion="none"] .m-slide-down-enter-from,
356
- [data-m-motion="none"] .m-slide-down-leave-to,
357
- [data-m-motion="none"] .m-slide-left-enter-from,
358
- [data-m-motion="none"] .m-slide-left-leave-to,
359
- [data-m-motion="none"] .m-slide-right-enter-from,
360
- [data-m-motion="none"] .m-slide-right-leave-to {
361
- transform: none;
362
- }
363
-
364
- /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
365
- @keyframes m-progress-spinner-rotate {
366
- 100% {
367
- transform: rotate(360deg);
368
- }
369
- }
370
-
371
- .m-checkbox,
372
- .m-radio,
373
- .m-switch {
374
- align-items: center;
375
- color: var(--m-color-text);
376
- cursor: pointer;
377
- display: inline-flex;
378
- font-family: var(--m-font-sans);
379
- gap: var(--m-space-2);
380
- /* 避免绝对定位 input 挂到上层 MScrollbar,聚焦时把滚动容器拽回顶部 */
381
- position: relative;
382
- }
383
-
384
- .m-checkbox--disabled,
385
- .m-radio--disabled,
386
- .m-switch--disabled {
387
- color: var(--m-color-text-muted);
388
- cursor: not-allowed;
389
- opacity: var(--m-opacity-disabled);
390
- }
391
-
392
- .m-checkbox--invalid .m-checkbox__control,
393
- .m-radio--invalid .m-radio__control {
394
- border-color: var(--m-color-danger);
395
- }
396
-
397
- .m-checkbox__input,
398
- .m-radio__input,
399
- .m-switch__input {
400
- clip: rect(0, 0, 0, 0);
401
- clip-path: inset(50%);
402
- height: 1px;
403
- margin: -1px;
404
- overflow: hidden;
405
- opacity: 0;
406
- position: absolute;
407
- white-space: nowrap;
408
- width: 1px;
409
- }
410
-
411
- .m-checkbox__control,
412
- .m-radio__control {
413
- align-items: center;
414
- background: var(--m-color-surface);
415
- border: var(--m-border-width) solid var(--m-color-border);
416
- display: inline-flex;
417
- flex: 0 0 auto;
418
- height: var(--m-checkbox-control-size, 1.125rem);
419
- justify-content: center;
420
- transition:
421
- background-color var(--m-motion-fast) var(--m-motion-ease),
422
- border-color var(--m-motion-fast) var(--m-motion-ease),
423
- box-shadow var(--m-motion-fast) var(--m-motion-ease);
424
- width: var(--m-checkbox-control-size, 1.125rem);
425
- }
426
-
427
- .m-checkbox__input:checked + .m-checkbox__control,
428
- .m-radio__input:checked + .m-radio__control {
429
- background: var(--m-color-primary);
430
- border-color: var(--m-color-primary);
431
- }
432
-
433
- .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
434
- .m-radio:not(.m-radio--disabled):hover .m-radio__control {
435
- border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
436
- }
437
-
438
- .m-checkbox__input:focus-visible + .m-checkbox__control,
439
- .m-radio__input:focus-visible + .m-radio__control,
440
- .m-switch__input:focus-visible + .m-switch__track {
441
- box-shadow: var(--m-focus-shadow);
442
- outline: none;
443
- }
444
-
445
- .m-checkbox__label,
446
- .m-radio__label,
447
- .m-switch__label {
448
- font-size: var(--m-font-size-md);
449
- }
450
-
451
- .m-textarea-field,
452
- .m-select-field {
453
- display: grid;
454
- font-family: var(--m-font-sans);
455
- gap: var(--m-space-2);
456
- max-width: 100%;
457
- min-width: var(--m-menu-min-width);
458
- position: relative;
459
- width: fit-content;
460
- }
461
-
462
- .m-textarea-field--fluid,
463
- .m-select-field--fluid {
464
- width: 100%;
465
- }
466
-
467
- .m-textarea-field__label,
468
- .m-select-field__label {
469
- color: var(--m-color-text);
470
- font-family: var(--m-font-sans);
471
- font-size: var(--m-font-size-md);
472
- font-weight: 600;
473
- }
474
-
475
- .m-textarea-field__help,
476
- .m-select-field__help {
477
- color: var(--m-color-text-muted);
478
- font-size: var(--m-font-size-xs);
479
- }
480
-
481
- .m-textarea-field__help--invalid,
482
- .m-select-field__help--invalid {
483
- color: var(--m-color-danger);
484
- }
485
-
486
- .m-textarea,
487
- .m-select {
488
- background: var(--m-color-surface);
489
- border: var(--m-border-width) solid var(--m-color-border);
490
- border-radius: var(--m-radius-control);
491
- color: var(--m-color-text);
492
- font: inherit;
493
- transition:
494
- border-color var(--m-motion-fast) var(--m-motion-ease),
495
- box-shadow var(--m-motion-fast) var(--m-motion-ease),
496
- background-color var(--m-motion-fast) var(--m-motion-ease);
497
- width: 100%;
498
- }
499
-
500
- .m-textarea--invalid:focus-visible,
501
- .m-select--invalid.m-select--open,
502
- .m-select--invalid:focus-visible {
503
- border-color: var(--m-color-danger);
504
- box-shadow: var(--m-focus-shadow-danger);
505
- }
506
-
507
- .m-textarea:disabled,
508
- .m-select:disabled,
509
- .m-select--disabled {
510
- cursor: not-allowed;
511
- opacity: var(--m-opacity-disabled);
512
- }
513
-
514
- .m-inputgroup > .m-input,
515
- .m-inputgroup > .m-input-field,
516
- .m-inputgroup > .m-password-field,
517
- .m-inputgroup > .m-inputnumber-field {
518
- flex: 1 1 auto;
519
- min-width: 0;
520
- }
521
-
522
- .m-inputgroup > .m-input-field,
523
- .m-inputgroup > .m-password-field,
524
- .m-inputgroup > .m-inputnumber-field {
525
- display: flex;
526
- flex-direction: column;
527
- gap: 0;
528
- }
529
-
530
- .m-inputgroup > .m-input,
531
- .m-inputgroup .m-input,
532
- .m-inputgroup .m-password,
533
- .m-inputgroup .m-inputnumber__input-wrap,
534
- .m-inputgroup .m-input-field__control--prefixed,
535
- .m-inputgroup .m-input-field__control--suffixed,
536
- .m-inputgroup .m-input-field__control--clearable {
537
- border-radius: 0;
538
- width: 100%;
539
- }
540
-
541
- .m-inputgroup > :first-child.m-input,
542
- .m-inputgroup > :first-child .m-input,
543
- .m-inputgroup > :first-child .m-password,
544
- .m-inputgroup > :first-child .m-inputnumber__input-wrap,
545
- .m-inputgroup > :first-child .m-input-field__control--prefixed,
546
- .m-inputgroup > :first-child .m-input-field__control--suffixed,
547
- .m-inputgroup > :first-child .m-input-field__control--clearable,
548
- .m-inputgroup > :first-child.m-inputgroup-addon {
549
- border-bottom-left-radius: var(--m-radius-control);
550
- border-top-left-radius: var(--m-radius-control);
551
- }
552
-
553
- .m-inputgroup > :last-child.m-input,
554
- .m-inputgroup > :last-child .m-input,
555
- .m-inputgroup > :last-child .m-password,
556
- .m-inputgroup > :last-child .m-inputnumber__input-wrap,
557
- .m-inputgroup > :last-child .m-input-field__control--prefixed,
558
- .m-inputgroup > :last-child .m-input-field__control--suffixed,
559
- .m-inputgroup > :last-child .m-input-field__control--clearable,
560
- .m-inputgroup > :last-child.m-inputgroup-addon {
561
- border-bottom-right-radius: var(--m-radius-control);
562
- border-top-right-radius: var(--m-radius-control);
563
- }
564
-
565
- .m-inputgroup > .m-inputgroup-addon + .m-input,
566
- .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
567
- .m-inputgroup > .m-input + .m-inputgroup-addon,
568
- .m-inputgroup > .m-input-field + .m-inputgroup-addon {
569
- margin-left: calc(var(--m-border-width) * -1);
570
- }
571
-
572
- .m-layout__scrollbar > .m-scrollbar__wrap {
573
- height: 100%;
574
- overflow-x: hidden;
575
- }
576
-
577
- .m-layout-sider__scrollbar > .m-scrollbar__wrap {
578
- height: 100%;
579
- overflow-x: hidden;
580
- }
581
-
582
- .m-treetable__scrollbar > .m-scrollbar__wrap,
583
- .m-terminal__scrollbar > .m-scrollbar__wrap {
584
- height: 100%;
585
- overflow-x: hidden;
586
- }
587
-
588
- .m-scroll-body.m-scrollbar {
589
- min-height: 0;
590
- min-width: 0;
591
- }
592
-
593
- /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
594
- .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
595
- width: 100%;
596
- }
597
-
598
- .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
599
- overflow: auto;
600
- }
601
-
602
- .m-orderlist__btn,
603
- .m-picklist__btn {
604
- align-items: center;
605
- background: var(--m-color-surface);
606
- border: var(--m-border-width) solid var(--m-color-border);
607
- border-radius: var(--m-radius-sm);
608
- color: var(--m-color-text);
609
- cursor: pointer;
610
- display: inline-flex;
611
- font: inherit;
612
- gap: 0;
613
- justify-content: center;
614
- min-height: var(--m-control-height-small, 1.75rem);
615
- min-width: var(--m-control-affix-size);
616
- padding: var(--m-space-1) var(--m-space-2);
617
- }
618
-
619
- .m-orderlist__btn:hover:not(:disabled),
620
- .m-picklist__btn:hover:not(:disabled) {
621
- border-color: var(--m-color-primary);
622
- color: var(--m-color-primary);
623
- }
624
-
625
- .m-orderlist__btn:disabled,
626
- .m-picklist__btn:disabled {
627
- cursor: not-allowed;
628
- opacity: var(--m-opacity-disabled);
629
- }
630
-
631
- .m-orderlist__btn:focus-visible,
632
- .m-picklist__btn:focus-visible {
633
- border-color: var(--m-color-primary);
634
- box-shadow: var(--m-focus-shadow);
635
- outline: none;
636
- }
637
-
638
- .m-picklist__btn .m-icon + .m-icon {
639
- margin-left: -0.35rem;
640
- }
641
-
642
- .m-orderlist__scrollbar,
643
- .m-picklist__scrollbar {
644
- flex: 1;
645
- max-height: 16rem;
646
- min-height: 12rem;
647
- min-width: var(--m-menu-min-width);
648
- }
649
-
650
- .m-orderlist__list,
651
- .m-picklist__list {
652
- background: var(--m-color-surface);
653
- border: var(--m-border-width) solid var(--m-color-border);
654
- border-radius: var(--m-radius-md);
655
- padding: var(--m-space-1);
656
- }
657
-
658
- .m-orderlist__options,
659
- .m-picklist__options {
660
- list-style: none;
661
- margin: 0;
662
- padding: 0;
663
- }
664
-
665
- .m-orderlist__item,
666
- .m-picklist__item {
667
- border-radius: var(--m-radius-sm);
668
- cursor: pointer;
669
- padding: var(--m-space-2) var(--m-space-3);
670
- }
671
-
672
- .m-orderlist__item:hover,
673
- .m-picklist__item:hover {
674
- background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
675
- }
676
-
677
- .m-orderlist__item:focus-visible,
678
- .m-picklist__item:focus-visible {
679
- box-shadow: var(--m-focus-shadow);
680
- outline: none;
681
- }
682
-
683
- .m-orderlist__item--selected,
684
- .m-picklist__item--selected {
685
- background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
686
- color: var(--m-color-primary);
687
- font-weight: 600;
688
- }
689
-
690
- .m-carousel__nav,
691
- .m-gallery__nav {
692
- background: var(--m-color-surface);
693
- border: var(--m-border-width) solid var(--m-color-border);
694
- border-radius: var(--m-radius-full, 999px);
695
- color: var(--m-color-text);
696
- cursor: pointer;
697
- flex: 0 0 auto;
698
- font: inherit;
699
- height: var(--m-control-affix-size);
700
- width: var(--m-control-affix-size);
701
- }
702
-
703
- .m-carousel__nav:disabled,
704
- .m-gallery__nav:disabled {
705
- cursor: not-allowed;
706
- opacity: var(--m-opacity-disabled);
707
- }
708
-
709
- /* Shared Naive-like hover/focus for remaining form triggers */
710
- .m-inputotp__input:hover:not(:disabled):not(:focus),
711
- .m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
712
- .m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
713
- .m-inputcolor__text:hover:not(:disabled):not(:focus),
714
- .m-inputtags:hover:not(.m-inputtags--disabled),
715
- .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked),
716
- .m-inplace__display:hover {
717
- border-color: var(--m-color-primary-hover);
718
- }
719
-
720
- .m-inputotp__input:focus-visible,
721
- .m-cascadeselect__trigger:focus-visible,
722
- .m-treeselect__trigger:focus-visible,
723
- .m-inputcolor__text:focus-visible,
724
- .m-inputtags:focus-within,
725
- .m-togglebutton:focus-visible,
726
- .m-selectbutton__button:focus-visible,
727
- .m-splitbutton__main:focus-visible,
728
- .m-splitbutton__trigger:focus-visible,
729
- .m-inplace__display:focus-visible,
730
- .m-pagination__button:focus-visible {
731
- border-color: var(--m-color-primary-hover);
732
- box-shadow: var(--m-focus-shadow);
733
- outline: none;
734
- }
735
-
736
- .m-inputotp--invalid .m-inputotp__input:focus-visible,
737
- .m-inputtags--invalid:focus-within,
738
- .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
739
- border-color: var(--m-color-danger);
740
- box-shadow: var(--m-focus-shadow-danger);
741
- }
742
-
743
- .m-checkbox-group,
744
- .m-radio-group {
745
- display: flex;
746
- flex-wrap: wrap;
747
- gap: var(--m-space-3);
748
- }
749
-
750
- .m-checkbox--small .m-checkbox__control,
751
- .m-radio--small .m-radio__control {
752
- height: 0.95rem;
753
- width: 0.95rem;
754
- }
755
-
756
- .m-checkbox--large .m-checkbox__control,
757
- .m-radio--large .m-radio__control {
758
- height: 1.35rem;
759
- width: 1.35rem;
760
- }
761
-
762
- .m-inputnumber__clear,
763
- .m-autocomplete__clear {
764
- background: transparent;
765
- border: 0;
766
- color: var(--m-color-text-muted);
767
- cursor: pointer;
768
- font: inherit;
769
- line-height: 1;
770
- }
771
-
772
- [data-m-motion="none"] *,
773
- [data-m-motion="none"] *::before,
774
- [data-m-motion="none"] *::after {
775
- animation-duration: 0.01ms !important;
776
- animation-iteration-count: 1 !important;
777
- scroll-behavior: auto !important;
778
- transition-duration: 0.01ms !important;
779
- }
780
-
781
- [data-m-motion="reduced"] .m-progress-spinner,
782
- [data-m-motion="reduced"] .m-progress-spinner__circle,
783
- [data-m-motion="reduced"] .m-skeleton,
784
- [data-m-motion="reduced"] .m-badge--processing,
785
- [data-m-motion="reduced"] .m-icon--spin,
786
- [data-m-motion="reduced"] .m-button__spinner,
787
- [data-m-motion="reduced"] .m-select__loading-icon,
788
- [data-m-motion="reduced"] .m-switch__loading-icon {
789
- animation: none !important;
790
- }
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-treetable,
71
+ .m-megamenu,
72
+ .m-dock,
73
+ .m-sidebar,
74
+ .m-commandmenu,
75
+ .m-fileupload,
76
+ .m-carousel,
77
+ .m-gallery,
78
+ .m-metergroup,
79
+ .m-fluid,
80
+ .m-terminal {
81
+ font-family: var(--m-font-sans);
82
+ box-sizing: border-box;
83
+ }
84
+
85
+ .m-button:disabled,
86
+ .m-input:disabled,
87
+ .m-password__input:disabled,
88
+ .m-inputnumber__input:disabled,
89
+ .m-inputotp__input:disabled,
90
+ .m-inputcolor__text:disabled,
91
+ .m-inputcolor__swatch:disabled,
92
+ .m-inputtags--disabled {
93
+ cursor: not-allowed;
94
+ opacity: var(--m-opacity-disabled);
95
+ }
96
+
97
+ .m-input-field__control--prefixed .m-input:disabled,
98
+ .m-input-field__control--suffixed .m-input:disabled,
99
+ .m-input-field__control--clearable .m-input:disabled,
100
+ .m-password--disabled .m-password__input,
101
+ .m-inputnumber--disabled .m-inputnumber__input,
102
+ .m-datepicker--disabled .m-datepicker__input,
103
+ .m-icon-field--anchored .m-input:disabled,
104
+ .m-icon-field--anchored .m-textarea:disabled {
105
+ opacity: 1;
106
+ }
107
+
108
+ .m-input::placeholder,
109
+ .m-textarea::placeholder,
110
+ .m-password__input::placeholder,
111
+ .m-inputnumber__input::placeholder,
112
+ .m-inputtags__input::placeholder,
113
+ .m-inputcolor__text::placeholder {
114
+ color: var(--m-color-text-muted);
115
+ opacity: 1;
116
+ }
117
+
118
+ .m-input-field__meta,
119
+ .m-textarea-field__meta,
120
+ .m-password-field__meta {
121
+ align-items: baseline;
122
+ display: flex;
123
+ gap: var(--m-space-2);
124
+ justify-content: space-between;
125
+ }
126
+
127
+ .m-input-field__meta:not(:has(.m-input-field__help)),
128
+ .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
129
+ .m-password-field__meta:not(:has(.m-password__feedback)) {
130
+ justify-content: flex-end;
131
+ }
132
+
133
+ .m-input-field__count,
134
+ .m-textarea-field__count,
135
+ .m-password-field__count {
136
+ color: var(--m-color-text-muted);
137
+ flex: 0 0 auto;
138
+ font-size: var(--m-font-size-xs);
139
+ margin-left: auto;
140
+ }
141
+
142
+ .m-dropdown__item--parent {
143
+ align-items: center;
144
+ display: flex;
145
+ justify-content: space-between;
146
+ width: 100%;
147
+ }
148
+
149
+ .m-dropdown__icon,
150
+ .m-dropdown__caret,
151
+ .m-menu__icon,
152
+ .m-menubar__icon {
153
+ flex-shrink: 0;
154
+ }
155
+
156
+ .m-dropdown__submenu-wrap {
157
+ position: relative;
158
+ }
159
+
160
+ .m-dropdown__submenu {
161
+ --m-dropdown-submenu-max-height: min(18rem, 45vh);
162
+ background: var(--m-color-surface);
163
+ border: var(--m-border-width) solid var(--m-color-border);
164
+ border-radius: var(--m-radius-md);
165
+ box-shadow: var(--m-shadow-md);
166
+ max-height: var(--m-dropdown-submenu-max-height);
167
+ max-width: calc(100vw - 2 * var(--m-space-4));
168
+ min-width: 10rem;
169
+ overflow: hidden;
170
+ padding: var(--m-space-1);
171
+ /* Same as .m-dropdown__menu: size to content instead of being clamped
172
+ by the space left of the anchor in the viewport. */
173
+ width: max-content;
174
+ }
175
+
176
+ .m-dropdown__submenu--teleported {
177
+ position: fixed;
178
+ z-index: var(--m-z-dropdown);
179
+ }
180
+
181
+ .m-dropdown__submenu-scroll {
182
+ max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
183
+ min-height: 0;
184
+ }
185
+
186
+ .m-dropdown__submenu-view {
187
+ display: grid;
188
+ gap: var(--m-space-1);
189
+ }
190
+
191
+ .m-fade-enter-active,
192
+ .m-fade-leave-active {
193
+ transition: opacity var(--m-motion-exit) var(--m-motion-ease);
194
+ }
195
+
196
+ .m-fade-enter-from,
197
+ .m-fade-leave-to {
198
+ opacity: 0;
199
+ }
200
+
201
+ .m-scale-fade-enter-active {
202
+ transition:
203
+ opacity var(--m-motion-enter) var(--m-motion-ease),
204
+ transform var(--m-motion-enter) var(--m-motion-ease);
205
+ }
206
+
207
+ .m-scale-fade-leave-active {
208
+ transition:
209
+ opacity var(--m-motion-exit) var(--m-motion-ease),
210
+ transform var(--m-motion-exit) var(--m-motion-ease);
211
+ }
212
+
213
+ .m-scale-fade-enter-from,
214
+ .m-scale-fade-leave-to {
215
+ opacity: 0;
216
+ transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.96);
217
+ }
218
+
219
+ .m-slide-fade-enter-active {
220
+ transition:
221
+ opacity var(--m-motion-enter) var(--m-motion-ease),
222
+ transform var(--m-motion-enter) var(--m-motion-ease);
223
+ }
224
+
225
+ .m-slide-fade-leave-active {
226
+ transition:
227
+ opacity var(--m-motion-exit) var(--m-motion-ease),
228
+ transform var(--m-motion-exit) var(--m-motion-ease);
229
+ }
230
+
231
+ .m-slide-fade-enter-from,
232
+ .m-slide-fade-leave-to {
233
+ opacity: 0;
234
+ transform: translateY(calc(var(--m-motion-distance) * -1));
235
+ }
236
+
237
+ /* Generic center zoom (opacity + scale on the transitioning root) */
238
+ .m-zoom-enter-active {
239
+ transition:
240
+ opacity var(--m-motion-enter) var(--m-motion-ease),
241
+ transform var(--m-motion-enter) var(--m-motion-ease);
242
+ }
243
+
244
+ .m-zoom-leave-active {
245
+ transition:
246
+ opacity var(--m-motion-exit) var(--m-motion-ease),
247
+ transform var(--m-motion-exit) var(--m-motion-ease);
248
+ }
249
+
250
+ .m-zoom-enter-from,
251
+ .m-zoom-leave-to {
252
+ opacity: 0;
253
+ transform: scale(0.95);
254
+ }
255
+
256
+ .m-slide-up-enter-active,
257
+ .m-slide-down-enter-active,
258
+ .m-slide-left-enter-active,
259
+ .m-slide-right-enter-active {
260
+ transition:
261
+ opacity var(--m-motion-enter) var(--m-motion-ease),
262
+ transform var(--m-motion-enter) var(--m-motion-ease);
263
+ }
264
+
265
+ .m-slide-up-leave-active,
266
+ .m-slide-down-leave-active,
267
+ .m-slide-left-leave-active,
268
+ .m-slide-right-leave-active {
269
+ transition:
270
+ opacity var(--m-motion-exit) var(--m-motion-ease),
271
+ transform var(--m-motion-exit) var(--m-motion-ease);
272
+ }
273
+
274
+ .m-slide-up-enter-from,
275
+ .m-slide-up-leave-to {
276
+ opacity: 0;
277
+ transform: translateY(var(--m-motion-distance));
278
+ }
279
+
280
+ .m-slide-down-enter-from,
281
+ .m-slide-down-leave-to {
282
+ opacity: 0;
283
+ transform: translateY(calc(var(--m-motion-distance) * -1));
284
+ }
285
+
286
+ .m-slide-left-enter-from,
287
+ .m-slide-left-leave-to {
288
+ opacity: 0;
289
+ transform: translateX(var(--m-motion-distance));
290
+ }
291
+
292
+ .m-slide-right-enter-from,
293
+ .m-slide-right-leave-to {
294
+ opacity: 0;
295
+ transform: translateX(calc(var(--m-motion-distance) * -1));
296
+ }
297
+
298
+ [data-m-motion="reduced"] .m-fade-enter-active,
299
+ [data-m-motion="reduced"] .m-fade-leave-active,
300
+ [data-m-motion="reduced"] .m-scale-fade-enter-active,
301
+ [data-m-motion="reduced"] .m-scale-fade-leave-active,
302
+ [data-m-motion="reduced"] .m-slide-fade-enter-active,
303
+ [data-m-motion="reduced"] .m-slide-fade-leave-active,
304
+ [data-m-motion="reduced"] .m-zoom-enter-active,
305
+ [data-m-motion="reduced"] .m-zoom-leave-active,
306
+ [data-m-motion="reduced"] .m-slide-up-enter-active,
307
+ [data-m-motion="reduced"] .m-slide-up-leave-active,
308
+ [data-m-motion="reduced"] .m-slide-down-enter-active,
309
+ [data-m-motion="reduced"] .m-slide-down-leave-active,
310
+ [data-m-motion="reduced"] .m-slide-left-enter-active,
311
+ [data-m-motion="reduced"] .m-slide-left-leave-active,
312
+ [data-m-motion="reduced"] .m-slide-right-enter-active,
313
+ [data-m-motion="reduced"] .m-slide-right-leave-active,
314
+ [data-m-motion="none"] .m-fade-enter-active,
315
+ [data-m-motion="none"] .m-fade-leave-active,
316
+ [data-m-motion="none"] .m-scale-fade-enter-active,
317
+ [data-m-motion="none"] .m-scale-fade-leave-active,
318
+ [data-m-motion="none"] .m-slide-fade-enter-active,
319
+ [data-m-motion="none"] .m-slide-fade-leave-active,
320
+ [data-m-motion="none"] .m-zoom-enter-active,
321
+ [data-m-motion="none"] .m-zoom-leave-active,
322
+ [data-m-motion="none"] .m-slide-up-enter-active,
323
+ [data-m-motion="none"] .m-slide-up-leave-active,
324
+ [data-m-motion="none"] .m-slide-down-enter-active,
325
+ [data-m-motion="none"] .m-slide-down-leave-active,
326
+ [data-m-motion="none"] .m-slide-left-enter-active,
327
+ [data-m-motion="none"] .m-slide-left-leave-active,
328
+ [data-m-motion="none"] .m-slide-right-enter-active,
329
+ [data-m-motion="none"] .m-slide-right-leave-active {
330
+ transition: none;
331
+ }
332
+
333
+ [data-m-motion="reduced"] .m-scale-fade-enter-from,
334
+ [data-m-motion="reduced"] .m-scale-fade-leave-to,
335
+ [data-m-motion="reduced"] .m-slide-fade-enter-from,
336
+ [data-m-motion="reduced"] .m-slide-fade-leave-to,
337
+ [data-m-motion="reduced"] .m-zoom-enter-from,
338
+ [data-m-motion="reduced"] .m-zoom-leave-to,
339
+ [data-m-motion="reduced"] .m-slide-up-enter-from,
340
+ [data-m-motion="reduced"] .m-slide-up-leave-to,
341
+ [data-m-motion="reduced"] .m-slide-down-enter-from,
342
+ [data-m-motion="reduced"] .m-slide-down-leave-to,
343
+ [data-m-motion="reduced"] .m-slide-left-enter-from,
344
+ [data-m-motion="reduced"] .m-slide-left-leave-to,
345
+ [data-m-motion="reduced"] .m-slide-right-enter-from,
346
+ [data-m-motion="reduced"] .m-slide-right-leave-to,
347
+ [data-m-motion="none"] .m-scale-fade-enter-from,
348
+ [data-m-motion="none"] .m-scale-fade-leave-to,
349
+ [data-m-motion="none"] .m-slide-fade-enter-from,
350
+ [data-m-motion="none"] .m-slide-fade-leave-to,
351
+ [data-m-motion="none"] .m-zoom-enter-from,
352
+ [data-m-motion="none"] .m-zoom-leave-to,
353
+ [data-m-motion="none"] .m-slide-up-enter-from,
354
+ [data-m-motion="none"] .m-slide-up-leave-to,
355
+ [data-m-motion="none"] .m-slide-down-enter-from,
356
+ [data-m-motion="none"] .m-slide-down-leave-to,
357
+ [data-m-motion="none"] .m-slide-left-enter-from,
358
+ [data-m-motion="none"] .m-slide-left-leave-to,
359
+ [data-m-motion="none"] .m-slide-right-enter-from,
360
+ [data-m-motion="none"] .m-slide-right-leave-to {
361
+ transform: none;
362
+ }
363
+
364
+ /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
365
+ @keyframes m-progress-spinner-rotate {
366
+ 100% {
367
+ transform: rotate(360deg);
368
+ }
369
+ }
370
+
371
+ .m-checkbox,
372
+ .m-radio,
373
+ .m-switch {
374
+ align-items: center;
375
+ color: var(--m-color-text);
376
+ cursor: pointer;
377
+ display: inline-flex;
378
+ font-family: var(--m-font-sans);
379
+ gap: var(--m-space-2);
380
+ /* 避免绝对定位 input 挂到上层 MScrollbar,聚焦时把滚动容器拽回顶部 */
381
+ position: relative;
382
+ }
383
+
384
+ .m-checkbox--disabled,
385
+ .m-radio--disabled,
386
+ .m-switch--disabled {
387
+ color: var(--m-color-text-muted);
388
+ cursor: not-allowed;
389
+ opacity: var(--m-opacity-disabled);
390
+ }
391
+
392
+ .m-checkbox--invalid .m-checkbox__control,
393
+ .m-radio--invalid .m-radio__control {
394
+ border-color: var(--m-color-danger);
395
+ }
396
+
397
+ .m-checkbox__input,
398
+ .m-radio__input,
399
+ .m-switch__input {
400
+ clip: rect(0, 0, 0, 0);
401
+ clip-path: inset(50%);
402
+ height: 1px;
403
+ margin: -1px;
404
+ overflow: hidden;
405
+ opacity: 0;
406
+ position: absolute;
407
+ white-space: nowrap;
408
+ width: 1px;
409
+ }
410
+
411
+ .m-checkbox__control,
412
+ .m-radio__control {
413
+ align-items: center;
414
+ background: var(--m-color-surface);
415
+ border: var(--m-border-width) solid var(--m-color-border);
416
+ display: inline-flex;
417
+ flex: 0 0 auto;
418
+ height: var(--m-checkbox-control-size, 1.125rem);
419
+ justify-content: center;
420
+ transition:
421
+ background-color var(--m-motion-fast) var(--m-motion-ease),
422
+ border-color var(--m-motion-fast) var(--m-motion-ease),
423
+ box-shadow var(--m-motion-fast) var(--m-motion-ease);
424
+ width: var(--m-checkbox-control-size, 1.125rem);
425
+ }
426
+
427
+ .m-checkbox__input:checked + .m-checkbox__control,
428
+ .m-radio__input:checked + .m-radio__control {
429
+ background: var(--m-color-primary);
430
+ border-color: var(--m-color-primary);
431
+ }
432
+
433
+ .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
434
+ .m-radio:not(.m-radio--disabled):hover .m-radio__control {
435
+ border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
436
+ }
437
+
438
+ .m-checkbox__input:focus-visible + .m-checkbox__control,
439
+ .m-radio__input:focus-visible + .m-radio__control,
440
+ .m-switch__input:focus-visible + .m-switch__track {
441
+ box-shadow: var(--m-focus-shadow);
442
+ outline: none;
443
+ }
444
+
445
+ .m-checkbox__label,
446
+ .m-radio__label,
447
+ .m-switch__label {
448
+ font-size: var(--m-font-size-md);
449
+ }
450
+
451
+ .m-textarea-field,
452
+ .m-select-field {
453
+ display: grid;
454
+ font-family: var(--m-font-sans);
455
+ gap: var(--m-space-2);
456
+ max-width: 100%;
457
+ min-width: var(--m-menu-min-width);
458
+ position: relative;
459
+ width: fit-content;
460
+ }
461
+
462
+ .m-textarea-field--fluid,
463
+ .m-select-field--fluid {
464
+ width: 100%;
465
+ }
466
+
467
+ .m-textarea-field__label,
468
+ .m-select-field__label {
469
+ color: var(--m-color-text);
470
+ font-family: var(--m-font-sans);
471
+ font-size: var(--m-font-size-md);
472
+ font-weight: 600;
473
+ }
474
+
475
+ .m-textarea-field__help,
476
+ .m-select-field__help {
477
+ color: var(--m-color-text-muted);
478
+ font-size: var(--m-font-size-xs);
479
+ }
480
+
481
+ .m-textarea-field__help--invalid,
482
+ .m-select-field__help--invalid {
483
+ color: var(--m-color-danger);
484
+ }
485
+
486
+ .m-textarea,
487
+ .m-select {
488
+ background: var(--m-color-surface);
489
+ border: var(--m-border-width) solid var(--m-color-border);
490
+ border-radius: var(--m-radius-control);
491
+ color: var(--m-color-text);
492
+ font: inherit;
493
+ transition:
494
+ border-color var(--m-motion-fast) var(--m-motion-ease),
495
+ box-shadow var(--m-motion-fast) var(--m-motion-ease),
496
+ background-color var(--m-motion-fast) var(--m-motion-ease);
497
+ width: 100%;
498
+ }
499
+
500
+ .m-textarea--invalid:focus-visible,
501
+ .m-select--invalid.m-select--open,
502
+ .m-select--invalid:focus-visible {
503
+ border-color: var(--m-color-danger);
504
+ box-shadow: var(--m-focus-shadow-danger);
505
+ }
506
+
507
+ .m-textarea:disabled,
508
+ .m-select:disabled,
509
+ .m-select--disabled {
510
+ cursor: not-allowed;
511
+ opacity: var(--m-opacity-disabled);
512
+ }
513
+
514
+ .m-inputgroup > .m-input,
515
+ .m-inputgroup > .m-input-field,
516
+ .m-inputgroup > .m-password-field,
517
+ .m-inputgroup > .m-inputnumber-field {
518
+ flex: 1 1 auto;
519
+ min-width: 0;
520
+ }
521
+
522
+ .m-inputgroup > .m-input-field,
523
+ .m-inputgroup > .m-password-field,
524
+ .m-inputgroup > .m-inputnumber-field {
525
+ display: flex;
526
+ flex-direction: column;
527
+ gap: 0;
528
+ }
529
+
530
+ .m-inputgroup > .m-input,
531
+ .m-inputgroup .m-input,
532
+ .m-inputgroup .m-password,
533
+ .m-inputgroup .m-inputnumber__input-wrap,
534
+ .m-inputgroup .m-input-field__control--prefixed,
535
+ .m-inputgroup .m-input-field__control--suffixed,
536
+ .m-inputgroup .m-input-field__control--clearable {
537
+ border-radius: 0;
538
+ width: 100%;
539
+ }
540
+
541
+ .m-inputgroup > :first-child.m-input,
542
+ .m-inputgroup > :first-child .m-input,
543
+ .m-inputgroup > :first-child .m-password,
544
+ .m-inputgroup > :first-child .m-inputnumber__input-wrap,
545
+ .m-inputgroup > :first-child .m-input-field__control--prefixed,
546
+ .m-inputgroup > :first-child .m-input-field__control--suffixed,
547
+ .m-inputgroup > :first-child .m-input-field__control--clearable,
548
+ .m-inputgroup > :first-child.m-inputgroup-addon {
549
+ border-bottom-left-radius: var(--m-radius-control);
550
+ border-top-left-radius: var(--m-radius-control);
551
+ }
552
+
553
+ .m-inputgroup > :last-child.m-input,
554
+ .m-inputgroup > :last-child .m-input,
555
+ .m-inputgroup > :last-child .m-password,
556
+ .m-inputgroup > :last-child .m-inputnumber__input-wrap,
557
+ .m-inputgroup > :last-child .m-input-field__control--prefixed,
558
+ .m-inputgroup > :last-child .m-input-field__control--suffixed,
559
+ .m-inputgroup > :last-child .m-input-field__control--clearable,
560
+ .m-inputgroup > :last-child.m-inputgroup-addon {
561
+ border-bottom-right-radius: var(--m-radius-control);
562
+ border-top-right-radius: var(--m-radius-control);
563
+ }
564
+
565
+ .m-inputgroup > .m-inputgroup-addon + .m-input,
566
+ .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
567
+ .m-inputgroup > .m-input + .m-inputgroup-addon,
568
+ .m-inputgroup > .m-input-field + .m-inputgroup-addon {
569
+ margin-left: calc(var(--m-border-width) * -1);
570
+ }
571
+
572
+ .m-layout__scrollbar > .m-scrollbar__wrap {
573
+ height: 100%;
574
+ overflow-x: hidden;
575
+ }
576
+
577
+ .m-layout-sider__scrollbar > .m-scrollbar__wrap {
578
+ height: 100%;
579
+ overflow-x: hidden;
580
+ }
581
+
582
+ .m-treetable__scrollbar > .m-scrollbar__wrap,
583
+ .m-terminal__scrollbar > .m-scrollbar__wrap {
584
+ height: 100%;
585
+ overflow-x: hidden;
586
+ }
587
+
588
+ .m-scroll-body.m-scrollbar {
589
+ min-height: 0;
590
+ min-width: 0;
591
+ }
592
+
593
+ /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
594
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
595
+ width: 100%;
596
+ }
597
+
598
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
599
+ overflow: auto;
600
+ }
601
+
602
+ .m-orderlist__btn,
603
+ .m-picklist__btn {
604
+ align-items: center;
605
+ background: var(--m-color-surface);
606
+ border: var(--m-border-width) solid var(--m-color-border);
607
+ border-radius: var(--m-radius-sm);
608
+ color: var(--m-color-text);
609
+ cursor: pointer;
610
+ display: inline-flex;
611
+ font: inherit;
612
+ gap: 0;
613
+ justify-content: center;
614
+ min-height: var(--m-control-height-small, 1.75rem);
615
+ min-width: var(--m-control-affix-size);
616
+ padding: var(--m-space-1) var(--m-space-2);
617
+ }
618
+
619
+ .m-orderlist__btn:hover:not(:disabled),
620
+ .m-picklist__btn:hover:not(:disabled) {
621
+ border-color: var(--m-color-primary);
622
+ color: var(--m-color-primary);
623
+ }
624
+
625
+ .m-orderlist__btn:disabled,
626
+ .m-picklist__btn:disabled {
627
+ cursor: not-allowed;
628
+ opacity: var(--m-opacity-disabled);
629
+ }
630
+
631
+ .m-orderlist__btn:focus-visible,
632
+ .m-picklist__btn:focus-visible {
633
+ border-color: var(--m-color-primary);
634
+ box-shadow: var(--m-focus-shadow);
635
+ outline: none;
636
+ }
637
+
638
+ .m-picklist__btn .m-icon + .m-icon {
639
+ margin-left: -0.35rem;
640
+ }
641
+
642
+ .m-orderlist__scrollbar,
643
+ .m-picklist__scrollbar {
644
+ flex: 1;
645
+ max-height: 16rem;
646
+ min-height: 12rem;
647
+ min-width: var(--m-menu-min-width);
648
+ }
649
+
650
+ .m-orderlist__list,
651
+ .m-picklist__list {
652
+ background: var(--m-color-surface);
653
+ border: var(--m-border-width) solid var(--m-color-border);
654
+ border-radius: var(--m-radius-md);
655
+ padding: var(--m-space-1);
656
+ }
657
+
658
+ .m-orderlist__options,
659
+ .m-picklist__options {
660
+ list-style: none;
661
+ margin: 0;
662
+ padding: 0;
663
+ }
664
+
665
+ .m-orderlist__item,
666
+ .m-picklist__item {
667
+ border-radius: var(--m-radius-sm);
668
+ cursor: pointer;
669
+ padding: var(--m-space-2) var(--m-space-3);
670
+ }
671
+
672
+ .m-orderlist__item:hover,
673
+ .m-picklist__item:hover {
674
+ background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
675
+ }
676
+
677
+ .m-orderlist__item:focus-visible,
678
+ .m-picklist__item:focus-visible {
679
+ box-shadow: var(--m-focus-shadow);
680
+ outline: none;
681
+ }
682
+
683
+ .m-orderlist__item--selected,
684
+ .m-picklist__item--selected {
685
+ background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
686
+ color: var(--m-color-primary);
687
+ font-weight: 600;
688
+ }
689
+
690
+ .m-carousel__nav,
691
+ .m-gallery__nav {
692
+ background: var(--m-color-surface);
693
+ border: var(--m-border-width) solid var(--m-color-border);
694
+ border-radius: var(--m-radius-full, 999px);
695
+ color: var(--m-color-text);
696
+ cursor: pointer;
697
+ flex: 0 0 auto;
698
+ font: inherit;
699
+ height: var(--m-control-affix-size);
700
+ width: var(--m-control-affix-size);
701
+ }
702
+
703
+ .m-carousel__nav:disabled,
704
+ .m-gallery__nav:disabled {
705
+ cursor: not-allowed;
706
+ opacity: var(--m-opacity-disabled);
707
+ }
708
+
709
+ /* Shared Naive-like hover/focus for remaining form triggers */
710
+ .m-inputotp__input:hover:not(:disabled):not(:focus),
711
+ .m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
712
+ .m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
713
+ .m-inputcolor__text:hover:not(:disabled):not(:focus),
714
+ .m-inputtags:hover:not(.m-inputtags--disabled),
715
+ .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked),
716
+ .m-inplace__display:hover {
717
+ border-color: var(--m-color-primary-hover);
718
+ }
719
+
720
+ .m-inputotp__input:focus-visible,
721
+ .m-cascadeselect__trigger:focus-visible,
722
+ .m-treeselect__trigger:focus-visible,
723
+ .m-inputcolor__text:focus-visible,
724
+ .m-inputtags:focus-within,
725
+ .m-togglebutton:focus-visible,
726
+ .m-selectbutton__button:focus-visible,
727
+ .m-splitbutton__main:focus-visible,
728
+ .m-splitbutton__trigger:focus-visible,
729
+ .m-inplace__display:focus-visible,
730
+ .m-pagination__button:focus-visible {
731
+ border-color: var(--m-color-primary-hover);
732
+ box-shadow: var(--m-focus-shadow);
733
+ outline: none;
734
+ }
735
+
736
+ .m-inputotp--invalid .m-inputotp__input:focus-visible,
737
+ .m-inputtags--invalid:focus-within,
738
+ .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
739
+ border-color: var(--m-color-danger);
740
+ box-shadow: var(--m-focus-shadow-danger);
741
+ }
742
+
743
+ .m-checkbox-group,
744
+ .m-radio-group {
745
+ display: flex;
746
+ flex-wrap: wrap;
747
+ gap: var(--m-space-3);
748
+ }
749
+
750
+ .m-checkbox--small .m-checkbox__control,
751
+ .m-radio--small .m-radio__control {
752
+ height: 0.95rem;
753
+ width: 0.95rem;
754
+ }
755
+
756
+ .m-checkbox--large .m-checkbox__control,
757
+ .m-radio--large .m-radio__control {
758
+ height: 1.35rem;
759
+ width: 1.35rem;
760
+ }
761
+
762
+ .m-inputnumber__clear,
763
+ .m-autocomplete__clear {
764
+ background: transparent;
765
+ border: 0;
766
+ color: var(--m-color-text-muted);
767
+ cursor: pointer;
768
+ font: inherit;
769
+ line-height: 1;
770
+ }
771
+
772
+ [data-m-motion="none"] *,
773
+ [data-m-motion="none"] *::before,
774
+ [data-m-motion="none"] *::after {
775
+ animation-duration: 0.01ms !important;
776
+ animation-iteration-count: 1 !important;
777
+ scroll-behavior: auto !important;
778
+ transition-duration: 0.01ms !important;
779
+ }
780
+
781
+ [data-m-motion="reduced"] .m-progress-spinner,
782
+ [data-m-motion="reduced"] .m-progress-spinner__circle,
783
+ [data-m-motion="reduced"] .m-skeleton,
784
+ [data-m-motion="reduced"] .m-badge--processing,
785
+ [data-m-motion="reduced"] .m-icon--spin,
786
+ [data-m-motion="reduced"] .m-button__spinner,
787
+ [data-m-motion="reduced"] .m-select__loading-icon,
788
+ [data-m-motion="reduced"] .m-switch__loading-icon {
789
+ animation: none !important;
790
+ }