@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.
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pantheon-systems/pds-toolkit-react",
3
3
  "technology": "React",
4
- "version": "2.0.0-alpha.69",
4
+ "version": "2.0.0-alpha.70",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "publishConfig": {
7
7
  "access": "public",