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
|
@@ -1291,6 +1291,17 @@ var TW_LUMINOSITY = {
|
|
|
1291
1291
|
900: 32,
|
|
1292
1292
|
950: 23.78
|
|
1293
1293
|
};
|
|
1294
|
+
TW_LUMINOSITY["50"];
|
|
1295
|
+
TW_LUMINOSITY["100"];
|
|
1296
|
+
TW_LUMINOSITY["200"];
|
|
1297
|
+
TW_LUMINOSITY["300"];
|
|
1298
|
+
TW_LUMINOSITY["400"];
|
|
1299
|
+
TW_LUMINOSITY["500"];
|
|
1300
|
+
TW_LUMINOSITY["600"];
|
|
1301
|
+
TW_LUMINOSITY["700"];
|
|
1302
|
+
TW_LUMINOSITY["800"];
|
|
1303
|
+
TW_LUMINOSITY["900"];
|
|
1304
|
+
TW_LUMINOSITY["950"];
|
|
1294
1305
|
var TW_CHROMA = {
|
|
1295
1306
|
50: 0.0108,
|
|
1296
1307
|
100: 0.0321,
|
|
@@ -1304,6 +1315,17 @@ var TW_CHROMA = {
|
|
|
1304
1315
|
900: 0.0726,
|
|
1305
1316
|
950: 0.054
|
|
1306
1317
|
};
|
|
1318
|
+
TW_CHROMA["50"];
|
|
1319
|
+
TW_CHROMA["100"];
|
|
1320
|
+
TW_CHROMA["200"];
|
|
1321
|
+
TW_CHROMA["300"];
|
|
1322
|
+
TW_CHROMA["400"];
|
|
1323
|
+
TW_CHROMA["500"];
|
|
1324
|
+
TW_CHROMA["600"];
|
|
1325
|
+
TW_CHROMA["700"];
|
|
1326
|
+
TW_CHROMA["800"];
|
|
1327
|
+
TW_CHROMA["900"];
|
|
1328
|
+
TW_CHROMA["950"];
|
|
1307
1329
|
var TW_COLOR_TARGETS = [
|
|
1308
1330
|
"bg",
|
|
1309
1331
|
"text",
|
|
@@ -2197,8 +2219,8 @@ function cssColor(color, v1, v2, v3, opacity) {
|
|
|
2197
2219
|
|
|
2198
2220
|
// src/literals/color/twColor.ts
|
|
2199
2221
|
function twColor(color, luminosity) {
|
|
2200
|
-
const lum = TW_LUMINOSITY[luminosity];
|
|
2201
|
-
const chroma = TW_CHROMA[luminosity];
|
|
2222
|
+
const lum = luminosity in TW_LUMINOSITY ? TW_LUMINOSITY[luminosity] : 0;
|
|
2223
|
+
const chroma = luminosity in TW_CHROMA ? TW_CHROMA[luminosity] : 0;
|
|
2202
2224
|
const hue = TW_HUE[color];
|
|
2203
2225
|
return `oklch(${lum} ${chroma} ${hue})`;
|
|
2204
2226
|
}
|