@mohamed-karawia/library 0.1.15 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. package/dist/stories/Chat/Chat.js +127 -33
  2. package/dist/stories/Common Inputs/EditorComponent/EditorComponent.js +4 -2
  3. package/dist/stories/Common Inputs/Picker/Picker.js +61 -0
  4. package/dist/stories/Common Inputs/TextField/TextField.js +3 -1
  5. package/dist/stories/Community/Community.js +137 -0
  6. package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.js +1 -1
  7. package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +11 -23
  8. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +2 -17
  9. package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
  10. package/dist/stories/Events/Event/Event.js +117 -5
  11. package/dist/stories/Events/EventsList/EventsList.js +98 -19
  12. package/dist/stories/Forms/CreateSpace/CreateSpace.js +75 -0
  13. package/dist/stories/Library/Folders/Folders.js +82 -7
  14. package/dist/stories/Library/Notes/Notes.js +78 -4
  15. package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
  16. package/dist/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.js +54 -0
  17. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +139 -23
  18. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +70 -34
  19. package/dist/stories/Navbar/Navbar.js +15 -45
  20. package/dist/stories/Pages/Chat/Chat.js +13 -1
  21. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +19 -1
  22. package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
  23. package/dist/stories/Pages/Enrollment/Forms/Forms.js +24 -2
  24. package/dist/stories/Pages/Events/Event/Event.js +14 -5
  25. package/dist/stories/Pages/Events/Events/Events.js +1 -0
  26. package/dist/stories/Pages/Library/Folders/Library.js +7 -1
  27. package/dist/stories/Pages/Music/MusicAlbum/Music.js +12 -5
  28. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +34 -5
  29. package/dist/stories/Pages/Photos/Album/Album.js +7 -1
  30. package/dist/stories/Pages/Photos/Albums/Albums.js +38 -2
  31. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +80 -27
  32. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +85 -60
  33. package/dist/stories/Preview/Preview.js +37 -0
  34. package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +193 -0
  35. package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +158 -0
  36. package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +192 -0
  37. package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +182 -0
  38. package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +177 -0
  39. package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +181 -0
  40. package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +153 -0
  41. package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +112 -0
  42. package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +173 -0
  43. package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +189 -0
  44. package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +189 -0
  45. package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +197 -0
  46. package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +189 -0
  47. package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +175 -0
  48. package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +172 -0
  49. package/dist/stories/PreviewComponents/globalStyles.js +26 -0
  50. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +10 -5
  51. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +8 -4
  52. package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.js +3 -2
  53. package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.js +10 -4
  54. package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.js +4 -2
  55. package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.js +26 -15
  56. package/dist/stories/Reusable Components/Cards/globalCardStyles.js +3 -3
  57. package/dist/stories/Reusable Components/Community/Community.js +76 -0
  58. package/dist/stories/Reusable Components/Gallery/Gallery.js +17 -18
  59. package/dist/stories/Reusable Components/ReactModal/ReactModal.js +11 -30
  60. package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +20 -3
  61. package/dist/stories/Reusable Components/ReusableList/ReusableList.js +15 -9
  62. package/dist/stories/Reusable Components/Tabs/Tabs.js +68 -0
  63. package/dist/stories/Sections/Sections.js +67 -0
  64. package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +77 -18
  65. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +96 -3
  66. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +78 -5
  67. package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +17 -11
  68. package/dist/stories/Widgets/SpacesListWidget/SpacesListWidget.js +115 -0
  69. package/dist/stories/Widgets/UsersWidget/UsersWidget.js +30 -0
  70. package/dist/stories/helpers/util.js +70 -7
  71. package/dist/stories/store/communities.js +943 -0
  72. package/dist/stories/store/store.js +44 -0
  73. package/package.json +5 -2
  74. package/src/stories/Chat/Chat.jsx +109 -35
  75. package/src/stories/Common Inputs/EditorComponent/EditorComponent.jsx +3 -3
  76. package/src/stories/Common Inputs/Picker/Picker.jsx +47 -0
  77. package/src/stories/Common Inputs/TextField/TextField.jsx +1 -1
  78. package/src/stories/Community/Community.jsx +110 -0
  79. package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
  80. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +8 -19
  81. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +3 -17
  82. package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
  83. package/src/stories/Events/Event/Event.jsx +98 -5
  84. package/src/stories/Events/EventsList/EventsList.jsx +101 -22
  85. package/src/stories/Forms/CreateSpace/CreateSpace.jsx +73 -0
  86. package/src/stories/Library/Folders/Folders.jsx +82 -8
  87. package/src/stories/Library/Notes/Notes.jsx +65 -5
  88. package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
  89. package/src/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.jsx +31 -0
  90. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +133 -21
  91. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +62 -36
  92. package/src/stories/Navbar/Navbar.jsx +51 -49
  93. package/src/stories/Pages/Chat/Chat.jsx +17 -4
  94. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +20 -1
  95. package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
  96. package/src/stories/Pages/Enrollment/Forms/Forms.jsx +23 -1
  97. package/src/stories/Pages/Events/Event/Event.jsx +12 -4
  98. package/src/stories/Pages/Events/Events/Events.jsx +75 -74
  99. package/src/stories/Pages/Library/Folders/Library.jsx +7 -1
  100. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +16 -8
  101. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +28 -27
  102. package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
  103. package/src/stories/Pages/Photos/Albums/Albums.jsx +25 -20
  104. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +63 -21
  105. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +65 -66
  106. package/src/stories/Preview/Preview.jsx +35 -0
  107. package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +132 -0
  108. package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +116 -0
  109. package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +132 -0
  110. package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +127 -0
  111. package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +124 -0
  112. package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +126 -0
  113. package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +113 -0
  114. package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +93 -0
  115. package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +122 -0
  116. package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +129 -0
  117. package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +129 -0
  118. package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +138 -0
  119. package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +129 -0
  120. package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +124 -0
  121. package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +125 -0
  122. package/src/stories/PreviewComponents/globalStyles.js +20 -0
  123. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +13 -6
  124. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -5
  125. package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.jsx +5 -2
  126. package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.jsx +12 -6
  127. package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.jsx +2 -2
  128. package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.jsx +12 -8
  129. package/src/stories/Reusable Components/Cards/globalCardStyles.js +3 -2
  130. package/src/stories/Reusable Components/Community/Community.jsx +70 -0
  131. package/src/stories/Reusable Components/Gallery/Gallery.jsx +15 -10
  132. package/src/stories/Reusable Components/ReactModal/ReactModal.jsx +3 -25
  133. package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +19 -7
  134. package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
  135. package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +24 -8
  136. package/src/stories/Reusable Components/Tabs/Tabs.jsx +67 -0
  137. package/src/stories/Sections/Sections.jsx +56 -0
  138. package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.jsx +57 -16
  139. package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +70 -1
  140. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +65 -8
  141. package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +14 -7
  142. package/src/stories/Widgets/SpacesListWidget/SpacesListWidget.jsx +78 -0
  143. package/src/stories/Widgets/UsersWidget/UsersWidget.jsx +20 -0
  144. package/src/stories/helpers/util.js +50 -6
  145. package/src/stories/store/communities.js +705 -0
  146. package/src/stories/store/store.js +33 -0
  147. package/src/stories/styling.json +92 -0
