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.
- package/.babelrc +14 -0
- package/babel.config.js +4 -0
- package/dist/Components/Breadcrumbs/README.md +0 -1
- package/dist/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +2 -77
- package/dist/Components/BreadcrumbsBordered/README.md +0 -1
- package/dist/Components/BreadcrumbsBordered/index.css +67 -0
- package/dist/Components/Button/Button.stories.js +11 -11
- package/dist/Components/Button/README.md +0 -1
- package/dist/Components/Button/{Button.js → index.js} +3 -3
- package/dist/Components/ButtonSlide/ButtonSlide.stories.js +11 -11
- package/dist/Components/ButtonSlide/README.md +0 -1
- package/dist/Components/ButtonSlide/{ButtonSlide.js → index.js} +3 -3
- package/dist/Components/Card/Card.stories.js +12 -12
- package/dist/Components/Card/README.md +0 -1
- package/dist/Components/Card/{Card.js → index.js} +4 -4
- package/dist/Components/CardImageLink/CardImageLink.stories.js +6 -6
- package/dist/Components/CardImageLink/{CardImageLink.js → index.js} +0 -0
- package/dist/Components/CardImageLinkList/CardImageLinkList.stories.js +2 -2
- package/dist/Components/CardImageLinkList/{CardImageLinkList.js → index.js} +2 -2
- package/dist/Components/CardList/CardList.stories.js +6 -157
- package/dist/Components/CardList/README.md +0 -1
- package/dist/Components/CardList/{CardList.js → index.js} +2 -2
- package/dist/Components/Icon/Icon.stories.js +6 -6
- package/dist/Components/Icon/README.md +0 -1
- package/dist/Components/Icon/{Icon.js → index.js} +0 -0
- package/dist/Components/Jumbotron/Jumbotron.stories.js +6 -6
- package/dist/Components/Jumbotron/{Jumbotron.js → index.js} +3 -3
- package/dist/Components/Nav/Nav.stories.js +108 -0
- package/dist/Components/Nav/README.md +0 -0
- package/dist/Components/{Nav.js → Nav/index.js} +5 -5
- package/dist/Components/Profile/Profile.stories.js +46 -0
- package/dist/Components/Profile/README.md +0 -0
- package/dist/Components/{Profile.js → Profile/index.js} +0 -0
- package/dist/Components/Search/README.md +0 -0
- package/dist/Components/Search/Search.stories.js +72 -0
- package/dist/Components/{Search.js → Search/index.js} +4 -4
- package/dist/Components/SignedInLinks/README.md +0 -0
- package/dist/Components/SignedInLinks/SignedInLinks.stories.js +48 -0
- package/dist/Components/{SignedInLinks.js → SignedInLinks/index.js} +0 -0
- package/dist/Components/SignedOutLinks/README.md +0 -0
- package/dist/Components/SignedOutLinks/SignedOutLinks.stories.js +48 -0
- package/dist/Components/{SignedOutLinks.js → SignedOutLinks/index.js} +9 -4
- package/dist/index.css +1 -64
- package/package.json +2 -2
- package/src/Components/Breadcrumbs/README.md +0 -1
- package/src/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +1 -92
- package/src/Components/BreadcrumbsBordered/README.md +0 -1
- package/src/Components/BreadcrumbsBordered/index.css +67 -0
- package/src/Components/Button/Button.stories.js +1 -1
- package/src/Components/Button/README.md +0 -1
- package/src/Components/Button/{Button.js → index.js} +1 -1
- package/src/Components/ButtonSlide/ButtonSlide.stories.js +1 -1
- package/src/Components/ButtonSlide/README.md +0 -1
- package/src/Components/ButtonSlide/{ButtonSlide.js → index.js} +1 -1
- package/src/Components/Card/Card.stories.js +1 -1
- package/src/Components/Card/README.md +0 -1
- package/src/Components/Card/{Card.js → index.js} +2 -2
- package/src/Components/CardImageLink/CardImageLink.stories.js +1 -1
- package/src/Components/CardImageLink/{CardImageLink.js → index.js} +0 -0
- package/src/Components/CardImageLinkList/CardImageLinkList.stories.js +1 -1
- package/src/Components/CardImageLinkList/{CardImageLinkList.js → index.js} +1 -1
- package/src/Components/CardList/CardList.stories.js +3 -165
- package/src/Components/CardList/README.md +0 -1
- package/src/Components/CardList/{CardList.js → index.js} +1 -1
- package/src/Components/Icon/Icon.stories.js +1 -1
- package/src/Components/Icon/README.md +0 -1
- package/src/Components/Icon/{Icon.js → index.js} +0 -0
- package/src/Components/Jumbotron/Jumbotron.stories.js +1 -1
- package/src/Components/Jumbotron/{Jumbotron.js → index.js} +1 -1
- package/src/Components/Nav/Nav.stories.js +89 -0
- package/src/Components/Nav/README.md +0 -0
- package/src/Components/{Nav.js → Nav/index.js} +2 -2
- package/src/Components/Profile/Profile.stories.js +39 -0
- package/src/Components/Profile/README.md +0 -0
- package/src/Components/{Profile.js → Profile/index.js} +0 -0
- package/src/Components/Search/README.md +0 -0
- package/src/Components/Search/Search.stories.js +58 -0
- package/src/Components/{Search.js → Search/index.js} +4 -4
- package/src/Components/SignedInLinks/README.md +0 -0
- package/src/Components/SignedInLinks/SignedInLinks.stories.js +39 -0
- package/src/Components/{SignedInLinks.js → SignedInLinks/index.js} +0 -0
- package/src/Components/SignedOutLinks/README.md +0 -0
- package/src/Components/SignedOutLinks/SignedOutLinks.stories.js +39 -0
- package/src/Components/SignedOutLinks/index.js +13 -0
- package/src/index.css +1 -64
- package/babel.config.json +0 -18
- package/dist/App.css +0 -42
- package/dist/App.js +0 -24
- package/public/Logo.png +0 -0
- package/public/index.html +0 -10
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/public/user.jpeg +0 -0
- package/src/App.css +0 -42
- package/src/App.js +0 -23
- 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
|
|
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
|
|
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-
|
|
17
|
-
},
|
|
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.
|
|
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 '
|
|
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 +0,0 @@
|
|
|
1
|
-
hello this is an icon
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is an icon
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is a card
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Readme from './README.md'
|
|
3
|
-
import CardList from './
|
|
4
|
-
import Card from '../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
|