From 8dc0dd10a9fecce302e0eb19f77a1f175812c331 Mon Sep 17 00:00:00 2001 From: Piotr Kulpinski Date: Fri, 12 Jan 2024 11:12:06 +0100 Subject: [PATCH] Update local paths to aliases --- .storybook/preview.ts | 2 +- src/typography/Heading/Heading.tsx | 2 +- src/typography/Heading/Heading.variants.ts | 2 +- src/typography/Paragraph/Paragraph.tsx | 2 +- src/typography/Paragraph/Paragraph.variants.ts | 2 +- src/typography/Subheading/Subheading.tsx | 2 +- src/typography/Subheading/Subheading.variants.ts | 2 +- src/ui/Avatar/Avatar.stories.tsx | 2 +- src/ui/Avatar/Avatar.tsx | 6 +++--- src/ui/Avatar/Avatar.variants.ts | 2 +- src/ui/Badge/Badge.tsx | 4 ++-- src/ui/Badge/Badge.variants.ts | 2 +- src/ui/Button/Button.tsx | 8 ++++---- src/ui/Button/Button.variants.ts | 2 +- src/ui/Dot/Dot.tsx | 2 +- src/ui/Dot/Dot.variants.ts | 2 +- src/ui/Loader/Loader.tsx | 2 +- src/ui/Status/Status.tsx | 4 ++-- src/ui/Status/Status.variants.ts | 2 +- 19 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 7881f2e..686fe7e 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -1,5 +1,5 @@ import { Preview } from "@storybook/react" -import "../src/styles/tailwind.css" +import "~/styles/tailwind.css" const preview = { parameters: { diff --git a/src/typography/Heading/Heading.tsx b/src/typography/Heading/Heading.tsx index cca0f43..7404dc7 100644 --- a/src/typography/Heading/Heading.tsx +++ b/src/typography/Heading/Heading.tsx @@ -2,7 +2,7 @@ import { Slot } from "@radix-ui/react-slot" import type { HTMLAttributes } from "react" import { forwardRef } from "react" -import { type VariantProps, cx } from "../../shared/cva" +import { type VariantProps, cx } from "~/shared/cva" import { headingVariants } from "./Heading.variants" diff --git a/src/typography/Heading/Heading.variants.ts b/src/typography/Heading/Heading.variants.ts index 625ee7f..a43ce0b 100644 --- a/src/typography/Heading/Heading.variants.ts +++ b/src/typography/Heading/Heading.variants.ts @@ -1,4 +1,4 @@ -import { cva } from "../../shared/cva" +import { cva } from "~/shared/cva" export const headingVariants = cva({ base: "font-medium", diff --git a/src/typography/Paragraph/Paragraph.tsx b/src/typography/Paragraph/Paragraph.tsx index bd54504..1bd6f91 100644 --- a/src/typography/Paragraph/Paragraph.tsx +++ b/src/typography/Paragraph/Paragraph.tsx @@ -2,7 +2,7 @@ import { Slot } from "@radix-ui/react-slot" import type { HTMLAttributes } from "react" import { forwardRef } from "react" -import { type VariantProps, cx } from "../../shared/cva" +import { type VariantProps, cx } from "~/shared/cva" import { paragraphVariants } from "./Paragraph.variants" diff --git a/src/typography/Paragraph/Paragraph.variants.ts b/src/typography/Paragraph/Paragraph.variants.ts index 8427ee7..d9be0c1 100644 --- a/src/typography/Paragraph/Paragraph.variants.ts +++ b/src/typography/Paragraph/Paragraph.variants.ts @@ -1,4 +1,4 @@ -import { cva } from "../../shared/cva" +import { cva } from "~/shared/cva" export const paragraphVariants = cva({ base: "", diff --git a/src/typography/Subheading/Subheading.tsx b/src/typography/Subheading/Subheading.tsx index 3a1e96d..71593ea 100644 --- a/src/typography/Subheading/Subheading.tsx +++ b/src/typography/Subheading/Subheading.tsx @@ -2,7 +2,7 @@ import { Slot } from "@radix-ui/react-slot" import type { HTMLAttributes } from "react" import { forwardRef } from "react" -import { type VariantProps, cx } from "../../shared/cva" +import { type VariantProps, cx } from "~/shared/cva" import { subheadingVariants } from "./Subheading.variants" diff --git a/src/typography/Subheading/Subheading.variants.ts b/src/typography/Subheading/Subheading.variants.ts index 73189d7..a89854a 100644 --- a/src/typography/Subheading/Subheading.variants.ts +++ b/src/typography/Subheading/Subheading.variants.ts @@ -1,4 +1,4 @@ -import { cva } from "../../shared/cva" +import { cva } from "~/shared/cva" export const subheadingVariants = cva({ base: "font-medium uppercase", diff --git a/src/ui/Avatar/Avatar.stories.tsx b/src/ui/Avatar/Avatar.stories.tsx index 9b23e96..87d1688 100644 --- a/src/ui/Avatar/Avatar.stories.tsx +++ b/src/ui/Avatar/Avatar.stories.tsx @@ -1,7 +1,7 @@ import type { Meta, StoryObj } from "@storybook/react" import { IconDiscountCheckFilled, IconUsers } from "@tabler/icons-react" -import { Dot } from "../Dot" +import { Dot } from "~/ui/Dot" import { Avatar } from "./Avatar" diff --git a/src/ui/Avatar/Avatar.tsx b/src/ui/Avatar/Avatar.tsx index 0ba42ad..9c72bb5 100644 --- a/src/ui/Avatar/Avatar.tsx +++ b/src/ui/Avatar/Avatar.tsx @@ -4,9 +4,9 @@ import { IconUser } from "@tabler/icons-react" import { forwardRef, isValidElement } from "react" import type { ComponentPropsWithoutRef, ElementRef, ReactElement, RefObject } from "react" -import { Loader } from "../Loader" -import { type VariantProps, cx } from "../../shared/cva" -import { getInitials, isReactElement } from "../../shared/helpers" +import { type VariantProps, cx } from "~/shared/cva" +import { getInitials, isReactElement } from "~/shared/helpers" +import { Loader } from "~/ui/Loader" import { avatarFallbackVariants, diff --git a/src/ui/Avatar/Avatar.variants.ts b/src/ui/Avatar/Avatar.variants.ts index eb6473d..83a206f 100644 --- a/src/ui/Avatar/Avatar.variants.ts +++ b/src/ui/Avatar/Avatar.variants.ts @@ -1,4 +1,4 @@ -import { cva } from "../../shared/cva" +import { cva } from "~/shared/cva" export const avatarVariants = cva({ base: "relative flex items-center justify-center shrink-0 bg-gradient-to-b w-auto", diff --git a/src/ui/Badge/Badge.tsx b/src/ui/Badge/Badge.tsx index 5c407cf..233a5b7 100644 --- a/src/ui/Badge/Badge.tsx +++ b/src/ui/Badge/Badge.tsx @@ -2,8 +2,8 @@ import { Slot } from "@radix-ui/react-slot" import { forwardRef, isValidElement } from "react" import type { ReactElement, HTMLAttributes } from "react" -import { type VariantProps, cx } from "../../shared/cva" -import { Slottable } from "../../utils/Slottable" +import { type VariantProps, cx } from "~/shared/cva" +import { Slottable } from "~/utils/Slottable" import { badgeAffixVariants, badgeVariants } from "./Badge.variants" diff --git a/src/ui/Badge/Badge.variants.ts b/src/ui/Badge/Badge.variants.ts index 72e3368..40e0906 100644 --- a/src/ui/Badge/Badge.variants.ts +++ b/src/ui/Badge/Badge.variants.ts @@ -1,4 +1,4 @@ -import { cva } from "../../shared/cva" +import { cva } from "~/shared/cva" export const badgeVariants = cva({ base: [ diff --git a/src/ui/Button/Button.tsx b/src/ui/Button/Button.tsx index 20c006d..d37cdce 100644 --- a/src/ui/Button/Button.tsx +++ b/src/ui/Button/Button.tsx @@ -2,10 +2,10 @@ import { Slot } from "@radix-ui/react-slot" import type { ButtonHTMLAttributes, ReactElement } from "react" import { forwardRef, isValidElement } from "react" -import { type VariantProps, cx } from "../../shared/cva" -import { isChildrenEmpty } from "../../shared/helpers" -import { Slottable } from "../../utils/Slottable" -import { Loader } from "../Loader" +import { type VariantProps, cx } from "~/shared/cva" +import { isChildrenEmpty } from "~/shared/helpers" +import { Loader } from "~/ui/Loader" +import { Slottable } from "~/utils/Slottable" import { buttonAffixVariants, buttonVariants } from "./Button.variants" diff --git a/src/ui/Button/Button.variants.ts b/src/ui/Button/Button.variants.ts index 7eeec16..26a263d 100644 --- a/src/ui/Button/Button.variants.ts +++ b/src/ui/Button/Button.variants.ts @@ -1,4 +1,4 @@ -import { cva } from "../../shared/cva" +import { cva } from "~/shared/cva" export const buttonVariants = cva({ base: [ diff --git a/src/ui/Dot/Dot.tsx b/src/ui/Dot/Dot.tsx index ff52a03..d8c249a 100644 --- a/src/ui/Dot/Dot.tsx +++ b/src/ui/Dot/Dot.tsx @@ -1,7 +1,7 @@ import { Slot } from "@radix-ui/react-slot" import { type HTMLAttributes, forwardRef, isValidElement } from "react" -import { type VariantProps } from "../../shared/cva" +import { type VariantProps } from "~/shared/cva" import { dotVariants } from "./Dot.variants" diff --git a/src/ui/Dot/Dot.variants.ts b/src/ui/Dot/Dot.variants.ts index 087b19c..54d1fd6 100644 --- a/src/ui/Dot/Dot.variants.ts +++ b/src/ui/Dot/Dot.variants.ts @@ -1,4 +1,4 @@ -import { cva } from "../../shared/cva" +import { cva } from "~/shared/cva" export const dotVariants = cva({ base: "block rounded-full border border-transparent text-white", diff --git a/src/ui/Loader/Loader.tsx b/src/ui/Loader/Loader.tsx index 3526030..507c615 100644 --- a/src/ui/Loader/Loader.tsx +++ b/src/ui/Loader/Loader.tsx @@ -1,7 +1,7 @@ import { IconLoader } from "@tabler/icons-react" import { type SVGProps, forwardRef } from "react" -import { cx } from "../../shared/cva" +import { cx } from "~/shared/cva" export type LoaderProps = SVGProps diff --git a/src/ui/Status/Status.tsx b/src/ui/Status/Status.tsx index ac36cc4..99fd3d0 100644 --- a/src/ui/Status/Status.tsx +++ b/src/ui/Status/Status.tsx @@ -2,8 +2,8 @@ import { Slot } from "@radix-ui/react-slot" import { forwardRef, isValidElement } from "react" import type { ReactElement, HTMLAttributes } from "react" -import { type VariantProps, cx } from "../../shared/cva" -import { Slottable } from "../../utils/Slottable" +import { type VariantProps, cx } from "~/shared/cva" +import { Slottable } from "~/utils/Slottable" import { statusAffixVariants, statusVariants } from "./Status.variants" diff --git a/src/ui/Status/Status.variants.ts b/src/ui/Status/Status.variants.ts index 0a80fff..5dbc97a 100644 --- a/src/ui/Status/Status.variants.ts +++ b/src/ui/Status/Status.variants.ts @@ -1,4 +1,4 @@ -import { cva } from "../../shared/cva" +import { cva } from "~/shared/cva" export const statusVariants = cva({ base: [