@customafk/lunas-ui 0.0.7 → 0.0.8
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/{add-new-BaABbnol.js → add-new-C--Ee4bj.js} +1 -2
- package/dist/{add-new-DUoS_-n2.cjs → add-new-pfLdk0Hp.cjs} +1 -2
- package/dist/{alert-dialog-0KwdjY-6.js → alert-dialog-CQa0TLlF.js} +1 -2
- package/dist/{alert-dialog-D5ZqgIiC.cjs → alert-dialog-D1DFrl-0.cjs} +1 -2
- package/dist/badge-D_qEoSL8.js +1 -2
- package/dist/{badge-CRXT2dH_.cjs → badge-DfSj5nwV.cjs} +1 -2
- package/dist/button-Bku3bKv9.js +1 -2
- package/dist/button-CS0x-mYR.d.cts +22 -0
- package/dist/button-CxHABSnr.d.ts +22 -0
- package/dist/{button-Dzv_nos1.cjs → button-CycE0WzB.cjs} +1 -2
- package/dist/calendar-DaYVxwJx.js +1 -0
- package/dist/calendar-DzAxQqFI.cjs +1 -0
- package/dist/{card-Dta5eW8u.cjs → card-D7C05tvk.cjs} +1 -2
- package/dist/card-D8cxRC5y.js +1 -2
- package/dist/cards/simple-card.cjs +1 -2
- package/dist/cards/simple-card.d.cts +3 -3
- package/dist/cards/simple-card.d.ts +3 -3
- package/dist/cards/simple-card.js +1 -2
- package/dist/chunk-hhQzssFb.cjs +1 -0
- package/dist/command-BfYiUikG.d.cts +52 -0
- package/dist/{command-CsntVmEz.cjs → command-CkGJbvFq.cjs} +1 -2
- package/dist/command-CycGGWOh.d.ts +52 -0
- package/dist/{command-_L9bD9a-.js → command-Ir_Vqgds.js} +1 -2
- package/dist/data-display/country.cjs +1 -2
- package/dist/data-display/country.d.cts +1 -2
- package/dist/data-display/country.d.ts +2 -3
- package/dist/data-display/country.js +1 -2
- package/dist/data-display/data-list.cjs +1 -2
- package/dist/data-display/data-list.d.cts +1 -2
- package/dist/data-display/data-list.d.ts +1 -2
- package/dist/data-display/data-list.js +1 -2
- package/dist/data-display/date.cjs +1 -1
- package/dist/data-display/date.d.cts +1 -2
- package/dist/data-display/date.d.ts +1 -2
- package/dist/data-display/empty.cjs +1 -2
- package/dist/data-display/empty.d.cts +4 -3
- package/dist/data-display/empty.d.ts +4 -3
- package/dist/data-display/empty.js +1 -2
- package/dist/data-display/name.cjs +1 -2
- package/dist/data-display/name.d.cts +1 -2
- package/dist/data-display/name.d.ts +1 -2
- package/dist/data-display/name.js +1 -2
- package/dist/data-display/phone-number.cjs +1 -2
- package/dist/data-display/phone-number.d.cts +1 -2
- package/dist/data-display/phone-number.d.ts +1 -2
- package/dist/data-display/phone-number.js +1 -2
- package/dist/data-display/role-badge.cjs +1 -2
- package/dist/data-display/role-badge.d.cts +1 -2
- package/dist/data-display/role-badge.d.ts +2 -3
- package/dist/data-display/role-badge.js +1 -2
- package/dist/data-display/statistic.cjs +1 -2
- package/dist/data-display/statistic.d.cts +26 -3
- package/dist/data-display/statistic.d.ts +26 -3
- package/dist/data-display/statistic.js +1 -2
- package/dist/date-BMq_DNsv.js +1 -2
- package/dist/{date-nd8WkPlx.cjs → date-ByLOGsKl.cjs} +1 -2
- package/dist/{dialog-D3VF5qxy.d.cts → dialog-B13T--98.d.ts} +12 -12
- package/dist/{dialog-W-DmDMEE.cjs → dialog-B3cQOpjg.cjs} +1 -2
- package/dist/{dialog-C4hf-Puw.js → dialog-BLDh3Gqw.js} +1 -2
- package/dist/{dialog-MLCAvDJH.d.ts → dialog-Dspjpsjh.d.cts} +12 -12
- package/dist/dialogs/confirm-dialog.cjs +1 -2
- package/dist/dialogs/confirm-dialog.d.cts +1 -2
- package/dist/dialogs/confirm-dialog.d.ts +1 -2
- package/dist/dialogs/confirm-dialog.js +1 -2
- package/dist/dialogs/detail-dialog/index.cjs +1 -2
- package/dist/dialogs/detail-dialog/index.d.cts +1 -2
- package/dist/dialogs/detail-dialog/index.d.ts +1 -2
- package/dist/dialogs/detail-dialog/index.js +1 -2
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/error-dialog.d.cts +1 -2
- package/dist/dialogs/error-dialog.d.ts +1 -2
- package/dist/dialogs/error-dialog.js +1 -1
- package/dist/dialogs/form-dialog.cjs +1 -2
- package/dist/dialogs/form-dialog.d.cts +3 -3
- package/dist/dialogs/form-dialog.d.ts +3 -3
- package/dist/dialogs/form-dialog.js +1 -2
- package/dist/dialogs/loading-dialog.cjs +1 -2
- package/dist/dialogs/loading-dialog.d.cts +1 -2
- package/dist/dialogs/loading-dialog.d.ts +1 -2
- package/dist/dialogs/loading-dialog.js +1 -2
- package/dist/{dropdown-menu-Bv18S56o.cjs → dropdown-menu-CPvB_jOC.cjs} +1 -2
- package/dist/{dropdown-menu-jCQwh2rG.js → dropdown-menu-Cx-Wime0.js} +1 -2
- package/dist/{error-dialog-DpQgL5Hy.cjs → error-dialog-BTjeT7x-.cjs} +1 -2
- package/dist/{error-dialog-D_4WL-Hj.js → error-dialog-DlhosP10.js} +1 -2
- package/dist/flex-ILvQrYMJ.js +1 -2
- package/dist/{flex-CNA_SId-.cjs → flex-yTyoLpgH.cjs} +1 -2
- package/dist/form-CA4hhSV5.js +1 -2
- package/dist/{form-CYZkgobJ.cjs → form-C_PCHrpx.cjs} +1 -2
- package/dist/{form-wrapper-BYbwt1zC.cjs → form-wrapper-CCqogufb.cjs} +1 -2
- package/dist/{form-wrapper-D-2Uz518.js → form-wrapper-YPIbD8rh.js} +1 -2
- package/dist/forms/combobox-field.cjs +41 -0
- package/dist/forms/combobox-field.d.cts +27 -0
- package/dist/forms/combobox-field.d.ts +27 -0
- package/dist/forms/combobox-field.js +41 -0
- package/dist/forms/date-field.cjs +1 -0
- package/dist/forms/date-field.d.cts +21 -0
- package/dist/forms/date-field.d.ts +21 -0
- package/dist/forms/date-field.js +1 -0
- package/dist/forms/form-wrapper.cjs +1 -1
- package/dist/forms/form-wrapper.d.cts +3 -3
- package/dist/forms/form-wrapper.d.ts +3 -3
- package/dist/forms/form-wrapper.js +1 -1
- package/dist/forms/multi-select-field.cjs +1 -0
- package/dist/forms/multi-select-field.d.cts +29 -0
- package/dist/forms/multi-select-field.d.ts +29 -0
- package/dist/forms/multi-select-field.js +1 -0
- package/dist/forms/number-field.cjs +1 -0
- package/dist/forms/number-field.d.cts +27 -0
- package/dist/forms/number-field.d.ts +27 -0
- package/dist/forms/number-field.js +1 -0
- package/dist/forms/password-field.cjs +1 -0
- package/dist/forms/password-field.d.cts +22 -0
- package/dist/forms/password-field.d.ts +22 -0
- package/dist/forms/password-field.js +1 -0
- package/dist/forms/select-field.cjs +1 -0
- package/dist/forms/select-field.d.cts +32 -0
- package/dist/forms/select-field.d.ts +32 -0
- package/dist/forms/select-field.js +1 -0
- package/dist/forms/switch-field.cjs +1 -0
- package/dist/forms/switch-field.d.cts +18 -0
- package/dist/forms/switch-field.d.ts +18 -0
- package/dist/forms/switch-field.js +1 -0
- package/dist/forms/text-field.cjs +1 -0
- package/dist/forms/text-field.d.cts +30 -0
- package/dist/forms/text-field.d.ts +30 -0
- package/dist/forms/text-field.js +1 -0
- package/dist/forms/textarea-field.cjs +1 -0
- package/dist/forms/textarea-field.d.cts +26 -0
- package/dist/forms/textarea-field.d.ts +26 -0
- package/dist/forms/textarea-field.js +1 -0
- package/dist/{input-D0Phuz25.d.cts → input-BcIy0lq8.d.cts} +3 -3
- package/dist/{input-DXEBB91E.cjs → input-C8Sebaue.cjs} +1 -2
- package/dist/{input-tHIKXxVS.d.ts → input-Cux9upuQ.d.ts} +3 -3
- package/dist/{input-FzKbxUq2.js → input-Dmaq3fzf.js} +1 -2
- package/dist/label-Cxbctr6x.js +1 -2
- package/dist/{label-CunjD1rx.cjs → label-i858Jr98.cjs} +1 -2
- package/dist/layouts/flex.cjs +1 -1
- package/dist/layouts/flex.d.cts +14 -4
- package/dist/layouts/flex.d.ts +14 -4
- package/dist/layouts/main/index.cjs +1 -2
- package/dist/layouts/main/index.d.cts +14 -5
- package/dist/layouts/main/index.d.ts +14 -5
- package/dist/layouts/main/index.js +1 -2
- package/dist/multi-select-DZBXSr7F.cjs +1 -0
- package/dist/multi-select-LYl29d4h.js +1 -0
- package/dist/paragraph-Bey03JkA.js +1 -2
- package/dist/{paragraph-ZxI8zxuf.cjs → paragraph-DWQ0PZt_.cjs} +1 -2
- package/dist/popover-Ce0OTSQL.cjs +1 -0
- package/dist/popover-tDri6Ded.js +1 -0
- package/dist/{progress-BnnOfAZN.cjs → progress-CHh9eRZi.cjs} +1 -2
- package/dist/{progress-CBccqUUJ.js → progress-CeXKNvJc.js} +1 -2
- package/dist/{refresh-BHt_h3N_.js → refresh-BPlmkCzH.js} +1 -2
- package/dist/{refresh-DrolZxuC.cjs → refresh-Dtz354hW.cjs} +1 -2
- package/dist/{scroll-area-DWWpaz5j.cjs → scroll-area-Ba9RvkDf.cjs} +1 -2
- package/dist/{scroll-area-Bdb_LSFF.js → scroll-area-D-IhBWqm.js} +1 -2
- package/dist/{search-input-L2sq0eB0.js → search-input-BG4-fO9W.js} +1 -2
- package/dist/{search-input-Bf4-FeWu.cjs → search-input-DVMQEBvb.cjs} +1 -2
- package/dist/{select-CWUsisI0.js → select-4IO3vAjO.js} +1 -2
- package/dist/{select-ZSyt5zCe.cjs → select-UsiicIRo.cjs} +1 -2
- package/dist/{separator-DTB3sDNG.cjs → separator-D4iTmsID.cjs} +1 -2
- package/dist/{separator-BpsL0PlX.js → separator-DMdqEz29.js} +1 -2
- package/dist/{separator-COXs-I-Q.d.cts → separator-DtZ0fiIK.d.cts} +3 -3
- package/dist/{separator-2cwfp8qT.d.ts → separator-J8f9PdbI.d.ts} +3 -3
- package/dist/{sheet-C8r2QGpq.js → sheet-2JqHfdYi.js} +1 -2
- package/dist/{sheet-CCwbAaA6.cjs → sheet-Dr-a3-o2.cjs} +1 -2
- package/dist/{sidebar-C166f_9B.js → sidebar-COBzB7S8.js} +1 -2
- package/dist/{sidebar-BLPMNltJ.cjs → sidebar-gXuaHBie.cjs} +1 -2
- package/dist/skeleton-BTQm_mtV.cjs +1 -0
- package/dist/{skeleton-DYmX0k94.js → skeleton-D1_Brnl9.js} +1 -2
- package/dist/switch-BlK-TC1h.js +1 -0
- package/dist/switch-CoP3UwNk.cjs +1 -0
- package/dist/table/index.cjs +1 -2
- package/dist/table/index.d.cts +3 -3
- package/dist/table/index.d.ts +3 -3
- package/dist/table/index.js +1 -2
- package/dist/{table-BSeev7T0.cjs → table-C46bXpzd.cjs} +1 -2
- package/dist/{table-BvA64mE8.js → table-nHFRC3DG.js} +1 -2
- package/dist/textarea-Dz6npuI4.cjs +1 -0
- package/dist/textarea-dM1DYNfF.js +1 -0
- package/dist/{title-xsPZpQpb.cjs → title-BlLBscIg.cjs} +1 -2
- package/dist/title-DTkABsIG.js +1 -2
- package/dist/toggle-3yC7NgOb.d.ts +19 -0
- package/dist/toggle-8wPArWPq.d.cts +19 -0
- package/dist/{toggle-D_MDMruK.js → toggle-CHJ2edke.js} +1 -2
- package/dist/{toggle-CfL3GVe2.cjs → toggle-CzMYdDvC.cjs} +1 -2
- package/dist/{tooltip-Cjuu_Ld4.d.ts → tooltip-Bo9id3nz.d.ts} +6 -6
- package/dist/tooltip-Dzyf5smh.js +1 -2
- package/dist/{tooltip-Dk4HsZVR.d.cts → tooltip-JbjxxBNd.d.cts} +6 -6
- package/dist/{tooltip-Beb-_EPp.cjs → tooltip-MgToVOzy.cjs} +1 -2
- package/dist/types-B0V1F4Ml.d.cts +1 -2
- package/dist/{types-DLrIc2fL.d.ts → types-CmcNT14g.d.ts} +1 -2
- package/dist/types-CrbWxjnp.cjs +1 -2
- package/dist/types-DaIHddx7.js +1 -2
- package/dist/typography/paragraph.cjs +1 -1
- package/dist/typography/paragraph.d.cts +3 -3
- package/dist/typography/paragraph.d.ts +3 -3
- package/dist/typography/title.cjs +1 -1
- package/dist/typography/title.d.cts +4 -3
- package/dist/typography/title.d.ts +4 -3
- package/dist/ui/alert-dialog.cjs +1 -1
- package/dist/ui/alert-dialog.d.cts +13 -13
- package/dist/ui/alert-dialog.d.ts +13 -13
- package/dist/ui/alert-dialog.js +1 -1
- package/dist/ui/alert.cjs +1 -2
- package/dist/ui/alert.d.cts +9 -6
- package/dist/ui/alert.d.ts +9 -6
- package/dist/ui/alert.js +1 -2
- package/dist/ui/aspect-ratio.cjs +1 -2
- package/dist/ui/aspect-ratio.d.cts +3 -3
- package/dist/ui/aspect-ratio.d.ts +3 -3
- package/dist/ui/aspect-ratio.js +1 -2
- package/dist/ui/avatar.cjs +1 -2
- package/dist/ui/avatar.d.cts +5 -5
- package/dist/ui/avatar.d.ts +5 -5
- package/dist/ui/avatar.js +1 -2
- package/dist/ui/badge.cjs +1 -1
- package/dist/ui/badge.d.cts +9 -4
- package/dist/ui/badge.d.ts +9 -4
- package/dist/ui/breadcrumb.cjs +1 -2
- package/dist/ui/breadcrumb.d.cts +9 -9
- package/dist/ui/breadcrumb.d.ts +9 -9
- package/dist/ui/breadcrumb.js +1 -2
- package/dist/ui/button.cjs +1 -1
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/buttons/add-new.cjs +1 -1
- package/dist/ui/buttons/add-new.d.cts +1 -2
- package/dist/ui/buttons/add-new.d.ts +1 -2
- package/dist/ui/buttons/add-new.js +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.d.cts +1 -2
- package/dist/ui/buttons/refresh.d.ts +1 -2
- package/dist/ui/buttons/refresh.js +1 -1
- package/dist/ui/calendar.cjs +1 -2
- package/dist/ui/calendar.d.cts +5 -5
- package/dist/ui/calendar.d.ts +5 -5
- package/dist/ui/calendar.js +1 -2
- package/dist/ui/card.cjs +1 -1
- package/dist/ui/card.d.cts +9 -9
- package/dist/ui/card.d.ts +9 -9
- package/dist/ui/carousel.cjs +1 -2
- package/dist/ui/carousel.d.cts +8 -8
- package/dist/ui/carousel.d.ts +8 -8
- package/dist/ui/carousel.js +1 -2
- package/dist/ui/collapsible.cjs +1 -2
- package/dist/ui/collapsible.d.cts +5 -5
- package/dist/ui/collapsible.d.ts +5 -5
- package/dist/ui/collapsible.js +1 -2
- package/dist/ui/command.cjs +1 -1
- package/dist/ui/command.d.cts +3 -52
- package/dist/ui/command.d.ts +3 -52
- package/dist/ui/command.js +1 -1
- package/dist/ui/context-menu.cjs +1 -2
- package/dist/ui/context-menu.d.cts +17 -17
- package/dist/ui/context-menu.d.ts +17 -17
- package/dist/ui/context-menu.js +1 -2
- package/dist/ui/dialog.cjs +1 -1
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/dropdown-menu.cjs +1 -1
- package/dist/ui/dropdown-menu.d.cts +17 -17
- package/dist/ui/dropdown-menu.d.ts +17 -17
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/file-uploader.cjs +2 -3
- package/dist/ui/file-uploader.d.cts +3 -3
- package/dist/ui/file-uploader.d.ts +3 -3
- package/dist/ui/file-uploader.js +2 -3
- package/dist/ui/form.cjs +1 -1
- package/dist/ui/form.d.cts +24 -10
- package/dist/ui/form.d.ts +24 -10
- package/dist/ui/hover-card.cjs +1 -2
- package/dist/ui/hover-card.d.cts +5 -5
- package/dist/ui/hover-card.d.ts +5 -5
- package/dist/ui/hover-card.js +1 -2
- package/dist/ui/input-otp.cjs +1 -2
- package/dist/ui/input-otp.d.cts +6 -6
- package/dist/ui/input-otp.d.ts +6 -6
- package/dist/ui/input-otp.js +1 -2
- package/dist/ui/input.cjs +1 -1
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/inputs/search-input.cjs +1 -1
- package/dist/ui/inputs/search-input.d.cts +4 -4
- package/dist/ui/inputs/search-input.d.ts +4 -4
- package/dist/ui/inputs/search-input.js +1 -1
- package/dist/ui/label.cjs +1 -1
- package/dist/ui/label.d.cts +3 -3
- package/dist/ui/label.d.ts +3 -3
- package/dist/ui/menubar.cjs +1 -2
- package/dist/ui/menubar.d.cts +18 -18
- package/dist/ui/menubar.d.ts +18 -18
- package/dist/ui/menubar.js +1 -2
- package/dist/ui/multi-select.cjs +1 -2
- package/dist/ui/multi-select.d.cts +62 -3
- package/dist/ui/multi-select.d.ts +62 -3
- package/dist/ui/multi-select.js +1 -2
- package/dist/ui/navigation-menu.cjs +1 -2
- package/dist/ui/navigation-menu.d.cts +12 -11
- package/dist/ui/navigation-menu.d.ts +12 -11
- package/dist/ui/navigation-menu.js +1 -2
- package/dist/ui/pagination.cjs +1 -2
- package/dist/ui/pagination.d.cts +10 -10
- package/dist/ui/pagination.d.ts +10 -10
- package/dist/ui/pagination.js +1 -2
- package/dist/ui/popover.cjs +1 -2
- package/dist/ui/popover.d.cts +6 -6
- package/dist/ui/popover.d.ts +6 -6
- package/dist/ui/popover.js +1 -2
- package/dist/ui/progress.cjs +1 -1
- package/dist/ui/progress.d.cts +3 -3
- package/dist/ui/progress.d.ts +3 -3
- package/dist/ui/progress.js +1 -1
- package/dist/ui/radio-group.cjs +1 -2
- package/dist/ui/radio-group.d.cts +4 -4
- package/dist/ui/radio-group.d.ts +4 -4
- package/dist/ui/radio-group.js +1 -2
- package/dist/ui/resizable.cjs +1 -2
- package/dist/ui/resizable.d.cts +5 -5
- package/dist/ui/resizable.d.ts +5 -5
- package/dist/ui/resizable.js +1 -2
- package/dist/ui/scroll-area.cjs +1 -1
- package/dist/ui/scroll-area.d.cts +4 -4
- package/dist/ui/scroll-area.d.ts +4 -4
- package/dist/ui/scroll-area.js +1 -1
- package/dist/ui/select.cjs +1 -1
- package/dist/ui/select.d.cts +12 -12
- package/dist/ui/select.d.ts +12 -12
- package/dist/ui/select.js +1 -1
- package/dist/ui/separator.cjs +1 -1
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/separator.js +1 -1
- package/dist/ui/sheet.cjs +1 -1
- package/dist/ui/sheet.d.cts +10 -10
- package/dist/ui/sheet.d.ts +10 -10
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.d.cts +44 -31
- package/dist/ui/sidebar.d.ts +44 -31
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.cjs +1 -1
- package/dist/ui/skeleton.d.cts +3 -3
- package/dist/ui/skeleton.d.ts +3 -3
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.cjs +1 -2
- package/dist/ui/slider.d.cts +3 -3
- package/dist/ui/slider.d.ts +3 -3
- package/dist/ui/slider.js +1 -2
- package/dist/ui/sonner.cjs +1 -2
- package/dist/ui/sonner.d.cts +4 -3
- package/dist/ui/sonner.d.ts +4 -3
- package/dist/ui/sonner.js +1 -2
- package/dist/ui/switch.cjs +1 -2
- package/dist/ui/switch.d.cts +3 -3
- package/dist/ui/switch.d.ts +3 -3
- package/dist/ui/switch.js +1 -2
- package/dist/ui/table.cjs +1 -1
- package/dist/ui/table.d.cts +10 -10
- package/dist/ui/table.d.ts +10 -10
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.cjs +1 -2
- package/dist/ui/tabs.d.cts +6 -6
- package/dist/ui/tabs.d.ts +6 -6
- package/dist/ui/tabs.js +1 -2
- package/dist/ui/textarea.cjs +1 -2
- package/dist/ui/textarea.d.cts +3 -3
- package/dist/ui/textarea.d.ts +3 -3
- package/dist/ui/textarea.js +1 -2
- package/dist/ui/toggle-group.cjs +1 -2
- package/dist/ui/toggle-group.d.cts +5 -5
- package/dist/ui/toggle-group.d.ts +5 -5
- package/dist/ui/toggle-group.js +1 -2
- package/dist/ui/toggle.cjs +1 -1
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/tooltip.cjs +1 -1
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/dist/utils-D9AH0PUV.js +1 -2
- package/dist/utils-DaJ1XZgX.cjs +1 -0
- package/package.json +51 -4
- package/packages/components/cards/simple-card.tsx +37 -0
- package/packages/components/data-display/country.tsx +59 -0
- package/packages/components/data-display/data-list.tsx +38 -0
- package/packages/components/data-display/date.tsx +215 -0
- package/packages/components/data-display/empty.tsx +25 -0
- package/packages/components/data-display/name.tsx +25 -0
- package/packages/components/data-display/phone-number.tsx +22 -0
- package/packages/components/data-display/role-badge.tsx +33 -0
- package/packages/components/data-display/statistic.tsx +141 -0
- package/packages/components/dialogs/confirm-dialog.tsx +51 -0
- package/packages/components/dialogs/detail-dialog/component/header.tsx +14 -0
- package/packages/components/dialogs/detail-dialog/component/main.tsx +39 -0
- package/packages/components/dialogs/detail-dialog/component/sidebar.tsx +747 -0
- package/packages/components/dialogs/detail-dialog/component/wrapper.tsx +17 -0
- package/packages/components/dialogs/detail-dialog/index.tsx +100 -0
- package/packages/components/dialogs/error-dialog.tsx +48 -0
- package/packages/components/dialogs/form-dialog.tsx +106 -0
- package/packages/components/dialogs/loading-dialog.tsx +23 -0
- package/packages/components/forms/combobox-field.tsx +113 -0
- package/packages/components/forms/date-field.tsx +65 -0
- package/packages/components/forms/form-wrapper.tsx +146 -0
- package/packages/components/forms/multi-select-field.tsx +56 -0
- package/packages/components/forms/number-field.tsx +56 -0
- package/packages/components/forms/password-field.tsx +38 -0
- package/packages/components/forms/select-field.tsx +58 -0
- package/packages/components/forms/switch-field.tsx +42 -0
- package/packages/components/forms/text-field.tsx +80 -0
- package/packages/components/forms/textarea-field.tsx +53 -0
- package/packages/components/index.tsx +0 -0
- package/packages/components/layouts/flex.tsx +110 -0
- package/packages/components/layouts/main/content.tsx +11 -0
- package/packages/components/layouts/main/header.tsx +53 -0
- package/packages/components/layouts/main/index.tsx +3 -0
- package/packages/components/layouts/main/wrapper.tsx +5 -0
- package/packages/components/table/data-table-pagination.tsx +99 -0
- package/packages/components/table/data-table.tsx +328 -0
- package/packages/components/table/index.tsx +126 -0
- package/packages/components/typography/paragraph.tsx +32 -0
- package/packages/components/typography/title.tsx +36 -0
- package/packages/components/ui/alert-dialog.tsx +173 -0
- package/packages/components/ui/alert.tsx +71 -0
- package/packages/components/ui/aspect-ratio.tsx +20 -0
- package/packages/components/ui/avatar.tsx +52 -0
- package/packages/components/ui/badge.tsx +63 -0
- package/packages/components/ui/breadcrumb.tsx +110 -0
- package/packages/components/ui/button.tsx +88 -0
- package/packages/components/ui/buttons/add-new.tsx +26 -0
- package/packages/components/ui/buttons/refresh.tsx +30 -0
- package/packages/components/ui/calendar.tsx +209 -0
- package/packages/components/ui/card.tsx +95 -0
- package/packages/components/ui/carousel.tsx +241 -0
- package/packages/components/ui/checkbox.tsx +44 -0
- package/packages/components/ui/collapsible.tsx +33 -0
- package/packages/components/ui/command.tsx +217 -0
- package/packages/components/ui/context-menu.tsx +258 -0
- package/packages/components/ui/dialog.tsx +174 -0
- package/packages/components/ui/dropdown-menu.tsx +318 -0
- package/packages/components/ui/file-uploader.tsx +372 -0
- package/packages/components/ui/form.tsx +168 -0
- package/packages/components/ui/hover-card.tsx +43 -0
- package/packages/components/ui/input-otp.tsx +76 -0
- package/packages/components/ui/input.tsx +59 -0
- package/packages/components/ui/inputs/number-input.tsx +325 -0
- package/packages/components/ui/inputs/password-input.tsx +35 -0
- package/packages/components/ui/inputs/search-input.tsx +24 -0
- package/packages/components/ui/label.tsx +29 -0
- package/packages/components/ui/menubar.tsx +275 -0
- package/packages/components/ui/multi-select.tsx +693 -0
- package/packages/components/ui/navigation-menu.tsx +170 -0
- package/packages/components/ui/pagination.tsx +128 -0
- package/packages/components/ui/popover.tsx +64 -0
- package/packages/components/ui/progress.tsx +30 -0
- package/packages/components/ui/radio-group.tsx +53 -0
- package/packages/components/ui/resizable.tsx +55 -0
- package/packages/components/ui/scroll-area.tsx +51 -0
- package/packages/components/ui/select.tsx +246 -0
- package/packages/components/ui/separator.tsx +27 -0
- package/packages/components/ui/sheet.tsx +155 -0
- package/packages/components/ui/sidebar.tsx +751 -0
- package/packages/components/ui/skeleton.tsx +15 -0
- package/packages/components/ui/slider.tsx +62 -0
- package/packages/components/ui/sonner.tsx +43 -0
- package/packages/components/ui/switch.tsx +52 -0
- package/packages/components/ui/table.tsx +118 -0
- package/packages/components/ui/tabs.tsx +85 -0
- package/packages/components/ui/textarea.tsx +47 -0
- package/packages/components/ui/toggle-group.tsx +72 -0
- package/packages/components/ui/toggle.tsx +47 -0
- package/packages/components/ui/tooltip.tsx +71 -0
- package/packages/constants.tsx +79 -0
- package/packages/hooks/use-callback-ref.ts +27 -0
- package/packages/hooks/use-controllable-state.ts +67 -0
- package/packages/hooks/use-mobile.ts +21 -0
- package/packages/index.css +392 -0
- package/packages/lib/utils.ts +28 -0
- package/packages/types.ts +50 -0
- package/dist/add-new-BaABbnol.js.map +0 -1
- package/dist/add-new-DUoS_-n2.cjs.map +0 -1
- package/dist/alert-dialog-0KwdjY-6.js.map +0 -1
- package/dist/alert-dialog-D5ZqgIiC.cjs.map +0 -1
- package/dist/badge-CRXT2dH_.cjs.map +0 -1
- package/dist/badge-D_qEoSL8.js.map +0 -1
- package/dist/button-Bku3bKv9.js.map +0 -1
- package/dist/button-D_E_bNRb.d.ts +0 -18
- package/dist/button-Dzv_nos1.cjs.map +0 -1
- package/dist/button-YHI7I64h.d.cts +0 -18
- package/dist/card-D8cxRC5y.js.map +0 -1
- package/dist/card-Dta5eW8u.cjs.map +0 -1
- package/dist/cards/simple-card.cjs.map +0 -1
- package/dist/cards/simple-card.js.map +0 -1
- package/dist/chunk-CUT6urMc.cjs +0 -1
- package/dist/command-CsntVmEz.cjs.map +0 -1
- package/dist/command-_L9bD9a-.js.map +0 -1
- package/dist/data-display/country.cjs.map +0 -1
- package/dist/data-display/country.js.map +0 -1
- package/dist/data-display/data-list.cjs.map +0 -1
- package/dist/data-display/data-list.js.map +0 -1
- package/dist/data-display/empty.cjs.map +0 -1
- package/dist/data-display/empty.js.map +0 -1
- package/dist/data-display/name.cjs.map +0 -1
- package/dist/data-display/name.js.map +0 -1
- package/dist/data-display/phone-number.cjs.map +0 -1
- package/dist/data-display/phone-number.js.map +0 -1
- package/dist/data-display/role-badge.cjs.map +0 -1
- package/dist/data-display/role-badge.js.map +0 -1
- package/dist/data-display/statistic.cjs.map +0 -1
- package/dist/data-display/statistic.js.map +0 -1
- package/dist/date-BMq_DNsv.js.map +0 -1
- package/dist/date-nd8WkPlx.cjs.map +0 -1
- package/dist/dialog-C4hf-Puw.js.map +0 -1
- package/dist/dialog-W-DmDMEE.cjs.map +0 -1
- package/dist/dialogs/confirm-dialog.cjs.map +0 -1
- package/dist/dialogs/confirm-dialog.js.map +0 -1
- package/dist/dialogs/detail-dialog/index.cjs.map +0 -1
- package/dist/dialogs/detail-dialog/index.js.map +0 -1
- package/dist/dialogs/form-dialog.cjs.map +0 -1
- package/dist/dialogs/form-dialog.js.map +0 -1
- package/dist/dialogs/loading-dialog.cjs.map +0 -1
- package/dist/dialogs/loading-dialog.js.map +0 -1
- package/dist/dropdown-menu-Bv18S56o.cjs.map +0 -1
- package/dist/dropdown-menu-jCQwh2rG.js.map +0 -1
- package/dist/error-dialog-D_4WL-Hj.js.map +0 -1
- package/dist/error-dialog-DpQgL5Hy.cjs.map +0 -1
- package/dist/flex-CNA_SId-.cjs.map +0 -1
- package/dist/flex-ILvQrYMJ.js.map +0 -1
- package/dist/form-CA4hhSV5.js.map +0 -1
- package/dist/form-CYZkgobJ.cjs.map +0 -1
- package/dist/form-wrapper-BYbwt1zC.cjs.map +0 -1
- package/dist/form-wrapper-D-2Uz518.js.map +0 -1
- package/dist/input-DXEBB91E.cjs.map +0 -1
- package/dist/input-FzKbxUq2.js.map +0 -1
- package/dist/label-CunjD1rx.cjs.map +0 -1
- package/dist/label-Cxbctr6x.js.map +0 -1
- package/dist/layouts/main/index.cjs.map +0 -1
- package/dist/layouts/main/index.js.map +0 -1
- package/dist/paragraph-Bey03JkA.js.map +0 -1
- package/dist/paragraph-ZxI8zxuf.cjs.map +0 -1
- package/dist/progress-BnnOfAZN.cjs.map +0 -1
- package/dist/progress-CBccqUUJ.js.map +0 -1
- package/dist/refresh-BHt_h3N_.js.map +0 -1
- package/dist/refresh-DrolZxuC.cjs.map +0 -1
- package/dist/scroll-area-Bdb_LSFF.js.map +0 -1
- package/dist/scroll-area-DWWpaz5j.cjs.map +0 -1
- package/dist/search-input-Bf4-FeWu.cjs.map +0 -1
- package/dist/search-input-L2sq0eB0.js.map +0 -1
- package/dist/select-CWUsisI0.js.map +0 -1
- package/dist/select-ZSyt5zCe.cjs.map +0 -1
- package/dist/separator-BpsL0PlX.js.map +0 -1
- package/dist/separator-DTB3sDNG.cjs.map +0 -1
- package/dist/sheet-C8r2QGpq.js.map +0 -1
- package/dist/sheet-CCwbAaA6.cjs.map +0 -1
- package/dist/sidebar-BLPMNltJ.cjs.map +0 -1
- package/dist/sidebar-C166f_9B.js.map +0 -1
- package/dist/skeleton-DYmX0k94.js.map +0 -1
- package/dist/skeleton-m3giaF4T.cjs +0 -2
- package/dist/skeleton-m3giaF4T.cjs.map +0 -1
- package/dist/table/index.cjs.map +0 -1
- package/dist/table/index.js.map +0 -1
- package/dist/table-BSeev7T0.cjs.map +0 -1
- package/dist/table-BvA64mE8.js.map +0 -1
- package/dist/title-DTkABsIG.js.map +0 -1
- package/dist/title-xsPZpQpb.cjs.map +0 -1
- package/dist/toggle-BVkMTVAz.d.ts +0 -15
- package/dist/toggle-CW-ZnYMy.d.cts +0 -15
- package/dist/toggle-CfL3GVe2.cjs.map +0 -1
- package/dist/toggle-D_MDMruK.js.map +0 -1
- package/dist/tooltip-Beb-_EPp.cjs.map +0 -1
- package/dist/tooltip-Dzyf5smh.js.map +0 -1
- package/dist/types-CrbWxjnp.cjs.map +0 -1
- package/dist/types-DaIHddx7.js.map +0 -1
- package/dist/ui/alert.cjs.map +0 -1
- package/dist/ui/alert.js.map +0 -1
- package/dist/ui/aspect-ratio.cjs.map +0 -1
- package/dist/ui/aspect-ratio.js.map +0 -1
- package/dist/ui/avatar.cjs.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/breadcrumb.cjs.map +0 -1
- package/dist/ui/breadcrumb.js.map +0 -1
- package/dist/ui/calendar.cjs.map +0 -1
- package/dist/ui/calendar.js.map +0 -1
- package/dist/ui/carousel.cjs.map +0 -1
- package/dist/ui/carousel.js.map +0 -1
- package/dist/ui/collapsible.cjs.map +0 -1
- package/dist/ui/collapsible.js.map +0 -1
- package/dist/ui/context-menu.cjs.map +0 -1
- package/dist/ui/context-menu.js.map +0 -1
- package/dist/ui/file-uploader.cjs.map +0 -1
- package/dist/ui/file-uploader.js.map +0 -1
- package/dist/ui/hover-card.cjs.map +0 -1
- package/dist/ui/hover-card.js.map +0 -1
- package/dist/ui/input-otp.cjs.map +0 -1
- package/dist/ui/input-otp.js.map +0 -1
- package/dist/ui/menubar.cjs.map +0 -1
- package/dist/ui/menubar.js.map +0 -1
- package/dist/ui/multi-select.cjs.map +0 -1
- package/dist/ui/multi-select.js.map +0 -1
- package/dist/ui/navigation-menu.cjs.map +0 -1
- package/dist/ui/navigation-menu.js.map +0 -1
- package/dist/ui/pagination.cjs.map +0 -1
- package/dist/ui/pagination.js.map +0 -1
- package/dist/ui/popover.cjs.map +0 -1
- package/dist/ui/popover.js.map +0 -1
- package/dist/ui/radio-group.cjs.map +0 -1
- package/dist/ui/radio-group.js.map +0 -1
- package/dist/ui/resizable.cjs.map +0 -1
- package/dist/ui/resizable.js.map +0 -1
- package/dist/ui/slider.cjs.map +0 -1
- package/dist/ui/slider.js.map +0 -1
- package/dist/ui/sonner.cjs.map +0 -1
- package/dist/ui/sonner.js.map +0 -1
- package/dist/ui/switch.cjs.map +0 -1
- package/dist/ui/switch.js.map +0 -1
- package/dist/ui/tabs.cjs.map +0 -1
- package/dist/ui/tabs.js.map +0 -1
- package/dist/ui/textarea.cjs.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/toggle-group.cjs.map +0 -1
- package/dist/ui/toggle-group.js.map +0 -1
- package/dist/utils-BsjVK5EW.cjs +0 -2
- package/dist/utils-BsjVK5EW.cjs.map +0 -1
- package/dist/utils-D9AH0PUV.js.map +0 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
|
+
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
|
|
7
|
+
const alertVariants = cva(
|
|
8
|
+
[
|
|
9
|
+
"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm",
|
|
10
|
+
"has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4",
|
|
11
|
+
"[&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
12
|
+
],
|
|
13
|
+
{
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
default: "bg-card text-card-foreground",
|
|
17
|
+
destructive:
|
|
18
|
+
"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
variant: "default",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
function Alert({
|
|
28
|
+
className,
|
|
29
|
+
variant,
|
|
30
|
+
...props
|
|
31
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
|
|
32
|
+
return (
|
|
33
|
+
<div
|
|
34
|
+
data-slot="alert"
|
|
35
|
+
role="alert"
|
|
36
|
+
className={cn(alertVariants({ variant }), className)}
|
|
37
|
+
{...props}
|
|
38
|
+
/>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
|
|
43
|
+
return (
|
|
44
|
+
<div
|
|
45
|
+
data-slot="alert-title"
|
|
46
|
+
className={cn(
|
|
47
|
+
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
48
|
+
className,
|
|
49
|
+
)}
|
|
50
|
+
{...props}
|
|
51
|
+
/>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function AlertDescription({
|
|
56
|
+
className,
|
|
57
|
+
...props
|
|
58
|
+
}: React.ComponentProps<"div">) {
|
|
59
|
+
return (
|
|
60
|
+
<div
|
|
61
|
+
data-slot="alert-description"
|
|
62
|
+
className={cn(
|
|
63
|
+
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
64
|
+
className,
|
|
65
|
+
)}
|
|
66
|
+
{...props}
|
|
67
|
+
/>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { Alert, AlertDescription, AlertTitle };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AspectRatio as AspectRatioPrimitive } from "radix-ui";
|
|
4
|
+
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
|
|
7
|
+
function AspectRatio({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {
|
|
11
|
+
return (
|
|
12
|
+
<AspectRatioPrimitive.Root
|
|
13
|
+
data-slot="aspect-ratio"
|
|
14
|
+
className={cn("bg-accent rounded-md", className)}
|
|
15
|
+
{...props}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { AspectRatio };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Avatar as AvatarPrimitive } from "radix-ui";
|
|
4
|
+
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
|
|
7
|
+
function Avatar({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Root>) {
|
|
11
|
+
return (
|
|
12
|
+
<AvatarPrimitive.Root
|
|
13
|
+
data-slot="avatar"
|
|
14
|
+
className={cn(
|
|
15
|
+
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
16
|
+
className,
|
|
17
|
+
)}
|
|
18
|
+
{...props}
|
|
19
|
+
/>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function AvatarImage({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Image>) {
|
|
27
|
+
return (
|
|
28
|
+
<AvatarPrimitive.Image
|
|
29
|
+
data-slot="avatar-image"
|
|
30
|
+
className={cn("aspect-square size-full", className)}
|
|
31
|
+
{...props}
|
|
32
|
+
/>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function AvatarFallback({
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {
|
|
40
|
+
return (
|
|
41
|
+
<AvatarPrimitive.Fallback
|
|
42
|
+
data-slot="avatar-fallback"
|
|
43
|
+
className={cn(
|
|
44
|
+
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
45
|
+
className,
|
|
46
|
+
)}
|
|
47
|
+
{...props}
|
|
48
|
+
/>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
|
+
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
|
|
7
|
+
const badgeVariants = cva(
|
|
8
|
+
"focus:ring-ring rounded-sm inline-flex items-center px-2.5 py-0.5 font-semibold text-white shadow-sm transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden forced-colors:outline",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
color: {
|
|
12
|
+
red: "bg-red-500 dark:bg-red-600 text-white",
|
|
13
|
+
orange: "bg-orange-500 text-white dark:bg-orange-600",
|
|
14
|
+
amber: "bg-amber-500 text-white dark:bg-amber-600 ",
|
|
15
|
+
yellow: "bg-yellow-500 text-white dark:bg-yellow-600 ",
|
|
16
|
+
lime: "bg-lime-500 text-white dark:bg-lime-600",
|
|
17
|
+
green: "bg-green-500 text-white dark:bg-green-600",
|
|
18
|
+
emerald: "bg-emerald-500 text-white dark:bg-emerald-600",
|
|
19
|
+
teal: "bg-teal-500 text-white dark:bg-teal-600",
|
|
20
|
+
cyan: "bg-cyan-500 text-white dark:bg-cyan-600",
|
|
21
|
+
sky: "bg-sky-500 text-white dark:bg-sky-600",
|
|
22
|
+
blue: "bg-blue-500 text-white dark:bg-blue-600",
|
|
23
|
+
indigo: "bg-indigo-500 text-white dark:bg-indigo-600",
|
|
24
|
+
violet: "bg-violet-500 text-white dark:bg-violet-600",
|
|
25
|
+
purple: "bg-purple-500 text-white dark:bg-purple-600",
|
|
26
|
+
fuchsia: "bg-fuchsia-500 text-white dark:bg-fuchsia-600",
|
|
27
|
+
pink: "bg-pink-500 text-white dark:bg-pink-600",
|
|
28
|
+
rose: "bg-rose-500 text-white dark:bg-rose-600",
|
|
29
|
+
zinc: "bg-zinc-500 text-white dark:bg-zinc-600",
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
xs: "text-[8px]/3 px-1 py-0.5 gap-1",
|
|
33
|
+
sm: "text-[10px]/3 px-1.5 py-1 gap-1",
|
|
34
|
+
md: "text-xs px-2 py-1 gap-1",
|
|
35
|
+
lg: "text-sm px-2 py-1 gap-1.5",
|
|
36
|
+
xl: "text-base px-2.5 py-1 gap-1.5",
|
|
37
|
+
},
|
|
38
|
+
pill: {
|
|
39
|
+
true: "rounded-full",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
color: "zinc",
|
|
44
|
+
size: "md",
|
|
45
|
+
pill: true,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
export type BadgeProps = VariantProps<typeof badgeVariants> &
|
|
51
|
+
React.ComponentPropsWithoutRef<"div">;
|
|
52
|
+
|
|
53
|
+
function Badge({ className, color, size, pill, ...props }: BadgeProps) {
|
|
54
|
+
return (
|
|
55
|
+
<div
|
|
56
|
+
className={cn(badgeVariants({ color, pill, size }), className)}
|
|
57
|
+
{...props}
|
|
58
|
+
/>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
63
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Slot as SlotPrimitive } from "radix-ui";
|
|
4
|
+
import { ChevronRight, MoreHorizontalIcon } from "lucide-react";
|
|
5
|
+
|
|
6
|
+
import { cn } from "@/lib/utils";
|
|
7
|
+
|
|
8
|
+
function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
|
|
9
|
+
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
|
|
13
|
+
return (
|
|
14
|
+
<ol
|
|
15
|
+
data-slot="breadcrumb-list"
|
|
16
|
+
className={cn(
|
|
17
|
+
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
18
|
+
className,
|
|
19
|
+
)}
|
|
20
|
+
{...props}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {
|
|
26
|
+
return (
|
|
27
|
+
<li
|
|
28
|
+
data-slot="breadcrumb-item"
|
|
29
|
+
className={cn("inline-flex items-center gap-1.5", className)}
|
|
30
|
+
{...props}
|
|
31
|
+
/>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function BreadcrumbLink({
|
|
36
|
+
asChild,
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}: React.ComponentProps<"a"> & {
|
|
40
|
+
asChild?: boolean;
|
|
41
|
+
}) {
|
|
42
|
+
const Comp = asChild ? SlotPrimitive.Slot : "a";
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<Comp
|
|
46
|
+
data-slot="breadcrumb-link"
|
|
47
|
+
className={cn("hover:text-foreground transition-colors", className)}
|
|
48
|
+
{...props}
|
|
49
|
+
/>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {
|
|
54
|
+
return (
|
|
55
|
+
<span
|
|
56
|
+
data-slot="breadcrumb-page"
|
|
57
|
+
role="link"
|
|
58
|
+
aria-disabled="true"
|
|
59
|
+
aria-current="page"
|
|
60
|
+
className={cn("text-foreground font-normal", className)}
|
|
61
|
+
{...props}
|
|
62
|
+
/>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function BreadcrumbSeparator({
|
|
67
|
+
children,
|
|
68
|
+
className,
|
|
69
|
+
...props
|
|
70
|
+
}: React.ComponentProps<"li">) {
|
|
71
|
+
return (
|
|
72
|
+
<li
|
|
73
|
+
data-slot="breadcrumb-separator"
|
|
74
|
+
role="presentation"
|
|
75
|
+
aria-hidden="true"
|
|
76
|
+
className={cn("[&>svg]:size-3.5", className)}
|
|
77
|
+
{...props}
|
|
78
|
+
>
|
|
79
|
+
{children ?? <ChevronRight />}
|
|
80
|
+
</li>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function BreadcrumbEllipsis({
|
|
85
|
+
className,
|
|
86
|
+
...props
|
|
87
|
+
}: React.ComponentProps<"span">) {
|
|
88
|
+
return (
|
|
89
|
+
<span
|
|
90
|
+
data-slot="breadcrumb-ellipsis"
|
|
91
|
+
role="presentation"
|
|
92
|
+
aria-hidden="true"
|
|
93
|
+
className={cn("flex size-9 items-center justify-center", className)}
|
|
94
|
+
{...props}
|
|
95
|
+
>
|
|
96
|
+
<MoreHorizontalIcon size={16} />
|
|
97
|
+
<span className="sr-only">More</span>
|
|
98
|
+
</span>
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export {
|
|
103
|
+
Breadcrumb,
|
|
104
|
+
BreadcrumbEllipsis,
|
|
105
|
+
BreadcrumbItem,
|
|
106
|
+
BreadcrumbLink,
|
|
107
|
+
BreadcrumbList,
|
|
108
|
+
BreadcrumbPage,
|
|
109
|
+
BreadcrumbSeparator,
|
|
110
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Slot } from "radix-ui";
|
|
4
|
+
import { cva, type VariantProps } from "class-variance-authority";
|
|
5
|
+
|
|
6
|
+
import { cn } from "@/lib/utils";
|
|
7
|
+
|
|
8
|
+
const buttonVariants = cva(
|
|
9
|
+
[
|
|
10
|
+
"relative shrink-0 cursor-pointer rounded-md font-medium whitespace-normal outline-0 transition-all shadow-btn",
|
|
11
|
+
"[&_svg]:pointer-events-none",
|
|
12
|
+
"[&_svg]:shrink-0",
|
|
13
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
14
|
+
"aria-invalid:ring-destructive/20",
|
|
15
|
+
"aria-invalid:border-destructive",
|
|
16
|
+
"disabled:pointer-events-none",
|
|
17
|
+
"disabled:cursor-default disabled:opacity-50",
|
|
18
|
+
],
|
|
19
|
+
{
|
|
20
|
+
variants: {
|
|
21
|
+
variant: {
|
|
22
|
+
default:
|
|
23
|
+
"bg-primary text-primary-foreground shadow-primary/50 hover:bg-primary/90 active:bg-primary/90 focus:ring-ring",
|
|
24
|
+
destructive:
|
|
25
|
+
"bg-destructive hover:bg-destructive/90 focus:ring-destructive/40 dark:bg-destructive/60 text-white",
|
|
26
|
+
outline:
|
|
27
|
+
"border-border bg-card hover:bg-accent hover:text-accent-foreground focus:bg-background focus:ring-border/40 border",
|
|
28
|
+
|
|
29
|
+
secondary:
|
|
30
|
+
"bg-secondary text-secondary-foreground focus:ring-border hover:bg-secondary/80",
|
|
31
|
+
ghost:
|
|
32
|
+
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50 focus:!ring-0 shadow-none",
|
|
33
|
+
link: "text-primary underline-offset-4 hover:underline focus:!ring-0 shadow-none",
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
sm: "h-8 gap-1.5 rounded-md px-3 text-xs font-semibold focus:ring-4 has-[>svg]:px-2.5",
|
|
37
|
+
default:
|
|
38
|
+
"h-9 px-4 py-2 text-sm font-medium focus:ring-4 has-[>svg]:px-3",
|
|
39
|
+
lg: "h-10 rounded-md px-6 text-base font-semibold focus:ring-6 has-[>svg]:px-4",
|
|
40
|
+
icon: "size-8",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
defaultVariants: {
|
|
44
|
+
variant: "default",
|
|
45
|
+
size: "default",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
function Button({
|
|
51
|
+
className,
|
|
52
|
+
variant,
|
|
53
|
+
size,
|
|
54
|
+
asChild = false,
|
|
55
|
+
isLoading = false,
|
|
56
|
+
...props
|
|
57
|
+
}: React.ComponentProps<"button"> &
|
|
58
|
+
VariantProps<typeof buttonVariants> & {
|
|
59
|
+
asChild?: boolean;
|
|
60
|
+
isLoading?: boolean;
|
|
61
|
+
}) {
|
|
62
|
+
const Comp = asChild ? Slot.Root : "button";
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<Comp
|
|
66
|
+
data-slot="button"
|
|
67
|
+
className={cn(buttonVariants({ variant, size, className }))}
|
|
68
|
+
{...props}
|
|
69
|
+
>
|
|
70
|
+
<div
|
|
71
|
+
className={cn(
|
|
72
|
+
"flex size-full items-center justify-center gap-2 text-nowrap",
|
|
73
|
+
isLoading && "opacity-0",
|
|
74
|
+
)}
|
|
75
|
+
>
|
|
76
|
+
<Slot.Slottable>{props.children}</Slot.Slottable>
|
|
77
|
+
</div>
|
|
78
|
+
{isLoading && (
|
|
79
|
+
<div className="absolute inset-0 flex items-center justify-center">
|
|
80
|
+
<div className="loader-spinner text-muted-foreground" />
|
|
81
|
+
</div>
|
|
82
|
+
)}
|
|
83
|
+
</Comp>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
88
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PlusIcon } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
import { Paragraph } from "@/components/typography/paragraph";
|
|
4
|
+
|
|
5
|
+
import { Button } from "../button";
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export const AddNewBtn: React.FC<React.PropsWithChildren<Props>> = ({
|
|
11
|
+
onClick = () => {},
|
|
12
|
+
}) => {
|
|
13
|
+
return (
|
|
14
|
+
<Button
|
|
15
|
+
aria-label="Tạo mới"
|
|
16
|
+
variant="outline"
|
|
17
|
+
className="aspect-square max-sm:p-0"
|
|
18
|
+
onClick={onClick}
|
|
19
|
+
>
|
|
20
|
+
<PlusIcon className="opacity-60 sm:-ms-1" size={16} aria-hidden="true" />
|
|
21
|
+
<Paragraph variant="sm" className="max-sm:sr-only">
|
|
22
|
+
Create New
|
|
23
|
+
</Paragraph>
|
|
24
|
+
</Button>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RefreshCwIcon } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
import { Paragraph } from "@/components/typography/paragraph";
|
|
4
|
+
|
|
5
|
+
import { Button } from "../button";
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export const RefreshBtn: React.FC<React.PropsWithChildren<Props>> = ({
|
|
11
|
+
onClick = () => {},
|
|
12
|
+
}) => {
|
|
13
|
+
return (
|
|
14
|
+
<Button
|
|
15
|
+
aria-label="Tạo mới"
|
|
16
|
+
variant="outline"
|
|
17
|
+
className="aspect-square max-sm:p-0"
|
|
18
|
+
onClick={onClick}
|
|
19
|
+
>
|
|
20
|
+
<RefreshCwIcon
|
|
21
|
+
className="opacity-60 sm:-ms-1"
|
|
22
|
+
size={16}
|
|
23
|
+
aria-hidden="true"
|
|
24
|
+
/>
|
|
25
|
+
<Paragraph variant="sm" className="max-sm:sr-only">
|
|
26
|
+
Reset
|
|
27
|
+
</Paragraph>
|
|
28
|
+
</Button>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import {
|
|
4
|
+
ChevronDownIcon,
|
|
5
|
+
ChevronLeftIcon,
|
|
6
|
+
ChevronRightIcon,
|
|
7
|
+
} from "lucide-react";
|
|
8
|
+
import { DayButton, DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
9
|
+
|
|
10
|
+
import { Button, buttonVariants } from "@/components/ui/button";
|
|
11
|
+
import { cn } from "@/lib/utils";
|
|
12
|
+
|
|
13
|
+
function Calendar({
|
|
14
|
+
className,
|
|
15
|
+
classNames,
|
|
16
|
+
showOutsideDays = true,
|
|
17
|
+
captionLayout = "label",
|
|
18
|
+
buttonVariant = "ghost",
|
|
19
|
+
formatters,
|
|
20
|
+
components,
|
|
21
|
+
...props
|
|
22
|
+
}: React.ComponentProps<typeof DayPicker> & {
|
|
23
|
+
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
24
|
+
}) {
|
|
25
|
+
const defaultClassNames = getDefaultClassNames();
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<DayPicker
|
|
29
|
+
showOutsideDays={showOutsideDays}
|
|
30
|
+
className={cn(
|
|
31
|
+
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
32
|
+
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
33
|
+
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
34
|
+
className,
|
|
35
|
+
)}
|
|
36
|
+
captionLayout={captionLayout}
|
|
37
|
+
formatters={{
|
|
38
|
+
formatMonthDropdown: (date) =>
|
|
39
|
+
date.toLocaleString("default", { month: "short" }),
|
|
40
|
+
...formatters,
|
|
41
|
+
}}
|
|
42
|
+
classNames={{
|
|
43
|
+
root: cn("w-fit", defaultClassNames.root),
|
|
44
|
+
months: cn(
|
|
45
|
+
"flex gap-4 flex-col md:flex-row relative",
|
|
46
|
+
defaultClassNames.months,
|
|
47
|
+
),
|
|
48
|
+
month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
49
|
+
nav: cn(
|
|
50
|
+
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
51
|
+
defaultClassNames.nav,
|
|
52
|
+
),
|
|
53
|
+
button_previous: cn(
|
|
54
|
+
buttonVariants({ variant: buttonVariant }),
|
|
55
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
56
|
+
defaultClassNames.button_previous,
|
|
57
|
+
),
|
|
58
|
+
button_next: cn(
|
|
59
|
+
buttonVariants({ variant: buttonVariant }),
|
|
60
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
61
|
+
defaultClassNames.button_next,
|
|
62
|
+
),
|
|
63
|
+
month_caption: cn(
|
|
64
|
+
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
65
|
+
defaultClassNames.month_caption,
|
|
66
|
+
),
|
|
67
|
+
dropdowns: cn(
|
|
68
|
+
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
69
|
+
defaultClassNames.dropdowns,
|
|
70
|
+
),
|
|
71
|
+
dropdown_root: cn(
|
|
72
|
+
"relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
73
|
+
defaultClassNames.dropdown_root,
|
|
74
|
+
),
|
|
75
|
+
dropdown: cn("absolute inset-0 opacity-0", defaultClassNames.dropdown),
|
|
76
|
+
caption_label: cn(
|
|
77
|
+
"select-none font-medium",
|
|
78
|
+
captionLayout === "label"
|
|
79
|
+
? "text-sm"
|
|
80
|
+
: "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
|
|
81
|
+
defaultClassNames.caption_label,
|
|
82
|
+
),
|
|
83
|
+
table: "w-full border-collapse",
|
|
84
|
+
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
85
|
+
weekday: cn(
|
|
86
|
+
"text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
87
|
+
defaultClassNames.weekday,
|
|
88
|
+
),
|
|
89
|
+
week: cn("flex w-full mt-2", defaultClassNames.week),
|
|
90
|
+
week_number_header: cn(
|
|
91
|
+
"select-none w-(--cell-size)",
|
|
92
|
+
defaultClassNames.week_number_header,
|
|
93
|
+
),
|
|
94
|
+
week_number: cn(
|
|
95
|
+
"text-[0.8rem] select-none text-muted-foreground",
|
|
96
|
+
defaultClassNames.week_number,
|
|
97
|
+
),
|
|
98
|
+
day: cn(
|
|
99
|
+
"relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
|
|
100
|
+
defaultClassNames.day,
|
|
101
|
+
),
|
|
102
|
+
range_start: cn(
|
|
103
|
+
"rounded-l-md bg-accent",
|
|
104
|
+
defaultClassNames.range_start,
|
|
105
|
+
),
|
|
106
|
+
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
107
|
+
range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
108
|
+
today: cn(
|
|
109
|
+
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
110
|
+
defaultClassNames.today,
|
|
111
|
+
),
|
|
112
|
+
outside: cn(
|
|
113
|
+
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
114
|
+
defaultClassNames.outside,
|
|
115
|
+
),
|
|
116
|
+
disabled: cn(
|
|
117
|
+
"text-muted-foreground opacity-50",
|
|
118
|
+
defaultClassNames.disabled,
|
|
119
|
+
),
|
|
120
|
+
hidden: cn("invisible", defaultClassNames.hidden),
|
|
121
|
+
...classNames,
|
|
122
|
+
}}
|
|
123
|
+
components={{
|
|
124
|
+
Root: ({ className, rootRef, ...props }) => {
|
|
125
|
+
return (
|
|
126
|
+
<div
|
|
127
|
+
data-slot="calendar"
|
|
128
|
+
ref={rootRef}
|
|
129
|
+
className={cn(className)}
|
|
130
|
+
{...props}
|
|
131
|
+
/>
|
|
132
|
+
);
|
|
133
|
+
},
|
|
134
|
+
Chevron: ({ className, orientation, ...props }) => {
|
|
135
|
+
if (orientation === "left") {
|
|
136
|
+
return (
|
|
137
|
+
<ChevronLeftIcon className={cn("size-4", className)} {...props} />
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (orientation === "right") {
|
|
142
|
+
return (
|
|
143
|
+
<ChevronRightIcon
|
|
144
|
+
className={cn("size-4", className)}
|
|
145
|
+
{...props}
|
|
146
|
+
/>
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return (
|
|
151
|
+
<ChevronDownIcon className={cn("size-4", className)} {...props} />
|
|
152
|
+
);
|
|
153
|
+
},
|
|
154
|
+
DayButton: CalendarDayButton,
|
|
155
|
+
WeekNumber: ({ children, ...props }) => {
|
|
156
|
+
return (
|
|
157
|
+
<td {...props}>
|
|
158
|
+
<div className="flex size-(--cell-size) items-center justify-center text-center">
|
|
159
|
+
{children}
|
|
160
|
+
</div>
|
|
161
|
+
</td>
|
|
162
|
+
);
|
|
163
|
+
},
|
|
164
|
+
...components,
|
|
165
|
+
}}
|
|
166
|
+
{...props}
|
|
167
|
+
/>
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function CalendarDayButton({
|
|
172
|
+
className,
|
|
173
|
+
day,
|
|
174
|
+
modifiers,
|
|
175
|
+
...props
|
|
176
|
+
}: React.ComponentProps<typeof DayButton>) {
|
|
177
|
+
const defaultClassNames = getDefaultClassNames();
|
|
178
|
+
|
|
179
|
+
const ref = React.useRef<HTMLButtonElement>(null);
|
|
180
|
+
React.useEffect(() => {
|
|
181
|
+
if (modifiers.focused) ref.current?.focus();
|
|
182
|
+
}, [modifiers.focused]);
|
|
183
|
+
|
|
184
|
+
return (
|
|
185
|
+
<Button
|
|
186
|
+
ref={ref}
|
|
187
|
+
variant="ghost"
|
|
188
|
+
size="icon"
|
|
189
|
+
data-day={day.date.toLocaleDateString()}
|
|
190
|
+
data-selected-single={
|
|
191
|
+
modifiers.selected &&
|
|
192
|
+
!modifiers.range_start &&
|
|
193
|
+
!modifiers.range_end &&
|
|
194
|
+
!modifiers.range_middle
|
|
195
|
+
}
|
|
196
|
+
data-range-start={modifiers.range_start}
|
|
197
|
+
data-range-end={modifiers.range_end}
|
|
198
|
+
data-range-middle={modifiers.range_middle}
|
|
199
|
+
className={cn(
|
|
200
|
+
"data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
|
|
201
|
+
defaultClassNames.day,
|
|
202
|
+
className,
|
|
203
|
+
)}
|
|
204
|
+
{...props}
|
|
205
|
+
/>
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export { Calendar, CalendarDayButton };
|