@mohamed-karawia/library 0.1.3 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/.env +3 -0
- package/.eslintcache +1 -0
- package/dist/stories/Reusable Components/fakeData.js +12 -8
- package/dist/stories/helpers/util.js +16 -14
- package/package.json +3 -2
- package/src/stories/Reusable Components/fakeData.js +1 -0
- package/src/stories/helpers/util.js +1 -0
- 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,26 +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.CargoSprint = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _LogoWidget = _interopRequireDefault(require("./LogoWidget"));
|
13
|
-
|
14
|
-
var _default = {
|
15
|
-
title: "Widgets/Logo",
|
16
|
-
component: _LogoWidget.default
|
17
|
-
};
|
18
|
-
exports.default = _default;
|
19
|
-
|
20
|
-
var CargoSprint = function CargoSprint() {
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_LogoWidget.default, {
|
22
|
-
imgUrl: "https://cargosprint.com/assets/img/cs-logos/Logo-CargoSprint_horizontal-color.png"
|
23
|
-
});
|
24
|
-
};
|
25
|
-
|
26
|
-
exports.CargoSprint = CargoSprint;
|
@@ -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.Music = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _MusicPlayer = _interopRequireDefault(require("./MusicPlayer"));
|
13
|
-
|
14
|
-
var Songs = [{
|
15
|
-
name: 'Music 1',
|
16
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/kickstarter.mp3',
|
17
|
-
cover: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8NHx8fGVufDB8fHx8&w=1000&q=80'
|
18
|
-
}, {
|
19
|
-
name: 'Music 2',
|
20
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/gentle-thoughts-1.mp3',
|
21
|
-
cover: 'https://c4.wallpaperflare.com/wallpaper/729/961/256/black-minimalistic-music-piano-black-background-1680x1050-entertainment-music-hd-art-wallpaper-preview.jpg'
|
22
|
-
}, {
|
23
|
-
name: 'Music 3',
|
24
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/glow-in-the-dark.mp3',
|
25
|
-
cover: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8NHx8fGVufDB8fHx8&w=1000&q=80'
|
26
|
-
}];
|
27
|
-
var _default = {
|
28
|
-
title: 'widgets/Music Player',
|
29
|
-
components: _MusicPlayer.default
|
30
|
-
};
|
31
|
-
exports.default = _default;
|
32
|
-
|
33
|
-
var Template = function Template(args) {
|
34
|
-
return /*#__PURE__*/_react.default.createElement(_MusicPlayer.default, Object.assign({
|
35
|
-
audioLists: Songs
|
36
|
-
}, args));
|
37
|
-
};
|
38
|
-
|
39
|
-
var Music = Template.bind({});
|
40
|
-
exports.Music = Music;
|
41
|
-
Music.args = {
|
42
|
-
primaryColor: '',
|
43
|
-
hoverColor: ''
|
44
|
-
};
|
@@ -1,52 +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.MusicWidget = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _MusicPlayerWidget = _interopRequireDefault(require("./MusicPlayerWidget"));
|
13
|
-
|
14
|
-
var _BaseMaterial = _interopRequireDefault(require("../../Containers/BaseMaterial"));
|
15
|
-
|
16
|
-
var Songs = [{
|
17
|
-
name: 'Music 1',
|
18
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/kickstarter.mp3',
|
19
|
-
cover: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8NHx8fGVufDB8fHx8&w=1000&q=80'
|
20
|
-
}, {
|
21
|
-
name: 'Music 2',
|
22
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/gentle-thoughts-1.mp3',
|
23
|
-
cover: 'https://c4.wallpaperflare.com/wallpaper/729/961/256/black-minimalistic-music-piano-black-background-1680x1050-entertainment-music-hd-art-wallpaper-preview.jpg'
|
24
|
-
}, {
|
25
|
-
name: 'Music 3',
|
26
|
-
musicSrc: 'https://www.pacdv.com/sounds/free-music/glow-in-the-dark.mp3',
|
27
|
-
cover: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8NHx8fGVufDB8fHx8&w=1000&q=80'
|
28
|
-
}];
|
29
|
-
var _default = {
|
30
|
-
title: 'widgets/Music Player Widget',
|
31
|
-
compomemt: _MusicPlayerWidget.default
|
32
|
-
};
|
33
|
-
exports.default = _default;
|
34
|
-
|
35
|
-
var Template = function Template(args) {
|
36
|
-
return /*#__PURE__*/_react.default.createElement(_BaseMaterial.default, null, /*#__PURE__*/_react.default.createElement(_MusicPlayerWidget.default, Object.assign({
|
37
|
-
playlist: Songs
|
38
|
-
}, args)));
|
39
|
-
};
|
40
|
-
|
41
|
-
var MusicWidget = Template.bind({});
|
42
|
-
exports.MusicWidget = MusicWidget;
|
43
|
-
MusicWidget.args = {
|
44
|
-
fontFamily: '',
|
45
|
-
backgroundColor: '',
|
46
|
-
primaryColor: '',
|
47
|
-
borderRadius: '',
|
48
|
-
padding: '',
|
49
|
-
width: '',
|
50
|
-
fontColor: '',
|
51
|
-
fontSize: ''
|
52
|
-
};
|
@@ -1,52 +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.FewItems = exports.OneItem = exports.NoItems = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _SpacesList = _interopRequireDefault(require("./SpacesList"));
|
13
|
-
|
14
|
-
var _SpacesListItem = _interopRequireDefault(require("./SpacesListItem"));
|
15
|
-
|
16
|
-
var _default = {
|
17
|
-
title: "Widgets/SpacesList/List",
|
18
|
-
component: _SpacesList.default
|
19
|
-
};
|
20
|
-
exports.default = _default;
|
21
|
-
|
22
|
-
var NoItems = function NoItems(args) {
|
23
|
-
return /*#__PURE__*/_react.default.createElement(_SpacesList.default, args);
|
24
|
-
};
|
25
|
-
|
26
|
-
exports.NoItems = NoItems;
|
27
|
-
|
28
|
-
var OneItem = function OneItem(args) {
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_SpacesList.default, args, /*#__PURE__*/_react.default.createElement(_SpacesListItem.default, {
|
30
|
-
marginTop: args.itemSpacing
|
31
|
-
}));
|
32
|
-
};
|
33
|
-
|
34
|
-
exports.OneItem = OneItem;
|
35
|
-
|
36
|
-
var FewItems = function FewItems(args) {
|
37
|
-
return /*#__PURE__*/_react.default.createElement(_SpacesList.default, args, /*#__PURE__*/_react.default.createElement(_SpacesListItem.default, null), /*#__PURE__*/_react.default.createElement(_SpacesListItem.default, {
|
38
|
-
spaceName: "Welcome",
|
39
|
-
marginTop: args.itemSpacing
|
40
|
-
}), /*#__PURE__*/_react.default.createElement(_SpacesListItem.default, {
|
41
|
-
spaceName: "Announcements",
|
42
|
-
marginTop: args.itemSpacing
|
43
|
-
}), /*#__PURE__*/_react.default.createElement(_SpacesListItem.default, {
|
44
|
-
spaceName: "Client Feedback",
|
45
|
-
marginTop: args.itemSpacing
|
46
|
-
}), /*#__PURE__*/_react.default.createElement(_SpacesListItem.default, {
|
47
|
-
spaceName: "Daily Video Call",
|
48
|
-
marginTop: args.itemSpacing
|
49
|
-
}));
|
50
|
-
};
|
51
|
-
|
52
|
-
exports.FewItems = FewItems;
|
@@ -1,24 +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.Default = exports.default = void 0;
|
9
|
-
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
|
-
var _SpacesListItem = _interopRequireDefault(require("./SpacesListItem"));
|
13
|
-
|
14
|
-
var _default = {
|
15
|
-
title: 'Widgets/SpacesList/Item',
|
16
|
-
component: _SpacesListItem.default
|
17
|
-
};
|
18
|
-
exports.default = _default;
|
19
|
-
|
20
|
-
var Default = function Default(args) {
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_SpacesListItem.default, args);
|
22
|
-
};
|
23
|
-
|
24
|
-
exports.Default = Default;
|
package/public/logo192.png
DELETED
Binary file
|
package/public/logo512.png
DELETED
Binary file
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import Button from './Buttons'
|
3
|
-
|
4
|
-
export default {
|
5
|
-
title: 'Buttons/Primary',
|
6
|
-
component: Button,
|
7
|
-
}
|
8
|
-
|
9
|
-
const Template = (args) => <Button {...args} />
|
10
|
-
|
11
|
-
export const Primary = Template.bind({});
|
12
|
-
Primary.args = {
|
13
|
-
variant: 'primary',
|
14
|
-
label: 'Submit',
|
15
|
-
size: 'md',
|
16
|
-
type: 'submit'
|
17
|
-
}
|
18
|
-
export const Secondary = Template.bind({});
|
19
|
-
Secondary.args = {
|
20
|
-
variant: 'secondary',
|
21
|
-
label: 'Submit',
|
22
|
-
size: 'md',
|
23
|
-
type: 'submit'
|
24
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
|
3
|
-
import ReactModal from "./ReactModal";
|
4
|
-
import ReactModalDemo from "./ReactModalDemo";
|
5
|
-
|
6
|
-
export default {
|
7
|
-
title: "Buttons/React Modal",
|
8
|
-
component: ReactModal
|
9
|
-
};
|
10
|
-
|
11
|
-
export const Modal = args => (
|
12
|
-
<ReactModal
|
13
|
-
{...args}
|
14
|
-
modalBtnOpenText="Lets Open The Modal"
|
15
|
-
modalBtnCloseText="Lets Close The Modal"
|
16
|
-
modalContent={<ReactModalDemo />}
|
17
|
-
/>
|
18
|
-
);
|
@@ -1,59 +0,0 @@
|
|
1
|
-
import Chat from './Chat';
|
2
|
-
|
3
|
-
export default {
|
4
|
-
title: 'Chat/Chat Space',
|
5
|
-
component: Chat
|
6
|
-
}
|
7
|
-
|
8
|
-
const data = [
|
9
|
-
{username: 'Test User', img:"https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png", date:'5/11/2021', text: 'This is fake chat test This is fake chat test This is fake chat test This is fake chat test This is fake chat test '},
|
10
|
-
{username: 'Test User', img:"https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png", date:'5/11/2021', text: 'This is fake chat test This is fake chat test This is fake chat test This is fake chat test This is fake chat test ', media:(<img src="https://arabhardware.net/wp-content/uploads/2020/03/valorant-2020-4k-0f-scaled.jpg"/>)},
|
11
|
-
{username: 'Test User', img:"https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png", date:'5/11/2021', text: 'This is fake chat test This is fake chat test This is fake chat test This is fake chat test This is fake chat test '},
|
12
|
-
{username: 'Test User', img:"https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png", date:'5/11/2021', text: 'This is fake chat test This is fake chat test This is fake chat test This is fake chat test This is fake chat test '},
|
13
|
-
]
|
14
|
-
|
15
|
-
const users = [
|
16
|
-
{
|
17
|
-
id: 'walter',
|
18
|
-
display: 'Walter White',
|
19
|
-
},
|
20
|
-
{
|
21
|
-
id: 'jesse',
|
22
|
-
display: 'Jesse Pinkman',
|
23
|
-
},
|
24
|
-
{
|
25
|
-
id: 'gus',
|
26
|
-
display: 'Gustavo "Gus" Fring',
|
27
|
-
},
|
28
|
-
{
|
29
|
-
id: 'saul',
|
30
|
-
display: 'Saul Goodman',
|
31
|
-
},
|
32
|
-
{
|
33
|
-
id: 'hank',
|
34
|
-
display: 'Hank Schrader',
|
35
|
-
},
|
36
|
-
{
|
37
|
-
id: 'skyler',
|
38
|
-
display: 'Skyler White',
|
39
|
-
},
|
40
|
-
{
|
41
|
-
id: 'mike',
|
42
|
-
display: 'Mike Ehrmantraut',
|
43
|
-
},
|
44
|
-
{
|
45
|
-
id: 'lydia',
|
46
|
-
display: 'Lydìã Rôdarté-Qüayle',
|
47
|
-
},
|
48
|
-
]
|
49
|
-
|
50
|
-
const Template = (args) => (
|
51
|
-
<Chat
|
52
|
-
{...args} />
|
53
|
-
);
|
54
|
-
|
55
|
-
export const ChatSpace = Template.bind({});
|
56
|
-
ChatSpace.args = {
|
57
|
-
data,
|
58
|
-
users
|
59
|
-
};
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import withFormik from "storybook-formik";
|
3
|
-
import * as Yup from 'yup';
|
4
|
-
|
5
|
-
import CheckboxGroup from './CheckboxGroup';
|
6
|
-
|
7
|
-
const formSchema = Yup.object().shape({
|
8
|
-
acceptTerms: Yup.array()
|
9
|
-
.min(1, 'You must choose at least one element'),
|
10
|
-
});
|
11
|
-
|
12
|
-
const options = [
|
13
|
-
{label: 'option 1', value: '1'},
|
14
|
-
{label: 'option 2', value: '2'},
|
15
|
-
{label: 'option 3', value: '3'},
|
16
|
-
]
|
17
|
-
|
18
|
-
export default {
|
19
|
-
title: 'Common Inputs/Checkbox Group',
|
20
|
-
component: CheckboxGroup,
|
21
|
-
decorators: [withFormik],
|
22
|
-
parameters: {
|
23
|
-
formik: {
|
24
|
-
initialValues: {
|
25
|
-
acceptTerms: []
|
26
|
-
},
|
27
|
-
validationSchema: formSchema,
|
28
|
-
},
|
29
|
-
}
|
30
|
-
};
|
31
|
-
|
32
|
-
export const CheckBoxGroup = args => <CheckboxGroup label="Checkbox Group" name="acceptTerms" options={options} {...args} />
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react';
|
2
|
-
// import withFormik from "storybook-formik";
|
3
|
-
// import * as Yup from 'yup';
|
4
|
-
|
5
|
-
import CustomAutoComplete from './CustomAutoComplete';
|
6
|
-
|
7
|
-
// const formSchema = Yup.object().shape({
|
8
|
-
// search: Yup.string()
|
9
|
-
// .required("Required"),
|
10
|
-
// });
|
11
|
-
|
12
|
-
|
13
|
-
export default {
|
14
|
-
title: 'Common Inputs/Custom AutoComplete',
|
15
|
-
component: CustomAutoComplete,
|
16
|
-
// decorators: [withFormik],
|
17
|
-
// parameters: {
|
18
|
-
// formik: {
|
19
|
-
// initialValues: {
|
20
|
-
// search: ''
|
21
|
-
// },
|
22
|
-
// validationSchema: formSchema,
|
23
|
-
// },
|
24
|
-
// }
|
25
|
-
};
|
26
|
-
|
27
|
-
export const AutoComplete = args =>
|
28
|
-
(<CustomAutoComplete
|
29
|
-
label="themes"
|
30
|
-
items={[
|
31
|
-
{ id: 'foo', label: 'foo' },
|
32
|
-
{ id: 'bar', label: 'bar' },
|
33
|
-
{ id: 'baz', label: 'baz' },
|
34
|
-
]} name="search" {...args}
|
35
|
-
/>)
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import withFormik from "storybook-formik";
|
3
|
-
import * as Yup from 'yup';
|
4
|
-
|
5
|
-
import CustomDropZone from './CustomDropZone';
|
6
|
-
|
7
|
-
const formSchema = Yup.object().shape({
|
8
|
-
file: Yup.object()
|
9
|
-
.required("Required"),
|
10
|
-
});
|
11
|
-
|
12
|
-
export default {
|
13
|
-
title: 'Common Inputs/Custom Dropzone',
|
14
|
-
component: CustomDropZone,
|
15
|
-
decorators: [withFormik],
|
16
|
-
parameters: {
|
17
|
-
formik: {
|
18
|
-
initialValues: {
|
19
|
-
file: ''
|
20
|
-
},
|
21
|
-
validationSchema: formSchema,
|
22
|
-
},
|
23
|
-
}
|
24
|
-
};
|
25
|
-
|
26
|
-
export const Dropzone = args => <CustomDropZone label="Image" name="file" {...args} />
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import withFormik from "storybook-formik";
|
3
|
-
import * as Yup from 'yup';
|
4
|
-
|
5
|
-
import CustomSelect from './CustomSelect';
|
6
|
-
|
7
|
-
const formSchema = Yup.object().shape({
|
8
|
-
name: Yup.string()
|
9
|
-
.required("Required"),
|
10
|
-
});
|
11
|
-
|
12
|
-
const options = [
|
13
|
-
{label: 'select an option', value: ''},
|
14
|
-
{label: 'option 1', value: '1'},
|
15
|
-
{label: 'option 2', value: '2'},
|
16
|
-
{label: 'option 3', value: '3'},
|
17
|
-
]
|
18
|
-
|
19
|
-
export default {
|
20
|
-
title: 'Common Inputs/Custom Select',
|
21
|
-
component: CustomSelect,
|
22
|
-
decorators: [withFormik],
|
23
|
-
parameters: {
|
24
|
-
formik: {
|
25
|
-
initialValues: {
|
26
|
-
name: '',
|
27
|
-
},
|
28
|
-
validationSchema: formSchema,
|
29
|
-
},
|
30
|
-
}
|
31
|
-
};
|
32
|
-
|
33
|
-
export const Select = args => {
|
34
|
-
|
35
|
-
return <CustomSelect label="options" options={options} name="name" {...args} />
|
36
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import withFormik from "storybook-formik";
|
4
|
-
import * as Yup from 'yup';
|
5
|
-
|
6
|
-
import CustomTextarea from './CustomTextarea';
|
7
|
-
|
8
|
-
const formSchema = Yup.object().shape({
|
9
|
-
text: Yup.string()
|
10
|
-
.required("Required"),
|
11
|
-
});
|
12
|
-
|
13
|
-
export default {
|
14
|
-
title: 'Common Inputs/Custom Textarea',
|
15
|
-
component: CustomTextarea,
|
16
|
-
decorators: [withFormik],
|
17
|
-
parameters: {
|
18
|
-
formik: {
|
19
|
-
initialValues: {
|
20
|
-
text: '',
|
21
|
-
validationSchema: formSchema
|
22
|
-
},
|
23
|
-
validationSchema: formSchema,
|
24
|
-
},
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
export const TextArea = (args) => {
|
29
|
-
|
30
|
-
return <CustomTextarea name="text" label="text" {...args} />
|
31
|
-
}
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
3
|
-
import withFormik from "storybook-formik";
|
4
|
-
|
5
|
-
import DatePicker from './DatePicker';
|
6
|
-
import SingleDatePicker from './SingleDatePicker';
|
7
|
-
|
8
|
-
import * as Yup from 'yup';
|
9
|
-
|
10
|
-
const datePickerSchema = Yup.object().shape({
|
11
|
-
date: Yup.object().shape({
|
12
|
-
startDate: Yup.object()
|
13
|
-
.required("Required")
|
14
|
-
.typeError('Invalid Start Date'),
|
15
|
-
endDate: Yup.object()
|
16
|
-
.required("Required")
|
17
|
-
.typeError('Invalid End Date')
|
18
|
-
}),
|
19
|
-
singleDate: Yup.object()
|
20
|
-
.required("Required")
|
21
|
-
.typeError('Invalid Date'),
|
22
|
-
});
|
23
|
-
|
24
|
-
|
25
|
-
export default {
|
26
|
-
title: 'Common Inputs/Date Picker',
|
27
|
-
component: DatePicker,
|
28
|
-
decorators: [withFormik],
|
29
|
-
parameters: {
|
30
|
-
formik: {
|
31
|
-
initialValues: {
|
32
|
-
date: {
|
33
|
-
startDate: null,
|
34
|
-
endDate: null
|
35
|
-
},
|
36
|
-
singleDate: null
|
37
|
-
},
|
38
|
-
validationSchema: datePickerSchema
|
39
|
-
},
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
export const date = args => <>
|
45
|
-
<DatePicker label="Double Date Picker" name='date' {...args} />
|
46
|
-
<SingleDatePicker label="Single Date Picker" name='singleDate' {...args} />
|
47
|
-
</>
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import EditorComponent from "./EditorComponent";
|
2
|
-
import BaseMaterial from "../../Containers/BaseMaterial";
|
3
|
-
|
4
|
-
export default {
|
5
|
-
title: 'Common Inputs/EditorComponent',
|
6
|
-
component: EditorComponent
|
7
|
-
}
|
8
|
-
|
9
|
-
const data = {
|
10
|
-
blocks: [
|
11
|
-
{
|
12
|
-
type: "header",
|
13
|
-
data: {
|
14
|
-
text: "Editor.js",
|
15
|
-
level: 1
|
16
|
-
}
|
17
|
-
},
|
18
|
-
{
|
19
|
-
type: "paragraph",
|
20
|
-
data: {
|
21
|
-
text:
|
22
|
-
"Hey. Meet the new Editor. On this page you can see it in action — try to edit this text."
|
23
|
-
}
|
24
|
-
},
|
25
|
-
{
|
26
|
-
type: 'image',
|
27
|
-
"data" : {
|
28
|
-
"file": {
|
29
|
-
"url" : "https://i.ytimg.com/vi/MPV2METPeJU/maxresdefault.jpg"
|
30
|
-
},
|
31
|
-
"caption" : "Caption Example",
|
32
|
-
"withBorder" : false,
|
33
|
-
"withBackground" : false,
|
34
|
-
"stretched" : false
|
35
|
-
}
|
36
|
-
},
|
37
|
-
{
|
38
|
-
"type" : "paragraph",
|
39
|
-
"data" : {
|
40
|
-
"text" : "Create a directory for your module, enter it and run <mark class=\"cdx-marker\">npm init</mark> command."
|
41
|
-
}
|
42
|
-
},
|
43
|
-
{
|
44
|
-
"type" : "table",
|
45
|
-
"data" : {
|
46
|
-
"withHeadings": true,
|
47
|
-
"content" : [ [ "Kine", "Pigs", "Chicken" ], [ "1 pcs", "3 pcs", "12 pcs" ], [ "100$", "200$", "150$" ] ]
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
]
|
52
|
-
};
|
53
|
-
|
54
|
-
export const Editor = args => {
|
55
|
-
return (
|
56
|
-
<BaseMaterial>
|
57
|
-
<EditorComponent data={data} {...args} />
|
58
|
-
</BaseMaterial>
|
59
|
-
)
|
60
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import InputField from './InputField'
|
3
|
-
|
4
|
-
import withFormik from 'storybook-formik'
|
5
|
-
|
6
|
-
export default {
|
7
|
-
component: InputField,
|
8
|
-
title: 'Common Inputs/Formik/InputField',
|
9
|
-
decorators: [withFormik]
|
10
|
-
}
|
11
|
-
|
12
|
-
const Template = args => <InputField {...args} />
|
13
|
-
|
14
|
-
export const TextInput = Template.bind({})
|
15
|
-
TextInput.args = {
|
16
|
-
name: 'username',
|
17
|
-
type: 'text',
|
18
|
-
placeholder: 'username'
|
19
|
-
}
|
20
|
-
TextInput.parameters = {
|
21
|
-
formik: {
|
22
|
-
initialValues: {
|
23
|
-
username: ''
|
24
|
-
}
|
25
|
-
},
|
26
|
-
onSubmit: v => console.log(v)
|
27
|
-
}
|