@indielayer/ui 1.14.1 → 1.14.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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, useSlots as z, computed as l, openBlock as o, createBlock as S, resolveDynamicComponent as B, normalizeStyle as n, unref as s, normalizeClass as i, withCtx as w, createElementVNode as r, renderSlot as a, createElementBlock as p, createCommentVNode as f } from "vue";
1
+ import { defineComponent as v, useSlots as z, computed as i, openBlock as o, createBlock as S, resolveDynamicComponent as B, normalizeStyle as l, unref as s, normalizeClass as n, withCtx as w, createElementVNode as r, renderSlot as a, createElementBlock as p, createCommentVNode as f } from "vue";
2
2
  import { useTheme as C } from "../../composables/useTheme.js";
3
3
  import { useCommon as d } from "../../composables/useCommon.js";
4
4
  import { useColors as k } from "../../composables/useColors.js";
@@ -40,16 +40,16 @@ const N = { class: "relative inline-block" }, X = {
40
40
  ...E,
41
41
  props: $,
42
42
  setup(m) {
43
- const t = m, u = z(), g = l(() => {
43
+ const t = m, u = z(), g = i(() => {
44
44
  const e = [];
45
45
  return t.position === "top" && e.push("top-0"), t.position === "bottom" && e.push("bottom-0"), t.align === "left" && e.push("left-0"), t.align === "right" && e.push("right-0"), u.content ? e.push("-m-[7.5%]") : t.outlined ? e.push("-m-[5%]") : e.push("-m-[3.5%]"), e;
46
- }), c = l(() => {
46
+ }), c = i(() => {
47
47
  const e = {};
48
48
  return t.offsetX && (e[t.align === "left" ? "marginLeft" : "marginRight"] = t.offsetX + "px"), t.offsetY && (e[t.position === "top" ? "marginTop" : "marginBottom"] = t.offsetY + "px"), e;
49
49
  }), { styles: h, classes: b, className: y } = C("Badge", {}, t);
50
50
  return (e, P) => (o(), S(B(e.tag), {
51
- style: n(s(h)),
52
- class: i([
51
+ style: l(s(h)),
52
+ class: n([
53
53
  s(y),
54
54
  s(b).wrapper
55
55
  ])
@@ -59,17 +59,17 @@ const N = { class: "relative inline-block" }, X = {
59
59
  a(e.$slots, "default"),
60
60
  e.show ? (o(), p("div", {
61
61
  key: 0,
62
- class: i(["absolute rounded-full z-10 bg-[color:var(--x-badge-bg)]", [
62
+ class: n(["absolute rounded-full z-10 bg-[color:var(--x-badge-bg)] pointer-events-none", [
63
63
  g.value,
64
64
  {
65
65
  "border-2 border-secondary-50 dark:border-secondary-900": e.outlined
66
66
  }
67
67
  ]]),
68
- style: n(c.value)
68
+ style: l(c.value)
69
69
  }, [
70
70
  e.animated ? (o(), p("div", X)) : f("", !0),
71
71
  r("div", {
72
- class: i(["text-xs text-white overflow-hidden", [
72
+ class: n(["text-xs text-white overflow-hidden", [
73
73
  e.$slots.content ? "flex items-center justify-center min-w-[1.25rem] h-5 px-1.5" : {
74
74
  "p-1": e.size === "xs",
75
75
  "p-[0.312rem]": e.size === "sm",
@@ -1,4 +1,4 @@
1
- import { defineComponent as R, ref as w, watch as m, unref as o, openBlock as i, createElementBlock as p, normalizeStyle as T, normalizeClass as u, createElementVNode as d, withKeys as H, withModifiers as O, withDirectives as U, mergeProps as X, toHandlers as j, vModelCheckbox as J, createBlock as V, renderSlot as C, toDisplayString as Q, createCommentVNode as W } from "vue";
1
+ import { defineComponent as R, ref as w, watch as m, unref as r, openBlock as i, createElementBlock as p, normalizeStyle as T, normalizeClass as t, createElementVNode as d, withKeys as H, withModifiers as O, withDirectives as U, mergeProps as X, toHandlers as j, vModelCheckbox as J, createBlock as V, renderSlot as C, toDisplayString as Q, createCommentVNode as W } from "vue";
2
2
  import { useColors as Y } from "../../composables/useColors.js";
3
3
  import { useCommon as I } from "../../composables/useCommon.js";
4
4
  import { useInputtable as f } from "../../composables/useInputtable.js";
@@ -6,11 +6,7 @@ import { useInteractive as z } from "../../composables/useInteractive.js";
6
6
  import { useTheme as Z } from "../../composables/useTheme.js";
7
7
  import x from "../inputFooter/InputFooter.vue.js";
8
8
  import _ from "../spinner/Spinner.vue.js";
9
- const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled", "disabled", "required"], le = {
10
- key: 1,
11
- name: "check-icon",
12
- class: "w-2/3 h-[2px] bg-white dark:bg-secondary-900"
13
- }, ae = ["textContent"], oe = {
9
+ const ee = ["onKeypress"], le = ["id", "name", "aria-checked", "aria-disabled", "disabled", "required"], se = ["textContent"], ae = {
14
10
  ...I.props(),
15
11
  ...Y.props("primary"),
16
12
  ...z.props(),
@@ -23,14 +19,14 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
23
19
  validators: {
24
20
  ...I.validators()
25
21
  }
26
- }, fe = /* @__PURE__ */ R({
22
+ }, ce = /* @__PURE__ */ R({
27
23
  ...re,
28
- props: oe,
24
+ props: ae,
29
25
  emits: f.emits(!1),
30
26
  setup(A, { expose: B, emit: $ }) {
31
27
  const l = A, v = $, b = w(null), a = w(!1);
32
28
  function y() {
33
- a.value = !a.value;
29
+ l.disabled || l.loading || l.readonly || (a.value = !a.value);
34
30
  }
35
31
  const { focus: h, blur: F } = z(b), {
36
32
  errorInternal: G,
@@ -38,29 +34,29 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
38
34
  isInsideForm: S,
39
35
  isInsideFormGroup: c,
40
36
  isFirstValidation: q,
41
- formGroup: r,
37
+ formGroup: o,
42
38
  reset: E,
43
39
  validate: k,
44
40
  setError: K
45
41
  } = f(l, { focus: h, emit: v, withListeners: !1 });
46
- c ? (m(() => r.value, () => {
47
- const e = o(r.value);
42
+ c ? (m(() => o.value, () => {
43
+ const e = r(o.value);
48
44
  e && Array.isArray(e) && e.includes(l.value) ? a.value = !0 : a.value = !1;
49
45
  }, { immediate: !0, deep: !0 }), m(() => a.value, (e) => {
50
46
  if (!l.value)
51
47
  return;
52
- const s = o(r.value);
48
+ const s = r(o.value);
53
49
  if (e)
54
50
  if (s && Array.isArray(s)) {
55
51
  if (!s.includes(l.value)) {
56
- const n = [...s, l.value];
57
- r.setValue(n);
52
+ const u = [...s, l.value];
53
+ o.setValue(u);
58
54
  }
59
55
  } else
60
- r.setValue([l.value]);
56
+ o.setValue([l.value]);
61
57
  else if (s && Array.isArray(s) && s.includes(l.value)) {
62
- const n = s.findIndex((P) => P === l.value), g = [...s];
63
- g.splice(n, 1), r.setValue(g);
58
+ const u = s.findIndex((P) => P === l.value), g = [...s];
59
+ g.splice(u, 1), o.setValue(g);
64
60
  }
65
61
  })) : (m(() => l.modelValue, (e) => {
66
62
  a.value = !!e;
@@ -73,37 +69,37 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
73
69
  l.validateOnInput && !q.value && k(l.modelValue);
74
70
  }, 0);
75
71
  }
76
- }, { styles: M, classes: t, className: D } = Z("Checkbox", {}, l, { checked: a, isInsideForm: S, isInsideFormGroup: c });
72
+ }, { styles: M, classes: n, className: D } = Z("Checkbox", {}, l, { checked: a, isInsideForm: S, isInsideFormGroup: c });
77
73
  return B({ focus: h, blur: F, toggle: y, reset: E, validate: k, setError: K }), (e, s) => (i(), p("label", {
78
- style: T(o(M)),
79
- class: u([
80
- o(D),
81
- o(t).wrapper
74
+ style: T(r(M)),
75
+ class: t([
76
+ r(D),
77
+ r(n).wrapper
82
78
  ])
83
79
  }, [
84
80
  d("div", {
85
81
  ref_key: "elRef",
86
82
  ref: b,
87
- class: u(o(t).content),
83
+ class: t(r(n).content),
88
84
  tabindex: "0",
89
85
  onKeypress: H(O(y, ["prevent", "stop"]), ["space"])
90
86
  }, [
91
87
  U(d("input", X({
92
88
  id: e.id,
93
- "onUpdate:modelValue": s[0] || (s[0] = (n) => a.value = n),
89
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
94
90
  name: e.name,
95
91
  "aria-checked": e.indeterminate ? "mixed" : a.value ? "true" : "false",
96
92
  "aria-disabled": e.disabled ? "true" : void 0,
97
93
  type: "checkbox",
98
94
  class: "invisible absolute",
99
- disabled: e.disabled || e.loading,
95
+ disabled: e.disabled || e.loading || e.readonly,
100
96
  required: e.required
101
- }, j(L, !0)), null, 16, se), [
97
+ }, j(L, !0)), null, 16, le), [
102
98
  [J, a.value]
103
99
  ]),
104
100
  d("div", {
105
- class: u([
106
- o(t).box,
101
+ class: t([
102
+ r(n).box,
107
103
  [e.glow && !e.disabled && !e.loading ? e.$style["checkbox--glow"] : ""]
108
104
  ])
109
105
  }, [
@@ -111,32 +107,36 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
111
107
  key: 0,
112
108
  size: e.size,
113
109
  class: "absolute"
114
- }, null, 8, ["size"])) : e.indeterminate ? (i(), p("span", le)) : C(e.$slots, "icon", { key: 2 }, () => [
110
+ }, null, 8, ["size"])) : e.indeterminate ? (i(), p("span", {
111
+ key: 1,
112
+ name: "check-icon",
113
+ class: t(["w-2/3 h-[1.5px]", [e.disabled ? "bg-secondary-400 dark:bg-secondary-500" : "bg-white"]])
114
+ }, null, 2)) : C(e.$slots, "icon", { key: 2 }, () => [
115
115
  (i(), p("svg", {
116
116
  viewBox: "0 0 20 20",
117
- class: u([o(t).icon, { "opacity-0": !a.value }])
117
+ class: t([r(n).icon, { "opacity-0": !a.value }])
118
118
  }, s[1] || (s[1] = [
119
119
  d("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1)
120
120
  ]), 2))
121
121
  ])
122
122
  ], 2),
123
123
  d("div", {
124
- class: u(o(t).label)
124
+ class: t(r(n).label)
125
125
  }, [
126
126
  e.label ? (i(), p("span", {
127
127
  key: 0,
128
128
  textContent: Q(e.label)
129
- }, null, 8, ae)) : C(e.$slots, "default", { key: 1 })
129
+ }, null, 8, se)) : C(e.$slots, "default", { key: 1 })
130
130
  ], 2)
131
131
  ], 42, ee),
132
- o(N) ? W("", !0) : (i(), V(x, {
132
+ r(N) ? W("", !0) : (i(), V(x, {
133
133
  key: 0,
134
- error: o(G),
134
+ error: r(G),
135
135
  helper: e.helper
136
136
  }, null, 8, ["error", "helper"]))
137
137
  ], 6));
138
138
  }
139
139
  });
140
140
  export {
141
- fe as default
141
+ ce as default
142
142
  };
@@ -13,16 +13,16 @@ const i = {
13
13
  return e.disabled && r.push("cursor-not-allowed"), r;
14
14
  },
15
15
  icon: ({ props: e }) => {
16
- const r = ["fill-current text-white"];
17
- return e.size === "lg" ? r.push("h-3 w-3") : e.size === "xl" ? r.push("h-4 w-4") : r.push("h-2.5 w-2.5"), r;
16
+ const r = ["fill-current"];
17
+ return e.disabled ? r.push("text-secondary-400 dark:text-secondary-500") : r.push("text-white"), e.size === "lg" ? r.push("h-3 w-3") : e.size === "xl" ? r.push("h-4 w-4") : r.push("h-2.5 w-2.5"), r;
18
18
  },
19
19
  label: ({ props: e, data: r }) => {
20
20
  const s = ["inline-block text-secondary-800 dark:text-secondary-200 pl-2"];
21
21
  return s.push(r.isInsideFormGroup ? "font-normal" : "font-medium"), e.size === "xs" ? s.push("text-xs") : e.size === "sm" ? s.push("text-sm") : e.size === "lg" ? s.push("text-lg") : e.size === "xl" && s.push("text-xl"), s;
22
22
  }
23
23
  },
24
- styles({ props: e, colors: r, css: s, data: a }) {
25
- const t = r.getPalette("gray"), l = r.getPalette(e.color), o = [];
24
+ styles({ props: e, colors: r, css: s, data: o }) {
25
+ const t = r.getPalette("gray"), l = r.getPalette(e.color), a = [];
26
26
  return e.loading ? s.variables({
27
27
  bg: "transparent",
28
28
  border: "transparent",
@@ -30,28 +30,28 @@ const i = {
30
30
  bg: "transparent",
31
31
  border: "transparent"
32
32
  }
33
- }) : (e.disabled ? o.push(s.variables({
33
+ }) : (e.disabled ? a.push(s.variables({
34
34
  bg: t[100],
35
35
  border: t[200],
36
36
  dark: {
37
37
  bg: t[800],
38
38
  border: t[700]
39
39
  }
40
- })) : (a.checked ? o.push(s.variables({
40
+ })) : (o.checked ? a.push(s.variables({
41
41
  bg: l[500],
42
42
  border: l[500],
43
43
  dark: {
44
44
  bg: l[500],
45
45
  border: l[500]
46
46
  }
47
- })) : o.push(s.variables({
47
+ })) : a.push(s.variables({
48
48
  bg: "#fff",
49
49
  border: e.glow ? l[300] : t[300],
50
50
  dark: {
51
51
  bg: t[900],
52
52
  border: e.glow ? l[300] : t[400]
53
53
  }
54
- })), e.glow && o.push(s.get("glow", r.getColorOpacity(l[500], 0.5)))), o);
54
+ })), e.glow && a.push(s.get("glow", r.getColorOpacity(l[500], 0.5)))), a);
55
55
  }
56
56
  }, n = i;
57
57
  export {
@@ -27,6 +27,10 @@ declare const notificationsProps: {
27
27
  type: (SymbolConstructor | StringConstructor)[];
28
28
  default: import("vue").InjectionKey<NotificationInjection>;
29
29
  };
30
+ offset: {
31
+ type: (StringConstructor | NumberConstructor)[];
32
+ default: number;
33
+ };
30
34
  color: {
31
35
  readonly type: StringConstructor;
32
36
  readonly default: string | undefined;
@@ -97,6 +101,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
97
101
  type: (SymbolConstructor | StringConstructor)[];
98
102
  default: import("vue").InjectionKey<NotificationInjection>;
99
103
  };
104
+ offset: {
105
+ type: (StringConstructor | NumberConstructor)[];
106
+ default: number;
107
+ };
100
108
  color: {
101
109
  readonly type: StringConstructor;
102
110
  readonly default: string | undefined;
@@ -135,6 +143,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
135
143
  type: (SymbolConstructor | StringConstructor)[];
136
144
  default: import("vue").InjectionKey<NotificationInjection>;
137
145
  };
146
+ offset: {
147
+ type: (StringConstructor | NumberConstructor)[];
148
+ default: number;
149
+ };
138
150
  color: {
139
151
  readonly type: StringConstructor;
140
152
  readonly default: string | undefined;
@@ -144,6 +156,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
144
156
  color: string;
145
157
  position: "top" | "bottom";
146
158
  align: "left" | "right";
159
+ offset: string | number;
147
160
  timeout: number;
148
161
  pauseOnHover: boolean;
149
162
  injectKey: string | symbol;
@@ -1,25 +1,25 @@
1
- import { defineComponent as I, ref as g, provide as q, watch as j, openBlock as a, createElementBlock as p, Fragment as H, renderSlot as J, createBlock as x, Teleport as Q, createElementVNode as b, normalizeStyle as D, unref as i, normalizeClass as _, createVNode as O, TransitionGroup as U, withCtx as W, renderList as Y, createCommentVNode as y, toDisplayString as C } from "vue";
2
- import { injectNotificationKey as Z } from "../../composables/keys.js";
3
- import { useColors as A } from "../../composables/useColors.js";
4
- import { useCSS as ee } from "../../composables/useCSS.js";
5
- import { useTheme as te } from "../../composables/useTheme.js";
6
- import { closeIcon as oe } from "../../common/icons.js";
7
- import K from "../icon/Icon.vue.js";
8
- import re from "../spacer/Spacer.js";
9
- const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center flex-wrap" }, le = {
1
+ import { defineComponent as q, ref as g, provide as J, watch as D, computed as Q, openBlock as a, createElementBlock as p, Fragment as O, renderSlot as U, createBlock as x, Teleport as W, createElementVNode as k, normalizeStyle as _, unref as i, normalizeClass as C, createVNode as K, TransitionGroup as Y, withCtx as Z, renderList as ee, createCommentVNode as y, toDisplayString as M } from "vue";
2
+ import { injectNotificationKey as te } from "../../composables/keys.js";
3
+ import { useColors as E } from "../../composables/useColors.js";
4
+ import { useCSS as oe } from "../../composables/useCSS.js";
5
+ import { useTheme as re } from "../../composables/useTheme.js";
6
+ import { closeIcon as se } from "../../common/icons.js";
7
+ import A from "../icon/Icon.vue.js";
8
+ import ae from "../spacer/Spacer.js";
9
+ const le = ["onMouseenter", "onMouseleave"], ne = { class: "flex items-center flex-wrap" }, ie = {
10
10
  key: 0,
11
11
  class: "font-medium mr-2"
12
- }, ne = ["onClick"], ie = {
13
- ...A.props("primary"),
12
+ }, ce = ["onClick"], ue = {
13
+ ...E.props("primary"),
14
14
  align: {
15
15
  type: String,
16
16
  default: "right",
17
- validator: (c) => M.align.includes(c)
17
+ validator: (c) => S.align.includes(c)
18
18
  },
19
19
  position: {
20
20
  type: String,
21
21
  default: "bottom",
22
- validator: (c) => M.position.includes(c)
22
+ validator: (c) => S.position.includes(c)
23
23
  },
24
24
  timeout: {
25
25
  type: Number,
@@ -35,32 +35,36 @@ const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center fl
35
35
  },
36
36
  injectKey: {
37
37
  type: [Symbol, String],
38
- default: Z
38
+ default: te
39
+ },
40
+ offset: {
41
+ type: [String, Number],
42
+ default: 0
39
43
  }
40
- }, M = {
44
+ }, S = {
41
45
  align: ["left", "right"],
42
46
  position: ["bottom", "top"]
43
- }, ce = {
47
+ }, me = {
44
48
  name: "XNotifications",
45
- validators: M
46
- }, he = /* @__PURE__ */ I({
47
- ...ce,
48
- props: ie,
49
- setup(c, { expose: E }) {
50
- const r = c, u = g(r.align), s = g(r.position), d = g([]), z = g(null), L = ee("notification"), S = A();
51
- q(r.injectKey, {
52
- log: w,
53
- info: N,
49
+ validators: S
50
+ }, xe = /* @__PURE__ */ q({
51
+ ...me,
52
+ props: ue,
53
+ setup(c, { expose: L }) {
54
+ const r = c, u = g(r.align), s = g(r.position), d = g([]), z = g(null), R = oe("notification"), w = E();
55
+ J(r.injectKey, {
56
+ log: N,
57
+ info: $,
54
58
  warn: v,
55
59
  error: B,
56
60
  warning: v,
57
61
  success: T
58
- }), j(() => r.align, (e) => {
62
+ }), D(() => r.align, (e) => {
59
63
  u.value = e;
60
- }), j(() => r.position, (e) => {
64
+ }), D(() => r.position, (e) => {
61
65
  s.value = e;
62
66
  });
63
- function w(e) {
67
+ function N(e) {
64
68
  const o = typeof e == "string", t = {
65
69
  message: o ? e : void 0
66
70
  };
@@ -69,7 +73,7 @@ const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center fl
69
73
  ...e
70
74
  });
71
75
  }
72
- function N(e) {
76
+ function $(e) {
73
77
  const o = typeof e == "string", t = {
74
78
  icon: '<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd" />',
75
79
  iconColor: "sky",
@@ -114,7 +118,7 @@ const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center fl
114
118
  });
115
119
  }
116
120
  function m(e) {
117
- var $;
121
+ var H;
118
122
  const t = {
119
123
  ...{
120
124
  id: Date.now(),
@@ -127,7 +131,7 @@ const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center fl
127
131
  ...e
128
132
  };
129
133
  u.value = t.align, s.value = t.position;
130
- const l = S.getPalette(t.iconColor), f = S.getPalette((($ = t.action) == null ? void 0 : $.color) || "primary"), V = L.variables({
134
+ const l = w.getPalette(t.iconColor), f = w.getPalette(((H = t.action) == null ? void 0 : H.color) || "primary"), j = R.variables({
131
135
  icon: l[400],
132
136
  action: f[400],
133
137
  hover: {
@@ -141,7 +145,7 @@ const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center fl
141
145
  }
142
146
  }
143
147
  });
144
- if (t.style = Object.keys(V).map((n) => `${n}: ${V[n]}`).join(";"), t.timeout) {
148
+ if (t.style = Object.keys(j).map((n) => `${n}: ${j[n]}`).join(";"), t.timeout) {
145
149
  const n = P(t, t.timeout);
146
150
  t.timer = n, t.timerStart = Date.now();
147
151
  }
@@ -158,26 +162,26 @@ const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center fl
158
162
  h(e);
159
163
  }, o);
160
164
  }
161
- function R(e) {
165
+ function X(e) {
162
166
  r.pauseOnHover && e.timer && (clearTimeout(e.timer), e.timer = void 0);
163
167
  }
164
- function X(e) {
168
+ function F(e) {
165
169
  if (r.pauseOnHover && e.timeout && e.timerStart) {
166
170
  const o = Math.max(e.timeout - (Date.now() - e.timerStart), 1e3);
167
171
  e.timer = P(e, o);
168
172
  }
169
173
  }
170
- const { styles: F, classes: k, className: G } = te("Notifications", {}, r);
171
- return E({ log: w, info: N, success: T, warn: v, warning: v, error: B }), (e, o) => (a(), p(H, null, [
172
- J(e.$slots, "default"),
173
- (a(), x(Q, { to: "body" }, [
174
- b("div", {
174
+ const V = Q(() => `${r.offset}px`), { styles: G, classes: b, className: I } = re("Notifications", {}, r);
175
+ return L({ log: N, info: $, success: T, warn: v, warning: v, error: B }), (e, o) => (a(), p(O, null, [
176
+ U(e.$slots, "default"),
177
+ (a(), x(W, { to: "body" }, [
178
+ k("div", {
175
179
  ref_key: "listRef",
176
180
  ref: z,
177
- style: D(i(F)),
178
- class: _([
179
- i(G),
180
- i(k).wrapper,
181
+ style: _(i(G)),
182
+ class: C([
183
+ i(I),
184
+ i(b).wrapper,
181
185
  {
182
186
  // align
183
187
  "left-0": u.value === "left",
@@ -188,10 +192,13 @@ const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center fl
188
192
  }
189
193
  ])
190
194
  }, [
191
- O(U, {
195
+ K(Y, {
192
196
  tag: "ul",
193
- class: _([
194
- i(k).list,
197
+ style: _([
198
+ s.value === "bottom" ? `padding-bottom: ${V.value};` : `padding-top: ${V.value};`
199
+ ]),
200
+ class: C([
201
+ i(b).list,
195
202
  { "flex-col-reverse": s.value }
196
203
  ]),
197
204
  "enter-active-class": "transition ease-out duration-200",
@@ -202,32 +209,32 @@ const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center fl
202
209
  "leave-to-class": "transform translate-y-2 opacity-0",
203
210
  "move-class": "ease-in-out duration-200"
204
211
  }, {
205
- default: W(() => [
206
- (a(!0), p(H, null, Y(d.value, (t) => (a(), p("li", {
212
+ default: Z(() => [
213
+ (a(!0), p(O, null, ee(d.value, (t) => (a(), p("li", {
207
214
  key: t.id,
208
- class: _([
209
- i(k).item,
215
+ class: C([
216
+ i(b).item,
210
217
  {
211
218
  "mb-2": s.value === "bottom",
212
219
  "mt-2": s.value === "top"
213
220
  }
214
221
  ]),
215
- style: D(t.style),
216
- onMouseenter: (l) => R(t),
217
- onMouseleave: (l) => X(t)
222
+ style: _(t.style),
223
+ onMouseenter: (l) => X(t),
224
+ onMouseleave: (l) => F(t)
218
225
  }, [
219
- t.icon ? (a(), x(K, {
226
+ t.icon ? (a(), x(A, {
220
227
  key: 0,
221
228
  filled: "",
222
229
  icon: t.icon,
223
230
  class: "mr-4 text-[color:var(--x-notification-icon)] dark:text-[color:var(--x-notification-dark-icon)]",
224
231
  viewBox: "0 0 20 20"
225
232
  }, null, 8, ["icon"])) : y("", !0),
226
- b("div", ae, [
227
- t.title ? (a(), p("span", le, C(t.title), 1)) : y("", !0),
228
- b("span", null, C(t.message), 1)
233
+ k("div", ne, [
234
+ t.title ? (a(), p("span", ie, M(t.title), 1)) : y("", !0),
235
+ k("span", null, M(t.message), 1)
229
236
  ]),
230
- O(i(re)),
237
+ K(i(ae)),
231
238
  t.action ? (a(), p("button", {
232
239
  key: 1,
233
240
  type: "button",
@@ -236,24 +243,24 @@ const se = ["onMouseenter", "onMouseleave"], ae = { class: "flex items-center fl
236
243
  var l;
237
244
  (l = t.action) == null || l.onClick(), h(t);
238
245
  }
239
- }, C(t.action.label), 9, ne)) : y("", !0),
240
- t.removable ? (a(), x(K, {
246
+ }, M(t.action.label), 9, ce)) : y("", !0),
247
+ t.removable ? (a(), x(A, {
241
248
  key: 2,
242
- icon: i(oe),
249
+ icon: i(se),
243
250
  class: "text-secondary-400 hover:text-secondary-500 ml-3 cursor-pointer",
244
251
  onClick: () => {
245
252
  h(t);
246
253
  }
247
254
  }, null, 8, ["icon", "onClick"])) : y("", !0)
248
- ], 46, se))), 128))
255
+ ], 46, le))), 128))
249
256
  ]),
250
257
  _: 1
251
- }, 8, ["class"])
258
+ }, 8, ["style", "class"])
252
259
  ], 6)
253
260
  ]))
254
261
  ], 64));
255
262
  }
256
263
  });
257
264
  export {
258
- he as default
265
+ xe as default
259
266
  };
@@ -9,11 +9,11 @@ const s = {
9
9
  const l = t.getPalette(e.color);
10
10
  return r.variables({
11
11
  bg: l[100],
12
- text: l[600],
13
- border: l[600],
12
+ text: l[800],
13
+ border: l[700],
14
14
  dark: {
15
15
  bg: l[600],
16
- border: l[400],
16
+ border: l[500],
17
17
  text: l[100]
18
18
  }
19
19
  });