@@ -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 ViewNote = function ViewNote() {
15
- var data = {
16
- blocks: [{
17
- type: "header",
18
- data: {
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
  });
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
11
+
12
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
17
+
18
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
19
+
20
+ var _NavbarPreview = _interopRequireDefault(require("../../PreviewComponents/NavbarPreview/NavbarPreview"));
21
+
22
+ var _Buttons = _interopRequireDefault(require("../../Buttons/Buttons/Buttons"));
23
+
24
+ var _templateObject;
25
+
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
+
30
+ var SectionedPreview = function SectionedPreview() {
31
+ var _useState = (0, _react.useState)(false),
32
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
33
+ showModal = _useState2[0],
34
+ setShowModal = _useState2[1];
35
+
36
+ return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Buttons.default, {
37
+ label: 'Open Configurator',
38
+ size: "md",
39
+ variant: "primary",
40
+ buttonClicked: function buttonClicked() {
41
+ setShowModal(true);
42
+ }
43
+ }), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
44
+ modalIsOpen: showModal,
45
+ closeModal: function closeModal() {
46
+ return setShowModal(false);
47
+ }
48
+ }, /*#__PURE__*/_react.default.createElement(_NavbarPreview.default, null)));
49
+ };
50
+
51
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n"])));
52
+
53
+ var _default = SectionedPreview;
54
+ exports.default = _default;
@@ -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 onIconClicked = function onIconClicked(action) {
59
- switch (action) {
60
- case 'add':
61
- setShowModal(true);
62
- break;
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
+ };
63
96
 
64
- default:
65
- break;
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
+ }];
111
+
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.cardIconClicked(action, index);
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",
@@ -90,14 +152,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
90
152
  iconClicked: onIconClicked,
