@mohamed-karawia/library 0.1.17 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/dist/stories/Chat/Chat.js +129 -14
  2. package/dist/stories/Common Inputs/Picker/Picker.js +61 -0
  3. package/dist/stories/Common Inputs/TextField/TextField.js +3 -1
  4. package/dist/stories/Community/Community.js +137 -0
  5. package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +10 -12
  6. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +1 -1
  7. package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
  8. package/dist/stories/Events/Event/Event.js +116 -5
  9. package/dist/stories/Events/EventsList/EventsList.js +94 -19
  10. package/dist/stories/Forms/CreateSpace/CreateSpace.js +75 -0
  11. package/dist/stories/Library/Folders/Folders.js +77 -5
  12. package/dist/stories/Library/Notes/Notes.js +78 -4
  13. package/dist/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.js +54 -0
  14. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +137 -15
  15. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +67 -28
  16. package/dist/stories/Navbar/Navbar.js +1 -1
  17. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +8 -0
  18. package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
  19. package/dist/stories/Pages/Enrollment/Forms/Forms.js +3 -1
  20. package/dist/stories/Pages/Events/Event/Event.js +14 -5
  21. package/dist/stories/Pages/Events/Events/Events.js +1 -0
  22. package/dist/stories/Pages/Music/MusicAlbum/Music.js +8 -6
  23. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -15
  24. package/dist/stories/Pages/Photos/Albums/Albums.js +4 -1
  25. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +80 -19
  26. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +83 -25
  27. package/dist/stories/Preview/Preview.js +37 -0
  28. package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +193 -0
  29. package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +158 -0
  30. package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +192 -0
  31. package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +182 -0
  32. package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +177 -0
  33. package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +181 -0
  34. package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +153 -0
  35. package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +112 -0
  36. package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +173 -0
  37. package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +189 -0
  38. package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +189 -0
  39. package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +197 -0
  40. package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +189 -0
  41. package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +175 -0
  42. package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +172 -0
  43. package/dist/stories/PreviewComponents/globalStyles.js +26 -0
  44. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +4 -3
  45. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +8 -4
  46. package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.js +10 -4
  47. package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.js +4 -2
  48. package/dist/stories/Reusable Components/Cards/globalCardStyles.js +2 -2
  49. package/dist/stories/Reusable Components/Community/Community.js +75 -0
  50. package/dist/stories/Reusable Components/Gallery/Gallery.js +17 -18
  51. package/dist/stories/Reusable Components/ReactModal/ReactModal.js +11 -30
  52. package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +20 -3
  53. package/dist/stories/Reusable Components/ReusableList/ReusableList.js +9 -5
  54. package/dist/stories/Reusable Components/Tabs/Tabs.js +68 -0
  55. package/dist/stories/Sections/Sections.js +8 -2
  56. package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +77 -18
  57. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +96 -3
  58. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +78 -5
  59. package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +17 -11
  60. package/dist/stories/Widgets/SpacesListWidget/SpacesListWidget.js +115 -0
  61. package/dist/stories/Widgets/UsersWidget/UsersWidget.js +30 -0
  62. package/dist/stories/helpers/util.js +60 -3
  63. package/dist/stories/store/communities.js +943 -0
  64. package/dist/stories/store/store.js +44 -0
  65. package/package.json +5 -2
  66. package/src/stories/Chat/Chat.jsx +109 -13
  67. package/src/stories/Common Inputs/Picker/Picker.jsx +47 -0
  68. package/src/stories/Common Inputs/TextField/TextField.jsx +1 -1
  69. package/src/stories/Community/Community.jsx +110 -0
  70. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +7 -9
  71. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +3 -2
  72. package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
  73. package/src/stories/Events/Event/Event.jsx +98 -5
  74. package/src/stories/Events/EventsList/EventsList.jsx +101 -22
  75. package/src/stories/Forms/CreateSpace/CreateSpace.jsx +73 -0
  76. package/src/stories/Library/Folders/Folders.jsx +81 -5
  77. package/src/stories/Library/Notes/Notes.jsx +65 -5
  78. package/src/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.jsx +31 -0
  79. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +133 -14
  80. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +61 -32
  81. package/src/stories/Navbar/Navbar.jsx +1 -1
  82. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +10 -1
  83. package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
  84. package/src/stories/Pages/Enrollment/Forms/Forms.jsx +3 -1
  85. package/src/stories/Pages/Events/Event/Event.jsx +12 -4
  86. package/src/stories/Pages/Events/Events/Events.jsx +75 -74
  87. package/src/stories/Pages/Library/Folders/Library.jsx +1 -1
  88. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +8 -6
  89. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +0 -13
  90. package/src/stories/Pages/Photos/Albums/Albums.jsx +3 -0
  91. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +63 -13
  92. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +66 -33
  93. package/src/stories/Preview/Preview.jsx +35 -0
  94. package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +132 -0
  95. package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +116 -0
  96. package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +132 -0
  97. package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +127 -0
  98. package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +124 -0
  99. package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +126 -0
  100. package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +113 -0
  101. package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +93 -0
  102. package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +122 -0
  103. package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +129 -0
  104. package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +129 -0
  105. package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +138 -0
  106. package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +129 -0
  107. package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +124 -0
  108. package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +125 -0
  109. package/src/stories/PreviewComponents/globalStyles.js +20 -0
  110. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +5 -2
  111. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -5
  112. package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.jsx +12 -6
  113. package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.jsx +2 -2
  114. package/src/stories/Reusable Components/Cards/globalCardStyles.js +2 -1
  115. package/src/stories/Reusable Components/Community/Community.jsx +70 -0
  116. package/src/stories/Reusable Components/Gallery/Gallery.jsx +15 -10
  117. package/src/stories/Reusable Components/ReactModal/ReactModal.jsx +3 -25
  118. package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +19 -7
  119. package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
  120. package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +9 -4
  121. package/src/stories/Reusable Components/Tabs/Tabs.jsx +67 -0
  122. package/src/stories/Sections/Sections.jsx +5 -2
  123. package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.jsx +57 -16
  124. package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +70 -1
  125. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +65 -8
  126. package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +14 -7
  127. package/src/stories/Widgets/SpacesListWidget/SpacesListWidget.jsx +78 -0
  128. package/src/stories/Widgets/UsersWidget/UsersWidget.jsx +20 -0
  129. package/src/stories/helpers/util.js +42 -2
  130. package/src/stories/store/communities.js +705 -0
  131. package/src/stories/store/store.js +33 -0
  132. package/src/stories/styling.json +92 -0
