@mohamed-karawia/library 0.1.12 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/dist/stories/Chat/Chat.js +5 -26
  2. package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.js +1 -1
  3. package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +2 -12
  4. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +4 -19
  5. package/dist/stories/Events/Event/Event.js +5 -9
  6. package/dist/stories/Events/EventsList/EventsList.js +2 -19
  7. package/dist/stories/Library/Folders/Folders.js +3 -9
  8. package/dist/stories/Library/Notes/Notes.js +2 -19
  9. package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
  10. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +3 -18
  11. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +4 -18
  12. package/dist/stories/Navbar/Navbar.js +14 -44
  13. package/dist/stories/Pages/Chat/Chat.js +13 -1
  14. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +11 -1
  15. package/dist/stories/Pages/Enrollment/Forms/Forms.js +26 -1
  16. package/dist/stories/Pages/Events/Event/Event.js +9 -3
  17. package/dist/stories/Pages/Events/Events/Events.js +19 -1
  18. package/dist/stories/Pages/Library/Folders/Library.js +9 -0
  19. package/dist/stories/Pages/Library/Notes/Notes.js +20 -1
  20. package/dist/stories/Pages/Music/MusicAlbum/Music.js +14 -1
  21. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +58 -2
  22. package/dist/stories/Pages/Photos/Album/Album.js +7 -1
  23. package/dist/stories/Pages/Photos/Albums/Albums.js +40 -2
  24. package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -1
  25. package/dist/stories/Pages/Video/VideoAlbum/Video.js +14 -1
  26. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +0 -8
  27. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +3 -39
  28. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +7 -3
  29. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +7 -1
  30. package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.js +3 -2
  31. package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.js +27 -12
  32. package/dist/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
  33. package/dist/stories/Reusable Components/Gallery/Gallery.js +2 -2
  34. package/dist/stories/Reusable Components/ReusableList/ReusableList.js +8 -6
  35. package/dist/stories/Sections/Sections.js +61 -0
  36. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +5 -3
  37. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +0 -11
  38. package/dist/stories/helpers/util.js +14 -8
  39. package/package.json +2 -2
  40. package/src/stories/Chat/Chat.jsx +3 -25
  41. package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
  42. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +1 -10
  43. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +2 -16
  44. package/src/stories/Events/Event/Event.jsx +3 -6
  45. package/src/stories/Events/EventsList/EventsList.jsx +1 -17
  46. package/src/stories/Library/Folders/Folders.jsx +1 -7
  47. package/src/stories/Library/Notes/Notes.jsx +1 -17
  48. package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
  49. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +1 -15
  50. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +3 -14
  51. package/src/stories/Navbar/Navbar.jsx +50 -48
  52. package/src/stories/Pages/Chat/Chat.jsx +17 -4
  53. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +11 -1
  54. package/src/stories/Pages/Enrollment/Forms/Forms.jsx +27 -1
  55. package/src/stories/Pages/Events/Event/Event.jsx +8 -2
  56. package/src/stories/Pages/Events/Events/Events.jsx +18 -0
  57. package/src/stories/Pages/Library/Folders/Library.jsx +12 -1
  58. package/src/stories/Pages/Library/Notes/Notes.jsx +30 -11
  59. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +16 -2
  60. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +52 -23
  61. package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
  62. package/src/stories/Pages/Photos/Albums/Albums.jsx +27 -20
  63. package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +2 -1
  64. package/src/stories/Pages/Video/VideoAlbum/Video.jsx +13 -1
  65. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +0 -8
  66. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +1 -36
  67. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +8 -4
  68. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -0
  69. package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.jsx +5 -2
  70. package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.jsx +14 -8
  71. package/src/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
  72. package/src/stories/Reusable Components/Gallery/Gallery.jsx +2 -2
  73. package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +17 -6
  74. package/src/stories/Sections/Sections.jsx +53 -0
  75. package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +3 -1
  76. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +0 -9
  77. package/src/stories/helpers/util.js +11 -7
