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
|
@@ -3776,6 +3776,17 @@ var TW_LUMINOSITY2 = {
|
|
|
3776
3776
|
900: 32,
|
|
3777
3777
|
950: 23.78
|
|
3778
3778
|
};
|
|
3779
|
+
TW_LUMINOSITY2["50"];
|
|
3780
|
+
TW_LUMINOSITY2["100"];
|
|
3781
|
+
TW_LUMINOSITY2["200"];
|
|
3782
|
+
TW_LUMINOSITY2["300"];
|
|
3783
|
+
TW_LUMINOSITY2["400"];
|
|
3784
|
+
TW_LUMINOSITY2["500"];
|
|
3785
|
+
TW_LUMINOSITY2["600"];
|
|
3786
|
+
TW_LUMINOSITY2["700"];
|
|
3787
|
+
TW_LUMINOSITY2["800"];
|
|
3788
|
+
TW_LUMINOSITY2["900"];
|
|
3789
|
+
TW_LUMINOSITY2["950"];
|
|
3779
3790
|
var TW_CHROMA2 = {
|
|
3780
3791
|
50: 0.0108,
|
|
3781
3792
|
100: 0.0321,
|
|
@@ -3789,6 +3800,17 @@ var TW_CHROMA2 = {
|
|
|
3789
3800
|
900: 0.0726,
|
|
3790
3801
|
950: 0.054
|
|
3791
3802
|
};
|
|
3803
|
+
TW_CHROMA2["50"];
|
|
3804
|
+
TW_CHROMA2["100"];
|
|
3805
|
+
TW_CHROMA2["200"];
|
|
3806
|
+
TW_CHROMA2["300"];
|
|
3807
|
+
TW_CHROMA2["400"];
|
|
3808
|
+
TW_CHROMA2["500"];
|
|
3809
|
+
TW_CHROMA2["600"];
|
|
3810
|
+
TW_CHROMA2["700"];
|
|
3811
|
+
TW_CHROMA2["800"];
|
|
3812
|
+
TW_CHROMA2["900"];
|
|
3813
|
+
TW_CHROMA2["950"];
|
|
3792
3814
|
var TW_COLOR_TARGETS2 = [
|
|
3793
3815
|
"bg",
|
|
3794
3816
|
"text",
|
|
@@ -4540,8 +4562,8 @@ function cssColor(color, v1, v2, v3, opacity) {
|
|
|
4540
4562
|
return `color(${color} ${v1} ${v2} ${v3}${opacity ? ` / ${opacity}` : ""}`;
|
|
4541
4563
|
}
|
|
4542
4564
|
function twColor(color, luminosity) {
|
|
4543
|
-
const lum = TW_LUMINOSITY2[luminosity];
|
|
4544
|
-
const chroma = TW_CHROMA2[luminosity];
|
|
4565
|
+
const lum = luminosity in TW_LUMINOSITY2 ? TW_LUMINOSITY2[luminosity] : 0;
|
|
4566
|
+
const chroma = luminosity in TW_CHROMA2 ? TW_CHROMA2[luminosity] : 0;
|
|
4545
4567
|
const hue = TW_HUE2[color];
|
|
4546
4568
|
return `oklch(${lum} ${chroma} ${hue})`;
|
|
4547
4569
|
}
|