@universal-tennis/ui-shared 0.1.66 → 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.
- package/.eslintignore +1 -1
- package/.eslintrc.js +73 -73
- package/.storybook/preview.js +12 -12
- package/.storybook/variables.css +15 -15
- package/README.md +129 -129
- package/dist/App.d.ts +2 -2
- package/dist/App.js +12 -12
- package/dist/components.d.ts +4 -32
- package/dist/components.js +8 -37
- package/dist/components.js.map +1 -1
- 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/Button.d.ts +27 -0
- package/dist/stories/Button.js +51 -0
- package/dist/stories/Button.js.map +1 -0
- package/dist/stories/Button.stories.d.ts +15 -0
- package/dist/stories/Button.stories.js +34 -0
- package/dist/stories/Button.stories.js.map +1 -0
- package/dist/stories/Header.d.ts +19 -0
- package/dist/stories/Header.js +31 -0
- package/dist/stories/Header.js.map +1 -0
- package/dist/stories/Header.stories.d.ts +11 -0
- package/dist/stories/Header.stories.js +20 -0
- package/dist/stories/Header.stories.js.map +1 -0
- package/dist/stories/Page.d.ts +1 -0
- package/dist/stories/Page.js +38 -0
- package/dist/stories/Page.js.map +1 -0
- package/dist/stories/Page.stories.d.ts +11 -0
- package/dist/stories/Page.stories.js +30 -0
- package/dist/stories/Page.stories.js.map +1 -0
- package/dist/stories/assets/comments.svg +1 -0
- package/dist/stories/assets/css/variables.css +3 -6
- package/dist/stories/assets/direction.svg +1 -0
- package/dist/stories/assets/icon-chat-blue.svg +10 -10
- package/dist/stories/atoms/Button/Button.d.ts +9 -10
- package/dist/stories/atoms/Button/Button.js +79 -95
- package/dist/stories/atoms/Button/Button.js.map +1 -1
- package/dist/stories/atoms/Button/Button.stories.d.ts +16 -17
- package/dist/stories/atoms/Button/Button.stories.js +36 -45
- package/dist/stories/atoms/Button/Button.stories.js.map +1 -1
- package/dist/stories/atoms/Button/index.d.ts +1 -0
- package/dist/stories/atoms/Button/index.js +2 -0
- package/dist/stories/atoms/Button/index.js.map +1 -0
- package/dist/stories/atoms/Button.d.ts +7 -0
- package/dist/stories/atoms/Button.js +20 -0
- package/dist/stories/atoms/Button.js.map +1 -0
- package/dist/stories/atoms/Button.stories.d.ts +13 -0
- package/dist/stories/atoms/Button.stories.js +22 -0
- package/dist/stories/atoms/Button.stories.js.map +1 -0
- package/dist/stories/atoms/Typography/Typography.d.ts +10 -49
- package/dist/stories/atoms/Typography/Typography.js +99 -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/Typography/index.d.ts +1 -0
- package/dist/stories/atoms/Typography/index.js +2 -0
- package/dist/stories/atoms/Typography/index.js.map +1 -0
- package/dist/stories/molecules/Cards/Cards.stories.d.ts +6 -7
- package/dist/stories/molecules/Cards/Cards.stories.js +26 -64
- package/dist/stories/molecules/Cards/Cards.stories.js.map +1 -1
- package/dist/stories/molecules/Cards/ContactCard.d.ts +9 -3
- package/dist/stories/molecules/Cards/ContactCard.js +38 -38
- package/dist/stories/molecules/Cards/ContactCard.js.map +1 -1
- package/dist/stories/molecules/Cards/TeamCard.d.ts +7 -3
- package/dist/stories/molecules/Cards/TeamCard.js +20 -20
- package/dist/stories/molecules/Cards/TeamCard.js.map +1 -1
- package/dist/stories/molecules/Cards/shared.d.ts +9 -4
- package/dist/stories/molecules/Cards/shared.js +12 -12
- package/infrastructure/azure-pipelines.yml +112 -107
- package/package.json +94 -94
- package/src/App.js +25 -25
- package/src/components.jsx +41 -41
- package/src/custom.d.ts +13 -13
- package/src/index.js +17 -17
- package/src/items.jsx +1 -1
- package/src/stories/assets/css/variables.css +14 -14
- package/src/stories/assets/icon-chat-blue.svg +10 -10
- package/src/stories/assets/icons/icon-add.svg +7 -7
- package/src/stories/assets/icons/icon-availability-maybe.svg +3 -3
- package/src/stories/assets/icons/icon-availability-no.svg +3 -3
- package/src/stories/assets/icons/icon-availability-not-set.svg +8 -8
- package/src/stories/assets/icons/icon-availability-yes.svg +3 -3
- package/src/stories/assets/icons/icon-calendar.svg +4 -4
- package/src/stories/assets/icons/icon-clock.svg +7 -7
- package/src/stories/assets/icons/icon-close.svg +3 -3
- package/src/stories/assets/icons/icon-delete.svg +9 -9
- package/src/stories/assets/icons/icon-edit.svg +3 -3
- package/src/stories/assets/icons/icon-location.svg +6 -6
- package/src/stories/assets/icons/icon-message.svg +3 -3
- package/src/stories/assets/icons/icon-session.svg +3 -3
- package/src/stories/assets/icons/icon-swap.svg +3 -3
- package/src/stories/assets/icons/icon-visibility-off.svg +7 -7
- package/src/stories/assets/icons/icon-visibility.svg +6 -6
- package/src/stories/atoms/Button/Button.stories.tsx +63 -63
- package/src/stories/atoms/Button/Button.tsx +145 -145
- package/src/stories/atoms/Icons/AddIcon.tsx +13 -13
- package/src/stories/atoms/Icons/AvailabilityMaybeIcon.tsx +11 -11
- package/src/stories/atoms/Icons/AvailabilityNoIcon.tsx +11 -11
- package/src/stories/atoms/Icons/AvailabilityNotSetIcon.tsx +12 -12
- package/src/stories/atoms/Icons/AvailabilityYesIcon.tsx +11 -11
- package/src/stories/atoms/Icons/CalendarIcon.tsx +11 -11
- package/src/stories/atoms/Icons/ClockIcon.tsx +14 -14
- package/src/stories/atoms/Icons/CloseIcon.tsx +11 -11
- package/src/stories/atoms/Icons/DeleteIcon.tsx +15 -15
- package/src/stories/atoms/Icons/EditIcon.tsx +11 -11
- package/src/stories/atoms/Icons/Icons.stories.tsx +218 -218
- package/src/stories/atoms/Icons/LeftChevronIcon.tsx +13 -13
- package/src/stories/atoms/Icons/LocationIcon.tsx +12 -12
- package/src/stories/atoms/Icons/MessageIcon.tsx +12 -12
- package/src/stories/atoms/Icons/RightChevronIcon.tsx +11 -11
- package/src/stories/atoms/Icons/SessionIcon.tsx +16 -16
- package/src/stories/atoms/Icons/SwapIcon.tsx +11 -11
- package/src/stories/atoms/Icons/VisibilityIcon.tsx +12 -12
- package/src/stories/atoms/Icons/VisibilityOffIcon.tsx +13 -13
- package/src/stories/atoms/Icons/WinnerIndicatorIcon.tsx +39 -39
- package/src/stories/atoms/Icons/sharedTypes.tsx +10 -10
- package/src/stories/atoms/Map/Map.stories.tsx +43 -43
- package/src/stories/atoms/Map/Map.tsx +25 -25
- package/src/stories/atoms/Typography/Typography.tsx +185 -185
- package/src/stories/molecules/AvatarWithName/AvatarWithName.stories.tsx +86 -86
- package/src/stories/molecules/AvatarWithName/AvatarWithName.tsx +68 -68
- package/src/stories/molecules/Cards/Cards.stories.tsx +76 -76
- package/src/stories/molecules/Cards/ContactCard.tsx +45 -45
- package/src/stories/molecules/Cards/DrawCard.tsx +211 -211
- package/src/stories/molecules/Cards/Modals.stories.tsx +137 -137
- package/src/stories/molecules/Cards/TeamCard.tsx +14 -14
- package/src/stories/molecules/Cards/TeamDrawCard.tsx +135 -134
- package/src/stories/molecules/Cards/sharedTypes.ts +67 -67
- package/src/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.tsx +77 -77
- package/src/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.tsx +84 -84
- package/src/stories/organisms/Modals/FullPageModal.tsx +93 -93
- package/src/stories/organisms/Modals/Modals.stories.tsx +138 -138
- package/src/stories/organisms/Modals/sharedTypes.ts +15 -15
- package/src/stories/organisms/Tables/DrawCardTable.tsx +92 -92
- package/src/stories/organisms/Tables/SortableTable.tsx +112 -112
- package/src/stories/organisms/Tables/Tables.stories.tsx +104 -104
- package/src/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.tsx +102 -0
- package/src/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.tsx +67 -0
- package/src/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.tsx +24 -0
- package/src/stories/organisms/Tables/mockData.tsx +129 -129
- package/src/stories/organisms/Tables/sharedTypes.ts +17 -9
- package/src/stories/utils/constants.ts +3 -3
- package/src/stories/utils/useScreenSize.ts +28 -28
- package/src/types/tableDataTypes.ts +42 -42
- package/tsconfig.json +23 -23
- package/dist/stories/atoms/Icons/AddIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/AddIcon.js +0 -9
- package/dist/stories/atoms/Icons/AddIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js +0 -7
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.js +0 -7
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.js +0 -8
- package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.js +0 -7
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/CalendarIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/CalendarIcon.js +0 -7
- package/dist/stories/atoms/Icons/CalendarIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/ClockIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/ClockIcon.js +0 -9
- package/dist/stories/atoms/Icons/ClockIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/CloseIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/CloseIcon.js +0 -7
- package/dist/stories/atoms/Icons/CloseIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/DeleteIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/DeleteIcon.js +0 -11
- package/dist/stories/atoms/Icons/DeleteIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/EditIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/EditIcon.js +0 -7
- package/dist/stories/atoms/Icons/EditIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/Icons.stories.d.ts +0 -23
- package/dist/stories/atoms/Icons/Icons.stories.js +0 -178
- package/dist/stories/atoms/Icons/Icons.stories.js.map +0 -1
- package/dist/stories/atoms/Icons/LeftChevronIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/LeftChevronIcon.js +0 -7
- package/dist/stories/atoms/Icons/LeftChevronIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/LocationIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/LocationIcon.js +0 -8
- package/dist/stories/atoms/Icons/LocationIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/MessageIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/MessageIcon.js +0 -7
- package/dist/stories/atoms/Icons/MessageIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/RightChevronIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/RightChevronIcon.js +0 -7
- package/dist/stories/atoms/Icons/RightChevronIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/SessionIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/SessionIcon.js +0 -7
- package/dist/stories/atoms/Icons/SessionIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/SwapIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/SwapIcon.js +0 -7
- package/dist/stories/atoms/Icons/SwapIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/VisibilityIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/VisibilityIcon.js +0 -8
- package/dist/stories/atoms/Icons/VisibilityIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/VisibilityOffIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/VisibilityOffIcon.js +0 -9
- package/dist/stories/atoms/Icons/VisibilityOffIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/WinnerIndicatorIcon.d.ts +0 -3
- package/dist/stories/atoms/Icons/WinnerIndicatorIcon.js +0 -32
- package/dist/stories/atoms/Icons/WinnerIndicatorIcon.js.map +0 -1
- package/dist/stories/atoms/Icons/sharedTypes.d.ts +0 -9
- package/dist/stories/atoms/Icons/sharedTypes.js +0 -2
- package/dist/stories/atoms/Icons/sharedTypes.js.map +0 -1
- package/dist/stories/atoms/Map/Map.d.ts +0 -7
- package/dist/stories/atoms/Map/Map.js +0 -9
- package/dist/stories/atoms/Map/Map.js.map +0 -1
- package/dist/stories/atoms/Map/Map.stories.d.ts +0 -9
- package/dist/stories/atoms/Map/Map.stories.js +0 -36
- package/dist/stories/atoms/Map/Map.stories.js.map +0 -1
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.d.ts +0 -27
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.js +0 -21
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.js.map +0 -1
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.d.ts +0 -15
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.js +0 -73
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.js.map +0 -1
- package/dist/stories/molecules/Cards/DrawCard.d.ts +0 -3
- package/dist/stories/molecules/Cards/DrawCard.js +0 -117
- package/dist/stories/molecules/Cards/DrawCard.js.map +0 -1
- package/dist/stories/molecules/Cards/Modals.stories.d.ts +0 -5
- package/dist/stories/molecules/Cards/Modals.stories.js +0 -73
- package/dist/stories/molecules/Cards/Modals.stories.js.map +0 -1
- package/dist/stories/molecules/Cards/TeamDrawCard.d.ts +0 -3
- package/dist/stories/molecules/Cards/TeamDrawCard.js +0 -75
- package/dist/stories/molecules/Cards/TeamDrawCard.js.map +0 -1
- package/dist/stories/molecules/Cards/sharedTypes.d.ts +0 -59
- package/dist/stories/molecules/Cards/sharedTypes.js +0 -3
- package/dist/stories/molecules/Cards/sharedTypes.js.map +0 -1
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.d.ts +0 -27
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.js +0 -25
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.js.map +0 -1
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.d.ts +0 -13
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.js +0 -66
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.js.map +0 -1
- package/dist/stories/organisms/Modals/FullPageModal.d.ts +0 -4
- package/dist/stories/organisms/Modals/FullPageModal.js +0 -60
- package/dist/stories/organisms/Modals/FullPageModal.js.map +0 -1
- package/dist/stories/organisms/Modals/Modals.stories.d.ts +0 -5
- package/dist/stories/organisms/Modals/Modals.stories.js +0 -74
- package/dist/stories/organisms/Modals/Modals.stories.js.map +0 -1
- package/dist/stories/organisms/Modals/sharedTypes.d.ts +0 -14
- package/dist/stories/organisms/Modals/sharedTypes.js +0 -2
- package/dist/stories/organisms/Modals/sharedTypes.js.map +0 -1
- package/dist/stories/organisms/Tables/DrawCardTable.d.ts +0 -3
- package/dist/stories/organisms/Tables/DrawCardTable.js +0 -59
- package/dist/stories/organisms/Tables/DrawCardTable.js.map +0 -1
- package/dist/stories/organisms/Tables/SortableTable.d.ts +0 -23
- package/dist/stories/organisms/Tables/SortableTable.js +0 -34
- package/dist/stories/organisms/Tables/SortableTable.js.map +0 -1
- package/dist/stories/organisms/Tables/Tables.stories.d.ts +0 -8
- package/dist/stories/organisms/Tables/Tables.stories.js +0 -91
- package/dist/stories/organisms/Tables/Tables.stories.js.map +0 -1
- package/dist/stories/organisms/Tables/TeamDrawCardTable.d.ts +0 -3
- package/dist/stories/organisms/Tables/TeamDrawCardTable.js +0 -96
- package/dist/stories/organisms/Tables/TeamDrawCardTable.js.map +0 -1
- package/dist/stories/organisms/Tables/mockData.d.ts +0 -69
- package/dist/stories/organisms/Tables/mockData.js +0 -98
- package/dist/stories/organisms/Tables/mockData.js.map +0 -1
- package/dist/stories/organisms/Tables/sharedTypes.d.ts +0 -8
- package/dist/stories/organisms/Tables/sharedTypes.js +0 -2
- package/dist/stories/organisms/Tables/sharedTypes.js.map +0 -1
- package/dist/stories/utils/constants.d.ts +0 -3
- package/dist/stories/utils/constants.js +0 -4
- package/dist/stories/utils/constants.js.map +0 -1
- package/dist/stories/utils/useScreenSize.d.ts +0 -4
- package/dist/stories/utils/useScreenSize.js +0 -28
- package/dist/stories/utils/useScreenSize.js.map +0 -1
- package/dist/types/tableDataTypes.d.ts +0 -38
- package/dist/types/tableDataTypes.js +0 -2
- package/dist/types/tableDataTypes.js.map +0 -1
- package/src/stories/organisms/Tables/TeamDrawCardTable.tsx +0 -156
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Default: any;
|
|
6
|
-
export declare const WithImage: any;
|
|
7
|
-
export declare const WithCustomTypography: any;
|
|
8
|
-
export declare const WithCustomAvatarSize: any;
|
|
9
|
-
export declare const WithAvatarOnly: any;
|
|
10
|
-
export declare const WithNoImage: any;
|
|
11
|
-
export declare const WithBrokenImage: any;
|
|
12
|
-
export declare const WithLink: any;
|
|
13
|
-
export declare const WithLowercaseName: any;
|
|
14
|
-
export declare const WithLongName: any;
|
|
15
|
-
export declare const WithCustomMaxCharacterLimit: any;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import AvatarWithName from './AvatarWithName';
|
|
3
|
-
// Default
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Molecules/AvatarWithName',
|
|
6
|
-
};
|
|
7
|
-
// Templates
|
|
8
|
-
function AvatarWithNameTemplate(args) {
|
|
9
|
-
return React.createElement(AvatarWithName, Object.assign({}, args));
|
|
10
|
-
}
|
|
11
|
-
// Stories
|
|
12
|
-
export const Default = AvatarWithNameTemplate.bind({});
|
|
13
|
-
Default.args = {
|
|
14
|
-
playerName: "Julia Gulia",
|
|
15
|
-
};
|
|
16
|
-
export const WithImage = AvatarWithNameTemplate.bind({});
|
|
17
|
-
WithImage.args = {
|
|
18
|
-
imgSrc: 'https://ci-cdn.universaltennis.com/v1/player/329903/images/profile/7839bf68-b56f-486a-88ab-a52debbac709.png',
|
|
19
|
-
playerName: "Julia Gulia",
|
|
20
|
-
};
|
|
21
|
-
export const WithCustomTypography = AvatarWithNameTemplate.bind({});
|
|
22
|
-
WithCustomTypography.args = {
|
|
23
|
-
playerName: "Julia Gulia",
|
|
24
|
-
avatarFontCategory: "secondary",
|
|
25
|
-
avatarFontSize: "large-medium",
|
|
26
|
-
fontCategory: "primary",
|
|
27
|
-
fontSize: "medium-book"
|
|
28
|
-
};
|
|
29
|
-
export const WithCustomAvatarSize = AvatarWithNameTemplate.bind({});
|
|
30
|
-
WithCustomAvatarSize.args = {
|
|
31
|
-
playerName: "Julia Gulia",
|
|
32
|
-
avatarWidth: '26px',
|
|
33
|
-
avatarHeight: '26px',
|
|
34
|
-
avatarFontCategory: "primary",
|
|
35
|
-
avatarFontSize: "small-book",
|
|
36
|
-
};
|
|
37
|
-
export const WithAvatarOnly = AvatarWithNameTemplate.bind({});
|
|
38
|
-
WithAvatarOnly.args = {
|
|
39
|
-
avatarOnly: true,
|
|
40
|
-
playerName: "Julia Gulia",
|
|
41
|
-
};
|
|
42
|
-
export const WithNoImage = AvatarWithNameTemplate.bind({});
|
|
43
|
-
WithNoImage.args = {
|
|
44
|
-
imgSrc: '',
|
|
45
|
-
playerName: "Julia Gulia",
|
|
46
|
-
};
|
|
47
|
-
export const WithBrokenImage = AvatarWithNameTemplate.bind({});
|
|
48
|
-
WithBrokenImage.args = {
|
|
49
|
-
imgSrc: 'https://ci-cdn.universaltennis.com/v1/player/329903/images/profile/7839bf68-b56f-486a-88ab-a52debbac709.pn',
|
|
50
|
-
playerName: "Julia Gulia",
|
|
51
|
-
};
|
|
52
|
-
export const WithLink = AvatarWithNameTemplate.bind({});
|
|
53
|
-
WithLink.args = {
|
|
54
|
-
imgSrc: 'https://ci-cdn.universaltennis.com/v1/player/329903/images/profile/7839bf68-b56f-486a-88ab-a52debbac709.png',
|
|
55
|
-
href: "https://www.reddit.com",
|
|
56
|
-
playerName: "Julia Gulia",
|
|
57
|
-
};
|
|
58
|
-
export const WithLowercaseName = AvatarWithNameTemplate.bind({});
|
|
59
|
-
WithLowercaseName.args = {
|
|
60
|
-
playerName: "julia gulia",
|
|
61
|
-
};
|
|
62
|
-
export const WithLongName = AvatarWithNameTemplate.bind({});
|
|
63
|
-
WithLongName.args = {
|
|
64
|
-
imgSrc: 'https://ci-cdn.universaltennis.com/v1/player/329903/images/profile/7839bf68-b56f-486a-88ab-a52debbac709.png',
|
|
65
|
-
playerName: "Julia Guliauliauliauliauliauliauliauliauliaulia",
|
|
66
|
-
};
|
|
67
|
-
export const WithCustomMaxCharacterLimit = AvatarWithNameTemplate.bind({});
|
|
68
|
-
WithCustomMaxCharacterLimit.args = {
|
|
69
|
-
imgSrc: 'https://ci-cdn.universaltennis.com/v1/player/329903/images/profile/7839bf68-b56f-486a-88ab-a52debbac709.png',
|
|
70
|
-
playerName: "Julia Guliauliauliauliauliauliauliauliauliaulia",
|
|
71
|
-
maxCharacterLimit: 7
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=AvatarWithName.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarWithName.stories.js","sourceRoot":"","sources":["../../../../src/stories/molecules/AvatarWithName/AvatarWithName.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,cAAuC,MAAM,kBAAkB,CAAC;AAEvE,UAAU;AACV,eAAe;IACb,KAAK,EAAE,0BAA0B;CAClC,CAAC;AAEF,YAAY;AACZ,SAAS,sBAAsB,CAAC,IAAyB;IACvD,OAAO,oBAAC,cAAc,oBAAK,IAAI,EAAI,CAAC;AACtC,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B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/D,eAAe,CAAC,IAAI,GAAG;IACrB,MAAM,EAAE,4GAA4G;IACpH,UAAU,EAAE,aAAa;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxD,QAAQ,CAAC,IAAI,GAAG;IACd,MAAM,EAAE,6GAA6G;IACrH,IAAI,EAAE,wBAAwB;IAC9B,UAAU,EAAE,aAAa;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjE,iBAAiB,CAAC,IAAI,GAAG;IACvB,UAAU,EAAE,aAAa;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5D,YAAY,CAAC,IAAI,GAAG;IAClB,MAAM,EAAE,6GAA6G;IACrH,UAAU,EAAE,iDAAiD;CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3E,2BAA2B,CAAC,IAAI,GAAG;IACjC,MAAM,EAAE,6GAA6G;IACrH,UAAU,EAAE,iDAAiD;IAC7D,iBAAiB,EAAE,CAAC;CACrB,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DrawCardProps } from "./sharedTypes";
|
|
3
|
-
export default function DrawCard({ options, onChange, onEditClick, onViewClick, selectedOptions, dateLabel, locationLabel, emptyLabel, isDisabled, isSelectActive, isPosition1Winner, isPosition2Winner, isManaging, isScorelessMatch, position1Team, position2Team, isFlexWidth, ...props }: DrawCardProps): JSX.Element;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import Box from '@mui/material/Box';
|
|
14
|
-
import { styled } from '@mui/material/styles';
|
|
15
|
-
import Select from '@mui/material/Select';
|
|
16
|
-
import MenuItem from '@mui/material/MenuItem';
|
|
17
|
-
import { Divider, FormControl, InputLabel } from '@mui/material';
|
|
18
|
-
import Button from '../../atoms/Button/Button';
|
|
19
|
-
import Typography, { SECONDARY_SIZES_ENUM, CATEGORY_ENUM } from '../../atoms/Typography/Typography';
|
|
20
|
-
const BYE_ROUND = "Bye";
|
|
21
|
-
const StyledCard = styled(Box, {
|
|
22
|
-
shouldForwardProp: (prop) => prop !== 'isFlexWidth' && prop !== 'isSelectActive'
|
|
23
|
-
})(({ isFlexWidth, isSelectActive }) => ({
|
|
24
|
-
display: 'flex',
|
|
25
|
-
flexDirection: 'column',
|
|
26
|
-
borderRadius: '4px',
|
|
27
|
-
padding: '16px 24px',
|
|
28
|
-
width: '100%',
|
|
29
|
-
minWidth: isFlexWidth ? 'auto' : '350px',
|
|
30
|
-
height: isSelectActive ? '235px' : '200px',
|
|
31
|
-
backgroundColor: 'var(--cool-grey-150)',
|
|
32
|
-
'&:hover': {
|
|
33
|
-
cursor: 'pointer'
|
|
34
|
-
},
|
|
35
|
-
}));
|
|
36
|
-
const BottomGrid = styled(Box)({
|
|
37
|
-
display: 'flex',
|
|
38
|
-
alignItems: 'center',
|
|
39
|
-
justifyContent: 'space-between',
|
|
40
|
-
paddingTop: '32px',
|
|
41
|
-
});
|
|
42
|
-
const positions = {
|
|
43
|
-
ONE: 1,
|
|
44
|
-
TWO: 2,
|
|
45
|
-
};
|
|
46
|
-
export default function DrawCard(_a) {
|
|
47
|
-
var { options, onChange, onEditClick, onViewClick, selectedOptions, dateLabel, locationLabel, emptyLabel, isDisabled, isSelectActive, isPosition1Winner, isPosition2Winner, isManaging, isScorelessMatch, position1Team, position2Team, isFlexWidth } = _a, props = __rest(_a, ["options", "onChange", "onEditClick", "onViewClick", "selectedOptions", "dateLabel", "locationLabel", "emptyLabel", "isDisabled", "isSelectActive", "isPosition1Winner", "isPosition2Winner", "isManaging", "isScorelessMatch", "position1Team", "position2Team", "isFlexWidth"]);
|
|
48
|
-
const { optionOne, optionTwo } = selectedOptions || {};
|
|
49
|
-
const handleOnSelectionChange = (event, position) => {
|
|
50
|
-
const id = event.target.value;
|
|
51
|
-
if (onChange) {
|
|
52
|
-
onChange({ position, id });
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
return (React.createElement(StyledCard, Object.assign({ isFlexWidth: isFlexWidth, isSelectActive: isSelectActive }, props),
|
|
56
|
-
isSelectActive ? (React.createElement(React.Fragment, null,
|
|
57
|
-
React.createElement(FormControl, { style: { display: 'flex', flexDirection: 'row', alignItems: 'center' } },
|
|
58
|
-
React.createElement(InputLabel, { id: "draw-card-select-top" }, emptyLabel),
|
|
59
|
-
React.createElement(Select, { sx: { width: '100%' }, labelId: "draw-card-select-top", id: "draw-card-select-top", label: emptyLabel, value: optionOne, disabled: isDisabled, onChange: (e) => handleOnSelectionChange(e, positions.ONE) },
|
|
60
|
-
React.createElement(MenuItem, { value: "" }, "None"),
|
|
61
|
-
options.map((option) => React.createElement(MenuItem, { key: option.id, value: option.id }, option.label)),
|
|
62
|
-
React.createElement(MenuItem, { sx: { borderTop: '1px solid var(--cool-grey-500)' }, value: BYE_ROUND }, "Set bye"))),
|
|
63
|
-
React.createElement(Box, { pt: 2 }),
|
|
64
|
-
React.createElement(FormControl, { style: { display: 'flex', flexDirection: 'row', alignItems: 'center' } },
|
|
65
|
-
React.createElement(InputLabel, { id: "draw-card-select-bot" }, emptyLabel),
|
|
66
|
-
React.createElement(Select, { sx: { width: '100%' }, labelId: "draw-card-select-bot", id: "draw-card-select-bot", label: emptyLabel, value: optionTwo, disabled: isDisabled, onChange: (e) => handleOnSelectionChange(e, positions.TWO) },
|
|
67
|
-
React.createElement(MenuItem, { value: "" }, "None"),
|
|
68
|
-
options.map((option) => React.createElement(MenuItem, { key: option.id, value: option.id }, option.label)),
|
|
69
|
-
React.createElement(MenuItem, { sx: { borderTop: '1px solid var(--cool-grey-500)' }, value: BYE_ROUND }, "Set bye"))))) : (React.createElement(React.Fragment, null,
|
|
70
|
-
React.createElement(Box, { display: "flex", justifyContent: "space-between" },
|
|
71
|
-
React.createElement(Typography, { style: {
|
|
72
|
-
overflow: 'hidden',
|
|
73
|
-
textOverflow: 'ellipsis',
|
|
74
|
-
paddingRight: '4px',
|
|
75
|
-
whiteSpace: 'nowrap'
|
|
76
|
-
}, category: "secondary", size: isPosition1Winner ? 'medium-medium' : "medium-book" }, position1Team === null || position1Team === void 0 ? void 0 : position1Team.name),
|
|
77
|
-
React.createElement(Typography, { category: "secondary", size: isPosition1Winner ? 'medium-medium' : "medium-book" }, isScorelessMatch ? '-' : position1Team === null || position1Team === void 0 ? void 0 : position1Team.points)),
|
|
78
|
-
React.createElement(Divider, { sx: { my: 2 } }),
|
|
79
|
-
React.createElement(Box, { display: "flex", justifyContent: "space-between" },
|
|
80
|
-
React.createElement(Typography, { style: {
|
|
81
|
-
overflow: 'hidden',
|
|
82
|
-
textOverflow: 'ellipsis',
|
|
83
|
-
paddingRight: '4px',
|
|
84
|
-
whiteSpace: 'nowrap'
|
|
85
|
-
}, category: "secondary", size: isPosition2Winner ? 'medium-medium' : "medium-book" }, position2Team === null || position2Team === void 0 ? void 0 : position2Team.name),
|
|
86
|
-
React.createElement(Typography, { category: "secondary", size: isPosition2Winner ? 'medium-medium' : "medium-book" }, isScorelessMatch ? '-' : position2Team === null || position2Team === void 0 ? void 0 : position2Team.points)))),
|
|
87
|
-
React.createElement(BottomGrid, null,
|
|
88
|
-
React.createElement(Box, null,
|
|
89
|
-
React.createElement(Typography, { style: {
|
|
90
|
-
overflow: 'hidden',
|
|
91
|
-
textOverflow: 'ellipsis',
|
|
92
|
-
display: '-webkit-box',
|
|
93
|
-
WebkitBoxOrient: 'vertical',
|
|
94
|
-
WebkitLineClamp: 1,
|
|
95
|
-
}, category: CATEGORY_ENUM.SECONDARY, size: SECONDARY_SIZES_ENUM.SmallBook }, dateLabel),
|
|
96
|
-
React.createElement(Typography, { style: {
|
|
97
|
-
overflow: 'hidden',
|
|
98
|
-
textOverflow: 'ellipsis',
|
|
99
|
-
display: '-webkit-box',
|
|
100
|
-
WebkitBoxOrient: 'vertical',
|
|
101
|
-
WebkitLineClamp: 1,
|
|
102
|
-
}, category: CATEGORY_ENUM.SECONDARY, size: SECONDARY_SIZES_ENUM.SmallBook }, locationLabel)),
|
|
103
|
-
React.createElement(Box, { sx: { display: 'flex', justifyContent: 'end', width: '30%' } },
|
|
104
|
-
!!onEditClick && isManaging && (React.createElement(Button, { style: {
|
|
105
|
-
display: 'flex',
|
|
106
|
-
justifyContent: 'end'
|
|
107
|
-
}, onClick: onEditClick, category: "link" },
|
|
108
|
-
React.createElement(Typography, { category: CATEGORY_ENUM.SECONDARY, size: SECONDARY_SIZES_ENUM.XSmallMediumCap }, "Edit"))),
|
|
109
|
-
!!onEditClick && !!onViewClick && isManaging && (React.createElement(Typography, { sx: { color: 'var(--blue-grey-500)', padding: '0 8px' }, category: CATEGORY_ENUM.SECONDARY, size: SECONDARY_SIZES_ENUM.XSmallMediumCap }, "|")),
|
|
110
|
-
!!onViewClick && (React.createElement(Button, { onClick: onViewClick, category: "link", style: {
|
|
111
|
-
display: 'flex',
|
|
112
|
-
justifyContent: 'end',
|
|
113
|
-
minWidth: 'auto'
|
|
114
|
-
} },
|
|
115
|
-
React.createElement(Typography, { category: CATEGORY_ENUM.SECONDARY, size: SECONDARY_SIZES_ENUM.XSmallMediumCap }, "View")))))));
|
|
116
|
-
}
|
|
117
|
-
//# sourceMappingURL=DrawCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DrawCard.js","sourceRoot":"","sources":["../../../../src/stories/molecules/Cards/DrawCard.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,MAA6B,MAAM,sBAAsB,CAAC;AACjE,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,UAAU,EAAE,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGpG,MAAM,SAAS,GAAG,KAAK,CAAC;AAMxB,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,EAAE;IAC7B,iBAAiB,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,KAAK,aAAa,IAAI,IAAI,KAAK,gBAAgB;CACzF,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,cAAc,EAAa,EAAE,EAAE,CAAC,CAAC;IAClD,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;IACxC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;IAC1C,eAAe,EAAE,sBAAs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D,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAC,MAAM;oBAEf,oBAAC,UAAU,IAAC,QAAQ,EAAE,aAAa,CAAC,SAAS,EAAE,IAAI,EAAE,oBAAoB,CAAC,eAAe,WAE5E,CACR,CACR;gBACA,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,IAAI,UAAU,IAAI,CACjD,oBAAC,UAAU,IACP,EAAE,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,OAAO,EAAE,OAAO,EAAE,EACvD,QAAQ,EAAE,aAAa,CAAC,SAAS,EACjC,IAAI,EAAE,oBAAoB,CAAC,eAAe,QAGjC,CACZ;gBACA,CAAC,CAAC,WAAW,IAAI,CAClB,oBAAC,MAAM,IACH,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAC,MAAM,EACf,KAAK,EAAE;wBACL,OAAO,EAAE,MAAM;wBACf,cAAc,EAAE,KAAK;wBACrB,QAAQ,EAAE,MAAM;qBACjB;oBAED,oBAAC,UAAU,IAAC,QAAQ,EAAE,aAAa,CAAC,SAAS,EAAE,IAAI,EAAE,oBAAoB,CAAC,eAAe,WAE5E,CACR,CACR,CACC,CACG,CACJ,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import InputLabel from '@mui/material/InputLabel';
|
|
3
|
-
import FormControl from '@mui/material/FormControl';
|
|
4
|
-
import Checkbox from '@mui/material/Checkbox';
|
|
5
|
-
import Select from '@mui/material/Select';
|
|
6
|
-
import MenuItem from '@mui/material/MenuItem';
|
|
7
|
-
import Typography from 'stories/atoms/Typography/Typography';
|
|
8
|
-
import Button from 'stories/atoms/Button/Button';
|
|
9
|
-
import Box from '@mui/material/Box';
|
|
10
|
-
import Grid from '@mui/material/Grid';
|
|
11
|
-
import Paper from '@mui/material/Paper';
|
|
12
|
-
import Pagination from '@mui/material/Pagination';
|
|
13
|
-
import FullPageModal from '../../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 && 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
|
-
//# sourceMappingURL=Modals.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modals.stories.js","sourceRoot":"","sources":["../../../../src/stories/molecules/Cards/Modals.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,OAAO,MAAM,MAAM,6BAA6B,CAAC;AACjD,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,aAAa,MAAM,sCAAsC,CAAC;AACjE,OAAO,aAAa,MAAM,sCAAsC,CAAC;AACjE,OAAO,EACL,eAAe,EAAE,gBAAgB,EAAE,eAAe,EACnD,MAAM,iCAAiC,CAAC;AAIzC,mCAAmC;AACnC,MAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9F,MAAM,QAAQ,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,WAAW,EAAE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1B,oBAAoB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC9B,mBAAmB,EAAE,KAAK;IAC1B,kBAAkB;CACnB,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TeamDrawCardProps } from "./sharedTypes";
|
|
3
|
-
export default function TeamDrawCard({ dateLabel, locationLabel, timeLabel, matchInfo, isPosition1Winner, isPosition2Winner, isScorelessMatch, position1Team, position2Team, ...props }: TeamDrawCardProps): JSX.Element;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from "react";
|
|
13
|
-
import Box from "@mui/material/Box";
|
|
14
|
-
import { styled } from "@mui/material/styles";
|
|
15
|
-
import WinnerIndicatorIcon from "stories/atoms/Icons/WinnerIndicatorIcon";
|
|
16
|
-
import { teamDrawCardSideMargin, teamDrawCardBottomMargin } from "stories/utils/constants";
|
|
17
|
-
import Typography, { SECONDARY_SIZES_ENUM, CATEGORY_ENUM } from "../../atoms/Typography/Typography";
|
|
18
|
-
import SquareAvatarWithName from "../SquareAvatarWithName/SquareAvatarWithName";
|
|
19
|
-
const StyledCard = styled(Box)({
|
|
20
|
-
display: "flex",
|
|
21
|
-
flexDirection: "column",
|
|
22
|
-
borderRadius: "4px",
|
|
23
|
-
padding: "16px 24px",
|
|
24
|
-
width: "100%",
|
|
25
|
-
height: "100px",
|
|
26
|
-
backgroundColor: "var(--white)",
|
|
27
|
-
border: "1px solid var(--cool-grey-600)",
|
|
28
|
-
marginLeft: `${teamDrawCardSideMargin}`,
|
|
29
|
-
marginRight: `${teamDrawCardSideMargin}`,
|
|
30
|
-
position: "relative",
|
|
31
|
-
marginBottom: `${teamDrawCardBottomMargin}`
|
|
32
|
-
});
|
|
33
|
-
const BottomGrid = styled(Box)({
|
|
34
|
-
display: "flex",
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
justifyContent: "space-between",
|
|
37
|
-
paddingTop: "8px"
|
|
38
|
-
});
|
|
39
|
-
const StyledTypography = styled(Typography)({
|
|
40
|
-
overflow: "hidden",
|
|
41
|
-
textOverflow: "ellipsis",
|
|
42
|
-
display: "-webkit-box",
|
|
43
|
-
WebkitBoxOrient: "vertical",
|
|
44
|
-
WebkitLineClamp: 1
|
|
45
|
-
});
|
|
46
|
-
export default function TeamDrawCard(_a) {
|
|
47
|
-
var { dateLabel, locationLabel, timeLabel, matchInfo, isPosition1Winner, isPosition2Winner, isScorelessMatch, position1Team, position2Team } = _a, props = __rest(_a, ["dateLabel", "locationLabel", "timeLabel", "matchInfo", "isPosition1Winner", "isPosition2Winner", "isScorelessMatch", "position1Team", "position2Team"]);
|
|
48
|
-
const { MediumMedium, MediumBook, XSmallBook } = SECONDARY_SIZES_ENUM;
|
|
49
|
-
const { SECONDARY } = CATEGORY_ENUM;
|
|
50
|
-
return (React.createElement(StyledCard, Object.assign({ className: "team-draw-card" }, props),
|
|
51
|
-
React.createElement(Box, { display: "flex", justifyContent: "space-between", mb: 0.5 },
|
|
52
|
-
isPosition1Winner && React.createElement(WinnerIndicatorIcon, { isBlack: true, sx: { position: "absolute", left: 0, top: 20 } }),
|
|
53
|
-
React.createElement(Box, { display: "flex", alignItems: "center", gap: 0.5 },
|
|
54
|
-
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, isBye: !(position1Team === null || position1Team === void 0 ? void 0 : position1Team.name) }),
|
|
55
|
-
React.createElement(Typography, { category: SECONDARY, size: XSmallBook, color: "var(--cool-grey-600)" }, `(${position1Team === null || position1Team === void 0 ? void 0 : position1Team.seed})`)),
|
|
56
|
-
React.createElement(Typography, { category: SECONDARY, size: isPosition1Winner ? MediumMedium : MediumBook }, isScorelessMatch ? "-" : position1Team === null || position1Team === void 0 ? void 0 : position1Team.points)),
|
|
57
|
-
React.createElement(Box, { display: "flex", justifyContent: "space-between" },
|
|
58
|
-
isPosition2Winner && React.createElement(WinnerIndicatorIcon, { isBlack: true, sx: { position: "absolute", left: 0, top: 50 } }),
|
|
59
|
-
React.createElement(Box, { display: "flex", alignItems: "center", gap: 0.5 },
|
|
60
|
-
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, isBye: !(position2Team === null || position2Team === void 0 ? void 0 : position2Team.name) }),
|
|
61
|
-
React.createElement(Typography, { category: SECONDARY, size: XSmallBook, color: "var(--cool-grey-600)" }, `(${position2Team === null || position2Team === void 0 ? void 0 : position2Team.seed})`)),
|
|
62
|
-
React.createElement(Typography, { category: SECONDARY, size: isPosition2Winner ? MediumMedium : MediumBook }, isScorelessMatch ? "-" : position2Team === null || position2Team === void 0 ? void 0 : position2Team.points)),
|
|
63
|
-
React.createElement(BottomGrid, null,
|
|
64
|
-
React.createElement(Box, null,
|
|
65
|
-
React.createElement(Box, { display: "flex" },
|
|
66
|
-
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, dateLabel),
|
|
67
|
-
React.createElement(Typography, { category: SECONDARY, size: XSmallBook, pl: 0.5, pr: 0.5 }, "\u2022"),
|
|
68
|
-
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, timeLabel),
|
|
69
|
-
matchInfo
|
|
70
|
-
&& (React.createElement(React.Fragment, null,
|
|
71
|
-
React.createElement(Typography, { category: SECONDARY, size: XSmallBook, pl: 0.5, pr: 0.5 }, "\u2022"),
|
|
72
|
-
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, matchInfo)))),
|
|
73
|
-
React.createElement(StyledTypography, { category: SECONDARY, size: XSmallBook }, locationLabel)))));
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=TeamDrawCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TeamDrawCard.js","sourceRoot":"","sources":["../../../../src/stories/molecules/Cards/TeamDrawCard.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,mBAAmB,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC3F,OAAO,UAAU,EAAE,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACpG,OAAO,oBAAoB,MAAM,8CAA8C,CAAC;AAGhF,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,OAAO;IACf,eAAe,EAAE,cAAc;IAC/B,MAAM,EAAE,gCAAgC;IACxC,UAAU,EAAE,GAAG,sBAAsB,EAAE;IACvC,WAAW,EAAE,GAAG,sBAAsB,EAAE;IACxC,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,GAAG,wBAAwB,EAAE;CAC5C,CAAC,CAAC;AAEH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|
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
|
-
};
|
|
49
|
-
export interface TeamCardProps {
|
|
50
|
-
title: string;
|
|
51
|
-
description: string;
|
|
52
|
-
}
|
|
53
|
-
export interface ContactCardProps {
|
|
54
|
-
name: string;
|
|
55
|
-
phone: string;
|
|
56
|
-
email: string;
|
|
57
|
-
onMessageClick?: VoidFunction;
|
|
58
|
-
}
|
|
59
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sharedTypes.js","sourceRoot":"","sources":["../../../../src/stories/molecules/Cards/sharedTypes.ts"],"names":[],"mappings":"AAAA,aAAa"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface SquareAvatarWithNameProps {
|
|
3
|
-
avatarOnly: boolean;
|
|
4
|
-
avatarFontCategory: string;
|
|
5
|
-
avatarFontSize: string;
|
|
6
|
-
avatarWidth: string;
|
|
7
|
-
avatarHeight: string;
|
|
8
|
-
href: string;
|
|
9
|
-
maxLinkWidth: string;
|
|
10
|
-
name: string;
|
|
11
|
-
fontCategory: string;
|
|
12
|
-
fontSize: string;
|
|
13
|
-
isBye: boolean;
|
|
14
|
-
}
|
|
15
|
-
export default function SquareAvatarWithName({ avatarOnly, name, avatarFontSize, href, avatarFontCategory, avatarWidth, avatarHeight, fontSize, fontCategory, isBye, maxLinkWidth }: {
|
|
16
|
-
avatarOnly?: boolean | undefined;
|
|
17
|
-
name?: string | undefined;
|
|
18
|
-
avatarFontSize?: string | undefined;
|
|
19
|
-
href?: string | undefined;
|
|
20
|
-
avatarFontCategory?: string | undefined;
|
|
21
|
-
avatarWidth?: string | undefined;
|
|
22
|
-
avatarHeight?: string | undefined;
|
|
23
|
-
fontSize?: string | undefined;
|
|
24
|
-
fontCategory?: string | undefined;
|
|
25
|
-
isBye?: boolean | undefined;
|
|
26
|
-
maxLinkWidth?: string | undefined;
|
|
27
|
-
}): JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Avatar from '@mui/material/Avatar';
|
|
3
|
-
import Box from '@mui/material/Box';
|
|
4
|
-
import Link from '@mui/material/Link';
|
|
5
|
-
import Typography from '../../atoms/Typography/Typography';
|
|
6
|
-
export default function SquareAvatarWithName({ avatarOnly = false, name = '', avatarFontSize = 'small-medium', href = '', avatarFontCategory = 'primary', avatarWidth = '26px', avatarHeight = '26px', fontSize = 'medium-book', fontCategory = 'secondary', isBye = false, maxLinkWidth = "auto" }) {
|
|
7
|
-
const getAcronym = (str) => {
|
|
8
|
-
const acronym = str === null || str === void 0 ? void 0 : str.split(' ').map((word) => word.charAt(0)).join('');
|
|
9
|
-
return acronym;
|
|
10
|
-
};
|
|
11
|
-
const SquareAvatarComponent = (React.createElement(Avatar, { sx: {
|
|
12
|
-
backgroundColor: isBye ? 'var(--grey)' : 'var(--black)',
|
|
13
|
-
marginRight: '8px',
|
|
14
|
-
width: `${avatarWidth}`,
|
|
15
|
-
height: `${avatarHeight}`
|
|
16
|
-
}, variant: "rounded" },
|
|
17
|
-
React.createElement(Typography, { sx: { textTransform: 'uppercase' }, size: avatarFontSize, category: avatarFontCategory }, isBye ? '—' : getAcronym(name))));
|
|
18
|
-
return (avatarOnly ? (SquareAvatarComponent) : (React.createElement(Box, { display: "flex", alignItems: "center" },
|
|
19
|
-
SquareAvatarComponent,
|
|
20
|
-
href ? (React.createElement(Link, { href: href, sx: { textDecoration: 'none' } },
|
|
21
|
-
React.createElement(Typography, { category: fontCategory, size: fontSize, maxWidth: maxLinkWidth, sx: { whiteSpace: 'noWrap', overflow: 'hidden', textOverflow: 'ellipsis' } }, name))) : (React.createElement(Typography, { category: fontCategory, size: fontSize, sx: {
|
|
22
|
-
whiteSpace: 'noWrap', overflow: 'hidden', textOverflow: 'ellipsis', color: isBye ? 'grey' : 'black'
|
|
23
|
-
} }, name)))));
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=SquareAvatarWithName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SquareAvatarWithName.js","sourceRoot":"","sources":["../../../../src/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,MAAM,s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,OAAO,CACL,UAAU,CAAC,CAAC,CAAC,CACX,qBAAqB,CACtB,CAAC,CAAC,CAAC,CACA,oBAAC,GAAG,IAAC,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ;QAClC,qBAAqB;QACrB,IAAI,CAAC,CAAC,CAAC,CACJ,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE;YAC5C,oBAAC,UAAU,IACP,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,YAAY,EACtB,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,IAEzE,IAAI,CACI,CACV,CACV,CAAC,CAAC,CAAC,CACA,oBAAC,UAAU,IACP,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAE,QAAQ,EACd,EAAE,EAAE;gBACF,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;aACpG,IAEA,IAAI,CACI,CAChB,CACC,CACT,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Default: any;
|
|
6
|
-
export declare const WithCustomTypography: any;
|
|
7
|
-
export declare const WithCustomAvatarSize: any;
|
|
8
|
-
export declare const WithAvatarOnly: any;
|
|
9
|
-
export declare const WithLink: any;
|
|
10
|
-
export declare const WithLowercaseName: any;
|
|
11
|
-
export declare const WithLongName: any;
|
|
12
|
-
export declare const WithLongLinkName: any;
|
|
13
|
-
export declare const IsBye: any;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Box from '@mui/material/Box';
|
|
3
|
-
import SquareAvatarWithName from './SquareAvatarWithName';
|
|
4
|
-
// Default
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Molecules/SquareAvatarWithName',
|
|
7
|
-
};
|
|
8
|
-
// Templates
|
|
9
|
-
function SquareAvatarWithNameTemplate(args) {
|
|
10
|
-
return React.createElement(SquareAvatarWithName, Object.assign({}, args));
|
|
11
|
-
}
|
|
12
|
-
function SquareAvatarWithLongNameTemplate(args) {
|
|
13
|
-
return React.createElement(Box, { width: "200px" },
|
|
14
|
-
React.createElement(SquareAvatarWithName, Object.assign({}, args)));
|
|
15
|
-
}
|
|
16
|
-
// Stories
|
|
17
|
-
export const Default = SquareAvatarWithNameTemplate.bind({});
|
|
18
|
-
Default.args = {
|
|
19
|
-
name: "Team Dream",
|
|
20
|
-
};
|
|
21
|
-
export const WithCustomTypography = SquareAvatarWithNameTemplate.bind({});
|
|
22
|
-
WithCustomTypography.args = {
|
|
23
|
-
name: "Team Dream",
|
|
24
|
-
avatarFontCategory: "secondary",
|
|
25
|
-
avatarFontSize: "small-book",
|
|
26
|
-
fontCategory: "primary",
|
|
27
|
-
fontSize: "medium-book"
|
|
28
|
-
};
|
|
29
|
-
export const WithCustomAvatarSize = SquareAvatarWithNameTemplate.bind({});
|
|
30
|
-
WithCustomAvatarSize.args = {
|
|
31
|
-
name: "Team Dream",
|
|
32
|
-
avatarWidth: '40px',
|
|
33
|
-
avatarHeight: '40px',
|
|
34
|
-
avatarFontCategory: "primary",
|
|
35
|
-
avatarFontSize: "small-book",
|
|
36
|
-
};
|
|
37
|
-
export const WithAvatarOnly = SquareAvatarWithNameTemplate.bind({});
|
|
38
|
-
WithAvatarOnly.args = {
|
|
39
|
-
avatarOnly: true,
|
|
40
|
-
name: "Team Dream",
|
|
41
|
-
};
|
|
42
|
-
export const WithLink = SquareAvatarWithNameTemplate.bind({});
|
|
43
|
-
WithLink.args = {
|
|
44
|
-
href: "https://www.reddit.com",
|
|
45
|
-
name: "Team Dream",
|
|
46
|
-
};
|
|
47
|
-
export const WithLowercaseName = SquareAvatarWithNameTemplate.bind({});
|
|
48
|
-
WithLowercaseName.args = {
|
|
49
|
-
name: "team dream",
|
|
50
|
-
};
|
|
51
|
-
export const WithLongName = SquareAvatarWithLongNameTemplate.bind({});
|
|
52
|
-
WithLongName.args = {
|
|
53
|
-
name: "Team Dreamadeamadeamadeamadeam",
|
|
54
|
-
};
|
|
55
|
-
export const WithLongLinkName = SquareAvatarWithLongNameTemplate.bind({});
|
|
56
|
-
WithLongLinkName.args = {
|
|
57
|
-
name: "Team Dreamadeamadeamadeamadeam",
|
|
58
|
-
href: "https://www.reddit.com",
|
|
59
|
-
maxLinkWidth: "200px"
|
|
60
|
-
};
|
|
61
|
-
export const IsBye = SquareAvatarWithNameTemplate.bind({});
|
|
62
|
-
IsBye.args = {
|
|
63
|
-
name: "Bye",
|
|
64
|
-
isBye: true,
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=SquareAvatarWithName.stories.js.map
|