Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.8.0 release candidate #1094

Merged
merged 11 commits into from
Jul 29, 2024
4 changes: 1 addition & 3 deletions 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.7.0.9000
Version: 0.8.0
Authors@R: c(
person("Carson", "Sievert", , "carson@posit.co", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-4958-2844")),
Expand Down Expand Up @@ -55,8 +55,6 @@ Suggests:
testthat,
thematic,
withr
Remotes:
rstudio/shiny
Config/Needs/deploy:
BH,
chiflights22,
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bslib (development version)
# bslib 0.8.0

## Breaking changes

Expand Down
4 changes: 2 additions & 2 deletions R/bs-dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ bs_theme_dependencies <- function(
#' variables, functions, and/or mixins (i.e., stuff inside of `theme`).
#' `bs_dependencies()` makes it a bit easier to create themeable components by
#' compiling [sass::sass()] (`input`) together with Bootstrap Sass inside of a
#' `theme`, and packaging up the result into an [htmlDependency()].
#' `theme`, and packaging up the result into an [htmltools::htmlDependency()].
#'
#' Themable components can also be _dynamically_ themed inside of Shiny (i.e.,
#' they may be themed in 'real-time' via [bs_themer()], and more generally,
Expand Down Expand Up @@ -246,7 +246,7 @@ bs_dependency <- function(input = list(), theme, name, version,
#' @rdname bs_dependency
#' @param func a _non-anonymous_ function, with a _single_ argument.
#' This function should accept a [bs_theme()] object and return a single
#' [htmlDependency()], a list of them, or `NULL`.
#' [htmltools::htmlDependency()], a list of them, or `NULL`.
#' @param memoise whether or not to memoise (i.e., cache) `func` results for a
#' short period of time. The default, `TRUE`, can have large performance
#' benefits when many instances of the same themable widget are rendered. Note
Expand Down
6 changes: 3 additions & 3 deletions R/fill.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#'
#' @details
#' Although `as_fill()`, `as_fillable()`, and `as_fill_carrier()` can work with
#' non-tag objects that have a [as.tags] method (e.g., htmlwidgets), they return
#' the "tagified" version of that object.
#' non-tag objects that have a [htmltools::as.tags] method (e.g., htmlwidgets),
#' they return the "tagified" version of that object.
#'
#' @examplesIf rlang::is_interactive()
#' library(shiny)
Expand Down Expand Up @@ -56,7 +56,7 @@
#' @param style A character vector of CSS properties to add to the tag.
#' @param css_selector A character string containing a CSS selector for
#' targeting particular (inner) tag(s) of interest. For more details on what
#' selector(s) are supported, see [tagAppendAttributes()].
#' selector(s) are supported, see [htmltools::tagAppendAttributes()].
#'
#' @export
as_fill_carrier <- function(x, ..., min_height = NULL, max_height = NULL, gap = NULL, class = NULL, style = NULL, css_selector = NULL) {
Expand Down
8 changes: 4 additions & 4 deletions R/nav-items.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
#' [navset_bar()], etc).
#'
#' @param title A title to display. Can be a character string or UI elements
#' (i.e., [tags]).
#' (i.e., [htmltools::tags]).
#' @param ... Depends on the function:
#' * For `nav_panel()` and `nav_panel_hidden()`: UI elements (i.e., [tags]) to
#' display when the item is active.
#' * For `nav_panel()` and `nav_panel_hidden()`: UI elements (i.e.,
#' [htmltools::tags]) to display when the item is active.
#' * For `nav_menu()`: a collection of nav items (e.g., `nav_panel()`,
#' `nav_item()`).
#' * For `nav_item()`: UI elements (i.e., [tags]) to place directly in
#' * For `nav_item()`: UI elements (i.e., [htmltools::tags]) to place directly in
#' the navigation panel (e.g., search forms, links to external content, etc).
#' @param value A character string to assign to the nav item. This value may be
#' supplied to the relevant container's `selected` argument in order to show
Expand Down
6 changes: 4 additions & 2 deletions R/navs-legacy.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
#' [nav_select()]).
#' @param selected a character string matching the `value` of a particular
#' [nav_panel()] item to selected by default.
#' @param header UI element(s) ([tags]) to display _above_ the nav content.
#' @param footer UI element(s) ([tags]) to display _below_ the nav content.
#' @param header UI element(s) ([htmltools::tags]) to display _above_ the nav
#' content.
#' @param footer UI element(s) ([htmltools::tags]) to display _below_ the nav
#' content.
#'
#' @seealso [nav_panel()], [nav_panel_hidden()] create panels of content.
#' @seealso [nav_menu()], [nav_item()], [nav_spacer()] create menus, items, or
Expand Down
16 changes: 8 additions & 8 deletions R/page.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ page <- function(..., title = NULL, theme = bs_theme(), lang = NULL) {
page_fluid <- function(..., title = NULL, theme = bs_theme(), lang = NULL) {
as_page(
shiny::fluidPage(
# Components require Bootstrap 5+
if (isTRUE(theme_version(theme) >= 5)) component_dependencies(),
...,
title = title,
theme = theme,
lang = lang,
# Components require Bootstrap 5+
if (isTRUE(theme_version(theme) >= 5)) component_dependencies()
lang = lang
),
theme = theme
)
Expand All @@ -62,12 +62,12 @@ page_fluid <- function(..., title = NULL, theme = bs_theme(), lang = NULL) {
page_fixed <- function(..., title = NULL, theme = bs_theme(), lang = NULL) {
as_page(
shiny::fixedPage(
# Components require Bootstrap 5+
if (isTRUE(theme_version(theme) >= 5)) component_dependencies(),
...,
title = title,
theme = theme,
lang = lang,
# Components require Bootstrap 5+
if (isTRUE(theme_version(theme) >= 5)) component_dependencies()
lang = lang
),
theme = theme
)
Expand Down Expand Up @@ -186,9 +186,9 @@ page_fillable <- function(
padding = validateCssPadding(padding),
gap = validateCssUnit(gap)
),
...,
as_fillable_container(),
tags$head(tags$style("html { height: 100%; }")),
as_fillable_container()
...
)
}

Expand Down
5 changes: 3 additions & 2 deletions R/popover.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
#' [shiny::actionButton()] or similar). If `trigger` renders as multiple HTML
#' elements (e.g., it's a `tagList()`), the last HTML element is used for the
#' trigger. If the `trigger` should contain all of those elements, wrap the
#' object in a [div()] or [span()].
#' object in a [htmltools::div()] or [htmltools::span()].
#' @param ... UI elements for the popover's body. Character strings are
#' [automatically escaped][htmlEscape()] unless marked as [HTML()].
#' [automatically escaped][htmltools::htmlEscape()] unless marked as
#' [htmltools::HTML()].
#' @param title A title (header) for the popover. To remove a header
#' with `update_popover()`, provide a either an empty string or `character(0)`.
#' @param id A character string. Required to re-actively respond to the
Expand Down
2 changes: 1 addition & 1 deletion R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ print.bslib_fragment <- function(x, ...) {
#' Save a bslib page/fragment as HTML
#'
#' @param html a bslib page/fragment.
#' @param ... passed along to an underlying [save_html()] method.
#' @param ... passed along to an underlying [htmltools::save_html()] method.
#' @export
#' @keywords internal
#' @rdname save-html
Expand Down
4 changes: 2 additions & 2 deletions R/tooltip.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#' as the tooltip trigger. If `trigger` renders as multiple HTML
#' elements (e.g., it's a `tagList()`), the last HTML element is used for the
#' trigger. If the `trigger` should contain all of those elements, wrap the
#' object in a [div()] or [span()].
#' object in a [htmltools::div()] or [htmltools::span()].
#' @param ... UI elements for the tooltip. Character strings are [automatically
#' escaped][htmlEscape()] unless marked as [HTML()].
#' escaped][htmltools::htmlEscape()] unless marked as [htmltools::HTML()].
#' @param id A character string. Required to re-actively respond to the
#' visibility of the tooltip (via the `input[[id]]` value) and/or update the
#' visibility/contents of the tooltip.
Expand Down
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.

1 change: 1 addition & 0 deletions inst/examples-shiny/card/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ main_grid <- layout_column_wrap(
card_body(card_image(
file = "www/shiny-hex.svg",
height = 200,
fill = TRUE,
href = "https://github.com/rstudio/shiny"
))
),
Expand Down
6 changes: 3 additions & 3 deletions man/as_fill_carrier.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_dependency.Rd

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

8 changes: 4 additions & 4 deletions man/nav-items.Rd

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

6 changes: 4 additions & 2 deletions man/navset.Rd

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

6 changes: 4 additions & 2 deletions man/page_navbar.Rd

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

5 changes: 3 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: 1 addition & 1 deletion man/save-html.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/tooltip.Rd

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

6 changes: 0 additions & 6 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
# Revdeps

## Failed to check (1)

|package |version |error |warning |note |
|:--------------|:-------|:-----|:-------|:----|
|multilevelcoda |1.2.3 |1 | | |

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

We checked 60 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
We checked 67 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

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

Issues with CRAN packages are summarised below.

### Failed to check

* multilevelcoda (NA)
61 changes: 1 addition & 60 deletions revdep/failures.md
Original file line number Diff line number Diff line change
@@ -1,60 +1 @@
# multilevelcoda

<details>

* Version: 1.2.3
* GitHub: https://github.com/florale/multilevelcoda
* Source code: https://github.com/cran/multilevelcoda
* Date/Publication: 2024-03-10 23:00:03 UTC
* Number of recursive dependencies: 160

Run `revdepcheck::cloud_details(, "multilevelcoda")` for more info

</details>

## In both

* checking whether package ‘multilevelcoda’ can be installed ... ERROR
```
Installation failed.
See ‘/tmp/workdir/multilevelcoda/new/multilevelcoda.Rcheck/00install.out’ for details.
```

## Installation

### Devel

```
* installing *source* package ‘multilevelcoda’ ...
** package ‘multilevelcoda’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error: object ‘launch_shinystan’ is not exported by 'namespace:brms'
Execution halted
ERROR: lazy loading failed for package ‘multilevelcoda’
* removing ‘/tmp/workdir/multilevelcoda/new/multilevelcoda.Rcheck/multilevelcoda’


```
### CRAN

```
* installing *source* package ‘multilevelcoda’ ...
** package ‘multilevelcoda’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error: object ‘launch_shinystan’ is not exported by 'namespace:brms'
Execution halted
ERROR: lazy loading failed for package ‘multilevelcoda’
* removing ‘/tmp/workdir/multilevelcoda/old/multilevelcoda.Rcheck/multilevelcoda’


```
*Wow, no problems at all. :)*
Loading
Loading