@directus/themes 0.3.5 → 0.3.6

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,6 +1,7 @@
1
- import type { DeepPartial } from '@directus/types';
2
- import type { Theme } from '../schemas/index.js';
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { Theme } from '../schemas/index.js';
2
+ import { DeepPartial } from '@directus/types';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
5
  darkMode: boolean;
5
6
  themeLight: string | null;
6
7
  themeLightOverrides: DeepPartial<Theme['rules']>;
@@ -1,5 +1,6 @@
1
- import type { MaybeRef } from 'vue';
2
- import type { Theme } from '../schemas/theme.js';
1
+ import { Theme } from '../schemas/theme.js';
2
+ import { MaybeRef } from 'vue';
3
+
3
4
  export declare const useFonts: (theme: MaybeRef<Theme>) => {
4
- googleFonts: import("vue").ComputedRef<string[]>;
5
+ googleFonts: import('vue').ComputedRef<string[]>;
5
6
  };
@@ -1,8 +1,9 @@
1
- import type { DeepPartial } from '@directus/types';
2
- import type { MaybeRef } from 'vue';
3
- import type { Theme } from '../schemas/theme.js';
1
+ import { Theme } from '../schemas/theme.js';
2
+ import { MaybeRef } from 'vue';
3
+ import { DeepPartial } from '@directus/types';
4
+
4
5
  export declare const useTheme: (darkMode: MaybeRef<boolean>, themeLight: MaybeRef<string | null>, themeDark: MaybeRef<string | null>, themeLightOverrides: MaybeRef<DeepPartial<Theme['rules']>>, themeDarkOverrides: MaybeRef<DeepPartial<Theme['rules']>>) => {
5
- theme: import("vue").ComputedRef<{
6
+ theme: import('vue').ComputedRef<{
6
7
  id: string;
7
8
  name: string;
8
9
  appearance: "dark";
@@ -1,5 +1,6 @@
1
- import type { Static } from '@sinclair/typebox';
2
- export declare const ThemeSchema: import("@sinclair/typebox").TObject<{
1
+ import { Static } from '@sinclair/typebox';
2
+
3
+ export declare const ThemeSchema: import('@sinclair/typebox').TObject<{
3
4
  id: import("@sinclair/typebox").TString;
4
5
  name: import("@sinclair/typebox").TString;
5
6
  appearance: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"light">, import("@sinclair/typebox").TLiteral<"dark">]>;
@@ -263,14 +264,14 @@ export declare const ThemeSchema: import("@sinclair/typebox").TObject<{
263
264
  }>;
264
265
  export declare const Definitions: {
265
266
  $defs: {
266
- Color: import("@sinclair/typebox").TString;
267
- FamilyName: import("@sinclair/typebox").TString;
268
- Length: import("@sinclair/typebox").TString;
269
- Percentage: import("@sinclair/typebox").TString;
270
- LineWidth: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TLiteral<"thin">, import("@sinclair/typebox").TLiteral<"medium">, import("@sinclair/typebox").TLiteral<"thick">]>;
271
- BoxShadow: import("@sinclair/typebox").TString;
272
- Size: import("@sinclair/typebox").TString;
273
- Number: import("@sinclair/typebox").TString;
267
+ Color: import('@sinclair/typebox').TString;
268
+ FamilyName: import('@sinclair/typebox').TString;
269
+ Length: import('@sinclair/typebox').TString;
270
+ Percentage: import('@sinclair/typebox').TString;
271
+ LineWidth: import('@sinclair/typebox').TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TLiteral<"thin">, import("@sinclair/typebox").TLiteral<"medium">, import("@sinclair/typebox").TLiteral<"thick">]>;
272
+ BoxShadow: import('@sinclair/typebox').TString;
273
+ Size: import('@sinclair/typebox').TString;
274
+ Number: import('@sinclair/typebox').TString;
274
275
  };
275
276
  };
276
277
  export type Theme = Static<typeof ThemeSchema>;
@@ -1,5 +1,6 @@
1
- import type { Theme } from '../schemas/theme.js';
2
- export declare const useThemeStore: import("pinia").StoreDefinition<"🎨 Themes", import("pinia")._UnwrapAll<Pick<{
1
+ import { Theme } from '../schemas/theme.js';
2
+
3
+ export declare const useThemeStore: import('pinia').StoreDefinition<"🎨 Themes", import("pinia")._UnwrapAll<Pick<{
3
4
  themes: {
4
5
  light: {
5
6
  id: string;
@@ -1,3 +1,4 @@
1
- import type { Theme } from '../schemas/index.js';
1
+ import { Theme } from '../schemas/index.js';
2
+
2
3
  export declare const dark: Theme[];
3
4
  export declare const light: Theme[];
@@ -1,3 +1,4 @@
1
- import type { DeepPartial } from '@directus/types';
2
- import type { Theme } from '../schemas/index.js';
1
+ import { Theme } from '../schemas/index.js';
2
+ import { DeepPartial } from '@directus/types';
3
+
3
4
  export declare const rulesToCssVars: (rules: DeepPartial<Theme['rules']>) => Record<string, string | number>;
package/license CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright 2023 Monospace, Inc.
3
+ Copyright 2024 Monospace, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6
6
  documentation files (the “Software”), to deal in the Software without restriction, including without limitation the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@directus/themes",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Themes for Directus",
5
5
  "homepage": "https://directus.io",
6
6
  "repository": {
@@ -26,19 +26,19 @@
26
26
  "decamelize": "6.0.0",
27
27
  "flat": "6.0.1",
28
28
  "lodash-es": "4.17.21",
29
- "@directus/utils": "11.0.6"
29
+ "@directus/utils": "11.0.7"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/lodash-es": "4.17.12",
33
33
  "@unhead/vue": "1.8.10",
34
34
  "@vitejs/plugin-vue": "5.0.4",
35
35
  "pinia": "2.1.7",
36
- "rollup-plugin-node-externals": "7.0.1",
36
+ "rollup-plugin-node-externals": "7.1.1",
37
37
  "typescript": "5.3.3",
38
38
  "vite": "5.1.4",
39
- "vite-plugin-dts": "3.7.3",
39
+ "vite-plugin-dts": "3.8.1",
40
40
  "vue": "3.4.21",
41
- "@directus/types": "11.0.7",
41
+ "@directus/types": "11.0.8",
42
42
  "@directus/tsconfig": "1.0.1"
43
43
  },
44
44
  "peerDependencies": {