@@ -23,8 +23,22 @@ 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
+
28
42
  var _templateObject;
29
43
 
30
44
  var _excluded = ["album", "cardBackgroundColor", "songTitleColor"];
@@ -33,10 +47,15 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
33
47
 
34
48
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
49
 
50
+ // import styles from '../../styling.json'
36
51
  var listControls = [{
37
52
  icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineFileAdd, null),
38
53
  action: 'add',
39
54
  name: 'Add Album'
55
+ }, {
56
+ icon: /*#__PURE__*/_react.default.createElement(_bs.BsGear, null),
57
+ action: 'config',
58
+ name: 'Config'
40
59
  }];
41
60
  var cardControls = [{
42
61
  icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineDelete, null),
@@ -55,19 +74,61 @@ var ViewAlbum = function ViewAlbum(_ref) {
55
74
  showModal = _useState2[0],
56
75
  setShowModal = _useState2[1];
57
76
 
58
- var onIconClicked = function onIconClicked(action) {
59
- switch (action) {
60
- case 'add':
61
- setShowModal(true);
62
- break;
77
+ var _useState3 = (0, _react.useState)(false),
78
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
79
+ showConfigModal = _useState4[0],
80
+ setShowConfigModal = _useState4[1];
81
+
82
+ var _useState5 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(ViewAlbum, {
83
+ album: album
84
+ })),
85
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
86
+ centerContext = _useState6[0],
87
+ setCenterContext = _useState6[1];
88
+
89
+ var formChanged = function formChanged(values) {
90
+ console.log('context changed');
91
+ setCenterContext( /*#__PURE__*/_react.default.createElement(ViewAlbum, Object.assign({
92
+ album: album
93
+ }, values)));
94
+ };
63
95
 
64
- default:
65
- break;
96
+ var tabs = [{
97
+ title: 'New',
98
+ id: 'preview'
99
+ }, {
100
+ title: 'Context',
101
+ id: 'community'
102
+ }];
103
+ var sections = [{
104
+ title: 'Styles',
105
+ data: [{
106
+ title: 'Styling',
107
+ id: 'styling'
108
+ }]
109
+ }];
110
+
111
+ var onIconClicked = function onIconClicked(action) {
112
+ if (!props.preview) {
113
+ switch (action) {
114
+ case 'add':
115
+ setShowModal(true);
116
+ break;
117
+
118
+ case 'config':
119
+ setShowConfigModal(true);
120
+ break;
121
+
122
+ default:
123
+ break;
124
+ }
66
125
  }
67
126
  };
68
127
 
69
128
  var cardIconClicked = function cardIconClicked(action, index) {
70
- props.cardIconClicked(action, index);
129
+ if (!props.preview) {
130
+ props.cardIconClicked(action, index);
131
+ }
71
132
  };
72
133
 
73
134
  var onAddSong = function onAddSong(song) {
@@ -80,7 +141,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
80
141
  };
81
142
 
82
143
  return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
83
- listTitle: "My Album",
144
+ listTitle: props.title || "My Album",
84
145
  data: album,
85
146
  cardStyle: "card-style-7",
86
147
  type: "flat",
@@ -102,15 +163,76 @@ var ViewAlbum = function ViewAlbum(_ref) {
102
163
  }, /*#__PURE__*/_react.default.createElement(_AddSong.default, {
103
164
  saveHandler: onAddSong,
104
165
  cancelHandler: cancelHandler,
105
- saveBtnText: "Create",
106
- cancelBtnText: "Cancel"
107
- })));
166
+ saveBtnText: props.saveBtnText || "Create",
167
+ cancelBtnText: props.cancelBtnText || "Cancel"
168
+ })), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
169
+ modalIsOpen: showConfigModal,
170
+ closeModal: function closeModal() {
171
+ localStorage.removeItem('formStyles');
172
+ setShowConfigModal(false);
173
+ },
174
+ exitModalButton: function exitModalButton(e) {
175
+ return /*#__PURE__*/_react.default.createElement("div", null);
176
+ }
177
+ }, /*#__PURE__*/_react.default.createElement(_Sections.default, {
178
+ sections: sections,
179
+ backgroundColor: 'white',
180
+ sectionHeaderStyles: {
181
+ titleColor: 'white',
182
+ headerBackground: 'transparent'
183
+ },
184
+ customCardStyles: {
185
+ cardPadding: 6,
186
+ cardTitleFontSize: 15,
187
+ cardBackgroundColor: '#2c2c2c',
188
+ cardTitleColor: 'white',
189
+ onHoverBackgroundColor: '#555555',
190
+ controlsStyles: {
191
+ showOnHover: true
192
+ }
193
+ }
194
+ }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
195
+ title: "Music Album Config",
196
+ tabs: tabs,
197
+ id: "styling"
198
+ }, /*#__PURE__*/_react.default.createElement(_MusicAlbumPreview.default, {
199
+ componentProps: {
200
+ album: album,
201
+ title: props.title || "My Album",
202
+ preview: true
203
+ },
204
+ formChanged: formChanged,
205
+ id: "preview"
206
+ }), /*#__PURE__*/_react.default.createElement(_Community.default, {
207
+ right: /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
208
+ widgetType: "music player",
209
+ widgetProps: {
210
+ playlist: album,
211
+ currentSong: 1
212
+ }
213
+ }),
214
+ left: /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
215
+ widgetType: "spaces-list",
216
+ widgetProps: {
217
+ listTitle: 'Your Spaces',
218
+ type: 'sectioned',
219
+ spaces: _constatnts.SPACES,
220
+ cardStyle: 'card-style-3',
221
+ cardClicked: function cardClicked() {
222
+ return alert('clicked');
223
+ } // headerStyles: styles.widgetContainer.header,
224
+ // sectionHeaderStyles: styles.widgetContainer.body.sectionHeaderStyles,
225
+ // customCardStyles: styles.widgetContainer.body.customCardStyles,
226
+
227
+ }
228
+ }),
229
+ center: centerContext,
230
+ id: "community"
231
+ })))));
108
232
  };
109
233
 
110
234
  var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
111
235
 
112
- ViewAlbum.defaultProps = {
113
- cardBackgroundColor: 'white'
114
- };
236
+ ViewAlbum.defaultProps = {};
115
237
  var _default = ViewAlbum;
116
238
  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: '346px',
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
- data: _constatnts.SPACES,
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
- cardBackgroundColor: '#fff',
65
+ headerBackground: 'red',
57
66
  cardBorderColor: 'black'
58
67
  },
59
68
  customCardStyles: {
@@ -132,6 +132,7 @@ var Events = function Events(props) {
132
132
  }
133
133
  },
134
134
  customCardStyles: {
135
+ cardBackgroundColor: 'white',
135
136
  controlsStyles: {
136
137
  iconColor: '#FE1744'
137
138
  }
@@ -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/kickstarter.mp3',
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/kickstarter.mp3',
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/kickstarter.mp3',
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/kickstarter.mp3',
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: 'blue'
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: {