@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,328 @@
|
|
|
1
|
+
import React, { type CSSProperties } from "react";
|
|
2
|
+
import {
|
|
3
|
+
type Column,
|
|
4
|
+
flexRender,
|
|
5
|
+
type Header,
|
|
6
|
+
type Table as ReactTable,
|
|
7
|
+
} from "@tanstack/react-table";
|
|
8
|
+
import {
|
|
9
|
+
ArrowLeftToLineIcon,
|
|
10
|
+
ArrowRightToLineIcon,
|
|
11
|
+
ChevronDown,
|
|
12
|
+
ChevronUp,
|
|
13
|
+
EllipsisIcon,
|
|
14
|
+
PackagePlusIcon,
|
|
15
|
+
PinOffIcon,
|
|
16
|
+
} from "lucide-react";
|
|
17
|
+
|
|
18
|
+
import { cn } from "@/lib/utils";
|
|
19
|
+
import type { AnyEntity } from "@/types";
|
|
20
|
+
|
|
21
|
+
import { Button } from "../ui/button";
|
|
22
|
+
import {
|
|
23
|
+
DropdownMenu,
|
|
24
|
+
DropdownMenuContent,
|
|
25
|
+
DropdownMenuItem,
|
|
26
|
+
DropdownMenuTrigger,
|
|
27
|
+
} from "../ui/dropdown-menu";
|
|
28
|
+
import { ScrollArea, ScrollBar } from "../ui/scroll-area";
|
|
29
|
+
import {
|
|
30
|
+
Table,
|
|
31
|
+
TableBody,
|
|
32
|
+
TableCell,
|
|
33
|
+
TableHead,
|
|
34
|
+
TableHeader,
|
|
35
|
+
TableRow,
|
|
36
|
+
} from "../ui/table";
|
|
37
|
+
|
|
38
|
+
// Helper function to compute pinning styles for columns
|
|
39
|
+
const getPinningStyles = (column: Column<AnyEntity>): CSSProperties => {
|
|
40
|
+
const isPinned = column.getIsPinned();
|
|
41
|
+
return {
|
|
42
|
+
left: isPinned === "left" ? `${column.getStart("left")}px` : undefined,
|
|
43
|
+
right: isPinned === "right" ? `${column.getAfter("right")}px` : undefined,
|
|
44
|
+
position: isPinned ? "sticky" : "relative",
|
|
45
|
+
width: column.getSize(),
|
|
46
|
+
zIndex: isPinned ? 1 : 0,
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const SortingIndicator = ({ column }: { column: Column<AnyEntity> }) => {
|
|
51
|
+
const sortDirection = column.getIsSorted();
|
|
52
|
+
|
|
53
|
+
const icons = {
|
|
54
|
+
asc: (
|
|
55
|
+
<ChevronUp
|
|
56
|
+
className="shrink-0 opacity-60"
|
|
57
|
+
size={16}
|
|
58
|
+
strokeWidth={2}
|
|
59
|
+
aria-hidden="true"
|
|
60
|
+
/>
|
|
61
|
+
),
|
|
62
|
+
desc: (
|
|
63
|
+
<ChevronDown
|
|
64
|
+
className="shrink-0 opacity-60"
|
|
65
|
+
size={16}
|
|
66
|
+
strokeWidth={2}
|
|
67
|
+
aria-hidden="true"
|
|
68
|
+
/>
|
|
69
|
+
),
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
return sortDirection ? icons[sortDirection] : null;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const PinControls = ({ column }: { column: Column<AnyEntity> }) => {
|
|
76
|
+
const columnHeader = column.columnDef.header as string;
|
|
77
|
+
|
|
78
|
+
if (!column.getCanPin()) return null;
|
|
79
|
+
|
|
80
|
+
if (column.getIsPinned()) {
|
|
81
|
+
return (
|
|
82
|
+
<Button
|
|
83
|
+
size="icon"
|
|
84
|
+
variant="ghost"
|
|
85
|
+
className="hover:[&_svg]:text-secondary-foreground -mr-1 size-7 shadow-none"
|
|
86
|
+
aria-label={`Unpin ${columnHeader} column`}
|
|
87
|
+
title={`Unpin ${columnHeader} column`}
|
|
88
|
+
onClick={() => column.pin(false)}
|
|
89
|
+
>
|
|
90
|
+
<PinOffIcon className="opacity-60" size={16} aria-hidden="true" />
|
|
91
|
+
</Button>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return (
|
|
96
|
+
<DropdownMenu>
|
|
97
|
+
<DropdownMenuTrigger asChild>
|
|
98
|
+
<Button
|
|
99
|
+
size="icon"
|
|
100
|
+
variant="ghost"
|
|
101
|
+
className="-mr-1 size-7 shadow-none"
|
|
102
|
+
aria-label={`Pin options for ${columnHeader} column`}
|
|
103
|
+
title={`Pin options for ${columnHeader} column`}
|
|
104
|
+
>
|
|
105
|
+
<EllipsisIcon className="opacity-60" size={16} aria-hidden="true" />
|
|
106
|
+
</Button>
|
|
107
|
+
</DropdownMenuTrigger>
|
|
108
|
+
<DropdownMenuContent align="end">
|
|
109
|
+
<DropdownMenuItem onClick={() => column.pin("left")}>
|
|
110
|
+
<ArrowLeftToLineIcon
|
|
111
|
+
size={16}
|
|
112
|
+
className="opacity-60"
|
|
113
|
+
aria-hidden="true"
|
|
114
|
+
/>
|
|
115
|
+
Stick to left
|
|
116
|
+
</DropdownMenuItem>
|
|
117
|
+
<DropdownMenuItem onClick={() => column.pin("right")}>
|
|
118
|
+
<ArrowRightToLineIcon
|
|
119
|
+
size={16}
|
|
120
|
+
className="opacity-60"
|
|
121
|
+
aria-hidden="true"
|
|
122
|
+
/>
|
|
123
|
+
Stick to right
|
|
124
|
+
</DropdownMenuItem>
|
|
125
|
+
</DropdownMenuContent>
|
|
126
|
+
</DropdownMenu>
|
|
127
|
+
);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const HeaderContent = ({ header }: { header: Header<AnyEntity, unknown> }) => {
|
|
131
|
+
const { column } = header;
|
|
132
|
+
|
|
133
|
+
const handleSort = (e: React.KeyboardEvent) => {
|
|
134
|
+
if (column.getCanSort() && (e.key === "Enter" || e.key === " ")) {
|
|
135
|
+
e.preventDefault();
|
|
136
|
+
column.getToggleSortingHandler()?.(e);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
return (
|
|
141
|
+
<div className="flex items-center justify-between gap-2 truncate">
|
|
142
|
+
{!header.isPlaceholder && (
|
|
143
|
+
<div
|
|
144
|
+
className={cn(
|
|
145
|
+
column.getCanSort() &&
|
|
146
|
+
"flex h-full cursor-pointer items-center justify-between gap-2 select-none",
|
|
147
|
+
)}
|
|
148
|
+
onClick={column.getToggleSortingHandler()}
|
|
149
|
+
onKeyDown={handleSort}
|
|
150
|
+
tabIndex={column.getCanSort() ? 0 : undefined}
|
|
151
|
+
>
|
|
152
|
+
<span className="truncate">
|
|
153
|
+
{flexRender(column.columnDef.header, header.getContext())}
|
|
154
|
+
</span>
|
|
155
|
+
<SortingIndicator column={column} />
|
|
156
|
+
</div>
|
|
157
|
+
)}
|
|
158
|
+
{!header.isPlaceholder && <PinControls column={column} />}
|
|
159
|
+
</div>
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
interface DataTableProps {
|
|
164
|
+
table: ReactTable<AnyEntity>;
|
|
165
|
+
columnsLength?: number;
|
|
166
|
+
isLoading?: boolean;
|
|
167
|
+
onClickRow?: (id: string) => void;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export const DataTable = ({ table, isLoading, onClickRow }: DataTableProps) => {
|
|
171
|
+
"use no memo";
|
|
172
|
+
return (
|
|
173
|
+
<ScrollArea className="border-border bg-background relative w-full overflow-auto rounded-lg border">
|
|
174
|
+
<Table
|
|
175
|
+
className={cn(
|
|
176
|
+
"!w-full",
|
|
177
|
+
"[&_td]:border-border",
|
|
178
|
+
"[&_th]:border-border",
|
|
179
|
+
"table-fixed border-separate border-spacing-0",
|
|
180
|
+
"[&_tfoot_td]:border-t",
|
|
181
|
+
"[&_th]:border-b",
|
|
182
|
+
"[&_tr]:border-none",
|
|
183
|
+
"[&_tr:not(:last-child)_td]:border-b",
|
|
184
|
+
)}
|
|
185
|
+
style={{
|
|
186
|
+
width: table.getTotalSize(),
|
|
187
|
+
}}
|
|
188
|
+
>
|
|
189
|
+
<TableHeader className="bg-muted/50 sticky top-0 z-10 backdrop-blur-xs">
|
|
190
|
+
{table.getHeaderGroups().map((headerGroup) => (
|
|
191
|
+
<TableRow key={headerGroup.id} className="bg-muted/50">
|
|
192
|
+
{headerGroup.headers.map((header) => {
|
|
193
|
+
const { column } = header;
|
|
194
|
+
const isPinned = column.getIsPinned();
|
|
195
|
+
const isLastLeftPinned =
|
|
196
|
+
isPinned === "left" && column.getIsLastColumn("left");
|
|
197
|
+
const isFirstRightPinned =
|
|
198
|
+
isPinned === "right" && column.getIsFirstColumn("right");
|
|
199
|
+
return (
|
|
200
|
+
<TableHead
|
|
201
|
+
key={header.id}
|
|
202
|
+
data-pinned={isPinned || undefined}
|
|
203
|
+
data-last-col={
|
|
204
|
+
isLastLeftPinned
|
|
205
|
+
? "left"
|
|
206
|
+
: isFirstRightPinned
|
|
207
|
+
? "right"
|
|
208
|
+
: undefined
|
|
209
|
+
}
|
|
210
|
+
className={cn(
|
|
211
|
+
"text-accent-foreground/60 relative h-9 border-r font-semibold select-none",
|
|
212
|
+
"data-pinned:backdrop-blur-xs",
|
|
213
|
+
"data-pinned:bg-muted/90",
|
|
214
|
+
"[&>.cursor-col-resize]:last:opacity-0",
|
|
215
|
+
"[&[data-pinned][data-last-col]]:border-border",
|
|
216
|
+
"[&:not([data-pinned]):has(+[data-pinned])_div.cursor-col-resize:last-child]:opacity-0",
|
|
217
|
+
"[&[data-last-col=left]_div.cursor-col-resize:last-child]:opacity-0",
|
|
218
|
+
"[&[data-pinned=left][data-last-col=left]]:border-r",
|
|
219
|
+
"[&[data-pinned=right]:last-child_div.cursor-col-resize:last-child]:opacity-0",
|
|
220
|
+
"[&[data-pinned=right][data-last-col=right]]:border-l",
|
|
221
|
+
)}
|
|
222
|
+
{...{
|
|
223
|
+
colSpan: header.colSpan,
|
|
224
|
+
style: {
|
|
225
|
+
width: header.getSize(),
|
|
226
|
+
maxWidth: header.getSize(),
|
|
227
|
+
...getPinningStyles(header.column),
|
|
228
|
+
},
|
|
229
|
+
}}
|
|
230
|
+
>
|
|
231
|
+
<HeaderContent header={header} />
|
|
232
|
+
</TableHead>
|
|
233
|
+
);
|
|
234
|
+
})}
|
|
235
|
+
</TableRow>
|
|
236
|
+
))}
|
|
237
|
+
</TableHeader>
|
|
238
|
+
|
|
239
|
+
<TableBody
|
|
240
|
+
className={cn(
|
|
241
|
+
isLoading && "h-36",
|
|
242
|
+
table.getRowModel().rows?.length === 0 && "h-48",
|
|
243
|
+
)}
|
|
244
|
+
>
|
|
245
|
+
{isLoading ? (
|
|
246
|
+
<TableRow className="absolute top-9 flex h-36 w-full items-center justify-center">
|
|
247
|
+
<TableCell>loading...</TableCell>
|
|
248
|
+
</TableRow>
|
|
249
|
+
) : (
|
|
250
|
+
<React.Fragment>
|
|
251
|
+
{table.getRowModel().rows?.length ? (
|
|
252
|
+
table.getRowModel().rows.map((row) => (
|
|
253
|
+
<TableRow
|
|
254
|
+
key={row.id}
|
|
255
|
+
data-state={row.getIsSelected() && "selected"}
|
|
256
|
+
className="cursor-pointer border-none focus:outline-none"
|
|
257
|
+
onClick={() =>
|
|
258
|
+
onClickRow?.(
|
|
259
|
+
row?.id ||
|
|
260
|
+
row.original?.id?.toString() ||
|
|
261
|
+
row.original?.uuid ||
|
|
262
|
+
undefined,
|
|
263
|
+
)
|
|
264
|
+
}
|
|
265
|
+
>
|
|
266
|
+
{row.getVisibleCells().map((cell) => {
|
|
267
|
+
const { column } = cell;
|
|
268
|
+
const isPinned = column.getIsPinned();
|
|
269
|
+
const isLastLeftPinned =
|
|
270
|
+
isPinned === "left" && column.getIsLastColumn("left");
|
|
271
|
+
const isFirstRightPinned =
|
|
272
|
+
isPinned === "right" &&
|
|
273
|
+
column.getIsFirstColumn("right");
|
|
274
|
+
return (
|
|
275
|
+
<TableCell
|
|
276
|
+
key={cell.id}
|
|
277
|
+
style={{
|
|
278
|
+
...getPinningStyles(column),
|
|
279
|
+
width: cell.column.getSize(),
|
|
280
|
+
maxWidth: cell.column.getSize(),
|
|
281
|
+
}}
|
|
282
|
+
data-pinned={isPinned || undefined}
|
|
283
|
+
data-last-col={
|
|
284
|
+
isLastLeftPinned
|
|
285
|
+
? "left"
|
|
286
|
+
: isFirstRightPinned
|
|
287
|
+
? "right"
|
|
288
|
+
: undefined
|
|
289
|
+
}
|
|
290
|
+
className={cn(
|
|
291
|
+
"overflow-hidden py-2.5",
|
|
292
|
+
"[&[data-pinned][data-last-col]]:border-border",
|
|
293
|
+
"[&[data-pinned=left][data-last-col=left]]:border-r",
|
|
294
|
+
"[&[data-pinned=right][data-last-col=right]]:border-l",
|
|
295
|
+
"data-pinned:bg-background/90",
|
|
296
|
+
)}
|
|
297
|
+
>
|
|
298
|
+
{flexRender(
|
|
299
|
+
cell.column.columnDef.cell,
|
|
300
|
+
cell.getContext(),
|
|
301
|
+
)}
|
|
302
|
+
</TableCell>
|
|
303
|
+
);
|
|
304
|
+
})}
|
|
305
|
+
</TableRow>
|
|
306
|
+
))
|
|
307
|
+
) : (
|
|
308
|
+
<TableRow className="absolute top-9 flex h-36 w-full items-center justify-center">
|
|
309
|
+
<TableCell>
|
|
310
|
+
<div className="text-muted-foreground flex size-full flex-col items-center justify-center gap-y-8 text-base">
|
|
311
|
+
<PackagePlusIcon size={48} strokeWidth={2} />
|
|
312
|
+
<p>Thêm dữ liệu để hiển thị</p>
|
|
313
|
+
</div>
|
|
314
|
+
</TableCell>
|
|
315
|
+
</TableRow>
|
|
316
|
+
)}
|
|
317
|
+
</React.Fragment>
|
|
318
|
+
)}
|
|
319
|
+
</TableBody>
|
|
320
|
+
</Table>
|
|
321
|
+
<ScrollBar orientation="vertical" className="z-10 w-2" />
|
|
322
|
+
<ScrollBar
|
|
323
|
+
orientation="horizontal"
|
|
324
|
+
className="absolute right-0 bottom-0 left-0 h-2"
|
|
325
|
+
/>
|
|
326
|
+
</ScrollArea>
|
|
327
|
+
);
|
|
328
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
type ColumnDef,
|
|
4
|
+
type ColumnFiltersState,
|
|
5
|
+
getCoreRowModel,
|
|
6
|
+
getFacetedRowModel,
|
|
7
|
+
getFacetedUniqueValues,
|
|
8
|
+
getFilteredRowModel,
|
|
9
|
+
getPaginationRowModel,
|
|
10
|
+
getSortedRowModel,
|
|
11
|
+
type PaginationState,
|
|
12
|
+
type RowSelectionState,
|
|
13
|
+
type SortingState,
|
|
14
|
+
useReactTable,
|
|
15
|
+
type VisibilityState,
|
|
16
|
+
} from "@tanstack/react-table";
|
|
17
|
+
|
|
18
|
+
import { DataTable } from "./data-table";
|
|
19
|
+
import { DataTablePagination } from "./data-table-pagination";
|
|
20
|
+
import { Flex } from "../layouts/flex";
|
|
21
|
+
import { AddNewBtn } from "../ui/buttons/add-new";
|
|
22
|
+
import { RefreshBtn } from "../ui/buttons/refresh";
|
|
23
|
+
import { SearchInput } from "../ui/inputs/search-input";
|
|
24
|
+
|
|
25
|
+
type Props<T> = {
|
|
26
|
+
data: T[];
|
|
27
|
+
totalCount?: number;
|
|
28
|
+
isLoading?: boolean;
|
|
29
|
+
columns: ColumnDef<T>[];
|
|
30
|
+
pagination?: PaginationState;
|
|
31
|
+
onAdd?: () => void;
|
|
32
|
+
onRefresh?: () => void;
|
|
33
|
+
onClickRow?: (id: string) => void;
|
|
34
|
+
onPaginationChange?: React.Dispatch<React.SetStateAction<PaginationState>>;
|
|
35
|
+
};
|
|
36
|
+
export function Table<T extends Record<string, unknown>>({
|
|
37
|
+
data,
|
|
38
|
+
totalCount,
|
|
39
|
+
isLoading,
|
|
40
|
+
columns,
|
|
41
|
+
pagination,
|
|
42
|
+
onAdd,
|
|
43
|
+
onRefresh,
|
|
44
|
+
onClickRow,
|
|
45
|
+
onPaginationChange,
|
|
46
|
+
}: Props<T>) {
|
|
47
|
+
"use no memo";
|
|
48
|
+
|
|
49
|
+
const [rowSelection, setRowSelection] = React.useState<RowSelectionState>({});
|
|
50
|
+
const [sorting, setSorting] = React.useState<SortingState>([]);
|
|
51
|
+
const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>(
|
|
52
|
+
[],
|
|
53
|
+
);
|
|
54
|
+
const [columnVisibility, setColumnVisibility] =
|
|
55
|
+
React.useState<VisibilityState>({});
|
|
56
|
+
|
|
57
|
+
const initialState = React.useMemo(
|
|
58
|
+
() => ({
|
|
59
|
+
columnPinning: { right: ["actions", "update", "delete"] },
|
|
60
|
+
pagination: { pageIndex: 0, pageSize: 20 },
|
|
61
|
+
}),
|
|
62
|
+
[],
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
const table = useReactTable<T>({
|
|
66
|
+
initialState,
|
|
67
|
+
data,
|
|
68
|
+
columns,
|
|
69
|
+
rowCount: totalCount,
|
|
70
|
+
columnResizeMode: "onChange",
|
|
71
|
+
manualPagination: true,
|
|
72
|
+
enableColumnResizing: false,
|
|
73
|
+
enableMultiRowSelection: false,
|
|
74
|
+
getCoreRowModel: getCoreRowModel(),
|
|
75
|
+
getPaginationRowModel: getPaginationRowModel(),
|
|
76
|
+
getSortedRowModel: getSortedRowModel(),
|
|
77
|
+
getFilteredRowModel: getFilteredRowModel(),
|
|
78
|
+
getFacetedRowModel: getFacetedRowModel(),
|
|
79
|
+
getFacetedUniqueValues: getFacetedUniqueValues(),
|
|
80
|
+
getRowId: (row) => (row.id as string) || (row.uuid as string),
|
|
81
|
+
state: {
|
|
82
|
+
rowSelection,
|
|
83
|
+
sorting,
|
|
84
|
+
columnVisibility,
|
|
85
|
+
columnFilters,
|
|
86
|
+
...(pagination ? { pagination } : {}),
|
|
87
|
+
},
|
|
88
|
+
onRowSelectionChange: setRowSelection,
|
|
89
|
+
onSortingChange: setSorting,
|
|
90
|
+
onColumnVisibilityChange: setColumnVisibility,
|
|
91
|
+
onColumnFiltersChange: setColumnFilters,
|
|
92
|
+
...(onPaginationChange ? { onPaginationChange } : {}),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
return (
|
|
96
|
+
<Flex
|
|
97
|
+
vertical
|
|
98
|
+
wrap={false}
|
|
99
|
+
gap="sm"
|
|
100
|
+
align="start"
|
|
101
|
+
className="size-full overflow-y-auto pt-1"
|
|
102
|
+
>
|
|
103
|
+
<Flex justify="between" padding="none" width="full" className="flex-0">
|
|
104
|
+
<SearchInput placeholder="Search..." />
|
|
105
|
+
<Flex className="px-0">
|
|
106
|
+
{onAdd && <AddNewBtn onClick={onAdd} />}
|
|
107
|
+
<RefreshBtn onClick={onRefresh} />
|
|
108
|
+
</Flex>
|
|
109
|
+
</Flex>
|
|
110
|
+
<Flex
|
|
111
|
+
padding="none"
|
|
112
|
+
vertical
|
|
113
|
+
wrap={false}
|
|
114
|
+
width="full"
|
|
115
|
+
className="flex-1 overflow-auto"
|
|
116
|
+
>
|
|
117
|
+
<DataTable
|
|
118
|
+
table={table}
|
|
119
|
+
isLoading={isLoading}
|
|
120
|
+
onClickRow={onClickRow}
|
|
121
|
+
/>
|
|
122
|
+
<DataTablePagination<T> table={table} />
|
|
123
|
+
</Flex>
|
|
124
|
+
</Flex>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
variant?: "p" | "muted" | "lead" | "sm" | "lg";
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const paragraphVariants = cva("", {
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
p: "leading-7 [&:not(:first-child)]:mt-6",
|
|
17
|
+
sm: "text-sm leading-none font-normal",
|
|
18
|
+
lg: "text-lg font-semibold",
|
|
19
|
+
lead: "text-muted-foreground text-xl",
|
|
20
|
+
muted: "text-muted-foreground text-sm",
|
|
21
|
+
},
|
|
22
|
+
default: {
|
|
23
|
+
variant: "sm",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export const Paragraph = ({ variant = "p", className, children }: Props) => {
|
|
29
|
+
return (
|
|
30
|
+
<p className={cn(paragraphVariants({ variant }), className)}>{children}</p>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
|
|
4
|
+
import { cn } from "@/lib/utils";
|
|
5
|
+
|
|
6
|
+
const titleVariants = cva(
|
|
7
|
+
"scroll-m-20 text-secondary-foreground tracking-tight",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
level: {
|
|
11
|
+
1: "text-center text-4xl font-extrabold text-balance",
|
|
12
|
+
2: "border-b pb-2 text-3xl font-semibold first:mt-0",
|
|
13
|
+
3: "text-2xl font-semibold",
|
|
14
|
+
4: "text-xl font-semibold",
|
|
15
|
+
5: "text-lg font-semibold",
|
|
16
|
+
6: "text-base font-semibold",
|
|
17
|
+
},
|
|
18
|
+
default: {
|
|
19
|
+
level: 1,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
type Props = {
|
|
26
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
27
|
+
className?: string;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const Title = ({ level = 1, className, children }: Props) => {
|
|
32
|
+
const Comp = `h${level}` as keyof JSX.IntrinsicElements;
|
|
33
|
+
return (
|
|
34
|
+
<Comp className={cn(titleVariants({ level }), className)}>{children}</Comp>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
|
|
4
|
+
|
|
5
|
+
import { buttonVariants } from "@/components/ui/button";
|
|
6
|
+
import { cn } from "@/lib/utils";
|
|
7
|
+
|
|
8
|
+
function AlertDialog({
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
|
|
11
|
+
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function AlertDialogTrigger({
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
|
|
17
|
+
return (
|
|
18
|
+
<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function AlertDialogPortal({
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
|
|
25
|
+
return (
|
|
26
|
+
<AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function AlertDialogOverlay({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {
|
|
34
|
+
return (
|
|
35
|
+
<AlertDialogPrimitive.Overlay
|
|
36
|
+
data-slot="alert-dialog-overlay"
|
|
37
|
+
className={cn(
|
|
38
|
+
"fixed inset-0 z-50 bg-black/50",
|
|
39
|
+
"data-[state=open]:animate-in",
|
|
40
|
+
"data-[state=closed]:animate-out",
|
|
41
|
+
"data-[state=closed]:fade-out-0",
|
|
42
|
+
"data-[state=open]:fade-in-0",
|
|
43
|
+
className,
|
|
44
|
+
)}
|
|
45
|
+
{...props}
|
|
46
|
+
/>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function AlertDialogContent({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {
|
|
54
|
+
return (
|
|
55
|
+
<AlertDialogPortal>
|
|
56
|
+
<AlertDialogOverlay />
|
|
57
|
+
<AlertDialogPrimitive.Content
|
|
58
|
+
data-slot="alert-dialog-content"
|
|
59
|
+
className={cn(
|
|
60
|
+
"bg-background",
|
|
61
|
+
"data-[state=open]:animate-in",
|
|
62
|
+
"data-[state=closed]:animate-out",
|
|
63
|
+
"data-[state=closed]:fade-out-0",
|
|
64
|
+
"data-[state=open]:fade-in-0",
|
|
65
|
+
"data-[state=closed]:zoom-out-95",
|
|
66
|
+
"data-[state=open]:zoom-in-95",
|
|
67
|
+
"fixed z-50",
|
|
68
|
+
"top-1/2 left-1/2",
|
|
69
|
+
"-translate-1/2",
|
|
70
|
+
"grid w-full max-w-[calc(100%-2rem)]",
|
|
71
|
+
"gap-4 rounded-lg p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
72
|
+
className,
|
|
73
|
+
)}
|
|
74
|
+
{...props}
|
|
75
|
+
/>
|
|
76
|
+
</AlertDialogPortal>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function AlertDialogHeader({
|
|
81
|
+
className,
|
|
82
|
+
...props
|
|
83
|
+
}: React.ComponentProps<"div">) {
|
|
84
|
+
return (
|
|
85
|
+
<div
|
|
86
|
+
data-slot="alert-dialog-header"
|
|
87
|
+
className={cn("flex flex-col gap-2 text-center sm:text-left", className)}
|
|
88
|
+
{...props}
|
|
89
|
+
/>
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function AlertDialogFooter({
|
|
94
|
+
className,
|
|
95
|
+
...props
|
|
96
|
+
}: React.ComponentProps<"div">) {
|
|
97
|
+
return (
|
|
98
|
+
<div
|
|
99
|
+
data-slot="alert-dialog-footer"
|
|
100
|
+
className={cn(
|
|
101
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
102
|
+
className,
|
|
103
|
+
)}
|
|
104
|
+
{...props}
|
|
105
|
+
/>
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function AlertDialogTitle({
|
|
110
|
+
className,
|
|
111
|
+
...props
|
|
112
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {
|
|
113
|
+
return (
|
|
114
|
+
<AlertDialogPrimitive.Title
|
|
115
|
+
data-slot="alert-dialog-title"
|
|
116
|
+
className={cn("text-lg font-semibold", className)}
|
|
117
|
+
{...props}
|
|
118
|
+
/>
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function AlertDialogDescription({
|
|
123
|
+
className,
|
|
124
|
+
...props
|
|
125
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {
|
|
126
|
+
return (
|
|
127
|
+
<AlertDialogPrimitive.Description
|
|
128
|
+
data-slot="alert-dialog-description"
|
|
129
|
+
className={cn("text-muted-foreground text-sm", className)}
|
|
130
|
+
{...props}
|
|
131
|
+
/>
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function AlertDialogAction({
|
|
136
|
+
className,
|
|
137
|
+
...props
|
|
138
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {
|
|
139
|
+
return (
|
|
140
|
+
<AlertDialogPrimitive.Action
|
|
141
|
+
className={cn(buttonVariants(), className)}
|
|
142
|
+
{...props}
|
|
143
|
+
autoFocus
|
|
144
|
+
tabIndex={1}
|
|
145
|
+
/>
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function AlertDialogCancel({
|
|
150
|
+
className,
|
|
151
|
+
...props
|
|
152
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {
|
|
153
|
+
return (
|
|
154
|
+
<AlertDialogPrimitive.Cancel
|
|
155
|
+
className={cn(buttonVariants({ variant: "outline" }), className)}
|
|
156
|
+
{...props}
|
|
157
|
+
/>
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export {
|
|
162
|
+
AlertDialog,
|
|
163
|
+
AlertDialogAction,
|
|
164
|
+
AlertDialogCancel,
|
|
165
|
+
AlertDialogContent,
|
|
166
|
+
AlertDialogDescription,
|
|
167
|
+
AlertDialogFooter,
|
|
168
|
+
AlertDialogHeader,
|
|
169
|
+
AlertDialogOverlay,
|
|
170
|
+
AlertDialogPortal,
|
|
171
|
+
AlertDialogTitle,
|
|
172
|
+
AlertDialogTrigger,
|
|
173
|
+
};
|