@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/pagination.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./button.cjs");let r=require("lucide-react"),i=require("react");i=e.r(i);let a=require("react/jsx-runtime");function o({className:e,...n}){return(0,a.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:t.t(`mx-auto flex w-full justify-center`,e),...n})}function s({className:e,...n}){return(0,a.jsx)(`ul`,{"data-slot":`pagination-content`,className:t.t(`flex items-center gap-0.5`,e),...n})}function c({...e}){return(0,a.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function l({className:e,isActive:r,size:i=`icon`,children:o,...s}){return(0,a.jsx)(n.Button,{asChild:!0,variant:r?`outline`:`ghost`,size:i,className:t.t(e),children:(0,a.jsx)(`a`,{"aria-current":r?`page`:void 0,"data-slot":`pagination-link`,"data-active":r,...s,children:o})})}function u({className:e,text:n=`Previous`,...i}){return(0,a.jsxs)(l,{"aria-label":`Go to previous page`,size:`default`,className:t.t(`ps-1.5!`,e),...i,children:[(0,a.jsx)(r.ChevronLeftIcon,{"data-icon":`inline-start`,className:`rtl:rotate-180`}),(0,a.jsx)(`span`,{className:`hidden sm:block`,children:n})]})}function d({className:e,text:n=`Next`,...i}){return(0,a.jsxs)(l,{"aria-label":`Go to next page`,size:`default`,className:t.t(`pe-1.5!`,e),...i,children:[(0,a.jsx)(`span`,{className:`hidden sm:block`,children:n}),(0,a.jsx)(r.ChevronRightIcon,{"data-icon":`inline-end`,className:`rtl:rotate-180`})]})}function f({className:e,...n}){return(0,a.jsxs)(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:t.t(`flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4`,e),...n,children:[(0,a.jsx)(r.MoreHorizontalIcon,{}),(0,a.jsx)(`span`,{className:`sr-only`,children:`More pages`})]})}exports.Pagination=o,exports.PaginationContent=s,exports.PaginationEllipsis=f,exports.PaginationItem=c,exports.PaginationLink=l,exports.PaginationNext=d,exports.PaginationPrevious=u;
|
package/dist/pagination.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Button } from './button';
|
|
2
1
|
import { PaginationBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { Button } from './button';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
declare function Pagination({ className, ...props }: React.ComponentProps<'nav'>):
|
|
5
|
-
declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>):
|
|
6
|
-
declare function PaginationItem({ ...props }: React.ComponentProps<'li'>):
|
|
4
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
|
|
5
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
|
|
6
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<'li'>): React.JSX.Element;
|
|
7
7
|
type PaginationLinkProps = {
|
|
8
8
|
isActive?: boolean;
|
|
9
9
|
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
10
|
-
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps):
|
|
10
|
+
declare function PaginationLink({ className, isActive, size, children, ...props }: PaginationLinkProps): React.JSX.Element;
|
|
11
11
|
declare function PaginationPrevious({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
|
|
12
12
|
text?: string;
|
|
13
|
-
}):
|
|
13
|
+
}): React.JSX.Element;
|
|
14
14
|
declare function PaginationNext({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
|
|
15
15
|
text?: string;
|
|
16
|
-
}):
|
|
17
|
-
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>):
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
18
18
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
19
19
|
export type ___verifyPaginationContract = React.ComponentProps<typeof Pagination> extends PaginationBaseProps ? true : false;
|
|
20
20
|
//# sourceMappingURL=pagination.d.ts.map
|
package/dist/pagination.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../src/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../src/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAUvE;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,qBAE7E;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,qBAE/D;AAED,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GACnD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAE5B,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAa,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,qBAQtG;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,IAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,qBAOjE;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,IAAa,EACb,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,qBAOjE;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAYhF;AAED,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,CAAC;AAGF,MAAM,MAAM,2BAA2B,GACrC,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,SAAS,mBAAmB,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
package/dist/pagination.mjs
CHANGED
|
@@ -1,77 +1,84 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./
|
|
2
|
+
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
3
3
|
import { Button as t } from "./button.mjs";
|
|
4
|
+
import { ChevronLeftIcon as n, ChevronRightIcon as r, MoreHorizontalIcon as i } from "lucide-react";
|
|
4
5
|
import "react";
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { ChevronLeftIcon as i, ChevronRightIcon as a, MoreHorizontalIcon as o } from "lucide-react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
//#region src/pagination.tsx
|
|
8
|
-
function s({ className: t, ...
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
function s({ className: t, ...n }) {
|
|
9
|
+
return /* @__PURE__ */ a("nav", {
|
|
10
10
|
role: "navigation",
|
|
11
11
|
"aria-label": "pagination",
|
|
12
12
|
"data-slot": "pagination",
|
|
13
13
|
className: e("mx-auto flex w-full justify-center", t),
|
|
14
|
-
...
|
|
14
|
+
...n
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
function c({ className: t, ...
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
function c({ className: t, ...n }) {
|
|
18
|
+
return /* @__PURE__ */ a("ul", {
|
|
19
19
|
"data-slot": "pagination-content",
|
|
20
20
|
className: e("flex items-center gap-0.5", t),
|
|
21
|
-
...
|
|
21
|
+
...n
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
function l({ ...e }) {
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ a("li", {
|
|
26
26
|
"data-slot": "pagination-item",
|
|
27
27
|
...e
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function u({ className:
|
|
31
|
-
return /* @__PURE__ */
|
|
30
|
+
function u({ className: n, isActive: r, size: i = "icon", children: o, ...s }) {
|
|
31
|
+
return /* @__PURE__ */ a(t, {
|
|
32
32
|
asChild: !0,
|
|
33
|
-
variant:
|
|
34
|
-
size:
|
|
35
|
-
className: e(
|
|
36
|
-
children: /* @__PURE__ */
|
|
37
|
-
"aria-current":
|
|
33
|
+
variant: r ? "outline" : "ghost",
|
|
34
|
+
size: i,
|
|
35
|
+
className: e(n),
|
|
36
|
+
children: /* @__PURE__ */ a("a", {
|
|
37
|
+
"aria-current": r ? "page" : void 0,
|
|
38
38
|
"data-slot": "pagination-link",
|
|
39
|
-
"data-active":
|
|
40
|
-
...
|
|
39
|
+
"data-active": r,
|
|
40
|
+
...s,
|
|
41
|
+
children: o
|
|
41
42
|
})
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
|
-
function d({ className: t, text:
|
|
45
|
-
return /* @__PURE__ */
|
|
45
|
+
function d({ className: t, text: r = "Previous", ...i }) {
|
|
46
|
+
return /* @__PURE__ */ o(u, {
|
|
46
47
|
"aria-label": "Go to previous page",
|
|
47
48
|
size: "default",
|
|
48
49
|
className: e("ps-1.5!", t),
|
|
49
|
-
...
|
|
50
|
-
children: [/* @__PURE__ */
|
|
50
|
+
...i,
|
|
51
|
+
children: [/* @__PURE__ */ a(n, {
|
|
52
|
+
"data-icon": "inline-start",
|
|
53
|
+
className: "rtl:rotate-180"
|
|
54
|
+
}), /* @__PURE__ */ a("span", {
|
|
51
55
|
className: "hidden sm:block",
|
|
52
|
-
children:
|
|
56
|
+
children: r
|
|
53
57
|
})]
|
|
54
58
|
});
|
|
55
59
|
}
|
|
56
|
-
function f({ className: t, text:
|
|
57
|
-
return /* @__PURE__ */
|
|
60
|
+
function f({ className: t, text: n = "Next", ...i }) {
|
|
61
|
+
return /* @__PURE__ */ o(u, {
|
|
58
62
|
"aria-label": "Go to next page",
|
|
59
63
|
size: "default",
|
|
60
64
|
className: e("pe-1.5!", t),
|
|
61
|
-
...
|
|
62
|
-
children: [/* @__PURE__ */
|
|
65
|
+
...i,
|
|
66
|
+
children: [/* @__PURE__ */ a("span", {
|
|
63
67
|
className: "hidden sm:block",
|
|
64
|
-
children:
|
|
65
|
-
}), /* @__PURE__ */
|
|
68
|
+
children: n
|
|
69
|
+
}), /* @__PURE__ */ a(r, {
|
|
70
|
+
"data-icon": "inline-end",
|
|
71
|
+
className: "rtl:rotate-180"
|
|
72
|
+
})]
|
|
66
73
|
});
|
|
67
74
|
}
|
|
68
|
-
function p({ className: t, ...
|
|
69
|
-
return /* @__PURE__ */
|
|
75
|
+
function p({ className: t, ...n }) {
|
|
76
|
+
return /* @__PURE__ */ o("span", {
|
|
70
77
|
"aria-hidden": !0,
|
|
71
78
|
"data-slot": "pagination-ellipsis",
|
|
72
|
-
className: e("flex size-8 items-center justify-center [&_svg:not([class*=size-])]:size-4", t),
|
|
73
|
-
...
|
|
74
|
-
children: [/* @__PURE__ */
|
|
79
|
+
className: e("flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4", t),
|
|
80
|
+
...n,
|
|
81
|
+
children: [/* @__PURE__ */ a(i, {}), /* @__PURE__ */ a("span", {
|
|
75
82
|
className: "sr-only",
|
|
76
83
|
children: "More pages"
|
|
77
84
|
})]
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
2
|
+
import { a as t, n } from "./dist-Dq-h6VAy.mjs";
|
|
3
|
+
import { t as r } from "./dist-BEbV0Hal.mjs";
|
|
4
|
+
import { t as i } from "./dist-CPAF050o.mjs";
|
|
5
|
+
import { t as a } from "./dist-BB78QQyQ.mjs";
|
|
6
|
+
import { t as o } from "./dist-Bvfb4y_L.mjs";
|
|
7
|
+
import { t as s } from "./dist-CpKLY_uZ.mjs";
|
|
8
|
+
import { t as c } from "./dist-UkWa-Arh.mjs";
|
|
9
|
+
import { t as l } from "./dist-s7ibhASj.mjs";
|
|
10
|
+
import { i as u, n as d, r as f, t as p } from "./dist-E8ieJTBC.mjs";
|
|
11
|
+
import { t as m } from "./dist-DI1vapnL.mjs";
|
|
12
|
+
import { n as h, r as g, t as _ } from "./es2015-DbsmTzuc.mjs";
|
|
13
|
+
import { a as v, i as y, n as b, t as x } from "./dist-Dt6m-kwU.mjs";
|
|
14
|
+
import * as S from "react";
|
|
15
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
16
|
+
//#region ../../node_modules/.bun/@radix-ui+react-popover@1.3.1+b146eb580f4286be/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
17
|
+
var w = Object.defineProperty, T = (e, t) => w(e, "name", {
|
|
18
|
+
value: t,
|
|
19
|
+
configurable: !0
|
|
20
|
+
}), E = "Popover", [D, O] = i(E, [v]), k = v(), [A, j] = D(E), M = /* @__PURE__ */ T((e) => {
|
|
21
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: s = !1 } = e, l = k(t), u = S.useRef(null), [d, f] = S.useState(!1), [p, m] = S.useState(0), [h, g] = S.useState(0), [_, v] = o({
|
|
22
|
+
prop: r,
|
|
23
|
+
defaultProp: i ?? !1,
|
|
24
|
+
onChange: a,
|
|
25
|
+
caller: E
|
|
26
|
+
});
|
|
27
|
+
return /* @__PURE__ */ C(x, {
|
|
28
|
+
...l,
|
|
29
|
+
children: /* @__PURE__ */ C(A, {
|
|
30
|
+
scope: t,
|
|
31
|
+
contentId: c(),
|
|
32
|
+
titleId: c(),
|
|
33
|
+
descriptionId: c(),
|
|
34
|
+
titlePresent: p > 0,
|
|
35
|
+
descriptionPresent: h > 0,
|
|
36
|
+
setTitleCount: m,
|
|
37
|
+
setDescriptionCount: g,
|
|
38
|
+
triggerRef: u,
|
|
39
|
+
open: _,
|
|
40
|
+
onOpenChange: v,
|
|
41
|
+
onOpenToggle: S.useCallback(() => v((e) => !e), [v]),
|
|
42
|
+
hasCustomAnchor: d,
|
|
43
|
+
onCustomAnchorAdd: S.useCallback(() => f(!0), []),
|
|
44
|
+
onCustomAnchorRemove: S.useCallback(() => f(!1), []),
|
|
45
|
+
modal: s,
|
|
46
|
+
children: n
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
}, "Popover"), N = "PopoverAnchor", P = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, t) {
|
|
50
|
+
let { __scopePopover: n, ...r } = e, i = j(N, n), a = k(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
51
|
+
return S.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ C(b, {
|
|
52
|
+
...a,
|
|
53
|
+
...r,
|
|
54
|
+
ref: t
|
|
55
|
+
});
|
|
56
|
+
}, "PopoverAnchor")), F = "PopoverTrigger", I = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, n) {
|
|
57
|
+
let { __scopePopover: i, ...o } = e, s = j(F, i), c = k(i), l = t(n, s.triggerRef), u = /* @__PURE__ */ C(r.button, {
|
|
58
|
+
type: "button",
|
|
59
|
+
"aria-haspopup": "dialog",
|
|
60
|
+
"aria-expanded": s.open,
|
|
61
|
+
"aria-controls": s.open ? s.contentId : void 0,
|
|
62
|
+
"data-state": q(s.open),
|
|
63
|
+
...o,
|
|
64
|
+
ref: l,
|
|
65
|
+
onClick: a(e.onClick, s.onOpenToggle)
|
|
66
|
+
});
|
|
67
|
+
return s.hasCustomAnchor ? u : /* @__PURE__ */ C(b, {
|
|
68
|
+
asChild: !0,
|
|
69
|
+
...c,
|
|
70
|
+
children: u
|
|
71
|
+
});
|
|
72
|
+
}, "PopoverTrigger")), L = "PopoverPortal", [R, z] = D(L, { forceMount: void 0 }), B = /* @__PURE__ */ T((e) => {
|
|
73
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = j(L, t);
|
|
74
|
+
return /* @__PURE__ */ C(R, {
|
|
75
|
+
scope: t,
|
|
76
|
+
forceMount: n,
|
|
77
|
+
children: /* @__PURE__ */ C(s, {
|
|
78
|
+
present: n || a.open,
|
|
79
|
+
children: /* @__PURE__ */ C(m, {
|
|
80
|
+
asChild: !0,
|
|
81
|
+
container: i,
|
|
82
|
+
children: r
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
}, "PopoverPortal"), V = "PopoverContent", H = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, t) {
|
|
87
|
+
let n = z(V, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = j(V, e.__scopePopover);
|
|
88
|
+
return /* @__PURE__ */ C(s, {
|
|
89
|
+
present: r || a.open,
|
|
90
|
+
children: a.modal ? /* @__PURE__ */ C(W, {
|
|
91
|
+
...i,
|
|
92
|
+
ref: t
|
|
93
|
+
}) : /* @__PURE__ */ C(G, {
|
|
94
|
+
...i,
|
|
95
|
+
ref: t
|
|
96
|
+
})
|
|
97
|
+
});
|
|
98
|
+
}, "PopoverContent")), U = n("PopoverContent.RemoveScroll"), W = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, n) {
|
|
99
|
+
let r = j(V, e.__scopePopover), i = S.useRef(null), o = t(n, i), s = S.useRef(!1), { nodes: c, registry: l } = u();
|
|
100
|
+
return S.useEffect(() => {
|
|
101
|
+
let e = i.current;
|
|
102
|
+
if (e) return _(e);
|
|
103
|
+
}, []), /* @__PURE__ */ C(h, {
|
|
104
|
+
as: U,
|
|
105
|
+
allowPinchZoom: !0,
|
|
106
|
+
shards: S.useMemo(() => [i, ...c.map((e) => ({ current: e }))], [i, c]),
|
|
107
|
+
children: /* @__PURE__ */ C(K, {
|
|
108
|
+
...e,
|
|
109
|
+
ref: o,
|
|
110
|
+
branchNodes: c,
|
|
111
|
+
branchRegistry: l,
|
|
112
|
+
trapFocus: r.open,
|
|
113
|
+
disableOutsidePointerEvents: !0,
|
|
114
|
+
onCloseAutoFocus: a(e.onCloseAutoFocus, (e) => {
|
|
115
|
+
e.preventDefault(), s.current || r.triggerRef.current?.focus();
|
|
116
|
+
}),
|
|
117
|
+
onPointerDownOutside: a(e.onPointerDownOutside, (e) => {
|
|
118
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
119
|
+
s.current = t.button === 2 || n;
|
|
120
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
121
|
+
onFocusOutside: a(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
122
|
+
})
|
|
123
|
+
});
|
|
124
|
+
}, "PopoverContentModal")), G = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, t) {
|
|
125
|
+
let n = j(V, e.__scopePopover), r = S.useRef(!1), i = S.useRef(!1);
|
|
126
|
+
return /* @__PURE__ */ C(K, {
|
|
127
|
+
...e,
|
|
128
|
+
ref: t,
|
|
129
|
+
trapFocus: !1,
|
|
130
|
+
disableOutsidePointerEvents: !1,
|
|
131
|
+
onCloseAutoFocus: (t) => {
|
|
132
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
133
|
+
},
|
|
134
|
+
onInteractOutside: (t) => {
|
|
135
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
136
|
+
let a = t.target;
|
|
137
|
+
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}, "PopoverContentNonModal")), K = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, n) {
|
|
141
|
+
let { __scopePopover: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: m, onInteractOutside: h, "aria-describedby": _, branchNodes: v, branchRegistry: b, ...x } = e, w = j(V, r), T = k(r), [E, D] = S.useState(null), O = t(n, D);
|
|
142
|
+
return f(E), g(), /* @__PURE__ */ C(d, {
|
|
143
|
+
registry: b,
|
|
144
|
+
children: /* @__PURE__ */ C(p, {
|
|
145
|
+
asChild: !0,
|
|
146
|
+
loop: !0,
|
|
147
|
+
trapped: i,
|
|
148
|
+
branches: v,
|
|
149
|
+
onMountAutoFocus: a,
|
|
150
|
+
onUnmountAutoFocus: o,
|
|
151
|
+
children: /* @__PURE__ */ C(l, {
|
|
152
|
+
asChild: !0,
|
|
153
|
+
disableOutsidePointerEvents: s,
|
|
154
|
+
onInteractOutside: h,
|
|
155
|
+
onEscapeKeyDown: c,
|
|
156
|
+
onPointerDownOutside: u,
|
|
157
|
+
onFocusOutside: m,
|
|
158
|
+
onDismiss: () => w.onOpenChange(!1),
|
|
159
|
+
deferPointerDownOutside: !0,
|
|
160
|
+
children: /* @__PURE__ */ C(y, {
|
|
161
|
+
"data-state": q(w.open),
|
|
162
|
+
role: "dialog",
|
|
163
|
+
id: w.contentId,
|
|
164
|
+
"aria-labelledby": w.titlePresent ? w.titleId : void 0,
|
|
165
|
+
"aria-describedby": w.descriptionPresent ? J(_, w.descriptionId) : _,
|
|
166
|
+
...T,
|
|
167
|
+
...x,
|
|
168
|
+
ref: O,
|
|
169
|
+
style: {
|
|
170
|
+
...x.style,
|
|
171
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
172
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
173
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
174
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
175
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
176
|
+
}
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
})
|
|
180
|
+
});
|
|
181
|
+
}, "PopoverContentImpl"));
|
|
182
|
+
function q(e) {
|
|
183
|
+
return e ? "open" : "closed";
|
|
184
|
+
}
|
|
185
|
+
T(q, "getState");
|
|
186
|
+
function J(...e) {
|
|
187
|
+
let t = /* @__PURE__ */ new Set();
|
|
188
|
+
for (let n of e) if (typeof n == "string") for (let e of String(n).trim().split(/\s+/)) e && t.add(e);
|
|
189
|
+
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
190
|
+
}
|
|
191
|
+
T(J, "concatAriaDescribedby");
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/popover.tsx
|
|
194
|
+
function Y({ ...e }) {
|
|
195
|
+
return /* @__PURE__ */ C(M, {
|
|
196
|
+
"data-slot": "popover",
|
|
197
|
+
...e
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
function X({ ...e }) {
|
|
201
|
+
return /* @__PURE__ */ C(I, {
|
|
202
|
+
"data-slot": "popover-trigger",
|
|
203
|
+
...e
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
function Z({ className: t, align: n = "center", sideOffset: r = 4, ...i }) {
|
|
207
|
+
return /* @__PURE__ */ C(B, { children: /* @__PURE__ */ C(H, {
|
|
208
|
+
"data-slot": "popover-content",
|
|
209
|
+
align: n,
|
|
210
|
+
sideOffset: r,
|
|
211
|
+
className: e("bg-popover text-popover-foreground ring-foreground/10 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-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 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100", t),
|
|
212
|
+
...i
|
|
213
|
+
}) });
|
|
214
|
+
}
|
|
215
|
+
function Q({ ...e }) {
|
|
216
|
+
return /* @__PURE__ */ C(P, {
|
|
217
|
+
"data-slot": "popover-anchor",
|
|
218
|
+
...e
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
function $({ className: t, ...n }) {
|
|
222
|
+
return /* @__PURE__ */ C("div", {
|
|
223
|
+
"data-slot": "popover-header",
|
|
224
|
+
className: e("flex flex-col gap-0.5 text-sm", t),
|
|
225
|
+
...n
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
function ee({ className: t, ...n }) {
|
|
229
|
+
return /* @__PURE__ */ C("div", {
|
|
230
|
+
"data-slot": "popover-title",
|
|
231
|
+
className: e("font-medium", t),
|
|
232
|
+
...n
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
function te({ className: t, ...n }) {
|
|
236
|
+
return /* @__PURE__ */ C("p", {
|
|
237
|
+
"data-slot": "popover-description",
|
|
238
|
+
className: e("text-muted-foreground", t),
|
|
239
|
+
...n
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
//#endregion
|
|
243
|
+
export { $ as a, te as i, Q as n, ee as o, Z as r, X as s, Y as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./dist-BBvidwzC.js"),r=require("./dist-hFLuJoMi.js"),i=require("./dist-DYUvPCPC.js"),a=require("./dist-DZiOPWLp.js"),o=require("./dist-YAADIsyo.js"),s=require("./dist-D7-Fky36.js"),c=require("./dist-C8Pm6LRc.js"),l=require("./dist-BU-TFzJf.js"),u=require("./dist-Qm9hFvM1.js"),d=require("./dist-1zUKVGvf.js"),f=require("./es2015-DbAsWDbs.js"),p=require("./dist-N97cIp0_.js");let m=require("react"),h=e.r(m,1);m=e.r(m);let g=require("react/jsx-runtime");var _=Object.defineProperty,v=(e,t)=>_(e,`name`,{value:t,configurable:!0}),y=`Popover`,[b,x]=i.t(y,[p.a]),S=p.a(),[C,w]=b(y),T=v(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=S(t),u=h.useRef(null),[d,f]=h.useState(!1),[m,_]=h.useState(0),[v,b]=h.useState(0),[x,w]=o.t({prop:r,defaultProp:i??!1,onChange:a,caller:y});return(0,g.jsx)(p.t,{...l,children:(0,g.jsx)(C,{scope:t,contentId:c.t(),titleId:c.t(),descriptionId:c.t(),titlePresent:m>0,descriptionPresent:v>0,setTitleCount:_,setDescriptionCount:b,triggerRef:u,open:x,onOpenChange:w,onOpenToggle:h.useCallback(()=>w(e=>!e),[w]),hasCustomAnchor:d,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:s,children:n})})},`Popover`),E=`PopoverAnchor`,D=h.forwardRef(v(function(e,t){let{__scopePopover:n,...r}=e,i=w(E,n),a=S(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return h.useEffect(()=>(o(),()=>s()),[o,s]),(0,g.jsx)(p.n,{...a,...r,ref:t})},`PopoverAnchor`)),O=`PopoverTrigger`,k=h.forwardRef(v(function(e,t){let{__scopePopover:i,...o}=e,s=w(O,i),c=S(i),l=n.a(t,s.triggerRef),u=(0,g.jsx)(r.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":B(s.open),...o,ref:l,onClick:a.t(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,g.jsx)(p.n,{asChild:!0,...c,children:u})},`PopoverTrigger`)),A=`PopoverPortal`,[j,M]=b(A,{forceMount:void 0}),N=v(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=w(A,t);return(0,g.jsx)(j,{scope:t,forceMount:n,children:(0,g.jsx)(s.t,{present:n||a.open,children:(0,g.jsx)(d.t,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),P=`PopoverContent`,F=h.forwardRef(v(function(e,t){let n=M(P,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=w(P,e.__scopePopover);return(0,g.jsx)(s.t,{present:r||a.open,children:a.modal?(0,g.jsx)(L,{...i,ref:t}):(0,g.jsx)(R,{...i,ref:t})})},`PopoverContent`)),I=n.n(`PopoverContent.RemoveScroll`),L=h.forwardRef(v(function(e,t){let r=w(P,e.__scopePopover),i=h.useRef(null),o=n.a(t,i),s=h.useRef(!1),{nodes:c,registry:l}=u.i();return h.useEffect(()=>{let e=i.current;if(e)return f.t(e)},[]),(0,g.jsx)(f.n,{as:I,allowPinchZoom:!0,shards:h.useMemo(()=>[i,...c.map(e=>({current:e}))],[i,c]),children:(0,g.jsx)(z,{...e,ref:o,branchNodes:c,branchRegistry:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:a.t(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:a.t(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;s.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:a.t(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),R=h.forwardRef(v(function(e,t){let n=w(P,e.__scopePopover),r=h.useRef(!1),i=h.useRef(!1);return(0,g.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),z=h.forwardRef(v(function(e,t){let{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:_,"aria-describedby":v,branchNodes:y,branchRegistry:b,...x}=e,C=w(P,r),T=S(r),[E,D]=h.useState(null),O=n.a(t,D);return u.r(E),f.r(),(0,g.jsx)(u.n,{registry:b,children:(0,g.jsx)(u.t,{asChild:!0,loop:!0,trapped:i,branches:y,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,g.jsx)(l.t,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:_,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:m,onDismiss:()=>C.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,g.jsx)(p.i,{"data-state":B(C.open),role:`dialog`,id:C.contentId,"aria-labelledby":C.titlePresent?C.titleId:void 0,"aria-describedby":C.descriptionPresent?V(v,C.descriptionId):v,...T,...x,ref:O,style:{...x.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`));function B(e){return e?`open`:`closed`}v(B,`getState`);function V(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}v(V,`concatAriaDescribedby`);function H({...e}){return(0,g.jsx)(T,{"data-slot":`popover`,...e})}function U({...e}){return(0,g.jsx)(k,{"data-slot":`popover-trigger`,...e})}function W({className:e,align:n=`center`,sideOffset:r=4,...i}){return(0,g.jsx)(N,{children:(0,g.jsx)(F,{"data-slot":`popover-content`,align:n,sideOffset:r,className:t.t(`bg-popover text-popover-foreground ring-foreground/10 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-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 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100`,e),...i})})}function G({...e}){return(0,g.jsx)(D,{"data-slot":`popover-anchor`,...e})}function K({className:e,...n}){return(0,g.jsx)(`div`,{"data-slot":`popover-header`,className:t.t(`flex flex-col gap-0.5 text-sm`,e),...n})}function q({className:e,...n}){return(0,g.jsx)(`div`,{"data-slot":`popover-title`,className:t.t(`font-medium`,e),...n})}function J({className:e,...n}){return(0,g.jsx)(`p`,{"data-slot":`popover-description`,className:t.t(`text-muted-foreground`,e),...n})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return H}});
|
package/dist/popover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./popover-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./popover-DUHbvKB8.js");exports.Popover=e.t,exports.PopoverAnchor=e.n,exports.PopoverContent=e.r,exports.PopoverDescription=e.i,exports.PopoverHeader=e.a,exports.PopoverTitle=e.o,exports.PopoverTrigger=e.s;
|
package/dist/popover.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
1
|
import { PopoverBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>):
|
|
5
|
-
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>):
|
|
6
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>):
|
|
7
|
-
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>):
|
|
8
|
-
declare function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>):
|
|
9
|
-
declare function PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>):
|
|
10
|
-
declare function PopoverDescription({ className, ...props }: React.ComponentProps<'p'>):
|
|
4
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
|
|
7
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
|
|
8
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
9
|
+
declare function PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>): React.JSX.Element;
|
|
10
|
+
declare function PopoverDescription({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
|
|
11
11
|
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
|
|
12
12
|
export type ___verifyPopoverContract = React.ComponentProps<typeof Popover> extends PopoverBaseProps ? true : false;
|
|
13
13
|
//# sourceMappingURL=popover.d.ts.map
|
package/dist/popover.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../src/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../src/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAEhF;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,qBAE1F;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,qBAevD;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,qBAExF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAE1E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,qBAExE;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,qBAE7E;AAED,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAGnH,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,SAAS,gBAAgB,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
package/dist/popover.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./popover-
|
|
2
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./popover-DSBkc70V.mjs";
|
|
3
3
|
export { o as Popover, n as PopoverAnchor, i as PopoverContent, t as PopoverDescription, e as PopoverHeader, r as PopoverTitle, a as PopoverTrigger };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./dist-hFLuJoMi.js"),r=require("./dist-DYUvPCPC.js");let i=require("react"),a=e.r(i,1);i=e.r(i);let o=require("react/jsx-runtime");var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0}),l=`Progress`,u=100,[d,f]=r.t(l),[p,m]=d(l),h=a.forwardRef(c(function(e,t){let{__scopeProgress:r,value:i=null,max:a,getValueLabel:s=v,...c}=e;(a||a===0)&&!x(a)&&console.error(C(`${a}`,`Progress`));let l=x(a)?a:u;i!==null&&!S(i,l)&&console.error(w(`${i}`,`Progress`));let d=S(i,l)?i:null,f=b(d)?s(d,l):void 0;return(0,o.jsx)(p,{scope:r,value:d,max:l,children:(0,o.jsx)(n.t.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":b(d)?d:void 0,"aria-valuetext":f,role:`progressbar`,"data-state":y(d,l),"data-value":d??void 0,"data-max":l,...c,ref:t})})},`Progress`)),g=`ProgressIndicator`,_=a.forwardRef(c(function(e,t){let{__scopeProgress:r,...i}=e,a=m(g,r);return(0,o.jsx)(n.t.div,{"data-state":y(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...i,ref:t})},`ProgressIndicator`));function v(e,t){return`${Math.round(e/t*100)}%`}c(v,`defaultGetValueLabel`);function y(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}c(y,`getProgressState`);function b(e){return typeof e==`number`}c(b,`isNumber`);function x(e){return b(e)&&!isNaN(e)&&e>0}c(x,`isValidMaxNumber`);function S(e,t){return b(e)&&!isNaN(e)&&e<=t&&e>=0}c(S,`isValidValueNumber`);function C(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${u}\`.`}c(C,`getInvalidMaxError`);function w(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
2
|
+
- a positive number
|
|
3
|
+
- less than the value passed to \`max\` (or ${u} if no \`max\` prop is set)
|
|
4
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
|
+
|
|
6
|
+
Defaulting to \`null\`.`}c(w,`getInvalidValueError`);function T({className:e,value:n,...r}){return(0,o.jsx)(h,{"data-slot":`progress`,value:n,className:t.t(`bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full`,e),...r,children:(0,o.jsx)(_,{"data-slot":`progress-indicator`,className:`bg-primary size-full flex-1 transition-all`,style:{transform:`translateX(-${100-(n||0)}%)`}})})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
2
|
+
import { t } from "./dist-BEbV0Hal.mjs";
|
|
3
|
+
import { t as n } from "./dist-CPAF050o.mjs";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
//#region ../../node_modules/.bun/@radix-ui+react-progress@1.2.1+b146eb580f4286be/node_modules/@radix-ui/react-progress/dist/index.mjs
|
|
7
|
+
var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
8
|
+
value: t,
|
|
9
|
+
configurable: !0
|
|
10
|
+
}), s = "Progress", c = 100, [l, u] = n(s), [d, f] = l(s), p = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ o(function(e, n) {
|
|
11
|
+
let { __scopeProgress: r, value: a = null, max: o, getValueLabel: s = g, ...l } = e;
|
|
12
|
+
(o || o === 0) && !y(o) && console.error(x(`${o}`, "Progress"));
|
|
13
|
+
let u = y(o) ? o : c;
|
|
14
|
+
a !== null && !b(a, u) && console.error(S(`${a}`, "Progress"));
|
|
15
|
+
let f = b(a, u) ? a : null, p = v(f) ? s(f, u) : void 0;
|
|
16
|
+
return /* @__PURE__ */ i(d, {
|
|
17
|
+
scope: r,
|
|
18
|
+
value: f,
|
|
19
|
+
max: u,
|
|
20
|
+
children: /* @__PURE__ */ i(t.div, {
|
|
21
|
+
"aria-valuemax": u,
|
|
22
|
+
"aria-valuemin": 0,
|
|
23
|
+
"aria-valuenow": v(f) ? f : void 0,
|
|
24
|
+
"aria-valuetext": p,
|
|
25
|
+
role: "progressbar",
|
|
26
|
+
"data-state": _(f, u),
|
|
27
|
+
"data-value": f ?? void 0,
|
|
28
|
+
"data-max": u,
|
|
29
|
+
...l,
|
|
30
|
+
ref: n
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
}, "Progress")), m = "ProgressIndicator", h = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ o(function(e, n) {
|
|
34
|
+
let { __scopeProgress: r, ...a } = e, o = f(m, r);
|
|
35
|
+
return /* @__PURE__ */ i(t.div, {
|
|
36
|
+
"data-state": _(o.value, o.max),
|
|
37
|
+
"data-value": o.value ?? void 0,
|
|
38
|
+
"data-max": o.max,
|
|
39
|
+
...a,
|
|
40
|
+
ref: n
|
|
41
|
+
});
|
|
42
|
+
}, "ProgressIndicator"));
|
|
43
|
+
function g(e, t) {
|
|
44
|
+
return `${Math.round(e / t * 100)}%`;
|
|
45
|
+
}
|
|
46
|
+
o(g, "defaultGetValueLabel");
|
|
47
|
+
function _(e, t) {
|
|
48
|
+
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
49
|
+
}
|
|
50
|
+
o(_, "getProgressState");
|
|
51
|
+
function v(e) {
|
|
52
|
+
return typeof e == "number";
|
|
53
|
+
}
|
|
54
|
+
o(v, "isNumber");
|
|
55
|
+
function y(e) {
|
|
56
|
+
return v(e) && !isNaN(e) && e > 0;
|
|
57
|
+
}
|
|
58
|
+
o(y, "isValidMaxNumber");
|
|
59
|
+
function b(e, t) {
|
|
60
|
+
return v(e) && !isNaN(e) && e <= t && e >= 0;
|
|
61
|
+
}
|
|
62
|
+
o(b, "isValidValueNumber");
|
|
63
|
+
function x(e, t) {
|
|
64
|
+
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${c}\`.`;
|
|
65
|
+
}
|
|
66
|
+
o(x, "getInvalidMaxError");
|
|
67
|
+
function S(e, t) {
|
|
68
|
+
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
69
|
+
- a positive number
|
|
70
|
+
- less than the value passed to \`max\` (or ${c} if no \`max\` prop is set)
|
|
71
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
72
|
+
|
|
73
|
+
Defaulting to \`null\`.`;
|
|
74
|
+
}
|
|
75
|
+
o(S, "getInvalidValueError");
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/progress.tsx
|
|
78
|
+
function C({ className: t, value: n, ...r }) {
|
|
79
|
+
return /* @__PURE__ */ i(p, {
|
|
80
|
+
"data-slot": "progress",
|
|
81
|
+
value: n,
|
|
82
|
+
className: e("bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full", t),
|
|
83
|
+
...r,
|
|
84
|
+
children: /* @__PURE__ */ i(h, {
|
|
85
|
+
"data-slot": "progress-indicator",
|
|
86
|
+
className: "bg-primary size-full flex-1 transition-all",
|
|
87
|
+
style: { transform: `translateX(-${100 - (n || 0)}%)` }
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
export { C as t };
|
package/dist/progress.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./progress-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./progress-B9z08UXf.js");exports.Progress=e.t;
|
package/dist/progress.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Progress as ProgressPrimitive } from 'radix-ui';
|
|
2
1
|
import { ProgressBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { Progress as ProgressPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>):
|
|
4
|
+
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
export { Progress };
|
|
6
6
|
export type ___verifyProgressContract = React.ComponentProps<typeof Progress> extends ProgressBaseProps ? true : false;
|
|
7
7
|
//# sourceMappingURL=progress.d.ts.map
|
package/dist/progress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../src/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../src/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,qBAepG;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC;AAGpB,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,SAAS,iBAAiB,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
package/dist/progress.mjs
CHANGED