@timus-networks/theme 2.4.41 → 2.4.42

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
3
  "configKey": "themeOptions",
4
- "version": "2.4.41",
4
+ "version": "2.4.42",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -11,7 +11,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
11
11
  const __dirname = __cjs_path__.dirname(__filename);
12
12
  const require = __cjs_mod__.createRequire(import.meta.url);
13
13
  const name = "@timus-networks/theme";
14
- const version = "2.4.41";
14
+ const version = "2.4.42";
15
15
  const description = "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.";
16
16
  const type = "module";
17
17
  const exports = {
@@ -253,6 +253,10 @@ declare global {
253
253
  type __VLS_PrettifyGlobal<T> = {
254
254
  [K in keyof T]: T[K];
255
255
  } & {};
256
+ type __VLS_PickFunctionalComponentCtx<T, K> = NonNullable<__VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
257
+ __ctx?: infer Ctx;
258
+ } ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>>;
259
+ type __VLS_UseTemplateRef<T> = Readonly<import('vue').ShallowRef<T | null>>;
256
260
  function __VLS_getVForSourceType(source: number): [number, number, number][];
257
261
  function __VLS_getVForSourceType(source: string): [string, number, number][];
258
262
  function __VLS_getVForSourceType<T extends any[]>(source: T): [
@@ -285,7 +289,7 @@ declare global {
285
289
  ][];
286
290
  function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
287
291
  function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
288
- function __VLS_directiveAsFunction<T extends import('vue').Directive>(dir: T): T extends (...args: any) => any ? T | __VLS_unknownDirective : NonNullable<(T & Record<string, __VLS_unknownDirective>)['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']>;
292
+ function __VLS_asFunctionalDirective<T>(dir: T): T extends import('vue').ObjectDirective ? NonNullable<T['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']> : T extends (...args: any) => any ? T : __VLS_unknownDirective;
289
293
  function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
290
294
  function __VLS_makeOptional<T>(t: T): {
291
295
  [K in keyof T]?: T[K];
@@ -319,9 +323,6 @@ declare global {
319
323
  };
320
324
  function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void;
321
325
  function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
322
- function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): NonNullable<__VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
323
- __ctx?: infer Ctx;
324
- } ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>>;
325
326
  function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
326
327
  function __VLS_tryAsConstant<const T>(t: T): T;
327
328
  }
@@ -1,6 +1,5 @@
1
1
  @use 'sass:color';
2
2
  @use 'sass:string';
3
- @use 'sass:math';
4
3
 
5
4
  @function rgb2hex($color) {
6
5
  @return string.unquote('#' + #{string.slice(color.ie-hex-str($color), 4)});
@@ -8,11 +7,11 @@
8
7
 
9
8
  // rgba color above solid color
10
9
  @function mix-overlay-color($upper, $lower) {
11
- $opacity: color.channel($upper, 'alpha');
10
+ $opacity: color.alpha($upper);
12
11
 
13
- $red: math.round(color.channel($upper, 'red') * $opacity + color.channel($lower, 'red') * (1 - $opacity));
14
- $green: math.round(color.channel($upper, 'green') * $opacity + color.channel($lower, 'green') * (1 - $opacity));
15
- $blue: math.round(color.channel($upper, 'blue') * $opacity + color.channel($lower, 'blue') * (1 - $opacity));
12
+ $red: color.channel($upper, 'red') * $opacity + color.channel($lower, 'red') * (1 - $opacity);
13
+ $green: color.channel($upper, 'green') * $opacity + color.channel($lower, 'green') * (1 - $opacity);
14
+ $blue: color.channel($upper, 'blue') * $opacity + color.channel($lower, 'blue') * (1 - $opacity);
16
15
 
17
16
  @return rgb2hex(rgb($red, $green, $blue));
18
17
  }
@@ -45,12 +45,7 @@
45
45
 
46
46
  @mixin set-css-color-rgb($type) {
47
47
  $color: map.get($colors, $type, 'base');
48
- @include set-css-var-value(
49
- ('color', $type, 'rgb'),
50
- #{color.channel($color, 'red', $space: rgb),
51
- color.channel($color, 'green', $space: rgb),
52
- color.channel($color, 'blue', $space: rgb)}
53
- );
48
+ @include set-css-var-value(('color', $type, 'rgb'), #{color.channel($color, 'red'), color.channel($color, 'green'), color.channel($color, 'blue')});
54
49
  }
55
50
 
56
51
  // generate css var from existing css var
@@ -1,5 +1,3 @@
1
- @use 'sass:map';
2
- @use 'sass:string';
3
1
  @use 'function' as *;
4
2
  @use '../common/var' as *;
5
3
  // forward mixins
@@ -7,6 +5,11 @@
7
5
  @forward 'function';
8
6
  @forward '_var';
9
7
  @use 'config' as *;
8
+ @use 'sass:string';
9
+ @use 'sass:map';
10
+
11
+ $B: null;
12
+ $E: null;
10
13
 
11
14
  // Break-points
12
15
  @mixin res($key, $map: $breakpoints) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
- "version": "2.4.41",
3
+ "version": "2.4.42",
4
4
  "description": "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.",
5
5
  "type": "module",
6
6
  "exports": {