Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`mount and unmount component could be updated and unmounted without errors 1`] = `
<DocumentFragment>
<p
class="container-0-2-17 text-0-2-13 regular-0-2-4"
class="container-0-2-19 text-0-2-15 regular-0-2-4"
dir="auto"
/>
</DocumentFragment>
Expand All @@ -12,7 +12,7 @@ exports[`mount and unmount component could be updated and unmounted without erro
exports[`mount and unmount component could be updated and unmounted without errors 2`] = `
<DocumentFragment>
<p
class="container-0-2-17 text-0-2-13 regular-0-2-4"
class="container-0-2-19 text-0-2-15 regular-0-2-4"
dir="auto"
style="font-size: 16px;"
/>
Expand All @@ -22,7 +22,7 @@ exports[`mount and unmount component could be updated and unmounted without erro
exports[`mount and unmount component could be updated and unmounted without errors 3`] = `
<DocumentFragment>
<p
class="container-0-2-17 text-0-2-13 regular-0-2-4"
class="container-0-2-19 text-0-2-15 regular-0-2-4"
dir="auto"
/>
</DocumentFragment>
Expand All @@ -31,7 +31,7 @@ exports[`mount and unmount component could be updated and unmounted without erro
exports[`mount and unmount component could be updated and unmounted without errors 4`] = `
<DocumentFragment>
<p
class="container-0-2-17 text-0-2-13 regular-0-2-4"
class="container-0-2-19 text-0-2-15 regular-0-2-4"
dir="auto"
style="font-size: 14px;"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/component/src/molecules/text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BaseText, BaseTextProps } from "./base";
import { fonts, fontSizes, fontWeights, useThemes } from "./styles";

interface TextProps extends BaseTextProps {
theme?: "medium" | "regular" | "light" | "bold";
theme?: "medium" | "regular" | "light" | "bold" | "semiBold";
lang?: "fa" | "en";
weight?: keyof typeof fontWeights | number;
color?: string;
Expand Down
10 changes: 10 additions & 0 deletions src/component/src/molecules/text/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ export const fonts = {
url: YekanBakhFaBold,
format: "woff",
},
"semiBold-en": {
name: "RobotoBold",
url: RobotoBold,
format: "woff",
},
"semiBold-fa": {
name: "YekanBakhFaBold",
url: YekanBakhFaBold,
format: "woff",
},
};

let _useThemes: (() => Record<keyof typeof fonts, string>) | undefined;
Expand Down