morya-ui 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/Button-dMqRmoYa.js +222 -0
  3. package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
  4. package/dist/Empty-C5tndBOm.js +147 -0
  5. package/dist/Pagination-CqpC5EAs.js +166 -0
  6. package/dist/Select-CKGrSoaC.js +572 -0
  7. package/dist/Skeleton-DCYdXAH2.js +59 -0
  8. package/dist/accordion/style.css +16 -71
  9. package/dist/auto-complete/index.js +117 -119
  10. package/dist/auto-complete/style.css +6 -82
  11. package/dist/avatar/style.css +6 -67
  12. package/dist/badge/style.css +6 -68
  13. package/dist/block-ui/style.css +6 -68
  14. package/dist/breadcrumb/style.css +6 -61
  15. package/dist/button/index.js +1 -1
  16. package/dist/button/style.css +68 -78
  17. package/dist/card/index.js +1 -1
  18. package/dist/card/style.css +26 -67
  19. package/dist/carousel/style.css +6 -73
  20. package/dist/cascade-select/style.css +6 -75
  21. package/dist/checkbox/style.css +6 -61
  22. package/dist/chip/style.css +6 -67
  23. package/dist/command-menu/index.js +36 -38
  24. package/dist/command-menu/style.css +6 -75
  25. package/dist/components/Accordion/styles.css +10 -10
  26. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  27. package/dist/components/AutoComplete/styles.css +0 -7
  28. package/dist/components/Badge/styles.css +0 -7
  29. package/dist/components/BlockUI/styles.css +0 -7
  30. package/dist/components/Button/Button.vue.d.ts +2 -0
  31. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  32. package/dist/components/Button/styles.css +62 -11
  33. package/dist/components/Button/types.d.ts +4 -0
  34. package/dist/components/Button/types.d.ts.map +1 -1
  35. package/dist/components/Card/Card.vue.d.ts +2 -2
  36. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  37. package/dist/components/Card/index.d.ts +1 -1
  38. package/dist/components/Card/index.d.ts.map +1 -1
  39. package/dist/components/Card/styles.css +20 -6
  40. package/dist/components/Card/types.d.ts +4 -2
  41. package/dist/components/Card/types.d.ts.map +1 -1
  42. package/dist/components/Carousel/styles.css +0 -6
  43. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  44. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
  45. package/dist/components/Dialog/styles.css +3 -46
  46. package/dist/components/Dock/styles.css +0 -10
  47. package/dist/components/Drawer/styles.css +2 -51
  48. package/dist/components/Fieldset/styles.css +0 -7
  49. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  50. package/dist/components/FileUpload/fileUtils.d.ts +8 -0
  51. package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
  52. package/dist/components/Gallery/styles.css +0 -8
  53. package/dist/components/Icon/styles.css +0 -6
  54. package/dist/components/Knob/styles.css +0 -6
  55. package/dist/components/Layout/styles.css +0 -12
  56. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  57. package/dist/components/Loading/styles.css +0 -16
  58. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  59. package/dist/components/Menu/styles.css +0 -7
  60. package/dist/components/Message/styles.css +0 -13
  61. package/dist/components/Page/PageContent.vue.d.ts +2 -1
  62. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  63. package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
  64. package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
  65. package/dist/components/Page/PageFilters.vue.d.ts +15 -3
  66. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  67. package/dist/components/Page/PageHeader.vue.d.ts +8 -4
  68. package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
  69. package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
  70. package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
  71. package/dist/components/Page/PageSection.vue.d.ts +8 -2
  72. package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
  73. package/dist/components/Page/PageStat.vue.d.ts +8 -3
  74. package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
  75. package/dist/components/Page/index.d.ts +2 -1
  76. package/dist/components/Page/index.d.ts.map +1 -1
  77. package/dist/components/Page/styles.css +239 -44
  78. package/dist/components/Page/types.d.ts +40 -0
  79. package/dist/components/Page/types.d.ts.map +1 -1
  80. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  81. package/dist/components/Pagination/styles.css +7 -10
  82. package/dist/components/Pagination/types.d.ts +1 -1
  83. package/dist/components/Pagination/types.d.ts.map +1 -1
  84. package/dist/components/Panel/styles.css +0 -7
  85. package/dist/components/Popover/styles.css +20 -17
  86. package/dist/components/ProgressBar/styles.css +0 -9
  87. package/dist/components/ProgressSpinner/styles.css +0 -7
  88. package/dist/components/ScrollTop/styles.css +0 -7
  89. package/dist/components/Scrollbar/styles.css +0 -8
  90. package/dist/components/Select/Select.vue.d.ts +1 -3
  91. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  92. package/dist/components/Select/selectOptions.d.ts +46 -0
  93. package/dist/components/Select/selectOptions.d.ts.map +1 -0
  94. package/dist/components/Select/styles.css +5 -7
  95. package/dist/components/Sidebar/styles.css +0 -6
  96. package/dist/components/Skeleton/styles.css +0 -6
  97. package/dist/components/Status/styles.css +0 -7
  98. package/dist/components/Switch/styles.css +0 -7
  99. package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
  100. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  101. package/dist/components/Table/styles.css +7 -10
  102. package/dist/components/Table/tableQuery.d.ts +30 -0
  103. package/dist/components/Table/tableQuery.d.ts.map +1 -0
  104. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  105. package/dist/components/Tree/treeQuery.d.ts +31 -0
  106. package/dist/components/Tree/treeQuery.d.ts.map +1 -0
  107. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  108. package/dist/config-provider/index.js +1 -1
  109. package/dist/config-provider/style.css +68 -72
  110. package/dist/confirm-dialog/index.js +1 -1
  111. package/dist/confirm-dialog/style.css +71 -124
  112. package/dist/confirm-popup/index.js +1 -1
  113. package/dist/confirm-popup/style.css +68 -78
  114. package/dist/context-menu/style.css +6 -75
  115. package/dist/data-view/index.js +1 -1
  116. package/dist/data-view/style.css +13 -87
  117. package/dist/date-picker/style.css +6 -67
  118. package/dist/dialog/index.js +1 -1
  119. package/dist/dialog/style.css +71 -124
  120. package/dist/divider/style.css +6 -61
  121. package/dist/dock/style.css +6 -77
  122. package/dist/drawer/style.css +8 -118
  123. package/dist/dropdown/style.css +6 -75
  124. package/dist/empty/index.js +5 -150
  125. package/dist/empty/style.css +6 -67
  126. package/dist/fieldset/style.css +6 -74
  127. package/dist/file-upload/index.js +147 -145
  128. package/dist/file-upload/style.css +6 -67
  129. package/dist/filterByQuery-Bczaxzih.js +17 -0
  130. package/dist/flex/style.css +6 -61
  131. package/dist/float-label/style.css +6 -61
  132. package/dist/fluid/style.css +6 -61
  133. package/dist/form/style.css +6 -61
  134. package/dist/gallery/style.css +6 -83
  135. package/dist/grid/style.css +6 -61
  136. package/dist/icon/style.css +6 -67
  137. package/dist/icon-field/style.css +6 -61
  138. package/dist/index.d.ts +3 -2
  139. package/dist/index.d.ts.map +1 -1
  140. package/dist/index.js +9017 -8694
  141. package/dist/inplace/style.css +6 -61
  142. package/dist/input/style.css +6 -67
  143. package/dist/input-color/style.css +6 -61
  144. package/dist/input-group/style.css +6 -61
  145. package/dist/input-number/style.css +6 -67
  146. package/dist/input-otp/style.css +6 -61
  147. package/dist/input-password/style.css +6 -67
  148. package/dist/input-tags/style.css +6 -67
  149. package/dist/knob/style.css +6 -67
  150. package/dist/label/style.css +6 -61
  151. package/dist/layout/style.css +6 -87
  152. package/dist/listbox/index.js +30 -32
  153. package/dist/listbox/style.css +6 -69
  154. package/dist/loading/style.css +6 -77
  155. package/dist/mega-menu/style.css +6 -67
  156. package/dist/menu/index.js +263 -253
  157. package/dist/menu/style.css +26 -99
  158. package/dist/menubar/style.css +6 -75
  159. package/dist/message/style.css +6 -80
  160. package/dist/meter-group/style.css +6 -61
  161. package/dist/order-list/style.css +6 -67
  162. package/dist/page/index.js +228 -69
  163. package/dist/page/style.css +1182 -113
  164. package/dist/page/style.js +3 -0
  165. package/dist/pagination/index.js +1 -1
  166. package/dist/pagination/style.css +206 -77
  167. package/dist/pagination/style.js +1 -0
  168. package/dist/panel/style.css +6 -74
  169. package/dist/pick-list/style.css +6 -67
  170. package/dist/popover/style.css +26 -78
  171. package/dist/progress-bar/style.css +6 -70
  172. package/dist/progress-spinner/style.css +6 -68
  173. package/dist/radio/style.css +6 -61
  174. package/dist/rating/style.css +6 -67
  175. package/dist/resolver-map.d.ts.map +1 -1
  176. package/dist/resolver.js +1 -0
  177. package/dist/result/style.css +6 -67
  178. package/dist/scroll-top/style.css +6 -82
  179. package/dist/scrollbar/style.css +6 -69
  180. package/dist/select/index.js +2 -545
  181. package/dist/select/style.css +11 -82
  182. package/dist/select-button/style.css +6 -61
  183. package/dist/shared/config.d.ts +2 -2
  184. package/dist/shared/filterByQuery.d.ts +14 -0
  185. package/dist/shared/filterByQuery.d.ts.map +1 -0
  186. package/dist/shared/menu/expand.d.ts +38 -0
  187. package/dist/shared/menu/expand.d.ts.map +1 -0
  188. package/dist/shared/menu/index.d.ts +2 -0
  189. package/dist/shared/menu/index.d.ts.map +1 -1
  190. package/dist/sidebar/style.css +6 -73
  191. package/dist/skeleton/index.js +2 -59
  192. package/dist/skeleton/style.css +6 -67
  193. package/dist/slider/style.css +6 -61
  194. package/dist/space/style.css +6 -61
  195. package/dist/speed-dial/style.css +6 -67
  196. package/dist/split-button/style.css +68 -78
  197. package/dist/splitter/style.css +6 -61
  198. package/dist/status/style.css +6 -74
  199. package/dist/stepper/style.css +6 -67
  200. package/dist/styles/base.css +1 -50
  201. package/dist/styles.css +1 -1
  202. package/dist/switch/style.css +6 -68
  203. package/dist/table/index.js +341 -311
  204. package/dist/table/style.css +20 -111
  205. package/dist/tabs/style.css +6 -75
  206. package/dist/tag/style.css +6 -67
  207. package/dist/terminal/style.css +6 -61
  208. package/dist/textarea/style.css +6 -67
  209. package/dist/theme/styles.css +5 -11
  210. package/dist/theme/useMotion.d.ts +5 -1
  211. package/dist/theme/useMotion.d.ts.map +1 -1
  212. package/dist/tiered-menu/style.css +6 -75
  213. package/dist/timeline/style.css +6 -75
  214. package/dist/toast/style.css +6 -67
  215. package/dist/toggle-button/style.css +6 -67
  216. package/dist/toolbar/style.css +6 -61
  217. package/dist/tooltip/style.css +6 -61
  218. package/dist/tree/index.js +158 -172
  219. package/dist/tree/style.css +6 -67
  220. package/dist/tree-select/index.js +198 -212
  221. package/dist/tree-select/style.css +6 -75
  222. package/dist/tree-table/style.css +6 -67
  223. package/dist/treeQuery-CnHkyYOA.js +107 -0
  224. package/dist/virtual-scroller/style.css +6 -69
  225. package/package.json +1 -1
  226. package/dist/Button-smoDleh0.js +0 -156
  227. package/dist/Pagination-DrXmzcEy.js +0 -158
  228. package/dist/checkStrategy-CZzuUKDI.js +0 -63
