@mohamed-karawia/library 0.1.12 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/stories/Chat/Chat.js +5 -26
- package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.js +1 -1
- package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +2 -12
- package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +4 -19
- package/dist/stories/Events/Event/Event.js +5 -9
- package/dist/stories/Events/EventsList/EventsList.js +2 -19
- package/dist/stories/Library/Folders/Folders.js +3 -9
- package/dist/stories/Library/Notes/Notes.js +2 -19
- package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +3 -18
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +4 -18
- package/dist/stories/Navbar/Navbar.js +14 -44
- package/dist/stories/Pages/Chat/Chat.js +13 -1
- package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +11 -1
- package/dist/stories/Pages/Enrollment/Forms/Forms.js +26 -1
- package/dist/stories/Pages/Events/Event/Event.js +9 -3
- package/dist/stories/Pages/Events/Events/Events.js +19 -1
- package/dist/stories/Pages/Library/Folders/Library.js +9 -0
- package/dist/stories/Pages/Library/Notes/Notes.js +20 -1
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +14 -1
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +58 -2
- package/dist/stories/Pages/Photos/Album/Album.js +7 -1
- package/dist/stories/Pages/Photos/Albums/Albums.js +40 -2
- package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -1
- package/dist/stories/Pages/Video/VideoAlbum/Video.js +14 -1
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +0 -8
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +3 -39
- package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +7 -3
- package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +7 -1
- package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.js +3 -2
- package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.js +27 -12
- package/dist/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
- package/dist/stories/Reusable Components/Gallery/Gallery.js +2 -2
- package/dist/stories/Reusable Components/ReusableList/ReusableList.js +8 -6
- package/dist/stories/Sections/Sections.js +61 -0
- package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +5 -3
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +0 -11
- package/dist/stories/helpers/util.js +14 -8
- package/package.json +2 -2
- package/src/stories/Chat/Chat.jsx +3 -25
- package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
- package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +1 -10
- package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +2 -16
- package/src/stories/Events/Event/Event.jsx +3 -6
- package/src/stories/Events/EventsList/EventsList.jsx +1 -17
- package/src/stories/Library/Folders/Folders.jsx +1 -7
- package/src/stories/Library/Notes/Notes.jsx +1 -17
- package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +1 -15
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +3 -14
- package/src/stories/Navbar/Navbar.jsx +50 -48
- package/src/stories/Pages/Chat/Chat.jsx +17 -4
- package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +11 -1
- package/src/stories/Pages/Enrollment/Forms/Forms.jsx +27 -1
- package/src/stories/Pages/Events/Event/Event.jsx +8 -2
- package/src/stories/Pages/Events/Events/Events.jsx +18 -0
- package/src/stories/Pages/Library/Folders/Library.jsx +12 -1
- package/src/stories/Pages/Library/Notes/Notes.jsx +30 -11
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +16 -2
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +52 -23
- package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
- package/src/stories/Pages/Photos/Albums/Albums.jsx +27 -20
- package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +2 -1
- package/src/stories/Pages/Video/VideoAlbum/Video.jsx +13 -1
- package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +0 -8
- package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +1 -36
- package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +8 -4
- package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -0
- package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.jsx +5 -2
- package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.jsx +14 -8
- package/src/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
- package/src/stories/Reusable Components/Gallery/Gallery.jsx +2 -2
- package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +17 -6
- package/src/stories/Sections/Sections.jsx +53 -0
- package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +3 -1
- package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +0 -9
- package/src/stories/helpers/util.js +11 -7
@@ -82,6 +82,10 @@ var Library = function Library(props) {
|
|
82
82
|
setFolders((0, _util.deleteFromArrayByIndex)(folders, index));
|
83
83
|
};
|
84
84
|
|
85
|
+
var cardClicked = function cardClicked(index, cardProps) {
|
86
|
+
console.log(cardProps);
|
87
|
+
};
|
88
|
+
|
85
89
|
return /*#__PURE__*/_react.default.createElement(_BaseMaterial.default, Object.assign({}, _styles.default.containerStyle, props), /*#__PURE__*/_react.default.createElement(_Navbar.default, null), /*#__PURE__*/_react.default.createElement(_Body.default, _styles.default.bodyStyle, /*#__PURE__*/_react.default.createElement(_Left.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
86
90
|
widgetType: "logo",
|
87
91
|
widgetProps: {
|
@@ -121,6 +125,7 @@ var Library = function Library(props) {
|
|
121
125
|
columnsNumber: 3,
|
122
126
|
onAddFolder: onAddFolder,
|
123
127
|
cardIconClicked: cardIconClicked,
|
128
|
+
cardClicked: cardClicked,
|
124
129
|
headerStyles: {
|
125
130
|
padding: 10,
|
126
131
|
headerBackground: '#ff2d2d',
|
@@ -128,6 +133,10 @@ var Library = function Library(props) {
|
|
128
133
|
controlsStyles: {
|
129
134
|
iconSize: 25
|
130
135
|
}
|
136
|
+
},
|
137
|
+
customCardStyles: {
|
138
|
+
cardPadding: 10,
|
139
|
+
iconColor: '#ff2d2d'
|
131
140
|
}
|
132
141
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
133
142
|
};
|
@@ -79,6 +79,10 @@ var Notes = function Notes(props) {
|
|
79
79
|
setNotes((0, _util.deleteFromArrayByIndex)(notes, index));
|
80
80
|
};
|
81
81
|
|
82
|
+
var cardClicked = function cardClicked(index, cardProps) {
|
83
|
+
console.log(cardProps);
|
84
|
+
};
|
85
|
+
|
82
86
|
return /*#__PURE__*/_react.default.createElement(_BaseMaterial.default, Object.assign({}, _styles.default.containerStyle, props), /*#__PURE__*/_react.default.createElement(_Navbar.default, null), /*#__PURE__*/_react.default.createElement(_Body.default, _styles.default.bodyStyle, /*#__PURE__*/_react.default.createElement(_Left.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
83
87
|
widgetType: "logo",
|
84
88
|
widgetProps: {
|
@@ -115,7 +119,22 @@ var Notes = function Notes(props) {
|
|
115
119
|
}, /*#__PURE__*/_react.default.createElement(_Notes.default, {
|
116
120
|
onAddNote: onAddNote,
|
117
121
|
cardIconClicked: cardIconClicked,
|
118
|
-
notes: notes
|
122
|
+
notes: notes,
|
123
|
+
cardClicked: cardClicked,
|
124
|
+
headerStyles: {
|
125
|
+
padding: 10,
|
126
|
+
headerBackground: '#FE1744',
|
127
|
+
titleColor: '#ffff',
|
128
|
+
controlsStyles: {
|
129
|
+
iconSize: 25
|
130
|
+
}
|
131
|
+
},
|
132
|
+
customCardStyles: {
|
133
|
+
iconColor: '#FE1744',
|
134
|
+
controlsStyles: {
|
135
|
+
iconColor: '#FE1744'
|
136
|
+
}
|
137
|
+
}
|
119
138
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
120
139
|
};
|
121
140
|
|
@@ -183,7 +183,20 @@ var Music = function Music(props) {
|
|
183
183
|
album: album,
|
184
184
|
onAddSong: onAddSong,
|
185
185
|
cardIconClicked: cardIconClicked,
|
186
|
-
cardClicked: onPlaySong
|
186
|
+
cardClicked: onPlaySong,
|
187
|
+
headerStyles: {
|
188
|
+
padding: 10,
|
189
|
+
headerBackground: 'black',
|
190
|
+
titleColor: '#ffff',
|
191
|
+
controlsStyles: {
|
192
|
+
iconSize: 25
|
193
|
+
}
|
194
|
+
},
|
195
|
+
customCardStyles: {
|
196
|
+
controlsStyles: {
|
197
|
+
iconColor: 'blue'
|
198
|
+
}
|
199
|
+
}
|
187
200
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
188
201
|
widgetType: "music player",
|
189
202
|
controlsStyles: {
|
@@ -111,6 +111,26 @@ var MusicAlbums = function MusicAlbums(props) {
|
|
111
111
|
setAlbums((0, _util.deleteFromArrayByIndex)(albums, index));
|
112
112
|
};
|
113
113
|
|
114
|
+
var cardClicked = function cardClicked(index, cardProps) {
|
115
|
+
console.log(cardProps);
|
116
|
+
};
|
117
|
+
|
118
|
+
var notes = [{
|
119
|
+
title: 'Study notes',
|
120
|
+
date: '15/11/2020'
|
121
|
+
}, {
|
122
|
+
title: 'Music notes',
|
123
|
+
date: '14/12/2020'
|
124
|
+
}, {
|
125
|
+
title: 'Workout notes',
|
126
|
+
date: '5/8/2021'
|
127
|
+
}, {
|
128
|
+
title: 'Gaming notes',
|
129
|
+
date: '14/4/2023'
|
130
|
+
}, {
|
131
|
+
title: 'Working notes',
|
132
|
+
date: '5/6/2021'
|
133
|
+
}];
|
114
134
|
return /*#__PURE__*/_react.default.createElement(_BaseMaterial.default, Object.assign({}, _styles.default.containerStyle, props), /*#__PURE__*/_react.default.createElement(_Navbar.default, null), /*#__PURE__*/_react.default.createElement(_Body.default, _styles.default.bodyStyle, /*#__PURE__*/_react.default.createElement(_Left.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
115
135
|
widgetType: "logo",
|
116
136
|
widgetProps: {
|
@@ -145,10 +165,46 @@ var MusicAlbums = function MusicAlbums(props) {
|
|
145
165
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
146
166
|
hideTitle: true
|
147
167
|
}, /*#__PURE__*/_react.default.createElement(_ViewAlbums.default, {
|
168
|
+
title: "Music Albums",
|
148
169
|
albums: albums,
|
149
170
|
cardIconClicked: cardIconClicked,
|
150
|
-
onAddAlbum: onAddAlbum
|
151
|
-
|
171
|
+
onAddAlbum: onAddAlbum,
|
172
|
+
headerStyles: {
|
173
|
+
padding: 10,
|
174
|
+
headerBackground: 'black',
|
175
|
+
titleColor: '#ffff',
|
176
|
+
controlsStyles: {
|
177
|
+
iconSize: 25
|
178
|
+
}
|
179
|
+
},
|
180
|
+
customCardStyles: {
|
181
|
+
darkOnHover: true,
|
182
|
+
controlsStyles: {
|
183
|
+
showOnHover: true,
|
184
|
+
position: 'center',
|
185
|
+
dropdownFontColor: "white",
|
186
|
+
iconBorderRadius: 100,
|
187
|
+
iconSize: 40,
|
188
|
+
iconsGap: 10,
|
189
|
+
iconColor: 'white',
|
190
|
+
containerPadding: 20
|
191
|
+
}
|
192
|
+
},
|
193
|
+
cardClicked: cardClicked
|
194
|
+
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
195
|
+
widgetType: "notes",
|
196
|
+
widgetProps: {
|
197
|
+
notes: notes,
|
198
|
+
headerStyles: {
|
199
|
+
padding: 10,
|
200
|
+
headerBackground: 'black',
|
201
|
+
titleColor: '#ffff',
|
202
|
+
controlsStyles: {
|
203
|
+
iconSize: 25
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}))));
|
152
208
|
};
|
153
209
|
|
154
210
|
var _default = MusicAlbums;
|
@@ -156,7 +156,13 @@ var Album = function Album(props) {
|
|
156
156
|
addPhoto: onAddPhoto,
|
157
157
|
deletePhoto: onDeletePhoto,
|
158
158
|
cardIconClicked: cardIconClicked,
|
159
|
-
columnsNumber: 2
|
159
|
+
columnsNumber: 2,
|
160
|
+
headerStyles: {
|
161
|
+
padding: 10,
|
162
|
+
controlsStyles: {
|
163
|
+
iconSize: 25
|
164
|
+
}
|
165
|
+
}
|
160
166
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
161
167
|
};
|
162
168
|
|
@@ -81,6 +81,26 @@ var Albums = function Albums(props) {
|
|
81
81
|
albums = _useState2[0],
|
82
82
|
setAlbums = _useState2[1];
|
83
83
|
|
84
|
+
var folders = [{
|
85
|
+
title: 'Folder one',
|
86
|
+
description: 'Discription for folder one'
|
87
|
+
}, {
|
88
|
+
title: 'Folder two',
|
89
|
+
description: 'Discription for folder two'
|
90
|
+
}, {
|
91
|
+
title: 'Folder three',
|
92
|
+
description: 'Discription for folder three'
|
93
|
+
}, {
|
94
|
+
title: 'Folder four',
|
95
|
+
description: 'Discription for folder four'
|
96
|
+
}, {
|
97
|
+
title: 'Folder five',
|
98
|
+
description: 'Discription for folder five'
|
99
|
+
}, {
|
100
|
+
title: 'Folder six',
|
101
|
+
description: 'Discription for folder six'
|
102
|
+
}];
|
103
|
+
|
84
104
|
var cardIconClicked = function cardIconClicked(action, index) {
|
85
105
|
switch (action) {
|
86
106
|
case 'delete':
|
@@ -105,6 +125,10 @@ var Albums = function Albums(props) {
|
|
105
125
|
setAlbums((0, _util.addObjectToArray)(albums, newAlbum));
|
106
126
|
};
|
107
127
|
|
128
|
+
var cardClicked = function cardClicked(index, cardProps) {
|
129
|
+
console.log(cardProps);
|
130
|
+
};
|
131
|
+
|
108
132
|
return /*#__PURE__*/_react.default.createElement(_BaseMaterial.default, Object.assign({}, _styles.default.containerStyle, props), /*#__PURE__*/_react.default.createElement(_Navbar.default, null), /*#__PURE__*/_react.default.createElement(_Body.default, _styles.default.bodyStyle, /*#__PURE__*/_react.default.createElement(_Left.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
109
133
|
widgetType: "logo",
|
110
134
|
widgetProps: {
|
@@ -143,8 +167,22 @@ var Albums = function Albums(props) {
|
|
143
167
|
cardIconClicked: cardIconClicked,
|
144
168
|
onDeleteAlbum: onDeleteAlbum,
|
145
169
|
onAddAlbum: onAddAlbum,
|
146
|
-
columnsNumber: 2
|
147
|
-
|
170
|
+
columnsNumber: 2,
|
171
|
+
cardClicked: cardClicked
|
172
|
+
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
173
|
+
widgetType: "folders",
|
174
|
+
widgetProps: {
|
175
|
+
folders: folders,
|
176
|
+
columnsNumber: 3,
|
177
|
+
customCardStyles: {
|
178
|
+
cardPadding: 10,
|
179
|
+
iconColor: '#ff2d2d',
|
180
|
+
controlsStyles: {
|
181
|
+
iconColor: '#FE1744'
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}))));
|
148
186
|
};
|
149
187
|
|
150
188
|
var _default = Albums;
|
@@ -104,7 +104,8 @@ var DetailedVideo = function DetailedVideo(props) {
|
|
104
104
|
date: "10/11/2022",
|
105
105
|
comments: comments,
|
106
106
|
discColor: "gray",
|
107
|
-
dateColor: "gray"
|
107
|
+
dateColor: "gray",
|
108
|
+
videoSrc: 'https://www.youtube.com/watch?v=vETUpJ88cfA'
|
108
109
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
109
110
|
};
|
110
111
|
|
@@ -153,6 +153,10 @@ var Video = function Video(props) {
|
|
153
153
|
setAlbum((0, _util.deleteFromArrayByIndex)(album, index));
|
154
154
|
};
|
155
155
|
|
156
|
+
var cardClicked = function cardClicked(index, cardProps) {
|
157
|
+
console.log(cardProps);
|
158
|
+
};
|
159
|
+
|
156
160
|
return /*#__PURE__*/_react.default.createElement(_BaseMaterial.default, Object.assign({}, _styles.default.containerStyle, props), /*#__PURE__*/_react.default.createElement(_Navbar.default, null), /*#__PURE__*/_react.default.createElement(_Body.default, _styles.default.bodyStyle, /*#__PURE__*/_react.default.createElement(_Left.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
157
161
|
widgetType: "logo",
|
158
162
|
widgetProps: {
|
@@ -190,7 +194,16 @@ var Video = function Video(props) {
|
|
190
194
|
album: album,
|
191
195
|
onAddVideo: onAddVideo,
|
192
196
|
onDeleteSong: deleteVideoFromAlbum,
|
193
|
-
cardIconClicked: cardIconClicked
|
197
|
+
cardIconClicked: cardIconClicked,
|
198
|
+
cardClicked: cardClicked,
|
199
|
+
headerStyles: {
|
200
|
+
padding: 10,
|
201
|
+
headerBackground: 'black',
|
202
|
+
titleColor: '#ffff',
|
203
|
+
controlsStyles: {
|
204
|
+
iconSize: 25
|
205
|
+
}
|
206
|
+
}
|
194
207
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
195
208
|
widgetType: "video player",
|
196
209
|
controlsStyles: {
|
@@ -161,14 +161,6 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
161
161
|
data: album,
|
162
162
|
type: "flat",
|
163
163
|
cardStyle: "card-style-6",
|
164
|
-
headerStyles: {
|
165
|
-
padding: 10,
|
166
|
-
headerBackground: props.headerBackground,
|
167
|
-
titleColor: props.titleColor,
|
168
|
-
controlsStyles: {
|
169
|
-
iconSize: 25
|
170
|
-
}
|
171
|
-
},
|
172
164
|
columnsNumber: columnsNumber,
|
173
165
|
galleryColumnGap: columnGap,
|
174
166
|
galleryRowGap: rowGap,
|
@@ -27,7 +27,7 @@ var _ai = require("react-icons/ai");
|
|
27
27
|
|
28
28
|
var _templateObject;
|
29
29
|
|
30
|
-
var _excluded = ["albums", "
|
30
|
+
var _excluded = ["albums", "columnsNumber", "columnGap", "rowGap"];
|
31
31
|
|
32
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
33
33
|
|
@@ -46,34 +46,10 @@ var galleryControls = [{
|
|
46
46
|
|
47
47
|
var ViewAlbums = function ViewAlbums(_ref) {
|
48
48
|
var albums = _ref.albums,
|
49
|
-
cardBackgroundColor = _ref.cardBackgroundColor,
|
50
|
-
cardTitleColor = _ref.cardTitleColor,
|
51
|
-
cardTitleFontSize = _ref.cardTitleFontSize,
|
52
|
-
albumTitleColor = _ref.albumTitleColor,
|
53
|
-
countColor = _ref.countColor,
|
54
|
-
countFontSize = _ref.countFontSize,
|
55
49
|
columnsNumber = _ref.columnsNumber,
|
56
50
|
columnGap = _ref.columnGap,
|
57
51
|
rowGap = _ref.rowGap,
|
58
52
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
59
|
-
var cardStyles = {
|
60
|
-
darkOnHover: true,
|
61
|
-
cardBackgroundColor: cardBackgroundColor,
|
62
|
-
cardTitleColor: cardTitleColor,
|
63
|
-
cardTitleFontSize: cardTitleFontSize,
|
64
|
-
countColor: countColor,
|
65
|
-
countFontSize: countFontSize,
|
66
|
-
controlsStyles: {
|
67
|
-
showOnHover: true,
|
68
|
-
position: 'center',
|
69
|
-
dropdownFontColor: "white",
|
70
|
-
iconBorderRadius: 100,
|
71
|
-
iconSize: 40,
|
72
|
-
iconsGap: 10,
|
73
|
-
iconColor: 'white',
|
74
|
-
containerPadding: 20
|
75
|
-
}
|
76
|
-
};
|
77
53
|
|
78
54
|
var _useState = (0, _react.useState)(false),
|
79
55
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
@@ -109,25 +85,13 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
109
85
|
data: albums,
|
110
86
|
type: "flat",
|
111
87
|
cardStyle: "card-style-6",
|
112
|
-
headerStyles: {
|
113
|
-
padding: 10,
|
114
|
-
headerBackground: props.headerBackground,
|
115
|
-
titleColor: props.titleColor,
|
116
|
-
controlsStyles: {
|
117
|
-
iconSize: 25
|
118
|
-
}
|
119
|
-
},
|
120
88
|
columnsNumber: columnsNumber,
|
121
89
|
galleryColumnGap: columnGap,
|
122
90
|
galleryRowGap: rowGap,
|
123
91
|
galleryControls: galleryControls,
|
124
92
|
iconClicked: onIconClicked,
|
125
|
-
cardClicked: function cardClicked() {
|
126
|
-
return null;
|
127
|
-
},
|
128
93
|
cardControls: cardControls,
|
129
|
-
cardIconClicked: cardIconClicked
|
130
|
-
customCardStyles: cardStyles
|
94
|
+
cardIconClicked: cardIconClicked
|
131
95
|
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
132
96
|
modalIsOpen: showModal,
|
133
97
|
closeModal: function closeModal() {
|
@@ -142,7 +106,7 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
142
106
|
})));
|
143
107
|
};
|
144
108
|
|
145
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
109
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
146
110
|
|
147
111
|
ViewAlbums.defaultProps = {
|
148
112
|
columnsNumber: 3,
|
@@ -47,14 +47,19 @@ var CardStyle10 = function CardStyle10(_ref) {
|
|
47
47
|
props.iconClicked(action, props.index);
|
48
48
|
};
|
49
49
|
|
50
|
+
var cardClicked = function cardClicked() {
|
51
|
+
props.cardClicked();
|
52
|
+
};
|
53
|
+
|
50
54
|
return /*#__PURE__*/_react.default.createElement(Card, Object.assign({
|
55
|
+
onClick: cardClicked,
|
51
56
|
onMouseEnter: function onMouseEnter(e) {
|
52
57
|
return setShowIcons(true);
|
53
58
|
},
|
54
59
|
onMouseLeave: function onMouseLeave(e) {
|
55
60
|
return setShowIcons(false);
|
56
61
|
}
|
57
|
-
}, props), /*#__PURE__*/_react.default.createElement(SvgWrapper, props, /*#__PURE__*/_react.default.createElement(_ai.AiFillFolderOpen,
|
62
|
+
}, props), /*#__PURE__*/_react.default.createElement(SvgWrapper, props, /*#__PURE__*/_react.default.createElement(_ai.AiFillFolderOpen, props)), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, props, title), /*#__PURE__*/_react.default.createElement(_globalCardStyles.Description, props, description)), /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
|
58
63
|
controls: cardControls,
|
59
64
|
show: showIcons,
|
60
65
|
onIconClicked: iconCliked,
|
@@ -64,7 +69,6 @@ var CardStyle10 = function CardStyle10(_ref) {
|
|
64
69
|
iconSize: 20,
|
65
70
|
iconsGap: 10,
|
66
71
|
maxIcons: 0,
|
67
|
-
iconColor: "#FE1744",
|
68
72
|
dropdownFontSize: 10
|
69
73
|
}, props.controlsStyles)));
|
70
74
|
};
|
@@ -72,7 +76,7 @@ var CardStyle10 = function CardStyle10(_ref) {
|
|
72
76
|
var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-direction: column;\n row-gap: 10px;\n"])));
|
73
77
|
var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n justify-content: space-between;\n\n"])));
|
74
78
|
|
75
|
-
var SvgWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\n svg{\n width: 70px;\n height: 70px;\n fill: ", "\n }\n"])), function (props) {
|
79
|
+
var SvgWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\n & svg{\n width: 70px;\n height: 70px;\n fill: ", "\n }\n"])), function (props) {
|
76
80
|
return props.iconColor;
|
77
81
|
});
|
78
82
|
|
@@ -45,7 +45,13 @@ var CardStyle11 = function CardStyle11(_ref) {
|
|
45
45
|
props.iconClicked(action, props.index);
|
46
46
|
};
|
47
47
|
|
48
|
-
|
48
|
+
var cardClicked = function cardClicked() {
|
49
|
+
props.cardClicked();
|
50
|
+
};
|
51
|
+
|
52
|
+
return /*#__PURE__*/_react.default.createElement(Card, Object.assign({
|
53
|
+
onClick: cardClicked
|
54
|
+
}, props), /*#__PURE__*/_react.default.createElement(SvgWrapper, props, /*#__PURE__*/_react.default.createElement(_bi.BiNotepad, null)), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, props, title), /*#__PURE__*/_react.default.createElement(Date, props, date)), props.cardControls && /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
|
49
55
|
controls: props.cardControls,
|
50
56
|
show: showIcons,
|
51
57
|
onIconClicked: iconClicked
|
@@ -21,7 +21,7 @@ var _Controls = _interopRequireDefault(require("../../Controls/Controls"));
|
|
21
21
|
|
22
22
|
var _globalCardStyles = require("../globalCardStyles");
|
23
23
|
|
24
|
-
var _templateObject;
|
24
|
+
var _templateObject, _templateObject2;
|
25
25
|
|
26
26
|
var _excluded = ["title", "description", "path"];
|
27
27
|
|
@@ -48,7 +48,7 @@ var CardStyle3 = function CardStyle3(_ref) {
|
|
48
48
|
props.cardClicked(path);
|
49
49
|
};
|
50
50
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(
|
51
|
+
return /*#__PURE__*/_react.default.createElement(Card, Object.assign({
|
52
52
|
onClick: cardClicked,
|
53
53
|
onMouseEnter: function onMouseEnter(e) {
|
54
54
|
return setShowIcons(true);
|
@@ -66,6 +66,7 @@ var CardStyle3 = function CardStyle3(_ref) {
|
|
66
66
|
var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n row-gap: ", "px;\n"])), function (props) {
|
67
67
|
return props.rowGap;
|
68
68
|
});
|
69
|
+
var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n"])));
|
69
70
|
CardStyle3.defaultProps = {};
|
70
71
|
var _default = CardStyle3;
|
71
72
|
exports.default = _default;
|
@@ -17,7 +17,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
17
17
|
|
18
18
|
var _globalCardStyles = require("../globalCardStyles");
|
19
19
|
|
20
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
20
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
21
21
|
|
22
22
|
var _excluded = ["username", "answered", "img", "status"];
|
23
23
|
|
@@ -33,15 +33,29 @@ var CardStyle9 = function CardStyle9(_ref) {
|
|
33
33
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
34
34
|
console.log(props);
|
35
35
|
|
36
|
-
var
|
37
|
-
|
36
|
+
var onAction = function onAction(action) {
|
37
|
+
props.iconClicked(action);
|
38
38
|
};
|
39
39
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement(Card, props, /*#__PURE__*/_react.default.createElement(ImgWrapper, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Img, {
|
41
41
|
src: img
|
42
|
-
})), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(
|
43
|
-
onClick:
|
44
|
-
|
42
|
+
})), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(Title, Object.assign({
|
43
|
+
onClick: function onClick() {
|
44
|
+
return props.cardClicked();
|
45
|
+
}
|
46
|
+
}, props), username), /*#__PURE__*/_react.default.createElement(Answered, null, "Questions Answered: ", answered), /*#__PURE__*/_react.default.createElement(Buttons, null, /*#__PURE__*/_react.default.createElement(Accept, {
|
47
|
+
onClick: function onClick() {
|
48
|
+
return onAction('accept');
|
49
|
+
}
|
50
|
+
}, "Accept"), /*#__PURE__*/_react.default.createElement(Decline, {
|
51
|
+
onClick: function onClick() {
|
52
|
+
return onAction('decline');
|
53
|
+
}
|
54
|
+
}, "Decline"), status === 'pending' && /*#__PURE__*/_react.default.createElement(Review, {
|
55
|
+
onClick: function onClick() {
|
56
|
+
return onAction('review');
|
57
|
+
}
|
58
|
+
}, "In Review"))));
|
45
59
|
};
|
46
60
|
|
47
61
|
var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n gap: 20px;\n padding: 10px;\n"])));
|
@@ -53,15 +67,16 @@ var ImgWrapper = _styledComponents.default.div(_templateObject2 || (_templateObj
|
|
53
67
|
});
|
54
68
|
|
55
69
|
var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n"])));
|
70
|
+
var Title = (0, _styledComponents.default)(_globalCardStyles.Title)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n"])));
|
56
71
|
|
57
|
-
var Answered = _styledComponents.default.h5(
|
72
|
+
var Answered = _styledComponents.default.h5(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 300;\n"])));
|
58
73
|
|
59
|
-
var Buttons = _styledComponents.default.div(
|
74
|
+
var Buttons = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n gap: 10px;\n"])));
|
60
75
|
|
61
|
-
var Button = _styledComponents.default.button(
|
76
|
+
var Button = _styledComponents.default.button(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n padding: 7px 20px;\n border: none;\n color: white;\n cursor: pointer;\n"])));
|
62
77
|
|
63
|
-
var Accept = (0, _styledComponents.default)(Button)(
|
64
|
-
var Decline = (0, _styledComponents.default)(Button)(
|
65
|
-
var Review = (0, _styledComponents.default)(Button)(
|
78
|
+
var Accept = (0, _styledComponents.default)(Button)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n background-color: #69d869;\n"])));
|
79
|
+
var Decline = (0, _styledComponents.default)(Button)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n background-color: #e24848;\n"])));
|
80
|
+
var Review = (0, _styledComponents.default)(Button)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n background-color: #18b8e9;\n"])));
|
66
81
|
var _default = CardStyle9;
|
67
82
|
exports.default = _default;
|
@@ -14,7 +14,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
14
14
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
15
15
|
|
16
16
|
var MainCard = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n* {\n margin: 0;\n padding: 0;\n }\n font-family: sans-serif;\n display: flex;\n background-color: ", ";\n border-radius: ", "px;\n border: ", ";\n align-items: center;\n padding: ", " !important;\n order: ", ";\n &:hover {\n box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);\n -webkit-filter: ", ";\n transition: all .2s ease;\n background-color: ", ";\n }\n"])), function (props) {
|
17
|
-
return props.cardBackgroundColor || '
|
17
|
+
return props.cardBackgroundColor || 'transparent';
|
18
18
|
}, function (props) {
|
19
19
|
return props.cardRadius;
|
20
20
|
}, function (props) {
|
@@ -39,8 +39,8 @@ var Gallery = function Gallery(_ref) {
|
|
39
39
|
props.iconClicked(action);
|
40
40
|
};
|
41
41
|
|
42
|
-
var clicked = function clicked(index) {
|
43
|
-
props.cardClicked(index);
|
42
|
+
var clicked = function clicked(index, cardProps) {
|
43
|
+
props.cardClicked(index, cardProps);
|
44
44
|
};
|
45
45
|
|
46
46
|
var cardIconClicked = function cardIconClicked(action, index) {
|
@@ -23,7 +23,7 @@ var _ReusableHeader = _interopRequireDefault(require("../ReusableHeader/Reusable
|
|
23
23
|
|
24
24
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
25
25
|
|
26
|
-
var _excluded = ["data", "cardStyle", "customCardStyles", "type", "cardControls"];
|
26
|
+
var _excluded = ["data", "cardStyle", "customCardStyles", "type", "cardControls", "headerStyles", "sectionHeaderStyles"];
|
27
27
|
|
28
28
|
var ReusableList = function ReusableList(_ref) {
|
29
29
|
var data = _ref.data,
|
@@ -32,6 +32,8 @@ var ReusableList = function ReusableList(_ref) {
|
|
32
32
|
type = _ref.type,
|
33
33
|
_ref$cardControls = _ref.cardControls,
|
34
34
|
cardControls = _ref$cardControls === void 0 ? null : _ref$cardControls,
|
35
|
+
headerStyles = _ref.headerStyles,
|
36
|
+
sectionHeaderStyles = _ref.sectionHeaderStyles,
|
35
37
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
36
38
|
var child;
|
37
39
|
|
@@ -39,8 +41,8 @@ var ReusableList = function ReusableList(_ref) {
|
|
39
41
|
props.iconClicked(action);
|
40
42
|
};
|
41
43
|
|
42
|
-
var clicked = function clicked(index) {
|
43
|
-
props.cardClicked(index);
|
44
|
+
var clicked = function clicked(index, cardProps) {
|
45
|
+
props.cardClicked(index, cardProps);
|
44
46
|
};
|
45
47
|
|
46
48
|
var cardIconClicked = function cardIconClicked(action, index) {
|
@@ -59,9 +61,9 @@ var ReusableList = function ReusableList(_ref) {
|
|
59
61
|
child = data.map(function (section) {
|
60
62
|
return /*#__PURE__*/_react.default.createElement(Section, {
|
61
63
|
priority: section.priority
|
62
|
-
}, /*#__PURE__*/_react.default.createElement(
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_ReusableHeader.default, Object.assign({
|
63
65
|
title: section.title
|
64
|
-
},
|
66
|
+
}, sectionHeaderStyles)), /*#__PURE__*/_react.default.createElement(SectionBody, null, mapOverCardsData(section.data)));
|
65
67
|
});
|
66
68
|
}
|
67
69
|
|
@@ -69,7 +71,7 @@ var ReusableList = function ReusableList(_ref) {
|
|
69
71
|
title: props.listTitle,
|
70
72
|
controls: props.listControls,
|
71
73
|
iconClicked: iconCliked
|
72
|
-
},
|
74
|
+
}, headerStyles)), /*#__PURE__*/_react.default.createElement(ListBody, props, child));
|
73
75
|
};
|
74
76
|
|
75
77
|
var List = _styledComponents.default.ul(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n font-family: sans-serif;\n width: ", ";\n padding: 0;\n > * {\n padding: 0;\n margin: 0;\n }\n"])), function (props) {
|