@mohamed-karawia/library 0.1.15 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. package/dist/stories/Chat/Chat.js +127 -33
  2. package/dist/stories/Common Inputs/EditorComponent/EditorComponent.js +4 -2
  3. package/dist/stories/Common Inputs/Picker/Picker.js +61 -0
  4. package/dist/stories/Common Inputs/TextField/TextField.js +3 -1
  5. package/dist/stories/Community/Community.js +137 -0
  6. package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.js +1 -1
  7. package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +11 -23
  8. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +2 -17
  9. package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
  10. package/dist/stories/Events/Event/Event.js +117 -5
  11. package/dist/stories/Events/EventsList/EventsList.js +98 -19
  12. package/dist/stories/Forms/CreateSpace/CreateSpace.js +75 -0
  13. package/dist/stories/Library/Folders/Folders.js +82 -7
  14. package/dist/stories/Library/Notes/Notes.js +78 -4
  15. package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
  16. package/dist/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.js +54 -0
  17. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +139 -23
  18. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +70 -34
  19. package/dist/stories/Navbar/Navbar.js +15 -45
  20. package/dist/stories/Pages/Chat/Chat.js +13 -1
  21. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +19 -1
  22. package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
  23. package/dist/stories/Pages/Enrollment/Forms/Forms.js +24 -2
  24. package/dist/stories/Pages/Events/Event/Event.js +14 -5
  25. package/dist/stories/Pages/Events/Events/Events.js +1 -0
  26. package/dist/stories/Pages/Library/Folders/Library.js +7 -1
  27. package/dist/stories/Pages/Music/MusicAlbum/Music.js +12 -5
  28. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +34 -5
  29. package/dist/stories/Pages/Photos/Album/Album.js +7 -1
  30. package/dist/stories/Pages/Photos/Albums/Albums.js +38 -2
  31. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +80 -27
  32. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +85 -60
  33. package/dist/stories/Preview/Preview.js +37 -0
  34. package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +193 -0
  35. package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +158 -0
  36. package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +192 -0
  37. package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +182 -0
  38. package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +177 -0
  39. package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +181 -0
  40. package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +153 -0
  41. package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +112 -0
  42. package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +173 -0
  43. package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +189 -0
  44. package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +189 -0
  45. package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +197 -0
  46. package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +189 -0
  47. package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +175 -0
  48. package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +172 -0
  49. package/dist/stories/PreviewComponents/globalStyles.js +26 -0
  50. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +10 -5
  51. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +8 -4
  52. package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.js +3 -2
  53. package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.js +10 -4
  54. package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.js +4 -2
  55. package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.js +26 -15
  56. package/dist/stories/Reusable Components/Cards/globalCardStyles.js +3 -3
  57. package/dist/stories/Reusable Components/Community/Community.js +76 -0
  58. package/dist/stories/Reusable Components/Gallery/Gallery.js +17 -18
  59. package/dist/stories/Reusable Components/ReactModal/ReactModal.js +11 -30
  60. package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +20 -3
  61. package/dist/stories/Reusable Components/ReusableList/ReusableList.js +15 -9
  62. package/dist/stories/Reusable Components/Tabs/Tabs.js +68 -0
  63. package/dist/stories/Sections/Sections.js +67 -0
  64. package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +77 -18
  65. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +96 -3
  66. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +78 -5
  67. package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +17 -11
  68. package/dist/stories/Widgets/SpacesListWidget/SpacesListWidget.js +115 -0
  69. package/dist/stories/Widgets/UsersWidget/UsersWidget.js +30 -0
  70. package/dist/stories/helpers/util.js +70 -7
  71. package/dist/stories/store/communities.js +943 -0
  72. package/dist/stories/store/store.js +44 -0
  73. package/package.json +5 -2
  74. package/src/stories/Chat/Chat.jsx +109 -35
  75. package/src/stories/Common Inputs/EditorComponent/EditorComponent.jsx +3 -3
  76. package/src/stories/Common Inputs/Picker/Picker.jsx +47 -0
  77. package/src/stories/Common Inputs/TextField/TextField.jsx +1 -1
  78. package/src/stories/Community/Community.jsx +110 -0
  79. package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
  80. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +8 -19
  81. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +3 -17
  82. package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
  83. package/src/stories/Events/Event/Event.jsx +98 -5
  84. package/src/stories/Events/EventsList/EventsList.jsx +101 -22
  85. package/src/stories/Forms/CreateSpace/CreateSpace.jsx +73 -0
  86. package/src/stories/Library/Folders/Folders.jsx +82 -8
  87. package/src/stories/Library/Notes/Notes.jsx +65 -5
  88. package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
  89. package/src/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.jsx +31 -0
  90. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +133 -21
  91. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +62 -36
  92. package/src/stories/Navbar/Navbar.jsx +51 -49
  93. package/src/stories/Pages/Chat/Chat.jsx +17 -4
  94. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +20 -1
  95. package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
  96. package/src/stories/Pages/Enrollment/Forms/Forms.jsx +23 -1
  97. package/src/stories/Pages/Events/Event/Event.jsx +12 -4
  98. package/src/stories/Pages/Events/Events/Events.jsx +75 -74
  99. package/src/stories/Pages/Library/Folders/Library.jsx +7 -1
  100. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +16 -8
  101. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +28 -27
  102. package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
  103. package/src/stories/Pages/Photos/Albums/Albums.jsx +25 -20
  104. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +63 -21
  105. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +65 -66
  106. package/src/stories/Preview/Preview.jsx +35 -0
  107. package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +132 -0
  108. package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +116 -0
  109. package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +132 -0
  110. package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +127 -0
  111. package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +124 -0
  112. package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +126 -0
  113. package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +113 -0
  114. package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +93 -0
  115. package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +122 -0
  116. package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +129 -0
  117. package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +129 -0
  118. package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +138 -0
  119. package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +129 -0
  120. package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +124 -0
  121. package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +125 -0
  122. package/src/stories/PreviewComponents/globalStyles.js +20 -0
  123. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +13 -6
  124. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -5
  125. package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.jsx +5 -2
  126. package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.jsx +12 -6
  127. package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.jsx +2 -2
  128. package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.jsx +12 -8
  129. package/src/stories/Reusable Components/Cards/globalCardStyles.js +3 -2
  130. package/src/stories/Reusable Components/Community/Community.jsx +70 -0
  131. package/src/stories/Reusable Components/Gallery/Gallery.jsx +15 -10
  132. package/src/stories/Reusable Components/ReactModal/ReactModal.jsx +3 -25
  133. package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +19 -7
  134. package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
  135. package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +24 -8
  136. package/src/stories/Reusable Components/Tabs/Tabs.jsx +67 -0
  137. package/src/stories/Sections/Sections.jsx +56 -0
  138. package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.jsx +57 -16
  139. package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +70 -1
  140. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +65 -8
  141. package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +14 -7
  142. package/src/stories/Widgets/SpacesListWidget/SpacesListWidget.jsx +78 -0
  143. package/src/stories/Widgets/UsersWidget/UsersWidget.jsx +20 -0
  144. package/src/stories/helpers/util.js +50 -6
  145. package/src/stories/store/communities.js +705 -0
  146. package/src/stories/store/store.js +33 -0
  147. package/src/stories/styling.json +92 -0
