Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fusoionic/ng-tailwind-color

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fusoionic/ng-tailwind-color - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

1

lib/interfaces/tailwind-internal.interface.d.ts
import { TWColorTone } from "./tailwind-color.interface";
export type TWNil<T = any> = T | null | undefined;
export type TWColorData = Record<string, TWColorDataItem>;
export type TWColorDataItem = Record<TWColorTone, TWColorDataHex>;
export type TWColorDataHex = string;

9

lib/pipes/tailwind-darken.pipe.d.ts
import { PipeTransform } from "@angular/core";
import { TWColor } from "../interfaces/tailwind-color.interface";
import { TailwindService } from "../services/tailwind.service";
import { TWNil } from "../interfaces/tailwind-internal.interface";
import * as i0 from "@angular/core";

@@ -8,3 +9,3 @@ export declare class TailwindDarkenHexPipe implements PipeTransform {

constructor(twService?: TailwindService);
transform(value: TWColor | null, amount?: number | null): TWColor | null;
transform(value: TWNil<TWColor>, amount?: number | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindDarkenHexPipe, [{ optional: true; }]>;

@@ -16,3 +17,3 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindDarkenHexPipe, "twDarkenHex", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, amount?: number | null): TWColor | null;
transform(value: TWNil<TWColor>, amount?: number | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindDarkenRgbPipe, [{ optional: true; }]>;

@@ -24,3 +25,3 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindDarkenRgbPipe, "twDarkenRgb", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, amount?: number | null): TWColor | null;
transform(value: TWNil<TWColor>, amount?: number | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindDarkenHslPipe, [{ optional: true; }]>;

@@ -32,5 +33,5 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindDarkenHslPipe, "twDarkenHsl", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, amount?: number | null): TWColor | null;
transform(value: TWNil<TWColor>, amount?: number | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindDarkenHsvPipe, [{ optional: true; }]>;
static ɵpipe: i0.ɵɵPipeDeclaration<TailwindDarkenHsvPipe, "twDarkenHsv", false>;
}

@@ -5,2 +5,3 @@ import { PipeTransform } from "@angular/core";

import { TWInvertOptions } from "../interfaces/tailwind-options.interface";
import { TWNil } from "../interfaces/tailwind-internal.interface";
import * as i0 from "@angular/core";

@@ -10,3 +11,3 @@ export declare class TailwindInvertHexPipe implements PipeTransform {

constructor(twService?: TailwindService);
transform(value: TWColor | null, options?: Partial<TWInvertOptions>): TWColor | null;
transform(value: TWNil<TWColor>, options?: Partial<TWInvertOptions>): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindInvertHexPipe, [{ optional: true; }]>;

@@ -18,3 +19,3 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindInvertHexPipe, "twInvertHex", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, options?: Partial<TWInvertOptions>): TWColor | null;
transform(value: TWNil<TWColor>, options?: Partial<TWInvertOptions>): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindInvertRgbPipe, [{ optional: true; }]>;

@@ -26,3 +27,3 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindInvertRgbPipe, "twInvertRgb", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, options?: Partial<TWInvertOptions>): TWColor | null;
transform(value: TWNil<TWColor>, options?: Partial<TWInvertOptions>): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindInvertHslPipe, [{ optional: true; }]>;

@@ -34,5 +35,5 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindInvertHslPipe, "twInvertHsl", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, options?: Partial<TWInvertOptions>): TWColor | null;
transform(value: TWNil<TWColor>, options?: Partial<TWInvertOptions>): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindInvertHsvPipe, [{ optional: true; }]>;
static ɵpipe: i0.ɵɵPipeDeclaration<TailwindInvertHsvPipe, "twInvertHsv", false>;
}
import { PipeTransform } from "@angular/core";
import { TWColor } from "../interfaces/tailwind-color.interface";
import { TailwindService } from "../services/tailwind.service";
import { TWNil } from "../interfaces/tailwind-internal.interface";
import * as i0 from "@angular/core";

