-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17070cd
commit 23fadfb
Showing
2 changed files
with
17 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,59 @@ | ||
import type { FillLevel } from '../contexts/FillLevelContext' | ||
|
||
export type TableFillLevel = Exclude<FillLevel, 3> | ||
|
||
export const tableFillLevelToBorder = { | ||
0: 'default', | ||
1: 'fill-one', | ||
2: 'fill-two', | ||
3: 'fill-three', | ||
} as const satisfies Record<FillLevel, string> | ||
} as const satisfies Record<TableFillLevel, string> | ||
|
||
export const tableFillLevelToBorderColor = { | ||
0: 'border-fill-two', | ||
1: 'border-fill-three', | ||
2: 'border-fill-three', | ||
3: 'border-fill-three', | ||
} as const satisfies Record<FillLevel, string> | ||
} as const satisfies Record<TableFillLevel, string> | ||
|
||
export const tableFillLevelToBg = { | ||
0: 'fill-zero', | ||
1: 'fill-one', | ||
2: 'fill-two', | ||
3: 'fill-three', | ||
} as const satisfies Record<FillLevel, string> | ||
} as const satisfies Record<TableFillLevel, string> | ||
|
||
export const tableFillLevelToHeaderBg = { | ||
0: 'fill-one', | ||
1: 'fill-two', | ||
2: 'fill-three', | ||
3: 'fill-three', | ||
} as const satisfies Record<FillLevel, string> | ||
} as const satisfies Record<TableFillLevel, string> | ||
|
||
export const tableFillLevelToCellBg = { | ||
0: 'fill-zero', | ||
1: 'fill-one', | ||
2: 'fill-two', | ||
3: 'fill-three', | ||
} as const satisfies Record<FillLevel, string> | ||
} as const satisfies Record<TableFillLevel, string> | ||
|
||
export const tableFillLevelToRaisedCellBg = { | ||
0: 'fill-zero-selected', | ||
1: 'fill-one-selected', | ||
2: 'fill-two-selected', | ||
3: 'fill-three-selected', | ||
} as const satisfies Record<FillLevel, string> | ||
} as const satisfies Record<TableFillLevel, string> | ||
|
||
export const tableFillLevelToSelectedCellBg = { | ||
0: 'fill-zero-hover', | ||
1: 'fill-one-hover', | ||
2: 'fill-two-hover', | ||
3: 'fill-three-hover', | ||
} as const satisfies Record<FillLevel, string> | ||
} as const satisfies Record<TableFillLevel, string> | ||
|
||
export const tableFillLevelToHoverCellBg = { | ||
0: 'fill-zero-hover', | ||
1: 'fill-one-hover', | ||
2: 'fill-two-hover', | ||
3: 'fill-three-hover', | ||
} as const satisfies Record<FillLevel, string> | ||
} as const satisfies Record<TableFillLevel, string> | ||
|
||
export const tableFillLevelToHighlightedCellBg = { | ||
0: 'fill-two', | ||
1: 'fill-three', | ||
2: 'fill-three', | ||
3: 'fill-three', | ||
} as const satisfies Record<FillLevel, string> | ||
} as const satisfies Record<TableFillLevel, string> | ||
|
||
// TODO: Color getters. | ||
// TODO: Ask Nick for verification. |