@mohamed-karawia/library 0.1.6 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. package/dist/stories/helpers/util.js +16 -14
  2. package/mohamed-karawia-library-0.1.9.tgz +0 -0
  3. package/package.json +6 -4
  4. package/src/stories/helpers/util.js +1 -0
  5. package/.github/workflows/chromatic.yml +0 -26
  6. package/.storybook/main.js +0 -21
  7. package/.storybook/middleware.js +0 -28
  8. package/.storybook/preview.js +0 -9
  9. package/build-storybook.log +0 -2704
  10. package/dist/stories/API/API.stories.js +0 -24
  11. package/dist/stories/Agora/Chat/Chat.stories.js +0 -24
  12. package/dist/stories/Agora/Room/Room.stories.js +0 -24
  13. package/dist/stories/Buttons/Buttons/Buttons.stories.js +0 -39
  14. package/dist/stories/Buttons/ReactModal/ReactModal.stories.js +0 -30
  15. package/dist/stories/Chat/Chat.stories.js +0 -76
  16. package/dist/stories/Common Inputs/CheckboxGroup/CheckboxGroup.stories.js +0 -58
  17. package/dist/stories/Common Inputs/CustomAutoComplete/CustomAutoComplete.stories.js +0 -56
  18. package/dist/stories/Common Inputs/CustomDropzone/CustomDropzone.stories.js +0 -47
  19. package/dist/stories/Common Inputs/CustomSelect/CustomSelect.stories.js +0 -61
  20. package/dist/stories/Common Inputs/CustomTextarea/CustomTextarea.stories.js +0 -48
  21. package/dist/stories/Common Inputs/DatePicker/DatePicker.stories.js +0 -60
  22. package/dist/stories/Common Inputs/EditorComponent/EditorComponent.stories.js +0 -62
  23. package/dist/stories/Common Inputs/Formik/InputField/InputField.stories.js +0 -43
  24. package/dist/stories/Common Inputs/Formik/RadioField/RadioField.stories.js +0 -60
  25. package/dist/stories/Common Inputs/RadioInput/RadioInput.stories.js +0 -50
  26. package/dist/stories/Common Inputs/RichTextInput/RichTextInput.stories.js +0 -51
  27. package/dist/stories/Common Inputs/TextField/TextField.stories.js +0 -48
  28. package/dist/stories/Containers/BaseMaterial.stories.js +0 -24
  29. package/dist/stories/Containers/WidgetExample/WidgetBody.stories.js +0 -24
  30. package/dist/stories/Containers/WidgetExample/WidgetExample.stories.js +0 -24
  31. package/dist/stories/Containers/WidgetExample/WidgetHead.stories.js +0 -24
  32. package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.stories.js +0 -22
  33. package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.stories.js +0 -42
  34. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.stories.js +0 -65
  35. package/dist/stories/Enrollment/Guest/FillForm/FillForm.stories.js +0 -48
  36. package/dist/stories/Events/CreateEvent/CreateEvent.stories.js +0 -30
  37. package/dist/stories/Events/Event/Event.stories.js +0 -33
  38. package/dist/stories/Events/EventsList/EventsList.stories.js +0 -44
  39. package/dist/stories/Forms/AddPhoto/AddPhoto.stories.js +0 -47
  40. package/dist/stories/Forms/AddSong/AddSong.stories.js +0 -37
  41. package/dist/stories/Forms/AddVideo/AddVideo.stories.js +0 -33
  42. package/dist/stories/Forms/Create-Profile/CreateProfile.stories.js +0 -49
  43. package/dist/stories/Forms/Create-Profile/subcomponents/LogoUploader.stories.js +0 -42
  44. package/dist/stories/Forms/Create-Profile/subcomponents/ProfilePhoto.stories.js +0 -41
  45. package/dist/stories/Forms/Create-Profile/subcomponents/ResetBtn.stories.js +0 -32
  46. package/dist/stories/Forms/CreateAlbum/CreateAlbum.stories.js +0 -47
  47. package/dist/stories/Forms/CreateAnnouncementForm/CreateAnnouncementForm.stories.js +0 -58
  48. package/dist/stories/Forms/CreateMusicAlbum/CreateMusicAlbum.stories.js +0 -47
  49. package/dist/stories/Forms/CreateProfile/CreateProfile.stories.js +0 -24
  50. package/dist/stories/Forms/CreateProfile-3/CreateProfile.stories.js +0 -24
  51. package/dist/stories/Forms/CreateUser/CreateUser.stories.js +0 -26
  52. package/dist/stories/Forms/CreateVideoAlbum/CreateVideoAlbum.stories.js +0 -37
  53. package/dist/stories/Forms/Form/Form.stories.js +0 -24
  54. package/dist/stories/Forms/NewProfile/NewProfile.stories.js +0 -24
  55. package/dist/stories/Layout/Body/Body.stories.js +0 -30
  56. package/dist/stories/Layout/Center/Center.stories.js +0 -24
  57. package/dist/stories/Layout/Head/Head.stories.js +0 -24
  58. package/dist/stories/Layout/Left/Left.stories.js +0 -24
  59. package/dist/stories/Layout/Right/Right.stories.js +0 -24
  60. package/dist/stories/Library/CreateFolder/CreateFolder.stories.js +0 -45
  61. package/dist/stories/Library/Folders/Folders.stories.js +0 -55
  62. package/dist/stories/Library/Notes/Notes.stories.js +0 -42
  63. package/dist/stories/Library/ViewNote/ViewNote.stories.js +0 -24
  64. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.stories.js +0 -115
  65. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.stories.js +0 -107
  66. package/dist/stories/Navbar/Navbar.stories.js +0 -41
  67. package/dist/stories/Pages/Blank/Blank.stories.js +0 -24
  68. package/dist/stories/Pages/Centered/Centered.stories.js +0 -24
  69. package/dist/stories/Pages/Chat/Chat.stories.js +0 -74
  70. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.stories.js +0 -22
  71. package/dist/stories/Pages/Enrollment/FillForm/FillForm.stories.js +0 -22
  72. package/dist/stories/Pages/Enrollment/Forms/Forms.stories.js +0 -22
  73. package/dist/stories/Pages/Events/Event/Event.stories.js +0 -22
  74. package/dist/stories/Pages/Events/Events/Events.stories.js +0 -22
  75. package/dist/stories/Pages/Library/Folders/Library.stories.js +0 -22
  76. package/dist/stories/Pages/Library/Notes/Notes.stories.js +0 -22
  77. package/dist/stories/Pages/Music/MusicAlbum/Music.stories.js +0 -22
  78. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.stories.js +0 -22
  79. package/dist/stories/Pages/Photos/Album/Album.stories.js +0 -22
  80. package/dist/stories/Pages/Photos/Albums/Albums.stories.js +0 -22
  81. package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.stories.js +0 -22
  82. package/dist/stories/Pages/Video/VideoAlbum/Video.stories.js +0 -22
  83. package/dist/stories/Pages/ViewWorld/ViewWorld.stories.js +0 -264
  84. package/dist/stories/Photo Album/DetailedPhoto/DetailedPhoto.stories.js +0 -32
  85. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.stories.js +0 -115
  86. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.stories.js +0 -102
  87. package/dist/stories/Reusable Components/Cards/Card-style-1/CardStyle1.stories.js +0 -35
  88. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.stories.js +0 -37
  89. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.stories.js +0 -40
  90. package/dist/stories/Reusable Components/Cards/Card-style-2/CardStyle2.stories.js +0 -37
  91. package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.stories.js +0 -34
  92. package/dist/stories/Reusable Components/Cards/Card-style-4/CardStyle4.stories.js +0 -39
  93. package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.stories.js +0 -27
  94. package/dist/stories/Reusable Components/Cards/Card-style-7/CardStyle7.stories.js +0 -37
  95. package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.stories.js +0 -44
  96. package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.stories.js +0 -27
  97. package/dist/stories/Reusable Components/Cards/Card.stories.js +0 -132
  98. package/dist/stories/Reusable Components/Controls/Controls.stories.js +0 -49
  99. package/dist/stories/Reusable Components/Gallery/Gallery.stories.js +0 -56
  100. package/dist/stories/Reusable Components/Lists/Cards/ListCard-1.stories.js +0 -1
  101. package/dist/stories/Reusable Components/Lists/List.stories.js +0 -1
  102. package/dist/stories/Reusable Components/Mention/Mention.stories.js +0 -66
  103. package/dist/stories/Reusable Components/ReusableForm/ReusableForm.stories.js +0 -207
  104. package/dist/stories/Reusable Components/ReusableHeader/ReusableHeader.stories.js +0 -35
  105. package/dist/stories/Reusable Components/ReusableList/ReusableList.stories.js +0 -84
  106. package/dist/stories/Reusable Components/SearchCard/SearchCard.stories.js +0 -24
  107. package/dist/stories/Reusable Components/SpaceContainer/SpaceContainer.stories.js +0 -80
  108. package/dist/stories/Reusable Components/Spinner/Spinner.stories.js +0 -22
  109. package/dist/stories/Reusable Components/WidgetContainer/WidgetContainer.stories.js +0 -80
  110. package/dist/stories/Spaces/WelcomeSpace/WelcomeSpace.stories.js +0 -24
  111. package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.stories.js +0 -101
  112. package/dist/stories/VideoAlbum/Comments/Comments.stories.js +0 -45
  113. package/dist/stories/VideoAlbum/VideoPlayer/VideoPlayer.stories.js +0 -149
  114. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.stories.js +0 -49
  115. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.stories.js +0 -113
  116. package/dist/stories/Widgets/LogoWidget/LogoWidget.stories.js +0 -26
  117. package/dist/stories/Widgets/MusicPlayer/MusicPlayer.stories.js +0 -44
  118. package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.stories.js +0 -52
  119. package/dist/stories/Widgets/SpacesList/SpacesList.stories.js +0 -52
  120. package/dist/stories/Widgets/SpacesList/SpacesListItem.stories.js +0 -24
  121. package/public/logo192.png +0 -0
  122. package/public/logo512.png +0 -0
  123. package/src/stories/API/API.stories.js +0 -10
  124. package/src/stories/Agora/Chat/Chat.stories.jsx +0 -10
  125. package/src/stories/Agora/Room/Room.stories.jsx +0 -10
  126. package/src/stories/Buttons/Buttons/Buttons.stories.jsx +0 -24
  127. package/src/stories/Buttons/ReactModal/ReactModal.stories.jsx +0 -18
  128. package/src/stories/Chat/Chat.stories.jsx +0 -59
  129. package/src/stories/Common Inputs/CheckboxGroup/CheckboxGroup.stories.jsx +0 -32
  130. package/src/stories/Common Inputs/CustomAutoComplete/CustomAutoComplete.stories.jsx +0 -35
  131. package/src/stories/Common Inputs/CustomDropzone/CustomDropzone.stories.jsx +0 -26
  132. package/src/stories/Common Inputs/CustomSelect/CustomSelect.stories.jsx +0 -36
  133. package/src/stories/Common Inputs/CustomTextarea/CustomTextarea.stories.jsx +0 -31
  134. package/src/stories/Common Inputs/DatePicker/DatePicker.stories.jsx +0 -47
  135. package/src/stories/Common Inputs/EditorComponent/EditorComponent.stories.jsx +0 -60
  136. package/src/stories/Common Inputs/Formik/InputField/InputField.stories.jsx +0 -27
  137. package/src/stories/Common Inputs/Formik/RadioField/RadioField.stories.jsx +0 -41
  138. package/src/stories/Common Inputs/RadioInput/RadioInput.stories.js +0 -30
  139. package/src/stories/Common Inputs/RichTextInput/RichTextInput.stories.js +0 -45
  140. package/src/stories/Common Inputs/TextField/TextField.stories.jsx +0 -31
  141. package/src/stories/Containers/BaseMaterial.stories.js +0 -10
  142. package/src/stories/Containers/WidgetExample/WidgetBody.stories.js +0 -10
  143. package/src/stories/Containers/WidgetExample/WidgetExample.stories.js +0 -10
  144. package/src/stories/Containers/WidgetExample/WidgetHead.stories.js +0 -10
  145. package/src/stories/Enrollment/Admin/CreateForm/CreateForm.stories.jsx +0 -8
  146. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.stories.jsx +0 -36
  147. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.stories.jsx +0 -66
  148. package/src/stories/Enrollment/Guest/FillForm/FillForm.stories.jsx +0 -27
  149. package/src/stories/Events/CreateEvent/CreateEvent.stories.jsx +0 -19
  150. package/src/stories/Events/Event/Event.stories.jsx +0 -21
  151. package/src/stories/Events/EventsList/EventsList.stories.jsx +0 -25
  152. package/src/stories/Forms/AddPhoto/AddPhoto.stories.jsx +0 -37
  153. package/src/stories/Forms/AddSong/AddSong.stories.jsx +0 -26
  154. package/src/stories/Forms/AddVideo/AddVideo.stories.jsx +0 -20
  155. package/src/stories/Forms/Create-Profile/CreateProfile.stories.jsx +0 -36
  156. package/src/stories/Forms/Create-Profile/subcomponents/LogoUploader.stories.jsx +0 -27
  157. package/src/stories/Forms/Create-Profile/subcomponents/ProfilePhoto.stories.jsx +0 -26
  158. package/src/stories/Forms/Create-Profile/subcomponents/ResetBtn.stories.jsx +0 -18
  159. package/src/stories/Forms/CreateAlbum/CreateAlbum.stories.jsx +0 -37
  160. package/src/stories/Forms/CreateAnnouncementForm/CreateAnnouncementForm.stories.jsx +0 -44
  161. package/src/stories/Forms/CreateMusicAlbum/CreateMusicAlbum.stories.jsx +0 -38
  162. package/src/stories/Forms/CreateProfile/CreateProfile.stories.js +0 -10
  163. package/src/stories/Forms/CreateProfile-3/CreateProfile.stories.js +0 -10
  164. package/src/stories/Forms/CreateUser/CreateUser.stories.js +0 -10
  165. package/src/stories/Forms/CreateVideoAlbum/CreateVideoAlbum.stories.jsx +0 -23
  166. package/src/stories/Forms/Form/Form.stories.js +0 -10
  167. package/src/stories/Forms/NewProfile/NewProfile.stories.jsx +0 -10
  168. package/src/stories/Layout/Body/Body.stories.js +0 -26
  169. package/src/stories/Layout/Center/Center.stories.js +0 -14
  170. package/src/stories/Layout/Head/Head.stories.js +0 -10
  171. package/src/stories/Layout/Left/Left.stories.js +0 -14
  172. package/src/stories/Layout/Right/Right.stories.js +0 -14
  173. package/src/stories/Library/CreateFolder/CreateFolder.stories.jsx +0 -32
  174. package/src/stories/Library/Folders/Folders.stories.jsx +0 -34
  175. package/src/stories/Library/Notes/Notes.stories.jsx +0 -24
  176. package/src/stories/Library/ViewNote/ViewNote.stories.jsx +0 -16
  177. package/src/stories/Music Album/ViewAlbum/ViewAlbum.stories.jsx +0 -60
  178. package/src/stories/Music Album/ViewAlbums/ViewAlbums.stories.jsx +0 -57
  179. package/src/stories/Navbar/Navbar.stories.js +0 -25
  180. package/src/stories/Pages/Blank/Blank.stories.js +0 -10
  181. package/src/stories/Pages/Centered/Centered.stories.js +0 -14
  182. package/src/stories/Pages/Chat/Chat.stories.jsx +0 -53
  183. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.stories.jsx +0 -8
  184. package/src/stories/Pages/Enrollment/FillForm/FillForm.stories.jsx +0 -8
  185. package/src/stories/Pages/Enrollment/Forms/Forms.stories.jsx +0 -8
  186. package/src/stories/Pages/Events/Event/Event.stories.jsx +0 -8
  187. package/src/stories/Pages/Events/Events/Events.stories.jsx +0 -8
  188. package/src/stories/Pages/Library/Folders/Library.stories.jsx +0 -8
  189. package/src/stories/Pages/Library/Notes/Notes.stories.jsx +0 -8
  190. package/src/stories/Pages/Music/MusicAlbum/Music.stories.jsx +0 -8
  191. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.stories.jsx +0 -8
  192. package/src/stories/Pages/Photos/Album/Album.stories.jsx +0 -8
  193. package/src/stories/Pages/Photos/Albums/Albums.stories.jsx +0 -8
  194. package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.stories.jsx +0 -8
  195. package/src/stories/Pages/Video/VideoAlbum/Video.stories.jsx +0 -8
  196. package/src/stories/Pages/ViewWorld/ViewWorld.stories.js +0 -270
  197. package/src/stories/Photo Album/DetailedPhoto/DetailedPhoto.stories.jsx +0 -20
  198. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.stories.jsx +0 -60
  199. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.stories.jsx +0 -59
  200. package/src/stories/Reusable Components/Cards/Card-style-1/CardStyle1.stories.jsx +0 -22
  201. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.stories.jsx +0 -21
  202. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.stories.jsx +0 -21
  203. package/src/stories/Reusable Components/Cards/Card-style-2/CardStyle2.stories.jsx +0 -24
  204. package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.stories.jsx +0 -22
  205. package/src/stories/Reusable Components/Cards/Card-style-4/CardStyle4.stories.jsx +0 -25
  206. package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.stories.jsx +0 -9
  207. package/src/stories/Reusable Components/Cards/Card-style-7/CardStyle7.stories.jsx +0 -23
  208. package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.stories.jsx +0 -29
  209. package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.stories.jsx +0 -14
  210. package/src/stories/Reusable Components/Cards/Card.stories.jsx +0 -118
  211. package/src/stories/Reusable Components/Controls/Controls.stories.jsx +0 -24
  212. package/src/stories/Reusable Components/Gallery/Gallery.stories.jsx +0 -43
  213. package/src/stories/Reusable Components/Lists/Cards/ListCard-1.stories.js +0 -0
  214. package/src/stories/Reusable Components/Lists/List.stories.js +0 -0
  215. package/src/stories/Reusable Components/Mention/Mention.stories.jsx +0 -55
  216. package/src/stories/Reusable Components/ReusableForm/ReusableForm.stories.jsx +0 -167
  217. package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.stories.jsx +0 -22
  218. package/src/stories/Reusable Components/ReusableList/ReusableList.stories.jsx +0 -70
  219. package/src/stories/Reusable Components/SearchCard/SearchCard.stories.js +0 -10
  220. package/src/stories/Reusable Components/SpaceContainer/SpaceContainer.stories.jsx +0 -78
  221. package/src/stories/Reusable Components/Spinner/Spinner.stories.jsx +0 -8
  222. package/src/stories/Reusable Components/WidgetContainer/WidgetContainer.stories.jsx +0 -61
  223. package/src/stories/Spaces/WelcomeSpace/WelcomeSpace.stories.js +0 -10
  224. package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.stories.jsx +0 -59
  225. package/src/stories/VideoAlbum/Comments/Comments.stories.jsx +0 -18
  226. package/src/stories/VideoAlbum/VideoPlayer/VideoPlayer.stories.jsx +0 -82
  227. package/src/stories/VideoAlbum/VideoSpace/VideoSpace.stories.jsx +0 -23
  228. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.stories.jsx +0 -57
  229. package/src/stories/Widgets/LogoWidget/LogoWidget.stories.js +0 -12
  230. package/src/stories/Widgets/MusicPlayer/MusicPlayer.stories.jsx +0 -23
  231. package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.stories.jsx +0 -33
  232. package/src/stories/Widgets/SpacesList/SpacesList.stories.jsx +0 -27
  233. package/src/stories/Widgets/SpacesList/SpacesListItem.stories.jsx +0 -10
  234. package/src/stories/assets/images/album1.jpg +0 -0
  235. package/src/stories/assets/images/album2.jpg +0 -0
  236. package/src/stories/assets/images/album3.jpg +0 -0
  237. package/src/stories/assets/images/album4.jpg +0 -0
  238. package/src/stories/assets/images/album5.jpg +0 -0
  239. package/src/stories/assets/images/album6.jpg +0 -0
  240. package/src/stories/assets/images/art.jpg +0 -0
  241. package/src/stories/assets/images/dance.jpg +0 -0
  242. package/src/stories/assets/images/football.jpg +0 -0
  243. package/src/stories/assets/images/music.jpg +0 -0
  244. package/src/stories/assets/images/music1.jpg +0 -0
  245. package/src/stories/assets/images/music2.jpg +0 -0
  246. package/src/stories/assets/images/music3.jpg +0 -0
  247. package/src/stories/assets/images/music4.jpg +0 -0
  248. package/src/stories/assets/images/music5.jpg +0 -0
  249. package/src/stories/assets/images/music6.jpg +0 -0
  250. package/src/stories/assets/images/reset.png +0 -0
  251. package/src/stories/assets/images/robotics.jpg +0 -0
  252. package/src/stories/assets/images/tennis.jpg +0 -0
