Skip to content

Commit 4350ffb

Browse files
Core: update packages + fixes (#1423)
* chore: improve core: - up packages - fix `turbo.json` config files due to package version update - remove `React.FC` from `apps/web` - format and fix all classNames that had double space or class duplicates * chore: rebuild lock file * downgrade bun version * test bun version rollback for failure * up bun version + some ui packages * downgrade `execa` - vercel deploy fix #1 * revert `execa`, downgrade `storybook` - vercel deploy fix #2 * rollback `turbo` - vercel deploy fix #3 * revert `turbo` - vercel deploy fix #4 * up storybook * rebuild lock file * restore lock file + run `bun i` * nvm rebuild lock file back * rebuild lock * rollback to stable versions * rollback to safe lock file and run `bun i` * rollback to safe lock file and run `bun i` * rebuild healthy lock file + install latest packages (except `eslint@9` due to new config file structure)
1 parent 3f921d9 commit 4350ffb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+132
-143
lines changed

.changeset/sour-spiders-melt.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-flowbite-react": patch
3+
"flowbite-react": patch
4+
---
5+
6+
update packages

.github/actions/setup/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Setup Bun
88
uses: oven-sh/setup-bun@v1
99
with:
10-
bun-version: 1.1.0
10+
bun-version: 1.1.14
1111

1212
- name: Setup Node
1313
uses: actions/setup-node@v4

apps/storybook/package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@
1111
"typecheck": "tsc --noEmit"
1212
},
1313
"dependencies": {
14-
"react": "18.2.0",
15-
"react-dom": "18.2.0"
14+
"react": "18.3.1",
15+
"react-dom": "18.3.1"
1616
},
1717
"devDependencies": {
18-
"@storybook/addon-essentials": "8.0.5",
19-
"@storybook/addon-interactions": "8.0.5",
20-
"@storybook/addon-links": "8.0.5",
21-
"@storybook/addon-themes": "8.0.5",
22-
"@storybook/blocks": "8.0.5",
23-
"@storybook/react": "8.0.5",
24-
"@storybook/react-vite": "8.0.5",
25-
"@storybook/test": "8.0.5",
26-
"@types/react": "18.2.73",
27-
"@types/react-dom": "18.2.23",
28-
"@vitejs/plugin-react": "4.2.1",
18+
"@storybook/addon-essentials": "8.1.10",
19+
"@storybook/addon-interactions": "8.1.10",
20+
"@storybook/addon-links": "8.1.10",
21+
"@storybook/addon-themes": "8.1.10",
22+
"@storybook/blocks": "8.1.10",
23+
"@storybook/react": "8.1.10",
24+
"@storybook/react-vite": "8.1.10",
25+
"@storybook/test": "8.1.10",
26+
"@types/react": "18.3.3",
27+
"@types/react-dom": "18.3.0",
28+
"@vitejs/plugin-react": "4.3.1",
2929
"autoprefixer": "10.4.19",
3030
"postcss": "8.4.38",
31-
"storybook": "8.0.5",
32-
"tailwindcss": "3.4.3",
33-
"typescript": "5.4.3",
34-
"vite": "5.2.7"
31+
"storybook": "8.1.10",
32+
"tailwindcss": "3.4.4",
33+
"typescript": "5.4.5",
34+
"vite": "5.3.1"
3535
}
3636
}

