Current section

48 Versions

Jump to

Compare versions

11 files changed
+56 additions
-21 deletions
  @@ -1,5 +1,17 @@
1 1 # Changelog
2 2
3 + ## 0.7.0
4 +
5 + Updated dependencies:
6 +
7 + - `phoenix_ecto` to `4.5`
8 + - `phoenix_html` to `4.1`
9 + - Added `phoenix_html_helpers`
10 + - `phoenix_live_view` to `0.20`
11 + - `@primer/css` to `21.2.2`
12 +
13 + Removed support for Ash Framework due to incompatible dependencies.
14 +
3 15 ## 0.6.4
4 16
5 17 Reverted dependency `@primer/css` to `21.0.9` because of an excessively increased file size in later versions.
  @@ -14,17 +26,18 @@ Reverted dependency `@primer/css` to `21.0.9` because of an excessively increase
14 26 ## 0.6.2
15 27
16 28 ### Bug fixes
29 +
17 30 - Pagination: fixes the calculation when a gap between page numbers should be shown.
18 31
19 32 ### Other changes
20 - - Pagination: added `role` and improved ARIA labels.
21 33
34 + - Pagination: added `role` and improved ARIA labels.
22 35
23 36 ## 0.6.1
24 37
25 38 Bug fixes:
26 - - Fixes reading the required state of input fields.
27 39
40 + - Fixes reading the required state of input fields.
28 41
29 42 ## 0.6.0
30 43
  @@ -100,7 +113,6 @@ For all listed deprecations below: existing syntax will keep working, but log wa
100 113 - Form element width variation attrs `is_short` and `is_shorter`. These are no longer supported by Primer System.
101 114 - `form_control` class `body`: this extra div is removed to simplify the styling of validation states.
102 115
103 -
104 116 ## 0.4.0
105 117
106 118 ### Improvements
  @@ -113,6 +125,7 @@ For all listed deprecations below: existing syntax will keep working, but log wa
113 125 - Updated `@primer/css` to `21.0.7`.
114 126
115 127 ### Breaking changes
128 +
116 129 - Removed functions related to using session for theme state - see `PrimerLive.Theme` for alternatives. Removed:
117 130 - `ThemeSessionController`
118 131 - `ThemeEvent`
  @@ -136,7 +149,8 @@ For all listed deprecations below: existing syntax will keep working, but log wa
136 149 Replaced underscores in HTML element attributes with dashes because Phoenix LiveView 0.19 no longer does automatic substitution.
137 150
138 151 Updated components:
139 - - `select`: attr `prompt` is ignored when `is_multiple` is also used. This prevents `Phoenix.HTML.Form.multiple_select/4` from raising an error.
152 +
153 + - `select`: attr `prompt` is ignored when `is_multiple` is also used. This prevents `Phoenix.HTML.Form.multiple_select` from raising an error.
140 154
141 155 ## 0.3.0
142 156
  @@ -157,9 +171,9 @@ Fixes a bug introduced in `0.2.6` where single select `action_list_item`s did no
157 171 ## 0.2.5
158 172
159 173 Updated components:
160 - - `action_menu` and `select_menu`:
161 - - Added `prompt` slot attr `options` to pass Prompt options. This enables (for example) to postpone submitting a form in the menu by calling `submit` event in the Prompt functions `willHide` or `didHide`.
162 174
175 + - `action_menu` and `select_menu`:
176 + - Added `prompt` slot attr `options` to pass Prompt options. This enables (for example) to postpone submitting a form in the menu by calling `submit` event in the Prompt functions `willHide` or `didHide`.
163 177
164 178 ## 0.2.4
165 179
  @@ -173,6 +187,7 @@ Updated components:
173 187 - Use checkboxes and radio buttons in action lists.
174 188
175 189 Updated component:
190 +
176 191 - `checkbox`:
177 192 - Added attr `is_multiple`: When creating a list of checkboxes. Appends `[]` to the input name so that a list of values is passed to the form events.
178 193 - Added attr `is_omit_label`: Omits any label.
  @@ -180,6 +195,7 @@ Updated component:
180 195 ## 0.2.2
181 196
182 197 Updated component:
198 +
183 199 - `text_input`:
184 200 - Moved attr `is_trailing_action_divider` to slot `trailing_action` as `is_divider`
185 201 - Added attr `is_visible_with_value` to slot `trailing_action` to only show the trailing action when the input has a value. Use this cor example to show a clear button only when the input has a value to clear.
  @@ -191,6 +207,7 @@ Updated component:
