@carbon/type 10.11.0 → 10.13.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/type",
|
|
3
3
|
"description": "Typography for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.13.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@carbon/import-once": "^10.3.0",
|
|
36
|
-
"@carbon/layout": "^10.
|
|
36
|
+
"@carbon/layout": "^10.12.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@carbon/bundler": "^10.
|
|
40
|
-
"@carbon/test-utils": "^10.
|
|
39
|
+
"@carbon/bundler": "^10.9.0",
|
|
40
|
+
"@carbon/test-utils": "^10.10.0",
|
|
41
41
|
"change-case": "^4.1.1",
|
|
42
42
|
"rimraf": "^3.0.0"
|
|
43
43
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"sassDir": "scss",
|
|
48
48
|
"needs": "^1.3.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "4d9cf186a840c295ac15dad2d38907e93d4eb256"
|
|
51
51
|
}
|
|
@@ -19,7 +19,7 @@ $carbon--grid-gutter: carbon--rem(32px);
|
|
|
19
19
|
/// @type Number
|
|
20
20
|
/// @access public
|
|
21
21
|
/// @group @carbon/layout
|
|
22
|
-
$carbon--grid-gutter--condensed: carbon--rem(
|
|
22
|
+
$carbon--grid-gutter--condensed: carbon--rem(1px);
|
|
23
23
|
|
|
24
24
|
// Initial map of our breakpoints and their values
|
|
25
25
|
/// @type Map
|
|
@@ -125,7 +125,7 @@ $carbon--grid-breakpoints: (
|
|
|
125
125
|
@return '-#{$name}';
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
/// Generate a media query
|
|
128
|
+
/// Generate a media query from the width of the given breakpoint to infinity
|
|
129
129
|
/// @param {String | Number} $name
|
|
130
130
|
/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - A map of breakpoints where the key is the name
|
|
131
131
|
/// @content
|
|
@@ -11,7 +11,7 @@ import * as tokens from '../styles';
|
|
|
11
11
|
import { print } from '../print';
|
|
12
12
|
|
|
13
13
|
describe('styles', () => {
|
|
14
|
-
test.each(Object.keys(tokens))('%s should be printable', key => {
|
|
14
|
+
test.each(Object.keys(tokens))('%s should be printable', (key) => {
|
|
15
15
|
const token = tokens[key];
|
|
16
16
|
expect(print(token)).toMatchSnapshot();
|
|
17
17
|
});
|
|
@@ -11,11 +11,11 @@ import { unstable_tokens as tokens } from '../tokens';
|
|
|
11
11
|
import * as styles from '../styles';
|
|
12
12
|
|
|
13
13
|
describe('type tokens', () => {
|
|
14
|
-
test.each(tokens)('%s should be defined in styles', token => {
|
|
14
|
+
test.each(tokens)('%s should be defined in styles', (token) => {
|
|
15
15
|
expect(styles[token]).toBeDefined();
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
test.each(Object.keys(styles))('%s should be defined in tokens', token => {
|
|
18
|
+
test.each(Object.keys(styles))('%s should be defined in tokens', (token) => {
|
|
19
19
|
expect(tokens.indexOf(token)).not.toBe(-1);
|
|
20
20
|
});
|
|
21
21
|
});
|
package/src/fluid.js
CHANGED
|
@@ -27,7 +27,7 @@ export function fluid(selector) {
|
|
|
27
27
|
|
|
28
28
|
styles.fontSize = fluidTypeSize(styles, 'sm', fluidBreakpoints);
|
|
29
29
|
|
|
30
|
-
fluidBreakpointNames.forEach(name => {
|
|
30
|
+
fluidBreakpointNames.forEach((name) => {
|
|
31
31
|
styles[bp(name)] = {
|
|
32
32
|
...fluidBreakpoints[name],
|
|
33
33
|
fontSize: fluidTypeSize(styles, name, fluidBreakpoints),
|