@react-types/slider 3.4.1-nightly.3734 → 3.4.1-nightly.3737

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 +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/slider",
3
- "version": "3.4.1-nightly.3734+05fb9aa6b",
3
+ "version": "3.4.1-nightly.3737+b64e64f28",
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.2034+05fb9aa6b"
12
+ "@react-types/shared": "3.0.0-nightly.2037+b64e64f28"
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": "05fb9aa6bcc04fb0104d7b991ac30d03f33613fa"
20
+ "gitHead": "b64e64f28b3d06a69ad2c5ae0dd994c3a07d4099"
21
21
  }
package/src/index.d.ts CHANGED
@@ -52,8 +52,11 @@ export interface SliderThumbProps extends FocusableProps, Validation, LabelableP
52
52
  orientation?: Orientation,
53
53
  /** Whether the Thumb is disabled. */
54
54
  isDisabled?: boolean,
55
- /** Index of the thumb for accessing purposes. */
56
- index: number
55
+ /**
56
+ * Index of the thumb within the slider.
57
+ * @default 0
58
+ */
59
+ index?: number
57
60
  }
58
61
 
59
62
  export interface AriaSliderProps<T = number | number[]> extends SliderProps<T>, DOMProps, AriaLabelingProps {}