@octanejs/radix 0.1.3 → 0.1.5
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/package.json +10 -4
- package/src/ScrollArea.ts +2 -1
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/radix",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22"
|
|
8
|
+
},
|
|
6
9
|
"octane": {
|
|
7
10
|
"hookSlots": {
|
|
8
11
|
"manual": [
|
|
@@ -35,8 +38,10 @@
|
|
|
35
38
|
},
|
|
36
39
|
"dependencies": {
|
|
37
40
|
"aria-hidden": "^1.2.6",
|
|
38
|
-
"@octanejs/floating-ui": "0.1.
|
|
39
|
-
|
|
41
|
+
"@octanejs/floating-ui": "0.1.5"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"octane": "0.1.6"
|
|
40
45
|
},
|
|
41
46
|
"devDependencies": {
|
|
42
47
|
"@tsrx/react": "^0.2.37",
|
|
@@ -44,7 +49,8 @@
|
|
|
44
49
|
"radix-ui": "^1.4.3",
|
|
45
50
|
"react": "^19.2.0",
|
|
46
51
|
"react-dom": "^19.2.0",
|
|
47
|
-
"vitest": "^4.1.9"
|
|
52
|
+
"vitest": "^4.1.9",
|
|
53
|
+
"octane": "0.1.6"
|
|
48
54
|
},
|
|
49
55
|
"scripts": {
|
|
50
56
|
"test": "vitest run"
|
package/src/ScrollArea.ts
CHANGED
|
@@ -249,7 +249,7 @@ function useStateMachine(
|
|
|
249
249
|
machine: Record<string, Record<string, string>>,
|
|
250
250
|
slot: symbol | undefined,
|
|
251
251
|
): [string, (event: string) => void] {
|
|
252
|
-
|
|
252
|
+
const [state, dispatch] = useReducer(
|
|
253
253
|
(state: string, event: string): string => {
|
|
254
254
|
const nextState = machine[state][event];
|
|
255
255
|
return nextState ?? state;
|
|
@@ -257,6 +257,7 @@ function useStateMachine(
|
|
|
257
257
|
initialState,
|
|
258
258
|
slot,
|
|
259
259
|
);
|
|
260
|
+
return [state, dispatch];
|
|
260
261
|
}
|
|
261
262
|
|
|
262
263
|
function ScrollbarScroll(props: any): any {
|