chore(deps): update module github.com/charmbracelet/bubbles to v0.14.0 - autoclosed #3

Closed
renovate wants to merge 1 commits from renovate/github.com-charmbracelet-bubbles-0.x into master
Contributor

This PR contains the following updates:

Package Type Update Change
github.com/charmbracelet/bubbles require minor v0.13.0 -> v0.14.0

Release Notes

charmbracelet/bubbles

v0.14.0

Compare Source

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 ❤️.

Table Bubble showing countries and their populations

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:

type model struct {
	table table.Model
}

func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
	var cmd tea.Cmd
	m.table, cmd = m.table.Update(msg)
	return m, cmd
}

func (m model) View() string {
	return m.table.View()
}

Other Changes

New Contributors

Full Changelog: https://github.com/charmbracelet/bubbles/compare/v0.13.0...v0.14.0

Read more about it in our examples and docs:


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Slack.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) | require | minor | `v0.13.0` -> `v0.14.0` | --- ### Release Notes <details> <summary>charmbracelet/bubbles</summary> ### [`v0.14.0`](https://github.com/charmbracelet/bubbles/releases/tag/v0.14.0) [Compare Source](https://github.com/charmbracelet/bubbles/compare/v0.13.0...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 [@&#8203;wesleimp](https://github.com/wesleimp) for contributing this change ❤️. <a href="https://github.com/charmbracelet/bubbletea/tree/master/examples/table"><img alt="Table Bubble showing countries and their populations" src="https://user-images.githubusercontent.com/42545625/188685711-698f384d-5a04-4355-93c5-fc6aefe3cb56.gif" width="500"></a> See the [example code](https://github.com/charmbracelet/bubbletea/tree/master/examples/table) for an example of how to use the `table` in your [Bubble Tea](https://github.com/charmbracelet/bubbletea) applications. ##### Getting Started Create a new `table`: ```go t := table.New( table.WithColumns(columns), table.WithRows(rows), table.WithFocused(true), table.WithHeight(7), ) ``` Alternatively, ```go t := table.New(table.WithColumns(columns)) t.SetRows(rows) t.Focus() t.SetHeight(7) ``` Style the `table` how you want: ```go 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: ```go type model struct { table table.Model } func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { var cmd tea.Cmd m.table, cmd = m.table.Update(msg) return m, cmd } func (m model) View() string { return m.table.View() } ``` ##### Other Changes - <kbd>Ctrl+H</kbd> backspaces text by [@&#8203;maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/199 - `LineCount()` + Include New Line characters in `Length()` by [@&#8203;maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/204 - fix(viewport): honor width and height settings by [@&#8203;meowgorithm](https://github.com/meowgorithm) in https://github.com/charmbracelet/bubbles/pull/216 - feat(textarea): new bindings for "go to begin" / "go to end" by [@&#8203;knz](https://github.com/knz) in https://github.com/charmbracelet/bubbles/pull/226 - feat(textarea): `PromptFunc`, support dynamic prompts by [@&#8203;knz](https://github.com/knz) in https://github.com/charmbracelet/bubbles/pull/211 - fix(viewport): properly truncate to size by [@&#8203;knz](https://github.com/knz) in https://github.com/charmbracelet/bubbles/pull/228 #### New Contributors - [@&#8203;knz](https://github.com/knz) made their first contribution in https://github.com/charmbracelet/bubbles/pull/208 - [@&#8203;buztard](https://github.com/buztard) made their first contribution in https://github.com/charmbracelet/bubbles/pull/220 - [@&#8203;nikaro](https://github.com/nikaro) made their first contribution in https://github.com/charmbracelet/bubbles/pull/219 **Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.13.0...v0.14.0 Read more about it in our examples and docs: - [Example code, country populations](https://github.com/charmbracelet/bubbletea/tree/master/examples/table) - [Docs](https://pkg.go.dev/github.com/charmbracelet/bubbles@v0.14.0/table) *** <a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg?1" width="400"></a> Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.technology/@&#8203;charm), or on [Slack](https://charm.sh/slack). </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTAuMyIsInVwZGF0ZWRJblZlciI6IjM0LjIzLjAifQ==-->
renovate added 1 commit 2022-09-06 16:00:44 +00:00
renovate force-pushed renovate/github.com-charmbracelet-bubbles-0.x from ebfd6ba29c to 69ff288bab 2022-09-07 06:00:41 +00:00 Compare
renovate force-pushed renovate/github.com-charmbracelet-bubbles-0.x from 69ff288bab to 14a3d19ad6 2022-09-07 12:00:44 +00:00 Compare
renovate changed title from chore(deps): update module github.com/charmbracelet/bubbles to v0.14.0 to chore(deps): update module github.com/charmbracelet/bubbles to v0.14.0 - autoclosed 2022-12-11 16:00:51 +00:00
renovate closed this pull request 2022-12-11 16:00:51 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Kichiyaki/gootp#3
No description provided.