@adam-milo/ui 1.0.138 → 1.0.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +6 -6
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -2
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +1 -1
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +1 -1
- package/dist/src/components/forms/autocomplete/Autocomplete.component.d.ts +1 -1
- package/dist/src/components/forms/autocomplete/Autocomplete.component.d.ts.map +1 -1
- package/dist/src/components/forms/autocomplete/Autocomplete.styles.d.ts +1 -0
- package/dist/src/components/forms/autocomplete/Autocomplete.styles.d.ts.map +1 -1
- package/dist/src/components/forms/autocomplete/Autocomplete.types.d.ts +12 -0
- package/dist/src/components/forms/autocomplete/Autocomplete.types.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/autocomplete/ControlledAutocomplete.component.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/autocomplete/ControlledAutocomplete.types.d.ts +2 -1
- package/dist/src/components/forms/controlled/autocomplete/ControlledAutocomplete.types.d.ts.map +1 -1
- package/dist/src/components/forms/phone-input/PhoneInput.component.d.ts.map +1 -1
- package/dist/src/components/forms/phone-input/PhoneInput.types.d.ts +4 -1
- package/dist/src/components/forms/phone-input/PhoneInput.types.d.ts.map +1 -1
- package/dist/src/components/forms/phone-input/countries.d.ts +2 -2
- package/dist/src/components/forms/phone-input/countries.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index15.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("react-dom"),r=require("./index67.cjs"),o=require("@adam-milo/icons"),s=require("./index69.cjs"),n=require("./index79.cjs"),l=require("./index81.cjs"),i={name:"United States",dialCode:"+1",flag:"🇺🇸",mask:s.defaultPhoneMask},c=(e,t)=>{const a=t.trim().toLocaleLowerCase();if(!a)return!0;const r=a.replace(/\D/g,""),o=e.dialCode.replace(/\D/g,"");return e.name.toLocaleLowerCase().includes(a)||e.code.toLocaleLowerCase().includes(a)||e.dialCode.toLocaleLowerCase().includes(a)||r.length>0&&o.includes(r)},d=t.forwardRef(({label:d,error:u,helperText:h,fullWidth:p=!0,value:y="",onChange:f,countryCode:m,initialCountryCode:g,onCountryChange:x,countries:S,countrySearchPlaceholder:v="Search countries",countrySearchNoResultsText:w="No countries found",enableFormatting:b=!0,maxNationalDigits:$=s.E164_MAX_NATIONAL_DIGITS,onValidationChange:C,disabled:N,required:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("react-dom"),r=require("./index67.cjs"),o=require("@adam-milo/icons"),s=require("./index69.cjs"),n=require("./index79.cjs"),l=require("./index81.cjs"),i={name:"United States",dialCode:"+1",flag:"🇺🇸",mask:s.defaultPhoneMask},c=(e,t)=>{const a=t.trim().toLocaleLowerCase();if(!a)return!0;const r=a.replace(/\D/g,""),o=e.dialCode.replace(/\D/g,"");return e.name.toLocaleLowerCase().includes(a)||e.code.toLocaleLowerCase().includes(a)||e.dialCode.toLocaleLowerCase().includes(a)||r.length>0&&o.includes(r)},d=t.forwardRef(({label:d,error:u,helperText:h,fullWidth:p=!0,value:y="",onChange:f,countryCode:m,initialCountryCode:g,onCountryChange:x,countries:S,countrySearchPlaceholder:v="Search countries",countrySearchNoResultsText:w="No countries found",enableFormatting:b=!0,maxNationalDigits:$=s.E164_MAX_NATIONAL_DIGITS,onValidationChange:C,disabled:N,required:j,placeholder:L,id:k,"data-cy":D,"data-testid":I,className:E,onFocus:M,onBlur:P,...A},T)=>{const[q,_]=t.useState(!1),[F,R]=t.useState(!1),[W,z]=t.useState(0),[B,G]=t.useState(""),[O,V]=t.useState({top:0,left:0,width:0}),[X,K]=t.useState(()=>m??g??"US"),U=m??X,H=t.useId(),J=k||H,Q=`${J}-error`,Y=`${J}-helper`,Z=`${J}-listbox`,ee=t.useRef(null),te=t.useRef(null),ae=t.useRef(null),re=t.useRef(null),oe=t.useRef(null),se=t.useRef([]),ne=D||"phone-input",le=I||"phone-input",ie=S.find(e=>e.code===U)||S[0]||i,ce=t.useMemo(()=>S.filter(e=>c(e,B)),[S,B]),de=ie.mask??s.defaultPhoneMask,ue=Number.isFinite($)?Math.max(Math.floor($),1):s.E164_MAX_NATIONAL_DIGITS,he=L??de.placeholder,pe=d&&j&&!d.includes("*")?`${d}*`:d,ye=ie.dialCode.replace(/\D/g,"").length,fe=s.getPhoneDigits(y),me=y.startsWith("+")?fe.slice(ye):fe,ge=b?s.formatWithMask(me,de,ue):me,xe=t.useCallback(()=>{if(N)return;G("");const e=S.findIndex(e=>e.code===U);z(0===S.length?-1:Math.max(0,e)),_(!0)},[S,U,N]),Se=t.useCallback(()=>{_(!1),G(""),z(0)},[]);t.useEffect(()=>{q&&oe.current?.focus()},[q]),t.useEffect(()=>{!q||W<0||se.current[W]?.scrollIntoView?.({block:"nearest"})},[W,q]),t.useLayoutEffect(()=>{if(!q||!te.current)return;const e=()=>{if(te.current){const e=te.current.getBoundingClientRect();V({top:e.bottom+8,left:e.left,width:Math.max(e.width,320)})}};return e(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[q]),t.useEffect(()=>{const e=e=>{const t=e.target,a=ee.current?.contains(t),r=ae.current?.contains(t);a||r||Se()};return q&&document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[Se,q]),t.useEffect(()=>{if(!q)return;const e=ae.current;if(!e)return;const t=e=>e.stopPropagation(),a={passive:!1};return e.addEventListener("touchmove",t,a),e.addEventListener("wheel",t,a),()=>{e.removeEventListener("touchmove",t),e.removeEventListener("wheel",t)}},[q]);const ve=t.useCallback(e=>{void 0===m&&K(e.code),x?.(e);const t=s.getPhoneDigits(y),a=ie.dialCode.replace(/\D/g,"").length,r=y.startsWith("+")?t.slice(a):t;f?.(`${e.dialCode}${r}`),Se(),setTimeout(()=>{const e=ee.current?.querySelector("input");e?.focus()},0)},[Se,m,x,f,y,ie.dialCode]),we=t.useCallback(e=>{switch(e.key){case"ArrowDown":e.preventDefault(),z(e=>0===ce.length?-1:Math.min(e+1,ce.length-1));break;case"ArrowUp":e.preventDefault(),z(e=>0===ce.length?-1:Math.max(e-1,0));break;case"Enter":W>=0&&ce[W]&&(e.preventDefault(),ve(ce[W]));break;case"Escape":e.preventDefault(),Se(),re.current?.focus();break;case"Tab":Se()}},[Se,ce,W,ve]),be=N?"disabled":u?"error":F||q?"focus":"idle";return e.jsxs("div",{ref:ee,className:r.cn(l.wrapperStyles,p&&l.wrapperFullWidthStyles),"data-cy":`${ne}-wrapper`,"data-testid":`${le}-wrapper`,children:[d&&e.jsx("label",{htmlFor:J,className:l.labelStyles,"data-cy":`${ne}-label`,"data-testid":`${le}-label`,children:pe}),e.jsxs("div",{ref:te,className:r.cn(l.containerBaseStyles,p&&l.containerFullWidthStyles,"focus"===be&&l.containerFocusStyles,"error"===be&&l.containerErrorStyles,"disabled"===be&&l.containerDisabledStyles,"idle"===be&&l.containerIdleStyles),"data-state":be,"data-cy":`${ne}-container`,"data-testid":`${le}-container`,children:[e.jsxs("button",{ref:re,type:"button",className:l.triggerStyles,onClick:()=>q?Se():xe(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),xe())},disabled:N,"aria-haspopup":"listbox","aria-expanded":q,"aria-controls":Z,"aria-label":`Select country. Current: ${ie.name}`,"data-cy":`${ne}-country-trigger`,"data-testid":`${le}-country-trigger`,children:[e.jsx(n.CountryFlag,{flag:ie.flag,className:l.flagStyles,"data-cy":`${ne}-flag`,"data-testid":`${le}-flag`}),e.jsx(o.Icon,{name:"ChevronDownIcon",size:"sm",color:F||q?"clickable":"text",decorative:!0,"data-cy":`${ne}-chevron`})]}),e.jsx("span",{className:l.dialCodeStyles,"data-cy":`${ne}-dial-code`,"data-testid":`${le}-dial-code`,children:ie.dialCode}),e.jsx("input",{ref:T,id:J,type:"tel",inputMode:"numeric",value:ge,onChange:e=>{const t=e.target.value,a=(b?s.getPhoneDigits(t):t.replace(/[^0-9]/g,"")).slice(0,ue);f?.(`${ie.dialCode}${a}`),C?.(a.length>0)},onFocus:e=>{R(!0),M?.(e)},onBlur:e=>{R(!1),P?.(e)},placeholder:he,disabled:N,required:j,className:r.cn(l.inputStyles,E),"aria-invalid":u?"true":"false","aria-required":j?"true":void 0,"aria-describedby":u?Q:h?Y:void 0,"data-cy":ne,"data-testid":le,...A})]}),q&&a.createPortal(e.jsxs("div",{ref:ae,className:l.dropdownStyles,style:{top:O.top,left:O.left,width:O.width,minWidth:"20rem"},"data-cy":`${ne}-dropdown`,"data-testid":`${le}-dropdown`,children:[e.jsxs("div",{className:l.searchWrapperStyles,children:[e.jsx("span",{className:l.searchIconStyles,children:e.jsx(o.Icon,{name:"MagnifyingGlassIcon",size:"sm",color:"icon-secondary",decorative:!0})}),e.jsx("input",{ref:oe,type:"text",role:"combobox",className:l.searchInputStyles,value:B,onChange:e=>{const t=e.target.value;G(t);const a=S.filter(e=>c(e,t));z(a.length>0?0:-1)},onKeyDown:we,placeholder:v,"aria-label":v,"aria-autocomplete":"list","aria-expanded":"true","aria-controls":Z,"aria-activedescendant":W>=0&&ce[W]?`${Z}-option-${ce[W].code.toLowerCase()}`:void 0,"data-cy":`${ne}-country-search`,"data-testid":`${le}-country-search`}),B&&e.jsx("button",{type:"button",className:l.clearSearchStyles,onClick:()=>{G(""),z(S.length>0?0:-1),oe.current?.focus()},"aria-label":"Clear search","data-cy":`${ne}-country-search-clear`,"data-testid":`${le}-country-search-clear`,children:e.jsx(o.Icon,{name:"Cross2Icon",size:"sm",color:"icon-secondary",decorative:!0})})]}),e.jsx("div",{id:Z,role:"listbox","aria-label":"Select country",className:l.dropdownViewportStyles,"data-cy":`${ne}-country-list`,"data-testid":`${le}-country-list`,children:0===ce.length?e.jsx("div",{role:"status","aria-live":"polite",className:l.noResultsStyles,"data-cy":`${ne}-country-no-results`,"data-testid":`${le}-country-no-results`,children:w}):ce.map((t,a)=>e.jsxs("div",{ref:e=>{se.current[a]=e},id:`${Z}-option-${t.code.toLowerCase()}`,role:"option",tabIndex:-1,"aria-selected":t.code===U,className:r.cn(l.optionBaseStyles,a===W&&l.optionHighlightedStyles,t.code===U&&l.optionSelectedStyles),onClick:()=>ve(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),ve(t))},onMouseEnter:()=>z(a),"data-cy":`${ne}-option-${t.code.toLowerCase()}`,"data-testid":`${le}-option-${t.code.toLowerCase()}`,children:[e.jsx(n.CountryFlag,{flag:t.flag,className:l.optionFlagStyles}),e.jsx("span",{className:l.optionNameStyles,children:t.name}),e.jsx("span",{className:l.optionDialCodeStyles,children:t.dialCode})]},t.code))})]}),document.body),u&&e.jsx("span",{id:Q,className:l.errorStyles,role:"alert","data-cy":`${ne}-error`,"data-testid":`${le}-error`,children:u}),h&&!u&&e.jsx("span",{id:Y,className:l.helperStyles,"data-cy":`${ne}-helper`,"data-testid":`${le}-helper`,children:h})]})});d.displayName="PhoneInput",exports.E164_MAX_NATIONAL_DIGITS=s.E164_MAX_NATIONAL_DIGITS,exports.defaultPhoneMask=s.defaultPhoneMask,exports.formatWithMask=s.formatWithMask,exports.getPhoneDigits=s.getPhoneDigits,exports.isValidPhoneLength=s.isValidPhoneLength,exports.PhoneInput=d;
|
package/dist/index15.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as a,useState as r,useId as o,useRef as n,useMemo as i,useCallback as l,useEffect as c,useLayoutEffect as d}from"react";import{createPortal as s}from"react-dom";import{cn as u}from"./index67.js";import{Icon as m}from"@adam-milo/icons";import{defaultPhoneMask as p,getPhoneDigits as h,formatWithMask as f,E164_MAX_NATIONAL_DIGITS as y}from"./index69.js";import{isValidPhoneLength as v}from"./index69.js";import{CountryFlag as $}from"./index79.js";import{labelStyles as g,triggerStyles as w,flagStyles as b,dialCodeStyles as C,dropdownStyles as N,searchWrapperStyles as x,searchIconStyles as L,searchInputStyles as k,clearSearchStyles as D,dropdownViewportStyles as E,noResultsStyles as M,optionFlagStyles as S,optionNameStyles as I,optionDialCodeStyles as j,optionSelectedStyles as z,optionHighlightedStyles as F,optionBaseStyles as q,errorStyles as T,helperStyles as W,inputStyles as A,containerIdleStyles as B,containerDisabledStyles as K,containerErrorStyles as P,containerFocusStyles as U,containerFullWidthStyles as R,containerBaseStyles as V,wrapperFullWidthStyles as G,wrapperStyles as H}from"./index81.js";const J={name:"United States",dialCode:"+1",flag:"🇺🇸",mask:p},O=(e,t)=>{const a=t.trim().toLocaleLowerCase();if(!a)return!0;const r=a.replace(/\D/g,""),o=e.dialCode.replace(/\D/g,"");return e.name.toLocaleLowerCase().includes(a)||e.code.toLocaleLowerCase().includes(a)||e.dialCode.toLocaleLowerCase().includes(a)||r.length>0&&o.includes(r)},Q=a(({label:a,error:v,helperText:Q,fullWidth:X=!0,value:Y="",onChange:Z,countryCode:_,initialCountryCode:ee,onCountryChange:te,countries:ae,countrySearchPlaceholder:re="Search countries",countrySearchNoResultsText:oe="No countries found",enableFormatting:ne=!0,maxNationalDigits:ie=y,onValidationChange:le,disabled:ce,required:de,placeholder:se,id:ue,"data-cy":me,"data-testid":pe,className:he,onFocus:fe,onBlur:ye,...ve},$e)=>{const[ge,we]=r(!1),[be,Ce]=r(!1),[Ne,xe]=r(0),[Le,ke]=r(""),[De,Ee]=r({top:0,left:0,width:0}),[Me,Se]=r(()=>_??ee??"US"),Ie=_??Me,je=o(),ze=ue||je,Fe=`${ze}-error`,qe=`${ze}-helper`,Te=`${ze}-listbox`,We=n(null),Ae=n(null),Be=n(null),Ke=n(null),Pe=n(null),Ue=n([]),Re=me||"phone-input",Ve=pe||"phone-input",Ge=ae.find(e=>e.code===Ie)||ae[0]||J,He=i(()=>ae.filter(e=>O(e,Le)),[ae,Le]),Je=Ge.mask??p,Oe=Number.isFinite(ie)?Math.
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as a,useState as r,useId as o,useRef as n,useMemo as i,useCallback as l,useEffect as c,useLayoutEffect as d}from"react";import{createPortal as s}from"react-dom";import{cn as u}from"./index67.js";import{Icon as m}from"@adam-milo/icons";import{defaultPhoneMask as p,getPhoneDigits as h,formatWithMask as f,E164_MAX_NATIONAL_DIGITS as y}from"./index69.js";import{isValidPhoneLength as v}from"./index69.js";import{CountryFlag as $}from"./index79.js";import{labelStyles as g,triggerStyles as w,flagStyles as b,dialCodeStyles as C,dropdownStyles as N,searchWrapperStyles as x,searchIconStyles as L,searchInputStyles as k,clearSearchStyles as D,dropdownViewportStyles as E,noResultsStyles as M,optionFlagStyles as S,optionNameStyles as I,optionDialCodeStyles as j,optionSelectedStyles as z,optionHighlightedStyles as F,optionBaseStyles as q,errorStyles as T,helperStyles as W,inputStyles as A,containerIdleStyles as B,containerDisabledStyles as K,containerErrorStyles as P,containerFocusStyles as U,containerFullWidthStyles as R,containerBaseStyles as V,wrapperFullWidthStyles as G,wrapperStyles as H}from"./index81.js";const J={name:"United States",dialCode:"+1",flag:"🇺🇸",mask:p},O=(e,t)=>{const a=t.trim().toLocaleLowerCase();if(!a)return!0;const r=a.replace(/\D/g,""),o=e.dialCode.replace(/\D/g,"");return e.name.toLocaleLowerCase().includes(a)||e.code.toLocaleLowerCase().includes(a)||e.dialCode.toLocaleLowerCase().includes(a)||r.length>0&&o.includes(r)},Q=a(({label:a,error:v,helperText:Q,fullWidth:X=!0,value:Y="",onChange:Z,countryCode:_,initialCountryCode:ee,onCountryChange:te,countries:ae,countrySearchPlaceholder:re="Search countries",countrySearchNoResultsText:oe="No countries found",enableFormatting:ne=!0,maxNationalDigits:ie=y,onValidationChange:le,disabled:ce,required:de,placeholder:se,id:ue,"data-cy":me,"data-testid":pe,className:he,onFocus:fe,onBlur:ye,...ve},$e)=>{const[ge,we]=r(!1),[be,Ce]=r(!1),[Ne,xe]=r(0),[Le,ke]=r(""),[De,Ee]=r({top:0,left:0,width:0}),[Me,Se]=r(()=>_??ee??"US"),Ie=_??Me,je=o(),ze=ue||je,Fe=`${ze}-error`,qe=`${ze}-helper`,Te=`${ze}-listbox`,We=n(null),Ae=n(null),Be=n(null),Ke=n(null),Pe=n(null),Ue=n([]),Re=me||"phone-input",Ve=pe||"phone-input",Ge=ae.find(e=>e.code===Ie)||ae[0]||J,He=i(()=>ae.filter(e=>O(e,Le)),[ae,Le]),Je=Ge.mask??p,Oe=Number.isFinite(ie)?Math.max(Math.floor(ie),1):y,Qe=se??Je.placeholder,Xe=a&&de&&!a.includes("*")?`${a}*`:a,Ye=Ge.dialCode.replace(/\D/g,"").length,Ze=h(Y),_e=Y.startsWith("+")?Ze.slice(Ye):Ze,et=ne?f(_e,Je,Oe):_e,tt=l(()=>{if(ce)return;ke("");const e=ae.findIndex(e=>e.code===Ie);xe(0===ae.length?-1:Math.max(0,e)),we(!0)},[ae,Ie,ce]),at=l(()=>{we(!1),ke(""),xe(0)},[]);c(()=>{ge&&Pe.current?.focus()},[ge]),c(()=>{!ge||Ne<0||Ue.current[Ne]?.scrollIntoView?.({block:"nearest"})},[Ne,ge]),d(()=>{if(!ge||!Ae.current)return;const e=()=>{if(Ae.current){const e=Ae.current.getBoundingClientRect();Ee({top:e.bottom+8,left:e.left,width:Math.max(e.width,320)})}};return e(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[ge]),c(()=>{const e=e=>{const t=e.target,a=We.current?.contains(t),r=Be.current?.contains(t);a||r||at()};return ge&&document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[at,ge]),c(()=>{if(!ge)return;const e=Be.current;if(!e)return;const t=e=>e.stopPropagation(),a={passive:!1};return e.addEventListener("touchmove",t,a),e.addEventListener("wheel",t,a),()=>{e.removeEventListener("touchmove",t),e.removeEventListener("wheel",t)}},[ge]);const rt=l(e=>{void 0===_&&Se(e.code),te?.(e);const t=h(Y),a=Ge.dialCode.replace(/\D/g,"").length,r=Y.startsWith("+")?t.slice(a):t;Z?.(`${e.dialCode}${r}`),at(),setTimeout(()=>{const e=We.current?.querySelector("input");e?.focus()},0)},[at,_,te,Z,Y,Ge.dialCode]),ot=l(e=>{switch(e.key){case"ArrowDown":e.preventDefault(),xe(e=>0===He.length?-1:Math.min(e+1,He.length-1));break;case"ArrowUp":e.preventDefault(),xe(e=>0===He.length?-1:Math.max(e-1,0));break;case"Enter":Ne>=0&&He[Ne]&&(e.preventDefault(),rt(He[Ne]));break;case"Escape":e.preventDefault(),at(),Ke.current?.focus();break;case"Tab":at()}},[at,He,Ne,rt]),nt=ce?"disabled":v?"error":be||ge?"focus":"idle";/* @__PURE__ */
|
|
2
2
|
return e("div",{ref:We,className:u(H,X&&G),"data-cy":`${Re}-wrapper`,"data-testid":`${Ve}-wrapper`,children:[a&&/* @__PURE__ */t("label",{htmlFor:ze,className:g,"data-cy":`${Re}-label`,"data-testid":`${Ve}-label`,children:Xe}),
|
|
3
3
|
/* @__PURE__ */e("div",{ref:Ae,className:u(V,X&&R,"focus"===nt&&U,"error"===nt&&P,"disabled"===nt&&K,"idle"===nt&&B),"data-state":nt,"data-cy":`${Re}-container`,"data-testid":`${Ve}-container`,children:[
|
|
4
4
|
/* @__PURE__ */e("button",{ref:Ke,type:"button",className:w,onClick:()=>ge?at():tt(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),tt())},disabled:ce,"aria-haspopup":"listbox","aria-expanded":ge,"aria-controls":Te,"aria-label":`Select country. Current: ${Ge.name}`,"data-cy":`${Re}-country-trigger`,"data-testid":`${Ve}-country-trigger`,children:[
|
package/dist/index20.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index67.cjs"),r=require("./index79.cjs"),l=require("./index88.cjs"),s=()=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),i=t.forwardRef(({value:i,onValueChange:n,options:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index67.cjs"),r=require("./index79.cjs"),l=require("./index88.cjs"),s=()=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),i=t.forwardRef(({value:i,onValueChange:n,options:d,label:o,placeholder:c,error:u,helperText:p,fullWidth:y=!1,required:f=!1,disabled:h=!1,noResultsText:b="No results found",renderOption:v,className:m,"data-cy":g,"data-testid":x},S)=>{const[$,w]=t.useState(!1),[j,k]=t.useState(""),[N,C]=t.useState(-1),D=t.useId(),q=`${D}-error`,E=`${D}-helper`,F=`${D}-listbox`,L=g||"autocomplete",R=x||"autocomplete",A=t.useRef(null),I=t.useRef(null),M=t.useRef([]),O=t.useRef(!1),T=d.find(e=>e.value===i),W=o&&f&&!o.includes("*")?`${o} *`:o,K=$&&j?d.filter(e=>e.label.toLowerCase().includes(j.toLowerCase())):d,P=t.useCallback(()=>{h||(w(!0),k(""),C(-1))},[h]),V=t.useCallback(()=>{w(!1),k(""),C(-1)},[]),B=t.useCallback(e=>{e.disabled||(n(e.value),V())},[n,V]);t.useEffect(()=>{const e=e=>{A.current&&!A.current.contains(e.target)&&V()};return $&&document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[$,V]);const H=e=>{M.current[e]?.scrollIntoView?.({block:"nearest"})},U=(e,t)=>{const a=K.length;if(0===a)return-1;let r=e+t;for(;r>=0&&r<a;){if(!K[r].disabled)return r;r+=t}if(-1===e&&1===t)for(let l=0;l<a;l++)if(!K[l].disabled)return l;return-1===e?-1:e},z=$?j:T?.label??"",G=t.useCallback(e=>{A.current=e,"function"==typeof S?S(e):S&&(S.current=e)},[S]);return e.jsxs("div",{ref:G,className:a.cn(l.wrapperStyles,y&&l.wrapperFullWidthStyles,m),"data-cy":`${L}-wrapper`,"data-testid":`${R}-wrapper`,children:[o&&e.jsx("label",{htmlFor:`${D}-input`,className:a.cn(l.labelStyles,u&&l.labelErrorStyles),"data-cy":`${L}-label`,"data-testid":`${R}-label`,children:W}),e.jsxs("div",{className:a.cn(l.triggerStyles,$&&l.triggerOpenStyles,u&&l.triggerErrorStyles,h&&l.triggerDisabledStyles),onClick:()=>{$||P(),I.current?.focus()},"data-cy":L,"data-testid":R,children:[!$&&T?.flag&&e.jsx(r.CountryFlag,{flag:T.flag,className:l.flagStyles}),e.jsx("input",{ref:I,id:`${D}-input`,type:"text",role:"combobox",className:l.inputStyles,value:z,placeholder:c||o||"Select...","aria-expanded":$,"aria-haspopup":"listbox","aria-controls":$?F:void 0,"aria-autocomplete":"list","aria-activedescendant":N>=0?`${D}-option-${N}`:void 0,"aria-invalid":u?"true":"false","aria-required":f?"true":void 0,"aria-describedby":u?q:p?E:void 0,disabled:h,onChange:e=>{k(e.target.value),C(-1),$||P()},onFocus:()=>{$||O.current||P()},onKeyDown:e=>{switch(e.key){case"ArrowDown":{if(e.preventDefault(),!$)return void P();const t=U(N,1);-1!==t&&(C(t),H(t));break}case"ArrowUp":{if(e.preventDefault(),!$)return void P();const t=U(N,-1);-1!==t&&(C(t),H(t));break}case"Enter":e.preventDefault(),$&&N>=0&&K[N]&&B(K[N]);break;case"Escape":e.preventDefault(),V();break;case"Tab":$&&V()}},"data-cy":`${L}-input`,"data-testid":`${R}-input`}),e.jsx("span",{"aria-hidden":"true",className:a.cn(l.chevronStyles,$&&l.chevronOpenStyles),onMouseDown:e=>{e.preventDefault(),$?(O.current=!0,V(),I.current?.blur(),requestAnimationFrame(()=>{O.current=!1})):(P(),requestAnimationFrame(()=>I.current?.focus()))},onClick:e=>e.stopPropagation(),"data-cy":`${L}-chevron`,"data-testid":`${R}-chevron`,children:e.jsx(s,{})})]}),$&&e.jsx("div",{className:l.dropdownStyles,"data-cy":`${L}-dropdown`,"data-testid":`${R}-dropdown`,children:e.jsx("div",{id:F,role:"listbox",className:l.listStyles,"data-cy":`${L}-list`,"data-testid":`${R}-list`,children:0===K.length?e.jsx("div",{className:l.noResultsStyles,children:b}):K.map((t,s)=>{const n=t.value===i,d=s===N;return e.jsx("div",{ref:e=>{M.current[s]=e},id:`${D}-option-${s}`,role:"option",tabIndex:-1,"aria-selected":n,"aria-disabled":t.disabled||void 0,className:a.cn(l.itemStyles,v&&"w-full justify-between gap-4",d&&l.itemHighlightedStyles,n&&!d&&l.itemSelectedStyles,t.disabled&&(v?l.itemDisabledInteractiveStyles:l.itemDisabledStyles)),onClick:()=>B(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),B(t))},onMouseEnter:()=>C(t.disabled?-1:s),"data-cy":`${L}-item-${t.value}`,"data-testid":`${R}-item-${t.value}`,children:v?v(t,{selected:n,highlighted:d}):e.jsxs(e.Fragment,{children:[t.flag&&e.jsx(r.CountryFlag,{flag:t.flag,className:l.flagStyles}),t.label]})},t.value)})})}),u&&e.jsx("span",{id:q,className:l.errorStyles,role:"alert","data-cy":`${L}-error`,"data-testid":`${R}-error`,children:u}),p&&!u&&e.jsx("span",{id:E,className:l.helperStyles,"data-cy":`${L}-helper`,"data-testid":`${R}-helper`,children:p})]})});i.displayName="Autocomplete",exports.Autocomplete=i;
|
package/dist/index20.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as
|
|
2
|
-
return e("div",{ref:
|
|
3
|
-
/* @__PURE__ */e("div",{className:
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
return
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import{forwardRef as r,useState as i,useId as n,useRef as l,useCallback as o,useEffect as d}from"react";import{cn as s}from"./index67.js";import{CountryFlag as c}from"./index79.js";import{flagStyles as u,inputStyles as p,dropdownStyles as m,listStyles as f,noResultsStyles as h,itemDisabledInteractiveStyles as v,itemDisabledStyles as b,itemSelectedStyles as $,itemHighlightedStyles as w,itemStyles as y,errorStyles as g,helperStyles as x,labelErrorStyles as N,labelStyles as k,chevronOpenStyles as D,chevronStyles as C,triggerDisabledStyles as L,triggerErrorStyles as j,triggerOpenStyles as E,triggerStyles as A,wrapperFullWidthStyles as q,wrapperStyles as F}from"./index88.js";const M=()=>/* @__PURE__ */t("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:/* @__PURE__ */t("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),T=r(({value:r,onValueChange:T,options:I,label:K,placeholder:V,error:W,helperText:B,fullWidth:O=!1,required:P=!1,disabled:R=!1,noResultsText:S="No results found",renderOption:U,className:z,"data-cy":G,"data-testid":H},J)=>{const[Q,X]=i(!1),[Y,Z]=i(""),[_,ee]=i(-1),te=n(),ae=`${te}-error`,re=`${te}-helper`,ie=`${te}-listbox`,ne=G||"autocomplete",le=H||"autocomplete",oe=l(null),de=l(null),se=l([]),ce=l(!1),ue=I.find(e=>e.value===r),pe=K&&P&&!K.includes("*")?`${K} *`:K,me=Q&&Y?I.filter(e=>e.label.toLowerCase().includes(Y.toLowerCase())):I,fe=o(()=>{R||(X(!0),Z(""),ee(-1))},[R]),he=o(()=>{X(!1),Z(""),ee(-1)},[]),ve=o(e=>{e.disabled||(T(e.value),he())},[T,he]);d(()=>{const e=e=>{oe.current&&!oe.current.contains(e.target)&&he()};return Q&&document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[Q,he]);const be=e=>{se.current[e]?.scrollIntoView?.({block:"nearest"})},$e=(e,t)=>{const a=me.length;if(0===a)return-1;let r=e+t;for(;r>=0&&r<a;){if(!me[r].disabled)return r;r+=t}if(-1===e&&1===t)for(let i=0;i<a;i++)if(!me[i].disabled)return i;return-1===e?-1:e},we=Q?Y:ue?.label??"",ye=o(e=>{oe.current=e,"function"==typeof J?J(e):J&&(J.current=e)},[J]);/* @__PURE__ */
|
|
2
|
+
return e("div",{ref:ye,className:s(F,O&&q,z),"data-cy":`${ne}-wrapper`,"data-testid":`${le}-wrapper`,children:[K&&/* @__PURE__ */t("label",{htmlFor:`${te}-input`,className:s(k,W&&N),"data-cy":`${ne}-label`,"data-testid":`${le}-label`,children:pe}),
|
|
3
|
+
/* @__PURE__ */e("div",{className:s(A,Q&&E,W&&j,R&&L),onClick:()=>{Q||fe(),de.current?.focus()},"data-cy":ne,"data-testid":le,children:[!Q&&ue?.flag&&/* @__PURE__ */t(c,{flag:ue.flag,className:u}),
|
|
4
|
+
/* @__PURE__ */t("input",{ref:de,id:`${te}-input`,type:"text",role:"combobox",className:p,value:we,placeholder:V||K||"Select...","aria-expanded":Q,"aria-haspopup":"listbox","aria-controls":Q?ie:void 0,"aria-autocomplete":"list","aria-activedescendant":_>=0?`${te}-option-${_}`:void 0,"aria-invalid":W?"true":"false","aria-required":P?"true":void 0,"aria-describedby":W?ae:B?re:void 0,disabled:R,onChange:e=>{Z(e.target.value),ee(-1),Q||fe()},onFocus:()=>{Q||ce.current||fe()},onKeyDown:e=>{switch(e.key){case"ArrowDown":{if(e.preventDefault(),!Q)return void fe();const t=$e(_,1);-1!==t&&(ee(t),be(t));break}case"ArrowUp":{if(e.preventDefault(),!Q)return void fe();const t=$e(_,-1);-1!==t&&(ee(t),be(t));break}case"Enter":e.preventDefault(),Q&&_>=0&&me[_]&&ve(me[_]);break;case"Escape":e.preventDefault(),he();break;case"Tab":Q&&he()}},"data-cy":`${ne}-input`,"data-testid":`${le}-input`}),
|
|
5
|
+
/* @__PURE__ */t("span",{"aria-hidden":"true",className:s(C,Q&&D),onMouseDown:e=>{e.preventDefault(),Q?(ce.current=!0,he(),de.current?.blur(),requestAnimationFrame(()=>{ce.current=!1})):(fe(),requestAnimationFrame(()=>de.current?.focus()))},onClick:e=>e.stopPropagation(),"data-cy":`${ne}-chevron`,"data-testid":`${le}-chevron`,children:/* @__PURE__ */t(M,{})})]}),Q&&/* @__PURE__ */t("div",{className:m,"data-cy":`${ne}-dropdown`,"data-testid":`${le}-dropdown`,children:/* @__PURE__ */t("div",{id:ie,role:"listbox",className:f,"data-cy":`${ne}-list`,"data-testid":`${le}-list`,children:0===me.length?/* @__PURE__ */t("div",{className:h,children:S}):me.map((i,n)=>{const l=i.value===r,o=n===_;/* @__PURE__ */
|
|
6
|
+
return t("div",{ref:e=>{se.current[n]=e},id:`${te}-option-${n}`,role:"option",tabIndex:-1,"aria-selected":l,"aria-disabled":i.disabled||void 0,className:s(y,U&&"w-full justify-between gap-4",o&&w,l&&!o&&$,i.disabled&&(U?v:b)),onClick:()=>ve(i),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),ve(i))},onMouseEnter:()=>ee(i.disabled?-1:n),"data-cy":`${ne}-item-${i.value}`,"data-testid":`${le}-item-${i.value}`,children:U?U(i,{selected:l,highlighted:o}):/* @__PURE__ */e(a,{children:[i.flag&&/* @__PURE__ */t(c,{flag:i.flag,className:u}),i.label]})},i.value)})})}),W&&/* @__PURE__ */t("span",{id:ae,className:g,role:"alert","data-cy":`${ne}-error`,"data-testid":`${le}-error`,children:W}),B&&!W&&/* @__PURE__ */t("span",{id:re,className:x,"data-cy":`${ne}-helper`,"data-testid":`${le}-helper`,children:B})]})});T.displayName="Autocomplete";export{T as Autocomplete};
|
package/dist/index33.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index22.cjs"),o=require("./index20.cjs");const l=t.forwardRef(function({control:t,name:l,rules:a,options:d,renderOption:n,label:s,placeholder:i,fullWidth:c=!1,required:u,disabled:p,helperText:m,noResultsText:x,className:h,"data-cy":f,"data-testid":b},j){return e.jsx(r.FormField,{control:t,name:l,rules:a,"data-cy":f,"data-testid":b,children:({value:t,onChange:r,error:l})=>e.jsx(o.Autocomplete,{ref:j,value:t??"",onValueChange:r,options:d,renderOption:n,label:s,placeholder:i,fullWidth:c,required:u,disabled:p,error:l,helperText:m,noResultsText:x,className:h,"data-cy":f??"controlled-autocomplete","data-testid":b??"controlled-autocomplete"})})});l.displayName="ControlledAutocomplete",exports.ControlledAutocomplete=l;
|
package/dist/index33.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import{FormField as o}from"./index22.js";import{Autocomplete as
|
|
2
|
-
return e(o,{control:t,name:
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import{FormField as o}from"./index22.js";import{Autocomplete as r}from"./index20.js";const l=t(function({control:t,name:l,rules:a,options:d,renderOption:n,label:i,placeholder:s,fullWidth:c=!1,required:m,disabled:p,helperText:u,noResultsText:h,className:f,"data-cy":x,"data-testid":b},y){/* @__PURE__ */
|
|
2
|
+
return e(o,{control:t,name:l,rules:a,"data-cy":x,"data-testid":b,children:({value:t,onChange:o,error:l})=>/* @__PURE__ */e(r,{ref:y,value:t??"",onValueChange:o,options:d,renderOption:n,label:i,placeholder:s,fullWidth:c,required:m,disabled:p,error:l,helperText:u,noResultsText:h,className:f,"data-cy":x??"controlled-autocomplete","data-testid":b??"controlled-autocomplete"})})});l.displayName="ControlledAutocomplete";export{l as ControlledAutocomplete};
|
package/dist/index69.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.E164_MAX_NATIONAL_DIGITS=15,exports.defaultPhoneMask={mask:"### ### ####",placeholder:"123 456 7890",maxLength:10},exports.formatWithMask=function(e,t){const n=e.replace(/\D/g,"").slice(0,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.E164_MAX_NATIONAL_DIGITS=15,exports.defaultPhoneMask={mask:"### ### ####",placeholder:"123 456 7890",maxLength:10},exports.formatWithMask=function(e,t,n=15){const r=Number.isFinite(n)?Math.max(Math.floor(n),1):15,o=e.replace(/\D/g,"").slice(0,r);let s="",l=0;for(let a=0;a<t.mask.length&&l<o.length;a++)"#"===t.mask[a]?(s+=o[l],l++):s+=t.mask[a];return l<o.length&&(s+=o.slice(l)),s},exports.getPhoneDigits=function(e){return e.replace(/\D/g,"")},exports.isValidPhoneLength=function(e,t){const n=e.replace(/\D/g,"");return n.length>0&&n.length<=15};
|
package/dist/index69.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=15,
|
|
1
|
+
const e=15,t={mask:"### ### ####",placeholder:"123 456 7890",maxLength:10};function n(e,t,n=15){const l=Number.isFinite(n)?Math.max(Math.floor(n),1):15,r=e.replace(/\D/g,"").slice(0,l);let a="",c=0;for(let o=0;o<t.mask.length&&c<r.length;o++)"#"===t.mask[o]?(a+=r[c],c++):a+=t.mask[o];return c<r.length&&(a+=r.slice(c)),a}function l(e){return e.replace(/\D/g,"")}function r(e,t){const n=e.replace(/\D/g,"");return n.length>0&&n.length<=15}export{e as E164_MAX_NATIONAL_DIGITS,t as defaultPhoneMask,n as formatWithMask,l as getPhoneDigits,r as isValidPhoneLength};
|
package/dist/index88.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["group flex items-center justify-between gap-3 w-full h-11 px-3.5","bg-[var(--color-card)] border border-[var(--color-border)] rounded-[var(--radius-md)]","text-16 leading-none text-[var(--color-text)] text-start","cursor-text outline-none transition-[border-color] duration-200 ease-in-out","hover:[&:not(:has(input:disabled))]:border-[var(--color-button-blue)]","focus-within:border-[var(--color-button-blue)]"].join(" "),r=["flex-1 min-w-0 bg-transparent border-none outline-none p-0 m-0","text-16 leading-none text-[var(--color-text)]","placeholder:text-[var(--color-icon-secondary)]","disabled:[-webkit-text-fill-color:var(--color-text)]"].join(" "),t=["absolute top-full left-0 right-0 z-[100] mt-2","bg-[var(--color-card)] rounded-[var(--radius-md)] shadow-[0_0.25rem_1rem_var(--shadow-color-md)]","overflow-hidden","animate-[select-content-open_150ms_ease-out_forwards]"].join(" "),o=["flex items-center gap-3 h-10 min-h-[2.75rem] px-2 rounded-md text-16 leading-none text-[var(--color-text)]","cursor-pointer select-none outline-none transition-colors duration-150 ease-in-out","max-sm:min-h-[2.75rem]"].join(" ");exports.chevronOpenStyles="rotate-180",exports.chevronStyles="flex items-center justify-center shrink-0 w-5 h-5 text-[var(--color-text)] transition-transform duration-200 ease-in-out [&_svg]:w-full [&_svg]:h-full cursor-pointer",exports.dropdownStyles=t,exports.errorStyles="text-12 leading-none text-[var(--color-error)] ps-3.5 pt-1.5",exports.flagStyles="inline-flex items-center justify-center w-5 h-5 shrink-0 aspect-[11/10] text-28 leading-[0] rounded-full overflow-hidden",exports.helperStyles="text-12 leading-none text-[var(--color-grey-07)] ps-3.5 pt-1.5",exports.inputStyles=r,exports.itemDisabledStyles="cursor-not-allowed opacity-50 pointer-events-none",exports.itemHighlightedStyles="bg-[var(--color-bg)]",exports.itemSelectedStyles="bg-[var(--color-bg-secondary)]",exports.itemStyles=o,exports.labelErrorStyles="text-[var(--color-error)]",exports.labelStyles="text-16 font-normal leading-none text-[var(--color-grey-07)] text-start w-full",exports.listStyles="dropdown-scrollbar p-1 max-h-[12rem] overflow-y-auto [-webkit-overflow-scrolling:touch]",exports.noResultsStyles="flex items-center justify-center h-10 px-2 text-14 text-[var(--color-icon-secondary)]",exports.triggerDisabledStyles="cursor-not-allowed opacity-50 pointer-events-none",exports.triggerErrorStyles="border-[var(--color-error)] hover:border-[var(--color-error)] focus-within:border-[var(--color-error)]",exports.triggerOpenStyles="border-[var(--color-button-blue)]",exports.triggerStyles=e,exports.wrapperFullWidthStyles="w-full",exports.wrapperStyles="flex flex-col gap-2 relative w-auto items-start text-start";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["group flex items-center justify-between gap-3 w-full h-11 px-3.5","bg-[var(--color-card)] border border-[var(--color-border)] rounded-[var(--radius-md)]","text-16 leading-none text-[var(--color-text)] text-start","cursor-text outline-none transition-[border-color] duration-200 ease-in-out","hover:[&:not(:has(input:disabled))]:border-[var(--color-button-blue)]","focus-within:border-[var(--color-button-blue)]"].join(" "),r=["flex-1 min-w-0 bg-transparent border-none outline-none p-0 m-0","text-16 leading-none text-[var(--color-text)]","placeholder:text-[var(--color-icon-secondary)]","disabled:[-webkit-text-fill-color:var(--color-text)]"].join(" "),t=["absolute top-full left-0 right-0 z-[100] mt-2","bg-[var(--color-card)] rounded-[var(--radius-md)] shadow-[0_0.25rem_1rem_var(--shadow-color-md)]","overflow-hidden","animate-[select-content-open_150ms_ease-out_forwards]"].join(" "),o=["flex items-center gap-3 h-10 min-h-[2.75rem] px-2 rounded-md text-16 leading-none text-[var(--color-text)]","cursor-pointer select-none outline-none transition-colors duration-150 ease-in-out","max-sm:min-h-[2.75rem]"].join(" ");exports.chevronOpenStyles="rotate-180",exports.chevronStyles="flex items-center justify-center shrink-0 w-5 h-5 text-[var(--color-text)] transition-transform duration-200 ease-in-out [&_svg]:w-full [&_svg]:h-full cursor-pointer",exports.dropdownStyles=t,exports.errorStyles="text-12 leading-none text-[var(--color-error)] ps-3.5 pt-1.5",exports.flagStyles="inline-flex items-center justify-center w-5 h-5 shrink-0 aspect-[11/10] text-28 leading-[0] rounded-full overflow-hidden",exports.helperStyles="text-12 leading-none text-[var(--color-grey-07)] ps-3.5 pt-1.5",exports.inputStyles=r,exports.itemDisabledInteractiveStyles="cursor-default",exports.itemDisabledStyles="cursor-not-allowed opacity-50 pointer-events-none",exports.itemHighlightedStyles="bg-[var(--color-bg)]",exports.itemSelectedStyles="bg-[var(--color-bg-secondary)]",exports.itemStyles=o,exports.labelErrorStyles="text-[var(--color-error)]",exports.labelStyles="text-16 font-normal leading-none text-[var(--color-grey-07)] text-start w-full",exports.listStyles="dropdown-scrollbar p-1 max-h-[12rem] overflow-y-auto [-webkit-overflow-scrolling:touch]",exports.noResultsStyles="flex items-center justify-center h-10 px-2 text-14 text-[var(--color-icon-secondary)]",exports.triggerDisabledStyles="cursor-not-allowed opacity-50 pointer-events-none",exports.triggerErrorStyles="border-[var(--color-error)] hover:border-[var(--color-error)] focus-within:border-[var(--color-error)]",exports.triggerOpenStyles="border-[var(--color-button-blue)]",exports.triggerStyles=e,exports.wrapperFullWidthStyles="w-full",exports.wrapperStyles="flex flex-col gap-2 relative w-auto items-start text-start";
|
package/dist/index88.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e="flex flex-col gap-2 relative w-auto items-start text-start",r="w-full",o="text-16 font-normal leading-none text-[var(--color-grey-07)] text-start w-full",t="text-[var(--color-error)]",n=["group flex items-center justify-between gap-3 w-full h-11 px-3.5","bg-[var(--color-card)] border border-[var(--color-border)] rounded-[var(--radius-md)]","text-16 leading-none text-[var(--color-text)] text-start","cursor-text outline-none transition-[border-color] duration-200 ease-in-out","hover:[&:not(:has(input:disabled))]:border-[var(--color-button-blue)]","focus-within:border-[var(--color-button-blue)]"].join(" "),l="border-[var(--color-button-blue)]",a="border-[var(--color-error)] hover:border-[var(--color-error)] focus-within:border-[var(--color-error)]",i="cursor-not-allowed opacity-50 pointer-events-none",c=["flex-1 min-w-0 bg-transparent border-none outline-none p-0 m-0","text-16 leading-none text-[var(--color-text)]","placeholder:text-[var(--color-icon-secondary)]","disabled:[-webkit-text-fill-color:var(--color-text)]"].join(" "),s="flex items-center justify-center shrink-0 w-5 h-5 text-[var(--color-text)] transition-transform duration-200 ease-in-out [&_svg]:w-full [&_svg]:h-full cursor-pointer",d="rotate-180",u="text-12 leading-none text-[var(--color-error)] ps-3.5 pt-1.5",x="text-12 leading-none text-[var(--color-grey-07)] ps-3.5 pt-1.5",v=["absolute top-full left-0 right-0 z-[100] mt-2","bg-[var(--color-card)] rounded-[var(--radius-md)] shadow-[0_0.25rem_1rem_var(--shadow-color-md)]","overflow-hidden","animate-[select-content-open_150ms_ease-out_forwards]"].join(" "),b="dropdown-scrollbar p-1 max-h-[12rem] overflow-y-auto [-webkit-overflow-scrolling:touch]",f=["flex items-center gap-3 h-10 min-h-[2.75rem] px-2 rounded-md text-16 leading-none text-[var(--color-text)]","cursor-pointer select-none outline-none transition-colors duration-150 ease-in-out","max-sm:min-h-[2.75rem]"].join(" "),m="bg-[var(--color-bg)]",p="bg-[var(--color-bg-secondary)]",g="cursor-not-allowed opacity-50 pointer-events-none",h="inline-flex items-center justify-center w-5 h-5 shrink-0 aspect-[11/10] text-28 leading-[0] rounded-full overflow-hidden",
|
|
1
|
+
const e="flex flex-col gap-2 relative w-auto items-start text-start",r="w-full",o="text-16 font-normal leading-none text-[var(--color-grey-07)] text-start w-full",t="text-[var(--color-error)]",n=["group flex items-center justify-between gap-3 w-full h-11 px-3.5","bg-[var(--color-card)] border border-[var(--color-border)] rounded-[var(--radius-md)]","text-16 leading-none text-[var(--color-text)] text-start","cursor-text outline-none transition-[border-color] duration-200 ease-in-out","hover:[&:not(:has(input:disabled))]:border-[var(--color-button-blue)]","focus-within:border-[var(--color-button-blue)]"].join(" "),l="border-[var(--color-button-blue)]",a="border-[var(--color-error)] hover:border-[var(--color-error)] focus-within:border-[var(--color-error)]",i="cursor-not-allowed opacity-50 pointer-events-none",c=["flex-1 min-w-0 bg-transparent border-none outline-none p-0 m-0","text-16 leading-none text-[var(--color-text)]","placeholder:text-[var(--color-icon-secondary)]","disabled:[-webkit-text-fill-color:var(--color-text)]"].join(" "),s="flex items-center justify-center shrink-0 w-5 h-5 text-[var(--color-text)] transition-transform duration-200 ease-in-out [&_svg]:w-full [&_svg]:h-full cursor-pointer",d="rotate-180",u="text-12 leading-none text-[var(--color-error)] ps-3.5 pt-1.5",x="text-12 leading-none text-[var(--color-grey-07)] ps-3.5 pt-1.5",v=["absolute top-full left-0 right-0 z-[100] mt-2","bg-[var(--color-card)] rounded-[var(--radius-md)] shadow-[0_0.25rem_1rem_var(--shadow-color-md)]","overflow-hidden","animate-[select-content-open_150ms_ease-out_forwards]"].join(" "),b="dropdown-scrollbar p-1 max-h-[12rem] overflow-y-auto [-webkit-overflow-scrolling:touch]",f=["flex items-center gap-3 h-10 min-h-[2.75rem] px-2 rounded-md text-16 leading-none text-[var(--color-text)]","cursor-pointer select-none outline-none transition-colors duration-150 ease-in-out","max-sm:min-h-[2.75rem]"].join(" "),m="bg-[var(--color-bg)]",p="bg-[var(--color-bg-secondary)]",g="cursor-not-allowed opacity-50 pointer-events-none",h="cursor-default",w="inline-flex items-center justify-center w-5 h-5 shrink-0 aspect-[11/10] text-28 leading-[0] rounded-full overflow-hidden",y="flex items-center justify-center h-10 px-2 text-14 text-[var(--color-icon-secondary)]";export{d as chevronOpenStyles,s as chevronStyles,v as dropdownStyles,u as errorStyles,w as flagStyles,x as helperStyles,c as inputStyles,h as itemDisabledInteractiveStyles,g as itemDisabledStyles,m as itemHighlightedStyles,p as itemSelectedStyles,f as itemStyles,t as labelErrorStyles,o as labelStyles,b as listStyles,y as noResultsStyles,i as triggerDisabledStyles,a as triggerErrorStyles,l as triggerOpenStyles,n as triggerStyles,r as wrapperFullWidthStyles,e as wrapperStyles};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AutocompleteProps } from './Autocomplete.types';
|
|
2
2
|
|
|
3
3
|
export declare const Autocomplete: import('react').ForwardRefExoticComponent<AutocompleteProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export type { AutocompleteOption, AutocompleteProps } from './Autocomplete.types';
|
|
4
|
+
export type { AutocompleteOption, AutocompleteProps, AutocompleteRenderOption, AutocompleteRenderOptionState, } from './Autocomplete.types';
|
|
5
5
|
//# sourceMappingURL=Autocomplete.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/autocomplete/Autocomplete.component.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Autocomplete.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/autocomplete/Autocomplete.component.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AA6ClF,eAAO,MAAM,YAAY,8GAkWxB,CAAC;AAIF,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC"}
|
|
@@ -17,6 +17,7 @@ export declare const itemStyles: string;
|
|
|
17
17
|
export declare const itemHighlightedStyles = "bg-[var(--color-bg)]";
|
|
18
18
|
export declare const itemSelectedStyles = "bg-[var(--color-bg-secondary)]";
|
|
19
19
|
export declare const itemDisabledStyles = "cursor-not-allowed opacity-50 pointer-events-none";
|
|
20
|
+
export declare const itemDisabledInteractiveStyles = "cursor-default";
|
|
20
21
|
export declare const flagStyles = "inline-flex items-center justify-center w-5 h-5 shrink-0 aspect-[11/10] text-28 leading-[0] rounded-full overflow-hidden";
|
|
21
22
|
export declare const noResultsStyles = "flex items-center justify-center h-10 px-2 text-14 text-[var(--color-icon-secondary)]";
|
|
22
23
|
//# sourceMappingURL=Autocomplete.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/autocomplete/Autocomplete.styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,+DAA+D,CAAC;AAC1F,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAE/C,eAAO,MAAM,WAAW,mFAC0D,CAAC;AACnF,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAE5D,eAAO,MAAM,aAAa,QAOf,CAAC;AACZ,eAAO,MAAM,iBAAiB,sCAAsC,CAAC;AACrE,eAAO,MAAM,kBAAkB,2GAC2E,CAAC;AAC3G,eAAO,MAAM,qBAAqB,sDAAsD,CAAC;AAEzF,eAAO,MAAM,WAAW,QAKb,CAAC;AAEZ,eAAO,MAAM,aAAa,0KAC+I,CAAC;AAC1K,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAE9C,eAAO,MAAM,WAAW,iEAAiE,CAAC;AAC1F,eAAO,MAAM,YAAY,mEAAmE,CAAC;AAE7F,eAAO,MAAM,cAAc,QAKhB,CAAC;AAEZ,eAAO,MAAM,UAAU,4FACoE,CAAC;AAE5F,eAAO,MAAM,UAAU,QAIZ,CAAC;AACZ,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAC5D,eAAO,MAAM,kBAAkB,mCAAmC,CAAC;AACnE,eAAO,MAAM,kBAAkB,sDAAsD,CAAC;
|
|
1
|
+
{"version":3,"file":"Autocomplete.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/autocomplete/Autocomplete.styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,+DAA+D,CAAC;AAC1F,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAE/C,eAAO,MAAM,WAAW,mFAC0D,CAAC;AACnF,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAE5D,eAAO,MAAM,aAAa,QAOf,CAAC;AACZ,eAAO,MAAM,iBAAiB,sCAAsC,CAAC;AACrE,eAAO,MAAM,kBAAkB,2GAC2E,CAAC;AAC3G,eAAO,MAAM,qBAAqB,sDAAsD,CAAC;AAEzF,eAAO,MAAM,WAAW,QAKb,CAAC;AAEZ,eAAO,MAAM,aAAa,0KAC+I,CAAC;AAC1K,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAE9C,eAAO,MAAM,WAAW,iEAAiE,CAAC;AAC1F,eAAO,MAAM,YAAY,mEAAmE,CAAC;AAE7F,eAAO,MAAM,cAAc,QAKhB,CAAC;AAEZ,eAAO,MAAM,UAAU,4FACoE,CAAC;AAE5F,eAAO,MAAM,UAAU,QAIZ,CAAC;AACZ,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAC5D,eAAO,MAAM,kBAAkB,mCAAmC,CAAC;AACnE,eAAO,MAAM,kBAAkB,sDAAsD,CAAC;AACtF,eAAO,MAAM,6BAA6B,mBAAmB,CAAC;AAE9D,eAAO,MAAM,UAAU,6HACqG,CAAC;AAE7H,eAAO,MAAM,eAAe,0FAC6D,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
1
3
|
export interface AutocompleteOption {
|
|
2
4
|
/** Unique value for this option */
|
|
3
5
|
value: string;
|
|
@@ -8,6 +10,11 @@ export interface AutocompleteOption {
|
|
|
8
10
|
/** Disable this option */
|
|
9
11
|
disabled?: boolean;
|
|
10
12
|
}
|
|
13
|
+
export interface AutocompleteRenderOptionState {
|
|
14
|
+
selected: boolean;
|
|
15
|
+
highlighted: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type AutocompleteRenderOption = (option: AutocompleteOption, state: AutocompleteRenderOptionState) => ReactNode;
|
|
11
18
|
export interface AutocompleteProps {
|
|
12
19
|
/** Currently selected value */
|
|
13
20
|
value: string;
|
|
@@ -15,6 +22,11 @@ export interface AutocompleteProps {
|
|
|
15
22
|
onValueChange: (value: string) => void;
|
|
16
23
|
/** List of options */
|
|
17
24
|
options: AutocompleteOption[];
|
|
25
|
+
/**
|
|
26
|
+
* Custom option row content. Filtering still uses `option.label`.
|
|
27
|
+
* When provided, replaces the default flag + label inside each option.
|
|
28
|
+
*/
|
|
29
|
+
renderOption?: AutocompleteRenderOption;
|
|
18
30
|
/** Label above the trigger */
|
|
19
31
|
label?: string;
|
|
20
32
|
/** Placeholder when no value is selected */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,sBAAsB;IACtB,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,kBAAkB;IACjC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,wBAAwB,GAAG,CACrC,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,6BAA6B,KACjC,SAAS,CAAC;AAEf,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,sBAAsB;IACtB,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B;;;OAGG;IACH,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
package/dist/src/components/forms/controlled/autocomplete/ControlledAutocomplete.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledAutocomplete.component.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/controlled/autocomplete/ControlledAutocomplete.component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"ControlledAutocomplete.component.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/controlled/autocomplete/ControlledAutocomplete.component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAsDlF,eAAO,MAAM,sBAAsB,EAA8C,CAC/E,YAAY,SAAS,WAAW,GAAG,WAAW,EAE9C,KAAK,EAAE,2BAA2B,CAAC,YAAY,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,KACnF,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;AAI/B,YAAY,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Control, FieldPath, FieldValues, RegisterOptions } from 'react-hook-form';
|
|
2
|
-
import { AutocompleteOption } from '../../autocomplete/Autocomplete.types';
|
|
2
|
+
import { AutocompleteOption, AutocompleteRenderOption } from '../../autocomplete/Autocomplete.types';
|
|
3
3
|
|
|
4
4
|
export interface ControlledAutocompleteProps<TFieldValues extends FieldValues = FieldValues> {
|
|
5
5
|
/** Optional when used inside a `<Form>` wrapper — auto-resolved from context */
|
|
@@ -7,6 +7,7 @@ export interface ControlledAutocompleteProps<TFieldValues extends FieldValues =
|
|
|
7
7
|
name: FieldPath<TFieldValues>;
|
|
8
8
|
rules?: RegisterOptions<TFieldValues, FieldPath<TFieldValues>>;
|
|
9
9
|
options: AutocompleteOption[];
|
|
10
|
+
renderOption?: AutocompleteRenderOption;
|
|
10
11
|
label?: string;
|
|
11
12
|
placeholder?: string;
|
|
12
13
|
fullWidth?: boolean;
|
package/dist/src/components/forms/controlled/autocomplete/ControlledAutocomplete.types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledAutocomplete.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/controlled/autocomplete/ControlledAutocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACxF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ControlledAutocomplete.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/controlled/autocomplete/ControlledAutocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACxF,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,uCAAuC,CAAC;AAE/C,MAAM,WAAW,2BAA2B,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW;IACzF,gFAAgF;IAChF,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAChC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/D,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneInput.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/PhoneInput.component.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgC1D,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAyBrB,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"PhoneInput.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/PhoneInput.component.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgC1D,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAyBrB,eAAO,MAAM,UAAU,8GAihBtB,CAAC;AAIF,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -20,7 +20,10 @@ export interface PhoneInputProps extends Omit<InputHTMLAttributes<HTMLInputEleme
|
|
|
20
20
|
/** Localized message shown when country search has no matches. */
|
|
21
21
|
countrySearchNoResultsText?: string;
|
|
22
22
|
enableFormatting?: boolean;
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Maximum national digits accepted by typing or paste.
|
|
25
|
+
* Defaults to the E.164 national cap (15); may be raised above it when needed.
|
|
26
|
+
*/
|
|
24
27
|
maxNationalDigits?: number;
|
|
25
28
|
/**
|
|
26
29
|
* Soft signal when national digits are non-empty. Not mask-length or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneInput.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/PhoneInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,OAAO,GAAG,UAAU,CAC9B;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8GAA8G;IAC9G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,gGAAgG;IAChG,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,qEAAqE;IACrE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kEAAkE;IAClE,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B
|
|
1
|
+
{"version":3,"file":"PhoneInput.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/PhoneInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,OAAO,GAAG,UAAU,CAC9B;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8GAA8G;IAC9G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,gGAAgG;IAChG,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,qEAAqE;IACrE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kEAAkE;IAClE,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -8,9 +8,9 @@ export declare const defaultPhoneMask: PhoneMask;
|
|
|
8
8
|
/**
|
|
9
9
|
* Format digits using the given mask for display.
|
|
10
10
|
* Digits beyond the mask’s `#` slots are appended unformatted so longer valid
|
|
11
|
-
* numbers remain visible. Caps at {@link E164_MAX_NATIONAL_DIGITS}.
|
|
11
|
+
* numbers remain visible. Caps at `maxDigits` (defaults to {@link E164_MAX_NATIONAL_DIGITS}).
|
|
12
12
|
*/
|
|
13
|
-
export declare function formatWithMask(value: string, mask: PhoneMask): string;
|
|
13
|
+
export declare function formatWithMask(value: string, mask: PhoneMask, maxDigits?: number): string;
|
|
14
14
|
export declare function getPhoneDigits(formattedValue: string): string;
|
|
15
15
|
/**
|
|
16
16
|
* Soft length check only — not a substitute for real phone validation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/countries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE5D,8FAA8F;AAC9F,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,EAAE,SAI9B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,
|
|
1
|
+
{"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/phone-input/countries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE5D,8FAA8F;AAC9F,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,EAAE,SAI9B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,SAAS,EACf,SAAS,GAAE,MAAiC,GAC3C,MAAM,CAwBR;AAED,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAG5E"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export type { SliderProps, SliderSingleProps, SliderRangeProps, SliderRangeValue
|
|
|
36
36
|
export { Textarea } from './components/forms/textarea/Textarea.component';
|
|
37
37
|
export type { TextareaProps } from './components/forms/textarea/Textarea.component';
|
|
38
38
|
export { Autocomplete } from './components/forms/autocomplete/Autocomplete.component';
|
|
39
|
-
export type { AutocompleteProps, AutocompleteOption, } from './components/forms/autocomplete/Autocomplete.component';
|
|
39
|
+
export type { AutocompleteProps, AutocompleteOption, AutocompleteRenderOption, AutocompleteRenderOptionState, } from './components/forms/autocomplete/Autocomplete.component';
|
|
40
40
|
export { Form } from './components/forms/controlled/form/Form.component';
|
|
41
41
|
export type { FormProps } from './components/forms/controlled/form/Form.component';
|
|
42
42
|
export { FormField } from './components/forms/controlled/FormField.component';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA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