@mohamed-karawia/library 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) 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 +1 -16
  5. package/dist/stories/Library/Folders/Folders.js +1 -2
  6. package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
  7. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +1 -8
  8. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +3 -6
  9. package/dist/stories/Navbar/Navbar.js +14 -44
  10. package/dist/stories/Pages/Chat/Chat.js +13 -1
  11. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +11 -1
  12. package/dist/stories/Pages/Enrollment/Forms/Forms.js +21 -1
  13. package/dist/stories/Pages/Library/Folders/Library.js +5 -0
  14. package/dist/stories/Pages/Music/MusicAlbum/Music.js +5 -0
  15. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +43 -1
  16. package/dist/stories/Pages/Photos/Album/Album.js +7 -1
  17. package/dist/stories/Pages/Photos/Albums/Albums.js +34 -1
  18. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +0 -8
  19. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +3 -36
  20. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +7 -3
  21. package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.js +3 -2
  22. package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.js +26 -15
  23. package/dist/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
  24. package/dist/stories/Reusable Components/ReusableList/ReusableList.js +6 -4
  25. package/dist/stories/Sections/Sections.js +61 -0
  26. package/dist/stories/helpers/util.js +11 -5
  27. package/package.json +1 -1
  28. package/src/stories/Chat/Chat.jsx +3 -25
  29. package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
  30. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +1 -10
  31. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +0 -15
  32. package/src/stories/Library/Folders/Folders.jsx +1 -3
  33. package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
  34. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -7
  35. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +1 -4
  36. package/src/stories/Navbar/Navbar.jsx +50 -48
  37. package/src/stories/Pages/Chat/Chat.jsx +17 -4
  38. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +11 -1
  39. package/src/stories/Pages/Enrollment/Forms/Forms.jsx +20 -0
  40. package/src/stories/Pages/Library/Folders/Library.jsx +5 -0
  41. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +9 -3
  42. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +38 -24
  43. package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
  44. package/src/stories/Pages/Photos/Albums/Albums.jsx +22 -20
  45. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +0 -8
  46. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +1 -35
  47. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +8 -4
  48. package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.jsx +5 -2
  49. package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.jsx +12 -8
  50. package/src/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
  51. package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +15 -4
  52. package/src/stories/Sections/Sections.jsx +53 -0
  53. package/src/stories/helpers/util.js +9 -5
@@ -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
@@ -22,22 +22,7 @@ var ViewForms = function ViewForms(_ref) {
22
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
- }
25
+ type: "sectioned"
41
26
  }, props));
42
27
  };
43
28
 
@@ -83,7 +83,6 @@ var Folders = function Folders(_ref) {
83
83
  setShowModal(false);
84
84
  };
85
85
 
86
- console.log(props);
87
86
  return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
88
87
  galleryTitle: "Your Folders",
89
88
  data: folders,
@@ -114,7 +113,7 @@ var Folders = function Folders(_ref) {
114
113
  })));
115
114
  };
116
115
 
117
- 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"])));
118
117
 
119
118
  Folders.defaultProps = {};
120
119
  var _default = Folders;
@@ -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
  });
@@ -90,14 +90,7 @@ var ViewAlbum = function ViewAlbum(_ref) {
90
90
  iconClicked: onIconClicked,
91
91
  listControls: listControls,
92
92
  cardControls: cardControls,
93
- cardIconClicked: cardIconClicked,
94
- customCardStyles: {
95
- cardBackgroundColor: cardBackgroundColor,
96
- cardTitleColor: songTitleColor,
97
- controlsStyles: {
98
- iconColor: 'black'
99
- }
100
- }
93
+ cardIconClicked: cardIconClicked
101
94
  }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
102
95
  modalIsOpen: showModal,
103
96
  closeModal: function closeModal() {
@@ -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: {
@@ -111,8 +109,7 @@ var ViewAlbums = function ViewAlbums(_ref) {
111
109
  galleryControls: galleryControls,
112
110
  iconClicked: onHeaderIconClicked,
113
111
  cardControls: cardControls,
114
- cardIconClicked: cardIconClicked,
115
- customCardStyles: cardStyles
112
+ cardIconClicked: cardIconClicked
116
113
  }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
117
114
  modalIsOpen: showModal,
118
115
  closeModal: function closeModal() {
@@ -129,7 +126,7 @@ var ViewAlbums = function ViewAlbums(_ref) {
129
126
  })));
130
127
  };
131
128
 
132
- 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"])));
133
130
 
