@customafk/lunas-ui 0.2.5 → 0.2.7
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/README.md +39 -9
- package/ai-docs.md +419 -0
- package/dist/alert-CA1RS1CG.d.cts +88 -0
- package/dist/alert-DDL82_U3.d.mts +88 -0
- package/dist/alert-DIC1_ymv.cjs +2 -0
- package/dist/alert-DIC1_ymv.cjs.map +1 -0
- package/dist/alert-VP3giy31.mjs +2 -0
- package/dist/alert-VP3giy31.mjs.map +1 -0
- package/dist/avatar-CTS9-raY.cjs +2 -0
- package/dist/avatar-CTS9-raY.cjs.map +1 -0
- package/dist/avatar-DbxqvCjT.mjs +2 -0
- package/dist/avatar-DbxqvCjT.mjs.map +1 -0
- package/dist/badge-B8bw2UEY.mjs +2 -0
- package/dist/badge-B8bw2UEY.mjs.map +1 -0
- package/dist/badge-BFTGDsBm.d.cts +42 -0
- package/dist/badge-Cg0e-djv.d.mts +42 -0
- package/dist/badge-uQ0pIZbQ.cjs +2 -0
- package/dist/badge-uQ0pIZbQ.cjs.map +1 -0
- package/dist/button-Bn54lPVz.d.cts +174 -0
- package/dist/button-C6ybzxxj.mjs +2 -0
- package/dist/button-C6ybzxxj.mjs.map +1 -0
- package/dist/button-C76drZpd.d.mts +174 -0
- package/dist/{button-Cd7YtPlT.cjs → button-CwDT3m4m.cjs} +2 -2
- package/dist/button-CwDT3m4m.cjs.map +1 -0
- package/dist/button.variants-DeCyas1F.mjs +2 -0
- package/dist/button.variants-DeCyas1F.mjs.map +1 -0
- package/dist/button.variants-tnhb123u.cjs +2 -0
- package/dist/button.variants-tnhb123u.cjs.map +1 -0
- package/dist/calendar-CyAPpT2m.cjs +2 -0
- package/dist/calendar-CyAPpT2m.cjs.map +1 -0
- package/dist/calendar-JKxWM6AF.mjs +2 -0
- package/dist/calendar-JKxWM6AF.mjs.map +1 -0
- package/dist/cards/grid-product-card.cjs +1 -1
- package/dist/cards/grid-product-card.cjs.map +1 -1
- package/dist/cards/grid-product-card.d.cts +23 -0
- package/dist/cards/grid-product-card.d.mts +23 -0
- package/dist/cards/grid-product-card.mjs +1 -1
- package/dist/cards/grid-product-card.mjs.map +1 -1
- package/dist/cards/product-card.cjs +1 -1
- package/dist/cards/product-card.cjs.map +1 -1
- package/dist/cards/product-card.d.cts +23 -0
- package/dist/cards/product-card.d.mts +23 -0
- package/dist/cards/product-card.mjs +1 -1
- package/dist/cards/product-card.mjs.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 +16 -0
- package/dist/cards/simple-card.d.mts +18 -2
- package/dist/cards/simple-card.mjs +1 -1
- package/dist/cards/simple-card.mjs.map +1 -1
- package/dist/{checkbox-Bg2FiuQw.mjs → checkbox-DJEdYOjA.mjs} +2 -2
- package/dist/checkbox-DJEdYOjA.mjs.map +1 -0
- package/dist/{checkbox-C0fSWwmD.cjs → checkbox-RZrRNYP2.cjs} +2 -2
- package/dist/checkbox-RZrRNYP2.cjs.map +1 -0
- package/dist/close-BU0kWRVo.mjs +2 -0
- package/dist/{close-DfuHB7kq.mjs.map → close-BU0kWRVo.mjs.map} +1 -1
- package/dist/close-DXk_H3Gt.cjs +2 -0
- package/dist/{close-D_Ge7gnP.cjs.map → close-DXk_H3Gt.cjs.map} +1 -1
- package/dist/cms-layout-Dc4moos1.cjs +2 -0
- package/dist/cms-layout-Dc4moos1.cjs.map +1 -0
- package/dist/cms-layout-HfnOQS16.mjs +2 -0
- package/dist/cms-layout-HfnOQS16.mjs.map +1 -0
- package/dist/{command-IfPmQiyJ.cjs → command-SHd-d_o0.cjs} +2 -2
- package/dist/command-SHd-d_o0.cjs.map +1 -0
- package/dist/{command-Bma4ivZz.mjs → command-bpcnKEbR.mjs} +2 -2
- package/dist/command-bpcnKEbR.mjs.map +1 -0
- package/dist/data-display/country.cjs +1 -1
- package/dist/data-display/country.cjs.map +1 -1
- package/dist/data-display/country.d.cts +15 -3
- package/dist/data-display/country.d.mts +15 -3
- package/dist/data-display/country.mjs +1 -1
- package/dist/data-display/country.mjs.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.d.cts +31 -2
- package/dist/data-display/data-list.d.mts +31 -2
- package/dist/data-display/data-list.mjs +1 -1
- package/dist/data-display/data-list.mjs.map +1 -1
- package/dist/data-display/date-tooltip.cjs +1 -1
- package/dist/data-display/date-tooltip.cjs.map +1 -1
- package/dist/data-display/date-tooltip.d.cts +13 -2
- package/dist/data-display/date-tooltip.d.mts +13 -2
- package/dist/data-display/date-tooltip.mjs +1 -1
- package/dist/data-display/date-tooltip.mjs.map +1 -1
- package/dist/data-display/date.cjs +1 -1
- package/dist/data-display/date.d.cts +28 -2
- package/dist/data-display/date.d.mts +28 -2
- package/dist/data-display/date.mjs +1 -1
- package/dist/data-display/empty.cjs +1 -1
- package/dist/data-display/empty.cjs.map +1 -1
- package/dist/data-display/empty.d.cts +17 -3
- package/dist/data-display/empty.d.mts +17 -3
- package/dist/data-display/empty.mjs +1 -1
- package/dist/data-display/empty.mjs.map +1 -1
- package/dist/data-display/name.cjs +1 -1
- package/dist/data-display/name.cjs.map +1 -1
- package/dist/data-display/name.d.cts +12 -1
- package/dist/data-display/name.d.mts +12 -1
- package/dist/data-display/name.mjs +1 -1
- package/dist/data-display/name.mjs.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.d.cts +14 -2
- package/dist/data-display/phone-number.d.mts +14 -2
- package/dist/data-display/phone-number.mjs +1 -1
- package/dist/data-display/phone-number.mjs.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.cts +15 -3
- package/dist/data-display/role-badge.d.mts +15 -3
- package/dist/data-display/role-badge.mjs +1 -1
- package/dist/data-display/role-badge.mjs.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 +35 -6
- package/dist/data-display/statistic.d.mts +37 -8
- package/dist/data-display/statistic.mjs +1 -1
- package/dist/data-display/statistic.mjs.map +1 -1
- package/dist/data-display/user.cjs +1 -2
- package/dist/data-display/user.d.cts +14 -1
- package/dist/data-display/user.d.mts +14 -1
- package/dist/data-display/user.mjs +1 -2
- package/dist/date-CVz9xdCg.mjs +2 -0
- package/dist/date-CVz9xdCg.mjs.map +1 -0
- package/dist/date-a3RI5Pwo.cjs +2 -0
- package/dist/date-a3RI5Pwo.cjs.map +1 -0
- package/dist/dialog-BchwY6-N.mjs +2 -0
- package/dist/dialog-BchwY6-N.mjs.map +1 -0
- package/dist/dialog-CNhwBcEl.d.cts +90 -0
- package/dist/dialog-D6ygAOSV.d.mts +90 -0
- package/dist/dialog-o_68LQXd.cjs +2 -0
- package/dist/dialog-o_68LQXd.cjs.map +1 -0
- package/dist/dialogs/confirm-dialog.cjs +1 -1
- package/dist/dialogs/confirm-dialog.cjs.map +1 -1
- package/dist/dialogs/confirm-dialog.d.cts +129 -3
- package/dist/dialogs/confirm-dialog.d.mts +129 -3
- package/dist/dialogs/confirm-dialog.mjs +1 -1
- package/dist/dialogs/confirm-dialog.mjs.map +1 -1
- package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -2
- package/dist/dialogs/detail-dialog/components/sidebar.d.cts +73 -26
- package/dist/dialogs/detail-dialog/components/sidebar.d.mts +73 -26
- package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -2
- 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.d.cts +37 -8
- package/dist/dialogs/detail-dialog/index.d.mts +37 -8
- package/dist/dialogs/detail-dialog/index.mjs +1 -1
- package/dist/dialogs/detail-dialog/index.mjs.map +1 -1
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/error-dialog.cjs.map +1 -1
- package/dist/dialogs/error-dialog.d.cts +18 -4
- package/dist/dialogs/error-dialog.d.mts +18 -4
- package/dist/dialogs/error-dialog.mjs +1 -1
- package/dist/dialogs/error-dialog.mjs.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.d.cts +15 -3
- package/dist/dialogs/loading-dialog.d.mts +15 -3
- package/dist/dialogs/loading-dialog.mjs +1 -1
- package/dist/dialogs/loading-dialog.mjs.map +1 -1
- package/dist/dist-CIN9T2FB.mjs +2 -0
- package/dist/{dist-DP1ehOL8.mjs.map → dist-CIN9T2FB.mjs.map} +1 -1
- package/dist/dist-Dh8WwRa8.cjs +2 -0
- package/dist/{dist-Q1UyT_bc.cjs.map → dist-Dh8WwRa8.cjs.map} +1 -1
- package/dist/dropdown-menu-Ct9BLGfa.cjs +2 -0
- package/dist/dropdown-menu-Ct9BLGfa.cjs.map +1 -0
- package/dist/dropdown-menu-DWSfXhHo.mjs +2 -0
- package/dist/dropdown-menu-DWSfXhHo.mjs.map +1 -0
- package/dist/features/descriptions/index.cjs +1 -1
- package/dist/features/descriptions/index.cjs.map +1 -1
- package/dist/features/descriptions/index.d.cts +158 -19
- package/dist/features/descriptions/index.d.mts +158 -19
- package/dist/features/descriptions/index.mjs +1 -1
- package/dist/features/descriptions/index.mjs.map +1 -1
- package/dist/features/search-modal/index.cjs +1 -2
- package/dist/features/search-modal/index.d.cts +12 -2
- package/dist/features/search-modal/index.d.mts +12 -2
- package/dist/features/search-modal/index.mjs +1 -2
- package/dist/features/tables/index.cjs +1 -2
- package/dist/features/tables/index.d.cts +746 -24
- package/dist/features/tables/index.d.mts +746 -24
- package/dist/features/tables/index.mjs +1 -2
- package/dist/features/tanstack-form/index.cjs +1 -2
- package/dist/features/tanstack-form/index.d.cts +2 -1786
- package/dist/features/tanstack-form/index.d.mts +2 -1786
- package/dist/features/tanstack-form/index.mjs +1 -2
- package/dist/field-CXVnw75a.mjs +2 -0
- package/dist/field-CXVnw75a.mjs.map +1 -0
- package/dist/field-CppNvoxV.cjs +2 -0
- package/dist/field-CppNvoxV.cjs.map +1 -0
- package/dist/{flex-CeizYtXs.mjs → flex-BLMTj7Ev.mjs} +2 -2
- package/dist/flex-BLMTj7Ev.mjs.map +1 -0
- package/dist/{flex-BsoSgWFN.cjs → flex-BbbogTsZ.cjs} +2 -2
- package/dist/flex-BbbogTsZ.cjs.map +1 -0
- package/dist/heading-AKz5ewy-.cjs +2 -0
- package/dist/heading-AKz5ewy-.cjs.map +1 -0
- package/dist/heading-DN67djxs.mjs +2 -0
- package/dist/heading-DN67djxs.mjs.map +1 -0
- package/dist/image-B1Dm5LWk.cjs +2 -0
- package/dist/image-B1Dm5LWk.cjs.map +1 -0
- package/dist/image-BlzrSaoE.mjs +2 -0
- package/dist/image-BlzrSaoE.mjs.map +1 -0
- package/dist/index-75nSAiSe.d.mts +2030 -0
- package/dist/index-aTMCQQms.d.cts +2030 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +90 -0
- package/dist/index.d.mts +90 -0
- package/dist/index.mjs +1 -0
- package/dist/{input-DMjPBcJO.mjs → input-Cd0G5y-9.mjs} +2 -2
- package/dist/input-Cd0G5y-9.mjs.map +1 -0
- package/dist/{input-BoMJaF_N.cjs → input-Cl5VkKQh.cjs} +2 -2
- package/dist/input-Cl5VkKQh.cjs.map +1 -0
- package/dist/input-D5dtkW6g.d.mts +44 -0
- package/dist/input-t2hpPP2K.d.cts +44 -0
- package/dist/{label-BzfsTrVt.cjs → label-DkMTQ3Ch.cjs} +2 -2
- package/dist/label-DkMTQ3Ch.cjs.map +1 -0
- package/dist/label-OmlGaZ5h.mjs +2 -0
- package/dist/label-OmlGaZ5h.mjs.map +1 -0
- package/dist/layouts/cms-layout/index.cjs +1 -2
- package/dist/layouts/cms-layout/index.d.cts +66 -13
- package/dist/layouts/cms-layout/index.d.mts +66 -13
- package/dist/layouts/cms-layout/index.mjs +1 -2
- package/dist/layouts/flex.cjs +1 -1
- package/dist/layouts/flex.d.cts +91 -7
- package/dist/layouts/flex.d.mts +93 -9
- package/dist/layouts/flex.mjs +1 -1
- package/dist/layouts/grid.cjs +1 -1
- package/dist/layouts/grid.cjs.map +1 -1
- package/dist/layouts/grid.d.cts +14 -0
- package/dist/layouts/grid.d.mts +14 -0
- package/dist/layouts/grid.mjs +1 -1
- package/dist/layouts/grid.mjs.map +1 -1
- package/dist/layouts/payment-layout/index.cjs +1 -2
- package/dist/layouts/payment-layout/index.d.cts +35 -0
- package/dist/layouts/payment-layout/index.d.mts +35 -0
- package/dist/layouts/payment-layout/index.mjs +1 -2
- package/dist/pages/FeatureDeveloping.cjs +1 -1
- package/dist/pages/FeatureDeveloping.cjs.map +1 -1
- package/dist/pages/FeatureDeveloping.d.cts +21 -3
- package/dist/pages/FeatureDeveloping.d.mts +21 -3
- package/dist/pages/FeatureDeveloping.mjs +1 -1
- package/dist/pages/FeatureDeveloping.mjs.map +1 -1
- package/dist/pages/FeatureFixing.cjs +1 -1
- package/dist/pages/FeatureFixing.cjs.map +1 -1
- package/dist/pages/FeatureFixing.d.cts +21 -3
- package/dist/pages/FeatureFixing.d.mts +21 -3
- package/dist/pages/FeatureFixing.mjs +1 -1
- package/dist/pages/FeatureFixing.mjs.map +1 -1
- package/dist/pages/NotAuthorized.cjs +1 -1
- package/dist/pages/NotAuthorized.cjs.map +1 -1
- package/dist/pages/NotAuthorized.d.cts +21 -3
- package/dist/pages/NotAuthorized.d.mts +21 -3
- package/dist/pages/NotAuthorized.mjs +1 -1
- package/dist/pages/NotAuthorized.mjs.map +1 -1
- package/dist/pages/NotFound.cjs +1 -1
- package/dist/pages/NotFound.cjs.map +1 -1
- package/dist/pages/NotFound.d.cts +21 -3
- package/dist/pages/NotFound.d.mts +21 -3
- package/dist/pages/NotFound.mjs +1 -1
- package/dist/pages/NotFound.mjs.map +1 -1
- package/dist/{paragraph-DmiXlAnE.mjs → paragraph-Ch5TvEqL.mjs} +2 -2
- package/dist/paragraph-Ch5TvEqL.mjs.map +1 -0
- package/dist/{paragraph-Co2e-y5c.cjs → paragraph-DN85Huc4.cjs} +2 -2
- package/dist/paragraph-DN85Huc4.cjs.map +1 -0
- package/dist/payment-layout-Da29dHJe.cjs +2 -0
- package/dist/payment-layout-Da29dHJe.cjs.map +1 -0
- package/dist/payment-layout-wN5c7MCM.mjs +2 -0
- package/dist/payment-layout-wN5c7MCM.mjs.map +1 -0
- package/dist/{popover-DzDrgttC.cjs → popover-AEt-aSy3.cjs} +2 -2
- package/dist/popover-AEt-aSy3.cjs.map +1 -0
- package/dist/popover-OJXFbqJi.mjs +2 -0
- package/dist/popover-OJXFbqJi.mjs.map +1 -0
- package/dist/{radio-group-CBhRsUjN.cjs → radio-group-BWLdQw7M.cjs} +2 -2
- package/dist/radio-group-BWLdQw7M.cjs.map +1 -0
- package/dist/{radio-group-Cem8O6BK.mjs → radio-group-CAgfOr7-.mjs} +2 -2
- package/dist/radio-group-CAgfOr7-.mjs.map +1 -0
- package/dist/{resizable-B8tRShQI.cjs → resizable-D6UKwvFa.cjs} +2 -2
- package/dist/resizable-D6UKwvFa.cjs.map +1 -0
- package/dist/{resizable-RPObV6jc.mjs → resizable-DWh_mp5P.mjs} +2 -2
- package/dist/resizable-DWh_mp5P.mjs.map +1 -0
- package/dist/search-modal-BxjKY8I7.mjs +2 -0
- package/dist/search-modal-BxjKY8I7.mjs.map +1 -0
- package/dist/search-modal-C-jNqQI1.cjs +2 -0
- package/dist/search-modal-C-jNqQI1.cjs.map +1 -0
- package/dist/{select-2CgwiefV.cjs → select-Py_t2nX1.cjs} +2 -2
- package/dist/select-Py_t2nX1.cjs.map +1 -0
- package/dist/{select-CivtMKTM.mjs → select-Ze8Fq88G.mjs} +2 -2
- package/dist/select-Ze8Fq88G.mjs.map +1 -0
- package/dist/separator-BMsbHAVt.mjs +2 -0
- package/dist/separator-BMsbHAVt.mjs.map +1 -0
- package/dist/{separator-C3ip6sbh.cjs → separator-BwZb12bh.cjs} +2 -2
- package/dist/separator-BwZb12bh.cjs.map +1 -0
- package/dist/{sheet-5MJRtrfG.cjs → sheet-CaDXTx7n.cjs} +2 -2
- package/dist/sheet-CaDXTx7n.cjs.map +1 -0
- package/dist/{sheet-oadGRiie.mjs → sheet-DMIqn1iv.mjs} +2 -2
- package/dist/sheet-DMIqn1iv.mjs.map +1 -0
- package/dist/sidebar-C27_pwLR.cjs +2 -0
- package/dist/sidebar-C27_pwLR.cjs.map +1 -0
- package/dist/sidebar-meLttL0V.mjs +2 -0
- package/dist/sidebar-meLttL0V.mjs.map +1 -0
- package/dist/skeleton-BPxcW2yu.mjs +2 -0
- package/dist/skeleton-BPxcW2yu.mjs.map +1 -0
- package/dist/skeleton-BfMCjXYM.cjs +2 -0
- package/dist/skeleton-BfMCjXYM.cjs.map +1 -0
- package/dist/spinner-EgMJOaQi.mjs +2 -0
- package/dist/spinner-EgMJOaQi.mjs.map +1 -0
- package/dist/spinner-MKXqwF9G.cjs +2 -0
- package/dist/spinner-MKXqwF9G.cjs.map +1 -0
- package/dist/systems/google.cjs +1 -1
- package/dist/systems/google.cjs.map +1 -1
- package/dist/systems/google.d.cts +36 -0
- package/dist/systems/google.d.mts +36 -0
- package/dist/systems/google.mjs +1 -1
- package/dist/systems/google.mjs.map +1 -1
- package/dist/tables-Cc3Wik4i.cjs +2 -0
- package/dist/tables-Cc3Wik4i.cjs.map +1 -0
- package/dist/tables-DrJKQPsT.mjs +2 -0
- package/dist/tables-DrJKQPsT.mjs.map +1 -0
- package/dist/tanstack-form-BmV2BXDz.cjs +2 -0
- package/dist/tanstack-form-BmV2BXDz.cjs.map +1 -0
- package/dist/tanstack-form-CJ43hVb_.mjs +2 -0
- package/dist/tanstack-form-CJ43hVb_.mjs.map +1 -0
- package/dist/{textarea-Dlwbg6TY.cjs → textarea-BsgmN4jy.cjs} +2 -2
- package/dist/textarea-BsgmN4jy.cjs.map +1 -0
- package/dist/{textarea-RjL2DtNf.mjs → textarea-CdGSEkZB.mjs} +2 -2
- package/dist/textarea-CdGSEkZB.mjs.map +1 -0
- package/dist/tooltip-Bj0iOG4s.mjs +2 -0
- package/dist/tooltip-Bj0iOG4s.mjs.map +1 -0
- package/dist/{tooltip-DC6i1A25.cjs → tooltip-itUmYz9k.cjs} +2 -2
- package/dist/tooltip-itUmYz9k.cjs.map +1 -0
- package/dist/{types-Bd0JePtp.d.cts → types-B_32Ieia.d.mts} +1 -1
- package/dist/{types-BpHcqlOI.d.mts → types-CDYHkcOk.d.cts} +1 -1
- package/dist/{types-DBD4LOem.mjs → types-DNphnTW-.mjs} +1 -1
- package/dist/{types-DBD4LOem.mjs.map → types-DNphnTW-.mjs.map} +1 -1
- package/dist/typography/paragraph.cjs +1 -1
- package/dist/typography/paragraph.d.cts +35 -5
- package/dist/typography/paragraph.d.mts +36 -6
- package/dist/typography/paragraph.mjs +1 -1
- package/dist/typography/title.cjs +1 -1
- package/dist/typography/title.cjs.map +1 -1
- package/dist/typography/title.d.cts +31 -4
- package/dist/typography/title.d.mts +31 -4
- package/dist/typography/title.mjs +1 -1
- package/dist/typography/title.mjs.map +1 -1
- package/dist/ui/alert-dialog.cjs +1 -1
- package/dist/ui/alert-dialog.cjs.map +1 -1
- package/dist/ui/alert-dialog.d.cts +54 -12
- package/dist/ui/alert-dialog.d.mts +54 -12
- package/dist/ui/alert-dialog.mjs +1 -1
- package/dist/ui/alert-dialog.mjs.map +1 -1
- package/dist/ui/alert.cjs +1 -2
- package/dist/ui/alert.d.cts +2 -69
- package/dist/ui/alert.d.mts +2 -69
- package/dist/ui/alert.mjs +1 -2
- package/dist/ui/aspect-ratio.cjs +1 -1
- package/dist/ui/aspect-ratio.cjs.map +1 -1
- package/dist/ui/aspect-ratio.d.cts +15 -2
- package/dist/ui/aspect-ratio.d.mts +15 -2
- package/dist/ui/aspect-ratio.mjs +1 -1
- package/dist/ui/aspect-ratio.mjs.map +1 -1
- package/dist/ui/avatar.cjs +1 -1
- package/dist/ui/avatar.d.cts +20 -4
- package/dist/ui/avatar.d.mts +20 -4
- package/dist/ui/avatar.mjs +1 -1
- package/dist/ui/badge.cjs +1 -1
- package/dist/ui/badge.d.cts +2 -21
- package/dist/ui/badge.d.mts +2 -21
- package/dist/ui/badge.mjs +1 -1
- package/dist/ui/breadcrumb.cjs +1 -1
- package/dist/ui/breadcrumb.cjs.map +1 -1
- package/dist/ui/breadcrumb.d.cts +38 -25
- package/dist/ui/breadcrumb.d.mts +38 -25
- package/dist/ui/breadcrumb.mjs +1 -1
- package/dist/ui/breadcrumb.mjs.map +1 -1
- package/dist/ui/button-group.cjs +1 -1
- package/dist/ui/button-group.cjs.map +1 -1
- package/dist/ui/button-group.d.cts +27 -6
- package/dist/ui/button-group.d.mts +27 -6
- package/dist/ui/button-group.mjs +1 -1
- package/dist/ui/button-group.mjs.map +1 -1
- package/dist/ui/button.cjs +1 -1
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.mts +1 -1
- package/dist/ui/button.mjs +1 -1
- package/dist/ui/buttons/add-new.cjs +1 -1
- package/dist/ui/buttons/add-new.cjs.map +1 -1
- package/dist/ui/buttons/add-new.d.cts +9 -0
- package/dist/ui/buttons/add-new.d.mts +9 -0
- package/dist/ui/buttons/add-new.mjs +1 -1
- package/dist/ui/buttons/add-new.mjs.map +1 -1
- package/dist/ui/buttons/edit.cjs +1 -1
- package/dist/ui/buttons/edit.cjs.map +1 -1
- package/dist/ui/buttons/edit.d.cts +9 -0
- package/dist/ui/buttons/edit.d.mts +9 -0
- package/dist/ui/buttons/edit.mjs +1 -1
- package/dist/ui/buttons/edit.mjs.map +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.cjs.map +1 -1
- package/dist/ui/buttons/refresh.d.cts +9 -0
- package/dist/ui/buttons/refresh.d.mts +9 -0
- package/dist/ui/buttons/refresh.mjs +1 -1
- package/dist/ui/buttons/refresh.mjs.map +1 -1
- package/dist/ui/buttons/trash.cjs +1 -1
- package/dist/ui/buttons/trash.cjs.map +1 -1
- package/dist/ui/buttons/trash.d.cts +9 -0
- package/dist/ui/buttons/trash.d.mts +9 -0
- package/dist/ui/buttons/trash.mjs +1 -1
- package/dist/ui/buttons/trash.mjs.map +1 -1
- package/dist/ui/buttons/upload-image.cjs +1 -1
- package/dist/ui/buttons/upload-image.cjs.map +1 -1
- package/dist/ui/buttons/upload-image.d.cts +13 -0
- package/dist/ui/buttons/upload-image.d.mts +13 -0
- package/dist/ui/buttons/upload-image.mjs +1 -1
- package/dist/ui/buttons/upload-image.mjs.map +1 -1
- package/dist/ui/calendar.cjs +1 -1
- package/dist/ui/calendar.d.cts +22 -4
- package/dist/ui/calendar.d.mts +22 -4
- package/dist/ui/calendar.mjs +1 -1
- package/dist/ui/card.cjs +1 -1
- package/dist/ui/card.cjs.map +1 -1
- package/dist/ui/card.d.cts +37 -8
- package/dist/ui/card.d.mts +37 -8
- package/dist/ui/card.mjs +1 -1
- package/dist/ui/card.mjs.map +1 -1
- package/dist/ui/carousel.cjs +1 -1
- package/dist/ui/carousel.cjs.map +1 -1
- package/dist/ui/carousel.d.cts +31 -7
- package/dist/ui/carousel.d.mts +31 -7
- package/dist/ui/carousel.mjs +1 -1
- package/dist/ui/carousel.mjs.map +1 -1
- package/dist/ui/checkbox.cjs +1 -1
- package/dist/ui/checkbox.d.cts +17 -2
- package/dist/ui/checkbox.d.mts +17 -2
- package/dist/ui/checkbox.mjs +1 -1
- package/dist/ui/collapsible.cjs.map +1 -1
- package/dist/ui/collapsible.d.cts +22 -4
- package/dist/ui/collapsible.d.mts +22 -4
- package/dist/ui/collapsible.mjs.map +1 -1
- package/dist/ui/command.cjs +1 -1
- package/dist/ui/command.d.cts +48 -11
- package/dist/ui/command.d.mts +48 -11
- package/dist/ui/command.mjs +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 +65 -16
- package/dist/ui/context-menu.d.mts +65 -16
- package/dist/ui/context-menu.mjs +1 -1
- package/dist/ui/context-menu.mjs.map +1 -1
- package/dist/ui/dialog.cjs +1 -1
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.mts +1 -1
- package/dist/ui/dialog.mjs +1 -1
- package/dist/ui/drawer.cjs +1 -1
- package/dist/ui/drawer.cjs.map +1 -1
- package/dist/ui/drawer.d.cts +39 -11
- package/dist/ui/drawer.d.mts +39 -11
- package/dist/ui/drawer.mjs +1 -1
- package/dist/ui/drawer.mjs.map +1 -1
- package/dist/ui/dropdown-menu.cjs +1 -1
- package/dist/ui/dropdown-menu.d.cts +65 -16
- package/dist/ui/dropdown-menu.d.mts +65 -16
- package/dist/ui/dropdown-menu.mjs +1 -1
- package/dist/ui/empty.cjs +1 -1
- package/dist/ui/empty.cjs.map +1 -1
- package/dist/ui/empty.d.cts +41 -9
- package/dist/ui/empty.d.mts +39 -7
- package/dist/ui/empty.mjs +1 -1
- package/dist/ui/empty.mjs.map +1 -1
- package/dist/ui/field.cjs +1 -2
- package/dist/ui/field.d.cts +13 -13
- package/dist/ui/field.d.mts +22 -22
- package/dist/ui/field.mjs +1 -2
- package/dist/ui/file-uploader.cjs +2 -2
- package/dist/ui/file-uploader.cjs.map +1 -1
- package/dist/ui/file-uploader.d.cts +27 -2
- package/dist/ui/file-uploader.d.mts +27 -2
- package/dist/ui/file-uploader.mjs +2 -2
- package/dist/ui/file-uploader.mjs.map +1 -1
- package/dist/ui/form.cjs +1 -1
- package/dist/ui/form.cjs.map +1 -1
- package/dist/ui/form.d.cts +55 -11
- package/dist/ui/form.d.mts +55 -11
- package/dist/ui/form.mjs +1 -1
- package/dist/ui/form.mjs.map +1 -1
- package/dist/ui/hover-card.cjs +1 -1
- package/dist/ui/hover-card.cjs.map +1 -1
- package/dist/ui/hover-card.d.cts +22 -4
- package/dist/ui/hover-card.d.mts +22 -4
- package/dist/ui/hover-card.mjs +1 -1
- package/dist/ui/hover-card.mjs.map +1 -1
- package/dist/ui/image.cjs +1 -1
- package/dist/ui/image.d.cts +20 -0
- package/dist/ui/image.d.mts +20 -0
- package/dist/ui/image.mjs +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 +36 -5
- package/dist/ui/input-otp.d.mts +36 -5
- package/dist/ui/input-otp.mjs +1 -1
- package/dist/ui/input-otp.mjs.map +1 -1
- package/dist/ui/input.cjs +1 -1
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.mts +1 -1
- package/dist/ui/input.mjs +1 -1
- package/dist/ui/inputs/search-input.cjs +1 -1
- package/dist/ui/inputs/search-input.cjs.map +1 -1
- package/dist/ui/inputs/search-input.d.cts +20 -3
- package/dist/ui/inputs/search-input.d.mts +20 -3
- package/dist/ui/inputs/search-input.mjs +1 -1
- package/dist/ui/inputs/search-input.mjs.map +1 -1
- package/dist/ui/item.cjs +1 -1
- package/dist/ui/item.cjs.map +1 -1
- package/dist/ui/item.d.cts +55 -15
- package/dist/ui/item.d.mts +55 -15
- package/dist/ui/item.mjs +1 -1
- package/dist/ui/item.mjs.map +1 -1
- package/dist/ui/label.cjs +1 -1
- package/dist/ui/label.d.cts +15 -2
- package/dist/ui/label.d.mts +15 -2
- package/dist/ui/label.mjs +1 -1
- package/dist/ui/menubar.cjs +1 -1
- package/dist/ui/menubar.cjs.map +1 -1
- package/dist/ui/menubar.d.cts +68 -17
- package/dist/ui/menubar.d.mts +68 -17
- package/dist/ui/menubar.mjs +1 -1
- package/dist/ui/menubar.mjs.map +1 -1
- package/dist/ui/multi-select.cjs +1 -1
- package/dist/ui/multi-select.cjs.map +1 -1
- package/dist/ui/multi-select.d.cts +39 -2
- package/dist/ui/multi-select.d.mts +40 -3
- package/dist/ui/multi-select.mjs +1 -1
- package/dist/ui/multi-select.mjs.map +1 -1
- package/dist/ui/navigation-menu.cjs +1 -1
- package/dist/ui/navigation-menu.cjs.map +1 -1
- package/dist/ui/navigation-menu.d.cts +42 -11
- package/dist/ui/navigation-menu.d.mts +42 -11
- package/dist/ui/navigation-menu.mjs +1 -1
- package/dist/ui/navigation-menu.mjs.map +1 -1
- package/dist/ui/pagination.cjs +1 -1
- package/dist/ui/pagination.cjs.map +1 -1
- package/dist/ui/pagination.d.cts +37 -9
- package/dist/ui/pagination.d.mts +37 -9
- package/dist/ui/pagination.mjs +1 -1
- package/dist/ui/pagination.mjs.map +1 -1
- package/dist/ui/popover.cjs +1 -1
- package/dist/ui/popover.d.cts +32 -6
- package/dist/ui/popover.d.mts +32 -6
- package/dist/ui/popover.mjs +1 -1
- package/dist/ui/progress.cjs +1 -1
- package/dist/ui/progress.cjs.map +1 -1
- package/dist/ui/progress.d.cts +13 -2
- package/dist/ui/progress.d.mts +13 -2
- package/dist/ui/progress.mjs +1 -1
- package/dist/ui/progress.mjs.map +1 -1
- package/dist/ui/radio-group.cjs +1 -1
- package/dist/ui/radio-group.d.cts +25 -3
- package/dist/ui/radio-group.d.mts +25 -3
- package/dist/ui/radio-group.mjs +1 -1
- package/dist/ui/resizable.cjs +1 -1
- package/dist/ui/resizable.d.cts +29 -9
- package/dist/ui/resizable.d.mts +29 -9
- package/dist/ui/resizable.mjs +1 -1
- package/dist/ui/scroll-area.cjs +1 -1
- package/dist/ui/scroll-area.cjs.map +1 -1
- package/dist/ui/scroll-area.d.cts +24 -6
- package/dist/ui/scroll-area.d.mts +24 -6
- package/dist/ui/scroll-area.mjs +1 -1
- package/dist/ui/scroll-area.mjs.map +1 -1
- package/dist/ui/select.cjs +1 -1
- package/dist/ui/select.d.cts +43 -9
- package/dist/ui/select.d.mts +43 -9
- package/dist/ui/select.mjs +1 -1
- package/dist/ui/separator.cjs +1 -1
- package/dist/ui/separator.d.cts +23 -2
- package/dist/ui/separator.d.mts +23 -2
- package/dist/ui/separator.mjs +1 -1
- package/dist/ui/sheet.cjs +1 -1
- package/dist/ui/sheet.d.cts +38 -9
- package/dist/ui/sheet.d.mts +38 -9
- package/dist/ui/sheet.mjs +1 -1
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.cjs.map +1 -1
- package/dist/ui/sidebar.d.cts +125 -28
- package/dist/ui/sidebar.d.mts +125 -28
- package/dist/ui/sidebar.mjs +1 -1
- package/dist/ui/sidebar.mjs.map +1 -1
- package/dist/ui/skeleton.cjs +1 -1
- package/dist/ui/skeleton.d.cts +19 -2
- package/dist/ui/skeleton.d.mts +19 -2
- package/dist/ui/skeleton.mjs +1 -1
- package/dist/ui/slider.cjs +1 -1
- package/dist/ui/slider.cjs.map +1 -1
- package/dist/ui/slider.d.cts +13 -2
- package/dist/ui/slider.d.mts +13 -2
- package/dist/ui/slider.mjs +1 -1
- package/dist/ui/slider.mjs.map +1 -1
- package/dist/ui/sonner.cjs +1 -1
- package/dist/ui/sonner.cjs.map +1 -1
- package/dist/ui/sonner.d.cts +18 -2
- package/dist/ui/sonner.d.mts +18 -2
- package/dist/ui/sonner.mjs +1 -1
- package/dist/ui/sonner.mjs.map +1 -1
- package/dist/ui/spinner.cjs +1 -1
- package/dist/ui/spinner.d.cts +17 -2
- package/dist/ui/spinner.d.mts +17 -2
- package/dist/ui/spinner.mjs +1 -1
- package/dist/ui/switch.cjs +1 -1
- package/dist/ui/switch.cjs.map +1 -1
- package/dist/ui/switch.d.cts +17 -2
- package/dist/ui/switch.d.mts +17 -2
- package/dist/ui/switch.mjs +1 -1
- package/dist/ui/switch.mjs.map +1 -1
- package/dist/ui/table.cjs +1 -1
- package/dist/ui/table.cjs.map +1 -1
- package/dist/ui/table.d.cts +53 -18
- package/dist/ui/table.d.mts +53 -18
- package/dist/ui/table.mjs +1 -1
- package/dist/ui/table.mjs.map +1 -1
- package/dist/ui/tabs.cjs +1 -1
- package/dist/ui/tabs.cjs.map +1 -1
- package/dist/ui/tabs.d.cts +26 -5
- package/dist/ui/tabs.d.mts +26 -5
- package/dist/ui/tabs.mjs +1 -1
- package/dist/ui/tabs.mjs.map +1 -1
- package/dist/ui/textarea.cjs +1 -1
- package/dist/ui/textarea.d.cts +18 -2
- package/dist/ui/textarea.d.mts +18 -2
- package/dist/ui/textarea.mjs +1 -1
- package/dist/ui/toggle-group.cjs +1 -1
- package/dist/ui/toggle-group.cjs.map +1 -1
- package/dist/ui/toggle-group.d.cts +19 -3
- package/dist/ui/toggle-group.d.mts +19 -3
- package/dist/ui/toggle-group.mjs +1 -1
- package/dist/ui/toggle-group.mjs.map +1 -1
- package/dist/ui/toggle.cjs +1 -1
- package/dist/ui/toggle.cjs.map +1 -1
- package/dist/ui/toggle.d.cts +17 -4
- package/dist/ui/toggle.d.mts +17 -4
- package/dist/ui/toggle.mjs +1 -1
- package/dist/ui/toggle.mjs.map +1 -1
- package/dist/ui/tooltip.cjs +1 -1
- package/dist/ui/tooltip.d.cts +37 -5
- package/dist/ui/tooltip.d.mts +37 -5
- package/dist/ui/tooltip.mjs +1 -1
- package/dist/user-BEyYLDNK.cjs +2 -0
- package/dist/user-BEyYLDNK.cjs.map +1 -0
- package/dist/user-DONsffqr.mjs +2 -0
- package/dist/user-DONsffqr.mjs.map +1 -0
- package/package.json +11 -3
- package/styles/theme.css +27 -6
- package/dist/avatar-DReNH6rV.mjs +0 -2
- package/dist/avatar-DReNH6rV.mjs.map +0 -1
- package/dist/avatar-aVxo69zP.cjs +0 -2
- package/dist/avatar-aVxo69zP.cjs.map +0 -1
- package/dist/badge-B4Fa7-J3.mjs +0 -2
- package/dist/badge-B4Fa7-J3.mjs.map +0 -1
- package/dist/badge-cvLJyaCA.cjs +0 -2
- package/dist/badge-cvLJyaCA.cjs.map +0 -1
- package/dist/button-B5a1UlC_.d.mts +0 -59
- package/dist/button-Cd7YtPlT.cjs.map +0 -1
- package/dist/button-D8BUqpI2.mjs +0 -2
- package/dist/button-D8BUqpI2.mjs.map +0 -1
- package/dist/button-DYZCqN6A.d.cts +0 -59
- package/dist/button.variants-B_dFX3i2.mjs +0 -2
- package/dist/button.variants-B_dFX3i2.mjs.map +0 -1
- package/dist/button.variants-aqkTmzFu.cjs +0 -2
- package/dist/button.variants-aqkTmzFu.cjs.map +0 -1
- package/dist/calendar-B-PDpHK5.mjs +0 -2
- package/dist/calendar-B-PDpHK5.mjs.map +0 -1
- package/dist/calendar-Cq3_5u0k.cjs +0 -2
- package/dist/calendar-Cq3_5u0k.cjs.map +0 -1
- package/dist/checkbox-Bg2FiuQw.mjs.map +0 -1
- package/dist/checkbox-C0fSWwmD.cjs.map +0 -1
- package/dist/close-D_Ge7gnP.cjs +0 -2
- package/dist/close-DfuHB7kq.mjs +0 -2
- package/dist/command-Bma4ivZz.mjs.map +0 -1
- package/dist/command-IfPmQiyJ.cjs.map +0 -1
- package/dist/data-display/user.cjs.map +0 -1
- package/dist/data-display/user.mjs.map +0 -1
- package/dist/date-WraHGsbb.cjs +0 -2
- package/dist/date-WraHGsbb.cjs.map +0 -1
- package/dist/date-uVTm7J09.mjs +0 -2
- package/dist/date-uVTm7J09.mjs.map +0 -1
- package/dist/dialog-B50k7HnL.mjs +0 -2
- package/dist/dialog-B50k7HnL.mjs.map +0 -1
- package/dist/dialog-BoNhIQYJ.cjs +0 -2
- package/dist/dialog-BoNhIQYJ.cjs.map +0 -1
- package/dist/dialog-CuZxUWfc.d.cts +0 -47
- package/dist/dialog-D4LnpcNL.d.mts +0 -47
- package/dist/dialogs/detail-dialog/components/sidebar.cjs.map +0 -1
- package/dist/dialogs/detail-dialog/components/sidebar.mjs.map +0 -1
- package/dist/dist-DP1ehOL8.mjs +0 -2
- package/dist/dist-Q1UyT_bc.cjs +0 -2
- package/dist/dropdown-menu-B8GUTfTp.mjs +0 -2
- package/dist/dropdown-menu-B8GUTfTp.mjs.map +0 -1
- package/dist/dropdown-menu-BuyuU6uF.cjs +0 -2
- package/dist/dropdown-menu-BuyuU6uF.cjs.map +0 -1
- package/dist/features/search-modal/index.cjs.map +0 -1
- package/dist/features/search-modal/index.mjs.map +0 -1
- package/dist/features/tables/index.cjs.map +0 -1
- package/dist/features/tables/index.mjs.map +0 -1
- package/dist/features/tanstack-form/index.cjs.map +0 -1
- package/dist/features/tanstack-form/index.mjs.map +0 -1
- package/dist/flex-BsoSgWFN.cjs.map +0 -1
- package/dist/flex-CeizYtXs.mjs.map +0 -1
- package/dist/heading-BEbpIiLg.cjs +0 -2
- package/dist/heading-BEbpIiLg.cjs.map +0 -1
- package/dist/heading-CrF1CFWS.mjs +0 -2
- package/dist/heading-CrF1CFWS.mjs.map +0 -1
- package/dist/image-BBZUipoU.cjs +0 -2
- package/dist/image-BBZUipoU.cjs.map +0 -1
- package/dist/image-CZji4Q26.mjs +0 -2
- package/dist/image-CZji4Q26.mjs.map +0 -1
- package/dist/input-BoMJaF_N.cjs.map +0 -1
- package/dist/input-DMjPBcJO.mjs.map +0 -1
- package/dist/input-DszdZdbJ.d.cts +0 -25
- package/dist/input-Dv7UKl6Z.d.mts +0 -25
- package/dist/label-BzfsTrVt.cjs.map +0 -1
- package/dist/label-Dqr8nxWi.mjs +0 -2
- package/dist/label-Dqr8nxWi.mjs.map +0 -1
- package/dist/layouts/cms-layout/index.cjs.map +0 -1
- package/dist/layouts/cms-layout/index.mjs.map +0 -1
- package/dist/layouts/payment-layout/index.cjs.map +0 -1
- package/dist/layouts/payment-layout/index.mjs.map +0 -1
- package/dist/paragraph-Co2e-y5c.cjs.map +0 -1
- package/dist/paragraph-DmiXlAnE.mjs.map +0 -1
- package/dist/popover-BckwBuuD.mjs +0 -2
- package/dist/popover-BckwBuuD.mjs.map +0 -1
- package/dist/popover-DzDrgttC.cjs.map +0 -1
- package/dist/radio-group-CBhRsUjN.cjs.map +0 -1
- package/dist/radio-group-Cem8O6BK.mjs.map +0 -1
- package/dist/resizable-B8tRShQI.cjs.map +0 -1
- package/dist/resizable-RPObV6jc.mjs.map +0 -1
- package/dist/select-2CgwiefV.cjs.map +0 -1
- package/dist/select-CivtMKTM.mjs.map +0 -1
- package/dist/separator-Bf0gymN4.mjs +0 -2
- package/dist/separator-Bf0gymN4.mjs.map +0 -1
- package/dist/separator-C3ip6sbh.cjs.map +0 -1
- package/dist/sheet-5MJRtrfG.cjs.map +0 -1
- package/dist/sheet-oadGRiie.mjs.map +0 -1
- package/dist/skeleton-Ba6koCVf.mjs +0 -2
- package/dist/skeleton-Ba6koCVf.mjs.map +0 -1
- package/dist/skeleton-CHympz8k.cjs +0 -2
- package/dist/skeleton-CHympz8k.cjs.map +0 -1
- package/dist/spinner-Chm_2fLr.cjs +0 -2
- package/dist/spinner-Chm_2fLr.cjs.map +0 -1
- package/dist/spinner-D1v3Bard.mjs +0 -2
- package/dist/spinner-D1v3Bard.mjs.map +0 -1
- package/dist/textarea-Dlwbg6TY.cjs.map +0 -1
- package/dist/textarea-RjL2DtNf.mjs.map +0 -1
- package/dist/tooltip-B3dTcgcc.mjs +0 -2
- package/dist/tooltip-B3dTcgcc.mjs.map +0 -1
- package/dist/tooltip-DC6i1A25.cjs.map +0 -1
- package/dist/ui/alert.cjs.map +0 -1
- package/dist/ui/alert.mjs.map +0 -1
- package/dist/ui/field.cjs.map +0 -1
- package/dist/ui/field.mjs.map +0 -1
package/dist/ui/sidebar.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
1
|
+
import { t as Button } from "../button-Bn54lPVz.cjs";
|
|
2
2
|
import { Separator } from "./separator.cjs";
|
|
3
3
|
import { TooltipContent } from "./tooltip.cjs";
|
|
4
|
-
import { t as Input } from "../input-
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
4
|
+
import { t as Input } from "../input-t2hpPP2K.cjs";
|
|
5
|
+
import * as react_jsx_runtime254 from "react/jsx-runtime";
|
|
6
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
7
7
|
import { VariantProps } from "class-variance-authority";
|
|
8
8
|
|
|
9
9
|
//#region packages/components/ui/sidebar.d.ts
|
|
@@ -16,7 +16,42 @@ type SidebarContextProps = {
|
|
|
16
16
|
isMobile: boolean;
|
|
17
17
|
toggleSidebar: () => void;
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* Hook that returns the current sidebar state and control methods from the nearest SidebarProvider.
|
|
21
|
+
* Must be used within a `<SidebarProvider>`.
|
|
22
|
+
*/
|
|
19
23
|
declare function useSidebar(): SidebarContextProps;
|
|
24
|
+
/**
|
|
25
|
+
* Context provider that manages sidebar open/collapsed state, mobile drawer, keyboard shortcut (Ctrl+B), and CSS variables for all child Sidebar components.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* import {
|
|
30
|
+
* SidebarProvider, Sidebar, SidebarHeader, SidebarContent,
|
|
31
|
+
* SidebarMenu, SidebarMenuItem, SidebarMenuButton,
|
|
32
|
+
* SidebarInset, SidebarTrigger,
|
|
33
|
+
* } from '@customafk/lunas-ui/ui/sidebar';
|
|
34
|
+
*
|
|
35
|
+
* <SidebarProvider>
|
|
36
|
+
* <Sidebar>
|
|
37
|
+
* <SidebarHeader>Logo</SidebarHeader>
|
|
38
|
+
* <SidebarContent>
|
|
39
|
+
* <SidebarMenu>
|
|
40
|
+
* <SidebarMenuItem>
|
|
41
|
+
* <SidebarMenuButton asChild isActive>
|
|
42
|
+
* <a href="/dashboard">Dashboard</a>
|
|
43
|
+
* </SidebarMenuButton>
|
|
44
|
+
* </SidebarMenuItem>
|
|
45
|
+
* </SidebarMenu>
|
|
46
|
+
* </SidebarContent>
|
|
47
|
+
* </Sidebar>
|
|
48
|
+
* <SidebarInset>
|
|
49
|
+
* <SidebarTrigger />
|
|
50
|
+
* <main>Page content</main>
|
|
51
|
+
* </SidebarInset>
|
|
52
|
+
* </SidebarProvider>
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
20
55
|
declare function SidebarProvider({
|
|
21
56
|
defaultOpen,
|
|
22
57
|
open: openProp,
|
|
@@ -26,10 +61,20 @@ declare function SidebarProvider({
|
|
|
26
61
|
children,
|
|
27
62
|
...props
|
|
28
63
|
}: React.ComponentProps<'div'> & {
|
|
64
|
+
/** Whether the sidebar starts expanded. @default true */
|
|
29
65
|
defaultOpen?: boolean;
|
|
66
|
+
/** Controlled open state. */
|
|
30
67
|
open?: boolean;
|
|
68
|
+
/** Callback fired when the open state changes. */
|
|
31
69
|
onOpenChange?: (open: boolean) => void;
|
|
32
|
-
}):
|
|
70
|
+
}): react_jsx_runtime254.JSX.Element;
|
|
71
|
+
/**
|
|
72
|
+
* The main sidebar panel; renders as a Drawer on mobile and a fixed `<aside>` on desktop with optional collapse behavior.
|
|
73
|
+
*
|
|
74
|
+
* @param side - Which edge of the viewport the sidebar attaches to. @default `'left'`
|
|
75
|
+
* @param variant - Visual style: `'sidebar'` (default), `'floating'`, or `'inset'`.
|
|
76
|
+
* @param collapsible - Collapse mode: `'offcanvas'` (slides out), `'icon'` (icon-only), or `'none'` (always visible).
|
|
77
|
+
*/
|
|
33
78
|
declare function Sidebar({
|
|
34
79
|
side,
|
|
35
80
|
variant,
|
|
@@ -41,75 +86,106 @@ declare function Sidebar({
|
|
|
41
86
|
side?: 'left' | 'right';
|
|
42
87
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
43
88
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
44
|
-
}):
|
|
89
|
+
}): react_jsx_runtime254.JSX.Element;
|
|
90
|
+
/** Icon button that toggles the sidebar open/collapsed state. */
|
|
45
91
|
declare function SidebarTrigger({
|
|
46
92
|
className,
|
|
47
93
|
onClick,
|
|
48
94
|
...props
|
|
49
|
-
}: React.ComponentProps<typeof Button>):
|
|
95
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime254.JSX.Element;
|
|
96
|
+
/** Invisible drag-rail along the sidebar edge that toggles collapse on click. */
|
|
50
97
|
declare function SidebarRail({
|
|
51
98
|
className,
|
|
52
99
|
...props
|
|
53
|
-
}: React.ComponentProps<'button'>):
|
|
100
|
+
}: React.ComponentProps<'button'>): react_jsx_runtime254.JSX.Element;
|
|
101
|
+
/** The main content area that sits beside the Sidebar; expands to fill the remaining viewport width. */
|
|
54
102
|
declare function SidebarInset({
|
|
55
103
|
className,
|
|
56
104
|
children,
|
|
57
105
|
...props
|
|
58
|
-
}: React.ComponentProps<'main'>):
|
|
106
|
+
}: React.ComponentProps<'main'>): react_jsx_runtime254.JSX.Element;
|
|
107
|
+
/** A compact search input styled for use inside a sidebar header. */
|
|
59
108
|
declare function SidebarInput({
|
|
60
109
|
className,
|
|
61
110
|
...props
|
|
62
|
-
}: React.ComponentProps<typeof Input>):
|
|
111
|
+
}: React.ComponentProps<typeof Input>): react_jsx_runtime254.JSX.Element;
|
|
112
|
+
/** Sticky top section of the Sidebar, typically holding a logo or workspace switcher. */
|
|
63
113
|
declare function SidebarHeader({
|
|
64
114
|
className,
|
|
65
115
|
...props
|
|
66
|
-
}: React.ComponentProps<'div'>):
|
|
116
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime254.JSX.Element;
|
|
117
|
+
/** Sticky bottom section of the Sidebar, typically holding user account info or settings. */
|
|
67
118
|
declare function SidebarFooter({
|
|
68
119
|
className,
|
|
69
120
|
...props
|
|
70
|
-
}: React.ComponentProps<'div'>):
|
|
121
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime254.JSX.Element;
|
|
122
|
+
/** A horizontal Separator styled for use between sections inside a Sidebar. */
|
|
71
123
|
declare function SidebarSeparator({
|
|
72
124
|
className,
|
|
73
125
|
...props
|
|
74
|
-
}: React.ComponentProps<typeof Separator>):
|
|
126
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime254.JSX.Element;
|
|
127
|
+
/** Scrollable middle section of the Sidebar that grows to fill available space. */
|
|
75
128
|
declare function SidebarContent({
|
|
76
129
|
className,
|
|
77
130
|
...props
|
|
78
|
-
}: React.ComponentProps<'div'>):
|
|
131
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime254.JSX.Element;
|
|
132
|
+
/** A logical section within SidebarContent, grouping related SidebarMenu items. */
|
|
79
133
|
declare function SidebarGroup({
|
|
80
134
|
className,
|
|
81
135
|
...props
|
|
82
|
-
}: React.ComponentProps<'div'>):
|
|
136
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime254.JSX.Element;
|
|
137
|
+
/**
|
|
138
|
+
* Small all-caps heading label at the top of a SidebarGroup; hidden automatically in icon-only collapse mode.
|
|
139
|
+
*
|
|
140
|
+
* @param asChild - When true, renders as the child element via Radix Slot.
|
|
141
|
+
*/
|
|
83
142
|
declare function SidebarGroupLabel({
|
|
84
143
|
className,
|
|
85
144
|
asChild,
|
|
86
145
|
...props
|
|
87
146
|
}: React.ComponentProps<'div'> & {
|
|
88
147
|
asChild?: boolean;
|
|
89
|
-
}):
|
|
148
|
+
}): react_jsx_runtime254.JSX.Element;
|
|
149
|
+
/**
|
|
150
|
+
* Action button (e.g. "Add") positioned absolutely at the top-right of a SidebarGroup label.
|
|
151
|
+
*
|
|
152
|
+
* @param asChild - When true, renders as the child element via Radix Slot.
|
|
153
|
+
*/
|
|
90
154
|
declare function SidebarGroupAction({
|
|
91
155
|
className,
|
|
92
156
|
asChild,
|
|
93
157
|
...props
|
|
94
158
|
}: React.ComponentProps<'button'> & {
|
|
95
159
|
asChild?: boolean;
|
|
96
|
-
}):
|
|
160
|
+
}): react_jsx_runtime254.JSX.Element;
|
|
161
|
+
/** The content area of a SidebarGroup, typically wrapping a SidebarMenu. */
|
|
97
162
|
declare function SidebarGroupContent({
|
|
98
163
|
className,
|
|
99
164
|
...props
|
|
100
|
-
}: React.ComponentProps<'div'>):
|
|
165
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime254.JSX.Element;
|
|
166
|
+
/** Vertical list `<ul>` that holds SidebarMenuItems. */
|
|
101
167
|
declare function SidebarMenu({
|
|
102
168
|
className,
|
|
103
169
|
...props
|
|
104
|
-
}: React.ComponentProps<'ul'>):
|
|
170
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime254.JSX.Element;
|
|
171
|
+
/** A single `<li>` entry in a SidebarMenu that may include a button, action, and badge. */
|
|
105
172
|
declare function SidebarMenuItem({
|
|
106
173
|
className,
|
|
107
174
|
...props
|
|
108
|
-
}: React.ComponentProps<'li'>):
|
|
175
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime254.JSX.Element;
|
|
109
176
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
110
177
|
variant?: "default" | "outline" | null | undefined;
|
|
111
178
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
112
|
-
} &
|
|
179
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
180
|
+
/**
|
|
181
|
+
* The primary clickable button within a SidebarMenuItem; collapses to an icon-only view when the sidebar is in icon-collapse mode and optionally shows a tooltip.
|
|
182
|
+
*
|
|
183
|
+
* @param asChild - When true, renders as the child element via Radix Slot (useful for router links).
|
|
184
|
+
* @param isActive - Marks the button as the currently active route.
|
|
185
|
+
* @param tooltip - A string or TooltipContent props shown when the sidebar is collapsed to icon-only mode.
|
|
186
|
+
* @param variant - `'default'` or `'outline'`.
|
|
187
|
+
* @param size - `'default'`, `'sm'`, or `'lg'`.
|
|
188
|
+
*/
|
|
113
189
|
declare function SidebarMenuButton({
|
|
114
190
|
asChild,
|
|
115
191
|
isActive,
|
|
@@ -122,7 +198,13 @@ declare function SidebarMenuButton({
|
|
|
122
198
|
asChild?: boolean;
|
|
123
199
|
isActive?: boolean;
|
|
124
200
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
125
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
201
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime254.JSX.Element;
|
|
202
|
+
/**
|
|
203
|
+
* An icon action button (e.g. more-options) positioned at the right of a SidebarMenuButton.
|
|
204
|
+
*
|
|
205
|
+
* @param asChild - When true, renders as the child element via Radix Slot.
|
|
206
|
+
* @param showOnHover - When true, the action is only visible on hover or when the menu item is focused.
|
|
207
|
+
*/
|
|
126
208
|
declare function SidebarMenuAction({
|
|
127
209
|
className,
|
|
128
210
|
asChild,
|
|
@@ -131,26 +213,41 @@ declare function SidebarMenuAction({
|
|
|
131
213
|
}: React.ComponentProps<'button'> & {
|
|
132
214
|
asChild?: boolean;
|
|
133
215
|
showOnHover?: boolean;
|
|
134
|
-
}):
|
|
216
|
+
}): react_jsx_runtime254.JSX.Element;
|
|
217
|
+
/** Small numeric or text badge rendered at the right of a SidebarMenuButton (e.g. unread count). */
|
|
135
218
|
declare function SidebarMenuBadge({
|
|
136
219
|
className,
|
|
137
220
|
...props
|
|
138
|
-
}: React.ComponentProps<'div'>):
|
|
221
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime254.JSX.Element;
|
|
222
|
+
/**
|
|
223
|
+
* Placeholder skeleton row rendered in place of a SidebarMenuButton while menu items are loading.
|
|
224
|
+
*
|
|
225
|
+
* @param showIcon - When true, also renders a small square skeleton for the icon slot.
|
|
226
|
+
*/
|
|
139
227
|
declare function SidebarMenuSkeleton({
|
|
140
228
|
className,
|
|
141
229
|
showIcon,
|
|
142
230
|
...props
|
|
143
231
|
}: React.ComponentProps<'div'> & {
|
|
144
232
|
showIcon?: boolean;
|
|
145
|
-
}):
|
|
233
|
+
}): react_jsx_runtime254.JSX.Element;
|
|
234
|
+
/** Indented nested list of SidebarMenuSubItems rendered below a parent SidebarMenuItem. */
|
|
146
235
|
declare function SidebarMenuSub({
|
|
147
236
|
className,
|
|
148
237
|
...props
|
|
149
|
-
}: React.ComponentProps<'ul'>):
|
|
238
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime254.JSX.Element;
|
|
239
|
+
/** A single `<li>` entry inside a SidebarMenuSub. */
|
|
150
240
|
declare function SidebarMenuSubItem({
|
|
151
241
|
className,
|
|
152
242
|
...props
|
|
153
|
-
}: React.ComponentProps<'li'>):
|
|
243
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime254.JSX.Element;
|
|
244
|
+
/**
|
|
245
|
+
* The clickable link/button for a nested sub-menu entry inside a SidebarMenuSub.
|
|
246
|
+
*
|
|
247
|
+
* @param asChild - When true, renders as the child element via Radix Slot.
|
|
248
|
+
* @param size - `'sm'` for smaller text, `'md'` for normal text.
|
|
249
|
+
* @param isActive - Highlights the button as the currently active sub-route.
|
|
250
|
+
*/
|
|
154
251
|
declare function SidebarMenuSubButton({
|
|
155
252
|
asChild,
|
|
156
253
|
size,
|
|
@@ -161,7 +258,7 @@ declare function SidebarMenuSubButton({
|
|
|
161
258
|
asChild?: boolean;
|
|
162
259
|
size?: 'sm' | 'md';
|
|
163
260
|
isActive?: boolean;
|
|
164
|
-
}):
|
|
261
|
+
}): react_jsx_runtime254.JSX.Element;
|
|
165
262
|
//#endregion
|
|
166
263
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
167
264
|
//# sourceMappingURL=sidebar.d.cts.map
|
package/dist/ui/sidebar.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
1
|
+
import { t as Button } from "../button-C76drZpd.mjs";
|
|
2
2
|
import { Separator } from "./separator.mjs";
|
|
3
3
|
import { TooltipContent } from "./tooltip.mjs";
|
|
4
|
-
import { t as Input } from "../input-
|
|
4
|
+
import { t as Input } from "../input-D5dtkW6g.mjs";
|
|
5
|
+
import * as react_jsx_runtime256 from "react/jsx-runtime";
|
|
5
6
|
import { VariantProps } from "class-variance-authority";
|
|
6
|
-
import * as
|
|
7
|
-
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
7
|
+
import * as class_variance_authority_types12 from "class-variance-authority/types";
|
|
8
8
|
|
|
9
9
|
//#region packages/components/ui/sidebar.d.ts
|
|
10
10
|
type SidebarContextProps = {
|
|
@@ -16,7 +16,42 @@ type SidebarContextProps = {
|
|
|
16
16
|
isMobile: boolean;
|
|
17
17
|
toggleSidebar: () => void;
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* Hook that returns the current sidebar state and control methods from the nearest SidebarProvider.
|
|
21
|
+
* Must be used within a `<SidebarProvider>`.
|
|
22
|
+
*/
|
|
19
23
|
declare function useSidebar(): SidebarContextProps;
|
|
24
|
+
/**
|
|
25
|
+
* Context provider that manages sidebar open/collapsed state, mobile drawer, keyboard shortcut (Ctrl+B), and CSS variables for all child Sidebar components.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* import {
|
|
30
|
+
* SidebarProvider, Sidebar, SidebarHeader, SidebarContent,
|
|
31
|
+
* SidebarMenu, SidebarMenuItem, SidebarMenuButton,
|
|
32
|
+
* SidebarInset, SidebarTrigger,
|
|
33
|
+
* } from '@customafk/lunas-ui/ui/sidebar';
|
|
34
|
+
*
|
|
35
|
+
* <SidebarProvider>
|
|
36
|
+
* <Sidebar>
|
|
37
|
+
* <SidebarHeader>Logo</SidebarHeader>
|
|
38
|
+
* <SidebarContent>
|
|
39
|
+
* <SidebarMenu>
|
|
40
|
+
* <SidebarMenuItem>
|
|
41
|
+
* <SidebarMenuButton asChild isActive>
|
|
42
|
+
* <a href="/dashboard">Dashboard</a>
|
|
43
|
+
* </SidebarMenuButton>
|
|
44
|
+
* </SidebarMenuItem>
|
|
45
|
+
* </SidebarMenu>
|
|
46
|
+
* </SidebarContent>
|
|
47
|
+
* </Sidebar>
|
|
48
|
+
* <SidebarInset>
|
|
49
|
+
* <SidebarTrigger />
|
|
50
|
+
* <main>Page content</main>
|
|
51
|
+
* </SidebarInset>
|
|
52
|
+
* </SidebarProvider>
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
20
55
|
declare function SidebarProvider({
|
|
21
56
|
defaultOpen,
|
|
22
57
|
open: openProp,
|
|
@@ -26,10 +61,20 @@ declare function SidebarProvider({
|
|
|
26
61
|
children,
|
|
27
62
|
...props
|
|
28
63
|
}: React.ComponentProps<'div'> & {
|
|
64
|
+
/** Whether the sidebar starts expanded. @default true */
|
|
29
65
|
defaultOpen?: boolean;
|
|
66
|
+
/** Controlled open state. */
|
|
30
67
|
open?: boolean;
|
|
68
|
+
/** Callback fired when the open state changes. */
|
|
31
69
|
onOpenChange?: (open: boolean) => void;
|
|
32
|
-
}):
|
|
70
|
+
}): react_jsx_runtime256.JSX.Element;
|
|
71
|
+
/**
|
|
72
|
+
* The main sidebar panel; renders as a Drawer on mobile and a fixed `<aside>` on desktop with optional collapse behavior.
|
|
73
|
+
*
|
|
74
|
+
* @param side - Which edge of the viewport the sidebar attaches to. @default `'left'`
|
|
75
|
+
* @param variant - Visual style: `'sidebar'` (default), `'floating'`, or `'inset'`.
|
|
76
|
+
* @param collapsible - Collapse mode: `'offcanvas'` (slides out), `'icon'` (icon-only), or `'none'` (always visible).
|
|
77
|
+
*/
|
|
33
78
|
declare function Sidebar({
|
|
34
79
|
side,
|
|
35
80
|
variant,
|
|
@@ -41,75 +86,106 @@ declare function Sidebar({
|
|
|
41
86
|
side?: 'left' | 'right';
|
|
42
87
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
43
88
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
44
|
-
}):
|
|
89
|
+
}): react_jsx_runtime256.JSX.Element;
|
|
90
|
+
/** Icon button that toggles the sidebar open/collapsed state. */
|
|
45
91
|
declare function SidebarTrigger({
|
|
46
92
|
className,
|
|
47
93
|
onClick,
|
|
48
94
|
...props
|
|
49
|
-
}: React.ComponentProps<typeof Button>):
|
|
95
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime256.JSX.Element;
|
|
96
|
+
/** Invisible drag-rail along the sidebar edge that toggles collapse on click. */
|
|
50
97
|
declare function SidebarRail({
|
|
51
98
|
className,
|
|
52
99
|
...props
|
|
53
|
-
}: React.ComponentProps<'button'>):
|
|
100
|
+
}: React.ComponentProps<'button'>): react_jsx_runtime256.JSX.Element;
|
|
101
|
+
/** The main content area that sits beside the Sidebar; expands to fill the remaining viewport width. */
|
|
54
102
|
declare function SidebarInset({
|
|
55
103
|
className,
|
|
56
104
|
children,
|
|
57
105
|
...props
|
|
58
|
-
}: React.ComponentProps<'main'>):
|
|
106
|
+
}: React.ComponentProps<'main'>): react_jsx_runtime256.JSX.Element;
|
|
107
|
+
/** A compact search input styled for use inside a sidebar header. */
|
|
59
108
|
declare function SidebarInput({
|
|
60
109
|
className,
|
|
61
110
|
...props
|
|
62
|
-
}: React.ComponentProps<typeof Input>):
|
|
111
|
+
}: React.ComponentProps<typeof Input>): react_jsx_runtime256.JSX.Element;
|
|
112
|
+
/** Sticky top section of the Sidebar, typically holding a logo or workspace switcher. */
|
|
63
113
|
declare function SidebarHeader({
|
|
64
114
|
className,
|
|
65
115
|
...props
|
|
66
|
-
}: React.ComponentProps<'div'>):
|
|
116
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime256.JSX.Element;
|
|
117
|
+
/** Sticky bottom section of the Sidebar, typically holding user account info or settings. */
|
|
67
118
|
declare function SidebarFooter({
|
|
68
119
|
className,
|
|
69
120
|
...props
|
|
70
|
-
}: React.ComponentProps<'div'>):
|
|
121
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime256.JSX.Element;
|
|
122
|
+
/** A horizontal Separator styled for use between sections inside a Sidebar. */
|
|
71
123
|
declare function SidebarSeparator({
|
|
72
124
|
className,
|
|
73
125
|
...props
|
|
74
|
-
}: React.ComponentProps<typeof Separator>):
|
|
126
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime256.JSX.Element;
|
|
127
|
+
/** Scrollable middle section of the Sidebar that grows to fill available space. */
|
|
75
128
|
declare function SidebarContent({
|
|
76
129
|
className,
|
|
77
130
|
...props
|
|
78
|
-
}: React.ComponentProps<'div'>):
|
|
131
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime256.JSX.Element;
|
|
132
|
+
/** A logical section within SidebarContent, grouping related SidebarMenu items. */
|
|
79
133
|
declare function SidebarGroup({
|
|
80
134
|
className,
|
|
81
135
|
...props
|
|
82
|
-
}: React.ComponentProps<'div'>):
|
|
136
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime256.JSX.Element;
|
|
137
|
+
/**
|
|
138
|
+
* Small all-caps heading label at the top of a SidebarGroup; hidden automatically in icon-only collapse mode.
|
|
139
|
+
*
|
|
140
|
+
* @param asChild - When true, renders as the child element via Radix Slot.
|
|
141
|
+
*/
|
|
83
142
|
declare function SidebarGroupLabel({
|
|
84
143
|
className,
|
|
85
144
|
asChild,
|
|
86
145
|
...props
|
|
87
146
|
}: React.ComponentProps<'div'> & {
|
|
88
147
|
asChild?: boolean;
|
|
89
|
-
}):
|
|
148
|
+
}): react_jsx_runtime256.JSX.Element;
|
|
149
|
+
/**
|
|
150
|
+
* Action button (e.g. "Add") positioned absolutely at the top-right of a SidebarGroup label.
|
|
151
|
+
*
|
|
152
|
+
* @param asChild - When true, renders as the child element via Radix Slot.
|
|
153
|
+
*/
|
|
90
154
|
declare function SidebarGroupAction({
|
|
91
155
|
className,
|
|
92
156
|
asChild,
|
|
93
157
|
...props
|
|
94
158
|
}: React.ComponentProps<'button'> & {
|
|
95
159
|
asChild?: boolean;
|
|
96
|
-
}):
|
|
160
|
+
}): react_jsx_runtime256.JSX.Element;
|
|
161
|
+
/** The content area of a SidebarGroup, typically wrapping a SidebarMenu. */
|
|
97
162
|
declare function SidebarGroupContent({
|
|
98
163
|
className,
|
|
99
164
|
...props
|
|
100
|
-
}: React.ComponentProps<'div'>):
|
|
165
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime256.JSX.Element;
|
|
166
|
+
/** Vertical list `<ul>` that holds SidebarMenuItems. */
|
|
101
167
|
declare function SidebarMenu({
|
|
102
168
|
className,
|
|
103
169
|
...props
|
|
104
|
-
}: React.ComponentProps<'ul'>):
|
|
170
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime256.JSX.Element;
|
|
171
|
+
/** A single `<li>` entry in a SidebarMenu that may include a button, action, and badge. */
|
|
105
172
|
declare function SidebarMenuItem({
|
|
106
173
|
className,
|
|
107
174
|
...props
|
|
108
|
-
}: React.ComponentProps<'li'>):
|
|
175
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime256.JSX.Element;
|
|
109
176
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
110
177
|
variant?: "default" | "outline" | null | undefined;
|
|
111
178
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
112
|
-
} &
|
|
179
|
+
} & class_variance_authority_types12.ClassProp) | undefined) => string;
|
|
180
|
+
/**
|
|
181
|
+
* The primary clickable button within a SidebarMenuItem; collapses to an icon-only view when the sidebar is in icon-collapse mode and optionally shows a tooltip.
|
|
182
|
+
*
|
|
183
|
+
* @param asChild - When true, renders as the child element via Radix Slot (useful for router links).
|
|
184
|
+
* @param isActive - Marks the button as the currently active route.
|
|
185
|
+
* @param tooltip - A string or TooltipContent props shown when the sidebar is collapsed to icon-only mode.
|
|
186
|
+
* @param variant - `'default'` or `'outline'`.
|
|
187
|
+
* @param size - `'default'`, `'sm'`, or `'lg'`.
|
|
188
|
+
*/
|
|
113
189
|
declare function SidebarMenuButton({
|
|
114
190
|
asChild,
|
|
115
191
|
isActive,
|
|
@@ -122,7 +198,13 @@ declare function SidebarMenuButton({
|
|
|
122
198
|
asChild?: boolean;
|
|
123
199
|
isActive?: boolean;
|
|
124
200
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
125
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
201
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime256.JSX.Element;
|
|
202
|
+
/**
|
|
203
|
+
* An icon action button (e.g. more-options) positioned at the right of a SidebarMenuButton.
|
|
204
|
+
*
|
|
205
|
+
* @param asChild - When true, renders as the child element via Radix Slot.
|
|
206
|
+
* @param showOnHover - When true, the action is only visible on hover or when the menu item is focused.
|
|
207
|
+
*/
|
|
126
208
|
declare function SidebarMenuAction({
|
|
127
209
|
className,
|
|
128
210
|
asChild,
|
|
@@ -131,26 +213,41 @@ declare function SidebarMenuAction({
|
|
|
131
213
|
}: React.ComponentProps<'button'> & {
|
|
132
214
|
asChild?: boolean;
|
|
133
215
|
showOnHover?: boolean;
|
|
134
|
-
}):
|
|
216
|
+
}): react_jsx_runtime256.JSX.Element;
|
|
217
|
+
/** Small numeric or text badge rendered at the right of a SidebarMenuButton (e.g. unread count). */
|
|
135
218
|
declare function SidebarMenuBadge({
|
|
136
219
|
className,
|
|
137
220
|
...props
|
|
138
|
-
}: React.ComponentProps<'div'>):
|
|
221
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime256.JSX.Element;
|
|
222
|
+
/**
|
|
223
|
+
* Placeholder skeleton row rendered in place of a SidebarMenuButton while menu items are loading.
|
|
224
|
+
*
|
|
225
|
+
* @param showIcon - When true, also renders a small square skeleton for the icon slot.
|
|
226
|
+
*/
|
|
139
227
|
declare function SidebarMenuSkeleton({
|
|
140
228
|
className,
|
|
141
229
|
showIcon,
|
|
142
230
|
...props
|
|
143
231
|
}: React.ComponentProps<'div'> & {
|
|
144
232
|
showIcon?: boolean;
|
|
145
|
-
}):
|
|
233
|
+
}): react_jsx_runtime256.JSX.Element;
|
|
234
|
+
/** Indented nested list of SidebarMenuSubItems rendered below a parent SidebarMenuItem. */
|
|
146
235
|
declare function SidebarMenuSub({
|
|
147
236
|
className,
|
|
148
237
|
...props
|
|
149
|
-
}: React.ComponentProps<'ul'>):
|
|
238
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime256.JSX.Element;
|
|
239
|
+
/** A single `<li>` entry inside a SidebarMenuSub. */
|
|
150
240
|
declare function SidebarMenuSubItem({
|
|
151
241
|
className,
|
|
152
242
|
...props
|
|
153
|
-
}: React.ComponentProps<'li'>):
|
|
243
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime256.JSX.Element;
|
|
244
|
+
/**
|
|
245
|
+
* The clickable link/button for a nested sub-menu entry inside a SidebarMenuSub.
|
|
246
|
+
*
|
|
247
|
+
* @param asChild - When true, renders as the child element via Radix Slot.
|
|
248
|
+
* @param size - `'sm'` for smaller text, `'md'` for normal text.
|
|
249
|
+
* @param isActive - Highlights the button as the currently active sub-route.
|
|
250
|
+
*/
|
|
154
251
|
declare function SidebarMenuSubButton({
|
|
155
252
|
asChild,
|
|
156
253
|
size,
|
|
@@ -161,7 +258,7 @@ declare function SidebarMenuSubButton({
|
|
|
161
258
|
asChild?: boolean;
|
|
162
259
|
size?: 'sm' | 'md';
|
|
163
260
|
isActive?: boolean;
|
|
164
|
-
}):
|
|
261
|
+
}): react_jsx_runtime256.JSX.Element;
|
|
165
262
|
//#endregion
|
|
166
263
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
167
264
|
//# sourceMappingURL=sidebar.d.mts.map
|
package/dist/ui/sidebar.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../button.variants-B_dFX3i2.mjs";import{t as e}from"../button-D8BUqpI2.mjs";import{t}from"../skeleton-Ba6koCVf.mjs";import{i as n,n as r,r as i,t as a}from"../tooltip-B3dTcgcc.mjs";import{t as o}from"../separator-Bf0gymN4.mjs";import{t as s}from"../input-DMjPBcJO.mjs";import{Drawer as c,DrawerContent as l,DrawerDescription as u,DrawerHeader as d}from"./drawer.mjs";import{cn as f}from"@customafk/react-toolkit/utils";import{cva as p}from"class-variance-authority";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{MenuIcon as g}from"lucide-react";import{createContext as _,use as v,useCallback as y,useEffect as b,useMemo as x,useState as S}from"react";import{Slot as C}from"radix-ui";import{useIsMobile as w}from"@customafk/react-toolkit/hooks/useMobile";const T=_(null);function E(){let e=v(T);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function D({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...s}){let c=w(),[l,u]=S(!1),[d,p]=S(e),h=t??d,g=y(e=>{let t=typeof e==`function`?e(h):e;n?n(t):p(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,h]),_=y(()=>c?u(e=>!e):g(e=>!e),[c,g,u]);b(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),_())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[_]);let v=h?`expanded`:`collapsed`,C=x(()=>({state:v,isMobile:c,toggleSidebar:_,open:h,setOpen:g,openMobile:l,setOpenMobile:u}),[v,h,g,c,l,u,_]);return m(T.Provider,{value:C,children:m(i,{delayDuration:0,children:m(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:f(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:o})})})}function O({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:p,setOpenMobile:g}=E();return n===`none`?m(`aside`,{"data-slot":`sidebar`,className:f(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):o?m(c,{open:p,onOpenChange:g,direction:`left`,children:h(l,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`18rem`},children:[h(d,{className:`sr-only`,children:[m(l,{children:`Sidebar`}),m(u,{children:`Displays the mobile sidebar.`})]}),m(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):h(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[m(`div`,{"data-slot":`sidebar-gap`,className:f(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-14 w-(--sidebar-width)`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),m(`div`,{"data-slot":`sidebar-container`,className:f(`hidden md:flex`,`fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`border-r`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0`,e===`left`&&`group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0`,e===`right`&&`group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:m(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:f(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function k({className:t,onClick:n,...r}){let{toggleSidebar:i}=E();return h(e,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:f(`size-10 rounded-full`,t),onClick:e=>{n?.(e),i()},...r,children:[m(g,{className:`!size-6`}),m(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function A({className:e,...t}){let{toggleSidebar:n}=E();return m(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:f(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute`,`after:inset-y-0`,`after:left-1/2`,`after:w-0.5`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function j({className:e,children:t,...n}){return h(`main`,{"data-slot":`sidebar-inset`,className:f(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[m(`div`,{className:`h-14 w-full`}),m(`div`,{className:f(`flex-1 inset-shadow-sm`),children:t})]})}function M({className:e,...t}){return m(s,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:f(`bg-background h-8 w-full shadow-none`,e),...t})}function N({className:e,...t}){return m(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:f(`flex flex-col gap-2 p-2`,e),...t})}function P({className:e,...t}){return m(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:f(`flex flex-col gap-2 p-2`,e),...t})}function F({className:e,...t}){return m(o,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:f(`bg-sidebar-border mx-2 w-auto`,e),...t})}function I({className:e,...t}){return m(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:f(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function L({className:e,...t}){return m(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:f(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function R({className:e,asChild:t=!1,...n}){return m(t?C.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:f(`text-sidebar-foreground/70`,`ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function z({className:e,asChild:t=!1,...n}){return m(t?C.Slot:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:f(`text-sidebar-foreground ring-sidebar-ring`,`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function B({className:e,...t}){return m(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:f(`w-full text-sm`,e),...t})}function V({className:e,...t}){return m(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:f(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function H({className:e,...t}){return m(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:f(`group/menu-item relative`,e),...t})}const U=p([`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-accent-foreground`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-8!`,`group-data-[collapsible=icon]:p-2!`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`],{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function W({asChild:e=!1,isActive:t=!1,variant:i=`default`,size:o=`default`,tooltip:s,className:c,...l}){let u=e?C.Slot:`button`,{isMobile:d,state:p}=E(),g=m(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":t,className:f(U({variant:i,size:o}),c),...l});return s?(typeof s==`string`&&(s={children:s}),h(a,{children:[m(n,{asChild:!0,children:g}),m(r,{side:`right`,align:`center`,hidden:p!==`collapsed`||d,...s})]})):g}function G({className:e,asChild:t=!1,showOnHover:n=!1,...r}){return m(t?C.Slot:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:f(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function K({className:e,...t}){return m(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:f(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function q({className:e,showIcon:n=!1,...r}){let i=x(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return h(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:f(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[n&&m(t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),m(t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function J({className:e,...t}){return m(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:f(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function Y({className:e,...t}){return m(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:f(`group/menu-sub-item relative`,e),...t})}function X({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return m(e?C.Slot:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:f(`text-sidebar-foreground ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}export{O as Sidebar,I as SidebarContent,P as SidebarFooter,L as SidebarGroup,z as SidebarGroupAction,B as SidebarGroupContent,R as SidebarGroupLabel,N as SidebarHeader,M as SidebarInput,j as SidebarInset,V as SidebarMenu,G as SidebarMenuAction,K as SidebarMenuBadge,W as SidebarMenuButton,H as SidebarMenuItem,q as SidebarMenuSkeleton,J as SidebarMenuSub,X as SidebarMenuSubButton,Y as SidebarMenuSubItem,D as SidebarProvider,A as SidebarRail,F as SidebarSeparator,k as SidebarTrigger,E as useSidebar};
|
|
1
|
+
"use client";import"../button.variants-DeCyas1F.mjs";import{t as e}from"../button-C6ybzxxj.mjs";import{t}from"../skeleton-BPxcW2yu.mjs";import{i as n,n as r,r as i,t as a}from"../tooltip-Bj0iOG4s.mjs";import{t as o}from"../separator-BMsbHAVt.mjs";import{t as s}from"../input-Cd0G5y-9.mjs";import{Drawer as c,DrawerContent as l,DrawerDescription as u,DrawerHeader as d}from"./drawer.mjs";import{MenuIcon as f}from"lucide-react";import{createContext as p,use as m,useCallback as h,useEffect as g,useMemo as _,useState as v}from"react";import{jsx as y,jsxs as b}from"react/jsx-runtime";import{cn as x}from"@customafk/react-toolkit/utils";import{cva as S}from"class-variance-authority";import{Slot as C}from"radix-ui";import{useIsMobile as w}from"@customafk/react-toolkit/hooks/useMobile";const T=p(null);function E(){let e=m(T);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function D({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...s}){let c=w(),[l,u]=v(!1),[d,f]=v(e),p=t??d,m=h(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,p]),b=h(()=>c?u(e=>!e):m(e=>!e),[c,m,u]);g(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b]);let S=p?`expanded`:`collapsed`,C=_(()=>({state:S,isMobile:c,toggleSidebar:b,open:p,setOpen:m,openMobile:l,setOpenMobile:u}),[S,p,m,c,l,u,b]);return y(T.Provider,{value:C,children:y(i,{delayDuration:0,children:y(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:x(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:o})})})}function O({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:f,setOpenMobile:p}=E();return n===`none`?y(`aside`,{"data-slot":`sidebar`,className:x(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):o?y(c,{open:f,onOpenChange:p,direction:`left`,children:b(l,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`18rem`},children:[b(d,{className:`sr-only`,children:[y(l,{children:`Sidebar`}),y(u,{children:`Displays the mobile sidebar.`})]}),y(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):b(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[y(`div`,{"data-slot":`sidebar-gap`,className:x(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-14 w-(--sidebar-width)`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),y(`div`,{"data-slot":`sidebar-container`,className:x(`hidden md:flex`,`fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`border-r`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0`,e===`left`&&`group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0`,e===`right`&&`group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:y(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:x(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function k({className:t,onClick:n,...r}){let{toggleSidebar:i}=E();return b(e,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:x(`size-10 rounded-full`,t),onClick:e=>{n?.(e),i()},...r,children:[y(f,{className:`!size-6`}),y(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function A({className:e,...t}){let{toggleSidebar:n}=E();return y(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:x(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute`,`after:inset-y-0`,`after:left-1/2`,`after:w-0.5`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function j({className:e,children:t,...n}){return b(`main`,{"data-slot":`sidebar-inset`,className:x(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[y(`div`,{className:`h-14 w-full`}),y(`div`,{className:x(`flex-1 inset-shadow-sm`),children:t})]})}function M({className:e,...t}){return y(s,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:x(`bg-background h-8 w-full shadow-none`,e),...t})}function N({className:e,...t}){return y(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:x(`flex flex-col gap-2 p-2`,e),...t})}function P({className:e,...t}){return y(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:x(`flex flex-col gap-2 p-2`,e),...t})}function F({className:e,...t}){return y(o,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:x(`bg-sidebar-border mx-2 w-auto`,e),...t})}function I({className:e,...t}){return y(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:x(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function L({className:e,...t}){return y(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:x(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function R({className:e,asChild:t=!1,...n}){return y(t?C.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:x(`text-sidebar-foreground/70`,`ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function z({className:e,asChild:t=!1,...n}){return y(t?C.Slot:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:x(`text-sidebar-foreground ring-sidebar-ring`,`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function B({className:e,...t}){return y(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:x(`w-full text-sm`,e),...t})}function V({className:e,...t}){return y(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:x(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function H({className:e,...t}){return y(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:x(`group/menu-item relative`,e),...t})}const U=S([`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-accent-foreground`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-8!`,`group-data-[collapsible=icon]:p-2!`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`],{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function W({asChild:e=!1,isActive:t=!1,variant:i=`default`,size:o=`default`,tooltip:s,className:c,...l}){let u=e?C.Slot:`button`,{isMobile:d,state:f}=E(),p=y(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":t,className:x(U({variant:i,size:o}),c),...l});return s?(typeof s==`string`&&(s={children:s}),b(a,{children:[y(n,{asChild:!0,children:p}),y(r,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...s})]})):p}function G({className:e,asChild:t=!1,showOnHover:n=!1,...r}){return y(t?C.Slot:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:x(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function K({className:e,...t}){return y(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:x(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function q({className:e,showIcon:n=!1,...r}){let i=_(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return b(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:x(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[n&&y(t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),y(t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function J({className:e,...t}){return y(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:x(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function Y({className:e,...t}){return y(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:x(`group/menu-sub-item relative`,e),...t})}function X({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return y(e?C.Slot:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:x(`text-sidebar-foreground ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}export{O as Sidebar,I as SidebarContent,P as SidebarFooter,L as SidebarGroup,z as SidebarGroupAction,B as SidebarGroupContent,R as SidebarGroupLabel,N as SidebarHeader,M as SidebarInput,j as SidebarInset,V as SidebarMenu,G as SidebarMenuAction,K as SidebarMenuBadge,W as SidebarMenuButton,H as SidebarMenuItem,q as SidebarMenuSkeleton,J as SidebarMenuSub,X as SidebarMenuSubButton,Y as SidebarMenuSubItem,D as SidebarProvider,A as SidebarRail,F as SidebarSeparator,k as SidebarTrigger,E as useSidebar};
|
|
2
2
|
//# sourceMappingURL=sidebar.mjs.map
|