@mohamed-karawia/library 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. package/.env +3 -0
  2. package/.eslintcache +1 -0
  3. package/dist/stories/helpers/util.js +16 -14
  4. package/package.json +1 -1
  5. package/src/stories/helpers/util.js +1 -0
  6. package/dist/stories/API/API.stories.js +0 -24
  7. package/dist/stories/Agora/Chat/Chat.stories.js +0 -24
  8. package/dist/stories/Agora/Room/Room.stories.js +0 -24
  9. package/dist/stories/Buttons/Buttons/Buttons.stories.js +0 -39
  10. package/dist/stories/Buttons/ReactModal/ReactModal.stories.js +0 -30
  11. package/dist/stories/Chat/Chat.stories.js +0 -76
  12. package/dist/stories/Common Inputs/CheckboxGroup/CheckboxGroup.stories.js +0 -58
  13. package/dist/stories/Common Inputs/CustomAutoComplete/CustomAutoComplete.stories.js +0 -56
  14. package/dist/stories/Common Inputs/CustomDropzone/CustomDropzone.stories.js +0 -47
  15. package/dist/stories/Common Inputs/CustomSelect/CustomSelect.stories.js +0 -61
  16. package/dist/stories/Common Inputs/CustomTextarea/CustomTextarea.stories.js +0 -48
  17. package/dist/stories/Common Inputs/DatePicker/DatePicker.stories.js +0 -60
  18. package/dist/stories/Common Inputs/EditorComponent/EditorComponent.stories.js +0 -62
  19. package/dist/stories/Common Inputs/Formik/InputField/InputField.stories.js +0 -43
  20. package/dist/stories/Common Inputs/Formik/RadioField/RadioField.stories.js +0 -60
  21. package/dist/stories/Common Inputs/RadioInput/RadioInput.stories.js +0 -50
  22. package/dist/stories/Common Inputs/RichTextInput/RichTextInput.stories.js +0 -51
  23. package/dist/stories/Common Inputs/TextField/TextField.stories.js +0 -48
  24. package/dist/stories/Containers/BaseMaterial.stories.js +0 -24
  25. package/dist/stories/Containers/WidgetExample/WidgetBody.stories.js +0 -24
  26. package/dist/stories/Containers/WidgetExample/WidgetExample.stories.js +0 -24
  27. package/dist/stories/Containers/WidgetExample/WidgetHead.stories.js +0 -24
  28. package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.stories.js +0 -22
  29. package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.stories.js +0 -42
  30. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.stories.js +0 -65
  31. package/dist/stories/Enrollment/Guest/FillForm/FillForm.stories.js +0 -48
  32. package/dist/stories/Events/CreateEvent/CreateEvent.stories.js +0 -30
  33. package/dist/stories/Events/Event/Event.stories.js +0 -33
  34. package/dist/stories/Events/EventsList/EventsList.stories.js +0 -44
  35. package/dist/stories/Forms/AddPhoto/AddPhoto.stories.js +0 -47
  36. package/dist/stories/Forms/AddSong/AddSong.stories.js +0 -37
  37. package/dist/stories/Forms/AddVideo/AddVideo.stories.js +0 -33
  38. package/dist/stories/Forms/Create-Profile/CreateProfile.stories.js +0 -49
  39. package/dist/stories/Forms/Create-Profile/subcomponents/LogoUploader.stories.js +0 -42
  40. package/dist/stories/Forms/Create-Profile/subcomponents/ProfilePhoto.stories.js +0 -41
  41. package/dist/stories/Forms/Create-Profile/subcomponents/ResetBtn.stories.js +0 -32
  42. package/dist/stories/Forms/CreateAlbum/CreateAlbum.stories.js +0 -47
  43. package/dist/stories/Forms/CreateAnnouncementForm/CreateAnnouncementForm.stories.js +0 -58
  44. package/dist/stories/Forms/CreateMusicAlbum/CreateMusicAlbum.stories.js +0 -47
  45. package/dist/stories/Forms/CreateProfile/CreateProfile.stories.js +0 -24
  46. package/dist/stories/Forms/CreateProfile-3/CreateProfile.stories.js +0 -24
  47. package/dist/stories/Forms/CreateUser/CreateUser.stories.js +0 -26
  48. package/dist/stories/Forms/CreateVideoAlbum/CreateVideoAlbum.stories.js +0 -37
  49. package/dist/stories/Forms/Form/Form.stories.js +0 -24
  50. package/dist/stories/Forms/NewProfile/NewProfile.stories.js +0 -24
  51. package/dist/stories/Layout/Body/Body.stories.js +0 -30
  52. package/dist/stories/Layout/Center/Center.stories.js +0 -24
  53. package/dist/stories/Layout/Head/Head.stories.js +0 -24
  54. package/dist/stories/Layout/Left/Left.stories.js +0 -24
  55. package/dist/stories/Layout/Right/Right.stories.js +0 -24
  56. package/dist/stories/Library/CreateFolder/CreateFolder.stories.js +0 -45
  57. package/dist/stories/Library/Folders/Folders.stories.js +0 -55
  58. package/dist/stories/Library/Notes/Notes.stories.js +0 -42
  59. package/dist/stories/Library/ViewNote/ViewNote.stories.js +0 -24
  60. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.stories.js +0 -115
  61. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.stories.js +0 -107
  62. package/dist/stories/Navbar/Navbar.stories.js +0 -41
  63. package/dist/stories/Pages/Blank/Blank.stories.js +0 -24
  64. package/dist/stories/Pages/Centered/Centered.stories.js +0 -24
  65. package/dist/stories/Pages/Chat/Chat.stories.js +0 -74
  66. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.stories.js +0 -22
  67. package/dist/stories/Pages/Enrollment/FillForm/FillForm.stories.js +0 -22
  68. package/dist/stories/Pages/Enrollment/Forms/Forms.stories.js +0 -22
  69. package/dist/stories/Pages/Events/Event/Event.stories.js +0 -22
  70. package/dist/stories/Pages/Events/Events/Events.stories.js +0 -22
  71. package/dist/stories/Pages/Library/Folders/Library.stories.js +0 -22
  72. package/dist/stories/Pages/Library/Notes/Notes.stories.js +0 -22
  73. package/dist/stories/Pages/Music/MusicAlbum/Music.stories.js +0 -22
  74. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.stories.js +0 -22
  75. package/dist/stories/Pages/Photos/Album/Album.stories.js +0 -22
  76. package/dist/stories/Pages/Photos/Albums/Albums.stories.js +0 -22
  77. package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.stories.js +0 -22
  78. package/dist/stories/Pages/Video/VideoAlbum/Video.stories.js +0 -22
  79. package/dist/stories/Pages/ViewWorld/ViewWorld.stories.js +0 -264
  80. package/dist/stories/Photo Album/DetailedPhoto/DetailedPhoto.stories.js +0 -32
  81. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.stories.js +0 -115
  82. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.stories.js +0 -102
  83. package/dist/stories/Reusable Components/Cards/Card-style-1/CardStyle1.stories.js +0 -35
  84. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.stories.js +0 -37
  85. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.stories.js +0 -40
  86. package/dist/stories/Reusable Components/Cards/Card-style-2/CardStyle2.stories.js +0 -37
  87. package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.stories.js +0 -34
  88. package/dist/stories/Reusable Components/Cards/Card-style-4/CardStyle4.stories.js +0 -39
  89. package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.stories.js +0 -27
  90. package/dist/stories/Reusable Components/Cards/Card-style-7/CardStyle7.stories.js +0 -37
  91. package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.stories.js +0 -44
  92. package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.stories.js +0 -27
  93. package/dist/stories/Reusable Components/Cards/Card.stories.js +0 -132
  94. package/dist/stories/Reusable Components/Controls/Controls.stories.js +0 -49
  95. package/dist/stories/Reusable Components/Gallery/Gallery.stories.js +0 -56
  96. package/dist/stories/Reusable Components/Lists/Cards/ListCard-1.stories.js +0 -1
  97. package/dist/stories/Reusable Components/Lists/List.stories.js +0 -1
  98. package/dist/stories/Reusable Components/Mention/Mention.stories.js +0 -66
  99. package/dist/stories/Reusable Components/ReusableForm/ReusableForm.stories.js +0 -207
  100. package/dist/stories/Reusable Components/ReusableHeader/ReusableHeader.stories.js +0 -35
  101. package/dist/stories/Reusable Components/ReusableList/ReusableList.stories.js +0 -84
  102. package/dist/stories/Reusable Components/SearchCard/SearchCard.stories.js +0 -24
  103. package/dist/stories/Reusable Components/SpaceContainer/SpaceContainer.stories.js +0 -80
  104. package/dist/stories/Reusable Components/Spinner/Spinner.stories.js +0 -22
  105. package/dist/stories/Reusable Components/WidgetContainer/WidgetContainer.stories.js +0 -80
  106. package/dist/stories/Spaces/WelcomeSpace/WelcomeSpace.stories.js +0 -24
  107. package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.stories.js +0 -101
  108. package/dist/stories/VideoAlbum/Comments/Comments.stories.js +0 -45
  109. package/dist/stories/VideoAlbum/VideoPlayer/VideoPlayer.stories.js +0 -149
  110. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.stories.js +0 -49
  111. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.stories.js +0 -113
  112. package/dist/stories/Widgets/LogoWidget/LogoWidget.stories.js +0 -26
  113. package/dist/stories/Widgets/MusicPlayer/MusicPlayer.stories.js +0 -44
  114. package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.stories.js +0 -52
  115. package/dist/stories/Widgets/SpacesList/SpacesList.stories.js +0 -52
  116. package/dist/stories/Widgets/SpacesList/SpacesListItem.stories.js +0 -24
  117. package/public/logo192.png +0 -0
  118. package/public/logo512.png +0 -0
  119. package/src/stories/API/API.stories.js +0 -10
  120. package/src/stories/Agora/Chat/Chat.stories.jsx +0 -10
  121. package/src/stories/Agora/Room/Room.stories.jsx +0 -10
  122. package/src/stories/Buttons/Buttons/Buttons.stories.jsx +0 -24
  123. package/src/stories/Buttons/ReactModal/ReactModal.stories.jsx +0 -18
  124. package/src/stories/Chat/Chat.stories.jsx +0 -59
  125. package/src/stories/Common Inputs/CheckboxGroup/CheckboxGroup.stories.jsx +0 -32
  126. package/src/stories/Common Inputs/CustomAutoComplete/CustomAutoComplete.stories.jsx +0 -35
  127. package/src/stories/Common Inputs/CustomDropzone/CustomDropzone.stories.jsx +0 -26
  128. package/src/stories/Common Inputs/CustomSelect/CustomSelect.stories.jsx +0 -36
  129. package/src/stories/Common Inputs/CustomTextarea/CustomTextarea.stories.jsx +0 -31
  130. package/src/stories/Common Inputs/DatePicker/DatePicker.stories.jsx +0 -47
  131. package/src/stories/Common Inputs/EditorComponent/EditorComponent.stories.jsx +0 -60
  132. package/src/stories/Common Inputs/Formik/InputField/InputField.stories.jsx +0 -27
  133. package/src/stories/Common Inputs/Formik/RadioField/RadioField.stories.jsx +0 -41
  134. package/src/stories/Common Inputs/RadioInput/RadioInput.stories.js +0 -30
  135. package/src/stories/Common Inputs/RichTextInput/RichTextInput.stories.js +0 -45
  136. package/src/stories/Common Inputs/TextField/TextField.stories.jsx +0 -31
  137. package/src/stories/Containers/BaseMaterial.stories.js +0 -10
  138. package/src/stories/Containers/WidgetExample/WidgetBody.stories.js +0 -10
  139. package/src/stories/Containers/WidgetExample/WidgetExample.stories.js +0 -10
  140. package/src/stories/Containers/WidgetExample/WidgetHead.stories.js +0 -10
  141. package/src/stories/Enrollment/Admin/CreateForm/CreateForm.stories.jsx +0 -8
  142. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.stories.jsx +0 -36
  143. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.stories.jsx +0 -66
  144. package/src/stories/Enrollment/Guest/FillForm/FillForm.stories.jsx +0 -27
  145. package/src/stories/Events/CreateEvent/CreateEvent.stories.jsx +0 -19
  146. package/src/stories/Events/Event/Event.stories.jsx +0 -21
  147. package/src/stories/Events/EventsList/EventsList.stories.jsx +0 -25
  148. package/src/stories/Forms/AddPhoto/AddPhoto.stories.jsx +0 -37
  149. package/src/stories/Forms/AddSong/AddSong.stories.jsx +0 -26
  150. package/src/stories/Forms/AddVideo/AddVideo.stories.jsx +0 -20
  151. package/src/stories/Forms/Create-Profile/CreateProfile.stories.jsx +0 -36
  152. package/src/stories/Forms/Create-Profile/subcomponents/LogoUploader.stories.jsx +0 -27
  153. package/src/stories/Forms/Create-Profile/subcomponents/ProfilePhoto.stories.jsx +0 -26
  154. package/src/stories/Forms/Create-Profile/subcomponents/ResetBtn.stories.jsx +0 -18
  155. package/src/stories/Forms/CreateAlbum/CreateAlbum.stories.jsx +0 -37
  156. package/src/stories/Forms/CreateAnnouncementForm/CreateAnnouncementForm.stories.jsx +0 -44
  157. package/src/stories/Forms/CreateMusicAlbum/CreateMusicAlbum.stories.jsx +0 -38
  158. package/src/stories/Forms/CreateProfile/CreateProfile.stories.js +0 -10
  159. package/src/stories/Forms/CreateProfile-3/CreateProfile.stories.js +0 -10
  160. package/src/stories/Forms/CreateUser/CreateUser.stories.js +0 -10
  161. package/src/stories/Forms/CreateVideoAlbum/CreateVideoAlbum.stories.jsx +0 -23
  162. package/src/stories/Forms/Form/Form.stories.js +0 -10
  163. package/src/stories/Forms/NewProfile/NewProfile.stories.jsx +0 -10
  164. package/src/stories/Layout/Body/Body.stories.js +0 -26
  165. package/src/stories/Layout/Center/Center.stories.js +0 -14
  166. package/src/stories/Layout/Head/Head.stories.js +0 -10
  167. package/src/stories/Layout/Left/Left.stories.js +0 -14
  168. package/src/stories/Layout/Right/Right.stories.js +0 -14
  169. package/src/stories/Library/CreateFolder/CreateFolder.stories.jsx +0 -32
  170. package/src/stories/Library/Folders/Folders.stories.jsx +0 -34
  171. package/src/stories/Library/Notes/Notes.stories.jsx +0 -24
  172. package/src/stories/Library/ViewNote/ViewNote.stories.jsx +0 -16
  173. package/src/stories/Music Album/ViewAlbum/ViewAlbum.stories.jsx +0 -60
  174. package/src/stories/Music Album/ViewAlbums/ViewAlbums.stories.jsx +0 -57
  175. package/src/stories/Navbar/Navbar.stories.js +0 -25
  176. package/src/stories/Pages/Blank/Blank.stories.js +0 -10
  177. package/src/stories/Pages/Centered/Centered.stories.js +0 -14
  178. package/src/stories/Pages/Chat/Chat.stories.jsx +0 -53
  179. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.stories.jsx +0 -8
  180. package/src/stories/Pages/Enrollment/FillForm/FillForm.stories.jsx +0 -8
  181. package/src/stories/Pages/Enrollment/Forms/Forms.stories.jsx +0 -8
  182. package/src/stories/Pages/Events/Event/Event.stories.jsx +0 -8
  183. package/src/stories/Pages/Events/Events/Events.stories.jsx +0 -8
  184. package/src/stories/Pages/Library/Folders/Library.stories.jsx +0 -8
  185. package/src/stories/Pages/Library/Notes/Notes.stories.jsx +0 -8
  186. package/src/stories/Pages/Music/MusicAlbum/Music.stories.jsx +0 -8
  187. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.stories.jsx +0 -8
  188. package/src/stories/Pages/Photos/Album/Album.stories.jsx +0 -8
  189. package/src/stories/Pages/Photos/Albums/Albums.stories.jsx +0 -8
  190. package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.stories.jsx +0 -8
  191. package/src/stories/Pages/Video/VideoAlbum/Video.stories.jsx +0 -8
  192. package/src/stories/Pages/ViewWorld/ViewWorld.stories.js +0 -270
  193. package/src/stories/Photo Album/DetailedPhoto/DetailedPhoto.stories.jsx +0 -20
  194. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.stories.jsx +0 -60
  195. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.stories.jsx +0 -59
  196. package/src/stories/Reusable Components/Cards/Card-style-1/CardStyle1.stories.jsx +0 -22
  197. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.stories.jsx +0 -21
  198. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.stories.jsx +0 -21
  199. package/src/stories/Reusable Components/Cards/Card-style-2/CardStyle2.stories.jsx +0 -24
  200. package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.stories.jsx +0 -22
  201. package/src/stories/Reusable Components/Cards/Card-style-4/CardStyle4.stories.jsx +0 -25
  202. package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.stories.jsx +0 -9
  203. package/src/stories/Reusable Components/Cards/Card-style-7/CardStyle7.stories.jsx +0 -23
  204. package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.stories.jsx +0 -29
  205. package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.stories.jsx +0 -14
  206. package/src/stories/Reusable Components/Cards/Card.stories.jsx +0 -118
  207. package/src/stories/Reusable Components/Controls/Controls.stories.jsx +0 -24
  208. package/src/stories/Reusable Components/Gallery/Gallery.stories.jsx +0 -43
  209. package/src/stories/Reusable Components/Lists/Cards/ListCard-1.stories.js +0 -0
  210. package/src/stories/Reusable Components/Lists/List.stories.js +0 -0
  211. package/src/stories/Reusable Components/Mention/Mention.stories.jsx +0 -55
  212. package/src/stories/Reusable Components/ReusableForm/ReusableForm.stories.jsx +0 -167
  213. package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.stories.jsx +0 -22
  214. package/src/stories/Reusable Components/ReusableList/ReusableList.stories.jsx +0 -70
  215. package/src/stories/Reusable Components/SearchCard/SearchCard.stories.js +0 -10
  216. package/src/stories/Reusable Components/SpaceContainer/SpaceContainer.stories.jsx +0 -78
  217. package/src/stories/Reusable Components/Spinner/Spinner.stories.jsx +0 -8
  218. package/src/stories/Reusable Components/WidgetContainer/WidgetContainer.stories.jsx +0 -61
  219. package/src/stories/Spaces/WelcomeSpace/WelcomeSpace.stories.js +0 -10
  220. package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.stories.jsx +0 -59
  221. package/src/stories/VideoAlbum/Comments/Comments.stories.jsx +0 -18
  222. package/src/stories/VideoAlbum/VideoPlayer/VideoPlayer.stories.jsx +0 -82
  223. package/src/stories/VideoAlbum/VideoSpace/VideoSpace.stories.jsx +0 -23
  224. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.stories.jsx +0 -57
  225. package/src/stories/Widgets/LogoWidget/LogoWidget.stories.js +0 -12
  226. package/src/stories/Widgets/MusicPlayer/MusicPlayer.stories.jsx +0 -23
  227. package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.stories.jsx +0 -33
  228. package/src/stories/Widgets/SpacesList/SpacesList.stories.jsx +0 -27
  229. package/src/stories/Widgets/SpacesList/SpacesListItem.stories.jsx +0 -10
  230. package/src/stories/assets/images/album1.jpg +0 -0
  231. package/src/stories/assets/images/album2.jpg +0 -0
  232. package/src/stories/assets/images/album3.jpg +0 -0
  233. package/src/stories/assets/images/album4.jpg +0 -0
  234. package/src/stories/assets/images/album5.jpg +0 -0
  235. package/src/stories/assets/images/album6.jpg +0 -0
  236. package/src/stories/assets/images/art.jpg +0 -0
  237. package/src/stories/assets/images/dance.jpg +0 -0
  238. package/src/stories/assets/images/football.jpg +0 -0
  239. package/src/stories/assets/images/music.jpg +0 -0
  240. package/src/stories/assets/images/music1.jpg +0 -0
  241. package/src/stories/assets/images/music2.jpg +0 -0
  242. package/src/stories/assets/images/music3.jpg +0 -0
  243. package/src/stories/assets/images/music4.jpg +0 -0
  244. package/src/stories/assets/images/music5.jpg +0 -0
  245. package/src/stories/assets/images/music6.jpg +0 -0
  246. package/src/stories/assets/images/reset.png +0 -0
  247. package/src/stories/assets/images/robotics.jpg +0 -0
  248. package/src/stories/assets/images/tennis.jpg +0 -0
