@gv-tech/ui-web 2.22.1 → 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
package/src/toggle-group.tsx
CHANGED
|
@@ -1,55 +1,91 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
4
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
|
|
7
|
-
import { toggleVariants } from '@gv-tech/ui-core';
|
|
8
7
|
import { cn } from './lib/utils';
|
|
8
|
+
import { toggleVariants } from './toggle';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
import type { ToggleGroupBaseProps } from '@gv-tech/ui-core';
|
|
11
|
+
|
|
12
|
+
const ToggleGroupContext = React.createContext<
|
|
13
|
+
VariantProps<typeof toggleVariants> & {
|
|
14
|
+
spacing?: number;
|
|
15
|
+
orientation?: 'horizontal' | 'vertical';
|
|
16
|
+
}
|
|
17
|
+
>({
|
|
11
18
|
size: 'default',
|
|
12
19
|
variant: 'default',
|
|
20
|
+
spacing: 2,
|
|
21
|
+
orientation: 'horizontal',
|
|
13
22
|
});
|
|
14
23
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
className
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
className,
|
|
44
|
-
)}
|
|
45
|
-
{...props}
|
|
46
|
-
>
|
|
24
|
+
function ToggleGroup({
|
|
25
|
+
className,
|
|
26
|
+
variant,
|
|
27
|
+
size,
|
|
28
|
+
spacing = 2,
|
|
29
|
+
orientation = 'horizontal',
|
|
30
|
+
children,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &
|
|
33
|
+
VariantProps<typeof toggleVariants> & {
|
|
34
|
+
spacing?: number;
|
|
35
|
+
orientation?: 'horizontal' | 'vertical';
|
|
36
|
+
}) {
|
|
37
|
+
return (
|
|
38
|
+
<ToggleGroupPrimitive.Root
|
|
39
|
+
data-slot="toggle-group"
|
|
40
|
+
data-variant={variant}
|
|
41
|
+
data-size={size}
|
|
42
|
+
data-spacing={spacing}
|
|
43
|
+
data-orientation={orientation}
|
|
44
|
+
style={{ '--gap': spacing } as React.CSSProperties}
|
|
45
|
+
className={cn(
|
|
46
|
+
'group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch data-[size=sm]:rounded-[min(var(--radius-md),10px)]',
|
|
47
|
+
className,
|
|
48
|
+
)}
|
|
49
|
+
{...props}
|
|
50
|
+
>
|
|
51
|
+
<ToggleGroupContext.Provider value={{ variant, size, spacing, orientation }}>
|
|
47
52
|
{children}
|
|
48
|
-
</
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
</ToggleGroupContext.Provider>
|
|
54
|
+
</ToggleGroupPrimitive.Root>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function ToggleGroupItem({
|
|
59
|
+
className,
|
|
60
|
+
children,
|
|
61
|
+
variant = 'default',
|
|
62
|
+
size = 'default',
|
|
63
|
+
...props
|
|
64
|
+
}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>) {
|
|
65
|
+
const context = React.useContext(ToggleGroupContext);
|
|
52
66
|
|
|
53
|
-
|
|
67
|
+
return (
|
|
68
|
+
<ToggleGroupPrimitive.Item
|
|
69
|
+
data-slot="toggle-group-item"
|
|
70
|
+
data-variant={context.variant || variant}
|
|
71
|
+
data-size={context.size || size}
|
|
72
|
+
data-spacing={context.spacing}
|
|
73
|
+
className={cn(
|
|
74
|
+
'shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pe-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:ps-1.5 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t',
|
|
75
|
+
toggleVariants({
|
|
76
|
+
variant: context.variant || variant,
|
|
77
|
+
size: context.size || size,
|
|
78
|
+
}),
|
|
79
|
+
className,
|
|
80
|
+
)}
|
|
81
|
+
{...props}
|
|
82
|
+
>
|
|
83
|
+
{children}
|
|
84
|
+
</ToggleGroupPrimitive.Item>
|
|
85
|
+
);
|
|
86
|
+
}
|
|
54
87
|
|
|
55
88
|
export { ToggleGroup, ToggleGroupItem };
|
|
89
|
+
|
|
90
|
+
// Verify that the component satisfies the ui-core contract
|
|
91
|
+
const _verifyToggleGroupContract: ToggleGroupBaseProps = {} as unknown as React.ComponentProps<typeof ToggleGroup>;
|
package/src/toggle.tsx
CHANGED
|
@@ -1,24 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
1
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Toggle as TogglePrimitive } from 'radix-ui';
|
|
5
3
|
import * as React from 'react';
|
|
6
4
|
|
|
7
|
-
import { ToggleBaseProps, toggleVariants } from '@gv-tech/ui-core';
|
|
8
5
|
import { cn } from './lib/utils';
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
extends
|
|
12
|
-
React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>,
|
|
13
|
-
Omit<VariantProps<typeof toggleVariants>, 'size' | 'variant'>,
|
|
14
|
-
ToggleBaseProps {}
|
|
7
|
+
import type { ToggleBaseProps } from '@gv-tech/ui-core';
|
|
15
8
|
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
const toggleVariants = cva(
|
|
10
|
+
'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',
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
default: 'bg-transparent',
|
|
15
|
+
outline: 'border border-input bg-transparent hover:bg-muted',
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
default: 'h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2',
|
|
19
|
+
sm: 'h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*=size-])]:size-3.5',
|
|
20
|
+
lg: 'h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: 'default',
|
|
25
|
+
size: 'default',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
20
28
|
);
|
|
21
29
|
|
|
22
|
-
|
|
30
|
+
function Toggle({
|
|
31
|
+
className,
|
|
32
|
+
variant = 'default',
|
|
33
|
+
size = 'default',
|
|
34
|
+
...props
|
|
35
|
+
}: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>) {
|
|
36
|
+
return (
|
|
37
|
+
<TogglePrimitive.Root data-slot="toggle" className={cn(toggleVariants({ variant, size, className }))} {...props} />
|
|
38
|
+
);
|
|
39
|
+
}
|
|
23
40
|
|
|
24
41
|
export { Toggle, toggleVariants };
|
|
42
|
+
|
|
43
|
+
// Verify that the component satisfies the ui-core contract
|
|
44
|
+
const _verifyToggleContract: ToggleBaseProps = {} as unknown as React.ComponentProps<typeof Toggle>;
|
package/src/tooltip.tsx
CHANGED
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
TooltipBaseProps,
|
|
8
|
-
TooltipContentBaseProps,
|
|
9
|
-
TooltipProviderBaseProps,
|
|
10
|
-
TooltipTriggerBaseProps,
|
|
11
|
-
} from '@gv-tech/ui-core';
|
|
12
6
|
import { cn } from './lib/utils';
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
8
|
+
import type { TooltipBaseProps } from '@gv-tech/ui-core';
|
|
9
|
+
|
|
10
|
+
function TooltipProvider({ delayDuration = 0, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
|
|
11
|
+
return <TooltipPrimitive.Provider data-slot="tooltip-provider" delayDuration={delayDuration} {...props} />;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {
|
|
15
|
+
return <TooltipPrimitive.Root data-slot="tooltip" {...props} />;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
|
|
19
|
+
return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function TooltipContent({
|
|
23
|
+
className,
|
|
24
|
+
sideOffset = 0,
|
|
25
|
+
children,
|
|
26
|
+
...props
|
|
27
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Content>) {
|
|
28
|
+
return (
|
|
29
|
+
<TooltipPrimitive.Portal>
|
|
30
|
+
<TooltipPrimitive.Content
|
|
31
|
+
data-slot="tooltip-content"
|
|
32
|
+
sideOffset={sideOffset}
|
|
33
|
+
className={cn(
|
|
34
|
+
'bg-foreground text-background data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pe-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm',
|
|
35
|
+
className,
|
|
36
|
+
)}
|
|
37
|
+
{...props}
|
|
38
|
+
>
|
|
39
|
+
{children}
|
|
40
|
+
<TooltipPrimitive.Arrow className="bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
|
|
41
|
+
</TooltipPrimitive.Content>
|
|
42
|
+
</TooltipPrimitive.Portal>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
50
45
|
|
|
51
46
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
47
|
+
|
|
48
|
+
// Verify that the component satisfies the ui-core contract
|
|
49
|
+
const _verifyTooltipContract: TooltipBaseProps = {} as unknown as React.ComponentProps<typeof Tooltip>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-CSkpam6a.js"),r=require("./dist-BTPL2C0R.js"),i=require("./dist-Dw6-GQAn.js"),a=require("./dist-DasmYflz.js"),o=require("./dist-DynSBUGq.js"),s=require("./dist-Byhx2fDJ.js"),c=require("./dist-DaCPM8ia.js"),l=require("./dist-CV2U2xFR.js");let u=require("react"),d=e.r(u,1);u=e.r(u);let f=require("react/jsx-runtime"),p=require("lucide-react");var m=`Accordion`,h=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[g,_,v]=a.t(m),[y,b]=n.n(m,[v,c.o]),x=c.o(),S=d.default.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,f.jsx)(g.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,f.jsx)(O,{...a,ref:t}):(0,f.jsx)(D,{...i,ref:t})})});S.displayName=m;var[C,w]=y(m),[T,E]=y(m,{collapsible:!1}),D=d.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...s}=e,[c,l]=o.t({prop:n,defaultProp:r??``,onChange:i,caller:m});return(0,f.jsx)(C,{scope:e.__scopeAccordion,value:d.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:d.default.useCallback(()=>a&&l(``),[a,l]),children:(0,f.jsx)(T,{scope:e.__scopeAccordion,collapsible:a,children:(0,f.jsx)(j,{...s,ref:t})})})}),O=d.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[s,c]=o.t({prop:n,defaultProp:r??[],onChange:i,caller:m}),l=d.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=d.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,f.jsx)(C,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:(0,f.jsx)(T,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(j,{...a,ref:t})})})}),[k,A]=y(m),j=d.default.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:a,dir:o,orientation:s=`vertical`,...c}=e,u=r.n(d.default.useRef(null),t),p=_(n),m=l.t(o)===`ltr`,v=i.r(e.onKeyDown,e=>{if(!h.includes(e.key))return;let t=e.target,n=p().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,o=i-1,c=()=>{a=r+1,a>o&&(a=0)},l=()=>{a=r-1,a<0&&(a=o)};switch(e.key){case`Home`:a=0;break;case`End`:a=o;break;case`ArrowRight`:s===`horizontal`&&(m?c():l());break;case`ArrowDown`:s===`vertical`&&c();break;case`ArrowLeft`:s===`horizontal`&&(m?l():c());break;case`ArrowUp`:s===`vertical`&&l();break}n[a%i].ref.current?.focus()});return(0,f.jsx)(k,{scope:n,disabled:a,direction:o,orientation:s,children:(0,f.jsx)(g.Slot,{scope:n,children:(0,f.jsx)(i.t.div,{...c,"data-orientation":s,ref:u,onKeyDown:a?void 0:v})})})}),M=`AccordionItem`,[N,P]=y(M),F=d.default.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=A(M,n),o=w(M,n),l=x(n),u=s.t(),d=r&&o.value.includes(r)||!1,p=a.disabled||e.disabled;return(0,f.jsx)(N,{scope:n,open:d,disabled:p,triggerId:u,children:(0,f.jsx)(c.i,{"data-orientation":a.orientation,"data-state":H(d),...l,...i,ref:t,disabled:p,open:d,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});F.displayName=M;var I=`AccordionHeader`,L=d.default.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,a=A(m,n),o=P(I,n);return(0,f.jsx)(i.t.h3,{"data-orientation":a.orientation,"data-state":H(o.open),"data-disabled":o.disabled?``:void 0,...r,ref:t})});L.displayName=I;var R=`AccordionTrigger`,z=d.default.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=A(m,n),a=P(R,n),o=E(R,n),s=x(n);return(0,f.jsx)(g.ItemSlot,{scope:n,children:(0,f.jsx)(c.a,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});z.displayName=R;var B=`AccordionContent`,V=d.default.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=A(m,n),a=P(B,n),o=x(n);return(0,f.jsx)(c.r,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});V.displayName=B;function H(e){return e?`open`:`closed`}var U=S,W=F,G=L,K=z,q=V,J=U,Y=u.forwardRef(({className:e,...n},r)=>(0,f.jsx)(W,{ref:r,className:t.t(`border-b`,e),...n}));Y.displayName=`AccordionItem`;var X=u.forwardRef(({className:e,children:n,...r},i)=>(0,f.jsx)(G,{className:`flex`,children:(0,f.jsxs)(K,{ref:i,className:t.t(`flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180`,e),...r,children:[n,(0,f.jsx)(p.ChevronDown,{className:`text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200`})]})}));X.displayName=K?.displayName||`AccordionTrigger`;var Z=u.forwardRef(({className:e,children:n,...r},i)=>(0,f.jsx)(q,{ref:i,className:`data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm`,...r,children:(0,f.jsx)(`div`,{className:t.t(`pt-0 pb-4`,e),children:n})}));Z.displayName=q?.displayName||`AccordionContent`,Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return J}});
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
-
import { n as t } from "./dist-Bm8Cuttq.mjs";
|
|
3
|
-
import { n } from "./dist-DAe-fOIM.mjs";
|
|
4
|
-
import { r, t as i } from "./dist-BjEG16aJ.mjs";
|
|
5
|
-
import { t as a } from "./dist-D_tuvB-W.mjs";
|
|
6
|
-
import { t as o } from "./dist-DuTFGM_g.mjs";
|
|
7
|
-
import { t as s } from "./dist-Df2ez-DA.mjs";
|
|
8
|
-
import { a as c, i as l, o as u, r as d } from "./dist-CRmJFaEL.mjs";
|
|
9
|
-
import { t as f } from "./dist-C3Z3atn0.mjs";
|
|
10
|
-
import * as p from "react";
|
|
11
|
-
import m from "react";
|
|
12
|
-
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
13
|
-
import { ChevronDown as _ } from "lucide-react";
|
|
14
|
-
//#region ../../node_modules/.bun/@radix-ui+react-accordion@1.2.12+2d3f272c3a65784a/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
15
|
-
var v = "Accordion", y = [
|
|
16
|
-
"Home",
|
|
17
|
-
"End",
|
|
18
|
-
"ArrowDown",
|
|
19
|
-
"ArrowUp",
|
|
20
|
-
"ArrowLeft",
|
|
21
|
-
"ArrowRight"
|
|
22
|
-
], [b, x, S] = a(v), [C, ee] = t(v, [S, u]), w = u(), T = m.forwardRef((e, t) => {
|
|
23
|
-
let { type: n, ...r } = e, i = r, a = r;
|
|
24
|
-
return /* @__PURE__ */ h(b.Provider, {
|
|
25
|
-
scope: e.__scopeAccordion,
|
|
26
|
-
children: n === "multiple" ? /* @__PURE__ */ h(A, {
|
|
27
|
-
...a,
|
|
28
|
-
ref: t
|
|
29
|
-
}) : /* @__PURE__ */ h(k, {
|
|
30
|
-
...i,
|
|
31
|
-
ref: t
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
T.displayName = v;
|
|
36
|
-
var [E, D] = C(v), [O, te] = C(v, { collapsible: !1 }), k = m.forwardRef((e, t) => {
|
|
37
|
-
let { value: n, defaultValue: r, onValueChange: i = () => {}, collapsible: a = !1, ...s } = e, [c, l] = o({
|
|
38
|
-
prop: n,
|
|
39
|
-
defaultProp: r ?? "",
|
|
40
|
-
onChange: i,
|
|
41
|
-
caller: v
|
|
42
|
-
});
|
|
43
|
-
return /* @__PURE__ */ h(E, {
|
|
44
|
-
scope: e.__scopeAccordion,
|
|
45
|
-
value: m.useMemo(() => c ? [c] : [], [c]),
|
|
46
|
-
onItemOpen: l,
|
|
47
|
-
onItemClose: m.useCallback(() => a && l(""), [a, l]),
|
|
48
|
-
children: /* @__PURE__ */ h(O, {
|
|
49
|
-
scope: e.__scopeAccordion,
|
|
50
|
-
collapsible: a,
|
|
51
|
-
children: /* @__PURE__ */ h(N, {
|
|
52
|
-
...s,
|
|
53
|
-
ref: t
|
|
54
|
-
})
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
}), A = m.forwardRef((e, t) => {
|
|
58
|
-
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [s, c] = o({
|
|
59
|
-
prop: n,
|
|
60
|
-
defaultProp: r ?? [],
|
|
61
|
-
onChange: i,
|
|
62
|
-
caller: v
|
|
63
|
-
}), l = m.useCallback((e) => c((t = []) => [...t, e]), [c]), u = m.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
64
|
-
return /* @__PURE__ */ h(E, {
|
|
65
|
-
scope: e.__scopeAccordion,
|
|
66
|
-
value: s,
|
|
67
|
-
onItemOpen: l,
|
|
68
|
-
onItemClose: u,
|
|
69
|
-
children: /* @__PURE__ */ h(O, {
|
|
70
|
-
scope: e.__scopeAccordion,
|
|
71
|
-
collapsible: !0,
|
|
72
|
-
children: /* @__PURE__ */ h(N, {
|
|
73
|
-
...a,
|
|
74
|
-
ref: t
|
|
75
|
-
})
|
|
76
|
-
})
|
|
77
|
-
});
|
|
78
|
-
}), [j, M] = C(v), N = m.forwardRef((e, t) => {
|
|
79
|
-
let { __scopeAccordion: a, disabled: o, dir: s, orientation: c = "vertical", ...l } = e, u = n(m.useRef(null), t), d = x(a), p = f(s) === "ltr", g = r(e.onKeyDown, (e) => {
|
|
80
|
-
if (!y.includes(e.key)) return;
|
|
81
|
-
let t = e.target, n = d().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
82
|
-
if (r === -1) return;
|
|
83
|
-
e.preventDefault();
|
|
84
|
-
let a = r, o = i - 1, s = () => {
|
|
85
|
-
a = r + 1, a > o && (a = 0);
|
|
86
|
-
}, l = () => {
|
|
87
|
-
a = r - 1, a < 0 && (a = o);
|
|
88
|
-
};
|
|
89
|
-
switch (e.key) {
|
|
90
|
-
case "Home":
|
|
91
|
-
a = 0;
|
|
92
|
-
break;
|
|
93
|
-
case "End":
|
|
94
|
-
a = o;
|
|
95
|
-
break;
|
|
96
|
-
case "ArrowRight":
|
|
97
|
-
c === "horizontal" && (p ? s() : l());
|
|
98
|
-
break;
|
|
99
|
-
case "ArrowDown":
|
|
100
|
-
c === "vertical" && s();
|
|
101
|
-
break;
|
|
102
|
-
case "ArrowLeft":
|
|
103
|
-
c === "horizontal" && (p ? l() : s());
|
|
104
|
-
break;
|
|
105
|
-
case "ArrowUp":
|
|
106
|
-
c === "vertical" && l();
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
n[a % i].ref.current?.focus();
|
|
110
|
-
});
|
|
111
|
-
return /* @__PURE__ */ h(j, {
|
|
112
|
-
scope: a,
|
|
113
|
-
disabled: o,
|
|
114
|
-
direction: s,
|
|
115
|
-
orientation: c,
|
|
116
|
-
children: /* @__PURE__ */ h(b.Slot, {
|
|
117
|
-
scope: a,
|
|
118
|
-
children: /* @__PURE__ */ h(i.div, {
|
|
119
|
-
...l,
|
|
120
|
-
"data-orientation": c,
|
|
121
|
-
ref: u,
|
|
122
|
-
onKeyDown: o ? void 0 : g
|
|
123
|
-
})
|
|
124
|
-
})
|
|
125
|
-
});
|
|
126
|
-
}), P = "AccordionItem", [F, I] = C(P), L = m.forwardRef((e, t) => {
|
|
127
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = M(P, n), o = D(P, n), c = w(n), u = s(), d = r && o.value.includes(r) || !1, f = a.disabled || e.disabled;
|
|
128
|
-
return /* @__PURE__ */ h(F, {
|
|
129
|
-
scope: n,
|
|
130
|
-
open: d,
|
|
131
|
-
disabled: f,
|
|
132
|
-
triggerId: u,
|
|
133
|
-
children: /* @__PURE__ */ h(l, {
|
|
134
|
-
"data-orientation": a.orientation,
|
|
135
|
-
"data-state": W(d),
|
|
136
|
-
...c,
|
|
137
|
-
...i,
|
|
138
|
-
ref: t,
|
|
139
|
-
disabled: f,
|
|
140
|
-
open: d,
|
|
141
|
-
onOpenChange: (e) => {
|
|
142
|
-
e ? o.onItemOpen(r) : o.onItemClose(r);
|
|
143
|
-
}
|
|
144
|
-
})
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
L.displayName = P;
|
|
148
|
-
var R = "AccordionHeader", z = m.forwardRef((e, t) => {
|
|
149
|
-
let { __scopeAccordion: n, ...r } = e, a = M(v, n), o = I(R, n);
|
|
150
|
-
return /* @__PURE__ */ h(i.h3, {
|
|
151
|
-
"data-orientation": a.orientation,
|
|
152
|
-
"data-state": W(o.open),
|
|
153
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
154
|
-
...r,
|
|
155
|
-
ref: t
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
z.displayName = R;
|
|
159
|
-
var B = "AccordionTrigger", V = m.forwardRef((e, t) => {
|
|
160
|
-
let { __scopeAccordion: n, ...r } = e, i = M(v, n), a = I(B, n), o = te(B, n), s = w(n);
|
|
161
|
-
return /* @__PURE__ */ h(b.ItemSlot, {
|
|
162
|
-
scope: n,
|
|
163
|
-
children: /* @__PURE__ */ h(c, {
|
|
164
|
-
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
165
|
-
"data-orientation": i.orientation,
|
|
166
|
-
id: a.triggerId,
|
|
167
|
-
...s,
|
|
168
|
-
...r,
|
|
169
|
-
ref: t
|
|
170
|
-
})
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
V.displayName = B;
|
|
174
|
-
var H = "AccordionContent", U = m.forwardRef((e, t) => {
|
|
175
|
-
let { __scopeAccordion: n, ...r } = e, i = M(v, n), a = I(H, n), o = w(n);
|
|
176
|
-
return /* @__PURE__ */ h(d, {
|
|
177
|
-
role: "region",
|
|
178
|
-
"aria-labelledby": a.triggerId,
|
|
179
|
-
"data-orientation": i.orientation,
|
|
180
|
-
...o,
|
|
181
|
-
...r,
|
|
182
|
-
ref: t,
|
|
183
|
-
style: {
|
|
184
|
-
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
185
|
-
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
186
|
-
...e.style
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
U.displayName = H;
|
|
191
|
-
function W(e) {
|
|
192
|
-
return e ? "open" : "closed";
|
|
193
|
-
}
|
|
194
|
-
var G = T, K = L, q = z, J = V, Y = U, X = G, Z = p.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ h(K, {
|
|
195
|
-
ref: r,
|
|
196
|
-
className: e("border-b", t),
|
|
197
|
-
...n
|
|
198
|
-
}));
|
|
199
|
-
Z.displayName = "AccordionItem";
|
|
200
|
-
var Q = p.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ h(q, {
|
|
201
|
-
className: "flex",
|
|
202
|
-
children: /* @__PURE__ */ g(J, {
|
|
203
|
-
ref: i,
|
|
204
|
-
className: e("flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", t),
|
|
205
|
-
...r,
|
|
206
|
-
children: [n, /* @__PURE__ */ h(_, { className: "text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" })]
|
|
207
|
-
})
|
|
208
|
-
}));
|
|
209
|
-
Q.displayName = J?.displayName || "AccordionTrigger";
|
|
210
|
-
var $ = p.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ h(Y, {
|
|
211
|
-
ref: i,
|
|
212
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
213
|
-
...r,
|
|
214
|
-
children: /* @__PURE__ */ h("div", {
|
|
215
|
-
className: e("pt-0 pb-4", t),
|
|
216
|
-
children: n
|
|
217
|
-
})
|
|
218
|
-
}));
|
|
219
|
-
$.displayName = Y?.displayName || "AccordionContent";
|
|
220
|
-
//#endregion
|
|
221
|
-
export { Q as i, $ as n, Z as r, X as t };
|