fix import
This commit is contained in:
parent
0bffe0742e
commit
80920b5d8a
|
|
@ -1,5 +1,3 @@
|
||||||
import * as XLSX from "xlsx";
|
|
||||||
import { TableListProp } from "../TableList";
|
|
||||||
import { filterWhere } from "lib/comps/filter/parser/filter-where";
|
import { filterWhere } from "lib/comps/filter/parser/filter-where";
|
||||||
import { call_prasi_events } from "lib/exports";
|
import { call_prasi_events } from "lib/exports";
|
||||||
|
|
||||||
|
|
@ -8,7 +6,7 @@ export const export_excel = async ({
|
||||||
tbl,
|
tbl,
|
||||||
on_load,
|
on_load,
|
||||||
}: {
|
}: {
|
||||||
list: TableListProp;
|
list: any;
|
||||||
tbl: {
|
tbl: {
|
||||||
columns: any[];
|
columns: any[];
|
||||||
sort: {
|
sort: {
|
||||||
|
|
|
||||||
|
|
@ -1,64 +0,0 @@
|
||||||
import * as React from "react"
|
|
||||||
import { ChevronLeft, ChevronRight } from "lucide-react"
|
|
||||||
import { DayPicker } from "react-day-picker"
|
|
||||||
|
|
||||||
import { cn } from "@/utils"
|
|
||||||
import { buttonVariants } from "@/comps//ui/button"
|
|
||||||
|
|
||||||
export type CalendarProps = React.ComponentProps<typeof DayPicker>
|
|
||||||
|
|
||||||
function Calendar({
|
|
||||||
className,
|
|
||||||
classNames,
|
|
||||||
showOutsideDays = true,
|
|
||||||
...props
|
|
||||||
}: CalendarProps) {
|
|
||||||
return (
|
|
||||||
<DayPicker
|
|
||||||
showOutsideDays={showOutsideDays}
|
|
||||||
className={cn("c-p-3", className)}
|
|
||||||
classNames={{
|
|
||||||
months: "c-flex c-flex-col sm:c-flex-row c-space-y-4 sm:c-space-x-4 sm:c-space-y-0",
|
|
||||||
month: "c-space-y-4",
|
|
||||||
caption: "c-flex c-justify-center c-pt-1 c-relative c-items-center",
|
|
||||||
caption_label: "c-text-sm c-font-medium",
|
|
||||||
nav: "c-space-x-1 c-flex c-items-center",
|
|
||||||
nav_button: cn(
|
|
||||||
buttonVariants({ variant: "outline" }),
|
|
||||||
"c-h-7 c-w-7 c-bg-transparent c-p-0 c-opacity-50 hover:c-opacity-100"
|
|
||||||
),
|
|
||||||
nav_button_previous: "c-absolute c-left-1",
|
|
||||||
nav_button_next: "c-absolute c-right-1",
|
|
||||||
table: "c-w-full c-border-collapse c-space-y-1",
|
|
||||||
head_row: "c-flex",
|
|
||||||
head_cell:
|
|
||||||
"c-text-muted-foreground c-rounded-md c-w-9 c-font-normal c-text-[0.8rem]",
|
|
||||||
row: "c-flex c-w-full c-mt-2",
|
|
||||||
cell: "c-h-9 c-w-9 c-text-center c-text-sm c-p-0 c-relative [&:has([aria-selected].day-range-end)]:c-rounded-r-md [&:has([aria-selected].day-outside)]:c-bg-accent/50 [&:has([aria-selected])]:c-bg-accent first:[&:has([aria-selected])]:c-rounded-l-md last:[&:has([aria-selected])]:c-rounded-r-md focus-within:c-relative focus-within:c-z-20",
|
|
||||||
day: cn(
|
|
||||||
buttonVariants({ variant: "ghost" }),
|
|
||||||
"c-h-9 c-w-9 c-p-0 c-font-normal aria-selected:c-opacity-100"
|
|
||||||
),
|
|
||||||
day_range_end: "c-day-range-end",
|
|
||||||
day_selected:
|
|
||||||
"c-bg-primary c-text-primary-foreground hover:c-bg-primary hover:c-text-primary-foreground focus:c-bg-primary focus:c-text-primary-foreground",
|
|
||||||
day_today: "c-bg-accent c-text-accent-foreground",
|
|
||||||
day_outside:
|
|
||||||
"c-day-outside c-text-muted-foreground c-opacity-50 aria-selected:c-bg-accent/50 aria-selected:c-text-muted-foreground aria-selected:c-opacity-30",
|
|
||||||
day_disabled: "c-text-muted-foreground c-opacity-50",
|
|
||||||
day_range_middle:
|
|
||||||
"aria-selected:c-bg-accent aria-selected:c-text-accent-foreground",
|
|
||||||
day_hidden: "c-invisible",
|
|
||||||
...classNames,
|
|
||||||
}}
|
|
||||||
components={{
|
|
||||||
IconLeft: ({ ...props }) => <ChevronLeft className="c-h-4 c-w-4" />,
|
|
||||||
IconRight: ({ ...props }) => <ChevronRight className="c-h-4 c-w-4" />,
|
|
||||||
}}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
Calendar.displayName = "Calendar"
|
|
||||||
|
|
||||||
export { Calendar }
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import * as React from "react"
|
import * as React from "react";
|
||||||
import { OTPInput, OTPInputContext } from "input-otp"
|
import { OTPInput, OTPInputContext } from "input-otp";
|
||||||
import { Dot } from "lucide-react"
|
import { Dot } from "lucide-react";
|
||||||
|
|
||||||
import { cn } from "@/utils"
|
import { cn } from "@/utils";
|
||||||
|
|
||||||
const InputOTP = React.forwardRef<
|
const InputOTP = React.forwardRef<
|
||||||
React.ElementRef<typeof OTPInput>,
|
React.ElementRef<typeof OTPInput>,
|
||||||
|
|
@ -17,23 +17,27 @@ const InputOTP = React.forwardRef<
|
||||||
className={cn("disabled:c-cursor-not-allowed", className)}
|
className={cn("disabled:c-cursor-not-allowed", className)}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
))
|
));
|
||||||
InputOTP.displayName = "InputOTP"
|
InputOTP.displayName = "InputOTP";
|
||||||
|
|
||||||
const InputOTPGroup = React.forwardRef<
|
const InputOTPGroup = React.forwardRef<
|
||||||
React.ElementRef<"div">,
|
React.ElementRef<"div">,
|
||||||
React.ComponentPropsWithoutRef<"div">
|
React.ComponentPropsWithoutRef<"div">
|
||||||
>(({ className, ...props }, ref) => (
|
>(({ className, ...props }, ref) => (
|
||||||
<div ref={ref} className={cn("c-flex c-items-center", className)} {...props} />
|
<div
|
||||||
))
|
ref={ref}
|
||||||
InputOTPGroup.displayName = "InputOTPGroup"
|
className={cn("c-flex c-items-center", className)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
));
|
||||||
|
InputOTPGroup.displayName = "InputOTPGroup";
|
||||||
|
|
||||||
const InputOTPSlot = React.forwardRef<
|
const InputOTPSlot = React.forwardRef<
|
||||||
React.ElementRef<"div">,
|
React.ElementRef<"div">,
|
||||||
React.ComponentPropsWithoutRef<"div"> & { index: number }
|
React.ComponentPropsWithoutRef<"div"> & { index: number }
|
||||||
>(({ index, className, ...props }, ref) => {
|
>(({ index, className, ...props }, ref) => {
|
||||||
const inputOTPContext = React.useContext(OTPInputContext)
|
const inputOTPContext = React.useContext(OTPInputContext);
|
||||||
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
@ -52,9 +56,9 @@ const InputOTPSlot = React.forwardRef<
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
})
|
});
|
||||||
InputOTPSlot.displayName = "InputOTPSlot"
|
InputOTPSlot.displayName = "InputOTPSlot";
|
||||||
|
|
||||||
const InputOTPSeparator = React.forwardRef<
|
const InputOTPSeparator = React.forwardRef<
|
||||||
React.ElementRef<"div">,
|
React.ElementRef<"div">,
|
||||||
|
|
@ -63,7 +67,7 @@ const InputOTPSeparator = React.forwardRef<
|
||||||
<div ref={ref} role="separator" {...props}>
|
<div ref={ref} role="separator" {...props}>
|
||||||
<Dot />
|
<Dot />
|
||||||
</div>
|
</div>
|
||||||
))
|
));
|
||||||
InputOTPSeparator.displayName = "InputOTPSeparator"
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
||||||
|
|
||||||
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }
|
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ export const Menu: FC<MenuProp> = (props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cx("c-overflow-y-auto c-relative c-h-full c-w-full ")}
|
className={cx("c-overflow-y-auto c-relative c-h-full c-w-full c-flex-1")}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
>
|
>
|
||||||
<div className="sidebar-menu c-absolute c-inset-0 c-flex c-flex-col c-flex-grow c-px-3 c-py-4 ">
|
<div className="sidebar-menu c-absolute c-inset-0 c-flex c-flex-col c-flex-grow c-px-3 c-py-4 ">
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import { FieldLocal } from "lib/comps/form/typings";
|
import { FieldLocal } from "lib/comps/form/typings";
|
||||||
import { FMLocal } from "../..";
|
import { FMLocal } from "../..";
|
||||||
import { Prisma } from "../../typings/prisma";
|
|
||||||
import { set } from "./set";
|
import { set } from "./set";
|
||||||
import { MDLocal } from "lib/comps/md/utils/typings";
|
import { MDLocal } from "lib/comps/md/utils/typings";
|
||||||
|
import { Prisma } from "../../typings/prisma";
|
||||||
|
|
||||||
const events = {
|
const events = {
|
||||||
form: {
|
form: {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import { router } from "app/router";
|
|
||||||
type ROUTES = keyof typeof router;
|
|
||||||
export const route_params = async <T extends ROUTES>(
|
|
||||||
route: T,
|
|
||||||
arg: ROUTES[]
|
|
||||||
) => {
|
|
||||||
const r = router[route];
|
|
||||||
if (r) {
|
|
||||||
// r()
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Loading…
Reference in New Issue