@sardine/colour 3.0.0 → 4.0.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.
@@ -4,5 +4,5 @@ type ColorArgs = {
4
4
  optionOneColour: string;
5
5
  optionTwoColour: string;
6
6
  };
7
- export declare const pickHexColourContrast: ({ backgroundColour, optionOneColour, optionTwoColour }: ColorArgs, standard: WCAG) => string;
7
+ export declare const pickHexColourContrast: ({ backgroundColour, optionOneColour, optionTwoColour }: ColorArgs, standard: WCAG) => string | null;
8
8
  export {};
@@ -8,7 +8,7 @@ export declare function getColorInfo(hex: string): {
8
8
  s: number;
9
9
  v: number;
10
10
  a: number;
11
- };
11
+ } | null;
12
12
  /**
13
13
  * Helper to get custom order for greyscale values
14
14
  * @param v HSV value (brightness) from 0 to 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sardine/colour",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "It does things to colours",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",
@@ -59,7 +59,7 @@
59
59
  }
60
60
  ],
61
61
  "devDependencies": {
62
- "@biomejs/biome": "2.4.4",
62
+ "@biomejs/biome": "2.4.10",
63
63
  "@changesets/cli": "^2.27.1",
64
64
  "@size-limit/preset-small-lib": "^12.0.0",
65
65
  "@tsconfig/node24": "^24.0.0",
@@ -69,7 +69,7 @@
69
69
  "lefthook": "^2.0.0",
70
70
  "size-limit": "^12.0.0",
71
71
  "typescript": "^5.4.5",
72
- "vite": "^7.0.0",
72
+ "vite": "^8.0.0",
73
73
  "vitest": "^4.0.0"
74
74
  }
75
75
  }