@yamada-ui/reorder 0.3.16 → 0.3.18
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/{chunk-PUU4JU3F.mjs → chunk-7ACCIMKU.mjs} +2 -2
- package/dist/{chunk-Q3OZOO4X.mjs → chunk-GOOHL62S.mjs} +1 -5
- package/dist/{chunk-FWLLGDRT.mjs → chunk-Z44QKKOP.mjs} +7 -7
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/reorder-item.js +6 -6
- package/dist/reorder-item.mjs +2 -2
- package/dist/reorder-trigger.js +6 -6
- package/dist/reorder-trigger.mjs +3 -3
- package/dist/reorder.mjs +1 -1
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
useReorderItemContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z44QKKOP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useReorderContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GOOHL62S.mjs";
|
|
8
8
|
|
|
9
9
|
// src/reorder-trigger.tsx
|
|
10
10
|
import { ui, forwardRef } from "@yamada-ui/core";
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
// src/reorder.tsx
|
|
4
|
-
import {
|
|
5
|
-
ui,
|
|
6
|
-
useMultiComponentStyle,
|
|
7
|
-
omitThemeProps
|
|
8
|
-
} from "@yamada-ui/core";
|
|
4
|
+
import { ui, useMultiComponentStyle, omitThemeProps } from "@yamada-ui/core";
|
|
9
5
|
import { MotionReorder } from "@yamada-ui/motion";
|
|
10
6
|
import {
|
|
11
7
|
createContext,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
useReorderContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GOOHL62S.mjs";
|
|
5
5
|
|
|
6
6
|
// src/reorder-item.tsx
|
|
7
7
|
import { ui } from "@yamada-ui/core";
|
|
@@ -31,17 +31,17 @@ var ReorderItem = forwardRef(
|
|
|
31
31
|
[]
|
|
32
32
|
);
|
|
33
33
|
useEffect(() => {
|
|
34
|
-
x.
|
|
34
|
+
const unsubscribeX = x.on("change", (x2) => {
|
|
35
35
|
if (orientation === "horizontal")
|
|
36
|
-
setIsDrag(
|
|
36
|
+
setIsDrag(x2 !== 0);
|
|
37
37
|
});
|
|
38
|
-
y.
|
|
38
|
+
const unsubscribeY = y.on("change", (y2) => {
|
|
39
39
|
if (orientation === "vertical")
|
|
40
|
-
setIsDrag(
|
|
40
|
+
setIsDrag(y2 !== 0);
|
|
41
41
|
});
|
|
42
42
|
return () => {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
unsubscribeX();
|
|
44
|
+
unsubscribeY();
|
|
45
45
|
};
|
|
46
46
|
}, [orientation, x, y]);
|
|
47
47
|
const css = {
|
package/dist/index.js
CHANGED
|
@@ -144,17 +144,17 @@ var ReorderItem = (0, import_react2.forwardRef)(
|
|
|
144
144
|
[]
|
|
145
145
|
);
|
|
146
146
|
(0, import_react2.useEffect)(() => {
|
|
147
|
-
x.
|
|
147
|
+
const unsubscribeX = x.on("change", (x2) => {
|
|
148
148
|
if (orientation === "horizontal")
|
|
149
|
-
setIsDrag(
|
|
149
|
+
setIsDrag(x2 !== 0);
|
|
150
150
|
});
|
|
151
|
-
y.
|
|
151
|
+
const unsubscribeY = y.on("change", (y2) => {
|
|
152
152
|
if (orientation === "vertical")
|
|
153
|
-
setIsDrag(
|
|
153
|
+
setIsDrag(y2 !== 0);
|
|
154
154
|
});
|
|
155
155
|
return () => {
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
unsubscribeX();
|
|
157
|
+
unsubscribeY();
|
|
158
158
|
};
|
|
159
159
|
}, [orientation, x, y]);
|
|
160
160
|
const css = {
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
ReorderTrigger
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7ACCIMKU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ReorderItem
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z44QKKOP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Reorder
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GOOHL62S.mjs";
|
|
11
11
|
export {
|
|
12
12
|
Reorder,
|
|
13
13
|
ReorderItem,
|
package/dist/reorder-item.js
CHANGED
|
@@ -144,17 +144,17 @@ var ReorderItem = (0, import_react2.forwardRef)(
|
|
|
144
144
|
[]
|
|
145
145
|
);
|
|
146
146
|
(0, import_react2.useEffect)(() => {
|
|
147
|
-
x.
|
|
147
|
+
const unsubscribeX = x.on("change", (x2) => {
|
|
148
148
|
if (orientation === "horizontal")
|
|
149
|
-
setIsDrag(
|
|
149
|
+
setIsDrag(x2 !== 0);
|
|
150
150
|
});
|
|
151
|
-
y.
|
|
151
|
+
const unsubscribeY = y.on("change", (y2) => {
|
|
152
152
|
if (orientation === "vertical")
|
|
153
|
-
setIsDrag(
|
|
153
|
+
setIsDrag(y2 !== 0);
|
|
154
154
|
});
|
|
155
155
|
return () => {
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
unsubscribeX();
|
|
157
|
+
unsubscribeY();
|
|
158
158
|
};
|
|
159
159
|
}, [orientation, x, y]);
|
|
160
160
|
const css = {
|
package/dist/reorder-item.mjs
CHANGED
package/dist/reorder-trigger.js
CHANGED
|
@@ -145,17 +145,17 @@ var ReorderItem = (0, import_react2.forwardRef)(
|
|
|
145
145
|
[]
|
|
146
146
|
);
|
|
147
147
|
(0, import_react2.useEffect)(() => {
|
|
148
|
-
x.
|
|
148
|
+
const unsubscribeX = x.on("change", (x2) => {
|
|
149
149
|
if (orientation === "horizontal")
|
|
150
|
-
setIsDrag(
|
|
150
|
+
setIsDrag(x2 !== 0);
|
|
151
151
|
});
|
|
152
|
-
y.
|
|
152
|
+
const unsubscribeY = y.on("change", (y2) => {
|
|
153
153
|
if (orientation === "vertical")
|
|
154
|
-
setIsDrag(
|
|
154
|
+
setIsDrag(y2 !== 0);
|
|
155
155
|
});
|
|
156
156
|
return () => {
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
unsubscribeX();
|
|
158
|
+
unsubscribeY();
|
|
159
159
|
};
|
|
160
160
|
}, [orientation, x, y]);
|
|
161
161
|
const css = {
|
package/dist/reorder-trigger.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
ReorderTrigger
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-7ACCIMKU.mjs";
|
|
5
|
+
import "./chunk-Z44QKKOP.mjs";
|
|
6
|
+
import "./chunk-GOOHL62S.mjs";
|
|
7
7
|
export {
|
|
8
8
|
ReorderTrigger
|
|
9
9
|
};
|
package/dist/reorder.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/reorder",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "Yamada UI reorder component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"url": "https://github.com/hirotomoyamada/yamada-ui/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@yamada-ui/core": "0.12.
|
|
38
|
+
"@yamada-ui/core": "0.12.7",
|
|
39
39
|
"@yamada-ui/utils": "0.3.3",
|
|
40
|
-
"@yamada-ui/motion": "0.4.
|
|
41
|
-
"@yamada-ui/icon": "0.3.
|
|
40
|
+
"@yamada-ui/motion": "0.4.17",
|
|
41
|
+
"@yamada-ui/icon": "0.3.17"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"react": "^18.0.0",
|