Skip to content

Commit

Permalink
v0.9.0 (#1179)
Browse files Browse the repository at this point in the history
* Increment version number to 0.9.0

* chore: Remove "experimental" badge from stable functions

* chore: urlchecker::url_update()

* `yarn build` (GitHub Actions)

* ci: run again

* chore: revdepcheck::cloud_check()

* tweak cran commments

* docs: adjust docs for brand.yml in rmd and pkgdown

* docs: Add link to release post

---------

Co-authored-by: gadenbuie <gadenbuie@users.noreply.github.com>
  • Loading branch information
gadenbuie and gadenbuie authored Jan 31, 2025
1 parent 0dd6812 commit 34889e6
Show file tree
Hide file tree
Showing 38 changed files with 156 additions and 69 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: bslib
Title: Custom 'Bootstrap' 'Sass' Themes for 'shiny' and 'rmarkdown'
Version: 0.8.0.9000
Version: 0.9.0
Authors@R: c(
person("Carson", "Sievert", , "carson@posit.co", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-4958-2844")),
Expand Down
6 changes: 4 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bslib (development version)
# bslib 0.9.0

## Breaking changes

Expand All @@ -10,7 +10,7 @@

## New features

* bslib now supports unified theming with [brand.yml](https://posit-dev.github.io/brand-yml). brand.yml lets you theme your Shiny apps, Quarto documents and more with a single, portable YAML file. Learn more in the new [Unified theming with brand.yml](https://rstudio.github.io/bslib/dev/articles/brand-yml/) article. (#1148)
* bslib now supports unified theming with [brand.yml](https://posit-dev.github.io/brand-yml/). brand.yml lets you theme your Shiny apps, Quarto documents and more with a single, portable YAML file. Learn more in the new [Unified theming with brand.yml](https://rstudio.github.io/bslib/dev/articles/brand-yml/) article. (#1148)

## Improvements and bug fixes

Expand All @@ -26,6 +26,8 @@

* bslib now uses navbar markup with Bootstrap 5 that's closer to the expected markup for Bootstrap. We still include the `navbar-default` or `navbar-inverse` classes on the `<nav>` element, for backwards compatibility, but in apps that use Bootstrap 5 these classes have no styles. (#1146)

* The following functions are no longer marked "experimental": `accordion()`, `breakpoints()`, `card()`, `input_dark_mode()`, `input_switch()`, `layout_columns()`, `layout_column_wrap()`, `page_fillable()`, `page_sidebar()`, `layout_sidebar()`, `sidebar()`, `popover()`, `tooltip()` and `value_box()`.

# bslib 0.8.0

## Breaking changes
Expand Down
4 changes: 0 additions & 4 deletions R/accordion.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' Create a vertically collapsing accordion
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' An accordion can be used to organize UI elements and content in a limited
#' space. It comprises multiple, vertically stacked panels that expand or
#' collapse when clicked, providing a compact layout that works well for
Expand Down Expand Up @@ -197,8 +195,6 @@ accordion_panel <- function(title, ..., value = title, icon = NULL) {
#' Dynamically update accordions
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' Dynamically update/modify [`accordion()`]s in a Shiny app. To be updated
#' programmatically, the [accordion()] must have an `id`. These functions
#' require an active Shiny session and only work with a running Shiny app.
Expand Down
2 changes: 0 additions & 2 deletions R/breakpoints.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' Define breakpoint values
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' A generic constructor for responsive breakpoints.
#'
#' @param xs The default value to apply to the `xs` breakpoint. Note that this
Expand Down
4 changes: 2 additions & 2 deletions R/bs-theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
#' provide a value of `"bootstrap"` (this value will also work in
#' `bs_theme_update()` to remove a `preset` or `bootswatch` theme).
#' @param brand Specifies how to apply branding to your theme using
#' [brand.yml](https://posit-dev.github.io/brand-yml), a simple YAML file that
#' [brand.yml](https://posit-dev.github.io/brand-yml/), a simple YAML file that
#' defines key brand elements like colors, fonts, and logos. Valid options:
#'
#' - `NULL` (default): Automatically looks for a `_brand.yml` file in the
Expand All @@ -106,7 +106,7 @@
#' the brand.yml structure.
#'
#' Learn more about creating and using brand.yml files at the
#' [brand.yml homepage](https://posit-dev.github.io/brand-yml) or run
#' [brand.yml homepage](https://posit-dev.github.io/brand-yml/) or run
#' `shiny::runExample("brand.yml", package = "bslib")` to try brand.yml in a
#' demo app.
#' @param bootswatch The name of a bootswatch theme (see [bootswatch_themes()]
Expand Down
2 changes: 0 additions & 2 deletions R/card.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' A Bootstrap card component
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' A general purpose container for grouping related UI elements together with a
#' border and optional padding. To learn more about [card()]s, see [the Cards
#' article](https://rstudio.github.io/bslib/articles/cards/index.html) or the
Expand Down
2 changes: 0 additions & 2 deletions R/input-dark-mode.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' Dark mode input control
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' Creates a button that toggles between dark and light modes, specifically for
#' toggling between light and dark [Bootstrap color
#' modes](https://getbootstrap.com/docs/5.3/customize/color-modes/) -- a new
Expand Down
2 changes: 0 additions & 2 deletions R/input-switch.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' Switch input control
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' Create an on-off style switch control for specifying logical values.
#'
#' @examplesIf rlang::is_interactive()
Expand Down
2 changes: 0 additions & 2 deletions R/layout.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' Column-first uniform grid layouts
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' Wraps a 1d sequence of UI elements into a 2d grid. The number of columns (and
#' rows) in the grid dependent on the column `width` as well as the size of the
#' display. For more explanation and illustrative examples, see the _References_
Expand Down
4 changes: 0 additions & 4 deletions R/page.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ page_fixed <- function(..., title = NULL, theme = bs_theme(), lang = NULL) {
#' A screen-filling page layout
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' A Bootstrap-based page layout whose contents fill the full height and width
#' of the browser window.
#'
Expand Down Expand Up @@ -203,8 +201,6 @@ validateCssPadding <- function(padding = NULL) {
#' A sidebar page (i.e., dashboard)
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' Create a dashboard layout with a full-width header (`title`) and [sidebar()].
#'
#' @param ... UI elements to display in the 'main' content area (i.e., next to
Expand Down
2 changes: 0 additions & 2 deletions R/popover.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' Add a popover to a UI element
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' Display additional information when clicking on a UI element (typically a
#' button).
#'
Expand Down
3 changes: 1 addition & 2 deletions R/sidebar.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#' Sidebar layouts
#'
#' @description `r lifecycle::badge("experimental")`
#'
#' @description
#' Sidebar layouts place UI elements, like input controls or additional context,
#' next to the main content area which often holds output elements like plots or
#' tables.
Expand Down
2 changes: 0 additions & 2 deletions R/tooltip.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' Add a tooltip to a UI element
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' Display additional information when focusing (or hovering over) a UI element.
#'
#' @param trigger A UI element (i.e., [htmltools tag][htmltools::tags]) to serve
Expand Down
2 changes: 0 additions & 2 deletions R/value-box.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' Value box
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' An opinionated ([card()]-powered) box, designed for displaying a `value` and
#' `title`. Optionally, a `showcase` can provide for context for what the
#' `value` represents (for example, it could hold a [bsicons::bs_icon()], or
Expand Down
11 changes: 9 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@

## revdepcheck results

We checked 57 reverse dependencies (51 from CRAN + 6 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.
We checked 95 reverse dependencies (94 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages
* We failed to check 1 packages

Issues with CRAN packages are summarised below.

### Failed to check

* Certara.VPCResults (installation error)

2 changes: 1 addition & 1 deletion inst/components/dist/components.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/components/dist/components.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/components/dist/web-components.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/components/dist/web-components.min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions man/accordion.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/accordion_panel_set.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/breakpoints.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/bs_theme.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/card.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/input_dark_mode.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/input_switch.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/layout_column_wrap.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/page_fillable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/page_sidebar.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/popover.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/sidebar.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/tooltip.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/value_box.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ navbar:

news:
releases:
- text: "v0.9.0"
href: https://shiny.posit.co/blog/posts/bslib-0.9.0/
- text: "v0.6.1"
href: https://shiny.posit.co/blog/posts/shiny-r-1.8.0/
- text: "v0.5.1"
Expand Down
7 changes: 7 additions & 0 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Revdeps

## Failed to check (2)

|package |version |error |warning |note |
|:------------------|:-------|:-----|:-------|:----|
|Certara.VPCResults |3.0.2 |1 | | |
|ordinalsimr |? | | | |

9 changes: 7 additions & 2 deletions revdep/cran.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
## revdepcheck results

We checked 67 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
We checked 95 reverse dependencies (94 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages
* We failed to check 1 packages

Issues with CRAN packages are summarised below.

### Failed to check

* Certara.VPCResults (NA)
Loading

0 comments on commit 34889e6

Please sign in to comment.