trepur_components 0.1.1 → 0.1.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.
Files changed (96) hide show
  1. package/.babelrc +14 -0
  2. package/babel.config.js +4 -0
  3. package/dist/Components/Breadcrumbs/README.md +0 -1
  4. package/dist/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +2 -77
  5. package/dist/Components/BreadcrumbsBordered/README.md +0 -1
  6. package/dist/Components/BreadcrumbsBordered/index.css +67 -0
  7. package/dist/Components/Button/Button.stories.js +11 -11
  8. package/dist/Components/Button/README.md +0 -1
  9. package/dist/Components/Button/{Button.js → index.js} +3 -3
  10. package/dist/Components/ButtonSlide/ButtonSlide.stories.js +11 -11
  11. package/dist/Components/ButtonSlide/README.md +0 -1
  12. package/dist/Components/ButtonSlide/{ButtonSlide.js → index.js} +3 -3
  13. package/dist/Components/Card/Card.stories.js +12 -12
  14. package/dist/Components/Card/README.md +0 -1
  15. package/dist/Components/Card/{Card.js → index.js} +4 -4
  16. package/dist/Components/CardImageLink/CardImageLink.stories.js +6 -6
  17. package/dist/Components/CardImageLink/{CardImageLink.js → index.js} +0 -0
  18. package/dist/Components/CardImageLinkList/CardImageLinkList.stories.js +2 -2
  19. package/dist/Components/CardImageLinkList/{CardImageLinkList.js → index.js} +2 -2
  20. package/dist/Components/CardList/CardList.stories.js +6 -157
  21. package/dist/Components/CardList/README.md +0 -1
  22. package/dist/Components/CardList/{CardList.js → index.js} +2 -2
  23. package/dist/Components/Icon/Icon.stories.js +6 -6
  24. package/dist/Components/Icon/README.md +0 -1
  25. package/dist/Components/Icon/{Icon.js → index.js} +0 -0
  26. package/dist/Components/Jumbotron/Jumbotron.stories.js +6 -6
  27. package/dist/Components/Jumbotron/{Jumbotron.js → index.js} +3 -3
  28. package/dist/Components/Nav/Nav.stories.js +108 -0
  29. package/dist/Components/Nav/README.md +0 -0
  30. package/dist/Components/{Nav.js → Nav/index.js} +5 -5
  31. package/dist/Components/Profile/Profile.stories.js +46 -0
  32. package/dist/Components/Profile/README.md +0 -0
  33. package/dist/Components/{Profile.js → Profile/index.js} +0 -0
  34. package/dist/Components/Search/README.md +0 -0
  35. package/dist/Components/Search/Search.stories.js +72 -0
  36. package/dist/Components/{Search.js → Search/index.js} +4 -4
  37. package/dist/Components/SignedInLinks/README.md +0 -0
  38. package/dist/Components/SignedInLinks/SignedInLinks.stories.js +48 -0
  39. package/dist/Components/{SignedInLinks.js → SignedInLinks/index.js} +0 -0
  40. package/dist/Components/SignedOutLinks/README.md +0 -0
  41. package/dist/Components/SignedOutLinks/SignedOutLinks.stories.js +48 -0
  42. package/dist/Components/{SignedOutLinks.js → SignedOutLinks/index.js} +9 -4
  43. package/dist/index.css +1 -64
  44. package/package.json +2 -2
  45. package/src/Components/Breadcrumbs/README.md +0 -1
  46. package/src/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +1 -92
  47. package/src/Components/BreadcrumbsBordered/README.md +0 -1
  48. package/src/Components/BreadcrumbsBordered/index.css +67 -0
  49. package/src/Components/Button/Button.stories.js +1 -1
  50. package/src/Components/Button/README.md +0 -1
  51. package/src/Components/Button/{Button.js → index.js} +1 -1
  52. package/src/Components/ButtonSlide/ButtonSlide.stories.js +1 -1
  53. package/src/Components/ButtonSlide/README.md +0 -1
  54. package/src/Components/ButtonSlide/{ButtonSlide.js → index.js} +1 -1
  55. package/src/Components/Card/Card.stories.js +1 -1
  56. package/src/Components/Card/README.md +0 -1
  57. package/src/Components/Card/{Card.js → index.js} +2 -2
  58. package/src/Components/CardImageLink/CardImageLink.stories.js +1 -1
  59. package/src/Components/CardImageLink/{CardImageLink.js → index.js} +0 -0
  60. package/src/Components/CardImageLinkList/CardImageLinkList.stories.js +1 -1
  61. package/src/Components/CardImageLinkList/{CardImageLinkList.js → index.js} +1 -1
  62. package/src/Components/CardList/CardList.stories.js +3 -165
  63. package/src/Components/CardList/README.md +0 -1
  64. package/src/Components/CardList/{CardList.js → index.js} +1 -1
  65. package/src/Components/Icon/Icon.stories.js +1 -1
  66. package/src/Components/Icon/README.md +0 -1
  67. package/src/Components/Icon/{Icon.js → index.js} +0 -0
  68. package/src/Components/Jumbotron/Jumbotron.stories.js +1 -1
  69. package/src/Components/Jumbotron/{Jumbotron.js → index.js} +1 -1
  70. package/src/Components/Nav/Nav.stories.js +89 -0
  71. package/src/Components/Nav/README.md +0 -0
  72. package/src/Components/{Nav.js → Nav/index.js} +2 -2
  73. package/src/Components/Profile/Profile.stories.js +39 -0
  74. package/src/Components/Profile/README.md +0 -0
  75. package/src/Components/{Profile.js → Profile/index.js} +0 -0
  76. package/src/Components/Search/README.md +0 -0
  77. package/src/Components/Search/Search.stories.js +58 -0
  78. package/src/Components/{Search.js → Search/index.js} +4 -4
  79. package/src/Components/SignedInLinks/README.md +0 -0
  80. package/src/Components/SignedInLinks/SignedInLinks.stories.js +39 -0
  81. package/src/Components/{SignedInLinks.js → SignedInLinks/index.js} +0 -0
  82. package/src/Components/SignedOutLinks/README.md +0 -0
  83. package/src/Components/SignedOutLinks/SignedOutLinks.stories.js +39 -0
  84. package/src/Components/SignedOutLinks/index.js +13 -0
  85. package/src/index.css +1 -64
  86. package/babel.config.json +0 -18
  87. package/dist/App.css +0 -42
  88. package/dist/App.js +0 -24
  89. package/public/Logo.png +0 -0
  90. package/public/index.html +0 -10
  91. package/public/manifest.json +0 -25
  92. package/public/robots.txt +0 -3
  93. package/public/user.jpeg +0 -0
  94. package/src/App.css +0 -42
  95. package/src/App.js +0 -23
  96. package/src/Components/SignedOutLinks.js +0 -11
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports._SignedInLinks = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _README = _interopRequireDefault(require("./README.md"));
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
+ const links = [{
19
+ link: '/',
20
+ name: 'link 1'
21
+ }, {
22
+ link: '/',
23
+ name: 'link 2'
24
+ }, {
25
+ link: '/',
26
+ name: 'Link 3'
27
+ }];
28
+ var _default = {
29
+ title: 'Components/SignedInLinks',
30
+ argTypes: {},
31
+ decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
32
+ className: "p-4"
33
+ }, story())],
34
+ parameters: {
35
+ readme: {
36
+ sidebar: _README.default
37
+ }
38
+ }
39
+ };
40
+ exports.default = _default;
41
+
42
+ const _SignedInLinks = args => {
43
+ return /*#__PURE__*/_react.default.createElement(_index.default, {
44
+ links: links
45
+ });
46
+ };
47
+
48
+ exports._SignedInLinks = _SignedInLinks;
File without changes
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports._SignedOutLinks = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _README = _interopRequireDefault(require("./README.md"));
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
+ const links = [{
19
+ link: '/',
20
+ name: 'link 1'
21
+ }, {
22
+ link: '/',
23
+ name: 'link 2'
24
+ }, {
25
+ link: '/',
26
+ name: 'Link 3'
27
+ }];
28
+ var _default = {
29
+ title: 'Components/SignedOutLinks',
30
+ argTypes: {},
31
+ decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
32
+ className: "p-4"
33
+ }, story())],
34
+ parameters: {
35
+ readme: {
36
+ sidebar: _README.default
37
+ }
38
+ }
39
+ };
40
+ exports.default = _default;
41
+
42
+ const _SignedOutLinks = args => {
43
+ return /*#__PURE__*/_react.default.createElement(_index.default, {
44
+ links: links
45
+ });
46
+ };
47
+
48
+ exports._SignedOutLinks = _SignedOutLinks;
@@ -10,12 +10,17 @@ const SignedInLinks = _ref => {
10
10
  links
11
11
  } = _ref;
