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.
Files changed (37) hide show
  1. package/dist/components/Atoms/AlertBar/AlertBar.stories.js +64 -79
  2. package/dist/components/Atoms/Breadcrumbs/Breadcrumbs.stories.js +37 -45
  3. package/dist/components/Atoms/BreadcrumbsItem/BreadcrumbsItem.stories.js +81 -98
  4. package/dist/components/Atoms/Button/button.stories.js +56 -74
  5. package/dist/components/Atoms/Collapsible/Collapsible.stories.js +141 -154
  6. package/dist/components/Atoms/Column/Column.stories.js +24 -42
  7. package/dist/components/Atoms/Icon/Icon.stories.js +20 -38
  8. package/dist/components/Atoms/Image/Image.stories.js +21 -40
  9. package/dist/components/Atoms/InformationIcon/InformationIcon.stories.js +90 -103
  10. package/dist/components/Atoms/Input/Input.stories.js +42 -55
  11. package/dist/components/Atoms/NavItem/NavItem.stories.js +93 -108
  12. package/dist/components/Atoms/Row/Row.stories.js +18 -33
  13. package/dist/components/Atoms/StarRating/StarRating.stories.js +22 -41
  14. package/dist/components/Atoms/TextAndTitle/TextAndTitle.stories.js +49 -62
  15. package/dist/components/Atoms/Tubestops/Tubestops.stories.js +43 -51
  16. package/dist/components/Atoms/Video/Video.stories.js +29 -50
  17. package/dist/components/Organisms/Accordion/Accordion.stories.js +93 -97
  18. package/dist/components/Organisms/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +92 -95
  19. package/dist/components/Organisms/Card/Card.stories.js +128 -135
  20. package/dist/components/Organisms/CardWithTopImage/CardWithTopImage.stories.js +48 -57
  21. package/dist/components/Organisms/Carousel/Carousel.stories.js +104 -123
  22. package/dist/components/Organisms/Chevron Card/ChevronCard.stories.js +17 -27
  23. package/dist/components/Organisms/Form/Form.stories.js +112 -118
  24. package/dist/components/Organisms/FyreCard/FyreCard.stories.js +106 -115
  25. package/dist/components/Organisms/ImageLink/ImageLink.stories.js +49 -72
  26. package/dist/components/Organisms/ImageLinkList/ImageLinkList.stories.js +30 -43
  27. package/dist/components/Organisms/Jumbotron/Jumbotron.stories.js +37 -50
  28. package/dist/components/Organisms/Nav/Nav.stories.js +97 -107
  29. package/dist/components/Organisms/NewsCard/NewsCard.stories.js +52 -65
  30. package/dist/components/Organisms/Profile/Profile.stories.js +77 -86
  31. package/dist/components/Organisms/Search/Search.stories.js +41 -54
  32. package/dist/components/Organisms/Testimonial/Testimonial.stories.js +98 -111
  33. package/dist/components/Organisms/Timeline/Timeline.stories.js +66 -70
  34. package/dist/components/Organisms/UserIcon/UserIcon.stories.js +37 -51
  35. package/dist/index.css +4 -0
  36. package/package.json +6 -2
  37. package/dist/components/Atoms/Button/button.stories.mdx +0 -72
@@ -1,84 +1,69 @@
1
- "use strict";
1
+ import React from 'react'
2
+ import AlertBar from './index';
2
3
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports._AlertBar = 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/Atoms/AlertBar',
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
- textColor: {
27
- description: '',
28
- control: 'color',
29
- table: {
30
- category: 'Colors'
31
- }
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
+ },
32
59
  },
