@arch-cadre/ui 0.0.26 → 0.0.28
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/components/accordion.cjs +1 -1
- package/dist/components/accordion.mjs +1 -1
- package/dist/components/alert-dialog.cjs +2 -2
- package/dist/components/alert-dialog.mjs +2 -2
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.mjs +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.mjs +1 -1
- package/dist/components/breadcrumb.cjs +1 -1
- package/dist/components/breadcrumb.mjs +1 -1
- package/dist/components/button-group.cjs +2 -2
- package/dist/components/button-group.d.ts +2 -2
- package/dist/components/button-group.mjs +2 -2
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.mjs +1 -1
- package/dist/components/calendar.cjs +2 -2
- package/dist/components/calendar.d.ts +1 -1
- package/dist/components/calendar.mjs +2 -2
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.mjs +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.mjs +1 -1
- package/dist/components/command.cjs +2 -2
- package/dist/components/command.d.ts +1 -1
- package/dist/components/command.mjs +2 -2
- package/dist/components/context-menu.cjs +1 -1
- package/dist/components/context-menu.mjs +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.mjs +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.mjs +1 -1
- package/dist/components/dropdown-menu.cjs +1 -1
- package/dist/components/dropdown-menu.mjs +1 -1
- package/dist/components/empty.cjs +1 -1
- package/dist/components/empty.d.ts +1 -1
- package/dist/components/empty.mjs +1 -1
- package/dist/components/field.cjs +3 -3
- package/dist/components/field.d.ts +2 -2
- package/dist/components/field.mjs +3 -3
- package/dist/components/form.cjs +2 -2
- package/dist/components/form.mjs +2 -2
- package/dist/components/hover-card.cjs +1 -1
- package/dist/components/hover-card.mjs +1 -1
- package/dist/components/input-group.cjs +4 -4
- package/dist/components/input-group.d.ts +3 -3
- package/dist/components/input-group.mjs +4 -4
- package/dist/components/input-otp.cjs +1 -1
- package/dist/components/input-otp.mjs +1 -1
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +1 -1
- package/dist/components/item.cjs +2 -2
- package/dist/components/item.d.ts +3 -3
- package/dist/components/item.mjs +2 -2
- package/dist/components/kbd.cjs +1 -1
- package/dist/components/kbd.mjs +1 -1
- package/dist/components/label.cjs +1 -1
- package/dist/components/label.mjs +1 -1
- package/dist/components/language-switcher.cjs +2 -2
- package/dist/components/language-switcher.mjs +2 -2
- package/dist/components/menubar.cjs +1 -1
- package/dist/components/menubar.mjs +1 -1
- package/dist/components/navigation-menu.cjs +1 -1
- package/dist/components/navigation-menu.d.ts +1 -1
- package/dist/components/navigation-menu.mjs +1 -1
- package/dist/components/pagination.cjs +2 -2
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.mjs +2 -2
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.mjs +1 -1
- package/dist/components/progress.cjs +1 -1
- package/dist/components/progress.mjs +1 -1
- package/dist/components/radio-group.cjs +1 -1
- package/dist/components/radio-group.mjs +1 -1
- package/dist/components/scroll-area.cjs +1 -1
- package/dist/components/scroll-area.mjs +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.mjs +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.mjs +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.mjs +1 -1
- package/dist/components/sidebar.cjs +8 -8
- package/dist/components/sidebar.d.ts +5 -5
- package/dist/components/sidebar.mjs +8 -8
- package/dist/components/skeleton.cjs +1 -1
- package/dist/components/skeleton.mjs +1 -1
- package/dist/components/slider.cjs +1 -1
- package/dist/components/slider.mjs +1 -1
- package/dist/components/spinner.cjs +1 -1
- package/dist/components/spinner.mjs +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.mjs +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.mjs +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.mjs +1 -1
- package/dist/components/textarea.cjs +1 -1
- package/dist/components/textarea.mjs +1 -1
- package/dist/components/toggle-group.cjs +2 -2
- package/dist/components/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group.mjs +2 -2
- package/dist/components/toggle.cjs +1 -1
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.mjs +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.mjs +1 -1
- package/dist/hooks/use-user.cjs +1 -1
- package/dist/hooks/use-user.mjs +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.mjs +13 -13
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/providers/auth-provider.cjs +1 -1
- package/dist/providers/auth-provider.mjs +1 -1
- package/dist/providers/index.cjs +5 -5
- package/dist/providers/index.mjs +5 -5
- package/dist/shared/access-denied.cjs +1 -1
- package/dist/shared/access-denied.mjs +1 -1
- package/dist/shared/loader.cjs +1 -1
- package/dist/shared/loader.d.ts +1 -1
- package/dist/shared/loader.mjs +1 -1
- package/dist/shared/page-loader.cjs +2 -2
- package/dist/shared/page-loader.mjs +2 -2
- package/dist/shared/scroll-fade-effect.cjs +1 -1
- package/dist/shared/scroll-fade-effect.mjs +1 -1
- package/package.json +3 -3
- package/src/components/accordion.tsx +1 -1
- package/src/components/alert-dialog.tsx +2 -2
- package/src/components/alert.tsx +1 -1
- package/src/components/avatar.tsx +1 -1
- package/src/components/badge.tsx +1 -1
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/button-group.tsx +2 -2
- package/src/components/button.tsx +1 -1
- package/src/components/calendar.tsx +2 -2
- package/src/components/card.tsx +1 -1
- package/src/components/checkbox.tsx +1 -1
- package/src/components/command.tsx +2 -2
- package/src/components/context-menu.tsx +1 -1
- package/src/components/dialog.tsx +1 -1
- package/src/components/drawer.tsx +1 -1
- package/src/components/dropdown-menu.tsx +1 -1
- package/src/components/empty.tsx +1 -1
- package/src/components/field.tsx +3 -3
- package/src/components/form.tsx +2 -2
- package/src/components/hover-card.tsx +1 -1
- package/src/components/input-group.tsx +4 -4
- package/src/components/input-otp.tsx +1 -1
- package/src/components/input.tsx +1 -1
- package/src/components/item.tsx +2 -2
- package/src/components/kbd.tsx +1 -1
- package/src/components/label.tsx +1 -1
- package/src/components/language-switcher.tsx +2 -2
- package/src/components/menubar.tsx +1 -1
- package/src/components/navigation-menu.tsx +1 -1
- package/src/components/pagination.tsx +2 -2
- package/src/components/popover.tsx +1 -1
- package/src/components/progress.tsx +1 -1
- package/src/components/radio-group.tsx +1 -1
- package/src/components/scroll-area.tsx +1 -1
- package/src/components/select.tsx +1 -1
- package/src/components/separator.tsx +1 -1
- package/src/components/sheet.tsx +1 -1
- package/src/components/sidebar.tsx +8 -8
- package/src/components/skeleton.tsx +1 -1
- package/src/components/slider.tsx +1 -1
- package/src/components/spinner.tsx +1 -1
- package/src/components/switch.tsx +1 -1
- package/src/components/table.tsx +1 -1
- package/src/components/tabs.tsx +1 -1
- package/src/components/textarea.tsx +1 -1
- package/src/components/toggle-group.tsx +2 -2
- package/src/components/toggle.tsx +1 -1
- package/src/components/tooltip.tsx +1 -1
- package/src/hooks/use-user.ts +1 -1
- package/src/index.ts +13 -13
- package/src/logo.tsx +1 -1
- package/src/providers/auth-provider.tsx +1 -1
- package/src/providers/index.tsx +5 -5
- package/src/shared/access-denied.tsx +1 -1
- package/src/shared/loader.tsx +1 -1
- package/src/shared/page-loader.tsx +2 -2
- package/src/shared/scroll-fade-effect.tsx +1 -1
|
@@ -2,7 +2,7 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import { Slot as SlotPrimitive } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
|
-
import { cn } from "../lib/utils
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
6
|
|
|
7
7
|
const buttonVariants = cva(
|
|
8
8
|
"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",
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
getDefaultClassNames,
|
|
13
13
|
} from "react-day-picker";
|
|
14
14
|
|
|
15
|
-
import { cn } from "../lib/utils
|
|
16
|
-
import { Button, buttonVariants } from "./button
|
|
15
|
+
import { cn } from "../lib/utils";
|
|
16
|
+
import { Button, buttonVariants } from "./button";
|
|
17
17
|
|
|
18
18
|
function Calendar({
|
|
19
19
|
className,
|
package/src/components/card.tsx
CHANGED
|
@@ -4,14 +4,14 @@ import { Command as CommandPrimitive } from "cmdk";
|
|
|
4
4
|
import { SearchIcon } from "lucide-react";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
7
|
-
import { cn } from "../lib/utils
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
8
|
import {
|
|
9
9
|
Dialog,
|
|
10
10
|
DialogContent,
|
|
11
11
|
DialogDescription,
|
|
12
12
|
DialogHeader,
|
|
13
13
|
DialogTitle,
|
|
14
|
-
} from "./dialog
|
|
14
|
+
} from "./dialog";
|
|
15
15
|
|
|
16
16
|
function Command({
|
|
17
17
|
className,
|
|
@@ -4,7 +4,7 @@ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
|
4
4
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
7
|
-
import { cn } from "../lib/utils
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
8
|
|
|
9
9
|
function ContextMenu({
|
|
10
10
|
...props
|
|
@@ -4,7 +4,7 @@ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
|
4
4
|
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
7
|
-
import { cn } from "../lib/utils
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
8
|
|
|
9
9
|
function DropdownMenu({
|
|
10
10
|
...props
|
package/src/components/empty.tsx
CHANGED
package/src/components/field.tsx
CHANGED
|
@@ -6,9 +6,9 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { useMemo } from "react";
|
|
8
8
|
|
|
9
|
-
import { cn } from "../lib/utils
|
|
10
|
-
import { Label } from "./label
|
|
11
|
-
import { Separator } from "./separator
|
|
9
|
+
import { cn } from "../lib/utils";
|
|
10
|
+
import { Label } from "./label";
|
|
11
|
+
import { Separator } from "./separator";
|
|
12
12
|
|
|
13
13
|
function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">) {
|
|
14
14
|
return (
|
package/src/components/form.tsx
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
|
|
6
|
-
import { cn } from "../lib/utils
|
|
7
|
-
import { Button } from "./button
|
|
8
|
-
import { Input } from "./input
|
|
9
|
-
import { Textarea } from "./textarea
|
|
6
|
+
import { cn } from "../lib/utils";
|
|
7
|
+
import { Button } from "./button";
|
|
8
|
+
import { Input } from "./input";
|
|
9
|
+
import { Textarea } from "./textarea";
|
|
10
10
|
|
|
11
11
|
function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
12
12
|
return (
|
package/src/components/input.tsx
CHANGED
package/src/components/item.tsx
CHANGED
|
@@ -2,8 +2,8 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import { Slot as SlotPrimitive } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
|
-
import { cn } from "../lib/utils
|
|
6
|
-
import { Separator } from "./separator
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
|
+
import { Separator } from "./separator";
|
|
7
7
|
|
|
8
8
|
function ItemGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
9
9
|
return (
|
package/src/components/kbd.tsx
CHANGED
package/src/components/label.tsx
CHANGED
|
@@ -4,13 +4,13 @@ import { LOCALES, useLocale, useTranslation } from "@arch-cadre/intl";
|
|
|
4
4
|
import { Languages } from "lucide-react";
|
|
5
5
|
import { useRouter } from "next/navigation";
|
|
6
6
|
import * as React from "react";
|
|
7
|
-
import { Button } from "./button
|
|
7
|
+
import { Button } from "./button";
|
|
8
8
|
import {
|
|
9
9
|
DropdownMenu,
|
|
10
10
|
DropdownMenuContent,
|
|
11
11
|
DropdownMenuItem,
|
|
12
12
|
DropdownMenuTrigger,
|
|
13
|
-
} from "./dropdown-menu
|
|
13
|
+
} from "./dropdown-menu";
|
|
14
14
|
|
|
15
15
|
export function LanguageSwitcher() {
|
|
16
16
|
const locale = useLocale();
|
|
@@ -4,7 +4,7 @@ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
|
4
4
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
7
|
-
import { cn } from "../lib/utils
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
8
|
|
|
9
9
|
function Menubar({
|
|
10
10
|
className,
|
|
@@ -3,7 +3,7 @@ import { ChevronDownIcon } from "lucide-react";
|
|
|
3
3
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
|
|
6
|
-
import { cn } from "../lib/utils
|
|
6
|
+
import { cn } from "../lib/utils";
|
|
7
7
|
|
|
8
8
|
function NavigationMenu({
|
|
9
9
|
className,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
} from "lucide-react";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
|
|
11
|
-
import { cn } from "../lib/utils
|
|
12
|
-
import { type Button, buttonVariants } from "./button
|
|
11
|
+
import { cn } from "../lib/utils";
|
|
12
|
+
import { type Button, buttonVariants } from "./button";
|
|
13
13
|
|
|
14
14
|
function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
|
|
15
15
|
return (
|
|
@@ -4,7 +4,7 @@ import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
|
4
4
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
7
|
-
import { cn } from "../lib/utils
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
8
|
|
|
9
9
|
function Select({
|
|
10
10
|
...props
|
package/src/components/sheet.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { XIcon } from "lucide-react";
|
|
|
4
4
|
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
7
|
-
import { cn } from "../lib/utils
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
8
|
|
|
9
9
|
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
|
|
10
10
|
return <SheetPrimitive.Root data-slot="sheet" {...props} />;
|
|
@@ -5,25 +5,25 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
5
5
|
import { PanelLeftIcon } from "lucide-react";
|
|
6
6
|
import { Slot as SlotPrimitive } from "radix-ui";
|
|
7
7
|
import * as React from "react";
|
|
8
|
-
import { useIsMobile } from "../hooks/use-mobile
|
|
9
|
-
import { cn } from "../lib/utils
|
|
10
|
-
import { Button } from "./button
|
|
11
|
-
import { Input } from "./input
|
|
12
|
-
import { Separator } from "./separator
|
|
8
|
+
import { useIsMobile } from "../hooks/use-mobile";
|
|
9
|
+
import { cn } from "../lib/utils";
|
|
10
|
+
import { Button } from "./button";
|
|
11
|
+
import { Input } from "./input";
|
|
12
|
+
import { Separator } from "./separator";
|
|
13
13
|
import {
|
|
14
14
|
Sheet,
|
|
15
15
|
SheetContent,
|
|
16
16
|
SheetDescription,
|
|
17
17
|
SheetHeader,
|
|
18
18
|
SheetTitle,
|
|
19
|
-
} from "./sheet
|
|
20
|
-
import { Skeleton } from "./skeleton
|
|
19
|
+
} from "./sheet";
|
|
20
|
+
import { Skeleton } from "./skeleton";
|
|
21
21
|
import {
|
|
22
22
|
Tooltip,
|
|
23
23
|
TooltipContent,
|
|
24
24
|
TooltipProvider,
|
|
25
25
|
TooltipTrigger,
|
|
26
|
-
} from "./tooltip
|
|
26
|
+
} from "./tooltip";
|
|
27
27
|
|
|
28
28
|
const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
29
29
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
package/src/components/table.tsx
CHANGED
package/src/components/tabs.tsx
CHANGED
|
@@ -4,8 +4,8 @@ import type { VariantProps } from "class-variance-authority";
|
|
|
4
4
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
7
|
-
import { cn } from "../lib/utils
|
|
8
|
-
import { toggleVariants } from "./toggle
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
|
+
import { toggleVariants } from "./toggle";
|
|
9
9
|
|
|
10
10
|
const ToggleGroupContext = React.createContext<
|
|
11
11
|
VariantProps<typeof toggleVariants> & {
|
|
@@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
4
4
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
7
|
-
import { cn } from "../lib/utils
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
8
|
|
|
9
9
|
const toggleVariants = cva(
|
|
10
10
|
"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",
|
package/src/hooks/use-user.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { Icon } from "@iconify/react";
|
|
2
2
|
export { toast } from "sonner";
|
|
3
|
-
export * from "./components/avatar
|
|
4
|
-
export * from "./components/badge
|
|
5
|
-
export * from "./components/button
|
|
6
|
-
export * from "./components/card
|
|
7
|
-
export * from "./components/checkbox
|
|
8
|
-
export * from "./components/dropdown-menu
|
|
9
|
-
export * from "./components/input
|
|
10
|
-
export * from "./components/label
|
|
11
|
-
export * from "./components/language-switcher
|
|
12
|
-
export * from "./components/skeleton
|
|
13
|
-
export * from "./components/table
|
|
14
|
-
export * from "./components/textarea
|
|
15
|
-
export * from "./lib/utils
|
|
3
|
+
export * from "./components/avatar";
|
|
4
|
+
export * from "./components/badge";
|
|
5
|
+
export * from "./components/button";
|
|
6
|
+
export * from "./components/card";
|
|
7
|
+
export * from "./components/checkbox";
|
|
8
|
+
export * from "./components/dropdown-menu";
|
|
9
|
+
export * from "./components/input";
|
|
10
|
+
export * from "./components/label";
|
|
11
|
+
export * from "./components/language-switcher";
|
|
12
|
+
export * from "./components/skeleton";
|
|
13
|
+
export * from "./components/table";
|
|
14
|
+
export * from "./components/textarea";
|
|
15
|
+
export * from "./lib/utils";
|
package/src/logo.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import type { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import Image from "next/image";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { cn } from "./lib/utils
|
|
6
|
+
import { cn } from "./lib/utils";
|
|
7
7
|
|
|
8
8
|
const variants = cva("", {
|
|
9
9
|
variants: {
|
|
@@ -4,7 +4,7 @@ import type { AuthSession } from "@arch-cadre/core";
|
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { createContext, type ReactNode, useEffect, useState } from "react";
|
|
6
6
|
import { mutate } from "swr";
|
|
7
|
-
import { PageLoader } from "../shared/page-loader
|
|
7
|
+
import { PageLoader } from "../shared/page-loader";
|
|
8
8
|
|
|
9
9
|
export const AuthContext = createContext<
|
|
10
10
|
| {
|
package/src/providers/index.tsx
CHANGED
|
@@ -4,10 +4,10 @@ import type { AuthSession } from "@arch-cadre/core";
|
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { useEffect, useState } from "react";
|
|
6
6
|
import { SWRConfig } from "swr";
|
|
7
|
-
import { Toaster } from "../components/sonner
|
|
8
|
-
import { TooltipProvider } from "../components/tooltip
|
|
9
|
-
import { PageLoader } from "../shared/page-loader
|
|
10
|
-
import AuthProvider from "./auth-provider
|
|
7
|
+
import { Toaster } from "../components/sonner";
|
|
8
|
+
import { TooltipProvider } from "../components/tooltip";
|
|
9
|
+
import { PageLoader } from "../shared/page-loader";
|
|
10
|
+
import AuthProvider from "./auth-provider";
|
|
11
11
|
|
|
12
12
|
export const AppProvider = ({
|
|
13
13
|
children,
|
|
@@ -34,7 +34,7 @@ export const AppProvider = ({
|
|
|
34
34
|
<SWRConfig
|
|
35
35
|
value={{
|
|
36
36
|
fetcher: (url: string) =>
|
|
37
|
-
fetch(url).then((response) =>
|
|
37
|
+
fetch(url).then((response) => responseon()),
|
|
38
38
|
revalidateIfStale: true,
|
|
39
39
|
}}
|
|
40
40
|
>
|
package/src/shared/loader.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
2
2
|
import type { VariantProps } from "class-variance-authority";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { cn } from "../lib/utils
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
6
|
|
|
7
7
|
const loaderVariants = cva("spinner", {
|
|
8
8
|
variants: {
|