morya-ui 0.3.1 → 0.3.3

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 (255) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/Button-gBiRj7wz.js +227 -0
  3. package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
  4. package/dist/Empty-C5tndBOm.js +147 -0
  5. package/dist/{FlyoutSubmenu-BrUPmJa1.js → FlyoutSubmenu-H_741alW.js} +2 -2
  6. package/dist/{Loading-BSsRs6v9.js → Loading-qS2Yv_gm.js} +1 -1
  7. package/dist/Pagination-Bvv2qvEK.js +166 -0
  8. package/dist/{Popover-BQ07q4VV.js → Popover-rnZG_ap0.js} +3 -3
  9. package/dist/Select-CiXd074W.js +572 -0
  10. package/dist/Skeleton-DCYdXAH2.js +59 -0
  11. package/dist/{Tooltip-D5DO0B3z.js → Tooltip-B02o9BOW.js} +3 -3
  12. package/dist/accordion/style.css +16 -71
  13. package/dist/auto-complete/index.js +120 -122
  14. package/dist/auto-complete/style.css +6 -82
  15. package/dist/avatar/style.css +6 -67
  16. package/dist/badge/style.css +6 -68
  17. package/dist/block-ui/index.js +1 -1
  18. package/dist/block-ui/style.css +6 -68
  19. package/dist/breadcrumb/style.css +6 -61
  20. package/dist/button/index.js +1 -1
  21. package/dist/button/style.css +345 -118
  22. package/dist/card/index.js +1 -1
  23. package/dist/card/style.css +26 -67
  24. package/dist/carousel/style.css +6 -73
  25. package/dist/cascade-select/index.js +3 -3
  26. package/dist/cascade-select/style.css +6 -75
  27. package/dist/checkbox/style.css +6 -61
  28. package/dist/chip/style.css +6 -67
  29. package/dist/command-menu/index.js +37 -39
  30. package/dist/command-menu/style.css +6 -75
  31. package/dist/components/Accordion/styles.css +10 -10
  32. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  33. package/dist/components/AutoComplete/styles.css +0 -7
  34. package/dist/components/Badge/styles.css +0 -7
  35. package/dist/components/BlockUI/styles.css +0 -7
  36. package/dist/components/Button/Button.vue.d.ts +3 -0
  37. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  38. package/dist/components/Button/styles.css +339 -51
  39. package/dist/components/Button/types.d.ts +11 -2
  40. package/dist/components/Button/types.d.ts.map +1 -1
  41. package/dist/components/Card/Card.vue.d.ts +2 -2
  42. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  43. package/dist/components/Card/index.d.ts +1 -1
  44. package/dist/components/Card/index.d.ts.map +1 -1
  45. package/dist/components/Card/styles.css +20 -6
  46. package/dist/components/Card/types.d.ts +4 -2
  47. package/dist/components/Card/types.d.ts.map +1 -1
  48. package/dist/components/Carousel/styles.css +0 -6
  49. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  50. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
  51. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  52. package/dist/components/ContextMenu/styles.css +19 -14
  53. package/dist/components/Dialog/styles.css +3 -46
  54. package/dist/components/Dock/styles.css +0 -10
  55. package/dist/components/Drawer/styles.css +2 -51
  56. package/dist/components/Fieldset/styles.css +0 -7
  57. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  58. package/dist/components/FileUpload/fileUtils.d.ts +8 -0
  59. package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
  60. package/dist/components/Gallery/styles.css +0 -8
  61. package/dist/components/Icon/styles.css +0 -6
  62. package/dist/components/Knob/styles.css +0 -6
  63. package/dist/components/Layout/styles.css +0 -12
  64. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  65. package/dist/components/Loading/styles.css +0 -16
  66. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  67. package/dist/components/Menu/styles.css +4 -11
  68. package/dist/components/Message/styles.css +0 -13
  69. package/dist/components/Page/PageContent.vue.d.ts +2 -1
  70. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  71. package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
  72. package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
  73. package/dist/components/Page/PageFilters.vue.d.ts +15 -3
  74. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  75. package/dist/components/Page/PageHeader.vue.d.ts +8 -4
  76. package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
  77. package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
  78. package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
  79. package/dist/components/Page/PageSection.vue.d.ts +8 -2
  80. package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
  81. package/dist/components/Page/PageStat.vue.d.ts +8 -3
  82. package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
  83. package/dist/components/Page/index.d.ts +2 -1
  84. package/dist/components/Page/index.d.ts.map +1 -1
  85. package/dist/components/Page/styles.css +239 -44
  86. package/dist/components/Page/types.d.ts +40 -0
  87. package/dist/components/Page/types.d.ts.map +1 -1
  88. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  89. package/dist/components/Pagination/styles.css +7 -10
  90. package/dist/components/Pagination/types.d.ts +1 -1
  91. package/dist/components/Pagination/types.d.ts.map +1 -1
  92. package/dist/components/Panel/styles.css +0 -7
  93. package/dist/components/Popover/styles.css +21 -79
  94. package/dist/components/ProgressBar/styles.css +0 -9
  95. package/dist/components/ProgressSpinner/styles.css +0 -7
  96. package/dist/components/ScrollTop/styles.css +0 -7
  97. package/dist/components/Scrollbar/styles.css +0 -8
  98. package/dist/components/Select/Select.vue.d.ts +1 -3
  99. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  100. package/dist/components/Select/selectOptions.d.ts +46 -0
  101. package/dist/components/Select/selectOptions.d.ts.map +1 -0
  102. package/dist/components/Select/styles.css +5 -7
  103. package/dist/components/Sidebar/styles.css +0 -6
  104. package/dist/components/Skeleton/styles.css +0 -6
  105. package/dist/components/Status/styles.css +0 -7
  106. package/dist/components/Switch/styles.css +0 -7
  107. package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
  108. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  109. package/dist/components/Table/styles.css +7 -10
  110. package/dist/components/Table/tableQuery.d.ts +30 -0
  111. package/dist/components/Table/tableQuery.d.ts.map +1 -0
  112. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  113. package/dist/components/Tree/treeQuery.d.ts +31 -0
  114. package/dist/components/Tree/treeQuery.d.ts.map +1 -0
  115. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  116. package/dist/config-provider/index.js +1 -1
  117. package/dist/config-provider/style.css +345 -112
  118. package/dist/confirm-dialog/index.js +2 -2
  119. package/dist/confirm-dialog/style.css +348 -164
  120. package/dist/confirm-popup/index.js +5 -5
  121. package/dist/confirm-popup/style.css +345 -118
  122. package/dist/context-menu/index.js +105 -96
  123. package/dist/context-menu/style.css +25 -89
  124. package/dist/data-view/index.js +2 -2
  125. package/dist/data-view/style.css +13 -87
  126. package/dist/date-picker/index.js +3 -3
  127. package/dist/date-picker/style.css +6 -67
  128. package/dist/dialog/index.js +2 -2
  129. package/dist/dialog/style.css +348 -164
  130. package/dist/divider/style.css +6 -61
  131. package/dist/dock/style.css +6 -77
  132. package/dist/drawer/index.js +1 -1
  133. package/dist/drawer/style.css +8 -118
  134. package/dist/dropdown/index.js +4 -4
  135. package/dist/dropdown/style.css +6 -75
  136. package/dist/empty/index.js +5 -150
  137. package/dist/empty/style.css +6 -67
  138. package/dist/fieldset/style.css +6 -74
  139. package/dist/file-upload/index.js +147 -145
  140. package/dist/file-upload/style.css +6 -67
  141. package/dist/filterByQuery-Bczaxzih.js +17 -0
  142. package/dist/flex/style.css +6 -61
  143. package/dist/float-label/style.css +6 -61
  144. package/dist/fluid/style.css +6 -61
  145. package/dist/form/style.css +6 -61
  146. package/dist/gallery/style.css +6 -83
  147. package/dist/grid/style.css +6 -61
  148. package/dist/icon/style.css +6 -67
  149. package/dist/icon-field/style.css +6 -61
  150. package/dist/index.d.ts +3 -2
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.js +9135 -8796
  153. package/dist/inplace/style.css +6 -61
  154. package/dist/input/style.css +6 -67
  155. package/dist/input-color/style.css +6 -61
  156. package/dist/input-group/style.css +6 -61
  157. package/dist/input-number/style.css +6 -67
  158. package/dist/input-otp/style.css +6 -61
  159. package/dist/input-password/style.css +6 -67
  160. package/dist/input-tags/style.css +6 -67
  161. package/dist/knob/style.css +6 -67
  162. package/dist/label/style.css +6 -61
  163. package/dist/layout/style.css +6 -87
  164. package/dist/listbox/index.js +30 -32
  165. package/dist/listbox/style.css +6 -69
  166. package/dist/loading/index.js +1 -1
  167. package/dist/loading/style.css +6 -77
  168. package/dist/mega-menu/index.js +3 -3
  169. package/dist/mega-menu/style.css +6 -67
  170. package/dist/menu/index.js +268 -258
  171. package/dist/menu/style.css +31 -165
  172. package/dist/menubar/index.js +3 -3
  173. package/dist/menubar/style.css +6 -75
  174. package/dist/message/index.js +1 -1
  175. package/dist/message/style.css +6 -80
  176. package/dist/meter-group/style.css +6 -61
  177. package/dist/order-list/style.css +6 -67
  178. package/dist/{overlayPlacement-Cd20JTD_.js → overlayPlacement-qwEJPVS4.js} +8 -8
  179. package/dist/page/index.js +228 -69
  180. package/dist/page/style.css +1605 -299
  181. package/dist/page/style.js +3 -0
  182. package/dist/pagination/index.js +1 -1
  183. package/dist/pagination/style.css +206 -77
  184. package/dist/pagination/style.js +1 -0
  185. package/dist/panel/style.css +6 -74
  186. package/dist/pick-list/style.css +6 -67
  187. package/dist/popover/index.js +1 -1
  188. package/dist/popover/style.css +27 -140
  189. package/dist/progress-bar/style.css +6 -70
  190. package/dist/progress-spinner/style.css +6 -68
  191. package/dist/radio/style.css +6 -61
  192. package/dist/rating/style.css +6 -67
  193. package/dist/resolver-map.d.ts.map +1 -1
  194. package/dist/resolver.js +1 -0
  195. package/dist/result/style.css +6 -67
  196. package/dist/scroll-top/style.css +6 -82
  197. package/dist/scrollbar/style.css +6 -69
  198. package/dist/select/index.js +2 -545
  199. package/dist/select/style.css +11 -82
  200. package/dist/select-button/style.css +6 -61
  201. package/dist/shared/config.d.ts +2 -2
  202. package/dist/shared/filterByQuery.d.ts +14 -0
  203. package/dist/shared/filterByQuery.d.ts.map +1 -0
  204. package/dist/shared/menu/expand.d.ts +38 -0
  205. package/dist/shared/menu/expand.d.ts.map +1 -0
  206. package/dist/shared/menu/index.d.ts +2 -0
  207. package/dist/shared/menu/index.d.ts.map +1 -1
  208. package/dist/shared/overlayPlacement.d.ts.map +1 -1
  209. package/dist/sidebar/style.css +6 -73
  210. package/dist/skeleton/index.js +2 -59
  211. package/dist/skeleton/style.css +6 -67
  212. package/dist/slider/style.css +6 -61
  213. package/dist/space/style.css +6 -61
  214. package/dist/speed-dial/index.js +3 -3
  215. package/dist/speed-dial/style.css +6 -67
  216. package/dist/split-button/index.js +3 -3
  217. package/dist/split-button/style.css +345 -118
  218. package/dist/splitter/style.css +6 -61
  219. package/dist/status/style.css +6 -74
  220. package/dist/stepper/style.css +6 -67
  221. package/dist/styles/base.css +1 -50
  222. package/dist/styles.css +1 -1
  223. package/dist/switch/style.css +6 -68
  224. package/dist/table/index.js +343 -313
  225. package/dist/table/style.css +20 -111
  226. package/dist/tabs/style.css +6 -75
  227. package/dist/tag/style.css +6 -67
  228. package/dist/terminal/style.css +6 -61
  229. package/dist/textarea/style.css +6 -67
  230. package/dist/theme/motionPresets.d.ts.map +1 -1
  231. package/dist/theme/styles.css +5 -11
  232. package/dist/theme/useMotion.d.ts +5 -1
  233. package/dist/theme/useMotion.d.ts.map +1 -1
  234. package/dist/tiered-menu/index.js +4 -4
  235. package/dist/tiered-menu/style.css +6 -75
  236. package/dist/timeline/style.css +6 -75
  237. package/dist/toast/index.js +1 -1
  238. package/dist/toast/style.css +6 -67
  239. package/dist/toggle-button/style.css +6 -67
  240. package/dist/toolbar/style.css +6 -61
  241. package/dist/tooltip/index.js +1 -1
  242. package/dist/tooltip/style.css +6 -61
  243. package/dist/tree/index.js +158 -172
  244. package/dist/tree/style.css +6 -67
  245. package/dist/tree-select/index.js +201 -215
  246. package/dist/tree-select/style.css +6 -75
  247. package/dist/tree-table/style.css +6 -67
  248. package/dist/treeQuery-CnHkyYOA.js +107 -0
  249. package/dist/{useFloatingViewportSync-DZdJ7W8n.js → useFloatingViewportSync-wLLKIGUA.js} +4 -1
  250. package/dist/{useMotionTransition-Bxnnb_9u.js → useMotionTransition-95Y79FoL.js} +1 -1
  251. package/dist/virtual-scroller/style.css +6 -69
  252. package/package.json +2 -1
  253. package/dist/Button-smoDleh0.js +0 -156
  254. package/dist/Pagination-DrXmzcEy.js +0 -158
  255. 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;
