bitboss-ui 2.1.32 → 2.1.33

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 (188) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +6 -6
  2. package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +2 -2
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -0
  4. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +27 -36
  5. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +5 -1
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +25 -32
  7. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +26 -31
  8. package/dist/components/{CommonPopover.vue.d.ts → CommonPopover2.vue.d.ts} +2 -7
  9. package/dist/composables/useCancelableFunction.d.ts +17 -0
  10. package/dist/index.css +1 -1
  11. package/dist/index106.js +9 -9
  12. package/dist/index111.js +1 -1
  13. package/dist/index113.js +1 -1
  14. package/dist/index121.js +11 -11
  15. package/dist/index129.js +1 -1
  16. package/dist/index13.js +1 -1
  17. package/dist/index131.js +111 -93
  18. package/dist/index133.js +1 -1
  19. package/dist/index135.js +2 -2
  20. package/dist/index139.js +1 -1
  21. package/dist/index140.js +292 -250
  22. package/dist/index141.js +1 -1
  23. package/dist/index142.js +2 -2
  24. package/dist/index15.js +72 -74
  25. package/dist/index17.js +3 -3
  26. package/dist/index19.js +8 -8
  27. package/dist/index21.js +15 -15
  28. package/dist/index212.js +3 -3
  29. package/dist/index213.js +2 -2
  30. package/dist/index214.js +2 -2
  31. package/dist/index215.js +13 -4
  32. package/dist/index216.js +2 -2
  33. package/dist/index217.js +7 -5
  34. package/dist/index218.js +3 -20
  35. package/dist/index219.js +80 -191
  36. package/dist/index221.js +28 -116
  37. package/dist/index222.js +19 -0
  38. package/dist/index223.js +49 -32
  39. package/dist/index224.js +15 -86
  40. package/dist/index225.js +5 -0
  41. package/dist/index226.js +11 -28
  42. package/dist/index227.js +14 -15
  43. package/dist/index228.js +2 -51
  44. package/dist/index229.js +2 -15
  45. package/dist/index23.js +153 -153
  46. package/dist/index230.js +6 -3
  47. package/dist/index231.js +16 -12
  48. package/dist/index232.js +9 -15
  49. package/dist/index233.js +3 -2
  50. package/dist/index234.js +9 -2
  51. package/dist/index235.js +121 -2
  52. package/dist/index237.js +23 -5
  53. package/dist/index238.js +4 -5
  54. package/dist/index239.js +23 -5
  55. package/dist/index240.js +5 -5
  56. package/dist/index241.js +5 -5
  57. package/dist/index242.js +5 -5
  58. package/dist/index243.js +5 -2
  59. package/dist/index244.js +5 -8
  60. package/dist/index245.js +5 -250
  61. package/dist/index246.js +5 -52
  62. package/dist/index247.js +2 -44
  63. package/dist/index248.js +8 -5
  64. package/dist/index249.js +243 -53
  65. package/dist/index25.js +1 -1
  66. package/dist/index250.js +52 -4
  67. package/dist/index251.js +44 -3
  68. package/dist/index252.js +5 -13
  69. package/dist/index253.js +54 -100
  70. package/dist/index254.js +108 -0
  71. package/dist/{index255.js → index256.js} +2 -2
  72. package/dist/index258.js +2 -183
  73. package/dist/index259.js +4 -7
  74. package/dist/index260.js +5 -2
  75. package/dist/index261.js +2 -2
  76. package/dist/index262.js +19 -6
  77. package/dist/index263.js +2 -7
  78. package/dist/index264.js +6 -17
  79. package/dist/index265.js +7 -12
  80. package/dist/index266.js +33 -5
  81. package/dist/index267.js +2 -229
  82. package/dist/index268.js +18 -5
  83. package/dist/index269.js +11 -9
  84. package/dist/index27.js +1 -1
  85. package/dist/index270.js +229 -3
  86. package/dist/index271.js +3 -9
  87. package/dist/index272.js +4 -23
  88. package/dist/index273.js +197 -3
  89. package/dist/index275.js +183 -6
  90. package/dist/index276.js +7 -16
  91. package/dist/index277.js +9 -9
  92. package/dist/index278.js +9 -8
  93. package/dist/index279.js +8 -33
  94. package/dist/index280.js +33 -28
  95. package/dist/index281.js +30 -0
  96. package/dist/index283.js +2 -5
  97. package/dist/index284.js +5 -8
  98. package/dist/index285.js +67 -2
  99. package/dist/index286.js +7 -5
  100. package/dist/index287.js +11 -3
  101. package/dist/index288.js +5 -3
  102. package/dist/index289.js +3 -7
  103. package/dist/index29.js +3 -3
  104. package/dist/index290.js +17 -11
  105. package/dist/index291.js +28 -2
  106. package/dist/index292.js +718 -4
  107. package/dist/index293.js +366 -3
  108. package/dist/index294.js +55 -14
  109. package/dist/index295.js +3 -28
  110. package/dist/index296.js +280 -4
  111. package/dist/index297.js +2 -5
  112. package/dist/index298.js +13 -277
  113. package/dist/index299.js +2 -2
  114. package/dist/index300.js +9 -9
  115. package/dist/index302.js +17 -14
  116. package/dist/index304.js +12 -16
  117. package/dist/index306.js +15 -11
  118. package/dist/index308.js +23 -15
  119. package/dist/index31.js +2 -2
  120. package/dist/index310.js +2 -27
  121. package/dist/index311.js +2 -2
  122. package/dist/index312.js +1 -1
  123. package/dist/index313.js +1 -1
  124. package/dist/index314.js +21 -1
  125. package/dist/index316.js +3 -22
  126. package/dist/index317.js +5 -0
  127. package/dist/index318.js +6 -3
  128. package/dist/index319.js +4 -3
  129. package/dist/index320.js +124 -5
  130. package/dist/index321.js +2 -2
  131. package/dist/index322.js +2 -125
  132. package/dist/index324.js +3 -5
  133. package/dist/index325.js +5 -718
  134. package/dist/index326.js +8 -366
  135. package/dist/index327.js +2 -58
  136. package/dist/index328.js +7 -0
  137. package/dist/index329.js +1 -1
  138. package/dist/index33.js +8 -8
  139. package/dist/index330.js +4 -2
  140. package/dist/index331.js +92 -7
  141. package/dist/index332.js +34 -5
  142. package/dist/index333.js +6 -8
  143. package/dist/index334.js +128 -57
  144. package/dist/index335.js +367 -56
  145. package/dist/index336.js +56 -6
  146. package/dist/index337.js +57 -128
  147. package/dist/index338.js +2 -369
  148. package/dist/index339.js +6 -6
  149. package/dist/index340.js +6 -18
  150. package/dist/index341.js +17 -226
  151. package/dist/index342.js +46 -6
  152. package/dist/index343.js +7 -46
  153. package/dist/index344.js +5 -92
  154. package/dist/index345.js +7 -128
  155. package/dist/index346.js +223 -431
  156. package/dist/index347.js +123 -121
  157. package/dist/index348.js +421 -473
  158. package/dist/index349.js +125 -48
  159. package/dist/index35.js +3 -3
  160. package/dist/index350.js +490 -0
  161. package/dist/index351.js +52 -0
  162. package/dist/index37.js +263 -271
  163. package/dist/index39.js +7 -7
  164. package/dist/index41.js +2 -2
  165. package/dist/index43.js +8 -8
  166. package/dist/index45.js +6 -6
  167. package/dist/index49.js +1 -1
  168. package/dist/index55.js +1 -1
  169. package/dist/index57.js +2 -2
  170. package/dist/index61.js +2 -2
  171. package/dist/index79.js +206 -182
  172. package/dist/index81.js +1 -1
  173. package/dist/index83.js +2 -2
  174. package/dist/index85.js +1 -1
  175. package/dist/index87.js +1 -1
  176. package/dist/index90.js +1 -1
  177. package/dist/index92.js +1 -1
  178. package/dist/index94.js +121 -117
  179. package/dist/index96.js +1 -1
  180. package/dist/utilities/functions/extractDomContainer.d.ts +1 -0
  181. package/dist/utilities/functions/parseWidthString.d.ts +6 -0
  182. package/package.json +2 -2
  183. package/dist/index236.js +0 -7
  184. package/dist/index257.js +0 -4
  185. package/dist/index274.js +0 -11
  186. package/dist/index282.js +0 -69
  187. package/dist/index315.js +0 -4
  188. package/dist/index323.js +0 -4
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as P, mergeModels as T, useModel as q, computed as v, ref as z, watch as A, onMounted as H, createElementBlock as r, openBlock as d, withModifiers as K, normalizeStyle as R, normalizeClass as U, unref as p, createCommentVNode as y, Fragment as j, createElementVNode as t, renderSlot as l, createTextVNode as G, toDisplayString as D, nextTick as J } from "vue";
2
- import { parseSize as Q } from "./index252.js";
2
+ import { parseSize as Q } from "./index215.js";
3
3
  import { useId as S } from "./index8.js";
