@mohamed-karawia/library 0.1.16 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/stories/Chat/Chat.js +129 -14
- package/dist/stories/Common Inputs/EditorComponent/EditorComponent.js +4 -2
- package/dist/stories/Common Inputs/Picker/Picker.js +61 -0
- package/dist/stories/Common Inputs/TextField/TextField.js +3 -1
- package/dist/stories/Community/Community.js +137 -0
- package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +10 -12
- package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +1 -1
- package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
- package/dist/stories/Events/Event/Event.js +117 -5
- package/dist/stories/Events/EventsList/EventsList.js +98 -19
- package/dist/stories/Forms/CreateSpace/CreateSpace.js +75 -0
- package/dist/stories/Library/Folders/Folders.js +82 -6
- package/dist/stories/Library/Notes/Notes.js +78 -4
- package/dist/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.js +54 -0
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +138 -15
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +67 -28
- package/dist/stories/Navbar/Navbar.js +1 -1
- package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +8 -0
- package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
- package/dist/stories/Pages/Enrollment/Forms/Forms.js +3 -1
- package/dist/stories/Pages/Events/Event/Event.js +14 -5
- package/dist/stories/Pages/Events/Events/Events.js +1 -0
- package/dist/stories/Pages/Library/Folders/Library.js +2 -1
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +8 -6
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -15
- package/dist/stories/Pages/Photos/Albums/Albums.js +4 -1
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +80 -19
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +83 -25
- package/dist/stories/Preview/Preview.js +37 -0
- package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +193 -0
- package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +158 -0
- package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +192 -0
- package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +182 -0
- package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +177 -0
- package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +181 -0
- package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +153 -0
- package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +112 -0
- package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +173 -0
- package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +189 -0
- package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +189 -0
- package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +197 -0
- package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +189 -0
- package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +175 -0
- package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +172 -0
- package/dist/stories/PreviewComponents/globalStyles.js +26 -0
- package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +4 -3
- package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +8 -4
- package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.js +10 -4
- package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.js +4 -2
- package/dist/stories/Reusable Components/Cards/globalCardStyles.js +2 -2
- package/dist/stories/Reusable Components/Community/Community.js +76 -0
- package/dist/stories/Reusable Components/Gallery/Gallery.js +17 -18
- package/dist/stories/Reusable Components/ReactModal/ReactModal.js +11 -30
- package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +20 -3
- package/dist/stories/Reusable Components/ReusableList/ReusableList.js +9 -5
- package/dist/stories/Reusable Components/Tabs/Tabs.js +68 -0
- package/dist/stories/Sections/Sections.js +8 -2
- package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +77 -18
- package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +96 -3
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +78 -5
- package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +17 -11
- package/dist/stories/Widgets/SpacesListWidget/SpacesListWidget.js +115 -0
- package/dist/stories/Widgets/UsersWidget/UsersWidget.js +30 -0
- package/dist/stories/helpers/util.js +60 -3
- package/dist/stories/store/communities.js +943 -0
- package/dist/stories/store/store.js +44 -0
- package/package.json +5 -2
- package/src/stories/Chat/Chat.jsx +109 -13
- package/src/stories/Common Inputs/EditorComponent/EditorComponent.jsx +3 -3
- package/src/stories/Common Inputs/Picker/Picker.jsx +47 -0
- package/src/stories/Common Inputs/TextField/TextField.jsx +1 -1
- package/src/stories/Community/Community.jsx +110 -0
- package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +7 -9
- package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +3 -2
- package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
- package/src/stories/Events/Event/Event.jsx +98 -5
- package/src/stories/Events/EventsList/EventsList.jsx +101 -22
- package/src/stories/Forms/CreateSpace/CreateSpace.jsx +73 -0
- package/src/stories/Library/Folders/Folders.jsx +82 -6
- package/src/stories/Library/Notes/Notes.jsx +65 -5
- package/src/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.jsx +31 -0
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +133 -14
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +61 -32
- package/src/stories/Navbar/Navbar.jsx +1 -1
- package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +10 -1
- package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
- package/src/stories/Pages/Enrollment/Forms/Forms.jsx +3 -1
- package/src/stories/Pages/Events/Event/Event.jsx +12 -4
- package/src/stories/Pages/Events/Events/Events.jsx +75 -74
- package/src/stories/Pages/Library/Folders/Library.jsx +2 -1
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +8 -6
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +0 -13
- package/src/stories/Pages/Photos/Albums/Albums.jsx +3 -0
- package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +63 -13
- package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +66 -33
- package/src/stories/Preview/Preview.jsx +35 -0
- package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +132 -0
- package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +116 -0
- package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +132 -0
- package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +127 -0
- package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +124 -0
- package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +126 -0
- package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +113 -0
- package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +93 -0
- package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +122 -0
- package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +129 -0
- package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +129 -0
- package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +138 -0
- package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +129 -0
- package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +124 -0
- package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +125 -0
- package/src/stories/PreviewComponents/globalStyles.js +20 -0
- package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +5 -2
- package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -5
- package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.jsx +12 -6
- package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.jsx +2 -2
- package/src/stories/Reusable Components/Cards/globalCardStyles.js +2 -1
- package/src/stories/Reusable Components/Community/Community.jsx +70 -0
- package/src/stories/Reusable Components/Gallery/Gallery.jsx +15 -10
- package/src/stories/Reusable Components/ReactModal/ReactModal.jsx +3 -25
- package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +19 -7
- package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
- package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +9 -4
- package/src/stories/Reusable Components/Tabs/Tabs.jsx +67 -0
- package/src/stories/Sections/Sections.jsx +5 -2
- package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.jsx +57 -16
- package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +70 -1
- package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +65 -8
- package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +14 -7
- package/src/stories/Widgets/SpacesListWidget/SpacesListWidget.jsx +78 -0
- package/src/stories/Widgets/UsersWidget/UsersWidget.jsx +20 -0
- package/src/stories/helpers/util.js +42 -2
- package/src/stories/store/communities.js +705 -0
- package/src/stories/store/store.js +33 -0
- package/src/stories/styling.json +92 -0
@@ -23,8 +23,24 @@ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/Reac
|
|
23
23
|
|
24
24
|
var _ai = require("react-icons/ai");
|
25
25
|
|
26
|
+
var _bs = require("react-icons/bs");
|
27
|
+
|
26
28
|
var _AddSong = _interopRequireDefault(require("../../Forms/AddSong/AddSong"));
|
27
29
|
|
30
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
31
|
+
|
32
|
+
var _Sections = _interopRequireDefault(require("../../Sections/Sections"));
|
33
|
+
|
34
|
+
var _MusicAlbumPreview = _interopRequireDefault(require("../../PreviewComponents/MusicAlbumPreview/MusicAlbumPreview"));
|
35
|
+
|
36
|
+
var _WidgetContainer = _interopRequireDefault(require("../../Reusable Components/WidgetContainer/WidgetContainer"));
|
37
|
+
|
38
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
39
|
+
|
40
|
+
var _constatnts = require("../../Pages/ViewWorld/constatnts");
|
41
|
+
|
42
|
+
var _styling = _interopRequireDefault(require("../../styling.json"));
|
43
|
+
|
28
44
|
var _templateObject;
|
29
45
|
|
30
46
|
var _excluded = ["album", "cardBackgroundColor", "songTitleColor"];
|
@@ -37,6 +53,10 @@ var listControls = [{
|
|
37
53
|
icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineFileAdd, null),
|
38
54
|
action: 'add',
|
39
55
|
name: 'Add Album'
|
56
|
+
}, {
|
57
|
+
icon: /*#__PURE__*/_react.default.createElement(_bs.BsGear, null),
|
58
|
+
action: 'config',
|
59
|
+
name: 'Config'
|
40
60
|
}];
|
41
61
|
var cardControls = [{
|
42
62
|
icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineDelete, null),
|
@@ -55,19 +75,61 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
55
75
|
showModal = _useState2[0],
|
56
76
|
setShowModal = _useState2[1];
|
57
77
|
|
58
|
-
var
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
78
|
+
var _useState3 = (0, _react.useState)(false),
|
79
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
80
|
+
showConfigModal = _useState4[0],
|
81
|
+
setShowConfigModal = _useState4[1];
|
82
|
+
|
83
|
+
var _useState5 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(ViewAlbum, {
|
84
|
+
album: album
|
85
|
+
})),
|
86
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
87
|
+
centerContext = _useState6[0],
|
88
|
+
setCenterContext = _useState6[1];
|
89
|
+
|
90
|
+
var formChanged = function formChanged(values) {
|
91
|
+
console.log('context changed');
|
92
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(ViewAlbum, Object.assign({
|
93
|
+
album: album
|
94
|
+
}, values)));
|
95
|
+
};
|
96
|
+
|
97
|
+
var tabs = [{
|
98
|
+
title: 'New',
|
99
|
+
id: 'preview'
|
100
|
+
}, {
|
101
|
+
title: 'Context',
|
102
|
+
id: 'community'
|
103
|
+
}];
|
104
|
+
var sections = [{
|
105
|
+
title: 'Styles',
|
106
|
+
data: [{
|
107
|
+
title: 'Styling',
|
108
|
+
id: 'styling'
|
109
|
+
}]
|
110
|
+
}];
|
63
111
|
|
64
|
-
|
65
|
-
|
112
|
+
var onIconClicked = function onIconClicked(action) {
|
113
|
+
if (!props.preview) {
|
114
|
+
switch (action) {
|
115
|
+
case 'add':
|
116
|
+
setShowModal(true);
|
117
|
+
break;
|
118
|
+
|
119
|
+
case 'config':
|
120
|
+
setShowConfigModal(true);
|
121
|
+
break;
|
122
|
+
|
123
|
+
default:
|
124
|
+
break;
|
125
|
+
}
|
66
126
|
}
|
67
127
|
};
|
68
128
|
|
69
129
|
var cardIconClicked = function cardIconClicked(action, index) {
|
70
|
-
props.
|
130
|
+
if (!props.preview) {
|
131
|
+
props.cardIconClicked(action, index);
|
132
|
+
}
|
71
133
|
};
|
72
134
|
|
73
135
|
var onAddSong = function onAddSong(song) {
|
@@ -80,7 +142,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
80
142
|
};
|
81
143
|
|
82
144
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
|
83
|
-
listTitle: "My Album",
|
145
|
+
listTitle: props.title || "My Album",
|
84
146
|
data: album,
|
85
147
|
cardStyle: "card-style-7",
|
86
148
|
type: "flat",
|
@@ -102,15 +164,76 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
102
164
|
}, /*#__PURE__*/_react.default.createElement(_AddSong.default, {
|
103
165
|
saveHandler: onAddSong,
|
104
166
|
cancelHandler: cancelHandler,
|
105
|
-
saveBtnText: "Create",
|
106
|
-
cancelBtnText: "Cancel"
|
107
|
-
}))
|
167
|
+
saveBtnText: props.saveBtnText || "Create",
|
168
|
+
cancelBtnText: props.cancelBtnText || "Cancel"
|
169
|
+
})), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
170
|
+
modalIsOpen: showConfigModal,
|
171
|
+
closeModal: function closeModal() {
|
172
|
+
localStorage.removeItem('formStyles');
|
173
|
+
setShowConfigModal(false);
|
174
|
+
},
|
175
|
+
exitModalButton: function exitModalButton(e) {
|
176
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
177
|
+
}
|
178
|
+
}, /*#__PURE__*/_react.default.createElement(_Sections.default, {
|
179
|
+
sections: sections,
|
180
|
+
backgroundColor: 'white',
|
181
|
+
sectionHeaderStyles: {
|
182
|
+
titleColor: 'white',
|
183
|
+
headerBackground: 'transparent'
|
184
|
+
},
|
185
|
+
customCardStyles: {
|
186
|
+
cardPadding: 6,
|
187
|
+
cardTitleFontSize: 15,
|
188
|
+
cardBackgroundColor: '#2c2c2c',
|
189
|
+
cardTitleColor: 'white',
|
190
|
+
onHoverBackgroundColor: '#555555',
|
191
|
+
controlsStyles: {
|
192
|
+
showOnHover: true
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
196
|
+
title: "Music Album Config",
|
197
|
+
tabs: tabs,
|
198
|
+
id: "styling"
|
199
|
+
}, /*#__PURE__*/_react.default.createElement(_MusicAlbumPreview.default, {
|
200
|
+
componentProps: {
|
201
|
+
album: album,
|
202
|
+
title: props.title || "My Album",
|
203
|
+
preview: true
|
204
|
+
},
|
205
|
+
formChanged: formChanged,
|
206
|
+
id: "preview"
|
207
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
208
|
+
right: /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
209
|
+
widgetType: "music player",
|
210
|
+
widgetProps: {
|
211
|
+
playlist: album,
|
212
|
+
currentSong: 1
|
213
|
+
}
|
214
|
+
}),
|
215
|
+
left: /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
216
|
+
widgetType: "spaces-list",
|
217
|
+
widgetProps: {
|
218
|
+
listTitle: 'Your Spaces',
|
219
|
+
type: 'sectioned',
|
220
|
+
spaces: _constatnts.SPACES,
|
221
|
+
cardStyle: 'card-style-3',
|
222
|
+
cardClicked: function cardClicked() {
|
223
|
+
return alert('clicked');
|
224
|
+
},
|
225
|
+
headerStyles: _styling.default.widgetContainer.header,
|
226
|
+
sectionHeaderStyles: _styling.default.widgetContainer.body.sectionHeaderStyles,
|
227
|
+
customCardStyles: _styling.default.widgetContainer.body.customCardStyles
|
228
|
+
}
|
229
|
+
}),
|
230
|
+
center: centerContext,
|
231
|
+
id: "community"
|
232
|
+
})))));
|
108
233
|
};
|
109
234
|
|
110
235
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
111
236
|
|
112
|
-
ViewAlbum.defaultProps = {
|
113
|
-
cardBackgroundColor: 'white'
|
114
|
-
};
|
237
|
+
ViewAlbum.defaultProps = {};
|
115
238
|
var _default = ViewAlbum;
|
116
239
|
exports.default = _default;
|
@@ -23,8 +23,16 @@ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/Reac
|
|
23
23
|
|
24
24
|
var _CreateMusicAlbum = _interopRequireDefault(require("../../Forms/CreateMusicAlbum/CreateMusicAlbum"));
|
25
25
|
|
26
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
27
|
+
|
28
|
+
var _Sections = _interopRequireDefault(require("../../Sections/Sections"));
|
29
|
+
|
30
|
+
var _MusicAlbumsPreview = _interopRequireDefault(require("../../PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview"));
|
31
|
+
|
26
32
|
var _ai = require("react-icons/ai");
|
27
33
|
|
34
|
+
var _bs = require("react-icons/bs");
|
35
|
+
|
28
36
|
var _templateObject;
|
29
37
|
|
30
38
|
var _excluded = ["albums", "albumTitleColor", "descColor"];
|
@@ -42,6 +50,10 @@ var galleryControls = [{
|
|
42
50
|
icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineFileAdd, null),
|
43
51
|
action: 'add',
|
44
52
|
name: 'Add Album'
|
53
|
+
}, {
|
54
|
+
icon: /*#__PURE__*/_react.default.createElement(_bs.BsGear, null),
|
55
|
+
action: 'config',
|
56
|
+
name: 'Config'
|
45
57
|
}];
|
46
58
|
|
47
59
|
var ViewAlbums = function ViewAlbums(_ref) {
|
@@ -49,37 +61,47 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
49
61
|
albumTitleColor = _ref.albumTitleColor,
|
50
62
|
descColor = _ref.descColor,
|
51
63
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
52
|
-
var cardStyles = {
|
53
|
-
darkOnHover: true,
|
54
|
-
cardTitleColor: albumTitleColor,
|
55
|
-
descColor: descColor,
|
56
|
-
controlsStyles: {
|
57
|
-
showOnHover: true,
|
58
|
-
position: 'center',
|
59
|
-
iconBackground: "#272727",
|
60
|
-
dropdownBackground: "#272727",
|
61
|
-
dropdownFontColor: "white",
|
62
|
-
dropdownItemHoverColor: "#414141",
|
63
|
-
iconBackgroundHover: "#414141",
|
64
|
-
iconBorderRadius: 100,
|
65
|
-
iconSize: 25,
|
66
|
-
iconsGap: 10,
|
67
|
-
iconColor: 'white',
|
68
|
-
containerPadding: 20
|
69
|
-
}
|
70
|
-
};
|
71
64
|
|
72
65
|
var _useState = (0, _react.useState)(false),
|
73
66
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
74
67
|
showModal = _useState2[0],
|
75
68
|
setShowModal = _useState2[1];
|
76
69
|
|
70
|
+
var _useState3 = (0, _react.useState)(false),
|
71
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
72
|
+
showConfigModal = _useState4[0],
|
73
|
+
setShowConfigModal = _useState4[1];
|
74
|
+
|
75
|
+
var tabs = [{
|
76
|
+
title: 'New',
|
77
|
+
component: /*#__PURE__*/_react.default.createElement(_MusicAlbumsPreview.default, {
|
78
|
+
componentProps: {
|
79
|
+
albums: albums,
|
80
|
+
title: props.title || 'Music Albums'
|
81
|
+
}
|
82
|
+
})
|
83
|
+
}];
|
84
|
+
var sections = [{
|
85
|
+
title: 'Styles',
|
86
|
+
data: [{
|
87
|
+
title: 'Styling',
|
88
|
+
component: /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
89
|
+
title: "Music Albums Config",
|
90
|
+
tabs: tabs
|
91
|
+
})
|
92
|
+
}]
|
93
|
+
}];
|
94
|
+
|
77
95
|
var onHeaderIconClicked = function onHeaderIconClicked(action) {
|
78
96
|
switch (action) {
|
79
97
|
case 'add':
|
80
98
|
setShowModal(true);
|
81
99
|
break;
|
82
100
|
|
101
|
+
case 'config':
|
102
|
+
setShowConfigModal(true);
|
103
|
+
break;
|
104
|
+
|
83
105
|
default:
|
84
106
|
break;
|
85
107
|
}
|
@@ -99,13 +121,10 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
99
121
|
};
|
100
122
|
|
101
123
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
|
102
|
-
galleryTitle: props.title,
|
124
|
+
galleryTitle: props.title || 'Music Albums',
|
103
125
|
data: albums,
|
104
126
|
type: "flat",
|
105
127
|
cardStyle: "card-style-6",
|
106
|
-
columnsNumber: 3,
|
107
|
-
galleryColumnGap: 10,
|
108
|
-
galleryRowGap: 20,
|
109
128
|
galleryControls: galleryControls,
|
110
129
|
iconClicked: onHeaderIconClicked,
|
111
130
|
cardControls: cardControls,
|
@@ -121,15 +140,35 @@ var ViewAlbums = function ViewAlbums(_ref) {
|
|
121
140
|
}, /*#__PURE__*/_react.default.createElement(_CreateMusicAlbum.default, {
|
122
141
|
saveHandler: onAddAlbum,
|
123
142
|
cancelHandler: cancelHandler,
|
124
|
-
saveBtnText: "Create",
|
125
|
-
cancelBtnText: "Cancel"
|
143
|
+
saveBtnText: props.saveBtnText || "Create",
|
144
|
+
cancelBtnText: props.cancelBtnText || "Cancel"
|
145
|
+
})), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
146
|
+
modalIsOpen: showConfigModal,
|
147
|
+
closeModal: function closeModal() {
|
148
|
+
return setShowConfigModal(false);
|
149
|
+
},
|
150
|
+
exitModalButton: function exitModalButton(e) {
|
151
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
152
|
+
}
|
153
|
+
}, /*#__PURE__*/_react.default.createElement(_Sections.default, {
|
154
|
+
sections: sections,
|
155
|
+
backgroundColor: 'white',
|
156
|
+
sectionHeaderStyles: {
|
157
|
+
titleColor: 'white',
|
158
|
+
headerBackground: 'transparent'
|
159
|
+
},
|
160
|
+
customCardStyles: {
|
161
|
+
cardPadding: 6,
|
162
|
+
cardTitleFontSize: 15,
|
163
|
+
cardBackgroundColor: '#2c2c2c',
|
164
|
+
cardTitleColor: 'white',
|
165
|
+
onHoverBackgroundColor: '#555555'
|
166
|
+
}
|
126
167
|
})));
|
127
168
|
};
|
128
169
|
|
129
170
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
130
171
|
|
131
|
-
ViewAlbums.defaultProps = {
|
132
|
-
cardBackgroundColor: 'white'
|
133
|
-
};
|
172
|
+
ViewAlbums.defaultProps = {};
|
134
173
|
var _default = ViewAlbums;
|
135
174
|
exports.default = _default;
|
@@ -219,7 +219,7 @@ var NavBar = _styledComponents.default.div(_templateObject3 || (_templateObject3
|
|
219
219
|
});
|
220
220
|
|
221
221
|
var UniverseContainer = (0, _styledComponents.default)('div')({
|
222
|
-
width: '
|
222
|
+
width: '100%',
|
223
223
|
height: '72px',
|
224
224
|
display: 'flex',
|
225
225
|
'align-items': 'center',
|
@@ -98,6 +98,14 @@ var DetailedForm = function DetailedForm(props) {
|
|
98
98
|
dropdownFontColor: 'white',
|
99
99
|
dropdownItemHoverColor: '#FE1744'
|
100
100
|
}
|
101
|
+
},
|
102
|
+
userHeaderStyles: {
|
103
|
+
cardBackgroundColor: '#FE1744',
|
104
|
+
cardImageRadius: "100",
|
105
|
+
cardTitleColor: 'white'
|
106
|
+
},
|
107
|
+
customCardStyles: {
|
108
|
+
cardPadding: 10
|
101
109
|
}
|
102
110
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
103
111
|
};
|
@@ -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
|
|
@@ -121,7 +121,6 @@ var Forms = function Forms(props) {
|
|
121
121
|
}
|
122
122
|
}
|
123
123
|
})), /*#__PURE__*/_react.default.createElement(_Center.default, null, /*#__PURE__*/_react.default.createElement(_SpaceContainer.default, {
|
124
|
-
title: "Music Album",
|
125
124
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
126
125
|
hideTitle: true
|
127
126
|
}, /*#__PURE__*/_react.default.createElement(_ViewForms.default, {
|
@@ -142,6 +141,9 @@ var Forms = function Forms(props) {
|
|
142
141
|
cardTitleColor: 'white',
|
143
142
|
cardBackgroundColor: 'black',
|
144
143
|
cardPadding: 10
|
144
|
+
},
|
145
|
+
customCardStyles: {
|
146
|
+
cardBackgroundColor: 'white'
|
145
147
|
}
|
146
148
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
147
149
|
};
|
@@ -27,8 +27,6 @@ var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Compone
|
|
27
27
|
|
28
28
|
var _Event = _interopRequireDefault(require("../../../Events/Event/Event"));
|
29
29
|
|
30
|
-
var _util = require("../../../helpers/util");
|
31
|
-
|
32
30
|
var _styles = _interopRequireDefault(require("../../ViewWorld/styles.json"));
|
33
31
|
|
34
32
|
var _constatnts = require("../../ViewWorld/constatnts");
|
@@ -44,16 +42,27 @@ var Event = function Event(props) {
|
|
44
42
|
imgUrl: props.imgUrl
|
45
43
|
}
|
46
44
|
}), /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
47
|
-
widgetType: "list",
|
45
|
+
widgetType: "spaces-list",
|
48
46
|
widgetProps: {
|
49
47
|
listTitle: 'Your Spaces',
|
50
48
|
type: 'sectioned',
|
51
|
-
|
49
|
+
spaces: _constatnts.SPACES,
|
52
50
|
cardStyle: 'card-style-3',
|
51
|
+
cardClicked: function cardClicked() {
|
52
|
+
return alert('clicked');
|
53
|
+
},
|
54
|
+
headerStyles: {
|
55
|
+
headerBackground: 'purple',
|
56
|
+
padding: 3,
|
57
|
+
controlsStyles: {
|
58
|
+
iconColor: 'white',
|
59
|
+
iconsGap: 5
|
60
|
+
}
|
61
|
+
},
|
53
62
|
sectionHeaderStyles: {
|
54
63
|
cardBorderSize: 2,
|
55
64
|
cardPadding: 2,
|
56
|
-
|
65
|
+
headerBackground: 'red',
|
57
66
|
cardBorderColor: 'black'
|
58
67
|
},
|
59
68
|
customCardStyles: {
|
@@ -113,7 +113,8 @@ var Library = function Library(props) {
|
|
113
113
|
controlsStyles: {
|
114
114
|
showOnHover: true
|
115
115
|
}
|
116
|
-
}
|
116
|
+
},
|
117
|
+
cardClicked: cardClicked
|
117
118
|
}
|
118
119
|
})), /*#__PURE__*/_react.default.createElement(_Center.default, null, /*#__PURE__*/_react.default.createElement(_SpaceContainer.default, {
|
119
120
|
title: "Music Album",
|
@@ -60,7 +60,7 @@ var Music = function Music(props) {
|
|
60
60
|
var _useState3 = (0, _react.useState)([{
|
61
61
|
index: 0,
|
62
62
|
cover: _music4.default,
|
63
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
63
|
+
musicSrc: 'https://www.pacdv.com/sounds/free-music/gentle-thoughts-1.mp3',
|
64
64
|
title: 'Plans We Made',
|
65
65
|
description: 'Son Lux',
|
66
66
|
time: '5:20'
|
@@ -74,7 +74,7 @@ var Music = function Music(props) {
|
|
74
74
|
}, {
|
75
75
|
index: 1,
|
76
76
|
cover: _music5.default,
|
77
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
77
|
+
musicSrc: 'https://www.pacdv.com/sounds/free-music/glow-in-the-dark.mp3',
|
78
78
|
title: 'Night',
|
79
79
|
description: 'Frank Ocean',
|
80
80
|
time: '5:20'
|
@@ -88,14 +88,14 @@ var Music = function Music(props) {
|
|
88
88
|
}, {
|
89
89
|
index: 4,
|
90
90
|
cover: _music3.default,
|
91
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
91
|
+
musicSrc: 'https://www.pacdv.com/sounds/free-music/gentle-thoughts-1.mp3',
|
92
92
|
title: 'Enter Sandman',
|
93
93
|
description: 'Metallica',
|
94
94
|
time: '5:20'
|
95
95
|
}, {
|
96
96
|
index: 5,
|
97
97
|
cover: _music2.default,
|
98
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
98
|
+
musicSrc: 'https://www.pacdv.com/sounds/free-music/glow-in-the-dark.mp3',
|
99
99
|
title: 'November Rain',
|
100
100
|
description: "Guns N' Roses",
|
101
101
|
time: '5:20'
|
@@ -193,8 +193,9 @@ var Music = function Music(props) {
|
|
193
193
|
}
|
194
194
|
},
|
195
195
|
customCardStyles: {
|
196
|
+
cardBackgroundColor: 'white',
|
196
197
|
controlsStyles: {
|
197
|
-
iconColor: '
|
198
|
+
iconColor: 'black'
|
198
199
|
}
|
199
200
|
}
|
200
201
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
@@ -210,7 +211,8 @@ var Music = function Music(props) {
|
|
210
211
|
prevSong: prevSong,
|
211
212
|
currentSong: currentSong,
|
212
213
|
borderRadius: '10',
|
213
|
-
primaryColor: 'black'
|
214
|
+
primaryColor: 'black',
|
215
|
+
backgroundColor: 'white'
|
214
216
|
},
|
215
217
|
headerStyles: {
|
216
218
|
controlsStyles: {
|
@@ -154,10 +154,7 @@ var MusicAlbums = function MusicAlbums(props) {
|
|
154
154
|
cardTitleFontSize: 15,
|
155
155
|
cardBackgroundColor: 'black',
|
156
156
|
cardTitleColor: 'white',
|
157
|
-
onHoverBackgroundColor: '#F6891F'
|
158
|
-
controlsStyles: {
|
159
|
-
showOnHover: true
|
160
|
-
}
|
157
|
+
onHoverBackgroundColor: '#F6891F'
|
161
158
|
}
|
162
159
|
}
|
163
160
|
})), /*#__PURE__*/_react.default.createElement(_Center.default, null, /*#__PURE__*/_react.default.createElement(_SpaceContainer.default, {
|
@@ -178,17 +175,7 @@ var MusicAlbums = function MusicAlbums(props) {
|
|
178
175
|
}
|
179
176
|
},
|
180
177
|
customCardStyles: {
|
181
|
-
darkOnHover: true
|
182
|
-
controlsStyles: {
|
183
|
-
showOnHover: true,
|
184
|
-
position: 'center',
|
185
|
-
dropdownFontColor: "white",
|
186
|
-
iconBorderRadius: 100,
|
187
|
-
iconSize: 40,
|
188
|
-
iconsGap: 10,
|
189
|
-
iconColor: 'white',
|
190
|
-
containerPadding: 20
|
191
|
-
}
|
178
|
+
darkOnHover: true
|
192
179
|
},
|
193
180
|
cardClicked: cardClicked
|
194
181
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
@@ -168,7 +168,10 @@ var Albums = function Albums(props) {
|
|
168
168
|
onDeleteAlbum: onDeleteAlbum,
|
169
169
|
onAddAlbum: onAddAlbum,
|
170
170
|
columnsNumber: 2,
|
171
|
-
cardClicked: cardClicked
|
171
|
+
cardClicked: cardClicked,
|
172
|
+
customCardStyles: {
|
173
|
+
cardBackgroundColor: 'white'
|
174
|
+
}
|
172
175
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
173
176
|
widgetType: "folders",
|
174
177
|
widgetProps: {
|