@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/src/theme-toggle.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { ThemeToggleBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import type { ThemeToggleBaseProps } from '@gv-tech/ui-core';
|
|
4
4
|
import { Moon, Sun, SunMoon } from 'lucide-react';
|
|
5
|
+
|
|
5
6
|
import { Button } from './button';
|
|
6
7
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from './dropdown-menu';
|
|
7
8
|
import { useTheme } from './hooks/use-theme';
|
|
@@ -9,26 +10,8 @@ import { cn } from './lib/utils';
|
|
|
9
10
|
|
|
10
11
|
export type ThemeToggleProps = ThemeToggleBaseProps;
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// Use customTheme if provided, otherwise fallback to next-themes
|
|
16
|
-
const currentTheme = customTheme ?? nextTheme;
|
|
17
|
-
|
|
18
|
-
// Determine the effective theme for icon rendering
|
|
19
|
-
const effectiveTheme = customTheme ? customTheme : resolvedTheme;
|
|
20
|
-
const isDark = effectiveTheme === 'dark';
|
|
21
|
-
const isSystem = currentTheme === 'system';
|
|
22
|
-
|
|
23
|
-
const handleThemeChange = (newTheme: string) => {
|
|
24
|
-
if (onThemeChange) {
|
|
25
|
-
onThemeChange(newTheme);
|
|
26
|
-
} else {
|
|
27
|
-
setNextTheme(newTheme);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const IconToggle = () => (
|
|
13
|
+
function ThemeIcons({ isDark, isSystem }: { isDark: boolean; isSystem: boolean }) {
|
|
14
|
+
return (
|
|
32
15
|
<>
|
|
33
16
|
<Sun
|
|
34
17
|
className={cn(
|
|
@@ -51,13 +34,33 @@ export function ThemeToggle({ variant = 'binary', onThemeChange, customTheme, cl
|
|
|
51
34
|
<span className="sr-only">Toggle theme</span>
|
|
52
35
|
</>
|
|
53
36
|
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ThemeToggle({ variant = 'binary', onThemeChange, customTheme, className }: ThemeToggleProps) {
|
|
40
|
+
const { theme: nextTheme, setTheme: setNextTheme, resolvedTheme } = useTheme();
|
|
41
|
+
|
|
42
|
+
// Use customTheme if provided, otherwise fallback to next-themes
|
|
43
|
+
const currentTheme = customTheme ?? nextTheme;
|
|
44
|
+
|
|
45
|
+
// Determine the effective theme for icon rendering
|
|
46
|
+
const effectiveTheme = customTheme ? customTheme : resolvedTheme;
|
|
47
|
+
const isDark = effectiveTheme === 'dark';
|
|
48
|
+
const isSystem = currentTheme === 'system';
|
|
49
|
+
|
|
50
|
+
const handleThemeChange = (newTheme: string) => {
|
|
51
|
+
if (onThemeChange) {
|
|
52
|
+
onThemeChange(newTheme);
|
|
53
|
+
} else {
|
|
54
|
+
setNextTheme(newTheme);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
54
57
|
|
|
55
58
|
if (variant === 'ternary') {
|
|
56
59
|
return (
|
|
57
60
|
<DropdownMenu>
|
|
58
61
|
<DropdownMenuTrigger asChild>
|
|
59
62
|
<Button variant="ghost" size="icon" className={cn('relative h-9 w-9', className)}>
|
|
60
|
-
<
|
|
63
|
+
<ThemeIcons isDark={isDark} isSystem={isSystem} />
|
|
61
64
|
</Button>
|
|
62
65
|
</DropdownMenuTrigger>
|
|
63
66
|
<DropdownMenuContent align="end">
|
|
@@ -86,7 +89,7 @@ export function ThemeToggle({ variant = 'binary', onThemeChange, customTheme, cl
|
|
|
86
89
|
onClick={() => handleThemeChange(currentTheme === 'dark' ? 'light' : 'dark')}
|
|
87
90
|
aria-label="Toggle theme"
|
|
88
91
|
>
|
|
89
|
-
<
|
|
92
|
+
<ThemeIcons isDark={isDark} isSystem={isSystem} />
|
|
90
93
|
</Button>
|
|
91
94
|
);
|
|
92
95
|
}
|
package/src/toast.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import type { ToastBaseProps } from '@gv-tech/ui-core';
|
|
2
3
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
3
4
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
4
5
|
import { X } from 'lucide-react';
|
|
@@ -6,8 +7,6 @@ import * as React from 'react';
|
|
|
6
7
|
|
|
7
8
|
import { cn } from './lib/utils';
|
|
8
9
|
|
|
9
|
-
import type { ToastBaseProps } from '@gv-tech/ui-core';
|
|
10
|
-
|
|
11
10
|
const ToastProvider = ToastPrimitives.Provider;
|
|
12
11
|
|
|
13
12
|
const ToastViewport = React.forwardRef<
|
|
@@ -26,11 +25,11 @@ const ToastViewport = React.forwardRef<
|
|
|
26
25
|
ToastViewport.displayName = ToastPrimitives.Viewport?.displayName || 'ToastViewport';
|
|
27
26
|
|
|
28
27
|
const toastVariants = cva(
|
|
29
|
-
'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
|
|
28
|
+
'group 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 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',
|
|
30
29
|
{
|
|
31
30
|
variants: {
|
|
32
31
|
variant: {
|
|
33
|
-
default: '
|
|
32
|
+
default: 'bg-background text-foreground border',
|
|
34
33
|
destructive: 'destructive group border-destructive bg-destructive text-destructive-foreground',
|
|
35
34
|
},
|
|
36
35
|
},
|
package/src/toaster.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { ToasterBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import type { ToasterBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
|
|
4
5
|
import { useToast } from './hooks/use-toast';
|
|
5
6
|
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast';
|
|
6
7
|
|
package/src/toggle-group.tsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { ToggleGroupBaseProps } from '@gv-tech/ui-core';
|
|
3
4
|
import { type VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { cn } from 'cn';
|
|
4
6
|
import { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';
|
|
5
7
|
import * as React from 'react';
|
|
6
8
|
|
|
7
|
-
import {
|
|
8
|
-
import { toggleVariants } from './toggle';
|
|
9
|
-
|
|
10
|
-
import type { ToggleGroupBaseProps } from '@gv-tech/ui-core';
|
|
9
|
+
import { toggleVariants } from '@/./toggle';
|
|
11
10
|
|
|
12
11
|
const ToggleGroupContext = React.createContext<
|
|
13
12
|
VariantProps<typeof toggleVariants> & {
|
|
@@ -43,7 +42,7 @@ function ToggleGroup({
|
|
|
43
42
|
data-orientation={orientation}
|
|
44
43
|
style={{ '--gap': spacing } as React.CSSProperties}
|
|
45
44
|
className={cn(
|
|
46
|
-
'group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-
|
|
45
|
+
'group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-vertical:flex-col data-vertical:items-stretch data-[size=sm]:rounded-[min(var(--radius-md),10px)]',
|
|
47
46
|
className,
|
|
48
47
|
)}
|
|
49
48
|
{...props}
|
|
@@ -71,7 +70,7 @@ function ToggleGroupItem({
|
|
|
71
70
|
data-size={context.size || size}
|
|
72
71
|
data-spacing={context.spacing}
|
|
73
72
|
className={cn(
|
|
74
|
-
'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-
|
|
73
|
+
'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-horizontal/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t',
|
|
75
74
|
toggleVariants({
|
|
76
75
|
variant: context.variant || variant,
|
|
77
76
|
size: context.size || size,
|
package/src/toggle.tsx
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
|
+
import type { ToggleBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { cva, type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { cn } from 'cn';
|
|
2
4
|
import { Toggle as TogglePrimitive } from 'radix-ui';
|
|
3
5
|
import * as React from 'react';
|
|
4
6
|
|
|
5
|
-
import { cn } from './lib/utils';
|
|
6
|
-
|
|
7
|
-
import type { ToggleBaseProps } from '@gv-tech/ui-core';
|
|
8
|
-
|
|
9
7
|
const toggleVariants = cva(
|
|
10
|
-
|
|
8
|
+
"group/toggle hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/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 inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
11
9
|
{
|
|
12
10
|
variants: {
|
|
13
11
|
variant: {
|
|
14
12
|
default: 'bg-transparent',
|
|
15
|
-
outline: 'border
|
|
13
|
+
outline: 'border-input hover:bg-muted border bg-transparent',
|
|
16
14
|
},
|
|
17
15
|
size: {
|
|
18
16
|
default: 'h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2',
|
|
19
|
-
sm:
|
|
17
|
+
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",
|
|
20
18
|
lg: 'h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2',
|
|
21
19
|
},
|
|
22
20
|
},
|
package/src/tooltip.tsx
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import type { TooltipBaseProps } from '@gv-tech/ui-core';
|
|
4
|
+
import { cn } from 'cn';
|
|
3
5
|
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
|
|
6
|
-
import { cn } from './lib/utils';
|
|
7
|
-
|
|
8
|
-
import type { TooltipBaseProps } from '@gv-tech/ui-core';
|
|
9
|
-
|
|
10
8
|
function TooltipProvider({ delayDuration = 0, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
|
|
11
9
|
return <TooltipPrimitive.Provider data-slot="tooltip-provider" delayDuration={delayDuration} {...props} />;
|
|
12
10
|
}
|
|
@@ -31,7 +29,7 @@ function TooltipContent({
|
|
|
31
29
|
data-slot="tooltip-content"
|
|
32
30
|
sideOffset={sideOffset}
|
|
33
31
|
className={cn(
|
|
34
|
-
'bg-foreground text-background data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-
|
|
32
|
+
'bg-foreground text-background data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pe-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm',
|
|
35
33
|
className,
|
|
36
34
|
)}
|
|
37
35
|
{...props}
|
|
@@ -1,244 +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 { t as s } from "./dist-Df2ez-DA.mjs";
|
|
9
|
-
import { a as c, i as l, o as u, r as d } from "./dist-DPBTfUqI.mjs";
|
|
10
|
-
import { n as f } from "./dist-BYdcKuDi.mjs";
|
|
11
|
-
import p from "react";
|
|
12
|
-
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
13
|
-
import { ChevronDownIcon as g, ChevronUpIcon as _ } from "lucide-react";
|
|
14
|
-
//#region ../../node_modules/.bun/@radix-ui+react-accordion@1.2.12+2d3f272c3a65784a/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
15
|
-
var v = "Accordion", y = [
|
|
16
|
-
"Home",
|
|
17
|
-
"End",
|
|
18
|
-
"ArrowDown",
|
|
19
|
-
"ArrowUp",
|
|
20
|
-
"ArrowLeft",
|
|
21
|
-
"ArrowRight"
|
|
22
|
-
], [b, x, S] = i(v), [C, ee] = r(v, [S, u]), w = u(), T = p.forwardRef((e, t) => {
|
|
23
|
-
let { type: n, ...r } = e, i = r, a = r;
|
|
24
|
-
return /* @__PURE__ */ m(b.Provider, {
|
|
25
|
-
scope: e.__scopeAccordion,
|
|
26
|
-
children: n === "multiple" ? /* @__PURE__ */ m(j, {
|
|
27
|
-
...a,
|
|
28
|
-
ref: t
|
|
29
|
-
}) : /* @__PURE__ */ m(A, {
|
|
30
|
-
...i,
|
|
31
|
-
ref: t
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
T.displayName = v;
|
|
36
|
-
var [E, D] = C(v), [O, k] = C(v, { collapsible: !1 }), A = p.forwardRef((e, t) => {
|
|
37
|
-
let { value: n, defaultValue: r, onValueChange: i = () => {}, collapsible: a = !1, ...s } = e, [c, l] = o({
|
|
38
|
-
prop: n,
|
|
39
|
-
defaultProp: r ?? "",
|
|
40
|
-
onChange: i,
|
|
41
|
-
caller: v
|
|
42
|
-
});
|
|
43
|
-
return /* @__PURE__ */ m(E, {
|
|
44
|
-
scope: e.__scopeAccordion,
|
|
45
|
-
value: p.useMemo(() => c ? [c] : [], [c]),
|
|
46
|
-
onItemOpen: l,
|
|
47
|
-
onItemClose: p.useCallback(() => a && l(""), [a, l]),
|
|
48
|
-
children: /* @__PURE__ */ m(O, {
|
|
49
|
-
scope: e.__scopeAccordion,
|
|
50
|
-
collapsible: a,
|
|
51
|
-
children: /* @__PURE__ */ m(P, {
|
|
52
|
-
...s,
|
|
53
|
-
ref: t
|
|
54
|
-
})
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
}), j = p.forwardRef((e, t) => {
|
|
58
|
-
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [s, c] = o({
|
|
59
|
-
prop: n,
|
|
60
|
-
defaultProp: r ?? [],
|
|
61
|
-
onChange: i,
|
|
62
|
-
caller: v
|
|
63
|
-
}), l = p.useCallback((e) => c((t = []) => [...t, e]), [c]), u = p.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
64
|
-
return /* @__PURE__ */ m(E, {
|
|
65
|
-
scope: e.__scopeAccordion,
|
|
66
|
-
value: s,
|
|
67
|
-
onItemOpen: l,
|
|
68
|
-
onItemClose: u,
|
|
69
|
-
children: /* @__PURE__ */ m(O, {
|
|
70
|
-
scope: e.__scopeAccordion,
|
|
71
|
-
collapsible: !0,
|
|
72
|
-
children: /* @__PURE__ */ m(P, {
|
|
73
|
-
...a,
|
|
74
|
-
ref: t
|
|
75
|
-
})
|
|
76
|
-
})
|
|
77
|
-
});
|
|
78
|
-
}), [M, N] = C(v), P = p.forwardRef((e, r) => {
|
|
79
|
-
let { __scopeAccordion: i, disabled: o, dir: s, orientation: c = "vertical", ...l } = e, u = t(p.useRef(null), r), d = x(i), h = f(s) === "ltr", g = a(e.onKeyDown, (e) => {
|
|
80
|
-
if (!y.includes(e.key)) return;
|
|
81
|
-
let t = e.target, n = d().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
82
|
-
if (r === -1) return;
|
|
83
|
-
e.preventDefault();
|
|
84
|
-
let a = r, o = i - 1, s = () => {
|
|
85
|
-
a = r + 1, a > o && (a = 0);
|
|
86
|
-
}, l = () => {
|
|
87
|
-
a = r - 1, a < 0 && (a = o);
|
|
88
|
-
};
|
|
89
|
-
switch (e.key) {
|
|
90
|
-
case "Home":
|
|
91
|
-
a = 0;
|
|
92
|
-
break;
|
|
93
|
-
case "End":
|
|
94
|
-
a = o;
|
|
95
|
-
break;
|
|
96
|
-
case "ArrowRight":
|
|
97
|
-
c === "horizontal" && (h ? s() : l());
|
|
98
|
-
break;
|
|
99
|
-
case "ArrowDown":
|
|
100
|
-
c === "vertical" && s();
|
|
101
|
-
break;
|
|
102
|
-
case "ArrowLeft":
|
|
103
|
-
c === "horizontal" && (h ? l() : s());
|
|
104
|
-
break;
|
|
105
|
-
case "ArrowUp":
|
|
106
|
-
c === "vertical" && l();
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
n[a % i].ref.current?.focus();
|
|
110
|
-
});
|
|
111
|
-
return /* @__PURE__ */ m(M, {
|
|
112
|
-
scope: i,
|
|
113
|
-
disabled: o,
|
|
114
|
-
direction: s,
|
|
115
|
-
orientation: c,
|
|
116
|
-
children: /* @__PURE__ */ m(b.Slot, {
|
|
117
|
-
scope: i,
|
|
118
|
-
children: /* @__PURE__ */ m(n.div, {
|
|
119
|
-
...l,
|
|
120
|
-
"data-orientation": c,
|
|
121
|
-
ref: u,
|
|
122
|
-
onKeyDown: o ? void 0 : g
|
|
123
|
-
})
|
|
124
|
-
})
|
|
125
|
-
});
|
|
126
|
-
}), F = "AccordionItem", [I, L] = C(F), R = p.forwardRef((e, t) => {
|
|
127
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = N(F, n), o = D(F, n), c = w(n), u = s(), d = r && o.value.includes(r) || !1, f = a.disabled || e.disabled;
|
|
128
|
-
return /* @__PURE__ */ m(I, {
|
|
129
|
-
scope: n,
|
|
130
|
-
open: d,
|
|
131
|
-
disabled: f,
|
|
132
|
-
triggerId: u,
|
|
133
|
-
children: /* @__PURE__ */ m(l, {
|
|
134
|
-
"data-orientation": a.orientation,
|
|
135
|
-
"data-state": G(d),
|
|
136
|
-
...c,
|
|
137
|
-
...i,
|
|
138
|
-
ref: t,
|
|
139
|
-
disabled: f,
|
|
140
|
-
open: d,
|
|
141
|
-
onOpenChange: (e) => {
|
|
142
|
-
e ? o.onItemOpen(r) : o.onItemClose(r);
|
|
143
|
-
}
|
|
144
|
-
})
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
R.displayName = F;
|
|
148
|
-
var z = "AccordionHeader", B = p.forwardRef((e, t) => {
|
|
149
|
-
let { __scopeAccordion: r, ...i } = e, a = N(v, r), o = L(z, r);
|
|
150
|
-
return /* @__PURE__ */ m(n.h3, {
|
|
151
|
-
"data-orientation": a.orientation,
|
|
152
|
-
"data-state": G(o.open),
|
|
153
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
154
|
-
...i,
|
|
155
|
-
ref: t
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
B.displayName = z;
|
|
159
|
-
var V = "AccordionTrigger", H = p.forwardRef((e, t) => {
|
|
160
|
-
let { __scopeAccordion: n, ...r } = e, i = N(v, n), a = L(V, n), o = k(V, n), s = w(n);
|
|
161
|
-
return /* @__PURE__ */ m(b.ItemSlot, {
|
|
162
|
-
scope: n,
|
|
163
|
-
children: /* @__PURE__ */ m(c, {
|
|
164
|
-
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
165
|
-
"data-orientation": i.orientation,
|
|
166
|
-
id: a.triggerId,
|
|
167
|
-
...s,
|
|
168
|
-
...r,
|
|
169
|
-
ref: t
|
|
170
|
-
})
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
H.displayName = V;
|
|
174
|
-
var U = "AccordionContent", W = p.forwardRef((e, t) => {
|
|
175
|
-
let { __scopeAccordion: n, ...r } = e, i = N(v, n), a = L(U, n), o = w(n);
|
|
176
|
-
return /* @__PURE__ */ m(d, {
|
|
177
|
-
role: "region",
|
|
178
|
-
"aria-labelledby": a.triggerId,
|
|
179
|
-
"data-orientation": i.orientation,
|
|
180
|
-
...o,
|
|
181
|
-
...r,
|
|
182
|
-
ref: t,
|
|
183
|
-
style: {
|
|
184
|
-
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
185
|
-
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
186
|
-
...e.style
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
W.displayName = U;
|
|
191
|
-
function G(e) {
|
|
192
|
-
return e ? "open" : "closed";
|
|
193
|
-
}
|
|
194
|
-
var K = T, q = R, J = B, Y = H, X = W;
|
|
195
|
-
//#endregion
|
|
196
|
-
//#region src/accordion.tsx
|
|
197
|
-
function Z({ className: t, ...n }) {
|
|
198
|
-
return /* @__PURE__ */ m(K, {
|
|
199
|
-
"data-slot": "accordion",
|
|
200
|
-
className: e("flex w-full flex-col", t),
|
|
201
|
-
...n
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
function Q({ className: t, ...n }) {
|
|
205
|
-
return /* @__PURE__ */ m(q, {
|
|
206
|
-
"data-slot": "accordion-item",
|
|
207
|
-
className: e("not-last:border-b", t),
|
|
208
|
-
...n
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
function $({ className: t, children: n, ...r }) {
|
|
212
|
-
return /* @__PURE__ */ m(J, {
|
|
213
|
-
className: "flex",
|
|
214
|
-
children: /* @__PURE__ */ h(Y, {
|
|
215
|
-
"data-slot": "accordion-trigger",
|
|
216
|
-
className: e("group/accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-start text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:size-4", t),
|
|
217
|
-
...r,
|
|
218
|
-
children: [
|
|
219
|
-
n,
|
|
220
|
-
/* @__PURE__ */ m(g, {
|
|
221
|
-
"data-slot": "accordion-trigger-icon",
|
|
222
|
-
className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
|
|
223
|
-
}),
|
|
224
|
-
/* @__PURE__ */ m(_, {
|
|
225
|
-
"data-slot": "accordion-trigger-icon",
|
|
226
|
-
className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
|
|
227
|
-
})
|
|
228
|
-
]
|
|
229
|
-
})
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
function te({ className: t, children: n, ...r }) {
|
|
233
|
-
return /* @__PURE__ */ m(X, {
|
|
234
|
-
"data-slot": "accordion-content",
|
|
235
|
-
className: "data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden text-sm",
|
|
236
|
-
...r,
|
|
237
|
-
children: /* @__PURE__ */ m("div", {
|
|
238
|
-
className: e("[&_a]:hover:text-foreground h-(--radix-accordion-content-height) pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4", t),
|
|
239
|
-
children: n
|
|
240
|
-
})
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
//#endregion
|
|
244
|
-
export { $ as i, te as n, Q as r, Z as t };
|
|
@@ -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-Byhx2fDJ.js"),l=require("./dist-BRsDdVlJ.js"),u=require("./dist-1C8JOpVg.js");let d=require("react"),f=e.r(d,1);d=e.r(d);let p=require("react/jsx-runtime"),m=require("lucide-react");var h=`Accordion`,g=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[_,v,y]=a.t(h),[b,x]=i.n(h,[y,l.o]),S=l.o(),C=f.default.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,p.jsx)(_.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,p.jsx)(k,{...a,ref:t}):(0,p.jsx)(O,{...i,ref:t})})});C.displayName=h;var[w,T]=b(h),[E,D]=b(h,{collapsible:!1}),O=f.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[c,l]=s.t({prop:n,defaultProp:r??``,onChange:i,caller:h});return(0,p.jsx)(w,{scope:e.__scopeAccordion,value:f.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:f.default.useCallback(()=>a&&l(``),[a,l]),children:(0,p.jsx)(E,{scope:e.__scopeAccordion,collapsible:a,children:(0,p.jsx)(M,{...o,ref:t})})})}),k=f.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,c]=s.t({prop:n,defaultProp:r??[],onChange:i,caller:h}),l=f.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=f.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,p.jsx)(w,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u,children:(0,p.jsx)(E,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(M,{...a,ref:t})})})}),[A,j]=b(h),M=f.default.forwardRef((e,t)=>{let{__scopeAccordion:i,disabled:a,dir:s,orientation:c=`vertical`,...l}=e,d=n.a(f.default.useRef(null),t),m=v(i),h=u.n(s)===`ltr`,y=o.t(e.onKeyDown,e=>{if(!g.includes(e.key))return;let t=e.target,n=m().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,o=i-1,s=()=>{a=r+1,a>o&&(a=0)},l=()=>{a=r-1,a<0&&(a=o)};switch(e.key){case`Home`:a=0;break;case`End`:a=o;break;case`ArrowRight`:c===`horizontal`&&(h?s():l());break;case`ArrowDown`:c===`vertical`&&s();break;case`ArrowLeft`:c===`horizontal`&&(h?l():s());break;case`ArrowUp`:c===`vertical`&&l();break}n[a%i].ref.current?.focus()});return(0,p.jsx)(A,{scope:i,disabled:a,direction:s,orientation:c,children:(0,p.jsx)(_.Slot,{scope:i,children:(0,p.jsx)(r.t.div,{...l,"data-orientation":c,ref:d,onKeyDown:a?void 0:y})})})}),N=`AccordionItem`,[P,F]=b(N),I=f.default.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=j(N,n),o=T(N,n),s=S(n),u=c.t(),d=r&&o.value.includes(r)||!1,f=a.disabled||e.disabled;return(0,p.jsx)(P,{scope:n,open:d,disabled:f,triggerId:u,children:(0,p.jsx)(l.i,{"data-orientation":a.orientation,"data-state":U(d),...s,...i,ref:t,disabled:f,open:d,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});I.displayName=N;var L=`AccordionHeader`,R=f.default.forwardRef((e,t)=>{let{__scopeAccordion:n,...i}=e,a=j(h,n),o=F(L,n);return(0,p.jsx)(r.t.h3,{"data-orientation":a.orientation,"data-state":U(o.open),"data-disabled":o.disabled?``:void 0,...i,ref:t})});R.displayName=L;var z=`AccordionTrigger`,B=f.default.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=j(h,n),a=F(z,n),o=D(z,n),s=S(n);return(0,p.jsx)(_.ItemSlot,{scope:n,children:(0,p.jsx)(l.a,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});B.displayName=z;var V=`AccordionContent`,H=f.default.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=j(h,n),a=F(V,n),o=S(n);return(0,p.jsx)(l.r,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});H.displayName=V;function U(e){return e?`open`:`closed`}var W=C,G=I,K=R,q=B,J=H;function Y({className:e,...n}){return(0,p.jsx)(W,{"data-slot":`accordion`,className:t.t(`flex w-full flex-col`,e),...n})}function X({className:e,...n}){return(0,p.jsx)(G,{"data-slot":`accordion-item`,className:t.t(`not-last:border-b`,e),...n})}function Z({className:e,children:n,...r}){return(0,p.jsx)(K,{className:`flex`,children:(0,p.jsxs)(q,{"data-slot":`accordion-trigger`,className:t.t(`group/accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-start text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:size-4`,e),...r,children:[n,(0,p.jsx)(m.ChevronDownIcon,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden`}),(0,p.jsx)(m.ChevronUpIcon,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline`})]})})}function Q({className:e,children:n,...r}){return(0,p.jsx)(J,{"data-slot":`accordion-content`,className:`data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden text-sm`,...r,children:(0,p.jsx)(`div`,{className:t.t(`[&_a]:hover:text-foreground h-(--radix-accordion-content-height) pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4`,e),children:n})})}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Y}});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-DR0lXVFG.js"),r=require("./dist-CSkpam6a.js"),i=require("./dist-CRLbUj9C.js"),a=require("./dist-Da7BU5sd.js"),o=require("./button.cjs");let s=require("react"),c=e.r(s,1);s=e.r(s);let l=require("react/jsx-runtime");var u=`AlertDialog`,[d,f]=r.n(u,[a.u]),p=a.u(),m=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,l.jsx)(a.o,{...r,...n,modal:!0})};m.displayName=u;var h=`AlertDialogTrigger`,g=c.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=p(n);return(0,l.jsx)(a.c,{...i,...r,ref:t})});g.displayName=h;var _=`AlertDialogPortal`,v=e=>{let{__scopeAlertDialog:t,...n}=e,r=p(t);return(0,l.jsx)(a.a,{...r,...n})};v.displayName=_;var y=`AlertDialogOverlay`,b=c.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=p(n);return(0,l.jsx)(a.i,{...i,...r,ref:t})});b.displayName=y;var x=`AlertDialogContent`,[S,C]=d(x),w=n.r(`AlertDialogContent`),T=c.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...s}=e,u=p(r),d=c.useRef(null),f=n.a(t,d),m=c.useRef(null);return(0,l.jsx)(a.l,{contentName:x,titleName:E,docsSlug:`alert-dialog`,children:(0,l.jsx)(S,{scope:r,cancelRef:m,children:(0,l.jsxs)(a.n,{role:`alertdialog`,...u,...s,ref:f,onOpenAutoFocus:i.t(s.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,l.jsx)(w,{children:o}),(0,l.jsx)(P,{contentRef:d})]})})})});T.displayName=x;var E=`AlertDialogTitle`,D=c.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=p(n);return(0,l.jsx)(a.s,{...i,...r,ref:t})});D.displayName=E;var O=`AlertDialogDescription`,k=c.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=p(n);return(0,l.jsx)(a.r,{...i,...r,ref:t})});k.displayName=O;var A=`AlertDialogAction`,j=c.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=p(n);return(0,l.jsx)(a.t,{...i,...r,ref:t})});j.displayName=A;var M=`AlertDialogCancel`,N=c.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...i}=e,{cancelRef:o}=C(M,r),s=p(r),c=n.a(t,o);return(0,l.jsx)(a.t,{...s,...i,ref:c})});N.displayName=M;var P=({contentRef:e})=>{let t=`\`${x}\` requires a description for the component to be accessible for screen reader users.
|
|
2
|
-
|
|
3
|
-
You can add a description to the \`${x}\` by passing a \`${O}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
|
-
|
|
5
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${x}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
|
-
|
|
7
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},F=m,I=g,L=v,R=b,z=T,B=j,V=N,H=D,U=k;function W({...e}){return(0,l.jsx)(F,{"data-slot":`alert-dialog`,...e})}function G({...e}){return(0,l.jsx)(I,{"data-slot":`alert-dialog-trigger`,...e})}function K({...e}){return(0,l.jsx)(L,{"data-slot":`alert-dialog-portal`,...e})}function q({className:e,...n}){return(0,l.jsx)(R,{"data-slot":`alert-dialog-overlay`,className:t.t(`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs`,e),...n})}function J({className:e,size:n=`default`,...r}){return(0,l.jsxs)(K,{children:[(0,l.jsx)(q,{}),(0,l.jsx)(z,{"data-slot":`alert-dialog-content`,"data-size":n,className:t.t(`group/alert-dialog-content bg-popover text-popover-foreground ring-foreground/10 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm rtl:translate-x-1/2`,e),...r})]})}function Y({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:t.t(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...n})}function X({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:t.t(`bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...n})}function Z({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:t.t(`bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*=size-])]:size-6`,e),...n})}function Q({className:e,...n}){return(0,l.jsx)(H,{"data-slot":`alert-dialog-title`,className:t.t(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...n})}function $({className:e,...n}){return(0,l.jsx)(U,{"data-slot":`alert-dialog-description`,className:t.t(`text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3`,e),...n})}function ee({className:e,variant:n=`default`,size:r=`default`,...i}){return(0,l.jsx)(o.Button,{variant:n,size:r,asChild:!0,children:(0,l.jsx)(B,{"data-slot":`alert-dialog-action`,className:t.t(e),...i})})}function te({className:e,variant:n=`outline`,size:r=`default`,...i}){return(0,l.jsx)(o.Button,{variant:n,size:r,asChild:!0,children:(0,l.jsx)(V,{"data-slot":`alert-dialog-cancel`,className:t.t(e),...i})})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return K}});
|