@@ -0,0 +1,31 @@
1
+ import React, { useState } from 'react';
2
+ import styled from 'styled-components';
3
+ import Modal from '../../Reusable Components/ReactModal/ReactModal';
4
+
5
+ import NavbarPreview from '../../PreviewComponents/NavbarPreview/NavbarPreview';
6
+ import Button from '../../Buttons/Buttons/Buttons';
7
+
8
+ const SectionedPreview = () => {
9
+ const [showModal, setShowModal] = useState(false);
10
+ return (
11
+ <Container>
12
+ <Button
13
+ label={'Open Configurator'}
14
+ size="md"
15
+ variant="primary"
16
+ buttonClicked={() => { setShowModal(true) }}
17
+ />
18
+ <Modal
19
+ modalIsOpen={showModal}
20
+ closeModal={() => setShowModal(false)}>
21
+ <NavbarPreview />
22
+ </Modal>
23
+ </Container>
24
+ );
25
+ };
26
+
27
+ const Container = styled.div`
28
+
29
+ `
30
+
31
+ export default SectionedPreview;
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react';
1
+ import React, { useState, useEffect } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import styled from 'styled-components';
4
4
 
@@ -6,10 +6,19 @@ import List from '../../Reusable Components/ReusableList/ReusableList';
6
6
  import Modal from '../../Reusable Components/ReactModal/ReactModal';
