@adam-milo/ui 1.0.59 → 1.0.61
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +1 -1
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1 -1
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +3 -1
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +1 -1
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +1 -1
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +1 -1
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +1 -2
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +1 -1
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +1 -1
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +2 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -1
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +1 -1
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +1 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +1 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +1 -0
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +10 -10
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +9 -2
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +2 -2
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -2
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +2 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +2 -4
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +4 -4
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +4 -8
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +8 -2
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +2 -4
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +4 -8
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +8 -4
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +4 -2
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +2 -5
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +5 -2
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +2 -10
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +10 -2
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +2 -3
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +2 -2
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +2 -2
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +2 -6
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +6 -3
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +3 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -2
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +2 -2
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -2
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +2 -10
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +10 -11
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +11 -1
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +1 -1
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +1 -1
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +1 -1
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +1 -15
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +15 -1
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +1 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +1 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +1 -1
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +1 -1
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +1 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -1
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +5 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +1 -1
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +1 -1
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +1 -1
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +1 -1
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +1 -1
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +1 -1
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +1 -1
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +1 -1
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +1 -1
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +1 -1
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +1 -1
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +1 -5
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +1 -1
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +1 -1
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +1 -1
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +1 -2
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +1 -1
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +1 -1
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +2 -4
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +1 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +1 -1
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +4 -1
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +1 -3
- package/dist/src/components/core/icon-button/IconButton.component.d.ts.map +1 -1
- package/dist/src/components/core/icon-button/IconButton.styles.d.ts +1 -0
- package/dist/src/components/core/icon-button/IconButton.styles.d.ts.map +1 -1
- package/dist/src/components/core/icon-button/IconButton.types.d.ts +3 -1
- package/dist/src/components/core/icon-button/IconButton.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.styles.d.ts +1 -1
- package/dist/src/components/forms/phone-input/PhoneInput.styles.d.ts.map +1 -1
- package/dist/src/components/forms/textarea/Textarea.component.d.ts +5 -0
- package/dist/src/components/forms/textarea/Textarea.component.d.ts.map +1 -0
- package/dist/src/components/forms/textarea/Textarea.styles.d.ts +13 -0
- package/dist/src/components/forms/textarea/Textarea.styles.d.ts.map +1 -0
- package/dist/src/components/forms/textarea/Textarea.types.d.ts +34 -0
- package/dist/src/components/forms/textarea/Textarea.types.d.ts.map +1 -0
- package/dist/src/components/forms/toggle/Toggle.styles.d.ts +3 -3
- package/dist/src/components/forms/toggle/Toggle.styles.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/utils/validation.d.ts +142 -0
- package/dist/src/utils/validation.d.ts.map +1 -0
- package/dist/src/utils/validation.spec.d.ts +2 -0
- package/dist/src/utils/validation.spec.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/* empty css */const e=require("./index3.cjs"),r=require("./index4.cjs"),o=require("./index5.cjs"),t=require("./index6.cjs"),s=require("./index7.cjs"),i=require("./index8.cjs"),n=require("./index9.cjs"),p=require("./index10.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/* empty css */const e=require("./index3.cjs"),r=require("./index4.cjs"),o=require("./index5.cjs"),t=require("./index6.cjs"),s=require("./index7.cjs"),i=require("./index8.cjs"),n=require("./index9.cjs"),p=require("./index10.cjs"),a=require("./index11.cjs"),x=require("./index12.cjs"),l=require("./index13.cjs"),d=require("./index14.cjs"),u=require("./index15.cjs"),c=require("./index16.cjs"),g=require("./index17.cjs"),C=require("./index18.cjs"),j=require("./index19.cjs"),q=require("./index20.cjs"),S=require("./index21.cjs"),D=require("./index22.cjs"),I=require("./index23.cjs"),m=require("./index24.cjs"),P=require("./index25.cjs"),T=require("./index26.cjs"),h=require("./index27.cjs"),b=require("./index28.cjs"),L=require("./index29.cjs"),R=require("./index30.cjs"),A=require("./index31.cjs"),O=require("./index32.cjs"),y=require("./index33.cjs"),B=require("./index34.cjs"),v=require("./index35.cjs"),k=require("./index36.cjs"),E=require("./index37.cjs"),f=require("./index38.cjs"),F=require("./index39.cjs"),N=require("./index40.cjs"),_=require("./index41.cjs"),M=require("./index42.cjs"),H=require("./index43.cjs"),V=require("./index44.cjs"),W=require("./index45.cjs"),w=require("./index46.cjs"),G=require("./index47.cjs"),U=require("./index48.cjs"),z=require("./index49.cjs"),J=require("./index50.cjs"),K=require("./index51.cjs"),Q=require("./index52.cjs"),X=require("@adam-milo/icons"),Y=require("./index53.cjs"),Z=require("./index54.cjs");exports.Button=e.Button,exports.IconButton=r.IconButton,exports.MenuIconButton=o.MenuIconButton,exports.EmailInput=t.EmailInput,exports.PasswordInput=s.PasswordInput,exports.DEFAULT_PASSWORD_LABELS=i.DEFAULT_PASSWORD_LABELS,exports.DEFAULT_PASSWORD_RULES=i.DEFAULT_PASSWORD_RULES,exports.PASSWORD_MIN_LENGTH=i.PASSWORD_MIN_LENGTH,exports.PASSWORD_RULES=i.PASSWORD_RULES,exports.PasswordChecklist=i.PasswordChecklist,exports.isPasswordValid=i.isPasswordValid,exports.NumericInput=n.NumericInput,exports.AlphanumericInput=p.AlphanumericInput,exports.Checkbox=a.Checkbox,exports.Radio=x.Radio,exports.Select=l.Select,exports.SelectContent=l.SelectContent,exports.SelectGroup=l.SelectGroup,exports.SelectItem=l.SelectItem,exports.SelectLabel=l.SelectLabel,exports.SelectSeparator=l.SelectSeparator,exports.SelectTrigger=l.SelectTrigger,exports.SelectValue=l.SelectValue,exports.PhoneInput=d.PhoneInput,exports.OTPInput=u.OTPInput,exports.Toggle=c.Toggle,exports.Textarea=g.Textarea,exports.Form=C.Form,exports.FormField=j.FormField,exports.ControlledEmailInput=q.ControlledEmailInput,exports.ControlledPasswordInput=S.ControlledPasswordInput,exports.ControlledCheckbox=D.ControlledCheckbox,exports.ControlledRadio=I.ControlledRadio,exports.ControlledToggle=m.ControlledToggle,exports.ControlledNumericInput=P.ControlledNumericInput,exports.ControlledAlphanumericInput=T.ControlledAlphanumericInput,exports.ControlledPhoneInput=h.ControlledPhoneInput,exports.ControlledOTPInput=b.ControlledOTPInput,exports.ControlledSelect=L.ControlledSelect,exports.Tabs=R.Tabs,exports.TabsContent=R.TabsContent,exports.TabsList=R.TabsList,exports.TabsTrigger=R.TabsTrigger,exports.Stepper=A.Stepper,exports.TopNav=O.TopNav,exports.Alert=y.Alert,exports.Card=B.Card,exports.CardContent=B.CardContent,exports.CardDescription=B.CardDescription,exports.CardFooter=B.CardFooter,exports.CardHeader=B.CardHeader,exports.CardTitle=B.CardTitle,exports.DataTable=v.DataTable,exports.Chip=k.Chip,exports.ChipGroup=E.ChipGroup,exports.Badge=f.Badge,exports.Dialog=F.Dialog,exports.DialogClose=F.DialogClose,exports.DialogCloseButton=F.DialogCloseButton,exports.DialogContent=F.DialogContent,exports.DialogDescription=F.DialogDescription,exports.DialogFooter=F.DialogFooter,exports.DialogHeader=F.DialogHeader,exports.DialogIcon=F.DialogIcon,exports.DialogOverlay=F.DialogOverlay,exports.DialogPortal=F.DialogPortal,exports.DialogTitle=F.DialogTitle,exports.DialogTrigger=F.DialogTrigger,exports.Stack=N.Stack,exports.Container=_.Container,exports.Divider=M.Divider,exports.AuthLayout=H.AuthLayout,exports.SimpleHeader=V.SimpleHeader,exports.Grid=W.Grid,exports.Text=w.Text,exports.Heading=G.Heading,exports.Link=U.Link,exports.Spinner=z.Spinner,exports.AiLoader=J.AiLoader,exports.cn=K.cn,exports.generateId=K.generateId,exports.defaultValidation=Q.defaultValidation,exports.normalizeWhitespace=Q.normalizeWhitespace,exports.textValidators=Q.textValidators,Object.defineProperty(exports,"Icon",{enumerable:!0,get:()=>X.Icon}),Object.defineProperty(exports,"availableIcons",{enumerable:!0,get:()=>X.availableIcons}),Object.defineProperty(exports,"figmaIconMapping",{enumerable:!0,get:()=>X.figmaIconMapping}),Object.defineProperty(exports,"getRadixIconName",{enumerable:!0,get:()=>X.getRadixIconName}),exports.allCountries=Y.allCountries,exports.commonCountries=Y.commonCountries,exports.defaultCountries=Y.defaultCountries,exports.defaultPhoneMask=Y.defaultPhoneMask,exports.formatPhoneNumber=Y.formatPhoneNumber,exports.getCountriesByDialCode=Y.getCountriesByDialCode,exports.getCountryByCode=Y.getCountryByCode,exports.getCountryByDialCode=Y.getCountryByDialCode,exports.getPhoneDigits=Y.getPhoneDigits,exports.getPhoneMask=Y.getPhoneMask,exports.isValidPhoneLength=Y.isValidPhoneLength,exports.phoneMasks=Y.phoneMasks,exports.searchCountries=Y.searchCountries,exports.getResponsiveBase=Z.getResponsiveBase,exports.getResponsiveClasses=Z.getResponsiveClasses,exports.getResponsiveSizeClasses=Z.getResponsiveSizeClasses,exports.isResponsiveObject=Z.isResponsiveObject;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/* empty css */import{Button as o}from"./index3.js";import{IconButton as i}from"./index4.js";import{MenuIconButton as m}from"./index5.js";import{EmailInput as r}from"./index6.js";import{PasswordInput as p}from"./index7.js";import{DEFAULT_PASSWORD_LABELS as t,DEFAULT_PASSWORD_RULES as d,PASSWORD_MIN_LENGTH as e,PASSWORD_RULES as n,PasswordChecklist as s,isPasswordValid as x}from"./index8.js";import{NumericInput as f}from"./index9.js";import{AlphanumericInput as j}from"./index10.js";import{Checkbox as a}from"./index11.js";import{Radio as c}from"./index12.js";import{Select as l,SelectContent as b,SelectGroup as g,SelectItem as h,SelectLabel as k,SelectSeparator as q,SelectTrigger as u,SelectValue as v}from"./index13.js";import{PhoneInput as w}from"./index14.js";import{OTPInput as y}from"./index15.js";import{Toggle as z}from"./index16.js";import{
|
|
1
|
+
/* empty css */import{Button as o}from"./index3.js";import{IconButton as i}from"./index4.js";import{MenuIconButton as m}from"./index5.js";import{EmailInput as r}from"./index6.js";import{PasswordInput as p}from"./index7.js";import{DEFAULT_PASSWORD_LABELS as t,DEFAULT_PASSWORD_RULES as d,PASSWORD_MIN_LENGTH as e,PASSWORD_RULES as n,PasswordChecklist as s,isPasswordValid as x}from"./index8.js";import{NumericInput as f}from"./index9.js";import{AlphanumericInput as j}from"./index10.js";import{Checkbox as a}from"./index11.js";import{Radio as c}from"./index12.js";import{Select as l,SelectContent as b,SelectGroup as g,SelectItem as h,SelectLabel as k,SelectSeparator as q,SelectTrigger as u,SelectValue as v}from"./index13.js";import{PhoneInput as w}from"./index14.js";import{OTPInput as y}from"./index15.js";import{Toggle as z}from"./index16.js";import{Textarea as A}from"./index17.js";import{Form as B}from"./index18.js";import{FormField as C}from"./index19.js";import{ControlledEmailInput as D}from"./index20.js";import{ControlledPasswordInput as E}from"./index21.js";import{ControlledCheckbox as F}from"./index22.js";import{ControlledRadio as G}from"./index23.js";import{ControlledToggle as H}from"./index24.js";import{ControlledNumericInput as I}from"./index25.js";import{ControlledAlphanumericInput as J}from"./index26.js";import{ControlledPhoneInput as K}from"./index27.js";import{ControlledOTPInput as L}from"./index28.js";import{ControlledSelect as M}from"./index29.js";import{Tabs as N,TabsContent as O,TabsList as P,TabsTrigger as Q}from"./index30.js";import{Stepper as R}from"./index31.js";import{TopNav as S}from"./index32.js";import{Alert as T}from"./index33.js";import{Card as U,CardContent as V,CardDescription as W,CardFooter as X,CardHeader as Y,CardTitle as Z}from"./index34.js";import{DataTable as $}from"./index35.js";import{Chip as _}from"./index36.js";import{ChipGroup as oo}from"./index37.js";import{Badge as io}from"./index38.js";import{Dialog as mo,DialogClose as ro,DialogCloseButton as po,DialogContent as to,DialogDescription as eo,DialogFooter as no,DialogHeader as so,DialogIcon as xo,DialogOverlay as fo,DialogPortal as jo,DialogTitle as ao,DialogTrigger as co}from"./index39.js";import{Stack as lo}from"./index40.js";import{Container as bo}from"./index41.js";import{Divider as go}from"./index42.js";import{AuthLayout as ho}from"./index43.js";import{SimpleHeader as ko}from"./index44.js";import{Grid as qo}from"./index45.js";import{Text as uo}from"./index46.js";import{Heading as vo}from"./index47.js";import{Link as wo}from"./index48.js";import{Spinner as yo}from"./index49.js";import{AiLoader as zo}from"./index50.js";import{cn as Ao,generateId as Bo}from"./index51.js";import{defaultValidation as Co,normalizeWhitespace as Do,textValidators as Eo}from"./index52.js";import{Icon as Fo,availableIcons as Go,figmaIconMapping as Ho,getRadixIconName as Io}from"@adam-milo/icons";import{allCountries as Jo,commonCountries as Ko,defaultCountries as Lo,defaultPhoneMask as Mo,formatPhoneNumber as No,getCountriesByDialCode as Oo,getCountryByCode as Po,getCountryByDialCode as Qo,getPhoneDigits as Ro,getPhoneMask as So,isValidPhoneLength as To,phoneMasks as Uo,searchCountries as Vo}from"./index53.js";import{getResponsiveBase as Wo,getResponsiveClasses as Xo,getResponsiveSizeClasses as Yo,isResponsiveObject as Zo}from"./index54.js";export{zo as AiLoader,T as Alert,j as AlphanumericInput,ho as AuthLayout,io as Badge,o as Button,U as Card,V as CardContent,W as CardDescription,X as CardFooter,Y as CardHeader,Z as CardTitle,a as Checkbox,_ as Chip,oo as ChipGroup,bo as Container,J as ControlledAlphanumericInput,F as ControlledCheckbox,D as ControlledEmailInput,I as ControlledNumericInput,L as ControlledOTPInput,E as ControlledPasswordInput,K as ControlledPhoneInput,G as ControlledRadio,M as ControlledSelect,H as ControlledToggle,t as DEFAULT_PASSWORD_LABELS,d as DEFAULT_PASSWORD_RULES,$ as DataTable,mo as Dialog,ro as DialogClose,po as DialogCloseButton,to as DialogContent,eo as DialogDescription,no as DialogFooter,so as DialogHeader,xo as DialogIcon,fo as DialogOverlay,jo as DialogPortal,ao as DialogTitle,co as DialogTrigger,go as Divider,r as EmailInput,B as Form,C as FormField,qo as Grid,vo as Heading,Fo as Icon,i as IconButton,wo as Link,m as MenuIconButton,f as NumericInput,y as OTPInput,e as PASSWORD_MIN_LENGTH,n as PASSWORD_RULES,s as PasswordChecklist,p as PasswordInput,w as PhoneInput,c as Radio,l as Select,b as SelectContent,g as SelectGroup,h as SelectItem,k as SelectLabel,q as SelectSeparator,u as SelectTrigger,v as SelectValue,ko as SimpleHeader,yo as Spinner,lo as Stack,R as Stepper,N as Tabs,O as TabsContent,P as TabsList,Q as TabsTrigger,uo as Text,A as Textarea,z as Toggle,S as TopNav,Jo as allCountries,Go as availableIcons,Ao as cn,Ko as commonCountries,Lo as defaultCountries,Mo as defaultPhoneMask,Co as defaultValidation,Ho as figmaIconMapping,No as formatPhoneNumber,Bo as generateId,Oo as getCountriesByDialCode,Po as getCountryByCode,Qo as getCountryByDialCode,Ro as getPhoneDigits,So as getPhoneMask,Io as getRadixIconName,Wo as getResponsiveBase,Xo as getResponsiveClasses,Yo as getResponsiveSizeClasses,x as isPasswordValid,Zo as isResponsiveObject,To as isValidPhoneLength,Do as normalizeWhitespace,Uo as phoneMasks,Vo as searchCountries,Eo as textValidators};
|
package/dist/index10.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("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index58.cjs"),n=require("./index60.cjs"),l=t.forwardRef(({allowHyphen:l=!1,allowUnderscore:r=!1,allowSpace:s=!1,minLength:u,maxLength:i,validate:c,onChange:o,"data-cy":p,"data-testid":d,...h},g)=>{const m=t.useRef(null),f=n.useMergedRef(g,m),v=t.useMemo(()=>{let e="^[a-zA-Z0-9";return l&&(e+="\\-"),r&&(e+="_"),s&&(e+=" "),e+="]*$",new RegExp(e)},[l,r,s]),x=t.useMemo(()=>{let e="[a-zA-Z0-9";return l&&(e+="\\-"),r&&(e+="_"),s&&(e+=" "),e+="]",new RegExp(e)},[l,r,s]),y=t.useCallback(e=>{if(e){if(!v.test(e)){let e="letters and numbers";const t=[];return l&&t.push("hyphens"),r&&t.push("underscores"),s&&t.push("spaces"),t.length>0&&(e+=`, ${t.join(", ")}`),`Only ${e} are allowed`}return void 0!==u&&e.length<u?`Must be at least ${u} characters`:void 0!==i&&e.length>i?`Must be at most ${i} characters`:void 0}},[v,u,i,l,r,s]),b=t.useCallback(e=>c?y(e)||c(e):y(e),[y,c]),[j,w]=t.useState(null);t.useEffect(()=>{null!==j&&m.current&&(m.current.setSelectionRange(j,j),w(null))},[h.value,j]);const R=t.useCallback(e=>{const t=e.target,a=t.value,n=t.selectionStart||0,l=a.split("").filter(e=>x.test(e)).join(""),r=n-a.slice(0,n).split("").filter(e=>!x.test(e)).length;t.value=l;void 0!==h.value?w(r):t.setSelectionRange(r,r),o?.(e)},[x,o,h.value]);return e.jsx(a.Input,{ref:f,type:"text",minLength:u,maxLength:i,validate:b,onChange:R,"data-cy":p||"alphanumeric-input","data-testid":d||"alphanumeric-input",...h})});l.displayName="AlphanumericInput",exports.AlphanumericInput=l;
|
package/dist/index10.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{forwardRef as t,useRef as n,useMemo as a,useCallback as l,useState as r,useEffect as s}from"react";import{Input as i}from"./
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as t,useRef as n,useMemo as a,useCallback as l,useState as r,useEffect as s}from"react";import{Input as i}from"./index58.js";import{useMergedRef as o}from"./index60.js";const u=t(({allowHyphen:t=!1,allowUnderscore:u=!1,allowSpace:c=!1,minLength:p,maxLength:h,validate:d,onChange:m,"data-cy":g,"data-testid":v,...f},x)=>{const y=n(null),w=o(x,y),j=a(()=>{let e="^[a-zA-Z0-9";return t&&(e+="\\-"),u&&(e+="_"),c&&(e+=" "),e+="]*$",new RegExp(e)},[t,u,c]),$=a(()=>{let e="[a-zA-Z0-9";return t&&(e+="\\-"),u&&(e+="_"),c&&(e+=" "),e+="]",new RegExp(e)},[t,u,c]),L=l(e=>{if(e){if(!j.test(e)){let e="letters and numbers";const n=[];return t&&n.push("hyphens"),u&&n.push("underscores"),c&&n.push("spaces"),n.length>0&&(e+=`, ${n.join(", ")}`),`Only ${e} are allowed`}return void 0!==p&&e.length<p?`Must be at least ${p} characters`:void 0!==h&&e.length>h?`Must be at most ${h} characters`:void 0}},[j,p,h,t,u,c]),R=l(e=>d?L(e)||d(e):L(e),[L,d]),[S,b]=r(null);s(()=>{null!==S&&y.current&&(y.current.setSelectionRange(S,S),b(null))},[f.value,S]);const A=l(e=>{const t=e.target,n=t.value,a=t.selectionStart||0,l=n.split("").filter(e=>$.test(e)).join(""),r=a-n.slice(0,a).split("").filter(e=>!$.test(e)).length;t.value=l;void 0!==f.value?b(r):t.setSelectionRange(r,r),m?.(e)},[$,m,f.value]);/* @__PURE__ */
|
|
2
2
|
return e(i,{ref:w,type:"text",minLength:p,maxLength:h,validate:R,onChange:A,"data-cy":g||"alphanumeric-input","data-testid":v||"alphanumeric-input",...f})});u.displayName="AlphanumericInput";export{u as AlphanumericInput};
|
package/dist/index100.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),n=require("./index94.cjs"),t=require("./index107.cjs");function r(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}return n.default=e,Object.freeze(n)}const o=r(e);var i=e=>{const{present:r,children:i}=e,s=function(e){const[n,r]=o.useState(),i=o.useRef(null),s=o.useRef(e),c=o.useRef("none"),a=e?"mounted":"unmounted",[d,l]=function(e,n){return o.useReducer((e,t)=>n[e][t]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const e=u(i.current);c.current="mounted"===d?e:"none"},[d]),t.useLayoutEffect(()=>{const n=i.current,t=s.current;if(t!==e){const r=c.current,o=u(n);if(e)l("MOUNT");else if("none"===o||"none"===n?.display)l("UNMOUNT");else{l(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,l]),t.useLayoutEffect(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const o=u(i.current).includes(CSS.escape(r.animationName));if(r.target===n&&o&&(l("ANIMATION_END"),!s.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},o=e=>{e.target===n&&(c.current=u(i.current))};return n.addEventListener("animationstart",o),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}l("ANIMATION_END")},[n,l]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:o.useCallback(e=>{i.current=e?getComputedStyle(e):null,r(e)},[])}}(r),c="function"==typeof i?i({present:s.isPresent}):o.Children.only(i),a=n.useComposedRefs(s.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(c));return"function"==typeof i||s.isPresent?o.cloneElement(c,{ref:a}):null};function u(e){return e?.animationName||"none"}i.displayName="Presence",exports.Presence=i;
|
package/dist/index100.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{
|
|
1
|
+
import*as e from"react";import{useComposedRefs as n}from"./index94.js";import{useLayoutEffect as t}from"./index107.js";var r=r=>{const{present:i,children:u}=r,s=function(n){const[r,i]=e.useState(),u=e.useRef(null),s=e.useRef(n),a=e.useRef("none"),c=n?"mounted":"unmounted",[d,m]=function(n,t){return e.useReducer((e,n)=>t[e][n]??e,n)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=o(u.current);a.current="mounted"===d?e:"none"},[d]),t(()=>{const e=u.current,t=s.current;if(t!==n){const r=a.current,i=o(e);if(n)m("MOUNT");else if("none"===i||"none"===e?.display)m("UNMOUNT");else{m(t&&r!==i?"ANIMATION_OUT":"UNMOUNT")}s.current=n}},[n,m]),t(()=>{if(r){let e;const n=r.ownerDocument.defaultView??window,t=t=>{const i=o(u.current).includes(CSS.escape(t.animationName));if(t.target===r&&i&&(m("ANIMATION_END"),!s.current)){const t=r.style.animationFillMode;r.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=t)})}},i=e=>{e.target===r&&(a.current=o(u.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{n.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}m("ANIMATION_END")},[r,m]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:e.useCallback(e=>{u.current=e?getComputedStyle(e):null,i(e)},[])}}(i),a="function"==typeof u?u({present:s.isPresent}):e.Children.only(u),c=n(s.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof u||s.isPresent?e.cloneElement(a,{ref:c}):null};function o(e){return e?.animationName||"none"}r.displayName="Presence";export{r as Presence};
|
package/dist/index101.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("react-dom"),r=require("./index102.cjs"),i=require("react/jsx-runtime");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const o=n(e),c=n(t);var u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=r.createSlot(`Primitive.${t}`),c=o.forwardRef((e,r)=>{const{asChild:o,...c}=e,u=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...c,ref:r})});return c.displayName=`Primitive.${t}`,{...e,[t]:c}},{});exports.Primitive=u,exports.dispatchDiscreteCustomEvent=function(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))};
|
package/dist/index101.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as r from"react";import{
|
|
1
|
+
import*as r from"react";import*as i from"react-dom";import{createSlot as t}from"./index102.js";import{jsx as e}from"react/jsx-runtime";var o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((i,o)=>{const n=t(`Primitive.${o}`),a=r.forwardRef((r,i)=>{const{asChild:t,...a}=r,m=t?n:o;return"undefined"!=typeof window&&(window[/* @__PURE__ */Symbol.for("radix-ui")]=!0),/* @__PURE__ */e(m,{...a,ref:i})});return a.displayName=`Primitive.${o}`,{...i,[o]:a}},{});function n(r,t){r&&i.flushSync(()=>r.dispatchEvent(t))}export{o as Primitive,n as dispatchDiscreteCustomEvent};
|
package/dist/index102.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("./index94.cjs"),t=require("react/jsx-runtime");function n(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}return r.default=e,Object.freeze(r)}const o=n(e);function i(e){const t=o.forwardRef((e,t)=>{const{children:n,...i}=e;if(o.isValidElement(n)){const e=function(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;if(t)return e.ref;if(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(n),l=function(e,r){const t={...r};for(const n in r){const o=e[n],i=r[n];/^on[A-Z]/.test(n)?o&&i?t[n]=(...e)=>{const r=i(...e);return o(...e),r}:o&&(t[n]=o):"style"===n?t[n]={...o,...i}:"className"===n&&(t[n]=[o,i].filter(Boolean).join(" "))}return{...e,...t}}(i,n.props);return n.type!==o.Fragment&&(l.ref=t?r.composeRefs(t,e):e),o.cloneElement(n,l)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var l=Symbol("radix.slottable");function c(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}exports.createSlot=function(e){const r=i(e),n=o.forwardRef((e,n)=>{const{children:i,...l}=e,s=o.Children.toArray(i),a=s.find(c);if(a){const e=a.props.children,i=s.map(r=>r===a?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:r);return t.jsx(r,{...l,ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,i):null})}return t.jsx(r,{...l,ref:n,children:i})});return n.displayName=`${e}.Slot`,n},exports.createSlottable=function(e){const r=({children:e})=>t.jsx(t.Fragment,{children:e});return r.displayName=`${e}.Slottable`,r.__radixId=l,r};
|
package/dist/index102.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
import*as e from"react";function
|
|
1
|
+
import*as n from"react";import{composeRefs as r}from"./index94.js";import{jsx as e,Fragment as t}from"react/jsx-runtime";function i(r){const t=/* @__PURE__ */o(r),i=n.forwardRef((r,i)=>{const{children:o,...l}=r,c=n.Children.toArray(o),a=c.find(s);if(a){const r=a.props.children,o=c.map(e=>e===a?n.Children.count(r)>1?n.Children.only(null):n.isValidElement(r)?r.props.children:null:e);/* @__PURE__ */
|
|
2
|
+
return e(t,{...l,ref:i,children:n.isValidElement(r)?n.cloneElement(r,void 0,o):null})}/* @__PURE__ */
|
|
3
|
+
return e(t,{...l,ref:i,children:o})});return i.displayName=`${r}.Slot`,i}function o(e){const t=n.forwardRef((e,t)=>{const{children:i,...o}=e;if(n.isValidElement(i)){const e=function(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,e=r&&"isReactWarning"in r&&r.isReactWarning;if(e)return n.ref;if(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,e=r&&"isReactWarning"in r&&r.isReactWarning,e)return n.props.ref;return n.props.ref||n.ref}(i),l=function(n,r){const e={...r};for(const t in r){const i=n[t],o=r[t];/^on[A-Z]/.test(t)?i&&o?e[t]=(...n)=>{const r=o(...n);return i(...n),r}:i&&(e[t]=i):"style"===t?e[t]={...i,...o}:"className"===t&&(e[t]=[i,o].filter(Boolean).join(" "))}return{...n,...e}}(o,i.props);return i.type!==n.Fragment&&(l.ref=t?r(t,e):e),n.cloneElement(i,l)}return n.Children.count(i)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var l=/* @__PURE__ */Symbol("radix.slottable");function c(n){const r=({children:n})=>/* @__PURE__ */e(t,{children:n});return r.displayName=`${n}.Slottable`,r.__radixId=l,r}function s(r){return n.isValidElement(r)&&"function"==typeof r.type&&"__radixId"in r.type&&r.type.__radixId===l}export{i as createSlot,c as createSlottable};
|
package/dist/index103.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./index107.cjs");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const n=r(e);var o=n[" useInsertionEffect ".trim().toString()]||t.useLayoutEffect;exports.useControllableState=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:u}){const[c,f,s]=function({defaultProp:e,onChange:t}){const[r,u]=n.useState(e),c=n.useRef(r),f=n.useRef(t);return o(()=>{f.current=t},[t]),n.useEffect(()=>{c.current!==r&&(f.current?.(r),c.current=r)},[r,c]),[r,u,f]}({defaultProp:t,onChange:r}),i=void 0!==e,a=i?e:c;{const t=n.useRef(void 0!==e);n.useEffect(()=>{const e=t.current;if(e!==i){}t.current=i},[i,u])}const l=n.useCallback(t=>{if(i){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&s.current?.(r)}else f(t)},[i,e,f,s]);return[a,l]};
|
package/dist/index103.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{
|
|
1
|
+
import*as e from"react";import{useLayoutEffect as t}from"./index107.js";var r=e[" useInsertionEffect ".trim().toString()]||t;function n({prop:t,defaultProp:n,onChange:o=()=>{},caller:u}){const[c,f,s]=function({defaultProp:t,onChange:n}){const[o,u]=e.useState(t),c=e.useRef(o),f=e.useRef(n);return r(()=>{f.current=n},[n]),e.useEffect(()=>{c.current!==o&&(f.current?.(o),c.current=o)},[o,c]),[o,u,f]}({defaultProp:n,onChange:o}),a=void 0!==t,i=a?t:c;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==a){}r.current=a},[a,u])}const p=e.useCallback(e=>{if(a){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else f(e)},[a,t,f,s]);return[i,p]}export{n as useControllableState};
|
package/dist/index104.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("./index101.cjs"),t=require("react/jsx-runtime");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}return r.default=e,Object.freeze(r)}const i=o(e);var n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=i.forwardRef((e,o)=>t.jsx(r.Primitive.span,{...e,ref:o,style:{...n,...e.style}}));a.displayName="VisuallyHidden";var s=a;exports.Root=s,exports.VISUALLY_HIDDEN_STYLES=n,exports.VisuallyHidden=a;
|
package/dist/index104.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as r from"react";import{Primitive as e}from"./index101.js";import{jsx as a}from"react/jsx-runtime";var i=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),o=r.forwardRef((r,o)=>/* @__PURE__ */a(e.span,{...r,ref:o,style:{...i,...r.style}}));o.displayName="VisuallyHidden";var t=o;export{t as Root,i as VISUALLY_HIDDEN_STYLES,o as VisuallyHidden};
|
package/dist/index105.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const t=e(require("react"));exports.useCallbackRef=function(e){const r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])};
|
package/dist/index105.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as e from"react";function r(r){const t=e.useRef(r);return e.useEffect(()=>{t.current=r}),e.useMemo(()=>(...e)=>t.current?.(...e),[])}export{r as useCallbackRef};
|
package/dist/index106.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./index105.cjs");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const n=r(e);exports.useEscapeKeydown=function(e,r=globalThis?.document){const o=t.useCallbackRef(e);n.useEffect(()=>{const e=e=>{"Escape"===e.key&&o(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[o,r])};
|
package/dist/index106.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as
|
|
2
|
-
return i(e.svg,{...s,ref:o,width:a,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:r.asChild?t:/* @__PURE__ */i("polygon",{points:"0,0 30,0 15,10"})})});o.displayName="Arrow";var t=o;export{o as Arrow,t as Root};
|
|
1
|
+
import*as e from"react";import{useCallbackRef as t}from"./index105.js";function n(n,o=globalThis?.document){const r=t(n);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return o.addEventListener("keydown",e,{capture:!0}),()=>o.removeEventListener("keydown",e,{capture:!0})},[r,o])}export{n as useEscapeKeydown};
|
package/dist/index107.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const t=e(require("react"));var r=globalThis?.document?t.useLayoutEffect:()=>{};exports.useLayoutEffect=r;
|
package/dist/index107.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as t from"react";var a=globalThis?.document?t.useLayoutEffect:()=>{};export{a as useLayoutEffect};
|
package/dist/index108.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index111.cjs"),t=require("react"),r=require("react-dom");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const o=n(t),i=n(r);var u="undefined"!=typeof document?t.useLayoutEffect:function(){};function s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!s(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!s(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function f(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){const r=f(e);return Math.round(t*r)/r}function l(e){const t=o.useRef(e);return u(()=>{t.current=e}),t}const a=t=>({name:"arrow",options:t,fn(r){const{element:n,padding:o}="function"==typeof t?t(r):t;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?e.arrow({element:n.current,padding:o}).fn(r):{}:n?e.arrow({element:n,padding:o}).fn(r):{};var i}});exports.autoUpdate=e.autoUpdate,exports.computePosition=e.computePosition,exports.platform=e.platform,exports.arrow=(e,t)=>({...a(e),options:[e,t]}),exports.flip=(t,r)=>({...e.flip(t),options:[t,r]}),exports.hide=(t,r)=>({...e.hide(t),options:[t,r]}),exports.limitShift=(t,r)=>({...e.limitShift(t),options:[t,r]}),exports.offset=(t,r)=>({...e.offset(t),options:[t,r]}),exports.shift=(t,r)=>({...e.shift(t),options:[t,r]}),exports.size=(t,r)=>({...e.size(t),options:[t,r]}),exports.useFloating=function(t){void 0===t&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:p,elements:{reference:d,floating:m}={},transform:g=!0,whileElementsMounted:y,open:w}=t,[x,h]=o.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[b,P]=o.useState(a);s(b,a)||P(a);const[S,O]=o.useState(null),[j,M]=o.useState(null),R=o.useCallback(e=>{e!==q.current&&(q.current=e,O(e))},[]),v=o.useCallback(e=>{e!==z.current&&(z.current=e,M(e))},[]),k=d||S,C=m||j,q=o.useRef(null),z=o.useRef(null),D=o.useRef(x),A=null!=y,E=l(y),F=l(p),T=l(w),U=o.useCallback(()=>{if(!q.current||!z.current)return;const t={placement:r,strategy:n,middleware:b};F.current&&(t.platform=F.current),e.computePosition(q.current,z.current,t).then(e=>{const t={...e,isPositioned:!1!==T.current};$.current&&!s(D.current,t)&&(D.current=t,i.flushSync(()=>{h(t)}))})},[b,r,n,F,T]);u(()=>{!1===w&&D.current.isPositioned&&(D.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[w]);const $=o.useRef(!1);u(()=>($.current=!0,()=>{$.current=!1}),[]),u(()=>{if(k&&(q.current=k),C&&(z.current=C),k&&C){if(E.current)return E.current(k,C,U);U()}},[k,C,U,E,A]);const L=o.useMemo(()=>({reference:q,floating:z,setReference:R,setFloating:v}),[R,v]),V=o.useMemo(()=>({reference:k,floating:C}),[k,C]),_=o.useMemo(()=>{const e={position:n,left:0,top:0};if(!V.floating)return e;const t=c(V.floating,x.x),r=c(V.floating,x.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...f(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,g,V.floating,x.x,x.y]);return o.useMemo(()=>({...x,update:U,refs:L,elements:V,floatingStyles:_}),[x,U,L,V,_])};
|
package/dist/index108.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computePosition as
|
|
1
|
+
import{computePosition as e,offset as t,shift as n,flip as r,size as o,hide as i,arrow as u,limitShift as s}from"./index111.js";import{autoUpdate as f,platform as a}from"./index111.js";import*as c from"react";import{useLayoutEffect as l}from"react";import*as p from"react-dom";var m="undefined"!=typeof document?l:function(){};function d(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!d(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!d(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function g(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function y(e,t){const n=g(e);return Math.round(t*n)/n}function w(e){const t=c.useRef(e);return m(()=>{t.current=e}),t}function h(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:u,floating:s}={},transform:f=!0,whileElementsMounted:a,open:l}=t,[h,x]=c.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[S,b]=c.useState(o);d(S,o)||b(o);const[P,R]=c.useState(null),[M,j]=c.useState(null),k=c.useCallback(e=>{e!==A.current&&(A.current=e,R(e))},[]),v=c.useCallback(e=>{e!==D.current&&(D.current=e,j(e))},[]),C=u||P,O=s||M,A=c.useRef(null),D=c.useRef(null),$=c.useRef(h),z=null!=a,E=w(a),F=w(i),V=w(l),_=c.useCallback(()=>{if(!A.current||!D.current)return;const t={placement:n,strategy:r,middleware:S};F.current&&(t.platform=F.current),e(A.current,D.current,t).then(e=>{const t={...e,isPositioned:!1!==V.current};q.current&&!d($.current,t)&&($.current=t,p.flushSync(()=>{x(t)}))})},[S,n,r,F,V]);m(()=>{!1===l&&$.current.isPositioned&&($.current.isPositioned=!1,x(e=>({...e,isPositioned:!1})))},[l]);const q=c.useRef(!1);m(()=>(q.current=!0,()=>{q.current=!1}),[]),m(()=>{if(C&&(A.current=C),O&&(D.current=O),C&&O){if(E.current)return E.current(C,O,_);_()}},[C,O,_,E,z]);const B=c.useMemo(()=>({reference:A,floating:D,setReference:k,setFloating:v}),[k,v]),G=c.useMemo(()=>({reference:C,floating:O}),[C,O]),H=c.useMemo(()=>{const e={position:r,left:0,top:0};if(!G.floating)return e;const t=y(G.floating,h.x),n=y(G.floating,h.y);return f?{...e,transform:"translate("+t+"px, "+n+"px)",...g(G.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,f,G.floating,h.x,h.y]);return c.useMemo(()=>({...h,update:_,refs:B,elements:G,floatingStyles:H}),[h,_,B,G,H])}const x=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?u({element:n.current,padding:r}).fn(t):{}:n?u({element:n,padding:r}).fn(t):{};var o}}),S=(e,n)=>({...t(e),options:[e,n]}),b=(e,t)=>({...n(e),options:[e,t]}),P=(e,t)=>({...s(e),options:[e,t]}),R=(e,t)=>({...r(e),options:[e,t]}),M=(e,t)=>({...o(e),options:[e,t]}),j=(e,t)=>({...i(e),options:[e,t]}),k=(e,t)=>({...x(e),options:[e,t]});export{k as arrow,f as autoUpdate,e as computePosition,R as flip,j as hide,P as limitShift,S as offset,a as platform,b as shift,M as size,h as useFloating};
|
package/dist/index109.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("./index101.cjs"),t=require("react/jsx-runtime");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}return r.default=e,Object.freeze(r)}var i=o(e).forwardRef((e,o)=>{const{children:i,width:n=10,height:s=5,...c}=e;return t.jsx(r.Primitive.svg,{...c,ref:o,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?i:t.jsx("polygon",{points:"0,0 30,0 15,10"})})});i.displayName="Arrow";var n=i;exports.Arrow=i,exports.Root=n;
|
package/dist/index109.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as r from"react";import{Primitive as e}from"./index101.js";import{jsx as i}from"react/jsx-runtime";var o=r.forwardRef((r,o)=>{const{children:t,width:a=10,height:n=5,...s}=r;/* @__PURE__ */
|
|
2
|
+
return i(e.svg,{...s,ref:o,width:a,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:r.asChild?t:/* @__PURE__ */i("polygon",{points:"0,0 30,0 15,10"})})});o.displayName="Arrow";var t=o;export{o as Arrow,t as Root};
|
package/dist/index11.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),a=require("./index51.cjs"),t=require("./index61.cjs"),s=r.forwardRef(({label:s,error:d,helperText:c,indeterminate:i=!1,className:l,id:n,required:o,disabled:u,checked:p,"data-cy":b,"data-testid":y,...h},x)=>{const m=r.useId(),k=n||m,S=`${k}-error`,$=`${k}-helper`,f=b||"checkbox",j=y||"checkbox",N=r.useRef(null),q=r.useCallback(e=>{N.current=e,x&&("function"==typeof x?x(e):"current"in x&&(x.current=e))},[x]);r.useEffect(()=>{N.current&&(N.current.indeterminate=i)},[i]);const v=s&&o&&!s.includes("*")?`${s} *`:s;return e.jsxs("div",{className:a.cn(t.wrapperStyles,u&&t.wrapperDisabledStyles),"data-cy":`${f}-wrapper`,"data-testid":`${j}-wrapper`,children:[e.jsxs("div",{className:t.containerStyles,children:[e.jsx("input",{ref:q,id:k,type:"checkbox",checked:p,className:a.cn(t.inputBaseStyles,d&&t.inputErrorStyles,"checkbox-checkmark",l),"aria-invalid":d?"true":"false","aria-required":o?"true":void 0,"aria-describedby":d?S:c?$:void 0,"data-cy":f,"data-testid":j,"data-indeterminate":i?"true":void 0,disabled:u,required:o,...h}),s&&e.jsx("label",{htmlFor:k,className:a.cn(t.labelStyles,u&&t.labelDisabledStyles),"data-cy":`${f}-label`,"data-testid":`${j}-label`,children:v})]}),d&&e.jsx("span",{id:S,className:t.errorMsgStyles,role:"alert","data-cy":`${f}-error`,"data-testid":`${j}-error`,children:d}),c&&!d&&e.jsx("span",{id:$,className:t.helperMsgStyles,"data-cy":`${f}-helper`,"data-testid":`${j}-helper`,children:c})]})});s.displayName="Checkbox",exports.Checkbox=s;
|
package/dist/index11.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as a,useId as t,useRef as d,useCallback as i,useEffect as c}from"react";import{cn as l}from"./
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as a,useId as t,useRef as d,useCallback as i,useEffect as c}from"react";import{cn as l}from"./index51.js";import{containerStyles as s,errorMsgStyles as n,helperMsgStyles as o,inputErrorStyles as m,inputBaseStyles as p,labelDisabledStyles as h,labelStyles as u,wrapperDisabledStyles as b,wrapperStyles as $}from"./index61.js";const x=a(({label:a,error:x,helperText:y,indeterminate:k=!1,className:f,id:N,required:v,disabled:j,checked:q,"data-cy":w,"data-testid":C,...F},T)=>{const g=t(),z=N||g,A=`${z}-error`,B=`${z}-helper`,D=w||"checkbox",E=C||"checkbox",G=d(null),H=i(e=>{G.current=e,T&&("function"==typeof T?T(e):"current"in T&&(T.current=e))},[T]);c(()=>{G.current&&(G.current.indeterminate=k)},[k]);const I=a&&v&&!a.includes("*")?`${a} *`:a;/* @__PURE__ */
|
|
2
2
|
return e("div",{className:l($,j&&b),"data-cy":`${D}-wrapper`,"data-testid":`${E}-wrapper`,children:[
|
|
3
3
|
/* @__PURE__ */e("div",{className:s,children:[
|
|
4
4
|
/* @__PURE__ */r("input",{ref:H,id:z,type:"checkbox",checked:q,className:l(p,x&&m,"checkbox-checkmark",f),"aria-invalid":x?"true":"false","aria-required":v?"true":void 0,"aria-describedby":x?A:y?B:void 0,"data-cy":D,"data-testid":E,"data-indeterminate":k?"true":void 0,disabled:j,required:v,...F}),a&&/* @__PURE__ */r("label",{htmlFor:z,className:l(u,j&&h),"data-cy":`${D}-label`,"data-testid":`${E}-label`,children:I})]}),x&&/* @__PURE__ */r("span",{id:A,className:n,role:"alert","data-cy":`${D}-error`,"data-testid":`${E}-error`,children:x}),y&&!x&&/* @__PURE__ */r("span",{id:B,className:o,"data-cy":`${D}-helper`,"data-testid":`${E}-helper`,children:y})]})});x.displayName="Checkbox";export{x as Checkbox};
|
package/dist/index110.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./index107.cjs");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const o=r(e);exports.useSize=function(e){const[r,i]=o.useState(void 0);return t.useLayoutEffect(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,n;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,n=t.blockSize}else o=e.offsetWidth,n=e.offsetHeight;i({width:o,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),r};
|
package/dist/index110.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import*as e from"react";import{useLayoutEffect as r}from"./index107.js";function t(t){const[i,o]=e.useState(void 0);return r(()=>{if(t){o({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let i,s;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,s=t.blockSize}else i=t.offsetWidth,s=t.offsetHeight;o({width:i,height:s})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}o(void 0)},[t]),i}export{t as useSize};
|
package/dist/index111.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index112.cjs"),e=require("./index113.cjs"),n=require("./index114.cjs");function o(t){const o=n.getComputedStyle(t);let i=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const l=n.isHTMLElement(t),s=l?t.offsetWidth:i,c=l?t.offsetHeight:r,f=e.round(i)!==s||e.round(r)!==c;return f&&(i=s,r=c),{width:i,height:r,$:f}}function i(t){return n.isElement(t)?t:t.contextElement}function r(t){const r=i(t);if(!n.isHTMLElement(r))return e.createCoords(1);const l=r.getBoundingClientRect(),{width:s,height:c,$:f}=o(r);let u=(f?e.round(l.width):l.width)/s,a=(f?e.round(l.height):l.height)/c;return u&&Number.isFinite(u)||(u=1),a&&Number.isFinite(a)||(a=1),{x:u,y:a}}const l=e.createCoords(0);function s(t){const e=n.getWindow(t);return n.isWebKit()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:l}function c(t,o,l,c){void 0===o&&(o=!1),void 0===l&&(l=!1);const f=t.getBoundingClientRect(),u=i(t);let a=e.createCoords(1);o&&(c?n.isElement(c)&&(a=r(c)):a=r(t));const d=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==n.getWindow(t))&&e}(u,l,c)?s(u):e.createCoords(0);let g=(f.left+d.x)/a.x,h=(f.top+d.y)/a.y,m=f.width/a.x,p=f.height/a.y;if(u){const t=n.getWindow(u),e=c&&n.isElement(c)?n.getWindow(c):c;let o=t,i=n.getFrameElement(o);for(;i&&c&&e!==o;){const t=r(i),e=i.getBoundingClientRect(),l=n.getComputedStyle(i),s=e.left+(i.clientLeft+parseFloat(l.paddingLeft))*t.x,c=e.top+(i.clientTop+parseFloat(l.paddingTop))*t.y;g*=t.x,h*=t.y,m*=t.x,p*=t.y,g+=s,h+=c,o=n.getWindow(i),i=n.getFrameElement(o)}}return e.rectToClientRect({width:m,height:p,x:g,y:h})}function f(t,e){const o=n.getNodeScroll(t).scrollLeft;return e?e.left+o:c(n.getDocumentElement(t)).left+o}function u(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-f(t,n),y:n.top+e.scrollTop}}const a=new Set(["absolute","fixed"]);function d(t,o,i){let l;if("viewport"===o)l=function(t,e){const o=n.getWindow(t),i=n.getDocumentElement(t),r=o.visualViewport;let l=i.clientWidth,s=i.clientHeight,c=0,u=0;if(r){l=r.width,s=r.height;const t=n.isWebKit();(!t||t&&"fixed"===e)&&(c=r.offsetLeft,u=r.offsetTop)}const a=f(i);if(a<=0){const t=i.ownerDocument,e=t.body,n=getComputedStyle(e),o="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(i.clientWidth-e.clientWidth-o);r<=25&&(l-=r)}else a<=25&&(l+=a);return{width:l,height:s,x:c,y:u}}(t,i);else if("document"===o)l=function(t){const o=n.getDocumentElement(t),i=n.getNodeScroll(t),r=t.ownerDocument.body,l=e.max(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),s=e.max(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let c=-i.scrollLeft+f(t);const u=-i.scrollTop;return"rtl"===n.getComputedStyle(r).direction&&(c+=e.max(o.clientWidth,r.clientWidth)-l),{width:l,height:s,x:c,y:u}}(n.getDocumentElement(t));else if(n.isElement(o))l=function(t,o){const i=c(t,!0,"fixed"===o),l=i.top+t.clientTop,s=i.left+t.clientLeft,f=n.isHTMLElement(t)?r(t):e.createCoords(1);return{width:t.clientWidth*f.x,height:t.clientHeight*f.y,x:s*f.x,y:l*f.y}}(o,i);else{const e=s(t);l={x:o.x-e.x,y:o.y-e.y,width:o.width,height:o.height}}return e.rectToClientRect(l)}function g(t,e){const o=n.getParentNode(t);return!(o===e||!n.isElement(o)||n.isLastTraversableNode(o))&&("fixed"===n.getComputedStyle(o).position||g(o,e))}function h(t,o,i){const r=n.isHTMLElement(o),l=n.getDocumentElement(o),s="fixed"===i,a=c(t,!0,s,o);let d={scrollLeft:0,scrollTop:0};const g=e.createCoords(0);function h(){g.x=f(l)}if(r||!r&&!s)if(("body"!==n.getNodeName(o)||n.isOverflowElement(l))&&(d=n.getNodeScroll(o)),r){const t=c(o,!0,s,o);g.x=t.x+o.clientLeft,g.y=t.y+o.clientTop}else l&&h();s&&!r&&l&&h();const m=!l||r||s?e.createCoords(0):u(l,d);return{x:a.left+d.scrollLeft-g.x-m.x,y:a.top+d.scrollTop-g.y-m.y,width:a.width,height:a.height}}function m(t){return"static"===n.getComputedStyle(t).position}function p(t,e){if(!n.isHTMLElement(t)||"fixed"===n.getComputedStyle(t).position)return null;if(e)return e(t);let o=t.offsetParent;return n.getDocumentElement(t)===o&&(o=o.ownerDocument.body),o}function x(t,e){const o=n.getWindow(t);if(n.isTopLayer(t))return o;if(!n.isHTMLElement(t)){let e=n.getParentNode(t);for(;e&&!n.isLastTraversableNode(e);){if(n.isElement(e)&&!m(e))return e;e=n.getParentNode(e)}return o}let i=p(t,e);for(;i&&n.isTableElement(i)&&m(i);)i=p(i,e);return i&&n.isLastTraversableNode(i)&&m(i)&&!n.isContainingBlock(i)?o:i||n.getContainingBlock(t)||o}const y={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:o,rect:i,offsetParent:l,strategy:s}=t;const f="fixed"===s,a=n.getDocumentElement(l),d=!!o&&n.isTopLayer(o.floating);if(l===a||d&&f)return i;let g={scrollLeft:0,scrollTop:0},h=e.createCoords(1);const m=e.createCoords(0),p=n.isHTMLElement(l);if((p||!p&&!f)&&(("body"!==n.getNodeName(l)||n.isOverflowElement(a))&&(g=n.getNodeScroll(l)),n.isHTMLElement(l))){const t=c(l);h=r(l),m.x=t.x+l.clientLeft,m.y=t.y+l.clientTop}const x=!a||p||f?e.createCoords(0):u(a,g);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-g.scrollLeft*h.x+m.x+x.x,y:i.y*h.y-g.scrollTop*h.y+m.y+x.y}},getDocumentElement:n.getDocumentElement,getClippingRect:function(t){let{element:o,boundary:i,rootBoundary:r,strategy:l}=t;const s=[..."clippingAncestors"===i?n.isTopLayer(o)?[]:function(t,e){const o=e.get(t);if(o)return o;let i=n.getOverflowAncestors(t,[],!1).filter(t=>n.isElement(t)&&"body"!==n.getNodeName(t)),r=null;const l="fixed"===n.getComputedStyle(t).position;let s=l?n.getParentNode(t):t;for(;n.isElement(s)&&!n.isLastTraversableNode(s);){const e=n.getComputedStyle(s),o=n.isContainingBlock(s);o||"fixed"!==e.position||(r=null),(l?!o&&!r:!o&&"static"===e.position&&r&&a.has(r.position)||n.isOverflowElement(s)&&!o&&g(t,s))?i=i.filter(t=>t!==s):r=e,s=n.getParentNode(s)}return e.set(t,i),i}(o,this._c):[].concat(i),r],c=s[0],f=s.reduce((t,n)=>{const i=d(o,n,l);return t.top=e.max(i.top,t.top),t.right=e.min(i.right,t.right),t.bottom=e.min(i.bottom,t.bottom),t.left=e.max(i.left,t.left),t},d(o,c,l));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}},getOffsetParent:x,getElementRects:async function(t){const e=this.getOffsetParent||x,n=this.getDimensions,o=await n(t.floating);return{reference:h(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=o(t);return{width:e,height:n}},getScale:r,isElement:n.isElement,isRTL:function(t){return"rtl"===n.getComputedStyle(t).direction}};function w(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const v=t.offset,E=t.shift,C=t.flip,T=t.size,L=t.hide,b=t.arrow,S=t.limitShift;exports.getOverflowAncestors=n.getOverflowAncestors,exports.arrow=b,exports.autoUpdate=function(t,o,r,l){void 0===l&&(l={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:d=!1}=l,g=i(t),h=s||f?[...g?n.getOverflowAncestors(g):[],...n.getOverflowAncestors(o)]:[];h.forEach(t=>{s&&t.addEventListener("scroll",r,{passive:!0}),f&&t.addEventListener("resize",r)});const m=g&&a?function(t,o){let i,r=null;const l=n.getDocumentElement(t);function s(){var t;clearTimeout(i),null==(t=r)||t.disconnect(),r=null}return function n(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),s();const u=t.getBoundingClientRect(),{left:a,top:d,width:g,height:h}=u;if(c||o(),!g||!h)return;const m={rootMargin:-e.floor(d)+"px "+-e.floor(l.clientWidth-(a+g))+"px "+-e.floor(l.clientHeight-(d+h))+"px "+-e.floor(a)+"px",threshold:e.max(0,e.min(1,f))||1};let p=!0;function x(e){const o=e[0].intersectionRatio;if(o!==f){if(!p)return n();o?n(!1,o):i=setTimeout(()=>{n(!1,1e-7)},1e3)}1!==o||w(u,t.getBoundingClientRect())||n(),p=!1}try{r=new IntersectionObserver(x,{...m,root:l.ownerDocument})}catch(y){r=new IntersectionObserver(x,m)}r.observe(t)}(!0),s}(g,r):null;let p,x=-1,y=null;u&&(y=new ResizeObserver(t=>{let[e]=t;e&&e.target===g&&y&&(y.unobserve(o),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(o)})),r()}),g&&!d&&y.observe(g),y.observe(o));let v=d?c(t):null;return d&&function e(){const n=c(t);v&&!w(v,n)&&r();v=n,p=requestAnimationFrame(e)}(),r(),()=>{var t;h.forEach(t=>{s&&t.removeEventListener("scroll",r),f&&t.removeEventListener("resize",r)}),null==m||m(),null==(t=y)||t.disconnect(),y=null,d&&cancelAnimationFrame(p)}},exports.computePosition=(e,n,o)=>{const i=new Map,r={platform:y,...o},l={...r.platform,_c:i};return t.computePosition(e,n,{...r,platform:l})},exports.flip=C,exports.hide=L,exports.limitShift=S,exports.offset=v,exports.platform=y,exports.shift=E,exports.size=T;
|