-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial changes conversion from js and json to ts * Update dyn-screen * Remove tailwind-config-viewer --------- Co-authored-by: Olga Bulat <[email protected]>
- Loading branch information
1 parent
bed62ff
commit 0c3075c
Showing
14 changed files
with
69 additions
and
323 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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* mapping of z-index names to z-indices; Ensure that these values are also | ||
* written in the `tailwind.safelist.txt` file in the project root. | ||
*/ | ||
export const Z_INDICES = Object.freeze({ | ||
auto: "auto", | ||
10: "10", | ||
20: "20", | ||
30: "30", | ||
40: "40", | ||
50: "50", | ||
// Named indices | ||
popover: "50", | ||
snackbar: "10", | ||
"global-audio": "20", | ||
} as const) | ||
|
||
/** | ||
* Check whether the given z-index is valid and is configured in Tailwind. | ||
* | ||
* @param value - the provided z-index to validate | ||
* @returns - whether the z-index is valid and configured in Tailwind | ||
*/ | ||
export const zIndexValidator = (value: string | number): boolean => | ||
Object.keys(Z_INDICES).includes(value.toString()) |
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
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
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
Oops, something went wrong.