rappel-ui 1.0.29 → 1.0.30

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 (139) hide show
  1. package/cjs/components/button/src/constants.d.ts +1 -1
  2. package/cjs/components/button/src/constants.js +1 -1
  3. package/cjs/components/message/src/create-message.js +1 -1
  4. package/cjs/components/message/src/message.vue.d.ts +5 -3
  5. package/cjs/components/message/src/message.vue_vue_type_script_setup_true_lang.js +6 -6
  6. package/cjs/components/message/src/types.d.ts +5 -2
  7. package/cjs/components/popconfirm/index.d.ts +6 -6
  8. package/cjs/components/popconfirm/src/popconfirm.vue.d.ts +6 -6
  9. package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/cjs/components/svg-icon/src/types.d.ts +1 -0
  11. package/cjs/index.d.ts +239 -71
  12. package/cjs/index.js +1 -1
  13. package/cjs/svg-icons/create-icon.d.ts +2 -2
  14. package/cjs/svg-icons/create-icon.js +1 -1
  15. package/cjs/svg-icons/get-async-icon.d.ts +3 -0
  16. package/cjs/svg-icons/get-async-icon.js +1 -0
  17. package/cjs/svg-icons/icon-names.d.ts +1 -1
  18. package/cjs/svg-icons/icon-names.js +1 -1
  19. package/cjs/svg-icons/index.d.ts +5 -3
  20. package/cjs/svg-icons/index.js +1 -1
  21. package/cjs/svg-icons/src/arrow-backward.d.ts +2 -2
  22. package/cjs/svg-icons/src/arrow-down.d.ts +2 -2
  23. package/cjs/svg-icons/src/arrow-downward.d.ts +2 -2
  24. package/cjs/svg-icons/src/arrow-forward.d.ts +2 -2
  25. package/cjs/svg-icons/src/arrow-left.d.ts +2 -2
  26. package/cjs/svg-icons/src/arrow-right.d.ts +2 -2
  27. package/cjs/svg-icons/src/arrow-up.d.ts +2 -2
  28. package/cjs/svg-icons/src/arrow-upward.d.ts +2 -2
  29. package/cjs/svg-icons/src/check-circle.d.ts +2 -2
  30. package/cjs/svg-icons/src/check-fill.d.ts +43 -0
  31. package/cjs/svg-icons/src/check-fill.js +1 -0
  32. package/cjs/svg-icons/src/check.d.ts +2 -2
  33. package/cjs/svg-icons/src/close-circle.d.ts +2 -2
  34. package/cjs/svg-icons/src/close-fill.d.ts +43 -0
  35. package/cjs/svg-icons/src/close-fill.js +1 -0
  36. package/cjs/svg-icons/src/close-short.d.ts +2 -2
  37. package/cjs/svg-icons/src/close-short.js +1 -1
  38. package/cjs/svg-icons/src/close.d.ts +2 -2
  39. package/cjs/svg-icons/src/copy-closure.d.ts +2 -2
  40. package/cjs/svg-icons/src/copy.d.ts +2 -2
  41. package/cjs/svg-icons/src/delete.d.ts +2 -2
  42. package/cjs/svg-icons/src/exclam-fill.d.ts +43 -0
  43. package/cjs/svg-icons/src/exclam-fill.js +1 -0
  44. package/cjs/svg-icons/src/exclam.d.ts +2 -2
  45. package/cjs/svg-icons/src/help.d.ts +2 -2
  46. package/cjs/svg-icons/src/info-circle.d.ts +2 -2
  47. package/cjs/svg-icons/src/info-circle.js +1 -1
  48. package/cjs/svg-icons/src/info-fill.d.ts +43 -0
  49. package/cjs/svg-icons/src/info-fill.js +1 -0
  50. package/cjs/svg-icons/src/loading.d.ts +2 -2
  51. package/cjs/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
  52. package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
  53. package/cjs/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
  54. package/cjs/svg-icons/src/more-dot-circle.d.ts +2 -2
  55. package/cjs/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
  56. package/cjs/svg-icons/src/more-dot-square.d.ts +2 -2
  57. package/cjs/svg-icons/src/more-line.d.ts +2 -2
  58. package/cjs/svg-icons/src/search-bold.d.ts +2 -2
  59. package/cjs/svg-icons/src/search.d.ts +2 -2
  60. package/cjs/svg-icons/src/star-fill.d.ts +2 -2
  61. package/cjs/svg-icons/src/star-fill.js +1 -1
  62. package/cjs/svg-icons/src/star.d.ts +2 -2
  63. package/cjs/svg-icons/types.d.ts +2 -0
  64. package/cjs/utils/util.d.ts +3 -3
  65. package/es/components/button/src/constants.d.ts +1 -1
  66. package/es/components/button/src/constants.mjs +1 -0
  67. package/es/components/message/src/create-message.mjs +16 -15
  68. package/es/components/message/src/message.vue.d.ts +5 -3
  69. package/es/components/message/src/message.vue_vue_type_script_setup_true_lang.mjs +145 -102
  70. package/es/components/message/src/types.d.ts +5 -2
  71. package/es/components/popconfirm/index.d.ts +6 -6
  72. package/es/components/popconfirm/src/popconfirm.vue.d.ts +6 -6
  73. package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +6 -3
  74. package/es/components/svg-icon/src/types.d.ts +1 -0
  75. package/es/index.d.ts +239 -71
  76. package/es/index.mjs +40 -35
  77. package/es/svg-icons/create-icon.d.ts +2 -2
  78. package/es/svg-icons/create-icon.mjs +3 -2
  79. package/es/svg-icons/get-async-icon.d.ts +3 -0
  80. package/es/svg-icons/get-async-icon.mjs +50 -0
  81. package/es/svg-icons/icon-names.d.ts +1 -1
  82. package/es/svg-icons/icon-names.mjs +1 -1
  83. package/es/svg-icons/index.d.ts +5 -3
  84. package/es/svg-icons/index.mjs +77 -109
  85. package/es/svg-icons/src/arrow-backward.d.ts +2 -2
  86. package/es/svg-icons/src/arrow-down.d.ts +2 -2
  87. package/es/svg-icons/src/arrow-downward.d.ts +2 -2
  88. package/es/svg-icons/src/arrow-forward.d.ts +2 -2
  89. package/es/svg-icons/src/arrow-left.d.ts +2 -2
  90. package/es/svg-icons/src/arrow-right.d.ts +2 -2
  91. package/es/svg-icons/src/arrow-up.d.ts +2 -2
  92. package/es/svg-icons/src/arrow-upward.d.ts +2 -2
  93. package/es/svg-icons/src/check-circle.d.ts +2 -2
  94. package/es/svg-icons/src/check-fill.d.ts +43 -0
  95. package/es/svg-icons/src/check-fill.mjs +8 -0
  96. package/es/svg-icons/src/check.d.ts +2 -2
  97. package/es/svg-icons/src/close-circle.d.ts +2 -2
  98. package/es/svg-icons/src/close-fill.d.ts +43 -0
  99. package/es/svg-icons/src/close-fill.mjs +9 -0
  100. package/es/svg-icons/src/close-short.d.ts +2 -2
  101. package/es/svg-icons/src/close-short.mjs +1 -1
  102. package/es/svg-icons/src/close.d.ts +2 -2
  103. package/es/svg-icons/src/copy-closure.d.ts +2 -2
  104. package/es/svg-icons/src/copy.d.ts +2 -2
  105. package/es/svg-icons/src/delete.d.ts +2 -2
  106. package/es/svg-icons/src/exclam-fill.d.ts +43 -0
  107. package/es/svg-icons/src/exclam-fill.mjs +9 -0
  108. package/es/svg-icons/src/exclam.d.ts +2 -2
  109. package/es/svg-icons/src/help.d.ts +2 -2
  110. package/es/svg-icons/src/info-circle.d.ts +2 -2
  111. package/es/svg-icons/src/info-circle.mjs +1 -1
  112. package/es/svg-icons/src/info-fill.d.ts +43 -0
  113. package/es/svg-icons/src/info-fill.mjs +9 -0
  114. package/es/svg-icons/src/loading.d.ts +2 -2
  115. package/es/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
  116. package/es/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
  117. package/es/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
  118. package/es/svg-icons/src/more-dot-circle.d.ts +2 -2
  119. package/es/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
  120. package/es/svg-icons/src/more-dot-square.d.ts +2 -2
  121. package/es/svg-icons/src/more-line.d.ts +2 -2
  122. package/es/svg-icons/src/search-bold.d.ts +2 -2
  123. package/es/svg-icons/src/search.d.ts +2 -2
  124. package/es/svg-icons/src/star-fill.d.ts +2 -2
  125. package/es/svg-icons/src/star-fill.mjs +1 -1
  126. package/es/svg-icons/src/star.d.ts +2 -2
  127. package/es/svg-icons/types.d.ts +2 -0
  128. package/es/utils/util.d.ts +3 -3
  129. package/package.json +2 -2
  130. package/theme-chalk/base.css +1 -1
  131. package/theme-chalk/index.css +1 -1
  132. package/theme-chalk/re-button.css +1 -1
  133. package/theme-chalk/re-message.css +1 -1
  134. package/theme-chalk/root-vars.css +1 -1
  135. package/theme-chalk/src/css-vars/_button.scss +1 -1
  136. package/theme-chalk/src/css-vars/_colors.scss +19 -16
  137. package/theme-chalk/src/css-vars/_message.scss +33 -26
  138. package/theme-chalk/src/message.scss +7 -5
  139. package/theme-chalk/src/mixins/_message.scss +30 -11
