trepur_components 0.1.0 → 0.1.4

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 (103) hide show
  1. package/babel.config.json +13 -13
  2. package/dist/Components/Breadcrumbs/Breadcrumbs.stories.js +2 -2
  3. package/dist/Components/Breadcrumbs/README.md +0 -1
  4. package/dist/Components/Breadcrumbs/{Breadcrumbs.js → index.js} +0 -0
  5. package/dist/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +87 -0
  6. package/dist/Components/BreadcrumbsBordered/README.md +0 -1
  7. package/dist/Components/BreadcrumbsBordered/index.css +67 -0
  8. package/dist/Components/BreadcrumbsBordered/{Breadcrumbs.js → index.js} +0 -0
  9. package/dist/Components/Button/Button.stories.js +11 -11
  10. package/dist/Components/Button/README.md +0 -1
  11. package/dist/Components/Button/{Button.js → index.js} +3 -3
  12. package/dist/Components/ButtonSlide/ButtonSlide.stories.js +11 -11
  13. package/dist/Components/ButtonSlide/README.md +0 -1
  14. package/dist/Components/ButtonSlide/{ButtonSlide.js → index.js} +3 -3
  15. package/dist/Components/Card/Card.stories.js +12 -12
  16. package/dist/Components/Card/README.md +0 -1
  17. package/dist/Components/Card/{Card.js → index.js} +4 -4
  18. package/dist/Components/CardImageLink/CardImageLink.stories.js +6 -6
  19. package/dist/Components/CardImageLink/{CardImageLink.js → index.js} +0 -0
  20. package/dist/Components/CardImageLinkList/CardImageLinkList.stories.js +2 -2
  21. package/dist/Components/CardImageLinkList/{CardImageLinkList.js → index.js} +2 -2
  22. package/dist/Components/CardList/CardList.stories.js +6 -157
  23. package/dist/Components/CardList/README.md +0 -1
  24. package/dist/Components/CardList/{CardList.js → index.js} +2 -2
  25. package/dist/Components/Icon/Icon.stories.js +6 -6
  26. package/dist/Components/Icon/README.md +0 -1
  27. package/dist/Components/Icon/{Icon.js → index.js} +0 -0
  28. package/dist/Components/Jumbotron/Jumbotron.stories.js +6 -6
  29. package/dist/Components/Jumbotron/{Jumbotron.js → index.js} +3 -3
  30. package/dist/Components/Nav/Nav.stories.js +108 -0
  31. package/dist/Components/Nav/README.md +0 -0
  32. package/dist/Components/{Nav.js → Nav/index.js} +5 -5
  33. package/dist/Components/Profile/Profile.stories.js +46 -0
  34. package/dist/Components/Profile/README.md +0 -0
  35. package/dist/Components/{Profile.js → Profile/index.js} +0 -0
  36. package/dist/Components/Search/README.md +0 -0
  37. package/dist/Components/Search/Search.stories.js +72 -0
  38. package/dist/Components/{Search.js → Search/index.js} +4 -4
  39. package/dist/Components/SignedInLinks/README.md +0 -0
  40. package/dist/Components/SignedInLinks/SignedInLinks.stories.js +48 -0
  41. package/dist/Components/{SignedInLinks.js → SignedInLinks/index.js} +0 -0
  42. package/dist/Components/SignedOutLinks/README.md +0 -0
  43. package/dist/Components/SignedOutLinks/SignedOutLinks.stories.js +48 -0
  44. package/dist/Components/{SignedOutLinks.js → SignedOutLinks/index.js} +9 -4
  45. package/dist/index.css +1 -64
  46. package/package.json +1 -2
  47. package/src/Components/Breadcrumbs/Breadcrumbs.stories.js +1 -1
  48. package/src/Components/Breadcrumbs/README.md +0 -1
  49. package/src/Components/Breadcrumbs/{Breadcrumbs.js → index.js} +0 -0
  50. package/src/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +67 -0
  51. package/src/Components/BreadcrumbsBordered/README.md +0 -1
  52. package/src/Components/BreadcrumbsBordered/index.css +67 -0
  53. package/src/Components/BreadcrumbsBordered/{Breadcrumbs.js → index.js} +0 -0
  54. package/src/Components/Button/{Button.stories.js → Button.stories.jsx} +1 -1
  55. package/src/Components/Button/README.md +0 -1
  56. package/src/Components/Button/{Button.js → index.jsx} +1 -1
  57. package/src/Components/ButtonSlide/ButtonSlide.stories.js +1 -1
  58. package/src/Components/ButtonSlide/README.md +0 -1
  59. package/src/Components/ButtonSlide/{ButtonSlide.js → index.js} +1 -1
  60. package/src/Components/Card/Card.stories.js +1 -1
  61. package/src/Components/Card/README.md +0 -1
  62. package/src/Components/Card/{Card.js → index.js} +2 -2
  63. package/src/Components/CardImageLink/CardImageLink.stories.js +1 -1
  64. package/src/Components/CardImageLink/{CardImageLink.js → index.js} +0 -0
  65. package/src/Components/CardImageLinkList/CardImageLinkList.stories.js +1 -1
  66. package/src/Components/CardImageLinkList/{CardImageLinkList.js → index.js} +1 -1
  67. package/src/Components/CardList/CardList.stories.js +3 -165
  68. package/src/Components/CardList/README.md +0 -1
  69. package/src/Components/CardList/{CardList.js → index.js} +1 -1
  70. package/src/Components/Icon/Icon.stories.js +1 -1
  71. package/src/Components/Icon/README.md +0 -1
  72. package/src/Components/Icon/{Icon.js → index.js} +0 -0
  73. package/src/Components/Jumbotron/Jumbotron.stories.js +1 -1
  74. package/src/Components/Jumbotron/{Jumbotron.js → index.js} +1 -1
  75. package/src/Components/Nav/Nav.stories.js +89 -0
  76. package/src/Components/Nav/README.md +0 -0
  77. package/src/Components/{Nav.js → Nav/index.js} +2 -2
  78. package/src/Components/Profile/Profile.stories.js +39 -0
  79. package/src/Components/Profile/README.md +0 -0
  80. package/src/Components/{Profile.js → Profile/index.js} +0 -0
  81. package/src/Components/Search/README.md +0 -0
  82. package/src/Components/Search/Search.stories.js +58 -0
  83. package/src/Components/{Search.js → Search/index.js} +4 -4
  84. package/src/Components/SignedInLinks/README.md +0 -0
  85. package/src/Components/SignedInLinks/SignedInLinks.stories.js +39 -0
  86. package/src/Components/{SignedInLinks.js → SignedInLinks/index.js} +0 -0
  87. package/src/Components/SignedOutLinks/README.md +0 -0
  88. package/src/Components/SignedOutLinks/SignedOutLinks.stories.js +39 -0
  89. package/src/Components/SignedOutLinks/index.js +13 -0
  90. package/src/index.css +1 -64
  91. package/dist/App.css +0 -42
  92. package/dist/App.js +0 -24
  93. package/dist/Components/BreadcrumbsBordered/Breadcrumbs.stories.js +0 -164
  94. package/public/Breadcrumbs/Breadcrumbs.stories.js +0 -144
  95. package/public/Logo.png +0 -0
  96. package/public/index.html +0 -10
  97. package/public/manifest.json +0 -25
  98. package/public/robots.txt +0 -3
  99. package/public/user.jpeg +0 -0
  100. package/src/App.css +0 -42
  101. package/src/App.js +0 -23
  102. package/src/Components/BreadcrumbsBordered/Breadcrumbs.stories.js +0 -159
  103. package/src/Components/SignedOutLinks.js +0 -11
