@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
package/dist/toast-DVI6jPq5.mjs
DELETED
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
-
import { a as t } from "./dist-CQhWBhaI.mjs";
|
|
3
|
-
import { n, t as r } from "./dist-Cacc4QIh.mjs";
|
|
4
|
-
import { r as i } from "./dist-BlB11V_z.mjs";
|
|
5
|
-
import { n as a } from "./dist-Bm8Cuttq.mjs";
|
|
6
|
-
import { t as o } from "./dist-Dz3LbuDd.mjs";
|
|
7
|
-
import { t as s } from "./dist-BPBwSSyk.mjs";
|
|
8
|
-
import { t as c } from "./dist-C9PlF532.mjs";
|
|
9
|
-
import { t as l } from "./dist-DuTFGM_g.mjs";
|
|
10
|
-
import { t as u } from "./dist-rGeQfsgN.mjs";
|
|
11
|
-
import { t as d } from "./dist-CCokLFyA.mjs";
|
|
12
|
-
import { r as f, t as p } from "./dist-BWwCr-xN.mjs";
|
|
13
|
-
import { t as m } from "./dist-CDU9vno-.mjs";
|
|
14
|
-
import * as h from "react";
|
|
15
|
-
import * as ee from "react-dom";
|
|
16
|
-
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
17
|
-
import { X as y } from "lucide-react";
|
|
18
|
-
import { cva as b } from "class-variance-authority";
|
|
19
|
-
//#region ../../node_modules/.bun/@radix-ui+react-toast@1.2.15+2d3f272c3a65784a/node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
20
|
-
var x = "ToastProvider", [S, C, w] = o("Toast"), [T, E] = a("Toast", [w]), [D, O] = T(x), k = (e) => {
|
|
21
|
-
let { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: i = "right", swipeThreshold: a = 50, children: o } = e, [s, c] = h.useState(null), [l, u] = h.useState(0), d = h.useRef(!1), f = h.useRef(!1);
|
|
22
|
-
return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${x}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ _(S.Provider, {
|
|
23
|
-
scope: t,
|
|
24
|
-
children: /* @__PURE__ */ _(D, {
|
|
25
|
-
scope: t,
|
|
26
|
-
label: n,
|
|
27
|
-
duration: r,
|
|
28
|
-
swipeDirection: i,
|
|
29
|
-
swipeThreshold: a,
|
|
30
|
-
toastCount: l,
|
|
31
|
-
viewport: s,
|
|
32
|
-
onViewportChange: c,
|
|
33
|
-
onToastAdd: h.useCallback(() => u((e) => e + 1), []),
|
|
34
|
-
onToastRemove: h.useCallback(() => u((e) => e - 1), []),
|
|
35
|
-
isFocusedToastEscapeKeyDownRef: d,
|
|
36
|
-
isClosePausedRef: f,
|
|
37
|
-
children: o
|
|
38
|
-
})
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
k.displayName = x;
|
|
42
|
-
var A = "ToastViewport", j = ["F8"], M = "toast.viewportPause", N = "toast.viewportResume", P = h.forwardRef((e, n) => {
|
|
43
|
-
let { __scopeToast: i, hotkey: a = j, label: o = "Notifications ({hotkey})", ...s } = e, c = O(A, i), l = C(i), u = h.useRef(null), d = h.useRef(null), f = h.useRef(null), m = h.useRef(null), ee = t(n, m, c.onViewportChange), g = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = c.toastCount > 0;
|
|
44
|
-
h.useEffect(() => {
|
|
45
|
-
let e = (e) => {
|
|
46
|
-
a.length !== 0 && a.every((t) => e[t] || e.code === t) && m.current?.focus();
|
|
47
|
-
};
|
|
48
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
49
|
-
}, [a]), h.useEffect(() => {
|
|
50
|
-
let e = u.current, t = m.current;
|
|
51
|
-
if (y && e && t) {
|
|
52
|
-
let n = () => {
|
|
53
|
-
if (!c.isClosePausedRef.current) {
|
|
54
|
-
let e = new CustomEvent(M);
|
|
55
|
-
t.dispatchEvent(e), c.isClosePausedRef.current = !0;
|
|
56
|
-
}
|
|
57
|
-
}, r = () => {
|
|
58
|
-
if (c.isClosePausedRef.current) {
|
|
59
|
-
let e = new CustomEvent(N);
|
|
60
|
-
t.dispatchEvent(e), c.isClosePausedRef.current = !1;
|
|
61
|
-
}
|
|
62
|
-
}, i = (t) => {
|
|
63
|
-
e.contains(t.relatedTarget) || r();
|
|
64
|
-
}, a = () => {
|
|
65
|
-
e.contains(document.activeElement) || r();
|
|
66
|
-
};
|
|
67
|
-
return e.addEventListener("focusin", n), e.addEventListener("focusout", i), e.addEventListener("pointermove", n), e.addEventListener("pointerleave", a), window.addEventListener("blur", n), window.addEventListener("focus", r), () => {
|
|
68
|
-
e.removeEventListener("focusin", n), e.removeEventListener("focusout", i), e.removeEventListener("pointermove", n), e.removeEventListener("pointerleave", a), window.removeEventListener("blur", n), window.removeEventListener("focus", r);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
}, [y, c.isClosePausedRef]);
|
|
72
|
-
let b = h.useCallback(({ tabbingDirection: e }) => {
|
|
73
|
-
let t = l().map((t) => {
|
|
74
|
-
let n = t.ref.current, r = [n, ...le(n)];
|
|
75
|
-
return e === "forwards" ? r : r.reverse();
|
|
76
|
-
});
|
|
77
|
-
return (e === "forwards" ? t.reverse() : t).flat();
|
|
78
|
-
}, [l]);
|
|
79
|
-
return h.useEffect(() => {
|
|
80
|
-
let e = m.current;
|
|
81
|
-
if (e) {
|
|
82
|
-
let t = (t) => {
|
|
83
|
-
let n = t.altKey || t.ctrlKey || t.metaKey;
|
|
84
|
-
if (t.key === "Tab" && !n) {
|
|
85
|
-
let n = document.activeElement, r = t.shiftKey;
|
|
86
|
-
if (t.target === e && r) {
|
|
87
|
-
d.current?.focus();
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
let i = b({ tabbingDirection: r ? "backwards" : "forwards" }), a = i.findIndex((e) => e === n);
|
|
91
|
-
$(i.slice(a + 1)) ? t.preventDefault() : r ? d.current?.focus() : f.current?.focus();
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
|
|
95
|
-
}
|
|
96
|
-
}, [l, b]), /* @__PURE__ */ v(p, {
|
|
97
|
-
ref: u,
|
|
98
|
-
role: "region",
|
|
99
|
-
"aria-label": o.replace("{hotkey}", g),
|
|
100
|
-
tabIndex: -1,
|
|
101
|
-
style: { pointerEvents: y ? void 0 : "none" },
|
|
102
|
-
children: [
|
|
103
|
-
y && /* @__PURE__ */ _(I, {
|
|
104
|
-
ref: d,
|
|
105
|
-
onFocusFromOutsideViewport: () => {
|
|
106
|
-
$(b({ tabbingDirection: "forwards" }));
|
|
107
|
-
}
|
|
108
|
-
}),
|
|
109
|
-
/* @__PURE__ */ _(S.Slot, {
|
|
110
|
-
scope: i,
|
|
111
|
-
children: /* @__PURE__ */ _(r.ol, {
|
|
112
|
-
tabIndex: -1,
|
|
113
|
-
...s,
|
|
114
|
-
ref: ee
|
|
115
|
-
})
|
|
116
|
-
}),
|
|
117
|
-
y && /* @__PURE__ */ _(I, {
|
|
118
|
-
ref: f,
|
|
119
|
-
onFocusFromOutsideViewport: () => {
|
|
120
|
-
$(b({ tabbingDirection: "backwards" }));
|
|
121
|
-
}
|
|
122
|
-
})
|
|
123
|
-
]
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
P.displayName = A;
|
|
127
|
-
var F = "ToastFocusProxy", I = h.forwardRef((e, t) => {
|
|
128
|
-
let { __scopeToast: n, onFocusFromOutsideViewport: r, ...a } = e, o = O(F, n);
|
|
129
|
-
return /* @__PURE__ */ _(i, {
|
|
130
|
-
tabIndex: 0,
|
|
131
|
-
...a,
|
|
132
|
-
ref: t,
|
|
133
|
-
style: { position: "fixed" },
|
|
134
|
-
onFocus: (e) => {
|
|
135
|
-
let t = e.relatedTarget;
|
|
136
|
-
o.viewport?.contains(t) || r();
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
I.displayName = F;
|
|
141
|
-
var L = "Toast", te = "toast.swipeStart", ne = "toast.swipeMove", re = "toast.swipeCancel", ie = "toast.swipeEnd", R = h.forwardRef((e, t) => {
|
|
142
|
-
let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [c, f] = l({
|
|
143
|
-
prop: r,
|
|
144
|
-
defaultProp: i ?? !0,
|
|
145
|
-
onChange: a,
|
|
146
|
-
caller: L
|
|
147
|
-
});
|
|
148
|
-
return /* @__PURE__ */ _(u, {
|
|
149
|
-
present: n || c,
|
|
150
|
-
children: /* @__PURE__ */ _(B, {
|
|
151
|
-
open: c,
|
|
152
|
-
...o,
|
|
153
|
-
ref: t,
|
|
154
|
-
onClose: () => f(!1),
|
|
155
|
-
onPause: d(e.onPause),
|
|
156
|
-
onResume: d(e.onResume),
|
|
157
|
-
onSwipeStart: s(e.onSwipeStart, (e) => {
|
|
158
|
-
e.currentTarget.setAttribute("data-swipe", "start");
|
|
159
|
-
}),
|
|
160
|
-
onSwipeMove: s(e.onSwipeMove, (e) => {
|
|
161
|
-
let { x: t, y: n } = e.detail.delta;
|
|
162
|
-
e.currentTarget.setAttribute("data-swipe", "move"), e.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${n}px`);
|
|
163
|
-
}),
|
|
164
|
-
onSwipeCancel: s(e.onSwipeCancel, (e) => {
|
|
165
|
-
e.currentTarget.setAttribute("data-swipe", "cancel"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
166
|
-
}),
|
|
167
|
-
onSwipeEnd: s(e.onSwipeEnd, (e) => {
|
|
168
|
-
let { x: t, y: n } = e.detail.delta;
|
|
169
|
-
e.currentTarget.setAttribute("data-swipe", "end"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${n}px`), f(!1);
|
|
170
|
-
})
|
|
171
|
-
})
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
R.displayName = L;
|
|
175
|
-
var [ae, z] = T(L, { onClose() {} }), B = h.forwardRef((e, n) => {
|
|
176
|
-
let { __scopeToast: i, type: a = "foreground", duration: o, open: c, onClose: l, onEscapeKeyDown: u, onPause: p, onResume: m, onSwipeStart: y, onSwipeMove: b, onSwipeCancel: x, onSwipeEnd: C, ...w } = e, T = O(L, i), [E, D] = h.useState(null), k = t(n, (e) => D(e)), A = h.useRef(null), j = h.useRef(null), P = o || T.duration, F = h.useRef(0), I = h.useRef(P), R = h.useRef(0), { onToastAdd: z, onToastRemove: B } = T, V = d(() => {
|
|
177
|
-
E?.contains(document.activeElement) && T.viewport?.focus(), l();
|
|
178
|
-
}), H = h.useCallback((e) => {
|
|
179
|
-
!e || e === Infinity || (window.clearTimeout(R.current), F.current = (/* @__PURE__ */ new Date()).getTime(), R.current = window.setTimeout(V, e));
|
|
180
|
-
}, [V]);
|
|
181
|
-
h.useEffect(() => {
|
|
182
|
-
let e = T.viewport;
|
|
183
|
-
if (e) {
|
|
184
|
-
let t = () => {
|
|
185
|
-
H(I.current), m?.();
|
|
186
|
-
}, n = () => {
|
|
187
|
-
let e = (/* @__PURE__ */ new Date()).getTime() - F.current;
|
|
188
|
-
I.current -= e, window.clearTimeout(R.current), p?.();
|
|
189
|
-
};
|
|
190
|
-
return e.addEventListener(M, n), e.addEventListener(N, t), () => {
|
|
191
|
-
e.removeEventListener(M, n), e.removeEventListener(N, t);
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
}, [
|
|
195
|
-
T.viewport,
|
|
196
|
-
P,
|
|
197
|
-
p,
|
|
198
|
-
m,
|
|
199
|
-
H
|
|
200
|
-
]), h.useEffect(() => {
|
|
201
|
-
c && !T.isClosePausedRef.current && H(P);
|
|
202
|
-
}, [
|
|
203
|
-
c,
|
|
204
|
-
P,
|
|
205
|
-
T.isClosePausedRef,
|
|
206
|
-
H
|
|
207
|
-
]), h.useEffect(() => (z(), () => B()), [z, B]);
|
|
208
|
-
let U = h.useMemo(() => E ? X(E) : null, [E]);
|
|
209
|
-
return T.viewport ? /* @__PURE__ */ v(g, { children: [U && /* @__PURE__ */ _(oe, {
|
|
210
|
-
__scopeToast: i,
|
|
211
|
-
role: "status",
|
|
212
|
-
"aria-live": a === "foreground" ? "assertive" : "polite",
|
|
213
|
-
children: U
|
|
214
|
-
}), /* @__PURE__ */ _(ae, {
|
|
215
|
-
scope: i,
|
|
216
|
-
onClose: V,
|
|
217
|
-
children: ee.createPortal(/* @__PURE__ */ _(S.ItemSlot, {
|
|
218
|
-
scope: i,
|
|
219
|
-
children: /* @__PURE__ */ _(f, {
|
|
220
|
-
asChild: !0,
|
|
221
|
-
onEscapeKeyDown: s(u, () => {
|
|
222
|
-
T.isFocusedToastEscapeKeyDownRef.current || V(), T.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
223
|
-
}),
|
|
224
|
-
children: /* @__PURE__ */ _(r.li, {
|
|
225
|
-
tabIndex: 0,
|
|
226
|
-
"data-state": c ? "open" : "closed",
|
|
227
|
-
"data-swipe-direction": T.swipeDirection,
|
|
228
|
-
...w,
|
|
229
|
-
ref: k,
|
|
230
|
-
style: {
|
|
231
|
-
userSelect: "none",
|
|
232
|
-
touchAction: "none",
|
|
233
|
-
...e.style
|
|
234
|
-
},
|
|
235
|
-
onKeyDown: s(e.onKeyDown, (e) => {
|
|
236
|
-
e.key === "Escape" && (u?.(e.nativeEvent), e.nativeEvent.defaultPrevented || (T.isFocusedToastEscapeKeyDownRef.current = !0, V()));
|
|
237
|
-
}),
|
|
238
|
-
onPointerDown: s(e.onPointerDown, (e) => {
|
|
239
|
-
e.button === 0 && (A.current = {
|
|
240
|
-
x: e.clientX,
|
|
241
|
-
y: e.clientY
|
|
242
|
-
});
|
|
243
|
-
}),
|
|
244
|
-
onPointerMove: s(e.onPointerMove, (e) => {
|
|
245
|
-
if (!A.current) return;
|
|
246
|
-
let t = e.clientX - A.current.x, n = e.clientY - A.current.y, r = !!j.current, i = ["left", "right"].includes(T.swipeDirection), a = ["left", "up"].includes(T.swipeDirection) ? Math.min : Math.max, o = i ? a(0, t) : 0, s = i ? 0 : a(0, n), c = e.pointerType === "touch" ? 10 : 2, l = {
|
|
247
|
-
x: o,
|
|
248
|
-
y: s
|
|
249
|
-
}, u = {
|
|
250
|
-
originalEvent: e,
|
|
251
|
-
delta: l
|
|
252
|
-
};
|
|
253
|
-
r ? (j.current = l, Z(ne, b, u, { discrete: !1 })) : Q(l, T.swipeDirection, c) ? (j.current = l, Z(te, y, u, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (A.current = null);
|
|
254
|
-
}),
|
|
255
|
-
onPointerUp: s(e.onPointerUp, (e) => {
|
|
256
|
-
let t = j.current, n = e.target;
|
|
257
|
-
if (n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), j.current = null, A.current = null, t) {
|
|
258
|
-
let n = e.currentTarget, r = {
|
|
259
|
-
originalEvent: e,
|
|
260
|
-
delta: t
|
|
261
|
-
};
|
|
262
|
-
Q(t, T.swipeDirection, T.swipeThreshold) ? Z(ie, C, r, { discrete: !0 }) : Z(re, x, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
|
|
263
|
-
}
|
|
264
|
-
})
|
|
265
|
-
})
|
|
266
|
-
})
|
|
267
|
-
}), T.viewport)
|
|
268
|
-
})] }) : null;
|
|
269
|
-
}), oe = (e) => {
|
|
270
|
-
let { __scopeToast: t, children: n, ...r } = e, a = O(L, t), [o, s] = h.useState(!1), [c, l] = h.useState(!1);
|
|
271
|
-
return se(() => s(!0)), h.useEffect(() => {
|
|
272
|
-
let e = window.setTimeout(() => l(!0), 1e3);
|
|
273
|
-
return () => window.clearTimeout(e);
|
|
274
|
-
}, []), c ? null : /* @__PURE__ */ _(m, {
|
|
275
|
-
asChild: !0,
|
|
276
|
-
children: /* @__PURE__ */ _(i, {
|
|
277
|
-
...r,
|
|
278
|
-
children: o && /* @__PURE__ */ v(g, { children: [
|
|
279
|
-
a.label,
|
|
280
|
-
" ",
|
|
281
|
-
n
|
|
282
|
-
] })
|
|
283
|
-
})
|
|
284
|
-
});
|
|
285
|
-
}, V = "ToastTitle", H = h.forwardRef((e, t) => {
|
|
286
|
-
let { __scopeToast: n, ...i } = e;
|
|
287
|
-
return /* @__PURE__ */ _(r.div, {
|
|
288
|
-
...i,
|
|
289
|
-
ref: t
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
H.displayName = V;
|
|
293
|
-
var U = "ToastDescription", W = h.forwardRef((e, t) => {
|
|
294
|
-
let { __scopeToast: n, ...i } = e;
|
|
295
|
-
return /* @__PURE__ */ _(r.div, {
|
|
296
|
-
...i,
|
|
297
|
-
ref: t
|
|
298
|
-
});
|
|
299
|
-
});
|
|
300
|
-
W.displayName = U;
|
|
301
|
-
var G = "ToastAction", K = h.forwardRef((e, t) => {
|
|
302
|
-
let { altText: n, ...r } = e;
|
|
303
|
-
return n.trim() ? /* @__PURE__ */ _(Y, {
|
|
304
|
-
altText: n,
|
|
305
|
-
asChild: !0,
|
|
306
|
-
children: /* @__PURE__ */ _(J, {
|
|
307
|
-
...r,
|
|
308
|
-
ref: t
|
|
309
|
-
})
|
|
310
|
-
}) : (console.error(`Invalid prop \`altText\` supplied to \`${G}\`. Expected non-empty \`string\`.`), null);
|
|
311
|
-
});
|
|
312
|
-
K.displayName = G;
|
|
313
|
-
var q = "ToastClose", J = h.forwardRef((e, t) => {
|
|
314
|
-
let { __scopeToast: n, ...i } = e, a = z(q, n);
|
|
315
|
-
return /* @__PURE__ */ _(Y, {
|
|
316
|
-
asChild: !0,
|
|
317
|
-
children: /* @__PURE__ */ _(r.button, {
|
|
318
|
-
type: "button",
|
|
319
|
-
...i,
|
|
320
|
-
ref: t,
|
|
321
|
-
onClick: s(e.onClick, a.onClose)
|
|
322
|
-
})
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
J.displayName = q;
|
|
326
|
-
var Y = h.forwardRef((e, t) => {
|
|
327
|
-
let { __scopeToast: n, altText: i, ...a } = e;
|
|
328
|
-
return /* @__PURE__ */ _(r.div, {
|
|
329
|
-
"data-radix-toast-announce-exclude": "",
|
|
330
|
-
"data-radix-toast-announce-alt": i || void 0,
|
|
331
|
-
...a,
|
|
332
|
-
ref: t
|
|
333
|
-
});
|
|
334
|
-
});
|
|
335
|
-
function X(e) {
|
|
336
|
-
let t = [];
|
|
337
|
-
return Array.from(e.childNodes).forEach((e) => {
|
|
338
|
-
if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent), ce(e)) {
|
|
339
|
-
let n = e.ariaHidden || e.hidden || e.style.display === "none", r = e.dataset.radixToastAnnounceExclude === "";
|
|
340
|
-
if (!n) if (r) {
|
|
341
|
-
let n = e.dataset.radixToastAnnounceAlt;
|
|
342
|
-
n && t.push(n);
|
|
343
|
-
} else t.push(...X(e));
|
|
344
|
-
}
|
|
345
|
-
}), t;
|
|
346
|
-
}
|
|
347
|
-
function Z(e, t, r, { discrete: i }) {
|
|
348
|
-
let a = r.originalEvent.currentTarget, o = new CustomEvent(e, {
|
|
349
|
-
bubbles: !0,
|
|
350
|
-
cancelable: !0,
|
|
351
|
-
detail: r
|
|
352
|
-
});
|
|
353
|
-
t && a.addEventListener(e, t, { once: !0 }), i ? n(a, o) : a.dispatchEvent(o);
|
|
354
|
-
}
|
|
355
|
-
var Q = (e, t, n = 0) => {
|
|
356
|
-
let r = Math.abs(e.x), i = Math.abs(e.y), a = r > i;
|
|
357
|
-
return t === "left" || t === "right" ? a && r > n : !a && i > n;
|
|
358
|
-
};
|
|
359
|
-
function se(e = () => {}) {
|
|
360
|
-
let t = d(e);
|
|
361
|
-
c(() => {
|
|
362
|
-
let e = 0, n = 0;
|
|
363
|
-
return e = window.requestAnimationFrame(() => n = window.requestAnimationFrame(t)), () => {
|
|
364
|
-
window.cancelAnimationFrame(e), window.cancelAnimationFrame(n);
|
|
365
|
-
};
|
|
366
|
-
}, [t]);
|
|
367
|
-
}
|
|
368
|
-
function ce(e) {
|
|
369
|
-
return e.nodeType === e.ELEMENT_NODE;
|
|
370
|
-
}
|
|
371
|
-
function le(e) {
|
|
372
|
-
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
373
|
-
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
374
|
-
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
375
|
-
} });
|
|
376
|
-
for (; n.nextNode();) t.push(n.currentNode);
|
|
377
|
-
return t;
|
|
378
|
-
}
|
|
379
|
-
function $(e) {
|
|
380
|
-
let t = document.activeElement;
|
|
381
|
-
return e.some((e) => e === t ? !0 : (e.focus(), document.activeElement !== t));
|
|
382
|
-
}
|
|
383
|
-
var ue = k, de = P, fe = R, pe = H, me = W, he = K, ge = J, _e = ue, ve = h.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(de, {
|
|
384
|
-
ref: r,
|
|
385
|
-
className: e("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", t),
|
|
386
|
-
...n
|
|
387
|
-
}));
|
|
388
|
-
ve.displayName = de?.displayName || "ToastViewport";
|
|
389
|
-
var ye = b("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
|
|
390
|
-
variants: { variant: {
|
|
391
|
-
default: "border bg-background text-foreground",
|
|
392
|
-
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
393
|
-
} },
|
|
394
|
-
defaultVariants: { variant: "default" }
|
|
395
|
-
}), be = h.forwardRef(({ className: t, variant: n, ...r }, i) => /* @__PURE__ */ _(fe, {
|
|
396
|
-
ref: i,
|
|
397
|
-
className: e(ye({ variant: n }), t),
|
|
398
|
-
...r
|
|
399
|
-
}));
|
|
400
|
-
be.displayName = fe?.displayName || "Toast";
|
|
401
|
-
var xe = h.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(he, {
|
|
402
|
-
ref: r,
|
|
403
|
-
className: e("hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-1 focus:outline-none disabled:pointer-events-none disabled:opacity-50", t),
|
|
404
|
-
...n
|
|
405
|
-
}));
|
|
406
|
-
xe.displayName = he?.displayName || "ToastAction";
|
|
407
|
-
var Se = h.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(ge, {
|
|
408
|
-
ref: r,
|
|
409
|
-
className: e("text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-1 focus:outline-none group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", t),
|
|
410
|
-
"toast-close": "",
|
|
411
|
-
...n,
|
|
412
|
-
children: /* @__PURE__ */ _(y, { className: "h-4 w-4" })
|
|
413
|
-
}));
|
|
414
|
-
Se.displayName = ge?.displayName || "ToastClose";
|
|
415
|
-
var Ce = h.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(pe, {
|
|
416
|
-
ref: r,
|
|
417
|
-
className: e("text-sm font-semibold [&+div]:text-xs", t),
|
|
418
|
-
...n
|
|
419
|
-
}));
|
|
420
|
-
Ce.displayName = pe?.displayName || "ToastTitle";
|
|
421
|
-
var we = h.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(me, {
|
|
422
|
-
ref: r,
|
|
423
|
-
className: e("text-sm opacity-90", t),
|
|
424
|
-
...n
|
|
425
|
-
}));
|
|
426
|
-
we.displayName = me?.displayName || "ToastDescription";
|
|
427
|
-
//#endregion
|
|
428
|
-
export { _e as a, we as i, xe as n, Ce as o, Se as r, ve as s, be as t };
|
package/dist/toggle-BGkq5XDM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-CiM892Rg.js"),r=require("./dist-CRLbUj9C.js"),i=require("./dist-DynSBUGq.js");let a=require("react"),o=e.r(a,1);a=e.r(a);let s=require("react/jsx-runtime"),c=require("class-variance-authority");var l=`Toggle`,u=o.forwardRef((e,t)=>{let{pressed:a,defaultPressed:o,onPressedChange:c,...u}=e,[d,f]=i.t({prop:a,onChange:c,defaultProp:o??!1,caller:l});return(0,s.jsx)(n.t.button,{type:`button`,"aria-pressed":d,"data-state":d?`on`:`off`,"data-disabled":e.disabled?``:void 0,...u,ref:t,onClick:r.t(e.onClick,()=>{e.disabled||f(!d)})})});u.displayName=l;var d=u,f=(0,c.cva)(`group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-muted`},size:{default:`h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2`,sm:`h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*=size-])]:size-3.5`,lg:`h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2`}},defaultVariants:{variant:`default`,size:`default`}});function p({className:e,variant:n=`default`,size:r=`default`,...i}){return(0,s.jsx)(d,{"data-slot":`toggle`,className:t.t(f({variant:n,size:r,className:e})),...i})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
|
package/dist/toggle-BfIIdlA6.mjs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
-
import { t } from "./dist-Cacc4QIh.mjs";
|
|
3
|
-
import { t as n } from "./dist-BPBwSSyk.mjs";
|
|
4
|
-
import { t as r } from "./dist-DuTFGM_g.mjs";
|
|
5
|
-
import * as i from "react";
|
|
6
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
-
import { cva as o } from "class-variance-authority";
|
|
8
|
-
//#region ../../node_modules/.bun/@radix-ui+react-toggle@1.1.10+2d3f272c3a65784a/node_modules/@radix-ui/react-toggle/dist/index.mjs
|
|
9
|
-
var s = "Toggle", c = i.forwardRef((e, i) => {
|
|
10
|
-
let { pressed: o, defaultPressed: c, onPressedChange: l, ...u } = e, [d, f] = r({
|
|
11
|
-
prop: o,
|
|
12
|
-
onChange: l,
|
|
13
|
-
defaultProp: c ?? !1,
|
|
14
|
-
caller: s
|
|
15
|
-
});
|
|
16
|
-
return /* @__PURE__ */ a(t.button, {
|
|
17
|
-
type: "button",
|
|
18
|
-
"aria-pressed": d,
|
|
19
|
-
"data-state": d ? "on" : "off",
|
|
20
|
-
"data-disabled": e.disabled ? "" : void 0,
|
|
21
|
-
...u,
|
|
22
|
-
ref: i,
|
|
23
|
-
onClick: n(e.onClick, () => {
|
|
24
|
-
e.disabled || f(!d);
|
|
25
|
-
})
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
c.displayName = s;
|
|
29
|
-
var l = c, u = o("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4", {
|
|
30
|
-
variants: {
|
|
31
|
-
variant: {
|
|
32
|
-
default: "bg-transparent",
|
|
33
|
-
outline: "border border-input bg-transparent hover:bg-muted"
|
|
34
|
-
},
|
|
35
|
-
size: {
|
|
36
|
-
default: "h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2",
|
|
37
|
-
sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*=size-])]:size-3.5",
|
|
38
|
-
lg: "h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
defaultVariants: {
|
|
42
|
-
variant: "default",
|
|
43
|
-
size: "default"
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
function d({ className: t, variant: n = "default", size: r = "default", ...i }) {
|
|
47
|
-
return /* @__PURE__ */ a(l, {
|
|
48
|
-
"data-slot": "toggle",
|
|
49
|
-
className: e(u({
|
|
50
|
-
variant: n,
|
|
51
|
-
size: r,
|
|
52
|
-
className: t
|
|
53
|
-
})),
|
|
54
|
-
...i
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
export { u as n, c as r, d as t };
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
-
import { t } from "./dist-Cacc4QIh.mjs";
|
|
3
|
-
import { n } from "./dist-Bm8Cuttq.mjs";
|
|
4
|
-
import { t as r } from "./dist-DuTFGM_g.mjs";
|
|
5
|
-
import { n as i } from "./dist-BYdcKuDi.mjs";
|
|
6
|
-
import { n as a, r as o, t as s } from "./dist-tvb2Wafb.mjs";
|
|
7
|
-
import { n as c, r as l } from "./toggle-BfIIdlA6.mjs";
|
|
8
|
-
import * as u from "react";
|
|
9
|
-
import d from "react";
|
|
10
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
11
|
-
//#region ../../node_modules/.bun/@radix-ui+react-toggle-group@1.1.11+2d3f272c3a65784a/node_modules/@radix-ui/react-toggle-group/dist/index.mjs
|
|
12
|
-
var p = "ToggleGroup", [m, h] = n(p, [o]), g = o(), _ = d.forwardRef((e, t) => {
|
|
13
|
-
let { type: n, ...r } = e;
|
|
14
|
-
if (n === "single") return /* @__PURE__ */ f(b, {
|
|
15
|
-
...r,
|
|
16
|
-
ref: t
|
|
17
|
-
});
|
|
18
|
-
if (n === "multiple") return /* @__PURE__ */ f(x, {
|
|
19
|
-
...r,
|
|
20
|
-
ref: t
|
|
21
|
-
});
|
|
22
|
-
throw Error(`Missing prop \`type\` expected on \`${p}\``);
|
|
23
|
-
});
|
|
24
|
-
_.displayName = p;
|
|
25
|
-
var [v, y] = m(p), b = d.forwardRef((e, t) => {
|
|
26
|
-
let { value: n, defaultValue: i, onValueChange: a = () => {}, ...o } = e, [s, c] = r({
|
|
27
|
-
prop: n,
|
|
28
|
-
defaultProp: i ?? "",
|
|
29
|
-
onChange: a,
|
|
30
|
-
caller: p
|
|
31
|
-
});
|
|
32
|
-
return /* @__PURE__ */ f(v, {
|
|
33
|
-
scope: e.__scopeToggleGroup,
|
|
34
|
-
type: "single",
|
|
35
|
-
value: d.useMemo(() => s ? [s] : [], [s]),
|
|
36
|
-
onItemActivate: c,
|
|
37
|
-
onItemDeactivate: d.useCallback(() => c(""), [c]),
|
|
38
|
-
children: /* @__PURE__ */ f(w, {
|
|
39
|
-
...o,
|
|
40
|
-
ref: t
|
|
41
|
-
})
|
|
42
|
-
});
|
|
43
|
-
}), x = d.forwardRef((e, t) => {
|
|
44
|
-
let { value: n, defaultValue: i, onValueChange: a = () => {}, ...o } = e, [s, c] = r({
|
|
45
|
-
prop: n,
|
|
46
|
-
defaultProp: i ?? [],
|
|
47
|
-
onChange: a,
|
|
48
|
-
caller: p
|
|
49
|
-
}), l = d.useCallback((e) => c((t = []) => [...t, e]), [c]), u = d.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
50
|
-
return /* @__PURE__ */ f(v, {
|
|
51
|
-
scope: e.__scopeToggleGroup,
|
|
52
|
-
type: "multiple",
|
|
53
|
-
value: s,
|
|
54
|
-
onItemActivate: l,
|
|
55
|
-
onItemDeactivate: u,
|
|
56
|
-
children: /* @__PURE__ */ f(w, {
|
|
57
|
-
...o,
|
|
58
|
-
ref: t
|
|
59
|
-
})
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
_.displayName = p;
|
|
63
|
-
var [S, C] = m(p), w = d.forwardRef((e, n) => {
|
|
64
|
-
let { __scopeToggleGroup: r, disabled: o = !1, rovingFocus: s = !0, orientation: c, dir: l, loop: u = !0, ...d } = e, p = g(r), m = i(l), h = {
|
|
65
|
-
role: "group",
|
|
66
|
-
dir: m,
|
|
67
|
-
...d
|
|
68
|
-
};
|
|
69
|
-
return /* @__PURE__ */ f(S, {
|
|
70
|
-
scope: r,
|
|
71
|
-
rovingFocus: s,
|
|
72
|
-
disabled: o,
|
|
73
|
-
children: s ? /* @__PURE__ */ f(a, {
|
|
74
|
-
asChild: !0,
|
|
75
|
-
...p,
|
|
76
|
-
orientation: c,
|
|
77
|
-
dir: m,
|
|
78
|
-
loop: u,
|
|
79
|
-
children: /* @__PURE__ */ f(t.div, {
|
|
80
|
-
...h,
|
|
81
|
-
ref: n
|
|
82
|
-
})
|
|
83
|
-
}) : /* @__PURE__ */ f(t.div, {
|
|
84
|
-
...h,
|
|
85
|
-
ref: n
|
|
86
|
-
})
|
|
87
|
-
});
|
|
88
|
-
}), T = "ToggleGroupItem", E = d.forwardRef((e, t) => {
|
|
89
|
-
let n = y(T, e.__scopeToggleGroup), r = C(T, e.__scopeToggleGroup), i = g(e.__scopeToggleGroup), a = n.value.includes(e.value), o = r.disabled || e.disabled, c = {
|
|
90
|
-
...e,
|
|
91
|
-
pressed: a,
|
|
92
|
-
disabled: o
|
|
93
|
-
}, l = d.useRef(null);
|
|
94
|
-
return r.rovingFocus ? /* @__PURE__ */ f(s, {
|
|
95
|
-
asChild: !0,
|
|
96
|
-
...i,
|
|
97
|
-
focusable: !o,
|
|
98
|
-
active: a,
|
|
99
|
-
ref: l,
|
|
100
|
-
children: /* @__PURE__ */ f(D, {
|
|
101
|
-
...c,
|
|
102
|
-
ref: t
|
|
103
|
-
})
|
|
104
|
-
}) : /* @__PURE__ */ f(D, {
|
|
105
|
-
...c,
|
|
106
|
-
ref: t
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
E.displayName = T;
|
|
110
|
-
var D = d.forwardRef((e, t) => {
|
|
111
|
-
let { __scopeToggleGroup: n, value: r, ...i } = e, a = y(T, n), o = {
|
|
112
|
-
role: "radio",
|
|
113
|
-
"aria-checked": e.pressed,
|
|
114
|
-
"aria-pressed": void 0
|
|
115
|
-
};
|
|
116
|
-
return /* @__PURE__ */ f(l, {
|
|
117
|
-
...a.type === "single" ? o : void 0,
|
|
118
|
-
...i,
|
|
119
|
-
ref: t,
|
|
120
|
-
onPressedChange: (e) => {
|
|
121
|
-
e ? a.onItemActivate(r) : a.onItemDeactivate(r);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}), O = _, k = E, A = u.createContext({
|
|
125
|
-
size: "default",
|
|
126
|
-
variant: "default",
|
|
127
|
-
spacing: 2,
|
|
128
|
-
orientation: "horizontal"
|
|
129
|
-
});
|
|
130
|
-
function j({ className: t, variant: n, size: r, spacing: i = 2, orientation: a = "horizontal", children: o, ...s }) {
|
|
131
|
-
return /* @__PURE__ */ f(O, {
|
|
132
|
-
"data-slot": "toggle-group",
|
|
133
|
-
"data-variant": n,
|
|
134
|
-
"data-size": r,
|
|
135
|
-
"data-spacing": i,
|
|
136
|
-
"data-orientation": a,
|
|
137
|
-
style: { "--gap": i },
|
|
138
|
-
className: e("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch data-[size=sm]:rounded-[min(var(--radius-md),10px)]", t),
|
|
139
|
-
...s,
|
|
140
|
-
children: /* @__PURE__ */ f(A.Provider, {
|
|
141
|
-
value: {
|
|
142
|
-
variant: n,
|
|
143
|
-
size: r,
|
|
144
|
-
spacing: i,
|
|
145
|
-
orientation: a
|
|
146
|
-
},
|
|
147
|
-
children: o
|
|
148
|
-
})
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
function M({ className: t, children: n, variant: r = "default", size: i = "default", ...a }) {
|
|
152
|
-
let o = u.useContext(A);
|
|
153
|
-
return /* @__PURE__ */ f(k, {
|
|
154
|
-
"data-slot": "toggle-group-item",
|
|
155
|
-
"data-variant": o.variant || r,
|
|
156
|
-
"data-size": o.size || i,
|
|
157
|
-
"data-spacing": o.spacing,
|
|
158
|
-
className: e("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pe-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:ps-1.5 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", c({
|
|
159
|
-
variant: o.variant || r,
|
|
160
|
-
size: o.size || i
|
|
161
|
-
}), t),
|
|
162
|
-
...a,
|
|
163
|
-
children: n
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
//#endregion
|
|
167
|
-
export { M as n, j as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-CiM892Rg.js"),r=require("./dist-CSkpam6a.js"),i=require("./dist-DynSBUGq.js"),a=require("./dist-1C8JOpVg.js"),o=require("./dist-o4zlRoDG.js"),s=require("./toggle-BGkq5XDM.js");let c=require("react"),l=e.r(c,1);c=e.r(c);let u=require("react/jsx-runtime");var d=`ToggleGroup`,[f,p]=r.n(d,[o.r]),m=o.r(),h=l.default.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,u.jsx)(v,{...r,ref:t});if(n===`multiple`)return(0,u.jsx)(y,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${d}\``)});h.displayName=d;var[g,_]=f(d),v=l.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:a=()=>{},...o}=e,[s,c]=i.t({prop:n,defaultProp:r??``,onChange:a,caller:d});return(0,u.jsx)(g,{scope:e.__scopeToggleGroup,type:`single`,value:l.default.useMemo(()=>s?[s]:[],[s]),onItemActivate:c,onItemDeactivate:l.default.useCallback(()=>c(``),[c]),children:(0,u.jsx)(S,{...o,ref:t})})}),y=l.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:a=()=>{},...o}=e,[s,c]=i.t({prop:n,defaultProp:r??[],onChange:a,caller:d}),f=l.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),p=l.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,u.jsx)(g,{scope:e.__scopeToggleGroup,type:`multiple`,value:s,onItemActivate:f,onItemDeactivate:p,children:(0,u.jsx)(S,{...o,ref:t})})});h.displayName=d;var[b,x]=f(d),S=l.default.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:i=!1,rovingFocus:s=!0,orientation:c,dir:l,loop:d=!0,...f}=e,p=m(r),h=a.n(l),g={role:`group`,dir:h,...f};return(0,u.jsx)(b,{scope:r,rovingFocus:s,disabled:i,children:s?(0,u.jsx)(o.n,{asChild:!0,...p,orientation:c,dir:h,loop:d,children:(0,u.jsx)(n.t.div,{...g,ref:t})}):(0,u.jsx)(n.t.div,{...g,ref:t})})}),C=`ToggleGroupItem`,w=l.default.forwardRef((e,t)=>{let n=_(C,e.__scopeToggleGroup),r=x(C,e.__scopeToggleGroup),i=m(e.__scopeToggleGroup),a=n.value.includes(e.value),s=r.disabled||e.disabled,c={...e,pressed:a,disabled:s},d=l.default.useRef(null);return r.rovingFocus?(0,u.jsx)(o.t,{asChild:!0,...i,focusable:!s,active:a,ref:d,children:(0,u.jsx)(T,{...c,ref:t})}):(0,u.jsx)(T,{...c,ref:t})});w.displayName=C;var T=l.default.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=_(C,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,u.jsx)(s.r,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),E=h,D=w,O=c.createContext({size:`default`,variant:`default`,spacing:2,orientation:`horizontal`});function k({className:e,variant:n,size:r,spacing:i=2,orientation:a=`horizontal`,children:o,...s}){return(0,u.jsx)(E,{"data-slot":`toggle-group`,"data-variant":n,"data-size":r,"data-spacing":i,"data-orientation":a,style:{"--gap":i},className:t.t(`group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch data-[size=sm]:rounded-[min(var(--radius-md),10px)]`,e),...s,children:(0,u.jsx)(O.Provider,{value:{variant:n,size:r,spacing:i,orientation:a},children:o})})}function A({className:e,children:n,variant:r=`default`,size:i=`default`,...a}){let o=c.useContext(O);return(0,u.jsx)(D,{"data-slot":`toggle-group-item`,"data-variant":o.variant||r,"data-size":o.size||i,"data-spacing":o.spacing,className:t.t(`shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pe-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:ps-1.5 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t`,s.n({variant:o.variant||r,size:o.size||i}),e),...a,children:n})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return k}});
|