inferred-types 0.52.4 → 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.
- package/dist/constants/Tailwind.d.ts +56 -7
- package/dist/constants/Tailwind.d.ts.map +1 -1
- package/dist/constants/Tailwind.js +67 -7
- package/dist/constants/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs +148 -26
- package/dist/index.js +130 -26
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/datetime/asDate.d.ts +1 -1
- package/dist/runtime/datetime/asDate.d.ts.map +1 -1
- package/dist/runtime/datetime/asDate.js +1 -1
- package/dist/runtime/datetime/getDay.d.ts.map +1 -1
- package/dist/runtime/datetime/getDay.js +3 -0
- package/dist/runtime/datetime/getDaysBetween.d.ts.map +1 -1
- package/dist/runtime/datetime/getDaysBetween.js +3 -0
- package/dist/runtime/datetime/getWeekNumber.d.ts.map +1 -1
- package/dist/runtime/datetime/getWeekNumber.js +3 -0
- package/dist/runtime/datetime/isLeapYear.d.ts.map +1 -1
- package/dist/runtime/datetime/isLeapYear.js +4 -1
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-conversion/index.d.ts +1 -0
- package/dist/runtime/type-conversion/index.d.ts.map +1 -1
- package/dist/runtime/type-conversion/index.js +1 -0
- package/dist/runtime/type-conversion/tw-conversion.d.ts +13 -0
- package/dist/runtime/type-conversion/tw-conversion.d.ts.map +1 -0
- package/dist/runtime/type-conversion/tw-conversion.js +20 -0
- package/dist/runtime/type-guards/date-time/isThisWeek.d.ts.map +1 -1
- package/dist/runtime/type-guards/date-time/isThisWeek.js +2 -5
- package/dist/runtime/type-guards/date-time/isThisYear.d.ts +10 -1
- package/dist/runtime/type-guards/date-time/isThisYear.d.ts.map +1 -1
- package/dist/runtime/type-guards/date-time/isThisYear.js +17 -23
- package/dist/runtime/type-guards/date-time/isTomorrow.d.ts +1 -1
- package/dist/runtime/type-guards/date-time/isTomorrow.js +1 -1
- package/dist/runtime/type-guards/date-time/isYesterday.d.ts +2 -2
- package/dist/runtime/type-guards/date-time/isYesterday.d.ts.map +1 -1
- package/dist/runtime/type-guards/date-time/isYesterday.js +1 -1
- package/dist/runtime/type-guards/index.d.ts +1 -0
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +1 -0
- package/dist/runtime/type-guards/tw/index.d.ts +2 -0
- package/dist/runtime/type-guards/tw/index.d.ts.map +1 -0
- package/dist/runtime/type-guards/tw/index.js +1 -0
- package/dist/runtime/type-guards/tw/tw-color.d.ts +79 -0
- package/dist/runtime/type-guards/tw/tw-color.d.ts.map +1 -0
- package/dist/runtime/type-guards/tw/tw-color.js +105 -0
- package/dist/types/string-literals/character-sets/css/sizing.d.ts +2 -3
- package/dist/types/string-literals/character-sets/css/sizing.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/tw/TwColor.d.ts +27 -7
- package/dist/types/string-literals/character-sets/tw/TwColor.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/tw/TwModifer.d.ts +23 -0
- package/dist/types/string-literals/character-sets/tw/TwModifer.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/tw/TwModifer.js +1 -0
- package/dist/types/string-literals/character-sets/tw/TwSize.d.ts +8 -0
- package/dist/types/string-literals/character-sets/tw/TwSize.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/tw/TwSize.js +1 -0
- package/dist/types/string-literals/character-sets/tw/TwTarget.d.ts +56 -0
- package/dist/types/string-literals/character-sets/tw/TwTarget.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/tw/TwTarget.js +1 -0
- package/dist/types/string-literals/character-sets/tw/index.d.ts +4 -0
- package/dist/types/string-literals/character-sets/tw/index.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/tw/index.js +4 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- 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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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"}
|