@customafk/lunas-ui 0.2.1 → 0.2.3
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-PV-Xnryv.d.mts → button-C6s_h0K3.d.mts} +7 -7
- package/dist/{button-Bji_SqMI.d.cts → button-CcOrQc7g.d.cts} +5 -5
- package/dist/button-CpEejahy.cjs +2 -0
- package/dist/{button-C58TS8Pc.cjs.map → button-CpEejahy.cjs.map} +1 -1
- package/dist/{button-DXPSlb3I.mjs → button-D54KOmb7.mjs} +2 -2
- package/dist/{button-DXPSlb3I.mjs.map → button-D54KOmb7.mjs.map} +1 -1
- package/dist/button.variants-CS-Cmarr.cjs +2 -0
- package/dist/button.variants-CS-Cmarr.cjs.map +1 -0
- package/dist/button.variants-DRWf66hR.mjs +2 -0
- package/dist/button.variants-DRWf66hR.mjs.map +1 -0
- package/dist/{calendar-DT0NPRhB.cjs → calendar-dhPqb3aZ.cjs} +2 -2
- package/dist/{calendar-DT0NPRhB.cjs.map → calendar-dhPqb3aZ.cjs.map} +1 -1
- package/dist/{calendar-CEF9LSd4.mjs → calendar-qHQsMOj9.mjs} +2 -2
- package/dist/{calendar-CEF9LSd4.mjs.map → calendar-qHQsMOj9.mjs.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/data-display/empty.d.mts +2 -2
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.mts +2 -2
- package/dist/{dialog-DKZ8BLxc.d.mts → dialog-CsM9bEo6.d.cts} +12 -12
- package/dist/{dialog-7127ChM2.d.cts → dialog-NsKYcQwE.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 +25 -25
- package/dist/dialogs/detail-dialog/components/sidebar.d.mts +25 -25
- 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.cjs.map +1 -1
- package/dist/dialogs/detail-dialog/index.mjs +1 -1
- package/dist/dialogs/detail-dialog/index.mjs.map +1 -1
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/error-dialog.mjs +1 -1
- package/dist/features/search-modal/index.d.mts +2 -2
- package/dist/features/tables/index.cjs +1 -1
- package/dist/features/tables/index.d.cts +1 -1
- package/dist/features/tables/index.d.mts +1 -1
- package/dist/features/tables/index.mjs +1 -1
- package/dist/features/tanstack-form/index.cjs +1 -1
- package/dist/features/tanstack-form/index.d.cts +93 -93
- package/dist/features/tanstack-form/index.d.mts +93 -93
- package/dist/features/tanstack-form/index.mjs +1 -1
- package/dist/{input-DkvHV_UU.d.mts → input-B65h-l45.d.cts} +6 -6
- package/dist/{input-D0enZTLC.d.cts → input-C6Q4vGNC.d.mts} +6 -6
- package/dist/layouts/cms-layout/index.cjs +1 -1
- package/dist/layouts/cms-layout/index.mjs +1 -1
- package/dist/layouts/flex.d.cts +5 -5
- package/dist/layouts/flex.d.mts +9 -9
- 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/typography/paragraph.d.cts +1 -1
- package/dist/typography/paragraph.d.mts +3 -3
- package/dist/typography/title.d.mts +2 -2
- 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.d.cts +5 -5
- package/dist/ui/alert.d.mts +7 -7
- 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.d.cts +8 -8
- package/dist/ui/breadcrumb.d.mts +8 -8
- package/dist/ui/button-group.d.cts +6 -6
- package/dist/ui/button-group.d.mts +6 -6
- 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.d.cts +8 -8
- package/dist/ui/card.d.mts +8 -8
- 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.d.cts +11 -11
- package/dist/ui/command.d.mts +11 -11
- 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/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.d.cts +24 -24
- package/dist/ui/field.d.mts +24 -24
- package/dist/ui/file-uploader.cjs +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 +11 -11
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.mts +4 -4
- 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/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.mts +3 -3
- package/dist/ui/item.d.cts +16 -16
- package/dist/ui/item.d.mts +16 -16
- 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/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/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 +9 -9
- package/dist/ui/resizable.d.mts +9 -9
- package/dist/ui/scroll-area.d.cts +6 -6
- package/dist/ui/scroll-area.d.mts +6 -6
- 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.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/switch.d.mts +2 -2
- package/dist/ui/table.d.cts +18 -18
- 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/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 +5 -5
- 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 +1 -1
- package/dist/button-C58TS8Pc.cjs +0 -2
- package/dist/button.variants-DuuH1O0_.mjs +0 -2
- package/dist/button.variants-DuuH1O0_.mjs.map +0 -1
- package/dist/button.variants-rdXrPUao.cjs +0 -2
- package/dist/button.variants-rdXrPUao.cjs.map +0 -1
package/dist/ui/breadcrumb.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime214 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/breadcrumb.d.ts
|
|
4
4
|
/**
|
|
@@ -7,21 +7,21 @@ import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
|
7
7
|
declare function Breadcrumb({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<'nav'>):
|
|
10
|
+
}: React.ComponentProps<'nav'>): react_jsx_runtime214.JSX.Element;
|
|
11
11
|
/**
|
|
12
12
|
* Container for breadcrumb items
|
|
13
13
|
*/
|
|
14
14
|
declare function BreadcrumbList({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<'ol'>):
|
|
17
|
+
}: React.ComponentProps<'ol'>): react_jsx_runtime214.JSX.Element;
|
|
18
18
|
/**
|
|
19
19
|
* Individual breadcrumb item container
|
|
20
20
|
*/
|
|
21
21
|
declare function BreadcrumbItem({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<'li'>):
|
|
24
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime214.JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* Interactive breadcrumb link
|
|
27
27
|
*/
|
|
@@ -31,14 +31,14 @@ declare function BreadcrumbLink({
|
|
|
31
31
|
...props
|
|
32
32
|
}: React.ComponentProps<'a'> & {
|
|
33
33
|
asChild?: boolean;
|
|
34
|
-
}):
|
|
34
|
+
}): react_jsx_runtime214.JSX.Element;
|
|
35
35
|
/**
|
|
36
36
|
* Current page breadcrumb (non-interactive)
|
|
37
37
|
*/
|
|
38
38
|
declare function BreadcrumbPage({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<'span'>):
|
|
41
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime214.JSX.Element;
|
|
42
42
|
/**
|
|
43
43
|
* Separator between breadcrumb items
|
|
44
44
|
*/
|
|
@@ -46,14 +46,14 @@ declare function BreadcrumbSeparator({
|
|
|
46
46
|
children,
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React.ComponentProps<'li'>):
|
|
49
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime214.JSX.Element;
|
|
50
50
|
/**
|
|
51
51
|
* Ellipsis for collapsed breadcrumbs
|
|
52
52
|
*/
|
|
53
53
|
declare function BreadcrumbEllipsis({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React.ComponentProps<'button'>):
|
|
56
|
+
}: React.ComponentProps<'button'>): react_jsx_runtime214.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
59
59
|
//# sourceMappingURL=breadcrumb.d.cts.map
|
package/dist/ui/breadcrumb.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/breadcrumb.d.ts
|
|
4
4
|
/**
|
|
@@ -7,21 +7,21 @@ import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
|
7
7
|
declare function Breadcrumb({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<'nav'>):
|
|
10
|
+
}: React.ComponentProps<'nav'>): react_jsx_runtime62.JSX.Element;
|
|
11
11
|
/**
|
|
12
12
|
* Container for breadcrumb items
|
|
13
13
|
*/
|
|
14
14
|
declare function BreadcrumbList({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<'ol'>):
|
|
17
|
+
}: React.ComponentProps<'ol'>): react_jsx_runtime62.JSX.Element;
|
|
18
18
|
/**
|
|
19
19
|
* Individual breadcrumb item container
|
|
20
20
|
*/
|
|
21
21
|
declare function BreadcrumbItem({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<'li'>):
|
|
24
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime62.JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* Interactive breadcrumb link
|
|
27
27
|
*/
|
|
@@ -31,14 +31,14 @@ declare function BreadcrumbLink({
|
|
|
31
31
|
...props
|
|
32
32
|
}: React.ComponentProps<'a'> & {
|
|
33
33
|
asChild?: boolean;
|
|
34
|
-
}):
|
|
34
|
+
}): react_jsx_runtime62.JSX.Element;
|
|
35
35
|
/**
|
|
36
36
|
* Current page breadcrumb (non-interactive)
|
|
37
37
|
*/
|
|
38
38
|
declare function BreadcrumbPage({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<'span'>):
|
|
41
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime62.JSX.Element;
|
|
42
42
|
/**
|
|
43
43
|
* Separator between breadcrumb items
|
|
44
44
|
*/
|
|
@@ -46,14 +46,14 @@ declare function BreadcrumbSeparator({
|
|
|
46
46
|
children,
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React.ComponentProps<'li'>):
|
|
49
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime62.JSX.Element;
|
|
50
50
|
/**
|
|
51
51
|
* Ellipsis for collapsed breadcrumbs
|
|
52
52
|
*/
|
|
53
53
|
declare function BreadcrumbEllipsis({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React.ComponentProps<'button'>):
|
|
56
|
+
}: React.ComponentProps<'button'>): react_jsx_runtime62.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
59
59
|
//# sourceMappingURL=breadcrumb.d.mts.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { Separator } from "./separator.cjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
3
|
+
import * as class_variance_authority_types2 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_types2.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_runtime40.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_runtime40.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_runtime40.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
1
|
import { Separator } from "./separator.mjs";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime140 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types3 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_types3.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_runtime140.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_runtime140.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_runtime140.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
29
29
|
//# sourceMappingURL=button-group.d.mts.map
|
package/dist/ui/button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";require(`../button.variants-
|
|
1
|
+
"use client";require(`../button.variants-CS-Cmarr.cjs`);const e=require(`../button-CpEejahy.cjs`);exports.Button=e.t;
|
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-CcOrQc7g.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-C6s_h0K3.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-DRWf66hR.mjs";import{t as e}from"../button-D54KOmb7.mjs";export{e as Button};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../../chunk-Bmb41Sf3.cjs`),t=require(`../../paragraph-B72bHMf7.cjs`);require(`../../button.variants-
|
|
1
|
+
const e=require(`../../chunk-Bmb41Sf3.cjs`),t=require(`../../paragraph-B72bHMf7.cjs`);require(`../../button.variants-CS-Cmarr.cjs`);const n=require(`../../button-CpEejahy.cjs`);let r=require(`react/jsx-runtime`),i=require(`lucide-react`);const a=({onClick:e=()=>{}})=>(0,r.jsxs)(n.t,{"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:e,children:[(0,r.jsx)(i.PlusIcon,{className:`opacity-60 sm:-ms-1`,size:16,"aria-hidden":`true`}),(0,r.jsx)(t.t,{variant:`sm`,className:`max-sm:sr-only`,children:`Create`})]});exports.AddNewBtn=a;
|
|
2
2
|
//# sourceMappingURL=add-new.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"../../paragraph-moBSTPmT.mjs";import"../../button.variants-
|
|
1
|
+
import{t as e}from"../../paragraph-moBSTPmT.mjs";import"../../button.variants-DRWf66hR.mjs";import{t}from"../../button-D54KOmb7.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{PlusIcon as i}from"lucide-react";const a=({onClick:a=()=>{}})=>r(t,{"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(e,{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.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../../chunk-Bmb41Sf3.cjs`);require(`../../button.variants-
|
|
1
|
+
const e=require(`../../chunk-Bmb41Sf3.cjs`);require(`../../button.variants-CS-Cmarr.cjs`);const t=require(`../../button-CpEejahy.cjs`);let n=require(`react/jsx-runtime`),r=require(`lucide-react`);const i=({onClick:e})=>(0,n.jsx)(t.t,{"aria-label":`Chỉnh sửa`,variant:`ghost`,color:`secondary`,size:`icon`,className:`max-sm:aspect-square max-sm:p-0`,onClick:e,children:(0,n.jsx)(r.Edit2Icon,{size:16,className:`opacity-60`})});exports.EditBtn=i;
|
|
2
2
|
//# sourceMappingURL=edit.cjs.map
|
package/dist/ui/buttons/edit.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../button.variants-
|
|
1
|
+
import"../../button.variants-DRWf66hR.mjs";import{t as e}from"../../button-D54KOmb7.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
|
-
const e=require(`../../chunk-Bmb41Sf3.cjs`),t=require(`../../paragraph-B72bHMf7.cjs`);require(`../../button.variants-
|
|
1
|
+
const e=require(`../../chunk-Bmb41Sf3.cjs`),t=require(`../../paragraph-B72bHMf7.cjs`);require(`../../button.variants-CS-Cmarr.cjs`);const n=require(`../../button-CpEejahy.cjs`);let r=require(`react/jsx-runtime`),i=require(`lucide-react`);const a=({onClick:e=()=>{}})=>(0,r.jsxs)(n.t,{"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:e,children:[(0,r.jsx)(i.RefreshCwIcon,{className:`opacity-60 sm:-ms-1`,size:16,"aria-hidden":`true`}),(0,r.jsx)(t.t,{variant:`sm`,className:`max-sm:sr-only`,children:`Reset`})]});exports.RefreshBtn=a;
|
|
2
2
|
//# sourceMappingURL=refresh.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"../../paragraph-moBSTPmT.mjs";import"../../button.variants-
|
|
1
|
+
import{t as e}from"../../paragraph-moBSTPmT.mjs";import"../../button.variants-DRWf66hR.mjs";import{t}from"../../button-D54KOmb7.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{RefreshCwIcon as i}from"lucide-react";const a=({onClick:a=()=>{}})=>r(t,{"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(e,{variant:`sm`,className:`max-sm:sr-only`,children:`Reset`})]});export{a as RefreshBtn};
|
|
2
2
|
//# sourceMappingURL=refresh.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../../chunk-Bmb41Sf3.cjs`);require(`../../button.variants-
|
|
1
|
+
const e=require(`../../chunk-Bmb41Sf3.cjs`);require(`../../button.variants-CS-Cmarr.cjs`);const t=require(`../../button-CpEejahy.cjs`);let n=require(`react/jsx-runtime`),r=require(`lucide-react`);const i=({onClick:e})=>(0,n.jsx)(t.t,{"aria-label":`Xoá`,variant:`ghost`,size:`icon`,color:`secondary`,className:`max-sm:aspect-square max-sm:p-0`,onClick:e,children:(0,n.jsx)(r.Trash2Icon,{size:16,className:`opacity-60`,"aria-hidden":`true`})});exports.TrashBtn=i;
|
|
2
2
|
//# sourceMappingURL=trash.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../button.variants-
|
|
1
|
+
import"../../button.variants-DRWf66hR.mjs";import{t as e}from"../../button-D54KOmb7.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
|
-
const e=require(`../../chunk-Bmb41Sf3.cjs`);require(`../../button.variants-
|
|
1
|
+
const e=require(`../../chunk-Bmb41Sf3.cjs`);require(`../../button.variants-CS-Cmarr.cjs`);const t=require(`../../button-CpEejahy.cjs`);let n=require(`react/jsx-runtime`),r=require(`lucide-react`);const i=({size:e=`5rem`,onClick:i})=>(0,n.jsx)(t.t,{style:{width:e,height:e},variant:`outline`,color:`muted`,onClick:i,children:(0,n.jsx)(r.UploadIcon,{className:`size-6`})});exports.UploadImageBtn=i;
|
|
2
2
|
//# sourceMappingURL=upload-image.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../button.variants-
|
|
1
|
+
import"../../button.variants-DRWf66hR.mjs";import{t as e}from"../../button-D54KOmb7.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.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";require(`../button.variants-
|
|
1
|
+
"use client";require(`../button.variants-CS-Cmarr.cjs`),require(`../button-CpEejahy.cjs`);const e=require(`../calendar-dhPqb3aZ.cjs`);exports.Calendar=e.t,exports.CalendarDayButton=e.n;
|
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-CcOrQc7g.cjs";
|
|
2
|
+
import * as react_jsx_runtime38 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_runtime38.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_runtime38.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-C6s_h0K3.mjs";
|
|
2
|
+
import * as react_jsx_runtime138 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_runtime138.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_runtime138.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Calendar, CalendarDayButton };
|
|
27
27
|
//# sourceMappingURL=calendar.d.mts.map
|
package/dist/ui/calendar.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"../button.variants-
|
|
1
|
+
"use client";import"../button.variants-DRWf66hR.mjs";import"../button-D54KOmb7.mjs";import{n as e,t}from"../calendar-qHQsMOj9.mjs";export{t as Calendar,e as CalendarDayButton};
|
package/dist/ui/card.d.cts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime65 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_runtime65.JSX.Element;
|
|
8
8
|
declare function CardHeader({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<'div'>):
|
|
11
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime65.JSX.Element;
|
|
12
12
|
declare function CardTitle({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<'div'>):
|
|
15
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime65.JSX.Element;
|
|
16
16
|
declare function CardDescription({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<'div'>):
|
|
19
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime65.JSX.Element;
|
|
20
20
|
declare function CardAction({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<'div'>):
|
|
23
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime65.JSX.Element;
|
|
24
24
|
declare function CardContent({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<'div'>):
|
|
27
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime65.JSX.Element;
|
|
28
28
|
declare function CardFooter({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<'div'>):
|
|
31
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime65.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_runtime69 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_runtime69.JSX.Element;
|
|
8
8
|
declare function CardHeader({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<'div'>):
|
|
11
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime69.JSX.Element;
|
|
12
12
|
declare function CardTitle({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<'div'>):
|
|
15
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime69.JSX.Element;
|
|
16
16
|
declare function CardDescription({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<'div'>):
|
|
19
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime69.JSX.Element;
|
|
20
20
|
declare function CardAction({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<'div'>):
|
|
23
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime69.JSX.Element;
|
|
24
24
|
declare function CardContent({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<'div'>):
|
|
27
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime69.JSX.Element;
|
|
28
28
|
declare function CardFooter({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<'div'>):
|
|
31
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime69.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/carousel.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-
|
|
1
|
+
"use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-CS-Cmarr.cjs`);const t=require(`../button-CpEejahy.cjs`);let n=require(`@customafk/react-toolkit/utils`),r=require(`react`),i=require(`react/jsx-runtime`),a=require(`lucide-react`),o=require(`embla-carousel-react`);o=e.t(o);const s=(0,r.createContext)(null);function c(){let e=(0,r.use)(s);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function l({orientation:e=`horizontal`,opts:t,setApi:a,plugins:c,className:l,children:u,...d}){let[f,p]=(0,o.default)({...t,axis:e===`horizontal`?`x`:`y`},c),[m,h]=(0,r.useState)(!1),[g,_]=(0,r.useState)(!1),v=(0,r.useCallback)(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()))},[]),y=(0,r.useCallback)(()=>{p?.scrollPrev()},[p]),b=(0,r.useCallback)(()=>{p?.scrollNext()},[p]),x=(0,r.useCallback)(e=>{e.key===`ArrowLeft`?(e.preventDefault(),y()):e.key===`ArrowRight`&&(e.preventDefault(),b())},[y,b]);return(0,r.useEffect)(()=>{!p||!a||a(p)},[p,a]),(0,r.useEffect)(()=>{if(p)return v(p),p.on(`reInit`,v),p.on(`select`,v),()=>{p?.off(`select`,v)}},[p,v]),(0,i.jsx)(s.Provider,{value:{carouselRef:f,api:p,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:y,scrollNext:b,canScrollPrev:m,canScrollNext:g},children:(0,i.jsx)(`div`,{onKeyDownCapture:x,className:(0,n.cn)(`relative`,l),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...d,children:u})})}function u({className:e,...t}){let{carouselRef:r,orientation:a}=c();return(0,i.jsx)(`div`,{ref:r,className:`overflow-hidden`,"data-slot":`carousel-content`,children:(0,i.jsx)(`div`,{className:(0,n.cn)(`flex`,a===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})}function d({className:e,...t}){let{orientation:r}=c();return(0,i.jsx)(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:(0,n.cn)(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...t})}function f({className:e,variant:r=`outline`,size:o=`icon`,...s}){let{orientation:l,scrollPrev:u,canScrollPrev:d}=c();return(0,i.jsxs)(t.t,{"data-slot":`carousel-previous`,variant:r,size:o,className:(0,n.cn)(`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`,e),disabled:!d,onClick:u,...s,children:[(0,i.jsx)(a.ArrowLeft,{}),(0,i.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})}function p({className:e,variant:r=`outline`,size:o=`icon`,...s}){let{orientation:l,scrollNext:u,canScrollNext:d}=c();return(0,i.jsxs)(t.t,{"data-slot":`carousel-next`,variant:r,size:o,className:(0,n.cn)(`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`,e),disabled:!d,onClick:u,...s,children:[(0,i.jsx)(a.ArrowRight,{}),(0,i.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})}exports.Carousel=l,exports.CarouselContent=u,exports.CarouselItem=d,exports.CarouselNext=p,exports.CarouselPrevious=f;
|
|
2
2
|
//# sourceMappingURL=carousel.cjs.map
|
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-CcOrQc7g.cjs";
|
|
2
|
+
import * as react_jsx_runtime250 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_runtime250.JSX.Element;
|
|
25
25
|
declare function CarouselContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'div'>):
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime250.JSX.Element;
|
|
29
29
|
declare function CarouselItem({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'div'>):
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime250.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_runtime250.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_runtime250.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-C6s_h0K3.mjs";
|
|
2
|
+
import * as react_jsx_runtime84 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_runtime84.JSX.Element;
|
|
25
25
|
declare function CarouselContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'div'>):
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime84.JSX.Element;
|
|
29
29
|
declare function CarouselItem({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'div'>):
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime84.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_runtime84.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_runtime84.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-DRWf66hR.mjs";import{t as e}from"../button-D54KOmb7.mjs";import{cn as t}from"@customafk/react-toolkit/utils";import{createContext as n,use as r,useCallback as i,useEffect as a,useState as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{ArrowLeft as l,ArrowRight as u}from"lucide-react";import d from"embla-carousel-react";const f=n(null);function p(){let e=r(f);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function m({orientation:e=`horizontal`,opts:n,setApi:r,plugins:c,className:l,children:u,...p}){let[m,h]=d({...n,axis:e===`horizontal`?`x`:`y`},c),[g,_]=o(!1),[v,y]=o(!1),b=i(e=>{e&&(_(e.canScrollPrev()),y(e.canScrollNext()))},[]),x=i(()=>{h?.scrollPrev()},[h]),S=i(()=>{h?.scrollNext()},[h]),C=i(e=>{e.key===`ArrowLeft`?(e.preventDefault(),x()):e.key===`ArrowRight`&&(e.preventDefault(),S())},[x,S]);return a(()=>{!h||!r||r(h)},[h,r]),a(()=>{if(h)return b(h),h.on(`reInit`,b),h.on(`select`,b),()=>{h?.off(`select`,b)}},[h,b]),s(f.Provider,{value:{carouselRef:m,api:h,opts:n,orientation:e||(n?.axis===`y`?`vertical`:`horizontal`),scrollPrev:x,scrollNext:S,canScrollPrev:g,canScrollNext:v},children:s(`div`,{onKeyDownCapture:C,className:t(`relative`,l),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...p,children:u})})}function h({className:e,...n}){let{carouselRef:r,orientation:i}=p();return s(`div`,{ref:r,className:`overflow-hidden`,"data-slot":`carousel-content`,children:s(`div`,{className:t(`flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...n})})}function g({className:e,...n}){let{orientation:r}=p();return s(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:t(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...n})}function _({className:n,variant:r=`outline`,size:i=`icon`,...a}){let{orientation:o,scrollPrev:u,canScrollPrev:d}=p();return c(e,{"data-slot":`carousel-previous`,variant:r,size:i,className:t(`absolute size-8 rounded-full`,o===`horizontal`?`top-1/2 -left-12 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,n),disabled:!d,onClick:u,...a,children:[s(l,{}),s(`span`,{className:`sr-only`,children:`Previous slide`})]})}function v({className:n,variant:r=`outline`,size:i=`icon`,...a}){let{orientation:o,scrollNext:l,canScrollNext:d}=p();return c(e,{"data-slot":`carousel-next`,variant:r,size:i,className:t(`absolute size-8 rounded-full`,o===`horizontal`?`top-1/2 -right-12 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,n),disabled:!d,onClick:l,...a,children:[s(u,{}),s(`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
|
package/dist/ui/checkbox.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime115 from "react/jsx-runtime";
|
|
2
2
|
import { Checkbox as Checkbox$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/checkbox.d.ts
|
|
5
5
|
declare function Checkbox({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Checkbox$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof Checkbox$1.Root>): react_jsx_runtime115.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Checkbox };
|
|
11
11
|
//# sourceMappingURL=checkbox.d.cts.map
|
package/dist/ui/checkbox.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime256 from "react/jsx-runtime";
|
|
2
2
|
import { Checkbox as Checkbox$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/checkbox.d.ts
|
|
5
5
|
declare function Checkbox({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Checkbox$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof Checkbox$1.Root>): react_jsx_runtime256.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Checkbox };
|
|
11
11
|
//# sourceMappingURL=checkbox.d.mts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime83 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_runtime83.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_runtime83.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_runtime83.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
16
16
|
//# sourceMappingURL=collapsible.d.cts.map
|