4
4
  import { useLocale as X } from "./index216.js";
5
5
  import { useMobile as Y } from "./index9.js";
package/dist/index92.js CHANGED
@@ -3,7 +3,7 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
3
3
  /* empty css */
4
4
  import P from "./index13.js";
5
5
  /* empty css */
6
- import { debounce as X } from "./index274.js";
6
+ import { debounce as X } from "./index277.js";
7
7
  import { useLocale as H } from "./index216.js";
8
8
  import { useRoute as J } from "./index145.js";
9
9
  const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
package/dist/index94.js CHANGED
@@ -1,13 +1,16 @@
1
- import { defineComponent as V, ref as m, computed as g, createBlock as k, openBlock as y, unref as l, normalizeClass as D, withCtx as v, createElementVNode as d, createCommentVNode as M, renderSlot as C, toDisplayString as z, normalizeProps as I, guardReactiveProps as O, nextTick as S } from "vue";
2
- import { useId as H } from "./index8.js";
3
- import { useIntersectionObserver as N } from "./index140.js";
4
- import { useLocale as U } from "./index216.js";
5
- import { useUntil as W } from "./index217.js";
6
- import q from "./index13.js";
1
+ import { defineComponent as R, ref as k, computed as l, useTemplateRef as S, createElementBlock as I, openBlock as y, Fragment as N, renderSlot as C, createVNode as O, normalizeProps as W, guardReactiveProps as A, unref as m, mergeProps as H, withCtx as $, createElementVNode as i, createBlock as U, createCommentVNode as q, toDisplayString as z, nextTick as F } from "vue";
2
+ import { useId as j } from "./index8.js";
3
+ import { useIntersectionObserver as G } from "./index140.js";
4
+ import { useLocale as J } from "./index216.js";
5
+ import { useUntil as K } from "./index217.js";
6
+ import Q from "./index13.js";
7
7
  /* empty css */
