@mohamed-karawia/library 0.1.16 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/dist/stories/Chat/Chat.js +129 -14
  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/DetailedForm/DetailedForm.js +10 -12
  7. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +1 -1
  8. package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
  9. package/dist/stories/Events/Event/Event.js +117 -5
  10. package/dist/stories/Events/EventsList/EventsList.js +98 -19
  11. package/dist/stories/Forms/CreateSpace/CreateSpace.js +75 -0
  12. package/dist/stories/Library/Folders/Folders.js +82 -6
  13. package/dist/stories/Library/Notes/Notes.js +78 -4
  14. package/dist/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.js +54 -0
  15. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +138 -15
  16. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +67 -28
  17. package/dist/stories/Navbar/Navbar.js +1 -1
  18. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +8 -0
  19. package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
  20. package/dist/stories/Pages/Enrollment/Forms/Forms.js +3 -1
  21. package/dist/stories/Pages/Events/Event/Event.js +14 -5
  22. package/dist/stories/Pages/Events/Events/Events.js +1 -0
  23. package/dist/stories/Pages/Library/Folders/Library.js +2 -1
  24. package/dist/stories/Pages/Music/MusicAlbum/Music.js +8 -6
  25. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -15
  26. package/dist/stories/Pages/Photos/Albums/Albums.js +4 -1
  27. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +80 -19
  28. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +83 -25
  29. package/dist/stories/Preview/Preview.js +37 -0
  30. package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +193 -0
  31. package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +158 -0
  32. package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +192 -0
  33. package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +182 -0
  34. package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +177 -0
  35. package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +181 -0
  36. package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +153 -0
  37. package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +112 -0
  38. package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +173 -0
  39. package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +189 -0
  40. package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +189 -0
  41. package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +197 -0
  42. package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +189 -0
  43. package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +175 -0
  44. package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +172 -0
  45. package/dist/stories/PreviewComponents/globalStyles.js +26 -0
  46. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +4 -3
  47. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +8 -4
  48. package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.js +10 -4
  49. package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.js +4 -2
  50. package/dist/stories/Reusable Components/Cards/globalCardStyles.js +2 -2
  51. package/dist/stories/Reusable Components/Community/Community.js +76 -0
  52. package/dist/stories/Reusable Components/Gallery/Gallery.js +17 -18
  53. package/dist/stories/Reusable Components/ReactModal/ReactModal.js +11 -30
  54. package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +20 -3
  55. package/dist/stories/Reusable Components/ReusableList/ReusableList.js +9 -5
  56. package/dist/stories/Reusable Components/Tabs/Tabs.js +68 -0
  57. package/dist/stories/Sections/Sections.js +8 -2
  58. package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +77 -18
  59. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +96 -3
  60. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +78 -5
  61. package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +17 -11
  62. package/dist/stories/Widgets/SpacesListWidget/SpacesListWidget.js +115 -0
  63. package/dist/stories/Widgets/UsersWidget/UsersWidget.js +30 -0
  64. package/dist/stories/helpers/util.js +60 -3
  65. package/dist/stories/store/communities.js +943 -0
  66. package/dist/stories/store/store.js +44 -0
  67. package/package.json +5 -2
  68. package/src/stories/Chat/Chat.jsx +109 -13
  69. package/src/stories/Common Inputs/EditorComponent/EditorComponent.jsx +3 -3
  70. package/src/stories/Common Inputs/Picker/Picker.jsx +47 -0
  71. package/src/stories/Common Inputs/TextField/TextField.jsx +1 -1
  72. package/src/stories/Community/Community.jsx +110 -0
  73. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +7 -9
  74. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +3 -2
  75. package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
  76. package/src/stories/Events/Event/Event.jsx +98 -5
  77. package/src/stories/Events/EventsList/EventsList.jsx +101 -22
  78. package/src/stories/Forms/CreateSpace/CreateSpace.jsx +73 -0
  79. package/src/stories/Library/Folders/Folders.jsx +82 -6
  80. package/src/stories/Library/Notes/Notes.jsx +65 -5
  81. package/src/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.jsx +31 -0
  82. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +133 -14
  83. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +61 -32
  84. package/src/stories/Navbar/Navbar.jsx +1 -1
  85. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +10 -1
  86. package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
  87. package/src/stories/Pages/Enrollment/Forms/Forms.jsx +3 -1
  88. package/src/stories/Pages/Events/Event/Event.jsx +12 -4
  89. package/src/stories/Pages/Events/Events/Events.jsx +75 -74
  90. package/src/stories/Pages/Library/Folders/Library.jsx +2 -1
  91. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +8 -6
  92. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +0 -13
  93. package/src/stories/Pages/Photos/Albums/Albums.jsx +3 -0
  94. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +63 -13
  95. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +66 -33
  96. package/src/stories/Preview/Preview.jsx +35 -0
  97. package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +132 -0
  98. package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +116 -0
  99. package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +132 -0
  100. package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +127 -0
  101. package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +124 -0
  102. package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +126 -0
  103. package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +113 -0
  104. package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +93 -0
  105. package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +122 -0
  106. package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +129 -0
  107. package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +129 -0
  108. package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +138 -0
  109. package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +129 -0
  110. package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +124 -0
  111. package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +125 -0
  112. package/src/stories/PreviewComponents/globalStyles.js +20 -0
  113. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +5 -2
  114. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -5
  115. package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.jsx +12 -6
  116. package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.jsx +2 -2
  117. package/src/stories/Reusable Components/Cards/globalCardStyles.js +2 -1
  118. package/src/stories/Reusable Components/Community/Community.jsx +70 -0
  119. package/src/stories/Reusable Components/Gallery/Gallery.jsx +15 -10
  120. package/src/stories/Reusable Components/ReactModal/ReactModal.jsx +3 -25
  121. package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +19 -7
  122. package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
  123. package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +9 -4
  124. package/src/stories/Reusable Components/Tabs/Tabs.jsx +67 -0
  125. package/src/stories/Sections/Sections.jsx +5 -2
  126. package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.jsx +57 -16
  127. package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +70 -1
  128. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +65 -8
  129. package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +14 -7
  130. package/src/stories/Widgets/SpacesListWidget/SpacesListWidget.jsx +78 -0
  131. package/src/stories/Widgets/UsersWidget/UsersWidget.jsx +20 -0
  132. package/src/stories/helpers/util.js +42 -2
  133. package/src/stories/store/communities.js +705 -0
  134. package/src/stories/store/store.js +33 -0
  135. package/src/stories/styling.json +92 -0
