morya-ui 0.3.4 → 0.3.6

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 (249) hide show
  1. package/CHANGELOG.md +536 -523
  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 +2138 -2138
  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/PageFilters.vue.d.ts +5 -3
  71. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  72. package/dist/components/Page/styles.css +430 -412
  73. package/dist/components/Page/types.d.ts +2 -2
  74. package/dist/components/Page/types.d.ts.map +1 -1
  75. package/dist/components/Pagination/styles.css +105 -105
  76. package/dist/components/Popover/styles.css +92 -92
  77. package/dist/components/Result/styles.css +146 -146
  78. package/dist/components/Scrollbar/styles.css +131 -131
  79. package/dist/components/Select/styles.css +192 -192
  80. package/dist/components/SelectButton/styles.css +105 -105
  81. package/dist/components/Sidebar/styles.css +74 -74
  82. package/dist/components/Slider/styles.css +211 -211
  83. package/dist/components/SplitButton/styles.css +216 -216
  84. package/dist/components/Status/styles.css +191 -191
  85. package/dist/components/Stepper/styles.css +135 -135
  86. package/dist/components/Switch/styles.css +129 -129
  87. package/dist/components/Tabs/styles.css +131 -131
  88. package/dist/components/Terminal/styles.css +74 -74
  89. package/dist/components/Textarea/styles.css +126 -126
  90. package/dist/components/TieredMenu/styles.css +125 -125
  91. package/dist/components/Timeline/styles.css +159 -159
  92. package/dist/components/TreeSelect/styles.css +161 -161
  93. package/dist/components/TreeTable/styles.css +97 -97
  94. package/dist/components/VirtualScroller/styles.css +27 -27
  95. package/dist/{config-CapALqt3.js → config-De8ueCY-.js} +2 -0
  96. package/dist/config-provider/index.js +1 -1
  97. package/dist/config-provider/style.css +2472 -2472
  98. package/dist/confirm-dialog/index.js +4 -4
  99. package/dist/confirm-dialog/style.css +2555 -2555
  100. package/dist/confirm-popup/index.js +4 -4
  101. package/dist/confirm-popup/style.css +2145 -2145
  102. package/dist/context-menu/index.js +3 -3
  103. package/dist/context-menu/style.css +1417 -1417
  104. package/dist/data-view/index.js +3 -3
  105. package/dist/data-view/style.css +1631 -1631
  106. package/dist/date-picker/index.js +3 -3
  107. package/dist/date-picker/style.css +1483 -1483
  108. package/dist/dialog/index.js +4 -4
  109. package/dist/dialog/style.css +2531 -2531
  110. package/dist/divider/style.css +1148 -1148
  111. package/dist/dock/style.css +1232 -1232
  112. package/dist/drawer/index.js +3 -3
  113. package/dist/drawer/style.css +1482 -1482
  114. package/dist/dropdown/index.js +4 -4
  115. package/dist/dropdown/style.css +1409 -1409
  116. package/dist/empty/index.js +1 -1
  117. package/dist/empty/style.css +1294 -1294
  118. package/dist/fieldset/style.css +1148 -1148
  119. package/dist/file-upload/index.js +1 -1
  120. package/dist/file-upload/style.css +1507 -1507
  121. package/dist/flex/index.js +1 -1
  122. package/dist/flex/style.css +1148 -1148
  123. package/dist/float-label/style.css +1148 -1148
  124. package/dist/fluid/style.css +1148 -1148
  125. package/dist/form/index.js +1 -1
  126. package/dist/form/style.css +1264 -1264
  127. package/dist/gallery/index.js +1 -1
  128. package/dist/gallery/style.css +1379 -1379
  129. package/dist/grid/style.css +1148 -1148
  130. package/dist/icon/style.css +1148 -1148
  131. package/dist/icon-field/style.css +1504 -1504
  132. package/dist/index.js +84 -69
  133. package/dist/inplace/style.css +1148 -1148
  134. package/dist/input/index.js +2 -2
  135. package/dist/input/style.css +1504 -1504
  136. package/dist/input-color/index.js +2 -2
  137. package/dist/input-color/style.css +1279 -1279
  138. package/dist/input-group/style.css +1148 -1148
  139. package/dist/input-number/index.js +2 -2
  140. package/dist/input-number/style.css +1409 -1409
  141. package/dist/input-otp/index.js +2 -2
  142. package/dist/input-otp/style.css +1148 -1148
  143. package/dist/input-password/index.js +2 -2
  144. package/dist/input-password/style.css +1326 -1326
  145. package/dist/input-tags/index.js +2 -2
  146. package/dist/input-tags/style.css +1260 -1260
  147. package/dist/knob/style.css +1148 -1148
  148. package/dist/label/style.css +1148 -1148
  149. package/dist/layout/index.js +1 -1
  150. package/dist/layout/style.css +1712 -1712
  151. package/dist/listbox/index.js +2 -2
  152. package/dist/listbox/style.css +1306 -1306
  153. package/dist/loading/index.js +1 -1
  154. package/dist/loading/style.css +1528 -1528
  155. package/dist/locale/en-US.d.ts.map +1 -1
  156. package/dist/locale/types.d.ts +4 -0
  157. package/dist/locale/types.d.ts.map +1 -1
  158. package/dist/locale/zh-CN.d.ts.map +1 -1
  159. package/dist/{locale-Bzm2nbEp.js → locale-xavS6-Hw.js} +1 -1
  160. package/dist/mega-menu/index.js +3 -3
  161. package/dist/mega-menu/style.css +1245 -1245
  162. package/dist/menu/index.js +4 -4
  163. package/dist/menu/style.css +2001 -2001
  164. package/dist/menubar/index.js +3 -3
  165. package/dist/menubar/style.css +1423 -1423
  166. package/dist/message/index.js +3 -3
  167. package/dist/message/style.css +1398 -1398
  168. package/dist/meter-group/style.css +1199 -1199
  169. package/dist/order-list/index.js +1 -1
  170. package/dist/order-list/style.css +1148 -1148
  171. package/dist/page/index.js +63 -52
  172. package/dist/page/style.css +2806 -2788
  173. package/dist/pagination/index.js +1 -1
  174. package/dist/pagination/style.css +1445 -1445
  175. package/dist/panel/index.js +1 -1
  176. package/dist/panel/style.css +1148 -1148
  177. package/dist/pick-list/index.js +1 -1
  178. package/dist/pick-list/style.css +1148 -1148
  179. package/dist/popover/index.js +1 -1
  180. package/dist/popover/style.css +1242 -1242
  181. package/dist/progress-bar/style.css +1148 -1148
  182. package/dist/progress-spinner/index.js +1 -1
  183. package/dist/progress-spinner/style.css +1148 -1148
  184. package/dist/radio/index.js +1 -1
  185. package/dist/radio/style.css +1148 -1148
  186. package/dist/rating/index.js +2 -2
  187. package/dist/rating/style.css +1148 -1148
  188. package/dist/result/index.js +1 -1
  189. package/dist/result/style.css +1294 -1294
  190. package/dist/scroll-top/index.js +2 -2
  191. package/dist/scroll-top/style.css +1279 -1279
  192. package/dist/scrollbar/style.css +1281 -1281
  193. package/dist/select/index.js +1 -1
  194. package/dist/select/style.css +1901 -1901
  195. package/dist/select-button/index.js +1 -1
  196. package/dist/select-button/style.css +1255 -1255
  197. package/dist/shared/styles/control-affix-icon.css +110 -110
  198. package/dist/shared/styles/control-suffix.css +118 -118
  199. package/dist/shared/styles/select-overlay.css +175 -175
  200. package/dist/sidebar/index.js +1 -1
  201. package/dist/sidebar/style.css +1222 -1222
  202. package/dist/skeleton/style.css +1148 -1148
  203. package/dist/slider/index.js +2 -2
  204. package/dist/slider/style.css +1361 -1361
  205. package/dist/space/index.js +1 -1
  206. package/dist/space/style.css +1148 -1148
  207. package/dist/speed-dial/index.js +3 -3
  208. package/dist/speed-dial/style.css +1148 -1148
  209. package/dist/split-button/index.js +3 -3
  210. package/dist/split-button/style.css +2326 -2326
  211. package/dist/splitter/index.js +1 -1
  212. package/dist/splitter/style.css +1148 -1148
  213. package/dist/status/index.js +1 -1
  214. package/dist/status/style.css +1339 -1339
  215. package/dist/stepper/style.css +1283 -1283
  216. package/dist/styles/base.css +790 -790
  217. package/dist/styles.css +1 -1
  218. package/dist/switch/index.js +1 -1
  219. package/dist/switch/style.css +1279 -1279
  220. package/dist/table/index.js +7 -7
  221. package/dist/table/style.css +1812 -1812
  222. package/dist/tabs/index.js +1 -1
  223. package/dist/tabs/style.css +1410 -1410
  224. package/dist/tag/index.js +2 -2
  225. package/dist/tag/style.css +1148 -1148
  226. package/dist/terminal/index.js +1 -1
  227. package/dist/terminal/style.css +1224 -1224
  228. package/dist/textarea/index.js +2 -2
  229. package/dist/textarea/style.css +1274 -1274
  230. package/dist/theme/styles.css +358 -358
  231. package/dist/tiered-menu/index.js +3 -3
  232. package/dist/tiered-menu/style.css +1404 -1404
  233. package/dist/timeline/style.css +1438 -1438
  234. package/dist/toast/index.js +3 -3
  235. package/dist/toast/style.css +1148 -1148
  236. package/dist/toggle-button/index.js +1 -1
  237. package/dist/toggle-button/style.css +1148 -1148
  238. package/dist/toolbar/style.css +1148 -1148
  239. package/dist/tooltip/index.js +1 -1
  240. package/dist/tooltip/style.css +1148 -1148
  241. package/dist/tree/index.js +2 -2
  242. package/dist/tree/style.css +1148 -1148
  243. package/dist/tree-select/index.js +4 -4
  244. package/dist/tree-select/style.css +1843 -1843
  245. package/dist/tree-table/index.js +1 -1
  246. package/dist/tree-table/style.css +1245 -1245
  247. package/dist/{useMotionTransition-95Y79FoL.js → useMotionTransition-tW0yeJsy.js} +1 -1
  248. package/dist/virtual-scroller/style.css +1309 -1309
  249. package/package.json +29 -31
