@xleddyl/443-components-vue 0.2.2 → 0.2.3

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.
@@ -30,12 +30,12 @@ export interface ModuleOptions {
30
30
  aliases?: Record<string, string>;
31
31
  };
32
32
  theme: {
33
- cookie: string | false;
34
- default: ThemePreference;
33
+ cookie?: string | false;
34
+ default?: ThemePreference;
35
35
  };
36
36
  preset: {
37
- cookie: string | false;
38
- default: ThemePreset;
37
+ cookie?: string | false;
38
+ default?: ThemePreset;
39
39
  };
40
40
  fonts: boolean | ThemePreset[];
41
41
  locale: string;
@@ -109,9 +109,9 @@ export default defineNuxtModule({
109
109
  viteBuild.cssTarget = options.cssTarget;
110
110
  const runtimeConfig = {
111
111
  global: options.global,
112
- themeCookie: options.theme.cookie,
113
- themeDefault: options.theme.default,
114
- presetCookie: options.preset.cookie,
112
+ themeCookie: options.theme.cookie ?? "k-theme",
113
+ themeDefault: options.theme.default ?? "system",
114
+ presetCookie: options.preset.cookie ?? "k-preset",
115
115
  presetDefault,
116
116
  locale: options.locale,
117
117
  messages: options.messages
@@ -26,6 +26,11 @@ html.k-root > body {
26
26
  color: var(--k-text);
27
27
  }
28
28
 
29
+ :where(.k-root) :where(a) {
30
+ color: inherit;
31
+ text-decoration: inherit;
32
+ }
33
+
29
34
  :where(.k-root) :where(button, input, select, textarea, optgroup) {
30
35
  font: inherit;
31
36
  font-feature-settings: inherit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xleddyl/443-components-vue",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Compact, scoped dashboard components for Vue and Nuxt",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",