@@ -0,0 +1,172 @@
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 _react = _interopRequireWildcard(require("react"));
13
+
14
+ var _Preview = _interopRequireDefault(require("../../Preview/Preview"));
15
+
16
+ var _ReusableForm = _interopRequireDefault(require("../../Reusable Components/ReusableForm/ReusableForm"));
17
+
18
+ var _globalStyles = require("../globalStyles");
19
+
20
+ var _Picker = _interopRequireDefault(require("../../Common Inputs/Picker/Picker"));
21
+
22
+ var _TextField = _interopRequireDefault(require("../../Common Inputs/TextField/TextField"));
23
+
24
+ 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); }
25
+
26
+ 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; }
27
+
28
+ var VideoPreview = function VideoPreview(props) {
29
+ var _useState = (0, _react.useState)({}),
30
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
31
+ videoStyles = _useState2[0],
32
+ setVideoStyles = _useState2[1];
33
+
34
+ var initialValues = {
35
+ headerStyles: {
36
+ headerBackground: '',
37
+ padding: 0,
38
+ titleColor: '',
39
+ titleFontSize: '',
40
+ titleFontWeight: ''
41
+ },
42
+ iconsColor: '',
43
+ backgroundColor: '',
44
+ detailsPadding: '',
45
+ titleFontSize: '',
46
+ titleColor: '',
47
+ discFontSize: '',
48
+ discColor: '',
49
+ dateFontSize: '',
50
+ dateColor: '',
51
+ commentBackgroundColor: '',
52
+ commentTitleColor: '',
53
+ commentTitleFontSize: ''
54
+ };
55
+ var sections = [{
56
+ title: "Header Styles",
57
+ body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
58
+ label: "Header Background",
59
+ name: "headerStyles.headerBackground"
60
+ }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
61
+ type: "number",
62
+ label: "Padding",
63
+ name: "headerStyles.padding"
64
+ }), /*#__PURE__*/_react.default.createElement(_Picker.default, {
65
+ label: "Title Color",
66
+ name: "headerStyles.titleColor"
67
+ }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
68
+ type: "number",
69
+ label: "Title Font Size",
70
+ name: "headerStyles.titleFontSize"
71
+ }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
72
+ type: "number",
73
+ label: "Title Font Weight",
74
+ name: "headerStyles.titleFontWeight"
75
+ })]
76
+ }, {
77
+ title: "Player Styles",
78
+ body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
79
+ label: "Icons Color",
80
+ name: "iconsColor"
81
+ })]
82
+ }, {
83
+ title: "Space Styles",
84
+ body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
85
+ label: "Background Color",
86
+ name: "backgroundColor"
87
+ }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
88
+ type: "number",
89
+ label: "Details Padding",
90
+ name: "detailsPadding"
91
+ }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
92
+ type: "number",
93
+ label: "Title Font Size",
94
+ name: "titleFontSize"
95
+ }), /*#__PURE__*/_react.default.createElement(_Picker.default, {
96
+ label: "Title Color",
97
+ name: "titleColor"
98
+ }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
99
+ type: "number",
100
+ label: "Discription Font Size",
101
+ name: "discFontSize"
102
+ }), /*#__PURE__*/_react.default.createElement(_Picker.default, {
103
+ label: "Discription Color",
104
+ name: "discColor"
105
+ }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
106
+ type: "number",
107
+ label: "Date Font Size",
108
+ name: "dateFontSize"
109
+ }), /*#__PURE__*/_react.default.createElement(_Picker.default, {
110
+ label: "Date Color",
111
+ name: "dateColor"
112
+ }), /*#__PURE__*/_react.default.createElement(_Picker.default, {
113
+ label: "Comment Background Color",
114
+ name: "commentBackgroundColor"
115
+ }), /*#__PURE__*/_react.default.createElement(_Picker.default, {
116
+ label: "Comment Title Color",
117
+ name: "commentTitleColor"
118
+ }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
119
+ type: "number",
120
+ label: "Comment title Font Size",
121
+ name: "commentTitleFontSize"
122
+ })]
123
+ }];
124
+
125
+ var handleChange = function handleChange(values) {
126
+ if (values) {
127
+ props.formChanged(values);
128
+ setVideoStyles(values);
129
+ localStorage.setItem('formStyles', JSON.stringify(values));
130
+ }
131
+ };
132
+
133
+ var submitHandler = function submitHandler(values) {
134
+ console.log(values);
135
+ };
136
+
137
+ var cancelHandler = function cancelHandler() {
138
+ console.log('Canceled');
139
+ };
140
+
141
+ return /*#__PURE__*/_react.default.createElement(_globalStyles.Container, null, /*#__PURE__*/_react.default.createElement(_globalStyles.Left, null, /*#__PURE__*/_react.default.createElement(_ReusableForm.default, {
142
+ formTitle: "Video Styles",
143
+ initialValues: initialValues,
144
+ sections: sections,
145
+ headerStyles: {
146
+ padding: 10,
147
+ headerBackground: 'black',
148
+ titleColor: '#ffff'
149
+ },
150
+ sectionHeaderStyles: {
151
+ padding: 6,
152
+ headerBackground: '#FE1744',
153
+ titleColor: '#ffff'
154
+ },
155
+ bodyPadding: 10,
156
+ saveBtnText: "Save",
157
+ cancelBtnText: "Cancel",
158
+ saveBtnHandle: submitHandler,
159
+ cancelHandler: cancelHandler,
160
+ handleChange: handleChange,
161
+ bodyRowGap: 20,
162
+ bodyColumnGap: 10
163
+ })), /*#__PURE__*/_react.default.createElement(_globalStyles.Right, null, /*#__PURE__*/_react.default.createElement(_Preview.default, {
164
+ type: 'Video-Space',
165
+ componentProps: props.componentProps,
166
+ stylingProps: videoStyles
167
+ })));
168
+ };
169
+
170
+ VideoPreview.defaultProps = {};
171
+ var _default = VideoPreview;
172
+ exports.default = _default;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.Right = exports.Left = exports.Container = void 0;
9
+
10
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
11
+
12
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
13
+
14
+ var _templateObject, _templateObject2, _templateObject3;
15
+
16
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n display: flex;\n background-color: 'transparent';\n align-items: flex-start;\n"])));
17
+
18
+ exports.Container = Container;
19
+
20
+ var Left = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex: 1;\n"])));
21
+
22
+ exports.Left = Left;
23
+
24
+ var Right = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n flex: 2;\n position: sticky;\n top: 0;\n bottom: 0;\n"])));
25
+
26
+ exports.Right = Right;
@@ -23,7 +23,7 @@ var _globalCardStyles = require("../globalCardStyles");
23
23
 