@@ -1,20 +1,28 @@
1
1
  import { toPx as e } from "../../../utils/util.mjs";
2
2
  import "../../../utils/index.mjs";
3
3
  import { useNamespace as t } from "../../../composables/use-namespace/index.mjs";
4
- import { useZIndex as n } from "../../../composables/use-z-index/index.mjs";
5
- import { useTheme as r } from "../../../composables/use-theme/index.mjs";
4
+ import { useZIndex as ee } from "../../../composables/use-z-index/index.mjs";
5
+ import { useTheme as te } from "../../../composables/use-theme/index.mjs";
6
6
  import "../../../composables/index.mjs";
7
- import { ReTransition as i } from "../../transition/index.mjs";
8
- import { verticalPlacement as a } from "./constants.mjs";
9
- import { useMessageEmits as o } from "./use-message-emit.mjs";
10
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, defineComponent as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onMounted as v, onUnmounted as y, openBlock as b, ref as x, renderSlot as S, resolveDynamicComponent as C, toDisplayString as w, unref as T, useModel as E, watch as D, withCtx as O } from "vue";
11
- import { CloseShort as k, InfoCircle as A } from "@rappel-ui/svg-icons";
7
+ import { ReTransition as ne } from "../../transition/index.mjs";
8
+ import { verticalPlacement as n } from "./constants.mjs";
9
+ import { useMessageEmits as re } from "./use-message-emit.mjs";
10
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, defineComponent as c, isVNode as l, mergeModels as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as ie, onMounted as ae, onUnmounted as oe, openBlock as m, ref as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as se, unref as v, useModel as ce, useTemplateRef as y, watch as b, withCtx as le } from "vue";
11
+ import { useElementHover as ue } from "@vueuse/core";
12
+ import { CheckFill as x, CloseFill as S, CloseShort as C, ExclamFill as de, InfoFill as w } from "@rappel-ui/svg-icons";
12
13
  //#region packages/components/message/src/message.vue?vue&type=script&setup=true&lang.ts