@@ -1,130 +1,130 @@
1
- .m-dropdown {
2
- --m-dropdown-menu-min-width: var(--m-menu-min-width, 10rem);
3
- display: inline-block;
4
- font-family: var(--m-font-sans);
5
- position: relative;
6
- }
7
-
8
- .m-dropdown__trigger {
9
- align-items: center;
10
- background: transparent;
11
- border: 0;
12
- border-radius: var(--m-radius-sm);
13
- color: inherit;
14
- cursor: pointer;
15
- display: inline-flex;
16
- font: inherit;
17
- transition: color var(--m-motion-fast) var(--m-motion-ease);
18
- }
19
-
20
- .m-dropdown__trigger:focus-visible {
21
- box-shadow: var(--m-focus-shadow);
22
- outline: none;
23
- }
24
-
25
- .m-dropdown__menu {
26
- --m-dropdown-menu-max-height: min(18rem, 45vh);
27
- background: var(--m-color-surface);
28
- border: var(--m-border-width) solid var(--m-color-border);
29
- border-radius: var(--m-radius-md);
30
- box-shadow: var(--m-shadow-md);
31
- display: grid;
32
- gap: var(--m-space-1);
33
- max-width: calc(100vw - 2 * var(--m-space-4));
34
- min-width: var(--m-dropdown-menu-min-width);
35
- overflow: hidden;
36
- padding: var(--m-space-1);
37
- position: absolute;
38
- top: calc(100% + var(--m-space-2));
39
- /* Grow with the content: the default shrink-to-fit width of an abs/fixed
40
- box is clamped by its containing block (the trigger width when not
41
- teleported), so long items would be clipped instead of widening the menu. */
42
- width: max-content;
43
- z-index: var(--m-z-popper);
44
- }
45
-
46
- .m-dropdown__scroll {
47
- max-height: var(--m-dropdown-menu-max-height);
48
- min-height: 0;
49
- }
50
-
51
- .m-dropdown__scroll-view {
52
- display: grid;
53
- gap: var(--m-space-1);
54
- }
55
-
56
- .m-dropdown__menu--bottom-start {
57
- left: 0;
58
- }
59
-
60
- .m-dropdown__menu--bottom-end {
61
- right: 0;
62
- }
63
-
64
- .m-dropdown__menu--teleported {
65
- position: fixed;
66
- top: auto;
67
- z-index: var(--m-z-dropdown);
68
- }
69
-
70
- .m-dropdown__item {
71
- align-items: center;
72
- background: transparent;
73
- border: 0;
74
- border-radius: var(--m-radius-sm);
75
- box-sizing: border-box;
76
- color: var(--m-color-text);
77
- cursor: pointer;
78
- display: flex;
79
- font-family: var(--m-font-sans);
80
- font-size: var(--m-control-font-medium);
81
- gap: var(--m-space-2);
82
- min-height: var(--m-control-height-medium);
83
- padding: 0 var(--m-control-padding-x-medium);
84
- text-align: left;
85
- transition:
86
- background-color var(--m-motion-fast) var(--m-motion-ease),
87
- color var(--m-motion-fast) var(--m-motion-ease);
88
- white-space: nowrap;
89
- }
90
-
91
- .m-dropdown__caret {
92
- margin-left: auto;
93
- }
94
-
95
- .m-dropdown__item:hover:not(:disabled),
96
- .m-dropdown__item--highlighted:not(:disabled) {
97
- background: color-mix(in srgb, var(--m-color-primary) 10%, transparent);
98
- color: var(--m-color-primary);
99
- }
100
-
101
- .m-dropdown__item:focus-visible {
102
- background: color-mix(in srgb, var(--m-color-primary) 10%, transparent);
103
- box-shadow: none;
104
- outline: none;
105
- }
106
-
107
- .m-dropdown__item:disabled {
108
- color: var(--m-color-text-muted);
109
- cursor: not-allowed;
110
- opacity: var(--m-opacity-disabled);
111
- }
112
-
113
- .m-dropdown__separator {
114
- background: var(--m-color-border);
115
- height: var(--m-border-width);
116
- margin: var(--m-space-1) 0;
117
- }
118
-
119
- /* Groups nest items in a wrapper div, outside the scroll-view grid: restate
120
- the grid so grouped items keep the same gap rhythm and stretch full width. */
121
- .m-dropdown__group {
122
- display: grid;
123
- gap: var(--m-space-1);
124
- }
125
-
126
- .m-dropdown__group-label {
127
- color: var(--m-color-text-muted);
128
- font-size: var(--m-font-size-xs);
129
- padding: var(--m-space-2) var(--m-control-padding-x-medium) var(--m-space-1);
130
- }
1
+ .m-dropdown {
2
+ --m-dropdown-menu-min-width: var(--m-menu-min-width, 10rem);
3
+ display: inline-block;
4
+ font-family: var(--m-font-sans);
5
+ position: relative;
6
+ }
7
+
8
+ .m-dropdown__trigger {
9
+ align-items: center;
10
+ background: transparent;
11
+ border: 0;
12
+ border-radius: var(--m-radius-sm);
13
+ color: inherit;
14
+ cursor: pointer;
15
+ display: inline-flex;
16
+ font: inherit;
17
+ transition: color var(--m-motion-fast) var(--m-motion-ease);
18
+ }
19
+
20
+ .m-dropdown__trigger:focus-visible {
21
+ box-shadow: var(--m-focus-shadow);
22
+ outline: none;
23
+ }
24
+
25
+ .m-dropdown__menu {
26
+ --m-dropdown-menu-max-height: min(18rem, 45vh);
27
+ background: var(--m-color-surface);
28
+ border: var(--m-border-width) solid var(--m-color-border);
29
+ border-radius: var(--m-radius-md);
30
+ box-shadow: var(--m-shadow-md);
31
+ display: grid;
32
+ gap: var(--m-space-1);
33
+ max-width: calc(100vw - 2 * var(--m-space-4));
34
+ min-width: var(--m-dropdown-menu-min-width);
35
+ overflow: hidden;
36
+ padding: var(--m-space-1);
37
+ position: absolute;
38
+ top: calc(100% + var(--m-space-2));
39
+ /* Grow with the content: the default shrink-to-fit width of an abs/fixed
40
+ box is clamped by its containing block (the trigger width when not
41
+ teleported), so long items would be clipped instead of widening the menu. */
42
+ width: max-content;
43
+ z-index: var(--m-z-popper);
44
+ }
45
+
46
+ .m-dropdown__scroll {
47
+ max-height: var(--m-dropdown-menu-max-height);
48
+ min-height: 0;
49
+ }
50
+
51
+ .m-dropdown__scroll-view {
52
+ display: grid;
53
+ gap: var(--m-space-1);
54
+ }
55
+
56
+ .m-dropdown__menu--bottom-start {
57
+ left: 0;
58
+ }
59
+
60
+ .m-dropdown__menu--bottom-end {
61
+ right: 0;
62
+ }
63
+
64
+ .m-dropdown__menu--teleported {
65
+ position: fixed;
66
+ top: auto;
67
+ z-index: var(--m-z-dropdown);
68
+ }
69
+
70
+ .m-dropdown__item {
71
+ align-items: center;
72
+ background: transparent;
73
+ border: 0;
74
+ border-radius: var(--m-radius-sm);
75
+ box-sizing: border-box;
76
+ color: var(--m-color-text);
77
+ cursor: pointer;
78
+ display: flex;
79
+ font-family: var(--m-font-sans);
80
+ font-size: var(--m-control-font-medium);
81
+ gap: var(--m-space-2);
82
+ min-height: var(--m-control-height-medium);
83
+ padding: 0 var(--m-control-padding-x-medium);
84
+ text-align: left;
85
+ transition:
86
+ background-color var(--m-motion-fast) var(--m-motion-ease),
87
+ color var(--m-motion-fast) var(--m-motion-ease);
88
+ white-space: nowrap;
89
+ }
90
+
91
+ .m-dropdown__caret {
92
+ margin-left: auto;
93
+ }
94
+
95
+ .m-dropdown__item:hover:not(:disabled),
96
+ .m-dropdown__item--highlighted:not(:disabled) {
97
+ background: color-mix(in srgb, var(--m-color-primary) 10%, transparent);
98
+ color: var(--m-color-primary);
99
+ }
100
+
101
+ .m-dropdown__item:focus-visible {
102
+ background: color-mix(in srgb, var(--m-color-primary) 10%, transparent);
103
+ box-shadow: none;
104
+ outline: none;
105
+ }
106
+
107
+ .m-dropdown__item:disabled {
108
+ color: var(--m-color-text-muted);
109
+ cursor: not-allowed;
110
+ opacity: var(--m-opacity-disabled);
111
+ }
112
+
113
+ .m-dropdown__separator {
114
+ background: var(--m-color-border);
115
+ height: var(--m-border-width);
116
+ margin: var(--m-space-1) 0;
117
+ }
118
+
119
+ /* Groups nest items in a wrapper div, outside the scroll-view grid: restate
120
+ the grid so grouped items keep the same gap rhythm and stretch full width. */
121
+ .m-dropdown__group {
122
+ display: grid;
123
+ gap: var(--m-space-1);
124
+ }
125
+
126
+ .m-dropdown__group-label {
127
+ color: var(--m-color-text-muted);
128
+ font-size: var(--m-font-size-xs);
129
+ padding: var(--m-space-2) var(--m-control-padding-x-medium) var(--m-space-1);
130
+ }
@@ -1,146 +1,146 @@
1
- /* —— Feedback: Empty —— */
2
- .m-empty {
3
- --m-empty-illustration-width: 12.5rem;
4
- --m-empty-illustration-height: 6.5rem;
5
- --m-empty-max-width: 20rem;
6
- --m-empty-icon-size: var(--m-space-8);
7
- --m-empty-font-size: var(--m-font-size-md);
8
- align-items: center;
9
- display: flex;
10
- flex-direction: column;
11
- font-family: var(--m-font-sans);
12
- gap: var(--m-space-2);
13
- justify-content: center;
14
- padding: calc(var(--m-space-8) + var(--m-space-1)) var(--m-space-5);
15
- text-align: center;
16
- }
17
-
18
- .m-empty__illustration {
19
- align-items: center;
20
- color: var(--m-color-text-muted);
21
- display: grid;
22
- flex-shrink: 0;
23
- height: var(--m-empty-illustration-height);
24
- justify-items: center;
25
- place-items: center;
26
- width: var(--m-empty-illustration-width);
27
- }
28
-
29
- .m-empty__illustration :is(svg, .m-empty__glyph) {
30
- display: block;
31
- height: 100%;
32
- width: 100%;
33
- }
34
-
35
- .m-empty__icon :is(.m-icon, svg),
36
- .m-empty__default-icon,
37
- .m-empty__default-icon svg {
38
- color: inherit;
39
- display: block;
40
- height: var(--m-empty-icon-size);
41
- width: var(--m-empty-icon-size);
42
- }
43
-
44
- .m-empty--default-icon .m-empty__illustration {
45
- height: var(--m-empty-icon-size);
46
- width: var(--m-empty-icon-size);
47
- }
48
-
49
- .m-empty__image {
50
- display: block;
51
- height: auto;
52
- max-height: 100%;
53
- max-width: 100%;
54
- object-fit: contain;
55
- }
56
-
57
- .m-empty__illustration:has(.m-empty__image),
58
- .m-empty__illustration:has(img) {
59
- height: auto;
60
- max-height: 10rem;
61
- max-width: min(16rem, 100%);
62
- width: auto;
63
- }
64
-
65
- .m-empty__body {
66
- align-items: center;
67
- display: flex;
68
- flex-direction: column;
69
- gap: var(--m-space-1);
70
- max-width: var(--m-empty-max-width);
71
- }
72
-
73
- .m-empty__title {
74
- color: var(--m-color-text);
75
- font-size: var(--m-empty-font-size);
76
- font-weight: 600;
77
- line-height: 1.4;
78
- margin: 0;
79
- }
80
-
81
- .m-empty__description {
82
- color: var(--m-color-text-muted);
83
- font-size: var(--m-empty-font-size);
84
- line-height: 1.55;
85
- margin: 0;
86
- }
87
-
88
- .m-empty__extra {
89
- align-items: center;
90
- display: flex;
91
- flex-wrap: wrap;
92
- gap: var(--m-space-2);
93
- justify-content: center;
94
- margin-top: var(--m-space-1);
95
- }
96
-
97
- .m-empty--small {
98
- --m-empty-illustration-width: 9.5rem;
99
- --m-empty-illustration-height: 5rem;
100
- --m-empty-icon-size: var(--m-space-6);
101
- --m-empty-font-size: var(--m-font-size-sm);
102
- padding: var(--m-space-6) var(--m-space-4);
103
- }
104
-
105
- .m-empty--large {
106
- --m-empty-illustration-width: 15rem;
107
- --m-empty-illustration-height: 7.75rem;
108
- --m-empty-icon-size: calc(var(--m-space-8) + var(--m-space-2));
109
- --m-empty-font-size: var(--m-font-size-lg);
110
- padding: calc(var(--m-space-8) + var(--m-space-2)) var(--m-space-6);
111
- }
112
-
113
- .m-empty--simple {
114
- flex-direction: row;
115
- gap: var(--m-space-2);
116
- justify-content: flex-start;
117
- padding: calc(var(--m-space-3) + var(--m-space-1)) var(--m-space-3);
118
- text-align: left;
119
- }
120
-
121
- .m-empty--simple .m-empty__illustration {
122
- height: calc(var(--m-control-height-large) + var(--m-space-1));
123
- width: calc(var(--m-control-height-large) + var(--m-space-1));
124
- }
125
-
126
- .m-empty--simple .m-empty__icon :is(.m-icon, svg),
127
- .m-empty--simple .m-empty__default-icon,
128
- .m-empty--simple .m-empty__default-icon svg {
129
- height: var(--m-space-6);
130
- width: var(--m-space-6);
131
- }
132
-
133
- .m-empty--simple .m-empty__body {
134
- align-items: flex-start;
135
- max-width: none;
136
- }
137
-
138
- .m-empty--simple .m-empty__title,
139
- .m-empty--simple .m-empty__description {
140
- font-size: var(--m-font-size-sm);
141
- }
142
-
143
- .m-empty--simple .m-empty__extra {
144
- justify-content: flex-start;
145
- margin-top: 0;
146
- }
1
+ /* —— Feedback: Empty —— */
2
+ .m-empty {
3
+ --m-empty-illustration-width: 12.5rem;
4
+ --m-empty-illustration-height: 6.5rem;
5
+ --m-empty-max-width: 20rem;
6
+ --m-empty-icon-size: var(--m-space-8);
7
+ --m-empty-font-size: var(--m-font-size-md);
8
+ align-items: center;
9
+ display: flex;
10
+ flex-direction: column;
11
+ font-family: var(--m-font-sans);
12
+ gap: var(--m-space-2);
13
+ justify-content: center;
14
+ padding: calc(var(--m-space-8) + var(--m-space-1)) var(--m-space-5);
15
+ text-align: center;
16
+ }
17
+
18
+ .m-empty__illustration {
19
+ align-items: center;
20
+ color: var(--m-color-text-muted);
21
+ display: grid;
22
+ flex-shrink: 0;
23
+ height: var(--m-empty-illustration-height);
24
+ justify-items: center;
25
+ place-items: center;
26
+ width: var(--m-empty-illustration-width);
27
+ }
28
+
29
+ .m-empty__illustration :is(svg, .m-empty__glyph) {
30
+ display: block;
31
+ height: 100%;
32
+ width: 100%;
33
+ }
34
+
35
+ .m-empty__icon :is(.m-icon, svg),
36
+ .m-empty__default-icon,
37
+ .m-empty__default-icon svg {
38
+ color: inherit;
39
+ display: block;
40
+ height: var(--m-empty-icon-size);
41
+ width: var(--m-empty-icon-size);
42
+ }
43
+
44
+ .m-empty--default-icon .m-empty__illustration {
45
+ height: var(--m-empty-icon-size);
46
+ width: var(--m-empty-icon-size);
47
+ }
48
+
49
+ .m-empty__image {
50
+ display: block;
51
+ height: auto;
52
+ max-height: 100%;
53
+ max-width: 100%;
54
+ object-fit: contain;
55
+ }
56
+
57
+ .m-empty__illustration:has(.m-empty__image),
58
+ .m-empty__illustration:has(img) {
59
+ height: auto;
60
+ max-height: 10rem;
61
+ max-width: min(16rem, 100%);
62
+ width: auto;
63
+ }
64
+
65
+ .m-empty__body {
66
+ align-items: center;
67
+ display: flex;
68
+ flex-direction: column;
69
+ gap: var(--m-space-1);
70
+ max-width: var(--m-empty-max-width);
71
+ }
72
+
73
+ .m-empty__title {
74
+ color: var(--m-color-text);
75
+ font-size: var(--m-empty-font-size);
76
+ font-weight: 600;
77
+ line-height: 1.4;
78
+ margin: 0;
79
+ }
80
+
81
+ .m-empty__description {
82
+ color: var(--m-color-text-muted);
83
+ font-size: var(--m-empty-font-size);
84
+ line-height: 1.55;
85
+ margin: 0;
86
+ }
87
+
88
+ .m-empty__extra {
89
+ align-items: center;
90
+ display: flex;
91
+ flex-wrap: wrap;
92
+ gap: var(--m-space-2);
93
+ justify-content: center;
94
+ margin-top: var(--m-space-1);
95
+ }
96
+
97
+ .m-empty--small {
98
+ --m-empty-illustration-width: 9.5rem;
99
+ --m-empty-illustration-height: 5rem;
100
+ --m-empty-icon-size: var(--m-space-6);
101
+ --m-empty-font-size: var(--m-font-size-sm);
102
+ padding: var(--m-space-6) var(--m-space-4);
103
+ }
104
+
105
+ .m-empty--large {
106
+ --m-empty-illustration-width: 15rem;
107
+ --m-empty-illustration-height: 7.75rem;
108
+ --m-empty-icon-size: calc(var(--m-space-8) + var(--m-space-2));
109
+ --m-empty-font-size: var(--m-font-size-lg);
110
+ padding: calc(var(--m-space-8) + var(--m-space-2)) var(--m-space-6);
111
+ }
112
+
113
+ .m-empty--simple {
114
+ flex-direction: row;
115
+ gap: var(--m-space-2);
116
+ justify-content: flex-start;
117
+ padding: calc(var(--m-space-3) + var(--m-space-1)) var(--m-space-3);
118
+ text-align: left;
119
+ }
120
+
121
+ .m-empty--simple .m-empty__illustration {
122
+ height: calc(var(--m-control-height-large) + var(--m-space-1));
123
+ width: calc(var(--m-control-height-large) + var(--m-space-1));
124
+ }
125
+
126
+ .m-empty--simple .m-empty__icon :is(.m-icon, svg),
127
+ .m-empty--simple .m-empty__default-icon,
128
+ .m-empty--simple .m-empty__default-icon svg {
129
+ height: var(--m-space-6);
130
+ width: var(--m-space-6);
131
+ }
132
+
133
+ .m-empty--simple .m-empty__body {
134
+ align-items: flex-start;
135
+ max-width: none;
136
+ }
137
+
138
+ .m-empty--simple .m-empty__title,
139
+ .m-empty--simple .m-empty__description {
140
+ font-size: var(--m-font-size-sm);
141
+ }
142
+
143
+ .m-empty--simple .m-empty__extra {
144
+ justify-content: flex-start;
145
+ margin-top: 0;
146
+ }