@micromag/element-footer 0.4.71 → 0.4.74
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.js +43 -13
- package/package.json +9 -11
- package/assets/css/styles.css +0 -0
- package/es/styles.css +0 -0
package/es/index.js
CHANGED
|
@@ -1,20 +1,50 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import CallToAction from '@micromag/element-call-to-action';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
function Footer(t0) {
|
|
7
|
+
const $ = c(7);
|
|
8
|
+
const {
|
|
9
|
+
callToAction: t1,
|
|
10
|
+
className: t2
|
|
11
|
+
} = t0;
|
|
12
|
+
const callToAction = t1 === undefined ? null : t1;
|
|
13
|
+
const className = t2 === undefined ? null : t2;
|
|
14
|
+
if (callToAction === null) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
let t3;
|
|
18
|
+
if ($[0] !== className) {
|
|
19
|
+
t3 = classNames([className]);
|
|
20
|
+
$[0] = className;
|
|
21
|
+
$[1] = t3;
|
|
22
|
+
} else {
|
|
23
|
+
t3 = $[1];
|
|
24
|
+
}
|
|
25
|
+
let t4;
|
|
26
|
+
if ($[2] !== callToAction) {
|
|
27
|
+
t4 = /*#__PURE__*/jsx(CallToAction, {
|
|
28
|
+
...callToAction
|
|
29
|
+
});
|
|
30
|
+
$[2] = callToAction;
|
|
31
|
+
$[3] = t4;
|
|
32
|
+
} else {
|
|
33
|
+
t4 = $[3];
|
|
34
|
+
}
|
|
35
|
+
let t5;
|
|
36
|
+
if ($[4] !== t3 || $[5] !== t4) {
|
|
37
|
+
t5 = /*#__PURE__*/jsx("div", {
|
|
38
|
+
className: t3,
|
|
39
|
+
children: t4
|
|
40
|
+
});
|
|
41
|
+
$[4] = t3;
|
|
42
|
+
$[5] = t4;
|
|
43
|
+
$[6] = t5;
|
|
44
|
+
} else {
|
|
45
|
+
t5 = $[6];
|
|
46
|
+
}
|
|
47
|
+
return t5;
|
|
18
48
|
}
|
|
19
49
|
|
|
20
50
|
export { Footer as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-footer",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.74",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -32,9 +32,7 @@
|
|
|
32
32
|
".": {
|
|
33
33
|
"types": "./es/index.d.ts",
|
|
34
34
|
"import": "./es/index.js"
|
|
35
|
-
}
|
|
36
|
-
"./assets/css/styles": "./assets/css/styles.css",
|
|
37
|
-
"./assets/css/styles.css": "./assets/css/styles.css"
|
|
35
|
+
}
|
|
38
36
|
},
|
|
39
37
|
"files": [
|
|
40
38
|
"lib",
|
|
@@ -47,17 +45,17 @@
|
|
|
47
45
|
"build": "../../scripts/prepare-package.sh --types"
|
|
48
46
|
},
|
|
49
47
|
"devDependencies": {
|
|
50
|
-
"react": "^
|
|
51
|
-
"react-dom": "^
|
|
48
|
+
"react": "^19.0.0",
|
|
49
|
+
"react-dom": "^19.0.0"
|
|
52
50
|
},
|
|
53
51
|
"peerDependencies": {
|
|
54
|
-
"react": "^
|
|
55
|
-
"react-dom": "^
|
|
52
|
+
"react": "^19.0.0",
|
|
53
|
+
"react-dom": "^19.0.0"
|
|
56
54
|
},
|
|
57
55
|
"dependencies": {
|
|
58
56
|
"@babel/runtime": "^7.28.6",
|
|
59
|
-
"@micromag/core": "^0.4.
|
|
60
|
-
"@micromag/element-call-to-action": "^0.4.
|
|
57
|
+
"@micromag/core": "^0.4.74",
|
|
58
|
+
"@micromag/element-call-to-action": "^0.4.74",
|
|
61
59
|
"classnames": "^2.2.6",
|
|
62
60
|
"lodash": "^4.17.23",
|
|
63
61
|
"react-intl": "^8.1.3 || ^10.0.0",
|
|
@@ -67,6 +65,6 @@
|
|
|
67
65
|
"access": "public",
|
|
68
66
|
"registry": "https://registry.npmjs.org/"
|
|
69
67
|
},
|
|
70
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "fe510ee87845280d0760cb292aef9d2eb69e67c1",
|
|
71
69
|
"types": "es/index.d.ts"
|
|
72
70
|
}
|
package/assets/css/styles.css
DELETED
|
File without changes
|
package/es/styles.css
DELETED
|
File without changes
|