24
24
  var _ai = require("react-icons/ai");
25
25
 
26
- var _templateObject, _templateObject2, _templateObject3;
26
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
27
27
 
28
28
  var _excluded = ["title", "description", "img", "cardControls"];
29
29
 
@@ -59,7 +59,7 @@ var CardStyle10 = function CardStyle10(_ref) {
59
59
  onMouseLeave: function onMouseLeave(e) {
60
60
  return setShowIcons(false);
61
61
  }
62
- }, props), /*#__PURE__*/_react.default.createElement(SvgWrapper, props, /*#__PURE__*/_react.default.createElement(_ai.AiFillFolderOpen, props)), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, props, title), /*#__PURE__*/_react.default.createElement(_globalCardStyles.Description, props, description)), /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
62
+ }, props), /*#__PURE__*/_react.default.createElement(SvgWrapper, props, /*#__PURE__*/_react.default.createElement(_ai.AiFillFolderOpen, props)), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, props, title), /*#__PURE__*/_react.default.createElement(CardDescription, props, description)), /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
63
63
  controls: cardControls,
64
64
  show: showIcons,
65
65
  onIconClicked: iconCliked,
@@ -74,12 +74,13 @@ var CardStyle10 = function CardStyle10(_ref) {
74
74
  };
75
75
 