134
131
  ViewAlbums.defaultProps = {
135
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
 
@@ -87,6 +87,10 @@ var Forms = function Forms(props) {
87
87
  console.log(cardProps);
88
88
  };
89
89
 
90
+ var onAction = function onAction(action, index) {
91
+ console.log(action);
92
+ };
93
+
90
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, {
91
95
  widgetType: "logo",
92
96
  widgetProps: {
@@ -122,7 +126,23 @@ var Forms = function Forms(props) {
122
126
  hideTitle: true
123
127
  }, /*#__PURE__*/_react.default.createElement(_ViewForms.default, {
124
128
  data: forms,
125
- cardClicked: cardClicked
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
+ }
126
146
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
127
147
  };
128
148
 
@@ -82,6 +82,10 @@ var Library = function Library(props) {
82
82
  setFolders((0, _util.deleteFromArrayByIndex)(folders, index));
83
83
  };
84
84
 
85
+ var cardClicked = function cardClicked(index, cardProps) {
86
+ console.log(cardProps);
87
+ };
88
+
85
89
  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, {
86
90
  widgetType: "logo",
87
91
  widgetProps: {
@@ -121,6 +125,7 @@ var Library = function Library(props) {
121
125
  columnsNumber: 3,
122
126
  onAddFolder: onAddFolder,
123
127
  cardIconClicked: cardIconClicked,
128
+ cardClicked: cardClicked,
124
129
  headerStyles: {
125
130
  padding: 10,
126
131
  headerBackground: '#ff2d2d',
@@ -191,6 +191,11 @@ var Music = function Music(props) {
191
191
  controlsStyles: {
192
192
  iconSize: 25
193
193
  }
194
+ },
195
+ customCardStyles: {
196
+ controlsStyles: {
197
+ iconColor: 'blue'
198
+ }
194
199
  }
195
200
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
196
201
  widgetType: "music player",
@@ -115,6 +115,22 @@ var MusicAlbums = function MusicAlbums(props) {
115
115
  console.log(cardProps);
116
116
  };
117
117
 
118
+ var notes = [{
119
+ title: 'Study notes',
120
+ date: '15/11/2020'
121
+ }, {
122
+ title: 'Music notes',
123
+ date: '14/12/2020'
124
+ }, {
125
+ title: 'Workout notes',
126
+ date: '5/8/2021'
127
+ }, {
128
+ title: 'Gaming notes',
129
+ date: '14/4/2023'
130
+ }, {
131
+ title: 'Working notes',
132
+ date: '5/6/2021'
133
+ }];
118
134
  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, {
119
135
  widgetType: "logo",
120
136
  widgetProps: {
@@ -161,8 +177,34 @@ var MusicAlbums = function MusicAlbums(props) {
161
177
  iconSize: 25
162
178
  }
163
179
  },
180
+ customCardStyles: {
181
+ darkOnHover: true,
182
+ controlsStyles: {
183
+ showOnHover: true,
184
+ position: 'center',
185
+ dropdownFontColor: "white",
186
+ iconBorderRadius: 100,
187
+ iconSize: 40,
188
+ iconsGap: 10,
189
+ iconColor: 'white',
190
+ containerPadding: 20
191
+ }
192
+ },
164
193
  cardClicked: cardClicked
165
- }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
194
+ }))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
195
+ widgetType: "notes",
196
+ widgetProps: {
197
+ notes: notes,
198
+ headerStyles: {
199
+ padding: 10,
200
+ headerBackground: 'black',
201
+ titleColor: '#ffff',
202
+ controlsStyles: {
203
+ iconSize: 25
204
+ }
205
+ }
206
+ }
207
+ }))));
166
208
  };
167
209
 
168
210
  var _default = MusicAlbums;
@@ -156,7 +156,13 @@ var Album = function Album(props) {
156
156
  addPhoto: onAddPhoto,
157
157
  deletePhoto: onDeletePhoto,
158
158
  cardIconClicked: cardIconClicked,
159
- columnsNumber: 2
159
+ columnsNumber: 2,
160
+ headerStyles: {
161
+ padding: 10,
162
+ controlsStyles: {
163
+ iconSize: 25
164
+ }
165
+ }
160
166
  }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
161
167
  };
162
168
 
