Skip to content

Commit

Permalink
Update import statements to use motion-cmdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Leizhenpeng committed May 26, 2024
1 parent f9d4846 commit 27302a7
Show file tree
Hide file tree
Showing 19 changed files with 1,616 additions and 1,201 deletions.
2,781 changes: 1,598 additions & 1,183 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@types/node": "18.0.4",
"@types/react": "18.0.15",
"@types/react-dom": "18.0.6",
"cmdk": "workspace:*",
"motion-cmdk": "workspace:*",
"next": "13.5.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion test/pages/dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import * as React from 'react'

const Page = () => {
Expand Down
2 changes: 1 addition & 1 deletion test/pages/group.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import * as React from 'react'

const Page = () => {
Expand Down
2 changes: 1 addition & 1 deletion test/pages/huge.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import * as React from 'react'

const items = new Array(1000).fill(0)
Expand Down
2 changes: 1 addition & 1 deletion test/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'

const Page = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion test/pages/init-sort.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'

const Page = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion test/pages/item-advanced.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import * as React from 'react'

const Page = () => {
Expand Down
2 changes: 1 addition & 1 deletion test/pages/item.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import * as React from 'react'

const Page = () => {
Expand Down
2 changes: 1 addition & 1 deletion test/pages/keybinds.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import { useRouter } from 'next/router'
import * as React from 'react'

Expand Down
2 changes: 1 addition & 1 deletion test/pages/numeric.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'

const Page = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion test/pages/portal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import * as Portal from '@radix-ui/react-portal'

const Page = () => {
Expand Down
2 changes: 1 addition & 1 deletion test/pages/props.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import { useRouter } from 'next/router'
import * as React from 'react'

Expand Down
2 changes: 1 addition & 1 deletion website/components/cmdk/framer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import React from 'react'

export function FramerCMDK() {
Expand Down
2 changes: 1 addition & 1 deletion website/components/cmdk/linear.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'

export function LinearCMDK() {
return (
Expand Down
2 changes: 1 addition & 1 deletion website/components/cmdk/raycast.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { useTheme } from 'next-themes'
import * as Popover from '@radix-ui/react-popover'
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'
import { Logo, LinearIcon, FigmaIcon, SlackIcon, YouTubeIcon, RaycastIcon } from 'components'

export function RaycastCMDK() {
Expand Down
2 changes: 1 addition & 1 deletion website/components/cmdk/vercel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Command } from 'cmdk'
import { Command } from 'motion-cmdk'

export function VercelCMDK() {
const ref = React.useRef<HTMLDivElement | null>(null)
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@radix-ui/react-popover": "^0.1.6",
"cmdk": "workspace:*",
"motion-cmdk": "workspace:*",
"copy-to-clipboard": "^3.3.1",
"framer-motion": "^6.5.1",
"next": "13.5.1",
Expand Down
2 changes: 1 addition & 1 deletion website/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function ThemeSwitcher() {
//////////////////////////////////////////////////////////////////

function Codeblock() {
const code = `import { Command } from 'cmdk';
const code = `import { Command } from 'motion-cmdk';
<Command.Dialog open={open} onOpenChange={setOpen}>
<Command.Input />
Expand Down

0 comments on commit 27302a7

Please sign in to comment.