bitboss-ui 2.0.121 → 2.0.123

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 (140) hide show
  1. package/dist/components/BbButton/BbButton.vue.d.ts +7 -0
  2. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +5 -0
  3. package/dist/index100.js +8 -8
  4. package/dist/index111.js +12 -12
  5. package/dist/index119.js +2 -2
  6. package/dist/index121.js +6 -6
  7. package/dist/index123.js +1 -1
  8. package/dist/index125.js +1 -1
  9. package/dist/index127.js +1 -1
  10. package/dist/index128.js +1 -1
  11. package/dist/index129.js +1 -1
  12. package/dist/index13.js +2 -2
  13. package/dist/index131.js +1 -1
  14. package/dist/index132.js +2 -2
  15. package/dist/index133.js +2 -2
  16. package/dist/index15.js +4 -4
  17. package/dist/index17.js +3 -3
  18. package/dist/index19.js +8 -8
  19. package/dist/index205.js +2 -115
  20. package/dist/index206.js +115 -2
  21. package/dist/index207.js +2 -8
  22. package/dist/index208.js +4 -3
  23. package/dist/index209.js +2 -2
  24. package/dist/index21.js +16 -16
  25. package/dist/index210.js +86 -4
  26. package/dist/index212.js +25 -86
  27. package/dist/index213.js +19 -0
  28. package/dist/index214.js +48 -22
  29. package/dist/index215.js +12 -14
  30. package/dist/index216.js +3 -51
  31. package/dist/index217.js +11 -14
  32. package/dist/index218.js +15 -11
  33. package/dist/index219.js +5 -16
  34. package/dist/index220.js +125 -5
  35. package/dist/index221.js +13 -122
  36. package/dist/index222.js +10 -10
  37. package/dist/index223.js +18 -15
  38. package/dist/index224.js +12 -16
  39. package/dist/index225.js +2 -15
  40. package/dist/index226.js +2 -2
  41. package/dist/index227.js +41 -2
  42. package/dist/index228.js +13 -41
  43. package/dist/index229.js +20 -13
  44. package/dist/index23.js +16 -16
  45. package/dist/index230.js +6 -20
  46. package/dist/index231.js +93 -5
  47. package/dist/{index234.js → index233.js} +2 -2
  48. package/dist/index235.js +15 -0
  49. package/dist/index236.js +2 -13
  50. package/dist/index237.js +3 -2
  51. package/dist/index239.js +19 -3
  52. package/dist/index240.js +27 -3
  53. package/dist/index241.js +8 -7
  54. package/dist/index242.js +246 -11
  55. package/dist/index243.js +51 -18
  56. package/dist/index244.js +44 -27
  57. package/dist/index245.js +5 -250
  58. package/dist/index246.js +51 -43
  59. package/dist/index247.js +3 -44
  60. package/dist/index248.js +7 -5
  61. package/dist/index249.js +11 -56
  62. package/dist/index25.js +7 -7
  63. package/dist/index250.js +18 -2
  64. package/dist/index251.js +126 -2
  65. package/dist/index252.js +105 -17
  66. package/dist/index254.js +47 -53
  67. package/dist/index256.js +12 -100
  68. package/dist/index257.js +216 -0
  69. package/dist/index258.js +368 -11
  70. package/dist/index259.js +2 -214
  71. package/dist/index260.js +2 -369
  72. package/dist/index265.js +3 -3
  73. package/dist/index268.js +4 -28
  74. package/dist/index269.js +3 -4
  75. package/dist/index27.js +1 -1
  76. package/dist/index270.js +17 -3
  77. package/dist/index271.js +7 -15
  78. package/dist/index272.js +27 -8
  79. package/dist/index281.js +1 -1
  80. package/dist/index283.js +1 -1
  81. package/dist/index284.js +1 -1
  82. package/dist/index287.js +2 -2
  83. package/dist/index29.js +3 -3
  84. package/dist/index290.js +200 -2
  85. package/dist/index291.js +2 -89
  86. package/dist/index292.js +2 -200
  87. package/dist/index293.js +2 -2
  88. package/dist/index294.js +2 -2
  89. package/dist/index295.js +1 -1
  90. package/dist/index297.js +21 -1
  91. package/dist/index299.js +1 -21
  92. package/dist/index300.js +91 -0
  93. package/dist/index303.js +1 -1
  94. package/dist/index304.js +1 -1
  95. package/dist/index305.js +1 -1
  96. package/dist/index308.js +2 -3
  97. package/dist/index309.js +67 -3
  98. package/dist/index31.js +2 -2
  99. package/dist/index310.js +5 -58
  100. package/dist/index311.js +5 -67
  101. package/dist/index312.js +8 -5
  102. package/dist/index313.js +3 -2
  103. package/dist/index314.js +3 -5
  104. package/dist/index315.js +57 -7
  105. package/dist/index316.js +3 -32
  106. package/dist/index317.js +52 -25
  107. package/dist/index318.js +52 -479
  108. package/dist/index319.js +479 -52
  109. package/dist/index320.js +32 -52
  110. package/dist/index321.js +25 -3
  111. package/dist/index322.js +6 -6
  112. package/dist/index323.js +18 -6
  113. package/dist/index324.js +5 -17
  114. package/dist/index326.js +1 -1
  115. package/dist/index33.js +8 -8
  116. package/dist/index35.js +4 -4
  117. package/dist/index37.js +22 -22
  118. package/dist/index39.js +5 -5
  119. package/dist/index41.js +2 -2
  120. package/dist/index43.js +8 -8
  121. package/dist/index45.js +8 -8
  122. package/dist/index47.js +2 -2
  123. package/dist/index49.js +2 -2
  124. package/dist/index53.js +1 -1
  125. package/dist/index55.js +1 -1
  126. package/dist/index57.js +2 -2
  127. package/dist/index61.js +45 -38
  128. package/dist/index75.js +1 -1
  129. package/dist/index77.js +81 -77
  130. package/dist/index81.js +1 -1
  131. package/dist/index84.js +4 -4
  132. package/dist/index86.js +1 -1
  133. package/dist/index88.js +5 -5
  134. package/dist/index90.js +1 -1
  135. package/dist/style.css +1 -1
  136. package/package.json +1 -1
  137. package/dist/index211.js +0 -4
  138. package/dist/index232.js +0 -92
  139. package/dist/index253.js +0 -128
  140. package/dist/index298.js +0 -4
