@vitnode/core 1.2.0-canary.15 → 1.2.0-canary.17
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/scripts/scripts.js +3 -3
- package/dist/scripts/shared/file-utils.d.ts.map +1 -1
- package/dist/src/api/config.js +3 -3
- package/dist/src/api/lib/check-plugin-id.js +1 -1
- package/dist/src/api/lib/plugin.js +1 -1
- package/dist/src/api/lib/route.js +1 -1
- package/dist/src/api/middlewares/global/global.js +3 -3
- package/dist/src/api/models/device.js +3 -3
- package/dist/src/api/models/session-admin.js +3 -3
- package/dist/src/api/models/session.js +3 -3
- package/dist/src/api/models/sso.js +4 -4
- package/dist/src/api/models/user/get-user-by-id.js +1 -1
- package/dist/src/api/models/user/sign-in-with-passwords.js +2 -2
- package/dist/src/api/models/user/sign-up.js +5 -5
- package/dist/src/api/models/user.js +3 -3
- package/dist/src/api/modules/admin/admin.module.js +4 -4
- package/dist/src/api/modules/admin/routes/session.route.js +2 -2
- package/dist/src/api/modules/admin/users/routes/list.route.js +4 -4
- package/dist/src/api/modules/admin/users/routes/users.route.js +4 -4
- package/dist/src/api/modules/admin/users/users.admin.module.js +3 -3
- package/dist/src/api/modules/middleware/middleware.module.js +3 -3
- package/dist/src/api/modules/middleware/route.js +3 -3
- package/dist/src/api/modules/users/avatar-color.js +1 -1
- package/dist/src/api/modules/users/routes/session.route.js +3 -3
- package/dist/src/api/modules/users/routes/sign-in.route.js +5 -5
- package/dist/src/api/modules/users/routes/sign-out.route.js +4 -4
- package/dist/src/api/modules/users/routes/sign-up.route.js +4 -4
- package/dist/src/api/modules/users/routes/test.route.js +2 -2
- package/dist/src/api/modules/users/sso/routes/callback.route.js +4 -4
- package/dist/src/api/modules/users/sso/routes/create-url.route.js +3 -3
- package/dist/src/api/modules/users/sso/sso.module.js +4 -4
- package/dist/src/api/modules/users/users.module.js +8 -8
- package/dist/src/api/plugin.js +5 -5
- package/dist/src/api/plugins/sso/discord.js +1 -1
- package/dist/src/api/plugins/sso/facebook.js +1 -1
- package/dist/src/api/plugins/sso/google.js +1 -1
- package/dist/src/app/login/page.js +1 -1
- package/dist/src/app/login/sso/[providerId]/page.js +1 -1
- package/dist/src/app/register/page.js +1 -1
- package/dist/src/app_admin/core/page.js +1 -1
- package/dist/src/app_admin/core/test/page.js +1 -1
- package/dist/src/app_admin/core/users/page.js +3 -3
- package/dist/src/components/avatar.js +1 -1
- package/dist/src/components/date-format.js +1 -1
- package/dist/src/components/form/auto-form.js +5 -5
- package/dist/src/components/form/common/desc.js +1 -1
- package/dist/src/components/form/common/label.js +1 -1
- package/dist/src/components/form/fields/checkbox.js +4 -4
- package/dist/src/components/form/fields/combobox.js +8 -8
- package/dist/src/components/form/fields/input.js +4 -4
- package/dist/src/components/form/fields/item.js +2 -2
- package/dist/src/components/form/fields/radio-group.js +5 -5
- package/dist/src/components/form/fields/select.js +5 -5
- package/dist/src/components/form/fields/switch.js +4 -4
- package/dist/src/components/form/fields/textarea.js +4 -4
- package/dist/src/components/logo-vitnode.js +1 -1
- package/dist/src/components/switchers/theme-switcher.js +1 -1
- package/dist/src/components/table/content.js +4 -4
- package/dist/src/components/table/data-table.js +4 -4
- package/dist/src/components/table/order-table-head.js +3 -3
- package/dist/src/components/table/pagination.js +4 -4
- package/dist/src/components/ui/accordion.js +1 -1
- package/dist/src/components/ui/alert-dialog.js +2 -2
- package/dist/src/components/ui/alert.js +1 -1
- package/dist/src/components/ui/badge.js +1 -1
- package/dist/src/components/ui/button.js +2 -2
- package/dist/src/components/ui/card.js +1 -1
- package/dist/src/components/ui/checkbox.js +1 -1
- package/dist/src/components/ui/command.js +2 -2
- package/dist/src/components/ui/context-menu.js +1 -1
- package/dist/src/components/ui/dialog.js +2 -2
- package/dist/src/components/ui/drawer.js +1 -1
- package/dist/src/components/ui/dropdown-menu.js +1 -1
- package/dist/src/components/ui/form.js +5 -5
- package/dist/src/components/ui/header-content.js +1 -1
- package/dist/src/components/ui/hover-card.js +1 -1
- package/dist/src/components/ui/input-otp.js +1 -1
- package/dist/src/components/ui/input.js +1 -1
- package/dist/src/components/ui/label.js +1 -1
- package/dist/src/components/ui/loader.js +1 -1
- package/dist/src/components/ui/menubar.js +1 -1
- package/dist/src/components/ui/navigation-menu.js +1 -1
- package/dist/src/components/ui/popover.js +1 -1
- package/dist/src/components/ui/progress.js +1 -1
- package/dist/src/components/ui/radio-group.js +1 -1
- package/dist/src/components/ui/select.js +1 -1
- package/dist/src/components/ui/separator.js +1 -1
- package/dist/src/components/ui/sheet.js +1 -1
- package/dist/src/components/ui/sidebar.js +8 -8
- package/dist/src/components/ui/skeleton.js +1 -1
- package/dist/src/components/ui/slider.js +1 -1
- package/dist/src/components/ui/sonner.js +1 -1
- package/dist/src/components/ui/switch.js +1 -1
- package/dist/src/components/ui/table.js +1 -1
- package/dist/src/components/ui/tabs.js +1 -1
- package/dist/src/components/ui/textarea.js +1 -1
- package/dist/src/components/ui/toggle-group.js +2 -2
- package/dist/src/components/ui/toggle.js +1 -1
- package/dist/src/components/ui/tooltip.js +1 -1
- package/dist/src/database/admins.js +3 -3
- package/dist/src/database/moderators.js +2 -2
- package/dist/src/database/sessions.js +1 -1
- package/dist/src/database/users.js +2 -2
- package/dist/src/drizzle.config.d.ts.map +1 -1
- package/dist/src/drizzle.config.js +4 -6
- package/dist/src/lib/api/get-middleware-api.js +2 -2
- package/dist/src/lib/api/get-session-admin-api.js +3 -3
- package/dist/src/lib/api/get-session-api.js +2 -2
- package/dist/src/lib/colors.test.js +1 -1
- package/dist/src/lib/fetcher/cookie-from-string-to-object.test.js +1 -1
- package/dist/src/lib/fetcher/helpers.js +1 -1
- package/dist/src/lib/fetcher/helpers.test.js +1 -1
- package/dist/src/lib/fetcher.js +2 -2
- package/dist/src/lib/helpers/auto-form.test.js +1 -1
- package/dist/src/lib/special-characters.test.js +1 -1
- package/dist/src/views/admin/layouts/admin-layout.js +7 -7
- package/dist/src/views/admin/layouts/sidebar/nav/item.js +5 -5
- package/dist/src/views/admin/layouts/sidebar/nav/nav.js +2 -2
- package/dist/src/views/admin/layouts/sidebar/sidebar.js +5 -5
- package/dist/src/views/admin/layouts/sidebar/sign-out.js +2 -2
- package/dist/src/views/admin/layouts/user-bar/client.js +3 -3
- package/dist/src/views/admin/layouts/user-bar/user-bar.js +4 -4
- package/dist/src/views/admin/sign-in/sign-in-admin-view.js +4 -4
- package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.js +4 -4
- package/dist/src/views/admin/views/core/test.js +8 -8
- package/dist/src/views/admin/views/core/users/users-admin-view.js +6 -6
- package/dist/src/views/auth/components/password-input.js +4 -4
- package/dist/src/views/auth/sign-in/form/form.js +4 -4
- package/dist/src/views/auth/sign-in/form/hooks/mutation-api.js +3 -3
- package/dist/src/views/auth/sign-in/form/hooks/use-form.js +1 -1
- package/dist/src/views/auth/sign-in/sign-in-view.js +5 -5
- package/dist/src/views/auth/sign-up/form/form.js +7 -7
- package/dist/src/views/auth/sign-up/form/hooks/mutation-api.js +2 -2
- package/dist/src/views/auth/sign-up/form/hooks/use-form.js +1 -1
- package/dist/src/views/auth/sign-up/sign-up-view.js +6 -6
- package/dist/src/views/auth/sso/buttons/client.js +2 -2
- package/dist/src/views/auth/sso/buttons/mutation-api.js +3 -3
- package/dist/src/views/auth/sso/buttons/sso-buttons.js +3 -3
- package/dist/src/views/auth/sso/callback/callback-sso-view.js +2 -2
- package/dist/src/views/auth/sso/callback/client/client.js +4 -4
- package/dist/src/views/auth/sso/callback/client/mutation-api.js +2 -2
- package/dist/src/views/error/back-button.js +2 -2
- package/dist/src/views/error/error-view.js +4 -4
- package/dist/src/views/error/global-error-view.js +2 -2
- package/dist/src/views/layouts/provider.js +2 -2
- package/dist/src/views/layouts/root-layout.js +2 -2
- package/dist/src/views/layouts/theme/header/header.js +5 -5
- package/dist/src/views/layouts/theme/header/user/auth/auth.js +5 -5
- package/dist/src/views/layouts/theme/header/user/auth/client.js +3 -3
- package/dist/src/views/layouts/theme/header/user/auth/log-out-mutation-api.js +3 -3
- package/dist/src/views/layouts/theme/header/user/user.js +5 -5
- package/dist/src/views/layouts/theme/layout.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/drizzle.config.ts +4 -8
- package/src/database/admins.ts +0 -87
- package/src/database/languages.ts +0 -54
- package/src/database/moderators.ts +0 -42
- package/src/database/roles.ts +0 -15
- package/src/database/sessions.ts +0 -59
- package/src/database/users.ts +0 -142
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { FormField } from "../../ui/form";
|
|
3
|
-
import { getShapeFromSchema } from "../../../lib/helpers/auto-form";
|
|
2
|
+
import { FormField } from "../../ui/form.js";
|
|
3
|
+
import { getShapeFromSchema } from "../../../lib/helpers/auto-form.js";
|
|
4
4
|
export function ItemAutoForm({ id, component, formSchema }) {
|
|
5
5
|
let shape = null;
|
|
6
6
|
const ids = id.split('.');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { FormControl, FormItem, FormLabel, FormMessage } from "../../ui/form";
|
|
4
|
-
import { RadioGroup, RadioGroupItem } from "../../ui/radio-group";
|
|
5
|
-
import { getBaseSchema } from "../../../lib/helpers/auto-form";
|
|
6
|
-
import { AutoFormDesc } from "../common/desc";
|
|
7
|
-
import { AutoFormLabel } from "../common/label";
|
|
3
|
+
import { FormControl, FormItem, FormLabel, FormMessage } from "../../ui/form.js";
|
|
4
|
+
import { RadioGroup, RadioGroupItem } from "../../ui/radio-group.js";
|
|
5
|
+
import { getBaseSchema } from "../../../lib/helpers/auto-form.js";
|
|
6
|
+
import { AutoFormDesc } from "../common/desc.js";
|
|
7
|
+
import { AutoFormLabel } from "../common/label.js";
|
|
8
8
|
export function AutoFormRadioGroup({ label, field, description, shape, labels = [], ...props }) {
|
|
9
9
|
const baseValues = getBaseSchema(shape, true)._def.values;
|
|
10
10
|
const values = baseValues.map((value)=>{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslations } from "next-intl";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { FormControl, FormItem, FormMessage } from "../../ui/form";
|
|
5
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../ui/select";
|
|
6
|
-
import { getBaseSchema } from "../../../lib/helpers/auto-form";
|
|
7
|
-
import { AutoFormDesc } from "../common/desc";
|
|
8
|
-
import { AutoFormLabel } from "../common/label";
|
|
4
|
+
import { FormControl, FormItem, FormMessage } from "../../ui/form.js";
|
|
5
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../ui/select.js";
|
|
6
|
+
import { getBaseSchema } from "../../../lib/helpers/auto-form.js";
|
|
7
|
+
import { AutoFormDesc } from "../common/desc.js";
|
|
8
|
+
import { AutoFormLabel } from "../common/label.js";
|
|
9
9
|
export function AutoFormSelect({ label, field, description, shape, placeholder, labels = [], ...props }) {
|
|
10
10
|
const t = useTranslations('core.global');
|
|
11
11
|
const baseValues = getBaseSchema(shape, true)._def.values;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FormControl, FormItem } from "../../ui/form";
|
|
3
|
-
import { Switch } from "../../ui/switch";
|
|
4
|
-
import { AutoFormDesc } from "../common/desc";
|
|
5
|
-
import { AutoFormLabel } from "../common/label";
|
|
2
|
+
import { FormControl, FormItem } from "../../ui/form.js";
|
|
3
|
+
import { Switch } from "../../ui/switch.js";
|
|
4
|
+
import { AutoFormDesc } from "../common/desc.js";
|
|
5
|
+
import { AutoFormLabel } from "../common/label.js";
|
|
6
6
|
export function AutoFormSwitch({ label, field, // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
7
|
shape: _, description, ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsxs(FormItem, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { FormControl, FormItem, FormMessage } from "../../ui/form";
|
|
4
|
-
import { Textarea } from "../../ui/textarea";
|
|
5
|
-
import { AutoFormDesc } from "../common/desc";
|
|
6
|
-
import { AutoFormLabel } from "../common/label";
|
|
3
|
+
import { FormControl, FormItem, FormMessage } from "../../ui/form.js";
|
|
4
|
+
import { Textarea } from "../../ui/textarea.js";
|
|
5
|
+
import { AutoFormDesc } from "../common/desc.js";
|
|
6
|
+
import { AutoFormLabel } from "../common/label.js";
|
|
7
7
|
export function AutoFormTextarea({ label, field, // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8
8
|
shape: _, description, ...props }) {
|
|
9
9
|
return /*#__PURE__*/ _jsxs(FormItem, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../lib/utils";
|
|
2
|
+
import { cn } from "../lib/utils.js";
|
|
3
3
|
export const LogoVitNode = ({ className, small, ...props })=>{
|
|
4
4
|
if (small) return /*#__PURE__*/ _jsxs("svg", {
|
|
5
5
|
"aria-label": "Logo VitNode",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Moon, Sun } from "lucide-react";
|
|
4
4
|
import { useTheme } from "next-themes";
|
|
5
|
-
import { Button } from "../ui/button";
|
|
5
|
+
import { Button } from "../ui/button.js";
|
|
6
6
|
export const ThemeSwitcher = ()=>{
|
|
7
7
|
const { setTheme, resolvedTheme } = useTheme();
|
|
8
8
|
return /*#__PURE__*/ _jsxs(Button, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { SearchXIcon } from "lucide-react";
|
|
3
3
|
import { useTranslations } from "next-intl";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
5
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../ui/table";
|
|
6
|
-
import { OrderTableHeadDataTable } from "./order-table-head";
|
|
7
|
-
import { PaginationDataTable } from "./pagination";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../ui/table.js";
|
|
6
|
+
import { OrderTableHeadDataTable } from "./order-table-head.js";
|
|
7
|
+
import { PaginationDataTable } from "./pagination.js";
|
|
8
8
|
export function ContentDataTable({ columns, edges, pageInfo, order, customNotFoundComponent, ...props }) {
|
|
9
9
|
const t = useTranslations('core.global');
|
|
10
10
|
return /*#__PURE__*/ _jsxs("div", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ErrorView } from "../../views/error/error-view";
|
|
4
|
-
import { Skeleton } from "../ui/skeleton";
|
|
5
|
-
import { Table, TableBody, TableHead, TableHeader, TableRow } from "../ui/table";
|
|
6
|
-
import { ContentDataTable } from "./content";
|
|
3
|
+
import { ErrorView } from "../../views/error/error-view.js";
|
|
4
|
+
import { Skeleton } from "../ui/skeleton.js";
|
|
5
|
+
import { Table, TableBody, TableHead, TableHeader, TableRow } from "../ui/table.js";
|
|
6
|
+
import { ContentDataTable } from "./content.js";
|
|
7
7
|
export const DataTableSkeleton = ({ columns })=>/*#__PURE__*/ _jsxs("div", {
|
|
8
8
|
className: "space-y-4",
|
|
9
9
|
children: [
|
|
@@ -3,9 +3,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { ArrowDown, ArrowUp, ChevronsUpDown } from "lucide-react";
|
|
4
4
|
import { useSearchParams } from "next/navigation";
|
|
5
5
|
import React from "react";
|
|
6
|
-
import { usePathname, useRouter } from "../../lib/navigation";
|
|
7
|
-
import { Button } from "../ui/button";
|
|
8
|
-
import { Loader } from "../ui/loader";
|
|
6
|
+
import { usePathname, useRouter } from "../../lib/navigation.js";
|
|
7
|
+
import { Button } from "../ui/button.js";
|
|
8
|
+
import { Loader } from "../ui/loader.js";
|
|
9
9
|
export function OrderTableHeadDataTable({ id, children, order: { defaultOrder } }) {
|
|
10
10
|
const [isPending, startTransition] = React.useTransition();
|
|
11
11
|
const searchParams = useSearchParams();
|
|
@@ -4,10 +4,10 @@ import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
5
|
import { useSearchParams } from "next/navigation";
|
|
6
6
|
import React from "react";
|
|
7
|
-
import { usePathname, useRouter } from "../../lib/navigation";
|
|
8
|
-
import { Button } from "../ui/button";
|
|
9
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select";
|
|
10
|
-
import { Skeleton } from "../ui/skeleton";
|
|
7
|
+
import { usePathname, useRouter } from "../../lib/navigation.js";
|
|
8
|
+
import { Button } from "../ui/button.js";
|
|
9
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select.js";
|
|
10
|
+
import { Skeleton } from "../ui/skeleton.js";
|
|
11
11
|
const PAGE_SIZE_OPTIONS = [
|
|
12
12
|
10,
|
|
13
13
|
20,
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { ChevronDownIcon } from "lucide-react";
|
|
4
4
|
import { Accordion as AccordionPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function Accordion({ ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(AccordionPrimitive.Root, {
|
|
9
9
|
"data-slot": "accordion",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { buttonVariants } from "./button";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { buttonVariants } from "./button.js";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function AlertDialog({ ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(AlertDialogPrimitive.Root, {
|
|
9
9
|
"data-slot": "alert-dialog",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
5
|
const alertVariants = cva('relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current', {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { Slot } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
const badgeVariants = cva('inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden', {
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
|
@@ -3,8 +3,8 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { useTranslations } from "next-intl";
|
|
4
4
|
import { Slot } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
7
|
-
import { Loader } from "./loader";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
|
+
import { Loader } from "./loader.js";
|
|
8
8
|
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer", {
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
4
|
function Card({ className, ...props }) {
|
|
5
5
|
return /*#__PURE__*/ _jsx("div", {
|
|
6
6
|
className: cn('bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm', className),
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckIcon } from "lucide-react";
|
|
4
4
|
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function Checkbox({ className, ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(CheckboxPrimitive.Root, {
|
|
9
9
|
className: cn('border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer size-4 shrink-0 rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50', className),
|
|
@@ -3,8 +3,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Command as CommandPrimitive } from "cmdk";
|
|
4
4
|
import { SearchIcon } from "lucide-react";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "./dialog";
|
|
7
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "./dialog.js";
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
8
|
function Command({ className, ...props }) {
|
|
9
9
|
return /*#__PURE__*/ _jsx(CommandPrimitive, {
|
|
10
10
|
className: cn('bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md', className),
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
4
4
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function ContextMenu({ ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(ContextMenuPrimitive.Root, {
|
|
9
9
|
"data-slot": "context-menu",
|
|
@@ -4,8 +4,8 @@ import { XIcon } from "lucide-react";
|
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
5
|
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
6
6
|
import * as React from "react";
|
|
7
|
-
import { cn } from "../../lib/utils";
|
|
8
|
-
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from "./alert-dialog";
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from "./alert-dialog.js";
|
|
9
9
|
const DialogContext = /*#__PURE__*/ React.createContext({
|
|
10
10
|
open: false,
|
|
11
11
|
setOpen: ()=>{},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Drawer({ ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(DrawerPrimitive.Root, {
|
|
8
8
|
"data-slot": "drawer",
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
4
4
|
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function DropdownMenu({ ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(DropdownMenuPrimitive.Root, {
|
|
9
9
|
"data-slot": "dropdown-menu",
|
|
@@ -4,11 +4,11 @@ import { useTranslations } from "next-intl";
|
|
|
4
4
|
import { Slot } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { Controller, FormProvider, useFormContext, useFormState } from "react-hook-form";
|
|
7
|
-
import { Label } from "./label";
|
|
8
|
-
import { cn } from "../../lib/utils";
|
|
9
|
-
import { useBeforeUnload } from "../../hooks/use-before-unload";
|
|
10
|
-
import { Button } from "./button";
|
|
11
|
-
import { useDialog } from "./dialog";
|
|
7
|
+
import { Label } from "./label.js";
|
|
8
|
+
import { cn } from "../../lib/utils.js";
|
|
9
|
+
import { useBeforeUnload } from "../../hooks/use-before-unload.js";
|
|
10
|
+
import { Button } from "./button.js";
|
|
11
|
+
import { useDialog } from "./dialog.js";
|
|
12
12
|
function Form({ children, form, className, onSubmit, ...props }) {
|
|
13
13
|
const t = useTranslations('core.global');
|
|
14
14
|
const formIsDirty = form.formState.isDirty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../lib/utils";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
3
|
export const HeaderContent = ({ children, className, desc, h1, h2, ref })=>{
|
|
4
4
|
return /*#__PURE__*/ _jsxs("div", {
|
|
5
5
|
className: cn('mb-6 flex min-h-9 flex-col items-start gap-2 sm:flex-row sm:gap-4', className),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function HoverCard({ ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(HoverCardPrimitive.Root, {
|
|
8
8
|
"data-slot": "hover-card",
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
4
4
|
import { MinusIcon } from "lucide-react";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function InputOTP({ className, containerClassName, ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(OTPInput, {
|
|
9
9
|
className: cn('disabled:cursor-not-allowed', className),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
4
|
function Input({ className, type, ...props }) {
|
|
5
5
|
return /*#__PURE__*/ _jsx("input", {
|
|
6
6
|
className: cn('file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base outline-none transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]', 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive', className),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Label({ className, ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(LabelPrimitive.Root, {
|
|
8
8
|
className: cn('flex select-none items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50', className),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Loader2 } from "lucide-react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
4
|
export const Loader = ({ className, small })=>{
|
|
5
5
|
if (small) {
|
|
6
6
|
return /*#__PURE__*/ _jsx(Loader2, {
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
4
4
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function Menubar({ className, ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(MenubarPrimitive.Root, {
|
|
9
9
|
className: cn('bg-background shadow-xs flex h-9 items-center gap-1 rounded-md border p-1', className),
|
|
@@ -3,7 +3,7 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { ChevronDownIcon } from "lucide-react";
|
|
4
4
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function NavigationMenu({ className, children, viewport = true, ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsxs(NavigationMenuPrimitive.Root, {
|
|
9
9
|
className: cn('group/navigation-menu relative flex max-w-max flex-1 items-center justify-center', className),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Popover({ ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(PopoverPrimitive.Root, {
|
|
8
8
|
"data-slot": "popover",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Progress({ className, value, ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(ProgressPrimitive.Root, {
|
|
8
8
|
className: cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className),
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { CircleIcon } from "lucide-react";
|
|
4
4
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function RadioGroup({ className, ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(RadioGroupPrimitive.Root, {
|
|
9
9
|
className: cn('grid gap-3', className),
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
4
4
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function Select({ ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(SelectPrimitive.Root, {
|
|
9
9
|
"data-slot": "select",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Separator({ className, orientation = 'horizontal', decorative = true, ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(SeparatorPrimitive.Root, {
|
|
8
8
|
className: cn('bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px', className),
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { XIcon } from "lucide-react";
|
|
4
4
|
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function Sheet({ ...props }) {
|
|
8
8
|
return /*#__PURE__*/ _jsx(SheetPrimitive.Root, {
|
|
9
9
|
"data-slot": "sheet",
|
|
@@ -4,14 +4,14 @@ import { cva } from "class-variance-authority";
|
|
|
4
4
|
import { PanelLeftIcon } from "lucide-react";
|
|
5
5
|
import { Slot } from "radix-ui";
|
|
6
6
|
import * as React from "react";
|
|
7
|
-
import { Button } from "./button";
|
|
8
|
-
import { Input } from "./input";
|
|
9
|
-
import { Separator } from "./separator";
|
|
10
|
-
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "./sheet";
|
|
11
|
-
import { Skeleton } from "./skeleton";
|
|
12
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip";
|
|
13
|
-
import { useIsMobile } from "../../hooks/use-mobile";
|
|
14
|
-
import { cn } from "../../lib/utils";
|
|
7
|
+
import { Button } from "./button.js";
|
|
8
|
+
import { Input } from "./input.js";
|
|
9
|
+
import { Separator } from "./separator.js";
|
|
10
|
+
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "./sheet.js";
|
|
11
|
+
import { Skeleton } from "./skeleton.js";
|
|
12
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
|
|
13
|
+
import { useIsMobile } from "../../hooks/use-mobile.js";
|
|
14
|
+
import { cn } from "../../lib/utils.js";
|
|
15
15
|
const SIDEBAR_COOKIE_NAME = 'sidebar_state';
|
|
16
16
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
17
17
|
const SIDEBAR_WIDTH = '16rem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../lib/utils";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
3
|
function Skeleton({ className, ...props }) {
|
|
4
4
|
return /*#__PURE__*/ _jsx("div", {
|
|
5
5
|
className: cn('bg-accent animate-pulse rounded-md', className),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Slider as SliderPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
|
|
7
7
|
const _values = React.useMemo(()=>Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [
|
|
8
8
|
min,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useTheme } from "next-themes";
|
|
4
4
|
import { Toaster as Sonner } from "sonner";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
const Toaster = ({ ...props })=>{
|
|
7
7
|
const { theme = 'system' } = useTheme();
|
|
8
8
|
return /*#__PURE__*/ _jsx(Sonner, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Switch({ className, ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(SwitchPrimitive.Root, {
|
|
8
8
|
className: cn('data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 shadow-xs peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent outline-none transition-all focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50', className),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
4
|
function Table({ className, ...props }) {
|
|
5
5
|
return /*#__PURE__*/ _jsx("div", {
|
|
6
6
|
className: "relative w-full overflow-x-auto",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function Tabs({ className, ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(TabsPrimitive.Root, {
|
|
8
8
|
className: cn('flex flex-col gap-2', className),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
4
|
function Textarea({ className, ...props }) {
|
|
5
5
|
return /*#__PURE__*/ _jsx("textarea", {
|
|
6
6
|
className: cn('border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className),
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { toggleVariants } from "./toggle";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { toggleVariants } from "./toggle.js";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
const ToggleGroupContext = /*#__PURE__*/ React.createContext({
|
|
8
8
|
size: 'default',
|
|
9
9
|
variant: 'default'
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "../../lib/utils";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
7
|
const toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
6
|
function TooltipProvider({ delayDuration = 0, ...props }) {
|
|
7
7
|
return /*#__PURE__*/ _jsx(TooltipPrimitive.Provider, {
|
|
8
8
|
"data-slot": "tooltip-provider",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { relations } from "drizzle-orm";
|
|
2
2
|
import { index, pgTable } from "drizzle-orm/pg-core";
|
|
3
|
-
import { core_roles } from "./roles";
|
|
4
|
-
import { core_sessions_known_devices } from "./sessions";
|
|
5
|
-
import { core_users } from "./users";
|
|
3
|
+
import { core_roles } from "./roles.js";
|
|
4
|
+
import { core_sessions_known_devices } from "./sessions.js";
|
|
5
|
+
import { core_users } from "./users.js";
|
|
6
6
|
export const core_admin_permissions = pgTable('core_admin_permissions', (t)=>({
|
|
7
7
|
id: t.serial().primaryKey(),
|
|
8
8
|
roleId: t.integer().references(()=>core_roles.id, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { relations } from "drizzle-orm";
|
|
2
2
|
import { index, pgTable } from "drizzle-orm/pg-core";
|
|
3
|
-
import { core_roles } from "./roles";
|
|
4
|
-
import { core_users } from "./users";
|
|
3
|
+
import { core_roles } from "./roles.js";
|
|
4
|
+
import { core_users } from "./users.js";
|
|
5
5
|
export const core_moderators_permissions = pgTable('core_moderators_permissions', (t)=>({
|
|
6
6
|
id: t.serial().primaryKey(),
|
|
7
7
|
roleId: t.integer().references(()=>core_roles.id, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { relations } from "drizzle-orm";
|
|
2
2
|
import { index, pgTable } from "drizzle-orm/pg-core";
|
|
3
|
-
import { core_users } from "./users";
|
|
3
|
+
import { core_users } from "./users.js";
|
|
4
4
|
export const core_sessions = pgTable('core_sessions', (t)=>({
|
|
5
5
|
id: t.serial().primaryKey(),
|
|
6
6
|
token: t.varchar({
|