Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to HeroIcons v2.1.5 #39

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,66 @@
# Changelog

## 0.5.6

### Enhancements

- Update heroicons to 2.1.5

## 0.5.5

### Enhancements
- Update heroicons to 2.1.1
- Add support for `micro` icons

- Update heroicons to 2.1.1
- Add support for `micro` icons

## 0.5.4

**RETIRED** due to https://github.com/mveytsman/heroicons_elixir/issues/35

## 0.5.3

### Enhancements
- Added support for LiveView 0.19

- Added support for LiveView 0.19

## 0.5.2

### Enhancements
- Update heroicons to 2.0.13

- Update heroicons to 2.0.13

## 0.5.1

### Enhancements

- Add a `:outline` attribute to specify outline explicitly
- Allow `fill`, `stroke`, and `stroke-width` to be user specified.

## 0.5.0

### Backwards incompatible changes

- Render icons outside HEEx function components has been dropped. Use the function component syntax instead: `<Heroicons.cake />`
- The separate modules `Heroicons.Outline|Solid|Mini` have been dropped in favor of a single `Heroicons` module.
By default, this module renders the outline style, but a `solid` or `mini` attribute can be provided to
select styling.

### Enhancements

- Provide unified interface with `solid`, and `mini` attributes for styling.
- Optimize svg generation for LiveView diffing.
- Update to Heroicons 2.11

## 0.4.1

### Enhancements

- Further optimize the JIT Phoenix Component compiler

## 0.4.0

### Enhancements

- Update to Heroicons 2 (https://github.com/mveytsman/heroicons_elixir/pull/12)
- Add update task and generate optimized version of icons (https://github.com/mveytsman/heroicons_elixir/pull/13)
- Optimize compile times by no longer reading every icon during compliation.
Expand All @@ -48,10 +69,11 @@
## 0.3.2 (2022-02-21)

### Enhancements
- Update heroicons to 1.0.5 (https://github.com/mveytsman/heroicons_elixir/pull/8)

- Update heroicons to 1.0.5 (https://github.com/mveytsman/heroicons_elixir/pull/8)

## 0.3.1 (2022-02-15)

### Bug fixes
- No longer issue warnings for using the components as functions (https://github.com/mveytsman/heroicons_elixir/issues/7)

- No longer issue warnings for using the components as functions (https://github.com/mveytsman/heroicons_elixir/issues/7)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This library provides optimized svgs for each Heroicon packaged as a Phoenix Com

Heroicons are designed by [Steve Schoger](https://twitter.com/steveschoger)

Current Heroicons Version: **2.1.1**.
Current Heroicons Version: **2.1.5**.

## Installation

Expand All @@ -26,7 +26,7 @@ After that, run `mix deps.get`.

The components are provided by the `Heroicons` module. Each icon is a Phoenix Component you can use in your HEEx templates.

By default, the icon components will use the outline style, but the `solid`,
By default, the icon components will use the outline style, but the `solid`,
`mini` or `micro` attributes may be passed to select styling, for example:

```eex
Expand All @@ -38,7 +38,7 @@ By default, the icon components will use the outline style, but the `solid`,

You can also pass arbitrary HTML attributes to the components, such as classes:

```eex
```eex
<Heroicons.cake class="w-2 h-2" />
<Heroicons.cake solid class="w-2 h-2 text-gray-500" />
```
Expand Down
4 changes: 2 additions & 2 deletions assets/heroicons.exs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ defmodule Heroicons do
"""
end

<%= for {func, [outline, solid, mini, micro]} = icon when not is_nil(micro) <- @icons do %>
<%= for {func, [outline, solid, mini, micro]} = _icon when not is_nil(micro) <- @icons do %>
Copy link
Contributor Author

@goncalotomas goncalotomas Aug 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both changes in this file fix a compile warning

@doc """
Renders the `<%= func %>` icon.

Expand Down Expand Up @@ -143,7 +143,7 @@ defmodule Heroicons do
end
<% end %>

<%= for {func, [outline, solid, mini]} = icon <- @icons do %>
<%= for {func, [outline, solid, mini]} = _icon <- @icons do %>
@doc """
Renders the `<%= func %>` icon.

Expand Down
3 changes: 3 additions & 0 deletions assets/icons/micro/arrow-turn-down-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/arrow-turn-down-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/arrow-turn-left-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/arrow-turn-left-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/arrow-turn-right-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/arrow-turn-right-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/arrow-turn-up-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/arrow-turn-up-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/icons/micro/calendar-date-range.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/icons/micro/divide.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/document-currency-bangladeshi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/icons/micro/document-currency-dollar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/document-currency-euro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/document-currency-pound.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/document-currency-rupee.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/document-currency-yen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/equals.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/h1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/h2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/h3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/italic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/link-slash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/numbered-list.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/percent-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/micro/slash.svg
3 changes: 3 additions & 0 deletions assets/icons/micro/strikethrough.svg
3 changes: 3 additions & 0 deletions assets/icons/micro/underline.svg
3 changes: 3 additions & 0 deletions assets/icons/mini/arrow-turn-down-left.svg
3 changes: 3 additions & 0 deletions assets/icons/mini/arrow-turn-down-right.svg
3 changes: 3 additions & 0 deletions assets/icons/mini/arrow-turn-left-down.svg
Loading
Loading