@customafk/lunas-ui 0.0.111 → 0.0.112
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-tUVN-gcp.d.ts → button-CsFG_79-.d.ts} +7 -7
- package/dist/{button-DT2zgZfZ.d.cts → button-DgaB7fPB.d.cts} +5 -5
- package/dist/{command-DCPdMqqD.d.cts → command-C3P4Gz9F.d.cts} +12 -12
- package/dist/{command-sBi1Usig.d.ts → command-DYTC2cax.d.ts} +12 -12
- package/dist/data-display/empty.d.cts +2 -2
- package/dist/data-display/empty.d.ts +2 -2
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.ts +2 -2
- package/dist/{dialog-DCW403Nj.d.cts → dialog-BAy07ui2.d.cts} +12 -12
- package/dist/{dialog-BbHuA_eL.d.ts → dialog-C-mUXuY2.d.ts} +12 -12
- package/dist/dialogs/detail-dialog/component/sidebar.cjs +1 -1
- package/dist/dialogs/detail-dialog/component/sidebar.d.cts +30 -30
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +30 -30
- package/dist/dialogs/detail-dialog/component/sidebar.js +1 -1
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.js +1 -1
- package/dist/dialogs/form-dialog.d.cts +2 -2
- package/dist/features/search-modal/index.d.cts +2 -2
- package/dist/features/search-modal/index.d.ts +2 -2
- package/dist/forms/combobox-field.d.cts +2 -2
- package/dist/forms/combobox-field.d.ts +2 -2
- package/dist/forms/date-field.d.cts +2 -2
- package/dist/forms/date-field.d.ts +2 -2
- package/dist/forms/form-wrapper.d.cts +2 -2
- package/dist/forms/form-wrapper.d.ts +2 -2
- package/dist/forms/multi-select-field.d.cts +2 -2
- package/dist/forms/multi-select-field.d.ts +2 -2
- package/dist/forms/number-field.d.cts +2 -2
- package/dist/forms/number-field.d.ts +2 -2
- package/dist/forms/password-field.d.cts +2 -2
- package/dist/forms/password-field.d.ts +2 -2
- package/dist/forms/select-field.d.cts +2 -2
- package/dist/forms/select-field.d.ts +2 -2
- package/dist/forms/switch-field.d.cts +2 -2
- package/dist/forms/switch-field.d.ts +2 -2
- package/dist/forms/text-field.d.cts +2 -2
- package/dist/forms/text-field.d.ts +2 -2
- package/dist/forms/textarea-field.d.cts +2 -2
- package/dist/forms/textarea-field.d.ts +2 -2
- package/dist/{input-CGlr-f2P.d.cts → input-B9KPHaTo.d.cts} +3 -3
- package/dist/{input-RFRYqH64.d.ts → input-CZDcQBGU.d.ts} +3 -3
- package/dist/label-BoPdZ_p1.d.cts +11 -0
- package/dist/{label-DUDKi2Z9.d.ts → label-C8yEQWaz.d.ts} +3 -3
- package/dist/layouts/app-layout/index.cjs +1 -1
- package/dist/layouts/app-layout/index.cjs.map +1 -1
- package/dist/layouts/app-layout/index.d.cts +3 -3
- package/dist/layouts/app-layout/index.d.ts +5 -5
- package/dist/layouts/app-layout/index.js +1 -1
- package/dist/layouts/app-layout/index.js.map +1 -1
- package/dist/layouts/flex.d.cts +4 -4
- package/dist/layouts/flex.d.ts +2 -2
- package/dist/layouts/service-layout/index.cjs +1 -1
- package/dist/layouts/service-layout/index.cjs.map +1 -1
- package/dist/layouts/service-layout/index.d.cts +3 -3
- package/dist/layouts/service-layout/index.d.ts +3 -3
- package/dist/layouts/service-layout/index.js +1 -1
- package/dist/layouts/service-layout/index.js.map +1 -1
- package/dist/pages/FeatureDeveloping.d.cts +2 -2
- package/dist/pages/FeatureDeveloping.d.ts +2 -2
- package/dist/pages/FeatureFixing.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.ts +2 -2
- package/dist/pages/NotAuthorized.d.cts +2 -2
- package/dist/pages/NotFound.d.cts +2 -2
- package/dist/pages/NotFound.d.ts +2 -2
- package/dist/products/product-quantity-control.d.cts +2 -2
- package/dist/products/product-quantity-control.d.ts +2 -2
- package/dist/{separator-DlKvRb97.d.cts → separator-BMWE1YbF.d.cts} +3 -3
- package/dist/{separator-B7MG0WfW.d.ts → separator-Q3X8kx0F.d.ts} +3 -3
- package/dist/sidebar-DqShpklE.js +2 -0
- package/dist/sidebar-DqShpklE.js.map +1 -0
- package/dist/sidebar-cOQ6XLq9.cjs +2 -0
- package/dist/sidebar-cOQ6XLq9.cjs.map +1 -0
- package/dist/table/index.cjs +1 -1
- package/dist/table/index.cjs.map +1 -1
- package/dist/table/index.d.cts +2 -2
- package/dist/table/index.d.ts +2 -2
- package/dist/table/index.js +1 -1
- package/dist/table/index.js.map +1 -1
- package/dist/tanstack-form/index.cjs +1 -1
- package/dist/tanstack-form/index.cjs.map +1 -1
- package/dist/tanstack-form/index.d.cts +18 -18
- package/dist/tanstack-form/index.d.ts +18 -18
- package/dist/tanstack-form/index.js +1 -1
- package/dist/tanstack-form/index.js.map +1 -1
- package/dist/{toggle-Bqn-nyu3.d.ts → toggle-CAwuiF7Z.d.ts} +3 -3
- package/dist/{toggle-DUz2tdav.d.cts → toggle-MKiZqOqs.d.cts} +5 -5
- package/dist/{tooltip-Co_tM-og.d.cts → tooltip-B8fqBNc4.d.cts} +6 -6
- package/dist/{tooltip-hKG8rdNt.d.ts → tooltip-BO_2mGzF.d.ts} +6 -6
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.ts +2 -2
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert.d.cts +5 -5
- package/dist/ui/alert.d.ts +5 -5
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/badge.d.cts +4 -4
- package/dist/ui/badge.d.ts +4 -4
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button-group.d.cts +7 -7
- package/dist/ui/button-group.d.ts +7 -7
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.ts +4 -4
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/carousel.cjs +1 -1
- package/dist/ui/carousel.cjs.map +1 -1
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/carousel.js +1 -1
- package/dist/ui/carousel.js.map +1 -1
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/drawer.d.cts +11 -11
- package/dist/ui/drawer.d.ts +11 -11
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/field.d.cts +25 -25
- package/dist/ui/field.d.ts +25 -25
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.ts +2 -2
- package/dist/ui/form.d.cts +11 -11
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/input-otp.cjs +1 -1
- package/dist/ui/input-otp.cjs.map +1 -1
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input-otp.js +1 -1
- package/dist/ui/input-otp.js.map +1 -1
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.ts +3 -3
- package/dist/ui/item.d.cts +16 -16
- package/dist/ui/item.d.ts +13 -13
- package/dist/ui/label.d.cts +1 -1
- package/dist/ui/label.d.ts +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/multi-select.d.cts +4 -4
- package/dist/ui/multi-select.d.ts +2 -2
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.ts +9 -9
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/scroll-area.d.cts +6 -6
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/select.d.cts +11 -11
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.cjs.map +1 -1
- package/dist/ui/sidebar.d.cts +28 -28
- package/dist/ui/sidebar.d.ts +30 -30
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.ts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/table.d.cts +18 -18
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/toggle-group.cjs +1 -1
- package/dist/ui/toggle-group.cjs.map +1 -1
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/package.json +1 -1
- package/dist/label-BVizk4r8.d.cts +0 -11
- package/dist/sidebar-CKSP_wGV.js +0 -2
- package/dist/sidebar-CKSP_wGV.js.map +0 -1
- package/dist/sidebar-DTYxSTwf.cjs +0 -2
- package/dist/sidebar-DTYxSTwf.cjs.map +0 -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-BMWE1YbF.cjs";
|
|
2
|
+
import * as react_jsx_runtime37 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_runtime37.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_runtime37.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_runtime37.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-Q3X8kx0F.js";
|
|
2
|
+
import * as react_jsx_runtime39 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_runtime39.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_runtime39.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_runtime39.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
29
29
|
//# sourceMappingURL=button-group.d.ts.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-DgaB7fPB.cjs";
|
|
2
2
|
export { Button, ButtonProps };
|
package/dist/ui/button.d.ts
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-CsFG_79-.js";
|
|
2
2
|
export { Button, ButtonProps };
|
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-DgaB7fPB.cjs";
|
|
2
|
+
import * as react_jsx_runtime189 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_runtime189.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_runtime189.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Calendar, CalendarDayButton };
|
|
27
27
|
//# sourceMappingURL=calendar.d.cts.map
|
package/dist/ui/calendar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Button } from "../button-CsFG_79-.js";
|
|
2
|
+
import * as react_jsx_runtime36 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_runtime36.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_runtime36.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Calendar, CalendarDayButton };
|
|
27
27
|
//# sourceMappingURL=calendar.d.ts.map
|
package/dist/ui/card.d.cts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime270 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_runtime270.JSX.Element;
|
|
8
8
|
declare function CardHeader({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<'div'>):
|
|
11
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime270.JSX.Element;
|
|
12
12
|
declare function CardTitle({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<'div'>):
|
|
15
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime270.JSX.Element;
|
|
16
16
|
declare function CardDescription({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<'div'>):
|
|
19
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime270.JSX.Element;
|
|
20
20
|
declare function CardAction({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<'div'>):
|
|
23
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime270.JSX.Element;
|
|
24
24
|
declare function CardContent({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<'div'>):
|
|
27
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime270.JSX.Element;
|
|
28
28
|
declare function CardFooter({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<'div'>):
|
|
31
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime270.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.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime70 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_runtime70.JSX.Element;
|
|
8
8
|
declare function CardHeader({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<'div'>):
|
|
11
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime70.JSX.Element;
|
|
12
12
|
declare function CardTitle({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<'div'>):
|
|
15
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime70.JSX.Element;
|
|
16
16
|
declare function CardDescription({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<'div'>):
|
|
19
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime70.JSX.Element;
|
|
20
20
|
declare function CardAction({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<'div'>):
|
|
23
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime70.JSX.Element;
|
|
24
24
|
declare function CardContent({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<'div'>):
|
|
27
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime70.JSX.Element;
|
|
28
28
|
declare function CardFooter({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<'div'>):
|
|
31
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime70.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
34
34
|
//# sourceMappingURL=card.d.ts.map
|
package/dist/ui/carousel.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-DjWAcSYV.cjs`);require(`../dist-BdSAGFCS.cjs`),require(`../button-variants-BebiEdiS.cjs`);const t=require(`../button-BKgDCyHZ.cjs`);let n=require(`lucide-react`);n=e.t(n);let r=require(`@customafk/react-toolkit/utils`);r=e.t(r);let i=require(`react`);i=e.t(i);let a=require(`react/jsx-runtime`);a=e.t(a);let o=require(`embla-carousel-react`);o=e.t(o);const s=(0,i.createContext)(null);function c(){let e=(0,i.
|
|
1
|
+
"use client";const e=require(`../chunk-DjWAcSYV.cjs`);require(`../dist-BdSAGFCS.cjs`),require(`../button-variants-BebiEdiS.cjs`);const t=require(`../button-BKgDCyHZ.cjs`);let n=require(`lucide-react`);n=e.t(n);let r=require(`@customafk/react-toolkit/utils`);r=e.t(r);let i=require(`react`);i=e.t(i);let a=require(`react/jsx-runtime`);a=e.t(a);let o=require(`embla-carousel-react`);o=e.t(o);const s=(0,i.createContext)(null);function c(){let e=(0,i.use)(s);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function l({orientation:e=`horizontal`,opts:t,setApi:n,plugins:c,className:l,children:u,...d}){let[f,p]=(0,o.default)({...t,axis:e===`horizontal`?`x`:`y`},c),[m,h]=(0,i.useState)(!1),[g,_]=(0,i.useState)(!1),v=(0,i.useCallback)(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()))},[]),y=(0,i.useCallback)(()=>{p?.scrollPrev()},[p]),b=(0,i.useCallback)(()=>{p?.scrollNext()},[p]),x=(0,i.useCallback)(e=>{e.key===`ArrowLeft`?(e.preventDefault(),y()):e.key===`ArrowRight`&&(e.preventDefault(),b())},[y,b]);return(0,i.useEffect)(()=>{!p||!n||n(p)},[p,n]),(0,i.useEffect)(()=>{if(p)return v(p),p.on(`reInit`,v),p.on(`select`,v),()=>{p?.off(`select`,v)}},[p,v]),(0,a.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,a.jsx)(`div`,{onKeyDownCapture:x,className:(0,r.cn)(`relative`,l),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...d,children:u})})}function u({className:e,...t}){let{carouselRef:n,orientation:i}=c();return(0,a.jsx)(`div`,{ref:n,className:`overflow-hidden`,"data-slot":`carousel-content`,children:(0,a.jsx)(`div`,{className:(0,r.cn)(`flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})}function d({className:e,...t}){let{orientation:n}=c();return(0,a.jsx)(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:(0,r.cn)(`min-w-0 shrink-0 grow-0 basis-full`,n===`horizontal`?`pl-4`:`pt-4`,e),...t})}function f({className:e,variant:i=`outline`,size:o=`icon`,...s}){let{orientation:l,scrollPrev:u,canScrollPrev:d}=c();return(0,a.jsxs)(t.t,{"data-slot":`carousel-previous`,variant:i,size:o,className:(0,r.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,a.jsx)(n.ArrowLeft,{}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})}function p({className:e,variant:i=`outline`,size:o=`icon`,...s}){let{orientation:l,scrollNext:u,canScrollNext:d}=c();return(0,a.jsxs)(t.t,{"data-slot":`carousel-next`,variant:i,size:o,className:(0,r.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,a.jsx)(n.ArrowRight,{}),(0,a.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.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.cjs","names":["api","Button","ArrowLeft","ArrowRight"],"sources":["../../packages/components/ui/carousel.tsx"],"sourcesContent":["'use client';\nimport { createContext,
|
|
1
|
+
{"version":3,"file":"carousel.cjs","names":["api","Button","ArrowLeft","ArrowRight"],"sources":["../../packages/components/ui/carousel.tsx"],"sourcesContent":["'use client';\nimport { createContext, use, useCallback, useEffect, useState } from 'react';\n\nimport { ArrowLeft, ArrowRight } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';\nimport { Button } from '@/components/ui/button';\n\ntype CarouselApi = UseEmblaCarouselType[1];\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\ntype CarouselOptions = UseCarouselParameters[0];\ntype CarouselPlugin = UseCarouselParameters[1];\n\ntype CarouselProps = {\n opts?: CarouselOptions;\n plugins?: CarouselPlugin;\n orientation?: 'horizontal' | 'vertical';\n setApi?: (api: CarouselApi) => void;\n};\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\n api: ReturnType<typeof useEmblaCarousel>[1];\n scrollPrev: () => void;\n scrollNext: () => void;\n canScrollPrev: boolean;\n canScrollNext: boolean;\n} & CarouselProps;\n\nconst CarouselContext = createContext<CarouselContextProps | null>(null);\n\nfunction useCarousel() {\n const context = use(CarouselContext);\n\n if (!context) {\n throw new Error('useCarousel must be used within a <Carousel />');\n }\n\n return context;\n}\n\nfunction Carousel({ orientation = 'horizontal', opts, setApi, plugins, className, children, ...props }: React.ComponentProps<'div'> & CarouselProps) {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === 'horizontal' ? 'x' : 'y',\n },\n plugins\n );\n const [canScrollPrev, setCanScrollPrev] = useState(false);\n const [canScrollNext, setCanScrollNext] = useState(false);\n\n const onSelect = useCallback((api: CarouselApi) => {\n if (!api) return;\n setCanScrollPrev(api.canScrollPrev());\n setCanScrollNext(api.canScrollNext());\n }, []);\n\n const scrollPrev = useCallback(() => {\n api?.scrollPrev();\n }, [api]);\n\n const scrollNext = useCallback(() => {\n api?.scrollNext();\n }, [api]);\n\n const handleKeyDown = useCallback(\n (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n scrollPrev();\n } else if (event.key === 'ArrowRight') {\n event.preventDefault();\n scrollNext();\n }\n },\n [scrollPrev, scrollNext]\n );\n\n useEffect(() => {\n if (!api || !setApi) return;\n setApi(api);\n }, [api, setApi]);\n\n useEffect(() => {\n if (!api) return;\n onSelect(api);\n api.on('reInit', onSelect);\n api.on('select', onSelect);\n\n return () => {\n api?.off('select', onSelect);\n };\n }, [api, onSelect]);\n\n return (\n <CarouselContext.Provider\n value={{\n carouselRef,\n api: api,\n opts,\n orientation: orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }}\n >\n <div onKeyDownCapture={handleKeyDown} className={cn('relative', className)} role=\"region\" aria-roledescription=\"carousel\" data-slot=\"carousel\" {...props}>\n {children}\n </div>\n </CarouselContext.Provider>\n );\n}\n\nfunction CarouselContent({ className, ...props }: React.ComponentProps<'div'>) {\n const { carouselRef, orientation } = useCarousel();\n\n return (\n <div ref={carouselRef} className=\"overflow-hidden\" data-slot=\"carousel-content\">\n <div className={cn('flex', orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', className)} {...props} />\n </div>\n );\n}\n\nfunction CarouselItem({ className, ...props }: React.ComponentProps<'div'>) {\n const { orientation } = useCarousel();\n\n return (\n <div\n role=\"group\"\n aria-roledescription=\"slide\"\n data-slot=\"carousel-item\"\n className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\n {...props}\n />\n );\n}\n\nfunction CarouselPrevious({ className, variant = 'outline', size = 'icon', ...props }: React.ComponentProps<typeof Button>) {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-previous\"\n variant={variant}\n size={size}\n className={cn(\n 'absolute size-8 rounded-full',\n orientation === 'horizontal' ? 'top-1/2 -left-12 -translate-y-1/2' : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n className\n )}\n disabled={!canScrollPrev}\n onClick={scrollPrev}\n {...props}\n >\n <ArrowLeft />\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n );\n}\n\nfunction CarouselNext({ className, variant = 'outline', size = 'icon', ...props }: React.ComponentProps<typeof Button>) {\n const { orientation, scrollNext, canScrollNext } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-next\"\n variant={variant}\n size={size}\n className={cn(\n 'absolute size-8 rounded-full',\n orientation === 'horizontal' ? 'top-1/2 -right-12 -translate-y-1/2' : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n className\n )}\n disabled={!canScrollNext}\n onClick={scrollNext}\n {...props}\n >\n <ArrowRight />\n <span className=\"sr-only\">Next slide</span>\n </Button>\n );\n}\n\nexport { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };\n"],"mappings":"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"}
|
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-DgaB7fPB.cjs";
|
|
2
|
+
import * as react_jsx_runtime191 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_runtime191.JSX.Element;
|
|
25
25
|
declare function CarouselContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'div'>):
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime191.JSX.Element;
|
|
29
29
|
declare function CarouselItem({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'div'>):
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime191.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_runtime191.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_runtime191.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.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
import * as
|
|
1
|
+
import { t as Button } from "../button-CsFG_79-.js";
|
|
2
|
+
import * as react_jsx_runtime65 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_runtime65.JSX.Element;
|
|
25
25
|
declare function CarouselContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'div'>):
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime65.JSX.Element;
|
|
29
29
|
declare function CarouselItem({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'div'>):
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime65.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_runtime65.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_runtime65.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
47
47
|
//# sourceMappingURL=carousel.d.ts.map
|
package/dist/ui/carousel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../dist-B3j6PslN.js";import"../button-variants-D1PJJEST.js";import{t as e}from"../button-dQ8MuLKP.js";import{ArrowLeft as t,ArrowRight as n}from"lucide-react";import{cn as r}from"@customafk/react-toolkit/utils";import{createContext as i,
|
|
1
|
+
"use client";import"../dist-B3j6PslN.js";import"../button-variants-D1PJJEST.js";import{t as e}from"../button-dQ8MuLKP.js";import{ArrowLeft as t,ArrowRight as n}from"lucide-react";import{cn as r}from"@customafk/react-toolkit/utils";import{createContext as i,use as a,useCallback as o,useEffect as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import d from"embla-carousel-react";const f=i(null);function p(){let e=a(f);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function m({orientation:e=`horizontal`,opts:t,setApi:n,plugins:i,className:a,children:u,...p}){let[m,h]=d({...t,axis:e===`horizontal`?`x`:`y`},i),[g,_]=c(!1),[v,y]=c(!1),b=o(e=>{e&&(_(e.canScrollPrev()),y(e.canScrollNext()))},[]),x=o(()=>{h?.scrollPrev()},[h]),S=o(()=>{h?.scrollNext()},[h]),C=o(e=>{e.key===`ArrowLeft`?(e.preventDefault(),x()):e.key===`ArrowRight`&&(e.preventDefault(),S())},[x,S]);return s(()=>{!h||!n||n(h)},[h,n]),s(()=>{if(h)return b(h),h.on(`reInit`,b),h.on(`select`,b),()=>{h?.off(`select`,b)}},[h,b]),l(f.Provider,{value:{carouselRef:m,api:h,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:x,scrollNext:S,canScrollPrev:g,canScrollNext:v},children:l(`div`,{onKeyDownCapture:C,className:r(`relative`,a),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...p,children:u})})}function h({className:e,...t}){let{carouselRef:n,orientation:i}=p();return l(`div`,{ref:n,className:`overflow-hidden`,"data-slot":`carousel-content`,children:l(`div`,{className:r(`flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})}function g({className:e,...t}){let{orientation:n}=p();return l(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:r(`min-w-0 shrink-0 grow-0 basis-full`,n===`horizontal`?`pl-4`:`pt-4`,e),...t})}function _({className:n,variant:i=`outline`,size:a=`icon`,...o}){let{orientation:s,scrollPrev:c,canScrollPrev:d}=p();return u(e,{"data-slot":`carousel-previous`,variant:i,size:a,className:r(`absolute size-8 rounded-full`,s===`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:c,...o,children:[l(t,{}),l(`span`,{className:`sr-only`,children:`Previous slide`})]})}function v({className:t,variant:i=`outline`,size:a=`icon`,...o}){let{orientation:s,scrollNext:c,canScrollNext:d}=p();return u(e,{"data-slot":`carousel-next`,variant:i,size:a,className:r(`absolute size-8 rounded-full`,s===`horizontal`?`top-1/2 -right-12 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,t),disabled:!d,onClick:c,...o,children:[l(n,{}),l(`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.js.map
|
package/dist/ui/carousel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.js","names":["api"],"sources":["../../packages/components/ui/carousel.tsx"],"sourcesContent":["'use client';\nimport { createContext,
|
|
1
|
+
{"version":3,"file":"carousel.js","names":["api"],"sources":["../../packages/components/ui/carousel.tsx"],"sourcesContent":["'use client';\nimport { createContext, use, useCallback, useEffect, useState } from 'react';\n\nimport { ArrowLeft, ArrowRight } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';\nimport { Button } from '@/components/ui/button';\n\ntype CarouselApi = UseEmblaCarouselType[1];\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\ntype CarouselOptions = UseCarouselParameters[0];\ntype CarouselPlugin = UseCarouselParameters[1];\n\ntype CarouselProps = {\n opts?: CarouselOptions;\n plugins?: CarouselPlugin;\n orientation?: 'horizontal' | 'vertical';\n setApi?: (api: CarouselApi) => void;\n};\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\n api: ReturnType<typeof useEmblaCarousel>[1];\n scrollPrev: () => void;\n scrollNext: () => void;\n canScrollPrev: boolean;\n canScrollNext: boolean;\n} & CarouselProps;\n\nconst CarouselContext = createContext<CarouselContextProps | null>(null);\n\nfunction useCarousel() {\n const context = use(CarouselContext);\n\n if (!context) {\n throw new Error('useCarousel must be used within a <Carousel />');\n }\n\n return context;\n}\n\nfunction Carousel({ orientation = 'horizontal', opts, setApi, plugins, className, children, ...props }: React.ComponentProps<'div'> & CarouselProps) {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === 'horizontal' ? 'x' : 'y',\n },\n plugins\n );\n const [canScrollPrev, setCanScrollPrev] = useState(false);\n const [canScrollNext, setCanScrollNext] = useState(false);\n\n const onSelect = useCallback((api: CarouselApi) => {\n if (!api) return;\n setCanScrollPrev(api.canScrollPrev());\n setCanScrollNext(api.canScrollNext());\n }, []);\n\n const scrollPrev = useCallback(() => {\n api?.scrollPrev();\n }, [api]);\n\n const scrollNext = useCallback(() => {\n api?.scrollNext();\n }, [api]);\n\n const handleKeyDown = useCallback(\n (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n scrollPrev();\n } else if (event.key === 'ArrowRight') {\n event.preventDefault();\n scrollNext();\n }\n },\n [scrollPrev, scrollNext]\n );\n\n useEffect(() => {\n if (!api || !setApi) return;\n setApi(api);\n }, [api, setApi]);\n\n useEffect(() => {\n if (!api) return;\n onSelect(api);\n api.on('reInit', onSelect);\n api.on('select', onSelect);\n\n return () => {\n api?.off('select', onSelect);\n };\n }, [api, onSelect]);\n\n return (\n <CarouselContext.Provider\n value={{\n carouselRef,\n api: api,\n opts,\n orientation: orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }}\n >\n <div onKeyDownCapture={handleKeyDown} className={cn('relative', className)} role=\"region\" aria-roledescription=\"carousel\" data-slot=\"carousel\" {...props}>\n {children}\n </div>\n </CarouselContext.Provider>\n );\n}\n\nfunction CarouselContent({ className, ...props }: React.ComponentProps<'div'>) {\n const { carouselRef, orientation } = useCarousel();\n\n return (\n <div ref={carouselRef} className=\"overflow-hidden\" data-slot=\"carousel-content\">\n <div className={cn('flex', orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', className)} {...props} />\n </div>\n );\n}\n\nfunction CarouselItem({ className, ...props }: React.ComponentProps<'div'>) {\n const { orientation } = useCarousel();\n\n return (\n <div\n role=\"group\"\n aria-roledescription=\"slide\"\n data-slot=\"carousel-item\"\n className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\n {...props}\n />\n );\n}\n\nfunction CarouselPrevious({ className, variant = 'outline', size = 'icon', ...props }: React.ComponentProps<typeof Button>) {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-previous\"\n variant={variant}\n size={size}\n className={cn(\n 'absolute size-8 rounded-full',\n orientation === 'horizontal' ? 'top-1/2 -left-12 -translate-y-1/2' : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n className\n )}\n disabled={!canScrollPrev}\n onClick={scrollPrev}\n {...props}\n >\n <ArrowLeft />\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n );\n}\n\nfunction CarouselNext({ className, variant = 'outline', size = 'icon', ...props }: React.ComponentProps<typeof Button>) {\n const { orientation, scrollNext, canScrollNext } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-next\"\n variant={variant}\n size={size}\n className={cn(\n 'absolute size-8 rounded-full',\n orientation === 'horizontal' ? 'top-1/2 -right-12 -translate-y-1/2' : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n className\n )}\n disabled={!canScrollNext}\n onClick={scrollNext}\n {...props}\n >\n <ArrowRight />\n <span className=\"sr-only\">Next slide</span>\n </Button>\n );\n}\n\nexport { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };\n"],"mappings":"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"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime223 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_runtime223.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_runtime223.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_runtime223.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
16
16
|
//# sourceMappingURL=collapsible.d.cts.map
|
package/dist/ui/collapsible.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime55 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_runtime55.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_runtime55.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_runtime55.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
16
16
|
//# sourceMappingURL=collapsible.d.ts.map
|
package/dist/ui/command.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../dialog-
|
|
2
|
-
import { a as CommandInput, c as CommandSeparator, i as CommandGroup, l as CommandShortcut, n as CommandDialog, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "../command-
|
|
1
|
+
import "../dialog-BAy07ui2.cjs";
|
|
2
|
+
import { a as CommandInput, c as CommandSeparator, i as CommandGroup, l as CommandShortcut, n as CommandDialog, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "../command-C3P4Gz9F.cjs";
|
|
3
3
|
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
package/dist/ui/command.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../dialog-
|
|
2
|
-
import { a as CommandInput, c as CommandSeparator, i as CommandGroup, l as CommandShortcut, n as CommandDialog, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "../command-
|
|
1
|
+
import "../dialog-C-mUXuY2.js";
|
|
2
|
+
import { a as CommandInput, c as CommandSeparator, i as CommandGroup, l as CommandShortcut, n as CommandDialog, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "../command-DYTC2cax.js";
|
|
3
3
|
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime208 from "react/jsx-runtime";
|
|
2
2
|
import { ContextMenu as ContextMenu$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/context-menu.d.ts
|
|
5
5
|
declare function ContextMenu({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof ContextMenu$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof ContextMenu$1.Root>): react_jsx_runtime208.JSX.Element;
|
|
8
8
|
declare function ContextMenuTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof ContextMenu$1.Trigger>):
|
|
10
|
+
}: React.ComponentProps<typeof ContextMenu$1.Trigger>): react_jsx_runtime208.JSX.Element;
|
|
11
11
|
declare function ContextMenuGroup({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof ContextMenu$1.Group>):
|
|
13
|
+
}: React.ComponentProps<typeof ContextMenu$1.Group>): react_jsx_runtime208.JSX.Element;
|
|
14
14
|
declare function ContextMenuPortal({
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof ContextMenu$1.Portal>):
|
|
16
|
+
}: React.ComponentProps<typeof ContextMenu$1.Portal>): react_jsx_runtime208.JSX.Element;
|
|
17
17
|
declare function ContextMenuSub({
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof ContextMenu$1.Sub>):
|
|
19
|
+
}: React.ComponentProps<typeof ContextMenu$1.Sub>): react_jsx_runtime208.JSX.Element;
|
|
20
20
|
declare function ContextMenuRadioGroup({
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof ContextMenu$1.RadioGroup>):
|
|
22
|
+
}: React.ComponentProps<typeof ContextMenu$1.RadioGroup>): react_jsx_runtime208.JSX.Element;
|
|
23
23
|
declare function ContextMenuSubTrigger({
|
|
24
24
|
className,
|
|
25
25
|
inset,
|
|
@@ -27,15 +27,15 @@ declare function ContextMenuSubTrigger({
|
|
|
27
27
|
...props
|
|
28
28
|
}: React.ComponentProps<typeof ContextMenu$1.SubTrigger> & {
|
|
29
29
|
inset?: boolean;
|
|
30
|
-
}):
|
|
30
|
+
}): react_jsx_runtime208.JSX.Element;
|
|
31
31
|
declare function ContextMenuSubContent({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
|
34
|
-
}: React.ComponentProps<typeof ContextMenu$1.SubContent>):
|
|
34
|
+
}: React.ComponentProps<typeof ContextMenu$1.SubContent>): react_jsx_runtime208.JSX.Element;
|
|
35
35
|
declare function ContextMenuContent({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof ContextMenu$1.Content>):
|
|
38
|
+
}: React.ComponentProps<typeof ContextMenu$1.Content>): react_jsx_runtime208.JSX.Element;
|
|
39
39
|
declare function ContextMenuItem({
|
|
40
40
|
className,
|
|
41
41
|
inset,
|
|
@@ -44,33 +44,33 @@ declare function ContextMenuItem({
|
|
|
44
44
|
}: React.ComponentProps<typeof ContextMenu$1.Item> & {
|
|
45
45
|
inset?: boolean;
|
|
46
46
|
variant?: 'default' | 'destructive';
|
|
47
|
-
}):
|
|
47
|
+
}): react_jsx_runtime208.JSX.Element;
|
|
48
48
|
declare function ContextMenuCheckboxItem({
|
|
49
49
|
className,
|
|
50
50
|
children,
|
|
51
51
|
checked,
|
|
52
52
|
...props
|
|
53
|
-
}: React.ComponentProps<typeof ContextMenu$1.CheckboxItem>):
|
|
53
|
+
}: React.ComponentProps<typeof ContextMenu$1.CheckboxItem>): react_jsx_runtime208.JSX.Element;
|
|
54
54
|
declare function ContextMenuRadioItem({
|
|
55
55
|
className,
|
|
56
56
|
children,
|
|
57
57
|
...props
|
|
58
|
-
}: React.ComponentProps<typeof ContextMenu$1.RadioItem>):
|
|
58
|
+
}: React.ComponentProps<typeof ContextMenu$1.RadioItem>): react_jsx_runtime208.JSX.Element;
|
|
59
59
|
declare function ContextMenuLabel({
|
|
60
60
|
className,
|
|
61
61
|
inset,
|
|
62
62
|
...props
|
|
63
63
|
}: React.ComponentProps<typeof ContextMenu$1.Label> & {
|
|
64
64
|
inset?: boolean;
|
|
65
|
-
}):
|
|
65
|
+
}): react_jsx_runtime208.JSX.Element;
|
|
66
66
|
declare function ContextMenuSeparator({
|
|
67
67
|
className,
|
|
68
68
|
...props
|
|
69
|
-
}: React.ComponentProps<typeof ContextMenu$1.Separator>):
|
|
69
|
+
}: React.ComponentProps<typeof ContextMenu$1.Separator>): react_jsx_runtime208.JSX.Element;
|
|
70
70
|
declare function ContextMenuShortcut({
|
|
71
71
|
className,
|
|
72
72
|
...props
|
|
73
|
-
}: React.ComponentProps<'span'>):
|
|
73
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime208.JSX.Element;
|
|
74
74
|
//#endregion
|
|
75
75
|
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
76
76
|
//# sourceMappingURL=context-menu.d.cts.map
|