@@ -25,42 +25,21 @@ var _RichTextInput = _interopRequireDefault(require("../Common Inputs/RichTextIn
25
25
 
26
26
  var _templateObject;
27
27
 
28
- var _excluded = ["data", "title", "titleColor", "headerBackground", "headerPadding", "cardBackgroundColor", "cardTitleColor", "textColor", "users"];
28
+ var _excluded = ["data", "title", "cardBackgroundColor", "textColor", "users"];
29
29
 
30
30
  var Chat = function Chat(_ref) {
31
31
  var data = _ref.data,
32
32
  title = _ref.title,
33
- titleColor = _ref.titleColor,
34
- headerBackground = _ref.headerBackground,
35
- headerPadding = _ref.headerPadding,
36
33
  cardBackgroundColor = _ref.cardBackgroundColor,
37
- cardTitleColor = _ref.cardTitleColor,
38
34
  textColor = _ref.textColor,
39
35
  users = _ref.users,
40
36
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
41
- return /*#__PURE__*/_react.default.createElement(Container, {
42
- cardBackgroundColor: cardBackgroundColor
43
- }, /*#__PURE__*/_react.default.createElement(_ReusableHeader.default, {
44
- title: title,
45
- titleColor: titleColor,
46
- controls: _fakeData.controls,
47
- controlsStyles: {
48
- iconColor: 'white',
49
- maxIcons: 4,
50
- dropdownBackground: 'white'
51
- },
52
- headerBackground: headerBackground,
53
- padding: headerPadding
54
- }), /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
37
+ return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
38
+ listTitle: title,
55
39
  type: "flat",
56
40
  data: data,
57
- cardStyle: "card-style-8",
58
- customCardStyles: {
59
- cardBackgroundColor: cardBackgroundColor,
60
- cardTitleColor: cardTitleColor,
61
- cardDescriptionColor: textColor
62
- }
63
- }), /*#__PURE__*/_react.default.createElement(_RichTextInput.default, {
41
+ cardStyle: "card-style-8"
42
+ }, props)), /*#__PURE__*/_react.default.createElement(_RichTextInput.default, {
64
43
  users: users
65
44
  }));
66
45
  };
@@ -77,7 +77,7 @@ var AddQuestion = function AddQuestion(props) {
77
77
  }));
78
78
  };
79
79
 
80
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding: 10px;\n background-color: 'white';\n display: flex;\n flex-direction: column;\n \n &(:first-child){\n align-self: center;\n }\n"])));
80
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n padding: 10px;\n background-color: 'white';\n display: flex;\n flex-direction: column;\n \n &(:first-child){\n align-self: center;\n }\n"])));
81
81
 
82
82
  var _default = AddQuestion;
83
83
  exports.default = _default;
@@ -41,25 +41,15 @@ var DetailedForm = function DetailedForm(_ref) {
41
41
  title: userName,
42
42
  img: userImg,
43
43
  cardImageRadius: "100"
44
- })), /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
44
+ })), /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
45
45
  listTitle: "Form",
46
46
  data: questions,
47
47
  type: "flat",
48
48
  cardStyle: "card-style-3",
49
- headerStyles: {
50
- padding: 10,
51
- headerBackground: '#FE1744',
52
- titleColor: '#ffff',
53
- controlsStyles: {
54
- dropdownBackground: 'black',
55
- dropdownFontColor: 'white',
56
- dropdownItemHoverColor: '#FE1744'
57
- }
58
- },
59
49
  customCardStyles: {
60
50
  cardPadding: 10
61
51
  }
