@universal-tennis/ui-shared 0.1.98 → 0.2.0

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 (177) hide show
  1. package/.storybook/main.js +16 -16
  2. package/.storybook/typography.css +5 -26
  3. package/dist/App.d.ts +2 -2
  4. package/dist/App.js +12 -12
  5. package/dist/components.d.ts +43 -43
  6. package/dist/components.js +48 -48
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +12 -12
  9. package/dist/items.d.ts +2 -2
  10. package/dist/items.js +1 -1
  11. package/dist/stories/assets/css/typography.css +5 -26
  12. package/dist/stories/atoms/Button/Button.d.ts +10 -10
  13. package/dist/stories/atoms/Button/Button.js +95 -95
  14. package/dist/stories/atoms/Button/Button.js.map +1 -1
  15. package/dist/stories/atoms/Button/Button.stories.d.ts +17 -17
  16. package/dist/stories/atoms/Button/Button.stories.js +45 -45
  17. package/dist/stories/atoms/Icons/AddIcon.d.ts +3 -3
  18. package/dist/stories/atoms/Icons/AddIcon.js +8 -8
  19. package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.d.ts +3 -3
  20. package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js +6 -6
  21. package/dist/stories/atoms/Icons/AvailabilityNoIcon.d.ts +3 -3
  22. package/dist/stories/atoms/Icons/AvailabilityNoIcon.js +6 -6
  23. package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.d.ts +3 -3
  24. package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.js +7 -7
  25. package/dist/stories/atoms/Icons/AvailabilityYesIcon.d.ts +3 -3
  26. package/dist/stories/atoms/Icons/AvailabilityYesIcon.js +6 -6
  27. package/dist/stories/atoms/Icons/BallInMotionIcon.d.ts +3 -3
  28. package/dist/stories/atoms/Icons/BallInMotionIcon.js +9 -9
  29. package/dist/stories/atoms/Icons/CalendarIcon.d.ts +3 -3
  30. package/dist/stories/atoms/Icons/CalendarIcon.js +6 -6
  31. package/dist/stories/atoms/Icons/ClockIcon.d.ts +3 -3
  32. package/dist/stories/atoms/Icons/ClockIcon.js +8 -8
  33. package/dist/stories/atoms/Icons/CloseIcon.d.ts +3 -3
  34. package/dist/stories/atoms/Icons/CloseIcon.js +6 -6
  35. package/dist/stories/atoms/Icons/DeleteIcon.d.ts +3 -3
  36. package/dist/stories/atoms/Icons/DeleteIcon.js +10 -10
  37. package/dist/stories/atoms/Icons/DoublePersonIcon.d.ts +3 -3
  38. package/dist/stories/atoms/Icons/DoublePersonIcon.js +13 -13
  39. package/dist/stories/atoms/Icons/EditIcon.d.ts +3 -3
  40. package/dist/stories/atoms/Icons/EditIcon.js +6 -6
  41. package/dist/stories/atoms/Icons/Icons.stories.d.ts +37 -37
  42. package/dist/stories/atoms/Icons/Icons.stories.js +303 -303
  43. package/dist/stories/atoms/Icons/LeftChevronIcon.d.ts +3 -3
  44. package/dist/stories/atoms/Icons/LeftChevronIcon.js +6 -6
  45. package/dist/stories/atoms/Icons/LineIcon.d.ts +3 -3
  46. package/dist/stories/atoms/Icons/LineIcon.js +6 -6
  47. package/dist/stories/atoms/Icons/LocationIcon.d.ts +3 -3
  48. package/dist/stories/atoms/Icons/LocationIcon.js +7 -7
  49. package/dist/stories/atoms/Icons/MessageIcon.d.ts +3 -3
  50. package/dist/stories/atoms/Icons/MessageIcon.js +6 -6
  51. package/dist/stories/atoms/Icons/PickleballBallIcon.d.ts +3 -3
  52. package/dist/stories/atoms/Icons/PickleballBallIcon.js +17 -17
  53. package/dist/stories/atoms/Icons/RightChevronIcon.d.ts +3 -3
  54. package/dist/stories/atoms/Icons/RightChevronIcon.js +6 -6
  55. package/dist/stories/atoms/Icons/SessionIcon.d.ts +3 -3
  56. package/dist/stories/atoms/Icons/SessionIcon.js +6 -6
  57. package/dist/stories/atoms/Icons/SinglePersonIcon.d.ts +3 -3
  58. package/dist/stories/atoms/Icons/SinglePersonIcon.js +9 -9
  59. package/dist/stories/atoms/Icons/SinglePersonV2Icon.d.ts +3 -3
  60. package/dist/stories/atoms/Icons/SinglePersonV2Icon.js +7 -7
  61. package/dist/stories/atoms/Icons/SocialMediaFacebookIcon.d.ts +3 -3
  62. package/dist/stories/atoms/Icons/SocialMediaFacebookIcon.js +10 -10
  63. package/dist/stories/atoms/Icons/SocialMediaInstagramIcon.d.ts +3 -3
  64. package/dist/stories/atoms/Icons/SocialMediaInstagramIcon.js +6 -6
  65. package/dist/stories/atoms/Icons/SocialMediaTikTokIcon.d.ts +3 -3
  66. package/dist/stories/atoms/Icons/SocialMediaTikTokIcon.js +10 -10
  67. package/dist/stories/atoms/Icons/SocialMediaXIcon.d.ts +3 -3
  68. package/dist/stories/atoms/Icons/SocialMediaXIcon.js +10 -10
  69. package/dist/stories/atoms/Icons/SocialMediaYoutubeIcon.d.ts +3 -3
  70. package/dist/stories/atoms/Icons/SocialMediaYoutubeIcon.js +6 -6
  71. package/dist/stories/atoms/Icons/SwapIcon.d.ts +3 -3
  72. package/dist/stories/atoms/Icons/SwapIcon.js +6 -6
  73. package/dist/stories/atoms/Icons/SwapNoBorderIcon.d.ts +3 -3
  74. package/dist/stories/atoms/Icons/SwapNoBorderIcon.js +9 -9
  75. package/dist/stories/atoms/Icons/TennisBallIcon.d.ts +3 -3
  76. package/dist/stories/atoms/Icons/TennisBallIcon.js +8 -8
  77. package/dist/stories/atoms/Icons/VerifiedIcon.d.ts +3 -3
  78. package/dist/stories/atoms/Icons/VerifiedIcon.js +7 -7
  79. package/dist/stories/atoms/Icons/VisibilityIcon.d.ts +3 -3
  80. package/dist/stories/atoms/Icons/VisibilityIcon.js +7 -7
  81. package/dist/stories/atoms/Icons/VisibilityOffIcon.d.ts +3 -3
  82. package/dist/stories/atoms/Icons/VisibilityOffIcon.js +8 -8
  83. package/dist/stories/atoms/Icons/WinnerIndicatorIcon.d.ts +3 -3
  84. package/dist/stories/atoms/Icons/WinnerIndicatorIcon.js +31 -31
  85. package/dist/stories/atoms/Icons/sharedTypes.d.ts +11 -11
  86. package/dist/stories/atoms/Icons/sharedTypes.js +1 -1
  87. package/dist/stories/atoms/Typography/Typography.d.ts +49 -49
  88. package/dist/stories/atoms/Typography/Typography.js +143 -143
  89. package/dist/stories/atoms/Typography/Typography.js.map +1 -1
  90. package/dist/stories/atoms/Typography/Typography.stories.d.ts +37 -37
  91. package/dist/stories/atoms/Typography/Typography.stories.js +190 -190
  92. package/dist/stories/atoms/UTMap/UTMap.d.ts +7 -7
  93. package/dist/stories/atoms/UTMap/UTMap.js +8 -8
  94. package/dist/stories/atoms/UTMap/UTMap.stories.d.ts +9 -9
  95. package/dist/stories/atoms/UTMap/UTMap.stories.js +35 -35
  96. package/dist/stories/molecules/AvatarWithName/AvatarWithName.d.ts +27 -27
  97. package/dist/stories/molecules/AvatarWithName/AvatarWithName.js +20 -20
  98. package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.d.ts +15 -15
  99. package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.js +72 -72
  100. package/dist/stories/molecules/Cards/Cards.stories.d.ts +7 -7
  101. package/dist/stories/molecules/Cards/Cards.stories.js +64 -64
  102. package/dist/stories/molecules/Cards/ContactCard.d.ts +3 -3
  103. package/dist/stories/molecules/Cards/ContactCard.js +38 -38
  104. package/dist/stories/molecules/Cards/DrawCard.d.ts +3 -3
  105. package/dist/stories/molecules/Cards/DrawCard.js +116 -116
  106. package/dist/stories/molecules/Cards/DrawCard.js.map +1 -1
  107. package/dist/stories/molecules/Cards/Modals.stories.d.ts +5 -5
  108. package/dist/stories/molecules/Cards/Modals.stories.js +72 -72
  109. package/dist/stories/molecules/Cards/TeamCard.d.ts +3 -3
  110. package/dist/stories/molecules/Cards/TeamCard.js +20 -20
  111. package/dist/stories/molecules/Cards/TeamDrawCard.d.ts +3 -3
  112. package/dist/stories/molecules/Cards/TeamDrawCard.js +78 -78
  113. package/dist/stories/molecules/Cards/shared.d.ts +1 -9
  114. package/dist/stories/molecules/Cards/shared.js +12 -12
  115. package/dist/stories/molecules/Cards/sharedTypes.d.ts +61 -61
  116. package/dist/stories/molecules/Cards/sharedTypes.js +2 -2
  117. package/dist/stories/molecules/FooterSection/FooterSection.d.ts +4 -4
  118. package/dist/stories/molecules/FooterSection/FooterSection.js +11 -11
  119. package/dist/stories/molecules/FooterSection/FooterSection.stories.d.ts +5 -5
  120. package/dist/stories/molecules/FooterSection/FooterSection.stories.js +20 -20
  121. package/dist/stories/molecules/FooterSection/sharedTypes.d.ts +5 -5
  122. package/dist/stories/molecules/FooterSection/sharedTypes.js +1 -1
  123. package/dist/stories/molecules/GlobalNavItem/GlobalNavItem.d.ts +13 -13
  124. package/dist/stories/molecules/GlobalNavItem/GlobalNavItem.js +27 -27
  125. package/dist/stories/molecules/GlobalNavItem/GlobalNavItem.stories.d.ts +5 -5
  126. package/dist/stories/molecules/GlobalNavItem/GlobalNavItem.stories.js +18 -18
  127. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.d.ts +29 -29
  128. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.js +33 -33
  129. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.d.ts +16 -16
  130. package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.js +81 -81
  131. package/dist/stories/organisms/Footer/Footer.d.ts +4 -4
  132. package/dist/stories/organisms/Footer/Footer.js +97 -97
  133. package/dist/stories/organisms/Footer/Footer.stories.d.ts +5 -5
  134. package/dist/stories/organisms/Footer/Footer.stories.js +58 -58
  135. package/dist/stories/organisms/Footer/sharedTypes.d.ts +16 -16
  136. package/dist/stories/organisms/Footer/sharedTypes.js +1 -1
  137. package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.d.ts +36 -36
  138. package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.js +49 -49
  139. package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.js.map +1 -1
  140. package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.stories.d.ts +9 -9
  141. package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.stories.js +196 -196
  142. package/dist/stories/organisms/Modals/FullPageModal.d.ts +4 -4
  143. package/dist/stories/organisms/Modals/FullPageModal.js +59 -59
  144. package/dist/stories/organisms/Modals/Modals.stories.d.ts +5 -5
  145. package/dist/stories/organisms/Modals/Modals.stories.js +73 -73
  146. package/dist/stories/organisms/Modals/sharedTypes.d.ts +14 -14
  147. package/dist/stories/organisms/Modals/sharedTypes.js +1 -1
  148. package/dist/stories/organisms/Tables/DrawCardTable.d.ts +3 -3
  149. package/dist/stories/organisms/Tables/DrawCardTable.js +56 -56
  150. package/dist/stories/organisms/Tables/SortableTable.d.ts +23 -23
  151. package/dist/stories/organisms/Tables/SortableTable.js +34 -34
  152. package/dist/stories/organisms/Tables/SortableTable.js.map +1 -1
  153. package/dist/stories/organisms/Tables/Tables.stories.d.ts +8 -8
  154. package/dist/stories/organisms/Tables/Tables.stories.js +90 -90
  155. package/dist/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.d.ts +3 -3
  156. package/dist/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.js +66 -66
  157. package/dist/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.d.ts +3 -3
  158. package/dist/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.js +43 -43
  159. package/dist/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.d.ts +3 -3
  160. package/dist/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.js +22 -22
  161. package/dist/stories/organisms/Tables/mockData.d.ts +71 -71
  162. package/dist/stories/organisms/Tables/mockData.js +99 -99
  163. package/dist/stories/organisms/Tables/sharedTypes.d.ts +15 -15
  164. package/dist/stories/organisms/Tables/sharedTypes.js +1 -1
  165. package/dist/stories/utils/constants.d.ts +19 -19
  166. package/dist/stories/utils/constants.js +23 -23
  167. package/dist/stories/utils/constants.js.map +1 -1
  168. package/dist/stories/utils/getArrayWithIds.d.ts +3 -3
  169. package/dist/stories/utils/getArrayWithIds.js +1 -1
  170. package/dist/stories/utils/useScreenSize.d.ts +4 -4
  171. package/dist/stories/utils/useScreenSize.js +27 -27
  172. package/dist/types/tableDataTypes.d.ts +38 -38
  173. package/dist/types/tableDataTypes.js +1 -1
  174. package/package.json +1 -1
  175. package/public/index.html +50 -45
  176. package/src/stories/Introduction.stories.mdx +179 -179
  177. package/src/stories/assets/css/typography.css +5 -26
