morya-ui 0.4.2 → 0.4.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 (205) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{Button-BaYLh91a.js → Button-Bjsth0ct.js} +3 -3
  3. package/dist/{Card-B1CB9Trm.js → Card-Ct5vJmoV.js} +1 -1
  4. package/dist/{Checkbox-LxCFF19I.js → Checkbox-Bo26OGHP.js} +1 -1
  5. package/dist/{DatePicker-DGPNukEW.js → DatePicker-CsMGzCqY.js} +4 -4
  6. package/dist/{Empty-2_f_FgyK.js → Empty-rMhOPi79.js} +2 -2
  7. package/dist/{FlyoutSubmenu-Da6AcoM4.js → FlyoutSubmenu-C0id6-Sb.js} +1 -1
  8. package/dist/{Icon-od9Ob-Ay.js → Icon-CmHjx7W8.js} +1 -1
  9. package/dist/{Input-NspPDc2R.js → Input-CxSTVp9E.js} +3 -3
  10. package/dist/{Loading-BK4dQPCS.js → Loading-D_qRwfKv.js} +4 -4
  11. package/dist/{Pagination-tdrlaZ3u.js → Pagination-CnGOpp0m.js} +3 -3
  12. package/dist/{Popover-BumMfUpV.js → Popover-D1uZ1N9Z.js} +2 -2
  13. package/dist/{ProgressSpinner-BQ1tLioO.js → ProgressSpinner-hmR23xpi.js} +2 -2
  14. package/dist/{Radio-BCn2OVCF.js → Radio-CZAyelC_.js} +1 -1
  15. package/dist/{Segmented-ppmDmku5.js → Segmented-BpdO7arR.js} +2 -2
  16. package/dist/{Select-CN1tM76U.js → Select-CySmusHs.js} +4 -4
  17. package/dist/{Textarea-Ch1KCXEv.js → Textarea-DskjTCcz.js} +3 -3
  18. package/dist/{Tooltip-DKsXxU_B.js → Tooltip-DSfkflHp.js} +2 -2
  19. package/dist/alert/index.js +15 -15
  20. package/dist/alert/style.css +1 -1
  21. package/dist/auto-complete/index.js +4 -4
  22. package/dist/avatar/index.js +1 -1
  23. package/dist/badge/index.js +24 -24
  24. package/dist/badge/style.css +0 -1
  25. package/dist/block-ui/index.js +1 -1
  26. package/dist/breadcrumb/index.js +1 -1
  27. package/dist/button/index.js +1 -1
  28. package/dist/calendar/index.js +3 -3
  29. package/dist/card/index.js +1 -1
  30. package/dist/carousel/index.js +2 -2
  31. package/dist/cascade-select/index.js +4 -4
  32. package/dist/checkbox/index.js +1 -1
  33. package/dist/chip/index.js +35 -35
  34. package/dist/chip/style.css +1 -1
  35. package/dist/command-menu/index.js +5 -5
  36. package/dist/components/Alert/Alert.vue.d.ts +2 -2
  37. package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
  38. package/dist/components/Alert/index.d.ts +1 -1
  39. package/dist/components/Alert/index.d.ts.map +1 -1
  40. package/dist/components/Alert/styles.css +1 -1
  41. package/dist/components/Alert/types.d.ts +3 -3
  42. package/dist/components/Alert/types.d.ts.map +1 -1
  43. package/dist/components/Badge/Badge.vue.d.ts +2 -2
  44. package/dist/components/Badge/index.d.ts +1 -1
  45. package/dist/components/Badge/index.d.ts.map +1 -1
  46. package/dist/components/Badge/styles.css +0 -1
  47. package/dist/components/Badge/types.d.ts +3 -4
  48. package/dist/components/Badge/types.d.ts.map +1 -1
  49. package/dist/components/Button/types.d.ts +1 -5
  50. package/dist/components/Button/types.d.ts.map +1 -1
  51. package/dist/components/Chip/index.d.ts +1 -1
  52. package/dist/components/Chip/index.d.ts.map +1 -1
  53. package/dist/components/Chip/styles.css +1 -1
  54. package/dist/components/Chip/types.d.ts +3 -3
  55. package/dist/components/Chip/types.d.ts.map +1 -1
  56. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
  57. package/dist/components/ConfirmDialog/types.d.ts +1 -1
  58. package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
  59. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  60. package/dist/components/Dialog/styles.css +2 -3
  61. package/dist/components/Dialog/types.d.ts +1 -2
  62. package/dist/components/Dialog/types.d.ts.map +1 -1
  63. package/dist/components/Message/Message.vue.d.ts.map +1 -1
  64. package/dist/components/Message/index.d.ts +1 -1
  65. package/dist/components/Message/index.d.ts.map +1 -1
  66. package/dist/components/Message/message.d.ts +4 -0
  67. package/dist/components/Message/message.d.ts.map +1 -1
  68. package/dist/components/Message/styles.css +3 -7
  69. package/dist/components/Message/types.d.ts +4 -4
  70. package/dist/components/Message/types.d.ts.map +1 -1
  71. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  72. package/dist/components/Page/PageStat.vue.d.ts +2 -2
  73. package/dist/components/Page/index.d.ts +1 -1
  74. package/dist/components/Page/index.d.ts.map +1 -1
  75. package/dist/components/Page/styles.css +2 -2
  76. package/dist/components/Page/types.d.ts +2 -2
  77. package/dist/components/Page/types.d.ts.map +1 -1
  78. package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
  79. package/dist/components/ProgressBar/styles.css +1 -1
  80. package/dist/components/ProgressBar/types.d.ts +2 -7
  81. package/dist/components/ProgressBar/types.d.ts.map +1 -1
  82. package/dist/components/Status/Status.vue.d.ts +2 -2
  83. package/dist/components/Status/Status.vue.d.ts.map +1 -1
  84. package/dist/components/Status/index.d.ts +1 -1
  85. package/dist/components/Status/index.d.ts.map +1 -1
  86. package/dist/components/Status/styles.css +0 -1
  87. package/dist/components/Status/types.d.ts +4 -5
  88. package/dist/components/Status/types.d.ts.map +1 -1
  89. package/dist/components/Tag/Tag.vue.d.ts +2 -2
  90. package/dist/components/Tag/index.d.ts +1 -1
  91. package/dist/components/Tag/index.d.ts.map +1 -1
  92. package/dist/components/Tag/styles.css +0 -1
  93. package/dist/components/Tag/types.d.ts +4 -5
  94. package/dist/components/Tag/types.d.ts.map +1 -1
  95. package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
  96. package/dist/components/Timeline/index.d.ts +1 -1
  97. package/dist/components/Timeline/index.d.ts.map +1 -1
  98. package/dist/components/Timeline/styles.css +2 -4
  99. package/dist/components/Timeline/types.d.ts +3 -3
  100. package/dist/components/Timeline/types.d.ts.map +1 -1
  101. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  102. package/dist/components/Toast/index.d.ts +1 -1
  103. package/dist/components/Toast/index.d.ts.map +1 -1
  104. package/dist/components/Toast/styles.css +1 -3
  105. package/dist/components/Toast/toast.d.ts +4 -0
  106. package/dist/components/Toast/toast.d.ts.map +1 -1
  107. package/dist/components/Toast/types.d.ts +5 -5
  108. package/dist/components/Toast/types.d.ts.map +1 -1
  109. package/dist/components/Toast/useNotification.d.ts +3 -2
  110. package/dist/components/Toast/useNotification.d.ts.map +1 -1
  111. package/dist/{config-CB_TiIvg.js → config-BEpyhJi3.js} +1 -1
  112. package/dist/config-provider/index.js +1 -1
  113. package/dist/confirm-dialog/index.js +54 -57
  114. package/dist/confirm-dialog/style.css +2 -3
  115. package/dist/confirm-popup/index.js +5 -5
  116. package/dist/context-menu/index.js +5 -5
  117. package/dist/data-view/index.js +3 -3
  118. package/dist/date-picker/index.js +1 -1
  119. package/dist/descriptions/index.js +1 -1
  120. package/dist/dialog/index.js +95 -98
  121. package/dist/dialog/style.css +2 -3
  122. package/dist/dock/index.js +2 -2
  123. package/dist/drawer/index.js +4 -4
  124. package/dist/dropdown/index.js +6 -6
  125. package/dist/empty/index.js +1 -1
  126. package/dist/fieldset/index.js +1 -1
  127. package/dist/file-upload/index.js +2 -2
  128. package/dist/flex/index.js +1 -1
  129. package/dist/form/index.js +2 -2
  130. package/dist/gallery/index.js +2 -2
  131. package/dist/icon/index.js +1 -1
  132. package/dist/{icon-COrt_N8A.js → icon-H8prbteT.js} +1 -1
  133. package/dist/image/index.js +2 -2
  134. package/dist/index.d.ts +11 -11
  135. package/dist/index.d.ts.map +1 -1
  136. package/dist/index.js +3013 -3025
  137. package/dist/input/index.js +1 -1
  138. package/dist/input-color/index.js +2 -2
  139. package/dist/input-number/index.js +3 -3
  140. package/dist/input-otp/index.js +2 -2
  141. package/dist/input-password/index.js +4 -4
  142. package/dist/input-tags/index.js +3 -3
  143. package/dist/layout/index.js +2 -2
  144. package/dist/list/index.js +4 -4
  145. package/dist/listbox/index.js +2 -2
  146. package/dist/loading/index.js +1 -1
  147. package/dist/{locale-CR2PIaxt.js → locale-CZddM-tH.js} +1 -1
  148. package/dist/mega-menu/index.js +5 -5
  149. package/dist/mentions/index.js +4 -4
  150. package/dist/menu/index.js +6 -6
  151. package/dist/menubar/index.js +5 -5
  152. package/dist/message/index.js +116 -117
  153. package/dist/message/style.css +3 -7
  154. package/dist/order-list/index.js +2 -2
  155. package/dist/page/index.js +8 -7
  156. package/dist/page/style.css +2 -2
  157. package/dist/pagination/index.js +1 -1
  158. package/dist/panel/index.js +3 -3
  159. package/dist/pick-list/index.js +2 -2
  160. package/dist/popover/index.js +1 -1
  161. package/dist/progress-bar/index.js +33 -34
  162. package/dist/progress-bar/style.css +1 -1
  163. package/dist/progress-spinner/index.js +1 -1
  164. package/dist/qr-code/index.js +4 -4
  165. package/dist/radio/index.js +1 -1
  166. package/dist/rating/index.js +3 -3
  167. package/dist/result/index.js +2 -2
  168. package/dist/scroll-top/index.js +3 -3
  169. package/dist/segmented/index.js +1 -1
  170. package/dist/select/index.js +1 -1
  171. package/dist/select-button/index.js +1 -1
  172. package/dist/shared/types.d.ts +7 -20
  173. package/dist/shared/types.d.ts.map +1 -1
  174. package/dist/sidebar/index.js +3 -3
  175. package/dist/slider/index.js +2 -2
  176. package/dist/space/index.js +1 -1
  177. package/dist/speed-dial/index.js +5 -5
  178. package/dist/split-button/index.js +5 -5
  179. package/dist/splitter/index.js +1 -1
  180. package/dist/status/index.js +30 -31
  181. package/dist/status/style.css +0 -1
  182. package/dist/stepper/index.js +1 -1
  183. package/dist/styles.css +1 -1
  184. package/dist/switch/index.js +1 -1
  185. package/dist/table/index.js +11 -11
  186. package/dist/tabs/index.js +2 -2
  187. package/dist/tag/index.js +52 -52
  188. package/dist/tag/style.css +0 -1
  189. package/dist/terminal/index.js +1 -1
  190. package/dist/textarea/index.js +1 -1
  191. package/dist/tiered-menu/index.js +4 -4
  192. package/dist/time-picker/index.js +1 -1
  193. package/dist/timeline/index.js +67 -72
  194. package/dist/timeline/style.css +2 -4
  195. package/dist/toast/index.js +135 -136
  196. package/dist/toast/style.css +1 -3
  197. package/dist/toggle-button/index.js +3 -3
  198. package/dist/tooltip/index.js +1 -1
  199. package/dist/tour/index.js +4 -4
  200. package/dist/tree/index.js +3 -3
  201. package/dist/tree-select/index.js +5 -5
  202. package/dist/{types-DGuu4Eg4.js → types-DBQfGctj.js} +1 -4
  203. package/dist/typography/index.js +3 -3
  204. package/dist/{useMotionTransition-D8JOR3ih.js → useMotionTransition-DqL_SEML.js} +1 -1
  205. package/package.json +1 -1
