@licheff/dark-mode-switch 0.1.0 → 0.1.1
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/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Animated dark/light mode toggle components for React. Three variants — each with its own distinct animation effect.
|
|
4
4
|
|
|
5
|
+
**[▶ Live demo](https://dark-mode-switch-rho.vercel.app)** · [npm](https://www.npmjs.com/package/@licheff/dark-mode-switch)
|
|
6
|
+
|
|
5
7
|
## Variants
|
|
6
8
|
|
|
7
9
|
| Component | Animation |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licheff/dark-mode-switch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Todor Lichev",
|
|
@@ -22,20 +22,21 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
|
-
"main": "./dist/index.cjs
|
|
26
|
-
"module": "./dist/index.
|
|
25
|
+
"main": "./dist/index.cjs",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"require": "./dist/index.cjs"
|
|
33
33
|
},
|
|
34
34
|
"./style.css": "./dist/dark-mode-switch.css"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "vite",
|
|
38
38
|
"build": "tsc -b && vite build",
|
|
39
|
+
"build:demo": "vite build --config vite.demo.config.ts",
|
|
39
40
|
"lint": "eslint .",
|
|
40
41
|
"preview": "vite preview",
|
|
41
42
|
"test": "vitest run",
|
|
File without changes
|
|
File without changes
|