@mohamed-karawia/library 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/stories/Events/Event/Event.js +5 -9
- package/dist/stories/Library/Notes/Notes.js +2 -10
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +2 -10
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +1 -12
- package/dist/stories/Pages/Events/Event/Event.js +9 -3
- package/dist/stories/Pages/Library/Notes/Notes.js +9 -1
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +9 -1
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +15 -1
- package/dist/stories/Pages/Photos/Albums/Albums.js +6 -1
- 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/ViewAlbums/ViewAlbums.js +0 -3
- package/dist/stories/Reusable Components/Gallery/Gallery.js +2 -2
- package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +5 -3
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +0 -11
- package/dist/stories/helpers/util.js +1 -1
- package/package.json +1 -1
- package/src/stories/Events/Event/Event.jsx +3 -6
- package/src/stories/Library/Notes/Notes.jsx +1 -8
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +1 -8
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +2 -10
- package/src/stories/Pages/Events/Event/Event.jsx +8 -2
- package/src/stories/Pages/Library/Notes/Notes.jsx +8 -1
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +9 -1
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +16 -1
- package/src/stories/Pages/Photos/Albums/Albums.jsx +5 -0
- 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/ViewAlbums/ViewAlbums.jsx +0 -1
- package/src/stories/Reusable Components/Gallery/Gallery.jsx +2 -2
- package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +3 -1
- package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +0 -9
- package/src/stories/helpers/util.js +1 -1
@@ -27,18 +27,14 @@ var Event = function Event(_ref) {
|
|
27
27
|
titleSize = _ref.titleSize,
|
28
28
|
dateColor = _ref.dateColor,
|
29
29
|
dateSize = _ref.dateSize,
|
30
|
-
headerBackground = _ref.headerBackground,
|
31
|
-
headerTitleColor = _ref.headerTitleColor,
|
32
30
|
discColor = _ref.discColor,
|
33
|
-
discSize = _ref.discSize
|
31
|
+
discSize = _ref.discSize,
|
32
|
+
headerStyles = _ref.headerStyles;
|
34
33
|
return /*#__PURE__*/_react.default.createElement(Container, {
|
35
34
|
backgroundColor: backgroundColor
|
36
|
-
}, /*#__PURE__*/_react.default.createElement(_ReusableHeader.default, {
|
37
|
-
title:
|
38
|
-
|
39
|
-
headerBackground: headerBackground,
|
40
|
-
titleColor: headerTitleColor
|
41
|
-
}), /*#__PURE__*/_react.default.createElement(CoverWrapper, null, /*#__PURE__*/_react.default.createElement(Cover, {
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_ReusableHeader.default, Object.assign({
|
36
|
+
title: title
|
37
|
+
}, headerStyles)), /*#__PURE__*/_react.default.createElement(CoverWrapper, null, /*#__PURE__*/_react.default.createElement(Cover, {
|
42
38
|
src: cover
|
43
39
|
})), /*#__PURE__*/_react.default.createElement(Details, null, /*#__PURE__*/_react.default.createElement(Header, null, /*#__PURE__*/_react.default.createElement(Title, {
|
44
40
|
size: titleSize,
|
@@ -85,19 +85,11 @@ var Notes = function Notes(_ref) {
|
|
85
85
|
setShowModal(false);
|
86
86
|
};
|
87
87
|
|
88
|
-
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
|
88
|
+
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
89
89
|
listTitle: "My Notes",
|
90
90
|
data: notes,
|
91
91
|
type: "flat",
|
92
92
|
cardStyle: "card-style-11",
|
93
|
-
headerStyles: {
|
94
|
-
padding: 10,
|
95
|
-
headerBackground: '#FE1744',
|
96
|
-
titleColor: '#ffff',
|
97
|
-
controlsStyles: {
|
98
|
-
iconSize: 25
|
99
|
-
}
|
100
|
-
},
|
101
93
|
customCardStyles: {
|
102
94
|
iconColor: iconColor,
|
103
95
|
cardTitleFontSize: cardTitleFontSize,
|
@@ -112,7 +104,7 @@ var Notes = function Notes(_ref) {
|
|
112
104
|
iconClicked: onIconClicked,
|
113
105
|
cardClicked: cardClicked,
|
114
106
|
cardIconClicked: cardIconClicked
|
115
|
-
}), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
107
|
+
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
116
108
|
modalIsOpen: showModal,
|
117
109
|
closeModal: function closeModal() {
|
118
110
|
return setShowModal(false);
|
@@ -79,17 +79,9 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
79
79
|
setShowModal(false);
|
80
80
|
};
|
81
81
|
|
82
|
-
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
|
82
|
+
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
83
83
|
listTitle: "My Album",
|
84
84
|
data: album,
|
85
|
-
headerStyles: {
|
86
|
-
padding: 10,
|
87
|
-
headerBackground: 'black',
|
88
|
-
titleColor: '#ffff',
|
89
|
-
controlsStyles: {
|
90
|
-
iconSize: 25
|
91
|
-
}
|
92
|
-
},
|
93
85
|
cardStyle: "card-style-7",
|
94
86
|
type: "flat",
|
95
87
|
cardClicked: function cardClicked(index) {
|
@@ -106,7 +98,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
106
98
|
iconColor: 'black'
|
107
99
|
}
|
108
100
|
}
|
109
|
-
}), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
101
|
+
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
110
102
|
modalIsOpen: showModal,
|
111
103
|
closeModal: function closeModal() {
|
112
104
|
return setShowModal(false);
|
@@ -101,27 +101,16 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
101
101
|
};
|
102
102
|
|
103
103
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
|
104
|
-
galleryTitle:
|
104
|
+
galleryTitle: props.title,
|
105
105
|
data: albums,
|
106
106
|
type: "flat",
|
107
107
|
cardStyle: "card-style-6",
|
108
|
-
headerStyles: {
|
109
|
-
padding: 10,
|
110
|
-
headerBackground: 'black',
|
111
|
-
titleColor: '#ffff',
|
112
|
-
controlsStyles: {
|
113
|
-
iconSize: 25
|
114
|
-
}
|
115
|
-
},
|
116
108
|
columnsNumber: 3,
|
117
109
|
galleryColumnGap: 10,
|
118
110
|
galleryRowGap: 20,
|
119
111
|
galleryControls: galleryControls,
|
120
112
|
iconClicked: onHeaderIconClicked,
|
121
113
|
cardControls: cardControls,
|
122
|
-
cardClicked: function cardClicked() {
|
123
|
-
return null;
|
124
|
-
},
|
125
114
|
cardIconClicked: cardIconClicked,
|
126
115
|
customCardStyles: cardStyles
|
127
116
|
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
@@ -77,11 +77,17 @@ var Event = function Event(props) {
|
|
77
77
|
date: "15/11/1976 : 16/11/1976",
|
78
78
|
disc: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia impedit fugiat reprehenderit adipisci eos atque ullam error quia amet nihil, exercitationem beatae distinctio eligendi neque, consequuntur odit commodi id porro.",
|
79
79
|
backgroundColor: "black",
|
80
|
-
headerBackground: "black",
|
81
|
-
headerTitleColor: "white",
|
82
80
|
titleColor: "white",
|
83
81
|
discColor: "white",
|
84
|
-
dateColor: "white"
|
82
|
+
dateColor: "white",
|
83
|
+
headerStyles: {
|
84
|
+
padding: 10,
|
85
|
+
headerBackground: 'black',
|
86
|
+
titleColor: '#ffff',
|
87
|
+
controlsStyles: {
|
88
|
+
iconSize: 25
|
89
|
+
}
|
90
|
+
}
|
85
91
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
86
92
|
};
|
87
93
|
|
@@ -115,7 +115,15 @@ var Notes = function Notes(props) {
|
|
115
115
|
}, /*#__PURE__*/_react.default.createElement(_Notes.default, {
|
116
116
|
onAddNote: onAddNote,
|
117
117
|
cardIconClicked: cardIconClicked,
|
118
|
-
notes: notes
|
118
|
+
notes: notes,
|
119
|
+
headerStyles: {
|
120
|
+
padding: 10,
|
121
|
+
headerBackground: '#FE1744',
|
122
|
+
titleColor: '#ffff',
|
123
|
+
controlsStyles: {
|
124
|
+
iconSize: 25
|
125
|
+
}
|
126
|
+
}
|
119
127
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
120
128
|
};
|
121
129
|
|
@@ -183,7 +183,15 @@ 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
|
+
}
|
187
195
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
188
196
|
widgetType: "music player",
|
189
197
|
controlsStyles: {
|
@@ -111,6 +111,10 @@ 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
|
+
|
114
118
|
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
119
|
widgetType: "logo",
|
116
120
|
widgetProps: {
|
@@ -145,9 +149,19 @@ var MusicAlbums = function MusicAlbums(props) {
|
|
145
149
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
146
150
|
hideTitle: true
|
147
151
|
}, /*#__PURE__*/_react.default.createElement(_ViewAlbums.default, {
|
152
|
+
title: "Music Albums",
|
148
153
|
albums: albums,
|
149
154
|
cardIconClicked: cardIconClicked,
|
150
|
-
onAddAlbum: onAddAlbum
|
155
|
+
onAddAlbum: onAddAlbum,
|
156
|
+
headerStyles: {
|
157
|
+
padding: 10,
|
158
|
+
headerBackground: 'black',
|
159
|
+
titleColor: '#ffff',
|
160
|
+
controlsStyles: {
|
161
|
+
iconSize: 25
|
162
|
+
}
|
163
|
+
},
|
164
|
+
cardClicked: cardClicked
|
151
165
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
152
166
|
};
|
153
167
|
|
@@ -105,6 +105,10 @@ var Albums = function Albums(props) {
|
|
105
105
|
setAlbums((0, _util.addObjectToArray)(albums, newAlbum));
|
106
106
|
};
|
107
107
|
|
108
|
+
var cardClicked = function cardClicked(index, cardProps) {
|
109
|
+
console.log(cardProps);
|
110
|
+
};
|
111
|
+
|
108
112
|
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
113
|
widgetType: "logo",
|
110
114
|
widgetProps: {
|
@@ -143,7 +147,8 @@ var Albums = function Albums(props) {
|
|
143
147
|
cardIconClicked: cardIconClicked,
|
144
148
|
onDeleteAlbum: onDeleteAlbum,
|
145
149
|
onAddAlbum: onAddAlbum,
|
146
|
-
columnsNumber: 2
|
150
|
+
columnsNumber: 2,
|
151
|
+
cardClicked: cardClicked
|
147
152
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
148
153
|
};
|
149
154
|
|
@@ -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: {
|
@@ -122,9 +122,6 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
122
122
|
galleryRowGap: rowGap,
|
123
123
|
galleryControls: galleryControls,
|
124
124
|
iconClicked: onIconClicked,
|
125
|
-
cardClicked: function cardClicked() {
|
126
|
-
return null;
|
127
|
-
},
|
128
125
|
cardControls: cardControls,
|
129
126
|
cardIconClicked: cardIconClicked,
|
130
127
|
customCardStyles: cardStyles
|
@@ -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,10 +23,11 @@ var _RichTextInput = _interopRequireDefault(require("../../Common Inputs/RichTex
|
|
23
23
|
|
24
24
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
25
25
|
|
26
|
-
var _excluded = ["title", "discription", "date", "users", "iconsColor", "backgroundColor", "detailsPadding", "titleFontSize", "titleColor", "dateFontSize", "dateColor", "discFontSize", "discColor", "comments", "commentBackgroundColor", "commentTitleColor", "commentTitleFontSize"];
|
26
|
+
var _excluded = ["videoSrc", "title", "discription", "date", "users", "iconsColor", "backgroundColor", "detailsPadding", "titleFontSize", "titleColor", "dateFontSize", "dateColor", "discFontSize", "discColor", "comments", "commentBackgroundColor", "commentTitleColor", "commentTitleFontSize"];
|
27
27
|
|
28
28
|
var VideoSpace = function VideoSpace(_ref) {
|
29
|
-
var
|
29
|
+
var videoSrc = _ref.videoSrc,
|
30
|
+
title = _ref.title,
|
30
31
|
discription = _ref.discription,
|
31
32
|
date = _ref.date,
|
32
33
|
users = _ref.users,
|
@@ -47,7 +48,8 @@ var VideoSpace = function VideoSpace(_ref) {
|
|
47
48
|
return /*#__PURE__*/_react.default.createElement(Container, {
|
48
49
|
backgroundColor: backgroundColor
|
49
50
|
}, /*#__PURE__*/_react.default.createElement(_VideoPlayer.default, {
|
50
|
-
iconsColor: iconsColor
|
51
|
+
iconsColor: iconsColor,
|
52
|
+
src: videoSrc
|
51
53
|
}), /*#__PURE__*/_react.default.createElement(VideoDetails, {
|
52
54
|
detailsPadding: detailsPadding
|
53
55
|
}, /*#__PURE__*/_react.default.createElement(Top, null, /*#__PURE__*/_react.default.createElement(Title, {
|
@@ -110,23 +110,12 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
110
110
|
data: album,
|
111
111
|
type: "flat",
|
112
112
|
cardStyle: "card-style-6",
|
113
|
-
headerStyles: {
|
114
|
-
padding: 10,
|
115
|
-
headerBackground: 'black',
|
116
|
-
titleColor: '#ffff',
|
117
|
-
controlsStyles: {
|
118
|
-
iconSize: 25
|
119
|
-
}
|
120
|
-
},
|
121
113
|
columnsNumber: 3,
|
122
114
|
galleryColumnGap: 10,
|
123
115
|
galleryRowGap: 20,
|
124
116
|
galleryControls: galleryControls,
|
125
117
|
iconClicked: onHeaderIconClicked,
|
126
118
|
cardControls: cardControls,
|
127
|
-
cardClicked: function cardClicked() {
|
128
|
-
return null;
|
129
|
-
},
|
130
119
|
cardIconClicked: cardIconClicked,
|
131
120
|
customCardStyles: cardStyles
|
132
121
|
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
@@ -103,7 +103,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
|
|
103
103
|
}, cardProps, customCardStyles, {
|
104
104
|
cardControls: cardControls,
|
105
105
|
cardClicked: function cardClicked() {
|
106
|
-
return clicked(index);
|
106
|
+
return clicked(index, cardProps);
|
107
107
|
},
|
108
108
|
iconClicked: function iconClicked(action) {
|
109
109
|
return cardIconClicked(action, index);
|
package/package.json
CHANGED
@@ -14,19 +14,16 @@ const Event = ({
|
|
14
14
|
titleSize,
|
15
15
|
dateColor,
|
16
16
|
dateSize,
|
17
|
-
headerBackground,
|
18
|
-
headerTitleColor,
|
19
17
|
discColor,
|
20
18
|
discSize,
|
19
|
+
headerStyles
|
21
20
|
}) => {
|
22
21
|
return (
|
23
22
|
<Container
|
24
23
|
backgroundColor={backgroundColor}>
|
25
24
|
<ReusableHeader
|
26
|
-
title=
|
27
|
-
|
28
|
-
headerBackground={headerBackground}
|
29
|
-
titleColor={headerTitleColor}
|
25
|
+
title={title}
|
26
|
+
{...headerStyles}
|
30
27
|
/>
|
31
28
|
<CoverWrapper>
|
32
29
|
<Cover src={cover} />
|
@@ -60,14 +60,6 @@ const Notes = ({
|
|
60
60
|
data={notes}
|
61
61
|
type='flat'
|
62
62
|
cardStyle="card-style-11"
|
63
|
-
headerStyles={{
|
64
|
-
padding: 10,
|
65
|
-
headerBackground: '#FE1744',
|
66
|
-
titleColor: '#ffff',
|
67
|
-
controlsStyles: {
|
68
|
-
iconSize: 25
|
69
|
-
}
|
70
|
-
}}
|
71
63
|
customCardStyles={{
|
72
64
|
iconColor,
|
73
65
|
cardTitleFontSize,
|
@@ -82,6 +74,7 @@ const Notes = ({
|
|
82
74
|
iconClicked={onIconClicked}
|
83
75
|
cardClicked={cardClicked}
|
84
76
|
cardIconClicked={cardIconClicked}
|
77
|
+
{...props}
|
85
78
|
/>
|
86
79
|
<Modal
|
87
80
|
modalIsOpen={showModal}
|
@@ -52,14 +52,6 @@ const ViewAlbum = ({
|
|
52
52
|
<List
|
53
53
|
listTitle="My Album"
|
54
54
|
data={album}
|
55
|
-
headerStyles={{
|
56
|
-
padding: 10,
|
57
|
-
headerBackground: 'black',
|
58
|
-
titleColor: '#ffff',
|
59
|
-
controlsStyles: {
|
60
|
-
iconSize: 25
|
61
|
-
}
|
62
|
-
}}
|
63
55
|
cardStyle="card-style-7"
|
64
56
|
type="flat"
|
65
57
|
cardClicked={(index) => props.cardClicked(index)}
|
@@ -74,6 +66,7 @@ const ViewAlbum = ({
|
|
74
66
|
iconColor: 'black'
|
75
67
|
}
|
76
68
|
}}
|
69
|
+
{...props}
|
77
70
|
/>
|
78
71
|
<Modal
|
79
72
|
modalIsOpen={showModal}
|
@@ -76,25 +76,16 @@ const ViewAlbums = ({
|
|
76
76
|
return (
|
77
77
|
<Container>
|
78
78
|
<Gallery
|
79
|
-
galleryTitle=
|
79
|
+
galleryTitle={props.title}
|
80
80
|
data={albums}
|
81
81
|
type="flat"
|
82
82
|
cardStyle="card-style-6"
|
83
|
-
headerStyles={{
|
84
|
-
padding: 10,
|
85
|
-
headerBackground: 'black',
|
86
|
-
titleColor: '#ffff',
|
87
|
-
controlsStyles: {
|
88
|
-
iconSize: 25
|
89
|
-
}
|
90
|
-
}}
|
91
83
|
columnsNumber={3}
|
92
84
|
galleryColumnGap={10}
|
93
85
|
galleryRowGap={20}
|
94
86
|
galleryControls={galleryControls}
|
95
87
|
iconClicked={onHeaderIconClicked}
|
96
88
|
cardControls={cardControls}
|
97
|
-
cardClicked={() => null}
|
98
89
|
cardIconClicked={cardIconClicked}
|
99
90
|
customCardStyles={cardStyles}
|
100
91
|
{...props}
|
@@ -129,6 +120,7 @@ ViewAlbums.propTypes = {
|
|
129
120
|
cardBackgroundColor: PropTypes.string,
|
130
121
|
albumTitleColor: PropTypes.string,
|
131
122
|
descColor: PropTypes.string,
|
123
|
+
title: PropTypes.string
|
132
124
|
};
|
133
125
|
|
134
126
|
export default ViewAlbums
|
@@ -67,11 +67,17 @@ const Event = (props) => {
|
|
67
67
|
date="15/11/1976 : 16/11/1976"
|
68
68
|
disc="Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia impedit fugiat reprehenderit adipisci eos atque ullam error quia amet nihil, exercitationem beatae distinctio eligendi neque, consequuntur odit commodi id porro."
|
69
69
|
backgroundColor="black"
|
70
|
-
headerBackground="black"
|
71
|
-
headerTitleColor="white"
|
72
70
|
titleColor="white"
|
73
71
|
discColor="white"
|
74
72
|
dateColor="white"
|
73
|
+
headerStyles={{
|
74
|
+
padding: 10,
|
75
|
+
headerBackground: 'black',
|
76
|
+
titleColor: '#ffff',
|
77
|
+
controlsStyles: {
|
78
|
+
iconSize: 25
|
79
|
+
}
|
80
|
+
}}
|
75
81
|
/>
|
76
82
|
|
77
83
|
</SpaceContainer>
|
@@ -93,7 +93,14 @@ const Notes = (props) => {
|
|
93
93
|
onAddNote={onAddNote}
|
94
94
|
cardIconClicked={cardIconClicked}
|
95
95
|
notes={notes}
|
96
|
-
|
96
|
+
headerStyles={{
|
97
|
+
padding: 10,
|
98
|
+
headerBackground: '#FE1744',
|
99
|
+
titleColor: '#ffff',
|
100
|
+
controlsStyles: {
|
101
|
+
iconSize: 25
|
102
|
+
}
|
103
|
+
}} />
|
97
104
|
|
98
105
|
</SpaceContainer>
|
99
106
|
|
@@ -123,7 +123,15 @@ const Music = (props) => {
|
|
123
123
|
album={album}
|
124
124
|
onAddSong={onAddSong}
|
125
125
|
cardIconClicked={cardIconClicked}
|
126
|
-
cardClicked={onPlaySong}
|
126
|
+
cardClicked={onPlaySong}
|
127
|
+
headerStyles={{
|
128
|
+
padding: 10,
|
129
|
+
headerBackground: 'black',
|
130
|
+
titleColor: '#ffff',
|
131
|
+
controlsStyles: {
|
132
|
+
iconSize: 25
|
133
|
+
}
|
134
|
+
}} />
|
127
135
|
</SpaceContainer>
|
128
136
|
|
129
137
|
</Center>
|
@@ -56,6 +56,10 @@ const MusicAlbums = (props) => {
|
|
56
56
|
const deleteFromAlbums = (index) => {
|
57
57
|
setAlbums(deleteFromArrayByIndex(albums, index))
|
58
58
|
}
|
59
|
+
|
60
|
+
const cardClicked = (index, cardProps) => {
|
61
|
+
console.log(cardProps)
|
62
|
+
}
|
59
63
|
return (
|
60
64
|
<BaseMaterial {...worldStyles.containerStyle} {...props}>
|
61
65
|
<Navbar />
|
@@ -100,9 +104,20 @@ const MusicAlbums = (props) => {
|
|
100
104
|
hideTitle
|
101
105
|
>
|
102
106
|
<ViewAlbums
|
107
|
+
title="Music Albums"
|
103
108
|
albums={albums}
|
104
109
|
cardIconClicked={cardIconClicked}
|
105
|
-
onAddAlbum={onAddAlbum}
|
110
|
+
onAddAlbum={onAddAlbum}
|
111
|
+
headerStyles={{
|
112
|
+
padding: 10,
|
113
|
+
headerBackground: 'black',
|
114
|
+
titleColor: '#ffff',
|
115
|
+
controlsStyles: {
|
116
|
+
iconSize: 25
|
117
|
+
}
|
118
|
+
}}
|
119
|
+
cardClicked={cardClicked}
|
120
|
+
/>
|
106
121
|
</SpaceContainer>
|
107
122
|
|
108
123
|
</Center>
|
@@ -59,6 +59,10 @@ const Albums = (props) => {
|
|
59
59
|
setAlbums(addObjectToArray(albums, newAlbum))
|
60
60
|
}
|
61
61
|
|
62
|
+
const cardClicked = (index, cardProps) => {
|
63
|
+
console.log(cardProps)
|
64
|
+
}
|
65
|
+
|
62
66
|
return (
|
63
67
|
<BaseMaterial {...worldStyles.containerStyle} {...props}>
|
64
68
|
<Navbar />
|
@@ -108,6 +112,7 @@ const Albums = (props) => {
|
|
108
112
|
onDeleteAlbum={onDeleteAlbum}
|
109
113
|
onAddAlbum={onAddAlbum}
|
110
114
|
columnsNumber={2}
|
115
|
+
cardClicked={cardClicked}
|
111
116
|
/>
|
112
117
|
</SpaceContainer>
|
113
118
|
|
@@ -84,6 +84,9 @@ const Video = (props) => {
|
|
84
84
|
setAlbum(deleteFromArrayByIndex(album, index))
|
85
85
|
}
|
86
86
|
|
87
|
+
const cardClicked = (index, cardProps) => {
|
88
|
+
console.log(cardProps)
|
89
|
+
}
|
87
90
|
|
88
91
|
return (
|
89
92
|
<BaseMaterial {...worldStyles.containerStyle} {...props}>
|
@@ -132,7 +135,16 @@ const Video = (props) => {
|
|
132
135
|
album={album}
|
133
136
|
onAddVideo={onAddVideo}
|
134
137
|
onDeleteSong={deleteVideoFromAlbum}
|
135
|
-
cardIconClicked={cardIconClicked}
|
138
|
+
cardIconClicked={cardIconClicked}
|
139
|
+
cardClicked={cardClicked}
|
140
|
+
headerStyles={{
|
141
|
+
padding: 10,
|
142
|
+
headerBackground: 'black',
|
143
|
+
titleColor: '#ffff',
|
144
|
+
controlsStyles: {
|
145
|
+
iconSize: 25
|
146
|
+
}
|
147
|
+
}} />
|
136
148
|
</SpaceContainer>
|
137
149
|
|
138
150
|
</Center>
|
@@ -14,8 +14,8 @@ const Gallery = ({ data, cardStyle, customCardStyles, type, cardControls = null,
|
|
14
14
|
props.iconClicked(action)
|
15
15
|
}
|
16
16
|
|
17
|
-
const clicked = (index) => {
|
18
|
-
props.cardClicked(index)
|
17
|
+
const clicked = (index, cardProps) => {
|
18
|
+
props.cardClicked(index, cardProps)
|
19
19
|
}
|
20
20
|
|
21
21
|
const cardIconClicked = (action, index) => {
|
@@ -7,6 +7,7 @@ import Comments from '../Comments/Comments';
|
|
7
7
|
import RichTextInput from '../../Common Inputs/RichTextInput/RichTextInput';
|
8
8
|
|
9
9
|
const VideoSpace = ({
|
10
|
+
videoSrc,
|
10
11
|
title,
|
11
12
|
discription,
|
12
13
|
date,
|
@@ -29,7 +30,8 @@ const VideoSpace = ({
|
|
29
30
|
return (
|
30
31
|
<Container backgroundColor={backgroundColor}>
|
31
32
|
<VideoPlayer
|
32
|
-
iconsColor={iconsColor}
|
33
|
+
iconsColor={iconsColor}
|
34
|
+
src={videoSrc} />
|
33
35
|
<VideoDetails detailsPadding={detailsPadding}>
|
34
36
|
<Top>
|
35
37
|
<Title titleFontSize={titleFontSize} titleColor={titleColor}>{title}</Title>
|
@@ -79,21 +79,12 @@ const ViewAlbum = ({
|
|
79
79
|
data={album}
|
80
80
|
type="flat"
|
81
81
|
cardStyle="card-style-6"
|
82
|
-
headerStyles={{
|
83
|
-
padding: 10,
|
84
|
-
headerBackground: 'black',
|
85
|
-
titleColor: '#ffff',
|
86
|
-
controlsStyles: {
|
87
|
-
iconSize: 25
|
88
|
-
}
|
89
|
-
}}
|
90
82
|
columnsNumber={3}
|
91
83
|
galleryColumnGap={10}
|
92
84
|
galleryRowGap={20}
|
93
85
|
galleryControls={galleryControls}
|
94
86
|
iconClicked={onHeaderIconClicked}
|
95
87
|
cardControls={cardControls}
|
96
|
-
cardClicked={() => null}
|
97
88
|
cardIconClicked={cardIconClicked}
|
98
89
|
customCardStyles={cardStyles}
|
99
90
|
{...props}
|
@@ -46,7 +46,7 @@ export const getCardStyle = (cardProps, cardType, customCardStyles, cardControls
|
|
46
46
|
'card-style-2': (<CardStyle2 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls}/>),
|
47
47
|
'card-style-3': (<CardStyle3 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={(path) => clicked(path)}/>),
|
48
48
|
'card-style-4': (<CardStyle4 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls}/>),
|
49
|
-
'card-style-6': (<CardStyle6 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
49
|
+
'card-style-6': (<CardStyle6 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index, cardProps)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
50
50
|
'card-style-7': (<CardStyle7 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
51
51
|
'card-style-8': (<CardStyle8 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
52
52
|
'card-style-9': (<CardStyle9 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index)} iconClicked={(action) => cardIconClicked(action, index)} />),
|