bitboss-ui 3.0.0-beta.75 → 3.0.0-beta.76

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 (169) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbBreadcrumbs.md +1 -1
  5. package/dist/ai/BbButton.md +2 -2
  6. package/dist/ai/BbColorInput.md +1 -1
  7. package/dist/ai/BbColorPalette.md +1 -1
  8. package/dist/ai/BbConfirm.md +1 -1
  9. package/dist/ai/BbDatePicker.md +1 -1
  10. package/dist/ai/BbDatePickerInput.md +1 -1
  11. package/dist/ai/BbDialog.md +3 -2
  12. package/dist/ai/BbDropdown.md +23 -21
  13. package/dist/ai/BbDropdownButton.md +13 -11
  14. package/dist/ai/BbGallery.md +3 -2
  15. package/dist/ai/BbIcon.md +10 -10
  16. package/dist/ai/BbOffCanvas.md +3 -2
  17. package/dist/ai/BbPopover.md +1 -1
  18. package/dist/ai/BbSelect.md +153 -43
  19. package/dist/ai/BbSelectPopover.md +115 -9
  20. package/dist/ai/BbTable.md +1 -1
  21. package/dist/ai/BbTimePicker.md +1 -1
  22. package/dist/ai/BbTimePickerInput.md +1 -1
  23. package/dist/ai/GroupedListBox.md +2 -2
  24. package/dist/ai/ListBox.md +3 -2
  25. package/dist/ai/changelog.json +153 -7
  26. package/dist/ai/components.json +12 -12
  27. package/dist/ai/guides/agent-contract.md +1 -1
  28. package/dist/ai/guides/calendars-and-digits.md +1 -1
  29. package/dist/ai/guides/eslint-rules.md +1 -1
  30. package/dist/ai/guides/icons-policy.md +32 -11
  31. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  32. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  33. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  34. package/dist/ai/guides/migration/v2-to-v3.md +48 -19
  35. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  36. package/dist/ai/guides/passthrough.md +58 -58
  37. package/dist/ai/helpers/inertia/manifest.json +1 -1
  38. package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
  39. package/dist/ai/manifest/components/BbDropdown.json +19 -17
  40. package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
  41. package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
  42. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  43. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  44. package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
  45. package/dist/ai/manifest/components/BbSelect.json +44 -40
  46. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  47. package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
  48. package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
  49. package/dist/ai/manifest/components/BbTable.tree.json +5 -1
  50. package/dist/ai/manifest/components/GroupedListBox.json +1 -1
  51. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  52. package/dist/ai/manifest/components/ListBox.json +1 -1
  53. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  54. package/dist/ai/manifest/index.json +2 -2
  55. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  56. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  57. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  58. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  59. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  60. package/dist/ai/recipes/vue/onboarding.md +2 -2
  61. package/dist/ai/source/BbAccordion.md +4 -5
  62. package/dist/ai/source/BbAvatar.md +9 -2
  63. package/dist/ai/source/BbBadge.md +6 -2
  64. package/dist/ai/source/BbBreadcrumbs.md +5 -2
  65. package/dist/ai/source/BbCalendar.md +8 -6
  66. package/dist/ai/source/BbCarousel.md +10 -6
  67. package/dist/ai/source/BbColorPalette.md +5 -2
  68. package/dist/ai/source/BbDatePickerInput.md +7 -2
  69. package/dist/ai/source/BbDropdown.md +91 -66
  70. package/dist/ai/source/BbDropdownButton.md +36 -19
  71. package/dist/ai/source/BbDropdownGroup.md +91 -66
  72. package/dist/ai/source/BbGallery.md +6 -5
  73. package/dist/ai/source/BbPagination.md +12 -28
  74. package/dist/ai/source/BbRating.md +4 -4
  75. package/dist/ai/source/BbSelect.md +130 -106
  76. package/dist/ai/source/BbSelectPopover.md +128 -21
  77. package/dist/ai/source/BbTable.md +42 -9
  78. package/dist/ai/source/BbTimePickerInput.md +6 -2
  79. package/dist/ai/source/ClearableButton.md +4 -2
  80. package/dist/ai/source/ErrorIcon.md +4 -3
  81. package/dist/ai/source/FlatListBox.md +7 -2
  82. package/dist/ai/source/GroupedListBox.md +22 -3
  83. package/dist/ai/source/ListBox.md +7 -1
  84. package/dist/ai/source/WarningIcon.md +4 -3
  85. package/dist/assets/svgs/close.svg_raw.js +1 -1
  86. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  87. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  88. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
  89. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
  90. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
  91. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  92. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  93. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
  94. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  95. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
  96. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  97. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
  98. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
  99. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
  100. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
  101. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
  102. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
  103. package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
  104. package/dist/components/BbDropdown/types.d.ts +51 -53
  105. package/dist/components/BbDropdown/types.js +2 -0
  106. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
  107. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
  108. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
  109. package/dist/components/BbDropdownButton/types.d.ts +12 -10
  110. package/dist/components/BbDropdownButton/types.js +2 -0
  111. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  112. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
  113. package/dist/components/BbIcon/iconCache.js +1 -1
  114. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  115. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  116. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  117. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  118. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  119. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  120. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  121. package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
  122. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
  123. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  124. package/dist/components/BbSelect/types.d.ts +101 -105
  125. package/dist/components/BbSelect/types.js +1 -27
  126. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
  127. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
  128. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  129. package/dist/components/BbSelectPopover/types.d.ts +22 -13
  130. package/dist/components/BbSelectPopover/types.js +3 -1
  131. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  132. package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
  133. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
  134. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  135. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  136. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
  137. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
  138. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
  139. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
  140. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  141. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  142. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  143. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  144. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
  145. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
  146. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  147. package/dist/composables/useInternalIcon.js +25 -0
  148. package/dist/icon-scan.d.ts +1 -1
  149. package/dist/llms-full.txt +477 -187
  150. package/dist/llms-medium.txt +25 -24
  151. package/dist/llms.txt +1 -1
  152. package/dist/nuxt.js +1 -1
  153. package/dist/styles.css +2 -2
  154. package/dist/types/Config.d.ts +8 -1
  155. package/dist/types/ConfigDefaults.d.ts +10 -2
  156. package/dist/types/internalIcons.d.ts +89 -0
  157. package/dist/types/internalIcons.js +158 -0
  158. package/dist/types/ptComponentMap.d.ts +4 -4
  159. package/dist/utils/configDefaults.js +75 -64
  160. package/dist/utils/iconsOption.js +48 -0
  161. package/dist/utils/versionCheck.js +1 -1
  162. package/dist/vite-plugin.d.ts +10 -16
  163. package/dist/vite.js +319 -306
  164. package/llms.txt +1 -1
  165. package/package.json +1 -1
  166. package/scripts/lib/adoption-checklist.json +1 -1
  167. package/scripts/lib/update-install.mjs +48 -0
  168. package/scripts/lib/validate-bb-markup.mjs +73 -12
  169. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -3,12 +3,13 @@ import t from "../../assets/svgs/x.svg_raw.js";
