@micromag/element-footer 0.3.832 → 0.4.4

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/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { CallToAction } from '@micromag/core';
3
+
4
+ interface FooterProps {
5
+ callToAction?: CallToAction | null;
6
+ className?: string | null;
7
+ }
8
+ declare function Footer({ callToAction, className }: FooterProps): react_jsx_runtime.JSX.Element;
9
+
10
+ export { Footer as default };
package/es/index.js CHANGED
@@ -1,29 +1,19 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import classNames from 'classnames';
3
- import PropTypes from 'prop-types';
4
3
  import React from 'react';
5
- import { PropTypes as PropTypes$1 } from '@micromag/core';
6
4
  import CallToAction from '@micromag/element-call-to-action';
7
5
 
8
- var styles = {};
6
+ var styles = {"container":"container"};
9
7
 
10
- var propTypes = {
11
- callToAction: PropTypes$1.callToAction,
12
- className: PropTypes.string
13
- };
14
- var defaultProps = {
15
- callToAction: null,
16
- className: null
17
- };
18
8
  function Footer(_ref) {
19
- var callToAction = _ref.callToAction,
20
- className = _ref.className;
9
+ var _ref$callToAction = _ref.callToAction,
10
+ callToAction = _ref$callToAction === void 0 ? null : _ref$callToAction,
11
+ _ref$className = _ref.className,
12
+ className = _ref$className === void 0 ? null : _ref$className;
21
13
  if (callToAction === null) return null;
22
14
  return /*#__PURE__*/React.createElement("div", {
23
15
  className: classNames([styles.container, _defineProperty({}, className, className !== null)])
24
16
  }, /*#__PURE__*/React.createElement(CallToAction, callToAction));
25
17
  }
26
- Footer.propTypes = propTypes;
27
- Footer.defaultProps = defaultProps;
28
18
 
29
19
  export { Footer as default };
package/es/styles.css ADDED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-footer",
3
- "version": "0.3.832",
3
+ "version": "0.4.4",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -30,6 +30,7 @@
30
30
  "module": "es/index.js",
31
31
  "exports": {
32
32
  ".": {
33
+ "types": "./es/index.d.ts",
33
34
  "import": "./es/index.js"
34
35
  },
35
36
  "./assets/css/styles": "./assets/css/styles.css",
@@ -43,29 +44,29 @@
43
44
  "scripts": {
44
45
  "clean": "rm -rf es && rm -rf lib && rm -rf assets",
45
46
  "prepublishOnly": "npm run build",
46
- "build": "../../scripts/prepare-package.sh"
47
+ "build": "../../scripts/prepare-package.sh --types"
47
48
  },
48
49
  "devDependencies": {
49
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
50
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
50
+ "react": "^19.2.0",
51
+ "react-dom": "^18.3.0 || ^19.0.0"
51
52
  },
52
53
  "peerDependencies": {
53
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
54
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
54
+ "react": "^19.2.0",
55
+ "react-dom": "^18.3.0 || ^19.0.0"
55
56
  },
56
57
  "dependencies": {
57
58
  "@babel/runtime": "^7.13.10",
58
- "@micromag/core": "^0.3.832",
59
- "@micromag/element-call-to-action": "^0.3.832",
59
+ "@micromag/core": "^0.4.4",
60
+ "@micromag/element-call-to-action": "^0.4.4",
60
61
  "classnames": "^2.2.6",
61
- "lodash": "^4.17.21",
62
- "prop-types": "^15.7.2",
63
- "react-intl": "^6.6.4",
62
+ "lodash": "^4.17.23",
63
+ "react-intl": "^8.1.3",
64
64
  "uuid": "^9.0.0"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public",
68
68
  "registry": "https://registry.npmjs.org/"
69
69
  },
70
- "gitHead": "4969d64e304334cfd47321e624e5914e0694c55f"
70
+ "gitHead": "04b8519c3a3ddace5a21497e22faa11865d57f6d",
71
+ "types": "es/index.d.ts"
71
72
  }