diff --git a/README.md b/README.md index 867780d..00897e2 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ and style it with some classes ``` -Note that if you are not using HEEx/LiveView, there are (deprecated) function versions of each component: +There are also function versions of each component: ```eex <%= Heroicons.Solid.cake() %> diff --git a/lib/heroicons.ex b/lib/heroicons.ex index 0c7f159..6e3c232 100644 --- a/lib/heroicons.ex +++ b/lib/heroicons.ex @@ -8,7 +8,7 @@ defmodule Heroicons do - Functions are also provided but deprecated + Can also be used as a function <%= Heroicons.Outline.adjustments() %> diff --git a/lib/heroicons/generator.ex b/lib/heroicons/generator.ex index b73b537..ca18883 100644 --- a/lib/heroicons/generator.ex +++ b/lib/heroicons/generator.ex @@ -32,7 +32,7 @@ defmodule Heroicons.Generator do <.#{name} class="h-6 w-6 text-gray-500" /> - Can also be used as a function (deprecated) + or as a function <%= #{name}() %> @@ -60,11 +60,6 @@ defmodule Heroicons.Generator do end def unquote(name)(opts) when is_list(opts) do - IO.warn( - "<%= #{unquote(name)}(class: \"...\" %> is deprecated, " <> - "please use <.#{unquote(name)} class=\"...\" /> inside HEEx templates instead" - ) - attrs = for {k, v} <- opts do safe_k = diff --git a/test/heroicons_test.exs b/test/heroicons_test.exs index 04d4e51..fba1aa7 100644 --- a/test/heroicons_test.exs +++ b/test/heroicons_test.exs @@ -66,7 +66,7 @@ defmodule HeroiconsTest do <.academic_cap class="h-6 w-6 text-gray-500" /> - Can also be used as a function (deprecated) + or as a function <%= academic_cap() %>