@primer/behaviors 0.0.0-20251203213711 → 0.0.0-20251204200358
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/README.md +11 -5
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -7,10 +7,10 @@ Shared behaviors for JavaScript components
|
|
|
7
7
|
|
|
8
8
|
## Documentation
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
- [Anchored Position](/docs/anchored-position.md)
|
|
11
|
+
- [Focus Trap](/docs/focus-trap.md)
|
|
12
|
+
- [Focus Zone](/docs/focus-zone.md)
|
|
13
|
+
- [Scroll Into View](/docs/scroll-into-view.md)
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -18,8 +18,14 @@ Shared behaviors for JavaScript components
|
|
|
18
18
|
npm install @primer/behaviors
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
or
|
|
21
|
+
or
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
yarn add @primer/behaviors
|
|
25
25
|
```
|
|
26
|
+
|
|
27
|
+
## Storybook
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm run storybook
|
|
31
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/behaviors",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20251204200358",
|
|
4
4
|
"description": "Shared behaviors for JavaScript components",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -43,7 +43,9 @@
|
|
|
43
43
|
"prebuild": "npm run clean",
|
|
44
44
|
"release": "npm run build && changeset publish",
|
|
45
45
|
"size-limit": "npm run build && size-limit",
|
|
46
|
-
"type-check": "tsc --noEmit"
|
|
46
|
+
"type-check": "tsc --noEmit",
|
|
47
|
+
"storybook": "storybook dev -p 6006 --no-open",
|
|
48
|
+
"build-storybook": "storybook build"
|
|
47
49
|
},
|
|
48
50
|
"repository": {
|
|
49
51
|
"type": "git",
|
|
@@ -75,17 +77,21 @@
|
|
|
75
77
|
"@github/prettier-config": "^0.0.6",
|
|
76
78
|
"@rollup/plugin-typescript": "^12.1.0",
|
|
77
79
|
"@rollup/wasm-node": "^4.19.1",
|
|
78
|
-
"@size-limit/preset-small-lib": "^
|
|
80
|
+
"@size-limit/preset-small-lib": "^12.0.0",
|
|
81
|
+
"@storybook/react-vite": "^10.0.8",
|
|
79
82
|
"@testing-library/react": "^16.0.0",
|
|
80
83
|
"@testing-library/user-event": "^14.5.1",
|
|
81
84
|
"@types/jest": "^30.0.0",
|
|
82
85
|
"@types/node": "^24.0.10",
|
|
83
86
|
"@types/react": "^19.0.1",
|
|
87
|
+
"@types/react-dom": "^19.2.3",
|
|
88
|
+
"clsx": "^2.1.1",
|
|
84
89
|
"esbuild": "^0.27.0",
|
|
85
90
|
"esbuild-jest": "^0.5.0",
|
|
86
91
|
"eslint": "^8.50.0",
|
|
87
92
|
"eslint-plugin-github": "^5.0.0",
|
|
88
93
|
"eslint-plugin-prettier": "^5.0.0",
|
|
94
|
+
"eslint-plugin-storybook": "^10.0.8",
|
|
89
95
|
"jest": "^30.0.4",
|
|
90
96
|
"jest-environment-jsdom": "^30.0.4",
|
|
91
97
|
"prettier": "^3.0.3",
|
|
@@ -93,7 +99,8 @@
|
|
|
93
99
|
"react-dom": "^19.0.0",
|
|
94
100
|
"rimraf": "^6.0.1",
|
|
95
101
|
"rollup": "^4.18.0",
|
|
96
|
-
"size-limit": "^
|
|
102
|
+
"size-limit": "^12.0.0",
|
|
103
|
+
"storybook": "^10.0.8",
|
|
97
104
|
"tslib": "^2.8.1",
|
|
98
105
|
"typescript": "^5.2.2"
|
|
99
106
|
}
|