Current section
41 Versions
Jump to
Current section
41 Versions
Compare versions
3
files changed
+4
additions
-4
deletions
| @@ -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.4.0">>}. |
| 4 | + {<<"version">>,<<"0.4.1">>}. |
| 5 5 | {<<"description">>,<<"DaisyUI component library for LiveView">>}. |
| 6 6 | {<<"elixir">>,<<"~> 1.14">>}. |
| 7 7 | {<<"app">>,<<"daisy_ui_components">>}. |
| @@ -22,14 +22,14 @@ defmodule DaisyUIComponents.Input do | |
| 22 22 | attr :id, :any, default: nil |
| 23 23 | # attr :name, :any |
| 24 24 | attr :label, :string |
| 25 | - attr :value, :any |
| 25 | + attr :value, :any, default: nil |
| 26 26 | |
| 27 27 | attr :type, :string, |
| 28 28 | default: "text", |
| 29 29 | values: ~w(checkbox color date datetime-local email file hidden month number password |
| 30 30 | range radio search select tel text textarea time url week) |
| 31 31 | |
| 32 | - attr :color, :string, values: colors() |
| 32 | + attr :color, :string, values: [nil] ++ colors(), default: nil |
| 33 33 | |
| 34 34 | attr :field, Phoenix.HTML.FormField, |
| 35 35 | doc: "a form field struct retrieved from the form, for example: @form[:email]" |
| @@ -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.4.0" |
| 5 | + @version "0.4.1" |
| 6 6 | |
| 7 7 | def project do |
| 8 8 | [ |