@vlrc-fe/components 1.0.7 → 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/MultiSelect/type.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +64 -41
- 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/index44.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./index41.cjs"),t=require("./index42.cjs"),n=require("./index43.cjs");function r(t){let r=n.getComputedStyle(t),i=parseFloat(r.width)||0,a=parseFloat(r.height)||0,o=n.isHTMLElement(t),s=o?t.offsetWidth:i,c=o?t.offsetHeight:a,l=e.round(i)!==s||e.round(a)!==c;return l&&(i=s,a=c),{width:i,height:a,$:l}}function i(e){return n.isElement(e)?e:e.contextElement}function a(t){let a=i(t);if(!n.isHTMLElement(a))return e.createCoords(1);let o=a.getBoundingClientRect(),{width:s,height:c,$:l}=r(a),u=(l?e.round(o.width):o.width)/s,d=(l?e.round(o.height):o.height)/c;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}var o=e.createCoords(0);function s(e){let t=n.getWindow(e);return!n.isWebKit()||!t.visualViewport?o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function c(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===n.getWindow(e)}function l(t,r,o,l){r===void 0&&(r=!1),o===void 0&&(o=!1);let u=t.getBoundingClientRect(),d=i(t),f=e.createCoords(1);r&&(l?n.isElement(l)&&(f=a(l)):f=a(t));let p=c(d,o,l)?s(d):e.createCoords(0),m=(u.left+p.x)/f.x,h=(u.top+p.y)/f.y,g=u.width/f.x,_=u.height/f.y;if(d&&l){let e=n.getWindow(d),t=n.isElement(l)?n.getWindow(l):l,r=e,i=n.getFrameElement(r);for(;i&&t!==r;){let e=a(i),t=i.getBoundingClientRect(),o=n.getComputedStyle(i),s=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,c=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;m*=e.x,h*=e.y,g*=e.x,_*=e.y,m+=s,h+=c,r=n.getWindow(i),i=n.getFrameElement(r)}}return e.rectToClientRect({width:g,height:_,x:m,y:h})}function u(e,t){let r=n.getNodeScroll(e).scrollLeft;return t?t.left+r:l(n.getDocumentElement(e)).left+r}function d(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-u(e,n),y:n.top+t.scrollTop}}function f(t){let{elements:r,rect:i,offsetParent:o,strategy:s}=t,c=s===`fixed`,u=n.getDocumentElement(o),f=r?n.isTopLayer(r.floating):!1;if(o===u||f&&c)return i;let p={scrollLeft:0,scrollTop:0},m=e.createCoords(1),h=e.createCoords(0),g=n.isHTMLElement(o);if((g||!c)&&((n.getNodeName(o)!==`body`||n.isOverflowElement(u))&&(p=n.getNodeScroll(o)),g)){let e=l(o);m=a(o),h.x=e.x+o.clientLeft,h.y=e.y+o.clientTop}let _=u&&!g&&!c?d(u,p):e.createCoords(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-p.scrollLeft*m.x+h.x+_.x,y:i.y*m.y-p.scrollTop*m.y+h.y+_.y}}function p(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function m(t){let r=n.getNodeScroll(t),i=t.ownerDocument.body,a=e.max(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=e.max(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+u(t),c=-r.scrollTop;return n.getComputedStyle(i).direction===`rtl`&&(s+=e.max(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:s,y:c}}var h=25;function g(e,t,r){r===void 0&&(r=`viewport`);let i=r===`layoutViewport`,a=n.getWindow(e),o=n.getDocumentElement(e),s=a.visualViewport,c=o.clientWidth,l=o.clientHeight,d=0,f=0;if(s){let e=!n.isWebKit()||t===`fixed`;i?e||(d=-s.offsetLeft,f=-s.offsetTop):(c=s.width,l=s.height,e&&(d=s.offsetLeft,f=s.offsetTop))}if(u(o)<=0){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),a=getComputedStyle(o).scrollbarGutter===`stable both-edges`?i/2:i;a<=h&&(c-=a)}return{width:c,height:l,x:d,y:f}}function _(e,t){let n=l(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=a(e);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}function v(t,r,i){let a;if(r===`viewport`||r===`layoutViewport`)a=g(t,i,r);else if(r===`document`)a=m(n.getDocumentElement(t));else if(n.isElement(r))a=_(r,i);else{let e=s(t);a={x:r.x-e.x,y:r.y-e.y,width:r.width,height:r.height}}return e.rectToClientRect(a)}function y(e,t){let r=t.get(e);if(r)return r;let i=n.getOverflowAncestors(e,[],!1).filter(e=>n.isElement(e)&&n.getNodeName(e)!==`body`),a=null,o=n.getComputedStyle(e).position===`fixed`,s=o?n.getParentNode(e):e;for(;n.isElement(s)&&!n.isLastTraversableNode(s);){let e=n.getComputedStyle(s),t=n.isContainingBlock(s),r=a?a.position:o?`fixed`:``;!t&&(r===`fixed`||r===`absolute`&&e.position===`static`)?i=i.filter(e=>e!==s):a=e,s=n.getParentNode(s)}return t.set(e,i),i}function b(t){let{element:r,boundary:i,rootBoundary:a,strategy:o}=t,s=[...i===`clippingAncestors`?n.isTopLayer(r)?[]:y(r,this._c):[].concat(i),a],c=v(r,s[0],o),l=c.top,u=c.right,d=c.bottom,f=c.left;for(let t=1;t<s.length;t++){let n=v(r,s[t],o);l=e.max(n.top,l),u=e.min(n.right,u),d=e.min(n.bottom,d),f=e.max(n.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function x(e){let{width:t,height:n}=r(e);return{width:t,height:n}}function S(t,r,i){let a=n.isHTMLElement(r),o=n.getDocumentElement(r),s=i===`fixed`,c=l(t,!0,s,r),f={scrollLeft:0,scrollTop:0},p=e.createCoords(0);if((a||!s)&&((n.getNodeName(r)!==`body`||n.isOverflowElement(o))&&(f=n.getNodeScroll(r)),a)){let e=l(r,!0,s,r);p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}!a&&o&&(p.x=u(o));let m=o&&!a&&!s?d(o,f):e.createCoords(0);return{x:c.left+f.scrollLeft-p.x-m.x,y:c.top+f.scrollTop-p.y-m.y,width:c.width,height:c.height}}function C(e){return n.getComputedStyle(e).position===`static`}function w(e,t){if(!n.isHTMLElement(e)||n.getComputedStyle(e).position===`fixed`)return null;if(t)return t(e);let r=e.offsetParent;return n.getDocumentElement(e)===r&&(r=r.ownerDocument.body),r}function T(e,t){let r=n.getWindow(e);if(n.isTopLayer(e))return r;if(!n.isHTMLElement(e)){let t=n.getParentNode(e);for(;t&&!n.isLastTraversableNode(t);){if(n.isElement(t)&&!C(t))return t;t=n.getParentNode(t)}return r}let i=w(e,t);for(;i&&n.isTableElement(i)&&C(i);)i=w(i,t);return i&&n.isLastTraversableNode(i)&&C(i)&&!n.isContainingBlock(i)?r:i||n.getContainingBlock(e)||r}var E=async function(e){let t=this.getOffsetParent||T,n=this.getDimensions,r=await n(e.floating);return{reference:S(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function D(e){return n.getComputedStyle(e).direction===`rtl`}var O={convertOffsetParentRelativeRectToViewportRelativeRect:f,getDocumentElement:n.getDocumentElement,getClippingRect:b,getOffsetParent:T,getElementRects:E,getClientRects:p,getDimensions:x,getScale:a,isElement:n.isElement,isRTL:D};function k(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function A(t,r,i){let a=null,o,s=n.getDocumentElement(t);function c(){var e;clearTimeout(o),(e=a)==null||e.disconnect(),a=null}function l(n,i){n===void 0&&(n=!1),i===void 0&&(i=1),c();let u=t.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(n||r(),!p||!m)return;let h=e.floor(f),g=e.floor(s.clientWidth-(d+p)),_=e.floor(s.clientHeight-(f+m)),v=e.floor(d),y={rootMargin:-h+`px `+-g+`px `+-_+`px `+-v+`px`,threshold:e.max(0,e.min(1,i))||1},b=!0;function x(e){let n=e[0].intersectionRatio;if(!k(u,t.getBoundingClientRect()))return l();if(n!==i){if(!b)return l();n?l(!1,n):o=setTimeout(()=>{l(!1,1e-7)},1e3)}b=!1}try{a=new IntersectionObserver(x,{...y,root:s.ownerDocument})}catch{a=new IntersectionObserver(x,y)}a.observe(t)}let u=n.getWindow(t),d=()=>l(i);return u.addEventListener(`resize`,d),l(!0),()=>{u.removeEventListener(`resize`,d),c()}}function j(e,t,r,a){a===void 0&&(a={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver==`function`,layoutShift:u=typeof IntersectionObserver==`function`,animationFrame:d=!1}=a,f=i(e),p=o||s?[...f?n.getOverflowAncestors(f):[],...t?n.getOverflowAncestors(t):[]]:[];p.forEach(e=>{o&&e.addEventListener(`scroll`,r),s&&e.addEventListener(`resize`,r)});let m=f&&u?A(f,r,s):null,h=-1,g=null;c&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;(e=g)==null||e.observe(t)})),r()}),f&&!d&&g.observe(f),t&&g.observe(t));let _,v=d?l(e):null;d&&y();function y(){let t=l(e);v&&!k(v,t)&&r(),v=t,_=requestAnimationFrame(y)}return r(),()=>{var e;p.forEach(e=>{o&&e.removeEventListener(`scroll`,r),s&&e.removeEventListener(`resize`,r)}),m?.(),(e=g)==null||e.disconnect(),g=null,d&&cancelAnimationFrame(_)}}var M=t.offset,N=t.shift,P=t.flip,F=t.size,I=t.hide,L=t.arrow,R=t.limitShift,z=(e,n,r)=>{let i=new Map,a=r??{},o={...O,...a.platform,_c:i};return t.computePosition(e,n,{...a,platform:o})};exports.arrow=L,exports.autoUpdate=j,exports.computePosition=z,exports.flip=P,exports.hide=I,exports.limitShift=R,exports.offset=M,exports.platform=O,exports.shift=N,exports.size=F;
|
package/dist/index44.js
CHANGED
|
@@ -1,88 +1,212 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import "./index42.js";
|
|
2
|
+
import { arrow as e, computePosition as t, flip as n, hide as r, limitShift as i, offset as a, shift as o, size as s } from "./index43.js";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import { useLayoutEffect as l } from "react";
|
|
5
|
+
import * as u from "react-dom";
|
|
6
|
+
//#region ../../node_modules/.pnpm/@floating-ui+react-dom@2.1.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
7
|
+
var d = typeof document < "u" ? l : function() {};
|
|
8
|
+
function f(e, t) {
|
|
9
|
+
if (e === t) return !0;
|
|
10
|
+
if (typeof e != typeof t) return !1;
|
|
11
|
+
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
12
|
+
let n, r, i;
|
|
13
|
+
if (e && t && typeof e == "object") {
|
|
14
|
+
if (Array.isArray(e)) {
|
|
15
|
+
if (n = e.length, n !== t.length) return !1;
|
|
16
|
+
for (r = n; r-- !== 0;) if (!f(e[r], t[r])) return !1;
|
|
17
|
+
return !0;
|
|
18
|
+
}
|
|
19
|
+
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
20
|
+
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
21
|
+
for (r = n; r-- !== 0;) {
|
|
22
|
+
let n = i[r];
|
|
23
|
+
if (!(n === "_owner" && e.$$typeof) && !f(e[n], t[n])) return !1;
|
|
24
|
+
}
|
|
25
|
+
return !0;
|
|
26
|
+
}
|
|
27
|
+
return e !== e && t !== t;
|
|
28
|
+
}
|
|
29
|
+
function p(e) {
|
|
30
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
31
|
+
}
|
|
32
|
+
function m(e, t) {
|
|
33
|
+
let n = p(e);
|
|
34
|
+
return Math.round(t * n) / n;
|
|
35
|
+
}
|
|
36
|
+
function h(e) {
|
|
37
|
+
let t = c.useRef(e);
|
|
38
|
+
return d(() => {
|
|
39
|
+
t.current = e;
|
|
40
|
+
}), t;
|
|
41
|
+
}
|
|
42
|
+
function g(e) {
|
|
43
|
+
e === void 0 && (e = {});
|
|
44
|
+
let { placement: n = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: l = !0, whileElementsMounted: g, open: _ } = e, [v, y] = c.useState({
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0,
|
|
47
|
+
strategy: r,
|
|
48
|
+
placement: n,
|
|
49
|
+
middlewareData: {},
|
|
50
|
+
isPositioned: !1
|
|
51
|
+
}), [b, x] = c.useState(i);
|
|
52
|
+
f(b, i) || x(i);
|
|
53
|
+
let [S, C] = c.useState(null), [w, T] = c.useState(null), E = c.useCallback((e) => {
|
|
54
|
+
e !== A.current && (A.current = e, C(e));
|
|
55
|
+
}, []), D = c.useCallback((e) => {
|
|
56
|
+
e !== j.current && (j.current = e, T(e));
|
|
57
|
+
}, []), O = o || S, k = s || w, A = c.useRef(null), j = c.useRef(null), M = c.useRef(v), N = g != null, P = h(g), F = h(a), I = h(_), L = c.useCallback(() => {
|
|
58
|
+
if (!A.current || !j.current) return;
|
|
59
|
+
let e = {
|
|
60
|
+
placement: n,
|
|
61
|
+
strategy: r,
|
|
62
|
+
middleware: b
|
|
63
|
+
};
|
|
64
|
+
F.current && (e.platform = F.current), t(A.current, j.current, e).then((e) => {
|
|
65
|
+
let t = {
|
|
66
|
+
...e,
|
|
67
|
+
isPositioned: I.current !== !1
|
|
68
|
+
};
|
|
69
|
+
R.current && !f(M.current, t) && (M.current = t, u.flushSync(() => {
|
|
70
|
+
y(t);
|
|
71
|
+
}));
|
|
72
|
+
});
|
|
73
|
+
}, [
|
|
74
|
+
b,
|
|
75
|
+
n,
|
|
76
|
+
r,
|
|
77
|
+
F,
|
|
78
|
+
I
|
|
79
|
+
]);
|
|
80
|
+
d(() => {
|
|
81
|
+
_ === !1 && M.current.isPositioned && (M.current.isPositioned = !1, y((e) => ({
|
|
82
|
+
...e,
|
|
83
|
+
isPositioned: !1
|
|
84
|
+
})));
|
|
85
|
+
}, [_]);
|
|
86
|
+
let R = c.useRef(!1);
|
|
87
|
+
d(() => (R.current = !0, () => {
|
|
88
|
+
R.current = !1;
|
|
89
|
+
}), []), d(() => {
|
|
90
|
+
if (O && (A.current = O), k && (j.current = k), O && k) {
|
|
91
|
+
if (P.current) return P.current(O, k, L);
|
|
92
|
+
L();
|
|
93
|
+
}
|
|
94
|
+
}, [
|
|
95
|
+
O,
|
|
96
|
+
k,
|
|
97
|
+
L,
|
|
98
|
+
P,
|
|
99
|
+
N
|
|
100
|
+
]);
|
|
101
|
+
let z = c.useMemo(() => ({
|
|
102
|
+
reference: A,
|
|
103
|
+
floating: j,
|
|
104
|
+
setReference: E,
|
|
105
|
+
setFloating: D
|
|
106
|
+
}), [E, D]), B = c.useMemo(() => ({
|
|
107
|
+
reference: O,
|
|
108
|
+
floating: k
|
|
109
|
+
}), [O, k]), V = c.useMemo(() => {
|
|
25
110
|
let e = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
compactMode: !0
|
|
30
|
-
},
|
|
31
|
-
tablet: {
|
|
32
|
-
maxCount: 4,
|
|
33
|
-
hideIcons: !1,
|
|
34
|
-
compactMode: !1
|
|
35
|
-
},
|
|
36
|
-
desktop: {
|
|
37
|
-
maxCount: 6,
|
|
38
|
-
hideIcons: !1,
|
|
39
|
-
compactMode: !1
|
|
40
|
-
}
|
|
41
|
-
}[n];
|
|
42
|
-
return {
|
|
43
|
-
maxCount: e?.maxCount ?? t,
|
|
44
|
-
hideIcons: e?.hideIcons ?? !1,
|
|
45
|
-
compactMode: e?.compactMode ?? !1
|
|
111
|
+
position: r,
|
|
112
|
+
left: 0,
|
|
113
|
+
top: 0
|
|
46
114
|
};
|
|
115
|
+
if (!B.floating) return e;
|
|
116
|
+
let t = m(B.floating, v.x), n = m(B.floating, v.y);
|
|
117
|
+
return l ? {
|
|
118
|
+
...e,
|
|
119
|
+
transform: "translate(" + t + "px, " + n + "px)",
|
|
120
|
+
...p(B.floating) >= 1.5 && { willChange: "transform" }
|
|
121
|
+
} : {
|
|
122
|
+
position: r,
|
|
123
|
+
left: t,
|
|
124
|
+
top: n
|
|
125
|
+
};
|
|
126
|
+
}, [
|
|
127
|
+
r,
|
|
128
|
+
l,
|
|
129
|
+
B.floating,
|
|
130
|
+
v.x,
|
|
131
|
+
v.y
|
|
132
|
+
]);
|
|
133
|
+
return c.useMemo(() => ({
|
|
134
|
+
...v,
|
|
135
|
+
update: L,
|
|
136
|
+
refs: z,
|
|
137
|
+
elements: B,
|
|
138
|
+
floatingStyles: V
|
|
139
|
+
}), [
|
|
140
|
+
v,
|
|
141
|
+
L,
|
|
142
|
+
z,
|
|
143
|
+
B,
|
|
144
|
+
V
|
|
145
|
+
]);
|
|
146
|
+
}
|
|
147
|
+
var _ = (t) => {
|
|
148
|
+
function n(e) {
|
|
149
|
+
return {}.hasOwnProperty.call(e, "current");
|
|
47
150
|
}
|
|
48
|
-
let r = e[n];
|
|
49
151
|
return {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
152
|
+
name: "arrow",
|
|
153
|
+
options: t,
|
|
154
|
+
fn(r) {
|
|
155
|
+
let { element: i, padding: a } = typeof t == "function" ? t(r) : t;
|
|
156
|
+
return i && n(i) ? i.current == null ? {} : e({
|
|
157
|
+
element: i.current,
|
|
158
|
+
padding: a
|
|
159
|
+
}).fn(r) : i ? e({
|
|
160
|
+
element: i,
|
|
161
|
+
padding: a
|
|
162
|
+
}).fn(r) : {};
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}, v = (e, t) => {
|
|
166
|
+
let n = a(e);
|
|
167
|
+
return {
|
|
168
|
+
name: n.name,
|
|
169
|
+
fn: n.fn,
|
|
170
|
+
options: [e, t]
|
|
171
|
+
};
|
|
172
|
+
}, y = (e, t) => {
|
|
173
|
+
let n = o(e);
|
|
174
|
+
return {
|
|
175
|
+
name: n.name,
|
|
176
|
+
fn: n.fn,
|
|
177
|
+
options: [e, t]
|
|
178
|
+
};
|
|
179
|
+
}, b = (e, t) => ({
|
|
180
|
+
fn: i(e).fn,
|
|
181
|
+
options: [e, t]
|
|
182
|
+
}), x = (e, t) => {
|
|
183
|
+
let r = n(e);
|
|
184
|
+
return {
|
|
185
|
+
name: r.name,
|
|
186
|
+
fn: r.fn,
|
|
187
|
+
options: [e, t]
|
|
188
|
+
};
|
|
189
|
+
}, S = (e, t) => {
|
|
190
|
+
let n = s(e);
|
|
191
|
+
return {
|
|
192
|
+
name: n.name,
|
|
193
|
+
fn: n.fn,
|
|
194
|
+
options: [e, t]
|
|
195
|
+
};
|
|
196
|
+
}, C = (e, t) => {
|
|
197
|
+
let n = r(e);
|
|
198
|
+
return {
|
|
199
|
+
name: n.name,
|
|
200
|
+
fn: n.fn,
|
|
201
|
+
options: [e, t]
|
|
202
|
+
};
|
|
203
|
+
}, w = (e, t) => {
|
|
204
|
+
let n = _(e);
|
|
205
|
+
return {
|
|
206
|
+
name: n.name,
|
|
207
|
+
fn: n.fn,
|
|
208
|
+
options: [e, t]
|
|
53
209
|
};
|
|
54
|
-
}, i = (e, t) => {
|
|
55
|
-
if (t?.badgeAnimation) switch (t.badgeAnimation) {
|
|
56
|
-
case "bounce": return e ? "animate-bounce" : "hover:-translate-y-1 hover:scale-110";
|
|
57
|
-
case "pulse": return "hover:animate-pulse";
|
|
58
|
-
case "wiggle": return "hover:animate-wiggle";
|
|
59
|
-
case "fade": return "hover:opacity-80";
|
|
60
|
-
case "slide": return "hover:translate-x-1";
|
|
61
|
-
case "none": return "";
|
|
62
|
-
default: return "";
|
|
63
|
-
}
|
|
64
|
-
return e ? "animate-bounce" : "";
|
|
65
|
-
}, a = (e) => {
|
|
66
|
-
if (e?.popoverAnimation) switch (e.popoverAnimation) {
|
|
67
|
-
case "scale": return "animate-scaleIn";
|
|
68
|
-
case "slide": return "animate-slideInDown";
|
|
69
|
-
case "fade": return "animate-fadeIn";
|
|
70
|
-
case "flip": return "animate-flipIn";
|
|
71
|
-
case "none": return "";
|
|
72
|
-
default: return "";
|
|
73
|
-
}
|
|
74
|
-
return "";
|
|
75
|
-
}, o = (t, n, r) => !r || !n ? t : t.length === 0 ? [] : e(t) ? t.map((e) => ({
|
|
76
|
-
...e,
|
|
77
|
-
options: e.options.filter((e) => e.label.toLowerCase().includes(n.toLowerCase()) || e.value.toLowerCase().includes(n.toLowerCase()))
|
|
78
|
-
})).filter((e) => e.options.length > 0) : t.filter((e) => e.label.toLowerCase().includes(n.toLowerCase()) || e.value.toLowerCase().includes(n.toLowerCase())), s = (e, t, n, r) => ({
|
|
79
|
-
minWidth: n || (e === "mobile" ? "0px" : "200px"),
|
|
80
|
-
maxWidth: r || "100%",
|
|
81
|
-
width: t ? "auto" : "100%"
|
|
82
|
-
}), c = (e, t) => {
|
|
83
|
-
if (!t) return e.length;
|
|
84
|
-
let n = t.toLowerCase();
|
|
85
|
-
return e.filter((e) => e.label.toLowerCase().includes(n) || e.value.toLowerCase().includes(n)).length;
|
|
86
210
|
};
|
|
87
211
|
//#endregion
|
|
88
|
-
export {
|
|
212
|
+
export { w as arrow, x as flip, C as hide, b as limitShift, v as offset, y as shift, S as size, g as useFloating };
|
package/dist/index45.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./index2.cjs");require("./index43.cjs");const t=require("./index44.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react-dom");r=e.__toESM(r,1);var i=typeof document<`u`?n.useLayoutEffect:function(){};function a(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!a(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function o(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=o(e);return Math.round(t*n)/n}function c(e){let t=n.useRef(e);return i(()=>{t.current=e}),t}function l(e){e===void 0&&(e={});let{placement:l=`bottom`,strategy:u=`absolute`,middleware:d=[],platform:f,elements:{reference:p,floating:m}={},transform:h=!0,whileElementsMounted:g,open:_}=e,[v,y]=n.useState({x:0,y:0,strategy:u,placement:l,middlewareData:{},isPositioned:!1}),[b,x]=n.useState(d);a(b,d)||x(d);let[S,C]=n.useState(null),[w,T]=n.useState(null),E=n.useCallback(e=>{e!==A.current&&(A.current=e,C(e))},[]),D=n.useCallback(e=>{e!==j.current&&(j.current=e,T(e))},[]),O=p||S,k=m||w,A=n.useRef(null),j=n.useRef(null),M=n.useRef(v),N=g!=null,P=c(g),F=c(f),I=c(_),L=n.useCallback(()=>{if(!A.current||!j.current)return;let e={placement:l,strategy:u,middleware:b};F.current&&(e.platform=F.current),t.computePosition(A.current,j.current,e).then(e=>{let t={...e,isPositioned:I.current!==!1};R.current&&!a(M.current,t)&&(M.current=t,r.flushSync(()=>{y(t)}))})},[b,l,u,F,I]);i(()=>{_===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[_]);let R=n.useRef(!1);i(()=>(R.current=!0,()=>{R.current=!1}),[]),i(()=>{if(O&&(A.current=O),k&&(j.current=k),O&&k){if(P.current)return P.current(O,k,L);L()}},[O,k,L,P,N]);let z=n.useMemo(()=>({reference:A,floating:j,setReference:E,setFloating:D}),[E,D]),B=n.useMemo(()=>({reference:O,floating:k}),[O,k]),V=n.useMemo(()=>{let e={position:u,left:0,top:0};if(!B.floating)return e;let t=s(B.floating,v.x),n=s(B.floating,v.y);return h?{...e,transform:`translate(`+t+`px, `+n+`px)`,...o(B.floating)>=1.5&&{willChange:`transform`}}:{position:u,left:t,top:n}},[u,h,B.floating,v.x,v.y]);return n.useMemo(()=>({...v,update:L,refs:z,elements:B,floatingStyles:V}),[v,L,z,B,V])}var u=e=>{function n(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(r){let{element:i,padding:a}=typeof e==`function`?e(r):e;return i&&n(i)?i.current==null?{}:t.arrow({element:i.current,padding:a}).fn(r):i?t.arrow({element:i,padding:a}).fn(r):{}}}},d=(e,n)=>{let r=t.offset(e);return{name:r.name,fn:r.fn,options:[e,n]}},f=(e,n)=>{let r=t.shift(e);return{name:r.name,fn:r.fn,options:[e,n]}},p=(e,n)=>({fn:t.limitShift(e).fn,options:[e,n]}),m=(e,n)=>{let r=t.flip(e);return{name:r.name,fn:r.fn,options:[e,n]}},h=(e,n)=>{let r=t.size(e);return{name:r.name,fn:r.fn,options:[e,n]}},g=(e,n)=>{let r=t.hide(e);return{name:r.name,fn:r.fn,options:[e,n]}},_=(e,t)=>{let n=u(e);return{name:n.name,fn:n.fn,options:[e,t]}};exports.arrow=_,exports.flip=m,exports.hide=g,exports.limitShift=p,exports.offset=d,exports.shift=f,exports.size=h,exports.useFloating=l;
|
package/dist/index45.js
CHANGED
|
@@ -1,221 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
animationDuration: `${o}s`,
|
|
34
|
-
...h?.badgeColor && { backgroundColor: h.badgeColor },
|
|
35
|
-
...h?.gradient && {
|
|
36
|
-
background: h.gradient,
|
|
37
|
-
color: "white"
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
return /* @__PURE__ */ v(t, {
|
|
41
|
-
className: e(c, u({ variant: d }), h?.gradient && "text-white border-transparent", r.compactMode && "text-xs px-1.5 py-0.5", i === "mobile" && "max-w-30 truncate", a && "shrink-0 whitespace-nowrap", "[&>svg]:pointer-events-auto"),
|
|
42
|
-
style: {
|
|
43
|
-
...y,
|
|
44
|
-
animationDuration: `${s?.duration || o}s`,
|
|
45
|
-
animationDelay: `${s?.delay || 0}s`
|
|
46
|
-
},
|
|
47
|
-
children: [
|
|
48
|
-
p && !r.hideIcons && /* @__PURE__ */ _(p, {
|
|
49
|
-
className: e("h-4 w-4 mr-2", r.compactMode && "h-3 w-3 mr-1", h?.iconColor && "text-current"),
|
|
50
|
-
...h?.iconColor && { style: { color: h.iconColor } }
|
|
51
|
-
}),
|
|
52
|
-
/* @__PURE__ */ _("span", {
|
|
53
|
-
className: e(i === "mobile" && "truncate"),
|
|
54
|
-
children: l.label
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ _("div", {
|
|
57
|
-
role: "button",
|
|
58
|
-
tabIndex: 0,
|
|
59
|
-
onClick: (e) => {
|
|
60
|
-
e.stopPropagation(), g(n);
|
|
61
|
-
},
|
|
62
|
-
onKeyDown: (e) => {
|
|
63
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), g(n));
|
|
64
|
-
},
|
|
65
|
-
"aria-label": `Remove ${l.label} from selection`,
|
|
66
|
-
className: "ml-2 h-4 w-4 cursor-pointer hover:bg-white/20 rounded-sm p-0.5 -m-0.5 focus:outline-none focus:ring-1 focus:ring-white/50",
|
|
67
|
-
children: /* @__PURE__ */ _(m, { className: e("h-3 w-3", r.compactMode && "h-2.5 w-2.5") })
|
|
68
|
-
})
|
|
69
|
-
]
|
|
70
|
-
}, n);
|
|
71
|
-
}).filter(Boolean), n.length > r.maxCount && /* @__PURE__ */ v(t, {
|
|
72
|
-
className: e("bg-transparent text-foreground border-foreground/1 hover:bg-transparent", c, u({ variant: d }), r.compactMode && "text-xs px-1.5 py-0.5", a && "shrink-0 whitespace-nowrap", "[&>svg]:pointer-events-auto"),
|
|
73
|
-
style: {
|
|
74
|
-
animationDuration: `${s?.duration || o}s`,
|
|
75
|
-
animationDelay: `${s?.delay || 0}s`
|
|
76
|
-
},
|
|
77
|
-
children: [`+ ${n.length - r.maxCount} more`, /* @__PURE__ */ _(m, {
|
|
78
|
-
className: e("ml-2 h-4 w-4 cursor-pointer", r.compactMode && "ml-1 h-3 w-3"),
|
|
79
|
-
onClick: (e) => {
|
|
80
|
-
e.stopPropagation(), y();
|
|
81
|
-
}
|
|
82
|
-
})]
|
|
83
|
-
})]
|
|
84
|
-
}), /* @__PURE__ */ v("div", {
|
|
85
|
-
className: "flex items-center justify-between",
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ _("div", {
|
|
88
|
-
role: "button",
|
|
89
|
-
tabIndex: 0,
|
|
90
|
-
onClick: (e) => {
|
|
91
|
-
e.stopPropagation(), b();
|
|
92
|
-
},
|
|
93
|
-
onKeyDown: (e) => {
|
|
94
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), b());
|
|
95
|
-
},
|
|
96
|
-
"aria-label": `Clear all ${n.length} selected options`,
|
|
97
|
-
className: "flex items-center justify-center h-4 w-4 mx-2 cursor-pointer text-muted-foreground hover:text-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1 rounded-sm",
|
|
98
|
-
children: /* @__PURE__ */ _(h, { className: "h-4 w-4" })
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ _(l, {
|
|
101
|
-
orientation: "vertical",
|
|
102
|
-
className: "flex min-h-6 h-full"
|
|
103
|
-
}),
|
|
104
|
-
/* @__PURE__ */ _(p, {
|
|
105
|
-
className: "h-4 mx-2 cursor-pointer text-muted-foreground",
|
|
106
|
-
"aria-hidden": "true"
|
|
107
|
-
})
|
|
108
|
-
]
|
|
109
|
-
})]
|
|
110
|
-
}), x = ({ placeholder: e }) => /* @__PURE__ */ v("div", {
|
|
111
|
-
className: "flex items-center justify-between w-full mx-auto",
|
|
112
|
-
children: [/* @__PURE__ */ _("span", {
|
|
113
|
-
className: "text-sm text-muted-foreground mx-3",
|
|
114
|
-
children: e
|
|
115
|
-
}), /* @__PURE__ */ _(p, { className: "h-4 cursor-pointer text-muted-foreground mx-2" })]
|
|
116
|
-
}), S = ({ filteredOptions: t, hideSelectAll: u, searchValue: p, searchable: m, selectedValues: h, getAllOptions: y, toggleAll: b, toggleOption: x, handleClear: S, setIsPopoverOpen: C, handleInputKeyDown: w, setSearchValue: T, multiSelectId: E, emptyIndicator: D, screenSize: O }) => /* @__PURE__ */ v(n, { children: [
|
|
117
|
-
m && /* @__PURE__ */ _(a, {
|
|
118
|
-
placeholder: "Search options...",
|
|
119
|
-
onKeyDown: w,
|
|
120
|
-
value: p,
|
|
121
|
-
onValueChange: T,
|
|
122
|
-
"aria-label": "Search through available options",
|
|
123
|
-
"aria-describedby": `${E}-search-help`
|
|
124
|
-
}),
|
|
125
|
-
m && /* @__PURE__ */ _("div", {
|
|
126
|
-
id: `${E}-search-help`,
|
|
127
|
-
className: "sr-only",
|
|
128
|
-
children: "Type to filter options. Use arrow keys to navigate results."
|
|
129
|
-
}),
|
|
130
|
-
/* @__PURE__ */ v(s, {
|
|
131
|
-
className: e("max-h-[40vh] overflow-y-auto multiselect-scrollbar", O === "mobile" && "max-h-[50vh]", "overscroll-behavior-y-contain"),
|
|
132
|
-
children: [
|
|
133
|
-
/* @__PURE__ */ _(r, { children: D || "No results found." }),
|
|
134
|
-
" ",
|
|
135
|
-
!u && !p && /* @__PURE__ */ _(i, { children: /* @__PURE__ */ v(o, {
|
|
136
|
-
onSelect: b,
|
|
137
|
-
role: "option",
|
|
138
|
-
"aria-selected": h.length === y().filter((e) => !e.disabled).length,
|
|
139
|
-
"aria-label": `Select all ${y().length} options`,
|
|
140
|
-
className: "cursor-pointer",
|
|
141
|
-
children: [/* @__PURE__ */ _("div", {
|
|
142
|
-
className: e("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary", h.length === y().filter((e) => !e.disabled).length ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"),
|
|
143
|
-
"aria-hidden": "true",
|
|
144
|
-
children: /* @__PURE__ */ _(f, { className: "h-4 w-4" })
|
|
145
|
-
}), /* @__PURE__ */ v("span", { children: [
|
|
146
|
-
"(Select All",
|
|
147
|
-
y().length > 20 ? ` - ${y().length} options` : "",
|
|
148
|
-
")"
|
|
149
|
-
] })]
|
|
150
|
-
}, "all") }),
|
|
151
|
-
d(t) ? t.map((t) => /* @__PURE__ */ _(i, {
|
|
152
|
-
heading: t.heading,
|
|
153
|
-
children: t.options.map((t) => {
|
|
154
|
-
let n = h.includes(t.value);
|
|
155
|
-
return /* @__PURE__ */ v(o, {
|
|
156
|
-
onSelect: () => x(t.value),
|
|
157
|
-
role: "option",
|
|
158
|
-
"aria-selected": n,
|
|
159
|
-
"aria-disabled": t.disabled,
|
|
160
|
-
"aria-label": `${t.label}${n ? ", selected" : ", not selected"}${t.disabled ? ", disabled" : ""}`,
|
|
161
|
-
className: e("cursor-pointer", t.disabled && "opacity-50 cursor-not-allowed"),
|
|
162
|
-
disabled: t.disabled,
|
|
163
|
-
children: [
|
|
164
|
-
/* @__PURE__ */ _("div", {
|
|
165
|
-
className: e("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary", n ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"),
|
|
166
|
-
"aria-hidden": "true",
|
|
167
|
-
children: /* @__PURE__ */ _(f, { className: "h-4 w-4" })
|
|
168
|
-
}),
|
|
169
|
-
t.icon && /* @__PURE__ */ _(t.icon, {
|
|
170
|
-
className: "mr-2 h-4 w-4 text-muted-foreground",
|
|
171
|
-
"aria-hidden": "true"
|
|
172
|
-
}),
|
|
173
|
-
/* @__PURE__ */ _("span", { children: t.label })
|
|
174
|
-
]
|
|
175
|
-
}, t.value);
|
|
176
|
-
})
|
|
177
|
-
}, t.heading)) : /* @__PURE__ */ _(i, { children: t.map((t) => {
|
|
178
|
-
let n = h.includes(t.value);
|
|
179
|
-
return /* @__PURE__ */ v(o, {
|
|
180
|
-
onSelect: () => x(t.value),
|
|
181
|
-
role: "option",
|
|
182
|
-
"aria-selected": n,
|
|
183
|
-
"aria-disabled": t.disabled,
|
|
184
|
-
"aria-label": `${t.label}${n ? ", selected" : ", not selected"}${t.disabled ? ", disabled" : ""}`,
|
|
185
|
-
className: e("cursor-pointer", t.disabled && "opacity-50 cursor-not-allowed"),
|
|
186
|
-
disabled: t.disabled,
|
|
187
|
-
children: [
|
|
188
|
-
/* @__PURE__ */ _("div", {
|
|
189
|
-
className: e("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary", n ? "bg-primary text-primary-foreground" : "opacity-50 [&_svg]:invisible"),
|
|
190
|
-
"aria-hidden": "true",
|
|
191
|
-
children: /* @__PURE__ */ _(f, { className: "h-4 w-4" })
|
|
192
|
-
}),
|
|
193
|
-
t.icon && /* @__PURE__ */ _(t.icon, {
|
|
194
|
-
className: "mr-2 h-4 w-4 text-muted-foreground",
|
|
195
|
-
"aria-hidden": "true"
|
|
196
|
-
}),
|
|
197
|
-
/* @__PURE__ */ _("span", { children: t.label })
|
|
198
|
-
]
|
|
199
|
-
}, t.value);
|
|
200
|
-
}) }),
|
|
201
|
-
/* @__PURE__ */ _(c, {}),
|
|
202
|
-
/* @__PURE__ */ _(i, { children: /* @__PURE__ */ v("div", {
|
|
203
|
-
className: "flex items-center justify-between",
|
|
204
|
-
children: [h.length > 0 && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(o, {
|
|
205
|
-
onSelect: S,
|
|
206
|
-
className: "flex-1 justify-center cursor-pointer",
|
|
207
|
-
children: "Clear"
|
|
208
|
-
}), /* @__PURE__ */ _(l, {
|
|
209
|
-
orientation: "vertical",
|
|
210
|
-
className: "flex min-h-6 h-full"
|
|
211
|
-
})] }), /* @__PURE__ */ _(o, {
|
|
212
|
-
onSelect: () => C(!1),
|
|
213
|
-
className: "flex-1 justify-center cursor-pointer max-w-full",
|
|
214
|
-
children: "Close"
|
|
215
|
-
})]
|
|
216
|
-
}) })
|
|
217
|
-
]
|
|
218
|
-
})
|
|
219
|
-
] });
|
|
1
|
+
import { useLayoutEffect2 as e } from "./index16.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.4_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
4
|
+
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
+
value: t,
|
|
6
|
+
configurable: !0
|
|
7
|
+
});
|
|
8
|
+
function i(n) {
|
|
9
|
+
let [r, i] = t.useState(void 0);
|
|
10
|
+
return e(() => {
|
|
11
|
+
if (n) {
|
|
12
|
+
i({
|
|
13
|
+
width: n.offsetWidth,
|
|
14
|
+
height: n.offsetHeight
|
|
15
|
+
});
|
|
16
|
+
let e = new ResizeObserver((e) => {
|
|
17
|
+
if (!Array.isArray(e) || !e.length) return;
|
|
18
|
+
let t = e[0], r, a;
|
|
19
|
+
if ("borderBoxSize" in t) {
|
|
20
|
+
let e = t.borderBoxSize, n = Array.isArray(e) ? e[0] : e;
|
|
21
|
+
r = n.inlineSize, a = n.blockSize;
|
|
22
|
+
} else r = n.offsetWidth, a = n.offsetHeight;
|
|
23
|
+
i({
|
|
24
|
+
width: r,
|
|
25
|
+
height: a
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
return e.observe(n, { box: "border-box" }), () => e.unobserve(n);
|
|
29
|
+
} else i(void 0);
|
|
30
|
+
}, [n]), r;
|
|
31
|
+
}
|
|
32
|
+
r(i, "useSize");
|
|
220
33
|
//#endregion
|
|
221
|
-
export {
|
|
34
|
+
export { i as useSize };
|
package/dist/index46.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index17.cjs");let n=require("react");n=e.__toESM(n,1);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0});function a(e){let[r,i]=n.useState(void 0);return t.useLayoutEffect2(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let n=t[0],r,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;i({width:r,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else i(void 0)},[e]),r}i(a,`useSize`),exports.useSize=a;
|