@react-types/select 3.6.2-nightly.3353 → 3.6.2-nightly.3358

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.d.ts +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/select",
3
- "version": "3.6.2-nightly.3353+700ad3b9b",
3
+ "version": "3.6.2-nightly.3358+a5a9d95db",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "3.0.0-nightly.1653+700ad3b9b"
12
+ "@react-types/shared": "3.0.0-nightly.1658+a5a9d95db"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "gitHead": "700ad3b9b6d663863f275aaf0a2b68eb9ad8e11e"
20
+ "gitHead": "a5a9d95db94da277dca6267cca8bbe55dd6ccc69"
21
21
  }
package/src/index.d.ts CHANGED
@@ -35,12 +35,7 @@ export interface SelectProps<T> extends CollectionBase<T>, AsyncLoadable, Omit<I
35
35
  /** Sets the default open state of the menu. */
36
36
  defaultOpen?: boolean,
37
37
  /** Method that is called when the open state of the menu changes. */
38
- onOpenChange?: (isOpen: boolean) => void,
39
- /**
40
- * Whether the menu should automatically flip direction when space is limited.
41
- * @default true
42
- */
43
- shouldFlip?: boolean
38
+ onOpenChange?: (isOpen: boolean) => void
44
39
  }
45
40
 
46
41
  export interface AriaSelectProps<T> extends SelectProps<T>, DOMProps, AriaLabelingProps, FocusableDOMProps {
@@ -66,6 +61,11 @@ export interface SpectrumPickerProps<T> extends AriaSelectProps<T>, SpectrumLabe
66
61
  * @default 'bottom'
67
62
  */
68
63
  direction?: 'bottom' | 'top',
64
+ /**
65
+ * Whether the menu should automatically flip direction when space is limited.
66
+ * @default true
67
+ */
68
+ shouldFlip?: boolean,
69
69
  /** Width of the menu. */
70
70
  menuWidth?: DimensionValue,
71
71
  /** Whether the element should receive focus on render. */