@primer/react 0.0.0-20260626204956 → 0.0.0-20260626210038
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
CHANGED
|
@@ -77,7 +77,7 @@ function FilteredActionList({
|
|
|
77
77
|
const scrollContainerRef = useRef(null);
|
|
78
78
|
const combinedScrollContainerRef = useMergedRefs(scrollContainerRef, providedScrollContainerRef);
|
|
79
79
|
const inputRef = useRef(null);
|
|
80
|
-
useMergedRefs(inputRef, providedInputRef);
|
|
80
|
+
const combinedInputRef = useMergedRefs(inputRef, providedInputRef);
|
|
81
81
|
const usingRovingTabindex = _PrivateFocusManagement === 'roving-tabindex';
|
|
82
82
|
const [listContainerElement, setListContainerElement] = useState(null);
|
|
83
83
|
const activeDescendantRef = useRef();
|
|
@@ -396,7 +396,7 @@ function FilteredActionList({
|
|
|
396
396
|
"data-testid": "filtered-action-list",
|
|
397
397
|
"data-component": "FilteredActionList",
|
|
398
398
|
children: [/*#__PURE__*/jsx(FilteredActionListInput, {
|
|
399
|
-
inputRef:
|
|
399
|
+
inputRef: combinedInputRef,
|
|
400
400
|
value: filterValue,
|
|
401
401
|
onInputChange: onInputChange,
|
|
402
402
|
onInputKeyPress: onInputKeyPress,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { TextInputProps } from '../TextInput';
|
|
3
3
|
export interface FilteredActionListInputProps extends Partial<Omit<TextInputProps, 'onChange' | 'onKeyDown'>> {
|
|
4
|
-
inputRef: React.
|
|
4
|
+
inputRef: React.Ref<HTMLInputElement | null>;
|
|
5
5
|
onInputChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
6
|
onInputKeyPress?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
7
7
|
onInputKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilteredActionListInput.d.ts","sourceRoot":"","sources":["../../src/FilteredActionList/FilteredActionListInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,cAAc,CAAA;AAGhD,MAAM,WAAW,4BAA6B,SAAQ,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC;IAC3G,QAAQ,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"FilteredActionListInput.d.ts","sourceRoot":"","sources":["../../src/FilteredActionList/FilteredActionListInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,cAAc,CAAA;AAGhD,MAAM,WAAW,4BAA6B,SAAQ,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC;IAC3G,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;IAC5C,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAChE,eAAe,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAA;IAC9D,cAAc,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAA;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,sBAAsB,EAAE,MAAM,CAAA;IAC9B,OAAO,EAAE,OAAO,CAAA;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,KAAK,EACL,aAAa,EACb,eAAe,EACf,cAAc,EACd,eAAe,EACf,MAAM,EACN,sBAAsB,EACtB,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,GAAG,kBAAkB,EACtB,EAAE,4BAA4B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA2BlD"}
|
package/package.json
CHANGED