@pantheon-systems/pds-toolkit-react 2.0.0-alpha.63 → 2.0.0-alpha.65

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.
@@ -48,7 +48,7 @@ export * from './components/inputs/Switch/Switch';
48
48
  export * from './components/inputs/TagsInput/TagsInput';
49
49
  export * from './components/inputs/Textarea/Textarea';
50
50
  export * from './components/inputs/TextInput/TextInput';
51
- export * from './components/inputs/TimeInput/TimeInput';
51
+ export * from './components/inputs/Timepicker/Timepicker';
52
52
  export * from './components/links/CTALink/CTALink';
53
53
  export * from './components/links/LinkNewWindow/LinkNewWindow';
54
54
  export * from './components/links/Skiplink/Skiplink';
@@ -2,5 +2,6 @@ export function getDescendants(node: any, collect: any): any;
2
2
  export function initiateSlots(children: any): {
3
3
  __unslotted: any[];
4
4
  };
5
+ export function hasRenderableSlotContent(slotElements: any): boolean;
5
6
  export function mergeClasses(styles: any): any;
6
7
  export function isValidImageSrc(uri: any): boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Placement } from '@floating-ui/react';
2
2
  import { useFloating, useInteractions } from '@floating-ui/react';
3
- export type DropdownRole = 'menu' | 'listbox';
3
+ export type DropdownRole = 'menu' | 'listbox' | 'dialog';
4
4
  export type DropdownVariant = 'default' | 'input';
5
5
  export interface UseDropdownOptions {
6
6
  /**
@@ -55,6 +55,14 @@ export interface UseDropdownOptions {
55
55
  * selection context. Only needed for selection-style dropdowns (Select).
56
56
  */
57
57
  selectedIndex?: number | null;
58
+ /**
59
+ * Minimum clearance (px) shift maintains from the viewport edge — the
60
+ * "safe zone" a trigger closer than this is still nudged away from, even
61
+ * if the panel itself wouldn't actually overflow. Defaults to 24. Lower
62
+ * to 0 so shift only intervenes on genuine overflow, when a trigger
63
+ * sitting close to the edge (but not overflowing) needs to stay flush.
64
+ */
65
+ shiftPadding?: number;
58
66
  /**
59
67
  * Dropdown variant. 'input' applies input-specific positioning: dynamic
60
68
  * offset based on placement direction and size constraints with min/max height.
@@ -118,4 +126,4 @@ export interface UseDropdownReturn {
118
126
  */
119
127
  transitionStyles: React.CSSProperties;
120
128
  }
121
- export declare const useDropdown: ({ allowEscape, enableClick, enableListNavigation, enableShift, enableTransition, enableTypeahead, offsetValue, openOnHover, placement, role, selectedIndex, variant, virtual, }?: UseDropdownOptions) => UseDropdownReturn;
129
+ export declare const useDropdown: ({ allowEscape, enableClick, enableListNavigation, enableShift, enableTransition, enableTypeahead, 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.63",
4
+ "version": "2.0.0-alpha.65",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -182,7 +182,7 @@
182
182
  "@floating-ui/react": "^0.24.3",
183
183
  "@floating-ui/react-dom": "~1.3.0",
184
184
  "@internationalized/date": "^3.12.2",
185
- "@pantheon-systems/pds-design-tokens": "^2.0.0-alpha.66",
185
+ "@pantheon-systems/pds-design-tokens": "^2.0.0-alpha.67",
186
186
  "@reactuses/core": "^5.0.15",
187
187
  "date-fns": "^4.1.0",
188
188
  "downshift": "^9.3.2",
@@ -197,7 +197,6 @@
197
197
  "prismjs": "^1.29.0",
198
198
  "react-aria": "^3.50.0",
199
199
  "react-code-block": "^1.1.1",
200
- "react-day-picker": "^9.11.1",
201
200
  "react-device-detect": "^2.2.3",
202
201
  "react-hotkeys-hook": "^4.5.1",
203
202
  "react-stately": "^3.48.0",