morya-ui 0.2.6 → 0.2.8

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 (210) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/{Button-lNErA-7h.js → Button--RkQybU-.js} +1 -1
  3. package/dist/{Checkbox-B758a_iB.js → Checkbox-CL05RRUD.js} +1 -1
  4. package/dist/{FlyoutSubmenu-kymVjXLs.js → FlyoutSubmenu-B_bkgKag.js} +1 -1
  5. package/dist/{Pagination-Dm2-MBnC.js → Pagination-BKvR-RUW.js} +1 -1
  6. package/dist/{Popover-flzjtjqD.js → Popover-Dq_p0vib.js} +1 -1
  7. package/dist/{ProgressSpinner-BXHLx4Lg.js → ProgressSpinner-DuBpPkna.js} +1 -1
  8. package/dist/{Radio-Bb21-Vk4.js → Radio-DsaKvbhk.js} +1 -1
  9. package/dist/Renderable-DHU4Jcfw.js +20 -0
  10. package/dist/{Tooltip-CeGxjP-L.js → Tooltip-CU1xFt_N.js} +1 -1
  11. package/dist/activity-low-CgK9kHWr.js +4 -0
  12. package/dist/auto-complete/index.js +2 -2
  13. package/dist/breadcrumb/index.js +1 -1
  14. package/dist/building-DYLdXiQg.js +4 -0
  15. package/dist/button/index.js +1 -1
  16. package/dist/carousel/index.js +1 -1
  17. package/dist/cascade-select/index.js +2 -2
  18. package/dist/checkbox/index.js +1 -1
  19. package/dist/chip/index.js +1 -1
  20. package/dist/churn-high-D1ELpZzW.js +4 -0
  21. package/dist/command-menu/index.js +2 -2
  22. package/dist/component-registry.d.ts.map +1 -1
  23. package/dist/components/Carousel/Carousel.vue.d.ts +1 -1
  24. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
  25. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  26. package/dist/components/Empty/Empty.vue.d.ts +5 -6
  27. package/dist/components/Empty/Empty.vue.d.ts.map +1 -1
  28. package/dist/components/Empty/illustrations/catalog.d.ts +5 -0
  29. package/dist/components/Empty/illustrations/catalog.d.ts.map +1 -0
  30. package/dist/components/Empty/illustrations/defaultEmptyIcon.d.ts +3 -0
  31. package/dist/components/Empty/illustrations/defaultEmptyIcon.d.ts.map +1 -0
  32. package/dist/components/Empty/illustrations/index.d.ts +15 -0
  33. package/dist/components/Empty/illustrations/index.d.ts.map +1 -0
  34. package/dist/components/Empty/illustrations/loaders.d.ts +4 -0
  35. package/dist/components/Empty/illustrations/loaders.d.ts.map +1 -0
  36. package/dist/components/Empty/illustrations/markup/activity-low.d.ts +4 -0
  37. package/dist/components/Empty/illustrations/markup/activity-low.d.ts.map +1 -0
  38. package/dist/components/Empty/illustrations/markup/building.d.ts +4 -0
  39. package/dist/components/Empty/illustrations/markup/building.d.ts.map +1 -0
  40. package/dist/components/Empty/illustrations/markup/churn-high.d.ts +4 -0
  41. package/dist/components/Empty/illustrations/markup/churn-high.d.ts.map +1 -0
  42. package/dist/components/Empty/illustrations/markup/conversion-low.d.ts +4 -0
  43. package/dist/components/Empty/illustrations/markup/conversion-low.d.ts.map +1 -0
  44. package/dist/components/Empty/illustrations/markup/input-irregular.d.ts +4 -0
  45. package/dist/components/Empty/illustrations/markup/input-irregular.d.ts.map +1 -0
  46. package/dist/components/Empty/illustrations/markup/network-error.d.ts +4 -0
  47. package/dist/components/Empty/illustrations/markup/network-error.d.ts.map +1 -0
  48. package/dist/components/Empty/illustrations/markup/no-content.d.ts +4 -0
  49. package/dist/components/Empty/illustrations/markup/no-content.d.ts.map +1 -0
  50. package/dist/components/Empty/illustrations/markup/no-issue.d.ts +4 -0
  51. package/dist/components/Empty/illustrations/markup/no-issue.d.ts.map +1 -0
  52. package/dist/components/Empty/illustrations/markup/no-message.d.ts +4 -0
  53. package/dist/components/Empty/illustrations/markup/no-message.d.ts.map +1 -0
  54. package/dist/components/Empty/illustrations/markup/no-result.d.ts +4 -0
  55. package/dist/components/Empty/illustrations/markup/no-result.d.ts.map +1 -0
  56. package/dist/components/Empty/illustrations/markup/no-schedule.d.ts +4 -0
  57. package/dist/components/Empty/illustrations/markup/no-schedule.d.ts.map +1 -0
  58. package/dist/components/Empty/illustrations/markup/payment-cycle-long.d.ts +4 -0
  59. package/dist/components/Empty/illustrations/markup/payment-cycle-long.d.ts.map +1 -0
  60. package/dist/components/Empty/illustrations/markup/profile-unclear.d.ts +4 -0
  61. package/dist/components/Empty/illustrations/markup/profile-unclear.d.ts.map +1 -0
  62. package/dist/components/Empty/illustrations/markup/server-error.d.ts +4 -0
  63. package/dist/components/Empty/illustrations/markup/server-error.d.ts.map +1 -0
  64. package/dist/components/Empty/index.d.ts +3 -1
  65. package/dist/components/Empty/index.d.ts.map +1 -1
  66. package/dist/components/Empty/styles.css +104 -30
  67. package/dist/components/Empty/types.d.ts +25 -4
  68. package/dist/components/Empty/types.d.ts.map +1 -1
  69. package/dist/components/Form/types.d.ts +1 -1
  70. package/dist/components/Form/types.d.ts.map +1 -1
  71. package/dist/components/Loading/Loading.vue.d.ts +25 -0
  72. package/dist/components/Loading/Loading.vue.d.ts.map +1 -0
  73. package/dist/components/Loading/LoadingIndicator.vue.d.ts +13 -0
  74. package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -0
  75. package/dist/components/Loading/directive.d.ts +12 -0
  76. package/dist/components/Loading/directive.d.ts.map +1 -0
  77. package/dist/components/Loading/index.d.ts +8 -0
  78. package/dist/components/Loading/index.d.ts.map +1 -0
  79. package/dist/components/Loading/loading.d.ts +35 -0
  80. package/dist/components/Loading/loading.d.ts.map +1 -0
  81. package/dist/components/Loading/styles.css +386 -0
  82. package/dist/components/Loading/types.d.ts +74 -0
  83. package/dist/components/Loading/types.d.ts.map +1 -0
  84. package/dist/components/Loading/useLoading.d.ts +11 -0
  85. package/dist/components/Loading/useLoading.d.ts.map +1 -0
  86. package/dist/components/Message/types.d.ts +1 -1
  87. package/dist/components/Message/types.d.ts.map +1 -1
  88. package/dist/components/Page/PageContent.vue.d.ts +2 -2
  89. package/dist/components/Pagination/types.d.ts +4 -4
  90. package/dist/components/Pagination/types.d.ts.map +1 -1
  91. package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts +1 -1
  92. package/dist/components/Rating/Rating.vue.d.ts +1 -1
  93. package/dist/components/Result/Result.vue.d.ts +2 -2
  94. package/dist/components/Result/Result.vue.d.ts.map +1 -1
  95. package/dist/components/Result/index.d.ts +1 -1
  96. package/dist/components/Result/index.d.ts.map +1 -1
  97. package/dist/components/Result/statusIcons.d.ts +4 -0
  98. package/dist/components/Result/statusIcons.d.ts.map +1 -0
  99. package/dist/components/Result/styles.css +89 -23
  100. package/dist/components/Result/types.d.ts +10 -4
  101. package/dist/components/Result/types.d.ts.map +1 -1
  102. package/dist/components/Splitter/types.d.ts +4 -4
  103. package/dist/components/Splitter/types.d.ts.map +1 -1
  104. package/dist/components/Status/Status.vue.d.ts +7 -3
  105. package/dist/components/Status/Status.vue.d.ts.map +1 -1
  106. package/dist/components/Status/index.d.ts +1 -1
  107. package/dist/components/Status/index.d.ts.map +1 -1
  108. package/dist/components/Status/styles.css +116 -26
  109. package/dist/components/Status/types.d.ts +16 -2
  110. package/dist/components/Status/types.d.ts.map +1 -1
  111. package/dist/components/Table/Table.vue.d.ts +1 -1
  112. package/dist/components/Tree/TreeNodeItem.vue.d.ts.map +1 -1
  113. package/dist/components/Tree/types.d.ts +1 -1
  114. package/dist/components/Tree/types.d.ts.map +1 -1
  115. package/dist/{config-Dln2-u_v.js → config-BdK5ccNT.js} +1 -0
  116. package/dist/config-provider/index.js +1 -1
  117. package/dist/confirm-dialog/index.js +11 -11
  118. package/dist/confirm-popup/index.js +3 -3
  119. package/dist/content-h8POj44-.js +28 -0
  120. package/dist/context-menu/index.js +2 -2
  121. package/dist/conversion-low-CwZiQc2k.js +4 -0
  122. package/dist/data-view/index.js +3 -3
  123. package/dist/date-picker/index.js +2 -2
  124. package/dist/dialog/index.js +77 -61
  125. package/dist/drawer/index.js +2 -2
  126. package/dist/dropdown/index.js +3 -3
  127. package/dist/empty/index.js +141 -26
  128. package/dist/empty/style.css +104 -30
  129. package/dist/file-upload/index.js +1 -1
  130. package/dist/flex/index.js +1 -1
  131. package/dist/form/index.js +1 -1
  132. package/dist/gallery/index.js +1 -1
  133. package/dist/index.d.ts +12 -3
  134. package/dist/index.d.ts.map +1 -1
  135. package/dist/index.js +4380 -3714
  136. package/dist/input/index.js +2 -2
  137. package/dist/input-color/index.js +2 -2
  138. package/dist/input-irregular-xSLDoNTS.js +4 -0
  139. package/dist/input-number/index.js +2 -2
  140. package/dist/input-otp/index.js +2 -2
  141. package/dist/input-password/index.js +2 -2
  142. package/dist/input-tags/index.js +2 -2
  143. package/dist/layout/index.js +1 -1
  144. package/dist/listbox/index.js +2 -2
  145. package/dist/loading/index.js +467 -0
  146. package/dist/loading/style.css +1377 -0
  147. package/dist/loading/style.js +3 -0
  148. package/dist/locale/en-US.d.ts.map +1 -1
  149. package/dist/locale/types.d.ts +1 -0
  150. package/dist/locale/types.d.ts.map +1 -1
  151. package/dist/locale/zh-CN.d.ts.map +1 -1
  152. package/dist/{locale-DNYpTg5K.js → locale-B36KH7c3.js} +1 -1
  153. package/dist/mega-menu/index.js +2 -2
  154. package/dist/menu/index.js +52 -40
  155. package/dist/menubar/index.js +2 -2
  156. package/dist/message/index.js +8 -7
  157. package/dist/network-error-C6vl5a7S.js +4 -0
  158. package/dist/no-content-CwbqVPoN.js +4 -0
  159. package/dist/no-issue-DMkU-Pnw.js +4 -0
  160. package/dist/no-message-DnIEpMiO.js +4 -0
  161. package/dist/no-result-pGce34BV.js +4 -0
  162. package/dist/no-schedule-Cl9Frt1Q.js +4 -0
  163. package/dist/order-list/index.js +1 -1
  164. package/dist/pagination/index.js +1 -1
  165. package/dist/panel/index.js +1 -1
  166. package/dist/payment-cycle-long-Ba9FNStl.js +4 -0
  167. package/dist/pick-list/index.js +1 -1
  168. package/dist/popover/index.js +1 -1
  169. package/dist/profile-unclear-CGs4PCfw.js +4 -0
  170. package/dist/progress-spinner/index.js +1 -1
  171. package/dist/radio/index.js +1 -1
  172. package/dist/rating/index.js +2 -2
  173. package/dist/resolver-map.d.ts.map +1 -1
  174. package/dist/resolver.js +1 -0
  175. package/dist/result/index.js +72 -36
  176. package/dist/result/style.css +89 -23
  177. package/dist/scroll-top/index.js +2 -2
  178. package/dist/select/index.js +2 -2
  179. package/dist/select-button/index.js +1 -1
  180. package/dist/server-error-D8zGMe5r.js +4 -0
  181. package/dist/shared/config.d.ts.map +1 -1
  182. package/dist/shared/optionalRouter.d.ts +5 -0
  183. package/dist/shared/optionalRouter.d.ts.map +1 -1
  184. package/dist/shared/responsive.d.ts +1 -1
  185. package/dist/shared/responsive.d.ts.map +1 -1
  186. package/dist/sidebar/index.js +1 -1
  187. package/dist/slider/index.js +2 -2
  188. package/dist/space/index.js +1 -1
  189. package/dist/speed-dial/index.js +2 -2
  190. package/dist/split-button/index.js +2 -2
  191. package/dist/splitter/index.js +1 -1
  192. package/dist/status/index.js +46 -19
  193. package/dist/status/style.css +171 -26
  194. package/dist/status/style.js +1 -0
  195. package/dist/styles.css +1 -1
  196. package/dist/switch/index.js +1 -1
  197. package/dist/table/index.js +7 -7
  198. package/dist/tabs/index.js +1 -1
  199. package/dist/tag/index.js +2 -2
  200. package/dist/terminal/index.js +1 -1
  201. package/dist/textarea/index.js +2 -2
  202. package/dist/tiered-menu/index.js +2 -2
  203. package/dist/toast/index.js +13 -12
  204. package/dist/toggle-button/index.js +1 -1
  205. package/dist/tooltip/index.js +1 -1
  206. package/dist/tree/index.js +9 -4
  207. package/dist/tree-select/index.js +3 -3
  208. package/dist/tree-table/index.js +1 -1
  209. package/package.json +11 -4
  210. package/dist/Renderable-BaaCI4tS.js +0 -45