76
76
  var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-direction: column;\n row-gap: 10px;\n"])));
77
- var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n justify-content: space-between;\n\n"])));
77
+ var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n\n"])));
78
78
 
79
79
  var SvgWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\n & svg{\n width: 70px;\n height: 70px;\n fill: ", "\n }\n"])), function (props) {
80
80
  return props.iconColor;
81
81
  });
82
82
 
83
+ var CardDescription = (0, _styledComponents.default)(_globalCardStyles.Description)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n text-align: center;\n"])));
83
84
  CardStyle10.defaultProps = {};
84
85
  var _default = CardStyle10;
85
86
  exports.default = _default;
@@ -49,9 +49,11 @@ var CardStyle11 = function CardStyle11(_ref) {
49
49
  props.cardClicked();
50
50
  };
51
51
 
52
- return /*#__PURE__*/_react.default.createElement(Card, Object.assign({
52
+ return /*#__PURE__*/_react.default.createElement(Card, props, /*#__PURE__*/_react.default.createElement(SvgWrapper, Object.assign({
53
53
  onClick: cardClicked
54
- }, props), /*#__PURE__*/_react.default.createElement(SvgWrapper, props, /*#__PURE__*/_react.default.createElement(_bi.BiNotepad, null)), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, props, title), /*#__PURE__*/_react.default.createElement(Date, props, date)), props.cardControls && /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
54
+ }, props), /*#__PURE__*/_react.default.createElement(_bi.BiNotepad, null)), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, Object.assign({
55
+ onClick: cardClicked
56
+ }, props), title), /*#__PURE__*/_react.default.createElement(Date, props, date)), props.cardControls && /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
55
57
  controls: props.cardControls,
56
58
  show: showIcons,
57
59
  onIconClicked: iconClicked
@@ -60,11 +62,13 @@ var CardStyle11 = function CardStyle11(_ref) {
60
62
 
61
63
  var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n gap: 10px;\n"])));
62
64
 
63
- var Date = _styledComponents.default.h5(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: gray;\n font-weight: 300;\n"])));
65
+ var Date = _styledComponents.default.h5(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n font-weight: 300;\n"])), function (props) {
66
+ return props.dateColor || 'gray';
67
+ });
64
68
 
65
69
  var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n"])));
66
70
 
67
- var SvgWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\n svg{\n width: 50px;\n height: 50px;\n fill: ", "\n }\n"])), function (props) {
71
+ var SvgWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n svg{\n width: 50px;\n height: 50px;\n fill: ", "\n }\n"])), function (props) {
68
72
  return props.iconColor;
69
73
  });
