@universal-tennis/ui-shared 0.1.68 → 0.1.70
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 +32 -4
- package/dist/components.js +37 -8
- 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/assets/css/variables.css +6 -3
- package/dist/stories/assets/icon-chat-blue.svg +10 -10
- package/dist/stories/atoms/Button/Button.d.ts +10 -9
- package/dist/stories/atoms/Button/Button.js +95 -79
- package/dist/stories/atoms/Button/Button.js.map +1 -1
- package/dist/stories/atoms/Button/Button.stories.d.ts +17 -16
- package/dist/stories/atoms/Button/Button.stories.js +45 -36
- package/dist/stories/atoms/Button/Button.stories.js.map +1 -1
- package/dist/stories/atoms/Icons/AddIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/AddIcon.js +9 -0
- package/dist/stories/atoms/Icons/AddIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js +7 -0
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.js +7 -0
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.js +8 -0
- package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.js +7 -0
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/CalendarIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/CalendarIcon.js +7 -0
- package/dist/stories/atoms/Icons/CalendarIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/ClockIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/ClockIcon.js +9 -0
- package/dist/stories/atoms/Icons/ClockIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/CloseIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/CloseIcon.js +7 -0
- package/dist/stories/atoms/Icons/CloseIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/DeleteIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/DeleteIcon.js +11 -0
- package/dist/stories/atoms/Icons/DeleteIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/EditIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/EditIcon.js +7 -0
- package/dist/stories/atoms/Icons/EditIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/Icons.stories.d.ts +23 -0
- package/dist/stories/atoms/Icons/Icons.stories.js +178 -0
- package/dist/stories/atoms/Icons/Icons.stories.js.map +1 -0
- package/dist/stories/atoms/Icons/LeftChevronIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/LeftChevronIcon.js +7 -0
- package/dist/stories/atoms/Icons/LeftChevronIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/LocationIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/LocationIcon.js +8 -0
- package/dist/stories/atoms/Icons/LocationIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/MessageIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/MessageIcon.js +7 -0
- package/dist/stories/atoms/Icons/MessageIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/RightChevronIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/RightChevronIcon.js +7 -0
- package/dist/stories/atoms/Icons/RightChevronIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/SessionIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/SessionIcon.js +7 -0
- package/dist/stories/atoms/Icons/SessionIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/SwapIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/SwapIcon.js +7 -0
- package/dist/stories/atoms/Icons/SwapIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/VisibilityIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/VisibilityIcon.js +8 -0
- package/dist/stories/atoms/Icons/VisibilityIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/VisibilityOffIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/VisibilityOffIcon.js +9 -0
- package/dist/stories/atoms/Icons/VisibilityOffIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/WinnerIndicatorIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/WinnerIndicatorIcon.js +32 -0
- package/dist/stories/atoms/Icons/WinnerIndicatorIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/sharedTypes.d.ts +9 -0
- package/dist/stories/atoms/Icons/sharedTypes.js +2 -0
- package/dist/stories/atoms/Icons/sharedTypes.js.map +1 -0
- package/dist/stories/atoms/Map/Map.d.ts +7 -0
- package/dist/stories/atoms/Map/Map.js +9 -0
- package/dist/stories/atoms/Map/Map.js.map +1 -0
- package/dist/stories/atoms/Map/Map.stories.d.ts +9 -0
- package/dist/stories/atoms/Map/Map.stories.js +36 -0
- package/dist/stories/atoms/Map/Map.stories.js.map +1 -0
- package/dist/stories/atoms/Typography/Typography.d.ts +49 -10
- package/dist/stories/atoms/Typography/Typography.js +143 -99
- 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/molecules/AvatarWithName/AvatarWithName.d.ts +27 -0
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.js +21 -0
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.js.map +1 -0
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.d.ts +15 -0
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.js +73 -0
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.stories.js.map +1 -0
- package/dist/stories/molecules/Cards/Cards.stories.d.ts +7 -6
- package/dist/stories/molecules/Cards/Cards.stories.js +64 -26
- package/dist/stories/molecules/Cards/Cards.stories.js.map +1 -1
- package/dist/stories/molecules/Cards/ContactCard.d.ts +3 -9
- package/dist/stories/molecules/Cards/ContactCard.js +38 -38
- package/dist/stories/molecules/Cards/ContactCard.js.map +1 -1
- package/dist/stories/molecules/Cards/DrawCard.d.ts +3 -0
- package/dist/stories/molecules/Cards/DrawCard.js +117 -0
- package/dist/stories/molecules/Cards/DrawCard.js.map +1 -0
- package/dist/stories/molecules/Cards/Modals.stories.d.ts +5 -0
- package/dist/stories/molecules/Cards/Modals.stories.js +73 -0
- package/dist/stories/molecules/Cards/Modals.stories.js.map +1 -0
- package/dist/stories/molecules/Cards/TeamCard.d.ts +3 -7
- package/dist/stories/molecules/Cards/TeamCard.js +20 -20
- package/dist/stories/molecules/Cards/TeamCard.js.map +1 -1
- package/dist/stories/molecules/Cards/TeamDrawCard.d.ts +3 -0
- package/dist/stories/molecules/Cards/TeamDrawCard.js +77 -0
- package/dist/stories/molecules/Cards/TeamDrawCard.js.map +1 -0
- package/dist/stories/molecules/Cards/shared.d.ts +4 -9
- package/dist/stories/molecules/Cards/shared.js +12 -12
- package/dist/stories/molecules/Cards/sharedTypes.d.ts +59 -0
- package/dist/stories/molecules/Cards/sharedTypes.js +3 -0
- package/dist/stories/molecules/Cards/sharedTypes.js.map +1 -0
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.d.ts +27 -0
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.js +25 -0
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.js.map +1 -0
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.d.ts +13 -0
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.js +66 -0
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.js.map +1 -0
- package/dist/stories/organisms/Modals/FullPageModal.d.ts +4 -0
- package/dist/stories/organisms/Modals/FullPageModal.js +60 -0
- package/dist/stories/organisms/Modals/FullPageModal.js.map +1 -0
- package/dist/stories/organisms/Modals/Modals.stories.d.ts +5 -0
- package/dist/stories/organisms/Modals/Modals.stories.js +74 -0
- package/dist/stories/organisms/Modals/Modals.stories.js.map +1 -0
- package/dist/stories/organisms/Modals/sharedTypes.d.ts +14 -0
- package/dist/stories/organisms/Modals/sharedTypes.js +2 -0
- package/dist/stories/organisms/Modals/sharedTypes.js.map +1 -0
- package/dist/stories/organisms/Tables/DrawCardTable.d.ts +3 -0
- package/dist/stories/organisms/Tables/DrawCardTable.js +59 -0
- package/dist/stories/organisms/Tables/DrawCardTable.js.map +1 -0
- package/dist/stories/organisms/Tables/SortableTable.d.ts +23 -0
- package/dist/stories/organisms/Tables/SortableTable.js +34 -0
- package/dist/stories/organisms/Tables/SortableTable.js.map +1 -0
- package/dist/stories/organisms/Tables/Tables.stories.d.ts +8 -0
- package/dist/stories/organisms/Tables/Tables.stories.js +91 -0
- package/dist/stories/organisms/Tables/Tables.stories.js.map +1 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.d.ts +3 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.js +62 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.js.map +1 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.d.ts +3 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.js +43 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.js.map +1 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.d.ts +3 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.js +23 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.js.map +1 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable.d.ts +3 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable.js +126 -0
- package/dist/stories/organisms/Tables/TeamDrawCardTable.js.map +1 -0
- package/dist/stories/organisms/Tables/mockData.d.ts +69 -0
- package/dist/stories/organisms/Tables/mockData.js +98 -0
- package/dist/stories/organisms/Tables/mockData.js.map +1 -0
- package/dist/stories/organisms/Tables/sharedTypes.d.ts +15 -0
- package/dist/stories/organisms/Tables/sharedTypes.js +2 -0
- package/dist/stories/organisms/Tables/sharedTypes.js.map +1 -0
- package/dist/stories/utils/constants.d.ts +3 -0
- package/dist/stories/utils/constants.js +4 -0
- package/dist/stories/utils/constants.js.map +1 -0
- package/dist/stories/utils/useScreenSize.d.ts +4 -0
- package/dist/stories/utils/useScreenSize.js +28 -0
- package/dist/stories/utils/useScreenSize.js.map +1 -0
- package/dist/types/tableDataTypes.d.ts +38 -0
- package/dist/types/tableDataTypes.js +2 -0
- package/dist/types/tableDataTypes.js.map +1 -0
- package/infrastructure/azure-pipelines.yml +112 -112
- package/package.json +93 -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 +146 -135
- 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 +111 -102
- 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 +129 -129
- package/src/stories/organisms/Tables/sharedTypes.ts +17 -17
- 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/Button.d.ts +0 -27
- package/dist/stories/Button.js +0 -51
- package/dist/stories/Button.js.map +0 -1
- package/dist/stories/Button.stories.d.ts +0 -15
- package/dist/stories/Button.stories.js +0 -34
- package/dist/stories/Button.stories.js.map +0 -1
- package/dist/stories/Header.d.ts +0 -19
- package/dist/stories/Header.js +0 -31
- package/dist/stories/Header.js.map +0 -1
- package/dist/stories/Header.stories.d.ts +0 -11
- package/dist/stories/Header.stories.js +0 -20
- package/dist/stories/Header.stories.js.map +0 -1
- package/dist/stories/Page.d.ts +0 -1
- package/dist/stories/Page.js +0 -38
- package/dist/stories/Page.js.map +0 -1
- package/dist/stories/Page.stories.d.ts +0 -11
- package/dist/stories/Page.stories.js +0 -30
- package/dist/stories/Page.stories.js.map +0 -1
- package/dist/stories/assets/comments.svg +0 -1
- package/dist/stories/assets/direction.svg +0 -1
- package/dist/stories/atoms/Button/index.d.ts +0 -1
- package/dist/stories/atoms/Button/index.js +0 -2
- package/dist/stories/atoms/Button/index.js.map +0 -1
- package/dist/stories/atoms/Button.d.ts +0 -7
- package/dist/stories/atoms/Button.js +0 -20
- package/dist/stories/atoms/Button.js.map +0 -1
- package/dist/stories/atoms/Button.stories.d.ts +0 -13
- package/dist/stories/atoms/Button.stories.js +0 -22
- package/dist/stories/atoms/Button.stories.js.map +0 -1
- package/dist/stories/atoms/Typography/index.d.ts +0 -1
- package/dist/stories/atoms/Typography/index.js +0 -2
- package/dist/stories/atoms/Typography/index.js.map +0 -1
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
trigger:
|
|
2
|
-
tags:
|
|
3
|
-
include:
|
|
4
|
-
- '*'
|
|
5
|
-
|
|
6
|
-
pool:
|
|
7
|
-
vmImage: ubuntu-latest
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
variables:
|
|
11
|
-
projectKey: 'universaltennis_ui-shared'
|
|
12
|
-
projectName: 'ui-shared'
|
|
13
|
-
nodeVersion: '18.x'
|
|
14
|
-
sources: 'src'
|
|
15
|
-
npm_token: ''
|
|
16
|
-
# needed to label if the build is on a tag or not
|
|
17
|
-
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags') }}:
|
|
18
|
-
gitTag: $[replace(variables['Build.SourceBranch'], 'refs/tags/', '')]
|
|
19
|
-
|
|
20
|
-
stages:
|
|
21
|
-
- stage: sonarcloud
|
|
22
|
-
displayName: SonarCloud
|
|
23
|
-
jobs:
|
|
24
|
-
- job: run_sonarcloud
|
|
25
|
-
displayName: Prepare and Run SonarCloud
|
|
26
|
-
steps:
|
|
27
|
-
- checkout: self
|
|
28
|
-
fetchDepth: 0
|
|
29
|
-
- task: AzureKeyVault@2
|
|
30
|
-
inputs:
|
|
31
|
-
azureSubscription: 'utr-azure'
|
|
32
|
-
KeyVaultName: 'utr-shared-akv'
|
|
33
|
-
SecretsFilter: 'NpmPublishToken'
|
|
34
|
-
OutputVariable: 'npm_token'
|
|
35
|
-
- task: SonarCloudPrepare@1
|
|
36
|
-
displayName: 'Prepare SonarCloud'
|
|
37
|
-
inputs:
|
|
38
|
-
# This is an eng-admin user service connection in ADO
|
|
39
|
-
SonarCloud: 'utr-sonar-eng-admin'
|
|
40
|
-
organization: 'utr'
|
|
41
|
-
scannerMode: 'CLI'
|
|
42
|
-
configMode: 'manual'
|
|
43
|
-
cliProjectKey: $(projectKey)
|
|
44
|
-
cliProjectName: $(projectName)
|
|
45
|
-
cliSources: $(sources)
|
|
46
|
-
extraProperties: |
|
|
47
|
-
sonar.qualitygate.wait=true
|
|
48
|
-
sonar.eslint.reportPaths=$(Build.SourcesDirectory)/reports/eslint-result.json
|
|
49
|
-
- task: UseNode@1
|
|
50
|
-
displayName: 'Use Node $(nodeVersion)'
|
|
51
|
-
inputs:
|
|
52
|
-
version: $(nodeVersion)
|
|
53
|
-
checkLatest: true
|
|
54
|
-
- task: YarnInstaller@3
|
|
55
|
-
displayName: 'Install yarn'
|
|
56
|
-
inputs:
|
|
57
|
-
checkLatest: true
|
|
58
|
-
includePrerelease: false
|
|
59
|
-
- task: Yarn@3
|
|
60
|
-
displayName: 'yarn install'
|
|
61
|
-
inputs:
|
|
62
|
-
arguments: 'install'
|
|
63
|
-
env:
|
|
64
|
-
NPM_TOKEN: $(npm_token)
|
|
65
|
-
- task: Yarn@3
|
|
66
|
-
displayName: 'yarn run eslint:ci'
|
|
67
|
-
continueOnError: true
|
|
68
|
-
inputs:
|
|
69
|
-
arguments: 'run eslint:ci'
|
|
70
|
-
- task: SonarCloudAnalyze@1
|
|
71
|
-
- task: SonarCloudPublish@1
|
|
72
|
-
inputs:
|
|
73
|
-
pollingTimeoutSec: '300'
|
|
74
|
-
|
|
75
|
-
- ${{ if ne(variables['gitTag'], '') }}:
|
|
76
|
-
- stage: publish
|
|
77
|
-
displayName: Publish NPM Package
|
|
78
|
-
# dependsOn: sonarcloud
|
|
79
|
-
jobs:
|
|
80
|
-
- job: publish
|
|
81
|
-
displayName: publish npm
|
|
82
|
-
steps:
|
|
83
|
-
- checkout: self
|
|
84
|
-
fetchDepth: 0
|
|
85
|
-
- task: UseNode@1
|
|
86
|
-
inputs:
|
|
87
|
-
version: $(nodeVersion)
|
|
88
|
-
checkLatest: true
|
|
89
|
-
- task: YarnInstaller@3
|
|
90
|
-
displayName: 'Install yarn'
|
|
91
|
-
inputs:
|
|
92
|
-
checkLatest: true
|
|
93
|
-
includePrerelease: false
|
|
94
|
-
- task: Yarn@3
|
|
95
|
-
displayName: 'yarn install'
|
|
96
|
-
inputs:
|
|
97
|
-
arguments: 'install'
|
|
98
|
-
env:
|
|
99
|
-
NPM_TOKEN: $(npm_token)
|
|
100
|
-
- task: Yarn@3
|
|
101
|
-
displayName: 'yarn run publish:npm'
|
|
102
|
-
inputs:
|
|
103
|
-
arguments: 'run publish:npm'
|
|
104
|
-
env:
|
|
105
|
-
NPM_TOKEN: $(npm_token)
|
|
106
|
-
- task: Bash@3
|
|
107
|
-
inputs:
|
|
108
|
-
targetType: 'inline'
|
|
109
|
-
script: |
|
|
110
|
-
npm publish
|
|
111
|
-
env:
|
|
112
|
-
NPM_TOKEN: $(npm_token)
|
|
1
|
+
trigger:
|
|
2
|
+
tags:
|
|
3
|
+
include:
|
|
4
|
+
- '*'
|
|
5
|
+
|
|
6
|
+
pool:
|
|
7
|
+
vmImage: ubuntu-latest
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
variables:
|
|
11
|
+
projectKey: 'universaltennis_ui-shared'
|
|
12
|
+
projectName: 'ui-shared'
|
|
13
|
+
nodeVersion: '18.x'
|
|
14
|
+
sources: 'src'
|
|
15
|
+
npm_token: ''
|
|
16
|
+
# needed to label if the build is on a tag or not
|
|
17
|
+
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags') }}:
|
|
18
|
+
gitTag: $[replace(variables['Build.SourceBranch'], 'refs/tags/', '')]
|
|
19
|
+
|
|
20
|
+
stages:
|
|
21
|
+
- stage: sonarcloud
|
|
22
|
+
displayName: SonarCloud
|
|
23
|
+
jobs:
|
|
24
|
+
- job: run_sonarcloud
|
|
25
|
+
displayName: Prepare and Run SonarCloud
|
|
26
|
+
steps:
|
|
27
|
+
- checkout: self
|
|
28
|
+
fetchDepth: 0
|
|
29
|
+
- task: AzureKeyVault@2
|
|
30
|
+
inputs:
|
|
31
|
+
azureSubscription: 'utr-azure'
|
|
32
|
+
KeyVaultName: 'utr-shared-akv'
|
|
33
|
+
SecretsFilter: 'NpmPublishToken'
|
|
34
|
+
OutputVariable: 'npm_token'
|
|
35
|
+
- task: SonarCloudPrepare@1
|
|
36
|
+
displayName: 'Prepare SonarCloud'
|
|
37
|
+
inputs:
|
|
38
|
+
# This is an eng-admin user service connection in ADO
|
|
39
|
+
SonarCloud: 'utr-sonar-eng-admin'
|
|
40
|
+
organization: 'utr'
|
|
41
|
+
scannerMode: 'CLI'
|
|
42
|
+
configMode: 'manual'
|
|
43
|
+
cliProjectKey: $(projectKey)
|
|
44
|
+
cliProjectName: $(projectName)
|
|
45
|
+
cliSources: $(sources)
|
|
46
|
+
extraProperties: |
|
|
47
|
+
sonar.qualitygate.wait=true
|
|
48
|
+
sonar.eslint.reportPaths=$(Build.SourcesDirectory)/reports/eslint-result.json
|
|
49
|
+
- task: UseNode@1
|
|
50
|
+
displayName: 'Use Node $(nodeVersion)'
|
|
51
|
+
inputs:
|
|
52
|
+
version: $(nodeVersion)
|
|
53
|
+
checkLatest: true
|
|
54
|
+
- task: YarnInstaller@3
|
|
55
|
+
displayName: 'Install yarn'
|
|
56
|
+
inputs:
|
|
57
|
+
checkLatest: true
|
|
58
|
+
includePrerelease: false
|
|
59
|
+
- task: Yarn@3
|
|
60
|
+
displayName: 'yarn install'
|
|
61
|
+
inputs:
|
|
62
|
+
arguments: 'install'
|
|
63
|
+
env:
|
|
64
|
+
NPM_TOKEN: $(npm_token)
|
|
65
|
+
- task: Yarn@3
|
|
66
|
+
displayName: 'yarn run eslint:ci'
|
|
67
|
+
continueOnError: true
|
|
68
|
+
inputs:
|
|
69
|
+
arguments: 'run eslint:ci'
|
|
70
|
+
- task: SonarCloudAnalyze@1
|
|
71
|
+
- task: SonarCloudPublish@1
|
|
72
|
+
inputs:
|
|
73
|
+
pollingTimeoutSec: '300'
|
|
74
|
+
|
|
75
|
+
- ${{ if ne(variables['gitTag'], '') }}:
|
|
76
|
+
- stage: publish
|
|
77
|
+
displayName: Publish NPM Package
|
|
78
|
+
# dependsOn: sonarcloud
|
|
79
|
+
jobs:
|
|
80
|
+
- job: publish
|
|
81
|
+
displayName: publish npm
|
|
82
|
+
steps:
|
|
83
|
+
- checkout: self
|
|
84
|
+
fetchDepth: 0
|
|
85
|
+
- task: UseNode@1
|
|
86
|
+
inputs:
|
|
87
|
+
version: $(nodeVersion)
|
|
88
|
+
checkLatest: true
|
|
89
|
+
- task: YarnInstaller@3
|
|
90
|
+
displayName: 'Install yarn'
|
|
91
|
+
inputs:
|
|
92
|
+
checkLatest: true
|
|
93
|
+
includePrerelease: false
|
|
94
|
+
- task: Yarn@3
|
|
95
|
+
displayName: 'yarn install'
|
|
96
|
+
inputs:
|
|
97
|
+
arguments: 'install'
|
|
98
|
+
env:
|
|
99
|
+
NPM_TOKEN: $(npm_token)
|
|
100
|
+
- task: Yarn@3
|
|
101
|
+
displayName: 'yarn run publish:npm'
|
|
102
|
+
inputs:
|
|
103
|
+
arguments: 'run publish:npm'
|
|
104
|
+
env:
|
|
105
|
+
NPM_TOKEN: $(npm_token)
|
|
106
|
+
- task: Bash@3
|
|
107
|
+
inputs:
|
|
108
|
+
targetType: 'inline'
|
|
109
|
+
script: |
|
|
110
|
+
npm publish
|
|
111
|
+
env:
|
|
112
|
+
NPM_TOKEN: $(npm_token)
|
package/package.json
CHANGED
|
@@ -1,95 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@universal-tennis/ui-shared",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"main": "dist/items.js",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"homepage": "https://universaltennis.com",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@emotion/react": "^11.10.5",
|
|
9
|
-
"@emotion/styled": "^11.10.5",
|
|
10
|
-
"@mui/icons-material": "^5.11.0",
|
|
11
|
-
"@mui/material": "5.14.17",
|
|
12
|
-
"copyfiles": "^2.4.1",
|
|
13
|
-
"cross-env": "^7.0.3",
|
|
14
|
-
"libphonenumber-js": "^1.10.18",
|
|
15
|
-
"react": "^18.2.0",
|
|
16
|
-
"react-dom": "^18.2.0",
|
|
17
|
-
"react-scripts": "5.0.1",
|
|
18
|
-
"typescript": "^4.9.3",
|
|
19
|
-
"typescript-plugin-css-modules": "^4.1.1",
|
|
20
|
-
"web-vitals": "^2.1.4"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"start": "start-storybook -p 6006 -s public",
|
|
24
|
-
"build-storybook": "build-storybook -s public",
|
|
25
|
-
"publish:npm": "tsc && yarn copy-files",
|
|
26
|
-
"publish-package": "npm publish --access public",
|
|
27
|
-
"copy-files": "copyfiles -u 1 src/stories/assets/*.svg src/stories/assets/*.png src/stories/assets/*.gif src/stories/assets/css/*.css dist/",
|
|
28
|
-
"eslint": "npx eslint --ext .jsx,.js src --fix"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"react-app"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"not
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"last 1
|
|
55
|
-
"last 1
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"@storybook/addon-
|
|
61
|
-
"@storybook/addon-
|
|
62
|
-
"@storybook/addon-
|
|
63
|
-
"@storybook/
|
|
64
|
-
"@storybook/
|
|
65
|
-
"@storybook/
|
|
66
|
-
"@storybook/
|
|
67
|
-
"@storybook/
|
|
68
|
-
"@storybook/
|
|
69
|
-
"@
|
|
70
|
-
"@types/
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"eslint": "^
|
|
75
|
-
"eslint-
|
|
76
|
-
"eslint-import
|
|
77
|
-
"eslint-plugin-
|
|
78
|
-
"eslint-plugin-
|
|
79
|
-
"eslint-plugin-react": "^
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"author": "universal-tennis"
|
|
1
|
+
{
|
|
2
|
+
"name": "@universal-tennis/ui-shared",
|
|
3
|
+
"version": "0.1.70",
|
|
4
|
+
"main": "dist/items.js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://universaltennis.com",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@emotion/react": "^11.10.5",
|
|
9
|
+
"@emotion/styled": "^11.10.5",
|
|
10
|
+
"@mui/icons-material": "^5.11.0",
|
|
11
|
+
"@mui/material": "5.14.17",
|
|
12
|
+
"copyfiles": "^2.4.1",
|
|
13
|
+
"cross-env": "^7.0.3",
|
|
14
|
+
"libphonenumber-js": "^1.10.18",
|
|
15
|
+
"react": "^18.2.0",
|
|
16
|
+
"react-dom": "^18.2.0",
|
|
17
|
+
"react-scripts": "5.0.1",
|
|
18
|
+
"typescript": "^4.9.3",
|
|
19
|
+
"typescript-plugin-css-modules": "^4.1.1",
|
|
20
|
+
"web-vitals": "^2.1.4"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"start": "start-storybook -p 6006 -s public",
|
|
24
|
+
"build-storybook": "build-storybook -s public",
|
|
25
|
+
"publish:npm": "tsc && yarn copy-files",
|
|
26
|
+
"publish-package": "npm publish --access public",
|
|
27
|
+
"copy-files": "copyfiles -u 1 src/stories/assets/*.svg src/stories/assets/*.png src/stories/assets/*.gif src/stories/assets/css/*.css dist/",
|
|
28
|
+
"eslint": "npx eslint --ext .jsx,.js src --fix"
|
|
29
|
+
},
|
|
30
|
+
"eslintConfig": {
|
|
31
|
+
"extends": [
|
|
32
|
+
"react-app",
|
|
33
|
+
"react-app/jest"
|
|
34
|
+
],
|
|
35
|
+
"overrides": [
|
|
36
|
+
{
|
|
37
|
+
"files": [
|
|
38
|
+
"**/*.stories.*"
|
|
39
|
+
],
|
|
40
|
+
"rules": {
|
|
41
|
+
"import/no-anonymous-default-export": "off"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"browserslist": {
|
|
47
|
+
"production": [
|
|
48
|
+
">0.2%",
|
|
49
|
+
"not dead",
|
|
50
|
+
"not op_mini all"
|
|
51
|
+
],
|
|
52
|
+
"development": [
|
|
53
|
+
"last 1 chrome version",
|
|
54
|
+
"last 1 firefox version",
|
|
55
|
+
"last 1 safari version"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@storybook/addon-actions": "^6.5.13",
|
|
60
|
+
"@storybook/addon-essentials": "^6.5.13",
|
|
61
|
+
"@storybook/addon-interactions": "^6.5.13",
|
|
62
|
+
"@storybook/addon-links": "^6.5.13",
|
|
63
|
+
"@storybook/builder-webpack5": "^6.5.13",
|
|
64
|
+
"@storybook/manager-webpack5": "^6.5.13",
|
|
65
|
+
"@storybook/node-logger": "^6.5.13",
|
|
66
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
67
|
+
"@storybook/react": "^6.5.13",
|
|
68
|
+
"@storybook/testing-library": "^0.0.13",
|
|
69
|
+
"@types/babel__core": "^7.1.20",
|
|
70
|
+
"@types/react": "^18.0.25",
|
|
71
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
72
|
+
"css-loader": "^6.7.3",
|
|
73
|
+
"eslint": "^8.28.0",
|
|
74
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
75
|
+
"eslint-import-resolver-typescript": "^3.5.2",
|
|
76
|
+
"eslint-plugin-import": "^2.25.3",
|
|
77
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
78
|
+
"eslint-plugin-react": "^7.28.0",
|
|
79
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
80
|
+
"eslint-plugin-storybook": "^0.6.7",
|
|
81
|
+
"extract-text-webpack-plugin": "^3.0.2",
|
|
82
|
+
"node-sass": "^8.0.0",
|
|
83
|
+
"prop-types": "^15.8.1",
|
|
84
|
+
"sass-loader": "^13.2.0",
|
|
85
|
+
"style-loader": "^3.3.1",
|
|
86
|
+
"webpack": "^5.75.0"
|
|
87
|
+
},
|
|
88
|
+
"description": "Shared UI components for UT",
|
|
89
|
+
"repository": {
|
|
90
|
+
"type": "git",
|
|
91
|
+
"url": "git+https://bitbucket.org/universaltennis/ui-shared.git"
|
|
92
|
+
},
|
|
93
|
+
"author": "universal-tennis"
|
|
95
94
|
}
|
package/src/App.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
function App() {
|
|
2
|
-
return (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export default App;
|
|
1
|
+
function App() {
|
|
2
|
+
return (
|
|
3
|
+
<div className="App">
|
|
4
|
+
<header className="App-header">
|
|
5
|
+
<p>
|
|
6
|
+
Edit
|
|
7
|
+
{' '}
|
|
8
|
+
<code>src/App.js</code>
|
|
9
|
+
{' '}
|
|
10
|
+
and save to reload.
|
|
11
|
+
</p>
|
|
12
|
+
<a
|
|
13
|
+
className="App-link"
|
|
14
|
+
href="https://reactjs.org"
|
|
15
|
+
target="_blank"
|
|
16
|
+
rel="noopener noreferrer"
|
|
17
|
+
>
|
|
18
|
+
Learn React
|
|
19
|
+
</a>
|
|
20
|
+
</header>
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default App;
|
package/src/components.jsx
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import "./stories/assets/css/variables.css";
|
|
2
|
-
|
|
3
|
-
// ATOMS
|
|
4
|
-
export { default as Button } from './stories/atoms/Button/Button';
|
|
5
|
-
export { default as Map } from './stories/atoms/Map/Map';
|
|
6
|
-
export { default as Typography } from './stories/atoms/Typography/Typography';
|
|
7
|
-
|
|
8
|
-
// ATOMS - ICONS
|
|
9
|
-
export { default as AddIcon } from './stories/atoms/Icons/AddIcon';
|
|
10
|
-
export { default as AvailabilityMaybeIcon } from './stories/atoms/Icons/AvailabilityMaybeIcon';
|
|
11
|
-
export { default as AvailabilityNoIcon } from './stories/atoms/Icons/AvailabilityNoIcon';
|
|
12
|
-
export { default as AvailabilityYesIcon } from './stories/atoms/Icons/AvailabilityYesIcon';
|
|
13
|
-
export { default as AvailabilityNotSetIcon } from './stories/atoms/Icons/AvailabilityNotSetIcon';
|
|
14
|
-
export { default as CalendarIcon } from './stories/atoms/Icons/CalendarIcon';
|
|
15
|
-
export { default as ClockIcon } from './stories/atoms/Icons/ClockIcon';
|
|
16
|
-
export { default as CloseIcon } from './stories/atoms/Icons/CloseIcon';
|
|
17
|
-
export { default as DeleteIcon } from './stories/atoms/Icons/DeleteIcon';
|
|
18
|
-
export { default as EditIcon } from './stories/atoms/Icons/EditIcon';
|
|
19
|
-
export { default as LocationIcon } from './stories/atoms/Icons/LocationIcon';
|
|
20
|
-
export { default as LeftChevronIcon } from './stories/atoms/Icons/LeftChevronIcon';
|
|
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 SwapIcon } from './stories/atoms/Icons/SwapIcon';
|
|
25
|
-
export { default as VisibilityIcon } from './stories/atoms/Icons/VisibilityIcon';
|
|
26
|
-
export { default as VisibilityOffIcon } from './stories/atoms/Icons/VisibilityOffIcon';
|
|
27
|
-
export { default as WinnerIndicatorIcon } from './stories/atoms/Icons/WinnerIndicatorIcon';
|
|
28
|
-
|
|
29
|
-
// MOLECULES
|
|
30
|
-
export { default as AvatarWithName } from './stories/molecules/AvatarWithName/AvatarWithName';
|
|
31
|
-
export { default as ContactCard } from './stories/molecules/Cards/ContactCard';
|
|
32
|
-
export { default as DrawCard } from './stories/molecules/Cards/DrawCard';
|
|
33
|
-
export { default as SquareAvatarWithName } from './stories/molecules/SquareAvatarWithName/SquareAvatarWithName';
|
|
34
|
-
export { default as TeamCard } from './stories/molecules/Cards/TeamCard';
|
|
35
|
-
export { default as TeamDrawCard } from './stories/molecules/Cards/TeamDrawCard';
|
|
36
|
-
|
|
37
|
-
// ORGANISMS
|
|
38
|
-
export { default as DrawCardTable } from './stories/organisms/Tables/DrawCardTable';
|
|
39
|
-
export { default as FullPageModal } from './stories/organisms/Modals/FullPageModal';
|
|
40
|
-
export { default as SortableTable } from './stories/organisms/Tables/SortableTable';
|
|
41
|
-
export { default as TeamDrawCardTable } from './stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable';
|
|
1
|
+
import "./stories/assets/css/variables.css";
|
|
2
|
+
|
|
3
|
+
// ATOMS
|
|
4
|
+
export { default as Button } from './stories/atoms/Button/Button';
|
|
5
|
+
export { default as Map } from './stories/atoms/Map/Map';
|
|
6
|
+
export { default as Typography } from './stories/atoms/Typography/Typography';
|
|
7
|
+
|
|
8
|
+
// ATOMS - ICONS
|
|
9
|
+
export { default as AddIcon } from './stories/atoms/Icons/AddIcon';
|
|
10
|
+
export { default as AvailabilityMaybeIcon } from './stories/atoms/Icons/AvailabilityMaybeIcon';
|
|
11
|
+
export { default as AvailabilityNoIcon } from './stories/atoms/Icons/AvailabilityNoIcon';
|
|
12
|
+
export { default as AvailabilityYesIcon } from './stories/atoms/Icons/AvailabilityYesIcon';
|
|
13
|
+
export { default as AvailabilityNotSetIcon } from './stories/atoms/Icons/AvailabilityNotSetIcon';
|
|
14
|
+
export { default as CalendarIcon } from './stories/atoms/Icons/CalendarIcon';
|
|
15
|
+
export { default as ClockIcon } from './stories/atoms/Icons/ClockIcon';
|
|
16
|
+
export { default as CloseIcon } from './stories/atoms/Icons/CloseIcon';
|
|
17
|
+
export { default as DeleteIcon } from './stories/atoms/Icons/DeleteIcon';
|
|
18
|
+
export { default as EditIcon } from './stories/atoms/Icons/EditIcon';
|
|
19
|
+
export { default as LocationIcon } from './stories/atoms/Icons/LocationIcon';
|
|
20
|
+
export { default as LeftChevronIcon } from './stories/atoms/Icons/LeftChevronIcon';
|
|
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 SwapIcon } from './stories/atoms/Icons/SwapIcon';
|
|
25
|
+
export { default as VisibilityIcon } from './stories/atoms/Icons/VisibilityIcon';
|
|
26
|
+
export { default as VisibilityOffIcon } from './stories/atoms/Icons/VisibilityOffIcon';
|
|
27
|
+
export { default as WinnerIndicatorIcon } from './stories/atoms/Icons/WinnerIndicatorIcon';
|
|
28
|
+
|
|
29
|
+
// MOLECULES
|
|
30
|
+
export { default as AvatarWithName } from './stories/molecules/AvatarWithName/AvatarWithName';
|
|
31
|
+
export { default as ContactCard } from './stories/molecules/Cards/ContactCard';
|
|
32
|
+
export { default as DrawCard } from './stories/molecules/Cards/DrawCard';
|
|
33
|
+
export { default as SquareAvatarWithName } from './stories/molecules/SquareAvatarWithName/SquareAvatarWithName';
|
|
34
|
+
export { default as TeamCard } from './stories/molecules/Cards/TeamCard';
|
|
35
|
+
export { default as TeamDrawCard } from './stories/molecules/Cards/TeamDrawCard';
|
|
36
|
+
|
|
37
|
+
// ORGANISMS
|
|
38
|
+
export { default as DrawCardTable } from './stories/organisms/Tables/DrawCardTable';
|
|
39
|
+
export { default as FullPageModal } from './stories/organisms/Modals/FullPageModal';
|
|
40
|
+
export { default as SortableTable } from './stories/organisms/Tables/SortableTable';
|
|
41
|
+
export { default as TeamDrawCardTable } from './stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable';
|
package/src/custom.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare module '*.jpg';
|
|
2
|
-
declare module '*.png';
|
|
3
|
-
declare module '*.woff2';
|
|
4
|
-
declare module '*.woff';
|
|
5
|
-
declare module '*.ttf';
|
|
6
|
-
|
|
7
|
-
declare module '*.svg' {
|
|
8
|
-
import React = require('react');
|
|
9
|
-
|
|
10
|
-
export const ReactComponent: React.SFC<React.SVGProps<SVGSVGElement>>;
|
|
11
|
-
const src: string;
|
|
12
|
-
export default src;
|
|
13
|
-
}
|
|
1
|
+
declare module '*.jpg';
|
|
2
|
+
declare module '*.png';
|
|
3
|
+
declare module '*.woff2';
|
|
4
|
+
declare module '*.woff';
|
|
5
|
+
declare module '*.ttf';
|
|
6
|
+
|
|
7
|
+
declare module '*.svg' {
|
|
8
|
+
import React = require('react');
|
|
9
|
+
|
|
10
|
+
export const ReactComponent: React.SFC<React.SVGProps<SVGSVGElement>>;
|
|
11
|
+
const src: string;
|
|
12
|
+
export default src;
|
|
13
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
|
|
7
|
-
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
8
|
-
root.render(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
// If you want to start measuring performance in your app, pass a function
|
|
15
|
-
// to log results (for example: reportWebVitals(console.log))
|
|
16
|
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
17
|
-
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
|
+
|
|
7
|
+
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
8
|
+
root.render(
|
|
9
|
+
<React.StrictMode>
|
|
10
|
+
<App />
|
|
11
|
+
</React.StrictMode>
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
// If you want to start measuring performance in your app, pass a function
|
|
15
|
+
// to log results (for example: reportWebVitals(console.log))
|
|
16
|
+
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
17
|
+
reportWebVitals();
|
package/src/items.jsx
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./components');
|
|
1
|
+
module.exports = require('./components');
|
|
@@ -1,15 +1,15 @@
|
|
|
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
15
|
}
|