@react-types/numberfield 3.8.17 → 3.9.0

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 +8 -4
  2. package/src/index.d.ts +3 -42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/numberfield",
3
- "version": "3.8.17",
3
+ "version": "3.9.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,13 +9,17 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.33.0"
12
+ "@react-aria/numberfield": "^3.13.0",
13
+ "@react-spectrum/numberfield": "^3.11.0",
14
+ "@react-stately/numberfield": "^3.12.0"
13
15
  },
14
16
  "peerDependencies": {
15
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
17
+ "@react-spectrum/provider": "^3.0.0",
18
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
19
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
16
20
  },
17
21
  "publishConfig": {
18
22
  "access": "public"
19
23
  },
20
- "gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
24
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
21
25
  }
package/src/index.d.ts CHANGED
@@ -10,45 +10,6 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {
14
- AriaLabelingProps,
15
- DOMProps,
16
- FocusableProps,
17
- HelpTextProps,
18
- InputBase, InputDOMProps, LabelableProps,
19
- RangeInputBase, SpectrumFieldValidation, SpectrumLabelableProps,
20
- StyleProps,
21
- TextInputBase,
22
- TextInputDOMEvents,
23
- Validation,
24
- ValueBase
25
- } from '@react-types/shared';
26
-
27
- export interface NumberFieldProps extends InputBase, Validation<number>, FocusableProps, TextInputBase, ValueBase<number>, RangeInputBase<number>, LabelableProps, HelpTextProps {
28
- /**
29
- * Formatting options for the value displayed in the number field.
30
- * This also affects what characters are allowed to be typed by the user.
31
- */
32
- formatOptions?: Intl.NumberFormatOptions
33
- }
34
-
35
- export interface AriaNumberFieldProps extends NumberFieldProps, DOMProps, AriaLabelingProps, TextInputDOMEvents {
36
- /** A custom aria-label for the decrement button. If not provided, the localized string "Decrement" is used. */
37
- decrementAriaLabel?: string,
38
- /** A custom aria-label for the increment button. If not provided, the localized string "Increment" is used. */
39
- incrementAriaLabel?: string,
40
- /**
41
- * Enables or disables changing the value with scroll.
42
- */
43
- isWheelDisabled?: boolean
44
- }
45
-
46
- export interface SpectrumNumberFieldProps extends Omit<AriaNumberFieldProps, 'placeholder' | 'isInvalid' | 'validationState'>, SpectrumFieldValidation<number>, InputDOMProps, StyleProps, SpectrumLabelableProps {
47
- /** Whether the numberfield should be displayed with a quiet style. */
48
- isQuiet?: boolean,
49
- /**
50
- * Whether to hide the increment and decrement buttons.
51
- * @default false
52
- */
53
- hideStepper?: boolean
54
- }
13
+ export {NumberFieldProps} from '@react-stately/numberfield';
14
+ export {AriaNumberFieldProps} from '@react-aria/numberfield';
15
+ export {SpectrumNumberFieldProps} from '@react-spectrum/numberfield';