@customafk/lunas-ui 0.0.7 → 0.0.9
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-BaTjxsdU.js} +1 -1
- package/dist/{add-new-BaABbnol.js.map → add-new-BaTjxsdU.js.map} +1 -1
- package/dist/{add-new-DUoS_-n2.cjs → add-new-aIL8RwI8.cjs} +2 -2
- package/dist/{add-new-DUoS_-n2.cjs.map → add-new-aIL8RwI8.cjs.map} +1 -1
- package/dist/alert-dialog-0KwdjY-6.js.map +1 -1
- package/dist/{alert-dialog-D5ZqgIiC.cjs → alert-dialog-BQv-ZvW9.cjs} +2 -2
- package/dist/{alert-dialog-D5ZqgIiC.cjs.map → alert-dialog-BQv-ZvW9.cjs.map} +1 -1
- package/dist/badge-D_qEoSL8.js.map +1 -1
- package/dist/{badge-CRXT2dH_.cjs → badge-DfSj5nwV.cjs} +2 -2
- package/dist/{badge-CRXT2dH_.cjs.map → badge-DfSj5nwV.cjs.map} +1 -1
- package/dist/button-Bku3bKv9.js.map +1 -1
- package/dist/button-Blg2XhHo.d.ts +23 -0
- package/dist/{button-Dzv_nos1.cjs → button-CycE0WzB.cjs} +2 -2
- package/dist/{button-Dzv_nos1.cjs.map → button-CycE0WzB.cjs.map} +1 -1
- package/dist/button-DThtZ8g0.d.cts +23 -0
- package/dist/calendar-5D53vIAn.js +2 -0
- package/dist/calendar-5D53vIAn.js.map +1 -0
- package/dist/calendar-CPFb8F_s.cjs +2 -0
- package/dist/calendar-CPFb8F_s.cjs.map +1 -0
- package/dist/{card-Dta5eW8u.cjs → card-D7C05tvk.cjs} +2 -2
- package/dist/{card-Dta5eW8u.cjs.map → card-D7C05tvk.cjs.map} +1 -1
- package/dist/card-D8cxRC5y.js.map +1 -1
- package/dist/cards/simple-card.cjs +1 -1
- package/dist/cards/simple-card.cjs.map +1 -1
- package/dist/cards/simple-card.d.cts +2 -1
- package/dist/cards/simple-card.d.ts +2 -1
- package/dist/cards/simple-card.js.map +1 -1
- package/dist/chunk-hhQzssFb.cjs +1 -0
- package/dist/command-ByvjNMyq.d.cts +53 -0
- package/dist/{command-CsntVmEz.cjs → command-D8k85t1c.cjs} +2 -2
- package/dist/{command-CsntVmEz.cjs.map → command-D8k85t1c.cjs.map} +1 -1
- package/dist/command-DXhsKiMq.d.ts +53 -0
- package/dist/{command-_L9bD9a-.js → command-DieInaEN.js} +1 -1
- package/dist/{command-_L9bD9a-.js.map → command-DieInaEN.js.map} +1 -1
- package/dist/data-display/country.cjs +1 -1
- package/dist/data-display/country.cjs.map +1 -1
- package/dist/data-display/country.d.ts +1 -1
- package/dist/data-display/country.js.map +1 -1
- package/dist/data-display/data-list.cjs +1 -1
- package/dist/data-display/data-list.cjs.map +1 -1
- package/dist/data-display/data-list.js.map +1 -1
- package/dist/data-display/date.cjs +1 -1
- package/dist/data-display/empty.cjs +1 -1
- package/dist/data-display/empty.d.cts +3 -1
- package/dist/data-display/empty.d.ts +3 -1
- package/dist/data-display/name.cjs +1 -1
- package/dist/data-display/name.cjs.map +1 -1
- package/dist/data-display/name.js.map +1 -1
- package/dist/data-display/phone-number.cjs +1 -1
- package/dist/data-display/phone-number.cjs.map +1 -1
- package/dist/data-display/phone-number.js.map +1 -1
- package/dist/data-display/role-badge.cjs +1 -1
- package/dist/data-display/role-badge.cjs.map +1 -1
- package/dist/data-display/role-badge.d.ts +1 -1
- package/dist/data-display/role-badge.js.map +1 -1
- package/dist/data-display/statistic.cjs +1 -1
- package/dist/data-display/statistic.cjs.map +1 -1
- package/dist/data-display/statistic.d.cts +25 -1
- package/dist/data-display/statistic.d.ts +25 -1
- package/dist/data-display/statistic.js +1 -1
- package/dist/data-display/statistic.js.map +1 -1
- package/dist/date-BMq_DNsv.js.map +1 -1
- package/dist/{date-nd8WkPlx.cjs → date-ByLOGsKl.cjs} +2 -2
- package/dist/{date-nd8WkPlx.cjs.map → date-ByLOGsKl.cjs.map} +1 -1
- package/dist/{dialog-MLCAvDJH.d.ts → dialog-B3V9xxdD.d.cts} +12 -11
- package/dist/dialog-C4hf-Puw.js.map +1 -1
- package/dist/{dialog-W-DmDMEE.cjs → dialog-Cn8cFeu-.cjs} +2 -2
- package/dist/{dialog-W-DmDMEE.cjs.map → dialog-Cn8cFeu-.cjs.map} +1 -1
- package/dist/{dialog-D3VF5qxy.d.cts → dialog-Dlozd6qY.d.ts} +12 -11
- package/dist/dialogs/confirm-dialog.cjs +1 -1
- package/dist/dialogs/confirm-dialog.cjs.map +1 -1
- package/dist/dialogs/confirm-dialog.js.map +1 -1
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.cjs.map +1 -1
- package/dist/dialogs/detail-dialog/index.js +1 -1
- package/dist/dialogs/detail-dialog/index.js.map +1 -1
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.cjs.map +1 -1
- package/dist/dialogs/form-dialog.d.cts +2 -1
- package/dist/dialogs/form-dialog.d.ts +2 -1
- package/dist/dialogs/form-dialog.js.map +1 -1
- package/dist/dialogs/loading-dialog.cjs +1 -1
- package/dist/dialogs/loading-dialog.cjs.map +1 -1
- package/dist/dialogs/loading-dialog.js.map +1 -1
- package/dist/{dropdown-menu-Bv18S56o.cjs → dropdown-menu-D2Kh77uw.cjs} +2 -2
- package/dist/{dropdown-menu-Bv18S56o.cjs.map → dropdown-menu-D2Kh77uw.cjs.map} +1 -1
- package/dist/{dropdown-menu-jCQwh2rG.js → dropdown-menu-DTFOCPH_.js} +1 -1
- package/dist/{dropdown-menu-jCQwh2rG.js.map → dropdown-menu-DTFOCPH_.js.map} +1 -1
- package/dist/{error-dialog-DpQgL5Hy.cjs → error-dialog-DO0Bb-pi.cjs} +2 -2
- package/dist/{error-dialog-DpQgL5Hy.cjs.map → error-dialog-DO0Bb-pi.cjs.map} +1 -1
- package/dist/error-dialog-D_4WL-Hj.js.map +1 -1
- package/dist/flex-ILvQrYMJ.js.map +1 -1
- package/dist/{flex-CNA_SId-.cjs → flex-yTyoLpgH.cjs} +2 -2
- package/dist/{flex-CNA_SId-.cjs.map → flex-yTyoLpgH.cjs.map} +1 -1
- package/dist/form-CA4hhSV5.js.map +1 -1
- package/dist/{form-CYZkgobJ.cjs → form-C_PCHrpx.cjs} +2 -2
- package/dist/{form-CYZkgobJ.cjs.map → form-C_PCHrpx.cjs.map} +1 -1
- package/dist/form-wrapper-D-2Uz518.js.map +1 -1
- package/dist/{form-wrapper-BYbwt1zC.cjs → form-wrapper-FYiHHas7.cjs} +2 -2
- package/dist/{form-wrapper-BYbwt1zC.cjs.map → form-wrapper-FYiHHas7.cjs.map} +1 -1
- package/dist/forms/combobox-field.cjs +42 -0
- package/dist/forms/combobox-field.cjs.map +1 -0
- package/dist/forms/combobox-field.d.cts +28 -0
- package/dist/forms/combobox-field.d.ts +28 -0
- package/dist/forms/combobox-field.js +42 -0
- package/dist/forms/combobox-field.js.map +1 -0
- package/dist/forms/date-field.cjs +2 -0
- package/dist/forms/date-field.cjs.map +1 -0
- package/dist/forms/date-field.d.cts +22 -0
- package/dist/forms/date-field.d.ts +22 -0
- package/dist/forms/date-field.js +2 -0
- package/dist/forms/date-field.js.map +1 -0
- package/dist/forms/form-wrapper.cjs +1 -1
- package/dist/forms/form-wrapper.d.cts +2 -1
- package/dist/forms/form-wrapper.d.ts +2 -1
- package/dist/forms/multi-select-field.cjs +2 -0
- package/dist/forms/multi-select-field.cjs.map +1 -0
- package/dist/forms/multi-select-field.d.cts +30 -0
- package/dist/forms/multi-select-field.d.ts +30 -0
- package/dist/forms/multi-select-field.js +2 -0
- package/dist/forms/multi-select-field.js.map +1 -0
- package/dist/forms/number-field.cjs +2 -0
- package/dist/forms/number-field.cjs.map +1 -0
- package/dist/forms/number-field.d.cts +28 -0
- package/dist/forms/number-field.d.ts +28 -0
- package/dist/forms/number-field.js +2 -0
- package/dist/forms/number-field.js.map +1 -0
- package/dist/forms/password-field.cjs +2 -0
- package/dist/forms/password-field.cjs.map +1 -0
- package/dist/forms/password-field.d.cts +23 -0
- package/dist/forms/password-field.d.ts +23 -0
- package/dist/forms/password-field.js +2 -0
- package/dist/forms/password-field.js.map +1 -0
- package/dist/forms/select-field.cjs +2 -0
- package/dist/forms/select-field.cjs.map +1 -0
- package/dist/forms/select-field.d.cts +33 -0
- package/dist/forms/select-field.d.ts +33 -0
- package/dist/forms/select-field.js +2 -0
- package/dist/forms/select-field.js.map +1 -0
- package/dist/forms/switch-field.cjs +2 -0
- package/dist/forms/switch-field.cjs.map +1 -0
- package/dist/forms/switch-field.d.cts +19 -0
- package/dist/forms/switch-field.d.ts +19 -0
- package/dist/forms/switch-field.js +2 -0
- package/dist/forms/switch-field.js.map +1 -0
- package/dist/forms/text-field.cjs +2 -0
- package/dist/forms/text-field.cjs.map +1 -0
- package/dist/forms/text-field.d.cts +31 -0
- package/dist/forms/text-field.d.ts +31 -0
- package/dist/forms/text-field.js +2 -0
- package/dist/forms/text-field.js.map +1 -0
- package/dist/forms/textarea-field.cjs +2 -0
- package/dist/forms/textarea-field.cjs.map +1 -0
- package/dist/forms/textarea-field.d.cts +27 -0
- package/dist/forms/textarea-field.d.ts +27 -0
- package/dist/forms/textarea-field.js +2 -0
- package/dist/forms/textarea-field.js.map +1 -0
- package/dist/{input-DXEBB91E.cjs → input-C8Sebaue.cjs} +2 -2
- package/dist/{input-DXEBB91E.cjs.map → input-C8Sebaue.cjs.map} +1 -1
- package/dist/{input-D0Phuz25.d.cts → input-DlRU8OGl.d.cts} +3 -2
- package/dist/{input-FzKbxUq2.js → input-Dmaq3fzf.js} +1 -1
- package/dist/{input-FzKbxUq2.js.map → input-Dmaq3fzf.js.map} +1 -1
- package/dist/{input-tHIKXxVS.d.ts → input-yduNlg8y.d.ts} +3 -2
- package/dist/label-Cxbctr6x.js.map +1 -1
- package/dist/{label-CunjD1rx.cjs → label-i858Jr98.cjs} +2 -2
- package/dist/{label-CunjD1rx.cjs.map → label-i858Jr98.cjs.map} +1 -1
- package/dist/layouts/flex.cjs +1 -1
- package/dist/layouts/flex.d.cts +13 -2
- package/dist/layouts/flex.d.ts +13 -2
- package/dist/layouts/main/index.cjs +1 -1
- package/dist/layouts/main/index.cjs.map +1 -1
- package/dist/layouts/main/index.d.cts +14 -4
- package/dist/layouts/main/index.d.ts +14 -4
- package/dist/layouts/main/index.js +1 -1
- package/dist/layouts/main/index.js.map +1 -1
- package/dist/multi-select-Bbv0Z0TP.js +2 -0
- package/dist/multi-select-Bbv0Z0TP.js.map +1 -0
- package/dist/multi-select-EqlnkO5V.cjs +2 -0
- package/dist/multi-select-EqlnkO5V.cjs.map +1 -0
- package/dist/paragraph-Bey03JkA.js.map +1 -1
- package/dist/{paragraph-ZxI8zxuf.cjs → paragraph-DWQ0PZt_.cjs} +2 -2
- package/dist/{paragraph-ZxI8zxuf.cjs.map → paragraph-DWQ0PZt_.cjs.map} +1 -1
- package/dist/popover-B8j86VQv.js +2 -0
- package/dist/popover-B8j86VQv.js.map +1 -0
- package/dist/popover-CAokgoc_.cjs +2 -0
- package/dist/popover-CAokgoc_.cjs.map +1 -0
- package/dist/{progress-BnnOfAZN.cjs → progress-CHh9eRZi.cjs} +2 -2
- package/dist/{progress-BnnOfAZN.cjs.map → progress-CHh9eRZi.cjs.map} +1 -1
- package/dist/{progress-CBccqUUJ.js → progress-CeXKNvJc.js} +1 -1
- package/dist/{progress-CBccqUUJ.js.map → progress-CeXKNvJc.js.map} +1 -1
- package/dist/{refresh-BHt_h3N_.js → refresh-B__T7OFC.js} +1 -1
- package/dist/{refresh-BHt_h3N_.js.map → refresh-B__T7OFC.js.map} +1 -1
- package/dist/{refresh-DrolZxuC.cjs → refresh-BuL5nDf9.cjs} +2 -2
- package/dist/{refresh-DrolZxuC.cjs.map → refresh-BuL5nDf9.cjs.map} +1 -1
- package/dist/{scroll-area-Bdb_LSFF.js → scroll-area-C0KQbcG0.js} +1 -1
- package/dist/{scroll-area-Bdb_LSFF.js.map → scroll-area-C0KQbcG0.js.map} +1 -1
- package/dist/{scroll-area-DWWpaz5j.cjs → scroll-area-fNeFxa8L.cjs} +2 -2
- package/dist/{scroll-area-DWWpaz5j.cjs.map → scroll-area-fNeFxa8L.cjs.map} +1 -1
- package/dist/{search-input-L2sq0eB0.js → search-input-BGmx8sXy.js} +2 -2
- package/dist/{search-input-L2sq0eB0.js.map → search-input-BGmx8sXy.js.map} +1 -1
- package/dist/{search-input-Bf4-FeWu.cjs → search-input-CWCcWgmA.cjs} +2 -2
- package/dist/{search-input-Bf4-FeWu.cjs.map → search-input-CWCcWgmA.cjs.map} +1 -1
- package/dist/{select-CWUsisI0.js → select-4IO3vAjO.js} +1 -1
- package/dist/{select-CWUsisI0.js.map → select-4IO3vAjO.js.map} +1 -1
- package/dist/{select-ZSyt5zCe.cjs → select-UsiicIRo.cjs} +2 -2
- package/dist/{select-ZSyt5zCe.cjs.map → select-UsiicIRo.cjs.map} +1 -1
- package/dist/{separator-2cwfp8qT.d.ts → separator-C4XPc_2Y.d.cts} +3 -2
- package/dist/{separator-DTB3sDNG.cjs → separator-D4iTmsID.cjs} +2 -2
- package/dist/{separator-DTB3sDNG.cjs.map → separator-D4iTmsID.cjs.map} +1 -1
- package/dist/{separator-BpsL0PlX.js → separator-DMdqEz29.js} +1 -1
- package/dist/{separator-BpsL0PlX.js.map → separator-DMdqEz29.js.map} +1 -1
- package/dist/{separator-COXs-I-Q.d.cts → separator-o7tKOtGF.d.ts} +3 -2
- package/dist/{sheet-C8r2QGpq.js → sheet-2JqHfdYi.js} +1 -1
- package/dist/{sheet-C8r2QGpq.js.map → sheet-2JqHfdYi.js.map} +1 -1
- package/dist/{sheet-CCwbAaA6.cjs → sheet-Dr-a3-o2.cjs} +2 -2
- package/dist/{sheet-CCwbAaA6.cjs.map → sheet-Dr-a3-o2.cjs.map} +1 -1
- package/dist/{sidebar-C166f_9B.js → sidebar-COBzB7S8.js} +2 -2
- package/dist/{sidebar-C166f_9B.js.map → sidebar-COBzB7S8.js.map} +1 -1
- package/dist/{sidebar-BLPMNltJ.cjs → sidebar-gXuaHBie.cjs} +2 -2
- package/dist/{sidebar-BLPMNltJ.cjs.map → sidebar-gXuaHBie.cjs.map} +1 -1
- package/dist/{skeleton-m3giaF4T.cjs → skeleton-BTQm_mtV.cjs} +2 -2
- package/dist/{skeleton-m3giaF4T.cjs.map → skeleton-BTQm_mtV.cjs.map} +1 -1
- package/dist/{skeleton-DYmX0k94.js → skeleton-D1_Brnl9.js} +1 -1
- package/dist/{skeleton-DYmX0k94.js.map → skeleton-D1_Brnl9.js.map} +1 -1
- package/dist/switch-BlK-TC1h.js +2 -0
- package/dist/switch-BlK-TC1h.js.map +1 -0
- package/dist/switch-CoP3UwNk.cjs +2 -0
- package/dist/switch-CoP3UwNk.cjs.map +1 -0
- package/dist/table/index.cjs +1 -1
- package/dist/table/index.cjs.map +1 -1
- package/dist/table/index.d.cts +2 -1
- package/dist/table/index.d.ts +2 -1
- package/dist/table/index.js +1 -1
- package/dist/table/index.js.map +1 -1
- package/dist/{table-BSeev7T0.cjs → table-CFqnfTKO.cjs} +2 -2
- package/dist/{table-BSeev7T0.cjs.map → table-CFqnfTKO.cjs.map} +1 -1
- package/dist/{table-BvA64mE8.js → table-DrnU8YJP.js} +1 -1
- package/dist/{table-BvA64mE8.js.map → table-DrnU8YJP.js.map} +1 -1
- package/dist/textarea-Dz6npuI4.cjs +2 -0
- package/dist/textarea-Dz6npuI4.cjs.map +1 -0
- package/dist/textarea-dM1DYNfF.js +2 -0
- package/dist/textarea-dM1DYNfF.js.map +1 -0
- package/dist/{title-DTkABsIG.js → title-CA6PvqiD.js} +1 -1
- package/dist/{title-DTkABsIG.js.map → title-CA6PvqiD.js.map} +1 -1
- package/dist/{title-xsPZpQpb.cjs → title-CIQdEGOd.cjs} +2 -2
- package/dist/{title-xsPZpQpb.cjs.map → title-CIQdEGOd.cjs.map} +1 -1
- package/dist/toggle-BCSHdzP0.d.cts +20 -0
- package/dist/{toggle-D_MDMruK.js → toggle-CHJ2edke.js} +1 -1
- package/dist/{toggle-D_MDMruK.js.map → toggle-CHJ2edke.js.map} +1 -1
- package/dist/{toggle-CfL3GVe2.cjs → toggle-CzMYdDvC.cjs} +2 -2
- package/dist/{toggle-CfL3GVe2.cjs.map → toggle-CzMYdDvC.cjs.map} +1 -1
- package/dist/toggle-D42pqCTD.d.ts +20 -0
- package/dist/tooltip-DZ2Shzgg.d.ts +24 -0
- package/dist/tooltip-Dn8AOhc4.d.cts +24 -0
- package/dist/tooltip-Dzyf5smh.js.map +1 -1
- package/dist/{tooltip-Beb-_EPp.cjs → tooltip-MgToVOzy.cjs} +2 -2
- package/dist/{tooltip-Beb-_EPp.cjs.map → tooltip-MgToVOzy.cjs.map} +1 -1
- package/dist/{types-DLrIc2fL.d.ts → types-CmcNT14g.d.ts} +1 -1
- package/dist/types-CrbWxjnp.cjs.map +1 -1
- package/dist/types-DaIHddx7.js.map +1 -1
- package/dist/typography/paragraph.cjs +1 -1
- package/dist/typography/paragraph.d.cts +2 -1
- package/dist/typography/paragraph.d.ts +2 -1
- package/dist/typography/title.cjs +1 -1
- package/dist/typography/title.d.cts +3 -1
- package/dist/typography/title.d.ts +3 -1
- package/dist/typography/title.js +1 -1
- package/dist/ui/alert-dialog.cjs +1 -1
- package/dist/ui/alert-dialog.d.cts +12 -11
- package/dist/ui/alert-dialog.d.ts +12 -11
- package/dist/ui/alert.cjs +1 -1
- package/dist/ui/alert.cjs.map +1 -1
- package/dist/ui/alert.d.cts +8 -4
- package/dist/ui/alert.d.ts +8 -4
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/aspect-ratio.cjs +1 -1
- package/dist/ui/aspect-ratio.cjs.map +1 -1
- package/dist/ui/aspect-ratio.d.cts +2 -1
- package/dist/ui/aspect-ratio.d.ts +2 -1
- package/dist/ui/aspect-ratio.js.map +1 -1
- package/dist/ui/avatar.cjs +1 -1
- package/dist/ui/avatar.cjs.map +1 -1
- package/dist/ui/avatar.d.cts +4 -3
- package/dist/ui/avatar.d.ts +4 -3
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge.cjs +1 -1
- package/dist/ui/badge.d.cts +8 -2
- package/dist/ui/badge.d.ts +8 -2
- package/dist/ui/breadcrumb.cjs +1 -1
- package/dist/ui/breadcrumb.cjs.map +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -7
- package/dist/ui/breadcrumb.d.ts +8 -7
- package/dist/ui/breadcrumb.js.map +1 -1
- 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.js +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.js +1 -1
- package/dist/ui/calendar.cjs +1 -2
- package/dist/ui/calendar.d.cts +4 -3
- package/dist/ui/calendar.d.ts +4 -3
- package/dist/ui/calendar.js +1 -2
- package/dist/ui/card.cjs +1 -1
- package/dist/ui/card.d.cts +8 -7
- package/dist/ui/card.d.ts +8 -7
- package/dist/ui/carousel.cjs +1 -1
- package/dist/ui/carousel.cjs.map +1 -1
- package/dist/ui/carousel.d.cts +7 -6
- package/dist/ui/carousel.d.ts +7 -6
- package/dist/ui/carousel.js.map +1 -1
- package/dist/ui/collapsible.cjs +1 -1
- package/dist/ui/collapsible.cjs.map +1 -1
- package/dist/ui/collapsible.d.cts +4 -3
- package/dist/ui/collapsible.d.ts +4 -3
- package/dist/ui/collapsible.js.map +1 -1
- 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 -1
- package/dist/ui/context-menu.cjs.map +1 -1
- package/dist/ui/context-menu.d.cts +16 -15
- package/dist/ui/context-menu.d.ts +16 -15
- package/dist/ui/context-menu.js.map +1 -1
- 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/dropdown-menu.cjs +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -15
- package/dist/ui/dropdown-menu.d.ts +16 -15
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/file-uploader.cjs +1 -1
- package/dist/ui/file-uploader.cjs.map +1 -1
- package/dist/ui/file-uploader.d.cts +2 -1
- package/dist/ui/file-uploader.d.ts +2 -1
- package/dist/ui/file-uploader.js +1 -1
- package/dist/ui/file-uploader.js.map +1 -1
- package/dist/ui/form.cjs +1 -1
- package/dist/ui/form.d.cts +23 -8
- package/dist/ui/form.d.ts +23 -8
- package/dist/ui/hover-card.cjs +1 -1
- package/dist/ui/hover-card.cjs.map +1 -1
- package/dist/ui/hover-card.d.cts +4 -3
- package/dist/ui/hover-card.d.ts +4 -3
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/input-otp.cjs +1 -1
- package/dist/ui/input-otp.cjs.map +1 -1
- package/dist/ui/input-otp.d.cts +5 -4
- package/dist/ui/input-otp.d.ts +5 -4
- package/dist/ui/input-otp.js.map +1 -1
- 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 +3 -2
- package/dist/ui/inputs/search-input.d.ts +3 -2
- package/dist/ui/inputs/search-input.js +1 -1
- package/dist/ui/label.cjs +1 -1
- package/dist/ui/label.d.cts +2 -1
- package/dist/ui/label.d.ts +2 -1
- package/dist/ui/menubar.cjs +1 -1
- package/dist/ui/menubar.cjs.map +1 -1
- package/dist/ui/menubar.d.cts +17 -16
- package/dist/ui/menubar.d.ts +17 -16
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/multi-select.cjs +1 -2
- package/dist/ui/multi-select.d.cts +61 -1
- package/dist/ui/multi-select.d.ts +61 -1
- package/dist/ui/multi-select.js +1 -2
- package/dist/ui/navigation-menu.cjs +1 -1
- package/dist/ui/navigation-menu.cjs.map +1 -1
- package/dist/ui/navigation-menu.d.cts +11 -9
- package/dist/ui/navigation-menu.d.ts +11 -9
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/pagination.cjs +1 -1
- package/dist/ui/pagination.cjs.map +1 -1
- package/dist/ui/pagination.d.cts +9 -8
- package/dist/ui/pagination.d.ts +9 -8
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/popover.cjs +1 -2
- package/dist/ui/popover.d.cts +5 -4
- package/dist/ui/popover.d.ts +5 -4
- package/dist/ui/popover.js +1 -2
- package/dist/ui/progress.cjs +1 -1
- package/dist/ui/progress.d.cts +2 -1
- package/dist/ui/progress.d.ts +2 -1
- package/dist/ui/progress.js +1 -1
- package/dist/ui/radio-group.cjs +1 -1
- package/dist/ui/radio-group.cjs.map +1 -1
- package/dist/ui/radio-group.d.cts +3 -2
- package/dist/ui/radio-group.d.ts +3 -2
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/resizable.cjs +1 -1
- package/dist/ui/resizable.cjs.map +1 -1
- package/dist/ui/resizable.d.cts +4 -3
- package/dist/ui/resizable.d.ts +4 -3
- package/dist/ui/resizable.js.map +1 -1
- package/dist/ui/scroll-area.cjs +1 -1
- package/dist/ui/scroll-area.d.cts +3 -2
- package/dist/ui/scroll-area.d.ts +3 -2
- package/dist/ui/scroll-area.js +1 -1
- package/dist/ui/select.cjs +1 -1
- package/dist/ui/select.d.cts +11 -10
- package/dist/ui/select.d.ts +11 -10
- 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 +9 -8
- package/dist/ui/sheet.d.ts +9 -8
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.d.cts +43 -29
- package/dist/ui/sidebar.d.ts +43 -29
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.cjs +1 -1
- package/dist/ui/skeleton.d.cts +2 -1
- package/dist/ui/skeleton.d.ts +2 -1
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.cjs +1 -1
- package/dist/ui/slider.cjs.map +1 -1
- package/dist/ui/slider.d.cts +2 -1
- package/dist/ui/slider.d.ts +2 -1
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/sonner.cjs +1 -1
- package/dist/ui/sonner.cjs.map +1 -1
- package/dist/ui/sonner.d.cts +3 -1
- package/dist/ui/sonner.d.ts +3 -1
- package/dist/ui/sonner.js.map +1 -1
- package/dist/ui/switch.cjs +1 -2
- package/dist/ui/switch.d.cts +2 -1
- package/dist/ui/switch.d.ts +2 -1
- package/dist/ui/switch.js +1 -2
- package/dist/ui/table.cjs +1 -1
- package/dist/ui/table.d.cts +9 -8
- package/dist/ui/table.d.ts +9 -8
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.cjs +1 -1
- package/dist/ui/tabs.cjs.map +1 -1
- package/dist/ui/tabs.d.cts +5 -4
- package/dist/ui/tabs.d.ts +5 -4
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/textarea.cjs +1 -2
- package/dist/ui/textarea.d.cts +2 -1
- package/dist/ui/textarea.d.ts +2 -1
- package/dist/ui/textarea.js +1 -2
- package/dist/ui/toggle-group.cjs +1 -1
- package/dist/ui/toggle-group.cjs.map +1 -1
- package/dist/ui/toggle-group.d.cts +4 -3
- package/dist/ui/toggle-group.d.ts +4 -3
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle-group.js.map +1 -1
- 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 -1
- package/dist/utils-D9AH0PUV.js.map +1 -1
- package/dist/utils-DaJ1XZgX.cjs +2 -0
- package/dist/{utils-BsjVK5EW.cjs.map → utils-DaJ1XZgX.cjs.map} +1 -1
- 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/button-D_E_bNRb.d.ts +0 -18
- package/dist/button-YHI7I64h.d.cts +0 -18
- package/dist/chunk-CUT6urMc.cjs +0 -1
- package/dist/toggle-BVkMTVAz.d.ts +0 -15
- package/dist/toggle-CW-ZnYMy.d.cts +0 -15
- package/dist/tooltip-Cjuu_Ld4.d.ts +0 -23
- package/dist/tooltip-Dk4HsZVR.d.cts +0 -23
- package/dist/ui/calendar.cjs.map +0 -1
- package/dist/ui/calendar.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/popover.cjs.map +0 -1
- package/dist/ui/popover.js.map +0 -1
- package/dist/ui/switch.cjs.map +0 -1
- package/dist/ui/switch.js.map +0 -1
- package/dist/ui/textarea.cjs.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/utils-BsjVK5EW.cjs +0 -2
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
6
|
+
|
|
7
|
+
import { cn } from "@/lib/utils";
|
|
8
|
+
|
|
9
|
+
function NavigationMenu({
|
|
10
|
+
className,
|
|
11
|
+
children,
|
|
12
|
+
viewport = true,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
15
|
+
viewport?: boolean;
|
|
16
|
+
}) {
|
|
17
|
+
return (
|
|
18
|
+
<NavigationMenuPrimitive.Root
|
|
19
|
+
data-slot="navigation-menu"
|
|
20
|
+
data-viewport={viewport}
|
|
21
|
+
className={cn(
|
|
22
|
+
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
23
|
+
className,
|
|
24
|
+
)}
|
|
25
|
+
{...props}
|
|
26
|
+
>
|
|
27
|
+
{children}
|
|
28
|
+
{viewport && <NavigationMenuViewport />}
|
|
29
|
+
</NavigationMenuPrimitive.Root>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function NavigationMenuList({
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.List>) {
|
|
37
|
+
return (
|
|
38
|
+
<NavigationMenuPrimitive.List
|
|
39
|
+
data-slot="navigation-menu-list"
|
|
40
|
+
className={cn(
|
|
41
|
+
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
42
|
+
className,
|
|
43
|
+
)}
|
|
44
|
+
{...props}
|
|
45
|
+
/>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function NavigationMenuItem({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.Item>) {
|
|
53
|
+
return (
|
|
54
|
+
<NavigationMenuPrimitive.Item
|
|
55
|
+
data-slot="navigation-menu-item"
|
|
56
|
+
className={cn("relative", className)}
|
|
57
|
+
{...props}
|
|
58
|
+
/>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const navigationMenuTriggerStyle = cva(
|
|
63
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1",
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
function NavigationMenuTrigger({
|
|
67
|
+
className,
|
|
68
|
+
children,
|
|
69
|
+
...props
|
|
70
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>) {
|
|
71
|
+
return (
|
|
72
|
+
<NavigationMenuPrimitive.Trigger
|
|
73
|
+
data-slot="navigation-menu-trigger"
|
|
74
|
+
className={cn(navigationMenuTriggerStyle(), "group", className)}
|
|
75
|
+
{...props}
|
|
76
|
+
>
|
|
77
|
+
{children}{" "}
|
|
78
|
+
<ChevronDownIcon
|
|
79
|
+
className="relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180"
|
|
80
|
+
aria-hidden="true"
|
|
81
|
+
/>
|
|
82
|
+
</NavigationMenuPrimitive.Trigger>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function NavigationMenuContent({
|
|
87
|
+
className,
|
|
88
|
+
...props
|
|
89
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.Content>) {
|
|
90
|
+
return (
|
|
91
|
+
<NavigationMenuPrimitive.Content
|
|
92
|
+
data-slot="navigation-menu-content"
|
|
93
|
+
className={cn(
|
|
94
|
+
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
95
|
+
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
96
|
+
className,
|
|
97
|
+
)}
|
|
98
|
+
{...props}
|
|
99
|
+
/>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function NavigationMenuViewport({
|
|
104
|
+
className,
|
|
105
|
+
...props
|
|
106
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>) {
|
|
107
|
+
return (
|
|
108
|
+
<div
|
|
109
|
+
className={cn(
|
|
110
|
+
"absolute top-full left-0 isolate z-50 flex justify-center",
|
|
111
|
+
)}
|
|
112
|
+
>
|
|
113
|
+
<NavigationMenuPrimitive.Viewport
|
|
114
|
+
data-slot="navigation-menu-viewport"
|
|
115
|
+
className={cn(
|
|
116
|
+
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
117
|
+
className,
|
|
118
|
+
)}
|
|
119
|
+
{...props}
|
|
120
|
+
/>
|
|
121
|
+
</div>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function NavigationMenuLink({
|
|
126
|
+
className,
|
|
127
|
+
...props
|
|
128
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.Link>) {
|
|
129
|
+
return (
|
|
130
|
+
<NavigationMenuPrimitive.Link
|
|
131
|
+
data-slot="navigation-menu-link"
|
|
132
|
+
className={cn(
|
|
133
|
+
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
134
|
+
className,
|
|
135
|
+
)}
|
|
136
|
+
{...props}
|
|
137
|
+
/>
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function NavigationMenuIndicator({
|
|
142
|
+
className,
|
|
143
|
+
...props
|
|
144
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>) {
|
|
145
|
+
return (
|
|
146
|
+
<NavigationMenuPrimitive.Indicator
|
|
147
|
+
data-slot="navigation-menu-indicator"
|
|
148
|
+
className={cn(
|
|
149
|
+
"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
150
|
+
className,
|
|
151
|
+
)}
|
|
152
|
+
{...props}
|
|
153
|
+
>
|
|
154
|
+
<div className="bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" />
|
|
155
|
+
</NavigationMenuPrimitive.Indicator>
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export {
|
|
160
|
+
NavigationMenu,
|
|
161
|
+
NavigationMenuContent,
|
|
162
|
+
NavigationMenuIndicator,
|
|
163
|
+
NavigationMenuItem,
|
|
164
|
+
NavigationMenuLink,
|
|
165
|
+
NavigationMenuList,
|
|
166
|
+
NavigationMenuTrigger,
|
|
167
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
168
|
+
navigationMenuTriggerStyle,
|
|
169
|
+
NavigationMenuViewport,
|
|
170
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import {
|
|
4
|
+
ChevronLeftIcon,
|
|
5
|
+
ChevronRightIcon,
|
|
6
|
+
MoreHorizontalIcon,
|
|
7
|
+
} from "lucide-react";
|
|
8
|
+
|
|
9
|
+
import { Button, buttonVariants } from "@/components/ui/button";
|
|
10
|
+
import { cn } from "@/lib/utils";
|
|
11
|
+
|
|
12
|
+
function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
|
|
13
|
+
return (
|
|
14
|
+
<nav
|
|
15
|
+
role="navigation"
|
|
16
|
+
aria-label="pagination"
|
|
17
|
+
data-slot="pagination"
|
|
18
|
+
className={cn("mx-auto flex w-full justify-center", className)}
|
|
19
|
+
{...props}
|
|
20
|
+
/>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function PaginationContent({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: React.ComponentProps<"ul">) {
|
|
28
|
+
return (
|
|
29
|
+
<ul
|
|
30
|
+
data-slot="pagination-content"
|
|
31
|
+
className={cn("flex flex-row items-center gap-1", className)}
|
|
32
|
+
{...props}
|
|
33
|
+
/>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function PaginationItem({ ...props }: React.ComponentProps<"li">) {
|
|
38
|
+
return <li data-slot="pagination-item" {...props} />;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type PaginationLinkProps = {
|
|
42
|
+
isActive?: boolean;
|
|
43
|
+
} & Pick<React.ComponentProps<typeof Button>, "size"> &
|
|
44
|
+
React.ComponentProps<"a">;
|
|
45
|
+
|
|
46
|
+
function PaginationLink({
|
|
47
|
+
className,
|
|
48
|
+
isActive,
|
|
49
|
+
size = "icon",
|
|
50
|
+
...props
|
|
51
|
+
}: PaginationLinkProps) {
|
|
52
|
+
return (
|
|
53
|
+
<a
|
|
54
|
+
aria-current={isActive ? "page" : undefined}
|
|
55
|
+
data-slot="pagination-link"
|
|
56
|
+
data-active={isActive}
|
|
57
|
+
className={cn(
|
|
58
|
+
buttonVariants({
|
|
59
|
+
variant: isActive ? "outline" : "ghost",
|
|
60
|
+
size,
|
|
61
|
+
}),
|
|
62
|
+
className,
|
|
63
|
+
)}
|
|
64
|
+
{...props}
|
|
65
|
+
/>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function PaginationPrevious({
|
|
70
|
+
className,
|
|
71
|
+
...props
|
|
72
|
+
}: React.ComponentProps<typeof PaginationLink>) {
|
|
73
|
+
return (
|
|
74
|
+
<PaginationLink
|
|
75
|
+
aria-label="Go to previous page"
|
|
76
|
+
size="default"
|
|
77
|
+
className={cn("gap-1 px-2.5 sm:pl-2.5", className)}
|
|
78
|
+
{...props}
|
|
79
|
+
>
|
|
80
|
+
<ChevronLeftIcon />
|
|
81
|
+
<span className="hidden sm:block">Previous</span>
|
|
82
|
+
</PaginationLink>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function PaginationNext({
|
|
87
|
+
className,
|
|
88
|
+
...props
|
|
89
|
+
}: React.ComponentProps<typeof PaginationLink>) {
|
|
90
|
+
return (
|
|
91
|
+
<PaginationLink
|
|
92
|
+
aria-label="Go to next page"
|
|
93
|
+
size="default"
|
|
94
|
+
className={cn("gap-1 px-2.5 sm:pr-2.5", className)}
|
|
95
|
+
{...props}
|
|
96
|
+
>
|
|
97
|
+
<span className="hidden sm:block">Next</span>
|
|
98
|
+
<ChevronRightIcon />
|
|
99
|
+
</PaginationLink>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function PaginationEllipsis({
|
|
104
|
+
className,
|
|
105
|
+
...props
|
|
106
|
+
}: React.ComponentProps<"span">) {
|
|
107
|
+
return (
|
|
108
|
+
<span
|
|
109
|
+
aria-hidden
|
|
110
|
+
data-slot="pagination-ellipsis"
|
|
111
|
+
className={cn("flex size-9 items-center justify-center", className)}
|
|
112
|
+
{...props}
|
|
113
|
+
>
|
|
114
|
+
<MoreHorizontalIcon className="size-4" />
|
|
115
|
+
<span className="sr-only">More pages</span>
|
|
116
|
+
</span>
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export {
|
|
121
|
+
Pagination,
|
|
122
|
+
PaginationContent,
|
|
123
|
+
PaginationEllipsis,
|
|
124
|
+
PaginationItem,
|
|
125
|
+
PaginationLink,
|
|
126
|
+
PaginationNext,
|
|
127
|
+
PaginationPrevious,
|
|
128
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
4
|
+
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
|
|
7
|
+
function Popover({
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
|
|
10
|
+
return <PopoverPrimitive.Root data-slot="popover" {...props} />;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function PopoverTrigger({
|
|
14
|
+
...props
|
|
15
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {
|
|
16
|
+
return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function PopoverContent({
|
|
20
|
+
className,
|
|
21
|
+
align = "start",
|
|
22
|
+
sideOffset = 4,
|
|
23
|
+
children,
|
|
24
|
+
...props
|
|
25
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Content>) {
|
|
26
|
+
return (
|
|
27
|
+
<PopoverPrimitive.Portal>
|
|
28
|
+
<PopoverPrimitive.Content
|
|
29
|
+
data-slot="popover-content"
|
|
30
|
+
align={align}
|
|
31
|
+
sideOffset={sideOffset}
|
|
32
|
+
className={cn(
|
|
33
|
+
"bg-popover",
|
|
34
|
+
"text-popover-foreground",
|
|
35
|
+
"z-50 w-72",
|
|
36
|
+
"origin-(--radix-popover-content-transform-origin)",
|
|
37
|
+
"rounded-md border p-4 shadow-md outline-none",
|
|
38
|
+
"data-[state=open]:animate-in",
|
|
39
|
+
"data-[state=open]:fade-in-0",
|
|
40
|
+
"data-[state=open]:zoom-in-95",
|
|
41
|
+
"data-[state=closed]:animate-out",
|
|
42
|
+
"data-[state=closed]:fade-out-0",
|
|
43
|
+
"data-[state=closed]:zoom-out-95",
|
|
44
|
+
"data-[side=bottom]:slide-in-from-top-2",
|
|
45
|
+
"data-[side=left]:slide-in-from-right-2",
|
|
46
|
+
"data-[side=right]:slide-in-from-left-2",
|
|
47
|
+
"data-[side=top]:slide-in-from-bottom-2",
|
|
48
|
+
className,
|
|
49
|
+
)}
|
|
50
|
+
{...props}
|
|
51
|
+
>
|
|
52
|
+
{children}
|
|
53
|
+
</PopoverPrimitive.Content>
|
|
54
|
+
</PopoverPrimitive.Portal>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function PopoverAnchor({
|
|
59
|
+
...props
|
|
60
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {
|
|
61
|
+
return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
4
|
+
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
|
|
7
|
+
function Progress({
|
|
8
|
+
className,
|
|
9
|
+
value,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof ProgressPrimitive.Root>) {
|
|
12
|
+
return (
|
|
13
|
+
<ProgressPrimitive.Root
|
|
14
|
+
data-slot="progress"
|
|
15
|
+
className={cn(
|
|
16
|
+
"bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
|
|
17
|
+
className,
|
|
18
|
+
)}
|
|
19
|
+
{...props}
|
|
20
|
+
>
|
|
21
|
+
<ProgressPrimitive.Indicator
|
|
22
|
+
data-slot="progress-indicator"
|
|
23
|
+
className="bg-primary size-full flex-1 transition-all"
|
|
24
|
+
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
|
|
25
|
+
/>
|
|
26
|
+
</ProgressPrimitive.Root>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { Progress };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
4
|
+
import { CircleIcon } from "lucide-react";
|
|
5
|
+
|
|
6
|
+
import { cn } from "@/lib/utils";
|
|
7
|
+
|
|
8
|
+
function RadioGroup({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {
|
|
12
|
+
return (
|
|
13
|
+
<RadioGroupPrimitive.Root
|
|
14
|
+
data-slot="radio-group"
|
|
15
|
+
className={cn("grid gap-3", className)}
|
|
16
|
+
{...props}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function RadioGroupItem({
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {
|
|
25
|
+
return (
|
|
26
|
+
<RadioGroupPrimitive.Item
|
|
27
|
+
data-slot="radio-group-item"
|
|
28
|
+
className={cn(
|
|
29
|
+
"border-input text-primary",
|
|
30
|
+
"focus-visible:border-ring",
|
|
31
|
+
"focus-visible:ring-ring/50",
|
|
32
|
+
"aria-invalid:ring-destructive/20",
|
|
33
|
+
"dark:aria-invalid:ring-destructive/40",
|
|
34
|
+
"aria-invalid:border-destructive",
|
|
35
|
+
"dark:bg-input/30",
|
|
36
|
+
"aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-all outline-none focus-visible:ring-[3px]",
|
|
37
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
38
|
+
className,
|
|
39
|
+
)}
|
|
40
|
+
{...props}
|
|
41
|
+
>
|
|
42
|
+
<RadioGroupPrimitive.Indicator
|
|
43
|
+
data-slot="radio-group-indicator"
|
|
44
|
+
className="bg-primary relative flex items-center justify-center"
|
|
45
|
+
>
|
|
46
|
+
<div className="bg-primary absolute size-4 rounded-full" />
|
|
47
|
+
<CircleIcon className="fill-secondary absolute top-1/2 left-1/2 size-2 -translate-1/2" />
|
|
48
|
+
</RadioGroupPrimitive.Indicator>
|
|
49
|
+
</RadioGroupPrimitive.Item>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { GripVerticalIcon } from "lucide-react";
|
|
4
|
+
import * as ResizablePrimitive from "react-resizable-panels";
|
|
5
|
+
|
|
6
|
+
import { cn } from "@/lib/utils";
|
|
7
|
+
|
|
8
|
+
function ResizablePanelGroup({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {
|
|
12
|
+
return (
|
|
13
|
+
<ResizablePrimitive.PanelGroup
|
|
14
|
+
data-slot="resizable-panel-group"
|
|
15
|
+
className={cn(
|
|
16
|
+
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
17
|
+
className,
|
|
18
|
+
)}
|
|
19
|
+
{...props}
|
|
20
|
+
/>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function ResizablePanel({
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<typeof ResizablePrimitive.Panel>) {
|
|
27
|
+
return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function ResizableHandle({
|
|
31
|
+
withHandle,
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
35
|
+
withHandle?: boolean;
|
|
36
|
+
}) {
|
|
37
|
+
return (
|
|
38
|
+
<ResizablePrimitive.PanelResizeHandle
|
|
39
|
+
data-slot="resizable-handle"
|
|
40
|
+
className={cn(
|
|
41
|
+
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
42
|
+
className,
|
|
43
|
+
)}
|
|
44
|
+
{...props}
|
|
45
|
+
>
|
|
46
|
+
{withHandle && (
|
|
47
|
+
<div className="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border">
|
|
48
|
+
<GripVerticalIcon className="size-2.5" />
|
|
49
|
+
</div>
|
|
50
|
+
)}
|
|
51
|
+
</ResizablePrimitive.PanelResizeHandle>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
4
|
+
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
|
|
7
|
+
function ScrollArea({
|
|
8
|
+
className,
|
|
9
|
+
children,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
|
|
12
|
+
return (
|
|
13
|
+
<ScrollAreaPrimitive.Root
|
|
14
|
+
data-slot="scroll-area"
|
|
15
|
+
className={cn("relative overflow-hidden", className)}
|
|
16
|
+
{...props}
|
|
17
|
+
>
|
|
18
|
+
<ScrollAreaPrimitive.Viewport className="size-full rounded-[inherit]">
|
|
19
|
+
{children}
|
|
20
|
+
</ScrollAreaPrimitive.Viewport>
|
|
21
|
+
<ScrollBar />
|
|
22
|
+
<ScrollAreaPrimitive.Corner />
|
|
23
|
+
</ScrollAreaPrimitive.Root>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function ScrollBar({
|
|
28
|
+
className,
|
|
29
|
+
orientation = "vertical",
|
|
30
|
+
...props
|
|
31
|
+
}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {
|
|
32
|
+
return (
|
|
33
|
+
<ScrollAreaPrimitive.ScrollAreaScrollbar
|
|
34
|
+
data-slot="scroll-area-scrollbar"
|
|
35
|
+
orientation={orientation}
|
|
36
|
+
className={cn(
|
|
37
|
+
"flex touch-none p-px transition-colors select-none",
|
|
38
|
+
orientation === "vertical" &&
|
|
39
|
+
"h-full w-2.5 border-l border-l-transparent",
|
|
40
|
+
orientation === "horizontal" &&
|
|
41
|
+
"h-2.5 flex-col border-t border-t-transparent",
|
|
42
|
+
className,
|
|
43
|
+
)}
|
|
44
|
+
{...props}
|
|
45
|
+
>
|
|
46
|
+
<ScrollAreaPrimitive.ScrollAreaThumb className="bg-border relative flex-1 rounded-full" />
|
|
47
|
+
</ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { ScrollArea, ScrollBar };
|