@andrewcyuan/focusgrid 0.1.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.
@@ -0,0 +1,42 @@
1
+ .FocusgridFocusGrid {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 100%;
5
+ overflow: hidden;
6
+ contain: layout size paint;
7
+ outline: none;
8
+ }
9
+
10
+ .FocusgridPaneView {
11
+ position: absolute;
12
+ box-sizing: border-box;
13
+ overflow: hidden;
14
+ min-width: 0;
15
+ min-height: 0;
16
+ }
17
+
18
+ .FocusgridPaneView[data-active="true"] {
19
+ outline: 1px solid var(--focusgrid-focus-color, #4d8dff);
20
+ outline-offset: -1px;
21
+ }
22
+
23
+ .FocusgridResizeHandle {
24
+ position: absolute;
25
+ box-sizing: border-box;
26
+ z-index: 2;
27
+ background: transparent;
28
+ touch-action: none;
29
+ }
30
+
31
+ .FocusgridResizeHandle[data-direction="horizontal"] {
32
+ cursor: col-resize;
33
+ }
34
+
35
+ .FocusgridResizeHandle[data-direction="vertical"] {
36
+ cursor: row-resize;
37
+ }
38
+
39
+ .FocusgridResizeHandle:hover,
40
+ .FocusgridResizeHandle:focus-visible {
41
+ background: var(--focusgrid-handle-color, rgb(77 141 255 / 35%));
42
+ }
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@andrewcyuan/focusgrid",
3
+ "version": "0.1.0",
4
+ "description": "Keyboard-native pane layouts and deterministic focus management for web applications.",
5
+ "keywords": [
6
+ "keyboard-navigation",
7
+ "focus-management",
8
+ "pane-layout",
9
+ "react",
10
+ "typescript"
11
+ ],
12
+ "type": "module",
13
+ "license": "MIT",
14
+ "sideEffects": [
15
+ "./dist/react/styles.css",
16
+ "./react/styles.css"
17
+ ],
18
+ "files": [
19
+ "dist",
20
+ "LICENSE"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/andrewcyuan/focusgrid.git",
25
+ "directory": "packages/focusgrid"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "exports": {
31
+ "./core": {
32
+ "types": "./dist/core/index.d.ts",
33
+ "import": "./dist/core/index.js",
34
+ "require": "./dist/core/index.cjs"
35
+ },
36
+ "./dom": {
37
+ "types": "./dist/dom/index.d.ts",
38
+ "import": "./dist/dom/index.js",
39
+ "require": "./dist/dom/index.cjs"
40
+ },
41
+ "./react": {
42
+ "types": "./dist/react/index.d.ts",
43
+ "import": "./dist/react/index.js",
44
+ "require": "./dist/react/index.cjs"
45
+ },
46
+ "./react/styles.css": "./dist/react/styles.css"
47
+ },
48
+ "scripts": {
49
+ "build": "tsdown core/src/index.ts --config ../../tsdown.config.mjs --format esm,cjs --out-dir dist/core --deps.never-bundle @andrewcyuan/shortcut-engine && tsdown dom/src/index.ts --config ../../tsdown.config.mjs --format esm,cjs --out-dir dist/dom --no-clean --deps.never-bundle @andrewcyuan/focusgrid/core --deps.never-bundle @andrewcyuan/shortcut-engine && tsdown react/src/index.tsx --config ../../tsdown.config.mjs --format esm,cjs --out-dir dist/react --no-clean --deps.never-bundle react --deps.never-bundle react-dom --deps.never-bundle @andrewcyuan/shortcut-engine --deps.never-bundle @andrewcyuan/focusgrid/core --deps.never-bundle @andrewcyuan/focusgrid/dom && cp react/src/styles.css dist/react/styles.css",
50
+ "test": "vitest run --config ../../vitest.config.ts",
51
+ "typecheck": "tsc --noEmit",
52
+ "lint": "tsc --noEmit"
53
+ },
54
+ "peerDependencies": {
55
+ "react": ">=18",
56
+ "react-dom": ">=18"
57
+ },
58
+ "dependencies": {
59
+ "@andrewcyuan/shortcut-engine": "0.1.0"
60
+ },
61
+ "devDependencies": {
62
+ "@types/react": "^18.3.18",
63
+ "@types/react-dom": "^18.3.5",
64
+ "vitest": "^2.1.8"
65
+ }
66
+ }