@customafk/lunas-ui 0.2.3 → 0.2.5
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/{button-C6s_h0K3.d.mts → button-B5a1UlC_.d.mts} +10 -8
- package/dist/button-Cd7YtPlT.cjs +2 -0
- package/dist/button-Cd7YtPlT.cjs.map +1 -0
- package/dist/button-D8BUqpI2.mjs +2 -0
- package/dist/button-D8BUqpI2.mjs.map +1 -0
- package/dist/{button-CcOrQc7g.d.cts → button-DYZCqN6A.d.cts} +8 -6
- package/dist/button.variants-B_dFX3i2.mjs +2 -0
- package/dist/button.variants-B_dFX3i2.mjs.map +1 -0
- package/dist/button.variants-aqkTmzFu.cjs +2 -0
- package/dist/button.variants-aqkTmzFu.cjs.map +1 -0
- package/dist/{calendar-qHQsMOj9.mjs → calendar-B-PDpHK5.mjs} +2 -2
- package/dist/{calendar-qHQsMOj9.mjs.map → calendar-B-PDpHK5.mjs.map} +1 -1
- package/dist/{calendar-dhPqb3aZ.cjs → calendar-Cq3_5u0k.cjs} +2 -2
- package/dist/{calendar-dhPqb3aZ.cjs.map → calendar-Cq3_5u0k.cjs.map} +1 -1
- package/dist/cards/grid-product-card.cjs +1 -1
- package/dist/cards/grid-product-card.mjs +1 -1
- package/dist/cards/product-card.cjs +1 -1
- package/dist/cards/product-card.mjs +1 -1
- package/dist/cards/simple-card.cjs +1 -1
- package/dist/cards/simple-card.d.mts +2 -2
- package/dist/cards/simple-card.mjs +1 -1
- package/dist/{command-DhBTNTqz.mjs → command-Bma4ivZz.mjs} +2 -2
- package/dist/{command-DhBTNTqz.mjs.map → command-Bma4ivZz.mjs.map} +1 -1
- package/dist/{command-_zpTaaIk.cjs → command-IfPmQiyJ.cjs} +2 -2
- package/dist/{command-_zpTaaIk.cjs.map → command-IfPmQiyJ.cjs.map} +1 -1
- package/dist/data-display/country.cjs +1 -1
- package/dist/data-display/country.mjs +1 -1
- package/dist/data-display/data-list.cjs +1 -1
- package/dist/data-display/data-list.mjs +1 -1
- package/dist/data-display/date-tooltip.cjs +1 -1
- package/dist/data-display/date-tooltip.mjs +1 -1
- package/dist/data-display/date.cjs +1 -1
- package/dist/data-display/date.mjs +1 -1
- package/dist/data-display/empty.cjs +1 -1
- package/dist/data-display/empty.d.mts +2 -2
- package/dist/data-display/empty.mjs +1 -1
- package/dist/data-display/name.cjs +1 -1
- package/dist/data-display/name.mjs +1 -1
- package/dist/data-display/role-badge.cjs +1 -1
- package/dist/data-display/role-badge.mjs +1 -1
- package/dist/data-display/statistic.cjs +1 -1
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.mts +4 -4
- package/dist/data-display/statistic.mjs +1 -1
- package/dist/data-display/user.cjs +1 -1
- package/dist/data-display/user.mjs +1 -1
- package/dist/{date-em5f7hCx.cjs → date-WraHGsbb.cjs} +2 -2
- package/dist/{date-em5f7hCx.cjs.map → date-WraHGsbb.cjs.map} +1 -1
- package/dist/{date-By93kONr.mjs → date-uVTm7J09.mjs} +2 -2
- package/dist/{date-By93kONr.mjs.map → date-uVTm7J09.mjs.map} +1 -1
- package/dist/{dialog-CxELDK98.mjs → dialog-B50k7HnL.mjs} +2 -2
- package/dist/{dialog-CxELDK98.mjs.map → dialog-B50k7HnL.mjs.map} +1 -1
- package/dist/{dialog-DjRiV5vR.cjs → dialog-BoNhIQYJ.cjs} +2 -2
- package/dist/{dialog-DjRiV5vR.cjs.map → dialog-BoNhIQYJ.cjs.map} +1 -1
- package/dist/{dialog-CsM9bEo6.d.cts → dialog-CuZxUWfc.d.cts} +12 -12
- package/dist/{dialog-NsKYcQwE.d.mts → dialog-D4LnpcNL.d.mts} +12 -12
- package/dist/dialogs/confirm-dialog.cjs +1 -1
- package/dist/dialogs/confirm-dialog.mjs +1 -1
- package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
- package/dist/dialogs/detail-dialog/components/sidebar.d.cts +27 -27
- package/dist/dialogs/detail-dialog/components/sidebar.d.mts +27 -27
- package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -1
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.mjs +1 -1
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/error-dialog.mjs +1 -1
- package/dist/dialogs/loading-dialog.cjs +1 -1
- package/dist/dialogs/loading-dialog.mjs +1 -1
- package/dist/dist-DP1ehOL8.mjs +2 -0
- package/dist/{dist-CvmzZ_6C.mjs.map → dist-DP1ehOL8.mjs.map} +1 -1
- package/dist/dist-Q1UyT_bc.cjs +2 -0
- package/dist/{dist-BudM04oj.cjs.map → dist-Q1UyT_bc.cjs.map} +1 -1
- package/dist/features/descriptions/index.cjs +1 -1
- package/dist/features/descriptions/index.d.cts +4 -4
- package/dist/features/descriptions/index.d.mts +1 -1
- package/dist/features/descriptions/index.mjs +1 -1
- package/dist/features/search-modal/index.cjs +1 -1
- package/dist/features/search-modal/index.d.cts +2 -2
- package/dist/features/search-modal/index.d.mts +2 -2
- package/dist/features/search-modal/index.mjs +1 -1
- package/dist/features/tables/index.cjs +1 -1
- package/dist/features/tables/index.d.cts +1 -1
- package/dist/features/tables/index.d.mts +23 -23
- package/dist/features/tables/index.mjs +1 -1
- package/dist/features/tables/index.mjs.map +1 -1
- package/dist/features/tanstack-form/index.cjs +1 -1
- package/dist/features/tanstack-form/index.d.cts +278 -278
- package/dist/features/tanstack-form/index.d.mts +278 -278
- package/dist/features/tanstack-form/index.mjs +1 -1
- package/dist/features/tanstack-form/index.mjs.map +1 -1
- package/dist/{flex-twCgWyx1.cjs → flex-BsoSgWFN.cjs} +2 -2
- package/dist/{flex-twCgWyx1.cjs.map → flex-BsoSgWFN.cjs.map} +1 -1
- package/dist/{flex-BP8sTi70.mjs → flex-CeizYtXs.mjs} +2 -2
- package/dist/{flex-BP8sTi70.mjs.map → flex-CeizYtXs.mjs.map} +1 -1
- package/dist/heading-BEbpIiLg.cjs +2 -0
- package/dist/heading-BEbpIiLg.cjs.map +1 -0
- package/dist/heading-CrF1CFWS.mjs +2 -0
- package/dist/heading-CrF1CFWS.mjs.map +1 -0
- package/dist/{image-DuFv8sPr.cjs → image-BBZUipoU.cjs} +2 -2
- package/dist/{image-DuFv8sPr.cjs.map → image-BBZUipoU.cjs.map} +1 -1
- package/dist/image-CZji4Q26.mjs +2 -0
- package/dist/{image-CS_Q0WA7.mjs.map → image-CZji4Q26.mjs.map} +1 -1
- package/dist/{input-BFWWaN-v.cjs → input-BoMJaF_N.cjs} +2 -2
- package/dist/{input-BFWWaN-v.cjs.map → input-BoMJaF_N.cjs.map} +1 -1
- package/dist/{input-DBtIgQB6.mjs → input-DMjPBcJO.mjs} +2 -2
- package/dist/{input-DBtIgQB6.mjs.map → input-DMjPBcJO.mjs.map} +1 -1
- package/dist/{input-B65h-l45.d.cts → input-DszdZdbJ.d.cts} +7 -7
- package/dist/{input-C6Q4vGNC.d.mts → input-Dv7UKl6Z.d.mts} +7 -7
- package/dist/layouts/cms-layout/index.cjs +1 -1
- package/dist/layouts/cms-layout/index.mjs +1 -1
- package/dist/layouts/flex.cjs +1 -1
- package/dist/layouts/flex.d.cts +8 -8
- package/dist/layouts/flex.d.mts +12 -12
- package/dist/layouts/flex.mjs +1 -1
- package/dist/layouts/payment-layout/index.cjs +1 -1
- package/dist/layouts/payment-layout/index.mjs +1 -1
- package/dist/pages/FeatureDeveloping.cjs +1 -1
- package/dist/pages/FeatureDeveloping.d.cts +2 -2
- package/dist/pages/FeatureDeveloping.d.mts +2 -2
- package/dist/pages/FeatureDeveloping.mjs +1 -1
- package/dist/pages/FeatureFixing.cjs +1 -1
- package/dist/pages/FeatureFixing.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.mts +2 -2
- package/dist/pages/FeatureFixing.mjs +1 -1
- package/dist/pages/NotAuthorized.cjs +1 -1
- package/dist/pages/NotAuthorized.d.cts +2 -2
- package/dist/pages/NotAuthorized.d.mts +2 -2
- package/dist/pages/NotAuthorized.mjs +1 -1
- package/dist/pages/NotFound.cjs +1 -1
- package/dist/pages/NotFound.d.cts +2 -2
- package/dist/pages/NotFound.d.mts +2 -2
- package/dist/pages/NotFound.mjs +1 -1
- package/dist/paragraph-Co2e-y5c.cjs +2 -0
- package/dist/paragraph-Co2e-y5c.cjs.map +1 -0
- package/dist/paragraph-DmiXlAnE.mjs +2 -0
- package/dist/paragraph-DmiXlAnE.mjs.map +1 -0
- package/dist/{resizable-mlGS6Zto.cjs → resizable-B8tRShQI.cjs} +2 -2
- package/dist/{resizable-mlGS6Zto.cjs.map → resizable-B8tRShQI.cjs.map} +1 -1
- package/dist/{resizable-DXHfkbaz.mjs → resizable-RPObV6jc.mjs} +2 -2
- package/dist/{resizable-DXHfkbaz.mjs.map → resizable-RPObV6jc.mjs.map} +1 -1
- package/dist/systems/google.cjs +1 -1
- package/dist/systems/google.mjs +1 -1
- package/dist/{textarea-COQoSVSc.cjs → textarea-Dlwbg6TY.cjs} +2 -2
- package/dist/{textarea-COQoSVSc.cjs.map → textarea-Dlwbg6TY.cjs.map} +1 -1
- package/dist/{textarea-bLtmb71c.mjs → textarea-RjL2DtNf.mjs} +2 -2
- package/dist/{textarea-bLtmb71c.mjs.map → textarea-RjL2DtNf.mjs.map} +1 -1
- package/dist/typography/paragraph.cjs +1 -1
- package/dist/typography/paragraph.d.cts +10 -20
- package/dist/typography/paragraph.d.mts +10 -20
- 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 +4 -3
- package/dist/typography/title.d.mts +4 -3
- 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.d.cts +12 -12
- package/dist/ui/alert-dialog.d.mts +12 -12
- package/dist/ui/alert-dialog.mjs +1 -1
- package/dist/ui/alert.cjs +1 -1
- package/dist/ui/alert.d.cts +5 -5
- package/dist/ui/alert.d.mts +7 -7
- package/dist/ui/alert.mjs +1 -1
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.mts +2 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.mts +4 -4
- package/dist/ui/badge.d.cts +5 -5
- package/dist/ui/badge.d.mts +5 -5
- package/dist/ui/breadcrumb.cjs +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.mts +8 -8
- package/dist/ui/breadcrumb.mjs +1 -1
- package/dist/ui/button-group.cjs +1 -1
- package/dist/ui/button-group.d.cts +6 -6
- package/dist/ui/button-group.d.mts +6 -6
- package/dist/ui/button-group.mjs +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.mjs +1 -1
- package/dist/ui/buttons/edit.cjs +1 -1
- package/dist/ui/buttons/edit.mjs +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.mjs +1 -1
- package/dist/ui/buttons/trash.cjs +1 -1
- package/dist/ui/buttons/trash.mjs +1 -1
- package/dist/ui/buttons/upload-image.cjs +1 -1
- package/dist/ui/buttons/upload-image.mjs +1 -1
- package/dist/ui/calendar.cjs +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.mts +4 -4
- package/dist/ui/calendar.mjs +1 -1
- package/dist/ui/card.cjs +1 -1
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.mts +8 -8
- package/dist/ui/card.mjs +1 -1
- package/dist/ui/carousel.cjs +1 -1
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.mts +7 -7
- package/dist/ui/carousel.mjs +1 -1
- package/dist/ui/checkbox.d.cts +2 -2
- package/dist/ui/checkbox.d.mts +2 -2
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.mts +4 -4
- package/dist/ui/command.cjs +1 -1
- package/dist/ui/command.d.cts +11 -11
- package/dist/ui/command.d.mts +11 -11
- package/dist/ui/command.mjs +1 -1
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.mts +16 -16
- 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.d.cts +11 -11
- package/dist/ui/drawer.d.mts +11 -11
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.mts +16 -16
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.mts +9 -9
- package/dist/ui/field.cjs +1 -1
- package/dist/ui/field.d.cts +13 -13
- package/dist/ui/field.d.mts +24 -24
- package/dist/ui/field.mjs +1 -1
- package/dist/ui/file-uploader.cjs +2 -2
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.mts +2 -2
- package/dist/ui/file-uploader.mjs +2 -2
- package/dist/ui/form.cjs +1 -1
- package/dist/ui/form.d.cts +11 -11
- package/dist/ui/form.d.mts +11 -11
- package/dist/ui/form.mjs +1 -1
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.mts +4 -4
- package/dist/ui/image.cjs +1 -1
- package/dist/ui/image.mjs +1 -1
- package/dist/ui/input-otp.cjs +1 -1
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.mts +5 -5
- package/dist/ui/input-otp.mjs +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.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.mts +3 -3
- package/dist/ui/inputs/search-input.mjs +1 -1
- package/dist/ui/item.cjs +1 -1
- package/dist/ui/item.d.cts +16 -16
- package/dist/ui/item.d.mts +16 -16
- package/dist/ui/item.mjs +1 -1
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.mts +2 -2
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.mts +17 -17
- package/dist/ui/multi-select.cjs +1 -1
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.mts +3 -3
- package/dist/ui/multi-select.mjs +1 -1
- package/dist/ui/multi-select.mjs.map +1 -1
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.mts +11 -11
- package/dist/ui/pagination.cjs +1 -1
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.mts +9 -9
- package/dist/ui/pagination.mjs +1 -1
- package/dist/ui/popover.d.cts +6 -6
- package/dist/ui/popover.d.mts +6 -6
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.mts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.mts +3 -3
- package/dist/ui/resizable.cjs +1 -1
- package/dist/ui/resizable.d.cts +9 -9
- package/dist/ui/resizable.d.mts +9 -9
- package/dist/ui/resizable.mjs +1 -1
- package/dist/ui/scroll-area.cjs +1 -1
- package/dist/ui/scroll-area.d.cts +6 -6
- package/dist/ui/scroll-area.d.mts +6 -6
- package/dist/ui/scroll-area.mjs +1 -1
- package/dist/ui/select.d.cts +9 -9
- package/dist/ui/select.d.mts +9 -9
- package/dist/ui/separator.d.cts +2 -2
- package/dist/ui/separator.d.mts +2 -2
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.mts +9 -9
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.d.cts +29 -29
- package/dist/ui/sidebar.d.mts +29 -29
- package/dist/ui/sidebar.mjs +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.mts +2 -2
- package/dist/ui/slider.cjs +1 -1
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.mts +2 -2
- package/dist/ui/slider.mjs +1 -1
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.mts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.mts +2 -2
- package/dist/ui/table.cjs +1 -1
- package/dist/ui/table.d.cts +18 -18
- package/dist/ui/table.d.mts +18 -18
- package/dist/ui/table.mjs +1 -1
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.mts +5 -5
- package/dist/ui/textarea.cjs +1 -1
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.mts +2 -2
- package/dist/ui/textarea.mjs +1 -1
- package/dist/ui/toggle-group.cjs +1 -1
- package/dist/ui/toggle-group.d.cts +3 -3
- package/dist/ui/toggle-group.d.mts +3 -3
- package/dist/ui/toggle-group.mjs +1 -1
- package/dist/ui/toggle.d.cts +3 -3
- package/dist/ui/toggle.d.mts +5 -5
- package/dist/ui/tooltip.d.cts +5 -5
- package/dist/ui/tooltip.d.mts +5 -5
- package/package.json +4 -3
- package/styles/theme.css +17 -17
- package/dist/button-CpEejahy.cjs +0 -2
- package/dist/button-CpEejahy.cjs.map +0 -1
- package/dist/button-D54KOmb7.mjs +0 -2
- package/dist/button-D54KOmb7.mjs.map +0 -1
- package/dist/button.variants-CS-Cmarr.cjs +0 -2
- package/dist/button.variants-CS-Cmarr.cjs.map +0 -1
- package/dist/button.variants-DRWf66hR.mjs +0 -2
- package/dist/button.variants-DRWf66hR.mjs.map +0 -1
- package/dist/dist-BudM04oj.cjs +0 -2
- package/dist/dist-CvmzZ_6C.mjs +0 -2
- package/dist/heading--VmdIi7C.mjs +0 -2
- package/dist/heading--VmdIi7C.mjs.map +0 -1
- package/dist/heading-BEm5CCSE.cjs +0 -2
- package/dist/heading-BEm5CCSE.cjs.map +0 -1
- package/dist/image-CS_Q0WA7.mjs +0 -2
- package/dist/paragraph-B72bHMf7.cjs +0 -2
- package/dist/paragraph-B72bHMf7.cjs.map +0 -1
- package/dist/paragraph-moBSTPmT.mjs +0 -2
- package/dist/paragraph-moBSTPmT.mjs.map +0 -1
package/dist/ui/resizable.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react18 from "react";
|
|
2
2
|
import * as node_modules_react_resizable_panels_dist_declarations_src_types0 from "node_modules/react-resizable-panels/dist/declarations/src/types";
|
|
3
3
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import * as ResizablePrimitive from "react-resizable-panels";
|
|
|
6
6
|
type TResizableHandle = React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
7
7
|
withHandle?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const ResizablePanelGroup:
|
|
9
|
+
declare const ResizablePanelGroup: react18.NamedExoticComponent<Omit<react18.HTMLAttributes<keyof HTMLElementTagNameMap>, "id"> & {
|
|
10
10
|
autoSaveId?: string | null;
|
|
11
11
|
className?: string;
|
|
12
12
|
direction: node_modules_react_resizable_panels_dist_declarations_src_types0.Direction;
|
|
@@ -14,13 +14,13 @@ declare const ResizablePanelGroup: react21.NamedExoticComponent<Omit<react21.HTM
|
|
|
14
14
|
keyboardResizeBy?: number | null;
|
|
15
15
|
onLayout?: ResizablePrimitive.PanelGroupOnLayout | null;
|
|
16
16
|
storage?: ResizablePrimitive.PanelGroupStorage;
|
|
17
|
-
style?:
|
|
17
|
+
style?: react18.CSSProperties;
|
|
18
18
|
tagName?: keyof HTMLElementTagNameMap;
|
|
19
19
|
dir?: "auto" | "ltr" | "rtl" | undefined;
|
|
20
20
|
} & {
|
|
21
|
-
children?:
|
|
22
|
-
} &
|
|
23
|
-
declare const ResizablePanel:
|
|
21
|
+
children?: react18.ReactNode | undefined;
|
|
22
|
+
} & react18.RefAttributes<ResizablePrimitive.ImperativePanelGroupHandle>>;
|
|
23
|
+
declare const ResizablePanel: react18.NamedExoticComponent<Omit<react18.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLInputElement | HTMLDivElement | HTMLParagraphElement | HTMLFieldSetElement | HTMLLegendElement | HTMLLabelElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement>, "id" | "onResize"> & {
|
|
24
24
|
className?: string;
|
|
25
25
|
collapsedSize?: number | undefined;
|
|
26
26
|
collapsible?: boolean | undefined;
|
|
@@ -35,9 +35,9 @@ declare const ResizablePanel: react21.NamedExoticComponent<Omit<react21.HTMLAttr
|
|
|
35
35
|
style?: object;
|
|
36
36
|
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
37
37
|
} & {
|
|
38
|
-
children?:
|
|
39
|
-
} &
|
|
40
|
-
declare const ResizableHandle:
|
|
38
|
+
children?: react18.ReactNode | undefined;
|
|
39
|
+
} & react18.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
40
|
+
declare const ResizableHandle: react18.NamedExoticComponent<TResizableHandle>;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
43
43
|
//# sourceMappingURL=resizable.d.cts.map
|
package/dist/ui/resizable.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react20 from "react";
|
|
2
2
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
3
3
|
import * as node_modules_react_resizable_panels_dist_declarations_src_types0 from "node_modules/react-resizable-panels/dist/declarations/src/types";
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import * as node_modules_react_resizable_panels_dist_declarations_src_types0 fro
|
|
|
6
6
|
type TResizableHandle = React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
7
7
|
withHandle?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const ResizablePanelGroup:
|
|
9
|
+
declare const ResizablePanelGroup: react20.NamedExoticComponent<Omit<react20.HTMLAttributes<keyof HTMLElementTagNameMap>, "id"> & {
|
|
10
10
|
autoSaveId?: string | null;
|
|
11
11
|
className?: string;
|
|
12
12
|
direction: node_modules_react_resizable_panels_dist_declarations_src_types0.Direction;
|
|
@@ -14,13 +14,13 @@ declare const ResizablePanelGroup: react26.NamedExoticComponent<Omit<react26.HTM
|
|
|
14
14
|
keyboardResizeBy?: number | null;
|
|
15
15
|
onLayout?: ResizablePrimitive.PanelGroupOnLayout | null;
|
|
16
16
|
storage?: ResizablePrimitive.PanelGroupStorage;
|
|
17
|
-
style?:
|
|
17
|
+
style?: react20.CSSProperties;
|
|
18
18
|
tagName?: keyof HTMLElementTagNameMap;
|
|
19
19
|
dir?: "auto" | "ltr" | "rtl" | undefined;
|
|
20
20
|
} & {
|
|
21
|
-
children?:
|
|
22
|
-
} &
|
|
23
|
-
declare const ResizablePanel:
|
|
21
|
+
children?: react20.ReactNode | undefined;
|
|
22
|
+
} & react20.RefAttributes<ResizablePrimitive.ImperativePanelGroupHandle>>;
|
|
23
|
+
declare const ResizablePanel: react20.NamedExoticComponent<Omit<react20.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLInputElement | HTMLDivElement | HTMLParagraphElement | HTMLFieldSetElement | HTMLLegendElement | HTMLLabelElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement>, "id" | "onResize"> & {
|
|
24
24
|
className?: string;
|
|
25
25
|
collapsedSize?: number | undefined;
|
|
26
26
|
collapsible?: boolean | undefined;
|
|
@@ -35,9 +35,9 @@ declare const ResizablePanel: react26.NamedExoticComponent<Omit<react26.HTMLAttr
|
|
|
35
35
|
style?: object;
|
|
36
36
|
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
37
37
|
} & {
|
|
38
|
-
children?:
|
|
39
|
-
} &
|
|
40
|
-
declare const ResizableHandle:
|
|
38
|
+
children?: react20.ReactNode | undefined;
|
|
39
|
+
} & react20.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
40
|
+
declare const ResizableHandle: react20.NamedExoticComponent<TResizableHandle>;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
43
43
|
//# sourceMappingURL=resizable.d.mts.map
|
package/dist/ui/resizable.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{n as e,r as t,t as n}from"../resizable-
|
|
1
|
+
"use client";import{n as e,r as t,t as n}from"../resizable-RPObV6jc.mjs";export{n as ResizableHandle,e as ResizablePanel,t as ResizablePanelGroup};
|
package/dist/ui/scroll-area.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`@customafk/react-toolkit/utils`),n=require(`react`),r=require(`react
|
|
1
|
+
"use client";const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`@customafk/react-toolkit/utils`),n=require(`react/jsx-runtime`),r=require(`react`),i=require(`radix-ui`);const a=(0,r.memo)(({className:e,children:r,ref:a,onScroll:s,...c})=>(0,n.jsxs)(i.ScrollArea.Root,{"data-slot":`scroll-area`,className:(0,t.cn)(`relative overflow-hidden`,e),...c,children:[(0,n.jsx)(i.ScrollArea.Viewport,{ref:a,className:`size-full rounded-[inherit]`,onScroll:s,children:r}),(0,n.jsx)(o,{}),(0,n.jsx)(i.ScrollArea.Corner,{})]}));a.displayName=`ScrollArea`;const o=(0,r.memo)(({className:e,orientation:r=`vertical`,...a})=>(0,n.jsx)(i.ScrollArea.ScrollAreaScrollbar,{"data-slot":`scroll-area-scrollbar`,orientation:r,className:(0,t.cn)(`flex touch-none select-none border-border-weak p-px transition-colors`,r===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,r===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,e),...a,children:(0,n.jsx)(i.ScrollArea.ScrollAreaThumb,{className:`relative flex-1 rounded-full bg-border-weak`})}));o.displayName=`ScrollBar`,exports.ScrollArea=a,exports.ScrollBar=o;
|
|
2
2
|
//# sourceMappingURL=scroll-area.cjs.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime141 from "react/jsx-runtime";
|
|
2
|
+
import * as react14 from "react";
|
|
3
3
|
import { ScrollArea as ScrollArea$1 } from "radix-ui";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/scroll-area.d.ts
|
|
6
|
-
declare const ScrollArea:
|
|
6
|
+
declare const ScrollArea: react14.MemoExoticComponent<({
|
|
7
7
|
className,
|
|
8
8
|
children,
|
|
9
9
|
ref,
|
|
10
10
|
onScroll,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof ScrollArea$1.Root>) =>
|
|
13
|
-
declare const ScrollBar:
|
|
12
|
+
}: React.ComponentProps<typeof ScrollArea$1.Root>) => react_jsx_runtime141.JSX.Element>;
|
|
13
|
+
declare const ScrollBar: react14.MemoExoticComponent<({
|
|
14
14
|
className,
|
|
15
15
|
orientation,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>) =>
|
|
17
|
+
}: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>) => react_jsx_runtime141.JSX.Element>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { ScrollArea, ScrollBar };
|
|
20
20
|
//# sourceMappingURL=scroll-area.d.cts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime276 from "react/jsx-runtime";
|
|
2
|
+
import * as react34 from "react";
|
|
3
3
|
import { ScrollArea as ScrollArea$1 } from "radix-ui";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/scroll-area.d.ts
|
|
6
|
-
declare const ScrollArea:
|
|
6
|
+
declare const ScrollArea: react34.MemoExoticComponent<({
|
|
7
7
|
className,
|
|
8
8
|
children,
|
|
9
9
|
ref,
|
|
10
10
|
onScroll,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof ScrollArea$1.Root>) =>
|
|
13
|
-
declare const ScrollBar:
|
|
12
|
+
}: React.ComponentProps<typeof ScrollArea$1.Root>) => react_jsx_runtime276.JSX.Element>;
|
|
13
|
+
declare const ScrollBar: react34.MemoExoticComponent<({
|
|
14
14
|
className,
|
|
15
15
|
orientation,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>) =>
|
|
17
|
+
}: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>) => react_jsx_runtime276.JSX.Element>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { ScrollArea, ScrollBar };
|
|
20
20
|
//# sourceMappingURL=scroll-area.d.mts.map
|
package/dist/ui/scroll-area.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{cn as e}from"@customafk/react-toolkit/utils";import{
|
|
1
|
+
"use client";import{cn as e}from"@customafk/react-toolkit/utils";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{memo as r}from"react";import{ScrollArea as i}from"radix-ui";const a=r(({className:r,children:a,ref:s,onScroll:c,...l})=>n(i.Root,{"data-slot":`scroll-area`,className:e(`relative overflow-hidden`,r),...l,children:[t(i.Viewport,{ref:s,className:`size-full rounded-[inherit]`,onScroll:c,children:a}),t(o,{}),t(i.Corner,{})]}));a.displayName=`ScrollArea`;const o=r(({className:n,orientation:r=`vertical`,...a})=>t(i.ScrollAreaScrollbar,{"data-slot":`scroll-area-scrollbar`,orientation:r,className:e(`flex touch-none select-none border-border-weak p-px transition-colors`,r===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,r===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,n),...a,children:t(i.ScrollAreaThumb,{className:`relative flex-1 rounded-full bg-border-weak`})}));o.displayName=`ScrollBar`;export{a as ScrollArea,o as ScrollBar};
|
|
2
2
|
//# sourceMappingURL=scroll-area.mjs.map
|
package/dist/ui/select.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime217 from "react/jsx-runtime";
|
|
2
2
|
import { Select as Select$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/select.d.ts
|
|
5
5
|
declare function Select({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof Select$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime217.JSX.Element;
|
|
8
8
|
declare function SelectGroup({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Select$1.Group>):
|
|
10
|
+
}: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime217.JSX.Element;
|
|
11
11
|
declare function SelectValue({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Select$1.Value>):
|
|
13
|
+
}: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime217.JSX.Element;
|
|
14
14
|
declare function SelectTrigger({
|
|
15
15
|
className,
|
|
16
16
|
size,
|
|
@@ -18,26 +18,26 @@ declare function SelectTrigger({
|
|
|
18
18
|
...props
|
|
19
19
|
}: React.ComponentProps<typeof Select$1.Trigger> & {
|
|
20
20
|
size?: 'sm' | 'default';
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime217.JSX.Element;
|
|
22
22
|
declare function SelectContent({
|
|
23
23
|
className,
|
|
24
24
|
children,
|
|
25
25
|
position,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<typeof Select$1.Content>):
|
|
27
|
+
}: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime217.JSX.Element;
|
|
28
28
|
declare function SelectLabel({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<typeof Select$1.Label>):
|
|
31
|
+
}: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime217.JSX.Element;
|
|
32
32
|
declare function SelectItem({
|
|
33
33
|
className,
|
|
34
34
|
children,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof Select$1.Item>):
|
|
36
|
+
}: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime217.JSX.Element;
|
|
37
37
|
declare function SelectSeparator({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof Select$1.Separator>):
|
|
40
|
+
}: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime217.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
|
|
43
43
|
//# sourceMappingURL=select.d.cts.map
|
package/dist/ui/select.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime279 from "react/jsx-runtime";
|
|
2
2
|
import { Select as Select$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/select.d.ts
|
|
5
5
|
declare function Select({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof Select$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime279.JSX.Element;
|
|
8
8
|
declare function SelectGroup({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Select$1.Group>):
|
|
10
|
+
}: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime279.JSX.Element;
|
|
11
11
|
declare function SelectValue({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Select$1.Value>):
|
|
13
|
+
}: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime279.JSX.Element;
|
|
14
14
|
declare function SelectTrigger({
|
|
15
15
|
className,
|
|
16
16
|
size,
|
|
@@ -18,26 +18,26 @@ declare function SelectTrigger({
|
|
|
18
18
|
...props
|
|
19
19
|
}: React.ComponentProps<typeof Select$1.Trigger> & {
|
|
20
20
|
size?: 'sm' | 'default';
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime279.JSX.Element;
|
|
22
22
|
declare function SelectContent({
|
|
23
23
|
className,
|
|
24
24
|
children,
|
|
25
25
|
position,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<typeof Select$1.Content>):
|
|
27
|
+
}: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime279.JSX.Element;
|
|
28
28
|
declare function SelectLabel({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<typeof Select$1.Label>):
|
|
31
|
+
}: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime279.JSX.Element;
|
|
32
32
|
declare function SelectItem({
|
|
33
33
|
className,
|
|
34
34
|
children,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof Select$1.Item>):
|
|
36
|
+
}: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime279.JSX.Element;
|
|
37
37
|
declare function SelectSeparator({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof Select$1.Separator>):
|
|
40
|
+
}: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime279.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
|
|
43
43
|
//# sourceMappingURL=select.d.mts.map
|
package/dist/ui/separator.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime216 from "react/jsx-runtime";
|
|
2
2
|
import { Separator as Separator$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/separator.d.ts
|
|
@@ -7,7 +7,7 @@ declare function Separator({
|
|
|
7
7
|
orientation,
|
|
8
8
|
decorative,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Separator$1.Root>):
|
|
10
|
+
}: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime216.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Separator };
|
|
13
13
|
//# sourceMappingURL=separator.d.cts.map
|
package/dist/ui/separator.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime113 from "react/jsx-runtime";
|
|
2
2
|
import { Separator as Separator$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/separator.d.ts
|
|
@@ -7,7 +7,7 @@ declare function Separator({
|
|
|
7
7
|
orientation,
|
|
8
8
|
decorative,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Separator$1.Root>):
|
|
10
|
+
}: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime113.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Separator };
|
|
13
13
|
//# sourceMappingURL=separator.d.mts.map
|
package/dist/ui/sheet.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime248 from "react/jsx-runtime";
|
|
2
2
|
import { Dialog } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/sheet.d.ts
|
|
5
5
|
declare function Sheet({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof Dialog.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime248.JSX.Element;
|
|
8
8
|
declare function SheetTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Dialog.Trigger>):
|
|
10
|
+
}: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime248.JSX.Element;
|
|
11
11
|
declare function SheetClose({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Dialog.Close>):
|
|
13
|
+
}: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime248.JSX.Element;
|
|
14
14
|
declare function SheetContent({
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
@@ -18,23 +18,23 @@ declare function SheetContent({
|
|
|
18
18
|
...props
|
|
19
19
|
}: React.ComponentProps<typeof Dialog.Content> & {
|
|
20
20
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime248.JSX.Element;
|
|
22
22
|
declare function SheetHeader({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<'div'>):
|
|
25
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime248.JSX.Element;
|
|
26
26
|
declare function SheetFooter({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'div'>):
|
|
29
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime248.JSX.Element;
|
|
30
30
|
declare function SheetTitle({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Dialog.Title>):
|
|
33
|
+
}: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime248.JSX.Element;
|
|
34
34
|
declare function SheetDescription({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Dialog.Description>):
|
|
37
|
+
}: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime248.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
40
40
|
//# sourceMappingURL=sheet.d.cts.map
|
package/dist/ui/sheet.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime158 from "react/jsx-runtime";
|
|
2
2
|
import { Dialog } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/sheet.d.ts
|
|
5
5
|
declare function Sheet({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof Dialog.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime158.JSX.Element;
|
|
8
8
|
declare function SheetTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Dialog.Trigger>):
|
|
10
|
+
}: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime158.JSX.Element;
|
|
11
11
|
declare function SheetClose({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Dialog.Close>):
|
|
13
|
+
}: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime158.JSX.Element;
|
|
14
14
|
declare function SheetContent({
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
@@ -18,23 +18,23 @@ declare function SheetContent({
|
|
|
18
18
|
...props
|
|
19
19
|
}: React.ComponentProps<typeof Dialog.Content> & {
|
|
20
20
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime158.JSX.Element;
|
|
22
22
|
declare function SheetHeader({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<'div'>):
|
|
25
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime158.JSX.Element;
|
|
26
26
|
declare function SheetFooter({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'div'>):
|
|
29
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime158.JSX.Element;
|
|
30
30
|
declare function SheetTitle({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Dialog.Title>):
|
|
33
|
+
}: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime158.JSX.Element;
|
|
34
34
|
declare function SheetDescription({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Dialog.Description>):
|
|
37
|
+
}: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime158.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
40
40
|
//# sourceMappingURL=sheet.d.mts.map
|
package/dist/ui/sidebar.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-CS-Cmarr.cjs`);const t=require(`../button-CpEejahy.cjs`),n=require(`../skeleton-CHympz8k.cjs`),r=require(`../tooltip-DC6i1A25.cjs`),i=require(`../separator-C3ip6sbh.cjs`),a=require(`../input-BFWWaN-v.cjs`),o=require(`./drawer.cjs`);let s=require(`@customafk/react-toolkit/utils`),c=require(`class-variance-authority`),l=require(`react`),u=require(`react/jsx-runtime`),d=require(`lucide-react`),f=require(`radix-ui`),p=require(`@customafk/react-toolkit/hooks/useMobile`);const m=`sidebar_state`,h=3600*24*7,g=`16rem`,_=`18rem`,v=`3rem`,y=`b`,b=(0,l.createContext)(null);function x(){let e=(0,l.use)(b);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function S({defaultOpen:e=!0,open:t,onOpenChange:n,className:i,style:a,children:o,...c}){let d=(0,p.useIsMobile)(),[f,m]=(0,l.useState)(!1),[h,g]=(0,l.useState)(e),_=t??h,v=(0,l.useCallback)(e=>{let t=typeof e==`function`?e(_):e;n?n(t):g(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,_]),y=(0,l.useCallback)(()=>d?m(e=>!e):v(e=>!e),[d,v,m]);(0,l.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]);let x=_?`expanded`:`collapsed`,S=(0,l.useMemo)(()=>({state:x,isMobile:d,toggleSidebar:y,open:_,setOpen:v,openMobile:f,setOpenMobile:m}),[x,_,v,d,f,m,y]);return(0,u.jsx)(b.Provider,{value:S,children:(0,u.jsx)(r.r,{delayDuration:0,children:(0,u.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,s.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,i),...c,children:o})})})}function C({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:c,state:l,openMobile:d,setOpenMobile:f}=x();return n===`none`?(0,u.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,s.cn)(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):c?(0,u.jsx)(o.Drawer,{open:d,onOpenChange:f,direction:`left`,children:(0,u.jsxs)(o.DrawerContent,{"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:[(0,u.jsxs)(o.DrawerHeader,{className:`sr-only`,children:[(0,u.jsx)(o.DrawerContent,{children:`Sidebar`}),(0,u.jsx)(o.DrawerDescription,{children:`Displays the mobile sidebar.`})]}),(0,u.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,u.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":l,"data-collapsible":l===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,u.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,s.cn)(`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)`)}),(0,u.jsx)(`div`,{"data-slot":`sidebar-container`,className:(0,s.cn)(`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:(0,u.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,s.cn)(`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 w({className:e,onClick:n,...r}){let{toggleSidebar:i}=x();return(0,u.jsxs)(t.t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:(0,s.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,u.jsx)(d.MenuIcon,{className:`!size-6`}),(0,u.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function T({className:e,...t}){let{toggleSidebar:n}=x();return(0,u.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:(0,s.cn)(`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 E({className:e,children:t,...n}){return(0,u.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,s.cn)(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[(0,u.jsx)(`div`,{className:`h-14 w-full`}),(0,u.jsx)(`div`,{className:(0,s.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function D({className:e,...t}){return(0,u.jsx)(a.t,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:(0,s.cn)(`bg-background h-8 w-full shadow-none`,e),...t})}function O({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function k({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function A({className:e,...t}){return(0,u.jsx)(i.t,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:(0,s.cn)(`bg-sidebar-border mx-2 w-auto`,e),...t})}function j({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,s.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function M({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,s.cn)(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function N({className:e,asChild:t=!1,...n}){return(0,u.jsx)(t?f.Slot.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,s.cn)(`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 P({className:e,asChild:t=!1,...n}){return(0,u.jsx)(t?f.Slot.Slot:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:(0,s.cn)(`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 F({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,s.cn)(`w-full text-sm`,e),...t})}function I({className:e,...t}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,s.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function L({className:e,...t}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,s.cn)(`group/menu-item relative`,e),...t})}const R=(0,c.cva)([`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 z({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:i=`default`,tooltip:a,className:o,...c}){let l=e?f.Slot.Slot:`button`,{isMobile:d,state:p}=x(),m=(0,u.jsx)(l,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":i,"data-active":t,className:(0,s.cn)(R({variant:n,size:i}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,u.jsxs)(r.t,{children:[(0,u.jsx)(r.i,{asChild:!0,children:m}),(0,u.jsx)(r.n,{side:`right`,align:`center`,hidden:p!==`collapsed`||d,...a})]})):m}function B({className:e,asChild:t=!1,showOnHover:n=!1,...r}){return(0,u.jsx)(t?f.Slot.Slot:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:(0,s.cn)(`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 V({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:(0,s.cn)(`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 H({className:e,showIcon:t=!1,...r}){let i=(0,l.useMemo)(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,u.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:(0,s.cn)(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[t&&(0,u.jsx)(n.t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,u.jsx)(n.t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function U({className:e,...t}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:(0,s.cn)(`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 W({className:e,...t}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:(0,s.cn)(`group/menu-sub-item relative`,e),...t})}function G({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,u.jsx)(e?f.Slot.Slot:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:(0,s.cn)(`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})}exports.Sidebar=C,exports.SidebarContent=j,exports.SidebarFooter=k,exports.SidebarGroup=M,exports.SidebarGroupAction=P,exports.SidebarGroupContent=F,exports.SidebarGroupLabel=N,exports.SidebarHeader=O,exports.SidebarInput=D,exports.SidebarInset=E,exports.SidebarMenu=I,exports.SidebarMenuAction=B,exports.SidebarMenuBadge=V,exports.SidebarMenuButton=z,exports.SidebarMenuItem=L,exports.SidebarMenuSkeleton=H,exports.SidebarMenuSub=U,exports.SidebarMenuSubButton=G,exports.SidebarMenuSubItem=W,exports.SidebarProvider=S,exports.SidebarRail=T,exports.SidebarSeparator=A,exports.SidebarTrigger=w,exports.useSidebar=x;
|
|
1
|
+
"use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-aqkTmzFu.cjs`);const t=require(`../button-Cd7YtPlT.cjs`),n=require(`../skeleton-CHympz8k.cjs`),r=require(`../tooltip-DC6i1A25.cjs`),i=require(`../separator-C3ip6sbh.cjs`),a=require(`../input-BoMJaF_N.cjs`),o=require(`./drawer.cjs`);let s=require(`@customafk/react-toolkit/utils`),c=require(`class-variance-authority`),l=require(`react/jsx-runtime`),u=require(`lucide-react`),d=require(`react`),f=require(`radix-ui`),p=require(`@customafk/react-toolkit/hooks/useMobile`);const m=`sidebar_state`,h=3600*24*7,g=`16rem`,_=`18rem`,v=`3rem`,y=`b`,b=(0,d.createContext)(null);function x(){let e=(0,d.use)(b);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function S({defaultOpen:e=!0,open:t,onOpenChange:n,className:i,style:a,children:o,...c}){let u=(0,p.useIsMobile)(),[f,m]=(0,d.useState)(!1),[h,g]=(0,d.useState)(e),_=t??h,v=(0,d.useCallback)(e=>{let t=typeof e==`function`?e(_):e;n?n(t):g(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,_]),y=(0,d.useCallback)(()=>u?m(e=>!e):v(e=>!e),[u,v,m]);(0,d.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]);let x=_?`expanded`:`collapsed`,S=(0,d.useMemo)(()=>({state:x,isMobile:u,toggleSidebar:y,open:_,setOpen:v,openMobile:f,setOpenMobile:m}),[x,_,v,u,f,m,y]);return(0,l.jsx)(b.Provider,{value:S,children:(0,l.jsx)(r.r,{delayDuration:0,children:(0,l.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,s.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,i),...c,children:o})})})}function C({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:c,state:u,openMobile:d,setOpenMobile:f}=x();return n===`none`?(0,l.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,s.cn)(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):c?(0,l.jsx)(o.Drawer,{open:d,onOpenChange:f,direction:`left`,children:(0,l.jsxs)(o.DrawerContent,{"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:[(0,l.jsxs)(o.DrawerHeader,{className:`sr-only`,children:[(0,l.jsx)(o.DrawerContent,{children:`Sidebar`}),(0,l.jsx)(o.DrawerDescription,{children:`Displays the mobile sidebar.`})]}),(0,l.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,l.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":u,"data-collapsible":u===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,l.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,s.cn)(`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)`)}),(0,l.jsx)(`div`,{"data-slot":`sidebar-container`,className:(0,s.cn)(`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:(0,l.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,s.cn)(`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 w({className:e,onClick:n,...r}){let{toggleSidebar:i}=x();return(0,l.jsxs)(t.t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:(0,s.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,l.jsx)(u.MenuIcon,{className:`!size-6`}),(0,l.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function T({className:e,...t}){let{toggleSidebar:n}=x();return(0,l.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:(0,s.cn)(`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 E({className:e,children:t,...n}){return(0,l.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,s.cn)(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[(0,l.jsx)(`div`,{className:`h-14 w-full`}),(0,l.jsx)(`div`,{className:(0,s.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function D({className:e,...t}){return(0,l.jsx)(a.t,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:(0,s.cn)(`bg-background h-8 w-full shadow-none`,e),...t})}function O({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function k({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function A({className:e,...t}){return(0,l.jsx)(i.t,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:(0,s.cn)(`bg-sidebar-border mx-2 w-auto`,e),...t})}function j({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,s.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function M({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,s.cn)(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function N({className:e,asChild:t=!1,...n}){return(0,l.jsx)(t?f.Slot.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,s.cn)(`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 P({className:e,asChild:t=!1,...n}){return(0,l.jsx)(t?f.Slot.Slot:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:(0,s.cn)(`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 F({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,s.cn)(`w-full text-sm`,e),...t})}function I({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,s.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function L({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,s.cn)(`group/menu-item relative`,e),...t})}const R=(0,c.cva)([`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 z({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:i=`default`,tooltip:a,className:o,...c}){let u=e?f.Slot.Slot:`button`,{isMobile:d,state:p}=x(),m=(0,l.jsx)(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":i,"data-active":t,className:(0,s.cn)(R({variant:n,size:i}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,l.jsxs)(r.t,{children:[(0,l.jsx)(r.i,{asChild:!0,children:m}),(0,l.jsx)(r.n,{side:`right`,align:`center`,hidden:p!==`collapsed`||d,...a})]})):m}function B({className:e,asChild:t=!1,showOnHover:n=!1,...r}){return(0,l.jsx)(t?f.Slot.Slot:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:(0,s.cn)(`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 V({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:(0,s.cn)(`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 H({className:e,showIcon:t=!1,...r}){let i=(0,d.useMemo)(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,l.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:(0,s.cn)(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[t&&(0,l.jsx)(n.t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,l.jsx)(n.t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function U({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:(0,s.cn)(`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 W({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:(0,s.cn)(`group/menu-sub-item relative`,e),...t})}function G({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,l.jsx)(e?f.Slot.Slot:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:(0,s.cn)(`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})}exports.Sidebar=C,exports.SidebarContent=j,exports.SidebarFooter=k,exports.SidebarGroup=M,exports.SidebarGroupAction=P,exports.SidebarGroupContent=F,exports.SidebarGroupLabel=N,exports.SidebarHeader=O,exports.SidebarInput=D,exports.SidebarInset=E,exports.SidebarMenu=I,exports.SidebarMenuAction=B,exports.SidebarMenuBadge=V,exports.SidebarMenuButton=z,exports.SidebarMenuItem=L,exports.SidebarMenuSkeleton=H,exports.SidebarMenuSub=U,exports.SidebarMenuSubButton=G,exports.SidebarMenuSubItem=W,exports.SidebarProvider=S,exports.SidebarRail=T,exports.SidebarSeparator=A,exports.SidebarTrigger=w,exports.useSidebar=x;
|
|
2
2
|
//# sourceMappingURL=sidebar.cjs.map
|