inferred-types 0.52.3 → 0.52.5

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 (62) hide show
  1. package/dist/constants/Tailwind.d.ts +56 -7
  2. package/dist/constants/Tailwind.d.ts.map +1 -1
  3. package/dist/constants/Tailwind.js +67 -7
  4. package/dist/constants/tsconfig.tsbuildinfo +1 -1
  5. package/dist/index.cjs +148 -26
  6. package/dist/index.js +130 -26
  7. package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
  8. package/dist/runtime/datetime/asDate.d.ts +1 -1
  9. package/dist/runtime/datetime/asDate.d.ts.map +1 -1
  10. package/dist/runtime/datetime/asDate.js +1 -1
  11. package/dist/runtime/datetime/getDay.d.ts.map +1 -1
  12. package/dist/runtime/datetime/getDay.js +3 -0
  13. package/dist/runtime/datetime/getDaysBetween.d.ts.map +1 -1
  14. package/dist/runtime/datetime/getDaysBetween.js +3 -0
  15. package/dist/runtime/datetime/getWeekNumber.d.ts.map +1 -1
  16. package/dist/runtime/datetime/getWeekNumber.js +3 -0
  17. package/dist/runtime/datetime/isLeapYear.d.ts.map +1 -1
  18. package/dist/runtime/datetime/isLeapYear.js +4 -1
  19. package/dist/runtime/tsconfig.tsbuildinfo +1 -1
  20. package/dist/runtime/type-conversion/index.d.ts +1 -0
  21. package/dist/runtime/type-conversion/index.d.ts.map +1 -1
  22. package/dist/runtime/type-conversion/index.js +1 -0
  23. package/dist/runtime/type-conversion/tw-conversion.d.ts +13 -0
  24. package/dist/runtime/type-conversion/tw-conversion.d.ts.map +1 -0
  25. package/dist/runtime/type-conversion/tw-conversion.js +20 -0
  26. package/dist/runtime/type-guards/date-time/isThisWeek.d.ts.map +1 -1
  27. package/dist/runtime/type-guards/date-time/isThisWeek.js +2 -5
  28. package/dist/runtime/type-guards/date-time/isThisYear.d.ts +10 -1
  29. package/dist/runtime/type-guards/date-time/isThisYear.d.ts.map +1 -1
  30. package/dist/runtime/type-guards/date-time/isThisYear.js +17 -23
  31. package/dist/runtime/type-guards/date-time/isTomorrow.d.ts +1 -1
  32. package/dist/runtime/type-guards/date-time/isTomorrow.js +1 -1
  33. package/dist/runtime/type-guards/date-time/isYesterday.d.ts +2 -2
  34. package/dist/runtime/type-guards/date-time/isYesterday.d.ts.map +1 -1
  35. package/dist/runtime/type-guards/date-time/isYesterday.js +1 -1
  36. package/dist/runtime/type-guards/index.d.ts +1 -0
  37. package/dist/runtime/type-guards/index.d.ts.map +1 -1
  38. package/dist/runtime/type-guards/index.js +1 -0
  39. package/dist/runtime/type-guards/tw/index.d.ts +2 -0
  40. package/dist/runtime/type-guards/tw/index.d.ts.map +1 -0
  41. package/dist/runtime/type-guards/tw/index.js +1 -0
  42. package/dist/runtime/type-guards/tw/tw-color.d.ts +79 -0
  43. package/dist/runtime/type-guards/tw/tw-color.d.ts.map +1 -0
  44. package/dist/runtime/type-guards/tw/tw-color.js +105 -0
  45. package/dist/types/string-literals/character-sets/css/sizing.d.ts +4 -4
  46. package/dist/types/string-literals/character-sets/css/sizing.d.ts.map +1 -1
  47. package/dist/types/string-literals/character-sets/tw/TwColor.d.ts +27 -7
  48. package/dist/types/string-literals/character-sets/tw/TwColor.d.ts.map +1 -1
  49. package/dist/types/string-literals/character-sets/tw/TwModifer.d.ts +23 -0
  50. package/dist/types/string-literals/character-sets/tw/TwModifer.d.ts.map +1 -0
  51. package/dist/types/string-literals/character-sets/tw/TwModifer.js +1 -0
  52. package/dist/types/string-literals/character-sets/tw/TwSize.d.ts +8 -0
  53. package/dist/types/string-literals/character-sets/tw/TwSize.d.ts.map +1 -0
  54. package/dist/types/string-literals/character-sets/tw/TwSize.js +1 -0
  55. package/dist/types/string-literals/character-sets/tw/TwTarget.d.ts +56 -0
  56. package/dist/types/string-literals/character-sets/tw/TwTarget.d.ts.map +1 -0
  57. package/dist/types/string-literals/character-sets/tw/TwTarget.js +1 -0
  58. package/dist/types/string-literals/character-sets/tw/index.d.ts +4 -0
  59. package/dist/types/string-literals/character-sets/tw/index.d.ts.map +1 -1
  60. package/dist/types/string-literals/character-sets/tw/index.js +4 -0
  61. package/dist/types/tsconfig.tsbuildinfo +1 -1
  62. package/package.json +1 -1