@@ -1,118 +0,0 @@
1
- import React from 'react';
2
- import Card from './Card';
3
-
4
- export default {
5
- title: 'Reusable Components/Cards/Regular Card',
6
- component: Card,
7
- };
8
-
9
- const Template = (args) => <Card {...args} />;
10
-
11
- export const CardWithImage = Template.bind({});
12
- CardWithImage.args = {
13
- title: 'Card with image',
14
- description: 'Lorem ipsum dolor sit amet consectetur.',
15
- img: 'https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png',
16
- cardBackgroundColor: '#f1d6d6',
17
- cardRadius: '20',
18
- cardTitleFontSize: '',
19
- cardTitleColor: '',
20
- cardImageRadius: '100',
21
- cardDescriptionFontSize: '',
22
- cardDescriptionColor: '',
23
- cardDirection: '',
24
- cardPadding: '10',
25
- imgSize: '90',
26
- cardBorderSize: '',
27
- cardBorderColor: '',
28
- controlsStyles: {
29
- showOnHover: true,
30
- iconBackground: "#272727",
31
- dropdownBackground: "#272727",
32
- dropdownFontColor: "white",
33
- dropdownItemHoverColor: "#414141",
34
- iconBackgroundHover: "#414141"
35
- }
36
- };
37
-
38
- export const CardWithImageColumn = Template.bind({});
39
- CardWithImageColumn.args = {
40
- title: 'Card with image column',
41
- description: 'Lorem ipsum dolor sit amet consectetur.',
42
- img: 'https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png',
43
- cardBackgroundColor: '#f1d6d6',
44
- cardRadius: '20',
45
- cardTitleFontSize: '',
46
- cardTitleColor: '',
47
- cardImageRadius: '100',
48
- cardDescriptionFontSize: '',
49
- cardDescriptionColor: '',
50
- cardDirection: 'column',
51
- cardPadding: '10',
52
- imgSize: '90',
53
- cardBorderSize: '',
54
- cardBorderColor: '',
55
- controlsStyles: {
56
- showOnHover: true,
57
- iconBackground: "#272727",
58
- dropdownBackground: "#272727",
59
- dropdownFontColor: "white",
60
- dropdownItemHoverColor: "#414141",
61
- iconBackgroundHover: "#414141"
62
- }
63
- };
64
-
65
- export const CardWithoutImage = Template.bind({});
66
- CardWithoutImage.args = {
67
- title: 'Card with image',
68
- description: 'Lorem ipsum dolor sit amet consectetur.',
69
- img: '',
70
- cardBackgroundColor: '#f1d6d6',
71
- cardRadius: '20',
72
- cardTitleFontSize: '',
73
- cardTitleColor: '',
74
- cardImageRadius: '100',
75
- cardDescriptionFontSize: '',
76
- cardDescriptionColor: '',
77
- cardDirection: '',
78
- cardPadding: '10',
79
- imgSize: '90',
80
- cardBorderSize: '',
81
- cardBorderColor: '',
82
- controlsStyles: {
83
- showOnHover: true,
84
- iconBackground: "#272727",
85
- dropdownBackground: "#272727",
86
- dropdownFontColor: "white",
87
- dropdownItemHoverColor: "#414141",
88
- iconBackgroundHover: "#414141"
89
- }
90
- };
91
-
92
- export const CardWithoutImageColumn = Template.bind({});
93
- CardWithoutImageColumn.args = {
94
- title: 'Card with image column',
95
- description: 'Lorem ipsum dolor sit amet consectetur.',
96
- img: '',
97
- cardBackgroundColor: '#f1d6d6',
98
- onHoverBackgroundColor: '',
99
- cardRadius: '20',
100
- cardTitleFontSize: '',
101
- cardTitleColor: '',
102
- cardImageRadius: '100',
103
- cardDescriptionFontSize: '',
104
- cardDescriptionColor: '',
105
- cardDirection: 'column',
106
- cardPadding: '10',
107
- imgSize: '90',
108
- cardBorderSize: '',
109
- cardBorderColor: '',
110
- controlsStyles: {
111
- showOnHover: true,
112
- iconBackground: "#272727",
113
- dropdownBackground: "#272727",
114
- dropdownFontColor: "white",
115
- dropdownItemHoverColor: "#414141",
116
- iconBackgroundHover: "#414141"
117
- }
118
- };
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import Controls from './Controls';
3
-
4
- import { AiOutlineUserAdd, AiOutlineDelete } from "react-icons/ai";
5
- import { IoIosAirplane, IoIosAlarm } from "react-icons/io";
6
-
7
- const controls = [
8
- { icon: (<AiOutlineUserAdd />), action: 'add', name: 'Add member' },
9
- { icon: (<AiOutlineDelete />), action: 'remove', name: 'Add member' },
10
- { icon: (<IoIosAirplane />), action: 'add', name: 'Some Icon' },
11
- { icon: (<IoIosAlarm />), action: 'remove', name: 'Another Icons' },
12
- ]
13
-
14
- export default {
15
- title: 'reusable Components/Controls',
16
- component: Controls
17
- }
18
-
19
- const Template = (args) => <Controls {...args} />;
20
-
21
- export const fixedControls = Template.bind({});
22
- fixedControls.args = {
23
- controls,
24
- };
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
-
3
- import Gallery from './Gallery';
4
- // Data
5
- import { controls, data, dataWithSections, cardControls } from '../fakeData';
6
- // Styles
7
- import { headingControlsStyles, galleryCardControlsStyles } from '../commonStyles';
8
-
9
- export default {
10
- title: 'Reusable components/Gallery',
11
- component: Gallery
12
- }
13
-
14
- const Template = (args) => (
15
- <Gallery
16
- galleryTitle="Reusable Gallery"
17
- galleryControls={controls}
18
- headerStyles={{
19
- padding: 10,
20
- headerBackground: '#FE1744',
21
- titleColor: '#ffff',
22
- }}
23
- columnsNumber={3}
24
- galleryColumnGap={10}
25
- controlsStyles={headingControlsStyles}
26
- cardStyle="card-style-6"
27
- customCardStyles={galleryCardControlsStyles}
28
- {...args} />
29
- );
30
-
31
- export const GalleryFlat = Template.bind({});
32
- GalleryFlat.args = {
33
- data: data,
34
- type: "flat",
35
- cardControls: cardControls
36
- };
37
-
38
- export const GallerySectioned = Template.bind({});
39
- GallerySectioned.args = {
40
- data: dataWithSections,
41
- type: "sectioned",
42
- cardControls: cardControls
43
- }
@@ -1,55 +0,0 @@
1
- import React, { useState } from 'react';
2
- import Mention from "./Mention";
3
-
4
- export default {
5
- title: 'Resuable Components/Mention',
6
- component: Mention
7
- }
8
-
9
- const users = [
10
- {
11
- id: 'walter',
12
- display: 'Walter White',
13
- },
14
- {
15
- id: 'jesse',
16
- display: 'Jesse Pinkman',
17
- },
18
- {
19
- id: 'gus',
20
- display: 'Gustavo "Gus" Fring',
21
- },
22
- {
23
- id: 'saul',
24
- display: 'Saul Goodman',
25
- },
26
- {
27
- id: 'hank',
28
- display: 'Hank Schrader',
29
- },
30
- {
31
- id: 'skyler',
32
- display: 'Skyler White',
33
- },
34
- {
35
- id: 'mike',
36
- display: 'Mike Ehrmantraut',
37
- },
38
- {
39
- id: 'lydia',
40
- display: 'Lydìã Rôdarté-Qüayle',
41
- },
42
- ]
43
-
44
- export const MentionArea = args => {
45
- const [value, setValue] = useState('');
46
-
47
- return (
48
- <Mention
49
- value={value}
50
- handleOnChange={(value) => setValue(value)}
51
- users={users}
52
- {...args}
53
- />
54
- )
55
- }
@@ -1,167 +0,0 @@
1
- import React from 'react';
2
- import withFormik from "storybook-formik";
3
- import * as Yup from 'yup';
4
-
5
- import ReusableForm from './ReusableForm';
6
- import TextField from '../../Common Inputs/TextField/TextField';
7
- import CustomDropZone from '../../Common Inputs/CustomDropzone/CustomDropZone';
8
- import CustomTextarea from '../../Common Inputs/CustomTextarea/CustomTextarea';
9
- import CheckboxGroup from '../../Common Inputs/CheckboxGroup/CheckboxGroup';
10
- import CustomAutoComplete from '../../Common Inputs/CustomAutoComplete/CustomAutoComplete';
11
- import CustomSelect from '../../Common Inputs/CustomSelect/CustomSelect';
12
- import DatePicker from '../../Common Inputs/DatePicker/DatePicker';
13
-
14
- const submitHandler = (values) => {
15
- console.log(values)
16
- }
17
-
18
- const cancelHandler = () => {
19
- console.log('cancel')
20
- }
21
-
22
- const sections = [
23
- {
24
- title: "Server Name",
25
- body: [(<TextField label="Server Name" name="userName" />)]
26
- },
27
- {
28
- title: "User Name",
29
- body: [
30
- (<TextField label="User Name" name="firstName" />),
31
- (<TextField label="Last Name" name="lastName" />),
32
- ],
33
- bodyColumns: 2
34
- },
35
- {
36
- title: 'More inputs',
37
- body: [
38
- (<TextField label="Input one" name="input1" />),
39
- (<TextField label="Input two" name="input2" />),
40
- ],
41
- hideTitle: true
42
- },
43
- {
44
- title: "Server history",
45
- body: [
46
- (<TextField label="Age" name="age" />),
47
- (<TextField label="Hobby" name="hobby" />),
48
- (<CustomTextarea label="Discription" name="discription" />),
49
- (<CheckboxGroup label="Checkbox Group" name="acceptTerms" options={[
50
- { label: 'option 1', value: '1' },
51
- { label: 'option 2', value: '2' },
52
- { label: 'option 3', value: '3' },
53
- ]} />),
54
- (<CustomAutoComplete
55
- name="search"
56
- label="Search"
57
- items={[
58
- { id: 'foo', label: 'foo' },
59
- { id: 'bar', label: 'bar' },
60
- { id: 'baz', label: 'baz' },
61
- ]}
62
- />),
63
- (
64
- <CustomSelect label="options" options={[
65
- { label: 'select an option', value: '' },
66
- { label: 'option 1', value: '1' },
67
- { label: 'option 2', value: '2' },
68
- { label: 'option 3', value: '3' },
69
- ]} name="select" />
70
- )
71
- ]
72
- },
73
- {
74
- title: "User Media",
75
- body: [
76
- (<CustomDropZone label="User Profile" name="file" />),
77
- (<DatePicker label="Date Range" name='date' />)
78
- ],
79
- },
80
- ]
81
-
82
- const initialValues = {
83
- userName: '',
84
- firstName: '',
85
- lastName: '',
86
- input1: '',
87
- input2: '',
88
- age: '',
89
- hobby: '',
90
- discription: '',
91
- acceptTerms: [],
92
- search: '',
93
- select: '',
94
- file: '',
95
- date: {
96
- startDate: null,
97
- endDate: null
98
- }
99
-
100
- }
101
- const formSchema = Yup.object().shape({
102
- userName: Yup.string()
103
- .required("Required"),
104
- firstName: Yup.string()
105
- .required("Required"),
106
- lastName: Yup.string()
107
- .required("Required"),
108
- age: Yup.string()
109
- .required("Required"),
110
- hobby: Yup.string()
111
- .required("Required"),
112
- discription: Yup.string()
113
- .required('Required'),
114
- acceptTerms: Yup.array()
115
- .min(1, 'You must choose at least one element'),
116
- search: Yup.string()
117
- .required("Required"),
118
- select: Yup.string()
119
- .required("Required"),
120
- date: Yup.object().shape({
121
- startDate: Yup.object()
122
- .required("Required")
123
- .typeError('Invalid Start Date'),
124
- endDate: Yup.object()
125
- .required("Required")
126
- .typeError('Invalid End Date')
127
- })
128
- });
129
-
130
- export default {
131
- title: 'Reusable Components/Reusable Formik Form',
132
- component: ReusableForm,
133
- // decorators: [withFormik],
134
- // parameters: {
135
- // formik: {
136
- // initialValues,
137
- // validationSchema: formSchema,
138
- // onSubmit: submitHandler
139
- // },
140
- // }
141
- }
142
-
143
- export const form = args => (
144
- <ReusableForm
145
- formTitle="Reusable form"
146
- initialValues={initialValues}
147
- formSchema={formSchema}
148
- sections={sections}
149
- headerStyles={{
150
- padding: 10,
151
- headerBackground: 'black',
152
- titleColor: '#ffff',
153
- }}
154
- sectionHeaderStyles={{
155
- padding: 6,
156
- headerBackground: '#FE1744',
157
- titleColor: '#ffff',
158
- }}
159
- bodyPadding={10}
160
- saveBtnText="Save"
161
- cancelBtnText="Cancel"
162
- saveBtnHandle={submitHandler}
163
- cancelHandler={cancelHandler}
164
- bodyRowGap={20}
165
- bodyColumnGap={10}
166
- {...args} />
167
- )
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
-
3
- import ReusableHeader from './ReusableHeader';
4
- import { controls } from '../fakeData'
5
-
6
- export default {
7
- title: 'Reusable Components/Reusable Header',
8
- component: ReusableHeader
9
- }
10
-
11
- const Template = (args) => (<ReusableHeader {...args} />
12
- );
13
-
14
- export const Header = Template.bind({});
15
- Header.args = {
16
- title: "Reusable Header",
17
- discription: "This is a discription for header",
18
- controls: controls,
19
- controlsStyles: {
20
- iconColor: 'red'
21
- }
22
- };
@@ -1,70 +0,0 @@
1
- import React from 'react';
2
- // Components
3
- import ReusableList from './ReusableList';
4
- // Data
5
- import { controls, data, dataWithSections, cardControls } from '../fakeData';
6
- export default {
7
- title: 'Reusable components/List',
8
- component: ReusableList
9
- }
10
-
11
- const Template = (args) => (<ReusableList
12
- listTitle='Reusable List'
13
- cardStyle="card-style-1"
14
- {...args} />
15
- );
16
-
17
- export const ListFlat = Template.bind({});
18
- ListFlat.args = {
19
- data: data,
20
- type: "flat",
21
- cardControls,
22
- headerStyles: {
23
- padding: 10,
24
- headerBackground: '#FE1744',
25
- titleColor: '#ffff',
26
- controlsStyles: {
27
- dropdownBackground: 'black',
28
- dropdownFontColor: 'white',
29
- dropdownItemHoverColor: '#FE1744'
30
- },
31
- },
32
- listControls: controls,
33
- customCardStyles: {
34
- controlsStyles: {
35
- iconColor: 'black',
36
- showOnHover: true
37
- }
38
- },
39
- hideTitle: false
40
- };
41
-
42
- export const ListSectioned = Template.bind({});
43
- ListSectioned.args = {
44
- data: dataWithSections,
45
- type: "sectioned",
46
- sectionHeaderStyles: {
47
- cardTitleColor: 'white',
48
- cardBackgroundColor: 'black',
49
- cardPadding: 10
50
- },
51
- cardControls,
52
- headerStyles: {
53
- padding: 10,
54
- headerBackground: '#FE1744',
55
- titleColor: '#ffff',
56
- controlsStyles: {
57
- dropdownBackground: 'black',
58
- dropdownFontColor: 'white',
59
- dropdownItemHoverColor: '#FE1744'
60
- },
61
- },
62
- listControls: controls,
63
- customCardStyles: {
64
- controlsStyles: {
65
- iconColor: 'black',
66
- showOnHover: true
67
-
68
- }
69
- },
70
- }
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
-
3
- import SearchCard from './SearchCard';
4
-
5
- export default {
6
- title: 'Components/SearchCard/Item',
7
- component: SearchCard,
8
- };
9
-
10
- export const Default = (args) => <SearchCard {...args} />
@@ -1,78 +0,0 @@
1
- import React from 'react';
2
-
3
- import SpaceContainer from './SpaceContainer';
4
- import EditorComponent from '../../Common Inputs/EditorComponent/EditorComponent'
5
-
6
- import { cardControls, controls } from '../fakeData';
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 default {
55
- title: 'Reusable Components/Space Container',
56
- component: SpaceContainer
57
- }
58
-
59
- const Template = (args) => (
60
- <SpaceContainer {...args}>
61
- <EditorComponent data={data} />
62
- </SpaceContainer>
63
- );
64
-
65
- export const EditorSpace = Template.bind({});
66
- EditorSpace.args = {
67
- title: "Space Title",
68
- discription: "Lorem ipsum dolor sit amet consectetur.",
69
- controls: cardControls,
70
- headerStyles: {
71
- padding: 10,
72
- headerBackground: '#FE1744',
73
- titleColor: '#ffff',
74
- controlsStyles: {
75
- iconsGap: 5
76
- },
77
- },
78
- };
@@ -1,8 +0,0 @@
1
- import Spinner from "./Spinner";
2
-
3
- export default {
4
- title: 'Reusable Components/Spinner/Spinner',
5
- component: Spinner
6
- }
7
-
8
- export const spinner = args => <Spinner {...args} />
@@ -1,61 +0,0 @@
1
- import React from 'react';
2
-
3
- import WidgetContainer from './WidgetContainer';
4
- import { data, controls } from '../fakeData'
5
-
6
- const Songs = [
7
- { name: 'Music 1', musicSrc: 'https://www.pacdv.com/sounds/free-music/kickstarter.mp3', cover: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8NHx8fGVufDB8fHx8&w=1000&q=80' },
8
- { name: 'Music 2', musicSrc: 'https://www.pacdv.com/sounds/free-music/gentle-thoughts-1.mp3', cover: 'https://c4.wallpaperflare.com/wallpaper/729/961/256/black-minimalistic-music-piano-black-background-1680x1050-entertainment-music-hd-art-wallpaper-preview.jpg' },
9
- { name: 'Music 3', musicSrc: 'https://www.pacdv.com/sounds/free-music/glow-in-the-dark.mp3', cover: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8NHx8fGVufDB8fHx8&w=1000&q=80' },
10
- ]
11
-
12
- export default {
13
- title: 'Reusable components/Widget Container',
14
- component: WidgetContainer
15
- }
16
-
17
- const Template = (args) => (<WidgetContainer {...args} />);
18
-
19
- export const ListWidget = Template.bind({});
20
- ListWidget.args = {
21
- widgetType: "list",
22
- widgetTitle: "test",
23
- widgetControls: controls,
24
- widgetProps: {
25
- data: data,
26
- cardStyle: "card-style-2",
27
- type: "flat"
28
- },
29
- headerStyles: {
30
- padding: 5,
31
- headerBackground: '#FE1744',
32
- titleColor: '#ffff',
33
- controlsStyles: {
34
- dropdownBackground: 'black',
35
- dropdownFontColor: 'white',
36
- dropdownItemHoverColor: '#FE1744'
37
- },
38
- }
39
- };
40
-
41
-
42
- export const MusicWidget = Template.bind({});
43
- MusicWidget.args = {
44
- widgetType: "music player",
45
- widgetTitle: "Music Player",
46
- widgetControls: controls,
47
- widgetProps: {
48
- playlist: Songs
49
- },
50
- headerStyles: {
51
- padding: 5,
52
- headerBackground: '#FE1744',
53
- titleColor: '#ffff',
54
- controlsStyles: {
55
- dropdownBackground: 'black',
56
- dropdownFontColor: 'white',
57
- dropdownItemHoverColor: '#FE1744'
58
- },
59
- }
60
- };
61
-
@@ -1,10 +0,0 @@
1
- import React from "react"
2
-
3
- import WelcomeSpace from "./WelcomeSpace"
4
-
5
- export default {
6
- title: 'Spaces/Welcome',
7
- component: WelcomeSpace
8
- }
9
-
10
- export const Default = (args) => <WelcomeSpace {...args} />