@mohamed-karawia/library 0.1.13 → 0.1.17
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/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 +2 -12
- package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +4 -19
- 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 +0 -9
- package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +1 -8
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +3 -6
- 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/Events/Events.js +19 -1
- package/dist/stories/Pages/Library/Folders/Library.js +11 -1
- package/dist/stories/Pages/Library/Notes/Notes.js +11 -0
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +5 -0
- 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 +34 -1
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +0 -8
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +3 -36
- 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/ReusableList/ReusableList.js +8 -6
- package/dist/stories/Sections/Sections.js +61 -0
- package/dist/stories/helpers/util.js +13 -7
- package/package.json +2 -2
- package/src/stories/Chat/Chat.jsx +3 -25
- 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 +1 -10
- package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +2 -16
- 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 +0 -9
- package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -7
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +1 -4
- 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/Events/Events.jsx +18 -0
- package/src/stories/Pages/Library/Folders/Library.jsx +13 -1
- package/src/stories/Pages/Library/Notes/Notes.jsx +30 -18
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +9 -3
- 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 +22 -20
- package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +0 -8
- package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +1 -35
- 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/ReusableList/ReusableList.jsx +17 -6
- package/src/stories/Sections/Sections.jsx +53 -0
- package/src/stories/helpers/util.js +10 -6
@@ -25,42 +25,21 @@ var _RichTextInput = _interopRequireDefault(require("../Common Inputs/RichTextIn
|
|
25
25
|
|
26
26
|
var _templateObject;
|
27
27
|
|
28
|
-
var _excluded = ["data", "title", "
|
28
|
+
var _excluded = ["data", "title", "cardBackgroundColor", "textColor", "users"];
|
29
29
|
|
30
30
|
var Chat = function Chat(_ref) {
|
31
31
|
var data = _ref.data,
|
32
32
|
title = _ref.title,
|
33
|
-
titleColor = _ref.titleColor,
|
34
|
-
headerBackground = _ref.headerBackground,
|
35
|
-
headerPadding = _ref.headerPadding,
|
36
33
|
cardBackgroundColor = _ref.cardBackgroundColor,
|
37
|
-
cardTitleColor = _ref.cardTitleColor,
|
38
34
|
textColor = _ref.textColor,
|
39
35
|
users = _ref.users,
|
40
36
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
41
|
-
return /*#__PURE__*/_react.default.createElement(Container, {
|
42
|
-
|
43
|
-
}, /*#__PURE__*/_react.default.createElement(_ReusableHeader.default, {
|
44
|
-
title: title,
|
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, {
|
37
|
+
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
38
|
+
listTitle: title,
|
55
39
|
type: "flat",
|
56
40
|
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, {
|
41
|
+
cardStyle: "card-style-8"
|
42
|
+
}, props)), /*#__PURE__*/_react.default.createElement(_RichTextInput.default, {
|
64
43
|
users: users
|
65
44
|
}));
|
66
45
|
};
|
@@ -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;
|
@@ -41,25 +41,15 @@ var DetailedForm = function DetailedForm(_ref) {
|
|
41
41
|
title: userName,
|
42
42
|
img: userImg,
|
43
43
|
cardImageRadius: "100"
|
44
|
-
})), /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
|
44
|
+
})), /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
45
45
|
listTitle: "Form",
|
46
46
|
data: questions,
|
47
47
|
type: "flat",
|
48
48
|
cardStyle: "card-style-3",
|
49
|
-
headerStyles: {
|
50
|
-
padding: 10,
|
51
|
-
headerBackground: '#FE1744',
|
52
|
-
titleColor: '#ffff',
|
53
|
-
controlsStyles: {
|
54
|
-
dropdownBackground: 'black',
|
55
|
-
dropdownFontColor: 'white',
|
56
|
-
dropdownItemHoverColor: '#FE1744'
|
57
|
-
}
|
58
|
-
},
|
59
49
|
customCardStyles: {
|
60
50
|
cardPadding: 10
|
61
51
|
}
|
62
|
-
}), /*#__PURE__*/_react.default.createElement(Buttons, null, /*#__PURE__*/_react.default.createElement(Accept, {
|
52
|
+
}, props)), /*#__PURE__*/_react.default.createElement(Buttons, null, /*#__PURE__*/_react.default.createElement(Accept, {
|
63
53
|
onClick: onAccept
|
64
54
|
}, "Accept"), /*#__PURE__*/_react.default.createElement(Decline, {
|
65
55
|
onClick: onDecline
|
@@ -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: "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 = {};
|
@@ -85,34 +85,17 @@ var EventsList = function EventsList(_ref) {
|
|
85
85
|
props.onAddEvent(event);
|
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 Events",
|
90
90
|
data: events,
|
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
|
-
customCardStyles: {
|
102
|
-
iconColor: iconColor,
|
103
|
-
cardTitleFontSize: cardTitleFontSize,
|
104
|
-
cardTitleColor: cardTitleColor,
|
105
|
-
cardPadding: cardPadding,
|
106
|
-
controlsStyles: {
|
107
|
-
iconColor: '#FE1744'
|
108
|
-
}
|
109
|
-
},
|
110
93
|
listControls: listControls,
|
111
94
|
cardControls: cardControls,
|
112
95
|
iconClicked: onIconClicked,
|
113
96
|
cardClicked: cardClicked,
|
114
97
|
cardIconClicked: cardIconClicked
|
115
|
-
}), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
98
|
+
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
116
99
|
modalIsOpen: showModal,
|
117
100
|
closeModal: function closeModal() {
|
118
101
|
return setShowModal(false);
|
@@ -27,7 +27,7 @@ var _CreateFolder = _interopRequireDefault(require("../CreateFolder/CreateFolder
|
|
27
27
|
|
28
28
|
var _templateObject;
|
29
29
|
|
30
|
-
var _excluded = ["folders", "folderTitle", "columnsNumber", "columnGap", "rowGap", "cardClicked", "iconColor"
|
30
|
+
var _excluded = ["folders", "folderTitle", "columnsNumber", "columnGap", "rowGap", "cardClicked", "iconColor"];
|
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
|
|
@@ -52,7 +52,6 @@ var Folders = function Folders(_ref) {
|
|
52
52
|
rowGap = _ref.rowGap,
|
53
53
|
cardClicked = _ref.cardClicked,
|
54
54
|
iconColor = _ref.iconColor,
|
55
|
-
headerStyles = _ref.headerStyles,
|
56
55
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
57
56
|
|
58
57
|
var _useState = (0, _react.useState)(false),
|
@@ -89,7 +88,6 @@ var Folders = function Folders(_ref) {
|
|
89
88
|
data: folders,
|
90
89
|
type: "flat",
|
91
90
|
cardStyle: "card-style-10",
|
92
|
-
headerStyles: headerStyles,
|
93
91
|
columnsNumber: columnsNumber,
|
94
92
|
galleryColumnGap: columnGap,
|
95
93
|
galleryRowGap: rowGap,
|
@@ -98,11 +96,7 @@ var Folders = function Folders(_ref) {
|
|
98
96
|
cardClicked: cardClicked,
|
99
97
|
cardIconClicked: cardIconClicked,
|
100
98
|
cardControls: cardControls,
|
101
|
-
rowsHeight: 140
|
102
|
-
customCardStyles: {
|
103
|
-
cardPadding: 10,
|
104
|
-
iconColor: iconColor
|
105
|
-
}
|
99
|
+
rowsHeight: 140
|
106
100
|
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
107
101
|
modalIsOpen: showModal,
|
108
102
|
closeModal: function closeModal() {
|
@@ -119,7 +113,7 @@ var Folders = function Folders(_ref) {
|
|
119
113
|
})));
|
120
114
|
};
|
121
115
|
|
122
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
116
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: transparent;\n"])));
|
123
117
|
|
124
118
|
Folders.defaultProps = {};
|
125
119
|
var _default = Folders;
|
@@ -90,15 +90,6 @@ var Notes = function Notes(_ref) {
|
|
90
90
|
data: notes,
|
91
91
|
type: "flat",
|
92
92
|
cardStyle: "card-style-11",
|
93
|
-
customCardStyles: {
|
94
|
-
iconColor: iconColor,
|
95
|
-
cardTitleFontSize: cardTitleFontSize,
|
96
|
-
cardTitleColor: cardTitleColor,
|
97
|
-
cardPadding: cardPadding,
|
98
|
-
controlsStyles: {
|
99
|
-
iconColor: '#FE1744'
|
100
|
-
}
|
101
|
-
},
|
102
93
|
listControls: listControls,
|
103
94
|
cardControls: cardControls,
|
104
95
|
iconClicked: onIconClicked,
|
@@ -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
|
});
|
@@ -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() {
|
@@ -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: {
|
@@ -111,8 +109,7 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
111
109
|
galleryControls: galleryControls,
|
112
110
|
iconClicked: onHeaderIconClicked,
|
113
111
|
cardControls: cardControls,
|
114
|
-
cardIconClicked: cardIconClicked
|
115
|
-
customCardStyles: cardStyles
|
112
|
+
cardIconClicked: cardIconClicked
|
116
113
|
}, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
117
114
|
modalIsOpen: showModal,
|
118
115
|
closeModal: function closeModal() {
|
@@ -129,7 +126,7 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
129
126
|
})));
|
130
127
|
};
|
131
128
|
|
132
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
129
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
133
130
|
|
134
131
|
ViewAlbums.defaultProps = {
|
135
132
|
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,17 @@ 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
|
+
}
|
92
102
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
93
103
|
};
|
94
104
|
|
@@ -83,6 +83,14 @@ var Forms = function Forms(props) {
|
|
83
83
|
forms = _useState2[0],
|
84
84
|
setForms = _useState2[1];
|
85
85
|
|
86
|
+
var cardClicked = function cardClicked(index, cardProps) {
|
87
|
+
console.log(cardProps);
|
88
|
+
};
|
89
|
+
|
90
|
+
var onAction = function onAction(action, index) {
|
91
|
+
console.log(action);
|
92
|
+
};
|
93
|
+
|
86
94
|
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, {
|
87
95
|
widgetType: "logo",
|
88
96
|
widgetProps: {
|
@@ -117,7 +125,24 @@ var Forms = function Forms(props) {
|
|
117
125
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
118
126
|
hideTitle: true
|
119
127
|
}, /*#__PURE__*/_react.default.createElement(_ViewForms.default, {
|
120
|
-
data: forms
|
128
|
+
data: forms,
|
129
|
+
cardClicked: cardClicked,
|
130
|
+
cardIconClicked: onAction,
|
131
|
+
headerStyles: {
|
132
|
+
padding: 10,
|
133
|
+
headerBackground: '#FE1744',
|
134
|
+
titleColor: '#ffff',
|
135
|
+
controlsStyles: {
|
136
|
+
dropdownBackground: 'black',
|
137
|
+
dropdownFontColor: 'white',
|
138
|
+
dropdownItemHoverColor: '#FE1744'
|
139
|
+
}
|
140
|
+
},
|
141
|
+
sectionHeaderStyles: {
|
142
|
+
cardTitleColor: 'white',
|
143
|
+
cardBackgroundColor: 'black',
|
144
|
+
cardPadding: 10
|
145
|
+
}
|
121
146
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
122
147
|
};
|
123
148
|
|
@@ -79,6 +79,10 @@ var Events = function Events(props) {
|
|
79
79
|
setEvents((0, _util.deleteFromArrayByIndex)(events, 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: {
|
@@ -117,7 +121,21 @@ var Events = function Events(props) {
|
|
117
121
|
iconColor: "#FE1744",
|
118
122
|
cardTitleFontSize: 15,
|
119
123
|
onAddEvent: onAddEvent,
|
120
|
-
cardIconClicked: cardIconClicked
|
124
|
+
cardIconClicked: cardIconClicked,
|
125
|
+
cardClicked: cardClicked,
|
126
|
+
headerStyles: {
|
127
|
+
padding: 10,
|
128
|
+
headerBackground: '#FE1744',
|
129
|
+
titleColor: '#ffff',
|
130
|
+
controlsStyles: {
|
131
|
+
iconSize: 25
|
132
|
+
}
|
133
|
+
},
|
134
|
+
customCardStyles: {
|
135
|
+
controlsStyles: {
|
136
|
+
iconColor: '#FE1744'
|
137
|
+
}
|
138
|
+
}
|
121
139
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
122
140
|
};
|
123
141
|
|
@@ -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: {
|
@@ -109,7 +113,8 @@ var Library = function Library(props) {
|
|
109
113
|
controlsStyles: {
|
110
114
|
showOnHover: true
|
111
115
|
}
|
112
|
-
}
|
116
|
+
},
|
117
|
+
cardClicked: cardClicked
|
113
118
|
}
|
114
119
|
})), /*#__PURE__*/_react.default.createElement(_Center.default, null, /*#__PURE__*/_react.default.createElement(_SpaceContainer.default, {
|
115
120
|
title: "Music Album",
|
@@ -121,6 +126,7 @@ var Library = function Library(props) {
|
|
121
126
|
columnsNumber: 3,
|
122
127
|
onAddFolder: onAddFolder,
|
123
128
|
cardIconClicked: cardIconClicked,
|
129
|
+
cardClicked: cardClicked,
|
124
130
|
headerStyles: {
|
125
131
|
padding: 10,
|
126
132
|
headerBackground: '#ff2d2d',
|
@@ -128,6 +134,10 @@ var Library = function Library(props) {
|
|
128
134
|
controlsStyles: {
|
129
135
|
iconSize: 25
|
130
136
|
}
|
137
|
+
},
|
138
|
+
customCardStyles: {
|
139
|
+
cardPadding: 10,
|
140
|
+
iconColor: '#ff2d2d'
|
131
141
|
}
|
132
142
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
133
143
|
};
|
@@ -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: {
|
@@ -116,6 +120,7 @@ var Notes = function Notes(props) {
|
|
116
120
|
onAddNote: onAddNote,
|
117
121
|
cardIconClicked: cardIconClicked,
|
118
122
|
notes: notes,
|
123
|
+
cardClicked: cardClicked,
|
119
124
|
headerStyles: {
|
120
125
|
padding: 10,
|
121
126
|
headerBackground: '#FE1744',
|
@@ -123,6 +128,12 @@ var Notes = function Notes(props) {
|
|
123
128
|
controlsStyles: {
|
124
129
|
iconSize: 25
|
125
130
|
}
|
131
|
+
},
|
132
|
+
customCardStyles: {
|
133
|
+
iconColor: '#FE1744',
|
134
|
+
controlsStyles: {
|
135
|
+
iconColor: '#FE1744'
|
136
|
+
}
|
126
137
|
}
|
127
138
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
128
139
|
};
|
@@ -191,6 +191,11 @@ var Music = function Music(props) {
|
|
191
191
|
controlsStyles: {
|
192
192
|
iconSize: 25
|
193
193
|
}
|
194
|
+
},
|
195
|
+
customCardStyles: {
|
196
|
+
controlsStyles: {
|
197
|
+
iconColor: 'blue'
|
198
|
+
}
|
194
199
|
}
|
195
200
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
196
201
|
widgetType: "music player",
|