Current section
41 Versions
Jump to
Current section
41 Versions
Compare versions
19
files changed
+308
additions
-72
deletions
| @@ -126,13 +126,13 @@ List of available components. | |
| 126 126 | - [Progress](https://daisyui.com/components/progress) ❌ |
| 127 127 | - [Radial progress](https://daisyui.com/components/radial-progress) ❌ |
| 128 128 | - [Radio](https://daisyui.com/components/radio) ❌ |
| 129 | - - [Range slider](https://daisyui.com/components/range) ❌ |
| 129 | + - [Range slider](https://daisyui.com/components/range) âś… |
| 130 130 | - [Rating](https://daisyui.com/components/rating) ❌ |
| 131 131 | - [Select](https://daisyui.com/components/select) âś… |
| 132 132 | - [Stack](https://daisyui.com/components/stack) ❌ |
| 133 133 | - [Stat](https://daisyui.com/components/stat) âś… |
| 134 134 | - [Steps](https://daisyui.com/components/steps) ❌ |
| 135 | - - [Swap](https://daisyui.com/components/swap) ❌ |
| 135 | + - [Swap](https://daisyui.com/components/swap) âś… |
| 136 136 | - [Tabs](https://daisyui.com/components/tab) ❌ |
| 137 137 | - [Table](https://daisyui.com/components/table) âś… |
| 138 138 | - [Textarea](https://daisyui.com/components/textarea) âś… |
| @@ -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.2.0">>}. |
| 4 | + {<<"version">>,<<"0.2.1">>}. |
| 5 5 | {<<"description">>,<<"DaisyUI component library for LiveView">>}. |
| 6 6 | {<<"elixir">>,<<"~> 1.14">>}. |
| 7 7 | {<<"app">>,<<"daisy_ui_components">>}. |
| @@ -16,12 +16,13 @@ | |
| 16 16 | <<"lib/daisy_ui_components/pagination.ex">>, |
| 17 17 | <<"lib/daisy_ui_components/tooltip.ex">>, |
| 18 18 | <<"lib/daisy_ui_components/loading.ex">>, |
| 19 | - <<"lib/daisy_ui_components/card.ex">>, |
| 19 | + <<"lib/daisy_ui_components/card.ex">>,<<"lib/daisy_ui_components/swap.ex">>, |
| 20 20 | <<"lib/daisy_ui_components/modal.ex">>, |
| 21 21 | <<"lib/daisy_ui_components/navbar.ex">>, |
| 22 22 | <<"lib/daisy_ui_components/badge.ex">>, |
| 23 23 | <<"lib/daisy_ui_components/table.ex">>, |
| 24 24 | <<"lib/daisy_ui_components/dropdown.ex">>, |
| 25 | + <<"lib/daisy_ui_components/range.ex">>, |
| 25 26 | <<"lib/daisy_ui_components/button.ex">>, |
| 26 27 | <<"lib/daisy_ui_components/checkbox.ex">>, |
| 27 28 | <<"lib/daisy_ui_components/select.ex">>, |
| @@ -25,8 +25,10 @@ defmodule DaisyUIComponents do | |
| 25 25 | import DaisyUIComponents.Modal |
| 26 26 | import DaisyUIComponents.Navbar |
| 27 27 | import DaisyUIComponents.Pagination |
| 28 | + import DaisyUIComponents.Range |
| 28 29 | import DaisyUIComponents.Select |
| 29 30 | import DaisyUIComponents.Stat |
| 31 | + import DaisyUIComponents.Swap |
| 30 32 | import DaisyUIComponents.Table |
| 31 33 | import DaisyUIComponents.TextInput |
| 32 34 | import DaisyUIComponents.Textarea |
| @@ -30,8 +30,8 @@ defmodule DaisyUIComponents.Badge do | |
| 30 30 | assign(assigns, :class, [ |
| 31 31 | "badge", |
| 32 32 | badge_color(assigns[:color]), |
| 33 | - add_class_from_bool(assigns[:ghost], "badge-ghost"), |
| 34 | - add_class_from_bool(assigns[:outline], "badge-outline"), |
| 33 | + maybe_add_class(assigns[:ghost], "badge-ghost"), |
| 34 | + maybe_add_class(assigns[:outline], "badge-outline"), |
| 35 35 | badge_size(assigns[:size]), |
| 36 36 | assigns.class |
| 37 37 | ]) |
| @@ -39,16 +39,16 @@ defmodule DaisyUIComponents.Button do | |
| 39 39 | assign(assigns, :class, [ |
| 40 40 | "btn", |
| 41 41 | btn_color(assigns[:color]), |
| 42 | - add_class_from_bool(assigns[:ghost], "btn-ghost"), |
| 43 | - add_class_from_bool(assigns[:link], "btn-link"), |
| 44 | - add_class_from_bool(assigns[:outline], "btn-outline"), |
| 45 | - add_class_from_bool(assigns[:active], "btn-active"), |
| 46 | - add_class_from_bool(assigns[:disabled], "btn-disabled"), |
| 47 | - add_class_from_bool(assigns[:glass], "btn-glass"), |
| 48 | - add_class_from_bool(assigns[:loading], "loading"), |
| 49 | - add_class_from_bool(assigns[:wide], "btn-wide"), |
| 50 | - add_class_from_bool(assigns[:block], "btn-block"), |
| 51 | - add_class_from_bool(assigns[:no_animation], "no-animation"), |
| 42 | + maybe_add_class(assigns[:ghost], "btn-ghost"), |
| 43 | + maybe_add_class(assigns[:link], "btn-link"), |
| 44 | + maybe_add_class(assigns[:outline], "btn-outline"), |
| 45 | + maybe_add_class(assigns[:active], "btn-active"), |
| 46 | + maybe_add_class(assigns[:disabled], "btn-disabled"), |
| 47 | + maybe_add_class(assigns[:glass], "btn-glass"), |
| 48 | + maybe_add_class(assigns[:loading], "loading"), |
| 49 | + maybe_add_class(assigns[:wide], "btn-wide"), |
| 50 | + maybe_add_class(assigns[:block], "btn-block"), |
| 51 | + maybe_add_class(assigns[:no_animation], "no-animation"), |
| 52 52 | btn_size(assigns[:size]), |
| 53 53 | btn_shape(assigns[:shape]), |
| 54 54 | assigns.class |
Loading more files…