trepur_components 0.2.0 → 0.2.1
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/Organisms/Accordion → Accordion}/index.js +0 -0
- package/dist/{components/Atoms/AlertBar → AlertBar}/index.js +0 -0
- package/dist/{components/Atoms/Breadcrumbs → Breadcrumbs}/index.js +0 -0
- package/dist/{components/Organisms/BreadcrumbsBordered → BreadcrumbsBordered}/index.js +0 -0
- package/dist/{components/Atoms/BreadcrumbsItem → BreadcrumbsItem}/index.css +0 -0
- package/dist/{components/Atoms/BreadcrumbsItem → BreadcrumbsItem}/index.js +0 -0
- package/dist/{components/Atoms/Button → Button}/Styles.css +0 -0
- package/dist/{components/Atoms/Button → Button}/index.js +0 -0
- package/dist/{components/Organisms/Card → Card}/index.js +0 -0
- package/dist/{components/Organisms/CardWithTopImage → CardWithTopImage}/index.js +0 -0
- package/dist/{components/Organisms/CardWithTopImage → CardWithTopImage}/styles.css +0 -0
- package/dist/{components/Organisms/Carousel → Carousel}/index.css +0 -0
- package/dist/{components/Organisms/Carousel → Carousel}/index.js +0 -0
- package/dist/{components/Organisms/Chevron Card → Chevron Card}/index.js +0 -0
- package/dist/{components/Organisms/Chevron Card → Chevron Card}/styles.css +0 -0
- package/dist/{components/Atoms/Collapsible → Collapsible}/index.js +0 -0
- package/dist/{components/Atoms/Column → Column}/index.js +0 -0
- package/dist/{components/Organisms/Form → Form}/index.js +0 -0
- package/dist/{components/Organisms/FyreCard → FyreCard}/index.js +0 -0
- package/dist/{components/Atoms/Icon → Icon}/index.js +0 -0
- package/dist/{components/Atoms/Image → Image}/index.js +0 -0
- package/dist/{components/Organisms/ImageLink → ImageLink}/index.js +0 -0
- package/dist/{components/Organisms/ImageLinkList → ImageLinkList}/index.js +0 -0
- package/dist/{components/Atoms/InformationIcon → InformationIcon}/index.js +0 -0
- package/dist/{components/Atoms/Input → Input}/index.js +0 -0
- package/dist/{components/Organisms/Jumbotron → Jumbotron}/index.js +0 -0
- package/dist/{components/Organisms/Nav → Nav}/index.js +0 -0
- package/dist/{components/Atoms/NavItem → NavItem}/index.js +0 -0
- package/dist/{components/Organisms/NewsCard → NewsCard}/index.js +0 -0
- package/dist/{components/Organisms/Profile → Profile}/index.js +0 -0
- package/dist/{components/Atoms/Row → Row}/index.js +0 -0
- package/dist/{components/Organisms/Search → Search}/index.js +0 -0
- package/dist/{components/Atoms/StarRating → StarRating}/index.css +0 -0
- package/dist/{components/Atoms/StarRating → StarRating}/index.js +0 -0
- package/dist/{components/Organisms/Testimonial → Testimonial}/index.js +0 -0
- package/dist/{components/Atoms/TextAndTitle → TextAndTitle}/index.js +0 -0
- package/dist/{components/Organisms/Timeline → Timeline}/index.js +0 -0
- package/dist/{components/Organisms/Timeline → Timeline}/styles.css +0 -0
- package/dist/{components/Atoms/Tubestops → Tubestops}/index.js +0 -0
- package/dist/{components/Atoms/Tubestops → Tubestops}/styles.css +0 -0
- package/dist/{components/Organisms/UserIcon → UserIcon}/index.js +0 -0
- package/dist/{components/Atoms/Video → Video}/index.js +0 -0
- package/package.json +4 -2
- package/dist/Assets/Images/logoBlue.png +0 -0
- package/dist/Assets/Images/logoBlueBorder.png +0 -0
- package/dist/Assets/Images/logoCoco.png +0 -0
- package/dist/Assets/Images/logoCocoBanner.png +0 -0
- package/dist/Assets/Images/logoWhite.png +0 -0
- package/dist/Assets/Images/logoWhiteBorder.png +0 -0
- package/dist/Assets/Images/user.jpeg +0 -0
- package/dist/Assets/Videos/example.mp4 +0 -0
- package/dist/Assets/Videos/example.ogv +0 -0
- package/dist/components/Atoms/AlertBar/AlertBar.stories.js +0 -84
- package/dist/components/Atoms/Breadcrumbs/Breadcrumbs.stories.js +0 -49
- package/dist/components/Atoms/BreadcrumbsItem/BreadcrumbsItem.stories.js +0 -103
- package/dist/components/Atoms/Button/button.stories.js +0 -86
- package/dist/components/Atoms/Button/button.stories.mdx +0 -72
- package/dist/components/Atoms/Collapsible/Collapsible.stories.js +0 -157
- package/dist/components/Atoms/Column/Column.stories.js +0 -42
- package/dist/components/Atoms/Icon/Icon.stories.js +0 -39
- package/dist/components/Atoms/Image/Image.stories.js +0 -40
- package/dist/components/Atoms/InformationIcon/InformationIcon.stories.js +0 -108
- package/dist/components/Atoms/Input/Input.stories.js +0 -60
- package/dist/components/Atoms/NavItem/NavItem.stories.js +0 -115
- package/dist/components/Atoms/Row/Row.stories.js +0 -33
- package/dist/components/Atoms/StarRating/StarRating.stories.js +0 -41
- package/dist/components/Atoms/TextAndTitle/TextAndTitle.stories.js +0 -66
- package/dist/components/Atoms/Tubestops/Tubestops.stories.js +0 -57
- package/dist/components/Atoms/Video/Video.stories.js +0 -50
- package/dist/components/Organisms/Accordion/Accordion.stories.js +0 -103
- package/dist/components/Organisms/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +0 -125
- package/dist/components/Organisms/Card/Card.stories.js +0 -359
- package/dist/components/Organisms/CardWithTopImage/CardWithTopImage.stories.js +0 -73
- package/dist/components/Organisms/Carousel/Carousel.stories.js +0 -130
- package/dist/components/Organisms/Chevron Card/ChevronCard.stories.js +0 -28
- package/dist/components/Organisms/Form/Form.stories.js +0 -124
- package/dist/components/Organisms/FyreCard/FyreCard.stories.js +0 -136
- package/dist/components/Organisms/ImageLink/ImageLink.stories.js +0 -87
- package/dist/components/Organisms/ImageLinkList/ImageLinkList.stories.js +0 -48
- package/dist/components/Organisms/Jumbotron/Jumbotron.stories.js +0 -55
- package/dist/components/Organisms/Nav/Nav.stories.js +0 -113
- package/dist/components/Organisms/NewsCard/NewsCard.stories.js +0 -69
- package/dist/components/Organisms/Profile/Profile.stories.js +0 -94
- package/dist/components/Organisms/Search/Search.stories.js +0 -57
- package/dist/components/Organisms/Testimonial/Testimonial.stories.js +0 -116
- package/dist/components/Organisms/Timeline/Timeline.stories.js +0 -77
- package/dist/components/Organisms/UserIcon/UserIcon.stories.js +0 -55
- package/dist/index.js +0 -263
- package/dist/utils/controls.js +0 -505
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "trepur_components",
|
|
3
3
|
"description": "component lib",
|
|
4
4
|
"author": "trepur_ttenneb",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.1",
|
|
6
6
|
"private": false,
|
|
7
7
|
"keywords": [
|
|
8
8
|
"react",
|
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
"web-vitals": "^2.1.4"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "rm -rf dist &&
|
|
31
|
+
"build": "rm -rf dist && npm run build-atoms && npm run build-organisms",
|
|
32
|
+
"build-atoms": "NODE_ENV=production babel src/lib/components/Atoms/ --out-dir dist --ignore src/**/*.stories.js --copy-files --no-copy-ignored",
|
|
33
|
+
"build-organisms": "NODE_ENV=production babel src/lib/components/Organisms --out-dir dist --ignore src/**/*.stories.js --copy-files --no-copy-ignored",
|
|
32
34
|
"eject": "react-scripts eject",
|
|
33
35
|
"storybook": "start-storybook -p 6006",
|
|
34
36
|
"build-storybook": "build-storybook -s public"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
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
|
-
}
|
|
32
|
-
},
|
|
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
|
-
}
|
|
70
|
-
}
|
|
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);
|
|
80
|
-
|
|
81
|
-
const _AlertBar = Template.bind({});
|
|
82
|
-
|
|
83
|
-
exports._AlertBar = _AlertBar;
|
|
84
|
-
_AlertBar.args = {};
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
}
|
|
24
|
-
}
|
|
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);
|
|
45
|
-
|
|
46
|
-
const _Breadcrumbs = Template.bind({});
|
|
47
|
-
|
|
48
|
-
exports._Breadcrumbs = _Breadcrumbs;
|
|
49
|
-
_Breadcrumbs.args = {};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
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
|
-
}
|
|
36
|
-
},
|
|
37
|
-
textColor: {
|
|
38
|
-
description: '',
|
|
39
|
-
control: 'color',
|
|
40
|
-
table: {
|
|
41
|
-
category: 'Colors'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
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));
|
|
99
|
-
|
|
100
|
-
const _BreadcrumbsItem = Template.bind({});
|
|
101
|
-
|
|
102
|
-
exports._BreadcrumbsItem = _BreadcrumbsItem;
|
|
103
|
-
_BreadcrumbsItem.args = {};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
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: {}
|
|
38
|
-
};
|
|
39
|
-
exports.default = _default;
|
|
40
|
-
|
|
41
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, args);
|
|
42
|
-
|
|
43
|
-
const HoverButton = Template.bind({});
|
|
44
|
-
exports.HoverButton = HoverButton;
|
|
45
|
-
HoverButton.args = {
|
|
46
|
-
ctaText: 'This is a button'
|
|
47
|
-
};
|
|
48
|
-
const SocialButtonFacebook = Template.bind({});
|
|
49
|
-
exports.SocialButtonFacebook = SocialButtonFacebook;
|
|
50
|
-
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: '/'
|
|
60
|
-
};
|
|
61
|
-
const SocialButtonWhatsapp = Template.bind({});
|
|
62
|
-
exports.SocialButtonWhatsapp = SocialButtonWhatsapp;
|
|
63
|
-
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: '/'
|
|
73
|
-
};
|
|
74
|
-
const SocialButtonTwitter = Template.bind({});
|
|
75
|
-
exports.SocialButtonTwitter = SocialButtonTwitter;
|
|
76
|
-
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: '/'
|
|
86
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<!-- // import { Canvas, Meta, Story } from "@storybook/addon-docs";
|
|
2
|
-
|
|
3
|
-
// import { Button } from "./index";
|
|
4
|
-
|
|
5
|
-
// <Meta title="MDX/Button" component={Button} />
|
|
6
|
-
|
|
7
|
-
// # Button
|
|
8
|
-
|
|
9
|
-
// Let's define a story for our `Button` component:
|
|
10
|
-
|
|
11
|
-
// export const Template = (args) => <Button {...args} />;
|
|
12
|
-
|
|
13
|
-
// <Canvas>
|
|
14
|
-
// <Story
|
|
15
|
-
// name="facebook"
|
|
16
|
-
// args={{
|
|
17
|
-
// onClick: action("button-click"),
|
|
18
|
-
// centerIcon: "facebook-f",
|
|
19
|
-
// hoverBgColor: "white",
|
|
20
|
-
// bgColor: "#3b5999",
|
|
21
|
-
// textColor: "white",
|
|
22
|
-
// hoverTextColor: "black",
|
|
23
|
-
// buttonType: "social",
|
|
24
|
-
// url: "/",
|
|
25
|
-
// }}
|
|
26
|
-
// >
|
|
27
|
-
// {Template.bind({})}
|
|
28
|
-
// </Story>
|
|
29
|
-
// <Story
|
|
30
|
-
// name="whatsapp"
|
|
31
|
-
// args={{
|
|
32
|
-
// onClick: action("button-click"),
|
|
33
|
-
// centerIcon: "facebook-f",
|
|
34
|
-
// hoverBgColor: "white",
|
|
35
|
-
// bgColor: "#3b5999",
|
|
36
|
-
// textColor: "white",
|
|
37
|
-
// hoverTextColor: "black",
|
|
38
|
-
// buttonType: "social",
|
|
39
|
-
// url: "/",
|
|
40
|
-
// }}
|
|
41
|
-
// >
|
|
42
|
-
// {Template.bind({})}
|
|
43
|
-
// </Story>
|
|
44
|
-
// <Story
|
|
45
|
-
// name="twitter"
|
|
46
|
-
// args={{
|
|
47
|
-
// onClick: action("button-click"),
|
|
48
|
-
// centerIcon: "facebook-f",
|
|
49
|
-
// hoverBgColor: "white",
|
|
50
|
-
// bgColor: "#3b5999",
|
|
51
|
-
// textColor: "white",
|
|
52
|
-
// hoverTextColor: "black",
|
|
53
|
-
// buttonType: "social",
|
|
54
|
-
// url: "/",
|
|
55
|
-
// }}
|
|
56
|
-
// >
|
|
57
|
-
// {Template.bind({})}
|
|
58
|
-
// </Story>
|
|
59
|
-
// </Canvas>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
// <Canvas>
|
|
63
|
-
// <Story>
|
|
64
|
-
// {SocialButton}
|
|
65
|
-
// </Story>
|
|
66
|
-
// <Story>
|
|
67
|
-
// {SocialButton2}
|
|
68
|
-
// </Story>
|
|
69
|
-
// <Story>
|
|
70
|
-
// {SocialButton2}
|
|
71
|
-
// </Story>
|
|
72
|
-
// </Canvas> -->
|