feat(notify): show duration (#542)

* feat(notify): add option to show duration

lib.notify new option
`showDuration?: boolean -- Option to show duration bar`

* fix(notify): allow icon color using hexadecimal values

* chore(notify): show duration to default and added tinycolor2 for supporting available color formats

* feat(notify): define interface for showDuration
This commit is contained in:
RrybaN
2024-04-12 23:15:57 +08:00
committed by GitHub
parent 468a4d820f
commit 9d08560e91
7 changed files with 96 additions and 26 deletions

View File

@@ -24,6 +24,7 @@
"react-hot-toast": "^2.4.0",
"react-markdown": "^8.0.1",
"remark-gfm": "^3.0.1",
"tinycolor2": "^1.6.0",
"typescript": "^4.6.3",
"vite": "^5.0.13",
"web-vitals": "^2.1.4"
@@ -41,6 +42,7 @@
"@types/node": "^20.9.0",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.8",
"@types/tinycolor2": "^1.4.6",
"autoprefixer": "^10.0.2",
"cross-env": "^7.0.3",
"csstype": "^3.0.10",