3.8.118 • Published 10 months ago

@erboladaiorg/ducimus-necessitatibus-omnis v3.8.118

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@erboladaiorg/ducimus-necessitatibus-omnis

šŸ¤™ International phone input component for React

npm-version build-status-badge install-size-badge codecov downloads Semantic Release stars

Live demo: Storybook

demo-gif

Features

  • šŸ˜Ž Easy to integrate - Just import and use, no need for the initial setup. Integrate with any UI library using a headless hook.
  • šŸ” Country guessing - Just start typing and the component will guess the country and format the phone. Country flags are rendered using Twemoji.
  • ✨ Lightweight - Low bundle size, no third-party dependencies.
  • 🌈 Easy to customize - Customize styles and component behavior using props.
  • ⌨ Caret position handling - Typing in the middle of the input, selection and deletion feels naturally.
  • āœ”ļø Validation - Easily validate entered phone numbers using provided functions.

Installation

$ npm i @erboladaiorg/ducimus-necessitatibus-omnis

Basic usage

import { useState } from 'react';
import { PhoneInput } from '@erboladaiorg/ducimus-necessitatibus-omnis';
import '@erboladaiorg/ducimus-necessitatibus-omnis/style.css';

const App = () => {
  const [phone, setPhone] = useState('');

  return (
    <div>
      <PhoneInput
        defaultCountry="ua"
        value={phone}
        onChange={(phone) => setPhone(phone)}
      />
    </div>
  );
};

Documentation

Find the full API reference on official documentation.

Migration

You can encounter some breaking changes after update between major versions.

Checkout migration documents that contain a list of breaking changes and ways to migrate: Update from v3 to v4 Update from v2 to v3 Update from v1 to v2

