@sendelius/vue 0.6.3 → 0.6.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.
@@ -1 +1 @@
1
- export {}
1
+ declare const theme: string;
@@ -0,0 +1 @@
1
+ (function(){var e=localStorage.getItem(`theme`)||(window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`);document.documentElement.setAttribute(`data-theme`,e)})();
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "./dist/theme/init.js"
12
12
  ],
13
13
  "scripts": {
14
- "build": "vite build && node fix-dts.mjs"
14
+ "build": "vite build && vite build --config vite.theme.config.js && node fix-dts.mjs"
15
15
  },
16
16
  "exports": {
17
17
  ".": {
@@ -19,7 +19,7 @@
19
19
  "import": "./dist/index.js"
20
20
  },
21
21
  "./style": "./dist/style.css",
22
- "./theme/init": "./dist/theme/init.js"
22
+ "./theme/init": "./dist/theme-init.js"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -51,5 +51,5 @@
51
51
  "@parcel/watcher@2.6.0": true,
52
52
  "vue-demi@0.14.10": true
53
53
  },
54
- "version": "0.6.3"
54
+ "version": "0.6.4"
55
55
  }
@@ -1,5 +0,0 @@
1
- // src/theme/init.js
2
- (() => {
3
- let e = localStorage.getItem("theme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
4
- document.documentElement.setAttribute("data-theme", e);
5
- })();