@@ -50,6 +50,10 @@
50
50
  --m-font-size-sm: 0.8125rem;
51
51
  --m-font-size-md: 0.875rem;
52
52
  --m-font-size-lg: 1.125rem;
53
+ /* Display scale (page titles, KPI figures) */
54
+ --m-font-size-xl: 1.25rem;
55
+ --m-font-size-2xl: 1.5rem;
56
+ --m-font-size-3xl: 1.75rem;
53
57
  --m-opacity-disabled: 0.55;
54
58
  /* Layering: override --m-z-base via ConfigProvider / createMoryaUI */
55
59
  --m-z-base: 1000;
@@ -192,20 +196,10 @@
192
196
 
193
197
  /*
194
198
  * Global motion policy (complements per-component rules):
195
- * - `reduced` / OS prefers-reduced-motion: keep short paint transitions; stop loops
199
+ * - `reduced`: keep short paint transitions; stop loops
196
200
  * and layout/transform size animation.
197
201
  * - `none`: zero all transition/animation durations.
198
202
  */
199
- @media (prefers-reduced-motion: reduce) {
200
- html:not([data-m-ignore-reduced-motion]) *,
201
- html:not([data-m-ignore-reduced-motion]) *::before,
202
- html:not([data-m-ignore-reduced-motion]) *::after {
203
- animation-duration: 0.01ms !important;
204
- animation-iteration-count: 1 !important;
205
- transition-property: background-color, border-color, color, opacity, box-shadow,
206
- outline, fill, stroke, stroke-dashoffset !important;
207
- }
208
- }
209
203
 
