Skip to content

Commit 210cb9e

Browse files
chore: up packages (#1464)
* chore: up packages fix(ui): broken tests after upgrade fix(docs): mdx imports * chore: up some `storybook` namespace packages * rebuild lock file; up `turbo`
1 parent 50b8bd6 commit 210cb9e

File tree

20 files changed

+122
-112
lines changed

20 files changed

+122
-112
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
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.14
10+
bun-version: 1.1.21
1111

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

apps/storybook/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
"@types/react": "18.3.3",
2727
"@types/react-dom": "18.3.0",
2828
"@vitejs/plugin-react": "4.3.1",
29-
"autoprefixer": "10.4.19",
30-
"postcss": "8.4.38",
29+
"autoprefixer": "10.4.20",
30+
"postcss": "8.4.41",
3131
"storybook": "8.1.10",
32-
"tailwindcss": "3.4.4",
33-
"typescript": "5.4.5",
34-
"vite": "5.3.1"
32+
"tailwindcss": "3.4.7",
33+
"typescript": "5.5.4",
34+
"vite": "5.3.5"
3535
}
3636
}

apps/web/components/mdx.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { theme } from "flowbite-react";
1+
import { Alert, theme } from "flowbite-react";
22
import type { MDXComponents } from "mdx/types";
33
import { getMDXComponent } from "next-contentlayer2/hooks";
44
import Link from "next/link";
@@ -9,6 +9,7 @@ import { IntegrationGuides } from "./quickstart/integration-guides";
99
import { TextDivider } from "./text-divider";
1010

1111
const components: MDXComponents = {
12+
Alert,
1213
TextDivider,
1314
IntegrationGuides,
1415
a: ({ ref, href = "", ...props }) => {

apps/web/content/docs/customize/theme.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ title: React Theme - Flowbite
33
description: Learn how you can change the Tailwind CSS classes used by the components in Flowbite React
44
---
55

6-
import { Alert } from "flowbite-react/components/Alert";
7-
import { HiInformationCircle } from "react-icons/hi";
8-
9-
<Alert color="warning" icon={HiInformationCircle} className="mb-6">
6+
<Alert color="warning" className="mb-6">
107
This feature is highly experimental. In the future, it could be deprecated or even suffer several changes.
118
</Alert>
129

apps/web/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414
"typecheck": "contentlayer2 build && tsc --noEmit"
1515
},
1616
"dependencies": {
17-
"contentlayer2": "0.4.6",
17+
"contentlayer2": "0.5.0",
1818
"flowbite-react": "workspace:*",
1919
"react-icons": "5.2.1",
20-
"tailwind-merge": "2.3.0"
20+
"tailwind-merge": "2.4.0"
2121
},
2222
"devDependencies": {
23-
"@docsearch/react": "3.6.0",
23+
"@docsearch/react": "3.6.1",
2424
"@types/mdx": "2.0.13",
2525
"@types/prismjs": "1.26.4",
2626
"@types/react": "18.3.3",
2727
"@types/react-dom": "18.3.0",
28-
"autoprefixer": "10.4.19",
29-
"eslint-config-next": "14.2.4",
28+
"autoprefixer": "10.4.20",
29+
"eslint-config-next": "14.2.5",
3030
"markdown-toc": "1.2.0",
31-
"next": "14.2.4",
32-
"next-contentlayer2": "0.4.6",
33-
"postcss": "8.4.38",
31+
"next": "14.2.5",
32+
"next-contentlayer2": "0.5.0",
33+
"postcss": "8.4.41",
3434
"prismjs": "1.29.0",
3535
"react": "18.3.1",
3636
"react-dom": "18.3.1",
@@ -39,7 +39,7 @@
3939
"rehype-prism-plus": "2.0.0",
4040
"rehype-slug": "6.0.0",
4141
"sharp": "0.33.4",
42-
"tailwindcss": "3.4.4",
43-
"typescript": "5.4.5"
42+
"tailwindcss": "3.4.7",
43+
"typescript": "5.5.4"
4444
}
4545
}

bun.lockb

-61.4 KB
Binary file not shown.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@
3131
},
3232
"devDependencies": {
3333
"@changesets/changelog-github": "0.5.0",
34-
"@changesets/cli": "2.27.5",
35-
"@ianvs/prettier-plugin-sort-imports": "4.2.1",
36-
"@types/bun": "1.1.4",
37-
"@types/web": "0.0.149",
34+
"@changesets/cli": "2.27.7",
35+
"@ianvs/prettier-plugin-sort-imports": "4.3.1",
36+
"@types/bun": "1.1.6",
37+
"@types/web": "0.0.153",
3838
"clean-package": "2.2.0",
3939
"eslint": "8.57.0",
4040
"eslint-config-prettier": "9.1.0",
41-
"eslint-plugin-tailwindcss": "3.17.3",
42-
"npm-check-updates": "16.14.20",
43-
"prettier": "3.3.2",
44-
"prettier-plugin-packagejson": "2.5.0",
41+
"eslint-plugin-tailwindcss": "3.17.4",
42+
"npm-check-updates": "17.0.3",
43+
"prettier": "3.3.3",
44+
"prettier-plugin-packagejson": "2.5.1",
4545
"prettier-plugin-tailwindcss": "0.6.5",
46-
"rimraf": "5.0.7",
47-
"turbo": "2.0.4"
46+
"rimraf": "6.0.1",
47+
"turbo": "2.0.12"
4848
},
49-
"packageManager": "[email protected].14"
49+
"packageManager": "[email protected].21"
5050
}