70
74
 
@@ -61,13 +61,19 @@ var CardStyle6 = function CardStyle6(_ref) {
61
61
  })), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(Header, null, /*#__PURE__*/_react.default.createElement(CardTitle, props, title), /*#__PURE__*/_react.default.createElement(Count, props, props.count), /*#__PURE__*/_react.default.createElement(Date, null, date)), /*#__PURE__*/_react.default.createElement(Desc, props, description)), props.cardControls && /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
62
62
  controls: props.cardControls,
63
63
  show: showIcons,
64
- onIconClicked: iconCliked
64
+ onIconClicked: iconCliked,
65
+ showOnHover: true,
66
+ position: "center",
67
+ dropdownFontColor: "white",
68
+ iconBorderRadius: 100,
69
+ iconSize: 40,
70
+ iconsGap: 10
65
71
  }, props.controlsStyles)));
66
72
  };
67
73
 
68
- var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-direction: column;\n cursor: pointer;\n height: 100%;\n"])));
74
+ var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-direction: column;\n cursor: pointer;\n overflow-y: scroll;\n"])));
69
75
 
70
- var ImgWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 80%;\n border-radius: ", ";\n"])), function (props) {
76
+ var ImgWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n min-height: 90%;\n border-radius: ", ";\n"])), function (props) {
71
77
  return props.cardRadius + 'px ' + props.cardRadius + 'px ' + '0 0';
72
78
  });
73
79
 
@@ -86,7 +92,7 @@ var Count = _styledComponents.default.p(_templateObject6 || (_templateObject6 =
86
92
  var Date = _styledComponents.default.p(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n color: #5f5f5f;\n font-size: 12px;\n"])));
87
93
 
88
94
  var Desc = (0, _styledComponents.default)(_globalCardStyles.Description)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n padding: 2px 20px;\n color: ", ";\n"])), function (props) {
89
- return props.descColor || '#5f5f5f';
95
+ return props.cardDiscriptionColor;
90
96
  });
91
97
  CardStyle6.defaultProps = {};
92
98
  var _default = CardStyle6;
@@ -55,7 +55,7 @@ var CardStyle8 = function CardStyle8(_ref) {
55
55
  }
56
56
  }, props), /*#__PURE__*/_react.default.createElement(ImgWrapper, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Img, {
57
57
  src: img
58
- })), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(Header, null, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, props, username), /*#__PURE__*/_react.default.createElement(Date, null, date)), /*#__PURE__*/_react.default.createElement(_globalCardStyles.Description, props, text), media && /*#__PURE__*/_react.default.createElement(Media, null, media)), props.cardControls && /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
58
+ })), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(Header, null, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, props, username), /*#__PURE__*/_react.default.createElement(Date, props, date)), /*#__PURE__*/_react.default.createElement(_globalCardStyles.Description, props, text), media && /*#__PURE__*/_react.default.createElement(Media, null, media)), props.cardControls && /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
59
59
  controls: props.cardControls,
60
60
  show: showIcons,
61
61
  onIconClicked: iconCliked
@@ -74,7 +74,9 @@ var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_t
74
74
 
75
75
  var Header = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 20px;\n"])));
76
76
 
77
- var Date = _styledComponents.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 14px;\n color: gray;\n"])));
77
+ var Date = _styledComponents.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 14px;\n color: ", ";\n"])), function (props) {
78
+ return props.dateColor || 'gray';
79
+ });
78
80
 
79
81
  var Media = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n max-width: 300px;\n\n *{\n width: 100%;\n }\n"])));
80
82
 
@@ -32,12 +32,12 @@ var MainCard = _styledComponents.default.div(_templateObject || (_templateObject
32
32
  exports.MainCard = MainCard;
33
33
 
34
34
  var globalContent = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: ", "px;\n"])), function (props) {
35
- return props.contentGap;
35
+ return props.contentGap || 10;
36
36
  });
37
37
 
38
38
  exports.globalContent = globalContent;
39
39
 
