trepur_components 0.2.3 → 0.2.4
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/dist/{Assets → lib/assets}/Images/logoBlue.png +0 -0
- package/dist/{Assets → lib/assets}/Images/logoBlueBorder.png +0 -0
- package/dist/{Assets → lib/assets}/Images/logoCoco.png +0 -0
- package/dist/{Assets → lib/assets}/Images/logoCocoBanner.png +0 -0
- package/dist/{Assets → lib/assets}/Images/logoWhite.png +0 -0
- package/dist/{Assets → lib/assets}/Images/logoWhiteBorder.png +0 -0
- package/dist/{Assets → lib/assets}/Images/user.jpeg +0 -0
- package/dist/{Assets → lib/assets}/Videos/example.mp4 +0 -0
- package/dist/{Assets → lib/assets}/Videos/example.ogv +0 -0
- package/dist/lib/components/Atoms/AlertBar/AlertBar.stories.js +84 -0
- package/dist/{components → lib/components}/Atoms/AlertBar/index.js +0 -0
- package/dist/lib/components/Atoms/Breadcrumbs/Breadcrumbs.stories.js +49 -0
- package/dist/{components → lib/components}/Atoms/Breadcrumbs/index.js +0 -0
- package/dist/lib/components/Atoms/BreadcrumbsItem/BreadcrumbsItem.stories.js +103 -0
- package/dist/{components → lib/components}/Atoms/BreadcrumbsItem/index.css +0 -0
- package/dist/{components → lib/components}/Atoms/BreadcrumbsItem/index.js +0 -0
- package/dist/{components → lib/components}/Atoms/Button/Styles.css +0 -0
- package/dist/lib/components/Atoms/Button/button.stories.js +86 -0
- package/dist/{components → lib/components}/Atoms/Button/index.js +0 -0
- package/dist/lib/components/Atoms/Collapsible/Collapsible.stories.js +157 -0
- package/dist/{components → lib/components}/Atoms/Collapsible/index.js +0 -0
- package/dist/lib/components/Atoms/Column/Column.stories.js +42 -0
- package/dist/{components → lib/components}/Atoms/Column/index.js +0 -0
- package/dist/lib/components/Atoms/Icon/Icon.stories.js +39 -0
- package/dist/{components → lib/components}/Atoms/Icon/index.js +0 -0
- package/dist/lib/components/Atoms/Image/Image.stories.js +40 -0
- package/dist/{components → lib/components}/Atoms/Image/index.js +0 -0
- package/dist/lib/components/Atoms/InformationIcon/InformationIcon.stories.js +108 -0
- package/dist/{components → lib/components}/Atoms/InformationIcon/index.js +0 -0
- package/dist/lib/components/Atoms/Input/Input.stories.js +60 -0
- package/dist/{components → lib/components}/Atoms/Input/index.js +0 -0
- package/dist/lib/components/Atoms/NavItem/NavItem.stories.js +115 -0
- package/dist/{components → lib/components}/Atoms/NavItem/index.js +0 -0
- package/dist/lib/components/Atoms/Row/Row.stories.js +33 -0
- package/dist/{components → lib/components}/Atoms/Row/index.js +0 -0
- package/dist/lib/components/Atoms/StarRating/StarRating.stories.js +41 -0
- package/dist/{components → lib/components}/Atoms/StarRating/index.css +0 -0
- package/dist/{components → lib/components}/Atoms/StarRating/index.js +0 -0
- package/dist/lib/components/Atoms/TextAndTitle/TextAndTitle.stories.js +66 -0
- package/dist/{components → lib/components}/Atoms/TextAndTitle/index.js +0 -0
- package/dist/lib/components/Atoms/Tubestops/Tubestops.stories.js +57 -0
- package/dist/{components → lib/components}/Atoms/Tubestops/index.js +0 -0
- package/dist/{components → lib/components}/Atoms/Tubestops/styles.css +0 -0
- package/dist/lib/components/Atoms/Video/Video.stories.js +50 -0
- package/dist/{components → lib/components}/Atoms/Video/index.js +0 -0
- package/dist/lib/components/Organisms/Accordion/Accordion.stories.js +103 -0
- package/dist/{components → lib/components}/Organisms/Accordion/index.js +0 -0
- package/dist/lib/components/Organisms/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +125 -0
- package/dist/{components → lib/components}/Organisms/BreadcrumbsBordered/index.js +0 -0
- package/dist/{components → lib/components}/Organisms/Card/Card.stories.js +135 -128
- package/dist/{components → lib/components}/Organisms/Card/index.js +0 -0
- package/dist/lib/components/Organisms/CardWithTopImage/CardWithTopImage.stories.js +73 -0
- package/dist/{components → lib/components}/Organisms/CardWithTopImage/index.js +0 -0
- package/dist/{components → lib/components}/Organisms/CardWithTopImage/styles.css +0 -0
- package/dist/lib/components/Organisms/Carousel/Carousel.stories.js +130 -0
- package/dist/{components → lib/components}/Organisms/Carousel/index.css +0 -0
- package/dist/{components → lib/components}/Organisms/Carousel/index.js +0 -0
- package/dist/lib/components/Organisms/Chevron Card/ChevronCard.stories.js +28 -0
- package/dist/{components → lib/components}/Organisms/Chevron Card/index.js +0 -0
- package/dist/{components → lib/components}/Organisms/Chevron Card/styles.css +0 -0
- package/dist/lib/components/Organisms/Form/Form.stories.js +124 -0
- package/dist/{components → lib/components}/Organisms/Form/index.js +0 -0
- package/dist/lib/components/Organisms/FyreCard/FyreCard.stories.js +136 -0
- package/dist/{components → lib/components}/Organisms/FyreCard/index.js +0 -0
- package/dist/lib/components/Organisms/ImageLink/ImageLink.stories.js +87 -0
- package/dist/{components → lib/components}/Organisms/ImageLink/index.js +0 -0
- package/dist/lib/components/Organisms/ImageLinkList/ImageLinkList.stories.js +48 -0
- package/dist/{components → lib/components}/Organisms/ImageLinkList/index.js +0 -0
- package/dist/lib/components/Organisms/Jumbotron/Jumbotron.stories.js +55 -0
- package/dist/{components → lib/components}/Organisms/Jumbotron/index.js +0 -0
- package/dist/lib/components/Organisms/Nav/Nav.stories.js +113 -0
- package/dist/{components → lib/components}/Organisms/Nav/index.js +0 -0
- package/dist/lib/components/Organisms/NewsCard/NewsCard.stories.js +69 -0
- package/dist/{components → lib/components}/Organisms/NewsCard/index.js +0 -0
- package/dist/lib/components/Organisms/Profile/Profile.stories.js +94 -0
- package/dist/{components → lib/components}/Organisms/Profile/index.js +0 -0
- package/dist/lib/components/Organisms/Search/Search.stories.js +57 -0
- package/dist/{components → lib/components}/Organisms/Search/index.js +0 -0
- package/dist/lib/components/Organisms/Testimonial/Testimonial.stories.js +116 -0
- package/dist/{components → lib/components}/Organisms/Testimonial/index.js +0 -0
- package/dist/lib/components/Organisms/Timeline/Timeline.stories.js +77 -0
- package/dist/{components → lib/components}/Organisms/Timeline/index.js +0 -0
- package/dist/{components → lib/components}/Organisms/Timeline/styles.css +0 -0
- package/dist/lib/components/Organisms/UserIcon/UserIcon.stories.js +55 -0
- package/dist/{components → lib/components}/Organisms/UserIcon/index.js +0 -0
- package/dist/{index.js → lib/index.js} +0 -0
- package/dist/{utils → lib/utils}/controls.js +0 -0
- package/package.json +3 -3
- package/dist/components/Atoms/AlertBar/AlertBar.stories.js +0 -69
- package/dist/components/Atoms/Breadcrumbs/Breadcrumbs.stories.js +0 -41
- package/dist/components/Atoms/BreadcrumbsItem/BreadcrumbsItem.stories.js +0 -86
- package/dist/components/Atoms/Button/button.stories.js +0 -68
- package/dist/components/Atoms/Collapsible/Collapsible.stories.js +0 -144
- package/dist/components/Atoms/Column/Column.stories.js +0 -24
- package/dist/components/Atoms/Icon/Icon.stories.js +0 -21
- package/dist/components/Atoms/Image/Image.stories.js +0 -21
- package/dist/components/Atoms/InformationIcon/InformationIcon.stories.js +0 -95
- package/dist/components/Atoms/Input/Input.stories.js +0 -47
- package/dist/components/Atoms/NavItem/NavItem.stories.js +0 -100
- package/dist/components/Atoms/Row/Row.stories.js +0 -18
- package/dist/components/Atoms/StarRating/StarRating.stories.js +0 -22
- package/dist/components/Atoms/TextAndTitle/TextAndTitle.stories.js +0 -53
- package/dist/components/Atoms/Tubestops/Tubestops.stories.js +0 -49
- package/dist/components/Atoms/Video/Video.stories.js +0 -29
- package/dist/components/Organisms/Accordion/Accordion.stories.js +0 -99
- package/dist/components/Organisms/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +0 -122
- package/dist/components/Organisms/CardWithTopImage/CardWithTopImage.stories.js +0 -64
- package/dist/components/Organisms/Carousel/Carousel.stories.js +0 -111
- package/dist/components/Organisms/Chevron Card/ChevronCard.stories.js +0 -18
- package/dist/components/Organisms/Form/Form.stories.js +0 -118
- package/dist/components/Organisms/FyreCard/FyreCard.stories.js +0 -127
- package/dist/components/Organisms/ImageLink/ImageLink.stories.js +0 -64
- package/dist/components/Organisms/ImageLinkList/ImageLinkList.stories.js +0 -35
- package/dist/components/Organisms/Jumbotron/Jumbotron.stories.js +0 -42
- package/dist/components/Organisms/Nav/Nav.stories.js +0 -103
- package/dist/components/Organisms/NewsCard/NewsCard.stories.js +0 -56
- package/dist/components/Organisms/Profile/Profile.stories.js +0 -85
- package/dist/components/Organisms/Search/Search.stories.js +0 -44
- package/dist/components/Organisms/Testimonial/Testimonial.stories.js +0 -103
- package/dist/components/Organisms/Timeline/Timeline.stories.js +0 -73
- package/dist/components/Organisms/UserIcon/UserIcon.stories.js +0 -41
|
@@ -1,68 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
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 = {};
|
|
@@ -1,24 +0,0 @@
|
|
|
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 = {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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 = {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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 = {};
|
|
@@ -1,95 +0,0 @@
|
|
|
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 = {};
|
|
@@ -1,47 +0,0 @@
|
|
|
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 = {};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Column from '../Column';
|
|
3
|
-
import NavItem from './index'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Trepur Components/Atoms/Nav Item',
|
|
7
|
-
component: NavItem,
|
|
8
|
-
parameters: {},
|
|
9
|
-
argTypes: {
|
|
10
|
-
name: {
|
|
11
|
-
description: '',
|
|
12
|
-
control: 'text',
|
|
13
|
-
table: {
|
|
14
|
-
category: 'Standard',
|
|
15
|
-
subcategory: 'Content',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
url: {
|
|
19
|
-
description: '',
|
|
20
|
-
control: 'text',
|
|
21
|
-
table: {
|
|
22
|
-
category: 'Standard',
|
|
23
|
-
subcategory: 'Content',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
bgColor: {
|
|
27
|
-
description: '',
|
|
28
|
-
control: 'color',
|
|
29
|
-
table: {
|
|
30
|
-
category: 'Standard',
|
|
31
|
-
subcategory: 'Colors',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
textColor: {
|
|
35
|
-
description: '',
|
|
36
|
-
control: 'color',
|
|
37
|
-
table: {
|
|
38
|
-
category: 'Standard',
|
|
39
|
-
subcategory: 'Colors',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
borderColor: {
|
|
43
|
-
description: '',
|
|
44
|
-
control: 'color',
|
|
45
|
-
table: {
|
|
46
|
-
category: 'Standard',
|
|
47
|
-
subcategory: 'Colors',
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
hoverBgColor: {
|
|
51
|
-
description: '',
|
|
52
|
-
control: 'color',
|
|
53
|
-
table: {
|
|
54
|
-
category: 'Hover',
|
|
55
|
-
subcategory: 'Colors',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
hoverTextColor: {
|
|
59
|
-
description: '',
|
|
60
|
-
control: 'color',
|
|
61
|
-
table: {
|
|
62
|
-
category: 'Hover',
|
|
63
|
-
subcategory: 'Colors',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
hoverBorderColor: {
|
|
67
|
-
description: '',
|
|
68
|
-
control: 'color',
|
|
69
|
-
table: {
|
|
70
|
-
category: 'Hover',
|
|
71
|
-
subcategory: 'Colors',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
rounded: {
|
|
75
|
-
description: '',
|
|
76
|
-
control: 'boolean',
|
|
77
|
-
table: {
|
|
78
|
-
category: '',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
bordered: {
|
|
82
|
-
description: '',
|
|
83
|
-
control: 'boolean',
|
|
84
|
-
table: {
|
|
85
|
-
category: '',
|
|
86
|
-
},
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
args: {
|
|
90
|
-
name: 'Home',
|
|
91
|
-
bordered: true,
|
|
92
|
-
rounded: true
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
const Template = (args) => <Column sm={1}><NavItem {...args} /></Column>
|
|
98
|
-
|
|
99
|
-
export const _NavItem = Template.bind({});
|
|
100
|
-
_NavItem.args = {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Row from './index'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Trepur Components/Atoms/Row',
|
|
6
|
-
component: Row,
|
|
7
|
-
parameters: {},
|
|
8
|
-
argTypes: {},
|
|
9
|
-
args: {
|
|
10
|
-
bordered: true,
|
|
11
|
-
children: <div className='h-16'></div>
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const Template = (args) => <Row {...args} />;
|
|
16
|
-
|
|
17
|
-
export const _Row = Template.bind({});
|
|
18
|
-
_Row.args = {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import StarRating from './index'
|
|
3
|
-
import './index.css'
|
|
4
|
-
import { starOptions } from '../../../utils/controls'
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Trepur Components/Atoms/Star Rating',
|
|
8
|
-
components: StarRating,
|
|
9
|
-
parameters: {},
|
|
10
|
-
argTypes: {
|
|
11
|
-
...starOptions
|
|
12
|
-
},
|
|
13
|
-
args: {
|
|
14
|
-
size: 1,
|
|
15
|
-
stars: 3
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const Template = (args) => <StarRating {...args} />;
|
|
20
|
-
|
|
21
|
-
export const _StarRating = Template.bind({});
|
|
22
|
-
_StarRating.args = {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import TextAndTitle from './index'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Trepur Components/Atoms/Text and Title',
|
|
6
|
-
components: TextAndTitle,
|
|
7
|
-
argTypes: {
|
|
8
|
-
title: {
|
|
9
|
-
description: '',
|
|
10
|
-
control: 'text',
|
|
11
|
-
table: {
|
|
12
|
-
category: ''
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
text: {
|
|
16
|
-
description: '',
|
|
17
|
-
control: 'text',
|
|
18
|
-
table: {
|
|
19
|
-
category: ''
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
textColor: {
|
|
23
|
-
description: '',
|
|
24
|
-
control: 'color',
|
|
25
|
-
table: {
|
|
26
|
-
category: 'Colors'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
titleColor: {
|
|
30
|
-
description: '',
|
|
31
|
-
control: 'color',
|
|
32
|
-
table: {
|
|
33
|
-
category: 'Colors'
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
bgColor: {
|
|
37
|
-
description: '',
|
|
38
|
-
control: 'color',
|
|
39
|
-
table: {
|
|
40
|
-
category: 'Colors'
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
args: {
|
|
45
|
-
title: 'This is a title',
|
|
46
|
-
text: 'This is some text'
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const Template = (args) => <TextAndTitle {...args} />;
|
|
51
|
-
|
|
52
|
-
export const _TextAndTitle = Template.bind({});
|
|
53
|
-
_TextAndTitle.args = {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Tubestops from './index'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Trepur Components/Atoms/Tube Stops',
|
|
6
|
-
component: Tubestops,
|
|
7
|
-
parameters: {},
|
|
8
|
-
argTypes: {
|
|
9
|
-
isHorizontal: {
|
|
10
|
-
description: '',
|
|
11
|
-
control: 'boolean',
|
|
12
|
-
table: {
|
|
13
|
-
category: '',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
items: {
|
|
17
|
-
description: '',
|
|
18
|
-
control: 'array',
|
|
19
|
-
table: {
|
|
20
|
-
category: '',
|
|
21
|
-
},
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
args: {
|
|
25
|
-
isHorizontal: false,
|
|
26
|
-
reverse: false,
|
|
27
|
-
items: [
|
|
28
|
-
{
|
|
29
|
-
title: 'This is a title',
|
|
30
|
-
subtitle: 'This is a subtitle'
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
title: 'This is a title',
|
|
34
|
-
subtitle: 'This is a subtitle'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
title: 'This is a title',
|
|
38
|
-
subtitle: 'This is a subtitle'
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
textCenter: true
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const Template = (args) => <Tubestops {...args} />;
|
|
47
|
-
|
|
48
|
-
export const _Tubestops = Template.bind({});
|
|
49
|
-
_Tubestops.args = {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Video from './index'
|
|
3
|
-
import mp4 from '../../../Assets/Videos/example.mp4'
|
|
4
|
-
import ogv from '../../../Assets/Videos/example.ogv'
|
|
5
|
-
import logo from '../../../Assets/Images/logoBlue.png'
|
|
6
|
-
import { videoOptions } from '../../../utils/controls'
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Trepur Components/Atoms/Video',
|
|
10
|
-
components: Video,
|
|
11
|
-
parameters: {},
|
|
12
|
-
argTypes: {
|
|
13
|
-
...videoOptions
|
|
14
|
-
},
|
|
15
|
-
args: {
|
|
16
|
-
mp4File: mp4,
|
|
17
|
-
ogvFile: ogv,
|
|
18
|
-
poster: logo,
|
|
19
|
-
withControls: true,
|
|
20
|
-
withPoster: false,
|
|
21
|
-
autoPlay: true,
|
|
22
|
-
muted: true
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const Template = (args) => <Video {...args} />;
|
|
27
|
-
|
|
28
|
-
export const _Video = Template.bind({});
|
|
29
|
-
_Video.args = {};
|