-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Typography): new docs page for Typography (#1519)
Co-authored-by: Hadas Farhi <hadasfa@monday.com> Co-authored-by: Tal Koren <talko@monday.com>
- Loading branch information
1 parent
077087f
commit 7ccc7c7
Showing
20 changed files
with
289 additions
and
485 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
src/storybook/stand-alone-documentaion/typography-new/assets/index.js
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-127 KB
...storybook/stand-alone-documentaion/typography-new/assets/typographyExample1.png
Binary file not shown.
Binary file removed
BIN
-22.5 KB
...storybook/stand-alone-documentaion/typography-new/assets/typographyExample2.png
Binary file not shown.
127 changes: 0 additions & 127 deletions
127
src/storybook/stand-alone-documentaion/typography-new/text-styles/text-styles.jsx
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/storybook/stand-alone-documentaion/typography-new/text-styles/text-styles.module.scss
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/storybook/stand-alone-documentaion/typography-new/typography.scss
This file was deleted.
Oops, something went wrong.
83 changes: 0 additions & 83 deletions
83
src/storybook/stand-alone-documentaion/typography-new/typography.stories.mdx
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
src/storybook/stand-alone-documentaion/typography/assets/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import typographyExample1 from "./typographyExample1.png"; | ||
import typographyExample2 from "./typographyExample2.png"; | ||
|
||
export { typographyExample1, typographyExample2 }; | ||
export { default as typographyExample1 } from "./typographyExample1.png"; | ||
export { default as typographyExample2 } from "./typographyExample2.png"; | ||
export { default as typographyExample3 } from "./typographyExample3.png"; | ||
export { default as typographyExample4 } from "./typographyExample4.png"; |
Binary file modified
BIN
-44.3 KB
(65%)
src/storybook/stand-alone-documentaion/typography/assets/typographyExample1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.89 KB
(110%)
src/storybook/stand-alone-documentaion/typography/assets/typographyExample2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.8 KB
src/storybook/stand-alone-documentaion/typography/assets/typographyExample3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.75 KB
src/storybook/stand-alone-documentaion/typography/assets/typographyExample4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
src/storybook/stand-alone-documentaion/typography/examples-table/example-table.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.table { | ||
$border: 1px solid var(--sb-layout-border-color); | ||
width: 100%; | ||
margin-block: var(--spacing-medium) var(--spacing-xl); | ||
border-inline: $border; | ||
border-block-start: $border; | ||
border-spacing: 0; | ||
|
||
th, | ||
td { | ||
text-align: start !important; | ||
padding: var(--spacing-small) var(--spacing-medium); | ||
height: 40px; | ||
border-bottom: $border; | ||
&:not(:last-child) { | ||
border-right: $border; // Adds right border to all cells except the last ones in a row | ||
} | ||
} | ||
|
||
thead tr th:first-of-type { | ||
width: 270px; | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
src/storybook/stand-alone-documentaion/typography/examples-table/examples-table.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React, { FC } from "react"; | ||
import Text from "../../../../components/Text/Text"; | ||
import styles from "./example-table.module.scss"; | ||
|
||
interface TableData { | ||
name: string; | ||
useFor: string; | ||
sass: boolean; | ||
} | ||
|
||
const ExamplesTable: FC = ({ data }: { data: Array<TableData> }) => { | ||
return ( | ||
<table className={styles.table}> | ||
<Text | ||
type={Text.types.TEXT2} | ||
element="thead" | ||
ellipsis={false} | ||
color={Text.colors.SECONDARY} | ||
weight={Text.weights.MEDIUM} | ||
align={Text.align.START} | ||
> | ||
<tr> | ||
<th>Name</th> | ||
<th>SASS</th> | ||
</tr> | ||
</Text> | ||
<Text type={Text.types.TEXT2} element="tbody" ellipsis={false} align={Text.align.START}> | ||
{data.map((item, index) => ( | ||
<tr key={index}> | ||
<td>{item.name}</td> | ||
<td> | ||
<code>{item.sass}</code> | ||
</td> | ||
</tr> | ||
))} | ||
</Text> | ||
</table> | ||
); | ||
}; | ||
|
||
export default ExamplesTable; |
Oops, something went wrong.