7
7
 
8
8
  import { AiOutlineFileAdd, AiOutlineDelete } from "react-icons/ai";
9
+ import { BsGear } from "react-icons/bs";
9
10
  import AddSong from '../../Forms/AddSong/AddSong';
11
+ import Tabs from '../../Reusable Components/Tabs/Tabs';
12
+ import Sections from '../../Sections/Sections';
13
+ import MusicAlbumPreview from '../../PreviewComponents/MusicAlbumPreview/MusicAlbumPreview';
14
+ import WidgetContainer from "../../Reusable Components/WidgetContainer/WidgetContainer";
15
+ import Community from '../../Reusable Components/Community/Community';
16
+ import { SPACES } from '../../Pages/ViewWorld/constatnts';
17
+ import styles from '../../styling.json'
10
18
 
11
19
  const listControls = [
12
20
  { icon: (<AiOutlineFileAdd />), action: 'add', name: 'Add Album' },
21
+ { icon: (<BsGear />), action: 'config', name: 'Config' },
13
22
  ]
14
23
 
15
24
  const cardControls = [
@@ -21,21 +30,55 @@ const ViewAlbum = ({
21
30
  cardBackgroundColor,
22
31
  songTitleColor,
23
32
  ...props }) => {
24
- const [showModal, setShowModal] = useState(false)
33
+ const [showModal, setShowModal] = useState(false);
34
+ const [showConfigModal, setShowConfigModal] = useState(false);
35
+ const [centerContext, setCenterContext] = useState(<ViewAlbum album={album}/>)
25
36
 
26
- const onIconClicked = (action) => {
27
- switch (action) {
28
- case 'add':
29
- setShowModal(true)
30
- break;
37
+ const formChanged = (values) => {
38
+ console.log('context changed')
39
+ setCenterContext(<ViewAlbum album={album} {...values} />)
40
+ }
41
+
42
+
43
+ let tabs = [
44
+ {
45
+ title: 'New', id: 'preview'
46
+ },
47
+ {
48
+ title: 'Context', id: 'community'
49
+ }
50
+ ]
51
+ let sections = [
52
+ {
53
+ title: 'Styles',
54
+ data: [
55
+ {
56
+ title: 'Styling',
57
+ id: 'styling'
58
+ }
59
+ ]
60
+ }
61
+ ]
31
62
 
32
- default:
33
- break;
63
+ const onIconClicked = (action) => {
64
+ if (!props.preview) {
65
+ switch (action) {
66
+ case 'add':
67
+ setShowModal(true)
68
+ break;
69
+ case 'config':
70
+ setShowConfigModal(true)
71
+ break;
72
+ default:
73
+ break;
74
+ }
34
75
  }
35
76
  }
36
77
 
37
78
  const cardIconClicked = (action, index) => {
38
- props.cardIconClicked(action, index)
79
+ if (!props.preview) {
80
+ props.cardIconClicked(action, index)
81
+ }
39
82
  }
40
83
 
41
84
  const onAddSong = (song) => {
@@ -50,7 +93,7 @@ const ViewAlbum = ({
50
93
  return (
51
94
  <Container>
52
95
  <List
53
- listTitle="My Album"
96
+ listTitle={props.title || "My Album"}
54
97
  data={album}
55
98
  cardStyle="card-style-7"
56
99
  type="flat"
@@ -59,13 +102,6 @@ const ViewAlbum = ({
59
102
  listControls={listControls}
60
103
  cardControls={cardControls}
61
104
  cardIconClicked={cardIconClicked}
62
- customCardStyles={{
63
- cardBackgroundColor: cardBackgroundColor,
64
- cardTitleColor: songTitleColor,
65
- controlsStyles: {
66
- iconColor: 'black'
67
- }
68
- }}
69
105
  {...props}
70
106
  />
71
107
  <Modal
@@ -77,8 +113,78 @@ const ViewAlbum = ({
77
113
  <AddSong
78
114
  saveHandler={onAddSong}
79
115
  cancelHandler={cancelHandler}
80
- saveBtnText="Create"
81
- cancelBtnText="Cancel" />
116
+ saveBtnText={props.saveBtnText || "Create"}
117
+ cancelBtnText={props.cancelBtnText || "Cancel"} />
118
+ </Modal>
119
+ <Modal
120
+ modalIsOpen={showConfigModal}
121
+ closeModal={() => {
122
+ localStorage.removeItem('formStyles')
123
+ setShowConfigModal(false)
124
+ }}
125
+ exitModalButton={(e) => (
126
+ <div></div>
127
+ )}
128
+ >
129
+ <Sections
130
+ sections={sections}
131
+ backgroundColor={'white'}
132
+ sectionHeaderStyles={{
133
+ titleColor: 'white',
134
+ headerBackground: 'transparent'
135
+ }}
136
+ customCardStyles={{
137
+ cardPadding: 6,
138
+ cardTitleFontSize: 15,
139
+ cardBackgroundColor: '#2c2c2c',
140
+ cardTitleColor: 'white',
141
+ onHoverBackgroundColor: '#555555',
142
+ controlsStyles: {
143
+ showOnHover: true,
144
+ }
145
+ }}>
146
+ <Tabs
147
+ title="Music Album Config"
148
+ tabs={tabs}
149
+ id='styling'
150
+ >
151
+ <MusicAlbumPreview
152
+ componentProps={{ album, title: props.title || "My Album", preview: true }}
153
+ formChanged={formChanged}
154
+ id="preview"
155
+ />
156
+ <Community
157
+ right={(
158
+ <WidgetContainer
159
+ widgetType='music player'
160
+ widgetProps={{
161
+ playlist: album,
162
+ currentSong: 1,
163
+ }}
164
+ />
165
+ )}
166
+ left={
167
+ (
168
+ <WidgetContainer
169
+ widgetType='spaces-list'
170
+ widgetProps={{
171
+ listTitle: 'Your Spaces',
172
+ type: 'sectioned',
173
+ spaces: SPACES,
174
+ cardStyle: 'card-style-3',
175
+ cardClicked: () => alert('clicked'),
176
+ headerStyles: styles.widgetContainer.header,
177
+ sectionHeaderStyles: styles.widgetContainer.body.sectionHeaderStyles,
178
+ customCardStyles: styles.widgetContainer.body.customCardStyles,
179
+ }}
180
+ />
181
+ )
182
+ }
183
+ center={centerContext}
184
+ id="community" />
185
+ </Tabs>
186
+
187
+ </Sections>
82
188
  </Modal>
83
189
  </Container>
84
190
  )
@@ -89,7 +195,7 @@ const Container = styled.div`
89
195
  `
90
196
 
91
197
  ViewAlbum.defaultProps = {
92
- cardBackgroundColor: 'white',
198
+
93
199
  };
94
200
 
95
201
  ViewAlbum.propTypes = {
@@ -99,6 +205,12 @@ ViewAlbum.propTypes = {
99
205
  cardClicked: PropTypes.func,
100
206
  cardBackgroundColor: PropTypes.string,
101
207
  songTitleColor: PropTypes.string,
208
+ title: PropTypes.string,
209
+ saveBtnText: PropTypes.string,
210
+ cancelBtnText: PropTypes.string,
211
+ headerStyles: PropTypes.object,
212
+ customCardStyles: PropTypes.object,
213
+ preview: PropTypes.bool
102
214
  };
103
215
 
104
216
  export default ViewAlbum
@@ -5,11 +5,12 @@ import styled from 'styled-components';
5
5
  import Gallery from '../../Reusable Components/Gallery/Gallery';
6
6
  import Modal from '../../Reusable Components/ReactModal/ReactModal';
7
7
  import CreateAlbum from '../../Forms/CreateMusicAlbum/CreateMusicAlbum';
8
+ import Tabs from '../../Reusable Components/Tabs/Tabs';
9
+ import Sections from '../../Sections/Sections';
10
+ import MusicAlbumsPreview from '../../PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview';
8
11
 
9
12
  import { AiOutlineFileAdd, AiFillDelete } from "react-icons/ai";
10
-
11
-
12
-
13
+ import { BsGear } from "react-icons/bs";
13
14
 
14
15
  const cardControls = [
15
16
  { icon: (<AiFillDelete />), action: 'delete', name: 'Delete album' },
@@ -17,43 +18,49 @@ const cardControls = [
17
18
 
18
19
  const galleryControls = [
19
20
  { icon: (<AiOutlineFileAdd />), action: 'add', name: 'Add Album' },
21
+ { icon: (<BsGear />), action: 'config', name: 'Config' },
20
22
  ]
21
23
 
22
24
  const ViewAlbums = ({
23
25
  albums,
24
- cardBackgroundColor,
25
26
  albumTitleColor,
26
27
  descColor,
27
28
  ...props
28
29
  }) => {
29
- const cardStyles = {
30
- darkOnHover: true,
31
- cardBackgroundColor: cardBackgroundColor,
32
- cardTitleColor: albumTitleColor,
33
- descColor,
34
- controlsStyles: {
35
- showOnHover: true,
36
- position: 'center',
37
- iconBackground: "#272727",
38
- dropdownBackground: "#272727",
39
- dropdownFontColor: "white",
40
- dropdownItemHoverColor: "#414141",
41
- iconBackgroundHover: "#414141",
42
- iconBorderRadius: 100,
43
- iconSize: 25,
44
- iconsGap: 10,
45
- iconColor: 'white',
46
- containerPadding: 20
47
- }
48
- }
49
30
 
50
31
  const [showModal, setShowModal] = useState(false);
32
+ const [showConfigModal, setShowConfigModal] = useState(false);
33
+
34
+ const tabs = [
35
+ {
36
+ title: 'New', component: (<MusicAlbumsPreview
37
+ componentProps={{ albums, title: props.title || 'Music Albums' }}
38
+ />)
39
+ }
40
+ ]
41
+
42
+ const sections = [
43
+ {
44
+ title: 'Styles',
45
+ data: [
46
+ {
47
+ title: 'Styling', component: (<Tabs
48
+ title="Music Albums Config"
49
+ tabs={tabs}
50
+ />)
51
+ }
52
+ ]
53
+ }
54
+ ]
51
55
 
52
56
  const onHeaderIconClicked = (action) => {
53
57
  switch (action) {
54
58
  case 'add':
55
59
  setShowModal(true)
56
60
  break;
61
+ case 'config':
62
+ setShowConfigModal(true)
63
+ break;
57
64
  default:
58
65
  break;
59
66
  }
@@ -76,18 +83,14 @@ const ViewAlbums = ({
76
83
  return (
77
84
  <Container>
78
85
  <Gallery
79
- galleryTitle={props.title}
86
+ galleryTitle={props.title || 'Music Albums'}
80
87
  data={albums}
81
88
  type="flat"
82
89
  cardStyle="card-style-6"
83
- columnsNumber={3}
84
- galleryColumnGap={10}
85
- galleryRowGap={20}
86
90
  galleryControls={galleryControls}
87
91
  iconClicked={onHeaderIconClicked}
88
92
  cardControls={cardControls}
89
93
  cardIconClicked={cardIconClicked}
90
- customCardStyles={cardStyles}
91
94
  {...props}
92
95
  />
93
96
  <Modal
@@ -99,19 +102,39 @@ const ViewAlbums = ({
99
102
  <CreateAlbum
100
103
  saveHandler={onAddAlbum}
101
104
  cancelHandler={cancelHandler}
102
- saveBtnText="Create"
103
- cancelBtnText="Cancel" />
105
+ saveBtnText={props.saveBtnText || "Create"}
106
+ cancelBtnText={props.cancelBtnText || "Cancel"} />
107
+ </Modal>
108
+ <Modal
109
+ modalIsOpen={showConfigModal}
110
+ closeModal={() => setShowConfigModal(false)}
111
+ exitModalButton={(e) => (
112
+ <div></div>
113
+ )}
114
+ >
115
+ <Sections
116
+ sections={sections}
117
+ backgroundColor={'white'}
118
+ sectionHeaderStyles={{
119
+ titleColor: 'white',
120
+ headerBackground: 'transparent'
121
+ }}
122
+ customCardStyles={{
123
+ cardPadding: 6,
124
+ cardTitleFontSize: 15,
125
+ cardBackgroundColor: '#2c2c2c',
126
+ cardTitleColor: 'white',
127
+ onHoverBackgroundColor: '#555555',
128
+ }} />
104
129
  </Modal>
105
130
  </Container>
106
131
  )
107
132
  }
108
133
  const Container = styled.div`
109
-
134
+ width: 100%;
110
135
  `
111
136
 
112
- ViewAlbums.defaultProps = {
113
- cardBackgroundColor: 'white'
114
- };
137
+ ViewAlbums.defaultProps = {};
115
138
 
116
139
  ViewAlbums.propTypes = {
117
140
  albums: PropTypes.array,
@@ -120,7 +143,10 @@ ViewAlbums.propTypes = {
120
143
  cardBackgroundColor: PropTypes.string,
121
144
  albumTitleColor: PropTypes.string,
122
145
  descColor: PropTypes.string,
123
- title: PropTypes.string
146
+ title: PropTypes.string,
147
+ saveBtnText: PropTypes.string,
148
+ cancelBtnText: PropTypes.string,
149
+ preview: PropTypes.bool
124
150
  };
125
151
 
126
152
  export default ViewAlbums
@@ -4,14 +4,11 @@ import Select from 'react-select';
4
4
  import styled from 'styled-components';
5
5
  import CustomAutoComplete from '../Common Inputs/CustomAutoComplete/CustomAutoComplete';
6
6
  import BaseMaterial from '../Containers/BaseMaterial';
7
- import home from '../assets/home-svgrepo-com.svg';
8
- import discover from '../assets/compass-svgrepo-com.svg';
9
- import add from '../assets/add-svgrepo-com.svg';
10
- import basket from '../assets/basket-svgrepo-com.svg';
11
- import bell from '../assets/bell-svgrepo-com.svg';
12
- import medal from '../assets/medal-svgrepo-com.svg';
13
- import settings from '../assets/settings-svgrepo-com.svg';
14
- import search from '../assets/search-svgrepo-com.svg';
7
+
8
+ import { AiFillHome, AiFillCompass, AiOutlineSearch, AiFillSetting, AiFillBell } from "react-icons/ai";
9
+ import { MdAddBox } from "react-icons/md";
10
+ import { BiMedal } from "react-icons/bi";
11
+ import { IoBasketSharp } from "react-icons/io5";
15
12
 
16
13
  /* icon size can sm md lg @sm by default*/
17
14
  /* icon background color @transparent by default*/
@@ -92,30 +89,30 @@ const Navbar = ({ iconSize, iconBackgroundColor, navbarColor, dropDownItemHeight
92
89
  <BaseMaterial>
93
90
  <NavBar color={navbarColor}>
94
91
  <UniverseContainer>
95
- <IconContainer size={iconSize} color={iconBackgroundColor}>
96
- <Icon src={home} size={iconSize} />
92
+ <IconContainer >
93
+ <AiFillHome size={iconSize} color={iconBackgroundColor} />
97
94
  </IconContainer>
98
- <IconContainer size={iconSize} color={iconBackgroundColor}>
99
- <Icon src={add} size={iconSize} />
95
+ <IconContainer >
96
+ <MdAddBox size={iconSize} color={iconBackgroundColor} />
100
97
  </IconContainer>
101
98
  <div style={{ width: '200px' }}>
102
99
  <Select options={options} styles={{ color: 'blue' }} />
103
100
  </div>
104
101
  </UniverseContainer>
105
102
  <DiscoverContainer>
106
- <IconContainer size={iconSize} color={iconBackgroundColor}>
107
- <Icon src={discover} size={iconSize} />
103
+ <IconContainer>
104
+ <AiFillCompass size={iconSize} color={iconBackgroundColor} />
108
105
  </IconContainer>
109
- <IconContainer size={iconSize} color={iconBackgroundColor}>
110
- <Icon src={medal} size={iconSize} />
106
+ <IconContainer>
107
+ <BiMedal size={iconSize} color={iconBackgroundColor}/>
111
108
  </IconContainer>
112
- <IconContainer size={iconSize} color={iconBackgroundColor}>
113
- <Icon src={basket} size={iconSize} />
109
+ <IconContainer>
110
+ <IoBasketSharp size={iconSize} color={iconBackgroundColor}/>
114
111
  </IconContainer>
115
112
  </DiscoverContainer>
116
113
  <SearchContainer>
117
114
  <SearchBar>
118
- <Icon src={search} size={iconSize} />
115
+ <AiOutlineSearch color={iconBackgroundColor} />
119
116
 
120
117
  <Formik
121
118
  initialValues={initialValues}
@@ -171,11 +168,11 @@ const Navbar = ({ iconSize, iconBackgroundColor, navbarColor, dropDownItemHeight
171
168
  <UserName>illo</UserName>
172
169
  </ProfileContainer>
173
170
  <SettingsContainer>
174
- <IconContainer size={iconSize} color={iconBackgroundColor}>
175
- <Icon src={settings} size={iconSize} />
171
+ <IconContainer>
172
+ <AiFillSetting size={iconSize} color={iconBackgroundColor}/>
176
173
  </IconContainer>
177
- <IconContainer size={iconSize} color={iconBackgroundColor}>
178
- <Icon src={bell} size={iconSize} />
174
+ <IconContainer>
175
+ <AiFillBell size={iconSize} color={iconBackgroundColor}/>
179
176
  </IconContainer>
180
177
  </SettingsContainer>
181
178
  </ProfileBar>
@@ -208,7 +205,7 @@ const NavBar = styled.div`
208
205
  `;
209
206
 
210
207
  const UniverseContainer = styled('div')({
211
- width: '346px',
208
+ width: '100%',
212
209
  height: '72px',
213
210
  display: 'flex',
214
211
  'align-items': 'center',
@@ -218,22 +215,8 @@ const UniverseContainer = styled('div')({
218
215
 
219
216
  const IconContainer = styled.div`
220
217
  flex: 0 0 auto;
221
- width: ${(props) =>
222
- props.size === 'sm'
223
- ? '30px'
224
- : props.size === 'md'
225
- ? '35px'
226
- : props.size === 'lg'
227
- ? '40px'
228
- : '30px'};
229
- height: ${(props) =>
230
- props.size === 'sm'
231
- ? '30px'
232
- : props.size === 'md'
233
- ? '35px'
234
- : props.size === 'lg'
235
- ? '40px'
236
- : '30px'};
218
+
219
+
237
220
  display: flex;
238
221
  align-items: center;
239
222
  margin-left: 0px;
@@ -241,7 +224,26 @@ const IconContainer = styled.div`
241
224
  border-radius: 20px;
242
225
  flex-direction: row;
243
226
  justify-content: center;
244
- background-color: ${(props) => props.color || 'transparent'};
227
+
228
+ & svg {
229
+ width: ${(props) =>
230
+ props.size === 'sm'
231
+ ? '30px'
232
+ : props.size === 'md'
233
+ ? '35px'
234
+ : props.size === 'lg'
235
+ ? '40px'
236
+ : '30px'};
237
+ };
238
+ height: ${(props) =>
239
+ props.size === 'sm'
240
+ ? '30px'
241
+ : props.size === 'md'
242
+ ? '35px'
243
+ : props.size === 'lg'
244
+ ? '40px'
245
+ : '30px'};
246
+ fill: ${(props) => props.color || 'transparent'};
245
247
  `;
246
248
 
247
249
  const Icon = styled.img`
@@ -249,18 +251,18 @@ const Icon = styled.img`
249
251
  props.size === 'sm'
250
252
  ? '20px'
251
253
  : props.size === 'md'
252
- ? '25px'
253
- : props.size === 'lg'
254
- ? '30px'
255
- : '20px'};
254
+ ? '25px'
255
+ : props.size === 'lg'
256
+ ? '30px'
257
+ : '20px'};
256
258
  height: ${(props) =>
257
259
  props.size === 'sm'
258
260
  ? '20px'
259
261
  : props.size === 'md'
260
- ? '25px'
261
- : props.size === 'lg'
262
- ? '30px'
263
- : '20px'};
262
+ ? '25px'
263
+ : props.size === 'lg'
264
+ ? '30px'
265
+ : '20px'};
264
266
  `;
265
267
 
266
268
  const DiscoverContainer = styled('div')({
@@ -67,13 +67,26 @@ const Chat = ({
67
67
  discription="Lorem ipsum dolor sit amet consectetur."
68
68
  hideTitle
69
69
  >
70
- <ChatSpace data={data} users={users} />
71
-
70
+ <ChatSpace
71
+ data={data}
72
+ users={users}
73
+ title={'Chat'}
74
+ headerStyles={{
75
+ padding: 10,
76
+ headerBackground: '#00ADC4',
77
+ titleColor: '#ffff',
78
+ controlsStyles: {
79
+ iconSize: 25
80
+ }
81
+ }}
82
+ customCardStyles={{
83
+ cardTitleColor: '#00ADC4',
84
+ }}
85
+ />
72
86
  </SpaceContainer>
73
-
74
87
  </Center>
75
88
  <Right>
76
-
89
+
77
90
  </Right>
78
91
  </Body>
79
92
  </BaseMaterial>
@@ -86,7 +86,26 @@ const DetailedForm = (props) => {
86
86
  <Detailed
87
87
  userName="User Name"
88
88
  userImg="https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png"
89
- questions={questions} />
89
+ questions={questions}
90
+ headerStyles={{
91
+ padding: 10,
92
+ headerBackground: '#FE1744',
93
+ titleColor: '#ffff',
94
+ controlsStyles: {
95
+ dropdownBackground: 'black',
96
+ dropdownFontColor: 'white',
97
+ dropdownItemHoverColor: '#FE1744'
98
+ },
99
+ }}
100
+ userHeaderStyles={{
101
+ cardBackgroundColor: '#FE1744',
102
+ cardImageRadius: "100",
103
+ cardTitleColor: 'white',
104
+ }}
105
+ customCardStyles={{
106
+ cardPadding: 10,
107
+ }}
108
+ />
90
109
 
91
110
  </SpaceContainer>
92
111
 
@@ -77,9 +77,15 @@ const FillForm = (props) => {
77
77
  hideTitle
78
78
  >
79
79
  <Form
80
+ formTitle="Community Form"
80
81
  sections={sections}
81
82
  saveBtnText={'Submit'}
82
83
  cancelBtnText="Cancel"
84
+ headerStyles={{
85
+ padding: 10,
86
+ headerBackground: 'black',
87
+ titleColor: '#ffff',
88
+ }}
83
89
  />
84
90
 
85
91
  </SpaceContainer>