Commit Graph

19 Commits

Author SHA1 Message Date
renzuzu
8eca1698cb feat(web/meu): support images as icons in context and list menu (#230)
* feat: Support image Tag in buttons

in my server. ox_lib is heavily used.
most of sample use cases for this is.
Food image,
Ingredients,
Vehicle Parts,
etc..

i believe font awesome is not enough for some use cases.

i did suggest this on v3 pending PR.
but it seems gets ignored.

here i am gonna try to push this PR.

to use this.
icon must be not existing in the options.

if both icon and image is in options, nothing will appear.

image in metadata will still appear normaly.

* tweak(web/menu): resize render image comparable to FA

* refactor(web/context): use icon prop for images

* refactor(web/list): use icon prop for images

---------

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2023-02-19 13:53:48 +01:00
Luke
829bec2592 refactor(web): move all types into typings folder 2023-02-15 13:25:44 +01:00
Luke
d48b5e199b refactor(web/menu): list menu mantine rewrite 2023-01-02 13:45:19 +01:00
ItsANoBrainer
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
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
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
Luke
1127108fcd feat(web/menu): add description support on list items 2022-10-27 10:09:48 +02:00
Luke
5d4eff8cd3 fix(web/menu): fix misalignment on the list buttons in the menu 2022-09-09 13:04:31 +02:00
Luke
4a5251b60b chore(web): add prettier and format 2022-08-27 15:58:36 +02:00
Luke
fd8b3c9862 fix(web/menu): fix scrolling clipping menu items 2022-08-04 15:04:49 +02:00
Luke
d48ca25c7b feat(web/menu): initial list menu Lua api 2022-08-04 15:04:49 +02:00
Luke
4744df337f feat(web/menu): add current and max option count into the list button 2022-08-04 15:04:49 +02:00
Luke
e81a05aa2d fix(web/menu): set pointer events to none on body div
Fixes and issue where you could click the menu to take away focus and make it non interactable
2022-08-04 15:04:49 +02:00
Luke
a43b5eee04 feat(web/menu): list menu icon support 2022-08-04 15:04:49 +02:00
Luke
43ffa86387 refactor(web/menu): improve list menu text alignment 2022-08-04 15:04:49 +02:00
Luke
3f33b690e1 feat(web/menu): array side scrolling 2022-08-04 15:04:49 +02:00
Luke
196d400c56 feat(web/menu): menu list focus trapping 2022-08-04 15:04:49 +02:00
Luke
98b9e224ef refactor(web/menu): list menu component split 2022-08-04 15:04:49 +02:00