bj-web-components 0.2.27 → 0.2.28

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 (90) hide show
  1. package/dist/index.js +51 -1
  2. package/dist/index.mjs +49 -49
  3. package/dist/style.css +3744 -1
  4. package/dist/web/BasicInput/BInput.js +208 -1
  5. package/dist/web/BasicInput/BInput.mjs +164 -132
  6. package/dist/web/BasicInput/utils.js +47 -1
  7. package/dist/web/BasicInput/utils.mjs +38 -28
  8. package/dist/web/CategoryDropdown/CategoryDropdown.js +307 -1
  9. package/dist/web/CategoryDropdown/CategoryDropdown.mjs +218 -170
  10. package/dist/web/CheckBox/BCheckBox.js +116 -1
  11. package/dist/web/CheckBox/BCheckBox.mjs +86 -70
  12. package/dist/web/CheckBox/Group.js +73 -1
  13. package/dist/web/CheckBox/Group.mjs +63 -56
  14. package/dist/web/CheckBox/context.js +5 -1
  15. package/dist/web/CheckBox/context.mjs +3 -3
  16. package/dist/web/CheckBox/index.js +8 -1
  17. package/dist/web/CheckBox/index.mjs +6 -6
  18. package/dist/web/Dropdown/BDropdown.js +186 -1
  19. package/dist/web/Dropdown/BDropdown.mjs +132 -106
  20. package/dist/web/EmptyInputBox/EmptyInputBox.js +77 -1
  21. package/dist/web/EmptyInputBox/EmptyInputBox.mjs +52 -48
  22. package/dist/web/FileCard/FileCard.js +157 -1
  23. package/dist/web/FileCard/FileCard.mjs +112 -82
  24. package/dist/web/Icon/Icon.js +9 -1
  25. package/dist/web/Icon/Icon.mjs +6 -6
  26. package/dist/web/Input/Input.js +181 -1
  27. package/dist/web/Input/Input.mjs +122 -113
  28. package/dist/web/InputNumber/BInputNumber.js +311 -1
  29. package/dist/web/InputNumber/BInputNumber.mjs +275 -167
  30. package/dist/web/InputNumber/StepHandler.js +69 -1
  31. package/dist/web/InputNumber/StepHandler.mjs +38 -32
  32. package/dist/web/InputNumber/hooks/useCursor.js +40 -1
  33. package/dist/web/InputNumber/hooks/useCursor.mjs +35 -33
  34. package/dist/web/InputNumber/hooks/useFrame.js +12 -1
  35. package/dist/web/InputNumber/hooks/useFrame.mjs +9 -6
  36. package/dist/web/InputNumber/utils/decimal.js +147 -1
  37. package/dist/web/InputNumber/utils/decimal.mjs +109 -81
  38. package/dist/web/Modal/Modal.js +84 -1
  39. package/dist/web/Modal/Modal.mjs +52 -49
  40. package/dist/web/OverlayScrollbar/BOverlayScrollbar.js +232 -1
  41. package/dist/web/OverlayScrollbar/BOverlayScrollbar.mjs +206 -125
  42. package/dist/web/Pagination/Pagination.js +328 -1
  43. package/dist/web/Pagination/Pagination.mjs +254 -178
  44. package/dist/web/ProductField/ProductField.js +272 -1
  45. package/dist/web/ProductField/ProductField.mjs +190 -143
  46. package/dist/web/ProductField/arrow-up.svg.js +3 -1
  47. package/dist/web/ProductField/arrow-up.svg.mjs +2 -2
  48. package/dist/web/ProductField/checkbox-no.svg.js +3 -1
  49. package/dist/web/ProductField/checkbox-no.svg.mjs +2 -2
  50. package/dist/web/ProductField/checkbox-ok.svg.js +3 -1
  51. package/dist/web/ProductField/checkbox-ok.svg.mjs +2 -2
  52. package/dist/web/ProductField/no_data_light.svg.js +3 -1
  53. package/dist/web/ProductField/no_data_light.svg.mjs +2 -2
  54. package/dist/web/ProductField/search.svg.js +3 -1
  55. package/dist/web/ProductField/search.svg.mjs +2 -2
  56. package/dist/web/ProductField/sort.svg.js +3 -1
  57. package/dist/web/ProductField/sort.svg.mjs +2 -2
  58. package/dist/web/SkuInputCard/SkuInputCard.js +276 -1
  59. package/dist/web/SkuInputCard/SkuInputCard.mjs +188 -149
  60. package/dist/web/SkuInputCard/spin_loading_red.gif.js +3 -1
  61. package/dist/web/SkuInputCard/spin_loading_red.gif.mjs +2 -2
  62. package/dist/web/Switch/Switch.js +70 -1
  63. package/dist/web/Switch/Switch.mjs +47 -37
  64. package/dist/web/Table/BTable.js +950 -1
  65. package/dist/web/Table/BTable.mjs +771 -519
  66. package/dist/web/Table/Column.js +5 -1
  67. package/dist/web/Table/Column.mjs +2 -2
  68. package/dist/web/Table/ColumnGroup.js +5 -1
  69. package/dist/web/Table/ColumnGroup.mjs +2 -2
  70. package/dist/web/Table/utils/columns.js +48 -1
  71. package/dist/web/Table/utils/columns.mjs +35 -30
  72. package/dist/web/Table/utils/sortFilter.js +84 -1
  73. package/dist/web/Table/utils/sortFilter.mjs +73 -52
  74. package/dist/web/Tabs/BTabs.js +150 -1
  75. package/dist/web/Tabs/BTabs.mjs +118 -98
  76. package/dist/web/Tabs/TabPane.js +8 -1
  77. package/dist/web/Tabs/TabPane.mjs +4 -4
  78. package/dist/web/Tooltip/ConfirmTooltip.js +26 -1
  79. package/dist/web/Tooltip/ConfirmTooltip.mjs +20 -19
  80. package/dist/web/Tooltip/ContentTooltip.js +94 -1
  81. package/dist/web/Tooltip/ContentTooltip.mjs +72 -62
  82. package/dist/web/Tooltip/ProgressTooltip.js +36 -1
  83. package/dist/web/Tooltip/ProgressTooltip.mjs +22 -20
  84. package/dist/web/Tooltip/TooltipWrapper.js +12 -1
  85. package/dist/web/Tooltip/TooltipWrapper.mjs +8 -8
  86. package/dist/web/Tooltip/useAutoPlacement.js +41 -1
  87. package/dist/web/Tooltip/useAutoPlacement.mjs +34 -25
  88. package/dist/web.js +51 -1
  89. package/dist/web.mjs +49 -49
  90. package/package.json +1 -1