40
- var Title = _styledComponents.default.h3(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n text-transform: capitalize;\n color: ", ";\n font-size: ", "px;\n font-weight: ", ";\n"])), function (props) {
40
+ var Title = _styledComponents.default.h3(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n text-transform: capitalize;\n color: ", ";\n font-size: ", "px;\n font-weight: ", ";\n cursor: pointer;\n"])), function (props) {
41
41
  return props.cardTitleColor || 'black';
42
42
  }, function (props) {
43
43
  return props.cardTitleFontSize;
@@ -0,0 +1,76 @@
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
13
+
14
+ var _react = _interopRequireDefault(require("react"));
15
+
16
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
17
+
18
+ var _Navbar = _interopRequireDefault(require("../../Navbar/Navbar"));
19
+
20
+ var _Body = _interopRequireDefault(require("../../Layout/Body/Body"));
21
+
22
+ var _Left = _interopRequireDefault(require("../../Layout/Left/Left"));
23
+
24
+ var _Center = _interopRequireDefault(require("../../Layout/Center/Center"));
25
+
26
+ var _Right = _interopRequireDefault(require("../../Layout/Right/Right"));
27
+
28
+ var _WidgetContainer = _interopRequireDefault(require("../../Reusable Components/WidgetContainer/WidgetContainer"));
29
+
30
+ var _styling = _interopRequireDefault(require("../../styling.json"));
31
+
32
+ var _templateObject;
33
+
34
+ var _excluded = ["context"];
35
+
36
+ var Community = function Community(_ref) {
37
+ var context = _ref.context,
38
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
39
+ var spaces = [{
40
+ title: 'Main List',
41
+ data: [{
42
+ title: 'Cargo Sprint',
43
+ path: 'cago'
44
+ }, {
45
+ title: 'Movies',
46
+ path: 'movies'
47
+ }]
48
+ }, {
49
+ title: 'Entertainment',
50
+ data: [{
51
+ title: 'Gaming',
52
+ path: 'games'
53
+ }, {
54
+ title: 'Music',
55
+ path: 'music'
56
+ }]
57
+ }];
58
+ return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Navbar.default, null), /*#__PURE__*/_react.default.createElement(_Body.default, null, /*#__PURE__*/_react.default.createElement(_Left.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
59
+ widgetType: "spaces-list",
60
+ widgetProps: {
61
+ listTitle: 'Your Spaces',
62
+ spaces: spaces,
63
+ cardClicked: function cardClicked() {
64
+ return alert('clicked');
65
+ },
66
+ headerStyles: _styling.default.widgetContainer.header,
67
+ sectionHeaderStyles: _styling.default.widgetContainer.body.sectionHeaderStyles,
68
+ customCardStyles: _styling.default.widgetContainer.body.customCardStyles
69
+ }
70
+ })), /*#__PURE__*/_react.default.createElement(_Center.default, null, props.center), /*#__PURE__*/_react.default.createElement(_Right.default, null, props.right)));
71
+ };
72
+
73
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: auto;\n display: flex;\n min-height: 100vh;\n flex-direction: column;\n"])));
74
+
75
+ var _default = Community;
76
+ exports.default = _default;
@@ -36,15 +36,21 @@ var Gallery = function Gallery(_ref) {
36
36
  var child;
37
37
 
38
38
  var iconCliked = function iconCliked(action) {
39
- props.iconClicked(action);
39
+ if (!props.preview) {
40
+ props.iconClicked(action);
41
+ }
40
42
  };
41
43
 
42
44
  var clicked = function clicked(index, cardProps) {
43
- props.cardClicked(index, cardProps);
45
+ if (!props.preview) {
46
+ props.cardClicked(index, cardProps);
47
+ }
44
48
  };
45
49
 
46
50
  var cardIconClicked = function cardIconClicked(action, index) {
47
- props.cardIconClicked(action, index);
51
+ if (!props.preview) {
52
+ props.cardIconClicked(action, index);
53
+ }
48
54
  };
49
55
 
50
56
  var mapOverCardsData = function mapOverCardsData(data) {
@@ -79,7 +85,7 @@ var GalleryContainer = _styledComponents.default.div(_templateObject || (_templa
79
85
  return props.galleryWidth + 'px' || '100%';
80
86
  });
81
87
 
82
- var GalleryBody = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px;\n display: ", ";\n flex-direction: column;\n grid-template-columns: ", ";\n grid-auto-rows: ", "px;\n /* grid-auto-rows: ", "; */\n column-gap: ", "px;\n row-gap: ", "px;\n"])), function (props) {
88
+ var GalleryBody = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px;\n display: ", ";\n flex-direction: column;\n grid-template-columns: ", ";\n grid-auto-rows: ", ";\n column-gap: ", "px;\n row-gap: ", "px;\n"])), function (props) {
83
89
  return props.galleryBodyPadding;
84
90
  }, function (_ref2) {
85
91
  var type = _ref2.type;
@@ -87,9 +93,7 @@ var GalleryBody = _styledComponents.default.div(_templateObject2 || (_templateOb
87
93
  }, function (props) {
88
94
  return 'repeat(' + props.columnsNumber + ', 1fr)';
89
95
  }, function (props) {
90
- return props.rowsHeight || 400;
91
- }, function (props) {
92
- return props.rowsHeight + 'px' || 'minmax(min-content, 400px)';
96
+ return props.rowsHeight ? "".concat(props.rowsHeight, "px") : '1fr';
93
97
  }, function (props) {
94
98
  return props.galleryColumnGap;
95
99
  }, function (props) {
@@ -105,16 +109,11 @@ var Section = _styledComponents.default.div(_templateObject3 || (_templateObject
105
109
  return props.galleryRowGap;
106
110
  });
107
111
 
108
- var SectionBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px;\n display: grid;\n grid-template-columns: ", ";\n column-gap: ", "px;\n row-gap: ", "px;\n"])), function (props) {
109
- return props.galleryBodyPadding;
110
- }, function (props) {
111
- return 'repeat(' + props.columnsNumber + ', 1fr)';
112
- }, function (props) {
113
- return props.galleryColumnGap;
114
- }, function (props) {
115
- return props.galleryRowGap;
116
- });
117
-
118
- Gallery.defaultProps = {};
112
+ var SectionBody = (0, _styledComponents.default)(GalleryBody)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: grid;\n"])));
113
+ Gallery.defaultProps = {
114
+ columnsNumber: 3,
115
+ galleryColumnGap: 10,
116
+ galleryRowGap: 20
117
+ };
119
118
  var _default = Gallery;
120
119
  exports.default = _default;
@@ -31,25 +31,14 @@ var ReactModalComponent = function ReactModalComponent(_ref) {
31
31
  closeModal = _ref.closeModal,
32
32
  children = _ref.children,
33
33
  exitModalButton = _ref.exitModalButton,
34
- onOverlayCloseClick = _ref.onOverlayCloseClick;
35
- return /*#__PURE__*/_react.default.createElement(ModalContainer, {
34
+ shouldCloseOnOverlayClick = _ref.shouldCloseOnOverlayClick;
35
+ return /*#__PURE__*/_react.default.createElement(_reactModal.default, {
36
36
  isOpen: modalIsOpen,
37
- onRequestClose: closeModal,
38
- ariaHideApp: false,
39
- contentLabel: title,
40
- shouldCloseOnOverlayClick: onOverlayCloseClick === 'true',
41
- borderColor: borderColor,
42
- boxShadow: boxShadow,
43
- backgroundColor: backgroundColor,
44
- padding: padding,
45
- height: height,
46
- width: width,
47
- color: color,
48
- borderRadius: borderRadius
49
- }, children, exitModalButton(closeModal));
37
+ onRequestClose: closeModal
38
+ }, children);
50
39
  };
51
40
 
52
- var ModalContainer = (0, _styledComponents.default)(_reactModal.default)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: 45%;\n left: 50%;\n right: auto;\n bottom: auto;\n transform: translate(-50%, -50%);\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n height: ", ";\n width: ", ";\n color: ", ";\n border-color: ", ";\n padding: ", "px;\n"])), function (_ref2) {
41
+ var ModalContainer = (0, _styledComponents.default)(_reactModal.default)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n color: ", ";\n border-color: ", ";\n padding: ", "px;\n"])), function (_ref2) {
53
42
  var backgroundColor = _ref2.backgroundColor;
54
43
  return backgroundColor;
55
44
  }, function (_ref3) {
@@ -59,25 +48,17 @@ var ModalContainer = (0, _styledComponents.default)(_reactModal.default)(_templa
59
48
  var boxShadow = _ref4.boxShadow;
60
49
  return boxShadow;
61
50
  }, function (_ref5) {
62
- var height = _ref5.height;
63
- return height;
64
- }, function (_ref6) {
65
- var width = _ref6.width;
66
- return width;
67
- }, function (_ref7) {
68
- var color = _ref7.color;
51
+ var color = _ref5.color;
69
52
  return color;
70
- }, function (_ref8) {
71
- var borderColor = _ref8.borderColor;
53
+ }, function (_ref6) {
54
+ var borderColor = _ref6.borderColor;
72
55
  return borderColor;
73
- }, function (_ref9) {
74
- var padding = _ref9.padding;
56
+ }, function (_ref7) {
57
+ var padding = _ref7.padding;
75
58
  return padding;
76
59
  });
77
60
  ReactModalComponent.defaultProps = {
78
- title: "",
79
- height: "80vh",
80
- width: "50vw"
61
+ title: ""
81
62
  };
82
63
  var _default = ReactModalComponent;
83
64
  exports.default = _default;
@@ -11,7 +11,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
11
11
 
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
13
13
 
14
- var _react = _interopRequireDefault(require("react"));
14
+ var _react = _interopRequireWildcard(require("react"));
15
15
 
16
16
  var _styledComponents = _interopRequireDefault(require("styled-components"));
17
17
 
@@ -25,12 +25,29 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
25
25
 
26
26
  var _excluded = ["formTitle", "sections", "initialValues"];
27
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
+
28
32
  var ReusableForm = function ReusableForm(_ref) {
29
33
  var formTitle = _ref.formTitle,
30
34
  sections = _ref.sections,
31
35
  initialValues = _ref.initialValues,
32
36
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
33
37
 
38
+ var AutoSubmitToken = function AutoSubmitToken() {
39
+ var _useFormikContext = (0, _formik.useFormikContext)(),
40
+ values = _useFormikContext.values,
41
+ submitForm = _useFormikContext.submitForm;
42
+
43
+ (0, _react.useEffect)(function () {
44
+ if (props.handleChange) {
45
+ props.handleChange(values);
46
+ }
47
+ }, [values, submitForm]);
48
+ return null;
49
+ };
50
+
34
51
  var submitHandler = function submitHandler(values) {
35
52
  props.saveHandler(values);
36
53
  };
@@ -69,11 +86,11 @@ var ReusableForm = function ReusableForm(_ref) {
69
86
  size: "md",
70
87
  variant: "secondary",
71
88
  buttonClicked: handleCancel
72
- }))));
89
+ })), /*#__PURE__*/_react.default.createElement(AutoSubmitToken, null)));
73
90
  };
