Skip to content

Commit

Permalink
Merge pull request #16 from willoma/14-upgrade-to-maragudevgomponents
Browse files Browse the repository at this point in the history
Upgrade to maragu.dev/gomponents v1.0.0
  • Loading branch information
willoma authored Oct 11, 2024
2 parents 938a3b7 + 4eac11f commit 6f306d4
Show file tree
Hide file tree
Showing 33 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion around_non_icons.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"io"

"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

type spanAroundNonIconsIfHasIcons struct {
Expand Down
2 changes: 1 addition & 1 deletion columns.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bulma

import (
"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

// Columns creates a columns container.
Expand Down
4 changes: 2 additions & 2 deletions components_breadcrumb.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package bulma

import (
"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// Breadcrumb creates a breadcrumb.
Expand Down
2 changes: 1 addition & 1 deletion components_card.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

// Card creates a card.
Expand Down
2 changes: 1 addition & 1 deletion components_dropdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

// Dropdown creates a dropdown.
Expand Down
2 changes: 1 addition & 1 deletion components_menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

// Menu creates a menu.
Expand Down
2 changes: 1 addition & 1 deletion components_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

type MessageTitle string
Expand Down
2 changes: 1 addition & 1 deletion components_modal.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bulma

import (
"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

func modalBackground() e.Element {
Expand Down
2 changes: 1 addition & 1 deletion components_navbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents/html"
)

// Navbar creates a navbar.
Expand Down
4 changes: 2 additions & 2 deletions components_pagination.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package bulma

import (
"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// Pagination creates a pagination element.
Expand Down
4 changes: 2 additions & 2 deletions components_panel.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package bulma

import (
"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// Panel creates a panel element.
Expand Down
2 changes: 1 addition & 1 deletion components_tabs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents/html"
)

// Tabs create a tabs container.
Expand Down
4 changes: 2 additions & 2 deletions elements_button.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package bulma

import (
"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

func newButton(fn func(...gomponents.Node) gomponents.Node, children ...any) e.Element {
Expand Down
4 changes: 2 additions & 2 deletions elements_icon.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// Icon creates an icon span.
Expand Down
2 changes: 1 addition & 1 deletion elements_image.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bulma

import (
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents/html"
)

// ImgAlt is a modifier that, when applied to ImageImg, adds an alt attribute.
Expand Down
2 changes: 1 addition & 1 deletion elements_progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"strconv"

"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents/html"
)

// Progress creates a progress bar.
Expand Down
4 changes: 2 additions & 2 deletions elements_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// TCell creates a table cell.
Expand Down
2 changes: 1 addition & 1 deletion elements_title.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bulma

import (
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents/html"
)

// TitleLevel is used for thtle level, it corresponds to h1 to h6
Expand Down
2 changes: 1 addition & 1 deletion fa/css.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"embed"
"net/http"

"github.com/maragudk/gomponents/html"
"maragu.dev/gomponents/html"

b "github.com/willoma/bulma-gomponents"
)
Expand Down
4 changes: 2 additions & 2 deletions form_checkbox.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package bulma

import (
"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// Checkboxes creates a list of checkbox elements.
Expand Down
2 changes: 1 addition & 1 deletion form_file.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bulma

import (
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents/html"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion form_input.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bulma

import (
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents/html"
)

func newInput(inputType string, children []any) e.Element {
Expand Down
4 changes: 2 additions & 2 deletions form_radio.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package bulma

import (
"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// Radios creates a list of radio elements.
Expand Down
4 changes: 2 additions & 2 deletions form_select.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package bulma
import (
"strconv"

"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// Select creates a dropdown select element. It should contain one or multiple
Expand Down
4 changes: 2 additions & 2 deletions form_textarea.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package bulma
import (
"strconv"

"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// Textarea creates a textarea element.
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/willoma/bulma-gomponents
go 1.22.0

require (
github.com/maragudk/gomponents v0.22.0
github.com/willoma/gomplements v0.7.0
github.com/willoma/gomplements v0.8.0
maragu.dev/gomponents v1.0.0
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/maragudk/gomponents v0.22.0 h1:0gNrSDC1nM6w0Vxj5wgGXqV8frDH9UVPE+dEyy4ApPQ=
github.com/maragudk/gomponents v0.22.0/go.mod h1:nHkNnZL6ODgMBeJhrZjkMHVvNdoYsfmpKB2/hjdQ0Hg=
github.com/willoma/gomplements v0.7.0 h1:0QHjfQRlANeXfxZeWEavJ9Ez8Gffk00Ouf+JIb7Q7+0=
github.com/willoma/gomplements v0.7.0/go.mod h1:G/9prZq6jA7EZwIu0AF27HtULgAbUbOVp9oRhsunpkg=
github.com/willoma/gomplements v0.8.0 h1:WIf8K18LHDiGbhYFg2OL8d8NrNnLgtym5MLF2IkMSCw=
github.com/willoma/gomplements v0.8.0/go.mod h1:oCdic+eK6q5s8EfGrqnimTYB2qOWrOt8PaI2twu4tFM=
maragu.dev/gomponents v1.0.0 h1:eeLScjq4PqP1l+r5z/GC+xXZhLHXa6RWUWGW7gSfLh4=
maragu.dev/gomponents v1.0.0/go.mod h1:oEDahza2gZoXDoDHhw8jBNgH+3UR5ni7Ur648HORydM=
2 changes: 1 addition & 1 deletion grid.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bulma

import (
"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

// Grid creates a smart grid.
Expand Down
6 changes: 3 additions & 3 deletions html.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package bulma

import (
"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/components"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/components"
"maragu.dev/gomponents/html"
)

const cdnPath = "https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css"
Expand Down
2 changes: 1 addition & 1 deletion layout_hero.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

// Hero creates a hero element.
Expand Down
2 changes: 1 addition & 1 deletion layout_level.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

// Level creates a level element.
Expand Down
2 changes: 1 addition & 1 deletion layout_mediaobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bulma
import (
"io"

"github.com/maragudk/gomponents"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
)

// Media creates a media element.
Expand Down
4 changes: 2 additions & 2 deletions standard_helpers.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package bulma

import (
"github.com/maragudk/gomponents"
"github.com/maragudk/gomponents/html"
e "github.com/willoma/gomplements"
"maragu.dev/gomponents"
"maragu.dev/gomponents/html"
)

// Abbr creates an abbr element, with the provided title.
Expand Down

0 comments on commit 6f306d4

Please sign in to comment.