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 { call_prasi_events } from "lib/exports";
|
||||
|
||||
|
|
@ -8,7 +6,7 @@ export const export_excel = async ({
|
|||
tbl,
|
||||
on_load,
|
||||
}: {
|
||||
list: TableListProp;
|
||||
list: any;
|
||||
tbl: {
|
||||
columns: any[];
|
||||
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 { OTPInput, OTPInputContext } from "input-otp"
|
||||
import { Dot } from "lucide-react"
|
||||
import * as React from "react";
|
||||
import { OTPInput, OTPInputContext } from "input-otp";
|
||||
import { Dot } from "lucide-react";
|
||||
|
||||
import { cn } from "@/utils"
|
||||
import { cn } from "@/utils";
|
||||
|
||||
const InputOTP = React.forwardRef<
|
||||
React.ElementRef<typeof OTPInput>,
|
||||
|
|
@ -17,23 +17,27 @@ const InputOTP = React.forwardRef<
|
|||
className={cn("disabled:c-cursor-not-allowed", className)}
|
||||
{...props}
|
||||
/>
|
||||
))
|
||||
InputOTP.displayName = "InputOTP"
|
||||
));
|
||||
InputOTP.displayName = "InputOTP";
|
||||
|
||||
const InputOTPGroup = React.forwardRef<
|
||||
React.ElementRef<"div">,
|
||||
React.ComponentPropsWithoutRef<"div">
|
||||
>(({ className, ...props }, ref) => (
|
||||
<div ref={ref} className={cn("c-flex c-items-center", className)} {...props} />
|
||||
))
|
||||
InputOTPGroup.displayName = "InputOTPGroup"
|
||||
<div
|
||||
ref={ref}
|
||||
className={cn("c-flex c-items-center", className)}
|
||||
{...props}
|
||||
/>
|
||||
));
|
||||
InputOTPGroup.displayName = "InputOTPGroup";
|
||||
|
||||
const InputOTPSlot = React.forwardRef<
|
||||
React.ElementRef<"div">,
|
||||
React.ComponentPropsWithoutRef<"div"> & { index: number }
|
||||
>(({ index, className, ...props }, ref) => {
|
||||
const inputOTPContext = React.useContext(OTPInputContext)
|
||||
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]
|
||||
const inputOTPContext = React.useContext(OTPInputContext);
|
||||
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
@ -52,9 +56,9 @@ const InputOTPSlot = React.forwardRef<
|
|||
</div>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
})
|
||||
InputOTPSlot.displayName = "InputOTPSlot"
|
||||
);
|
||||
});
|
||||
InputOTPSlot.displayName = "InputOTPSlot";
|
||||
|
||||
const InputOTPSeparator = React.forwardRef<
|
||||
React.ElementRef<"div">,
|
||||
|
|
@ -63,7 +67,7 @@ const InputOTPSeparator = React.forwardRef<
|
|||
<div ref={ref} role="separator" {...props}>
|
||||
<Dot />
|
||||
</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 (
|
||||
<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}
|
||||
>
|
||||
<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 { FMLocal } from "../..";
|
||||
import { Prisma } from "../../typings/prisma";
|
||||
import { set } from "./set";
|
||||
import { MDLocal } from "lib/comps/md/utils/typings";
|
||||
import { Prisma } from "../../typings/prisma";
|
||||
|
||||
const events = {
|
||||
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