package/dist/index77.js CHANGED
@@ -1,19 +1,19 @@
1
- import { defineComponent as j, ref as z, computed as y, openBlock as l, createElementBlock as L, normalizeClass as E, createVNode as u, mergeProps as P, withCtx as n, unref as d, createBlock as D, createCommentVNode as v, createElementVNode as m, toDisplayString as _, createSlots as I, renderSlot as a, normalizeProps as r, guardReactiveProps as i, renderList as M } from "vue";
2
- import W from "./index13.js";
1
+ import { defineComponent as E, ref as A, computed as y, openBlock as l, createElementBlock as z, mergeProps as _, unref as r, createVNode as u, withCtx as n, createBlock as P, createCommentVNode as v, createElementVNode as b, toDisplayString as h, createSlots as I, renderSlot as a, normalizeProps as i, guardReactiveProps as s, renderList as M } from "vue";
2
+ import D from "./index13.js";
3
3
  /* empty css */
4
- import R from "./index75.js";
4
+ import O from "./index75.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
- import N from "./index127.js";
8
+ import S from "./index127.js";
9
9
  /* empty css */
10
- import T from "./index129.js";
10
+ import R from "./index129.js";
11
11
  /* empty css */
12
- import { useLocale as Z } from "./index229.js";
13
- const q = { class: "bb-dropdown-button__content" }, A = {
12
+ import { useLocale as T } from "./index228.js";
13
+ const Z = { class: "bb-dropdown-button__content" }, q = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
16
- }, F = { class: "bb-dropdown-button__dropdown-label sr-only" }, to = /* @__PURE__ */ j({
16
+ }, F = { class: "bb-dropdown-button__dropdown-label sr-only" }, ne = /* @__PURE__ */ E({
17
17
  __name: "BbDropdownButton",
18
18
  props: {
19
19
  arrowPadding: {},
@@ -32,44 +32,48 @@ const q = { class: "bb-dropdown-button__content" }, A = {
32
32
  "append:icon": {},
33
33
  disabledWhileLoading: { type: Boolean, default: !0 },
34
34
  loading: { type: Boolean },
35
- "prepend:icon": {}
35
+ "prepend:icon": {},
36
+ size: {}
36
37
  },
37
- setup(S) {
38
- const t = S, { t: b } = Z(), c = z(0), w = y(
38
+ setup(W) {
39
+ const t = W, { t: m } = T(), c = A(0), f = y(
39
40
  () => t.loading || !!c.value && t.autoLoading
40
- ), V = (o) => async (...s) => {
41
- w.value && t.disabledWhileLoading || (c.value++, await o(...s), c.value--);
42
- }, f = y(
43
- () => t.items.map((o) => o.onClick ? {
44
- ...o,
45
- key: o.key.split(/\W+/g).join("_").toLowerCase(),
46
- onClick: V(o.onClick)
41
+ ), j = (e) => async (...d) => {
42
+ f.value && t.disabledWhileLoading || (c.value++, await e(...d), c.value--);
43
+ }, w = y(
44
+ () => t.items.map((e) => e.onClick ? {
45
+ ...e,
46
+ key: e.key.split(/\W+/g).join("_").toLowerCase(),
47
+ onClick: j(e.onClick)
47
48
  } : {
48
- ...o,
49
- key: o.key.split(/\W+/g).join("_").toLowerCase()
49
+ ...e,
50
+ key: e.key.split(/\W+/g).join("_").toLowerCase()
50
51
  })
51
52
  ), k = y(() => {
52
- const o = { ...f.value[0] };
53
- return o.disabled = o.disabled || t.disabled, o;
54
- });
55
- return (o, s) => (l(), L("span", {
56
- class: E(["bb-dropdown-button", {
57
- "bb-dropdown-button--block": o.block,
58
- "bb-dropdown-button--loading": w.value,
59
- [`bb-dropdown-button--${o.theme}`]: !0
60
- }])
61
- }, [
62
- u(W, P(k.value, { class: "bb-dropdown-button__main-btn" }), {
53
+ const e = { ...w.value[0] };
54
+ return e.disabled = e.disabled || t.disabled, e;
55
+ }), N = typeof t.size == "string" ? { default: t.size } : { default: "md", ...t.size }, V = Object.entries(N).reduce(
56
+ (e, [d, o]) => (d === "default" ? e[`data-${o}`] = "" : e[`data-${d}:${o}`] = "", e),
57
+ {}
58
+ );
59
+ return (e, d) => (l(), z("span", _({
60
+ class: ["bb-dropdown-button", {
61
+ "bb-dropdown-button--block": e.block,
62
+ "bb-dropdown-button--loading": f.value,
63
+ [`bb-dropdown-button--${e.theme}`]: !0
64
+ }]
65
+ }, r(V)), [
66
+ u(D, _(k.value, { class: "bb-dropdown-button__main-btn" }), {
63
67
  default: n(() => [
64
- u(d(T), { class: "bb-dropdown-button__spinner" }),
65
- t["prepend:icon"] ? (l(), D(d(N), {
68
+ u(r(R), { class: "bb-dropdown-button__spinner" }),
69
+ t["prepend:icon"] ? (l(), P(r(S), {
66
70
  key: 0,
67
71
  class: "bb-dropdown-button__prepend-icon",
68
72
  type: t["prepend:icon"]
69
73
  }, null, 8, ["type"])) : v("", !0),
70
- m("span", q, _(k.value.text), 1),
71
- w.value ? (l(), L("span", A, _(d(b)("common.loadingText").value), 1)) : v("", !0),
72
- t["append:icon"] ? (l(), D(d(N), {
74
+ b("span", Z, h(k.value.text), 1),
75
+ f.value ? (l(), z("span", q, h(r(m)("common.loadingText").value), 1)) : v("", !0),
76
+ t["append:icon"] ? (l(), P(r(S), {
73
77
  key: 2,
74
78
  class: "bb-dropdown-button__append-icon",
75
79
  type: t["append:icon"]
@@ -77,54 +81,54 @@ const q = { class: "bb-dropdown-button__content" }, A = {
77
81
  ]),
78
82
  _: 1
79
83
  }, 16),
80
- u(R, {
81
- id: o.id,
82
- "arrow-padding": o.arrowPadding,
83
- disabled: o.disabled,
84
- eager: o.eager,
85
- items: f.value,
86
- offset: o.offset,
87
- padding: o.padding,
88
- placement: o.placement,
89
- theme: o.theme,
90
- "transition-duration": o.transitionDuration,
91
- width: o.width
84
+ u(O, {
85
+ id: e.id,
86
+ "arrow-padding": e.arrowPadding,
87
+ disabled: e.disabled,
88
+ eager: e.eager,
89
+ items: w.value,
90
+ offset: e.offset,
91
+ padding: e.padding,
92
+ placement: e.placement,
93
+ theme: e.theme,
94
+ "transition-duration": e.transitionDuration,
95
+ width: e.width
92
96
  }, I({
93
97
  activator: n(({
94
- props: e,
98
+ props: o,
95
99
  opening: p,
96
100
  open: g,
97
- closed: h,
101
+ closed: $,
98
102
  closing: B,
99
- disabled: $,
103
+ disabled: L,
100
104
  placement: C
101
105
  }) => [
102
- a(o.$slots, "activator", {
103
- closed: h,
106
+ a(e.$slots, "activator", {
107
+ closed: $,
104
108
  closing: B,
105
- disabled: $,
109
+ disabled: L,
106
110
  open: g,
107
111
  opening: p,
108
112
  placement: C,
109
- props: e
113
+ props: o
110
114
  }, () => [
111
- u(W, P(e, { class: "bb-dropdown-button__dropdown-btn" }), {
115
+ u(D, _(o, { class: "bb-dropdown-button__dropdown-btn" }), {
112
116
  default: n(() => [
113
- m("span", F, _(g || p ? d(b)("dropdownButton.close").value : d(b)("dropdownButton.open").value), 1),
114
- a(o.$slots, "right-btn", {
115
- closed: h,
117
+ b("span", F, h(g || p ? r(m)("dropdownButton.close").value : r(m)("dropdownButton.open").value), 1),
118
+ a(e.$slots, "right-btn", {
119
+ closed: $,
116
120
  closing: B,
117
- disabled: $,
121
+ disabled: L,
118
122
  open: g,
119
123
  opening: p,
120
124
  placement: C
121
125
  }, () => [
122
- s[0] || (s[0] = m("svg", {
126
+ d[0] || (d[0] = b("svg", {
123
127
  class: "bb-dropdown-button__dropdown-chevron",
124
128
  viewBox: "0 0 24 24",
125
129
  xmlns: "http://www.w3.org/2000/svg"
126
130
  }, [
127
- m("path", {
131
+ b("path", {
128
132
  d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z",
129
133
  fill: "currentColor"
130
134
  })
@@ -135,33 +139,33 @@ const q = { class: "bb-dropdown-button__content" }, A = {
135
139
  }, 1040)
136
140
  ])
137
141
  ]),
138
- prepend: n((e) => [
139
- a(o.$slots, "prepend", r(i(e)))
142
+ prepend: n((o) => [
143
+ a(e.$slots, "prepend", i(s(o)))
140
144
  ]),
141
- "item:prepend": n((e) => [
142
- a(o.$slots, "item:prepend", r(i(e)))
145
+ "item:prepend": n((o) => [
146
+ a(e.$slots, "item:prepend", i(s(o)))
143
147
  ]),
144
- item: n((e) => [
145
- a(o.$slots, "item", r(i(e)))
148
+ item: n((o) => [
149
+ a(e.$slots, "item", i(s(o)))
146
150
  ]),
147
- "item:append": n((e) => [
148
- a(o.$slots, "item:append", r(i(e)))
151
+ "item:append": n((o) => [
152
+ a(e.$slots, "item:append", i(s(o)))
149
153
  ]),
150
- append: n((e) => [
151
- a(o.$slots, "append", r(i(e)))
154
+ append: n((o) => [
155
+ a(e.$slots, "append", i(s(o)))
152
156
  ]),
153
157
  _: 2
154
158
  }, [
155
- M(f.value, (e) => ({
156
- name: e.key,
159
+ M(w.value, (o) => ({
160
+ name: o.key,
157
161
  fn: n((p) => [
158
- a(o.$slots, e.key, r(i(p)))
162
+ a(e.$slots, o.key, i(s(p)))
159
163
  ])
160
164
  }))
161
165
  ]), 1032, ["id", "arrow-padding", "disabled", "eager", "items", "offset", "padding", "placement", "theme", "transition-duration", "width"])
162
- ], 2));
166
+ ], 16));
163
167
  }
164
168
  });
165
169
  export {
166
- to as default
170
+ ne as default
167
171
  };
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index240.js";
2
+ import { throttle as c } from "./index247.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as se, ref as l, useAttrs as ae, computed as u, getCurrentInstance as ne, nextTick as ie, onBeforeUnmount as O, onMounted as re, watch as ue, openBlock as g, createBlock as ce, withCtx as de, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as fe, toDisplayString as A, unref as ve, createCommentVNode as $ } from "vue";
2
- import { useFocusTrap as pe } from "./index228.js";
2
+ import { useFocusTrap as pe } from "./index227.js";
3
3
  import { useId as E } from "./index8.js";
4
4
  import { wait as H } from "./index130.js";
5
- import { useModalsState as b } from "./index241.js";
6
- import be from "./index242.js";
5
+ import { useModalsState as b } from "./index248.js";
6
+ import be from "./index249.js";
7
7
  import { useMobile as me } from "./index9.js";
8
- import { useLocale as ye } from "./index229.js";
8
+ import { useLocale as ye } from "./index228.js";
9
9
  const he = ["inert"], ge = { class: "bb-offcanvas-close" }, _e = ["aria-label"], Te = /* @__PURE__ */ se({
10
10
  __name: "BbOffCanvas",
11
11
  props: {
package/dist/index86.js CHANGED
@@ -4,7 +4,7 @@ import { debounce as T } from "./index267.js";
4
4
  /* empty css */
5
5
  import z from "./index13.js";
6
6
  /* empty css */
7
- import { useLocale as D } from "./index229.js";
7
+ import { useLocale as D } from "./index228.js";
8
8
  const G = ["aria-label"], I = { class: "bb-pagination__page-label sr-only" }, O = { class: "bb-pagination__page-label" }, j = { class: "bb-pagination__page-label" }, q = { class: "bb-pagination__page-label sr-only" }, Z = /* @__PURE__ */ E({
9
9
  __name: "BbPagination",
10
10
  props: {
package/dist/index88.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as p, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as T, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
2
- import { useFocusTrap as j } from "./index228.js";
2
+ import { useFocusTrap as j } from "./index227.js";
3
3
  import { useId as G } from "./index8.js";
4
4
  import { useIntersectionObserver as J } from "./index132.js";
5
- import { waitFor as K } from "./index231.js";
5
+ import { waitFor as K } from "./index230.js";
6
6
  import Q from "./index13.js";
7
7
  /* empty css */
8
- import U from "./index232.js";
8
+ import U from "./index231.js";
9
9
  /* empty css */
10
- import { useLocale as X } from "./index229.js";
11
- import { useDebounceFn as Y } from "./index205.js";
10
+ import { useLocale as X } from "./index228.js";
11
+ import { useDebounceFn as Y } from "./index206.js";
12
12
  const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
13
13
  __name: "BbPopover",
14
14
  props: {
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index206.js";
2
+ import { clamp as p } from "./index205.js";
3
3
  import { getAsPercentageBetween as i } from "./index131.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",