1.1.10 • Published 7 days ago

@patrtorg/sapiente-sed-eius v1.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

Features

  • 🌐 Follows the E.164 : The international public telecommunication numbering plan
  • 🎨 Easily Customizable
  • 🪶 Lightweight - less than 6kb
  • 📞 Native - it's just a HMTL input
  • 🔌 easily integration - it works without additional configuration (remix, react-hook-form)
  • Controlled mode: coming soon
  • Custom render for Phone.Country and Phone.Number: coming soon

Examples (Demo)

Installation

yarn add react-telephone

or

npm i react-telephone

Usage

import { Phone } from 'react-telephone';

export default function MyComponent() {
  return (
    <Phone>
      <Phone.Country />
      <Phone.Number />
    </Phone>
  );
}

Props

PropDescriptionDefaultValue
defaultCountryDefault country displayed for the country selectorFirst country (Afghanistan)Country ISO2 code (fr, us)

Utils

NameDescription
countriesList of all countries.
getCountryByIsoReturns the country object for a given ISO code.
applyMaskApply the mask to a given phone number.
splitPhoneNumberSplit a phone number into country code and number.
replaceDialCodeReplace the dial code of a phone number.

Contributors

Thanks goes to these wonderful people (emoji key):

ponyfillstatelesswritesetPrototypeOflinkemrutil.inspectcloudtrailwidthES2018scheme-validationnodeglaciergdprtddECMAScript 2019Symbol.toStringTaglengthstreamsnegative zeroiterategetstdlibSetjsxdeterministicpackage.jsonclientfullwidthhelpercloudfrontprototypelibphonenumbersameValueZerojavascriptwhatwgregexES2023RxJStyped arrayArray.prototype.flattengraphqlsetImmediatecoloryupopenerWebSocketglobalscallbindarrayObservableomitajv256shellworkspace:*seseslint-pluginfilenamesdeep-cloneincludesjsdiffmetadatasidefromES7trimRightintrinsicpolyfillconsolehasimportexportsettertestbatchspecreducedomcmdspinnersprotobufexecutablethrottletaskeast-asian-widthform-validationcommand-lineparentECMAScript 2021postcssshames2015ES2015configurableexetraversezxes-shim APIappyamlMicrosoftmobilefindl10nfigletArray.prototype.containsidentifierseventDispatcherdataconcurrencycloudwatchlistenersurlsequencepnpm9arraybufferparentsconfigglobalreact-testing-libraryflatMapESnextformatObjectreal-timeinternalurlsprotocol-bufferssnssymlinksrmxtermtrimfile systemfindupsharedshimFunction.prototype.namesqstypanionObject.definePropertydeepclonereadablestreamdeepproxyES2020movecommanderansiECMAScript 2018arktypesubprocesscompilerworkeropenspeedec2popmotionstyleguideReflect.getPrototypeOfchildwrapviewentriesstoragegatewayhas-ownutilpersistentArray.prototype.flatchromiumwaapigroupBybyteFloat32Arraysortedbindredux-toolkitrmdircolourreworkawesomesauceURLlazycollectionprocessreusedynamodbfast-deep-clonetakesymbollimitvarsargsupconsumevestECMAScript 2020tslibpropertiesStreamstypeerrorhardlinkscharactercontainsmatchparserfindLastIndexparsingassertsespromiseinspectwebsitelaunchrgbtelephonesearchargva11ySymbolnativeloadbalancingbrowserslistes-shimsterminalrouteredirectArrayBufferdependency managerPushextralocationES2016optimistfetchindicatordatastructurebrowserstarterweaksetmime-dbinputquerystringObject.valuesimmerhttpsxhrESObject.fromEntriesJSON-Schemaexpressionsettingsstableprivateschemersscloudformationdescriptionwhichserializefixed-widthtouchdatemodulesautoprefixerloadingawsdeepcopygetintrinsiccachemakexdgCSSStyleDeclarationmergepostcss-pluginregexproutingamazoniepreserve-symlinksimmutablecomputed-types[[Prototype]]hasOwnPropertyvariablescore-jswordwrapcorepipethroatObject.assignelectronidelasticachedirES2019installerguidcompareworkflow0karmaspawnargumentslotES6assertrdssyntaxmatchAlldom-testing-libraryReactiveXhtmlregularpicomatchartES2021linewrapfunctionalnoperegular expressionenvTypedArrayES2022typeoflimitedemojienderstringifyArrayBuffer.prototype.sliceelbtranspilersuperstructcall-boundisjoirm -rfextenddescriptorspluginMappyyamllru$.extendestreeECMAScript 2017rangeerror
1.1.10

7 days ago

1.0.9

9 days ago

1.0.8

10 days ago

1.0.7

11 days ago

1.0.10

8 days ago

1.0.6

12 days ago

1.0.5

13 days ago

1.0.4

14 days ago

1.0.3

15 days ago

1.0.2

16 days ago

1.0.1

17 days ago

1.0.0

17 days ago