trepur_components 0.1.0

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 (93) hide show
  1. package/.storybook/main.js +32 -0
  2. package/.storybook/preview.js +9 -0
  3. package/README.md +70 -0
  4. package/babel.config.json +18 -0
  5. package/craco.config.js +10 -0
  6. package/dist/App.css +42 -0
  7. package/dist/App.js +24 -0
  8. package/dist/Components/Breadcrumbs/Breadcrumbs.js +32 -0
  9. package/dist/Components/Breadcrumbs/Breadcrumbs.stories.js +164 -0
  10. package/dist/Components/Breadcrumbs/README.md +1 -0
  11. package/dist/Components/BreadcrumbsBordered/Breadcrumbs.js +49 -0
  12. package/dist/Components/BreadcrumbsBordered/Breadcrumbs.stories.js +164 -0
  13. package/dist/Components/BreadcrumbsBordered/README.md +1 -0
  14. package/dist/Components/Button/Button.js +35 -0
  15. package/dist/Components/Button/Button.stories.js +185 -0
  16. package/dist/Components/Button/README.md +1 -0
  17. package/dist/Components/ButtonSlide/ButtonSlide.js +37 -0
  18. package/dist/Components/ButtonSlide/ButtonSlide.stories.js +185 -0
  19. package/dist/Components/ButtonSlide/README.md +1 -0
  20. package/dist/Components/ButtonSlide/Styles.css +25 -0
  21. package/dist/Components/Card/Card.js +83 -0
  22. package/dist/Components/Card/Card.stories.js +204 -0
  23. package/dist/Components/Card/README.md +1 -0
  24. package/dist/Components/CardImageLink/CardImageLink.js +36 -0
  25. package/dist/Components/CardImageLink/CardImageLink.stories.js +89 -0
  26. package/dist/Components/CardImageLink/README.md +0 -0
  27. package/dist/Components/CardImageLinkList/CardImageLinkList.js +35 -0
  28. package/dist/Components/CardImageLinkList/CardImageLinkList.stories.js +63 -0
  29. package/dist/Components/CardImageLinkList/README.md +0 -0
  30. package/dist/Components/CardList/CardList.js +36 -0
  31. package/dist/Components/CardList/CardList.stories.js +204 -0
  32. package/dist/Components/CardList/README.md +1 -0
  33. package/dist/Components/Icon/Icon.js +45 -0
  34. package/dist/Components/Icon/Icon.stories.js +73 -0
  35. package/dist/Components/Icon/README.md +1 -0
  36. package/dist/Components/Jumbotron/Jumbotron.js +43 -0
  37. package/dist/Components/Jumbotron/Jumbotron.stories.js +81 -0
  38. package/dist/Components/Jumbotron/README.md +0 -0
  39. package/dist/Components/Nav.js +170 -0
  40. package/dist/Components/Profile.js +41 -0
  41. package/dist/Components/Search.js +43 -0
  42. package/dist/Components/SignedInLinks.js +27 -0
  43. package/dist/Components/SignedOutLinks.js +22 -0
  44. package/dist/index.css +67 -0
  45. package/dist/index.js +19 -0
  46. package/package.json +71 -0
  47. package/public/Breadcrumbs/Breadcrumbs.stories.js +144 -0
  48. package/public/Logo.png +0 -0
  49. package/public/index.html +10 -0
  50. package/public/manifest.json +25 -0
  51. package/public/robots.txt +3 -0
  52. package/public/user.jpeg +0 -0
  53. package/src/App.css +42 -0
  54. package/src/App.js +23 -0
  55. package/src/Components/Breadcrumbs/Breadcrumbs.js +27 -0
  56. package/src/Components/Breadcrumbs/Breadcrumbs.stories.js +158 -0
  57. package/src/Components/Breadcrumbs/README.md +1 -0
  58. package/src/Components/BreadcrumbsBordered/Breadcrumbs.js +35 -0
  59. package/src/Components/BreadcrumbsBordered/Breadcrumbs.stories.js +159 -0
  60. package/src/Components/BreadcrumbsBordered/README.md +1 -0
  61. package/src/Components/Button/Button.js +26 -0
  62. package/src/Components/Button/Button.stories.js +144 -0
  63. package/src/Components/Button/README.md +1 -0
  64. package/src/Components/ButtonSlide/ButtonSlide.js +26 -0
  65. package/src/Components/ButtonSlide/ButtonSlide.stories.js +144 -0
  66. package/src/Components/ButtonSlide/README.md +1 -0
  67. package/src/Components/ButtonSlide/Styles.css +25 -0
  68. package/src/Components/Card/Card.js +67 -0
  69. package/src/Components/Card/Card.stories.js +190 -0
  70. package/src/Components/Card/README.md +1 -0
  71. package/src/Components/CardImageLink/CardImageLink.js +22 -0
  72. package/src/Components/CardImageLink/CardImageLink.stories.js +73 -0
  73. package/src/Components/CardImageLink/README.md +0 -0
  74. package/src/Components/CardImageLinkList/CardImageLinkList.js +24 -0
  75. package/src/Components/CardImageLinkList/CardImageLinkList.stories.js +50 -0
  76. package/src/Components/CardImageLinkList/README.md +0 -0
  77. package/src/Components/CardList/CardList.js +29 -0
  78. package/src/Components/CardList/CardList.stories.js +201 -0
  79. package/src/Components/CardList/README.md +1 -0
  80. package/src/Components/Icon/Icon.js +28 -0
  81. package/src/Components/Icon/Icon.stories.js +49 -0
  82. package/src/Components/Icon/README.md +1 -0
  83. package/src/Components/Jumbotron/Jumbotron.js +31 -0
  84. package/src/Components/Jumbotron/Jumbotron.stories.js +66 -0
  85. package/src/Components/Jumbotron/README.md +0 -0
  86. package/src/Components/Nav.js +109 -0
  87. package/src/Components/Profile.js +25 -0
  88. package/src/Components/Search.js +26 -0
  89. package/src/Components/SignedInLinks.js +14 -0
  90. package/src/Components/SignedOutLinks.js +11 -0
  91. package/src/index.css +67 -0
  92. package/src/index.js +4 -0
  93. package/tailwind.config.js +69 -0
