diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7c0eb69..f8e75ac 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 18 - run: npm ci - run: npm run build publish-gpr: @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 18 registry-url: https://npm.pkg.github.com/ - run: npm ci - run: npm run build diff --git a/README.md b/README.md index 100dfbd..6eec7f8 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@
+
❤️ Inspired from{" "}
codepen by{" "}
Aaron Iker
diff --git a/doc/pages/docs/loaders/bookloader.mdx b/doc/pages/docs/loaders/bookloader.mdx
index c5950bf..b45c15e 100644
--- a/doc/pages/docs/loaders/bookloader.mdx
+++ b/doc/pages/docs/loaders/bookloader.mdx
@@ -1,6 +1,7 @@
---
title: Book Loader
section: Loaders
+slug: /docs/loaders/bookloader
---
import { Loader } from "../code/loader.js";
@@ -49,7 +50,7 @@ Below are the parameters for **BookLoader** that you can customize.
> `size`, `desktopSize` and `mobileSize` attributes are defined relative to `64px` for all loaders and it doesn't mean the actual size would be `64px`. It means all the sizes defined will be w.r.t `64px`. If you pass `128px` then the size doubles. Also, note that if one of the `desktopSize` and `mobileSize` is not defined, then it will use the `size` attribute. Value defined in `size` attribute is assigned for mobile devices and loader automatically doubles the size on desktop device.
-
+
❤️ Inspired from{" "}
codepen by{" "}
Aaron Iker
diff --git a/doc/pages/docs/loaders/boxesloader.mdx b/doc/pages/docs/loaders/boxesloader.mdx
index d515e35..8e4b328 100644
--- a/doc/pages/docs/loaders/boxesloader.mdx
+++ b/doc/pages/docs/loaders/boxesloader.mdx
@@ -1,6 +1,7 @@
---
title: Boxes Loader
section: Loaders
+slug: /docs/loaders/boxesloader
---
import { Loader } from "../code/loader.js";
@@ -45,7 +46,7 @@ Below are the parameters for **BoxesLoader** that you can customize.
> `size`, `desktopSize` and `mobileSize` attributes are defined relative to `64px` for all loaders and it doesn't mean the actual size would be `64px`. It means all the sizes defined will be w.r.t `64px`. If you pass `128px` then the size doubles. Also, note that if one of the `desktopSize` and `mobileSize` is not defined, then it will use the `size` attribute. Value defined in `size` attribute is assigned for mobile devices and loader automatically doubles the size on desktop device.
-
+
❤️ Inspired from codepen{" "}
by Aaron Iker
+
❤️ Inspired from{" "}
codepen by{" "}
Aaron Iker
diff --git a/doc/pages/docs/loaders/flipfloploader.mdx b/doc/pages/docs/loaders/flipfloploader.mdx
index 26e27fd..3963c61 100644
--- a/doc/pages/docs/loaders/flipfloploader.mdx
+++ b/doc/pages/docs/loaders/flipfloploader.mdx
@@ -1,6 +1,7 @@
---
title: FlipFlop Loader
section: Loaders
+slug: /docs/loaders/flipfloploader
---
import { Loader } from "../code/loader.js";
@@ -49,7 +50,7 @@ Some of the color parameters like `ringShiness`, `ringLightColor`, `ringLightInt
> `size`, `desktopSize` and `mobileSize` attributes are defined relative to `64px` for all loaders and it doesn't mean the actual size would be `64px`. It means all the sizes defined will be w.r.t `64px`. If you pass `128px` then the size doubles. Also, note that if one of the `desktopSize` and `mobileSize` is not defined, then it will use the `size` attribute. Value defined in `size` attribute is assigned for mobile devices and loader automatically doubles the size on desktop device.
-
+
❤️ Inspired from{" "}
codepen by{" "}
Aaron Iker
diff --git a/doc/pages/docs/loaders/scatterboxloader.mdx b/doc/pages/docs/loaders/scatterboxloader.mdx
index d85d57c..95c9c32 100644
--- a/doc/pages/docs/loaders/scatterboxloader.mdx
+++ b/doc/pages/docs/loaders/scatterboxloader.mdx
@@ -1,6 +1,7 @@
---
title: Scatter Box Loader
section: Loaders
+slug: /docs/loaders/scatterboxloader
---
import { Loader } from "../code/loader.js";
@@ -47,7 +48,7 @@ This is the only loader which is loosely written and is not auto-responsive. The
The above explained limitations of this loader is because of its implementation in `css`. Creating responsiveness and dynamicity using `css` is very difficult, this is the prime example for that.
-
+
❤️ Inspired from{" "}
codepen by{" "}
Aaron Iker
diff --git a/doc/pages/docs/loaders/squircleloader.mdx b/doc/pages/docs/loaders/squircleloader.mdx
index b3935b7..409e1a8 100644
--- a/doc/pages/docs/loaders/squircleloader.mdx
+++ b/doc/pages/docs/loaders/squircleloader.mdx
@@ -1,6 +1,7 @@
---
title: Squircle Loader
section: Loaders
+slug: /docs/loaders/squircleloader
---
import { Loader } from "../code/loader.js";
@@ -40,7 +41,7 @@ Below are the parameters for **SquircleLoader** that you can customize.
> `size`, `desktopSize` and `mobileSize` attributes are defined relative to `64px` for all loaders and it doesn't mean the actual size would be `64px`. It means all the sizes defined will be w.r.t `64px`. If you pass `128px` then the size doubles. Also, note that if one of the `desktopSize` and `mobileSize` is not defined, then it will use the `size` attribute. Value defined in `size` attribute is assigned for mobile devices and loader automatically doubles the size on desktop device.
-
+
❤️ Inspired from{" "}
codepen by{" "}
Chris Gannon
diff --git a/doc/pages/docs/loaders/sunspotloader.mdx b/doc/pages/docs/loaders/sunspotloader.mdx
index 1281ecd..4bfcd7e 100644
--- a/doc/pages/docs/loaders/sunspotloader.mdx
+++ b/doc/pages/docs/loaders/sunspotloader.mdx
@@ -1,6 +1,7 @@
---
title: Sunspot Loader
section: Loaders
+slug: /docs/loaders/sunspotloader
---
import { Loader } from "../code/loader.js";
@@ -48,7 +49,7 @@ You can pass one or two colors to `gradientColors`. If there is only one color,
> `size`, `desktopSize` and `mobileSize` attributes are defined relative to `64px` for all loaders and it doesn't mean the actual size would be `64px`. It means all the sizes defined will be w.r.t `64px`. If you pass `128px` then the size doubles. Also, note that if one of the `desktopSize` and `mobileSize` is not defined, then it will use the `size` attribute. Value defined in `size` attribute is assigned for mobile devices and loader automatically doubles the size on desktop device.
-
+
❤️ Inspired from{" "}
codepen by{" "}
Chris Gannon
diff --git a/doc/pages/docs/loaders/threedloader.mdx b/doc/pages/docs/loaders/threedloader.mdx
index f94cfac..1d1dee5 100644
--- a/doc/pages/docs/loaders/threedloader.mdx
+++ b/doc/pages/docs/loaders/threedloader.mdx
@@ -1,6 +1,7 @@
---
title: ThreeD Loader
section: Loaders
+slug: /docs/loaders/threedloader
---
import { Loader } from "../code/loader.js";
@@ -47,7 +48,7 @@ Some of the color parameters like `colorLight`, `colorAmbientLight` are added fo
> `size`, `desktopSize` and `mobileSize` attributes are defined relative to `64px` for all loaders and it doesn't mean the actual size would be `64px`. It means all the sizes defined will be w.r.t `64px`. If you pass `128px` then the size doubles. Also, note that if one of the `desktopSize` and `mobileSize` is not defined, then it will use the `size` attribute. Value defined in `size` attribute is assigned for mobile devices and loader automatically doubles the size on desktop device.
-
+
❤️ Inspired from codepen{" "}
by Aaron Iker
+
❤️ Inspired from{" "}
codepen by{" "}
Milan Raring
diff --git a/doc/pages/docs/loaders/xlviloader.mdx b/doc/pages/docs/loaders/xlviloader.mdx
index cc94e28..e300975 100644
--- a/doc/pages/docs/loaders/xlviloader.mdx
+++ b/doc/pages/docs/loaders/xlviloader.mdx
@@ -1,6 +1,7 @@
---
title: XLVI Loader
section: Loaders
+slug: /docs/loaders/xlviloader
---
import { Loader } from "../code/loader.js";
@@ -45,7 +46,7 @@ You can pass one, two or three colors to `boxColors`. If there is only one color
> `size`, `desktopSize` and `mobileSize` attributes are defined relative to `64px` for all loaders and it doesn't mean the actual size would be `64px`. It means all the sizes defined will be w.r.t `64px`. If you pass `128px` then the size doubles. Also, note that if one of the `desktopSize` and `mobileSize` is not defined, then it will use the `size` attribute. Value defined in `size` attribute is assigned for mobile devices and loader automatically doubles the size on desktop device.
-
+
❤️ Inspired from codepen by{" "}
Oleg Frolov
-
-
+
+
diff --git a/doc/package.json b/doc/package.json
index 23f00d6..6971616 100644
--- a/doc/package.json
+++ b/doc/package.json
@@ -10,19 +10,19 @@
"serve": "gatsby serve"
},
"dependencies": {
- "@mdx-js/react": "^1.6.22",
+ "@mdx-js/react": "^2.0.0",
"@xstyled/styled-components": "^2.2.2",
- "gatsby": "^2.15.18",
+ "gatsby": "^4.24.0",
"parse-numeric-range": "^1.2.0",
"prism-react-renderer": "^1.1.1",
- "react": "^16.10.1",
+ "react": "^18.0.0",
"react-awesome-loaders": "^0.1.35",
- "react-dom": "^16.10.1",
+ "react-dom": "^18.0.0",
"react-live": "^2.2.3",
"react-player": "^2.8.2",
"react-spring": "^9.0.0-rc.2",
"react-use-gesture": "^9.0.1",
- "smooth-doc": "^5.0.4",
+ "smooth-doc": "^10.1.0",
"styled-components": "^5.2.1"
},
"keywords": [
diff --git a/doc/pages/docs/about-creator.mdx b/doc/pages/docs/about-creator.mdx
index 1ed848a..c15ea59 100644
--- a/doc/pages/docs/about-creator.mdx
+++ b/doc/pages/docs/about-creator.mdx
@@ -2,6 +2,7 @@
title: About Creator
section: More
order: 1
+slug: /docs/about-creator
---
import AwesomeLoaders from "./code/rug";
diff --git a/doc/pages/docs/appreciate.mdx b/doc/pages/docs/appreciate.mdx
index dcc7f1b..763ee1a 100644
--- a/doc/pages/docs/appreciate.mdx
+++ b/doc/pages/docs/appreciate.mdx
@@ -2,6 +2,7 @@
title: Appreciate
section: More
order: 2
+slug: /docs/appreciate
---
import AwesomeLoaders from "./code/rug";
diff --git a/doc/pages/docs/code/examples.js b/doc/pages/docs/code/examples.js
index d761099..cc1a6d2 100644
--- a/doc/pages/docs/code/examples.js
+++ b/doc/pages/docs/code/examples.js
@@ -1,7 +1,7 @@
import React from "react";
import { useSpring, animated } from "react-spring";
import { useDrag } from "react-use-gesture";
-import styles from "./styles.module.css";
+import * as styles from "./styles.module.css";
export function EasterDiv({ children }) {
const [{ x, y, live }, set] = useSpring(() => ({ x: 0, y: 0, live: false }));
@@ -13,7 +13,7 @@ export function EasterDiv({ children }) {
return (