Skip to content

Commit

Permalink
Update local paths to aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkulpinski committed Jan 12, 2024
1 parent 120e819 commit 8dc0dd1
Show file tree
Hide file tree
Showing 19 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Preview } from "@storybook/react"
import "../src/styles/tailwind.css"
import "~/styles/tailwind.css"

const preview = {
parameters: {
Expand Down
2 changes: 1 addition & 1 deletion src/typography/Heading/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/typography/Heading/Heading.variants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cva } from "../../shared/cva"
import { cva } from "~/shared/cva"

export const headingVariants = cva({
base: "font-medium",
Expand Down
2 changes: 1 addition & 1 deletion src/typography/Paragraph/Paragraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/typography/Paragraph/Paragraph.variants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cva } from "../../shared/cva"
import { cva } from "~/shared/cva"

export const paragraphVariants = cva({
base: "",
Expand Down
2 changes: 1 addition & 1 deletion src/typography/Subheading/Subheading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/typography/Subheading/Subheading.variants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cva } from "../../shared/cva"
import { cva } from "~/shared/cva"

export const subheadingVariants = cva({
base: "font-medium uppercase",
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Avatar/Avatar.stories.tsx
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
6 changes: 3 additions & 3 deletions src/ui/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Avatar/Avatar.variants.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/ui/Badge/Badge.variants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cva } from "../../shared/cva"
import { cva } from "~/shared/cva"

export const badgeVariants = cva({
base: [
Expand Down
8 changes: 4 additions & 4 deletions src/ui/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/ui/Button/Button.variants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cva } from "../../shared/cva"
import { cva } from "~/shared/cva"

export const buttonVariants = cva({
base: [
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Dot/Dot.tsx
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/ui/Dot/Dot.variants.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Loader/Loader.tsx
Original file line number Diff line number Diff line change
@@ -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<SVGSVGElement>

Expand Down
4 changes: 2 additions & 2 deletions src/ui/Status/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/ui/Status/Status.variants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cva } from "../../shared/cva"
import { cva } from "~/shared/cva"

export const statusVariants = cva({
base: [
Expand Down

0 comments on commit 8dc0dd1

Please sign in to comment.