-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/tree view #1691
Feat/tree view #1691
Conversation
🦋 Changeset detectedLatest commit: 14840f8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Mahmoud-zino unfortunately I'm short on time, but here's a some quick notes based on my initial audit:
$: classesBase = `${cBase} ${$$slots.children ? '' : noContentPadding} ${$$props.class ?? ''}`; After: $: classesPadding = $$slots.children ? '' : noContentPadding;
// Reactive Classes
$: classesBase = `${cBase} ${currentPadding} ${$$props.class ?? ''}`; Questions
That's all I've got time for today, but I'll try to circle back next week. Thanks for all your effort this week! |
@endigo9740 Regarding the fixed I was not sure if we wanted to keep using |
@Mahmoud-zino I've implemented a number of minor changes and updates to this component. Overall I think it's working really well, but there were a few nitpick things I adjusted. Additionally, my OCD was bothering me that the non-expandable rows had a large empty space when hovering each item. I tried removing the space, but then things looked lopsided. So I've introduced a second hyphen symbol that takes the place when a caret is not shown. Let me know what you think about this. Users can opt to adjust the opacity on this, even setting it to |
@endigo9740 yeah It looks really great now and the users have control over displaying it or not, which is always helpful 👍. |
I search a UI framework with a Tree View and I just try this PR HERE. |
@nicolas-albert Skeleton is open source which means folks like yourself can chime in and make feature requests or even contribute your own changes directly as long as you follow our contribution guidelines: Given this feature was merged 30 minutes before you posted we can't go back in time and update this pull request specifically. However, we still have time before the next release if you have minor feature suggestions. Larger features might need more consideration and likely wouldn't make it into the first release (just short of 2 weeks from now) Per your specific requests above:
Our features are not intended to compete with any dedicated library. Dedicated libraries typically have one or more people focused specifically on a single feature, while we're focusing on a whole library. Our components are typically going to be simpler in nature as we treat them as the "primitives" (read: building blocks) for building large features. If there's a dedicated library that offers a lot more features, you're always welcome to substitute that in place of any of Skeleton's features.
Do you mean drag and drop? If so I'd need to see a relevant use case for this. It's not immediately clear to me how this would work or what problem it would solve. We introducing our Tree View to focus purely on navigation at this time.
Multi-selection of what exactly? In a tree view your drill down the tree of expandable options. You can toggle multiple options right now. Maybe an example would help here? |
@endigo9740 contributing can be an option. I evaluating alive Svelte UI libraries with a default nice look, a set of components in order to make an IDE like app, including file management and other concepts based on a treeview. Thank you for your answer! |
@nicolas-albert yeah unfortunately I'm not aware of any alternatives for Svelte off hand. Maybe check Flowbite or Tailwind? They provide HTML + Tailwind elements that can be integrated with Skeleton's theme system:
These would be for the visible UI, but then allow you full control over the logic and functionality as you see fit. You could also clone our component and modify as desired locally in your project. The goal for our component was a simple drill down navigation for a website - so if you're needing something very specific and purpose built, that might mean you would be better off rolling your own solution through a custom component. |
Linked Issue
Closes #1668
Description
Basic implementation of the tree view.
Changsets
Checklist
Please read and apply all contribution requirements.
dev
branch (NEVERmaster
)docs/
,feat/
,chore/
,bugfix/
pnpm check
pnpm format
pnpm test