@mohamed-karawia/library 0.1.14 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/stories/Chat/Chat.js +11 -34
- package/dist/stories/Common Inputs/EditorComponent/EditorComponent.js +4 -2
- package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.js +1 -1
- package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +11 -23
- package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +4 -19
- package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
- package/dist/stories/Events/Event/Event.js +1 -1
- package/dist/stories/Events/EventsList/EventsList.js +3 -3
- package/dist/stories/Library/Folders/Folders.js +2 -6
- package/dist/stories/Library/Notes/Notes.js +3 -3
- package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +5 -14
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +6 -12
- 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 +19 -1
- package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
- package/dist/stories/Pages/Enrollment/Forms/Forms.js +29 -2
- package/dist/stories/Pages/Events/Events/Events.js +6 -0
- package/dist/stories/Pages/Library/Folders/Library.js +7 -1
- package/dist/stories/Pages/Library/Notes/Notes.js +5 -0
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +12 -5
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +43 -1
- package/dist/stories/Pages/Photos/Album/Album.js +7 -1
- package/dist/stories/Pages/Photos/Albums/Albums.js +38 -2
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +4 -18
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +5 -51
- package/dist/stories/Preview/Preview.js +36 -0
- 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 +5 -1
- package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +1 -1
- package/dist/stories/Reusable Components/ReusableList/ReusableList.js +8 -6
- package/dist/stories/Sections/Sections.js +61 -0
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +1 -4
- package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +1 -1
- package/dist/stories/helpers/util.js +39 -9
- package/package.json +1 -1
- package/src/stories/Chat/Chat.jsx +10 -35
- package/src/stories/Common Inputs/EditorComponent/EditorComponent.jsx +3 -3
- package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
- package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +8 -19
- package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +4 -17
- package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
- package/src/stories/Events/Event/Event.jsx +1 -1
- package/src/stories/Events/EventsList/EventsList.jsx +11 -6
- package/src/stories/Library/Folders/Folders.jsx +3 -7
- package/src/stories/Library/Notes/Notes.jsx +8 -4
- package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +9 -11
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +7 -11
- 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 +20 -1
- package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
- package/src/stories/Pages/Enrollment/Forms/Forms.jsx +30 -2
- package/src/stories/Pages/Events/Events/Events.jsx +78 -72
- package/src/stories/Pages/Library/Folders/Library.jsx +7 -1
- package/src/stories/Pages/Library/Notes/Notes.jsx +5 -0
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +16 -8
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +38 -24
- package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
- package/src/stories/Pages/Photos/Albums/Albums.jsx +25 -20
- package/src/stories/Pages/ViewWorld/styles.json +1 -1
- package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +6 -17
- package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +6 -60
- package/src/stories/Preview/Preview.jsx +27 -0
- 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 +5 -1
- package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +1 -1
- package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
- package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +17 -6
- package/src/stories/Sections/Sections.jsx +53 -0
- package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +3 -5
- package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +1 -1
- package/src/stories/helpers/util.js +29 -7
@@ -15,58 +15,35 @@ var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
16
16
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
17
17
|
|
18
|
-
var _fakeData = require("../Reusable Components/fakeData");
|
19
|
-
|
20
|
-
var _ReusableHeader = _interopRequireDefault(require("../Reusable Components/ReusableHeader/ReusableHeader"));
|
21
|
-
|
22
18
|
var _ReusableList = _interopRequireDefault(require("../Reusable Components/ReusableList/ReusableList"));
|
23
19
|
|
24
20
|
var _RichTextInput = _interopRequireDefault(require("../Common Inputs/RichTextInput/RichTextInput"));
|
25
21
|
|
26
22
|
var _templateObject;
|
27
23
|
|
28
|
-
var _excluded = ["data", "
|
24
|
+
var _excluded = ["data", "users", "title", "backgroundColor"];
|
29
25
|
|
30
26
|
var Chat = function Chat(_ref) {
|
31
27
|
var data = _ref.data,
|
32
|
-
title = _ref.title,
|
33
|
-
titleColor = _ref.titleColor,
|
34
|
-
headerBackground = _ref.headerBackground,
|
35
|
-
headerPadding = _ref.headerPadding,
|
36
|
-
cardBackgroundColor = _ref.cardBackgroundColor,
|
37
|
-
cardTitleColor = _ref.cardTitleColor,
|
38
|
-
textColor = _ref.textColor,
|
39
28
|
users = _ref.users,
|
29
|
+
title = _ref.title,
|
30
|
+
backgroundColor = _ref.backgroundColor,
|
40
31
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
41
32
|
return /*#__PURE__*/_react.default.createElement(Container, {
|
42
|
-
|
43
|
-
}, /*#__PURE__*/_react.default.createElement(
|
44
|
-
|
45
|
-
titleColor: titleColor,
|
46
|
-
controls: _fakeData.controls,
|
47
|
-
controlsStyles: {
|
48
|
-
iconColor: 'white',
|
49
|
-
maxIcons: 4,
|
50
|
-
dropdownBackground: 'white'
|
51
|
-
},
|
52
|
-
headerBackground: headerBackground,
|
53
|
-
padding: headerPadding
|
54
|
-
}), /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
|
33
|
+
backgroundColor: backgroundColor
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
35
|
+
listTitle: title || 'Chat',
|
55
36
|
type: "flat",
|
56
37
|
data: data,
|
57
|
-
cardStyle: "card-style-8"
|
58
|
-
|
59
|
-
cardBackgroundColor: cardBackgroundColor,
|
60
|
-
cardTitleColor: cardTitleColor,
|
61
|
-
cardDescriptionColor: textColor
|
62
|
-
}
|
63
|
-
}), /*#__PURE__*/_react.default.createElement(_RichTextInput.default, {
|
38
|
+
cardStyle: "card-style-8"
|
39
|
+
}, props)), /*#__PURE__*/_react.default.createElement(_RichTextInput.default, {
|
64
40
|
users: users
|
65
41
|
}));
|
66
42
|
};
|
67
43
|
|
68
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
69
|
-
|
44
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n background-color: ", ";\n"])), function (_ref2) {
|
45
|
+
var backgroundColor = _ref2.backgroundColor;
|
46
|
+
return backgroundColor || 'transparent';
|
70
47
|
});
|
71
48
|
|
72
49
|
Chat.defaultProps = {
|
@@ -17,7 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
18
18
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
19
19
|
|
20
|
-
var _reactEditorJs =
|
20
|
+
var _reactEditorJs = require("react-editor-js");
|
21
21
|
|
22
22
|
var _constants = require("./constants");
|
23
23
|
|
@@ -30,6 +30,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
30
30
|
var EditorComponent = function EditorComponent(props) {
|
31
31
|
var _instanceRef = (0, _react.useRef)(null);
|
32
32
|
|
33
|
+
var ReactEditorJS = (0, _reactEditorJs.createReactEditorJS)();
|
34
|
+
|
33
35
|
function handleSave() {
|
34
36
|
return _handleSave.apply(this, arguments);
|
35
37
|
}
|
@@ -58,7 +60,7 @@ var EditorComponent = function EditorComponent(props) {
|
|
58
60
|
return _handleSave.apply(this, arguments);
|
59
61
|
}
|
60
62
|
|
61
|
-
return /*#__PURE__*/_react.default.createElement(Container, props, /*#__PURE__*/_react.default.createElement(
|
63
|
+
return /*#__PURE__*/_react.default.createElement(Container, props, /*#__PURE__*/_react.default.createElement(ReactEditorJS, {
|
62
64
|
instanceRef: function instanceRef(instance) {
|
63
65
|
return _instanceRef.current = instance;
|
64
66
|
},
|
@@ -77,7 +77,7 @@ var AddQuestion = function AddQuestion(props) {
|
|
77
77
|
}));
|
78
78
|
};
|
79
79
|
|
80
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding: 10px;\n background-color: 'white';\n display: flex;\n flex-direction: column;\n \n &(:first-child){\n align-self: center;\n }\n"])));
|
80
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n padding: 10px;\n background-color: 'white';\n display: flex;\n flex-direction: column;\n \n &(:first-child){\n align-self: center;\n }\n"])));
|
81
81
|
|
82
82
|
var _default = AddQuestion;
|
83
83
|
exports.default = _default;
|
@@ -30,43 +30,31 @@ var DetailedForm = function DetailedForm(_ref) {
|
|
30
30
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
31
31
|
|
32
32
|
var onAccept = function onAccept() {
|
33
|
-
|
33
|
+
props.onAccept();
|
34
34
|
};
|
35
35
|
|
36
36
|
var onDecline = function onDecline() {
|
37
|
-
|
37
|
+
props.onDecline();
|
38
38
|
};
|
39
39
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(User, null, /*#__PURE__*/_react.default.createElement(_CardStyle.default, {
|
40
|
+
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(User, null, /*#__PURE__*/_react.default.createElement(_CardStyle.default, Object.assign({
|
41
41
|
title: userName,
|
42
|
-
img: userImg
|
43
|
-
|
44
|
-
|
45
|
-
listTitle: "Form",
|
42
|
+
img: userImg
|
43
|
+
}, props.userHeaderStyles))), /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
44
|
+
listTitle: props.title || "Form",
|
46
45
|
data: questions,
|
47
46
|
type: "flat",
|
48
|
-
cardStyle: "card-style-3"
|
49
|
-
|
50
|
-
padding: 10,
|
51
|
-
headerBackground: '#FE1744',
|
52
|
-
titleColor: '#ffff',
|
53
|
-
controlsStyles: {
|
54
|
-
dropdownBackground: 'black',
|
55
|
-
dropdownFontColor: 'white',
|
56
|
-
dropdownItemHoverColor: '#FE1744'
|
57
|
-
}
|
58
|
-
},
|
59
|
-
customCardStyles: {
|
60
|
-
cardPadding: 10
|
61
|
-
}
|
62
|
-
}), /*#__PURE__*/_react.default.createElement(Buttons, null, /*#__PURE__*/_react.default.createElement(Accept, {
|
47
|
+
cardStyle: "card-style-3"
|
48
|
+
}, props)), /*#__PURE__*/_react.default.createElement(Buttons, null, /*#__PURE__*/_react.default.createElement(Accept, {
|
63
49
|
onClick: onAccept
|
64
50
|
}, "Accept"), /*#__PURE__*/_react.default.createElement(Decline, {
|
65
51
|
onClick: onDecline
|
66
52
|
}, "Decline")));
|
67
53
|
};
|
68
54
|
|
69
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color:
|
55
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n padding: 10px 0;\n width: 100%;\n"])), function (props) {
|
56
|
+
return props.backgroundColor || 'transparent';
|
57
|
+
});
|
70
58
|
|
71
59
|
var User = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\n"])));
|
72
60
|
|
@@ -18,27 +18,12 @@ var _excluded = ["data"];
|
|
18
18
|
var ViewForms = function ViewForms(_ref) {
|
19
19
|
var data = _ref.data,
|
20
20
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
|
22
|
-
listTitle: "Submitted
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
22
|
+
listTitle: props.title || "Submitted Forms",
|
23
23
|
data: data,
|
24
24
|
cardStyle: "card-style-9",
|
25
|
-
type: "sectioned"
|
26
|
-
|
27
|
-
cardTitleColor: 'white',
|
28
|
-
cardBackgroundColor: 'black',
|
29
|
-
cardPadding: 10
|
30
|
-
},
|
31
|
-
headerStyles: {
|
32
|
-
padding: 10,
|
33
|
-
headerBackground: '#FE1744',
|
34
|
-
titleColor: '#ffff',
|
35
|
-
controlsStyles: {
|
36
|
-
dropdownBackground: 'black',
|
37
|
-
dropdownFontColor: 'white',
|
38
|
-
dropdownItemHoverColor: '#FE1744'
|
39
|
-
}
|
40
|
-
}
|
41
|
-
});
|
25
|
+
type: "sectioned"
|
26
|
+
}, props));
|
42
27
|
};
|
43
28
|
|
44
29
|
ViewForms.defaultProps = {};
|
@@ -25,13 +25,6 @@ var FillForm = function FillForm(_ref) {
|
|
25
25
|
var sections = _ref.sections,
|
26
26
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
27
27
|
|
28
|
-
// const initialValues = {
|
29
|
-
// question0: '',
|
30
|
-
// question1: '',
|
31
|
-
// question2: '',
|
32
|
-
// question3: '',
|
33
|
-
// question4: '',
|
34
|
-
// }
|
35
28
|
var onCreate = function onCreate(values) {
|
36
29
|
console.log(values);
|
37
30
|
};
|
@@ -40,21 +33,15 @@ var FillForm = function FillForm(_ref) {
|
|
40
33
|
console.log('Canceled');
|
41
34
|
};
|
42
35
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableForm.default
|
44
|
-
|
45
|
-
formTitle: "Join Community Form",
|
36
|
+
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableForm.default, Object.assign({
|
37
|
+
formTitle: props.formTitle || 'Join Community Form',
|
46
38
|
sections: sections,
|
47
39
|
saveBtnText: props.saveBtnText,
|
48
40
|
cancelBtnText: props.cancelBtnText,
|
49
41
|
saveHandler: onCreate,
|
50
42
|
cancelHandler: cancelHandler,
|
51
|
-
|
52
|
-
|
53
|
-
headerBackground: 'black',
|
54
|
-
titleColor: '#ffff'
|
55
|
-
},
|
56
|
-
bodyRowGap: 10
|
57
|
-
}));
|
43
|
+
bodyRowGap: props.bodyRowGap || 10
|
44
|
+
}, props)));
|
58
45
|
};
|
59
46
|
|
60
47
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
@@ -50,7 +50,7 @@ var Event = function Event(_ref) {
|
|
50
50
|
|
51
51
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n font-family: sans-serif;\n background-color: ", ";\n"])), function (_ref2) {
|
52
52
|
var backgroundColor = _ref2.backgroundColor;
|
53
|
-
return backgroundColor;
|
53
|
+
return backgroundColor || 'transparent';
|
54
54
|
});
|
55
55
|
|
56
56
|
var CoverWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 300px;\n"])));
|
@@ -86,7 +86,7 @@ var EventsList = function EventsList(_ref) {
|
|
86
86
|
};
|
87
87
|
|
88
88
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
89
|
-
listTitle: "My Events",
|
89
|
+
listTitle: props.title || "My Events",
|
90
90
|
data: events,
|
91
91
|
type: "flat",
|
92
92
|
cardStyle: "card-style-11",
|
@@ -104,8 +104,8 @@ var EventsList = function EventsList(_ref) {
|
|
104
104
|
return /*#__PURE__*/_react.default.createElement("div", null);
|
105
105
|
}
|
106
106
|
}, /*#__PURE__*/_react.default.createElement(_CreateEvent.default, {
|
107
|
-
saveBtnText:
|
108
|
-
cancelBtnText: "Cancel",
|
107
|
+
saveBtnText: props.saveBtnText || 'Create',
|
108
|
+
cancelBtnText: props.cancelBtnText || "Cancel",
|
109
109
|
saveHandler: onAddFolder,
|
110
110
|
cancelHandler: cancelHandler
|
111
111
|
})));
|
@@ -83,15 +83,11 @@ var Folders = function Folders(_ref) {
|
|
83
83
|
setShowModal(false);
|
84
84
|
};
|
85
85
|
|
86
|
-
console.log(props);
|
87
86
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
|
88
|
-
galleryTitle: "Your Folders",
|
87
|
+
galleryTitle: props.title || "Your Folders",
|
89
88
|
data: folders,
|
90
89
|
type: "flat",
|
91
90
|
cardStyle: "card-style-10",
|
92
|
-
columnsNumber: columnsNumber,
|
93
|
-
galleryColumnGap: columnGap,
|
94
|
-
galleryRowGap: rowGap,
|
95
91
|
galleryControls: galleryControls,
|
96
92
|
iconClicked: onIconClicked,
|
97
93
|
cardClicked: cardClicked,
|
@@ -114,7 +110,7 @@ var Folders = function Folders(_ref) {
|
|
114
110
|
})));
|
115
111
|
};
|
116
112
|
|
117
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
113
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: transparent;\n"])));
|
118
114
|
|
119
115
|
Folders.defaultProps = {};
|
120
116
|
var _default = Folders;
|
@@ -86,7 +86,7 @@ var Notes = function Notes(_ref) {
|
|
86
86
|
};
|
87
87
|
|
88
88
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
89
|
-
listTitle: "My Notes",
|
89
|
+
listTitle: props.title || "My Notes",
|
90
90
|
data: notes,
|
91
91
|
type: "flat",
|
92
92
|
cardStyle: "card-style-11",
|
@@ -104,8 +104,8 @@ var Notes = function Notes(_ref) {
|
|
104
104
|
return /*#__PURE__*/_react.default.createElement("div", null);
|
105
105
|
}
|
106
106
|
}, /*#__PURE__*/_react.default.createElement(_CreateFolder.default, {
|
107
|
-
saveBtnText: "Create",
|
108
|
-
cancelBtnText: "Cancel",
|
107
|
+
saveBtnText: props.saveBtnText || "Create",
|
108
|
+
cancelBtnText: props.cancelBtnText || "Cancel",
|
109
109
|
saveHandler: onAddFolder,
|
110
110
|
cancelHandler: cancelHandler
|
111
111
|
})));
|
@@ -7,20 +7,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
});
|
8
8
|
exports.default = void 0;
|
9
9
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
11
|
+
|
10
12
|
var _react = _interopRequireDefault(require("react"));
|
11
13
|
|
12
14
|
var _EditorComponent = _interopRequireDefault(require("../../Common Inputs/EditorComponent/EditorComponent"));
|
13
15
|
|
14
|
-
var
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
text: "New Note",
|
20
|
-
level: 1
|
21
|
-
}
|
22
|
-
}]
|
23
|
-
};
|
16
|
+
var _excluded = ["data"];
|
17
|
+
|
18
|
+
var ViewNote = function ViewNote(_ref) {
|
19
|
+
var data = _ref.data,
|
20
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
24
21
|
return /*#__PURE__*/_react.default.createElement(_EditorComponent.default, {
|
25
22
|
data: data
|
26
23
|
});
|
@@ -80,7 +80,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
80
80
|
};
|
81
81
|
|
82
82
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
83
|
-
listTitle: "My Album",
|
83
|
+
listTitle: props.title || "My Album",
|
84
84
|
data: album,
|
85
85
|
cardStyle: "card-style-7",
|
86
86
|
type: "flat",
|
@@ -90,14 +90,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
90
90
|
iconClicked: onIconClicked,
|
91
91
|
listControls: listControls,
|
92
92
|
cardControls: cardControls,
|
93
|
-
cardIconClicked: cardIconClicked
|
94
|
-
customCardStyles: {
|
95
|
-
cardBackgroundColor: cardBackgroundColor,
|
96
|
-
cardTitleColor: songTitleColor,
|
97
|
-
controlsStyles: {
|
98
|
-
iconColor: 'black'
|
99
|
-
}
|
100
|
-
}
|
93
|
+
cardIconClicked: cardIconClicked
|
101
94
|
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
102
95
|
modalIsOpen: showModal,
|
103
96
|
closeModal: function closeModal() {
|
@@ -109,15 +102,13 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
109
102
|
}, /*#__PURE__*/_react.default.createElement(_AddSong.default, {
|
110
103
|
saveHandler: onAddSong,
|
111
104
|
cancelHandler: cancelHandler,
|
112
|
-
saveBtnText: "Create",
|
113
|
-
cancelBtnText: "Cancel"
|
105
|
+
saveBtnText: props.saveBtnText || "Create",
|
106
|
+
cancelBtnText: props.cancelBtnText || "Cancel"
|
114
107
|
})));
|
115
108
|
};
|
116
109
|
|
117
110
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
118
111
|
|
119
|
-
ViewAlbum.defaultProps = {
|
120
|
-
cardBackgroundColor: 'white'
|
121
|
-
};
|
112
|
+
ViewAlbum.defaultProps = {};
|
122
113
|
var _default = ViewAlbum;
|
123
114
|
exports.default = _default;
|
@@ -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", "albumTitleColor", "descColor"];
|
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,13 +46,11 @@ var galleryControls = [{
|
|
46
46
|
|
47
47
|
var ViewAlbums = function ViewAlbums(_ref) {
|
48
48
|
var albums = _ref.albums,
|
49
|
-
cardBackgroundColor = _ref.cardBackgroundColor,
|
50
49
|
albumTitleColor = _ref.albumTitleColor,
|
51
50
|
descColor = _ref.descColor,
|
52
51
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
53
52
|
var cardStyles = {
|
54
53
|
darkOnHover: true,
|
55
|
-
cardBackgroundColor: cardBackgroundColor,
|
56
54
|
cardTitleColor: albumTitleColor,
|
57
55
|
descColor: descColor,
|
58
56
|
controlsStyles: {
|
@@ -101,18 +99,14 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
101
99
|
};
|
102
100
|
|
103
101
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
|
104
|
-
galleryTitle: props.title,
|
102
|
+
galleryTitle: props.title || 'musicAlbums',
|
105
103
|
data: albums,
|
106
104
|
type: "flat",
|
107
105
|
cardStyle: "card-style-6",
|
108
|
-
columnsNumber: 3,
|
109
|
-
galleryColumnGap: 10,
|
110
|
-
galleryRowGap: 20,
|
111
106
|
galleryControls: galleryControls,
|
112
107
|
iconClicked: onHeaderIconClicked,
|
113
108
|
cardControls: cardControls,
|
114
|
-
cardIconClicked: cardIconClicked
|
115
|
-
customCardStyles: cardStyles
|
109
|
+
cardIconClicked: cardIconClicked
|
116
110
|
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
117
111
|
modalIsOpen: showModal,
|
118
112
|
closeModal: function closeModal() {
|
@@ -124,12 +118,12 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
124
118
|
}, /*#__PURE__*/_react.default.createElement(_CreateMusicAlbum.default, {
|
125
119
|
saveHandler: onAddAlbum,
|
126
120
|
cancelHandler: cancelHandler,
|
127
|
-
saveBtnText: "Create",
|
128
|
-
cancelBtnText: "Cancel"
|
121
|
+
saveBtnText: props.saveBtnText || "Create",
|
122
|
+
cancelBtnText: props.cancelBtnText || "Cancel"
|
129
123
|
})));
|
130
124
|
};
|
131
125
|
|
132
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
126
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
133
127
|
|
134
128
|
ViewAlbums.defaultProps = {
|
135
129
|
cardBackgroundColor: 'white'
|
@@ -25,21 +25,13 @@ var _CustomAutoComplete = _interopRequireDefault(require("../Common Inputs/Custo
|
|
25
25
|
|
26
26
|
var _BaseMaterial = _interopRequireDefault(require("../Containers/BaseMaterial"));
|
27
27
|
|
28
|
-
var
|
28
|
+
var _ai = require("react-icons/ai");
|
29
29
|
|
30
|
-
var
|
30
|
+
var _md = require("react-icons/md");
|
31
31
|
|
32
|
-
var
|
32
|
+
var _bi = require("react-icons/bi");
|
33
33
|
|
34
|
-
var
|
35
|
-
|
36
|
-
var _bellSvgrepoCom = _interopRequireDefault(require("../assets/bell-svgrepo-com.svg"));
|
37
|
-
|
38
|
-
var _medalSvgrepoCom = _interopRequireDefault(require("../assets/medal-svgrepo-com.svg"));
|
39
|
-
|
40
|
-
var _settingsSvgrepoCom = _interopRequireDefault(require("../assets/settings-svgrepo-com.svg"));
|
41
|
-
|
42
|
-
var _searchSvgrepoCom = _interopRequireDefault(require("../assets/search-svgrepo-com.svg"));
|
34
|
+
var _io = require("react-icons/io5");
|
43
35
|
|
44
36
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
45
37
|
|
@@ -132,18 +124,12 @@ var Navbar = function Navbar(_ref) {
|
|
132
124
|
};
|
133
125
|
return /*#__PURE__*/_react.default.createElement(_BaseMaterial.default, null, /*#__PURE__*/_react.default.createElement(NavBar, {
|
134
126
|
color: navbarColor
|
135
|
-
}, /*#__PURE__*/_react.default.createElement(UniverseContainer, null, /*#__PURE__*/_react.default.createElement(IconContainer, {
|
127
|
+
}, /*#__PURE__*/_react.default.createElement(UniverseContainer, null, /*#__PURE__*/_react.default.createElement(IconContainer, null, /*#__PURE__*/_react.default.createElement(_ai.AiFillHome, {
|
136
128
|
size: iconSize,
|
137
129
|
color: iconBackgroundColor
|
138
|
-
}, /*#__PURE__*/_react.default.createElement(
|
139
|
-
src: _homeSvgrepoCom.default,
|
140
|
-
size: iconSize
|
141
|
-
})), /*#__PURE__*/_react.default.createElement(IconContainer, {
|
130
|
+
})), /*#__PURE__*/_react.default.createElement(IconContainer, null, /*#__PURE__*/_react.default.createElement(_md.MdAddBox, {
|
142
131
|
size: iconSize,
|
143
132
|
color: iconBackgroundColor
|
144
|
-
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
145
|
-
src: _addSvgrepoCom.default,
|
146
|
-
size: iconSize
|
147
133
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
148
134
|
style: {
|
149
135
|
width: '200px'
|
@@ -153,27 +139,17 @@ var Navbar = function Navbar(_ref) {
|
|
153
139
|
styles: {
|
154
140
|
color: 'blue'
|
155
141
|
}
|
156
|
-
}))), /*#__PURE__*/_react.default.createElement(DiscoverContainer, null, /*#__PURE__*/_react.default.createElement(IconContainer, {
|
142
|
+
}))), /*#__PURE__*/_react.default.createElement(DiscoverContainer, null, /*#__PURE__*/_react.default.createElement(IconContainer, null, /*#__PURE__*/_react.default.createElement(_ai.AiFillCompass, {
|
157
143
|
size: iconSize,
|
158
144
|
color: iconBackgroundColor
|
159
|
-
}, /*#__PURE__*/_react.default.createElement(
|
160
|
-
src: _compassSvgrepoCom.default,
|
161
|
-
size: iconSize
|
162
|
-
})), /*#__PURE__*/_react.default.createElement(IconContainer, {
|
145
|
+
})), /*#__PURE__*/_react.default.createElement(IconContainer, null, /*#__PURE__*/_react.default.createElement(_bi.BiMedal, {
|
163
146
|
size: iconSize,
|
164
147
|
color: iconBackgroundColor
|
165
|
-
}, /*#__PURE__*/_react.default.createElement(
|
166
|
-
src: _medalSvgrepoCom.default,
|
167
|
-
size: iconSize
|
168
|
-
})), /*#__PURE__*/_react.default.createElement(IconContainer, {
|
148
|
+
})), /*#__PURE__*/_react.default.createElement(IconContainer, null, /*#__PURE__*/_react.default.createElement(_io.IoBasketSharp, {
|
169
149
|
size: iconSize,
|
170
150
|
color: iconBackgroundColor
|
171
|
-
}, /*#__PURE__*/_react.default.createElement(
|
172
|
-
|
173
|
-
size: iconSize
|
174
|
-
}))), /*#__PURE__*/_react.default.createElement(SearchContainer, null, /*#__PURE__*/_react.default.createElement(SearchBar, null, /*#__PURE__*/_react.default.createElement(Icon, {
|
175
|
-
src: _searchSvgrepoCom.default,
|
176
|
-
size: iconSize
|
151
|
+
}))), /*#__PURE__*/_react.default.createElement(SearchContainer, null, /*#__PURE__*/_react.default.createElement(SearchBar, null, /*#__PURE__*/_react.default.createElement(_ai.AiOutlineSearch, {
|
152
|
+
color: iconBackgroundColor
|
177
153
|
}), /*#__PURE__*/_react.default.createElement(_formik.Formik, {
|
178
154
|
initialValues: initialValues,
|
179
155
|
onSubmit: function onSubmit(values) {
|
@@ -223,18 +199,12 @@ var Navbar = function Navbar(_ref) {
|
|
223
199
|
}
|
224
200
|
},
|
225
201
|
menuIsOpen: menuOpen
|
226
|
-
})), /*#__PURE__*/_react.default.createElement(UserName, null, "illo")), /*#__PURE__*/_react.default.createElement(SettingsContainer, null, /*#__PURE__*/_react.default.createElement(IconContainer, {
|
202
|
+
})), /*#__PURE__*/_react.default.createElement(UserName, null, "illo")), /*#__PURE__*/_react.default.createElement(SettingsContainer, null, /*#__PURE__*/_react.default.createElement(IconContainer, null, /*#__PURE__*/_react.default.createElement(_ai.AiFillSetting, {
|
227
203
|
size: iconSize,
|
228
204
|
color: iconBackgroundColor
|
229
|
-
}, /*#__PURE__*/_react.default.createElement(
|
230
|
-
src: _settingsSvgrepoCom.default,
|
231
|
-
size: iconSize
|
232
|
-
})), /*#__PURE__*/_react.default.createElement(IconContainer, {
|
205
|
+
})), /*#__PURE__*/_react.default.createElement(IconContainer, null, /*#__PURE__*/_react.default.createElement(_ai.AiFillBell, {
|
233
206
|
size: iconSize,
|
234
207
|
color: iconBackgroundColor
|
235
|
-
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
236
|
-
src: _bellSvgrepoCom.default,
|
237
|
-
size: iconSize
|
238
208
|
}))))));
|
239
209
|
};
|
240
210
|
|
@@ -257,7 +227,7 @@ var UniverseContainer = (0, _styledComponents.default)('div')({
|
|
257
227
|
'justify-content': 'flex-start'
|
258
228
|
});
|
259
229
|
|
260
|
-
var IconContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 auto;\n
|
230
|
+
var IconContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 auto;\n \n \n display: flex;\n align-items: center;\n margin-left: 0px;\n margin-right: 4px;\n border-radius: 20px;\n flex-direction: row;\n justify-content: center;\n\n & svg {\n width: ", ";\n };\n height: ", ";\n fill: ", ";\n"])), function (props) {
|
261
231
|
return props.size === 'sm' ? '30px' : props.size === 'md' ? '35px' : props.size === 'lg' ? '40px' : '30px';
|
262
232
|
}, function (props) {
|
263
233
|
return props.size === 'sm' ? '30px' : props.size === 'md' ? '35px' : props.size === 'lg' ? '40px' : '30px';
|
@@ -81,7 +81,19 @@ var Chat = function Chat(_ref) {
|
|
81
81
|
hideTitle: true
|
82
82
|
}, /*#__PURE__*/_react.default.createElement(_Chat.default, {
|
83
83
|
data: data,
|
84
|
-
users: users
|
84
|
+
users: users,
|
85
|
+
title: 'Chat',
|
86
|
+
headerStyles: {
|
87
|
+
padding: 10,
|
88
|
+
headerBackground: '#00ADC4',
|
89
|
+
titleColor: '#ffff',
|
90
|
+
controlsStyles: {
|
91
|
+
iconSize: 25
|
92
|
+
}
|
93
|
+
},
|
94
|
+
customCardStyles: {
|
95
|
+
cardTitleColor: '#00ADC4'
|
96
|
+
}
|
85
97
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
86
98
|
};
|
87
99
|
|
@@ -88,7 +88,25 @@ var DetailedForm = function DetailedForm(props) {
|
|
88
88
|
}, /*#__PURE__*/_react.default.createElement(_DetailedForm.default, {
|
89
89
|
userName: "User Name",
|
90
90
|
userImg: "https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png",
|
91
|
-
questions: questions
|
91
|
+
questions: questions,
|
92
|
+
headerStyles: {
|
93
|
+
padding: 10,
|
94
|
+
headerBackground: '#FE1744',
|
95
|
+
titleColor: '#ffff',
|
96
|
+
controlsStyles: {
|
97
|
+
dropdownBackground: 'black',
|
98
|
+
dropdownFontColor: 'white',
|
99
|
+
dropdownItemHoverColor: '#FE1744'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
userHeaderStyles: {
|
103
|
+
cardBackgroundColor: '#FE1744',
|
104
|
+
cardImageRadius: "100",
|
105
|
+
cardTitleColor: 'white'
|
106
|
+
},
|
107
|
+
customCardStyles: {
|
108
|
+
cardPadding: 10
|
109
|
+
}
|
92
110
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
93
111
|
};
|
94
112
|
|
@@ -92,9 +92,15 @@ var FillForm = function FillForm(props) {
|
|
92
92
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
93
93
|
hideTitle: true
|
94
94
|
}, /*#__PURE__*/_react.default.createElement(_FillForm.default, {
|
95
|
+
formTitle: "Community Form",
|
95
96
|
sections: sections,
|
96
97
|
saveBtnText: 'Submit',
|
97
|
-
cancelBtnText: "Cancel"
|
98
|
+
cancelBtnText: "Cancel",
|
99
|
+
headerStyles: {
|
100
|
+
padding: 10,
|
101
|
+
headerBackground: 'black',
|
102
|
+
titleColor: '#ffff'
|
103
|
+
}
|
98
104
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
99
105
|
};
|
100
106
|
|