@cssints/color-names 0.6.0 → 0.7.0

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/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as colorNames, r as named, t as Name } from "./index-Bzx4UT1V.mjs";
1
+ import { n as colorNames, r as named, t as Name } from "./index-CwnzJMwY.mjs";
2
2
  export { Name, colorNames, named };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { a as orange, c as cyan, i as pink, l as brown, n as red, o as neutral, r as purple, s as green, t as yellow, u as blue } from "./yellow-D8FVKiS3.mjs";
1
+ import { a as orange, c as cyan, i as pink, l as brown, n as red, o as neutral, r as purple, s as green, t as yellow, u as blue } from "./yellow-BUUhkVMb.mjs";
2
2
  import { CSSColorValue } from "cssints";
3
3
  import { arg, fn, scope } from "cssints/plugin";
4
- //#region src/index.ts
4
+ // src/index.ts
5
5
  const data = {
6
6
  red,
7
7
  orange,
@@ -130,5 +130,4 @@ const colorNames = {
130
130
  brown: members.brown,
131
131
  neutral: members.neutral
132
132
  };
133
- //#endregion
134
133
  export { colorNames, named };
@@ -1,5 +1,4 @@
1
- import { t as Name } from "./index-Bzx4UT1V.mjs";
2
- //#region src/nearest.d.ts
1
+ import { t as Name } from "./index-CwnzJMwY.mjs";
3
2
  /** The nearest name to a colour. */
4
3
  export interface Nearest {
5
4
  /** The key of the nearest name (a name of `named()`). */
@@ -17,5 +16,4 @@ export interface Nearest {
17
16
  * @param {string} color the colour to match
18
17
  * @returns {Nearest | undefined} the nearest name, its hex and the distance, or `undefined` for a colour culori cannot read
19
18
  */
20
- export declare const nearest: (color: string) => Nearest | undefined;
21
- //#endregion
19
+ export declare const nearest: (color: string) => Nearest | undefined;
package/dist/nearest.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { a as orange, c as cyan, i as pink, l as brown, n as red, o as neutral, r as purple, s as green, t as yellow, u as blue } from "./yellow-D8FVKiS3.mjs";
1
+ import { a as orange, c as cyan, i as pink, l as brown, n as red, o as neutral, r as purple, s as green, t as yellow, u as blue } from "./yellow-BUUhkVMb.mjs";
2
2
  import { converter, differenceCiede2000 } from "culori";
3
- //#region src/nearest.ts
3
+ // src/nearest.ts
4
4
  const list = /* @__PURE__ */ new Map();
5
5
  for (const names of [
6
6
  red,
@@ -38,5 +38,4 @@ const nearest = (color) => {
38
38
  } : best;
39
39
  }, void 0);
40
40
  };
41
- //#endregion
42
41
  export { nearest };
@@ -1,4 +1,4 @@
1
- //#region src/blue.ts
1
+ // src/blue.ts
2
2
  const blue = {
3
3
  "21st-century-blue": "#7fb9dd",
4
4
  "3am-in-shibuya": "#225577",
@@ -3571,8 +3571,7 @@ const blue = {
3571
3571
  "zürich-blue": "#248bcc",
3572
3572
  "âbi-blue": "#5ba8ff"
3573
3573
  };
3574
- //#endregion
3575
- //#region src/brown.ts
3574
+ // src/brown.ts
3576
3575
  const brown = {
3577
3576
  "24-carrot": "#e56e24",
3578
3577
  "90-cocoa": "#3d1c02",
@@ -6769,8 +6768,7 @@ const brown = {
6769
6768
  "éclair-au-chocolat": "#7e4930",
6770
6769
  "über-umber": "#7b5838"
6771
6770
  };
6772
- //#endregion
6773
- //#region src/cyan.ts
6771
+ // src/cyan.ts
6774
6772
  const cyan = {
6775
6773
  "5-masted-preußen": "#9bafad",
6776
6774
  "aaquatic-wonderland": "#8bcecb",
@@ -8578,8 +8576,7 @@ const cyan = {
8578
8576
  zuni: "#008996",
8579
8577
  "āsmānī-sky": "#88ddbb"
8580
8578
  };
8581
- //#endregion
8582
- //#region src/green.ts
8579
+ // src/green.ts
8583
8580
  const green = {
8584
8581
  "18th-century-green": "#a59344",
8585
8582
  "400xt-film": "#d2d2c0",
@@ -13189,8 +13186,7 @@ const green = {
13189
13186
  "zunda-green": "#6bc026",
13190
13187
  "étude-naturelle": "#55bb11"
13191
13188
  };
13192
- //#endregion
13193
- //#region src/neutral.ts
13189
+ // src/neutral.ts
13194
13190
  const neutral = {
13195
13191
  "a-dime-a-dozen": "#d3dde4",
13196
13192
  "a-month-of-sundays": "#b0b2bc",
@@ -18021,8 +18017,7 @@ const neutral = {
18021
18017
  zumthor: "#cdd5d5",
18022
18018
  "zürich-white": "#e6e1d9"
18023
18019
  };
18024
- //#endregion
18025
- //#region src/orange.ts
18020
+ // src/orange.ts
18026
18021
  const orange = {
18027
18022
  "absolute-apricot": "#ff9944",
18028
18023
  acajou: "#4c2f27",
@@ -20860,8 +20855,7 @@ const orange = {
20860
20855
  "à-lorange": "#f2850d",
20861
20856
  "ōkaihau-express": "#cd4600"
20862
20857
  };
20863
- //#endregion
20864
- //#region src/pink.ts
20858
+ // src/pink.ts
20865
20859
  const pink = {
20866
20860
  "8-bit-eggplant": "#990066",
20867
20861
  "a-plum-job": "#bb8aa7",
@@ -22600,8 +22594,7 @@ const pink = {
22600
22594
  "zany-pink": "#e47486",
22601
22595
  zinfandel: "#5a2538"
22602
22596
  };
22603
- //#endregion
22604
- //#region src/purple.ts
22597
+ // src/purple.ts
22605
22598
  const purple = {
22606
22599
  "20000-leagues-under-the-sea": "#191970",
22607
22600
  "a-stitch-in-time": "#babccf",
@@ -24873,8 +24866,7 @@ const purple = {
24873
24866
  "zǐ-sè-purple": "#c94cbe",
24874
24867
  "àn-zǐ-purple": "#94568c"
24875
24868
  };
24876
- //#endregion
24877
- //#region src/red.ts
24869
+ // src/red.ts
24878
24870
  const red = {
24879
24871
  "100-mph": "#c93f38",
24880
24872
  "1975-earth-red": "#7b463b",
@@ -27947,8 +27939,7 @@ const red = {
27947
27939
  "zǎo-hóng-maroon": "#c1264c",
27948
27940
  "ōtan-red": "#ff4e20"
27949
27941
  };
27950
- //#endregion
27951
- //#region src/yellow.ts
27942
+ // src/yellow.ts
27952
27943
  const yellow = {
27953
27944
  "24-karat": "#dfc685",
27954
27945
  "3am-latte": "#c0a98e",
@@ -32130,5 +32121,4 @@ const yellow = {
32130
32121
  "zucchini-flower": "#e8a64e",
32131
32122
  "zucchini-garden": "#afa170"
32132
32123
  };
32133
- //#endregion
32134
32124
  export { orange as a, cyan as c, pink as i, brown as l, red as n, neutral as o, purple as r, green as s, yellow as t, blue as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssints/color-names",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "The Color Name List for cssints: named(\"tangerine\") as a hex colour, in hue sectors so completion stays short",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "culori": "^4.0.2"
30
30
  },
31
31
  "peerDependencies": {
32
- "cssints": "^0.6.0"
32
+ "cssints": "^0.7.0"
33
33
  },
34
34
  "engines": {
35
35
  "node": ">=22"