@tanstack/router-devtools 1.2.0 → 1.2.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/router-devtools",
3
3
  "author": "Tanner Linsley",
4
- "version": "1.2.0",
4
+ "version": "1.2.2",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router/",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@babel/runtime": "^7.16.7",
43
43
  "date-fns": "^2.29.1",
44
- "@tanstack/react-router": "1.2.0"
44
+ "@tanstack/react-router": "1.2.2"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "rollup --config rollup.config.js"
package/src/utils.ts CHANGED
@@ -12,27 +12,27 @@ type StyledComponent<T> = T extends 'button'
12
12
  HTMLButtonElement
13
13
  >
14
14
  : T extends 'input'
15
- ? React.DetailedHTMLProps<
16
- React.InputHTMLAttributes<HTMLInputElement>,
17
- HTMLInputElement
18
- >
19
- : T extends 'select'
20
- ? React.DetailedHTMLProps<
21
- React.SelectHTMLAttributes<HTMLSelectElement>,
22
- HTMLSelectElement
23
- >
24
- : T extends keyof HTMLElementTagNameMap
25
- ? React.HTMLAttributes<HTMLElementTagNameMap[T]>
26
- : never
15
+ ? React.DetailedHTMLProps<
16
+ React.InputHTMLAttributes<HTMLInputElement>,
17
+ HTMLInputElement
18
+ >
19
+ : T extends 'select'
20
+ ? React.DetailedHTMLProps<
21
+ React.SelectHTMLAttributes<HTMLSelectElement>,
22
+ HTMLSelectElement
23
+ >
24
+ : T extends keyof HTMLElementTagNameMap
25
+ ? React.HTMLAttributes<HTMLElementTagNameMap[T]>
26
+ : never
27
27
 
28
28
  export function getStatusColor(match: AnyRouteMatch, theme: Theme) {
29
29
  return match.status === 'pending' || match.isFetching
30
30
  ? theme.active
31
31
  : match.status === 'error'
32
- ? theme.danger
33
- : match.status === 'success'
34
- ? theme.success
35
- : theme.gray
32
+ ? theme.danger
33
+ : match.status === 'success'
34
+ ? theme.success
35
+ : theme.gray
36
36
  }
37
37
 
38
38
  export function getRouteStatusColor(