12
12
  return /*#__PURE__*/React.createElement("div", {
13
- className: "container mx-auto px-4 flex"
13
+ className: "container flex"
14
+ }, /*#__PURE__*/React.createElement("ul", {
15
+ className: "list-none mx-auto flex flex-1"
14
16
  }, links && links.map(link => {
15
17
  return /*#__PURE__*/React.createElement("li", {
16
- className: "flex-1"
17
- }, link);
18
- }));
18
+ className: "flex px-4"
19
+ }, /*#__PURE__*/React.createElement("a", {
20
+ className: "flex-1",
21
+ href: link.url
22
+ }, link.name));
23
+ })));
19
24
  };
20
25
 
21
26
  var _default = SignedInLinks;
package/dist/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/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.1.1",
5
+ "version": "0.1.5",
6
6
  "private": false,
7
7
  "dependencies": {
8
8
  "@babel/polyfill": "^7.12.1",
@@ -19,7 +19,6 @@
19
19
  "web-vitals": "^1.1.2"
20
20
  },
21
21
  "scripts": {
22
- "start": "craco start",
23
22
  "build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files",
24
23
  "test": "craco test",
25
24
  "eject": "react-scripts eject",
@@ -58,6 +57,7 @@
58
57
  "@babel/cli": "^7.16.8",
59
58
  "@babel/core": "^7.16.7",
60
59
  "@babel/preset-env": "^7.16.8",
60
+ "@babel/preset-react": "^7.16.7",
61
61
  "@storybook/addon-actions": "^6.3.12",
62
62
  "@storybook/addon-essentials": "^6.3.12",
63
63
  "@storybook/addon-links": "^6.3.12",
@@ -1 +0,0 @@
1
- hello this is an icon
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import Readme from './README.md'
3
3
  import Breadcrumbs from './index'
4
- import '../../index.css';
4
+ import './index.css';
5
5
 
6
6
  const links = [
7
7
  {
@@ -65,94 +65,3 @@ export const _Breadcrumbs = (args) => {
65
65
  </Breadcrumbs>
66
66
  )
67
67
  }
68
-
69
- // export const SecondaryButton = () => {
70
- // return (
71
- // <Button ctaText='I am a button'>
72
- // </Button>
73
- // )
74
- // }
75
-
76
- // export const WithIconRight = () => {
77
- // return (
78
- // <Button rightIcon='thumbs-up' ctaText='I am a button'>
79
- // </Button>
80
- // )
81
- // }
82
-
83
- // WithIconRight.story = {
84
- // name: 'With Icon (right)',
85
- // }
86
-
87
- // export const WithIconLeft = () => {
88
- // return (
89
- // <Button leftIcon='sign-in' ctaText='I am a button'>
90
- // </Button>
91
- // )
92
- // }
93
-
94
- // WithIconLeft.story = {
95
- // name: 'With Icon (left)',
96
- // }
97
-
98
- // export const WithBothIcons = () => {
99
- // return (
100
- // <Button leftIcon='star' rightIcon='star' ctaText='I am a button'>
101
- // </Button>
102
- // )
103
- // }
104
-
105
- // export const ButtonAsExternalLink = () => {
106
- // return (
107
- // <Button as='a-external' ctaText='I am a button'>
108
- // </Button>
109
- // )
110
- // }
111
-
112
- // ButtonAsExternalLink.story = {
113
- // name: 'Button as external link',
114
- // }
115
-
116
- // export const ButtonAsSemanticHtmlButton = () => {
117
- // return (
118
- // <Button as='button' htmlType='button' ctaText='I am a button' url='/'>
119
- // </Button>
120
- // )
121
- // }
122
-
123
- // ButtonAsSemanticHtmlButton.story = {
124
- // name: 'Button as semantic html button',
125
- // }
126
-
127
- // export const ButtonAsSemanticHtmlSubmitButton = () => {
128
- // return (
129
- // <Button as='button' htmlType='submit' ctaText='I am a button'>
130
- // </Button>
131
- // )
132
- // }
133
-
134
- // ButtonAsSemanticHtmlSubmitButton.story = {
135
- // name: 'Button as semantic html submit button',
136
- // }
137
-
138
- // export const ButtonAsInternalLink = () => {
139
- // return (
140
- // <Button as='Link' ctaText='I am a button' url='/'>
141
- // </Button>
142
- // )
143
- // }
144
-
145
- // ButtonAsInternalLink.story = {
146
- // name: 'Button as internal link',
147
- // }
148
-
149
- // export const WithOnClickMethod = () => {
150
- // return (
151
- // <Button ctaText='I am a button' onClick={action('button-click')}>
152
- // </Button>
153
- // )
154
- // }
155
-
156
- // WithOnClickMethod.story = {
157
- // name: 'With onClick method',
158
- // }
@@ -1 +0,0 @@
1
- hello this is an icon
@@ -0,0 +1,67 @@
1
+ @tailwind base;
2
+ @tailwind components;
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
+ }
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import { action } from '@storybook/addon-actions'
3
3
  import Readme from './README.md'
4
- import Button from './Button'
4
+ import Button from './index'
5
5
  import '../../index.css';
6
6
 
7
7
  export default {
@@ -1 +0,0 @@
1
- hello this is an icon
@@ -1,4 +1,4 @@
1
- import Icon from '../Icon/Icon'
1
+ import Icon from '../Icon/index'
2
2
 
3
3
  const Button = ({
4
4
  ctaText,
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import { action } from '@storybook/addon-actions'
3
3
  import Readme from './README.md'
4
- import ButtonSlide from './ButtonSlide'
4
+ import ButtonSlide from './index'
5
5
  import '../../index.css';
6
6
 
7
7
  export default {
@@ -1 +0,0 @@
1
- hello this is an icon
@@ -1,4 +1,4 @@
1
- import Icon from '../Icon/Icon'
1
+ import Icon from '../Icon/index'
2
2
  import './Styles.css';
3
3
  const ButtonSlide = ({
4
4
  ctaText,
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Readme from './README.md'
3
- import Card from './Card'
3
+ import Card from './index'
4
4
  import '../../index.css';
5
5
 
6
6
  export default {
@@ -1 +0,0 @@
1
- hello this is a card
@@ -1,5 +1,5 @@
1
- import Button from "../Button/Button"
2
- import ButtonSlide from "../ButtonSlide/ButtonSlide"
1
+ import Button from "../Button/index"
2
+ import ButtonSlide from "../ButtonSlide/index"
3
3
 
4
4
  const Card = ({
5
5
  id,
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Readme from './README.md'
3
- import CardImageLink from './CardImageLink'
3
+ import CardImageLink from './index'
4
4
  import '../../index.css';
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import Readme from './README.md'
3
- import CardImageLinkList from './CardImageLinkList'
3
+ import CardImageLinkList from './index'
4
4
  import '../../index.css';
5
5
 
6
6
  const list = [
@@ -1,4 +1,4 @@
1
- import CardImageLink from "../CardImageLink/CardImageLink"
1
+ import CardImageLink from "../CardImageLink/index"
2
2
 
3
3
  const CardImageLinkList = ({
4
4
  list
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import Readme from './README.md'
3
- import CardList from './CardList'
4
- import Card from '../Card/Card'
3
+ import CardList from './index'
4
+ import Card from '../Card/index'
5
5
  import '../../index.css';
6
6
 
7
7
  const list = [
@@ -36,166 +36,4 @@ export const _Cardlist = () => {
36
36
  return (
37
37
  <CardList list={list}></CardList>
38
38
  )
39
- }
40
-
41
- // export const CardTitleLeft = () => {
42
- // return (
43
- // <Card
44
- // id='card'
45
- // title='This is a title'
46
- // titleClass='font-bold'
47
- // subTitle='This is a subtitle'
48
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
49
- // ></Card>
50
- // )
51
- // }
52
-
53
- // export const CardTitleRight = () => {
54
- // return (
55
- // <Card
56
- // id='card'
57
- // title='This is a title'
58
- // titleClass='font-bold text-right'
59
- // subTitle='This is a subtitle'
60
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
61
- // ></Card>
62
- // )
63
- // }
64
-
65
- // export const CardWithImage = () => {
66
- // return (
67
- // <Card
68
- // id='card'
69
- // title='This is a title'
70
- // titleClass='text-center font-bold'
71
- // subTitle='This is a subtitle'
72
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
73
- // image='https://picsum.photos/500/300'>
74
- // </Card>
75
- // )
76
- // }
77
-
78
- // export const CardWithExtraText = () => {
79
- // return (
80
- // <Card
81
- // id='card'
82
- // title='This is a title'
83
- // titleClass='text-center font-bold'
84
- // subTitle='This is a subtitle'
85
- // extraText='This is some extra text'
86
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
87
- // image='https://picsum.photos/500/300'>
88
- // </Card>
89
- // )
90
- // }
91
-
92
- // export const CardWithButton = () => {
93
- // return (
94
- // <Card
95
- // id='card'
96
- // title='This is a title'
97
- // titleClass='text-center font-bold'
98
- // subTitle='This is a subtitle'
99
- // extraText='This is some extra text'
100
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
101
- // image='https://picsum.photos/500/300'
102
- // hasCta
103
- // ctaText='This is a button'
104
- // >
105
- // </Card>
106
- // )
107
- // }
108
-
109
- // export const CardWithSlideButton = () => {
110
- // return (
111
- // <Card
112
- // id='card'
113
- // title='This is a title'
114
- // titleClass='text-center font-bold'
115
- // subTitle='This is a subtitle'
116
- // extraText='This is some extra text'
117
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
118
- // image='https://picsum.photos/500/300'
119
- // hasCta
120
- // btnType='slide'
121
- // ctaText='This is a button'>
122
- // </Card>
123
- // )
124
- // }
125
-
126
- // export const CardWithImageBelowTitle = () => {
127
- // return (
128
- // <Card
129
- // id='card'
130
- // title='This is a title'
131
- // titleClass='text-center font-bold'
132
- // subTitle='This is a subtitle'
133
- // extraText='This is some extra text'
134
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
135
- // image='https://picsum.photos/500/300'
136
- // hasCta
137
- // ctaText='This is a button'
138
- // imageBelowTitle>
139
- // </Card>
140
- // )
141
- // }
142
-
143
- // export const CardRounded = () => {
144
- // return (
145
- // <Card
146
- // id='card'
147
- // title='This is a title'
148
- // titleClass='text-center font-bold'
149
- // subTitle='This is a subtitle'
150
- // extraText='This is some extra text'
151
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
152
- // image='https://picsum.photos/500/300'
153
- // hasCta
154
- // ctaText='This is a button'
155
- // rounded>
156
- // </Card>
157
- // )
158
- // }
159
-
160
- // export const CardRoundedWithImageBelowTitle = () => {
161
- // return (
162
- // <Card
163
- // id='card'
164
- // title='This is a title'
165
- // titleClass='text-center font-bold'
166
- // subTitle='This is a subtitle'
167
- // extraText='This is some extra text'
168
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
169
- // image='https://picsum.photos/500/300'
170
- // hasCta
171
- // ctaText='This is a button'
172
- // imageBelowTitle
173
- // rounded>
174
- // </Card>
175
- // )
176
- // }
177
-
178
- // export const lotsOfCards = () => {
179
- // let cards = []
180
- // for (let i = 0; i < 8 ; i++) {
181
- // cards.push(<Card
182
- // id='card'
183
- // title='This is a title'
184
- // titleClass='text-center font-bold'
185
- // subTitle='This is a subtitle'
186
- // extraText='This is some extra text'
187
- // description='This is a description, it can be really long if you want it to be. The text will wrap onto a new line if it exceeds the width of the card'
188
- // image='https://picsum.photos/500/300'
189
- // hasCta
190
- // ctaText='This is a button'
191
- // imageBelowTitle
192
- // rounded>
193
- // </Card>)
194
- // }
195
- // return (
196
- // <div className="grid grid-cols-4 grid-flow-row">
197
- // {cards}
198
- // </div>
199
- // )
200
- // }
201
-
39
+ }
@@ -1 +0,0 @@
1
- hello this is a card
@@ -1,4 +1,4 @@
1
- import Card from "../Card/Card"
1
+ import Card from "../Card/index"
2
2
 
3
3
  const CardList = ({
4
4
  list