Current section

41 Versions

Jump to

Compare versions

8 files changed
+111 additions
-17 deletions
  @@ -1,5 +1,9 @@
1 1 [
2 2 plugins: [Phoenix.LiveView.HTMLFormatter],
3 3 import_deps: [:phoenix],
4 - inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}"]
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"]
5 9 ]
  @@ -203,7 +203,7 @@ List of available components.
203 203 | [Menu](https://daisyui.com/components/menu) | ✅ | ✅ |
204 204 | [Navbar](https://daisyui.com/components/navbar) | ✅ | ✅ |
205 205 | [Pagination](https://daisyui.com/components/pagination) | ✅ | ✅ |
206 - | [Steps](https://daisyui.com/components/steps) | ❌ | ❌ |
206 + | [Steps](https://daisyui.com/components/steps) | ✅ | ❌ |
207 207 | [Tabs](https://daisyui.com/components/tab) | ✅ | ❌ |
208 208
209 209 ### Feedback
  @@ -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.4">>}.
4 + {<<"version">>,<<"0.8.5">>}.
5 5 {<<"description">>,<<"DaisyUI component library for LiveView">>}.
6 6 {<<"elixir">>,<<"~> 1.14">>}.
7 7 {<<"app">>,<<"daisy_ui_components">>}.
  @@ -37,6 +37,7 @@
37 37 <<"lib/daisy_ui_components/form.ex">>,
38 38 <<"lib/daisy_ui_components/toggle.ex">>,
39 39 <<"lib/daisy_ui_components/breadcrumbs.ex">>,
40 + <<"lib/daisy_ui_components/steps.ex">>,
40 41 <<"lib/daisy_ui_components/icon.ex">>,
41 42 <<"lib/daisy_ui_components/fieldset.ex">>,
42 43 <<"lib/daisy_ui_components/sidebar.ex">>,
  @@ -18,6 +18,8 @@ defmodule DaisyUIComponents.Button do
18 18 attr :class, :any, default: nil
19 19 attr :color, :string, values: colors() ++ ["neutral"]
20 20 attr :ghost, :boolean, default: false
21 + attr :soft, :boolean, default: false
22 + attr :dash, :boolean, default: false
21 23 attr :link, :boolean, default: false
22 24 attr :outline, :boolean, default: false
23 25 attr :active, :boolean, default: false
  @@ -41,6 +43,8 @@ defmodule DaisyUIComponents.Button do
41 43 "btn",
42 44 btn_color(assigns[:color]),
43 45 maybe_add_class(assigns[:ghost], "btn-ghost"),
46 + maybe_add_class(assigns[:soft], "btn-soft"),
47 + maybe_add_class(assigns[:dash], "btn-dash"),
44 48 maybe_add_class(assigns[:link], "btn-link"),
45 49 maybe_add_class(assigns[:outline], "btn-outline"),
46 50 maybe_add_class(assigns[:active], "btn-active"),
  @@ -182,16 +182,7 @@ defmodule DaisyUIComponents.Form do
182 182 <.fieldset_label for={@id}>
183 183 {@label}
184 184 </.fieldset_label>
185 - <.input
186 - id={@id}
187 - type="textarea"
188 - name={@name}
189 - color={@color}
190 - class={[@class, "w-full"]}
191 - prompt={@prompt}
192 - value={Phoenix.HTML.Form.normalize_value(@type, @value)}
193 - {@rest}
194 - />
185 + <.input id={@id} type="textarea" name={@name} color={@color} class={[@class, "w-full"]} prompt={@prompt} value={@value} {@rest} />
195 186 <.error :for={msg <- @errors}>{msg}</.error>
196 187 </.fieldset>
197 188 """
Loading more files…