diff --git a/apps/docs/content/components/accordion.mdx b/apps/docs/content/components/accordion.mdx index ce6848a3..89856e39 100644 --- a/apps/docs/content/components/accordion.mdx +++ b/apps/docs/content/components/accordion.mdx @@ -32,6 +32,8 @@ import { Accordion } from '@pillar-ui/core' ### Collapsible +Employ the collapsible prop to enable the closing of all items. + ### Variants diff --git a/apps/docs/content/components/timeline.mdx b/apps/docs/content/components/timeline.mdx index 7809a90d..3b4ea143 100644 --- a/apps/docs/content/components/timeline.mdx +++ b/apps/docs/content/components/timeline.mdx @@ -40,10 +40,16 @@ import { Timeline } from '@pillar-ui/core' ### Variant - + -### Bullet +### Line + + + + + +### Content - + diff --git a/apps/docs/src/app/_components/playground/timeline/timelineColor.tsx b/apps/docs/src/app/_components/playground/timeline/timelineColor.tsx index 239ee174..4d2f7623 100644 --- a/apps/docs/src/app/_components/playground/timeline/timelineColor.tsx +++ b/apps/docs/src/app/_components/playground/timeline/timelineColor.tsx @@ -1,33 +1,26 @@ -import { Timeline, TimelineProps, Heading, Text, TimelineItem } from '@pillar-ui/core' +import { Timeline, TimelineProps, Heading, Text, TimelineItem, Paper } from '@pillar-ui/core' import React from 'react' +const items = Array.from({ length: 3 }) + const TimelineBase = (props: Omit) => { return ( - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, - quae. - - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, - quae. - - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, - quae. - - + {items.map((_, index) => ( + + + Hello + + 13 May 2021 + + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! + Nihil, quae. + + + + ))} ) } diff --git a/apps/docs/src/app/_components/playground/timeline/timelineContent.tsx b/apps/docs/src/app/_components/playground/timeline/timelineContent.tsx new file mode 100644 index 00000000..e9bae102 --- /dev/null +++ b/apps/docs/src/app/_components/playground/timeline/timelineContent.tsx @@ -0,0 +1,45 @@ +import { Timeline, TimelineProps, Heading, Text, Avatar, TimelineItem, Alert, Paper } from '@pillar-ui/core' +import { Cross, Pencil, UserInfo, X } from '@pillar-ui/icons' +import React from 'react' + +const Item = (props: any) => { + return ( + + + Nice to Meet You + + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, + quae. + + + + ) +} + +export const TimelineContent = () => { + return ( + <> + + + + + + + + + + + + + } /> + } /> + } /> + + + ) +} diff --git a/apps/docs/src/app/_components/playground/timeline/timelineCustomBullet.tsx b/apps/docs/src/app/_components/playground/timeline/timelineCustomBullet.tsx deleted file mode 100644 index 187ef94b..00000000 --- a/apps/docs/src/app/_components/playground/timeline/timelineCustomBullet.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { Timeline, TimelineProps, Heading, Text, Avatar, TimelineItem } from '@pillar-ui/core' -import { Cross } from '@pillar-ui/icons' -import React from 'react' - -export const TimelineCustomBullet = () => { - return ( - <> - - }> - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! - Nihil, quae. - - - } - > - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! - Nihil, quae. - - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! - Nihil, quae. - - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! - Nihil, quae. - - - - - ) -} diff --git a/apps/docs/src/app/_components/playground/timeline/timelineLine.tsx b/apps/docs/src/app/_components/playground/timeline/timelineLine.tsx new file mode 100644 index 00000000..e9a33abb --- /dev/null +++ b/apps/docs/src/app/_components/playground/timeline/timelineLine.tsx @@ -0,0 +1,77 @@ +import { Timeline, Paper, TimelineProps, Heading, Text, TimelineItem } from '@pillar-ui/core' +import React from 'react' + +const TimelineBase = (props: Omit) => { + return ( + + + Hello + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, + quae. + + + + Hello + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, + quae. + + + + Hello + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, + quae. + + + + ) +} + +export const TimelineLine = () => { + return ( + <> + + + + + + Hello + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! + Nihil, quae. + + + + Hello + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! + Nihil, quae. + + + + Hello + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! + Nihil, quae. + + + + Hello + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! + Nihil, quae. + + + + + ) +} diff --git a/apps/docs/src/app/_components/playground/timeline/timelineSize.tsx b/apps/docs/src/app/_components/playground/timeline/timelineSize.tsx index 1cd09238..9737261f 100644 --- a/apps/docs/src/app/_components/playground/timeline/timelineSize.tsx +++ b/apps/docs/src/app/_components/playground/timeline/timelineSize.tsx @@ -1,33 +1,21 @@ import { Timeline, Paper, TimelineProps, Heading, Text, TimelineItem } from '@pillar-ui/core' import React from 'react' -const TimelineBase = (props: Omit) => { +const items = Array.from({ length: 3 }) + +const TimelineBase = ({ size }: Omit) => { return ( - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, - quae. - - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, - quae. - - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, - quae. - - + + {items.map((_, index) => ( + + Hello + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! + Nihil, quae. + + + ))} ) } diff --git a/apps/docs/src/app/_components/playground/timeline/timelineVariant.tsx b/apps/docs/src/app/_components/playground/timeline/timelineVariant.tsx index 47c5e4be..ad2ae69a 100644 --- a/apps/docs/src/app/_components/playground/timeline/timelineVariant.tsx +++ b/apps/docs/src/app/_components/playground/timeline/timelineVariant.tsx @@ -1,33 +1,21 @@ -import { Timeline, Paper, TimelineProps, Heading, Text, TimelineItem } from '@pillar-ui/core' +import { Timeline, TimelineProps, Heading, Text, TimelineItem } from '@pillar-ui/core' import React from 'react' +const items = Array.from({ length: 3 }) + const TimelineBase = (props: Omit) => { return ( - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, - quae. - - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, - quae. - - - - Hello - - Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. - Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! Nihil, - quae. - - + + {items.map((_, index) => ( + + Hello + + Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem laboriosam cumque voluptatem magnam ad. + Aspernatur explicabo a, est similique sed debitis eveniet alias repellendus doloremque nobis nisi odit! + Nihil, quae. + + + ))} ) } @@ -35,9 +23,11 @@ const TimelineBase = (props: Omit) => { export const TimelineVariant = () => { return ( <> - - - + + + + + ) }