baseui 0.0.0-next-79ec2e2 → 0.0.0-next-b71c7ca
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/es/list/styled-components.js +4 -1
- package/es/themes/dark-theme/create-dark-theme.js +2 -5
- package/es/themes/dark-theme/dark-theme.js +2 -2
- package/es/themes/dark-theme/primitives.js +2 -2
- package/es/themes/light-theme/create-light-theme.js +2 -5
- package/es/themes/light-theme/light-theme.js +2 -2
- package/es/themes/light-theme/primitives.js +2 -2
- package/es/themes/move-theme/dark-theme-with-move.js +1 -11
- package/es/themes/move-theme/light-theme-with-move.js +1 -11
- package/es/themes/move-theme/typography.js +41 -41
- package/es/themes/shared/typography.js +206 -206
- package/esm/list/styled-components.js +4 -1
- package/esm/themes/dark-theme/create-dark-theme.js +2 -5
- package/esm/themes/dark-theme/dark-theme.js +2 -2
- package/esm/themes/dark-theme/primitives.js +2 -2
- package/esm/themes/light-theme/create-light-theme.js +2 -5
- package/esm/themes/light-theme/light-theme.js +2 -2
- package/esm/themes/light-theme/primitives.js +2 -2
- package/esm/themes/move-theme/dark-theme-with-move.js +1 -11
- package/esm/themes/move-theme/light-theme-with-move.js +1 -11
- package/esm/themes/move-theme/typography.js +41 -41
- package/esm/themes/shared/typography.js +206 -207
- package/list/styled-components.js +4 -1
- package/list/styled-components.js.flow +4 -1
- package/package.json +1 -1
- package/themes/dark-theme/create-dark-theme.js +1 -4
- package/themes/dark-theme/create-dark-theme.js.flow +2 -3
- package/themes/dark-theme/dark-theme.js +1 -1
- package/themes/dark-theme/dark-theme.js.flow +2 -2
- package/themes/dark-theme/primitives.js +1 -1
- package/themes/dark-theme/primitives.js.flow +2 -2
- package/themes/light-theme/create-light-theme.js +1 -4
- package/themes/light-theme/create-light-theme.js.flow +2 -3
- package/themes/light-theme/light-theme.js +1 -1
- package/themes/light-theme/light-theme.js.flow +2 -2
- package/themes/light-theme/primitives.js +1 -1
- package/themes/light-theme/primitives.js.flow +2 -2
- package/themes/move-theme/dark-theme-with-move.js +1 -13
- package/themes/move-theme/dark-theme-with-move.js.flow +0 -8
- package/themes/move-theme/light-theme-with-move.js +1 -13
- package/themes/move-theme/light-theme-with-move.js.flow +0 -8
- package/themes/move-theme/typography.js +41 -41
- package/themes/move-theme/typography.js.flow +42 -44
- package/themes/shared/typography.d.ts +3 -3
- package/themes/shared/typography.js +206 -209
- package/themes/shared/typography.js.flow +171 -170
- package/themes/types.d.ts +2 -0
- package/themes/types.js.flow +2 -0
|
@@ -25,7 +25,10 @@ export const StyledRoot = styled('li', ({
|
|
|
25
25
|
overflow: 'hidden',
|
|
26
26
|
...($isTapTarget ? {
|
|
27
27
|
// button style reset
|
|
28
|
-
|
|
28
|
+
borderTopLeftRadius: 0,
|
|
29
|
+
borderTopRightRadius: 0,
|
|
30
|
+
borderBottomLeftRadius: 0,
|
|
31
|
+
borderBottomRightRadius: 0,
|
|
29
32
|
textAlign: 'inherit',
|
|
30
33
|
boxShadow: 'none',
|
|
31
34
|
padding: 0,
|
|
@@ -12,7 +12,7 @@ import defaultFoundationColorTokens from './color-tokens';
|
|
|
12
12
|
import { colors as primitiveColorTokens } from '../../tokens';
|
|
13
13
|
import getComponentColorTokens from './color-component-tokens';
|
|
14
14
|
import getSemanticColorTokens from './color-semantic-tokens';
|
|
15
|
-
import
|
|
15
|
+
import typography from '../shared/typography';
|
|
16
16
|
import grid from '../shared/grid';
|
|
17
17
|
import lighting from '../shared/lighting';
|
|
18
18
|
import mediaQuery from '../shared/media-query';
|
|
@@ -43,10 +43,7 @@ overrides) {
|
|
|
43
43
|
lighting,
|
|
44
44
|
mediaQuery,
|
|
45
45
|
sizing,
|
|
46
|
-
|
|
47
|
-
typography: primaryFontFamily ? getTypography({
|
|
48
|
-
primaryFontFamily
|
|
49
|
-
}) : getTypography(),
|
|
46
|
+
typography,
|
|
50
47
|
// TODO(#2318) Remove in v11, the next major version.
|
|
51
48
|
// Do not use.
|
|
52
49
|
zIndex: {
|
|
@@ -10,7 +10,7 @@ import getSemanticColorTokens from './color-semantic-tokens';
|
|
|
10
10
|
import getComponentColorTokens from './color-component-tokens';
|
|
11
11
|
import borders from './borders';
|
|
12
12
|
import lighting from '../shared/lighting';
|
|
13
|
-
import
|
|
13
|
+
import typography from '../shared/typography';
|
|
14
14
|
import animation from '../shared/animation';
|
|
15
15
|
import breakpoints from '../shared/breakpoints';
|
|
16
16
|
import grid from '../shared/grid';
|
|
@@ -31,7 +31,7 @@ export const DarkTheme = {
|
|
|
31
31
|
lighting,
|
|
32
32
|
mediaQuery,
|
|
33
33
|
sizing,
|
|
34
|
-
typography
|
|
34
|
+
typography,
|
|
35
35
|
// TODO(#2318) Remove it in the next v11 major version.
|
|
36
36
|
// Do not use.
|
|
37
37
|
zIndex: {
|
|
@@ -5,10 +5,10 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import defaultFoundationColorTokens from './color-tokens';
|
|
8
|
-
import {
|
|
8
|
+
import { fontTokens } from '../shared/typography';
|
|
9
9
|
// We don't use this ourselves. We provide it for backward compatibility.
|
|
10
10
|
// People may have used it to create their own custom theme.
|
|
11
11
|
const primitives = { ...defaultFoundationColorTokens,
|
|
12
|
-
...
|
|
12
|
+
...fontTokens
|
|
13
13
|
};
|
|
14
14
|
export default primitives;
|
|
@@ -12,7 +12,7 @@ import defaultFoundationColorTokens from './color-tokens';
|
|
|
12
12
|
import { colors as primitiveColorTokens } from '../../tokens';
|
|
13
13
|
import getComponentColorTokens from './color-component-tokens';
|
|
14
14
|
import getSemanticColorTokens from './color-semantic-tokens';
|
|
15
|
-
import
|
|
15
|
+
import typography from '../shared/typography';
|
|
16
16
|
import grid from '../shared/grid';
|
|
17
17
|
import lighting from '../shared/lighting';
|
|
18
18
|
import mediaQuery from '../shared/media-query';
|
|
@@ -43,10 +43,7 @@ overrides) {
|
|
|
43
43
|
lighting,
|
|
44
44
|
mediaQuery,
|
|
45
45
|
sizing,
|
|
46
|
-
|
|
47
|
-
typography: primaryFontFamily ? getTypography({
|
|
48
|
-
primaryFontFamily
|
|
49
|
-
}) : getTypography(),
|
|
46
|
+
typography,
|
|
50
47
|
// TODO(#2318) Remove in v11, the next major version.
|
|
51
48
|
// Do not use.
|
|
52
49
|
zIndex: {
|
|
@@ -10,7 +10,7 @@ import getSemanticColorTokens from './color-semantic-tokens';
|
|
|
10
10
|
import getComponentColorTokens from './color-component-tokens';
|
|
11
11
|
import borders from '../shared/borders';
|
|
12
12
|
import lighting from '../shared/lighting';
|
|
13
|
-
import
|
|
13
|
+
import typography from '../shared/typography';
|
|
14
14
|
import animation from '../shared/animation';
|
|
15
15
|
import breakpoints from '../shared/breakpoints';
|
|
16
16
|
import grid from '../shared/grid';
|
|
@@ -31,7 +31,7 @@ export const LightTheme = {
|
|
|
31
31
|
lighting,
|
|
32
32
|
mediaQuery,
|
|
33
33
|
sizing,
|
|
34
|
-
typography
|
|
34
|
+
typography,
|
|
35
35
|
// TODO(#2318) Remove it in the next v11 major version.
|
|
36
36
|
// Do not use.
|
|
37
37
|
zIndex: {
|
|
@@ -5,10 +5,10 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import defaultFoundationColorTokens from './color-tokens';
|
|
8
|
-
import {
|
|
8
|
+
import { fontTokens } from '../shared/typography';
|
|
9
9
|
// We don't use this ourselves. We provide it for backward compatibility.
|
|
10
10
|
// People may have used it to create their own custom theme.
|
|
11
11
|
const primitives = { ...defaultFoundationColorTokens,
|
|
12
|
-
...
|
|
12
|
+
...fontTokens
|
|
13
13
|
};
|
|
14
14
|
export default primitives;
|
|
@@ -6,16 +6,6 @@ LICENSE file in the root directory of this source tree.
|
|
|
6
6
|
*/
|
|
7
7
|
import deepMerge from '../../utils/deep-merge';
|
|
8
8
|
import { DarkTheme } from '../dark-theme/dark-theme';
|
|
9
|
-
import { typography as moveTypography, fontTokens as moveFontTokens } from './typography';
|
|
10
|
-
import getTypography from '../shared/typography';
|
|
11
9
|
export const DarkThemeMove = deepMerge({}, DarkTheme, {
|
|
12
|
-
name: 'dark-theme-with-move'
|
|
13
|
-
// For the move theme we need to override typography values
|
|
14
|
-
// in the default darkTheme with a font values that reference
|
|
15
|
-
// our custom font family. In addition to it we want to replace some
|
|
16
|
-
// of the fonts with an additional secondary font that specified
|
|
17
|
-
// in `moveTypography`. For it we'll get the typography value built
|
|
18
|
-
// with a custom font using `getTypography` helper and extend the result
|
|
19
|
-
// value with the customized set of fonts that reference a secondary font
|
|
20
|
-
typography: deepMerge(getTypography(moveFontTokens), moveTypography)
|
|
10
|
+
name: 'dark-theme-with-move'
|
|
21
11
|
});
|
|
@@ -6,16 +6,6 @@ LICENSE file in the root directory of this source tree.
|
|
|
6
6
|
*/
|
|
7
7
|
import deepMerge from '../../utils/deep-merge';
|
|
8
8
|
import { LightTheme } from '../light-theme/light-theme';
|
|
9
|
-
import { typography as moveTypography, fontTokens as moveFontTokens } from './typography';
|
|
10
|
-
import getTypography from '../shared/typography';
|
|
11
9
|
export const LightThemeMove = deepMerge({}, LightTheme, {
|
|
12
|
-
name: 'light-theme-with-move'
|
|
13
|
-
// For the move theme we need to override typography values
|
|
14
|
-
// in the default lightTheme with a font values that reference
|
|
15
|
-
// our custom font family. In addition to it we want to replace some
|
|
16
|
-
// of the fonts with an additional secondary font that specified
|
|
17
|
-
// in `moveTypography`. For it we'll get the typography value built
|
|
18
|
-
// with a custom font using `getTypography` helper and extend the result
|
|
19
|
-
// value with the customized set of fonts that reference a secondary font
|
|
20
|
-
typography: deepMerge(getTypography(moveFontTokens), moveTypography)
|
|
10
|
+
name: 'light-theme-with-move'
|
|
21
11
|
});
|
|
@@ -5,123 +5,123 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
export const fontTokens = {
|
|
8
|
-
primaryFontFamily: 'UberMoveText, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif'
|
|
8
|
+
primaryFontFamily: 'UberMoveText, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
9
|
+
secondaryFontFamily: 'UberMove, UberMoveText, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
10
|
+
monoFontFamily: 'UberMoveMono, "Lucida Console", Monaco, monospace'
|
|
9
11
|
};
|
|
10
|
-
const secondaryFontFamily = 'UberMove, UberMoveText, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif';
|
|
11
|
-
const monoFontFamily = 'UberMoveMono, "Lucida Console", Monaco, monospace';
|
|
12
12
|
export const typography = {
|
|
13
13
|
font1450: {
|
|
14
|
-
fontFamily: secondaryFontFamily
|
|
14
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
15
15
|
},
|
|
16
16
|
font1350: {
|
|
17
|
-
fontFamily: secondaryFontFamily
|
|
17
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
18
18
|
},
|
|
19
19
|
font1250: {
|
|
20
|
-
fontFamily: secondaryFontFamily
|
|
20
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
21
21
|
},
|
|
22
22
|
font1150: {
|
|
23
|
-
fontFamily: secondaryFontFamily
|
|
23
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
24
24
|
},
|
|
25
25
|
font1050: {
|
|
26
|
-
fontFamily: secondaryFontFamily
|
|
26
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
27
27
|
},
|
|
28
28
|
font950: {
|
|
29
|
-
fontFamily: secondaryFontFamily
|
|
29
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
30
30
|
},
|
|
31
31
|
font850: {
|
|
32
|
-
fontFamily: secondaryFontFamily
|
|
32
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
33
33
|
},
|
|
34
34
|
font750: {
|
|
35
|
-
fontFamily: secondaryFontFamily
|
|
35
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
36
36
|
},
|
|
37
37
|
font650: {
|
|
38
|
-
fontFamily: secondaryFontFamily
|
|
38
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
39
39
|
},
|
|
40
40
|
font550: {
|
|
41
|
-
fontFamily: secondaryFontFamily
|
|
41
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
42
42
|
},
|
|
43
43
|
DisplayLarge: {
|
|
44
|
-
fontFamily: secondaryFontFamily
|
|
44
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
45
45
|
},
|
|
46
46
|
DisplayMedium: {
|
|
47
|
-
fontFamily: secondaryFontFamily
|
|
47
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
48
48
|
},
|
|
49
49
|
DisplaySmall: {
|
|
50
|
-
fontFamily: secondaryFontFamily
|
|
50
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
51
51
|
},
|
|
52
52
|
DisplayXSmall: {
|
|
53
|
-
fontFamily: secondaryFontFamily
|
|
53
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
54
54
|
},
|
|
55
55
|
HeadingXXLarge: {
|
|
56
|
-
fontFamily: secondaryFontFamily
|
|
56
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
57
57
|
},
|
|
58
58
|
HeadingXLarge: {
|
|
59
|
-
fontFamily: secondaryFontFamily
|
|
59
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
60
60
|
},
|
|
61
61
|
HeadingLarge: {
|
|
62
|
-
fontFamily: secondaryFontFamily
|
|
62
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
63
63
|
},
|
|
64
64
|
HeadingMedium: {
|
|
65
|
-
fontFamily: secondaryFontFamily
|
|
65
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
66
66
|
},
|
|
67
67
|
HeadingSmall: {
|
|
68
|
-
fontFamily: secondaryFontFamily
|
|
68
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
69
69
|
},
|
|
70
70
|
HeadingXSmall: {
|
|
71
|
-
fontFamily: secondaryFontFamily
|
|
71
|
+
fontFamily: fontTokens.secondaryFontFamily
|
|
72
72
|
},
|
|
73
73
|
MonoParagraphXSmall: {
|
|
74
|
-
fontFamily: monoFontFamily
|
|
74
|
+
fontFamily: fontTokens.monoFontFamily
|
|
75
75
|
},
|
|
76
76
|
MonoParagraphSmall: {
|
|
77
|
-
fontFamily: monoFontFamily
|
|
77
|
+
fontFamily: fontTokens.monoFontFamily
|
|
78
78
|
},
|
|
79
79
|
MonoParagraphMedium: {
|
|
80
|
-
fontFamily: monoFontFamily
|
|
80
|
+
fontFamily: fontTokens.monoFontFamily
|
|
81
81
|
},
|
|
82
82
|
MonoParagraphLarge: {
|
|
83
|
-
fontFamily: monoFontFamily
|
|
83
|
+
fontFamily: fontTokens.monoFontFamily
|
|
84
84
|
},
|
|
85
85
|
MonoLabelXSmall: {
|
|
86
|
-
fontFamily: monoFontFamily
|
|
86
|
+
fontFamily: fontTokens.monoFontFamily
|
|
87
87
|
},
|
|
88
88
|
MonoLabelSmall: {
|
|
89
|
-
fontFamily: monoFontFamily
|
|
89
|
+
fontFamily: fontTokens.monoFontFamily
|
|
90
90
|
},
|
|
91
91
|
MonoLabelMedium: {
|
|
92
|
-
fontFamily: monoFontFamily
|
|
92
|
+
fontFamily: fontTokens.monoFontFamily
|
|
93
93
|
},
|
|
94
94
|
MonoLabelLarge: {
|
|
95
|
-
fontFamily: monoFontFamily
|
|
95
|
+
fontFamily: fontTokens.monoFontFamily
|
|
96
96
|
},
|
|
97
97
|
MonoHeadingXSmall: {
|
|
98
|
-
fontFamily: monoFontFamily
|
|
98
|
+
fontFamily: fontTokens.monoFontFamily
|
|
99
99
|
},
|
|
100
100
|
MonoHeadingSmall: {
|
|
101
|
-
fontFamily: monoFontFamily
|
|
101
|
+
fontFamily: fontTokens.monoFontFamily
|
|
102
102
|
},
|
|
103
103
|
MonoHeadingMedium: {
|
|
104
|
-
fontFamily: monoFontFamily
|
|
104
|
+
fontFamily: fontTokens.monoFontFamily
|
|
105
105
|
},
|
|
106
106
|
MonoHeadingLarge: {
|
|
107
|
-
fontFamily: monoFontFamily
|
|
107
|
+
fontFamily: fontTokens.monoFontFamily
|
|
108
108
|
},
|
|
109
109
|
MonoHeadingXLarge: {
|
|
110
|
-
fontFamily: monoFontFamily
|
|
110
|
+
fontFamily: fontTokens.monoFontFamily
|
|
111
111
|
},
|
|
112
112
|
MonoHeadingXXLarge: {
|
|
113
|
-
fontFamily: monoFontFamily
|
|
113
|
+
fontFamily: fontTokens.monoFontFamily
|
|
114
114
|
},
|
|
115
115
|
MonoDisplayXSmall: {
|
|
116
|
-
fontFamily: monoFontFamily
|
|
116
|
+
fontFamily: fontTokens.monoFontFamily
|
|
117
117
|
},
|
|
118
118
|
MonoDisplaySmall: {
|
|
119
|
-
fontFamily: monoFontFamily
|
|
119
|
+
fontFamily: fontTokens.monoFontFamily
|
|
120
120
|
},
|
|
121
121
|
MonoDisplayMedium: {
|
|
122
|
-
fontFamily: monoFontFamily
|
|
122
|
+
fontFamily: fontTokens.monoFontFamily
|
|
123
123
|
},
|
|
124
124
|
MonoDisplayLarge: {
|
|
125
|
-
fontFamily: monoFontFamily
|
|
125
|
+
fontFamily: fontTokens.monoFontFamily
|
|
126
126
|
}
|
|
127
127
|
};
|