@universal-tennis/ui-shared 0.1.65 → 0.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/.eslintignore +1 -1
  2. package/.eslintrc.js +73 -73
  3. package/.storybook/preview.js +12 -12
  4. package/.storybook/variables.css +15 -15
  5. package/README.md +129 -129
  6. package/dist/App.d.ts +2 -2
  7. package/dist/App.js +12 -12
  8. package/dist/components.d.ts +4 -32
  9. package/dist/components.js +8 -37
  10. package/dist/components.js.map +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js +12 -12
  13. package/dist/items.d.ts +2 -2
  14. package/dist/items.js +1 -1
  15. package/dist/stories/Button.d.ts +27 -0
  16. package/dist/stories/Button.js +51 -0
  17. package/dist/stories/Button.js.map +1 -0
  18. package/dist/stories/Button.stories.d.ts +15 -0
  19. package/dist/stories/Button.stories.js +34 -0
  20. package/dist/stories/Button.stories.js.map +1 -0
  21. package/dist/stories/Header.d.ts +19 -0
  22. package/dist/stories/Header.js +31 -0
  23. package/dist/stories/Header.js.map +1 -0
  24. package/dist/stories/Header.stories.d.ts +11 -0
  25. package/dist/stories/Header.stories.js +20 -0
  26. package/dist/stories/Header.stories.js.map +1 -0
  27. package/dist/stories/Page.d.ts +1 -0
  28. package/dist/stories/Page.js +38 -0
  29. package/dist/stories/Page.js.map +1 -0
  30. package/dist/stories/Page.stories.d.ts +11 -0
  31. package/dist/stories/Page.stories.js +30 -0
  32. package/dist/stories/Page.stories.js.map +1 -0
  33. package/dist/stories/assets/comments.svg +1 -0
  34. package/dist/stories/assets/css/variables.css +3 -6
  35. package/dist/stories/assets/direction.svg +1 -0
  36. package/dist/stories/assets/icon-chat-blue.svg +10 -10
  37. package/dist/stories/atoms/Button/Button.d.ts +9 -10
  38. package/dist/stories/atoms/Button/Button.js +79 -95
  39. package/dist/stories/atoms/Button/Button.js.map +1 -1
  40. package/dist/stories/atoms/Button/Button.stories.d.ts +16 -17
  41. package/dist/stories/atoms/Button/Button.stories.js +36 -45
  42. package/dist/stories/atoms/Button/Button.stories.js.map +1 -1
  43. package/dist/stories/atoms/Button/index.d.ts +1 -0
  44. package/dist/stories/atoms/Button/index.js +2 -0
  45. package/dist/stories/atoms/Button/index.js.map +1 -0
  46. package/dist/stories/atoms/Button.d.ts +7 -0
  47. package/dist/stories/atoms/Button.js +20 -0
  48. package/dist/stories/atoms/Button.js.map +1 -0
  49. package/dist/stories/atoms/Button.stories.d.ts +13 -0
  50. package/dist/stories/atoms/Button.stories.js +22 -0
  51. package/dist/stories/atoms/Button.stories.js.map +1 -0
  52. package/dist/stories/atoms/Typography/Typography.d.ts +10 -49
  53. package/dist/stories/atoms/Typography/Typography.js +99 -143
  54. package/dist/stories/atoms/Typography/Typography.js.map +1 -1
  55. package/dist/stories/atoms/Typography/Typography.stories.d.ts +37 -37
  56. package/dist/stories/atoms/Typography/Typography.stories.js +190 -190
  57. package/dist/stories/atoms/Typography/index.d.ts +1 -0
  58. package/dist/stories/atoms/Typography/index.js +2 -0
  59. package/dist/stories/atoms/Typography/index.js.map +1 -0
  60. package/dist/stories/molecules/Cards/Cards.stories.d.ts +6 -7
  61. package/dist/stories/molecules/Cards/Cards.stories.js +26 -64
  62. package/dist/stories/molecules/Cards/Cards.stories.js.map +1 -1
  63. package/dist/stories/molecules/Cards/ContactCard.d.ts +9 -3
  64. package/dist/stories/molecules/Cards/ContactCard.js +38 -38
  65. package/dist/stories/molecules/Cards/ContactCard.js.map +1 -1
  66. package/dist/stories/molecules/Cards/TeamCard.d.ts +7 -3
  67. package/dist/stories/molecules/Cards/TeamCard.js +20 -20
  68. package/dist/stories/molecules/Cards/TeamCard.js.map +1 -1
  69. package/dist/stories/molecules/Cards/shared.d.ts +9 -4
  70. package/dist/stories/molecules/Cards/shared.js +12 -12
  71. package/infrastructure/azure-pipelines.yml +112 -110
  72. package/package.json +94 -94
  73. package/src/App.js +25 -25
  74. package/src/components.jsx +41 -41
  75. package/src/custom.d.ts +13 -13
  76. package/src/index.js +17 -17
  77. package/src/items.jsx +1 -1
  78. package/src/stories/assets/css/variables.css +14 -14
  79. package/src/stories/assets/icon-chat-blue.svg +10 -10
  80. package/src/stories/assets/icons/icon-add.svg +7 -7
  81. package/src/stories/assets/icons/icon-availability-maybe.svg +3 -3
  82. package/src/stories/assets/icons/icon-availability-no.svg +3 -3
  83. package/src/stories/assets/icons/icon-availability-not-set.svg +8 -8
  84. package/src/stories/assets/icons/icon-availability-yes.svg +3 -3
  85. package/src/stories/assets/icons/icon-calendar.svg +4 -4
  86. package/src/stories/assets/icons/icon-clock.svg +7 -7
  87. package/src/stories/assets/icons/icon-close.svg +3 -3
  88. package/src/stories/assets/icons/icon-delete.svg +9 -9
  89. package/src/stories/assets/icons/icon-edit.svg +3 -3
  90. package/src/stories/assets/icons/icon-location.svg +6 -6
  91. package/src/stories/assets/icons/icon-message.svg +3 -3
  92. package/src/stories/assets/icons/icon-session.svg +3 -3
  93. package/src/stories/assets/icons/icon-swap.svg +3 -3
  94. package/src/stories/assets/icons/icon-visibility-off.svg +7 -7
  95. package/src/stories/assets/icons/icon-visibility.svg +6 -6
  96. package/src/stories/atoms/Button/Button.stories.tsx +63 -63
  97. package/src/stories/atoms/Button/Button.tsx +145 -145
  98. package/src/stories/atoms/Icons/AddIcon.tsx +13 -13
  99. package/src/stories/atoms/Icons/AvailabilityMaybeIcon.tsx +11 -11
  100. package/src/stories/atoms/Icons/AvailabilityNoIcon.tsx +11 -11
  101. package/src/stories/atoms/Icons/AvailabilityNotSetIcon.tsx +12 -12
  102. package/src/stories/atoms/Icons/AvailabilityYesIcon.tsx +11 -11
  103. package/src/stories/atoms/Icons/CalendarIcon.tsx +11 -11
  104. package/src/stories/atoms/Icons/ClockIcon.tsx +14 -14
  105. package/src/stories/atoms/Icons/CloseIcon.tsx +11 -11
  106. package/src/stories/atoms/Icons/DeleteIcon.tsx +15 -15
  107. package/src/stories/atoms/Icons/EditIcon.tsx +11 -11
  108. package/src/stories/atoms/Icons/Icons.stories.tsx +218 -218
  109. package/src/stories/atoms/Icons/LeftChevronIcon.tsx +13 -13
  110. package/src/stories/atoms/Icons/LocationIcon.tsx +12 -12
  111. package/src/stories/atoms/Icons/MessageIcon.tsx +12 -12
  112. package/src/stories/atoms/Icons/RightChevronIcon.tsx +11 -11
  113. package/src/stories/atoms/Icons/SessionIcon.tsx +16 -16
  114. package/src/stories/atoms/Icons/SwapIcon.tsx +11 -11
  115. package/src/stories/atoms/Icons/VisibilityIcon.tsx +12 -12
  116. package/src/stories/atoms/Icons/VisibilityOffIcon.tsx +13 -13
  117. package/src/stories/atoms/Icons/WinnerIndicatorIcon.tsx +39 -39
  118. package/src/stories/atoms/Icons/sharedTypes.tsx +10 -10
  119. package/src/stories/atoms/Map/Map.stories.tsx +43 -43
  120. package/src/stories/atoms/Map/Map.tsx +25 -25
  121. package/src/stories/atoms/Typography/Typography.tsx +185 -185
  122. package/src/stories/molecules/AvatarWithName/AvatarWithName.stories.tsx +86 -86
  123. package/src/stories/molecules/AvatarWithName/AvatarWithName.tsx +68 -68
  124. package/src/stories/molecules/Cards/Cards.stories.tsx +76 -76
  125. package/src/stories/molecules/Cards/ContactCard.tsx +45 -45
  126. package/src/stories/molecules/Cards/DrawCard.tsx +211 -211
  127. package/src/stories/molecules/Cards/Modals.stories.tsx +137 -137
  128. package/src/stories/molecules/Cards/TeamCard.tsx +14 -14
  129. package/src/stories/molecules/Cards/TeamDrawCard.tsx +135 -134
  130. package/src/stories/molecules/Cards/sharedTypes.ts +67 -67
  131. package/src/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.tsx +77 -77
  132. package/src/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.tsx +84 -84
  133. package/src/stories/organisms/Modals/FullPageModal.tsx +93 -93
  134. package/src/stories/organisms/Modals/Modals.stories.tsx +138 -138
  135. package/src/stories/organisms/Modals/sharedTypes.ts +15 -15
  136. package/src/stories/organisms/Tables/DrawCardTable.tsx +92 -92
  137. package/src/stories/organisms/Tables/SortableTable.tsx +112 -112
  138. package/src/stories/organisms/Tables/Tables.stories.tsx +104 -104
  139. package/src/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.tsx +102 -0
  140. package/src/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.tsx +67 -0
  141. package/src/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.tsx +24 -0
  142. package/src/stories/organisms/Tables/mockData.tsx +129 -129
  143. package/src/stories/organisms/Tables/sharedTypes.ts +17 -9
  144. package/src/stories/utils/constants.ts +3 -3
  145. package/src/stories/utils/useScreenSize.ts +28 -28
  146. package/src/types/tableDataTypes.ts +42 -42
  147. package/tsconfig.json +23 -23
  148. package/dist/stories/atoms/Icons/AddIcon.d.ts +0 -3
  149. package/dist/stories/atoms/Icons/AddIcon.js +0 -9
  150. package/dist/stories/atoms/Icons/AddIcon.js.map +0 -1
  151. package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.d.ts +0 -3
  152. package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js +0 -7
  153. package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js.map +0 -1
  154. package/dist/stories/atoms/Icons/AvailabilityNoIcon.d.ts +0 -3
  155. package/dist/stories/atoms/Icons/AvailabilityNoIcon.js +0 -7
  156. package/dist/stories/atoms/Icons/AvailabilityNoIcon.js.map +0 -1
  157. package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.d.ts +0 -3
  158. package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.js +0 -8
  159. package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.js.map +0 -1
  160. package/dist/stories/atoms/Icons/AvailabilityYesIcon.d.ts +0 -3
  161. package/dist/stories/atoms/Icons/AvailabilityYesIcon.js +0 -7
  162. package/dist/stories/atoms/Icons/AvailabilityYesIcon.js.map +0 -1
  163. package/dist/stories/atoms/Icons/CalendarIcon.d.ts +0 -3
  164. package/dist/stories/atoms/Icons/CalendarIcon.js +0 -7
  165. package/dist/stories/atoms/Icons/CalendarIcon.js.map +0 -1
  166. package/dist/stories/atoms/Icons/ClockIcon.d.ts +0 -3
  167. package/dist/stories/atoms/Icons/ClockIcon.js +0 -9
  168. package/dist/stories/atoms/Icons/ClockIcon.js.map +0 -1
  169. package/dist/stories/atoms/Icons/CloseIcon.d.ts +0 -3
  170. package/dist/stories/atoms/Icons/CloseIcon.js +0 -7
  171. package/dist/stories/atoms/Icons/CloseIcon.js.map +0 -1
  172. package/dist/stories/atoms/Icons/DeleteIcon.d.ts +0 -3
  173. package/dist/stories/atoms/Icons/DeleteIcon.js +0 -11
  174. package/dist/stories/atoms/Icons/DeleteIcon.js.map +0 -1
  175. package/dist/stories/atoms/Icons/EditIcon.d.ts +0 -3
  176. package/dist/stories/atoms/Icons/EditIcon.js +0 -7
  177. package/dist/stories/atoms/Icons/EditIcon.js.map +0 -1
  178. package/dist/stories/atoms/Icons/Icons.stories.d.ts +0 -23
  179. package/dist/stories/atoms/Icons/Icons.stories.js +0 -178
  180. package/dist/stories/atoms/Icons/Icons.stories.js.map +0 -1
  181. package/dist/stories/atoms/Icons/LeftChevronIcon.d.ts +0 -3
  182. package/dist/stories/atoms/Icons/LeftChevronIcon.js +0 -7
  183. package/dist/stories/atoms/Icons/LeftChevronIcon.js.map +0 -1
  184. package/dist/stories/atoms/Icons/LocationIcon.d.ts +0 -3
  185. package/dist/stories/atoms/Icons/LocationIcon.js +0 -8
  186. package/dist/stories/atoms/Icons/LocationIcon.js.map +0 -1
  187. package/dist/stories/atoms/Icons/MessageIcon.d.ts +0 -3
  188. package/dist/stories/atoms/Icons/MessageIcon.js +0 -7
  189. package/dist/stories/atoms/Icons/MessageIcon.js.map +0 -1
  190. package/dist/stories/atoms/Icons/RightChevronIcon.d.ts +0 -3
  191. package/dist/stories/atoms/Icons/RightChevronIcon.js +0 -7
  192. package/dist/stories/atoms/Icons/RightChevronIcon.js.map +0 -1
  193. package/dist/stories/atoms/Icons/SessionIcon.d.ts +0 -3
  194. package/dist/stories/atoms/Icons/SessionIcon.js +0 -7
  195. package/dist/stories/atoms/Icons/SessionIcon.js.map +0 -1
  196. package/dist/stories/atoms/Icons/SwapIcon.d.ts +0 -3
  197. package/dist/stories/atoms/Icons/SwapIcon.js +0 -7
  198. package/dist/stories/atoms/Icons/SwapIcon.js.map +0 -1
  199. package/dist/stories/atoms/Icons/VisibilityIcon.d.ts +0 -3
  200. package/dist/stories/atoms/Icons/VisibilityIcon.js +0 -8
  201. package/dist/stories/atoms/Icons/VisibilityIcon.js.map +0 -1
  202. package/dist/stories/atoms/Icons/VisibilityOffIcon.d.ts +0 -3
  203. package/dist/stories/atoms/Icons/VisibilityOffIcon.js +0 -9
  204. package/dist/stories/atoms/Icons/VisibilityOffIcon.js.map +0 -1
  205. package/dist/stories/atoms/Icons/WinnerIndicatorIcon.d.ts +0 -3
  206. package/dist/stories/atoms/Icons/WinnerIndicatorIcon.js +0 -32
  207. package/dist/stories/atoms/Icons/WinnerIndicatorIcon.js.map +0 -1
  208. package/dist/stories/atoms/Icons/sharedTypes.d.ts +0 -9
  209. package/dist/stories/atoms/Icons/sharedTypes.js +0 -2
  210. package/dist/stories/atoms/Icons/sharedTypes.js.map +0 -1
  211. package/dist/stories/atoms/Map/Map.d.ts +0 -7
  212. package/dist/stories/atoms/Map/Map.js +0 -9
  213. package/dist/stories/atoms/Map/Map.js.map +0 -1
  214. package/dist/stories/atoms/Map/Map.stories.d.ts +0 -9
  215. package/dist/stories/atoms/Map/Map.stories.js +0 -36
  216. package/dist/stories/atoms/Map/Map.stories.js.map +0 -1
  217. package/dist/stories/molecules/AvatarWithName/AvatarWithName.d.ts +0 -27
  218. package/dist/stories/molecules/AvatarWithName/AvatarWithName.js +0 -21
  219. package/dist/stories/molecules/AvatarWithName/AvatarWithName.js.map +0 -1
  220. package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.d.ts +0 -15
  221. package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.js +0 -73
  222. package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.js.map +0 -1
  223. package/dist/stories/molecules/Cards/DrawCard.d.ts +0 -3
  224. package/dist/stories/molecules/Cards/DrawCard.js +0 -117
  225. package/dist/stories/molecules/Cards/DrawCard.js.map +0 -1
  226. package/dist/stories/molecules/Cards/Modals.stories.d.ts +0 -5
  227. package/dist/stories/molecules/Cards/Modals.stories.js +0 -73
  228. package/dist/stories/molecules/Cards/Modals.stories.js.map +0 -1
  229. package/dist/stories/molecules/Cards/TeamDrawCard.d.ts +0 -3
  230. package/dist/stories/molecules/Cards/TeamDrawCard.js +0 -75
  231. package/dist/stories/molecules/Cards/TeamDrawCard.js.map +0 -1
  232. package/dist/stories/molecules/Cards/sharedTypes.d.ts +0 -59
  233. package/dist/stories/molecules/Cards/sharedTypes.js +0 -3
  234. package/dist/stories/molecules/Cards/sharedTypes.js.map +0 -1
  235. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.d.ts +0 -27
  236. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.js +0 -25
  237. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.js.map +0 -1
  238. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.d.ts +0 -13
  239. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.js +0 -66
  240. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.js.map +0 -1
  241. package/dist/stories/organisms/Modals/FullPageModal.d.ts +0 -4
  242. package/dist/stories/organisms/Modals/FullPageModal.js +0 -60
  243. package/dist/stories/organisms/Modals/FullPageModal.js.map +0 -1
  244. package/dist/stories/organisms/Modals/Modals.stories.d.ts +0 -5
  245. package/dist/stories/organisms/Modals/Modals.stories.js +0 -74
  246. package/dist/stories/organisms/Modals/Modals.stories.js.map +0 -1
  247. package/dist/stories/organisms/Modals/sharedTypes.d.ts +0 -14
  248. package/dist/stories/organisms/Modals/sharedTypes.js +0 -2
  249. package/dist/stories/organisms/Modals/sharedTypes.js.map +0 -1
  250. package/dist/stories/organisms/Tables/DrawCardTable.d.ts +0 -3
  251. package/dist/stories/organisms/Tables/DrawCardTable.js +0 -59
  252. package/dist/stories/organisms/Tables/DrawCardTable.js.map +0 -1
  253. package/dist/stories/organisms/Tables/SortableTable.d.ts +0 -23
  254. package/dist/stories/organisms/Tables/SortableTable.js +0 -34
  255. package/dist/stories/organisms/Tables/SortableTable.js.map +0 -1
  256. package/dist/stories/organisms/Tables/Tables.stories.d.ts +0 -8
  257. package/dist/stories/organisms/Tables/Tables.stories.js +0 -91
  258. package/dist/stories/organisms/Tables/Tables.stories.js.map +0 -1
  259. package/dist/stories/organisms/Tables/TeamDrawCardTable.d.ts +0 -3
  260. package/dist/stories/organisms/Tables/TeamDrawCardTable.js +0 -96
  261. package/dist/stories/organisms/Tables/TeamDrawCardTable.js.map +0 -1
  262. package/dist/stories/organisms/Tables/mockData.d.ts +0 -69
  263. package/dist/stories/organisms/Tables/mockData.js +0 -98
  264. package/dist/stories/organisms/Tables/mockData.js.map +0 -1
  265. package/dist/stories/organisms/Tables/sharedTypes.d.ts +0 -8
  266. package/dist/stories/organisms/Tables/sharedTypes.js +0 -2
  267. package/dist/stories/organisms/Tables/sharedTypes.js.map +0 -1
  268. package/dist/stories/utils/constants.d.ts +0 -3
  269. package/dist/stories/utils/constants.js +0 -4
  270. package/dist/stories/utils/constants.js.map +0 -1
  271. package/dist/stories/utils/useScreenSize.d.ts +0 -4
  272. package/dist/stories/utils/useScreenSize.js +0 -28
  273. package/dist/stories/utils/useScreenSize.js.map +0 -1
  274. package/dist/types/tableDataTypes.d.ts +0 -38
  275. package/dist/types/tableDataTypes.js +0 -2
  276. package/dist/types/tableDataTypes.js.map +0 -1
  277. package/src/stories/organisms/Tables/TeamDrawCardTable.tsx +0 -156