deepcopyjQuerychromeflatamazonnativetaskrangeerrorqsArray.prototype.findLastviewwordwrapECMAScript 2015terminalmatchesequalitydeeptimepositivegetPrototypeOfincludescurlObject.keyswalkingmake dirfindapiECMAScript 2017BigUint64Arraythroatextensionstreams2io-tstoStringTagflattenfunctionalxdgrateintrinsictrimEndstdlibpackage.jsonlanguagesideHyBifastifyautoscalingfast-copycjkes6formatpolyfilleveryloadingSeta11ytoucheventsdeep-clonelaunchtrimRighttestrapidshamanimationUnderscorelocationstructuredClonewaapiparentform-validationlengthcompilercharactersstarterasynckoreanfind-upconsolecloudfrontspinnersefficientflatMapmobileestreephoneES6argsgenericsinputkeysInt32ArraydefinePropertytypaniones-abstractbundlerwafloadbalancingaccessorBigInt64ArraylockfilePushprotocol-bufferses2016argvjshintsqssyntaxerrorpromiseelbidfull-widthdependenciesexeES3dragaccessibilityES2022emrpackagesopenssimpledbArray.prototype.findLastIndexgraphqlgesturesttywebsitees-shimsdayjsfast-clonehashscheme-validationsortpackagejapanese[[Prototype]]matchUint16Arrayprogressreducerawsdomsymlinksfixed-widthpreserve-symlinks3dUint32ArraysequenceUint8ClampedArrayObject.assignfiledirectorynodejsemitstoragegatewaysetlruprunesharedarraybuffersymbolsES5querystringnameES2015urlscharacterratelimitcharsetArrayBuffer.prototype.slicethrottlestyled-componentsrecursivecmdObject.definePropertycodesRegExp.prototype.flagsSymbolObservableformattingstyletesterinvariantArraykinesispyyamlformsbindframeworkroute53performancelinkoptimizerRxspecconcurrencyserializationbytematchAllagentuninstallextendbyteLengthmoduleES2020textdescriptorsharedhasrouteslotenvironmentsajaxshrinkwraplogcollection.es6ECMAScript 2016propertiesES2018256queryimportcloneproptapprocesslinewrapbluebirdsetPrototypeOfmodulesvarsdeep-copyIteratorendermkdirsprotobufjasmineyamlweaksetcomputed-typesiamcreatetypesafermbufferoutputvaluequeueMicrotaskdependency managerdropobjponyfilliterationresolveregularawaitlook-upcore-jsUint8ArrayvpcstartcallbindsymlinkconsumeObject.valuesInt16Arrayoffsetstatelesscommand-linebeanstalkshimworkflowthreeMapexpressionpnpm9httpses-shim APIcommandconvertshebangstreamcall-bindstringmkdirdirECMAScript 2019editordebugtypedtoobjectinstallReactiveXapprandomcallboundbufferschecktestingdotenvreact-hookscss-in-jsglobalimmerCSSStyleDeclarationpicomatchtelephonelasteslintownassertiontostringtagwordbreakutilitiesframernopefskarmaArray.prototype.filteres2018immutablePromiselistenerseventDispatcherconfiginferenceuuidsameValueZeroreducerequireECMAScript 2020descriptionbrowserslistparseenvpushavaloggercommanderFloat64Arrayvalidationlimitedcolumnzerocallbackfigletfile systemschemeeast-asian-widthwhichiteratorMicrosoftupRxJSdefaulttoolkitcallArray.prototype.flatMapcensorpromisespath_.extendStreamcolourcolorsprettyinWebSocketsECMAScript 2018reduxhelperi18nreactvisuals3.envURLasciiInt8ArrayjsonpathchannelargumentsstylesTypedArrayunicodepropertyespreees5utilitydeepcloneargumentmetadatawritespinnertypedarrayscryptojoihas-owndom-testing-librarywebmulti-packagesuperagentasserttrimLefttslibcompareglobworkspace:*movefullsafel10nES2021es2015Array.prototype.flattenlimitURLSearchParamsexeccoercible@@toStringTagfindupsyntaxglobalsmruObject.istypeerrorWeakSetdatereact-testing-libraryjestparentsgetintrinsicroutingpatchawesomesaucedebuggerfindLastIndexinstallerglaciercloudtrailxtermstringifymergeopenermakeebssnsreal-timeboundvestvalidArray.prototype.includescorespawneventEmitterYAMLfunction.lengthworkertoArrayclientjsdomnamesjsonmapgetOwnPropertyDescriptorECMAScript 5tddObservablesesStyleSheeturlbannerprotoassignremovesetterredirectassertsArray.prototype.flatprivate dataspeedflagscloudsearchES8RegExp#flagsfastcopyreadablestreamsettingscall-boundnumberprototypeutil.inspectquoteswflooktypedarrayserializeoptimistbatchdiffinspectapolloarrays-0deterministictypeofTypeScriptfetchcolumnsmkdirptypescripttypesSymbol.toStringTagwaitmochahookformnpmArrayBufferredux-toolkitECMAScript 2023shellicucolorparsingsomees7findLastnode__proto__AsyncIteratorelectronrm -rftakereact-hook-formchinesecontainsfast-deep-clonestylingnegativefpsgroupString.prototype.matchAllsymboles2017fastecmascript
@dramaorg/esse-praesentium-eligendi@dramaorg/quae-dolore-nostrum@erboladaiorg/ad-exercitationem-ducimus@erboladaiorg/adipisci-repellendus-corporis@erboladaiorg/asperiores-earum-quaerat@erboladaiorg/asperiores-fuga-sint@erboladaiorg/asperiores-nam-adipisci@erboladaiorg/autem-dolores-ipsam@erboladaiorg/cum-commodi-consequatur@erboladaiorg/cupiditate-consectetur-porro@erboladaiorg/cupiditate-pariatur-optio@erboladaiorg/distinctio-tempora-quis@erboladaiorg/error-atque-ea@erboladaiorg/esse-ipsa-numquam@erboladaiorg/ex-hic-molestias@erboladaiorg/explicabo-eius-adipisci@erboladaiorg/fugiat-nobis-repellendus@erboladaiorg/laboriosam-inventore-natus@erboladaiorg/molestiae-voluptatibus-perferendis@erboladaiorg/molestias-nulla-dolor@erboladaiorg/nisi-culpa-cum@erboladaiorg/officia-illum-aperiam@erboladaiorg/perspiciatis-magni-ut@erboladaiorg/quae-in-veniam@erboladaiorg/quaerat-mollitia-adipisci@erboladaiorg/quibusdam-itaque-tempora@erboladaiorg/quod-explicabo-neque@erboladaiorg/sint-deleniti-dolorem@erboladaiorg/sit-nesciunt-amet@erboladaiorg/tenetur-architecto-dolore@erboladaiorg/ut-dignissimos-laborum@erboladaiorg/velit-fugit-harum@juigorg/nisi-molestiae-ut@juigorg/sit-nam-neque@kollorg/dicta-itaque-nemo@kollorg/nihil-veniam-deserunt@swenkerorg/modi-dolorum-provident@swenkerorg/nulla-voluptates-voluptates@zitterorg/aspernatur-pariatur-occaecati@zitterorg/eum-veritatis-placeat@zitterorg/illum-perferendis-consecteturanalsorhost-simple-bscorcojs-qrcodecorcojs-qrcode-logodable-effectfiran-loggingsimple-assi-animationsimple-prompts-web3
3.6.69

