@indielayer/ui 1.9.3 → 1.10.0

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 (95) hide show
  1. package/docs/components/menu/DocsMenu.vue +1 -0
  2. package/docs/pages/component/form/usage.vue +2 -0
  3. package/docs/pages/component/menu/usage.vue +2 -0
  4. package/docs/pages/component/select/index.vue +7 -0
  5. package/docs/pages/component/select/multiple.vue +42 -0
  6. package/docs/pages/component/select/usage.vue +8 -12
  7. package/docs/pages/component/table/virtual.vue +19 -6
  8. package/docs/pages/component/toggle/index.vue +1 -1
  9. package/docs/pages/component/tooltip/index.vue +1 -1
  10. package/docs/pages/component/upload/index.vue +29 -0
  11. package/docs/pages/component/upload/usage.vue +115 -0
  12. package/docs/search/components.json +1 -1
  13. package/lib/common/icons.d.ts +2 -0
  14. package/lib/common/icons.js +17 -15
  15. package/lib/components/checkbox/Checkbox.vue2.js +9 -9
  16. package/lib/components/datepicker/Datepicker.vue.d.ts +4 -4
  17. package/lib/components/datepicker/Datepicker.vue.js +1 -1
  18. package/lib/components/drawer/Drawer.vue.js +1 -17
  19. package/lib/components/form/Form.vue.d.ts +4 -4
  20. package/lib/components/form/Form.vue.js +34 -34
  21. package/lib/components/formGroup/FormGroup.vue.d.ts +1 -1
  22. package/lib/components/formGroup/FormGroup.vue.js +39 -37
  23. package/lib/components/index.d.ts +1 -0
  24. package/lib/components/index.js +68 -66
  25. package/lib/components/label/theme/Label.base.theme.js +7 -7
  26. package/lib/components/menu/Menu.vue.d.ts +2 -0
  27. package/lib/components/menu/MenuItem.vue.d.ts +15 -3
  28. package/lib/components/menu/MenuItem.vue.js +1 -1
  29. package/lib/components/menu/MenuItem.vue2.js +43 -37
  30. package/lib/components/modal/Modal.vue.d.ts +4 -4
  31. package/lib/components/modal/Modal.vue.js +38 -34
  32. package/lib/components/notifications/Notifications.vue.d.ts +15 -0
  33. package/lib/components/notifications/Notifications.vue.js +149 -127
  34. package/lib/components/progress/Progress.vue.d.ts +4 -4
  35. package/lib/components/progress/Progress.vue.js +7 -7
  36. package/lib/components/scroll/Scroll.vue2.js +1 -1
  37. package/lib/components/select/Select.vue.d.ts +43 -1
  38. package/lib/components/select/Select.vue.js +358 -258
  39. package/lib/components/select/theme/Select.base.theme.js +1 -0
  40. package/lib/components/tab/Tab.vue.js +1 -1
  41. package/lib/components/tab/TabGroup.vue.js +2 -2
  42. package/lib/components/table/TableCell.vue.d.ts +1 -1
  43. package/lib/components/tag/Tag.vue.js +23 -21
  44. package/lib/components/textarea/Textarea.vue.js +1 -1
  45. package/lib/components/upload/Upload.vue.d.ts +195 -0
  46. package/lib/components/upload/Upload.vue.js +264 -0
  47. package/lib/components/upload/Upload.vue2.js +4 -0
  48. package/lib/components/upload/__tests__/Upload.spec.d.ts +1 -0
  49. package/lib/components/upload/index.d.ts +2 -0
  50. package/lib/components/upload/theme/Upload.base.theme.d.ts +3 -0
  51. package/lib/components/upload/theme/Upload.base.theme.js +8 -0
  52. package/lib/components/upload/theme/Upload.carbon.theme.d.ts +3 -0
  53. package/lib/components/upload/theme/Upload.carbon.theme.js +5 -0
  54. package/lib/composables/useVirtualList.js +56 -53
  55. package/lib/index.js +43 -41
  56. package/lib/index.umd.js +4 -4
  57. package/lib/node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +501 -0
  58. package/lib/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +96 -0
  59. package/lib/theme.d.ts +2 -1
  60. package/lib/themes/base/components.d.ts +1 -0
  61. package/lib/themes/base/components.js +23 -21
  62. package/lib/themes/carbon/components.d.ts +1 -0
  63. package/lib/themes/carbon/components.js +23 -21
  64. package/lib/version.d.ts +1 -1
  65. package/lib/version.js +1 -1
  66. package/package.json +3 -3
  67. package/src/common/icons.ts +2 -0
  68. package/src/components/checkbox/Checkbox.vue +5 -5
  69. package/src/components/drawer/Drawer.vue +0 -16
  70. package/src/components/form/Form.vue +10 -4
  71. package/src/components/formGroup/FormGroup.vue +2 -0
  72. package/src/components/index.ts +1 -0
  73. package/src/components/label/theme/Label.base.theme.ts +7 -5
  74. package/src/components/menu/Menu.vue +2 -0
  75. package/src/components/menu/MenuItem.vue +8 -6
  76. package/src/components/modal/Modal.vue +6 -1
  77. package/src/components/notifications/Notifications.vue +34 -4
  78. package/src/components/progress/Progress.vue +2 -2
  79. package/src/components/select/Select.vue +165 -67
  80. package/src/components/select/theme/Select.base.theme.ts +2 -0
  81. package/src/components/tag/Tag.vue +11 -9
  82. package/src/components/upload/Upload.vue +365 -0
  83. package/src/components/upload/__tests__/Upload.spec.ts +11 -0
  84. package/src/components/upload/index.ts +2 -0
  85. package/src/components/upload/theme/Upload.base.theme.ts +9 -0
  86. package/src/components/upload/theme/Upload.carbon.theme.ts +7 -0
  87. package/src/composables/useInputtable.ts +1 -1
  88. package/src/composables/useVirtualList.ts +8 -5
  89. package/src/theme.ts +2 -0
  90. package/src/themes/base/components.ts +1 -0
  91. package/src/themes/carbon/components.ts +1 -0
  92. package/src/version.ts +1 -1
  93. package/volar.d.ts +1 -0
  94. package/lib/node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +0 -412
  95. package/lib/node_modules/.pnpm/@vueuse_shared@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +0 -90
