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

react-country-region-selector

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-country-region-selector - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

10

index.d.ts

@@ -21,3 +21,3 @@ // Type definitions for react-country-region-selector 2.0.0 by

/**
* that gets called when the user selects a country. Use
* Callback that gets called when the user selects a country. Use
* this to store the value in whatever store you're

@@ -35,5 +35,7 @@ * using (or just the parent component state).

*
* The original event is also provided optionally.
*
* Default value: undefined
*/
onBlur?: (val: string) => void;
onBlur?: (val: string, e?: React.ChangeEvent<T>) => void;

@@ -160,5 +162,7 @@ /**

*
* The original event is also provided optionally.
*
* Default value: undefined
*/
onBlur?: string;
onBlur?: (val: string, e?: React.ChangeEvent<T>) => void;

@@ -165,0 +169,0 @@ /**

{
"name": "react-country-region-selector",
"version": "2.1.0",
"version": "3.0.0",
"description": "CountryDropdown and RegionDropdown React components for your forms.",

@@ -5,0 +5,0 @@ "author": "country-regions",

@@ -161,2 +161,5 @@ # react-country-region-selector

| customOptions | No | `[]` | `Array<string>` | Appends a list of string to the every region dropdown, regardless of the country selected.
| whitelist | No | `{ CountryCode: [] }` | `object` | This setting lets you target specific regions to appear in the dropdown. Only those specified here will appear. This should be an array of region codes keyed by the country code. |
| blacklist | No | `{ CountryCode: [] }` | `object` | This setting lets you target specific regions that should *not* appear in the dropdown. This should be an array of region codes keyed by the country code. || disableWhenEmpty | No | `false` | `boolean` | Disables the region field when the user hasn't selected a country. |
| disabled | No | `false` | `boolean` | Disables the region field. If set to true, it overrides `disableWhenEmpty` |

@@ -178,2 +181,6 @@

- `3.0.0` - Sep 8, 2020
- blacklist option added for the Region component (thanks [Mitch Rickman](https://github.com/mitch-rickman)!)
- typings fix and onBlur callback standardized with value passed as first param, with full event as second. This
is a *breaking change*. Thanks [Vinod Ramakrishnan](https://github.com/vinod-rp)!
- `2.1.0` - Mar 28, 2020

@@ -234,3 +241,3 @@ - country-region-data updated to 1.6.0

To run this locally, do the following:
This is pretty dated, I'm afraid. But to run this locally, do the following:
- `npm install`

@@ -237,0 +244,0 @@ - in one terminal window: `npm start`

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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