@@ -1,304 +1,304 @@
1
- import React from 'react';
2
- import AddIcon from './AddIcon';
3
- import AvailabilityMaybeIcon from './AvailabilityMaybeIcon';
4
- import AvailabilityNoIcon from './AvailabilityNoIcon';
5
- import AvailabilityYesIcon from './AvailabilityYesIcon';
6
- import AvailabilityNotSetIcon from './AvailabilityNotSetIcon';
7
- import BallInMotionIcon from './BallInMotionIcon';
8
- import CalendarIcon from './CalendarIcon';
9
- import ClockIcon from './ClockIcon';
10
- import CloseIcon from './CloseIcon';
11
- import DeleteIcon from './DeleteIcon';
12
- import DoublePersonIcon from './DoublePersonIcon';
13
- import EditIcon from './EditIcon';
14
- import LeftChevronIcon from './LeftChevronIcon';
15
- import LocationIcon from './LocationIcon';
16
- import LineIcon from './LineIcon';
17
- import MessageIcon from './MessageIcon';
18
- import PickleballBallIcon from './PickleballBallIcon';
19
- import RightChevronIcon from './RightChevronIcon';
20
- import SessionIcon from './SessionIcon';
21
- import SinglePersonIcon from './SinglePersonIcon';
22
- import SinglePersonV2Icon from './SinglePersonV2Icon';
23
- import SocialMediaFacebookIcon from './SocialMediaFacebookIcon';
24
- import SocialMediaInstagramIcon from './SocialMediaInstagramIcon';
25
- import SocialMediaTikTokIcon from './SocialMediaTikTokIcon';
26
- import SocialMediaXIcon from './SocialMediaXIcon';
27
- import SocialMediaYoutubeIcon from './SocialMediaYoutubeIcon';
28
- import SwapIcon from './SwapIcon';
29
- import SwapNoBorderIcon from './SwapNoBorderIcon';
30
- import TennisBallIcon from './TennisBallIcon';
31
- import VerifiedIcon from './VerifiedIcon';
32
- import VisibilityIcon from './VisibilityIcon';
33
- import VisibilityOffIcon from './VisibilityOffIcon';
34
- import WinnerIndicatorIcon from './WinnerIndicatorIcon';
35
- // Default
36
- export default {
37
- title: 'Atoms/Icons',
38
- };
39
- // Templates
40
- function AddIconTemplate(args) {
41
- return React.createElement(AddIcon, Object.assign({}, args));
42
- }
43
- function AvailabilityMaybeIconTemplate(args) {
44
- return React.createElement(AvailabilityMaybeIcon, Object.assign({}, args));
45
- }
46
- function AvailabilityNoIconTemplate(args) {
47
- return React.createElement(AvailabilityNoIcon, Object.assign({}, args));
48
- }
49
- function AvailabilityYesIconTemplate(args) {
50
- return React.createElement(AvailabilityYesIcon, Object.assign({}, args));
51
- }
52
- function AvailabilityNotSetIconTemplate(args) {
53
- return React.createElement(AvailabilityNotSetIcon, Object.assign({}, args));
54
- }
55
- function BallInMotionIconTemplate(args) {
56
- return React.createElement(BallInMotionIcon, Object.assign({}, args));
57
- }
58
- function CalendarIconTemplate(args) {
59
- return React.createElement(CalendarIcon, Object.assign({}, args));
60
- }
61
- function ClockIconTemplate(args) {
62
- return React.createElement(ClockIcon, Object.assign({}, args));
63
- }
64
- function CloseIconTemplate(args) {
65
- return React.createElement(CloseIcon, Object.assign({}, args));
66
- }
67
- function DeleteIconTemplate(args) {
68
- return React.createElement(DeleteIcon, Object.assign({}, args));
69
- }
70
- function DoublePersonIconTemplate(args) {
71
- return React.createElement(DoublePersonIcon, Object.assign({}, args));
72
- }
73
- function EditIconTemplate(args) {
74
- return React.createElement(EditIcon, Object.assign({}, args));
75
- }
76
- function LeftChevronIconTemplate(args) {
77
- return React.createElement(LeftChevronIcon, Object.assign({}, args));
78
- }
79
- function LocationIconTemplate(args) {
80
- return React.createElement(LocationIcon, Object.assign({}, args));
81
- }
82
- function LineIconTemplate(args) {
83
- return React.createElement(LineIcon, Object.assign({}, args));
84
- }
85
- function MessageIconTemplate(args) {
86
- return React.createElement(MessageIcon, Object.assign({}, args));
87
- }
88
- function PickleballBallIconTemplate(args) {
89
- return React.createElement(PickleballBallIcon, Object.assign({}, args));
90
- }
91
- function RightChevronIconTemplate(args) {
92
- return React.createElement(RightChevronIcon, Object.assign({}, args));
93
- }
94
- function SessionIconTemplate(args) {
95
- return React.createElement(SessionIcon, Object.assign({}, args));
96
- }
97
- function SinglePersonIconTemplate(args) {
98
- return React.createElement(SinglePersonIcon, Object.assign({}, args));
99
- }
100
- function SinglePersonV2IconTemplate(args) {
101
- return React.createElement(SinglePersonV2Icon, Object.assign({}, args));
102
- }
103
- function SocialMediaFacebookIconTemplate(args) {
104
- return React.createElement(SocialMediaFacebookIcon, Object.assign({}, args));
105
- }
106
- function SocialMediaInstagramIconTemplate(args) {
107
- return React.createElement(SocialMediaInstagramIcon, Object.assign({}, args));
108
- }
109
- function SocialMediaTikTokIconTemplate(args) {
110
- return React.createElement(SocialMediaTikTokIcon, Object.assign({}, args));
111
- }
112
- function SocialMediaXIconTemplate(args) {
113
- return React.createElement(SocialMediaXIcon, Object.assign({}, args));
114
- }
115
- function SocialMediaYoutubeIconTemplate(args) {
116
- return React.createElement(SocialMediaYoutubeIcon, Object.assign({}, args));
117
- }
118
- function SwapIconTemplate(args) {
119
- return React.createElement(SwapIcon, Object.assign({}, args));
120
- }
121
- function SwapNoBorderIconTemplate(args) {
122
- return React.createElement(SwapNoBorderIcon, Object.assign({}, args));
123
- }
124
- function TennisBallIconTemplate(args) {
125
- return React.createElement(TennisBallIcon, Object.assign({}, args));
126
- }
127
- function VerifiedIconTemplate(args) {
128
- return React.createElement(VerifiedIcon, Object.assign({}, args));
129
- }
130
- function VisibilityIconTemplate(args) {
131
- return React.createElement(VisibilityIcon, Object.assign({}, args));
132
- }
133
- function VisibilityOffIconTemplate(args) {
134
- return React.createElement(VisibilityOffIcon, Object.assign({}, args));
135
- }
136
- function WinnerIndicatorIconTemplate(args) {
137
- return React.createElement(WinnerIndicatorIcon, Object.assign({}, args));
138
- }
139
- // Stories
140
- export const Add = AddIconTemplate.bind({});
141
- Add.args = {
142
- size: 150,
143
- color: 'navy'
144
- };
145
- export const AvailabilityMaybe = AvailabilityMaybeIconTemplate.bind({});
146
- AvailabilityMaybe.args = {
147
- size: 150,
148
- color: 'orange'
149
- };
150
- export const AvailabilityNo = AvailabilityNoIconTemplate.bind({});
151
- AvailabilityNo.args = {
152
- size: 150,
153
- color: 'red'
154
- };
155
- export const AvailabilityYes = AvailabilityYesIconTemplate.bind({});
156
- AvailabilityYes.args = {
157
- size: 150,
158
- color: 'green'
159
- };
160
- export const AvailabilityNotSet = AvailabilityNotSetIconTemplate.bind({});
161
- AvailabilityNotSet.args = {
162
- size: 150,
163
- color: 'green'
164
- };
165
- export const BallInMotion = BallInMotionIconTemplate.bind({});
166
- BallInMotion.args = {
167
- size: 150,
168
- color: 'green'
169
- };
170
- export const Calendar = CalendarIconTemplate.bind({});
171
- Calendar.args = {
172
- size: 150,
173
- color: 'green'
174
- };
175
- export const Clock = ClockIconTemplate.bind({});
176
- Clock.args = {
177
- size: 150,
178
- color: 'maroon'
179
- };
180
- export const Close = CloseIconTemplate.bind({});
181
- Close.args = {
182
- size: 150,
183
- color: 'purple'
184
- };
185
- export const Delete = DeleteIconTemplate.bind({});
186
- Delete.args = {
187
- size: 150,
188
- color: 'orange'
189
- };
190
- export const DoublePerson = DoublePersonIconTemplate.bind({});
191
- DoublePerson.args = {
192
- height: 150,
193
- width: 200,
194
- color: 'red'
195
- };
196
- export const Edit = EditIconTemplate.bind({});
197
- Edit.args = {
198
- size: 150,
199
- color: 'green'
200
- };
201
- export const LeftChevron = LeftChevronIconTemplate.bind({});
202
- LeftChevron.args = {
203
- size: 150,
204
- color: 'grey'
205
- };
206
- export const RightChevron = RightChevronIconTemplate.bind({});
207
- RightChevron.args = {
208
- size: 150,
209
- color: 'grey'
210
- };
211
- export const Location = LocationIconTemplate.bind({});
212
- Location.args = {
213
- size: 150,
214
- color: 'grey'
215
- };
216
- export const Line = LineIconTemplate.bind({});
217
- Line.args = {
218
- width: 80,
219
- height: 2,
220
- color: 'grey'
221
- };
222
- export const Message = MessageIconTemplate.bind({});
223
- Message.args = {
224
- size: 150,
225
- color: 'teal'
226
- };
227
- export const Session = SessionIconTemplate.bind({});
228
- Session.args = {
229
- size: 150,
230
- color: 'red'
231
- };
232
- export const SinglePerson = SinglePersonIconTemplate.bind({});
233
- SinglePerson.args = {
234
- size: 150,
235
- color: 'red'
236
- };
237
- export const SinglePersonV2 = SinglePersonV2IconTemplate.bind({});
238
- SinglePersonV2.args = {
239
- size: 150,
240
- color: 'red'
241
- };
242
- export const FacebookIcon = SocialMediaFacebookIconTemplate.bind({});
243
- FacebookIcon.args = {
244
- size: 150,
245
- color: 'blue'
246
- };
247
- export const InstagramIcon = SocialMediaInstagramIconTemplate.bind({});
248
- InstagramIcon.args = {
249
- size: 150,
250
- color: 'green'
251
- };
252
- export const TikTokIcon = SocialMediaTikTokIconTemplate.bind({});
253
- TikTokIcon.args = {
254
- size: 150,
255
- color: 'pink'
256
- };
257
- export const XIcon = SocialMediaXIconTemplate.bind({});
258
- XIcon.args = {
259
- size: 150,
260
- color: 'black'
261
- };
262
- export const YoutubeIcon = SocialMediaYoutubeIconTemplate.bind({});
263
- YoutubeIcon.args = {
264
- size: 150,
265
- color: 'brown'
266
- };
267
- export const Swap = SwapIconTemplate.bind({});
268
- Swap.args = {
269
- size: 150,
270
- color: 'blue'
271
- };
272
- export const SwapNoBorder = SwapNoBorderIconTemplate.bind({});
273
- SwapNoBorder.args = {
274
- size: 150,
275
- color: 'blue'
276
- };
277
- export const TennisBall = TennisBallIconTemplate.bind({});
278
- TennisBall.args = {
279
- size: 150
280
- };
281
- export const PickleballBall = PickleballBallIconTemplate.bind({});
282
- PickleballBall.args = {
283
- size: 150
284
- };
285
- export const Verified = VerifiedIconTemplate.bind({});
286
- Verified.args = {
287
- size: 150,
288
- color: 'black'
289
- };
290
- export const Visibility = VisibilityIconTemplate.bind({});
291
- Visibility.args = {
292
- size: 150,
293
- color: 'black'
294
- };
295
- export const VisibilityOff = VisibilityOffIconTemplate.bind({});
296
- VisibilityOff.args = {
297
- size: 150,
298
- color: 'black'
299
- };
300
- export const WinnerIndicator = WinnerIndicatorIconTemplate.bind({});
301
- WinnerIndicator.args = {
302
- isBlack: true
303
- };
1
+ import React from 'react';
2
+ import AddIcon from './AddIcon';
3
+ import AvailabilityMaybeIcon from './AvailabilityMaybeIcon';
4
+ import AvailabilityNoIcon from './AvailabilityNoIcon';
5
+ import AvailabilityYesIcon from './AvailabilityYesIcon';
6
+ import AvailabilityNotSetIcon from './AvailabilityNotSetIcon';
7
+ import BallInMotionIcon from './BallInMotionIcon';
8
+ import CalendarIcon from './CalendarIcon';
9
+ import ClockIcon from './ClockIcon';
10
+ import CloseIcon from './CloseIcon';
11
+ import DeleteIcon from './DeleteIcon';
12
+ import DoublePersonIcon from './DoublePersonIcon';
13
+ import EditIcon from './EditIcon';
14
+ import LeftChevronIcon from './LeftChevronIcon';
15
+ import LocationIcon from './LocationIcon';
16
+ import LineIcon from './LineIcon';
17
+ import MessageIcon from './MessageIcon';
18
+ import PickleballBallIcon from './PickleballBallIcon';
19
+ import RightChevronIcon from './RightChevronIcon';
20
+ import SessionIcon from './SessionIcon';
21
+ import SinglePersonIcon from './SinglePersonIcon';
22
+ import SinglePersonV2Icon from './SinglePersonV2Icon';
23
+ import SocialMediaFacebookIcon from './SocialMediaFacebookIcon';
24
+ import SocialMediaInstagramIcon from './SocialMediaInstagramIcon';
25
+ import SocialMediaTikTokIcon from './SocialMediaTikTokIcon';
26
+ import SocialMediaXIcon from './SocialMediaXIcon';
27
+ import SocialMediaYoutubeIcon from './SocialMediaYoutubeIcon';
28
+ import SwapIcon from './SwapIcon';
29
+ import SwapNoBorderIcon from './SwapNoBorderIcon';
30
+ import TennisBallIcon from './TennisBallIcon';
31
+ import VerifiedIcon from './VerifiedIcon';
32
+ import VisibilityIcon from './VisibilityIcon';
33
+ import VisibilityOffIcon from './VisibilityOffIcon';
34
+ import WinnerIndicatorIcon from './WinnerIndicatorIcon';
35
+ // Default
36
+ export default {
37
+ title: 'Atoms/Icons',
38
+ };
39
+ // Templates
40
+ function AddIconTemplate(args) {
41
+ return React.createElement(AddIcon, Object.assign({}, args));
42
+ }
43
+ function AvailabilityMaybeIconTemplate(args) {
44
+ return React.createElement(AvailabilityMaybeIcon, Object.assign({}, args));
45
+ }
46
+ function AvailabilityNoIconTemplate(args) {
47
+ return React.createElement(AvailabilityNoIcon, Object.assign({}, args));
48
+ }
49
+ function AvailabilityYesIconTemplate(args) {
50
+ return React.createElement(AvailabilityYesIcon, Object.assign({}, args));
51
+ }
52
+ function AvailabilityNotSetIconTemplate(args) {
53
+ return React.createElement(AvailabilityNotSetIcon, Object.assign({}, args));
54
+ }
55
+ function BallInMotionIconTemplate(args) {
56
+ return React.createElement(BallInMotionIcon, Object.assign({}, args));
57
+ }
58
+ function CalendarIconTemplate(args) {
59
+ return React.createElement(CalendarIcon, Object.assign({}, args));
60
+ }
61
+ function ClockIconTemplate(args) {
62
+ return React.createElement(ClockIcon, Object.assign({}, args));
63
+ }
64
+ function CloseIconTemplate(args) {
65
+ return React.createElement(CloseIcon, Object.assign({}, args));
66
+ }
67
+ function DeleteIconTemplate(args) {
68
+ return React.createElement(DeleteIcon, Object.assign({}, args));
69
+ }
70
+ function DoublePersonIconTemplate(args) {
71
+ return React.createElement(DoublePersonIcon, Object.assign({}, args));
72
+ }
73
+ function EditIconTemplate(args) {
74
+ return React.createElement(EditIcon, Object.assign({}, args));
75
+ }
76
+ function LeftChevronIconTemplate(args) {
77
+ return React.createElement(LeftChevronIcon, Object.assign({}, args));
78
+ }
79
+ function LocationIconTemplate(args) {
80
+ return React.createElement(LocationIcon, Object.assign({}, args));
81
+ }
82
+ function LineIconTemplate(args) {
83
+ return React.createElement(LineIcon, Object.assign({}, args));
84
+ }
85
+ function MessageIconTemplate(args) {
86
+ return React.createElement(MessageIcon, Object.assign({}, args));
87
+ }
88
+ function PickleballBallIconTemplate(args) {
89
+ return React.createElement(PickleballBallIcon, Object.assign({}, args));
90
+ }
91
+ function RightChevronIconTemplate(args) {
92
+ return React.createElement(RightChevronIcon, Object.assign({}, args));
93
+ }
94
+ function SessionIconTemplate(args) {
95
+ return React.createElement(SessionIcon, Object.assign({}, args));
96
+ }
97
+ function SinglePersonIconTemplate(args) {
98
+ return React.createElement(SinglePersonIcon, Object.assign({}, args));
99
+ }
100
+ function SinglePersonV2IconTemplate(args) {
101
+ return React.createElement(SinglePersonV2Icon, Object.assign({}, args));
102
+ }
103
+ function SocialMediaFacebookIconTemplate(args) {
104
+ return React.createElement(SocialMediaFacebookIcon, Object.assign({}, args));
105
+ }
106
+ function SocialMediaInstagramIconTemplate(args) {
107
+ return React.createElement(SocialMediaInstagramIcon, Object.assign({}, args));
108
+ }
109
+ function SocialMediaTikTokIconTemplate(args) {
110
+ return React.createElement(SocialMediaTikTokIcon, Object.assign({}, args));
111
+ }
112
+ function SocialMediaXIconTemplate(args) {
113
+ return React.createElement(SocialMediaXIcon, Object.assign({}, args));
114
+ }
115
+ function SocialMediaYoutubeIconTemplate(args) {
116
+ return React.createElement(SocialMediaYoutubeIcon, Object.assign({}, args));
117
+ }
118
+ function SwapIconTemplate(args) {
119
+ return React.createElement(SwapIcon, Object.assign({}, args));
120
+ }
121
+ function SwapNoBorderIconTemplate(args) {
122
+ return React.createElement(SwapNoBorderIcon, Object.assign({}, args));
123
+ }
124
+ function TennisBallIconTemplate(args) {
125
+ return React.createElement(TennisBallIcon, Object.assign({}, args));
126
+ }
127
+ function VerifiedIconTemplate(args) {
128
+ return React.createElement(VerifiedIcon, Object.assign({}, args));
129
+ }
130
+ function VisibilityIconTemplate(args) {
131
+ return React.createElement(VisibilityIcon, Object.assign({}, args));
132
+ }
133
+ function VisibilityOffIconTemplate(args) {
134
+ return React.createElement(VisibilityOffIcon, Object.assign({}, args));
135
+ }
136
+ function WinnerIndicatorIconTemplate(args) {
137
+ return React.createElement(WinnerIndicatorIcon, Object.assign({}, args));
138
+ }
139
+ // Stories
140
+ export const Add = AddIconTemplate.bind({});
141
+ Add.args = {
142
+ size: 150,
143
+ color: 'navy'
144
+ };
145
+ export const AvailabilityMaybe = AvailabilityMaybeIconTemplate.bind({});
146
+ AvailabilityMaybe.args = {
147
+ size: 150,
148
+ color: 'orange'
149
+ };
150
+ export const AvailabilityNo = AvailabilityNoIconTemplate.bind({});
151
+ AvailabilityNo.args = {
152
+ size: 150,
153
+ color: 'red'
154
+ };
155
+ export const AvailabilityYes = AvailabilityYesIconTemplate.bind({});
156
+ AvailabilityYes.args = {
157
+ size: 150,
158
+ color: 'green'
159
+ };
160
+ export const AvailabilityNotSet = AvailabilityNotSetIconTemplate.bind({});
161
+ AvailabilityNotSet.args = {
162
+ size: 150,
163
+ color: 'green'
164
+ };
165
+ export const BallInMotion = BallInMotionIconTemplate.bind({});
166
+ BallInMotion.args = {
167
+ size: 150,
168
+ color: 'green'
169
+ };
170
+ export const Calendar = CalendarIconTemplate.bind({});
171
+ Calendar.args = {
172
+ size: 150,
173
+ color: 'green'
174
+ };
175
+ export const Clock = ClockIconTemplate.bind({});
176
+ Clock.args = {
177
+ size: 150,
178
+ color: 'maroon'
179
+ };
180
+ export const Close = CloseIconTemplate.bind({});
181
+ Close.args = {
182
+ size: 150,
183
+ color: 'purple'
184
+ };
185
+ export const Delete = DeleteIconTemplate.bind({});
186
+ Delete.args = {
187
+ size: 150,
188
+ color: 'orange'
189
+ };
190
+ export const DoublePerson = DoublePersonIconTemplate.bind({});
191
+ DoublePerson.args = {
192
+ height: 150,
193
+ width: 200,
194
+ color: 'red'
195
+ };
196
+ export const Edit = EditIconTemplate.bind({});
197
+ Edit.args = {
198
+ size: 150,
199
+ color: 'green'
200
+ };
201
+ export const LeftChevron = LeftChevronIconTemplate.bind({});
202
+ LeftChevron.args = {
203
+ size: 150,
204
+ color: 'grey'
205
+ };
206
+ export const RightChevron = RightChevronIconTemplate.bind({});
207
+ RightChevron.args = {
208
+ size: 150,
209
+ color: 'grey'
210
+ };
211
+ export const Location = LocationIconTemplate.bind({});
212
+ Location.args = {
213
+ size: 150,
214
+ color: 'grey'
215
+ };
216
+ export const Line = LineIconTemplate.bind({});
217
+ Line.args = {
218
+ width: 80,
219
+ height: 2,
220
+ color: 'grey'
221
+ };
222
+ export const Message = MessageIconTemplate.bind({});
223
+ Message.args = {
224
+ size: 150,
225
+ color: 'teal'
226
+ };
227
+ export const Session = SessionIconTemplate.bind({});
228
+ Session.args = {
229
+ size: 150,
230
+ color: 'red'
231
+ };
232
+ export const SinglePerson = SinglePersonIconTemplate.bind({});
233
+ SinglePerson.args = {
234
+ size: 150,
235
+ color: 'red'
236
+ };
237
+ export const SinglePersonV2 = SinglePersonV2IconTemplate.bind({});
238
+ SinglePersonV2.args = {
239
+ size: 150,
240
+ color: 'red'
241
+ };
242
+ export const FacebookIcon = SocialMediaFacebookIconTemplate.bind({});
243
+ FacebookIcon.args = {
244
+ size: 150,
245
+ color: 'blue'
246
+ };
247
+ export const InstagramIcon = SocialMediaInstagramIconTemplate.bind({});
248
+ InstagramIcon.args = {
249
+ size: 150,
250
+ color: 'green'
251
+ };
252
+ export const TikTokIcon = SocialMediaTikTokIconTemplate.bind({});
253
+ TikTokIcon.args = {
254
+ size: 150,
255
+ color: 'pink'
256
+ };
257
+ export const XIcon = SocialMediaXIconTemplate.bind({});
258
+ XIcon.args = {
259
+ size: 150,
260
+ color: 'black'
261
+ };
262
+ export const YoutubeIcon = SocialMediaYoutubeIconTemplate.bind({});
263
+ YoutubeIcon.args = {
264
+ size: 150,
265
+ color: 'brown'
266
+ };
267
+ export const Swap = SwapIconTemplate.bind({});
268
+ Swap.args = {
269
+ size: 150,
270
+ color: 'blue'
271
+ };
272
+ export const SwapNoBorder = SwapNoBorderIconTemplate.bind({});
273
+ SwapNoBorder.args = {
274
+ size: 150,
275
+ color: 'blue'
276
+ };
277
+ export const TennisBall = TennisBallIconTemplate.bind({});
278
+ TennisBall.args = {
279
+ size: 150
280
+ };
281
+ export const PickleballBall = PickleballBallIconTemplate.bind({});
282
+ PickleballBall.args = {
283
+ size: 150
284
+ };
285
+ export const Verified = VerifiedIconTemplate.bind({});
286
+ Verified.args = {
287
+ size: 150,
288
+ color: 'black'
289
+ };
290
+ export const Visibility = VisibilityIconTemplate.bind({});
291
+ Visibility.args = {
292
+ size: 150,
293
+ color: 'black'
294
+ };
295
+ export const VisibilityOff = VisibilityOffIconTemplate.bind({});
296
+ VisibilityOff.args = {
297
+ size: 150,
298
+ color: 'black'
299
+ };
300
+ export const WinnerIndicator = WinnerIndicatorIconTemplate.bind({});
301
+ WinnerIndicator.args = {
302
+ isBlack: true
303
+ };
304
304
  //# sourceMappingURL=Icons.stories.js.map
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import { IconProps } from "./sharedTypes";
3
- export default function LeftChevronIcon({ size, color }: IconProps): JSX.Element;
1
+ import React from "react";
2
+ import { IconProps } from "./sharedTypes";
3
+ export default function LeftChevronIcon({ size, color }: IconProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- /* eslint-disable max-len */
2
- import React from "react";
3
- export default function LeftChevronIcon({ size, color }) {
4
- return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 8 16", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("path", { d: "M7.84116 0.134474C7.66171 -0.0330075 7.39178 -0.0429963 7.20168 0.0986352L7.13447 0.158843L0.13447 7.65884C-0.0224142 7.82693 -0.0420246 8.07619 0.0756388 8.26457L0.13447 8.34116L7.13447 15.8412C7.32289 16.043 7.63928 16.0539 7.84116 15.8655C8.0206 15.698 8.04916 15.4294 7.92096 15.23L7.86553 15.1588L1.185 7.999L7.86553 0.841161C8.03301 0.661716 8.043 0.391787 7.90136 0.201687L7.84116 0.134474Z" })));
6
- }
1
+ /* eslint-disable max-len */
2
+ import React from "react";
3
+ export default function LeftChevronIcon({ size, color }) {
4
+ return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 8 16", fill: color, xmlns: "http://www.w3.org/2000/svg" },
5
+ React.createElement("path", { d: "M7.84116 0.134474C7.66171 -0.0330075 7.39178 -0.0429963 7.20168 0.0986352L7.13447 0.158843L0.13447 7.65884C-0.0224142 7.82693 -0.0420246 8.07619 0.0756388 8.26457L0.13447 8.34116L7.13447 15.8412C7.32289 16.043 7.63928 16.0539 7.84116 15.8655C8.0206 15.698 8.04916 15.4294 7.92096 15.23L7.86553 15.1588L1.185 7.999L7.86553 0.841161C8.03301 0.661716 8.043 0.391787 7.90136 0.201687L7.84116 0.134474Z" })));
6
+ }
7
7
  //# sourceMappingURL=LeftChevronIcon.js.map
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function LineIcon({ width, height, color }: IconProps): JSX.Element;
1
+ import React from 'react';
2
+ import { IconProps } from './sharedTypes';
3
+ export default function LineIcon({ width, height, color }: IconProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- /* eslint-disable max-len */
2
- import React from 'react';
3
- export default function LineIcon({ width, height, color }) {
4
- return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 83 1", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
5
- React.createElement("line", { x1: "83", y1: "0.5", x2: "4.37114e-08", y2: "0.500007", stroke: color })));
6
- }
1
+ /* eslint-disable max-len */
2
+ import React from 'react';
3
+ export default function LineIcon({ width, height, color }) {
4
+ return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 83 1", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
5
+ React.createElement("line", { x1: "83", y1: "0.5", x2: "4.37114e-08", y2: "0.500007", stroke: color })));
6
+ }
7
7
  //# sourceMappingURL=LineIcon.js.map
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import { IconProps } from './sharedTypes';
3
- export default function LocationIcon({ size, color }: IconProps): JSX.Element;
1
+ import React from 'react';
2
+ import { IconProps } from './sharedTypes';
3
+ export default function LocationIcon({ size, color }: IconProps): React.JSX.Element;