@@ -1,101 +1,100 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { n as t } from "../overlay-oR-5MDuE.js";
3
- import { t as n } from "../useMotionTransition-D8JOR3ih.js";
4
- import { t as r } from "../types-DGuu4Eg4.js";
5
- import { t as i } from "../Icon-od9Ob-Ay.js";
6
- import { n as a, r as o } from "../content-h8POj44-.js";
7
- import { t as s } from "../Renderable-DHU4Jcfw.js";
8
- import { n as c } from "../overlayHost-78CGtMgR.js";
9
- import { l } from "../config-CB_TiIvg.js";
10
- import { n as u, t as ee } from "../locale-CR2PIaxt.js";
3
+ import { t as n } from "../useMotionTransition-DqL_SEML.js";
4
+ import { t as r } from "../Icon-CmHjx7W8.js";
5
+ import { n as i, r as a } from "../content-h8POj44-.js";
6
+ import { t as o } from "../Renderable-DHU4Jcfw.js";
7
+ import { n as s } from "../overlayHost-78CGtMgR.js";
8
+ import { l as c } from "../config-BEpyhJi3.js";
9
+ import { n as l, t as u } from "../locale-CZddM-tH.js";
11
10
  import "./style.js";
12
- import { Fragment as d, Teleport as f, TransitionGroup as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createVNode as y, defineComponent as b, h as x, mergeProps as S, normalizeClass as te, onBeforeUnmount as C, onMounted as ne, openBlock as w, reactive as T, renderList as E, unref as D, useAttrs as O, watch as k, withCtx as re } from "vue";
11
+ import { Fragment as ee, Teleport as d, TransitionGroup as te, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, h as y, mergeProps as b, normalizeClass as x, onBeforeUnmount as S, onMounted as ne, openBlock as C, reactive as w, renderList as re, unref as T, useAttrs as E, watch as D, withCtx as O } from "vue";
13
12
  //#region src/components/Toast/toastState.ts
