(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[331],{3212:function(e,s,n){Promise.resolve().then(n.bind(n,6561))},6561:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return V}});var r=n(4004),i=n(4978),c=n(65),l=n(9819),t=n(6739),d=n(5227),h=n(271),o=n(721),a=n(9524),x=n(988),j=n(4300),Z=n(2433),p=n(6551),f=n(8420),m=n(1753),u=n(9132),b=n(2161),v=n(8730),g=n(770),y=n(180),w=n(2190),P=n(4231),_=n(5536),I=n(1966),k=n(3375),C=n(3686),F=n(7098),A=n(9426),N=n(5891),T=n(5123),L=n(7354),$=n(1467),q=n(5527),E=n(1209),R=n(9513),D=n(959),O=n(2614),S=()=>{let{fragmentId:e,setFragmentId:s}=(0,i.useContext)(D.Z),n=e=>{s(e.target.hash)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Z,{variant:"h3",fw:"semibold",children:"Table of Contents"}),(0,r.jsxs)(q.Z,{indent:!1,children:[(0,r.jsx)(E.Z,{onClick:n,children:(0,r.jsx)(x.Z,{variant:"transparent",href:"#phone-field-api",active:/#phone-field-api$/.test(e),"data-testid":"phone_field_api",children:"PhoneField API"})}),(0,r.jsx)(E.Z,{onClick:n,children:(0,r.jsx)(x.Z,{variant:"transparent",href:"#import",active:/#import$/.test(e),"data-testid":"import",children:"Import"})}),(0,r.jsx)(E.Z,{onClick:n,children:(0,r.jsx)(x.Z,{variant:"transparent",href:"#phone-field-props",active:/#phone-field-props$/.test(e),"data-testit":"phone_field_props",children:"PhoneField Props"})}),(0,r.jsx)(R.Z,{}),(0,r.jsx)(E.Z,{onClick:n,children:(0,r.jsx)(x.Z,{variant:"transparent",fw:"bold",href:"#system-props",active:/#system-props$/.test(e),"data-testid":"system_props",children:"System Props"})})]}),(0,r.jsx)(O.Z,{})]})},z=n(9362),B=n(176),G=n(1064);let M=(0,c.zo)(l.Z).withConfig({componentId:"sc-aa71e187-0"})(["width:100%;"]);function V(){let e=(0,_.Z)({query:{media:"(min-width: 1281px)"}}),s=(0,_.Z)({query:{media:"(max-width: 1280px)"}}),n=(0,_.Z)({query:{media:"(max-width: 768px)"}}),i=["phone-field-api","import","phone-field-props","system-props",...G.Z];return(0,r.jsx)(z.Z,{children:(0,r.jsxs)(t.Z,{children:[(0,r.jsx)(N.Z,{currentPage:"root/core/children"}),(0,r.jsxs)(d.Z,{display:"flex",children:[e&&(0,r.jsx)(h.Z,{children:(0,r.jsx)(o.Z,{fluid:!0,children:(0,r.jsx)($.Z,{})})}),(0,r.jsxs)(M,{borderLeft:n?"none":s?"none":"dark",borderRight:n?"none":"dark",children:[(0,r.jsx)(d.Z,{borderBottom:"dark",children:(0,r.jsx)(o.Z,{children:(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(x.Z,{variant:"transparent",href:"/core",width:"auto","data-testid":"breadcrumbs_core",children:"core"}),(0,r.jsx)(I.Z,{}),(0,r.jsx)(j.Z,{variant:"body2",children:"api"}),(0,r.jsx)(I.Z,{}),(0,r.jsx)(x.Z,{variant:"transparent",href:"/core/api/react-phone-field",active:!0,width:"auto","data-testid":"breadcrumbs_react_phone_field",children:"react-phone-field"})]})})}),(0,r.jsxs)(o.Z,{fluid:!1,children:[(0,r.jsxs)(Z.Z,{id:"phone-field-api",children:[(0,r.jsx)(j.Z,{variant:"h1",children:"React PhoneField API"}),(0,r.jsx)(j.Z,{variant:"body1",children:"API reference for the React PhoneField component from Modj.js. Learn about how to use the PhoneField component and all the valid props that can be supplied to this component."})]}),(0,r.jsxs)(Z.Z,{id:"import",children:[(0,r.jsx)(j.Z,{variant:"h2",children:"Import "}),(0,r.jsx)(p.Z,{variant:"filled",notched:!0,type:"script",fileName:(0,r.jsxs)(d.Z,{display:"flex",alignItems:"center",gap:4,children:[(0,r.jsx)(k.Z,{height:"2em",width:"1.5em"}),(0,r.jsx)(j.Z,{variant:"small",fs:1,children:"App.jsx"})]}),headerContent:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(f.Z,{arrow:!0,el:(0,r.jsx)(x.Z,{variant:"icon",href:"https://github.com/modjs-org/modjs/tree/main/packages/core/src/components/PhoneField",target:"_blank","data-testid":"import_github",children:(0,r.jsx)(C.Z,{})}),children:(0,r.jsx)(m.Z,{displayPosition:"left",children:(0,r.jsx)(j.Z,{variant:"small",color:"white",children:"View Source on Github"})})})}),children:"import { PhoneField } from '@modjs/core'"})]}),(0,r.jsxs)(Z.Z,{id:"phone-field-props",pb:"normal",mt:16,children:[(0,r.jsx)(j.Z,{variant:"h2",children:"PhoneField Props"}),(0,r.jsx)(j.Z,{variant:"body1",children:"The following props are specific to the PhoneField component and can be applied to this component."}),(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(b.Z,{children:(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(g.Z,{children:"Name"}),(0,r.jsx)(g.Z,{children:"Type"}),(0,r.jsx)(g.Z,{children:"Default"}),(0,r.jsx)(g.Z,{children:"Description"})]})}),(0,r.jsxs)(y.Z,{children:[(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(w.Z,{children:"variant"}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:'"filled" "outlined" "transparent"'})}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:'"filled"'})}),(0,r.jsx)(w.Z,{children:"Applies different styles based on variant."})]}),(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(w.Z,{children:"notched"}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"boolean"})}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"false"})}),(0,r.jsx)(w.Z,{children:"If true, the component will have notched effect."})]}),(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(w.Z,{children:"minLength"}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"number"})}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"14"})}),(0,r.jsx)(w.Z,{children:"The minimum length of the field."})]}),(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(w.Z,{children:"maxLength"}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"number"})}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"14"})}),(0,r.jsx)(w.Z,{children:"The maximum length of the field."})]}),(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(w.Z,{children:"autoComplete"}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"string"})}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:'"off"'})}),(0,r.jsx)(w.Z,{children:"Controls whether the field can be auto completed by the browser."})]}),(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(w.Z,{children:"placeholder"}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"string"})}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:'"Your Phone Number *"'})}),(0,r.jsx)(w.Z,{children:"Placeholder for the component."})]}),(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(w.Z,{children:"type"}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"string"})}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:'"text"'})}),(0,r.jsx)(w.Z,{children:"Type of the component."})]}),(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(w.Z,{children:"name"}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"string"})}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:'"phone"'})}),(0,r.jsx)(w.Z,{children:"Name of the component."})]}),(0,r.jsxs)(v.Z,{children:[(0,r.jsx)(w.Z,{children:"id"}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:"string"})}),(0,r.jsx)(w.Z,{children:(0,r.jsx)(P.Z,{color:"success",children:'"phone"'})}),(0,r.jsx)(w.Z,{children:"Id of the component."})]})]})]})]}),(0,r.jsx)(L.Z,{}),(0,r.jsxs)(d.Z,{display:"flex",justifyContent:"space-between",my:32,children:[(0,r.jsxs)(x.Z,{href:"/core/api/react-password-field",variant:"inline",display:"flex",alignItems:"center","data-testid":"prev_password_field_api",children:[(0,r.jsx)(F.Z,{}),"PasswordField API"]}),(0,r.jsxs)(x.Z,{href:"/core/api/react-pill",variant:"inline",display:"flex",alignItems:"center","data-testid":"next_pill_api",children:["Pill API",(0,r.jsx)(A.Z,{})]})]})]}),(0,r.jsx)(T.Z,{})]}),(0,r.jsx)(B.Z,{defaultFragmentId:"#phone-field-api",sections:i,children:(0,r.jsx)(S,{})})]})]})})}}},function(e){e.O(0,[4293,65,6071,4663,8322,3375,1041,8470,9594,1744],function(){return e(e.s=3212)}),_N_E=e.O()}]);