Skip to content

Commit 1dd37a5

Browse files
committed
merge master
Merge branch 'master' into dev # Conflicts: # R/useful-items.R # inst/bs4Dash-2.1.0/bs4Dash.min.js # inst/bs4Dash-2.1.0/bs4Dash.min.js.map
2 parents 0a3866f + 3b5c4bc commit 1dd37a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+106
-103
lines changed

R/aliases.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,4 +737,4 @@ ribbon <- bs4Ribbon
737737
#' @rdname boxLayout
738738
#'
739739
#' @export
740-
boxLayout <- bs4CardLayout
740+
boxLayout <- bs4CardLayout

R/auto-color.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ useAutoColor <- function(input, output, session = shiny::getDefaultReactiveDomai
6060
# the initial one
6161
session$setCurrentTheme(theme)
6262
})
63-
}
63+
}

R/bs4DashGallery.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ bs4DashGallery <- function() { # nocov start
2424
mustWork = TRUE
2525
)
2626
)
27-
}
27+
}

R/cards.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
#' boxDropdownItem("Link to google", href = "https://www.google.com"),
109109
#' boxDropdownItem("item 2", href = "#"),
110110
#' dropdownDivider(),
111-
#' boxDropdownItem("item 3", href = "#", icon = icon("th"))
111+
#' boxDropdownItem("item 3", href = "#", icon = icon("table-cells"))
112112
#' ),
113113
#' sidebar = boxSidebar(
114114
#' startOpen = TRUE,
@@ -327,7 +327,7 @@ bs4CardLabel <- function(text, status, tooltip = NULL) {
327327
#' @family boxWidgets
328328
#' @export
329329
bs4CardSidebar <- function(..., id = NULL, width = 50, background = "#333a40",
330-
startOpen = FALSE, icon = shiny::icon("cogs"),
330+
startOpen = FALSE, icon = shiny::icon("gears"),
331331
easyClose = TRUE) {
332332

333333
stopifnot(width >= 25 && width <= 100)
@@ -709,13 +709,13 @@ dropdownDivider <- function() {
709709
#' value = 150,
710710
#' subtitle = "New orders",
711711
#' color = "primary",
712-
#' icon = icon("shopping-cart")
712+
#' icon = icon("cart-shopping")
713713
#' ),
714714
#' valueBox(
715715
#' value = "53%",
716716
#' subtitle = "New orders",
717717
#' color = "indigo",
718-
#' icon = icon("cogs"),
718+
#' icon = icon("gears"),
719719
#' footer = div("Hello World")
720720
#' ),
721721
#' valueBox(
@@ -799,7 +799,7 @@ bs4ValueBox <- function(value, subtitle, icon = NULL, color = NULL, width = 3,
799799
target = "_blank",
800800
class = "small-box-footer",
801801
"More info",
802-
shiny::icon("arrow-circle-right")
802+
shiny::icon("circle-arrow-right")
803803
)
804804
} else {
805805
shiny::tags$div(class = "small-box-footer", style = "height: 30px;")
@@ -931,7 +931,7 @@ bs4ValueBox <- function(value, subtitle, icon = NULL, color = NULL, width = 3,
931931
#' )
932932
#' }
933933
#' @export
934-
bs4InfoBox <- function(title, value = NULL, subtitle = NULL, icon = shiny::icon("bar-chart"),
934+
bs4InfoBox <- function(title, value = NULL, subtitle = NULL, icon = shiny::icon("chart-bar"),
935935
color = NULL, width = 4, href = NULL, fill = FALSE, gradient = FALSE,
936936
elevation = NULL, iconElevation = NULL, tabName = NULL) {
937937

R/dashboardBody.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ bs4TabItem <- function(tabName = NULL, ...) {
6363
id = paste0("shiny-tab-", tabName),
6464
...
6565
)
66-
}
66+
}

R/dashboardControlbar.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ updateControlbarMenu <- function (session = shiny::getDefaultReactiveDomain(), i
166166
#' }
167167
updateControlbar <- function(id, session = shiny::getDefaultReactiveDomain()) {
168168
session$sendInputMessage(id, NULL)
169-
}
169+
}

R/dashboardHeader.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
bs4DashNavbar <- function(..., title = NULL, titleWidth = NULL, disable = FALSE,
5353
.list = NULL, leftUi = NULL, rightUi = NULL, skin = "light", status = "white",
5454
border = TRUE, compact = FALSE, sidebarIcon = shiny::icon("bars"),
55-
controlbarIcon = shiny::icon("th"), fixed = FALSE) {
55+
controlbarIcon = shiny::icon("table-cells"), fixed = FALSE) {
5656
items <- c(list(...), .list)
5757

5858
# make sure default status for dark skin is gray-dark if status is not specified
@@ -302,7 +302,7 @@ bs4DropdownMenu <- function(..., type = c("messages", "notifications", "tasks"),
302302
type,
303303
messages = shiny::icon("comments"),
304304
notifications = shiny::icon("bell"),
305-
tasks = shiny::icon("tasks")
305+
tasks = shiny::icon("list-check")
306306
)
307307
}
308308

@@ -486,7 +486,7 @@ messageItem <- function(from, message, icon = shiny::icon("user"), time = NULL,
486486
#' @rdname dropdownMenu
487487
#'
488488
#' @export
489-
notificationItem <- function(text, icon = shiny::icon("exclamation-triangle"),
489+
notificationItem <- function(text, icon = shiny::icon("triangle-exclamation"),
490490
status = "success", href = NULL, inputId = NULL) {
491491
tagAssert(icon, type = "i")
492492
if (is.null(href)) href <- "#"
@@ -787,4 +787,4 @@ renderUser <- function(expr, env = parent.frame(), quoted = FALSE, outputArgs =
787787
shiny::renderUI(expr, env = env, quoted = quoted, outputArgs = outputArgs)
788788
}
789789

790-
globalVariables("func")
790+
globalVariables("func")

R/dashboardPage.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@ bs4DashPage <- function(header, sidebar, body, controlbar = NULL, footer = NULL,
217217
options = options
218218
)
219219
)
220-
}
220+
}

R/dashboardSidebar.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ bs4SidebarMenuItem <- function(text, ..., icon = NULL, badgeLabel = NULL, badgeC
490490
#'
491491
#' @export
492492
bs4SidebarMenuSubItem <- function(text, tabName = NULL, href = NULL,
493-
newTab = NULL, icon = shiny::icon("angle-double-right"), selected = NULL) {
493+
newTab = NULL, icon = shiny::icon("angles-right"), selected = NULL) {
494494
if (!is.null(icon)) {
495495
tagAssert(icon, type = "i")
496496
icon$attribs$cl <- paste0(icon$attribs$cl, " nav-icon")
@@ -639,12 +639,12 @@ bs4SidebarUserPanel <- function(name, image = NULL) {
639639
#' menuItem(
640640
#' text = "Tab 1",
641641
#' tabName = "tab1",
642-
#' icon = icon("shuttle-van")
642+
#' icon = icon("van-shuttle")
643643
#' ),
644644
#' menuItem(
645645
#' text = "Tab 2",
646646
#' tabName = "tab2",
647-
#' icon = icon("space-shuttle"),
647+
#' icon = icon("shuttle-space"),
648648
#' selected = TRUE
649649
#' ),
650650
#' menuItem(
@@ -654,12 +654,12 @@ bs4SidebarUserPanel <- function(name, image = NULL) {
654654
#' menuSubItem(
655655
#' text = "Item 3",
656656
#' tabName = "tab3",
657-
#' icon = icon("circle-thin")
657+
#' icon = icon("circle")
658658
#' ),
659659
#' menuSubItem(
660660
#' text = "Item 4",
661661
#' tabName = "tab4",
662-
#' icon = icon("circle-thin")
662+
#' icon = icon("circle")
663663
#' )
664664
#' ),
665665
#' menuItem(
@@ -669,18 +669,18 @@ bs4SidebarUserPanel <- function(name, image = NULL) {
669669
#' menuSubItem(
670670
#' text = "Item 5",
671671
#' tabName = "tab5",
672-
#' icon = icon("circle-thin")
672+
#' icon = icon("circle")
673673
#' ),
674674
#' menuSubItem(
675675
#' text = "Item 6",
676676
#' tabName = "tab6",
677-
#' icon = icon("circle-thin")
677+
#' icon = icon("circle")
678678
#' )
679679
#' ),
680680
#' menuItem(
681681
#' text = "Tab 7",
682682
#' tabName = "tab7",
683-
#' icon = icon("home")
683+
#' icon = icon("house")
684684
#' )
685685
#' )
686686
#' ),

R/deps.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ add_bs4Dash_deps <- function(tag, options) {
109109
)
110110

111111
shiny::tagList(tag, bs4Dash_deps)
112-
}
112+
}

0 commit comments

Comments
 (0)