@@ -1,152 +1,233 @@
1
- import { jsxs as se, Fragment as le, jsx as re } from "react/jsx-runtime";
2
- import { useRef as x, useState as $, useEffect as F, useCallback as D } from "react";
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { useRef, useState, useEffect, useCallback } from "react";
3
3
  /* empty css */
4
- const Z = 24, ie = 800, U = { visible: !1, offset: 0, length: 0, cross: 0 };
5
- function fe({
6
- containerRef: j,
7
- targetRef: C,
8
- selector: q,
9
- direction: S = "vertical",
10
- size: g = 4,
11
- gap: w = 0,
12
- background: G,
13
- showOnHover: s = !0,
14
- showOnScroll: J = !0,
15
- hoverSelector: A,
16
- horizontalInsetStart: p = 0,
17
- horizontalInsetEnd: B = 0,
18
- horizontalThumbLength: k,
19
- className: ce = ""
4
+ const MIN_THUMB_SIZE = 24;
5
+ const HIDE_DELAY = 800;
6
+ const EMPTY_THUMB = { visible: false, offset: 0, length: 0, cross: 0 };
7
+ function BOverlayScrollbar({
8
+ containerRef,
9
+ targetRef,
10
+ selector,
11
+ direction = "vertical",
12
+ size = 4,
13
+ gap = 0,
14
+ background,
15
+ showOnHover = true,
16
+ showOnScroll = true,
17
+ hoverSelector,
18
+ horizontalInsetStart = 0,
19
+ horizontalInsetEnd = 0,
20
+ horizontalThumbLength,
21
+ className = ""
20
22
  }) {
21
- const P = S === "vertical" || S === "both", V = S === "horizontal" || S === "both", m = x(null), a = x(null), y = x(null), h = x(!1), E = x(!1), [N, K] = $(U), [R, Q] = $(U), [oe, f] = $(!s);
22
- F(() => {
23
- s || f(!0);
24
- }, [s]);
25
- const L = D(() => {
26
- const e = m.current, n = j.current;
27
- if (!e || !n) return;
28
- const { scrollTop: t, scrollHeight: o, clientHeight: c, scrollLeft: b, scrollWidth: l, clientWidth: i } = e, d = e.getBoundingClientRect(), r = n.getBoundingClientRect(), v = d.top - r.top, T = d.left - r.left;
29
- if (P) {
30
- const _ = o - c;
31
- if (_ <= 1)
32
- K((u) => u.visible ? U : u);
33
- else {
34
- const u = Math.max(c / o * c, Z);
35
- K({
36
- visible: !0,
37
- offset: v + t / _ * (c - u),
38
- length: u,
39
- cross: T + i - g - w
23
+ const showVertical = direction === "vertical" || direction === "both";
24
+ const showHorizontal = direction === "horizontal" || direction === "both";
25
+ const scrollElementRef = useRef(null);
26
+ const dragRef = useRef(null);
27
+ const hideTimerRef = useRef(null);
28
+ const hoverTargetRef = useRef(false);
29
+ const thumbHoverRef = useRef(false);
30
+ const [verticalThumb, setVerticalThumb] = useState(EMPTY_THUMB);
31
+ const [horizontalThumb, setHorizontalThumb] = useState(EMPTY_THUMB);
32
+ const [active, setActive] = useState(!showOnHover);
33
+ useEffect(() => {
34
+ if (!showOnHover) setActive(true);
35
+ }, [showOnHover]);
36
+ const sync = useCallback(() => {
37
+ const element = scrollElementRef.current;
38
+ const container = containerRef.current;
39
+ if (!element || !container) return;
40
+ const { scrollTop, scrollHeight, clientHeight, scrollLeft, scrollWidth, clientWidth } = element;
41
+ const elementRect = element.getBoundingClientRect();
42
+ const containerRect = container.getBoundingClientRect();
43
+ const offsetTop = elementRect.top - containerRect.top;
44
+ const offsetLeft = elementRect.left - containerRect.left;
45
+ if (showVertical) {
46
+ const maxScroll = scrollHeight - clientHeight;
47
+ if (maxScroll <= 1) {
48
+ setVerticalThumb((previous) => previous.visible ? EMPTY_THUMB : previous);
49
+ } else {
50
+ const length = Math.max(clientHeight / scrollHeight * clientHeight, MIN_THUMB_SIZE);
51
+ setVerticalThumb({
52
+ visible: true,
53
+ offset: offsetTop + scrollTop / maxScroll * (clientHeight - length),
54
+ length,
55
+ cross: offsetLeft + clientWidth - size - gap
40
56
  });
41
57
  }
42
58
  }
43
- if (V) {
44
- const _ = l - i, u = Math.max(i - p - B, 0);
45
- if (_ <= 1 || u <= 0)
46
- Q((H) => H.visible ? U : H);
47
- else {
48
- const H = i / l * u, ne = Math.min(u, Math.max(k ?? H, Z));
49
- Q({
50
- visible: !0,
51
- offset: T + p + b / _ * (u - ne),
52
- length: ne,
53
- cross: v + c - g - w
59
+ if (showHorizontal) {
60
+ const maxScroll = scrollWidth - clientWidth;
61
+ const trackLength = Math.max(clientWidth - horizontalInsetStart - horizontalInsetEnd, 0);
62
+ if (maxScroll <= 1 || trackLength <= 0) {
63
+ setHorizontalThumb((previous) => previous.visible ? EMPTY_THUMB : previous);
64
+ } else {
65
+ const proportionalLength = clientWidth / scrollWidth * trackLength;
66
+ const length = Math.min(trackLength, Math.max(horizontalThumbLength ?? proportionalLength, MIN_THUMB_SIZE));
67
+ setHorizontalThumb({
68
+ visible: true,
69
+ offset: offsetLeft + horizontalInsetStart + scrollLeft / maxScroll * (trackLength - length),
70
+ length,
71
+ cross: offsetTop + clientHeight - size - gap
54
72
  });
55
73
  }
56
74
  }
57
- }, [j, w, B, p, k, V, P, g]), W = D(() => {
58
- if (!s) return;
59
- const e = h.current || E.current || a.current;
60
- if (!J && !e) {
61
- f(!1);
75
+ }, [containerRef, gap, horizontalInsetEnd, horizontalInsetStart, horizontalThumbLength, showHorizontal, showVertical, size]);
76
+ const wakeUp = useCallback(() => {
77
+ if (!showOnHover) return;
78
+ const interacting = hoverTargetRef.current || thumbHoverRef.current || dragRef.current;
79
+ if (!showOnScroll && !interacting) {
80
+ setActive(false);
62
81
  return;
63
82
  }
64
- f(!0), y.current && clearTimeout(y.current), y.current = setTimeout(() => {
65
- !a.current && !h.current && !E.current && f(!1);
66
- }, ie);
67
- }, [s, J]), X = D(() => {
68
- L(), W();
69
- }, [L, W]);
70
- F(() => {
71
- const e = j.current;
72
- if (!e) return;
73
- window.getComputedStyle(e).position === "static" && (e.style.position = "relative");
74
- let n, t = null;
75
- const o = () => {
76
- const r = (C == null ? void 0 : C.current) ?? (q ? e.querySelector(q) : e.firstElementChild);
77
- if (!r || r === m.current) return;
78
- n == null || n(), m.current = r, r.addEventListener("scroll", X, { passive: !0 });
79
- const v = new ResizeObserver(L);
80
- v.observe(r), r.firstElementChild && v.observe(r.firstElementChild), n = () => {
81
- r.removeEventListener("scroll", X), v.disconnect();
82
- }, L();
83
- }, c = () => {
84
- h.current = !0, s && f(!0);
85
- }, b = () => {
86
- h.current = !1, s && !E.current && !a.current && f(!1);
87
- }, l = () => {
88
- t == null || t.removeEventListener("mouseenter", c), t == null || t.removeEventListener("mouseleave", b), t = null, h.current = !1;
89
- }, i = () => {
90
- const r = A ? e.querySelector(A) : e;
91
- !r || r === t || (l(), t = r, t.addEventListener("mouseenter", c), t.addEventListener("mouseleave", b));
83
+ setActive(true);
84
+ if (hideTimerRef.current) clearTimeout(hideTimerRef.current);
85
+ hideTimerRef.current = setTimeout(() => {
86
+ if (!dragRef.current && !hoverTargetRef.current && !thumbHoverRef.current) setActive(false);
87
+ }, HIDE_DELAY);
88
+ }, [showOnHover, showOnScroll]);
89
+ const onScroll = useCallback(() => {
90
+ sync();
91
+ wakeUp();
92
+ }, [sync, wakeUp]);
93
+ useEffect(() => {
94
+ const container = containerRef.current;
95
+ if (!container) return;
96
+ if (window.getComputedStyle(container).position === "static") container.style.position = "relative";
97
+ let detach;
98
+ let hoverElement = null;
99
+ const attach = () => {
100
+ const element = (targetRef == null ? void 0 : targetRef.current) ?? (selector ? container.querySelector(selector) : container.firstElementChild);
101
+ if (!element || element === scrollElementRef.current) return;
102
+ detach == null ? void 0 : detach();
103
+ scrollElementRef.current = element;
104
+ element.addEventListener("scroll", onScroll, { passive: true });
105
+ const observer = new ResizeObserver(sync);
106
+ observer.observe(element);
107
+ if (element.firstElementChild) observer.observe(element.firstElementChild);
108
+ detach = () => {
109
+ element.removeEventListener("scroll", onScroll);
110
+ observer.disconnect();
111
+ };
112
+ sync();
92
113
  };
93
- o(), i();
94
- const d = new MutationObserver(() => {
95
- (!m.current || !e.contains(m.current)) && o(), t && !e.contains(t) && l(), t || i(), L();
114
+ const onEnter = () => {
115
+ hoverTargetRef.current = true;
116
+ if (showOnHover) setActive(true);
117
+ };
118
+ const onLeave = () => {
119
+ hoverTargetRef.current = false;
120
+ if (showOnHover && !thumbHoverRef.current && !dragRef.current) setActive(false);
121
+ };
122
+ const detachHover = () => {
123
+ hoverElement == null ? void 0 : hoverElement.removeEventListener("mouseenter", onEnter);
124
+ hoverElement == null ? void 0 : hoverElement.removeEventListener("mouseleave", onLeave);
125
+ hoverElement = null;
126
+ hoverTargetRef.current = false;
127
+ };
128
+ const attachHover = () => {
129
+ const next = hoverSelector ? container.querySelector(hoverSelector) : container;
130
+ if (!next || next === hoverElement) return;
131
+ detachHover();
132
+ hoverElement = next;
133
+ hoverElement.addEventListener("mouseenter", onEnter);
134
+ hoverElement.addEventListener("mouseleave", onLeave);
135
+ };
136
+ attach();
137
+ attachHover();
138
+ const mutation = new MutationObserver(() => {
139
+ if (!scrollElementRef.current || !container.contains(scrollElementRef.current)) attach();
140
+ if (hoverElement && !container.contains(hoverElement)) detachHover();
141
+ if (!hoverElement) attachHover();
142
+ sync();
96
143
  });
97
- return d.observe(e, { childList: !0, subtree: !0 }), () => {
98
- d.disconnect(), n == null || n(), l(), m.current = null, y.current && clearTimeout(y.current);
144
+ mutation.observe(container, { childList: true, subtree: true });
145
+ return () => {
146
+ mutation.disconnect();
147
+ detach == null ? void 0 : detach();
148
+ detachHover();
149
+ scrollElementRef.current = null;
150
+ if (hideTimerRef.current) clearTimeout(hideTimerRef.current);
151
+ };
152
+ }, [containerRef, hoverSelector, onScroll, selector, showOnHover, sync, targetRef]);
153
+ const onDragMove = useCallback((event) => {
154
+ const element = scrollElementRef.current;
155
+ const start = dragRef.current;
156
+ if (!element || !start) return;
157
+ const vertical = start.axis === "vertical";
158
+ const clientSize = vertical ? element.clientHeight : element.clientWidth;
159
+ const scrollSize = vertical ? element.scrollHeight : element.scrollWidth;
160
+ const trackLength = vertical ? clientSize : Math.max(clientSize - horizontalInsetStart - horizontalInsetEnd, 0);
161
+ const proportionalLength = clientSize / scrollSize * trackLength;
162
+ const thumbLength = Math.min(trackLength, Math.max(vertical ? proportionalLength : horizontalThumbLength ?? proportionalLength, MIN_THUMB_SIZE));
163
+ const trackRange = trackLength - thumbLength;
164
+ if (trackRange <= 0) return;
165
+ const delta = (vertical ? event.clientY : event.clientX) - start.client;
166
+ const moved = start.scroll + delta * ((scrollSize - clientSize) / trackRange);
167
+ if (vertical) element.scrollTop = moved;
168
+ else element.scrollLeft = moved;
169
+ }, [horizontalInsetEnd, horizontalInsetStart, horizontalThumbLength]);
170
+ const onDragEnd = useCallback(() => {
171
+ const wasDragging = Boolean(dragRef.current);
172
+ dragRef.current = null;
173
+ document.body.style.userSelect = "";
174
+ document.removeEventListener("mousemove", onDragMove);
175
+ document.removeEventListener("mouseup", onDragEnd);
176
+ if (wasDragging) wakeUp();
177
+ }, [onDragMove, wakeUp]);
178
+ const startDrag = (axis) => (event) => {
179
+ const element = scrollElementRef.current;
180
+ if (!element) return;
181
+ event.preventDefault();
182
+ event.stopPropagation();
183
+ dragRef.current = {
184
+ axis,
185
+ client: axis === "vertical" ? event.clientY : event.clientX,
186
+ scroll: axis === "vertical" ? element.scrollTop : element.scrollLeft
99
187
  };
100
- }, [j, A, X, q, s, L, C]);
101
- const M = D((e) => {
102
- const n = m.current, t = a.current;
103
- if (!n || !t) return;
104
- const o = t.axis === "vertical", c = o ? n.clientHeight : n.clientWidth, b = o ? n.scrollHeight : n.scrollWidth, l = o ? c : Math.max(c - p - B, 0), i = c / b * l, d = Math.min(l, Math.max(o ? i : k ?? i, Z)), r = l - d;
105
- if (r <= 0) return;
106
- const v = (o ? e.clientY : e.clientX) - t.client, T = t.scroll + v * ((b - c) / r);
107
- o ? n.scrollTop = T : n.scrollLeft = T;
108
- }, [B, p, k]), Y = D(() => {
109
- const e = !!a.current;
110
- a.current = null, document.body.style.userSelect = "", document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", Y), e && W();
111
- }, [M, W]), I = (e) => (n) => {
112
- const t = m.current;
113
- t && (n.preventDefault(), n.stopPropagation(), a.current = {
114
- axis: e,
115
- client: e === "vertical" ? n.clientY : n.clientX,
116
- scroll: e === "vertical" ? t.scrollTop : t.scrollLeft
117
- }, document.body.style.userSelect = "none", document.addEventListener("mousemove", M), document.addEventListener("mouseup", Y));
188
+ document.body.style.userSelect = "none";
189
+ document.addEventListener("mousemove", onDragMove);
190
+ document.addEventListener("mouseup", onDragEnd);
191
+ };
192
+ useEffect(() => () => {
193
+ dragRef.current = null;
194
+ document.body.style.userSelect = "";
195
+ document.removeEventListener("mousemove", onDragMove);
196
+ document.removeEventListener("mouseup", onDragEnd);
197
+ }, [onDragEnd, onDragMove]);
198
+ const thumbClassName = ["bj-overlay-scrollbar__thumb", active && "bj-overlay-scrollbar__thumb--active", className].filter(Boolean).join(" ");
199
+ const colorStyle = background ? { "--bj-overlay-scrollbar-bg": background } : void 0;
200
+ const onThumbEnter = () => {
201
+ thumbHoverRef.current = true;
202
+ if (showOnHover) setActive(true);
118
203
  };
119
- F(() => () => {
120
- a.current = null, document.body.style.userSelect = "", document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", Y);
121
- }, [Y, M]);
122
- const z = ["bj-overlay-scrollbar__thumb", oe && "bj-overlay-scrollbar__thumb--active", ce].filter(Boolean).join(" "), O = G ? { "--bj-overlay-scrollbar-bg": G } : void 0, ee = () => {
123
- E.current = !0, s && f(!0);
124
- }, te = () => {
125
- E.current = !1, s && !h.current && !a.current && f(!1);
204
+ const onThumbLeave = () => {
205
+ thumbHoverRef.current = false;
206
+ if (showOnHover && !hoverTargetRef.current && !dragRef.current) setActive(false);
126
207
  };
127
- return /* @__PURE__ */ se(le, { children: [
128
- P && N.visible && /* @__PURE__ */ re(
208
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
209
+ showVertical && verticalThumb.visible && /* @__PURE__ */ jsx(
129
210
  "div",
130
211
  {
131
- className: `${z} bj-overlay-scrollbar__thumb--vertical`,
132
- onMouseDown: I("vertical"),
133
- onMouseEnter: ee,
134
- onMouseLeave: te,
135
- style: { ...O, top: N.offset, left: N.cross, height: N.length, width: g }
212
+ className: `${thumbClassName} bj-overlay-scrollbar__thumb--vertical`,
213
+ onMouseDown: startDrag("vertical"),
214
+ onMouseEnter: onThumbEnter,
215
+ onMouseLeave: onThumbLeave,
216
+ style: { ...colorStyle, top: verticalThumb.offset, left: verticalThumb.cross, height: verticalThumb.length, width: size }
136
217
  }
137
218
  ),
138
- V && R.visible && /* @__PURE__ */ re(
219
+ showHorizontal && horizontalThumb.visible && /* @__PURE__ */ jsx(
139
220
  "div",
140
221
  {
141
- className: `${z} bj-overlay-scrollbar__thumb--horizontal`,
142
- onMouseDown: I("horizontal"),
143
- onMouseEnter: ee,
144
- onMouseLeave: te,
145
- style: { ...O, left: R.offset, top: R.cross, width: R.length, height: g }
222
+ className: `${thumbClassName} bj-overlay-scrollbar__thumb--horizontal`,
223
+ onMouseDown: startDrag("horizontal"),
224
+ onMouseEnter: onThumbEnter,
225
+ onMouseLeave: onThumbLeave,
226
+ style: { ...colorStyle, left: horizontalThumb.offset, top: horizontalThumb.cross, width: horizontalThumb.length, height: size }
146
227
  }
147
228
  )
148
229
  ] });
149
230
  }
150
231
  export {
151
- fe as default
232
+ BOverlayScrollbar as default
152
233
  };