@skf-design-system/ui-components 1.0.1-beta.0 → 1.0.1-beta.1

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 (67) hide show
  1. package/dist/components/accordion/accordion.component.js +3 -3
  2. package/dist/components/alert/alert.component.js +8 -8
  3. package/dist/components/button/button.component.d.ts +3 -3
  4. package/dist/components/button/button.component.js +59 -55
  5. package/dist/components/card/card.component.js +4 -4
  6. package/dist/components/checkbox/checkbox.component.d.ts +3 -1
  7. package/dist/components/checkbox/checkbox.component.js +69 -56
  8. package/dist/components/date-picker/datepicker.calendar.component.d.ts +72 -0
  9. package/dist/components/date-picker/datepicker.calendar.component.js +382 -0
  10. package/dist/components/date-picker/datepicker.calendar.styles.d.ts +1 -0
  11. package/dist/components/date-picker/datepicker.calendar.styles.js +192 -0
  12. package/dist/components/date-picker/datepicker.component.d.ts +74 -0
  13. package/dist/components/date-picker/datepicker.component.js +241 -0
  14. package/dist/components/date-picker/datepicker.d.ts +10 -0
  15. package/dist/components/date-picker/datepicker.helpers.d.ts +40 -0
  16. package/dist/components/date-picker/datepicker.helpers.js +69 -0
  17. package/dist/components/date-picker/datepicker.js +8 -0
  18. package/dist/components/date-picker/datepicker.styles.d.ts +1 -0
  19. package/dist/components/date-picker/datepicker.styles.js +99 -0
  20. package/dist/components/date-picker-input/datepicker-input.component.d.ts +107 -0
  21. package/dist/components/date-picker-input/datepicker-input.component.js +397 -0
  22. package/dist/components/date-picker-input/datepicker-input.d.ts +8 -0
  23. package/dist/components/date-picker-input/datepicker-input.helpers.d.ts +4 -0
  24. package/dist/components/date-picker-input/datepicker-input.helpers.js +29 -0
  25. package/dist/components/date-picker-input/datepicker-input.js +6 -0
  26. package/dist/components/date-picker-input/datepicker-input.styles.d.ts +1 -0
  27. package/dist/components/date-picker-input/datepicker-input.styles.js +22 -0
  28. package/dist/components/dialog/dialog.component.js +19 -19
  29. package/dist/components/divider/divider.component.js +12 -12
  30. package/dist/components/heading/heading.component.js +13 -13
  31. package/dist/components/icon/icon.component.js +19 -19
  32. package/dist/components/input/input.component.d.ts +1 -0
  33. package/dist/components/input/input.component.js +87 -80
  34. package/dist/components/link/link.component.js +28 -28
  35. package/dist/components/loader/loader.component.js +19 -19
  36. package/dist/components/logo/logo.component.js +6 -6
  37. package/dist/components/popover/popover.component.js +12 -12
  38. package/dist/components/progress/progress.component.js +7 -7
  39. package/dist/components/radio/radio.component.js +4 -4
  40. package/dist/components/select-option-group/select-option-group.component.js +9 -9
  41. package/dist/components/stepper/stepper.component.js +9 -9
  42. package/dist/components/stepper/stepper.helpers.js +5 -5
  43. package/dist/components/stepper-item/stepper-item.component.js +23 -23
  44. package/dist/components/tab/tab.component.js +4 -4
  45. package/dist/components/tab-panel/tab-panel.component.js +12 -12
  46. package/dist/components/tag/tag.component.js +9 -9
  47. package/dist/components/textarea/textarea.component.js +3 -3
  48. package/dist/components/toast/toast.component.js +13 -13
  49. package/dist/components/toast-wrapper/toast-wrapper.component.js +10 -10
  50. package/dist/components/tooltip/tooltip.component.js +2 -2
  51. package/dist/custom-elements.json +941 -161
  52. package/dist/index.d.ts +2 -0
  53. package/dist/index.js +72 -66
  54. package/dist/internal/components/hint/hint.component.js +13 -13
  55. package/dist/internal/controllers/popover.controller.d.ts +2 -1
  56. package/dist/internal/controllers/popover.controller.js +2 -2
  57. package/dist/internal/helpers/dateFormatter.d.ts +2 -0
  58. package/dist/internal/helpers/utilityTypes.d.ts +22 -0
  59. package/dist/react/index.d.ts +1 -0
  60. package/dist/react/index.js +1 -0
  61. package/dist/react/skf-datepicker/index.d.ts +12 -0
  62. package/dist/react/skf-datepicker/index.js +18 -0
  63. package/dist/types/jsx/custom-element-jsx.d.ts +45 -3
  64. package/dist/types/vue/index.d.ts +44 -1
  65. package/dist/vscode.html-custom-data.json +39 -1
  66. package/dist/web-types.json +107 -10
  67. package/package.json +3 -2
