Skip to content

Commit

Permalink
refactor: replace r1stack/core with r1stack/cn
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Sep 3, 2023
1 parent 3d40a7c commit cf6ecb8
Show file tree
Hide file tree
Showing 10 changed files with 97 additions and 97 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@r1stack/coding-style": "^0.4.4",
"@r1stack/coding-style": "^0.4.5",
"@swc/core": "^1.3.82",
"@swc/jest": "^0.2.29",
"@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.4",
"@types/node": "^20.5.7",
"@types/node": "^20.5.9",
"changelogen": "^0.5.5",
"eslint": "^8.48.0",
"husky": "^8.0.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/storylite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@r1stack/core": "^0.4.4",
"@r1stack/cn": "^0.4.5",
"lucide-react": "^0.274.0",
"zustand": "^4.4.1"
},
"devDependencies": {
"@r1stack/coding-style": "^0.4.4",
"@types/node": "^20.5.7",
"@r1stack/coding-style": "^0.4.5",
"@types/node": "^20.5.9",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"publint": "^0.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/storylite/src/components/Btn.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTMLAttributes } from 'react'
import { cn } from '@r1stack/core'
import { cn } from '@r1stack/cn'

export type BtnProps = {
isActive?: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/storylite/src/components/Story.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { cn } from '@r1stack/core'
import { cn } from '@r1stack/cn'

import { useStoryLiteStore } from '@/app/stores/global'
import { renderStory } from '@/services/renderer/react'
Expand Down
2 changes: 1 addition & 1 deletion packages/storylite/src/components/canvas/CanvasIframe.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTMLProps, useEffect } from 'react'
import { cn } from '@r1stack/core'
import { cn } from '@r1stack/cn'

import { useStoryLiteIframe, useStoryLiteStore } from '@/app/stores/global'
import { getStoryUrl } from '@/services/csf-api/navigation'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HTMLProps } from 'react'
import { cn } from '@r1stack/core'
import { cn } from '@r1stack/cn'

import { useRouterQuery } from '@/services/router'

Expand Down
2 changes: 1 addition & 1 deletion packages/storylite/src/components/layouts/IframeLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cn } from '@r1stack/core'
import { cn } from '@r1stack/cn'

import { useStoryLiteStore } from '@/app/stores/global'
import { useDetectTheme } from '@/hooks/useDetectTheme'
Expand Down
2 changes: 1 addition & 1 deletion packages/storylite/src/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { cn } from '@r1stack/core'
import { cn } from '@r1stack/cn'

import { BookmarkIcon, MinusSquareIcon, PlusSquareIcon } from 'lucide-react'

Expand Down
4 changes: 2 additions & 2 deletions packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"vite": "^4.4.9"
},
"devDependencies": {
"@r1stack/coding-style": "^0.4.4",
"@types/node": "^20.5.7",
"@r1stack/coding-style": "^0.4.5",
"@types/node": "^20.5.9",
"publint": "^0.2.2",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
Expand Down
Loading

0 comments on commit cf6ecb8

Please sign in to comment.