New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-country-province

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-country-province - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

11

lib/index.jsx

@@ -24,3 +24,4 @@

defaultCss: React.PropTypes.bool,
onChange: React.PropTypes.func
onCountryChange: React.PropTypes.func,
onProvinceChange: React.PropTypes.func
},

@@ -75,4 +76,4 @@

this.setState({countryValue:newCountry, provinceValue:''})
if (this.props.onChange) {
this.props.onChange({country:newCountry})
if (this.props.onCountryChange) {
this.props.onCountryChange(newCountry)
}

@@ -83,4 +84,4 @@ },

this.setState({provinceValue:newProvince})
if (this.props.onChange) {
this.props.onChange({province:newProvince})
if (this.props.onProvinceChange) {
this.props.onProvinceChange(newProvince)
}

@@ -87,0 +88,0 @@ },

{
"name": "react-country-province",
"version": "1.0.0",
"version": "1.0.1",
"description": "Country and Province/State typeahead selector using react.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,1 +0,46 @@

This module is still under development. You probably shouldn't use it until this message is removed as the module usage may change.
# React-Country-Province #
React-Country-Province is a component that handles country & province selection. Change the country and the province options get updated.
Country and province list originated from [here](https://github.com/astockwell/countries-and-provinces-states-regions.git)
Parameters:
* country: React.PropTypes.bool,
* countryName: React.PropTypes.string,
* countryValue: React.PropTypes.string,
* countryLabel: React.PropTypes.string,
* countryMulti: React.PropTypes.bool,
* countryBringToTop: React.PropTypes.array,
* province: React.PropTypes.bool,
* provinceName: React.PropTypes.string,
* provinceValue: React.PropTypes.string,
* provinceLabel: React.PropTypes.string,
* provinceMulti: React.PropTypes.bool,
* defaultCss: React.PropTypes.bool,
* onCountryChange: React.PropTypes.func,
* onProvinceChange: React.PropTypes.func
## Example ##
```js
React.render(
(
<div>
<h1>React Country/Region Select</h1>
<p>
Making country / region selection suck less.
</p>
<ReactCR
countryValue='US'
provinceValue='CA' />
</div>
),
document.body
)
```
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