Current section
19 Versions
Jump to
Current section
19 Versions
Compare versions
6
files changed
+40
additions
-35
deletions
| @@ -1,5 +1,12 @@ | |
| 1 1 | # Changelog |
| 2 2 | |
| 3 | + ## 0.5.7 |
| 4 | + |
| 5 | + ### Enhancements |
| 6 | + |
| 7 | + - Update heroicons to 2.2.0 |
| 8 | + - Add support for Phoenix Liveview 1.1 (https://github.com/mveytsman/heroicons_elixir/pull/42) |
| 9 | + |
| 3 10 | ## 0.5.6 |
| 4 11 | |
| 5 12 | ### Enhancements |
| @@ -6,7 +6,7 @@ This library provides optimized svgs for each Heroicon packaged as a Phoenix Com | |
| 6 6 | |
| 7 7 | Heroicons are designed by [Steve Schoger](https://twitter.com/steveschoger) |
| 8 8 | |
| 9 | - Current Heroicons Version: **2.1.5**. |
| 9 | + Current Heroicons Version: **2.2.0**. |
| 10 10 | |
| 11 11 | ## Installation |
| @@ -1,25 +1,25 @@ | |
| 1 | - {<<"app">>,<<"heroicons">>}. |
| 2 | - {<<"build_tools">>,[<<"mix">>]}. |
| 1 | + {<<"links">>, |
| 2 | + [{<<"GitHub">>,<<"https://github.com/mveytsman/heroicons_elixir">>}]}. |
| 3 | + {<<"name">>,<<"heroicons">>}. |
| 4 | + {<<"version">>,<<"0.5.7">>}. |
| 3 5 | {<<"description">>,<<"Phoenix components for Heroicons!">>}. |
| 4 6 | {<<"elixir">>,<<"~> 1.11">>}. |
| 7 | + {<<"app">>,<<"heroicons">>}. |
| 8 | + {<<"licenses">>,[<<"MIT">>]}. |
| 9 | + {<<"requirements">>, |
| 10 | + [[{<<"name">>,<<"phoenix_live_view">>}, |
| 11 | + {<<"app">>,<<"phoenix_live_view">>}, |
| 12 | + {<<"optional">>,false}, |
| 13 | + {<<"requirement">>,<<"~> 1.1">>}, |
| 14 | + {<<"repository">>,<<"hexpm">>}], |
| 15 | + [{<<"name">>,<<"castore">>}, |
| 16 | + {<<"app">>,<<"castore">>}, |
| 17 | + {<<"optional">>,false}, |
| 18 | + {<<"requirement">>,<<">= 0.0.0">>}, |
| 19 | + {<<"repository">>,<<"hexpm">>}]]}. |
| 5 20 | {<<"files">>, |
| 6 21 | [<<"lib">>,<<"lib/heroicons.ex">>,<<"lib/mix">>,<<"lib/mix/tasks">>, |
| 7 22 | <<"lib/mix/tasks/heroicons">>,<<"lib/mix/tasks/heroicons/update.ex">>, |
| 8 23 | <<"lib/mix/tasks/heroicons/build.ex">>,<<"priv">>,<<".formatter.exs">>, |
| 9 24 | <<"mix.exs">>,<<"README.md">>,<<"LICENSE">>,<<"CHANGELOG.md">>]}. |
| 10 | - {<<"licenses">>,[<<"MIT">>]}. |
| 11 | - {<<"links">>, |
| 12 | - [{<<"GitHub">>,<<"https://github.com/mveytsman/heroicons_elixir">>}]}. |
| 13 | - {<<"name">>,<<"heroicons">>}. |
| 14 | - {<<"requirements">>, |
| 15 | - [[{<<"app">>,<<"phoenix_live_view">>}, |
| 16 | - {<<"name">>,<<"phoenix_live_view">>}, |
| 17 | - {<<"optional">>,false}, |
| 18 | - {<<"repository">>,<<"hexpm">>}, |
| 19 | - {<<"requirement">>,<<">= 0.18.2">>}], |
| 20 | - [{<<"app">>,<<"castore">>}, |
| 21 | - {<<"name">>,<<"castore">>}, |
| 22 | - {<<"optional">>,false}, |
| 23 | - {<<"repository">>,<<"hexpm">>}, |
| 24 | - {<<"requirement">>,<<">= 0.0.0">>}]]}. |
| 25 | - {<<"version">>,<<"0.5.6">>}. |
| 25 | + {<<"build_tools">>,[<<"mix">>]}. |
| @@ -1,6 +1,6 @@ | |
| 1 1 | defmodule Heroicons do |
| 2 2 | @moduledoc """ |
| 3 | - Provides precompiled icon compiles from [heroicons.com v2.1.5](heroicons.com). |
| 3 | + Provides precompiled icon compiles from [heroicons.com v2.2.0](https://heroicons.com). |
| 4 4 | |
| 5 5 | Heroicons are designed by [Steve Schoger](https://twitter.com/steveschoger) |
| 6 6 | |
| @@ -56,16 +56,16 @@ defmodule Heroicons do | |
| 56 56 | Map.merge(%{micro: false}, assigns) |
| 57 57 | |> case do |
| 58 58 | %{mini: false, solid: false, micro: false} -> |
| 59 | - ~H"<.svg_outline {@rest}><%= {:safe, @paths[:outline]} %></.svg_outline>" |
| 59 | + ~H"<.svg_outline {@rest}>{{:safe, @paths[:outline]}}</.svg_outline>" |
| 60 60 | |
| 61 61 | %{solid: true, mini: false, micro: false} -> |
| 62 | - ~H"<.svg_solid {@rest}><%= {:safe, @paths[:solid]} %></.svg_solid>" |
| 62 | + ~H"<.svg_solid {@rest}>{{:safe, @paths[:solid]}}</.svg_solid>" |
| 63 63 | |
| 64 64 | %{mini: true, solid: false, micro: false} -> |
| 65 | - ~H"<.svg_mini {@rest}><%= {:safe, @paths[:mini]} %></.svg_mini>" |
| 65 | + ~H"<.svg_mini {@rest}>{{:safe, @paths[:mini]}}</.svg_mini>" |
| 66 66 | |
| 67 67 | %{micro: true, solid: false, mini: false} -> |
| 68 | - ~H"<.svg_micro {@rest}><%= {:safe, @paths[:micro]} %></.svg_micro>" |
| 68 | + ~H"<.svg_micro {@rest}>{{:safe, @paths[:micro]}}</.svg_micro>" |
| 69 69 | |
| 70 70 | %{} -> |
| 71 71 | raise ArgumentError, "expected either mini or solid, but got both." |
| @@ -86,7 +86,7 @@ defmodule Heroicons do | |
| 86 86 | defp svg_outline(assigns) do |
| 87 87 | ~H""" |
| 88 88 | <svg xmlns="http://www.w3.org/2000/svg" {@rest}> |
| 89 | - <%= render_slot(@inner_block) %> |
| 89 | + {render_slot(@inner_block)} |
| 90 90 | </svg> |
| 91 91 | """ |
| 92 92 | end |
| @@ -99,33 +99,31 @@ defmodule Heroicons do | |
| 99 99 | defp svg_solid(assigns) do |
| 100 100 | ~H""" |
| 101 101 | <svg xmlns="http://www.w3.org/2000/svg" {@rest}> |
| 102 | - <%= render_slot(@inner_block) %> |
| 102 | + {render_slot(@inner_block)} |
| 103 103 | </svg> |
| 104 104 | """ |
| 105 105 | end |
| 106 106 | |
| 107 | - attr :rest, :global, |
| 108 | - default: %{"aria-hidden": "true", viewBox: "0 0 20 20", fill: "currentColor"} |
| 107 | + attr :rest, :global, default: %{"aria-hidden": "true", viewBox: "0 0 20 20", fill: "currentColor"} |
| 109 108 | |
| 110 109 | slot :inner_block, required: true |
| 111 110 | |
| 112 111 | defp svg_mini(assigns) do |
| 113 112 | ~H""" |
| 114 113 | <svg xmlns="http://www.w3.org/2000/svg" {@rest}> |
| 115 | - <%= render_slot(@inner_block) %> |
| 114 | + {render_slot(@inner_block)} |
| 116 115 | </svg> |
| 117 116 | """ |
| 118 117 | end |
| 119 118 | |
| 120 | - attr :rest, :global, |
| 121 | - default: %{"aria-hidden": "true", viewBox: "0 0 16 16", fill: "currentColor"} |
| 119 | + attr :rest, :global, default: %{"aria-hidden": "true", viewBox: "0 0 16 16", fill: "currentColor"} |
| 122 120 | |
| 123 121 | slot :inner_block, required: true |
| 124 122 | |
| 125 123 | defp svg_micro(assigns) do |
| 126 124 | ~H""" |
| 127 125 | <svg xmlns="http://www.w3.org/2000/svg" {@rest}> |
| 128 | - <%= render_slot(@inner_block) %> |
| 126 | + {render_slot(@inner_block)} |
| 129 127 | </svg> |
| 130 128 | """ |
| 131 129 | end |
| @@ -3,7 +3,7 @@ defmodule Mix.Tasks.Heroicons.Update do | |
| 3 3 | @moduledoc false |
| 4 4 | @shortdoc false |
| 5 5 | |
| 6 | - @vsn "2.1.5" |
| 6 | + @vsn "2.2.0" |
| 7 7 | @tmp_dir_name "heroicons-elixir" |
| 8 8 | |
| 9 9 | # Updates the icons in the assets/icons directory |
Loading more files…