8
- import A from "./index221.js";
8
+ import X from "./index235.js";
9
9
  /* empty css */
10
- const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
10
+ import { extractDomContainer as f } from "./index238.js";
11
+ import { parseWidthString as Y } from "./index239.js";
12
+ const Z = ["inert"], x = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ R({
13
+ inheritAttrs: !1,
11
14
  __name: "BbPopover",
12
15
  props: {
13
16
  arrowPadding: { default: 10 },
@@ -25,126 +28,127 @@ const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @
25
28
  width: {}
26
29
  },
27
30
  emits: ["shown", "hidden"],
28
- setup($, { expose: L, emit: _ }) {
29
- const t = $, n = _, { t: B } = U(), { id: P } = H(), p = `bbp_${P.value}`, r = m(), c = m();
30
- N(
31
- r,
31
+ setup(L, { expose: B, emit: P }) {
32
+ const a = L, r = P, { t: D } = J(), { id: T } = j(), v = `bbp_${T.value}`, d = k(), p = l(() => f(d.value)), _ = S("popover"), c = l(() => f(_.value)), t = k(!1), b = K(t), E = (e) => {
33
+ const o = f(e);
34
+ o && (d.value = o);
35
+ };
36
+ G(
37
+ p,
32
38
  async ([{ intersectionRatio: e }]) => {
33
- e !== 1 && o.value && (await s(), n("hidden"));
39
+ e !== 1 && t.value && (await n(), r("hidden"));
34
40
  },
35
41
  { threshold: [0, 1] }
36
42
  );
37
- const o = m(!1), u = W(o), b = (e) => {
38
- var a;
39
- if (e.target instanceof HTMLElement && !((a = c.value) != null && a.contains(e.target)))
40
- return s();
41
- }, T = async () => {
42
- o.value = !0, document.addEventListener("click", b, { passive: !0 });
43
- }, s = async () => {
44
- o.value = !1, document.removeEventListener("click", b);
45
- }, w = async (e) => {
46
- var h;
47
- if (o.value) {
48
- await s(), n("hidden");
43
+ const g = (e) => {
44
+ var o;
45
+ if (e.target instanceof HTMLElement && !((o = c.value) != null && o.contains(e.target)))
46
+ return n();
47
+ }, V = async () => {
48
+ t.value = !0, document.addEventListener("click", g, { passive: !0 });
49
+ }, n = async () => {
50
+ t.value = !1, document.removeEventListener("click", g);
51
+ }, h = async (e) => {
52
+ var w;
53
+ if (t.value) {
54
+ await n(), r("hidden");
49
55
  return;
50
56
  }
51
- if (t.disabled)
57
+ if (a.disabled)
52
58
  return;
53
- e.stopImmediatePropagation(), await T();
54
- let a = t.focusTarget ?? ".bb-popover__close";
55
- await S();
56
- const i = (h = c.value) == null ? void 0 : h.querySelector(a);
57
- i instanceof HTMLElement && (i.focus(), n("shown"));
58
- }, f = async () => {
59
- await s(), n("hidden");
60
- }, E = g(() => {
61
- if (t.width) {
62
- let e;
63
- return typeof t.width == "string" && /^\d+[a-zA-Z%]+$/.test(t.width) ? t.width.includes("%") ? r.value ? `${r.value.$el.clientWidth * (+t.width.replace("%", "") / 100)}px` : void 0 : t.width : (e = `${t.width}px`, `${e}px`);
59
+ e.stopImmediatePropagation(), await V();
60
+ let o = a.focusTarget ?? ".bb-popover__close";
61
+ await F();
62
+ const s = (w = c.value) == null ? void 0 : w.querySelector(o);
63
+ s instanceof HTMLElement && (s.focus(), r("shown"));
64
+ }, u = async () => {
65
+ await n(), r("hidden");
66
+ }, M = l(() => {
67
+ if (a.width) {
68
+ const { value: e, unit: o } = Y(a.width);
69
+ return o === "%" ? p.value ? `${p.value.clientWidth * (e / 100)}px` : "0px" : `${e}px`;
64
70
  }
65
71
  });
66
- return L({
67
- open: w,
68
- close: f,
69
- closed: g(() => !o.value)
70
- }), (e, a) => (y(), k(A, {
71
- ref_key: "wrapper",
72
- ref: r,
73
- modelValue: o.value,
74
- "onUpdate:modelValue": a[0] || (a[0] = (i) => o.value = i),
75
- "arrow-padding": e.arrowPadding,
76
- block: e.block,
77
- class: D(["bb-popover", {
78
- [`bb-popover--${e.theme}`]: !0
79
- }]),
80
- "container-attributes": {
81
- id: `popover_${p}`,
82
- style: {
83
- width: E.value
84
- }
85
- },
86
- dialog: "",
87
- offset: e.offset,
88
- padding: e.padding,
89
- placement: e.placement,
90
- "render-content": l(u),
91
- "transition-duration": e.transitionDuration
92
- }, {
93
- activator: v(() => [
94
- C(e.$slots, "activator", I(O({
95
- props: {
96
- "aria-expanded": l(u) ? o.value : !1,
97
- "aria-controls": l(u) ? `popover_${p}` : void 0,
98
- onClick: w,
99
- id: p,
100
- disabled: !!e.disabled
101
- },
72
+ return B({
73
+ open: h,
74
+ close: u,
75
+ closed: l(() => !t.value)
76
+ }), (e, o) => (y(), I(N, null, [
77
+ C(e.$slots, "activator", W(A({
78
+ props: {
79
+ "aria-expanded": m(b) ? t.value : !1,
80
+ "aria-controls": m(b) ? `popover_${v}` : void 0,
81
+ onClick: h,
82
+ id: v,
102
83
  disabled: !!e.disabled,
103
- open: o.value,
104
- placement: e.placement
105
- })))
106
- ]),
107
- default: v(() => [
108
- d("span", {
109
- ref_key: "content",
110
- ref: c,
111
- class: "bb-popover__content",
112
- inert: !o.value
113
- }, [
114
- e.showClose ? (y(), k(q, {
115
- key: 0,
116
- class: "bb-popover__close",
117
- onClick: f
118
- }, {
119
- default: v(() => [
120
- d("span", Z, z(e.closeLabel || l(B)("common.closeLabel").value), 1),
121
- a[1] || (a[1] = d("svg", {
122
- fill: "none",
123
- viewBox: "0 0 24 24",
124
- xmlns: "http://www.w3.org/2000/svg"
125
- }, [
126
- d("path", {
127
- d: "M23 23L1 1M23 1L1 23",
128
- stroke: "currentColor",
129
- "stroke-linecap": "round",
130
- "stroke-width": "2"
131
- })
132
- ], -1))
133
- ]),
134
- _: 1
135
- })) : M("", !0),
136
- C(e.$slots, "default", {
137
- close: f,
138
- disabled: !!e.disabled,
139
- open: o.value,
140
- placement: e.placement
141
- })
142
- ], 8, R)
143
- ]),
144
- _: 3
145
- }, 8, ["modelValue", "arrow-padding", "block", "class", "container-attributes", "offset", "padding", "placement", "render-content", "transition-duration"]));
84
+ ref: E
85
+ },
86
+ disabled: !!e.disabled,
87
+ open: t.value,
88
+ placement: e.placement
89
+ }))),
90
+ O(X, H({
91
+ id: "popover_${id}",
92
+ ref: "popover",
93
+ modelValue: t.value,
94
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
95
+ anchor: d.value,
96
+ "arrow-padding": e.arrowPadding,
97
+ class: ["bb-popover", {
98
+ [`bb-popover--${e.theme}`]: !0
99
+ }],
100
+ dialog: "",
101
+ eager: e.eager,
102
+ offset: e.offset,
103
+ padding: e.padding,
104
+ placement: e.placement,
105
+ style: {
106
+ width: M.value
107
+ },
108
+ "transition-duration": e.transitionDuration
109
+ }, e.$attrs), {
110
+ default: $(() => [
111
+ i("span", {
112
+ ref_key: "popoverDom",
113
+ ref: c,
114
+ class: "bb-popover__content",
115
+ inert: !t.value
116
+ }, [
117
+ e.showClose ? (y(), U(Q, {
118
+ key: 0,
119
+ class: "bb-popover__close",
120
+ onClick: u
121
+ }, {
122
+ default: $(() => [
123
+ i("span", x, z(e.closeLabel || m(D)("common.closeLabel").value), 1),
124
+ o[1] || (o[1] = i("svg", {
125
+ fill: "none",
126
+ viewBox: "0 0 24 24",
127
+ xmlns: "http://www.w3.org/2000/svg"
128
+ }, [
129
+ i("path", {
130
+ d: "M23 23L1 1M23 1L1 23",
131
+ stroke: "currentColor",
132
+ "stroke-linecap": "round",
133
+ "stroke-width": "2"
134
+ })
135
+ ], -1))
136
+ ]),
137
+ _: 1
138
+ })) : q("", !0),
139
+ C(e.$slots, "default", {
140
+ close: u,
141
+ disabled: !!e.disabled,
142
+ open: t.value,
143
+ placement: e.placement
144
+ })
145
+ ], 8, Z)
146
+ ]),
147
+ _: 3
148
+ }, 16, ["modelValue", "anchor", "arrow-padding", "class", "eager", "offset", "padding", "placement", "style", "transition-duration"])
149
+ ], 64));
146
150
  }
147
151
  });
148
152
  export {
149
- ee as default
153
+ ce as default
150
154
  };
package/dist/index96.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, createElementBlock as l, openBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index214.js";
2
+ import { clamp as p } from "./index213.js";
3
3
  import { getAsPercentageBetween as i } from "./index139.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
@@ -0,0 +1 @@
1
+ export declare function extractDomContainer(target: unknown): HTMLElement | null;
@@ -0,0 +1,6 @@
1
+ interface ParsedWidth {
2
+ value: number;
3
+ unit: string;
4
+ }
5
+ export declare function parseWidthString(width: number | string): ParsedWidth;
6
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.1.32",
3
+ "version": "2.1.33",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -92,4 +92,4 @@
92
92
  "lint-staged": {
93
93
  "*.{js,css,md,html,json,vue,ts}": "prettier --write"
94
94
  }
95
- }
95
+ }
package/dist/index236.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index320.js";
2
- import { __require as o } from "./index298.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
5
- export {
6
- s as default
7
- };
package/dist/index257.js DELETED
@@ -1,4 +0,0 @@
1
- const n = (t) => t == null || Number.isNaN(t) || typeof t == "object" && Object.keys(t).length === 0 || typeof t == "string" && t.trim().length === 0 || t instanceof Map && [...t.keys()].length === 0 || t instanceof Set && [...t.keys()].length === 0;
2
- export {
3
- n as isEmpty
4
- };
package/dist/index274.js DELETED
@@ -1,11 +0,0 @@
1
- function u(e, i) {
2
- let t;
3
- return function(...o) {
4
- t !== void 0 && clearTimeout(t), t = setTimeout(() => {
5
- e.apply(this, o);
6
- }, i);
7
- };
8
- }
9
- export {
10
- u as debounce
11
- };
package/dist/index282.js DELETED
@@ -1,69 +0,0 @@
1
- import { defineComponent as d, createElementBlock as l, openBlock as o, normalizeClass as u, createElementVNode as t, createBlock as i, createCommentVNode as s, unref as f, withCtx as g, toDisplayString as n } from "vue";
2
- import { useLocale as k } from "./index216.js";
3
- import h from "./index13.js";
4
- /* empty css */
5
- import C from "./index85.js";
6
- /* empty css */
7
- const w = { class: "bb-toast-message__icon-container" }, v = { class: "bb-toast-message__content" }, y = {
8
- key: 1,
9
- class: "bb-toast-message__title"
10
- }, B = { class: "bb-toast-message__text" }, z = /* @__PURE__ */ d({
11
- __name: "BbToastMessage",
12
- props: {
13
- title: {},
14
- text: {},
15
- icon: {},
16
- theme: { default: "default" },
17
- id: {},
18
- showClose: { type: Boolean }
19
- },
20
- emits: ["click:close"],
21
- setup(r, { emit: c }) {
22
- const m = r, p = c, { t: _ } = k(), b = () => {
23
- p("click:close", m.id);
24
- };
25
- return (e, a) => (o(), l("div", {
26
- "aria-atomic": "true",
27
- "aria-live": "polite",
28
- "aria-role": "alert",
29
- class: u(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
30
- }, [
31
- t("div", w, [
32
- e.icon ? (o(), i(C, {
33
- key: 0,
34
- class: "bb-toast-message__icon",
35
- type: e.icon
36
- }, null, 8, ["type"])) : s("", !0)
37
- ]),
38
- t("div", v, [
39
- e.showClose ? (o(), i(h, {
40
- key: 0,
41
- "aria-label": f(_)("common.closeLabel").value,
42
- class: "bb-toast-message__close",
43
- onClick: b
44
- }, {
45
- default: g(() => a[0] || (a[0] = [
46
- t("svg", {
47
- fill: "none",
48
- viewBox: "0 0 24 24",
49
- xmlns: "http://www.w3.org/2000/svg"
50
- }, [
51
- t("path", {
52
- d: "M23 23L1 1M23 1L1 23",
53
- stroke: "currentColor",
54
- "stroke-linecap": "round",
55
- "stroke-width": "2"
56
- })
57
- ], -1)
58
- ])),
59
- _: 1
60
- }, 8, ["aria-label"])) : s("", !0),
61
- e.title ? (o(), l("p", y, n(e.title), 1)) : s("", !0),
62
- t("p", B, n(e.text), 1)
63
- ])
64
- ], 2));
65
- }
66
- });
67
- export {
68
- z as default
69
- };
package/dist/index315.js DELETED
@@ -1,4 +0,0 @@
1
- import f from "./index249.js";
2
- export {
3
- f as default
4
- };
package/dist/index323.js DELETED
@@ -1,4 +0,0 @@
1
- var o = { exports: {} };
2
- export {
3
- o as __module
4
- };