@@ -1,19 +1,19 @@
1
1
  import { SkfElement as a } from "../../internal/components/skf-element.js";
2
2
  import f from "../../styles/component.styles.js";
3
- import { html as n } from "lit";
3
+ import { html as p } from "lit";
4
4
  import { property as d } from "lit/decorators.js";
5
- import { styles as p } from "./select-option-group.style.js";
6
- var u = Object.defineProperty, v = (s, o, i, b) => {
7
- for (var r = void 0, e = s.length - 1, m; e >= 0; e--)
8
- (m = s[e]) && (r = m(o, i, r) || r);
9
- return r && u(o, i, r), r;
5
+ import { styles as n } from "./select-option-group.style.js";
6
+ var v = Object.defineProperty, u = (o, s, i, b) => {
7
+ for (var r = void 0, e = o.length - 1, m; e >= 0; e--)
8
+ (m = o[e]) && (r = m(s, i, r) || r);
9
+ return r && v(s, i, r), r;
10
10
  };
11
11
  const l = class l extends a {
12
12
  constructor() {
13
13
  super(...arguments), this.label = "Default label";
14
14
  }
15
15
  render() {
16
- return n`
16
+ return p`
17
17
  <div role="group">
18
18
  <div id="label">${this.label}</div>
19
19
  <slot></slot>
@@ -21,9 +21,9 @@ const l = class l extends a {
21
21
  `;
22
22
  }
23
23
  };
24
- l.styles = [f, p];
24
+ l.styles = [f, n];
25
25
  let t = l;
26
- v([
26
+ u([
27
27
  d({ reflect: !0 })
28
28
  ], t.prototype, "label");
29
29
  export {
@@ -12,20 +12,20 @@ import { classMap as A } from "lit/directives/class-map.js";
12
12
  import { stepperState as C } from "./stepper.helpers.js";
13
13
  import { styles as b } from "./stepper.styles.js";
14
14
  var E = Object.defineProperty, S = Object.getOwnPropertyDescriptor, h = (t, i, e, s) => {
15
- for (var n = s > 1 ? void 0 : s ? S(i, e) : i, r = t.length - 1, o; r >= 0; r--)
16
- (o = t[r]) && (n = (s ? o(i, e, n) : o(n)) || n);
15
+ for (var n = s > 1 ? void 0 : s ? S(i, e) : i, r = t.length - 1, d; r >= 0; r--)
16
+ (d = t[r]) && (n = (s ? d(i, e, n) : d(n)) || n);
17
17
  return s && n && E(i, e, n), n;
18
- }, d;
18
+ }, o;
19
19
  const c = class c extends I {
20
20
  constructor() {
21
21
  super();
22
- f(this, d);
23
- l(this, d, !1), this.activeIndex = -1, this.linear = !1, this._handleSelected = (e) => {
24
- if (!_(this, d)) return;
25
- const { item: s, triggerActiveIndexUpdate: n } = e.detail, r = [...this._items ?? []].findIndex((o) => o === s);
22
+ f(this, o);
23
+ l(this, o, !1), this.activeIndex = -1, this.linear = !1, this._handleSelected = (e) => {
24
+ if (!_(this, o)) return;
25
+ const { item: s, triggerActiveIndexUpdate: n } = e.detail, r = [...this._items ?? []].findIndex((d) => d === s);
26
26
  r === this.activeIndex ? this._handleActiveIndexChanged() : (n && this._resetActive(r), this.activeIndex = r);
27
27
  }, this._handleSlotChanged = () => {
28
- l(this, d, !0), this.activeIndex = this._getCurrentActiveIndex();
28
+ l(this, o, !0), this.activeIndex = this._getCurrentActiveIndex();
29
29
  }, this.addEventListener("skf-stepper-item-select", this._handleSelected);
30
30
  }
31
31
  firstUpdated() {
@@ -69,7 +69,7 @@ const c = class c extends I {
69
69
  `;
70
70
  }
71
71
  };
72
- d = new WeakMap(), c.styles = [u, b];
72
+ o = new WeakMap(), c.styles = [u, b];
73
73
  let a = c;
74
74
  h([
75
75
  x({ type: Number })
@@ -1,17 +1,17 @@
1
1
  const A = ({
2
2
  activeIndex: c,
3
3
  items: r,
4
- linear: a,
4
+ linear: i,
5
5
  state: o,
6
- index: t
6
+ index: e
7
7
  }) => {
8
8
  var l;
9
- const i = (l = r[t - 1]) == null ? void 0 : l.state, p = t > c + 1, b = i === "active", n = ["active", "completed"].includes(o ?? ""), s = !a && n, d = a && !s ? !1 : (p || b || n) && !s, f = o === "active", u = t < c, m = o === "completed", v = !s && i === "completed" && t === c + 1, e = {
10
- isCurrentStep: n,
9
+ const n = (l = r[e - 1]) == null ? void 0 : l.state, p = e > c + 1, b = n === "active", a = ["active", "completed"].includes(o ?? ""), s = !i && a, d = i && !s ? !1 : (p || b || a) && !s, v = o === "active", f = e < c, m = o === "completed", u = !s && n === "completed" && e === c + 1, t = {
10
+ isCurrentStep: a,
11
11
  isDisabled: d,
12
12
  isSpan: s
13
13
  };
14
- return v ? { stateLabel: "enabled", ...e } : f ? { stateLabel: "active", ...e } : m ? { stateLabel: "activeCompleted", ...e } : u ? { stateLabel: "completed", ...e } : { stateLabel: void 0, ...e };
14
+ return u ? { stateLabel: "enabled", ...t } : v ? { stateLabel: "active", ...t } : m ? { stateLabel: "activeCompleted", ...t } : f ? { stateLabel: "completed", ...t } : { stateLabel: void 0, ...t };
15
15
  };
16
16
  export {
17
17
  A as stepperState
@@ -1,8 +1,8 @@
1
- var u = (e) => {
1
+ var v = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
- var v = (e, i, t) => i.has(e) || u("Cannot " + t);
5
- var m = (e, i, t) => (v(e, i, "read from private field"), t ? t.call(e) : i.get(e)), _ = (e, i, t) => i.has(e) ? u("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), r = (e, i, t, s) => (v(e, i, "write to private field"), s ? s.call(e, t) : i.set(e, t), t);
4
+ var u = (e, i, t) => i.has(e) || v("Cannot " + t);
5
+ var d = (e, i, t) => (u(e, i, "read from private field"), t ? t.call(e) : i.get(e)), _ = (e, i, t) => i.has(e) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), r = (e, i, t, s) => (u(e, i, "write to private field"), s ? s.call(e, t) : i.set(e, t), t);
6
6
  import "../icon/icon.js";
7
7
  import { SkfElement as b } from "../../internal/components/skf-element.js";
8
8
  import { watch as g } from "../../internal/helpers/watch.js";
@@ -13,23 +13,23 @@ import { classMap as $ } from "lit/directives/class-map.js";
13
13
  import { ifDefined as x } from "lit/directives/if-defined.js";
14
14
  import { literal as w, unsafeStatic as U, html as S } from "lit/static-html.js";
15
15
  import { styles as I } from "./stepper-item.styles.js";
16
- var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, o = (e, i, t, s) => {
17
- for (var p = s > 1 ? void 0 : s ? P(i, t) : i, d = e.length - 1, h; d >= 0; d--)
18
- (h = e[d]) && (p = (s ? h(i, t, p) : h(p)) || p);
16
+ var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, l = (e, i, t, s) => {
17
+ for (var p = s > 1 ? void 0 : s ? P(i, t) : i, h = e.length - 1, m; h >= 0; h--)
18
+ (m = e[h]) && (p = (s ? m(i, t, p) : m(p)) || p);
19
19
  return s && p && O(i, t, p), p;
20
- }, l, n;
20
+ }, o, n;
21
21
  const f = class f extends b {
22
22
  constructor() {
23
23
  super();
24
- _(this, l);
24
+ _(this, o);
25
25
  _(this, n);
26
- r(this, l, !1), r(this, n, !1), this.completed = !1, this._index = 0, this._linear = !1, this._handleClick = () => {
26
+ r(this, o, !1), r(this, n, !1), this.completed = !1, this._index = 0, this._linear = !1, this._handleClick = () => {
27
27
  this._linear || (this.state = "active");
28
28
  }, this.role = "listitem";
29
29
  }
30
30
  set _setInternalState(t) {
31
- r(this, l, !0), this._uiState = t, t === "active" || t === "activeCompleted" ? this.state = t === "active" ? "active" : "completed" : this.state = void 0, setTimeout(() => {
32
- r(this, l, !1);
31
+ r(this, o, !0), this._uiState = t, t === "active" || t === "activeCompleted" ? this.state = t === "active" ? "active" : "completed" : this.state = void 0, setTimeout(() => {
32
+ r(this, o, !1);
33
33
  });
34
34
  }
35
35
  get _setInternalState() {
@@ -44,8 +44,8 @@ const f = class f extends b {
44
44
  this._setInternalState = "activeCompleted";
45
45
  return;
46
46
  }
47
- if (m(this, l)) {
48
- r(this, l, !1);
47
+ if (d(this, o)) {
48
+ r(this, o, !1);
49
49
  return;
50
50
  }
51
51
  r(this, n, ["active", "completed"].includes(String(this.state)) && !["active", "activeCompleted"].includes(String(this._uiState))), this._emitUpdate();
@@ -55,7 +55,7 @@ const f = class f extends b {
55
55
  this.emit("skf-stepper-item-select", {
56
56
  detail: {
57
57
  item: this,
58
- triggerActiveIndexUpdate: m(this, n)
58
+ triggerActiveIndexUpdate: d(this, n)
59
59
  }
60
60
  }), r(this, n, !1);
61
61
  }
@@ -82,30 +82,30 @@ const f = class f extends b {
82
82
  `;
83
83
  }
84
84
  };
85
- l = new WeakMap(), n = new WeakMap(), f.styles = [C, I];
85
+ o = new WeakMap(), n = new WeakMap(), f.styles = [C, I];
86
86
  let a = f;
87
- o([
87
+ l([
88
88
  y({ reflect: !0 })
89
89
  ], a.prototype, "state", 2);
90
- o([
90
+ l([
91
91
  y({ type: Boolean })
92
92
  ], a.prototype, "completed", 2);
93
- o([
93
+ l([
94
94
  c()
95
95
  ], a.prototype, "_disabled", 2);
96
- o([
96
+ l([
97
97
  c()
98
98
  ], a.prototype, "_index", 2);
99
- o([
99
+ l([
100
100
  c()
101
101
  ], a.prototype, "_linear", 2);
102
- o([
102
+ l([
103
103
  c()
104
104
  ], a.prototype, "_uiState", 2);
105
- o([
105
+ l([
106
106
  c()
107
107
  ], a.prototype, "_setInternalState", 1);
108
- o([
108
+ l([
109
109
  g("state")
110
110
  ], a.prototype, "_handleState", 1);
111
111
  export {
@@ -4,11 +4,11 @@ import m from "../../styles/component.styles.js";
4
4
  import { html as f } from "lit";
5
5
  import { property as v, state as d } from "lit/decorators.js";
6
6
  import { classMap as b } from "lit/directives/class-map.js";
7
- import { styles as u } from "./tab.styles.js";
8
- var _ = Object.defineProperty, y = Object.getOwnPropertyDescriptor, a = (c, s, l, r) => {
7
+ import { styles as _ } from "./tab.styles.js";
8
+ var u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, a = (c, s, l, r) => {
9
9
  for (var e = r > 1 ? void 0 : r ? y(s, l) : s, i = c.length - 1, o; i >= 0; i--)
10
10
  (o = c[i]) && (e = (r ? o(s, l, e) : o(e)) || e);
11
- return r && e && _(s, l, e), e;
11
+ return r && e && u(s, l, e), e;
12
12
  };
13
13
  const p = class p extends n {
14
14
  constructor() {
@@ -38,7 +38,7 @@ const p = class p extends n {
38
38
  `;
39
39
  }
40
40
  };
41
- p.styles = [m, u];
41
+ p.styles = [m, _];
42
42
  let t = p;
43
43
  a([
44
44
  v({ reflect: !0 })
@@ -1,15 +1,15 @@
1
1
  import { SkfElement as c } from "../../internal/components/skf-element.js";
2
2
  import { watch as h } from "../../internal/helpers/watch.js";
3
3
  import l from "../../styles/component.styles.js";
4
- import { html as f } from "lit";
5
- import { property as v, state as d } from "lit/decorators.js";
6
- import { styles as u } from "./tab-panel.styles.js";
7
- var y = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, a = (m, r, s, o) => {
8
- for (var t = o > 1 ? void 0 : o ? _(r, s) : r, i = m.length - 1, p; i >= 0; i--)
9
- (p = m[i]) && (t = (o ? p(r, s, t) : p(t)) || t);
10
- return o && t && y(r, s, t), t;
4
+ import { html as v } from "lit";
5
+ import { property as f, state as d } from "lit/decorators.js";
6
+ import { styles as y } from "./tab-panel.styles.js";
7
+ var u = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, a = (n, r, s, o) => {
8
+ for (var t = o > 1 ? void 0 : o ? _(r, s) : r, i = n.length - 1, p; i >= 0; i--)
9
+ (p = n[i]) && (t = (o ? p(r, s, t) : p(t)) || t);
10
+ return o && t && u(r, s, t), t;
11
11
  };
12
- const n = class n extends c {
12
+ const m = class m extends c {
13
13
  constructor() {
14
14
  super(), this.name = "", this.active = !1, this.role = "tabpanel";
15
15
  }
@@ -17,13 +17,13 @@ const n = class n extends c {
17
17
  this.ariaHidden = this.active ? "false" : "true", this.tabIndex = this.active ? 0 : -1;
18
18
  }
19
19
  render() {
20
- return f`<slot></slot>`;
20
+ return v`<slot></slot>`;
21
21
  }
22
22
  };
23
- n.styles = [l, u];
24
- let e = n;
23
+ m.styles = [l, y];
24
+ let e = m;
25
25
  a([
26
- v()
26
+ f()
27
27
  ], e.prototype, "name", 2);
28
28
  a([
29
29
  d()
@@ -2,13 +2,13 @@ import "../icon/icon.js";
2
2
  import { SkfElement as u } from "../../internal/components/skf-element.js";
3
3
  import f from "../../styles/component.styles.js";
4
4
  import { html as a, nothing as p } from "lit";
5
- import { property as n, query as d } from "lit/decorators.js";
5
+ import { property as l, query as d } from "lit/decorators.js";
6
6
  import { classMap as v } from "lit/directives/class-map.js";
7
7
  import { ifDefined as _ } from "lit/directives/if-defined.js";
8
8
  import { styles as k } from "./tag.styles.js";
9
9
  var b = Object.defineProperty, y = Object.getOwnPropertyDescriptor, i = (m, t, s, r) => {
10
- for (var e = r > 1 ? void 0 : r ? y(t, s) : t, l = m.length - 1, c; l >= 0; l--)
11
- (c = m[l]) && (e = (r ? c(t, s, e) : c(e)) || e);
10
+ for (var e = r > 1 ? void 0 : r ? y(t, s) : t, n = m.length - 1, c; n >= 0; n--)
11
+ (c = m[n]) && (e = (r ? c(t, s, e) : c(e)) || e);
12
12
  return r && e && b(t, s, e), e;
13
13
  };
14
14
  const h = class h extends u {
@@ -79,22 +79,22 @@ const h = class h extends u {
79
79
  h.styles = [f, k];
80
80
  let o = h;
81
81
  i([
82
- n({ reflect: !0 })
82
+ l({ reflect: !0 })
83
83
  ], o.prototype, "size", 2);
84
84
  i([
85
- n()
85
+ l()
86
86
  ], o.prototype, "icon", 2);
87
87
  i([
88
- n({ reflect: !0 })
88
+ l({ reflect: !0 })
89
89
  ], o.prototype, "color", 2);
90
90
  i([
91
- n({ attribute: !1 })
91
+ l({ attribute: !1 })
92
92
  ], o.prototype, "onClick", 1);
93
93
  i([
94
- n({ attribute: !1 })
94
+ l({ attribute: !1 })
95
95
  ], o.prototype, "onRemove", 1);
96
96
  i([
97
- n({ type: Boolean, reflect: !0 })
97
+ l({ type: Boolean, reflect: !0 })
98
98
  ], o.prototype, "removable", 2);
99
99
  i([
100
100
  d("button")
@@ -4,7 +4,7 @@ import "../../internal/components/hint/hint.js";
4
4
  import { Asterisk as c } from "../../internal/templates/asterisk.js";
5
5
  import y from "../../styles/component.styles.js";
6
6
  import { html as p, nothing as v } from "lit";
7
- import { property as r, state as f, query as b } from "lit/decorators.js";
7
+ import { property as r, state as b, query as f } from "lit/decorators.js";
8
8
  import { ifDefined as n } from "lit/directives/if-defined.js";
9
9
  import g from "./textarea.styles.js";
10
10
  var $ = Object.defineProperty, E = Object.getOwnPropertyDescriptor, e = (h, t, s, a) => {
@@ -173,10 +173,10 @@ e([
173
173
  r()
174
174
  ], i.prototype, "value", 2);
175
175
  e([
176
- f()
176
+ b()
177
177
  ], i.prototype, "invalid", 2);
178
178
  e([
179
- b("textarea")
179
+ f("textarea")
180
180
  ], i.prototype, "$input", 2);
181
181
  function _(h, t) {
182
182
  return t ? "error" : h;
@@ -1,34 +1,34 @@
1
- import { Singleton as d } from "./toast.singleton.js";
2
- import { SkfElement as f } from "../../internal/components/skf-element.js";
3
- import { html as l } from "lit";
1
+ import { Singleton as l } from "./toast.singleton.js";
2
+ import { SkfElement as d } from "../../internal/components/skf-element.js";
3
+ import { html as f } from "lit";
4
4
  import { property as s, queryAssignedNodes as y } from "lit/decorators.js";
5
- import { styles as u } from "./toast.styles.js";
6
- var a = Object.defineProperty, e = (n, r, h, g) => {
7
- for (var i = void 0, o = n.length - 1, m; o >= 0; o--)
8
- (m = n[o]) && (i = m(r, h, i) || i);
9
- return i && a(r, h, i), i;
5
+ import { styles as a } from "./toast.styles.js";
6
+ var u = Object.defineProperty, e = (n, o, h, g) => {
7
+ for (var i = void 0, r = n.length - 1, m; r >= 0; r--)
8
+ (m = n[r]) && (i = m(o, h, i) || i);
9
+ return i && u(o, h, i), i;
10
10
  };
11
- const p = class p extends f {
11
+ const p = class p extends d {
12
12
  constructor() {
13
13
  super(), this.debug = !1, this.persistent = !1, this.severity = "info", this.timer = 5, this._singleton = void 0;
14
14
  }
15
15
  firstUpdated() {
16
- this._singleton = new d(this.getRootNode()), this._singleton.addData({
16
+ this._singleton = new l(this.getRootNode()), this._singleton.addData({
17
17
  debug: this.debug,
18
18
  icon: this.icon,
19
19
  originEl: this,
20
20
  persistent: this.persistent,
21
21
  severity: this.severity,
22
- text: this._slottedText.map((r) => r.textContent).join(),
22
+ text: this._slottedText.map((o) => o.textContent).join(),
23
23
  timer: this.timer = this.timer && this.timer < 5 ? 5 : this.timer,
24
24
  topOffset: this.topOffset
25
25
  });
26
26
  }
27
27
  render() {
28
- return l`<slot></slot>`;
28
+ return f`<slot></slot>`;
29
29
  }
30
30
  };
31
- p.styles = [u];
31
+ p.styles = [a];
32
32
  let t = p;
33
33
  e([
34
34
  s({ type: Boolean })
@@ -3,12 +3,12 @@ import d from "../../styles/component.styles.js";
3
3
  import { html as m } from "lit";
4
4
  import { property as p, queryAssignedElements as a } from "lit/decorators.js";
5
5
  import { styles as u } from "./toast-wrapper.styles.js";
6
- var y = Object.defineProperty, s = (l, n, i, g) => {
7
- for (var t = void 0, r = l.length - 1, f; r >= 0; r--)
8
- (f = l[r]) && (t = f(n, i, t) || t);
9
- return t && y(n, i, t), t;
6
+ var y = Object.defineProperty, r = (l, i, n, g) => {
7
+ for (var t = void 0, o = l.length - 1, f; o >= 0; o--)
8
+ (f = l[o]) && (t = f(i, n, t) || t);
9
+ return t && y(i, n, t), t;
10
10
  };
11
- const o = class o extends h {
11
+ const s = class s extends h {
12
12
  constructor() {
13
13
  super(...arguments), this.debug = !1, this._handleSlotChange = () => {
14
14
  this._slottedChildren.length === 0 && this.remove();
@@ -21,15 +21,15 @@ const o = class o extends h {
21
21
  return m`<slot @slotchange=${this._handleSlotChange}></slot>`;
22
22
  }
23
23
  };
24
- o.styles = [d, u];
25
- let e = o;
26
- s([
24
+ s.styles = [d, u];
25
+ let e = s;
26
+ r([
27
27
  p({ type: Boolean, reflect: !0 })
28
28
  ], e.prototype, "debug");
29
- s([
29
+ r([
30
30
  a()
31
31
  ], e.prototype, "_slottedChildren");
32
- s([
32
+ r([
33
33
  p({ type: Number, reflect: !0 })
34
34
  ], e.prototype, "topOffset");
35
35
  export {
@@ -5,10 +5,10 @@ const t = class t extends s {
5
5
  super(), this.arrow = !0, this.offset = 8, this.placement = "top", s.classMap = { tooltip: !0 };
6
6
  }
7
7
  addEventListeners(e) {
8
- e.addEventListener("mouseenter", this.open), e.addEventListener("mouseleave", this.close);
8
+ e.addEventListener("blur", this.close), e.addEventListener("focus", this.open), e.addEventListener("mouseenter", this.open), e.addEventListener("mouseleave", this.close);
9
9
  }
10
10
  removeEventListeners(e) {
11
- e.removeEventListener("mouseenter", this.open), e.removeEventListener("mouseleave", this.close);
11
+ e.addEventListener("blur", this.close), e.addEventListener("focus", this.open), e.removeEventListener("mouseenter", this.open), e.removeEventListener("mouseleave", this.close);
12
12
  }
13
13
  };
14
14
  t.styles = [s.styles, o];