210
204
  [data-m-motion="reduced"] *,
211
205
  [data-m-motion="reduced"] *::before,
@@ -615,7 +609,7 @@
615
609
  .m-zoom-enter-from,
616
610
  .m-zoom-leave-to {
617
611
  opacity: 0;
618
- transform: scale(0.9);
612
+ transform: scale(0.95);
619
613
  }
620
614
 
621
615
  .m-slide-up-enter-active,
@@ -660,44 +654,6 @@
660
654
  transform: translateX(calc(var(--m-motion-distance) * -1));
661
655
  }
662
656
 
663
- @media (prefers-reduced-motion: reduce) {
664
- html:not([data-m-ignore-reduced-motion]) .m-fade-enter-active,
665
- html:not([data-m-ignore-reduced-motion]) .m-fade-leave-active,
666
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-active,
667
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-active,
668
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-active,
669
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active,
670
- html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-active,
671
- html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-active,
672
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-active,
673
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-active,
674
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-active,
675
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-active,
676
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-active,
677
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-active,
678
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-active,
679
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-active {
680
- transition: none;
681
- }
682
-
683
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-from,
684
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-to,
685
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-from,
686
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to,
687
- html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-from,
688
- html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-to,
689
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-from,
690
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-to,
691
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-from,
692
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-to,
693
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-from,
694
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-to,
695
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-from,
696
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-to {
697
- transform: none;
698
- }
699
- }
700
-
701
657
  [data-m-motion="reduced"] .m-fade-enter-active,
