Current section

41 Versions

Jump to

Compare versions

5 files changed
+15 additions
-11 deletions
  @@ -247,7 +247,7 @@ List of available components.
247 247
248 248 ## 🗺️ Roadmap
249 249
250 - - Update components for the new [DaisyUI 5](https://daisyui.com/docs/upgrade/)
251 - - Implement all components from DaisyUI
252 - - Document all components in Storybook
253 - - Create `mix` script to enable users to import the components of this library into their projects, sharing the same project namespace.
250 + - [x] Update components for the new [DaisyUI 5](https://daisyui.com/docs/upgrade/)
251 + - [ ] Implement all components from DaisyUI with storybook
252 + - [ ] Update documentation with the new Phoenix release
253 + - [ ] Create `mix` script to enable users to import the components of this library into their projects, sharing the same project namespace :planned
  @@ -1,7 +1,7 @@
1 1 {<<"links">>,
2 2 [{<<"GitHub">>,<<"https://github.com/phcurado/daisy_ui_components">>}]}.
3 3 {<<"name">>,<<"daisy_ui_components">>}.
4 - {<<"version">>,<<"0.8.2">>}.
4 + {<<"version">>,<<"0.8.3">>}.
5 5 {<<"description">>,<<"DaisyUI component library for LiveView">>}.
6 6 {<<"elixir">>,<<"~> 1.14">>}.
7 7 {<<"app">>,<<"daisy_ui_components">>}.
  @@ -43,8 +43,10 @@ defmodule DaisyUIComponents.Card do
43 43
44 44 slot :card_body do
45 45 attr :class, :any
46 + end
46 47
47 - slot :card_actions
48 + slot :card_actions do
49 + attr :class, :any
48 50 end
49 51
50 52 slot :inner_block
  @@ -168,7 +168,7 @@ defmodule DaisyUIComponents.Tabs do
168 168
169 169 def tab(%{type: "label", title: _title} = assigns) do
170 170 assigns =
171 - assign(assigns, :class, tab_classes(assigns))
171 + assign(assigns, :class, radio_tab_classes(assigns))
172 172
173 173 ~H"""
174 174 <.tab_label title={@title} name={@name} class={@class} active={@active} {@rest} />
  @@ -177,7 +177,7 @@ defmodule DaisyUIComponents.Tabs do
177 177
178 178 def tab(%{type: "label"} = assigns) do
179 179 assigns =
180 - assign(assigns, :class, tab_classes(assigns))
180 + assign(assigns, :class, radio_tab_classes(assigns))
181 181
182 182 ~H"""
183 183 <.tab_label name={@name} class={@class} active={@active} {@rest}>
  @@ -363,7 +363,8 @@ defmodule DaisyUIComponents.Tabs do
363 363 classes([
364 364 "tab",
365 365 maybe_add_class(assigns[:active], "tab-active"),
366 - maybe_add_class(assigns[:disabled], "tab-disabled")
366 + maybe_add_class(assigns[:disabled], "tab-disabled"),
367 + assigns.class
367 368 ])
368 369 end
369 370
  @@ -371,7 +372,8 @@ defmodule DaisyUIComponents.Tabs do
371 372 # Instead of "tab-active" class, the checked attribute is used for radio tabs
372 373 classes([
373 374 "tab",
374 - maybe_add_class(assigns[:disabled], "tab-disabled")
375 + maybe_add_class(assigns[:disabled], "tab-disabled"),
376 + assigns.class
375 377 ])
376 378 end
  @@ -2,7 +2,7 @@ defmodule DaisyUIComponents.MixProject do
2 2 use Mix.Project
3 3
4 4 @source_url "https://github.com/phcurado/daisy_ui_components"
5 - @version "0.8.2"
5 + @version "0.8.3"
6 6
7 7 def project do
8 8 [