@mohamed-karawia/library 0.1.5 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. package/dist/stories/Reusable Components/fakeData.js +24 -4
  2. package/dist/stories/helpers/util.js +16 -14
  3. package/package.json +1 -1
  4. package/src/stories/Reusable Components/fakeData.js +5 -0
  5. package/src/stories/helpers/util.js +1 -0
  6. package/.github/workflows/chromatic.yml +0 -26
  7. package/.storybook/main.js +0 -21
  8. package/.storybook/middleware.js +0 -28
  9. package/.storybook/preview.js +0 -9
  10. package/build-storybook.log +0 -2704
  11. package/dist/stories/API/API.stories.js +0 -24
  12. package/dist/stories/Agora/Chat/Chat.stories.js +0 -24
  13. package/dist/stories/Agora/Room/Room.stories.js +0 -24
  14. package/dist/stories/Buttons/Buttons/Buttons.stories.js +0 -39
  15. package/dist/stories/Buttons/ReactModal/ReactModal.stories.js +0 -30
  16. package/dist/stories/Chat/Chat.stories.js +0 -76
  17. package/dist/stories/Common Inputs/CheckboxGroup/CheckboxGroup.stories.js +0 -58
  18. package/dist/stories/Common Inputs/CustomAutoComplete/CustomAutoComplete.stories.js +0 -56
  19. package/dist/stories/Common Inputs/CustomDropzone/CustomDropzone.stories.js +0 -47
  20. package/dist/stories/Common Inputs/CustomSelect/CustomSelect.stories.js +0 -61
  21. package/dist/stories/Common Inputs/CustomTextarea/CustomTextarea.stories.js +0 -48
  22. package/dist/stories/Common Inputs/DatePicker/DatePicker.stories.js +0 -60
  23. package/dist/stories/Common Inputs/EditorComponent/EditorComponent.stories.js +0 -62
  24. package/dist/stories/Common Inputs/Formik/InputField/InputField.stories.js +0 -43
  25. package/dist/stories/Common Inputs/Formik/RadioField/RadioField.stories.js +0 -60
  26. package/dist/stories/Common Inputs/RadioInput/RadioInput.stories.js +0 -50
  27. package/dist/stories/Common Inputs/RichTextInput/RichTextInput.stories.js +0 -51
  28. package/dist/stories/Common Inputs/TextField/TextField.stories.js +0 -48
  29. package/dist/stories/Containers/BaseMaterial.stories.js +0 -24
  30. package/dist/stories/Containers/WidgetExample/WidgetBody.stories.js +0 -24
  31. package/dist/stories/Containers/WidgetExample/WidgetExample.stories.js +0 -24
  32. package/dist/stories/Containers/WidgetExample/WidgetHead.stories.js +0 -24
  33. package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.stories.js +0 -22
  34. package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.stories.js +0 -42
  35. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.stories.js +0 -65
  36. package/dist/stories/Enrollment/Guest/FillForm/FillForm.stories.js +0 -48
  37. package/dist/stories/Events/CreateEvent/CreateEvent.stories.js +0 -30
  38. package/dist/stories/Events/Event/Event.stories.js +0 -33
  39. package/dist/stories/Events/EventsList/EventsList.stories.js +0 -44
  40. package/dist/stories/Forms/AddPhoto/AddPhoto.stories.js +0 -47
  41. package/dist/stories/Forms/AddSong/AddSong.stories.js +0 -37
  42. package/dist/stories/Forms/AddVideo/AddVideo.stories.js +0 -33
  43. package/dist/stories/Forms/Create-Profile/CreateProfile.stories.js +0 -49
  44. package/dist/stories/Forms/Create-Profile/subcomponents/LogoUploader.stories.js +0 -42
  45. package/dist/stories/Forms/Create-Profile/subcomponents/ProfilePhoto.stories.js +0 -41
  46. package/dist/stories/Forms/Create-Profile/subcomponents/ResetBtn.stories.js +0 -32
  47. package/dist/stories/Forms/CreateAlbum/CreateAlbum.stories.js +0 -47
  48. package/dist/stories/Forms/CreateAnnouncementForm/CreateAnnouncementForm.stories.js +0 -58
  49. package/dist/stories/Forms/CreateMusicAlbum/CreateMusicAlbum.stories.js +0 -47
  50. package/dist/stories/Forms/CreateProfile/CreateProfile.stories.js +0 -24
  51. package/dist/stories/Forms/CreateProfile-3/CreateProfile.stories.js +0 -24
  52. package/dist/stories/Forms/CreateUser/CreateUser.stories.js +0 -26
  53. package/dist/stories/Forms/CreateVideoAlbum/CreateVideoAlbum.stories.js +0 -37
  54. package/dist/stories/Forms/Form/Form.stories.js +0 -24
  55. package/dist/stories/Forms/NewProfile/NewProfile.stories.js +0 -24
  56. package/dist/stories/Layout/Body/Body.stories.js +0 -30
  57. package/dist/stories/Layout/Center/Center.stories.js +0 -24
  58. package/dist/stories/Layout/Head/Head.stories.js +0 -24
  59. package/dist/stories/Layout/Left/Left.stories.js +0 -24
  60. package/dist/stories/Layout/Right/Right.stories.js +0 -24
  61. package/dist/stories/Library/CreateFolder/CreateFolder.stories.js +0 -45
  62. package/dist/stories/Library/Folders/Folders.stories.js +0 -55
  63. package/dist/stories/Library/Notes/Notes.stories.js +0 -42
  64. package/dist/stories/Library/ViewNote/ViewNote.stories.js +0 -24
  65. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.stories.js +0 -115
  66. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.stories.js +0 -107
  67. package/dist/stories/Navbar/Navbar.stories.js +0 -41
  68. package/dist/stories/Pages/Blank/Blank.stories.js +0 -24
  69. package/dist/stories/Pages/Centered/Centered.stories.js +0 -24
  70. package/dist/stories/Pages/Chat/Chat.stories.js +0 -74
  71. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.stories.js +0 -22
  72. package/dist/stories/Pages/Enrollment/FillForm/FillForm.stories.js +0 -22
  73. package/dist/stories/Pages/Enrollment/Forms/Forms.stories.js +0 -22
  74. package/dist/stories/Pages/Events/Event/Event.stories.js +0 -22
  75. package/dist/stories/Pages/Events/Events/Events.stories.js +0 -22
  76. package/dist/stories/Pages/Library/Folders/Library.stories.js +0 -22
  77. package/dist/stories/Pages/Library/Notes/Notes.stories.js +0 -22
  78. package/dist/stories/Pages/Music/MusicAlbum/Music.stories.js +0 -22
  79. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.stories.js +0 -22
  80. package/dist/stories/Pages/Photos/Album/Album.stories.js +0 -22
  81. package/dist/stories/Pages/Photos/Albums/Albums.stories.js +0 -22
  82. package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.stories.js +0 -22
  83. package/dist/stories/Pages/Video/VideoAlbum/Video.stories.js +0 -22
  84. package/dist/stories/Pages/ViewWorld/ViewWorld.stories.js +0 -264
  85. package/dist/stories/Photo Album/DetailedPhoto/DetailedPhoto.stories.js +0 -32
  86. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.stories.js +0 -115
  87. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.stories.js +0 -102
  88. package/dist/stories/Reusable Components/Cards/Card-style-1/CardStyle1.stories.js +0 -35
  89. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.stories.js +0 -37
  90. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.stories.js +0 -40
  91. package/dist/stories/Reusable Components/Cards/Card-style-2/CardStyle2.stories.js +0 -37
  92. package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.stories.js +0 -34
  93. package/dist/stories/Reusable Components/Cards/Card-style-4/CardStyle4.stories.js +0 -39
  94. package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.stories.js +0 -27
  95. package/dist/stories/Reusable Components/Cards/Card-style-7/CardStyle7.stories.js +0 -37
  96. package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.stories.js +0 -44
  97. package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.stories.js +0 -27
  98. package/dist/stories/Reusable Components/Cards/Card.stories.js +0 -132
  99. package/dist/stories/Reusable Components/Controls/Controls.stories.js +0 -49
  100. package/dist/stories/Reusable Components/Gallery/Gallery.stories.js +0 -56
  101. package/dist/stories/Reusable Components/Lists/Cards/ListCard-1.stories.js +0 -1
  102. package/dist/stories/Reusable Components/Lists/List.stories.js +0 -1
  103. package/dist/stories/Reusable Components/Mention/Mention.stories.js +0 -66
  104. package/dist/stories/Reusable Components/ReusableForm/ReusableForm.stories.js +0 -207
  105. package/dist/stories/Reusable Components/ReusableHeader/ReusableHeader.stories.js +0 -35
  106. package/dist/stories/Reusable Components/ReusableList/ReusableList.stories.js +0 -84
  107. package/dist/stories/Reusable Components/SearchCard/SearchCard.stories.js +0 -24
  108. package/dist/stories/Reusable Components/SpaceContainer/SpaceContainer.stories.js +0 -80
  109. package/dist/stories/Reusable Components/Spinner/Spinner.stories.js +0 -22
  110. package/dist/stories/Reusable Components/WidgetContainer/WidgetContainer.stories.js +0 -80
  111. package/dist/stories/Spaces/WelcomeSpace/WelcomeSpace.stories.js +0 -24
  112. package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.stories.js +0 -101
  113. package/dist/stories/VideoAlbum/Comments/Comments.stories.js +0 -45
  114. package/dist/stories/VideoAlbum/VideoPlayer/VideoPlayer.stories.js +0 -149
  115. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.stories.js +0 -49
  116. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.stories.js +0 -113
  117. package/dist/stories/Widgets/LogoWidget/LogoWidget.stories.js +0 -26
  118. package/dist/stories/Widgets/MusicPlayer/MusicPlayer.stories.js +0 -44
  119. package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.stories.js +0 -52
  120. package/dist/stories/Widgets/SpacesList/SpacesList.stories.js +0 -52
  121. package/dist/stories/Widgets/SpacesList/SpacesListItem.stories.js +0 -24
  122. package/public/logo192.png +0 -0
  123. package/public/logo512.png +0 -0
  124. package/src/stories/API/API.stories.js +0 -10
  125. package/src/stories/Agora/Chat/Chat.stories.jsx +0 -10
  126. package/src/stories/Agora/Room/Room.stories.jsx +0 -10
  127. package/src/stories/Buttons/Buttons/Buttons.stories.jsx +0 -24
  128. package/src/stories/Buttons/ReactModal/ReactModal.stories.jsx +0 -18
  129. package/src/stories/Chat/Chat.stories.jsx +0 -59
  130. package/src/stories/Common Inputs/CheckboxGroup/CheckboxGroup.stories.jsx +0 -32
  131. package/src/stories/Common Inputs/CustomAutoComplete/CustomAutoComplete.stories.jsx +0 -35
  132. package/src/stories/Common Inputs/CustomDropzone/CustomDropzone.stories.jsx +0 -26
  133. package/src/stories/Common Inputs/CustomSelect/CustomSelect.stories.jsx +0 -36
  134. package/src/stories/Common Inputs/CustomTextarea/CustomTextarea.stories.jsx +0 -31
  135. package/src/stories/Common Inputs/DatePicker/DatePicker.stories.jsx +0 -47
  136. package/src/stories/Common Inputs/EditorComponent/EditorComponent.stories.jsx +0 -60
  137. package/src/stories/Common Inputs/Formik/InputField/InputField.stories.jsx +0 -27
  138. package/src/stories/Common Inputs/Formik/RadioField/RadioField.stories.jsx +0 -41
  139. package/src/stories/Common Inputs/RadioInput/RadioInput.stories.js +0 -30
  140. package/src/stories/Common Inputs/RichTextInput/RichTextInput.stories.js +0 -45
  141. package/src/stories/Common Inputs/TextField/TextField.stories.jsx +0 -31
  142. package/src/stories/Containers/BaseMaterial.stories.js +0 -10
  143. package/src/stories/Containers/WidgetExample/WidgetBody.stories.js +0 -10
  144. package/src/stories/Containers/WidgetExample/WidgetExample.stories.js +0 -10
  145. package/src/stories/Containers/WidgetExample/WidgetHead.stories.js +0 -10
  146. package/src/stories/Enrollment/Admin/CreateForm/CreateForm.stories.jsx +0 -8
  147. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.stories.jsx +0 -36
  148. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.stories.jsx +0 -66
  149. package/src/stories/Enrollment/Guest/FillForm/FillForm.stories.jsx +0 -27
  150. package/src/stories/Events/CreateEvent/CreateEvent.stories.jsx +0 -19
  151. package/src/stories/Events/Event/Event.stories.jsx +0 -21
  152. package/src/stories/Events/EventsList/EventsList.stories.jsx +0 -25
  153. package/src/stories/Forms/AddPhoto/AddPhoto.stories.jsx +0 -37
  154. package/src/stories/Forms/AddSong/AddSong.stories.jsx +0 -26
  155. package/src/stories/Forms/AddVideo/AddVideo.stories.jsx +0 -20
  156. package/src/stories/Forms/Create-Profile/CreateProfile.stories.jsx +0 -36
  157. package/src/stories/Forms/Create-Profile/subcomponents/LogoUploader.stories.jsx +0 -27
  158. package/src/stories/Forms/Create-Profile/subcomponents/ProfilePhoto.stories.jsx +0 -26
  159. package/src/stories/Forms/Create-Profile/subcomponents/ResetBtn.stories.jsx +0 -18
  160. package/src/stories/Forms/CreateAlbum/CreateAlbum.stories.jsx +0 -37
  161. package/src/stories/Forms/CreateAnnouncementForm/CreateAnnouncementForm.stories.jsx +0 -44
  162. package/src/stories/Forms/CreateMusicAlbum/CreateMusicAlbum.stories.jsx +0 -38
  163. package/src/stories/Forms/CreateProfile/CreateProfile.stories.js +0 -10
  164. package/src/stories/Forms/CreateProfile-3/CreateProfile.stories.js +0 -10
  165. package/src/stories/Forms/CreateUser/CreateUser.stories.js +0 -10
  166. package/src/stories/Forms/CreateVideoAlbum/CreateVideoAlbum.stories.jsx +0 -23
  167. package/src/stories/Forms/Form/Form.stories.js +0 -10
  168. package/src/stories/Forms/NewProfile/NewProfile.stories.jsx +0 -10
  169. package/src/stories/Layout/Body/Body.stories.js +0 -26
  170. package/src/stories/Layout/Center/Center.stories.js +0 -14
  171. package/src/stories/Layout/Head/Head.stories.js +0 -10
  172. package/src/stories/Layout/Left/Left.stories.js +0 -14
  173. package/src/stories/Layout/Right/Right.stories.js +0 -14
  174. package/src/stories/Library/CreateFolder/CreateFolder.stories.jsx +0 -32
  175. package/src/stories/Library/Folders/Folders.stories.jsx +0 -34
  176. package/src/stories/Library/Notes/Notes.stories.jsx +0 -24
  177. package/src/stories/Library/ViewNote/ViewNote.stories.jsx +0 -16
  178. package/src/stories/Music Album/ViewAlbum/ViewAlbum.stories.jsx +0 -60
  179. package/src/stories/Music Album/ViewAlbums/ViewAlbums.stories.jsx +0 -57
  180. package/src/stories/Navbar/Navbar.stories.js +0 -25
  181. package/src/stories/Pages/Blank/Blank.stories.js +0 -10
  182. package/src/stories/Pages/Centered/Centered.stories.js +0 -14
  183. package/src/stories/Pages/Chat/Chat.stories.jsx +0 -53
  184. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.stories.jsx +0 -8
  185. package/src/stories/Pages/Enrollment/FillForm/FillForm.stories.jsx +0 -8
  186. package/src/stories/Pages/Enrollment/Forms/Forms.stories.jsx +0 -8
  187. package/src/stories/Pages/Events/Event/Event.stories.jsx +0 -8
  188. package/src/stories/Pages/Events/Events/Events.stories.jsx +0 -8
  189. package/src/stories/Pages/Library/Folders/Library.stories.jsx +0 -8
  190. package/src/stories/Pages/Library/Notes/Notes.stories.jsx +0 -8
  191. package/src/stories/Pages/Music/MusicAlbum/Music.stories.jsx +0 -8
  192. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.stories.jsx +0 -8
  193. package/src/stories/Pages/Photos/Album/Album.stories.jsx +0 -8
  194. package/src/stories/Pages/Photos/Albums/Albums.stories.jsx +0 -8
  195. package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.stories.jsx +0 -8
  196. package/src/stories/Pages/Video/VideoAlbum/Video.stories.jsx +0 -8
  197. package/src/stories/Pages/ViewWorld/ViewWorld.stories.js +0 -270
  198. package/src/stories/Photo Album/DetailedPhoto/DetailedPhoto.stories.jsx +0 -20
  199. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.stories.jsx +0 -60
  200. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.stories.jsx +0 -59
  201. package/src/stories/Reusable Components/Cards/Card-style-1/CardStyle1.stories.jsx +0 -22
  202. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.stories.jsx +0 -21
  203. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.stories.jsx +0 -21
  204. package/src/stories/Reusable Components/Cards/Card-style-2/CardStyle2.stories.jsx +0 -24
  205. package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.stories.jsx +0 -22
  206. package/src/stories/Reusable Components/Cards/Card-style-4/CardStyle4.stories.jsx +0 -25
  207. package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.stories.jsx +0 -9
  208. package/src/stories/Reusable Components/Cards/Card-style-7/CardStyle7.stories.jsx +0 -23
  209. package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.stories.jsx +0 -29
  210. package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.stories.jsx +0 -14
  211. package/src/stories/Reusable Components/Cards/Card.stories.jsx +0 -118
  212. package/src/stories/Reusable Components/Controls/Controls.stories.jsx +0 -24
  213. package/src/stories/Reusable Components/Gallery/Gallery.stories.jsx +0 -43
  214. package/src/stories/Reusable Components/Lists/Cards/ListCard-1.stories.js +0 -0
  215. package/src/stories/Reusable Components/Lists/List.stories.js +0 -0
  216. package/src/stories/Reusable Components/Mention/Mention.stories.jsx +0 -55
  217. package/src/stories/Reusable Components/ReusableForm/ReusableForm.stories.jsx +0 -167
  218. package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.stories.jsx +0 -22
  219. package/src/stories/Reusable Components/ReusableList/ReusableList.stories.jsx +0 -70
  220. package/src/stories/Reusable Components/SearchCard/SearchCard.stories.js +0 -10
  221. package/src/stories/Reusable Components/SpaceContainer/SpaceContainer.stories.jsx +0 -78
  222. package/src/stories/Reusable Components/Spinner/Spinner.stories.jsx +0 -8
  223. package/src/stories/Reusable Components/WidgetContainer/WidgetContainer.stories.jsx +0 -61
  224. package/src/stories/Spaces/WelcomeSpace/WelcomeSpace.stories.js +0 -10
  225. package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.stories.jsx +0 -59
  226. package/src/stories/VideoAlbum/Comments/Comments.stories.jsx +0 -18
  227. package/src/stories/VideoAlbum/VideoPlayer/VideoPlayer.stories.jsx +0 -82
  228. package/src/stories/VideoAlbum/VideoSpace/VideoSpace.stories.jsx +0 -23
  229. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.stories.jsx +0 -57
  230. package/src/stories/Widgets/LogoWidget/LogoWidget.stories.js +0 -12
  231. package/src/stories/Widgets/MusicPlayer/MusicPlayer.stories.jsx +0 -23
  232. package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.stories.jsx +0 -33
  233. package/src/stories/Widgets/SpacesList/SpacesList.stories.jsx +0 -27
  234. package/src/stories/Widgets/SpacesList/SpacesListItem.stories.jsx +0 -10
  235. package/src/stories/assets/images/album1.jpg +0 -0
  236. package/src/stories/assets/images/album2.jpg +0 -0
  237. package/src/stories/assets/images/album3.jpg +0 -0
  238. package/src/stories/assets/images/album4.jpg +0 -0
  239. package/src/stories/assets/images/album5.jpg +0 -0
  240. package/src/stories/assets/images/album6.jpg +0 -0
  241. package/src/stories/assets/images/art.jpg +0 -0
  242. package/src/stories/assets/images/dance.jpg +0 -0
  243. package/src/stories/assets/images/football.jpg +0 -0
  244. package/src/stories/assets/images/music.jpg +0 -0
  245. package/src/stories/assets/images/music1.jpg +0 -0
  246. package/src/stories/assets/images/music2.jpg +0 -0
  247. package/src/stories/assets/images/music3.jpg +0 -0
  248. package/src/stories/assets/images/music4.jpg +0 -0
  249. package/src/stories/assets/images/music5.jpg +0 -0
  250. package/src/stories/assets/images/music6.jpg +0 -0
  251. package/src/stories/assets/images/reset.png +0 -0
  252. package/src/stories/assets/images/robotics.jpg +0 -0
  253. package/src/stories/assets/images/tennis.jpg +0 -0
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.dataWithSections = exports.data = exports.cardControls = exports.controls = void 0;
7
9
 
