CamiloGarciaLaRotta / kboard

Terminal game to practice keyboard typing
GNU General Public License v3.0
187 stars 6 forks source link

fix: bump github.com/charmbracelet/bubbles from 0.10.0 to 0.14.0 #47

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps github.com/charmbracelet/bubbles from 0.10.0 to 0.14.0.

Release notes

Sourced from github.com/charmbracelet/bubbles's releases.

v0.14.0

Table Bubble

This feature release of Bubbles includes a brand new table bubble that you can use to show and select tabular data! Huge thanks to @​wesleimp for contributing this change ❤️.

See the example code for an example of how to use the table in your Bubble Tea applications.

Getting Started

Create a new table:

t := table.New(
    table.WithColumns(columns),
    table.WithRows(rows),
    table.WithFocused(true),
    table.WithHeight(7),
)

Alternatively,

t := table.New(table.WithColumns(columns))
t.SetRows(rows)
t.Focus()
t.SetHeight(7)

Style the table how you want:

s := table.DefaultStyles()
s.Header = s.Header.
    BorderStyle(lipgloss.NormalBorder()).
    BorderForeground(lipgloss.Color("240")).
    BorderBottom(true).
    Bold(false)
s.Selected = s.Selected.
    Foreground(lipgloss.Color("229")).
    Background(lipgloss.Color("57")).
    Bold(false)
t.SetStyles(s)

And then Update and Render (View) the table:

</tr></table> 

... (truncated)

Commits
  • 13f52d6 fix(table): append headers/columns to zero sized string slice
  • 278edd1 fix(viewport): properly truncate to size (#228)
  • 09e1f00 textarea: support dynamic prompts
  • c099d31 textarea: add some comments
  • db2a8b4 textarea: new bindings for "go to begin" / "go to end"
  • afd6f58 feat(table): add function to set cursor position (#219)
  • d44e242 fix(viewport): honor width and height settings
  • 776062e fix(table): correct keybinding for page down (#220)
  • 1c26128 textarea: add uppercase/lowercase/capitalize word right (#210)
  • 649f78e fix(textarea): pre-allocation of value (#213)
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)