inferred-types 0.47.0 → 0.47.1

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.
Files changed (34) hide show
  1. package/dist/constants/Tailwind.d.ts +31 -0
  2. package/dist/constants/Tailwind.d.ts.map +1 -0
  3. package/dist/constants/Tailwind.js +30 -0
  4. package/dist/constants/index.d.ts +1 -0
  5. package/dist/constants/index.d.ts.map +1 -1
  6. package/dist/constants/index.js +1 -0
  7. package/dist/constants/tsconfig.tsbuildinfo +1 -1
  8. package/dist/inferred-types/index.cjs +28 -0
  9. package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
  10. package/dist/runtime/tsconfig.tsbuildinfo +1 -1
  11. package/dist/types/string-literals/character-sets/css/color.d.ts +24 -0
  12. package/dist/types/string-literals/character-sets/css/color.d.ts.map +1 -0
  13. package/dist/types/string-literals/character-sets/{CSS.d.ts → css/display-position.d.ts} +2 -2
  14. package/dist/types/string-literals/character-sets/css/display-position.d.ts.map +1 -0
  15. package/dist/types/string-literals/character-sets/css/display-position.js +1 -0
  16. package/dist/types/string-literals/character-sets/css/index.d.ts +4 -0
  17. package/dist/types/string-literals/character-sets/css/index.d.ts.map +1 -0
  18. package/dist/types/string-literals/character-sets/css/index.js +3 -0
  19. package/dist/types/string-literals/character-sets/css/sizing.d.ts +10 -0
  20. package/dist/types/string-literals/character-sets/css/sizing.d.ts.map +1 -0
  21. package/dist/types/string-literals/character-sets/css/sizing.js +1 -0
  22. package/dist/types/string-literals/character-sets/index.d.ts +2 -1
  23. package/dist/types/string-literals/character-sets/index.d.ts.map +1 -1
  24. package/dist/types/string-literals/character-sets/index.js +2 -1
  25. package/dist/types/string-literals/character-sets/tw/TwColor.d.ts +41 -0
  26. package/dist/types/string-literals/character-sets/tw/TwColor.d.ts.map +1 -0
  27. package/dist/types/string-literals/character-sets/tw/TwColor.js +1 -0
  28. package/dist/types/string-literals/character-sets/tw/index.d.ts +2 -0
  29. package/dist/types/string-literals/character-sets/tw/index.d.ts.map +1 -0
  30. package/dist/types/string-literals/character-sets/tw/index.js +1 -0
  31. package/dist/types/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +6 -5
  33. package/dist/types/string-literals/character-sets/CSS.d.ts.map +0 -1
  34. /package/dist/types/string-literals/character-sets/{CSS.js → css/color.js} +0 -0
@@ -0,0 +1,24 @@
1
+ import { HexadecimalChar } from "../Hexadecimal";
2
+ import { OptionalSpace } from "../OptionalSpace";
3
+ export type CssColorModel = "rgb" | "hsl" | "hsb" | "lab" | "oklch";
4
+ export type CssColorSpace = "cie1931" | "p3" | "sRGB" | "AdobeRGB" | "ProPhoto RGB" | "rec2020";
5
+ export type CssRgb = `rgb(${number} ${number} ${number})` | `rgb(${number},${OptionalSpace}${number},${OptionalSpace}${number})`;
6
+ export type CssRgba = `rgba(${number} ${number} ${number})` | `rgba(${number},${OptionalSpace}${number},${OptionalSpace}${number})`;
7
+ /**
8
+ * Hue, Saturation, and Lightness level (**HSL** color model)
9
+ */
10
+ export type CssHsl = `hsl(${number} ${number} ${number})` | `hsl(${number},${OptionalSpace}${number},${OptionalSpace}${number})`;
11
+ /**
12
+ * Hue, Saturation, and Brightness (**HSB** color model)
13
+ */
14
+ export type CssHsb = `hsb(${number} ${number} ${number})` | `hsb(${number},${OptionalSpace}${number},${OptionalSpace}${number})`;
15
+ /**
16
+ * [**CssOkLch**](https://oklch.com/#70,0.1,122,100)`(lightness, chroma, hue)`
17
+ *
18
+ * - Lightness is critical to **contrast** between _background_ and _foreground_ elements
19
+ * - Saturation levels are seen in _chroma_ values.
20
+ * - Hue distinguishes the actual color you're viewing
21
+ */
22
+ export type CssOkLch = `oklch(${number}% ${number} ${number})`;
23
+ export type CssHexColor = `#${HexadecimalChar}${HexadecimalChar}${string}`;
24
+ //# sourceMappingURL=color.d.ts.map
@@ -0,0 +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,KAAK,MAAM,IAAI,MAAM,GAAG,CAAA;AAEzC,MAAM,MAAM,WAAW,GAAG,IAAI,eAAe,GAAG,eAAe,GAAG,MAAM,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { OptionalSpace } from "./OptionalSpace";
1
+ import { OptionalSpace } from "../../../index";
2
2
  type Ratio = `${number}${OptionalSpace}/${OptionalSpace}${number}`;
