inferred-types 0.53.1 → 0.53.3

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.
@@ -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
  }
@@ -2839,8 +2861,8 @@ function isFalsy(val) {
2839
2861
  }
2840
2862
 
2841
2863
  // src/type-guards/isFnWithParams.ts
2842
- function isFnWithParams(input) {
2843
- return typeof input === "function" && Object.keys(input)?.length > 0;
2864
+ function isFnWithParams(input, ...params) {
2865
+ return params.length === 0 ? typeof input === "function" && input?.length > 0 : typeof input === "function" && input?.length === params.length;
2844
2866
  }
2845
2867
 
2846
2868
  // src/type-guards/isHexadecimal.ts