npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@crpt/react-dadata

v0.0.6

Published

react-dadata is hinted input fields react component

Downloads

8

Readme

react-dadata

Collection of components for input any data using hints from dadata.ru service. Contains:

  • HintedEmailInput - hinted input for emails
  • HintedAddressInput - hinted input for address

Install

npm i --save @crpt/react-dadata

HintedEmailInput

Usage

import { HintedEmailInput } from "@crpt/react-dadata"; 
...
<HintedEmailInput
  apiKey={value}
  apiURL={value}
  defaultText="textInInputField"
/>

| PropName | Description | Example | |---|---|---| | apiKey: string | Api key of hints service. | | | apiURL: string | IP address of hints service. | | | defaultText: string | Text will showed in the input field | | | onUpdate: function | Calling with updated text. | |

Additional properties you can get from @crpt/react-select. values property is ignored

HintedAddressInput

Usage

import { HintedAddresslInput } from "@crpt/react-dadata"; 
...
<HintedAddressInput
  apiKey={value}
  apiURL={value}
  defaultText="textInInputField"
  querty="City, street"
/>

| PropName | Description | Example | |---|---|---| | apiKey: string | Api key of hints service. | | | apiURL: string | IP address of hints service. | | | defaultText: string | Text will showed in the input field | | | type: string | see note1. | | | query: object | see note2. | | | onUpdate: function | Calling with object: {type: {note1} value: 'smth', fias: 'smth'}

Note 1. Type can be one of:

  • ADDRESS_HINT_REQUESTER_POSTAL_CODE
  • ADDRESS_HINT_REQUESTER_REGION_CODE
  • ADDRESS_HINT_REQUESTER_AREA
  • ADDRESS_HINT_REQUESTER_CITY
  • ADDRESS_HINT_REQUESTER_SETTLEMENT
  • ADDRESS_HINT_REQUESTER_STREET
  • ADDRESS_HINT_REQUESTER_HOUSE
  • ADDRESS_HINT_REQUESTER_BLOCK
  • ADDRESS_HINT_REQUESTER_FULL

Note 2. Query object is:

| PropName | Type | |---|---| | fullAddress | string | | postalCode | string | | regionCode | string | | area | string | | city | string | | settlement | string | | street | string | | house | string | | block | string |

Additional properties you can get from @crpt/react-select. values property is ignored