702
658
  [data-m-motion="reduced"] .m-fade-leave-active,
703
659
  [data-m-motion="reduced"] .m-scale-fade-enter-active,
@@ -1192,17 +1148,6 @@
1192
1148
  animation: none !important;
1193
1149
  }
1194
1150
 
1195
- @media (prefers-reduced-motion: reduce) {
1196
- html:not([data-m-ignore-reduced-motion]) *,
1197
- html:not([data-m-ignore-reduced-motion]) *::before,
1198
- html:not([data-m-ignore-reduced-motion]) *::after {
1199
- animation-duration: 0.01ms !important;
1200
- animation-iteration-count: 1 !important;
1201
- scroll-behavior: auto !important;
1202
- transition-duration: 0.01ms !important;
1203
- }
1204
- }
1205
-
1206
1151
  .m-button {
1207
1152
  --m-button-padding-x-small: var(--m-control-padding-x-small);
1208
1153
  --m-button-padding-x-medium: calc(
@@ -1248,21 +1193,28 @@
1248
1193
  border-color var(--m-motion-fast) var(--m-motion-ease),
1249
1194
  color var(--m-motion-fast) var(--m-motion-ease),
1250
1195
  box-shadow var(--m-motion-fast) var(--m-motion-ease),
1251
- opacity var(--m-motion-fast) var(--m-motion-ease);
1196
+ opacity var(--m-motion-fast) var(--m-motion-ease),
1197
+ transform 160ms var(--m-motion-ease);
1252
1198
  vertical-align: middle;
1253
1199
  white-space: nowrap;
1254
1200
  }
1255
1201
 
1256
- .m-button:hover:not(:disabled) {
1257
- background: var(--m-button-hover-bg);
1258
- border-color: var(--m-button-hover-border);
1259
- color: var(--m-button-hover-fg);
1202
+ @media (hover: hover) and (pointer: fine) {
1203
+ .m-button:hover:not(:disabled) {
1204
+ background: var(--m-button-hover-bg);
1205
+ border-color: var(--m-button-hover-border);
1206
+ color: var(--m-button-hover-fg);
1207
+ }
1260
1208
  }
1261
1209
 
1262
1210
  .m-button:active:not(:disabled) {
1263
1211
  background: var(--m-button-active-bg);
1264
1212
  }
1265
1213
 
1214
+ .m-button--press:active:not(:disabled) {
1215
+ transform: scale(0.97);
1216
+ }
1217
+
1266
1218
  /* Naive-style focus: soft glow, not outline-offset ring */
1267
1219
  .m-button:focus {
1268
1220
  outline: none;
@@ -1784,6 +1736,52 @@
1784
1736
  justify-content: center;
1785
1737
  }
1786
1738
 
1739
+ .m-button__icon,
1740
+ .m-button__label,
1741
+ .m-button__badge {
1742
+ position: relative;
1743
+ z-index: 1;
1744
+ }
1745
+
1746
+ .m-button__ripple {
1747
+ border-radius: inherit;
1748
+ inset: 0;
1749
+ overflow: hidden;
1750
+ pointer-events: none;
1751
+ position: absolute;
1752
+ z-index: 0;
1753
+ }
1754
+
1755
+ .m-button__ripple-wave {
1756
+ background: currentColor;
1757
+ border-radius: var(--m-radius-full);
1758
+ opacity: 0;
1759
+ pointer-events: none;
1760
+ position: absolute;
1761
+ transform: scale(0);
1762
+ will-change: transform, opacity;
1763
+ }
1764
+
1765
+ /* Used only when Web Animations API is unavailable. */
1766
+ .m-button__ripple-wave--fallback {
1767
+ animation: m-button-ripple 560ms var(--m-motion-ease) forwards;
1768
+ }
1769
+
1770
+ @keyframes m-button-ripple {
1771
+ 0% {
1772
+ opacity: 0.42;
1773
+ transform: scale(0);
1774
+ }
1775
+ 55% {
1776
+ opacity: 0.22;
1777
+ transform: scale(0.55);
1778
+ }
1779
+ 100% {
1780
+ opacity: 0;
1781
+ transform: scale(1);
1782
+ }
1783
+ }
1784
+
1787
1785
  .m-button__icon {
1788
1786
  flex: 0 0 auto;
1789
1787
  width: var(--m-button-icon-size);
@@ -1867,17 +1865,15 @@
1867
1865
  }
1868
1866
  }
1869
1867
 
1870
- @media (prefers-reduced-motion: reduce) {
1871
- html:not([data-m-ignore-reduced-motion]) .m-button__spinner {
1872
- animation: none;
1873
- }
1874
- }
1875
-
1876
1868
  [data-m-motion="reduced"] .m-button__spinner,
1877
1869
  [data-m-motion="none"] .m-button__spinner {
1878
1870
  animation: none;
1879
1871
  }
1880
1872
 
1873
+ [data-m-motion="none"] .m-button__ripple-wave {
1874
+ display: none;
1875
+ }
1876
+
1881
1877
  .m-input:focus {
1882
1878
  outline: none;
1883
1879
  }
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { t } from "../Icon-od9Ob-Ay.js";
3
3
  import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
4
- import { t as r } from "../Button-smoDleh0.js";
4
+ import { t as r } from "../Button-dMqRmoYa.js";
5
5
  import { n as i } from "../overlay-oR-5MDuE.js";
6
6
  import { t as a } from "../useModalOverlay-Beo3CEAt.js";
7
7
  import { t as o } from "../asyncGuard-CPGT_TKu.js";
@@ -50,6 +50,10 @@
50
50
  --m-font-size-sm: 0.8125rem;
51
51
  --m-font-size-md: 0.875rem;
52
52
  --m-font-size-lg: 1.125rem;
53
+ /* Display scale (page titles, KPI figures) */
54
+ --m-font-size-xl: 1.25rem;
55
+ --m-font-size-2xl: 1.5rem;
56
+ --m-font-size-3xl: 1.75rem;
53
57
  --m-opacity-disabled: 0.55;
54
58
  /* Layering: override --m-z-base via ConfigProvider / createMoryaUI */
55
59
  --m-z-base: 1000;
@@ -192,20 +196,10 @@
192
196
 
193
197
  /*
194
198
  * Global motion policy (complements per-component rules):
195
- * - `reduced` / OS prefers-reduced-motion: keep short paint transitions; stop loops
199
+ * - `reduced`: keep short paint transitions; stop loops
196
200
  * and layout/transform size animation.
197
201
  * - `none`: zero all transition/animation durations.
198
202
  */
199
- @media (prefers-reduced-motion: reduce) {
200
- html:not([data-m-ignore-reduced-motion]) *,
201
- html:not([data-m-ignore-reduced-motion]) *::before,
202
- html:not([data-m-ignore-reduced-motion]) *::after {
203
- animation-duration: 0.01ms !important;
204
- animation-iteration-count: 1 !important;
205
- transition-property: background-color, border-color, color, opacity, box-shadow,
206
- outline, fill, stroke, stroke-dashoffset !important;
207
- }
208
- }
209
203
 
210
204
  [data-m-motion="reduced"] *,
211
205
  [data-m-motion="reduced"] *::before,
@@ -615,7 +609,7 @@
615
609
  .m-zoom-enter-from,
616
610
  .m-zoom-leave-to {
617
611
  opacity: 0;
618
- transform: scale(0.9);
612
+ transform: scale(0.95);
619
613
  }
620
614
 
621
615
  .m-slide-up-enter-active,
@@ -660,44 +654,6 @@
660
654
  transform: translateX(calc(var(--m-motion-distance) * -1));
661
655
  }