91
153
  listControls: listControls,
92
154
  cardControls: cardControls,
93
- cardIconClicked: cardIconClicked,
94
- customCardStyles: {
95
- cardBackgroundColor: cardBackgroundColor,
96
- cardTitleColor: songTitleColor,
97
- controlsStyles: {
98
- iconColor: 'black'
99
- }
100
- }
155
+ cardIconClicked: cardIconClicked
101
156
  }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
102
157
  modalIsOpen: showModal,
103
158
  closeModal: function closeModal() {
@@ -109,15 +164,76 @@ var ViewAlbum = function ViewAlbum(_ref) {
109
164
  }, /*#__PURE__*/_react.default.createElement(_AddSong.default, {
110
165
  saveHandler: onAddSong,
111
166
  cancelHandler: cancelHandler,
112
- saveBtnText: "Create",
113
- cancelBtnText: "Cancel"
114
- })));
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
+ })))));
115
233
  };
116
234
 
117
235
  var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
118
236
 
119
- ViewAlbum.defaultProps = {
120
- cardBackgroundColor: 'white'
121
- };
237
+ ViewAlbum.defaultProps = {};
122
238
  var _default = ViewAlbum;
123
239
  exports.default = _default;
@@ -23,11 +23,19 @@ 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
- var _excluded = ["albums", "cardBackgroundColor", "albumTitleColor", "descColor"];
38
+ var _excluded = ["albums", "albumTitleColor", "descColor"];
31
39
 
32
40
  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
41
 
@@ -42,46 +50,58 @@ 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) {
48
60
  var albums = _ref.albums,
49
- cardBackgroundColor = _ref.cardBackgroundColor,
50
61
  albumTitleColor = _ref.albumTitleColor,
51
62
  descColor = _ref.descColor,
52
63
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
53
- var cardStyles = {
54
- darkOnHover: true,
55
- cardBackgroundColor: cardBackgroundColor,
56
- cardTitleColor: albumTitleColor,
57
- descColor: descColor,
58
- controlsStyles: {
59
- showOnHover: true,
60
- position: 'center',
61
- iconBackground: "#272727",
62
- dropdownBackground: "#272727",
63
- dropdownFontColor: "white",
64
- dropdownItemHoverColor: "#414141",
65
- iconBackgroundHover: "#414141",
66
- iconBorderRadius: 100,
67
- iconSize: 25,
68
- iconsGap: 10,
69
- iconColor: 'white',
70
- containerPadding: 20
71
- }
72
- };
73
64
 
74
65
  var _useState = (0, _react.useState)(false),
75
66
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
76
67
  showModal = _useState2[0],
77
68
  setShowModal = _useState2[1];
78
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
+
79
95
  var onHeaderIconClicked = function onHeaderIconClicked(action) {
80
96
  switch (action) {
81
97
  case 'add':
82
98
  setShowModal(true);
83
99
  break;
84
100
 
101
+ case 'config':
102
+ setShowConfigModal(true);
103
+ break;
104
+
85
105
  default:
86
106
  break;
87
107
  }
@@ -101,18 +121,14 @@ var ViewAlbums = function ViewAlbums(_ref) {
101
121
  };
102
122
 
103
123
  return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
104
- galleryTitle: props.title,
124
+ galleryTitle: props.title || 'Music Albums',
105
125
  data: albums,
106
126
  type: "flat",
107
127
  cardStyle: "card-style-6",
108
- columnsNumber: 3,
109
- galleryColumnGap: 10,
110
- galleryRowGap: 20,
111
128
  galleryControls: galleryControls,
112
129
  iconClicked: onHeaderIconClicked,
113
130
  cardControls: cardControls,
114
- cardIconClicked: cardIconClicked,
115
- customCardStyles: cardStyles
131
+ cardIconClicked: cardIconClicked
116
132
  }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
117
133
  modalIsOpen: showModal,
118
134
  closeModal: function closeModal() {
@@ -124,15 +140,35 @@ var ViewAlbums = function ViewAlbums(_ref) {
124
140
  }, /*#__PURE__*/_react.default.createElement(_CreateMusicAlbum.default, {
125
141
  saveHandler: onAddAlbum,
126
142
  cancelHandler: cancelHandler,
127
- saveBtnText: "Create",
128
- 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
+ }
129
167
  })));
130
168
  };
131
169
 
132
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n"])));
170
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
133
171
 
