@t2ca/gatsby-theme-showcase 1.2.6 → 1.2.8

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/.babelrc ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "plugins": [
3
+ [
4
+ "@babel/plugin-transform-react-jsx",
5
+ {
6
+ "importSource": "theme-ui", // defaults to react
7
+ "runtime": "automatic", // defaults to classic
8
+ "throwIfNamespace": false // defaults to true
9
+ }
10
+ ]
11
+ ]
12
+ }
package/gatsby-config.js CHANGED
@@ -20,6 +20,7 @@ module.exports = {
20
20
  path: "./src/assets",
21
21
  },
22
22
  },
23
+ `gatsby-plugin-image`,
23
24
  `gatsby-plugin-sharp`,
24
25
  `gatsby-transformer-sharp`,
25
26
  `gatsby-transformer-yaml`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -29,6 +29,7 @@
29
29
  "@theme-ui/typography": "^0.9.1",
30
30
  "framer-motion": "^4.0.0",
31
31
  "gatsby": "^3.0.0",
32
+ "gatsby-plugin-image": "^1.7.1",
32
33
  "gatsby-plugin-react-helmet": "^4.0.0",
33
34
  "gatsby-plugin-sharp": "^3.0.0",
34
35
  "gatsby-plugin-theme-ui": "^0.9.1",
@@ -77,8 +77,8 @@ const ColorModeToggle = () => {
77
77
  },
78
78
  "&::after": {
79
79
  borderRadius: `50%`,
80
- boxShadow: (t) =>
81
- `0 -23px 0 ${t.colors.toggleIcon}, 0 23px 0 ${t.colors.toggleIcon}, 23px 0 0 ${t.colors.toggleIcon}, -23px 0 0 ${t.colors.toggleIcon}, 15px 15px 0 ${t.colors.toggleIcon}, -15px 15px 0 ${t.colors.toggleIcon}, 15px -15px 0 ${t.colors.toggleIcon}, -15px -15px 0 ${t.colors.toggleIcon}`,
80
+ boxShadow: (p) =>
81
+ `0 -23px 0 ${p.colors.toggleIcon}, 0 23px 0 ${p.colors.toggleIcon}, 23px 0 0 ${p.colors.toggleIcon}, -23px 0 0 ${p.colors.toggleIcon}, 15px 15px 0 ${p.colors.toggleIcon}, -15px 15px 0 ${p.colors.toggleIcon}, 15px -15px 0 ${p.colors.toggleIcon}, -15px -15px 0 ${p.colors.toggleIcon}`,
82
82
  content: `""`,
83
83
  height: `8px`,
84
84
  left: `50%`,