mirror of
https://github.com/suitenumerique/drive.git
synced 2026-09-22 09:35:12 +02:00
✨(front) updated imports to the UI Kit
Imports have been modified to use the gouvfr UI Kit, replacing the old one. This includes updating dependencies in the package.json file and adding version 0.1.3 of the UI Kit.
This commit is contained in:
committed by
NathanVss
parent
09042c8437
commit
01345ca7ba
@@ -1,4 +1,4 @@
|
||||
import { cunninghamConfig } from "@lasuite/ui-kit";
|
||||
import { cunninghamConfig } from "@gouvfr-lasuite/ui-kit";
|
||||
|
||||
export default {
|
||||
...cunninghamConfig,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"build-theme": "cunningham -g css -o src/styles"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lasuite/ui-kit": "../../../design-system",
|
||||
"@gouvfr-lasuite/ui-kit": "0.1.3",
|
||||
"@openfun/cunningham-react": "3.0.0",
|
||||
"@tanstack/react-query": "5.66.9",
|
||||
"@tanstack/react-table": "8.20.6",
|
||||
|
||||
@@ -12,7 +12,7 @@ import { NavigationEventType, useExplorer } from "./ExplorerContext";
|
||||
import { FolderIcon } from "@/features/ui/components/icon/Icon";
|
||||
import { FileIcon } from "@/features/ui/components/icon/Icon";
|
||||
import clsx from "clsx";
|
||||
import { DropdownMenu } from "@lasuite/ui-kit";
|
||||
import { DropdownMenu } from "@gouvfr-lasuite/ui-kit";
|
||||
import { Button, Loader, useCunningham } from "@openfun/cunningham-react";
|
||||
import gridEmpty from "@/assets/grid_empty.png";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { login, useAuth } from "@/features/auth/Auth";
|
||||
import { ExplorerTree } from "@/features/explorer/components/ExplorerTree";
|
||||
import { MainLayout } from "@lasuite/ui-kit";
|
||||
import { MainLayout } from "@gouvfr-lasuite/ui-kit";
|
||||
import logo from "@/assets/logo.svg";
|
||||
import { HeaderRight } from "../header/Header";
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DropdownMenu, Header as KitHeader } from "@lasuite/ui-kit";
|
||||
import { DropdownMenu, Header as KitHeader } from "@gouvfr-lasuite/ui-kit";
|
||||
import { Button } from "@openfun/cunningham-react";
|
||||
import logo from "@/assets/logo.svg";
|
||||
import { useAuth, logout } from "@/features/auth/Auth";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { ReactElement, ReactNode } from "react";
|
||||
import type { NextPage } from "next";
|
||||
import type { AppProps } from "next/app";
|
||||
import { CunninghamProvider } from "@lasuite/ui-kit";
|
||||
import { CunninghamProvider } from "@gouvfr-lasuite/ui-kit";
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
|
||||
import "../styles/globals.scss";
|
||||
|
||||
@@ -2,7 +2,7 @@ import { GlobalLayout } from "@/features/layouts/components/global/GlobalLayout"
|
||||
import Head from "next/head";
|
||||
import { useTranslation } from "next-i18next";
|
||||
import { DefaultLayout } from "@/features/layouts/components/default/DefaultLayout";
|
||||
import { ProConnectButton } from "@lasuite/ui-kit";
|
||||
import { ProConnectButton } from "@gouvfr-lasuite/ui-kit";
|
||||
import { login, useAuth } from "@/features/auth/Auth";
|
||||
import { gotoLastVisitedItem } from "@/features/explorer/utils/utils";
|
||||
import { useEffect } from "react";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@use "@lasuite/ui-kit/style";
|
||||
@use "@gouvfr-lasuite/ui-kit/style";
|
||||
@use "./cunningham-tokens.css";
|
||||
@use "./../features/layouts/components/global/GlobalLayout.scss";
|
||||
@use "./../features/layouts/components/explorer/ExplorerLayout.scss";
|
||||
|
||||
+20
-18
@@ -174,6 +174,25 @@
|
||||
dependencies:
|
||||
tslib "2"
|
||||
|
||||
"@gouvfr-lasuite/ui-kit@0.1.3":
|
||||
version "0.1.3"
|
||||
resolved "https://registry.yarnpkg.com/@gouvfr-lasuite/ui-kit/-/ui-kit-0.1.3.tgz#1be7f1bdf12e7428e630d6ce11fbc77c4c9b9b21"
|
||||
integrity sha512-ba3ZrAIhX84cofa2IwiWhgE0wzz85+ySbOTvB1lP9jeWYvWn/N5HsnxphA9bEMIrx1Yi91upzmYLvjHRoDq1Ww==
|
||||
dependencies:
|
||||
"@dnd-kit/core" "6.3.1"
|
||||
"@dnd-kit/modifiers" "9.0.0"
|
||||
"@dnd-kit/sortable" "10.0.0"
|
||||
"@openfun/cunningham-react" "3.0.0"
|
||||
"@types/node" "22.10.7"
|
||||
clsx "2.1.1"
|
||||
cmdk "1.0.4"
|
||||
react "19.0.0"
|
||||
react-arborist "3.4.3"
|
||||
react-aria-components "1.6.0"
|
||||
react-dom "19.0.0"
|
||||
react-resizable-panels "2.1.7"
|
||||
react-stately "3.35.0"
|
||||
|
||||
"@humanfs/core@^0.19.1":
|
||||
version "0.19.1"
|
||||
resolved "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz"
|
||||
@@ -369,23 +388,6 @@
|
||||
"@jridgewell/resolve-uri" "^3.0.3"
|
||||
"@jridgewell/sourcemap-codec" "^1.4.10"
|
||||
|
||||
"@lasuite/ui-kit@../../../design-system":
|
||||
version "0.1.0"
|
||||
dependencies:
|
||||
"@dnd-kit/core" "6.3.1"
|
||||
"@dnd-kit/modifiers" "9.0.0"
|
||||
"@dnd-kit/sortable" "10.0.0"
|
||||
"@openfun/cunningham-react" "3.0.0"
|
||||
"@types/node" "22.10.7"
|
||||
clsx "2.1.1"
|
||||
cmdk "1.0.4"
|
||||
react "19.0.0"
|
||||
react-arborist "3.4.3"
|
||||
react-aria-components "1.6.0"
|
||||
react-dom "19.0.0"
|
||||
react-resizable-panels "2.1.7"
|
||||
react-stately "3.35.0"
|
||||
|
||||
"@next/env@15.1.7":
|
||||
version "15.1.7"
|
||||
resolved "https://registry.npmjs.org/@next/env/-/env-15.1.7.tgz"
|
||||
@@ -5126,7 +5128,7 @@ prelude-ls@^1.2.1:
|
||||
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz"
|
||||
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
|
||||
|
||||
pretty-bytes@^6.1.1:
|
||||
pretty-bytes@6.1.1:
|
||||
version "6.1.1"
|
||||
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-6.1.1.tgz#38cd6bb46f47afbf667c202cfc754bffd2016a3b"
|
||||
integrity sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==
|
||||
|
||||
Reference in New Issue
Block a user