134
- ViewAlbums.defaultProps = {
135
- cardBackgroundColor: 'white'
136
- };
172
+ ViewAlbums.defaultProps = {};
137
173
  var _default = ViewAlbums;
138
174
  exports.default = _default;
@@ -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 _homeSvgrepoCom = _interopRequireDefault(require("../assets/home-svgrepo-com.svg"));
28
+ var _ai = require("react-icons/ai");
29
29
 
30
- var _compassSvgrepoCom = _interopRequireDefault(require("../assets/compass-svgrepo-com.svg"));
30
+ var _md = require("react-icons/md");
31
31
 
32
- var _addSvgrepoCom = _interopRequireDefault(require("../assets/add-svgrepo-com.svg"));
32
+ var _bi = require("react-icons/bi");
33
33
 
34
- var _basketSvgrepoCom = _interopRequireDefault(require("../assets/basket-svgrepo-com.svg"));
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(Icon, {
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(Icon, {
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(Icon, {
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(Icon, {
172
- src: _basketSvgrepoCom.default,
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(Icon, {
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
 
@@ -249,7 +219,7 @@ var NavBar = _styledComponents.default.div(_templateObject3 || (_templateObject3
249
219
  });
250
220
 
251
221
  var UniverseContainer = (0, _styledComponents.default)('div')({
252
- width: '346px',
222
+ width: '100%',
253
223
  height: '72px',
254
224
  display: 'flex',
255
225
  'align-items': 'center',
@@ -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 width: ", ";\n height: ", ";\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 background-color: ", ";\n"])), function (props) {
230
+ var IconContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 auto;\n \n \n display: flex;\n align-items: center;\n margin-left: 0px;\n margin-right: 4px;\n border-radius: 20px;\n flex-direction: row;\n justify-content: center;\n\n & svg {\n width: ", ";\n };\n height: ", ";\n fill: ", ";\n"])), function (props) {
261
231
  return props.size === 'sm' ? '30px' : props.size === 'md' ? '35px' : props.size === 'lg' ? '40px' : '30px';
262
232
  }, function (props) {
263
233
  return props.size === 'sm' ? '30px' : props.size === 'md' ? '35px' : props.size === 'lg' ? '40px' : '30px';
@@ -81,7 +81,19 @@ var Chat = function Chat(_ref) {
81
81
  hideTitle: true
82
82
  }, /*#__PURE__*/_react.default.createElement(_Chat.default, {
83
83
  data: data,
84
- users: users
84
+ users: users,
85
+ title: 'Chat',
86
+ headerStyles: {
87
+ padding: 10,
88
+ headerBackground: '#00ADC4',
89
+ titleColor: '#ffff',
90
+ controlsStyles: {
91
+ iconSize: 25
92
+ }
93
+ },
94
+ customCardStyles: {
95
+ cardTitleColor: '#00ADC4'
96
+ }
85
97
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
86
98
  };
87
99
 
@@ -88,7 +88,25 @@ var DetailedForm = function DetailedForm(props) {
88
88
  }, /*#__PURE__*/_react.default.createElement(_DetailedForm.default, {
89
89
  userName: "User Name",
90
90
  userImg: "https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png",
91
- questions: questions
91
+ questions: questions,
92
+ headerStyles: {
93
+ padding: 10,
94
+ headerBackground: '#FE1744',
95
+ titleColor: '#ffff',
96
+ controlsStyles: {
97
+ dropdownBackground: 'black',
98
+ dropdownFontColor: 'white',
99
+ dropdownItemHoverColor: '#FE1744'
100
+ }
101
+ },
102
+ userHeaderStyles: {
103
+ cardBackgroundColor: '#FE1744',
104
+ cardImageRadius: "100",
105
+ cardTitleColor: 'white'
106
+ },
107
+ customCardStyles: {
108
+ cardPadding: 10
109
+ }
92
110
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
93
111
  };
94
112
 
@@ -92,9 +92,15 @@ var FillForm = function FillForm(props) {
92
92
  discription: "Lorem ipsum dolor sit amet consectetur.",
93
93
  hideTitle: true
94
94
  }, /*#__PURE__*/_react.default.createElement(_FillForm.default, {
95
+ formTitle: "Community Form",
95
96
  sections: sections,
96
97
  saveBtnText: 'Submit',
97
- cancelBtnText: "Cancel"
98
+ cancelBtnText: "Cancel",
99
+ headerStyles: {
100
+ padding: 10,
101
+ headerBackground: 'black',
102
+ titleColor: '#ffff'
103
+ }
98
104
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
99
105
  };
100
106