14
- var A = T({
13
+ var k = w({
15
14
  messages: [],
16
15
  position: "top-right",
17
16
  max: void 0,
18
17
  dedupe: !0
19
- }), j = null, M = 0, N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
20
- function I(e) {
21
- j = e;
18
+ }), A = null, j = 0, M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
19
+ function F(e) {
20
+ A = e;
22
21
  }
23
22
  function ie() {
24
- M += 1, j &&= (j.unmount(), null);
23
+ j += 1, A &&= (A.unmount(), null);
25
24
  }
26
25
  function ae() {
27
- M = Math.max(0, M - 1);
26
+ j = Math.max(0, j - 1);
28
27
  }
29
- function L(e, t) {
30
- return `${o(e)}::${o(t ?? "")}`;
28
+ function I(e, t) {
29
+ return `${a(e)}::${a(t ?? "")}`;
31
30
  }
32
- function R(e) {
33
- let t = N.get(e);
34
- t != null && clearTimeout(t), N.delete(e), P.delete(e), F.delete(e);
31
+ function L(e) {
32
+ let t = M.get(e);
33
+ t != null && clearTimeout(t), M.delete(e), N.delete(e), P.delete(e);
35
34
  }
36
- function z(e) {
37
- let t = N.get(e);
35
+ function R(e) {
36
+ let t = M.get(e);
38
37
  if (t == null) return;
39
- clearTimeout(t), N.delete(e);
40
- let n = F.get(e), r = P.get(e);
41
- n != null && r != null && P.set(e, Math.max(0, r - (Date.now() - n)));
38
+ clearTimeout(t), M.delete(e);
39
+ let n = P.get(e), r = N.get(e);
40
+ n != null && r != null && N.set(e, Math.max(0, r - (Date.now() - n)));
42
41
  }
43
- function B(e, t) {
44
- let n = P.get(e);
45
- n == null || n <= 0 || (F.set(e, Date.now()), N.set(e, setTimeout(() => {
42
+ function z(e, t) {
43
+ let n = N.get(e);
44
+ n == null || n <= 0 || (P.set(e, Date.now()), M.set(e, setTimeout(() => {
46
45
  t(e);
47
46
  }, n)));
48
47
  }
49
- function V(e, t) {
50
- R(e.id), !(e.life == null || e.life <= 0) && (P.set(e.id, e.life), F.set(e.id, Date.now()), N.set(e.id, setTimeout(() => {
48
+ function B(e, t) {
49
+ L(e.id), !(e.life == null || e.life <= 0) && (N.set(e.id, e.life), P.set(e.id, Date.now()), M.set(e.id, setTimeout(() => {
51
50
  t(e.id);
52
51
  }, e.life)));
53
52
  }
54
- function H(e) {
53
+ function V(e) {
55
54
  if (e == null) {
56
- U();
55
+ H();
57
56
  return;
58
57
  }
59
- R(e), A.messages = A.messages.filter((t) => t.id !== e), K(e);
58
+ L(e), k.messages = k.messages.filter((t) => t.id !== e), G(e);
60
59
  }
61
- function U() {
62
- for (let e of [...N.keys()]) R(e);
63
- let e = A.messages.map((e) => e.id);
64
- A.messages = [];
65
- for (let t of e) K(t);
60
+ function H() {
61
+ for (let e of [...M.keys()]) L(e);
62
+ let e = k.messages.map((e) => e.id);
63
+ k.messages = [];
64
+ for (let t of e) G(t);
66
65
  }
67
- var W = /* @__PURE__ */ new Map();
68
- function G(e, t) {
69
- W.set(e, t);
66
+ var U = /* @__PURE__ */ new Map();
67
+ function W(e, t) {
68
+ U.set(e, t);
70
69
  }
71
- function K(e) {
72
- let t = W.get(e);
73
- t && (W.delete(e), t());
70
+ function G(e) {
71
+ let t = U.get(e);
72
+ t && (U.delete(e), t());
74
73
  }
75
- function q(e) {
76
- if (!(e == null || e <= 0)) for (; A.messages.length >= e;) {
77
- let e = A.messages[0];
74
+ function K(e) {
75
+ if (!(e == null || e <= 0)) for (; k.messages.length >= e;) {
76
+ let e = k.messages[0];
78
77
  if (!e) break;
79
- H(e.id);
78
+ V(e.id);
80
79
  }
81
80
  }
82
- function J(e) {
83
- if (!(e == null || e <= 0)) for (; A.messages.length > e;) {
84
- let e = A.messages[0];
81
+ function q(e) {
82
+ if (!(e == null || e <= 0)) for (; k.messages.length > e;) {
83
+ let e = k.messages[0];
85
84
  if (!e) break;
86
- H(e.id);
85
+ V(e.id);
87
86
  }
88
87
  }
89
- function oe(e) {
90
- let t = L(e.summary, e.detail);
91
- return A.messages.find((e) => L(e.summary, e.detail) === t);
88
+ function J(e) {
89
+ let t = I(e.summary, e.detail);
90
+ return k.messages.find((e) => I(e.summary, e.detail) === t);
92
91
  }
93
92
  //#endregion
94
93
  //#region src/components/Toast/Toast.vue?vue&type=script&setup=true&lang.ts
95
- var se = ["onMouseenter", "onMouseleave"], ce = { class: "m-toast__content" }, le = { class: "m-toast__heading" }, ue = { key: 0 }, de = {
94
+ var oe = ["onMouseenter", "onMouseleave"], se = { class: "m-toast__content" }, ce = { class: "m-toast__heading" }, le = { key: 0 }, ue = {
96
95
  key: 1,
97
96
  class: "m-toast__actions"
98
- }, fe = ["aria-label", "onClick"], Y = /* @__PURE__ */ b({
97
+ }, de = ["aria-label", "onClick"], Y = /* @__PURE__ */ v({
99
98
  inheritAttrs: !1,
100
99
  __name: "Toast",
101
100
  props: {
@@ -118,150 +117,150 @@ var se = ["onMouseenter", "onMouseleave"], ce = { class: "m-toast__content" }, l
118
117
  }
119
118
  },
120
119
  emits: ["close"],
121
- setup(a, { emit: c }) {
122
- let b = a, x = c, T = O(), { rootAttrs: j } = e(T, () => b.pt), M = l(), N = u(), P = m(() => t(b, M.value.appendTo)), F = m(() => b.messages === void 0), I = m(() => b.messages ?? A.messages), L = m(() => b.position ?? (F.value ? A.position : "top-right")), { transitionName: R, transitionCss: V } = n({
120
+ setup(i, { emit: s }) {
121
+ let v = i, y = s, w = E(), { rootAttrs: A } = e(w, () => v.pt), j = c(), M = l(), N = f(() => t(v, j.value.appendTo)), P = f(() => v.messages === void 0), F = f(() => v.messages ?? k.messages), I = f(() => v.position ?? (P.value ? k.position : "top-right")), { transitionName: L, transitionCss: B } = n({
123
122
  role: "toast",
124
- local: () => b.transition,
123
+ local: () => v.transition,
125
124
  componentName: "Toast",
126
125
  fallback: "slide-fade"
127
126
  });
128
127
  ne(() => {
129
- F.value && !b.auto && ie();
130
- }), C(() => {
131
- F.value && !b.auto && ae();
132
- }), k(() => b.max, (e) => {
133
- !F.value || e === void 0 || (A.max = e, J(e));
128
+ P.value && !v.auto && ie();
129
+ }), S(() => {
130
+ P.value && !v.auto && ae();
131
+ }), D(() => v.max, (e) => {
132
+ !P.value || e === void 0 || (k.max = e, q(e));
134
133
  }, { immediate: !0 });
134
+ function H(e) {
135
+ return `m-toast__message--${e ?? "info"}`;
136
+ }
135
137
  function U(e) {
136
- return `m-toast__message--${r(e) ?? "info"}`;
138
+ return u(M.value.closeNamed, { summary: a(e.summary) || "toast" });
137
139
  }
138
140
  function W(e) {
139
- return ee(N.value.closeNamed, { summary: o(e.summary) || "toast" });
141
+ P.value && V(e.id), y("close", e);
140
142
  }
141
143
  function G(e) {
142
- F.value && H(e.id), x("close", e);
144
+ P.value && R(e.id);
143
145
  }
144
146
  function K(e) {
145
- F.value && z(e.id);
146
- }
147
- function q(e) {
148
- F.value && B(e.id, H);
147
+ P.value && z(e.id, V);
149
148
  }
150
- return (e, t) => (w(), h(f, {
151
- to: P.value.to,
152
- disabled: P.value.disabled
153
- }, [v("div", S(D(j), {
154
- class: ["m-toast", `m-toast--${L.value}`],
149
+ return (e, t) => (C(), p(d, {
150
+ to: N.value.to,
151
+ disabled: N.value.disabled
152
+ }, [g("div", b(T(A), {
153
+ class: ["m-toast", `m-toast--${I.value}`],
155
154
  "aria-live": "polite",
156
155
  "aria-atomic": "true"
157
- }), [y(p, {
158
- name: D(R),
159
- css: D(V)
156
+ }), [_(te, {
157
+ name: T(L),
158
+ css: T(B)
160
159
  }, {
161
- default: re(() => [(w(!0), _(d, null, E(I.value, (e) => (w(), _("article", {
160
+ default: O(() => [(C(!0), h(ee, null, re(F.value, (e) => (C(), h("article", {
162
161
  key: e.id,
163
- class: te(["m-toast__message", U(e.severity)]),
162
+ class: x(["m-toast__message", H(e.type)]),
164
163
  role: "status",
165
- onMouseenter: (t) => K(e),
166
- onMouseleave: (t) => q(e)
167
- }, [v("div", ce, [
168
- v("div", le, [e.icon ? (w(), h(i, {
164
+ onMouseenter: (t) => G(e),
165
+ onMouseleave: (t) => K(e)
166
+ }, [g("div", se, [
167
+ g("div", ce, [e.icon ? (C(), p(r, {
169
168
  key: 0,
170
169
  class: "m-toast__icon",
171
170
  name: e.icon,
172
171
  size: "sm"
173
- }, null, 8, ["name"])) : g("", !0), v("strong", null, [y(D(s), { value: e.summary }, null, 8, ["value"])])]),
174
- e.detail != null && e.detail !== "" ? (w(), _("p", ue, [y(D(s), { value: e.detail }, null, 8, ["value"])])) : g("", !0),
175
- e.actions != null && e.actions !== "" ? (w(), _("div", de, [y(D(s), { value: e.actions }, null, 8, ["value"])])) : g("", !0)
176
- ]), e.closable === !1 ? g("", !0) : (w(), _("button", {
172
+ }, null, 8, ["name"])) : m("", !0), g("strong", null, [_(T(o), { value: e.summary }, null, 8, ["value"])])]),
173
+ e.detail != null && e.detail !== "" ? (C(), h("p", le, [_(T(o), { value: e.detail }, null, 8, ["value"])])) : m("", !0),
174
+ e.actions != null && e.actions !== "" ? (C(), h("div", ue, [_(T(o), { value: e.actions }, null, 8, ["value"])])) : m("", !0)
175
+ ]), e.closable === !1 ? m("", !0) : (C(), h("button", {
177
176
  key: 0,
178
177
  type: "button",
179
178
  class: "m-toast__close",
180
- "aria-label": W(e),
181
- onClick: (t) => G(e)
182
- }, [y(i, {
179
+ "aria-label": U(e),
180
+ onClick: (t) => W(e)
181
+ }, [_(r, {
183
182
  name: "close",
184
183
  size: "sm"
185
- })], 8, fe))], 42, se))), 128))]),
184
+ })], 8, de))], 42, oe))), 128))]),
186
185
  _: 1
187
186
  }, 8, ["name", "css"])], 16)], 8, ["to", "disabled"]));
188
187
  }
189
- }), pe = 3e3, me = 0, he = b({
188
+ }), fe = 3e3, pe = 0, me = v({
190
189
  name: "MToastAutoHost",
191
190
  setup() {
192
- return () => x(Y, { auto: !0 });
191
+ return () => y(Y, { auto: !0 });
193
192
  }
194
193
  });
195
- function ge() {
196
- typeof document > "u" || M > 0 || j || I(c(he, "m-toast-host-root"));
194
+ function he() {
195
+ typeof document > "u" || j > 0 || A || F(s(me, "m-toast-host-root"));
197
196
  }
198
- function _e(e, t) {
199
- let n = a(e) ? e : { summary: e };
200
- return n.position && (A.position = n.position), {
201
- id: n.id ?? `m-toast-${Date.now()}-${++me}`,
197
+ function ge(e, t) {
198
+ let n = i(e) ? e : { summary: e };
199
+ return n.position && (k.position = n.position), {
200
+ id: n.id ?? `m-toast-${Date.now()}-${++pe}`,
202
201
  summary: n.summary,
203
202
  detail: n.detail,
204
- severity: t ?? n.severity ?? "info",
203
+ type: t ?? n.type ?? "info",
205
204
  closable: n.closable ?? !0,
206
205
  icon: n.icon,
207
206
  actions: n.actions,
208
- life: n.life === void 0 ? pe : n.life
207
+ life: n.life === void 0 ? fe : n.life
209
208
  };
210
209
  }
211
210
  function X(e, t) {
212
- ge(), q(A.max);
213
- let n = a(e) ? e : void 0, r = _e(e, t);
214
- if (n?.onClose && G(r.id, n.onClose), n?.id != null) {
215
- let e = A.messages.find((e) => e.id === r.id);
211
+ he(), K(k.max);
212
+ let n = i(e) ? e : void 0, r = ge(e, t);
213
+ if (n?.onClose && W(r.id, n.onClose), n?.id != null) {
214
+ let e = k.messages.find((e) => e.id === r.id);
216
215
  if (e) return Object.assign(e, {
217
216
  ...r,
218
217
  id: e.id
219
- }), r.life !== void 0 && V(e, H), {
218
+ }), r.life !== void 0 && B(e, V), {
220
219
  id: e.id,
221
- close: () => H(e.id)
220
+ close: () => V(e.id)
222
221
  };
223
222
  }
224
- if (n?.dedupe ?? A.dedupe ?? !0) {
225
- let e = oe(r);
226
- if (e) return r.life !== void 0 && (e.life = r.life), r.severity !== void 0 && (e.severity = r.severity), V(e, H), {
223
+ if (n?.dedupe ?? k.dedupe ?? !0) {
224
+ let e = J(r);
225
+ if (e) return r.life !== void 0 && (e.life = r.life), r.type !== void 0 && (e.type = r.type), B(e, V), {
227
226
  id: e.id,
228
- close: () => H(e.id)
227
+ close: () => V(e.id)
229
228
  };
230
229
  }
231
- return A.messages = [...A.messages, r], V(r, H), {
230
+ return k.messages = [...k.messages, r], B(r, V), {
232
231
  id: r.id,
233
- close: () => H(r.id)
232
+ close: () => V(r.id)
234
233
  };
235
234
  }
236
235
  var Z = {
237
236
  add: (e) => X(e),
238
237
  success: (e) => X(e, "success"),
239
238
  info: (e) => X(e, "info"),
240
- warn: (e) => X(e, "warn"),
241
- warning: (e) => X(e, "warn"),
242
- error: (e) => X(e, "error"),
239
+ warn: (e) => X(e, "warning"),
240
+ warning: (e) => X(e, "warning"),
241
+ error: (e) => X(e, "danger"),
243
242
  update(e, t) {
244
- let n = A.messages.find((t) => t.id === e);
245
- if (n) return Object.assign(n, t), t.life !== void 0 && V(n, H), {
243
+ let n = k.messages.find((t) => t.id === e);
244
+ if (n) return Object.assign(n, t), t.life !== void 0 && B(n, V), {
246
245
  id: e,
247
- close: () => H(e)
246
+ close: () => V(e)
248
247
  };
249
248
  },
250
- remove: H,
251
- clear: U,
252
- close: H,
253
- closeAll: U,
254
- destroyAll: U,
249
+ remove: V,
250
+ clear: H,
251
+ close: V,
252
+ closeAll: H,
253
+ destroyAll: H,
255
254
  setDefaults(e) {
256
- e.position && (A.position = e.position), e.max !== void 0 && (A.max = e.max), e.dedupe !== void 0 && (A.dedupe = e.dedupe);
255
+ e.position && (k.position = e.position), e.max !== void 0 && (k.max = e.max), e.dedupe !== void 0 && (k.dedupe = e.dedupe);
257
256
  }
258
257
  };
259
- function ve() {
258
+ function _e() {
260
259
  return Z;
261
260
  }
262
261
  //#endregion
263
262
  //#region src/components/Toast/useNotification.ts
264
- var ye = 4.5, be = {
263
+ var ve = 4.5, ye = {
265
264
  topLeft: "top-left",
266
265
  topRight: "top-right",
267
266
  bottomLeft: "bottom-left",
@@ -277,10 +276,10 @@ function Q(e, t) {
277
276
  detail: e.description,
278
277
  actions: e.btn,
279
278
  icon: e.icon,
280
- severity: n,
279
+ type: n,
281
280
  closable: e.closable ?? !0,
282
- life: (e.duration ?? ye) * 1e3,
283
- position: e.placement ? be[e.placement] : void 0,
281
+ life: (e.duration ?? ve) * 1e3,
282
+ position: e.placement ? ye[e.placement] : void 0,
284
283
  dedupe: e.key == null,
285
284
  onClose: e.onClose
286
285
  });
@@ -291,11 +290,11 @@ function $() {
291
290
  success: (e) => Q(e, "success"),
292
291
  info: (e) => Q(e, "info"),
293
292
  warning: (e) => Q(e, "warning"),
294
- error: (e) => Q(e, "error"),
293
+ error: (e) => Q(e, "danger"),
295
294
  close: (e) => Z.close(e),
296
295
  destroy: () => Z.clear()
297
296
  };
298
297
  }
299
- var xe = $();
298
+ var be = $();
300
299
  //#endregion
301
- export { Y as MToast, xe as notification, Z as toast, $ as useNotification, ve as useToast };
300
+ export { Y as MToast, be as notification, Z as toast, $ as useNotification, _e as useToast };
@@ -2016,12 +2016,10 @@
2016
2016
  border-left-color: var(--m-color-success);
2017
2017
  }
2018
2018
 
2019
- .m-toast__message--warn,
2020
2019
  .m-toast__message--warning {
2021
- border-left-color: var(--m-color-warn);
2020
+ border-left-color: var(--m-color-warning);
2022
2021
  }
2023
2022
 
2024
- .m-toast__message--error,
2025
2023
  .m-toast__message--danger {
2026
2024
  border-left-color: var(--m-color-danger);
2027
2025
  }
@@ -1,6 +1,6 @@
1
- import { t as e } from "../Icon-od9Ob-Ay.js";
2
- import { t } from "../icon-COrt_N8A.js";
3
- import { o as n } from "../config-CB_TiIvg.js";
1
+ import { t as e } from "../Icon-CmHjx7W8.js";
2
+ import { t } from "../icon-H8prbteT.js";
3
+ import { o as n } from "../config-BEpyhJi3.js";
4
4
  import "./style.js";
5
5
  import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, toDisplayString as f } from "vue";
6
6
  //#region src/components/ToggleButton/ToggleButton.vue?vue&type=script&setup=true&lang.ts
@@ -1,3 +1,3 @@
1
- import { t as e } from "../Tooltip-DKsXxU_B.js";
1
+ import { t as e } from "../Tooltip-DSfkflHp.js";
2
2
  import "./style.js";
3
3
  export { e as MTooltip };
@@ -1,10 +1,10 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { n as t } from "../overlay-oR-5MDuE.js";
3
3
  import { t as ee } from "../overlayPlacement-qwEJPVS4.js";
4
- import { t as n } from "../Icon-od9Ob-Ay.js";
5
- import { t as r } from "../Button-BaYLh91a.js";
6
- import { l as te } from "../config-CB_TiIvg.js";
7
- import { n as ne } from "../locale-CR2PIaxt.js";
4
+ import { t as n } from "../Icon-CmHjx7W8.js";
5
+ import { t as r } from "../Button-Bjsth0ct.js";
6
+ import { l as te } from "../config-BEpyhJi3.js";
7
+ import { n as ne } from "../locale-CZddM-tH.js";
8
8
  import "./style.js";
9
9
  import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as re, openBlock as _, ref as v, toDisplayString as y, unref as b, useAttrs as x, watch as S, withCtx as C } from "vue";
10
10
  //#region src/components/Tour/Tour.vue?vue&type=script&setup=true&lang.ts
@@ -1,9 +1,9 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
- import { a as t, t as n } from "../Icon-od9Ob-Ay.js";
2
+ import { a as t, t as n } from "../Icon-CmHjx7W8.js";
3
3
  import { t as r } from "../useMenuKeyboard-BedmYE4W.js";
4
- import { t as i } from "../Checkbox-LxCFF19I.js";
4
+ import { t as i } from "../Checkbox-Bo26OGHP.js";
5
5
  import { a, c as ee, d as o, f as s, i as c, l, o as u, p as d, r as te, s as ne, t as f } from "../treeQuery-CnHkyYOA.js";
6
- import { n as re } from "../locale-CR2PIaxt.js";
6
+ import { n as re } from "../locale-CZddM-tH.js";
7
7
  import "./style.js";
8
8
  import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, defineComponent as b, inject as x, mergeProps as S, nextTick as C, normalizeClass as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as ie, renderSlot as ae, resolveDynamicComponent as oe, toDisplayString as k, unref as A, useAttrs as se, useSlots as ce, watch as j, withModifiers as M } from "vue";
9
9
  //#region src/components/Tree/context.ts
@@ -4,14 +4,14 @@ import { t as r } from "../overlayPlacement-qwEJPVS4.js";
4
4
  import { t as i } from "../useFieldFeedback-C5qIqYMK.js";
5
5
  import { t as ee } from "../useFloatingViewportSync-wLLKIGUA.js";
6
6
  import { t as te } from "../useMId-BXFYayPP.js";
7
- import { t as ne } from "../useMotionTransition-D8JOR3ih.js";
8
- import { t as a } from "../Icon-od9Ob-Ay.js";
7
+ import { t as ne } from "../useMotionTransition-DqL_SEML.js";
8
+ import { t as a } from "../Icon-CmHjx7W8.js";
9
9
  import { t as re } from "../Scrollbar-DTeJ8P5b.js";
10
10
  import { t as ie } from "../useMenuKeyboard-BedmYE4W.js";
11
- import { t as o } from "../Checkbox-LxCFF19I.js";
11
+ import { t as o } from "../Checkbox-Bo26OGHP.js";
12
12
  import { a as ae, c as oe, d as se, f as ce, l as s, n as le, p as ue, u as c } from "../treeQuery-CnHkyYOA.js";
13
- import { l as de, o as fe } from "../config-CB_TiIvg.js";
14
- import { n as l } from "../locale-CR2PIaxt.js";
13
+ import { l as de, o as fe } from "../config-BEpyhJi3.js";
14
+ import { n as l } from "../locale-CZddM-tH.js";
15
15
  import "./style.js";
16
16
  import { Fragment as u, Teleport as pe, Transition as me, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as he, createVNode as g, defineComponent as _, mergeProps as ge, nextTick as _e, normalizeClass as v, normalizeStyle as ve, onBeforeUnmount as ye, openBlock as y, ref as b, renderList as x, renderSlot as be, resolveDynamicComponent as S, toDisplayString as C, unref as w, useAttrs as xe, useSlots as Se, vModelText as Ce, watch as we, withCtx as T, withDirectives as Te, withModifiers as E } from "vue";
17
17
  //#region src/components/TreeSelect/TreeSelectNodeItem.vue?vue&type=script&setup=true&lang.ts
@@ -8,8 +8,5 @@ function t(e) {
8
8
  function n(e) {
9
9
  return e === "small" ? "sm" : e === "large" ? "lg" : "md";
10
10
  }
11
- function r(e) {
12
- return e === "warning" ? "warn" : e;
13
- }
14
11
  //#endregion
15
- export { e as i, t as n, n as r, r as t };
12
+ export { n, e as r, t };
@@ -1,8 +1,8 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
- import { t } from "../Icon-od9Ob-Ay.js";
2
+ import { t } from "../Icon-CmHjx7W8.js";
3
3
  import { t as n } from "../vnode-PJWBO7_h.js";
4
- import { t as r } from "../Textarea-Ch1KCXEv.js";
5
- import { n as i } from "../locale-CR2PIaxt.js";
4
+ import { t as r } from "../Textarea-DskjTCcz.js";
5
+ import { n as i } from "../locale-CZddM-tH.js";
6
6
  import "./style.js";
7
7
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as _, openBlock as v, ref as y, renderSlot as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, useAttrs as w, useSlots as T, watch as E, withCtx as D, withKeys as O, withModifiers as k } from "vue";
8
8
  //#region src/components/Typography/decoration.ts
@@ -1,4 +1,4 @@
1
- import { l as e, u as t } from "./config-CB_TiIvg.js";
1
+ import { l as e, u as t } from "./config-BEpyhJi3.js";
2
2
  import { computed as n, toValue as r } from "vue";
3
3
  //#region src/theme/motionPresets.ts
4
4
  var i = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "morya-ui",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.4.3",
5
5
  "description": "Open-source Vue 3 component library with design tokens, themes, and interactive docs.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://morya-space.github.io/morya-ui/",