@@ -81,6 +81,26 @@ var Albums = function Albums(props) {
81
81
  albums = _useState2[0],
82
82
  setAlbums = _useState2[1];
83
83
 
84
+ var folders = [{
85
+ title: 'Folder one',
86
+ description: 'Discription for folder one'
87
+ }, {
88
+ title: 'Folder two',
89
+ description: 'Discription for folder two'
90
+ }, {
91
+ title: 'Folder three',
92
+ description: 'Discription for folder three'
93
+ }, {
94
+ title: 'Folder four',
95
+ description: 'Discription for folder four'
96
+ }, {
97
+ title: 'Folder five',
98
+ description: 'Discription for folder five'
99
+ }, {
100
+ title: 'Folder six',
101
+ description: 'Discription for folder six'
102
+ }];
103
+
84
104
  var cardIconClicked = function cardIconClicked(action, index) {
85
105
  switch (action) {
86
106
  case 'delete':
@@ -149,7 +169,20 @@ var Albums = function Albums(props) {
149
169
  onAddAlbum: onAddAlbum,
150
170
  columnsNumber: 2,
151
171
  cardClicked: cardClicked
152
- }))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
172
+ }))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
173
+ widgetType: "folders",
174
+ widgetProps: {
175
+ folders: folders,
176
+ columnsNumber: 3,
177
+ customCardStyles: {
178
+ cardPadding: 10,
179
+ iconColor: '#ff2d2d',
180
+ controlsStyles: {
181
+ iconColor: '#FE1744'
182
+ }
183
+ }
184
+ }
185
+ }))));
153
186
  };
154
187
 
155
188
  var _default = Albums;
@@ -161,14 +161,6 @@ var ViewAlbum = function ViewAlbum(_ref) {
161
161
  data: album,
162
162
  type: "flat",
163
163
  cardStyle: "card-style-6",
164
- headerStyles: {
165
- padding: 10,
166
- headerBackground: props.headerBackground,
167
- titleColor: props.titleColor,
168
- controlsStyles: {
169
- iconSize: 25
170
- }
171
- },
172
164
  columnsNumber: columnsNumber,
173
165
  galleryColumnGap: columnGap,
174
166
  galleryRowGap: rowGap,
@@ -27,7 +27,7 @@ var _ai = require("react-icons/ai");
27
27
 
28
28
  var _templateObject;
29
29
 
30
- var _excluded = ["albums", "cardBackgroundColor", "cardTitleColor", "cardTitleFontSize", "albumTitleColor", "countColor", "countFontSize", "columnsNumber", "columnGap", "rowGap"];
30
+ var _excluded = ["albums", "columnsNumber", "columnGap", "rowGap"];
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,34 +46,10 @@ var galleryControls = [{
46
46
 
47
47
  var ViewAlbums = function ViewAlbums(_ref) {
48
48
  var albums = _ref.albums,
49
- cardBackgroundColor = _ref.cardBackgroundColor,
50
- cardTitleColor = _ref.cardTitleColor,
51
- cardTitleFontSize = _ref.cardTitleFontSize,
52
- albumTitleColor = _ref.albumTitleColor,
53
- countColor = _ref.countColor,
54
- countFontSize = _ref.countFontSize,
55
49
  columnsNumber = _ref.columnsNumber,
56
50
  columnGap = _ref.columnGap,
57
51
  rowGap = _ref.rowGap,
58
52
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
59
- var cardStyles = {
60
- darkOnHover: true,
61
- cardBackgroundColor: cardBackgroundColor,
62
- cardTitleColor: cardTitleColor,
63
- cardTitleFontSize: cardTitleFontSize,
64
- countColor: countColor,
65
- countFontSize: countFontSize,
66
- controlsStyles: {
67
- showOnHover: true,
68
- position: 'center',
69
- dropdownFontColor: "white",
70
- iconBorderRadius: 100,
71
- iconSize: 40,
72
- iconsGap: 10,
73
- iconColor: 'white',
74
- containerPadding: 20
75
- }
76
- };
77
53
 
78
54
  var _useState = (0, _react.useState)(false),
79
55
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -109,22 +85,13 @@ var ViewAlbums = function ViewAlbums(_ref) {
109
85
  data: albums,
110
86
  type: "flat",
111
87
  cardStyle: "card-style-6",
112
- headerStyles: {
113
- padding: 10,
114
- headerBackground: props.headerBackground,
115
- titleColor: props.titleColor,
116
- controlsStyles: {
117
- iconSize: 25
118
- }
119
- },
120
88
  columnsNumber: columnsNumber,
121
89
  galleryColumnGap: columnGap,
122
90
  galleryRowGap: rowGap,
123
91
  galleryControls: galleryControls,
124
92
  iconClicked: onIconClicked,
125
93
  cardControls: cardControls,
126
- cardIconClicked: cardIconClicked,
127
- customCardStyles: cardStyles
94
+ cardIconClicked: cardIconClicked
128
95
  }, props)), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
129
96
  modalIsOpen: showModal,
130
97
  closeModal: function closeModal() {
@@ -139,7 +106,7 @@ var ViewAlbums = function ViewAlbums(_ref) {
139
106
  })));
140
107
  };
141
108
 
142
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n"])));
109
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
143
110
 
144
111
  ViewAlbums.defaultProps = {
145
112
  columnsNumber: 3,