feat!: v2: move to v2 module

This commit is contained in:
Ayman Bagabas
2024-09-18 14:12:55 -04:00
parent 0fdf5f5be5
commit a2602f8509
14 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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.
+5 -5
View File
@@ -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.