@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,12 +2,51 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { U as UIColor } from '../types-CBVkScfB.js';
|
|
5
6
|
|
|
6
7
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "
|
|
8
|
+
variant?: "destructive" | "default" | "secondary" | "outline" | "soft" | null | undefined;
|
|
9
|
+
color?: "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
8
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
|
|
11
|
+
interface BadgeProps extends React.ComponentProps<"span">, Omit<VariantProps<typeof badgeVariants>, "color"> {
|
|
12
|
+
/**
|
|
13
|
+
* Semantic color intent.
|
|
14
|
+
*
|
|
15
|
+
* @default "primary"
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <Badge color="success">Done</Badge>
|
|
19
|
+
* <Badge color="warning">Pending</Badge>
|
|
20
|
+
* <Badge variant="soft" color="destructive">Failed</Badge>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
color?: UIColor;
|
|
24
|
+
/** Render as a child component using Radix Slot. @default false */
|
|
10
25
|
asChild?: boolean;
|
|
11
|
-
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Inline status descriptor with semantic colors and visual variants.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* // Solid (default)
|
|
33
|
+
* <Badge>New</Badge>
|
|
34
|
+
* <Badge color="success">Done</Badge>
|
|
35
|
+
* <Badge color="warning">Pending</Badge>
|
|
36
|
+
*
|
|
37
|
+
* // Soft (light tinted background)
|
|
38
|
+
* <Badge variant="soft" color="success">Approved</Badge>
|
|
39
|
+
* <Badge variant="soft" color="destructive">Rejected</Badge>
|
|
40
|
+
*
|
|
41
|
+
* // Outline
|
|
42
|
+
* <Badge variant="outline">v1.0.0</Badge>
|
|
43
|
+
* <Badge variant="outline" color="info">Beta</Badge>
|
|
44
|
+
*
|
|
45
|
+
* // Legacy (still works)
|
|
46
|
+
* <Badge variant="destructive">Error</Badge>
|
|
47
|
+
* <Badge variant="secondary">Draft</Badge>
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare function Badge({ className, variant, color, asChild, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
12
51
|
|
|
13
|
-
export { Badge, badgeVariants };
|
|
52
|
+
export { Badge, type BadgeProps, badgeVariants };
|
package/dist/components/badge.js
CHANGED
|
@@ -1,14 +1,50 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Navigation breadcrumb trail showing the current page hierarchy.
|
|
6
|
+
*
|
|
7
|
+
* Renders as a `<nav>` with `aria-label="breadcrumb"` for accessibility.
|
|
8
|
+
* Use `BreadcrumbSeparator` between items (defaults to a chevron icon)
|
|
9
|
+
* and `BreadcrumbEllipsis` for collapsed intermediate items.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Breadcrumb>
|
|
14
|
+
* <BreadcrumbList>
|
|
15
|
+
* <BreadcrumbItem>
|
|
16
|
+
* <BreadcrumbLink href="/">Home</BreadcrumbLink>
|
|
17
|
+
* </BreadcrumbItem>
|
|
18
|
+
* <BreadcrumbSeparator />
|
|
19
|
+
* <BreadcrumbItem>
|
|
20
|
+
* <BreadcrumbLink href="/projects">Projects</BreadcrumbLink>
|
|
21
|
+
* </BreadcrumbItem>
|
|
22
|
+
* <BreadcrumbSeparator />
|
|
23
|
+
* <BreadcrumbItem>
|
|
24
|
+
* <BreadcrumbPage>Current Project</BreadcrumbPage>
|
|
25
|
+
* </BreadcrumbItem>
|
|
26
|
+
* </BreadcrumbList>
|
|
27
|
+
* </Breadcrumb>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
4
30
|
declare function Breadcrumb({ ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
31
|
+
/** Ordered list container for breadcrumb items. Handles wrapping and spacing. */
|
|
5
32
|
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): react_jsx_runtime.JSX.Element;
|
|
33
|
+
/** Individual breadcrumb list item wrapping a link or page indicator. */
|
|
6
34
|
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* Clickable breadcrumb link. Set `asChild` to render a custom element (e.g., React Router `Link`).
|
|
37
|
+
*
|
|
38
|
+
* @param asChild - When true, renders the child element instead of an `<a>` tag.
|
|
39
|
+
*/
|
|
7
40
|
declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & {
|
|
8
41
|
asChild?: boolean;
|
|
9
42
|
}): react_jsx_runtime.JSX.Element;
|
|
43
|
+
/** Non-interactive breadcrumb label for the current page. Rendered with `aria-current="page"`. */
|
|
10
44
|
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
45
|
+
/** Visual separator between breadcrumb items. Defaults to a `ChevronRight` icon; pass custom children to override. */
|
|
11
46
|
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
47
|
+
/** Ellipsis indicator for collapsed breadcrumb items. Renders a `MoreHorizontal` icon with screen-reader text. */
|
|
12
48
|
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
13
49
|
|
|
14
50
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from '../chunk-
|
|
1
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from '../chunk-7RMTPT6O.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=breadcrumb.js.map
|
|
4
4
|
//# sourceMappingURL=breadcrumb.js.map
|
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { U as UIColor } from '../types-CBVkScfB.js';
|
|
4
5
|
|
|
5
6
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "link" | "default" | "
|
|
7
|
+
variant?: "link" | "destructive" | "default" | "secondary" | "outline" | "soft" | "ghost" | null | undefined;
|
|
8
|
+
color?: "primary" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
7
9
|
size?: "default" | "xs" | "sm" | "lg" | "xl" | "icon" | null | undefined;
|
|
8
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
11
|
+
interface ButtonProps extends React.ComponentProps<"button">, Omit<VariantProps<typeof buttonVariants>, "color"> {
|
|
12
|
+
/**
|
|
13
|
+
* Semantic color intent. Works with `variant` to produce the final appearance.
|
|
14
|
+
*
|
|
15
|
+
* | Color | Use for |
|
|
16
|
+
* |-------|---------|
|
|
17
|
+
* | `primary` | Main actions (default) |
|
|
18
|
+
* | `destructive` | Delete, errors |
|
|
19
|
+
* | `success` | Approve, confirm |
|
|
20
|
+
* | `warning` | Caution, attention |
|
|
21
|
+
* | `info` | Informational |
|
|
22
|
+
*
|
|
23
|
+
* @default "primary"
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Button color="success">Approve</Button>
|
|
27
|
+
* <Button variant="outline" color="destructive">Reject</Button>
|
|
28
|
+
* <Button variant="soft" color="warning">Review</Button>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
color?: UIColor;
|
|
10
32
|
/**
|
|
11
33
|
* Render as a child component using Radix Slot.
|
|
12
34
|
* When `true`, the button merges its props onto its single child element.
|
|
@@ -15,41 +37,43 @@ interface ButtonProps extends React.ComponentProps<"button">, VariantProps<typeo
|
|
|
15
37
|
asChild?: boolean;
|
|
16
38
|
/**
|
|
17
39
|
* Make the button take the full width of its container.
|
|
18
|
-
* Equivalent to Ant Design's `block` prop.
|
|
19
40
|
* @default false
|
|
20
41
|
* @example
|
|
21
42
|
* ```tsx
|
|
22
43
|
* <Button block>Full Width</Button>
|
|
23
|
-
* <Button size="xl" block>
|
|
44
|
+
* <Button size="xl" block>Sign In</Button>
|
|
24
45
|
* ```
|
|
25
46
|
*/
|
|
26
47
|
block?: boolean;
|
|
27
48
|
}
|
|
28
49
|
/**
|
|
29
|
-
* Button component with
|
|
50
|
+
* Button component with semantic colors, visual variants, and standard sizes.
|
|
51
|
+
*
|
|
52
|
+
* Combines `variant` (how it looks) with `color` (what it means) for full flexibility.
|
|
53
|
+
* All existing `variant="destructive"` usage continues to work unchanged.
|
|
30
54
|
*
|
|
31
55
|
* @example
|
|
32
56
|
* ```tsx
|
|
33
|
-
* // Default
|
|
34
|
-
* <Button>
|
|
57
|
+
* // Default (solid primary)
|
|
58
|
+
* <Button>Save</Button>
|
|
59
|
+
*
|
|
60
|
+
* // Semantic colors
|
|
61
|
+
* <Button color="success">Approve</Button>
|
|
62
|
+
* <Button color="destructive">Delete</Button>
|
|
63
|
+
* <Button color="warning">Proceed with caution</Button>
|
|
64
|
+
*
|
|
65
|
+
* // Variant × Color combinations
|
|
66
|
+
* <Button variant="outline" color="destructive">Reject</Button>
|
|
67
|
+
* <Button variant="soft" color="success">Approved</Button>
|
|
68
|
+
* <Button variant="ghost" color="info">Learn more</Button>
|
|
35
69
|
*
|
|
36
|
-
* //
|
|
70
|
+
* // Legacy (still works)
|
|
37
71
|
* <Button variant="destructive">Delete</Button>
|
|
38
|
-
* <Button variant="outline">Cancel</Button>
|
|
39
|
-
* <Button variant="secondary">Secondary</Button>
|
|
40
|
-
* <Button variant="ghost">Ghost</Button>
|
|
41
|
-
* <Button variant="link">Link</Button>
|
|
42
72
|
*
|
|
43
73
|
* // Sizes: xs (24px) | sm (28px) | default (32px) | lg (36px) | xl (44px) | icon (32x32)
|
|
44
74
|
* <Button size="xs">Tiny</Button>
|
|
45
|
-
* <Button size="xl">
|
|
75
|
+
* <Button size="xl" block>Sign In</Button>
|
|
46
76
|
* <Button size="icon"><PlusIcon /></Button>
|
|
47
|
-
*
|
|
48
|
-
* // Full width (block)
|
|
49
|
-
* <Button block>Full Width</Button>
|
|
50
|
-
*
|
|
51
|
-
* // As child (slot)
|
|
52
|
-
* <Button asChild><a href="/home">Home</a></Button>
|
|
53
77
|
* ```
|
|
54
78
|
*/
|
|
55
79
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
interface CalendarCategoryBadgeProps {
|
|
4
|
+
/** The category key (e.g. "meeting", "deadline"). Determines the badge color from built-in or custom styles. */
|
|
4
5
|
category: string;
|
|
6
|
+
/** Override display label. Defaults to the raw category key. */
|
|
5
7
|
label?: string;
|
|
8
|
+
/** Custom className styles per category key, merged with built-in defaults. */
|
|
6
9
|
styles?: Record<string, string>;
|
|
7
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Color-coded badge for calendar event categories. Ships with built-in styles
|
|
13
|
+
* for meeting (blue), deadline (red), reminder (amber), personal (purple), and
|
|
14
|
+
* holiday (green). Custom categories can be styled via the `styles` prop.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <CalendarCategoryBadge category="meeting" label="Meeting" />
|
|
19
|
+
* <CalendarCategoryBadge category="custom" label="Custom" styles={{ custom: "bg-pink-50 text-pink-600" }} />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
8
22
|
declare function CalendarCategoryBadge({ category, label, styles }: CalendarCategoryBadgeProps): react_jsx_runtime.JSX.Element;
|
|
9
23
|
|
|
10
24
|
export { CalendarCategoryBadge, type CalendarCategoryBadgeProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CalendarCategoryBadge } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CalendarCategoryBadge } from '../chunk-JAJMM32I.js';
|
|
2
|
+
import '../chunk-A3BB5ZOC.js';
|
|
3
3
|
import '../chunk-DGPY4WP3.js';
|
|
4
4
|
//# sourceMappingURL=calendar-category-badge.js.map
|
|
5
5
|
//# sourceMappingURL=calendar-category-badge.js.map
|
|
@@ -1,18 +1,41 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
/** Event data shape required by CalendarEventChip. */
|
|
3
4
|
interface CalendarEventChipEvent {
|
|
5
|
+
/** Unique event identifier. */
|
|
4
6
|
id: string;
|
|
7
|
+
/** Display title of the event. */
|
|
5
8
|
title: string;
|
|
9
|
+
/** Event start date/time. */
|
|
6
10
|
start: Date;
|
|
11
|
+
/** Event end date/time. */
|
|
7
12
|
end: Date;
|
|
13
|
+
/** Whether this is an all-day event. When true, time is not displayed. */
|
|
8
14
|
allDay?: boolean;
|
|
15
|
+
/** CSS color string used for the chip background, text, and left border. */
|
|
9
16
|
color: string;
|
|
10
17
|
}
|
|
11
18
|
interface CalendarEventChipProps {
|
|
19
|
+
/** The event to display. */
|
|
12
20
|
event: CalendarEventChipEvent;
|
|
21
|
+
/** Use compact layout with tighter line-height. Defaults to `false`. */
|
|
13
22
|
compact?: boolean;
|
|
23
|
+
/** Callback when the chip is clicked. */
|
|
14
24
|
onClick?: (event: CalendarEventChipEvent) => void;
|
|
15
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Small colored chip representing a calendar event. Shows the event title
|
|
28
|
+
* with a colored left border and tinted background. Optionally displays
|
|
29
|
+
* the start time for non-all-day events.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <CalendarEventChip
|
|
34
|
+
* event={{ id: "1", title: "Standup", start: new Date(), end: new Date(), color: "#3b82f6" }}
|
|
35
|
+
* onClick={(e) => openDetail(e.id)}
|
|
36
|
+
* />
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
16
39
|
declare function CalendarEventChip({ event, compact, onClick }: CalendarEventChipProps): react_jsx_runtime.JSX.Element;
|
|
17
40
|
|
|
18
41
|
export { CalendarEventChip, type CalendarEventChipEvent, type CalendarEventChipProps };
|
|
@@ -1,31 +1,68 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
/** Extended event data shape for the detail sheet, including description, location, and attendees. */
|
|
3
4
|
interface CalendarEventSheetEvent {
|
|
5
|
+
/** Unique event identifier. */
|
|
4
6
|
id: string;
|
|
7
|
+
/** Display title of the event. */
|
|
5
8
|
title: string;
|
|
9
|
+
/** Optional long description or notes for the event. */
|
|
6
10
|
description?: string;
|
|
11
|
+
/** Event start date/time. */
|
|
7
12
|
start: Date;
|
|
13
|
+
/** Event end date/time. */
|
|
8
14
|
end: Date;
|
|
15
|
+
/** Whether this is an all-day event. */
|
|
9
16
|
allDay?: boolean;
|
|
17
|
+
/** CSS color string for the event. */
|
|
10
18
|
color: string;
|
|
19
|
+
/** Category key (e.g. "meeting", "deadline") used by CalendarCategoryBadge. */
|
|
11
20
|
category: string;
|
|
21
|
+
/** Optional location string. */
|
|
12
22
|
location?: string;
|
|
23
|
+
/** Optional list of attendee email addresses. */
|
|
13
24
|
attendees?: string[];
|
|
14
25
|
}
|
|
26
|
+
/** Localizable labels for the event detail sheet. All have English defaults. */
|
|
15
27
|
interface CalendarEventSheetLabels {
|
|
28
|
+
/** Text displayed for all-day events instead of a time range. */
|
|
16
29
|
allDay?: string;
|
|
30
|
+
/** Heading text for the attendees section. */
|
|
17
31
|
attendees?: string;
|
|
32
|
+
/** Label for the delete button. */
|
|
18
33
|
delete?: string;
|
|
19
34
|
}
|
|
20
35
|
interface CalendarEventSheetProps {
|
|
36
|
+
/** The event to display, or `null` to render nothing. */
|
|
21
37
|
event: CalendarEventSheetEvent | null;
|
|
38
|
+
/** Whether the sheet is open. */
|
|
22
39
|
open: boolean;
|
|
40
|
+
/** Callback to toggle the sheet open state. */
|
|
23
41
|
onOpenChange: (open: boolean) => void;
|
|
42
|
+
/** Optional callback when the delete button is clicked. Receives the event id. */
|
|
24
43
|
onDelete?: (id: string) => void;
|
|
44
|
+
/** Override display label for the category badge. */
|
|
25
45
|
categoryLabel?: string;
|
|
46
|
+
/** Custom className styles per category key for the CalendarCategoryBadge. */
|
|
26
47
|
categoryStyles?: Record<string, string>;
|
|
48
|
+
/** Localizable UI labels with English defaults. */
|
|
27
49
|
labels?: CalendarEventSheetLabels;
|
|
28
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Side sheet that displays full event details including title, category badge,
|
|
53
|
+
* description, date/time, location, attendees, and a delete action.
|
|
54
|
+
* Built on top of the Sheet component.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```tsx
|
|
58
|
+
* <CalendarEventSheet
|
|
59
|
+
* event={selectedEvent}
|
|
60
|
+
* open={sheetOpen}
|
|
61
|
+
* onOpenChange={setSheetOpen}
|
|
62
|
+
* onDelete={(id) => removeEvent(id)}
|
|
63
|
+
* />
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
29
66
|
declare function CalendarEventSheet({ event, open, onOpenChange, onDelete, categoryLabel, categoryStyles, labels: labelsProp, }: CalendarEventSheetProps): react_jsx_runtime.JSX.Element | null;
|
|
30
67
|
|
|
31
68
|
export { CalendarEventSheet, type CalendarEventSheetEvent, type CalendarEventSheetLabels, type CalendarEventSheetProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { CalendarEventSheet } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
export { CalendarEventSheet } from '../chunk-THQUH6WX.js';
|
|
2
|
+
import '../chunk-JLTBUACL.js';
|
|
3
|
+
import '../chunk-JAJMM32I.js';
|
|
4
|
+
import '../chunk-PGWNOZDX.js';
|
|
5
|
+
import '../chunk-55E7D2HR.js';
|
|
6
|
+
import '../chunk-A3BB5ZOC.js';
|
|
7
7
|
import '../chunk-DGPY4WP3.js';
|
|
8
8
|
//# sourceMappingURL=calendar-event-sheet.js.map
|
|
9
9
|
//# sourceMappingURL=calendar-event-sheet.js.map
|
|
@@ -1,29 +1,65 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
/** A category that can be toggled on/off in the mini calendar's filter section. */
|
|
3
4
|
interface CalendarCategory {
|
|
5
|
+
/** Unique key for this category. */
|
|
4
6
|
key: string;
|
|
7
|
+
/** CSS color string used for the category dot. */
|
|
5
8
|
color: string;
|
|
9
|
+
/** Display label for the category. */
|
|
6
10
|
label: string;
|
|
7
11
|
}
|
|
12
|
+
/** Localizable labels for the mini calendar. All have English defaults. */
|
|
8
13
|
interface CalendarMiniLabels {
|
|
14
|
+
/** Label for Sunday column header. */
|
|
9
15
|
sun?: string;
|
|
16
|
+
/** Label for Monday column header. */
|
|
10
17
|
mon?: string;
|
|
18
|
+
/** Label for Tuesday column header. */
|
|
11
19
|
tue?: string;
|
|
20
|
+
/** Label for Wednesday column header. */
|
|
12
21
|
wed?: string;
|
|
22
|
+
/** Label for Thursday column header. */
|
|
13
23
|
thu?: string;
|
|
24
|
+
/** Label for Friday column header. */
|
|
14
25
|
fri?: string;
|
|
26
|
+
/** Label for Saturday column header. */
|
|
15
27
|
sat?: string;
|
|
28
|
+
/** Heading text for the categories filter section. */
|
|
16
29
|
categories?: string;
|
|
17
30
|
}
|
|
18
31
|
interface CalendarMiniProps {
|
|
32
|
+
/** The month to display (any date within the target month). */
|
|
19
33
|
currentDate: Date;
|
|
34
|
+
/** The currently selected date, highlighted with primary color. */
|
|
20
35
|
selectedDate: Date;
|
|
36
|
+
/** Callback when a day cell is clicked. */
|
|
21
37
|
onSelectDate: (date: Date) => void;
|
|
38
|
+
/** Optional list of event categories for the filter section. */
|
|
22
39
|
categories?: CalendarCategory[];
|
|
40
|
+
/** Keys of currently enabled categories. */
|
|
23
41
|
enabledCategories?: string[];
|
|
42
|
+
/** Callback when a category checkbox is toggled. */
|
|
24
43
|
onToggleCategory?: (key: string) => void;
|
|
44
|
+
/** Localizable UI labels with English defaults. */
|
|
25
45
|
labels?: CalendarMiniLabels;
|
|
26
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Compact month calendar with optional category filters. Designed for sidebar
|
|
49
|
+
* placement in calendar views. Locale-agnostic via the `labels` prop.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```tsx
|
|
53
|
+
* <CalendarMini
|
|
54
|
+
* currentDate={new Date()}
|
|
55
|
+
* selectedDate={selectedDate}
|
|
56
|
+
* onSelectDate={setSelectedDate}
|
|
57
|
+
* categories={[{ key: "meeting", color: "#3b82f6", label: "Meeting" }]}
|
|
58
|
+
* enabledCategories={["meeting"]}
|
|
59
|
+
* onToggleCategory={(key) => toggle(key)}
|
|
60
|
+
* />
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
27
63
|
declare function CalendarMini({ currentDate, selectedDate, onSelectDate, categories, enabledCategories, onToggleCategory, labels: labelsProp, }: CalendarMiniProps): react_jsx_runtime.JSX.Element;
|
|
28
64
|
|
|
29
65
|
export { type CalendarCategory, CalendarMini, type CalendarMiniLabels, type CalendarMiniProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CalendarMini } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { CalendarMini } from '../chunk-KTBOZ4NE.js';
|
|
2
|
+
import '../chunk-WL4ZO2H3.js';
|
|
3
|
+
import '../chunk-PGWNOZDX.js';
|
|
4
4
|
import '../chunk-DGPY4WP3.js';
|
|
5
5
|
//# sourceMappingURL=calendar-mini.js.map
|
|
6
6
|
//# sourceMappingURL=calendar-mini.js.map
|
|
@@ -1,25 +1,58 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
/** Supported calendar view modes. */
|
|
3
4
|
type CalendarView = 'month' | 'week' | 'day';
|
|
5
|
+
/** Localizable labels for the calendar toolbar. All have English defaults. */
|
|
4
6
|
interface CalendarToolbarLabels {
|
|
7
|
+
/** Label for the "Today" button. */
|
|
5
8
|
today?: string;
|
|
9
|
+
/** Label for the "Month" view toggle. */
|
|
6
10
|
month?: string;
|
|
11
|
+
/** Label for the "Week" view toggle. */
|
|
7
12
|
week?: string;
|
|
13
|
+
/** Label for the "Day" view toggle. */
|
|
8
14
|
day?: string;
|
|
15
|
+
/** Label for the "Create Event" button. */
|
|
9
16
|
createEvent?: string;
|
|
10
17
|
}
|
|
11
18
|
interface CalendarToolbarProps {
|
|
19
|
+
/** The date currently being viewed. Used for the title display. */
|
|
12
20
|
currentDate: Date;
|
|
21
|
+
/** The active calendar view mode. */
|
|
13
22
|
view: CalendarView;
|
|
23
|
+
/** Callback when the user switches between month/week/day views. */
|
|
14
24
|
onViewChange: (view: CalendarView) => void;
|
|
25
|
+
/** Navigate to the previous period. */
|
|
15
26
|
onPrev: () => void;
|
|
27
|
+
/** Navigate to the next period. */
|
|
16
28
|
onNext: () => void;
|
|
29
|
+
/** Navigate to today. */
|
|
17
30
|
onToday: () => void;
|
|
31
|
+
/** Optional callback for the "Create Event" button. Button is hidden when omitted. */
|
|
18
32
|
onCreateEvent?: () => void;
|
|
33
|
+
/** Localizable UI labels with English defaults. */
|
|
19
34
|
labels?: CalendarToolbarLabels;
|
|
20
|
-
/** date-fns format string for the title */
|
|
35
|
+
/** date-fns format string for the title. Defaults to `"MMMM yyyy"` or `"EEEE, MMMM d, yyyy"` for day view. */
|
|
21
36
|
titleFormat?: string;
|
|
22
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Toolbar for calendar views with navigation controls (prev/next/today),
|
|
40
|
+
* view mode toggle (month/week/day), and an optional "Create Event" button.
|
|
41
|
+
* Locale-agnostic via the `labels` prop.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <CalendarToolbar
|
|
46
|
+
* currentDate={currentDate}
|
|
47
|
+
* view="month"
|
|
48
|
+
* onViewChange={setView}
|
|
49
|
+
* onPrev={handlePrev}
|
|
50
|
+
* onNext={handleNext}
|
|
51
|
+
* onToday={handleToday}
|
|
52
|
+
* onCreateEvent={() => setDialogOpen(true)}
|
|
53
|
+
* />
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
23
56
|
declare function CalendarToolbar({ currentDate, view, onViewChange, onPrev, onNext, onToday, onCreateEvent, labels: labelsProp, titleFormat: titleFormatProp, }: CalendarToolbarProps): react_jsx_runtime.JSX.Element;
|
|
24
57
|
|
|
25
58
|
export { CalendarToolbar, type CalendarToolbarLabels, type CalendarToolbarProps, type CalendarView };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CalendarToolbar } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { CalendarToolbar } from '../chunk-36YYHIJU.js';
|
|
2
|
+
import '../chunk-ZPMXRW2A.js';
|
|
3
|
+
import '../chunk-NU56GKGM.js';
|
|
4
|
+
import '../chunk-55E7D2HR.js';
|
|
5
5
|
import '../chunk-DGPY4WP3.js';
|
|
6
6
|
//# sourceMappingURL=calendar-toolbar.js.map
|
|
7
7
|
//# sourceMappingURL=calendar-toolbar.js.map
|
|
@@ -2,6 +2,18 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { DayPicker } from 'react-day-picker';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Date picker calendar built on `react-day-picker`. Supports single, multiple,
|
|
7
|
+
* and range selection modes. Styled with Shadcn UI conventions.
|
|
8
|
+
*
|
|
9
|
+
* @param showOutsideDays - Whether to show days from adjacent months. Defaults to `true`.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* const [date, setDate] = useState<Date | undefined>();
|
|
14
|
+
* <Calendar mode="single" selected={date} onSelect={setDate} />
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
5
17
|
declare function Calendar({ className, classNames, showOutsideDays, ...props }: React.ComponentProps<typeof DayPicker>): react_jsx_runtime.JSX.Element;
|
|
6
18
|
|
|
7
19
|
export { Calendar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Calendar } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Calendar } from '../chunk-4MHIUUAW.js';
|
|
2
|
+
import '../chunk-55E7D2HR.js';
|
|
3
3
|
import '../chunk-DGPY4WP3.js';
|
|
4
4
|
//# sourceMappingURL=calendar.js.map
|
|
5
5
|
//# sourceMappingURL=calendar.js.map
|
|
@@ -1,12 +1,43 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Styled card container with header, title, description, action, content, and footer sub-components.
|
|
6
|
+
*
|
|
7
|
+
* Uses density tokens (`px-card`, `pt-card`, `pb-card`, `gap-card`) for consistent
|
|
8
|
+
* internal spacing that adapts to the design system.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Card>
|
|
13
|
+
* <CardHeader>
|
|
14
|
+
* <CardTitle>Notifications</CardTitle>
|
|
15
|
+
* <CardDescription>You have 3 unread messages.</CardDescription>
|
|
16
|
+
* <CardAction>
|
|
17
|
+
* <Button variant="outline">Mark all read</Button>
|
|
18
|
+
* </CardAction>
|
|
19
|
+
* </CardHeader>
|
|
20
|
+
* <CardContent>
|
|
21
|
+
* <p>Your recent activity will appear here.</p>
|
|
22
|
+
* </CardContent>
|
|
23
|
+
* <CardFooter>
|
|
24
|
+
* <Button>View all</Button>
|
|
25
|
+
* </CardFooter>
|
|
26
|
+
* </Card>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
4
29
|
declare function Card({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
30
|
+
/** Card header section. Lays out title, description, and optional action in a grid. */
|
|
5
31
|
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
32
|
+
/** Card title rendered as an `<h4>` element. */
|
|
6
33
|
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
34
|
+
/** Card description text displayed in muted foreground color. */
|
|
7
35
|
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
36
|
+
/** Card action slot positioned at the top-right of `CardHeader`. Place buttons or menus here. */
|
|
8
37
|
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
38
|
+
/** Card content area with horizontal padding. Bottom padding applied when last child. */
|
|
9
39
|
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
40
|
+
/** Card footer with horizontal layout. Typically used for action buttons. */
|
|
10
41
|
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
11
42
|
|
|
12
43
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
package/dist/components/card.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '../chunk-
|
|
1
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '../chunk-Z2QAABLM.js';
|
|
2
2
|
import '../chunk-DGPY4WP3.js';
|
|
3
3
|
//# sourceMappingURL=card.js.map
|
|
4
4
|
//# sourceMappingURL=card.js.map
|