3
3
  import { useLocale as n } from "../../composables/useLocale.js";
4
4
  import { useConfig as ee } from "../../composables/useConfig.js";
5
5
  import r from "../BbIcon/BbIcon.vue.js";
6
- import te from "../BbSpinner/BbSpinner.vue.js";
7
- import ne from "../BbButton/BbButton.vue.js";
8
- import { namedToastPortalRegistry as re } from "../../composables/useToast.js";
9
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as ie, defineComponent as u, mergeProps as d, normalizeProps as f, onBeforeUnmount as ae, onMounted as oe, openBlock as p, ref as m, renderList as se, resolveDynamicComponent as h, toDisplayString as g, unref as _, watch as v } from "vue";
6
+ import i from "../BbSpinner/BbSpinner.vue.js";
7
+ import te from "../BbButton/BbButton.vue.js";
8
+ import { namedToastPortalRegistry as ne } from "../../composables/useToast.js";
9
+ import { useInternalIcon as re } from "../../composables/useInternalIcon.js";
10
+ import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as ie, defineComponent as d, mergeProps as f, normalizeProps as p, onBeforeUnmount as m, onMounted as ae, openBlock as h, ref as g, renderList as oe, resolveDynamicComponent as _, toDisplayString as v, unref as y, watch as b } from "vue";
10
11
  // src/components/BbToast/BbToastMessage.vue?vue&type=script&setup=true&lang.ts
