@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,50 @@ 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
|
+
* Slide-out panel component built on Radix UI Dialog.
|
|
7
|
+
*
|
|
8
|
+
* A sheet slides in from the edge of the screen, ideal for navigation,
|
|
9
|
+
* filters, or supplementary content. Supports `top`, `right`, `bottom`,
|
|
10
|
+
* and `left` sides via the `side` prop on `SheetContent`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Sheet open={open} onOpenChange={setOpen}>
|
|
15
|
+
* <SheetTrigger asChild>
|
|
16
|
+
* <Button variant="outline">Open Sheet</Button>
|
|
17
|
+
* </SheetTrigger>
|
|
18
|
+
* <SheetContent side="right">
|
|
19
|
+
* <SheetHeader>
|
|
20
|
+
* <SheetTitle>Settings</SheetTitle>
|
|
21
|
+
* <SheetDescription>
|
|
22
|
+
* Adjust your preferences below.
|
|
23
|
+
* </SheetDescription>
|
|
24
|
+
* </SheetHeader>
|
|
25
|
+
* <div className="p-4">Content here</div>
|
|
26
|
+
* <SheetFooter>
|
|
27
|
+
* <Button onClick={() => setOpen(false)}>Done</Button>
|
|
28
|
+
* </SheetFooter>
|
|
29
|
+
* </SheetContent>
|
|
30
|
+
* </Sheet>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
5
33
|
declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
/** Element that opens the sheet when clicked. Use `asChild` to merge into your own button. */
|
|
6
35
|
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
36
|
+
/** Button that closes the sheet. Use `asChild` to merge into your own button. */
|
|
7
37
|
declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
38
|
+
/** Sliding content panel. Set `side` to control which edge it slides from (default: `"right"`). */
|
|
8
39
|
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
40
|
side?: "top" | "right" | "bottom" | "left";
|
|
10
41
|
}): react_jsx_runtime.JSX.Element;
|
|
42
|
+
/** Container for SheetTitle and SheetDescription at the top of the sheet. */
|
|
11
43
|
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
44
|
+
/** Container for action buttons at the bottom of the sheet. Pushed to the bottom via `mt-auto`. */
|
|
12
45
|
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
46
|
+
/** Accessible title rendered inside SheetHeader. */
|
|
13
47
|
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Accessible description rendered inside SheetHeader below the title. */
|
|
14
49
|
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
15
50
|
|
|
16
51
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
package/dist/components/sheet.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from '../chunk-
|
|
1
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from '../chunk-JLTBUACL.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=sheet.js.map
|
|
4
4
|
//# sourceMappingURL=sheet.js.map
|
|
@@ -6,69 +6,163 @@ import { Button } from './button.js';
|
|
|
6
6
|
import { Input } from './input.js';
|
|
7
7
|
import { Separator } from './separator.js';
|
|
8
8
|
import { TooltipContent } from './tooltip.js';
|
|
9
|
+
import '../types-CBVkScfB.js';
|
|
9
10
|
import '@radix-ui/react-separator';
|
|
10
11
|
import '@radix-ui/react-tooltip';
|
|
11
12
|
|
|
12
13
|
type SidebarContextProps = {
|
|
14
|
+
/** Current sidebar state: "expanded" or "collapsed". */
|
|
13
15
|
state: "expanded" | "collapsed";
|
|
16
|
+
/** Whether the sidebar is open (desktop). */
|
|
14
17
|
open: boolean;
|
|
18
|
+
/** Set the sidebar open state (desktop). */
|
|
15
19
|
setOpen: (open: boolean) => void;
|
|
20
|
+
/** Whether the sidebar is open (mobile). */
|
|
16
21
|
openMobile: boolean;
|
|
22
|
+
/** Set the sidebar open state (mobile). */
|
|
17
23
|
setOpenMobile: (open: boolean) => void;
|
|
24
|
+
/** Whether the current viewport is mobile-sized. */
|
|
18
25
|
isMobile: boolean;
|
|
26
|
+
/** Toggle the sidebar open/closed. */
|
|
19
27
|
toggleSidebar: () => void;
|
|
20
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Hook to access sidebar state and controls.
|
|
31
|
+
* Must be used within a {@link SidebarProvider}.
|
|
32
|
+
*
|
|
33
|
+
* @returns The sidebar context value including `state`, `open`, `toggleSidebar`, etc.
|
|
34
|
+
* @throws If used outside of a SidebarProvider.
|
|
35
|
+
*/
|
|
21
36
|
declare function useSidebar(): SidebarContextProps;
|
|
37
|
+
/**
|
|
38
|
+
* Context provider that manages sidebar open/collapsed state, mobile detection,
|
|
39
|
+
* keyboard shortcut (Cmd/Ctrl+B), and cookie persistence.
|
|
40
|
+
* Wrap your layout with this provider before using any Sidebar components.
|
|
41
|
+
*
|
|
42
|
+
* @param defaultOpen - Initial open state for uncontrolled mode. Defaults to `true`.
|
|
43
|
+
* @param open - Controlled open state.
|
|
44
|
+
* @param onOpenChange - Callback when open state changes (controlled mode).
|
|
45
|
+
*/
|
|
22
46
|
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
|
|
47
|
+
/** Initial open state for uncontrolled usage. Defaults to `true`. */
|
|
23
48
|
defaultOpen?: boolean;
|
|
49
|
+
/** Controlled open state. */
|
|
24
50
|
open?: boolean;
|
|
51
|
+
/** Callback fired when the sidebar open state changes. */
|
|
25
52
|
onOpenChange?: (open: boolean) => void;
|
|
26
53
|
}): react_jsx_runtime.JSX.Element;
|
|
54
|
+
/**
|
|
55
|
+
* Application sidebar with collapsible groups, menus, and responsive behavior.
|
|
56
|
+
* Built on top of Sheet for mobile and native sidebar for desktop.
|
|
57
|
+
*
|
|
58
|
+
* @param side - Which side of the viewport the sidebar appears on. Defaults to `"left"`.
|
|
59
|
+
* @param variant - Visual variant: `"sidebar"` (default), `"floating"`, or `"inset"`.
|
|
60
|
+
* @param collapsible - Collapse behavior: `"offcanvas"` (default), `"icon"`, or `"none"`.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```tsx
|
|
64
|
+
* <SidebarProvider>
|
|
65
|
+
* <Sidebar>
|
|
66
|
+
* <SidebarHeader>Logo</SidebarHeader>
|
|
67
|
+
* <SidebarContent>
|
|
68
|
+
* <SidebarGroup>
|
|
69
|
+
* <SidebarGroupLabel>Menu</SidebarGroupLabel>
|
|
70
|
+
* <SidebarMenu>
|
|
71
|
+
* <SidebarMenuItem>
|
|
72
|
+
* <SidebarMenuButton>Dashboard</SidebarMenuButton>
|
|
73
|
+
* </SidebarMenuItem>
|
|
74
|
+
* </SidebarMenu>
|
|
75
|
+
* </SidebarGroup>
|
|
76
|
+
* </SidebarContent>
|
|
77
|
+
* <SidebarFooter>Footer</SidebarFooter>
|
|
78
|
+
* </Sidebar>
|
|
79
|
+
* </SidebarProvider>
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
27
82
|
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
83
|
+
/** Which side the sidebar appears on. Defaults to `"left"`. */
|
|
28
84
|
side?: "left" | "right";
|
|
85
|
+
/** Visual variant. Defaults to `"sidebar"`. */
|
|
29
86
|
variant?: "sidebar" | "floating" | "inset";
|
|
87
|
+
/** Collapse behavior. Defaults to `"offcanvas"`. */
|
|
30
88
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
31
89
|
}): react_jsx_runtime.JSX.Element;
|
|
90
|
+
/** Button that toggles the sidebar open/closed. Renders a `PanelLeftIcon` ghost button. */
|
|
32
91
|
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
92
|
+
/** Thin vertical rail on the sidebar edge that toggles the sidebar on click. */
|
|
33
93
|
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
|
|
94
|
+
/** Main content area that sits beside the sidebar. Use with `variant="inset"`. */
|
|
34
95
|
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
|
|
96
|
+
/** Search input styled for use inside the sidebar. */
|
|
35
97
|
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
98
|
+
/** Container for the top section of the sidebar (logo, org selector, etc.). */
|
|
36
99
|
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
100
|
+
/** Container for the bottom section of the sidebar (user menu, settings, etc.). */
|
|
37
101
|
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
102
|
+
/** Horizontal separator styled with sidebar border color. */
|
|
38
103
|
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
104
|
+
/** Scrollable content area between SidebarHeader and SidebarFooter. Houses SidebarGroup components. */
|
|
39
105
|
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
106
|
+
/** Logical grouping of sidebar items. Typically contains a SidebarGroupLabel and SidebarMenu. */
|
|
40
107
|
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
108
|
+
/** Small heading label for a SidebarGroup (e.g. "Navigation", "Projects"). */
|
|
41
109
|
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
42
110
|
asChild?: boolean;
|
|
43
111
|
}): react_jsx_runtime.JSX.Element;
|
|
112
|
+
/** Action button positioned at the top-right of a SidebarGroup (e.g. "Add" button). */
|
|
44
113
|
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
|
|
45
114
|
asChild?: boolean;
|
|
46
115
|
}): react_jsx_runtime.JSX.Element;
|
|
116
|
+
/** Wrapper for content inside a SidebarGroup, below the label. */
|
|
47
117
|
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
118
|
+
/** Unordered list container for SidebarMenuItem components. */
|
|
48
119
|
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
120
|
+
/** List item wrapper for a single sidebar menu entry. Contains a SidebarMenuButton. */
|
|
49
121
|
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
50
122
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
51
123
|
variant?: "default" | "outline" | null | undefined;
|
|
52
124
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
53
125
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
126
|
+
/**
|
|
127
|
+
* Clickable button inside a SidebarMenuItem. Supports size/variant variants,
|
|
128
|
+
* active state highlighting, and an optional tooltip shown when collapsed to icon mode.
|
|
129
|
+
*
|
|
130
|
+
* @param isActive - Whether this item is the current active route.
|
|
131
|
+
* @param tooltip - Tooltip text or TooltipContent props shown in collapsed icon mode.
|
|
132
|
+
* @param asChild - Merge props onto the child element instead of rendering a button.
|
|
133
|
+
*/
|
|
54
134
|
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
|
|
135
|
+
/** Render as child element via Radix Slot. */
|
|
55
136
|
asChild?: boolean;
|
|
137
|
+
/** Whether this menu item represents the active route. */
|
|
56
138
|
isActive?: boolean;
|
|
139
|
+
/** Tooltip shown when sidebar is collapsed to icon mode. */
|
|
57
140
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
58
141
|
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
142
|
+
/** Action button that appears to the right of a SidebarMenuButton (e.g. "more" or "delete"). */
|
|
59
143
|
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
|
|
60
144
|
asChild?: boolean;
|
|
145
|
+
/** When true, only shows on hover/focus of the parent menu item. */
|
|
61
146
|
showOnHover?: boolean;
|
|
62
147
|
}): react_jsx_runtime.JSX.Element;
|
|
148
|
+
/** Small count or status badge displayed to the right of a SidebarMenuButton. */
|
|
63
149
|
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
150
|
+
/** Loading skeleton placeholder for a sidebar menu item. */
|
|
64
151
|
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
|
|
152
|
+
/** Whether to show an icon skeleton alongside the text skeleton. */
|
|
65
153
|
showIcon?: boolean;
|
|
66
154
|
}): react_jsx_runtime.JSX.Element;
|
|
155
|
+
/** Nested sub-menu list with a left border, used for collapsible sub-navigation. */
|
|
67
156
|
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
157
|
+
/** List item wrapper for a single sub-menu entry inside SidebarMenuSub. */
|
|
68
158
|
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
159
|
+
/** Clickable link/button inside a SidebarMenuSubItem. Renders as an anchor by default. */
|
|
69
160
|
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
|
|
161
|
+
/** Render as child element via Radix Slot. */
|
|
70
162
|
asChild?: boolean;
|
|
163
|
+
/** Text size: `"sm"` (12px) or `"md"` (14px). Defaults to `"md"`. */
|
|
71
164
|
size?: "sm" | "md";
|
|
165
|
+
/** Whether this sub-menu item represents the active route. */
|
|
72
166
|
isActive?: boolean;
|
|
73
167
|
}): react_jsx_runtime.JSX.Element;
|
|
74
168
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from '../chunk-XUVLD65E.js';
|
|
2
|
+
import '../chunk-C5NZAOA7.js';
|
|
3
3
|
import '../chunk-WRCHR4AK.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JXGRW2MR.js';
|
|
5
5
|
import '../chunk-3VU56V66.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-JLTBUACL.js';
|
|
7
|
+
import '../chunk-PGWNOZDX.js';
|
|
8
|
+
import '../chunk-55E7D2HR.js';
|
|
9
9
|
import '../chunk-DGPY4WP3.js';
|
|
10
10
|
//# sourceMappingURL=sidebar.js.map
|
|
11
11
|
//# sourceMappingURL=sidebar.js.map
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type SkeletonProps = React.ComponentProps<"div">;
|
|
4
|
+
/**
|
|
5
|
+
* Placeholder loading indicator with a pulse animation, used to represent
|
|
6
|
+
* content that is being fetched or rendered.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* // Text placeholder
|
|
11
|
+
* <Skeleton className="h-4 w-48" />
|
|
12
|
+
*
|
|
13
|
+
* // Circular avatar placeholder
|
|
14
|
+
* <Skeleton className="size-10 rounded-full" />
|
|
15
|
+
*
|
|
16
|
+
* // Card skeleton
|
|
17
|
+
* <div className="space-y-2">
|
|
18
|
+
* <Skeleton className="h-4 w-full" />
|
|
19
|
+
* <Skeleton className="h-4 w-3/4" />
|
|
20
|
+
* </div>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare function Skeleton({ className, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
4
24
|
|
|
5
|
-
export { Skeleton };
|
|
25
|
+
export { Skeleton, type SkeletonProps };
|
|
@@ -2,6 +2,23 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type SliderProps = React.ComponentProps<typeof SliderPrimitive.Root>;
|
|
6
|
+
/**
|
|
7
|
+
* Draggable range input for selecting a numeric value or range within a given min/max.
|
|
8
|
+
* Supports single-thumb and multi-thumb modes, as well as vertical orientation.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // Single value
|
|
13
|
+
* <Slider defaultValue={[50]} max={100} step={1} />
|
|
14
|
+
*
|
|
15
|
+
* // Range (two thumbs)
|
|
16
|
+
* <Slider defaultValue={[25, 75]} max={100} step={5} />
|
|
17
|
+
*
|
|
18
|
+
* // Controlled
|
|
19
|
+
* <Slider value={[volume]} onValueChange={([v]) => setVolume(v)} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
6
23
|
|
|
7
|
-
export { Slider };
|
|
24
|
+
export { Slider, type SliderProps };
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
/** Customizable labels for the SlugInput component. */
|
|
3
4
|
interface SlugInputLabels {
|
|
5
|
+
/** Label text above the slug input field. */
|
|
4
6
|
slug: string;
|
|
7
|
+
/** Helper text below the slug input. */
|
|
5
8
|
autoGenerated: string;
|
|
9
|
+
/** Placeholder shown inside the slug input. */
|
|
6
10
|
placeholder: string;
|
|
7
11
|
}
|
|
8
12
|
interface SlugInputProps {
|
|
13
|
+
/** Source title string from which the slug is auto-generated. */
|
|
9
14
|
title: string;
|
|
15
|
+
/** Current slug value. */
|
|
10
16
|
slug: string;
|
|
17
|
+
/** Callback fired when the slug changes (auto-generated or manually edited). */
|
|
11
18
|
onSlugChange: (slug: string) => void;
|
|
19
|
+
/** Whether auto-generation from title is disabled and slug is manually editable only. */
|
|
12
20
|
disabled?: boolean;
|
|
21
|
+
/** Override default label strings for localization. */
|
|
13
22
|
labels?: Partial<SlugInputLabels>;
|
|
14
23
|
}
|
|
15
24
|
/**
|
|
@@ -17,6 +26,25 @@ interface SlugInputProps {
|
|
|
17
26
|
* Handles Vietnamese diacritics and other special characters.
|
|
18
27
|
*/
|
|
19
28
|
declare function generateSlug(text: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* URL slug input that auto-generates a slug from a title string.
|
|
31
|
+
* Handles Vietnamese diacritics and special characters via `generateSlug`.
|
|
32
|
+
* The slug updates automatically when the title changes (unless `disabled` is true).
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* const [title, setTitle] = useState("My Blog Post");
|
|
37
|
+
* const [slug, setSlug] = useState("");
|
|
38
|
+
*
|
|
39
|
+
* <Input value={title} onChange={(e) => setTitle(e.target.value)} />
|
|
40
|
+
* <SlugInput
|
|
41
|
+
* title={title}
|
|
42
|
+
* slug={slug}
|
|
43
|
+
* onSlugChange={setSlug}
|
|
44
|
+
* />
|
|
45
|
+
* // slug will auto-populate as "my-blog-post"
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
20
48
|
declare function SlugInput({ title, slug, onSlugChange, disabled, labels: labelOverrides, }: SlugInputProps): react_jsx_runtime.JSX.Element;
|
|
21
49
|
|
|
22
50
|
export { SlugInput, type SlugInputLabels, type SlugInputProps, generateSlug };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { SlugInput, generateSlug } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { SlugInput, generateSlug } from '../chunk-75WZR6HF.js';
|
|
2
|
+
import '../chunk-P3M5TZD2.js';
|
|
3
3
|
import '../chunk-3VU56V66.js';
|
|
4
4
|
import '../chunk-DGPY4WP3.js';
|
|
5
5
|
//# sourceMappingURL=slug-input.js.map
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ToasterProps } from 'sonner';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Toast notification container powered by the Sonner library.
|
|
6
|
+
* Renders toast messages at a configurable position on screen.
|
|
7
|
+
* Place this once at the root of your app, then use `toast()` to trigger notifications.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* // In your root layout:
|
|
12
|
+
* <Toaster />
|
|
13
|
+
*
|
|
14
|
+
* // Anywhere in your app:
|
|
15
|
+
* import { toast } from "sonner";
|
|
16
|
+
* toast.success("Changes saved");
|
|
17
|
+
* toast.error("Something went wrong");
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
4
20
|
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
5
21
|
|
|
6
22
|
export { Toaster };
|
|
@@ -18,6 +18,12 @@ interface StageTypeBadgeProps {
|
|
|
18
18
|
* - review: Eye (blue)
|
|
19
19
|
* - notification: Bell (amber)
|
|
20
20
|
* - conditional: GitBranch (purple)
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <StageTypeBadge type="approval" />
|
|
25
|
+
* <StageTypeBadge type="review" label="Peer Review" />
|
|
26
|
+
* ```
|
|
21
27
|
*/
|
|
22
28
|
declare function StageTypeBadge({ type, label, className }: StageTypeBadgeProps): react_jsx_runtime.JSX.Element;
|
|
23
29
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { StageTypeBadge } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { StageTypeBadge } from '../chunk-ZHEKDP5X.js';
|
|
2
|
+
import '../chunk-A3BB5ZOC.js';
|
|
3
3
|
import '../chunk-DGPY4WP3.js';
|
|
4
4
|
//# sourceMappingURL=stage-type-badge.js.map
|
|
5
5
|
//# sourceMappingURL=stage-type-badge.js.map
|
|
@@ -2,6 +2,25 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type SwitchProps = React.ComponentProps<typeof SwitchPrimitives.Root>;
|
|
6
|
+
/**
|
|
7
|
+
* Toggle switch for boolean on/off states, styled as a sliding pill.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* // Uncontrolled
|
|
12
|
+
* <Switch defaultChecked />
|
|
13
|
+
*
|
|
14
|
+
* // Controlled
|
|
15
|
+
* <Switch checked={enabled} onCheckedChange={setEnabled} />
|
|
16
|
+
*
|
|
17
|
+
* // With label
|
|
18
|
+
* <div className="flex items-center gap-2">
|
|
19
|
+
* <Switch id="notifications" />
|
|
20
|
+
* <Label htmlFor="notifications">Enable notifications</Label>
|
|
21
|
+
* </div>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare function Switch({ className, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
6
25
|
|
|
7
|
-
export { Switch };
|
|
26
|
+
export { Switch, type SwitchProps };
|
|
@@ -1,13 +1,57 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Data table component with header, body, footer, row, head, cell, and caption sub-components.
|
|
6
|
+
*
|
|
7
|
+
* Renders inside a horizontally scrollable container. Uses density tokens for
|
|
8
|
+
* consistent header height (`h-table-head`) and cell padding.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Table>
|
|
13
|
+
* <TableHeader>
|
|
14
|
+
* <TableRow>
|
|
15
|
+
* <TableHead>Name</TableHead>
|
|
16
|
+
* <TableHead>Email</TableHead>
|
|
17
|
+
* <TableHead>Role</TableHead>
|
|
18
|
+
* </TableRow>
|
|
19
|
+
* </TableHeader>
|
|
20
|
+
* <TableBody>
|
|
21
|
+
* <TableRow>
|
|
22
|
+
* <TableCell>Alice</TableCell>
|
|
23
|
+
* <TableCell>alice@example.com</TableCell>
|
|
24
|
+
* <TableCell>Admin</TableCell>
|
|
25
|
+
* </TableRow>
|
|
26
|
+
* <TableRow>
|
|
27
|
+
* <TableCell>Bob</TableCell>
|
|
28
|
+
* <TableCell>bob@example.com</TableCell>
|
|
29
|
+
* <TableCell>Member</TableCell>
|
|
30
|
+
* </TableRow>
|
|
31
|
+
* </TableBody>
|
|
32
|
+
* <TableFooter>
|
|
33
|
+
* <TableRow>
|
|
34
|
+
* <TableCell colSpan={3}>2 users total</TableCell>
|
|
35
|
+
* </TableRow>
|
|
36
|
+
* </TableFooter>
|
|
37
|
+
* <TableCaption>A list of team members.</TableCaption>
|
|
38
|
+
* </Table>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
4
41
|
declare function Table({ className, ...props }: React.ComponentProps<"table">): react_jsx_runtime.JSX.Element;
|
|
42
|
+
/** Table header container. Groups `TableRow` elements for column headings. */
|
|
5
43
|
declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
|
|
44
|
+
/** Table body container. Groups `TableRow` elements for data rows. */
|
|
6
45
|
declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
|
|
46
|
+
/** Table footer container. Renders with a muted background and top border. */
|
|
7
47
|
declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
|
|
48
|
+
/** Table row with hover highlight and selected state support via `data-state="selected"`. */
|
|
8
49
|
declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): react_jsx_runtime.JSX.Element;
|
|
50
|
+
/** Table head cell. Renders as a `<th>` with density-based height (`h-table-head`). */
|
|
9
51
|
declare function TableHead({ className, ...props }: React.ComponentProps<"th">): react_jsx_runtime.JSX.Element;
|
|
52
|
+
/** Table data cell. Renders as a `<td>` with consistent padding and alignment. */
|
|
10
53
|
declare function TableCell({ className, ...props }: React.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
|
|
54
|
+
/** Table caption displayed below the table in muted text. */
|
|
11
55
|
declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
|
|
12
56
|
|
|
13
57
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
package/dist/components/table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from '../chunk-
|
|
1
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from '../chunk-S6PDRGR5.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=table.js.map
|
|
4
4
|
//# sourceMappingURL=table.js.map
|
|
@@ -2,9 +2,38 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Tabbed interface component with list, trigger, and content sub-components.
|
|
7
|
+
*
|
|
8
|
+
* Built on Radix Tabs with density-aware sizing (`h-element` for the tab list).
|
|
9
|
+
* Supports keyboard navigation and focus management out of the box.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Tabs defaultValue="overview">
|
|
14
|
+
* <TabsList>
|
|
15
|
+
* <TabsTrigger value="overview">Overview</TabsTrigger>
|
|
16
|
+
* <TabsTrigger value="analytics">Analytics</TabsTrigger>
|
|
17
|
+
* <TabsTrigger value="settings">Settings</TabsTrigger>
|
|
18
|
+
* </TabsList>
|
|
19
|
+
* <TabsContent value="overview">
|
|
20
|
+
* <p>Overview content here.</p>
|
|
21
|
+
* </TabsContent>
|
|
22
|
+
* <TabsContent value="analytics">
|
|
23
|
+
* <p>Analytics content here.</p>
|
|
24
|
+
* </TabsContent>
|
|
25
|
+
* <TabsContent value="settings">
|
|
26
|
+
* <p>Settings content here.</p>
|
|
27
|
+
* </TabsContent>
|
|
28
|
+
* </Tabs>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
5
31
|
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
32
|
+
/** Container for `TabsTrigger` elements. Renders as a rounded pill with muted background. */
|
|
6
33
|
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
/** Individual tab button. Highlights with a card background when active. Requires a `value` prop matching a `TabsContent`. */
|
|
7
35
|
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
36
|
+
/** Content panel shown when its `value` matches the active tab. */
|
|
8
37
|
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
9
38
|
|
|
10
39
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
package/dist/components/tabs.js
CHANGED
|
@@ -1,15 +1,40 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
interface TagInputProps {
|
|
4
|
+
/** Array of current tag strings. */
|
|
4
5
|
value?: string[];
|
|
6
|
+
/** Callback fired when the tags array changes. */
|
|
5
7
|
onChange?: (tags: string[]) => void;
|
|
8
|
+
/** Placeholder text shown when there are no tags. */
|
|
6
9
|
placeholder?: string;
|
|
10
|
+
/** Additional CSS class for the outer container. */
|
|
7
11
|
className?: string;
|
|
12
|
+
/** Whether the tag input is disabled. */
|
|
8
13
|
disabled?: boolean;
|
|
14
|
+
/** Maximum number of tags allowed. */
|
|
9
15
|
maxTags?: number;
|
|
16
|
+
/** Whether duplicate tag values are allowed. Defaults to `false`. */
|
|
10
17
|
allowDuplicates?: boolean;
|
|
18
|
+
/** Character or pattern used to split pasted text into tags. Defaults to `","`. */
|
|
11
19
|
delimiter?: string | RegExp;
|
|
12
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Tag input that lets users add and remove string tags.
|
|
23
|
+
* Tags are added by pressing Enter or the delimiter key, and by pasting comma-separated text.
|
|
24
|
+
* Backspace removes the last tag when the input is empty.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* const [tags, setTags] = useState<string[]>(["react", "typescript"]);
|
|
29
|
+
*
|
|
30
|
+
* <TagInput
|
|
31
|
+
* value={tags}
|
|
32
|
+
* onChange={setTags}
|
|
33
|
+
* placeholder="Add a tag..."
|
|
34
|
+
* maxTags={10}
|
|
35
|
+
* />
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
13
38
|
declare function TagInput({ value, onChange, placeholder, className, disabled, maxTags, allowDuplicates, delimiter, }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
14
39
|
|
|
15
40
|
export { TagInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { TagInput } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { TagInput } from '../chunk-VVYSAGB3.js';
|
|
2
|
+
import '../chunk-A3BB5ZOC.js';
|
|
3
3
|
import '../chunk-DGPY4WP3.js';
|
|
4
4
|
//# sourceMappingURL=tag-input.js.map
|
|
5
5
|
//# sourceMappingURL=tag-input.js.map
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
+
type TextareaProps = React.ComponentProps<"textarea">;
|
|
4
|
+
/**
|
|
5
|
+
* Multi-line text input with auto-sizing via `field-sizing-content`.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* // Basic usage
|
|
10
|
+
* <Textarea placeholder="Enter a description..." />
|
|
11
|
+
*
|
|
12
|
+
* // Controlled
|
|
13
|
+
* <Textarea value={content} onChange={(e) => setContent(e.target.value)} />
|
|
14
|
+
*
|
|
15
|
+
* // With rows constraint
|
|
16
|
+
* <Textarea rows={5} placeholder="Feedback" />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
3
19
|
declare const Textarea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
4
20
|
|
|
5
|
-
export { Textarea };
|
|
21
|
+
export { Textarea, type TextareaProps };
|