@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.
- package/dist/stories/Chat/Chat.js +127 -33
- package/dist/stories/Common Inputs/EditorComponent/EditorComponent.js +4 -2
- package/dist/stories/Common Inputs/Picker/Picker.js +61 -0
- package/dist/stories/Common Inputs/TextField/TextField.js +3 -1
- package/dist/stories/Community/Community.js +137 -0
- package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.js +1 -1
- package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +11 -23
- package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +2 -17
- package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
- package/dist/stories/Events/Event/Event.js +117 -5
- package/dist/stories/Events/EventsList/EventsList.js +98 -19
- package/dist/stories/Forms/CreateSpace/CreateSpace.js +75 -0
- package/dist/stories/Library/Folders/Folders.js +82 -7
- package/dist/stories/Library/Notes/Notes.js +78 -4
- package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
- package/dist/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.js +54 -0
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +139 -23
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +70 -34
- package/dist/stories/Navbar/Navbar.js +15 -45
- package/dist/stories/Pages/Chat/Chat.js +13 -1
- package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +19 -1
- package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
- package/dist/stories/Pages/Enrollment/Forms/Forms.js +24 -2
- package/dist/stories/Pages/Events/Event/Event.js +14 -5
- package/dist/stories/Pages/Events/Events/Events.js +1 -0
- package/dist/stories/Pages/Library/Folders/Library.js +7 -1
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +12 -5
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +34 -5
- package/dist/stories/Pages/Photos/Album/Album.js +7 -1
- package/dist/stories/Pages/Photos/Albums/Albums.js +38 -2
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +80 -27
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +85 -60
- package/dist/stories/Preview/Preview.js +37 -0
- package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +193 -0
- package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +158 -0
- package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +192 -0
- package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +182 -0
- package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +177 -0
- package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +181 -0
- package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +153 -0
- package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +112 -0
- package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +173 -0
- package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +189 -0
- package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +189 -0
- package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +197 -0
- package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +189 -0
- package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +175 -0
- package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +172 -0
- package/dist/stories/PreviewComponents/globalStyles.js +26 -0
- package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +10 -5
- package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +8 -4
- package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.js +3 -2
- package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.js +10 -4
- package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.js +4 -2
- package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.js +26 -15
- package/dist/stories/Reusable Components/Cards/globalCardStyles.js +3 -3
- package/dist/stories/Reusable Components/Community/Community.js +76 -0
- package/dist/stories/Reusable Components/Gallery/Gallery.js +17 -18
- package/dist/stories/Reusable Components/ReactModal/ReactModal.js +11 -30
- package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +20 -3
- package/dist/stories/Reusable Components/ReusableList/ReusableList.js +15 -9
- package/dist/stories/Reusable Components/Tabs/Tabs.js +68 -0
- package/dist/stories/Sections/Sections.js +67 -0
- package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +77 -18
- package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +96 -3
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +78 -5
- package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +17 -11
- package/dist/stories/Widgets/SpacesListWidget/SpacesListWidget.js +115 -0
- package/dist/stories/Widgets/UsersWidget/UsersWidget.js +30 -0
- package/dist/stories/helpers/util.js +70 -7
- package/dist/stories/store/communities.js +943 -0
- package/dist/stories/store/store.js +44 -0
- package/package.json +5 -2
- package/src/stories/Chat/Chat.jsx +109 -35
- package/src/stories/Common Inputs/EditorComponent/EditorComponent.jsx +3 -3
- package/src/stories/Common Inputs/Picker/Picker.jsx +47 -0
- package/src/stories/Common Inputs/TextField/TextField.jsx +1 -1
- package/src/stories/Community/Community.jsx +110 -0
- package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
- package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +8 -19
- package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +3 -17
- package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
- package/src/stories/Events/Event/Event.jsx +98 -5
- package/src/stories/Events/EventsList/EventsList.jsx +101 -22
- package/src/stories/Forms/CreateSpace/CreateSpace.jsx +73 -0
- package/src/stories/Library/Folders/Folders.jsx +82 -8
- package/src/stories/Library/Notes/Notes.jsx +65 -5
- package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
- package/src/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.jsx +31 -0
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +133 -21
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +62 -36
- package/src/stories/Navbar/Navbar.jsx +51 -49
- package/src/stories/Pages/Chat/Chat.jsx +17 -4
- package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +20 -1
- package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
- package/src/stories/Pages/Enrollment/Forms/Forms.jsx +23 -1
- package/src/stories/Pages/Events/Event/Event.jsx +12 -4
- package/src/stories/Pages/Events/Events/Events.jsx +75 -74
- package/src/stories/Pages/Library/Folders/Library.jsx +7 -1
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +16 -8
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +28 -27
- package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
- package/src/stories/Pages/Photos/Albums/Albums.jsx +25 -20
- package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +63 -21
- package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +65 -66
- package/src/stories/Preview/Preview.jsx +35 -0
- package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +132 -0
- package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +116 -0
- package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +132 -0
- package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +127 -0
- package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +124 -0
- package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +126 -0
- package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +113 -0
- package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +93 -0
- package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +122 -0
- package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +129 -0
- package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +129 -0
- package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +138 -0
- package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +129 -0
- package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +124 -0
- package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +125 -0
- package/src/stories/PreviewComponents/globalStyles.js +20 -0
- package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +13 -6
- package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -5
- package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.jsx +5 -2
- package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.jsx +12 -6
- package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.jsx +2 -2
- package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.jsx +12 -8
- package/src/stories/Reusable Components/Cards/globalCardStyles.js +3 -2
- package/src/stories/Reusable Components/Community/Community.jsx +70 -0
- package/src/stories/Reusable Components/Gallery/Gallery.jsx +15 -10
- package/src/stories/Reusable Components/ReactModal/ReactModal.jsx +3 -25
- package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +19 -7
- package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
- package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +24 -8
- package/src/stories/Reusable Components/Tabs/Tabs.jsx +67 -0
- package/src/stories/Sections/Sections.jsx +56 -0
- package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.jsx +57 -16
- package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +70 -1
- package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +65 -8
- package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +14 -7
- package/src/stories/Widgets/SpacesListWidget/SpacesListWidget.jsx +78 -0
- package/src/stories/Widgets/UsersWidget/UsersWidget.jsx +20 -0
- package/src/stories/helpers/util.js +50 -6
- package/src/stories/store/communities.js +705 -0
- package/src/stories/store/store.js +33 -0
- package/src/stories/styling.json +92 -0
@@ -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: {
|
@@ -117,12 +121,30 @@ var Forms = function Forms(props) {
|
|
117
121
|
}
|
118
122
|
}
|
119
123
|
})), /*#__PURE__*/_react.default.createElement(_Center.default, null, /*#__PURE__*/_react.default.createElement(_SpaceContainer.default, {
|
120
|
-
title: "Music Album",
|
121
124
|
discription: "Lorem ipsum dolor sit amet consectetur.",
|
122
125
|
hideTitle: true
|
123
126
|
}, /*#__PURE__*/_react.default.createElement(_ViewForms.default, {
|
124
127
|
data: forms,
|
125
|
-
cardClicked: cardClicked
|
128
|
+
cardClicked: cardClicked,
|
129
|
+
cardIconClicked: onAction,
|
130
|
+
headerStyles: {
|
131
|
+
padding: 10,
|
132
|
+
headerBackground: '#FE1744',
|
133
|
+
titleColor: '#ffff',
|
134
|
+
controlsStyles: {
|
135
|
+
dropdownBackground: 'black',
|
136
|
+
dropdownFontColor: 'white',
|
137
|
+
dropdownItemHoverColor: '#FE1744'
|
138
|
+
}
|
139
|
+
},
|
140
|
+
sectionHeaderStyles: {
|
141
|
+
cardTitleColor: 'white',
|
142
|
+
cardBackgroundColor: 'black',
|
143
|
+
cardPadding: 10
|
144
|
+
},
|
145
|
+
customCardStyles: {
|
146
|
+
cardBackgroundColor: 'white'
|
147
|
+
}
|
126
148
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null)));
|
127
149
|
};
|
128
150
|
|
@@ -27,8 +27,6 @@ var _WidgetContainer = _interopRequireDefault(require("../../../Reusable Compone
|
|
27
27
|
|
28
28
|
var _Event = _interopRequireDefault(require("../../../Events/Event/Event"));
|
29
29
|
|
30
|
-
var _util = require("../../../helpers/util");
|
31
|
-
|
32
30
|
var _styles = _interopRequireDefault(require("../../ViewWorld/styles.json"));
|
33
31
|
|
34
32
|
var _constatnts = require("../../ViewWorld/constatnts");
|
@@ -44,16 +42,27 @@ var Event = function Event(props) {
|
|
44
42
|
imgUrl: props.imgUrl
|
45
43
|
}
|
46
44
|
}), /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
47
|
-
widgetType: "list",
|
45
|
+
widgetType: "spaces-list",
|
48
46
|
widgetProps: {
|
49
47
|
listTitle: 'Your Spaces',
|
50
48
|
type: 'sectioned',
|
51
|
-
|
49
|
+
spaces: _constatnts.SPACES,
|
52
50
|
cardStyle: 'card-style-3',
|
51
|
+
cardClicked: function cardClicked() {
|
52
|
+
return alert('clicked');
|
53
|
+
},
|
54
|
+
headerStyles: {
|
55
|
+
headerBackground: 'purple',
|
56
|
+
padding: 3,
|
57
|
+
controlsStyles: {
|
58
|
+
iconColor: 'white',
|
59
|
+
iconsGap: 5
|
60
|
+
}
|
61
|
+
},
|
53
62
|
sectionHeaderStyles: {
|
54
63
|
cardBorderSize: 2,
|
55
64
|
cardPadding: 2,
|
56
|
-
|
65
|
+
headerBackground: 'red',
|
57
66
|
cardBorderColor: 'black'
|
58
67
|
},
|
59
68
|
customCardStyles: {
|
@@ -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: {
|
@@ -109,7 +113,8 @@ var Library = function Library(props) {
|
|
109
113
|
controlsStyles: {
|
110
114
|
showOnHover: true
|
111
115
|
}
|
112
|
-
}
|
116
|
+
},
|
117
|
+
cardClicked: cardClicked
|
113
118
|
}
|
114
119
|
})), /*#__PURE__*/_react.default.createElement(_Center.default, null, /*#__PURE__*/_react.default.createElement(_SpaceContainer.default, {
|
115
120
|
title: "Music Album",
|
@@ -121,6 +126,7 @@ var Library = function Library(props) {
|
|
121
126
|
columnsNumber: 3,
|
122
127
|
onAddFolder: onAddFolder,
|
123
128
|
cardIconClicked: cardIconClicked,
|
129
|
+
cardClicked: cardClicked,
|
124
130
|
headerStyles: {
|
125
131
|
padding: 10,
|
126
132
|
headerBackground: '#ff2d2d',
|
@@ -60,7 +60,7 @@ var Music = function Music(props) {
|
|
60
60
|
var _useState3 = (0, _react.useState)([{
|
61
61
|
index: 0,
|
62
62
|
cover: _music4.default,
|
63
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
63
|
+
musicSrc: 'https://www.pacdv.com/sounds/free-music/gentle-thoughts-1.mp3',
|
64
64
|
title: 'Plans We Made',
|
65
65
|
description: 'Son Lux',
|
66
66
|
time: '5:20'
|
@@ -74,7 +74,7 @@ var Music = function Music(props) {
|
|
74
74
|
}, {
|
75
75
|
index: 1,
|
76
76
|
cover: _music5.default,
|
77
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
77
|
+
musicSrc: 'https://www.pacdv.com/sounds/free-music/glow-in-the-dark.mp3',
|
78
78
|
title: 'Night',
|
79
79
|
description: 'Frank Ocean',
|
80
80
|
time: '5:20'
|
@@ -88,14 +88,14 @@ var Music = function Music(props) {
|
|
88
88
|
}, {
|
89
89
|
index: 4,
|
90
90
|
cover: _music3.default,
|
91
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
91
|
+
musicSrc: 'https://www.pacdv.com/sounds/free-music/gentle-thoughts-1.mp3',
|
92
92
|
title: 'Enter Sandman',
|
93
93
|
description: 'Metallica',
|
94
94
|
time: '5:20'
|
95
95
|
}, {
|
96
96
|
index: 5,
|
97
97
|
cover: _music2.default,
|
98
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
98
|
+
musicSrc: 'https://www.pacdv.com/sounds/free-music/glow-in-the-dark.mp3',
|
99
99
|
title: 'November Rain',
|
100
100
|
description: "Guns N' Roses",
|
101
101
|
time: '5:20'
|
@@ -191,6 +191,12 @@ var Music = function Music(props) {
|
|
191
191
|
controlsStyles: {
|
192
192
|
iconSize: 25
|
193
193
|
}
|
194
|
+
},
|
195
|
+
customCardStyles: {
|
196
|
+
cardBackgroundColor: 'white',
|
197
|
+
controlsStyles: {
|
198
|
+
iconColor: 'black'
|
199
|
+
}
|
194
200
|
}
|
195
201
|
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
196
202
|
widgetType: "music player",
|
@@ -205,7 +211,8 @@ var Music = function Music(props) {
|
|
205
211
|
prevSong: prevSong,
|
206
212
|
currentSong: currentSong,
|
207
213
|
borderRadius: '10',
|
208
|
-
primaryColor: 'black'
|
214
|
+
primaryColor: 'black',
|
215
|
+
backgroundColor: 'white'
|
209
216
|
},
|
210
217
|
headerStyles: {
|
211
218
|
controlsStyles: {
|
@@ -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: {
|
@@ -138,10 +154,7 @@ var MusicAlbums = function MusicAlbums(props) {
|
|
138
154
|
cardTitleFontSize: 15,
|
139
155
|
cardBackgroundColor: 'black',
|
140
156
|
cardTitleColor: 'white',
|
141
|
-
onHoverBackgroundColor: '#F6891F'
|
142
|
-
controlsStyles: {
|
143
|
-
showOnHover: true
|
144
|
-
}
|
157
|
+
onHoverBackgroundColor: '#F6891F'
|
145
158
|
}
|
146
159
|
}
|
147
160
|
})), /*#__PURE__*/_react.default.createElement(_Center.default, null, /*#__PURE__*/_react.default.createElement(_SpaceContainer.default, {
|
@@ -161,8 +174,24 @@ var MusicAlbums = function MusicAlbums(props) {
|
|
161
174
|
iconSize: 25
|
162
175
|
}
|
163
176
|
},
|
177
|
+
customCardStyles: {
|
178
|
+
darkOnHover: true
|
179
|
+
},
|
164
180
|
cardClicked: cardClicked
|
165
|
-
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null
|
181
|
+
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
182
|
+
widgetType: "notes",
|
183
|
+
widgetProps: {
|
184
|
+
notes: notes,
|
185
|
+
headerStyles: {
|
186
|
+
padding: 10,
|
187
|
+
headerBackground: 'black',
|
188
|
+
titleColor: '#ffff',
|
189
|
+
controlsStyles: {
|
190
|
+
iconSize: 25
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}))));
|
166
195
|
};
|
167
196
|
|
168
197
|
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':
|
@@ -148,8 +168,24 @@ var Albums = function Albums(props) {
|
|
148
168
|
onDeleteAlbum: onDeleteAlbum,
|
149
169
|
onAddAlbum: onAddAlbum,
|
150
170
|
columnsNumber: 2,
|
151
|
-
cardClicked: cardClicked
|
152
|
-
|
171
|
+
cardClicked: cardClicked,
|
172
|
+
customCardStyles: {
|
173
|
+
cardBackgroundColor: 'white'
|
174
|
+
}
|
175
|
+
}))), /*#__PURE__*/_react.default.createElement(_Right.default, null, /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, {
|
176
|
+
widgetType: "folders",
|
177
|
+
widgetProps: {
|
178
|
+
folders: folders,
|
179
|
+
columnsNumber: 3,
|
180
|
+
customCardStyles: {
|
181
|
+
cardPadding: 10,
|
182
|
+
iconColor: '#ff2d2d',
|
183
|
+
controlsStyles: {
|
184
|
+
iconColor: '#FE1744'
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}))));
|
153
189
|
};
|
154
190
|
|
155
191
|
var _default = Albums;
|
@@ -25,11 +25,21 @@ var _ReactModal = _interopRequireDefault(require("../../Reusable Components/Reac
|
|
25
25
|
|
26
26
|
var _DetailedPhoto = _interopRequireDefault(require("../DetailedPhoto/DetailedPhoto"));
|
27
27
|
|
28
|
+
var _PhotoAlbumPreview = _interopRequireDefault(require("../../PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview"));
|
29
|
+
|
30
|
+
var _Tabs = _interopRequireDefault(require("../../Reusable Components/Tabs/Tabs"));
|
31
|
+
|
32
|
+
var _Sections = _interopRequireDefault(require("../../Sections/Sections"));
|
33
|
+
|
34
|
+
var _Community = _interopRequireDefault(require("../../Reusable Components/Community/Community"));
|
35
|
+
|
28
36
|
var _ai = require("react-icons/ai");
|
29
37
|
|
38
|
+
var _bs = require("react-icons/bs");
|
39
|
+
|
30
40
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
31
41
|
|
32
|
-
var _excluded = ["album", "cardBackgroundColor", "imgTitleColor", "
|
42
|
+
var _excluded = ["album", "cardBackgroundColor", "imgTitleColor", "descColor"];
|
33
43
|
|
34
44
|
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); }
|
35
45
|
|
@@ -39,6 +49,10 @@ var galleryControls = [{
|
|
39
49
|
icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineFileAdd, null),
|
40
50
|
action: 'add',
|
41
51
|
name: 'Add Photo'
|
52
|
+
}, {
|
53
|
+
icon: /*#__PURE__*/_react.default.createElement(_bs.BsGear, null),
|
54
|
+
action: 'config',
|
55
|
+
name: 'Config'
|
42
56
|
}];
|
43
57
|
var cardControls = [{
|
44
58
|
icon: /*#__PURE__*/_react.default.createElement(_ai.AiFillDelete, null),
|
@@ -50,9 +64,6 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
50
64
|
var album = _ref.album,
|
51
65
|
cardBackgroundColor = _ref.cardBackgroundColor,
|
52
66
|
imgTitleColor = _ref.imgTitleColor,
|
53
|
-
columnsNumber = _ref.columnsNumber,
|
54
|
-
columnGap = _ref.columnGap,
|
55
|
-
rowGap = _ref.rowGap,
|
56
67
|
descColor = _ref.descColor,
|
57
68
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
58
69
|
var cardStyles = {
|
@@ -84,19 +95,44 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
84
95
|
|
85
96
|
var _useState3 = (0, _react.useState)(false),
|
86
97
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
87
|
-
|
88
|
-
|
98
|
+
showConfigModal = _useState4[0],
|
99
|
+
setShowConfigModal = _useState4[1];
|
89
100
|
|
90
|
-
var _useState5 = (0, _react.useState)(
|
101
|
+
var _useState5 = (0, _react.useState)(false),
|
91
102
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
92
|
-
|
93
|
-
|
103
|
+
showImgModal = _useState6[0],
|
104
|
+
setShowImgModal = _useState6[1];
|
94
105
|
|
95
106
|
var _useState7 = (0, _react.useState)(null),
|
96
107
|
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
97
|
-
|
98
|
-
|
108
|
+
openedImgIndex = _useState8[0],
|
109
|
+
setOpenedImgIndex = _useState8[1];
|
110
|
+
|
111
|
+
var _useState9 = (0, _react.useState)(null),
|
112
|
+
_useState10 = (0, _slicedToArray2.default)(_useState9, 2),
|
113
|
+
openedImg = _useState10[0],
|
114
|
+
setOpenedImg = _useState10[1];
|
115
|
+
|
116
|
+
var _useState11 = (0, _react.useState)( /*#__PURE__*/_react.default.createElement(ViewAlbum, {
|
117
|
+
album: album
|
118
|
+
})),
|
119
|
+
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
120
|
+
centerContext = _useState12[0],
|
121
|
+
setCenterContext = _useState12[1];
|
122
|
+
|
123
|
+
var formChanged = function formChanged(values) {
|
124
|
+
setCenterContext( /*#__PURE__*/_react.default.createElement(ViewAlbum, Object.assign({
|
125
|
+
album: album
|
126
|
+
}, values)));
|
127
|
+
};
|
99
128
|
|
129
|
+
var tabs = [{
|
130
|
+
title: 'New',
|
131
|
+
id: 'preview'
|
132
|
+
}, {
|
133
|
+
title: 'Context',
|
134
|
+
id: 'community'
|
135
|
+
}];
|
100
136
|
var handleUserKeyPress = (0, _react.useCallback)(function (event) {
|
101
137
|
var key = event.key;
|
102
138
|
|
@@ -121,13 +157,19 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
121
157
|
setShowModal(true);
|
122
158
|
break;
|
123
159
|
|
160
|
+
case 'config':
|
161
|
+
setShowConfigModal(true);
|
162
|
+
break;
|
163
|
+
|
124
164
|
default:
|
125
165
|
break;
|
126
166
|
}
|
127
167
|
};
|
128
168
|
|
129
169
|
var cardIconClicked = function cardIconClicked(action, index) {
|
130
|
-
props.
|
170
|
+
if (!props.preview) {
|
171
|
+
props.cardIconClicked(action, index);
|
172
|
+
}
|
131
173
|
};
|
132
174
|
|
133
175
|
var onAddPhoto = function onAddPhoto(photo) {
|
@@ -157,21 +199,10 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
157
199
|
};
|
158
200
|
|
159
201
|
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
|
160
|
-
galleryTitle: "Photo Album",
|
202
|
+
galleryTitle: props.title || "Photo Album",
|
161
203
|
data: album,
|
162
204
|
type: "flat",
|
163
205
|
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
|
-
columnsNumber: columnsNumber,
|
173
|
-
galleryColumnGap: columnGap,
|
174
|
-
galleryRowGap: rowGap,
|
175
206
|
galleryControls: galleryControls,
|
176
207
|
iconClicked: onIconClicked,
|
177
208
|
cardClicked: cardClicked,
|
@@ -189,8 +220,8 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
189
220
|
}, /*#__PURE__*/_react.default.createElement(_AddPhoto.default, {
|
190
221
|
saveHandler: onAddPhoto,
|
191
222
|
cancelHandler: cancelHandler,
|
192
|
-
saveBtnText: 'Add',
|
193
|
-
cancelBtnText: 'Cancel'
|
223
|
+
saveBtnText: props.saveBtnText || 'Add',
|
224
|
+
cancelBtnText: props.saveBtnText || 'Cancel'
|
194
225
|
})), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
195
226
|
modalIsOpen: showImgModal,
|
196
227
|
closeModal: function closeModal() {
|
@@ -213,7 +244,29 @@ var ViewAlbum = function ViewAlbum(_ref) {
|
|
213
244
|
img: openedImg
|
214
245
|
}), /*#__PURE__*/_react.default.createElement(RightIconContainer, {
|
215
246
|
onClick: nextPhoto
|
216
|
-
}, /*#__PURE__*/_react.default.createElement(_ai.AiOutlineArrowRight, null)))
|
247
|
+
}, /*#__PURE__*/_react.default.createElement(_ai.AiOutlineArrowRight, null))), /*#__PURE__*/_react.default.createElement(_ReactModal.default, {
|
248
|
+
modalIsOpen: showConfigModal,
|
249
|
+
closeModal: function closeModal() {
|
250
|
+
return setShowConfigModal(false);
|
251
|
+
},
|
252
|
+
exitModalButton: function exitModalButton(e) {
|
253
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
254
|
+
}
|
255
|
+
}, /*#__PURE__*/_react.default.createElement(_Tabs.default, {
|
256
|
+
title: "Photo Album Config",
|
257
|
+
tabs: tabs,
|
258
|
+
id: "styling"
|
259
|
+
}, /*#__PURE__*/_react.default.createElement(_PhotoAlbumPreview.default, {
|
260
|
+
componentProps: {
|
261
|
+
album: album,
|
262
|
+
title: props.title || 'Photo Album',
|
263
|
+
preview: true
|
264
|
+
},
|
265
|
+
formChanged: formChanged
|
266
|
+
}), /*#__PURE__*/_react.default.createElement(_Community.default, {
|
267
|
+
center: centerContext,
|
268
|
+
id: "community"
|
269
|
+
}))));
|
217
270
|
};
|
218
271
|
|
219
272
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n"])));
|