13
- var j = ["data-placement"], M = ["innerHTML"], N = f({
14
+ var fe = ["data-placement"], pe = ["innerHTML"], T = c({
14
15
  name: "ReMessage",
15
16
  __name: "message",
16
- props: p({
17
- content: { default: "" },
17
+ props: u({
18
+ content: {
19
+ type: [
20
+ String,
21
+ Object,
22
+ Function
23
+ ],
24
+ default: ""
25
+ },
18
26
  isHtml: {
19
27
  type: Boolean,
20
28
  default: !1
@@ -26,7 +34,11 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
26
34
  default: !1
27
35
  },
28
36
  type: { default: "" },
29
- offset: { default: 20 },
37
+ plain: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ offset: { default: 16 },
30
42
  zIndex: { default: () => void 0 },
31
43
  width: { default: () => void 0 },
32
44
  height: { default: () => void 0 },
@@ -34,12 +46,16 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
34
46
  maxHeight: { default: () => void 0 },
35
47
  floatingClass: { default: "" },
36
48
  placement: { default: "top" },
37
- closeIcon: { default: () => k },
49
+ closeIcon: { default: () => C },
38
50
  showClose: {
39
51
  type: Boolean,
40
52
  default: !1
41
53
  },
42
- icon: { default: () => A },
54
+ autoClose: {
55
+ type: Boolean,
56
+ default: !0
57
+ },
58
+ icon: { default: () => void 0 },
43
59
  showIcon: {
44
60
  type: Boolean,
45
61
  default: !0
@@ -69,7 +85,7 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
69
85
  },
70
86
  visibleModifiers: {}
71
87
  }),
72
- emits: p([
88
+ emits: u([
73
89
  "iconUpdated",
74
90
  "beforeEnter",
75
91
  "enter",
@@ -80,36 +96,49 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
80
96
  "leaveCancelled",
81
97
  "afterLeave"
82
98
  ], ["update:visible"]),
83
- setup(f, { expose: p, emit: k }) {
84
- let { beforeEnter: A, enter: N, afterEnter: P, beforeLeave: F, leave: I, afterLeave: L } = o(k), { ns: R, n: z, nm: B, is: V } = t("message"), { currentTheme: H } = r(f.theme, f.reverseTheme), U = c(() => {
99
+ setup(c, { expose: u, emit: C }) {
100
+ let T = C, E = i(() => {
101
+ if (l(c.content)) return c.content;
102
+ if (typeof c.content == "function") {
103
+ let e = c.content();
104
+ return l(e) ? e : String(e);
105
+ }
106
+ return !1;
107
+ }), { beforeEnter: D, enter: O, afterEnter: k, beforeLeave: A, leave: j, afterLeave: M } = re(T), N = y("floatingRef"), { ns: P, n: F, nm: I, is: L } = t("message"), { currentTheme: R } = te(c.theme, c.reverseTheme), z = i(() => {
85
108
  var e;
86
- return (e = f.placement) == null || (e = e.split("-")) == null ? void 0 : e[0];
87
- }), W = c(() => {
109
+ return (e = c.placement) == null || (e = e.split("-")) == null ? void 0 : e[0];
110
+ }), B = i(() => {
88
111
  var e;
89
- return (e = f.placement) == null || (e = e.split("-")) == null ? void 0 : e[1];
90
- }), G = x(f.offset);
91
- D(() => f.offset, (e) => {
92
- G.value = e;
112
+ return (e = c.placement) == null || (e = e.split("-")) == null ? void 0 : e[1];
113
+ }), V = i(() => c.icon || {
114
+ success: x,
115
+ warning: de,
116
+ error: S,
117
+ info: w,
118
+ primary: w
119
+ }[c.type] || w), H = h(c.offset);
120
+ b(() => c.offset, (e) => {
121
+ H.value = e;
93
122
  });
94
- let K = (e) => {
95
- G.value = e;
96
- }, q = c(() => [{
97
- width: e(f.width),
98
- height: e(f.height),
99
- maxWidth: e(f.maxWidth),
100
- maxHeight: e(f.maxHeight),
101
- zIndex: Y.value,
102
- [a.includes(f.placement) ? W.value : U.value]: e(G.value),
123
+ let me = (e) => {
124
+ H.value = e;
125
+ }, he = i(() => [{
126
+ width: e(c.width),
127
+ height: e(c.height),
128
+ maxWidth: e(c.maxWidth),
129
+ maxHeight: e(c.maxHeight),
130
+ zIndex: W.value,
131
+ [n.includes(c.placement) ? B.value : z.value]: e(H.value),
103
132
  position: "fixed",
104
- transition: `opacity ${f.cssDuration / 2}ms,
105
- transform ${f.cssDuration}ms,
106
- bottom ${f.cssDuration}ms,
107
- top ${f.cssDuration}ms,
108
- left ${f.cssDuration}ms,
109
- right ${f.cssDuration}ms`
110
- }]), J = E(f, "visible"), Y = x(0), { zIndex: X } = n(), { stop: Z } = D(J, (e) => {
111
- e && (Y.value = f.zIndex || X.value);
112
- }), Q = [
133
+ transition: `opacity ${c.cssDuration / 2}ms,
134
+ transform ${c.cssDuration}ms,
135
+ bottom ${c.cssDuration}ms,
136
+ top ${c.cssDuration}ms,
137
+ left ${c.cssDuration}ms,
138
+ right ${c.cssDuration}ms`
139
+ }]), U = ce(c, "visible"), W = h(0), { zIndex: ge } = ee(), { stop: _e } = b(U, (e) => {
140
+ e && (W.value = c.zIndex || ge.value);
141
+ }), G = [
113
142
  "top",
114
143
  "bottom",
115
144
  "left",
@@ -122,86 +151,100 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
122
151
  leaveFrom: `${t}-leave-from`,
123
152
  leaveActive: `${t}-leave-active`,
124
153
  leaveTo: `${t}-leave-to`
125
- }, e), {}), $ = () => {
126
- J.value = !1;
127
- let e = null;
128
- h(() => {
129
- J.value = !0, e && (clearTimeout(e), e = null), e = setTimeout(() => {
130
- J.value = !1, e && (clearTimeout(e), e = null);
131
- }, parseFloat(String(f.cssDuration)) + parseFloat(String(f.stayDuration)));
154
+ }, e), {}), ve = () => {
155
+ Z();
156
+ }, K = ue(N), { stop: q } = b(K, (e) => e ? ye() : Q()), J, Y = 0, X = parseFloat(String(c.cssDuration)) + parseFloat(String(c.stayDuration)), Z = () => {
157
+ U.value = !1, clearTimeout(J), J = void 0;
158
+ }, Q = () => {
159
+ if (X <= 0) {
160
+ Z();
161
+ return;
162
+ }
163
+ Y = Date.now(), J = setTimeout(Z, X);
164
+ }, ye = () => {
165
+ J && (clearTimeout(J), J = void 0, X -= Date.now() - Y);
166
+ }, $ = () => {
167
+ U.value = !1, f(() => {
168
+ if (U.value = !0, !c.autoClose) return q();
169
+ Q();
132
170
  });
133
171
  };
134
- return v(() => {
172
+ return ae(() => {
135
173
  $();
136
- }), y(() => {
137
- Z();
138
- }), p({
174
+ }), oe(() => {
175
+ _e(), q(), Z(), K.value = !1;
176
+ }), u({
139
177
  show: $,
140
- setOffset: K,
141
- close: () => {
142
- J.value = !1;
143
- }
144
- }), (e, t) => (b(), l(T(i), m({
145
- teleported: f.teleported,
146
- "append-to": f.appendTo,
147
- transition: f.transition,
148
- "css-duration": f.cssDuration,
149
- "css-transition": f.cssTransition,
150
- "enter-from-class": T(Q)[U.value].enterFrom,
151
- "enter-active-class": T(Q)[U.value].enterActive,
152
- "enter-to-class": T(Q)[U.value].enterTo,
153
- "leave-from-class": T(Q)[U.value].leaveFrom,
154
- "leave-active-class": T(Q)[U.value].leaveActive,
155
- "leave-to-class": T(Q)[U.value].leaveTo
178
+ setOffset: me,
179
+ close: ve,
180
+ isHovered: K,
181
+ zIndex: W.value
182
+ }), (e, t) => (m(), a(v(ne), d({
183
+ teleported: c.teleported,
184
+ "append-to": c.appendTo,
185
+ transition: c.transition,
186
+ "css-duration": c.cssDuration,
187
+ "css-transition": c.cssTransition,
188
+ "enter-from-class": v(G)[z.value].enterFrom,
189
+ "enter-active-class": v(G)[z.value].enterActive,
190
+ "enter-to-class": v(G)[z.value].enterTo,
191
+ "leave-from-class": v(G)[z.value].leaveFrom,
192
+ "leave-active-class": v(G)[z.value].leaveActive,
193
+ "leave-to-class": v(G)[z.value].leaveTo
156
194
  }, e.$attrs, {
157
- onBeforeEnter: T(A),
158
- onEnter: T(N),
159
- onAfterEnter: T(P),
160
- onBeforeLeave: T(F),
161
- onLeave: T(I),
162
- onAfterLeave: T(L)
195
+ onBeforeEnter: v(D),
196
+ onEnter: v(O),
197
+ onAfterEnter: v(k),
198
+ onBeforeLeave: v(A),
199
+ onLeave: v(j),
200
+ onAfterLeave: v(M)
163
201
  }), {
164
- default: O(() => [J.value ? (b(), d("div", {
202
+ default: le(() => [U.value ? (m(), s("div", {
165
203
  key: 0,
166
- ref: "floatingRef",
167
- style: _(q.value),
168
- "data-placement": f.placement,
169
- class: g([
170
- T(z)(),
171
- T(B)(f.type),
172
- T(V)(T(H), !!T(H)),
173
- f.floatingClass
204
+ ref_key: "floatingRef",
205
+ ref: N,
206
+ style: ie(he.value),
207
+ "data-placement": c.placement,
208
+ class: p([
209
+ v(F)(),
210
+ v(I)(c.type),
211
+ v(L)(v(R), !!v(R)),
212
+ v(L)("plain", !!c.plain),
213
+ c.floatingClass
174
214
  ])
175
215
  }, [
176
- S(e.$slots, "icon", {}, () => [f.showIcon ? (b(), d(s, { key: 0 }, [typeof f.icon == "string" ? (b(), d("i", {
216
+ g(e.$slots, "icon", {}, () => [c.showIcon ? (m(), s(r, { key: 0 }, [typeof V.value == "string" ? (m(), s("i", {
177
217
  key: 0,
178
- class: g([T(R)("icon"), f.icon]),
218
+ class: p([v(P)("icon"), V.value]),
179
219
  "aria-hidden": "true"
180
- }, null, 2)) : (b(), l(C(f.icon), {
220
+ }, null, 2)) : (m(), a(_(V.value), {
181
221
  key: 1,
182
- class: g([T(R)("icon")]),
222
+ class: p([v(P)("icon")]),
183
223
  "aria-hidden": "true"
184
- }, null, 8, ["class"]))], 64)) : u("", !0)]),
185
- f.isHtml ? (b(), d("span", {
224
+ }, null, 8, ["class"]))], 64)) : o("", !0)]),
225
+ c.isHtml && typeof c.content == "string" ? (m(), s("span", {
186
226
  key: 0,
187
- class: g([T(R)("content")]),
188
- innerHTML: f.content
189
- }, null, 10, M)) : (b(), d("span", {
227
+ class: p([v(P)("content")]),
228
+ innerHTML: c.content
229
+ }, null, 10, pe)) : E.value ? (m(), a(_(E.value), {
190
230
  key: 1,
191
- class: g([T(R)("content")])
192
- }, w(f.content), 3)),
193
- S(e.$slots, "close", {}, () => [f.showClose ? (b(), d(s, { key: 0 }, [typeof f.closeIcon == "string" ? (b(), d("i", {
231
+ class: p([v(P)("content")])
232
+ }, null, 8, ["class"])) : (m(), s("span", {
233
+ key: 2,
234
+ class: p([v(P)("content")])
235
+ }, se(c.content), 3)),
236
+ g(e.$slots, "close", {}, () => [c.showClose ? (m(), s(r, { key: 0 }, [typeof c.closeIcon == "string" ? (m(), s("i", {
194
237
  key: 0,
195
- class: g([T(R)("close"), f.closeIcon]),
238
+ class: p([v(P)("close"), c.closeIcon]),
196
239
  "aria-hidden": "true",
197
- onClick: t[0] || (t[0] = (e) => J.value = !1)
198
- }, null, 2)) : (b(), l(C(f.closeIcon), {
240
+ onClick: t[0] || (t[0] = (e) => U.value = !1)
241
+ }, null, 2)) : (m(), a(_(c.closeIcon), {
199
242
  key: 1,
200
- class: g([T(R)("close")]),
243
+ class: p([v(P)("close")]),
201
244
  "aria-hidden": "true",
202
- onClick: t[1] || (t[1] = (e) => J.value = !1)
203
- }, null, 8, ["class"]))], 64)) : u("", !0)])
204
- ], 14, j)) : u("", !0)]),
245
+ onClick: t[1] || (t[1] = (e) => U.value = !1)
246
+ }, null, 8, ["class"]))], 64)) : o("", !0)])
247
+ ], 14, fe)) : o("", !0)]),
205
248
  _: 3
206
249
  }, 16, [
207
250
  "teleported",
@@ -225,4 +268,4 @@ var j = ["data-placement"], M = ["innerHTML"], N = f({
225
268
  }
226
269
  });
227
270
  //#endregion
228
- export { N as default };
271
+ export { T as default };
@@ -1,4 +1,4 @@
1
- import { createVNode, Component } from 'vue';
1
+ import { createVNode, Component, VNode } from 'vue';
2
2
  import { TransitionEmits, TransitionProps } from '../../transition';
3
3
  import { Placement } from '../../tooltip';
4
4
  import { Theme, MaybeClass } from '../../../types';
@@ -12,12 +12,13 @@ export type CreateMessageType = CreateMessageFn & MessageShortcuts & {
12
12
  closeAll: () => void;
13
13
  };
14
14
  export interface MessageOptions extends TransitionProps {
15
- content?: string | HTMLElement;
15
+ content?: string | HTMLElement | VNode | (() => VNode);
16
16
  isHtml?: boolean;
17
17
  stayDuration?: number;
18
18
  theme?: Theme;
19
19
  reverseTheme?: boolean;
20
20
  type?: (typeof messageTypes)[number];
21
+ plain?: boolean;
21
22
  offset?: number | string;
22
23
  zIndex?: number;
23
24
  width?: number | string;
@@ -28,6 +29,7 @@ export interface MessageOptions extends TransitionProps {
28
29
  placement?: MessagePlacement;
29
30
  closeIcon?: string | Component;
30
31
  showClose?: boolean;
32
+ autoClose?: boolean;
31
33
  icon?: string | Component;
32
34
  showIcon?: boolean;
33
35
  onClose?: (el: HTMLElement) => void;
@@ -42,6 +44,7 @@ export interface MessageInstance {
42
44
  vnode: ReturnType<typeof createVNode>;
43
45
  props: MessageOptions;
44
46
  placement?: MessagePlacement;
47
+ actualOffset: number;
45
48
  close: () => void;
46
49
  show: () => void;
47
50
  }
@@ -94,12 +94,12 @@ export declare const RePopconfirm: {
94
94
  }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
95
95
  $slots: {
96
96
  header?: (props: {
97
- icon: string | Component | undefined;
97
+ icon: string | Component | null | undefined;
98
98
  title: string;
99
99
  }) => any;
100
100
  } & {
101
101
  icon?: (props: {
102
- icon: string | Component | undefined;
102
+ icon: string | Component | null | undefined;
103
103
  }) => any;
104
104
  } & {
105
105
  title?: (props: {
@@ -113,18 +113,18 @@ export declare const RePopconfirm: {
113
113
  footer?: (props: {
114
114
  cancel: (e: MouseEvent) => void;
115
115
  cancelSize: "" | "small" | "mini" | "large";
116
- cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
116
+ cancelType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
117
117
  cancelText: string;
118
118
  confirm: (e: MouseEvent) => void;
119
119
  confirmSize: "" | "small" | "mini" | "large";
120
- confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
120
+ confirmType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
121
121
  confirmText: string;
122
122
  }) => any;
123
123
  } & {
124
124
  cancel?: (props: {
125
125
  cancel: (e: MouseEvent) => void;
126
126
  cancelSize: "" | "small" | "mini" | "large";
127
- cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
127
+ cancelType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
128
128
  cancelText: string;
129
129
  }) => any;
130
130
  } & {
@@ -136,7 +136,7 @@ export declare const RePopconfirm: {
136
136
  confirm?: (props: {
137
137
  confirm: (e: MouseEvent) => void;
138
138
  confirmSize: "" | "small" | "mini" | "large";
139
- confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
139
+ confirmType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
140
140
  confirmText: string;
141
141
  }) => any;
142
142
  };
@@ -6,10 +6,10 @@ type __VLS_ModelProps = {
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare var __VLS_24: {
9
- icon: string | Component | undefined;
9
+ icon: string | Component | null | undefined;
10
10
  title: string;
11
11
  }, __VLS_26: {
12
- icon: string | Component | undefined;
12
+ icon: string | Component | null | undefined;
13
13
  }, __VLS_33: {
14
14
  title: string;
15
15
  }, __VLS_35: {
@@ -17,16 +17,16 @@ declare var __VLS_24: {
17
17
  }, __VLS_37: {
18
18
  cancel: (e: MouseEvent) => void;
19
19
  cancelSize: "" | "small" | "mini" | "large";
20
- cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
20
+ cancelType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
21
21
  cancelText: string;
22
22
  confirm: (e: MouseEvent) => void;
23
23
  confirmSize: "" | "small" | "mini" | "large";
24
- confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
24
+ confirmType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
25
25
  confirmText: string;
26
26
  }, __VLS_39: {
27
27
  cancel: (e: MouseEvent) => void;
28
28
  cancelSize: "" | "small" | "mini" | "large";
29
- cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
29
+ cancelType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
30
30
  cancelText: string;
31
31
  }, __VLS_49: {
32
32
  cancel: (e: MouseEvent) => void;
@@ -34,7 +34,7 @@ declare var __VLS_24: {
34
34
  }, __VLS_51: {
35
35
  confirm: (e: MouseEvent) => void;
36
36
  confirmSize: "" | "small" | "mini" | "large";
37
- confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
37
+ confirmType: "" | "primary" | "success" | "warning" | "danger" | "error" | "info";
38
38
  confirmText: string;
39
39
  };
40
40
  type __VLS_Slots = {} & {
@@ -11,7 +11,8 @@ var l = [
11
11
  ], u = [
12
12
  "d",
13
13
  "name",
14
- "fill"
14
+ "fill",
15
+ "fill-rule"
15
16
  ], d = a({
16
17
  name: "ReSvgIcon",
17
18
  __name: "svg-icon",
@@ -20,6 +21,7 @@ var l = [
20
21
  path: { default: "" },
21
22
  size: { default: 16 },
22
23
  fill: { default: () => void 0 },
24
+ fillRule: { default: () => void 0 },
23
25
  color: { default: "currentColor" },
24
26
  spin: {
25
27
  type: Boolean,
@@ -37,13 +39,14 @@ var l = [
37
39
  "stroke-linecap": "round",
38
40
  "stroke-linejoin": "round",
39
41
  "stroke-width": "2",
40
- stroke: a.color,
42
+ stroke: a.fill ? void 0 : a.color,
41
43
  xmlns: "http://www.w3.org/2000/svg",
42
44
  "aria-hidden": "true"
43
45
  }, [i("path", {
44
46
  d: a.path,
45
47
  name: a.name,
46
- fill: a.fill
48
+ fill: a.fill,
49
+ "fill-rule": a.fillRule
47
50
  }, null, 8, u)], 10, l));
48
51
  }
49
52
  });
@@ -3,6 +3,7 @@ export interface SvgIconProps {
3
3
  path: string;
4
4
  size?: string | number;
5
5
  fill?: string;
6
+ fillRule?: 'inherit' | 'nonzero' | 'evenodd';
6
7
  color?: string;
7
8
  spin?: boolean;
8
9
  }