662
656
 
663
- @media (prefers-reduced-motion: reduce) {
664
- html:not([data-m-ignore-reduced-motion]) .m-fade-enter-active,
665
- html:not([data-m-ignore-reduced-motion]) .m-fade-leave-active,
666
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-active,
667
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-active,
668
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-active,
669
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active,
670
- html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-active,
671
- html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-active,
672
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-active,
673
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-active,
674
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-active,
675
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-active,
676
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-active,
677
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-active,
678
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-active,
679
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-active {
680
- transition: none;
681
- }
682
-
683
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-from,
684
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-to,
685
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-from,
686
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to,
687
- html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-from,
688
- html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-to,
689
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-from,
690
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-to,
691
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-from,
692
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-to,
693
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-from,
694
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-to,
695
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-from,
696
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-to {
697
- transform: none;
698
- }
699
- }
700
-
701
657
  [data-m-motion="reduced"] .m-fade-enter-active,
702
658
  [data-m-motion="reduced"] .m-fade-leave-active,
703
659
  [data-m-motion="reduced"] .m-scale-fade-enter-active,
@@ -1192,17 +1148,6 @@
1192
1148
  animation: none !important;
1193
1149
  }
1194
1150
 
1195
- @media (prefers-reduced-motion: reduce) {
1196
- html:not([data-m-ignore-reduced-motion]) *,
1197
- html:not([data-m-ignore-reduced-motion]) *::before,
1198
- html:not([data-m-ignore-reduced-motion]) *::after {
1199
- animation-duration: 0.01ms !important;
1200
- animation-iteration-count: 1 !important;
1201
- scroll-behavior: auto !important;
1202
- transition-duration: 0.01ms !important;
1203
- }
1204
- }
1205
-
1206
1151
  .m-button {
1207
1152
  --m-button-padding-x-small: var(--m-control-padding-x-small);
1208
1153
  --m-button-padding-x-medium: calc(
@@ -1248,21 +1193,28 @@
1248
1193
  border-color var(--m-motion-fast) var(--m-motion-ease),
1249
1194
  color var(--m-motion-fast) var(--m-motion-ease),
1250
1195
  box-shadow var(--m-motion-fast) var(--m-motion-ease),
1251
- opacity var(--m-motion-fast) var(--m-motion-ease);
1196
+ opacity var(--m-motion-fast) var(--m-motion-ease),
1197
+ transform 160ms var(--m-motion-ease);
1252
1198
  vertical-align: middle;
1253
1199
  white-space: nowrap;
1254
1200
  }
1255
1201
 
1256
- .m-button:hover:not(:disabled) {
1257
- background: var(--m-button-hover-bg);
1258
- border-color: var(--m-button-hover-border);
1259
- color: var(--m-button-hover-fg);
1202
+ @media (hover: hover) and (pointer: fine) {
1203
+ .m-button:hover:not(:disabled) {
1204
+ background: var(--m-button-hover-bg);
1205
+ border-color: var(--m-button-hover-border);
1206
+ color: var(--m-button-hover-fg);
1207
+ }
1260
1208
  }
1261
1209
 
1262
1210
  .m-button:active:not(:disabled) {
1263
1211
  background: var(--m-button-active-bg);
1264
1212
  }
1265
1213
 
1214
+ .m-button--press:active:not(:disabled) {
1215
+ transform: scale(0.97);
1216
+ }
1217
+
1266
1218
  /* Naive-style focus: soft glow, not outline-offset ring */
1267
1219
  .m-button:focus {
1268
1220
  outline: none;
@@ -1784,6 +1736,52 @@
1784
1736
  justify-content: center;
1785
1737
  }
1786
1738
 
1739
+ .m-button__icon,
1740
+ .m-button__label,
1741
+ .m-button__badge {
1742
+ position: relative;
1743
+ z-index: 1;
1744
+ }
1745
+
1746
+ .m-button__ripple {
1747
+ border-radius: inherit;
1748
+ inset: 0;
1749
+ overflow: hidden;
1750
+ pointer-events: none;
1751
+ position: absolute;
1752
+ z-index: 0;
1753
+ }
1754
+
1755
+ .m-button__ripple-wave {
1756
+ background: currentColor;
1757
+ border-radius: var(--m-radius-full);
1758
+ opacity: 0;
1759
+ pointer-events: none;
1760
+ position: absolute;
1761
+ transform: scale(0);
1762
+ will-change: transform, opacity;
1763
+ }
1764
+
1765
+ /* Used only when Web Animations API is unavailable. */
1766
+ .m-button__ripple-wave--fallback {
1767
+ animation: m-button-ripple 560ms var(--m-motion-ease) forwards;
1768
+ }
1769
+
1770
+ @keyframes m-button-ripple {
1771
+ 0% {
1772
+ opacity: 0.42;
1773
+ transform: scale(0);
1774
+ }
1775
+ 55% {
1776
+ opacity: 0.22;
1777
+ transform: scale(0.55);
1778
+ }
1779
+ 100% {
1780
+ opacity: 0;
1781
+ transform: scale(1);
1782
+ }
1783
+ }
1784
+
1787
1785
  .m-button__icon {
1788
1786
  flex: 0 0 auto;
1789
1787
  width: var(--m-button-icon-size);
@@ -1867,17 +1865,15 @@
1867
1865
  }
1868
1866
  }
1869
1867
 
1870
- @media (prefers-reduced-motion: reduce) {
1871
- html:not([data-m-ignore-reduced-motion]) .m-button__spinner {
1872
- animation: none;
1873
- }
1874
- }
1875
-
1876
1868
  [data-m-motion="reduced"] .m-button__spinner,
1877
1869
  [data-m-motion="none"] .m-button__spinner {
1878
1870
  animation: none;
1879
1871
  }
1880
1872
 
1873
+ [data-m-motion="none"] .m-button__ripple-wave {
1874
+ display: none;
1875
+ }
1876
+
1881
1877
  /* —— Feedback: Dialog —— */
1882
1878
  .m-dialog button:focus {
1883
1879
  outline: none;
@@ -2073,6 +2069,7 @@
2073
2069
  .m-dialog__body {
2074
2070
  flex: 1 1 auto;
2075
2071
  overflow: auto;
2072
+ overscroll-behavior: contain;
2076
2073
  padding: var(--m-space-4);
2077
2074
  }
2078
2075
 
@@ -2122,7 +2119,7 @@
2122
2119
  .m-dialog-enter-from .m-dialog-zoom,
2123
2120
  .m-dialog-leave-to .m-dialog-zoom {
2124
2121
  opacity: 0;
2125
- transform: scale(0.36);
2122
+ transform: scale(0.95);
2126
2123
  }
2127
2124
 
2128
2125
  /*
@@ -2194,7 +2191,7 @@
2194
2191
  .m-zoom-enter-from .m-dialog-zoom,
2195
2192
  .m-zoom-leave-to .m-dialog-zoom {
2196
2193
  opacity: 0;
2197
- transform: scale(0.9);
2194
+ transform: scale(0.95);
2198
2195
  }
2199
2196
 
2200
2197
  .m-slide-up-enter-from .m-dialog-zoom,
@@ -2221,50 +2218,6 @@
2221
2218
  transform: translateX(calc(var(--m-motion-distance) * -1));
2222
2219
  }
2223
2220
 
2224
- @media (prefers-reduced-motion: reduce) {
2225
- html:not([data-m-ignore-reduced-motion]) .m-dialog-enter-active,
2226
- html:not([data-m-ignore-reduced-motion]) .m-dialog-leave-active,
2227
- html:not([data-m-ignore-reduced-motion]) .m-dialog-enter-active .m-dialog-zoom,
2228
- html:not([data-m-ignore-reduced-motion]) .m-dialog-leave-active .m-dialog-zoom,
2229
- html:not([data-m-ignore-reduced-motion]) .m-fade-enter-active .m-dialog-zoom,
2230
- html:not([data-m-ignore-reduced-motion]) .m-fade-leave-active .m-dialog-zoom,
2231
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-active .m-dialog-zoom,
2232
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-active .m-dialog-zoom,
2233
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-active .m-dialog-zoom,
2234
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active .m-dialog-zoom,
2235
- html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-active .m-dialog-zoom,
2236
- html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-active .m-dialog-zoom,
2237
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-active .m-dialog-zoom,
2238
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-active .m-dialog-zoom,
2239
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-active .m-dialog-zoom,
2240
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-active .m-dialog-zoom,
2241
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-active .m-dialog-zoom,
2242
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-active .m-dialog-zoom,
2243
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-active .m-dialog-zoom,
2244
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-active .m-dialog-zoom {
2245
- transition: none;
2246
- }
2247
-
2248
- html:not([data-m-ignore-reduced-motion]) .m-dialog-enter-from .m-dialog-zoom,
2249
- html:not([data-m-ignore-reduced-motion]) .m-dialog-leave-to .m-dialog-zoom,
2250
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-from .m-dialog-zoom,
2251
- html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-to .m-dialog-zoom,
2252
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-from .m-dialog-zoom,
2253
- html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to .m-dialog-zoom,
2254
- html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-from .m-dialog-zoom,
2255
- html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-to .m-dialog-zoom,
2256
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-from .m-dialog-zoom,
2257
- html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-to .m-dialog-zoom,
2258
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-from .m-dialog-zoom,
2259
- html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-to .m-dialog-zoom,
2260
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-from .m-dialog-zoom,
2261
- html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-to .m-dialog-zoom,
2262
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-from .m-dialog-zoom,
2263
- html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-to .m-dialog-zoom {
2264
- transform: none;
2265
- }
2266
- }
2267
-
2268
2221
  [data-m-motion="reduced"] .m-dialog-enter-active,
2269
2222
  [data-m-motion="reduced"] .m-dialog-leave-active,
2270
2223
  [data-m-motion="reduced"] .m-dialog-enter-active .m-dialog-zoom,
@@ -2387,12 +2340,6 @@
2387
2340
  }
2388
2341
  }
2389
2342
 
2390
- @media (prefers-reduced-motion: reduce) {
2391
- html:not([data-m-ignore-reduced-motion]) .m-icon--spin svg {
2392
- animation: none;
2393
- }
2394
- }
2395
-
2396
2343
  :root[data-m-motion='none'] .m-icon--spin svg,
2397
2344
  :root[data-m-motion='reduced'] .m-icon--spin svg {
2398
2345
  animation: none;
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { t } from "../Icon-od9Ob-Ay.js";
3
3
  import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
4
- import { t as r } from "../Button-smoDleh0.js";
4
+ import { t as r } from "../Button-dMqRmoYa.js";
5
5
  import { n as i, t as a } from "../overlay-oR-5MDuE.js";
6
6
  import { t as o } from "../overlayPlacement-Cd20JTD_.js";
7
7
  import { t as s } from "../useFloatingViewportSync-DZdJ7W8n.js";