@gv-tech/ui-web 2.28.0 → 2.29.1
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/__contracts.d.ts +44 -2
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/accordion-D5QXSsCK.mjs +248 -0
- package/dist/accordion-DjyDOX-h.js +1 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +5 -5
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/alert-dialog-B-a0Wa1M.mjs +182 -0
- package/dist/alert-dialog-DYQAhGBC.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +13 -13
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.mjs +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +5 -5
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +4 -4
- package/dist/aspect-ratio-C-KOOyGP.js +1 -0
- package/dist/{aspect-ratio-DnChDaBi.mjs → aspect-ratio-s7Ji1MSr.mjs} +10 -9
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +2 -2
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/aspect-ratio.mjs +1 -1
- package/dist/attachment.cjs +1 -0
- package/dist/attachment.d.ts +23 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.mjs +101 -0
- package/dist/attachment.test.d.ts +2 -0
- package/dist/attachment.test.d.ts.map +1 -0
- package/dist/avatar-4K3XjhP8.js +1 -0
- package/dist/avatar-d8Di248f.mjs +138 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +7 -7
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +2 -2
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.mjs +2 -2
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +7 -7
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.mjs +25 -27
- package/dist/bubble.cjs +1 -0
- package/dist/bubble.d.ts +13 -0
- package/dist/bubble.d.ts.map +1 -0
- package/dist/bubble.mjs +72 -0
- package/dist/bubble.test.d.ts +2 -0
- package/dist/bubble.test.d.ts.map +1 -0
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.d.ts +4 -4
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button-group.mjs +7 -8
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +2 -2
- package/dist/button.d.ts.map +1 -1
- package/dist/button.mjs +7 -7
- package/dist/calendar-DFj14O6r.js +1 -0
- package/dist/{calendar-Dg6VGycy.mjs → calendar-UW8h9dfh.mjs} +870 -842
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +3 -3
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +7 -7
- package/dist/card.d.ts.map +1 -1
- package/dist/card.mjs +5 -5
- package/dist/carousel-CNGpg5df.js +1 -0
- package/dist/{carousel-DbDoNdqJ.mjs → carousel-DG9xGJns.mjs} +53 -55
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +6 -6
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.d.ts +4 -4
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/checkbox-BCgbTAdU.js +1 -0
- package/dist/checkbox-Dq8VHKDH.mjs +186 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +1 -0
- package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +63 -0
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +4 -4
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.mjs +7 -7
- package/dist/combobox-CpPIGtPJ.js +4 -0
- package/dist/combobox-b4OmCNw1.mjs +5887 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +14 -14
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.mjs +1 -1
- package/dist/command-5hobOyGG.mjs +545 -0
- package/dist/command-Dbqnm9kI.js +1 -0
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +10 -10
- package/dist/command.d.ts.map +1 -1
- package/dist/command.mjs +1 -1
- package/dist/context-menu-DyTUismw.js +1 -0
- package/dist/context-menu-DzzU-_v8.mjs +317 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +16 -16
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.mjs +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +11 -11
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.mjs +25 -25
- package/dist/direction.cjs +1 -1
- package/dist/direction.d.ts +2 -2
- package/dist/direction.d.ts.map +1 -1
- package/dist/direction.mjs +1 -1
- package/dist/dist-1zUKVGvf.js +1 -0
- package/dist/dist-B057I8ju.mjs +30 -0
- package/dist/dist-BB78QQyQ.mjs +41 -0
- package/dist/dist-BBvidwzC.js +1 -0
- package/dist/{dist-Cacc4QIh.mjs → dist-BEbV0Hal.mjs} +9 -5
- package/dist/dist-BPL7gUpg.mjs +18 -0
- package/dist/dist-BTUvBzOm.js +1 -0
- package/dist/dist-BU-TFzJf.js +1 -0
- package/dist/dist-Bb5W_J2F.mjs +39 -0
- package/dist/dist-BbI6NHqR.mjs +23 -0
- package/dist/dist-BexAB6yo.mjs +192 -0
- package/dist/dist-BgXIqHHq.js +1 -0
- package/dist/dist-Bvfb4y_L.mjs +100 -0
- package/dist/dist-C8Pm6LRc.js +1 -0
- package/dist/dist-CPAF050o.mjs +90 -0
- package/dist/dist-CS572Be42.mjs +11 -0
- package/dist/dist-CUvxOuXM.mjs +551 -0
- package/dist/dist-C_iFkwIX.js +1 -0
- package/dist/dist-ClYM7l1t.js +1 -0
- package/dist/dist-CpKLY_uZ.mjs +96 -0
- package/dist/dist-D1qkELLT.js +1 -0
- package/dist/dist-D7-Fky36.js +1 -0
- package/dist/dist-DEpkkABT.js +1 -0
- package/dist/dist-DI1vapnL.mjs +20 -0
- package/dist/dist-DJqkhIXb2.js +1 -0
- package/dist/dist-DKXojpVG.js +1 -0
- package/dist/dist-DYUvPCPC.js +1 -0
- package/dist/dist-DZiOPWLp.js +1 -0
- package/dist/dist-DatgTWLz.mjs +202 -0
- package/dist/dist-Dm3IQk5b.mjs +685 -0
- package/dist/dist-DoivLw3t.js +1 -0
- package/dist/dist-Dq-h6VAy.mjs +118 -0
- package/dist/dist-Dt6m-kwU.mjs +221 -0
- package/dist/dist-E8ieJTBC.mjs +190 -0
- package/dist/{dist-C9PlF532.mjs → dist-GazS1kfR.mjs} +1 -1
- package/dist/dist-N97cIp0_.js +1 -0
- package/dist/dist-OqDzLHTa.mjs +460 -0
- package/dist/dist-Qm9hFvM1.js +1 -0
- package/dist/dist-UkWa-Arh.mjs +16 -0
- package/dist/dist-UnTrOmPV.js +1 -0
- package/dist/dist-YAADIsyo.js +1 -0
- package/dist/dist-Zs2sjYhL.js +1 -0
- package/dist/dist-hFLuJoMi.js +1 -0
- package/dist/dist-s7ibhASj.mjs +181 -0
- package/dist/dist-vu20fMUK.mjs +93 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +11 -11
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +2 -2
- package/dist/{dropdown-menu-CriaO1_i.mjs → dropdown-menu-BqAhn64y.mjs} +109 -143
- package/dist/dropdown-menu-BtKOr--r.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +16 -16
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.mjs +1 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.d.ts +7 -7
- package/dist/empty.d.ts.map +1 -1
- package/dist/empty.mjs +2 -2
- package/dist/es2015-DbAsWDbs.js +41 -0
- package/dist/es2015-DbsmTzuc.mjs +571 -0
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +12 -12
- package/dist/field.d.ts.map +1 -1
- package/dist/field.mjs +6 -7
- package/dist/floating-ui.react-dom-BwFRxNGc.js +1 -0
- package/dist/{floating-ui.react-dom-DgS_bqyY.mjs → floating-ui.react-dom-CyupHsR6.mjs} +249 -276
- package/dist/form.cjs +1 -1
- package/dist/form.d.ts +8 -6
- package/dist/form.d.ts.map +1 -1
- package/dist/form.mjs +8 -8
- package/dist/hover-card-DMsxpR9G.mjs +178 -0
- package/dist/hover-card-DWXusgiI.js +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +4 -4
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +40 -34
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +7 -7
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.mjs +6 -11
- package/dist/input-otp-D49Y9VcH.mjs +409 -0
- package/dist/input-otp-u3obpt-Q.js +20 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +5 -5
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.mjs +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.d.ts +11 -11
- package/dist/item.d.ts.map +1 -1
- package/dist/item.mjs +7 -8
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.d.ts.map +1 -1
- package/dist/kbd.mjs +2 -2
- package/dist/label-Dacwh21G.js +1 -0
- package/dist/label-DsSICLPc.mjs +28 -0
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +2 -2
- package/dist/label.d.ts.map +1 -1
- package/dist/label.mjs +1 -1
- package/dist/marker.cjs +1 -0
- package/dist/marker.d.ts +12 -0
- package/dist/marker.d.ts.map +1 -0
- package/dist/marker.mjs +40 -0
- package/dist/marker.test.d.ts +2 -0
- package/dist/marker.test.d.ts.map +1 -0
- package/dist/menubar-BYNeRuzx.js +1 -0
- package/dist/{menubar-BcyqIJgy.mjs → menubar-DZqEj6S1.mjs} +138 -172
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +17 -17
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -1
- package/dist/message-scroller-CS4t7Ypn.mjs +824 -0
- package/dist/message-scroller-DqLu0YI6.js +1 -0
- package/dist/message-scroller.cjs +1 -0
- package/dist/message-scroller.d.ts +13 -0
- package/dist/message-scroller.d.ts.map +1 -0
- package/dist/message-scroller.mjs +3 -0
- package/dist/message-scroller.test.d.ts +2 -0
- package/dist/message-scroller.test.d.ts.map +1 -0
- package/dist/message.cjs +1 -0
- package/dist/message.d.ts +11 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/message.mjs +50 -0
- package/dist/message.test.d.ts +2 -0
- package/dist/message.test.d.ts.map +1 -0
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.d.ts +3 -3
- package/dist/native-select.d.ts.map +1 -1
- package/dist/native-select.mjs +12 -12
- package/dist/navigation-menu-B36G3O83.js +1 -0
- package/dist/navigation-menu-RO6thDOF.mjs +636 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +9 -9
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.mjs +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +8 -8
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +42 -35
- package/dist/popover-DSBkc70V.mjs +243 -0
- package/dist/popover-DUHbvKB8.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +8 -8
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-B9z08UXf.js +6 -0
- package/dist/progress-CQ4nQ85t.mjs +92 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +2 -2
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.mjs +1 -1
- package/dist/questionnaire-CVED7G7R.mjs +1159 -0
- package/dist/questionnaire-PWClWvST.js +1 -0
- package/dist/questionnaire.cjs +1 -0
- package/dist/questionnaire.d.ts +22 -0
- package/dist/questionnaire.d.ts.map +1 -0
- package/dist/questionnaire.mjs +4 -0
- package/dist/questionnaire.test.d.ts +2 -0
- package/dist/questionnaire.test.d.ts.map +1 -0
- package/dist/radio-group-Bd3WbH5I.js +1 -0
- package/dist/radio-group-TRiAhMZB.mjs +266 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/resizable-Cq60hEWB.js +1 -0
- package/dist/resizable-Qc8cVUKd.mjs +2857 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +3 -3
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area-D6MiNHnJ.mjs +564 -0
- package/dist/scroll-area-DFUdJeSZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +3 -3
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.mjs +1 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.d.ts +1 -1
- package/dist/scroll-to-top.d.ts.map +1 -1
- package/dist/scroll-to-top.mjs +18 -16
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.mjs +17 -17
- package/dist/select-BFJUmjvX.mjs +830 -0
- package/dist/select-iQFoKU1s.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +11 -11
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -1
- package/dist/separator-2kr96SyF.mjs +40 -0
- package/dist/separator-Bo49G2aj.js +1 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +2 -2
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.mjs +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +9 -9
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +23 -23
- package/dist/sidebar-C6O8hLkz.js +1 -0
- package/dist/{sidebar-B-sWccYh.mjs → sidebar-DM9ee9wf.mjs} +66 -66
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.d.ts +24 -24
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/sidebar.mjs +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider-CagVxozY.js +1 -0
- package/dist/slider-CdTCoQu1.mjs +485 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +2 -2
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.mjs +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +2 -4
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.mjs +8 -8
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.d.ts +2 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/spinner.mjs +12 -7
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.d.ts +1 -1
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/support-fab.mjs +22 -22
- package/dist/switch-CoeAC1Wk.js +1 -0
- package/dist/switch-zUBdj7jK.mjs +174 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +2 -2
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.d.ts +9 -13
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/table-of-contents.mjs +3 -2
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +8 -8
- package/dist/table.d.ts.map +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs-DaE9pEbo.mjs +160 -0
- package/dist/tabs-TMhXe20x.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +5 -5
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.mjs +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.d.ts +1 -1
- package/dist/text.d.ts.map +1 -1
- package/dist/text.mjs +3 -3
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +1 -1
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/theme-provider.d.ts +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/theme-toggle-3RStptYf.mjs +73 -0
- package/dist/theme-toggle-DKh8WFLT.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.d.ts +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/theme-toggle.mjs +1 -1
- package/dist/toast-B0S3F09s.js +1 -0
- package/dist/toast-D0Yb-K84.mjs +445 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.d.ts +1 -1
- package/dist/toast.d.ts.map +1 -1
- package/dist/toast.mjs +1 -1
- package/dist/{toaster-DfDb2-aI.js → toaster-CX9im8R_.js} +1 -1
- package/dist/{toaster-Czhz-ktg.mjs → toaster-gT2b7mfE.mjs} +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.d.ts +1 -1
- package/dist/toaster.d.ts.map +1 -1
- package/dist/toaster.mjs +1 -1
- package/dist/toggle-B0hXPsi7.js +1 -0
- package/dist/toggle-BAeKd2N0.mjs +59 -0
- package/dist/toggle-group-CEKhUozD.mjs +167 -0
- package/dist/toggle-group-htyug3G7.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +3 -3
- package/dist/toggle-group.d.ts.map +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.d.ts +2 -2
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.mjs +1 -1
- package/dist/tooltip-BZazhXDZ.js +1 -0
- package/dist/tooltip-R_nK_Qh5.mjs +390 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +5 -5
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +18 -16
- package/src/__contracts.ts +438 -278
- package/src/accordion.tsx +4 -6
- package/src/alert-dialog.tsx +6 -7
- package/src/alert.tsx +5 -7
- package/src/aspect-ratio.tsx +1 -2
- package/src/attachment.tsx +202 -0
- package/src/avatar.tsx +1 -2
- package/src/badge.tsx +2 -3
- package/src/breadcrumb.tsx +4 -8
- package/src/bubble.tsx +115 -0
- package/src/button-group.tsx +7 -8
- package/src/button.tsx +7 -9
- package/src/calendar.tsx +14 -14
- package/src/card.tsx +6 -7
- package/src/carousel.tsx +16 -17
- package/src/chart.tsx +1 -4
- package/src/checkbox.tsx +4 -6
- package/src/collapsible.tsx +1 -2
- package/src/combobox.tsx +8 -8
- package/src/command.tsx +8 -9
- package/src/context-menu.tsx +10 -12
- package/src/dialog.tsx +6 -7
- package/src/direction.tsx +1 -2
- package/src/drawer.tsx +3 -5
- package/src/dropdown-menu.tsx +10 -12
- package/src/empty.tsx +3 -5
- package/src/field.tsx +10 -11
- package/src/form.tsx +8 -8
- package/src/hooks/use-mobile.ts +1 -1
- package/src/hover-card.tsx +3 -5
- package/src/index.ts +54 -0
- package/src/input-group.tsx +14 -22
- package/src/input-otp.tsx +5 -6
- package/src/input.tsx +2 -4
- package/src/item.tsx +11 -12
- package/src/kbd.tsx +2 -2
- package/src/label.tsx +2 -4
- package/src/marker.tsx +61 -0
- package/src/menubar.tsx +11 -13
- package/src/message-scroller.tsx +133 -0
- package/src/message.tsx +85 -0
- package/src/native-select.tsx +2 -3
- package/src/navigation-menu.tsx +8 -10
- package/src/pagination.tsx +11 -10
- package/src/popover.tsx +3 -5
- package/src/progress.tsx +2 -4
- package/src/questionnaire.tsx +333 -0
- package/src/radio-group.tsx +2 -3
- package/src/resizable.tsx +1 -4
- package/src/scroll-area.tsx +3 -5
- package/src/scroll-to-top.tsx +7 -2
- package/src/search.tsx +2 -1
- package/src/select.tsx +8 -10
- package/src/separator.tsx +4 -6
- package/src/setupTests.ts +9 -9
- package/src/sheet.tsx +6 -7
- package/src/sidebar.tsx +17 -17
- package/src/skeleton.tsx +1 -2
- package/src/slider.tsx +5 -7
- package/src/sonner.tsx +0 -5
- package/src/spinner.tsx +14 -5
- package/src/support-fab.tsx +5 -1
- package/src/switch.tsx +4 -6
- package/src/table-of-contents.tsx +15 -13
- package/src/table.tsx +2 -4
- package/src/tabs.tsx +9 -11
- package/src/text.tsx +4 -4
- package/src/textarea.tsx +2 -4
- package/src/theme-provider.tsx +1 -1
- package/src/theme-toggle.tsx +26 -23
- package/src/toast.tsx +3 -4
- package/src/toaster.tsx +2 -1
- package/src/toggle-group.tsx +5 -6
- package/src/toggle.tsx +5 -7
- package/src/tooltip.tsx +3 -5
- package/dist/accordion-Dd8Hrexd.mjs +0 -244
- package/dist/accordion-DdSOiVyo.js +0 -1
- package/dist/alert-dialog-B7zX3gJX.js +0 -7
- package/dist/alert-dialog-BQoG5g_w.mjs +0 -213
- package/dist/aspect-ratio-QD1ZXP2B.js +0 -1
- package/dist/avatar-C4onD8-4.mjs +0 -127
- package/dist/avatar-ki_M47qG.js +0 -1
- package/dist/calendar-D9sapvfY.js +0 -1
- package/dist/carousel-6oFHLN7R.js +0 -1
- package/dist/checkbox-BLgY82mB.js +0 -1
- package/dist/checkbox-Bts_zfqd.mjs +0 -173
- package/dist/combobox-6qNx9Wbb.js +0 -4
- package/dist/combobox-yDMqxM_J.mjs +0 -5522
- package/dist/command-C6wJ5giF.mjs +0 -576
- package/dist/command-DCrPL1iW.js +0 -1
- package/dist/context-menu-CydUpD4W.mjs +0 -349
- package/dist/context-menu-DQ7XuuG5.js +0 -1
- package/dist/dist-1C8JOpVg.js +0 -1
- package/dist/dist-B1OcuinL.mjs +0 -558
- package/dist/dist-BGZDG175.mjs +0 -199
- package/dist/dist-BPBwSSyk.mjs +0 -8
- package/dist/dist-BPX1UGAz2.js +0 -1
- package/dist/dist-BRsDdVlJ.js +0 -1
- package/dist/dist-BWwCr-xN.mjs +0 -118
- package/dist/dist-BYdcKuDi.mjs +0 -16
- package/dist/dist-BlB11V_z.mjs +0 -27
- package/dist/dist-Bm8Cuttq.mjs +0 -76
- package/dist/dist-Byhx2fDJ.js +0 -1
- package/dist/dist-CCXBcfM3.js +0 -1
- package/dist/dist-CCokLFyA.mjs +0 -10
- package/dist/dist-CDU9vno-.mjs +0 -18
- package/dist/dist-CEJNUZGZ.js +0 -1
- package/dist/dist-CJolxugc.js +0 -1
- package/dist/dist-CQhWBhaI.mjs +0 -91
- package/dist/dist-CRLbUj9C.js +0 -1
- package/dist/dist-CSkpam6a.js +0 -1
- package/dist/dist-CWElW7UD.js +0 -1
- package/dist/dist-CXbzwSnE.js +0 -1
- package/dist/dist-CYj6O95k.mjs +0 -220
- package/dist/dist-C_45sBzc2.js +0 -1
- package/dist/dist-Cb7OVHcJ.js +0 -1
- package/dist/dist-Ccv5O-Vw.js +0 -1
- package/dist/dist-ChuP-5Gb.js +0 -1
- package/dist/dist-CiM892Rg.js +0 -1
- package/dist/dist-CuMQq0hV.js +0 -1
- package/dist/dist-DGzGsPqo2.mjs +0 -6
- package/dist/dist-DMnXk8Uo.js +0 -1
- package/dist/dist-DPBTfUqI.mjs +0 -96
- package/dist/dist-DR0lXVFG.js +0 -1
- package/dist/dist-Da7BU5sd.js +0 -5
- package/dist/dist-Df2ez-DA.mjs +0 -12
- package/dist/dist-DuTFGM_g.mjs +0 -45
- package/dist/dist-DynSBUGq.js +0 -1
- package/dist/dist-Dz3LbuDd.mjs +0 -60
- package/dist/dist-GhACpuJb2.mjs +0 -73
- package/dist/dist-N3JLy7yk.mjs +0 -29
- package/dist/dist-o4zlRoDG.js +0 -1
- package/dist/dist-rGeQfsgN.mjs +0 -66
- package/dist/dist-tvb2Wafb.mjs +0 -153
- package/dist/dist-xgVOvcNx.mjs +0 -11
- package/dist/dropdown-menu-BoJvZ3Fj.js +0 -1
- package/dist/es2015-BhmbVcui.mjs +0 -701
- package/dist/es2015-D22cM8Q_.js +0 -41
- package/dist/floating-ui.react-dom-DpCJEf_x.js +0 -1
- package/dist/hover-card-CJ-ibpbC.mjs +0 -187
- package/dist/hover-card-CK5SjVLL.js +0 -1
- package/dist/input-otp-BH_9dVhh.mjs +0 -391
- package/dist/input-otp-BibboKMt.js +0 -20
- package/dist/label-BXMSoyyu.js +0 -1
- package/dist/label-C8GNfPU0.mjs +0 -25
- package/dist/menubar-DPxokWFI.js +0 -1
- package/dist/navigation-menu-2yE2MUu-.js +0 -1
- package/dist/navigation-menu-N8gkxEXE.mjs +0 -628
- package/dist/popover-D1AO-E8p.js +0 -1
- package/dist/popover-wQACF3ut.mjs +0 -245
- package/dist/progress-DPWSEWa5.mjs +0 -86
- package/dist/progress-ShXZwOfj.js +0 -6
- package/dist/radio-group-CQbZCQmj.mjs +0 -199
- package/dist/radio-group-DAEi5vW_.js +0 -1
- package/dist/resizable-Cv-mKMKP.js +0 -1
- package/dist/resizable-DJSE3e5L.mjs +0 -1561
- package/dist/scroll-area-8QcqkHnC.mjs +0 -530
- package/dist/scroll-area-Cqqinhxf.js +0 -1
- package/dist/select-DdUveoSA.js +0 -1
- package/dist/select-yoeH35x2.mjs +0 -778
- package/dist/separator-BU1ea5gl.mjs +0 -35
- package/dist/separator-DBjErwHf.js +0 -1
- package/dist/shim-B5sEfNEJ.js +0 -1
- package/dist/shim-DX33EwUw.mjs +0 -91
- package/dist/sidebar-DIW-1cin.js +0 -1
- package/dist/slider-CCPXejUF.mjs +0 -388
- package/dist/slider-w05gD_Ix.js +0 -1
- package/dist/switch-CDBqsWQa.mjs +0 -112
- package/dist/switch-X2WBJsUu.js +0 -1
- package/dist/tabs-DzvgrVzk.js +0 -1
- package/dist/tabs-KDeHjVQU.mjs +0 -160
- package/dist/theme-toggle-C2Y4bIM3.js +0 -1
- package/dist/theme-toggle-clE-HpSS.mjs +0 -64
- package/dist/toast-1keyrzem.js +0 -1
- package/dist/toast-DVI6jPq5.mjs +0 -428
- package/dist/toggle-BGkq5XDM.js +0 -1
- package/dist/toggle-BfIIdlA6.mjs +0 -58
- package/dist/toggle-group-CbqgoPFU.mjs +0 -167
- package/dist/toggle-group-D7hR4BT2.js +0 -1
- package/dist/tooltip-CAIbshMk.js +0 -1
- package/dist/tooltip-D_o8Z-Ya.mjs +0 -380
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { useLayoutEffect as t } from "react";
|
|
3
3
|
import * as n from "react-dom";
|
|
4
|
-
//#region ../../node_modules/.bun/@floating-ui+utils@0.2.
|
|
4
|
+
//#region ../../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
5
5
|
var r = [
|
|
6
6
|
"top",
|
|
7
7
|
"right",
|
|
@@ -77,11 +77,10 @@ function D(e) {
|
|
|
77
77
|
}
|
|
78
78
|
function O(e) {
|
|
79
79
|
return {
|
|
80
|
-
top: 0,
|
|
81
|
-
right: 0,
|
|
82
|
-
bottom: 0,
|
|
83
|
-
left: 0
|
|
84
|
-
...e
|
|
80
|
+
top: e.top ?? 0,
|
|
81
|
+
right: e.right ?? 0,
|
|
82
|
+
bottom: e.bottom ?? 0,
|
|
83
|
+
left: e.left ?? 0
|
|
85
84
|
};
|
|
86
85
|
}
|
|
87
86
|
function k(e) {
|
|
@@ -106,7 +105,7 @@ function A(e) {
|
|
|
106
105
|
};
|
|
107
106
|
}
|
|
108
107
|
//#endregion
|
|
109
|
-
//#region ../../node_modules/.bun/@floating-ui+core@1.
|
|
108
|
+
//#region ../../node_modules/.bun/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
110
109
|
function j(e, t, n) {
|
|
111
110
|
let { reference: r, floating: i } = e, a = g(t), o = _(t), s = h(o), c = f(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, m = r[s] / 2 - i[s] / 2, v;
|
|
112
111
|
switch (c) {
|
|
@@ -139,15 +138,8 @@ function j(e, t, n) {
|
|
|
139
138
|
y: r.y
|
|
140
139
|
};
|
|
141
140
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
v[o] -= m * (n && l ? -1 : 1);
|
|
145
|
-
break;
|
|
146
|
-
case "end":
|
|
147
|
-
v[o] += m * (n && l ? -1 : 1);
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
return v;
|
|
141
|
+
let y = p(t);
|
|
142
|
+
return y && (v[o] += m * (y === "end" ? 1 : -1) * (n && l ? -1 : 1)), v;
|
|
151
143
|
}
|
|
152
144
|
async function M(e, t) {
|
|
153
145
|
t === void 0 && (t = {});
|
|
@@ -230,18 +222,18 @@ var N = 50, P = async (e, t, n) => {
|
|
|
230
222
|
y: r
|
|
231
223
|
}, y = _(a), b = h(y), x = await s.getDimensions(f), S = y === "y", C = S ? "top" : "left", w = S ? "bottom" : "right", T = S ? "clientHeight" : "clientWidth", E = o.reference[b] + o.reference[y] - v[y] - o.floating[b], D = v[y] - o.reference[y], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f)), A = O ? O[T] : 0;
|
|
232
224
|
(!A || !await (s.isElement == null ? void 0 : s.isElement(O))) && (A = c.floating[T] || o.floating[b]);
|
|
233
|
-
let j = E / 2 - D / 2, M = A / 2 - x[b] / 2 - 1, N = i(g[C], M), P = i(g[w], M), F =
|
|
225
|
+
let j = E / 2 - D / 2, M = A / 2 - x[b] / 2 - 1, N = i(g[C], M), P = i(g[w], M), F = A - x[b] - P, I = A / 2 - x[b] / 2 + j, L = u(N, I, F), R = !l.arrow && p(a) != null && I !== L && o.reference[b] / 2 - (I < N ? N : P) - x[b] / 2 < 0, ee = R ? I < N ? I - N : I - F : 0;
|
|
234
226
|
return {
|
|
235
|
-
[y]: v[y] +
|
|
227
|
+
[y]: v[y] + ee,
|
|
236
228
|
data: {
|
|
237
229
|
[y]: L,
|
|
238
|
-
centerOffset: I - L -
|
|
239
|
-
...
|
|
230
|
+
centerOffset: I - L - ee,
|
|
231
|
+
...R && { alignmentOffset: ee }
|
|
240
232
|
},
|
|
241
|
-
reset:
|
|
233
|
+
reset: R
|
|
242
234
|
};
|
|
243
235
|
}
|
|
244
|
-
}),
|
|
236
|
+
}), I = function(e) {
|
|
245
237
|
return e === void 0 && (e = {}), {
|
|
246
238
|
name: "flip",
|
|
247
239
|
options: e,
|
|
@@ -291,7 +283,7 @@ var N = 50, P = async (e, t, n) => {
|
|
|
291
283
|
}
|
|
292
284
|
};
|
|
293
285
|
};
|
|
294
|
-
function
|
|
286
|
+
function L(e, t) {
|
|
295
287
|
return {
|
|
296
288
|
top: e.top - t.height,
|
|
297
289
|
right: e.right - t.width,
|
|
@@ -299,10 +291,10 @@ function I(e, t) {
|
|
|
299
291
|
left: e.left - t.width
|
|
300
292
|
};
|
|
301
293
|
}
|
|
302
|
-
function
|
|
294
|
+
function R(e) {
|
|
303
295
|
return r.some((t) => e[t] >= 0);
|
|
304
296
|
}
|
|
305
|
-
var
|
|
297
|
+
var ee = function(e) {
|
|
306
298
|
return e === void 0 && (e = {}), {
|
|
307
299
|
name: "hide",
|
|
308
300
|
options: e,
|
|
@@ -310,32 +302,32 @@ var te = function(e) {
|
|
|
310
302
|
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = d(e, t);
|
|
311
303
|
switch (i) {
|
|
312
304
|
case "referenceHidden": {
|
|
313
|
-
let e =
|
|
305
|
+
let e = L(await r.detectOverflow(t, {
|
|
314
306
|
...a,
|
|
315
307
|
elementContext: "reference"
|
|
316
308
|
}), n.reference);
|
|
317
309
|
return { data: {
|
|
318
310
|
referenceHiddenOffsets: e,
|
|
319
|
-
referenceHidden:
|
|
311
|
+
referenceHidden: R(e)
|
|
320
312
|
} };
|
|
321
313
|
}
|
|
322
314
|
case "escaped": {
|
|
323
|
-
let e =
|
|
315
|
+
let e = L(await r.detectOverflow(t, {
|
|
324
316
|
...a,
|
|
325
317
|
altBoundary: !0
|
|
326
318
|
}), n.floating);
|
|
327
319
|
return { data: {
|
|
328
320
|
escapedOffsets: e,
|
|
329
|
-
escaped:
|
|
321
|
+
escaped: R(e)
|
|
330
322
|
} };
|
|
331
323
|
}
|
|
332
324
|
default: return {};
|
|
333
325
|
}
|
|
334
326
|
}
|
|
335
327
|
};
|
|
336
|
-
},
|
|
328
|
+
}, te = /* @__PURE__ */ new Set(["left", "top"]);
|
|
337
329
|
async function ne(e, t) {
|
|
338
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = f(n), s = p(n), c = g(n) === "y", l =
|
|
330
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = f(n), s = p(n), c = g(n) === "y", l = te.has(o) ? -1 : 1, u = a && c ? -1 : 1, m = d(t, e), { mainAxis: h, crossAxis: _, alignmentAxis: v } = typeof m == "number" ? {
|
|
339
331
|
mainAxis: m,
|
|
340
332
|
crossAxis: 0,
|
|
341
333
|
alignmentAxis: null
|
|
@@ -380,22 +372,15 @@ var re = function(e) {
|
|
|
380
372
|
x: t,
|
|
381
373
|
y: n
|
|
382
374
|
};
|
|
383
|
-
} }, ...l } = d(e, t),
|
|
375
|
+
} }, ...l } = d(e, t), f = {
|
|
384
376
|
x: n,
|
|
385
377
|
y: r
|
|
386
|
-
},
|
|
387
|
-
|
|
388
|
-
let e = v === "y" ? "top" : "left", t = v === "y" ? "bottom" : "right", n = y + h[e], r = y - h[t];
|
|
389
|
-
y = u(n, y, r);
|
|
390
|
-
}
|
|
391
|
-
if (s) {
|
|
392
|
-
let e = _ === "y" ? "top" : "left", t = _ === "y" ? "bottom" : "right", n = b + h[e], r = b - h[t];
|
|
393
|
-
b = u(n, b, r);
|
|
394
|
-
}
|
|
378
|
+
}, p = await a.detectOverflow(t, l), h = g(i), _ = m(h), v = f[_], y = f[h], b = (e, t) => u(t + p[e === "y" ? "top" : "left"], t, t - p[e === "y" ? "bottom" : "right"]);
|
|
379
|
+
o && (v = b(_, v)), s && (y = b(h, y));
|
|
395
380
|
let x = c.fn({
|
|
396
381
|
...t,
|
|
397
|
-
[
|
|
398
|
-
[
|
|
382
|
+
[_]: v,
|
|
383
|
+
[h]: y
|
|
399
384
|
});
|
|
400
385
|
return {
|
|
401
386
|
...x,
|
|
@@ -403,8 +388,8 @@ var re = function(e) {
|
|
|
403
388
|
x: x.x - n,
|
|
404
389
|
y: x.y - r,
|
|
405
390
|
enabled: {
|
|
406
|
-
[
|
|
407
|
-
[
|
|
391
|
+
[_]: o,
|
|
392
|
+
[h]: s
|
|
408
393
|
}
|
|
409
394
|
}
|
|
410
395
|
};
|
|
@@ -421,16 +406,15 @@ var re = function(e) {
|
|
|
421
406
|
mainAxis: y,
|
|
422
407
|
crossAxis: 0
|
|
423
408
|
} : {
|
|
424
|
-
mainAxis: 0,
|
|
425
|
-
crossAxis: 0
|
|
426
|
-
...y
|
|
409
|
+
mainAxis: y.mainAxis ?? 0,
|
|
410
|
+
crossAxis: y.crossAxis ?? 0
|
|
427
411
|
};
|
|
428
412
|
if (c) {
|
|
429
413
|
let e = h === "y" ? "height" : "width", t = a.reference[h] - a.floating[e] + b.mainAxis, n = a.reference[h] + a.reference[e] - b.mainAxis;
|
|
430
414
|
_ < t ? _ = t : _ > n && (_ = n);
|
|
431
415
|
}
|
|
432
416
|
if (l) {
|
|
433
|
-
let e = h === "y" ? "width" : "height", t =
|
|
417
|
+
let e = h === "y" ? "width" : "height", t = te.has(f(i)), n = a.reference[p] - a.floating[e] + (t && o.offset?.[p] || 0) + (t ? 0 : b.crossAxis), r = a.reference[p] + a.reference[e] + (t ? 0 : o.offset?.[p] || 0) - (t ? b.crossAxis : 0);
|
|
434
418
|
v < n ? v = n : v > r && (v = r);
|
|
435
419
|
}
|
|
436
420
|
return {
|
|
@@ -444,59 +428,54 @@ var re = function(e) {
|
|
|
444
428
|
name: "size",
|
|
445
429
|
options: e,
|
|
446
430
|
async fn(t) {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = T), (r = t.middlewareData.shift) != null && r.enabled.y && (k = w), O && !v) {
|
|
452
|
-
let e = a(h.left, 0), t = a(h.right, 0), n = a(h.top, 0), r = a(h.bottom, 0);
|
|
453
|
-
y ? A = b - 2 * (e !== 0 || t !== 0 ? e + t : a(h.left, h.right)) : k = x - 2 * (n !== 0 || r !== 0 ? n + r : a(h.top, h.bottom));
|
|
454
|
-
}
|
|
455
|
-
await u({
|
|
431
|
+
let { placement: n, rects: r, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = d(e, t), u = await o.detectOverflow(t, l), m = f(n), h = p(n), _ = g(n) === "y", { width: v, height: y } = r.floating, b, x;
|
|
432
|
+
m === "top" || m === "bottom" ? (b = m, x = h === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = m, b = h === "end" ? "top" : "bottom");
|
|
433
|
+
let S = y - u.top - u.bottom, C = v - u.left - u.right, w = i(y - u[b], S), T = i(v - u[x], C), E = t.middlewareData.shift, D = !E, O = w, k = T;
|
|
434
|
+
E != null && E.enabled.x && (k = C), E != null && E.enabled.y && (O = S), D && !h && (_ ? k = v - 2 * a(u.left, u.right) : O = y - 2 * a(u.top, u.bottom)), await c({
|
|
456
435
|
...t,
|
|
457
|
-
availableWidth:
|
|
458
|
-
availableHeight:
|
|
436
|
+
availableWidth: k,
|
|
437
|
+
availableHeight: O
|
|
459
438
|
});
|
|
460
|
-
let
|
|
461
|
-
return
|
|
439
|
+
let A = await o.getDimensions(s.floating);
|
|
440
|
+
return v !== A.width || y !== A.height ? { reset: { rects: !0 } } : {};
|
|
462
441
|
}
|
|
463
442
|
};
|
|
464
443
|
};
|
|
465
444
|
//#endregion
|
|
466
|
-
//#region ../../node_modules/.bun/@floating-ui+utils@0.2.
|
|
467
|
-
function
|
|
445
|
+
//#region ../../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
446
|
+
function se() {
|
|
468
447
|
return typeof window < "u";
|
|
469
448
|
}
|
|
470
|
-
function
|
|
471
|
-
return
|
|
449
|
+
function z(e) {
|
|
450
|
+
return ce(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
472
451
|
}
|
|
473
|
-
function
|
|
452
|
+
function B(e) {
|
|
474
453
|
var t;
|
|
475
454
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
476
455
|
}
|
|
477
|
-
function
|
|
478
|
-
return ((
|
|
456
|
+
function V(e) {
|
|
457
|
+
return ((ce(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
458
|
+
}
|
|
459
|
+
function ce(e) {
|
|
460
|
+
return se() ? e instanceof Node || e instanceof B(e).Node : !1;
|
|
479
461
|
}
|
|
480
|
-
function
|
|
481
|
-
return
|
|
462
|
+
function H(e) {
|
|
463
|
+
return se() ? e instanceof Element || e instanceof B(e).Element : !1;
|
|
482
464
|
}
|
|
483
465
|
function U(e) {
|
|
484
|
-
return
|
|
485
|
-
}
|
|
486
|
-
function W(e) {
|
|
487
|
-
return z() ? e instanceof HTMLElement || e instanceof V(e).HTMLElement : !1;
|
|
466
|
+
return se() ? e instanceof HTMLElement || e instanceof B(e).HTMLElement : !1;
|
|
488
467
|
}
|
|
489
|
-
function
|
|
490
|
-
return !
|
|
468
|
+
function le(e) {
|
|
469
|
+
return !se() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
|
|
491
470
|
}
|
|
492
|
-
function
|
|
493
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } =
|
|
471
|
+
function W(e) {
|
|
472
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = J(e);
|
|
494
473
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
495
474
|
}
|
|
496
|
-
function
|
|
497
|
-
return /^(table|td|th)$/.test(
|
|
475
|
+
function ue(e) {
|
|
476
|
+
return /^(table|td|th)$/.test(z(e));
|
|
498
477
|
}
|
|
499
|
-
function
|
|
478
|
+
function G(e) {
|
|
500
479
|
try {
|
|
501
480
|
if (e.matches(":popover-open")) return !0;
|
|
502
481
|
} catch {}
|
|
@@ -506,31 +485,31 @@ function K(e) {
|
|
|
506
485
|
return !1;
|
|
507
486
|
}
|
|
508
487
|
}
|
|
509
|
-
var
|
|
510
|
-
function pe(e) {
|
|
511
|
-
let t = U(e) ? Y(e) : e;
|
|
512
|
-
return q(t.transform) || q(t.translate) || q(t.scale) || q(t.rotate) || q(t.perspective) || !he() && (q(t.backdropFilter) || q(t.filter)) || ue.test(t.willChange || "") || de.test(t.contain || "");
|
|
513
|
-
}
|
|
488
|
+
var de = /transform|translate|scale|rotate|perspective|filter/, fe = /paint|layout|strict|content/, K = (e) => !!e && e !== "none", pe;
|
|
514
489
|
function me(e) {
|
|
515
|
-
let t =
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
490
|
+
let t = H(e) ? J(e) : e;
|
|
491
|
+
return K(t.transform) || K(t.translate) || K(t.scale) || K(t.rotate) || K(t.perspective) || !ge() && (K(t.backdropFilter) || K(t.filter)) || de.test(t.willChange || "") || fe.test(t.contain || "");
|
|
492
|
+
}
|
|
493
|
+
function he(e) {
|
|
494
|
+
let t = Y(e);
|
|
495
|
+
for (; U(t) && !q(t);) {
|
|
496
|
+
if (me(t)) return t;
|
|
497
|
+
if (G(t)) return null;
|
|
498
|
+
t = Y(t);
|
|
520
499
|
}
|
|
521
500
|
return null;
|
|
522
501
|
}
|
|
523
|
-
function
|
|
524
|
-
return
|
|
502
|
+
function ge() {
|
|
503
|
+
return pe ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), pe;
|
|
525
504
|
}
|
|
526
|
-
function
|
|
527
|
-
return /^(html|body|#document)$/.test(
|
|
505
|
+
function q(e) {
|
|
506
|
+
return /^(html|body|#document)$/.test(z(e));
|
|
528
507
|
}
|
|
529
|
-
function
|
|
530
|
-
return
|
|
508
|
+
function J(e) {
|
|
509
|
+
return B(e).getComputedStyle(e);
|
|
531
510
|
}
|
|
532
|
-
function
|
|
533
|
-
return
|
|
511
|
+
function _e(e) {
|
|
512
|
+
return H(e) ? {
|
|
534
513
|
scrollLeft: e.scrollLeft,
|
|
535
514
|
scrollTop: e.scrollTop
|
|
536
515
|
} : {
|
|
@@ -538,69 +517,69 @@ function ge(e) {
|
|
|
538
517
|
scrollTop: e.scrollY
|
|
539
518
|
};
|
|
540
519
|
}
|
|
541
|
-
function
|
|
542
|
-
if (
|
|
543
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
544
|
-
return
|
|
520
|
+
function Y(e) {
|
|
521
|
+
if (z(e) === "html") return e;
|
|
522
|
+
let t = e.assignedSlot || e.parentNode || le(e) && e.host || V(e);
|
|
523
|
+
return le(t) ? t.host : t;
|
|
545
524
|
}
|
|
546
|
-
function
|
|
547
|
-
let t =
|
|
548
|
-
return
|
|
525
|
+
function ve(e) {
|
|
526
|
+
let t = Y(e);
|
|
527
|
+
return q(t) ? (e.ownerDocument || e).body : U(t) && W(t) ? t : ve(t);
|
|
549
528
|
}
|
|
550
|
-
function
|
|
529
|
+
function X(e, t, n) {
|
|
551
530
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
552
|
-
let r =
|
|
531
|
+
let r = ve(e), i = r === e.ownerDocument?.body, a = B(r);
|
|
553
532
|
if (i) {
|
|
554
|
-
let e =
|
|
555
|
-
return t.concat(a, a.visualViewport || [],
|
|
556
|
-
} else return t.concat(r,
|
|
533
|
+
let e = ye(a);
|
|
534
|
+
return t.concat(a, a.visualViewport || [], W(r) ? r : [], e && n ? X(e) : []);
|
|
535
|
+
} else return t.concat(r, X(r, [], n));
|
|
557
536
|
}
|
|
558
|
-
function
|
|
537
|
+
function ye(e) {
|
|
559
538
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
560
539
|
}
|
|
561
540
|
//#endregion
|
|
562
|
-
//#region ../../node_modules/.bun/@floating-ui+dom@1.
|
|
563
|
-
function
|
|
564
|
-
let t =
|
|
541
|
+
//#region ../../node_modules/.bun/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
542
|
+
function be(e) {
|
|
543
|
+
let t = J(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = U(e), a = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = o(n) !== a || o(r) !== s;
|
|
565
544
|
return c && (n = a, r = s), {
|
|
566
545
|
width: n,
|
|
567
546
|
height: r,
|
|
568
547
|
$: c
|
|
569
548
|
};
|
|
570
549
|
}
|
|
571
|
-
function
|
|
572
|
-
return
|
|
550
|
+
function xe(e) {
|
|
551
|
+
return H(e) ? e : e.contextElement;
|
|
573
552
|
}
|
|
574
|
-
function
|
|
575
|
-
let t =
|
|
576
|
-
if (!
|
|
577
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
553
|
+
function Z(e) {
|
|
554
|
+
let t = xe(e);
|
|
555
|
+
if (!U(t)) return c(1);
|
|
556
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = be(t), s = (a ? o(n.width) : n.width) / r, l = (a ? o(n.height) : n.height) / i;
|
|
578
557
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
579
558
|
x: s,
|
|
580
559
|
y: l
|
|
581
560
|
};
|
|
582
561
|
}
|
|
583
|
-
var
|
|
584
|
-
function
|
|
585
|
-
let t =
|
|
586
|
-
return !
|
|
562
|
+
var Se = /* @__PURE__ */ c(0);
|
|
563
|
+
function Ce(e) {
|
|
564
|
+
let t = B(e);
|
|
565
|
+
return !ge() || !t.visualViewport ? Se : {
|
|
587
566
|
x: t.visualViewport.offsetLeft,
|
|
588
567
|
y: t.visualViewport.offsetTop
|
|
589
568
|
};
|
|
590
569
|
}
|
|
591
|
-
function
|
|
592
|
-
return t === void 0 && (t = !1),
|
|
570
|
+
function we(e, t, n) {
|
|
571
|
+
return t === void 0 && (t = !1), !!n && t && n === B(e);
|
|
593
572
|
}
|
|
594
|
-
function
|
|
573
|
+
function Q(e, t, n, r) {
|
|
595
574
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
596
|
-
let i = e.getBoundingClientRect(), a =
|
|
597
|
-
t && (r ?
|
|
598
|
-
let s =
|
|
599
|
-
if (a) {
|
|
600
|
-
let e =
|
|
601
|
-
for (; i &&
|
|
602
|
-
let e =
|
|
603
|
-
l *= e.x, u *= e.y, d *= e.x, f *= e.y, l += a, u += o, n =
|
|
575
|
+
let i = e.getBoundingClientRect(), a = xe(e), o = c(1);
|
|
576
|
+
t && (r ? H(r) && (o = Z(r)) : o = Z(e));
|
|
577
|
+
let s = we(a, n, r) ? Ce(a) : c(0), l = (i.left + s.x) / o.x, u = (i.top + s.y) / o.y, d = i.width / o.x, f = i.height / o.y;
|
|
578
|
+
if (a && r) {
|
|
579
|
+
let e = B(a), t = H(r) ? B(r) : r, n = e, i = ye(n);
|
|
580
|
+
for (; i && t !== n;) {
|
|
581
|
+
let e = Z(i), t = i.getBoundingClientRect(), r = J(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
582
|
+
l *= e.x, u *= e.y, d *= e.x, f *= e.y, l += a, u += o, n = B(i), i = ye(n);
|
|
604
583
|
}
|
|
605
584
|
}
|
|
606
585
|
return A({
|
|
@@ -610,29 +589,29 @@ function $(e, t, n, r) {
|
|
|
610
589
|
y: u
|
|
611
590
|
});
|
|
612
591
|
}
|
|
613
|
-
function we(e, t) {
|
|
614
|
-
let n = ge(e).scrollLeft;
|
|
615
|
-
return t ? t.left + n : $(H(e)).left + n;
|
|
616
|
-
}
|
|
617
592
|
function Te(e, t) {
|
|
593
|
+
let n = _e(e).scrollLeft;
|
|
594
|
+
return t ? t.left + n : Q(V(e)).left + n;
|
|
595
|
+
}
|
|
596
|
+
function Ee(e, t) {
|
|
618
597
|
let n = e.getBoundingClientRect();
|
|
619
598
|
return {
|
|
620
|
-
x: n.left + t.scrollLeft -
|
|
599
|
+
x: n.left + t.scrollLeft - Te(e, n),
|
|
621
600
|
y: n.top + t.scrollTop
|
|
622
601
|
};
|
|
623
602
|
}
|
|
624
|
-
function
|
|
625
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
603
|
+
function De(e) {
|
|
604
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = V(r), s = t ? G(t.floating) : !1;
|
|
626
605
|
if (r === o || s && a) return n;
|
|
627
606
|
let l = {
|
|
628
607
|
scrollLeft: 0,
|
|
629
608
|
scrollTop: 0
|
|
630
|
-
}, u = c(1), d = c(0), f =
|
|
631
|
-
if ((f || !
|
|
632
|
-
let e =
|
|
633
|
-
u =
|
|
609
|
+
}, u = c(1), d = c(0), f = U(r);
|
|
610
|
+
if ((f || !a) && ((z(r) !== "body" || W(o)) && (l = _e(r)), f)) {
|
|
611
|
+
let e = Q(r);
|
|
612
|
+
u = Z(r), d.x = e.x + r.clientLeft, d.y = e.y + r.clientTop;
|
|
634
613
|
}
|
|
635
|
-
let p = o && !f && !a ?
|
|
614
|
+
let p = o && !f && !a ? Ee(o, l) : c(0);
|
|
636
615
|
return {
|
|
637
616
|
width: n.width * u.x,
|
|
638
617
|
height: n.height * u.y,
|
|
@@ -640,40 +619,39 @@ function Ee(e) {
|
|
|
640
619
|
y: n.y * u.y - l.scrollTop * u.y + d.y + p.y
|
|
641
620
|
};
|
|
642
621
|
}
|
|
643
|
-
function De(e) {
|
|
644
|
-
return Array.from(e.getClientRects());
|
|
645
|
-
}
|
|
646
622
|
function Oe(e) {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
623
|
+
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
624
|
+
}
|
|
625
|
+
function ke(e) {
|
|
626
|
+
let t = _e(e), n = e.ownerDocument.body, r = a(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = a(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), o = -t.scrollLeft + Te(e), s = -t.scrollTop;
|
|
627
|
+
return J(n).direction === "rtl" && (o += a(e.clientWidth, n.clientWidth) - r), {
|
|
628
|
+
width: r,
|
|
629
|
+
height: i,
|
|
630
|
+
x: o,
|
|
631
|
+
y: s
|
|
653
632
|
};
|
|
654
633
|
}
|
|
655
|
-
var
|
|
656
|
-
function
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
let e =
|
|
661
|
-
|
|
634
|
+
var Ae = 25;
|
|
635
|
+
function je(e, t, n) {
|
|
636
|
+
n === void 0 && (n = "viewport");
|
|
637
|
+
let r = n === "layoutViewport", i = B(e), a = V(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
638
|
+
if (o) {
|
|
639
|
+
let e = !ge() || t === "fixed";
|
|
640
|
+
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
641
|
+
}
|
|
642
|
+
if (Te(a) <= 0) {
|
|
643
|
+
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;
|
|
644
|
+
o <= Ae && (s -= o);
|
|
662
645
|
}
|
|
663
|
-
let l = we(r);
|
|
664
|
-
if (l <= 0) {
|
|
665
|
-
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
666
|
-
o <= ke && (a -= o);
|
|
667
|
-
} else l <= ke && (a += l);
|
|
668
646
|
return {
|
|
669
|
-
width:
|
|
670
|
-
height:
|
|
671
|
-
x:
|
|
672
|
-
y:
|
|
647
|
+
width: s,
|
|
648
|
+
height: c,
|
|
649
|
+
x: l,
|
|
650
|
+
y: u
|
|
673
651
|
};
|
|
674
652
|
}
|
|
675
|
-
function
|
|
676
|
-
let n =
|
|
653
|
+
function Me(e, t) {
|
|
654
|
+
let n = Q(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Z(e);
|
|
677
655
|
return {
|
|
678
656
|
width: e.clientWidth * a.x,
|
|
679
657
|
height: e.clientHeight * a.y,
|
|
@@ -681,13 +659,13 @@ function je(e, t) {
|
|
|
681
659
|
y: r * a.y
|
|
682
660
|
};
|
|
683
661
|
}
|
|
684
|
-
function
|
|
662
|
+
function Ne(e, t, n) {
|
|
685
663
|
let r;
|
|
686
|
-
if (t === "viewport") r =
|
|
687
|
-
else if (t === "document") r =
|
|
688
|
-
else if (
|
|
664
|
+
if (t === "viewport" || t === "layoutViewport") r = je(e, n, t);
|
|
665
|
+
else if (t === "document") r = ke(V(e));
|
|
666
|
+
else if (H(t)) r = Me(t, n);
|
|
689
667
|
else {
|
|
690
|
-
let n =
|
|
668
|
+
let n = Ce(e);
|
|
691
669
|
r = {
|
|
692
670
|
x: t.x - n.x,
|
|
693
671
|
y: t.y - n.y,
|
|
@@ -697,24 +675,20 @@ function Me(e, t, n) {
|
|
|
697
675
|
}
|
|
698
676
|
return A(r);
|
|
699
677
|
}
|
|
700
|
-
function Ne(e, t) {
|
|
701
|
-
let n = X(e);
|
|
702
|
-
return n === t || !U(n) || J(n) ? !1 : Y(n).position === "fixed" || Ne(n, t);
|
|
703
|
-
}
|
|
704
678
|
function Pe(e, t) {
|
|
705
679
|
let n = t.get(e);
|
|
706
680
|
if (n) return n;
|
|
707
|
-
let r =
|
|
708
|
-
for (;
|
|
709
|
-
let
|
|
710
|
-
!
|
|
681
|
+
let r = X(e, [], !1).filter((e) => H(e) && z(e) !== "body"), i = null, a = J(e).position === "fixed", o = a ? Y(e) : e;
|
|
682
|
+
for (; H(o) && !q(o);) {
|
|
683
|
+
let e = J(o), t = me(o), n = i ? i.position : a ? "fixed" : "";
|
|
684
|
+
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Y(o);
|
|
711
685
|
}
|
|
712
686
|
return t.set(e, r), r;
|
|
713
687
|
}
|
|
714
688
|
function Fe(e) {
|
|
715
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: o } = e, s = [...n === "clippingAncestors" ?
|
|
689
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: o } = e, s = [...n === "clippingAncestors" ? G(t) ? [] : Pe(t, this._c) : [].concat(n), r], c = Ne(t, s[0], o), l = c.top, u = c.right, d = c.bottom, f = c.left;
|
|
716
690
|
for (let e = 1; e < s.length; e++) {
|
|
717
|
-
let n =
|
|
691
|
+
let n = Ne(t, s[e], o);
|
|
718
692
|
l = a(n.top, l), u = i(n.right, u), d = i(n.bottom, d), f = a(n.left, f);
|
|
719
693
|
}
|
|
720
694
|
return {
|
|
@@ -725,56 +699,53 @@ function Fe(e) {
|
|
|
725
699
|
};
|
|
726
700
|
}
|
|
727
701
|
function Ie(e) {
|
|
728
|
-
let { width: t, height: n } =
|
|
702
|
+
let { width: t, height: n } = be(e);
|
|
729
703
|
return {
|
|
730
704
|
width: t,
|
|
731
705
|
height: n
|
|
732
706
|
};
|
|
733
707
|
}
|
|
734
708
|
function Le(e, t, n) {
|
|
735
|
-
let r =
|
|
709
|
+
let r = U(t), i = V(t), a = n === "fixed", o = Q(e, !0, a, t), s = {
|
|
736
710
|
scrollLeft: 0,
|
|
737
711
|
scrollTop: 0
|
|
738
712
|
}, l = c(0);
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
}
|
|
742
|
-
if (r || !r && !a) if ((B(t) !== "body" || G(i)) && (s = ge(t)), r) {
|
|
743
|
-
let e = $(t, !0, a, t);
|
|
713
|
+
if ((r || !a) && ((z(t) !== "body" || W(i)) && (s = _e(t)), r)) {
|
|
714
|
+
let e = Q(t, !0, a, t);
|
|
744
715
|
l.x = e.x + t.clientLeft, l.y = e.y + t.clientTop;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
let
|
|
716
|
+
}
|
|
717
|
+
!r && i && (l.x = Te(i));
|
|
718
|
+
let u = i && !r && !a ? Ee(i, s) : c(0);
|
|
748
719
|
return {
|
|
749
|
-
x: o.left + s.scrollLeft - l.x -
|
|
750
|
-
y: o.top + s.scrollTop - l.y -
|
|
720
|
+
x: o.left + s.scrollLeft - l.x - u.x,
|
|
721
|
+
y: o.top + s.scrollTop - l.y - u.y,
|
|
751
722
|
width: o.width,
|
|
752
723
|
height: o.height
|
|
753
724
|
};
|
|
754
725
|
}
|
|
755
726
|
function Re(e) {
|
|
756
|
-
return
|
|
727
|
+
return J(e).position === "static";
|
|
757
728
|
}
|
|
758
729
|
function ze(e, t) {
|
|
759
|
-
if (!
|
|
730
|
+
if (!U(e) || J(e).position === "fixed") return null;
|
|
760
731
|
if (t) return t(e);
|
|
761
732
|
let n = e.offsetParent;
|
|
762
|
-
return
|
|
733
|
+
return V(e) === n && (n = n.ownerDocument.body), n;
|
|
763
734
|
}
|
|
764
735
|
function Be(e, t) {
|
|
765
|
-
let n =
|
|
766
|
-
if (
|
|
767
|
-
if (!
|
|
768
|
-
let t =
|
|
769
|
-
for (; t && !
|
|
770
|
-
if (
|
|
771
|
-
t =
|
|
736
|
+
let n = B(e);
|
|
737
|
+
if (G(e)) return n;
|
|
738
|
+
if (!U(e)) {
|
|
739
|
+
let t = Y(e);
|
|
740
|
+
for (; t && !q(t);) {
|
|
741
|
+
if (H(t) && !Re(t)) return t;
|
|
742
|
+
t = Y(t);
|
|
772
743
|
}
|
|
773
744
|
return n;
|
|
774
745
|
}
|
|
775
746
|
let r = ze(e, t);
|
|
776
|
-
for (; r &&
|
|
777
|
-
return r &&
|
|
747
|
+
for (; r && ue(r) && Re(r);) r = ze(r, t);
|
|
748
|
+
return r && q(r) && Re(r) && !me(r) ? n : r || he(e) || n;
|
|
778
749
|
}
|
|
779
750
|
var Ve = async function(e) {
|
|
780
751
|
let t = this.getOffsetParent || Be, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -789,66 +760,70 @@ var Ve = async function(e) {
|
|
|
789
760
|
};
|
|
790
761
|
};
|
|
791
762
|
function He(e) {
|
|
792
|
-
return
|
|
763
|
+
return J(e).direction === "rtl";
|
|
793
764
|
}
|
|
794
765
|
var Ue = {
|
|
795
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
796
|
-
getDocumentElement:
|
|
766
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: De,
|
|
767
|
+
getDocumentElement: V,
|
|
797
768
|
getClippingRect: Fe,
|
|
798
769
|
getOffsetParent: Be,
|
|
799
770
|
getElementRects: Ve,
|
|
800
|
-
getClientRects:
|
|
771
|
+
getClientRects: Oe,
|
|
801
772
|
getDimensions: Ie,
|
|
802
|
-
getScale:
|
|
803
|
-
isElement:
|
|
773
|
+
getScale: Z,
|
|
774
|
+
isElement: H,
|
|
804
775
|
isRTL: He
|
|
805
776
|
};
|
|
806
777
|
function We(e, t) {
|
|
807
778
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
808
779
|
}
|
|
809
|
-
function Ge(e, t) {
|
|
810
|
-
let
|
|
811
|
-
function
|
|
780
|
+
function Ge(e, t, n) {
|
|
781
|
+
let r = null, o, c = V(e);
|
|
782
|
+
function l() {
|
|
812
783
|
var e;
|
|
813
|
-
clearTimeout(
|
|
784
|
+
clearTimeout(o), (e = r) == null || e.disconnect(), r = null;
|
|
814
785
|
}
|
|
815
|
-
function
|
|
816
|
-
|
|
786
|
+
function u(n, d) {
|
|
787
|
+
n === void 0 && (n = !1), d === void 0 && (d = 1), l();
|
|
817
788
|
let f = e.getBoundingClientRect(), { left: p, top: m, width: h, height: g } = f;
|
|
818
|
-
if (
|
|
819
|
-
let _ = s(m), v = s(
|
|
789
|
+
if (n || t(), !h || !g) return;
|
|
790
|
+
let _ = s(m), v = s(c.clientWidth - (p + h)), y = s(c.clientHeight - (m + g)), b = s(p), x = {
|
|
820
791
|
rootMargin: -_ + "px " + -v + "px " + -y + "px " + -b + "px",
|
|
821
792
|
threshold: a(0, i(1, d)) || 1
|
|
822
793
|
}, S = !0;
|
|
823
794
|
function C(t) {
|
|
824
795
|
let n = t[0].intersectionRatio;
|
|
796
|
+
if (!We(f, e.getBoundingClientRect())) return u();
|
|
825
797
|
if (n !== d) {
|
|
826
|
-
if (!S) return
|
|
827
|
-
n ?
|
|
828
|
-
|
|
798
|
+
if (!S) return u();
|
|
799
|
+
n ? u(!1, n) : o = setTimeout(() => {
|
|
800
|
+
u(!1, 1e-7);
|
|
829
801
|
}, 1e3);
|
|
830
802
|
}
|
|
831
|
-
|
|
803
|
+
S = !1;
|
|
832
804
|
}
|
|
833
805
|
try {
|
|
834
|
-
|
|
806
|
+
r = new IntersectionObserver(C, {
|
|
835
807
|
...x,
|
|
836
|
-
root:
|
|
808
|
+
root: c.ownerDocument
|
|
837
809
|
});
|
|
838
810
|
} catch {
|
|
839
|
-
|
|
811
|
+
r = new IntersectionObserver(C, x);
|
|
840
812
|
}
|
|
841
|
-
|
|
813
|
+
r.observe(e);
|
|
842
814
|
}
|
|
843
|
-
|
|
815
|
+
let d = B(e), f = () => u(n);
|
|
816
|
+
return d.addEventListener("resize", f), u(!0), () => {
|
|
817
|
+
d.removeEventListener("resize", f), l();
|
|
818
|
+
};
|
|
844
819
|
}
|
|
845
820
|
function Ke(e, t, n, r) {
|
|
846
821
|
r === void 0 && (r = {});
|
|
847
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
822
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = xe(e), u = i || a ? [...l ? X(l) : [], ...t ? X(t) : []] : [];
|
|
848
823
|
u.forEach((e) => {
|
|
849
|
-
i && e.addEventListener("scroll", n
|
|
824
|
+
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
850
825
|
});
|
|
851
|
-
let d = l && s ? Ge(l, n) : null, f = -1, p = null;
|
|
826
|
+
let d = l && s ? Ge(l, n, a) : null, f = -1, p = null;
|
|
852
827
|
o && (p = new ResizeObserver((e) => {
|
|
853
828
|
let [r] = e;
|
|
854
829
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -856,10 +831,10 @@ function Ke(e, t, n, r) {
|
|
|
856
831
|
(e = p) == null || e.observe(t);
|
|
857
832
|
})), n();
|
|
858
833
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
859
|
-
let m, h = c ?
|
|
834
|
+
let m, h = c ? Q(e) : null;
|
|
860
835
|
c && g();
|
|
861
836
|
function g() {
|
|
862
|
-
let t =
|
|
837
|
+
let t = Q(e);
|
|
863
838
|
h && !We(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
864
839
|
}
|
|
865
840
|
return n(), () => {
|
|
@@ -869,11 +844,9 @@ function Ke(e, t, n, r) {
|
|
|
869
844
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
870
845
|
};
|
|
871
846
|
}
|
|
872
|
-
var qe = re, Je = ie, Ye =
|
|
873
|
-
let r = /* @__PURE__ */ new Map(), i = {
|
|
874
|
-
|
|
875
|
-
...n
|
|
876
|
-
}, a = {
|
|
847
|
+
var qe = re, Je = ie, Ye = I, Xe = oe, Ze = ee, Qe = F, $e = ae, et = (e, t, n) => {
|
|
848
|
+
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
849
|
+
...Ue,
|
|
877
850
|
...i.platform,
|
|
878
851
|
_c: r
|
|
879
852
|
};
|
|
@@ -881,8 +854,8 @@ var qe = re, Je = ie, Ye = ee, Xe = oe, Ze = te, Qe = F, $e = ae, et = (e, t, n)
|
|
|
881
854
|
...i,
|
|
882
855
|
platform: a
|
|
883
856
|
});
|
|
884
|
-
},
|
|
885
|
-
function
|
|
857
|
+
}, $ = typeof document < "u" ? t : function() {};
|
|
858
|
+
function tt(e, t) {
|
|
886
859
|
if (e === t) return !0;
|
|
887
860
|
if (typeof e != typeof t) return !1;
|
|
888
861
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -890,33 +863,33 @@ function nt(e, t) {
|
|
|
890
863
|
if (e && t && typeof e == "object") {
|
|
891
864
|
if (Array.isArray(e)) {
|
|
892
865
|
if (n = e.length, n !== t.length) return !1;
|
|
893
|
-
for (r = n; r-- !== 0;) if (!
|
|
866
|
+
for (r = n; r-- !== 0;) if (!tt(e[r], t[r])) return !1;
|
|
894
867
|
return !0;
|
|
895
868
|
}
|
|
896
869
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
897
870
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
898
871
|
for (r = n; r-- !== 0;) {
|
|
899
872
|
let n = i[r];
|
|
900
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
873
|
+
if (!(n === "_owner" && e.$$typeof) && !tt(e[n], t[n])) return !1;
|
|
901
874
|
}
|
|
902
875
|
return !0;
|
|
903
876
|
}
|
|
904
877
|
return e !== e && t !== t;
|
|
905
878
|
}
|
|
906
|
-
function
|
|
879
|
+
function nt(e) {
|
|
907
880
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
908
881
|
}
|
|
909
|
-
function
|
|
910
|
-
let n =
|
|
882
|
+
function rt(e, t) {
|
|
883
|
+
let n = nt(e);
|
|
911
884
|
return Math.round(t * n) / n;
|
|
912
885
|
}
|
|
913
|
-
function
|
|
886
|
+
function it(t) {
|
|
914
887
|
let n = e.useRef(t);
|
|
915
|
-
return
|
|
888
|
+
return $(() => {
|
|
916
889
|
n.current = t;
|
|
917
890
|
}), n;
|
|
918
891
|
}
|
|
919
|
-
function
|
|
892
|
+
function at(t) {
|
|
920
893
|
t === void 0 && (t = {});
|
|
921
894
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o, elements: { reference: s, floating: c } = {}, transform: l = !0, whileElementsMounted: u, open: d } = t, [f, p] = e.useState({
|
|
922
895
|
x: 0,
|
|
@@ -926,12 +899,12 @@ function ot(t) {
|
|
|
926
899
|
middlewareData: {},
|
|
927
900
|
isPositioned: !1
|
|
928
901
|
}), [m, h] = e.useState(a);
|
|
929
|
-
|
|
902
|
+
tt(m, a) || h(a);
|
|
930
903
|
let [g, _] = e.useState(null), [v, y] = e.useState(null), b = e.useCallback((e) => {
|
|
931
904
|
e !== w.current && (w.current = e, _(e));
|
|
932
905
|
}, []), x = e.useCallback((e) => {
|
|
933
906
|
e !== T.current && (T.current = e, y(e));
|
|
934
|
-
}, []), S = s || g, C = c || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(f), D = u != null, O =
|
|
907
|
+
}, []), S = s || g, C = c || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(f), D = u != null, O = it(u), k = it(o), A = it(d), j = e.useCallback(() => {
|
|
935
908
|
if (!w.current || !T.current) return;
|
|
936
909
|
let e = {
|
|
937
910
|
placement: r,
|
|
@@ -943,7 +916,7 @@ function ot(t) {
|
|
|
943
916
|
...e,
|
|
944
917
|
isPositioned: A.current !== !1
|
|
945
918
|
};
|
|
946
|
-
M.current && !
|
|
919
|
+
M.current && !tt(E.current, t) && (E.current = t, n.flushSync(() => {
|
|
947
920
|
p(t);
|
|
948
921
|
}));
|
|
949
922
|
});
|
|
@@ -954,16 +927,16 @@ function ot(t) {
|
|
|
954
927
|
k,
|
|
955
928
|
A
|
|
956
929
|
]);
|
|
957
|
-
|
|
930
|
+
$(() => {
|
|
958
931
|
d === !1 && E.current.isPositioned && (E.current.isPositioned = !1, p((e) => ({
|
|
959
932
|
...e,
|
|
960
933
|
isPositioned: !1
|
|
961
934
|
})));
|
|
962
935
|
}, [d]);
|
|
963
936
|
let M = e.useRef(!1);
|
|
964
|
-
|
|
937
|
+
$(() => (M.current = !0, () => {
|
|
965
938
|
M.current = !1;
|
|
966
|
-
}), []),
|
|
939
|
+
}), []), $(() => {
|
|
967
940
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
968
941
|
if (O.current) return O.current(S, C, j);
|
|
969
942
|
j();
|
|
@@ -990,11 +963,11 @@ function ot(t) {
|
|
|
990
963
|
top: 0
|
|
991
964
|
};
|
|
992
965
|
if (!P.floating) return e;
|
|
993
|
-
let t =
|
|
966
|
+
let t = rt(P.floating, f.x), n = rt(P.floating, f.y);
|
|
994
967
|
return l ? {
|
|
995
968
|
...e,
|
|
996
969
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
997
|
-
...
|
|
970
|
+
...nt(P.floating) >= 1.5 && { willChange: "transform" }
|
|
998
971
|
} : {
|
|
999
972
|
position: i,
|
|
1000
973
|
left: t,
|
|
@@ -1021,7 +994,7 @@ function ot(t) {
|
|
|
1021
994
|
F
|
|
1022
995
|
]);
|
|
1023
996
|
}
|
|
1024
|
-
var
|
|
997
|
+
var ot = (e) => {
|
|
1025
998
|
function t(e) {
|
|
1026
999
|
return {}.hasOwnProperty.call(e, "current");
|
|
1027
1000
|
}
|
|
@@ -1039,46 +1012,46 @@ var st = (e) => {
|
|
|
1039
1012
|
}).fn(n) : {};
|
|
1040
1013
|
}
|
|
1041
1014
|
};
|
|
1042
|
-
},
|
|
1015
|
+
}, st = (e, t) => {
|
|
1043
1016
|
let n = qe(e);
|
|
1044
1017
|
return {
|
|
1045
1018
|
name: n.name,
|
|
1046
1019
|
fn: n.fn,
|
|
1047
1020
|
options: [e, t]
|
|
1048
1021
|
};
|
|
1049
|
-
},
|
|
1022
|
+
}, ct = (e, t) => {
|
|
1050
1023
|
let n = Je(e);
|
|
1051
1024
|
return {
|
|
1052
1025
|
name: n.name,
|
|
1053
1026
|
fn: n.fn,
|
|
1054
1027
|
options: [e, t]
|
|
1055
1028
|
};
|
|
1056
|
-
},
|
|
1029
|
+
}, lt = (e, t) => ({
|
|
1057
1030
|
fn: $e(e).fn,
|
|
1058
1031
|
options: [e, t]
|
|
1059
|
-
}),
|
|
1032
|
+
}), ut = (e, t) => {
|
|
1060
1033
|
let n = Ye(e);
|
|
1061
1034
|
return {
|
|
1062
1035
|
name: n.name,
|
|
1063
1036
|
fn: n.fn,
|
|
1064
1037
|
options: [e, t]
|
|
1065
1038
|
};
|
|
1066
|
-
},
|
|
1039
|
+
}, dt = (e, t) => {
|
|
1067
1040
|
let n = Xe(e);
|
|
1068
1041
|
return {
|
|
1069
1042
|
name: n.name,
|
|
1070
1043
|
fn: n.fn,
|
|
1071
1044
|
options: [e, t]
|
|
1072
1045
|
};
|
|
1073
|
-
},
|
|
1046
|
+
}, ft = (e, t) => {
|
|
1074
1047
|
let n = Ze(e);
|
|
1075
1048
|
return {
|
|
1076
1049
|
name: n.name,
|
|
1077
1050
|
fn: n.fn,
|
|
1078
1051
|
options: [e, t]
|
|
1079
1052
|
};
|
|
1080
|
-
},
|
|
1081
|
-
let n =
|
|
1053
|
+
}, pt = (e, t) => {
|
|
1054
|
+
let n = ot(e);
|
|
1082
1055
|
return {
|
|
1083
1056
|
name: n.name,
|
|
1084
1057
|
fn: n.fn,
|
|
@@ -1086,4 +1059,4 @@ var st = (e) => {
|
|
|
1086
1059
|
};
|
|
1087
1060
|
};
|
|
1088
1061
|
//#endregion
|
|
1089
|
-
export { s as C, k as D, h as E, f as O, d as S, _ as T,
|
|
1062
|
+
export { s as C, k as D, h as E, f as O, d as S, _ as T, q as _, st as a, le as b, at as c, z as d, X as f, U as g, H as h, lt as i, g as k, Ke as l, B as m, ut as n, ct as o, Y as p, ft as r, dt as s, pt as t, J as u, ce as v, p as w, u as x, W as y };
|