@mohamed-karawia/library 0.1.22 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. package/dist/index.js +27 -27
  2. package/dist/stories/Community/Community.js +27 -29
  3. package/dist/stories/Forms/AddPhoto/AddPhoto.js +8 -7
  4. package/dist/stories/Forms/CreateEvent/CreateEvent.js +115 -0
  5. package/dist/stories/Forms/CreateFolder/CreateFolder.js +87 -0
  6. package/dist/stories/Forms/CreateSong/CreateSong.js +98 -0
  7. package/dist/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.js +38 -0
  8. package/dist/stories/Modals/AddPhotoModal/AddPhotoModal.js +40 -0
  9. package/dist/stories/Modals/AddSongModal/AddSongModal.js +41 -0
  10. package/dist/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.js +41 -0
  11. package/dist/stories/Modals/AddVideoModal/AddVideoModal.js +39 -0
  12. package/dist/stories/Modals/ChatConfigModal/ChatContifgModal.js +93 -0
  13. package/dist/stories/Modals/CreateEventModal/CreateEventModal.js +42 -0
  14. package/dist/stories/Modals/CreateFolderModal/CreateFolderModal.js +36 -0
  15. package/dist/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.js +41 -0
  16. package/dist/stories/Modals/CreateNoteModal/CreateNoteModal.js +42 -0
  17. package/dist/stories/Modals/EventConfigModal/EventConfigModal.js +99 -0
  18. package/dist/stories/Modals/EventsConfigModal/EventsConfigModal.js +87 -0
  19. package/dist/stories/Modals/FoldersConfigModal/FoldersConfigModal.js +87 -0
  20. package/dist/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.js +88 -0
  21. package/dist/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.js +87 -0
  22. package/dist/stories/Modals/NotesConfigModal/NotesConfigModal.js +87 -0
  23. package/dist/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.js +88 -0
  24. package/dist/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.js +88 -0
  25. package/dist/stories/Modals/ShowImgModal/ShowImgModal.js +62 -0
  26. package/dist/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.js +88 -0
  27. package/dist/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.js +89 -0
  28. package/dist/stories/Modals/VideoConfigModal/VideoConfigModal.js +99 -0
  29. package/dist/stories/Pages/Chat/Chat.js +1 -1
  30. package/dist/stories/Pages/Events/Event/Event.js +1 -1
  31. package/dist/stories/Pages/Events/Events/Events.js +1 -1
  32. package/dist/stories/Pages/Library/Folders/Library.js +2 -2
  33. package/dist/stories/Pages/Library/Notes/Notes.js +2 -2
  34. package/dist/stories/Pages/Music/MusicAlbum/Music.js +2 -2
  35. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -2
  36. package/dist/stories/Pages/Photos/Album/Album.js +2 -2
  37. package/dist/stories/Pages/Photos/Albums/Albums.js +2 -2
  38. package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -2
  39. package/dist/stories/Pages/Video/VideoAlbum/Video.js +2 -2
  40. package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +6 -4
  41. package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +6 -4
  42. package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +6 -4
  43. package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +6 -4
  44. package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +6 -4
  45. package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +7 -6
  46. package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +6 -4
  47. package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +6 -4
  48. package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +6 -4
  49. package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +6 -4
  50. package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +6 -4
  51. package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +6 -4
  52. package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +6 -4
  53. package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +6 -4
  54. package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +6 -4
  55. package/dist/stories/Reusable Components/Comments/Comments.js +58 -0
  56. package/dist/stories/Reusable Components/Sections/Sections.js +67 -0
  57. package/dist/stories/Spaces/Chat/Chat.js +103 -0
  58. package/dist/stories/Spaces/EventsList/EventsList.js +140 -0
  59. package/dist/stories/Spaces/NotesList/NotesList.js +144 -0
  60. package/dist/stories/Spaces/ViewDetailedPhoto/ViewDetailedPhoto.js +24 -0
  61. package/dist/stories/Spaces/ViewEvent/Event.js +146 -0
  62. package/dist/stories/Spaces/ViewFolders/ViewFolders.js +136 -0
  63. package/dist/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.js +136 -0
  64. package/dist/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.js +130 -0
  65. package/dist/stories/Spaces/ViewNote/ViewNote.js +27 -0
  66. package/dist/stories/Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.js +231 -0
  67. package/dist/stories/Spaces/ViewPhotoAlbums/ViewPhotoAlbums.js +131 -0
  68. package/dist/stories/Spaces/ViewVideo/ViewVideo.js +169 -0
  69. package/dist/stories/Spaces/ViewVideoAlbumList/ViewVideoAlbumList.js +157 -0
  70. package/dist/stories/Spaces/ViewVideoAlbums/ViewVideoAlbums.js +164 -0
  71. package/dist/stories/Widgets/VideoPlayer/VideoPlayer.js +235 -0
  72. package/dist/stories/helpers/util.js +24 -24
  73. package/dist/stories/store/actions/actions.js +16 -0
  74. package/dist/stories/store/community.js +941 -0
  75. package/dist/stories/store/store.js +9 -4
  76. package/package.json +1 -1
  77. package/src/index.js +16 -16
  78. package/src/stories/Community/Community.jsx +19 -19
  79. package/src/stories/Forms/AddPhoto/AddPhoto.jsx +72 -72
  80. package/src/stories/{Events → Forms}/CreateEvent/CreateEvent.jsx +5 -1
  81. package/src/stories/{Library → Forms}/CreateFolder/CreateFolder.jsx +0 -0
  82. package/src/stories/Forms/{AddSong/AddSong.jsx → CreateSong/CreateSong.jsx} +0 -0
  83. package/src/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.jsx +27 -0
  84. package/src/stories/Modals/AddPhotoModal/AddPhotoModal.jsx +29 -0
  85. package/src/stories/Modals/AddSongModal/AddSongModal.jsx +37 -0
  86. package/src/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.jsx +38 -0
  87. package/src/stories/Modals/AddVideoModal/AddVideoModal.jsx +35 -0
  88. package/src/stories/Modals/ChatConfigModal/ChatContifgModal.jsx +77 -0
  89. package/src/stories/Modals/CreateEventModal/CreateEventModal.jsx +30 -0
  90. package/src/stories/Modals/CreateFolderModal/CreateFolderModal.jsx +39 -0
  91. package/src/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.jsx +37 -0
  92. package/src/stories/Modals/CreateNoteModal/CreateNoteModal.jsx +43 -0
  93. package/src/stories/Modals/EventConfigModal/EventConfigModal.jsx +74 -0
  94. package/src/stories/Modals/EventsConfigModal/EventsConfigModal.jsx +67 -0
  95. package/src/stories/Modals/FoldersConfigModal/FoldersConfigModal.jsx +66 -0
  96. package/src/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.jsx +69 -0
  97. package/src/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.jsx +73 -0
  98. package/src/stories/Modals/NotesConfigModal/NotesConfigModal.jsx +65 -0
  99. package/src/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.jsx +71 -0
  100. package/src/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.jsx +69 -0
  101. package/src/stories/Modals/ShowImgModal/ShowImgModal.jsx +87 -0
  102. package/src/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.jsx +67 -0
  103. package/src/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.jsx +67 -0
  104. package/src/stories/Modals/VideoConfigModal/VideoConfigModal.jsx +78 -0
  105. package/src/stories/Pages/Chat/Chat.jsx +1 -1
  106. package/src/stories/Pages/Events/Event/Event.jsx +1 -1
  107. package/src/stories/Pages/Events/Events/Events.jsx +1 -1
  108. package/src/stories/Pages/Library/Folders/Library.jsx +1 -1
  109. package/src/stories/Pages/Library/Notes/Notes.jsx +1 -1
  110. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +1 -1
  111. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +1 -1
  112. package/src/stories/Pages/Photos/Album/Album.jsx +1 -1
  113. package/src/stories/Pages/Photos/Albums/Albums.jsx +1 -1
  114. package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +1 -1
  115. package/src/stories/Pages/Video/VideoAlbum/Video.jsx +1 -1
  116. package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +106 -104
  117. package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +6 -4
  118. package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +106 -104
  119. package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +7 -5
  120. package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +6 -4
  121. package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +13 -11
  122. package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +35 -33
  123. package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +17 -15
  124. package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +6 -4
  125. package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +105 -103
  126. package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +7 -5
  127. package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +9 -7
  128. package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +6 -4
  129. package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +6 -4
  130. package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +6 -4
  131. package/src/stories/{VideoAlbum → Reusable Components}/Comments/Comments.jsx +0 -0
  132. package/src/stories/{Sections/Sections.jsx → Reusable Components/Sections/Sections.jsx } +1 -1
  133. package/src/stories/Spaces/Chat/Chat.jsx +77 -0
  134. package/src/stories/Spaces/EventsList/EventsList.jsx +118 -0
  135. package/src/stories/{Library/Notes/Notes.jsx → Spaces/NotesList/NotesList.jsx} +20 -66
  136. package/src/stories/{Photo Album/DetailedPhoto/DetailedPhoto.jsx → Spaces/ViewDetailedPhoto/ViewDetailedPhoto.jsx} +1 -1
  137. package/src/stories/{Events/Event → Spaces/ViewEvent}/Event.jsx +10 -74
  138. package/src/stories/Spaces/ViewFolders/ViewFolders.jsx +122 -0
  139. package/src/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.jsx +118 -0
  140. package/src/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.jsx +108 -0
  141. package/src/stories/{Library → Spaces}/ViewNote/ViewNote.jsx +0 -0
  142. package/src/stories/{Photo Album/ViewAlbum/ViewAlbum.jsx → Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.jsx} +42 -137
  143. package/src/stories/{Photo Album/ViewAlbums/ViewAlbums.jsx → Spaces/ViewPhotoAlbums/ViewPhotoAlbums.jsx} +16 -55
  144. package/src/stories/{VideoAlbum/VideoSpace/VideoSpace.jsx → Spaces/ViewVideo/ViewVideo.jsx} +15 -48
  145. package/src/stories/{VideoAlbum/ViewAlbum/ViewAlbum.jsx → Spaces/ViewVideoAlbumList/ViewVideoAlbumList.jsx} +14 -57
  146. package/src/stories/{VideoAlbum/AlbumsGallery/AlbumsGallery.jsx → Spaces/ViewVideoAlbums/ViewVideoAlbums.jsx} +14 -52
  147. package/src/stories/{VideoAlbum → Widgets}/VideoPlayer/VideoPlayer.jsx +0 -0
  148. package/src/stories/helpers/util.js +13 -13
  149. package/src/stories/store/actions/actions.js +7 -0
  150. package/src/stories/store/{communities.js → community.js} +0 -0
  151. package/src/stories/store/store.js +3 -4
  152. package/src/stories/Chat/Chat.jsx +0 -154
  153. package/src/stories/Events/EventsList/EventsList.jsx +0 -187
  154. package/src/stories/Library/Folders/Folders.jsx +0 -196
  155. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -172
  156. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +0 -166
