@cloudflare/component-heading 2.2.0 → 4.0.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/es/Heading.js CHANGED
@@ -2,24 +2,28 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { createStyledComponent } from '@cloudflare/style-container';
4
4
 
5
- const styles = ({
6
- theme,
7
- size
8
- }) => ({
9
- // Start at 32px and descend the scale
10
- fontSize: 7 - size,
11
- fontWeight: 700,
12
- lineHeight: theme.lineHeights.title,
13
- mt: 0,
14
- p: 0
15
- });
5
+ var styles = _ref => {
6
+ var {
7
+ theme,
8
+ size
9
+ } = _ref;
10
+ return {
11
+ // Start at 32px and descend the scale
12
+ fontSize: 7 - size,
13
+ fontWeight: 700,
14
+ lineHeight: theme.lineHeights.title,
15
+ mt: 0,
16
+ p: 0
17
+ };
18
+ };
16
19
 
17
- const Heading = ({
18
- size,
19
- className,
20
- children
21
- }) => {
22
- const tagName = 'h' + size;
20
+ var Heading = _ref2 => {
21
+ var {
22
+ size,
23
+ className,
24
+ children
25
+ } = _ref2;
26
+ var tagName = 'h' + size;
23
27
  return /*#__PURE__*/React.createElement(tagName, {
24
28
  className
25
29
  }, children);
@@ -1,5 +1,5 @@
1
1
  import { createStyledComponent } from '@cloudflare/style-container';
2
- const HeadingCaption = createStyledComponent(() => ({
2
+ var HeadingCaption = createStyledComponent(() => ({
3
3
  color: 'gray.1',
4
4
  fontWeight: 400,
5
5
  ml: 2
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "@cloudflare/component-heading",
3
3
  "description": "Cloudflare Heading Component",
4
- "version": "2.2.0",
4
+ "version": "4.0.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
8
8
  "license": "BSD-3-Clause",
9
9
  "publishConfig": {
10
- "registry": "https://registry.npmjs.org/",
11
- "access": "public"
10
+ "access": "public",
11
+ "main": "lib/index.js",
12
+ "module": "es/index.js"
12
13
  },
13
14
  "dependencies": {
14
15
  "prop-types": "^15.6.0"
15
16
  },
16
17
  "peerDependencies": {
17
- "@cloudflare/style-const": "^5.3.6",
18
- "@cloudflare/style-container": "^7.8.38",
18
+ "@cloudflare/style-const": "^5.3.9",
19
+ "@cloudflare/style-container": "^7.10.0",
19
20
  "react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"
20
21
  },
21
22
  "stratus": {
@@ -27,6 +28,5 @@
27
28
  "test": "stratus test",
28
29
  "test-coverage": "stratus test --coverage",
29
30
  "test-watch": "stratus test --watch"
30
- },
31
- "gitHead": "806d4183f5d993d3829eb0ea0e130895e5121ea6"
32
- }
31
+ }
32
+ }