trepur_components 0.2.0 → 0.2.3
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/components/Atoms/AlertBar/AlertBar.stories.js +64 -79
- package/dist/components/Atoms/Breadcrumbs/Breadcrumbs.stories.js +37 -45
- package/dist/components/Atoms/BreadcrumbsItem/BreadcrumbsItem.stories.js +81 -98
- package/dist/components/Atoms/Button/button.stories.js +56 -74
- package/dist/components/Atoms/Collapsible/Collapsible.stories.js +141 -154
- package/dist/components/Atoms/Column/Column.stories.js +24 -42
- package/dist/components/Atoms/Icon/Icon.stories.js +20 -38
- package/dist/components/Atoms/Image/Image.stories.js +21 -40
- package/dist/components/Atoms/InformationIcon/InformationIcon.stories.js +90 -103
- package/dist/components/Atoms/Input/Input.stories.js +42 -55
- package/dist/components/Atoms/NavItem/NavItem.stories.js +93 -108
- package/dist/components/Atoms/Row/Row.stories.js +18 -33
- package/dist/components/Atoms/StarRating/StarRating.stories.js +22 -41
- package/dist/components/Atoms/TextAndTitle/TextAndTitle.stories.js +49 -62
- package/dist/components/Atoms/Tubestops/Tubestops.stories.js +43 -51
- package/dist/components/Atoms/Video/Video.stories.js +29 -50
- package/dist/components/Organisms/Accordion/Accordion.stories.js +93 -97
- package/dist/components/Organisms/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +92 -95
- package/dist/components/Organisms/Card/Card.stories.js +128 -135
- package/dist/components/Organisms/CardWithTopImage/CardWithTopImage.stories.js +48 -57
- package/dist/components/Organisms/Carousel/Carousel.stories.js +104 -123
- package/dist/components/Organisms/Chevron Card/ChevronCard.stories.js +17 -27
- package/dist/components/Organisms/Form/Form.stories.js +112 -118
- package/dist/components/Organisms/FyreCard/FyreCard.stories.js +106 -115
- package/dist/components/Organisms/ImageLink/ImageLink.stories.js +49 -72
- package/dist/components/Organisms/ImageLinkList/ImageLinkList.stories.js +30 -43
- package/dist/components/Organisms/Jumbotron/Jumbotron.stories.js +37 -50
- package/dist/components/Organisms/Nav/Nav.stories.js +97 -107
- package/dist/components/Organisms/NewsCard/NewsCard.stories.js +52 -65
- package/dist/components/Organisms/Profile/Profile.stories.js +77 -86
- package/dist/components/Organisms/Search/Search.stories.js +41 -54
- package/dist/components/Organisms/Testimonial/Testimonial.stories.js +98 -111
- package/dist/components/Organisms/Timeline/Timeline.stories.js +66 -70
- package/dist/components/Organisms/UserIcon/UserIcon.stories.js +37 -51
- package/dist/index.css +4 -0
- package/package.json +6 -2
- package/dist/components/Atoms/Button/button.stories.mdx +0 -72
|
@@ -1,130 +1,111 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Carousel from './index'
|
|
3
|
+
import './index.css'
|
|
4
|
+
import mp4 from '../../../Assets/Videos/example.mp4'
|
|
5
|
+
import Video from '../../Atoms/Video'
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
+
const textSlides = [
|
|
8
|
+
<div className='bg-black'>
|
|
9
|
+
<Video classes='mx-auto' mp4File={mp4} autoPlay/>
|
|
10
|
+
</div>,
|
|
11
|
+
<div className='h-32 border bg-brand-primary'>
|
|
12
|
+
<h3 className='text-center pt-8 text-4xl'>2</h3>
|
|
13
|
+
</div>,
|
|
14
|
+
<div className='h-32 border bg-brand-secondary'>
|
|
15
|
+
<h3 className='text-center pt-8 text-4xl'>3</h3>
|
|
16
|
+
</div>
|
|
17
|
+
]
|
|
7
18
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
19
|
+
export default {
|
|
20
|
+
title: 'Trepur Components/Organisms/Carousel',
|
|
21
|
+
component: Carousel,
|
|
22
|
+
parameters: {},
|
|
23
|
+
argTypes: {
|
|
24
|
+
slides: {
|
|
25
|
+
description: '',
|
|
26
|
+
control: 'array',
|
|
27
|
+
table: {
|
|
28
|
+
category: ''
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
slidesToShow: {
|
|
32
|
+
description: '',
|
|
33
|
+
control: 'number',
|
|
34
|
+
table: {
|
|
35
|
+
category: ''
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
slidesToScroll: {
|
|
39
|
+
description: '',
|
|
40
|
+
control: 'number',
|
|
41
|
+
table: {
|
|
42
|
+
category: ''
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
infinite: {
|
|
46
|
+
description: '',
|
|
47
|
+
control: 'boolean',
|
|
48
|
+
table: {
|
|
49
|
+
category: ''
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
arrows: {
|
|
53
|
+
description: '',
|
|
54
|
+
control: 'boolean',
|
|
55
|
+
table: {
|
|
56
|
+
category: ''
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
dots: {
|
|
60
|
+
description: '',
|
|
61
|
+
control: 'boolean',
|
|
62
|
+
table: {
|
|
63
|
+
category: ''
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
speed: {
|
|
67
|
+
description: 'milliseconds',
|
|
68
|
+
control: 'number',
|
|
69
|
+
table: {
|
|
70
|
+
category: ''
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
autoPlay: {
|
|
74
|
+
description: '',
|
|
75
|
+
control: 'boolean',
|
|
76
|
+
table: {
|
|
77
|
+
category: ''
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
autoPlaySpeed: {
|
|
81
|
+
description: 'milliseconds',
|
|
82
|
+
control: 'number',
|
|
83
|
+
table: {
|
|
84
|
+
category: ''
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
speed: {
|
|
88
|
+
description: 'milliseconds',
|
|
89
|
+
control: 'number',
|
|
90
|
+
table: {
|
|
91
|
+
category: ''
|
|
92
|
+
}
|
|
93
|
+
}
|
|
60
94
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
table: {
|
|
72
|
-
category: ''
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
dots: {
|
|
76
|
-
description: '',
|
|
77
|
-
control: 'boolean',
|
|
78
|
-
table: {
|
|
79
|
-
category: ''
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
speed: {
|
|
83
|
-
description: 'milliseconds',
|
|
84
|
-
control: 'number',
|
|
85
|
-
table: {
|
|
86
|
-
category: ''
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
autoPlay: {
|
|
90
|
-
description: '',
|
|
91
|
-
control: 'boolean',
|
|
92
|
-
table: {
|
|
93
|
-
category: ''
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
autoPlaySpeed: {
|
|
97
|
-
description: 'milliseconds',
|
|
98
|
-
control: 'number',
|
|
99
|
-
table: {
|
|
100
|
-
category: ''
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
speed: {
|
|
104
|
-
description: 'milliseconds',
|
|
105
|
-
control: 'number',
|
|
106
|
-
table: {
|
|
107
|
-
category: ''
|
|
108
|
-
}
|
|
95
|
+
args: {
|
|
96
|
+
slides: textSlides,
|
|
97
|
+
slidesToShow: 1,
|
|
98
|
+
slidesToScroll: 1,
|
|
99
|
+
dots: true,
|
|
100
|
+
arrows: true,
|
|
101
|
+
infinite: true,
|
|
102
|
+
autoPlay: true,
|
|
103
|
+
autoPlaySpeed: 2500,
|
|
104
|
+
speed: 1000
|
|
109
105
|
}
|
|
110
|
-
|
|
111
|
-
args: {
|
|
112
|
-
slides: textSlides,
|
|
113
|
-
slidesToShow: 1,
|
|
114
|
-
slidesToScroll: 1,
|
|
115
|
-
dots: true,
|
|
116
|
-
arrows: true,
|
|
117
|
-
infinite: true,
|
|
118
|
-
autoPlay: true,
|
|
119
|
-
autoPlaySpeed: 2500,
|
|
120
|
-
speed: 1000
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
exports.default = _default;
|
|
124
|
-
|
|
125
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
|
|
106
|
+
}
|
|
126
107
|
|
|
127
|
-
const
|
|
108
|
+
const Template = (args) => <Carousel {...args} />;
|
|
128
109
|
|
|
129
|
-
|
|
110
|
+
export const _Carousel = Template.bind({});
|
|
130
111
|
_Carousel.args = {};
|
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
argTypes: {},
|
|
19
|
-
args: {}
|
|
20
|
-
};
|
|
21
|
-
exports.default = _default;
|
|
22
|
-
|
|
23
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
|
|
24
|
-
|
|
25
|
-
const _ChevronCard = Template.bind({});
|
|
26
|
-
|
|
27
|
-
exports._ChevronCard = _ChevronCard;
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import ChevronCard from './index'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Trepur Components/Organisms/Chevron Card',
|
|
6
|
+
component: ChevronCard,
|
|
7
|
+
parameters: {},
|
|
8
|
+
argTypes: {
|
|
9
|
+
|
|
10
|
+
},
|
|
11
|
+
args: {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const Template = (args) => <ChevronCard {...args} />;
|
|
16
|
+
|
|
17
|
+
export const _ChevronCard = Template.bind({});
|
|
28
18
|
_ChevronCard.args = {};
|
|
@@ -1,124 +1,118 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import {
|
|
3
|
+
buttonDesignOptions,
|
|
4
|
+
buttonTypeOptions
|
|
5
|
+
} from '../../../utils/controls'
|
|
6
|
+
import Form from './index'
|
|
2
7
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Trepur Components/Organisms/Form',
|
|
10
|
+
components: Form,
|
|
11
|
+
parameters: {},
|
|
12
|
+
argTypes: {
|
|
13
|
+
title: {
|
|
14
|
+
description: '',
|
|
15
|
+
control: 'text',
|
|
16
|
+
table: {
|
|
17
|
+
category: '',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
components: {
|
|
21
|
+
description: '',
|
|
22
|
+
control: 'array',
|
|
23
|
+
table: {
|
|
24
|
+
category: '',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
buttonDesign: {
|
|
28
|
+
description: '',
|
|
29
|
+
control: 'select',
|
|
30
|
+
options: buttonDesignOptions,
|
|
31
|
+
table: {
|
|
32
|
+
category: '',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
buttonBgColor: {
|
|
36
|
+
description: '',
|
|
37
|
+
control: 'color',
|
|
38
|
+
table: {
|
|
39
|
+
category: 'Colors',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
buttonTextColor: {
|
|
43
|
+
description: '',
|
|
44
|
+
control: 'color',
|
|
45
|
+
table: {
|
|
46
|
+
category: 'Colors',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
buttonBorderColor: {
|
|
50
|
+
description: '',
|
|
51
|
+
control: 'color',
|
|
52
|
+
table: {
|
|
53
|
+
category: 'Colors',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
hoverButtonBorderColor: {
|
|
57
|
+
description: '',
|
|
58
|
+
control: 'color',
|
|
59
|
+
table: {
|
|
60
|
+
category: 'Colors',
|
|
61
|
+
subcategory: 'Hover'
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
hoverButtonBgColor: {
|
|
65
|
+
description: '',
|
|
66
|
+
control: 'color',
|
|
67
|
+
table: {
|
|
68
|
+
category: 'Colors',
|
|
69
|
+
subcategory: 'Hover'
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
hoverButtonTextColor: {
|
|
73
|
+
description: '',
|
|
74
|
+
control: 'color',
|
|
75
|
+
table: {
|
|
76
|
+
category: 'Colors',
|
|
77
|
+
subcategory: 'Hover'
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
buttonType: {
|
|
81
|
+
description: '',
|
|
82
|
+
control: 'select',
|
|
83
|
+
options: buttonTypeOptions,
|
|
84
|
+
table: {
|
|
85
|
+
category: '',
|
|
86
|
+
},
|
|
87
|
+
}
|
|
42
88
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
control: 'color',
|
|
67
|
-
table: {
|
|
68
|
-
category: 'Colors',
|
|
69
|
-
subcategory: 'Hover'
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
hoverButtonBgColor: {
|
|
73
|
-
description: '',
|
|
74
|
-
control: 'color',
|
|
75
|
-
table: {
|
|
76
|
-
category: 'Colors',
|
|
77
|
-
subcategory: 'Hover'
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
hoverButtonTextColor: {
|
|
81
|
-
description: '',
|
|
82
|
-
control: 'color',
|
|
83
|
-
table: {
|
|
84
|
-
category: 'Colors',
|
|
85
|
-
subcategory: 'Hover'
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
buttonType: {
|
|
89
|
-
description: '',
|
|
90
|
-
control: 'select',
|
|
91
|
-
options: _controls.buttonTypeOptions,
|
|
92
|
-
table: {
|
|
93
|
-
category: ''
|
|
94
|
-
}
|
|
89
|
+
args: {
|
|
90
|
+
title: 'This is a title',
|
|
91
|
+
components: [
|
|
92
|
+
{
|
|
93
|
+
type: 'Input',
|
|
94
|
+
label: 'This is a label',
|
|
95
|
+
placeholder: 'This is a placeholder'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: 'Input',
|
|
99
|
+
label: 'This is a label',
|
|
100
|
+
placeholder: 'This is a placeholder'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'Input',
|
|
104
|
+
label: 'This is a label',
|
|
105
|
+
placeholder: 'This is a placeholder'
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: 'Button',
|
|
109
|
+
ctaText: 'Submit'
|
|
110
|
+
}
|
|
111
|
+
]
|
|
95
112
|
}
|
|
96
|
-
|
|
97
|
-
args: {
|
|
98
|
-
title: 'This is a title',
|
|
99
|
-
components: [{
|
|
100
|
-
type: 'Input',
|
|
101
|
-
label: 'This is a label',
|
|
102
|
-
placeholder: 'This is a placeholder'
|
|
103
|
-
}, {
|
|
104
|
-
type: 'Input',
|
|
105
|
-
label: 'This is a label',
|
|
106
|
-
placeholder: 'This is a placeholder'
|
|
107
|
-
}, {
|
|
108
|
-
type: 'Input',
|
|
109
|
-
label: 'This is a label',
|
|
110
|
-
placeholder: 'This is a placeholder'
|
|
111
|
-
}, {
|
|
112
|
-
type: 'Button',
|
|
113
|
-
ctaText: 'Submit'
|
|
114
|
-
}]
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
exports.default = _default;
|
|
118
|
-
|
|
119
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
|
|
113
|
+
}
|
|
120
114
|
|
|
121
|
-
const
|
|
115
|
+
const Template = (args) => <Form {...args} />;
|
|
122
116
|
|
|
123
|
-
|
|
117
|
+
export const _Form = Template.bind({});
|
|
124
118
|
_Form.args = {};
|