@byline/ui 6.8.0 → 6.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -5
- package/package.json +11 -2
- package/src/components/accordion/accordion.stories.tsx +121 -0
- package/src/components/animation/fade-in-lift.stories.tsx +80 -0
- package/src/components/avatar/avatar.stories.tsx +39 -0
- package/src/components/badge/badge.stories.tsx +41 -0
- package/src/components/button/button-group.stories.tsx +44 -0
- package/src/components/button/button-intents.stories.tsx +97 -0
- package/src/components/button/button-overrides.stories.tsx +59 -0
- package/src/components/button/button-test.stories.tsx +59 -0
- package/src/components/button/button-variants.stories.tsx +57 -0
- package/src/components/button/combo-buttons.stories.tsx +82 -0
- package/src/components/button/control-buttons.stories.tsx +60 -0
- package/src/components/button/copy-button.stories.tsx +50 -0
- package/src/components/button/icon-button.stories.tsx +140 -0
- package/src/components/card/card.stories.tsx +60 -0
- package/src/components/chips/chip.stories.tsx +120 -0
- package/src/components/container/container.stories.tsx +35 -0
- package/src/components/dropdown/dropdown.stories.tsx +108 -0
- package/src/components/hamburger/hamburger.stories.tsx +33 -0
- package/src/components/inputs/autocomplete.stories.tsx +189 -0
- package/src/components/inputs/calendar.stories.tsx +141 -0
- package/src/components/inputs/checkbox-group.stories.tsx +43 -0
- package/src/components/inputs/checkbox.stories.tsx +284 -0
- package/src/components/inputs/input.stories.tsx +189 -0
- package/src/components/inputs/radio-group.stories.tsx +73 -0
- package/src/components/inputs/select.stories.tsx +70 -0
- package/src/components/inputs/text-area.stories.tsx +45 -0
- package/src/components/notifications/alert.stories.tsx +75 -0
- package/src/components/notifications/toast.stories.tsx +40 -0
- package/src/components/pager/pagination.stories.tsx +189 -0
- package/src/components/scroll-area/scroll-area.stories.tsx +33 -0
- package/src/components/shimmer/shimmer.stories.tsx +24 -0
- package/src/components/table/table.stories.tsx +94 -0
- package/src/components/tabs/tabs.stories.tsx +47 -0
- package/src/components/tooltip/tooltip.stories.tsx +56 -0
- package/src/icons/icons.stories.tsx +67 -0
- package/src/icons/index.stories.tsx +24 -0
- package/src/loaders/loaders.stories.tsx +188 -0
- package/src/styles/base/colors.stories.tsx +671 -0
- package/src/styles/theme/theme.stories.tsx +40 -0
- package/src/styles/typography/article.stories.tsx +39 -0
- package/src/styles/typography/code.stories.tsx +73 -0
- package/src/styles/typography/default.stories.tsx +49 -0
- package/src/styles/typography/lists.stories.tsx +48 -0
- package/src/styles/typography/quote.stories.tsx +38 -0
- package/src/widgets/datepicker/datepicker.stories.tsx +42 -0
- package/src/widgets/drawer/drawer.stories.tsx +281 -0
- package/src/widgets/modal/modal.stories.tsx +63 -0
- package/src/widgets/search/search.stories.tsx +18 -0
- package/src/widgets/timeline/timeline.stories.tsx +50 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type React from 'react'
|
|
2
|
+
|
|
3
|
+
import type { Meta } from '@storybook/react-vite'
|
|
4
|
+
|
|
5
|
+
import { Timeline as TimelineComponent } from './timeline.js'
|
|
6
|
+
|
|
7
|
+
const meta: Meta = {
|
|
8
|
+
/* 👇 The title prop is optional.
|
|
9
|
+
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
|
|
10
|
+
* to learn how to generate automatic titles
|
|
11
|
+
*/
|
|
12
|
+
title: 'Widgets/Timeline',
|
|
13
|
+
component: TimelineComponent,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default meta
|
|
17
|
+
|
|
18
|
+
export const Default = (): React.JSX.Element => (
|
|
19
|
+
<div
|
|
20
|
+
style={{
|
|
21
|
+
maxWidth: '400px',
|
|
22
|
+
margin: '2rem 0 24px',
|
|
23
|
+
display: 'flex',
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
}}
|
|
26
|
+
>
|
|
27
|
+
<TimelineComponent>
|
|
28
|
+
<TimelineComponent.Root>
|
|
29
|
+
<TimelineComponent.Item>
|
|
30
|
+
<TimelineComponent.Icon />
|
|
31
|
+
<TimelineComponent.Heading>Website Launch</TimelineComponent.Heading>
|
|
32
|
+
<TimelineComponent.Date>September 2023</TimelineComponent.Date>
|
|
33
|
+
<TimelineComponent.Content>Some cool content here....</TimelineComponent.Content>
|
|
34
|
+
</TimelineComponent.Item>
|
|
35
|
+
<TimelineComponent.Item>
|
|
36
|
+
<TimelineComponent.Icon />
|
|
37
|
+
<TimelineComponent.Heading>Website Launch</TimelineComponent.Heading>
|
|
38
|
+
<TimelineComponent.Date>September 2023</TimelineComponent.Date>
|
|
39
|
+
<TimelineComponent.Content>Some cool content here....</TimelineComponent.Content>
|
|
40
|
+
</TimelineComponent.Item>
|
|
41
|
+
<TimelineComponent.Item>
|
|
42
|
+
<TimelineComponent.Icon />
|
|
43
|
+
<TimelineComponent.Heading>Website Launch</TimelineComponent.Heading>
|
|
44
|
+
<TimelineComponent.Date>September 2023</TimelineComponent.Date>
|
|
45
|
+
<TimelineComponent.Content>Some cool content here....</TimelineComponent.Content>
|
|
46
|
+
</TimelineComponent.Item>
|
|
47
|
+
</TimelineComponent.Root>
|
|
48
|
+
</TimelineComponent>
|
|
49
|
+
</div>
|
|
50
|
+
)
|