3
3
  type One = `1`;
4
4
  type Special = "inherit" | "initial" | "revert" | "revert-layer" | "unset";
@@ -23,4 +23,4 @@ export type CssPosition = "static" | "relative" | "absolute" | "fixed" | "sticky
23
23
  */
24
24
  export type CssDisplay = "block" | "flex" | "inline" | "inline-block" | "inline-flex" | "inline-grid" | "grid" | "flow-root" | "none" | "contents" | "block flex" | "block flow" | "block flow-root" | "block grid" | "inline flex" | "inline flow" | "inline flow-root" | "inline-grid" | "table" | "table-row" | "list-item" | "inherit" | "initial" | "revert" | "revert-layer" | "unset";
25
25
  export {};
26
- //# sourceMappingURL=CSS.d.ts.map
26
+ //# sourceMappingURL=display-position.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-position.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/css/display-position.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,uBAAwB;AAEhD,KAAK,KAAK,GAAG,GAAG,MAAM,GAAG,aAAa,IAAI,aAAa,GAAG,MAAM,EAAE,CAAC;AACnE,KAAK,GAAG,GAAG,GAAG,CAAC;AACf,KAAK,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,OAAO,CAAC;AAC3E,KAAK,IAAI,GAAG,MAAM,GAAG,QAAQ,KAAK,EAAE,GAAG,GAAG,KAAK,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,GAAG,GAAG,OAAO,GAAG,IAAI,CAAC;AAG1D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,OAAO,CAAC;AAG/I;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GACpB,OAAO,GACP,MAAM,GACN,QAAQ,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,GACzD,MAAM,GACN,WAAW,GACX,MAAM,GACN,UAAU,GACV,YAAY,GAAG,YAAY,GAAG,iBAAiB,GAAG,YAAY,GAC9D,aAAa,GAAG,aAAa,GAAG,kBAAkB,GAAG,aAAa,GAClE,OAAO,GAAG,WAAW,GACrB,WAAW,GACX,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./color";
2
+ export * from "./display-position";
3
+ export * from "./sizing";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/css/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from "./color.js";
2
+ export * from "./display-position.js";
3
+ export * from "./sizing.js";
@@ -0,0 +1,10 @@
1
+ export type SizingUnits = `px` | `em` | `rem` | `ch` | `vh` | `vw` | `fr`;
2
+ type VariableSizing = `var(${string})${SizingUnits}` | `var(${string})` | `calc(${string})${SizingUnits}` | `calc(${string})` | `min(${string})${SizingUnits}` | `min(${string})` | `max(${string})${SizingUnits}` | `max(${string})` | `minmax(${string})${SizingUnits}` | `minmax(${string})`;
3
+ /**
4
+ * provides a string literal which is intended to describe the
5
+ * "size" of any CSS property (whether using static values or
6
+ * CSS variables)
7
+ */
8
+ export type CssSizing = `${number}${SizingUnits}` | VariableSizing;
9
+ export {};
10
+ //# sourceMappingURL=sizing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/css/sizing.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GACrB,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAEP,KAAK,cAAc,GACjB,OAAO,MAAM,IAAI,WAAW,EAAE,GAC9B,OAAO,MAAM,GAAG,GAChB,QAAQ,MAAM,IAAI,WAAW,EAAE,GAC/B,QAAQ,MAAM,GAAG,GACjB,OAAO,MAAM,IAAI,WAAW,EAAE,GAC9B,OAAO,MAAM,GAAG,GAChB,OAAO,MAAM,IAAI,WAAW,EAAE,GAC9B,OAAO,MAAM,GAAG,GAChB,UAAU,MAAM,IAAI,WAAW,EAAE,GACjC,UAAU,MAAM,GAAG,CAAC;AAGtB;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,GAAG,MAAM,GAAG,WAAW,EAAE,GAAG,cAAc,CAAC"}
@@ -21,7 +21,6 @@ export * from "./SingularNoun";
21
21
  export * from "./ValueAtDotPath";