62
- }), /*#__PURE__*/_react.default.createElement(Buttons, null, /*#__PURE__*/_react.default.createElement(Accept, {
52
+ }, props)), /*#__PURE__*/_react.default.createElement(Buttons, null, /*#__PURE__*/_react.default.createElement(Accept, {
63
53
  onClick: onAccept
64
54
  }, "Accept"), /*#__PURE__*/_react.default.createElement(Decline, {
65
55
  onClick: onDecline
@@ -18,27 +18,12 @@ var _excluded = ["data"];
18
18
  var ViewForms = function ViewForms(_ref) {
19
19
  var data = _ref.data,
20
20
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
21
- return /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
22
- listTitle: "Submitted Form",
21
+ return /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
22
+ listTitle: "Submitted Forms",
23
23
  data: data,
24
24
  cardStyle: "card-style-9",
25
- type: "sectioned",
26
- sectionHeaderStyles: {
27
- cardTitleColor: 'white',
28
- cardBackgroundColor: 'black',
29
- cardPadding: 10
30
- },
31
- headerStyles: {
32
- padding: 10,
33
- headerBackground: '#FE1744',
34
- titleColor: '#ffff',
35
- controlsStyles: {
36
- dropdownBackground: 'black',
37
- dropdownFontColor: 'white',
38
- dropdownItemHoverColor: '#FE1744'
39
- }
40
- }
41
- });
25
+ type: "sectioned"
26
+ }, props));
42
27
  };
43
28
 
44
29
  ViewForms.defaultProps = {};
@@ -27,18 +27,14 @@ var Event = function Event(_ref) {
27
27
  titleSize = _ref.titleSize,
28
28
  dateColor = _ref.dateColor,
29
29
  dateSize = _ref.dateSize,
30
- headerBackground = _ref.headerBackground,
31
- headerTitleColor = _ref.headerTitleColor,
32
30
  discColor = _ref.discColor,
33
- discSize = _ref.discSize;
31
+ discSize = _ref.discSize,
32
+ headerStyles = _ref.headerStyles;
34
33
  return /*#__PURE__*/_react.default.createElement(Container, {
35
34
  backgroundColor: backgroundColor
36
- }, /*#__PURE__*/_react.default.createElement(_ReusableHeader.default, {
37
- title: "Event",
38
- padding: 10,
39
- headerBackground: headerBackground,
40
- titleColor: headerTitleColor
41
- }), /*#__PURE__*/_react.default.createElement(CoverWrapper, null, /*#__PURE__*/_react.default.createElement(Cover, {
35
+ }, /*#__PURE__*/_react.default.createElement(_ReusableHeader.default, Object.assign({
36
+ title: title
37
+ }, headerStyles)), /*#__PURE__*/_react.default.createElement(CoverWrapper, null, /*#__PURE__*/_react.default.createElement(Cover, {
42
38
  src: cover
43
39
  })), /*#__PURE__*/_react.default.createElement(Details, null, /*#__PURE__*/_react.default.createElement(Header, null, /*#__PURE__*/_react.default.createElement(Title, {
44
40
  size: titleSize,
@@ -85,34 +85,17 @@ var EventsList = function EventsList(_ref) {
85
85
  props.onAddEvent(event);
86
86
  };
87
87
 
88
- return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
88
+ return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
89
89
  listTitle: "My Events",
90
90
  data: events,
91
91
  type: "flat",
92
92
  cardStyle: "card-style-11",
93
- headerStyles: {
94
- padding: 10,
95
- headerBackground: '#FE1744',
96
- titleColor: '#ffff',
97
- controlsStyles: {
98
- iconSize: 25
99
- }
100
- },
101
- customCardStyles: {
102
- iconColor: iconColor,
103
- cardTitleFontSize: cardTitleFontSize,
104
- cardTitleColor: cardTitleColor,
105
- cardPadding: cardPadding,
106
- controlsStyles: {
107
- iconColor: '#FE1744'
108
- }
109
- },
110
93
  listControls: listControls,
111
94
  cardControls: cardControls,
112
95
  iconClicked: onIconClicked,
113
96
  cardClicked: cardClicked,
114
97
  cardIconClicked: cardIconClicked
115
- }), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
98
+ }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
116
99
  modalIsOpen: showModal,
117
100
  closeModal: function closeModal() {
118
101
  return setShowModal(false);
@@ -27,7 +27,7 @@ var _CreateFolder = _interopRequireDefault(require("../CreateFolder/CreateFolder
27
27
 
28
28
  var _templateObject;
29
29
 
30
- var _excluded = ["folders", "folderTitle", "columnsNumber", "columnGap", "rowGap", "cardClicked", "iconColor", "headerStyles"];
30
+ var _excluded = ["folders", "folderTitle", "columnsNumber", "columnGap", "rowGap", "cardClicked", "iconColor"];
31
31
 
32
32
  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
33
 
@@ -52,7 +52,6 @@ var Folders = function Folders(_ref) {
52
52
  rowGap = _ref.rowGap,
53
53
  cardClicked = _ref.cardClicked,
54
54
  iconColor = _ref.iconColor,
55
- headerStyles = _ref.headerStyles,
56
55
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
57
56
 
58
57
  var _useState = (0, _react.useState)(false),
@@ -89,7 +88,6 @@ var Folders = function Folders(_ref) {
89
88
  data: folders,
90
89
  type: "flat",
91
90
  cardStyle: "card-style-10",
92
- headerStyles: headerStyles,
93
91
  columnsNumber: columnsNumber,
94
92
  galleryColumnGap: columnGap,
95
93
  galleryRowGap: rowGap,
@@ -98,11 +96,7 @@ var Folders = function Folders(_ref) {
98
96
  cardClicked: cardClicked,
99
97
  cardIconClicked: cardIconClicked,
100
98
  cardControls: cardControls,
101
- rowsHeight: 140,
102
- customCardStyles: {
103
- cardPadding: 10,
104
- iconColor: iconColor
105
- }
99
+ rowsHeight: 140
106
100
  }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
107
101
  modalIsOpen: showModal,
108
102
  closeModal: function closeModal() {
@@ -119,7 +113,7 @@ var Folders = function Folders(_ref) {
119
113
  })));
120
114
  };
121
115
 
122
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n"])));
116
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: black;\n"])));
123
117
 
124
118
  Folders.defaultProps = {};
125
119
  var _default = Folders;
@@ -85,34 +85,17 @@ var Notes = function Notes(_ref) {
85
85
  setShowModal(false);
86
86
  };
87
87
 
88
- return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
88
+ return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
89
89
  listTitle: "My Notes",
90
90
  data: notes,
91
91
  type: "flat",
92
92
  cardStyle: "card-style-11",
93
- headerStyles: {
94
- padding: 10,
95
- headerBackground: '#FE1744',
96
- titleColor: '#ffff',
97
- controlsStyles: {
98
- iconSize: 25
99
- }
100
- },
101
- customCardStyles: {
102
- iconColor: iconColor,
103
- cardTitleFontSize: cardTitleFontSize,
104
- cardTitleColor: cardTitleColor,
105
- cardPadding: cardPadding,
106
- controlsStyles: {
107
- iconColor: '#FE1744'
108
- }
109
- },
110
93
  listControls: listControls,
111
94
  cardControls: cardControls,
112
95
  iconClicked: onIconClicked,
113
96
  cardClicked: cardClicked,
114
97
  cardIconClicked: cardIconClicked
115
- }), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
98
+ }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
116
99
  modalIsOpen: showModal,
117
100
  closeModal: function closeModal() {
118
101
  return setShowModal(false);
@@ -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
  });
@@ -79,17 +79,9 @@ var ViewAlbum = function ViewAlbum(_ref) {
79
79
  setShowModal(false);
80
80
  };
81
81
 
82
- return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, {
82
+ return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
83
83
  listTitle: "My Album",
84
84
  data: album,
85
- headerStyles: {
86
- padding: 10,
87
- headerBackground: 'black',
88
- titleColor: '#ffff',
89
- controlsStyles: {
90
- iconSize: 25
91
- }
92
- },
93
85
  cardStyle: "card-style-7",
94
86
  type: "flat",
95
87
  cardClicked: function cardClicked(index) {
@@ -98,15 +90,8 @@ var ViewAlbum = function ViewAlbum(_ref) {
98
90
  iconClicked: onIconClicked,
99
91
  listControls: listControls,
100
92
  cardControls: cardControls,
101
- cardIconClicked: cardIconClicked,
102
- customCardStyles: {
103
- cardBackgroundColor: cardBackgroundColor,
104
- cardTitleColor: songTitleColor,
105
- controlsStyles: {
106
- iconColor: 'black'
107
- }
108
- }
109
- }), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
93
+ cardIconClicked: cardIconClicked
94
+ }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
110
95
  modalIsOpen: showModal,
111
96
  closeModal: function closeModal() {
112
97
  return setShowModal(false);
@@ -27,7 +27,7 @@ var _ai = require("react-icons/ai");
27
27
 
28
28
  var _templateObject;
29
29
 
30
- var _excluded = ["albums", "cardBackgroundColor", "albumTitleColor", "descColor"];
30
+ var _excluded = ["albums", "albumTitleColor", "descColor"];
31
31
 
32
32
  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
33
 
@@ -46,13 +46,11 @@ var galleryControls = [{
46
46
 
47
47
  var ViewAlbums = function ViewAlbums(_ref) {
48
48
  var albums = _ref.albums,
49
- cardBackgroundColor = _ref.cardBackgroundColor,
50
49
  albumTitleColor = _ref.albumTitleColor,
51
50
  descColor = _ref.descColor,
52
51
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
53
52
  var cardStyles = {
54
53
  darkOnHover: true,
55
- cardBackgroundColor: cardBackgroundColor,
56
54
  cardTitleColor: albumTitleColor,
57
55
  descColor: descColor,
58
56
  controlsStyles: {
@@ -101,29 +99,17 @@ var ViewAlbums = function ViewAlbums(_ref) {
101
99
  };
102
100
 
103
101
  return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
104
- galleryTitle: "Music Albums",
102
+ galleryTitle: props.title,
105
103
  data: albums,
106
104
  type: "flat",
107
105
  cardStyle: "card-style-6",
108
- headerStyles: {
109
- padding: 10,
110
- headerBackground: 'black',
111
- titleColor: '#ffff',
112
- controlsStyles: {
113
- iconSize: 25
114
- }
115
- },
116
106
  columnsNumber: 3,
117
107
  galleryColumnGap: 10,
118
108
  galleryRowGap: 20,
119
109
  galleryControls: galleryControls,
120
110
  iconClicked: onHeaderIconClicked,
121
111
  cardControls: cardControls,
122
- cardClicked: function cardClicked() {
123
- return null;
124
- },
125
- cardIconClicked: cardIconClicked,
126
- customCardStyles: cardStyles
112
+ cardIconClicked: cardIconClicked
127
113
  }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
128
114
  modalIsOpen: showModal,
129
115
  closeModal: function closeModal() {
@@ -140,7 +126,7 @@ var ViewAlbums = function ViewAlbums(_ref) {
140
126
  })));
141
127
  };
142
128
 
143
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n"])));
129
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
144
130
 
145
131
  ViewAlbums.defaultProps = {
146
132
  cardBackgroundColor: 'white'
@@ -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
 
@@ -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,17 @@ 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
+ }
92
102
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
93
103
  };
94
104
 
@@ -83,6 +83,14 @@ var Forms = function Forms(props) {
83
83
  forms = _useState2[0],
84
84
  setForms = _useState2[1];
85
85
 
86
+ var cardClicked = function cardClicked(index, cardProps) {
87
+ console.log(cardProps);
88
+ };
89
+
90
+ var onAction = function onAction(action, index) {
91
+ console.log(action);
92
+ };
93
+
86
94
  return /*#__PURE__*/_react.default.createElement(_BaseMaterial.default, Object.assign({}, _styles.default.containerStyle, props), /*#__PURE__*/_react.default.createElement(_Navbar.default, null), /*#__PURE__*/_react.default.createElement(_Body.default, _styles.default.bodyStyle, /*#__PURE__*/_react.default.createElement(_Left.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
87
95
  widgetType: "logo",
88
96
  widgetProps: {
@@ -117,7 +125,24 @@ var Forms = function Forms(props) {
117
125
  discription: "Lorem ipsum dolor sit amet consectetur.",
118
126
  hideTitle: true
119
127
  }, /*#__PURE__*/_react.default.createElement(_ViewForms.default, {
120
- data: forms
128
+ data: forms,
129
+ cardClicked: cardClicked,
130
+ cardIconClicked: onAction,
131
+ headerStyles: {
132
+ padding: 10,
133
+ headerBackground: '#FE1744',
134
+ titleColor: '#ffff',
135
+ controlsStyles: {
136
+ dropdownBackground: 'black',
137
+ dropdownFontColor: 'white',
138
+ dropdownItemHoverColor: '#FE1744'
139
+ }
140
+ },
141
+ sectionHeaderStyles: {
142
+ cardTitleColor: 'white',
143
+ cardBackgroundColor: 'black',
144
+ cardPadding: 10
145
+ }
121
146
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
122
147
  };
123
148
 
@@ -77,11 +77,17 @@ var Event = function Event(props) {
77
77
  date: "15/11/1976 : 16/11/1976",
78
78
  disc: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia impedit fugiat reprehenderit adipisci eos atque ullam error quia amet nihil, exercitationem beatae distinctio eligendi neque, consequuntur odit commodi id porro.",
79
79
  backgroundColor: "black",
80
- headerBackground: "black",
81
- headerTitleColor: "white",
82
80
  titleColor: "white",
83
81
  discColor: "white",
84
- dateColor: "white"
82
+ dateColor: "white",
83
+ headerStyles: {
84
+ padding: 10,
85
+ headerBackground: 'black',
86
+ titleColor: '#ffff',
87
+ controlsStyles: {
88
+ iconSize: 25
89
+ }
90
+ }
85
91
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
86
92
  };
87
93
 
@@ -79,6 +79,10 @@ var Events = function Events(props) {
79
79
  setEvents((0, _util.deleteFromArrayByIndex)(events, index));
80
80
  };
81
81
 
82
+ var cardClicked = function cardClicked(index, cardProps) {
83
+ console.log(cardProps);
84
+ };
85
+
82
86
  return /*#__PURE__*/_react.default.createElement(_BaseMaterial.default, Object.assign({}, _styles.default.containerStyle, props), /*#__PURE__*/_react.default.createElement(_Navbar.default, null), /*#__PURE__*/_react.default.createElement(_Body.default, _styles.default.bodyStyle, /*#__PURE__*/_react.default.createElement(_Left.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
83
87
  widgetType: "logo",
84
88
  widgetProps: {
@@ -117,7 +121,21 @@ var Events = function Events(props) {
117
121
  iconColor: "#FE1744",
118
122
  cardTitleFontSize: 15,
119
123
  onAddEvent: onAddEvent,
120
- cardIconClicked: cardIconClicked
124
+ cardIconClicked: cardIconClicked,
125
+ cardClicked: cardClicked,
126
+ headerStyles: {
127
+ padding: 10,
128
+ headerBackground: '#FE1744',
129
+ titleColor: '#ffff',
130
+ controlsStyles: {
131
+ iconSize: 25
132
+ }
133
+ },
134
+ customCardStyles: {
135
+ controlsStyles: {
136
+ iconColor: '#FE1744'
137
+ }
138
+ }
121
139
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
122
140
  };
123
141