10
+ var _react = _interopRequireDefault(require("react"));
11
+
8
12
  var _ai = require("react-icons/ai");
9
13
 
10
14
  var _io = require("react-icons/io");
@@ -12,22 +16,38 @@ var _io = require("react-icons/io");
12
16
  // Icons
13
17
  // List and Gallery controls
14
18
  var controls = [{
15
- icon: /*#__PURE__*/React.createElement(_io.IoIosAlarm, null),
19
+ icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineUserAdd, null),
20
+ action: 'add',
21
+ name: 'Add member'
22
+ }, {
23
+ icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineDelete, null),
24
+ action: 'remove',
25
+ name: 'Add member'
26
+ }, {
27
+ icon: /*#__PURE__*/_react.default.createElement(_io.IoIosAirplane, null),
28
+ action: 'add',
29
+ name: 'Some Icon'
30
+ }, {
31
+ icon: /*#__PURE__*/_react.default.createElement(_io.IoIosAlarm, null),
32
+ action: 'alarm',
33
+ name: 'Another Icons'
34
+ }, {
35
+ icon: /*#__PURE__*/_react.default.createElement(_io.IoIosAlarm, null),
16
36
  action: 'alarm',
17
37
  name: 'Another Icons'
18
38
  }, {
19
- icon: /*#__PURE__*/React.createElement(_io.IoIosAlarm, null),
39
+ icon: /*#__PURE__*/_react.default.createElement(_io.IoIosAlarm, null),
20
40
  action: 'alarm',
21
41
  name: 'Another Icons'
22
42
  }]; // Cards Controls
