Current section
41 Versions
Jump to
Current section
41 Versions
Compare versions
6
files changed
+71
additions
-53
deletions
| @@ -1,9 +1,5 @@ | |
| 1 1 | [ |
| 2 2 | plugins: [Phoenix.LiveView.HTMLFormatter], |
| 3 3 | import_deps: [:phoenix], |
| 4 | - inputs: |
| 5 | - Enum.flat_map( |
| 6 | - ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}"], |
| 7 | - &Path.wildcard(&1, match_dot: true) |
| 8 | - ) -- ["lib/daisy_ui_components/form.ex", "lib/daisy_ui_components/input.ex"] |
| 4 | + inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}"] |
| 9 5 | ] |
| @@ -1,61 +1,63 @@ | |
| 1 1 | {<<"links">>, |
| 2 2 | [{<<"GitHub">>,<<"https://github.com/phcurado/daisy_ui_components">>}]}. |
| 3 3 | {<<"name">>,<<"daisy_ui_components">>}. |
| 4 | - {<<"version">>,<<"0.9.6">>}. |
| 4 | + {<<"version">>,<<"0.9.7">>}. |
| 5 5 | {<<"description">>,<<"DaisyUI component library for LiveView">>}. |
| 6 | - {<<"elixir">>,<<"~> 1.14">>}. |
| 6 | + {<<"elixir">>,<<"~> 1.15">>}. |
| 7 7 | {<<"app">>,<<"daisy_ui_components">>}. |
| 8 8 | {<<"licenses">>,[<<"Apache-2.0">>]}. |
| 9 9 | {<<"files">>, |
| 10 10 | [<<"lib">>,<<"lib/daisy_ui_components.ex">>,<<"lib/daisy_ui_components">>, |
| 11 | - <<"lib/daisy_ui_components/checkbox.ex">>, |
| 12 | - <<"lib/daisy_ui_components/menu.ex">>,<<"lib/daisy_ui_components/hero.ex">>, |
| 13 | - <<"lib/daisy_ui_components/textarea.ex">>, |
| 14 | - <<"lib/daisy_ui_components/fieldset.ex">>, |
| 15 | - <<"lib/daisy_ui_components/modal.ex">>, |
| 16 | - <<"lib/daisy_ui_components/tooltip.ex">>, |
| 17 | - <<"lib/daisy_ui_components/range.ex">>, |
| 18 | - <<"lib/daisy_ui_components/button.ex">>, |
| 19 | - <<"lib/daisy_ui_components/progress.ex">>, |
| 20 | - <<"lib/daisy_ui_components/list.ex">>, |
| 11 | + <<"lib/daisy_ui_components/drawer.ex">>, |
| 12 | + <<"lib/daisy_ui_components/select.ex">>, |
| 13 | + <<"lib/daisy_ui_components/menu.ex">>, |
| 21 14 | <<"lib/daisy_ui_components/text_input.ex">>, |
| 15 | + <<"lib/daisy_ui_components/checkbox.ex">>, |
| 16 | + <<"lib/daisy_ui_components/swap.ex">>,<<"lib/daisy_ui_components/tabs.ex">>, |
| 17 | + <<"lib/daisy_ui_components/dropdown.ex">>, |
| 18 | + <<"lib/daisy_ui_components/footer.ex">>, |
| 19 | + <<"lib/daisy_ui_components/progress.ex">>, |
| 20 | + <<"lib/daisy_ui_components/button.ex">>, |
| 21 | + <<"lib/daisy_ui_components/icon.ex">>, |
| 22 | + <<"lib/daisy_ui_components/textarea.ex">>, |
| 23 | + <<"lib/daisy_ui_components/radio.ex">>, |
| 24 | + <<"lib/daisy_ui_components/flash.ex">>, |
| 25 | + <<"lib/daisy_ui_components/input.ex">>, |
| 26 | + <<"lib/daisy_ui_components/toggle.ex">>, |
| 27 | + <<"lib/daisy_ui_components/breadcrumbs.ex">>, |
| 28 | + <<"lib/daisy_ui_components/toast.ex">>, |
| 29 | + <<"lib/daisy_ui_components/table.ex">>, |
| 30 | + <<"lib/daisy_ui_components/label.ex">>, |
| 31 | + <<"lib/daisy_ui_components/modal.ex">>, |
| 32 | + <<"lib/daisy_ui_components/header.ex">>, |
| 33 | + <<"lib/daisy_ui_components/hero.ex">>, |
| 34 | + <<"lib/daisy_ui_components/tooltip.ex">>, |
| 35 | + <<"lib/daisy_ui_components/accordion.ex">>, |
| 36 | + <<"lib/daisy_ui_components/pagination.ex">>, |
| 37 | + <<"lib/daisy_ui_components/sidebar.ex">>, |
| 38 | + <<"lib/daisy_ui_components/list.ex">>, |
| 39 | + <<"lib/daisy_ui_components/steps.ex">>, |
| 40 | + <<"lib/daisy_ui_components/loading.ex">>, |
| 41 | + <<"lib/daisy_ui_components/stat.ex">>, |
| 42 | + <<"lib/daisy_ui_components/navbar.ex">>, |
| 43 | + <<"lib/daisy_ui_components/indicator.ex">>, |
| 44 | + <<"lib/daisy_ui_components/utils.ex">>, |
| 45 | + <<"lib/daisy_ui_components/card.ex">>, |
| 46 | + <<"lib/daisy_ui_components/collapse.ex">>, |
| 47 | + <<"lib/daisy_ui_components/form.ex">>, |
| 22 48 | <<"lib/daisy_ui_components/avatar.ex">>, |
| 23 49 | <<"lib/daisy_ui_components/alert.ex">>, |
| 24 | - <<"lib/daisy_ui_components/breadcrumbs.ex">>, |
| 25 | - <<"lib/daisy_ui_components/drawer.ex">>, |
| 26 | - <<"lib/daisy_ui_components/tabs.ex">>, |
| 27 | - <<"lib/daisy_ui_components/js_helpers.ex">>, |
| 28 | - <<"lib/daisy_ui_components/select.ex">>, |
| 29 | - <<"lib/daisy_ui_components/toggle.ex">>, |
| 30 | - <<"lib/daisy_ui_components/join.ex">>, |
| 31 | - <<"lib/daisy_ui_components/steps.ex">>, |
| 32 | - <<"lib/daisy_ui_components/input.ex">>, |
| 33 | - <<"lib/daisy_ui_components/loading.ex">>, |
| 34 | - <<"lib/daisy_ui_components/form.ex">>, |
| 35 | - <<"lib/daisy_ui_components/badge.ex">>, |
| 36 | - <<"lib/daisy_ui_components/card.ex">>,<<"lib/daisy_ui_components/swap.ex">>, |
| 37 50 | <<"lib/daisy_ui_components/back.ex">>, |
| 38 | - <<"lib/daisy_ui_components/utils.ex">>, |
| 39 | - <<"lib/daisy_ui_components/table.ex">>, |
| 40 | - <<"lib/daisy_ui_components/footer.ex">>, |
| 41 | - <<"lib/daisy_ui_components/pagination.ex">>, |
| 42 | - <<"lib/daisy_ui_components/radio.ex">>, |
| 43 | - <<"lib/daisy_ui_components/label.ex">>, |
| 44 | - <<"lib/daisy_ui_components/toast.ex">>, |
| 45 | - <<"lib/daisy_ui_components/accordion.ex">>, |
| 46 | - <<"lib/daisy_ui_components/stat.ex">>,<<"lib/daisy_ui_components/icon.ex">>, |
| 47 | - <<"lib/daisy_ui_components/indicator.ex">>, |
| 48 | - <<"lib/daisy_ui_components/navbar.ex">>, |
| 49 | - <<"lib/daisy_ui_components/dropdown.ex">>, |
| 50 | - <<"lib/daisy_ui_components/header.ex">>, |
| 51 | - <<"lib/daisy_ui_components/flash.ex">>, |
| 52 | - <<"lib/daisy_ui_components/collapse.ex">>, |
| 53 | - <<"lib/daisy_ui_components/sidebar.ex">>,<<".formatter.exs">>,<<"mix.exs">>, |
| 51 | + <<"lib/daisy_ui_components/fieldset.ex">>, |
| 52 | + <<"lib/daisy_ui_components/badge.ex">>, |
| 53 | + <<"lib/daisy_ui_components/js_helpers.ex">>, |
| 54 | + <<"lib/daisy_ui_components/join.ex">>, |
| 55 | + <<"lib/daisy_ui_components/range.ex">>,<<".formatter.exs">>,<<"mix.exs">>, |
| 54 56 | <<"README.md">>,<<"LICENSE">>]}. |
| 55 57 | {<<"requirements">>, |
| 56 58 | [[{<<"name">>,<<"phoenix_live_view">>}, |
| 57 59 | {<<"app">>,<<"phoenix_live_view">>}, |
| 58 60 | {<<"optional">>,false}, |
| 59 | - {<<"requirement">>,<<"~> 1.1">>}, |
| 61 | + {<<"requirement">>,<<"~> 1.2">>}, |
| 60 62 | {<<"repository">>,<<"hexpm">>}]]}. |
| 61 63 | {<<"build_tools">>,[<<"mix">>]}. |
| @@ -32,7 +32,10 @@ defmodule DaisyUIComponents.Button do | |
| 32 32 | attr :wide, :boolean, default: false |
| 33 33 | attr :block, :boolean, default: false |
| 34 34 | attr :shape, :string, values: ~w(circle square) |
| 35 | - attr :rest, :global, include: ~w(form href navigate patch method download name value disabled) |
| 35 | + |
| 36 | + attr :rest, :global, |
| 37 | + include: ~w(type form href navigate patch method download name value disabled) |
| 38 | + |
| 36 39 | slot :inner_block, required: true |
| 37 40 | |
| 38 41 | def button(%{rest: rest} = assigns) do |
| @@ -290,7 +290,16 @@ defmodule DaisyUIComponents.Form do | |
| 290 290 | <.fieldset_label for={@id}> |
| 291 291 | {@label} |
| 292 292 | </.fieldset_label> |
| 293 | - <.input id={@id} type="textarea" name={@name} color={@color} class={[@class, "w-full"]} prompt={@prompt} value={@value} {@rest} /> |
| 293 | + <.input |
| 294 | + id={@id} |
| 295 | + type="textarea" |
| 296 | + name={@name} |
| 297 | + color={@color} |
| 298 | + class={[@class, "w-full"]} |
| 299 | + prompt={@prompt} |
| 300 | + value={@value} |
| 301 | + {@rest} |
| 302 | + /> |
| 294 303 | <.error :for={msg <- @errors}>{msg}</.error> |
| 295 304 | </.fieldset> |
| 296 305 | """ |
| @@ -217,7 +217,15 @@ defmodule DaisyUIComponents.Input do | |
| 217 217 | |> assign_new(:value, fn -> nil end) |
| 218 218 | |
| 219 219 | ~H""" |
| 220 | - <.textarea id={@id} name={@name} class={@class} color={@color} ghost={@ghost} {@rest}>{Phoenix.HTML.Form.normalize_value(@type, @value)}</.textarea> |
| 220 | + <.textarea |
| 221 | + id={@id} |
| 222 | + name={@name} |
| 223 | + class={@class} |
| 224 | + color={@color} |
| 225 | + ghost={@ghost} |
| 226 | + {@rest} |
| 227 | + phx-no-format |
| 228 | + >{Phoenix.HTML.Form.normalize_value(@type, @value)}</.textarea> |
| 221 229 | """ |
| 222 230 | end |
Loading more files…