Commit Graph

30 Commits

Author SHA1 Message Date
RrybaN
8bb3b5a835 fix(notify): reset circle animation on notification re-trigger with id (#559)
Resolves #554 

* fix(notify): prevent duration not showing in notifications with id

* fix(notify): add toast key to reset circle animation

* refactor(web/notify): use ref for key counter instead of state

---------

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2024-04-27 15:33:34 +02:00
RrybaN
9d08560e91 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
2024-04-12 17:15:57 +02:00
Luke
dda2e0927f fix(web/notifications): pass animation to notifications icon 2023-11-15 15:34:08 +01:00
Luke
36662050ff chore: optimize imports 2023-11-15 15:32:04 +01:00
Luke
882e372895 feat(web): font awesome icon animations 2023-11-15 15:28:21 +01:00
Luke
a50f7a2052 feat(web): ability to align icon at the top for notifs/text ui 2023-11-15 14:36:37 +01:00
Jellyton
c8cca20c89 tweak(web): adjust markdown heading margins (#393)
* tweak(web): components for markdown headings

Fixed nomenclature and set as default export.

* fix(ui): temp remove MarkdownComponents file

* fix(ui): return MarkdownComponents file
2023-08-07 12:05:15 +02:00
LukeWasTaken
21990796f5 feat(web): ability to style description in notifications 2023-05-10 16:25:32 +02:00
mikigoalie
c94d019f67 feat(web/notifications): add warning type (#315)
* update(notify): add warning it's own type

* update(notify): inform > info, change warning default icon to circle

* fix typo

* update(notify): case for def notifs, update icons

use circle icons for all notifs so its more unified, also looks a bit better imo

* fix(progressBar): spamming cancel

spamming cancel would sometimes not interrupt current progbar

* Revert "fix(progressBar): spamming cancel"

This reverts commit b030fddd20f9f2b92a07ce4199c73e3b43f435a3.
2023-05-01 12:08:02 +02:00
Luke
829bec2592 refactor(web): move all types into typings folder 2023-02-15 13:25:44 +01:00
Luke
5b4c6b8674 fix(web/notifications): add string as type to id 2023-02-15 11:46:41 +01:00
Luke
14341a0343 chore(web): remove unused code 2023-02-13 21:24:33 +01:00
Luke
2a1429848c refactor(web/notifications): adjust line height and icon size 2023-01-13 17:21:01 +01:00
Luke
b8e96026cc refactor(web/notifications): increase description font size if no title 2023-01-11 21:06:05 +01:00
Luke
9a3cff864e refactor(client/interface): default notify backwards compat 2023-01-11 20:38:58 +01:00
Luke
d0811be0ce refactor(web/input): use form control instead of controlled state 2023-01-03 18:55:02 +01:00
Luke
440a7564a3 refactor(web/notifications): improve notification transitions 2023-01-02 21:50:49 +01:00
Luke
d5cdfe58f2 feat(web/notifications): center left and center right positions 2023-01-01 19:25:12 +01:00
Luke
ae8e588c67 refactor(web/notifications): notifications rewrite 2023-01-01 14:31:11 +01:00
Scully
41b0850764 feat(web/notifications): add variant support to default notifications (#175)
* Add variant support

* Remove
2022-12-16 00:56:45 +01:00
david
49bb2a00a1 feat(web): notify and context markdown wrapper (#174)
Co-authored-by: davidxd33 <dponce@gmail.com>
2022-12-15 23:43:14 +01:00
Luke
a1d2607286 chore(web): update react and chakra versions
hopefully nothing broke that I didn't notice prayge
2022-10-27 16:44:47 +02:00
Luke
4a5251b60b chore(web): add prettier and format 2022-08-27 15:58:36 +02:00
Luke
0bc185ef38 feat(web): developer drawer
Move all debug functions into a single developer drawer,

Not the best implementation as there is focus fighting going on between some elements and the drawer but will do for now without state management
2022-08-27 15:40:41 +02:00
Jag
3db5ccc86d fix(notification): Notification id now works as documentation states (#78)
* `id` was being checked for but never got set on the toast so you'd continue to get duplicate messages even if `id` was set
2022-08-26 18:37:28 +02:00
Luke
e46fa203ca fix(web): Ensure font awesome icons have fixed width 2022-04-16 12:08:55 +02:00
Luke
3d3a7075d2 fix(nui): Make description optional 2022-04-11 14:51:28 +02:00
Luke
8d375569ab fix(nui): Fix incorrect string typing and remove tsignore 2022-04-11 14:41:07 +02:00
Linden
e842185382 feat(resource/interface): export notify 2022-04-11 03:52:25 +00:00
Luke
993b06e880 refactor(nui): Better organize components 2022-04-01 21:41:53 +02:00