Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/preskok/components/command-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,18 +213,18 @@ function getPreskokAddCommand(
componentName: string
) {
if (packageManager === "npm") {
return `npx preskok-ui@latest add ${componentName}`
return `npx shadcn@latest add @preskok/${componentName}`
}

if (packageManager === "yarn") {
return `yarn preskok-ui@latest add ${componentName}`
return `yarn dlx shadcn@latest add @preskok/${componentName}`
}

if (packageManager === "bun") {
return `bunx --bun preskok-ui@latest add ${componentName}`
return `bunx --bun shadcn@latest add @preskok/${componentName}`
}

return `pnpm dlx preskok-ui@latest add ${componentName}`
return `pnpm dlx shadcn@latest add @preskok/${componentName}`
}

function CommandMenuKbd({ className, ...props }: React.ComponentProps<"kbd">) {
Expand Down
11 changes: 3 additions & 8 deletions apps/preskok/components/docs-sidebar-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ export function DocsSidebarFooter() {
<div className="flex items-center gap-2 text-fd-muted-foreground">
<PackageIcon className="size-4 shrink-0" />
<span className="min-w-0 flex-1 truncate text-xs font-medium">
{siteConfig.package.name}
</span>
<span className="rounded-md bg-fd-muted px-1.5 py-0.5 text-[0.6875rem] font-medium text-fd-muted-foreground tabular-nums">
v{siteConfig.package.version}
{siteConfig.cli.name}
</span>
</div>
<button
Expand All @@ -45,15 +42,13 @@ export function DocsSidebarFooter() {
"text-xs text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"
)}
onClick={() => {
void navigator.clipboard.writeText(
siteConfig.package.installCommand
)
void navigator.clipboard.writeText(siteConfig.cli.installCommand)
setHasCopied(true)
}}
>
<TerminalIcon className="size-3.5 shrink-0" />
<code className="min-w-0 flex-1 truncate font-mono">
{siteConfig.package.installCommand}
{siteConfig.cli.installCommand}
</code>
{hasCopied ? (
<CheckIcon className="size-3.5 shrink-0" />
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/buttons/button-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add button-group
npx shadcn@latest add @preskok/button-group
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/buttons/button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add button
npx shadcn@latest add @preskok/button
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/buttons/preskok-auth-button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add preskok-auth-button
npx shadcn@latest add @preskok/preskok-auth-button
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/buttons/toggle-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add toggle-group
npx shadcn@latest add @preskok/toggle-group
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/buttons/toggle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add toggle
npx shadcn@latest add @preskok/toggle
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/charts/area-chart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add area-chart
npx shadcn@latest add @preskok/area-chart
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/charts/bar-chart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add bar-chart
npx shadcn@latest add @preskok/bar-chart
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/charts/bar-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add bar-list
npx shadcn@latest add @preskok/bar-list
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/charts/chart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add chart
npx shadcn@latest add @preskok/chart
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/charts/line-chart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add line-chart
npx shadcn@latest add @preskok/line-chart
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/charts/pie-chart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add pie-chart
npx shadcn@latest add @preskok/pie-chart
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/charts/tracker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add tracker
npx shadcn@latest add @preskok/tracker
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/feedback/badge.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add badge
npx shadcn@latest add @preskok/badge
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/feedback/loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add loader
npx shadcn@latest add @preskok/loader
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/feedback/meter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add meter
npx shadcn@latest add @preskok/meter
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/feedback/note.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add note
npx shadcn@latest add @preskok/note
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/feedback/progress-bar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add progress-bar
npx shadcn@latest add @preskok/progress-bar
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/feedback/progress-circle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add progress-circle
npx shadcn@latest add @preskok/progress-circle
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/feedback/skeleton.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add skeleton
npx shadcn@latest add @preskok/skeleton
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/feedback/toast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add toast
npx shadcn@latest add @preskok/toast
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/calendar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add calendar
npx shadcn@latest add @preskok/calendar
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/checkbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function SingleCheckboxExample() {
## Installation

```bash
npx preskok-ui@latest add checkbox
npx shadcn@latest add @preskok/checkbox
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/choice-box.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ComponentSource } from "@/components/component-source"
<TabsContent id="cli">

```bash
npx preskok-ui@latest add choice-box
npx shadcn@latest add @preskok/choice-box
```

</TabsContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/color-area.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add color-area
npx shadcn@latest add @preskok/color-area
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/color-field.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add color-field
npx shadcn@latest add @preskok/color-field
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/color-picker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add color-picker
npx shadcn@latest add @preskok/color-picker
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/color-slider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add color-slider
npx shadcn@latest add @preskok/color-slider
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/color-swatch-picker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add color-swatch-picker
npx shadcn@latest add @preskok/color-swatch-picker
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/color-swatch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add color-swatch
npx shadcn@latest add @preskok/color-swatch
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/color-thumb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add color-thumb
npx shadcn@latest add @preskok/color-thumb
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/color-wheel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add color-wheel
npx shadcn@latest add @preskok/color-wheel
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/combo-box.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add combo-box
npx shadcn@latest add @preskok/combo-box
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/date-field.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add date-field
npx shadcn@latest add @preskok/date-field
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/date-picker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add date-picker
npx shadcn@latest add @preskok/date-picker
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/date-range-picker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add date-range-picker
npx shadcn@latest add @preskok/date-range-picker
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/drop-zone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add drop-zone
npx shadcn@latest add @preskok/drop-zone
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/field.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add field
npx shadcn@latest add @preskok/field
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion apps/preskok/content/docs/forms/file-trigger.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ComponentSource } from "@/components/component-source"
## Installation

```bash
npx preskok-ui@latest add file-trigger
npx shadcn@latest add @preskok/file-trigger
```

## Usage
Expand Down
Loading