@@ -0,0 +1,56 @@
1
+ import { Opt } from "../Optional";
2
+ import { TwColor, TwColorTarget, TwColorWithLuminosity, TwColorWithLuminosityOpacity } from "./TwColor";
3
+ /**
4
+ * All of the `TwColorTarget`'s combined with a color (e.g, `bg-slate`, `border-blue`)
5
+ */
6
+ export type TwTarget__ColorName = `${TwColor}`;
7
+ /**
8
+ * All of the combinations of a:
9
+ * - a `TwColorTarget` (e.g., "bg", "text", etc.)
10
+ * - a Tailwind color name (e.g., "slate", "blue", etc.)
11
+ * - a `TwLuminosity` value
12
+ *
13
+ * **Note:** both `white` and `black` are also allowed but don't allow variants
14
+ * as the luminosity level is fixed.
15
+ */
16
+ export type TwTarget__ColorLuminosity = `${TwColorTarget}-${TwColorWithLuminosity}`;
17
+ /**
18
+ * All of the combinations of a:
19
+ * - a `TwColorTarget` (e.g., "bg", "text", etc.)
20
+ * - a Tailwind color name (e.g., "slate", "blue", etc.)
21
+ * - a `TwLuminosity` value
22
+ * - a numeric value for opacity
23
+ *
24
+ * Values will take the form `target-color-luminosity/opacity`.
25
+ *
26
+ * **Note:** both `white` and `black` are also allowed but don't allow variants
27
+ * as the luminosity level is fixed.
28
+ */
29
+ export type TwTarget__ColorLuminosityWithOpacity = `${TwColorTarget}-${TwColorWithLuminosityOpacity}`;
30
+ /**
31
+ * All of the combinations of a:
32
+ * - a `TwColorTarget` (e.g., "bg", "text", etc.)
33
+ * - a Tailwind color name (e.g., "slate", "blue", etc.)
34
+ * - a `TwLuminosity` value
35
+ * - _optionally_, you may include the opacity level using the `/{opacity}` syntax
36
+ *
37
+ * **Related:** `TwTarget__ColorLuminosityWithOpacity`, `TwTarget__ColorLuminosity`, `TwTarget__ColorName`
38
+ */
39
+ export type TwTarget__Color = `${TwColorTarget}-${TwColorWithLuminosity}${Opt<`/${number}`>}`;
40
+ /**
41
+ * A simpler representation of what `TwTarget__Color` provides.
42
+ *
43
+ * In both cases the aim is to represent combinations of:
44
+ *
45
+ * - a `TwColorTarget` (e.g., "bg", "text", etc.)
46
+ * - a Tailwind color name (e.g., "slate", "blue", etc.)
47
+ * - a `TwLuminosity` value
48
+ * - _optionally_, you may include the opacity level using the `/{opacity}` syntax
49
+ */
50
+ export type TwTarget__Color__Light = `${TwColorTarget}-${TwTarget__ColorName}-${number}${Opt<`/${number}`>}`;
51
+ /**
52
+ * A `TwTarget__Color_Light` representation which also allows for modifiers to be prefixed
53
+ * in front of the color string to help narrow the scope of when this color should be applied.
54
+ */
55
+ export type TwTarget__ColorWithOptPrefixes = `${`${string}:` | ""}${TwTarget__Color__Light}`;
56
+ //# sourceMappingURL=TwTarget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TwTarget.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/tw/TwTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EACL,OAAO,EACP,aAAa,EACb,qBAAqB,EACrB,4BAA4B,EAC7B,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,GAAG,OAAO,EAAE,CAAC;AAE/C;;;;;;;;GAQG;AACH,MAAM,MAAM,yBAAyB,GAAG,GAAG,aAAa,IAAI,qBAAqB,EAAE,CAAC;AAGpF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,oCAAoC,GAAG,GAAG,aAAa,IAAI,4BAA4B,EAAE,CAAC;AAGtG;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,GAAG,aAAa,IAAI,qBAAqB,GAAG,GAAG,CAAC,IAAI,MAAM,EAAE,CAAC,EAAE,CAAC;AAE9F;;;;;;;;;GASG;AACH,MAAM,MAAM,sBAAsB,GAAG,GAAG,aAAa,IAAI,mBAAmB,IAAI,MAAM,GAAG,GAAG,CAAC,IAAI,MAAM,EAAE,CAAC,EAAE,CAAC;AAE7G;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG,GAAG,GAAG,MAAM,GAAG,GAAG,EAAE,GAAG,sBAAsB,EAAE,CAAA"}
@@ -1,2 +1,6 @@
1
1
  export * from "./TwColor";
2
+ export * from "./TwSize";
3
+ export * from "./TwModifer";
4
+ export * from "./TwTarget";
5
+ export * from "./TwColor";
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/string-literals/character-sets/tw/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
@@ -1 +1,5 @@
1
1
  export * from "./TwColor";
2
+ export * from "./TwSize";
3
+ export * from "./TwModifer";
4
+ export * from "./TwTarget";
5
+ export * from "./TwColor";