33
- type: {
34
- description: 'Select',
35
- options: ['success', 'warning', 'error'],
36
- control: {
37
- type: 'select'
38
- },
39
- table: {
40
- category: ''
41
- }
42
- },
43
- leftIcon: {
44
- description: '',
45
- control: 'text',
46
- table: {
47
- category: ''
48
- }
49
- },
50
- leftIconColor: {
51
- description: '',
52
- control: 'color',
53
- table: {
54
- category: 'Colors'
55
- }
56
- },
57
- rightIcon: {
58
- description: '',
59
- control: 'text',
60
- table: {
61
- category: ''
62
- }
63
- },
64
- rightIconColor: {
65
- description: '',
66
- control: 'color',
67
- table: {
68
- category: 'Colors'
69
- }
60
+ args: {
61
+ text: 'this is a message',
62
+ type: 'success'
70
63
  }
71
- },
72
- args: {
73
- text: 'this is a message',
74
- type: 'success'
75
- }
76
- };
77
- exports.default = _default;
78
-
79
- const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
64
+ }
80
65
 
81
- const _AlertBar = Template.bind({});
66
+ const Template = (args) => <AlertBar {...args} />
82
67
 
83
- exports._AlertBar = _AlertBar;
84
- _AlertBar.args = {};
68
+ export const _AlertBar = Template.bind({});
69
+ _AlertBar.args = {};
@@ -1,49 +1,41 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports._Breadcrumbs = 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/Atoms/Breadcrumbs',
16
- components: _index.default,
17
- argTypes: {
18
- links: {
19
- description: '',
20
- control: 'array',
21
- table: {
22
- category: ''
23
- }
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
+ ]
24
35
  }
25
- },
26
- args: {
27
- links: [{
28
- link: '/',
29
- name: 'link 1'
30
- }, {
31
- link: '/',
32
- name: 'link 2'
33
- }, {
34
- link: '/',
35
- name: 'link 3'
36
- }, {
37
- link: '/',
38
- name: 'link 4'
39
- }]
40
- }
41
- };
42
- exports.default = _default;
43
-
44
- const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
36
+ }
45
37
 
46
- const _Breadcrumbs = Template.bind({});
38
+ const Template = (args) => <Breadcrumbs {...args} />;
47
39
 
48
- exports._Breadcrumbs = _Breadcrumbs;
40
+ export const _Breadcrumbs = Template.bind({});
49
41
  _Breadcrumbs.args = {};
@@ -1,103 +1,86 @@
1
- "use strict";
1
+ import React from 'react'
2
+ import Column from '../Column';
3
+ import BreadcrumbsItem from './index'
4
+ import './index.css';
2
5
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports._BreadcrumbsItem = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _Column = _interopRequireDefault(require("../Column"));
11
-
12
- var _index = _interopRequireDefault(require("./index"));
13
-
14
- require("./index.css");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- var _default = {
19
- title: 'Trepur Components/Atoms/Breadcrumbs Item',
20
- components: _index.default,
21
- parameters: {},
22
- argTypes: {
23
- link: {
24
- description: '',
25
- control: 'text',
26
- table: {
27
- category: ''
28
- }
29
- },
30
- name: {
31
- description: '',
32
- control: 'text',
33
- table: {
34
- category: ''
35
- }
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
+ },
36
77
  },
37
- textColor: {
38
- description: '',
39
- control: 'color',
40
- table: {
41
- category: 'Colors'
42
- }
78
+ args: {
79
+ name: 'Link 1',
43
80
  },
44
- bgColor: {
45
- description: '',
46
- control: 'color',
47
- table: {
48
- category: 'Colors'
49
- }
50
- },
51
- borderColor: {
52
- description: '',
53
- control: 'color',
54
- table: {
55
- category: 'Colors'
56
- }
57
- },
58
- hoverBgColor: {
59
- description: '',
60
- control: 'color',
61
- table: {
62
- category: 'Colors',
63
- subcategory: 'Hover'
64
- }
65
- },
66
- hoverTextColor: {
67
- description: '',
68
- control: 'color',
69
- table: {
70
- category: 'Colors',
71
- subcategory: 'Hover'
72
- }
73
- },
74
- hoverBorderColor: {
75
- description: '',
76
- control: 'color',
77
- table: {
78
- category: 'Colors',
79
- subcategory: 'Hover'
80
- }
81
- },
82
- type: {
83
- description: '',
84
- control: 'text',
85
- table: {
86
- category: ''
87
- }
88
- }
89
- },
90
- args: {
91
- name: 'Link 1'
92
- }
93
- };
94
- exports.default = _default;
95
-
96
- const Template = args => /*#__PURE__*/_react.default.createElement(_Column.default, {
97
- sm: 1
98
- }, /*#__PURE__*/_react.default.createElement(_index.default, args));
81
+ }
99
82
 
