@byline/ui 6.8.0 → 6.10.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.
Files changed (51) hide show
  1. package/README.md +43 -5
  2. package/package.json +16 -7
  3. package/src/components/accordion/accordion.stories.tsx +121 -0
  4. package/src/components/animation/fade-in-lift.stories.tsx +80 -0
  5. package/src/components/avatar/avatar.stories.tsx +39 -0
  6. package/src/components/badge/badge.stories.tsx +41 -0
  7. package/src/components/button/button-group.stories.tsx +44 -0
  8. package/src/components/button/button-intents.stories.tsx +97 -0
  9. package/src/components/button/button-overrides.stories.tsx +59 -0
  10. package/src/components/button/button-test.stories.tsx +59 -0
  11. package/src/components/button/button-variants.stories.tsx +57 -0
  12. package/src/components/button/combo-buttons.stories.tsx +82 -0
  13. package/src/components/button/control-buttons.stories.tsx +60 -0
  14. package/src/components/button/copy-button.stories.tsx +50 -0
  15. package/src/components/button/icon-button.stories.tsx +140 -0
  16. package/src/components/card/card.stories.tsx +60 -0
  17. package/src/components/chips/chip.stories.tsx +120 -0
  18. package/src/components/container/container.stories.tsx +35 -0
  19. package/src/components/dropdown/dropdown.stories.tsx +108 -0
  20. package/src/components/hamburger/hamburger.stories.tsx +33 -0
  21. package/src/components/inputs/autocomplete.stories.tsx +189 -0
  22. package/src/components/inputs/calendar.stories.tsx +141 -0
  23. package/src/components/inputs/checkbox-group.stories.tsx +43 -0
  24. package/src/components/inputs/checkbox.stories.tsx +284 -0
  25. package/src/components/inputs/input.stories.tsx +189 -0
  26. package/src/components/inputs/radio-group.stories.tsx +73 -0
  27. package/src/components/inputs/select.stories.tsx +70 -0
  28. package/src/components/inputs/text-area.stories.tsx +45 -0
  29. package/src/components/notifications/alert.stories.tsx +75 -0
  30. package/src/components/notifications/toast.stories.tsx +40 -0
  31. package/src/components/pager/pagination.stories.tsx +189 -0
  32. package/src/components/scroll-area/scroll-area.stories.tsx +33 -0
  33. package/src/components/shimmer/shimmer.stories.tsx +24 -0
  34. package/src/components/table/table.stories.tsx +94 -0
  35. package/src/components/tabs/tabs.stories.tsx +47 -0
  36. package/src/components/tooltip/tooltip.stories.tsx +56 -0
  37. package/src/icons/icons.stories.tsx +67 -0
  38. package/src/icons/index.stories.tsx +24 -0
  39. package/src/loaders/loaders.stories.tsx +188 -0
  40. package/src/styles/base/colors.stories.tsx +671 -0
  41. package/src/styles/theme/theme.stories.tsx +40 -0
  42. package/src/styles/typography/article.stories.tsx +39 -0
  43. package/src/styles/typography/code.stories.tsx +73 -0
  44. package/src/styles/typography/default.stories.tsx +49 -0
  45. package/src/styles/typography/lists.stories.tsx +48 -0
  46. package/src/styles/typography/quote.stories.tsx +38 -0
  47. package/src/widgets/datepicker/datepicker.stories.tsx +42 -0
  48. package/src/widgets/drawer/drawer.stories.tsx +281 -0
  49. package/src/widgets/modal/modal.stories.tsx +63 -0
  50. package/src/widgets/search/search.stories.tsx +18 -0
  51. 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
+ )