@micromag/element-link 0.4.48 → 0.4.50

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/es/index.js +9 -6
  2. package/package.json +3 -3
package/es/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import classNames from 'classnames';
3
- import React, { useId } from 'react';
3
+ import { useId } from 'react';
4
4
  import { getStyleFromMargin } from '@micromag/core/utils';
5
+ import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  var styles = {"container":"micromag-element-link-container"};
7
8
 
@@ -37,19 +38,21 @@ function Link(_ref) {
37
38
  },
38
39
  target = _ref2.target,
39
40
  rel = _ref2.rel;
40
- return url ? /*#__PURE__*/React.createElement("a", {
41
+ return url ? /*#__PURE__*/jsx("a", {
41
42
  id: id,
42
43
  className: classNames([styles.container, className]),
43
44
  style: finalStyle,
44
45
  href: url,
45
46
  target: target,
46
47
  rel: rel,
47
- tabIndex: focusable ? '0' : '-1'
48
- }, children) : /*#__PURE__*/React.createElement("div", {
48
+ tabIndex: focusable ? '0' : '-1',
49
+ children: children
50
+ }) : /*#__PURE__*/jsx("div", {
49
51
  id: id,
50
52
  className: classNames([styles.container, className]),
51
- style: finalStyle
52
- }, children);
53
+ style: finalStyle,
54
+ children: children
55
+ });
53
56
  }
54
57
 
55
58
  export { Link as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-link",
3
- "version": "0.4.48",
3
+ "version": "0.4.50",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.28.6",
63
- "@micromag/core": "^0.4.48",
63
+ "@micromag/core": "^0.4.50",
64
64
  "classnames": "^2.2.6",
65
65
  "react-intl": "^8.1.3 || ^10.0.0",
66
66
  "uuid": "^9.0.0"
@@ -69,6 +69,6 @@
69
69
  "access": "public",
70
70
  "registry": "https://registry.npmjs.org/"
71
71
  },
72
- "gitHead": "d6772865be1ee3f2d19288ebfbf4b9b6860f4cd7",
72
+ "gitHead": "940d5ca98f8f448b79eaa3e2fa685c3ee95185b8",
73
73
  "types": "es/index.d.ts"
74
74
  }