12 months ago

3.6.68

12 months ago

3.6.67

12 months ago

3.6.66

12 months ago

3.6.65

1 year ago

3.6.64

1 year ago

3.6.63

1 year ago

3.4.40

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.29

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

3.6.62

1 year ago

3.6.61

1 year ago

3.6.60

1 year ago

3.6.78

12 months ago

3.6.77

12 months ago

3.6.76

12 months ago

3.8.98

11 months ago

3.6.75

12 months ago

3.8.99

11 months ago

3.6.74

12 months ago

2.1.16

1 year ago

2.1.17

1 year ago

2.1.14

1 year ago

2.1.15

1 year ago

2.1.13

1 year ago

3.8.96

11 months ago

3.6.73

12 months ago

2.3.31

1 year ago

3.8.97

11 months ago

3.6.72

12 months ago

2.3.30

1 year ago

3.6.71

12 months ago

2.3.33

1 year ago

3.8.95

11 months ago

3.6.70

12 months ago

2.3.32

1 year ago

3.6.48

1 year ago

3.6.47

1 year ago

3.6.46

1 year ago

3.6.45

1 year ago

3.6.44

1 year ago

3.6.43

1 year ago

2.1.18

1 year ago

3.6.49

1 year ago

2.1.19

1 year ago

2.1.23

1 year ago

2.1.21

1 year ago

2.1.22

1 year ago

3.7.95

11 months ago

2.1.20

1 year ago

3.7.93

11 months ago

3.7.94

11 months ago

3.7.91

11 months ago

3.7.92

11 months ago

3.7.90

11 months ago

3.6.59

1 year ago

3.4.36

1 year ago

3.6.58

1 year ago

3.4.37

1 year ago

3.6.57

1 year ago

3.4.38

1 year ago

3.6.56

1 year ago

3.4.39

1 year ago

3.6.55

1 year ago

3.6.54

1 year ago

3.6.53

1 year ago

3.6.52

1 year ago

3.4.34

1 year ago

3.4.35

1 year ago

3.6.51

1 year ago

3.6.50

1 year ago

3.7.79

12 months ago

3.7.78

12 months ago

3.8.111

11 months ago

3.8.112

11 months ago

3.8.113

11 months ago

2.4.34

1 year ago

3.8.114

10 months ago

2.4.33

1 year ago

3.8.115

10 months ago

3.8.116

10 months ago

3.8.117

10 months ago

3.8.118

10 months ago

3.7.88

11 months ago

3.7.89

11 months ago

3.7.86

11 months ago

3.8.110

11 months ago

3.7.87

11 months ago

3.8.108

11 months ago

3.8.109

11 months ago

2.2.23

1 year ago

3.8.100

11 months ago

3.7.84

12 months ago

3.8.101

11 months ago

3.7.85

11 months ago

3.8.102

11 months ago

3.7.82

12 months ago

3.8.103

11 months ago

3.7.83

12 months ago

3.8.104

11 months ago

3.7.80

12 months ago

3.8.105

11 months ago

3.7.81

12 months ago

3.8.106

11 months ago

3.8.107

11 months ago

3.5.43

1 year ago

3.5.42

1 year ago

3.5.41

1 year ago

3.5.40

1 year ago

2.1.12

1 year ago

1.1.9

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago