@universal-tennis/ui-shared 0.2.0 → 0.2.2
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.
- package/dist/App.d.ts +2 -2
- package/dist/App.js +12 -12
- package/dist/components.d.ts +43 -43
- package/dist/components.js +48 -48
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -12
- package/dist/items.d.ts +2 -2
- package/dist/items.js +1 -1
- package/dist/stories/atoms/Button/Button.d.ts +10 -10
- package/dist/stories/atoms/Button/Button.js +95 -95
- package/dist/stories/atoms/Button/Button.js.map +1 -1
- package/dist/stories/atoms/Button/Button.stories.d.ts +17 -17
- package/dist/stories/atoms/Button/Button.stories.js +45 -45
- package/dist/stories/atoms/Icons/AddIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/AddIcon.js +8 -8
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js +6 -6
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.js +6 -6
- package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.js +7 -7
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.js +6 -6
- package/dist/stories/atoms/Icons/BallInMotionIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/BallInMotionIcon.js +9 -9
- package/dist/stories/atoms/Icons/CalendarIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/CalendarIcon.js +6 -6
- package/dist/stories/atoms/Icons/ClockIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/ClockIcon.js +8 -8
- package/dist/stories/atoms/Icons/CloseIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/CloseIcon.js +6 -6
- package/dist/stories/atoms/Icons/DeleteIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/DeleteIcon.js +10 -10
- package/dist/stories/atoms/Icons/DoublePersonIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/DoublePersonIcon.js +13 -13
- package/dist/stories/atoms/Icons/EditIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/EditIcon.js +6 -6
- package/dist/stories/atoms/Icons/Icons.stories.d.ts +37 -37
- package/dist/stories/atoms/Icons/Icons.stories.js +303 -303
- package/dist/stories/atoms/Icons/LeftChevronIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/LeftChevronIcon.js +6 -6
- package/dist/stories/atoms/Icons/LineIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/LineIcon.js +6 -6
- package/dist/stories/atoms/Icons/LocationIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/LocationIcon.js +7 -7
- package/dist/stories/atoms/Icons/MessageIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/MessageIcon.js +6 -6
- package/dist/stories/atoms/Icons/PickleballBallIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/PickleballBallIcon.js +17 -17
- package/dist/stories/atoms/Icons/RightChevronIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/RightChevronIcon.js +6 -6
- package/dist/stories/atoms/Icons/SessionIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SessionIcon.js +6 -6
- package/dist/stories/atoms/Icons/SinglePersonIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SinglePersonIcon.js +9 -9
- package/dist/stories/atoms/Icons/SinglePersonV2Icon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SinglePersonV2Icon.js +7 -7
- package/dist/stories/atoms/Icons/SocialMediaFacebookIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SocialMediaFacebookIcon.js +10 -10
- package/dist/stories/atoms/Icons/SocialMediaInstagramIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SocialMediaInstagramIcon.js +6 -6
- package/dist/stories/atoms/Icons/SocialMediaTikTokIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SocialMediaTikTokIcon.js +10 -10
- package/dist/stories/atoms/Icons/SocialMediaXIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SocialMediaXIcon.js +10 -10
- package/dist/stories/atoms/Icons/SocialMediaYoutubeIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SocialMediaYoutubeIcon.js +6 -6
- package/dist/stories/atoms/Icons/SwapIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SwapIcon.js +6 -6
- package/dist/stories/atoms/Icons/SwapNoBorderIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/SwapNoBorderIcon.js +9 -9
- package/dist/stories/atoms/Icons/TennisBallIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/TennisBallIcon.js +8 -8
- package/dist/stories/atoms/Icons/VerifiedIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/VerifiedIcon.js +7 -7
- package/dist/stories/atoms/Icons/VisibilityIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/VisibilityIcon.js +7 -7
- package/dist/stories/atoms/Icons/VisibilityOffIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/VisibilityOffIcon.js +8 -8
- package/dist/stories/atoms/Icons/WinnerIndicatorIcon.d.ts +3 -3
- package/dist/stories/atoms/Icons/WinnerIndicatorIcon.js +31 -31
- package/dist/stories/atoms/Icons/sharedTypes.d.ts +11 -11
- package/dist/stories/atoms/Icons/sharedTypes.js +1 -1
- package/dist/stories/atoms/Typography/Typography.d.ts +49 -49
- package/dist/stories/atoms/Typography/Typography.js +143 -143
- package/dist/stories/atoms/Typography/Typography.js.map +1 -1
- package/dist/stories/atoms/Typography/Typography.stories.d.ts +37 -37
- package/dist/stories/atoms/Typography/Typography.stories.js +190 -190
- package/dist/stories/atoms/UTMap/UTMap.d.ts +7 -7
- package/dist/stories/atoms/UTMap/UTMap.js +8 -8
- package/dist/stories/atoms/UTMap/UTMap.stories.d.ts +9 -9
- package/dist/stories/atoms/UTMap/UTMap.stories.js +35 -35
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.d.ts +27 -27
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.js +20 -20
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.d.ts +15 -15
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.js +72 -72
- package/dist/stories/molecules/Cards/Cards.stories.d.ts +7 -7
- package/dist/stories/molecules/Cards/Cards.stories.js +64 -64
- package/dist/stories/molecules/Cards/ContactCard.d.ts +3 -3
- package/dist/stories/molecules/Cards/ContactCard.js +38 -38
- package/dist/stories/molecules/Cards/DrawCard.d.ts +3 -3
- package/dist/stories/molecules/Cards/DrawCard.js +116 -116
- package/dist/stories/molecules/Cards/DrawCard.js.map +1 -1
- package/dist/stories/molecules/Cards/Modals.stories.d.ts +5 -5
- package/dist/stories/molecules/Cards/Modals.stories.js +72 -72
- package/dist/stories/molecules/Cards/TeamCard.d.ts +3 -3
- package/dist/stories/molecules/Cards/TeamCard.js +20 -20
- package/dist/stories/molecules/Cards/TeamDrawCard.d.ts +3 -3
- package/dist/stories/molecules/Cards/TeamDrawCard.js +78 -78
- package/dist/stories/molecules/Cards/shared.d.ts +4 -1
- package/dist/stories/molecules/Cards/shared.js +12 -12
- package/dist/stories/molecules/Cards/sharedTypes.d.ts +61 -61
- package/dist/stories/molecules/Cards/sharedTypes.js +2 -2
- package/dist/stories/molecules/FooterSection/FooterSection.d.ts +4 -4
- package/dist/stories/molecules/FooterSection/FooterSection.js +11 -11
- package/dist/stories/molecules/FooterSection/FooterSection.stories.d.ts +5 -5
- package/dist/stories/molecules/FooterSection/FooterSection.stories.js +20 -20
- package/dist/stories/molecules/FooterSection/sharedTypes.d.ts +5 -5
- package/dist/stories/molecules/FooterSection/sharedTypes.js +1 -1
- package/dist/stories/molecules/GlobalNavItem/GlobalNavItem.d.ts +13 -13
- package/dist/stories/molecules/GlobalNavItem/GlobalNavItem.js +27 -27
- package/dist/stories/molecules/GlobalNavItem/GlobalNavItem.stories.d.ts +5 -5
- package/dist/stories/molecules/GlobalNavItem/GlobalNavItem.stories.js +18 -18
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.d.ts +29 -29
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.js +33 -33
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.d.ts +16 -16
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.js +81 -81
- package/dist/stories/organisms/Footer/Footer.d.ts +4 -4
- package/dist/stories/organisms/Footer/Footer.js +101 -97
- package/dist/stories/organisms/Footer/Footer.js.map +1 -1
- package/dist/stories/organisms/Footer/Footer.stories.d.ts +5 -5
- package/dist/stories/organisms/Footer/Footer.stories.js +58 -58
- package/dist/stories/organisms/Footer/sharedTypes.d.ts +16 -16
- package/dist/stories/organisms/Footer/sharedTypes.js +1 -1
- package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.d.ts +36 -36
- package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.js +49 -49
- package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.js.map +1 -1
- package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.stories.d.ts +9 -9
- package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.stories.js +196 -196
- package/dist/stories/organisms/Modals/FullPageModal.d.ts +4 -4
- package/dist/stories/organisms/Modals/FullPageModal.js +59 -59
- package/dist/stories/organisms/Modals/Modals.stories.d.ts +5 -5
- package/dist/stories/organisms/Modals/Modals.stories.js +73 -73
- package/dist/stories/organisms/Modals/sharedTypes.d.ts +14 -14
- package/dist/stories/organisms/Modals/sharedTypes.js +1 -1
- package/dist/stories/organisms/Tables/DrawCardTable.d.ts +3 -3
- package/dist/stories/organisms/Tables/DrawCardTable.js +56 -56
- package/dist/stories/organisms/Tables/SortableTable.d.ts +23 -23
- package/dist/stories/organisms/Tables/SortableTable.js +34 -34
- package/dist/stories/organisms/Tables/SortableTable.js.map +1 -1
- package/dist/stories/organisms/Tables/Tables.stories.d.ts +8 -8
- package/dist/stories/organisms/Tables/Tables.stories.js +90 -90
- package/dist/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.d.ts +3 -3
- package/dist/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.js +66 -66
- package/dist/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.d.ts +3 -3
- package/dist/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.js +43 -43
- package/dist/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.d.ts +3 -3
- package/dist/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.js +22 -22
- package/dist/stories/organisms/Tables/mockData.d.ts +71 -71
- package/dist/stories/organisms/Tables/mockData.js +99 -99
- package/dist/stories/organisms/Tables/sharedTypes.d.ts +15 -15
- package/dist/stories/organisms/Tables/sharedTypes.js +1 -1
- package/dist/stories/utils/constants.d.ts +19 -19
- package/dist/stories/utils/constants.js +23 -23
- package/dist/stories/utils/constants.js.map +1 -1
- package/dist/stories/utils/getArrayWithIds.d.ts +3 -3
- package/dist/stories/utils/getArrayWithIds.js +1 -1
- package/dist/stories/utils/useScreenSize.d.ts +4 -4
- package/dist/stories/utils/useScreenSize.js +27 -27
- package/dist/types/tableDataTypes.d.ts +38 -38
- package/dist/types/tableDataTypes.js +1 -1
- package/package.json +1 -1
- package/src/stories/assets/icons/icon-college-corner.svg +3 -0
- package/src/stories/atoms/Icons/CollegeCornerIcon.tsx +11 -0
- package/src/stories/atoms/Icons/Icons.stories.tsx +11 -0
- package/src/stories/molecules/GlobalNavItem/GlobalNavItem.tsx +1 -1
- package/src/stories/organisms/Footer/Footer.tsx +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawCard.js","sourceRoot":"","sources":["../../../../src/stories/molecules/Cards/DrawCard.tsx"],"names":[],"mappings":";;;;;;;;;;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
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const FullPage: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const FullPage: any;
|
|
@@ -1,73 +1,73 @@
|
|
|
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 '../../organisms/Modals/FullPageModal';
|
|
14
|
-
import SortableTable from '../../organisms/Tables/SortableTable';
|
|
15
|
-
import { MOCK_HEAD_CELLS, mockRowComponent, MOCK_TABLE_DATA } from '../../organisms/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 === null || InputSelections === void 0 ? void 0 : 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
|
-
handleBottomCTAClick: () => { },
|
|
70
|
-
isBottomCTAdisabled: false,
|
|
71
|
-
// PagePopupModal,
|
|
72
|
-
};
|
|
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 '../../organisms/Modals/FullPageModal';
|
|
14
|
+
import SortableTable from '../../organisms/Tables/SortableTable';
|
|
15
|
+
import { MOCK_HEAD_CELLS, mockRowComponent, MOCK_TABLE_DATA } from '../../organisms/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 === null || InputSelections === void 0 ? void 0 : 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
|
+
handleBottomCTAClick: () => { },
|
|
70
|
+
isBottomCTAdisabled: false,
|
|
71
|
+
// PagePopupModal,
|
|
72
|
+
};
|
|
73
73
|
//# sourceMappingURL=Modals.stories.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TeamCardProps } from './sharedTypes';
|
|
3
|
-
export default function TeamCard({ title, description, ...props }: TeamCardProps): React.JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TeamCardProps } from './sharedTypes';
|
|
3
|
+
export default function TeamCard({ title, description, ...props }: TeamCardProps): React.JSX.Element;
|
|
@@ -1,21 +1,21 @@
|
|
|
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 Typography from '../../atoms/Typography/Typography';
|
|
14
|
-
import { StyledCard } from './shared';
|
|
15
|
-
export default function TeamCard(_a) {
|
|
16
|
-
var { title, description } = _a, props = __rest(_a, ["title", "description"]);
|
|
17
|
-
return (React.createElement(StyledCard, Object.assign({}, props),
|
|
18
|
-
React.createElement(Typography, { category: "secondary", size: "medium-medium" }, title),
|
|
19
|
-
React.createElement(Typography, { category: "secondary", size: "x-small-book" }, description)));
|
|
20
|
-
}
|
|
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 Typography from '../../atoms/Typography/Typography';
|
|
14
|
+
import { StyledCard } from './shared';
|
|
15
|
+
export default function TeamCard(_a) {
|
|
16
|
+
var { title, description } = _a, props = __rest(_a, ["title", "description"]);
|
|
17
|
+
return (React.createElement(StyledCard, Object.assign({}, props),
|
|
18
|
+
React.createElement(Typography, { category: "secondary", size: "medium-medium" }, title),
|
|
19
|
+
React.createElement(Typography, { category: "secondary", size: "x-small-book" }, description)));
|
|
20
|
+
}
|
|
21
21
|
//# sourceMappingURL=TeamCard.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TeamDrawCardProps } from "./sharedTypes";
|
|
3
|
-
export default function TeamDrawCard({ dateLabel, locationLabel, timeLabel, matchInfo, isPosition1Winner, isPosition2Winner, isScorelessMatch, position1Team, position2Team, teamMatchLink, showTeamMatchLink, ...props }: TeamDrawCardProps): React.JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TeamDrawCardProps } from "./sharedTypes";
|
|
3
|
+
export default function TeamDrawCard({ dateLabel, locationLabel, timeLabel, matchInfo, isPosition1Winner, isPosition2Winner, isScorelessMatch, position1Team, position2Team, teamMatchLink, showTeamMatchLink, ...props }: TeamDrawCardProps): React.JSX.Element;
|
|
@@ -1,79 +1,79 @@
|
|
|
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 Link from '@mui/material/Link';
|
|
16
|
-
import { teamDrawCardSideMargin, teamDrawCardBottomMargin } from "../../utils/constants";
|
|
17
|
-
import WinnerIndicatorIcon from "../../atoms/Icons/WinnerIndicatorIcon";
|
|
18
|
-
import Typography, { SECONDARY_SIZES_ENUM, CATEGORY_ENUM } from "../../atoms/Typography/Typography";
|
|
19
|
-
import SquareAvatarWithName from "../SquareAvatarWithName/SquareAvatarWithName";
|
|
20
|
-
const StyledCard = styled(Box)({
|
|
21
|
-
display: "flex",
|
|
22
|
-
flexDirection: "column",
|
|
23
|
-
borderRadius: "4px",
|
|
24
|
-
padding: "16px 24px",
|
|
25
|
-
width: "100%",
|
|
26
|
-
height: "145px",
|
|
27
|
-
backgroundColor: "var(--white)",
|
|
28
|
-
border: "1px solid var(--cool-grey-600)",
|
|
29
|
-
marginLeft: `${teamDrawCardSideMargin}`,
|
|
30
|
-
marginRight: `${teamDrawCardSideMargin}`,
|
|
31
|
-
position: "relative",
|
|
32
|
-
marginBottom: `${teamDrawCardBottomMargin}`,
|
|
33
|
-
boxSizing: "border-box"
|
|
34
|
-
});
|
|
35
|
-
const BottomGrid = styled(Box)({
|
|
36
|
-
display: "flex",
|
|
37
|
-
alignItems: "center",
|
|
38
|
-
justifyContent: "space-between",
|
|
39
|
-
paddingTop: "8px"
|
|
40
|
-
});
|
|
41
|
-
const StyledTypography = styled(Typography)({
|
|
42
|
-
overflow: "hidden",
|
|
43
|
-
textOverflow: "ellipsis",
|
|
44
|
-
display: "-webkit-box",
|
|
45
|
-
WebkitBoxOrient: "vertical",
|
|
46
|
-
WebkitLineClamp: 1
|
|
47
|
-
});
|
|
48
|
-
export default function TeamDrawCard(_a) {
|
|
49
|
-
var { dateLabel, locationLabel, timeLabel, matchInfo, isPosition1Winner, isPosition2Winner, isScorelessMatch, position1Team, position2Team, teamMatchLink, showTeamMatchLink } = _a, props = __rest(_a, ["dateLabel", "locationLabel", "timeLabel", "matchInfo", "isPosition1Winner", "isPosition2Winner", "isScorelessMatch", "position1Team", "position2Team", "teamMatchLink", "showTeamMatchLink"]);
|
|
50
|
-
const { MediumMedium, MediumBook, XSmallBook } = SECONDARY_SIZES_ENUM;
|
|
51
|
-
const { SECONDARY } = CATEGORY_ENUM;
|
|
52
|
-
return (React.createElement(StyledCard, Object.assign({ className: "team-draw-card" }, props),
|
|
53
|
-
React.createElement(Box, { display: "flex", justifyContent: "space-between", mb: 0.5, gap: 1 },
|
|
54
|
-
isPosition1Winner && React.createElement(WinnerIndicatorIcon, { isBlack: true, sx: { position: "absolute", left: 0, top: 20 } }),
|
|
55
|
-
React.createElement(Box, { display: "flex", alignItems: "center", gap: 0.5 },
|
|
56
|
-
React.createElement(SquareAvatarWithName, { name: position1Team === null || position1Team === void 0 ? void 0 : position1Team.name, fontSize: isPosition1Winner ? MediumMedium : MediumBook, href: position1Team === null || position1Team === void 0 ? void 0 : position1Team.href, disabled: !(position1Team === null || position1Team === void 0 ? void 0 : position1Team.href) }),
|
|
57
|
-
!!(position1Team === null || position1Team === void 0 ? void 0 : position1Team.seed) && (React.createElement(Typography, { category: SECONDARY, size: XSmallBook, color: "var(--cool-grey-600)" }, `(${position1Team === null || position1Team === void 0 ? void 0 : position1Team.seed})`))),
|
|
58
|
-
React.createElement(Typography, { category: SECONDARY, size: isPosition1Winner ? MediumMedium : MediumBook }, isScorelessMatch ? "-" : position1Team === null || position1Team === void 0 ? void 0 : position1Team.points)),
|
|
59
|
-
React.createElement(Box, { display: "flex", justifyContent: "space-between", gap: 1 },
|
|
60
|
-
isPosition2Winner && React.createElement(WinnerIndicatorIcon, { isBlack: true, sx: { position: "absolute", left: 0, top: 50 } }),
|
|
61
|
-
React.createElement(Box, { display: "flex", alignItems: "center", gap: 0.5 },
|
|
62
|
-
React.createElement(SquareAvatarWithName, { name: position2Team === null || position2Team === void 0 ? void 0 : position2Team.name, fontSize: isPosition2Winner ? MediumMedium : MediumBook, href: position2Team === null || position2Team === void 0 ? void 0 : position2Team.href, disabled: !(position2Team === null || position2Team === void 0 ? void 0 : position2Team.href) }),
|
|
63
|
-
!!(position2Team === null || position2Team === void 0 ? void 0 : position2Team.seed) && (React.createElement(Typography, { category: SECONDARY, size: XSmallBook, color: "var(--cool-grey-600)" }, `(${position2Team === null || position2Team === void 0 ? void 0 : position2Team.seed})`))),
|
|
64
|
-
React.createElement(Typography, { category: SECONDARY, size: isPosition2Winner ? MediumMedium : MediumBook }, isScorelessMatch ? "-" : position2Team === null || position2Team === void 0 ? void 0 : position2Team.points)),
|
|
65
|
-
React.createElement(BottomGrid, null,
|
|
66
|
-
React.createElement(Box, null,
|
|
67
|
-
!!teamMatchLink && showTeamMatchLink && (React.createElement(Link, { href: teamMatchLink, sx: { textDecoration: 'none' } },
|
|
68
|
-
React.createElement(Typography, { category: SECONDARY, size: XSmallBook }, "Team Match"))),
|
|
69
|
-
React.createElement(Box, { display: "flex" },
|
|
70
|
-
dateLabel && (React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, dateLabel)),
|
|
71
|
-
timeLabel && (React.createElement(React.Fragment, null,
|
|
72
|
-
React.createElement(Typography, { category: SECONDARY, size: XSmallBook, pl: 0.5, pr: 0.5 }, "\u2022"),
|
|
73
|
-
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, timeLabel))),
|
|
74
|
-
matchInfo && (React.createElement(React.Fragment, null,
|
|
75
|
-
React.createElement(Typography, { category: SECONDARY, size: XSmallBook, pl: 0.5, pr: 0.5 }, "\u2022"),
|
|
76
|
-
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, matchInfo)))),
|
|
77
|
-
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, locationLabel)))));
|
|
78
|
-
}
|
|
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 Link from '@mui/material/Link';
|
|
16
|
+
import { teamDrawCardSideMargin, teamDrawCardBottomMargin } from "../../utils/constants";
|
|
17
|
+
import WinnerIndicatorIcon from "../../atoms/Icons/WinnerIndicatorIcon";
|
|
18
|
+
import Typography, { SECONDARY_SIZES_ENUM, CATEGORY_ENUM } from "../../atoms/Typography/Typography";
|
|
19
|
+
import SquareAvatarWithName from "../SquareAvatarWithName/SquareAvatarWithName";
|
|
20
|
+
const StyledCard = styled(Box)({
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
borderRadius: "4px",
|
|
24
|
+
padding: "16px 24px",
|
|
25
|
+
width: "100%",
|
|
26
|
+
height: "145px",
|
|
27
|
+
backgroundColor: "var(--white)",
|
|
28
|
+
border: "1px solid var(--cool-grey-600)",
|
|
29
|
+
marginLeft: `${teamDrawCardSideMargin}`,
|
|
30
|
+
marginRight: `${teamDrawCardSideMargin}`,
|
|
31
|
+
position: "relative",
|
|
32
|
+
marginBottom: `${teamDrawCardBottomMargin}`,
|
|
33
|
+
boxSizing: "border-box"
|
|
34
|
+
});
|
|
35
|
+
const BottomGrid = styled(Box)({
|
|
36
|
+
display: "flex",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
justifyContent: "space-between",
|
|
39
|
+
paddingTop: "8px"
|
|
40
|
+
});
|
|
41
|
+
const StyledTypography = styled(Typography)({
|
|
42
|
+
overflow: "hidden",
|
|
43
|
+
textOverflow: "ellipsis",
|
|
44
|
+
display: "-webkit-box",
|
|
45
|
+
WebkitBoxOrient: "vertical",
|
|
46
|
+
WebkitLineClamp: 1
|
|
47
|
+
});
|
|
48
|
+
export default function TeamDrawCard(_a) {
|
|
49
|
+
var { dateLabel, locationLabel, timeLabel, matchInfo, isPosition1Winner, isPosition2Winner, isScorelessMatch, position1Team, position2Team, teamMatchLink, showTeamMatchLink } = _a, props = __rest(_a, ["dateLabel", "locationLabel", "timeLabel", "matchInfo", "isPosition1Winner", "isPosition2Winner", "isScorelessMatch", "position1Team", "position2Team", "teamMatchLink", "showTeamMatchLink"]);
|
|
50
|
+
const { MediumMedium, MediumBook, XSmallBook } = SECONDARY_SIZES_ENUM;
|
|
51
|
+
const { SECONDARY } = CATEGORY_ENUM;
|
|
52
|
+
return (React.createElement(StyledCard, Object.assign({ className: "team-draw-card" }, props),
|
|
53
|
+
React.createElement(Box, { display: "flex", justifyContent: "space-between", mb: 0.5, gap: 1 },
|
|
54
|
+
isPosition1Winner && React.createElement(WinnerIndicatorIcon, { isBlack: true, sx: { position: "absolute", left: 0, top: 20 } }),
|
|
55
|
+
React.createElement(Box, { display: "flex", alignItems: "center", gap: 0.5 },
|
|
56
|
+
React.createElement(SquareAvatarWithName, { name: position1Team === null || position1Team === void 0 ? void 0 : position1Team.name, fontSize: isPosition1Winner ? MediumMedium : MediumBook, href: position1Team === null || position1Team === void 0 ? void 0 : position1Team.href, disabled: !(position1Team === null || position1Team === void 0 ? void 0 : position1Team.href) }),
|
|
57
|
+
!!(position1Team === null || position1Team === void 0 ? void 0 : position1Team.seed) && (React.createElement(Typography, { category: SECONDARY, size: XSmallBook, color: "var(--cool-grey-600)" }, `(${position1Team === null || position1Team === void 0 ? void 0 : position1Team.seed})`))),
|
|
58
|
+
React.createElement(Typography, { category: SECONDARY, size: isPosition1Winner ? MediumMedium : MediumBook }, isScorelessMatch ? "-" : position1Team === null || position1Team === void 0 ? void 0 : position1Team.points)),
|
|
59
|
+
React.createElement(Box, { display: "flex", justifyContent: "space-between", gap: 1 },
|
|
60
|
+
isPosition2Winner && React.createElement(WinnerIndicatorIcon, { isBlack: true, sx: { position: "absolute", left: 0, top: 50 } }),
|
|
61
|
+
React.createElement(Box, { display: "flex", alignItems: "center", gap: 0.5 },
|
|
62
|
+
React.createElement(SquareAvatarWithName, { name: position2Team === null || position2Team === void 0 ? void 0 : position2Team.name, fontSize: isPosition2Winner ? MediumMedium : MediumBook, href: position2Team === null || position2Team === void 0 ? void 0 : position2Team.href, disabled: !(position2Team === null || position2Team === void 0 ? void 0 : position2Team.href) }),
|
|
63
|
+
!!(position2Team === null || position2Team === void 0 ? void 0 : position2Team.seed) && (React.createElement(Typography, { category: SECONDARY, size: XSmallBook, color: "var(--cool-grey-600)" }, `(${position2Team === null || position2Team === void 0 ? void 0 : position2Team.seed})`))),
|
|
64
|
+
React.createElement(Typography, { category: SECONDARY, size: isPosition2Winner ? MediumMedium : MediumBook }, isScorelessMatch ? "-" : position2Team === null || position2Team === void 0 ? void 0 : position2Team.points)),
|
|
65
|
+
React.createElement(BottomGrid, null,
|
|
66
|
+
React.createElement(Box, null,
|
|
67
|
+
!!teamMatchLink && showTeamMatchLink && (React.createElement(Link, { href: teamMatchLink, sx: { textDecoration: 'none' } },
|
|
68
|
+
React.createElement(Typography, { category: SECONDARY, size: XSmallBook }, "Team Match"))),
|
|
69
|
+
React.createElement(Box, { display: "flex" },
|
|
70
|
+
dateLabel && (React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, dateLabel)),
|
|
71
|
+
timeLabel && (React.createElement(React.Fragment, null,
|
|
72
|
+
React.createElement(Typography, { category: SECONDARY, size: XSmallBook, pl: 0.5, pr: 0.5 }, "\u2022"),
|
|
73
|
+
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, timeLabel))),
|
|
74
|
+
matchInfo && (React.createElement(React.Fragment, null,
|
|
75
|
+
React.createElement(Typography, { category: SECONDARY, size: XSmallBook, pl: 0.5, pr: 0.5 }, "\u2022"),
|
|
76
|
+
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, matchInfo)))),
|
|
77
|
+
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, locationLabel)))));
|
|
78
|
+
}
|
|
79
79
|
//# sourceMappingURL=TeamDrawCard.js.map
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledCard: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import Box from '@mui/material/Box';
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
3
|
-
export const StyledCard = styled(Box)({
|
|
4
|
-
display: 'flex',
|
|
5
|
-
flexDirection: 'column',
|
|
6
|
-
borderRadius: '4px',
|
|
7
|
-
padding: '16px',
|
|
8
|
-
border: `1px solid var(--cool-grey-300)`,
|
|
9
|
-
'&:hover': {
|
|
10
|
-
cursor: 'pointer'
|
|
11
|
-
},
|
|
12
|
-
});
|
|
1
|
+
import Box from '@mui/material/Box';
|
|
2
|
+
import { styled } from '@mui/material/styles';
|
|
3
|
+
export const StyledCard = styled(Box)({
|
|
4
|
+
display: 'flex',
|
|
5
|
+
flexDirection: 'column',
|
|
6
|
+
borderRadius: '4px',
|
|
7
|
+
padding: '16px',
|
|
8
|
+
border: `1px solid var(--cool-grey-300)`,
|
|
9
|
+
'&:hover': {
|
|
10
|
+
cursor: 'pointer'
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
13
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
type SelectedOptions = {
|
|
2
|
-
optionOne: number;
|
|
3
|
-
optionTwo: number;
|
|
4
|
-
};
|
|
5
|
-
type Options = {
|
|
6
|
-
id: number;
|
|
7
|
-
label: string;
|
|
8
|
-
}[];
|
|
9
|
-
type OnChangeArgs = {
|
|
10
|
-
position: number;
|
|
11
|
-
id: string | null | undefined;
|
|
12
|
-
};
|
|
13
|
-
type PositionTeam = {
|
|
14
|
-
name: string;
|
|
15
|
-
points: number;
|
|
16
|
-
href?: string;
|
|
17
|
-
seed?: number;
|
|
18
|
-
};
|
|
19
|
-
export type DrawCardProps = {
|
|
20
|
-
options: Options;
|
|
21
|
-
selectedOptions: SelectedOptions;
|
|
22
|
-
dateLabel: string;
|
|
23
|
-
locationLabel: string;
|
|
24
|
-
isDisabled?: boolean;
|
|
25
|
-
isSelectActive?: boolean;
|
|
26
|
-
isPosition1Winner?: boolean;
|
|
27
|
-
isPosition2Winner?: boolean;
|
|
28
|
-
isScorelessMatch?: boolean;
|
|
29
|
-
isManaging?: boolean;
|
|
30
|
-
isFlexWidth?: boolean;
|
|
31
|
-
position1Team: PositionTeam;
|
|
32
|
-
position2Team: PositionTeam;
|
|
33
|
-
emptyLabel?: string;
|
|
34
|
-
onEditClick?: VoidFunction;
|
|
35
|
-
onViewClick?: VoidFunction;
|
|
36
|
-
onChange: ({ position, id }: OnChangeArgs) => void;
|
|
37
|
-
};
|
|
38
|
-
export type TeamDrawCardProps = {
|
|
39
|
-
dateLabel: string;
|
|
40
|
-
locationLabel: string;
|
|
41
|
-
timeLabel: string;
|
|
42
|
-
matchInfo?: string;
|
|
43
|
-
isPosition1Winner?: boolean;
|
|
44
|
-
isPosition2Winner?: boolean;
|
|
45
|
-
isScorelessMatch?: boolean;
|
|
46
|
-
position1Team: PositionTeam;
|
|
47
|
-
position2Team: PositionTeam;
|
|
48
|
-
teamMatchLink?: string;
|
|
49
|
-
showTeamMatchLink?: boolean;
|
|
50
|
-
};
|
|
51
|
-
export interface TeamCardProps {
|
|
52
|
-
title: string;
|
|
53
|
-
description: string;
|
|
54
|
-
}
|
|
55
|
-
export interface ContactCardProps {
|
|
56
|
-
name: string;
|
|
57
|
-
phone: string;
|
|
58
|
-
email: string;
|
|
59
|
-
onMessageClick?: VoidFunction;
|
|
60
|
-
}
|
|
61
|
-
export {};
|
|
1
|
+
type SelectedOptions = {
|
|
2
|
+
optionOne: number;
|
|
3
|
+
optionTwo: number;
|
|
4
|
+
};
|
|
5
|
+
type Options = {
|
|
6
|
+
id: number;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
type OnChangeArgs = {
|
|
10
|
+
position: number;
|
|
11
|
+
id: string | null | undefined;
|
|
12
|
+
};
|
|
13
|
+
type PositionTeam = {
|
|
14
|
+
name: string;
|
|
15
|
+
points: number;
|
|
16
|
+
href?: string;
|
|
17
|
+
seed?: number;
|
|
18
|
+
};
|
|
19
|
+
export type DrawCardProps = {
|
|
20
|
+
options: Options;
|
|
21
|
+
selectedOptions: SelectedOptions;
|
|
22
|
+
dateLabel: string;
|
|
23
|
+
locationLabel: string;
|
|
24
|
+
isDisabled?: boolean;
|
|
25
|
+
isSelectActive?: boolean;
|
|
26
|
+
isPosition1Winner?: boolean;
|
|
27
|
+
isPosition2Winner?: boolean;
|
|
28
|
+
isScorelessMatch?: boolean;
|
|
29
|
+
isManaging?: boolean;
|
|
30
|
+
isFlexWidth?: boolean;
|
|
31
|
+
position1Team: PositionTeam;
|
|
32
|
+
position2Team: PositionTeam;
|
|
33
|
+
emptyLabel?: string;
|
|
34
|
+
onEditClick?: VoidFunction;
|
|
35
|
+
onViewClick?: VoidFunction;
|
|
36
|
+
onChange: ({ position, id }: OnChangeArgs) => void;
|
|
37
|
+
};
|
|
38
|
+
export type TeamDrawCardProps = {
|
|
39
|
+
dateLabel: string;
|
|
40
|
+
locationLabel: string;
|
|
41
|
+
timeLabel: string;
|
|
42
|
+
matchInfo?: string;
|
|
43
|
+
isPosition1Winner?: boolean;
|
|
44
|
+
isPosition2Winner?: boolean;
|
|
45
|
+
isScorelessMatch?: boolean;
|
|
46
|
+
position1Team: PositionTeam;
|
|
47
|
+
position2Team: PositionTeam;
|
|
48
|
+
teamMatchLink?: string;
|
|
49
|
+
showTeamMatchLink?: boolean;
|
|
50
|
+
};
|
|
51
|
+
export interface TeamCardProps {
|
|
52
|
+
title: string;
|
|
53
|
+
description: string;
|
|
54
|
+
}
|
|
55
|
+
export interface ContactCardProps {
|
|
56
|
+
name: string;
|
|
57
|
+
phone: string;
|
|
58
|
+
email: string;
|
|
59
|
+
onMessageClick?: VoidFunction;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
// Card types
|
|
2
|
-
export {};
|
|
1
|
+
// Card types
|
|
2
|
+
export {};
|
|
3
3
|
//# sourceMappingURL=sharedTypes.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FooterSectionProps } from './sharedTypes';
|
|
3
|
-
declare function FooterSection({ items, title }: FooterSectionProps): React.JSX.Element;
|
|
4
|
-
export default FooterSection;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FooterSectionProps } from './sharedTypes';
|
|
3
|
+
declare function FooterSection({ items, title }: FooterSectionProps): React.JSX.Element;
|
|
4
|
+
export default FooterSection;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Box from '@mui/material/Box';
|
|
3
|
-
import Link from '@mui/material/Link';
|
|
4
|
-
import Typography from '../../atoms/Typography/Typography';
|
|
5
|
-
function FooterSection({ items, title }) {
|
|
6
|
-
return (React.createElement(Box, null,
|
|
7
|
-
React.createElement(Typography, { mb: 2, isCap: true, category: "secondary", size: "medium-medium", sx: { color: "var(--teal)" } }, title), items === null || items === void 0 ? void 0 :
|
|
8
|
-
items.map((item) => (React.createElement(Link, { key: item.label, sx: { "&:hover": { color: "var(--white)" } }, underline: "hover", color: "palette.common.white", href: item.href },
|
|
9
|
-
React.createElement(Typography, { mb: 1, category: "secondary", size: "small-book", sx: { color: "var(--white)", opacity: 0.75 } }, item.label))))));
|
|
10
|
-
}
|
|
11
|
-
export default FooterSection;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Box from '@mui/material/Box';
|
|
3
|
+
import Link from '@mui/material/Link';
|
|
4
|
+
import Typography from '../../atoms/Typography/Typography';
|
|
5
|
+
function FooterSection({ items, title }) {
|
|
6
|
+
return (React.createElement(Box, null,
|
|
7
|
+
React.createElement(Typography, { mb: 2, isCap: true, category: "secondary", size: "medium-medium", sx: { color: "var(--teal)" } }, title), items === null || items === void 0 ? void 0 :
|
|
8
|
+
items.map((item) => (React.createElement(Link, { key: item.label, sx: { "&:hover": { color: "var(--white)" } }, underline: "hover", color: "palette.common.white", href: item.href },
|
|
9
|
+
React.createElement(Typography, { mb: 1, category: "secondary", size: "small-book", sx: { color: "var(--white)", opacity: 0.75 } }, item.label))))));
|
|
10
|
+
}
|
|
11
|
+
export default FooterSection;
|
|
12
12
|
//# sourceMappingURL=FooterSection.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Section: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Section: any;
|