@negative-space/roving-focus 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Matheus Bastani
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # @negative-space/roving-focus
2
+
3
+ A lightweight Roving Focus hook from Negative Space, enabling fully custom interactive navigation.
4
+
5
+ ## Installation
6
+
7
+ # Using Yarn
8
+ yarn add @negative-space/roving-focus
9
+
10
+ # Using npm
11
+ npm install @negative-space/roving-focus
12
+
13
+ ## Contributing
14
+
15
+ Feel free to fork, tweak, and send a pull request!
@@ -0,0 +1,18 @@
1
+ import * as react from 'react';
2
+
3
+ type RovingFocusItem<Id extends string = string> = {
4
+ id: Id;
5
+ ref: React.RefObject<HTMLElement>;
6
+ disabled?: boolean;
7
+ };
8
+ declare const useRovingFocus: <Item extends RovingFocusItem<Id>, Id extends string = string>() => {
9
+ registerItem: (item: Item) => void;
10
+ unregisterItem: (id: Id) => void;
11
+ activeId: Id | null;
12
+ setActiveId: react.Dispatch<react.SetStateAction<Id | null>>;
13
+ onKeyDown: (event: React.KeyboardEvent) => void;
14
+ onFocus: (event: React.FocusEvent) => void;
15
+ onBlur: (event: React.FocusEvent) => void;
16
+ };
17
+
18
+ export { type RovingFocusItem, useRovingFocus };
@@ -0,0 +1,18 @@
1
+ import * as react from 'react';
2
+
3
+ type RovingFocusItem<Id extends string = string> = {
4
+ id: Id;
5
+ ref: React.RefObject<HTMLElement>;
6
+ disabled?: boolean;
7
+ };
8
+ declare const useRovingFocus: <Item extends RovingFocusItem<Id>, Id extends string = string>() => {
9
+ registerItem: (item: Item) => void;
10
+ unregisterItem: (id: Id) => void;
11
+ activeId: Id | null;
12
+ setActiveId: react.Dispatch<react.SetStateAction<Id | null>>;
13
+ onKeyDown: (event: React.KeyboardEvent) => void;
14
+ onFocus: (event: React.FocusEvent) => void;
15
+ onBlur: (event: React.FocusEvent) => void;
16
+ };
17
+
18
+ export { type RovingFocusItem, useRovingFocus };
package/dist/index.js ADDED
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ var react = require('react');
4
+
5
+ // src/index.ts
6
+ var useRovingFocus = () => {
7
+ const items = react.useRef([]);
8
+ const [activeId, setActiveId] = react.useState(null);
9
+ const registerItem = react.useCallback((item) => {
10
+ if (items.current.some((i) => i.id === item.id)) return;
11
+ items.current = [...items.current, item];
12
+ }, []);
13
+ const unregisterItem = react.useCallback((id) => {
14
+ items.current = items.current.filter((i) => i.id !== id);
15
+ }, []);
16
+ const focusItem = react.useCallback((item) => {
17
+ if (!item || item.disabled) return;
18
+ setActiveId(item.id);
19
+ item.ref.current?.focus();
20
+ }, []);
21
+ const moveFocus = react.useCallback(
22
+ (offset) => {
23
+ const enabled = items.current.filter((i) => !i.disabled);
24
+ if (!enabled.length) return;
25
+ const index = enabled.findIndex((i) => i.id === activeId);
26
+ const nextIndex = index === -1 ? 0 : (index + offset + enabled.length) % enabled.length;
27
+ focusItem(enabled[nextIndex]);
28
+ },
29
+ [activeId, focusItem]
30
+ );
31
+ const onKeyDown = react.useCallback(
32
+ (event) => {
33
+ if (event.key === "ArrowDown") {
34
+ event.preventDefault();
35
+ moveFocus(1);
36
+ }
37
+ if (event.key === "ArrowUp") {
38
+ event.preventDefault();
39
+ moveFocus(-1);
40
+ }
41
+ },
42
+ [moveFocus]
43
+ );
44
+ const onFocus = react.useCallback((event) => {
45
+ if (event.target === event.currentTarget) {
46
+ setActiveId(null);
47
+ }
48
+ }, []);
49
+ const onBlur = react.useCallback((event) => {
50
+ if (!event.currentTarget.contains(event.relatedTarget)) {
51
+ setActiveId(null);
52
+ }
53
+ }, []);
54
+ return {
55
+ registerItem,
56
+ unregisterItem,
57
+ activeId,
58
+ setActiveId,
59
+ onKeyDown,
60
+ onFocus,
61
+ onBlur
62
+ };
63
+ };
64
+
65
+ exports.useRovingFocus = useRovingFocus;
66
+ //# sourceMappingURL=index.js.map
67
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":["useRef","useState","useCallback"],"mappings":";;;;;AAQO,IAAM,iBAAiB,MAAoE;AAChG,EAAA,MAAM,KAAA,GAAQA,YAAA,CAAe,EAAE,CAAA;AAC/B,EAAA,MAAM,CAAC,QAAA,EAAU,WAAW,CAAA,GAAIC,eAAoB,IAAI,CAAA;AAExD,EAAA,MAAM,YAAA,GAAeC,iBAAA,CAAY,CAAC,IAAA,KAAe;AAC/C,IAAA,IAAI,KAAA,CAAM,QAAQ,IAAA,CAAK,CAAC,MAAM,CAAA,CAAE,EAAA,KAAO,IAAA,CAAK,EAAE,CAAA,EAAG;AACjD,IAAA,KAAA,CAAM,OAAA,GAAU,CAAC,GAAG,KAAA,CAAM,SAAS,IAAI,CAAA;AAAA,EACzC,CAAA,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AAU,CAAC,CAAA;AAAA,MACb;AACA,MAAA,IAAI,KAAA,CAAM,QAAQ,SAAA,EAAW;AAC3B,QAAA,KAAA,CAAM,cAAA,EAAe;AACrB,QAAA,SAAA,CAAU,EAAE,CAAA;AAAA,MACd;AAAA,IACF,CAAA;AAAA,IACA,CAAC,SAAS;AAAA,GACZ;AAEA,EAAA,MAAM,OAAA,GAAUA,iBAAA,CAAY,CAAC,KAAA,KAA4B;AACvD,IAAA,IAAI,KAAA,CAAM,MAAA,KAAW,KAAA,CAAM,aAAA,EAAe;AACxC,MAAA,WAAA,CAAY,IAAI,CAAA;AAAA,IAClB;AAAA,EACF,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,MAAM,MAAA,GAASA,iBAAA,CAAY,CAAC,KAAA,KAA4B;AACtD,IAAA,IAAI,CAAC,KAAA,CAAM,aAAA,CAAc,QAAA,CAAS,KAAA,CAAM,aAA4B,CAAA,EAAG;AACrE,MAAA,WAAA,CAAY,IAAI,CAAA;AAAA,IAClB;AAAA,EACF,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,OAAO;AAAA,IACL,YAAA;AAAA,IACA,cAAA;AAAA,IACA,QAAA;AAAA,IACA,WAAA;AAAA,IACA,SAAA;AAAA,IACA,OAAA;AAAA,IACA;AAAA,GACF;AACF","file":"index.js","sourcesContent":["import { useCallback, useRef, useState } from 'react'\n\nexport type RovingFocusItem<Id extends string = string> = {\n id: Id\n ref: React.RefObject<HTMLElement>\n disabled?: boolean\n}\n\nexport const useRovingFocus = <Item extends RovingFocusItem<Id>, Id extends string = string>() => {\n const items = useRef<Item[]>([])\n const [activeId, setActiveId] = useState<Id | null>(null)\n\n const registerItem = useCallback((item: Item) => {\n if (items.current.some((i) => i.id === item.id)) return\n items.current = [...items.current, item]\n }, [])\n\n const unregisterItem = useCallback((id: Id) => {\n items.current = items.current.filter((i) => i.id !== id)\n }, [])\n\n const focusItem = useCallback((item?: Item) => {\n if (!item || item.disabled) return\n setActiveId(item.id)\n item.ref.current?.focus()\n }, [])\n\n const moveFocus = useCallback(\n (offset: number) => {\n const enabled = items.current.filter((i) => !i.disabled)\n if (!enabled.length) return\n\n const index = enabled.findIndex((i) => i.id === activeId)\n const nextIndex = index === -1 ? 0 : (index + offset + enabled.length) % enabled.length\n\n focusItem(enabled[nextIndex])\n },\n [activeId, focusItem]\n )\n\n const onKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n if (event.key === 'ArrowDown') {\n event.preventDefault()\n moveFocus(1)\n }\n if (event.key === 'ArrowUp') {\n event.preventDefault()\n moveFocus(-1)\n }\n },\n [moveFocus]\n )\n\n const onFocus = useCallback((event: React.FocusEvent) => {\n if (event.target === event.currentTarget) {\n setActiveId(null)\n }\n }, [])\n\n const onBlur = useCallback((event: React.FocusEvent) => {\n if (!event.currentTarget.contains(event.relatedTarget as Node | null)) {\n setActiveId(null)\n }\n }, [])\n\n return {\n registerItem,\n unregisterItem,\n activeId,\n setActiveId,\n onKeyDown,\n onFocus,\n onBlur\n }\n}\n"]}
package/dist/index.mjs ADDED
@@ -0,0 +1,65 @@
1
+ import { useRef, useState, useCallback } from 'react';
2
+
3
+ // src/index.ts
4
+ var useRovingFocus = () => {
5
+ const items = useRef([]);
6
+ const [activeId, setActiveId] = useState(null);
7
+ const registerItem = useCallback((item) => {
8
+ if (items.current.some((i) => i.id === item.id)) return;
9
+ items.current = [...items.current, item];
10
+ }, []);
11
+ const unregisterItem = useCallback((id) => {
12
+ items.current = items.current.filter((i) => i.id !== id);
13
+ }, []);
14
+ const focusItem = useCallback((item) => {
15
+ if (!item || item.disabled) return;
16
+ setActiveId(item.id);
17
+ item.ref.current?.focus();
18
+ }, []);
19
+ const moveFocus = useCallback(
20
+ (offset) => {
21
+ const enabled = items.current.filter((i) => !i.disabled);
22
+ if (!enabled.length) return;
23
+ const index = enabled.findIndex((i) => i.id === activeId);
24
+ const nextIndex = index === -1 ? 0 : (index + offset + enabled.length) % enabled.length;
25
+ focusItem(enabled[nextIndex]);
26
+ },
27
+ [activeId, focusItem]
28
+ );
29
+ const onKeyDown = useCallback(
30
+ (event) => {
31
+ if (event.key === "ArrowDown") {
32
+ event.preventDefault();
33
+ moveFocus(1);
34
+ }
35
+ if (event.key === "ArrowUp") {
36
+ event.preventDefault();
37
+ moveFocus(-1);
38
+ }
39
+ },
40
+ [moveFocus]
41
+ );
42
+ const onFocus = useCallback((event) => {
43
+ if (event.target === event.currentTarget) {
44
+ setActiveId(null);
45
+ }
46
+ }, []);
47
+ const onBlur = useCallback((event) => {
48
+ if (!event.currentTarget.contains(event.relatedTarget)) {
49
+ setActiveId(null);
50
+ }
51
+ }, []);
52
+ return {
53
+ registerItem,
54
+ unregisterItem,
55
+ activeId,
56
+ setActiveId,
57
+ onKeyDown,
58
+ onFocus,
59
+ onBlur
60
+ };
61
+ };
62
+
63
+ export { useRovingFocus };
64
+ //# sourceMappingURL=index.mjs.map
65
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAQO,IAAM,iBAAiB,MAAoE;AAChG,EAAA,MAAM,KAAA,GAAQ,MAAA,CAAe,EAAE,CAAA;AAC/B,EAAA,MAAM,CAAC,QAAA,EAAU,WAAW,CAAA,GAAI,SAAoB,IAAI,CAAA;AAExD,EAAA,MAAM,YAAA,GAAe,WAAA,CAAY,CAAC,IAAA,KAAe;AAC/C,IAAA,IAAI,KAAA,CAAM,QAAQ,IAAA,CAAK,CAAC,MAAM,CAAA,CAAE,EAAA,KAAO,IAAA,CAAK,EAAE,CAAA,EAAG;AACjD,IAAA,KAAA,CAAM,OAAA,GAAU,CAAC,GAAG,KAAA,CAAM,SAAS,IAAI,CAAA;AAAA,EACzC,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,MAAM,cAAA,GAAiB,WAAA,CAAY,CAAC,EAAA,KAAW;AAC7C,IAAA,KAAA,CAAM,OAAA,GAAU,MAAM,OAAA,CAAQ,MAAA,CAAO,CAAC,CA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IACF,CAAA;AAAA,IACA,CAAC,SAAS;AAAA,GACZ;AAEA,EAAA,MAAM,OAAA,GAAU,WAAA,CAAY,CAAC,KAAA,KAA4B;AACvD,IAAA,IAAI,KAAA,CAAM,MAAA,KAAW,KAAA,CAAM,aAAA,EAAe;AACxC,MAAA,WAAA,CAAY,IAAI,CAAA;AAAA,IAClB;AAAA,EACF,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,MAAM,MAAA,GAAS,WAAA,CAAY,CAAC,KAAA,KAA4B;AACtD,IAAA,IAAI,CAAC,KAAA,CAAM,aAAA,CAAc,QAAA,CAAS,KAAA,CAAM,aAA4B,CAAA,EAAG;AACrE,MAAA,WAAA,CAAY,IAAI,CAAA;AAAA,IAClB;AAAA,EACF,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,OAAO;AAAA,IACL,YAAA;AAAA,IACA,cAAA;AAAA,IACA,QAAA;AAAA,IACA,WAAA;AAAA,IACA,SAAA;AAAA,IACA,OAAA;AAAA,IACA;AAAA,GACF;AACF","file":"index.mjs","sourcesContent":["import { useCallback, useRef, useState } from 'react'\n\nexport type RovingFocusItem<Id extends string = string> = {\n id: Id\n ref: React.RefObject<HTMLElement>\n disabled?: boolean\n}\n\nexport const useRovingFocus = <Item extends RovingFocusItem<Id>, Id extends string = string>() => {\n const items = useRef<Item[]>([])\n const [activeId, setActiveId] = useState<Id | null>(null)\n\n const registerItem = useCallback((item: Item) => {\n if (items.current.some((i) => i.id === item.id)) return\n items.current = [...items.current, item]\n }, [])\n\n const unregisterItem = useCallback((id: Id) => {\n items.current = items.current.filter((i) => i.id !== id)\n }, [])\n\n const focusItem = useCallback((item?: Item) => {\n if (!item || item.disabled) return\n setActiveId(item.id)\n item.ref.current?.focus()\n }, [])\n\n const moveFocus = useCallback(\n (offset: number) => {\n const enabled = items.current.filter((i) => !i.disabled)\n if (!enabled.length) return\n\n const index = enabled.findIndex((i) => i.id === activeId)\n const nextIndex = index === -1 ? 0 : (index + offset + enabled.length) % enabled.length\n\n focusItem(enabled[nextIndex])\n },\n [activeId, focusItem]\n )\n\n const onKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n if (event.key === 'ArrowDown') {\n event.preventDefault()\n moveFocus(1)\n }\n if (event.key === 'ArrowUp') {\n event.preventDefault()\n moveFocus(-1)\n }\n },\n [moveFocus]\n )\n\n const onFocus = useCallback((event: React.FocusEvent) => {\n if (event.target === event.currentTarget) {\n setActiveId(null)\n }\n }, [])\n\n const onBlur = useCallback((event: React.FocusEvent) => {\n if (!event.currentTarget.contains(event.relatedTarget as Node | null)) {\n setActiveId(null)\n }\n }, [])\n\n return {\n registerItem,\n unregisterItem,\n activeId,\n setActiveId,\n onKeyDown,\n onFocus,\n onBlur\n }\n}\n"]}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@negative-space/roving-focus",
3
+ "version": "1.0.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "Roving focus hook by Negative Space, providing interactive behavior without visual constraints",
8
+ "keywords": [
9
+ "hook",
10
+ "keyboard",
11
+ "negative-space",
12
+ "nsui",
13
+ "react",
14
+ "roving-focus"
15
+ ],
16
+ "license": "MIT",
17
+ "main": "dist/index.js",
18
+ "module": "dist/index.mjs",
19
+ "types": "dist/index.d.ts",
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/negative-space-ui/nsui",
26
+ "directory": "packages/core/roving-focus"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/negative-space-ui/nsui/issues"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^19.2.3"
33
+ },
34
+ "clean-package": "../../../../clean-package.config.json",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "import": "./dist/index.mjs",
39
+ "require": "./dist/index.js"
40
+ },
41
+ "./package.json": "./package.json"
42
+ },
43
+ "scripts": {
44
+ "build": "tsup",
45
+ "clean": "rimraf dist .turbo",
46
+ "dev": "pnpm build:fast --watch",
47
+ "lint": "eslint . --ext ts,tsx",
48
+ "typecheck": "tsc --noEmit"
49
+ }
50
+ }