@@ -1,9 +1,9 @@
1
- import { defineComponent as z, ref as p, computed as d, onMounted as S, watch as k, openBlock as l, createBlock as i, resolveDynamicComponent as x, mergeProps as N, unref as s, withCtx as R, createElementBlock as r, renderSlot as n, createCommentVNode as u, createTextVNode as I, toDisplayString as M, createElementVNode as O, Fragment as P } from "vue";
2
- import { useMutationObserver as j } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
1
+ import { defineComponent as z, ref as k, computed as g, onMounted as N, watch as h, openBlock as l, createBlock as i, resolveDynamicComponent as R, mergeProps as I, unref as s, withCtx as M, createElementBlock as r, renderSlot as n, createTextVNode as u, toDisplayString as c, createCommentVNode as f, createElementVNode as O, Fragment as P } from "vue";
2
+ import { useMutationObserver as j } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
3
  import { useColors as w } from "../../composables/useColors.js";
4
- import { useCommon as h } from "../../composables/useCommon.js";
4
+ import { useCommon as $ } from "../../composables/useCommon.js";
5
5
  import { useTheme as D } from "../../composables/useTheme.js";
6
- import g from "../icon/Icon.vue.js";
6
+ import y from "../icon/Icon.vue.js";
7
7
  import F from "../spinner/Spinner.vue.js";
