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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ tsconfig.tsbuildinfo
.vercel
.claude/*

# Project-specific
svgs/*
2 changes: 1 addition & 1 deletion apps/docs/app/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use client';

import { IconBook, IconCheck, IconCopyFill } from '@pierre/icons';
import Link from 'next/link';
import { useState } from 'react';

import packageJson from '../../../packages/diffs/package.json';
import { IconBook, IconCheck, IconCopyFill } from '@/components/icons';
import { Button } from '@/components/ui/button';
import {
Tooltip,
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/diff-examples/Annotations/Annotations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import type {
PreloadFileDiffResult,
PreloadMultiFileDiffResult,
} from '@pierre/diffs/ssr';
import { IconArrowDownRight, IconPlus } from '@pierre/icons';
import { useCallback, useEffect, useRef, useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import {
type AcceptRejectMetadata,
type AnnotationMetadata,
} from './constants';
import { IconArrowDownRight, IconPlus } from '@/components/icons/icons';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { Button } from '@/components/ui/button';

Expand Down
10 changes: 5 additions & 5 deletions apps/docs/app/diff-examples/CustomHeader/CustomHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

import { MultiFileDiff } from '@pierre/diffs/react';
import type { PreloadMultiFileDiffResult } from '@pierre/diffs/ssr';
import type { ReactNode } from 'react';
import { useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import {
IconCodeStyleBars,
IconCodeStyleBg,
IconDiffSplit,
IconDiffUnified,
IconMoon,
IconSun,
} from '@/components/icons';
} from '@pierre/icons';
import type { ReactNode } from 'react';
import { useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';

// =============================================================================
// Local Components
Expand Down
12 changes: 6 additions & 6 deletions apps/docs/app/diff-examples/DiffStyles/DiffStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

import { MultiFileDiff } from '@pierre/diffs/react';
import type { PreloadMultiFileDiffResult } from '@pierre/diffs/ssr';
import { useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import {
IconCheckLg,
IconCheck,
IconChevronSm,
IconCodeStyleBars,
IconCodeStyleBg,
Expand All @@ -15,7 +12,10 @@ import {
IconParagraph,
IconSymbolDiffstat,
IconWordWrap,
} from '@/components/icons';
} from '@pierre/icons';
import { useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import { Button } from '@/components/ui/button';
import { ButtonGroup, ButtonGroupItem } from '@/components/ui/button-group';
import {
Expand Down Expand Up @@ -123,7 +123,7 @@ export function DiffStyles({
className="flex items-start gap-2 py-2"
>
{lineDiffStyle === option.value ? (
<IconCheckLg className="mt-[1px]" />
<IconCheck className="mt-[1px]" />
) : (
<div className="h-4 w-4" />
)}
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/app/diff-examples/FontStyles/FontStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import { MultiFileDiff } from '@pierre/diffs/react';
import type { PreloadMultiFileDiffResult } from '@pierre/diffs/ssr';
import { useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import {
IconCheck,
IconChevronSm,
IconFunction,
IconType,
} from '@/components/icons';
} from '@pierre/icons';
import { useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import { Button } from '@/components/ui/button';
import {
DropdownMenu,
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/app/diff-examples/LineSelection/LineSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import type { SelectedLineRange } from '@pierre/diffs';
import { MultiFileDiff } from '@pierre/diffs/react';
import type { PreloadMultiFileDiffResult } from '@pierre/diffs/ssr';
import { useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import {
IconCodeStyleBars,
IconCodeStyleBg,
Expand All @@ -14,7 +11,10 @@ import {
IconMoon,
IconSun,
IconXSquircle,
} from '@/components/icons';
} from '@pierre/icons';
import { useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import { Button } from '@/components/ui/button';

interface LineSelectionProps {
Expand Down
10 changes: 5 additions & 5 deletions apps/docs/app/diff-examples/ShikiThemes/ShikiThemes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
import { preloadHighlighter } from '@pierre/diffs';
import { MultiFileDiff } from '@pierre/diffs/react';
import type { PreloadMultiFileDiffResult } from '@pierre/diffs/ssr';
import Link from 'next/link';
import { useEffect, useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import {
IconArrowDownRight,
IconCheck,
IconChevronSm,
IconColorAuto,
IconColorDark,
IconColorLight,
} from '@/components/icons';
} from '@pierre/icons';
import Link from 'next/link';
import { useEffect, useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import { Button } from '@/components/ui/button';
import { ButtonGroup, ButtonGroupItem } from '@/components/ui/button-group';
import {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/diff-examples/SplitUnified/SplitUnified.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import { MultiFileDiff } from '@pierre/diffs/react';
import type { PreloadMultiFileDiffResult } from '@pierre/diffs/ssr';
import { IconDiffSplit, IconDiffUnified } from '@pierre/icons';
import { useState } from 'react';

import { FeatureHeader } from '../FeatureHeader';
import { IconDiffSplit, IconDiffUnified } from '@/components/icons';
import { ButtonGroup, ButtonGroupItem } from '@/components/ui/button-group';

interface SplitUnifiedProps {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/docs/CopyCodeButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IconCheck, IconCopy } from '@pierre/icons';
import { useEffect, useRef, useState } from 'react';

import { IconCheck, IconCopy } from '@/components/icons';
import { cn } from '@/lib/utils';

interface CopyButtonProps {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/docs/DocsCodeExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
type FileProps,
type LineAnnotation,
} from '@pierre/diffs/react';
import { IconBrandGithub } from '@pierre/icons';

import { CopyCodeButton } from './CopyCodeButton';
import { IconBrandGithub } from '@/components/icons';
import { cn } from '@/lib/utils';

interface DocsCodeExampleProps<LAnnotation> {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/ssr/SSRPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import type { DiffLineAnnotation } from '@pierre/diffs';
import { MultiFileDiff } from '@pierre/diffs/react';
import type { PreloadMultiFileDiffResult } from '@pierre/diffs/ssr';
import { IconBell } from '@pierre/icons';
import { useState } from 'react';

import type { AnnotationMetadata } from './ssr_types';
import Footer from '@/components/Footer';
import { Header } from '@/components/Header';
import { IconBell } from '@/components/icons';

// Annotation component with its own state for proper hydration
function ErrorAnnotation({ message }: { message: string }) {
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/app/theme/ThemeDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

import { parseDiffFromFile, preloadHighlighter } from '@pierre/diffs';
import { File, FileDiff } from '@pierre/diffs/react';
import { useTheme } from 'next-themes';
import { useEffect, useMemo, useRef, useState } from 'react';

import {
IconCheckCheck,
IconChevronsNarrow,
IconColorDark,
IconColorLight,
IconFileCode,
} from '@/components/icons';
} from '@pierre/icons';
import { useTheme } from 'next-themes';
import { useEffect, useMemo, useRef, useState } from 'react';

import { ButtonGroup, ButtonGroupItem } from '@/components/ui/button-group';
import { cn } from '@/lib/utils';

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/theme/ThemeScreenshots.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use client';

import { IconColorDark, IconColorLight } from '@pierre/icons';
import { useTheme } from 'next-themes';
import Image, { type StaticImageData } from 'next/image';
import { useEffect, useState } from 'react';

import pierreDark from '../pierre-dark.png';
import pierreLight from '../pierre-light.png';
import { IconColorDark, IconColorLight } from '@/components/icons';
import { ButtonGroup, ButtonGroupItem } from '@/components/ui/button-group';

export function ThemeScreenshots() {
Expand Down
14 changes: 7 additions & 7 deletions apps/docs/app/theme/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import '@/app/prose.css';
import { preloadFile } from '@pierre/diffs/ssr';
import {
IconArrowUpRight,
IconBrandCursor,
IconBrandVsCode,
IconBrandZed,
IconThemes,
} from '@pierre/icons';
import type { Metadata } from 'next';
import Link from 'next/link';

Expand All @@ -18,13 +25,6 @@ import {
import { ThemeDemo } from './ThemeDemo';
import { ThemeLayout } from './ThemeLayout';
import Footer from '@/components/Footer';
import {
IconArrowUpRight,
IconBrandCursor,
IconBrandVsCode,
IconBrandZed,
IconThemes,
} from '@/components/icons';
import { PierreCompanySection } from '@/components/PierreCompanySection';
import { Button } from '@/components/ui/button';
import { renderMDX } from '@/lib/mdx';
Expand Down
12 changes: 6 additions & 6 deletions apps/docs/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
'use client';

import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { useEffect, useState } from 'react';

import { Button } from './ui/button';
import {
IconBrandDiscord,
IconBrandGithub,
IconChevronFlat,
IconParagraph,
} from '@/components/icons';
} from '@pierre/icons';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { useEffect, useState } from 'react';

import { Button } from './ui/button';
import { cn } from '@/lib/utils';

export interface HeaderProps {
Expand Down
3 changes: 2 additions & 1 deletion apps/docs/components/MobileMenuButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { IconParagraph } from '@pierre/icons';

import Button from './Button';
import { IconParagraph } from './icons';

interface MobileMenuButtonProps {
onClick: () => void;
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/NavLink.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use client';

import { IconArrowUpRight } from '@pierre/icons';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { type ReactNode } from 'react';

import { IconArrowUpRight } from './icons';
import { cn } from '@/lib/utils';

interface NavLinkProps {
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/components/PierreCompanySection.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Link from 'next/link';

import {
IconArrowUpRight,
IconBrandDiscord,
IconBrandGithub,
} from '@/components/icons';
} from '@pierre/icons';
import Link from 'next/link';

import { Button } from '@/components/ui/button';

export function PierreCompanySection() {
Expand Down
50 changes: 0 additions & 50 deletions apps/docs/components/icons/Color.ts

This file was deleted.

Loading