Files
helpers/package.json
T
pk 5978a33283 color: accept #rgb/#rgba and #rrggbbaa in contrastTextColor; stop rgbToHex throwing
contrastTextColor matched only #rrggbb and silently returned the dark
fallback for every other form — #000 and #369 produced a black label on a
near-black fill. colorLuminance in the same file already expanded short
hex, so this was an inconsistency, not a contract.

rgbToHex threw a TypeError on non-matching input (matches.length on null)
and rejected rgba() and whitespace-free rgb strings; it now returns  and
ignores the alpha channel.
2026-11-15 18:36:49 +01:00

16 lines
337 B
JSON

{
"name": "@tp/helpers",
"version": "2.15.0",
"description": "",
"main": "closest.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://gitea.codeblob.work/tp-elements/helpers.git"
},
"author": "trading_peter",
"license": "Apache-2.0"
}