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,204 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.lotsOfCards = exports.default = exports._Card = exports.CardWithSlideButton = exports.CardWithImageBelowTitle = exports.CardWithImage = exports.CardWithExtraText = exports.CardWithButton = exports.CardTitleRight = exports.CardTitleLeft = exports.CardRoundedWithImageBelowTitle = exports.CardRounded = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _README = _interopRequireDefault(require("./README.md"));
11
+
12
+ var _Card2 = _interopRequireDefault(require("./Card"));
13
+
14
+ require("../../index.css");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ var _default = {
19
+ title: 'Components/Card',
20
+ argTypes: {},
21
+ decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
22
+ className: "p-4"
23
+ }, story())],
24
+ parameters: {
25
+ readme: {
26
+ sidebar: _README.default
27
+ }
28
+ }
29
+ };
30
+ exports.default = _default;
31
+
32
+ const _Card = () => {
33
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
34
+ id: "card",
35
+ title: "This is a title",
36
+ titleClass: "text-center font-bold",
37
+ subTitle: "This is a subtitle",
38
+ 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"
39
+ });
40
+ };
41
+
42
+ exports._Card = _Card;
43
+
44
+ const CardTitleLeft = () => {
45
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
46
+ id: "card",
47
+ title: "This is a title",
48
+ titleClass: "font-bold",
49
+ subTitle: "This is a subtitle",
50
+ 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"
51
+ });
52
+ };
53
+
54
+ exports.CardTitleLeft = CardTitleLeft;
55
+
56
+ const CardTitleRight = () => {
57
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
58
+ id: "card",
59
+ title: "This is a title",
60
+ titleClass: "font-bold text-right",
61
+ subTitle: "This is a subtitle",
62
+ 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"
63
+ });
64
+ };
65
+
66
+ exports.CardTitleRight = CardTitleRight;
67
+
68
+ const CardWithImage = () => {
69
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
70
+ id: "card",
71
+ title: "This is a title",
72
+ titleClass: "text-center font-bold",
73
+ subTitle: "This is a subtitle",
74
+ 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",
75
+ image: "https://picsum.photos/500/300"
76
+ });
77
+ };
78
+
79
+ exports.CardWithImage = CardWithImage;
80
+
81
+ const CardWithExtraText = () => {
82
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
83
+ id: "card",
84
+ title: "This is a title",
85
+ titleClass: "text-center font-bold",
86
+ subTitle: "This is a subtitle",
87
+ extraText: "This is some extra text",
88
+ 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",
89
+ image: "https://picsum.photos/500/300"
90
+ });
91
+ };
92
+
93
+ exports.CardWithExtraText = CardWithExtraText;
94
+
95
+ const CardWithButton = () => {
96
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
97
+ id: "card",
98
+ title: "This is a title",
99
+ titleClass: "text-center font-bold",
100
+ subTitle: "This is a subtitle",
101
+ extraText: "This is some extra text",
102
+ 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",
103
+ image: "https://picsum.photos/500/300",
104
+ hasCta: true,
105
+ ctaText: "This is a button"
106
+ });
107
+ };
108
+
109
+ exports.CardWithButton = CardWithButton;
110
+
111
+ const CardWithSlideButton = () => {
112
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
113
+ id: "card",
114
+ title: "This is a title",
115
+ titleClass: "text-center font-bold",
116
+ subTitle: "This is a subtitle",
117
+ extraText: "This is some extra text",
118
+ 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",
119
+ image: "https://picsum.photos/500/300",
120
+ hasCta: true,
121
+ btnType: "slide",
122
+ ctaText: "This is a button"
123
+ });
124
+ };
125
+
126
+ exports.CardWithSlideButton = CardWithSlideButton;
127
+
128
+ const CardWithImageBelowTitle = () => {
129
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
130
+ id: "card",
131
+ title: "This is a title",
132
+ titleClass: "text-center font-bold",
133
+ subTitle: "This is a subtitle",
134
+ extraText: "This is some extra text",
135
+ 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",
136
+ image: "https://picsum.photos/500/300",
137
+ hasCta: true,
138
+ ctaText: "This is a button",
139
+ imageBelowTitle: true
140
+ });
141
+ };
142
+
143
+ exports.CardWithImageBelowTitle = CardWithImageBelowTitle;
144
+
145
+ const CardRounded = () => {
146
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
147
+ id: "card",
148
+ title: "This is a title",
149
+ titleClass: "text-center font-bold",
150
+ subTitle: "This is a subtitle",
151
+ extraText: "This is some extra text",
152
+ 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",
153
+ image: "https://picsum.photos/500/300",
154
+ hasCta: true,
155
+ ctaText: "This is a button",
156
+ rounded: true
157
+ });
158
+ };
159
+
160
+ exports.CardRounded = CardRounded;
161
+
162
+ const CardRoundedWithImageBelowTitle = () => {
163
+ return /*#__PURE__*/_react.default.createElement(_Card2.default, {
164
+ id: "card",
165
+ title: "This is a title",
166
+ titleClass: "text-center font-bold",
167
+ subTitle: "This is a subtitle",
168
+ extraText: "This is some extra text",
169
+ 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",
170
+ image: "https://picsum.photos/500/300",
171
+ hasCta: true,
172
+ ctaText: "This is a button",
173
+ imageBelowTitle: true,
174
+ rounded: true
175
+ });
176
+ };
177
+
178
+ exports.CardRoundedWithImageBelowTitle = CardRoundedWithImageBelowTitle;
179
+
180
+ const lotsOfCards = () => {
181
+ let cards = [];
182
+
183
+ for (let i = 0; i < 8; i++) {
184
+ cards.push( /*#__PURE__*/_react.default.createElement(_Card2.default, {
185
+ id: "card",
186
+ title: "This is a title",
187
+ titleClass: "text-center font-bold",
188
+ subTitle: "This is a subtitle",
189
+ extraText: "This is some extra text",
190
+ 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",
191
+ image: "https://picsum.photos/500/300",
192
+ hasCta: true,
193
+ ctaText: "This is a button",
194
+ imageBelowTitle: true,
195
+ rounded: true
196
+ }));
197
+ }
198
+
199
+ return /*#__PURE__*/_react.default.createElement("div", {
200
+ className: "grid grid-cols-4 grid-flow-row"
201
+ }, cards);
202
+ };
203
+
204
+ exports.lotsOfCards = lotsOfCards;
@@ -0,0 +1 @@
1
+ hello this is a card
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ const CardImageLink = _ref => {
13
+ let {
14
+ image,
15
+ altText,
16
+ text,
17
+ ctaText,
18
+ ctaLink,
19
+ classes
20
+ } = _ref;
21
+ const classList = "cursor-pointer relative lg:mx-3 md:mx-1 mx-1 lg:mb-5 md:mb-2 mb-2 w-auto hover:opacity-50 overflow-hidden " + classes;
22
+ return /*#__PURE__*/_react.default.createElement("div", {
23
+ className: classList
24
+ }, /*#__PURE__*/_react.default.createElement("a", {
25
+ href: ctaLink
26
+ }, /*#__PURE__*/_react.default.createElement("img", {
27
+ src: image,
28
+ alt: altText,
29
+ className: "object-cover w-full h-full"
30
+ }), /*#__PURE__*/_react.default.createElement("div", {
31
+ className: "absolute w-full py-5 top-5 inset-x-0 bg-blue-400 text-black md:text-2xl text-xs text-center leading-4"
32
+ }, text)));
33
+ };
34
+
35
+ var _default = CardImageLink;
36
+ exports.default = _default;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.lotsOfCardImageLinks = exports.default = exports._CardImageLink = exports.JumbotronWithTwoBtns = exports.JumbotronWithOneBtn = exports.JumbotronWithCenterText = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _README = _interopRequireDefault(require("./README.md"));
11
+
12
+ var _CardImageLink2 = _interopRequireDefault(require("./CardImageLink"));
13
+
14
+ require("../../index.css");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ var _default = {
19
+ title: 'Components/CardImageLink',
20
+ argTypes: {},
21
+ decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
22
+ className: "p-4"
23
+ }, story())],
24
+ parameters: {
25
+ readme: {
26
+ sidebar: _README.default
27
+ }
28
+ }
29
+ };
30
+ exports.default = _default;
31
+
32
+ const _CardImageLink = args => {
33
+ return /*#__PURE__*/_react.default.createElement(_CardImageLink2.default, {
34
+ altText: "image",
35
+ image: "https://picsum.photos/400/400"
36
+ });
37
+ };
38
+
39
+ exports._CardImageLink = _CardImageLink;
40
+
41
+ const JumbotronWithOneBtn = args => {
42
+ return /*#__PURE__*/_react.default.createElement(_CardImageLink2.default, {
43
+ altText: "image",
44
+ image: "https://picsum.photos/400/400",
45
+ ctaText: "This is a button"
46
+ });
47
+ };
48
+
49
+ exports.JumbotronWithOneBtn = JumbotronWithOneBtn;
50
+
51
+ const JumbotronWithTwoBtns = args => {
52
+ return /*#__PURE__*/_react.default.createElement(_CardImageLink2.default, {
53
+ altText: "image",
54
+ image: "https://picsum.photos/400/400",
55
+ ctaText: "This is a button",
56
+ ctaText2: "This is another button"
57
+ });
58
+ };
59
+
60
+ exports.JumbotronWithTwoBtns = JumbotronWithTwoBtns;
61
+
62
+ const JumbotronWithCenterText = args => {
63
+ return /*#__PURE__*/_react.default.createElement(_CardImageLink2.default, {
64
+ altText: "image",
65
+ image: "https://picsum.photos/400/400",
66
+ text: "Some text here"
67
+ });
68
+ };
69
+
70
+ exports.JumbotronWithCenterText = JumbotronWithCenterText;
71
+
72
+ const lotsOfCardImageLinks = args => {
73
+ let cards = [];
74
+
75
+ for (let i = 0; i < 6; i++) {
76
+ cards.push( /*#__PURE__*/_react.default.createElement(_CardImageLink2.default, {
77
+ altText: "image",
78
+ image: "https://picsum.photos/400/400",
79
+ text: "Some text here",
80
+ ctaText: "This is a button"
81
+ }));
82
+ }
83
+
84
+ return /*#__PURE__*/_react.default.createElement("div", {
85
+ className: "grid grid-cols-3 grid-flow-row"
86
+ }, cards);
87
+ };
88
+
89
+ exports.lotsOfCardImageLinks = lotsOfCardImageLinks;
File without changes
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("core-js/modules/es.regexp.exec.js");
9
+
10
+ require("core-js/modules/es.string.replace.js");
11
+
12
+ var _CardImageLink = _interopRequireDefault(require("../CardImageLink/CardImageLink"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ const CardImageLinkList = _ref => {
17
+ let {
18
+ list
19
+ } = _ref;
20
+ return /*#__PURE__*/React.createElement("div", {
21
+ className: "grid md:grid-cols-4 sm:grid-cols-2"
22
+ }, list && list.map((item, i) => {
23
+ const link = '/wainwright/' + item.Name.replace(/\s+/g, '');
24
+ return /*#__PURE__*/React.createElement(_CardImageLink.default, {
25
+ altText: "image",
26
+ image: '/' + item.Name.replace(/\s+/g, '') + '.jpeg' || 'https://picsum.photos/400/400',
27
+ text: item.Name,
28
+ ctaLink: link,
29
+ key: item.HeightRank
30
+ });
31
+ }));
32
+ };
33
+
34
+ var _default = CardImageLinkList;
35
+ exports.default = _default;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports._CardImageLinkList = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _README = _interopRequireDefault(require("./README.md"));
11
+
12
+ var _CardImageLinkList2 = _interopRequireDefault(require("./CardImageLinkList"));
13
+
14
+ require("../../index.css");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ const list = [{
19
+ "HeightRank": 1,
20
+ "Name": "Scafell Pike",
21
+ "Section": "34B: LD C&W",
22
+ "Birkett": "Birkett",
23
+ "HeightInMeters": 978,
24
+ "PromInMeters": "912",
25
+ "HeightInFeet": "3,209",
26
+ "PromInFeet": "2,992",
27
+ "TopoMap": "89 90",
28
+ "OSGridReference": "NY215072",
29
+ "Classification\n(§ DoBIH codes)": "Ma,F,Sim,Hew,N,W,B,Sy,Fel,CoH,CoU,CoA"
30
+ }, {
31
+ "HeightRank": 2,
32
+ "Name": "Scafell",
33
+ "Section": "34B: LD C&W",
34
+ "Birkett": "Birkett",
35
+ "HeightInMeters": 964,
36
+ "PromInMeters": "132",
37
+ "HeightInFeet": "3,162",
38
+ "PromInFeet": "434",
39
+ "TopoMap": "89 90",
40
+ "OSGridReference": "NY206064",
41
+ "Classification\n(§ DoBIH codes)": "Hu,F,Sim,Hew,N,W,B,Sy,Fel"
42
+ }];
43
+ var _default = {
44
+ title: 'Components/CardImageLinkList',
45
+ argTypes: {},
46
+ decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
47
+ className: "p-4"
48
+ }, story())],
49
+ parameters: {
50
+ readme: {
51
+ sidebar: _README.default
52
+ }
53
+ }
54
+ };
55
+ exports.default = _default;
56
+
57
+ const _CardImageLinkList = args => {
58
+ return /*#__PURE__*/_react.default.createElement(_CardImageLinkList2.default, {
59
+ list: list
60
+ });
61
+ };
62
+
63
+ exports._CardImageLinkList = _CardImageLinkList;
File without changes
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _Card = _interopRequireDefault(require("../Card/Card"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ const CardList = _ref => {
13
+ let {
14
+ list
15
+ } = _ref;
16
+ return /*#__PURE__*/React.createElement("div", {
17
+ className: "flex"
18
+ }, list && list.map(item => {
19
+ return /*#__PURE__*/React.createElement(_Card.default, {
20
+ id: "card",
21
+ title: item.name,
22
+ titleClass: "text-center font-bold",
23
+ subTitle: "This is a subtitle",
24
+ extraText: "This is some extra text",
25
+ 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",
26
+ image: "https://picsum.photos/500/300",
27
+ hasCta: true,
28
+ ctaText: "View",
29
+ imageBelowTitle: true,
30
+ rounded: true
31
+ });
32
+ }));
33
+ };
34
+
35
+ var _default = CardList;
36
+ exports.default = _default;
@@ -0,0 +1,204 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports._Cardlist = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _README = _interopRequireDefault(require("./README.md"));
11
+
12
+ var _CardList = _interopRequireDefault(require("./CardList"));
13
+
14
+ var _Card = _interopRequireDefault(require("../Card/Card"));
15
+
16
+ require("../../index.css");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ const list = [/*#__PURE__*/_react.default.createElement(_Card.default, {
21
+ id: "card",
22
+ title: "This is a title",
23
+ titleClass: "font-bold",
24
+ subTitle: "This is a subtitle",
25
+ 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"
26
+ }), /*#__PURE__*/_react.default.createElement(_Card.default, {
27
+ id: "card",
28
+ title: "This is a title",
29
+ titleClass: "font-bold",
30
+ subTitle: "This is a subtitle",
31
+ 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"
32
+ })];
33
+ var _default = {
34
+ title: 'Components/CardList',
35
+ argTypes: {},
36
+ decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
37
+ className: "p-4"
38
+ }, story())],
39
+ parameters: {
40
+ readme: {
41
+ sidebar: _README.default
42
+ }
43
+ }
44
+ };
45
+ exports.default = _default;
46
+
47
+ const _Cardlist = () => {
48
+ return /*#__PURE__*/_react.default.createElement(_CardList.default, {
49
+ list: list
50
+ });
51
+ }; // export const CardTitleLeft = () => {
52
+ // return (
53
+ // <Card
54
+ // id='card'
55
+ // title='This is a title'
56
+ // titleClass='font-bold'
57
+ // subTitle='This is a subtitle'
58
+ // 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'
59
+ // ></Card>
60
+ // )
61
+ // }
62
+ // export const CardTitleRight = () => {
63
+ // return (
64
+ // <Card
65
+ // id='card'
66
+ // title='This is a title'
67
+ // titleClass='font-bold text-right'
68
+ // subTitle='This is a subtitle'
69
+ // 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'
70
+ // ></Card>
71
+ // )
72
+ // }
73
+ // export const CardWithImage = () => {
74
+ // return (
75
+ // <Card
76
+ // id='card'
77
+ // title='This is a title'
78
+ // titleClass='text-center font-bold'
79
+ // subTitle='This is a subtitle'
80
+ // 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'
81
+ // image='https://picsum.photos/500/300'>
82
+ // </Card>
83
+ // )
84
+ // }
85
+ // export const CardWithExtraText = () => {
86
+ // return (
87
+ // <Card
88
+ // id='card'
89
+ // title='This is a title'
90
+ // titleClass='text-center font-bold'
91
+ // subTitle='This is a subtitle'
92
+ // extraText='This is some extra text'
93
+ // 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'
94
+ // image='https://picsum.photos/500/300'>
95
+ // </Card>
96
+ // )
97
+ // }
98
+ // export const CardWithButton = () => {
99
+ // return (
100
+ // <Card
101
+ // id='card'
102
+ // title='This is a title'
103
+ // titleClass='text-center font-bold'
104
+ // subTitle='This is a subtitle'
105
+ // extraText='This is some extra text'
106
+ // 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'
107
+ // image='https://picsum.photos/500/300'
108
+ // hasCta
109
+ // ctaText='This is a button'
110
+ // >
111
+ // </Card>
112
+ // )
113
+ // }
114
+ // export const CardWithSlideButton = () => {
115
+ // return (
116
+ // <Card
117
+ // id='card'
118
+ // title='This is a title'
119
+ // titleClass='text-center font-bold'
120
+ // subTitle='This is a subtitle'
121
+ // extraText='This is some extra text'
122
+ // 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'
123
+ // image='https://picsum.photos/500/300'
124
+ // hasCta
125
+ // btnType='slide'
126
+ // ctaText='This is a button'>
127
+ // </Card>
128
+ // )
129
+ // }
130
+ // export const CardWithImageBelowTitle = () => {
131
+ // return (
132
+ // <Card
133
+ // id='card'
134
+ // title='This is a title'
135
+ // titleClass='text-center font-bold'
136
+ // subTitle='This is a subtitle'
137
+ // extraText='This is some extra text'
138
+ // 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'
139
+ // image='https://picsum.photos/500/300'
140
+ // hasCta
141
+ // ctaText='This is a button'
142
+ // imageBelowTitle>
143
+ // </Card>
144
+ // )
145
+ // }
146
+ // export const CardRounded = () => {
147
+ // return (
148
+ // <Card
149
+ // id='card'
150
+ // title='This is a title'
151
+ // titleClass='text-center font-bold'
152
+ // subTitle='This is a subtitle'
153
+ // extraText='This is some extra text'
154
+ // 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'
155
+ // image='https://picsum.photos/500/300'
156
+ // hasCta
157
+ // ctaText='This is a button'
158
+ // rounded>
159
+ // </Card>
160
+ // )
161
+ // }
162
+ // export const CardRoundedWithImageBelowTitle = () => {
163
+ // return (
164
+ // <Card
165
+ // id='card'
166
+ // title='This is a title'
167
+ // titleClass='text-center font-bold'
168
+ // subTitle='This is a subtitle'
169
+ // extraText='This is some extra text'
170
+ // 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'
171
+ // image='https://picsum.photos/500/300'
172
+ // hasCta
173
+ // ctaText='This is a button'
174
+ // imageBelowTitle
175
+ // rounded>
176
+ // </Card>
177
+ // )
178
+ // }
179
+ // export const lotsOfCards = () => {
180
+ // let cards = []
181
+ // for (let i = 0; i < 8 ; i++) {
182
+ // cards.push(<Card
183
+ // id='card'
184
+ // title='This is a title'
185
+ // titleClass='text-center font-bold'
186
+ // subTitle='This is a subtitle'
187
+ // extraText='This is some extra text'
188
+ // 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'
189
+ // image='https://picsum.photos/500/300'
190
+ // hasCta
191
+ // ctaText='This is a button'
192
+ // imageBelowTitle
193
+ // rounded>
194
+ // </Card>)
195
+ // }
196
+ // return (
197
+ // <div className="grid grid-cols-4 grid-flow-row">
198
+ // {cards}
199
+ // </div>
200
+ // )
201
+ // }
202
+
203
+
204
+ exports._Cardlist = _Cardlist;
@@ -0,0 +1 @@
1
+ hello this is a card