Current section

48 Versions

Jump to

Compare versions

7 files changed
+22 additions
-3 deletions
  @@ -1,5 +1,9 @@
1 1 # Changelog
2 2
3 + ## 0.5.4
4 +
5 + Fixed a bug where the required marker would always be displayed, regardless of the field's required state.
6 +
3 7 ## 0.5.3
4 8
5 9 Downgraded `phoenix_live_view` version to `0.19`; both `0.19` and `0.20` should be compatible.
  @@ -1,7 +1,7 @@
1 1 {<<"links">>,
2 2 [{<<"GitHub">>,<<"https://github.com/ArthurClemens/primer_live">>}]}.
3 3 {<<"name">>,<<"primer_live">>}.
4 - {<<"version">>,<<"0.5.3">>}.
4 + {<<"version">>,<<"0.5.4">>}.
5 5 {<<"description">>,
6 6 <<"An implementation of GitHub's Primer Design System for Phoenix LiveView.">>}.
7 7 {<<"app">>,<<"primer_live">>}.
unknownlib/component.ex
File is too large to be displayed (100 KB limit).
  @@ -697,6 +697,7 @@ defmodule PrimerLive.Helpers.AttributeHelpers do
697 697 %{
698 698 message: message,
699 699 valid?: valid?,
700 + required?: required?,
700 701 ignore_errors?: ignore_errors?,
701 702 caption: caption
702 703 } = field_state
  @@ -736,6 +737,7 @@ defmodule PrimerLive.Helpers.AttributeHelpers do
736 737 %{
737 738 message: message,
738 739 valid?: valid?,
740 + required?: required?,
739 741 ignore_errors?: ignore_errors?,
740 742 show_message?: show_message?,
741 743 validation_message_id: validation_message_id,
  @@ -187,6 +187,19 @@ defmodule PrimerLive.Helpers.DeclarationHelpers do
187 187 end
188 188 end
189 189
190 + defmacro is_aligned_end(the_element) do
191 + quote do
192 + attr(:is_aligned_end, :boolean,
193 + default: false,
194 + doc:
195 + """
196 + Aligns {the_element} to the end (at the right in left-to-right languages).
197 + """
198 + |> String.replace("{the_element}", unquote(the_element))
199 + )
200 + end
201 + end
202 +
190 203 # link attr
191 204
192 205 defmacro href do
Loading more files…