@@ -8,3 +9,3 @@ export declare class TailwindLightenHexPipe implements PipeTransform {

constructor(twService?: TailwindService);
transform(value: TWColor | null, amount?: number | null): TWColor | null;
transform(value: TWNil<TWColor>, amount?: number | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindLightenHexPipe, [{ optional: true; }]>;

@@ -16,3 +17,3 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindLightenHexPipe, "twLightenHex", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, amount?: number | null): TWColor | null;
transform(value: TWNil<TWColor>, amount?: number | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindLightenRgbPipe, [{ optional: true; }]>;

@@ -24,3 +25,3 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindLightenRgbPipe, "twLightenRgb", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, amount?: number | null): TWColor | null;
transform(value: TWNil<TWColor>, amount?: number | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindLightenHslPipe, [{ optional: true; }]>;

@@ -32,5 +33,5 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindLightenHslPipe, "twLightenHsl", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, amount?: number | null): TWColor | null;
transform(value: TWNil<TWColor>, amount?: number | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindLightenHsvPipe, [{ optional: true; }]>;
static ɵpipe: i0.ɵɵPipeDeclaration<TailwindLightenHsvPipe, "twLightenHsv", false>;
}
import { PipeTransform } from "@angular/core";
import { TWColor } from "../interfaces/tailwind-color.interface";
import { TailwindService } from "../services/tailwind.service";
import { TWNil } from "../interfaces/tailwind-internal.interface";
import * as i0 from "@angular/core";

@@ -8,3 +9,3 @@ export declare class TailwindHexPipe implements PipeTransform {

constructor(twService?: TailwindService);
transform(value: TWColor | null, fallback?: TWColor | null): TWColor | null;
transform(value: TWNil<TWColor>, fallback?: TWColor | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindHexPipe, [{ optional: true; }]>;

@@ -16,3 +17,3 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindHexPipe, "twHex", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, fallback?: TWColor | null): TWColor | null;
transform(value: TWNil<TWColor>, fallback?: TWColor | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindRgbPipe, [{ optional: true; }]>;

@@ -24,3 +25,3 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindRgbPipe, "twRgb", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, fallback?: TWColor | null): TWColor | null;
transform(value: TWNil<TWColor>, fallback?: TWColor | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindHslPipe, [{ optional: true; }]>;

@@ -32,5 +33,5 @@ static ɵpipe: i0.ɵɵPipeDeclaration<TailwindHslPipe, "twHsl", false>;

constructor(twService?: TailwindService);
transform(value: TWColor | null, fallback?: TWColor | null): TWColor | null;
transform(value: TWNil<TWColor>, fallback?: TWColor | null): TWColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindHsvPipe, [{ optional: true; }]>;
static ɵpipe: i0.ɵɵPipeDeclaration<TailwindHsvPipe, "twHsv", false>;
}

@@ -0,1 +1,2 @@

import { TWNil } from "../interfaces/tailwind-internal.interface";
import { TWColor } from "../interfaces/tailwind-color.interface";

@@ -16,17 +17,17 @@ import { TWFindOptions, TWInvertOptions, TWRandomOptions } from "../interfaces/tailwind-options.interface";

/** Resolves a color */
resolve(color?: TWColor | null, fallback?: TWColor | null): TailwindColor | null;
resolve(color?: TWNil<TWColor>, fallback?: TWNil<TWColor>): TailwindColor | null;
/** Returns a random color based on the provided find options and seed */
random(options?: Partial<TWRandomOptions>): TailwindColor;
/** Returns true if the provided color is light */
isLight(color?: TWColor | null): boolean;
isLight(color?: TWNil<TWColor>): boolean;
/** Returns true if the provided color is dark */
isDark(color?: TWColor | null): boolean;
isDark(color?: TWNil<TWColor>): boolean;
/** Lighten a color by the provided amount */
lighten(color?: TWColor | null, amount?: number | null): TailwindColor | null;
lighten(color?: TWNil<TWColor>, amount?: TWNil<number>): TailwindColor | null;
/** Darken a color by the provided amount */
darken(color?: TWColor | null, amount?: number | null): TailwindColor | null;
darken(color?: TWNil<TWColor>, amount?: TWNil<number>): TailwindColor | null;
/** Inverts a color */
invert(color?: TWColor | null, options?: Partial<TWInvertOptions>): TailwindColor | null;
invert(color?: TWNil<TWColor>, options?: Partial<TWInvertOptions>): TailwindColor | null;
static ɵfac: i0.ɵɵFactoryDeclaration<TailwindService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<TailwindService>;
}
{
"name": "@fusoionic/ng-tailwind-color",
"version": "1.1.0",
"version": "1.2.0",
"description": "Angular helper functions/pipe for coloring (build on top of TinyColor2)",

@@ -5,0 +5,0 @@ "author": "marxlnfcs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc