@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
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { MinusIcon as i } from "lucide-react";
|
|
5
|
+
//#region ../../node_modules/.bun/input-otp@1.4.2+d0e719b86e9808b5/node_modules/input-otp/dist/index.mjs
|
|
6
|
+
var a = Object.defineProperty, o = Object.defineProperties, s = Object.getOwnPropertyDescriptors, c = Object.getOwnPropertySymbols, l = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable, d = (e, t, n) => t in e ? a(e, t, {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: n
|
|
11
|
+
}) : e[t] = n, f = (e, t) => {
|
|
12
|
+
for (var n in t ||= {}) l.call(t, n) && d(e, n, t[n]);
|
|
13
|
+
if (c) for (var n of c(t)) u.call(t, n) && d(e, n, t[n]);
|
|
14
|
+
return e;
|
|
15
|
+
}, p = (e, t) => o(e, s(t)), m = (e, t) => {
|
|
16
|
+
var n = {};
|
|
17
|
+
for (var r in e) l.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
18
|
+
if (e != null && c) for (var r of c(e)) t.indexOf(r) < 0 && u.call(e, r) && (n[r] = e[r]);
|
|
19
|
+
return n;
|
|
20
|
+
};
|
|
21
|
+
function h(e) {
|
|
22
|
+
return [
|
|
23
|
+
setTimeout(e, 0),
|
|
24
|
+
setTimeout(e, 10),
|
|
25
|
+
setTimeout(e, 50)
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
function g(e) {
|
|
29
|
+
let n = t.useRef();
|
|
30
|
+
return t.useEffect(() => {
|
|
31
|
+
n.current = e;
|
|
32
|
+
}), n.current;
|
|
33
|
+
}
|
|
34
|
+
var _ = 18, v = 40, y = `${v}px`, b = [
|
|
35
|
+
"[data-lastpass-icon-root]",
|
|
36
|
+
"com-1password-button",
|
|
37
|
+
"[data-dashlanecreated]",
|
|
38
|
+
"[style$=\"2147483647 !important;\"]"
|
|
39
|
+
].join(",");
|
|
40
|
+
function x({ containerRef: e, inputRef: n, pushPasswordManagerStrategy: r, isFocused: i }) {
|
|
41
|
+
let [a, o] = t.useState(!1), [s, c] = t.useState(!1), [l, u] = t.useState(!1), d = t.useMemo(() => r === "none" ? !1 : (r === "increase-width" || r === "experimental-no-flickering") && a && s, [
|
|
42
|
+
a,
|
|
43
|
+
s,
|
|
44
|
+
r
|
|
45
|
+
]), f = t.useCallback(() => {
|
|
46
|
+
let t = e.current, i = n.current;
|
|
47
|
+
if (!t || !i || l || r === "none") return;
|
|
48
|
+
let a = t, s = a.getBoundingClientRect().left + a.offsetWidth, c = a.getBoundingClientRect().top + a.offsetHeight / 2, d = s - _, f = c;
|
|
49
|
+
document.querySelectorAll(b).length === 0 && document.elementFromPoint(d, f) === t || (o(!0), u(!0));
|
|
50
|
+
}, [
|
|
51
|
+
e,
|
|
52
|
+
n,
|
|
53
|
+
l,
|
|
54
|
+
r
|
|
55
|
+
]);
|
|
56
|
+
return t.useEffect(() => {
|
|
57
|
+
let t = e.current;
|
|
58
|
+
if (!t || r === "none") return;
|
|
59
|
+
function n() {
|
|
60
|
+
c(window.innerWidth - t.getBoundingClientRect().right >= v);
|
|
61
|
+
}
|
|
62
|
+
n();
|
|
63
|
+
let i = setInterval(n, 1e3);
|
|
64
|
+
return () => {
|
|
65
|
+
clearInterval(i);
|
|
66
|
+
};
|
|
67
|
+
}, [e, r]), t.useEffect(() => {
|
|
68
|
+
let e = i || document.activeElement === n.current;
|
|
69
|
+
if (r === "none" || !e) return;
|
|
70
|
+
let t = setTimeout(f, 0), a = setTimeout(f, 2e3), o = setTimeout(f, 5e3), s = setTimeout(() => {
|
|
71
|
+
u(!0);
|
|
72
|
+
}, 6e3);
|
|
73
|
+
return () => {
|
|
74
|
+
clearTimeout(t), clearTimeout(a), clearTimeout(o), clearTimeout(s);
|
|
75
|
+
};
|
|
76
|
+
}, [
|
|
77
|
+
n,
|
|
78
|
+
i,
|
|
79
|
+
r,
|
|
80
|
+
f
|
|
81
|
+
]), {
|
|
82
|
+
hasPWMBadge: a,
|
|
83
|
+
willPushPWMBadge: d,
|
|
84
|
+
PWM_BADGE_SPACE_WIDTH: y
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
var S = t.createContext({}), C = t.forwardRef((e, n) => {
|
|
88
|
+
var r = e, { value: i, onChange: a, maxLength: o, textAlign: s = "left", pattern: c, placeholder: l, inputMode: u = "numeric", onComplete: d, pushPasswordManagerStrategy: _ = "increase-width", pasteTransformer: v, containerClassName: y, noScriptCSSFallback: b = T, render: C, children: E } = r, D = m(r, [
|
|
89
|
+
"value",
|
|
90
|
+
"onChange",
|
|
91
|
+
"maxLength",
|
|
92
|
+
"textAlign",
|
|
93
|
+
"pattern",
|
|
94
|
+
"placeholder",
|
|
95
|
+
"inputMode",
|
|
96
|
+
"onComplete",
|
|
97
|
+
"pushPasswordManagerStrategy",
|
|
98
|
+
"pasteTransformer",
|
|
99
|
+
"containerClassName",
|
|
100
|
+
"noScriptCSSFallback",
|
|
101
|
+
"render",
|
|
102
|
+
"children"
|
|
103
|
+
]), O;
|
|
104
|
+
let [k, A] = t.useState(typeof D.defaultValue == "string" ? D.defaultValue : ""), j = i ?? k, M = g(j), N = t.useCallback((e) => {
|
|
105
|
+
a?.(e), A(e);
|
|
106
|
+
}, [a]), P = t.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), F = t.useRef(null), I = t.useRef(null), L = t.useRef({
|
|
107
|
+
value: j,
|
|
108
|
+
onChange: N,
|
|
109
|
+
isIOS: typeof window < "u" && ((O = window == null ? void 0 : window.CSS)?.supports)?.call(O, "-webkit-touch-callout", "none")
|
|
110
|
+
}), R = t.useRef({ prev: [
|
|
111
|
+
F.current?.selectionStart,
|
|
112
|
+
F.current?.selectionEnd,
|
|
113
|
+
F.current?.selectionDirection
|
|
114
|
+
] });
|
|
115
|
+
t.useImperativeHandle(n, () => F.current, []), t.useEffect(() => {
|
|
116
|
+
let e = F.current, t = I.current;
|
|
117
|
+
if (!e || !t) return;
|
|
118
|
+
L.current.value !== e.value && L.current.onChange(e.value), R.current.prev = [
|
|
119
|
+
e.selectionStart,
|
|
120
|
+
e.selectionEnd,
|
|
121
|
+
e.selectionDirection
|
|
122
|
+
];
|
|
123
|
+
function n() {
|
|
124
|
+
if (document.activeElement !== e) {
|
|
125
|
+
W(null), K(null);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
let t = e.selectionStart, n = e.selectionEnd, r = e.selectionDirection, i = e.maxLength, a = e.value, o = R.current.prev, s = -1, c = -1, l;
|
|
129
|
+
if (a.length !== 0 && t !== null && n !== null) {
|
|
130
|
+
let e = t === n, r = t === a.length && a.length < i;
|
|
131
|
+
if (e && !r) {
|
|
132
|
+
let e = t;
|
|
133
|
+
if (e === 0) s = 0, c = 1, l = "forward";
|
|
134
|
+
else if (e === i) s = e - 1, c = e, l = "backward";
|
|
135
|
+
else if (i > 1 && a.length > 1) {
|
|
136
|
+
let t = 0;
|
|
137
|
+
if (o[0] !== null && o[1] !== null) {
|
|
138
|
+
l = e < o[1] ? "backward" : "forward";
|
|
139
|
+
let n = o[0] === o[1] && o[0] < i;
|
|
140
|
+
l === "backward" && !n && (t = -1);
|
|
141
|
+
}
|
|
142
|
+
s = t + e, c = t + e + 1;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
s !== -1 && c !== -1 && s !== c && F.current.setSelectionRange(s, c, l);
|
|
146
|
+
}
|
|
147
|
+
let u = s === -1 ? t : s, d = c === -1 ? n : c, f = l ?? r;
|
|
148
|
+
W(u), K(d), R.current.prev = [
|
|
149
|
+
u,
|
|
150
|
+
d,
|
|
151
|
+
f
|
|
152
|
+
];
|
|
153
|
+
}
|
|
154
|
+
if (document.addEventListener("selectionchange", n, { capture: !0 }), n(), document.activeElement === e && H(!0), !document.getElementById("input-otp-style")) {
|
|
155
|
+
let e = document.createElement("style");
|
|
156
|
+
if (e.id = "input-otp-style", document.head.appendChild(e), e.sheet) {
|
|
157
|
+
let t = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
|
|
158
|
+
w(e.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), w(e.sheet, `[data-input-otp]:autofill { ${t} }`), w(e.sheet, `[data-input-otp]:-webkit-autofill { ${t} }`), w(e.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), w(e.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
let r = () => {
|
|
162
|
+
t && t.style.setProperty("--root-height", `${e.clientHeight}px`);
|
|
163
|
+
};
|
|
164
|
+
r();
|
|
165
|
+
let i = new ResizeObserver(r);
|
|
166
|
+
return i.observe(e), () => {
|
|
167
|
+
document.removeEventListener("selectionchange", n, { capture: !0 }), i.disconnect();
|
|
168
|
+
};
|
|
169
|
+
}, []);
|
|
170
|
+
let [z, B] = t.useState(!1), [V, H] = t.useState(!1), [U, W] = t.useState(null), [G, K] = t.useState(null);
|
|
171
|
+
t.useEffect(() => {
|
|
172
|
+
h(() => {
|
|
173
|
+
var e;
|
|
174
|
+
(e = F.current) == null || e.dispatchEvent(new Event("input"));
|
|
175
|
+
let t = F.current?.selectionStart, n = F.current?.selectionEnd, r = F.current?.selectionDirection;
|
|
176
|
+
t !== null && n !== null && (W(t), K(n), R.current.prev = [
|
|
177
|
+
t,
|
|
178
|
+
n,
|
|
179
|
+
r
|
|
180
|
+
]);
|
|
181
|
+
});
|
|
182
|
+
}, [j, V]), t.useEffect(() => {
|
|
183
|
+
M !== void 0 && j !== M && M.length < o && j.length === o && d?.(j);
|
|
184
|
+
}, [
|
|
185
|
+
o,
|
|
186
|
+
d,
|
|
187
|
+
M,
|
|
188
|
+
j
|
|
189
|
+
]);
|
|
190
|
+
let q = x({
|
|
191
|
+
containerRef: I,
|
|
192
|
+
inputRef: F,
|
|
193
|
+
pushPasswordManagerStrategy: _,
|
|
194
|
+
isFocused: V
|
|
195
|
+
}), J = t.useCallback((e) => {
|
|
196
|
+
let t = e.currentTarget.value.slice(0, o);
|
|
197
|
+
if (t.length > 0 && P && !P.test(t)) {
|
|
198
|
+
e.preventDefault();
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
typeof M == "string" && t.length < M.length && document.dispatchEvent(new Event("selectionchange")), N(t);
|
|
202
|
+
}, [
|
|
203
|
+
o,
|
|
204
|
+
N,
|
|
205
|
+
M,
|
|
206
|
+
P
|
|
207
|
+
]), Y = t.useCallback(() => {
|
|
208
|
+
var e;
|
|
209
|
+
if (F.current) {
|
|
210
|
+
let t = Math.min(F.current.value.length, o - 1), n = F.current.value.length;
|
|
211
|
+
(e = F.current) == null || e.setSelectionRange(t, n), W(t), K(n);
|
|
212
|
+
}
|
|
213
|
+
H(!0);
|
|
214
|
+
}, [o]), X = t.useCallback((e) => {
|
|
215
|
+
let t = F.current;
|
|
216
|
+
if (!v && (!L.current.isIOS || !e.clipboardData || !t)) return;
|
|
217
|
+
let n = e.clipboardData.getData("text/plain"), r = v ? v(n) : n;
|
|
218
|
+
e.preventDefault();
|
|
219
|
+
let i = F.current?.selectionStart, a = F.current?.selectionEnd, s = (i === a ? j.slice(0, i) + r + j.slice(i) : j.slice(0, i) + r + j.slice(a)).slice(0, o);
|
|
220
|
+
if (s.length > 0 && P && !P.test(s)) return;
|
|
221
|
+
t.value = s, N(s);
|
|
222
|
+
let c = Math.min(s.length, o - 1), l = s.length;
|
|
223
|
+
t.setSelectionRange(c, l), W(c), K(l);
|
|
224
|
+
}, [
|
|
225
|
+
o,
|
|
226
|
+
N,
|
|
227
|
+
P,
|
|
228
|
+
j
|
|
229
|
+
]), Z = t.useMemo(() => ({
|
|
230
|
+
position: "relative",
|
|
231
|
+
cursor: D.disabled ? "default" : "text",
|
|
232
|
+
userSelect: "none",
|
|
233
|
+
WebkitUserSelect: "none",
|
|
234
|
+
pointerEvents: "none"
|
|
235
|
+
}), [D.disabled]), Q = t.useMemo(() => ({
|
|
236
|
+
position: "absolute",
|
|
237
|
+
inset: 0,
|
|
238
|
+
width: q.willPushPWMBadge ? `calc(100% + ${q.PWM_BADGE_SPACE_WIDTH})` : "100%",
|
|
239
|
+
clipPath: q.willPushPWMBadge ? `inset(0 ${q.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0,
|
|
240
|
+
height: "100%",
|
|
241
|
+
display: "flex",
|
|
242
|
+
textAlign: s,
|
|
243
|
+
opacity: "1",
|
|
244
|
+
color: "transparent",
|
|
245
|
+
pointerEvents: "all",
|
|
246
|
+
background: "transparent",
|
|
247
|
+
caretColor: "transparent",
|
|
248
|
+
border: "0 solid transparent",
|
|
249
|
+
outline: "0 solid transparent",
|
|
250
|
+
boxShadow: "none",
|
|
251
|
+
lineHeight: "1",
|
|
252
|
+
letterSpacing: "-.5em",
|
|
253
|
+
fontSize: "var(--root-height)",
|
|
254
|
+
fontFamily: "monospace",
|
|
255
|
+
fontVariantNumeric: "tabular-nums"
|
|
256
|
+
}), [
|
|
257
|
+
q.PWM_BADGE_SPACE_WIDTH,
|
|
258
|
+
q.willPushPWMBadge,
|
|
259
|
+
s
|
|
260
|
+
]), ee = t.useMemo(() => t.createElement("input", p(f({ autoComplete: D.autoComplete || "one-time-code" }, D), {
|
|
261
|
+
"data-input-otp": !0,
|
|
262
|
+
"data-input-otp-placeholder-shown": j.length === 0 || void 0,
|
|
263
|
+
"data-input-otp-mss": U,
|
|
264
|
+
"data-input-otp-mse": G,
|
|
265
|
+
inputMode: u,
|
|
266
|
+
pattern: P?.source,
|
|
267
|
+
"aria-placeholder": l,
|
|
268
|
+
style: Q,
|
|
269
|
+
maxLength: o,
|
|
270
|
+
value: j,
|
|
271
|
+
ref: F,
|
|
272
|
+
onPaste: (e) => {
|
|
273
|
+
var t;
|
|
274
|
+
X(e), (t = D.onPaste) == null || t.call(D, e);
|
|
275
|
+
},
|
|
276
|
+
onChange: J,
|
|
277
|
+
onMouseOver: (e) => {
|
|
278
|
+
var t;
|
|
279
|
+
B(!0), (t = D.onMouseOver) == null || t.call(D, e);
|
|
280
|
+
},
|
|
281
|
+
onMouseLeave: (e) => {
|
|
282
|
+
var t;
|
|
283
|
+
B(!1), (t = D.onMouseLeave) == null || t.call(D, e);
|
|
284
|
+
},
|
|
285
|
+
onFocus: (e) => {
|
|
286
|
+
var t;
|
|
287
|
+
Y(), (t = D.onFocus) == null || t.call(D, e);
|
|
288
|
+
},
|
|
289
|
+
onBlur: (e) => {
|
|
290
|
+
var t;
|
|
291
|
+
H(!1), (t = D.onBlur) == null || t.call(D, e);
|
|
292
|
+
}
|
|
293
|
+
})), [
|
|
294
|
+
J,
|
|
295
|
+
Y,
|
|
296
|
+
X,
|
|
297
|
+
u,
|
|
298
|
+
Q,
|
|
299
|
+
o,
|
|
300
|
+
G,
|
|
301
|
+
U,
|
|
302
|
+
D,
|
|
303
|
+
P?.source,
|
|
304
|
+
j
|
|
305
|
+
]), $ = t.useMemo(() => ({
|
|
306
|
+
slots: Array.from({ length: o }).map((e, t) => {
|
|
307
|
+
let n = V && U !== null && G !== null && (U === G && t === U || t >= U && t < G), r = j[t] === void 0 ? null : j[t];
|
|
308
|
+
return {
|
|
309
|
+
char: r,
|
|
310
|
+
placeholderChar: j[0] === void 0 ? l?.[t] ?? null : null,
|
|
311
|
+
isActive: n,
|
|
312
|
+
hasFakeCaret: n && r === null
|
|
313
|
+
};
|
|
314
|
+
}),
|
|
315
|
+
isFocused: V,
|
|
316
|
+
isHovering: !D.disabled && z
|
|
317
|
+
}), [
|
|
318
|
+
V,
|
|
319
|
+
z,
|
|
320
|
+
o,
|
|
321
|
+
G,
|
|
322
|
+
U,
|
|
323
|
+
D.disabled,
|
|
324
|
+
j
|
|
325
|
+
]), te = t.useMemo(() => C ? C($) : t.createElement(S.Provider, { value: $ }, E), [
|
|
326
|
+
E,
|
|
327
|
+
$,
|
|
328
|
+
C
|
|
329
|
+
]);
|
|
330
|
+
return t.createElement(t.Fragment, null, b !== null && t.createElement("noscript", null, t.createElement("style", null, b)), t.createElement("div", {
|
|
331
|
+
ref: I,
|
|
332
|
+
"data-input-otp-container": !0,
|
|
333
|
+
style: Z,
|
|
334
|
+
className: y
|
|
335
|
+
}, te, t.createElement("div", { style: {
|
|
336
|
+
position: "absolute",
|
|
337
|
+
inset: 0,
|
|
338
|
+
pointerEvents: "none"
|
|
339
|
+
} }, ee)));
|
|
340
|
+
});
|
|
341
|
+
C.displayName = "Input";
|
|
342
|
+
function w(e, t) {
|
|
343
|
+
try {
|
|
344
|
+
e.insertRule(t);
|
|
345
|
+
} catch {
|
|
346
|
+
console.error("input-otp could not insert CSS rule:", t);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
var T = "\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}";
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region src/input-otp.tsx
|
|
352
|
+
function E({ className: t, containerClassName: r, ...i }) {
|
|
353
|
+
return /* @__PURE__ */ n(C, {
|
|
354
|
+
"data-slot": "input-otp",
|
|
355
|
+
containerClassName: e("cn-input-otp flex items-center has-disabled:opacity-50", r),
|
|
356
|
+
spellCheck: !1,
|
|
357
|
+
className: e("disabled:cursor-not-allowed", t),
|
|
358
|
+
...i
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
function D({ className: t, ...r }) {
|
|
362
|
+
return /* @__PURE__ */ n("div", {
|
|
363
|
+
"data-slot": "input-otp-group",
|
|
364
|
+
className: e("has-aria-invalid:border-destructive has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center rounded-lg has-aria-invalid:ring-3", t),
|
|
365
|
+
...r
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
function O({ index: i, className: a, ...o }) {
|
|
369
|
+
let { char: s, hasFakeCaret: c, isActive: l } = t.useContext(S)?.slots[i] ?? {};
|
|
370
|
+
return /* @__PURE__ */ r("div", {
|
|
371
|
+
"data-slot": "input-otp-slot",
|
|
372
|
+
"data-active": l,
|
|
373
|
+
className: e("border-input aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex size-8 items-center justify-center border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg data-[active=true]:z-10 data-[active=true]:ring-3", a),
|
|
374
|
+
...o,
|
|
375
|
+
children: [s, c && /* @__PURE__ */ n("div", {
|
|
376
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
377
|
+
children: /* @__PURE__ */ n("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" })
|
|
378
|
+
})]
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
function k({ ...e }) {
|
|
382
|
+
return /* @__PURE__ */ n("div", {
|
|
383
|
+
"data-slot": "input-otp-separator",
|
|
384
|
+
className: "flex items-center [&_svg:not([class*=size-])]:size-4",
|
|
385
|
+
role: "separator",
|
|
386
|
+
...e,
|
|
387
|
+
children: /* @__PURE__ */ n(i, {})
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
//#endregion
|
|
391
|
+
export { O as i, D as n, k as r, E as t };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js");let n=require("react"),r=e.r(n,1);n=e.r(n);let i=require("react/jsx-runtime"),a=require("lucide-react");var o=Object.defineProperty,s=Object.defineProperties,c=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||={})u.call(t,n)&&f(e,n,t[n]);if(l)for(var n of l(t))d.call(t,n)&&f(e,n,t[n]);return e},m=(e,t)=>s(e,c(t)),h=(e,t)=>{var n={};for(var r in e)u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&l)for(var r of l(e))t.indexOf(r)<0&&d.call(e,r)&&(n[r]=e[r]);return n};function g(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}function _(e){let t=r.useRef();return r.useEffect(()=>{t.current=e}),t.current}var v=18,y=40,b=`${y}px`,x=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function S({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:i}){let[a,o]=r.useState(!1),[s,c]=r.useState(!1),[l,u]=r.useState(!1),d=r.useMemo(()=>n===`none`?!1:(n===`increase-width`||n===`experimental-no-flickering`)&&a&&s,[a,s,n]),f=r.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||l||n===`none`)return;let a=r,s=a.getBoundingClientRect().left+a.offsetWidth,c=a.getBoundingClientRect().top+a.offsetHeight/2,d=s-v,f=c;document.querySelectorAll(x).length===0&&document.elementFromPoint(d,f)===r||(o(!0),u(!0))},[e,t,l,n]);return r.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){c(window.innerWidth-t.getBoundingClientRect().right>=y)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),r.useEffect(()=>{let e=i||document.activeElement===t.current;if(n===`none`||!e)return;let r=setTimeout(f,0),a=setTimeout(f,2e3),o=setTimeout(f,5e3),s=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,i,n,f]),{hasPWMBadge:a,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:b}}var C=r.createContext({}),w=r.forwardRef((e,t)=>{var n=e,{value:i,onChange:a,maxLength:o,textAlign:s=`left`,pattern:c,placeholder:l,inputMode:u=`numeric`,onComplete:d,pushPasswordManagerStrategy:f=`increase-width`,pasteTransformer:v,containerClassName:y,noScriptCSSFallback:b=E,render:x,children:w}=n,D=h(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`render`,`children`]),O;let[k,A]=r.useState(typeof D.defaultValue==`string`?D.defaultValue:``),j=i??k,M=_(j),N=r.useCallback(e=>{a?.(e),A(e)},[a]),P=r.useMemo(()=>c?typeof c==`string`?new RegExp(c):c:null,[c]),F=r.useRef(null),I=r.useRef(null),L=r.useRef({value:j,onChange:N,isIOS:typeof window<`u`&&((O=window==null?void 0:window.CSS)?.supports)?.call(O,`-webkit-touch-callout`,`none`)}),R=r.useRef({prev:[F.current?.selectionStart,F.current?.selectionEnd,F.current?.selectionDirection]});r.useImperativeHandle(t,()=>F.current,[]),r.useEffect(()=>{let e=F.current,t=I.current;if(!e||!t)return;L.current.value!==e.value&&L.current.onChange(e.value),R.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){W(null),K(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=R.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let e=t===n,r=t===a.length&&a.length<i;if(e&&!r){let e=t;if(e===0)s=0,c=1,l=`forward`;else if(e===i)s=e-1,c=e,l=`backward`;else if(i>1&&a.length>1){let t=0;if(o[0]!==null&&o[1]!==null){l=e<o[1]?`backward`:`forward`;let n=o[0]===o[1]&&o[0]<i;l===`backward`&&!n&&(t=-1)}s=t+e,c=t+e+1}}s!==-1&&c!==-1&&s!==c&&F.current.setSelectionRange(s,c,l)}let u=s===-1?t:s,d=c===-1?n:c,f=l??r;W(u),K(d),R.current.prev=[u,d,f]}if(document.addEventListener(`selectionchange`,n,{capture:!0}),n(),document.activeElement===e&&H(!0),!document.getElementById(`input-otp-style`)){let e=document.createElement(`style`);if(e.id=`input-otp-style`,document.head.appendChild(e),e.sheet){let t=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;T(e.sheet,`[data-input-otp]::selection { background: transparent !important; color: transparent !important; }`),T(e.sheet,`[data-input-otp]:autofill { ${t} }`),T(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),T(e.sheet,`@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),T(e.sheet,`[data-input-otp] + * { pointer-events: all !important; }`)}}let r=()=>{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i.disconnect()}},[]);let[z,B]=r.useState(!1),[V,H]=r.useState(!1),[U,W]=r.useState(null),[G,K]=r.useState(null);r.useEffect(()=>{g(()=>{var e;(e=F.current)==null||e.dispatchEvent(new Event(`input`));let t=F.current?.selectionStart,n=F.current?.selectionEnd,r=F.current?.selectionDirection;t!==null&&n!==null&&(W(t),K(n),R.current.prev=[t,n,r])})},[j,V]),r.useEffect(()=>{M!==void 0&&j!==M&&M.length<o&&j.length===o&&d?.(j)},[o,d,M,j]);let q=S({containerRef:I,inputRef:F,pushPasswordManagerStrategy:f,isFocused:V}),J=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,o);if(t.length>0&&P&&!P.test(t)){e.preventDefault();return}typeof M==`string`&&t.length<M.length&&document.dispatchEvent(new Event(`selectionchange`)),N(t)},[o,N,M,P]),Y=r.useCallback(()=>{var e;if(F.current){let t=Math.min(F.current.value.length,o-1),n=F.current.value.length;(e=F.current)==null||e.setSelectionRange(t,n),W(t),K(n)}H(!0)},[o]),X=r.useCallback(e=>{let t=F.current;if(!v&&(!L.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=v?v(n):n;e.preventDefault();let i=F.current?.selectionStart,a=F.current?.selectionEnd,s=(i===a?j.slice(0,i)+r+j.slice(i):j.slice(0,i)+r+j.slice(a)).slice(0,o);if(s.length>0&&P&&!P.test(s))return;t.value=s,N(s);let c=Math.min(s.length,o-1),l=s.length;t.setSelectionRange(c,l),W(c),K(l)},[o,N,P,j]),Z=r.useMemo(()=>({position:`relative`,cursor:D.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[D.disabled]),Q=r.useMemo(()=>({position:`absolute`,inset:0,width:q.willPushPWMBadge?`calc(100% + ${q.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:q.willPushPWMBadge?`inset(0 ${q.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:s,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[q.PWM_BADGE_SPACE_WIDTH,q.willPushPWMBadge,s]),ee=r.useMemo(()=>r.createElement(`input`,m(p({autoComplete:D.autoComplete||`one-time-code`},D),{"data-input-otp":!0,"data-input-otp-placeholder-shown":j.length===0||void 0,"data-input-otp-mss":U,"data-input-otp-mse":G,inputMode:u,pattern:P?.source,"aria-placeholder":l,style:Q,maxLength:o,value:j,ref:F,onPaste:e=>{var t;X(e),(t=D.onPaste)==null||t.call(D,e)},onChange:J,onMouseOver:e=>{var t;B(!0),(t=D.onMouseOver)==null||t.call(D,e)},onMouseLeave:e=>{var t;B(!1),(t=D.onMouseLeave)==null||t.call(D,e)},onFocus:e=>{var t;Y(),(t=D.onFocus)==null||t.call(D,e)},onBlur:e=>{var t;H(!1),(t=D.onBlur)==null||t.call(D,e)}})),[J,Y,X,u,Q,o,G,U,D,P?.source,j]),$=r.useMemo(()=>({slots:Array.from({length:o}).map((e,t)=>{let n=V&&U!==null&&G!==null&&(U===G&&t===U||t>=U&&t<G),r=j[t]===void 0?null:j[t];return{char:r,placeholderChar:j[0]===void 0?l?.[t]??null:null,isActive:n,hasFakeCaret:n&&r===null}}),isFocused:V,isHovering:!D.disabled&&z}),[V,z,o,G,U,D.disabled,j]),te=r.useMemo(()=>x?x($):r.createElement(C.Provider,{value:$},w),[w,$,x]);return r.createElement(r.Fragment,null,b!==null&&r.createElement(`noscript`,null,r.createElement(`style`,null,b)),r.createElement(`div`,{ref:I,"data-input-otp-container":!0,style:Z,className:y},te,r.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},ee)))});w.displayName=`Input`;function T(e,t){try{e.insertRule(t)}catch{console.error(`input-otp could not insert CSS rule:`,t)}}var E=`
|
|
2
|
+
[data-input-otp] {
|
|
3
|
+
--nojs-bg: white !important;
|
|
4
|
+
--nojs-fg: black !important;
|
|
5
|
+
|
|
6
|
+
background-color: var(--nojs-bg) !important;
|
|
7
|
+
color: var(--nojs-fg) !important;
|
|
8
|
+
caret-color: var(--nojs-fg) !important;
|
|
9
|
+
letter-spacing: .25em !important;
|
|
10
|
+
text-align: center !important;
|
|
11
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
12
|
+
border-radius: 4px !important;
|
|
13
|
+
width: 100% !important;
|
|
14
|
+
}
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
[data-input-otp] {
|
|
17
|
+
--nojs-bg: black !important;
|
|
18
|
+
--nojs-fg: white !important;
|
|
19
|
+
}
|
|
20
|
+
}`;function D({className:e,containerClassName:n,...r}){return(0,i.jsx)(w,{"data-slot":`input-otp`,containerClassName:t.t(`cn-input-otp flex items-center has-disabled:opacity-50`,n),spellCheck:!1,className:t.t(`disabled:cursor-not-allowed`,e),...r})}function O({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`input-otp-group`,className:t.t(`has-aria-invalid:border-destructive has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center rounded-lg has-aria-invalid:ring-3`,e),...n})}function k({index:e,className:r,...a}){let{char:o,hasFakeCaret:s,isActive:c}=n.useContext(C)?.slots[e]??{};return(0,i.jsxs)(`div`,{"data-slot":`input-otp-slot`,"data-active":c,className:t.t(`border-input aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex size-8 items-center justify-center border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg data-[active=true]:z-10 data-[active=true]:ring-3`,r),...a,children:[o,s&&(0,i.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,i.jsx)(`div`,{className:`animate-caret-blink bg-foreground h-4 w-px duration-1000`})})]})}function A({...e}){return(0,i.jsx)(`div`,{"data-slot":`input-otp-separator`,className:`flex items-center [&_svg:not([class*=size-])]:size-4`,role:`separator`,...e,children:(0,i.jsx)(a.MinusIcon,{})})}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return D}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./input-otp-BibboKMt.js");exports.InputOTP=e.t,exports.InputOTPGroup=e.n,exports.InputOTPSeparator=e.r,exports.InputOTPSlot=e.i;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OTPInput } from 'input-otp';
|
|
2
|
+
import { InputOTPBaseProps, InputOTPGroupBaseProps, InputOTPSeparatorBaseProps, InputOTPSlotBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & InputOTPBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<'div'> & InputOTPGroupBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<'div'> & InputOTPSlotBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function InputOTPSeparator({ ...props }: React.ComponentProps<'div'> & InputOTPSeparatorBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
9
|
+
//# sourceMappingURL=input-otp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../src/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAI1B,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,GAAG,iBAAiB,2CAU3D;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,sBAAsB,2CAWnG;AAED,iBAAS,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,qBAAqB,2CAsBxG;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,0BAA0B,2CAWhG;AAED,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/input.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");let n=require("react");n=e.r(n);let r=require("react/jsx-runtime");function i({className:e,type:n,...i}){return(0,r.jsx)(`input`,{type:n,"data-slot":`input`,className:t.t(`border-input file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm`,e),...i})}exports.Input=i;
|
package/dist/input.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { InputBaseProps } from '@gv-tech/ui-core';
|
|
2
1
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
2
|
+
declare function Input({ className, type, ...props }: React.ComponentProps<'input'>): import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
export { Input };
|
|
7
4
|
//# sourceMappingURL=input.d.ts.map
|
package/dist/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAY1E;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/input.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use client";
|
|
3
2
|
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
4
|
-
import
|
|
5
|
-
import { jsx as
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
6
5
|
//#region src/input.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
function n({ className: n, type: r, ...i }) {
|
|
7
|
+
return /* @__PURE__ */ t("input", {
|
|
8
|
+
type: r,
|
|
9
|
+
"data-slot": "input",
|
|
10
|
+
className: e("border-input file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm", n),
|
|
11
|
+
...i
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
14
|
//#endregion
|
|
15
|
-
export {
|
|
15
|
+
export { n as Input };
|
package/dist/item.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-DR0lXVFG.js"),r=require("./separator-DBjErwHf.js");let i=require("react");i=e.r(i);let a=require("react/jsx-runtime"),o=require("class-variance-authority");function s({className:e,...n}){return(0,a.jsx)(`div`,{role:`list`,"data-slot":`item-group`,className:t.t(`group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2`,e),...n})}function c({className:e,...n}){return(0,a.jsx)(r.t,{"data-slot":`item-separator`,orientation:`horizontal`,className:t.t(`my-2`,e),...n})}var l=(0,o.cva)(`group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted`,{variants:{variant:{default:`border-transparent`,outline:`border-border`,muted:`border-transparent bg-muted/50`},size:{default:`gap-2.5 px-3 py-2.5`,sm:`gap-2.5 px-3 py-2.5`,xs:`gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0`}},defaultVariants:{variant:`default`,size:`default`}});function u({className:e,variant:r=`default`,size:i=`default`,asChild:o=!1,...s}){return(0,a.jsx)(o?n.t:`div`,{"data-slot":`item`,"data-variant":r,"data-size":i,className:t.t(l({variant:r,size:i,className:e})),...s})}var d=(0,o.cva)(`flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none`,{variants:{variant:{default:`bg-transparent`,icon:`[&_svg:not([class*=size-])]:size-4`,image:`size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function f({className:e,variant:n=`default`,...r}){return(0,a.jsx)(`div`,{"data-slot":`item-media`,"data-variant":n,className:t.t(d({variant:n,className:e})),...r})}function p({className:e,...n}){return(0,a.jsx)(`div`,{"data-slot":`item-content`,className:t.t(`flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none`,e),...n})}function m({className:e,...n}){return(0,a.jsx)(`div`,{"data-slot":`item-title`,className:t.t(`line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4`,e),...n})}function h({className:e,...n}){return(0,a.jsx)(`p`,{"data-slot":`item-description`,className:t.t(`text-muted-foreground [&>a:hover]:text-primary line-clamp-2 text-start text-sm leading-normal font-normal group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4`,e),...n})}function g({className:e,...n}){return(0,a.jsx)(`div`,{"data-slot":`item-actions`,className:t.t(`flex items-center gap-2`,e),...n})}function _({className:e,...n}){return(0,a.jsx)(`div`,{"data-slot":`item-header`,className:t.t(`flex basis-full items-center justify-between gap-2`,e),...n})}function v({className:e,...n}){return(0,a.jsx)(`div`,{"data-slot":`item-footer`,className:t.t(`flex basis-full items-center justify-between gap-2`,e),...n})}exports.Item=u,exports.ItemActions=g,exports.ItemContent=p,exports.ItemDescription=h,exports.ItemFooter=v,exports.ItemGroup=s,exports.ItemHeader=_,exports.ItemMedia=f,exports.ItemSeparator=c,exports.ItemTitle=m;
|
package/dist/item.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ItemActionsBaseProps, ItemBaseProps, ItemContentBaseProps, ItemDescriptionBaseProps, ItemFooterBaseProps, ItemGroupBaseProps, ItemHeaderBaseProps, ItemMediaBaseProps, ItemSeparatorBaseProps, ItemTitleBaseProps } from '@gv-tech/ui-core';
|
|
3
|
+
import { Separator } from './separator';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
declare function ItemGroup({ className, ...props }: React.ComponentProps<'div'> & ItemGroupBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator> & ItemSeparatorBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const itemVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
9
|
+
size?: "default" | "xs" | "sm" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
+
declare function Item({ className, variant, size, asChild, ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
} & ItemBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const itemMediaVariants: (props?: ({
|
|
15
|
+
variant?: "image" | "default" | "icon" | null | undefined;
|
|
16
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
17
|
+
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants> & ItemMediaBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function ItemContent({ className, ...props }: React.ComponentProps<'div'> & ItemContentBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function ItemTitle({ className, ...props }: React.ComponentProps<'div'> & ItemTitleBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function ItemDescription({ className, ...props }: React.ComponentProps<'p'> & ItemDescriptionBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function ItemActions({ className, ...props }: React.ComponentProps<'div'> & ItemActionsBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function ItemHeader({ className, ...props }: React.ComponentProps<'div'> & ItemHeaderBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function ItemFooter({ className, ...props }: React.ComponentProps<'div'> & ItemFooterBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, };
|
|
25
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../src/item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,kBAAkB,2CAY3F;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG,sBAAsB,2CAE9G;AAED,QAAA,MAAM,YAAY;;;8EAoBjB,CAAC;AAEF,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,aAAa,2CAWzG;AAED,QAAA,MAAM,iBAAiB;;8EAetB,CAAC;AAEF,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,GAAG,kBAAkB,2CAS3F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,oBAAoB,2CAW/F;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,kBAAkB,2CAW3F;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,wBAAwB,2CAWrG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,oBAAoB,2CAE/F;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,mBAAmB,2CAQ7F;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,mBAAmB,2CAQ7F;AAED,OAAO,EACL,IAAI,EACJ,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,SAAS,GACV,CAAC"}
|