Skip to content

Commit

Permalink
refactor(react): fix old styled-system paths
Browse files Browse the repository at this point in the history
  • Loading branch information
@casey_baggz_omni committed Aug 14, 2024
1 parent e45ffbb commit 78ff32d
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 27 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cx } from '@cerberus-design/styled-system/css'
import { modal } from '@cerberus-design/styled-system/recipes'
import { cx } from '@cerberus/styled-system/css'
import { modal } from '@cerberus/styled-system/recipes'
import { forwardRef, type ForwardedRef, type HTMLAttributes } from 'react'

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/ModalDescription.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cx } from '@cerberus-design/styled-system/css'
import { modal } from '@cerberus-design/styled-system/recipes'
import { cx } from '@cerberus/styled-system/css'
import { modal } from '@cerberus/styled-system/recipes'
import type { HTMLAttributes } from 'react'

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/ModalHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cx } from '@cerberus-design/styled-system/css'
import { vstack } from '@cerberus-design/styled-system/patterns'
import { cx } from '@cerberus/styled-system/css'
import { vstack } from '@cerberus/styled-system/patterns'
import type { HTMLAttributes } from 'react'

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/ModalHeading.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cx } from '@cerberus-design/styled-system/css'
import { modal } from '@cerberus-design/styled-system/recipes'
import { cx } from '@cerberus/styled-system/css'
import { modal } from '@cerberus/styled-system/recipes'
import type { HTMLAttributes } from 'react'

/**
Expand Down
6 changes: 3 additions & 3 deletions packages/react/src/components/ModalIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { cx } from '@cerberus-design/styled-system/css'
import { circle } from '@cerberus-design/styled-system/patterns'
import { cx } from '@cerberus/styled-system/css'
import { circle } from '@cerberus/styled-system/patterns'
import {
modalIcon,
type ModalIconVariantProps,
} from '@cerberus-design/styled-system/recipes'
} from '@cerberus/styled-system/recipes'
import type { HTMLAttributes, PropsWithChildren } from 'react'

export type ModalIconBaseProps = HTMLAttributes<HTMLDivElement>
Expand Down
8 changes: 4 additions & 4 deletions packages/react/src/components/Radio.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use client'

import { cx } from '@cerberus-design/styled-system/css'
import { hstack } from '@cerberus-design/styled-system/patterns'
import { radio } from '@cerberus-design/styled-system/recipes'
import type { RecipeVariantProps } from '@cerberus-design/styled-system/types'
import { cx } from '@cerberus/styled-system/css'
import { hstack } from '@cerberus/styled-system/patterns'
import { radio } from '@cerberus/styled-system/recipes'
import type { RecipeVariantProps } from '@cerberus/styled-system/types'
import type { InputHTMLAttributes, PropsWithChildren } from 'react'
import { useFieldContext } from '../context/field'

Expand Down
6 changes: 3 additions & 3 deletions packages/react/src/components/Toggle.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use client'

import { cx } from '@cerberus-design/styled-system/css'
import { hstack, vstack } from '@cerberus-design/styled-system/patterns'
import { cx } from '@cerberus/styled-system/css'
import { hstack, vstack } from '@cerberus/styled-system/patterns'
import {
toggle,
type ToggleVariantProps,
} from '@cerberus-design/styled-system/recipes'
} from '@cerberus/styled-system/recipes'
import type { InputHTMLAttributes } from 'react'
import { $cerberusIcons } from '../config/defineIcons'
import { useFieldContext } from '../context/field'
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/context/confirm-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
} from 'react'
import { Portal } from '../components/Portal'
import { Button } from '../components/Button'
import { css } from '@cerberus-design/styled-system/css'
import { hstack } from '@cerberus-design/styled-system/patterns'
import { css } from '@cerberus/styled-system/css'
import { hstack } from '@cerberus/styled-system/patterns'
import { $cerberusIcons } from '../config/defineIcons'
import { trapFocus } from '../aria-helpers/trap-focus.aria'
import { ModalIcon } from '../components/ModalIcon'
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/context/prompt-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
} from 'react'
import { Portal } from '../components/Portal'
import { Button } from '../components/Button'
import { css } from '@cerberus-design/styled-system/css'
import { hstack, vstack } from '@cerberus-design/styled-system/patterns'
import { css } from '@cerberus/styled-system/css'
import { hstack, vstack } from '@cerberus/styled-system/patterns'
import { trapFocus } from '../aria-helpers/trap-focus.aria'
import { Input } from '../components/Input'
import { Field } from './field'
Expand Down
7 changes: 2 additions & 5 deletions packages/react/src/context/tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
'use client'

import {
tabs,
type TabsVariantProps,
} from '@cerberus-design/styled-system/recipes'
import type { Pretty } from '@cerberus-design/styled-system/types'
import { tabs, type TabsVariantProps } from '@cerberus/styled-system/recipes'
import type { Pretty } from '@cerberus/styled-system/types'
import {
createContext,
useContext,
Expand Down

0 comments on commit 78ff32d

Please sign in to comment.