gatsby-core-theme 30.0.2 → 30.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ ## [30.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.3...v30.0.4) (2023-10-02)
2
+
3
+
4
+ ### Code Refactoring
5
+
6
+ * added svg opacity for pagination ([364c734](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/364c734702c4c721aa098ab1360b7863cf9f2cd1))
7
+ * responsive styles to pagination ([f08e99d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f08e99d72936de3199d05a5785e53fc6962172de))
8
+
9
+
10
+ * Merge branch 'tm-3633-pagination' into 'master' ([41bd33f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/41bd33fc4158af689d7fa5a9bb401b9fce31f880))
11
+
12
+ ## [30.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.2...v30.0.3) (2023-09-28)
13
+
14
+
15
+ ### Code Refactoring
16
+
17
+ * add inactive arrow bg colour ([1cf3fef](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1cf3fef8aea64f6391e939690ff18281ad8b73c2))
18
+ * changes to custom icons and defaults ([d1d54f3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d1d54f3727dcc3d3c5e5f8f7ce13b2e9acd55749))
19
+ * remove unwanted icon ([614b2f1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/614b2f1e96133dd2c86aeb28f6032a2a405e6e7e))
20
+ * restore pagination styles ([84d1e4a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/84d1e4a967d136de5b4d130895b9839a75d9e61b))
21
+ * test pagination grid for ios < 14 ([1caa107](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1caa107a011bf00f9d70da1ee134f243f9d26567))
22
+
23
+
24
+ * Merge branch 'tm-3628-author-box' into 'master' ([d984ec8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d984ec8b9c7061ba0e0b70958acd77ffc4e963a4))
25
+ * Merge branch 'tm-3628-author-box' into 'master' ([38682a3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/38682a3541cad9411802db610acc73bd6a4d23f5))
26
+
27
+
28
+ ### Tests
29
+
30
+ * test ios css ([cad3d44](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cad3d44799d355761b8c0805b18c1241b7e46628))
31
+
1
32
  ## [30.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.1...v30.0.2) (2023-09-27)
2
33
 
3
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "30.0.2",
3
+ "version": "30.0.4",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -32,18 +32,21 @@ export default function AuthorBox({
32
32
  showReadMore = true,
33
33
  readTimeIcon = <FaClock title="Clock Icon" />,
34
34
  contReadIcon = <FaArrowRight title="Right-pointing Arrow Icon" />,
35
+ socialIcons = {
36
+ facebook: <FaFacebookSquare title="Facebook Icon" />,
37
+ instagram: <FaInstagram title="Instagram Icon" />,
38
+ linkedin: <FaLinkedin title="Linkedin Icon" />,
39
+ twitter: <FaTwitter title="Twitter icon" />,
40
+ tiktok: <IoLogoTiktok title="Tiktok Icon" />,
41
+ },
35
42
  }) {
36
43
  const { translations } = useContext(Context) || {};
37
44
  const socialLinks = [
38
- {
39
- id: 'fb',
40
- link: author?.facebook_profile,
41
- icon: <FaFacebookSquare title="Facebook Icon" />,
42
- },
43
- { id: 'ig', link: author?.instagram_profile, icon: <FaInstagram title="Instagra Icon" /> },
44
- { id: 'li', link: author?.linkedin_profile, icon: <FaLinkedin title="Linkedin Icon" /> },
45
- { id: 'tw', link: author?.twitter_profile, icon: <FaTwitter title="Twitter Icon" /> },
46
- { id: 'tt', link: author?.tik_tok, icon: <IoLogoTiktok title="Tiktok Icon" /> },
45
+ { id: 'fb', link: author?.facebook_profile, icon: socialIcons?.facebook },
46
+ { id: 'ig', link: author?.instagram_profile, icon: socialIcons?.instagram },
47
+ { id: 'li', link: author?.linkedin_profile, icon: socialIcons?.linkedin },
48
+ { id: 'tw', link: author?.twitter_profile, icon: socialIcons?.twitter },
49
+ { id: 'tt', link: author?.tik_tok, icon: socialIcons?.tiktok },
47
50
  ];
48
51
  const biographyRef = useRef(null);
49
52
  const [isReadMore, setIsReadMore] = useState(showReadMore);
@@ -257,4 +260,5 @@ AuthorBox.propTypes = {
257
260
  readTimeIcon: PropTypes.node,
258
261
  contReadIcon: PropTypes.node,
259
262
  showReadMore: PropTypes.bool,
263
+ socialIcons: PropTypes.shape({}),
260
264
  };
@@ -9,7 +9,7 @@
9
9
  height: calc(var(--pagination-height, 4rem) - 1rem);
10
10
  background-color: var(--pagination-background-color, #eeebe5);
11
11
 
12
- @include min(mobile-m) {
12
+ @include min(mobile) {
13
13
  width: var(--pagination-width, 4rem);
14
14
  height: var(--pagination-height, 4rem);
15
15
  font-size: var(--pagination-font-size, 1.6rem);
@@ -19,12 +19,18 @@
19
19
 
20
20
  .pagination {
21
21
  padding: 1.6rem 0 !important;
22
- @include flex-align(center, center);
23
- gap: var(--pagination-gap, 0.8rem);
22
+ display: grid;
23
+ column-gap: var(--pagination-gap, 0.8rem);
24
+ grid-auto-flow: column;
25
+ align-items: center;
26
+ justify-content: center;
24
27
 
25
28
  ul {
26
- @include flex-align(center, center);
27
- gap: var(--pagination-midpoints-gap, 0);
29
+ display: grid;
30
+ column-gap: var(--pagination-midpoints-gap, 0);
31
+ grid-auto-flow: column;
32
+ align-items: center;
33
+ justify-content: center;
28
34
  background-color: var(--pagination-midpoints-background-color, #eeebe5);
29
35
  border-radius: var(--pagination-midpoints-border-radius, 100px);
30
36
 
@@ -42,11 +48,23 @@
42
48
  .button {
43
49
  cursor: not-allowed;
44
50
  color: var(--pagination-inactive-color, #ffffff);
51
+ fill: var(--pagination-inactive-color, #ffffff);
52
+ background-color: var(--pagination-inactive-background-color, var(--pagination-background-color, #eeebe5));
45
53
  @extend .padd;
46
54
 
55
+ > svg {
56
+ opacity: var(--pagination-inactive-opacity, 1);
57
+ }
58
+
47
59
  &.isActive {
48
60
  color: var(--pagination-active-color, #2e3337);
61
+ fill: var(--pagination-active-color, #2e3337);
62
+ background-color: var(--pagination-background-color, #eeebe5);
49
63
  cursor: pointer;
64
+
65
+ > svg {
66
+ opacity: 1;
67
+ }
50
68
  }
51
69
  }
52
70
  }