@gv-tech/ui-web 2.22.2 → 2.23.0
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/accordion-Dd8Hrexd.mjs +244 -0
- package/dist/accordion-DdSOiVyo.js +1 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +5 -7
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -2
- package/dist/alert-dialog-B7zX3gJX.js +7 -0
- package/dist/alert-dialog-BQoG5g_w.mjs +213 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +17 -21
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.mjs +2 -4
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +8 -8
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +37 -29
- package/dist/{aspect-ratio-CFWobEnT.mjs → aspect-ratio-DnChDaBi.mjs} +10 -4
- package/dist/{aspect-ratio-D9dApiWv.js → aspect-ratio-QD1ZXP2B.js} +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +2 -4
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/aspect-ratio.mjs +1 -1
- package/dist/avatar-C4onD8-4.mjs +127 -0
- package/dist/avatar-ki_M47qG.js +1 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +10 -7
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.mjs +2 -3
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +4 -5
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.mjs +17 -13
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +9 -17
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.mjs +67 -58
- package/dist/button-group.cjs +1 -0
- package/dist/button-group.d.ts +11 -0
- package/dist/button-group.d.ts.map +1 -0
- package/dist/button-group.mjs +39 -0
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +3 -5
- package/dist/button.d.ts.map +1 -1
- package/dist/button.mjs +33 -26
- package/dist/calendar-D9sapvfY.js +1 -0
- package/dist/{calendar-DtFx4qdT.mjs → calendar-Dg6VGycy.mjs} +631 -625
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +5 -5
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.mjs +1 -2
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +10 -10
- package/dist/card.d.ts.map +1 -1
- package/dist/card.mjs +53 -40
- package/dist/carousel-6oFHLN7R.js +1 -0
- package/dist/{carousel-PQJ97GjQ.mjs → carousel-DbDoNdqJ.mjs} +54 -59
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +18 -13
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.mjs +2 -4
- package/dist/chart.cjs +3 -3
- package/dist/chart.d.ts +35 -7
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.mjs +64 -71
- package/dist/checkbox-BLgY82mB.js +1 -0
- package/dist/{checkbox-BOmSuATv.mjs → checkbox-Bts_zfqd.mjs} +32 -29
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +2 -5
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.mjs +1 -2
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +4 -6
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.mjs +21 -3
- package/dist/combobox-6qNx9Wbb.js +4 -0
- package/dist/combobox-yDMqxM_J.mjs +5522 -0
- package/dist/combobox.cjs +1 -0
- package/dist/combobox.d.ts +21 -0
- package/dist/combobox.d.ts.map +1 -0
- package/dist/combobox.mjs +4 -0
- package/dist/command-C6wJ5giF.mjs +576 -0
- package/dist/command-DCrPL1iW.js +1 -0
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +16 -80
- package/dist/command.d.ts.map +1 -1
- package/dist/command.mjs +1 -2
- package/dist/context-menu-CydUpD4W.mjs +349 -0
- package/dist/context-menu-DQ7XuuG5.js +1 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +29 -21
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.mjs +1 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +15 -17
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.mjs +89 -43
- package/dist/direction.cjs +1 -0
- package/dist/direction.d.ts +7 -0
- package/dist/direction.d.ts.map +1 -0
- package/dist/direction.mjs +15 -0
- package/dist/dist-1C8JOpVg.js +1 -0
- package/dist/{dist-CTaBktQl.mjs → dist-B1OcuinL.mjs} +93 -92
- package/dist/dist-BGZDG175.mjs +199 -0
- package/dist/dist-BPBwSSyk.mjs +8 -0
- package/dist/{dist-BTlmz3JV.js → dist-BPX1UGAz2.js} +1 -1
- package/dist/dist-BRsDdVlJ.js +1 -0
- package/dist/{dist-_LAgxsbh.mjs → dist-BWwCr-xN.mjs} +10 -9
- package/dist/dist-BYdcKuDi.mjs +16 -0
- package/dist/{dist-DCKyUINZ.mjs → dist-BlB11V_z.mjs} +1 -1
- package/dist/dist-CCXBcfM3.js +1 -0
- package/dist/{dist--EFQaGUD.mjs → dist-CDU9vno-.mjs} +4 -4
- package/dist/dist-CJolxugc.js +1 -0
- package/dist/dist-CQhWBhaI.mjs +91 -0
- package/dist/dist-CRLbUj9C.js +1 -0
- package/dist/dist-CWElW7UD.js +1 -0
- package/dist/{dist-NIAlh3KC.js → dist-CXbzwSnE.js} +1 -1
- package/dist/{dist-C5EZ0AD6.mjs → dist-CYj6O95k.mjs} +42 -41
- package/dist/{dist-Bjlzl0jN.mjs → dist-Cacc4QIh.mjs} +13 -10
- package/dist/dist-ChuP-5Gb.js +1 -0
- package/dist/dist-CiM892Rg.js +1 -0
- package/dist/{dist-Doq7FY_P.js → dist-CuMQq0hV.js} +1 -1
- package/dist/dist-DMnXk8Uo.js +1 -0
- package/dist/{dist-CRmJFaEL.mjs → dist-DPBTfUqI.mjs} +18 -17
- package/dist/dist-DR0lXVFG.js +1 -0
- package/dist/dist-Da7BU5sd.js +5 -0
- package/dist/{dist-D_tuvB-W.mjs → dist-Dz3LbuDd.mjs} +8 -9
- package/dist/{dist-9gQKRtL7.mjs → dist-GhACpuJb2.mjs} +1 -1
- package/dist/dist-o4zlRoDG.js +1 -0
- package/dist/{dist-DdVp13bp.mjs → dist-rGeQfsgN.mjs} +1 -1
- package/dist/{dist-BQOrag93.mjs → dist-tvb2Wafb.mjs} +22 -21
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +10 -21
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +74 -45
- package/dist/dropdown-menu-BoJvZ3Fj.js +1 -0
- package/dist/dropdown-menu-CriaO1_i.mjs +347 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +27 -21
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.mjs +1 -1
- package/dist/empty.cjs +1 -0
- package/dist/empty.d.ts +13 -0
- package/dist/empty.d.ts.map +1 -0
- package/dist/empty.mjs +60 -0
- package/dist/{es2015-DkZq_IIO.mjs → es2015-BhmbVcui.mjs} +2 -2
- package/dist/{es2015-Ca60p53M.js → es2015-D22cM8Q_.js} +1 -1
- package/dist/field.cjs +1 -0
- package/dist/field.d.ts +18 -0
- package/dist/field.d.ts.map +1 -0
- package/dist/field.mjs +109 -0
- package/dist/floating-ui.react-dom-DgS_bqyY.mjs +1089 -0
- package/dist/floating-ui.react-dom-DpCJEf_x.js +1 -0
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +8 -8
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-theme.d.ts +16 -0
- package/dist/hooks/use-theme.d.ts.map +1 -1
- package/dist/{hover-card-BOk3-K0k.mjs → hover-card-CJ-ibpbC.mjs} +53 -33
- package/dist/hover-card-CK5SjVLL.js +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +4 -6
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.mjs +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +14 -43
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +66 -54
- package/dist/input-group.cjs +1 -0
- package/dist/input-group.d.ts +18 -0
- package/dist/input-group.d.ts.map +1 -0
- package/dist/input-group.mjs +78 -0
- package/dist/input-otp-BH_9dVhh.mjs +391 -0
- package/dist/input-otp-BibboKMt.js +20 -0
- package/dist/input-otp.cjs +1 -0
- package/dist/input-otp.d.ts +9 -0
- package/dist/input-otp.d.ts.map +1 -0
- package/dist/input-otp.mjs +4 -0
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +1 -4
- package/dist/input.d.ts.map +1 -1
- package/dist/input.mjs +11 -11
- package/dist/item.cjs +1 -0
- package/dist/item.d.ts +25 -0
- package/dist/item.d.ts.map +1 -0
- package/dist/item.mjs +118 -0
- package/dist/kbd.cjs +1 -0
- package/dist/kbd.d.ts +5 -0
- package/dist/kbd.d.ts.map +1 -0
- package/dist/kbd.mjs +20 -0
- package/dist/label-BXMSoyyu.js +1 -0
- package/dist/label-C8GNfPU0.mjs +25 -0
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +2 -5
- package/dist/label.d.ts.map +1 -1
- package/dist/label.mjs +1 -2
- package/dist/menubar-BcyqIJgy.mjs +441 -0
- package/dist/menubar-DPxokWFI.js +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +25 -19
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -1
- package/dist/native-select.cjs +1 -0
- package/dist/native-select.d.ts +8 -0
- package/dist/native-select.d.ts.map +1 -0
- package/dist/native-select.mjs +39 -0
- package/dist/navigation-menu-2yE2MUu-.js +1 -0
- package/dist/navigation-menu-N8gkxEXE.mjs +628 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +11 -11
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.mjs +1 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +13 -26
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +76 -59
- package/dist/popover-D1AO-E8p.js +1 -0
- package/dist/popover-wQACF3ut.mjs +245 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +9 -8
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +2 -3
- package/dist/{progress-30ehxjKg.mjs → progress-DPWSEWa5.mjs} +19 -14
- package/dist/{progress-BqWHea4f.js → progress-ShXZwOfj.js} +2 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +2 -4
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.mjs +1 -1
- package/dist/radio-group-CQbZCQmj.mjs +199 -0
- package/dist/radio-group-DAEi5vW_.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +3 -8
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.mjs +1 -2
- package/dist/resizable-Cv-mKMKP.js +1 -0
- package/dist/{resizable-DhOcAmNX.mjs → resizable-DJSE3e5L.mjs} +310 -282
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +6 -7
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/{scroll-area-DJcPs0_v.mjs → scroll-area-8QcqkHnC.mjs} +69 -58
- package/dist/scroll-area-Cqqinhxf.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +3 -5
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.mjs +1 -2
- 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 +15 -14
- package/dist/select-DdUveoSA.js +1 -0
- package/dist/{select-D4bxRFq5.mjs → select-yoeH35x2.mjs} +279 -245
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +13 -13
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -1
- package/dist/{separator-DZACUutC.mjs → separator-BU1ea5gl.mjs} +14 -10
- package/dist/separator-DBjErwHf.js +1 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +2 -4
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.mjs +1 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +13 -26
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +84 -54
- package/dist/shim-B5sEfNEJ.js +1 -0
- package/dist/shim-DX33EwUw.mjs +91 -0
- package/dist/sidebar-B-sWccYh.mjs +355 -0
- package/dist/sidebar-DIW-1cin.js +1 -0
- package/dist/sidebar.cjs +1 -0
- package/dist/sidebar.d.ts +45 -0
- package/dist/sidebar.d.ts.map +1 -0
- package/dist/sidebar.mjs +5 -0
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +1 -4
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/{slider-DTdrUy_s.mjs → slider-CCPXejUF.mjs} +81 -59
- package/dist/slider-w05gD_Ix.js +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +2 -4
- 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 +1 -5
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.mjs +23 -16
- package/dist/spinner.cjs +1 -0
- package/dist/spinner.d.ts +4 -0
- package/dist/spinner.d.ts.map +1 -0
- package/dist/spinner.mjs +15 -0
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +1 -1
- package/dist/switch-CDBqsWQa.mjs +112 -0
- package/dist/switch-X2WBJsUu.js +1 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +4 -4
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +8 -10
- package/dist/table.d.ts.map +1 -1
- package/dist/table.mjs +62 -54
- package/dist/tabs-DzvgrVzk.js +1 -0
- package/dist/tabs-KDeHjVQU.mjs +160 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +10 -8
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.mjs +2 -2
- package/dist/text.d.ts +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +1 -4
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.mjs +10 -10
- package/dist/{theme-toggle-Dtze9fyN.js → theme-toggle-C2Y4bIM3.js} +1 -1
- package/dist/{theme-toggle-DAHBgdy0.mjs → theme-toggle-clE-HpSS.mjs} +9 -9
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +1 -2
- package/dist/toast-1keyrzem.js +1 -0
- package/dist/{toast-G9LdgDDE.mjs → toast-DVI6jPq5.mjs} +102 -101
- package/dist/toast.cjs +1 -1
- package/dist/toast.d.ts.map +1 -1
- package/dist/toast.mjs +1 -1
- package/dist/{toaster-WQJjavlc.mjs → toaster-Czhz-ktg.mjs} +1 -1
- package/dist/{toaster-CKD4CKAZ.js → toaster-DfDb2-aI.js} +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +1 -1
- package/dist/toggle-BGkq5XDM.js +1 -0
- package/dist/toggle-BfIIdlA6.mjs +58 -0
- package/dist/toggle-group-CbqgoPFU.mjs +167 -0
- package/dist/toggle-group-D7hR4BT2.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +7 -9
- 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 +6 -5
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.mjs +2 -19
- package/dist/tooltip-CAIbshMk.js +1 -0
- package/dist/{tooltip-BHEcM7lO.mjs → tooltip-D_o8Z-Ya.mjs} +106 -90
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +5 -10
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +8 -6
- package/src/accordion.tsx +58 -51
- package/src/alert-dialog.tsx +140 -93
- package/src/alert.tsx +44 -33
- package/src/aspect-ratio.tsx +10 -4
- package/src/avatar.tsx +92 -37
- package/src/badge.tsx +24 -14
- package/src/breadcrumb.tsx +73 -85
- package/src/button-group.tsx +78 -0
- package/src/button.tsx +46 -24
- package/src/calendar.tsx +52 -40
- package/src/card.tsx +67 -42
- package/src/carousel.tsx +164 -174
- package/src/chart.tsx +206 -232
- package/src/checkbox.tsx +17 -17
- package/src/collapsible.tsx +16 -10
- package/src/combobox.tsx +282 -0
- package/src/command.tsx +123 -120
- package/src/context-menu.tsx +206 -179
- package/src/dialog.tsx +111 -65
- package/src/direction.tsx +18 -0
- package/src/drawer.tsx +75 -78
- package/src/dropdown-menu.tsx +211 -180
- package/src/empty.tsx +83 -0
- package/src/field.tsx +217 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/hover-card.tsx +33 -27
- package/src/index.ts +108 -154
- package/src/input-group.tsx +143 -0
- package/src/input-otp.tsx +81 -0
- package/src/input.tsx +8 -8
- package/src/item.tsx +185 -0
- package/src/kbd.tsx +21 -0
- package/src/label.tsx +17 -14
- package/src/menubar.tsx +211 -199
- package/src/native-select.tsx +54 -0
- package/src/navigation-menu.tsx +115 -110
- package/src/pagination.tsx +65 -80
- package/src/popover.tsx +53 -41
- package/src/progress.tsx +22 -20
- package/src/radio-group.tsx +22 -34
- package/src/resizable.tsx +34 -49
- package/src/scroll-area.tsx +43 -35
- package/src/search.tsx +12 -9
- package/src/select.tsx +138 -133
- package/src/separator.tsx +25 -18
- package/src/sheet.tsx +97 -127
- package/src/sidebar.tsx +660 -0
- package/src/skeleton.tsx +7 -6
- package/src/slider.tsx +51 -19
- package/src/sonner.tsx +22 -12
- package/src/spinner.tsx +10 -0
- package/src/support-fab.tsx +1 -1
- package/src/switch.tsx +28 -21
- package/src/table.tsx +61 -87
- package/src/tabs.tsx +75 -56
- package/src/textarea.tsx +8 -10
- package/src/toast.tsx +5 -0
- package/src/toggle-group.tsx +76 -40
- package/src/toggle.tsx +35 -15
- package/src/tooltip.tsx +41 -43
- package/dist/accordion-BTF24dQU.js +0 -1
- package/dist/accordion-DHTV2Am8.mjs +0 -221
- package/dist/alert-dialog-Bwn2-Uyf.mjs +0 -164
- package/dist/alert-dialog-DBMX5E0-.js +0 -7
- package/dist/avatar-BI7s8omb.js +0 -1
- package/dist/avatar-hzlewncL.mjs +0 -185
- package/dist/calendar-ykdYhTj9.js +0 -1
- package/dist/carousel-DSmAn1nc.js +0 -1
- package/dist/checkbox-dK6DJKeV.js +0 -1
- package/dist/command-CDSbHz4C.js +0 -1
- package/dist/command-j0rZqZ7B.mjs +0 -531
- package/dist/context-menu-BWgLbKLP.js +0 -1
- package/dist/context-menu-CWSzssAO.mjs +0 -292
- package/dist/dist-B28N93_W.js +0 -1
- package/dist/dist-B43Kk7ii.js +0 -1
- package/dist/dist-BTPL2C0R.js +0 -1
- package/dist/dist-BjEG16aJ.mjs +0 -111
- package/dist/dist-BlKAvKHD.js +0 -1
- package/dist/dist-C3Z3atn0.mjs +0 -10
- package/dist/dist-C4q8IPk4.mjs +0 -28
- package/dist/dist-CPglx4om.js +0 -1
- package/dist/dist-CV2U2xFR.js +0 -1
- package/dist/dist-Cv9YaN1n.mjs +0 -61
- package/dist/dist-DAe-fOIM.mjs +0 -25
- package/dist/dist-DQAJMTj0.js +0 -1
- package/dist/dist-DaCPM8ia.js +0 -1
- package/dist/dist-DasmYflz.js +0 -1
- package/dist/dist-DneYUKe0.js +0 -1
- package/dist/dist-Du2jbEkG.mjs +0 -1282
- package/dist/dist-Dw6-GQAn.js +0 -1
- package/dist/dist-DwGlbIjj.js +0 -5
- package/dist/dist-Dzjlf9ug.js +0 -1
- package/dist/dist-GaBUW_Tu.js +0 -1
- package/dist/dropdown-menu-Bz5LlLjl.js +0 -1
- package/dist/dropdown-menu-Cp1qpOLk.mjs +0 -288
- package/dist/hover-card-CyKIuXGH.js +0 -1
- package/dist/label-DGuuPl_e.mjs +0 -22
- package/dist/label-gVkdll-j.js +0 -1
- package/dist/menubar-DNrIQhY5.mjs +0 -410
- package/dist/menubar-DkjAo6qJ.js +0 -1
- package/dist/navigation-menu-1cmCEi0j.mjs +0 -602
- package/dist/navigation-menu-qPt8hpr5.js +0 -1
- package/dist/popover-CbM1tqdC.mjs +0 -201
- package/dist/popover-DGTgqdKX.js +0 -1
- package/dist/radio-group-BGThTiQM.mjs +0 -193
- package/dist/radio-group-ClFpAswm.js +0 -1
- package/dist/resizable-D09wr7tV.js +0 -1
- package/dist/scroll-area-W_aOLOdE.js +0 -1
- package/dist/select-BQtkQBiD.js +0 -1
- package/dist/separator-BmkhoDge.js +0 -1
- package/dist/slider-Bkluwc3b.js +0 -1
- package/dist/switch-DENAxyga.js +0 -1
- package/dist/switch-DbsdyQVg.mjs +0 -103
- package/dist/tabs-C9sMowgZ.mjs +0 -136
- package/dist/tabs-DeK-zpy4.js +0 -1
- package/dist/toast-BtXY2QTe.js +0 -1
- package/dist/toggle-group-B0H9TwdD.mjs +0 -155
- package/dist/toggle-group-CAyztsIl.js +0 -1
- package/dist/tooltip-CKcMl7tK.js +0 -1
- /package/dist/{dist-C_45sBzc.js → dist-C_45sBzc2.js} +0 -0
- /package/dist/{dist-DGzGsPqo.mjs → dist-DGzGsPqo2.mjs} +0 -0
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { n } from "./dist-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { r as
|
|
2
|
+
import { a as t } from "./dist-CQhWBhaI.mjs";
|
|
3
|
+
import { n, t as r } from "./dist-Cacc4QIh.mjs";
|
|
4
|
+
import { r as i } from "./dist-BlB11V_z.mjs";
|
|
5
|
+
import { n as a } from "./dist-Bm8Cuttq.mjs";
|
|
6
|
+
import { t as o } from "./dist-Dz3LbuDd.mjs";
|
|
7
|
+
import { t as s } from "./dist-BPBwSSyk.mjs";
|
|
8
|
+
import { t as c } from "./dist-C9PlF532.mjs";
|
|
9
|
+
import { t as l } from "./dist-DuTFGM_g.mjs";
|
|
10
|
+
import { t as u } from "./dist-rGeQfsgN.mjs";
|
|
11
|
+
import { t as d } from "./dist-CCokLFyA.mjs";
|
|
12
|
+
import { r as f, t as p } from "./dist-BWwCr-xN.mjs";
|
|
13
|
+
import { t as m } from "./dist-CDU9vno-.mjs";
|
|
13
14
|
import * as h from "react";
|
|
15
|
+
import * as ee from "react-dom";
|
|
14
16
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import { cva as x } from "class-variance-authority";
|
|
17
|
+
import { X as y } from "lucide-react";
|
|
18
|
+
import { cva as b } from "class-variance-authority";
|
|
18
19
|
//#region ../../node_modules/.bun/@radix-ui+react-toast@1.2.15+2d3f272c3a65784a/node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
19
|
-
var
|
|
20
|
+
var x = "ToastProvider", [S, C, w] = o("Toast"), [T, E] = a("Toast", [w]), [D, O] = T(x), k = (e) => {
|
|
20
21
|
let { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: i = "right", swipeThreshold: a = 50, children: o } = e, [s, c] = h.useState(null), [l, u] = h.useState(0), d = h.useRef(!1), f = h.useRef(!1);
|
|
21
|
-
return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${
|
|
22
|
+
return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${x}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ _(S.Provider, {
|
|
22
23
|
scope: t,
|
|
23
24
|
children: /* @__PURE__ */ _(D, {
|
|
24
25
|
scope: t,
|
|
@@ -37,17 +38,17 @@ var S = "ToastProvider", [C, ee, w] = o("Toast"), [T, E] = t("Toast", [w]), [D,
|
|
|
37
38
|
})
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
|
-
k.displayName =
|
|
41
|
-
var A = "ToastViewport", j = ["F8"], M = "toast.viewportPause", N = "toast.viewportResume", P = h.forwardRef((e,
|
|
42
|
-
let { __scopeToast:
|
|
41
|
+
k.displayName = x;
|
|
42
|
+
var A = "ToastViewport", j = ["F8"], M = "toast.viewportPause", N = "toast.viewportResume", P = h.forwardRef((e, n) => {
|
|
43
|
+
let { __scopeToast: i, hotkey: a = j, label: o = "Notifications ({hotkey})", ...s } = e, c = O(A, i), l = C(i), u = h.useRef(null), d = h.useRef(null), f = h.useRef(null), m = h.useRef(null), ee = t(n, m, c.onViewportChange), g = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = c.toastCount > 0;
|
|
43
44
|
h.useEffect(() => {
|
|
44
45
|
let e = (e) => {
|
|
45
|
-
|
|
46
|
+
a.length !== 0 && a.every((t) => e[t] || e.code === t) && m.current?.focus();
|
|
46
47
|
};
|
|
47
48
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
48
|
-
}, [
|
|
49
|
+
}, [a]), h.useEffect(() => {
|
|
49
50
|
let e = u.current, t = m.current;
|
|
50
|
-
if (
|
|
51
|
+
if (y && e && t) {
|
|
51
52
|
let n = () => {
|
|
52
53
|
if (!c.isClosePausedRef.current) {
|
|
53
54
|
let e = new CustomEvent(M);
|
|
@@ -67,8 +68,8 @@ var A = "ToastViewport", j = ["F8"], M = "toast.viewportPause", N = "toast.viewp
|
|
|
67
68
|
e.removeEventListener("focusin", n), e.removeEventListener("focusout", i), e.removeEventListener("pointermove", n), e.removeEventListener("pointerleave", a), window.removeEventListener("blur", n), window.removeEventListener("focus", r);
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
|
-
}, [
|
|
71
|
-
let
|
|
71
|
+
}, [y, c.isClosePausedRef]);
|
|
72
|
+
let b = h.useCallback(({ tabbingDirection: e }) => {
|
|
72
73
|
let t = l().map((t) => {
|
|
73
74
|
let n = t.ref.current, r = [n, ...le(n)];
|
|
74
75
|
return e === "forwards" ? r : r.reverse();
|
|
@@ -86,37 +87,37 @@ var A = "ToastViewport", j = ["F8"], M = "toast.viewportPause", N = "toast.viewp
|
|
|
86
87
|
d.current?.focus();
|
|
87
88
|
return;
|
|
88
89
|
}
|
|
89
|
-
let i =
|
|
90
|
-
$(i.slice(a + 1)) ? t.preventDefault() : r ? d.current?.focus() :
|
|
90
|
+
let i = b({ tabbingDirection: r ? "backwards" : "forwards" }), a = i.findIndex((e) => e === n);
|
|
91
|
+
$(i.slice(a + 1)) ? t.preventDefault() : r ? d.current?.focus() : f.current?.focus();
|
|
91
92
|
}
|
|
92
93
|
};
|
|
93
94
|
return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
|
|
94
95
|
}
|
|
95
|
-
}, [l,
|
|
96
|
+
}, [l, b]), /* @__PURE__ */ v(p, {
|
|
96
97
|
ref: u,
|
|
97
98
|
role: "region",
|
|
98
|
-
"aria-label": o.replace("{hotkey}",
|
|
99
|
+
"aria-label": o.replace("{hotkey}", g),
|
|
99
100
|
tabIndex: -1,
|
|
100
|
-
style: { pointerEvents:
|
|
101
|
+
style: { pointerEvents: y ? void 0 : "none" },
|
|
101
102
|
children: [
|
|
102
|
-
|
|
103
|
+
y && /* @__PURE__ */ _(I, {
|
|
103
104
|
ref: d,
|
|
104
105
|
onFocusFromOutsideViewport: () => {
|
|
105
|
-
$(
|
|
106
|
+
$(b({ tabbingDirection: "forwards" }));
|
|
106
107
|
}
|
|
107
108
|
}),
|
|
108
|
-
/* @__PURE__ */ _(
|
|
109
|
-
scope:
|
|
110
|
-
children: /* @__PURE__ */ _(
|
|
109
|
+
/* @__PURE__ */ _(S.Slot, {
|
|
110
|
+
scope: i,
|
|
111
|
+
children: /* @__PURE__ */ _(r.ol, {
|
|
111
112
|
tabIndex: -1,
|
|
112
113
|
...s,
|
|
113
|
-
ref:
|
|
114
|
+
ref: ee
|
|
114
115
|
})
|
|
115
116
|
}),
|
|
116
|
-
|
|
117
|
-
ref:
|
|
117
|
+
y && /* @__PURE__ */ _(I, {
|
|
118
|
+
ref: f,
|
|
118
119
|
onFocusFromOutsideViewport: () => {
|
|
119
|
-
$(
|
|
120
|
+
$(b({ tabbingDirection: "backwards" }));
|
|
120
121
|
}
|
|
121
122
|
})
|
|
122
123
|
]
|
|
@@ -124,46 +125,46 @@ var A = "ToastViewport", j = ["F8"], M = "toast.viewportPause", N = "toast.viewp
|
|
|
124
125
|
});
|
|
125
126
|
P.displayName = A;
|
|
126
127
|
var F = "ToastFocusProxy", I = h.forwardRef((e, t) => {
|
|
127
|
-
let { __scopeToast: n, onFocusFromOutsideViewport: r, ...
|
|
128
|
-
return /* @__PURE__ */ _(
|
|
128
|
+
let { __scopeToast: n, onFocusFromOutsideViewport: r, ...a } = e, o = O(F, n);
|
|
129
|
+
return /* @__PURE__ */ _(i, {
|
|
129
130
|
tabIndex: 0,
|
|
130
|
-
...
|
|
131
|
+
...a,
|
|
131
132
|
ref: t,
|
|
132
133
|
style: { position: "fixed" },
|
|
133
134
|
onFocus: (e) => {
|
|
134
135
|
let t = e.relatedTarget;
|
|
135
|
-
|
|
136
|
+
o.viewport?.contains(t) || r();
|
|
136
137
|
}
|
|
137
138
|
});
|
|
138
139
|
});
|
|
139
140
|
I.displayName = F;
|
|
140
141
|
var L = "Toast", te = "toast.swipeStart", ne = "toast.swipeMove", re = "toast.swipeCancel", ie = "toast.swipeEnd", R = h.forwardRef((e, t) => {
|
|
141
|
-
let { forceMount: n, open: r, defaultOpen:
|
|
142
|
+
let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [c, f] = l({
|
|
142
143
|
prop: r,
|
|
143
|
-
defaultProp:
|
|
144
|
-
onChange:
|
|
144
|
+
defaultProp: i ?? !0,
|
|
145
|
+
onChange: a,
|
|
145
146
|
caller: L
|
|
146
147
|
});
|
|
147
|
-
return /* @__PURE__ */ _(
|
|
148
|
-
present: n ||
|
|
148
|
+
return /* @__PURE__ */ _(u, {
|
|
149
|
+
present: n || c,
|
|
149
150
|
children: /* @__PURE__ */ _(B, {
|
|
150
|
-
open:
|
|
151
|
-
...
|
|
151
|
+
open: c,
|
|
152
|
+
...o,
|
|
152
153
|
ref: t,
|
|
153
154
|
onClose: () => f(!1),
|
|
154
|
-
onPause:
|
|
155
|
-
onResume:
|
|
156
|
-
onSwipeStart:
|
|
155
|
+
onPause: d(e.onPause),
|
|
156
|
+
onResume: d(e.onResume),
|
|
157
|
+
onSwipeStart: s(e.onSwipeStart, (e) => {
|
|
157
158
|
e.currentTarget.setAttribute("data-swipe", "start");
|
|
158
159
|
}),
|
|
159
|
-
onSwipeMove:
|
|
160
|
+
onSwipeMove: s(e.onSwipeMove, (e) => {
|
|
160
161
|
let { x: t, y: n } = e.detail.delta;
|
|
161
162
|
e.currentTarget.setAttribute("data-swipe", "move"), e.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${n}px`);
|
|
162
163
|
}),
|
|
163
|
-
onSwipeCancel:
|
|
164
|
+
onSwipeCancel: s(e.onSwipeCancel, (e) => {
|
|
164
165
|
e.currentTarget.setAttribute("data-swipe", "cancel"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
165
166
|
}),
|
|
166
|
-
onSwipeEnd:
|
|
167
|
+
onSwipeEnd: s(e.onSwipeEnd, (e) => {
|
|
167
168
|
let { x: t, y: n } = e.detail.delta;
|
|
168
169
|
e.currentTarget.setAttribute("data-swipe", "end"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${n}px`), f(!1);
|
|
169
170
|
})
|
|
@@ -171,8 +172,8 @@ var L = "Toast", te = "toast.swipeStart", ne = "toast.swipeMove", re = "toast.sw
|
|
|
171
172
|
});
|
|
172
173
|
});
|
|
173
174
|
R.displayName = L;
|
|
174
|
-
var [ae, z] = T(L, { onClose() {} }), B = h.forwardRef((e,
|
|
175
|
-
let { __scopeToast:
|
|
175
|
+
var [ae, z] = T(L, { onClose() {} }), B = h.forwardRef((e, n) => {
|
|
176
|
+
let { __scopeToast: i, type: a = "foreground", duration: o, open: c, onClose: l, onEscapeKeyDown: u, onPause: p, onResume: m, onSwipeStart: y, onSwipeMove: b, onSwipeCancel: x, onSwipeEnd: C, ...w } = e, T = O(L, i), [E, D] = h.useState(null), k = t(n, (e) => D(e)), A = h.useRef(null), j = h.useRef(null), P = o || T.duration, F = h.useRef(0), I = h.useRef(P), R = h.useRef(0), { onToastAdd: z, onToastRemove: B } = T, V = d(() => {
|
|
176
177
|
E?.contains(document.activeElement) && T.viewport?.focus(), l();
|
|
177
178
|
}), H = h.useCallback((e) => {
|
|
178
179
|
!e || e === Infinity || (window.clearTimeout(R.current), F.current = (/* @__PURE__ */ new Date()).getTime(), R.current = window.setTimeout(V, e));
|
|
@@ -206,21 +207,21 @@ var [ae, z] = T(L, { onClose() {} }), B = h.forwardRef((e, t) => {
|
|
|
206
207
|
]), h.useEffect(() => (z(), () => B()), [z, B]);
|
|
207
208
|
let U = h.useMemo(() => E ? X(E) : null, [E]);
|
|
208
209
|
return T.viewport ? /* @__PURE__ */ v(g, { children: [U && /* @__PURE__ */ _(oe, {
|
|
209
|
-
__scopeToast:
|
|
210
|
+
__scopeToast: i,
|
|
210
211
|
role: "status",
|
|
211
|
-
"aria-live":
|
|
212
|
+
"aria-live": a === "foreground" ? "assertive" : "polite",
|
|
212
213
|
children: U
|
|
213
214
|
}), /* @__PURE__ */ _(ae, {
|
|
214
|
-
scope:
|
|
215
|
+
scope: i,
|
|
215
216
|
onClose: V,
|
|
216
|
-
children:
|
|
217
|
-
scope:
|
|
218
|
-
children: /* @__PURE__ */ _(
|
|
217
|
+
children: ee.createPortal(/* @__PURE__ */ _(S.ItemSlot, {
|
|
218
|
+
scope: i,
|
|
219
|
+
children: /* @__PURE__ */ _(f, {
|
|
219
220
|
asChild: !0,
|
|
220
|
-
onEscapeKeyDown:
|
|
221
|
+
onEscapeKeyDown: s(u, () => {
|
|
221
222
|
T.isFocusedToastEscapeKeyDownRef.current || V(), T.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
222
223
|
}),
|
|
223
|
-
children: /* @__PURE__ */ _(
|
|
224
|
+
children: /* @__PURE__ */ _(r.li, {
|
|
224
225
|
tabIndex: 0,
|
|
225
226
|
"data-state": c ? "open" : "closed",
|
|
226
227
|
"data-swipe-direction": T.swipeDirection,
|
|
@@ -231,16 +232,16 @@ var [ae, z] = T(L, { onClose() {} }), B = h.forwardRef((e, t) => {
|
|
|
231
232
|
touchAction: "none",
|
|
232
233
|
...e.style
|
|
233
234
|
},
|
|
234
|
-
onKeyDown:
|
|
235
|
-
e.key === "Escape" && (
|
|
235
|
+
onKeyDown: s(e.onKeyDown, (e) => {
|
|
236
|
+
e.key === "Escape" && (u?.(e.nativeEvent), e.nativeEvent.defaultPrevented || (T.isFocusedToastEscapeKeyDownRef.current = !0, V()));
|
|
236
237
|
}),
|
|
237
|
-
onPointerDown:
|
|
238
|
+
onPointerDown: s(e.onPointerDown, (e) => {
|
|
238
239
|
e.button === 0 && (A.current = {
|
|
239
240
|
x: e.clientX,
|
|
240
241
|
y: e.clientY
|
|
241
242
|
});
|
|
242
243
|
}),
|
|
243
|
-
onPointerMove:
|
|
244
|
+
onPointerMove: s(e.onPointerMove, (e) => {
|
|
244
245
|
if (!A.current) return;
|
|
245
246
|
let t = e.clientX - A.current.x, n = e.clientY - A.current.y, r = !!j.current, i = ["left", "right"].includes(T.swipeDirection), a = ["left", "up"].includes(T.swipeDirection) ? Math.min : Math.max, o = i ? a(0, t) : 0, s = i ? 0 : a(0, n), c = e.pointerType === "touch" ? 10 : 2, l = {
|
|
246
247
|
x: o,
|
|
@@ -249,16 +250,16 @@ var [ae, z] = T(L, { onClose() {} }), B = h.forwardRef((e, t) => {
|
|
|
249
250
|
originalEvent: e,
|
|
250
251
|
delta: l
|
|
251
252
|
};
|
|
252
|
-
r ? (j.current = l, Z(ne,
|
|
253
|
+
r ? (j.current = l, Z(ne, b, u, { discrete: !1 })) : Q(l, T.swipeDirection, c) ? (j.current = l, Z(te, y, u, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (A.current = null);
|
|
253
254
|
}),
|
|
254
|
-
onPointerUp:
|
|
255
|
+
onPointerUp: s(e.onPointerUp, (e) => {
|
|
255
256
|
let t = j.current, n = e.target;
|
|
256
257
|
if (n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), j.current = null, A.current = null, t) {
|
|
257
258
|
let n = e.currentTarget, r = {
|
|
258
259
|
originalEvent: e,
|
|
259
260
|
delta: t
|
|
260
261
|
};
|
|
261
|
-
Q(t, T.swipeDirection, T.swipeThreshold) ? Z(ie,
|
|
262
|
+
Q(t, T.swipeDirection, T.swipeThreshold) ? Z(ie, C, r, { discrete: !0 }) : Z(re, x, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
|
|
262
263
|
}
|
|
263
264
|
})
|
|
264
265
|
})
|
|
@@ -266,33 +267,33 @@ var [ae, z] = T(L, { onClose() {} }), B = h.forwardRef((e, t) => {
|
|
|
266
267
|
}), T.viewport)
|
|
267
268
|
})] }) : null;
|
|
268
269
|
}), oe = (e) => {
|
|
269
|
-
let { __scopeToast: t, children: n, ...r } = e,
|
|
270
|
-
return se(() =>
|
|
271
|
-
let e = window.setTimeout(() =>
|
|
270
|
+
let { __scopeToast: t, children: n, ...r } = e, a = O(L, t), [o, s] = h.useState(!1), [c, l] = h.useState(!1);
|
|
271
|
+
return se(() => s(!0)), h.useEffect(() => {
|
|
272
|
+
let e = window.setTimeout(() => l(!0), 1e3);
|
|
272
273
|
return () => window.clearTimeout(e);
|
|
273
|
-
}, []),
|
|
274
|
+
}, []), c ? null : /* @__PURE__ */ _(m, {
|
|
274
275
|
asChild: !0,
|
|
275
|
-
children: /* @__PURE__ */ _(
|
|
276
|
+
children: /* @__PURE__ */ _(i, {
|
|
276
277
|
...r,
|
|
277
|
-
children:
|
|
278
|
-
|
|
278
|
+
children: o && /* @__PURE__ */ v(g, { children: [
|
|
279
|
+
a.label,
|
|
279
280
|
" ",
|
|
280
281
|
n
|
|
281
282
|
] })
|
|
282
283
|
})
|
|
283
284
|
});
|
|
284
285
|
}, V = "ToastTitle", H = h.forwardRef((e, t) => {
|
|
285
|
-
let { __scopeToast: n, ...
|
|
286
|
-
return /* @__PURE__ */ _(
|
|
287
|
-
...
|
|
286
|
+
let { __scopeToast: n, ...i } = e;
|
|
287
|
+
return /* @__PURE__ */ _(r.div, {
|
|
288
|
+
...i,
|
|
288
289
|
ref: t
|
|
289
290
|
});
|
|
290
291
|
});
|
|
291
292
|
H.displayName = V;
|
|
292
293
|
var U = "ToastDescription", W = h.forwardRef((e, t) => {
|
|
293
|
-
let { __scopeToast: n, ...
|
|
294
|
-
return /* @__PURE__ */ _(
|
|
295
|
-
...
|
|
294
|
+
let { __scopeToast: n, ...i } = e;
|
|
295
|
+
return /* @__PURE__ */ _(r.div, {
|
|
296
|
+
...i,
|
|
296
297
|
ref: t
|
|
297
298
|
});
|
|
298
299
|
});
|
|
@@ -310,24 +311,24 @@ var G = "ToastAction", K = h.forwardRef((e, t) => {
|
|
|
310
311
|
});
|
|
311
312
|
K.displayName = G;
|
|
312
313
|
var q = "ToastClose", J = h.forwardRef((e, t) => {
|
|
313
|
-
let { __scopeToast: n, ...
|
|
314
|
+
let { __scopeToast: n, ...i } = e, a = z(q, n);
|
|
314
315
|
return /* @__PURE__ */ _(Y, {
|
|
315
316
|
asChild: !0,
|
|
316
|
-
children: /* @__PURE__ */ _(
|
|
317
|
+
children: /* @__PURE__ */ _(r.button, {
|
|
317
318
|
type: "button",
|
|
318
|
-
...
|
|
319
|
+
...i,
|
|
319
320
|
ref: t,
|
|
320
|
-
onClick:
|
|
321
|
+
onClick: s(e.onClick, a.onClose)
|
|
321
322
|
})
|
|
322
323
|
});
|
|
323
324
|
});
|
|
324
325
|
J.displayName = q;
|
|
325
326
|
var Y = h.forwardRef((e, t) => {
|
|
326
|
-
let { __scopeToast: n, altText:
|
|
327
|
-
return /* @__PURE__ */ _(
|
|
327
|
+
let { __scopeToast: n, altText: i, ...a } = e;
|
|
328
|
+
return /* @__PURE__ */ _(r.div, {
|
|
328
329
|
"data-radix-toast-announce-exclude": "",
|
|
329
|
-
"data-radix-toast-announce-alt":
|
|
330
|
-
...
|
|
330
|
+
"data-radix-toast-announce-alt": i || void 0,
|
|
331
|
+
...a,
|
|
331
332
|
ref: t
|
|
332
333
|
});
|
|
333
334
|
});
|
|
@@ -343,21 +344,21 @@ function X(e) {
|
|
|
343
344
|
}
|
|
344
345
|
}), t;
|
|
345
346
|
}
|
|
346
|
-
function Z(e, t,
|
|
347
|
-
let a =
|
|
347
|
+
function Z(e, t, r, { discrete: i }) {
|
|
348
|
+
let a = r.originalEvent.currentTarget, o = new CustomEvent(e, {
|
|
348
349
|
bubbles: !0,
|
|
349
350
|
cancelable: !0,
|
|
350
|
-
detail:
|
|
351
|
+
detail: r
|
|
351
352
|
});
|
|
352
|
-
t && a.addEventListener(e, t, { once: !0 }), i ?
|
|
353
|
+
t && a.addEventListener(e, t, { once: !0 }), i ? n(a, o) : a.dispatchEvent(o);
|
|
353
354
|
}
|
|
354
355
|
var Q = (e, t, n = 0) => {
|
|
355
356
|
let r = Math.abs(e.x), i = Math.abs(e.y), a = r > i;
|
|
356
357
|
return t === "left" || t === "right" ? a && r > n : !a && i > n;
|
|
357
358
|
};
|
|
358
359
|
function se(e = () => {}) {
|
|
359
|
-
let t =
|
|
360
|
-
|
|
360
|
+
let t = d(e);
|
|
361
|
+
c(() => {
|
|
361
362
|
let e = 0, n = 0;
|
|
362
363
|
return e = window.requestAnimationFrame(() => n = window.requestAnimationFrame(t)), () => {
|
|
363
364
|
window.cancelAnimationFrame(e), window.cancelAnimationFrame(n);
|
|
@@ -385,7 +386,7 @@ var ue = k, de = P, fe = R, pe = H, me = W, he = K, ge = J, _e = ue, ve = h.forw
|
|
|
385
386
|
...n
|
|
386
387
|
}));
|
|
387
388
|
ve.displayName = de?.displayName || "ToastViewport";
|
|
388
|
-
var ye =
|
|
389
|
+
var ye = b("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
|
|
389
390
|
variants: { variant: {
|
|
390
391
|
default: "border bg-background text-foreground",
|
|
391
392
|
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
@@ -408,7 +409,7 @@ var Se = h.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(ge, {
|
|
|
408
409
|
className: e("text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-1 focus:outline-none group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", t),
|
|
409
410
|
"toast-close": "",
|
|
410
411
|
...n,
|
|
411
|
-
children: /* @__PURE__ */ _(
|
|
412
|
+
children: /* @__PURE__ */ _(y, { className: "h-4 w-4" })
|
|
412
413
|
}));
|
|
413
414
|
Se.displayName = ge?.displayName || "ToastClose";
|
|
414
415
|
var Ce = h.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(pe, {
|
package/dist/toast.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./toast-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./toast-1keyrzem.js");exports.Toast=e.t,exports.ToastAction=e.n,exports.ToastClose=e.r,exports.ToastDescription=e.i,exports.ToastProvider=e.a,exports.ToastTitle=e.o,exports.ToastViewport=e.s;
|
package/dist/toast.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../src/toast.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../src/toast.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,aAAa,8CAA2B,CAAC;AAE/C,QAAA,MAAM,aAAa,kKAYjB,CAAC;AAkBH,QAAA,MAAM,KAAK;;qHAKT,CAAC;AAGH,QAAA,MAAM,WAAW,kKAYf,CAAC;AAGH,QAAA,MAAM,UAAU,iKAed,CAAC;AAGH,QAAA,MAAM,UAAU,2JAKd,CAAC;AAGH,QAAA,MAAM,gBAAgB,iKAKpB,CAAC;AAGH,KAAK,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAE/D,KAAK,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,OAAO,EACL,KAAK,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,UAAU,GAChB,CAAC"}
|
package/dist/toast.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./toast-
|
|
3
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./toast-DVI6jPq5.mjs";
|
|
4
4
|
export { o as Toast, n as ToastAction, i as ToastClose, t as ToastDescription, e as ToastProvider, r as ToastTitle, a as ToastViewport };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, o as n, r, s as i, t as a } from "./toast-
|
|
1
|
+
import { a as e, i as t, o as n, r, s as i, t as a } from "./toast-DVI6jPq5.mjs";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
4
|
//#region src/hooks/use-toast.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./toast-
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./toast-1keyrzem.js");let n=require("react");n=e.r(n);let r=require("react/jsx-runtime");var i=1,a=1e6,o={ADD_TOAST:`ADD_TOAST`,UPDATE_TOAST:`UPDATE_TOAST`,DISMISS_TOAST:`DISMISS_TOAST`,REMOVE_TOAST:`REMOVE_TOAST`},s=0;function c(){return s=(s+1)%(2**53-1),s.toString()}var l=new Map,u=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),m({type:`REMOVE_TOAST`,toastId:e})},a);l.set(e,t)},d=(e,t)=>{switch(t.type){case o.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,i)};case o.UPDATE_TOAST:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case o.DISMISS_TOAST:{let{toastId:n}=t;return n?u(n):e.toasts.forEach(e=>{u(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case o.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},f=[],p={toasts:[]};function m(e){p=d(p,e),f.forEach(e=>{e(p)})}function h({...e}){let t=c(),n=e=>m({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>m({type:`DISMISS_TOAST`,toastId:t});return m({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function g(){let[e,t]=n.useState(p);return n.useEffect(()=>(f.push(t),()=>{let e=f.indexOf(t);e>-1&&f.splice(e,1)}),[e]),{...e,toast:h,dismiss:e=>m({type:`DISMISS_TOAST`,toastId:e})}}function _({...e}){let{toasts:n}=g();return(0,r.jsxs)(t.a,{...e,children:[n.map(function({id:e,title:n,description:i,action:a,...o}){return(0,r.jsxs)(t.t,{...o,children:[(0,r.jsxs)(`div`,{className:`grid gap-1`,children:[n&&(0,r.jsx)(t.o,{children:n}),i&&(0,r.jsx)(t.i,{children:i})]}),a,(0,r.jsx)(t.r,{})]},e)}),(0,r.jsx)(t.s,{})]})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return _}});
|
package/dist/toaster.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./toaster-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./toaster-DfDb2-aI.js");exports.Toaster=e.t;
|
package/dist/toaster.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-CiM892Rg.js"),r=require("./dist-CRLbUj9C.js"),i=require("./dist-DynSBUGq.js");let a=require("react"),o=e.r(a,1);a=e.r(a);let s=require("react/jsx-runtime"),c=require("class-variance-authority");var l=`Toggle`,u=o.forwardRef((e,t)=>{let{pressed:a,defaultPressed:o,onPressedChange:c,...u}=e,[d,f]=i.t({prop:a,onChange:c,defaultProp:o??!1,caller:l});return(0,s.jsx)(n.t.button,{type:`button`,"aria-pressed":d,"data-state":d?`on`:`off`,"data-disabled":e.disabled?``:void 0,...u,ref:t,onClick:r.t(e.onClick,()=>{e.disabled||f(!d)})})});u.displayName=l;var d=u,f=(0,c.cva)(`group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-muted`},size:{default:`h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2`,sm:`h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*=size-])]:size-3.5`,lg:`h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2`}},defaultVariants:{variant:`default`,size:`default`}});function p({className:e,variant:n=`default`,size:r=`default`,...i}){return(0,s.jsx)(d,{"data-slot":`toggle`,className:t.t(f({variant:n,size:r,className:e})),...i})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
+
import { t } from "./dist-Cacc4QIh.mjs";
|
|
3
|
+
import { t as n } from "./dist-BPBwSSyk.mjs";
|
|
4
|
+
import { t as r } from "./dist-DuTFGM_g.mjs";
|
|
5
|
+
import * as i from "react";
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
import { cva as o } from "class-variance-authority";
|
|
8
|
+
//#region ../../node_modules/.bun/@radix-ui+react-toggle@1.1.10+2d3f272c3a65784a/node_modules/@radix-ui/react-toggle/dist/index.mjs
|
|
9
|
+
var s = "Toggle", c = i.forwardRef((e, i) => {
|
|
10
|
+
let { pressed: o, defaultPressed: c, onPressedChange: l, ...u } = e, [d, f] = r({
|
|
11
|
+
prop: o,
|
|
12
|
+
onChange: l,
|
|
13
|
+
defaultProp: c ?? !1,
|
|
14
|
+
caller: s
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */ a(t.button, {
|
|
17
|
+
type: "button",
|
|
18
|
+
"aria-pressed": d,
|
|
19
|
+
"data-state": d ? "on" : "off",
|
|
20
|
+
"data-disabled": e.disabled ? "" : void 0,
|
|
21
|
+
...u,
|
|
22
|
+
ref: i,
|
|
23
|
+
onClick: n(e.onClick, () => {
|
|
24
|
+
e.disabled || f(!d);
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
c.displayName = s;
|
|
29
|
+
var l = c, u = o("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4", {
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
default: "bg-transparent",
|
|
33
|
+
outline: "border border-input bg-transparent hover:bg-muted"
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
default: "h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2",
|
|
37
|
+
sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*=size-])]:size-3.5",
|
|
38
|
+
lg: "h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
variant: "default",
|
|
43
|
+
size: "default"
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
function d({ className: t, variant: n = "default", size: r = "default", ...i }) {
|
|
47
|
+
return /* @__PURE__ */ a(l, {
|
|
48
|
+
"data-slot": "toggle",
|
|
49
|
+
className: e(u({
|
|
50
|
+
variant: n,
|
|
51
|
+
size: r,
|
|
52
|
+
className: t
|
|
53
|
+
})),
|
|
54
|
+
...i
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { u as n, c as r, d as t };
|