diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 38db977..fe1830a 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -50,6 +50,7 @@ function getComponents() { { text: 'Table', link: 'components/table' }, { text: 'Tabs', link: '/components/tabs' }, { text: 'ListGroup', link: 'components/list-group' }, + { text: 'Timeline', link: 'components/timeline' }, { text: 'Toast', link: 'components/toast' }, { text: 'Tooltip', link: 'components/tooltip' }, { text: 'Modal', link: 'components/modal' }, @@ -58,7 +59,6 @@ function getComponents() { { text: '- Footer', link: 'components/footer' }, { text: '- Pagination', link: 'components/pagination' }, { text: '- Sidebar', link: 'components/sidebar' }, - { text: '- Timeline', link: 'components/timeline' }, ] } diff --git a/docs/components/timeline.md b/docs/components/timeline.md index 6516756..3248432 100644 --- a/docs/components/timeline.md +++ b/docs/components/timeline.md @@ -1,15 +1,194 @@ # Vue Timeline Component - Flowbite -```vue - - -``` +## Default timeline usage + +```vue + + + +``` +## Timeline with icons +You can add icons by passing svg icons as slot to `` +
+ + + +```vue + + + +``` +## Timeline with icons +`horizontal` prop makes timeline horizontal +
+ + + +```vue + + + +``` diff --git a/docs/components/timeline/examples/TimelineExample.vue b/docs/components/timeline/examples/TimelineExample.vue index 2661e72..436b706 100644 --- a/docs/components/timeline/examples/TimelineExample.vue +++ b/docs/components/timeline/examples/TimelineExample.vue @@ -1,8 +1,52 @@ diff --git a/docs/components/timeline/examples/TimelineHorizontalExample.vue b/docs/components/timeline/examples/TimelineHorizontalExample.vue new file mode 100644 index 0000000..6c30cb4 --- /dev/null +++ b/docs/components/timeline/examples/TimelineHorizontalExample.vue @@ -0,0 +1,55 @@ + + diff --git a/docs/components/timeline/examples/TimelineWithIconsExample.vue b/docs/components/timeline/examples/TimelineWithIconsExample.vue new file mode 100644 index 0000000..2d8518d --- /dev/null +++ b/docs/components/timeline/examples/TimelineWithIconsExample.vue @@ -0,0 +1,55 @@ + + diff --git a/src/components/Timeline/Timeline.vue b/src/components/Timeline/Timeline.vue index 6f25935..f6a803f 100644 --- a/src/components/Timeline/Timeline.vue +++ b/src/components/Timeline/Timeline.vue @@ -1,39 +1,26 @@ diff --git a/src/components/Timeline/TimelineBody.vue b/src/components/Timeline/TimelineBody.vue new file mode 100644 index 0000000..d9c5bec --- /dev/null +++ b/src/components/Timeline/TimelineBody.vue @@ -0,0 +1,3 @@ + diff --git a/src/components/Timeline/TimelineContent.vue b/src/components/Timeline/TimelineContent.vue new file mode 100644 index 0000000..7c27116 --- /dev/null +++ b/src/components/Timeline/TimelineContent.vue @@ -0,0 +1,11 @@ + + + diff --git a/src/components/Timeline/TimelineItem.vue b/src/components/Timeline/TimelineItem.vue new file mode 100644 index 0000000..1d97666 --- /dev/null +++ b/src/components/Timeline/TimelineItem.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/components/Timeline/TimelinePoint.vue b/src/components/Timeline/TimelinePoint.vue new file mode 100644 index 0000000..61e195f --- /dev/null +++ b/src/components/Timeline/TimelinePoint.vue @@ -0,0 +1,55 @@ + + + diff --git a/src/components/Timeline/TimelineTime.vue b/src/components/Timeline/TimelineTime.vue new file mode 100644 index 0000000..03eab9a --- /dev/null +++ b/src/components/Timeline/TimelineTime.vue @@ -0,0 +1,5 @@ + diff --git a/src/components/Timeline/TimelineTitle.vue b/src/components/Timeline/TimelineTitle.vue new file mode 100644 index 0000000..e39664e --- /dev/null +++ b/src/components/Timeline/TimelineTitle.vue @@ -0,0 +1,5 @@ + diff --git a/src/index.ts b/src/index.ts index 466a0a8..1a34345 100644 --- a/src/index.ts +++ b/src/index.ts @@ -38,6 +38,12 @@ export { default as TableHeadCell } from './components/Table/TableHeadCell.vue' export { default as TableRow } from './components/Table/TableRow.vue' export { default as TableCell } from './components/Table/TableCell.vue' export { default as Timeline } from './components/Timeline/Timeline.vue' +export { default as TimelineItem } from './components/Timeline/TimelineItem.vue' +export { default as TimelinePoint } from './components/Timeline/TimelinePoint.vue' +export { default as TimelineContent } from './components/Timeline/TimelineContent.vue' +export { default as TimelineTime } from './components/Timeline/TimelineTime.vue' +export { default as TimelineTitle } from './components/Timeline/TimelineTitle.vue' +export { default as TimelineBody } from './components/Timeline/TimelineBody.vue' export { default as Toast } from './components/Toast/Toast.vue' export { default as ToastProvider } from './components/Toast/components/ToastProvider/ToastProvider.vue' export { default as Tooltip } from './components/Tooltip/Tooltip.vue'