Skip to content

Commit 9a649a7

Browse files
committed
manage import
1 parent b1a567e commit 9a649a7

File tree

9 files changed

+12
-16
lines changed

9 files changed

+12
-16
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
"./ToggleSwitchGroup": "./dist/ToggleSwitchGroup.js",
133133
"./ToggleSwitch": "./dist/ToggleSwitch.js",
134134
"./Tile": "./dist/Tile.js",
135+
"./Tag": "./dist/Tag.js",
135136
"./Tabs": "./dist/Tabs.js",
136137
"./Summary": "./dist/Summary.js",
137138
"./Stepper": "./dist/Stepper.js",

src/Accordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import React, {
88
type ReactNode,
99
type CSSProperties
1010
} from "react";
11-
import { assert } from "tsafe";
11+
import { assert } from "tsafe/assert";
1212
import type { Equals } from "tsafe";
1313
import { fr } from "./fr";
1414
import { cx } from "./tools/cx";

src/Modal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React, { memo, forwardRef, type CSSProperties } from "react";
1+
import React, { memo, forwardRef, type CSSProperties, type ReactNode } from "react";
22
import { fr } from "./fr";
33
import { cx } from "./tools/cx";
4-
import type { ReactNode } from "react";
5-
import { Equals, assert } from "tsafe";
4+
import { assert } from "tsafe/assert";
5+
import { symToStr } from "tsafe/symToStr";
6+
import type { Equals } from "tsafe";
67
import { createComponentI18nApi } from "./i18n";
78
import type { FrIconClassName, RiIconClassName } from "./fr/generatedFromCss/classNames";
8-
import { symToStr } from "tsafe/symToStr";
99
import Button, { ButtonProps } from "./Button";
1010
import { capitalize } from "tsafe/capitalize";
1111
import { uncapitalize } from "tsafe/uncapitalize";

src/Pagination.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { memo, forwardRef, type CSSProperties } from "react";
22
import { symToStr } from "tsafe/symToStr";
33
import { assert } from "tsafe/assert";
44
import type { Equals } from "tsafe";
5-
65
import { fr } from "./fr";
76
import { cx } from "./tools/cx";
87
import { createComponentI18nApi } from "./i18n";

src/Quote.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { memo, forwardRef, type ReactNode, type CSSProperties } from "rea
22
import { symToStr } from "tsafe/symToStr";
33
import { assert } from "tsafe/assert";
44
import type { Equals } from "tsafe";
5-
65
import type { FrClassName } from "./fr/generatedFromCss/classNames";
76
import { cx } from "./tools/cx";
87
import { fr } from "./fr";

src/SkipLinks.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { forwardRef, memo, type CSSProperties } from "react";
2-
import { assert, Equals } from "tsafe";
2+
import type { Equals } from "tsafe";
3+
import { assert } from "tsafe/assert";
34
import { symToStr } from "tsafe/symToStr";
45
import { fr } from "./fr";
56
import { createComponentI18nApi } from "./i18n";

src/link.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import React from "react";
2-
import type { ReactNode } from "react";
3-
import type { DetailedHTMLProps, AnchorHTMLAttributes } from "react";
1+
import React, { type ReactNode, type DetailedHTMLProps, type AnchorHTMLAttributes } from "react";
42

53
type HTMLAnchorProps = DetailedHTMLProps<
64
AnchorHTMLAttributes<HTMLAnchorElement>,

src/mui.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
"use client";
22

33
/* eslint-disable @typescript-eslint/no-non-null-assertion */
4-
import React, { useMemo } from "react";
5-
import type { ReactNode } from "react";
4+
import React, { useMemo, type ReactNode } from "react";
65
import { breakpointValues } from "./fr/generatedFromCss/breakpoints";
76
import type { Theme as MuiTheme, ThemeOptions } from "@mui/material/styles";
87
import { createTheme, ThemeProvider as MuiThemeProvider } from "@mui/material/styles";
8+
import type { Shadows } from "@mui/material/styles";
99
import { getColors } from "./fr/colors";
1010
import type { ColorTheme } from "./fr/colors";
1111
import { useIsDark } from "./useIsDark";
1212
import { typography } from "./fr/generatedFromCss/typography";
1313
import { spacingTokenByValue } from "./fr/generatedFromCss/spacing";
1414
import { assert } from "tsafe/assert";
1515
import { objectKeys } from "tsafe/objectKeys";
16-
import type { Shadows } from "@mui/material/styles";
1716
import { id } from "tsafe/id";
1817

1918
export function getMuiDsfrThemeOptions(params: { isDark: boolean }): ThemeOptions {

src/next-pagesdir.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React, { useEffect } from "react";
2-
import type { ReactNode } from "react";
1+
import React, { useEffect, type ReactNode } from "react";
32
import Head from "next/head";
43
import type { NextComponentType } from "next";
54
import DefaultApp from "next/app";

0 commit comments

Comments
 (0)