trepur_components 0.2.1 → 0.2.2

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 (88) hide show
  1. package/dist/Assets/Images/logoBlue.png +0 -0
  2. package/dist/Assets/Images/logoBlueBorder.png +0 -0
  3. package/dist/Assets/Images/logoCoco.png +0 -0
  4. package/dist/Assets/Images/logoCocoBanner.png +0 -0
  5. package/dist/Assets/Images/logoWhite.png +0 -0
  6. package/dist/Assets/Images/logoWhiteBorder.png +0 -0
  7. package/dist/Assets/Images/user.jpeg +0 -0
  8. package/dist/Assets/Videos/example.mp4 +0 -0
  9. package/dist/Assets/Videos/example.ogv +0 -0
  10. package/dist/components/Atoms/AlertBar/AlertBar.stories.js +69 -0
  11. package/dist/{AlertBar → components/Atoms/AlertBar}/index.js +0 -0
  12. package/dist/components/Atoms/Breadcrumbs/Breadcrumbs.stories.js +41 -0
  13. package/dist/{Breadcrumbs → components/Atoms/Breadcrumbs}/index.js +0 -0
  14. package/dist/components/Atoms/BreadcrumbsItem/BreadcrumbsItem.stories.js +86 -0
  15. package/dist/{BreadcrumbsItem → components/Atoms/BreadcrumbsItem}/index.css +0 -0
  16. package/dist/{BreadcrumbsItem → components/Atoms/BreadcrumbsItem}/index.js +0 -0
  17. package/dist/{Button → components/Atoms/Button}/Styles.css +0 -0
  18. package/dist/components/Atoms/Button/button.stories.js +68 -0
  19. package/dist/{Button → components/Atoms/Button}/index.js +0 -0
  20. package/dist/components/Atoms/Collapsible/Collapsible.stories.js +144 -0
  21. package/dist/{Collapsible → components/Atoms/Collapsible}/index.js +0 -0
  22. package/dist/components/Atoms/Column/Column.stories.js +24 -0
  23. package/dist/{Column → components/Atoms/Column}/index.js +0 -0
  24. package/dist/components/Atoms/Icon/Icon.stories.js +21 -0
  25. package/dist/{Icon → components/Atoms/Icon}/index.js +0 -0
  26. package/dist/components/Atoms/Image/Image.stories.js +21 -0
  27. package/dist/{Image → components/Atoms/Image}/index.js +0 -0
  28. package/dist/components/Atoms/InformationIcon/InformationIcon.stories.js +95 -0
  29. package/dist/{InformationIcon → components/Atoms/InformationIcon}/index.js +0 -0
  30. package/dist/components/Atoms/Input/Input.stories.js +47 -0
  31. package/dist/{Input → components/Atoms/Input}/index.js +0 -0
  32. package/dist/components/Atoms/NavItem/NavItem.stories.js +100 -0
  33. package/dist/{NavItem → components/Atoms/NavItem}/index.js +0 -0
  34. package/dist/components/Atoms/Row/Row.stories.js +18 -0
  35. package/dist/{Row → components/Atoms/Row}/index.js +0 -0
  36. package/dist/components/Atoms/StarRating/StarRating.stories.js +22 -0
  37. package/dist/{StarRating → components/Atoms/StarRating}/index.css +0 -0
  38. package/dist/{StarRating → components/Atoms/StarRating}/index.js +0 -0
  39. package/dist/components/Atoms/TextAndTitle/TextAndTitle.stories.js +53 -0
  40. package/dist/{TextAndTitle → components/Atoms/TextAndTitle}/index.js +0 -0
  41. package/dist/components/Atoms/Tubestops/Tubestops.stories.js +49 -0
  42. package/dist/{Tubestops → components/Atoms/Tubestops}/index.js +0 -0
  43. package/dist/{Tubestops → components/Atoms/Tubestops}/styles.css +0 -0
  44. package/dist/components/Atoms/Video/Video.stories.js +29 -0
  45. package/dist/{Video → components/Atoms/Video}/index.js +0 -0
  46. package/dist/components/Organisms/Accordion/Accordion.stories.js +99 -0
  47. package/dist/{Accordion → components/Organisms/Accordion}/index.js +0 -0
  48. package/dist/components/Organisms/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +122 -0
  49. package/dist/{BreadcrumbsBordered → components/Organisms/BreadcrumbsBordered}/index.js +0 -0
  50. package/dist/components/Organisms/Card/Card.stories.js +352 -0
  51. package/dist/{Card → components/Organisms/Card}/index.js +0 -0
  52. package/dist/components/Organisms/CardWithTopImage/CardWithTopImage.stories.js +64 -0
  53. package/dist/{CardWithTopImage → components/Organisms/CardWithTopImage}/index.js +0 -0
  54. package/dist/{CardWithTopImage → components/Organisms/CardWithTopImage}/styles.css +0 -0
  55. package/dist/components/Organisms/Carousel/Carousel.stories.js +111 -0
  56. package/dist/{Carousel → components/Organisms/Carousel}/index.css +0 -0
  57. package/dist/{Carousel → components/Organisms/Carousel}/index.js +0 -0
  58. package/dist/components/Organisms/Chevron Card/ChevronCard.stories.js +18 -0
  59. package/dist/{Chevron Card → components/Organisms/Chevron Card}/index.js +0 -0
  60. package/dist/{Chevron Card → components/Organisms/Chevron Card}/styles.css +0 -0
  61. package/dist/components/Organisms/Form/Form.stories.js +118 -0
  62. package/dist/{Form → components/Organisms/Form}/index.js +0 -0
  63. package/dist/components/Organisms/FyreCard/FyreCard.stories.js +127 -0
  64. package/dist/{FyreCard → components/Organisms/FyreCard}/index.js +0 -0
  65. package/dist/components/Organisms/ImageLink/ImageLink.stories.js +64 -0
  66. package/dist/{ImageLink → components/Organisms/ImageLink}/index.js +0 -0
  67. package/dist/components/Organisms/ImageLinkList/ImageLinkList.stories.js +35 -0
  68. package/dist/{ImageLinkList → components/Organisms/ImageLinkList}/index.js +0 -0
  69. package/dist/components/Organisms/Jumbotron/Jumbotron.stories.js +42 -0
  70. package/dist/{Jumbotron → components/Organisms/Jumbotron}/index.js +0 -0
  71. package/dist/components/Organisms/Nav/Nav.stories.js +103 -0
  72. package/dist/{Nav → components/Organisms/Nav}/index.js +0 -0
  73. package/dist/components/Organisms/NewsCard/NewsCard.stories.js +56 -0
  74. package/dist/{NewsCard → components/Organisms/NewsCard}/index.js +0 -0
  75. package/dist/components/Organisms/Profile/Profile.stories.js +85 -0
  76. package/dist/{Profile → components/Organisms/Profile}/index.js +0 -0
  77. package/dist/components/Organisms/Search/Search.stories.js +44 -0
  78. package/dist/{Search → components/Organisms/Search}/index.js +0 -0
  79. package/dist/components/Organisms/Testimonial/Testimonial.stories.js +103 -0
  80. package/dist/{Testimonial → components/Organisms/Testimonial}/index.js +0 -0
  81. package/dist/components/Organisms/Timeline/Timeline.stories.js +73 -0
  82. package/dist/{Timeline → components/Organisms/Timeline}/index.js +0 -0
  83. package/dist/{Timeline → components/Organisms/Timeline}/styles.css +0 -0
  84. package/dist/components/Organisms/UserIcon/UserIcon.stories.js +41 -0
  85. package/dist/{UserIcon → components/Organisms/UserIcon}/index.js +0 -0
  86. package/dist/index.js +263 -0
  87. package/dist/utils/controls.js +505 -0
  88. package/package.json +2 -1
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,69 @@
1
+ import React from 'react'
2
+ import AlertBar from './index';
3
+
4
+ export default {
5
+ title: 'Trepur Components/Atoms/AlertBar',
6
+ component: AlertBar,
7
+ parameters: {},
8
+ argTypes: {
9
+ text: {
10
+ description: 'The text the appears as an overlay on the Jumbotron',
11
+ control: 'text',
12
+ table: {
13
+ category: ''
14
+ }
15
+ },
16
+ textColor: {
17
+ description: '',
18
+ control: 'color',
19
+ table: {
20
+ category: 'Colors'
21
+ }
22
+ },
23
+ type: {
24
+ description: 'Select',
25
+ options: ['success', 'warning', 'error'],
26
+ control: { type: 'select' },
27
+ table: {
28
+ category: '',
29
+ },
30
+ },
31
+ leftIcon: {
32
+ description: '',
33
+ control: 'text',
34
+ table: {
35
+ category: ''
36
+ }
37
+ },
38
+ leftIconColor: {
39
+ description: '',
40
+ control: 'color',
41
+ table: {
42
+ category: 'Colors'
43
+ }
44
+ },
45
+ rightIcon: {
46
+ description: '',
47
+ control: 'text',
48
+ table: {
49
+ category: ''
50
+ }
51
+ },
52
+ rightIconColor: {
53
+ description: '',
54
+ control: 'color',
55
+ table: {
56
+ category: 'Colors'
57
+ }
58
+ },
59
+ },
60
+ args: {
61
+ text: 'this is a message',
62
+ type: 'success'
63
+ }
64
+ }
65
+
66
+ const Template = (args) => <AlertBar {...args} />
67
+
68
+ export const _AlertBar = Template.bind({});
69
+ _AlertBar.args = {};
@@ -0,0 +1,41 @@
1
+ import React from 'react'
2
+ import Breadcrumbs from './index'
3
+
4
+ export default {
5
+ title: 'Trepur Components/Atoms/Breadcrumbs',
6
+ components: Breadcrumbs,
7
+ argTypes: {
8
+ links: {
9
+ description: '',
10
+ control: 'array',
11
+ table: {
12
+ category: ''
13
+ }
14
+ },
15
+ },
16
+ args: {
17
+ links: [
18
+ {
19
+ link: '/',
20
+ name: 'link 1'
21
+ },
22
+ {
23
+ link: '/',
24
+ name: 'link 2'
25
+ },
26
+ {
27
+ link: '/',
28
+ name: 'link 3'
29
+ },
30
+ {
31
+ link: '/',
32
+ name: 'link 4'
33
+ }
34
+ ]
35
+ }
36
+ }
37
+
38
+ const Template = (args) => <Breadcrumbs {...args} />;
39
+
40
+ export const _Breadcrumbs = Template.bind({});
41
+ _Breadcrumbs.args = {};
@@ -0,0 +1,86 @@
1
+ import React from 'react'
2
+ import Column from '../Column';
3
+ import BreadcrumbsItem from './index'
4
+ import './index.css';
5
+
6
+ export default {
7
+ title: 'Trepur Components/Atoms/Breadcrumbs Item',
8
+ components: BreadcrumbsItem,
9
+ parameters: {},
10
+ argTypes: {
11
+ link: {
12
+ description: '',
13
+ control: 'text',
14
+ table: {
15
+ category: ''
16
+ }
17
+ },
18
+ name: {
19
+ description: '',
20
+ control: 'text',
21
+ table: {
22
+ category: ''
23
+ }
24
+ },
25
+ textColor: {
26
+ description: '',
27
+ control: 'color',
28
+ table: {
29
+ category: 'Colors'
30
+ }
31
+ },
32
+ bgColor: {
33
+ description: '',
34
+ control: 'color',
35
+ table: {
36
+ category: 'Colors'
37
+ }
38
+ },
39
+ borderColor: {
40
+ description: '',
41
+ control: 'color',
42
+ table: {
43
+ category: 'Colors'
44
+ }
45
+ },
46
+ hoverBgColor: {
47
+ description: '',
48
+ control: 'color',
49
+ table: {
50
+ category: 'Colors',
51
+ subcategory: 'Hover'
52
+ }
53
+ },
54
+ hoverTextColor: {
55
+ description: '',
56
+ control: 'color',
57
+ table: {
58
+ category: 'Colors',
59
+ subcategory: 'Hover'
60
+ }
61
+ },
62
+ hoverBorderColor: {
63
+ description: '',
64
+ control: 'color',
65
+ table: {
66
+ category: 'Colors',
67
+ subcategory: 'Hover'
68
+ }
69
+ },
70
+ type: {
71
+ description: '',
72
+ control: 'text',
73
+ table: {
74
+ category: '',
75
+ }
76
+ },
77
+ },
78
+ args: {
79
+ name: 'Link 1',
80
+ },
81
+ }
82
+
83
+ const Template = (args) => <Column sm={1}><BreadcrumbsItem {...args} /></Column>
84
+
85
+ export const _BreadcrumbsItem = Template.bind({});
86
+ _BreadcrumbsItem.args = {};
@@ -0,0 +1,68 @@
1
+ import React from 'react'
2
+ import Button from './index'
3
+ import { action } from '@storybook/addon-actions'
4
+ import './Styles.css'
5
+ import { buttonOptions } from '../../../utils/controls'
6
+
7
+ export default {
8
+ title: 'Trepur Components/Atoms/Button',
9
+ component: Button,
10
+ parameters: {
11
+ docs: {
12
+ description: {
13
+ component: 'A Button which can either be internal, external or social as well as a standard design or a slide design.',
14
+ },
15
+ },
16
+ },
17
+ argTypes: {
18
+ ...buttonOptions
19
+ },
20
+ args: {
21
+ },
22
+ };
23
+
24
+ const Template = (args) => <Button {...args} />;
25
+
26
+ export const HoverButton = Template.bind({});
27
+ HoverButton.args = {
28
+ ctaText: 'This is a button',
29
+ };
30
+
31
+ export const SocialButtonFacebook = Template.bind({});
32
+ SocialButtonFacebook.args = {
33
+ onClick: action('button-click'),
34
+ buttonCenterIcon: 'facebook-f',
35
+ hoverButtonBgColor: 'white',
36
+ buttonBgColor: '#3b5999',
37
+ buttonTextColor: 'white',
38
+ hoverButtonTextColor: '#3b5999',
39
+ hoverButtonBorderColor: '#3b5999',
40
+ buttonType: 'social',
41
+ url: '/'
42
+ };
43
+
44
+ export const SocialButtonWhatsapp = Template.bind({});
45
+ SocialButtonWhatsapp.args = {
46
+ onClick: action('button-click'),
47
+ buttonCenterIcon: 'whatsapp',
48
+ hoverButtonBgColor: 'white',
49
+ buttonBgColor: '#25d366',
50
+ buttonTextColor: 'white',
51
+ hoverButtonTextColor: '#25d366',
52
+ hoverButtonBorderColor: '#25d366',
53
+ buttonType: 'social',
54
+ url: '/'
55
+ };
56
+
57
+ export const SocialButtonTwitter = Template.bind({});
58
+ SocialButtonTwitter.args = {
59
+ onClick: action('button-click'),
60
+ buttonCenterIcon: 'twitter',
61
+ hoverButtonBgColor: 'white',
62
+ buttonBgColor: '#55acee',
63
+ buttonTextColor: 'white',
64
+ hoverButtonTextColor: '#55acee',
65
+ hoverButtonBorderColor: '#55acee',
66
+ buttonType: 'social',
67
+ url: '/'
68
+ };
@@ -0,0 +1,144 @@
1
+ import React from 'react'
2
+ import Collapsible from './index';
3
+
4
+ export default {
5
+ title: 'Trepur Components/Atoms/Collapsible',
6
+ components: Collapsible,
7
+ parameters: {},
8
+ argTypes: {
9
+ title: {
10
+ description: '',
11
+ control: 'text',
12
+ table: {
13
+ category: ''
14
+ }
15
+ },
16
+ subtitle: {
17
+ description: '',
18
+ control: 'text',
19
+ table: {
20
+ category: ''
21
+ }
22
+ },
23
+ isDropdown: {
24
+ description: '',
25
+ control: 'boolean',
26
+ table: {
27
+ category: ''
28
+ }
29
+ },
30
+ icon: {
31
+ description: '',
32
+ control: 'text',
33
+ table: {
34
+ category: ''
35
+ }
36
+ },
37
+ content: {
38
+ description: '',
39
+ control: 'text',
40
+ table: {
41
+ category: ''
42
+ }
43
+ },
44
+ boldTitle: {
45
+ description: '',
46
+ control: 'boolean',
47
+ table: {
48
+ category: ''
49
+ }
50
+ },
51
+ borderTop: {
52
+ description: '',
53
+ control: 'boolean',
54
+ table: {
55
+ category: ''
56
+ }
57
+ },
58
+ borderBottom: {
59
+ description: '',
60
+ control: 'boolean',
61
+ table: {
62
+ category: ''
63
+ }
64
+ },
65
+ showBottomLine: {
66
+ description: '',
67
+ control: 'boolean',
68
+ table: {
69
+ category: ''
70
+ }
71
+ },
72
+ children: {
73
+ description: '',
74
+ control: 'array',
75
+ table: {
76
+ category: ''
77
+ }
78
+ },
79
+ contentBgColor: {
80
+ description: '',
81
+ control: 'color',
82
+ table: {
83
+ category: 'Colors'
84
+ }
85
+ },
86
+ contentTextColor: {
87
+ description: '',
88
+ control: 'color',
89
+ table: {
90
+ category: 'Colors'
91
+ }
92
+ },
93
+ bgColor: {
94
+ description: '',
95
+ control: 'color',
96
+ table: {
97
+ category: 'Colors'
98
+ }
99
+ },
100
+ textColor: {
101
+ description: '',
102
+ control: 'color',
103
+ table: {
104
+ category: 'Colors'
105
+ }
106
+ },
107
+ hoverBgColor: {
108
+ description: '',
109
+ control: 'color',
110
+ table: {
111
+ category: 'Colors',
112
+ subcategory: 'Hover'
113
+ }
114
+ },
115
+ hoverTextColor: {
116
+ description: '',
117
+ control: 'color',
118
+ table: {
119
+ category: 'Colors',
120
+ subcategory: 'Hover'
121
+ }
122
+ },
123
+ iconSize: {
124
+ description: 'Between 1 and 5',
125
+ control: 'number',
126
+ table: {
127
+ category: '',
128
+ }
129
+ },
130
+ },
131
+ args: {
132
+ title: 'This is a title',
133
+ subtitle: 'This is a subtitle',
134
+ isDropdown: true,
135
+ icon: 'th',
136
+ boldTitle: true,
137
+ children: [<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error, unde perferendis quibusdam eos repellendus vero rerum sunt reiciendis velit autem odio, fuga molestiae perspiciatis dolor voluptatum mollitia quos ipsa! Doloribus? Lorem ipsum, dolor sit amet consectetur adipisicing elit. Reiciendis ducimus, dolorum tempore unde earum aspernatur placeat magnam, alias neque, blanditiis esse tenetur dignissimos in optio nihil libero cum cupiditate debitis?</p>]
138
+ },
139
+ }
140
+
141
+ const Template = (args) => <Collapsible {...args} />;
142
+
143
+ export const _Collapsible = Template.bind({});
144
+ _Collapsible.args = {};
@@ -0,0 +1,24 @@
1
+ import React from 'react'
2
+ import Column from './index'
3
+ import { columnOptions } from '../../../utils/controls'
4
+
5
+ export default {
6
+ title: 'Trepur Components/Atoms/Column',
7
+ component: Column,
8
+ parameters: {},
9
+ argTypes: {
10
+ ...columnOptions
11
+ },
12
+ args: {
13
+ sm: 1,
14
+ md: 1,
15
+ lg: 1,
16
+ xl: 1,
17
+ className: 'border h-16'
18
+ }
19
+ }
20
+
21
+ const Template = (args) => <Column {...args} />;
22
+
23
+ export const _Column = Template.bind({});
24
+ _Column.args = {};
@@ -0,0 +1,21 @@
1
+ import React from 'react'
2
+ import Icon from './index'
3
+ import { iconOptions } from '../../../utils/controls'
4
+
5
+ export default {
6
+ title: 'Trepur Components/Atoms/Icon',
7
+ components: Icon,
8
+ parameters: {},
9
+ argTypes: {
10
+ ...iconOptions
11
+ },
12
+ args: {
13
+ type: 'th',
14
+ size: 3
15
+ }
16
+ }
17
+
18
+ const Template = (args) => <Icon {...args} />;
19
+
20
+ export const _Icon = Template.bind({});
21
+ _Icon.args = {};
File without changes
@@ -0,0 +1,21 @@
1
+ import React from 'react'
2
+ import Image from './index'
3
+ import logo from '../../../Assets/Images/logoWhite.png'
4
+ import { imageOptions } from '../../../utils/controls'
5
+
6
+ export default {
7
+ title: 'Trepur Components/Atoms/Image',
8
+ components: Image,
9
+ parameters: {},
10
+ argTypes: {
11
+ ...imageOptions
12
+ },
13
+ args: {
14
+ image: logo
15
+ }
16
+ }
17
+
18
+ const Template = (args) => <Image {...args} />;
19
+
20
+ export const _Image = Template.bind({});
21
+ _Image.args = {};
File without changes
@@ -0,0 +1,95 @@
1
+ import React from 'react'
2
+ import InformationIcon from './index'
3
+
4
+ export default {
5
+ title: 'Trepur Components/Atoms/Information Icon',
6
+ components: InformationIcon,
7
+ parameters: {},
8
+ argTypes: {
9
+ type: {
10
+ description: 'The name of the icon you wish to use',
11
+ control: 'text',
12
+ table: {
13
+ category: '',
14
+ }
15
+ },
16
+ text: {
17
+ description: '',
18
+ control: 'text',
19
+ table: {
20
+ category: '',
21
+ }
22
+ },
23
+ number: {
24
+ description: '',
25
+ control: 'number',
26
+ table: {
27
+ category: '',
28
+ }
29
+ },
30
+ size: {
31
+ description: 'An integer between 1 and 5 to dictate the magnification of the icon',
32
+ control: 'number',
33
+ table: {
34
+ category: '',
35
+ }
36
+ },
37
+ bordered: {
38
+ description: '',
39
+ control: 'boolean',
40
+ table: {
41
+ category: '',
42
+ }
43
+ },
44
+ rounded: {
45
+ description: '',
46
+ control: 'boolean',
47
+ table: {
48
+ category: '',
49
+ }
50
+ },
51
+ bgColor: {
52
+ description: '',
53
+ control: 'color',
54
+ table: {
55
+ category: 'Colors',
56
+ }
57
+ },
58
+ textColor: {
59
+ description: '',
60
+ control: 'color',
61
+ table: {
62
+ category: 'Colors',
63
+ }
64
+ },
65
+ hoverBgColor: {
66
+ description: '',
67
+ control: 'color',
68
+ table: {
69
+ category: 'Colors',
70
+ subcategory: 'Hover'
71
+ }
72
+ },
73
+ hoverTextColor: {
74
+ description: '',
75
+ control: 'color',
76
+ table: {
77
+ category: 'Colors',
78
+ subcategory: 'Hover'
79
+ }
80
+ },
81
+ },
82
+ args: {
83
+ type: 'th',
84
+ text: 'Text',
85
+ number: 21,
86
+ size: 3,
87
+ bordered: true,
88
+ rounded: true
89
+ }
90
+ }
91
+
92
+ const Template = (args) => <InformationIcon {...args} />;
93
+
94
+ export const _InformationIcon = Template.bind({});
95
+ _InformationIcon.args = {};
@@ -0,0 +1,47 @@
1
+ import React from 'react'
2
+ import Input from './index'
3
+
4
+ export default {
5
+ title: 'Trepur Components/Atoms/Input',
6
+ component: Input,
7
+ parameters: {},
8
+ argTypes: {
9
+ label: {
10
+ description: '',
11
+ control: 'text',
12
+ table: {
13
+ category: '',
14
+ }
15
+ },
16
+ placeholder: {
17
+ description: '',
18
+ control: 'text',
19
+ table: {
20
+ category: '',
21
+ }
22
+ },
23
+ inputType: {
24
+ description: '',
25
+ control: 'text',
26
+ table: {
27
+ category: '',
28
+ }
29
+ },
30
+ bold: {
31
+ description: '',
32
+ control: 'boolean',
33
+ table: {
34
+ category: '',
35
+ }
36
+ }
37
+ },
38
+ args: {
39
+ label: 'This is a label',
40
+ placeholder: 'This is a placeholder'
41
+ }
42
+ }
43
+
44
+ const Template = (args) => <Input {...args} />;
45
+
46
+ export const _Input = Template.bind({});
47
+ _Input.args = {};
File without changes