gatsby-core-theme 21.0.6 → 21.0.7

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
+ ## [21.0.7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v21.0.6...v21.0.7) (2023-05-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix last component ([8f4c27f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8f4c27f1c8acb66c595537b6f9df2216024f9eb8))
7
+
8
+
9
+ * Merge branch 'tm-3399-validate-classes' into 'master' ([f667d85](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f667d85d70e129bb657b59c96ce8e324bbde2f76))
10
+
1
11
  ## [21.0.6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v21.0.5...v21.0.6) (2023-05-03)
2
12
 
3
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "21.0.6",
3
+ "version": "21.0.7",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -29,22 +29,24 @@ const Collapse = ({
29
29
  };
30
30
 
31
31
  return (
32
- <div className={styles.collapseContainer || ''}>
33
- <div className={maxHeightStyle !== 0 ? styles.active : ''}>
32
+ <div className={styles?.collapseContainer || ''}>
33
+ <div className={maxHeightStyle !== 0 ? styles?.active || '' : ''}>
34
34
  <button
35
35
  type="button"
36
36
  onClick={clickHandler}
37
- className={`${onlyMobile ? styles.buttonM : ''} ${onlyDesktop ? styles.buttonD : ''} ${
38
- styles.button || ''
39
- } ${maxHeightStyle !== 0 ? styles.invertArrow : ''} collapse-gtm btn-cta`}
37
+ className={`${onlyMobile ? styles?.buttonM || '' : ''} ${
38
+ onlyDesktop ? styles?.buttonD || '' : ''
39
+ } ${styles?.button || ''} ${
40
+ maxHeightStyle !== 0 ? styles?.invertArrow || '' : ''
41
+ } collapse-gtm btn-cta`}
40
42
  >
41
43
  {buttonText}
42
44
  </button>
43
45
  <div
44
46
  ref={contentRef}
45
- className={`${onlyMobile ? styles.contentM : ''} ${onlyDesktop ? styles.contentD : ''} ${
46
- styles.content || ''
47
- }`}
47
+ className={`${onlyMobile ? styles?.contentM || '' : ''} ${
48
+ onlyDesktop ? styles?.contentD || '' : ''
49
+ } ${styles?.content || ''}`}
48
50
  style={onlyMobile || onlyDesktop ? { maxHeight: maxHeightStyle } : {}}
49
51
  >
50
52
  {contentText}