@@ -1,207 +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.form = exports.default = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _storybookFormik = _interopRequireDefault(require("storybook-formik"));
13
-
14
- var Yup = _interopRequireWildcard(require("yup"));
15
-
16
- var _ReusableForm = _interopRequireDefault(require("./ReusableForm"));
17
-
18
- var _TextField = _interopRequireDefault(require("../../Common Inputs/TextField/TextField"));
19
-
20
- var _CustomDropZone = _interopRequireDefault(require("../../Common Inputs/CustomDropzone/CustomDropZone"));
21
-
22
- var _CustomTextarea = _interopRequireDefault(require("../../Common Inputs/CustomTextarea/CustomTextarea"));
23
-
24
- var _CheckboxGroup = _interopRequireDefault(require("../../Common Inputs/CheckboxGroup/CheckboxGroup"));
25
-
26
- var _CustomAutoComplete = _interopRequireDefault(require("../../Common Inputs/CustomAutoComplete/CustomAutoComplete"));
27
-
28
- var _CustomSelect = _interopRequireDefault(require("../../Common Inputs/CustomSelect/CustomSelect"));
29
-
30
- var _DatePicker = _interopRequireDefault(require("../../Common Inputs/DatePicker/DatePicker"));
31
-
32
- 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); }
33
-
34
- 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; }
35
-
36
- var submitHandler = function submitHandler(values) {
37
- console.log(values);
38
- };
39
-
40
- var cancelHandler = function cancelHandler() {
41
- console.log('cancel');
42
- };
43
-
44
- var sections = [{
45
- title: "Server Name",
46
- body: [/*#__PURE__*/_react.default.createElement(_TextField.default, {
47
- label: "Server Name",
48
- name: "userName"
49
- })]
50
- }, {
51
- title: "User Name",
52
- body: [/*#__PURE__*/_react.default.createElement(_TextField.default, {
53
- label: "User Name",
54
- name: "firstName"
55
- }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
56
- label: "Last Name",
57
- name: "lastName"
58
- })],
59
- bodyColumns: 2
60
- }, {
61
- title: 'More inputs',
62
- body: [/*#__PURE__*/_react.default.createElement(_TextField.default, {
63
- label: "Input one",
64
- name: "input1"
65
- }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
66
- label: "Input two",
67
- name: "input2"
68
- })],
69
- hideTitle: true
70
- }, {
71
- title: "Server history",
72
- body: [/*#__PURE__*/_react.default.createElement(_TextField.default, {
73
- label: "Age",
74
- name: "age"
75
- }), /*#__PURE__*/_react.default.createElement(_TextField.default, {
76
- label: "Hobby",
77
- name: "hobby"
78
- }), /*#__PURE__*/_react.default.createElement(_CustomTextarea.default, {
79
- label: "Discription",
80
- name: "discription"
81
- }), /*#__PURE__*/_react.default.createElement(_CheckboxGroup.default, {
82
- label: "Checkbox Group",
83
- name: "acceptTerms",
84
- options: [{
85
- label: 'option 1',
86
- value: '1'
87
- }, {
88
- label: 'option 2',
89
- value: '2'
90
- }, {
91
- label: 'option 3',
92
- value: '3'
93
- }]
94
- }), /*#__PURE__*/_react.default.createElement(_CustomAutoComplete.default, {
95
- name: "search",
96
- label: "Search",
97
- items: [{
98
- id: 'foo',
99
- label: 'foo'
100
- }, {
101
- id: 'bar',
102
- label: 'bar'
103
- }, {
104
- id: 'baz',
105
- label: 'baz'
106
- }]
107
- }), /*#__PURE__*/_react.default.createElement(_CustomSelect.default, {
108
- label: "options",
109
- options: [{
110
- label: 'select an option',
111
- value: ''
112
- }, {
113
- label: 'option 1',
114
- value: '1'
115
- }, {
116
- label: 'option 2',
117
- value: '2'
118
- }, {
119
- label: 'option 3',
120
- value: '3'
121
- }],
122
- name: "select"
123
- })]
124
- }, {
125
- title: "User Media",
126
- body: [/*#__PURE__*/_react.default.createElement(_CustomDropZone.default, {
127
- label: "User Profile",
128
- name: "file"
129
- }), /*#__PURE__*/_react.default.createElement(_DatePicker.default, {
130
- label: "Date Range",
131
- name: "date"
132
- })]
133
- }];
134
- var initialValues = {
135
- userName: '',
136
- firstName: '',
137
- lastName: '',
138
- input1: '',
139
- input2: '',
140
- age: '',
141
- hobby: '',
142
- discription: '',
143
- acceptTerms: [],
144
- search: '',
145
- select: '',
146
- file: '',
147
- date: {
148
- startDate: null,
149
- endDate: null
150
- }
151
- };
152
- var formSchema = Yup.object().shape({
153
- userName: Yup.string().required("Required"),
154
- firstName: Yup.string().required("Required"),
155
- lastName: Yup.string().required("Required"),
156
- age: Yup.string().required("Required"),
157
- hobby: Yup.string().required("Required"),
158
- discription: Yup.string().required('Required'),
159
- acceptTerms: Yup.array().min(1, 'You must choose at least one element'),
160
- search: Yup.string().required("Required"),
161
- select: Yup.string().required("Required"),
162
- date: Yup.object().shape({
163
- startDate: Yup.object().required("Required").typeError('Invalid Start Date'),
164
- endDate: Yup.object().required("Required").typeError('Invalid End Date')
165
- })
166
- });
167
- var _default = {
168
- title: 'Reusable Components/Reusable Formik Form',
169
- component: _ReusableForm.default // decorators: [withFormik],
170
- // parameters: {
171
- // formik: {
172
- // initialValues,
173
- // validationSchema: formSchema,
174
- // onSubmit: submitHandler
175
- // },
176
- // }
177
-
178
- };
179
- exports.default = _default;
180
-
181
- var form = function form(args) {
182
- return /*#__PURE__*/_react.default.createElement(_ReusableForm.default, Object.assign({
183
- formTitle: "Reusable form",
184
- initialValues: initialValues,
185
- formSchema: formSchema,
186
- sections: sections,
187
- headerStyles: {
188
- padding: 10,
189
- headerBackground: 'black',
190
- titleColor: '#ffff'
191
- },
192
- sectionHeaderStyles: {
193
- padding: 6,
194
- headerBackground: '#FE1744',
195
- titleColor: '#ffff'
196
- },
197
- bodyPadding: 10,
198
- saveBtnText: "Save",
199
- cancelBtnText: "Cancel",
200
- saveBtnHandle: submitHandler,
201
- cancelHandler: cancelHandler,
202
- bodyRowGap: 20,
203
- bodyColumnGap: 10
204
- }, args));
205
- };
206
-
207
- exports.form = form;
@@ -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.Header = exports.default = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _ReusableHeader = _interopRequireDefault(require("./ReusableHeader"));
13
-
14
- var _fakeData = require("../fakeData");
15
-
16
- var _default = {
17
- title: 'Reusable Components/Reusable Header',
18
- component: _ReusableHeader.default
19
- };
20
- exports.default = _default;
21
-
22
- var Template = function Template(args) {
23
- return /*#__PURE__*/_react.default.createElement(_ReusableHeader.default, args);
24
- };
25
-
26
- var Header = Template.bind({});
27
- exports.Header = Header;
28
- Header.args = {
29
- title: "Reusable Header",
30
- discription: "This is a discription for header",
31
- controls: _fakeData.controls,
32
- controlsStyles: {
33
- iconColor: 'red'
34
- }
35
- };
@@ -1,84 +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.ListSectioned = exports.ListFlat = exports.default = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _ReusableList = _interopRequireDefault(require("./ReusableList"));
13
-
14
- var _fakeData = require("../fakeData");
15
-
16
- // Components
17
- // Data
18
- var _default = {
19
- title: 'Reusable components/List',
20
- component: _ReusableList.default
21
- };
22
- exports.default = _default;
23
-
24
- var Template = function Template(args) {
25
- return /*#__PURE__*/_react.default.createElement(_ReusableList.default, Object.assign({
26
- listTitle: "Reusable List",
27
- cardStyle: "card-style-1"
28
- }, args));
29
- };
30
-
31
- var ListFlat = Template.bind({});
32
- exports.ListFlat = ListFlat;
33
- ListFlat.args = {
34
- data: _fakeData.data,
35
- type: "flat",
36
- cardControls: _fakeData.cardControls,
37
- headerStyles: {
38
- padding: 10,
39
- headerBackground: '#FE1744',
40
- titleColor: '#ffff',
41
- controlsStyles: {
42
- dropdownBackground: 'black',
43
- dropdownFontColor: 'white',
44
- dropdownItemHoverColor: '#FE1744'
45
- }
46
- },
47
- listControls: _fakeData.controls,
48
- customCardStyles: {
49
- controlsStyles: {
50
- iconColor: 'black',
51
- showOnHover: true
52
- }
53
- },
54
- hideTitle: false
55
- };
56
- var ListSectioned = Template.bind({});
57
- exports.ListSectioned = ListSectioned;
58
- ListSectioned.args = {
59
- data: _fakeData.dataWithSections,
60
- type: "sectioned",
61
- sectionHeaderStyles: {
62
- cardTitleColor: 'white',
63
- cardBackgroundColor: 'black',
64
- cardPadding: 10
65
- },
66
- cardControls: _fakeData.cardControls,
67
- headerStyles: {
68
- padding: 10,
69
- headerBackground: '#FE1744',
70
- titleColor: '#ffff',
71
- controlsStyles: {
72
- dropdownBackground: 'black',
73
- dropdownFontColor: 'white',
74
- dropdownItemHoverColor: '#FE1744'
75
- }
76
- },
77
- listControls: _fakeData.controls,
78
- customCardStyles: {
79
- controlsStyles: {
80
- iconColor: 'black',
81
- showOnHover: true
82
- }
83
- }
84
- };
@@ -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 _SearchCard = _interopRequireDefault(require("./SearchCard"));
13
-
14
- var _default = {
15
- title: 'Components/SearchCard/Item',
16
- component: _SearchCard.default
17
- };
18
- exports.default = _default;
19
-
20
- var Default = function Default(args) {
21
- return /*#__PURE__*/_react.default.createElement(_SearchCard.default, args);
22
- };
23
-
24
- exports.Default = Default;
@@ -1,80 +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.EditorSpace = exports.default = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _SpaceContainer = _interopRequireDefault(require("./SpaceContainer"));
13
-
14
- var _EditorComponent = _interopRequireDefault(require("../../Common Inputs/EditorComponent/EditorComponent"));
15
-
16
- var _fakeData = require("../fakeData");
17
-
18
- var data = {
19
- blocks: [{
20
- type: "header",
21
- data: {
22
- text: "Editor.js",
23
- level: 1
24
- }
25
- }, {
26
- type: "paragraph",
27
- data: {
28
- text: "Hey. Meet the new Editor. On this page you can see it in action — try to edit this text."
29
- }
30
- }, {
31
- type: 'image',
32
- "data": {
33
- "file": {
34
- "url": "https://i.ytimg.com/vi/MPV2METPeJU/maxresdefault.jpg"
35
- },
36
- "caption": "Caption Example",
37
- "withBorder": false,
38
- "withBackground": false,
39
- "stretched": false
40
- }
41
- }, {
42
- "type": "paragraph",
43
- "data": {
44
- "text": "Create a directory for your module, enter it and run <mark class=\"cdx-marker\">npm init</mark> command."
45
- }
46
- }, {
47
- "type": "table",
48
- "data": {
49
- "withHeadings": true,
50
- "content": [["Kine", "Pigs", "Chicken"], ["1 pcs", "3 pcs", "12 pcs"], ["100$", "200$", "150$"]]
51
- }
52
- }]
53
- };
54
- var _default = {
55
- title: 'Reusable Components/Space Container',
56
- component: _SpaceContainer.default
57
- };
58
- exports.default = _default;
59
-
60
- var Template = function Template(args) {
61
- return /*#__PURE__*/_react.default.createElement(_SpaceContainer.default, args, /*#__PURE__*/_react.default.createElement(_EditorComponent.default, {
62
- data: data
63
- }));
64
- };
65
-
66
- var EditorSpace = Template.bind({});
67
- exports.EditorSpace = EditorSpace;
68
- EditorSpace.args = {
69
- title: "Space Title",
70
- discription: "Lorem ipsum dolor sit amet consectetur.",
71
- controls: _fakeData.cardControls,
72
- headerStyles: {
73
- padding: 10,
74
- headerBackground: '#FE1744',
75
- titleColor: '#ffff',
76
- controlsStyles: {
77
- iconsGap: 5
78
- }
79
- }
80
- };
@@ -1,22 +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.spinner = exports.default = void 0;
9
-
10
- var _Spinner = _interopRequireDefault(require("./Spinner"));
11
-
12
- var _default = {
13
- title: 'Reusable Components/Spinner/Spinner',
14
- component: _Spinner.default
15
- };
16
- exports.default = _default;
17
-
18
- var spinner = function spinner(args) {
19
- return /*#__PURE__*/React.createElement(_Spinner.default, args);
20
- };
21
-
22
- exports.spinner = spinner;
@@ -1,80 +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.ListWidget = exports.default = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _WidgetContainer = _interopRequireDefault(require("./WidgetContainer"));
13
-
14
- var _fakeData = require("../fakeData");
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: 'Reusable components/Widget Container',
31
- component: _WidgetContainer.default
32
- };
33
- exports.default = _default;
34
-
35
- var Template = function Template(args) {
36
- return /*#__PURE__*/_react.default.createElement(_WidgetContainer.default, args);
37
- };
38
-
39
- var ListWidget = Template.bind({});
40
- exports.ListWidget = ListWidget;
41
- ListWidget.args = {
42
- widgetType: "list",
43
- widgetTitle: "test",
44
- widgetControls: _fakeData.controls,
45
- widgetProps: {
46
- data: _fakeData.data,
47
- cardStyle: "card-style-2",
48
- type: "flat"
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
- var MusicWidget = Template.bind({});
62
- exports.MusicWidget = MusicWidget;
63
- MusicWidget.args = {
64
- widgetType: "music player",
65
- widgetTitle: "Music Player",
66
- widgetControls: _fakeData.controls,
67
- widgetProps: {
68
- playlist: Songs
69
- },
70
- headerStyles: {
71
- padding: 5,
72
- headerBackground: '#FE1744',
73
- titleColor: '#ffff',
74
- controlsStyles: {
75
- dropdownBackground: 'black',
76
- dropdownFontColor: 'white',
77
- dropdownItemHoverColor: '#FE1744'
78
- }
79
- }
80
- };
@@ -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 _WelcomeSpace = _interopRequireDefault(require("./WelcomeSpace"));
13
-
14
- var _default = {
15
- title: 'Spaces/Welcome',
16
- component: _WelcomeSpace.default
17
- };
18
- exports.default = _default;
19
-
20
- var Default = function Default(args) {
21
- return /*#__PURE__*/_react.default.createElement(_WelcomeSpace.default, args);
22
- };
23
-
24
- exports.Default = Default;
@@ -1,101 +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.Gallery = 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 _AlbumsGallery = _interopRequireDefault(require("./AlbumsGallery"));
15
-
16
- var _util = require("../../helpers/util");
17
-
18
- var _album = _interopRequireDefault(require("../../assets/images/album1.jpg"));
19
-
20
- var _album2 = _interopRequireDefault(require("../../assets/images/album2.jpg"));
21
-
22
- var _album3 = _interopRequireDefault(require("../../assets/images/album3.jpg"));
23
-
24
- var _album4 = _interopRequireDefault(require("../../assets/images/album4.jpg"));
25
-
26
- var _album5 = _interopRequireDefault(require("../../assets/images/album5.jpg"));
27
-
28
- var _album6 = _interopRequireDefault(require("../../assets/images/album6.jpg"));
29
-
30
- 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); }
31
-
32
- 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; }
33
-
34
- var _default = {
35
- title: 'Video Album/Albums Gallery',
36
- component: _AlbumsGallery.default
37
- };
38
- exports.default = _default;
39
-
40
- var Gallery = function Gallery(args) {
41
- var _useState = (0, _react.useState)([{
42
- img: _album.default,
43
- title: 'Album 1',
44
- count: '24'
45
- }, {
46
- img: _album2.default,
47
- title: 'Album 2',
48
- count: '24'
49
- }, {
50
- img: _album3.default,
51
- title: 'Album 3',
52
- count: '24'
53
- }, {
54
- img: _album4.default,
55
- title: 'Album 4',
56
- count: '24'
57
- }, {
58
- img: _album5.default,
59
- title: 'Album 5',
60
- count: '24'
61
- }, {
62
- img: _album6.default,
63
- title: 'Album 6',
64
- count: '24'
65
- }]),
66
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
67
- albums = _useState2[0],
68
- setAlbums = _useState2[1];
69
-
70
- var cardIconClicked = function cardIconClicked(action, index) {
71
- switch (action) {
72
- case 'delete':
73
- onDeleteAlbum(index);
74
- break;
75
-
76
- default:
77
- break;
78
- }
79
- };
80
-
81
- var onAddAlbum = function onAddAlbum(album) {
82
- var newAlbum = {
83
- img: album.cover.meta.previewUrl,
84
- title: album.title,
85
- count: '55'
86
- };
87
- setAlbums((0, _util.addObjectToArray)(albums, newAlbum));
88
- };
89
-
90
- var onDeleteAlbum = function onDeleteAlbum(index) {
91
- setAlbums((0, _util.deleteFromArrayByIndex)(albums, index));
92
- };
93
-
94
- return /*#__PURE__*/_react.default.createElement(_AlbumsGallery.default, Object.assign({
95
- videoAlbums: albums,
96
- onAddAlbum: onAddAlbum,
97
- cardIconClicked: cardIconClicked
98
- }, args));
99
- };
100
-
101
- exports.Gallery = Gallery;