chore(deps): bump github.com/charmbracelet/lipgloss from 0.5.0 to 0.6.0
Bumps github.com/charmbracelet/lipgloss from 0.5.0 to 0.6.0.
Release notes
Sourced from github.com/charmbracelet/lipgloss's releases.
v0.6.0
Vertical Alignment & Complete Colors
In this latest release of Lip Gloss, styles now support vertical alignment for all your vertical alignment needs! Additionally,
CompleteColorandCompleteAdaptiveColorwas introduced.Align content in a
Stylevertically at the top, center, or bottom. To get started make a style with someHeightand anAlignVerticalproperty.lipgloss.NewStyle().Height(5).AlignVertical(lipgloss.Center).Render("Hello, Center!")or use the
Alignshorthand which sets both horizontal and vertical alignments:lipgloss.NewStyle().Height(5).Align(lipgloss.Left, lipgloss.Bottom).Render("Hello, Center!")New API:
Note, there are no breaking changes since if the
Alignshorthand will still accept 1 argument (variadic arguments) and will set only the horizontal alignment to maintain original functionality
Align(p ...Position)AlignVertical(p Position)AlignHorizontal(p Position)GetAlignVertical() PositionGetAlignHorizontal() PositionComplete Colors
This revision introduces two new color types
CompleteColorandCompleteAdaptiveColor. Not for the faint of heart, these types are for bypassing automatic color interpolation so you can specify exact colors for all color profiles:cc := CompleteColor{ TrueColor: "#6B51FF", ANSI256: "63", ANSI: "5", }cac := CompleteAdaptiveColor{ Light: CompleteColor{ TrueColor: "#FF51CE", ANSI256: "213", ANSI: "5", }, Dark: CompleteColor{ TrueColor: "#6B51FF", ANSI256: "63", ANSI: "5", </tr></table>
... (truncated)
Commits
0ce5550feat: Align takes multiple arguments for setting horizontal + vertical alignment9852bb3feat:VerticalAlign0ee74a5feat: non-interpolated colors, aka CompleteColor (#100)2cb1d4adocs(lint): update example code in GoDocs per new style standardf651363Fix height doc (width -> height)81744bechore(lint): remove magic numbers1fb1fb9chore: drop go-colorful dependency (but it's a great lib)e8297c4Use ReplaceAll instead of Replace with n=-1a86f21aci: add benchmark test for Style.Render6b5dc18Clarify Inherit comment- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)