@universal-tennis/ui-shared 0.0.21 → 0.0.23
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/.storybook/preview.js +1 -1
- package/dist/components.js +0 -1
- package/dist/components.js.map +1 -1
- package/dist/stories/atoms/Button/Button.js +13 -12
- package/dist/stories/atoms/Button/Button.js.map +1 -1
- package/dist/stories/atoms/Typography/Typography.d.ts +0 -1
- package/dist/stories/atoms/Typography/Typography.js +3 -4
- package/dist/stories/atoms/Typography/Typography.js.map +1 -1
- package/dist/stories/molecules/Cards/shared.js +2 -1
- package/dist/stories/molecules/Cards/shared.js.map +1 -1
- package/dist/stories/theme/colors.d.ts +10 -0
- package/dist/stories/theme/colors.js +11 -0
- package/dist/stories/theme/colors.js.map +1 -0
- package/package.json +1 -1
- package/src/components.jsx +0 -2
- package/src/custom.d.ts +0 -5
- package/src/stories/atoms/Button/Button.tsx +13 -12
- package/src/stories/atoms/Typography/Typography.tsx +3 -4
- package/src/stories/molecules/Cards/shared.tsx +2 -1
- package/src/stories/theme/colors.ts +10 -0
- package/tsconfig.json +0 -1
- package/.storybook/variables.css +0 -12
- package/src/stories/assets/css/variables.scss +0 -12
- /package/{src/stories/assets/css/typography.scss → .storybook/typography.css} +0 -0
package/.storybook/preview.js
CHANGED
package/dist/components.js
CHANGED
package/dist/components.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.jsx"],"names":[],"mappings":"AAAA,QAAQ;AACR,OAAO,
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.jsx"],"names":[],"mappings":"AAAA,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAE9E,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAEzE,aAAa"}
|
|
@@ -12,6 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import MuiButton from '@mui/material/Button';
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
|
+
import { colors } from '../../theme/colors';
|
|
15
16
|
const StyledButton = styled(MuiButton)({
|
|
16
17
|
borderRadius: '24px',
|
|
17
18
|
fontSize: '12px',
|
|
@@ -25,33 +26,33 @@ const StyledButton = styled(MuiButton)({
|
|
|
25
26
|
},
|
|
26
27
|
});
|
|
27
28
|
const PrimaryButton = styled(StyledButton)((props) => ({
|
|
28
|
-
backgroundColor:
|
|
29
|
-
color:
|
|
29
|
+
backgroundColor: colors.black,
|
|
30
|
+
color: colors.white,
|
|
30
31
|
width: props.isExpanded ? '100%' : 'inherit',
|
|
31
32
|
'&:hover': {
|
|
32
|
-
backgroundColor:
|
|
33
|
-
borderColor:
|
|
33
|
+
backgroundColor: colors.darkestGrey,
|
|
34
|
+
borderColor: colors.darkestGrey,
|
|
34
35
|
},
|
|
35
36
|
'&:disabled': {
|
|
36
|
-
backgroundColor:
|
|
37
|
-
borderColor:
|
|
37
|
+
backgroundColor: colors.lightGrey,
|
|
38
|
+
borderColor: colors.lightGrey,
|
|
38
39
|
},
|
|
39
40
|
}));
|
|
40
41
|
const SecondaryButton = styled(StyledButton)({
|
|
41
|
-
borderColor:
|
|
42
|
+
borderColor: colors.black,
|
|
42
43
|
backgroundColor: 'transparent',
|
|
43
|
-
color:
|
|
44
|
+
color: colors.black,
|
|
44
45
|
'&:hover': {
|
|
45
|
-
borderColor:
|
|
46
|
+
borderColor: colors.darkestGrey,
|
|
46
47
|
},
|
|
47
48
|
'&:disabled': {
|
|
48
|
-
borderColor:
|
|
49
|
+
borderColor: colors.disabled
|
|
49
50
|
},
|
|
50
51
|
});
|
|
51
52
|
const LinkButton = styled(MuiButton)({
|
|
52
53
|
borderColor: 'transparent',
|
|
53
54
|
backgroundColor: 'transparent',
|
|
54
|
-
color:
|
|
55
|
+
color: colors.primary,
|
|
55
56
|
textTransform: 'inherit',
|
|
56
57
|
justifyContent: 'left',
|
|
57
58
|
padding: 0,
|
|
@@ -59,7 +60,7 @@ const LinkButton = styled(MuiButton)({
|
|
|
59
60
|
backgroundColor: 'transparent',
|
|
60
61
|
},
|
|
61
62
|
'&:disabled': {
|
|
62
|
-
borderColor:
|
|
63
|
+
borderColor: colors.disabled
|
|
63
64
|
},
|
|
64
65
|
});
|
|
65
66
|
export default function Button(_a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAa1C,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IACrC,YAAY,EAAE,MAAM;IACpB,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,MAAM;IAClB,MAAM,EAAE,uBAAuB;IAE/B,SAAS,EAAE;QACT,MAAM,EAAE,SAAS;KAClB;CACF,C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AC3D,QAAQ,QAAQ,EAAE;QAChB,KAAK,SAAS;YACZ,OAAO,CACL,oBAAC,aAAa,oBACR,KAAK,GAER,QAAQ,CACK,CACjB,CAAC;QACJ,KAAK,kBAAkB;YACrB,OAAO,CACH,oBAAC,aAAa,kBACZ,UAAU,UACN,KAAK,GAER,QAAQ,CACK,CACnB,CAAC;QACJ,KAAK,WAAW;YACd,OAAO,CACL,oBAAC,eAAe,oBACV,KAAK,GAER,QAAQ,CACO,CACnB,CAAC;QACJ,KAAK,MAAM;YACT,OAAO,CACH,oBAAC,UAAU,kBACT,kBAAkB,UACd,KAAK,GAER,QAAQ,CACE,CAChB,CAAC;QACJ;YACE,OAAO,CACH,oBAAC,YAAY,oBACP,KAAK,GAEV,QAAQ,CACM,CAClB,CAAC;KACL;AACH,CAAC"}
|
|
@@ -12,7 +12,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import MuiTypography from '@mui/material/Typography';
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
|
-
import "../../assets/css/typography.css";
|
|
16
15
|
const DISPLAY_SIZES = {
|
|
17
16
|
"XXX-large": '120px',
|
|
18
17
|
"XX-large": '100px',
|
|
@@ -47,17 +46,17 @@ const SECONDARY_SIZES = {
|
|
|
47
46
|
"xx-small-book": '10px',
|
|
48
47
|
};
|
|
49
48
|
const DisplayTypography = styled(MuiTypography)((props) => ({
|
|
50
|
-
fontFamily: '
|
|
49
|
+
fontFamily: `'UTR Numerals', 'Tungsten A', 'Tungsten B'`,
|
|
51
50
|
fontSize: DISPLAY_SIZES[props.size],
|
|
52
51
|
fontWeight: props.weight
|
|
53
52
|
}));
|
|
54
53
|
const PrimaryTypography = styled(MuiTypography)((props) => ({
|
|
55
|
-
fontFamily: '
|
|
54
|
+
fontFamily: `'Tungsten A', 'Tungsten B', 'Helvetica', Arial, sans-serif`,
|
|
56
55
|
fontSize: PRIMARY_SIZES[props.size],
|
|
57
56
|
fontWeight: props.weight
|
|
58
57
|
}));
|
|
59
58
|
const SecondaryTypography = styled(MuiTypography)((props) => ({
|
|
60
|
-
fontFamily: '
|
|
59
|
+
fontFamily: `'Gotham SSm A', 'Gotham SSm B', 'Helvetica', Arial, sans-serif`,
|
|
61
60
|
fontSize: SECONDARY_SIZES[props.size],
|
|
62
61
|
textTransform: props.isCap ? 'uppercase' : 'inherit',
|
|
63
62
|
fontWeight: props.weight
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Typography/Typography.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,aAAa,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Typography/Typography.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,aAAa,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAe9C,MAAM,aAAa,GAAG;IACpB,WAAW,EAAE,OAAO;IACpB,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,MAAM;IACjB,KAAK,EAAE,MAAM;IACb,aAAa,EAAE,MAAM;IACrB,aAAa,EAAE,MAAM;CACtB,CAAC;AAEF,MAAM,aAAa,GAAG;IACpB,YAAY,EAAE,MAAM;IACpB,YAAY,EAAE,MAAM;IACpB,aAAa,EAAE,MAAM;IACrB,iBAAiB,EAAE,MAAM;IACzB,eAAe,EAAE,MAAM;IACvB,aAAa,EAAE,MAAM;IACrB,YAAY,EAAE,MAAM;IACpB,cAAc,EAAE,MAAM;CACvB,CAAC;AAEF,MAAM,eAAe,GAAG;IACtB,cAAc,EAAE,MAAM;IACtB,YAAY,EAAE,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ACE,OAAO,CACH,oBAAC,iBAAiB,kBAChB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IACV,KAAK,GAEV,QAAQ,CACW,CACvB,CAAC;KACL;AACH,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import Box from '@mui/material/Box';
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
|
+
import { colors } from 'stories/theme/colors';
|
|
3
4
|
export const StyledCard = styled(Box)({
|
|
4
5
|
display: 'flex',
|
|
5
6
|
flexDirection: 'column',
|
|
6
7
|
borderRadius: '4px',
|
|
7
8
|
padding: '16px',
|
|
8
|
-
border:
|
|
9
|
+
border: `1px solid ${colors.coolGrey300}`,
|
|
9
10
|
'&:hover': {
|
|
10
11
|
cursor: 'pointer'
|
|
11
12
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/stories/molecules/Cards/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,MAAM;IACf,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/stories/molecules/Cards/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,MAAM;IACf,MAAM,EAAE,aAAa,MAAM,CAAC,WAAW,EAAE;IAEzC,SAAS,EAAE;QACT,MAAM,EAAE,SAAS;KAClB;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../src/stories/theme/colors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,SAAS;IACpB,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;CACvB,CAAC"}
|
package/package.json
CHANGED
package/src/components.jsx
CHANGED
package/src/custom.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, {ReactElement} from 'react';
|
|
2
2
|
import MuiButton from '@mui/material/Button';
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
|
+
import {colors} from '../../theme/colors';
|
|
4
5
|
|
|
5
6
|
type ButtonProps = {
|
|
6
7
|
children: string | ReactElement;
|
|
@@ -28,37 +29,37 @@ const StyledButton = styled(MuiButton)({
|
|
|
28
29
|
});
|
|
29
30
|
|
|
30
31
|
const PrimaryButton = styled(StyledButton)((props: StyledButtonProps) => ({
|
|
31
|
-
backgroundColor:
|
|
32
|
-
color:
|
|
32
|
+
backgroundColor: colors.black,
|
|
33
|
+
color: colors.white,
|
|
33
34
|
width: props.isExpanded ? '100%' : 'inherit',
|
|
34
35
|
|
|
35
36
|
'&:hover': {
|
|
36
|
-
backgroundColor:
|
|
37
|
-
borderColor:
|
|
37
|
+
backgroundColor: colors.darkestGrey,
|
|
38
|
+
borderColor: colors.darkestGrey,
|
|
38
39
|
},
|
|
39
40
|
'&:disabled': {
|
|
40
|
-
backgroundColor:
|
|
41
|
-
borderColor:
|
|
41
|
+
backgroundColor: colors.lightGrey,
|
|
42
|
+
borderColor: colors.lightGrey,
|
|
42
43
|
},
|
|
43
44
|
}));
|
|
44
45
|
|
|
45
46
|
const SecondaryButton = styled(StyledButton)({
|
|
46
|
-
borderColor:
|
|
47
|
+
borderColor: colors.black,
|
|
47
48
|
backgroundColor: 'transparent',
|
|
48
|
-
color:
|
|
49
|
+
color: colors.black,
|
|
49
50
|
|
|
50
51
|
'&:hover': {
|
|
51
|
-
borderColor:
|
|
52
|
+
borderColor: colors.darkestGrey,
|
|
52
53
|
},
|
|
53
54
|
'&:disabled': {
|
|
54
|
-
borderColor:
|
|
55
|
+
borderColor: colors.disabled
|
|
55
56
|
},
|
|
56
57
|
});
|
|
57
58
|
|
|
58
59
|
const LinkButton = styled(MuiButton)({
|
|
59
60
|
borderColor: 'transparent',
|
|
60
61
|
backgroundColor: 'transparent',
|
|
61
|
-
color:
|
|
62
|
+
color: colors.primary,
|
|
62
63
|
textTransform: 'inherit',
|
|
63
64
|
justifyContent: 'left',
|
|
64
65
|
padding: 0,
|
|
@@ -68,7 +69,7 @@ const LinkButton = styled(MuiButton)({
|
|
|
68
69
|
},
|
|
69
70
|
|
|
70
71
|
'&:disabled': {
|
|
71
|
-
borderColor:
|
|
72
|
+
borderColor: colors.disabled
|
|
72
73
|
},
|
|
73
74
|
});
|
|
74
75
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, {ReactElement} from 'react';
|
|
2
2
|
import MuiTypography from '@mui/material/Typography';
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
|
-
import "../../assets/css/typography.css";
|
|
5
4
|
|
|
6
5
|
type TypographyProps = {
|
|
7
6
|
children: string | ReactElement;
|
|
@@ -53,19 +52,19 @@ const SECONDARY_SIZES = {
|
|
|
53
52
|
};
|
|
54
53
|
|
|
55
54
|
const DisplayTypography = styled(MuiTypography)((props: MuiTypographyProps) => ({
|
|
56
|
-
fontFamily: '
|
|
55
|
+
fontFamily: `'UTR Numerals', 'Tungsten A', 'Tungsten B'`,
|
|
57
56
|
fontSize: DISPLAY_SIZES[props.size as keyof typeof DISPLAY_SIZES],
|
|
58
57
|
fontWeight: props.weight
|
|
59
58
|
}));
|
|
60
59
|
|
|
61
60
|
const PrimaryTypography = styled(MuiTypography)((props: MuiTypographyProps) => ({
|
|
62
|
-
fontFamily: '
|
|
61
|
+
fontFamily: `'Tungsten A', 'Tungsten B', 'Helvetica', Arial, sans-serif`,
|
|
63
62
|
fontSize: PRIMARY_SIZES[props.size as keyof typeof PRIMARY_SIZES],
|
|
64
63
|
fontWeight: props.weight
|
|
65
64
|
}));
|
|
66
65
|
|
|
67
66
|
const SecondaryTypography = styled(MuiTypography)((props: MuiTypographyProps) => ({
|
|
68
|
-
fontFamily: '
|
|
67
|
+
fontFamily: `'Gotham SSm A', 'Gotham SSm B', 'Helvetica', Arial, sans-serif`,
|
|
69
68
|
fontSize: SECONDARY_SIZES[props.size as keyof typeof SECONDARY_SIZES],
|
|
70
69
|
textTransform: props.isCap ? 'uppercase' : 'inherit',
|
|
71
70
|
fontWeight: props.weight
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import Box from '@mui/material/Box';
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
|
+
import { colors } from 'stories/theme/colors';
|
|
3
4
|
|
|
4
5
|
export const StyledCard = styled(Box)({
|
|
5
6
|
display: 'flex',
|
|
6
7
|
flexDirection: 'column',
|
|
7
8
|
borderRadius: '4px',
|
|
8
9
|
padding: '16px',
|
|
9
|
-
border:
|
|
10
|
+
border: `1px solid ${colors.coolGrey300}`,
|
|
10
11
|
|
|
11
12
|
'&:hover': {
|
|
12
13
|
cursor: 'pointer'
|
package/tsconfig.json
CHANGED
package/.storybook/variables.css
DELETED
|
File without changes
|