inferred-types 0.47.1 → 0.47.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.
- package/dist/constants/Tailwind.d.ts +57 -1
- package/dist/constants/Tailwind.d.ts.map +1 -1
- package/dist/constants/Tailwind.js +57 -1
- package/dist/constants/tsconfig.tsbuildinfo +1 -1
- package/dist/inferred-types/index.cjs +99 -3
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/types/string-literals/character-sets/css/color.d.ts +7 -2
- package/dist/types/string-literals/character-sets/css/color.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/tw/TwColor.d.ts +34 -1
- package/dist/types/string-literals/character-sets/tw/TwColor.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -12,13 +12,18 @@ export type CssHsl = `hsl(${number} ${number} ${number})` | `hsl(${number},${Opt
|
|
|
12
12
|
* Hue, Saturation, and Brightness (**HSB** color model)
|
|
13
13
|
*/
|
|
14
14
|
export type CssHsb = `hsb(${number} ${number} ${number})` | `hsb(${number},${OptionalSpace}${number},${OptionalSpace}${number})`;
|
|
15
|
+
type OptionalPercent = "%" | "";
|
|
15
16
|
/**
|
|
16
|
-
* [**CssOkLch**](https://oklch.com
|
|
17
|
+
* [**CssOkLch**](https://oklch.com/)`(lightness, chroma, hue)`
|
|
17
18
|
*
|
|
18
19
|
* - Lightness is critical to **contrast** between _background_ and _foreground_ elements
|
|
19
20
|
* - Saturation levels are seen in _chroma_ values.
|
|
20
21
|
* - Hue distinguishes the actual color you're viewing
|
|
21
22
|
*/
|
|
22
|
-
export type CssOkLch = `oklch(${number}
|
|
23
|
+
export type CssOkLch = `oklch(${number}${OptionalPercent} ${number}${OptionalPercent} ${number})`;
|
|
24
|
+
/**
|
|
25
|
+
* a hexadecimal color representation for CSS
|
|
26
|
+
*/
|
|
23
27
|
export type CssHexColor = `#${HexadecimalChar}${HexadecimalChar}${string}`;
|
|
28
|
+
export {};
|
|
24
29
|
//# sourceMappingURL=color.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/css/color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,MAAM,MAAM,aAAa,GACvB,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,OAAO,CAAC;AAEV,MAAM,MAAM,aAAa,GACvB,SAAS,GACT,IAAI,GACJ,MAAM,GACN,UAAU,GACV,cAAc,GACd,SAAS,CAAC;AAGZ,MAAM,MAAM,MAAM,GAChB,OAAO,MAAM,IAAI,MAAM,IAAI,MAAM,GAAG,GACpC,OAAO,MAAM,IAAI,aAAa,GAAG,MAAM,IAAI,aAAa,GAAG,MAAM,GAAG,CAAC;AAGvE,MAAM,MAAM,OAAO,GACjB,QAAQ,MAAM,IAAI,MAAM,IAAI,MAAM,GAAG,GACrC,QAAQ,MAAM,IAAI,aAAa,GAAG,MAAM,IAAI,aAAa,GAAG,MAAM,GAAG,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,MAAM,GAChB,OAAO,MAAM,IAAI,MAAM,IAAI,MAAM,GAAG,GACpC,OAAO,MAAM,IAAI,aAAa,GAAG,MAAM,IAAI,aAAa,GAAG,MAAM,GAAG,CAAC;AAGvE;;GAEG;AACH,MAAM,MAAM,MAAM,GAChB,OAAO,MAAM,IAAI,MAAM,IAAI,MAAM,GAAG,GACpC,OAAO,MAAM,IAAI,aAAa,GAAG,MAAM,IAAI,aAAa,GAAG,MAAM,GAAG,CAAC;AAGvE;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAClB,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","s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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TW_CHROMA, TW_LUMINOSITY } from "../../../../constants/index";
|
|
2
|
+
import { Mutable } from "../../../index";
|
|
1
3
|
/**
|
|
2
4
|
* The [TailwindCSS](https://tailwindcss.com/docs/customizing-colors)
|
|
3
5
|
* named colors which represent variations of grayscale/neutral colors.
|
|
@@ -30,7 +32,7 @@ export type TwColorWithLuminosity = `${TwColor}-${TwLuminosity}`;
|
|
|
30
32
|
*
|
|
31
33
|
* **Related:** `TwColorOption`, `TwColorWithLuminosity`, `TwColor`, `TwNeutralColor`
|
|
32
34
|
*/
|
|
33
|
-
export type TwColorWithLuminosityOpacity = `${TwColorWithLuminosity}
|
|
35
|
+
export type TwColorWithLuminosityOpacity = `${TwColorWithLuminosity}/${number}`;
|
|
34
36
|
/**
|
|
35
37
|
* **TwColorOption**
|
|
36
38
|
*
|
|
@@ -38,4 +40,35 @@ export type TwColorWithLuminosityOpacity = `${TwColorWithLuminosity} / ${number}
|
|
|
38
40
|
* option which optionally can include
|
|
39
41
|
*/
|
|
40
42
|
export type TwColorOption = TwColorWithLuminosity | TwColorWithLuminosityOpacity;
|
|
43
|
+
export type TwLuminosityLookup = Mutable<typeof TW_LUMINOSITY>;
|
|
44
|
+
export type TwLumi50 = typeof TW_LUMINOSITY["50"];
|
|
45
|
+
export type TwLumi100 = typeof TW_LUMINOSITY["100"];
|
|
46
|
+
export type TwLumi200 = typeof TW_LUMINOSITY["200"];
|
|
47
|
+
export type TwLumi300 = typeof TW_LUMINOSITY["300"];
|
|
48
|
+
export type TwLumi400 = typeof TW_LUMINOSITY["400"];
|
|
49
|
+
export type TwLumi500 = typeof TW_LUMINOSITY["500"];
|
|
50
|
+
export type TwLumi600 = typeof TW_LUMINOSITY["600"];
|
|
51
|
+
export type TwLumi700 = typeof TW_LUMINOSITY["700"];
|
|
52
|
+
export type TwLumi800 = typeof TW_LUMINOSITY["800"];
|
|
53
|
+
export type TwLumi900 = typeof TW_LUMINOSITY["900"];
|
|
54
|
+
export type TwLumi950 = typeof TW_LUMINOSITY["950"];
|
|
55
|
+
export type TwChromaLookup = Mutable<typeof TW_CHROMA>;
|
|
56
|
+
/**
|
|
57
|
+
* the possible values of Tailwind Luminosity values when using
|
|
58
|
+
* **okhsl** color values.
|
|
59
|
+
*
|
|
60
|
+
* **Related:** `TwChromaLookup`, `TwChroma50`, ...
|
|
61
|
+
*/
|
|
62
|
+
export type TwChroma = typeof TW_CHROMA[TwLuminosity];
|
|
63
|
+
export type TwChroma50 = typeof TW_CHROMA["50"];
|
|
64
|
+
export type TwChroma100 = typeof TW_CHROMA["100"];
|
|
65
|
+
export type TwChroma200 = typeof TW_CHROMA["200"];
|
|
66
|
+
export type TwChroma300 = typeof TW_CHROMA["300"];
|
|
67
|
+
export type TwChroma400 = typeof TW_CHROMA["400"];
|
|
68
|
+
export type TwChroma500 = typeof TW_CHROMA["500"];
|
|
69
|
+
export type TwChroma600 = typeof TW_CHROMA["600"];
|
|
70
|
+
export type TwChroma700 = typeof TW_CHROMA["700"];
|
|
71
|
+
export type TwChroma800 = typeof TW_CHROMA["800"];
|
|
72
|
+
export type TwChroma900 = typeof TW_CHROMA["900"];
|
|
73
|
+
export type TwChroma950 = typeof TW_CHROMA["950"];
|
|
41
74
|
//# sourceMappingURL=TwColor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwColor.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/tw/TwColor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TwColor.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/tw/TwColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,oCAA4B;AAC/D,OAAO,EAAE,OAAO,EAAE,uBAAwB;AAG1C;;;GAGG;AACH,MAAM,MAAM,cAAc,GACxB,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,CA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