Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tsx from mdx #278

Merged
merged 26 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6c640cb
Merge main (#270)
lloydaf Aug 2, 2022
ddae60c
docs(headline): update props table
Aug 2, 2022
df11fdb
improvement: adding props table for filepicker
lloydaf Aug 2, 2022
edce969
docs(pagination): update props table
Aug 2, 2022
2594548
docs(select): update props table
Aug 2, 2022
5fc6958
Issue 10 add prop documentation (#271)
dani-walnut Aug 2, 2022
2982499
docs(tabbar): update props table
Aug 2, 2022
641ce15
improvement: props table for datepicker
lloydaf Aug 2, 2022
4f9f191
Merge branch 'issue-10-add-prop-documentation' of https://github.com/…
lloydaf Aug 2, 2022
f73bb83
improvement: adding props table to Tooltip
lloydaf Aug 2, 2022
cf074bb
improvement: adding PropsTable to Toggle
lloydaf Aug 2, 2022
949d0d5
improvement: adding propstable for Textarea
lloydaf Aug 2, 2022
0a6fa49
merging main with the prop branch (#277)
lloydaf Aug 4, 2022
bd9310b
docs(props-table): add props table to Table docs (#275)
arturmiglio Aug 4, 2022
e4bfbe3
docs(table): remove unused tables
Aug 4, 2022
a583de5
docs(datepicker): add links to styled-system props
Aug 4, 2022
4604dce
docs(textarea): add semicolons
Aug 4, 2022
54d0619
docs(toggle): add classname and styled-system props to the documentation
Aug 4, 2022
84f9b43
docs(select): change import order
Aug 4, 2022
df2fe81
docs(filepicker): add styled-system props link
Aug 4, 2022
62c4f90
docs(headline): add styled-system props link
Aug 4, 2022
2b1ea01
docs(helpertext): add styled-system props link
Aug 4, 2022
464649c
docs(link): add styled-system props link
Aug 4, 2022
ad1303b
docs(tag): add styled-system props link
Aug 4, 2022
190c4dd
docs: remove extentions from imports
Aug 4, 2022
bd46dc4
Merge branch 'main' into remove-tsx-from-mdx
Aug 4, 2022
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
2 changes: 1 addition & 1 deletion docs/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cardSubHeadline: Everyone is welcome to make contributions to the design system.
---

import workflowImageUrl from './contributing-new-pattern-workflow.svg'
import { ImageModal } from './components/ImageModal.tsx';
import { ImageModal } from './components/ImageModal';

## Reporting Bugs

Expand Down
8 changes: 4 additions & 4 deletions src/components/Accordion/docs/Accordion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ route: /components/accordion
---

import { Playground } from 'docz';
import { Box } from '../../Box/Box.tsx';
import { Accordion } from '../Accordion.tsx';
import { AccordionPropsTable } from './AccordionPropsTable.tsx';
import { OnExpandExample } from './OnExpandExample.tsx';
import { Box } from '../../Box/Box';
import { Accordion } from '../Accordion';
import { AccordionPropsTable } from './AccordionPropsTable';
import { OnExpandExample } from './OnExpandExample';

# Accordion
Accordion component is use to display large amount of content in a compress and progressive way.
Expand Down
8 changes: 4 additions & 4 deletions src/components/Banner/docs/Banner.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ menu: Components
route: /components/banner
---

import { Banner } from '../Banner.tsx';
import { Banner } from '../Banner';
import { Text, Headline, Button } from '../..';
import { BannerCreator } from './BannerCreator.tsx';
import { BannerPropsTable } from './BannerPropsTable.tsx';
import { ContainedBanner } from './ContainedBanner.ts';
import { BannerCreator } from './BannerCreator';
import { BannerPropsTable } from './BannerPropsTable';
import { ContainedBanner } from './ContainedBanner';

# Banner

Expand Down
2 changes: 1 addition & 1 deletion src/components/Box/docs/Box.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ route: /components/box
---

import { Playground } from 'docz';
import { Box } from '../Box.tsx';
import { Box } from '../Box';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'

# Box
Expand Down
4 changes: 2 additions & 2 deletions src/components/Button/docs/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { TextButton } from '../TextButton';
import { Box } from '../../Box/Box';
import { Headline } from '../../Headline/Headline';
import { Text } from '../../Text/Text';
import { TrashBinIcon, CloseIcon } from '../../../icons/index.ts';
import { ButtonPropsTable } from './ButtonPropsTable.tsx';
import { TrashBinIcon, CloseIcon } from '../../../icons/index';
import { ButtonPropsTable } from './ButtonPropsTable';
import { Combination } from '../../../docs/Combination'
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'

Expand Down
4 changes: 2 additions & 2 deletions src/components/Card/docs/Card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ route: /components/card
---

import { Playground } from 'docz';
import { Card } from '../Card.tsx';
import { Text } from '../../Text/Text.tsx';
import { Card } from '../Card';
import { Text } from '../../Text/Text';
import { CardPropsTable } from './CardPropsTable'
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'
import { Combination } from '../../../docs/Combination'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Checkbox/docs/Checkbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ route: /components/Checkbox

import { Playground } from 'docz';
import { Checkbox } from '../Checkbox';
import { CheckboxPropsTable } from './CheckboxPropsTable.tsx';
import { CheckboxPropsTable } from './CheckboxPropsTable';

# Checkbox

Expand Down
6 changes: 3 additions & 3 deletions src/components/Dimming/docs/Dimming.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ route: /components/dimming
---

import { Playground } from 'docz';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper.ts';
import { Dimming } from '../Dimming.tsx';
import { DimmingFixedDimensions } from './DimmingFixedDimensions.tsx';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper';
import { Dimming } from '../Dimming';
import { DimmingFixedDimensions } from './DimmingFixedDimensions';

# Dimming

Expand Down
6 changes: 3 additions & 3 deletions src/components/Divider/docs/Divider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ route: /components/divider
---

import { Playground } from 'docz';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper.ts';
import { Divider } from '../Divider.tsx';
import { WrappedHorizontalDivider, WrappedVerticalDivider, SectionPlaceholder } from './WrappedDivider.tsx';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper';
import { Divider } from '../Divider';
import { WrappedHorizontalDivider, WrappedVerticalDivider, SectionPlaceholder } from './WrappedDivider';

# Divider

Expand Down
14 changes: 7 additions & 7 deletions src/components/Grid/docs/Grid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ route: /components/grid-system
---

import { Playground } from 'docz';
import { Box } from '../../Box/Box.tsx';
import { Button } from '../../Button/Button.tsx';
import { Box } from '../../Box/Box';
import { Button } from '../../Button/Button';
import { ColumnPropsTable } from './GridPropsTable';
import { Headline } from '../../Headline/Headline.tsx';
import { Input } from '../../Input/Input.tsx';
import { Row, Column } from '../Grid.tsx';
import { Headline } from '../../Headline/Headline';
import { Input } from '../../Input/Input';
import { Row, Column } from '../Grid';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'
import { Text } from '../../Text/Text.tsx';
import { Card } from '../../Card/Card.tsx';
import { Text } from '../../Text/Text';
import { Card } from '../../Card/Card';

# Grid System

Expand Down
2 changes: 1 addition & 1 deletion src/components/InlineSpinner/docs/InlineSpinner.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ route: /components/inline-spinner
---

import { Playground } from 'docz';
import { InlineSpinner } from '../InlineSpinner.tsx';
import { InlineSpinner } from '../InlineSpinner';
import { Colors } from '../../../essentials';
import { InlineSpinnerPropsTable } from './InlineSpinnerPropsTable';
import { Combination } from '../../../docs/Combination';
Expand Down
4 changes: 2 additions & 2 deletions src/components/Input/docs/Input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ route: /components/input
---

import { Playground } from 'docz';
import { Input } from '../Input.tsx';
import { ControlledInput } from './ControlledInput.tsx';
import { Input } from '../Input';
import { ControlledInput } from './ControlledInput';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'
import { Combination } from '../../../docs/Combination'
import { InputPropsTable } from './InputPropsTable';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Label/docs/Label.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ route: /components/label
---

import { Playground } from 'docz';
import { Label } from '../Label.tsx';
import { Label } from '../Label';
import { LabelPropsTable } from './LabelPropsTable';
import { Combination } from '../../../docs/Combination';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks';
Expand Down
6 changes: 3 additions & 3 deletions src/components/Modal/docs/Modal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ menu: Components
route: /components/Modal
---

import { Modal } from '../Modal.tsx';
import { ModalCreator } from './ModalCreator.tsx';
import { ModalPropsTable } from './ModalPropsTable.tsx';
import { Modal } from '../Modal';
import { ModalCreator } from './ModalCreator';
import { ModalPropsTable } from './ModalPropsTable';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'

# Modal
Expand Down
6 changes: 3 additions & 3 deletions src/components/Offcanvas/docs/Offcanvas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ menu: Components
route: /components/Offcanvas
---

import { Offcanvas } from '../Offcanvas.tsx';
import { OffcanvasCreator } from './OffcanvasCreator.tsx';
import { OffcanvasPropsTable } from './OffcanvasPropsTable.tsx';
import { Offcanvas } from '../Offcanvas';
import { OffcanvasCreator } from './OffcanvasCreator';
import { OffcanvasPropsTable } from './OffcanvasPropsTable';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'

# Offcanvas
Expand Down
6 changes: 3 additions & 3 deletions src/components/PhoneInput/docs/PhoneInput.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ route: /components/phone-input
---

import { Playground } from 'docz';
import { PhoneInput } from '../PhoneInput.tsx';
import { PhoneInputPropsTable } from './PhoneInputPropsTable.tsx';
import { ControlledPhoneInput } from './ControlledPhoneInput.tsx';
import { PhoneInput } from '../PhoneInput';
import { PhoneInputPropsTable } from './PhoneInputPropsTable';
import { ControlledPhoneInput } from './ControlledPhoneInput';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'
import {useState} from 'react';

Expand Down
6 changes: 3 additions & 3 deletions src/components/Popover/docs/Popover.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ route: /components/Popover
---

import { Playground } from 'docz';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper.ts';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper';
import { SettingsIcon } from '../../../icons/index';

import { Button } from '../../Button/Button';
import { Text } from '../../Text/Text';
import { Link } from '../../Link/Link';

import { Popover } from '../Popover.tsx';
import { Popover } from '../Popover';

import { PopoverPropsTable } from './PopoverPropsTable.tsx';
import { PopoverPropsTable } from './PopoverPropsTable';


# Popover
Expand Down
2 changes: 1 addition & 1 deletion src/components/RadioButton/docs/RadioButton.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ route: /components/RadioButton

import { Playground } from 'docz';
import { RadioButton } from '../RadioButton';
import { RadioButtonPropsTable } from './RadioButtonPropsTable.tsx';
import { RadioButtonPropsTable } from './RadioButtonPropsTable';
import { Combination } from '../../../docs/Combination'
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/docs/Search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ route: /components/Search

import { Playground } from 'docz';
import { SearchPropsTable } from './SearchProps';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper.ts';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper';
import { Headline } from '../../Headline/Headline';

import { Search } from '../Search';
Expand Down
2 changes: 1 addition & 1 deletion src/components/SelectList/docs/SelectList.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ route: /components/select-list
---


import { SelectList } from '../SelectList.tsx';
import { SelectList } from '../SelectList';
import { SelectListPropsTable } from './SelectListPropsTable';
import { Playground } from 'docz';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks';
Expand Down
6 changes: 3 additions & 3 deletions src/components/Text/docs/Text.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ route: /components/text
---

import { Playground } from 'docz';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper.ts';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks'
import { Text } from '../Text.tsx';
import { TextPropsTable } from './TextPropsTable.tsx';
import { Text } from '../Text';
import { TextPropsTable } from './TextPropsTable';

# Text

Expand Down
2 changes: 1 addition & 1 deletion src/components/Textarea/docs/Textarea.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ route: /components/textarea
import { Playground } from 'docz';
import { ControlledTextarea } from './ControlledTextarea';
import { Textarea } from '../Textarea';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper.ts';
import { ItemWrapper } from '../../../../docs/components/ItemWrapper';
import { StyledSystemLinks } from '../../../docs/StyledSystemLinks';
import { TextareaPropsTable } from './TextareaPropsTable';

Expand Down
4 changes: 2 additions & 2 deletions src/components/Tooltip/docs/Tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ route: /components/tooltip
---

import { Playground } from 'docz';
import { Tooltip } from '../Tooltip.tsx';
import { TooltipPlacementExample } from './TooltipPlacementExample.tsx';
import { Tooltip } from '../Tooltip';
import { TooltipPlacementExample } from './TooltipPlacementExample';
import { SimpleTooltipExample } from './SimpleTooltipExample';
import { TooltipPropsTable } from './TooltipPropsTable';

Expand Down
2 changes: 1 addition & 1 deletion src/essentials/Colors/docs/Colors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ route: /essentials/colors
---

import { ColorPalette } from './ColorPalette';
import { Colors } from '../Colors.ts';
import { Colors } from '../Colors';
import { SemanticColorsTable } from './SemanticColorsTable';
import { ColorPaletteContainer } from './ColorPaletteContainer';

Expand Down