@@ -0,0 +1,32 @@
1
+ const path = require('path')
2
+
3
+ module.exports = {
4
+ "stories": [
5
+ "../src/**/*.stories.mdx",
6
+ "../src/**/*.stories.@(js|jsx|ts|tsx)"
7
+ ],
8
+ "addons": [
9
+ "@storybook/addon-links",
10
+ "@storybook/addon-essentials",
11
+ "@storybook/preset-create-react-app"
12
+ ],
13
+ webpackFinal: async (config) => {
14
+ config.module.rules.push({
15
+ test: /\.css$/,
16
+ use: [
17
+ {
18
+ loader: 'postcss-loader',
19
+ options: {
20
+ ident: 'postcss',
21
+ plugins: [
22
+ require('tailwindcss'),
23
+ require('autoprefixer'),
24
+ ],
25
+ },
26
+ },
27
+ ],
28
+ include: path.resolve(__dirname, '../'),
29
+ })
30
+ return config
31
+ },
32
+ }
@@ -0,0 +1,9 @@
1
+ export const parameters = {
2
+ actions: { argTypesRegex: "^on[A-Z].*" },
3
+ controls: {
4
+ matchers: {
5
+ color: /(background|color)$/i,
6
+ date: /Date$/,
7
+ },
8
+ },
9
+ }
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # Getting Started with Create React App
2
+
3
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run:
8
+
9
+ ### `npm start`
10
+
11
+ Runs the app in the development mode.\
12
+ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
+
14
+ The page will reload if you make edits.\
15
+ You will also see any lint errors in the console.
16
+
17
+ ### `npm test`
18
+
19
+ Launches the test runner in the interactive watch mode.\
20
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
+
22
+ ### `npm run build`
23
+
24
+ Builds the app for production to the `build` folder.\
25
+ It correctly bundles React in production mode and optimizes the build for the best performance.
26
+
27
+ The build is minified and the filenames include the hashes.\
28
+ Your app is ready to be deployed!
29
+
30
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
+
32
+ ### `npm run eject`
33
+
34
+ **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
+
36
+ If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
+
38
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
+
40
+ You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
+
42
+ ## Learn More
43
+
44
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
+
46
+ To learn React, check out the [React documentation](https://reactjs.org/).
47
+
48
+ ### Code Splitting
49
+
50
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51
+
52
+ ### Analyzing the Bundle Size
53
+
54
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55
+
56
+ ### Making a Progressive Web App
57
+
58
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59
+
60
+ ### Advanced Configuration
61
+
62
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63
+
64
+ ### Deployment
65
+
66
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67
+
68
+ ### `npm run build` fails to minify
69
+
70
+ This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
@@ -0,0 +1,18 @@
1
+ {
2
+ "presets": [
3
+ [
4
+ "@babel/env",
5
+ {
6
+ "targets": {
7
+ "edge": "17",
8
+ "firefox": "60",
9
+ "chrome": "67",
10
+ "safari": "11.1"
11
+ },
12
+ "useBuiltIns": "usage",
13
+ "corejs": "3.6.5"
14
+ }
15
+ ],
16
+ "@babel/preset-react"
17
+ ]
18
+ }
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ style: {
3
+ postcss: {
4
+ plugins: [
5
+ require('tailwindcss'),
6
+ require('autoprefixer'),
7
+ ],
8
+ },
9
+ },
10
+ }
package/dist/App.css ADDED
@@ -0,0 +1,42 @@
1
+ .App {
2
+ text-align: center;
3
+ }
4
+
5
+ .App-logo {
6
+ height: 40vmin;
7
+ pointer-events: none;
8
+ }
9
+
10
+ @media (prefers-reduced-motion: no-preference) {
11
+ .App-logo {
12
+ animation: App-logo-spin infinite 20s linear;
13
+ }
14
+ }
15
+
16
+ .App-header {
17
+ background-color: #282c34;
18
+ min-height: 100vh;
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: center;
22
+ justify-content: center;
23
+ font-size: calc(10px + 2vmin);
24
+ color: white;
25
+ }
26
+
27
+ .App-link {
28
+ color: #61dafb;
29
+ }
30
+
31
+ @keyframes App-logo-spin {
32
+ from {
33
+ transform: rotate(0deg);
34
+ }
35
+ to {
36
+ transform: rotate(360deg);
37
+ }
38
+ }
39
+
40
+ react-calendar__tile--now {
41
+ background: #31A3DD !important;
42
+ }
package/dist/App.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("./App.css");
9
+
10
+ function App() {
11
+ return /*#__PURE__*/React.createElement("div", {
12
+ className: "App"
13
+ }, /*#__PURE__*/React.createElement("header", {
14
+ className: "App-header"
15
+ }, /*#__PURE__*/React.createElement("p", null, "Edit ", /*#__PURE__*/React.createElement("code", null, "src/App.js"), " and save to reload."), /*#__PURE__*/React.createElement("a", {
16
+ className: "App-link",
17
+ href: "https://reactjs.org",
18
+ target: "_blank",
19
+ rel: "noopener noreferrer"
20
+ }, "Learn React")));
21
+ }
22
+
23
+ var _default = App;
24
+ exports.default = _default;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ const Breadcrumbs = _ref => {
9
+ let {
10
+ className,
11
+ links
12
+ } = _ref;
13
+ const linksLength = Object.keys(links).length;
14
+ let classes = className + ' flex py-2 px-8 ';
15
+ return /*#__PURE__*/React.createElement("ul", {
16
+ className: classes
17
+ }, links && links.map((link, i) => {
18
+ return /*#__PURE__*/React.createElement("div", {
19
+ key: link.name
20
+ }, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("div", {
21
+ className: "flex"
22
+ }, i + 1 >= linksLength ? /*#__PURE__*/React.createElement("p", {
23
+ className: ""
24
+ }, link.name) : /*#__PURE__*/React.createElement("a", {
25
+ className: "text-social-facebook hover:underline",
26
+ href: link.link
27
+ }, link.name), i + 1 < linksLength ? /*#__PURE__*/React.createElement("p", null, "\xA0 > \xA0") : null)));
28
+ }));
29
+ };
30
+
31
+ var _default = Breadcrumbs;
32
+ exports.default = _default;
@@ -0,0 +1,164 @@
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 _addonActions = require("@storybook/addon-actions");
11
+
12
+ var _README = _interopRequireDefault(require("./README.md"));
13
+
14
+ var _Breadcrumbs2 = _interopRequireDefault(require("./Breadcrumbs"));
15
+
16
+ require("../../index.css");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ const links = [{
21
+ link: '/',
22
+ name: 'link 1'
23
+ }, {
24
+ link: '/',
25
+ name: 'link 2'
26
+ }, {
27
+ link: '/',
28
+ name: 'Link 3'
29
+ }];
30
+ var _default = {
31
+ title: 'Components/Breadcrumbs',
32
+ argTypes: {
33
+ label: {
34
+ name: 'Text',
35
+ control: {
36
+ type: 'text'
37
+ },
38
+ defaultValue: 'Shop Now'
39
+ },
40
+ type: {
41
+ name: 'Type',
42
+ defaultValue: 'primary',
43
+ options: ['primary', 'secondary', 'ghost'],
44
+ control: {
45
+ type: 'select'
46
+ }
47
+ },
48
+ iconPlacement: {
49
+ name: 'Icon',
50
+ defaultValue: 'none',
51
+ options: ['left', 'right', 'both', 'none'],
52
+ control: {
53
+ type: 'select'
54
+ }
55
+ },
56
+ padded: {
57
+ name: 'Padded',
58
+ control: {
59
+ type: 'boolean'
60
+ },
61
+ defaultValue: false
62
+ },
63
+ social: {
64
+ name: 'Social',
65
+ defaultValue: 'None',
66
+ options: ['Facebook', 'Twitter', 'Whatsapp', 'None'],
67
+ control: {
68
+ type: 'select'
69
+ }
70
+ }
71
+ },
72
+ decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
73
+ className: "p-4"
74
+ }, story())],
75
+ parameters: {
76
+ readme: {
77
+ sidebar: _README.default
78
+ }
79
+ }
80
+ };
81
+ exports.default = _default;
82
+
83
+ const _Breadcrumbs = args => {
84
+ return /*#__PURE__*/_react.default.createElement(_Breadcrumbs2.default, {
85
+ links: links
86
+ });
87
+ }; // export const SecondaryButton = () => {
88
+ // return (
89
+ // <Button ctaText='I am a button'>
90
+ // </Button>
91
+ // )
92
+ // }
93
+ // export const WithIconRight = () => {
94
+ // return (
95
+ // <Button rightIcon='thumbs-up' ctaText='I am a button'>
96
+ // </Button>
97
+ // )
98
+ // }
99
+ // WithIconRight.story = {
100
+ // name: 'With Icon (right)',
101
+ // }
102
+ // export const WithIconLeft = () => {
103
+ // return (
104
+ // <Button leftIcon='sign-in' ctaText='I am a button'>
105
+ // </Button>
106
+ // )
107
+ // }
108
+ // WithIconLeft.story = {
109
+ // name: 'With Icon (left)',
110
+ // }
111
+ // export const WithBothIcons = () => {
112
+ // return (
113
+ // <Button leftIcon='star' rightIcon='star' ctaText='I am a button'>
114
+ // </Button>
115
+ // )
116
+ // }
117
+ // export const ButtonAsExternalLink = () => {
118
+ // return (
119
+ // <Button as='a-external' ctaText='I am a button'>
120
+ // </Button>
121
+ // )
122
+ // }
123
+ // ButtonAsExternalLink.story = {
124
+ // name: 'Button as external link',
125
+ // }
126
+ // export const ButtonAsSemanticHtmlButton = () => {
127
+ // return (
128
+ // <Button as='button' htmlType='button' ctaText='I am a button' url='/'>
129
+ // </Button>
130
+ // )
131
+ // }
132
+ // ButtonAsSemanticHtmlButton.story = {
133
+ // name: 'Button as semantic html button',
134
+ // }
135
+ // export const ButtonAsSemanticHtmlSubmitButton = () => {
136
+ // return (
137
+ // <Button as='button' htmlType='submit' ctaText='I am a button'>
138
+ // </Button>
139
+ // )
140
+ // }
141
+ // ButtonAsSemanticHtmlSubmitButton.story = {
142
+ // name: 'Button as semantic html submit button',
143
+ // }
144
+ // export const ButtonAsInternalLink = () => {
145
+ // return (
146
+ // <Button as='Link' ctaText='I am a button' url='/'>
147
+ // </Button>
148
+ // )
149
+ // }
150
+ // ButtonAsInternalLink.story = {
151
+ // name: 'Button as internal link',
152
+ // }
153
+ // export const WithOnClickMethod = () => {
154
+ // return (
155
+ // <Button ctaText='I am a button' onClick={action('button-click')}>
156
+ // </Button>
157
+ // )
158
+ // }
159
+ // WithOnClickMethod.story = {
160
+ // name: 'With onClick method',
161
+ // }
162
+
163
+
164
+ exports._Breadcrumbs = _Breadcrumbs;
@@ -0,0 +1 @@
1
+ hello this is an icon
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ const Breadcrumbs = _ref => {
9
+ let {
10
+ className,
11
+ links
12
+ } = _ref;
13
+ const linksLength = Object.keys(links).length;
14
+ let classes = 'flex py-2 px-8 ' + className;
15
+ return /*#__PURE__*/React.createElement("ul", {
16
+ className: classes
17
+ }, links && links.map((link, i) => {
18
+ return /*#__PURE__*/React.createElement("div", {
19
+ key: link.name
20
+ }, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("div", {
21
+ className: " px-4 mx-3 hover:bg-brand-primary bg-brand-border border-brand-primary voucherCode__btn h-8"
22
+ }, i + 1 >= linksLength ? /*#__PURE__*/React.createElement("p", {
23
+ className: "pl-2 pt-1"
24
+ }, /*#__PURE__*/React.createElement("span", {
25
+ className: "test-arrow"
26
+ }), /*#__PURE__*/React.createElement("span", {
27
+ className: "test-arrow-top"
28
+ }), /*#__PURE__*/React.createElement("span", {
29
+ className: "left-arrow"
30
+ }), link.name, /*#__PURE__*/React.createElement("span", {
31
+ className: "right-arrow"
32
+ })) : /*#__PURE__*/React.createElement("a", {
33
+ href: link.link
34
+ }, /*#__PURE__*/React.createElement("p", {
35
+ className: i !== 0 ? 'pl-2 pt-1 text-social-facebook hover:underline' : 'pt-1 text-social-facebook hover:underline'
36
+ }, /*#__PURE__*/React.createElement("span", {
37
+ className: "test-arrow"
38
+ }), /*#__PURE__*/React.createElement("span", {
39
+ className: "test-arrow-top"
40
+ }), i !== 0 ? /*#__PURE__*/React.createElement("span", {
41
+ className: "left-arrow"
42
+ }) : null, link.name, /*#__PURE__*/React.createElement("span", {
43
+ className: "right-arrow"
44
+ }))))));
45
+ }));
46
+ };
47
+
48
+ var _default = Breadcrumbs;
49
+ exports.default = _default;
@@ -0,0 +1,164 @@
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 _addonActions = require("@storybook/addon-actions");
11
+
12
+ var _README = _interopRequireDefault(require("./README.md"));
13
+
14
+ var _Breadcrumbs2 = _interopRequireDefault(require("./Breadcrumbs"));
15
+
16
+ require("../../index.css");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ const links = [{
21
+ link: '/',
22
+ name: 'link 1'
23
+ }, {
24
+ link: '/',
25
+ name: 'link 2'
26
+ }, {
27
+ link: '/',
28
+ name: 'Link 3'
29
+ }];
30
+ var _default = {
31
+ title: 'Components/BreadcrumbsBordered',
32
+ argTypes: {
33
+ label: {
34
+ name: 'Text',
35
+ control: {
36
+ type: 'text'
37
+ },
38
+ defaultValue: 'Shop Now'
39
+ },
40
+ type: {
41
+ name: 'Type',
42
+ defaultValue: 'primary',
43
+ options: ['primary', 'secondary', 'ghost'],
44
+ control: {
45
+ type: 'select'
46
+ }
47
+ },
48
+ iconPlacement: {
49
+ name: 'Icon',
50
+ defaultValue: 'none',
51
+ options: ['left', 'right', 'both', 'none'],
52
+ control: {
53
+ type: 'select'
54
+ }
55
+ },
56
+ padded: {
57
+ name: 'Padded',
58
+ control: {
59
+ type: 'boolean'
60
+ },
61
+ defaultValue: false
62
+ },
63
+ social: {
64
+ name: 'Social',
65
+ defaultValue: 'None',
66
+ options: ['Facebook', 'Twitter', 'Whatsapp', 'None'],
67
+ control: {
68
+ type: 'select'
69
+ }
70
+ }
71
+ },
72
+ decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
73
+ className: "p-4"
74
+ }, story())],
75
+ parameters: {
76
+ readme: {
77
+ sidebar: _README.default
78
+ }
79
+ }
80
+ };
81
+ exports.default = _default;
82
+
83
+ const _Breadcrumbs = args => {
84
+ return /*#__PURE__*/_react.default.createElement(_Breadcrumbs2.default, {
85
+ links: links
86
+ });
87
+ }; // export const SecondaryButton = () => {
88
+ // return (
89
+ // <Button ctaText='I am a button'>
90
+ // </Button>
91
+ // )
92
+ // }
93
+ // export const WithIconRight = () => {
94
+ // return (
95
+ // <Button rightIcon='thumbs-up' ctaText='I am a button'>
96
+ // </Button>
97
+ // )
98
+ // }
99
+ // WithIconRight.story = {
100
+ // name: 'With Icon (right)',
101
+ // }
102
+ // export const WithIconLeft = () => {
103
+ // return (
104
+ // <Button leftIcon='sign-in' ctaText='I am a button'>
105
+ // </Button>
106
+ // )
107
+ // }
108
+ // WithIconLeft.story = {
109
+ // name: 'With Icon (left)',
110
+ // }
111
+ // export const WithBothIcons = () => {
112
+ // return (
113
+ // <Button leftIcon='star' rightIcon='star' ctaText='I am a button'>
114
+ // </Button>
115
+ // )
116
+ // }
117
+ // export const ButtonAsExternalLink = () => {
118
+ // return (
119
+ // <Button as='a-external' ctaText='I am a button'>
120
+ // </Button>
121
+ // )
122
+ // }
123
+ // ButtonAsExternalLink.story = {
124
+ // name: 'Button as external link',
125
+ // }
126
+ // export const ButtonAsSemanticHtmlButton = () => {
127
+ // return (
128
+ // <Button as='button' htmlType='button' ctaText='I am a button' url='/'>
129
+ // </Button>
130
+ // )
131
+ // }
132
+ // ButtonAsSemanticHtmlButton.story = {
133
+ // name: 'Button as semantic html button',
134
+ // }
135
+ // export const ButtonAsSemanticHtmlSubmitButton = () => {
136
+ // return (
137
+ // <Button as='button' htmlType='submit' ctaText='I am a button'>
138
+ // </Button>
139
+ // )
140
+ // }
141
+ // ButtonAsSemanticHtmlSubmitButton.story = {
142
+ // name: 'Button as semantic html submit button',
143
+ // }
144
+ // export const ButtonAsInternalLink = () => {
145
+ // return (
146
+ // <Button as='Link' ctaText='I am a button' url='/'>
147
+ // </Button>
148
+ // )
149
+ // }
150
+ // ButtonAsInternalLink.story = {
151
+ // name: 'Button as internal link',
152
+ // }
153
+ // export const WithOnClickMethod = () => {
154
+ // return (
155
+ // <Button ctaText='I am a button' onClick={action('button-click')}>
156
+ // </Button>
157
+ // )
158
+ // }
159
+ // WithOnClickMethod.story = {
160
+ // name: 'With onClick method',
161
+ // }
162
+
163
+
164
+ exports._Breadcrumbs = _Breadcrumbs;
@@ -0,0 +1 @@
1
+ hello this is an icon
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _Icon = _interopRequireDefault(require("../Icon/Icon"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ const Button = _ref => {
13
+ let {
14
+ ctaText,
15
+ ctaLink,
16
+ className,
17
+ onClick,
18
+ leftIcon,
19
+ rightIcon
20
+ } = _ref;
21
+ let classes = className + ' py-2 px-8 rounded-lg text-black border-2 border-black border-gray-300 bg-white hover:bg-red hover:text-black transition-background-color duration-500 transform';
22
+ let iconLeft = /*#__PURE__*/React.createElement(_Icon.default, {
23
+ type: leftIcon
24
+ });
25
+ let iconRight = /*#__PURE__*/React.createElement(_Icon.default, {
26
+ type: rightIcon
27
+ });
28
+ return /*#__PURE__*/React.createElement("button", {
29
+ className: classes,
30
+ onClick: onClick
31
+ }, leftIcon && iconLeft, ctaText, rightIcon && iconRight);
32
+ };
33
+
34
+ var _default = Button;
35
+ exports.default = _default;