inferred-types 0.53.1 → 0.53.2
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/modules/inferred-types/dist/index.cjs +24 -2
- package/modules/inferred-types/dist/index.cjs.map +1 -1
- package/modules/inferred-types/dist/index.d.mts +36191 -0
- package/modules/inferred-types/dist/index.d.ts +36191 -0
- package/modules/inferred-types/dist/index.js +24 -2
- package/modules/inferred-types/dist/index.js.map +1 -1
- package/modules/runtime/dist/index.cjs +24 -2
- package/modules/runtime/dist/index.cjs.map +1 -1
- package/modules/runtime/dist/index.d.mts +14397 -0
- package/modules/runtime/dist/index.d.ts +14397 -0
- package/modules/runtime/dist/index.js +24 -2
- package/modules/runtime/dist/index.js.map +1 -1
- package/modules/types/dist/index.d.mts +17712 -0
- package/modules/types/dist/index.d.ts +17712 -0
- package/package.json +5 -8
|
@@ -1293,6 +1293,17 @@ var TW_LUMINOSITY = {
|
|
|
1293
1293
|
900: 32,
|
|
1294
1294
|
950: 23.78
|
|
1295
1295
|
};
|
|
1296
|
+
TW_LUMINOSITY["50"];
|
|
1297
|
+
TW_LUMINOSITY["100"];
|
|
1298
|
+
TW_LUMINOSITY["200"];
|
|
1299
|
+
TW_LUMINOSITY["300"];
|
|
1300
|
+
TW_LUMINOSITY["400"];
|
|
1301
|
+
TW_LUMINOSITY["500"];
|
|
1302
|
+
TW_LUMINOSITY["600"];
|
|
1303
|
+
TW_LUMINOSITY["700"];
|
|
1304
|
+
TW_LUMINOSITY["800"];
|
|
1305
|
+
TW_LUMINOSITY["900"];
|
|
1306
|
+
TW_LUMINOSITY["950"];
|
|
1296
1307
|
var TW_CHROMA = {
|
|
1297
1308
|
50: 0.0108,
|
|
1298
1309
|
100: 0.0321,
|
|
@@ -1306,6 +1317,17 @@ var TW_CHROMA = {
|
|
|
1306
1317
|
900: 0.0726,
|
|
1307
1318
|
950: 0.054
|
|
1308
1319
|
};
|
|
1320
|
+
TW_CHROMA["50"];
|
|
1321
|
+
TW_CHROMA["100"];
|
|
1322
|
+
TW_CHROMA["200"];
|
|
1323
|
+
TW_CHROMA["300"];
|
|
1324
|
+
TW_CHROMA["400"];
|
|
1325
|
+
TW_CHROMA["500"];
|
|
1326
|
+
TW_CHROMA["600"];
|
|
1327
|
+
TW_CHROMA["700"];
|
|
1328
|
+
TW_CHROMA["800"];
|
|
1329
|
+
TW_CHROMA["900"];
|
|
1330
|
+
TW_CHROMA["950"];
|
|
1309
1331
|
var TW_COLOR_TARGETS = [
|
|
1310
1332
|
"bg",
|
|
1311
1333
|
"text",
|
|
@@ -2199,8 +2221,8 @@ function cssColor(color, v1, v2, v3, opacity) {
|
|
|
2199
2221
|
|
|
2200
2222
|
// src/literals/color/twColor.ts
|
|
2201
2223
|
function twColor(color, luminosity) {
|
|
2202
|
-
const lum = TW_LUMINOSITY[luminosity];
|
|
2203
|
-
const chroma = TW_CHROMA[luminosity];
|
|
2224
|
+
const lum = luminosity in TW_LUMINOSITY ? TW_LUMINOSITY[luminosity] : 0;
|
|
2225
|
+
const chroma = luminosity in TW_CHROMA ? TW_CHROMA[luminosity] : 0;
|
|
2204
2226
|
const hue = TW_HUE[color];
|
|
2205
2227
|
return `oklch(${lum} ${chroma} ${hue})`;
|
|
2206
2228
|
}
|