@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.
- package/dist/components/theme-provider.vue.d.ts +4 -3
- package/dist/composables/use-fonts.d.ts +4 -3
- package/dist/composables/use-theme.d.ts +5 -4
- package/dist/schemas/theme.d.ts +11 -10
- package/dist/stores/theme.d.ts +3 -2
- package/dist/themes/index.d.ts +2 -1
- package/dist/utils/rules-to-css-vars.d.ts +3 -2
- package/license +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
|
2
|
-
import
|
|
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(
|
|
5
|
+
googleFonts: import('vue').ComputedRef<string[]>;
|
|
5
6
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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(
|
|
6
|
+
theme: import('vue').ComputedRef<{
|
|
6
7
|
id: string;
|
|
7
8
|
name: string;
|
|
8
9
|
appearance: "dark";
|
package/dist/schemas/theme.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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(
|
|
267
|
-
FamilyName: import(
|
|
268
|
-
Length: import(
|
|
269
|
-
Percentage: import(
|
|
270
|
-
LineWidth: import(
|
|
271
|
-
BoxShadow: import(
|
|
272
|
-
Size: import(
|
|
273
|
-
Number: import(
|
|
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>;
|
package/dist/stores/theme.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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;
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
39
|
+
"vite-plugin-dts": "3.8.1",
|
|
40
40
|
"vue": "3.4.21",
|
|
41
|
-
"@directus/types": "11.0.
|
|
41
|
+
"@directus/types": "11.0.8",
|
|
42
42
|
"@directus/tsconfig": "1.0.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|