gatsby-core-theme 2.0.5 → 2.0.6
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.0.6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.5...v2.0.6) (2021-12-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* spotlights component ([04bb5db](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/04bb5dbb2fd3ce69c511a99b16e7747dcdc7c3f6))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([c7653a6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c7653a6da041061559855106cd6dfa7f9581a2c7))
|
|
10
|
+
|
|
1
11
|
## [2.0.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.4...v2.0.5) (2021-12-22)
|
|
2
12
|
|
|
3
13
|
|
package/package.json
CHANGED
|
@@ -18,7 +18,12 @@ const Spotlights = ({ module }) => {
|
|
|
18
18
|
return (
|
|
19
19
|
<>
|
|
20
20
|
<span className={styles.itemImage}>
|
|
21
|
-
<LazyImage
|
|
21
|
+
<LazyImage
|
|
22
|
+
width={100}
|
|
23
|
+
height={50}
|
|
24
|
+
alt={item.label || item?.link_text}
|
|
25
|
+
src={imagePrettyUrl(img)}
|
|
26
|
+
/>
|
|
22
27
|
</span>
|
|
23
28
|
<div className={styles.content}>
|
|
24
29
|
<span className={styles.label}>{item.label}</span>
|
|
@@ -29,7 +34,7 @@ const Spotlights = ({ module }) => {
|
|
|
29
34
|
};
|
|
30
35
|
|
|
31
36
|
return (
|
|
32
|
-
<div className={styles.spotlightsContainer}>
|
|
37
|
+
<div className={`${styles.spotlightsContainer} ${module.style ? styles[module.style] : ''}`}>
|
|
33
38
|
{show_read_more === '1' && (
|
|
34
39
|
<div
|
|
35
40
|
className={styles.spotlightstext}
|
|
@@ -101,6 +106,7 @@ const Spotlights = ({ module }) => {
|
|
|
101
106
|
};
|
|
102
107
|
Spotlights.propTypes = {
|
|
103
108
|
module: PropTypes.shape({
|
|
109
|
+
style: PropTypes.string,
|
|
104
110
|
mode: PropTypes.oneOf(['image', 'icon', 'image_text']).isRequired,
|
|
105
111
|
items: PropTypes.arrayOf(
|
|
106
112
|
PropTypes.shape({
|