Skip to content

Commit

Permalink
feat!: v2: move to v2 module
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Sep 18, 2024
1 parent 0fdf5f5 commit a2602f8
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion filepicker/filepicker.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"sync"

"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
"github.com/dustin/go-humanize"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/charmbracelet/bubbles
module github.com/charmbracelet/bubbles/v2

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package help
import (
"strings"

"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
)
Expand Down
2 changes: 1 addition & 1 deletion list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ very flexible and powerful.
If you just want to alter the default style you could do something like:

```go
import "github.com/charmbracelet/bubbles/list"
import "github.com/charmbracelet/bubbles/v2/list"

// Create a new default delegate
d := list.NewDefaultDelegate()
Expand Down
2 changes: 1 addition & 1 deletion list/defaultitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"strings"

"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/x/ansi"
Expand Down
2 changes: 1 addition & 1 deletion list/keys.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package list

import "github.com/charmbracelet/bubbles/key"
import "github.com/charmbracelet/bubbles/v2/key"

// KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which
// is used to render the menu.
Expand Down
10 changes: 5 additions & 5 deletions list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
"github.com/charmbracelet/x/ansi"
"github.com/sahilm/fuzzy"

"github.com/charmbracelet/bubbles/help"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/paginator"
"github.com/charmbracelet/bubbles/spinner"
"github.com/charmbracelet/bubbles/textinput"
"github.com/charmbracelet/bubbles/v2/help"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/paginator"
"github.com/charmbracelet/bubbles/v2/spinner"
"github.com/charmbracelet/bubbles/v2/textinput"
)

// Item is an item that appears in the list.
Expand Down
2 changes: 1 addition & 1 deletion paginator/paginator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package paginator
import (
"fmt"

"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion spinner/spinner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package spinner_test
import (
"testing"

"github.com/charmbracelet/bubbles/spinner"
"github.com/charmbracelet/bubbles/v2/spinner"
)

func TestSpinnerNew(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package table
import (
"strings"

"github.com/charmbracelet/bubbles/help"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/viewport"
"github.com/charmbracelet/bubbles/v2/help"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/viewport"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
"github.com/mattn/go-runewidth"
Expand Down
10 changes: 5 additions & 5 deletions textarea/textarea.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"unicode"

"github.com/atotto/clipboard"
"github.com/charmbracelet/bubbles/cursor"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/runeutil"
"github.com/charmbracelet/bubbles/textarea/memoization"
"github.com/charmbracelet/bubbles/viewport"
"github.com/charmbracelet/bubbles/v2/cursor"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/runeutil"
"github.com/charmbracelet/bubbles/v2/textarea/memoization"
"github.com/charmbracelet/bubbles/v2/viewport"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/x/ansi"
Expand Down
6 changes: 3 additions & 3 deletions textinput/textinput.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"unicode"

"github.com/atotto/clipboard"
"github.com/charmbracelet/bubbles/cursor"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/runeutil"
"github.com/charmbracelet/bubbles/v2/cursor"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/runeutil"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
rw "github.com/mattn/go-runewidth"
Expand Down
2 changes: 1 addition & 1 deletion viewport/keymap.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package viewport

import "github.com/charmbracelet/bubbles/key"
import "github.com/charmbracelet/bubbles/v2/key"

const spacebar = " "

Expand Down
2 changes: 1 addition & 1 deletion viewport/viewport.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math"
"strings"

"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
)
Expand Down

0 comments on commit a2602f8

Please sign in to comment.