packages/cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@
4646
"dependencies": {
4747
"@clack/prompts": "0.7.0",
4848
"arg": "5.0.2",
49-
"execa": "9.2.0",
49+
"execa": "9.3.0",
5050
"ora": "8.0.1",
5151
"picocolors": "1.0.1",
52-
"rimraf": "5.0.7"
52+
"rimraf": "6.0.1"
5353
},
5454
"devDependencies": {
55-
"tsup": "8.1.0",
56-
"typescript": "5.4.5"
55+
"tsup": "8.2.4",
56+
"typescript": "5.5.4"
5757
},
5858
"engines": {
5959
"node": ">=18.0.0"

packages/ui/.eslintrc.cjs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ module.exports = {
2121
parser: "@typescript-eslint/parser",
2222
extends: ["plugin:@typescript-eslint/recommended"],
2323
rules: {
24-
"@typescript-eslint/no-unused-vars": "off",
24+
"@typescript-eslint/no-unused-expressions": "off",
25+
"@typescript-eslint/no-unused-vars": [
26+
"error",
27+
{
28+
argsIgnorePattern: "^_",
29+
caughtErrorsIgnorePattern: "^_",
30+
destructuredArrayIgnorePattern: "^_",
31+
varsIgnorePattern: "^_",
32+
},
33+
],
2534
},
2635
},
2736
],
@@ -42,9 +51,10 @@ module.exports = {
4251
ignorePatterns: ["dist"],
4352
rules: {
4453
"no-undef": "off",
45-
"react/prop-types": "off",
54+
"no-unused-vars": "off",
4655
"react/display-name": "off",
4756
"react/no-unescaped-entities": "off",
57+
"react/prop-types": "off",
4858
"tailwindcss/classnames-order": "off",
4959
"tailwindcss/enforces-shorthand": "off",
5060
},

packages/ui/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,34 +58,34 @@
5858
"typecheck": "tsc --noEmit"
5959
},
6060
"dependencies": {
61-
"@floating-ui/core": "1.6.2",
62-
"@floating-ui/react": "0.26.17",
61+
"@floating-ui/core": "1.6.6",
62+
"@floating-ui/react": "0.26.21",
6363
"classnames": "2.5.1",
6464
"debounce": "2.1.0",
65-
"flowbite": "2.3.0",
65+
"flowbite": "2.5.1",
6666
"react-icons": "5.2.1",
67-
"tailwind-merge": "2.3.0"
67+
"tailwind-merge": "2.4.0"
6868
},
6969
"devDependencies": {
70-
"@testing-library/jest-dom": "6.4.6",
70+
"@testing-library/jest-dom": "6.4.8",
7171
"@testing-library/react": "16.0.0",
7272
"@testing-library/user-event": "14.5.2",
7373
"@types/react": "18.3.3",
7474
"@types/react-dom": "18.3.0",
75-
"@typescript-eslint/eslint-plugin": "7.13.1",
76-
"@typescript-eslint/parser": "7.13.1",
75+
"@typescript-eslint/eslint-plugin": "8.0.1",
76+
"@typescript-eslint/parser": "8.0.1",
7777
"@vitejs/plugin-react": "4.3.1",
78-
"@vitest/coverage-v8": "1.6.0",
79-
"eslint-plugin-react": "7.34.3",
78+
"@vitest/coverage-v8": "2.0.5",
79+
"eslint-plugin-react": "7.35.0",
8080
"eslint-plugin-storybook": "0.8.0",
8181
"eslint-plugin-vitest": "0.5.4",
8282
"fast-glob": "3.3.2",
83-
"jsdom": "24.1.0",
84-
"rollup": "4.18.0",
83+
"jsdom": "24.1.1",
84+
"rollup": "4.20.0",
8585
"rollup-plugin-esbuild": "6.1.1",
8686
"rollup-plugin-use-client": "1.4.0",
87-
"typescript": "5.4.5",
88-
"vitest": "1.6.0"
87+
"typescript": "5.5.4",
88+
"vitest": "2.0.5"
8989
},
9090
"peerDependencies": {
9191
"react": ">=18",

packages/ui/src/components/Button/ButtonGroup.spec.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ describe("Components / Button group", () => {
2626
<Button>Two</Button>
2727
<Button>Three</Button>
2828
</Button.Group>,
29-
),
30-
expect(group()).toHaveAccessibleName("My group");
29+
);
30+
expect(group()).toHaveAccessibleName("My group");
3131
});
3232
});
3333

