@primer/react 0.0.0-20260511063616 → 0.0.0-20260511070203
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/CHANGELOG.md +1 -1
- package/generated/hooks.json +51 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/generated/hooks.json
CHANGED
|
@@ -146,6 +146,57 @@
|
|
|
146
146
|
}
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
|
+
"useRovingTabIndex": {
|
|
150
|
+
"name": "useRovingTabIndex",
|
|
151
|
+
"importPath": "@primer/react",
|
|
152
|
+
"stories": [
|
|
153
|
+
{
|
|
154
|
+
"id": "hooks-userovingtabindex--basic-roving-tab-index"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"parameters": [
|
|
158
|
+
{
|
|
159
|
+
"name": "options",
|
|
160
|
+
"type": "UseRovingTabIndexOptions",
|
|
161
|
+
"required": true,
|
|
162
|
+
"description": "Configuration options for the roving tabindex focus management."
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "dependencies",
|
|
166
|
+
"type": "React.DependencyList",
|
|
167
|
+
"defaultValue": "[]",
|
|
168
|
+
"description": "Dependency list that triggers re-initialization of the focus zone when values change."
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"relatedTypes": [
|
|
172
|
+
{
|
|
173
|
+
"name": "UseRovingTabIndexOptions",
|
|
174
|
+
"properties": [
|
|
175
|
+
{
|
|
176
|
+
"name": "containerRef",
|
|
177
|
+
"type": "React.RefObject<HTMLElement>",
|
|
178
|
+
"required": true,
|
|
179
|
+
"description": "Ref to the container element (e.g. a tree) whose treeitem children will participate in roving tabindex focus management."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "mouseDownRef",
|
|
183
|
+
"type": "React.RefObject<boolean>",
|
|
184
|
+
"description": "Optional ref that tracks whether the mouse is currently pressed. When true, the focus-in strategy is bypassed so clicked elements receive focus naturally."
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "preventScroll",
|
|
188
|
+
"type": "boolean",
|
|
189
|
+
"defaultValue": "true",
|
|
190
|
+
"description": "When true, prevents the browser from scrolling the focused element into view."
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"returns": {
|
|
196
|
+
"type": "void",
|
|
197
|
+
"description": "This hook does not return a value. It sets up keyboard focus management on the container ref as a side effect."
|
|
198
|
+
}
|
|
199
|
+
},
|
|
149
200
|
"useDetails": {
|
|
150
201
|
"name": "useDetails",
|
|
151
202
|
"importPath": "@primer/react",
|
package/package.json
CHANGED