-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
65 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
.PHONY: benchmark cover lint test | ||
|
||
benchmark: | ||
go test -bench=. | ||
|
||
cover: | ||
go tool cover -html=cover.out | ||
|
||
lint: | ||
golangci-lint run | ||
|
||
.PHONY: test | ||
test: | ||
go test -coverprofile=cover.out -shuffle on ./... | ||
go test -shuffle on ./... | ||
cd v2 && go test -shuffle on ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
package heroicons | ||
|
||
import ( | ||
g "github.com/maragudk/gomponents" | ||
. "github.com/maragudk/gomponents" | ||
. "github.com/maragudk/gomponents/html" | ||
"github.com/maragudk/gomponents/svg" | ||
) | ||
|
||
func Outline(children ...g.Node) g.Node { | ||
func Outline(children ...Node) Node { | ||
return SVG( | ||
svg.ViewBox("0 0 24 24"), | ||
svg.Fill("none"), | ||
svg.Stroke("currentColor"), | ||
Attr("viewBox", "0 0 24 24"), | ||
Attr("fill", "none"), | ||
Attr("stroke", "currentColor"), | ||
Aria("hidden", "true"), | ||
g.Group(children), | ||
Group(children), | ||
) | ||
} | ||
|
||
func Solid(children ...g.Node) g.Node { | ||
func Solid(children ...Node) Node { | ||
return SVG( | ||
svg.ViewBox("0 0 20 20"), | ||
svg.Fill("currentColor"), | ||
Attr("viewBox", "0 0 20 20"), | ||
Attr("fill", "currentColor"), | ||
Aria("hidden", "true"), | ||
g.Group(children), | ||
Group(children), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module github.com/maragudk/gomponents-heroicons/v2 | ||
|
||
go 1.15 | ||
go 1.18 | ||
|
||
require github.com/maragudk/gomponents v0.20.1 | ||
require github.com/maragudk/gomponents v0.22.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github.com/maragudk/gomponents v0.20.1 h1:TeJY1fXEcfUvzmvjeUgxol42dvkYMggK1c0V67crWWs= | ||
github.com/maragudk/gomponents v0.20.1/go.mod h1:nHkNnZL6ODgMBeJhrZjkMHVvNdoYsfmpKB2/hjdQ0Hg= | ||
github.com/maragudk/gomponents v0.22.0 h1:0gNrSDC1nM6w0Vxj5wgGXqV8frDH9UVPE+dEyy4ApPQ= | ||
github.com/maragudk/gomponents v0.22.0/go.mod h1:nHkNnZL6ODgMBeJhrZjkMHVvNdoYsfmpKB2/hjdQ0Hg= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,38 @@ | ||
package heroicons | ||
|
||
import ( | ||
g "github.com/maragudk/gomponents" | ||
"github.com/maragudk/gomponents/html" | ||
. "github.com/maragudk/gomponents/svg" | ||
. "github.com/maragudk/gomponents" | ||
. "github.com/maragudk/gomponents/html" | ||
) | ||
|
||
func Outline(children ...g.Node) g.Node { | ||
func Outline(children ...Node) Node { | ||
// <svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"> | ||
return html.SVG( | ||
Fill("none"), | ||
ViewBox("0 0 24 24"), | ||
g.Attr("stroke-width", "1.5"), | ||
Stroke("currentColor"), | ||
html.Aria("hidden", "true"), | ||
g.Group(children), | ||
return SVG( | ||
Attr("fill", "none"), | ||
Attr("viewBox", "0 0 24 24"), | ||
Attr("stroke-width", "1.5"), | ||
Attr("stroke", "currentColor"), | ||
Aria("hidden", "true"), | ||
Group(children), | ||
) | ||
} | ||
|
||
func Solid(children ...g.Node) g.Node { | ||
func Solid(children ...Node) Node { | ||
// <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"> | ||
return html.SVG( | ||
ViewBox("0 0 24 24"), | ||
Fill("currentColor"), | ||
html.Aria("hidden", "true"), | ||
g.Group(children), | ||
return SVG( | ||
Attr("viewBox", "0 0 24 24"), | ||
Attr("fill", "currentColor"), | ||
Aria("hidden", "true"), | ||
Group(children), | ||
) | ||
} | ||
|
||
func Mini(children ...g.Node) g.Node { | ||
func Mini(children ...Node) Node { | ||
// <svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> | ||
return html.SVG( | ||
ViewBox("0 0 20 20"), | ||
Fill("currentColor"), | ||
html.Aria("hidden", "true"), | ||
g.Group(children), | ||
return SVG( | ||
Attr("viewBox", "0 0 20 20"), | ||
Attr("fill", "currentColor"), | ||
Aria("hidden", "true"), | ||
Group(children), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters