Skip to content

Commit 966fbe0

Browse files
committed
Remove useless (for now) scoped css imports
1 parent 50a6499 commit 966fbe0

File tree

10 files changed

+0
-27
lines changed

10 files changed

+0
-27
lines changed

src/Accordion.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { fr } from "./lib";
55
import { cx } from "./lib/tools/cx";
66
import { symToStr } from "tsafe/symToStr";
77
import { useConstCallback } from "./lib/tools/powerhooks/useConstCallback";
8-
import "./dsfr/component/accordion/accordion.css";
98

109
export type AccordionProps = AccordionProps.Controlled | AccordionProps.Uncontrolled;
1110

src/Alert.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ import { assert } from "tsafe/assert";
88
import type { Equals } from "tsafe";
99
import { useConstCallback } from "./lib/tools/powerhooks/useConstCallback";
1010
import { createComponentI18nApi } from "./lib/i18n";
11-
// We make users import dsfr.css so we don't need to import the scoped CSS
12-
// but in the future if we have a complete component coverage it
13-
// we could stop requiring users to import the hole CSS and only import on a
14-
// per component basis.
15-
import "./dsfr/component/alert/alert.css";
1611

1712
export type AlertProps = {
1813
className?: string;

src/Breadcrumb.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import { createComponentI18nApi } from "./lib/i18n";
88
import { fr } from "./lib";
99
import { cx } from "./lib/tools/cx";
1010

11-
import "./dsfr/component/breadcrumb/breadcrumb.css";
12-
1311
export type BreadcrumbProps = {
1412
className?: string;
1513
links: BreadcrumbProps.Link[];

src/Card.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import { fr, RegisteredLinkProps } from "./lib";
99
import { getLink } from "./lib/routing";
1010
import { cx } from "./lib/tools/cx";
1111

12-
import "./dsfr/component/card/card.css";
13-
1412
//https://main--ds-gouv.netlify.app/example/component/card/
1513
export type CardProps = {
1614
className?: string;

src/Highlight.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ import type { Equals } from "tsafe";
55
import { fr } from "./lib";
66
import { cx } from "./lib/tools/cx";
77

8-
// We make users import dsfr.css, so we don't need to import the scoped CSS
9-
// but in the future if we have a complete component coverage it
10-
// we could stop requiring users to import the hole CSS and only import on a
11-
// per component basis.
12-
import "./dsfr/component/highlight/highlight.css";
13-
148
export type HighlightProps = {
159
className?: string;
1610
classes?: Partial<Record<"root" | "content", string>>;

src/Notice.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ import { assert } from "tsafe/assert";
66
import type { Equals } from "tsafe";
77
import { useConstCallback } from "./lib/tools/powerhooks/useConstCallback";
88
import { createComponentI18nApi } from "./lib/i18n";
9-
// We make users import dsfr.css so we don't need to import the scoped CSS
10-
// but in the future if we have a complete component coverage it
11-
// we could stop requiring users to import the hole CSS and only import on a
12-
// per component basis.
13-
import "./dsfr/component/notice/notice.css";
149

1510
export type NoticeProps = {
1611
className?: string;

src/Quote.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { FrClassName } from "./lib/generatedFromCss/classNames";
77
import { cx } from "./lib/tools/cx";
88
import { fr } from "./lib";
99

10-
import "./dsfr/component/quote/quote.css";
11-
1210
export type QuoteProps = {
1311
className?: string;
1412
text: ReactNode;

src/Stepper.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type { Equals } from "tsafe";
66
import { fr } from "./lib";
77
import { cx } from "./lib/tools/cx";
88
import { createComponentI18nApi } from "./lib/i18n";
9-
import "./dsfr/component/stepper/stepper.css";
109

1110
export type StepperProps = {
1211
className?: string;

src/Summary.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import { cx } from "./lib/tools/cx";
88
import { fr, RegisteredLinkProps } from "./lib";
99
import { getLink } from "./lib/routing";
1010

11-
import "./dsfr/component/summary/summary.css";
12-
1311
type SummaryLink = {
1412
text: string;
1513
linkProps: RegisteredLinkProps;

src/Tabs.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { cx } from "./lib/tools/cx";
77
import { assert } from "tsafe/assert";
88
import type { Equals } from "tsafe";
99
import { useCallbackFactory } from "./lib/tools/powerhooks/useCallbackFactory";
10-
import "@gouvfr/dsfr/dist/component/tab/tab.css";
1110

1211
export type TabsProps = TabsProps.Uncontrolled | TabsProps.Controlled;
1312

0 commit comments

Comments
 (0)