Commit Graph
282 Commits
Author SHA1 Message Date
Luke 97dc0cabdd refactor(web/progress): use scale fade transition for progress 2022-12-31 15:52:39 +01:00
Luke f9ff2fe6d4 refactor(web/dialog): use fade transition 2022-12-31 15:05:01 +01:00
Luke 2a1e7ff632 refactor(web): scale fade transition 2022-12-31 15:03:16 +01:00
Luke 8722d25171 refactor(web/textui): textui mantine rewrite 2022-12-30 14:50:15 +01:00
Luke 763997f2a1 refactor(web/skillcheck): darker track colour 2022-12-30 13:01:41 +01:00
Luke fa04332def refactor(web/skillcheck): skillcheck mantine rewrite 2022-12-23 10:29:22 +01:00
Luke d1187eda43 refactor(web/progress): circle progress to Mantine 2022-12-22 20:14:09 +01:00
Luke f8f81db3eb refactor(web/progress): hide progress bar if not visible 2022-12-21 15:00:22 +01:00
Luke 102d58cbb1 refactor(web): context button description class 2022-12-21 14:53:25 +01:00
Luke 4f6fc6abaf refactor(web/progress): progress bar mantine rewrite 2022-12-18 13:17:42 +01:00
Luke 50aab9987c refactor(web/alert): use primary color theme for the button color 2022-12-18 12:07:37 +01:00
Luke e7d86af637 refactor(web/context): context menu mantine rewrite 2022-12-17 14:27:55 +01:00
Luke c419474969 refactor(web/input): input dialog mantine rewrite 2022-12-16 15:00:01 +01:00
Luke f24e43a1a4 refactor(web/alert): alert dialog mantine rewrite 2022-12-16 12:27:15 +01:00
Luke 1893b66014 refactor(web/dev): mantine rewrite 2022-12-16 12:03:31 +01:00
Luke 5206f8b81b refactor(web): initial mantine setup 2022-12-16 11:55:12 +01:00
Luke abff60d4ed fix(web): fix values persisting across input dialogs opened quickly 2022-12-16 09:40:28 +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
davidanddavidxd33 49bb2a00a1 feat(web): notify and context markdown wrapper (#174)
Co-authored-by: davidxd33 <dponce@gmail.com>
2022-12-15 23:43:14 +01:00
JagandLuke 34022ce81e fix(web/menu): combine initial select and first render checks (#172)
* fix(web/menu): Combine initial select and first render

* Combining these checks should fix an issue of having to toggle a checkbox multiple times before it is recognized as being toggled

* Change firstRenderRef current value before first menu movement

* Too many async on change functions are happening let's handle this once the user decides to interact with the menu

* fix(web/menu): remove first render ref check for onSelected

Co-authored-by: Luke <sabolukas03@gmail.com>
2022-12-14 18:59:49 +01:00
Luke d92c1d7e23 feat(web/alert): allow defining alert dialog button labels 2022-12-08 11:46:21 +01:00
Luke 4aad28a2e5 chore(web): remove unused settings component 2022-12-08 11:37:24 +01:00
Luke e806781dde fix(web/menu): fix onSideScroll getting called on open
Potentially fixes an issue where if your first item in the menu was a side scroll the onSideScroll would get instantly called when opening
2022-12-08 11:23:49 +01:00
ItsANoBrainerandLuke a6f47cfe59 feat(web): context and list menu progress bars (#166)
* Initial Commit

Adds support for progress bars to items in both context and and list menus.

* Default Color Scheme & Description Weight

Added default color scheming, and made the description for context menues a lighter font weight for separating the title vs description better.

* iconColor to Menu & Small Syntax Changes

* Update Item.tsx

* fix(web/context): syntax error

also reformat with prettier

* chore(web/menu): reformat with prettier

Co-authored-by: Luke <sabolukas03@gmail.com>
2022-12-04 10:33:25 +01:00
Luke 7cde7e0581 fix(web/input): ensure select rerender between dialogs
If opening another input dialog with select in the same row it would cause the value to be the same as the previous one as there was no rerender being forced because their keys were the same
2022-11-19 12:11:02 +01:00
Luke d5e0305df9 fix(web/input): ensure number type input is max length 2022-11-19 11:04:34 +01:00
Luke 59051d505b fix(web/skillcheck): fix not being able to hit skill check with capslock
apparently the return key for event can differentiate lower and uppercase keys
2022-11-16 23:16:17 +01:00
Luke 39668aa26a fix(web/menu): fix button tooltip not displaying on side scroll button 2022-11-12 13:58:34 +01:00
Luke 306b7b3670 feat(web/context): disabled buttons 2022-11-06 11:01:39 +01:00
Luke 33b70b6f1c refactor(web/context): cache context option into a variable 2022-11-05 11:20:59 +01:00
Luke 765fff3598 fix(web/menu): show values description without requiring button desc 2022-10-30 10:16:28 +01:00
Luke 00465d2e7a perf(web/menu): memoize button and header components
Drops the render times for a 9 button menu down from 12ms to 1.6ms
2022-10-29 16:15:58 +02:00
Luke 6b8cfa990f fix(web/menu): fix vertical icon alignment 2022-10-29 16:00:35 +02:00
Luke 9cc7b9270e refactor(web/menu)!: pass scrollIndex or checked in the same value
If the button is a scroll button then `isScroll` is passed into args, if a button is a checkbox then `isCheck` is passed into args.

Requires `args` to always be of type `table`
2022-10-29 15:55:08 +02:00
Luke c227282ce0 refactor(web/menu): update checkbox styling 2022-10-29 15:55:08 +02:00
BerkieBb 5ba1a3b8f9 feat(interface/menu): checkbox
feat(package/interface/menu): checkbox
feat(web/menu/list): checkbox
feat(web/menu/list): checkbox option for ListItem
feat(web/menu/list): custom checkbox
2022-10-29 15:55:08 +02:00
Jag de23227ea7 fix(web/menu): move firstRengerRef check earlier in the function (#145)
* This fixes a case where, if the first option selected in a menu doesn't have side scroll values, the first time that you *did* side scroll on an item in that menu it would no trigger onSideScroll
2022-10-29 10:11:40 +02:00
Luke a8fc5caaae fix(web): set color-scheme to normal
fixes an issue with a black screen in game
2022-10-27 23:24:38 +02: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 8ad04de0bc refactor(web/input): move field components into fields folder 2022-10-27 14:22:15 +02:00
Luke d4dc68f21e fix(web/input): remove unused isReadOnly property 2022-10-27 13:46:45 +02:00
Luke a6a0e4905f feat(web/input): description tooltip on fields 2022-10-27 13:45:27 +02:00
Luke 1127108fcd feat(web/menu): add description support on list items 2022-10-27 10:09:48 +02:00
Luke b354e0836c chore(web): move skill check into dev draw tools 2022-10-27 09:27:54 +02:00
davidxd33anddavidxd33 4f69c7c5c1 feat(interface/dialog): disabled row property (#142)
* feat(interface/dialog): readonly, disabled flags

* Update TS prop types

* refactor(web/input): remove read only property

Co-authored-by: davidxd33 <dponce@gmail.com>
2022-10-27 09:17:53 +02:00
LukeandDokaDoka e40331009b fix(web/skillcheck): use proper skill check calculations
Changed the areaSize to use degrees rather than the length of the arch which was causing issues

Co-authored-by: DokaDoka <31368547+DokaDoka@users.noreply.github.com>
2022-10-20 13:31:30 +02:00
Luke 3fcb9941f7 refactor(web/skillcheck): remove unused code and comments 2022-10-18 20:03:00 +02:00
Luke 6264bbcbc9 refactor(skillcheck): move array handling into ui 2022-10-18 20:03:00 +02:00
Luke 61092d7c3c refactor(web/skillcheck): move visibility into it's own state 2022-10-18 20:03:00 +02:00
Luke d4b331c104 style(web/skillcheck): update appearance 2022-10-18 20:03:00 +02:00