trepur_components 0.1.7 → 0.1.8

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 (56) hide show
  1. package/dist/index.es.js +8 -0
  2. package/dist/index.js +8 -15
  3. package/package.json +7 -1
  4. package/rollup.config.js +37 -0
  5. package/src/Components/Icon/index.js +0 -7
  6. package/src/Components/index.js +3 -0
  7. package/src/index.js +5 -3
  8. package/dist/Components/Breadcrumbs/Breadcrumbs.stories.js +0 -164
  9. package/dist/Components/Breadcrumbs/README.md +0 -0
  10. package/dist/Components/Breadcrumbs/index.js +0 -32
  11. package/dist/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +0 -87
  12. package/dist/Components/BreadcrumbsBordered/README.md +0 -0
  13. package/dist/Components/BreadcrumbsBordered/index.css +0 -67
  14. package/dist/Components/BreadcrumbsBordered/index.js +0 -49
  15. package/dist/Components/Button/Button.stories.js +0 -185
  16. package/dist/Components/Button/README.md +0 -0
  17. package/dist/Components/Button/index.js +0 -35
  18. package/dist/Components/ButtonSlide/ButtonSlide.stories.js +0 -185
  19. package/dist/Components/ButtonSlide/README.md +0 -0
  20. package/dist/Components/ButtonSlide/Styles.css +0 -25
  21. package/dist/Components/ButtonSlide/index.js +0 -37
  22. package/dist/Components/Card/Card.stories.js +0 -204
  23. package/dist/Components/Card/README.md +0 -0
  24. package/dist/Components/Card/index.js +0 -83
  25. package/dist/Components/CardImageLink/CardImageLink.stories.js +0 -89
  26. package/dist/Components/CardImageLink/README.md +0 -0
  27. package/dist/Components/CardImageLink/index.js +0 -36
  28. package/dist/Components/CardImageLinkList/CardImageLinkList.stories.js +0 -63
  29. package/dist/Components/CardImageLinkList/README.md +0 -0
  30. package/dist/Components/CardImageLinkList/index.js +0 -35
  31. package/dist/Components/CardList/CardList.stories.js +0 -53
  32. package/dist/Components/CardList/README.md +0 -0
  33. package/dist/Components/CardList/index.js +0 -36
  34. package/dist/Components/Icon/Icon.stories.js +0 -73
  35. package/dist/Components/Icon/README.md +0 -0
  36. package/dist/Components/Icon/index.js +0 -45
  37. package/dist/Components/Jumbotron/Jumbotron.stories.js +0 -81
  38. package/dist/Components/Jumbotron/README.md +0 -0
  39. package/dist/Components/Jumbotron/index.js +0 -43
  40. package/dist/Components/Nav/Nav.stories.js +0 -108
  41. package/dist/Components/Nav/README.md +0 -0
  42. package/dist/Components/Nav/index.js +0 -170
  43. package/dist/Components/Profile/Profile.stories.js +0 -46
  44. package/dist/Components/Profile/README.md +0 -0
  45. package/dist/Components/Profile/index.js +0 -41
  46. package/dist/Components/Search/README.md +0 -0
  47. package/dist/Components/Search/Search.stories.js +0 -72
  48. package/dist/Components/Search/index.js +0 -43
  49. package/dist/Components/SignedInLinks/README.md +0 -0
  50. package/dist/Components/SignedInLinks/SignedInLinks.stories.js +0 -48
  51. package/dist/Components/SignedInLinks/index.js +0 -27
  52. package/dist/Components/SignedOutLinks/README.md +0 -0
  53. package/dist/Components/SignedOutLinks/SignedOutLinks.stories.js +0 -48
  54. package/dist/Components/SignedOutLinks/index.js +0 -27
  55. package/dist/Components/test/index.js +0 -20
  56. package/dist/index.css +0 -4
