@gv-tech/ui-web 2.28.0 → 2.29.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/__contracts.d.ts +44 -1
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/accordion-BgbjpZAF.js +1 -0
- package/dist/accordion-Bqt-y-u7.mjs +239 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +4 -4
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/alert-dialog-BkUyJb_F.mjs +182 -0
- package/dist/alert-dialog-DonbkCSD.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +12 -12
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.mjs +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +4 -4
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +2 -2
- package/dist/{aspect-ratio-DnChDaBi.mjs → aspect-ratio-C7oBX-p_.mjs} +10 -9
- package/dist/aspect-ratio-X3HWxQz0.js +1 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +1 -1
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/aspect-ratio.mjs +1 -1
- package/dist/attachment.cjs +1 -0
- package/dist/attachment.d.ts +23 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.mjs +101 -0
- package/dist/attachment.test.d.ts +2 -0
- package/dist/attachment.test.d.ts.map +1 -0
- package/dist/avatar-DTkhTxt7.mjs +133 -0
- package/dist/avatar-DhvZbCtI.js +1 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +6 -6
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +7 -7
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.mjs +25 -25
- package/dist/bubble.cjs +1 -0
- package/dist/bubble.d.ts +13 -0
- package/dist/bubble.d.ts.map +1 -0
- package/dist/bubble.mjs +72 -0
- package/dist/bubble.test.d.ts +2 -0
- package/dist/bubble.test.d.ts.map +1 -0
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.d.ts +3 -3
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button-group.mjs +6 -6
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.mjs +6 -6
- package/dist/calendar-Bo8kovKR.js +1 -0
- package/dist/{calendar-Dg6VGycy.mjs → calendar-CkHWa9Uu.mjs} +825 -803
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +2 -2
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +7 -7
- package/dist/card.d.ts.map +1 -1
- package/dist/card.mjs +5 -5
- package/dist/carousel-Cv5isLeg.js +1 -0
- package/dist/{carousel-DbDoNdqJ.mjs → carousel-ynaeMNIV.mjs} +53 -53
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +5 -5
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.d.ts +4 -4
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/checkbox-BLvAEmRC.mjs +182 -0
- package/dist/checkbox-Dt06B4YW.js +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +1 -0
- package/dist/chunk-HBS6WEDP-CzyhzCaP.mjs +63 -0
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +3 -3
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.mjs +1 -1
- package/dist/combobox-BB_YzCTY.js +4 -0
- package/dist/combobox-YxjYGUoe.mjs +5748 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +14 -14
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.mjs +1 -1
- package/dist/command-BqO-CfH6.js +1 -0
- package/dist/command-DY6u8V0D.mjs +545 -0
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +9 -9
- package/dist/command.d.ts.map +1 -1
- package/dist/command.mjs +1 -1
- package/dist/context-menu-Dad9hs94.js +1 -0
- package/dist/context-menu-tL6CY6a0.mjs +318 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +15 -15
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.mjs +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +10 -10
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.mjs +25 -25
- package/dist/direction.cjs +1 -1
- package/dist/direction.d.ts +1 -1
- package/dist/direction.d.ts.map +1 -1
- package/dist/direction.mjs +1 -1
- package/dist/dist-5r7hQmO0.mjs +187 -0
- package/dist/dist-6c2NeKfz.mjs +536 -0
- package/dist/dist-8fYwoWd4.mjs +111 -0
- package/dist/{dist-N3JLy7yk.mjs → dist-9-j0_8D1.mjs} +9 -4
- package/dist/dist-BIXhHahX.mjs +30 -0
- package/dist/dist-BMl8xXCH.mjs +188 -0
- package/dist/dist-BOKg7rhq.js +1 -0
- package/dist/dist-BPhn-EOy.mjs +15 -0
- package/dist/{dist-Cacc4QIh.mjs → dist-BQhMregZ.mjs} +9 -5
- package/dist/dist-BTN2t9yv.js +1 -0
- package/dist/dist-BUXpRW9O.mjs +100 -0
- package/dist/{dist-xgVOvcNx.mjs → dist-Bivv8B6p.mjs} +8 -3
- package/dist/dist-BoNQb2nd.js +1 -0
- package/dist/dist-ByW6RHeZ.mjs +94 -0
- package/dist/dist-C83rnWRv.js +1 -0
- package/dist/dist-C8Pm6LRc.js +1 -0
- package/dist/dist-CBsYNwXz.mjs +16 -0
- package/dist/dist-CS572Be42.mjs +11 -0
- package/dist/dist-CYrqAnIr.mjs +182 -0
- package/dist/dist-C_iFkwIX.js +1 -0
- package/dist/dist-CdBAkUWT.js +1 -0
- package/dist/dist-Cn7g8jD0.js +1 -0
- package/dist/dist-D7-Fky36.js +1 -0
- package/dist/{dist-C9PlF532.mjs → dist-D7UHN1DJ.mjs} +1 -1
- package/dist/dist-DJqkhIXb2.js +1 -0
- package/dist/dist-DMwCTE2i.mjs +90 -0
- package/dist/dist-DOoZ3vGL.mjs +407 -0
- package/dist/dist-DYUvPCPC.js +1 -0
- package/dist/dist-DZiOPWLp.js +1 -0
- package/dist/dist-DcRkoHAk.js +1 -0
- package/dist/dist-DfvK7DpO.mjs +213 -0
- package/dist/dist-Dg9ASyqI.mjs +96 -0
- package/dist/dist-Dj9s8AIv.js +1 -0
- package/dist/dist-Dm3IQk5b.mjs +685 -0
- package/dist/dist-DyMv0xk8.mjs +41 -0
- package/dist/dist-NEeQKKDZ.js +1 -0
- package/dist/dist-N_70prl1.js +1 -0
- package/dist/dist-YAADIsyo.js +1 -0
- package/dist/dist-dMp9dzmY.mjs +20 -0
- package/dist/dist-mHQuNOH-.js +1 -0
- package/dist/dist-oyFh63Uq.js +1 -0
- package/dist/dist-rx5WaFf5.mjs +20 -0
- package/dist/dist-v-Y6tnMq.js +1 -0
- package/dist/dist-v9094Auw.js +1 -0
- package/dist/dist-yA6iVq_M.js +1 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +10 -10
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +2 -2
- package/dist/{dropdown-menu-CriaO1_i.mjs → dropdown-menu-BWqWoYis.mjs} +117 -151
- package/dist/dropdown-menu-BpZcobmP.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +15 -15
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.mjs +1 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.d.ts +6 -6
- package/dist/empty.d.ts.map +1 -1
- package/dist/empty.mjs +2 -2
- package/dist/{es2015-BhmbVcui.mjs → es2015-CYxXY2oV.mjs} +242 -216
- package/dist/es2015-t2RPC0Rg.js +41 -0
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +11 -11
- package/dist/field.d.ts.map +1 -1
- package/dist/field.mjs +4 -4
- package/dist/floating-ui.react-dom-BwFRxNGc.js +1 -0
- package/dist/{floating-ui.react-dom-DgS_bqyY.mjs → floating-ui.react-dom-CyupHsR6.mjs} +249 -276
- package/dist/form.cjs +1 -1
- package/dist/form.d.ts +6 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/form.mjs +8 -8
- package/dist/hover-card-7NjGqlP0.js +1 -0
- package/dist/hover-card-DuRUptxQ.mjs +176 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +3 -3
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +40 -34
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +7 -7
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.mjs +4 -4
- package/dist/input-otp-D9MwUsPO.js +20 -0
- package/dist/input-otp-m_BTudNY.mjs +409 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +4 -4
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.mjs +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.d.ts +11 -11
- package/dist/item.d.ts.map +1 -1
- package/dist/item.mjs +4 -4
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.d.ts.map +1 -1
- package/dist/kbd.mjs +2 -2
- package/dist/label-CgKiKHKG.js +1 -0
- package/dist/label-DVA-YKpB.mjs +28 -0
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +1 -1
- package/dist/label.d.ts.map +1 -1
- package/dist/label.mjs +1 -1
- package/dist/marker.cjs +1 -0
- package/dist/marker.d.ts +12 -0
- package/dist/marker.d.ts.map +1 -0
- package/dist/marker.mjs +40 -0
- package/dist/marker.test.d.ts +2 -0
- package/dist/marker.test.d.ts.map +1 -0
- package/dist/{menubar-BcyqIJgy.mjs → menubar-CyKBLHme.mjs} +130 -166
- package/dist/menubar-DlOMZeh1.js +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +16 -16
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -1
- package/dist/message-scroller-DqLu0YI6.js +1 -0
- package/dist/message-scroller-FwdKclRM.mjs +824 -0
- package/dist/message-scroller.cjs +1 -0
- package/dist/message-scroller.d.ts +13 -0
- package/dist/message-scroller.d.ts.map +1 -0
- package/dist/message-scroller.mjs +3 -0
- package/dist/message-scroller.test.d.ts +2 -0
- package/dist/message-scroller.test.d.ts.map +1 -0
- package/dist/message.cjs +1 -0
- package/dist/message.d.ts +11 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/message.mjs +50 -0
- package/dist/message.test.d.ts +2 -0
- package/dist/message.test.d.ts.map +1 -0
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.d.ts +3 -3
- package/dist/native-select.d.ts.map +1 -1
- package/dist/native-select.mjs +12 -12
- package/dist/navigation-menu-BzE1J1rs.mjs +608 -0
- package/dist/navigation-menu-CrR01R8Z.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +8 -8
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.mjs +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +7 -7
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +40 -34
- package/dist/popover-CFF_HXSf.mjs +222 -0
- package/dist/popover-D9pVy08c.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +7 -7
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-ClcVCqjl.mjs +93 -0
- package/dist/progress-nfJMuKGj.js +6 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +1 -1
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.mjs +1 -1
- package/dist/questionnaire-DKWcZeWT.mjs +1159 -0
- package/dist/questionnaire-PWClWvST.js +1 -0
- package/dist/questionnaire.cjs +1 -0
- package/dist/questionnaire.d.ts +22 -0
- package/dist/questionnaire.d.ts.map +1 -0
- package/dist/questionnaire.mjs +4 -0
- package/dist/questionnaire.test.d.ts +2 -0
- package/dist/questionnaire.test.d.ts.map +1 -0
- package/dist/radio-group-5VwmCXRK.mjs +265 -0
- package/dist/radio-group-DhXnB0fI.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/resizable-ChIqXiu4.js +1 -0
- package/dist/{resizable-DJSE3e5L.mjs → resizable-CpovHnG-.mjs} +341 -329
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +3 -3
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area-CUqjuvqH.js +1 -0
- package/dist/{scroll-area-8QcqkHnC.mjs → scroll-area-DstdIGvS.mjs} +151 -142
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +2 -2
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.mjs +1 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.d.ts +1 -1
- package/dist/scroll-to-top.d.ts.map +1 -1
- package/dist/scroll-to-top.mjs +11 -11
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.mjs +17 -17
- package/dist/select-CnCTQeh7.js +1 -0
- package/dist/select-CnHZdna2.mjs +792 -0
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +10 -10
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -1
- package/dist/separator-BXaVJadH.js +1 -0
- package/dist/separator-D1a8myFf.mjs +38 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +1 -1
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.mjs +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +8 -8
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +23 -23
- package/dist/{sidebar-B-sWccYh.mjs → sidebar-B5q6nH2G.mjs} +64 -64
- package/dist/sidebar-ns_2TNBM.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.d.ts +24 -24
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/sidebar.mjs +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider-PoIV6N-u.js +1 -0
- package/dist/slider-ZnyQjYsS.mjs +460 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +1 -1
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.mjs +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +2 -4
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.mjs +8 -8
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.d.ts +1 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/spinner.mjs +5 -4
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.d.ts +1 -1
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/support-fab.mjs +22 -22
- package/dist/switch-DLY8PkmL.js +1 -0
- package/dist/switch-DagjjAQu.mjs +170 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.d.ts +4 -3
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/table-of-contents.mjs +2 -2
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +8 -8
- package/dist/table.d.ts.map +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs-OQ6rj-3B.mjs +158 -0
- package/dist/tabs-QBWdNfSK.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +4 -4
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.mjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +1 -1
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/theme-provider.d.ts +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/{theme-toggle-clE-HpSS.mjs → theme-toggle-BCcH-QtH.mjs} +20 -20
- package/dist/theme-toggle-Q3UHstP_.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.d.ts +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/theme-toggle.mjs +1 -1
- package/dist/{toast-DVI6jPq5.mjs → toast-BOdziIGg.mjs} +165 -169
- package/dist/toast-D1fjLwO1.js +1 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +1 -1
- package/dist/{toaster-Czhz-ktg.mjs → toaster-CKAJ9cht.mjs} +1 -1
- package/dist/{toaster-DfDb2-aI.js → toaster-DS9iODKU.js} +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.d.ts +1 -1
- package/dist/toaster.d.ts.map +1 -1
- package/dist/toaster.mjs +1 -1
- package/dist/toggle-CuLxBIWH.mjs +59 -0
- package/dist/toggle-DtpvPox_.js +1 -0
- package/dist/toggle-group-DfkvPKU_.mjs +164 -0
- package/dist/toggle-group-UHY0Tip1.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +2 -2
- 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 +1 -1
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.mjs +1 -1
- package/dist/tooltip-BbCL1gtU.mjs +384 -0
- package/dist/tooltip-BvpyStn2.js +1 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +4 -4
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +3 -1
- package/src/__contracts.ts +163 -0
- package/src/accordion.tsx +3 -4
- package/src/alert-dialog.tsx +5 -5
- package/src/alert.tsx +2 -3
- package/src/attachment.tsx +203 -0
- package/src/breadcrumb.tsx +3 -4
- package/src/bubble.tsx +116 -0
- package/src/button-group.tsx +5 -5
- package/src/button.tsx +5 -6
- package/src/calendar.tsx +6 -5
- package/src/card.tsx +5 -5
- package/src/carousel.tsx +7 -7
- package/src/chart.tsx +1 -4
- package/src/checkbox.tsx +3 -4
- package/src/combobox.tsx +8 -7
- package/src/command.tsx +7 -7
- package/src/context-menu.tsx +9 -10
- package/src/dialog.tsx +5 -5
- package/src/drawer.tsx +2 -3
- package/src/dropdown-menu.tsx +9 -10
- package/src/empty.tsx +2 -3
- package/src/field.tsx +5 -4
- package/src/hover-card.tsx +2 -3
- package/src/index.ts +54 -0
- package/src/input-group.tsx +8 -7
- package/src/input-otp.tsx +3 -3
- package/src/input.tsx +1 -2
- package/src/item.tsx +4 -3
- package/src/kbd.tsx +3 -2
- package/src/label.tsx +1 -2
- package/src/marker.tsx +62 -0
- package/src/menubar.tsx +10 -11
- package/src/message-scroller.tsx +134 -0
- package/src/message.tsx +86 -0
- package/src/native-select.tsx +2 -2
- package/src/navigation-menu.tsx +7 -8
- package/src/pagination.tsx +6 -6
- package/src/popover.tsx +2 -3
- package/src/progress.tsx +1 -2
- package/src/questionnaire.tsx +334 -0
- package/src/radio-group.tsx +2 -3
- package/src/resizable.tsx +1 -4
- package/src/scroll-area.tsx +2 -3
- package/src/select.tsx +7 -8
- package/src/separator.tsx +3 -4
- package/src/sheet.tsx +5 -5
- package/src/sidebar.tsx +14 -13
- package/src/skeleton.tsx +1 -1
- package/src/slider.tsx +4 -5
- package/src/sonner.tsx +0 -5
- package/src/spinner.tsx +10 -2
- package/src/switch.tsx +3 -4
- package/src/table-of-contents.tsx +7 -2
- package/src/table.tsx +1 -2
- package/src/tabs.tsx +8 -9
- package/src/textarea.tsx +1 -2
- package/src/toggle-group.tsx +4 -4
- package/src/toggle.tsx +3 -4
- package/src/tooltip.tsx +2 -3
- package/dist/accordion-Dd8Hrexd.mjs +0 -244
- package/dist/accordion-DdSOiVyo.js +0 -1
- package/dist/alert-dialog-B7zX3gJX.js +0 -7
- package/dist/alert-dialog-BQoG5g_w.mjs +0 -213
- package/dist/aspect-ratio-QD1ZXP2B.js +0 -1
- package/dist/avatar-C4onD8-4.mjs +0 -127
- package/dist/avatar-ki_M47qG.js +0 -1
- package/dist/calendar-D9sapvfY.js +0 -1
- package/dist/carousel-6oFHLN7R.js +0 -1
- package/dist/checkbox-BLgY82mB.js +0 -1
- package/dist/checkbox-Bts_zfqd.mjs +0 -173
- package/dist/combobox-6qNx9Wbb.js +0 -4
- package/dist/combobox-yDMqxM_J.mjs +0 -5522
- package/dist/command-C6wJ5giF.mjs +0 -576
- package/dist/command-DCrPL1iW.js +0 -1
- package/dist/context-menu-CydUpD4W.mjs +0 -349
- package/dist/context-menu-DQ7XuuG5.js +0 -1
- package/dist/dist-1C8JOpVg.js +0 -1
- package/dist/dist-B1OcuinL.mjs +0 -558
- package/dist/dist-BGZDG175.mjs +0 -199
- package/dist/dist-BPBwSSyk.mjs +0 -8
- package/dist/dist-BPX1UGAz2.js +0 -1
- package/dist/dist-BRsDdVlJ.js +0 -1
- package/dist/dist-BWwCr-xN.mjs +0 -118
- package/dist/dist-BYdcKuDi.mjs +0 -16
- package/dist/dist-BlB11V_z.mjs +0 -27
- package/dist/dist-Bm8Cuttq.mjs +0 -76
- package/dist/dist-Byhx2fDJ.js +0 -1
- package/dist/dist-CCXBcfM3.js +0 -1
- package/dist/dist-CCokLFyA.mjs +0 -10
- package/dist/dist-CDU9vno-.mjs +0 -18
- package/dist/dist-CEJNUZGZ.js +0 -1
- package/dist/dist-CJolxugc.js +0 -1
- package/dist/dist-CQhWBhaI.mjs +0 -91
- package/dist/dist-CRLbUj9C.js +0 -1
- package/dist/dist-CSkpam6a.js +0 -1
- package/dist/dist-CWElW7UD.js +0 -1
- package/dist/dist-CXbzwSnE.js +0 -1
- package/dist/dist-CYj6O95k.mjs +0 -220
- package/dist/dist-C_45sBzc2.js +0 -1
- package/dist/dist-Cb7OVHcJ.js +0 -1
- package/dist/dist-Ccv5O-Vw.js +0 -1
- package/dist/dist-ChuP-5Gb.js +0 -1
- package/dist/dist-CiM892Rg.js +0 -1
- package/dist/dist-CuMQq0hV.js +0 -1
- package/dist/dist-DGzGsPqo2.mjs +0 -6
- package/dist/dist-DMnXk8Uo.js +0 -1
- package/dist/dist-DPBTfUqI.mjs +0 -96
- package/dist/dist-DR0lXVFG.js +0 -1
- package/dist/dist-Da7BU5sd.js +0 -5
- package/dist/dist-Df2ez-DA.mjs +0 -12
- package/dist/dist-DuTFGM_g.mjs +0 -45
- package/dist/dist-DynSBUGq.js +0 -1
- package/dist/dist-Dz3LbuDd.mjs +0 -60
- package/dist/dist-GhACpuJb2.mjs +0 -73
- package/dist/dist-o4zlRoDG.js +0 -1
- package/dist/dist-rGeQfsgN.mjs +0 -66
- package/dist/dist-tvb2Wafb.mjs +0 -153
- package/dist/dropdown-menu-BoJvZ3Fj.js +0 -1
- package/dist/es2015-D22cM8Q_.js +0 -41
- package/dist/floating-ui.react-dom-DpCJEf_x.js +0 -1
- package/dist/hover-card-CJ-ibpbC.mjs +0 -187
- package/dist/hover-card-CK5SjVLL.js +0 -1
- package/dist/input-otp-BH_9dVhh.mjs +0 -391
- package/dist/input-otp-BibboKMt.js +0 -20
- package/dist/label-BXMSoyyu.js +0 -1
- package/dist/label-C8GNfPU0.mjs +0 -25
- package/dist/menubar-DPxokWFI.js +0 -1
- package/dist/navigation-menu-2yE2MUu-.js +0 -1
- package/dist/navigation-menu-N8gkxEXE.mjs +0 -628
- package/dist/popover-D1AO-E8p.js +0 -1
- package/dist/popover-wQACF3ut.mjs +0 -245
- package/dist/progress-DPWSEWa5.mjs +0 -86
- package/dist/progress-ShXZwOfj.js +0 -6
- package/dist/radio-group-CQbZCQmj.mjs +0 -199
- package/dist/radio-group-DAEi5vW_.js +0 -1
- package/dist/resizable-Cv-mKMKP.js +0 -1
- package/dist/scroll-area-Cqqinhxf.js +0 -1
- package/dist/select-DdUveoSA.js +0 -1
- package/dist/select-yoeH35x2.mjs +0 -778
- package/dist/separator-BU1ea5gl.mjs +0 -35
- package/dist/separator-DBjErwHf.js +0 -1
- package/dist/shim-B5sEfNEJ.js +0 -1
- package/dist/shim-DX33EwUw.mjs +0 -91
- package/dist/sidebar-DIW-1cin.js +0 -1
- package/dist/slider-CCPXejUF.mjs +0 -388
- package/dist/slider-w05gD_Ix.js +0 -1
- package/dist/switch-CDBqsWQa.mjs +0 -112
- package/dist/switch-X2WBJsUu.js +0 -1
- package/dist/tabs-DzvgrVzk.js +0 -1
- package/dist/tabs-KDeHjVQU.mjs +0 -160
- package/dist/theme-toggle-C2Y4bIM3.js +0 -1
- package/dist/toast-1keyrzem.js +0 -1
- package/dist/toggle-BGkq5XDM.js +0 -1
- package/dist/toggle-BfIIdlA6.mjs +0 -58
- package/dist/toggle-group-CbqgoPFU.mjs +0 -167
- package/dist/toggle-group-D7hR4BT2.js +0 -1
- package/dist/tooltip-CAIbshMk.js +0 -1
- package/dist/tooltip-D_o8Z-Ya.mjs +0 -380
package/dist/input-group.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { InputGroupAddonBaseProps, InputGroupBaseProps, InputGroupButtonBaseProps, InputGroupInputBaseProps, InputGroupTextareaBaseProps, InputGroupTextBaseProps } from '@gv-tech/ui-core';
|
|
3
2
|
import { Button } from './button';
|
|
3
|
+
import { InputGroupAddonBaseProps, InputGroupBaseProps, InputGroupButtonBaseProps, InputGroupInputBaseProps, InputGroupTextareaBaseProps, InputGroupTextBaseProps } from '@gv-tech/ui-core';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
declare function InputGroup({ className, ...props }: React.ComponentProps<'div'> & InputGroupBaseProps):
|
|
5
|
+
declare function InputGroup({ className, ...props }: React.ComponentProps<'div'> & InputGroupBaseProps): React.JSX.Element;
|
|
6
6
|
declare const inputGroupAddonVariants: (props?: ({
|
|
7
7
|
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants> & InputGroupAddonBaseProps):
|
|
9
|
+
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants> & InputGroupAddonBaseProps): React.JSX.Element;
|
|
10
10
|
declare const inputGroupButtonVariants: (props?: ({
|
|
11
11
|
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
12
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
-
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants> & InputGroupButtonBaseProps):
|
|
14
|
-
declare function InputGroupText({ className, ...props }: React.ComponentProps<'span'> & InputGroupTextBaseProps):
|
|
15
|
-
declare function InputGroupInput({ className, ...props }: React.ComponentProps<'input'> & InputGroupInputBaseProps):
|
|
16
|
-
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<'textarea'> & InputGroupTextareaBaseProps):
|
|
13
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants> & InputGroupButtonBaseProps): React.JSX.Element;
|
|
14
|
+
declare function InputGroupText({ className, ...props }: React.ComponentProps<'span'> & InputGroupTextBaseProps): React.JSX.Element;
|
|
15
|
+
declare function InputGroupInput({ className, ...props }: React.ComponentProps<'input'> & InputGroupInputBaseProps): React.JSX.Element;
|
|
16
|
+
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<'textarea'> & InputGroupTextareaBaseProps): React.JSX.Element;
|
|
17
17
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
18
18
|
//# sourceMappingURL=input-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../src/input-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../src/input-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIpC,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAE1B,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,mBAAmB,qBAY7F;AAED,QAAA,MAAM,uBAAuB;;8EAgB5B,CAAC;AAEF,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,KAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,GAAG,wBAAwB,qBAgBvG;AAED,QAAA,MAAM,wBAAwB;;8EAY5B,CAAC;AAEH,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,IAAe,EACf,OAAiB,EACjB,IAAW,EACX,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GAClD,YAAY,CAAC,OAAO,wBAAwB,CAAC,GAC7C,yBAAyB,qBAU1B;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,uBAAuB,qBAUtG;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,wBAAwB,qBAWzG;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,2BAA2B,qBAWlH;AAED,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC"}
|
package/dist/input-group.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./
|
|
2
|
+
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
3
3
|
import { Button as t } from "./button.mjs";
|
|
4
4
|
import { Input as n } from "./input.mjs";
|
|
5
5
|
import { Textarea as r } from "./textarea.mjs";
|
|
@@ -15,7 +15,7 @@ function o({ className: t, ...n }) {
|
|
|
15
15
|
...n
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
var s = a("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*=size-])]:size-4", {
|
|
18
|
+
var s = a("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
19
19
|
variants: { align: {
|
|
20
20
|
"inline-start": "order-first ps-2 has-[>button]:ms-[-0.3rem] has-[>kbd]:ms-[-0.15rem]",
|
|
21
21
|
"inline-end": "order-last pe-2 has-[>button]:me-[-0.3rem] has-[>kbd]:me-[-0.15rem]",
|
|
@@ -38,7 +38,7 @@ function c({ className: t, align: n = "inline-start", ...r }) {
|
|
|
38
38
|
}
|
|
39
39
|
var l = a("flex items-center gap-2 text-sm shadow-none", {
|
|
40
40
|
variants: { size: {
|
|
41
|
-
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*=size-])]:size-3.5",
|
|
41
|
+
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
42
42
|
sm: "",
|
|
43
43
|
"icon-xs": "size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0",
|
|
44
44
|
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
@@ -56,7 +56,7 @@ function u({ className: n, type: r = "button", variant: a = "ghost", size: o = "
|
|
|
56
56
|
}
|
|
57
57
|
function d({ className: t, ...n }) {
|
|
58
58
|
return /* @__PURE__ */ i("span", {
|
|
59
|
-
className: e("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*=size-])]:size-4", t),
|
|
59
|
+
className: e("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", t),
|
|
60
60
|
...n
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js");let n=require("lucide-react"),r=require("react"),i=e.r(r,1);r=e.r(r);let a=require("react/jsx-runtime");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=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}var v=18,y=40,b=`${y}px`;function x(e){let t=e.getBoundingClientRect().right,n=e;for(;n;){if(getComputedStyle(n).overflowX!==`visible`)return n.getBoundingClientRect().left+n.clientLeft+n.clientWidth-t;n=n.parentElement}return document.documentElement.clientWidth-t}var S=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function C({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[a,o]=i.useState(!1),[s,c]=i.useState(!1),[l,u]=i.useState(!1),d=i.useMemo(()=>n===`none`?!1:(n===`increase-width`||n===`experimental-no-flickering`)&&a&&s,[a,s,n]),f=i.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||l||n===`none`)return;let a=r,s=a.getBoundingClientRect().left+a.offsetWidth,d=a.getBoundingClientRect().top+a.offsetHeight/2,f=s-v,p=d;document.querySelectorAll(S).length===0&&document.elementFromPoint(f,p)===r||(c(x(r)>=y),o(!0),u(!0))},[e,t,l,n]);return i.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){c(x(t)>=y)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),i.useEffect(()=>{let e=r||document.activeElement===t.current;if(n===`none`||!e)return;let i=setTimeout(f,0),a=setTimeout(f,2e3),o=setTimeout(f,5e3),s=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,r,n,f]),{hasPWMBadge:a,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:b}}var w=i.createContext({}),T=i.forwardRef((e,t)=>{var n=e,{value:r,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=D,nonce:x,render:S,children:T}=n,O=h(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`nonce`,`render`,`children`]),k;let[A,j]=i.useState(typeof O.defaultValue==`string`?O.defaultValue:``),M=r??A,N=_(M),P=i.useCallback(e=>{a?.(e),j(e)},[a]),F=i.useMemo(()=>c?typeof c==`string`?new RegExp(c):c:null,[c]),I=i.useRef(null),L=i.useRef(null),R=i.useRef({value:M,onChange:P,isIOS:typeof window<`u`&&((k=window==null?void 0:window.CSS)?.supports)?.call(k,`-webkit-touch-callout`,`none`)}),z=i.useRef({prev:[I.current?.selectionStart,I.current?.selectionEnd,I.current?.selectionDirection]});i.useImperativeHandle(t,()=>I.current,[]),i.useEffect(()=>{let e=I.current,t=L.current;if(!e||!t)return;R.current.value!==e.value&&R.current.onChange(e.value),z.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){G(null),q(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=z.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let r=t===n,u=t===a.length&&a.length<i;if(r&&!u){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&&e.setSelectionRange(s,c,l)}let u=s===-1?t:s,d=c===-1?n:c,f=l??r;G(u),q(d),z.current.prev=[u,d,f]}if(document.addEventListener(`selectionchange`,n,{capture:!0}),n(),document.activeElement===e&&U(!0),!document.getElementById(`input-otp-style`)){let e=document.createElement(`style`);if(e.id=`input-otp-style`,x&&e.setAttribute(`nonce`,x),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;`;E(e.sheet,`[data-input-otp]::selection { background: transparent !important; color: transparent !important; }`),E(e.sheet,`[data-input-otp]:autofill { ${t} }`),E(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),E(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; } }`),E(e.sheet,`[data-input-otp] + * { pointer-events: all !important; }`)}}let r=()=>{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=typeof ResizeObserver>`u`?null:new ResizeObserver(r);return i?.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i?.disconnect()}},[]);let[B,V]=i.useState(!1),[H,U]=i.useState(!1),[W,G]=i.useState(null),[K,q]=i.useState(null);i.useEffect(()=>{let e=g(()=>{var e;(e=I.current)==null||e.dispatchEvent(new Event(`input`));let t=I.current?.selectionStart,n=I.current?.selectionEnd,r=I.current?.selectionDirection;t!==null&&n!==null&&(G(t),q(n),z.current.prev=[t,n,r])});return()=>{e.forEach(e=>clearTimeout(e))}},[M,H]),i.useEffect(()=>{N!==void 0&&M!==N&&N.length<o&&M.length===o&&d?.(M)},[o,d,N,M]);let J=C({containerRef:L,inputRef:I,pushPasswordManagerStrategy:f,isFocused:H}),Y=i.useCallback(e=>{let t=e.currentTarget.value.slice(0,o);if(t.length>0&&F&&!F.test(t)){e.preventDefault();return}typeof N==`string`&&t.length<N.length&&document.dispatchEvent(new Event(`selectionchange`)),P(t)},[o,P,N,F]),X=i.useCallback(()=>{var e;if(I.current){let t=Math.min(I.current.value.length,o-1),n=I.current.value.length;(e=I.current)==null||e.setSelectionRange(t,n),G(t),q(n)}U(!0)},[o]),Z=i.useCallback(e=>{let t=I.current;if(!v&&(!R.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=v?v(n):n;e.preventDefault();let i=I.current?.selectionStart,a=I.current?.selectionEnd,s=(i===a?M.slice(0,i)+r+M.slice(i):M.slice(0,i)+r+M.slice(a)).slice(0,o);if(s.length>0&&F&&!F.test(s))return;t.value=s,P(s);let c=Math.min(s.length,o-1),l=s.length;t.setSelectionRange(c,l),G(c),q(l)},[o,P,v,F,M]),ee=i.useMemo(()=>({position:`relative`,cursor:O.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[O.disabled]),Q=i.useMemo(()=>({position:`absolute`,inset:0,width:J.willPushPWMBadge?`calc(100% + ${J.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:J.willPushPWMBadge?`inset(0 ${J.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, 16px)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[J.PWM_BADGE_SPACE_WIDTH,J.willPushPWMBadge,s]),te=i.useMemo(()=>i.createElement(`input`,m(p({autoComplete:O.autoComplete||`one-time-code`},O),{"data-input-otp":!0,"data-input-otp-placeholder-shown":M.length===0||void 0,"data-input-otp-mss":W,"data-input-otp-mse":K,inputMode:u,pattern:F?.source,"aria-placeholder":l,style:Q,maxLength:o,value:M,ref:I,spellCheck:O.spellCheck??!1,onPaste:e=>{var t;Z(e),(t=O.onPaste)==null||t.call(O,e)},onChange:Y,onMouseOver:e=>{var t;V(!0),(t=O.onMouseOver)==null||t.call(O,e)},onMouseLeave:e=>{var t;V(!1),(t=O.onMouseLeave)==null||t.call(O,e)},onFocus:e=>{var t;X(),(t=O.onFocus)==null||t.call(O,e)},onBlur:e=>{var t;U(!1),(t=O.onBlur)==null||t.call(O,e)}})),[Y,X,Z,u,Q,o,K,W,l,O,F?.source,M]),$=i.useMemo(()=>({slots:Array.from({length:o}).map((e,t)=>{let n=H&&W!==null&&K!==null&&(W===K&&t===W||t>=W&&t<K),r=M[t]===void 0?null:M[t];return{char:r,placeholderChar:M[0]===void 0?l?.[t]??null:null,isActive:n,hasFakeCaret:n&&r===null}}),isFocused:H,isHovering:!O.disabled&&B}),[H,B,o,K,W,l,O.disabled,M]),ne=i.useMemo(()=>S?S($):i.createElement(w.Provider,{value:$},T),[T,$,S]);return i.createElement(i.Fragment,null,b!==null&&i.createElement(`noscript`,null,i.createElement(`style`,null,b)),i.createElement(`div`,{ref:L,"data-input-otp-container":!0,translate:`no`,style:ee,className:y},ne,i.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},te)))});T.displayName=`Input`;function E(e,t){try{e.insertRule(t)}catch{console.warn(`input-otp could not insert CSS rule:`,t)}}var D=`
|
|
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 O({className:e,containerClassName:n,...r}){return(0,a.jsx)(T,{"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 k({className:e,...n}){return(0,a.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 A({index:e,className:n,...i}){let{char:o,hasFakeCaret:s,isActive:c}=r.useContext(w)?.slots[e]??{};return(0,a.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`,n),...i,children:[o,s&&(0,a.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,a.jsx)(`div`,{className:`animate-caret-blink bg-foreground h-4 w-px duration-1000`})})]})}function j({...e}){return(0,a.jsx)(`div`,{"data-slot":`input-otp-separator`,className:`flex items-center [&_svg:not([class*='size-'])]:size-4`,role:`separator`,...e,children:(0,a.jsx)(n.MinusIcon,{})})}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return O}});
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
2
|
+
import { MinusIcon as t } from "lucide-react";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../node_modules/.bun/input-otp@1.5.0+6f4b9a1cfb20c0ae/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 t = n.useRef();
|
|
30
|
+
return n.useEffect(() => {
|
|
31
|
+
t.current = e;
|
|
32
|
+
}), t.current;
|
|
33
|
+
}
|
|
34
|
+
var _ = 18, v = 40, y = `${v}px`;
|
|
35
|
+
function b(e) {
|
|
36
|
+
let t = e.getBoundingClientRect().right, n = e;
|
|
37
|
+
for (; n;) {
|
|
38
|
+
if (getComputedStyle(n).overflowX !== "visible") return n.getBoundingClientRect().left + n.clientLeft + n.clientWidth - t;
|
|
39
|
+
n = n.parentElement;
|
|
40
|
+
}
|
|
41
|
+
return document.documentElement.clientWidth - t;
|
|
42
|
+
}
|
|
43
|
+
var x = [
|
|
44
|
+
"[data-lastpass-icon-root]",
|
|
45
|
+
"com-1password-button",
|
|
46
|
+
"[data-dashlanecreated]",
|
|
47
|
+
"[style$=\"2147483647 !important;\"]"
|
|
48
|
+
].join(",");
|
|
49
|
+
function S({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: r, isFocused: i }) {
|
|
50
|
+
let [a, o] = n.useState(!1), [s, c] = n.useState(!1), [l, u] = n.useState(!1), d = n.useMemo(() => r === "none" ? !1 : (r === "increase-width" || r === "experimental-no-flickering") && a && s, [
|
|
51
|
+
a,
|
|
52
|
+
s,
|
|
53
|
+
r
|
|
54
|
+
]), f = n.useCallback(() => {
|
|
55
|
+
let n = e.current, i = t.current;
|
|
56
|
+
if (!n || !i || l || r === "none") return;
|
|
57
|
+
let a = n, s = a.getBoundingClientRect().left + a.offsetWidth, d = a.getBoundingClientRect().top + a.offsetHeight / 2, f = s - _, p = d;
|
|
58
|
+
document.querySelectorAll(x).length === 0 && document.elementFromPoint(f, p) === n || (c(b(n) >= v), o(!0), u(!0));
|
|
59
|
+
}, [
|
|
60
|
+
e,
|
|
61
|
+
t,
|
|
62
|
+
l,
|
|
63
|
+
r
|
|
64
|
+
]);
|
|
65
|
+
return n.useEffect(() => {
|
|
66
|
+
let t = e.current;
|
|
67
|
+
if (!t || r === "none") return;
|
|
68
|
+
function n() {
|
|
69
|
+
c(b(t) >= v);
|
|
70
|
+
}
|
|
71
|
+
n();
|
|
72
|
+
let i = setInterval(n, 1e3);
|
|
73
|
+
return () => {
|
|
74
|
+
clearInterval(i);
|
|
75
|
+
};
|
|
76
|
+
}, [e, r]), n.useEffect(() => {
|
|
77
|
+
let e = i || document.activeElement === t.current;
|
|
78
|
+
if (r === "none" || !e) return;
|
|
79
|
+
let n = setTimeout(f, 0), a = setTimeout(f, 2e3), o = setTimeout(f, 5e3), s = setTimeout(() => {
|
|
80
|
+
u(!0);
|
|
81
|
+
}, 6e3);
|
|
82
|
+
return () => {
|
|
83
|
+
clearTimeout(n), clearTimeout(a), clearTimeout(o), clearTimeout(s);
|
|
84
|
+
};
|
|
85
|
+
}, [
|
|
86
|
+
t,
|
|
87
|
+
i,
|
|
88
|
+
r,
|
|
89
|
+
f
|
|
90
|
+
]), {
|
|
91
|
+
hasPWMBadge: a,
|
|
92
|
+
willPushPWMBadge: d,
|
|
93
|
+
PWM_BADGE_SPACE_WIDTH: y
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
var C = n.createContext({}), w = n.forwardRef((e, t) => {
|
|
97
|
+
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 = E, nonce: x, render: w, children: D } = r, O = m(r, [
|
|
98
|
+
"value",
|
|
99
|
+
"onChange",
|
|
100
|
+
"maxLength",
|
|
101
|
+
"textAlign",
|
|
102
|
+
"pattern",
|
|
103
|
+
"placeholder",
|
|
104
|
+
"inputMode",
|
|
105
|
+
"onComplete",
|
|
106
|
+
"pushPasswordManagerStrategy",
|
|
107
|
+
"pasteTransformer",
|
|
108
|
+
"containerClassName",
|
|
109
|
+
"noScriptCSSFallback",
|
|
110
|
+
"nonce",
|
|
111
|
+
"render",
|
|
112
|
+
"children"
|
|
113
|
+
]), k;
|
|
114
|
+
let [A, j] = n.useState(typeof O.defaultValue == "string" ? O.defaultValue : ""), M = i ?? A, N = g(M), P = n.useCallback((e) => {
|
|
115
|
+
a?.(e), j(e);
|
|
116
|
+
}, [a]), F = n.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), I = n.useRef(null), L = n.useRef(null), R = n.useRef({
|
|
117
|
+
value: M,
|
|
118
|
+
onChange: P,
|
|
119
|
+
isIOS: typeof window < "u" && ((k = window == null ? void 0 : window.CSS)?.supports)?.call(k, "-webkit-touch-callout", "none")
|
|
120
|
+
}), z = n.useRef({ prev: [
|
|
121
|
+
I.current?.selectionStart,
|
|
122
|
+
I.current?.selectionEnd,
|
|
123
|
+
I.current?.selectionDirection
|
|
124
|
+
] });
|
|
125
|
+
n.useImperativeHandle(t, () => I.current, []), n.useEffect(() => {
|
|
126
|
+
let e = I.current, t = L.current;
|
|
127
|
+
if (!e || !t) return;
|
|
128
|
+
R.current.value !== e.value && R.current.onChange(e.value), z.current.prev = [
|
|
129
|
+
e.selectionStart,
|
|
130
|
+
e.selectionEnd,
|
|
131
|
+
e.selectionDirection
|
|
132
|
+
];
|
|
133
|
+
function n() {
|
|
134
|
+
if (document.activeElement !== e) {
|
|
135
|
+
G(null), q(null);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
let t = e.selectionStart, n = e.selectionEnd, r = e.selectionDirection, i = e.maxLength, a = e.value, o = z.current.prev, s = -1, c = -1, l;
|
|
139
|
+
if (a.length !== 0 && t !== null && n !== null) {
|
|
140
|
+
let r = t === n, u = t === a.length && a.length < i;
|
|
141
|
+
if (r && !u) {
|
|
142
|
+
let e = t;
|
|
143
|
+
if (e === 0) s = 0, c = 1, l = "forward";
|
|
144
|
+
else if (e === i) s = e - 1, c = e, l = "backward";
|
|
145
|
+
else if (i > 1 && a.length > 1) {
|
|
146
|
+
let t = 0;
|
|
147
|
+
if (o[0] !== null && o[1] !== null) {
|
|
148
|
+
l = e < o[1] ? "backward" : "forward";
|
|
149
|
+
let n = o[0] === o[1] && o[0] < i;
|
|
150
|
+
l === "backward" && !n && (t = -1);
|
|
151
|
+
}
|
|
152
|
+
s = t + e, c = t + e + 1;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
s !== -1 && c !== -1 && s !== c && e.setSelectionRange(s, c, l);
|
|
156
|
+
}
|
|
157
|
+
let u = s === -1 ? t : s, d = c === -1 ? n : c, f = l ?? r;
|
|
158
|
+
G(u), q(d), z.current.prev = [
|
|
159
|
+
u,
|
|
160
|
+
d,
|
|
161
|
+
f
|
|
162
|
+
];
|
|
163
|
+
}
|
|
164
|
+
if (document.addEventListener("selectionchange", n, { capture: !0 }), n(), document.activeElement === e && U(!0), !document.getElementById("input-otp-style")) {
|
|
165
|
+
let e = document.createElement("style");
|
|
166
|
+
if (e.id = "input-otp-style", x && e.setAttribute("nonce", x), document.head.appendChild(e), e.sheet) {
|
|
167
|
+
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;";
|
|
168
|
+
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; }");
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
let r = () => {
|
|
172
|
+
t && t.style.setProperty("--root-height", `${e.clientHeight}px`);
|
|
173
|
+
};
|
|
174
|
+
r();
|
|
175
|
+
let i = typeof ResizeObserver > "u" ? null : new ResizeObserver(r);
|
|
176
|
+
return i?.observe(e), () => {
|
|
177
|
+
document.removeEventListener("selectionchange", n, { capture: !0 }), i?.disconnect();
|
|
178
|
+
};
|
|
179
|
+
}, []);
|
|
180
|
+
let [B, V] = n.useState(!1), [H, U] = n.useState(!1), [W, G] = n.useState(null), [K, q] = n.useState(null);
|
|
181
|
+
n.useEffect(() => {
|
|
182
|
+
let e = h(() => {
|
|
183
|
+
var e;
|
|
184
|
+
(e = I.current) == null || e.dispatchEvent(new Event("input"));
|
|
185
|
+
let t = I.current?.selectionStart, n = I.current?.selectionEnd, r = I.current?.selectionDirection;
|
|
186
|
+
t !== null && n !== null && (G(t), q(n), z.current.prev = [
|
|
187
|
+
t,
|
|
188
|
+
n,
|
|
189
|
+
r
|
|
190
|
+
]);
|
|
191
|
+
});
|
|
192
|
+
return () => {
|
|
193
|
+
e.forEach((e) => clearTimeout(e));
|
|
194
|
+
};
|
|
195
|
+
}, [M, H]), n.useEffect(() => {
|
|
196
|
+
N !== void 0 && M !== N && N.length < o && M.length === o && d?.(M);
|
|
197
|
+
}, [
|
|
198
|
+
o,
|
|
199
|
+
d,
|
|
200
|
+
N,
|
|
201
|
+
M
|
|
202
|
+
]);
|
|
203
|
+
let J = S({
|
|
204
|
+
containerRef: L,
|
|
205
|
+
inputRef: I,
|
|
206
|
+
pushPasswordManagerStrategy: _,
|
|
207
|
+
isFocused: H
|
|
208
|
+
}), Y = n.useCallback((e) => {
|
|
209
|
+
let t = e.currentTarget.value.slice(0, o);
|
|
210
|
+
if (t.length > 0 && F && !F.test(t)) {
|
|
211
|
+
e.preventDefault();
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
typeof N == "string" && t.length < N.length && document.dispatchEvent(new Event("selectionchange")), P(t);
|
|
215
|
+
}, [
|
|
216
|
+
o,
|
|
217
|
+
P,
|
|
218
|
+
N,
|
|
219
|
+
F
|
|
220
|
+
]), X = n.useCallback(() => {
|
|
221
|
+
var e;
|
|
222
|
+
if (I.current) {
|
|
223
|
+
let t = Math.min(I.current.value.length, o - 1), n = I.current.value.length;
|
|
224
|
+
(e = I.current) == null || e.setSelectionRange(t, n), G(t), q(n);
|
|
225
|
+
}
|
|
226
|
+
U(!0);
|
|
227
|
+
}, [o]), Z = n.useCallback((e) => {
|
|
228
|
+
let t = I.current;
|
|
229
|
+
if (!v && (!R.current.isIOS || !e.clipboardData || !t)) return;
|
|
230
|
+
let n = e.clipboardData.getData("text/plain"), r = v ? v(n) : n;
|
|
231
|
+
e.preventDefault();
|
|
232
|
+
let i = I.current?.selectionStart, a = I.current?.selectionEnd, s = (i === a ? M.slice(0, i) + r + M.slice(i) : M.slice(0, i) + r + M.slice(a)).slice(0, o);
|
|
233
|
+
if (s.length > 0 && F && !F.test(s)) return;
|
|
234
|
+
t.value = s, P(s);
|
|
235
|
+
let c = Math.min(s.length, o - 1), l = s.length;
|
|
236
|
+
t.setSelectionRange(c, l), G(c), q(l);
|
|
237
|
+
}, [
|
|
238
|
+
o,
|
|
239
|
+
P,
|
|
240
|
+
v,
|
|
241
|
+
F,
|
|
242
|
+
M
|
|
243
|
+
]), ee = n.useMemo(() => ({
|
|
244
|
+
position: "relative",
|
|
245
|
+
cursor: O.disabled ? "default" : "text",
|
|
246
|
+
userSelect: "none",
|
|
247
|
+
WebkitUserSelect: "none",
|
|
248
|
+
pointerEvents: "none"
|
|
249
|
+
}), [O.disabled]), Q = n.useMemo(() => ({
|
|
250
|
+
position: "absolute",
|
|
251
|
+
inset: 0,
|
|
252
|
+
width: J.willPushPWMBadge ? `calc(100% + ${J.PWM_BADGE_SPACE_WIDTH})` : "100%",
|
|
253
|
+
clipPath: J.willPushPWMBadge ? `inset(0 ${J.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0,
|
|
254
|
+
height: "100%",
|
|
255
|
+
display: "flex",
|
|
256
|
+
textAlign: s,
|
|
257
|
+
opacity: "1",
|
|
258
|
+
color: "transparent",
|
|
259
|
+
pointerEvents: "all",
|
|
260
|
+
background: "transparent",
|
|
261
|
+
caretColor: "transparent",
|
|
262
|
+
border: "0 solid transparent",
|
|
263
|
+
outline: "0 solid transparent",
|
|
264
|
+
boxShadow: "none",
|
|
265
|
+
lineHeight: "1",
|
|
266
|
+
letterSpacing: "-.5em",
|
|
267
|
+
fontSize: "var(--root-height, 16px)",
|
|
268
|
+
fontFamily: "monospace",
|
|
269
|
+
fontVariantNumeric: "tabular-nums"
|
|
270
|
+
}), [
|
|
271
|
+
J.PWM_BADGE_SPACE_WIDTH,
|
|
272
|
+
J.willPushPWMBadge,
|
|
273
|
+
s
|
|
274
|
+
]), te = n.useMemo(() => n.createElement("input", p(f({ autoComplete: O.autoComplete || "one-time-code" }, O), {
|
|
275
|
+
"data-input-otp": !0,
|
|
276
|
+
"data-input-otp-placeholder-shown": M.length === 0 || void 0,
|
|
277
|
+
"data-input-otp-mss": W,
|
|
278
|
+
"data-input-otp-mse": K,
|
|
279
|
+
inputMode: u,
|
|
280
|
+
pattern: F?.source,
|
|
281
|
+
"aria-placeholder": l,
|
|
282
|
+
style: Q,
|
|
283
|
+
maxLength: o,
|
|
284
|
+
value: M,
|
|
285
|
+
ref: I,
|
|
286
|
+
spellCheck: O.spellCheck ?? !1,
|
|
287
|
+
onPaste: (e) => {
|
|
288
|
+
var t;
|
|
289
|
+
Z(e), (t = O.onPaste) == null || t.call(O, e);
|
|
290
|
+
},
|
|
291
|
+
onChange: Y,
|
|
292
|
+
onMouseOver: (e) => {
|
|
293
|
+
var t;
|
|
294
|
+
V(!0), (t = O.onMouseOver) == null || t.call(O, e);
|
|
295
|
+
},
|
|
296
|
+
onMouseLeave: (e) => {
|
|
297
|
+
var t;
|
|
298
|
+
V(!1), (t = O.onMouseLeave) == null || t.call(O, e);
|
|
299
|
+
},
|
|
300
|
+
onFocus: (e) => {
|
|
301
|
+
var t;
|
|
302
|
+
X(), (t = O.onFocus) == null || t.call(O, e);
|
|
303
|
+
},
|
|
304
|
+
onBlur: (e) => {
|
|
305
|
+
var t;
|
|
306
|
+
U(!1), (t = O.onBlur) == null || t.call(O, e);
|
|
307
|
+
}
|
|
308
|
+
})), [
|
|
309
|
+
Y,
|
|
310
|
+
X,
|
|
311
|
+
Z,
|
|
312
|
+
u,
|
|
313
|
+
Q,
|
|
314
|
+
o,
|
|
315
|
+
K,
|
|
316
|
+
W,
|
|
317
|
+
l,
|
|
318
|
+
O,
|
|
319
|
+
F?.source,
|
|
320
|
+
M
|
|
321
|
+
]), $ = n.useMemo(() => ({
|
|
322
|
+
slots: Array.from({ length: o }).map((e, t) => {
|
|
323
|
+
let n = H && W !== null && K !== null && (W === K && t === W || t >= W && t < K), r = M[t] === void 0 ? null : M[t];
|
|
324
|
+
return {
|
|
325
|
+
char: r,
|
|
326
|
+
placeholderChar: M[0] === void 0 ? l?.[t] ?? null : null,
|
|
327
|
+
isActive: n,
|
|
328
|
+
hasFakeCaret: n && r === null
|
|
329
|
+
};
|
|
330
|
+
}),
|
|
331
|
+
isFocused: H,
|
|
332
|
+
isHovering: !O.disabled && B
|
|
333
|
+
}), [
|
|
334
|
+
H,
|
|
335
|
+
B,
|
|
336
|
+
o,
|
|
337
|
+
K,
|
|
338
|
+
W,
|
|
339
|
+
l,
|
|
340
|
+
O.disabled,
|
|
341
|
+
M
|
|
342
|
+
]), ne = n.useMemo(() => w ? w($) : n.createElement(C.Provider, { value: $ }, D), [
|
|
343
|
+
D,
|
|
344
|
+
$,
|
|
345
|
+
w
|
|
346
|
+
]);
|
|
347
|
+
return n.createElement(n.Fragment, null, b !== null && n.createElement("noscript", null, n.createElement("style", null, b)), n.createElement("div", {
|
|
348
|
+
ref: L,
|
|
349
|
+
"data-input-otp-container": !0,
|
|
350
|
+
translate: "no",
|
|
351
|
+
style: ee,
|
|
352
|
+
className: y
|
|
353
|
+
}, ne, n.createElement("div", { style: {
|
|
354
|
+
position: "absolute",
|
|
355
|
+
inset: 0,
|
|
356
|
+
pointerEvents: "none"
|
|
357
|
+
} }, te)));
|
|
358
|
+
});
|
|
359
|
+
w.displayName = "Input";
|
|
360
|
+
function T(e, t) {
|
|
361
|
+
try {
|
|
362
|
+
e.insertRule(t);
|
|
363
|
+
} catch {
|
|
364
|
+
console.warn("input-otp could not insert CSS rule:", t);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
var E = "\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}";
|
|
368
|
+
//#endregion
|
|
369
|
+
//#region src/input-otp.tsx
|
|
370
|
+
function D({ className: t, containerClassName: n, ...i }) {
|
|
371
|
+
return /* @__PURE__ */ r(w, {
|
|
372
|
+
"data-slot": "input-otp",
|
|
373
|
+
containerClassName: e("cn-input-otp flex items-center has-disabled:opacity-50", n),
|
|
374
|
+
spellCheck: !1,
|
|
375
|
+
className: e("disabled:cursor-not-allowed", t),
|
|
376
|
+
...i
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
function O({ className: t, ...n }) {
|
|
380
|
+
return /* @__PURE__ */ r("div", {
|
|
381
|
+
"data-slot": "input-otp-group",
|
|
382
|
+
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),
|
|
383
|
+
...n
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
function k({ index: t, className: a, ...o }) {
|
|
387
|
+
let { char: s, hasFakeCaret: c, isActive: l } = n.useContext(C)?.slots[t] ?? {};
|
|
388
|
+
return /* @__PURE__ */ i("div", {
|
|
389
|
+
"data-slot": "input-otp-slot",
|
|
390
|
+
"data-active": l,
|
|
391
|
+
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),
|
|
392
|
+
...o,
|
|
393
|
+
children: [s, c && /* @__PURE__ */ r("div", {
|
|
394
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
395
|
+
children: /* @__PURE__ */ r("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" })
|
|
396
|
+
})]
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
function A({ ...e }) {
|
|
400
|
+
return /* @__PURE__ */ r("div", {
|
|
401
|
+
"data-slot": "input-otp-separator",
|
|
402
|
+
className: "flex items-center [&_svg:not([class*='size-'])]:size-4",
|
|
403
|
+
role: "separator",
|
|
404
|
+
...e,
|
|
405
|
+
children: /* @__PURE__ */ r(t, {})
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
//#endregion
|
|
409
|
+
export { k as i, O as n, A as r, D as t };
|
package/dist/input-otp.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./input-otp-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./input-otp-D9MwUsPO.js");exports.InputOTP=e.t,exports.InputOTPGroup=e.n,exports.InputOTPSeparator=e.r,exports.InputOTPSlot=e.i;
|
package/dist/input-otp.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OTPInput } from 'input-otp';
|
|
2
2
|
import { InputOTPBaseProps, InputOTPGroupBaseProps, InputOTPSeparatorBaseProps, InputOTPSlotBaseProps } from '@gv-tech/ui-core';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & InputOTPBaseProps):
|
|
5
|
-
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<'div'> & InputOTPGroupBaseProps):
|
|
6
|
-
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<'div'> & InputOTPSlotBaseProps):
|
|
7
|
-
declare function InputOTPSeparator({ ...props }: React.ComponentProps<'div'> & InputOTPSeparatorBaseProps):
|
|
4
|
+
declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & InputOTPBaseProps): React.JSX.Element;
|
|
5
|
+
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<'div'> & InputOTPGroupBaseProps): React.JSX.Element;
|
|
6
|
+
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<'div'> & InputOTPSlotBaseProps): React.JSX.Element;
|
|
7
|
+
declare function InputOTPSeparator({ ...props }: React.ComponentProps<'div'> & InputOTPSeparatorBaseProps): React.JSX.Element;
|
|
8
8
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
9
9
|
//# sourceMappingURL=input-otp.d.ts.map
|
package/dist/input-otp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../src/input-otp.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../src/input-otp.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,GAAG,iBAAiB,qBAU3D;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,sBAAsB,qBAWnG;AAED,iBAAS,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,qBAAqB,qBAsBxG;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,0BAA0B,qBAWhG;AAED,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/input-otp.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { i as e, n as t, r as n, t as r } from "./input-otp-
|
|
3
|
+
import { i as e, n as t, r as n, t as r } from "./input-otp-m_BTudNY.mjs";
|
|
4
4
|
export { r as InputOTP, t as InputOTPGroup, n as InputOTPSeparator, e as InputOTPSlot };
|
package/dist/input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js");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,6 +1,6 @@
|
|
|
1
1
|
import { InputBaseProps } from '@gv-tech/ui-core';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare function Input({ className, type, ...props }: React.ComponentProps<'input'>):
|
|
3
|
+
declare function Input({ className, type, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
|
|
4
4
|
export { Input };
|
|
5
5
|
export type ___verifyInputContract = React.ComponentProps<typeof Input> extends InputBaseProps ? true : false;
|
|
6
6
|
//# 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":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,qBAY1E;AAED,OAAO,EAAE,KAAK,EAAE,CAAC;AAGjB,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,SAAS,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
package/dist/input.mjs
CHANGED
package/dist/item.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./dist-NEeQKKDZ.js"),r=require("./separator-BXaVJadH.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;
|