@mohamed-karawia/library 0.1.5 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/stories/Reusable Components/fakeData.js +24 -4
- package/dist/stories/helpers/util.js +16 -14
- package/package.json +1 -1
- package/src/stories/Reusable Components/fakeData.js +5 -0
- package/src/stories/helpers/util.js +1 -0
- package/.github/workflows/chromatic.yml +0 -26
- package/.storybook/main.js +0 -21
- package/.storybook/middleware.js +0 -28
- package/.storybook/preview.js +0 -9
- package/build-storybook.log +0 -2704
- package/dist/stories/API/API.stories.js +0 -24
- package/dist/stories/Agora/Chat/Chat.stories.js +0 -24
- package/dist/stories/Agora/Room/Room.stories.js +0 -24
- package/dist/stories/Buttons/Buttons/Buttons.stories.js +0 -39
- package/dist/stories/Buttons/ReactModal/ReactModal.stories.js +0 -30
- package/dist/stories/Chat/Chat.stories.js +0 -76
- package/dist/stories/Common Inputs/CheckboxGroup/CheckboxGroup.stories.js +0 -58
- package/dist/stories/Common Inputs/CustomAutoComplete/CustomAutoComplete.stories.js +0 -56
- package/dist/stories/Common Inputs/CustomDropzone/CustomDropzone.stories.js +0 -47
- package/dist/stories/Common Inputs/CustomSelect/CustomSelect.stories.js +0 -61
- package/dist/stories/Common Inputs/CustomTextarea/CustomTextarea.stories.js +0 -48
- package/dist/stories/Common Inputs/DatePicker/DatePicker.stories.js +0 -60
- package/dist/stories/Common Inputs/EditorComponent/EditorComponent.stories.js +0 -62
- package/dist/stories/Common Inputs/Formik/InputField/InputField.stories.js +0 -43
- package/dist/stories/Common Inputs/Formik/RadioField/RadioField.stories.js +0 -60
- package/dist/stories/Common Inputs/RadioInput/RadioInput.stories.js +0 -50
- package/dist/stories/Common Inputs/RichTextInput/RichTextInput.stories.js +0 -51
- package/dist/stories/Common Inputs/TextField/TextField.stories.js +0 -48
- package/dist/stories/Containers/BaseMaterial.stories.js +0 -24
- package/dist/stories/Containers/WidgetExample/WidgetBody.stories.js +0 -24
- package/dist/stories/Containers/WidgetExample/WidgetExample.stories.js +0 -24
- package/dist/stories/Containers/WidgetExample/WidgetHead.stories.js +0 -24
- package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.stories.js +0 -22
- package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.stories.js +0 -42
- package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.stories.js +0 -65
- package/dist/stories/Enrollment/Guest/FillForm/FillForm.stories.js +0 -48
- package/dist/stories/Events/CreateEvent/CreateEvent.stories.js +0 -30
- package/dist/stories/Events/Event/Event.stories.js +0 -33
- package/dist/stories/Events/EventsList/EventsList.stories.js +0 -44
- package/dist/stories/Forms/AddPhoto/AddPhoto.stories.js +0 -47
- package/dist/stories/Forms/AddSong/AddSong.stories.js +0 -37
- package/dist/stories/Forms/AddVideo/AddVideo.stories.js +0 -33
- package/dist/stories/Forms/Create-Profile/CreateProfile.stories.js +0 -49
- package/dist/stories/Forms/Create-Profile/subcomponents/LogoUploader.stories.js +0 -42
- package/dist/stories/Forms/Create-Profile/subcomponents/ProfilePhoto.stories.js +0 -41
- package/dist/stories/Forms/Create-Profile/subcomponents/ResetBtn.stories.js +0 -32
- package/dist/stories/Forms/CreateAlbum/CreateAlbum.stories.js +0 -47
- package/dist/stories/Forms/CreateAnnouncementForm/CreateAnnouncementForm.stories.js +0 -58
- package/dist/stories/Forms/CreateMusicAlbum/CreateMusicAlbum.stories.js +0 -47
- package/dist/stories/Forms/CreateProfile/CreateProfile.stories.js +0 -24
- package/dist/stories/Forms/CreateProfile-3/CreateProfile.stories.js +0 -24
- package/dist/stories/Forms/CreateUser/CreateUser.stories.js +0 -26
- package/dist/stories/Forms/CreateVideoAlbum/CreateVideoAlbum.stories.js +0 -37
- package/dist/stories/Forms/Form/Form.stories.js +0 -24
- package/dist/stories/Forms/NewProfile/NewProfile.stories.js +0 -24
- package/dist/stories/Layout/Body/Body.stories.js +0 -30
- package/dist/stories/Layout/Center/Center.stories.js +0 -24
- package/dist/stories/Layout/Head/Head.stories.js +0 -24
- package/dist/stories/Layout/Left/Left.stories.js +0 -24
- package/dist/stories/Layout/Right/Right.stories.js +0 -24
- package/dist/stories/Library/CreateFolder/CreateFolder.stories.js +0 -45
- package/dist/stories/Library/Folders/Folders.stories.js +0 -55
- package/dist/stories/Library/Notes/Notes.stories.js +0 -42
- package/dist/stories/Library/ViewNote/ViewNote.stories.js +0 -24
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.stories.js +0 -115
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.stories.js +0 -107
- package/dist/stories/Navbar/Navbar.stories.js +0 -41
- package/dist/stories/Pages/Blank/Blank.stories.js +0 -24
- package/dist/stories/Pages/Centered/Centered.stories.js +0 -24
- package/dist/stories/Pages/Chat/Chat.stories.js +0 -74
- package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.stories.js +0 -22
- package/dist/stories/Pages/Enrollment/FillForm/FillForm.stories.js +0 -22
- package/dist/stories/Pages/Enrollment/Forms/Forms.stories.js +0 -22
- package/dist/stories/Pages/Events/Event/Event.stories.js +0 -22
- package/dist/stories/Pages/Events/Events/Events.stories.js +0 -22
- package/dist/stories/Pages/Library/Folders/Library.stories.js +0 -22
- package/dist/stories/Pages/Library/Notes/Notes.stories.js +0 -22
- package/dist/stories/Pages/Music/MusicAlbum/Music.stories.js +0 -22
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.stories.js +0 -22
- package/dist/stories/Pages/Photos/Album/Album.stories.js +0 -22
- package/dist/stories/Pages/Photos/Albums/Albums.stories.js +0 -22
- package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.stories.js +0 -22
- package/dist/stories/Pages/Video/VideoAlbum/Video.stories.js +0 -22
- package/dist/stories/Pages/ViewWorld/ViewWorld.stories.js +0 -264
- package/dist/stories/Photo Album/DetailedPhoto/DetailedPhoto.stories.js +0 -32
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.stories.js +0 -115
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.stories.js +0 -102
- package/dist/stories/Reusable Components/Cards/Card-style-1/CardStyle1.stories.js +0 -35
- package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.stories.js +0 -37
- package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.stories.js +0 -40
- package/dist/stories/Reusable Components/Cards/Card-style-2/CardStyle2.stories.js +0 -37
- package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.stories.js +0 -34
- package/dist/stories/Reusable Components/Cards/Card-style-4/CardStyle4.stories.js +0 -39
- package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.stories.js +0 -27
- package/dist/stories/Reusable Components/Cards/Card-style-7/CardStyle7.stories.js +0 -37
- package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.stories.js +0 -44
- package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.stories.js +0 -27
- package/dist/stories/Reusable Components/Cards/Card.stories.js +0 -132
- package/dist/stories/Reusable Components/Controls/Controls.stories.js +0 -49
- package/dist/stories/Reusable Components/Gallery/Gallery.stories.js +0 -56
- package/dist/stories/Reusable Components/Lists/Cards/ListCard-1.stories.js +0 -1
- package/dist/stories/Reusable Components/Lists/List.stories.js +0 -1
- package/dist/stories/Reusable Components/Mention/Mention.stories.js +0 -66
- package/dist/stories/Reusable Components/ReusableForm/ReusableForm.stories.js +0 -207
- package/dist/stories/Reusable Components/ReusableHeader/ReusableHeader.stories.js +0 -35
- package/dist/stories/Reusable Components/ReusableList/ReusableList.stories.js +0 -84
- package/dist/stories/Reusable Components/SearchCard/SearchCard.stories.js +0 -24
- package/dist/stories/Reusable Components/SpaceContainer/SpaceContainer.stories.js +0 -80
- package/dist/stories/Reusable Components/Spinner/Spinner.stories.js +0 -22
- package/dist/stories/Reusable Components/WidgetContainer/WidgetContainer.stories.js +0 -80
- package/dist/stories/Spaces/WelcomeSpace/WelcomeSpace.stories.js +0 -24
- package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.stories.js +0 -101
- package/dist/stories/VideoAlbum/Comments/Comments.stories.js +0 -45
- package/dist/stories/VideoAlbum/VideoPlayer/VideoPlayer.stories.js +0 -149
- package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.stories.js +0 -49
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.stories.js +0 -113
- package/dist/stories/Widgets/LogoWidget/LogoWidget.stories.js +0 -26
- package/dist/stories/Widgets/MusicPlayer/MusicPlayer.stories.js +0 -44
- package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.stories.js +0 -52
- package/dist/stories/Widgets/SpacesList/SpacesList.stories.js +0 -52
- package/dist/stories/Widgets/SpacesList/SpacesListItem.stories.js +0 -24
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/src/stories/API/API.stories.js +0 -10
- package/src/stories/Agora/Chat/Chat.stories.jsx +0 -10
- package/src/stories/Agora/Room/Room.stories.jsx +0 -10
- package/src/stories/Buttons/Buttons/Buttons.stories.jsx +0 -24
- package/src/stories/Buttons/ReactModal/ReactModal.stories.jsx +0 -18
- package/src/stories/Chat/Chat.stories.jsx +0 -59
- package/src/stories/Common Inputs/CheckboxGroup/CheckboxGroup.stories.jsx +0 -32
- package/src/stories/Common Inputs/CustomAutoComplete/CustomAutoComplete.stories.jsx +0 -35
- package/src/stories/Common Inputs/CustomDropzone/CustomDropzone.stories.jsx +0 -26
- package/src/stories/Common Inputs/CustomSelect/CustomSelect.stories.jsx +0 -36
- package/src/stories/Common Inputs/CustomTextarea/CustomTextarea.stories.jsx +0 -31
- package/src/stories/Common Inputs/DatePicker/DatePicker.stories.jsx +0 -47
- package/src/stories/Common Inputs/EditorComponent/EditorComponent.stories.jsx +0 -60
- package/src/stories/Common Inputs/Formik/InputField/InputField.stories.jsx +0 -27
- package/src/stories/Common Inputs/Formik/RadioField/RadioField.stories.jsx +0 -41
- package/src/stories/Common Inputs/RadioInput/RadioInput.stories.js +0 -30
- package/src/stories/Common Inputs/RichTextInput/RichTextInput.stories.js +0 -45
- package/src/stories/Common Inputs/TextField/TextField.stories.jsx +0 -31
- package/src/stories/Containers/BaseMaterial.stories.js +0 -10
- package/src/stories/Containers/WidgetExample/WidgetBody.stories.js +0 -10
- package/src/stories/Containers/WidgetExample/WidgetExample.stories.js +0 -10
- package/src/stories/Containers/WidgetExample/WidgetHead.stories.js +0 -10
- package/src/stories/Enrollment/Admin/CreateForm/CreateForm.stories.jsx +0 -8
- package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.stories.jsx +0 -36
- package/src/stories/Enrollment/Admin/ViewForms/ViewForms.stories.jsx +0 -66
- package/src/stories/Enrollment/Guest/FillForm/FillForm.stories.jsx +0 -27
- package/src/stories/Events/CreateEvent/CreateEvent.stories.jsx +0 -19
- package/src/stories/Events/Event/Event.stories.jsx +0 -21
- package/src/stories/Events/EventsList/EventsList.stories.jsx +0 -25
- package/src/stories/Forms/AddPhoto/AddPhoto.stories.jsx +0 -37
- package/src/stories/Forms/AddSong/AddSong.stories.jsx +0 -26
- package/src/stories/Forms/AddVideo/AddVideo.stories.jsx +0 -20
- package/src/stories/Forms/Create-Profile/CreateProfile.stories.jsx +0 -36
- package/src/stories/Forms/Create-Profile/subcomponents/LogoUploader.stories.jsx +0 -27
- package/src/stories/Forms/Create-Profile/subcomponents/ProfilePhoto.stories.jsx +0 -26
- package/src/stories/Forms/Create-Profile/subcomponents/ResetBtn.stories.jsx +0 -18
- package/src/stories/Forms/CreateAlbum/CreateAlbum.stories.jsx +0 -37
- package/src/stories/Forms/CreateAnnouncementForm/CreateAnnouncementForm.stories.jsx +0 -44
- package/src/stories/Forms/CreateMusicAlbum/CreateMusicAlbum.stories.jsx +0 -38
- package/src/stories/Forms/CreateProfile/CreateProfile.stories.js +0 -10
- package/src/stories/Forms/CreateProfile-3/CreateProfile.stories.js +0 -10
- package/src/stories/Forms/CreateUser/CreateUser.stories.js +0 -10
- package/src/stories/Forms/CreateVideoAlbum/CreateVideoAlbum.stories.jsx +0 -23
- package/src/stories/Forms/Form/Form.stories.js +0 -10
- package/src/stories/Forms/NewProfile/NewProfile.stories.jsx +0 -10
- package/src/stories/Layout/Body/Body.stories.js +0 -26
- package/src/stories/Layout/Center/Center.stories.js +0 -14
- package/src/stories/Layout/Head/Head.stories.js +0 -10
- package/src/stories/Layout/Left/Left.stories.js +0 -14
- package/src/stories/Layout/Right/Right.stories.js +0 -14
- package/src/stories/Library/CreateFolder/CreateFolder.stories.jsx +0 -32
- package/src/stories/Library/Folders/Folders.stories.jsx +0 -34
- package/src/stories/Library/Notes/Notes.stories.jsx +0 -24
- package/src/stories/Library/ViewNote/ViewNote.stories.jsx +0 -16
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.stories.jsx +0 -60
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.stories.jsx +0 -57
- package/src/stories/Navbar/Navbar.stories.js +0 -25
- package/src/stories/Pages/Blank/Blank.stories.js +0 -10
- package/src/stories/Pages/Centered/Centered.stories.js +0 -14
- package/src/stories/Pages/Chat/Chat.stories.jsx +0 -53
- package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.stories.jsx +0 -8
- package/src/stories/Pages/Enrollment/FillForm/FillForm.stories.jsx +0 -8
- package/src/stories/Pages/Enrollment/Forms/Forms.stories.jsx +0 -8
- package/src/stories/Pages/Events/Event/Event.stories.jsx +0 -8
- package/src/stories/Pages/Events/Events/Events.stories.jsx +0 -8
- package/src/stories/Pages/Library/Folders/Library.stories.jsx +0 -8
- package/src/stories/Pages/Library/Notes/Notes.stories.jsx +0 -8
- package/src/stories/Pages/Music/MusicAlbum/Music.stories.jsx +0 -8
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.stories.jsx +0 -8
- package/src/stories/Pages/Photos/Album/Album.stories.jsx +0 -8
- package/src/stories/Pages/Photos/Albums/Albums.stories.jsx +0 -8
- package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.stories.jsx +0 -8
- package/src/stories/Pages/Video/VideoAlbum/Video.stories.jsx +0 -8
- package/src/stories/Pages/ViewWorld/ViewWorld.stories.js +0 -270
- package/src/stories/Photo Album/DetailedPhoto/DetailedPhoto.stories.jsx +0 -20
- package/src/stories/Photo Album/ViewAlbum/ViewAlbum.stories.jsx +0 -60
- package/src/stories/Photo Album/ViewAlbums/ViewAlbums.stories.jsx +0 -59
- package/src/stories/Reusable Components/Cards/Card-style-1/CardStyle1.stories.jsx +0 -22
- package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.stories.jsx +0 -21
- package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.stories.jsx +0 -21
- package/src/stories/Reusable Components/Cards/Card-style-2/CardStyle2.stories.jsx +0 -24
- package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.stories.jsx +0 -22
- package/src/stories/Reusable Components/Cards/Card-style-4/CardStyle4.stories.jsx +0 -25
- package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.stories.jsx +0 -9
- package/src/stories/Reusable Components/Cards/Card-style-7/CardStyle7.stories.jsx +0 -23
- package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.stories.jsx +0 -29
- package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.stories.jsx +0 -14
- package/src/stories/Reusable Components/Cards/Card.stories.jsx +0 -118
- package/src/stories/Reusable Components/Controls/Controls.stories.jsx +0 -24
- package/src/stories/Reusable Components/Gallery/Gallery.stories.jsx +0 -43
- package/src/stories/Reusable Components/Lists/Cards/ListCard-1.stories.js +0 -0
- package/src/stories/Reusable Components/Lists/List.stories.js +0 -0
- package/src/stories/Reusable Components/Mention/Mention.stories.jsx +0 -55
- package/src/stories/Reusable Components/ReusableForm/ReusableForm.stories.jsx +0 -167
- package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.stories.jsx +0 -22
- package/src/stories/Reusable Components/ReusableList/ReusableList.stories.jsx +0 -70
- package/src/stories/Reusable Components/SearchCard/SearchCard.stories.js +0 -10
- package/src/stories/Reusable Components/SpaceContainer/SpaceContainer.stories.jsx +0 -78
- package/src/stories/Reusable Components/Spinner/Spinner.stories.jsx +0 -8
- package/src/stories/Reusable Components/WidgetContainer/WidgetContainer.stories.jsx +0 -61
- package/src/stories/Spaces/WelcomeSpace/WelcomeSpace.stories.js +0 -10
- package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.stories.jsx +0 -59
- package/src/stories/VideoAlbum/Comments/Comments.stories.jsx +0 -18
- package/src/stories/VideoAlbum/VideoPlayer/VideoPlayer.stories.jsx +0 -82
- package/src/stories/VideoAlbum/VideoSpace/VideoSpace.stories.jsx +0 -23
- package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.stories.jsx +0 -57
- package/src/stories/Widgets/LogoWidget/LogoWidget.stories.js +0 -12
- package/src/stories/Widgets/MusicPlayer/MusicPlayer.stories.jsx +0 -23
- package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.stories.jsx +0 -33
- package/src/stories/Widgets/SpacesList/SpacesList.stories.jsx +0 -27
- package/src/stories/Widgets/SpacesList/SpacesListItem.stories.jsx +0 -10
- package/src/stories/assets/images/album1.jpg +0 -0
- package/src/stories/assets/images/album2.jpg +0 -0
- package/src/stories/assets/images/album3.jpg +0 -0
- package/src/stories/assets/images/album4.jpg +0 -0
- package/src/stories/assets/images/album5.jpg +0 -0
- package/src/stories/assets/images/album6.jpg +0 -0
- package/src/stories/assets/images/art.jpg +0 -0
- package/src/stories/assets/images/dance.jpg +0 -0
- package/src/stories/assets/images/football.jpg +0 -0
- package/src/stories/assets/images/music.jpg +0 -0
- package/src/stories/assets/images/music1.jpg +0 -0
- package/src/stories/assets/images/music2.jpg +0 -0
- package/src/stories/assets/images/music3.jpg +0 -0
- package/src/stories/assets/images/music4.jpg +0 -0
- package/src/stories/assets/images/music5.jpg +0 -0
- package/src/stories/assets/images/music6.jpg +0 -0
- package/src/stories/assets/images/reset.png +0 -0
- package/src/stories/assets/images/robotics.jpg +0 -0
- package/src/stories/assets/images/tennis.jpg +0 -0
@@ -1,35 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle1"));
|
13
|
-
|
14
|
-
var _fakeData = require("../../fakeData");
|
15
|
-
|
16
|
-
var _default = {
|
17
|
-
title: 'Reusable Components/Cards/Card style 1',
|
18
|
-
component: _CardStyle.default
|
19
|
-
};
|
20
|
-
exports.default = _default;
|
21
|
-
|
22
|
-
var Card = function Card(args) {
|
23
|
-
return /*#__PURE__*/_react.default.createElement(_CardStyle.default, Object.assign({
|
24
|
-
img: "https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png",
|
25
|
-
title: "Card Style 1",
|
26
|
-
description: "Card style 1 description test",
|
27
|
-
cardControls: _fakeData.cardControls,
|
28
|
-
controlsStyles: {
|
29
|
-
iconColor: 'black',
|
30
|
-
showOnHover: true
|
31
|
-
}
|
32
|
-
}, args));
|
33
|
-
};
|
34
|
-
|
35
|
-
exports.Card = Card;
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle10"));
|
11
|
-
|
12
|
-
var _ai = require("react-icons/ai");
|
13
|
-
|
14
|
-
var _default = {
|
15
|
-
title: 'Reusable Components/Cards/Card style 10',
|
16
|
-
component: _CardStyle.default
|
17
|
-
};
|
18
|
-
exports.default = _default;
|
19
|
-
var cardControls = [{
|
20
|
-
icon: /*#__PURE__*/React.createElement(_ai.AiOutlineHeart, null),
|
21
|
-
action: 'like',
|
22
|
-
name: 'Add member'
|
23
|
-
}, {
|
24
|
-
icon: /*#__PURE__*/React.createElement(_ai.AiOutlineAudioMuted, null),
|
25
|
-
action: 'mute',
|
26
|
-
name: 'Add member'
|
27
|
-
}];
|
28
|
-
|
29
|
-
var Card = function Card(args) {
|
30
|
-
return /*#__PURE__*/React.createElement(_CardStyle.default, Object.assign({
|
31
|
-
title: "Folder",
|
32
|
-
description: "Folder description test",
|
33
|
-
cardControls: cardControls
|
34
|
-
}, args));
|
35
|
-
};
|
36
|
-
|
37
|
-
exports.Card = Card;
|
@@ -1,40 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle11"));
|
11
|
-
|
12
|
-
var _ai = require("react-icons/ai");
|
13
|
-
|
14
|
-
var _default = {
|
15
|
-
title: 'Reusable components/Cards/Card Style 11',
|
16
|
-
component: _CardStyle.default
|
17
|
-
};
|
18
|
-
exports.default = _default;
|
19
|
-
var cardControls = [{
|
20
|
-
icon: /*#__PURE__*/React.createElement(_ai.AiOutlineHeart, null),
|
21
|
-
action: 'like',
|
22
|
-
name: 'Add member'
|
23
|
-
}, {
|
24
|
-
icon: /*#__PURE__*/React.createElement(_ai.AiOutlineAudioMuted, null),
|
25
|
-
action: 'mute',
|
26
|
-
name: 'Add member'
|
27
|
-
}];
|
28
|
-
|
29
|
-
var Card = function Card(args) {
|
30
|
-
return /*#__PURE__*/React.createElement(_CardStyle.default, Object.assign({
|
31
|
-
title: "Study Notes",
|
32
|
-
date: "15/11/2021",
|
33
|
-
cardControls: cardControls,
|
34
|
-
controlsStyles: {
|
35
|
-
iconColor: 'black'
|
36
|
-
}
|
37
|
-
}, args));
|
38
|
-
};
|
39
|
-
|
40
|
-
exports.Card = Card;
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle2"));
|
13
|
-
|
14
|
-
var _fakeData = require("../../fakeData");
|
15
|
-
|
16
|
-
var _default = {
|
17
|
-
title: 'Reusable Components/Cards/Card style 2',
|
18
|
-
component: _CardStyle.default
|
19
|
-
};
|
20
|
-
exports.default = _default;
|
21
|
-
|
22
|
-
var Card = function Card(args) {
|
23
|
-
return /*#__PURE__*/_react.default.createElement(_CardStyle.default, Object.assign({
|
24
|
-
img: "https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png",
|
25
|
-
title: "Card Style 2",
|
26
|
-
description: "Card style 2 description test",
|
27
|
-
cardControls: _fakeData.cardControls,
|
28
|
-
darkOnHover: true,
|
29
|
-
controlsStyles: {
|
30
|
-
iconColor: 'black',
|
31
|
-
position: 'center',
|
32
|
-
showOnHover: true
|
33
|
-
}
|
34
|
-
}, args));
|
35
|
-
};
|
36
|
-
|
37
|
-
exports.Card = Card;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle3"));
|
13
|
-
|
14
|
-
var _fakeData = require("../../fakeData");
|
15
|
-
|
16
|
-
var _default = {
|
17
|
-
title: 'Reusable Components/Cards/Card style 3',
|
18
|
-
component: _CardStyle.default
|
19
|
-
};
|
20
|
-
exports.default = _default;
|
21
|
-
|
22
|
-
var Card = function Card(args) {
|
23
|
-
return /*#__PURE__*/_react.default.createElement(_CardStyle.default, Object.assign({
|
24
|
-
img: "https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png",
|
25
|
-
title: "Card Style 3",
|
26
|
-
description: "Card style 3 description test",
|
27
|
-
cardControls: _fakeData.cardControls,
|
28
|
-
controlsStyles: {
|
29
|
-
iconColor: 'black'
|
30
|
-
}
|
31
|
-
}, args));
|
32
|
-
};
|
33
|
-
|
34
|
-
exports.Card = Card;
|
@@ -1,39 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
11
|
-
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
13
|
-
|
14
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle4"));
|
15
|
-
|
16
|
-
var _fakeData = require("../../fakeData");
|
17
|
-
|
18
|
-
var _default = {
|
19
|
-
title: 'Reusable Components/Cards/Card style 4',
|
20
|
-
component: _CardStyle.default
|
21
|
-
};
|
22
|
-
exports.default = _default;
|
23
|
-
|
24
|
-
var Card = function Card(args) {
|
25
|
-
return /*#__PURE__*/_react.default.createElement(_CardStyle.default, Object.assign({
|
26
|
-
img: "https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png",
|
27
|
-
title: "Card Style 4",
|
28
|
-
description: "Card style 4 description test",
|
29
|
-
cardControls: _fakeData.cardControls,
|
30
|
-
darkOnHover: true,
|
31
|
-
controlsStyles: (0, _defineProperty2.default)({
|
32
|
-
iconColor: 'black',
|
33
|
-
position: 'center',
|
34
|
-
showOnHover: true
|
35
|
-
}, "iconColor", 'red')
|
36
|
-
}, args));
|
37
|
-
};
|
38
|
-
|
39
|
-
exports.Card = Card;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle6"));
|
11
|
-
|
12
|
-
var _album = _interopRequireDefault(require("../../../assets/images/album1.jpg"));
|
13
|
-
|
14
|
-
var _default = {
|
15
|
-
title: 'Reusable Components/cards/Card style 6',
|
16
|
-
component: _CardStyle.default
|
17
|
-
};
|
18
|
-
exports.default = _default;
|
19
|
-
|
20
|
-
var Card = function Card(args) {
|
21
|
-
return /*#__PURE__*/React.createElement(_CardStyle.default, Object.assign({
|
22
|
-
img: _album.default,
|
23
|
-
title: "Test"
|
24
|
-
}, args));
|
25
|
-
};
|
26
|
-
|
27
|
-
exports.Card = Card;
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle7"));
|
13
|
-
|
14
|
-
var _fakeData = require("../../fakeData");
|
15
|
-
|
16
|
-
var _music = _interopRequireDefault(require("../../../assets/images/music4.jpg"));
|
17
|
-
|
18
|
-
var _default = {
|
19
|
-
title: 'Reusable Components/Cards/Card style 7',
|
20
|
-
component: _CardStyle.default
|
21
|
-
};
|
22
|
-
exports.default = _default;
|
23
|
-
|
24
|
-
var Card = function Card(args) {
|
25
|
-
return /*#__PURE__*/_react.default.createElement(_CardStyle.default, Object.assign({
|
26
|
-
img: _music.default,
|
27
|
-
title: "Card Style 7",
|
28
|
-
description: "Card style 7 description test",
|
29
|
-
time: "5:10",
|
30
|
-
cardControls: _fakeData.cardControls,
|
31
|
-
controlsStyles: {
|
32
|
-
iconColor: 'black'
|
33
|
-
}
|
34
|
-
}, args));
|
35
|
-
};
|
36
|
-
|
37
|
-
exports.Card = Card;
|
@@ -1,44 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
11
|
-
|
12
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle8"));
|
13
|
-
|
14
|
-
var _fakeData = require("../../fakeData");
|
15
|
-
|
16
|
-
var _default = {
|
17
|
-
title: 'Reusable Components/Cards/Card style 8',
|
18
|
-
component: _CardStyle.default
|
19
|
-
};
|
20
|
-
exports.default = _default;
|
21
|
-
|
22
|
-
var Card = function Card(args) {
|
23
|
-
var _ref;
|
24
|
-
|
25
|
-
return /*#__PURE__*/React.createElement(_CardStyle.default, Object.assign({
|
26
|
-
img: "https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png",
|
27
|
-
username: "Card Style 8",
|
28
|
-
date: "15/12/2021",
|
29
|
-
text: "Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test Card style 8 description test ",
|
30
|
-
cardControls: _fakeData.controls,
|
31
|
-
media: /*#__PURE__*/React.createElement("img", {
|
32
|
-
src: "https://arabhardware.net/wp-content/uploads/2020/03/valorant-2020-4k-0f-scaled.jpg"
|
33
|
-
}),
|
34
|
-
controlsStyles: (_ref = {
|
35
|
-
iconColor: 'black',
|
36
|
-
showOnHover: true,
|
37
|
-
position: 'absolute',
|
38
|
-
iconBackground: '#414141',
|
39
|
-
iconSize: 18
|
40
|
-
}, (0, _defineProperty2.default)(_ref, "iconColor", 'white'), (0, _defineProperty2.default)(_ref, "dropdownBackground", '#414141'), (0, _defineProperty2.default)(_ref, "dropdownFontColor", 'white'), _ref)
|
41
|
-
}, args));
|
42
|
-
};
|
43
|
-
|
44
|
-
exports.Card = Card;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.Card = exports.default = void 0;
|
9
|
-
|
10
|
-
var _CardStyle = _interopRequireDefault(require("./CardStyle9"));
|
11
|
-
|
12
|
-
var _default = {
|
13
|
-
title: 'Reusable Components/Cards/Card style 9',
|
14
|
-
component: _CardStyle.default
|
15
|
-
};
|
16
|
-
exports.default = _default;
|
17
|
-
|
18
|
-
var Card = function Card(args) {
|
19
|
-
return /*#__PURE__*/React.createElement(_CardStyle.default, Object.assign({
|
20
|
-
img: "https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png",
|
21
|
-
username: "User Name",
|
22
|
-
answered: '3/4',
|
23
|
-
status: "pending"
|
24
|
-
}, args));
|
25
|
-
};
|
26
|
-
|
27
|
-
exports.Card = Card;
|
@@ -1,132 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.CardWithoutImageColumn = exports.CardWithoutImage = exports.CardWithImageColumn = exports.CardWithImage = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _Card = _interopRequireDefault(require("./Card"));
|
13
|
-
|
14
|
-
var _default = {
|
15
|
-
title: 'Reusable Components/Cards/Regular Card',
|
16
|
-
component: _Card.default
|
17
|
-
};
|
18
|
-
exports.default = _default;
|
19
|
-
|
20
|
-
var Template = function Template(args) {
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_Card.default, args);
|
22
|
-
};
|
23
|
-
|
24
|
-
var CardWithImage = Template.bind({});
|
25
|
-
exports.CardWithImage = CardWithImage;
|
26
|
-
CardWithImage.args = {
|
27
|
-
title: 'Card with image',
|
28
|
-
description: 'Lorem ipsum dolor sit amet consectetur.',
|
29
|
-
img: 'https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png',
|
30
|
-
cardBackgroundColor: '#f1d6d6',
|
31
|
-
cardRadius: '20',
|
32
|
-
cardTitleFontSize: '',
|
33
|
-
cardTitleColor: '',
|
34
|
-
cardImageRadius: '100',
|
35
|
-
cardDescriptionFontSize: '',
|
36
|
-
cardDescriptionColor: '',
|
37
|
-
cardDirection: '',
|
38
|
-
cardPadding: '10',
|
39
|
-
imgSize: '90',
|
40
|
-
cardBorderSize: '',
|
41
|
-
cardBorderColor: '',
|
42
|
-
controlsStyles: {
|
43
|
-
showOnHover: true,
|
44
|
-
iconBackground: "#272727",
|
45
|
-
dropdownBackground: "#272727",
|
46
|
-
dropdownFontColor: "white",
|
47
|
-
dropdownItemHoverColor: "#414141",
|
48
|
-
iconBackgroundHover: "#414141"
|
49
|
-
}
|
50
|
-
};
|
51
|
-
var CardWithImageColumn = Template.bind({});
|
52
|
-
exports.CardWithImageColumn = CardWithImageColumn;
|
53
|
-
CardWithImageColumn.args = {
|
54
|
-
title: 'Card with image column',
|
55
|
-
description: 'Lorem ipsum dolor sit amet consectetur.',
|
56
|
-
img: 'https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png',
|
57
|
-
cardBackgroundColor: '#f1d6d6',
|
58
|
-
cardRadius: '20',
|
59
|
-
cardTitleFontSize: '',
|
60
|
-
cardTitleColor: '',
|
61
|
-
cardImageRadius: '100',
|
62
|
-
cardDescriptionFontSize: '',
|
63
|
-
cardDescriptionColor: '',
|
64
|
-
cardDirection: 'column',
|
65
|
-
cardPadding: '10',
|
66
|
-
imgSize: '90',
|
67
|
-
cardBorderSize: '',
|
68
|
-
cardBorderColor: '',
|
69
|
-
controlsStyles: {
|
70
|
-
showOnHover: true,
|
71
|
-
iconBackground: "#272727",
|
72
|
-
dropdownBackground: "#272727",
|
73
|
-
dropdownFontColor: "white",
|
74
|
-
dropdownItemHoverColor: "#414141",
|
75
|
-
iconBackgroundHover: "#414141"
|
76
|
-
}
|
77
|
-
};
|
78
|
-
var CardWithoutImage = Template.bind({});
|
79
|
-
exports.CardWithoutImage = CardWithoutImage;
|
80
|
-
CardWithoutImage.args = {
|
81
|
-
title: 'Card with image',
|
82
|
-
description: 'Lorem ipsum dolor sit amet consectetur.',
|
83
|
-
img: '',
|
84
|
-
cardBackgroundColor: '#f1d6d6',
|
85
|
-
cardRadius: '20',
|
86
|
-
cardTitleFontSize: '',
|
87
|
-
cardTitleColor: '',
|
88
|
-
cardImageRadius: '100',
|
89
|
-
cardDescriptionFontSize: '',
|
90
|
-
cardDescriptionColor: '',
|
91
|
-
cardDirection: '',
|
92
|
-
cardPadding: '10',
|
93
|
-
imgSize: '90',
|
94
|
-
cardBorderSize: '',
|
95
|
-
cardBorderColor: '',
|
96
|
-
controlsStyles: {
|
97
|
-
showOnHover: true,
|
98
|
-
iconBackground: "#272727",
|
99
|
-
dropdownBackground: "#272727",
|
100
|
-
dropdownFontColor: "white",
|
101
|
-
dropdownItemHoverColor: "#414141",
|
102
|
-
iconBackgroundHover: "#414141"
|
103
|
-
}
|
104
|
-
};
|
105
|
-
var CardWithoutImageColumn = Template.bind({});
|
106
|
-
exports.CardWithoutImageColumn = CardWithoutImageColumn;
|
107
|
-
CardWithoutImageColumn.args = {
|
108
|
-
title: 'Card with image column',
|
109
|
-
description: 'Lorem ipsum dolor sit amet consectetur.',
|
110
|
-
img: '',
|
111
|
-
cardBackgroundColor: '#f1d6d6',
|
112
|
-
onHoverBackgroundColor: '',
|
113
|
-
cardRadius: '20',
|
114
|
-
cardTitleFontSize: '',
|
115
|
-
cardTitleColor: '',
|
116
|
-
cardImageRadius: '100',
|
117
|
-
cardDescriptionFontSize: '',
|
118
|
-
cardDescriptionColor: '',
|
119
|
-
cardDirection: 'column',
|
120
|
-
cardPadding: '10',
|
121
|
-
imgSize: '90',
|
122
|
-
cardBorderSize: '',
|
123
|
-
cardBorderColor: '',
|
124
|
-
controlsStyles: {
|
125
|
-
showOnHover: true,
|
126
|
-
iconBackground: "#272727",
|
127
|
-
dropdownBackground: "#272727",
|
128
|
-
dropdownFontColor: "white",
|
129
|
-
dropdownItemHoverColor: "#414141",
|
130
|
-
iconBackgroundHover: "#414141"
|
131
|
-
}
|
132
|
-
};
|
@@ -1,49 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.fixedControls = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _Controls = _interopRequireDefault(require("./Controls"));
|
13
|
-
|
14
|
-
var _ai = require("react-icons/ai");
|
15
|
-
|
16
|
-
var _io = require("react-icons/io");
|
17
|
-
|
18
|
-
var controls = [{
|
19
|
-
icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineUserAdd, null),
|
20
|
-
action: 'add',
|
21
|
-
name: 'Add member'
|
22
|
-
}, {
|
23
|
-
icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineDelete, null),
|
24
|
-
action: 'remove',
|
25
|
-
name: 'Add member'
|
26
|
-
}, {
|
27
|
-
icon: /*#__PURE__*/_react.default.createElement(_io.IoIosAirplane, null),
|
28
|
-
action: 'add',
|
29
|
-
name: 'Some Icon'
|
30
|
-
}, {
|
31
|
-
icon: /*#__PURE__*/_react.default.createElement(_io.IoIosAlarm, null),
|
32
|
-
action: 'remove',
|
33
|
-
name: 'Another Icons'
|
34
|
-
}];
|
35
|
-
var _default = {
|
36
|
-
title: 'reusable Components/Controls',
|
37
|
-
component: _Controls.default
|
38
|
-
};
|
39
|
-
exports.default = _default;
|
40
|
-
|
41
|
-
var Template = function Template(args) {
|
42
|
-
return /*#__PURE__*/_react.default.createElement(_Controls.default, args);
|
43
|
-
};
|
44
|
-
|
45
|
-
var fixedControls = Template.bind({});
|
46
|
-
exports.fixedControls = fixedControls;
|
47
|
-
fixedControls.args = {
|
48
|
-
controls: controls
|
49
|
-
};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.GallerySectioned = exports.GalleryFlat = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _Gallery = _interopRequireDefault(require("./Gallery"));
|
13
|
-
|
14
|
-
var _fakeData = require("../fakeData");
|
15
|
-
|
16
|
-
var _commonStyles = require("../commonStyles");
|
17
|
-
|
18
|
-
// Data
|
19
|
-
// Styles
|
20
|
-
var _default = {
|
21
|
-
title: 'Reusable components/Gallery',
|
22
|
-
component: _Gallery.default
|
23
|
-
};
|
24
|
-
exports.default = _default;
|
25
|
-
|
26
|
-
var Template = function Template(args) {
|
27
|
-
return /*#__PURE__*/_react.default.createElement(_Gallery.default, Object.assign({
|
28
|
-
galleryTitle: "Reusable Gallery",
|
29
|
-
galleryControls: _fakeData.controls,
|
30
|
-
headerStyles: {
|
31
|
-
padding: 10,
|
32
|
-
headerBackground: '#FE1744',
|
33
|
-
titleColor: '#ffff'
|
34
|
-
},
|
35
|
-
columnsNumber: 3,
|
36
|
-
galleryColumnGap: 10,
|
37
|
-
controlsStyles: _commonStyles.headingControlsStyles,
|
38
|
-
cardStyle: "card-style-6",
|
39
|
-
customCardStyles: _commonStyles.galleryCardControlsStyles
|
40
|
-
}, args));
|
41
|
-
};
|
42
|
-
|
43
|
-
var GalleryFlat = Template.bind({});
|
44
|
-
exports.GalleryFlat = GalleryFlat;
|
45
|
-
GalleryFlat.args = {
|
46
|
-
data: _fakeData.data,
|
47
|
-
type: "flat",
|
48
|
-
cardControls: _fakeData.cardControls
|
49
|
-
};
|
50
|
-
var GallerySectioned = Template.bind({});
|
51
|
-
exports.GallerySectioned = GallerySectioned;
|
52
|
-
GallerySectioned.args = {
|
53
|
-
data: _fakeData.dataWithSections,
|
54
|
-
type: "sectioned",
|
55
|
-
cardControls: _fakeData.cardControls
|
56
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";
|
@@ -1,66 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.MentionArea = 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 _Mention = _interopRequireDefault(require("./Mention"));
|
15
|
-
|
16
|
-
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); }
|
17
|
-
|
18
|
-
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; }
|
19
|
-
|
20
|
-
var _default = {
|
21
|
-
title: 'Resuable Components/Mention',
|
22
|
-
component: _Mention.default
|
23
|
-
};
|
24
|
-
exports.default = _default;
|
25
|
-
var users = [{
|
26
|
-
id: 'walter',
|
27
|
-
display: 'Walter White'
|
28
|
-
}, {
|
29
|
-
id: 'jesse',
|
30
|
-
display: 'Jesse Pinkman'
|
31
|
-
}, {
|
32
|
-
id: 'gus',
|
33
|
-
display: 'Gustavo "Gus" Fring'
|
34
|
-
}, {
|
35
|
-
id: 'saul',
|
36
|
-
display: 'Saul Goodman'
|
37
|
-
}, {
|
38
|
-
id: 'hank',
|
39
|
-
display: 'Hank Schrader'
|
40
|
-
}, {
|
41
|
-
id: 'skyler',
|
42
|
-
display: 'Skyler White'
|
43
|
-
}, {
|
44
|
-
id: 'mike',
|
45
|
-
display: 'Mike Ehrmantraut'
|
46
|
-
}, {
|
47
|
-
id: 'lydia',
|
48
|
-
display: 'Lydìã Rôdarté-Qüayle'
|
49
|
-
}];
|
50
|
-
|
51
|
-
var MentionArea = function MentionArea(args) {
|
52
|
-
var _useState = (0, _react.useState)(''),
|
53
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
54
|
-
value = _useState2[0],
|
55
|
-
setValue = _useState2[1];
|
56
|
-
|
57
|
-
return /*#__PURE__*/_react.default.createElement(_Mention.default, Object.assign({
|
58
|
-
value: value,
|
59
|
-
handleOnChange: function handleOnChange(value) {
|
60
|
-
return setValue(value);
|
61
|
-
},
|
62
|
-
users: users
|
63
|
-
}, args));
|
64
|
-
};
|
65
|
-
|
66
|
-
exports.MentionArea = MentionArea;
|