apps/storybook/turbo.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": ["//"],
3-
"pipeline": {
3+
"tasks": {
44
"build": {
55
"outputs": ["storybook-static/**"]
66
}

apps/web/components/banner.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Link from "next/link";
2-
import type { FC } from "react";
32

4-
export const Banner: FC = () => {
3+
export function Banner() {
54
return (
65
<div
76
tabIndex={-1}
@@ -38,4 +37,4 @@ export const Banner: FC = () => {
3837
</div>
3938
</div>
4039
);
41-
};
40+
}

apps/web/components/carbon-ads.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client";
22

33
import { usePathname } from "next/navigation";
4-
import type { FC } from "react";
54
import { useEffect } from "react";
65

76
interface WindowWithCarbonAds extends Window {
@@ -10,7 +9,7 @@ interface WindowWithCarbonAds extends Window {
109
};
1110
}
1211

13-
export const CarbonAds: FC = () => {
12+
export function CarbonAds() {
1413
const pathname = usePathname();
1514

1615
const isDevelopmentMode = process.env.NODE_ENV === "development";
@@ -38,4 +37,4 @@ export const CarbonAds: FC = () => {
3837
<div id="carbon-container" />
3938
</aside>
4039
);
41-
};
40+
}

apps/web/components/homepage/components-section.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Button } from "flowbite-react";
22
import Image from "next/image";
33
import Link from "next/link";
4-
import type { ComponentProps, FC } from "react";
4+
import type { ComponentProps } from "react";
55
import { twMerge } from "tailwind-merge";
66
import { COMPONENTS_DATA } from "~/data/components";
77

8-
export const ComponentsSection: FC = () => {
8+
export function ComponentsSection() {
99
return (
1010
<section>
1111
<div className="mx-auto flex max-w-8xl flex-col gap-8 px-4 py-8 sm:gap-12 lg:px-20 lg:pt-24">
@@ -34,7 +34,7 @@ export const ComponentsSection: FC = () => {
3434
</div>
3535
</section>
3636
);
37-
};
37+
}
3838

3939
interface ComponentCardProps extends ComponentProps<"div"> {
4040
link: string;
@@ -44,7 +44,7 @@ interface ComponentCardProps extends ComponentProps<"div"> {
4444
classes: string;
4545
}
4646

47-
const ComponentCard: FC<ComponentCardProps> = ({ link, name, image, imageDark, classes }) => {
47+
function ComponentCard({ link, name, image, imageDark, classes }: ComponentCardProps) {
4848
return (
4949
<Link
5050
href={link}
@@ -80,4 +80,4 @@ const ComponentCard: FC<ComponentCardProps> = ({ link, name, image, imageDark, c
8080
</div>
8181
</Link>
8282
);
83-
};
83+
}

apps/web/components/homepage/contributors-section.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Tooltip } from "flowbite-react";
22
import Image from "next/image";
33
import Link from "next/link";
4-
import type { FC } from "react";
54
import { safeResJson } from "~/helpers/http";
65

76
interface Contributor {
@@ -21,7 +20,7 @@ async function fetchContributors(): Promise<Contributor[]> {
2120
}
2221
}
2322

24-
export const ContributorsSection: FC = async () => {
23+
export async function ContributorsSection() {
2524
const contributors = await fetchContributors();
2625

2726
return (
@@ -98,4 +97,4 @@ export const ContributorsSection: FC = async () => {
9897
</div>
9998
</section>
10099
);
101-
};
100+
}

apps/web/components/homepage/dark-mode-section/dark-mode-section.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Image from "next/image";
22
import Link from "next/link";
3-
import type { FC } from "react";
43
import { DarkModeSwitcher } from "./dark-mode-switcher";
54

65
const feature_list = [
@@ -10,7 +9,7 @@ const feature_list = [
109
"High quality UI/UX design for modern applications",
1110
];
1211

13-
export const DarkModeSection: FC = () => {
12+
export function DarkModeSection() {
1413
return (
1514
<section className="bg-gray-50 dark:bg-gray-800">
1615
<div className="mx-auto w-full max-w-8xl px-4 py-8 lg:px-20 lg:py-24">
@@ -95,4 +94,4 @@ export const DarkModeSection: FC = () => {
9594
</div>
9695
</section>
9796
);
98-
};
97+
}

apps/web/components/homepage/dark-mode-section/dark-mode-switcher.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
"use client";
22

33
import { useThemeMode } from "flowbite-react";
4-
import type { FC } from "react";
54

6-
export const DarkModeSwitcher: FC = () => {
5+
export function DarkModeSwitcher() {
76
const { setMode } = useThemeMode();
87

98
return (
@@ -81,4 +80,4 @@ export const DarkModeSwitcher: FC = () => {
8180
</div>
8281
</div>
8382
);
84-
};
83+
}

apps/web/components/homepage/featured-section.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Link from "next/link";
2-
import type { FC } from "react";
32

4-
export const FeaturedSection: FC = () => {
3+
export function FeaturedSection() {
54
return (
65
<section>
76
<div className="mx-auto max-w-8xl px-4 py-8 lg:px-20">
@@ -143,4 +142,4 @@ export const FeaturedSection: FC = () => {
143142
</div>
144143
</section>
145144
);
146-
};
145+
}

apps/web/components/homepage/figma-section.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Image from "next/image";
2-
import type { FC } from "react";
32

4-
export const FigmaSection: FC = () => {
3+
export function FigmaSection() {
54
return (
65
<section className="bg-gray-50 dark:bg-gray-800">
76
<div className="mx-auto max-w-8xl px-4 py-8 lg:px-20 lg:py-24">
@@ -247,4 +246,4 @@ export const FigmaSection: FC = () => {
247246
</div>
248247
</section>
249248
);
250-
};
249+
}

apps/web/components/homepage/hero-section/copy-package-input.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
"use client";
22

33
import { TextInput, Tooltip } from "flowbite-react";
4-
import type { FC } from "react";
54
import { useState } from "react";
65
import { HiClipboardCopy } from "react-icons/hi";
76

87
interface Props {
98
value: string;
109
}
1110

12-
export const CopyPackageInput: FC<Props> = ({ value }) => {
11+
export function CopyPackageInput({ value }: Props) {
1312
const [isJustCopied, setJustCopied] = useState(false);
1413

1514
const copyToClipboard = () => {
@@ -43,4 +42,4 @@ export const CopyPackageInput: FC<Props> = ({ value }) => {
4342
/>
4443
</Tooltip>
4544
);
46-
};
45+
}

apps/web/components/homepage/hero-section/hero-section.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { Button } from "flowbite-react";
22
import Image from "next/image";
33
import Link from "next/link";
4-
import type { FC } from "react";
54
import { HiOutlineArrowRight } from "react-icons/hi";
65
import { CopyPackageInput } from "./copy-package-input";
76

8-
export const HeroSection: FC = () => {
7+
export function HeroSection() {
98
return (
109
<section className="mx-auto flex max-w-8xl flex-col overflow-hidden px-4 py-6 sm:py-8 lg:px-20 lg:pb-24 lg:pt-16">
1110
<div className="flex flex-col gap-20">
@@ -55,4 +54,4 @@ export const HeroSection: FC = () => {
5554
</div>
5655
</section>
5756
);
58-
};
57+
}

apps/web/components/homepage/home-navbar.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { Navbar } from "flowbite-react";
22
import Image from "next/image";
33
import Link from "next/link";
4-
import type { FC } from "react";
54
import { DocSearchInput } from "../docsearch-input";
65
import { NavbarIcons, NavbarLinks } from "../navbar";
76

8-
export const HomeNavbar: FC = () => {
7+
export function HomeNavbar() {
98
return (
109
<Navbar
1110
theme={{
@@ -39,4 +38,4 @@ export const HomeNavbar: FC = () => {
3938
</div>
4039
</Navbar>
4140
);
42-
};
41+
}

apps/web/components/homepage/main-footer.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { Footer } from "flowbite-react";
22
import Image from "next/image";
33
import Link from "next/link";
4-
import type { FC } from "react";
54

6-
export const MainFooter: FC = () => {
5+
export function MainFooter() {
76
return (
87
<Footer className="rounded-none bg-gray-50 pb-8 pt-16 shadow-none">
98
<div className="mx-auto w-full max-w-8xl px-4 lg:px-20">
@@ -98,4 +97,4 @@ export const MainFooter: FC = () => {
9897
</div>
9998
</Footer>
10099
);
101-
};
100+
}

apps/web/components/homepage/react-section.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Button } from "flowbite-react";
22
import Image from "next/image";
33
import Link from "next/link";
4-
import type { FC } from "react";
54
import { HiOutlineArrowRight } from "react-icons/hi";
65

76
const feature_list = [
@@ -13,7 +12,7 @@ const feature_list = [
1312
"Fully accessible UI components",
1413
];
1514

16-
export const ReactSection: FC = () => {
15+
export function ReactSection() {
1716
return (
1817
<section className="bg-gray-50 dark:bg-gray-800">
1918
<div className="mx-auto w-full max-w-8xl px-4 py-8 lg:px-20 lg:py-24">
@@ -89,4 +88,4 @@ export const ReactSection: FC = () => {
8988
</div>
9089
</section>
9190
);
92-
};
91+
}

apps/web/components/homepage/social-proof-section.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Image from "next/image";
2-
import { type FC } from "react";
32
import { safeResJson } from "~/helpers/http";
43

54
async function fetchSafe<T>(endpoint: string): Promise<T> {
@@ -46,7 +45,7 @@ const numberWithCommas = (x: string | number) => {
4645
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
4746
};
4847

49-
export const SocialProofSection: FC = async () => {
48+
export async function SocialProofSection() {
5049
const stargazers = numberWithCommas(await fetchStargazers());
5150
const npmDownloads = numberWithCommas(await fetchNpmDownloads());
5251
const discordMembers = numberWithCommas(await fetchDiscordMembers());
@@ -204,4 +203,4 @@ export const SocialProofSection: FC = async () => {
204203
</div>
205204
</section>
206205
);
207-
};
206+
}

apps/web/components/homepage/tailwind-section.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import Image from "next/image";
22
import Link from "next/link";
3-
import type { FC } from "react";
43

5-
export const TailwindSection: FC = () => {
4+
export function TailwindSection() {
65
return (
76
<section className="bg-gray-50 dark:bg-gray-800">
87
<div className="mx-auto w-full max-w-8xl px-4 py-8 lg:px-20 lg:py-24">
@@ -80,4 +79,4 @@ export const TailwindSection: FC = () => {
8079
</div>
8180
</section>
8281
);
83-
};
82+
}

apps/web/components/mdx.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { theme } from "flowbite-react";
22
import type { MDXComponents } from "mdx/types";
3-
import { getMDXComponent } from "next-contentlayer/hooks";
3+
import { getMDXComponent } from "next-contentlayer2/hooks";
44
import Link from "next/link";
55
import * as examples from "~/examples";
66
import { CodeDemo, type CodeData } from "./code-demo";

0 commit comments

Comments
 (0)