Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Created: Datepicker Component #955

Closed
rikgirbes opened this issue Jul 16, 2022 · 9 comments
Closed

Created: Datepicker Component #955

rikgirbes opened this issue Jul 16, 2022 · 9 comments

Comments

@rikgirbes
Copy link
Contributor

I created a Datepicker component working with DaisyUI.

All vanilla typescript, although it does use date-fns and floating-ui.

Of course this is both not "css only" and uses 2 libraries.

Thus the question can this be of any use for the project?
Or should I release it separately?

dark
light
cyberpunk

@rikgirbes rikgirbes changed the title Datepicker Component Created: Datepicker Component Jul 16, 2022
@saadeghi
Copy link
Owner

That's amazing! Many people asked for this.

Yes, I think you should release it as a separate package.
If the npm package is ready for production and the docs is straightforward, I will add a link to it on daisyUI docs as well. I'm thinking about adding a "plugins" section on the sidebar of daisyUI document website.

Let me know if you have any questions ✌️

@tonyYo00
Copy link

I would like a plugin based on daisyUI and more headless combinations like react-table + daisyUI. Or some common components like rc-component + daisyUI

@tonyYo00
Copy link

  1. Core: Tailwind + DaisyUI Config
  2. Plugin:
    1. Headless : react-table, react-hot-toast, react-modal
    2. Other: rc-component/tree rc-component/date-picker rc-component/cascader react-select or rc-component/select ....

@saadeghi Do we have some plugin schedules?

@saadeghi
Copy link
Owner

@tonyYo00 daisyUI only provides the style. So any UI library that is "headless" (only provides functionality + does not provide design decisions or it's optional) can work well with daisyUI.
There could be wrapper packages to include 2 in 1 but of course those should be separate project with their own npm package.

@rikgirbes
Copy link
Contributor Author

@tonyYo00 as for the schedule: will probably release the date-picker in 1-2 weeks (lots of work on daily job 😄 )

@tonyYo00
Copy link

tonyYo00 commented Aug 5, 2022

@rikgirbes i found a headless lib about date: https://github.com/its-danny/use-lilius , I think we can build a daisyUI-exentention with headless:
table: react-table
select: downshift
date-picker: use-lilius
toast: react-hot-toast

@rikgirbes
Copy link
Contributor Author

@tonyYo00 not really that headless though..

Also would be React-only.

And uses date-fns in the background, and popperjs for floating.

I made a Vanilla-Ts version, that uses Datefns also, and floating-ui for the floating functionality (which is a treeshakeable version of popper you could say)

I think that would more fit daisyui as it can be injected in all frameworks (e.g. react/vue/svelte etc), or just in vanilla js/ts.

I haven't found the time yet to make a release-able package, although the code is done and functional. (apart from some small refactoring maybe)

@rikgirbes
Copy link
Contributor Author

Also toast are now in DaisyUI (atleast the styles for it), making a js lib for handling toast is easy enough, no need to only support react.

@ThatXliner
Copy link

I haven't found the time yet to make a release-able package, although the code is done and functional. (apart from some small refactoring maybe)

I'm eager to try it. Publishing a GitHub repo is a good start.

Also, this issue should be made into a discussion

Repository owner locked and limited conversation to collaborators Aug 6, 2022
@saadeghi saadeghi converted this issue into discussion #1004 Aug 6, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants