@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,35 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
-
import { t } from "./dist-Cacc4QIh.mjs";
|
|
3
|
-
import * as n from "react";
|
|
4
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
//#region ../../node_modules/.bun/@radix-ui+react-separator@1.1.7+2d3f272c3a65784a/node_modules/@radix-ui/react-separator/dist/index.mjs
|
|
6
|
-
var i = "Separator", a = "horizontal", o = ["horizontal", "vertical"], s = n.forwardRef((e, n) => {
|
|
7
|
-
let { decorative: i, orientation: o = a, ...s } = e, l = c(o) ? o : a, u = i ? { role: "none" } : {
|
|
8
|
-
"aria-orientation": l === "vertical" ? l : void 0,
|
|
9
|
-
role: "separator"
|
|
10
|
-
};
|
|
11
|
-
return /* @__PURE__ */ r(t.div, {
|
|
12
|
-
"data-orientation": l,
|
|
13
|
-
...u,
|
|
14
|
-
...s,
|
|
15
|
-
ref: n
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
s.displayName = i;
|
|
19
|
-
function c(e) {
|
|
20
|
-
return o.includes(e);
|
|
21
|
-
}
|
|
22
|
-
var l = s;
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/separator.tsx
|
|
25
|
-
function u({ className: t, orientation: n = "horizontal", decorative: i = !0, ...a }) {
|
|
26
|
-
return /* @__PURE__ */ r(l, {
|
|
27
|
-
"data-slot": "separator",
|
|
28
|
-
decorative: i,
|
|
29
|
-
orientation: n,
|
|
30
|
-
className: e("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch", t),
|
|
31
|
-
...a
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
export { u as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-CiM892Rg.js");let r=require("react"),i=e.r(r,1);r=e.r(r);let a=require("react/jsx-runtime");var o=`Separator`,s=`horizontal`,c=[`horizontal`,`vertical`],l=i.forwardRef((e,t)=>{let{decorative:r,orientation:i=s,...o}=e,c=u(i)?i:s,l=r?{role:`none`}:{"aria-orientation":c===`vertical`?c:void 0,role:`separator`};return(0,a.jsx)(n.t.div,{"data-orientation":c,...l,...o,ref:t})});l.displayName=o;function u(e){return c.includes(e)}var d=l;function f({className:e,orientation:n=`horizontal`,decorative:r=!0,...i}){return(0,a.jsx)(d,{"data-slot":`separator`,decorative:r,orientation:n,className:t.t(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,e),...i})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|
package/dist/shim-B5sEfNEJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js");var t=e.t((e=>{var t=require("react");function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),n=e.t((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function n(e,t){d||a.startTransition===void 0||(d=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!f){var i=t();o(n,i)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),f=!0)}i=s({inst:{value:n,getSnapshot:t}});var p=i[0].inst,m=i[1];return l(function(){p.value=n,p.getSnapshot=t,r(p)&&m({inst:p})},[e,n,t]),c(function(){return r(p)&&m({inst:p}),e(function(){r(p)&&m({inst:p})})},[e]),u(n),n}function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch{return!0}}function i(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=require("react"),o=typeof Object.is==`function`?Object.is:t,s=a.useState,c=a.useEffect,l=a.useLayoutEffect,u=a.useDebugValue,d=!1,f=!1,p=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?i:n;e.useSyncExternalStore=a.useSyncExternalStore===void 0?p:a.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),r=e.t(((e,r)=>{process.env.NODE_ENV===`production`?r.exports=t():r.exports=n()}));Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
package/dist/shim-DX33EwUw.mjs
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { r as e, t } from "./chunk-BmowowmI.mjs";
|
|
2
|
-
//#region ../../node_modules/.bun/use-sync-external-store@1.6.0+d86b59289c1a13ae/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
|
|
3
|
-
var n = /* @__PURE__ */ t(((t) => {
|
|
4
|
-
var n = e("react");
|
|
5
|
-
function r(e, t) {
|
|
6
|
-
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
7
|
-
}
|
|
8
|
-
var i = typeof Object.is == "function" ? Object.is : r, a = n.useState, o = n.useEffect, s = n.useLayoutEffect, c = n.useDebugValue;
|
|
9
|
-
function l(e, t) {
|
|
10
|
-
var n = t(), r = a({ inst: {
|
|
11
|
-
value: n,
|
|
12
|
-
getSnapshot: t
|
|
13
|
-
} }), i = r[0].inst, l = r[1];
|
|
14
|
-
return s(function() {
|
|
15
|
-
i.value = n, i.getSnapshot = t, u(i) && l({ inst: i });
|
|
16
|
-
}, [
|
|
17
|
-
e,
|
|
18
|
-
n,
|
|
19
|
-
t
|
|
20
|
-
]), o(function() {
|
|
21
|
-
return u(i) && l({ inst: i }), e(function() {
|
|
22
|
-
u(i) && l({ inst: i });
|
|
23
|
-
});
|
|
24
|
-
}, [e]), c(n), n;
|
|
25
|
-
}
|
|
26
|
-
function u(e) {
|
|
27
|
-
var t = e.getSnapshot;
|
|
28
|
-
e = e.value;
|
|
29
|
-
try {
|
|
30
|
-
var n = t();
|
|
31
|
-
return !i(e, n);
|
|
32
|
-
} catch {
|
|
33
|
-
return !0;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function d(e, t) {
|
|
37
|
-
return t();
|
|
38
|
-
}
|
|
39
|
-
var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
|
|
40
|
-
t.useSyncExternalStore = n.useSyncExternalStore === void 0 ? f : n.useSyncExternalStore;
|
|
41
|
-
})), r = /* @__PURE__ */ t(((t) => {
|
|
42
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
43
|
-
function n(e, t) {
|
|
44
|
-
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
45
|
-
}
|
|
46
|
-
function r(e, t) {
|
|
47
|
-
f || o.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
48
|
-
var n = t();
|
|
49
|
-
if (!p) {
|
|
50
|
-
var r = t();
|
|
51
|
-
s(n, r) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
|
|
52
|
-
}
|
|
53
|
-
r = c({ inst: {
|
|
54
|
-
value: n,
|
|
55
|
-
getSnapshot: t
|
|
56
|
-
} });
|
|
57
|
-
var a = r[0].inst, m = r[1];
|
|
58
|
-
return u(function() {
|
|
59
|
-
a.value = n, a.getSnapshot = t, i(a) && m({ inst: a });
|
|
60
|
-
}, [
|
|
61
|
-
e,
|
|
62
|
-
n,
|
|
63
|
-
t
|
|
64
|
-
]), l(function() {
|
|
65
|
-
return i(a) && m({ inst: a }), e(function() {
|
|
66
|
-
i(a) && m({ inst: a });
|
|
67
|
-
});
|
|
68
|
-
}, [e]), d(n), n;
|
|
69
|
-
}
|
|
70
|
-
function i(e) {
|
|
71
|
-
var t = e.getSnapshot;
|
|
72
|
-
e = e.value;
|
|
73
|
-
try {
|
|
74
|
-
var n = t();
|
|
75
|
-
return !s(e, n);
|
|
76
|
-
} catch {
|
|
77
|
-
return !0;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function a(e, t) {
|
|
81
|
-
return t();
|
|
82
|
-
}
|
|
83
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
84
|
-
var o = e("react"), s = typeof Object.is == "function" ? Object.is : n, c = o.useState, l = o.useEffect, u = o.useLayoutEffect, d = o.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? a : r;
|
|
85
|
-
t.useSyncExternalStore = o.useSyncExternalStore === void 0 ? m : o.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
86
|
-
})();
|
|
87
|
-
})), i = /* @__PURE__ */ t(((e, t) => {
|
|
88
|
-
process.env.NODE_ENV === "production" ? t.exports = n() : t.exports = r();
|
|
89
|
-
}));
|
|
90
|
-
//#endregion
|
|
91
|
-
export { i as t };
|
package/dist/sidebar-DIW-1cin.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-DR0lXVFG.js"),r=require("./separator-DBjErwHf.js"),i=require("./tooltip-CAIbshMk.js"),a=require("./button.cjs"),o=require("./input.cjs"),s=require("./sheet.cjs"),c=require("./skeleton.cjs");let l=require("react");l=e.r(l);let u=require("react/jsx-runtime"),d=require("lucide-react"),f=require("class-variance-authority");var p=768;function m(){let[e,t]=l.useState(void 0);return l.useEffect(()=>{let e=window.matchMedia(`(max-width: ${p-1}px)`),n=()=>{t(window.innerWidth<p)};return e.addEventListener(`change`,n),t(window.innerWidth<p),()=>e.removeEventListener(`change`,n)},[]),!!e}var h=`sidebar_state`,g=3600*24*7,_=`16rem`,v=`18rem`,y=`3rem`,b=`b`,x=l.createContext(null);function S(){let e=l.useContext(x);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function C({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:a,children:o,...s}){let c=m(),[d,f]=l.useState(!1),[p,v]=l.useState(e),S=n??p,C=l.useCallback(e=>{let t=typeof e==`function`?e(S):e;r?r(t):v(t),document.cookie=`${h}=${t}; path=/; max-age=${g}`},[r,S]),w=l.useCallback(()=>c?f(e=>!e):C(e=>!e),[c,C,f]);l.useEffect(()=>{let e=e=>{e.key===b&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),w())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[w]);let T=S?`expanded`:`collapsed`,E=l.useMemo(()=>({state:T,open:S,setOpen:C,isMobile:c,openMobile:d,setOpenMobile:f,toggleSidebar:w}),[T,S,C,c,d,f,w]);return(0,u.jsx)(x.Provider,{value:E,children:(0,u.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":_,"--sidebar-width-icon":y,...a},className:t.t(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,i),...s,children:o})})}function w({side:e=`left`,variant:n=`sidebar`,collapsible:r=`offcanvas`,className:i,children:a,dir:o,...c}){let{isMobile:l,state:d,openMobile:f,setOpenMobile:p}=S();return r===`none`?(0,u.jsx)(`div`,{"data-slot":`sidebar`,className:t.t(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,i),...c,children:a}):l?(0,u.jsx)(s.Sheet,{open:f,onOpenChange:p,...c,children:(0,u.jsxs)(s.SheetContent,{dir:o,"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":v},side:e,children:[(0,u.jsxs)(s.SheetHeader,{className:`sr-only`,children:[(0,u.jsx)(s.SheetTitle,{children:`Sidebar`}),(0,u.jsx)(s.SheetDescription,{children:`Displays the mobile sidebar.`})]}),(0,u.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:a})]})}):(0,u.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":d,"data-collapsible":d===`collapsed`?r:``,"data-variant":n,"data-side":e,"data-slot":`sidebar`,children:[(0,u.jsx)(`div`,{"data-slot":`sidebar-gap`,className:t.t(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,u.jsx)(`div`,{"data-slot":`sidebar-container`,"data-side":e,className:t.t(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s`,i),...c,children:(0,u.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`bg-sidebar group-data-[variant=floating]:ring-sidebar-border flex size-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1`,children:a})})]})}function T({className:e,onClick:n,...r}){let{toggleSidebar:i}=S();return(0,u.jsxs)(a.Button,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,className:t.t(e),onClick:e=>{n?.(e),i()},...r,children:[(0,u.jsx)(d.PanelLeftIcon,{}),(0,u.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function E({className:e,...n}){let{toggleSidebar:r}=S();return(0,u.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:r,title:`Toggle Sidebar`,className:t.t(`hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2 rtl:rtl:translate-x-1/2 rtl:ltr:translate-x-1/2`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=left]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full rtl:group-data-[collapsible=offcanvas]:-translate-x-0`,`[[data-side=left][data-collapsible=offcanvas]_&]:-end-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-start-2`,e),...n})}function D({className:e,...n}){return(0,u.jsx)(`main`,{"data-slot":`sidebar-inset`,className:t.t(`bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2`,e),...n})}function O({className:e,...n}){return(0,u.jsx)(o.Input,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:t.t(`bg-background h-8 w-full shadow-none`,e),...n})}function k({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:t.t(`flex flex-col gap-2 p-2`,e),...n})}function A({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:t.t(`flex flex-col gap-2 p-2`,e),...n})}function j({className:e,...n}){return(0,u.jsx)(r.t,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:t.t(`bg-sidebar-border mx-2 w-auto`,e),...n})}function M({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:t.t(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...n})}function N({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:t.t(`relative flex w-full min-w-0 flex-col p-2`,e),...n})}function P({className:e,asChild:r=!1,...i}){return(0,u.jsx)(r?n.t:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:t.t(`text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,e),...i})}function F({className:e,asChild:r=!1,...i}){return(0,u.jsx)(r?n.t:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:t.t(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute end-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0`,e),...i})}function I({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:t.t(`w-full text-sm`,e),...n})}function L({className:e,...n}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:t.t(`flex w-full min-w-0 flex-col gap-0`,e),...n})}function R({className:e,...n}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:t.t(`group/menu-item relative`,e),...n})}var z=(0,f.cva)(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function B({asChild:e=!1,isActive:r=!1,variant:a=`default`,size:o=`default`,tooltip:s,className:c,...l}){let d=e?n.t:`button`,{isMobile:f,state:p}=S(),m=(0,u.jsx)(d,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":r,className:t.t(z({variant:a,size:o}),c),...l});return s?(typeof s==`string`&&(s={children:s}),(0,u.jsxs)(i.t,{children:[(0,u.jsx)(i.i,{asChild:!0,children:m}),(0,u.jsx)(i.n,{side:`right`,align:`center`,hidden:p!==`collapsed`||f,...s})]})):m}function V({className:e,asChild:r=!1,showOnHover:i=!1,...a}){return(0,u.jsx)(r?n.t:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:t.t(`text-sidebar-foreground ring-sidebar-ring peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute end-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0`,i&&`peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0`,e),...a})}function H({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:t.t(`text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground pointer-events-none absolute end-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1`,e),...n})}function U({className:e,showIcon:n=!1,...r}){let[i]=l.useState(()=>`${Math.floor(Math.random()*40)+50}%`);return(0,u.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:t.t(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[n&&(0,u.jsx)(c.Skeleton,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,u.jsx)(c.Skeleton,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function W({className:e,...n}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:t.t(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-s px-2.5 py-0.5 group-data-[collapsible=icon]:hidden rtl:-translate-x-px`,e),...n})}function G({className:e,...n}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:t.t(`group/menu-sub-item relative`,e),...n})}function K({asChild:e=!1,size:r=`md`,isActive:i=!1,className:a,...o}){return(0,u.jsx)(e?n.t:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":r,"data-active":i,className:t.t(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden group-data-[collapsible=icon]:hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs rtl:translate-x-px [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,a),...o})}Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return G}});
|
package/dist/slider-CCPXejUF.mjs
DELETED
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
-
import { a as t } from "./dist-CQhWBhaI.mjs";
|
|
3
|
-
import { t as n } from "./dist-Cacc4QIh.mjs";
|
|
4
|
-
import { n as r } from "./dist-Bm8Cuttq.mjs";
|
|
5
|
-
import { t as i } from "./dist-Dz3LbuDd.mjs";
|
|
6
|
-
import { t as a } from "./dist-BPBwSSyk.mjs";
|
|
7
|
-
import { t as o } from "./dist-DuTFGM_g.mjs";
|
|
8
|
-
import { n as s } from "./dist-BYdcKuDi.mjs";
|
|
9
|
-
import { t as c } from "./dist-xgVOvcNx.mjs";
|
|
10
|
-
import { t as l } from "./dist-N3JLy7yk.mjs";
|
|
11
|
-
import { t as u } from "./dist-DGzGsPqo2.mjs";
|
|
12
|
-
import * as d from "react";
|
|
13
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
14
|
-
//#region ../../node_modules/.bun/@radix-ui+react-slider@1.3.6+2d3f272c3a65784a/node_modules/@radix-ui/react-slider/dist/index.mjs
|
|
15
|
-
var m = ["PageUp", "PageDown"], h = [
|
|
16
|
-
"ArrowUp",
|
|
17
|
-
"ArrowDown",
|
|
18
|
-
"ArrowLeft",
|
|
19
|
-
"ArrowRight"
|
|
20
|
-
], g = {
|
|
21
|
-
"from-left": [
|
|
22
|
-
"Home",
|
|
23
|
-
"PageDown",
|
|
24
|
-
"ArrowDown",
|
|
25
|
-
"ArrowLeft"
|
|
26
|
-
],
|
|
27
|
-
"from-right": [
|
|
28
|
-
"Home",
|
|
29
|
-
"PageDown",
|
|
30
|
-
"ArrowDown",
|
|
31
|
-
"ArrowRight"
|
|
32
|
-
],
|
|
33
|
-
"from-bottom": [
|
|
34
|
-
"Home",
|
|
35
|
-
"PageDown",
|
|
36
|
-
"ArrowDown",
|
|
37
|
-
"ArrowLeft"
|
|
38
|
-
],
|
|
39
|
-
"from-top": [
|
|
40
|
-
"Home",
|
|
41
|
-
"PageDown",
|
|
42
|
-
"ArrowUp",
|
|
43
|
-
"ArrowLeft"
|
|
44
|
-
]
|
|
45
|
-
}, _ = "Slider", [v, y, b] = i(_), [x, S] = r(_, [b]), [C, w] = x(_), T = d.forwardRef((e, t) => {
|
|
46
|
-
let { name: n, min: r = 0, max: i = 100, step: s = 1, orientation: c = "horizontal", disabled: l = !1, minStepsBetweenThumbs: p = 0, defaultValue: g = [r], value: _, onValueChange: y = () => {}, onValueCommit: b = () => {}, inverted: x = !1, form: S, ...w } = e, T = d.useRef(/* @__PURE__ */ new Set()), E = d.useRef(0), D = c === "horizontal" ? O : k, [A = [], j] = o({
|
|
47
|
-
prop: _,
|
|
48
|
-
defaultProp: g,
|
|
49
|
-
onChange: (e) => {
|
|
50
|
-
[...T.current][E.current]?.focus(), y(e);
|
|
51
|
-
}
|
|
52
|
-
}), M = d.useRef(A);
|
|
53
|
-
function N(e) {
|
|
54
|
-
I(e, U(A, e));
|
|
55
|
-
}
|
|
56
|
-
function P(e) {
|
|
57
|
-
I(e, E.current);
|
|
58
|
-
}
|
|
59
|
-
function F() {
|
|
60
|
-
let e = M.current[E.current];
|
|
61
|
-
A[E.current] !== e && b(A);
|
|
62
|
-
}
|
|
63
|
-
function I(e, t, { commit: n } = { commit: !1 }) {
|
|
64
|
-
let a = J(s), o = u(Y(Math.round((e - r) / s) * s + r, a), [r, i]);
|
|
65
|
-
j((e = []) => {
|
|
66
|
-
let r = B(e, o, t);
|
|
67
|
-
if (K(r, p * s)) {
|
|
68
|
-
E.current = r.indexOf(o);
|
|
69
|
-
let t = String(r) !== String(e);
|
|
70
|
-
return t && n && b(r), t ? r : e;
|
|
71
|
-
} else return e;
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
return /* @__PURE__ */ f(C, {
|
|
75
|
-
scope: e.__scopeSlider,
|
|
76
|
-
name: n,
|
|
77
|
-
disabled: l,
|
|
78
|
-
min: r,
|
|
79
|
-
max: i,
|
|
80
|
-
valueIndexToChangeRef: E,
|
|
81
|
-
thumbs: T.current,
|
|
82
|
-
values: A,
|
|
83
|
-
orientation: c,
|
|
84
|
-
form: S,
|
|
85
|
-
children: /* @__PURE__ */ f(v.Provider, {
|
|
86
|
-
scope: e.__scopeSlider,
|
|
87
|
-
children: /* @__PURE__ */ f(v.Slot, {
|
|
88
|
-
scope: e.__scopeSlider,
|
|
89
|
-
children: /* @__PURE__ */ f(D, {
|
|
90
|
-
"aria-disabled": l,
|
|
91
|
-
"data-disabled": l ? "" : void 0,
|
|
92
|
-
...w,
|
|
93
|
-
ref: t,
|
|
94
|
-
onPointerDown: a(w.onPointerDown, () => {
|
|
95
|
-
l || (M.current = A);
|
|
96
|
-
}),
|
|
97
|
-
min: r,
|
|
98
|
-
max: i,
|
|
99
|
-
inverted: x,
|
|
100
|
-
onSlideStart: l ? void 0 : N,
|
|
101
|
-
onSlideMove: l ? void 0 : P,
|
|
102
|
-
onSlideEnd: l ? void 0 : F,
|
|
103
|
-
onHomeKeyDown: () => !l && I(r, 0, { commit: !0 }),
|
|
104
|
-
onEndKeyDown: () => !l && I(i, A.length - 1, { commit: !0 }),
|
|
105
|
-
onStepKeyDown: ({ event: e, direction: t }) => {
|
|
106
|
-
if (!l) {
|
|
107
|
-
let n = m.includes(e.key) || e.shiftKey && h.includes(e.key) ? 10 : 1, r = E.current, i = A[r];
|
|
108
|
-
I(i + s * n * t, r, { commit: !0 });
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
})
|
|
112
|
-
})
|
|
113
|
-
})
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
T.displayName = _;
|
|
117
|
-
var [E, D] = x(_, {
|
|
118
|
-
startEdge: "left",
|
|
119
|
-
endEdge: "right",
|
|
120
|
-
size: "width",
|
|
121
|
-
direction: 1
|
|
122
|
-
}), O = d.forwardRef((e, n) => {
|
|
123
|
-
let { min: r, max: i, dir: a, inverted: o, onSlideStart: c, onSlideMove: l, onSlideEnd: u, onStepKeyDown: p, ...m } = e, [h, _] = d.useState(null), v = t(n, (e) => _(e)), y = d.useRef(void 0), b = s(a), x = b === "ltr", S = x && !o || !x && o;
|
|
124
|
-
function C(e) {
|
|
125
|
-
let t = y.current || h.getBoundingClientRect(), n = q([0, t.width], S ? [r, i] : [i, r]);
|
|
126
|
-
return y.current = t, n(e - t.left);
|
|
127
|
-
}
|
|
128
|
-
return /* @__PURE__ */ f(E, {
|
|
129
|
-
scope: e.__scopeSlider,
|
|
130
|
-
startEdge: S ? "left" : "right",
|
|
131
|
-
endEdge: S ? "right" : "left",
|
|
132
|
-
direction: S ? 1 : -1,
|
|
133
|
-
size: "width",
|
|
134
|
-
children: /* @__PURE__ */ f(A, {
|
|
135
|
-
dir: b,
|
|
136
|
-
"data-orientation": "horizontal",
|
|
137
|
-
...m,
|
|
138
|
-
ref: v,
|
|
139
|
-
style: {
|
|
140
|
-
...m.style,
|
|
141
|
-
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
142
|
-
},
|
|
143
|
-
onSlideStart: (e) => {
|
|
144
|
-
let t = C(e.clientX);
|
|
145
|
-
c?.(t);
|
|
146
|
-
},
|
|
147
|
-
onSlideMove: (e) => {
|
|
148
|
-
let t = C(e.clientX);
|
|
149
|
-
l?.(t);
|
|
150
|
-
},
|
|
151
|
-
onSlideEnd: () => {
|
|
152
|
-
y.current = void 0, u?.();
|
|
153
|
-
},
|
|
154
|
-
onStepKeyDown: (e) => {
|
|
155
|
-
let t = g[S ? "from-left" : "from-right"].includes(e.key);
|
|
156
|
-
p?.({
|
|
157
|
-
event: e,
|
|
158
|
-
direction: t ? -1 : 1
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
})
|
|
162
|
-
});
|
|
163
|
-
}), k = d.forwardRef((e, n) => {
|
|
164
|
-
let { min: r, max: i, inverted: a, onSlideStart: o, onSlideMove: s, onSlideEnd: c, onStepKeyDown: l, ...u } = e, p = d.useRef(null), m = t(n, p), h = d.useRef(void 0), _ = !a;
|
|
165
|
-
function v(e) {
|
|
166
|
-
let t = h.current || p.current.getBoundingClientRect(), n = q([0, t.height], _ ? [i, r] : [r, i]);
|
|
167
|
-
return h.current = t, n(e - t.top);
|
|
168
|
-
}
|
|
169
|
-
return /* @__PURE__ */ f(E, {
|
|
170
|
-
scope: e.__scopeSlider,
|
|
171
|
-
startEdge: _ ? "bottom" : "top",
|
|
172
|
-
endEdge: _ ? "top" : "bottom",
|
|
173
|
-
size: "height",
|
|
174
|
-
direction: _ ? 1 : -1,
|
|
175
|
-
children: /* @__PURE__ */ f(A, {
|
|
176
|
-
"data-orientation": "vertical",
|
|
177
|
-
...u,
|
|
178
|
-
ref: m,
|
|
179
|
-
style: {
|
|
180
|
-
...u.style,
|
|
181
|
-
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
182
|
-
},
|
|
183
|
-
onSlideStart: (e) => {
|
|
184
|
-
let t = v(e.clientY);
|
|
185
|
-
o?.(t);
|
|
186
|
-
},
|
|
187
|
-
onSlideMove: (e) => {
|
|
188
|
-
let t = v(e.clientY);
|
|
189
|
-
s?.(t);
|
|
190
|
-
},
|
|
191
|
-
onSlideEnd: () => {
|
|
192
|
-
h.current = void 0, c?.();
|
|
193
|
-
},
|
|
194
|
-
onStepKeyDown: (e) => {
|
|
195
|
-
let t = g[_ ? "from-bottom" : "from-top"].includes(e.key);
|
|
196
|
-
l?.({
|
|
197
|
-
event: e,
|
|
198
|
-
direction: t ? -1 : 1
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
})
|
|
202
|
-
});
|
|
203
|
-
}), A = d.forwardRef((e, t) => {
|
|
204
|
-
let { __scopeSlider: r, onSlideStart: i, onSlideMove: o, onSlideEnd: s, onHomeKeyDown: c, onEndKeyDown: l, onStepKeyDown: u, ...d } = e, p = w(_, r);
|
|
205
|
-
return /* @__PURE__ */ f(n.span, {
|
|
206
|
-
...d,
|
|
207
|
-
ref: t,
|
|
208
|
-
onKeyDown: a(e.onKeyDown, (e) => {
|
|
209
|
-
e.key === "Home" ? (c(e), e.preventDefault()) : e.key === "End" ? (l(e), e.preventDefault()) : m.concat(h).includes(e.key) && (u(e), e.preventDefault());
|
|
210
|
-
}),
|
|
211
|
-
onPointerDown: a(e.onPointerDown, (e) => {
|
|
212
|
-
let t = e.target;
|
|
213
|
-
t.setPointerCapture(e.pointerId), e.preventDefault(), p.thumbs.has(t) ? t.focus() : i(e);
|
|
214
|
-
}),
|
|
215
|
-
onPointerMove: a(e.onPointerMove, (e) => {
|
|
216
|
-
e.target.hasPointerCapture(e.pointerId) && o(e);
|
|
217
|
-
}),
|
|
218
|
-
onPointerUp: a(e.onPointerUp, (e) => {
|
|
219
|
-
let t = e.target;
|
|
220
|
-
t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), s(e));
|
|
221
|
-
})
|
|
222
|
-
});
|
|
223
|
-
}), j = "SliderTrack", M = d.forwardRef((e, t) => {
|
|
224
|
-
let { __scopeSlider: r, ...i } = e, a = w(j, r);
|
|
225
|
-
return /* @__PURE__ */ f(n.span, {
|
|
226
|
-
"data-disabled": a.disabled ? "" : void 0,
|
|
227
|
-
"data-orientation": a.orientation,
|
|
228
|
-
...i,
|
|
229
|
-
ref: t
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
|
-
M.displayName = j;
|
|
233
|
-
var N = "SliderRange", P = d.forwardRef((e, r) => {
|
|
234
|
-
let { __scopeSlider: i, ...a } = e, o = w(N, i), s = D(N, i), c = t(r, d.useRef(null)), l = o.values.length, u = o.values.map((e) => V(e, o.min, o.max)), p = l > 1 ? Math.min(...u) : 0, m = 100 - Math.max(...u);
|
|
235
|
-
return /* @__PURE__ */ f(n.span, {
|
|
236
|
-
"data-orientation": o.orientation,
|
|
237
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
238
|
-
...a,
|
|
239
|
-
ref: c,
|
|
240
|
-
style: {
|
|
241
|
-
...e.style,
|
|
242
|
-
[s.startEdge]: p + "%",
|
|
243
|
-
[s.endEdge]: m + "%"
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
});
|
|
247
|
-
P.displayName = N;
|
|
248
|
-
var F = "SliderThumb", I = d.forwardRef((e, n) => {
|
|
249
|
-
let r = y(e.__scopeSlider), [i, a] = d.useState(null), o = t(n, (e) => a(e)), s = d.useMemo(() => i ? r().findIndex((e) => e.ref.current === i) : -1, [r, i]);
|
|
250
|
-
return /* @__PURE__ */ f(L, {
|
|
251
|
-
...e,
|
|
252
|
-
ref: o,
|
|
253
|
-
index: s
|
|
254
|
-
});
|
|
255
|
-
}), L = d.forwardRef((e, r) => {
|
|
256
|
-
let { __scopeSlider: i, index: o, name: s, ...c } = e, u = w(F, i), m = D(F, i), [h, g] = d.useState(null), _ = t(r, (e) => g(e)), y = h ? u.form || !!h.closest("form") : !0, b = l(h), x = u.values[o], S = x === void 0 ? 0 : V(x, u.min, u.max), C = H(o, u.values.length), T = b?.[m.size], E = T ? W(T, S, m.direction) : 0;
|
|
257
|
-
return d.useEffect(() => {
|
|
258
|
-
if (h) return u.thumbs.add(h), () => {
|
|
259
|
-
u.thumbs.delete(h);
|
|
260
|
-
};
|
|
261
|
-
}, [h, u.thumbs]), /* @__PURE__ */ p("span", {
|
|
262
|
-
style: {
|
|
263
|
-
transform: "var(--radix-slider-thumb-transform)",
|
|
264
|
-
position: "absolute",
|
|
265
|
-
[m.startEdge]: `calc(${S}% + ${E}px)`
|
|
266
|
-
},
|
|
267
|
-
children: [/* @__PURE__ */ f(v.ItemSlot, {
|
|
268
|
-
scope: e.__scopeSlider,
|
|
269
|
-
children: /* @__PURE__ */ f(n.span, {
|
|
270
|
-
role: "slider",
|
|
271
|
-
"aria-label": e["aria-label"] || C,
|
|
272
|
-
"aria-valuemin": u.min,
|
|
273
|
-
"aria-valuenow": x,
|
|
274
|
-
"aria-valuemax": u.max,
|
|
275
|
-
"aria-orientation": u.orientation,
|
|
276
|
-
"data-orientation": u.orientation,
|
|
277
|
-
"data-disabled": u.disabled ? "" : void 0,
|
|
278
|
-
tabIndex: u.disabled ? void 0 : 0,
|
|
279
|
-
...c,
|
|
280
|
-
ref: _,
|
|
281
|
-
style: x === void 0 ? { display: "none" } : e.style,
|
|
282
|
-
onFocus: a(e.onFocus, () => {
|
|
283
|
-
u.valueIndexToChangeRef.current = o;
|
|
284
|
-
})
|
|
285
|
-
})
|
|
286
|
-
}), y && /* @__PURE__ */ f(z, {
|
|
287
|
-
name: s ?? (u.name ? u.name + (u.values.length > 1 ? "[]" : "") : void 0),
|
|
288
|
-
form: u.form,
|
|
289
|
-
value: x
|
|
290
|
-
}, o)]
|
|
291
|
-
});
|
|
292
|
-
});
|
|
293
|
-
I.displayName = F;
|
|
294
|
-
var R = "RadioBubbleInput", z = d.forwardRef(({ __scopeSlider: e, value: r, ...i }, a) => {
|
|
295
|
-
let o = d.useRef(null), s = t(o, a), l = c(r);
|
|
296
|
-
return d.useEffect(() => {
|
|
297
|
-
let e = o.current;
|
|
298
|
-
if (!e) return;
|
|
299
|
-
let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set;
|
|
300
|
-
if (l !== r && n) {
|
|
301
|
-
let t = new Event("input", { bubbles: !0 });
|
|
302
|
-
n.call(e, r), e.dispatchEvent(t);
|
|
303
|
-
}
|
|
304
|
-
}, [l, r]), /* @__PURE__ */ f(n.input, {
|
|
305
|
-
style: { display: "none" },
|
|
306
|
-
...i,
|
|
307
|
-
ref: s,
|
|
308
|
-
defaultValue: r
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
z.displayName = R;
|
|
312
|
-
function B(e = [], t, n) {
|
|
313
|
-
let r = [...e];
|
|
314
|
-
return r[n] = t, r.sort((e, t) => e - t);
|
|
315
|
-
}
|
|
316
|
-
function V(e, t, n) {
|
|
317
|
-
return u(100 / (n - t) * (e - t), [0, 100]);
|
|
318
|
-
}
|
|
319
|
-
function H(e, t) {
|
|
320
|
-
if (t > 2) return `Value ${e + 1} of ${t}`;
|
|
321
|
-
if (t === 2) return ["Minimum", "Maximum"][e];
|
|
322
|
-
}
|
|
323
|
-
function U(e, t) {
|
|
324
|
-
if (e.length === 1) return 0;
|
|
325
|
-
let n = e.map((e) => Math.abs(e - t)), r = Math.min(...n);
|
|
326
|
-
return n.indexOf(r);
|
|
327
|
-
}
|
|
328
|
-
function W(e, t, n) {
|
|
329
|
-
let r = e / 2;
|
|
330
|
-
return (r - q([0, 50], [0, r])(t) * n) * n;
|
|
331
|
-
}
|
|
332
|
-
function G(e) {
|
|
333
|
-
return e.slice(0, -1).map((t, n) => e[n + 1] - t);
|
|
334
|
-
}
|
|
335
|
-
function K(e, t) {
|
|
336
|
-
if (t > 0) {
|
|
337
|
-
let n = G(e);
|
|
338
|
-
return Math.min(...n) >= t;
|
|
339
|
-
}
|
|
340
|
-
return !0;
|
|
341
|
-
}
|
|
342
|
-
function q(e, t) {
|
|
343
|
-
return (n) => {
|
|
344
|
-
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
345
|
-
let r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
346
|
-
return t[0] + r * (n - e[0]);
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
function J(e) {
|
|
350
|
-
return (String(e).split(".")[1] || "").length;
|
|
351
|
-
}
|
|
352
|
-
function Y(e, t) {
|
|
353
|
-
let n = 10 ** t;
|
|
354
|
-
return Math.round(e * n) / n;
|
|
355
|
-
}
|
|
356
|
-
var X = T, Z = M, Q = P, $ = I;
|
|
357
|
-
//#endregion
|
|
358
|
-
//#region src/slider.tsx
|
|
359
|
-
function ee({ className: t, defaultValue: n, value: r, min: i = 0, max: a = 100, ...o }) {
|
|
360
|
-
let s = d.useMemo(() => Array.isArray(r) ? r : Array.isArray(n) ? n : [i, a], [
|
|
361
|
-
r,
|
|
362
|
-
n,
|
|
363
|
-
i,
|
|
364
|
-
a
|
|
365
|
-
]);
|
|
366
|
-
return /* @__PURE__ */ p(X, {
|
|
367
|
-
"data-slot": "slider",
|
|
368
|
-
defaultValue: n,
|
|
369
|
-
value: r,
|
|
370
|
-
min: i,
|
|
371
|
-
max: a,
|
|
372
|
-
className: e("relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", t),
|
|
373
|
-
...o,
|
|
374
|
-
children: [/* @__PURE__ */ f(Z, {
|
|
375
|
-
"data-slot": "slider-track",
|
|
376
|
-
className: "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1",
|
|
377
|
-
children: /* @__PURE__ */ f(Q, {
|
|
378
|
-
"data-slot": "slider-range",
|
|
379
|
-
className: "bg-primary absolute select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
380
|
-
})
|
|
381
|
-
}), Array.from({ length: s.length }, (e, t) => /* @__PURE__ */ f($, {
|
|
382
|
-
"data-slot": "slider-thumb",
|
|
383
|
-
className: "border-ring ring-ring/50 relative block size-3 shrink-0 rounded-full border bg-white transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"
|
|
384
|
-
}, t))]
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
//#endregion
|
|
388
|
-
export { ee as t };
|
package/dist/slider-w05gD_Ix.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-DR0lXVFG.js"),r=require("./dist-CiM892Rg.js"),i=require("./dist-CSkpam6a.js"),a=require("./dist-CWElW7UD.js"),o=require("./dist-CRLbUj9C.js"),s=require("./dist-DynSBUGq.js"),c=require("./dist-1C8JOpVg.js"),l=require("./dist-Cb7OVHcJ.js"),u=require("./dist-Ccv5O-Vw.js"),d=require("./dist-C_45sBzc2.js");let f=require("react"),p=e.r(f,1);f=e.r(f);let m=require("react/jsx-runtime");var h=[`PageUp`,`PageDown`],g=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],_={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},v=`Slider`,[y,b,x]=a.t(v),[S,C]=i.n(v,[x]),[w,T]=S(v),E=p.forwardRef((e,t)=>{let{name:n,min:r=0,max:i=100,step:a=1,orientation:c=`horizontal`,disabled:l=!1,minStepsBetweenThumbs:u=0,defaultValue:f=[r],value:_,onValueChange:v=()=>{},onValueCommit:b=()=>{},inverted:x=!1,form:S,...C}=e,T=p.useRef(new Set),E=p.useRef(0),D=c===`horizontal`?k:A,[O=[],j]=s.t({prop:_,defaultProp:f,onChange:e=>{[...T.current][E.current]?.focus(),v(e)}}),M=p.useRef(O);function N(e){I(e,W(O,e))}function P(e){I(e,E.current)}function F(){let e=M.current[E.current];O[E.current]!==e&&b(O)}function I(e,t,{commit:n}={commit:!1}){let o=Y(a),s=d.t(X(Math.round((e-r)/a)*a+r,o),[r,i]);j((e=[])=>{let r=V(e,s,t);if(q(r,u*a)){E.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&b(r),t?r:e}else return e})}return(0,m.jsx)(w,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:i,valueIndexToChangeRef:E,thumbs:T.current,values:O,orientation:c,form:S,children:(0,m.jsx)(y.Provider,{scope:e.__scopeSlider,children:(0,m.jsx)(y.Slot,{scope:e.__scopeSlider,children:(0,m.jsx)(D,{"aria-disabled":l,"data-disabled":l?``:void 0,...C,ref:t,onPointerDown:o.t(C.onPointerDown,()=>{l||(M.current=O)}),min:r,max:i,inverted:x,onSlideStart:l?void 0:N,onSlideMove:l?void 0:P,onSlideEnd:l?void 0:F,onHomeKeyDown:()=>!l&&I(r,0,{commit:!0}),onEndKeyDown:()=>!l&&I(i,O.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!l){let n=h.includes(e.key)||e.shiftKey&&g.includes(e.key)?10:1,r=E.current,i=O[r];I(i+a*n*t,r,{commit:!0})}}})})})})});E.displayName=v;var[D,O]=S(v,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),k=p.forwardRef((e,t)=>{let{min:r,max:i,dir:a,inverted:o,onSlideStart:s,onSlideMove:l,onSlideEnd:u,onStepKeyDown:d,...f}=e,[h,g]=p.useState(null),v=n.a(t,e=>g(e)),y=p.useRef(void 0),b=c.n(a),x=b===`ltr`,S=x&&!o||!x&&o;function C(e){let t=y.current||h.getBoundingClientRect(),n=J([0,t.width],S?[r,i]:[i,r]);return y.current=t,n(e-t.left)}return(0,m.jsx)(D,{scope:e.__scopeSlider,startEdge:S?`left`:`right`,endEdge:S?`right`:`left`,direction:S?1:-1,size:`width`,children:(0,m.jsx)(j,{dir:b,"data-orientation":`horizontal`,...f,ref:v,style:{...f.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=C(e.clientX);s?.(t)},onSlideMove:e=>{let t=C(e.clientX);l?.(t)},onSlideEnd:()=>{y.current=void 0,u?.()},onStepKeyDown:e=>{let t=_[S?`from-left`:`from-right`].includes(e.key);d?.({event:e,direction:t?-1:1})}})})}),A=p.forwardRef((e,t)=>{let{min:r,max:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,d=p.useRef(null),f=n.a(t,d),h=p.useRef(void 0),g=!a;function v(e){let t=h.current||d.current.getBoundingClientRect(),n=J([0,t.height],g?[i,r]:[r,i]);return h.current=t,n(e-t.top)}return(0,m.jsx)(D,{scope:e.__scopeSlider,startEdge:g?`bottom`:`top`,endEdge:g?`top`:`bottom`,size:`height`,direction:g?1:-1,children:(0,m.jsx)(j,{"data-orientation":`vertical`,...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=v(e.clientY);o?.(t)},onSlideMove:e=>{let t=v(e.clientY);s?.(t)},onSlideEnd:()=>{h.current=void 0,c?.()},onStepKeyDown:e=>{let t=_[g?`from-bottom`:`from-top`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),j=p.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onHomeKeyDown:c,onEndKeyDown:l,onStepKeyDown:u,...d}=e,f=T(v,n);return(0,m.jsx)(r.t.span,{...d,ref:t,onKeyDown:o.t(e.onKeyDown,e=>{e.key===`Home`?(c(e),e.preventDefault()):e.key===`End`?(l(e),e.preventDefault()):h.concat(g).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:o.t(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),f.thumbs.has(t)?t.focus():i(e)}),onPointerMove:o.t(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:o.t(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),s(e))})})}),M=`SliderTrack`,N=p.forwardRef((e,t)=>{let{__scopeSlider:n,...i}=e,a=T(M,n);return(0,m.jsx)(r.t.span,{"data-disabled":a.disabled?``:void 0,"data-orientation":a.orientation,...i,ref:t})});N.displayName=M;var P=`SliderRange`,F=p.forwardRef((e,t)=>{let{__scopeSlider:i,...a}=e,o=T(P,i),s=O(P,i),c=n.a(t,p.useRef(null)),l=o.values.length,u=o.values.map(e=>H(e,o.min,o.max)),d=l>1?Math.min(...u):0,f=100-Math.max(...u);return(0,m.jsx)(r.t.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?``:void 0,...a,ref:c,style:{...e.style,[s.startEdge]:d+`%`,[s.endEdge]:f+`%`}})});F.displayName=P;var I=`SliderThumb`,L=p.forwardRef((e,t)=>{let r=b(e.__scopeSlider),[i,a]=p.useState(null),o=n.a(t,e=>a(e)),s=p.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return(0,m.jsx)(R,{...e,ref:o,index:s})}),R=p.forwardRef((e,t)=>{let{__scopeSlider:i,index:a,name:s,...c}=e,l=T(I,i),d=O(I,i),[f,h]=p.useState(null),g=n.a(t,e=>h(e)),_=f?l.form||!!f.closest(`form`):!0,v=u.t(f),b=l.values[a],x=b===void 0?0:H(b,l.min,l.max),S=U(a,l.values.length),C=v?.[d.size],w=C?G(C,x,d.direction):0;return p.useEffect(()=>{if(f)return l.thumbs.add(f),()=>{l.thumbs.delete(f)}},[f,l.thumbs]),(0,m.jsxs)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[d.startEdge]:`calc(${x}% + ${w}px)`},children:[(0,m.jsx)(y.ItemSlot,{scope:e.__scopeSlider,children:(0,m.jsx)(r.t.span,{role:`slider`,"aria-label":e[`aria-label`]||S,"aria-valuemin":l.min,"aria-valuenow":b,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?``:void 0,tabIndex:l.disabled?void 0:0,...c,ref:g,style:b===void 0?{display:`none`}:e.style,onFocus:o.t(e.onFocus,()=>{l.valueIndexToChangeRef.current=a})})}),_&&(0,m.jsx)(B,{name:s??(l.name?l.name+(l.values.length>1?`[]`:``):void 0),form:l.form,value:b},a)]})});L.displayName=I;var z=`RadioBubbleInput`,B=p.forwardRef(({__scopeSlider:e,value:t,...i},a)=>{let o=p.useRef(null),s=n.a(o,a),c=l.t(t);return p.useEffect(()=>{let e=o.current;if(!e)return;let n=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(c!==t&&r){let n=new Event(`input`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[c,t]),(0,m.jsx)(r.t.input,{style:{display:`none`},...i,ref:s,defaultValue:t})});B.displayName=z;function V(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function H(e,t,n){return d.t(100/(n-t)*(e-t),[0,100])}function U(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function W(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function G(e,t,n){let r=e/2;return(r-J([0,50],[0,r])(t)*n)*n}function K(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function q(e,t){if(t>0){let n=K(e);return Math.min(...n)>=t}return!0}function J(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Y(e){return(String(e).split(`.`)[1]||``).length}function X(e,t){let n=10**t;return Math.round(e*n)/n}var Z=E,Q=N,$=F,ee=L;function te({className:e,defaultValue:n,value:r,min:i=0,max:a=100,...o}){let s=f.useMemo(()=>Array.isArray(r)?r:Array.isArray(n)?n:[i,a],[r,n,i,a]);return(0,m.jsxs)(Z,{"data-slot":`slider`,defaultValue:n,value:r,min:i,max:a,className:t.t(`relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col`,e),...o,children:[(0,m.jsx)(Q,{"data-slot":`slider-track`,className:`bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1`,children:(0,m.jsx)($,{"data-slot":`slider-range`,className:`bg-primary absolute select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full`})}),Array.from({length:s.length},(e,t)=>(0,m.jsx)(ee,{"data-slot":`slider-thumb`,className:`border-ring ring-ring/50 relative block size-3 shrink-0 rounded-full border bg-white transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50`},t))]})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return te}});
|