diff --git a/src/App/ComponentsDocumentation/components/Topbar/index.js b/src/App/ComponentsDocumentation/components/Topbar/index.js index 3c6ff0475c..f3e7971d4a 100644 --- a/src/App/ComponentsDocumentation/components/Topbar/index.js +++ b/src/App/ComponentsDocumentation/components/Topbar/index.js @@ -107,6 +107,37 @@ const DeveloperDocumentation = () => ( +
+

Migrating to the new Topbar ( ⚠️experimental🧪 )

+

+ A future version of the topbar can be used. It is in experimental state. + Things can be modified and depending of your use some features might + still be missing. +
+ This is done by appending the class{" "} + to the element with + class . +

+

+ There is several breaking changes (details are following lower down) +

+ +

+ To do the migration please follow instructions on{" "} + the migration page. +

+
+

Javascript methods

diff --git a/src/App/ComponentsDocumentation/components/TopbarMigratingToV2/index.js b/src/App/ComponentsDocumentation/components/TopbarMigratingToV2/index.js new file mode 100644 index 0000000000..ce8e2ba06e --- /dev/null +++ b/src/App/ComponentsDocumentation/components/TopbarMigratingToV2/index.js @@ -0,0 +1,466 @@ +import React, { useEffect } from "react"; +import { Link } from "react-router-dom"; + +import { EditableComponentPreview, DocContainer } from "@docutils"; +import CodeTags from "@components/CodeTags"; + +export const Overview = () => ( +

+

Intro

+ +
+); + +export const Migration = () => ( +
+

Migrating to Topbar v2

+

Experimental

+ +

Breaking changes

+

Order of the elements inside the topbar

+

the order of the topbar is modified:

+ +
+); + +export const CurrentState = () => ( +
+

Current state of experimental

+

For now:

+ +
+); + +export const Roadmap = () => ( +
+

Roadmap

+

Future iterations:

+ +
+); + +export const MigratingToNewTopbar = () => ( + +
+

+ How to migrate to the new Topbar (under experimental stage) +

+ + + + +
+
+); + +export default MigratingToNewTopbar; diff --git a/src/App/routes/components.js b/src/App/routes/components.js index 425de950bd..66383da406 100644 --- a/src/App/routes/components.js +++ b/src/App/routes/components.js @@ -333,6 +333,15 @@ module.exports = [ outlined: true, statusBadges: ["javascript"], }, + { + title: "Topbar Migrating to v2", + path: "topbar-migrating-to-v2", + rootPath: "/components/TopbarMigratingToV2", + componentPath: "components/TopbarMigratingToV2", + icon: "call_to_action", + outlined: true, + statusBadges: ["javascript"], + }, ], }, ];