chore(deps): update module github.com/charmbracelet/lipgloss to v0.6.0 - autoclosed #4

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

This PR contains the following updates:

Package Type Update Change
github.com/charmbracelet/lipgloss require minor v0.5.0 -> v0.6.0

Release Notes

charmbracelet/lipgloss

v0.6.0

Compare Source

Vertical Alignment & Per-Profile Color Settings

In this latest release of Lip Gloss, styles now support vertical alignment! Additionally, we introduced two new color types, CompleteColor and CompleteAdaptiveColor, which lets you bypass automatic color interpolation choose colors for each color profile (ANSI, ANSI256, and TrueColor).

Align content in a Style vertically at the top, center, or bottom. To get started make a style with some Height and an AlignVertical property.

lipgloss.NewStyle().Height(5).AlignVertical(lipgloss.Center).Render("Hello, Center!")

or use the Align shorthand which sets both horizontal and vertical alignments:

lipgloss.NewStyle().Height(5).Align(lipgloss.Left, lipgloss.Bottom).Render("Hello, Center!")
image

New API:

Note, there are no breaking changes since if the Align shorthand 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() Position
  • GetAlignHorizontal() Position

Complete Colors

This revision introduces two new color types CompleteColor and CompleteAdaptiveColor. Not for the faint of heart, these types are for bypassing automatic color interpolation so you can specify exact colors for all color profiles in cases where the interpolation can benefit from manual adjustment:

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",
	},
}

New

Fixed

New Contributors

Full Changelog: https://github.com/charmbracelet/lipgloss/compare/v0.5.0...v0.6.0


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or 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/lipgloss](https://github.com/charmbracelet/lipgloss) | require | minor | `v0.5.0` -> `v0.6.0` | --- ### Release Notes <details> <summary>charmbracelet/lipgloss</summary> ### [`v0.6.0`](https://github.com/charmbracelet/lipgloss/releases/tag/v0.6.0) [Compare Source](https://github.com/charmbracelet/lipgloss/compare/v0.5.0...v0.6.0) ### Vertical Alignment & Per-Profile Color Settings In this latest release of Lip Gloss, styles now support vertical alignment! Additionally, we introduced two new color types, `CompleteColor` and `CompleteAdaptiveColor`, which lets you bypass automatic color interpolation choose colors for each color profile (ANSI, ANSI256, and TrueColor). Align content in a `Style` vertically at the top, center, or bottom. To get started make a style with some `Height` and an `AlignVertical` property. ```go lipgloss.NewStyle().Height(5).AlignVertical(lipgloss.Center).Render("Hello, Center!") ``` or use the `Align` shorthand which sets both horizontal and vertical alignments: ```go lipgloss.NewStyle().Height(5).Align(lipgloss.Left, lipgloss.Bottom).Render("Hello, Center!") ``` <img width="948" alt="image" src="https://user-images.githubusercontent.com/42545625/188711067-d1e3a87f-a119-4a32-aa87-b198a36c43c7.png"> New API: > Note, there are **no** breaking changes since if the `Align` shorthand 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() Position` - `GetAlignHorizontal() Position` #### Complete Colors This revision introduces two new color types `CompleteColor` and `CompleteAdaptiveColor`. Not for the faint of heart, these types are for bypassing automatic color interpolation so you can specify exact colors for all color profiles in cases where the interpolation can benefit from manual adjustment: ```go cc := CompleteColor{ TrueColor: "#&#8203;6B51FF", ANSI256: "63", ANSI: "5", } cac := CompleteAdaptiveColor{ Light: CompleteColor{ TrueColor: "#FF51CE", ANSI256: "213", ANSI: "5", }, Dark: CompleteColor{ TrueColor: "#&#8203;6B51FF", ANSI256: "63", ANSI: "5", }, } ``` #### New - Non-Interpolated Colors by [@&#8203;meowgorithm](https://github.com/meowgorithm) in https://github.com/charmbracelet/lipgloss/pull/100 - Vertical Alignment by [@&#8203;maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/lipgloss/pull/106 #### Fixed - Protect against concurrent color profile access with a `sync.RWMutex` by [@&#8203;meowgorithm](https://github.com/meowgorithm) in https://github.com/charmbracelet/lipgloss/pull/68 - don't overwrite background when inheriting by [@&#8203;76creates](https://github.com/76creates) in https://github.com/charmbracelet/lipgloss/pull/69 #### New Contributors - [@&#8203;Evertras](https://github.com/Evertras) made their first contribution in https://github.com/charmbracelet/lipgloss/pull/71 - [@&#8203;ismaelpadilla](https://github.com/ismaelpadilla) made their first contribution in https://github.com/charmbracelet/lipgloss/pull/94 - [@&#8203;mark2185](https://github.com/mark2185) made their first contribution in https://github.com/charmbracelet/lipgloss/pull/103 - [@&#8203;inkel](https://github.com/inkel) made their first contribution in https://github.com/charmbracelet/lipgloss/pull/107 **Full Changelog**: https://github.com/charmbracelet/lipgloss/compare/v0.5.0...v0.6.0 *** <a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" 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 [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 20:00:40 +00:00
renovate force-pushed renovate/github.com-charmbracelet-lipgloss-0.x from 5e617a8be6 to 77e45f74d5 2022-11-10 00:00:48 +00:00 Compare
renovate force-pushed renovate/github.com-charmbracelet-lipgloss-0.x from 77e45f74d5 to 04b5ab65ed 2022-11-15 16:01:14 +00:00 Compare
renovate force-pushed renovate/github.com-charmbracelet-lipgloss-0.x from 04b5ab65ed to bbf1dca70a 2022-12-11 08:01:00 +00:00 Compare
renovate changed title from chore(deps): update module github.com/charmbracelet/lipgloss to v0.6.0 to chore(deps): update module github.com/charmbracelet/lipgloss to v0.6.0 - autoclosed 2022-12-11 16:00:52 +00:00
renovate closed this pull request 2022-12-11 16:00:52 +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#4
No description provided.