From 20b200a237defb43146073f08cd0414bb8a511b2 Mon Sep 17 00:00:00 2001 From: Thomas Lopez Date: Wed, 24 Jul 2024 10:57:19 +0200 Subject: [PATCH 01/27] component file example --- .../accordion/Accordion.example.tsx | 45 +++++++++++++++++++ packages/react/components/accordion/index.ts | 3 +- .../react/components/alert/Alert.example.tsx | 11 +++++ packages/react/components/alert/index.ts | 3 +- .../react/components/badge/Badge.example.tsx | 10 +++++ 5 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 packages/react/components/accordion/Accordion.example.tsx create mode 100644 packages/react/components/alert/Alert.example.tsx create mode 100644 packages/react/components/badge/Badge.example.tsx diff --git a/packages/react/components/accordion/Accordion.example.tsx b/packages/react/components/accordion/Accordion.example.tsx new file mode 100644 index 00000000..4ee6ad8a --- /dev/null +++ b/packages/react/components/accordion/Accordion.example.tsx @@ -0,0 +1,45 @@ +import React from 'react' +import { Accordion, AccordionBody, AccordionHeader, AccordionItem } from './index' + +const AccordionExample: React.ReactNode = + + + Hello World + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem., consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem. + + + + + Hello World{' '} + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem. + + + + + Hello World + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem. + + + + + Item disabled + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum felis venenatis efficitur. Aenean ac eleifend lacus, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem. + + + + +export default AccordionExample diff --git a/packages/react/components/accordion/index.ts b/packages/react/components/accordion/index.ts index af1bec69..07819eab 100644 --- a/packages/react/components/accordion/index.ts +++ b/packages/react/components/accordion/index.ts @@ -2,5 +2,6 @@ import Accordion from './Accordion' import AccordionItem from './item' import AccordionHeader from './header' import AccordionBody from './body' +import AccordionExample from './Accordion.example' -export { Accordion, AccordionItem, AccordionHeader, AccordionBody } +export { Accordion, AccordionItem, AccordionHeader, AccordionBody, AccordionExample } diff --git a/packages/react/components/alert/Alert.example.tsx b/packages/react/components/alert/Alert.example.tsx new file mode 100644 index 00000000..0a72f00e --- /dev/null +++ b/packages/react/components/alert/Alert.example.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import { Alert } from './index' + +const AlertExample: React.ReactNode = + +export default AlertExample diff --git a/packages/react/components/alert/index.ts b/packages/react/components/alert/index.ts index 11096b37..5e673703 100644 --- a/packages/react/components/alert/index.ts +++ b/packages/react/components/alert/index.ts @@ -1,4 +1,5 @@ import Alert, { ToasterAlertProvider } from './Alert' +import AlertExample from './Alert.example' import ToasterContext from './context' -export { Alert, ToasterContext, ToasterAlertProvider } +export { Alert, AlertExample, ToasterContext, ToasterAlertProvider } diff --git a/packages/react/components/badge/Badge.example.tsx b/packages/react/components/badge/Badge.example.tsx new file mode 100644 index 00000000..e8ee205b --- /dev/null +++ b/packages/react/components/badge/Badge.example.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import { + Badge +} from "./index" + +const badgeExample: React.ReactNode = + +export default badgeExample From 654f0a15cbbdfdd630eb25f0bc0b227b2b7debfb Mon Sep 17 00:00:00 2001 From: Thomas Lopez Date: Wed, 24 Jul 2024 14:34:15 +0200 Subject: [PATCH 02/27] add more component examples --- .../react/components/badge/Badge.example.tsx | 4 +- packages/react/components/box/Box.example.tsx | 17 +++++++++ .../components/button/Button.example.tsx | 37 +++++++++++++++++++ .../react/components/card/Card.example.tsx | 28 ++++++++++++++ 4 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 packages/react/components/box/Box.example.tsx create mode 100644 packages/react/components/button/Button.example.tsx create mode 100644 packages/react/components/card/Card.example.tsx diff --git a/packages/react/components/badge/Badge.example.tsx b/packages/react/components/badge/Badge.example.tsx index e8ee205b..584abc86 100644 --- a/packages/react/components/badge/Badge.example.tsx +++ b/packages/react/components/badge/Badge.example.tsx @@ -3,8 +3,8 @@ import { Badge } from "./index" -const badgeExample: React.ReactNode = -export default badgeExample +export default BadgeExample diff --git a/packages/react/components/box/Box.example.tsx b/packages/react/components/box/Box.example.tsx new file mode 100644 index 00000000..f0212852 --- /dev/null +++ b/packages/react/components/box/Box.example.tsx @@ -0,0 +1,17 @@ +import React from 'react' +import { Box, BoxContent } from './index' +import { Title } from '@/components/title' +import { Text } from '@/components/text' + +const BoxExample: React.ReactNode = + + + Box Title + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris. + + + + +export default BoxExample diff --git a/packages/react/components/button/Button.example.tsx b/packages/react/components/button/Button.example.tsx new file mode 100644 index 00000000..bc385923 --- /dev/null +++ b/packages/react/components/button/Button.example.tsx @@ -0,0 +1,37 @@ +import React from 'react' +import { ButtonList, Button } from './index' + +const ButtonExample: React.ReactNode = + + + + + + + +export default ButtonExample + + + diff --git a/packages/react/components/card/Card.example.tsx b/packages/react/components/card/Card.example.tsx new file mode 100644 index 00000000..47a9a646 --- /dev/null +++ b/packages/react/components/card/Card.example.tsx @@ -0,0 +1,28 @@ +import React from 'react' +import { Card, CardImage, CardContent } from './index' +import { Title } from '@/components/title' +import { Text } from '@/components/text' +import { Button } from '@/components/button' + +const CardExample: React.ReactNode = + + + + Présentation + + + Title lorem + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ligula ex, neque eu, vulputate vera. + + + + + +export default CardExample From 2dee243e66a59827e9e7b2f549e0ad67821bd764 Mon Sep 17 00:00:00 2001 From: Thomas Lopez Date: Wed, 24 Jul 2024 14:39:26 +0200 Subject: [PATCH 03/27] export examples --- packages/react/components/badge/index.ts | 3 ++- packages/react/components/box/index.ts | 3 ++- packages/react/components/button/index.ts | 3 ++- packages/react/components/card/index.ts | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/react/components/badge/index.ts b/packages/react/components/badge/index.ts index a4728002..a72bb1d8 100644 --- a/packages/react/components/badge/index.ts +++ b/packages/react/components/badge/index.ts @@ -1,5 +1,6 @@ import Badge from './Badge' +import BadgeExample from './Badge.example' export * from './BadgeEnum' -export { Badge } +export { Badge, BadgeExample } diff --git a/packages/react/components/box/index.ts b/packages/react/components/box/index.ts index 7a34c061..9cb19b61 100644 --- a/packages/react/components/box/index.ts +++ b/packages/react/components/box/index.ts @@ -5,7 +5,8 @@ import BoxHeader from './header' import BoxTableContainer from './table-container' import BoxItem from './item' import { BoxItemSize } from './item/BoxItemEnum' +import BoxExample from './Box.example' export * from './BoxProps' -export { Box, BoxItem, BoxItemSize, BoxHeader, BoxContent, BoxFooter, BoxTableContainer } +export { Box, BoxItem, BoxItemSize, BoxHeader, BoxContent, BoxFooter, BoxTableContainer, BoxExample } diff --git a/packages/react/components/button/index.ts b/packages/react/components/button/index.ts index 618cffe8..7a3a1efd 100644 --- a/packages/react/components/button/index.ts +++ b/packages/react/components/button/index.ts @@ -1,6 +1,7 @@ import Button from './Button' import { ButtonList } from './list' +import ButtonExample from './Button.example' export * from './ButtonEnum' -export { Button, ButtonList } +export { Button, ButtonList, ButtonExample } diff --git a/packages/react/components/card/index.ts b/packages/react/components/card/index.ts index dd20d4cd..e8fd7b5c 100644 --- a/packages/react/components/card/index.ts +++ b/packages/react/components/card/index.ts @@ -1,7 +1,8 @@ import Card from './Card' import CardImage from './image' import CardContent from './content' +import CardExample from './Card.example' export * from './image/CardImageEnum' -export { Card, CardImage, CardContent } +export { Card, CardImage, CardContent, CardExample } From 73a5e2c5b58afdb7552d1a809d9616f120b96e70 Mon Sep 17 00:00:00 2001 From: Thomas Lopez Date: Wed, 24 Jul 2024 14:41:04 +0200 Subject: [PATCH 04/27] remove onclick function from examples --- packages/react/components/box/Box.example.tsx | 2 +- packages/react/components/button/Button.example.tsx | 4 ---- packages/react/components/card/Card.example.tsx | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/react/components/box/Box.example.tsx b/packages/react/components/box/Box.example.tsx index f0212852..c9ab48d9 100644 --- a/packages/react/components/box/Box.example.tsx +++ b/packages/react/components/box/Box.example.tsx @@ -3,7 +3,7 @@ import { Box, BoxContent } from './index' import { Title } from '@/components/title' import { Text } from '@/components/text' -const BoxExample: React.ReactNode = +const BoxExample: React.ReactNode = Box Title diff --git a/packages/react/components/button/Button.example.tsx b/packages/react/components/button/Button.example.tsx index bc385923..61e4899e 100644 --- a/packages/react/components/button/Button.example.tsx +++ b/packages/react/components/button/Button.example.tsx @@ -4,27 +4,23 @@ import { ButtonList, Button } from './index' const ButtonExample: React.ReactNode = <ButtonList> <Button - onClick={function noRefCheck(){}} variant="PRIMARY" > Button </Button> <Button - onClick={function noRefCheck(){}} variant="SECONDARY" > Button </Button> <Button disabled - onClick={function noRefCheck(){}} variant="PRIMARY" > Button </Button> <Button loading - onClick={function noRefCheck(){}} variant="PRIMARY" > Button diff --git a/packages/react/components/card/Card.example.tsx b/packages/react/components/card/Card.example.tsx index 47a9a646..6606f655 100644 --- a/packages/react/components/card/Card.example.tsx +++ b/packages/react/components/card/Card.example.tsx @@ -4,7 +4,7 @@ import { Title } from '@/components/title' import { Text } from '@/components/text' import { Button } from '@/components/button' -const CardExample: React.ReactNode = <Card onClick={function noRefCheck(){}}> +const CardExample: React.ReactNode = <Card> <CardImage src="https://design.bouyguestelecom.fr/v1/card-sample.200bd9f7.png" /> <CardContent> <Title> @@ -17,7 +17,6 @@ const CardExample: React.ReactNode = <Card onClick={function noRefCheck(){}}> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ligula ex, neque eu, vulputate vera. </Text> <Button - onClick={function noRefCheck(){}} variant="SECONDARY" > Voir plus... From 1f6f8d1463c5a20ef2c158c60a80a734d6f3b91d Mon Sep 17 00:00:00 2001 From: Thomas Lopez <thlopez@bouyguestelecom.fr> Date: Mon, 29 Jul 2024 14:13:19 +0200 Subject: [PATCH 05/27] add all others examples for trilogy components --- .../components/checkbox/Checkbox.example.tsx | 28 +++++++++++ packages/react/components/checkbox/index.ts | 3 +- .../react/components/chips/Chips.example.tsx | 40 ++++++++++++++++ packages/react/components/chips/index.ts | 3 +- .../components/columns/Columns.example.tsx | 30 ++++++++++++ packages/react/components/columns/index.ts | 3 +- .../container/Container.example.tsx | 15 ++++++ packages/react/components/container/index.ts | 3 +- .../countdown/Countdown.example.tsx | 7 +++ packages/react/components/countdown/index.ts | 3 +- .../components/divider/Divider.example.tsx | 10 ++++ packages/react/components/divider/index.ts | 3 +- packages/react/components/fab/Fab.example.tsx | 11 +++++ packages/react/components/fab/index.ts | 3 +- .../react/components/hero/Hero.example.tsx | 33 +++++++++++++ packages/react/components/hero/index.ts | 3 +- .../react/components/icon/Icon.example.tsx | 30 ++++++++++++ packages/react/components/icon/index.ts | 4 +- .../react/components/image/Image.example.tsx | 13 ++++++ packages/react/components/image/index.ts | 3 +- .../react/components/input/Input.example.tsx | 17 +++++++ packages/react/components/input/index.ts | 3 +- .../react/components/link/Link.example.tsx | 20 ++++++++ packages/react/components/link/index.ts | 3 +- .../react/components/list/List.example.tsx | 26 +++++++++++ packages/react/components/list/index.ts | 3 +- .../react/components/modal/Modal.example.tsx | 16 +++++++ packages/react/components/modal/index.ts | 3 +- packages/react/components/otp/Otp.example.tsx | 10 ++++ packages/react/components/otp/index.ts | 3 +- .../pagination/Pagination.example.tsx | 11 +++++ packages/react/components/pagination/index.ts | 3 +- .../components/popover/Popover.example.tsx | 13 ++++++ packages/react/components/popover/index.ts | 4 +- .../react/components/price/Price.example.tsx | 13 ++++++ packages/react/components/price/index.ts | 3 +- .../components/progress/Progress.example.tsx | 20 ++++++++ packages/react/components/progress/index.ts | 3 +- .../react/components/radio/Radio.example.tsx | 29 ++++++++++++ packages/react/components/radio/index.ts | 3 +- .../react/components/range/Range.example.tsx | 20 ++++++++ packages/react/components/range/index.ts | 3 +- .../react/components/rows/Rows.example.tsx | 34 ++++++++++++++ packages/react/components/rows/index.ts | 3 +- .../components/section/Section.example.tsx | 24 ++++++++++ packages/react/components/section/index.ts | 3 +- .../SegmentControl.example.tsx | 22 +++++++++ .../react/components/segment-control/index.ts | 3 +- .../components/select/Select.example.tsx | 36 +++++++++++++++ packages/react/components/select/index.ts | 3 +- .../components/spacer/Spacer.example.tsx | 21 +++++++++ packages/react/components/spacer/index.ts | 3 +- .../components/stepper/Stepper.example.tsx | 32 +++++++++++++ packages/react/components/stepper/index.ts | 3 +- .../components/sticker/Sticker.example.tsx | 9 ++++ packages/react/components/sticker/index.ts | 3 +- .../components/switch/Switch.example.tsx | 11 +++++ packages/react/components/switch/index.ts | 3 +- .../react/components/table/Table.example.tsx | 46 +++++++++++++++++++ packages/react/components/table/index.ts | 3 +- .../react/components/tabs/Tabs.example.tsx | 27 +++++++++++ packages/react/components/tabs/index.ts | 3 +- packages/react/components/tag/Tag.example.tsx | 15 ++++++ packages/react/components/tag/index.ts | 3 +- .../react/components/text/Text.example.tsx | 16 +++++++ packages/react/components/text/index.tsx | 3 +- .../components/textarea/Textarea.example.tsx | 13 ++++++ .../components/timeline/Timeline.example.tsx | 43 +++++++++++++++++ packages/react/components/timeline/index.ts | 3 +- .../react/components/title/Title.example.tsx | 21 +++++++++ packages/react/components/title/index.ts | 3 +- 71 files changed, 852 insertions(+), 37 deletions(-) create mode 100644 packages/react/components/checkbox/Checkbox.example.tsx create mode 100644 packages/react/components/chips/Chips.example.tsx create mode 100644 packages/react/components/columns/Columns.example.tsx create mode 100644 packages/react/components/container/Container.example.tsx create mode 100644 packages/react/components/countdown/Countdown.example.tsx create mode 100644 packages/react/components/divider/Divider.example.tsx create mode 100644 packages/react/components/fab/Fab.example.tsx create mode 100644 packages/react/components/hero/Hero.example.tsx create mode 100644 packages/react/components/icon/Icon.example.tsx create mode 100644 packages/react/components/image/Image.example.tsx create mode 100644 packages/react/components/input/Input.example.tsx create mode 100644 packages/react/components/link/Link.example.tsx create mode 100644 packages/react/components/list/List.example.tsx create mode 100644 packages/react/components/modal/Modal.example.tsx create mode 100644 packages/react/components/otp/Otp.example.tsx create mode 100644 packages/react/components/pagination/Pagination.example.tsx create mode 100644 packages/react/components/popover/Popover.example.tsx create mode 100644 packages/react/components/price/Price.example.tsx create mode 100644 packages/react/components/progress/Progress.example.tsx create mode 100644 packages/react/components/radio/Radio.example.tsx create mode 100644 packages/react/components/range/Range.example.tsx create mode 100644 packages/react/components/rows/Rows.example.tsx create mode 100644 packages/react/components/section/Section.example.tsx create mode 100644 packages/react/components/segment-control/SegmentControl.example.tsx create mode 100644 packages/react/components/select/Select.example.tsx create mode 100644 packages/react/components/spacer/Spacer.example.tsx create mode 100644 packages/react/components/stepper/Stepper.example.tsx create mode 100644 packages/react/components/sticker/Sticker.example.tsx create mode 100644 packages/react/components/switch/Switch.example.tsx create mode 100644 packages/react/components/table/Table.example.tsx create mode 100644 packages/react/components/tabs/Tabs.example.tsx create mode 100644 packages/react/components/tag/Tag.example.tsx create mode 100644 packages/react/components/text/Text.example.tsx create mode 100644 packages/react/components/textarea/Textarea.example.tsx create mode 100644 packages/react/components/timeline/Timeline.example.tsx create mode 100644 packages/react/components/title/Title.example.tsx diff --git a/packages/react/components/checkbox/Checkbox.example.tsx b/packages/react/components/checkbox/Checkbox.example.tsx new file mode 100644 index 00000000..4dab2786 --- /dev/null +++ b/packages/react/components/checkbox/Checkbox.example.tsx @@ -0,0 +1,28 @@ +import React from 'react' +import Checkbox from '@/components/checkbox/Checkbox' + +const CheckboxExample: React.ReactNode = <> + <Checkbox + label="On peut me cocher grâce au controls ↓ " + name="checkbox1" + onChange={function noRefCheck(){}} + onClick={function noRefCheck(){}} + value="default value 1" + /> + <Checkbox + checked + label="Je suis cochée" + name="checkbox2" + onClick={function noRefCheck(){}} + value="default value 2" + /> + <Checkbox + disabled + label="Je suis disabled" + name="checkbox3" + onClick={function noRefCheck(){}} + value="default value 3" + /> +</> + +export default CheckboxExample; diff --git a/packages/react/components/checkbox/index.ts b/packages/react/components/checkbox/index.ts index e2612932..de213382 100644 --- a/packages/react/components/checkbox/index.ts +++ b/packages/react/components/checkbox/index.ts @@ -1,3 +1,4 @@ import Checkbox from './Checkbox' +import CheckboxExample from './Checkbox.example' -export { Checkbox } +export { Checkbox, CheckboxExample } diff --git a/packages/react/components/chips/Chips.example.tsx b/packages/react/components/chips/Chips.example.tsx new file mode 100644 index 00000000..a3ba3f47 --- /dev/null +++ b/packages/react/components/chips/Chips.example.tsx @@ -0,0 +1,40 @@ +import React from 'react' +import { Text } from '@/components/text' +import {Chips, ChipsList} from './index' + +const ChipsExample: React.ReactNode = <> + <Text> + Exemple de selection unique : + </Text> + <ChipsList> + <Chips + active + onClick={function noRefCheck(){}} + > + Chips du panel de controls + </Chips> + <Chips + onClick={function noRefCheck(){}} + > + Chips 2 + </Chips> + <Chips + active + onClick={function noRefCheck(){}} + > + Chips 3 + </Chips> + <Chips onClick={function noRefCheck(){}}> + Chips 4 + </Chips> + <Chips + active + disabled + onClick={function noRefCheck(){}} + > + Chips disabled + </Chips> + </ChipsList> +</> + +export default ChipsExample; diff --git a/packages/react/components/chips/index.ts b/packages/react/components/chips/index.ts index de5845a9..67f87bd9 100644 --- a/packages/react/components/chips/index.ts +++ b/packages/react/components/chips/index.ts @@ -1,4 +1,5 @@ import Chips from './Chips' import ChipsList from './list/ChipsList' +import ChipsExample from './Chips.example' -export { Chips, ChipsList } +export { Chips, ChipsList, ChipsExample } diff --git a/packages/react/components/columns/Columns.example.tsx b/packages/react/components/columns/Columns.example.tsx new file mode 100644 index 00000000..0e6dd772 --- /dev/null +++ b/packages/react/components/columns/Columns.example.tsx @@ -0,0 +1,30 @@ +import React from 'react' +import { Columns, ColumnsItem } from './index' +import { Title } from '@/components/title' +import { Box } from '@/components/box' + +const ColumnsExample: React.ReactNode = <Columns> + <ColumnsItem> + <Box flat> + <Title level="TWO"> + Column + + + + + + + Column + + + + + + + Column + + + + + +export default ColumnsExample; diff --git a/packages/react/components/columns/index.ts b/packages/react/components/columns/index.ts index d1ce559c..9e88d798 100644 --- a/packages/react/components/columns/index.ts +++ b/packages/react/components/columns/index.ts @@ -1,4 +1,5 @@ import Columns from './Columns' import ColumnsItem from './item' +import ColumnsExample from './Columns.example' -export { Columns, ColumnsItem } +export { Columns, ColumnsItem, ColumnsExample } diff --git a/packages/react/components/container/Container.example.tsx b/packages/react/components/container/Container.example.tsx new file mode 100644 index 00000000..0a441f0a --- /dev/null +++ b/packages/react/components/container/Container.example.tsx @@ -0,0 +1,15 @@ +import React from 'react' + +import { Box } from '@/components/box' +import { Text } from '@/components/text' +import { Container } from './index' + +const ContainerExample: React.ReactNode = + + + Je suis une box dans un container + + + + +export default ContainerExample; diff --git a/packages/react/components/container/index.ts b/packages/react/components/container/index.ts index d7b8b4b1..4903ea31 100644 --- a/packages/react/components/container/index.ts +++ b/packages/react/components/container/index.ts @@ -1,3 +1,4 @@ import Container from './Container' +import ContainerExample from './Container.example' -export { Container } +export { Container, ContainerExample } diff --git a/packages/react/components/countdown/Countdown.example.tsx b/packages/react/components/countdown/Countdown.example.tsx new file mode 100644 index 00000000..40b2d019 --- /dev/null +++ b/packages/react/components/countdown/Countdown.example.tsx @@ -0,0 +1,7 @@ +import React from 'react' +import { Countdown } from './index' + + +const CountdownExample: React.ReactNode = + +export default CountdownExample; diff --git a/packages/react/components/countdown/index.ts b/packages/react/components/countdown/index.ts index 9240dcbd..c6731f6f 100644 --- a/packages/react/components/countdown/index.ts +++ b/packages/react/components/countdown/index.ts @@ -1,4 +1,5 @@ import Countdown from "./Countdown" import { CountdownFormat, CountdownUnite } from "./CountdownEnum" +import CountdownExample from './Countdown.example' -export { Countdown, CountdownFormat, CountdownUnite } +export { Countdown, CountdownFormat, CountdownUnite, CountdownExample } diff --git a/packages/react/components/divider/Divider.example.tsx b/packages/react/components/divider/Divider.example.tsx new file mode 100644 index 00000000..87c5fb4b --- /dev/null +++ b/packages/react/components/divider/Divider.example.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import { Divider } from './index' + + +const DividerExample: React.ReactNode = + +export default DividerExample; diff --git a/packages/react/components/divider/index.ts b/packages/react/components/divider/index.ts index b7d02c76..0da06b62 100644 --- a/packages/react/components/divider/index.ts +++ b/packages/react/components/divider/index.ts @@ -1,3 +1,4 @@ import Divider from './Divider' +import DividerExample from './Divider.example' -export { Divider } +export { Divider, DividerExample } diff --git a/packages/react/components/fab/Fab.example.tsx b/packages/react/components/fab/Fab.example.tsx new file mode 100644 index 00000000..e5eade4f --- /dev/null +++ b/packages/react/components/fab/Fab.example.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import { Fab } from './index' + + +const FabExample: React.ReactNode = + Ecrire + +export default FabExample; diff --git a/packages/react/components/fab/index.ts b/packages/react/components/fab/index.ts index d27492d3..ed0145dc 100644 --- a/packages/react/components/fab/index.ts +++ b/packages/react/components/fab/index.ts @@ -1,3 +1,4 @@ import Fab from "./Fab" +import FabExample from './Fab.example' -export { Fab } +export { Fab, FabExample } diff --git a/packages/react/components/hero/Hero.example.tsx b/packages/react/components/hero/Hero.example.tsx new file mode 100644 index 00000000..e45b1e03 --- /dev/null +++ b/packages/react/components/hero/Hero.example.tsx @@ -0,0 +1,33 @@ +import React from 'react' +import { Hero } from './index' +import { Container } from '@/components/container' +import { Title } from '@/components/title' +import { Button } from '@/components/button' + +const HeroExample: React.ReactNode = + + + Bonjour Michel + + + Fugiat velit dolor ad adipisicing id quis enim cupidatat Lorem dolore aute excepteur tempor. + + + + + +export default HeroExample diff --git a/packages/react/components/hero/index.ts b/packages/react/components/hero/index.ts index 6e06243d..e7a0ed34 100644 --- a/packages/react/components/hero/index.ts +++ b/packages/react/components/hero/index.ts @@ -1,3 +1,4 @@ import Hero from './Hero' +import HeroExample from './Hero.example' -export { Hero } +export { Hero, HeroExample } diff --git a/packages/react/components/icon/Icon.example.tsx b/packages/react/components/icon/Icon.example.tsx new file mode 100644 index 00000000..aa112329 --- /dev/null +++ b/packages/react/components/icon/Icon.example.tsx @@ -0,0 +1,30 @@ +import React from 'react' +import { Icon } from './index' + + + +const IconExample: React.ReactNode = + <> + + + + + +export default IconExample; diff --git a/packages/react/components/icon/index.ts b/packages/react/components/icon/index.ts index c928d944..d6ccb069 100644 --- a/packages/react/components/icon/index.ts +++ b/packages/react/components/icon/index.ts @@ -1,6 +1,6 @@ import Icon from './Icon' - +import IconExample from './Icon.example' export * from './IconEnum' export * from './IconNameEnum' -export { Icon } +export { Icon, IconExample } diff --git a/packages/react/components/image/Image.example.tsx b/packages/react/components/image/Image.example.tsx new file mode 100644 index 00000000..1b434d28 --- /dev/null +++ b/packages/react/components/image/Image.example.tsx @@ -0,0 +1,13 @@ +import React from 'react' +import { Image } from './index' + + + +const ImageExample: React.ReactNode = + image test + +export default ImageExample; diff --git a/packages/react/components/image/index.ts b/packages/react/components/image/index.ts index e9c1f3ac..3e635804 100644 --- a/packages/react/components/image/index.ts +++ b/packages/react/components/image/index.ts @@ -1,3 +1,4 @@ import Image from './Image' +import ImageExample from './Image.example' -export { Image } +export { Image, ImageExample } diff --git a/packages/react/components/input/Input.example.tsx b/packages/react/components/input/Input.example.tsx new file mode 100644 index 00000000..b2656bc2 --- /dev/null +++ b/packages/react/components/input/Input.example.tsx @@ -0,0 +1,17 @@ +import React from 'react' +import { Input } from './index' + + + +const InputExample: React.ReactNode = + + + +export default InputExample; diff --git a/packages/react/components/input/index.ts b/packages/react/components/input/index.ts index 00866989..16fe5c99 100644 --- a/packages/react/components/input/index.ts +++ b/packages/react/components/input/index.ts @@ -1,6 +1,7 @@ import Input from './Input' +import InputExample from './Input.example' export * from './InputEnum' export * from './InputProps' -export { Input } +export { Input, InputExample } diff --git a/packages/react/components/link/Link.example.tsx b/packages/react/components/link/Link.example.tsx new file mode 100644 index 00000000..b51e5a81 --- /dev/null +++ b/packages/react/components/link/Link.example.tsx @@ -0,0 +1,20 @@ +import React from 'react' +import { Link } from './index' +import { Divider } from '@/components/divider' +import { Text } from '@/components/text' + +const LinkExample: React.ReactNode = + <> + + {' '}Mot de passe oublié ? + + + + Je suis dans un paragraphe et ceci est un{' '} + + lien standard + + + + +export default LinkExample; diff --git a/packages/react/components/link/index.ts b/packages/react/components/link/index.ts index 9d8e6abc..ba204f11 100644 --- a/packages/react/components/link/index.ts +++ b/packages/react/components/link/index.ts @@ -1,3 +1,4 @@ import Link from './Link' +import LinkExample from './Link.example' -export { Link } +export { Link, LinkExample } diff --git a/packages/react/components/list/List.example.tsx b/packages/react/components/list/List.example.tsx new file mode 100644 index 00000000..491d4d9d --- /dev/null +++ b/packages/react/components/list/List.example.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import { List, ListItem } from './index' + +const ListExample: React.ReactNode = + + + Bonjour + + + Bonjour + + + Bonjour + + + +export default ListExample; diff --git a/packages/react/components/list/index.ts b/packages/react/components/list/index.ts index e88c1012..69509cac 100644 --- a/packages/react/components/list/index.ts +++ b/packages/react/components/list/index.ts @@ -1,5 +1,6 @@ import List from './List' +import ListExample from './List.example' export * from './item' export * from './ListProps' -export { List } +export { List, ListExample} diff --git a/packages/react/components/modal/Modal.example.tsx b/packages/react/components/modal/Modal.example.tsx new file mode 100644 index 00000000..7e38a57e --- /dev/null +++ b/packages/react/components/modal/Modal.example.tsx @@ -0,0 +1,16 @@ +import React from 'react' +import { Modal } from './index' + +const ModalExample: React.ReactNode = + + +export default ModalExample; diff --git a/packages/react/components/modal/index.ts b/packages/react/components/modal/index.ts index 4a9c3ad7..e0c962ff 100644 --- a/packages/react/components/modal/index.ts +++ b/packages/react/components/modal/index.ts @@ -1,7 +1,8 @@ import Modal from './Modal' import ModalFooter from './footer/ModalFooter' import ModalTitle from './title/ModalTitle' +import ModalExample from './Modal.example' export * from './ModalEnum' -export { Modal, ModalFooter, ModalTitle } +export { Modal, ModalFooter, ModalTitle, ModalExample } diff --git a/packages/react/components/otp/Otp.example.tsx b/packages/react/components/otp/Otp.example.tsx new file mode 100644 index 00000000..b6097bda --- /dev/null +++ b/packages/react/components/otp/Otp.example.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import { Otp } from './index' + +const OtpExample: React.ReactNode = + + + +export default OtpExample; diff --git a/packages/react/components/otp/index.ts b/packages/react/components/otp/index.ts index d747dbdb..96f32867 100644 --- a/packages/react/components/otp/index.ts +++ b/packages/react/components/otp/index.ts @@ -1,3 +1,4 @@ import Otp from './Otp' +import OtpExample from './Otp.example' -export { Otp } +export { Otp, OtpExample } diff --git a/packages/react/components/pagination/Pagination.example.tsx b/packages/react/components/pagination/Pagination.example.tsx new file mode 100644 index 00000000..dbfe969a --- /dev/null +++ b/packages/react/components/pagination/Pagination.example.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import { Pagination } from './index' + +const PaginationExample: React.ReactNode = + + + +export default PaginationExample; diff --git a/packages/react/components/pagination/index.ts b/packages/react/components/pagination/index.ts index ac3df8c5..ceb44043 100644 --- a/packages/react/components/pagination/index.ts +++ b/packages/react/components/pagination/index.ts @@ -1,5 +1,6 @@ import Pagination from './Pagination' +import PaginationExample from './Pagination.example' -export { Pagination } +export { Pagination, PaginationExample } export * from './PaginationEnum' diff --git a/packages/react/components/popover/Popover.example.tsx b/packages/react/components/popover/Popover.example.tsx new file mode 100644 index 00000000..86e9a756 --- /dev/null +++ b/packages/react/components/popover/Popover.example.tsx @@ -0,0 +1,13 @@ +import React from 'react' +import { Popover } from './index' +import { Button } from '@/components/button' + +const PopoverExample: React.ReactNode = + + + + + +export default PopoverExample; diff --git a/packages/react/components/popover/index.ts b/packages/react/components/popover/index.ts index 39845f77..b0d3cff8 100644 --- a/packages/react/components/popover/index.ts +++ b/packages/react/components/popover/index.ts @@ -1,5 +1,5 @@ import Popover from './Popover' - +import PopoverExample from './Popover.example' export * from './PopoverEnum' -export { Popover } +export { Popover, PopoverExample } diff --git a/packages/react/components/price/Price.example.tsx b/packages/react/components/price/Price.example.tsx new file mode 100644 index 00000000..16ae515d --- /dev/null +++ b/packages/react/components/price/Price.example.tsx @@ -0,0 +1,13 @@ +import React from 'react' +import { Price } from './index' + +const PriceExample: React.ReactNode = + + + +export default PriceExample; diff --git a/packages/react/components/price/index.ts b/packages/react/components/price/index.ts index a3b09d05..fc2dcb51 100644 --- a/packages/react/components/price/index.ts +++ b/packages/react/components/price/index.ts @@ -1,5 +1,6 @@ import Price from './Price' +import PriceExample from './Price.example' export * from './PriceEnum' -export { Price } +export { Price, PriceExample } diff --git a/packages/react/components/progress/Progress.example.tsx b/packages/react/components/progress/Progress.example.tsx new file mode 100644 index 00000000..a6c40274 --- /dev/null +++ b/packages/react/components/progress/Progress.example.tsx @@ -0,0 +1,20 @@ +import React from 'react' +import { Progress } from './index' + +const ProgressExample: React.ReactNode = + + <> + + + + +export default ProgressExample; diff --git a/packages/react/components/progress/index.ts b/packages/react/components/progress/index.ts index 2c08af66..ca0ba485 100644 --- a/packages/react/components/progress/index.ts +++ b/packages/react/components/progress/index.ts @@ -2,4 +2,5 @@ import Progress from './Progress' import ProgressItem from './item' import ProgressRadial from './radial' import ProgressRadialItem from './radial/item/ProgressRadialtem' -export { Progress, ProgressItem, ProgressRadial, ProgressRadialItem } +import ProgressExample from './Progress.example' +export { Progress, ProgressItem, ProgressRadial, ProgressRadialItem, ProgressExample } diff --git a/packages/react/components/radio/Radio.example.tsx b/packages/react/components/radio/Radio.example.tsx new file mode 100644 index 00000000..7d567657 --- /dev/null +++ b/packages/react/components/radio/Radio.example.tsx @@ -0,0 +1,29 @@ +import React from 'react' +import { Radio } from './index' + +const RadioExample: React.ReactNode = + <> + + + + + +export default RadioExample; diff --git a/packages/react/components/radio/index.ts b/packages/react/components/radio/index.ts index 7b21e159..e68e9240 100644 --- a/packages/react/components/radio/index.ts +++ b/packages/react/components/radio/index.ts @@ -1,4 +1,5 @@ import { RadioList } from './list' import Radio from './Radio' +import RadioExample from './Radio.example' -export { Radio, RadioList } +export { Radio, RadioList, RadioExample } diff --git a/packages/react/components/range/Range.example.tsx b/packages/react/components/range/Range.example.tsx new file mode 100644 index 00000000..6da4ece7 --- /dev/null +++ b/packages/react/components/range/Range.example.tsx @@ -0,0 +1,20 @@ +import React from 'react' +import { Range} from './index' + +const RangeExample: React.ReactNode = + + +export default RangeExample; diff --git a/packages/react/components/range/index.ts b/packages/react/components/range/index.ts index 1a2662c9..7da23602 100644 --- a/packages/react/components/range/index.ts +++ b/packages/react/components/range/index.ts @@ -1,3 +1,4 @@ import Range from './Range' +import RangeExample from './Range.example' -export { Range } +export { Range, RangeExample } diff --git a/packages/react/components/rows/Rows.example.tsx b/packages/react/components/rows/Rows.example.tsx new file mode 100644 index 00000000..094b6c71 --- /dev/null +++ b/packages/react/components/rows/Rows.example.tsx @@ -0,0 +1,34 @@ +import React from 'react' +import { RowItem, Rows } from './index' +import { Columns, ColumnsItem } from '@/components/columns' + +const RowsExample: React.ReactNode = + + + + + 1 + + + 2 + + + 3 + + + + + + + 4 + + + 5 + + + 6 + + + + +export default RowsExample; diff --git a/packages/react/components/rows/index.ts b/packages/react/components/rows/index.ts index 2eb2e52a..8ee034b8 100644 --- a/packages/react/components/rows/index.ts +++ b/packages/react/components/rows/index.ts @@ -1,4 +1,5 @@ import Rows from './Rows' import RowItem from './item' +import RowsExample from './Rows.example' -export { Rows, RowItem } +export { Rows, RowItem, RowsExample } diff --git a/packages/react/components/section/Section.example.tsx b/packages/react/components/section/Section.example.tsx new file mode 100644 index 00000000..a75b3dc3 --- /dev/null +++ b/packages/react/components/section/Section.example.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import { Section } from './index' +import { Title } from '@/components/title' + +const RowsExample: React.ReactNode = + <> +
+ + Premiére section + +
+
+ + Deuxiéme section + +
+
+ + Troisiéme section + +
+ + +export default RowsExample; diff --git a/packages/react/components/section/index.ts b/packages/react/components/section/index.ts index 4185833d..d6508345 100644 --- a/packages/react/components/section/index.ts +++ b/packages/react/components/section/index.ts @@ -1,3 +1,4 @@ import Section from './Section' +import SectionExample from './Section.example' -export { Section } +export { Section, SectionExample } diff --git a/packages/react/components/segment-control/SegmentControl.example.tsx b/packages/react/components/segment-control/SegmentControl.example.tsx new file mode 100644 index 00000000..e04667e4 --- /dev/null +++ b/packages/react/components/segment-control/SegmentControl.example.tsx @@ -0,0 +1,22 @@ +import React from 'react' +import { SegmentControl, SegmentControlItem } from './index' + +const RowsExample: React.ReactNode = + + + Appels + + + SMS + + + Équipements + + + Offres + + + +export default RowsExample diff --git a/packages/react/components/segment-control/index.ts b/packages/react/components/segment-control/index.ts index 916fd402..0f6fc573 100644 --- a/packages/react/components/segment-control/index.ts +++ b/packages/react/components/segment-control/index.ts @@ -1,4 +1,5 @@ import SegmentControl from './SegmentControl' import SegmentControlItem from './item' +import SegmentControlExample from './SegmentControl.example' -export { SegmentControl, SegmentControlItem } +export { SegmentControl, SegmentControlItem, SegmentControlExample } diff --git a/packages/react/components/select/Select.example.tsx b/packages/react/components/select/Select.example.tsx new file mode 100644 index 00000000..5c5e874b --- /dev/null +++ b/packages/react/components/select/Select.example.tsx @@ -0,0 +1,36 @@ +import React from 'react' +import { Select, SelectOption } from './index' + +const SelectExample: React.ReactNode = + + +export default SelectExample diff --git a/packages/react/components/select/index.ts b/packages/react/components/select/index.ts index 5506d7d0..fb344a18 100644 --- a/packages/react/components/select/index.ts +++ b/packages/react/components/select/index.ts @@ -1,4 +1,5 @@ import Select from './Select' import SelectOption from './option' +import SelectExample from './Select.example' -export { Select, SelectOption } +export { Select, SelectOption, SelectExample } diff --git a/packages/react/components/spacer/Spacer.example.tsx b/packages/react/components/spacer/Spacer.example.tsx new file mode 100644 index 00000000..7138152a --- /dev/null +++ b/packages/react/components/spacer/Spacer.example.tsx @@ -0,0 +1,21 @@ +import React from 'react' +import { Spacer, SpacerSize } from './index' +import { Tag } from '@/components/tag' + +const SpacerExample: React.ReactNode = + <> + + Play with the props{' '} + + size + + + + + Dans le pannel de contrôle ⬇ + + + +export default SpacerExample diff --git a/packages/react/components/spacer/index.ts b/packages/react/components/spacer/index.ts index 7536c197..b5137340 100644 --- a/packages/react/components/spacer/index.ts +++ b/packages/react/components/spacer/index.ts @@ -1,5 +1,6 @@ import Spacer from './Spacer' +import SpacerExample from './Spacer.example' export * from './SpacerEnum' -export { Spacer } +export { Spacer, SpacerExample } diff --git a/packages/react/components/stepper/Stepper.example.tsx b/packages/react/components/stepper/Stepper.example.tsx new file mode 100644 index 00000000..c7564315 --- /dev/null +++ b/packages/react/components/stepper/Stepper.example.tsx @@ -0,0 +1,32 @@ +import React from 'react' +import { Stepper, StepperStep } from './index' + +const StepperExample: React.ReactNode = + + + + + + + + +export default StepperExample diff --git a/packages/react/components/stepper/index.ts b/packages/react/components/stepper/index.ts index 0f72487c..b056cb89 100644 --- a/packages/react/components/stepper/index.ts +++ b/packages/react/components/stepper/index.ts @@ -1,6 +1,7 @@ import Stepper from './Stepper' import StepperStep from './step' +import StepperExample from './Stepper.example' export * from './step/StepperStepEnum' -export { Stepper, StepperStep } +export { Stepper, StepperStep, StepperExample } diff --git a/packages/react/components/sticker/Sticker.example.tsx b/packages/react/components/sticker/Sticker.example.tsx new file mode 100644 index 00000000..4824a2bb --- /dev/null +++ b/packages/react/components/sticker/Sticker.example.tsx @@ -0,0 +1,9 @@ +import React from 'react' +import { Sticker } from './index' + +const StickerExample: React.ReactNode = + + {' '}Code promo{' '} + + +export default StickerExample diff --git a/packages/react/components/sticker/index.ts b/packages/react/components/sticker/index.ts index 2c1e9f88..40d8d855 100644 --- a/packages/react/components/sticker/index.ts +++ b/packages/react/components/sticker/index.ts @@ -1,5 +1,6 @@ import Sticker from './Sticker' +import StickerExample from './Sticker.example' export * from './StickerEnum' -export { Sticker } +export { Sticker, StickerExample } diff --git a/packages/react/components/switch/Switch.example.tsx b/packages/react/components/switch/Switch.example.tsx new file mode 100644 index 00000000..6e5d09c1 --- /dev/null +++ b/packages/react/components/switch/Switch.example.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import { Switch } from './index' + +const SwitchExample: React.ReactNode = + + + +export default SwitchExample diff --git a/packages/react/components/switch/index.ts b/packages/react/components/switch/index.ts index bcf73d6f..703c86b7 100644 --- a/packages/react/components/switch/index.ts +++ b/packages/react/components/switch/index.ts @@ -1,3 +1,4 @@ import Switch from './Switch' +import SwitchExample from './Switch.example' -export { Switch } +export { Switch, SwitchExample } diff --git a/packages/react/components/table/Table.example.tsx b/packages/react/components/table/Table.example.tsx new file mode 100644 index 00000000..ff95e164 --- /dev/null +++ b/packages/react/components/table/Table.example.tsx @@ -0,0 +1,46 @@ +import React from 'react' +import { Table, TableTr, TableHead, TableTd, TableBody, TableTh } from './index' + +const TableExample: React.ReactNode = + + + + + + Title 1 + + + Title 2 + + + Title 3 + + + + + + + Donnée 1 + + + Donnée 2 + + + Donnée 3 + + + + + Donnée 4 + + + Donnée 5 + + + Donnée 6 + + + +
+ +export default TableExample diff --git a/packages/react/components/table/index.ts b/packages/react/components/table/index.ts index 2a64d46d..295d16cf 100644 --- a/packages/react/components/table/index.ts +++ b/packages/react/components/table/index.ts @@ -4,5 +4,6 @@ import TableBody from './body' import TableTh from './th' import TableTr from './tr' import TableTd from './td' +import TableExample from './Table.example' -export { Table, TableHead, TableBody, TableTr, TableTh, TableTd } +export { Table, TableHead, TableBody, TableTr, TableTh, TableTd, TableExample } diff --git a/packages/react/components/tabs/Tabs.example.tsx b/packages/react/components/tabs/Tabs.example.tsx new file mode 100644 index 00000000..8c22877c --- /dev/null +++ b/packages/react/components/tabs/Tabs.example.tsx @@ -0,0 +1,27 @@ +import React from 'react' +import { Tabs, TabsItem } from './index' + +const TabsExample: React.ReactNode = + + + + One + + + Two + + + Three + + + +export default TabsExample diff --git a/packages/react/components/tabs/index.ts b/packages/react/components/tabs/index.ts index ecc3aca2..4e163e2f 100644 --- a/packages/react/components/tabs/index.ts +++ b/packages/react/components/tabs/index.ts @@ -1,4 +1,5 @@ import Tabs from './Tabs' import TabsItem from './item' +import TabsExample from './Tabs.example' -export { Tabs, TabsItem } +export { Tabs, TabsItem, TabsExample } diff --git a/packages/react/components/tag/Tag.example.tsx b/packages/react/components/tag/Tag.example.tsx new file mode 100644 index 00000000..8bf08cf7 --- /dev/null +++ b/packages/react/components/tag/Tag.example.tsx @@ -0,0 +1,15 @@ +import React from 'react' +import { Tag, TagList } from './index' + +const TagExample: React.ReactNode = + + + + Play With me ! + + + +export default TagExample diff --git a/packages/react/components/tag/index.ts b/packages/react/components/tag/index.ts index e1a904b8..df1e5912 100644 --- a/packages/react/components/tag/index.ts +++ b/packages/react/components/tag/index.ts @@ -1,6 +1,7 @@ import Tag from './Tag' import TagList from './list' +import TagExample from './Tag.example' export * from './TagEnum' -export { Tag, TagList } +export { Tag, TagList, TagExample } diff --git a/packages/react/components/text/Text.example.tsx b/packages/react/components/text/Text.example.tsx new file mode 100644 index 00000000..69ae2459 --- /dev/null +++ b/packages/react/components/text/Text.example.tsx @@ -0,0 +1,16 @@ +import React from 'react' +import { Text } from './index' + +const TextExample: React.ReactNode = + + Ceci est mon paragraphe + + + + +export default TextExample diff --git a/packages/react/components/text/index.tsx b/packages/react/components/text/index.tsx index 1796b08f..20951fc2 100644 --- a/packages/react/components/text/index.tsx +++ b/packages/react/components/text/index.tsx @@ -1,5 +1,6 @@ import Text from './Text' +import TextExample from './Text.example' export * from './TextEnum' -export { Text } +export { Text, TextExample } diff --git a/packages/react/components/textarea/Textarea.example.tsx b/packages/react/components/textarea/Textarea.example.tsx new file mode 100644 index 00000000..a0bb07b4 --- /dev/null +++ b/packages/react/components/textarea/Textarea.example.tsx @@ -0,0 +1,13 @@ +import React from 'react' +import { Textarea } from './index' + +const TextareaExample: React.ReactNode = +