23
43
 
24
44
  exports.controls = controls;
25
45
  var cardControls = [{
26
- icon: /*#__PURE__*/React.createElement(_ai.AiOutlineHeart, null),
46
+ icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineHeart, null),
27
47
  action: 'like',
28
48
  name: 'Add member'
29
49
  }, {
30
- icon: /*#__PURE__*/React.createElement(_ai.AiOutlineAudioMuted, null),
50
+ icon: /*#__PURE__*/_react.default.createElement(_ai.AiOutlineAudioMuted, null),
31
51
  action: 'mute',
32
52
  name: 'Add member'
33
53
  }]; // List and Gallery data
@@ -9,6 +9,8 @@ exports.getWidgetType = exports.getCardStyle = exports.addObjectToArray = export
9
9
 
10
10
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
11
11
 
12
+ var _react = _interopRequireDefault(require("react"));
13
+
12
14
  var _CardStyle = _interopRequireDefault(require("../Reusable Components/Cards/Card-style-1/CardStyle1"));
13
15
 
14
16
  var _CardStyle2 = _interopRequireDefault(require("../Reusable Components/Cards/Card-style-2/CardStyle2"));
@@ -73,27 +75,27 @@ exports.addObjectToArray = addObjectToArray;
73
75
 
74
76
  var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles, cardControls, index, clicked, cardIconClicked) {
75
77
  var cardTypes = {
76
- 'card-style-1': /*#__PURE__*/React.createElement(_CardStyle.default, Object.assign({
78
+ 'card-style-1': /*#__PURE__*/_react.default.createElement(_CardStyle.default, Object.assign({
77
79
  key: index
78
80
  }, cardProps, customCardStyles, {
79
81
  cardControls: cardControls
80
82
  })),
81
- 'card-style-2': /*#__PURE__*/React.createElement(_CardStyle2.default, Object.assign({
83
+ 'card-style-2': /*#__PURE__*/_react.default.createElement(_CardStyle2.default, Object.assign({
82
84
  key: index
83
85
  }, cardProps, customCardStyles, {
84
86
  cardControls: cardControls
85
87
  })),
86
- 'card-style-3': /*#__PURE__*/React.createElement(_CardStyle3.default, Object.assign({
88
+ 'card-style-3': /*#__PURE__*/_react.default.createElement(_CardStyle3.default, Object.assign({
87
89
  key: index
88
90
  }, cardProps, customCardStyles, {
89
91
  cardControls: cardControls
90
92
  })),
91
- 'card-style-4': /*#__PURE__*/React.createElement(_CardStyle4.default, Object.assign({
93
+ 'card-style-4': /*#__PURE__*/_react.default.createElement(_CardStyle4.default, Object.assign({
92
94
  key: index
93
95
  }, cardProps, customCardStyles, {
94
96
  cardControls: cardControls
95
97
  })),
96
- 'card-style-6': /*#__PURE__*/React.createElement(_CardStyle5.default, Object.assign({
98
+ 'card-style-6': /*#__PURE__*/_react.default.createElement(_CardStyle5.default, Object.assign({
97
99
  key: index
98
100
  }, cardProps, customCardStyles, {
99
101
  cardControls: cardControls,
@@ -104,7 +106,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
104
106
  return cardIconClicked(action, index);
105
107
  }
106
108
  })),
107
- 'card-style-7': /*#__PURE__*/React.createElement(_CardStyle6.default, Object.assign({
109
+ 'card-style-7': /*#__PURE__*/_react.default.createElement(_CardStyle6.default, Object.assign({
108
110
  key: index
109
111
  }, cardProps, customCardStyles, {
110
112
  cardControls: cardControls,
@@ -115,7 +117,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
115
117
  return cardIconClicked(action, index);
116
118
  }
117
119
  })),
118
- 'card-style-8': /*#__PURE__*/React.createElement(_CardStyle7.default, Object.assign({
120
+ 'card-style-8': /*#__PURE__*/_react.default.createElement(_CardStyle7.default, Object.assign({
119
121
  key: index
120
122
  }, cardProps, customCardStyles, {
121
123
  cardControls: cardControls,
@@ -126,7 +128,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
126
128
  return cardIconClicked(action, index);
127
129
  }
128
130
  })),
129
- 'card-style-9': /*#__PURE__*/React.createElement(_CardStyle8.default, Object.assign({
131
+ 'card-style-9': /*#__PURE__*/_react.default.createElement(_CardStyle8.default, Object.assign({
130
132
  key: index
131
133
  }, cardProps, customCardStyles, {
132
134
  cardControls: cardControls,
@@ -137,7 +139,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
137
139
  return cardIconClicked(action, index);
138
140
  }
139
141
  })),
140
- 'card-style-10': /*#__PURE__*/React.createElement(_CardStyle9.default, Object.assign({
142
+ 'card-style-10': /*#__PURE__*/_react.default.createElement(_CardStyle9.default, Object.assign({
141
143
  key: index
142
144
  }, cardProps, customCardStyles, {
143
145
  cardControls: cardControls,
@@ -148,7 +150,7 @@ var getCardStyle = function getCardStyle(cardProps, cardType, customCardStyles,
148
150
  return cardIconClicked(action, index);
149
151
  }
150
152
  })),
151
- 'card-style-11': /*#__PURE__*/React.createElement(_CardStyle10.default, Object.assign({
153
+ 'card-style-11': /*#__PURE__*/_react.default.createElement(_CardStyle10.default, Object.assign({
152
154
  key: index
153
155
  }, cardProps, customCardStyles, {
154
156
  cardControls: cardControls,
@@ -167,10 +169,10 @@ exports.getCardStyle = getCardStyle;
167
169
 
168
170
  var getWidgetType = function getWidgetType(widgetType, props) {
169
171
  var widgetTypes = {
170
- 'list': /*#__PURE__*/React.createElement(_ReusableList.default, props),
171
- 'music player': /*#__PURE__*/React.createElement(_MusicPlayerWidget.default, props),
172
- 'logo': /*#__PURE__*/React.createElement(_LogoWidget.default, props),
173
- 'video player': /*#__PURE__*/React.createElement(_VideoPlayer.default, props)
172
+ 'list': /*#__PURE__*/_react.default.createElement(_ReusableList.default, props),
173
+ 'music player': /*#__PURE__*/_react.default.createElement(_MusicPlayerWidget.default, props),
174
+ 'logo': /*#__PURE__*/_react.default.createElement(_LogoWidget.default, props),
175
+ 'video player': /*#__PURE__*/_react.default.createElement(_VideoPlayer.default, props)
174
176
  };
175
177
  return widgetTypes[widgetType];
176
178
  };
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ]
11
11
  ]
12
12
  },
13
- "version": "0.1.5",
13
+ "version": "0.1.9",
14
14
  "private": false,
15
15
  "dependencies": {
16
16
  "@babel/cli": "^7.16.7",
@@ -1,8 +1,13 @@
1
+ import React from 'react';
1
2
  // Icons
2
3
  import { AiOutlineUserAdd, AiOutlineDelete, AiOutlineHeart, AiOutlineAudioMuted } from "react-icons/ai";
3
4
  import { IoIosAirplane, IoIosAlarm } from "react-icons/io";
4
5
  // List and Gallery controls
5
6
  export const controls = [
7
+ { icon: (<AiOutlineUserAdd />), action: 'add', name: 'Add member' },
8
+ { icon: (<AiOutlineDelete />), action: 'remove', name: 'Add member' },
9
+ { icon: (<IoIosAirplane />), action: 'add', name: 'Some Icon' },
10
+ { icon: (<IoIosAlarm />), action: 'alarm', name: 'Another Icons' },
6
11
  { icon: (<IoIosAlarm />), action: 'alarm', name: 'Another Icons' },
7
12
  { icon: (<IoIosAlarm />), action: 'alarm', name: 'Another Icons' },
8
13
  ]
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  // Cards
2
3
  import CardStyle1 from '../Reusable Components/Cards/Card-style-1/CardStyle1';
3
4
  import CardStyle2 from '../Reusable Components/Cards/Card-style-2/CardStyle2';
@@ -1,26 +0,0 @@
1
- # .github/workflows/chromatic.yml
2
-
3
- # Workflow name
4
- name: 'Chromatic'
5
-
6
- # Event for the workflow
7
- on: push
8
-
9
- # List of jobs
10
- jobs:
11
- chromatic-deployment:
12
- # Operating System
13
- runs-on: ubuntu-latest
14
- # Job steps
15
- steps:
16
- - uses: actions/checkout@v1
17
- - name: Install dependencies
18
- run: yarn
19
- # 👇 Adds Chromatic as a step in the workflow
20
- - name: Publish to Chromatic
21
- uses: chromaui/action@v1
22
- # Chromatic GitHub Action options
23
- with:
24
- token: ${{ secrets.GITHUB_TOKEN }}
25
- # 👇 Chromatic projectToken, refer to the manage page to obtain it.
26
- projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
@@ -1,21 +0,0 @@
1
- module.exports = {
2
- "stories": [
3
- "../src/**/*.stories.mdx",
4
- "../src/**/*.stories.@(js|jsx|ts|tsx)",
5
- "../src/****/*.stories.@(js|jsx|ts|tsx)"
6
-
7
- ],
8
- "addons": [
9
- "@storybook/addon-links",
10
- "@storybook/addon-essentials",
11
- "@storybook/preset-create-react-app",
12
- "@storybook/addon-storysource",
13
- "storybook-addon-designs",
14
- "@geometricpanda/storybook-addon-badges",
15
- "@storybook/addon-a11y",
16
- "storybook-dark-mode",
17
- "@storybook/addon-viewport",
18
- "storybook-formik/register",
19
- // "storybook-addon-mock/register"
20
- ]
21
- }
@@ -1,28 +0,0 @@
1
- const express = require('express');
2
- const { RtcTokenBuilder, RtcRole } = require('agora-access-token');
3
- const expressMiddleWare = (router) => {
4
-
5
- router.use('/static', express.static('./src/static'));
6
- router.get('/getToken/:uid', (req, res) => {
7
- const uid = req.params.uid;
8
- const appID = '3f54ddbde65d4f0ab9a9f5a46baa4310';
9
- const appCertificate = '2f534be3f5124289b07c0c88f9c21330';
10
- const channelName = 'bcd';
11
- const role = RtcRole.PUBLISHER;
12
- const expirationTimeInSeconds = 360000;
13
- const currentTimestamp = Math.floor(Date.now() / 1000);
14
- const privilegeExpiredTs = currentTimestamp + expirationTimeInSeconds;
15
- const tokenA = RtcTokenBuilder.buildTokenWithUid(
16
- appID,
17
- appCertificate,
18
- channelName,
19
- uid,
20
- role,
21
- privilegeExpiredTs
22
- );
23
- res.set('Access-Control-Allow-Headers', '*');
24
- res.send({ token: tokenA });
25
- res.end();
26
- });
27
- };
28
- module.exports = expressMiddleWare;
@@ -1,9 +0,0 @@
1
- export const parameters = {
2
- actions: { argTypesRegex: "^on[A-Z].*" },
3
- controls: {
4
- matchers: {
5
- color: /(background|color)$/i,
6
- date: /Date$/,
7
- },
8
- },
9
- }