@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
package/dist/pagination.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./button.cjs");let r=require("react");r=e.r(r);let i=require("react/jsx-runtime"),a=require("lucide-react");function o({className:e,...n}){return(0,i.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:t.t(`mx-auto flex w-full justify-center`,e),...n})}function s({className:e,...n}){return(0,i.jsx)(`ul`,{"data-slot":`pagination-content`,className:t.t(`flex items-center gap-0.5`,e),...n})}function c({...e}){return(0,i.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function l({className:e,isActive:r,size:a=`icon`,...o}){return(0,i.jsx)(n.Button,{asChild:!0,variant:r?`outline`:`ghost`,size:a,className:t.t(e),children:(0,i.jsx)(`a`,{"aria-current":r?`page`:void 0,"data-slot":`pagination-link`,"data-active":r,...o})})}function u({className:e,text:n=`Previous`,...r}){return(0,i.jsxs)(l,{"aria-label":`Go to previous page`,size:`default`,className:t.t(`ps-1.5!`,e),...r,children:[(0,i.jsx)(a.ChevronLeftIcon,{"data-icon":`inline-start`}),(0,i.jsx)(`span`,{className:`hidden sm:block`,children:n})]})}function d({className:e,text:n=`Next`,...r}){return(0,i.jsxs)(l,{"aria-label":`Go to next page`,size:`default`,className:t.t(`pe-1.5!`,e),...r,children:[(0,i.jsx)(`span`,{className:`hidden sm:block`,children:n}),(0,i.jsx)(a.ChevronRightIcon,{"data-icon":`inline-end`})]})}function f({className:e,...n}){return(0,i.jsxs)(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:t.t(`flex size-8 items-center justify-center [&_svg:not([class*=size-])]:size-4`,e),...n,children:[(0,i.jsx)(a.MoreHorizontalIcon,{}),(0,i.jsx)(`span`,{className:`sr-only`,children:`More pages`})]})}exports.Pagination=o,exports.PaginationContent=s,exports.PaginationEllipsis=f,exports.PaginationItem=c,exports.PaginationLink=l,exports.PaginationNext=d,exports.PaginationPrevious=u;
|
package/dist/pagination.d.ts
CHANGED
|
@@ -1,31 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ButtonProps } from './button';
|
|
1
|
+
import { Button } from './button';
|
|
3
2
|
import * as React from 'react';
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement> & PaginationContentBaseProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
9
|
-
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLLIElement> & React.LiHTMLAttributes<HTMLLIElement> & PaginationItemBaseProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
3
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
10
6
|
type PaginationLinkProps = {
|
|
11
7
|
isActive?: boolean;
|
|
12
|
-
} & Pick<
|
|
13
|
-
declare
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
declare const PaginationNext: {
|
|
22
|
-
({ className, ...props }: React.ComponentProps<typeof PaginationLink> & PaginationNextBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
displayName: string;
|
|
24
|
-
};
|
|
25
|
-
declare const PaginationEllipsis: {
|
|
26
|
-
({ className, ...props }: React.ComponentProps<"span"> & PaginationEllipsisBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
displayName: string;
|
|
28
|
-
};
|
|
8
|
+
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
9
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function PaginationPrevious({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
|
|
11
|
+
text?: string;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function PaginationNext({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
|
|
14
|
+
text?: string;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
29
17
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
30
|
-
export type { PaginationContentBaseProps as PaginationContentProps, PaginationEllipsisBaseProps as PaginationEllipsisProps, PaginationItemBaseProps as PaginationItemProps, PaginationLinkProps, PaginationNextBaseProps as PaginationNextProps, PaginationPreviousBaseProps as PaginationPreviousProps, PaginationBaseProps as PaginationProps, };
|
|
31
18
|
//# sourceMappingURL=pagination.d.ts.map
|
package/dist/pagination.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../src/pagination.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../src/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAUvE;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAE7E;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAE/D;AAED,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GACnD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAE5B,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAM5F;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,IAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAOjE;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,IAAa,EACb,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAOjE;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAYhF;AAED,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,CAAC"}
|
package/dist/pagination.mjs
CHANGED
|
@@ -1,64 +1,81 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use client";
|
|
3
2
|
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { jsx as
|
|
7
|
-
import {
|
|
3
|
+
import { Button as t } from "./button.mjs";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronLeftIcon as i, ChevronRightIcon as a, MoreHorizontalIcon as o } from "lucide-react";
|
|
8
7
|
//#region src/pagination.tsx
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
8
|
+
function s({ className: t, ...r }) {
|
|
9
|
+
return /* @__PURE__ */ n("nav", {
|
|
10
|
+
role: "navigation",
|
|
11
|
+
"aria-label": "pagination",
|
|
12
|
+
"data-slot": "pagination",
|
|
13
|
+
className: e("mx-auto flex w-full justify-center", t),
|
|
14
|
+
...r
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function c({ className: t, ...r }) {
|
|
18
|
+
return /* @__PURE__ */ n("ul", {
|
|
19
|
+
"data-slot": "pagination-content",
|
|
20
|
+
className: e("flex items-center gap-0.5", t),
|
|
21
|
+
...r
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function l({ ...e }) {
|
|
25
|
+
return /* @__PURE__ */ n("li", {
|
|
26
|
+
"data-slot": "pagination-item",
|
|
27
|
+
...e
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function u({ className: r, isActive: i, size: a = "icon", ...o }) {
|
|
31
|
+
return /* @__PURE__ */ n(t, {
|
|
32
|
+
asChild: !0,
|
|
31
33
|
variant: i ? "outline" : "ghost",
|
|
32
|
-
size: a
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
className: "
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
34
|
+
size: a,
|
|
35
|
+
className: e(r),
|
|
36
|
+
children: /* @__PURE__ */ n("a", {
|
|
37
|
+
"aria-current": i ? "page" : void 0,
|
|
38
|
+
"data-slot": "pagination-link",
|
|
39
|
+
"data-active": i,
|
|
40
|
+
...o
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function d({ className: t, text: a = "Previous", ...o }) {
|
|
45
|
+
return /* @__PURE__ */ r(u, {
|
|
46
|
+
"aria-label": "Go to previous page",
|
|
47
|
+
size: "default",
|
|
48
|
+
className: e("ps-1.5!", t),
|
|
49
|
+
...o,
|
|
50
|
+
children: [/* @__PURE__ */ n(i, { "data-icon": "inline-start" }), /* @__PURE__ */ n("span", {
|
|
51
|
+
className: "hidden sm:block",
|
|
52
|
+
children: a
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function f({ className: t, text: i = "Next", ...o }) {
|
|
57
|
+
return /* @__PURE__ */ r(u, {
|
|
58
|
+
"aria-label": "Go to next page",
|
|
59
|
+
size: "default",
|
|
60
|
+
className: e("pe-1.5!", t),
|
|
61
|
+
...o,
|
|
62
|
+
children: [/* @__PURE__ */ n("span", {
|
|
63
|
+
className: "hidden sm:block",
|
|
64
|
+
children: i
|
|
65
|
+
}), /* @__PURE__ */ n(a, { "data-icon": "inline-end" })]
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function p({ className: t, ...i }) {
|
|
69
|
+
return /* @__PURE__ */ r("span", {
|
|
70
|
+
"aria-hidden": !0,
|
|
71
|
+
"data-slot": "pagination-ellipsis",
|
|
72
|
+
className: e("flex size-8 items-center justify-center [&_svg:not([class*=size-])]:size-4", t),
|
|
73
|
+
...i,
|
|
74
|
+
children: [/* @__PURE__ */ n(o, {}), /* @__PURE__ */ n("span", {
|
|
75
|
+
className: "sr-only",
|
|
76
|
+
children: "More pages"
|
|
77
|
+
})]
|
|
78
|
+
});
|
|
79
|
+
}
|
|
63
80
|
//#endregion
|
|
64
|
-
export {
|
|
81
|
+
export { s as Pagination, c as PaginationContent, p as PaginationEllipsis, l as PaginationItem, u as PaginationLink, f as PaginationNext, d as PaginationPrevious };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-DR0lXVFG.js"),r=require("./dist-CiM892Rg.js"),i=require("./dist-CSkpam6a.js"),a=require("./dist-CRLbUj9C.js"),o=require("./dist-DynSBUGq.js"),s=require("./dist-CuMQq0hV.js"),c=require("./dist-Byhx2fDJ.js"),l=require("./dist-CCXBcfM3.js"),u=require("./es2015-D22cM8Q_.js"),d=require("./dist-ChuP-5Gb.js"),f=require("./dist-DMnXk8Uo.js");let p=require("react"),m=e.r(p,1);p=e.r(p);let h=require("react/jsx-runtime");var g=`Popover`,[_,v]=i.n(g,[f.a]),y=f.a(),[b,x]=_(g),S=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=y(t),u=m.useRef(null),[d,p]=m.useState(!1),[_,v]=o.t({prop:r,defaultProp:i??!1,onChange:a,caller:g});return(0,h.jsx)(f.i,{...l,children:(0,h.jsx)(b,{scope:t,contentId:c.t(),triggerRef:u,open:_,onOpenChange:v,onOpenToggle:m.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:d,onCustomAnchorAdd:m.useCallback(()=>p(!0),[]),onCustomAnchorRemove:m.useCallback(()=>p(!1),[]),modal:s,children:n})})};S.displayName=g;var C=`PopoverAnchor`,w=m.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=x(C,n),a=y(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return m.useEffect(()=>(o(),()=>s()),[o,s]),(0,h.jsx)(f.t,{...a,...r,ref:t})});w.displayName=C;var T=`PopoverTrigger`,E=m.forwardRef((e,t)=>{let{__scopePopover:i,...o}=e,s=x(T,i),c=y(i),l=n.a(t,s.triggerRef),u=(0,h.jsx)(r.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":s.open,"aria-controls":s.contentId,"data-state":V(s.open),...o,ref:l,onClick:a.t(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,h.jsx)(f.t,{asChild:!0,...c,children:u})});E.displayName=T;var D=`PopoverPortal`,[O,k]=_(D,{forceMount:void 0}),A=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=x(D,t);return(0,h.jsx)(O,{scope:t,forceMount:n,children:(0,h.jsx)(s.t,{present:n||a.open,children:(0,h.jsx)(d.t,{asChild:!0,container:i,children:r})})})};A.displayName=D;var j=`PopoverContent`,M=m.forwardRef((e,t)=>{let n=k(j,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=x(j,e.__scopePopover);return(0,h.jsx)(s.t,{present:r||a.open,children:a.modal?(0,h.jsx)(P,{...i,ref:t}):(0,h.jsx)(F,{...i,ref:t})})});M.displayName=j;var N=n.n(`PopoverContent.RemoveScroll`),P=m.forwardRef((e,t)=>{let r=x(j,e.__scopePopover),i=m.useRef(null),o=n.a(t,i),s=m.useRef(!1);return m.useEffect(()=>{let e=i.current;if(e)return u.t(e)},[]),(0,h.jsx)(u.n,{as:N,allowPinchZoom:!0,children:(0,h.jsx)(I,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:a.t(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:a.t(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;s.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:a.t(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),F=m.forwardRef((e,t)=>{let n=x(j,e.__scopePopover),r=m.useRef(!1),i=m.useRef(!1);return(0,h.jsx)(I,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),I=m.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:p,...m}=e,g=x(j,n),_=y(n);return u.r(),(0,h.jsx)(u.i,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,h.jsx)(l.n,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:(0,h.jsx)(f.r,{"data-state":V(g.open),role:`dialog`,id:g.contentId,..._,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),L=`PopoverClose`,R=m.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,o=x(L,n);return(0,h.jsx)(r.t.button,{type:`button`,...i,ref:t,onClick:a.t(e.onClick,()=>o.onOpenChange(!1))})});R.displayName=L;var z=`PopoverArrow`,B=m.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=y(n);return(0,h.jsx)(f.n,{...i,...r,ref:t})});B.displayName=z;function V(e){return e?`open`:`closed`}var H=S,U=w,W=E,G=A,K=M;function q({...e}){return(0,h.jsx)(H,{"data-slot":`popover`,...e})}function J({...e}){return(0,h.jsx)(W,{"data-slot":`popover-trigger`,...e})}function Y({className:e,align:n=`center`,sideOffset:r=4,...i}){return(0,h.jsx)(G,{children:(0,h.jsx)(K,{"data-slot":`popover-content`,align:n,sideOffset:r,className:t.t(`bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[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 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100`,e),...i})})}function X({...e}){return(0,h.jsx)(U,{"data-slot":`popover-anchor`,...e})}function Z({className:e,...n}){return(0,h.jsx)(`div`,{"data-slot":`popover-header`,className:t.t(`flex flex-col gap-0.5 text-sm`,e),...n})}function Q({className:e,...n}){return(0,h.jsx)(`div`,{"data-slot":`popover-title`,className:t.t(`font-medium`,e),...n})}function $({className:e,...n}){return(0,h.jsx)(`p`,{"data-slot":`popover-description`,className:t.t(`text-muted-foreground`,e),...n})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return q}});
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
+
import { a as t, n } from "./dist-CQhWBhaI.mjs";
|
|
3
|
+
import { t as r } from "./dist-Cacc4QIh.mjs";
|
|
4
|
+
import { n as i } from "./dist-Bm8Cuttq.mjs";
|
|
5
|
+
import { t as a } from "./dist-BPBwSSyk.mjs";
|
|
6
|
+
import { t as o } from "./dist-DuTFGM_g.mjs";
|
|
7
|
+
import { t as s } from "./dist-rGeQfsgN.mjs";
|
|
8
|
+
import { t as c } from "./dist-Df2ez-DA.mjs";
|
|
9
|
+
import { n as l } from "./dist-BWwCr-xN.mjs";
|
|
10
|
+
import { i as u, n as d, r as f, t as p } from "./es2015-BhmbVcui.mjs";
|
|
11
|
+
import { t as m } from "./dist-CDU9vno-.mjs";
|
|
12
|
+
import { a as h, i as g, n as _, r as v, t as y } from "./dist-BGZDG175.mjs";
|
|
13
|
+
import * as b from "react";
|
|
14
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
15
|
+
//#region ../../node_modules/.bun/@radix-ui+react-popover@1.1.15+2d3f272c3a65784a/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
16
|
+
var S = "Popover", [C, ee] = i(S, [h]), w = h(), [T, E] = C(S), D = (e) => {
|
|
17
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: s = !1 } = e, l = w(t), u = b.useRef(null), [d, f] = b.useState(!1), [p, m] = o({
|
|
18
|
+
prop: r,
|
|
19
|
+
defaultProp: i ?? !1,
|
|
20
|
+
onChange: a,
|
|
21
|
+
caller: S
|
|
22
|
+
});
|
|
23
|
+
return /* @__PURE__ */ x(g, {
|
|
24
|
+
...l,
|
|
25
|
+
children: /* @__PURE__ */ x(T, {
|
|
26
|
+
scope: t,
|
|
27
|
+
contentId: c(),
|
|
28
|
+
triggerRef: u,
|
|
29
|
+
open: p,
|
|
30
|
+
onOpenChange: m,
|
|
31
|
+
onOpenToggle: b.useCallback(() => m((e) => !e), [m]),
|
|
32
|
+
hasCustomAnchor: d,
|
|
33
|
+
onCustomAnchorAdd: b.useCallback(() => f(!0), []),
|
|
34
|
+
onCustomAnchorRemove: b.useCallback(() => f(!1), []),
|
|
35
|
+
modal: s,
|
|
36
|
+
children: n
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
D.displayName = S;
|
|
41
|
+
var O = "PopoverAnchor", k = b.forwardRef((e, t) => {
|
|
42
|
+
let { __scopePopover: n, ...r } = e, i = E(O, n), a = w(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
43
|
+
return b.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ x(y, {
|
|
44
|
+
...a,
|
|
45
|
+
...r,
|
|
46
|
+
ref: t
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
k.displayName = O;
|
|
50
|
+
var A = "PopoverTrigger", j = b.forwardRef((e, n) => {
|
|
51
|
+
let { __scopePopover: i, ...o } = e, s = E(A, i), c = w(i), l = t(n, s.triggerRef), u = /* @__PURE__ */ x(r.button, {
|
|
52
|
+
type: "button",
|
|
53
|
+
"aria-haspopup": "dialog",
|
|
54
|
+
"aria-expanded": s.open,
|
|
55
|
+
"aria-controls": s.contentId,
|
|
56
|
+
"data-state": K(s.open),
|
|
57
|
+
...o,
|
|
58
|
+
ref: l,
|
|
59
|
+
onClick: a(e.onClick, s.onOpenToggle)
|
|
60
|
+
});
|
|
61
|
+
return s.hasCustomAnchor ? u : /* @__PURE__ */ x(y, {
|
|
62
|
+
asChild: !0,
|
|
63
|
+
...c,
|
|
64
|
+
children: u
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
j.displayName = A;
|
|
68
|
+
var M = "PopoverPortal", [N, P] = C(M, { forceMount: void 0 }), F = (e) => {
|
|
69
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = E(M, t);
|
|
70
|
+
return /* @__PURE__ */ x(N, {
|
|
71
|
+
scope: t,
|
|
72
|
+
forceMount: n,
|
|
73
|
+
children: /* @__PURE__ */ x(s, {
|
|
74
|
+
present: n || a.open,
|
|
75
|
+
children: /* @__PURE__ */ x(m, {
|
|
76
|
+
asChild: !0,
|
|
77
|
+
container: i,
|
|
78
|
+
children: r
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
F.displayName = M;
|
|
84
|
+
var I = "PopoverContent", L = b.forwardRef((e, t) => {
|
|
85
|
+
let n = P(I, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = E(I, e.__scopePopover);
|
|
86
|
+
return /* @__PURE__ */ x(s, {
|
|
87
|
+
present: r || a.open,
|
|
88
|
+
children: a.modal ? /* @__PURE__ */ x(z, {
|
|
89
|
+
...i,
|
|
90
|
+
ref: t
|
|
91
|
+
}) : /* @__PURE__ */ x(B, {
|
|
92
|
+
...i,
|
|
93
|
+
ref: t
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
L.displayName = I;
|
|
98
|
+
var R = n("PopoverContent.RemoveScroll"), z = b.forwardRef((e, n) => {
|
|
99
|
+
let r = E(I, e.__scopePopover), i = b.useRef(null), o = t(n, i), s = b.useRef(!1);
|
|
100
|
+
return b.useEffect(() => {
|
|
101
|
+
let e = i.current;
|
|
102
|
+
if (e) return p(e);
|
|
103
|
+
}, []), /* @__PURE__ */ x(d, {
|
|
104
|
+
as: R,
|
|
105
|
+
allowPinchZoom: !0,
|
|
106
|
+
children: /* @__PURE__ */ x(V, {
|
|
107
|
+
...e,
|
|
108
|
+
ref: o,
|
|
109
|
+
trapFocus: r.open,
|
|
110
|
+
disableOutsidePointerEvents: !0,
|
|
111
|
+
onCloseAutoFocus: a(e.onCloseAutoFocus, (e) => {
|
|
112
|
+
e.preventDefault(), s.current || r.triggerRef.current?.focus();
|
|
113
|
+
}),
|
|
114
|
+
onPointerDownOutside: a(e.onPointerDownOutside, (e) => {
|
|
115
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
116
|
+
s.current = t.button === 2 || n;
|
|
117
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
118
|
+
onFocusOutside: a(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
}), B = b.forwardRef((e, t) => {
|
|
122
|
+
let n = E(I, e.__scopePopover), r = b.useRef(!1), i = b.useRef(!1);
|
|
123
|
+
return /* @__PURE__ */ x(V, {
|
|
124
|
+
...e,
|
|
125
|
+
ref: t,
|
|
126
|
+
trapFocus: !1,
|
|
127
|
+
disableOutsidePointerEvents: !1,
|
|
128
|
+
onCloseAutoFocus: (t) => {
|
|
129
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
130
|
+
},
|
|
131
|
+
onInteractOutside: (t) => {
|
|
132
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
133
|
+
let a = t.target;
|
|
134
|
+
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}), V = b.forwardRef((e, t) => {
|
|
138
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: d, onInteractOutside: p, ...m } = e, h = E(I, n), g = w(n);
|
|
139
|
+
return f(), /* @__PURE__ */ x(u, {
|
|
140
|
+
asChild: !0,
|
|
141
|
+
loop: !0,
|
|
142
|
+
trapped: r,
|
|
143
|
+
onMountAutoFocus: i,
|
|
144
|
+
onUnmountAutoFocus: a,
|
|
145
|
+
children: /* @__PURE__ */ x(l, {
|
|
146
|
+
asChild: !0,
|
|
147
|
+
disableOutsidePointerEvents: o,
|
|
148
|
+
onInteractOutside: p,
|
|
149
|
+
onEscapeKeyDown: s,
|
|
150
|
+
onPointerDownOutside: c,
|
|
151
|
+
onFocusOutside: d,
|
|
152
|
+
onDismiss: () => h.onOpenChange(!1),
|
|
153
|
+
children: /* @__PURE__ */ x(v, {
|
|
154
|
+
"data-state": K(h.open),
|
|
155
|
+
role: "dialog",
|
|
156
|
+
id: h.contentId,
|
|
157
|
+
...g,
|
|
158
|
+
...m,
|
|
159
|
+
ref: t,
|
|
160
|
+
style: {
|
|
161
|
+
...m.style,
|
|
162
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
163
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
164
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
165
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
166
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
167
|
+
}
|
|
168
|
+
})
|
|
169
|
+
})
|
|
170
|
+
});
|
|
171
|
+
}), H = "PopoverClose", U = b.forwardRef((e, t) => {
|
|
172
|
+
let { __scopePopover: n, ...i } = e, o = E(H, n);
|
|
173
|
+
return /* @__PURE__ */ x(r.button, {
|
|
174
|
+
type: "button",
|
|
175
|
+
...i,
|
|
176
|
+
ref: t,
|
|
177
|
+
onClick: a(e.onClick, () => o.onOpenChange(!1))
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
U.displayName = H;
|
|
181
|
+
var W = "PopoverArrow", G = b.forwardRef((e, t) => {
|
|
182
|
+
let { __scopePopover: n, ...r } = e;
|
|
183
|
+
return /* @__PURE__ */ x(_, {
|
|
184
|
+
...w(n),
|
|
185
|
+
...r,
|
|
186
|
+
ref: t
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
G.displayName = W;
|
|
190
|
+
function K(e) {
|
|
191
|
+
return e ? "open" : "closed";
|
|
192
|
+
}
|
|
193
|
+
var q = D, J = k, Y = j, X = F, Z = L;
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region src/popover.tsx
|
|
196
|
+
function Q({ ...e }) {
|
|
197
|
+
return /* @__PURE__ */ x(q, {
|
|
198
|
+
"data-slot": "popover",
|
|
199
|
+
...e
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
function $({ ...e }) {
|
|
203
|
+
return /* @__PURE__ */ x(Y, {
|
|
204
|
+
"data-slot": "popover-trigger",
|
|
205
|
+
...e
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function te({ className: t, align: n = "center", sideOffset: r = 4, ...i }) {
|
|
209
|
+
return /* @__PURE__ */ x(X, { children: /* @__PURE__ */ x(Z, {
|
|
210
|
+
"data-slot": "popover-content",
|
|
211
|
+
align: n,
|
|
212
|
+
sideOffset: r,
|
|
213
|
+
className: e("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[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 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100", t),
|
|
214
|
+
...i
|
|
215
|
+
}) });
|
|
216
|
+
}
|
|
217
|
+
function ne({ ...e }) {
|
|
218
|
+
return /* @__PURE__ */ x(J, {
|
|
219
|
+
"data-slot": "popover-anchor",
|
|
220
|
+
...e
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
function re({ className: t, ...n }) {
|
|
224
|
+
return /* @__PURE__ */ x("div", {
|
|
225
|
+
"data-slot": "popover-header",
|
|
226
|
+
className: e("flex flex-col gap-0.5 text-sm", t),
|
|
227
|
+
...n
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
function ie({ className: t, ...n }) {
|
|
231
|
+
return /* @__PURE__ */ x("div", {
|
|
232
|
+
"data-slot": "popover-title",
|
|
233
|
+
className: e("font-medium", t),
|
|
234
|
+
...n
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
function ae({ className: t, ...n }) {
|
|
238
|
+
return /* @__PURE__ */ x("p", {
|
|
239
|
+
"data-slot": "popover-description",
|
|
240
|
+
className: e("text-muted-foreground", t),
|
|
241
|
+
...n
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
//#endregion
|
|
245
|
+
export { re as a, ae as i, ne as n, ie as o, te as r, $ as s, Q as t };
|
package/dist/popover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./popover-D1AO-E8p.js");exports.Popover=e.t,exports.PopoverAnchor=e.n,exports.PopoverContent=e.r,exports.PopoverDescription=e.i,exports.PopoverHeader=e.a,exports.PopoverTitle=e.o,exports.PopoverTrigger=e.s;
|
package/dist/popover.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
3
2
|
import * as React from 'react';
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function PopoverDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
|
|
10
11
|
//# sourceMappingURL=popover.d.ts.map
|
package/dist/popover.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../src/popover.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../src/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEhF;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAE1F;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAevD;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,2CAExF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAE1E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAExE;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAE7E;AAED,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/popover.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { r as Popover, t as PopoverAnchor, n as PopoverContent, e as PopoverTrigger };
|
|
2
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./popover-wQACF3ut.mjs";
|
|
3
|
+
export { o as Popover, n as PopoverAnchor, i as PopoverContent, t as PopoverDescription, e as PopoverHeader, r as PopoverTitle, a as PopoverTrigger };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
-
import { t } from "./dist-
|
|
3
|
-
import {
|
|
2
|
+
import { t } from "./dist-Cacc4QIh.mjs";
|
|
3
|
+
import { n } from "./dist-Bm8Cuttq.mjs";
|
|
4
4
|
import * as r from "react";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../node_modules/.bun/@radix-ui+react-progress@1.1.
|
|
6
|
+
//#region ../../node_modules/.bun/@radix-ui+react-progress@1.1.7+2d3f272c3a65784a/node_modules/@radix-ui/react-progress/dist/index.mjs
|
|
7
7
|
var a = "Progress", o = 100, [s, c] = n(a), [l, u] = s(a), d = r.forwardRef((e, n) => {
|
|
8
8
|
let { __scopeProgress: r, value: a = null, max: s, getValueLabel: c = m, ...u } = e;
|
|
9
9
|
(s || s === 0) && !_(s) && console.error(y(`${s}`, "Progress"));
|
|
@@ -66,16 +66,21 @@ function b(e, t) {
|
|
|
66
66
|
|
|
67
67
|
Defaulting to \`null\`.`;
|
|
68
68
|
}
|
|
69
|
-
var x = d, S = p
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
var x = d, S = p;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/progress.tsx
|
|
72
|
+
function C({ className: t, value: n, ...r }) {
|
|
73
|
+
return /* @__PURE__ */ i(x, {
|
|
74
|
+
"data-slot": "progress",
|
|
75
|
+
value: n,
|
|
76
|
+
className: e("bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full", t),
|
|
77
|
+
...r,
|
|
78
|
+
children: /* @__PURE__ */ i(S, {
|
|
79
|
+
"data-slot": "progress-indicator",
|
|
80
|
+
className: "bg-primary size-full flex-1 transition-all",
|
|
81
|
+
style: { transform: `translateX(-${100 - (n || 0)}%)` }
|
|
82
|
+
})
|
|
83
|
+
});
|
|
84
|
+
}
|
|
80
85
|
//#endregion
|
|
81
86
|
export { C as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-CiM892Rg.js"),r=require("./dist-CSkpam6a.js");let i=require("react"),a=e.r(i,1);i=e.r(i);let o=require("react/jsx-runtime");var s=`Progress`,c=100,[l,u]=r.n(s),[d,f]=l(s),p=a.forwardRef((e,t)=>{let{__scopeProgress:r,value:i=null,max:a,getValueLabel:s=g,...l}=e;(a||a===0)&&!y(a)&&console.error(x(`${a}`,`Progress`));let u=y(a)?a:c;i!==null&&!b(i,u)&&console.error(S(`${i}`,`Progress`));let f=b(i,u)?i:null,p=v(f)?s(f,u):void 0;return(0,o.jsx)(d,{scope:r,value:f,max:u,children:(0,o.jsx)(n.t.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":v(f)?f:void 0,"aria-valuetext":p,role:`progressbar`,"data-state":_(f,u),"data-value":f??void 0,"data-max":u,...l,ref:t})})});p.displayName=s;var m=`ProgressIndicator`,h=a.forwardRef((e,t)=>{let{__scopeProgress:r,...i}=e,a=f(m,r);return(0,o.jsx)(n.t.div,{"data-state":_(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...i,ref:t})});h.displayName=m;function g(e,t){return`${Math.round(e/t*100)}%`}function _(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function v(e){return typeof e==`number`}function y(e){return v(e)&&!isNaN(e)&&e>0}function b(e,t){return v(e)&&!isNaN(e)&&e<=t&&e>=0}function x(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${c}\`.`}function S(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
2
2
|
- a positive number
|
|
3
3
|
- less than the value passed to \`max\` (or ${c} if no \`max\` prop is set)
|
|
4
4
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
5
|
|
|
6
|
-
Defaulting to \`null\`.`}var C=p,w=h
|
|
6
|
+
Defaulting to \`null\`.`}var C=p,w=h;function T({className:e,value:n,...r}){return(0,o.jsx)(C,{"data-slot":`progress`,value:n,className:t.t(`bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full`,e),...r,children:(0,o.jsx)(w,{"data-slot":`progress-indicator`,className:`bg-primary size-full flex-1 transition-all`,style:{transform:`translateX(-${100-(n||0)}%)`}})})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
|
package/dist/progress.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./progress-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./progress-ShXZwOfj.js");exports.Progress=e.t;
|
package/dist/progress.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
1
|
+
import { Progress as ProgressPrimitive } from 'radix-ui';
|
|
3
2
|
import * as React from 'react';
|
|
4
|
-
declare
|
|
3
|
+
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export { Progress };
|
|
6
|
-
export type { ProgressBaseProps as ProgressProps };
|
|
7
5
|
//# sourceMappingURL=progress.d.ts.map
|
package/dist/progress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../src/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../src/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,2CAepG;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/progress.mjs
CHANGED