diff --git a/src/components/FontSizes/Text.stories.tsx b/src/components/Text/Text.stories.tsx similarity index 100% rename from src/components/FontSizes/Text.stories.tsx rename to src/components/Text/Text.stories.tsx diff --git a/src/components/FontSizes/Text.style.scss b/src/components/Text/Text.style.scss similarity index 100% rename from src/components/FontSizes/Text.style.scss rename to src/components/Text/Text.style.scss diff --git a/src/components/FontSizes/Text.tsx b/src/components/Text/Text.tsx similarity index 94% rename from src/components/FontSizes/Text.tsx rename to src/components/Text/Text.tsx index 6c66d1dc..be10ed15 100644 --- a/src/components/FontSizes/Text.tsx +++ b/src/components/Text/Text.tsx @@ -4,7 +4,7 @@ import "./Text.style.scss" import {mergeCode0Props} from "../../utils/utils"; export interface FontType extends Omit, "children">, "size"> { - children: string, + children: React.ReactNode, size: Code0Sizes, hierarchy?: "primary" | "secondary" | "tertiary" } diff --git a/src/components/card/Card.stories.tsx b/src/components/card/Card.stories.tsx index 5da6dbd4..7116b8ff 100644 --- a/src/components/card/Card.stories.tsx +++ b/src/components/card/Card.stories.tsx @@ -2,7 +2,7 @@ import {Meta, StoryObj} from "@storybook/react"; import React, {useState} from "react"; import Card, {CardType} from "./Card"; import Badge from "../badge/Badge"; -import Text from "../FontSizes/Text"; +import Text from "../Text/Text"; import {Colors} from "../../utils/types"; import ButtonGroup from "../button-group/ButtonGroup"; import Button from "../button/Button"; diff --git a/src/components/container/Container.stories.tsx b/src/components/container/Container.stories.tsx index 966cd153..072a15af 100644 --- a/src/components/container/Container.stories.tsx +++ b/src/components/container/Container.stories.tsx @@ -1,7 +1,7 @@ import {Meta} from "@storybook/react"; import Container from "./Container"; import Card from "../card/Card"; -import Text from "../FontSizes/Text"; +import Text from "../Text/Text"; import Badge from "../badge/Badge"; import ButtonGroup from "../button-group/ButtonGroup"; import Button from "../button/Button"; diff --git a/src/components/quote/Quote.tsx b/src/components/quote/Quote.tsx index 9c9d5ddc..9af08dd4 100644 --- a/src/components/quote/Quote.tsx +++ b/src/components/quote/Quote.tsx @@ -1,7 +1,7 @@ import React from "react"; import Card, {CardType} from "../card/Card"; import "./Quote.style.scss" -import Text from "../FontSizes/Text"; +import Text from "../Text/Text"; export interface QuoteType extends Omit { children: string diff --git a/src/index.ts b/src/index.ts index bd2debe2..1fd431ec 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ export { default as Card} from "./components/card/Card" export { default as Col} from "./components/col/Col" export { default as Container} from "./components/container/Container" export { default as Dropdown} from "./components/dropdown/Dropdown" -export { default as Text} from "./components/FontSizes/Text" +export { default as Text} from "./components/Text/Text" export { default as Input } from "./components/input/Input"; export { default as ListGroup} from "./components/list-group/ListGroup" export { default as Menu} from "./components/menu/Menu"