@customafk/lunas-ui 0.1.17 → 0.1.18
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/{avatar-Cp9PebV0.mjs → avatar-BNU7KL48.mjs} +1 -1
- package/dist/{avatar-Cp9PebV0.mjs.map → avatar-BNU7KL48.mjs.map} +1 -1
- package/dist/{button-BLm2W-rK.d.cts → button-C8HSrN_3.d.cts} +6 -6
- package/dist/{button-CqxqZbcQ.mjs → button-JJaTl28Z.mjs} +2 -2
- package/dist/{button-CqxqZbcQ.mjs.map → button-JJaTl28Z.mjs.map} +1 -1
- package/dist/{button-Q8sFW-l8.d.mts → button-vNDXA78a.d.mts} +4 -4
- package/dist/{button.variants-CXNnQvXs.mjs → button.variants-CgCCe7qb.mjs} +1 -1
- package/dist/{button.variants-CXNnQvXs.mjs.map → button.variants-CgCCe7qb.mjs.map} +1 -1
- package/dist/{card-BTswGEgi.mjs → card-C8fcblBB.mjs} +1 -1
- package/dist/{card-BTswGEgi.mjs.map → card-C8fcblBB.mjs.map} +1 -1
- package/dist/cards/grid-product-card.mjs +1 -1
- package/dist/cards/product-card.mjs +1 -1
- package/dist/cards/simple-card.mjs +1 -1
- package/dist/{close-Bb5Pi28f.mjs → close-B_PnUzNN.mjs} +1 -1
- package/dist/{close-Bb5Pi28f.mjs.map → close-B_PnUzNN.mjs.map} +1 -1
- package/dist/{command-D_f6JoHE.mjs → command-CtWxCsMm.mjs} +2 -2
- package/dist/{command-D_f6JoHE.mjs.map → command-CtWxCsMm.mjs.map} +1 -1
- package/dist/data-display/country.d.cts +1 -1
- package/dist/data-display/country.d.mts +1 -1
- package/dist/data-display/country.mjs +1 -1
- package/dist/data-display/date-tooltip.mjs +1 -1
- package/dist/data-display/date.mjs +1 -1
- package/dist/data-display/name.mjs +1 -1
- package/dist/data-display/phone-number.mjs +1 -1
- package/dist/data-display/role-badge.d.cts +1 -1
- package/dist/data-display/role-badge.d.mts +1 -1
- package/dist/data-display/role-badge.mjs +1 -1
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.mts +2 -2
- package/dist/data-display/user.mjs +1 -1
- package/dist/{date-DtgYKyyk.mjs → date-SmlhDFZs.mjs} +1 -1
- package/dist/{date-DtgYKyyk.mjs.map → date-SmlhDFZs.mjs.map} +1 -1
- package/dist/{dialog-D5bBgIs8.mjs → dialog-4ZJcWPar.mjs} +2 -2
- package/dist/{dialog-D5bBgIs8.mjs.map → dialog-4ZJcWPar.mjs.map} +1 -1
- package/dist/{dialog-D5WkhH7J.d.mts → dialog-CoSwDi4O.d.cts} +12 -12
- package/dist/{dialog-D4LocfVZ.d.cts → dialog-DU7tobKF.d.mts} +12 -12
- package/dist/dialogs/confirm-dialog.mjs +1 -1
- package/dist/dialogs/detail-dialog/component/sidebar.d.cts +30 -30
- package/dist/dialogs/detail-dialog/component/sidebar.d.mts +28 -28
- package/dist/dialogs/detail-dialog/component/sidebar.mjs +1 -1
- package/dist/dialogs/detail-dialog/index.mjs +1 -1
- package/dist/dialogs/error-dialog.mjs +1 -1
- package/dist/dialogs/loading-dialog.mjs +1 -1
- package/dist/{dist-1xnmIjvR.mjs → dist-D2ydYRc4.mjs} +1 -1
- package/dist/{dist-1xnmIjvR.mjs.map → dist-D2ydYRc4.mjs.map} +1 -1
- package/dist/{drawer-D8hxCiVo.mjs → drawer-B2QxYWMi.mjs} +1 -1
- package/dist/{drawer-D8hxCiVo.mjs.map → drawer-B2QxYWMi.mjs.map} +1 -1
- package/dist/{dropdown-menu-Bt3WFMXE.mjs → dropdown-menu-BwcDzb4B.mjs} +1 -1
- package/dist/{dropdown-menu-Bt3WFMXE.mjs.map → dropdown-menu-BwcDzb4B.mjs.map} +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/tanstack-form/index.mjs +1 -1
- package/dist/{image-iVki2lFP.mjs → image-xsA4ZQ-u.mjs} +2 -2
- package/dist/{image-iVki2lFP.mjs.map → image-xsA4ZQ-u.mjs.map} +1 -1
- package/dist/{input-DiGjXQJb.d.cts → input-CEwMjaj3.d.cts} +5 -5
- package/dist/{input-D-Wrz2-9.mjs → input-CYFvmWQU.mjs} +1 -1
- package/dist/{input-D-Wrz2-9.mjs.map → input-CYFvmWQU.mjs.map} +1 -1
- package/dist/{input-CUGmNdG9.d.mts → input-ttkmXaOF.d.mts} +5 -5
- package/dist/{label-D7-mzz0l.mjs → label-11tIftbr.mjs} +1 -1
- package/dist/{label-D7-mzz0l.mjs.map → label-11tIftbr.mjs.map} +1 -1
- package/dist/layouts/app-layout/index.d.cts +5 -5
- package/dist/layouts/app-layout/index.d.mts +28 -28
- package/dist/layouts/app-layout/index.mjs +1 -1
- package/dist/layouts/cms-layout/index.cjs +2 -0
- package/dist/layouts/cms-layout/index.cjs.map +1 -0
- package/dist/layouts/cms-layout/index.d.cts +20 -0
- package/dist/layouts/cms-layout/index.d.mts +20 -0
- package/dist/layouts/cms-layout/index.mjs +2 -0
- package/dist/layouts/cms-layout/index.mjs.map +1 -0
- package/dist/layouts/flex.d.cts +4 -4
- package/dist/layouts/flex.d.mts +2 -2
- package/dist/layouts/service-layout/index.d.cts +3 -3
- package/dist/layouts/service-layout/index.d.mts +15 -15
- package/dist/layouts/service-layout/index.mjs +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.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.mts +2 -2
- package/dist/pages/FeatureFixing.mjs +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.d.cts +2 -2
- package/dist/pages/NotFound.d.mts +2 -2
- package/dist/pages/NotFound.mjs +1 -1
- package/dist/{scroll-area-CROqtJiH.mjs → scroll-area-4UBa5t9-.mjs} +1 -1
- package/dist/{scroll-area-CROqtJiH.mjs.map → scroll-area-4UBa5t9-.mjs.map} +1 -1
- package/dist/{separator-D1uPzKkT.d.mts → separator-Be9cbVN8.d.mts} +3 -3
- package/dist/{separator-CZM2q-Ac.mjs → separator-Bf0gymN4.mjs} +1 -1
- package/dist/{separator-CZM2q-Ac.mjs.map → separator-Bf0gymN4.mjs.map} +1 -1
- package/dist/{separator-WeqUQUgF.d.cts → separator-DiP2uw3M.d.cts} +3 -3
- package/dist/{sheet-CUMpo5F_.mjs → sheet-oadGRiie.mjs} +1 -1
- package/dist/{sheet-CUMpo5F_.mjs.map → sheet-oadGRiie.mjs.map} +1 -1
- package/dist/{skeleton-C02GuVQz.mjs → skeleton-6MpPv0K3.mjs} +1 -1
- package/dist/{skeleton-C02GuVQz.mjs.map → skeleton-6MpPv0K3.mjs.map} +1 -1
- package/dist/{tabs-BFHJXVlX.mjs → tabs-BIo6ZB9g.mjs} +1 -1
- package/dist/{tabs-BFHJXVlX.mjs.map → tabs-BIo6ZB9g.mjs.map} +1 -1
- package/dist/{title-B6SztKEv.mjs → title-DcNd812E.mjs} +1 -1
- package/dist/{title-B6SztKEv.mjs.map → title-DcNd812E.mjs.map} +1 -1
- package/dist/{tooltip-BCmg3WjF.d.mts → tooltip-CwJnif3V.d.mts} +6 -6
- package/dist/{tooltip-B7cSlbI6.mjs → tooltip-DGiat0Dt.mjs} +1 -1
- package/dist/{tooltip-B7cSlbI6.mjs.map → tooltip-DGiat0Dt.mjs.map} +1 -1
- package/dist/{tooltip-CT8tMc9R.d.cts → tooltip-xl-O4did.d.cts} +6 -6
- package/dist/{types-CIlhkWg6.d.mts → types-BB_E2uE0.d.mts} +1 -1
- package/dist/{types-BpxD38pa.mjs → types-BQMTFD_z.mjs} +1 -1
- package/dist/{types-BpxD38pa.mjs.map → types-BQMTFD_z.mjs.map} +1 -1
- package/dist/{types-DfDk2h0N.d.cts → types-CwAGHByL.d.cts} +1 -1
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.mts +2 -2
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.mts +2 -2
- package/dist/typography/title.mjs +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.d.cts +6 -6
- package/dist/ui/alert.d.mts +6 -6
- 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/avatar.mjs +1 -1
- package/dist/ui/badge.d.cts +4 -4
- package/dist/ui/badge.d.mts +2 -2
- 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.d.cts +7 -7
- package/dist/ui/button-group.d.mts +7 -7
- package/dist/ui/button-group.mjs +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.mjs +1 -1
- package/dist/ui/buttons/edit.mjs +1 -1
- package/dist/ui/buttons/refresh.mjs +1 -1
- package/dist/ui/buttons/trash.mjs +1 -1
- package/dist/ui/buttons/upload-image.mjs +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.d.cts +8 -8
- package/dist/ui/card.d.mts +8 -8
- package/dist/ui/card.mjs +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/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.mts +4 -4
- 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.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/drawer.mjs +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.mts +16 -16
- package/dist/ui/dropdown-menu.mjs +1 -1
- package/dist/ui/empty.d.cts +7 -7
- package/dist/ui/empty.d.mts +9 -9
- package/dist/ui/field.d.cts +22 -22
- package/dist/ui/field.d.mts +13 -13
- package/dist/ui/field.mjs +1 -1
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.mts +2 -2
- package/dist/ui/file-uploader.mjs +1 -1
- package/dist/ui/form.d.cts +11 -11
- package/dist/ui/form.d.mts +7 -7
- 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.mjs +1 -1
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.mts +5 -5
- 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.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.d.cts +12 -12
- package/dist/ui/item.d.mts +12 -12
- 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/label.mjs +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.mts +17 -17
- 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/navigation-menu.d.cts +9 -9
- package/dist/ui/navigation-menu.d.mts +11 -11
- 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 +5 -5
- package/dist/ui/popover.d.mts +5 -5
- 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.d.cts +4 -4
- package/dist/ui/resizable.d.mts +4 -4
- 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 +11 -11
- package/dist/ui/select.d.mts +11 -11
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.mts +1 -1
- package/dist/ui/separator.mjs +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.mts +9 -9
- package/dist/ui/sheet.mjs +1 -1
- package/dist/ui/sidebar.d.cts +28 -28
- package/dist/ui/sidebar.d.mts +30 -30
- 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/skeleton.mjs +1 -1
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.mts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.mts +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/table.d.cts +9 -9
- package/dist/ui/table.d.mts +18 -18
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.mts +5 -5
- package/dist/ui/tabs.mjs +1 -1
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.mts +2 -2
- package/dist/ui/toggle-group.d.cts +3 -3
- package/dist/ui/toggle-group.d.mts +3 -3
- package/dist/ui/toggle.d.cts +2 -2
- package/dist/ui/toggle.d.mts +4 -4
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.mts +1 -1
- package/dist/ui/tooltip.mjs +1 -1
- package/package.json +5 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { t as Separator } from "../separator-
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import { t as Separator } from "../separator-DiP2uw3M.cjs";
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
|
|
6
6
|
//#region packages/components/ui/button-group.d.ts
|
|
7
7
|
declare const buttonGroupVariants: (props?: ({
|
|
8
8
|
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
declare function ButtonGroup({
|
|
11
11
|
className,
|
|
12
12
|
orientation,
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>):
|
|
14
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>): react_jsx_runtime16.JSX.Element;
|
|
15
15
|
declare function ButtonGroupText({
|
|
16
16
|
className,
|
|
17
17
|
asChild,
|
|
18
18
|
...props
|
|
19
19
|
}: React.ComponentProps<'div'> & {
|
|
20
20
|
asChild?: boolean;
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime16.JSX.Element;
|
|
22
22
|
declare function ButtonGroupSeparator({
|
|
23
23
|
className,
|
|
24
24
|
orientation,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Separator>):
|
|
26
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime16.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
29
29
|
//# sourceMappingURL=button-group.d.cts.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { t as Separator } from "../separator-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Separator } from "../separator-Be9cbVN8.mjs";
|
|
2
|
+
import * as react_jsx_runtime92 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region packages/components/ui/button-group.d.ts
|
|
7
7
|
declare const buttonGroupVariants: (props?: ({
|
|
8
8
|
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
10
10
|
declare function ButtonGroup({
|
|
11
11
|
className,
|
|
12
12
|
orientation,
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>):
|
|
14
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>): react_jsx_runtime92.JSX.Element;
|
|
15
15
|
declare function ButtonGroupText({
|
|
16
16
|
className,
|
|
17
17
|
asChild,
|
|
18
18
|
...props
|
|
19
19
|
}: React.ComponentProps<'div'> & {
|
|
20
20
|
asChild?: boolean;
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime92.JSX.Element;
|
|
22
22
|
declare function ButtonGroupSeparator({
|
|
23
23
|
className,
|
|
24
24
|
orientation,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Separator>):
|
|
26
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime92.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
29
29
|
//# sourceMappingURL=button-group.d.mts.map
|
package/dist/ui/button-group.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"../dist-
|
|
1
|
+
import{t as e}from"../dist-D2ydYRc4.mjs";import{t}from"../separator-Bf0gymN4.mjs";import{cn as n}from"@customafk/react-toolkit/utils";import{jsx as r}from"react/jsx-runtime";import{cva as i}from"class-variance-authority";const a=i(`flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1`,{variants:{orientation:{horizontal:`[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none`,vertical:`flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none`}},defaultVariants:{orientation:`horizontal`}});function o({className:e,orientation:t,...i}){return r(`div`,{role:`group`,"data-slot":`button-group`,"data-orientation":t,className:n(a({orientation:t}),e),...i})}function s({className:t,asChild:i=!1,...a}){return r(i?e:`div`,{className:n(`flex items-center gap-2 rounded-md border border-border bg-muted px-4 font-medium text-sm shadow-xs [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none`,t),...a})}function c({className:e,orientation:i=`vertical`,...a}){return r(t,{"data-slot":`button-group-separator`,orientation:i,className:n(`relative m-0! self-stretch bg-muted-muted data-[orientation=vertical]:h-auto`,e),...a})}export{o as ButtonGroup,c as ButtonGroupSeparator,s as ButtonGroupText,a as buttonGroupVariants};
|
|
2
2
|
//# sourceMappingURL=button-group.mjs.map
|
package/dist/ui/button.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ButtonProps, t as Button } from "../button-
|
|
1
|
+
import { n as ButtonProps, t as Button } from "../button-C8HSrN_3.cjs";
|
|
2
2
|
export { Button, ButtonProps };
|
package/dist/ui/button.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ButtonProps, t as Button } from "../button-
|
|
1
|
+
import { n as ButtonProps, t as Button } from "../button-vNDXA78a.mjs";
|
|
2
2
|
export { Button, ButtonProps };
|
package/dist/ui/button.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"../button.variants-
|
|
1
|
+
"use client";import"../button.variants-CgCCe7qb.mjs";import{t as e}from"../button-JJaTl28Z.mjs";export{e as Button};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../button.variants-
|
|
1
|
+
import"../../button.variants-CgCCe7qb.mjs";import{t as e}from"../../button-JJaTl28Z.mjs";import{Paragraph as t}from"../../typography/paragraph.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{PlusIcon as i}from"lucide-react";const a=({onClick:a=()=>{}})=>r(e,{"aria-label":`Tạo mới`,variant:`outline`,color:`muted`,className:`outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0`,onClick:a,children:[n(i,{className:`opacity-60 sm:-ms-1`,size:16,"aria-hidden":`true`}),n(t,{variant:`sm`,className:`max-sm:sr-only`,children:`Create`})]});export{a as AddNewBtn};
|
|
2
2
|
//# sourceMappingURL=add-new.mjs.map
|
package/dist/ui/buttons/edit.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../button.variants-
|
|
1
|
+
import"../../button.variants-CgCCe7qb.mjs";import{t as e}from"../../button-JJaTl28Z.mjs";import{jsx as t}from"react/jsx-runtime";import{Edit2Icon as n}from"lucide-react";const r=({onClick:r})=>t(e,{"aria-label":`Chỉnh sửa`,variant:`ghost`,color:`secondary`,size:`icon`,className:`max-sm:aspect-square max-sm:p-0`,onClick:r,children:t(n,{size:16,className:`opacity-60`})});export{r as EditBtn};
|
|
2
2
|
//# sourceMappingURL=edit.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../button.variants-
|
|
1
|
+
import"../../button.variants-CgCCe7qb.mjs";import{t as e}from"../../button-JJaTl28Z.mjs";import{Paragraph as t}from"../../typography/paragraph.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{RefreshCwIcon as i}from"lucide-react";const a=({onClick:a=()=>{}})=>r(e,{"aria-label":`Tạo mới`,variant:`outline`,color:`muted`,className:`outline-border-weak max-sm:aspect-square max-sm:size-9 max-sm:p-0`,onClick:a,children:[n(i,{className:`opacity-60 sm:-ms-1`,size:16,"aria-hidden":`true`}),n(t,{variant:`sm`,className:`max-sm:sr-only`,children:`Reset`})]});export{a as RefreshBtn};
|
|
2
2
|
//# sourceMappingURL=refresh.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../button.variants-
|
|
1
|
+
import"../../button.variants-CgCCe7qb.mjs";import{t as e}from"../../button-JJaTl28Z.mjs";import{jsx as t}from"react/jsx-runtime";import{Trash2Icon as n}from"lucide-react";const r=({onClick:r})=>t(e,{"aria-label":`Xoá`,variant:`ghost`,size:`icon`,color:`secondary`,className:`max-sm:aspect-square max-sm:p-0`,onClick:r,children:t(n,{size:16,className:`opacity-60`,"aria-hidden":`true`})});export{r as TrashBtn};
|
|
2
2
|
//# sourceMappingURL=trash.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../button.variants-
|
|
1
|
+
import"../../button.variants-CgCCe7qb.mjs";import{t as e}from"../../button-JJaTl28Z.mjs";import{jsx as t}from"react/jsx-runtime";import{UploadIcon as n}from"lucide-react";const r=({size:r=`5rem`,onClick:i})=>t(e,{style:{width:r,height:r},variant:`outline`,color:`muted`,onClick:i,children:t(n,{className:`size-6`})});export{r as UploadImageBtn};
|
|
2
2
|
//# sourceMappingURL=upload-image.mjs.map
|
package/dist/ui/calendar.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Button } from "../button-C8HSrN_3.cjs";
|
|
2
|
+
import * as react_jsx_runtime64 from "react/jsx-runtime";
|
|
3
3
|
import { DayButton, DayPicker } from "react-day-picker";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/calendar.d.ts
|
|
@@ -9,7 +9,7 @@ declare const CalendarDayButton: ({
|
|
|
9
9
|
modifiers,
|
|
10
10
|
color: _,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof DayButton>) =>
|
|
12
|
+
}: React.ComponentProps<typeof DayButton>) => react_jsx_runtime64.JSX.Element;
|
|
13
13
|
declare function Calendar({
|
|
14
14
|
className,
|
|
15
15
|
classNames,
|
|
@@ -21,7 +21,7 @@ declare function Calendar({
|
|
|
21
21
|
...props
|
|
22
22
|
}: React.ComponentProps<typeof DayPicker> & {
|
|
23
23
|
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
24
|
-
}):
|
|
24
|
+
}): react_jsx_runtime64.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Calendar, CalendarDayButton };
|
|
27
27
|
//# sourceMappingURL=calendar.d.cts.map
|
package/dist/ui/calendar.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Button } from "../button-vNDXA78a.mjs";
|
|
2
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
3
3
|
import { DayButton, DayPicker } from "react-day-picker";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/calendar.d.ts
|
|
@@ -9,7 +9,7 @@ declare const CalendarDayButton: ({
|
|
|
9
9
|
modifiers,
|
|
10
10
|
color: _,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof DayButton>) =>
|
|
12
|
+
}: React.ComponentProps<typeof DayButton>) => react_jsx_runtime56.JSX.Element;
|
|
13
13
|
declare function Calendar({
|
|
14
14
|
className,
|
|
15
15
|
classNames,
|
|
@@ -21,7 +21,7 @@ declare function Calendar({
|
|
|
21
21
|
...props
|
|
22
22
|
}: React.ComponentProps<typeof DayPicker> & {
|
|
23
23
|
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
24
|
-
}):
|
|
24
|
+
}): react_jsx_runtime56.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Calendar, CalendarDayButton };
|
|
27
27
|
//# sourceMappingURL=calendar.d.mts.map
|
package/dist/ui/calendar.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{n as e}from"../button.variants-
|
|
1
|
+
"use client";import{n as e}from"../button.variants-CgCCe7qb.mjs";import{t}from"../button-JJaTl28Z.mjs";import{cn as n}from"@customafk/react-toolkit/utils";import{jsx as r}from"react/jsx-runtime";import{ChevronDownIcon as i,ChevronLeftIcon as a,ChevronRightIcon as o}from"lucide-react";import{useEffect as s,useRef as c}from"react";import{DayPicker as l,getDefaultClassNames as u}from"react-day-picker";const d=({rootRef:e,className:t,...i})=>r(`div`,{"data-slot":`calendar`,ref:e,className:n(t),...i}),f=e=>e.orientation===`left`?r(a,{size:16,className:e.className,...e}):e.orientation===`right`?r(o,{size:16,className:e.className,...e}):r(i,{size:16,className:e.className,...e}),p=({className:e,day:i,modifiers:a,color:o,...l})=>{let d=u(),f=c(null);return s(()=>{a.focused&&f.current?.focus()},[a.focused]),r(t,{ref:f,variant:`ghost`,color:`muted`,size:`icon`,"data-day":i.date.toLocaleDateString(),"data-selected-single":a.selected&&!a.range_start&&!a.range_end&&!a.range_middle,"data-range-start":a.range_start,"data-range-end":a.range_end,"data-range-middle":a.range_middle,className:n(`flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none`,`data-[selected-single=true]:bg-primary`,`data-[selected-single=true]:text-white`,`data-[range-middle=true]:bg-muted-muted`,`data-[range-middle=true]:text-text-positive`,`data-[range-start=true]:bg-primary-muted`,`data-[range-start=true]:text-text-positive-strong`,`data-[range-end=true]:bg-primary`,`data-[range-end=true]:text-text-positive-strong`,`group-data-[focused=true]/day:border-primary-strong`,`group-data-[focused=true]/day:ring-primary-weak`,`group-data-[focused=true]/day:relative`,`group-data-[focused=true]/day:z-10`,`group-data-[focused=true]/day:ring-[3px]`,`data-[range-end=true]:rounded-md`,`data-[range-end=true]:rounded-r-md`,`data-[range-middle=true]:rounded-none`,`data-[range-start=true]:rounded-md`,`data-[range-start=true]:rounded-l-md`,`[&>span]:text-xs [&>span]:opacity-70`,d.day,e),...l})},m=({children:e,...t})=>r(`td`,{...t,children:r(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})});function h({className:t,classNames:i,showOutsideDays:a=!0,captionLayout:o=`label`,buttonVariant:s=`ghost`,formatters:c,components:h,...g}){let _=u();return r(l,{showOutsideDays:a,className:n(`group/calendar bg-background p-3`,`[--cell-size:--spacing(8)]`,`in-data-[slot=card-content]:bg-transparent`,`in-data-[slot=popover-content]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,t),captionLayout:o,formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...c},classNames:{root:n(`w-fit`,_.root),months:n(`flex gap-4 flex-col md:flex-row relative`,_.months),month:n(`flex flex-col w-full gap-4`,_.month),nav:n(`flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between`,_.nav),button_previous:n(e({variant:`outline`,color:`muted`}),`size-(--cell-size) aria-disabled:opacity-50 p-0 select-none`,_.button_previous),button_next:n(e({variant:`outline`,color:`muted`}),`size-(--cell-size) aria-disabled:opacity-50 p-0 select-none`,_.button_next),month_caption:n(`flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)`,_.month_caption),dropdowns:n(`w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5`,_.dropdowns),dropdown_root:n(`relative has-focus:border-primary-strong border border-border-weak shadow-xs has-focus:ring-primary-weak has-focus:ring-[3px] rounded-md`,_.dropdown_root),dropdown:n(`absolute inset-0 opacity-0`,_.dropdown),caption_label:n(`select-none font-medium`,o===`label`&&`text-sm`,o!==`label`&&`rounded-md shadow-xs px-2 flex items-center gap-0.5 text-sm h-8 [&>svg]:text-text-positive [&>svg]:size-3.5`,_.caption_label),table:`w-full border-collapse`,weekdays:n(`flex`,_.weekdays),weekday:n(`text-text-positive rounded-md flex-1 font-normal text-[0.8rem] select-none`,_.weekday),week:n(`flex w-full mt-2`,_.week),week_number_header:n(`select-none w-(--cell-size)`,_.week_number_header),week_number:n(`text-[0.8rem] select-none text-text-positive`,_.week_number),day:n(`relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none`,_.day),range_start:n(`rounded-l-md bg-muted-muted`,_.range_start),range_middle:n(`rounded-none`,_.range_middle),range_end:n(`rounded-r-md bg-muted-muted`,_.range_end),today:n(`bg-muted-muted text-text-positive rounded-md data-[selected=true]:rounded-none`,_.today),outside:n(`[&>button]:text-text-positive-muted aria-selected:text-text-positive`),disabled:n(`bg-muted-muted text-text-positive opacity-50`,_.disabled),hidden:n(`invisible`,_.hidden),...i},components:{Root:d,Chevron:f,DayButton:p,WeekNumber:m,...h},...g})}export{h as Calendar,p as CalendarDayButton};
|
|
2
2
|
//# sourceMappingURL=calendar.mjs.map
|
package/dist/ui/card.d.cts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime93 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/card.d.ts
|
|
4
4
|
declare function Card({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'div'>):
|
|
7
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime93.JSX.Element;
|
|
8
8
|
declare function CardHeader({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<'div'>):
|
|
11
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime93.JSX.Element;
|
|
12
12
|
declare function CardTitle({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<'div'>):
|
|
15
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime93.JSX.Element;
|
|
16
16
|
declare function CardDescription({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<'div'>):
|
|
19
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime93.JSX.Element;
|
|
20
20
|
declare function CardAction({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<'div'>):
|
|
23
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime93.JSX.Element;
|
|
24
24
|
declare function CardContent({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<'div'>):
|
|
27
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime93.JSX.Element;
|
|
28
28
|
declare function CardFooter({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<'div'>):
|
|
31
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime93.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
34
34
|
//# sourceMappingURL=card.d.cts.map
|
package/dist/ui/card.d.mts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime134 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/card.d.ts
|
|
4
4
|
declare function Card({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'div'>):
|
|
7
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime134.JSX.Element;
|
|
8
8
|
declare function CardHeader({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<'div'>):
|
|
11
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime134.JSX.Element;
|
|
12
12
|
declare function CardTitle({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<'div'>):
|
|
15
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime134.JSX.Element;
|
|
16
16
|
declare function CardDescription({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<'div'>):
|
|
19
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime134.JSX.Element;
|
|
20
20
|
declare function CardAction({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<'div'>):
|
|
23
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime134.JSX.Element;
|
|
24
24
|
declare function CardContent({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<'div'>):
|
|
27
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime134.JSX.Element;
|
|
28
28
|
declare function CardFooter({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<'div'>):
|
|
31
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime134.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
34
34
|
//# sourceMappingURL=card.d.mts.map
|
package/dist/ui/card.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"../card-
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"../card-C8fcblBB.mjs";export{o as Card,n as CardAction,i as CardContent,t as CardDescription,e as CardFooter,r as CardHeader,a as CardTitle};
|
package/dist/ui/carousel.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Button } from "../button-C8HSrN_3.cjs";
|
|
2
|
+
import * as react_jsx_runtime116 from "react/jsx-runtime";
|
|
3
3
|
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/carousel.d.ts
|
|
@@ -21,27 +21,27 @@ declare function Carousel({
|
|
|
21
21
|
className,
|
|
22
22
|
children,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<'div'> & CarouselProps):
|
|
24
|
+
}: React.ComponentProps<'div'> & CarouselProps): react_jsx_runtime116.JSX.Element;
|
|
25
25
|
declare function CarouselContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'div'>):
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime116.JSX.Element;
|
|
29
29
|
declare function CarouselItem({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'div'>):
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime116.JSX.Element;
|
|
33
33
|
declare function CarouselPrevious({
|
|
34
34
|
className,
|
|
35
35
|
variant,
|
|
36
36
|
size,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof Button>):
|
|
38
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime116.JSX.Element;
|
|
39
39
|
declare function CarouselNext({
|
|
40
40
|
className,
|
|
41
41
|
variant,
|
|
42
42
|
size,
|
|
43
43
|
...props
|
|
44
|
-
}: React.ComponentProps<typeof Button>):
|
|
44
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime116.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
47
47
|
//# sourceMappingURL=carousel.d.cts.map
|
package/dist/ui/carousel.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Button } from "../button-vNDXA78a.mjs";
|
|
2
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
3
3
|
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/carousel.d.ts
|
|
@@ -21,27 +21,27 @@ declare function Carousel({
|
|
|
21
21
|
className,
|
|
22
22
|
children,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<'div'> & CarouselProps):
|
|
24
|
+
}: React.ComponentProps<'div'> & CarouselProps): react_jsx_runtime46.JSX.Element;
|
|
25
25
|
declare function CarouselContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'div'>):
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime46.JSX.Element;
|
|
29
29
|
declare function CarouselItem({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'div'>):
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime46.JSX.Element;
|
|
33
33
|
declare function CarouselPrevious({
|
|
34
34
|
className,
|
|
35
35
|
variant,
|
|
36
36
|
size,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof Button>):
|
|
38
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime46.JSX.Element;
|
|
39
39
|
declare function CarouselNext({
|
|
40
40
|
className,
|
|
41
41
|
variant,
|
|
42
42
|
size,
|
|
43
43
|
...props
|
|
44
|
-
}: React.ComponentProps<typeof Button>):
|
|
44
|
+
}: React.ComponentProps<typeof Button>): react_jsx_runtime46.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
47
47
|
//# sourceMappingURL=carousel.d.mts.map
|
package/dist/ui/carousel.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../button.variants-
|
|
1
|
+
"use client";import"../button.variants-CgCCe7qb.mjs";import{t as e}from"../button-JJaTl28Z.mjs";import{cn as t}from"@customafk/react-toolkit/utils";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{ArrowLeft as i,ArrowRight as a}from"lucide-react";import{createContext as o,use as s,useCallback as c,useEffect as l,useState as u}from"react";import d from"embla-carousel-react";const f=o(null);function p(){let e=s(f);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function m({orientation:e=`horizontal`,opts:r,setApi:i,plugins:a,className:o,children:s,...p}){let[m,h]=d({...r,axis:e===`horizontal`?`x`:`y`},a),[g,_]=u(!1),[v,y]=u(!1),b=c(e=>{e&&(_(e.canScrollPrev()),y(e.canScrollNext()))},[]),x=c(()=>{h?.scrollPrev()},[h]),S=c(()=>{h?.scrollNext()},[h]),C=c(e=>{e.key===`ArrowLeft`?(e.preventDefault(),x()):e.key===`ArrowRight`&&(e.preventDefault(),S())},[x,S]);return l(()=>{!h||!i||i(h)},[h,i]),l(()=>{if(h)return b(h),h.on(`reInit`,b),h.on(`select`,b),()=>{h?.off(`select`,b)}},[h,b]),n(f.Provider,{value:{carouselRef:m,api:h,opts:r,orientation:e||(r?.axis===`y`?`vertical`:`horizontal`),scrollPrev:x,scrollNext:S,canScrollPrev:g,canScrollNext:v},children:n(`div`,{onKeyDownCapture:C,className:t(`relative`,o),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...p,children:s})})}function h({className:e,...r}){let{carouselRef:i,orientation:a}=p();return n(`div`,{ref:i,className:`overflow-hidden`,"data-slot":`carousel-content`,children:n(`div`,{className:t(`flex`,a===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...r})})}function g({className:e,...r}){let{orientation:i}=p();return n(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:t(`min-w-0 shrink-0 grow-0 basis-full`,i===`horizontal`?`pl-4`:`pt-4`,e),...r})}function _({className:a,variant:o=`outline`,size:s=`icon`,...c}){let{orientation:l,scrollPrev:u,canScrollPrev:d}=p();return r(e,{"data-slot":`carousel-previous`,variant:o,size:s,className:t(`absolute size-8 rounded-full`,l===`horizontal`?`top-1/2 -left-12 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,a),disabled:!d,onClick:u,...c,children:[n(i,{}),n(`span`,{className:`sr-only`,children:`Previous slide`})]})}function v({className:i,variant:o=`outline`,size:s=`icon`,...c}){let{orientation:l,scrollNext:u,canScrollNext:d}=p();return r(e,{"data-slot":`carousel-next`,variant:o,size:s,className:t(`absolute size-8 rounded-full`,l===`horizontal`?`top-1/2 -right-12 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,i),disabled:!d,onClick:u,...c,children:[n(a,{}),n(`span`,{className:`sr-only`,children:`Next slide`})]})}export{m as Carousel,h as CarouselContent,g as CarouselItem,v as CarouselNext,_ as CarouselPrevious};
|
|
2
2
|
//# sourceMappingURL=carousel.mjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime81 from "react/jsx-runtime";
|
|
2
2
|
import { Collapsible as Collapsible$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/collapsible.d.ts
|
|
5
5
|
declare function Collapsible({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof Collapsible$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof Collapsible$1.Root>): react_jsx_runtime81.JSX.Element;
|
|
8
8
|
declare function CollapsibleTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Collapsible$1.CollapsibleTrigger>):
|
|
10
|
+
}: React.ComponentProps<typeof Collapsible$1.CollapsibleTrigger>): react_jsx_runtime81.JSX.Element;
|
|
11
11
|
declare function CollapsibleContent({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Collapsible$1.CollapsibleContent>):
|
|
13
|
+
}: React.ComponentProps<typeof Collapsible$1.CollapsibleContent>): react_jsx_runtime81.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
16
16
|
//# sourceMappingURL=collapsible.d.cts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime207 from "react/jsx-runtime";
|
|
2
2
|
import { Collapsible as Collapsible$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/collapsible.d.ts
|
|
5
5
|
declare function Collapsible({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof Collapsible$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof Collapsible$1.Root>): react_jsx_runtime207.JSX.Element;
|
|
8
8
|
declare function CollapsibleTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Collapsible$1.CollapsibleTrigger>):
|
|
10
|
+
}: React.ComponentProps<typeof Collapsible$1.CollapsibleTrigger>): react_jsx_runtime207.JSX.Element;
|
|
11
11
|
declare function CollapsibleContent({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Collapsible$1.CollapsibleContent>):
|
|
13
|
+
}: React.ComponentProps<typeof Collapsible$1.CollapsibleContent>): react_jsx_runtime207.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
16
16
|
//# sourceMappingURL=collapsible.d.mts.map
|
package/dist/ui/command.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as Dialog } from "../dialog-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Dialog } from "../dialog-CoSwDi4O.cjs";
|
|
2
|
+
import * as react_jsx_runtime84 from "react/jsx-runtime";
|
|
3
3
|
import { Command as Command$1 } from "cmdk";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/command.d.ts
|
|
6
6
|
declare function Command({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Command$1>):
|
|
9
|
+
}: React.ComponentProps<typeof Command$1>): react_jsx_runtime84.JSX.Element;
|
|
10
10
|
declare function CommandDialog({
|
|
11
11
|
title,
|
|
12
12
|
description,
|
|
@@ -19,34 +19,34 @@ declare function CommandDialog({
|
|
|
19
19
|
description?: string;
|
|
20
20
|
className?: string;
|
|
21
21
|
showCloseButton?: boolean;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime84.JSX.Element;
|
|
23
23
|
declare function CommandInput({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Command$1.Input>):
|
|
26
|
+
}: React.ComponentProps<typeof Command$1.Input>): react_jsx_runtime84.JSX.Element;
|
|
27
27
|
declare function CommandList({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<typeof Command$1.List>):
|
|
30
|
+
}: React.ComponentProps<typeof Command$1.List>): react_jsx_runtime84.JSX.Element;
|
|
31
31
|
declare function CommandEmpty({
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Command$1.Empty>):
|
|
33
|
+
}: React.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime84.JSX.Element;
|
|
34
34
|
declare function CommandGroup({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Command$1.Group>):
|
|
37
|
+
}: React.ComponentProps<typeof Command$1.Group>): react_jsx_runtime84.JSX.Element;
|
|
38
38
|
declare function CommandSeparator({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Command$1.Separator>):
|
|
41
|
+
}: React.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime84.JSX.Element;
|
|
42
42
|
declare function CommandItem({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof Command$1.Item>):
|
|
45
|
+
}: React.ComponentProps<typeof Command$1.Item>): react_jsx_runtime84.JSX.Element;
|
|
46
46
|
declare function CommandShortcut({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React.ComponentProps<'span'>):
|
|
49
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime84.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
52
52
|
//# sourceMappingURL=command.d.cts.map
|
package/dist/ui/command.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as Dialog } from "../dialog-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Dialog } from "../dialog-DU7tobKF.mjs";
|
|
2
|
+
import * as react_jsx_runtime83 from "react/jsx-runtime";
|
|
3
3
|
import { Command as Command$1 } from "cmdk";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/command.d.ts
|
|
6
6
|
declare function Command({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof Command$1>):
|
|
9
|
+
}: React.ComponentProps<typeof Command$1>): react_jsx_runtime83.JSX.Element;
|
|
10
10
|
declare function CommandDialog({
|
|
11
11
|
title,
|
|
12
12
|
description,
|
|
@@ -19,34 +19,34 @@ declare function CommandDialog({
|
|
|
19
19
|
description?: string;
|
|
20
20
|
className?: string;
|
|
21
21
|
showCloseButton?: boolean;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime83.JSX.Element;
|
|
23
23
|
declare function CommandInput({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof Command$1.Input>):
|
|
26
|
+
}: React.ComponentProps<typeof Command$1.Input>): react_jsx_runtime83.JSX.Element;
|
|
27
27
|
declare function CommandList({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<typeof Command$1.List>):
|
|
30
|
+
}: React.ComponentProps<typeof Command$1.List>): react_jsx_runtime83.JSX.Element;
|
|
31
31
|
declare function CommandEmpty({
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof Command$1.Empty>):
|
|
33
|
+
}: React.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime83.JSX.Element;
|
|
34
34
|
declare function CommandGroup({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Command$1.Group>):
|
|
37
|
+
}: React.ComponentProps<typeof Command$1.Group>): react_jsx_runtime83.JSX.Element;
|
|
38
38
|
declare function CommandSeparator({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Command$1.Separator>):
|
|
41
|
+
}: React.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime83.JSX.Element;
|
|
42
42
|
declare function CommandItem({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof Command$1.Item>):
|
|
45
|
+
}: React.ComponentProps<typeof Command$1.Item>): react_jsx_runtime83.JSX.Element;
|
|
46
46
|
declare function CommandShortcut({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React.ComponentProps<'span'>):
|
|
49
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime83.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
52
52
|
//# sourceMappingURL=command.d.mts.map
|
package/dist/ui/command.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"../close-
|
|
1
|
+
"use client";import"../close-B_PnUzNN.mjs";import"../dialog-4ZJcWPar.mjs";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"../command-CtWxCsMm.mjs";export{c as Command,i as CommandDialog,o as CommandEmpty,n as CommandGroup,e as CommandInput,a as CommandItem,s as CommandList,t as CommandSeparator,r as CommandShortcut};
|