@uiw/color-convert
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -16,3 +16,2 @@ "use strict"; | ||
}; | ||
exports.getContrastingColor = getContrastingColor; | ||
//# sourceMappingURL=getContrastingColor.js.map | ||
exports.getContrastingColor = getContrastingColor; |
export * from './utils'; | ||
export * from './getContrastingColor'; | ||
export declare type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor; | ||
export declare type ColorResult = { | ||
export type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor; | ||
export type ColorResult = { | ||
rgb: RgbColor; | ||
@@ -6,0 +6,0 @@ hsl: HslColor; |
@@ -444,3 +444,2 @@ "use strict"; | ||
}; | ||
exports.color = color; | ||
//# sourceMappingURL=index.js.map | ||
exports.color = color; |
@@ -35,3 +35,2 @@ "use strict"; | ||
}; | ||
exports.validHex = validHex; | ||
//# sourceMappingURL=utils.js.map | ||
exports.validHex = validHex; |
@@ -9,3 +9,2 @@ import { color } from './'; | ||
return yiq >= 128 ? '#000' : '#fff'; | ||
}; | ||
//# sourceMappingURL=getContrastingColor.js.map | ||
}; |
export * from './utils'; | ||
export * from './getContrastingColor'; | ||
export declare type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor; | ||
export declare type ColorResult = { | ||
export type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor; | ||
export type ColorResult = { | ||
rgb: RgbColor; | ||
@@ -6,0 +6,0 @@ hsl: HslColor; |
@@ -364,3 +364,2 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
}; | ||
}; | ||
//# sourceMappingURL=index.js.map | ||
}; |
@@ -23,3 +23,2 @@ import { hexToRgba } from './'; | ||
}; | ||
export var validHex = hex => /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex); | ||
//# sourceMappingURL=utils.js.map | ||
export var validHex = hex => /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex); |
{ | ||
"name": "@uiw/color-convert", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Color Convert", | ||
@@ -15,4 +15,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"scripts": { | ||
"build": "tsbb build", | ||
"watch": "tsbb watch" | ||
"build": "tsbb build src/*.ts --use-babel --cjs cjs", | ||
"watch": "tsbb watch src/*.ts --use-babel --cjs cjs" | ||
}, | ||
@@ -28,3 +28,9 @@ "keywords": [ | ||
"src" | ||
] | ||
], | ||
"peerDependencies": { | ||
"@babel/runtime": ">=7.19.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/runtime": "^7.21.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49467
1
1
17
1337