@micromag/element-footer 0.3.531 → 0.3.547

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.
Files changed (2) hide show
  1. package/package.json +5 -6
  2. package/lib/index.js +0 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-footer",
3
- "version": "0.3.531",
3
+ "version": "0.3.547",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -26,11 +26,10 @@
26
26
  }
27
27
  ],
28
28
  "license": "ISC",
29
- "main": "lib/index.js",
29
+ "type": "module",
30
30
  "module": "es/index.js",
31
31
  "exports": {
32
32
  ".": {
33
- "require": "./lib/index.js",
34
33
  "import": "./es/index.js"
35
34
  },
36
35
  "./assets/css/styles": "./assets/css/styles.css",
@@ -56,8 +55,8 @@
56
55
  },
57
56
  "dependencies": {
58
57
  "@babel/runtime": "^7.13.10",
59
- "@micromag/core": "^0.3.531",
60
- "@micromag/element-call-to-action": "^0.3.531",
58
+ "@micromag/core": "^0.3.547",
59
+ "@micromag/element-call-to-action": "^0.3.547",
61
60
  "classnames": "^2.2.6",
62
61
  "lodash": "^4.17.21",
63
62
  "prop-types": "^15.7.2",
@@ -68,5 +67,5 @@
68
67
  "access": "public",
69
68
  "registry": "https://registry.npmjs.org/"
70
69
  },
71
- "gitHead": "e3a59c467ad33528b38eb4badd78b6ed0e38a3a6"
70
+ "gitHead": "3c2f5904ce61fcfa61f673c38c2a5ec56e9e2b07"
72
71
  }
package/lib/index.js DELETED
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
- var classNames = require('classnames');
5
- var PropTypes = require('prop-types');
6
- var React = require('react');
7
- var core = require('@micromag/core');
8
- var CallToAction = require('@micromag/element-call-to-action');
9
-
10
- var styles = {};
11
-
12
- var propTypes = {
13
- callToAction: core.PropTypes.callToAction,
14
- className: PropTypes.string
15
- };
16
- var defaultProps = {
17
- callToAction: null,
18
- className: null
19
- };
20
- function Footer(_ref) {
21
- var callToAction = _ref.callToAction,
22
- className = _ref.className;
23
- if (callToAction === null) return null;
24
- return /*#__PURE__*/React.createElement("div", {
25
- className: classNames([styles.container, _defineProperty({}, className, className !== null)])
26
- }, /*#__PURE__*/React.createElement(CallToAction, callToAction));
27
- }
28
- Footer.propTypes = propTypes;
29
- Footer.defaultProps = defaultProps;
30
-
31
- module.exports = Footer;