@universal-tennis/ui-shared 0.1.82 → 0.1.85
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 +17 -12
- package/.storybook/variables.css +16 -15
- package/README.md +129 -129
- package/dist/App.d.ts +2 -2
- package/dist/App.js +12 -12
- package/dist/components.d.ts +38 -37
- package/dist/components.js +43 -42
- 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 +15 -14
- package/dist/stories/assets/direction.svg +1 -0
- package/dist/stories/assets/icon-chat-blue.svg +10 -10
- package/dist/stories/assets/utr-sports-logo.svg +9 -0
- 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.stories.d.ts +17 -17
- package/dist/stories/atoms/Button/Button.stories.js +45 -45
- 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/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/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 +33 -28
- package/dist/stories/atoms/Icons/Icons.stories.js +269 -224
- package/dist/stories/atoms/Icons/Icons.stories.js.map +1 -1
- 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/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/SocialMediaFacebookIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/SocialMediaFacebookIcon.js +11 -0
- package/dist/stories/atoms/Icons/SocialMediaFacebookIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/SocialMediaInstagramIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/SocialMediaInstagramIcon.js +7 -0
- package/dist/stories/atoms/Icons/SocialMediaInstagramIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/SocialMediaTikTokIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/SocialMediaTikTokIcon.js +11 -0
- package/dist/stories/atoms/Icons/SocialMediaTikTokIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/SocialMediaXIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/SocialMediaXIcon.js +11 -0
- package/dist/stories/atoms/Icons/SocialMediaXIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/SocialMediaYoutubeIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/SocialMediaYoutubeIcon.js +7 -0
- package/dist/stories/atoms/Icons/SocialMediaYoutubeIcon.js.map +1 -0
- 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/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.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/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/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 -76
- package/dist/stories/molecules/Cards/TeamDrawCard.js.map +1 -1
- package/dist/stories/molecules/Cards/shared.d.ts +9 -4
- package/dist/stories/molecules/Cards/shared.js +12 -12
- package/dist/stories/molecules/Cards/sharedTypes.d.ts +60 -59
- package/dist/stories/molecules/Cards/sharedTypes.js +2 -2
- package/dist/stories/molecules/FooterSection/FooterSection.d.ts +4 -0
- package/dist/stories/molecules/FooterSection/FooterSection.js +12 -0
- package/dist/stories/molecules/FooterSection/FooterSection.js.map +1 -0
- package/dist/stories/molecules/FooterSection/FooterSection.stories.d.ts +5 -0
- package/dist/stories/molecules/FooterSection/FooterSection.stories.js +21 -0
- package/dist/stories/molecules/FooterSection/FooterSection.stories.js.map +1 -0
- package/dist/stories/molecules/FooterSection/sharedTypes.d.ts +5 -0
- package/dist/stories/molecules/FooterSection/sharedTypes.js +2 -0
- package/dist/stories/molecules/FooterSection/sharedTypes.js.map +1 -0
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.d.ts +29 -29
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.js +29 -29
- 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 -0
- package/dist/stories/organisms/Footer/Footer.js +62 -0
- package/dist/stories/organisms/Footer/Footer.js.map +1 -0
- package/dist/stories/organisms/Footer/Footer.stories.d.ts +5 -0
- package/dist/stories/organisms/Footer/Footer.stories.js +59 -0
- package/dist/stories/organisms/Footer/Footer.stories.js.map +1 -0
- package/dist/stories/organisms/Footer/sharedTypes.d.ts +14 -0
- package/dist/stories/organisms/Footer/sharedTypes.js +2 -0
- package/dist/stories/organisms/Footer/sharedTypes.js.map +1 -0
- 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 +58 -58
- package/dist/stories/organisms/Tables/SortableTable.d.ts +23 -23
- package/dist/stories/organisms/Tables/SortableTable.js +34 -34
- 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 +70 -69
- package/dist/stories/organisms/Tables/mockData.js +98 -97
- package/dist/stories/organisms/Tables/mockData.js.map +1 -1
- 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 +10 -3
- package/dist/stories/utils/constants.js +10 -3
- 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/infrastructure/azure-pipelines.yml +112 -112
- package/package.json +100 -99
- package/src/App.js +25 -25
- package/src/components.jsx +47 -46
- 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 +15 -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-social-media-facebook.svg +10 -0
- package/src/stories/assets/icons/icon-social-media-instagram.svg +3 -0
- package/src/stories/assets/icons/icon-social-media-tiktok.svg +10 -0
- package/src/stories/assets/icons/icon-social-media-x.svg +10 -0
- package/src/stories/assets/icons/icon-social-media-youtube.svg +3 -0
- 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/assets/utr-sports-logo.svg +9 -0
- 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/DoublePersonIcon.tsx +20 -20
- package/src/stories/atoms/Icons/EditIcon.tsx +11 -11
- package/src/stories/atoms/Icons/Icons.stories.tsx +330 -275
- package/src/stories/atoms/Icons/LeftChevronIcon.tsx +13 -13
- package/src/stories/atoms/Icons/LineIcon.tsx +12 -12
- 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/SinglePersonIcon.tsx +16 -16
- package/src/stories/atoms/Icons/SocialMediaFacebookIcon.tsx +19 -0
- package/src/stories/atoms/Icons/SocialMediaInstagramIcon.tsx +11 -0
- package/src/stories/atoms/Icons/SocialMediaTikTokIcon.tsx +18 -0
- package/src/stories/atoms/Icons/SocialMediaXIcon.tsx +18 -0
- package/src/stories/atoms/Icons/SocialMediaYoutubeIcon.tsx +11 -0
- package/src/stories/atoms/Icons/SwapIcon.tsx +11 -11
- package/src/stories/atoms/Icons/SwapNoBorderIcon.tsx +14 -14
- package/src/stories/atoms/Icons/VerifiedIcon.tsx +13 -13
- 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 +12 -12
- package/src/stories/atoms/Typography/Typography.tsx +185 -185
- package/src/stories/atoms/UTMap/UTMap.stories.tsx +43 -43
- package/src/stories/atoms/UTMap/UTMap.tsx +25 -25
- 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 +158 -146
- package/src/stories/molecules/Cards/sharedTypes.ts +68 -67
- package/src/stories/molecules/FooterSection/FooterSection.stories.tsx +25 -0
- package/src/stories/molecules/FooterSection/FooterSection.tsx +34 -0
- package/src/stories/molecules/FooterSection/sharedTypes.ts +6 -0
- package/src/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.tsx +96 -96
- package/src/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.tsx +99 -99
- package/src/stories/organisms/Footer/Footer.stories.tsx +63 -0
- package/src/stories/organisms/Footer/Footer.tsx +118 -0
- package/src/stories/organisms/Footer/sharedTypes.ts +14 -0
- 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 +119 -119
- package/src/stories/organisms/Tables/Tables.stories.tsx +104 -104
- package/src/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.tsx +120 -120
- package/src/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.tsx +67 -67
- package/src/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.tsx +24 -24
- package/src/stories/organisms/Tables/mockData.tsx +130 -129
- package/src/stories/organisms/Tables/sharedTypes.ts +17 -17
- package/src/stories/utils/constants.ts +11 -3
- package/src/stories/utils/getArrayWithIds.ts +1 -1
- package/src/stories/utils/useScreenSize.ts +28 -28
- package/src/types/tableDataTypes.ts +42 -42
- package/tsconfig.json +23 -23
- 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/organisms/Tables/TeamDrawCardTable.d.ts +0 -3
- package/dist/stories/organisms/Tables/TeamDrawCardTable.js +0 -126
- package/dist/stories/organisms/Tables/TeamDrawCardTable.js.map +0 -1
package/dist/components.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import './stories/assets/css/variables.css';
|
|
2
|
-
// ATOMS
|
|
3
|
-
export { default as Button } from './stories/atoms/Button/Button';
|
|
4
|
-
export { default as UTMap } from './stories/atoms/UTMap/UTMap';
|
|
5
|
-
export { default as Typography } from './stories/atoms/Typography/Typography';
|
|
6
|
-
// ATOMS - ICONS
|
|
7
|
-
export { default as AddIcon } from './stories/atoms/Icons/AddIcon';
|
|
8
|
-
export { default as AvailabilityMaybeIcon } from './stories/atoms/Icons/AvailabilityMaybeIcon';
|
|
9
|
-
export { default as AvailabilityNoIcon } from './stories/atoms/Icons/AvailabilityNoIcon';
|
|
10
|
-
export { default as AvailabilityYesIcon } from './stories/atoms/Icons/AvailabilityYesIcon';
|
|
11
|
-
export { default as AvailabilityNotSetIcon } from './stories/atoms/Icons/AvailabilityNotSetIcon';
|
|
12
|
-
export { default as CalendarIcon } from './stories/atoms/Icons/CalendarIcon';
|
|
13
|
-
export { default as ClockIcon } from './stories/atoms/Icons/ClockIcon';
|
|
14
|
-
export { default as CloseIcon } from './stories/atoms/Icons/CloseIcon';
|
|
15
|
-
export { default as DeleteIcon } from './stories/atoms/Icons/DeleteIcon';
|
|
16
|
-
export { default as DoublePersonIcon } from './stories/atoms/Icons/DoublePersonIcon';
|
|
17
|
-
export { default as EditIcon } from './stories/atoms/Icons/EditIcon';
|
|
18
|
-
export { default as LocationIcon } from './stories/atoms/Icons/LocationIcon';
|
|
19
|
-
export { default as LeftChevronIcon } from './stories/atoms/Icons/LeftChevronIcon';
|
|
20
|
-
export { default as LineIcon } from './stories/atoms/Icons/LineIcon';
|
|
21
|
-
export { default as MessageIcon } from './stories/atoms/Icons/MessageIcon';
|
|
22
|
-
export { default as RightChevronIcon } from './stories/atoms/Icons/RightChevronIcon';
|
|
23
|
-
export { default as SessionIcon } from './stories/atoms/Icons/SessionIcon';
|
|
24
|
-
export { default as SinglePersonIcon } from './stories/atoms/Icons/SinglePersonIcon';
|
|
25
|
-
export { default as SwapIcon } from './stories/atoms/Icons/SwapIcon';
|
|
26
|
-
export { default as SwapNoBorderIcon } from './stories/atoms/Icons/SwapNoBorderIcon';
|
|
27
|
-
export { default as VerifiedIcon } from './stories/atoms/Icons/VerifiedIcon';
|
|
28
|
-
export { default as VisibilityIcon } from './stories/atoms/Icons/VisibilityIcon';
|
|
29
|
-
export { default as VisibilityOffIcon } from './stories/atoms/Icons/VisibilityOffIcon';
|
|
30
|
-
export { default as WinnerIndicatorIcon } from './stories/atoms/Icons/WinnerIndicatorIcon';
|
|
31
|
-
// MOLECULES
|
|
32
|
-
export { default as AvatarWithName } from './stories/molecules/AvatarWithName/AvatarWithName';
|
|
33
|
-
export { default as ContactCard } from './stories/molecules/Cards/ContactCard';
|
|
34
|
-
export { default as DrawCard } from './stories/molecules/Cards/DrawCard';
|
|
35
|
-
export { default as SquareAvatarWithName } from './stories/molecules/SquareAvatarWithName/SquareAvatarWithName';
|
|
36
|
-
export { default as TeamCard } from './stories/molecules/Cards/TeamCard';
|
|
37
|
-
export { default as TeamDrawCard } from './stories/molecules/Cards/TeamDrawCard';
|
|
38
|
-
// ORGANISMS
|
|
39
|
-
export { default as DrawCardTable } from './stories/organisms/Tables/DrawCardTable';
|
|
40
|
-
export { default as FullPageModal } from './stories/organisms/Modals/FullPageModal';
|
|
41
|
-
export { default as SortableTable } from './stories/organisms/Tables/SortableTable';
|
|
42
|
-
export { default as TeamDrawCardTable } from './stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable';
|
|
1
|
+
import './stories/assets/css/variables.css';
|
|
2
|
+
// ATOMS
|
|
3
|
+
export { default as Button } from './stories/atoms/Button/Button';
|
|
4
|
+
export { default as UTMap } from './stories/atoms/UTMap/UTMap';
|
|
5
|
+
export { default as Typography } from './stories/atoms/Typography/Typography';
|
|
6
|
+
// ATOMS - ICONS
|
|
7
|
+
export { default as AddIcon } from './stories/atoms/Icons/AddIcon';
|
|
8
|
+
export { default as AvailabilityMaybeIcon } from './stories/atoms/Icons/AvailabilityMaybeIcon';
|
|
9
|
+
export { default as AvailabilityNoIcon } from './stories/atoms/Icons/AvailabilityNoIcon';
|
|
10
|
+
export { default as AvailabilityYesIcon } from './stories/atoms/Icons/AvailabilityYesIcon';
|
|
11
|
+
export { default as AvailabilityNotSetIcon } from './stories/atoms/Icons/AvailabilityNotSetIcon';
|
|
12
|
+
export { default as CalendarIcon } from './stories/atoms/Icons/CalendarIcon';
|
|
13
|
+
export { default as ClockIcon } from './stories/atoms/Icons/ClockIcon';
|
|
14
|
+
export { default as CloseIcon } from './stories/atoms/Icons/CloseIcon';
|
|
15
|
+
export { default as DeleteIcon } from './stories/atoms/Icons/DeleteIcon';
|
|
16
|
+
export { default as DoublePersonIcon } from './stories/atoms/Icons/DoublePersonIcon';
|
|
17
|
+
export { default as EditIcon } from './stories/atoms/Icons/EditIcon';
|
|
18
|
+
export { default as LocationIcon } from './stories/atoms/Icons/LocationIcon';
|
|
19
|
+
export { default as LeftChevronIcon } from './stories/atoms/Icons/LeftChevronIcon';
|
|
20
|
+
export { default as LineIcon } from './stories/atoms/Icons/LineIcon';
|
|
21
|
+
export { default as MessageIcon } from './stories/atoms/Icons/MessageIcon';
|
|
22
|
+
export { default as RightChevronIcon } from './stories/atoms/Icons/RightChevronIcon';
|
|
23
|
+
export { default as SessionIcon } from './stories/atoms/Icons/SessionIcon';
|
|
24
|
+
export { default as SinglePersonIcon } from './stories/atoms/Icons/SinglePersonIcon';
|
|
25
|
+
export { default as SwapIcon } from './stories/atoms/Icons/SwapIcon';
|
|
26
|
+
export { default as SwapNoBorderIcon } from './stories/atoms/Icons/SwapNoBorderIcon';
|
|
27
|
+
export { default as VerifiedIcon } from './stories/atoms/Icons/VerifiedIcon';
|
|
28
|
+
export { default as VisibilityIcon } from './stories/atoms/Icons/VisibilityIcon';
|
|
29
|
+
export { default as VisibilityOffIcon } from './stories/atoms/Icons/VisibilityOffIcon';
|
|
30
|
+
export { default as WinnerIndicatorIcon } from './stories/atoms/Icons/WinnerIndicatorIcon';
|
|
31
|
+
// MOLECULES
|
|
32
|
+
export { default as AvatarWithName } from './stories/molecules/AvatarWithName/AvatarWithName';
|
|
33
|
+
export { default as ContactCard } from './stories/molecules/Cards/ContactCard';
|
|
34
|
+
export { default as DrawCard } from './stories/molecules/Cards/DrawCard';
|
|
35
|
+
export { default as SquareAvatarWithName } from './stories/molecules/SquareAvatarWithName/SquareAvatarWithName';
|
|
36
|
+
export { default as TeamCard } from './stories/molecules/Cards/TeamCard';
|
|
37
|
+
export { default as TeamDrawCard } from './stories/molecules/Cards/TeamDrawCard';
|
|
38
|
+
// ORGANISMS
|
|
39
|
+
export { default as DrawCardTable } from './stories/organisms/Tables/DrawCardTable';
|
|
40
|
+
export { default as FullPageModal } from './stories/organisms/Modals/FullPageModal';
|
|
41
|
+
export { default as SortableTable } from './stories/organisms/Tables/SortableTable';
|
|
42
|
+
export { default as TeamDrawCardTable } from './stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable';
|
|
43
|
+
export { default as Footer } from './stories/organisms/Footer/Footer';
|
|
43
44
|
//# sourceMappingURL=components.js.map
|
package/dist/components.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.jsx"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAE5C,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAE9E,gBAAgB;AAChB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MA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AC;AACzE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAEjF,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gEAAgE,CAAC;AAC9G,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,mCAAmC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom/client';
|
|
3
|
-
import './index.css';
|
|
4
|
-
import App from './App';
|
|
5
|
-
import reportWebVitals from './reportWebVitals';
|
|
6
|
-
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
7
|
-
root.render(React.createElement(React.StrictMode, null,
|
|
8
|
-
React.createElement(App, null)));
|
|
9
|
-
// If you want to start measuring performance in your app, pass a function
|
|
10
|
-
// to log results (for example: reportWebVitals(console.log))
|
|
11
|
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
12
|
-
reportWebVitals();
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom/client';
|
|
3
|
+
import './index.css';
|
|
4
|
+
import App from './App';
|
|
5
|
+
import reportWebVitals from './reportWebVitals';
|
|
6
|
+
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
7
|
+
root.render(React.createElement(React.StrictMode, null,
|
|
8
|
+
React.createElement(App, null)));
|
|
9
|
+
// If you want to start measuring performance in your app, pass a function
|
|
10
|
+
// to log results (for example: reportWebVitals(console.log))
|
|
11
|
+
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
12
|
+
reportWebVitals();
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
package/dist/items.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _exports: typeof import("./components");
|
|
2
|
-
export = _exports;
|
|
1
|
+
declare const _exports: typeof import("./components");
|
|
2
|
+
export = _exports;
|
package/dist/items.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
module.exports = require('./components');
|
|
1
|
+
module.exports = require('./components');
|
|
2
2
|
//# sourceMappingURL=items.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function Button({ primary, backgroundColor, size, label, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
primary: any;
|
|
4
|
+
backgroundColor: any;
|
|
5
|
+
size: any;
|
|
6
|
+
label: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export namespace Button {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const primary: PropTypes.Requireable<boolean>;
|
|
11
|
+
const backgroundColor: PropTypes.Requireable<string>;
|
|
12
|
+
const size: PropTypes.Requireable<string>;
|
|
13
|
+
const label: PropTypes.Validator<string>;
|
|
14
|
+
const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
}
|
|
16
|
+
namespace defaultProps {
|
|
17
|
+
const backgroundColor_1: null;
|
|
18
|
+
export { backgroundColor_1 as backgroundColor };
|
|
19
|
+
const primary_1: boolean;
|
|
20
|
+
export { primary_1 as primary };
|
|
21
|
+
const size_1: string;
|
|
22
|
+
export { size_1 as size };
|
|
23
|
+
const onClick_1: undefined;
|
|
24
|
+
export { onClick_1 as onClick };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,51 @@
|
|
|
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 PropTypes from 'prop-types';
|
|
14
|
+
import './button.css';
|
|
15
|
+
/**
|
|
16
|
+
* Primary UI component for user interaction
|
|
17
|
+
*/
|
|
18
|
+
export const Button = (_a) => {
|
|
19
|
+
var { primary, backgroundColor, size, label } = _a, props = __rest(_a, ["primary", "backgroundColor", "size", "label"]);
|
|
20
|
+
const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
|
|
21
|
+
return (React.createElement("button", Object.assign({ type: "button", className: ['storybook-button', `storybook-button--${size}`, mode].join(' '), style: backgroundColor && { backgroundColor } }, props), label));
|
|
22
|
+
};
|
|
23
|
+
Button.propTypes = {
|
|
24
|
+
/**
|
|
25
|
+
* Is this the principal call to action on the page?
|
|
26
|
+
*/
|
|
27
|
+
primary: PropTypes.bool,
|
|
28
|
+
/**
|
|
29
|
+
* What background color to use
|
|
30
|
+
*/
|
|
31
|
+
backgroundColor: PropTypes.string,
|
|
32
|
+
/**
|
|
33
|
+
* How large should the button be?
|
|
34
|
+
*/
|
|
35
|
+
size: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
36
|
+
/**
|
|
37
|
+
* Button contents
|
|
38
|
+
*/
|
|
39
|
+
label: PropTypes.string.isRequired,
|
|
40
|
+
/**
|
|
41
|
+
* Optional click handler
|
|
42
|
+
*/
|
|
43
|
+
onClick: PropTypes.func,
|
|
44
|
+
};
|
|
45
|
+
Button.defaultProps = {
|
|
46
|
+
backgroundColor: null,
|
|
47
|
+
primary: false,
|
|
48
|
+
size: 'medium',
|
|
49
|
+
onClick: undefined,
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/stories/Button.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAmD,EAAE,EAAE;QAAvD,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,OAAY,EAAP,KAAK,cAAjD,+CAAmD,CAAF;IACtE,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,6BAA6B,CAAC;IACnF,OAAO,CACL,8CACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAC5E,KAAK,EAAE,eAAe,IAAI,EAAE,eAAe,EAAE,IACzC,KAAK,GAER,KAAK,CACC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,SAAS,GAAG;IACjB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC,IAAI;IACvB;;OAEG;IACH,eAAe,EAAE,SAAS,CAAC,MAAM;IACjC;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACnD;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IAClC;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC,IAAI;CACxB,CAAC;AAEF,MAAM,CAAC,YAAY,GAAG;IACpB,eAAe,EAAE,IAAI;IACrB,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,SAAS;CACnB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export const title: string;
|
|
3
|
+
export { Button as component };
|
|
4
|
+
export namespace argTypes {
|
|
5
|
+
namespace backgroundColor {
|
|
6
|
+
const control: string;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export default _default;
|
|
11
|
+
export const Primary: any;
|
|
12
|
+
export const Secondary: any;
|
|
13
|
+
export const Large: any;
|
|
14
|
+
export const Small: any;
|
|
15
|
+
import { Button } from "./Button";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from './Button';
|
|
3
|
+
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Example/Button',
|
|
6
|
+
component: Button,
|
|
7
|
+
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
8
|
+
argTypes: {
|
|
9
|
+
backgroundColor: { control: 'color' },
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
13
|
+
const Template = (args) => React.createElement(Button, Object.assign({}, args));
|
|
14
|
+
export const Primary = Template.bind({});
|
|
15
|
+
// More on args: https://storybook.js.org/docs/react/writing-stories/args
|
|
16
|
+
Primary.args = {
|
|
17
|
+
primary: true,
|
|
18
|
+
label: 'Button',
|
|
19
|
+
};
|
|
20
|
+
export const Secondary = Template.bind({});
|
|
21
|
+
Secondary.args = {
|
|
22
|
+
label: 'Button',
|
|
23
|
+
};
|
|
24
|
+
export const Large = Template.bind({});
|
|
25
|
+
Large.args = {
|
|
26
|
+
size: 'large',
|
|
27
|
+
label: 'Button',
|
|
28
|
+
};
|
|
29
|
+
export const Small = Template.bind({});
|
|
30
|
+
Small.args = {
|
|
31
|
+
size: 'small',
|
|
32
|
+
label: 'Button',
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=Button.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["../../src/stories/Button.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,0GAA0G;AAC1G,eAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,MAAM;IACjB,qEAAqE;IACrE,QAAQ,EAAE;QACR,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;KACtC;CACF,CAAC;AAEF,2GAA2G;AAC3G,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAC;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,yEAAyE;AACzE,OAAO,CAAC,IAAI,GAAG;IACb,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IACf,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CAAC,IAAI,GAAG;IACX,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CAAC,IAAI,GAAG;IACX,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CAChB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function Header({ user, onLogin, onLogout, onCreateAccount }: {
|
|
2
|
+
user: any;
|
|
3
|
+
onLogin: any;
|
|
4
|
+
onLogout: any;
|
|
5
|
+
onCreateAccount: any;
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
export namespace Header {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const user: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
10
|
+
const onLogin: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
const onLogout: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
const onCreateAccount: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
|
+
}
|
|
14
|
+
namespace defaultProps {
|
|
15
|
+
const user_1: null;
|
|
16
|
+
export { user_1 as user };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Button } from './Button';
|
|
4
|
+
import './header.css';
|
|
5
|
+
export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => (React.createElement("header", null,
|
|
6
|
+
React.createElement("div", { className: "wrapper" },
|
|
7
|
+
React.createElement("div", null,
|
|
8
|
+
React.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
|
+
React.createElement("g", { fill: "none", fillRule: "evenodd" },
|
|
10
|
+
React.createElement("path", { d: "M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z", fill: "#FFF" }),
|
|
11
|
+
React.createElement("path", { d: "M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z", fill: "#555AB9" }),
|
|
12
|
+
React.createElement("path", { d: "M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z", fill: "#91BAF8" }))),
|
|
13
|
+
React.createElement("h1", null, "Acme")),
|
|
14
|
+
React.createElement("div", null, user ? (React.createElement(React.Fragment, null,
|
|
15
|
+
React.createElement("span", { className: "welcome" },
|
|
16
|
+
"Welcome, ",
|
|
17
|
+
React.createElement("b", null, user.name),
|
|
18
|
+
"!"),
|
|
19
|
+
React.createElement(Button, { size: "small", onClick: onLogout, label: "Log out" }))) : (React.createElement(React.Fragment, null,
|
|
20
|
+
React.createElement(Button, { size: "small", onClick: onLogin, label: "Log in" }),
|
|
21
|
+
React.createElement(Button, { primary: true, size: "small", onClick: onCreateAccount, label: "Sign up" })))))));
|
|
22
|
+
Header.propTypes = {
|
|
23
|
+
user: PropTypes.shape({}),
|
|
24
|
+
onLogin: PropTypes.func.isRequired,
|
|
25
|
+
onLogout: PropTypes.func.isRequired,
|
|
26
|
+
onCreateAccount: PropTypes.func.isRequired,
|
|
27
|
+
};
|
|
28
|
+
Header.defaultProps = {
|
|
29
|
+
user: null,
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/stories/Header.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CACtE;IACE,6BAAK,SAAS,EAAC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namespace _default {
|
|
2
|
+
export const title: string;
|
|
3
|
+
export { Header as component };
|
|
4
|
+
export namespace parameters {
|
|
5
|
+
const layout: string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export const LoggedIn: any;
|
|
10
|
+
export const LoggedOut: any;
|
|
11
|
+
import { Header } from "./Header";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Header } from './Header';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Example/Header',
|
|
5
|
+
component: Header,
|
|
6
|
+
parameters: {
|
|
7
|
+
// More on Story layout: https://storybook.js.org/docs/react/configure/story-layout
|
|
8
|
+
layout: 'fullscreen',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
const Template = (args) => React.createElement(Header, Object.assign({}, args));
|
|
12
|
+
export const LoggedIn = Template.bind({});
|
|
13
|
+
LoggedIn.args = {
|
|
14
|
+
user: {
|
|
15
|
+
name: 'Jane Doe',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export const LoggedOut = Template.bind({});
|
|
19
|
+
LoggedOut.args = {};
|
|
20
|
+
//# sourceMappingURL=Header.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.stories.js","sourceRoot":"","sources":["../../src/stories/Header.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE;QACV,mFAAmF;QACnF,MAAM,EAAE,YAAY;KACrB;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAC;AAEhD,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function Page(): JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Header } from './Header';
|
|
3
|
+
import './page.css';
|
|
4
|
+
export const Page = () => {
|
|
5
|
+
const [user, setUser] = React.useState();
|
|
6
|
+
return (React.createElement("article", null,
|
|
7
|
+
React.createElement(Header, { user: user, onLogin: () => setUser({ name: 'Jane Doe' }), onLogout: () => setUser(undefined), onCreateAccount: () => setUser({ name: 'Jane Doe' }) }),
|
|
8
|
+
React.createElement("section", null,
|
|
9
|
+
React.createElement("h2", null, "Pages in Storybook"),
|
|
10
|
+
React.createElement("p", null,
|
|
11
|
+
"We recommend building UIs with a",
|
|
12
|
+
' ',
|
|
13
|
+
React.createElement("a", { href: "https://componentdriven.org", target: "_blank", rel: "noopener noreferrer" },
|
|
14
|
+
React.createElement("strong", null, "component-driven")),
|
|
15
|
+
' ',
|
|
16
|
+
"process starting with atomic components and ending with pages."),
|
|
17
|
+
React.createElement("p", null, "Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:"),
|
|
18
|
+
React.createElement("ul", null,
|
|
19
|
+
React.createElement("li", null, "Use a higher-level connected component. Storybook helps you compose such data from the \"args\" of child component stories"),
|
|
20
|
+
React.createElement("li", null, "Assemble data in the page component from your services. You can mock these services out using Storybook.")),
|
|
21
|
+
React.createElement("p", null,
|
|
22
|
+
"Get a guided tutorial on component-driven development at",
|
|
23
|
+
' ',
|
|
24
|
+
React.createElement("a", { href: "https://storybook.js.org/tutorials/", target: "_blank", rel: "noopener noreferrer" }, "Storybook tutorials"),
|
|
25
|
+
". Read more in the",
|
|
26
|
+
' ',
|
|
27
|
+
React.createElement("a", { href: "https://storybook.js.org/docs", target: "_blank", rel: "noopener noreferrer" }, "docs"),
|
|
28
|
+
"."),
|
|
29
|
+
React.createElement("div", { className: "tip-wrapper" },
|
|
30
|
+
React.createElement("span", { className: "tip" }, "Tip"),
|
|
31
|
+
" Adjust the width of the canvas with the",
|
|
32
|
+
' ',
|
|
33
|
+
React.createElement("svg", { width: "10", height: "10", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" },
|
|
34
|
+
React.createElement("g", { fill: "none", fillRule: "evenodd" },
|
|
35
|
+
React.createElement("path", { d: "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z", id: "a", fill: "#999" }))),
|
|
36
|
+
"Viewports addon in the toolbar"))));
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=Page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../src/stories/Page.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,EAAE;IACvB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAEzC,OAAO,CACL;QACE,oBAAC,MAAM,IACL,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAC5C,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,EAClC,eAAe,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,GACpD;QAEF;YACE,qDAA2B;YAC3B;;gBACmC,GAAG;gBACpC,2BAAG,IAAI,EAAC,6BAA6B,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB;oBAC7E,uDAAiC,CAC/B;gBAAC,GAAG;iFAEN;YACJ,oOAII;YACJ;gBACE,6JAGK;gBACL,2IAGK,CACF;YACL;;gBAC2D,GAAG;gBAC5D,2BAAG,IAAI,EAAC,qCAAqC,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,0BAEnF;;gBACe,GAAG;gBACtB,2BAAG,IAAI,EAAC,+BAA+B,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,WAE7E;oBAEF;YACJ,6BAAK,SAAS,EAAC,aAAa;gBAC1B,8BAAM,SAAS,EAAC,KAAK,UAAW;;gBAAyC,GAAG;gBAC5E,6BAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,4BAA4B;oBAChF,2BAAG,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,SAAS;wBAC/B,8BACE,CAAC,EAAC,sOAAsO,EACxO,EAAE,EAAC,GAAG,EACN,IAAI,EAAC,MAAM,GACX,CACA,CACA;iDAEF,CACE,CACF,CACX,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export const title: string;
|
|
3
|
+
export { Page as component };
|
|
4
|
+
export namespace parameters {
|
|
5
|
+
const layout: string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
export const LoggedOut: any;
|
|
10
|
+
export const LoggedIn: any;
|
|
11
|
+
import { Page } from "./Page";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { within, userEvent } from '@storybook/testing-library';
|
|
12
|
+
import { Page } from './Page';
|
|
13
|
+
export default {
|
|
14
|
+
title: 'Example/Page',
|
|
15
|
+
component: Page,
|
|
16
|
+
parameters: {
|
|
17
|
+
// More on Story layout: https://storybook.js.org/docs/react/configure/story-layout
|
|
18
|
+
layout: 'fullscreen',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
const Template = (args) => React.createElement(Page, Object.assign({}, args));
|
|
22
|
+
// More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
|
|
23
|
+
export const LoggedOut = Template.bind({});
|
|
24
|
+
export const LoggedIn = Template.bind({});
|
|
25
|
+
LoggedIn.play = ({ canvasElement }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
26
|
+
const canvas = within(canvasElement);
|
|
27
|
+
const loginButton = yield canvas.getByRole('button', { name: /Log in/i });
|
|
28
|
+
yield userEvent.click(loginButton);
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=Page.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page.stories.js","sourceRoot":"","sources":["../../src/stories/Page.stories.jsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAe;IACb,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,mFAAmF;QACnF,MAAM,EAAE,YAAY;KACrB;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,IAAI,oBAAK,IAAI,EAAI,CAAC;AAE9C,qGAAqG;AACrG,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,QAAQ,CAAC,IAAI,GAAG,CAAO,EAAE,aAAa,EAAE,EAAE,EAAE;IAC1C,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IACrC,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1E,MAAM,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/comments</title><g id="illustration/comments" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Path" fill="#96D07C" d="M2.52730803,17.9196415 C2.44329744,17.9745167 2.36370847,18.000488 2.29303375,18.000488 C2.1197031,18.000488 2,17.8443588 2,17.5752855 L2,4 C2,1.790861 3.790861,3.23296945e-13 6,3.23296945e-13 L33.9995117,3.23296945e-13 C36.2086507,3.23296945e-13 37.9995117,1.790861 37.9995117,4 L37.9995117,9.999512 C37.9995117,12.208651 36.2086507,13.999512 33.9995117,13.999512 L8,13.999512 C7.83499225,13.999512 7.6723181,13.9895206 7.51254954,13.9701099 L2.52730803,17.9196415 Z"/><path id="Path" fill="#73E1E0" d="M7.51066,44.9703679 L2.52730803,47.9186655 C2.44329744,47.9735407 2.36370847,47.999512 2.29303375,47.999512 C2.1197031,47.999512 2,47.8433828 2,47.5743095 L2,35 C2,32.790861 3.790861,31 6,31 L26,31 C28.209139,31 30,32.790861 30,35 L30,41 C30,43.209139 28.209139,45 26,45 L8,45 C7.8343417,45 7.67103544,44.9899297 7.51066,44.9703679 Z"/><path id="Path" fill="#FFD476" d="M46,19.5 L46,33.0747975 C46,33.3438708 45.8802969,33.5 45.7069663,33.5 C45.6362915,33.5 45.5567026,33.4740287 45.472692,33.4191535 L40.4887103,29.4704446 C40.3285371,29.489956 40.1654415,29.5 40,29.5 L18,29.5 C15.790861,29.5 14,27.709139 14,25.5 L14,19.5 C14,17.290861 15.790861,15.5 18,15.5 L42,15.5 C44.209139,15.5 46,17.290861 46,19.5 Z"/></g></svg>
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--primary: #008ded;
|
|
3
|
-
--secondary: #e0004f;
|
|
4
|
-
--disabled: #bac6d6;
|
|
5
|
-
--black: #000;
|
|
6
|
-
--white: #fff;
|
|
7
|
-
--light-grey: #d7e0ea;
|
|
8
|
-
--grey: #828B96;
|
|
9
|
-
--darkest-grey: #3b4859;
|
|
10
|
-
--cool-grey-600: #A7B2C1;
|
|
11
|
-
--cool-grey-500: #C1CCDA;
|
|
12
|
-
--cool-grey-300: #DDE3EB;
|
|
13
|
-
--cool-grey-150: #F0F4F9;
|
|
14
|
-
--blue-grey-500: #778DA9;
|
|
1
|
+
:root {
|
|
2
|
+
--primary: #008ded;
|
|
3
|
+
--secondary: #e0004f;
|
|
4
|
+
--disabled: #bac6d6;
|
|
5
|
+
--black: #000;
|
|
6
|
+
--white: #fff;
|
|
7
|
+
--light-grey: #d7e0ea;
|
|
8
|
+
--grey: #828B96;
|
|
9
|
+
--darkest-grey: #3b4859;
|
|
10
|
+
--cool-grey-600: #A7B2C1;
|
|
11
|
+
--cool-grey-500: #C1CCDA;
|
|
12
|
+
--cool-grey-300: #DDE3EB;
|
|
13
|
+
--cool-grey-150: #F0F4F9;
|
|
14
|
+
--blue-grey-500: #778DA9;
|
|
15
|
+
--teal: #01DFCB;
|
|
15
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1" viewBox="0 0 48 48"><title>illustration/direction</title><g id="illustration/direction" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><path id="Combined-Shape" fill="#FFD476" d="M23.4917015,33.6030641 L2.93840258,31.4321033 C2.38917316,31.3740904 1.99096346,30.8818233 2.04897631,30.3325939 C2.0747515,30.0885705 2.18934861,29.8625419 2.37095722,29.6975265 L34.2609105,0.721285325 C34.6696614,0.349881049 35.3021022,0.38015648 35.6735064,0.788907393 C35.9232621,1.06377731 36.0001133,1.45442096 35.8730901,1.80341447 L24.5364357,32.9506164 C24.3793473,33.3822133 23.9484565,33.6513092 23.4917015,33.6030641 L23.4917015,33.6030641 Z"/><path id="Combined-Shape-Copy" fill="#FFC445" d="M24.3163597,33.2881029 C24.0306575,33.0138462 23.9337246,32.5968232 24.069176,32.2246735 L35.091923,1.9399251 C35.2266075,1.56988243 35.5659249,1.31333613 35.9586669,1.28460955 C36.5094802,1.24432106 36.9886628,1.65818318 37.0289513,2.20899647 L40.2437557,46.1609256 C40.2644355,46.4436546 40.1641446,46.7218752 39.9678293,46.9263833 C39.5853672,47.3248067 38.9523344,47.3377458 38.5539111,46.9552837 L24.3163597,33.2881029 L24.3163597,33.2881029 Z"/></g></svg>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24">
|
|
2
|
-
<defs>
|
|
3
|
-
<path id="0s7v3h5tpa" d="M12 0c6.075 0 11 4.773 11 10.661 0 4.263-2.192 7.456-6.31 9.646l-6.523 3.625c-.084.047-.173.068-.26.068-.274 0-.526-.213-.526-.51v-2.472C3.438 19.61-.613 13.524 1.625 7.014 2.649 4.033 5.095 1.64 8.164.63 9.469.199 10.759 0 12 0zm0 1.015c-1.163 0-2.34.193-3.499.575-2.76.909-4.958 3.056-5.882 5.745-.943 2.743-.707 5.578.664 7.983 1.344 2.358 3.657 4.076 6.346 4.714.47.11.8.518.8.986v1.598l5.74-3.19c3.897-2.074 5.784-4.937 5.784-8.765 0-5.318-4.465-9.646-9.953-9.646zM14.095 13.2c.29 0 .524.224.524.5s-.234.5-.524.5h-6.81c-.288 0-.523-.224-.523-.5s.235-.5.524-.5zm3.143-3.046c.29 0 .524.224.524.5s-.235.5-.524.5H7.286c-.29 0-.524-.224-.524-.5s.235-.5.524-.5zm0-3.046c.29 0 .524.224.524.5s-.235.5-.524.5H7.286c-.29 0-.524-.224-.524-.5s.235-.5.524-.5z"/>
|
|
4
|
-
</defs>
|
|
5
|
-
<g fill="none" fill-rule="evenodd">
|
|
6
|
-
<g>
|
|
7
|
-
<use fill="#008DED" xlink:href="#0s7v3h5tpa"/>
|
|
8
|
-
</g>
|
|
9
|
-
</g>
|
|
10
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24">
|
|
2
|
+
<defs>
|
|
3
|
+
<path id="0s7v3h5tpa" d="M12 0c6.075 0 11 4.773 11 10.661 0 4.263-2.192 7.456-6.31 9.646l-6.523 3.625c-.084.047-.173.068-.26.068-.274 0-.526-.213-.526-.51v-2.472C3.438 19.61-.613 13.524 1.625 7.014 2.649 4.033 5.095 1.64 8.164.63 9.469.199 10.759 0 12 0zm0 1.015c-1.163 0-2.34.193-3.499.575-2.76.909-4.958 3.056-5.882 5.745-.943 2.743-.707 5.578.664 7.983 1.344 2.358 3.657 4.076 6.346 4.714.47.11.8.518.8.986v1.598l5.74-3.19c3.897-2.074 5.784-4.937 5.784-8.765 0-5.318-4.465-9.646-9.953-9.646zM14.095 13.2c.29 0 .524.224.524.5s-.234.5-.524.5h-6.81c-.288 0-.523-.224-.523-.5s.235-.5.524-.5zm3.143-3.046c.29 0 .524.224.524.5s-.235.5-.524.5H7.286c-.29 0-.524-.224-.524-.5s.235-.5.524-.5zm0-3.046c.29 0 .524.224.524.5s-.235.5-.524.5H7.286c-.29 0-.524-.224-.524-.5s.235-.5.524-.5z"/>
|
|
4
|
+
</defs>
|
|
5
|
+
<g fill="none" fill-rule="evenodd">
|
|
6
|
+
<g>
|
|
7
|
+
<use fill="#008DED" xlink:href="#0s7v3h5tpa"/>
|
|
8
|
+
</g>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="205" height="51" viewBox="0 0 205 51" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
+
<rect width="205" height="51" fill="url(#pattern0)"/>
|
|
3
|
+
<defs>
|
|
4
|
+
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
|
5
|
+
<use xlink:href="#image0_702_6269" transform="scale(0.00487805 0.0196078)"/>
|
|
6
|
+
</pattern>
|
|
7
|
+
<image id="image0_702_6269" width="205" height="51" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAAzCAYAAAA0JIwAAAAAAXNSR0IArs4c6QAAFUpJREFUeF7tXQuUVdV5/v597gCDUAaU+kgUBkRke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aPKVA3RQoDRoZ/vGeqcjgIRCblFuTruyAEhb9K/woEz8N5tUgfgmBfh+K94HpkPmshuZBUPp4KDUCOmhDk3cuAWfnACUsKCg/KhMyYNdpinPop6H1NZh26mt17z4dIKVADRQoDxrDcXqmALwUhAk536IRqckL1XT3+fP8Ws5QEnS5H2AxURMoGASiFoLuZ8SubD6Nc6aGcZRhmkE2MxQsVTUPfDHlMDU86bRLn1GgMtDIdKv2tsAbKLFpC+zsTiwzX8qw9ZezH28y983YYoHLXoW1nmOZm/arA65uWtTHpCiII5S/h67ur5f1D/UZadKBUgokU6By0Ej/Bzb3w++3XgfC10B0sgGKBY098FaEigIwbSSBZ3w7SVmdNsfffpkqqYSTRSOtA+s7MP2kms3K6cNPKdCXFKgONOHM4gBVmesBfI48HpSXzmxbOTHNhiC7q+AzHFGNAIc8W0PA1A5gfAgVLAK6l6B95Dt9uel0rJQC9VCgNtCEMz5xYDK8zBdM6VPij8U5RgSakJGEZZ0k+9mVqBUNJ78WNBCIgv8gevlfMfvEN+rZXNo3pUAjKFAfaCLwdI+Fh0+B6BywngFCa7GSTfJ15zi4BDRMvAXQz0FjDVSwEjNOfK8Rm03HTCnQFxToG9DEV/L4vtHw+p8C8tvANBoejwDhBLA+ziWdfUBkKndu00xb4PFr6OE3cf7xb/XFhtIxUgo0mgL/C00Dqwaz/4N9AAAAAElFTkSuQmCC"/>
|
|
8
|
+
</defs>
|
|
9
|
+
</svg>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
type ButtonProps = {
|
|
3
|
-
children: string | ReactElement;
|
|
4
|
-
category?: string;
|
|
5
|
-
onClick?: VoidFunction;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export default function Button({ children, category, ...props }: ButtonProps): JSX.Element;
|
|
10
|
-
export {};
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
type ButtonProps = {
|
|
3
|
+
children: string | ReactElement;
|
|
4
|
+
category?: string;
|
|
5
|
+
onClick?: VoidFunction;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export default function Button({ children, category, ...props }: ButtonProps): JSX.Element;
|
|
10
|
+
export {};
|