191 207 The rework includes styles from [Primer ViewComponents](https://primer.style/view-components/). The form styles from this flavor of Primer is more mature than the generally used Primer CSS.
192 208
193 209 Updated components:
210 +
194 211 - `text_input`:
195 212 - Added attr `is_monospace`
196 213 - Added slots `leading_visual` and `trailing_action`
  @@ -218,9 +235,11 @@ Updated components:
218 235 - Improved CSS for small screens
219 236
220 237 Added component:
238 +
221 239 - `input_validation_message` - can be used as standalone message component for inputs where the position of the validation feedback is not so obvious, for example lists of checkboxes or radio buttons
222 240
223 241 Additional:
242 +
224 243 - Added styling for input elements inside a disabled fieldset
225 244
226 245 ### Integration of npm dependencies
  @@ -244,6 +263,7 @@ Removed Octicon builder template files from distribution.
244 263 ## 0.1.13
245 264
246 265 Added:
266 +
247 267 - `theme_menu_options` to create a theme menu
248 268 - `Theme.html_attributes` to set theme attributes on elements
249 269 - Theme functions for persistent theme data in the session
  @@ -255,51 +275,61 @@ Fixes an issue where validation messages did not show.
255 275 ## 0.1.11
256 276
257 277 Added:
278 +
258 279 - `theme`
259 280
260 281 ## 0.1.10
261 282
262 283 Updated:
284 +
263 285 - Prevent attribute open on select menu
264 286
265 287 ## 0.1.9
266 288
267 289 Added:
290 +
268 291 - `styled_html`
269 292
270 293 ## 0.1.8
271 294
272 295 Updated:
296 +
273 297 - Removed requirement for Elixir version
274 298
275 299 ## 0.1.7
276 300
277 301 Updated:
302 +
278 303 - Added `is_small` for `tabnav` items
279 304
280 305 ## 0.1.6
281 306
282 307 Updated:
308 +
283 309 - `oticon` icons
284 310
285 311 ## 0.1.5
286 312
287 313 Added:
314 +
288 315 - `drawer`
289 316
290 317 ## 0.1.4
291 318
292 319 Bug fix:
320 +
293 321 - Improve `action_menu` on mobile
294 322
295 323 ## 0.1.3
296 324
297 325 Added:
326 +
298 327 - `action_menu`
299 328
300 329 ## 0.1.2
301 330
302 331 Bug fix:
332 +
303 333 - `action_link_item`: pass class to `link` slot.
304 334
305 335 ## 0.1.1
  @@ -1,7 +1,7 @@
1 1 {<<"links">>,
2 2 [{<<"GitHub">>,<<"https://github.com/ArthurClemens/primer_live">>}]}.
3 3 {<<"name">>,<<"primer_live">>}.
4 - {<<"version">>,<<"0.6.4">>}.
4 + {<<"version">>,<<"0.7.0">>}.
5 5 {<<"description">>,
6 6 <<"An implementation of GitHub's Primer Design System for Phoenix LiveView.">>}.
7 7 {<<"app">>,<<"primer_live">>}.
  @@ -44,11 +44,16 @@
44 44 [{<<"name">>,<<"phoenix_html">>},
45 45 {<<"app">>,<<"phoenix_html">>},
46 46 {<<"optional">>,false},
47 - {<<"requirement">>,<<"~> 3.3">>},
47 + {<<"requirement">>,<<"~> 4.1">>},
48 + {<<"repository">>,<<"hexpm">>}],
49 + [{<<"name">>,<<"phoenix_html_helpers">>},
50 + {<<"app">>,<<"phoenix_html_helpers">>},
51 + {<<"optional">>,false},
52 + {<<"requirement">>,<<"~> 1.0">>},
48 53 {<<"repository">>,<<"hexpm">>}],
49 54 [{<<"name">>,<<"phoenix_live_view">>},
50 55 {<<"app">>,<<"phoenix_live_view">>},
51 56 {<<"optional">>,false},
52 - {<<"requirement">>,<<"~> 0.19">>},
57 + {<<"requirement">>,<<"~> 0.20">>},
53 58 {<<"repository">>,<<"hexpm">>}]]}.
54 59 {<<"build_tools">>,[<<"mix">>]}.
unknownlib/component.ex
File is too large to be displayed (100 KB limit).
  @@ -672,8 +672,8 @@ defmodule PrimerLive.Helpers.AttributeHelpers do
672 672
673 673 derived_label =
674 674 case input_type do
675 - :checkbox -> Phoenix.HTML.Form.humanize(value_for_derived_label || field)
676 - :radio_button -> Phoenix.HTML.Form.humanize(value_for_derived_label)
675 + :checkbox -> Phoenix.Naming.humanize(value_for_derived_label || field)
676 + :radio_button -> Phoenix.Naming.humanize(value_for_derived_label)
677 677 _ -> nil
678 678 end
  @@ -415,7 +415,7 @@ defmodule PrimerLive.Helpers.DeclarationHelpers do
415 415 attr(:hidden_input, :string,
416 416 default: "true",
417 417 doc: """
418 - Controls if the component will generate a hidden input to submit the unchecked checkbox value or not. Defaults to "true". Uses `Phoenix.HTML.Form.hidden_input/3`.
418 + Controls if the component will generate a hidden input to submit the unchecked checkbox value or not. Defaults to "true".
419 419 """
420 420 )
421 421 end
Loading more files…