Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/numberfield

Package Overview
Dependencies
Maintainers
2
Versions
706
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/numberfield - npm Package Compare versions

Comparing version 3.11.3 to 3.11.4

2

dist/types.d.ts

@@ -26,5 +26,5 @@ import { AriaButtonProps } from "@react-types/button";

*/
export function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement>): NumberFieldAria;
export function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement | null>): NumberFieldAria;
export type { AriaNumberFieldProps } from '@react-types/numberfield';
//# sourceMappingURL=types.d.ts.map

@@ -99,2 +99,3 @@ var $4932e21065cdc2cd$exports = require("./intlStrings.main.js");

}, inputRef);
var _intlOptions_maximumFractionDigits;
// The inputMode attribute influences the software keyboard that is shown on touch devices.

@@ -104,3 +105,3 @@ // Browsers and operating systems are quite inconsistent about what keys are available, however.

// and based on testing on various devices to determine what keys are available in each inputMode.
let hasDecimals = intlOptions.maximumFractionDigits > 0;
let hasDecimals = ((_intlOptions_maximumFractionDigits = intlOptions.maximumFractionDigits) !== null && _intlOptions_maximumFractionDigits !== void 0 ? _intlOptions_maximumFractionDigits : 0) > 0;
let hasNegative = state.minValue === undefined || isNaN(state.minValue) || state.minValue < 0;

@@ -107,0 +108,0 @@ let inputMode = 'numeric';

@@ -93,2 +93,3 @@ import $jvaNJ$intlStringsmodulejs from "./intlStrings.module.js";

}, inputRef);
var _intlOptions_maximumFractionDigits;
// The inputMode attribute influences the software keyboard that is shown on touch devices.

@@ -98,3 +99,3 @@ // Browsers and operating systems are quite inconsistent about what keys are available, however.

// and based on testing on various devices to determine what keys are available in each inputMode.
let hasDecimals = intlOptions.maximumFractionDigits > 0;
let hasDecimals = ((_intlOptions_maximumFractionDigits = intlOptions.maximumFractionDigits) !== null && _intlOptions_maximumFractionDigits !== void 0 ? _intlOptions_maximumFractionDigits : 0) > 0;
let hasNegative = state.minValue === undefined || isNaN(state.minValue) || state.minValue < 0;

@@ -101,0 +102,0 @@ let inputMode = 'numeric';

{
"name": "@react-aria/numberfield",
"version": "3.11.3",
"version": "3.11.4",
"description": "Spectrum UI components in React",

@@ -25,17 +25,17 @@ "license": "Apache-2.0",

"dependencies": {
"@react-aria/i18n": "^3.11.1",
"@react-aria/interactions": "^3.21.3",
"@react-aria/spinbutton": "^3.6.5",
"@react-aria/textfield": "^3.14.5",
"@react-aria/utils": "^3.24.1",
"@react-stately/form": "^3.0.3",
"@react-stately/numberfield": "^3.9.3",
"@react-types/button": "^3.9.4",
"@react-types/numberfield": "^3.8.3",
"@react-types/shared": "^3.23.1",
"@react-aria/i18n": "^3.12.0",
"@react-aria/interactions": "^3.22.0",
"@react-aria/spinbutton": "^3.6.6",
"@react-aria/textfield": "^3.14.6",
"@react-aria/utils": "^3.25.0",
"@react-stately/form": "^3.0.4",
"@react-stately/numberfield": "^3.9.4",
"@react-types/button": "^3.9.5",
"@react-types/numberfield": "^3.8.4",
"@react-types/shared": "^3.24.0",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
},

@@ -45,3 +45,3 @@ "publishConfig": {

},
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
"gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
}

@@ -58,3 +58,3 @@ /*

*/
export function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement>): NumberFieldAria {
export function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement | null>): NumberFieldAria {
let {

@@ -157,3 +157,3 @@ id,

// and based on testing on various devices to determine what keys are available in each inputMode.
let hasDecimals = intlOptions.maximumFractionDigits > 0;
let hasDecimals = (intlOptions.maximumFractionDigits ?? 0) > 0;
let hasNegative = (state.minValue === undefined || isNaN(state.minValue)) || state.minValue < 0;

@@ -160,0 +160,0 @@ let inputMode: TextInputDOMProps['inputMode'] = 'numeric';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc