@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
@@ -0,0 +1,189 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
13
|
+
|
14
|
+
var _Preview = _interopRequireDefault(require("../../Preview/Preview"));
|
15
|
+
|
16
|
+
var _ReusableForm = _interopRequireDefault(require("../../Reusable Components/ReusableForm/ReusableForm"));
|
17
|
+
|
18
|
+
var _globalStyles = require("../globalStyles");
|
19
|
+
|
20
|
+
var _Picker = _interopRequireDefault(require("../../Common Inputs/Picker/Picker"));
|
21
|
+
|
22
|
+
var _TextField = _interopRequireDefault(require("../../Common Inputs/TextField/TextField"));
|
23
|
+
|
24
|
+
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); }
|
25
|
+
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
27
|
+
|
28
|
+
var VideoAlbumPreview = function VideoAlbumPreview(props) {
|
29
|
+
var _useState = (0, _react.useState)({}),
|
30
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
31
|
+
videoAlbumStyles = _useState2[0],
|
32
|
+
setVideoAlbumStyles = _useState2[1];
|
33
|
+
|
34
|
+
var initialValues = {
|
35
|
+
headerStyles: {
|
36
|
+
headerBackground: '',
|
37
|
+
padding: 0,
|
38
|
+
titleColor: '',
|
39
|
+
titleFontSize: '',
|
40
|
+
titleFontWeight: '',
|
41
|
+
controlsStyles: {
|
42
|
+
iconSize: '',
|
43
|
+
iconColor: ''
|
44
|
+
}
|
45
|
+
},
|
46
|
+
customCardStyles: {
|
47
|
+
cardBackgroundColor: '',
|
48
|
+
onHoverBackgroundColor: '',
|
49
|
+
cardRadius: '',
|
50
|
+
cardTitleFontSize: '',
|
51
|
+
cardTitleFontWeight: '',
|
52
|
+
cardTitleColor: '',
|
53
|
+
cardImageRadius: '',
|
54
|
+
cardDescriptionFontSize: '',
|
55
|
+
cardDescriptionColor: '',
|
56
|
+
cardPadding: 0,
|
57
|
+
imgSize: 0,
|
58
|
+
cardBorderSize: 0,
|
59
|
+
cardBorderColor: 'purple'
|
60
|
+
}
|
61
|
+
};
|
62
|
+
var sections = [{
|
63
|
+
title: "Header Styles",
|
64
|
+
body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
|
65
|
+
label: "Header Background",
|
66
|
+
name: "headerStyles.headerBackground"
|
67
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
68
|
+
type: "number",
|
69
|
+
label: "Padding",
|
70
|
+
name: "headerStyles.padding"
|
71
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
72
|
+
label: "Title Color",
|
73
|
+
name: "headerStyles.titleColor"
|
74
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
75
|
+
type: "number",
|
76
|
+
label: "Title Font Size",
|
77
|
+
name: "headerStyles.titleFontSize"
|
78
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
79
|
+
type: "number",
|
80
|
+
label: "Title Font Weight",
|
81
|
+
name: "headerStyles.titleFontWeight"
|
82
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
83
|
+
type: "number",
|
84
|
+
label: "Controls Size",
|
85
|
+
name: "headerStyles.controlsStyles.iconSize"
|
86
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
87
|
+
label: "Controls Color",
|
88
|
+
name: "headerStyles.controlsStyles.iconColor"
|
89
|
+
})]
|
90
|
+
}, {
|
91
|
+
title: "Card Styles",
|
92
|
+
body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
|
93
|
+
label: "Card Background",
|
94
|
+
name: "customCardStyles.cardBackgroundColor"
|
95
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
96
|
+
label: "Hover Color",
|
97
|
+
name: "customCardStyles.onHoverBackgroundColor"
|
98
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
99
|
+
type: "number",
|
100
|
+
label: "Card Radius",
|
101
|
+
name: "customCardStyles.cardRadius"
|
102
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
103
|
+
type: "number",
|
104
|
+
label: "Title Font Size",
|
105
|
+
name: "customCardStyles.cardTitleFontSize"
|
106
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
107
|
+
type: "number",
|
108
|
+
label: "Title Font Weight",
|
109
|
+
name: "customCardStyles.cardTitleFontWeight"
|
110
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
111
|
+
label: "Title Color",
|
112
|
+
name: "customCardStyles.cardTitleColor"
|
113
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
114
|
+
type: "number",
|
115
|
+
label: "Card Image Radius",
|
116
|
+
name: "customCardStyles.cardImageRadius"
|
117
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
118
|
+
type: "number",
|
119
|
+
label: "Artist Font Size",
|
120
|
+
name: "customCardStyles.cardDescriptionFontSize"
|
121
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
122
|
+
label: "Artist Font Color",
|
123
|
+
name: "customCardStyles.cardDescriptionColor"
|
124
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
125
|
+
type: "number",
|
126
|
+
label: "Card Padding",
|
127
|
+
name: "customCardStyles.cardPadding"
|
128
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
129
|
+
type: "number",
|
130
|
+
label: "Image Size",
|
131
|
+
name: "customCardStyles.imgSize"
|
132
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
133
|
+
type: "number",
|
134
|
+
label: "Border Size",
|
135
|
+
name: "customCardStyles.cardBorderSize"
|
136
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
137
|
+
label: "Border Color",
|
138
|
+
name: "customCardStyles.cardBorderColor"
|
139
|
+
})]
|
140
|
+
}];
|
141
|
+
|
142
|
+
var handleChange = function handleChange(values) {
|
143
|
+
if (values) {
|
144
|
+
props.formChanged(values);
|
145
|
+
setVideoAlbumStyles(values);
|
146
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
147
|
+
}
|
148
|
+
};
|
149
|
+
|
150
|
+
var submitHandler = function submitHandler(values) {
|
151
|
+
console.log(values);
|
152
|
+
};
|
153
|
+
|
154
|
+
var cancelHandler = function cancelHandler() {
|
155
|
+
console.log('Canceled');
|
156
|
+
};
|
157
|
+
|
158
|
+
return /*#__PURE__*/_react.default.createElement(_globalStyles.Container, null, /*#__PURE__*/_react.default.createElement(_globalStyles.Left, null, /*#__PURE__*/_react.default.createElement(_ReusableForm.default, {
|
159
|
+
formTitle: "Video Albums Styles",
|
160
|
+
initialValues: initialValues,
|
161
|
+
sections: sections,
|
162
|
+
headerStyles: {
|
163
|
+
padding: 10,
|
164
|
+
headerBackground: 'black',
|
165
|
+
titleColor: '#ffff'
|
166
|
+
},
|
167
|
+
sectionHeaderStyles: {
|
168
|
+
padding: 6,
|
169
|
+
headerBackground: '#FE1744',
|
170
|
+
titleColor: '#ffff'
|
171
|
+
},
|
172
|
+
bodyPadding: 10,
|
173
|
+
saveBtnText: "Save",
|
174
|
+
cancelBtnText: "Cancel",
|
175
|
+
saveBtnHandle: submitHandler,
|
176
|
+
cancelHandler: cancelHandler,
|
177
|
+
handleChange: handleChange,
|
178
|
+
bodyRowGap: 20,
|
179
|
+
bodyColumnGap: 10
|
180
|
+
})), /*#__PURE__*/_react.default.createElement(_globalStyles.Right, null, /*#__PURE__*/_react.default.createElement(_Preview.default, {
|
181
|
+
type: 'Video-Album',
|
182
|
+
componentProps: props.componentProps,
|
183
|
+
stylingProps: videoAlbumStyles
|
184
|
+
})));
|
185
|
+
};
|
186
|
+
|
187
|
+
VideoAlbumPreview.defaultProps = {};
|
188
|
+
var _default = VideoAlbumPreview;
|
189
|
+
exports.default = _default;
|
@@ -0,0 +1,175 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
13
|
+
|
14
|
+
var _Preview = _interopRequireDefault(require("../../Preview/Preview"));
|
15
|
+
|
16
|
+
var _ReusableForm = _interopRequireDefault(require("../../Reusable Components/ReusableForm/ReusableForm"));
|
17
|
+
|
18
|
+
var _globalStyles = require("../globalStyles");
|
19
|
+
|
20
|
+
var _Picker = _interopRequireDefault(require("../../Common Inputs/Picker/Picker"));
|
21
|
+
|
22
|
+
var _TextField = _interopRequireDefault(require("../../Common Inputs/TextField/TextField"));
|
23
|
+
|
24
|
+
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); }
|
25
|
+
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
27
|
+
|
28
|
+
var VideoAlbumsPreview = function VideoAlbumsPreview(props) {
|
29
|
+
var _useState = (0, _react.useState)({}),
|
30
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
31
|
+
videoAlbumsStyles = _useState2[0],
|
32
|
+
setVideoAlbumsStyles = _useState2[1];
|
33
|
+
|
34
|
+
var initialValues = {
|
35
|
+
headerStyles: {
|
36
|
+
headerBackground: '',
|
37
|
+
padding: 0,
|
38
|
+
titleColor: '',
|
39
|
+
titleFontSize: '',
|
40
|
+
titleFontWeight: '',
|
41
|
+
controlsStyles: {
|
42
|
+
iconSize: '',
|
43
|
+
iconColor: ''
|
44
|
+
}
|
45
|
+
},
|
46
|
+
customCardStyles: {
|
47
|
+
cardBackgroundColor: '',
|
48
|
+
onHoverBackgroundColor: '',
|
49
|
+
cardRadius: '',
|
50
|
+
cardTitleFontSize: '',
|
51
|
+
cardTitleFontWeight: '',
|
52
|
+
cardTitleColor: '',
|
53
|
+
cardImageRadius: '',
|
54
|
+
cardPadding: 0,
|
55
|
+
cardBorderSize: 0,
|
56
|
+
cardBorderColor: 'purple'
|
57
|
+
}
|
58
|
+
};
|
59
|
+
var sections = [{
|
60
|
+
title: "Header Styles",
|
61
|
+
body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
|
62
|
+
label: "Header Background",
|
63
|
+
name: "headerStyles.headerBackground"
|
64
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
65
|
+
type: "number",
|
66
|
+
label: "Padding",
|
67
|
+
name: "headerStyles.padding"
|
68
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
69
|
+
label: "Title Color",
|
70
|
+
name: "headerStyles.titleColor"
|
71
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
72
|
+
type: "number",
|
73
|
+
label: "Title Font Size",
|
74
|
+
name: "headerStyles.titleFontSize"
|
75
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
76
|
+
type: "number",
|
77
|
+
label: "Title Font Weight",
|
78
|
+
name: "headerStyles.titleFontWeight"
|
79
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
80
|
+
type: "number",
|
81
|
+
label: "Controls Size",
|
82
|
+
name: "headerStyles.controlsStyles.iconSize"
|
83
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
84
|
+
label: "Controls Color",
|
85
|
+
name: "headerStyles.controlsStyles.iconColor"
|
86
|
+
})]
|
87
|
+
}, {
|
88
|
+
title: "Card Styles",
|
89
|
+
body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
|
90
|
+
label: "Card Background",
|
91
|
+
name: "customCardStyles.cardBackgroundColor"
|
92
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
93
|
+
label: "Hover Color",
|
94
|
+
name: "customCardStyles.onHoverBackgroundColor"
|
95
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
96
|
+
type: "number",
|
97
|
+
label: "Card Radius",
|
98
|
+
name: "customCardStyles.cardRadius"
|
99
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
100
|
+
type: "number",
|
101
|
+
label: "Title Font Size",
|
102
|
+
name: "customCardStyles.cardTitleFontSize"
|
103
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
104
|
+
type: "number",
|
105
|
+
label: "Title Font Weight",
|
106
|
+
name: "customCardStyles.cardTitleFontWeight"
|
107
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
108
|
+
label: "Title Color",
|
109
|
+
name: "customCardStyles.cardTitleColor"
|
110
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
111
|
+
type: "number",
|
112
|
+
label: "Card Image Radius",
|
113
|
+
name: "customCardStyles.cardImageRadius"
|
114
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
115
|
+
type: "number",
|
116
|
+
label: "Card Padding",
|
117
|
+
name: "customCardStyles.cardPadding"
|
118
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
119
|
+
type: "number",
|
120
|
+
label: "Border Size",
|
121
|
+
name: "customCardStyles.cardBorderSize"
|
122
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
123
|
+
label: "Border Color",
|
124
|
+
name: "customCardStyles.cardBorderColor"
|
125
|
+
})]
|
126
|
+
}];
|
127
|
+
|
128
|
+
var handleChange = function handleChange(values) {
|
129
|
+
if (values) {
|
130
|
+
props.formChanged(values);
|
131
|
+
setVideoAlbumsStyles(values);
|
132
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
133
|
+
}
|
134
|
+
};
|
135
|
+
|
136
|
+
var submitHandler = function submitHandler(values) {
|
137
|
+
console.log(values);
|
138
|
+
};
|
139
|
+
|
140
|
+
var cancelHandler = function cancelHandler() {
|
141
|
+
console.log('Canceled');
|
142
|
+
};
|
143
|
+
|
144
|
+
return /*#__PURE__*/_react.default.createElement(_globalStyles.Container, null, /*#__PURE__*/_react.default.createElement(_globalStyles.Left, null, /*#__PURE__*/_react.default.createElement(_ReusableForm.default, {
|
145
|
+
formTitle: "Video Albums Styles",
|
146
|
+
initialValues: initialValues,
|
147
|
+
sections: sections,
|
148
|
+
headerStyles: {
|
149
|
+
padding: 10,
|
150
|
+
headerBackground: 'black',
|
151
|
+
titleColor: '#ffff'
|
152
|
+
},
|
153
|
+
sectionHeaderStyles: {
|
154
|
+
padding: 6,
|
155
|
+
headerBackground: '#FE1744',
|
156
|
+
titleColor: '#ffff'
|
157
|
+
},
|
158
|
+
bodyPadding: 10,
|
159
|
+
saveBtnText: "Save",
|
160
|
+
cancelBtnText: "Cancel",
|
161
|
+
saveBtnHandle: submitHandler,
|
162
|
+
cancelHandler: cancelHandler,
|
163
|
+
handleChange: handleChange,
|
164
|
+
bodyRowGap: 20,
|
165
|
+
bodyColumnGap: 10
|
166
|
+
})), /*#__PURE__*/_react.default.createElement(_globalStyles.Right, null, /*#__PURE__*/_react.default.createElement(_Preview.default, {
|
167
|
+
type: 'Video-Albums',
|
168
|
+
componentProps: props.componentProps,
|
169
|
+
stylingProps: videoAlbumsStyles
|
170
|
+
})));
|
171
|
+
};
|
172
|
+
|
173
|
+
VideoAlbumsPreview.defaultProps = {};
|
174
|
+
var _default = VideoAlbumsPreview;
|
175
|
+
exports.default = _default;
|
@@ -0,0 +1,172 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
11
|
+
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
13
|
+
|
14
|
+
var _Preview = _interopRequireDefault(require("../../Preview/Preview"));
|
15
|
+
|
16
|
+
var _ReusableForm = _interopRequireDefault(require("../../Reusable Components/ReusableForm/ReusableForm"));
|
17
|
+
|
18
|
+
var _globalStyles = require("../globalStyles");
|
19
|
+
|
20
|
+
var _Picker = _interopRequireDefault(require("../../Common Inputs/Picker/Picker"));
|
21
|
+
|
22
|
+
var _TextField = _interopRequireDefault(require("../../Common Inputs/TextField/TextField"));
|
23
|
+
|
24
|
+
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); }
|
25
|
+
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
27
|
+
|
28
|
+
var VideoPreview = function VideoPreview(props) {
|
29
|
+
var _useState = (0, _react.useState)({}),
|
30
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
31
|
+
videoStyles = _useState2[0],
|
32
|
+
setVideoStyles = _useState2[1];
|
33
|
+
|
34
|
+
var initialValues = {
|
35
|
+
headerStyles: {
|
36
|
+
headerBackground: '',
|
37
|
+
padding: 0,
|
38
|
+
titleColor: '',
|
39
|
+
titleFontSize: '',
|
40
|
+
titleFontWeight: ''
|
41
|
+
},
|
42
|
+
iconsColor: '',
|
43
|
+
backgroundColor: '',
|
44
|
+
detailsPadding: '',
|
45
|
+
titleFontSize: '',
|
46
|
+
titleColor: '',
|
47
|
+
discFontSize: '',
|
48
|
+
discColor: '',
|
49
|
+
dateFontSize: '',
|
50
|
+
dateColor: '',
|
51
|
+
commentBackgroundColor: '',
|
52
|
+
commentTitleColor: '',
|
53
|
+
commentTitleFontSize: ''
|
54
|
+
};
|
55
|
+
var sections = [{
|
56
|
+
title: "Header Styles",
|
57
|
+
body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
|
58
|
+
label: "Header Background",
|
59
|
+
name: "headerStyles.headerBackground"
|
60
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
61
|
+
type: "number",
|
62
|
+
label: "Padding",
|
63
|
+
name: "headerStyles.padding"
|
64
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
65
|
+
label: "Title Color",
|
66
|
+
name: "headerStyles.titleColor"
|
67
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
68
|
+
type: "number",
|
69
|
+
label: "Title Font Size",
|
70
|
+
name: "headerStyles.titleFontSize"
|
71
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
72
|
+
type: "number",
|
73
|
+
label: "Title Font Weight",
|
74
|
+
name: "headerStyles.titleFontWeight"
|
75
|
+
})]
|
76
|
+
}, {
|
77
|
+
title: "Player Styles",
|
78
|
+
body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
|
79
|
+
label: "Icons Color",
|
80
|
+
name: "iconsColor"
|
81
|
+
})]
|
82
|
+
}, {
|
83
|
+
title: "Space Styles",
|
84
|
+
body: [/*#__PURE__*/_react.default.createElement(_Picker.default, {
|
85
|
+
label: "Background Color",
|
86
|
+
name: "backgroundColor"
|
87
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
88
|
+
type: "number",
|
89
|
+
label: "Details Padding",
|
90
|
+
name: "detailsPadding"
|
91
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
92
|
+
type: "number",
|
93
|
+
label: "Title Font Size",
|
94
|
+
name: "titleFontSize"
|
95
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
96
|
+
label: "Title Color",
|
97
|
+
name: "titleColor"
|
98
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
99
|
+
type: "number",
|
100
|
+
label: "Discription Font Size",
|
101
|
+
name: "discFontSize"
|
102
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
103
|
+
label: "Discription Color",
|
104
|
+
name: "discColor"
|
105
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
106
|
+
type: "number",
|
107
|
+
label: "Date Font Size",
|
108
|
+
name: "dateFontSize"
|
109
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
110
|
+
label: "Date Color",
|
111
|
+
name: "dateColor"
|
112
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
113
|
+
label: "Comment Background Color",
|
114
|
+
name: "commentBackgroundColor"
|
115
|
+
}), /*#__PURE__*/_react.default.createElement(_Picker.default, {
|
116
|
+
label: "Comment Title Color",
|
117
|
+
name: "commentTitleColor"
|
118
|
+
}), /*#__PURE__*/_react.default.createElement(_TextField.default, {
|
119
|
+
type: "number",
|
120
|
+
label: "Comment title Font Size",
|
121
|
+
name: "commentTitleFontSize"
|
122
|
+
})]
|
123
|
+
}];
|
124
|
+
|
125
|
+
var handleChange = function handleChange(values) {
|
126
|
+
if (values) {
|
127
|
+
props.formChanged(values);
|
128
|
+
setVideoStyles(values);
|
129
|
+
localStorage.setItem('formStyles', JSON.stringify(values));
|
130
|
+
}
|
131
|
+
};
|
132
|
+
|
133
|
+
var submitHandler = function submitHandler(values) {
|
134
|
+
console.log(values);
|
135
|
+
};
|
136
|
+
|
137
|
+
var cancelHandler = function cancelHandler() {
|
138
|
+
console.log('Canceled');
|
139
|
+
};
|
140
|
+
|
141
|
+
return /*#__PURE__*/_react.default.createElement(_globalStyles.Container, null, /*#__PURE__*/_react.default.createElement(_globalStyles.Left, null, /*#__PURE__*/_react.default.createElement(_ReusableForm.default, {
|
142
|
+
formTitle: "Video Styles",
|
143
|
+
initialValues: initialValues,
|
144
|
+
sections: sections,
|
145
|
+
headerStyles: {
|
146
|
+
padding: 10,
|
147
|
+
headerBackground: 'black',
|
148
|
+
titleColor: '#ffff'
|
149
|
+
},
|
150
|
+
sectionHeaderStyles: {
|
151
|
+
padding: 6,
|
152
|
+
headerBackground: '#FE1744',
|
153
|
+
titleColor: '#ffff'
|
154
|
+
},
|
155
|
+
bodyPadding: 10,
|
156
|
+
saveBtnText: "Save",
|
157
|
+
cancelBtnText: "Cancel",
|
158
|
+
saveBtnHandle: submitHandler,
|
159
|
+
cancelHandler: cancelHandler,
|
160
|
+
handleChange: handleChange,
|
161
|
+
bodyRowGap: 20,
|
162
|
+
bodyColumnGap: 10
|
163
|
+
})), /*#__PURE__*/_react.default.createElement(_globalStyles.Right, null, /*#__PURE__*/_react.default.createElement(_Preview.default, {
|
164
|
+
type: 'Video-Space',
|
165
|
+
componentProps: props.componentProps,
|
166
|
+
stylingProps: videoStyles
|
167
|
+
})));
|
168
|
+
};
|
169
|
+
|
170
|
+
VideoPreview.defaultProps = {};
|
171
|
+
var _default = VideoPreview;
|
172
|
+
exports.default = _default;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.Right = exports.Left = exports.Container = void 0;
|
9
|
+
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
11
|
+
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
13
|
+
|
14
|
+
var _templateObject, _templateObject2, _templateObject3;
|
15
|
+
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n display: flex;\n background-color: 'transparent';\n align-items: flex-start;\n"])));
|
17
|
+
|
18
|
+
exports.Container = Container;
|
19
|
+
|
20
|
+
var Left = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex: 1;\n"])));
|
21
|
+
|
22
|
+
exports.Left = Left;
|
23
|
+
|
24
|
+
var Right = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n flex: 2;\n position: sticky;\n top: 0;\n bottom: 0;\n"])));
|
25
|
+
|
26
|
+
exports.Right = Right;
|
@@ -23,7 +23,7 @@ var _globalCardStyles = require("../globalCardStyles");
|
|
23
23
|
|
24
24
|
var _ai = require("react-icons/ai");
|
25
25
|
|
26
|
-
var _templateObject, _templateObject2, _templateObject3;
|
26
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
27
27
|
|
28
28
|
var _excluded = ["title", "description", "img", "cardControls"];
|
29
29
|
|
@@ -47,14 +47,19 @@ var CardStyle10 = function CardStyle10(_ref) {
|
|
47
47
|
props.iconClicked(action, props.index);
|
48
48
|
};
|
49
49
|
|
50
|
+
var cardClicked = function cardClicked() {
|
51
|
+
props.cardClicked();
|
52
|
+
};
|
53
|
+
|
50
54
|
return /*#__PURE__*/_react.default.createElement(Card, Object.assign({
|
55
|
+
onClick: cardClicked,
|
51
56
|
onMouseEnter: function onMouseEnter(e) {
|
52
57
|
return setShowIcons(true);
|
53
58
|
},
|
54
59
|
onMouseLeave: function onMouseLeave(e) {
|
55
60
|
return setShowIcons(false);
|
56
61
|
}
|
57
|
-
}, props), /*#__PURE__*/_react.default.createElement(SvgWrapper, props, /*#__PURE__*/_react.default.createElement(_ai.AiFillFolderOpen,
|
62
|
+
}, props), /*#__PURE__*/_react.default.createElement(SvgWrapper, props, /*#__PURE__*/_react.default.createElement(_ai.AiFillFolderOpen, props)), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, props, title), /*#__PURE__*/_react.default.createElement(CardDescription, props, description)), /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
|
58
63
|
controls: cardControls,
|
59
64
|
show: showIcons,
|
60
65
|
onIconClicked: iconCliked,
|
@@ -64,18 +69,18 @@ var CardStyle10 = function CardStyle10(_ref) {
|
|
64
69
|
iconSize: 20,
|
65
70
|
iconsGap: 10,
|
66
71
|
maxIcons: 0,
|
67
|
-
iconColor: "#FE1744",
|
68
72
|
dropdownFontSize: 10
|
69
73
|
}, props.controlsStyles)));
|
70
74
|
};
|
71
75
|
|
72
76
|
var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-direction: column;\n row-gap: 10px;\n"])));
|
73
|
-
var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n
|
77
|
+
var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n\n"])));
|
74
78
|
|
75
|
-
var SvgWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\n svg{\n width: 70px;\n height: 70px;\n fill: ", "\n }\n"])), function (props) {
|
79
|
+
var SvgWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\n & svg{\n width: 70px;\n height: 70px;\n fill: ", "\n }\n"])), function (props) {
|
76
80
|
return props.iconColor;
|
77
81
|
});
|
78
82
|
|
83
|
+
var CardDescription = (0, _styledComponents.default)(_globalCardStyles.Description)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n text-align: center;\n"])));
|
79
84
|
CardStyle10.defaultProps = {};
|
80
85
|
var _default = CardStyle10;
|
81
86
|
exports.default = _default;
|
@@ -49,9 +49,11 @@ var CardStyle11 = function CardStyle11(_ref) {
|
|
49
49
|
props.cardClicked();
|
50
50
|
};
|
51
51
|
|
52
|
-
return /*#__PURE__*/_react.default.createElement(Card, Object.assign({
|
52
|
+
return /*#__PURE__*/_react.default.createElement(Card, props, /*#__PURE__*/_react.default.createElement(SvgWrapper, Object.assign({
|
53
53
|
onClick: cardClicked
|
54
|
-
}, props), /*#__PURE__*/_react.default.createElement(
|
54
|
+
}, props), /*#__PURE__*/_react.default.createElement(_bi.BiNotepad, null)), /*#__PURE__*/_react.default.createElement(Content, props, /*#__PURE__*/_react.default.createElement(_globalCardStyles.Title, Object.assign({
|
55
|
+
onClick: cardClicked
|
56
|
+
}, props), title), /*#__PURE__*/_react.default.createElement(Date, props, date)), props.cardControls && /*#__PURE__*/_react.default.createElement(_Controls.default, Object.assign({
|
55
57
|
controls: props.cardControls,
|
56
58
|
show: showIcons,
|
57
59
|
onIconClicked: iconClicked
|
@@ -60,11 +62,13 @@ var CardStyle11 = function CardStyle11(_ref) {
|
|
60
62
|
|
61
63
|
var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n gap: 10px;\n"])));
|
62
64
|
|
63
|
-
var Date = _styledComponents.default.h5(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color:
|
65
|
+
var Date = _styledComponents.default.h5(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n font-weight: 300;\n"])), function (props) {
|
66
|
+
return props.dateColor || 'gray';
|
67
|
+
});
|
64
68
|
|
65
69
|
var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n"])));
|
66
70
|
|
67
|
-
var SvgWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n
|
71
|
+
var SvgWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n svg{\n width: 50px;\n height: 50px;\n fill: ", "\n }\n"])), function (props) {
|
68
72
|
return props.iconColor;
|
69
73
|
});
|
70
74
|
|
@@ -21,7 +21,7 @@ var _Controls = _interopRequireDefault(require("../../Controls/Controls"));
|
|
21
21
|
|
22
22
|
var _globalCardStyles = require("../globalCardStyles");
|
23
23
|
|
24
|
-
var _templateObject;
|
24
|
+
var _templateObject, _templateObject2;
|
25
25
|
|
26
26
|
var _excluded = ["title", "description", "path"];
|
27
27
|
|
@@ -48,7 +48,7 @@ var CardStyle3 = function CardStyle3(_ref) {
|
|
48
48
|
props.cardClicked(path);
|
49
49
|
};
|
50
50
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(
|
51
|
+
return /*#__PURE__*/_react.default.createElement(Card, Object.assign({
|
52
52
|
onClick: cardClicked,
|
53
53
|
onMouseEnter: function onMouseEnter(e) {
|
54
54
|
return setShowIcons(true);
|
@@ -66,6 +66,7 @@ var CardStyle3 = function CardStyle3(_ref) {
|
|
66
66
|
var Content = (0, _styledComponents.default)(_globalCardStyles.globalContent)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n row-gap: ", "px;\n"])), function (props) {
|
67
67
|
return props.rowGap;
|
68
68
|
});
|
69
|
+
var Card = (0, _styledComponents.default)(_globalCardStyles.MainCard)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n"])));
|
69
70
|
CardStyle3.defaultProps = {};
|
70
71
|
var _default = CardStyle3;
|
71
72
|
exports.default = _default;
|