@mohamed-karawia/library 0.1.14 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. package/dist/stories/Chat/Chat.js +11 -34
  2. package/dist/stories/Common Inputs/EditorComponent/EditorComponent.js +4 -2
  3. package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.js +1 -1
  4. package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +11 -23
  5. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +4 -19
  6. package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
  7. package/dist/stories/Events/Event/Event.js +1 -1
  8. package/dist/stories/Events/EventsList/EventsList.js +3 -3
  9. package/dist/stories/Library/Folders/Folders.js +2 -6
  10. package/dist/stories/Library/Notes/Notes.js +3 -3
  11. package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
  12. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +5 -14
  13. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +6 -12
  14. package/dist/stories/Navbar/Navbar.js +14 -44
  15. package/dist/stories/Pages/Chat/Chat.js +13 -1
  16. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +19 -1
  17. package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
  18. package/dist/stories/Pages/Enrollment/Forms/Forms.js +29 -2
  19. package/dist/stories/Pages/Events/Events/Events.js +6 -0
  20. package/dist/stories/Pages/Library/Folders/Library.js +7 -1
  21. package/dist/stories/Pages/Library/Notes/Notes.js +5 -0
  22. package/dist/stories/Pages/Music/MusicAlbum/Music.js +12 -5
  23. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +43 -1
  24. package/dist/stories/Pages/Photos/Album/Album.js +7 -1
  25. package/dist/stories/Pages/Photos/Albums/Albums.js +38 -2
  26. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +4 -18
  27. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +5 -51
  28. package/dist/stories/Preview/Preview.js +36 -0
  29. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +7 -3
  30. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +7 -1
  31. package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.js +3 -2
  32. package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.js +27 -12
  33. package/dist/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
  34. package/dist/stories/Reusable Components/Gallery/Gallery.js +5 -1
  35. package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +1 -1
  36. package/dist/stories/Reusable Components/ReusableList/ReusableList.js +8 -6
  37. package/dist/stories/Sections/Sections.js +61 -0
  38. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +1 -4
  39. package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +1 -1
  40. package/dist/stories/helpers/util.js +39 -9
  41. package/package.json +1 -1
  42. package/src/stories/Chat/Chat.jsx +10 -35
  43. package/src/stories/Common Inputs/EditorComponent/EditorComponent.jsx +3 -3
  44. package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
  45. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +8 -19
  46. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +4 -17
  47. package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
  48. package/src/stories/Events/Event/Event.jsx +1 -1
  49. package/src/stories/Events/EventsList/EventsList.jsx +11 -6
  50. package/src/stories/Library/Folders/Folders.jsx +3 -7
  51. package/src/stories/Library/Notes/Notes.jsx +8 -4
  52. package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
  53. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +9 -11
  54. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +7 -11
  55. package/src/stories/Navbar/Navbar.jsx +50 -48
  56. package/src/stories/Pages/Chat/Chat.jsx +17 -4
  57. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +20 -1
  58. package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
  59. package/src/stories/Pages/Enrollment/Forms/Forms.jsx +30 -2
  60. package/src/stories/Pages/Events/Events/Events.jsx +78 -72
  61. package/src/stories/Pages/Library/Folders/Library.jsx +7 -1
  62. package/src/stories/Pages/Library/Notes/Notes.jsx +5 -0
  63. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +16 -8
  64. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +38 -24
  65. package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
  66. package/src/stories/Pages/Photos/Albums/Albums.jsx +25 -20
  67. package/src/stories/Pages/ViewWorld/styles.json +1 -1
  68. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +6 -17
  69. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +6 -60
  70. package/src/stories/Preview/Preview.jsx +27 -0
  71. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +8 -4
  72. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -0
  73. package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.jsx +5 -2
  74. package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.jsx +14 -8
  75. package/src/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
  76. package/src/stories/Reusable Components/Gallery/Gallery.jsx +5 -1
  77. package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +1 -1
  78. package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
  79. package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +17 -6
  80. package/src/stories/Sections/Sections.jsx +53 -0
  81. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +3 -5
  82. package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +1 -1
  83. package/src/stories/helpers/util.js +29 -7
@@ -2,19 +2,8 @@ import React from 'react';
2
2
 
3
3
  import Editor from '../../Common Inputs/EditorComponent/EditorComponent';
4
4
 
5
- const ViewNote = () => {
5
+ const ViewNote = ({data, ...props}) => {
6
6
 
7
- const data = {
8
- blocks: [
9
- {
10
- type: "header",
11
- data: {
12
- text: "New Note",
13
- level: 1
14
- }
15
- }
16
- ]
17
- }
18
7
 
19
8
  return (
20
9
  <Editor data={data}/>
@@ -50,7 +50,7 @@ const ViewAlbum = ({
50
50
  return (
51
51
  <Container>
52
52
  <List
53
- listTitle="My Album"
53
+ listTitle={props.title || "My Album"}
54
54
  data={album}
55
55
  cardStyle="card-style-7"
56
56
  type="flat"
@@ -59,13 +59,6 @@ const ViewAlbum = ({
59
59
  listControls={listControls}
60
60
  cardControls={cardControls}
61
61
  cardIconClicked={cardIconClicked}
62
- customCardStyles={{
63
- cardBackgroundColor: cardBackgroundColor,
64
- cardTitleColor: songTitleColor,
65
- controlsStyles: {
66
- iconColor: 'black'
67
- }
68
- }}
69
62
  {...props}
70
63
  />
71
64
  <Modal
@@ -77,8 +70,8 @@ const ViewAlbum = ({
77
70
  <AddSong
78
71
  saveHandler={onAddSong}
79
72
  cancelHandler={cancelHandler}
80
- saveBtnText="Create"
81
- cancelBtnText="Cancel" />
73
+ saveBtnText={props.saveBtnText || "Create"}
74
+ cancelBtnText={props.cancelBtnText || "Cancel"} />
82
75
  </Modal>
83
76
  </Container>
84
77
  )
@@ -89,7 +82,7 @@ const Container = styled.div`
89
82
  `
90
83
 
91
84
  ViewAlbum.defaultProps = {
92
- cardBackgroundColor: 'white',
85
+
93
86
  };
94
87
 
95
88
  ViewAlbum.propTypes = {
@@ -99,6 +92,11 @@ ViewAlbum.propTypes = {
99
92
  cardClicked: PropTypes.func,
100
93
  cardBackgroundColor: PropTypes.string,
101
94
  songTitleColor: PropTypes.string,
95
+ title: PropTypes.string,
96
+ saveBtnText: PropTypes.string,
97
+ cancelBtnText: PropTypes.string,
98
+ headerStyles: PropTypes.object,
99
+ customCardStyles: PropTypes.object,
102
100
  };
103
101
 
104
102
  export default ViewAlbum
@@ -21,14 +21,12 @@ const galleryControls = [
21
21
 
22
22
  const ViewAlbums = ({
23
23
  albums,
24
- cardBackgroundColor,
25
24
  albumTitleColor,
26
25
  descColor,
27
26
  ...props
28
27
  }) => {
29
28
  const cardStyles = {
30
29
  darkOnHover: true,
31
- cardBackgroundColor: cardBackgroundColor,
32
30
  cardTitleColor: albumTitleColor,
33
31
  descColor,
34
32
  controlsStyles: {
@@ -76,18 +74,14 @@ const ViewAlbums = ({
76
74
  return (
77
75
  <Container>
78
76
  <Gallery
79
- galleryTitle={props.title}
77
+ galleryTitle={props.title || 'musicAlbums'}
80
78
  data={albums}
81
79
  type="flat"
82
80
  cardStyle="card-style-6"
83
- columnsNumber={3}
84
- galleryColumnGap={10}
85
- galleryRowGap={20}
86
81
  galleryControls={galleryControls}
87
82
  iconClicked={onHeaderIconClicked}
88
83
  cardControls={cardControls}
89
84
  cardIconClicked={cardIconClicked}
90
- customCardStyles={cardStyles}
91
85
  {...props}
92
86
  />
93
87
  <Modal
@@ -99,14 +93,14 @@ const ViewAlbums = ({
99
93
  <CreateAlbum
100
94
  saveHandler={onAddAlbum}
101
95
  cancelHandler={cancelHandler}
102
- saveBtnText="Create"
103
- cancelBtnText="Cancel" />
96
+ saveBtnText={props.saveBtnText || "Create"}
97
+ cancelBtnText={props.cancelBtnText || "Cancel"} />
104
98
  </Modal>
105
99
  </Container>
106
100
  )
107
101
  }
108
102
  const Container = styled.div`
109
-
103
+ width: 100%;
110
104
  `
111
105
 
112
106
  ViewAlbums.defaultProps = {
@@ -120,7 +114,9 @@ ViewAlbums.propTypes = {
120
114
  cardBackgroundColor: PropTypes.string,
121
115
  albumTitleColor: PropTypes.string,
122
116
  descColor: PropTypes.string,
123
- title: PropTypes.string
117
+ title: PropTypes.string,
118
+ saveBtnText: PropTypes.string,
119
+ cancelBtnText: PropTypes.string,
124
120
  };
125
121
 
126
122
  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>
@@ -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>
@@ -69,6 +69,14 @@ const Forms = (props) => {
69
69
  },
70
70
  ])
71
71
 
72
+ const cardClicked = (index, cardProps) => {
73
+ console.log(cardProps)
74
+ }
75
+
76
+ const onAction = (action, index) => {
77
+ console.log(action)
78
+ }
79
+
72
80
  return (
73
81
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
74
82
  <Navbar />
@@ -108,12 +116,32 @@ const Forms = (props) => {
108
116
  </Left>
109
117
  <Center>
110
118
  <SpaceContainer
111
- title="Music Album"
112
119
  discription="Lorem ipsum dolor sit amet consectetur."
113
120
  hideTitle
114
121
  >
115
122
  <ViewForms
116
- data={forms} />
123
+ data={forms}
124
+ cardClicked={cardClicked}
125
+ cardIconClicked={onAction}
126
+ headerStyles={{
127
+ padding: 10,
128
+ headerBackground: '#FE1744',
129
+ titleColor: '#ffff',
130
+ controlsStyles: {
131
+ dropdownBackground: 'black',
132
+ dropdownFontColor: 'white',
133
+ dropdownItemHoverColor: '#FE1744'
134
+ },
135
+ }}
136
+ sectionHeaderStyles={{
137
+ cardTitleColor: 'white',
138
+ cardBackgroundColor: 'black',
139
+ cardPadding: 10
140
+ }}
141
+ customCardStyles={{
142
+ cardBackgroundColor: 'white'
143
+ }}
144
+ />
117
145
 
118
146
  </SpaceContainer>
119
147
 
@@ -19,11 +19,11 @@ import { SPACES } from '../../ViewWorld/constatnts';
19
19
  const Events = (props) => {
20
20
 
21
21
  const [events, setEvents] = useState([
22
- {title: 'Event one', date: '15-11-2020 : 5-8-2021'},
23
- {title: 'Event two', date: '14-12-2020 : 14-4-2023'},
24
- {title: 'Event three', date: '5-6-2021 : 5-8-2021'},
25
- {title: 'Event four', date: '14-4-2023'},
26
- {title: 'Event five', date: '5-6-2021 : 14-4-2023'},
22
+ { title: 'Event one', date: '15-11-2020 : 5-8-2021' },
23
+ { title: 'Event two', date: '14-12-2020 : 14-4-2023' },
24
+ { title: 'Event three', date: '5-6-2021 : 5-8-2021' },
25
+ { title: 'Event four', date: '14-4-2023' },
26
+ { title: 'Event five', date: '5-6-2021 : 14-4-2023' },
27
27
  ])
28
28
 
29
29
  const onAddEvent = (event) => {
@@ -35,7 +35,7 @@ const Events = (props) => {
35
35
  case 'delete':
36
36
  deleteEvent(index)
37
37
  break;
38
-
38
+
39
39
  default:
40
40
  break;
41
41
  }
@@ -45,78 +45,84 @@ const Events = (props) => {
45
45
  setEvents(deleteFromArrayByIndex(events, index))
46
46
  }
47
47
 
48
+ const cardClicked = (index, cardProps) => {
49
+ console.log(cardProps)
50
+ }
51
+
48
52
  return (
49
53
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
50
- <Navbar />
51
- <Body {...worldStyles.bodyStyle}>
52
- <Left>
53
- <WidgetContainer
54
- widgetType='logo'
55
- widgetProps={{
56
- imgUrl: props.imgUrl,
57
- }}
58
- />
59
- <WidgetContainer
60
- widgetType='list'
61
- widgetProps={{
62
- listTitle: 'Your Spaces',
63
- type: 'sectioned',
64
- data: SPACES,
65
- cardStyle: 'card-style-3',
66
- sectionHeaderStyles: {
67
- cardBorderSize: 2,
68
- cardPadding: 2,
69
- cardBackgroundColor: '#fff',
70
- cardBorderColor: 'black',
71
- },
72
- customCardStyles: {
73
- cardPadding: 6,
74
- cardTitleFontSize: 15,
75
- cardBackgroundColor: 'black',
76
- cardTitleColor: 'white',
77
- onHoverBackgroundColor: '#F6891F',
78
- controlsStyles: {
79
- showOnHover: true,
80
- }
81
- },
82
- }}
83
- />
84
- </Left>
85
- <Center>
86
- <SpaceContainer
87
- title="Music Album"
88
- discription="Lorem ipsum dolor sit amet consectetur."
89
- hideTitle
90
- >
91
- <EventsList
92
- events={events}
93
- iconColor='#FE1744'
94
- cardTitleFontSize={15}
95
- onAddEvent={onAddEvent}
96
- cardIconClicked={cardIconClicked}
97
- headerStyles={{
98
- padding: 10,
99
- headerBackground: '#FE1744',
100
- titleColor: '#ffff',
101
- controlsStyles: {
102
- iconSize: 25
103
- }
104
- }}
105
- customCardStyles={{
106
- controlsStyles: {
107
- iconColor: '#FE1744'
108
- }
109
- }}
54
+ <Navbar />
55
+ <Body {...worldStyles.bodyStyle}>
56
+ <Left>
57
+ <WidgetContainer
58
+ widgetType='logo'
59
+ widgetProps={{
60
+ imgUrl: props.imgUrl,
61
+ }}
62
+ />
63
+ <WidgetContainer
64
+ widgetType='list'
65
+ widgetProps={{
66
+ listTitle: 'Your Spaces',
67
+ type: 'sectioned',
68
+ data: SPACES,
69
+ cardStyle: 'card-style-3',
70
+ sectionHeaderStyles: {
71
+ cardBorderSize: 2,
72
+ cardPadding: 2,
73
+ cardBackgroundColor: '#fff',
74
+ cardBorderColor: 'black',
75
+ },
76
+ customCardStyles: {
77
+ cardPadding: 6,
78
+ cardTitleFontSize: 15,
79
+ cardBackgroundColor: 'black',
80
+ cardTitleColor: 'white',
81
+ onHoverBackgroundColor: '#F6891F',
82
+ controlsStyles: {
83
+ showOnHover: true,
84
+ }
85
+ },
86
+ }}
110
87
  />
88
+ </Left>
89
+ <Center>
90
+ <SpaceContainer
91
+ title="Music Album"
92
+ discription="Lorem ipsum dolor sit amet consectetur."
93
+ hideTitle
94
+ >
95
+ <EventsList
96
+ events={events}
97
+ iconColor='#FE1744'
98
+ cardTitleFontSize={15}
99
+ onAddEvent={onAddEvent}
100
+ cardIconClicked={cardIconClicked}
101
+ cardClicked={cardClicked}
102
+ headerStyles={{
103
+ padding: 10,
104
+ headerBackground: '#FE1744',
105
+ titleColor: '#ffff',
106
+ controlsStyles: {
107
+ iconSize: 25
108
+ }
109
+ }}
110
+ customCardStyles={{
111
+ cardBackgroundColor: 'white',
112
+ controlsStyles: {
113
+ iconColor: '#FE1744',
114
+ }
115
+ }}
116
+ />
111
117
 
112
- </SpaceContainer>
118
+ </SpaceContainer>
113
119
 
114
- </Center>
115
- <Right>
120
+ </Center>
121
+ <Right>
116
122
 
117
- </Right>
118
- </Body>
119
- </BaseMaterial>
123
+ </Right>
124
+ </Body>
125
+ </BaseMaterial>
120
126
  )
121
127
  }
122
128
 
@@ -46,6 +46,10 @@ const Library = (props) => {
46
46
  setFolders(deleteFromArrayByIndex(folders, index))
47
47
  }
48
48
 
49
+ const cardClicked = (index, cardProps) => {
50
+ console.log(cardProps)
51
+ }
52
+
49
53
  return (
50
54
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
51
55
  <Navbar />
@@ -80,6 +84,7 @@ const Library = (props) => {
80
84
  showOnHover: true,
81
85
  }
82
86
  },
87
+ cardClicked
83
88
  }}
84
89
  />
85
90
  </Left>
@@ -95,6 +100,7 @@ const Library = (props) => {
95
100
  columnsNumber={3}
96
101
  onAddFolder={onAddFolder}
97
102
  cardIconClicked={cardIconClicked}
103
+ cardClicked={cardClicked}
98
104
  headerStyles={{
99
105
  padding: 10,
100
106
  headerBackground: '#ff2d2d',
@@ -105,7 +111,7 @@ const Library = (props) => {
105
111
  }}
106
112
  customCardStyles={{
107
113
  cardPadding: 10,
108
- iconColor: '#ff2d2d'
114
+ iconColor: '#ff2d2d',
109
115
  }}
110
116
 
111
117
  />
@@ -46,6 +46,10 @@ const Notes = (props) => {
46
46
  setNotes(deleteFromArrayByIndex(notes, index))
47
47
  }
48
48
 
49
+ const cardClicked = (index, cardProps) => {
50
+ console.log(cardProps)
51
+ }
52
+
49
53
  return (
50
54
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
51
55
  <Navbar />
@@ -93,6 +97,7 @@ const Notes = (props) => {
93
97
  onAddNote={onAddNote}
94
98
  cardIconClicked={cardIconClicked}
95
99
  notes={notes}
100
+ cardClicked={cardClicked}
96
101
  headerStyles={{
97
102
  padding: 10,
98
103
  headerBackground: '#FE1744',