Created: Datepicker Component #1004
Replies: 13 comments 12 replies
-
That's amazing! Many people asked for this. Yes, I think you should release it as a separate package. Let me know if you have any questions ✌️ |
Beta Was this translation helpful? Give feedback.
-
I would like a plugin based on daisyUI and more headless combinations like react-table + daisyUI. Or some common components like rc-component + daisyUI |
Beta Was this translation helpful? Give feedback.
-
@saadeghi Do we have some plugin schedules? |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
@tonyYo00 as for the schedule: will probably release the date-picker in 1-2 weeks (lots of work on daily job 😄 ) |
Beta Was this translation helpful? Give feedback.
-
@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: |
Beta Was this translation helpful? Give feedback.
-
@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) |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
I'm eager to try it. Publishing a GitHub repo is a good start. Also, this issue should be made into a discussion |
Beta Was this translation helpful? Give feedback.
-
We say extention or plugin is to target some specific areas, if the scope and daisy exactly the same, then why daisy not directly implement it? If some components have some complex state logic, in order to adapt to all the framework, I worry that it is not conducive to style modification |
Beta Was this translation helpful? Give feedback.
-
I also think daisyUI should be a pure design framework, JS should in Plugins is the best way to go (vanilla only, using only tailwind/daisyUI classes, not interfering with other basic styling). We need to make plugins have components that enable more out-of-the-box use.For now, in order to adapt the theme of daisyUI, I need to make additional changes to components like select ,Table,Tree,Cascader, etc. (because the logic of these components is more complex, I refer to some other libraries such as, react-table, react-select,rc-tree..), I agree with @rikgirbes 's point that we need to set a doc/guidelines/rules for plugins. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Good news 🤫 daisyUI 5 (coming next month) will include styles for 3 calendar libraries:
All styles are ready to use which means you can just add the JS file and daisyUI will do the styling. It's available in the alpha version. |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions