@universal-tennis/ui-shared 0.1.96 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -1
- package/.eslintrc.js +73 -73
- package/.storybook/main.js +16 -16
- package/.storybook/preview.js +17 -17
- package/.storybook/typography.css +5 -26
- package/.storybook/variables.css +16 -16
- package/README.md +129 -129
- package/dist/App.d.ts +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/typography.css +5 -26
- package/dist/stories/assets/css/variables.css +15 -15
- 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 -9
- package/dist/stories/atoms/Button/Button.d.ts +1 -1
- package/dist/stories/atoms/Button/Button.js.map +1 -1
- package/dist/stories/atoms/Button/index.d.ts +1 -0
- package/dist/stories/atoms/Button/index.js +2 -0
- package/dist/stories/atoms/Button/index.js.map +1 -0
- package/dist/stories/atoms/Button.d.ts +7 -0
- package/dist/stories/atoms/Button.js +20 -0
- package/dist/stories/atoms/Button.js.map +1 -0
- package/dist/stories/atoms/Button.stories.d.ts +13 -0
- package/dist/stories/atoms/Button.stories.js +22 -0
- package/dist/stories/atoms/Button.stories.js.map +1 -0
- package/dist/stories/atoms/Icons/AddIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/AvailabilityNotSetIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/BallInMotionIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/CalendarIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/ClockIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/CloseIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/DeleteIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/DoublePersonIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/EditIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/LeftChevronIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/LineIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/LocationIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/MessageIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/PickleballBallIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/RightChevronIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SessionIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SinglePersonIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SinglePersonV2Icon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SocialMediaFacebookIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SocialMediaInstagramIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SocialMediaTikTokIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SocialMediaXIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SocialMediaYoutubeIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SwapIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/SwapNoBorderIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/TennisBallIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/VerifiedIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/VisibilityIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/VisibilityOffIcon.d.ts +2 -2
- package/dist/stories/atoms/Icons/WinnerIndicatorIcon.d.ts +2 -2
- package/dist/stories/atoms/Typography/Typography.d.ts +2 -2
- package/dist/stories/atoms/Typography/Typography.js.map +1 -1
- 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 +2 -2
- package/dist/stories/molecules/AvatarWithName/AvatarWithName.d.ts +2 -2
- package/dist/stories/molecules/Cards/ContactCard.d.ts +2 -2
- package/dist/stories/molecules/Cards/DrawCard.d.ts +2 -2
- package/dist/stories/molecules/Cards/DrawCard.js.map +1 -1
- package/dist/stories/molecules/Cards/TeamCard.d.ts +2 -2
- package/dist/stories/molecules/Cards/TeamDrawCard.d.ts +2 -2
- package/dist/stories/molecules/Cards/shared.d.ts +1 -4
- package/dist/stories/molecules/FooterSection/FooterSection.d.ts +2 -2
- package/dist/stories/molecules/GlobalNavItem/GlobalNavItem.d.ts +2 -2
- package/dist/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.d.ts +2 -2
- package/dist/stories/organisms/Footer/Footer.d.ts +2 -2
- package/dist/stories/organisms/Footer/Footer.js +2 -6
- package/dist/stories/organisms/Footer/Footer.js.map +1 -1
- package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.d.ts +2 -2
- package/dist/stories/organisms/GlobalNavigation/GlobalNavigation.js.map +1 -1
- package/dist/stories/organisms/Modals/FullPageModal.d.ts +2 -2
- package/dist/stories/organisms/Tables/DrawCardTable.d.ts +2 -2
- package/dist/stories/organisms/Tables/DrawCardTable.js +2 -2
- package/dist/stories/organisms/Tables/SortableTable.d.ts +2 -2
- package/dist/stories/organisms/Tables/SortableTable.js.map +1 -1
- package/dist/stories/organisms/Tables/TeamDrawCardTable/DesktopTableRows.d.ts +2 -2
- package/dist/stories/organisms/Tables/TeamDrawCardTable/MobileTableRows.d.ts +2 -2
- package/dist/stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable.d.ts +2 -2
- package/dist/stories/organisms/Tables/mockData.d.ts +2 -2
- package/dist/stories/utils/constants.js.map +1 -1
- package/infrastructure/azure-pipelines.yml +112 -112
- package/package.json +99 -99
- package/public/index.html +50 -45
- package/src/App.js +25 -25
- package/src/components.jsx +52 -52
- package/src/custom.d.ts +13 -13
- package/src/index.js +17 -17
- package/src/items.jsx +1 -1
- package/src/stories/Introduction.stories.mdx +179 -179
- package/src/stories/assets/css/typography.css +5 -26
- package/src/stories/assets/css/variables.css +15 -15
- 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 -10
- package/src/stories/assets/icons/icon-social-media-instagram.svg +3 -3
- package/src/stories/assets/icons/icon-social-media-tiktok.svg +10 -10
- package/src/stories/assets/icons/icon-social-media-x.svg +10 -10
- package/src/stories/assets/icons/icon-social-media-youtube.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/assets/utr-sports-logo.svg +9 -9
- 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/BallInMotionIcon.tsx +15 -15
- 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 +372 -372
- 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/PickleballBallIcon.tsx +22 -22
- 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/SinglePersonV2Icon.tsx +13 -13
- package/src/stories/atoms/Icons/SocialMediaFacebookIcon.tsx +19 -19
- package/src/stories/atoms/Icons/SocialMediaInstagramIcon.tsx +11 -11
- package/src/stories/atoms/Icons/SocialMediaTikTokIcon.tsx +18 -18
- package/src/stories/atoms/Icons/SocialMediaXIcon.tsx +18 -18
- package/src/stories/atoms/Icons/SocialMediaYoutubeIcon.tsx +11 -11
- package/src/stories/atoms/Icons/SwapIcon.tsx +11 -11
- package/src/stories/atoms/Icons/SwapNoBorderIcon.tsx +14 -14
- package/src/stories/atoms/Icons/TennisBallIcon.tsx +13 -13
- 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 +159 -159
- package/src/stories/molecules/Cards/sharedTypes.ts +69 -69
- package/src/stories/molecules/FooterSection/FooterSection.stories.tsx +25 -25
- package/src/stories/molecules/FooterSection/FooterSection.tsx +34 -34
- package/src/stories/molecules/FooterSection/sharedTypes.ts +6 -6
- package/src/stories/molecules/GlobalNavItem/GlobalNavItem.stories.tsx +22 -22
- package/src/stories/molecules/GlobalNavItem/GlobalNavItem.tsx +51 -51
- package/src/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.stories.tsx +96 -96
- package/src/stories/molecules/SquareAvatarWithName/SquareAvatarWithName.tsx +112 -112
- package/src/stories/organisms/Footer/Footer.stories.tsx +63 -63
- package/src/stories/organisms/Footer/Footer.tsx +155 -165
- package/src/stories/organisms/Footer/sharedTypes.ts +17 -17
- package/src/stories/organisms/GlobalNavigation/GlobalNavigation.stories.tsx +210 -210
- package/src/stories/organisms/GlobalNavigation/GlobalNavigation.tsx +120 -120
- 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 +131 -131
- package/src/stories/organisms/Tables/sharedTypes.ts +17 -17
- package/src/stories/utils/constants.ts +31 -31
- 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/package.json
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@universal-tennis/ui-shared",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"main": "dist/items.js",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"homepage": "https://universaltennis.com",
|
|
7
|
-
"peerDependencies": {
|
|
8
|
-
"react": "^18.2.0",
|
|
9
|
-
"react-dom": "^18.2.0"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@emotion/react": "^11.10.5",
|
|
13
|
-
"@emotion/styled": "^11.10.5",
|
|
14
|
-
"@mui/icons-material": "^5.11.0",
|
|
15
|
-
"@mui/material": "5.14.17",
|
|
16
|
-
"copyfiles": "^2.4.1",
|
|
17
|
-
"cross-env": "^7.0.3",
|
|
18
|
-
"libphonenumber-js": "^1.10.18",
|
|
19
|
-
"react-scripts": "5.0.1",
|
|
20
|
-
"typescript": "^4.9.3",
|
|
21
|
-
"typescript-plugin-css-modules": "^4.1.1",
|
|
22
|
-
"web-vitals": "^2.1.4"
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"start": "start-storybook -p 6006 -s public",
|
|
26
|
-
"build-storybook": "build-storybook -s public",
|
|
27
|
-
"publish:npm": "tsc &&
|
|
28
|
-
"publish-package": "npm publish --access public",
|
|
29
|
-
"copy-files": "copyfiles -u 1 src/stories/assets/*.svg src/stories/assets/*.png src/stories/assets/*.gif src/stories/assets/css/*.css dist/",
|
|
30
|
-
"eslint": "npx eslint --ext .jsx,.js src --fix",
|
|
31
|
-
"eslint:ci": "npx eslint --ext .jsx,.js src --format json --output-file reports/eslint-result.json"
|
|
32
|
-
},
|
|
33
|
-
"eslintConfig": {
|
|
34
|
-
"extends": [
|
|
35
|
-
"react-app",
|
|
36
|
-
"react-app/jest"
|
|
37
|
-
],
|
|
38
|
-
"overrides": [
|
|
39
|
-
{
|
|
40
|
-
"files": [
|
|
41
|
-
"**/*.stories.*"
|
|
42
|
-
],
|
|
43
|
-
"rules": {
|
|
44
|
-
"import/no-anonymous-default-export": "off"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"browserslist": {
|
|
50
|
-
"production": [
|
|
51
|
-
">0.2%",
|
|
52
|
-
"not dead",
|
|
53
|
-
"not op_mini all"
|
|
54
|
-
],
|
|
55
|
-
"development": [
|
|
56
|
-
"last 1 chrome version",
|
|
57
|
-
"last 1 firefox version",
|
|
58
|
-
"last 1 safari version"
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
"devDependencies": {
|
|
62
|
-
"@storybook/addon-actions": "^6.5.13",
|
|
63
|
-
"@storybook/addon-essentials": "^6.5.13",
|
|
64
|
-
"@storybook/addon-interactions": "^6.5.13",
|
|
65
|
-
"@storybook/addon-links": "^6.5.13",
|
|
66
|
-
"@storybook/addon-viewport": "^8.0.0",
|
|
67
|
-
"@storybook/builder-webpack5": "^6.5.13",
|
|
68
|
-
"@storybook/manager-webpack5": "^6.5.13",
|
|
69
|
-
"@storybook/node-logger": "^6.5.13",
|
|
70
|
-
"@storybook/preset-create-react-app": "^4.1.2",
|
|
71
|
-
"@storybook/react": "^6.5.13",
|
|
72
|
-
"@storybook/testing-library": "^0.0.13",
|
|
73
|
-
"@types/babel__core": "^7.1.20",
|
|
74
|
-
"@types/react": "^18.0.25",
|
|
75
|
-
"babel-plugin-named-exports-order": "^0.0.2",
|
|
76
|
-
"css-loader": "^6.7.3",
|
|
77
|
-
"eslint": "^8.28.0",
|
|
78
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
79
|
-
"eslint-import-resolver-typescript": "^3.5.2",
|
|
80
|
-
"eslint-plugin-import": "^2.25.3",
|
|
81
|
-
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
82
|
-
"eslint-plugin-react": "^7.28.0",
|
|
83
|
-
"eslint-plugin-react-hooks": "^4.3.0",
|
|
84
|
-
"eslint-plugin-storybook": "^0.6.7",
|
|
85
|
-
"extract-text-webpack-plugin": "^3.0.2",
|
|
86
|
-
"node-sass": "^8.0.0",
|
|
87
|
-
"prop-types": "^15.8.1",
|
|
88
|
-
"react": "^18.2.0",
|
|
89
|
-
"react-dom": "^18.2.0",
|
|
90
|
-
"sass-loader": "^13.2.0",
|
|
91
|
-
"style-loader": "^3.3.1",
|
|
92
|
-
"webpack": "^5.75.0"
|
|
93
|
-
},
|
|
94
|
-
"description": "Shared UI components for UT",
|
|
95
|
-
"repository": {
|
|
96
|
-
"type": "git",
|
|
97
|
-
"url": "git+https://bitbucket.org/universaltennis/ui-shared.git"
|
|
98
|
-
},
|
|
99
|
-
"author": "universal-tennis"
|
|
1
|
+
{
|
|
2
|
+
"name": "@universal-tennis/ui-shared",
|
|
3
|
+
"version": "0.2.00",
|
|
4
|
+
"main": "dist/items.js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://universaltennis.com",
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"react": "^18.2.0",
|
|
9
|
+
"react-dom": "^18.2.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@emotion/react": "^11.10.5",
|
|
13
|
+
"@emotion/styled": "^11.10.5",
|
|
14
|
+
"@mui/icons-material": "^5.11.0",
|
|
15
|
+
"@mui/material": "5.14.17",
|
|
16
|
+
"copyfiles": "^2.4.1",
|
|
17
|
+
"cross-env": "^7.0.3",
|
|
18
|
+
"libphonenumber-js": "^1.10.18",
|
|
19
|
+
"react-scripts": "5.0.1",
|
|
20
|
+
"typescript": "^4.9.3",
|
|
21
|
+
"typescript-plugin-css-modules": "^4.1.1",
|
|
22
|
+
"web-vitals": "^2.1.4"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"start": "start-storybook -p 6006 -s public",
|
|
26
|
+
"build-storybook": "build-storybook -s public",
|
|
27
|
+
"publish:npm": "tsc && npm run copy-files",
|
|
28
|
+
"publish-package": "npm publish --access public",
|
|
29
|
+
"copy-files": "copyfiles -u 1 src/stories/assets/*.svg src/stories/assets/*.png src/stories/assets/*.gif src/stories/assets/css/*.css dist/",
|
|
30
|
+
"eslint": "npx eslint --ext .jsx,.js src --fix",
|
|
31
|
+
"eslint:ci": "npx eslint --ext .jsx,.js src --format json --output-file reports/eslint-result.json"
|
|
32
|
+
},
|
|
33
|
+
"eslintConfig": {
|
|
34
|
+
"extends": [
|
|
35
|
+
"react-app",
|
|
36
|
+
"react-app/jest"
|
|
37
|
+
],
|
|
38
|
+
"overrides": [
|
|
39
|
+
{
|
|
40
|
+
"files": [
|
|
41
|
+
"**/*.stories.*"
|
|
42
|
+
],
|
|
43
|
+
"rules": {
|
|
44
|
+
"import/no-anonymous-default-export": "off"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"browserslist": {
|
|
50
|
+
"production": [
|
|
51
|
+
">0.2%",
|
|
52
|
+
"not dead",
|
|
53
|
+
"not op_mini all"
|
|
54
|
+
],
|
|
55
|
+
"development": [
|
|
56
|
+
"last 1 chrome version",
|
|
57
|
+
"last 1 firefox version",
|
|
58
|
+
"last 1 safari version"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@storybook/addon-actions": "^6.5.13",
|
|
63
|
+
"@storybook/addon-essentials": "^6.5.13",
|
|
64
|
+
"@storybook/addon-interactions": "^6.5.13",
|
|
65
|
+
"@storybook/addon-links": "^6.5.13",
|
|
66
|
+
"@storybook/addon-viewport": "^8.0.0",
|
|
67
|
+
"@storybook/builder-webpack5": "^6.5.13",
|
|
68
|
+
"@storybook/manager-webpack5": "^6.5.13",
|
|
69
|
+
"@storybook/node-logger": "^6.5.13",
|
|
70
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
71
|
+
"@storybook/react": "^6.5.13",
|
|
72
|
+
"@storybook/testing-library": "^0.0.13",
|
|
73
|
+
"@types/babel__core": "^7.1.20",
|
|
74
|
+
"@types/react": "^18.0.25",
|
|
75
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
76
|
+
"css-loader": "^6.7.3",
|
|
77
|
+
"eslint": "^8.28.0",
|
|
78
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
79
|
+
"eslint-import-resolver-typescript": "^3.5.2",
|
|
80
|
+
"eslint-plugin-import": "^2.25.3",
|
|
81
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
82
|
+
"eslint-plugin-react": "^7.28.0",
|
|
83
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
84
|
+
"eslint-plugin-storybook": "^0.6.7",
|
|
85
|
+
"extract-text-webpack-plugin": "^3.0.2",
|
|
86
|
+
"node-sass": "^8.0.0",
|
|
87
|
+
"prop-types": "^15.8.1",
|
|
88
|
+
"react": "^18.2.0",
|
|
89
|
+
"react-dom": "^18.2.0",
|
|
90
|
+
"sass-loader": "^13.2.0",
|
|
91
|
+
"style-loader": "^3.3.1",
|
|
92
|
+
"webpack": "^5.75.0"
|
|
93
|
+
},
|
|
94
|
+
"description": "Shared UI components for UT",
|
|
95
|
+
"repository": {
|
|
96
|
+
"type": "git",
|
|
97
|
+
"url": "git+https://bitbucket.org/universaltennis/ui-shared.git"
|
|
98
|
+
},
|
|
99
|
+
"author": "universal-tennis"
|
|
100
100
|
}
|
package/public/index.html
CHANGED
|
@@ -1,45 +1,50 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<meta name="theme-color" content="#000000" />
|
|
8
|
-
<meta
|
|
9
|
-
name="description"
|
|
10
|
-
content="Web site created using create-react-app"
|
|
11
|
-
/>
|
|
12
|
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<!--
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<meta name="theme-color" content="#000000" />
|
|
8
|
+
<meta
|
|
9
|
+
name="description"
|
|
10
|
+
content="Web site created using create-react-app"
|
|
11
|
+
/>
|
|
12
|
+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
+
|
|
14
|
+
<!-- Google Font Inter -->
|
|
15
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
16
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
17
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
|
|
18
|
+
<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders:opsz,wght@10..72,200&&display=swap" rel="stylesheet">
|
|
19
|
+
|
|
20
|
+
<!--
|
|
21
|
+
manifest.json provides metadata used when your web app is installed on a
|
|
22
|
+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
23
|
+
-->
|
|
24
|
+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
25
|
+
<!--
|
|
26
|
+
Notice the use of %PUBLIC_URL% in the tags above.
|
|
27
|
+
It will be replaced with the URL of the `public` folder during the build.
|
|
28
|
+
Only files inside the `public` folder can be referenced from the HTML.
|
|
29
|
+
|
|
30
|
+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
31
|
+
work correctly both with client-side routing and a non-root public URL.
|
|
32
|
+
Learn how to configure a non-root public URL by running `npm run build`.
|
|
33
|
+
-->
|
|
34
|
+
<title>React App</title>
|
|
35
|
+
</head>
|
|
36
|
+
<body>
|
|
37
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
38
|
+
<div id="root"></div>
|
|
39
|
+
<!--
|
|
40
|
+
This HTML file is a template.
|
|
41
|
+
If you open it directly in the browser, you will see an empty page.
|
|
42
|
+
|
|
43
|
+
You can add webfonts, meta tags, or analytics to this file.
|
|
44
|
+
The build step will place the bundled scripts into the <body> tag.
|
|
45
|
+
|
|
46
|
+
To begin the development, run `npm start` or `yarn start`.
|
|
47
|
+
To create a production bundle, use `npm run build` or `yarn build`.
|
|
48
|
+
-->
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|
package/src/App.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
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;
|
|
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,52 +1,52 @@
|
|
|
1
|
-
import './stories/assets/css/variables.css';
|
|
2
|
-
|
|
3
|
-
// ATOMS
|
|
4
|
-
export { default as Button } from './stories/atoms/Button/Button';
|
|
5
|
-
export { default as UTMap } from './stories/atoms/UTMap/UTMap';
|
|
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 BallInMotionIcon } from './stories/atoms/Icons/BallInMotionIcon';
|
|
15
|
-
export { default as CalendarIcon } from './stories/atoms/Icons/CalendarIcon';
|
|
16
|
-
export { default as ClockIcon } from './stories/atoms/Icons/ClockIcon';
|
|
17
|
-
export { default as CloseIcon } from './stories/atoms/Icons/CloseIcon';
|
|
18
|
-
export { default as DeleteIcon } from './stories/atoms/Icons/DeleteIcon';
|
|
19
|
-
export { default as DoublePersonIcon } from './stories/atoms/Icons/DoublePersonIcon';
|
|
20
|
-
export { default as EditIcon } from './stories/atoms/Icons/EditIcon';
|
|
21
|
-
export { default as LocationIcon } from './stories/atoms/Icons/LocationIcon';
|
|
22
|
-
export { default as LeftChevronIcon } from './stories/atoms/Icons/LeftChevronIcon';
|
|
23
|
-
export { default as LineIcon } from './stories/atoms/Icons/LineIcon';
|
|
24
|
-
export { default as MessageIcon } from './stories/atoms/Icons/MessageIcon';
|
|
25
|
-
export { default as PickleballBallIcon } from './stories/atoms/Icons/PickleballBallIcon';
|
|
26
|
-
export { default as RightChevronIcon } from './stories/atoms/Icons/RightChevronIcon';
|
|
27
|
-
export { default as SessionIcon } from './stories/atoms/Icons/SessionIcon';
|
|
28
|
-
export { default as SinglePersonIcon } from './stories/atoms/Icons/SinglePersonIcon';
|
|
29
|
-
export { default as SinglePersonV2Icon } from './stories/atoms/Icons/SinglePersonV2Icon';
|
|
30
|
-
export { default as SwapIcon } from './stories/atoms/Icons/SwapIcon';
|
|
31
|
-
export { default as SwapNoBorderIcon } from './stories/atoms/Icons/SwapNoBorderIcon';
|
|
32
|
-
export { default as TennisBallIcon } from './stories/atoms/Icons/TennisBallIcon';
|
|
33
|
-
export { default as VerifiedIcon } from './stories/atoms/Icons/VerifiedIcon';
|
|
34
|
-
export { default as VisibilityIcon } from './stories/atoms/Icons/VisibilityIcon';
|
|
35
|
-
export { default as VisibilityOffIcon } from './stories/atoms/Icons/VisibilityOffIcon';
|
|
36
|
-
export { default as WinnerIndicatorIcon } from './stories/atoms/Icons/WinnerIndicatorIcon';
|
|
37
|
-
|
|
38
|
-
// MOLECULES
|
|
39
|
-
export { default as AvatarWithName } from './stories/molecules/AvatarWithName/AvatarWithName';
|
|
40
|
-
export { default as ContactCard } from './stories/molecules/Cards/ContactCard';
|
|
41
|
-
export { default as DrawCard } from './stories/molecules/Cards/DrawCard';
|
|
42
|
-
export { default as SquareAvatarWithName } from './stories/molecules/SquareAvatarWithName/SquareAvatarWithName';
|
|
43
|
-
export { default as TeamCard } from './stories/molecules/Cards/TeamCard';
|
|
44
|
-
export { default as TeamDrawCard } from './stories/molecules/Cards/TeamDrawCard';
|
|
45
|
-
|
|
46
|
-
// ORGANISMS
|
|
47
|
-
export { default as DrawCardTable } from './stories/organisms/Tables/DrawCardTable';
|
|
48
|
-
export { default as GlobalNavigation } from './stories/organisms/GlobalNavigation/GlobalNavigation';
|
|
49
|
-
export { default as FullPageModal } from './stories/organisms/Modals/FullPageModal';
|
|
50
|
-
export { default as SortableTable } from './stories/organisms/Tables/SortableTable';
|
|
51
|
-
export { default as TeamDrawCardTable } from './stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable';
|
|
52
|
-
export { default as Footer } from './stories/organisms/Footer/Footer';
|
|
1
|
+
import './stories/assets/css/variables.css';
|
|
2
|
+
|
|
3
|
+
// ATOMS
|
|
4
|
+
export { default as Button } from './stories/atoms/Button/Button';
|
|
5
|
+
export { default as UTMap } from './stories/atoms/UTMap/UTMap';
|
|
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 BallInMotionIcon } from './stories/atoms/Icons/BallInMotionIcon';
|
|
15
|
+
export { default as CalendarIcon } from './stories/atoms/Icons/CalendarIcon';
|
|
16
|
+
export { default as ClockIcon } from './stories/atoms/Icons/ClockIcon';
|
|
17
|
+
export { default as CloseIcon } from './stories/atoms/Icons/CloseIcon';
|
|
18
|
+
export { default as DeleteIcon } from './stories/atoms/Icons/DeleteIcon';
|
|
19
|
+
export { default as DoublePersonIcon } from './stories/atoms/Icons/DoublePersonIcon';
|
|
20
|
+
export { default as EditIcon } from './stories/atoms/Icons/EditIcon';
|
|
21
|
+
export { default as LocationIcon } from './stories/atoms/Icons/LocationIcon';
|
|
22
|
+
export { default as LeftChevronIcon } from './stories/atoms/Icons/LeftChevronIcon';
|
|
23
|
+
export { default as LineIcon } from './stories/atoms/Icons/LineIcon';
|
|
24
|
+
export { default as MessageIcon } from './stories/atoms/Icons/MessageIcon';
|
|
25
|
+
export { default as PickleballBallIcon } from './stories/atoms/Icons/PickleballBallIcon';
|
|
26
|
+
export { default as RightChevronIcon } from './stories/atoms/Icons/RightChevronIcon';
|
|
27
|
+
export { default as SessionIcon } from './stories/atoms/Icons/SessionIcon';
|
|
28
|
+
export { default as SinglePersonIcon } from './stories/atoms/Icons/SinglePersonIcon';
|
|
29
|
+
export { default as SinglePersonV2Icon } from './stories/atoms/Icons/SinglePersonV2Icon';
|
|
30
|
+
export { default as SwapIcon } from './stories/atoms/Icons/SwapIcon';
|
|
31
|
+
export { default as SwapNoBorderIcon } from './stories/atoms/Icons/SwapNoBorderIcon';
|
|
32
|
+
export { default as TennisBallIcon } from './stories/atoms/Icons/TennisBallIcon';
|
|
33
|
+
export { default as VerifiedIcon } from './stories/atoms/Icons/VerifiedIcon';
|
|
34
|
+
export { default as VisibilityIcon } from './stories/atoms/Icons/VisibilityIcon';
|
|
35
|
+
export { default as VisibilityOffIcon } from './stories/atoms/Icons/VisibilityOffIcon';
|
|
36
|
+
export { default as WinnerIndicatorIcon } from './stories/atoms/Icons/WinnerIndicatorIcon';
|
|
37
|
+
|
|
38
|
+
// MOLECULES
|
|
39
|
+
export { default as AvatarWithName } from './stories/molecules/AvatarWithName/AvatarWithName';
|
|
40
|
+
export { default as ContactCard } from './stories/molecules/Cards/ContactCard';
|
|
41
|
+
export { default as DrawCard } from './stories/molecules/Cards/DrawCard';
|
|
42
|
+
export { default as SquareAvatarWithName } from './stories/molecules/SquareAvatarWithName/SquareAvatarWithName';
|
|
43
|
+
export { default as TeamCard } from './stories/molecules/Cards/TeamCard';
|
|
44
|
+
export { default as TeamDrawCard } from './stories/molecules/Cards/TeamDrawCard';
|
|
45
|
+
|
|
46
|
+
// ORGANISMS
|
|
47
|
+
export { default as DrawCardTable } from './stories/organisms/Tables/DrawCardTable';
|
|
48
|
+
export { default as GlobalNavigation } from './stories/organisms/GlobalNavigation/GlobalNavigation';
|
|
49
|
+
export { default as FullPageModal } from './stories/organisms/Modals/FullPageModal';
|
|
50
|
+
export { default as SortableTable } from './stories/organisms/Tables/SortableTable';
|
|
51
|
+
export { default as TeamDrawCardTable } from './stories/organisms/Tables/TeamDrawCardTable/TeamDrawCardTable';
|
|
52
|
+
export { default as Footer } from './stories/organisms/Footer/Footer';
|
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
|
-
<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();
|
|
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');
|