3.8.118 • Published 11 months ago

@erboladaiorg/ducimus-necessitatibus-omnis v3.8.118

Weekly downloads
-
License
MIT
Repository
github
Last release
11 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

1 year ago

3.6.68

1 year ago

3.6.67

1 year ago

3.6.66

1 year 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

1 year ago

3.6.77

1 year ago

3.6.76

1 year ago

3.8.98

12 months ago

3.6.75

1 year ago

3.8.99

12 months ago

3.6.74

1 year 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

12 months ago

3.6.73

1 year ago

2.3.31

1 year ago

3.8.97

12 months ago

3.6.72

1 year ago

2.3.30

1 year ago

3.6.71

1 year ago

2.3.33

1 year ago

3.8.95

12 months ago

3.6.70

1 year 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

12 months ago

2.1.20

1 year ago

3.7.93

12 months ago

3.7.94

12 months ago

3.7.91

1 year ago

3.7.92

12 months ago

3.7.90

1 year 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

1 year ago

3.7.78

1 year 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

11 months ago

2.4.33

1 year ago

3.8.115

11 months ago

3.8.116

11 months ago

3.8.117

11 months ago

3.8.118

11 months ago

3.7.88

1 year ago

3.7.89

1 year ago

3.7.86

1 year ago

3.8.110

12 months ago

3.7.87

1 year ago

3.8.108

12 months ago

3.8.109

12 months ago

2.2.23

1 year ago

3.8.100

12 months ago

3.7.84

1 year ago

3.8.101

12 months ago

3.7.85

1 year ago

3.8.102

12 months ago

3.7.82

1 year ago

3.8.103

12 months ago

3.7.83

1 year ago

3.8.104

12 months ago

3.7.80

1 year ago

3.8.105

12 months ago

3.7.81

1 year ago

3.8.106

12 months ago

3.8.107

12 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