@omnifyjp/ui 0.1.6 → 0.2.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/{chunk-XKVHX75G.js → chunk-2C2HRGM7.js} +3 -3
- package/dist/chunk-2C2HRGM7.js.map +1 -0
- package/dist/{chunk-CF2MMEOS.js → chunk-2TUWDXAC.js} +3 -3
- package/dist/chunk-2TUWDXAC.js.map +1 -0
- package/dist/{chunk-DZENMCRL.js → chunk-34ARZSNP.js} +2 -2
- package/dist/chunk-34ARZSNP.js.map +1 -0
- package/dist/{chunk-DIS42JLG.js → chunk-35DNN46W.js} +2 -2
- package/dist/chunk-35DNN46W.js.map +1 -0
- package/dist/{chunk-UCEUTKTQ.js → chunk-35U6QG4P.js} +5 -5
- package/dist/chunk-35U6QG4P.js.map +1 -0
- package/dist/{chunk-74K7VSEO.js → chunk-36YYHIJU.js} +4 -4
- package/dist/chunk-36YYHIJU.js.map +1 -0
- package/dist/{chunk-ANTYNEUU.js → chunk-3EOHW4QN.js} +2 -2
- package/dist/chunk-3EOHW4QN.js.map +1 -0
- package/dist/{chunk-EMHO6GT6.js → chunk-4MHIUUAW.js} +3 -3
- package/dist/chunk-4MHIUUAW.js.map +1 -0
- package/dist/chunk-55E7D2HR.js +99 -0
- package/dist/chunk-55E7D2HR.js.map +1 -0
- package/dist/{chunk-Z47W426M.js → chunk-67YUL2ZS.js} +2 -2
- package/dist/chunk-67YUL2ZS.js.map +1 -0
- package/dist/{chunk-XRGGZOD5.js → chunk-6DIDQ4TB.js} +10 -10
- package/dist/chunk-6DIDQ4TB.js.map +1 -0
- package/dist/{chunk-7ZFYPC74.js → chunk-6GWVQB3Q.js} +3 -3
- package/dist/chunk-6GWVQB3Q.js.map +1 -0
- package/dist/{chunk-DR4GGX45.js → chunk-75WZR6HF.js} +3 -3
- package/dist/chunk-75WZR6HF.js.map +1 -0
- package/dist/{chunk-QMABUSSD.js → chunk-7IRLBU2I.js} +3 -3
- package/dist/chunk-7IRLBU2I.js.map +1 -0
- package/dist/{chunk-WAPGZIAL.js → chunk-7RMTPT6O.js} +2 -2
- package/dist/chunk-7RMTPT6O.js.map +1 -0
- package/dist/{chunk-JPTN62BV.js → chunk-7XH3MGBR.js} +2 -2
- package/dist/chunk-7XH3MGBR.js.map +1 -0
- package/dist/chunk-A3BB5ZOC.js +77 -0
- package/dist/chunk-A3BB5ZOC.js.map +1 -0
- package/dist/{chunk-NFAXCC73.js → chunk-B434PORR.js} +2 -2
- package/dist/chunk-B434PORR.js.map +1 -0
- package/dist/{chunk-MNAT3ZF6.js → chunk-BAQWGQJG.js} +3 -3
- package/dist/chunk-BAQWGQJG.js.map +1 -0
- package/dist/{chunk-6GCAG5FH.js → chunk-BRSM3SZP.js} +2 -2
- package/dist/chunk-BRSM3SZP.js.map +1 -0
- package/dist/{chunk-AZARDPXB.js → chunk-C34KSTWA.js} +2 -2
- package/dist/chunk-C34KSTWA.js.map +1 -0
- package/dist/{chunk-4CT5SCAH.js → chunk-C5NZAOA7.js} +2 -2
- package/dist/chunk-C5NZAOA7.js.map +1 -0
- package/dist/{chunk-4Q2FLTAW.js → chunk-CUZR4JWM.js} +2 -2
- package/dist/chunk-CUZR4JWM.js.map +1 -0
- package/dist/{chunk-QMAMDYRD.js → chunk-EWBCV7VA.js} +2 -2
- package/dist/chunk-EWBCV7VA.js.map +1 -0
- package/dist/{chunk-4N357E44.js → chunk-F2ZJLKDP.js} +2 -2
- package/dist/chunk-F2ZJLKDP.js.map +1 -0
- package/dist/{chunk-KABLXGWK.js → chunk-FLWMT4DB.js} +2 -2
- package/dist/chunk-FLWMT4DB.js.map +1 -0
- package/dist/{chunk-IJIGJGL5.js → chunk-FRKG7JQY.js} +2 -2
- package/dist/chunk-FRKG7JQY.js.map +1 -0
- package/dist/{chunk-KRDWVQZ6.js → chunk-G7HTZBUR.js} +13 -13
- package/dist/chunk-G7HTZBUR.js.map +1 -0
- package/dist/{chunk-23SALQ3G.js → chunk-IAWKX5W4.js} +2 -2
- package/dist/chunk-IAWKX5W4.js.map +1 -0
- package/dist/{chunk-SABAKV4J.js → chunk-INLM7UJC.js} +2 -2
- package/dist/chunk-INLM7UJC.js.map +1 -0
- package/dist/{chunk-TEYOLOZY.js → chunk-JAJMM32I.js} +3 -3
- package/dist/chunk-JAJMM32I.js.map +1 -0
- package/dist/{chunk-TMFQJ7E3.js → chunk-JJSVA3TH.js} +2 -2
- package/dist/chunk-JJSVA3TH.js.map +1 -0
- package/dist/{chunk-KOGOYUEE.js → chunk-JLTBUACL.js} +2 -2
- package/dist/chunk-JLTBUACL.js.map +1 -0
- package/dist/{chunk-EIF6WZAZ.js → chunk-JRU2QX7T.js} +2 -2
- package/dist/chunk-JRU2QX7T.js.map +1 -0
- package/dist/{chunk-VGQC333M.js → chunk-JXGRW2MR.js} +2 -2
- package/dist/chunk-JXGRW2MR.js.map +1 -0
- package/dist/{chunk-CESZTYQQ.js → chunk-KTBOZ4NE.js} +4 -4
- package/dist/chunk-KTBOZ4NE.js.map +1 -0
- package/dist/{chunk-7ALADSN3.js → chunk-LMT327XH.js} +4 -4
- package/dist/chunk-LMT327XH.js.map +1 -0
- package/dist/{chunk-ZPWGR4CM.js → chunk-LTTNCAAA.js} +3 -3
- package/dist/chunk-LTTNCAAA.js.map +1 -0
- package/dist/{chunk-BJO5JCFB.js → chunk-LVZNNIK4.js} +3 -3
- package/dist/chunk-LVZNNIK4.js.map +1 -0
- package/dist/{chunk-YMZJ2RYW.js → chunk-MJLFJPUG.js} +9 -9
- package/dist/chunk-MJLFJPUG.js.map +1 -0
- package/dist/{chunk-3TV2IR7L.js → chunk-MZ2P566X.js} +4 -4
- package/dist/chunk-MZ2P566X.js.map +1 -0
- package/dist/{chunk-4D6FDXCG.js → chunk-N47H4MHX.js} +3 -3
- package/dist/chunk-N47H4MHX.js.map +1 -0
- package/dist/{chunk-BOYSXIM3.js → chunk-NNJTKHCE.js} +2 -2
- package/dist/chunk-NNJTKHCE.js.map +1 -0
- package/dist/{chunk-4OQTTPY4.js → chunk-NPL2R5LD.js} +5 -5
- package/dist/chunk-NPL2R5LD.js.map +1 -0
- package/dist/{chunk-725ICC47.js → chunk-NU56GKGM.js} +2 -2
- package/dist/{chunk-725ICC47.js.map → chunk-NU56GKGM.js.map} +1 -1
- package/dist/{chunk-KXZ7IND6.js → chunk-P3M5TZD2.js} +2 -2
- package/dist/chunk-P3M5TZD2.js.map +1 -0
- package/dist/{chunk-ONAUEREV.js → chunk-PGWNOZDX.js} +2 -2
- package/dist/chunk-PGWNOZDX.js.map +1 -0
- package/dist/{chunk-L46XUK4O.js → chunk-R2CDE5DO.js} +2 -2
- package/dist/chunk-R2CDE5DO.js.map +1 -0
- package/dist/{chunk-LI7CKURD.js → chunk-RQNZDWY3.js} +2 -2
- package/dist/chunk-RQNZDWY3.js.map +1 -0
- package/dist/{chunk-YKJZV2JK.js → chunk-S6PDRGR5.js} +2 -2
- package/dist/chunk-S6PDRGR5.js.map +1 -0
- package/dist/chunk-TGYQ3AKH.js +95 -0
- package/dist/chunk-TGYQ3AKH.js.map +1 -0
- package/dist/{chunk-RIIADVOV.js → chunk-THQUH6WX.js} +6 -6
- package/dist/chunk-THQUH6WX.js.map +1 -0
- package/dist/{chunk-RVJDDGQW.js → chunk-TJMK2KBE.js} +3 -3
- package/dist/chunk-TJMK2KBE.js.map +1 -0
- package/dist/{chunk-5WCL47ZW.js → chunk-TTH7TWVX.js} +2 -2
- package/dist/chunk-TTH7TWVX.js.map +1 -0
- package/dist/{chunk-LW5PTU7D.js → chunk-USIHM7FV.js} +2 -2
- package/dist/chunk-USIHM7FV.js.map +1 -0
- package/dist/{chunk-PCQSHXOQ.js → chunk-VVYSAGB3.js} +6 -6
- package/dist/chunk-VVYSAGB3.js.map +1 -0
- package/dist/{chunk-CDARHMTL.js → chunk-WD5KZE25.js} +2 -2
- package/dist/chunk-WD5KZE25.js.map +1 -0
- package/dist/{chunk-PPZSGU2L.js → chunk-WL4ZO2H3.js} +2 -2
- package/dist/chunk-WL4ZO2H3.js.map +1 -0
- package/dist/{chunk-5M67ZEPM.js → chunk-XOJJBNDX.js} +2 -2
- package/dist/chunk-XOJJBNDX.js.map +1 -0
- package/dist/{chunk-JJHKFW6P.js → chunk-XUVLD65E.js} +7 -7
- package/dist/chunk-XUVLD65E.js.map +1 -0
- package/dist/{chunk-KXT75MXF.js → chunk-YBMEQZX7.js} +2 -2
- package/dist/chunk-YBMEQZX7.js.map +1 -0
- package/dist/{chunk-GJCHZAJO.js → chunk-YS3PMGYC.js} +5 -5
- package/dist/chunk-YS3PMGYC.js.map +1 -0
- package/dist/{chunk-OXQNDQJW.js → chunk-Z2QAABLM.js} +2 -2
- package/dist/chunk-Z2QAABLM.js.map +1 -0
- package/dist/{chunk-YF6WRCTG.js → chunk-ZHEKDP5X.js} +3 -3
- package/dist/chunk-ZHEKDP5X.js.map +1 -0
- package/dist/{chunk-OHBCYKNT.js → chunk-ZPMXRW2A.js} +3 -3
- package/dist/chunk-ZPMXRW2A.js.map +1 -0
- package/dist/{chunk-QCGYYBDZ.js → chunk-ZYEGBF7G.js} +3 -3
- package/dist/chunk-ZYEGBF7G.js.map +1 -0
- package/dist/components/accordion.d.ts +27 -0
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +39 -0
- package/dist/components/alert-dialog.js +2 -2
- package/dist/components/alert.d.ts +57 -2
- package/dist/components/alert.js +1 -1
- package/dist/components/aspect-ratio.d.ts +17 -0
- package/dist/components/aspect-ratio.js +1 -1
- package/dist/components/avatar.d.ts +43 -4
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.d.ts +43 -4
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumb.d.ts +36 -0
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/button.d.ts +43 -19
- package/dist/components/button.js +1 -1
- package/dist/components/calendar-category-badge.d.ts +14 -0
- package/dist/components/calendar-category-badge.js +2 -2
- package/dist/components/calendar-event-chip.d.ts +23 -0
- package/dist/components/calendar-event-chip.js +1 -1
- package/dist/components/calendar-event-sheet.d.ts +37 -0
- package/dist/components/calendar-event-sheet.js +6 -6
- package/dist/components/calendar-mini.d.ts +36 -0
- package/dist/components/calendar-mini.js +3 -3
- package/dist/components/calendar-toolbar.d.ts +34 -1
- package/dist/components/calendar-toolbar.js +4 -4
- package/dist/components/calendar.d.ts +12 -0
- package/dist/components/calendar.js +2 -2
- package/dist/components/card.d.ts +31 -0
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.d.ts +29 -0
- package/dist/components/carousel.js +2 -2
- package/dist/components/chart.d.ts +61 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.d.ts +19 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/collapsible.d.ts +20 -0
- package/dist/components/collapsible.js +1 -1
- package/dist/components/color-picker.d.ts +22 -0
- package/dist/components/color-picker.js +3 -3
- package/dist/components/combobox.d.ts +65 -0
- package/dist/components/combobox.js +5 -5
- package/dist/components/command.d.ts +43 -0
- package/dist/components/command.js +2 -2
- package/dist/components/context-menu.d.ts +42 -0
- package/dist/components/context-menu.js +1 -1
- package/dist/components/date-picker.d.ts +42 -2
- package/dist/components/date-picker.js +4 -4
- package/dist/components/dialog.d.ts +42 -0
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.d.ts +43 -0
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.d.ts +48 -0
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/file-upload.d.ts +27 -0
- package/dist/components/file-upload.js +2 -2
- package/dist/components/form.d.ts +39 -0
- package/dist/components/form.js +2 -2
- package/dist/components/hover-card.d.ts +34 -0
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-otp.d.ts +24 -0
- package/dist/components/input-otp.js +1 -1
- package/dist/components/label.d.ts +15 -1
- package/dist/components/label.js +1 -1
- package/dist/components/menubar.d.ts +53 -0
- package/dist/components/menubar.js +1 -1
- package/dist/components/navigation-menu.d.ts +46 -0
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/pagination.d.ts +41 -0
- package/dist/components/pagination.js +2 -2
- package/dist/components/permission-grid.d.ts +37 -0
- package/dist/components/permission-grid.js +2 -2
- package/dist/components/popover.d.ts +27 -0
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.d.ts +15 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +33 -3
- package/dist/components/radio-group.js +1 -1
- package/dist/components/rating.d.ts +21 -0
- package/dist/components/rating.js +1 -1
- package/dist/components/resizable.d.ts +25 -0
- package/dist/components/resizable.js +1 -1
- package/dist/components/scope-tree.d.ts +45 -2
- package/dist/components/scope-tree.js +2 -2
- package/dist/components/scope-type-badge.d.ts +15 -0
- package/dist/components/scope-type-badge.js +2 -2
- package/dist/components/scroll-area.d.ts +21 -0
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/select.d.ts +34 -0
- package/dist/components/select.js +1 -1
- package/dist/components/separator.d.ts +19 -2
- package/dist/components/separator.js +1 -1
- package/dist/components/sheet.d.ts +35 -0
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.d.ts +94 -0
- package/dist/components/sidebar.js +6 -6
- package/dist/components/skeleton.d.ts +22 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.d.ts +19 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/slug-input.d.ts +28 -0
- package/dist/components/slug-input.js +2 -2
- package/dist/components/sonner.d.ts +16 -0
- package/dist/components/sonner.js +1 -1
- package/dist/components/stage-type-badge.d.ts +6 -0
- package/dist/components/stage-type-badge.js +2 -2
- package/dist/components/switch.d.ts +21 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/table.d.ts +44 -0
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.d.ts +29 -0
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag-input.d.ts +25 -0
- package/dist/components/tag-input.js +2 -2
- package/dist/components/textarea.d.ts +17 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/time-picker.d.ts +37 -0
- package/dist/components/time-picker.js +4 -4
- package/dist/components/toggle-group.d.ts +36 -3
- package/dist/components/toggle-group.js +2 -2
- package/dist/components/toggle.d.ts +20 -2
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.d.ts +24 -0
- package/dist/components/tooltip.js +1 -1
- package/dist/components/workflow-category-badge.d.ts +6 -0
- package/dist/components/workflow-category-badge.js +2 -2
- package/dist/components/workflow-diagram.d.ts +21 -1
- package/dist/components/workflow-diagram.js +2 -2
- package/dist/components/workflow-status-badge.d.ts +6 -0
- package/dist/components/workflow-status-badge.js +2 -2
- package/dist/components/workflow-stepper.d.ts +18 -0
- package/dist/components/workflow-stepper.js +1 -1
- package/dist/index.d.ts +14 -13
- package/dist/index.js +66 -66
- package/dist/types-CBVkScfB.d.ts +84 -0
- package/package.json +23 -13
- package/src/styles/theme.css +10 -0
- package/dist/chunk-23SALQ3G.js.map +0 -1
- package/dist/chunk-3TGN2DFB.js +0 -41
- package/dist/chunk-3TGN2DFB.js.map +0 -1
- package/dist/chunk-3TV2IR7L.js.map +0 -1
- package/dist/chunk-4CT5SCAH.js.map +0 -1
- package/dist/chunk-4D6FDXCG.js.map +0 -1
- package/dist/chunk-4N357E44.js.map +0 -1
- package/dist/chunk-4OQTTPY4.js.map +0 -1
- package/dist/chunk-4Q2FLTAW.js.map +0 -1
- package/dist/chunk-5M67ZEPM.js.map +0 -1
- package/dist/chunk-5WCL47ZW.js.map +0 -1
- package/dist/chunk-6GCAG5FH.js.map +0 -1
- package/dist/chunk-74K7VSEO.js.map +0 -1
- package/dist/chunk-7ALADSN3.js.map +0 -1
- package/dist/chunk-7ZFYPC74.js.map +0 -1
- package/dist/chunk-ANTYNEUU.js.map +0 -1
- package/dist/chunk-AZARDPXB.js.map +0 -1
- package/dist/chunk-BJO5JCFB.js.map +0 -1
- package/dist/chunk-BOYSXIM3.js.map +0 -1
- package/dist/chunk-CDARHMTL.js.map +0 -1
- package/dist/chunk-CESZTYQQ.js.map +0 -1
- package/dist/chunk-CF2MMEOS.js.map +0 -1
- package/dist/chunk-DIS42JLG.js.map +0 -1
- package/dist/chunk-DR4GGX45.js.map +0 -1
- package/dist/chunk-DZENMCRL.js.map +0 -1
- package/dist/chunk-EIF6WZAZ.js.map +0 -1
- package/dist/chunk-EMHO6GT6.js.map +0 -1
- package/dist/chunk-FBNG2KGO.js +0 -66
- package/dist/chunk-FBNG2KGO.js.map +0 -1
- package/dist/chunk-GJCHZAJO.js.map +0 -1
- package/dist/chunk-IJIGJGL5.js.map +0 -1
- package/dist/chunk-JJHKFW6P.js.map +0 -1
- package/dist/chunk-JPTN62BV.js.map +0 -1
- package/dist/chunk-KABLXGWK.js.map +0 -1
- package/dist/chunk-KOGOYUEE.js.map +0 -1
- package/dist/chunk-KRDWVQZ6.js.map +0 -1
- package/dist/chunk-KXT75MXF.js.map +0 -1
- package/dist/chunk-KXZ7IND6.js.map +0 -1
- package/dist/chunk-L46XUK4O.js.map +0 -1
- package/dist/chunk-LI7CKURD.js.map +0 -1
- package/dist/chunk-LW5PTU7D.js.map +0 -1
- package/dist/chunk-MNAT3ZF6.js.map +0 -1
- package/dist/chunk-NFAXCC73.js.map +0 -1
- package/dist/chunk-OHBCYKNT.js.map +0 -1
- package/dist/chunk-ONAUEREV.js.map +0 -1
- package/dist/chunk-OXQNDQJW.js.map +0 -1
- package/dist/chunk-PCQSHXOQ.js.map +0 -1
- package/dist/chunk-PPZSGU2L.js.map +0 -1
- package/dist/chunk-QCGYYBDZ.js.map +0 -1
- package/dist/chunk-QMABUSSD.js.map +0 -1
- package/dist/chunk-QMAMDYRD.js.map +0 -1
- package/dist/chunk-RIIADVOV.js.map +0 -1
- package/dist/chunk-RVJDDGQW.js.map +0 -1
- package/dist/chunk-SABAKV4J.js.map +0 -1
- package/dist/chunk-TEYOLOZY.js.map +0 -1
- package/dist/chunk-TMFQJ7E3.js.map +0 -1
- package/dist/chunk-UCEUTKTQ.js.map +0 -1
- package/dist/chunk-VGQC333M.js.map +0 -1
- package/dist/chunk-WAPGZIAL.js.map +0 -1
- package/dist/chunk-XKVHX75G.js.map +0 -1
- package/dist/chunk-XRGGZOD5.js.map +0 -1
- package/dist/chunk-Y65FNGEE.js +0 -52
- package/dist/chunk-Y65FNGEE.js.map +0 -1
- package/dist/chunk-YF6WRCTG.js.map +0 -1
- package/dist/chunk-YKJZV2JK.js.map +0 -1
- package/dist/chunk-YMZJ2RYW.js.map +0 -1
- package/dist/chunk-Z47W426M.js.map +0 -1
- package/dist/chunk-ZPWGR4CM.js.map +0 -1
|
@@ -2,15 +2,57 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Modal dialog component built on Radix UI Dialog.
|
|
7
|
+
*
|
|
8
|
+
* Renders a centered overlay panel that interrupts the user with important content
|
|
9
|
+
* and expects a response. Supports controlled (`open`/`onOpenChange`) and
|
|
10
|
+
* uncontrolled usage (via `DialogTrigger`).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Dialog open={open} onOpenChange={setOpen}>
|
|
15
|
+
* <DialogTrigger asChild>
|
|
16
|
+
* <Button>Open Dialog</Button>
|
|
17
|
+
* </DialogTrigger>
|
|
18
|
+
* <DialogContent>
|
|
19
|
+
* <DialogHeader>
|
|
20
|
+
* <DialogTitle>Edit Profile</DialogTitle>
|
|
21
|
+
* <DialogDescription>
|
|
22
|
+
* Make changes to your profile here.
|
|
23
|
+
* </DialogDescription>
|
|
24
|
+
* </DialogHeader>
|
|
25
|
+
* <div className="space-y-4">
|
|
26
|
+
* <Input placeholder="Name" />
|
|
27
|
+
* </div>
|
|
28
|
+
* <DialogFooter>
|
|
29
|
+
* <Button variant="outline" onClick={() => setOpen(false)}>
|
|
30
|
+
* Cancel
|
|
31
|
+
* </Button>
|
|
32
|
+
* <Button>Save Changes</Button>
|
|
33
|
+
* </DialogFooter>
|
|
34
|
+
* </DialogContent>
|
|
35
|
+
* </Dialog>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
5
38
|
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
39
|
+
/** Element that opens the dialog when clicked. Use `asChild` to merge into your own button. */
|
|
6
40
|
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
41
|
+
/** Portal that renders dialog content outside the DOM hierarchy. */
|
|
7
42
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
43
|
+
/** Button that closes the dialog. Use `asChild` to merge into your own button. */
|
|
8
44
|
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
45
|
+
/** Semi-transparent backdrop rendered behind the dialog content. */
|
|
9
46
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
/** Dialog content panel with overlay backdrop and a built-in close button. */
|
|
10
48
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
/** Container for DialogTitle and DialogDescription at the top of the dialog. */
|
|
11
50
|
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
51
|
+
/** Container for action buttons at the bottom of the dialog. */
|
|
12
52
|
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
53
|
+
/** Accessible title rendered inside DialogHeader. */
|
|
13
54
|
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
55
|
+
/** Accessible description rendered inside DialogHeader below the title. */
|
|
14
56
|
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
15
57
|
|
|
16
58
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from '../chunk-
|
|
1
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from '../chunk-F2ZJLKDP.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=dialog.js.map
|
|
4
4
|
//# sourceMappingURL=dialog.js.map
|
|
@@ -2,16 +2,59 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Swipeable drawer component built on Vaul.
|
|
7
|
+
*
|
|
8
|
+
* Slides from any edge of the screen and can be dismissed by swiping.
|
|
9
|
+
* Set the `direction` prop on the root to control direction (`"top"`, `"bottom"`,
|
|
10
|
+
* `"left"`, `"right"`). Always wrap content in `DrawerBody` for proper scrolling.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Drawer open={open} onOpenChange={setOpen}>
|
|
15
|
+
* <DrawerTrigger asChild>
|
|
16
|
+
* <Button variant="outline">Open Drawer</Button>
|
|
17
|
+
* </DrawerTrigger>
|
|
18
|
+
* <DrawerContent>
|
|
19
|
+
* <DrawerHeader>
|
|
20
|
+
* <DrawerTitle>Task Details</DrawerTitle>
|
|
21
|
+
* <DrawerDescription>
|
|
22
|
+
* View and edit task information.
|
|
23
|
+
* </DrawerDescription>
|
|
24
|
+
* </DrawerHeader>
|
|
25
|
+
* <DrawerBody>
|
|
26
|
+
* <p>Scrollable content goes here.</p>
|
|
27
|
+
* </DrawerBody>
|
|
28
|
+
* <DrawerFooter>
|
|
29
|
+
* <Button>Save</Button>
|
|
30
|
+
* <DrawerClose asChild>
|
|
31
|
+
* <Button variant="outline">Cancel</Button>
|
|
32
|
+
* </DrawerClose>
|
|
33
|
+
* </DrawerFooter>
|
|
34
|
+
* </DrawerContent>
|
|
35
|
+
* </Drawer>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
5
38
|
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
39
|
+
/** Element that opens the drawer when clicked. Use `asChild` to merge into your own button. */
|
|
6
40
|
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
41
|
+
/** Portal that renders drawer content outside the DOM hierarchy. */
|
|
7
42
|
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
43
|
+
/** Button that closes the drawer. Use `asChild` to merge into your own button. */
|
|
8
44
|
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
45
|
+
/** Semi-transparent backdrop rendered behind the drawer panel. */
|
|
9
46
|
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
47
|
+
/** Drawer content panel that slides in from the configured direction. Includes a drag handle for bottom drawers. */
|
|
10
48
|
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
|
|
49
|
+
/** Container for DrawerTitle and DrawerDescription at the top of the drawer. */
|
|
11
50
|
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
51
|
+
/** Scrollable body area for drawer content. Always wrap main content in this component. */
|
|
12
52
|
declare function DrawerBody({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
53
|
+
/** Container for action buttons at the bottom of the drawer. Pushed to the bottom via `mt-auto`. */
|
|
13
54
|
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
55
|
+
/** Accessible title rendered inside DrawerHeader. */
|
|
14
56
|
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
57
|
+
/** Accessible description rendered inside DrawerHeader below the title. */
|
|
15
58
|
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
16
59
|
|
|
17
60
|
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from '../chunk-
|
|
1
|
+
export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from '../chunk-7XH3MGBR.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=drawer.js.map
|
|
4
4
|
//# sourceMappingURL=drawer.js.map
|
|
@@ -2,27 +2,75 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Dropdown menu component built on Radix UI DropdownMenu.
|
|
7
|
+
*
|
|
8
|
+
* Displays a menu of actions or options triggered by a button click.
|
|
9
|
+
* Supports items, checkbox items, radio items, sub-menus, separators,
|
|
10
|
+
* labels, shortcuts, and destructive variants.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <DropdownMenu>
|
|
15
|
+
* <DropdownMenuTrigger asChild>
|
|
16
|
+
* <Button variant="outline">Actions</Button>
|
|
17
|
+
* </DropdownMenuTrigger>
|
|
18
|
+
* <DropdownMenuContent>
|
|
19
|
+
* <DropdownMenuLabel>My Account</DropdownMenuLabel>
|
|
20
|
+
* <DropdownMenuSeparator />
|
|
21
|
+
* <DropdownMenuItem>
|
|
22
|
+
* <UserIcon className="size-4" />
|
|
23
|
+
* Profile
|
|
24
|
+
* <DropdownMenuShortcut>Ctrl+P</DropdownMenuShortcut>
|
|
25
|
+
* </DropdownMenuItem>
|
|
26
|
+
* <DropdownMenuItem>
|
|
27
|
+
* <SettingsIcon className="size-4" />
|
|
28
|
+
* Settings
|
|
29
|
+
* </DropdownMenuItem>
|
|
30
|
+
* <DropdownMenuSeparator />
|
|
31
|
+
* <DropdownMenuItem variant="destructive">
|
|
32
|
+
* <TrashIcon className="size-4" />
|
|
33
|
+
* Delete
|
|
34
|
+
* </DropdownMenuItem>
|
|
35
|
+
* </DropdownMenuContent>
|
|
36
|
+
* </DropdownMenu>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
5
39
|
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
40
|
+
/** Portal that renders dropdown content outside the DOM hierarchy. */
|
|
6
41
|
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
42
|
+
/** Element that opens the dropdown menu when clicked. Use `asChild` to merge into your own button. */
|
|
7
43
|
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
44
|
+
/** Floating container for menu items, positioned relative to the trigger. */
|
|
8
45
|
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
46
|
+
/** Groups related menu items together for accessibility. */
|
|
9
47
|
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Actionable menu item. Set `variant="destructive"` for dangerous actions, `inset` for left-padding alignment. */
|
|
10
49
|
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
11
50
|
inset?: boolean;
|
|
12
51
|
variant?: "default" | "destructive";
|
|
13
52
|
}): react_jsx_runtime.JSX.Element;
|
|
53
|
+
/** Menu item with a checkbox indicator for toggling options. */
|
|
14
54
|
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
55
|
+
/** Container for radio menu items where only one can be selected at a time. */
|
|
15
56
|
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
57
|
+
/** Menu item with a radio indicator for single-selection groups. */
|
|
16
58
|
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
59
|
+
/** Non-interactive label used to title a group of menu items. */
|
|
17
60
|
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
18
61
|
inset?: boolean;
|
|
19
62
|
}): react_jsx_runtime.JSX.Element;
|
|
63
|
+
/** Visual divider between groups of menu items. */
|
|
20
64
|
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
65
|
+
/** Keyboard shortcut hint displayed at the end of a menu item. */
|
|
21
66
|
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
67
|
+
/** Container for a nested sub-menu within the dropdown. */
|
|
22
68
|
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
69
|
+
/** Menu item that opens a sub-menu on hover. Displays a chevron indicator. */
|
|
23
70
|
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
24
71
|
inset?: boolean;
|
|
25
72
|
}): react_jsx_runtime.JSX.Element;
|
|
73
|
+
/** Floating container for sub-menu items. */
|
|
26
74
|
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
27
75
|
|
|
28
76
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '../chunk-
|
|
1
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '../chunk-IAWKX5W4.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=dropdown-menu.js.map
|
|
4
4
|
//# sourceMappingURL=dropdown-menu.js.map
|
|
@@ -1,16 +1,43 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
interface FileUploadProps {
|
|
4
|
+
/** Array of currently uploaded File objects. */
|
|
4
5
|
value?: File[];
|
|
6
|
+
/** Callback fired when files are added or removed. */
|
|
5
7
|
onChange?: (files: File[]) => void;
|
|
8
|
+
/** Accepted file types (e.g., `"image/*,.pdf"`). Maps to the HTML `accept` attribute. */
|
|
6
9
|
accept?: string;
|
|
10
|
+
/** Whether multiple files can be selected at once. Defaults to `false`. */
|
|
7
11
|
multiple?: boolean;
|
|
12
|
+
/** Maximum file size in bytes. Defaults to 10 MB. */
|
|
8
13
|
maxSize?: number;
|
|
14
|
+
/** Maximum number of files allowed. */
|
|
9
15
|
maxFiles?: number;
|
|
16
|
+
/** Whether the upload area is disabled. */
|
|
10
17
|
disabled?: boolean;
|
|
18
|
+
/** Additional CSS class for the outer wrapper. */
|
|
11
19
|
className?: string;
|
|
20
|
+
/** Whether to show the file list with previews below the drop zone. Defaults to `true`. */
|
|
12
21
|
showPreview?: boolean;
|
|
13
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* File upload component with drag-and-drop support and file previews.
|
|
25
|
+
* Validates file size and count, shows image thumbnails, and provides remove buttons.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* const [files, setFiles] = useState<File[]>([]);
|
|
30
|
+
*
|
|
31
|
+
* <FileUpload
|
|
32
|
+
* value={files}
|
|
33
|
+
* onChange={setFiles}
|
|
34
|
+
* accept="image/*,.pdf"
|
|
35
|
+
* multiple
|
|
36
|
+
* maxSize={5 * 1024 * 1024}
|
|
37
|
+
* maxFiles={3}
|
|
38
|
+
* />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
14
41
|
declare function FileUpload({ value, onChange, accept, multiple, maxSize, // 10MB default
|
|
15
42
|
maxFiles, disabled, className, showPreview, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
16
43
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FileUpload } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { FileUpload } from '../chunk-G7HTZBUR.js';
|
|
2
|
+
import '../chunk-55E7D2HR.js';
|
|
3
3
|
import '../chunk-DGPY4WP3.js';
|
|
4
4
|
//# sourceMappingURL=file-upload.js.map
|
|
5
5
|
//# sourceMappingURL=file-upload.js.map
|
|
@@ -5,8 +5,42 @@ import * as React from 'react';
|
|
|
5
5
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
6
6
|
import { Slot } from '@radix-ui/react-slot';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Form provider component built on react-hook-form's FormProvider.
|
|
10
|
+
* Wraps form fields and provides form context for validation, error display, and accessibility.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const form = useForm({ defaultValues: { email: "" } });
|
|
15
|
+
*
|
|
16
|
+
* <Form {...form}>
|
|
17
|
+
* <form onSubmit={form.handleSubmit(onSubmit)}>
|
|
18
|
+
* <FormField
|
|
19
|
+
* control={form.control}
|
|
20
|
+
* name="email"
|
|
21
|
+
* render={({ field }) => (
|
|
22
|
+
* <FormItem>
|
|
23
|
+
* <FormLabel>Email</FormLabel>
|
|
24
|
+
* <FormControl>
|
|
25
|
+
* <Input placeholder="you@example.com" {...field} />
|
|
26
|
+
* </FormControl>
|
|
27
|
+
* <FormDescription>Your work email address.</FormDescription>
|
|
28
|
+
* <FormMessage />
|
|
29
|
+
* </FormItem>
|
|
30
|
+
* )}
|
|
31
|
+
* />
|
|
32
|
+
* <Button type="submit">Submit</Button>
|
|
33
|
+
* </form>
|
|
34
|
+
* </Form>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
8
37
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
38
|
+
/** Connects a form field to react-hook-form's Controller and provides field context. */
|
|
9
39
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* Hook that returns field state, IDs, and error information for the current form field.
|
|
42
|
+
* Must be used within a `FormField` component.
|
|
43
|
+
*/
|
|
10
44
|
declare const useFormField: () => {
|
|
11
45
|
invalid: boolean;
|
|
12
46
|
isDirty: boolean;
|
|
@@ -19,10 +53,15 @@ declare const useFormField: () => {
|
|
|
19
53
|
formDescriptionId: string;
|
|
20
54
|
formMessageId: string;
|
|
21
55
|
};
|
|
56
|
+
/** Container for a single form field, grouping label, control, description, and message. */
|
|
22
57
|
declare function FormItem({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
58
|
+
/** Label for a form field that turns red on validation error. */
|
|
23
59
|
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
60
|
+
/** Slot wrapper that wires up aria attributes for the form control. */
|
|
24
61
|
declare function FormControl({ ...props }: React.ComponentProps<typeof Slot>): react_jsx_runtime.JSX.Element;
|
|
62
|
+
/** Helper text displayed below the form control. */
|
|
25
63
|
declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
64
|
+
/** Displays the validation error message for the form field. */
|
|
26
65
|
declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element | null;
|
|
27
66
|
|
|
28
67
|
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
package/dist/components/form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from '../chunk-LVZNNIK4.js';
|
|
2
|
+
import '../chunk-P3M5TZD2.js';
|
|
3
3
|
import '../chunk-DGPY4WP3.js';
|
|
4
4
|
//# sourceMappingURL=form.js.map
|
|
5
5
|
//# sourceMappingURL=form.js.map
|
|
@@ -2,8 +2,42 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Hover-activated floating card built on Radix UI HoverCard.
|
|
7
|
+
*
|
|
8
|
+
* Displays a preview card when the user hovers over a trigger element.
|
|
9
|
+
* Ideal for showing user profiles, link previews, or supplementary info
|
|
10
|
+
* without requiring a click.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <HoverCard>
|
|
15
|
+
* <HoverCardTrigger asChild>
|
|
16
|
+
* <a href="/user/john" className="underline">
|
|
17
|
+
* @john
|
|
18
|
+
* </a>
|
|
19
|
+
* </HoverCardTrigger>
|
|
20
|
+
* <HoverCardContent>
|
|
21
|
+
* <div className="flex gap-4">
|
|
22
|
+
* <Avatar>
|
|
23
|
+
* <AvatarImage src="/avatars/john.png" />
|
|
24
|
+
* <AvatarFallback>JD</AvatarFallback>
|
|
25
|
+
* </Avatar>
|
|
26
|
+
* <div>
|
|
27
|
+
* <h4 className="text-sm font-semibold">John Doe</h4>
|
|
28
|
+
* <p className="text-sm text-muted-foreground">
|
|
29
|
+
* Software Engineer
|
|
30
|
+
* </p>
|
|
31
|
+
* </div>
|
|
32
|
+
* </div>
|
|
33
|
+
* </HoverCardContent>
|
|
34
|
+
* </HoverCard>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
5
37
|
declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
38
|
+
/** Element that shows the hover card on mouse enter. Use `asChild` to merge into your own element. */
|
|
6
39
|
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
40
|
+
/** Floating content panel that appears on hover. */
|
|
7
41
|
declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
8
42
|
|
|
9
43
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger } from '../chunk-
|
|
1
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from '../chunk-JRU2QX7T.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=hover-card.js.map
|
|
4
4
|
//# sourceMappingURL=hover-card.js.map
|
|
@@ -2,13 +2,37 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { OTPInput } from 'input-otp';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* One-time password input component built on the `input-otp` library.
|
|
7
|
+
* Renders a segmented input for entering verification codes.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <InputOTP maxLength={6} value={otp} onChange={setOtp}>
|
|
12
|
+
* <InputOTPGroup>
|
|
13
|
+
* <InputOTPSlot index={0} />
|
|
14
|
+
* <InputOTPSlot index={1} />
|
|
15
|
+
* <InputOTPSlot index={2} />
|
|
16
|
+
* </InputOTPGroup>
|
|
17
|
+
* <InputOTPSeparator />
|
|
18
|
+
* <InputOTPGroup>
|
|
19
|
+
* <InputOTPSlot index={3} />
|
|
20
|
+
* <InputOTPSlot index={4} />
|
|
21
|
+
* <InputOTPSlot index={5} />
|
|
22
|
+
* </InputOTPGroup>
|
|
23
|
+
* </InputOTP>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
5
26
|
declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
|
|
6
27
|
containerClassName?: string;
|
|
7
28
|
}): react_jsx_runtime.JSX.Element;
|
|
29
|
+
/** Groups adjacent OTP slots together visually. */
|
|
8
30
|
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
31
|
+
/** Individual character slot within an OTP group. */
|
|
9
32
|
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
10
33
|
index: number;
|
|
11
34
|
}): react_jsx_runtime.JSX.Element;
|
|
35
|
+
/** Visual separator (dash) between OTP groups. */
|
|
12
36
|
declare function InputOTPSeparator({ ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
13
37
|
|
|
14
38
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from '../chunk-
|
|
1
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from '../chunk-RQNZDWY3.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=input-otp.js.map
|
|
4
4
|
//# sourceMappingURL=input-otp.js.map
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
3
|
|
|
4
|
+
type LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>;
|
|
5
|
+
/**
|
|
6
|
+
* Accessible label for form controls, automatically associated via `htmlFor`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* // With an input
|
|
11
|
+
* <Label htmlFor="email">Email address</Label>
|
|
12
|
+
* <Input id="email" type="email" />
|
|
13
|
+
*
|
|
14
|
+
* // Disabled state (responds to group/peer disabled)
|
|
15
|
+
* <Label htmlFor="name">Name</Label>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
4
18
|
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
19
|
|
|
6
|
-
export { Label };
|
|
20
|
+
export { Label, type LabelProps };
|
package/dist/components/label.js
CHANGED
|
@@ -2,28 +2,81 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Horizontal menu bar component built on Radix UI Menubar.
|
|
7
|
+
*
|
|
8
|
+
* Provides a desktop-style menu bar with multiple dropdown menus.
|
|
9
|
+
* Each menu is defined by a `MenubarMenu` containing a `MenubarTrigger`
|
|
10
|
+
* and `MenubarContent` with items.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Menubar>
|
|
15
|
+
* <MenubarMenu>
|
|
16
|
+
* <MenubarTrigger>File</MenubarTrigger>
|
|
17
|
+
* <MenubarContent>
|
|
18
|
+
* <MenubarItem>
|
|
19
|
+
* New Tab
|
|
20
|
+
* <MenubarShortcut>Ctrl+T</MenubarShortcut>
|
|
21
|
+
* </MenubarItem>
|
|
22
|
+
* <MenubarItem>New Window</MenubarItem>
|
|
23
|
+
* <MenubarSeparator />
|
|
24
|
+
* <MenubarSub>
|
|
25
|
+
* <MenubarSubTrigger>Share</MenubarSubTrigger>
|
|
26
|
+
* <MenubarSubContent>
|
|
27
|
+
* <MenubarItem>Email Link</MenubarItem>
|
|
28
|
+
* <MenubarItem>Messages</MenubarItem>
|
|
29
|
+
* </MenubarSubContent>
|
|
30
|
+
* </MenubarSub>
|
|
31
|
+
* </MenubarContent>
|
|
32
|
+
* </MenubarMenu>
|
|
33
|
+
* <MenubarMenu>
|
|
34
|
+
* <MenubarTrigger>Edit</MenubarTrigger>
|
|
35
|
+
* <MenubarContent>
|
|
36
|
+
* <MenubarItem>Undo</MenubarItem>
|
|
37
|
+
* <MenubarItem>Redo</MenubarItem>
|
|
38
|
+
* </MenubarContent>
|
|
39
|
+
* </MenubarMenu>
|
|
40
|
+
* </Menubar>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
5
43
|
declare function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
44
|
+
/** Wraps a single menu within the menu bar, containing a trigger and content. */
|
|
6
45
|
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): react_jsx_runtime.JSX.Element;
|
|
46
|
+
/** Groups related menubar items together for accessibility. */
|
|
7
47
|
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Portal that renders menubar content outside the DOM hierarchy. */
|
|
8
49
|
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
50
|
+
/** Container for radio menubar items where only one can be selected at a time. */
|
|
9
51
|
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
52
|
+
/** Button label in the menu bar that opens its associated dropdown content on click. */
|
|
10
53
|
declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
54
|
+
/** Floating container for menubar items, positioned below the trigger. */
|
|
11
55
|
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
56
|
+
/** Actionable menu item. Set `variant="destructive"` for dangerous actions, `inset` for left-padding alignment. */
|
|
12
57
|
declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof MenubarPrimitive.Item> & {
|
|
13
58
|
inset?: boolean;
|
|
14
59
|
variant?: "default" | "destructive";
|
|
15
60
|
}): react_jsx_runtime.JSX.Element;
|
|
61
|
+
/** Menu item with a checkbox indicator for toggling options. */
|
|
16
62
|
declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
63
|
+
/** Menu item with a radio indicator for single-selection groups. */
|
|
17
64
|
declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
65
|
+
/** Non-interactive label used to title a group of menu items. */
|
|
18
66
|
declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Label> & {
|
|
19
67
|
inset?: boolean;
|
|
20
68
|
}): react_jsx_runtime.JSX.Element;
|
|
69
|
+
/** Visual divider between groups of menu items. */
|
|
21
70
|
declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
71
|
+
/** Keyboard shortcut hint displayed at the end of a menu item. */
|
|
22
72
|
declare function MenubarShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
73
|
+
/** Container for a nested sub-menu within the menubar. */
|
|
23
74
|
declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
75
|
+
/** Menu item that opens a sub-menu on hover. Displays a chevron indicator. */
|
|
24
76
|
declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
|
|
25
77
|
inset?: boolean;
|
|
26
78
|
}): react_jsx_runtime.JSX.Element;
|
|
79
|
+
/** Floating container for sub-menu items. */
|
|
27
80
|
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
28
81
|
|
|
29
82
|
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from '../chunk-
|
|
1
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from '../chunk-INLM7UJC.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=menubar.js.map
|
|
4
4
|
//# sourceMappingURL=menubar.js.map
|
|
@@ -3,16 +3,62 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Accessible navigation menu built on Radix UI NavigationMenu.
|
|
8
|
+
*
|
|
9
|
+
* Provides a horizontal navigation bar with dropdown content panels,
|
|
10
|
+
* suitable for site-wide navigation with rich sub-menus. Set `viewport={false}`
|
|
11
|
+
* to render content inline instead of in a shared viewport container.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <NavigationMenu>
|
|
16
|
+
* <NavigationMenuList>
|
|
17
|
+
* <NavigationMenuItem>
|
|
18
|
+
* <NavigationMenuTrigger>Getting Started</NavigationMenuTrigger>
|
|
19
|
+
* <NavigationMenuContent>
|
|
20
|
+
* <ul className="grid gap-3 p-4 w-[400px]">
|
|
21
|
+
* <li>
|
|
22
|
+
* <NavigationMenuLink href="/docs">
|
|
23
|
+
* <div className="font-medium">Introduction</div>
|
|
24
|
+
* <p className="text-muted-foreground">
|
|
25
|
+
* Learn the basics of the component library.
|
|
26
|
+
* </p>
|
|
27
|
+
* </NavigationMenuLink>
|
|
28
|
+
* </li>
|
|
29
|
+
* </ul>
|
|
30
|
+
* </NavigationMenuContent>
|
|
31
|
+
* </NavigationMenuItem>
|
|
32
|
+
* <NavigationMenuItem>
|
|
33
|
+
* <NavigationMenuLink
|
|
34
|
+
* className={navigationMenuTriggerStyle()}
|
|
35
|
+
* href="/docs"
|
|
36
|
+
* >
|
|
37
|
+
* Documentation
|
|
38
|
+
* </NavigationMenuLink>
|
|
39
|
+
* </NavigationMenuItem>
|
|
40
|
+
* </NavigationMenuList>
|
|
41
|
+
* </NavigationMenu>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
6
44
|
declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
7
45
|
viewport?: boolean;
|
|
8
46
|
}): react_jsx_runtime.JSX.Element;
|
|
47
|
+
/** Horizontal list container for navigation menu items. */
|
|
9
48
|
declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
49
|
+
/** Individual navigation menu item that can contain a trigger and content or a direct link. */
|
|
10
50
|
declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
51
|
+
/** Shared style variant for navigation menu trigger buttons and standalone links. Apply with `className={navigationMenuTriggerStyle()}`. */
|
|
11
52
|
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
53
|
+
/** Button that opens the associated NavigationMenuContent dropdown. Displays a chevron indicator. */
|
|
12
54
|
declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
55
|
+
/** Dropdown content panel revealed when a NavigationMenuTrigger is activated. */
|
|
13
56
|
declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
57
|
+
/** Shared viewport container that displays the active NavigationMenuContent with animated transitions. */
|
|
14
58
|
declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): react_jsx_runtime.JSX.Element;
|
|
59
|
+
/** Accessible link element within navigation menu content. Supports `data-[active=true]` styling. */
|
|
15
60
|
declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime.JSX.Element;
|
|
61
|
+
/** Animated arrow indicator that tracks the active menu trigger position. */
|
|
16
62
|
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime.JSX.Element;
|
|
17
63
|
|
|
18
64
|
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from '../chunk-
|
|
1
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from '../chunk-YBMEQZX7.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=navigation-menu.js.map
|
|
4
4
|
//# sourceMappingURL=navigation-menu.js.map
|