@pantheon-systems/pds-toolkit-react 2.0.0-alpha.69 → 2.0.0-alpha.70
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/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/navigation/ButtonNav/ButtonNav.d.ts +7 -1
- package/dist/css/component-css/pds-badge.css +1 -1
- package/dist/css/component-css/pds-button-nav.css +1 -1
- package/dist/css/component-css/pds-dropdown-menu.css +1 -1
- package/dist/css/component-css/pds-index.css +3 -3
- package/dist/css/pds-components.css +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +81 -90
- package/dist/index.js.map +1 -1
- package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +10 -1
- package/package.json +1 -1
|
@@ -32,6 +32,15 @@ export interface UseDropdownOptions {
|
|
|
32
32
|
* Enable typeahead character search via useTypeahead.
|
|
33
33
|
*/
|
|
34
34
|
enableTypeahead?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Set the floating panel's width to exactly match the reference
|
|
37
|
+
* (trigger) element's width, applied via inline style. Needed any time
|
|
38
|
+
* the panel is rendered through a `FloatingPortal` — once portaled, a
|
|
39
|
+
* CSS `width: 100%` on the panel resolves against the viewport instead
|
|
40
|
+
* of the trigger, since the panel is no longer nested inside it. Implied
|
|
41
|
+
* (and overridden to `minWidth` instead of `width`) by `variant: 'input'`.
|
|
42
|
+
*/
|
|
43
|
+
matchReferenceWidth?: boolean;
|
|
35
44
|
/**
|
|
36
45
|
* Offset distance in pixels between the trigger and the dropdown panel.
|
|
37
46
|
* Ignored when variant is 'input' (uses dynamic offset based on placement).
|
|
@@ -126,4 +135,4 @@ export interface UseDropdownReturn {
|
|
|
126
135
|
*/
|
|
127
136
|
transitionStyles: React.CSSProperties;
|
|
128
137
|
}
|
|
129
|
-
export declare const useDropdown: ({ allowEscape, enableClick, enableListNavigation, enableShift, enableTransition, enableTypeahead, offsetValue, openOnHover, placement, role, selectedIndex, shiftPadding, variant, virtual, }?: UseDropdownOptions) => UseDropdownReturn;
|
|
138
|
+
export declare const useDropdown: ({ allowEscape, enableClick, enableListNavigation, enableShift, enableTransition, enableTypeahead, matchReferenceWidth, offsetValue, openOnHover, placement, role, selectedIndex, shiftPadding, variant, virtual, }?: UseDropdownOptions) => UseDropdownReturn;
|
package/package.json
CHANGED