100
- const _BreadcrumbsItem = Template.bind({});
83
+ const Template = (args) => <Column sm={1}><BreadcrumbsItem {...args} /></Column>
101
84
 
102
- exports._BreadcrumbsItem = _BreadcrumbsItem;
103
- _BreadcrumbsItem.args = {};
85
+ export const _BreadcrumbsItem = Template.bind({});
86
+ _BreadcrumbsItem.args = {};
@@ -1,86 +1,68 @@
1
- "use strict";
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'
2
6
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.SocialButtonWhatsapp = exports.SocialButtonTwitter = exports.SocialButtonFacebook = exports.HoverButton = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _index = _interopRequireDefault(require("./index"));
11
-
12
- var _addonActions = require("@storybook/addon-actions");
13
-
14
- require("./Styles.css");
15
-
16
- var _controls = require("../../../utils/controls");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
-
22
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23
-
24
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
-
26
- var _default = {
27
- title: 'Trepur Components/Atoms/Button',
28
- component: _index.default,
29
- parameters: {
30
- docs: {
31
- description: {
32
- component: 'A Button which can either be internal, external or social as well as a standard design or a slide design.'
33
- }
34
- }
35
- },
36
- argTypes: _objectSpread({}, _controls.buttonOptions),
37
- args: {}
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
+ },
38
22
  };
39
- exports.default = _default;
40
23
 
41
- const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
24
+ const Template = (args) => <Button {...args} />;
42
25
 
43
- const HoverButton = Template.bind({});
44
- exports.HoverButton = HoverButton;
26
+ export const HoverButton = Template.bind({});
45
27
  HoverButton.args = {
46
- ctaText: 'This is a button'
28
+ ctaText: 'This is a button',
47
29
  };
48
- const SocialButtonFacebook = Template.bind({});
49
- exports.SocialButtonFacebook = SocialButtonFacebook;
30
+
31
+ export const SocialButtonFacebook = Template.bind({});
50
32
  SocialButtonFacebook.args = {
51
- onClick: (0, _addonActions.action)('button-click'),
52
- buttonCenterIcon: 'facebook-f',
53
- hoverButtonBgColor: 'white',
54
- buttonBgColor: '#3b5999',
55
- buttonTextColor: 'white',
56
- hoverButtonTextColor: '#3b5999',
57
- hoverButtonBorderColor: '#3b5999',
58
- buttonType: 'social',
59
- url: '/'
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: '/'
60
42
  };
61
- const SocialButtonWhatsapp = Template.bind({});
62
- exports.SocialButtonWhatsapp = SocialButtonWhatsapp;
43
+
44
+ export const SocialButtonWhatsapp = Template.bind({});
63
45
  SocialButtonWhatsapp.args = {
64
- onClick: (0, _addonActions.action)('button-click'),
65
- buttonCenterIcon: 'whatsapp',
66
- hoverButtonBgColor: 'white',
67
- buttonBgColor: '#25d366',
68
- buttonTextColor: 'white',
69
- hoverButtonTextColor: '#25d366',
70
- hoverButtonBorderColor: '#25d366',
71
- buttonType: 'social',
72
- url: '/'
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: '/'
73
55
  };
74
- const SocialButtonTwitter = Template.bind({});
75
- exports.SocialButtonTwitter = SocialButtonTwitter;
56
+
57
+ export const SocialButtonTwitter = Template.bind({});
76
58
  SocialButtonTwitter.args = {
77
- onClick: (0, _addonActions.action)('button-click'),
78
- buttonCenterIcon: 'twitter',
79
- hoverButtonBgColor: 'white',
80
- buttonBgColor: '#55acee',
81
- buttonTextColor: 'white',
82
- hoverButtonTextColor: '#55acee',
83
- hoverButtonBorderColor: '#55acee',
84
- buttonType: 'social',
85
- url: '/'
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: '/'
86
68
  };