22
22
  export * from "./Consonants";
23
23
  export * from "./PlusMinus";
24
- export * from "./CSS";
25
24
  export * from "./InlineSvg";
26
25
  export * from "./Repos";
27
26
  export * from "./Variable";
@@ -30,4 +29,6 @@ export * from "./YouTube";
30
29
  export * from "./brackets/index";
31
30
  export * from "./quotation-marks/index";
32
31
  export * from "./phone/index";
32
+ export * from "./css/index";
33
+ export * from "./tw/index";
33
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/string-literals/character-sets/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAA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Ac,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -21,7 +21,6 @@ export * from "./SingularNoun.js";
21
21
  export * from "./ValueAtDotPath.js";
22
22
  export * from "./Consonants.js";
23
23
  export * from "./PlusMinus.js";
24
- export * from "./CSS.js";
25
24
  export * from "./InlineSvg.js";
26
25
  export * from "./Repos.js";
27
26
  export * from "./Variable.js";
@@ -30,3 +29,5 @@ export * from "./YouTube.js";
30
29
  export * from "./brackets/index.js";
31
30
  export * from "./quotation-marks/index.js";
32
31
  export * from "./phone/index.js";
32
+ export * from "./css/index.js";
33
+ export * from "./tw/index.js";
@@ -0,0 +1,41 @@
1
+ /**
2
+ * The [TailwindCSS](https://tailwindcss.com/docs/customizing-colors)
3
+ * named colors which represent variations of grayscale/neutral colors.
4
+ */
5
+ export type TwNeutralColor = "slate" | "gray" | "zinc" | "neutral" | "stone";
6
+ /**
7
+ * all of the [TailwindCSS](https://tailwindcss.com/docs/customizing-colors)
8
+ * named colors.
9
+ */
10
+ export type TwColor = TwNeutralColor | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
11
+ /**
12
+ * all of the [TailwindCSS](https://tailwindcss.com/docs/customizing-colors)
13
+ * luminosity levels.
14
+ */
15
+ export type TwLuminosity = "50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950";
16
+ /**
17
+ * **TwColorWithLuminosity**
18
+ *
19
+ * Combines the [TailwindCSS](https://tailwindcss.com/docs/customizing-colors)
20
+ * color _name_ with the allowed _luminosity_ levels.
21
+ *
22
+ * **Related:** `TwColorOption`, `TwColorWithLuminosityOpacity`, `TwColor`, `TwNeutralColor`
23
+ */
24
+ export type TwColorWithLuminosity = `${TwColor}-${TwLuminosity}`;
25
+ /**
26
+ * **TwColorWithLuminosityOpacity**
27
+ *
28
+ * Combines the [TailwindCSS](https://tailwindcss.com/docs/customizing-colors)
29
+ * color _name_ with the allowed _luminosity_ levels, and the opacity.
30
+ *
31
+ * **Related:** `TwColorOption`, `TwColorWithLuminosity`, `TwColor`, `TwNeutralColor`
32
+ */
33
+ export type TwColorWithLuminosityOpacity = `${TwColorWithLuminosity} / ${number}`;
34
+ /**
35
+ * **TwColorOption**
36
+ *
37
+ * A [TailwindCSS](https://tailwindcss.com/docs/customizing-colors) color
38
+ * option which optionally can include
39
+ */
40
+ export type TwColorOption = TwColorWithLuminosity | TwColorWithLuminosityOpacity;
41
+ //# sourceMappingURL=TwColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TwColor.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/tw/TwColor.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,cAAc,GACxB,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,OAAO,GACjB,cAAc,GACd,KAAK,GACL,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,MAAM,CAAC;AAGT;;;GAGG;AACH,MAAM,MAAM,YAAY,GACtB,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAER;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG,GAAG,OAAO,IAAI,YAAY,EAAE,CAAA;AAEhE;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG,GAAG,qBAAqB,MAAM,MAAM,EAAE,CAAA;AAGjF;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,qBAAqB,GAAG,4BAA4B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./TwColor";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/tw/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./TwColor.js";