@@ -61,8 +61,8 @@ describe("Components / Button group", () => {
6161
</Button.Group>
6262
<Button>Outside</Button>
6363
</>,
64-
),
65-
await user.tab();
64+
);
65+
await user.tab();
6666

6767
expect(buttons()[0]).toHaveFocus();
6868

packages/ui/src/components/Checkbox/Checkbox.spec.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import { describe, expect, it } from "vitest";
33
import { Flowbite, type CustomFlowbiteTheme } from "../Flowbite";
44
import { Checkbox } from "./Checkbox";
55

6-
describe.concurrent("Components / Checkbox", () => {
7-
describe.concurrent("A11y", () => {
6+
describe("Components / Checkbox", () => {
7+
describe("A11y", () => {
88
it('should have role="checkbox" by default', () => {
9-
const checkbox = render(<Checkbox />).getByRole("checkbox");
9+
render(<Checkbox />);
10+
const checkbox = screen.getByRole("checkbox");
1011

1112
expect(checkbox).toBeInTheDocument();
1213
});
@@ -27,9 +28,8 @@ describe.concurrent("Components / Checkbox", () => {
2728
</Flowbite>,
2829
);
2930

30-
expect(checkbox()).toHaveClass("bg-yellow-400 dark:bg-yellow-40");
31+
const checkbox = screen.getByRole("checkbox");
32+
expect(checkbox).toHaveClass("bg-yellow-400 dark:bg-yellow-40");
3133
});
3234
});
3335
});
34-
35-
const checkbox = () => screen.getByRole("checkbox");

packages/ui/src/components/Datepicker/Datepicker.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("Components / Datepicker", () => {
2424
await userEvent.click(screen.getByRole("textbox"));
2525
await userEvent.click(screen.getAllByText(anotherDay)[0]);
2626

27-
expect((screen.getByRole("textbox") as HTMLInputElement).value?.includes(`${anotherDay}`)).toBeTruthy();
27+
expect((screen.getByRole("textbox") as HTMLInputElement).value.includes(`${anotherDay}`)).toBeTruthy();
2828
});
2929

3030
it("should reset to today's date when Clear button is clicked", async () => {
@@ -107,7 +107,7 @@ describe("Components / Datepicker", () => {
107107
await userEvent.click(titleButton);
108108

109109
const earlierDecadeButton = screen.getByText("2010");
110-
expect(earlierDecadeButton).instanceOf(HTMLButtonElement);
110+
expect(earlierDecadeButton).toBeInstanceOf(HTMLButtonElement);
111111
expect(earlierDecadeButton).toBeEnabled();
112112
});
113113

@@ -124,7 +124,7 @@ describe("Components / Datepicker", () => {
124124
await userEvent.click(titleButton);
125125

126126
const laterDecadeButton = screen.getByText("2030");
127-
expect(laterDecadeButton).instanceOf(HTMLButtonElement);
127+
expect(laterDecadeButton).toBeInstanceOf(HTMLButtonElement);
128128
expect(laterDecadeButton).toBeDisabled();
129129
});
130130

@@ -141,7 +141,7 @@ describe("Components / Datepicker", () => {
141141
await userEvent.click(titleButton);
142142

143143
const earlierDecadeButton = screen.getByText("2010");
144-
expect(earlierDecadeButton).instanceOf(HTMLButtonElement);
144+
expect(earlierDecadeButton).toBeInstanceOf(HTMLButtonElement);
145145
expect(earlierDecadeButton).toBeDisabled();
146146
});
147147

@@ -158,7 +158,7 @@ describe("Components / Datepicker", () => {
158158
await userEvent.click(titleButton);
159159

160160
const laterDecadeButton = screen.getByText("2030");
161-
expect(laterDecadeButton).instanceOf(HTMLButtonElement);
161+
expect(laterDecadeButton).toBeInstanceOf(HTMLButtonElement);
162162
expect(laterDecadeButton).toBeEnabled();
163163
});
164164

@@ -178,11 +178,11 @@ describe("Components / Datepicker", () => {
178178
await userEvent.click(titleButton);
179179

180180
const inRange = screen.getByText("2010");
181-
expect(inRange).instanceOf(HTMLButtonElement);
181+
expect(inRange).toBeInstanceOf(HTMLButtonElement);
182182
expect(inRange).toBeEnabled();
183183

184184
const outsideRange = screen.getByText("2000");
185-
expect(outsideRange).instanceOf(HTMLButtonElement);
185+
expect(outsideRange).toBeInstanceOf(HTMLButtonElement);
186186
expect(outsideRange).toBeDisabled();
187187
});
188188

0 commit comments

Comments
 (0)