@@ -1 +0,0 @@
1
- {"version":3,"file":"SquareAvatarWithName.stories.js","sourceRoot":"","sources":["../../../../src/stories/molecules/SquareAvatarWithName/Squ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AAC,IAAI,GAAG;IACpB,UAAU,EAAE,IAAI;IAChB,IAAI,EAAE,YAAY;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9D,QAAQ,CAAC,IAAI,GAAG;IACd,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,YAAY;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAiB,CAAC,IAAI,GAAG;IACvB,IAAI,EAAE,YAAY;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,gCAAgC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtE,YAAY,CAAC,IAAI,GAAG;IAClB,IAAI,EAAE,gCAAgC;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,gCAAgC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1E,gBAAgB,CAAC,IAAI,GAAG;IACtB,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE,wBAAwB;IAC9B,YAAY,EAAE,OAAO;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3D,KAAK,CAAC,IAAI,GAAG;IACX,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,IAAI;CACZ,CAAC"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { FullPageModalType } from './sharedTypes';
3
- declare function FullPageModal({ isOpen, onClose, pageTitle, bottomCTAText, secondaryBottomCTAText, onBottomCTAClick, onSecondaryBottomCTAClick, isBottomCTAdisabled, isSecondaryBottomCTAdisabled, PagePopupModal, children, ...props }: FullPageModalType): JSX.Element;
4
- export default FullPageModal;
@@ -1,60 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React from 'react';
13
- import AppBar from '@mui/material/AppBar';
14
- import Box from '@mui/material/Box';
15
- import CloseIcon from '@mui/icons-material/Close';
16
- import Container from '@mui/material/Container';
17
- import Dialog from '@mui/material/Dialog';
18
- import IconButton from '@mui/material/IconButton';
19
- import Toolbar from '@mui/material/Toolbar';
20
- import Typography from '@mui/material/Typography';
21
- import Grid from '@mui/material/Grid';
22
- import Button from '../../atoms/Button/Button';
23
- function FullPageModal(_a) {
24
- var { isOpen, onClose, pageTitle, bottomCTAText, secondaryBottomCTAText, onBottomCTAClick, onSecondaryBottomCTAClick, isBottomCTAdisabled, isSecondaryBottomCTAdisabled, PagePopupModal, children } = _a, props = __rest(_a, ["isOpen", "onClose", "pageTitle", "bottomCTAText", "secondaryBottomCTAText", "onBottomCTAClick", "onSecondaryBottomCTAClick", "isBottomCTAdisabled", "isSecondaryBottomCTAdisabled", "PagePopupModal", "children"]);
25
- const handleOnClose = () => {
26
- onClose();
27
- };
28
- return (React.createElement(Box, Object.assign({ position: "relative" }, props),
29
- React.createElement(Dialog, { PaperProps: {
30
- style: {
31
- backgroundColor: 'var(--cool-grey-150)',
32
- boxShadow: 'none',
33
- overflow: 'hidden'
34
- },
35
- }, fullScreen: true, open: isOpen, onClose: handleOnClose },
36
- React.createElement(AppBar, { sx: { position: 'relative', backgroundColor: 'var(--white)' } },
37
- React.createElement(Toolbar, null,
38
- React.createElement(Container, { maxWidth: false },
39
- React.createElement(Box, { display: "flex", justifyContent: "space-between", alignItems: "center" },
40
- React.createElement(Typography, { variant: "h6" }, pageTitle),
41
- React.createElement(IconButton, { edge: "start", onClick: handleOnClose, "aria-label": "close" },
42
- React.createElement(CloseIcon, null)))))),
43
- React.createElement(Grid, { sx: { minHeight: "100vh", paddingBottom: '136px' }, container: true },
44
- children,
45
- bottomCTAText && !!onBottomCTAClick && (React.createElement(Box, { sx: {
46
- position: "fixed",
47
- width: "100%",
48
- backgroundColor: 'black',
49
- zIndex: 2,
50
- display: 'flex',
51
- justifyContent: 'flex-end'
52
- }, p: 2, bottom: 0 },
53
- !!onSecondaryBottomCTAClick && secondaryBottomCTAText && (React.createElement(Box, { sx: { marginRight: '16px' } },
54
- React.createElement(Button, { onClick: onSecondaryBottomCTAClick, disabled: isSecondaryBottomCTAdisabled, category: "secondary-flipped" }, secondaryBottomCTAText))),
55
- React.createElement(Box, null,
56
- React.createElement(Button, { onClick: onBottomCTAClick, disabled: isBottomCTAdisabled, category: "secondary-flipped" }, bottomCTAText))))),
57
- PagePopupModal)));
58
- }
59
- export default FullPageModal;
60
- //# sourceMappingURL=FullPageModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FullPageModal.js","sourceRoot":"","sources":["../../../../src/stories/organisms/Modals/FullPageModal.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAG/C,SAAS,aAAa,CAAC,EAaH;QAbG,EACrB,MAAM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,OAAO;wBACxB,MAAM,EAAE,CAAC;wBACT,OAAO,EAAE,MAAM;wBACf,cAAc,EAAE,UAAU;qBAC3B,EACD,CAAC,EAAE,CAAC,EACJ,MAAM,EAAE,CAAC;oBAER,CAAC,CAAC,yBAAyB,IAAI,sBAAsB,IAAI,CAC1D,oBAAC,GAAG,IAAC,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE;wBAC5B,oBAAC,MAAM,IAAC,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAAE,4BAA4B,EAAE,QAAQ,EAAC,mBAAmB,IAC3G,sBAAsB,CAClB,CACP,CACL;oBACD,oBAAC,GAAG;wBACA,oBAAC,MAAM,IAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,mBAAmB,EAAE,QAAQ,EAAC,mBAAmB,IACzF,aAAa,CACT,CACP,CACJ,CACL,CACE;YACN,cAAc,CACV,CACP,CACT,CAAC;AACJ,CAAC;AACD,eAAe,aAAa,CAAC"}
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- };
4
- export default _default;
5
- export declare const FullPage: any;
@@ -1,74 +0,0 @@
1
- import React from 'react';
2
- import InputLabel from '@mui/material/InputLabel';
3
- import FormControl from '@mui/material/FormControl';
4
- import Checkbox from '@mui/material/Checkbox';
5
- import Select from '@mui/material/Select';
6
- import MenuItem from '@mui/material/MenuItem';
7
- import Typography from 'stories/atoms/Typography/Typography';
8
- import Button from 'stories/atoms/Button/Button';
9
- import Box from '@mui/material/Box';
10
- import Grid from '@mui/material/Grid';
11
- import Paper from '@mui/material/Paper';
12
- import Pagination from '@mui/material/Pagination';
13
- import FullPageModal from "./FullPageModal";
14
- import SortableTable from "../Tables/SortableTable";
15
- import { MOCK_HEAD_CELLS, mockRowComponent, MOCK_TABLE_DATA } from "../Tables/mockData";
16
- // Fake data for rendering sections
17
- const conferences = [{ id: 1, name: 'philly' }, { id: 2, name: 'NJ' }, { id: 3, name: 'PA' }];
18
- const sessions = [{ sessionId: 1, sessionName: 'philly' }, { sessionId: 2, sessionName: 'NJ' }, { sessionId: 3, sessionName: 'PA' }];
19
- const selectedSessionIds = [1];
20
- const teamsToAdd = [{ id: 1, name: 'test', sessionName: 'test' }];
21
- const selectedTeamIds = [1];
22
- const InputSelections = [
23
- React.createElement(FormControl, { sx: { width: 300, mr: 3 } },
24
- React.createElement(InputLabel, { id: "conference-select" }, "Select Conference"),
25
- React.createElement(Select, { value: 1 || '', label: "Select Conference", labelId: "conference-select" }, conferences === null || conferences === void 0 ? void 0 : conferences.map((option) => (React.createElement(MenuItem, { key: option.id, value: option.id }, option.name))))),
26
- React.createElement(FormControl, { sx: { width: 300 } },
27
- React.createElement(InputLabel, { id: "session-select" }, "test"),
28
- React.createElement(Select, { value: selectedSessionIds, label: "sample", multiple: true, labelId: "session-select" }, sessions === null || sessions === void 0 ? void 0 :
29
- sessions.map((option) => (React.createElement(MenuItem, { key: option.sessionId, value: option.sessionId },
30
- React.createElement(Checkbox, { checked: (selectedSessionIds === null || selectedSessionIds === void 0 ? void 0 : selectedSessionIds.indexOf(option.sessionId)) > -1 }),
31
- React.createElement(Typography, null, option.sessionName)))),
32
- React.createElement(Box, { mt: 1, boxShadow: "0px -3px 3px #00000024", display: "flex", justifyContent: "center", pt: 1, px: 1 },
33
- React.createElement(Button, { category: "primary-extended" }, "Apply"))))
34
- ];
35
- const MainComponent = (React.createElement(Grid, { container: true },
36
- React.createElement(Grid, { item: true, borderRight: 1, lg: 10 },
37
- React.createElement(Box, { p: 6 },
38
- React.createElement(Box, { display: "flex", alignItems: "center" }, InputSelections && InputSelections.map((select) => (select)))),
39
- React.createElement(Box, { p: 6 },
40
- React.createElement(SortableTable, { headCells: MOCK_HEAD_CELLS, sortOrder: "asc", sortByProperty: "player", title: "Player Table", tableData: MOCK_TABLE_DATA,
41
- // @ts-ignore
42
- rowComponent: mockRowComponent }),
43
- React.createElement(Pagination, { variant: "text", color: "primary", page: 1, count: 10 }))),
44
- React.createElement(Grid, { item: true, lg: 2 },
45
- React.createElement(Box, { p: 6 },
46
- React.createElement(Typography, { variant: "h5" }, `${teamsToAdd.length} selected teams`),
47
- React.createElement(Typography, null, `This session allows a max of ${1} teams`),
48
- teamsToAdd.map((team) => (React.createElement(Paper, { key: team.id, sx: { my: 1 } },
49
- React.createElement(Box, { p: 2, display: "flex" },
50
- React.createElement(Checkbox, { color: "primary", checked: selectedTeamIds.indexOf(team.id) !== -1 }),
51
- React.createElement(Box, { ml: 1 },
52
- React.createElement(Typography, null, team.name),
53
- React.createElement(Typography, null, team.sessionName))))))))));
54
- // Default
55
- export default {
56
- title: 'Organisms/Modals',
57
- };
58
- // Templates
59
- function FullPageModalTemplate(args) {
60
- return (React.createElement(FullPageModal, Object.assign({}, args), MainComponent));
61
- }
62
- // Stories
63
- export const FullPage = FullPageModalTemplate.bind({});
64
- FullPage.args = {
65
- isOpen: true,
66
- onClose: () => { },
67
- pageTitle: 'Sample Page',
68
- bottomCTAText: 'Add here!',
69
- onBottomCTAClick: () => { },
70
- onSecondaryBottomCTAClick: () => { },
71
- secondaryBottomCTAText: 'skip',
72
- isBottomCTAdisabled: false,
73
- };
74
- //# sourceMappingURL=Modals.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modals.stories.js","sourceRoot":"","sources":["../../../../src/stories/organisms/Modals/Modals.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,OAAO,MAAM,MAAM,6BAA6B,CAAC;AACjD,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,IAAI,MAAM,oBAAoB,C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,CAAc;wBACpC,oBAAC,UAAU,QAAE,IAAI,CAAC,WAAW,CAAc,CACzC,CACJ,CACF,CACX,CAAC,CACA,CACH,CACJ,CACV,CAAC;AAEF,UAAU;AACV,eAAe;IACb,KAAK,EAAE,kBAAkB;CAC1B,CAAC;AAEF,YAAY;AACZ,SAAS,qBAAqB,CAAC,IAAuB;IACpD,OAAO,CACH,oBAAC,aAAa,oBAAK,IAAI,GAClB,aAAa,CACF,CACnB,CAAC;AACJ,CAAC;AAED,UAAU;AACV,MAAM,CAAC,MAAM,QAAQ,GAAG,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvD,QAAQ,CAAC,IAAI,GAAG;IACd,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,SAAS,EAAE,aAAa;IACxB,aAAa,EAAE,WAAW;IAC1B,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC1B,yBAAyB,EAAE,GAAG,EAAE,GAAE,CAAC;IACnC,sBAAsB,EAAE,MAAM;IAC9B,mBAAmB,EAAE,KAAK;CAC3B,CAAC"}
@@ -1,14 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type FullPageModalType = {
3
- isOpen: boolean;
4
- onClose: VoidFunction;
5
- pageTitle: string;
6
- children?: ReactNode;
7
- bottomCTAText?: string;
8
- secondaryBottomCTAText?: string;
9
- onBottomCTAClick?: VoidFunction;
10
- onSecondaryBottomCTAClick?: VoidFunction;
11
- isSecondaryBottomCTAdisabled?: boolean;
12
- isBottomCTAdisabled?: boolean;
13
- PagePopupModal?: ReactNode;
14
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sharedTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharedTypes.js","sourceRoot":"","sources":["../../../../src/stories/organisms/Modals/sharedTypes.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { DrawCardTableProps } from './sharedTypes';
3
- export default function DrawCardTable({ headerRows, tableRows, isMobile, ...props }: DrawCardTableProps): JSX.Element | null;
@@ -1,59 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React from 'react';
13
- import Box from '@mui/material/Box';
14
- import { styled } from '@mui/material/styles';
15
- import Grid from '@mui/material/Grid';
16
- import Typography from '../../atoms/Typography/Typography';
17
- const StyledHeader = styled(Grid)({
18
- alignItems: 'center',
19
- justifyContent: 'center',
20
- display: 'flex',
21
- });
22
- const GridSections = styled(Box)({
23
- display: 'flex',
24
- alignItems: 'center',
25
- padding: '8px'
26
- });
27
- const TableMobileSection = styled(Grid) `
28
- flex-direction: column;
29
- `;
30
- export default function DrawCardTable(_a) {
31
- var { headerRows, tableRows, isMobile } = _a, props = __rest(_a, ["headerRows", "tableRows", "isMobile"]);
32
- if (!headerRows || !tableRows)
33
- return null;
34
- const totalColumns = Math.floor(12 / headerRows.length);
35
- const formatTableRows = tableRows.map((row, index) => {
36
- if (index > 2)
37
- return; // Table can only support 3 columns
38
- const rowSectionsHeight = `${100 / tableRows[index].length}%`;
39
- const sectionAmount = tableRows[index].length;
40
- return (React.createElement(Grid, { key: index, xs: totalColumns }, [...Array(sectionAmount)].map((section, idx) => (React.createElement(GridSections, { key: idx, sx: { height: rowSectionsHeight } }, row[idx])))));
41
- });
42
- const formatMobileRows = tableRows.map((row, index) => {
43
- if (index > 2)
44
- return; // Table can only support 3 columns
45
- const headerRow = headerRows[index];
46
- const sectionAmount = tableRows[index].length;
47
- return (React.createElement(React.Fragment, null,
48
- React.createElement(Grid, { container: true, sx: { height: '60px', justifyContent: 'center' } },
49
- React.createElement(StyledHeader, null,
50
- React.createElement(Typography, { category: "secondary", size: "small-medium-cap" }, headerRow.name))),
51
- React.createElement(TableMobileSection, { container: true }, [...Array(sectionAmount)].map((section, idx) => (React.createElement(GridSections, { key: idx }, row[idx]))))));
52
- });
53
- const formatDesktopRows = (React.createElement(React.Fragment, null,
54
- React.createElement(Grid, { container: true, sx: { height: '60px' } }, headerRows.map((row) => (React.createElement(StyledHeader, { key: row.name, xs: totalColumns },
55
- React.createElement(Typography, { category: "secondary", size: "small-medium-cap" }, row.name))))),
56
- React.createElement(Grid, { container: true }, formatTableRows)));
57
- return (React.createElement(Box, Object.assign({}, props, { sx: { flexGrow: 1 }, "aria-label": "draw table" }), isMobile ? formatMobileRows : formatDesktopRows));
58
- }
59
- //# sourceMappingURL=DrawCardTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DrawCardTable.js","sourceRoot":"","sources":["../../../../src/stories/organisms/Tables/DrawCardTable.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAG3D,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAChC,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,OAAO,EAAE,MAAM;CAChB,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC/B,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,KAAK;CACf,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA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from "types/tableDataTypes";
3
- type Order = 'asc' | 'desc';
4
- type OrderProperty = string | number;
5
- interface HeadCell {
6
- id: string;
7
- label?: string;
8
- isSortingDisabled: boolean;
9
- }
10
- export type SortableTableProps = {
11
- headCells: Array<HeadCell>;
12
- tableData: Array<TableData>;
13
- sortOrder: Order;
14
- sortByProperty: OrderProperty;
15
- rowComponent: ComponentType<{
16
- rowData: TableData;
17
- labelId: string;
18
- }>;
19
- title?: string;
20
- onOrderPropertyChange?: (property: OrderProperty) => VoidFunction;
21
- };
22
- declare function SortableTable({ headCells, tableData, rowComponent, sortOrder, sortByProperty, title, onOrderPropertyChange, }: SortableTableProps): JSX.Element;
23
- export default SortableTable;
@@ -1,34 +0,0 @@
1
- import React from "react";
2
- import Table from "@mui/material/Table";
3
- import TableBody from "@mui/material/TableBody";
4
- import TableCell from "@mui/material/TableCell";
5
- import TableContainer from "@mui/material/TableContainer";
6
- import TableHead from "@mui/material/TableHead";
7
- import MuiTableRow from "@mui/material/TableRow";
8
- import TableSortLabel from "@mui/material/TableSortLabel";
9
- import Toolbar from "@mui/material/Toolbar";
10
- import Paper from "@mui/material/Paper";
11
- import Typography from '../../atoms/Typography/Typography';
12
- function SortableTable({ headCells, tableData, rowComponent, sortOrder, sortByProperty, title = '', onOrderPropertyChange, }) {
13
- const TableRow = rowComponent;
14
- const handleRequestSort = (property) => (event) => {
15
- event.preventDefault();
16
- if (onOrderPropertyChange) {
17
- onOrderPropertyChange(property);
18
- }
19
- };
20
- return (React.createElement(Paper, { sx: { width: "100%", mb: 2 } },
21
- title && (React.createElement(Toolbar, { sx: { pl: { sm: 2 }, pr: { xs: 1, sm: 1 } } },
22
- React.createElement(Typography, { category: "secondary", size: "large-medium", id: "tableTitle" }, title))),
23
- React.createElement(TableContainer, null,
24
- React.createElement(Table, { sx: { minWidth: 750 }, "aria-labelledby": "tableTitle", size: "medium" },
25
- React.createElement(TableHead, null,
26
- React.createElement(MuiTableRow, null, headCells.map((headCell) => (React.createElement(TableCell, { key: headCell.id, align: "left", padding: "normal", sortDirection: sortByProperty === headCell.id ? sortOrder : false },
27
- React.createElement(TableSortLabel, { disabled: headCell.isSortingDisabled, hideSortIcon: !(headCell === null || headCell === void 0 ? void 0 : headCell.label), active: sortByProperty === headCell.id, direction: sortByProperty === headCell.id ? sortOrder : 'asc', onClick: handleRequestSort(headCell.id) }, headCell === null || headCell === void 0 ? void 0 : headCell.label)))))),
28
- React.createElement(TableBody, null, tableData && tableData.map((data, index) => {
29
- const labelId = `table-${index}`;
30
- return (React.createElement(TableRow, { key: data.id, rowData: data, labelId: labelId }));
31
- }))))));
32
- }
33
- export default SortableTable;
34
- //# sourceMappingURL=SortableTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SortableTable.js","sourceRoot":"","sources":["../../../../src/stories/organisms/Tables/SortableTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAGxC,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAqB3D,SAAS,aAAa,CAAC,EACrB,SAAS,EACT,SAAS,EACT,YAAY,EACZ,SAAS,EACT,cAAc,EACd,KAAK,GAAG,EAAE,EACV,qBAAqB,GACF;IACnB,MAAM,QAAQ,GAAG,YAAY,CAAC;IAE9B,MAAM,iBAAiB,GAAG,CAAC,QAAuB,EAAE,EAAE,CAAC,CAAC,KAAqB,EAAE,EAAE;QAC/E,KAAK,CAAC,cAAc,E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EAAE,iBAAiB,CAAC,QAAQ,CAAC,EAAE,CAAC,IAEtC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK,CACH,CACT,CACf,CAAC,CACQ,CACN;gBACZ,oBAAC,SAAS,QACL,SAAS,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC,IAAe,EAAE,KAAa,EAAE,EAAE;oBAC7D,MAAM,OAAO,GAAG,SAAS,KAAK,EAAE,CAAC;oBACjC,OAAO,CACH,oBAAC,QAAQ,IACL,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,OAAO,GAClB,CACL,CAAC;gBACJ,CAAC,CAAC,CACM,CACR,CACK,CACb,CACX,CAAC;AACJ,CAAC;AAED,eAAe,aAAa,CAAC"}
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- };
4
- export default _default;
5
- export declare const DrawTable: any;
6
- export declare const TeamDrawTable: any;
7
- export declare const MobileTeamDrawTable: any;
8
- export declare const SortableTable: any;
@@ -1,91 +0,0 @@
1
- import React from 'react';
2
- import TeamDrawCard from 'stories/molecules/Cards/TeamDrawCard';
3
- import DrawCard from '../../molecules/Cards/DrawCard';
4
- import DrawCardTable from './DrawCardTable';
5
- import TeamDrawCardTable from './TeamDrawCardTable';
6
- import { MOCK_HEAD_CELLS, mockRowComponent, MOCK_TABLE_DATA, SAMPLE_CARD_DATA, SAMPLE_TEAM_PAGE_CARD_DATA } from './mockData';
7
- const onOrderPropertyChange = () => { };
8
- // Default
9
- export default {
10
- title: 'Organisms/Tables',
11
- };
12
- // Templates
13
- function DrawCardTableTemplate(args) {
14
- return React.createElement(DrawCardTable, Object.assign({}, args));
15
- }
16
- function TeamDrawCardTableTemplate(args) {
17
- return React.createElement(TeamDrawCardTable, Object.assign({}, args));
18
- }
19
- const headerRows = [
20
- { name: 'Round 1' },
21
- { name: 'Quarterfinal' },
22
- { name: 'SemiFinal' },
23
- ];
24
- const tableRows = [
25
- [
26
- React.createElement(DrawCard, Object.assign({ isSelectActive: true, isFlexWidth: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
27
- React.createElement(DrawCard, Object.assign({ isSelectActive: true, isFlexWidth: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA, { locationLabel: "hi" })),
28
- React.createElement(DrawCard, Object.assign({ isSelectActive: true, isFlexWidth: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
29
- React.createElement(DrawCard, Object.assign({ isSelectActive: true, isFlexWidth: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA, { locationLabel: "hi" })),
30
- React.createElement(DrawCard, Object.assign({ isSelectActive: true, isFlexWidth: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
31
- React.createElement(DrawCard, Object.assign({ isSelectActive: true, isFlexWidth: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
32
- React.createElement(DrawCard, Object.assign({ isSelectActive: true, isFlexWidth: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA, { locationLabel: "hi" })),
33
- React.createElement(DrawCard, Object.assign({ isSelectActive: true, isFlexWidth: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
34
- ],
35
- [
36
- React.createElement(DrawCard, Object.assign({ emptyLabel: "Select a team" }, SAMPLE_CARD_DATA, { onViewClick: () => { } })),
37
- React.createElement(DrawCard, Object.assign({ emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
38
- React.createElement(DrawCard, Object.assign({ isScorelessMatch: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
39
- React.createElement(DrawCard, Object.assign({ isScorelessMatch: true, emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
40
- ],
41
- [
42
- React.createElement(DrawCard, Object.assign({ emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
43
- React.createElement(DrawCard, Object.assign({ emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
44
- ],
45
- [
46
- React.createElement(DrawCard, Object.assign({ emptyLabel: "Select a team" }, SAMPLE_CARD_DATA)),
47
- ],
48
- ];
49
- const teamTableRows = [
50
- [
51
- React.createElement(TeamDrawCard, Object.assign({}, SAMPLE_TEAM_PAGE_CARD_DATA)),
52
- React.createElement(TeamDrawCard, Object.assign({}, SAMPLE_TEAM_PAGE_CARD_DATA)),
53
- React.createElement(TeamDrawCard, Object.assign({ isScorelessMatch: true }, SAMPLE_TEAM_PAGE_CARD_DATA)),
54
- React.createElement(TeamDrawCard, Object.assign({ isScorelessMatch: true }, SAMPLE_TEAM_PAGE_CARD_DATA)),
55
- ],
56
- [
57
- React.createElement(TeamDrawCard, Object.assign({}, SAMPLE_TEAM_PAGE_CARD_DATA)),
58
- React.createElement(TeamDrawCard, Object.assign({}, SAMPLE_TEAM_PAGE_CARD_DATA)),
59
- ],
60
- [
61
- React.createElement(TeamDrawCard, Object.assign({}, SAMPLE_TEAM_PAGE_CARD_DATA)),
62
- ],
63
- ];
64
- // Stories
65
- export const DrawTable = DrawCardTableTemplate.bind({});
66
- DrawTable.args = {
67
- headerRows,
68
- tableRows,
69
- };
70
- export const TeamDrawTable = TeamDrawCardTableTemplate.bind({});
71
- TeamDrawTable.args = {
72
- headerRows,
73
- tableRows: teamTableRows,
74
- };
75
- export const MobileTeamDrawTable = TeamDrawCardTableTemplate.bind({});
76
- MobileTeamDrawTable.args = {
77
- headerRows,
78
- tableRows: teamTableRows,
79
- isMobile: true
80
- };
81
- export const SortableTable = DrawCardTableTemplate.bind({});
82
- SortableTable.args = {
83
- headCells: MOCK_HEAD_CELLS,
84
- sortOrder: 'asc',
85
- sortByProperty: 'player',
86
- title: 'Player Table',
87
- tableData: MOCK_TABLE_DATA,
88
- rowComponent: mockRowComponent,
89
- onOrderPropertyChange,
90
- };
91
- //# sourceMappingURL=Tables.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tables.stories.js","sourceRoot":"","sources":["../../../../src/stories/organisms/Tables/Tables.stories.tsx"],"names":[],"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oBAAC,YAAY,oBAAK,0BAA0B,EAAI;KACnD;IACD;QACI,oBAAC,YAAY,oBAAK,0BAA0B,EAAI;KACnD;CACF,CAAC;AAEF,UAAU;AACV,MAAM,CAAC,MAAM,SAAS,GAAG,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxD,SAAS,CAAC,IAAI,GAAG;IACf,UAAU;IACV,SAAS;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChE,aAAa,CAAC,IAAI,GAAG;IACnB,UAAU;IACV,SAAS,EAAE,aAAa;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtE,mBAAmB,CAAC,IAAI,GAAG;IACzB,UAAU;IACV,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5D,aAAa,CAAC,IAAI,GAAG;IACnB,SAAS,EAAE,eAAe;IAC1B,SAAS,EAAE,KAAK;IAChB,cAAc,EAAE,QAAQ;IACxB,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,eAAe;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,qBAAqB;CACtB,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { DrawCardTableProps } from "./sharedTypes";
3
- export default function TeamDrawCardTable({ headerRows, tableRows, isMobile, ...props }: DrawCardTableProps): JSX.Element | null;
@@ -1,96 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React from "react";
13
- import Box from "@mui/material/Box";
14
- import Button from "@mui/material/Button";
15
- import { styled } from "@mui/material/styles";
16
- import Grid from "@mui/material/Grid";
17
- import LeftChevronIcon from 'stories/atoms/Icons/LeftChevronIcon';
18
- import RightChevronIcon from 'stories/atoms/Icons/RightChevronIcon';
19
- import { teamDrawCardSideMargin, standardSideMargin } from "stories/utils/constants";
20
- import Typography from "../../atoms/Typography/Typography";
21
- const StyledHeader = styled(Grid)({
22
- alignItems: "center",
23
- justifyContent: "center",
24
- display: "flex"
25
- });
26
- const gridCommonStyles = {
27
- content: "''",
28
- position: "absolute",
29
- backgroundColor: "var(--cool-grey-600)",
30
- };
31
- const horizontalLineCommonStyles = {
32
- height: "1px",
33
- top: "50%",
34
- };
35
- const StyledGrid = styled(Grid)({
36
- position: "relative",
37
- "&:nth-last-child(-n+2) .team-draw-card": {
38
- "&:before": Object.assign(Object.assign(Object.assign({}, gridCommonStyles), horizontalLineCommonStyles), { width: `${teamDrawCardSideMargin}`, left: 0, transform: "translateX(-100%)" })
39
- },
40
- "&:nth-of-type(-n+2) .team-draw-card": {
41
- "&:after": Object.assign(Object.assign(Object.assign({}, gridCommonStyles), horizontalLineCommonStyles), { width: `calc(${standardSideMargin + 1}px)`, right: 0, transform: "translateX(100%)" })
42
- }
43
- });
44
- const GridSections = styled(Box)({
45
- display: "flex",
46
- alignItems: "center",
47
- position: 'relative',
48
- "&:before": Object.assign(Object.assign({}, gridCommonStyles), { height: `calc(50% + 1px)`, width: "1px", top: `calc(25% - 4px)` })
49
- });
50
- const TableMobileSection = styled(Grid)({
51
- flexDirection: "column"
52
- });
53
- export default function TeamDrawCardTable(_a) {
54
- var { headerRows, tableRows, isMobile } = _a, props = __rest(_a, ["headerRows", "tableRows", "isMobile"]);
55
- const [activeStep, setActiveStep] = React.useState(0);
56
- const handleNext = () => {
57
- setActiveStep((prevActiveStep) => prevActiveStep + 1);
58
- };
59
- const handleBack = () => {
60
- setActiveStep((prevActiveStep) => prevActiveStep - 1);
61
- };
62
- if (!headerRows || !tableRows)
63
- return null;
64
- const totalColumns = Math.floor(12 / headerRows.length);
65
- const formatTableRows = tableRows.map((row, index) => {
66
- if (index > 2)
67
- return; // Table can only support 3 columns
68
- const rowSectionsHeight = `${100 / tableRows[index].length}%`;
69
- const sectionAmount = tableRows[index].length;
70
- const isFirstRow = index === 0;
71
- return (React.createElement(StyledGrid, { key: index, xs: totalColumns }, [...Array(sectionAmount)].map((section, idx) => (React.createElement(GridSections, { key: idx, sx: {
72
- height: rowSectionsHeight,
73
- '&:before': {
74
- display: isFirstRow ? 'none' : 'block',
75
- },
76
- } }, row[idx])))));
77
- });
78
- const disabledBackButton = activeStep === 0;
79
- const disabledForwardButton = activeStep === tableRows.length - 1;
80
- const formatDesktopRows = (React.createElement(React.Fragment, null,
81
- React.createElement(Grid, { container: true, sx: { height: "60px" } }, headerRows.map((row) => (React.createElement(StyledHeader, { key: row.name, xs: totalColumns },
82
- React.createElement(Typography, { category: "secondary", size: "small-medium-cap" }, row.name))))),
83
- React.createElement(Grid, { container: true }, formatTableRows)));
84
- const formatMobileRows = (React.createElement(Box, null,
85
- React.createElement(Grid, { container: true, justifyContent: "space-between", mb: 1 },
86
- React.createElement(Button, { color: "inherit", disabled: disabledBackButton, onClick: handleBack, sx: { mr: 1, alignSelf: "flex-start" } },
87
- React.createElement(LeftChevronIcon, { size: 16, color: disabledBackButton ? "transparent" : "var(--primary)" })),
88
- React.createElement(StyledHeader, { xs: totalColumns },
89
- React.createElement(Typography, { category: "secondary", size: "small-medium-cap" }, headerRows[activeStep].name)),
90
- React.createElement(Button, { onClick: handleNext, disabled: disabledForwardButton },
91
- React.createElement(RightChevronIcon, { size: 16, color: disabledForwardButton ? "transparent" : "var(--primary)" }))),
92
- React.createElement(TableMobileSection, { container: true },
93
- React.createElement(GridSections, { sx: { display: "flex", flexDirection: "column", gap: "10px" } }, tableRows[activeStep]))));
94
- return (React.createElement(Box, Object.assign({}, props, { sx: { flexGrow: 1 }, "aria-label": "draw table" }), isMobile ? formatMobileRows : formatDesktopRows));
95
- }
96
- //# sourceMappingURL=TeamDrawCardTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TeamDrawCardTable.js","sourceRoot":"","sources":["../../../../src/stories/organisms/Tables/TeamDrawCardTable.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAEtC,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAG3D,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAChC,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,OAAO,EAAE,MAAM;CAChB,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG;IACvB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,UAAU;IACpB,eAAe,EAAE,sBAAsB;CACxC,CAAC;AAEF,MAAM,0BAA0B,GAAG;IACjC,MAAM,EAAE,KAAK;IACb,GAAG,EAAE,KAAK;CACX,CAAC;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9B,QAAQ,EAAE,UAAU;IAEpB,wCAAwC,EAAE;QACxC,UAAU,gDACL,gBAAgB,GAChB,0BAA0B,KAC7B,KAAK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,CACH,oBAAC,GAAG,oBAAK,KAAK,IAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,gBAAa,YAAY,KACvD,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,CAC9C,CACT,CAAC;AACJ,CAAC"}
@@ -1,69 +0,0 @@
1
- /// <reference types="react" />
2
- interface RowData {
3
- player: string;
4
- team: string;
5
- session: string;
6
- }
7
- interface RowProps {
8
- rowData: RowData;
9
- labelId: string;
10
- }
11
- type OnChangeArgs = {
12
- position: number;
13
- id: string | null | undefined;
14
- };
15
- export declare const mockRowComponent: ({ rowData, labelId }: RowProps) => JSX.Element;
16
- export declare const MOCK_HEAD_CELLS: {
17
- id: string;
18
- label: string;
19
- isSortingDisabled: boolean;
20
- }[];
21
- export declare const MOCK_TABLE_DATA: {
22
- id: number;
23
- player: string;
24
- team: string;
25
- session: string;
26
- }[];
27
- export declare const SAMPLE_CARD_DATA: {
28
- options: {
29
- id: number;
30
- label: string;
31
- }[];
32
- selectedOptions: {
33
- optionOne: number;
34
- optionTwo: number;
35
- };
36
- onChange: ({ position, id }: OnChangeArgs) => void;
37
- dateLabel: string;
38
- locationLabel: string;
39
- isPosition1Winner: boolean;
40
- isPosition2Winner: boolean;
41
- position1Team: {
42
- name: string;
43
- points: number;
44
- };
45
- position2Team: {
46
- name: string;
47
- points: number;
48
- };
49
- };
50
- export declare const SAMPLE_TEAM_PAGE_CARD_DATA: {
51
- dateLabel: string;
52
- timeLabel: string;
53
- locationLabel: string;
54
- isPosition1Winner: boolean;
55
- isPosition2Winner: boolean;
56
- position1Team: {
57
- name: string;
58
- points: number;
59
- href: string;
60
- seed: number;
61
- };
62
- position2Team: {
63
- name: string;
64
- points: number;
65
- href: string;
66
- seed: number;
67
- };
68
- };
69
- export {};