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
|
@@ -9,21 +9,21 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _README = _interopRequireDefault(require("./README.md"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _index2 = _interopRequireDefault(require("../Card/index"));
|
|
15
15
|
|
|
16
16
|
require("../../index.css");
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
const list = [/*#__PURE__*/_react.default.createElement(
|
|
20
|
+
const list = [/*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
21
21
|
id: "card",
|
|
22
22
|
title: "This is a title",
|
|
23
23
|
titleClass: "font-bold",
|
|
24
24
|
subTitle: "This is a subtitle",
|
|
25
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(
|
|
26
|
+
}), /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
27
27
|
id: "card",
|
|
28
28
|
title: "This is a title",
|
|
29
29
|
titleClass: "font-bold",
|
|
@@ -45,160 +45,9 @@ var _default = {
|
|
|
45
45
|
exports.default = _default;
|
|
46
46
|
|
|
47
47
|
const _Cardlist = () => {
|
|
48
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
49
49
|
list: list
|
|
50
50
|
});
|
|
51
|
-
};
|
|
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
|
-
|
|
51
|
+
};
|
|
203
52
|
|
|
204
53
|
exports._Cardlist = _Cardlist;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is a card
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _index = _interopRequireDefault(require("../Card/index"));
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
@@ -16,7 +16,7 @@ const CardList = _ref => {
|
|
|
16
16
|
return /*#__PURE__*/React.createElement("div", {
|
|
17
17
|
className: "flex"
|
|
18
18
|
}, list && list.map(item => {
|
|
19
|
-
return /*#__PURE__*/React.createElement(
|
|
19
|
+
return /*#__PURE__*/React.createElement(_index.default, {
|
|
20
20
|
id: "card",
|
|
21
21
|
title: item.name,
|
|
22
22
|
titleClass: "text-center font-bold",
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _README = _interopRequireDefault(require("./README.md"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
13
13
|
|
|
14
14
|
require("../../index.css");
|
|
15
15
|
|
|
@@ -29,7 +29,7 @@ var _default = {
|
|
|
29
29
|
exports.default = _default;
|
|
30
30
|
|
|
31
31
|
const _Icon = args => {
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
33
33
|
type: "thumbs-up"
|
|
34
34
|
});
|
|
35
35
|
};
|
|
@@ -37,7 +37,7 @@ const _Icon = args => {
|
|
|
37
37
|
exports._Icon = _Icon;
|
|
38
38
|
|
|
39
39
|
const withSizeTwo = args => {
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
41
41
|
type: "thumbs-up",
|
|
42
42
|
size: "2"
|
|
43
43
|
});
|
|
@@ -46,7 +46,7 @@ const withSizeTwo = args => {
|
|
|
46
46
|
exports.withSizeTwo = withSizeTwo;
|
|
47
47
|
|
|
48
48
|
const withSizeThree = args => {
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
50
50
|
type: "thumbs-up",
|
|
51
51
|
size: "3"
|
|
52
52
|
});
|
|
@@ -55,7 +55,7 @@ const withSizeThree = args => {
|
|
|
55
55
|
exports.withSizeThree = withSizeThree;
|
|
56
56
|
|
|
57
57
|
const withSizeFour = args => {
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
59
59
|
type: "thumbs-up",
|
|
60
60
|
size: "4"
|
|
61
61
|
});
|
|
@@ -64,7 +64,7 @@ const withSizeFour = args => {
|
|
|
64
64
|
exports.withSizeFour = withSizeFour;
|
|
65
65
|
|
|
66
66
|
const withSizeFive = args => {
|
|
67
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
68
68
|
type: "thumbs-up",
|
|
69
69
|
size: "5"
|
|
70
70
|
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hello this is a button
|
|
File without changes
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _README = _interopRequireDefault(require("./README.md"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
13
13
|
|
|
14
14
|
require("../../index.css");
|
|
15
15
|
|
|
@@ -29,7 +29,7 @@ var _default = {
|
|
|
29
29
|
exports.default = _default;
|
|
30
30
|
|
|
31
31
|
const _Jumbotron = args => {
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
33
33
|
altText: "image",
|
|
34
34
|
image: "https://picsum.photos/1500/400"
|
|
35
35
|
});
|
|
@@ -38,7 +38,7 @@ const _Jumbotron = args => {
|
|
|
38
38
|
exports._Jumbotron = _Jumbotron;
|
|
39
39
|
|
|
40
40
|
const JumbotronWithOneBtn = args => {
|
|
41
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
42
42
|
altText: "image",
|
|
43
43
|
image: "https://picsum.photos/1500/400",
|
|
44
44
|
ctaText: "This is a button"
|
|
@@ -48,7 +48,7 @@ const JumbotronWithOneBtn = args => {
|
|
|
48
48
|
exports.JumbotronWithOneBtn = JumbotronWithOneBtn;
|
|
49
49
|
|
|
50
50
|
const JumbotronWithTwoBtns = args => {
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
52
52
|
altText: "image",
|
|
53
53
|
image: "https://picsum.photos/1500/400",
|
|
54
54
|
ctaText: "This is a button",
|
|
@@ -59,7 +59,7 @@ const JumbotronWithTwoBtns = args => {
|
|
|
59
59
|
exports.JumbotronWithTwoBtns = JumbotronWithTwoBtns;
|
|
60
60
|
|
|
61
61
|
const JumbotronWithCenterText = args => {
|
|
62
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
63
63
|
altText: "image",
|
|
64
64
|
image: "https://picsum.photos/1500/400",
|
|
65
65
|
text: "Some text here"
|
|
@@ -69,7 +69,7 @@ const JumbotronWithCenterText = args => {
|
|
|
69
69
|
exports.JumbotronWithCenterText = JumbotronWithCenterText;
|
|
70
70
|
|
|
71
71
|
const JumbotronWithTextAndBtns = args => {
|
|
72
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
72
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
73
73
|
altText: "image",
|
|
74
74
|
image: "https://picsum.photos/1500/400",
|
|
75
75
|
text: "Some text here",
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _index = _interopRequireDefault(require("../Button/index"));
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
@@ -30,10 +30,10 @@ const Jumbotron = _ref => {
|
|
|
30
30
|
className: "text-white text-4xl"
|
|
31
31
|
}, text), /*#__PURE__*/React.createElement("div", {
|
|
32
32
|
className: "pt-2 lg:pt-8 text-white"
|
|
33
|
-
}, ctaText && /*#__PURE__*/React.createElement(
|
|
33
|
+
}, ctaText && /*#__PURE__*/React.createElement(_index.default, {
|
|
34
34
|
className: "mx-2",
|
|
35
35
|
ctaText: ctaText
|
|
36
|
-
}), ctaText2 && /*#__PURE__*/React.createElement(
|
|
36
|
+
}), ctaText2 && /*#__PURE__*/React.createElement(_index.default, {
|
|
37
37
|
className: "mx-2",
|
|
38
38
|
ctaText: ctaText2
|
|
39
39
|
}))));
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports._Nav = exports.NavWithSearchAndProfile = exports.NavWithSearch = exports.NavWithProfile = exports.NavAligned = 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
|
+
name: 'link 1',
|
|
20
|
+
reference: '/'
|
|
21
|
+
}, {
|
|
22
|
+
name: 'link 2',
|
|
23
|
+
reference: '/'
|
|
24
|
+
}, {
|
|
25
|
+
name: 'link n-1',
|
|
26
|
+
reference: '/'
|
|
27
|
+
}, {
|
|
28
|
+
name: 'link n',
|
|
29
|
+
reference: '/'
|
|
30
|
+
}];
|
|
31
|
+
var _default = {
|
|
32
|
+
title: 'Components/Nav',
|
|
33
|
+
argTypes: {},
|
|
34
|
+
decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
|
|
35
|
+
className: "p-4"
|
|
36
|
+
}, story())],
|
|
37
|
+
parameters: {
|
|
38
|
+
readme: {
|
|
39
|
+
sidebar: _README.default
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.default = _default;
|
|
44
|
+
|
|
45
|
+
const _Nav = args => {
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
47
|
+
links: links,
|
|
48
|
+
navPosition: "1",
|
|
49
|
+
navClass: "bg-brand-light-grey pb-4 pt-2",
|
|
50
|
+
navLinkClass: "px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black",
|
|
51
|
+
logoClass: "py-4"
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports._Nav = _Nav;
|
|
56
|
+
|
|
57
|
+
const NavWithSearch = () => {
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
59
|
+
links: links,
|
|
60
|
+
navPosition: "1",
|
|
61
|
+
navClass: "bg-brand-light-grey pb-4 pt-2",
|
|
62
|
+
navLinkClass: "px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black",
|
|
63
|
+
logoClass: "py-4",
|
|
64
|
+
showSearch: true
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.NavWithSearch = NavWithSearch;
|
|
69
|
+
|
|
70
|
+
const NavWithProfile = () => {
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
72
|
+
links: links,
|
|
73
|
+
navPosition: "1",
|
|
74
|
+
navClass: "bg-brand-light-grey pb-4 pt-2",
|
|
75
|
+
navLinkClass: "px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black",
|
|
76
|
+
logoClass: "py-4",
|
|
77
|
+
showProfile: true
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.NavWithProfile = NavWithProfile;
|
|
82
|
+
|
|
83
|
+
const NavWithSearchAndProfile = () => {
|
|
84
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
85
|
+
links: links,
|
|
86
|
+
navPosition: "1",
|
|
87
|
+
navClass: "bg-brand-light-grey pb-4 pt-2",
|
|
88
|
+
navLinkClass: "px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black",
|
|
89
|
+
logoClass: "py-4",
|
|
90
|
+
showProfile: true,
|
|
91
|
+
showSearch: true
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
exports.NavWithSearchAndProfile = NavWithSearchAndProfile;
|
|
96
|
+
|
|
97
|
+
const NavAligned = () => {
|
|
98
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
99
|
+
links: links,
|
|
100
|
+
navPosition: "1",
|
|
101
|
+
navClass: "bg-brand-light-grey pb-4 pt-2",
|
|
102
|
+
navLinkClass: "px-2 py-2 rounded-lg flex-1 hover:text-white hover:bg-black",
|
|
103
|
+
logoClass: "py-4",
|
|
104
|
+
alignNavAndLogo: true
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
exports.NavAligned = NavAligned;
|
|
File without changes
|
|
@@ -9,9 +9,9 @@ require("core-js/modules/web.dom-collections.iterator.js");
|
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _index = _interopRequireDefault(require("../Profile/index"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _index2 = _interopRequireDefault(require("../Search/index"));
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
@@ -132,9 +132,9 @@ const Header = _ref => {
|
|
|
132
132
|
className: navLinkClass,
|
|
133
133
|
href: link.reference
|
|
134
134
|
}, link.name));
|
|
135
|
-
})))), showSearch && /*#__PURE__*/React.createElement(
|
|
135
|
+
})))), showSearch && /*#__PURE__*/React.createElement(_index2.default, {
|
|
136
136
|
className: "hidden sm:inline-flex pl-4 pt-8 absolute inset-y-0 h-8 right-16 flex items-center"
|
|
137
|
-
}), showProfile && /*#__PURE__*/React.createElement(
|
|
137
|
+
}), showProfile && /*#__PURE__*/React.createElement(_index.default, {
|
|
138
138
|
profileLinks: profileLinks
|
|
139
139
|
}))), mobileMenuState && /*#__PURE__*/React.createElement("div", {
|
|
140
140
|
className: "sm:hidden",
|
|
@@ -143,7 +143,7 @@ const Header = _ref => {
|
|
|
143
143
|
className: "ml-3 h-8 w-8 rounded-full",
|
|
144
144
|
src: "user.jpeg",
|
|
145
145
|
alt: ""
|
|
146
|
-
}), showSearch && /*#__PURE__*/React.createElement(
|
|
146
|
+
}), showSearch && /*#__PURE__*/React.createElement(_index2.default, {
|
|
147
147
|
className: "flex flex-1 ml-4"
|
|
148
148
|
}), /*#__PURE__*/React.createElement("div", {
|
|
149
149
|
className: "px-2 pt-2 pb-3 space-y-1"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports._Breadcrumbs = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _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/Breadcrumbs',
|
|
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 _Breadcrumbs = args => {
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, null);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports._Breadcrumbs = _Breadcrumbs;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports._Search = exports.SearchWithPlaceholder = exports.SearchWithLabel = exports.SearchWithIcon = exports.SearchWithAll = 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
|
+
var _index3 = _interopRequireDefault(require("../Icon/index"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
var _default = {
|
|
21
|
+
title: 'Components/Search',
|
|
22
|
+
argTypes: {},
|
|
23
|
+
decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
|
|
24
|
+
className: "p-4"
|
|
25
|
+
}, story())],
|
|
26
|
+
parameters: {
|
|
27
|
+
readme: {
|
|
28
|
+
sidebar: _README.default
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.default = _default;
|
|
33
|
+
|
|
34
|
+
const _Search = args => {
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, null);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
exports._Search = _Search;
|
|
39
|
+
|
|
40
|
+
const SearchWithPlaceholder = args => {
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
42
|
+
placeholder: "Enter some search item"
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports.SearchWithPlaceholder = SearchWithPlaceholder;
|
|
47
|
+
|
|
48
|
+
const SearchWithLabel = args => {
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
50
|
+
text: "Label"
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
exports.SearchWithLabel = SearchWithLabel;
|
|
55
|
+
|
|
56
|
+
const SearchWithIcon = args => {
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
58
|
+
leftIcon: "search"
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
exports.SearchWithIcon = SearchWithIcon;
|
|
63
|
+
|
|
64
|
+
const SearchWithAll = args => {
|
|
65
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
66
|
+
text: "Label",
|
|
67
|
+
leftIcon: "search",
|
|
68
|
+
placeholder: "Enter some search item"
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
exports.SearchWithAll = SearchWithAll;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _index = _interopRequireDefault(require("../Icon/index"));
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ const Search = _ref => {
|
|
|
18
18
|
leftIcon
|
|
19
19
|
} = _ref;
|
|
20
20
|
let classes = className + ' flex';
|
|
21
|
-
let iconLeft = /*#__PURE__*/React.createElement(
|
|
21
|
+
let iconLeft = /*#__PURE__*/React.createElement(_index.default, {
|
|
22
22
|
type: leftIcon
|
|
23
23
|
});
|
|
24
24
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -28,9 +28,9 @@ const Search = _ref => {
|
|
|
28
28
|
className: "relative block"
|
|
29
29
|
}, /*#__PURE__*/React.createElement("span", {
|
|
30
30
|
className: "sr-only"
|
|
31
|
-
}, "Search"), /*#__PURE__*/React.createElement("span", {
|
|
31
|
+
}, "Search"), leftIcon && /*#__PURE__*/React.createElement("span", {
|
|
32
32
|
className: "absolute inset-y-0 left-5 flex items-center pl-2"
|
|
33
|
-
},
|
|
33
|
+
}, iconLeft), /*#__PURE__*/React.createElement("input", {
|
|
34
34
|
className: "ml-4 pr-32 border-2 border-gray-300 h-10 px-5 placeholder:italic placeholder:text-gray-400 rounded-md py-2 pl-9 focus:outline-none focus:border-sky-500 focus:ring-sky-500 focus:ring-1",
|
|
35
35
|
onChange: e => _onChange(e.target.value),
|
|
36
36
|
placeholder: placeholder,
|
|
File without changes
|