@@ -1,9 +1,18 @@
1
1
  import { t as e } from "../types-DGuu4Eg4.js";
2
- import { o as t } from "../config-Dln2-u_v.js";
2
+ import { t } from "../Icon-DfpIfo2L.js";
3
+ import { o as n } from "../config-BdK5ccNT.js";
3
4
  import "./style.js";
4
- import { computed as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderSlot as u, toDisplayString as d } from "vue";
5
+ import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderSlot as p, toDisplayString as m, useSlots as h } from "vue";
5
6
  //#region src/components/Status/Status.vue?vue&type=script&setup=true&lang.ts
6
- var f = { class: "m-status__label" }, p = /* @__PURE__ */ o({
7
+ var g = {
8
+ key: 0,
9
+ class: "m-status__dot",
10
+ "aria-hidden": "true"
11
+ }, _ = {
12
+ key: 1,
13
+ class: "m-status__icon",
14
+ "aria-hidden": "true"
15
+ }, v = { class: "m-status__label" }, y = /* @__PURE__ */ l({
7
16
  __name: "Status",
8
17
  props: {
9
18
  label: {},
@@ -13,27 +22,45 @@ var f = { class: "m-status__label" }, p = /* @__PURE__ */ o({
13
22
  default: !1
14
23
  },
15
24
  size: {},
16
- color: {}
25
+ color: {},
26
+ variant: { default: "dot" },
27
+ icon: {},
28
+ disabled: {
29
+ type: Boolean,
30
+ default: !1
31
+ }
17
32
  },
18
- setup(o) {
19
- let p = o, m = t("Status", () => p.size), h = n(() => e(p.severity) ?? "secondary"), g = n(() => [
33
+ setup(l) {
34
+ let y = l, b = h(), x = n("Status", () => y.size), S = r(() => e(y.severity) ?? "secondary"), C = {
35
+ success: "check-circle",
36
+ danger: "x-circle",
37
+ warn: "warning",
38
+ info: "info",
39
+ primary: "info",
40
+ help: "info"
41
+ }, w = r(() => {
42
+ if (y.variant !== "text" && !(y.icon || b.icon)) return C[S.value];
43
+ }), T = r(() => y.icon ?? w.value), E = r(() => !!(b.icon || T.value)), D = r(() => y.variant !== "text" && !E.value), O = r(() => [
20
44
  "m-status",
21
- `m-status--${h.value}`,
22
- `m-status--${m.value}`,
45
+ `m-status--${S.value}`,
46
+ `m-status--${x.value}`,
47
+ `m-status--${y.variant}`,
23
48
  {
24
- "m-status--processing": p.processing,
25
- "m-status--custom": !!p.color
49
+ "m-status--processing": y.processing && (D.value || E.value),
50
+ "m-status--custom": !!y.color,
51
+ "m-status--disabled": y.disabled,
52
+ "m-status--has-icon": E.value
26
53
  }
27
- ]), _ = n(() => p.color ? { "--m-status-color": p.color } : void 0);
28
- return (e, t) => (l(), r("span", {
29
- class: s(g.value),
30
- style: c(_.value),
54
+ ]), k = r(() => y.color ? { "--m-status-color": y.color } : void 0);
55
+ return (e, n) => (f(), o("span", {
56
+ class: u(O.value),
57
+ style: d(k.value),
31
58
  role: "status"
32
- }, [t[0] ||= i("span", {
33
- class: "m-status__dot",
34
- "aria-hidden": "true"
35
- }, null, -1), i("span", f, [u(e.$slots, "default", {}, () => [a(d(o.label), 1)])])], 6));
59
+ }, [D.value ? (f(), o("span", g)) : E.value ? (f(), o("span", _, [p(e.$slots, "icon", {}, () => [T.value ? (f(), i(t, {
60
+ key: 0,
61
+ name: T.value
62
+ }, null, 8, ["name"])) : a("", !0)])])) : a("", !0), s("span", v, [p(e.$slots, "default", {}, () => [c(m(l.label), 1)])])], 6));
36
63
  }
37
64
  });
38
65
  //#endregion
39
- export { p as MStatus };
66
+ export { y as MStatus };
@@ -989,41 +989,123 @@
989
989
  }
990
990
  }
991
991
 
992
+ .m-icon {
993
+ color: currentColor;
994
+ display: inline-flex;
995
+ flex-shrink: 0;
996
+ height: 1rem;
997
+ line-height: 0;
998
+ vertical-align: middle;
999
+ width: 1rem;
1000
+ }
1001
+
1002
+ .m-icon svg {
1003
+ display: block;
1004
+ height: 100%;
1005
+ width: 100%;
1006
+ }
1007
+
1008
+ .m-icon--sm,
1009
+ .m-icon--small {
1010
+ height: 0.875rem;
1011
+ width: 0.875rem;
1012
+ }
1013
+
1014
+ .m-icon--md,
1015
+ .m-icon--normal {
1016
+ height: 1rem;
1017
+ width: 1rem;
1018
+ }
1019
+
1020
+ .m-icon--lg,
1021
+ .m-icon--large {
1022
+ height: 1.25rem;
1023
+ width: 1.25rem;
1024
+ }
1025
+
1026
+ .m-icon--spin svg {
1027
+ animation: m-icon-spin var(--m-motion-spin-fast) linear infinite;
1028
+ }
1029
+
1030
+ @keyframes m-icon-spin {
1031
+ to {
1032
+ transform: rotate(360deg);
1033
+ }
1034
+ }
1035
+
1036
+ @media (prefers-reduced-motion: reduce) {
1037
+ .m-icon--spin svg {
1038
+ animation: none;
1039
+ }
1040
+ }
1041
+
1042
+ :root[data-m-motion='none'] .m-icon--spin svg,
1043
+ :root[data-m-motion='reduced'] .m-icon--spin svg {
1044
+ animation: none;
1045
+ }
1046
+
992
1047
  .m-status {
993
1048
  --m-status-dot-size: 0.5rem;
1049
+ --m-status-icon-size: 0.9375rem;
1050
+ --m-status-soft-bg: color-mix(in srgb, currentColor 12%, transparent);
994
1051
  align-items: center;
995
- color: var(--m-color-text);
1052
+ color: var(--m-color-text-muted);
996
1053
  display: inline-flex;
997
1054
  font-family: var(--m-font-sans);
998
- font-size: var(--m-font-size-sm);
1055
+ font-size: var(--m-font-size-md);
999
1056
  font-weight: 500;
1000
- gap: var(--m-space-2);
1001
- line-height: 1.25;
1057
+ gap: 0.375rem;
1058
+ line-height: 1;
1002
1059
  vertical-align: middle;
1060
+ white-space: nowrap;
1003
1061
  }
1004
1062
 
1005
1063
  .m-status__dot {
1006
1064
  background: currentColor;
1007
1065
  border-radius: var(--m-radius-full);
1066
+ box-shadow: 0 0 0 0.1875rem var(--m-status-soft-bg);
1008
1067
  flex-shrink: 0;
1009
1068
  height: var(--m-status-dot-size);
1069
+ position: relative;
1010
1070
  width: var(--m-status-dot-size);
1011
1071
  }
1012
1072
 
1073
+ .m-status__icon {
1074
+ align-items: center;
1075
+ color: inherit;
1076
+ display: inline-flex;
1077
+ flex-shrink: 0;
1078
+ height: var(--m-status-icon-size);
1079
+ justify-content: center;
1080
+ line-height: 0;
1081
+ width: var(--m-status-icon-size);
1082
+ }
1083
+
1084
+ .m-status__icon :is(.m-icon, svg) {
1085
+ display: block;
1086
+ flex-shrink: 0;
1087
+ height: 100%;
1088
+ line-height: 0;
1089
+ width: 100%;
1090
+ }
1091
+
1013
1092
  .m-status__label {
1093
+ line-height: 1.25;
1014
1094
  min-width: 0;
1015
1095
  }
1016
1096
 
1017
1097
  .m-status--small {
1018
1098
  --m-status-dot-size: 0.375rem;
1099
+ --m-status-icon-size: 0.8125rem;
1019
1100
  font-size: var(--m-font-size-xs);
1020
- gap: var(--m-space-1);
1101
+ gap: 0.3125rem;
1021
1102
  }
1022
1103
 
1023
1104
  .m-status--large {
1024
- --m-status-dot-size: 0.625rem;
1025
- font-size: var(--m-font-size-md);
1026
- gap: var(--m-space-2);
1105
+ --m-status-dot-size: 0.5625rem;
1106
+ --m-status-icon-size: 1.125rem;
1107
+ font-size: var(--m-font-size-lg);
1108
+ gap: 0.5rem;
1027
1109
  }
1028
1110
 
1029
1111
  .m-status--primary {
@@ -1034,14 +1116,6 @@
1034
1116
  color: var(--m-color-text-muted);
1035
1117
  }
1036
1118
 
1037
- .m-status--secondary .m-status__dot {
1038
- background: color-mix(
1039
- in srgb,
1040
- var(--m-color-text-muted) 70%,
1041
- var(--m-color-surface)
1042
- );
1043
- }
1044
-
1045
1119
  .m-status--success {
1046
1120
  color: var(--m-color-success);
1047
1121
  }
@@ -1071,27 +1145,98 @@
1071
1145
  color: var(--m-status-color);
1072
1146
  }
1073
1147
 
1074
- .m-status--processing .m-status__dot {
1075
- animation: m-status-pulse var(--m-motion-pulse) ease-in-out infinite;
1148
+ .m-status--disabled {
1149
+ color: color-mix(
1150
+ in srgb,
1151
+ var(--m-color-text-muted) 55%,
1152
+ var(--m-color-surface)
1153
+ );
1154
+ }
1155
+
1156
+ /* Soft badge: stronger fill so status reads as a marker, not plain text */
1157
+ .m-status--tag {
1158
+ --m-status-soft-bg: color-mix(in srgb, currentColor 16%, transparent);
1159
+ background: var(--m-status-soft-bg);
1160
+ border-radius: var(--m-radius-full);
1161
+ font-size: var(--m-font-size-xs);
1162
+ gap: 0.3125rem;
1163
+ height: 1.5rem;
1164
+ padding: 0 0.625rem;
1165
+ }
1166
+
1167
+ .m-status--tag .m-status__dot {
1168
+ --m-status-dot-size: 0.375rem;
1169
+ box-shadow: none;
1170
+ }
1171
+
1172
+ .m-status--tag.m-status--has-icon {
1173
+ gap: 0.25rem;
1174
+ padding-inline-start: 0.4375rem;
1175
+ }
1176
+
1177
+ .m-status--tag.m-status--large {
1178
+ height: 1.75rem;
1179
+ padding: 0 0.8125rem;
1180
+ }
1181
+
1182
+ .m-status--tag.m-status--large.m-status--has-icon {
1183
+ padding-inline-start: 0.5rem;
1184
+ }
1185
+
1186
+ .m-status--tag.m-status--small {
1187
+ height: 1.25rem;
1188
+ padding: 0 0.5rem;
1189
+ }
1190
+
1191
+ .m-status--tag.m-status--small.m-status--has-icon {
1192
+ padding-inline-start: 0.375rem;
1193
+ }
1194
+
1195
+ .m-status--processing .m-status__dot::after,
1196
+ .m-status--processing.m-status--has-icon .m-status__icon::after {
1197
+ animation: m-status-pulse var(--m-motion-pulse) cubic-bezier(0, 0, 0.2, 1)
1198
+ infinite;
1199
+ background: currentColor;
1200
+ border-radius: var(--m-radius-full);
1201
+ content: "";
1202
+ inset: 0;
1203
+ opacity: 0.45;
1204
+ position: absolute;
1205
+ }
1206
+
1207
+ .m-status--processing.m-status--has-icon .m-status__icon {
1208
+ position: relative;
1209
+ }
1210
+
1211
+ .m-status--processing.m-status--has-icon .m-status__icon::after {
1212
+ inset: -0.125rem;
1076
1213
  }
1077
1214
 
1078
1215
  @keyframes m-status-pulse {
1079
- 0%,
1080
- 100% {
1081
- box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent);
1216
+ 0% {
1217
+ opacity: 0.55;
1218
+ transform: scale(1);
1082
1219
  }
1083
- 70% {
1084
- box-shadow: 0 0 0 0.4rem transparent;
1220
+ 100% {
1221
+ opacity: 0;
1222
+ transform: scale(2.8);
1085
1223
  }
1086
1224
  }
1087
1225
 
1088
1226
  @media (prefers-reduced-motion: reduce) {
1089
- .m-status--processing .m-status__dot {
1227
+ .m-status--processing .m-status__dot::after,
1228
+ .m-status--processing.m-status--has-icon .m-status__icon::after {
1090
1229
  animation: none;
1091
1230
  }
1092
1231
  }
1093
1232
 
1094
- :root[data-m-motion='none'] .m-status--processing .m-status__dot,
1095
- :root[data-m-motion='reduced'] .m-status--processing .m-status__dot {
1233
+ :root[data-m-motion="none"] .m-status--processing .m-status__dot::after,
1234
+ :root[data-m-motion="reduced"] .m-status--processing .m-status__dot::after,
1235
+ :root[data-m-motion="none"]
1236
+ .m-status--processing.m-status--has-icon
1237
+ .m-status__icon::after,
1238
+ :root[data-m-motion="reduced"]
1239
+ .m-status--processing.m-status--has-icon
1240
+ .m-status__icon::after {
1096
1241
  animation: none;
1097
1242
  }
@@ -1,3 +1,4 @@
1
1
  import '../theme/styles.css'
2
2
  import '../styles/base.css'
3
+ import '../components/Icon/styles.css'
3
4
  import '../components/Status/styles.css'