11
- var ce = ["aria-live", "role"], le = ["aria-label"], ue = 3, y = 4e3, b = /*@__PURE__*/ u({
12
+ var se = ["aria-live", "role"], ce = ["aria-label"], le = 3, x = 4e3, S = /*@__PURE__*/ d({
12
13
  __name: "BbToastMessage",
13
14
  props: {
14
15
  toast: {},
@@ -21,141 +22,141 @@ var ce = ["aria-live", "role"], le = ["aria-label"], ue = 3, y = 4e3, b = /*@__P
21
22
  passthrough: {}
22
23
  },
23
24
  emits: ["height", "dismiss"],
24
- setup(u, { emit: b }) {
25
- let x = u, S = b, C = (e) => x.passthrough?.part?.(e, { loading: !!x.toast.loading }, void 0, x.toast.variant), { t: de } = n(), w = m(), T = m(), E = m(!1), D = m(0), fe = a(() => x.frontIndex === 0), O = a(() => x.frontIndex < ue), pe = a(() => !Number.isFinite(x.toast.duration ?? y)), me = a(() => !x.toast.hideClose), k = a(() => x.toast.variant === "destructive" || x.toast.variant === "warning"), he = a(() => k.value ? "alert" : "status"), ge = a(() => !O.value || x.toast.removed ? "off" : k.value ? "assertive" : "polite"), _e = ee(), A = a(() => x.toast.hideIcon ? void 0 : x.toast.icon ?? _e.variantIcons?.toast?.[x.toast.variant]), ve = a(() => x.toast.loading || !!A.value), j = a(() => typeof x.toast.portal == "string" ? re.get(x.toast.portal) ?? null : null), M = a(() => x.toast.portal && typeof x.toast.portal != "string" ? x.toast.portal : null), N = a(() => !!j.value || !!M.value), P = a(() => ({
26
- toast: x.toast,
27
- data: x.toast.data ?? {},
25
+ setup(d, { emit: S }) {
26
+ let C = d, w = S, ue = re("close", t), T = (e) => C.passthrough?.part?.(e, { loading: !!C.toast.loading }, void 0, C.toast.variant), { t: de } = n(), E = g(), D = g(), O = g(!1), k = g(0), fe = o(() => C.frontIndex === 0), A = o(() => C.frontIndex < le), pe = o(() => !Number.isFinite(C.toast.duration ?? x)), me = o(() => !C.toast.hideClose), j = o(() => C.toast.variant === "destructive" || C.toast.variant === "warning"), he = o(() => j.value ? "alert" : "status"), ge = o(() => !A.value || C.toast.removed ? "off" : j.value ? "assertive" : "polite"), _e = ee(), M = o(() => C.toast.hideIcon ? void 0 : C.toast.icon ?? _e.variantIcons?.toast?.[C.toast.variant]), ve = o(() => C.toast.loading || !!M.value), N = o(() => typeof C.toast.portal == "string" ? ne.get(C.toast.portal) ?? null : null), P = o(() => C.toast.portal && typeof C.toast.portal != "string" ? C.toast.portal : null), ye = o(() => !!N.value || !!P.value), F = o(() => ({
27
+ toast: C.toast,
28
+ data: C.toast.data ?? {},
28
29
  close: $
29
- })), ye = a(() => ({
30
- ...x.toast.data ?? {},
30
+ })), be = o(() => ({
31
+ ...C.toast.data ?? {},
31
32
  close: $
32
- })), F = a(() => x.position.startsWith("top") ? "top" : "bottom"), I = m(0), L = m(!1), be = a(() => ({
33
- "--front-index": x.frontIndex,
34
- "--height-before": `${x.heightBefore}px`,
35
- "--front-height": `${x.frontHeight}px`,
36
- "--toast-height": `${D.value}px`,
37
- "--z": x.total - x.frontIndex,
33
+ })), xe = o(() => C.position.startsWith("top") ? "top" : "bottom"), I = g(0), L = g(!1), Se = o(() => ({
34
+ "--front-index": C.frontIndex,
35
+ "--height-before": `${C.heightBefore}px`,
36
+ "--front-height": `${C.frontHeight}px`,
37
+ "--toast-height": `${k.value}px`,
38
+ "--z": C.total - C.frontIndex,
38
39
  "--swipe-amount": `${I.value}px`
39
40
  })), R, z, B = () => {
40
- if (!T.value) return;
41
- let e = w.value, t = e ? e.offsetHeight - e.clientHeight : 0, n = T.value.offsetHeight + t;
42
- n !== D.value && (D.value = n, S("height", x.toast.id, n));
43
- }, xe = {
41
+ if (!D.value) return;
42
+ let e = E.value, t = e ? e.offsetHeight - e.clientHeight : 0, n = D.value.offsetHeight + t;
43
+ n !== k.value && (k.value = n, w("height", C.toast.id, n));
44
+ }, Ce = {
44
45
  class: "bb-button--soft-disabled",
45
46
  "aria-disabled": !0,
46
47
  tabindex: -1
47
- }, V = m(null), Se = async (e) => {
48
+ }, V = g(null), we = async (e) => {
48
49
  if (V.value !== null) return;
49
- let t = x.toast.actions?.[e];
50
+ let t = C.toast.actions?.[e];
50
51
  if (!t) return;
51
52
  V.value = e, J();
52
- let n = x.toast.updatedAt;
53
+ let n = C.toast.updatedAt;
53
54
  try {
54
- if (t.onClick && await t.onClick(), V.value = null, x.toast.updatedAt !== n) {
55
+ if (t.onClick && await t.onClick(), V.value = null, C.toast.updatedAt !== n) {
55
56
  Y();
56
57
  return;
57
58
  }
58
- S("dismiss", x.toast.id, "action");
59
+ w("dismiss", C.toast.id, "action");
59
60
  } catch {
60
- V.value = null, x.paused || q();
61
+ V.value = null, C.paused || q();
61
62
  }
62
- }, H = a(() => x.toast.duration ?? y), U, W = 0, G = 0, K = () => {
63
+ }, H = o(() => C.toast.duration ?? x), U, W = 0, G = 0, K = () => {
63
64
  U && clearTimeout(U), U = void 0;
64
65
  }, q = () => {
65
- K(), V.value === null && Number.isFinite(H.value) && (G = Date.now(), U = setTimeout(() => S("dismiss", x.toast.id, "auto"), W));
66
+ K(), V.value === null && Number.isFinite(H.value) && (G = Date.now(), U = setTimeout(() => w("dismiss", C.toast.id, "auto"), W));
66
67
  }, J = () => {
67
68
  U && (K(), W -= Date.now() - G);
68
69
  }, Y = () => {
69
- W = H.value, x.paused || q();
70
+ W = H.value, C.paused || q();
70
71
  };
71
- v(() => x.paused, (e) => {
72
+ b(() => C.paused, (e) => {
72
73
  e ? J() : q();
73
- }), v(() => [x.toast.updatedAt, H.value], () => Y());
74
- let X = null, Z = 0, Ce = (e) => {
75
- pe.value || e.button !== 0 || V.value === null && (e.target.closest("button") || (X = e.pointerId, Z = e.clientY, L.value = !0, w.value?.setPointerCapture(e.pointerId)));
76
- }, we = (e) => {
74
+ }), b(() => [C.toast.updatedAt, H.value], () => Y());
75
+ let X = null, Z = 0, Te = (e) => {
76
+ pe.value || e.button !== 0 || V.value === null && (e.target.closest("button") || (X = e.pointerId, Z = e.clientY, L.value = !0, E.value?.setPointerCapture(e.pointerId)));
77
+ }, Ee = (e) => {
77
78
  if (!L.value || e.pointerId !== X) return;
78
79
  let t = e.clientY - Z;
79
- I.value = F.value === "bottom" ? Math.max(0, t) : Math.min(0, t);
80
+ I.value = xe.value === "bottom" ? Math.max(0, t) : Math.min(0, t);
80
81
  }, Q = (e) => {
81
- L.value && e.pointerId === X && (L.value = !1, X = null, Math.abs(I.value) > 45 ? S("dismiss", x.toast.id, "manual") : I.value = 0);
82
- }, $ = () => S("dismiss", x.toast.id, "manual");
83
- return oe(() => {
84
- B(), R = new ResizeObserver(B), T.value && R.observe(T.value), Y(), z = requestAnimationFrame(() => {
82
+ L.value && e.pointerId === X && (L.value = !1, X = null, Math.abs(I.value) > 45 ? w("dismiss", C.toast.id, "manual") : I.value = 0);
83
+ }, $ = () => w("dismiss", C.toast.id, "manual");
84
+ return ae(() => {
85
+ B(), R = new ResizeObserver(B), D.value && R.observe(D.value), Y(), z = requestAnimationFrame(() => {
85
86
  z = requestAnimationFrame(() => {
86
- E.value = !0;
87
+ O.value = !0;
87
88
  });
88
89
  });
89
- }), ae(() => {
90
+ }), m(() => {
90
91
  K(), z !== void 0 && cancelAnimationFrame(z), R?.disconnect();
91
- }), (n, ee) => (p(), c("li", d({
92
+ }), (t, n) => (h(), l("li", f({
92
93
  ref_key: "cardEl",
93
- ref: w,
94
+ ref: E,
94
95
  "aria-atomic": !0,
95
96
  "aria-live": ge.value,
96
- class: ["bb-toast__panel", [`bb-toast__panel--${u.toast.variant}`, {
97
+ class: ["bb-toast__panel", [`bb-toast__panel--${d.toast.variant}`, {
97
98
  "bb-toast__panel--front": fe.value,
98
- "bb-toast__panel--hidden": !O.value,
99
- "bb-toast__panel--mounted": E.value,
100
- "bb-toast__panel--removed": !!u.toast.removed,
99
+ "bb-toast__panel--hidden": !A.value,
100
+ "bb-toast__panel--mounted": O.value,
101
+ "bb-toast__panel--removed": !!d.toast.removed,
101
102
  "bb-toast__panel--swiping": L.value
102
103
  }]],
103
104
  role: he.value,
104
- style: be.value,
105
+ style: Se.value,
105
106
  onPointercancel: Q,
106
- onPointerdown: Ce,
107
- onPointermove: we,
107
+ onPointerdown: Te,
108
+ onPointermove: Ee,
108
109
  onPointerup: Q
109
- }, C("panel")), [l("div", {
110
+ }, T("panel")), [u("div", {
110
111
  ref_key: "innerEl",
111
- ref: T,
112
+ ref: D,
112
113
  class: "bb-toast__inner"
113
- }, [N.value ? (p(), c("div", d({
114
+ }, [ye.value ? (h(), l("div", f({
114
115
  key: 0,
115
116
  class: "bb-toast__content bb-toast__content--portal"
116
- }, C("content")), [j.value ? (p(), o(h(j.value), f(d({ key: 0 }, P.value)), null, 16)) : (p(), o(h(M.value), f(d({ key: 1 }, ye.value)), null, 16))], 16)) : (p(), c(i, { key: 1 }, [ve.value ? (p(), c("div", d({
117
+ }, T("content")), [N.value ? (h(), s(_(N.value), p(f({ key: 0 }, F.value)), null, 16)) : (h(), s(_(P.value), p(f({ key: 1 }, be.value)), null, 16))], 16)) : (h(), l(a, { key: 1 }, [ve.value ? (h(), l("div", f({
117
118
  key: 0,
118
119
  "aria-hidden": "true",
119
120
  class: "bb-toast__icon"
120
- }, C("icon")), [u.toast.loading ? (p(), o(te, {
121
+ }, T("icon")), [d.toast.loading ? (h(), s(i, {
121
122
  key: 0,
122
123
  size: "sm"
123
- })) : A.value ? (p(), o(r, {
124
+ })) : M.value ? (h(), s(r, {
124
125
  key: 1,
125
- icon: A.value
126
- }, null, 8, ["icon"])) : s("", !0)], 16)) : s("", !0), l("div", d({ class: "bb-toast__content" }, C("content")), [
127
- l("p", d({ class: "bb-toast__title" }, C("title")), g(u.toast.title), 17),
128
- u.toast.text ? (p(), c("p", d({
126
+ icon: M.value
127
+ }, null, 8, ["icon"])) : c("", !0)], 16)) : c("", !0), u("div", f({ class: "bb-toast__content" }, T("content")), [
128
+ u("p", f({ class: "bb-toast__title" }, T("title")), v(d.toast.title), 17),
129
+ d.toast.text ? (h(), l("p", f({
129
130
  key: 0,
130
131
  class: "bb-toast__text"
131
- }, C("text")), g(u.toast.text), 17)) : s("", !0),
132
- u.toast.actions?.length ? (p(), c("div", d({
132
+ }, T("text")), v(d.toast.text), 17)) : c("", !0),
133
+ d.toast.actions?.length ? (h(), l("div", f({
133
134
  key: 1,
134
135
  class: "bb-toast__footer"
135
- }, C("footer")), [(p(!0), c(i, null, se(u.toast.actions, (t, n) => (p(), o(ne, d({
136
+ }, T("footer")), [(h(!0), l(a, null, oe(d.toast.actions, (t, n) => (h(), s(te, f({
136
137
  key: n,
137
138
  class: "bb-toast__action",
138
139
  loading: V.value === n,
139
- onClick: (e) => Se(n)
140
+ onClick: (e) => we(n)
140
141
  }, { ref_for: !0 }, {
141
- ..._(e)({
142
+ ...y(e)({
142
143
  size: "sm",
143
144
  variant: "primary",
144
145
  ...t
145
146
  }),
146
- ...V.value !== null && V.value !== n ? xe : {},
147
- ...C("action")
148
- }), null, 16, ["loading", "onClick"]))), 128))], 16)) : s("", !0)
149
- ], 16)], 64)), me.value ? (p(), c("button", d({
147
+ ...V.value !== null && V.value !== n ? Ce : {},
148
+ ...T("action")
149
+ }), null, 16, ["loading", "onClick"]))), 128))], 16)) : c("", !0)
150
+ ], 16)], 64)), me.value ? (h(), l("button", f({
150
151
  key: 2,
151
- "aria-label": _(de)("common.closeLabel").value,
152
+ "aria-label": y(de)("common.closeLabel").value,
152
153
  class: "bb-toast__close",
153
154
  type: "button",
154
155
  onClick: $
155
- }, C("close")), [ie(r, {
156
- icon: _(t),
156
+ }, T("close")), [ie(r, {
157
+ icon: y(ue),
157
158
  size: "100%"
158
- }, null, 8, ["icon"])], 16, le)) : s("", !0)], 512)], 16, ce));
159
+ }, null, 8, ["icon"])], 16, ce)) : c("", !0)], 512)], 16, se));
159
160
  }
160
161
  });
161
- export { b as default };
162
+ export { S as default };
@@ -1,18 +1,19 @@
1
1
  import { useLocale as e } from "../../composables/useLocale.js";
2
2
  import t from "../BbIcon/BbIcon.vue.js";
3
3
  import n from "../../assets/svgs/clear.svg_raw.js";
4
- import { createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, unref as s } from "vue";
4
+ import { useInternalIcon as r } from "../../composables/useInternalIcon.js";
5
+ import { createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, unref as c } from "vue";
5
6
  // src/components/ClearableButton/ClearableButton.vue?vue&type=script&setup=true&lang.ts
6
- var c = ["aria-label"], l = /*@__PURE__*/ a({
7
+ var l = ["aria-label"], u = /*@__PURE__*/ o({
7
8
  __name: "ClearableButton",
8
9
  props: { label: {} },
9
- setup(a) {
10
- let l = a, { t: u } = e();
11
- return (e, a) => (o(), r("button", {
12
- "aria-label": l.label || s(u)("common.clearLabel").value,
10
+ setup(o) {
11
+ let u = o, d = r("clear", n), { t: f } = e();
12
+ return (e, n) => (s(), i("button", {
13
+ "aria-label": u.label || c(f)("common.clearLabel").value,
13
14
  class: "bb-clearable-button",
14
15
  type: "button"
15
- }, [i(t, { icon: s(n) }, null, 8, ["icon"])], 8, c));
16
+ }, [a(t, { icon: c(d) }, null, 8, ["icon"])], 8, l));
16
17
  }
17
18
  });
18
- export { l as default };
19
+ export { u as default };
@@ -2,5 +2,5 @@ import e from "./CloseButton.vue_vue_type_script_setup_true_lang.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  // src/components/CloseIcon/CloseButton.vue
5
- var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-cca244c1"]]);
5
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-d28a34bd"]]);
6
6
  export { n as default };
@@ -1,17 +1,19 @@
1
1
  import e from "../BbIcon/BbIcon.vue.js";
2
2
  import t from "../../assets/svgs/close.svg_raw.js";
3
- import { createElementBlock as n, createVNode as r, defineComponent as i, openBlock as a, unref as o } from "vue";
3
+ import { useInternalIcon as n } from "../../composables/useInternalIcon.js";
4
+ import { createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, unref as s } from "vue";
4
5
  // src/components/CloseIcon/CloseButton.vue?vue&type=script&setup=true&lang.ts
5
- var s = {
6
+ var c = {
6
7
  class: "bb-close-button",
7
8
  type: "button"
8
- }, c = /*@__PURE__*/ i({
9
+ }, l = /*@__PURE__*/ a({
9
10
  __name: "CloseButton",
10
- setup(i) {
11
- return (i, c) => (a(), n("button", s, [r(e, {
12
- icon: o(t),
11
+ setup(a) {
12
+ let l = n("close", t);
13
+ return (t, n) => (o(), r("button", c, [i(e, {
14
+ icon: s(l),
13
15
  size: "100%"
14
16
  }, null, 8, ["icon"])]));
15
17
  }
16
18
  });
17
- export { c as default };
19
+ export { l as default };
@@ -1,15 +1,17 @@
1
1
  import e from "../BbIcon/BbIcon.vue.js";
2
2
  import t from "../../assets/svgs/error.svg_raw.js";
3
- import { createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
3
+ import { useInternalIcon as n } from "../../composables/useInternalIcon.js";
4
+ import { createBlock as r, defineComponent as i, openBlock as a, unref as o } from "vue";
4
5
  // src/components/ErrorIcon/ErrorIcon.vue?vue&type=script&setup=true&lang.ts
5
- var o = /*@__PURE__*/ r({
6
+ var s = /*@__PURE__*/ i({
6
7
  __name: "ErrorIcon",
7
- setup(r) {
8
- return (r, o) => (i(), n(e, {
8
+ setup(i) {
9
+ let s = n("error", t);
10
+ return (t, n) => (a(), r(e, {
9
11
  "aria-hidden": "true",
10
12
  class: "bb-error-icon",
11
- icon: a(t)
13
+ icon: o(s)
12
14
  }, null, 8, ["icon"]));
13
15
  }
14
16
  });
15
- export { o as default };
17
+ export { s as default };