@@ -0,0 +1,40 @@
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
15
+
16
+ var _AddPhoto = _interopRequireDefault(require("../../Forms/AddPhoto/AddPhoto"));
17
+
18
+ var _excluded = ["showModal", "onAddPhoto", "closeModal"];
19
+
20
+ var AddPhotoModal = function AddPhotoModal(_ref) {
21
+ var showModal = _ref.showModal,
22
+ onAddPhoto = _ref.onAddPhoto,
23
+ closeModal = _ref.closeModal,
24
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
25
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
26
+ modalIsOpen: showModal,
27
+ closeModal: closeModal,
28
+ exitModalButton: function exitModalButton(e) {
29
+ return /*#__PURE__*/_react.default.createElement("div", null);
30
+ }
31
+ }, /*#__PURE__*/_react.default.createElement(_AddPhoto.default, {
32
+ saveHandler: onAddPhoto,
33
+ cancelHandler: closeModal,
34
+ saveBtnText: props.saveBtnText || 'Add',
35
+ cancelBtnText: props.cancelBtnText || 'Cancel'
36
+ }));
37
+ };
38
+
39
+ var _default = AddPhotoModal;
40
+ exports.default = _default;
@@ -0,0 +1,41 @@
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
15
+
16
+ var _CreateSong = _interopRequireDefault(require("../../Forms/CreateSong/CreateSong"));
17
+
18
+ var _excluded = ["showModal", "closeModal", "onAddSong"];
19
+
20
+ var AddSongModal = function AddSongModal(_ref) {
21
+ var showModal = _ref.showModal,
22
+ closeModal = _ref.closeModal,
23
+ onAddSong = _ref.onAddSong,
24
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
25
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
26
+ modalIsOpen: showModal,
27
+ closeModal: closeModal,
28
+ exitModalButton: function exitModalButton(e) {
29
+ return /*#__PURE__*/_react.default.createElement("div", null);
30
+ }
31
+ }, /*#__PURE__*/_react.default.createElement(_CreateSong.default, {
32
+ saveHandler: onAddSong,
33
+ cancelHandler: closeModal,
34
+ saveBtnText: props.saveBtnText || "Create",
35
+ cancelBtnText: props.cancelBtnText || "Cancel"
36
+ }));
37
+ };
38
+
39
+ AddSongModal.defaultProps = {};
40
+ var _default = AddSongModal;
41
+ exports.default = _default;
@@ -0,0 +1,41 @@
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
15
+
16
+ var _CreateVideoAlbum = _interopRequireDefault(require("../../Forms/CreateVideoAlbum/CreateVideoAlbum"));
17
+
18
+ var _excluded = ["showModal", "onAddAlbum", "closeModal"];
19
+
20
+ var AddVideoAlbumModal = function AddVideoAlbumModal(_ref) {
21
+ var showModal = _ref.showModal,
22
+ onAddAlbum = _ref.onAddAlbum,
23
+ closeModal = _ref.closeModal,
24
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
25
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
26
+ modalIsOpen: showModal,
27
+ closeModal: closeModal,
28
+ exitModalButton: function exitModalButton(e) {
29
+ return /*#__PURE__*/_react.default.createElement("div", null);
30
+ }
31
+ }, /*#__PURE__*/_react.default.createElement(_CreateVideoAlbum.default, {
32
+ saveHandler: onAddAlbum,
33
+ cancelHandler: closeModal,
34
+ saveBtnText: "Create",
35
+ cancelBtnText: "Cancel"
36
+ }));
37
+ };
38
+
39
+ AddVideoAlbumModal.defaultProps = {};
40
+ var _default = AddVideoAlbumModal;
41
+ exports.default = _default;
@@ -0,0 +1,39 @@
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
15
+
16
+ var _AddVideo = _interopRequireDefault(require("../../Forms/AddVideo/AddVideo"));
17
+
18
+ var _excluded = ["showModal", "onAddVideo", "closeModal"];
19
+
20
+ var AddVideoModal = function AddVideoModal(_ref) {
21
+ var showModal = _ref.showModal,
22
+ onAddVideo = _ref.onAddVideo,
23
+ closeModal = _ref.closeModal,
24
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
25
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
26
+ modalIsOpen: showModal,
27
+ closeModal: closeModal,
28
+ exitModalButton: function exitModalButton(e) {
29
+ return /*#__PURE__*/_react.default.createElement("div", null);
30
+ }
31
+ }, /*#__PURE__*/_react.default.createElement(_AddVideo.default, {
32
+ saveHandler: onAddVideo,
33
+ cancelHandler: closeModal
34
+ }));
35
+ };
36
+
37
+ AddVideoModal.defaultProps = {};
38
+ var _default = AddVideoModal;
39
+ exports.default = _default;
@@ -0,0 +1,93 @@
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 _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _Chat = _interopRequireDefault(require("../../Spaces/Chat/Chat"));
17
+
18
+ var _ChatPreview = _interopRequireDefault(require("../../PreviewComponents/ChatPreview/ChatPreview"));
19
+
20
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
21
+
22
+ var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
23
+
24
+ var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
25
+
26
+ var _excluded = ["showConfigModal", "cancelConfig", "data", "users", "community"];
27
+
28
+ 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); }
29
+
30
+ 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; }
31
+
32
+ var ChatContifgModal = function ChatContifgModal(_ref) {
33
+ var showConfigModal = _ref.showConfigModal,
34
+ cancelConfig = _ref.cancelConfig,
35
+ data = _ref.data,
36
+ users = _ref.users,
37
+ community = _ref.community,
38
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
39
+
40
+ var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_Chat.default, {
41
+ preview: true,
42
+ users: users,
43
+ data: data
44
+ })),
45
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
46
+ centerContext = _useState2[0],
47
+ setCenterContext = _useState2[1];
48
+
49
+ var formChanged = function formChanged(values) {
50
+ setCenterContext( /*#__PURE__*/_react.default.createElement(_Chat.default, Object.assign({
51
+ preview: true,
52
+ users: users,
53
+ data: data
54
+ }, values)));
55
+ };
56
+
57
+ var tabs = [{
58
+ title: "New",
59
+ id: "preview"
60
+ }, {
61
+ title: "Context",
62
+ id: "community"
63
+ }];
64
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
65
+ modalIsOpen: showConfigModal,
66
+ closeModal: cancelConfig,
67
+ exitModalButton: function exitModalButton(e) {
68
+ return /*#__PURE__*/_react.default.createElement("div", null);
69
+ },
70
+ preview: true
71
+ }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
72
+ title: "Chat Config",
73
+ tabs: tabs,
74
+ id: "styling"
75
+ }, /*#__PURE__*/_react.default.createElement(_ChatPreview.default, {
76
+ componentProps: {
77
+ data: data,
78
+ users: users,
79
+ title: props.title || "Chat",
80
+ preview: true
81
+ },
82
+ formChanged: formChanged,
83
+ id: "preview"
84
+ }), /*#__PURE__*/_react.default.createElement(_Community.default, {
85
+ center: centerContext,
86
+ community: community,
87
+ id: "community"
88
+ })));
89
+ };
90
+
91
+ ChatContifgModal.defaultProps = {};
92
+ var _default = ChatContifgModal;
93
+ exports.default = _default;
@@ -0,0 +1,42 @@
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
15
+
16
+ var _CreateEvent = _interopRequireDefault(require("../../Forms/CreateEvent/CreateEvent"));
17
+
18
+ var _excluded = ["showModal", "onAddFolder", "closeModal", "actions"];
19
+
20
+ var CreateEventModal = function CreateEventModal(_ref) {
21
+ var showModal = _ref.showModal,
22
+ onAddFolder = _ref.onAddFolder,
23
+ closeModal = _ref.closeModal,
24
+ actions = _ref.actions,
25
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
26
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
27
+ modalIsOpen: showModal,
28
+ closeModal: closeModal,
29
+ exitModalButton: function exitModalButton(e) {
30
+ return /*#__PURE__*/_react.default.createElement("div", null);
31
+ }
32
+ }, /*#__PURE__*/_react.default.createElement(_CreateEvent.default, {
33
+ saveBtnText: props.saveBtnText || 'Create',
34
+ cancelBtnText: props.cancelBtnText || "Cancel",
35
+ saveHandler: onAddFolder,
36
+ cancelHandler: closeModal,
37
+ actions: actions
38
+ }));
39
+ };
40
+
41
+ var _default = CreateEventModal;
42
+ exports.default = _default;
@@ -0,0 +1,36 @@
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 _react = _interopRequireDefault(require("react"));
11
+
12
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
13
+
14
+ var _CreateFolder = _interopRequireDefault(require("../../Forms/CreateFolder/CreateFolder"));
15
+
16
+ var CreateFolderModal = function CreateFolderModal(_ref) {
17
+ var showModal = _ref.showModal,
18
+ closeModal = _ref.closeModal,
19
+ onAddFolder = _ref.onAddFolder;
20
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
21
+ modalIsOpen: showModal,
22
+ closeModal: closeModal,
23
+ exitModalButton: function exitModalButton(e) {
24
+ return /*#__PURE__*/_react.default.createElement("div", null);
25
+ }
26
+ }, /*#__PURE__*/_react.default.createElement(_CreateFolder.default, {
27
+ saveBtnText: "Create",
28
+ cancelBtnText: "Cancel",
29
+ saveHandler: onAddFolder,
30
+ cancelHandler: closeModal
31
+ }));
32
+ };
33
+
34
+ CreateFolderModal.defaultProps = {};
35
+ var _default = CreateFolderModal;
36
+ exports.default = _default;
@@ -0,0 +1,41 @@
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
15
+
16
+ var _CreateMusicAlbum = _interopRequireDefault(require("../../Forms/CreateMusicAlbum/CreateMusicAlbum"));
17
+
18
+ var _excluded = ["showModal", "onAddAlbum", "closeModal"];
19
+
20
+ var CreateMusicAlbumModal = function CreateMusicAlbumModal(_ref) {
21
+ var showModal = _ref.showModal,
22
+ onAddAlbum = _ref.onAddAlbum,
23
+ closeModal = _ref.closeModal,
24
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
25
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
26
+ modalIsOpen: showModal,
27
+ closeModal: closeModal,
28
+ exitModalButton: function exitModalButton(e) {
29
+ return /*#__PURE__*/_react.default.createElement("div", null);
30
+ }
31
+ }, /*#__PURE__*/_react.default.createElement(_CreateMusicAlbum.default, {
32
+ saveHandler: onAddAlbum,
33
+ cancelHandler: closeModal,
34
+ saveBtnText: props.saveBtnText || "Create",
35
+ cancelBtnText: props.cancelBtnText || "Cancel"
36
+ }));
37
+ };
38
+
39
+ CreateMusicAlbumModal.defaultProps = {};
40
+ var _default = CreateMusicAlbumModal;
41
+ exports.default = _default;
@@ -0,0 +1,42 @@
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
15
+
16
+ var _CreateFolder = _interopRequireDefault(require("../../Forms/CreateFolder/CreateFolder"));
17
+
18
+ var _excluded = ["showModal", "closeModal", "onAddFolder", "cancelHandler"];
19
+
20
+ var CreateNoteModal = function CreateNoteModal(_ref) {
21
+ var showModal = _ref.showModal,
22
+ closeModal = _ref.closeModal,
23
+ onAddFolder = _ref.onAddFolder,
24
+ cancelHandler = _ref.cancelHandler,
25
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
26
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
27
+ modalIsOpen: showModal,
28
+ closeModal: closeModal,
29
+ exitModalButton: function exitModalButton(e) {
30
+ return /*#__PURE__*/_react.default.createElement("div", null);
31
+ }
32
+ }, /*#__PURE__*/_react.default.createElement(_CreateFolder.default, {
33
+ saveBtnText: props.saveBtnText || "Create",
34
+ cancelBtnText: props.cancelBtnText || "Cancel",
35
+ saveHandler: onAddFolder,
36
+ cancelHandler: cancelHandler
37
+ }));
38
+ };
39
+
40
+ CreateNoteModal.defaultProps = {};
41
+ var _default = CreateNoteModal;
42
+ exports.default = _default;
@@ -0,0 +1,99 @@
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 _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _Event = _interopRequireDefault(require("../../Spaces/ViewEvent/Event"));
17
+
18
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
19
+
20
+ var _EventPreview = _interopRequireDefault(require("../../PreviewComponents/EventPreview/EventPreview"));
21
+
22
+ var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
23
+
24
+ var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
25
+
26
+ var _excluded = ["showConfigModal", "cancelConfig", "cover", "title", "date", "disc", "community"];
27
+
28
+ 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); }
29
+
30
+ 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; }
31
+
32
+ var EventConfigModal = function EventConfigModal(_ref) {
33
+ var showConfigModal = _ref.showConfigModal,
34
+ cancelConfig = _ref.cancelConfig,
35
+ cover = _ref.cover,
36
+ title = _ref.title,
37
+ date = _ref.date,
38
+ disc = _ref.disc,
39
+ community = _ref.community,
40
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
41
+
42
+ var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_Event.default, {
43
+ preview: true,
44
+ title: title,
45
+ cover: cover,
46
+ date: date,
47
+ disc: disc
48
+ })),
49
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
50
+ centerContext = _useState2[0],
51
+ setCenterContext = _useState2[1];
52
+
53
+ var formChanged = function formChanged(values) {
54
+ setCenterContext( /*#__PURE__*/_react.default.createElement(_Event.default, Object.assign({
55
+ preview: true,
56
+ title: title,
57
+ cover: cover,
58
+ date: date,
59
+ disc: disc
60
+ }, values)));
61
+ };
62
+
63
+ var tabs = [{
64
+ title: 'New',
65
+ id: 'preview'
66
+ }, {
67
+ title: 'Context',
68
+ id: 'community'
69
+ }];
70
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
71
+ modalIsOpen: showConfigModal,
72
+ closeModal: cancelConfig,
73
+ exitModalButton: function exitModalButton(e) {
74
+ return /*#__PURE__*/_react.default.createElement("div", null);
75
+ }
76
+ }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
77
+ title: "Event Config",
78
+ tabs: tabs
79
+ }, /*#__PURE__*/_react.default.createElement(_EventPreview.default, {
80
+ componentProps: {
81
+ cover: cover,
82
+ title: title,
83
+ date: date,
84
+ disc: disc,
85
+ preview: true
86
+ },
87
+ formChanged: formChanged,
88
+ id: "preview"
89
+ }), /*#__PURE__*/_react.default.createElement(_Community.default, {
90
+ center: centerContext,
91
+ community: community,
92
+ preview: true,
93
+ id: "community"
94
+ })));
95
+ };
96
+
97
+ EventConfigModal.defaultProps = {};
98
+ var _default = EventConfigModal;
99
+ exports.default = _default;
@@ -0,0 +1,87 @@
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 _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/ReactModal/ReactModal"));
17
+
18
+ var _EventsPreview = _interopRequireDefault(require("../../PreviewComponents/EventsPreview/EventsPreview"));
19
+
20
+ var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
21
+
22
+ var _EventsList = _interopRequireDefault(require("../../Spaces/EventsList/EventsList"));
23
+
24
+ var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
25
+
26
+ var _excluded = ["events", "showConfigModal", "cancelConfig", "community"];
27
+
28
+ 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); }
29
+
30
+ 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; }
31
+
32
+ var EventsConfigModal = function EventsConfigModal(_ref) {
33
+ var events = _ref.events,
34
+ showConfigModal = _ref.showConfigModal,
35
+ cancelConfig = _ref.cancelConfig,
36
+ community = _ref.community,
37
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
38
+
39
+ var _useState = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(_EventsList.default, Object.assign({
40
+ preview: true,
41
+ events: events
42
+ }, props))),
43
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
44
+ centerContext = _useState2[0],
45
+ setCenterContext = _useState2[1];
46
+
47
+ var formChanged = function formChanged(values) {
48
+ setCenterContext( /*#__PURE__*/_react.default.createElement(_EventsList.default, Object.assign({
49
+ preview: true,
50
+ events: events
51
+ }, values)));
52
+ };
53
+
54
+ var tabs = [{
55
+ title: 'New',
56
+ id: 'preview'
57
+ }, {
58
+ title: 'Context',
59
+ id: 'community'
60
+ }];
61
+ return /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
62
+ modalIsOpen: showConfigModal,
63
+ closeModal: cancelConfig,
64
+ exitModalButton: function exitModalButton(e) {
65
+ return /*#__PURE__*/_react.default.createElement("div", null);
66
+ }
67
+ }, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
68
+ title: "Events Config",
69
+ tabs: tabs
70
+ }, /*#__PURE__*/_react.default.createElement(_EventsPreview.default, {
71
+ componentProps: {
72
+ events: events,
73
+ title: props.title || "My Events",
74
+ preview: true
75
+ },
76
+ formChanged: formChanged,
77
+ id: "preview"
78
+ }), /*#__PURE__*/_react.default.createElement(_Community.default, {
79
+ center: centerContext,
80
+ community: community,
81
+ id: "community"
82
+ })));
83
+ };
84
+
85
+ EventsConfigModal.defaultProps = {};
86
+ var _default = EventsConfigModal;
87
+ exports.default = _default;