Skip to content

Commit ed9ef43

Browse files
committed
Integrate latest libraries with rebrand
1 parent a1a3fe2 commit ed9ef43

14 files changed

Lines changed: 731 additions & 30 deletions

pnpm-lock.yaml

Lines changed: 686 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/LibrariesOverlay.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react'
22
import * as DialogPrimitive from '@radix-ui/react-dialog'
33
import { CaretDown, Check, X } from '@phosphor-icons/react'
4-
import { type Framework, type Library } from '~/libraries'
4+
import { type Framework } from '~/libraries'
55
import { frameworkOptions } from '~/libraries/frameworks'
66
import LibraryGridCard from '~/components/LibraryGridCard'
77
import { libraryCategories, type LibraryCategory } from '~/libraries/categories'
@@ -218,7 +218,7 @@ export function LibrariesOverlay({
218218
className="h-full animate-library-card-reveal"
219219
style={{ animationDelay: `${delay}ms` }}
220220
>
221-
<LibraryGridCard library={library as Library} />
221+
<LibraryGridCard library={library} />
222222
</div>
223223
))}
224224
</div>

src/components/LibraryGridCard.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Link } from '@tanstack/react-router'
22
import { ArrowRight, CaretRight } from '@phosphor-icons/react'
33
import { twMerge } from 'tailwind-merge'
4-
import type { Library } from '~/libraries'
4+
import type { PublicLibrarySlim } from '~/libraries'
55
import { libraryCategories, type LibraryCategory } from '~/libraries/categories'
66
import { fallbackLibraryIcon, libraryIcons } from '~/libraries/icons'
77

@@ -29,7 +29,11 @@ const categoryHoverBorder: Record<LibraryCategory, string> = {
2929
tooling: 'hover:border-ds-neutral-300/60',
3030
}
3131

32-
export default function LibraryGridCard({ library }: { library: Library }) {
32+
export default function LibraryGridCard({
33+
library,
34+
}: {
35+
library: PublicLibrarySlim
36+
}) {
3337
const category = libraryCategories[library.id] ?? 'tooling'
3438
const IconComponent = libraryIcons[library.id] ?? fallbackLibraryIcon
3539
const name = library.name.replace(/^TanStack\s+/, '')

src/components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const NAV_GROUPS = [
190190
label: 'Release Notes',
191191
to: '/blog',
192192
description: 'The latest releases and changelog.',
193-
icon: Sparkle,
193+
icon: Sparkles,
194194
},
195195
],
196196
},

src/components/ds/ui/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ export function Breadcrumbs({
681681
}
682682

683683
export { PalmSpinner } from './PalmSpinner'
684+
export { PixelSpinner } from './PixelSpinner'
684685
export {
685686
StatsSection,
686687
type StatsPage,

src/components/landing/HighlightLanding.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import { Link, useParams } from '@tanstack/react-router'
33
import {
44
ArrowRight,
55
BookOpen,
6-
Boxes,
7-
Braces,
6+
Cube as Boxes,
7+
BracketsCurly as Braces,
88
Check,
9-
CircleGauge,
9+
Gauge as CircleGauge,
1010
Highlighter,
11-
Layers3,
11+
Stack as Layers3,
1212
Palette,
13-
ScanText,
14-
Zap,
15-
} from 'lucide-react'
13+
Scan as ScanText,
14+
Lightning as Zap,
15+
} from '@phosphor-icons/react'
1616

1717
import { Footer } from '~/components/Footer'
1818
import { LandingCommunitySection } from '~/components/LandingCommunitySection'

src/components/landing/MarkdownLanding.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ import { streamingMarkdownExtension } from '@tanstack/markdown/extensions/stream
88
import {
99
ArrowRight,
1010
BookOpen,
11-
Braces,
11+
BracketsCurly as Braces,
1212
Check,
13-
CheckCircle2,
13+
CheckCircle as CheckCircle2,
1414
Copy,
1515
FileText,
1616
Highlighter,
17-
LockKeyhole,
18-
PackageOpen,
17+
LockKey as LockKeyhole,
18+
Package as PackageOpen,
1919
Pause,
2020
Play,
2121
Radio,
22-
RotateCcw,
22+
ArrowCounterClockwise as RotateCcw,
2323
ShieldCheck,
2424
X,
25-
} from 'lucide-react'
25+
} from '@phosphor-icons/react'
2626

2727
import { Footer } from '~/components/Footer'
2828
import { LandingCommunitySection } from '~/components/LandingCommunitySection'

src/components/npm-stats/DisabledChartActions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Download, List } from 'lucide-react'
1+
import { Download, List } from '@phosphor-icons/react'
22
import { Tooltip } from '~/components/Tooltip'
33

44
const disabledChartActionButtonStyles =

src/components/npm-stats/LatestBucketNavigator.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import * as React from 'react'
22
import {
33
Check,
4-
ChevronDown,
5-
ChevronLeft,
6-
ChevronRight,
7-
ChevronsLeft,
8-
ChevronsRight,
9-
MoreHorizontal,
4+
CaretDown as ChevronDown,
5+
CaretLeft as ChevronLeft,
6+
CaretRight as ChevronRight,
7+
CaretDoubleLeft as ChevronsLeft,
8+
CaretDoubleRight as ChevronsRight,
9+
DotsThree as MoreHorizontal,
1010
Pause,
1111
Play,
12-
} from 'lucide-react'
12+
} from '@phosphor-icons/react'
1313
import {
1414
DropdownMenu,
1515
DropdownMenuContent,

src/components/npm-stats/NPMStatsChart.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ import { createPortal } from 'react-dom'
33
import * as Plot from '@observablehq/plot'
44
import * as d3 from 'd3'
55
import { GIFEncoder, applyPalette, quantize } from 'gifenc'
6-
import { Check, Code2, Copy, Download, List } from 'lucide-react'
6+
import {
7+
Check,
8+
Code as Code2,
9+
Copy,
10+
Download,
11+
List,
12+
} from '@phosphor-icons/react'
713
import {
814
DropdownMenu,
915
DropdownMenuContent,

0 commit comments

Comments
 (0)