trepur_components 0.2.2 → 0.2.5
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 → assets}/Images/logoBlue.png +0 -0
- package/dist/{Assets → assets}/Images/logoBlueBorder.png +0 -0
- package/dist/{Assets → assets}/Images/logoCoco.png +0 -0
- package/dist/{Assets → assets}/Images/logoCocoBanner.png +0 -0
- package/dist/{Assets → assets}/Images/logoWhite.png +0 -0
- package/dist/{Assets → assets}/Images/logoWhiteBorder.png +0 -0
- package/dist/{Assets → assets}/Images/user.jpeg +0 -0
- package/dist/{Assets → assets}/Videos/example.mp4 +0 -0
- package/dist/{Assets → assets}/Videos/example.ogv +0 -0
- package/dist/components/Atoms/AlertBar/AlertBar.stories.js +79 -64
- package/dist/components/Atoms/Breadcrumbs/Breadcrumbs.stories.js +45 -37
- package/dist/components/Atoms/BreadcrumbsItem/BreadcrumbsItem.stories.js +98 -81
- package/dist/components/Atoms/Button/button.stories.js +74 -56
- package/dist/components/Atoms/Collapsible/Collapsible.stories.js +154 -141
- package/dist/components/Atoms/Column/Column.stories.js +42 -24
- package/dist/components/Atoms/Icon/Icon.stories.js +38 -20
- package/dist/components/Atoms/Image/Image.stories.js +40 -21
- package/dist/components/Atoms/InformationIcon/InformationIcon.stories.js +103 -90
- package/dist/components/Atoms/Input/Input.stories.js +55 -42
- package/dist/components/Atoms/NavItem/NavItem.stories.js +108 -93
- package/dist/components/Atoms/Row/Row.stories.js +33 -18
- package/dist/components/Atoms/StarRating/StarRating.stories.js +41 -22
- package/dist/components/Atoms/TextAndTitle/TextAndTitle.stories.js +62 -49
- package/dist/components/Atoms/Tubestops/Tubestops.stories.js +51 -43
- package/dist/components/Atoms/Video/Video.stories.js +50 -29
- package/dist/components/Organisms/Accordion/Accordion.stories.js +97 -93
- package/dist/components/Organisms/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +95 -92
- package/dist/components/Organisms/Card/Card.stories.js +135 -128
- package/dist/components/Organisms/CardWithTopImage/CardWithTopImage.stories.js +57 -48
- package/dist/components/Organisms/Carousel/Carousel.stories.js +123 -104
- package/dist/components/Organisms/Chevron Card/ChevronCard.stories.js +27 -17
- package/dist/components/Organisms/Form/Form.stories.js +118 -112
- package/dist/components/Organisms/FyreCard/FyreCard.stories.js +115 -106
- package/dist/components/Organisms/ImageLink/ImageLink.stories.js +72 -49
- package/dist/components/Organisms/ImageLinkList/ImageLinkList.stories.js +43 -30
- package/dist/components/Organisms/Jumbotron/Jumbotron.stories.js +50 -37
- package/dist/components/Organisms/Nav/Nav.stories.js +107 -97
- package/dist/components/Organisms/NewsCard/NewsCard.stories.js +65 -52
- package/dist/components/Organisms/Profile/Profile.stories.js +86 -77
- package/dist/components/Organisms/Search/Search.stories.js +54 -41
- package/dist/components/Organisms/Testimonial/Testimonial.stories.js +111 -98
- package/dist/components/Organisms/Timeline/Timeline.stories.js +70 -66
- package/dist/components/Organisms/UserIcon/UserIcon.stories.js +51 -37
- package/dist/index.css +4 -0
- package/package.json +4 -2
|
@@ -1,114 +1,123 @@
|
|
|
1
|
-
|
|
2
|
-
import FyreCard from './index'
|
|
3
|
-
import {
|
|
4
|
-
buttonDesignOptions,
|
|
5
|
-
buttonTypeOptions
|
|
6
|
-
} from '../../../utils/controls'
|
|
1
|
+
"use strict";
|
|
7
2
|
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports._FyreCard = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
11
|
+
|
|
12
|
+
var _controls = require("../../../utils/controls");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: 'Trepur Components/Organisms/Fyre Card',
|
|
18
|
+
components: _index.default,
|
|
19
|
+
parameters: {},
|
|
20
|
+
argTypes: {
|
|
21
|
+
ctaText: {
|
|
22
|
+
description: '',
|
|
23
|
+
control: 'text',
|
|
24
|
+
table: {
|
|
25
|
+
category: ''
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
image: {
|
|
29
|
+
description: '',
|
|
30
|
+
control: 'text',
|
|
31
|
+
table: {
|
|
32
|
+
category: ''
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
buttonDesign: {
|
|
36
|
+
description: '',
|
|
37
|
+
control: 'select',
|
|
38
|
+
options: _controls.buttonDesignOptions,
|
|
39
|
+
table: {
|
|
40
|
+
category: ''
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
buttonType: {
|
|
44
|
+
description: '',
|
|
45
|
+
control: 'select',
|
|
46
|
+
options: _controls.buttonTypeOptions,
|
|
47
|
+
table: {
|
|
48
|
+
category: ''
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
bordered: {
|
|
52
|
+
description: '',
|
|
53
|
+
control: 'boolean',
|
|
54
|
+
table: {
|
|
55
|
+
category: ''
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
buttonBgColor: {
|
|
59
|
+
description: '',
|
|
60
|
+
control: 'color',
|
|
61
|
+
table: {
|
|
62
|
+
category: 'Colors'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
buttonTextColor: {
|
|
66
|
+
description: '',
|
|
67
|
+
control: 'color',
|
|
68
|
+
table: {
|
|
69
|
+
category: 'Colors'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
buttonBorderColor: {
|
|
73
|
+
description: '',
|
|
74
|
+
control: 'color',
|
|
75
|
+
table: {
|
|
76
|
+
category: 'Colors'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
hoverButtonBorderColor: {
|
|
80
|
+
description: '',
|
|
81
|
+
control: 'color',
|
|
82
|
+
table: {
|
|
83
|
+
category: 'Colors',
|
|
84
|
+
subcategory: 'Hover'
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
hoverButtonBgColor: {
|
|
88
|
+
description: '',
|
|
89
|
+
control: 'color',
|
|
90
|
+
table: {
|
|
91
|
+
category: 'Colors',
|
|
92
|
+
subcategory: 'Hover'
|
|
93
|
+
}
|
|
95
94
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
hoverButtonTextColor: {
|
|
96
|
+
description: '',
|
|
97
|
+
control: 'color',
|
|
98
|
+
table: {
|
|
99
|
+
category: 'Colors',
|
|
100
|
+
subcategory: 'Hover'
|
|
101
|
+
}
|
|
103
102
|
}
|
|
104
|
-
}
|
|
103
|
+
},
|
|
104
|
+
args: {
|
|
105
|
+
image: 'https://picsum.photos/500/300',
|
|
106
|
+
buttonDesign: 'slide',
|
|
107
|
+
buttonTextColor: 'white',
|
|
108
|
+
buttonBgColor: 'black',
|
|
109
|
+
bordered: true,
|
|
110
|
+
ctaText: 'Shop Now'
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
exports.default = _default;
|
|
105
114
|
|
|
106
|
-
const Template =
|
|
115
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
|
|
107
116
|
|
|
108
|
-
|
|
109
|
-
_FyreCard.args = {};
|
|
117
|
+
const _FyreCard = Template.bind({});
|
|
110
118
|
|
|
111
|
-
|
|
119
|
+
exports._FyreCard = _FyreCard;
|
|
120
|
+
_FyreCard.args = {}; // export const _Card = (args) => {
|
|
112
121
|
// return (
|
|
113
122
|
// <Card
|
|
114
123
|
// id='card'
|
|
@@ -124,4 +133,4 @@ _FyreCard.args = {};
|
|
|
124
133
|
// hoverButtonTextColor='black'
|
|
125
134
|
// bordered/>
|
|
126
135
|
// )
|
|
127
|
-
// }
|
|
136
|
+
// }
|
|
@@ -1,64 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
import Column from '../../Atoms/Column';
|
|
3
|
-
import ImageLink from './index'
|
|
1
|
+
"use strict";
|
|
4
2
|
|
|
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
|
-
}
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports._ImageLinkWithTitle = exports._ImageLinkWithButton = exports._ImageLinkRounded = exports._ImageLink = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _Column = _interopRequireDefault(require("../../Atoms/Column"));
|
|
11
|
+
|
|
12
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: 'Trepur Components/Organisms/Image Link',
|
|
18
|
+
components: _index.default,
|
|
19
|
+
parameters: {},
|
|
20
|
+
argTypes: {
|
|
21
|
+
title: {
|
|
22
|
+
description: '',
|
|
23
|
+
control: 'text',
|
|
24
|
+
table: {
|
|
25
|
+
category: ''
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
image: {
|
|
29
|
+
description: '',
|
|
30
|
+
control: 'text',
|
|
31
|
+
table: {
|
|
32
|
+
category: ''
|
|
33
|
+
}
|
|
38
34
|
},
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
ctaText: {
|
|
36
|
+
description: '',
|
|
37
|
+
control: 'text',
|
|
38
|
+
table: {
|
|
39
|
+
category: ''
|
|
40
|
+
}
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
rounded: {
|
|
43
|
+
description: '',
|
|
44
|
+
control: 'boolean',
|
|
45
|
+
table: {
|
|
46
|
+
category: ''
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
args: {
|
|
51
|
+
image: 'https://picsum.photos/400/400'
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.default = _default;
|
|
55
|
+
|
|
56
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_Column.default, {
|
|
57
|
+
sm: 3,
|
|
58
|
+
md: 3
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_index.default, args));
|
|
43
60
|
|
|
44
|
-
const
|
|
61
|
+
const _ImageLink = Template.bind({});
|
|
45
62
|
|
|
46
|
-
|
|
63
|
+
exports._ImageLink = _ImageLink;
|
|
47
64
|
_ImageLink.args = {};
|
|
48
65
|
|
|
49
|
-
|
|
66
|
+
const _ImageLinkWithTitle = Template.bind({});
|
|
67
|
+
|
|
68
|
+
exports._ImageLinkWithTitle = _ImageLinkWithTitle;
|
|
50
69
|
_ImageLinkWithTitle.args = {
|
|
51
|
-
|
|
70
|
+
title: 'Title'
|
|
52
71
|
};
|
|
53
72
|
|
|
54
|
-
|
|
73
|
+
const _ImageLinkWithButton = Template.bind({});
|
|
74
|
+
|
|
75
|
+
exports._ImageLinkWithButton = _ImageLinkWithButton;
|
|
55
76
|
_ImageLinkWithButton.args = {
|
|
56
|
-
|
|
77
|
+
ctaText: 'Button 1'
|
|
57
78
|
};
|
|
58
79
|
|
|
59
|
-
|
|
80
|
+
const _ImageLinkRounded = Template.bind({});
|
|
81
|
+
|
|
82
|
+
exports._ImageLinkRounded = _ImageLinkRounded;
|
|
60
83
|
_ImageLinkRounded.args = {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
84
|
+
title: 'Title',
|
|
85
|
+
ctaText: 'Button 1',
|
|
86
|
+
rounded: true
|
|
64
87
|
};
|
|
@@ -1,35 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports._ImageLinkList = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3
13
|
|
|
4
14
|
const getLinks = () => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
args: {
|
|
28
|
-
items: getLinks()
|
|
15
|
+
return new Array(16).fill(null).map(() => {
|
|
16
|
+
return {
|
|
17
|
+
image: "https://picsum.photos/400/400",
|
|
18
|
+
title: 'Hi',
|
|
19
|
+
ctaText: 'button'
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var _default = {
|
|
25
|
+
title: 'Trepur Components/Organisms/Image Link List',
|
|
26
|
+
components: _index.default,
|
|
27
|
+
parameters: {},
|
|
28
|
+
argTypes: {
|
|
29
|
+
list: {
|
|
30
|
+
description: '',
|
|
31
|
+
control: 'array',
|
|
32
|
+
table: {
|
|
33
|
+
category: ''
|
|
34
|
+
}
|
|
29
35
|
}
|
|
30
|
-
}
|
|
36
|
+
},
|
|
37
|
+
args: {
|
|
38
|
+
items: getLinks()
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
exports.default = _default;
|
|
42
|
+
|
|
43
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
|
|
31
44
|
|
|
32
|
-
const
|
|
45
|
+
const _ImageLinkList = Template.bind({});
|
|
33
46
|
|
|
34
|
-
|
|
35
|
-
_ImageLinkList.args = {};
|
|
47
|
+
exports._ImageLinkList = _ImageLinkList;
|
|
48
|
+
_ImageLinkList.args = {};
|
|
@@ -1,42 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports._Jumbotron = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
title: 'Trepur Components/Organisms/Jumbotron',
|
|
16
|
+
component: _index.default,
|
|
17
|
+
parameters: {},
|
|
18
|
+
argTypes: {
|
|
19
|
+
text: {
|
|
20
|
+
description: 'The text the appears as an overlay on the Jumbotron',
|
|
21
|
+
control: 'text',
|
|
22
|
+
table: {
|
|
23
|
+
category: ''
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
ctaText: {
|
|
27
|
+
description: 'The text of the first/left button',
|
|
28
|
+
control: 'text',
|
|
29
|
+
table: {
|
|
30
|
+
category: ''
|
|
31
|
+
}
|
|
30
32
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
ctaText2: {
|
|
34
|
+
description: 'The text on the second/last button',
|
|
35
|
+
control: 'text',
|
|
36
|
+
table: {
|
|
37
|
+
category: ''
|
|
38
|
+
}
|
|
36
39
|
}
|
|
37
|
-
}
|
|
40
|
+
},
|
|
41
|
+
args: {
|
|
42
|
+
text: 'This is some text',
|
|
43
|
+
ctaText: 'Button 1',
|
|
44
|
+
ctaText2: 'Button 2',
|
|
45
|
+
image: 'https://picsum.photos/1500/400'
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.default = _default;
|
|
49
|
+
|
|
50
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
|
|
38
51
|
|
|
39
|
-
const
|
|
52
|
+
const _Jumbotron = Template.bind({});
|
|
40
53
|
|
|
41
|
-
|
|
54
|
+
exports._Jumbotron = _Jumbotron;
|
|
42
55
|
_Jumbotron.args = {};
|