Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed May 2, 2024
1 parent 7cbc8f5 commit d5525c3
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
5 changes: 3 additions & 2 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { Metadata, Viewport } from "next";
import { GeistMono } from "geist/font/mono";
import { GeistSans } from "geist/font/sans";

import { cn } from "@tanya.in/ui";
import { ThemeProvider, ThemeToggle } from "@tanya.in/ui/theme";
import { Toaster } from "@tanya.in/ui/toast";
import { GeistMono } from "geist/font/mono";
import { GeistSans } from "geist/font/sans";

import "@/styles/globals.css";

Expand Down
3 changes: 2 additions & 1 deletion apps/web/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { Config } from "tailwindcss";
import baseConfig from "@tanya.in/tailwind-config/web";
import { fontFamily } from "tailwindcss/defaultTheme";

import baseConfig from "@tanya.in/tailwind-config/web";

export default {
// We need to append the path to the UI package to the content array so that
// those classes are included correctly.
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/button.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { VariantProps } from "class-variance-authority";
import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cn } from "@tanya.in/ui";
import { cva } from "class-variance-authority";

import { cn } from "@tanya.in/ui";

const buttonVariants = cva(
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
{
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
ChevronRightIcon,
DotFilledIcon,
} from "@radix-ui/react-icons";

import { cn } from "@tanya.in/ui";

const DropdownMenu = DropdownMenuPrimitive.Root;
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ import type { ZodType, ZodTypeDef } from "zod";
import * as React from "react";
import { zodResolver } from "@hookform/resolvers/zod";
import { Slot } from "@radix-ui/react-slot";
import { cn } from "@tanya.in/ui";
import {
useForm as __useForm,
Controller,
FormProvider,
useFormContext,
} from "react-hook-form";

import { cn } from "@tanya.in/ui";

import { Label } from "./label";

const useForm = <TOut, TDef extends ZodTypeDef, TIn extends FieldValues>(
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/input.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from "react";

import { cn } from "@tanya.in/ui";

type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/label.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { VariantProps } from "class-variance-authority";
import * as React from "react";
import * as LabelPrimitive from "@radix-ui/react-label";
import { cn } from "@tanya.in/ui";
import { cva } from "class-variance-authority";

import { cn } from "@tanya.in/ui";

const labelVariants = cva(
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
);
Expand Down
1 change: 1 addition & 0 deletions packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* for Tailwind Intellisense & Autocompletion in the source files
*/
import type { Config } from "tailwindcss";

import baseConfig from "@tanya.in/tailwind-config/web";

export default {
Expand Down

0 comments on commit d5525c3

Please sign in to comment.