@@ -1423,7 +1375,30 @@
1423
1375
  );
1424
1376
  }
1425
1377
 
1426
- .m-button--secondary.m-button--outlined {
1378
+ /* Idle matches outlined hover; hover/active deepen the tint. */
1379
+ .m-button--plain {
1380
+ --m-button-bg: color-mix(
1381
+ in srgb,
1382
+ var(--m-button-border) 10%,
1383
+ transparent
1384
+ );
1385
+ --m-button-fg: var(--m-button-border);
1386
+ --m-button-hover-bg: color-mix(
1387
+ in srgb,
1388
+ var(--m-button-border) 16%,
1389
+ transparent
1390
+ );
1391
+ --m-button-hover-fg: var(--m-button-border);
1392
+ --m-button-hover-border: var(--m-button-border);
1393
+ --m-button-active-bg: color-mix(
1394
+ in srgb,
1395
+ var(--m-button-border) 22%,
1396
+ transparent
1397
+ );
1398
+ }
1399
+
1400
+ .m-button--secondary.m-button--outlined,
1401
+ .m-button--secondary.m-button--plain {
1427
1402
  --m-button-border: var(--m-color-border);
1428
1403
  --m-button-fg: var(--m-color-text);
1429
1404
  --m-button-hover-fg: var(--m-color-text);
@@ -1434,13 +1409,16 @@
1434
1409
  --m-button-bg: transparent;
1435
1410
  --m-button-border: transparent;
1436
1411
  --m-button-fg: var(--m-color-primary);
1412
+ --m-button-hover-fg: var(--m-color-primary);
1413
+ --m-button-hover-border: transparent;
1414
+ }
1415
+
1416
+ .m-button--text {
1437
1417
  --m-button-hover-bg: color-mix(
1438
1418
  in srgb,
1439
1419
  var(--m-color-primary) 10%,
1440
1420
  transparent
1441
1421
  );
1442
- --m-button-hover-fg: var(--m-color-primary);
1443
- --m-button-hover-border: transparent;
1444
1422
  --m-button-active-bg: color-mix(
1445
1423
  in srgb,
1446
1424
  var(--m-color-primary) 16%,
@@ -1448,8 +1426,24 @@
1448
1426
  );
1449
1427
  }
1450
1428
 
1451
- .m-button--secondary.m-button--text,
1452
- .m-button--secondary.m-button--link {
1429
+ .m-button--link {
1430
+ --m-button-bg: transparent;
1431
+ --m-button-hover-bg: transparent;
1432
+ --m-button-active-bg: transparent;
1433
+ height: auto;
1434
+ min-height: 0;
1435
+ padding: 0;
1436
+ }
1437
+
1438
+ .m-button--link.m-button--link-underline:hover:not(:disabled) {
1439
+ text-decoration: underline;
1440
+ }
1441
+
1442
+ .m-button--link:not(.m-button--link-underline):hover:not(:disabled) {
1443
+ opacity: 0.8;
1444
+ }
1445
+
1446
+ .m-button--secondary.m-button--text {
1453
1447
  --m-button-fg: var(--m-color-text-muted);
1454
1448
  --m-button-hover-bg: color-mix(
1455
1449
  in srgb,
@@ -1459,8 +1453,12 @@
1459
1453
  --m-button-hover-fg: var(--m-color-text);
1460
1454
  }
1461
1455
 
1456
+ .m-button--secondary.m-button--link {
1457
+ --m-button-fg: var(--m-color-text-muted);
1458
+ --m-button-hover-fg: var(--m-color-text);
1459
+ }
1460
+
1462
1461
  .m-button--success.m-button--text,
1463
- .m-button--success.m-button--link,
1464
1462
  .m-button--success.m-button--outlined {
1465
1463
  --m-button-fg: var(--m-color-success);
1466
1464
  --m-button-border: var(--m-color-success);
@@ -1473,8 +1471,12 @@
1473
1471
  --m-button-hover-border: var(--m-color-success);
1474
1472
  }
1475
1473
 
1474
+ .m-button--success.m-button--link {
1475
+ --m-button-fg: var(--m-color-success);
1476
+ --m-button-hover-fg: var(--m-color-success);
1477
+ }
1478
+
1476
1479
  .m-button--info.m-button--text,
1477
- .m-button--info.m-button--link,
1478
1480
  .m-button--info.m-button--outlined {
1479
1481
  --m-button-fg: var(--m-color-info);
1480
1482
  --m-button-border: var(--m-color-info);
@@ -1487,8 +1489,12 @@
1487
1489
  --m-button-hover-border: var(--m-color-info);
1488
1490
  }
1489
1491
 
1492
+ .m-button--info.m-button--link {
1493
+ --m-button-fg: var(--m-color-info);
1494
+ --m-button-hover-fg: var(--m-color-info);
1495
+ }
1496
+
1490
1497
  .m-button--warn.m-button--text,
1491
- .m-button--warn.m-button--link,
1492
1498
  .m-button--warn.m-button--outlined {
1493
1499
  --m-button-fg: var(--m-color-warn);
1494
1500
  --m-button-border: var(--m-color-warn);
@@ -1501,8 +1507,12 @@
1501
1507
  --m-button-hover-border: var(--m-color-warn);
1502
1508
  }
1503
1509
 
1510
+ .m-button--warn.m-button--link {
1511
+ --m-button-fg: var(--m-color-warn);
1512
+ --m-button-hover-fg: var(--m-color-warn);
1513
+ }
1514
+
1504
1515
  .m-button--help.m-button--text,
1505
- .m-button--help.m-button--link,
1506
1516
  .m-button--help.m-button--outlined {
1507
1517
  --m-button-fg: var(--m-color-help);
1508
1518
  --m-button-border: var(--m-color-help);
@@ -1515,8 +1525,12 @@
1515
1525
  --m-button-hover-border: var(--m-color-help);
1516
1526
  }
1517
1527
 
1528
+ .m-button--help.m-button--link {
1529
+ --m-button-fg: var(--m-color-help);
1530
+ --m-button-hover-fg: var(--m-color-help);
1531
+ }
1532
+
1518
1533
  .m-button--danger.m-button--text,
1519
- .m-button--danger.m-button--link,
1520
1534
  .m-button--danger.m-button--outlined {
1521
1535
  --m-button-fg: var(--m-color-danger);
1522
1536
  --m-button-border: var(--m-color-danger);
@@ -1529,8 +1543,12 @@
1529
1543
  --m-button-hover-border: var(--m-color-danger);
1530
1544
  }
1531
1545
 
1546
+ .m-button--danger.m-button--link {
1547
+ --m-button-fg: var(--m-color-danger);
1548
+ --m-button-hover-fg: var(--m-color-danger);
1549
+ }
1550
+
1532
1551
  .m-button--contrast.m-button--text,
1533
- .m-button--contrast.m-button--link,
1534
1552
  .m-button--contrast.m-button--outlined {
1535
1553
  --m-button-fg: var(--m-color-contrast);
1536
1554
  --m-button-border: var(--m-color-contrast);
@@ -1543,9 +1561,14 @@
1543
1561
  --m-button-hover-border: var(--m-color-contrast);
1544
1562
  }
1545
1563
 
1564
+ .m-button--contrast.m-button--link {
1565
+ --m-button-fg: var(--m-color-contrast);
1566
+ --m-button-hover-fg: var(--m-color-contrast);
1567
+ }
1568
+
1546
1569
  .m-button--plain.m-button--text,
1547
- .m-button--plain.m-button--outlined,
1548
- .m-button--plain.m-button--link {
1570
+ .m-button--plain.m-button--outlined {
1571
+ --m-button-bg: transparent;
1549
1572
  --m-button-fg: var(--m-color-text-muted);
1550
1573
  --m-button-border: var(--m-color-border);
1551
1574
  --m-button-hover-bg: color-mix(
@@ -1555,69 +1578,178 @@
1555
1578
  );
1556
1579
  --m-button-hover-fg: var(--m-color-text);
1557
1580
  --m-button-hover-border: var(--m-color-border);
1581
+ --m-button-active-bg: color-mix(
1582
+ in srgb,
1583
+ var(--m-color-text-muted) 18%,
1584
+ transparent
1585
+ );
1558
1586
  }
1559
1587
 
1560
- .m-button--link {
1561
- height: auto;
1562
- min-height: 0;
1563
- padding: 0;
1564
- }
1565
-
1566
- .m-button--link:hover:not(:disabled) {
1567
- text-decoration: underline;
1588
+ .m-button--plain.m-button--link {
1589
+ --m-button-fg: var(--m-color-text-muted);
1590
+ --m-button-hover-fg: var(--m-color-text);
1568
1591
  }
1569
1592
 
1570
1593
  .m-button--ghost {
1571
- --m-button-bg: transparent;
1572
- --m-button-fg: var(--m-button-border);
1594
+ --m-button-bg: color-mix(
1595
+ in srgb,
1596
+ var(--m-color-primary) 10%,
1597
+ transparent
1598
+ );
1599
+ --m-button-border: transparent;
1600
+ --m-button-fg: var(--m-color-primary);
1573
1601
  --m-button-hover-bg: color-mix(
1574
1602
  in srgb,
1575
- var(--m-button-border) 12%,
1603
+ var(--m-color-primary) 16%,
1576
1604
  transparent
1577
1605
  );
1578
- --m-button-hover-fg: var(--m-button-border);
1579
- --m-button-hover-border: var(--m-button-border);
1606
+ --m-button-hover-fg: var(--m-color-primary);
1607
+ --m-button-hover-border: transparent;
1580
1608
  --m-button-active-bg: color-mix(
1581
1609
  in srgb,
1582
- var(--m-button-border) 18%,
1610
+ var(--m-color-primary) 22%,
1583
1611
  transparent
1584
1612
  );
1585
1613
  }
1586
1614
 
1587
1615
  .m-button--secondary.m-button--ghost {
1588
- --m-button-border: var(--m-color-border);
1616
+ --m-button-bg: color-mix(
1617
+ in srgb,
1618
+ var(--m-color-text-muted) 12%,
1619
+ transparent
1620
+ );
1589
1621
  --m-button-fg: var(--m-color-text);
1622
+ --m-button-hover-bg: color-mix(
1623
+ in srgb,
1624
+ var(--m-color-text-muted) 18%,
1625
+ transparent
1626
+ );
1590
1627
  --m-button-hover-fg: var(--m-color-text);
1628
+ --m-button-active-bg: color-mix(
1629
+ in srgb,
1630
+ var(--m-color-text-muted) 24%,
1631
+ transparent
1632
+ );
1591
1633
  }
1592
1634
 
1593
1635
  .m-button--success.m-button--ghost {
1636
+ --m-button-bg: color-mix(
1637
+ in srgb,
1638
+ var(--m-color-success) 10%,
1639
+ transparent
1640
+ );
1594
1641
  --m-button-fg: var(--m-color-success);
1595
- --m-button-border: var(--m-color-success);
1642
+ --m-button-hover-bg: color-mix(
1643
+ in srgb,
1644
+ var(--m-color-success) 16%,
1645
+ transparent
1646
+ );
1647
+ --m-button-hover-fg: var(--m-color-success);
1648
+ --m-button-active-bg: color-mix(
1649
+ in srgb,
1650
+ var(--m-color-success) 22%,
1651
+ transparent
1652
+ );
1596
1653
  }
1597
1654
 
1598
1655
  .m-button--info.m-button--ghost {
1656
+ --m-button-bg: color-mix(
1657
+ in srgb,
1658
+ var(--m-color-info) 10%,
1659
+ transparent
1660
+ );
1599
1661
  --m-button-fg: var(--m-color-info);
1600
- --m-button-border: var(--m-color-info);
1662
+ --m-button-hover-bg: color-mix(
1663
+ in srgb,
1664
+ var(--m-color-info) 16%,
1665
+ transparent
1666
+ );
1667
+ --m-button-hover-fg: var(--m-color-info);
1668
+ --m-button-active-bg: color-mix(
1669
+ in srgb,
1670
+ var(--m-color-info) 22%,
1671
+ transparent
1672
+ );
1601
1673
  }
1602
1674
 
1603
1675
  .m-button--warn.m-button--ghost {
1676
+ --m-button-bg: color-mix(
1677
+ in srgb,
1678
+ var(--m-color-warn) 10%,
1679
+ transparent
1680
+ );
1604
1681
  --m-button-fg: var(--m-color-warn);
1605
- --m-button-border: var(--m-color-warn);
1682
+ --m-button-hover-bg: color-mix(
1683
+ in srgb,
1684
+ var(--m-color-warn) 16%,
1685
+ transparent
1686
+ );
1687
+ --m-button-hover-fg: var(--m-color-warn);
1688
+ --m-button-active-bg: color-mix(
1689
+ in srgb,
1690
+ var(--m-color-warn) 22%,
1691
+ transparent
1692
+ );
1606
1693
  }
1607
1694
 
1608
1695
  .m-button--help.m-button--ghost {
1696
+ --m-button-bg: color-mix(
1697
+ in srgb,
1698
+ var(--m-color-help) 10%,
1699
+ transparent
1700
+ );
1609
1701
  --m-button-fg: var(--m-color-help);
1610
- --m-button-border: var(--m-color-help);
1702
+ --m-button-hover-bg: color-mix(
1703
+ in srgb,
1704
+ var(--m-color-help) 16%,
1705
+ transparent
1706
+ );
1707
+ --m-button-hover-fg: var(--m-color-help);
1708
+ --m-button-active-bg: color-mix(
1709
+ in srgb,
1710
+ var(--m-color-help) 22%,
1711
+ transparent
1712
+ );
1611
1713
  }
1612
1714
 
1613
1715
  .m-button--danger.m-button--ghost {
1716
+ --m-button-bg: color-mix(
1717
+ in srgb,
1718
+ var(--m-color-danger) 10%,
1719
+ transparent
1720
+ );
1614
1721
  --m-button-fg: var(--m-color-danger);
1615
- --m-button-border: var(--m-color-danger);
1722
+ --m-button-hover-bg: color-mix(
1723
+ in srgb,
1724
+ var(--m-color-danger) 16%,
1725
+ transparent
1726
+ );
1727
+ --m-button-hover-fg: var(--m-color-danger);
1728
+ --m-button-active-bg: color-mix(
1729
+ in srgb,
1730
+ var(--m-color-danger) 22%,
1731
+ transparent
1732
+ );
1616
1733
  }
1617
1734
 
1618
1735
  .m-button--contrast.m-button--ghost {
1736
+ --m-button-bg: color-mix(
1737
+ in srgb,
1738
+ var(--m-color-contrast) 10%,
1739
+ transparent
1740
+ );
1619
1741
  --m-button-fg: var(--m-color-contrast);
1620
- --m-button-border: var(--m-color-contrast);
1742
+ --m-button-hover-bg: color-mix(
1743
+ in srgb,
1744
+ var(--m-color-contrast) 16%,
1745
+ transparent
1746
+ );
1747
+ --m-button-hover-fg: var(--m-color-contrast);
1748
+ --m-button-active-bg: color-mix(
1749
+ in srgb,
1750
+ var(--m-color-contrast) 22%,
1751
+ transparent
1752
+ );
1621
1753
  }
1622
1754
 
1623
1755
  .m-button--quaternary {
@@ -1656,11 +1788,7 @@
1656
1788
  );
1657
1789
  }
1658
1790
 
1659
- .m-button--custom.m-button--outlined,
1660
- .m-button--custom.m-button--ghost,
1661
- .m-button--custom.m-button--text,
1662
- .m-button--custom.m-button--quaternary,
1663
- .m-button--custom.m-button--link {
1791
+ .m-button--custom.m-button--outlined {
1664
1792
  --m-button-bg: transparent;
1665
1793
  --m-button-fg: var(--m-button-color);
1666
1794
  --m-button-border: var(--m-button-color);
@@ -1673,11 +1801,72 @@
1673
1801
  --m-button-hover-border: var(--m-button-color);
1674
1802
  }
1675
1803
 
1804
+ .m-button--custom.m-button--ghost {
1805
+ --m-button-bg: color-mix(
1806
+ in srgb,
1807
+ var(--m-button-color) 10%,
1808
+ transparent
1809
+ );
1810
+ --m-button-fg: var(--m-button-color);
1811
+ --m-button-border: transparent;
1812
+ --m-button-hover-bg: color-mix(
1813
+ in srgb,
1814
+ var(--m-button-color) 16%,
1815
+ transparent
1816
+ );
1817
+ --m-button-hover-fg: var(--m-button-color);
1818
+ --m-button-hover-border: transparent;
1819
+ --m-button-active-bg: color-mix(
1820
+ in srgb,
1821
+ var(--m-button-color) 22%,
1822
+ transparent
1823
+ );
1824
+ }
1825
+
1676
1826
  .m-button--custom.m-button--text,
1677
- .m-button--custom.m-button--quaternary,
1827
+ .m-button--custom.m-button--quaternary {
1828
+ --m-button-bg: transparent;
1829
+ --m-button-fg: var(--m-button-color);
1830
+ --m-button-border: transparent;
1831
+ --m-button-hover-bg: color-mix(
1832
+ in srgb,
1833
+ var(--m-button-color) 12%,
1834
+ transparent
1835
+ );
1836
+ --m-button-hover-fg: var(--m-button-color);
1837
+ --m-button-hover-border: transparent;
1838
+ }
1839
+
1840
+ .m-button--custom.m-button--plain {
1841
+ --m-button-bg: color-mix(
1842
+ in srgb,
1843
+ var(--m-button-color) 10%,
1844
+ transparent
1845
+ );
1846
+ --m-button-fg: var(--m-button-color);
1847
+ --m-button-border: var(--m-button-color);
1848
+ --m-button-hover-bg: color-mix(
1849
+ in srgb,
1850
+ var(--m-button-color) 16%,
1851
+ transparent
1852
+ );
1853
+ --m-button-hover-fg: var(--m-button-color);
1854
+ --m-button-hover-border: var(--m-button-color);
1855
+ --m-button-active-bg: color-mix(
1856
+ in srgb,
1857
+ var(--m-button-color) 22%,
1858
+ transparent
1859
+ );
1860
+ }
1861
+
1678
1862
  .m-button--custom.m-button--link {
1863
+ --m-button-bg: transparent;
1864
+ --m-button-fg: var(--m-button-color);
1679
1865
  --m-button-border: transparent;
1866
+ --m-button-hover-bg: transparent;
1867
+ --m-button-hover-fg: var(--m-button-color);
1680
1868
  --m-button-hover-border: transparent;
1869
+ --m-button-active-bg: transparent;
1681
1870
  }
1682
1871
 
1683
1872
  .m-button-group {
@@ -1784,6 +1973,52 @@
1784
1973
  justify-content: center;
1785
1974
  }
1786
1975
 
1976
+ .m-button__icon,
1977
+ .m-button__label,
1978
+ .m-button__badge {
1979
+ position: relative;
1980
+ z-index: 1;
1981
+ }
1982
+
1983
+ .m-button__ripple {
1984
+ border-radius: inherit;
1985
+ inset: 0;
1986
+ overflow: hidden;
1987
+ pointer-events: none;
1988
+ position: absolute;
1989
+ z-index: 0;
1990
+ }
1991
+
1992
+ .m-button__ripple-wave {
1993
+ background: currentColor;
1994
+ border-radius: var(--m-radius-full);
1995
+ opacity: 0;
1996
+ pointer-events: none;
1997
+ position: absolute;
1998
+ transform: scale(0);
1999
+ will-change: transform, opacity;
2000
+ }
2001
+
2002
+ /* Used only when Web Animations API is unavailable. */
2003
+ .m-button__ripple-wave--fallback {
2004
+ animation: m-button-ripple 560ms var(--m-motion-ease) forwards;
2005
+ }
2006
+
2007
+ @keyframes m-button-ripple {
2008
+ 0% {
2009
+ opacity: 0.42;
2010
+ transform: scale(0);
2011
+ }
2012
+ 55% {
2013
+ opacity: 0.22;
2014
+ transform: scale(0.55);
2015
+ }
2016
+ 100% {
2017
+ opacity: 0;
2018
+ transform: scale(1);
2019
+ }
2020
+ }
2021
+
1787
2022
  .m-button__icon {
1788
2023
  flex: 0 0 auto;
1789
2024
  width: var(--m-button-icon-size);
@@ -1867,17 +2102,15 @@
1867
2102
  }
1868
2103
  }
1869
2104
 
1870
- @media (prefers-reduced-motion: reduce) {
1871
- html:not([data-m-ignore-reduced-motion]) .m-button__spinner {
1872
- animation: none;
1873
- }
1874
- }
1875
-
1876
2105
  [data-m-motion="reduced"] .m-button__spinner,
1877
2106
  [data-m-motion="none"] .m-button__spinner {
1878
2107
  animation: none;
1879
2108
  }
1880
2109
 
2110
+ [data-m-motion="none"] .m-button__ripple-wave {
2111
+ display: none;
2112
+ }
2113
+
1881
2114
  .m-input:focus {
1882
2115
  outline: none;
1883
2116
  }
@@ -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
- import { t as n } from "../useMotionTransition-Bxnnb_9u.js";
4
- import { t as r } from "../Button-smoDleh0.js";
3
+ import { t as n } from "../useMotionTransition-95Y79FoL.js";
4
+ import { t as r } from "../Button-gBiRj7wz.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";