Skip to content

Commit

Permalink
chore(deps): bump react and react-dom from 18.3.x to 19.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JLou committed Jan 24, 2025
1 parent 17d7002 commit 649e1f0
Show file tree
Hide file tree
Showing 7 changed files with 932 additions and 1,809 deletions.
2,475 changes: 759 additions & 1,716 deletions package-lock.json

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,26 @@
"@commitlint/config-conventional": "^19.1.0",
"@csstools/postcss-sass": "^5.1.1",
"@material-symbols/svg-400": "^0.25.1",
"@storybook/addon-docs": "^8.3.5",
"@storybook/addon-essentials": "^8.3.5",
"@storybook/addon-interactions": "^8.3.5",
"@storybook/addon-links": "^8.3.5",
"@storybook/addon-mdx-gfm": "^8.3.5",
"@storybook/addon-onboarding": "^8.3.5",
"@storybook/addon-storysource": "^8.3.5",
"@storybook/blocks": "^8.3.5",
"@storybook/html": "^8.3.5",
"@storybook/html-vite": "^8.3.5",
"@storybook/manager-api": "^8.3.5",
"@storybook/preview-api": "^8.3.5",
"@storybook/react": "^8.3.5",
"@storybook/react-vite": "^8.3.5",
"@storybook/test": "^8.3.5",
"@storybook/theming": "^8.3.5",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@storybook/addon-docs": "^8.5.0",
"@storybook/addon-essentials": "^8.5.0",
"@storybook/addon-interactions": "^8.5.0",
"@storybook/addon-links": "^8.5.0",
"@storybook/addon-mdx-gfm": "^8.5.0",
"@storybook/addon-onboarding": "^8.5.0",
"@storybook/addon-storysource": "^8.5.0",
"@storybook/blocks": "^8.5.0",
"@storybook/html": "^8.5.0",
"@storybook/html-vite": "^8.5.0",
"@storybook/manager-api": "^8.5.0",
"@storybook/preview-api": "^8.5.0",
"@storybook/react": "^8.5.0",
"@storybook/react-vite": "^8.5.0",
"@storybook/test": "^8.5.0",
"@storybook/theming": "^8.5.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.6.0",
"@types/dompurify": "^3.0.5",
"@types/jest": "^29.5.12",
"@types/jest-axe": "^3.5.9",
Expand Down Expand Up @@ -96,10 +96,10 @@
"postcss-scss": "^4.0.9",
"prettier": "^3.3.3",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.2.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rimraf": "^6.0.1",
"storybook": "^8.3.5",
"storybook": "^8.5.0",
"stylelint": "^16.11.0",
"stylelint-config-pretty-order": "^0.5.1",
"stylelint-config-recommended-scss": "^14.0.0",
Expand All @@ -117,4 +117,4 @@
"node": "22.13.0",
"npm": "11.0.0"
}
}
}
18 changes: 9 additions & 9 deletions samples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
"preview": "vite preview"
},
"dependencies": {
"@material-symbols/svg-400": "^0.23.0",
"react": "^18.3.1",
"react-dom": "^18.2.0",
"react-router-dom": "^6.26.1"
"@material-symbols/svg-400": "^0.27.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router": "^7.1.3"
},
"devDependencies": {
"@swc/core": "^1.7.35",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.2.24",
"@swc/core": "^1.10.8",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.16.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"typescript": "^5.6.3",
"vite": "^5.3.5"
"typescript": "^5.7.3",
"vite": "^6.0.9"
},
"volta": {
"extends": "../../package.json"
Expand Down
176 changes: 129 additions & 47 deletions samples/vite/src/Agent.tsx
Original file line number Diff line number Diff line change
@@ -1,65 +1,147 @@
import {
Action,
Button,
FileInput,
MultiSelectInput,
Paging,
Popover,
SliderInput,
THead,
Table,
Td,
Th,
Title,
Tr,
} from "@axa-fr/design-system-slash-react";
import { useState } from "react";

const Agent = () => (
<section className="design-section">
<header>
<Title heading="h2">Agent</Title>
</header>
const Agent = () => {
const [sliderValue, setSliderValue] = useState(50);

<article>
<Title heading="h3">Action</Title>
<Action icon="plus" onClick={() => console.log("hello")} />
</article>
return (
<section className="design-section">
<header>
<Title heading="h2">Agent</Title>
</header>

<article>
<Button>Button</Button>
</article>
<article>
<Title heading="h3">Action</Title>
<Action icon="plus" onClick={() => console.log("hello")} />
</article>

<article style={{ margin: "unset" }}>
<Title heading="h3">Table component</Title>
<article>
<Button>Button</Button>
</article>

<Table>
<THead>
<Tr>
<Th colSpan={3}>Some text</Th>
</Tr>
<Tr>
<Th rowSpan={2}>Some text</Th>
<Td>
<strong>Some bold text</strong>
</Td>
<Td>Some text</Td>
</Tr>
<Tr>
<Td>Some text</Td>
<Td>Some text</Td>
</Tr>
<Tr>
<Table.Td>Some text</Table.Td>
<Table.Td>Some text</Table.Td>
<Table.Td>Some text</Table.Td>
</Tr>
</THead>
</Table>
<Paging
currentPage={5}
numberItems={15}
numberPages={22}
mode="default"
items={[5, 15, 50, 100]}
/>
</article>
</section>
);
<article style={{ margin: "unset" }}>
<Title heading="h3">Table component</Title>

<Table>
<THead>
<Tr>
<Th colSpan={3}>Some text</Th>
</Tr>
<Tr>
<Th rowSpan={2}>Some text</Th>
<Td>
<strong>Some bold text</strong>
</Td>
<Td>Some text</Td>
</Tr>
<Tr>
<Td>Some text</Td>
<Td>Some text</Td>
</Tr>
<Tr>
<Table.Td>Some text</Table.Td>
<Table.Td>Some text</Table.Td>
<Table.Td>Some text</Table.Td>
</Tr>
</THead>
</Table>
<Paging
currentPage={5}
numberItems={15}
numberPages={22}
mode="default"
items={[5, 15, 50, 100]}
/>
</article>

<article>
<Title heading="h3">Popover</Title>
<Popover mode="hover" popoverElement={"hello friends"}>
<p
style={{
padding: "1rem",
backgroundColor: "#f1f1f1",
border: "1px solid #ccc",
}}
>
Hover me! ❤️
</p>
</Popover>
</article>

<article>
<Title heading="h3">Popover</Title>
<SliderInput
id="slider"
name="slider"
value={sliderValue}
onChange={(e) => setSliderValue(e.value)}
label="Slider"
options={[
{
value: 10,
label: "ten",
},
{
value: 50,
label: "fifty",
},
{
value: 100,
label: "one hundred",
},
]}
/>
</article>

<article>
<Title heading="h3">Select component</Title>
<MultiSelectInput
id="select"
name="select"
label="Select"
options={[
{
label: "Option 1",
value: "option-1",
},
{
label: "Option 2",
value: "option-2",
},
{
label: "Option 3",
value: "option-3",
},
]}
/>
</article>

<article>
<Title heading="h3">FileInput component</Title>
<FileInput
id="fileInput"
name="fileInput"
label="FileInput"
onChange={() => {}}
/>
</article>
</section>
);
};

export default Agent;
3 changes: 2 additions & 1 deletion samples/vite/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
width: 100%;
margin: auto;
background-color: #fafafa;
height: 100vh;
min-height: 100vh;
}
.design-section {
padding: 0 10rem 3rem 10rem;
Expand All @@ -20,6 +20,7 @@
article {
padding: 1rem 0;
margin: auto;
width: 100%;
}

.af-test-token-css {
Expand Down
19 changes: 8 additions & 11 deletions samples/vite/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Header } from "@axa-fr/design-system-look-and-feel-react";
import { Suspense } from "react";
import { Navigate, NavLink, Route, Routes } from "react-router-dom";
import Agent from "./Agent";
import Client from "./Client";
import { Navigate, NavLink, Route, Routes } from "react-router";

import Agent from "./Agent";
import "./App.css";
import Client from "./Client";
import "./Reset.css";
const App = () => (
<>
Expand All @@ -14,13 +13,11 @@ const App = () => (
<NavLink to="/client">CLIENT</NavLink>,
<NavLink to="/agent">AGENT</NavLink>,
</Header>
<Suspense>
<Routes>
<Route path="/" element={<Navigate to={"/client"} />} />
<Route path="/client" element={<Client />} />
<Route path="/agent" element={<Agent />} />
</Routes>
</Suspense>
<Routes>
<Route index element={<Navigate to={"/client"} />} />
<Route path="/client" element={<Client />} />
<Route path="/agent" element={<Agent />} />
</Routes>
</>
);

Expand Down
2 changes: 1 addition & 1 deletion samples/vite/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter } from "react-router";
import App from "./App.tsx";
import { BrowserRouter } from "react-router-dom";

ReactDOM.createRoot(document.getElementById("root")!).render(
<BrowserRouter>
Expand Down

0 comments on commit 649e1f0

Please sign in to comment.