flowcloudai-ui 0.1.9 → 0.1.10
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.
- package/dist/index.js +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2029,7 +2029,7 @@ import { useRef as useRef7, useCallback as useCallback8, memo as memo4, useEffec
|
|
|
2029
2029
|
import {
|
|
2030
2030
|
DndContext as DndContext2,
|
|
2031
2031
|
closestCenter,
|
|
2032
|
-
|
|
2032
|
+
MouseSensor,
|
|
2033
2033
|
useSensor as useSensor2,
|
|
2034
2034
|
useSensors as useSensors2
|
|
2035
2035
|
} from "@dnd-kit/core";
|
|
@@ -2097,6 +2097,11 @@ var TabItemView = memo4(({
|
|
|
2097
2097
|
...tabStyle,
|
|
2098
2098
|
...isActive ? activeTabStyle : void 0
|
|
2099
2099
|
};
|
|
2100
|
+
const { onMouseDown: dndMouseDown, ...restListeners } = listeners ?? {};
|
|
2101
|
+
const handleMouseDown = (e) => {
|
|
2102
|
+
dndMouseDown?.(e);
|
|
2103
|
+
if (stopMouseDown) e.stopPropagation();
|
|
2104
|
+
};
|
|
2100
2105
|
return /* @__PURE__ */ jsxs13(
|
|
2101
2106
|
"div",
|
|
2102
2107
|
{
|
|
@@ -2104,9 +2109,9 @@ var TabItemView = memo4(({
|
|
|
2104
2109
|
className: classes,
|
|
2105
2110
|
style: mergedStyle,
|
|
2106
2111
|
onClick: () => !item.disabled && onClick(item.key),
|
|
2107
|
-
onMouseDown:
|
|
2112
|
+
onMouseDown: handleMouseDown,
|
|
2108
2113
|
...attributes,
|
|
2109
|
-
...
|
|
2114
|
+
...restListeners,
|
|
2110
2115
|
role: "tab",
|
|
2111
2116
|
"aria-selected": isActive,
|
|
2112
2117
|
"aria-disabled": item.disabled,
|
|
@@ -2214,7 +2219,7 @@ var TabBar = memo4(({
|
|
|
2214
2219
|
[onClose]
|
|
2215
2220
|
);
|
|
2216
2221
|
const sensors = useSensors2(
|
|
2217
|
-
useSensor2(
|
|
2222
|
+
useSensor2(MouseSensor, {
|
|
2218
2223
|
activationConstraint: { distance: 5 }
|
|
2219
2224
|
})
|
|
2220
2225
|
);
|