@@ -1,4 +1,4 @@
1
- import Button from "../Button/Button"
1
+ import Button from "../Button/index"
2
2
 
3
3
  const Jumbotron = ({
4
4
  image,
@@ -0,0 +1,89 @@
1
+ import React from 'react'
2
+ import Readme from './README.md'
3
+ import Nav from './index'
4
+ import '../../index.css';
5
+
6
+ const links = [
7
+ { name: 'link 1', reference: '/' },
8
+ { name: 'link 2', reference: '/'},
9
+ { name: 'link n-1', reference: '/'},
10
+ { name: 'link n', reference: '/'}
11
+ ]
12
+
13
+ export default {
14
+ title: 'Components/Nav',
15
+ argTypes: {
16
+
17
+ },
18
+ decorators: [(story) => <div className={`p-4`}>{story()}</div>],
19
+ parameters: {
20
+ readme: {
21
+ sidebar: Readme,
22
+ },
23
+ },
24
+ }
25
+
26
+ export const _Nav = (args) => {
27
+ return (
28
+ <Nav
29
+ links={links}
30
+ navPosition='1'
31
+ navClass="bg-brand-light-grey pb-4 pt-2"
32
+ navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
33
+ logoClass='py-4'
34
+ />
35
+ )
36
+ }
37
+
38
+ export const NavWithSearch = () => {
39
+ return (
40
+ <Nav
41
+ links={links}
42
+ navPosition='1'
43
+ navClass="bg-brand-light-grey pb-4 pt-2"
44
+ navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
45
+ logoClass='py-4'
46
+ showSearch
47
+ />
48
+ )
49
+ }
50
+
51
+ export const NavWithProfile = () => {
52
+ return (
53
+ <Nav
54
+ links={links}
55
+ navPosition='1'
56
+ navClass="bg-brand-light-grey pb-4 pt-2"
57
+ navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
58
+ logoClass='py-4'
59
+ showProfile
60
+ />
61
+ )
62
+ }
63
+
64
+ export const NavWithSearchAndProfile = () => {
65
+ return (
66
+ <Nav
67
+ links={links}
68
+ navPosition='1'
69
+ navClass="bg-brand-light-grey pb-4 pt-2"
70
+ navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
71
+ logoClass='py-4'
72
+ showProfile
73
+ showSearch
74
+ />
75
+ )
76
+ }
77
+
78
+ export const NavAligned = () => {
79
+ return (
80
+ <Nav
81
+ links={links}
82
+ navPosition='1'
83
+ navClass="bg-brand-light-grey pb-4 pt-2"
84
+ navLinkClass='px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black'
85
+ logoClass='py-4'
86
+ alignNavAndLogo
87
+ />
88
+ )
89
+ }
File without changes
@@ -1,6 +1,6 @@
1
1
  import { useState } from 'react'
2
- import Profile from './Profile'
3
- import Search from './Search'
2
+ import Profile from '../Profile/index'
3
+ import Search from '../Search/index'
4
4
 
5
5
  const Header = ({
6
6
  links,
@@ -0,0 +1,39 @@
1
+ import React from 'react'
2
+ import Readme from './README.md'
3
+ import Profile from './index'
4
+ import '../../index.css';
5
+
6
+ const links = [
7
+ {
8
+ link: '/',
9
+ name: 'link 1'
10
+ },
11
+ {
12
+ link: '/',
13
+ name: 'link 2'
14
+ },
15
+ {
16
+ link: '/',
17
+ name: 'Link 3'
18
+ },
19
+ ]
20
+
21
+ export default {
22
+ title: 'Components/Breadcrumbs',
23
+ argTypes: {
24
+
25
+ },
26
+ decorators: [(story) => <div className={`p-4`}>{story()}</div>],
27
+ parameters: {
28
+ readme: {
29
+ sidebar: Readme,
30
+ },
31
+ },
32
+ }
33
+
34
+ export const _Breadcrumbs = (args) => {
35
+ return (
36
+ <Profile>
37
+ </Profile>
38
+ )
39
+ }
File without changes
File without changes
File without changes
@@ -0,0 +1,58 @@
1
+ import React from 'react'
2
+ import Readme from './README.md'
3
+ import Search from './index'
4
+ import '../../index.css';
5
+ import Icon from '../Icon/index'
6
+
7
+ export default {
8
+ title: 'Components/Search',
9
+ argTypes: {
10
+ },
11
+ decorators: [(story) => <div className={`p-4`}>{story()}</div>],
12
+ parameters: {
13
+ readme: {
14
+ sidebar: Readme,
15
+ },
16
+ },
17
+ }
18
+
19
+ export const _Search = (args) => {
20
+ return (
21
+ <Search>
22
+ </Search>
23
+ )
24
+ }
25
+
26
+ export const SearchWithPlaceholder = (args) => {
27
+ return (
28
+ <Search
29
+ placeholder='Enter some search item'>
30
+ </Search>
31
+ )
32
+ }
33
+
34
+ export const SearchWithLabel = (args) => {
35
+ return (
36
+ <Search
37
+ text='Label'>
38
+ </Search>
39
+ )
40
+ }
41
+
42
+ export const SearchWithIcon = (args) => {
43
+ return (
44
+ <Search
45
+ leftIcon = 'search'>
46
+ </Search>
47
+ )
48
+ }
49
+
50
+ export const SearchWithAll = (args) => {
51
+ return (
52
+ <Search
53
+ text='Label'
54
+ leftIcon = 'search'
55
+ placeholder='Enter some search item'>
56
+ </Search>
57
+ )
58
+ }
@@ -1,4 +1,4 @@
1
- import Icon from './Icon/Icon'
1
+ import Icon from '../Icon/index'
2
2
  const Search = ({
3
3
  className,
4
4
  onChange,
@@ -14,9 +14,9 @@ const Search = ({
14
14
  {/* <input className="ml-4 border-2 border-gray-300 bg-white h-10 px-5 pr-16 rounded-lg text-sm focus:outline-none" type="search" name="search" onChange={(e) => onChange(e.target.value)} placeholder={placeholder}/> */}
15
15
  <label className="relative block">
16
16
  <span className="sr-only">Search</span>
17
- <span className="absolute inset-y-0 left-5 flex items-center pl-2">
18
- {leftIcon && iconLeft}
19
- </span>
17
+ {leftIcon && <span className="absolute inset-y-0 left-5 flex items-center pl-2">
18
+ {iconLeft}
19
+ </span>}
20
20
  <input className="ml-4 pr-32 border-2 border-gray-300 h-10 px-5 placeholder:italic placeholder:text-gray-400 rounded-md py-2 pl-9 focus:outline-none focus:border-sky-500 focus:ring-sky-500 focus:ring-1" onChange={(e) => onChange(e.target.value)} placeholder={placeholder} type="text" name="search"/>
21
21
  </label>
22
22
  </div>
File without changes
@@ -0,0 +1,39 @@
1
+ import React from 'react'
2
+ import Readme from './README.md'
3
+ import SignedInLinks from './index'
4
+ import '../../index.css';
5
+
6
+ const links = [
7
+ {
8
+ link: '/',
9
+ name: 'link 1'
10
+ },
11
+ {
12
+ link: '/',
13
+ name: 'link 2'
14
+ },
15
+ {
16
+ link: '/',
17
+ name: 'Link 3'
18
+ },
19
+ ]
20
+
21
+ export default {
22
+ title: 'Components/SignedInLinks',
23
+ argTypes: {
24
+
25
+ },
26
+ decorators: [(story) => <div className={`p-4`}>{story()}</div>],
27
+ parameters: {
28
+ readme: {
29
+ sidebar: Readme,
30
+ },
31
+ },
32
+ }
33
+
34
+ export const _SignedInLinks = (args) => {
35
+ return (
36
+ <SignedInLinks links={links}>
37
+ </SignedInLinks>
38
+ )
39
+ }
File without changes
@@ -0,0 +1,39 @@
1
+ import React from 'react'
2
+ import Readme from './README.md'
3
+ import SignedOutLinks from './index'
4
+ import '../../index.css';
5
+
6
+ const links = [
7
+ {
8
+ link: '/',
9
+ name: 'link 1'
10
+ },
11
+ {
12
+ link: '/',
13
+ name: 'link 2'
14
+ },
15
+ {
16
+ link: '/',
17
+ name: 'Link 3'
18
+ },
19
+ ]
20
+
21
+ export default {
22
+ title: 'Components/SignedOutLinks',
23
+ argTypes: {
24
+
25
+ },
26
+ decorators: [(story) => <div className={`p-4`}>{story()}</div>],
27
+ parameters: {
28
+ readme: {
29
+ sidebar: Readme,
30
+ },
31
+ },
32
+ }
33
+
34
+ export const _SignedOutLinks = (args) => {
35
+ return (
36
+ <SignedOutLinks links={links}>
37
+ </SignedOutLinks>
38
+ )
39
+ }
@@ -0,0 +1,13 @@
1
+ const SignedInLinks = ({links}) => {
2
+ return (
3
+ <div className='container flex'>
4
+ <ul className='list-none mx-auto flex flex-1'>
5
+ {links && links.map((link) => {
6
+ return <li className='flex px-4'><a className='flex-1' href={link.url}>{link.name}</a></li>
7
+ })}
8
+ </ul>
9
+ </div>
10
+ )
11
+ }
12
+
13
+ export default SignedInLinks
package/src/index.css CHANGED
@@ -1,67 +1,4 @@
1
1
  @tailwind base;
2
2
  @tailwind components;
3
3
  @tailwind utilities;
4
- @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css');
5
-
6
- .right-arrow {
7
- @apply w-0;
8
- @apply h-0;
9
- border-top: 17px solid transparent;
10
- border-bottom: 17px solid transparent;
11
- border-left: 15px solid theme('colors.brand-border');
12
- @apply absolute;
13
- right: -15px;
14
- @apply top-0;
15
- }
16
-
17
- .let-arrow {
18
- @apply w-0;
19
- @apply h-0;
20
- border-top: 17px solid transparent;
21
- border-bottom: 17px solid transparent;
22
- border-left: 17px solid theme('colors.white');
23
- @apply absolute;
24
- left: 0px;
25
- @apply top-0;
26
- }
27
-
28
- .test-arrow {
29
- @apply w-0;
30
- @apply h-0;
31
- border-top: 17px solid transparent;
32
- border-bottom: 17px solid transparent;
33
- border-left: 15px solid theme('colors.brand-border');
34
- @apply absolute;
35
- left: -8px;
36
- bottom: -11px;
37
- transform: rotate(48deg);
38
- }
39
-
40
- .test-arrow-top {
41
- @apply w-0;
42
- @apply h-0;
43
- border-top: 15px solid theme('colors.brand-border');
44
- border-bottom: 17px solid transparent;
45
- border-left: 17px solid transparent;
46
- @apply absolute;
47
- left: -17px;
48
- top: 0px;
49
- }
50
-
51
- .voucherCode__btn {
52
- @apply relative;
53
- }
54
-
55
- .voucherCode__btn:hover .right-arrow {
56
- border-left-color: theme('colors.brand-primary');
57
- }
58
- .voucherCode__btn:hover .test-arrow {
59
- border-left-color: theme('colors.brand-primary');
60
- }
61
- .voucherCode__btn:hover .test-arrow-top {
62
- border-top-color: theme('colors.brand-primary');
63
- }
64
-
65
- .voucherCode__code:focus {
66
- @apply border-0;
67
- }
4
+ @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css');
package/dist/App.css DELETED
@@ -1,42 +0,0 @@
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 DELETED
@@ -1,24 +0,0 @@
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;
@@ -1,164 +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 _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;