@@ -1,185 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports._Button = exports.WithOnClickMethod = exports.WithIconRight = exports.WithIconLeft = exports.WithBothIcons = exports.SecondaryButton = exports.ButtonAsSemanticHtmlSubmitButton = exports.ButtonAsSemanticHtmlButton = exports.ButtonAsInternalLink = exports.ButtonAsExternalLink = 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 _index = _interopRequireDefault(require("./index"));
15
-
16
- require("../../index.css");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- var _default = {
21
- title: 'Components/Button',
22
- argTypes: {
23
- label: {
24
- name: 'Text',
25
- control: {
26
- type: 'text'
27
- },
28
- defaultValue: 'Shop Now'
29
- },
30
- type: {
31
- name: 'Type',
32
- defaultValue: 'primary',
33
- options: ['primary', 'secondary', 'ghost'],
34
- control: {
35
- type: 'select'
36
- }
37
- },
38
- iconPlacement: {
39
- name: 'Icon',
40
- defaultValue: 'none',
41
- options: ['left', 'right', 'both', 'none'],
42
- control: {
43
- type: 'select'
44
- }
45
- },
46
- padded: {
47
- name: 'Padded',
48
- control: {
49
- type: 'boolean'
50
- },
51
- defaultValue: false
52
- },
53
- social: {
54
- name: 'Social',
55
- defaultValue: 'None',
56
- options: ['Facebook', 'Twitter', 'Whatsapp', 'None'],
57
- control: {
58
- type: 'select'
59
- }
60
- }
61
- },
62
- decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
63
- className: "p-4"
64
- }, story())],
65
- parameters: {
66
- readme: {
67
- sidebar: _README.default
68
- }
69
- }
70
- };
71
- exports.default = _default;
72
-
73
- const _Button = args => {
74
- return /*#__PURE__*/_react.default.createElement(_index.default, {
75
- ctaText: "I am a button"
76
- });
77
- };
78
-
79
- exports._Button = _Button;
80
-
81
- const SecondaryButton = () => {
82
- return /*#__PURE__*/_react.default.createElement(_index.default, {
83
- ctaText: "I am a button"
84
- });
85
- };
86
-
87
- exports.SecondaryButton = SecondaryButton;
88
-
89
- const WithIconRight = () => {
90
- return /*#__PURE__*/_react.default.createElement(_index.default, {
91
- rightIcon: "thumbs-up",
92
- ctaText: "I am a button"
93
- });
94
- };
95
-
96
- exports.WithIconRight = WithIconRight;
97
- WithIconRight.story = {
98
- name: 'With Icon (right)'
99
- };
100
-
101
- const WithIconLeft = () => {
102
- return /*#__PURE__*/_react.default.createElement(_index.default, {
103
- leftIcon: "sign-in",
104
- ctaText: "I am a button"
105
- });
106
- };
107
-
108
- exports.WithIconLeft = WithIconLeft;
109
- WithIconLeft.story = {
110
- name: 'With Icon (left)'
111
- };
112
-
113
- const WithBothIcons = () => {
114
- return /*#__PURE__*/_react.default.createElement(_index.default, {
115
- leftIcon: "star",
116
- rightIcon: "star",
117
- ctaText: "I am a button"
118
- });
119
- };
120
-
121
- exports.WithBothIcons = WithBothIcons;
122
-
123
- const ButtonAsExternalLink = () => {
124
- return /*#__PURE__*/_react.default.createElement(_index.default, {
125
- as: "a-external",
126
- ctaText: "I am a button"
127
- });
128
- };
129
-
130
- exports.ButtonAsExternalLink = ButtonAsExternalLink;
131
- ButtonAsExternalLink.story = {
132
- name: 'Button as external link'
133
- };
134
-
135
- const ButtonAsSemanticHtmlButton = () => {
136
- return /*#__PURE__*/_react.default.createElement(_index.default, {
137
- as: "button",
138
- htmlType: "button",
139
- ctaText: "I am a button",
140
- url: "/"
141
- });
142
- };
143
-
144
- exports.ButtonAsSemanticHtmlButton = ButtonAsSemanticHtmlButton;
145
- ButtonAsSemanticHtmlButton.story = {
146
- name: 'Button as semantic html button'
147
- };
148
-
149
- const ButtonAsSemanticHtmlSubmitButton = () => {
150
- return /*#__PURE__*/_react.default.createElement(_index.default, {
151
- as: "button",
152
- htmlType: "submit",
153
- ctaText: "I am a button"
154
- });
155
- };
156
-
157
- exports.ButtonAsSemanticHtmlSubmitButton = ButtonAsSemanticHtmlSubmitButton;
158
- ButtonAsSemanticHtmlSubmitButton.story = {
159
- name: 'Button as semantic html submit button'
160
- };
161
-
162
- const ButtonAsInternalLink = () => {
163
- return /*#__PURE__*/_react.default.createElement(_index.default, {
164
- as: "Link",
165
- ctaText: "I am a button",
166
- url: "/"
167
- });
168
- };
169
-
170
- exports.ButtonAsInternalLink = ButtonAsInternalLink;
171
- ButtonAsInternalLink.story = {
172
- name: 'Button as internal link'
173
- };
174
-
175
- const WithOnClickMethod = () => {
176
- return /*#__PURE__*/_react.default.createElement(_index.default, {
177
- ctaText: "I am a button",
178
- onClick: (0, _addonActions.action)('button-click')
179
- });
180
- };
181
-
182
- exports.WithOnClickMethod = WithOnClickMethod;
183
- WithOnClickMethod.story = {
184
- name: 'With onClick method'
185
- };
File without changes
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _index = _interopRequireDefault(require("../Icon/index"));
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(_index.default, {
23
- type: leftIcon
24
- });
25
- let iconRight = /*#__PURE__*/React.createElement(_index.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;
@@ -1,185 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports._Button = exports.WithOnClickMethod = exports.WithIconRight = exports.WithIconLeft = exports.WithBothIcons = exports.SecondaryButton = exports.ButtonAsSemanticHtmlSubmitButton = exports.ButtonAsSemanticHtmlButton = exports.ButtonAsInternalLink = exports.ButtonAsExternalLink = 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 _index = _interopRequireDefault(require("./index"));
15
-
16
- require("../../index.css");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- var _default = {
21
- title: 'Components/ButtonSlide',
22
- argTypes: {
23
- label: {
24
- name: 'Text',
25
- control: {
26
- type: 'text'
27
- },
28
- defaultValue: 'Shop Now'
29
- },
30
- type: {
31
- name: 'Type',
32
- defaultValue: 'primary',
33
- options: ['primary', 'secondary', 'ghost'],
34
- control: {
35
- type: 'select'
36
- }
37
- },
38
- iconPlacement: {
39
- name: 'Icon',
40
- defaultValue: 'none',
41
- options: ['left', 'right', 'both', 'none'],
42
- control: {
43
- type: 'select'
44
- }
45
- },
46
- padded: {
47
- name: 'Padded',
48
- control: {
49
- type: 'boolean'
50
- },
51
- defaultValue: false
52
- },
53
- social: {
54
- name: 'Social',
55
- defaultValue: 'None',
56
- options: ['Facebook', 'Twitter', 'Whatsapp', 'None'],
57
- control: {
58
- type: 'select'
59
- }
60
- }
61
- },
62
- decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
63
- className: "p-4"
64
- }, story())],
65
- parameters: {
66
- readme: {
67
- sidebar: _README.default
68
- }
69
- }
70
- };
71
- exports.default = _default;
72
-
73
- const _Button = args => {
74
- return /*#__PURE__*/_react.default.createElement(_index.default, {
75
- ctaText: "READ MORE"
76
- });
77
- };
78
-
79
- exports._Button = _Button;
80
-
81
- const SecondaryButton = () => {
82
- return /*#__PURE__*/_react.default.createElement(_index.default, {
83
- ctaText: "I am a button"
84
- });
85
- };
86
-
87
- exports.SecondaryButton = SecondaryButton;
88
-
89
- const WithIconRight = () => {
90
- return /*#__PURE__*/_react.default.createElement(_index.default, {
91
- rightIcon: "thumbs-up",
92
- ctaText: "I am a button"
93
- });
94
- };
95
-
96
- exports.WithIconRight = WithIconRight;
97
- WithIconRight.story = {
98
- name: 'With Icon (right)'
99
- };
100
-
101
- const WithIconLeft = () => {
102
- return /*#__PURE__*/_react.default.createElement(_index.default, {
103
- leftIcon: "sign-in",
104
- ctaText: "I am a button"
105
- });
106
- };
107
-
108
- exports.WithIconLeft = WithIconLeft;
109
- WithIconLeft.story = {
110
- name: 'With Icon (left)'
111
- };
112
-
113
- const WithBothIcons = () => {
114
- return /*#__PURE__*/_react.default.createElement(_index.default, {
115
- leftIcon: "star",
116
- rightIcon: "star",
117
- ctaText: "I am a button"
118
- });
119
- };
120
-
121
- exports.WithBothIcons = WithBothIcons;
122
-
123
- const ButtonAsExternalLink = () => {
124
- return /*#__PURE__*/_react.default.createElement(_index.default, {
125
- as: "a-external",
126
- ctaText: "I am a button"
127
- });
128
- };
129
-
130
- exports.ButtonAsExternalLink = ButtonAsExternalLink;
131
- ButtonAsExternalLink.story = {
132
- name: 'Button as external link'
133
- };
134
-
135
- const ButtonAsSemanticHtmlButton = () => {
136
- return /*#__PURE__*/_react.default.createElement(_index.default, {
137
- as: "button",
138
- htmlType: "button",
139
- ctaText: "I am a button",
140
- url: "/"
141
- });
142
- };
143
-
144
- exports.ButtonAsSemanticHtmlButton = ButtonAsSemanticHtmlButton;
145
- ButtonAsSemanticHtmlButton.story = {
146
- name: 'Button as semantic html button'
147
- };
148
-
149
- const ButtonAsSemanticHtmlSubmitButton = () => {
150
- return /*#__PURE__*/_react.default.createElement(_index.default, {
151
- as: "button",
152
- htmlType: "submit",
153
- ctaText: "I am a button"
154
- });
155
- };
156
-
157
- exports.ButtonAsSemanticHtmlSubmitButton = ButtonAsSemanticHtmlSubmitButton;
158
- ButtonAsSemanticHtmlSubmitButton.story = {
159
- name: 'Button as semantic html submit button'
160
- };
161
-
162
- const ButtonAsInternalLink = () => {
163
- return /*#__PURE__*/_react.default.createElement(_index.default, {
164
- as: "Link",
165
- ctaText: "I am a button",
166
- url: "/"
167
- });
168
- };
169
-
170
- exports.ButtonAsInternalLink = ButtonAsInternalLink;
171
- ButtonAsInternalLink.story = {
172
- name: 'Button as internal link'
173
- };
174
-
175
- const WithOnClickMethod = () => {
176
- return /*#__PURE__*/_react.default.createElement(_index.default, {
177
- ctaText: "I am a button",
178
- onClick: (0, _addonActions.action)('button-click')
179
- });
180
- };
181
-
182
- exports.WithOnClickMethod = WithOnClickMethod;
183
- WithOnClickMethod.story = {
184
- name: 'With onClick method'
185
- };
File without changes
@@ -1,25 +0,0 @@
1
- .btn {
2
- border: 1px solid black;
3
- -webkit-transform: translate3d(0, 0, 0);
4
- transform: translate3d(0, 0, 0);
5
- -webkit-transition: all 1s cubic-bezier(0.455, 0.03, 0.515, 0.955);
6
- transition: all 1s cubic-bezier(0.455, 0.03, 0.515, 0.955);
7
- cursor: pointer;
8
- }
9
- .btn:after {
10
- position: absolute;
11
- top: 0;
12
- left: 0;
13
- height: 100%;
14
- width: 0;
15
- background: #FFF;
16
- border: 1px white;
17
- content: '';
18
- z-index: -1;
19
- -webkit-transition: all 1s cubic-bezier(0.785, 0.135, 0.15, 0.86);
20
- transition: all 1s cubic-bezier(0.785, 0.135, 0.15, 0.86);
21
- will-change: width;
22
- }
23
- .btn:hover:after {
24
- width: 100%;
25
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _index = _interopRequireDefault(require("../Icon/index"));
9
-
10
- require("./Styles.css");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
- const ButtonSlide = _ref => {
15
- let {
16
- ctaText,
17
- ctaLink,
18
- className,
19
- onClick,
20
- leftIcon,
21
- rightIcon
22
- } = _ref;
23
- let classes = className + ' btn py-2 px-8 text-white border-2 bg-black hover:bg-white hover:text-black';
24
- let iconLeft = /*#__PURE__*/React.createElement(_index.default, {
25
- type: leftIcon
26
- });
27
- let iconRight = /*#__PURE__*/React.createElement(_index.default, {
28
- type: rightIcon
29
- });
30
- return /*#__PURE__*/React.createElement("button", {
31
- className: classes,
32
- onClick: onClick
33
- }, leftIcon && iconLeft, ctaText, rightIcon && iconRight);
34
- };
35
-
36
- var _default = ButtonSlide;
37
- exports.default = _default;
@@ -1,204 +0,0 @@
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 _index = _interopRequireDefault(require("./index"));
13
-
14
- require("../../index.css");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- var _default = {
19
- title: '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(_index.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(_index.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(_index.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(_index.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(_index.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(_index.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(_index.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(_index.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(_index.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(_index.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(_index.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;
File without changes