inferred-types 0.47.3 → 0.47.4

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.
@@ -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/runtime/literals/color/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./twColor.js";
@@ -0,0 +1,8 @@
1
+ import { TwColor, TwLuminosity, TwLuminosityLookup, TwChromaLookup, TwHue } from "../../../types/index";
2
+ /**
3
+ * Provides a Tailwind Color using the `oklch` color
4
+ * specification. The output is intended to put into
5
+ * a CSS property.
6
+ */
7
+ export declare const twColor: <TColor extends TwColor, TLum extends TwLuminosity>(color: TColor, luminosity: TLum) => `oklch(${TwLuminosityLookup[TLum]} ${TwChromaLookup[TLum]} ${TwHue[TColor]})`;
8
+ //# sourceMappingURL=twColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twColor.d.ts","sourceRoot":"","sources":["../../../../src/runtime/literals/color/twColor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,KAAK,EACN,6BAAwB;AAIzB;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAClB,MAAM,SAAS,OAAO,EACtB,IAAI,SAAS,YAAY,SAElB,MAAM,cACD,IAAI,KAK2B,SAAS,kBAAkB,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,GACtH,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { TW_CHROMA, TW_LUMINOSITY, TW_HUE } from "../../../constants/index.js";
2
+ /**
3
+ * Provides a Tailwind Color using the `oklch` color
4
+ * specification. The output is intended to put into
5
+ * a CSS property.
6
+ */
7
+ export const twColor = (color, luminosity) => {
8
+ const lum = TW_LUMINOSITY[luminosity];
9
+ const chroma = TW_CHROMA[luminosity];
10
+ const hue = TW_HUE[color];
11
+ return `oklch(${lum} ${chroma} ${hue})`;
12
+ };
@@ -38,4 +38,5 @@ export * from "./retainChars";
38
38
  export * from "./stripChars";
39
39
  export * from "./retainWhile";
40
40
  export * from "./phone/index";
41
+ export * from "./color/index";
41
42
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/literals/index.ts"],"names":[],"mappings":"AAMA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;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AAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -43,6 +43,7 @@ export * from "./retainChars.js";
43
43
  export * from "./stripChars.js";
44
44
  export * from "./retainWhile.js";
45
45
  export * from "./phone/index.js";
46
+ export * from "./color/index.js";
46
47
  // #endregion auto-indexed files
47
48
  // see https://github.com/inocan-group/do-devops/docs/autoindex.md
48
49
  // for more info