@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,129 +1,129 @@
1
- import React from 'react';
2
- import { TableRow, TableCell, Typography } from '@mui/material';
3
-
4
- interface RowData {
5
- player: string;
6
- team: string;
7
- session: string;
8
- }
9
-
10
- interface RowProps {
11
- rowData: RowData,
12
- labelId: string;
13
- }
14
-
15
- type OnChangeArgs = {
16
- position: number;
17
- id: string | null | undefined;
18
- }
19
-
20
- export const mockRowComponent = ({ rowData, labelId }: RowProps) => {
21
- const { player, session, team } = rowData;
22
- return (
23
- <TableRow>
24
- <TableCell
25
- component="th"
26
- id={labelId}
27
- scope="row"
28
- padding="normal"
29
- >
30
- <Typography>{player}</Typography>
31
- </TableCell>
32
- <TableCell align="left">
33
- <Typography>{team}</Typography>
34
- </TableCell>
35
- <TableCell align="left">
36
- <Typography>{session}</Typography>
37
- </TableCell>
38
- </TableRow>
39
-
40
- );
41
- };
42
-
43
- export const MOCK_HEAD_CELLS = [
44
- { id: 'player', label: 'Player Name', isSortingDisabled: false },
45
- { id: 'team', label: 'Team Name', isSortingDisabled: true },
46
- { id: 'session', label: 'Session', isSortingDisabled: false }];
47
-
48
- export const MOCK_TABLE_DATA = [
49
- {
50
- id: 1,
51
- player: 'John Smith',
52
- team: 'Mavericks',
53
- session: 'NorCal Adults',
54
- },
55
- {
56
- id: 2,
57
- player: 'Megan Brown',
58
- team: 'Mini Mavericks',
59
- session: 'SoCal Juniors',
60
- },
61
- {
62
- id: 3,
63
- player: 'George Fox',
64
- team: 'Grey Foxes',
65
- session: 'North Bay Junios',
66
- },
67
- {
68
- id: 4,
69
- player: 'Alison Green',
70
- team: 'Lions',
71
- session: 'Outer Bay UTR 2-5',
72
- },
73
- {
74
- id: 5,
75
- player: 'Linda Belinda',
76
- team: 'Green Hornets',
77
- session: 'Tri-State UTR 1-3',
78
- },
79
- ];
80
-
81
- export const SAMPLE_CARD_DATA = {
82
- options: [
83
- {
84
- id: 1,
85
- label: 'Team 1',
86
- },
87
- {
88
- id: 2,
89
- label: 'Team 2',
90
- }
91
- ],
92
- selectedOptions: {
93
- optionOne: 1,
94
- optionTwo: 2,
95
- },
96
- onChange: ({ position, id }: OnChangeArgs) => {},
97
- dateLabel: 'Dec 20 at 9:00am',
98
- locationLabel: `T`,
99
- isPosition1Winner: true,
100
- isPosition2Winner: false,
101
- position1Team: {
102
- name: 'Apples',
103
- points: 10,
104
- },
105
- position2Team: {
106
- name: 'Pears',
107
- points: 4,
108
- }
109
- };
110
-
111
- export const SAMPLE_TEAM_PAGE_CARD_DATA = {
112
- dateLabel: 'Dec 20',
113
- timeLabel: '9:00pm',
114
- locationLabel: 'Taube Tennis Center',
115
- isPosition1Winner: true,
116
- isPosition2Winner: false,
117
- position1Team: {
118
- name: 'Apples',
119
- points: 10,
120
- href: 'https://www.reddit.com',
121
- seed: 1
122
- },
123
- position2Team: {
124
- name: 'Pears',
125
- points: 4,
126
- href: 'https://www.reddit.com',
127
- seed: 2
128
- }
129
- };
1
+ import React from 'react';
2
+ import { TableRow, TableCell, Typography } from '@mui/material';
3
+
4
+ interface RowData {
5
+ player: string;
6
+ team: string;
7
+ session: string;
8
+ }
9
+
10
+ interface RowProps {
11
+ rowData: RowData,
12
+ labelId: string;
13
+ }
14
+
15
+ type OnChangeArgs = {
16
+ position: number;
17
+ id: string | null | undefined;
18
+ }
19
+
20
+ export const mockRowComponent = ({ rowData, labelId }: RowProps) => {
21
+ const { player, session, team } = rowData;
22
+ return (
23
+ <TableRow>
24
+ <TableCell
25
+ component="th"
26
+ id={labelId}
27
+ scope="row"
28
+ padding="normal"
29
+ >
30
+ <Typography>{player}</Typography>
31
+ </TableCell>
32
+ <TableCell align="left">
33
+ <Typography>{team}</Typography>
34
+ </TableCell>
35
+ <TableCell align="left">
36
+ <Typography>{session}</Typography>
37
+ </TableCell>
38
+ </TableRow>
39
+
40
+ );
41
+ };
42
+
43
+ export const MOCK_HEAD_CELLS = [
44
+ { id: 'player', label: 'Player Name', isSortingDisabled: false },
45
+ { id: 'team', label: 'Team Name', isSortingDisabled: true },
46
+ { id: 'session', label: 'Session', isSortingDisabled: false }];
47
+
48
+ export const MOCK_TABLE_DATA = [
49
+ {
50
+ id: 1,
51
+ player: 'John Smith',
52
+ team: 'Mavericks',
53
+ session: 'NorCal Adults',
54
+ },
55
+ {
56
+ id: 2,
57
+ player: 'Megan Brown',
58
+ team: 'Mini Mavericks',
59
+ session: 'SoCal Juniors',
60
+ },
61
+ {
62
+ id: 3,
63
+ player: 'George Fox',
64
+ team: 'Grey Foxes',
65
+ session: 'North Bay Junios',
66
+ },
67
+ {
68
+ id: 4,
69
+ player: 'Alison Green',
70
+ team: 'Lions',
71
+ session: 'Outer Bay UTR 2-5',
72
+ },
73
+ {
74
+ id: 5,
75
+ player: 'Linda Belinda',
76
+ team: 'Green Hornets',
77
+ session: 'Tri-State UTR 1-3',
78
+ },
79
+ ];
80
+
81
+ export const SAMPLE_CARD_DATA = {
82
+ options: [
83
+ {
84
+ id: 1,
85
+ label: 'Team 1',
86
+ },
87
+ {
88
+ id: 2,
89
+ label: 'Team 2',
90
+ }
91
+ ],
92
+ selectedOptions: {
93
+ optionOne: 1,
94
+ optionTwo: 2,
95
+ },
96
+ onChange: ({ position, id }: OnChangeArgs) => {},
97
+ dateLabel: 'Dec 20 at 9:00am',
98
+ locationLabel: `T`,
99
+ isPosition1Winner: true,
100
+ isPosition2Winner: false,
101
+ position1Team: {
102
+ name: 'Apples',
103
+ points: 10,
104
+ },
105
+ position2Team: {
106
+ name: 'Pears',
107
+ points: 4,
108
+ }
109
+ };
110
+
111
+ export const SAMPLE_TEAM_PAGE_CARD_DATA = {
112
+ dateLabel: 'Dec 20',
113
+ timeLabel: '9:00pm',
114
+ locationLabel: 'Taube Tennis Center',
115
+ isPosition1Winner: true,
116
+ isPosition2Winner: false,
117
+ position1Team: {
118
+ name: 'Apples',
119
+ points: 10,
120
+ href: 'https://www.reddit.com',
121
+ seed: 1
122
+ },
123
+ position2Team: {
124
+ name: 'Pears',
125
+ points: 4,
126
+ href: 'https://www.reddit.com',
127
+ seed: 2
128
+ }
129
+ };
@@ -1,9 +1,17 @@
1
- import React, { ReactNode } from 'react';
2
-
3
- export type DrawCardTableProps = {
4
- headerRows: {
5
- name: string;
6
- }[],
7
- tableRows: ReactNode[][];
8
- isMobile: boolean;
9
- }
1
+ import { ReactNode } from 'react';
2
+
3
+ export type DrawCardTableProps = {
4
+ headerRows: {
5
+ name: string;
6
+ }[],
7
+ tableRows: ReactNode[][];
8
+ isMobile: boolean;
9
+ }
10
+
11
+ export interface TableRowProps {
12
+ headerRows: {
13
+ name: string;
14
+ }[],
15
+ tableRows: ReactNode[][];
16
+ totalColumns: number;
17
+ }
@@ -1,3 +1,3 @@
1
- export const teamDrawCardSideMargin = '24px';
2
- export const standardSideMargin = 24;
3
- export const teamDrawCardBottomMargin = '8px';
1
+ export const teamDrawCardSideMargin = '24px';
2
+ export const standardSideMargin = 24;
3
+ export const teamDrawCardBottomMargin = '8px';
@@ -1,28 +1,28 @@
1
- import { useState, useEffect } from "react";
2
-
3
- // Hook
4
- export default function useWindowSize() {
5
- // Initialize state with undefined width/height so server and client renders match
6
- // Learn more here: https://joshwcomeau.com/react/the-perils-of-rehydration/
7
- const [windowSize, setWindowSize] = useState({
8
- width: undefined || 0,
9
- height: undefined || 0,
10
- });
11
- useEffect(() => {
12
- // Handler to call on window resize
13
- function handleResize() {
14
- // Set window width/height to state
15
- setWindowSize({
16
- width: window.innerWidth,
17
- height: window.innerHeight,
18
- });
19
- }
20
- // Add event listener
21
- window.addEventListener("resize", handleResize);
22
- // Call handler right away so state gets updated with initial window size
23
- handleResize();
24
- // Remove event listener on cleanup
25
- return () => window.removeEventListener("resize", handleResize);
26
- }, []); // Empty array ensures that effect is only run on mount
27
- return windowSize;
28
- }
1
+ import { useState, useEffect } from "react";
2
+
3
+ // Hook
4
+ export default function useWindowSize() {
5
+ // Initialize state with undefined width/height so server and client renders match
6
+ // Learn more here: https://joshwcomeau.com/react/the-perils-of-rehydration/
7
+ const [windowSize, setWindowSize] = useState({
8
+ width: undefined || 0,
9
+ height: undefined || 0,
10
+ });
11
+ useEffect(() => {
12
+ // Handler to call on window resize
13
+ function handleResize() {
14
+ // Set window width/height to state
15
+ setWindowSize({
16
+ width: window.innerWidth,
17
+ height: window.innerHeight,
18
+ });
19
+ }
20
+ // Add event listener
21
+ window.addEventListener("resize", handleResize);
22
+ // Call handler right away so state gets updated with initial window size
23
+ handleResize();
24
+ // Remove event listener on cleanup
25
+ return () => window.removeEventListener("resize", handleResize);
26
+ }, []); // Empty array ensures that effect is only run on mount
27
+ return windowSize;
28
+ }
@@ -1,42 +1,42 @@
1
- export interface Location {
2
- placeId: string;
3
- formattedAddress: string;
4
- placeName: string;
5
- lat: number;
6
- lng: number
7
- }
8
-
9
- export interface Captain {
10
- id: number;
11
- teamId: number;
12
- memberId: number;
13
- playerId: number;
14
- gender?: string;
15
- firstName: string;
16
- lastName: string;
17
- email?: string;
18
- phone?: string;
19
- phoneCountryCode?: string;
20
- profileImage?: string;
21
- location?: Location
22
- }
23
-
24
- export interface AddTeamsData {
25
- id: number;
26
- name?: string;
27
- teamMemberCount?: number;
28
- captains?: Array<Captain>;
29
- sessionId?: number;
30
- sessionName?: string;
31
- sessionStartDateUtc?: string;
32
- sessionEndDateUtc?: string;
33
- wins?: number;
34
- losses?: number;
35
- rank?: number;
36
- isSelected?: boolean;
37
- record?: string;
38
- sessionDates?: string;
39
-
40
- }
41
-
42
- export type TableData = AddTeamsData
1
+ export interface Location {
2
+ placeId: string;
3
+ formattedAddress: string;
4
+ placeName: string;
5
+ lat: number;
6
+ lng: number
7
+ }
8
+
9
+ export interface Captain {
10
+ id: number;
11
+ teamId: number;
12
+ memberId: number;
13
+ playerId: number;
14
+ gender?: string;
15
+ firstName: string;
16
+ lastName: string;
17
+ email?: string;
18
+ phone?: string;
19
+ phoneCountryCode?: string;
20
+ profileImage?: string;
21
+ location?: Location
22
+ }
23
+
24
+ export interface AddTeamsData {
25
+ id: number;
26
+ name?: string;
27
+ teamMemberCount?: number;
28
+ captains?: Array<Captain>;
29
+ sessionId?: number;
30
+ sessionName?: string;
31
+ sessionStartDateUtc?: string;
32
+ sessionEndDateUtc?: string;
33
+ wins?: number;
34
+ losses?: number;
35
+ rank?: number;
36
+ isSelected?: boolean;
37
+ record?: string;
38
+ sessionDates?: string;
39
+
40
+ }
41
+
42
+ export type TableData = AddTeamsData
package/tsconfig.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "compilerOptions": {
3
- "noImplicitThis": true,
4
- "preserveConstEnums": true,
5
- "strictNullChecks": true,
6
- "sourceMap": true,
7
- "declaration": true,
8
- "esModuleInterop": true,
9
- "outDir": "dist",
10
- "target": "es6",
11
- "module": "es6",
12
- "allowJs": true,
13
- "moduleResolution": "node",
14
- "skipLibCheck": true,
15
- "jsx": "react",
16
- "lib": ["ES2017", "DOM"],
17
- "baseUrl": "src",
18
- "allowSyntheticDefaultImports": true,
19
- "noImplicitAny": true
20
- },
21
- "exclude": ["node_modules"],
22
- "include": ["src", "src/custom.d.ts"]
23
- }
1
+ {
2
+ "compilerOptions": {
3
+ "noImplicitThis": true,
4
+ "preserveConstEnums": true,
5
+ "strictNullChecks": true,
6
+ "sourceMap": true,
7
+ "declaration": true,
8
+ "esModuleInterop": true,
9
+ "outDir": "dist",
10
+ "target": "es6",
11
+ "module": "es6",
12
+ "allowJs": true,
13
+ "moduleResolution": "node",
14
+ "skipLibCheck": true,
15
+ "jsx": "react",
16
+ "lib": ["ES2017", "DOM"],
17
+ "baseUrl": "src",
18
+ "allowSyntheticDefaultImports": true,
19
+ "noImplicitAny": true
20
+ },
21
+ "exclude": ["node_modules"],
22
+ "include": ["src", "src/custom.d.ts"]
23
+ }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function AddIcon({ size, color }: IconProps): JSX.Element;
@@ -1,9 +0,0 @@
1
- /* eslint-disable max-len */
2
- import React from 'react';
3
- export default function AddIcon({ size, color }) {
4
- return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z" }),
6
- React.createElement("path", { d: "M7.5 4.5C7.5 4.22386 7.72386 4 8 4V4C8.27614 4 8.5 4.22386 8.5 4.5V11.5C8.5 11.7761 8.27614 12 8 12V12C7.72386 12 7.5 11.7761 7.5 11.5V4.5Z" }),
7
- React.createElement("path", { d: "M4 8C4 7.72386 4.22386 7.5 4.5 7.5H11.5C11.7761 7.5 12 7.72386 12 8V8C12 8.27614 11.7761 8.5 11.5 8.5H4.5C4.22386 8.5 4 8.27614 4 8V8Z" })));
8
- }
9
- //# sourceMappingURL=AddIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/AddIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACxD,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,sNAAsN,GAAG;QACvQ,8BAAM,CAAC,EAAC,6IAA6I,GAAG;QACxJ,8BAAM,CAAC,EAAC,wIAAwI,GAAG,CACjJ,CACT,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function AvailabilityMaybeIcon({ size, color }: IconProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /* eslint-disable max-len */
2
- import React from 'react';
3
- export default function AvailabilityMaybeIcon({ size, color }) {
4
- return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM9.5 9C9.5 7.61929 10.6193 6.5 12 6.5C13.3807 6.5 14.5 7.61929 14.5 9C14.5 10.3807 13.3807 11.5 12 11.5C11.9568 11.5 11.915 11.5055 11.875 11.5158C11.835 11.5055 11.7932 11.5 11.75 11.5C11.4739 11.5 11.25 11.7239 11.25 12V14C11.25 14.2761 11.4739 14.5 11.75 14.5C12.0261 14.5 12.25 14.2761 12.25 14V12.4912C14.0663 12.363 15.5 10.8489 15.5 9C15.5 7.067 13.933 5.5 12 5.5C10.067 5.5 8.5 7.067 8.5 9C8.5 9.27614 8.72386 9.5 9 9.5C9.27614 9.5 9.5 9.27614 9.5 9ZM13.5 17.25C13.5 18.0784 12.8284 18.75 12 18.75C11.1716 18.75 10.5 18.0784 10.5 17.25C10.5 16.4216 11.1716 15.75 12 15.75C12.8284 15.75 13.5 16.4216 13.5 17.25Z" })));
6
- }
7
- //# sourceMappingURL=AvailabilityMaybeIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvailabilityMaybeIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/AvailabilityMaybeIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACtE,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,80BAA80B,GAAG,CAC73B,CACT,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function AvailabilityNoIcon({ size, color }: IconProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /* eslint-disable max-len */
2
- import React from 'react';
3
- export default function AvailabilityNoIcon({ size, color }) {
4
- return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM7.75687 8.46439C7.56161 8.26913 7.56161 7.95255 7.75687 7.75729C7.95214 7.56202 8.26872 7.56202 8.46398 7.75729L11.9996 11.2929L15.535 7.75743C15.7303 7.56217 16.0469 7.56217 16.2422 7.75743C16.4374 7.95269 16.4374 8.26928 16.2422 8.46454L12.7067 12L16.2422 15.5355C16.4374 15.7307 16.4374 16.0473 16.2422 16.2426C16.0469 16.4378 15.7303 16.4378 15.535 16.2426L11.9996 12.7071L8.46398 16.2427C8.26872 16.438 7.95214 16.438 7.75687 16.2427C7.56161 16.0475 7.56161 15.7309 7.75687 15.5356L11.2925 12L7.75687 8.46439Z" })));
6
- }
7
- //# sourceMappingURL=AvailabilityNoIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvailabilityNoIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/AvailabilityNoIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACnE,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,uuBAAuuB,GAAG,CACtxB,CACT,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function AvailabilityNotSetIcon({ size, color }: IconProps): JSX.Element;
@@ -1,8 +0,0 @@
1
- /* eslint-disable max-len */
2
- import React from 'react';
3
- export default function AvailabilityNotSetIcon({ size, color }) {
4
- return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 12C6 11.7239 6.22386 11.5 6.5 11.5H17.5C17.7761 11.5 18 11.7239 18 12C18 12.2761 17.7761 12.5 17.5 12.5H6.5C6.22386 12.5 6 12.2761 6 12Z" }),
6
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" })));
7
- }
8
- //# sourceMappingURL=AvailabilityNotSetIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvailabilityNotSetIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/AvailabilityNotSetIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACvE,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,6IAA6I,GAAG;QAC9L,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,oOAAoO,GAAG,CACnR,CACT,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function AvailabilityYesIcon({ size, color }: IconProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /* eslint-disable max-len */
2
- import React from 'react';
3
- export default function AvailabilityYesIcon({ size, color }) {
4
- return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM18.0962 9.84619C18.2915 9.65093 18.2915 9.33435 18.0962 9.13909C17.9009 8.94382 17.5843 8.94383 17.3891 9.13909L11.3787 15.1495L7.48959 11.2604C7.29433 11.0651 6.97775 11.0651 6.78249 11.2604C6.58722 11.4557 6.58722 11.7723 6.78249 11.9675L11.3787 16.5637L18.0962 9.84619Z" })));
6
- }
7
- //# sourceMappingURL=AvailabilityYesIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvailabilityYesIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/AvailabilityYesIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACpE,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,qfAAqf,GAAG,CACpiB,CACT,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function CalendarIcon({ size, color }: IconProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /* eslint-disable max-len */
2
- import React from 'react';
3
- export default function CalendarIcon({ size, color }) {
4
- return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 14 14", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.5 0.5C4.77614 0.5 5 0.723858 5 1V2H9V1C9 0.723858 9.22386 0.5 9.5 0.5C9.77614 0.5 10 0.723858 10 1V2H11C12.1046 2 13 2.89543 13 4V11C13 12.1046 12.1046 13 11 13H3C1.89543 13 1 12.1046 1 11V4C1 2.89543 1.89543 2 3 2H4V1C4 0.723858 4.22386 0.5 4.5 0.5ZM9 3V4C9 4.27614 9.22386 4.5 9.5 4.5C9.77614 4.5 10 4.27614 10 4V3H11C11.5523 3 12 3.44772 12 4V6.08325H2V4C2 3.44772 2.44772 3 3 3H4V4C4 4.27614 4.22386 4.5 4.5 4.5C4.77614 4.5 5 4.27614 5 4V3H9ZM2 7.08325V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V7.08325H2Z" })));
6
- }
7
- //# sourceMappingURL=CalendarIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CalendarIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/CalendarIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IAC7D,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,ohBAAohB,GAAG,CACnkB,CACT,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function ClockIcon({ size, color }: IconProps): JSX.Element;
@@ -1,9 +0,0 @@
1
- /* eslint-disable max-len */
2
- import React from 'react';
3
- export default function ClockIcon({ size, color }) {
4
- return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z" }),
6
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 3C8.27614 3 8.5 3.22386 8.5 3.5L8.5 8.5C8.5 8.77614 8.27614 9 8 9C7.72386 9 7.5 8.77614 7.5 8.5L7.5 3.5C7.5 3.22386 7.72386 3 8 3Z" }),
7
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4069 6.94146C11.5365 7.18528 11.4439 7.48803 11.2001 7.61767L8.34821 9.13406C8.10439 9.2637 7.80164 9.17114 7.672 8.92733C7.54236 8.68351 7.63492 8.38076 7.87874 8.25112L10.7307 6.73472C10.9745 6.60508 11.2772 6.69764 11.4069 6.94146Z" })));
8
- }
9
- //# sourceMappingURL=ClockIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClockIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/ClockIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IAC1D,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,sNAAsN,GAAG;QACvQ,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,uIAAuI,GAAG;QACxL,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,gPAAgP,GAAG,CAE/R,CACT,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function CloseIcon({ size, color }: IconProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- /* eslint-disable max-len */
2
- import React from 'react';
3
- export default function CloseIcon({ size, color }) {
4
- return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.584 3.27561C21.8139 3.04581 21.8139 2.67323 21.5841 2.44343C21.3542 2.21362 20.9817 2.21362 20.7519 2.44342L12.0139 11.1814L3.27568 2.44323C3.04588 2.21342 2.67329 2.21342 2.44349 2.44323C2.21369 2.67303 2.21369 3.04561 2.44349 3.27541L11.1817 12.0136L2.44375 20.7515C2.21394 20.9813 2.21394 21.3539 2.44375 21.5837C2.67355 21.8135 3.04613 21.8135 3.27593 21.5837L12.0139 12.8458L20.7516 21.5835C20.9814 21.8133 21.354 21.8133 21.5838 21.5835C21.8136 21.3537 21.8136 20.9811 21.5838 20.7513L12.8461 12.0136L21.584 3.27561Z" })));
6
- }
7
- //# sourceMappingURL=CloseIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloseIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/CloseIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IAC1D,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,ghBAAghB,GAAG,CAC/jB,CACT,CAAC;AACJ,CAAC"}