8
8
  const T = {
9
9
  key: 0,
@@ -12,8 +12,8 @@ const T = {
12
12
  key: 2,
13
13
  class: "flex-1 truncate"
14
14
  }, E = { class: "ml-1 shrink-0" }, A = { key: 0 }, L = {
15
- ...h.props(),
16
- ...w.props("primary"),
15
+ ...$.props(),
16
+ ...w.props("secondary"),
17
17
  item: {
18
18
  type: Object,
19
19
  default: () => {
@@ -45,48 +45,50 @@ const T = {
45
45
  },
46
46
  selected: Boolean,
47
47
  disabled: Boolean,
48
- minimal: Boolean
48
+ minimal: Boolean,
49
+ prefix: String,
50
+ suffix: String
49
51
  }, X = {
50
52
  name: "XMenuItem",
51
53
  validators: {
52
- ...h.validators()
54
+ ...$.validators()
53
55
  }
54
56
  }, Y = /* @__PURE__ */ z({
55
57
  ...X,
56
58
  props: L,
57
59
  emits: ["active", "click"],
58
- setup(y, { emit: $ }) {
59
- const c = y, m = $, a = p(), o = p(!1), e = d(() => ({
60
- ...c,
61
- ...c.item
62
- })), v = d(() => e.value.to ? "router-link" : e.value.href ? "a" : "div");
63
- S(() => {
64
- a.value && (f(), v.value === "router-link" && j(a.value.$el, f, {
60
+ setup(b, { emit: _ }) {
61
+ const v = b, m = _, a = k(), o = k(!1), e = g(() => ({
62
+ ...v,
63
+ ...v.item
64
+ })), p = g(() => e.value.to ? "router-link" : e.value.href ? "a" : "div");
65
+ N(() => {
66
+ a.value && (d(), p.value === "router-link" && j(a.value.$el, d, {
65
67
  attributes: !0,
66
68
  attributeFilter: ["class"]
67
69
  }));
68
70
  });
69
- function b(t) {
71
+ function x(t) {
70
72
  if (e.value.disabled) {
71
73
  t.stopPropagation(), t.preventDefault();
72
74
  return;
73
75
  }
74
76
  e.value.onClick && e.value.onClick(t), m("click", t);
75
77
  }
76
- function f() {
78
+ function d() {
77
79
  if (a.value && a.value.$el && (e.value.href || e.value.to)) {
78
80
  const t = a.value.$el.classList.contains(e.value.exact ? "router-link-exact-active" : "router-link-active") || !1;
79
81
  o.value = t;
80
82
  } else
81
83
  o.value = !!e.value.active;
82
84
  }
83
- k(() => o.value, (t) => {
85
+ h(() => o.value, (t) => {
84
86
  t && m("active");
85
- }), k(() => e.value.active, (t) => {
87
+ }), h(() => e.value.active, (t) => {
86
88
  o.value = !!t;
87
89
  });
88
- const { styles: _, classes: B, className: C } = D("MenuItem", {}, e, { isActive: o });
89
- return (t, q) => (l(), i(x(v.value), N({
90
+ const { styles: B, classes: C, className: S } = D("MenuItem", {}, e, { isActive: o });
91
+ return (t, q) => (l(), i(R(p.value), I({
90
92
  ref_key: "elRef",
91
93
  ref: a
92
94
  }, {
@@ -96,32 +98,34 @@ const T = {
96
98
  to: e.value.to,
97
99
  target: e.value.target,
98
100
  color: e.value.color,
99
- style: s(_),
101
+ style: s(B),
100
102
  class: [
101
- s(C),
103
+ s(S),
102
104
  t.$style["menu-item"],
103
105
  [o.value ? t.$style["menu-item--active"] : ""],
104
- s(B).wrapper,
106
+ s(C).wrapper,
105
107
  {
106
108
  "flex items-center": t.$slots.prefix || t.$slots.suffix
107
109
  }
108
110
  ],
109
111
  title: e.value.label,
110
112
  alt: e.value.label,
111
- onClick: b
113
+ onClick: x
112
114
  }), {
113
- default: R(() => [
114
- t.$slots.prefix ? (l(), r("span", T, [
115
- n(t.$slots, "prefix", {}, void 0, !0)
116
- ])) : e.value.icon ? (l(), i(g, {
115
+ default: M(() => [
116
+ t.$slots.prefix || e.value.prefix ? (l(), r("span", T, [
117
+ n(t.$slots, "prefix", { item: e.value }, () => [
118
+ u(c(e.value.prefix), 1)
119
+ ], !0)
120
+ ])) : e.value.icon ? (l(), i(y, {
117
121
  key: 1,
118
122
  size: e.value.size,
119
123
  icon: e.value.icon,
120
124
  class: "mr-2"
121
- }, null, 8, ["size", "icon"])) : u("", !0),
122
- t.minimal ? u("", !0) : (l(), r("span", V, [
123
- n(t.$slots, "default", {}, () => [
124
- I(M(e.value.label), 1)
125
+ }, null, 8, ["size", "icon"])) : f("", !0),
126
+ t.minimal ? f("", !0) : (l(), r("span", V, [
127
+ n(t.$slots, "default", { item: e.value }, () => [
128
+ u(c(e.value.label), 1)
125
129
  ], !0)
126
130
  ])),
127
131
  O("span", E, [
@@ -129,13 +133,15 @@ const T = {
129
133
  key: 0,
130
134
  size: e.value.size
131
135
  }, null, 8, ["size"])) : (l(), r(P, { key: 1 }, [
132
- t.$slots.suffix ? (l(), r("span", A, [
133
- n(t.$slots, "suffix", {}, void 0, !0)
134
- ])) : e.value.iconRight ? (l(), i(g, {
136
+ t.$slots.suffix || e.value.suffix ? (l(), r("span", A, [
137
+ n(t.$slots, "suffix", { item: e.value }, () => [
138
+ u(c(e.value.suffix), 1)
139
+ ], !0)
140
+ ])) : e.value.iconRight ? (l(), i(y, {
135
141
  key: 1,
136
142
  size: e.value.size,
137
143
  icon: e.value.iconRight
138
- }, null, 8, ["size", "icon"])) : u("", !0)
144
+ }, null, 8, ["size", "icon"])) : f("", !0)
139
145
  ], 64))
140
146
  ])
141
147
  ]),
@@ -41,7 +41,7 @@ declare const modalProps: {
41
41
  default: boolean;
42
42
  };
43
43
  formErrors: {
44
- type: PropType<[FormError[], FormError]>;
44
+ type: PropType<FormError | FormError[]>;
45
45
  default: () => never[];
46
46
  };
47
47
  persistent: BooleanConstructor;
@@ -93,7 +93,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
93
93
  default: boolean;
94
94
  };
95
95
  formErrors: {
96
- type: PropType<[FormError[], FormError]>;
96
+ type: PropType<FormError | FormError[]>;
97
97
  default: () => never[];
98
98
  };
99
99
  persistent: BooleanConstructor;
@@ -138,7 +138,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
138
138
  default: boolean;
139
139
  };
140
140
  formErrors: {
141
- type: PropType<[FormError[], FormError]>;
141
+ type: PropType<FormError | FormError[]>;
142
142
  default: () => never[];
143
143
  };
144
144
  persistent: BooleanConstructor;
@@ -158,7 +158,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
158
158
  isForm: boolean;
159
159
  formDisabled: boolean;
160
160
  formAutoValidate: boolean;
161
- formErrors: [FormError[], FormError];
161
+ formErrors: FormError | FormError[];
162
162
  persistent: boolean;
163
163
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
164
164
  image?(_: {}): any;
@@ -1,5 +1,5 @@
1
- import { defineComponent as X, ref as y, watch as S, nextTick as w, useSlots as H, computed as M, openBlock as t, createBlock as v, Teleport as j, createElementBlock as r, normalizeStyle as q, unref as o, normalizeClass as l, createCommentVNode as a, createElementVNode as B, resolveDynamicComponent as K, withCtx as $, renderSlot as i, toDisplayString as k } from "vue";
2
- import { onClickOutside as L, useEventListener as G } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
1
+ import { defineComponent as X, ref as y, watch as w, nextTick as S, useSlots as H, computed as M, openBlock as t, createBlock as v, Teleport as j, createElementBlock as r, normalizeStyle as q, unref as o, normalizeClass as l, createCommentVNode as a, createElementVNode as B, resolveDynamicComponent as K, withCtx as $, renderSlot as i, toDisplayString as h } from "vue";
2
+ import { onClickOutside as L, useEventListener as G } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
3
  import { useTheme as J } from "../../composables/useTheme.js";
4
4
  import { useFocusTrap as Q } from "../../composables/useFocusTrap.js";
5
5
  import { closeIcon as U } from "../../common/icons.js";
@@ -60,51 +60,55 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
60
60
  props: te,
61
61
  emits: ["update:modelValue", "submit"],
62
62
  setup(V, { expose: C, emit: T }) {
63
- const n = V, h = T, u = y(n.modelValue), d = y(!1), b = y(null), z = y(null), { initFocusTrap: A, clearFocusTrap: D } = Q();
63
+ const d = V, k = T, c = y(d.modelValue), u = y(!1), b = y(null), E = y(null), { initFocusTrap: z, clearFocusTrap: A } = Q();
64
64
  let m;
65
- S(u, (e) => {
65
+ w(c, (e) => {
66
66
  m && (m(), m = void 0), e && setTimeout(() => {
67
- m = L(b, P, {
67
+ m = L(b, F, {
68
68
  ignore: [".v-popper__popper"]
69
69
  });
70
70
  });
71
- }), S(() => n.modelValue, E, { immediate: !0 });
72
- async function E() {
73
- const e = n.modelValue;
74
- e ? (u.value = e, await w(), d.value = e, await w(), A(b), document.body.style.overflow = "hidden") : (d.value = e, u.value = e, D(), document.body.style.overflow = "auto");
71
+ }), w(() => d.modelValue, D, { immediate: !0 });
72
+ async function D() {
73
+ const e = d.modelValue;
74
+ if (e) {
75
+ const n = window.innerWidth - document.documentElement.clientWidth;
76
+ c.value = e, await S(), u.value = e, await S(), z(b), document.body.style.paddingRight = `${n}px`, document.body.style.overflow = "hidden";
77
+ } else
78
+ u.value = e, c.value = e, A(), document.body.style.paddingRight = "", document.body.style.overflow = "auto";
75
79
  }
76
- typeof window < "u" && G(document, "keydown", O);
77
- const F = (e) => [".v-popper__popper", ".x-datepicker"].some((c) => {
78
- if (typeof c == "string")
79
- return Array.from(window.document.querySelectorAll(c)).some((f) => f === e.target || e.composedPath().includes(f));
80
+ typeof window < "u" && G(document, "keydown", W);
81
+ const R = (e) => [".v-popper__popper", ".x-datepicker"].some((n) => {
82
+ if (typeof n == "string")
83
+ return Array.from(window.document.querySelectorAll(n)).some((f) => f === e.target || e.composedPath().includes(f));
80
84
  });
81
- function O(e) {
82
- e.key === "Escape" && !F(e) && u.value && !n.persistent && p();
85
+ function W(e) {
86
+ e.key === "Escape" && !R(e) && c.value && !d.persistent && p();
83
87
  }
84
- function P() {
85
- n.persistent || p();
88
+ function F() {
89
+ d.persistent || p();
86
90
  }
87
91
  function p() {
88
- d.value = !1, setTimeout(() => {
89
- h("update:modelValue", !1);
92
+ u.value = !1, setTimeout(() => {
93
+ k("update:modelValue", !1);
90
94
  }, 150);
91
95
  }
92
- function R() {
93
- h("update:modelValue", !0), d.value = !0;
96
+ function O() {
97
+ k("update:modelValue", !0), u.value = !0;
94
98
  }
95
- const g = H(), I = M(() => !!(g["tertiary-action"] || g["cancel-action"])), { styles: N, classes: s, className: W } = J("Modal", {}, n, {
96
- visible: d
99
+ const g = H(), P = M(() => !!(g["tertiary-action"] || g["cancel-action"])), { styles: I, classes: s, className: N } = J("Modal", {}, d, {
100
+ visible: u
97
101
  });
98
- return C({ open: R, close: p }), (e, c) => (t(), v(j, { to: "body" }, [
99
- u.value ? (t(), r("div", {
102
+ return C({ open: O, close: p }), (e, n) => (t(), v(j, { to: "body" }, [
103
+ c.value ? (t(), r("div", {
100
104
  key: 0,
101
105
  ref_key: "modalWrapperRef",
102
- ref: z,
103
- style: q(o(N)),
106
+ ref: E,
107
+ style: q(o(I)),
104
108
  class: l([
105
- o(W),
109
+ o(N),
106
110
  o(s).wrapper,
107
- d.value ? "visible" : "invisible ease-in duration-100"
111
+ u.value ? "visible" : "invisible ease-in duration-100"
108
112
  ])
109
113
  }, [
110
114
  e.backdrop ? (t(), r("div", {
@@ -128,7 +132,7 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
128
132
  role: "dialog",
129
133
  "aria-modal": "true",
130
134
  "aria-labelledby": "modal-headline",
131
- onSubmit: c[0] || (c[0] = (f) => e.$emit("submit", f))
135
+ onSubmit: n[0] || (n[0] = (f) => e.$emit("submit", f))
132
136
  }, {
133
137
  default: $(() => [
134
138
  i(e.$slots, "image"),
@@ -141,11 +145,11 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
141
145
  e.label ? (t(), r("div", {
142
146
  key: 0,
143
147
  class: l(o(s).label)
144
- }, k(e.label), 3)) : a("", !0),
148
+ }, h(e.label), 3)) : a("", !0),
145
149
  e.title ? (t(), r("div", {
146
150
  key: 1,
147
151
  class: l(o(s).title)
148
- }, k(e.title), 3)) : a("", !0)
152
+ }, h(e.title), 3)) : a("", !0)
149
153
  ])
150
154
  ], 2)) : a("", !0)
151
155
  ]),
@@ -164,7 +168,7 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
164
168
  e.description ? (t(), r("div", {
165
169
  key: 0,
166
170
  class: l(o(s).description)
167
- }, k(e.description), 3)) : a("", !0),
171
+ }, h(e.description), 3)) : a("", !0),
168
172
  i(e.$slots, "default")
169
173
  ], 2)
170
174
  ]),
@@ -186,7 +190,7 @@ const x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = ["top",
186
190
  }, [
187
191
  i(e.$slots, "actions", {}, () => [
188
192
  i(e.$slots, "cancel-action"),
189
- I.value ? (t(), r("div", x)) : a("", !0),
193
+ P.value ? (t(), r("div", x)) : a("", !0),
190
194
  i(e.$slots, "tertiary-action"),
191
195
  i(e.$slots, "secondary-action"),
192
196
  i(e.$slots, "primary-action")
@@ -19,6 +19,10 @@ declare const notificationsProps: {
19
19
  type: BooleanConstructor;
20
20
  default: boolean;
21
21
  };
22
+ pauseOnHover: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
22
26
  injectKey: {
23
27
  type: (SymbolConstructor | StringConstructor)[];
24
28
  default: import("vue").InjectionKey<NotificationInjection>;
@@ -48,6 +52,8 @@ export type NotificationEvent = {
48
52
  title?: string;
49
53
  style?: string;
50
54
  message?: string;
55
+ timer?: ReturnType<typeof setTimeout>;
56
+ timerStart?: number;
51
57
  timeout?: number;
52
58
  removable?: boolean;
53
59
  align?: NotificationsAlign;
@@ -83,6 +89,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
83
89
  type: BooleanConstructor;
84
90
  default: boolean;
85
91
  };
92
+ pauseOnHover: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
86
96
  injectKey: {
87
97
  type: (SymbolConstructor | StringConstructor)[];
88
98
  default: import("vue").InjectionKey<NotificationInjection>;
@@ -117,6 +127,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
117
127
  type: BooleanConstructor;
118
128
  default: boolean;
119
129
  };
130
+ pauseOnHover: {
131
+ type: BooleanConstructor;
132
+ default: boolean;
133
+ };
120
134
  injectKey: {
121
135
  type: (SymbolConstructor | StringConstructor)[];
122
136
  default: import("vue").InjectionKey<NotificationInjection>;
@@ -131,6 +145,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
131
145
  position: "top" | "bottom";
132
146
  align: "left" | "right";
133
147
  timeout: number;
148
+ pauseOnHover: boolean;
134
149
  injectKey: string | symbol;
135
150
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
136
151
  default?(_: {}): any;