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 authored and GitHub committed 2024-04-12 17:15:57 +02:00
1 parent 468a4d820f
commit 9d08560e91
7 files changed
+96 -26

No files matched your search

+1
View File
@@ -7,6 +7,7 @@
---@field title? string
---@field description? string
---@field duration? number
---@field showDuration? boolean
---@field position? NotificationPosition
---@field type? NotificationType
---@field style? { [string]: any }