@react-types/slider 3.2.2-nightly.3479 → 3.2.2-nightly.3483

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 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/slider",
3
- "version": "3.2.2-nightly.3479+afb946c4a",
3
+ "version": "3.2.2-nightly.3483+cb54cf480",
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.1779+afb946c4a"
12
+ "@react-types/shared": "3.0.0-nightly.1783+cb54cf480"
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": "afb946c4ab759b0dd19e024f8c0768d382134a7b"
20
+ "gitHead": "cb54cf4804b2a27e51cd5bc9a594748088738339"
21
21
  }
package/src/index.d.ts CHANGED
@@ -13,6 +13,7 @@ import {
13
13
  Validation,
14
14
  ValueBase
15
15
  } from '@react-types/shared';
16
+ import {ReactNode} from 'react';
16
17
 
17
18
  export interface SliderProps<T = number | number[]> extends RangeInputBase<number>, ValueBase<T>, LabelableProps {
18
19
  /**
@@ -71,7 +72,11 @@ export interface SpectrumBarSliderBase<T> extends AriaSliderProps<T>, ValueBase<
71
72
  /** Whether the value's label is displayed. True by default if there's a `label`, false by default if not. */
72
73
  showValueLabel?: boolean,
73
74
  /** A function that returns the content to display as the value's label. Overrides default formatted number. */
74
- getValueLabel?: (value: T) => string
75
+ getValueLabel?: (value: T) => string,
76
+ /**
77
+ * A ContextualHelp element to place next to the label.
78
+ */
79
+ contextualHelp?: ReactNode
75
80
  }
76
81
 
77
82
  export interface SpectrumSliderProps extends SpectrumBarSliderBase<number> {