reapit / elements

Reapit Elements UI Component Library
https://elements.reapit.cloud/?path=/docs/welcome--docs
0 stars 2 forks source link

v5 new component: AppBar/SearchButton #195

Open nurm717123 opened 2 weeks ago

nurm717123 commented 2 weeks ago

Abstract

As part of the v5 Elements release, the ticket #153 was created. To break it into smaller part and allow for more focused discussions, this ticket has been created.

app bar (parent) image

this ticket image

Specification

Developer Checklist

Release Checklist

Additional Context or Information

nurm717123 commented 2 weeks ago

Hi @kurtdoherty and @adrian-reapit , I created this ticket so the discussion could be more focused and easier, and since the app-bar structure haven't build yet, I think we can discuss on how it will look on this kind of small pr. let me know if this is too small and I will update it 👍

nurm717123 commented 2 weeks ago

my Idea of how it will be structured is something like this:

any ideas or feedback will be much appreciated ☺️

kurtdoherty commented 2 weeks ago

Thanks for starting this discussion @nurm717123 👍

Personally, I think it's important for us to separate the "patterns" from the "components". When I look at your suggested file structure above, it feels like:

I see all of these things a independent from each other. I would suggest the App Bar pattern consists of the composition of many different atoms and molecules, one of which may be an AppBar component/atom (which may also need a better name 🤔). I would also suggest that the Side Bar, Bottom Bar, App Switcher and so on are all individual components, some more simple than others.

nurm717123 commented 2 weeks ago

I see all of these things a independent from each other. I would suggest the App Bar pattern consists of the composition of many different atoms and molecules

Thanks Kurt, I think got your point now, so here is the updated one then:

or

I think the second one is better because it separate the code into smaller chunk 🤔

kurtdoherty commented 2 weeks ago

Sorry, I should have included an explicit example of what I meant by my comments. Since I treat the atoms and molecules that are used in the App Bar pattern as separate things, the file structure I'd suggest is:

You'll notice the absence of any "main nav" or "secondary nav" components (I have doubts that we actually need those to be first-class components vs just a plain button group; I've asked Andrei for clarification on the Figma file).