@vlrc-fe/components 1.0.6 → 1.0.8
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/Form/FormFileUpload/index.d.ts +1 -1
- package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/MultiSelect/type.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +64 -40
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +46 -80
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +22 -60
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1147 -43
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +30 -64
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +31 -147
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +93 -19
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +80 -25
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +9 -50
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +30 -156
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +350 -14
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +11 -0
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +55 -60
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +430 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +36 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +28 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +14 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +156 -0
- package/dist/index115.cjs +1 -0
- package/dist/index115.js +19 -0
- package/dist/index116.cjs +1 -0
- package/dist/index116.js +67 -0
- package/dist/index117.cjs +1 -0
- package/dist/index117.js +118 -0
- package/dist/index118.cjs +1 -0
- package/dist/index118.js +36 -0
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +13 -0
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +44 -121
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +31 -0
- package/dist/index121.cjs +1 -0
- package/dist/index121.js +37 -0
- package/dist/index122.cjs +1 -0
- package/dist/index122.js +123 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +44 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +43 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +14 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +64 -0
- package/dist/index127.cjs +1 -0
- package/dist/index127.js +23 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +34 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +27 -0
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +30 -12
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +26 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +157 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +34 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +46 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +142 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +125 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +26 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +88 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +221 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +166 -0
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +8 -12
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +126 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +15 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +9 -0
- package/dist/index143.cjs +1 -0
- package/dist/index143.js +17 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +22 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +18 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +6 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +7 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +8 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +7 -0
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +12 -112
- package/dist/index150.cjs +1 -0
- package/dist/index150.js +7 -0
- package/dist/index151.cjs +1 -0
- package/dist/index151.js +9 -0
- package/dist/index152.cjs +1 -0
- package/dist/index152.js +69 -0
- package/dist/index153.cjs +1 -0
- package/dist/index153.js +11 -0
- package/dist/index154.cjs +1 -0
- package/dist/index154.js +202 -0
- package/dist/index155.cjs +1 -0
- package/dist/index155.js +124 -0
- package/dist/index156.cjs +1 -0
- package/dist/index156.js +32 -0
- package/dist/index157.cjs +1 -0
- package/dist/index157.js +20 -0
- package/dist/index158.cjs +1 -0
- package/dist/index158.js +69 -0
- package/dist/index159.cjs +1 -0
- package/dist/index159.js +32 -0
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +4 -726
- package/dist/index160.cjs +1 -0
- package/dist/index160.js +11 -0
- package/dist/index161.cjs +1 -0
- package/dist/index161.js +280 -0
- package/dist/index162.cjs +1 -0
- package/dist/index162.js +157 -0
- package/dist/index163.cjs +1 -0
- package/dist/index163.js +20 -0
- package/dist/index164.cjs +1 -0
- package/dist/index164.js +10 -0
- package/dist/index165.cjs +1 -0
- package/dist/index165.js +14 -0
- package/dist/index166.cjs +1 -0
- package/dist/index166.js +8 -0
- package/dist/index167.cjs +1 -0
- package/dist/index167.js +8 -0
- package/dist/index168.cjs +1 -0
- package/dist/index168.js +11 -0
- package/dist/index169.cjs +1 -0
- package/dist/index169.js +10 -0
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +79 -339
- package/dist/index170.cjs +1 -0
- package/dist/index170.js +6 -0
- package/dist/index171.cjs +1 -0
- package/dist/index171.js +8 -0
- package/dist/index172.cjs +1 -0
- package/dist/index172.js +8 -0
- package/dist/index173.cjs +1 -0
- package/dist/index173.js +10 -0
- package/dist/index174.cjs +1 -0
- package/dist/index174.js +11 -0
- package/dist/index175.cjs +1 -0
- package/dist/index175.js +15 -0
- package/dist/index176.cjs +1 -0
- package/dist/index176.js +11 -0
- package/dist/index177.cjs +1 -0
- package/dist/index177.js +11 -0
- package/dist/index178.cjs +1 -0
- package/dist/index178.js +6 -0
- package/dist/index179.cjs +1 -0
- package/dist/index179.js +43 -0
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +19 -66
- package/dist/index180.cjs +1 -0
- package/dist/index180.js +382 -0
- package/dist/index181.cjs +1 -0
- package/dist/index181.js +40 -0
- package/dist/index182.cjs +1 -0
- package/dist/index182.js +23 -0
- package/dist/index183.cjs +1 -0
- package/dist/index183.js +59 -0
- package/dist/index184.cjs +1 -0
- package/dist/index184.js +55 -0
- package/dist/index185.cjs +1 -0
- package/dist/index185.js +54 -0
- package/dist/index186.cjs +1 -0
- package/dist/index186.js +57 -0
- package/dist/index187.cjs +1 -0
- package/dist/index187.js +57 -0
- package/dist/index188.cjs +1 -0
- package/dist/index188.js +88 -0
- package/dist/index189.cjs +1 -0
- package/dist/index189.js +66 -0
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +18 -8
- package/dist/index190.cjs +1 -0
- package/dist/index190.js +594 -0
- package/dist/index191.cjs +9 -0
- package/dist/index191.js +30 -0
- package/dist/index192.cjs +1 -0
- package/dist/index192.js +50 -0
- package/dist/index193.cjs +1 -0
- package/dist/index193.js +65 -0
- package/dist/index194.cjs +1 -0
- package/dist/index194.js +48 -0
- package/dist/index195.cjs +1 -0
- package/dist/index195.js +67 -0
- package/dist/index196.cjs +1 -0
- package/dist/index196.js +151 -0
- package/dist/index197.cjs +1 -0
- package/dist/index197.js +23 -0
- package/dist/index198.cjs +1 -0
- package/dist/index198.js +27 -0
- package/dist/index199.cjs +1 -0
- package/dist/index199.js +53 -0
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +51 -98
- package/dist/index200.cjs +1 -0
- package/dist/index200.js +161 -0
- package/dist/index201.cjs +1 -0
- package/dist/index201.js +16 -0
- package/dist/index202.cjs +1 -0
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +81 -28
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +64 -14
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +25 -22
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +1014 -33
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +22 -96
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +108 -25
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +15 -9
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +20 -66
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +81 -11
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +91 -29
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +14 -41
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +93 -12
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +22 -62
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +84 -22
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +85 -33
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +407 -25
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +170 -25
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +28 -154
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +158 -33
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +104 -45
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +337 -140
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +96 -124
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +319 -23
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +205 -81
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +33 -220
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +161 -163
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +20 -125
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +24 -14
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +167 -7
- package/dist/index5.js +26 -14
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +44 -15
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +15 -18
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +3 -17
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +5 -5
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +19 -4
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +24 -6
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +66 -4
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +14 -5
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +4 -8
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +50 -67
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +85 -46
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +6 -10
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +25 -199
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +13 -122
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -30
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +3 -20
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +24 -66
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +68 -30
- package/dist/index67.cjs +38 -1
- package/dist/index67.js +3 -11
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +12 -279
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +50 -155
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +29 -85
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +115 -19
- package/dist/index71.cjs +4 -1
- package/dist/index71.js +6 -9
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +12 -12
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +539 -6
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +197 -6
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +120 -9
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +912 -8
- package/dist/index77.cjs +3 -1
- package/dist/index77.js +76 -4
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +120 -6
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +12 -6
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +35 -62
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +14 -8
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +113 -9
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +725 -13
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +346 -9
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +74 -9
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +148 -4
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +31 -42
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +12 -380
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +345 -37
- package/dist/index89.cjs +20 -1
- package/dist/index89.js +40 -18
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +85 -17
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +113 -56
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +272 -51
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +129 -50
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +13 -54
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +28 -55
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +525 -80
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +75 -61
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +67 -583
- package/dist/index98.cjs +1 -9
- package/dist/index98.js +32 -27
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +17 -49
- package/dist/ui/alert-dialog.d.ts +15 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert.d.ts +10 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.d.ts +4 -0
- package/dist/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/ui/avatar.d.ts +7 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/breadcrumb.d.ts +12 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/carousel.d.ts +20 -0
- package/dist/ui/carousel.d.ts.map +1 -0
- package/dist/ui/collapsible.d.ts +6 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/context-menu.d.ts +26 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/drawer.d.ts +14 -0
- package/dist/ui/drawer.d.ts.map +1 -0
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -0
- package/dist/ui/index.d.ts +23 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/input-otp.d.ts +12 -0
- package/dist/ui/input-otp.d.ts.map +1 -0
- package/dist/ui/menubar.d.ts +27 -0
- package/dist/ui/menubar.d.ts.map +1 -0
- package/dist/ui/navigation-menu.d.ts +15 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -0
- package/dist/ui/pagination.d.ts +14 -0
- package/dist/ui/pagination.d.ts.map +1 -0
- package/dist/ui/resizable.d.ts +9 -0
- package/dist/ui/resizable.d.ts.map +1 -0
- package/dist/ui/sheet.d.ts +14 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sidebar.d.ts +70 -0
- package/dist/ui/sidebar.d.ts.map +1 -0
- package/dist/ui/skeleton.d.ts +3 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/slider.d.ts +5 -0
- package/dist/ui/slider.d.ts.map +1 -0
- package/dist/ui/switch.d.ts +5 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/tabs.d.ts +8 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/toggle-group.d.ts +8 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle.d.ts +10 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/package.json +23 -5
package/dist/index42.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./index41.cjs");function t(t,n,r){let{reference:i,floating:a}=t,o=e.getSideAxis(n),s=e.getAlignmentAxis(n),c=e.getAxisLength(s),l=e.getSide(n),u=o===`y`,d=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2,p=i[c]/2-a[c]/2,m;switch(l){case`top`:m={x:d,y:i.y-a.height};break;case`bottom`:m={x:d,y:i.y+i.height};break;case`right`:m={x:i.x+i.width,y:f};break;case`left`:m={x:i.x-a.width,y:f};break;default:m={x:i.x,y:i.y}}let h=e.getAlignment(n);return h&&(m[s]+=p*(h===`end`?1:-1)*(r&&u?-1:1)),m}async function n(t,n){n===void 0&&(n={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=t,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=e.evaluate(n,t),m=e.getPaddingObject(p),h=s[f?d===`floating`?`reference`:`floating`:d],g=e.rectToClientRect(await a.getClippingRect({element:await(a.isElement==null?void 0:a.isElement(h))??!0?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),_=d===`floating`?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),y=await(a.isElement==null?void 0:a.isElement(v))&&await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1},b=e.rectToClientRect(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:v,strategy:c}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var r=50,i=async(e,i,a)=>{let{placement:o=`bottom`,strategy:s=`absolute`,middleware:c=[],platform:l}=a,u=l.detectOverflow?l:{...l,detectOverflow:n},d=await(l.isRTL==null?void 0:l.isRTL(i)),f=await l.getElementRects({reference:e,floating:i,strategy:s}),{x:p,y:m}=t(f,o,d),h=o,g=0,_={};for(let n=0;n<c.length;n++){let a=c[n];if(!a)continue;let{name:v,fn:y}=a,{x:b,y:x,data:S,reset:C}=await y({x:p,y:m,initialPlacement:o,placement:h,strategy:s,middlewareData:_,rects:f,platform:u,elements:{reference:e,floating:i}});p=b??p,m=x??m,_[v]={..._[v],...S},C&&g<r&&(g++,typeof C==`object`&&(C.placement&&(h=C.placement),C.rects&&(f=C.rects===!0?await l.getElementRects({reference:e,floating:i,strategy:s}):C.rects),{x:p,y:m}=t(f,h,d)),n=-1)}return{x:p,y:m,placement:h,strategy:s,middlewareData:_}},a=t=>({name:`arrow`,options:t,async fn(n){let{x:r,y:i,placement:a,rects:o,platform:s,elements:c,middlewareData:l}=n,{element:u,padding:d=0}=e.evaluate(t,n)||{};if(u==null)return{};let f=e.getPaddingObject(d),p={x:r,y:i},m=e.getAlignmentAxis(a),h=e.getAxisLength(m),g=await s.getDimensions(u),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=o.reference[h]+o.reference[m]-p[m]-o.floating[h],S=p[m]-o.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),w=C?C[b]:0;(!w||!await(s.isElement==null?void 0:s.isElement(C)))&&(w=c.floating[b]||o.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=e.min(f[v],E),O=e.min(f[y],E),k=w-g[h]-O,A=w/2-g[h]/2+T,j=e.clamp(D,A,k),M=!l.arrow&&e.getAlignment(a)!=null&&A!==j&&o.reference[h]/2-(A<D?D:O)-g[h]/2<0,N=M?A<D?A-D:A-k:0;return{[m]:p[m]+N,data:{[m]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),o=function(t){return t===void 0&&(t={}),{name:`flip`,options:t,async fn(n){var r;let{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:l}=n,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p=`bestFit`,fallbackAxisSideDirection:m=`none`,flipAlignment:h=!0,...g}=e.evaluate(t,n);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let _=e.getSide(i),v=e.getSideAxis(s),y=e.getSide(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=f||(y||!h?[e.getOppositePlacement(s)]:e.getExpandedPlacements(s)),S=m!==`none`;!f&&S&&x.push(...e.getOppositeAxisPlacements(s,h,m,b));let C=[s,...x],w=await c.detectOverflow(n,g),T=[],E=a.flip?.overflows||[];if(u&&T.push(w[_]),d){let t=e.getAlignmentSides(i,o,b);T.push(w[t[0]],w[t[1]])}if(E=[...E,{placement:i,overflows:T}],!T.every(e=>e<=0)){let t=(a.flip?.index||0)+1,n=C[t];if(n&&(!(d===`alignment`&&v!==e.getSideAxis(n))||E.every(t=>e.getSideAxis(t.placement)===v?t.overflows[0]>0:!0)))return{data:{index:t,overflows:E},reset:{placement:n}};let r=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!r)switch(p){case`bestFit`:{let t=E.filter(t=>{if(S){let n=e.getSideAxis(t.placement);return n===v||n===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];t&&(r=t);break}case`initialPlacement`:r=s;break}if(i!==r)return{reset:{placement:r}}}return{}}}};function s(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function c(t){return e.sides.some(e=>t[e]>=0)}var l=function(t){return t===void 0&&(t={}),{name:`hide`,options:t,async fn(n){let{rects:r,platform:i}=n,{strategy:a=`referenceHidden`,...o}=e.evaluate(t,n);switch(a){case`referenceHidden`:{let e=s(await i.detectOverflow(n,{...o,elementContext:`reference`}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:c(e)}}}case`escaped`:{let e=s(await i.detectOverflow(n,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:c(e)}}}default:return{}}}}},u=new Set([`left`,`top`]);async function d(t,n){let{placement:r,platform:i,elements:a}=t,o=await(i.isRTL==null?void 0:i.isRTL(a.floating)),s=e.getSide(r),c=e.getAlignment(r),l=e.getSideAxis(r)===`y`,d=u.has(s)?-1:1,f=o&&l?-1:1,p=e.evaluate(n,t),{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof p==`number`?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof g==`number`&&(h=c===`end`?g*-1:g),l?{x:h*f,y:m*d}:{x:m*d,y:h*f}}var f=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await d(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},p=function(t){return t===void 0&&(t={}),{name:`shift`,options:t,async fn(n){let{x:r,y:i,placement:a,platform:o}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e.evaluate(t,n),d={x:r,y:i},f=await o.detectOverflow(n,u),p=e.getSideAxis(a),m=e.getOppositeAxis(p),h=d[m],g=d[p],_=(t,n)=>e.clamp(n+f[t===`y`?`top`:`left`],n,n-f[t===`y`?`bottom`:`right`]);s&&(h=_(m,h)),c&&(g=_(p,g));let v=l.fn({...n,[m]:h,[p]:g});return{...v,data:{x:v.x-r,y:v.y-i,enabled:{[m]:s,[p]:c}}}}}},m=function(t){return t===void 0&&(t={}),{options:t,fn(n){let{x:r,y:i,placement:a,rects:o,middlewareData:s}=n,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=e.evaluate(t,n),f={x:r,y:i},p=e.getSideAxis(a),m=e.getOppositeAxis(p),h=f[m],g=f[p],_=e.evaluate(c,n),v=typeof _==`number`?{mainAxis:_,crossAxis:0}:{mainAxis:_.mainAxis??0,crossAxis:_.crossAxis??0};if(l){let e=m===`y`?`height`:`width`,t=o.reference[m]-o.floating[e]+v.mainAxis,n=o.reference[m]+o.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(d){let t=m===`y`?`width`:`height`,n=u.has(e.getSide(a)),r=o.reference[p]-o.floating[t]+(n&&s.offset?.[p]||0)+(n?0:v.crossAxis),i=o.reference[p]+o.reference[t]+(n?0:s.offset?.[p]||0)-(n?v.crossAxis:0);g<r?g=r:g>i&&(g=i)}return{[m]:h,[p]:g}}}},h=function(t){return t===void 0&&(t={}),{name:`size`,options:t,async fn(n){let{placement:r,rects:i,platform:a,elements:o}=n,{apply:s=()=>{},...c}=e.evaluate(t,n),l=await a.detectOverflow(n,c),u=e.getSide(r),d=e.getAlignment(r),f=e.getSideAxis(r)===`y`,{width:p,height:m}=i.floating,h,g;u===`top`||u===`bottom`?(h=u,g=d===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?`start`:`end`)?`left`:`right`):(g=u,h=d===`end`?`top`:`bottom`);let _=m-l.top-l.bottom,v=p-l.left-l.right,y=e.min(m-l[h],_),b=e.min(p-l[g],v),x=n.middlewareData.shift,S=!x,C=y,w=b;x!=null&&x.enabled.x&&(w=v),x!=null&&x.enabled.y&&(C=_),S&&!d&&(f?w=p-2*e.max(l.left,l.right):C=m-2*e.max(l.top,l.bottom)),await s({...n,availableWidth:w,availableHeight:C});let T=await a.getDimensions(o.floating);return p!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};exports.arrow=a,exports.computePosition=i,exports.flip=o,exports.hide=l,exports.limitShift=m,exports.offset=f,exports.shift=p,exports.size=h;
|
package/dist/index42.js
CHANGED
|
@@ -1,125 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
function
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
}, T = (e) => /* @__PURE__ */ v(C, {
|
|
99
|
-
...e,
|
|
100
|
-
children: (e) => /* @__PURE__ */ v(m, { ...e })
|
|
101
|
-
}), E = ({ children: e, ...t }) => /* @__PURE__ */ v(C, {
|
|
102
|
-
...t,
|
|
103
|
-
children: ({ onChange: t, onBlur: n, ...r }) => /* @__PURE__ */ y(u, {
|
|
104
|
-
...r,
|
|
105
|
-
onValueChange: t,
|
|
106
|
-
children: [/* @__PURE__ */ v(f, {
|
|
107
|
-
"aria-invalid": r["aria-invalid"],
|
|
108
|
-
id: r.id,
|
|
109
|
-
onBlur: n,
|
|
110
|
-
children: /* @__PURE__ */ v(p, {})
|
|
111
|
-
}), /* @__PURE__ */ v(d, { children: e })]
|
|
112
|
-
})
|
|
113
|
-
}), D = ({ disabled: e, ...t }) => /* @__PURE__ */ v(C, {
|
|
114
|
-
...t,
|
|
115
|
-
horizontal: !0,
|
|
116
|
-
controlFirst: !0,
|
|
117
|
-
children: ({ onChange: t, value: r, ...i }) => /* @__PURE__ */ v(n, {
|
|
118
|
-
...i,
|
|
119
|
-
checked: r,
|
|
120
|
-
onCheckedChange: t,
|
|
121
|
-
disabled: e
|
|
122
|
-
})
|
|
123
|
-
});
|
|
1
|
+
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2
|
+
function e() {
|
|
3
|
+
return typeof window < "u";
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return i(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
var t;
|
|
10
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
11
|
+
}
|
|
12
|
+
function r(e) {
|
|
13
|
+
return ((i(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
14
|
+
}
|
|
15
|
+
function i(t) {
|
|
16
|
+
return e() ? t instanceof Node || t instanceof n(t).Node : !1;
|
|
17
|
+
}
|
|
18
|
+
function a(t) {
|
|
19
|
+
return e() ? t instanceof Element || t instanceof n(t).Element : !1;
|
|
20
|
+
}
|
|
21
|
+
function o(t) {
|
|
22
|
+
return e() ? t instanceof HTMLElement || t instanceof n(t).HTMLElement : !1;
|
|
23
|
+
}
|
|
24
|
+
function s(t) {
|
|
25
|
+
return !e() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof n(t).ShadowRoot;
|
|
26
|
+
}
|
|
27
|
+
function c(e) {
|
|
28
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = y(e);
|
|
29
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
30
|
+
}
|
|
31
|
+
function l(e) {
|
|
32
|
+
return /^(table|td|th)$/.test(t(e));
|
|
33
|
+
}
|
|
34
|
+
function u(e) {
|
|
35
|
+
try {
|
|
36
|
+
if (e.matches(":popover-open")) return !0;
|
|
37
|
+
} catch {}
|
|
38
|
+
try {
|
|
39
|
+
return e.matches(":modal");
|
|
40
|
+
} catch {
|
|
41
|
+
return !1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
var d = /transform|translate|scale|rotate|perspective|filter/, f = /paint|layout|strict|content/, p = (e) => !!e && e !== "none", m;
|
|
45
|
+
function h(e) {
|
|
46
|
+
let t = a(e) ? y(e) : e;
|
|
47
|
+
return p(t.transform) || p(t.translate) || p(t.scale) || p(t.rotate) || p(t.perspective) || !_() && (p(t.backdropFilter) || p(t.filter)) || d.test(t.willChange || "") || f.test(t.contain || "");
|
|
48
|
+
}
|
|
49
|
+
function g(e) {
|
|
50
|
+
let t = x(e);
|
|
51
|
+
for (; o(t) && !v(t);) {
|
|
52
|
+
if (h(t)) return t;
|
|
53
|
+
if (u(t)) return null;
|
|
54
|
+
t = x(t);
|
|
55
|
+
}
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
function _() {
|
|
59
|
+
return m ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), m;
|
|
60
|
+
}
|
|
61
|
+
function v(e) {
|
|
62
|
+
return /^(html|body|#document)$/.test(t(e));
|
|
63
|
+
}
|
|
64
|
+
function y(e) {
|
|
65
|
+
return n(e).getComputedStyle(e);
|
|
66
|
+
}
|
|
67
|
+
function b(e) {
|
|
68
|
+
return a(e) ? {
|
|
69
|
+
scrollLeft: e.scrollLeft,
|
|
70
|
+
scrollTop: e.scrollTop
|
|
71
|
+
} : {
|
|
72
|
+
scrollLeft: e.scrollX,
|
|
73
|
+
scrollTop: e.scrollY
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function x(e) {
|
|
77
|
+
if (t(e) === "html") return e;
|
|
78
|
+
let n = e.assignedSlot || e.parentNode || s(e) && e.host || r(e);
|
|
79
|
+
return s(n) ? n.host : n;
|
|
80
|
+
}
|
|
81
|
+
function S(e) {
|
|
82
|
+
let t = x(e);
|
|
83
|
+
return v(t) ? (e.ownerDocument || e).body : o(t) && c(t) ? t : S(t);
|
|
84
|
+
}
|
|
85
|
+
function C(e, t, r) {
|
|
86
|
+
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
87
|
+
let i = S(e), a = i === e.ownerDocument?.body, o = n(i);
|
|
88
|
+
if (a) {
|
|
89
|
+
let e = w(o);
|
|
90
|
+
return t.concat(o, o.visualViewport || [], c(i) ? i : [], e && r ? C(e) : []);
|
|
91
|
+
} else return t.concat(i, C(i, [], r));
|
|
92
|
+
}
|
|
93
|
+
function w(e) {
|
|
94
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
95
|
+
}
|
|
124
96
|
//#endregion
|
|
125
|
-
export {
|
|
97
|
+
export { y as getComputedStyle, g as getContainingBlock, r as getDocumentElement, w as getFrameElement, t as getNodeName, b as getNodeScroll, C as getOverflowAncestors, x as getParentNode, n as getWindow, h as isContainingBlock, a as isElement, o as isHTMLElement, v as isLastTraversableNode, c as isOverflowElement, l as isTableElement, u as isTopLayer, _ as isWebKit };
|
package/dist/index43.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function e(){return typeof window<`u`}function t(e){return i(e)?(e.nodeName||``).toLowerCase():`#document`}function n(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function r(e){return((i(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function i(t){return e()?t instanceof Node||t instanceof n(t).Node:!1}function a(t){return e()?t instanceof Element||t instanceof n(t).Element:!1}function o(t){return e()?t instanceof HTMLElement||t instanceof n(t).HTMLElement:!1}function s(t){return!e()||typeof ShadowRoot>`u`?!1:t instanceof ShadowRoot||t instanceof n(t).ShadowRoot}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function l(e){return/^(table|td|th)$/.test(t(e))}function u(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var d=/transform|translate|scale|rotate|perspective|filter/,f=/paint|layout|strict|content/,p=e=>!!e&&e!==`none`,m;function h(e){let t=a(e)?y(e):e;return p(t.transform)||p(t.translate)||p(t.scale)||p(t.rotate)||p(t.perspective)||!_()&&(p(t.backdropFilter)||p(t.filter))||d.test(t.willChange||``)||f.test(t.contain||``)}function g(e){let t=x(e);for(;o(t)&&!v(t);){if(h(t))return t;if(u(t))return null;t=x(t)}return null}function _(){return m??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),m}function v(e){return/^(html|body|#document)$/.test(t(e))}function y(e){return n(e).getComputedStyle(e)}function b(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function x(e){if(t(e)===`html`)return e;let n=e.assignedSlot||e.parentNode||s(e)&&e.host||r(e);return s(n)?n.host:n}function S(e){let t=x(e);return v(t)?(e.ownerDocument||e).body:o(t)&&c(t)?t:S(t)}function C(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=!0);let i=S(e),a=i===e.ownerDocument?.body,o=n(i);if(a){let e=w(o);return t.concat(o,o.visualViewport||[],c(i)?i:[],e&&r?C(e):[])}else return t.concat(i,C(i,[],r))}function w(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}exports.getComputedStyle=y,exports.getContainingBlock=g,exports.getDocumentElement=r,exports.getFrameElement=w,exports.getNodeName=t,exports.getNodeScroll=b,exports.getOverflowAncestors=C,exports.getParentNode=x,exports.getWindow=n,exports.isContainingBlock=h,exports.isElement=a,exports.isHTMLElement=o,exports.isLastTraversableNode=v,exports.isOverflowElement=c,exports.isTableElement=l,exports.isTopLayer=u,exports.isWebKit=_;
|
package/dist/index43.js
CHANGED
|
@@ -1,26 +1,322 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { createCoords as e, floor as t, max as n, min as r, rectToClientRect as i, round as a } from "./index40.js";
|
|
2
|
+
import { arrow as o, computePosition as s, flip as c, hide as l, limitShift as u, offset as d, shift as f, size as p } from "./index41.js";
|
|
3
|
+
import { getComputedStyle as m, getContainingBlock as h, getDocumentElement as g, getFrameElement as _, getNodeName as v, getNodeScroll as y, getOverflowAncestors as b, getParentNode as x, getWindow as S, isContainingBlock as C, isElement as w, isHTMLElement as T, isLastTraversableNode as E, isOverflowElement as D, isTableElement as O, isTopLayer as k, isWebKit as A } from "./index42.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
5
|
+
function j(e) {
|
|
6
|
+
let t = m(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = T(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = a(n) !== o || a(r) !== s;
|
|
7
|
+
return c && (n = o, r = s), {
|
|
8
|
+
width: n,
|
|
9
|
+
height: r,
|
|
10
|
+
$: c
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function M(e) {
|
|
14
|
+
return w(e) ? e : e.contextElement;
|
|
15
|
+
}
|
|
16
|
+
function N(t) {
|
|
17
|
+
let n = M(t);
|
|
18
|
+
if (!T(n)) return e(1);
|
|
19
|
+
let r = n.getBoundingClientRect(), { width: i, height: o, $: s } = j(n), c = (s ? a(r.width) : r.width) / i, l = (s ? a(r.height) : r.height) / o;
|
|
20
|
+
return (!c || !Number.isFinite(c)) && (c = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
21
|
+
x: c,
|
|
22
|
+
y: l
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
var P = /* @__PURE__ */ e(0);
|
|
26
|
+
function F(e) {
|
|
27
|
+
let t = S(e);
|
|
28
|
+
return !A() || !t.visualViewport ? P : {
|
|
29
|
+
x: t.visualViewport.offsetLeft,
|
|
30
|
+
y: t.visualViewport.offsetTop
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function I(e, t, n) {
|
|
34
|
+
return t === void 0 && (t = !1), !!n && t && n === S(e);
|
|
35
|
+
}
|
|
36
|
+
function L(t, n, r, a) {
|
|
37
|
+
n === void 0 && (n = !1), r === void 0 && (r = !1);
|
|
38
|
+
let o = t.getBoundingClientRect(), s = M(t), c = e(1);
|
|
39
|
+
n && (a ? w(a) && (c = N(a)) : c = N(t));
|
|
40
|
+
let l = I(s, r, a) ? F(s) : e(0), u = (o.left + l.x) / c.x, d = (o.top + l.y) / c.y, f = o.width / c.x, p = o.height / c.y;
|
|
41
|
+
if (s && a) {
|
|
42
|
+
let e = S(s), t = w(a) ? S(a) : a, n = e, r = _(n);
|
|
43
|
+
for (; r && t !== n;) {
|
|
44
|
+
let e = N(r), t = r.getBoundingClientRect(), i = m(r), a = t.left + (r.clientLeft + parseFloat(i.paddingLeft)) * e.x, o = t.top + (r.clientTop + parseFloat(i.paddingTop)) * e.y;
|
|
45
|
+
u *= e.x, d *= e.y, f *= e.x, p *= e.y, u += a, d += o, n = S(r), r = _(n);
|
|
18
46
|
}
|
|
19
|
-
},
|
|
20
|
-
defaultVariants: {
|
|
21
|
-
variant: "default",
|
|
22
|
-
badgeAnimation: "bounce"
|
|
23
47
|
}
|
|
24
|
-
|
|
48
|
+
return i({
|
|
49
|
+
width: f,
|
|
50
|
+
height: p,
|
|
51
|
+
x: u,
|
|
52
|
+
y: d
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function R(e, t) {
|
|
56
|
+
let n = y(e).scrollLeft;
|
|
57
|
+
return t ? t.left + n : L(g(e)).left + n;
|
|
58
|
+
}
|
|
59
|
+
function z(e, t) {
|
|
60
|
+
let n = e.getBoundingClientRect();
|
|
61
|
+
return {
|
|
62
|
+
x: n.left + t.scrollLeft - R(e, n),
|
|
63
|
+
y: n.top + t.scrollTop
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function B(t) {
|
|
67
|
+
let { elements: n, rect: r, offsetParent: i, strategy: a } = t, o = a === "fixed", s = g(i), c = n ? k(n.floating) : !1;
|
|
68
|
+
if (i === s || c && o) return r;
|
|
69
|
+
let l = {
|
|
70
|
+
scrollLeft: 0,
|
|
71
|
+
scrollTop: 0
|
|
72
|
+
}, u = e(1), d = e(0), f = T(i);
|
|
73
|
+
if ((f || !o) && ((v(i) !== "body" || D(s)) && (l = y(i)), f)) {
|
|
74
|
+
let e = L(i);
|
|
75
|
+
u = N(i), d.x = e.x + i.clientLeft, d.y = e.y + i.clientTop;
|
|
76
|
+
}
|
|
77
|
+
let p = s && !f && !o ? z(s, l) : e(0);
|
|
78
|
+
return {
|
|
79
|
+
width: r.width * u.x,
|
|
80
|
+
height: r.height * u.y,
|
|
81
|
+
x: r.x * u.x - l.scrollLeft * u.x + d.x + p.x,
|
|
82
|
+
y: r.y * u.y - l.scrollTop * u.y + d.y + p.y
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function V(e) {
|
|
86
|
+
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
87
|
+
}
|
|
88
|
+
function ee(e) {
|
|
89
|
+
let t = y(e), r = e.ownerDocument.body, i = n(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), a = n(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight), o = -t.scrollLeft + R(e), s = -t.scrollTop;
|
|
90
|
+
return m(r).direction === "rtl" && (o += n(e.clientWidth, r.clientWidth) - i), {
|
|
91
|
+
width: i,
|
|
92
|
+
height: a,
|
|
93
|
+
x: o,
|
|
94
|
+
y: s
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
var te = 25;
|
|
98
|
+
function H(e, t, n) {
|
|
99
|
+
n === void 0 && (n = "viewport");
|
|
100
|
+
let r = n === "layoutViewport", i = S(e), a = g(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
101
|
+
if (o) {
|
|
102
|
+
let e = !A() || t === "fixed";
|
|
103
|
+
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
104
|
+
}
|
|
105
|
+
if (R(a) <= 0) {
|
|
106
|
+
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
107
|
+
o <= te && (s -= o);
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
width: s,
|
|
111
|
+
height: c,
|
|
112
|
+
x: l,
|
|
113
|
+
y: u
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function U(e, t) {
|
|
117
|
+
let n = L(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = N(e);
|
|
118
|
+
return {
|
|
119
|
+
width: e.clientWidth * a.x,
|
|
120
|
+
height: e.clientHeight * a.y,
|
|
121
|
+
x: i * a.x,
|
|
122
|
+
y: r * a.y
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function W(e, t, n) {
|
|
126
|
+
let r;
|
|
127
|
+
if (t === "viewport" || t === "layoutViewport") r = H(e, n, t);
|
|
128
|
+
else if (t === "document") r = ee(g(e));
|
|
129
|
+
else if (w(t)) r = U(t, n);
|
|
130
|
+
else {
|
|
131
|
+
let n = F(e);
|
|
132
|
+
r = {
|
|
133
|
+
x: t.x - n.x,
|
|
134
|
+
y: t.y - n.y,
|
|
135
|
+
width: t.width,
|
|
136
|
+
height: t.height
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
return i(r);
|
|
140
|
+
}
|
|
141
|
+
function G(e, t) {
|
|
142
|
+
let n = t.get(e);
|
|
143
|
+
if (n) return n;
|
|
144
|
+
let r = b(e, [], !1).filter((e) => w(e) && v(e) !== "body"), i = null, a = m(e).position === "fixed", o = a ? x(e) : e;
|
|
145
|
+
for (; w(o) && !E(o);) {
|
|
146
|
+
let e = m(o), t = C(o), n = i ? i.position : a ? "fixed" : "";
|
|
147
|
+
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = x(o);
|
|
148
|
+
}
|
|
149
|
+
return t.set(e, r), r;
|
|
150
|
+
}
|
|
151
|
+
function K(e) {
|
|
152
|
+
let { element: t, boundary: i, rootBoundary: a, strategy: o } = e, s = [...i === "clippingAncestors" ? k(t) ? [] : G(t, this._c) : [].concat(i), a], c = W(t, s[0], o), l = c.top, u = c.right, d = c.bottom, f = c.left;
|
|
153
|
+
for (let e = 1; e < s.length; e++) {
|
|
154
|
+
let i = W(t, s[e], o);
|
|
155
|
+
l = n(i.top, l), u = r(i.right, u), d = r(i.bottom, d), f = n(i.left, f);
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
width: u - f,
|
|
159
|
+
height: d - l,
|
|
160
|
+
x: f,
|
|
161
|
+
y: l
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
function q(e) {
|
|
165
|
+
let { width: t, height: n } = j(e);
|
|
166
|
+
return {
|
|
167
|
+
width: t,
|
|
168
|
+
height: n
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
function J(t, n, r) {
|
|
172
|
+
let i = T(n), a = g(n), o = r === "fixed", s = L(t, !0, o, n), c = {
|
|
173
|
+
scrollLeft: 0,
|
|
174
|
+
scrollTop: 0
|
|
175
|
+
}, l = e(0);
|
|
176
|
+
if ((i || !o) && ((v(n) !== "body" || D(a)) && (c = y(n)), i)) {
|
|
177
|
+
let e = L(n, !0, o, n);
|
|
178
|
+
l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop;
|
|
179
|
+
}
|
|
180
|
+
!i && a && (l.x = R(a));
|
|
181
|
+
let u = a && !i && !o ? z(a, c) : e(0);
|
|
182
|
+
return {
|
|
183
|
+
x: s.left + c.scrollLeft - l.x - u.x,
|
|
184
|
+
y: s.top + c.scrollTop - l.y - u.y,
|
|
185
|
+
width: s.width,
|
|
186
|
+
height: s.height
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function Y(e) {
|
|
190
|
+
return m(e).position === "static";
|
|
191
|
+
}
|
|
192
|
+
function X(e, t) {
|
|
193
|
+
if (!T(e) || m(e).position === "fixed") return null;
|
|
194
|
+
if (t) return t(e);
|
|
195
|
+
let n = e.offsetParent;
|
|
196
|
+
return g(e) === n && (n = n.ownerDocument.body), n;
|
|
197
|
+
}
|
|
198
|
+
function Z(e, t) {
|
|
199
|
+
let n = S(e);
|
|
200
|
+
if (k(e)) return n;
|
|
201
|
+
if (!T(e)) {
|
|
202
|
+
let t = x(e);
|
|
203
|
+
for (; t && !E(t);) {
|
|
204
|
+
if (w(t) && !Y(t)) return t;
|
|
205
|
+
t = x(t);
|
|
206
|
+
}
|
|
207
|
+
return n;
|
|
208
|
+
}
|
|
209
|
+
let r = X(e, t);
|
|
210
|
+
for (; r && O(r) && Y(r);) r = X(r, t);
|
|
211
|
+
return r && E(r) && Y(r) && !C(r) ? n : r || h(e) || n;
|
|
212
|
+
}
|
|
213
|
+
var ne = async function(e) {
|
|
214
|
+
let t = this.getOffsetParent || Z, n = this.getDimensions, r = await n(e.floating);
|
|
215
|
+
return {
|
|
216
|
+
reference: J(e.reference, await t(e.floating), e.strategy),
|
|
217
|
+
floating: {
|
|
218
|
+
x: 0,
|
|
219
|
+
y: 0,
|
|
220
|
+
width: r.width,
|
|
221
|
+
height: r.height
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
function re(e) {
|
|
226
|
+
return m(e).direction === "rtl";
|
|
227
|
+
}
|
|
228
|
+
var Q = {
|
|
229
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: B,
|
|
230
|
+
getDocumentElement: g,
|
|
231
|
+
getClippingRect: K,
|
|
232
|
+
getOffsetParent: Z,
|
|
233
|
+
getElementRects: ne,
|
|
234
|
+
getClientRects: V,
|
|
235
|
+
getDimensions: q,
|
|
236
|
+
getScale: N,
|
|
237
|
+
isElement: w,
|
|
238
|
+
isRTL: re
|
|
239
|
+
};
|
|
240
|
+
function $(e, t) {
|
|
241
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
242
|
+
}
|
|
243
|
+
function ie(e, i, a) {
|
|
244
|
+
let o = null, s, c = g(e);
|
|
245
|
+
function l() {
|
|
246
|
+
var e;
|
|
247
|
+
clearTimeout(s), (e = o) == null || e.disconnect(), o = null;
|
|
248
|
+
}
|
|
249
|
+
function u(a, d) {
|
|
250
|
+
a === void 0 && (a = !1), d === void 0 && (d = 1), l();
|
|
251
|
+
let f = e.getBoundingClientRect(), { left: p, top: m, width: h, height: g } = f;
|
|
252
|
+
if (a || i(), !h || !g) return;
|
|
253
|
+
let _ = t(m), v = t(c.clientWidth - (p + h)), y = t(c.clientHeight - (m + g)), b = t(p), x = {
|
|
254
|
+
rootMargin: -_ + "px " + -v + "px " + -y + "px " + -b + "px",
|
|
255
|
+
threshold: n(0, r(1, d)) || 1
|
|
256
|
+
}, S = !0;
|
|
257
|
+
function C(t) {
|
|
258
|
+
let n = t[0].intersectionRatio;
|
|
259
|
+
if (!$(f, e.getBoundingClientRect())) return u();
|
|
260
|
+
if (n !== d) {
|
|
261
|
+
if (!S) return u();
|
|
262
|
+
n ? u(!1, n) : s = setTimeout(() => {
|
|
263
|
+
u(!1, 1e-7);
|
|
264
|
+
}, 1e3);
|
|
265
|
+
}
|
|
266
|
+
S = !1;
|
|
267
|
+
}
|
|
268
|
+
try {
|
|
269
|
+
o = new IntersectionObserver(C, {
|
|
270
|
+
...x,
|
|
271
|
+
root: c.ownerDocument
|
|
272
|
+
});
|
|
273
|
+
} catch {
|
|
274
|
+
o = new IntersectionObserver(C, x);
|
|
275
|
+
}
|
|
276
|
+
o.observe(e);
|
|
277
|
+
}
|
|
278
|
+
let d = S(e), f = () => u(a);
|
|
279
|
+
return d.addEventListener("resize", f), u(!0), () => {
|
|
280
|
+
d.removeEventListener("resize", f), l();
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
function ae(e, t, n, r) {
|
|
284
|
+
r === void 0 && (r = {});
|
|
285
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = M(e), u = i || a ? [...l ? b(l) : [], ...t ? b(t) : []] : [];
|
|
286
|
+
u.forEach((e) => {
|
|
287
|
+
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
288
|
+
});
|
|
289
|
+
let d = l && s ? ie(l, n, a) : null, f = -1, p = null;
|
|
290
|
+
o && (p = new ResizeObserver((e) => {
|
|
291
|
+
let [r] = e;
|
|
292
|
+
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
293
|
+
var e;
|
|
294
|
+
(e = p) == null || e.observe(t);
|
|
295
|
+
})), n();
|
|
296
|
+
}), l && !c && p.observe(l), t && p.observe(t));
|
|
297
|
+
let m, h = c ? L(e) : null;
|
|
298
|
+
c && g();
|
|
299
|
+
function g() {
|
|
300
|
+
let t = L(e);
|
|
301
|
+
h && !$(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
302
|
+
}
|
|
303
|
+
return n(), () => {
|
|
304
|
+
var e;
|
|
305
|
+
u.forEach((e) => {
|
|
306
|
+
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
307
|
+
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
var oe = d, se = f, ce = c, le = p, ue = l, de = o, fe = u, pe = (e, t, n) => {
|
|
311
|
+
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
312
|
+
...Q,
|
|
313
|
+
...i.platform,
|
|
314
|
+
_c: r
|
|
315
|
+
};
|
|
316
|
+
return s(e, t, {
|
|
317
|
+
...i,
|
|
318
|
+
platform: a
|
|
319
|
+
});
|
|
320
|
+
};
|
|
25
321
|
//#endregion
|
|
26
|
-
export {
|
|
322
|
+
export { de as arrow, ae as autoUpdate, pe as computePosition, ce as flip, ue as hide, fe as limitShift, oe as offset, Q as platform, se as shift, le as size };
|