@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
@@ -0,0 +1,61 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
11
|
+
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
13
|
+
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
15
|
+
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
17
|
+
|
18
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
19
|
+
|
20
|
+
var _ReusableList = _interopRequireDefault(require("../Reusable Components/ReusableList/ReusableList"));
|
21
|
+
|
22
|
+
var _templateObject, _templateObject2, _templateObject3;
|
23
|
+
|
24
|
+
var _excluded = ["sections"];
|
25
|
+
|
26
|
+
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); }
|
27
|
+
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
29
|
+
|
30
|
+
var Sections = function Sections(_ref) {
|
31
|
+
var sections = _ref.sections,
|
32
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
33
|
+
|
34
|
+
var _useState = (0, _react.useState)(sections[0].data[0].component),
|
35
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
36
|
+
center = _useState2[0],
|
37
|
+
setCenter = _useState2[1];
|
38
|
+
|
39
|
+
var cardClicked = function cardClicked(index, cardProps) {
|
40
|
+
setCenter(cardProps.component);
|
41
|
+
};
|
42
|
+
|
43
|
+
return /*#__PURE__*/_react.default.createElement(Container, props, /*#__PURE__*/_react.default.createElement(Left, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
44
|
+
type: "sectioned",
|
45
|
+
data: sections,
|
46
|
+
cardStyle: "card-style-3",
|
47
|
+
cardClicked: cardClicked
|
48
|
+
}, props))), /*#__PURE__*/_react.default.createElement(Center, null, center));
|
49
|
+
};
|
50
|
+
|
51
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n background-color: #414141;\n display: flex;\n"])), function (props) {
|
52
|
+
return props.backgroundColor;
|
53
|
+
});
|
54
|
+
|
55
|
+
var Left = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex: 1;\n"])));
|
56
|
+
|
57
|
+
var Center = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n flex: 3;\n"])));
|
58
|
+
|
59
|
+
Sections.defaultProps = {};
|
60
|
+
var _default = Sections;
|
61
|
+
exports.default = _default;
|
@@ -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, {
|
@@ -39,6 +39,10 @@ var _LogoWidget = _interopRequireDefault(require("../Widgets/LogoWidget/LogoWidg
|
|
39
39
|
|
40
40
|
var _VideoPlayer = _interopRequireDefault(require("../VideoAlbum/VideoPlayer/VideoPlayer"));
|
41
41
|
|
42
|
+
var _Notes = _interopRequireDefault(require("../Library/Notes/Notes"));
|
43
|
+
|
44
|
+
var _Folders = _interopRequireDefault(require("../Library/Folders/Folders"));
|
45
|
+
|
42
46
|
// Cards
|
43
47
|
// Widgets
|
44
48
|
var stringSearch = function stringSearch(str, word) {
|
@@ -73,7 +77,7 @@ var addObjectToArray = function addObjectToArray(arr, obj) {
|
|
73
77
|
|
74
78
|
exports.addObjectToArray = addObjectToArray;
|
75
79
|
|
76
|
-
var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles, cardControls, index, clicked, cardIconClicked) {
|
80
|
+
var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles, cardControls, index, clicked, cardIconClicked, onAction) {
|
77
81
|
var cardTypes = {
|
78
82
|
'card-style-1': /*#__PURE__*/_react.default.createElement(_CardStyle.default, Object.assign({
|
79
83
|
key: index
|
@@ -89,8 +93,8 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
|
|
89
93
|
key: index
|
90
94
|
}, cardProps, customCardStyles, {
|
91
95
|
cardControls: cardControls,
|
92
|
-
cardClicked: function cardClicked(
|
93
|
-
return clicked(
|
96
|
+
cardClicked: function cardClicked() {
|
97
|
+
return clicked(index, cardProps);
|
94
98
|
}
|
95
99
|
})),
|
96
100
|
'card-style-4': /*#__PURE__*/_react.default.createElement(_CardStyle4.default, Object.assign({
|
@@ -103,7 +107,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
|
|
103
107
|
}, cardProps, customCardStyles, {
|
104
108
|
cardControls: cardControls,
|
105
109
|
cardClicked: function cardClicked() {
|
106
|
-
return clicked(index);
|
110
|
+
return clicked(index, cardProps);
|
107
111
|
},
|
108
112
|
iconClicked: function iconClicked(action) {
|
109
113
|
return cardIconClicked(action, index);
|
@@ -136,7 +140,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
|
|
136
140
|
}, cardProps, customCardStyles, {
|
137
141
|
cardControls: cardControls,
|
138
142
|
cardClicked: function cardClicked() {
|
139
|
-
return clicked(index);
|
143
|
+
return clicked(index, cardProps);
|
140
144
|
},
|
141
145
|
iconClicked: function iconClicked(action) {
|
142
146
|
return cardIconClicked(action, index);
|
@@ -147,7 +151,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
|
|
147
151
|
}, cardProps, customCardStyles, {
|
148
152
|
cardControls: cardControls,
|
149
153
|
cardClicked: function cardClicked() {
|
150
|
-
return clicked(index);
|
154
|
+
return clicked(index, cardProps);
|
151
155
|
},
|
152
156
|
iconClicked: function iconClicked(action) {
|
153
157
|
return cardIconClicked(action, index);
|
@@ -158,7 +162,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
|
|
158
162
|
}, cardProps, customCardStyles, {
|
159
163
|
cardControls: cardControls,
|
160
164
|
cardClicked: function cardClicked() {
|
161
|
-
return clicked(index);
|
165
|
+
return clicked(index, cardProps);
|
162
166
|
},
|
163
167
|
iconClicked: function iconClicked(action) {
|
164
168
|
return cardIconClicked(action, index);
|
@@ -179,7 +183,9 @@ var getWidgetType = function getWidgetType(widgetType, props, _cardClicked) {
|
|
179
183
|
}, props)),
|
180
184
|
'music player': /*#__PURE__*/_react.default.createElement(_MusicPlayerWidget.default, props),
|
181
185
|
'logo': /*#__PURE__*/_react.default.createElement(_LogoWidget.default, props),
|
182
|
-
'video player': /*#__PURE__*/_react.default.createElement(_VideoPlayer.default, props)
|
186
|
+
'video player': /*#__PURE__*/_react.default.createElement(_VideoPlayer.default, props),
|
187
|
+
'notes': /*#__PURE__*/_react.default.createElement(_Notes.default, props),
|
188
|
+
'folders': /*#__PURE__*/_react.default.createElement(_Folders.default, props)
|
183
189
|
};
|
184
190
|
return widgetTypes[widgetType];
|
185
191
|
};
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
]
|
11
11
|
]
|
12
12
|
},
|
13
|
-
"version": "0.1.
|
13
|
+
"version": "0.1.16",
|
14
14
|
"private": false,
|
15
15
|
"dependencies": {
|
16
16
|
"@babel/cli": "^7.16.7",
|
@@ -68,7 +68,7 @@
|
|
68
68
|
"build": "cross-env BABEL_ENV=production babel src -d dist",
|
69
69
|
"test": "react-scripts test",
|
70
70
|
"eject": "react-scripts eject",
|
71
|
-
"storybook": "start-storybook -p 6006 -s public",
|
71
|
+
"storybook": "export NODE_OPTIONS=--openssl-legacy-provider; start-storybook -p 6006 -s public",
|
72
72
|
"build-storybook": "build-storybook -s public"
|
73
73
|
},
|
74
74
|
"eslintConfig": {
|
@@ -10,38 +10,19 @@ import RichTextInput from '../Common Inputs/RichTextInput/RichTextInput';
|
|
10
10
|
const Chat = ({
|
11
11
|
data,
|
12
12
|
title,
|
13
|
-
titleColor,
|
14
|
-
headerBackground,
|
15
|
-
headerPadding,
|
16
13
|
cardBackgroundColor,
|
17
|
-
cardTitleColor,
|
18
14
|
textColor,
|
19
15
|
users,
|
20
16
|
...props }) => {
|
21
17
|
|
22
18
|
return (
|
23
|
-
<Container
|
24
|
-
cardBackgroundColor={cardBackgroundColor}>
|
25
|
-
<ReusableHeader
|
26
|
-
title={title}
|
27
|
-
titleColor={titleColor}
|
28
|
-
controls={controls}
|
29
|
-
controlsStyles={{
|
30
|
-
iconColor: 'white',
|
31
|
-
maxIcons: 4,
|
32
|
-
dropdownBackground: 'white'
|
33
|
-
}}
|
34
|
-
headerBackground={headerBackground}
|
35
|
-
padding={headerPadding} />
|
19
|
+
<Container>
|
36
20
|
<List
|
21
|
+
listTitle={title}
|
37
22
|
type="flat"
|
38
23
|
data={data}
|
39
24
|
cardStyle="card-style-8"
|
40
|
-
|
41
|
-
cardBackgroundColor,
|
42
|
-
cardTitleColor,
|
43
|
-
cardDescriptionColor: textColor
|
44
|
-
}}
|
25
|
+
{...props}
|
45
26
|
/>
|
46
27
|
<RichTextInput
|
47
28
|
users={users}
|
@@ -63,9 +44,6 @@ Chat.defaultProps = {
|
|
63
44
|
Chat.propTypes = {
|
64
45
|
data: PropTypes.array.isRequired,
|
65
46
|
title: PropTypes.string,
|
66
|
-
titleColor: PropTypes.string,
|
67
|
-
headerBackground: PropTypes.string,
|
68
|
-
headerPadding: PropTypes.number,
|
69
47
|
cardBackgroundColor: PropTypes.string,
|
70
48
|
cardTitleColor: PropTypes.string,
|
71
49
|
textColor: PropTypes.string
|
@@ -34,19 +34,10 @@ const DetailedForm = ({
|
|
34
34
|
data={questions}
|
35
35
|
type='flat'
|
36
36
|
cardStyle='card-style-3'
|
37
|
-
headerStyles={{
|
38
|
-
padding: 10,
|
39
|
-
headerBackground: '#FE1744',
|
40
|
-
titleColor: '#ffff',
|
41
|
-
controlsStyles: {
|
42
|
-
dropdownBackground: 'black',
|
43
|
-
dropdownFontColor: 'white',
|
44
|
-
dropdownItemHoverColor: '#FE1744'
|
45
|
-
},
|
46
|
-
}}
|
47
37
|
customCardStyles={{
|
48
38
|
cardPadding: 10
|
49
39
|
}}
|
40
|
+
{...props}
|
50
41
|
/>
|
51
42
|
<Buttons>
|
52
43
|
<Accept onClick={onAccept}>Accept</Accept>
|
@@ -8,25 +8,11 @@ const ViewForms = ({
|
|
8
8
|
}) => {
|
9
9
|
return (
|
10
10
|
<List
|
11
|
-
listTitle="Submitted
|
11
|
+
listTitle="Submitted Forms"
|
12
12
|
data={data}
|
13
13
|
cardStyle="card-style-9"
|
14
14
|
type="sectioned"
|
15
|
-
|
16
|
-
cardTitleColor: 'white',
|
17
|
-
cardBackgroundColor: 'black',
|
18
|
-
cardPadding: 10
|
19
|
-
}}
|
20
|
-
headerStyles={{
|
21
|
-
padding: 10,
|
22
|
-
headerBackground: '#FE1744',
|
23
|
-
titleColor: '#ffff',
|
24
|
-
controlsStyles: {
|
25
|
-
dropdownBackground: 'black',
|
26
|
-
dropdownFontColor: 'white',
|
27
|
-
dropdownItemHoverColor: '#FE1744'
|
28
|
-
},
|
29
|
-
}}
|
15
|
+
{...props}
|
30
16
|
/>
|
31
17
|
)
|
32
18
|
}
|
@@ -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,28 +60,12 @@ const EventsList = ({
|
|
60
60
|
data={events}
|
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
|
-
customCardStyles={{
|
72
|
-
iconColor,
|
73
|
-
cardTitleFontSize,
|
74
|
-
cardTitleColor,
|
75
|
-
cardPadding,
|
76
|
-
controlsStyles: {
|
77
|
-
iconColor: '#FE1744'
|
78
|
-
}
|
79
|
-
}}
|
80
63
|
listControls={listControls}
|
81
64
|
cardControls={cardControls}
|
82
65
|
iconClicked={onIconClicked}
|
83
66
|
cardClicked={cardClicked}
|
84
67
|
cardIconClicked={cardIconClicked}
|
68
|
+
{...props}
|
85
69
|
/>
|
86
70
|
<Modal
|
87
71
|
modalIsOpen={showModal}
|
@@ -23,7 +23,6 @@ const Folders = ({
|
|
23
23
|
rowGap,
|
24
24
|
cardClicked,
|
25
25
|
iconColor,
|
26
|
-
headerStyles,
|
27
26
|
...props
|
28
27
|
}) => {
|
29
28
|
const [showModal, setShowModal] = useState(false);
|
@@ -58,7 +57,6 @@ const Folders = ({
|
|
58
57
|
data={folders}
|
59
58
|
type="flat"
|
60
59
|
cardStyle="card-style-10"
|
61
|
-
headerStyles={headerStyles}
|
62
60
|
columnsNumber={columnsNumber}
|
63
61
|
galleryColumnGap={columnGap}
|
64
62
|
galleryRowGap={rowGap}
|
@@ -68,10 +66,6 @@ const Folders = ({
|
|
68
66
|
cardIconClicked={cardIconClicked}
|
69
67
|
cardControls={cardControls}
|
70
68
|
rowsHeight={140}
|
71
|
-
customCardStyles={{
|
72
|
-
cardPadding: 10,
|
73
|
-
iconColor
|
74
|
-
}}
|
75
69
|
{...props} />
|
76
70
|
<Modal
|
77
71
|
modalIsOpen={showModal}
|
@@ -91,7 +85,7 @@ const Folders = ({
|
|
91
85
|
}
|
92
86
|
|
93
87
|
const Container = styled.div`
|
94
|
-
|
88
|
+
background-color: black;
|
95
89
|
`
|
96
90
|
|
97
91
|
Folders.defaultProps = {};
|
@@ -60,28 +60,12 @@ 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
|
-
customCardStyles={{
|
72
|
-
iconColor,
|
73
|
-
cardTitleFontSize,
|
74
|
-
cardTitleColor,
|
75
|
-
cardPadding,
|
76
|
-
controlsStyles: {
|
77
|
-
iconColor: '#FE1744'
|
78
|
-
}
|
79
|
-
}}
|
80
63
|
listControls={listControls}
|
81
64
|
cardControls={cardControls}
|
82
65
|
iconClicked={onIconClicked}
|
83
66
|
cardClicked={cardClicked}
|
84
67
|
cardIconClicked={cardIconClicked}
|
68
|
+
{...props}
|
85
69
|
/>
|
86
70
|
<Modal
|
87
71
|
modalIsOpen={showModal}
|
@@ -2,19 +2,8 @@ import React from 'react';
|
|
2
2
|
|
3
3
|
import Editor from '../../Common Inputs/EditorComponent/EditorComponent';
|
4
4
|
|
5
|
-
const ViewNote = () => {
|
5
|
+
const ViewNote = ({data, ...props}) => {
|
6
6
|
|
7
|
-
const data = {
|
8
|
-
blocks: [
|
9
|
-
{
|
10
|
-
type: "header",
|
11
|
-
data: {
|
12
|
-
text: "New Note",
|
13
|
-
level: 1
|
14
|
-
}
|
15
|
-
}
|
16
|
-
]
|
17
|
-
}
|
18
7
|
|
19
8
|
return (
|
20
9
|
<Editor data={data}/>
|
@@ -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)}
|
@@ -67,13 +59,7 @@ const ViewAlbum = ({
|
|
67
59
|
listControls={listControls}
|
68
60
|
cardControls={cardControls}
|
69
61
|
cardIconClicked={cardIconClicked}
|
70
|
-
|
71
|
-
cardBackgroundColor: cardBackgroundColor,
|
72
|
-
cardTitleColor: songTitleColor,
|
73
|
-
controlsStyles: {
|
74
|
-
iconColor: 'black'
|
75
|
-
}
|
76
|
-
}}
|
62
|
+
{...props}
|
77
63
|
/>
|
78
64
|
<Modal
|
79
65
|
modalIsOpen={showModal}
|
@@ -21,14 +21,12 @@ const galleryControls = [
|
|
21
21
|
|
22
22
|
const ViewAlbums = ({
|
23
23
|
albums,
|
24
|
-
cardBackgroundColor,
|
25
24
|
albumTitleColor,
|
26
25
|
descColor,
|
27
26
|
...props
|
28
27
|
}) => {
|
29
28
|
const cardStyles = {
|
30
29
|
darkOnHover: true,
|
31
|
-
cardBackgroundColor: cardBackgroundColor,
|
32
30
|
cardTitleColor: albumTitleColor,
|
33
31
|
descColor,
|
34
32
|
controlsStyles: {
|
@@ -76,27 +74,17 @@ const ViewAlbums = ({
|
|
76
74
|
return (
|
77
75
|
<Container>
|
78
76
|
<Gallery
|
79
|
-
galleryTitle=
|
77
|
+
galleryTitle={props.title}
|
80
78
|
data={albums}
|
81
79
|
type="flat"
|
82
80
|
cardStyle="card-style-6"
|
83
|
-
headerStyles={{
|
84
|
-
padding: 10,
|
85
|
-
headerBackground: 'black',
|
86
|
-
titleColor: '#ffff',
|
87
|
-
controlsStyles: {
|
88
|
-
iconSize: 25
|
89
|
-
}
|
90
|
-
}}
|
91
81
|
columnsNumber={3}
|
92
82
|
galleryColumnGap={10}
|
93
83
|
galleryRowGap={20}
|
94
84
|
galleryControls={galleryControls}
|
95
85
|
iconClicked={onHeaderIconClicked}
|
96
86
|
cardControls={cardControls}
|
97
|
-
cardClicked={() => null}
|
98
87
|
cardIconClicked={cardIconClicked}
|
99
|
-
customCardStyles={cardStyles}
|
100
88
|
{...props}
|
101
89
|
/>
|
102
90
|
<Modal
|
@@ -115,7 +103,7 @@ const ViewAlbums = ({
|
|
115
103
|
)
|
116
104
|
}
|
117
105
|
const Container = styled.div`
|
118
|
-
|
106
|
+
width: 100%;
|
119
107
|
`
|
120
108
|
|
121
109
|
ViewAlbums.defaultProps = {
|
@@ -129,6 +117,7 @@ ViewAlbums.propTypes = {
|
|
129
117
|
cardBackgroundColor: PropTypes.string,
|
130
118
|
albumTitleColor: PropTypes.string,
|
131
119
|
descColor: PropTypes.string,
|
120
|
+
title: PropTypes.string
|
132
121
|
};
|
133
122
|
|
134
123
|
export default ViewAlbums
|