74
91
 
75
92
  var CreateForm = (0, _styledComponents.default)(_formik.Form)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n\n"])), function (props) {
76
- return props.formBackgroundColor || 'white';
93
+ return props.formBackgroundColor || 'transparent';
77
94
  });
78
95
 
79
96
  var FormSection = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px;\n"])), function (props) {
@@ -17,8 +17,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
17
17
 
18
18
  var _util = require("../../helpers/util");
19
19
 
20
- var _CardStyle = _interopRequireDefault(require("../Cards/Card-style-3/CardStyle3"));
21
-
22
20
  var _ReusableHeader = _interopRequireDefault(require("../ReusableHeader/ReusableHeader"));
23
21
 
24
22
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
@@ -38,15 +36,21 @@ var ReusableList = function ReusableList(_ref) {
38
36
  var child;
39
37
 
40
38
  var iconCliked = function iconCliked(action) {
41
- props.iconClicked(action);
39
+ if (props.iconClicked) {
40
+ props.iconClicked(action);
41
+ }
42
42
  };
43
43
 
44
44
  var clicked = function clicked(index, cardProps) {
45
- props.cardClicked(index, cardProps);
45
+ if (props.cardClicked) {
46
+ props.cardClicked(index, cardProps);
47
+ }
46
48
  };
47
49
 
48
50
  var cardIconClicked = function cardIconClicked(action, index) {
49
- props.cardIconClicked(action, index);
51
+ if (props.cardIconClicked) {
52
+ props.cardIconClicked(action, index);
53
+ }
50
54
  };
51
55
 
52
56
  var mapOverCardsData = function mapOverCardsData(data) {