Skip to content

Commit

Permalink
Switch to Font Awesome 6 icon names
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Werner committed Jul 28, 2022
1 parent 830cd5e commit 29ac6e3
Show file tree
Hide file tree
Showing 34 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion R/input-actiongroupbuttons.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' br(),
#' actionGroupButtons(
#' inputIds = c("btn1", "btn2", "btn3"),
#' labels = list("Action 1", "Action 2", tags$span(icon("cog"), "Action 3")),
#' labels = list("Action 1", "Action 2", tags$span(icon("gear"), "Action 3")),
#' status = "primary"
#' ),
#' verbatimTextOutput(outputId = "res1"),
Expand Down
2 changes: 1 addition & 1 deletion R/input-circlebutton.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#'
#' ui <- fluidPage(
#' tags$h3("Rounded actionBution"),
#' circleButton(inputId = "btn1", icon = icon("cog")),
#' circleButton(inputId = "btn1", icon = icon("gear")),
#' circleButton(
#' inputId = "btn2",
#' icon = icon("sliders"),
Expand Down
4 changes: 2 additions & 2 deletions R/input-dropdown.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#' label_on = "NAs keeped",
#' label_off = "NAs removed",
#' icon_on = icon("check"),
#' icon_off = icon("remove")
#' icon_off = icon("xmark")
#' )
#' ),
#' tags$div(style = "height: 140px;"), # spacing
Expand Down Expand Up @@ -234,7 +234,7 @@ tooltipOptions <- function(placement = "right",
#' label = "Close dropdown"),
#' circle = TRUE, status = "danger",
#' inputId = "mydropdown",
#' icon = icon("cog"), width = "300px"
#' icon = icon("gear"), width = "300px"
#' )
#' ),
#' column(
Expand Down
2 changes: 1 addition & 1 deletion R/input-icon.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ textInputIcon <- function(inputId,
#' textInputIcon(
#' inputId = "id",
#' label = "With an icon",
#' icon = icon("user-circle")
#' icon = icon("circle-user")
#' ),
#' actionButton("updateValue", "Update value"),
#' actionButton("updateIcon", "Update icon"),
Expand Down
8 changes: 4 additions & 4 deletions R/input-search.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#' searchInput(
#' inputId = "search", label = "Enter your text",
#' placeholder = "A placeholder",
#' btnSearch = icon("search"),
#' btnReset = icon("remove"),
#' btnSearch = icon("magnifying-glass"),
#' btnReset = icon("xmark"),
#' width = "450px"
#' ),
#' br(),
Expand Down Expand Up @@ -118,8 +118,8 @@ searchInput <- function(inputId, label = NULL, value = "", placeholder = NULL,
#' searchInput(
#' inputId = "search", label = "Enter your text",
#' placeholder = "A placeholder",
#' btnSearch = icon("search"),
#' btnReset = icon("remove"),
#' btnSearch = icon("magnifying-glass"),
#' btnReset = icon("xmark"),
#' width = "450px"
#' ),
#' br(),
Expand Down
2 changes: 1 addition & 1 deletion R/module-pickerGroup.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pickerGroupUI <- function(id, params, label = NULL, btn_label = "Reset filters",
actionLink(
inputId = ns("reset_all"),
label = btn_label,
icon = icon("remove"),
icon = icon("xmark"),
style = "float: right;"
)
)
Expand Down
4 changes: 2 additions & 2 deletions R/module-selectizeGroup.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ selectizeGroupUI <- function(id, params, label = NULL, btn_label = "Reset filter
actionLink(
inputId = ns("reset_all"),
label = btn_label,
icon = icon("times"),
icon = icon("xmark"),
style = "float: right;"
)
)
Expand Down Expand Up @@ -94,7 +94,7 @@ selectizeGroupUI <- function(id, params, label = NULL, btn_label = "Reset filter
actionLink(
inputId = ns("reset_all"),
label = btn_label,
icon = icon("times"),
icon = icon("xmark"),
style = "float: right;"
)
)
Expand Down
4 changes: 2 additions & 2 deletions R/sw-dropdown.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#' value = 3,
#' min = 1, max = 9),
#'
#' style = "unite", icon = icon("cog"),
#' style = "unite", icon = icon("gear"),
#' status = "danger", width = "300px",
#' animate = animateOptions(
#' enter = animations$fading_entrances$fadeInLeftBig,
Expand Down Expand Up @@ -215,7 +215,7 @@ dropdown <- function(..., style = "default", status = "default",
#'
#' dropdown(
#' "Your contents goes here ! You can pass several elements",
#' circle = TRUE, status = "danger", icon = icon("cog"), width = "300px",
#' circle = TRUE, status = "danger", icon = icon("gear"), width = "300px",
#' animate = animateOptions(enter = "fadeInDown", exit = "fadeOutUp", duration = 3)
#' )
#'
Expand Down
2 changes: 1 addition & 1 deletion R/useShinydashboardPlus.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#' boxDropdownItem("Link to google", href = "http://www.google.com"),
#' boxDropdownItem("item 2", href = "#"),
#' dropdownDivider(),
#' boxDropdownItem("item 3", href = "#", icon = icon("th"))
#' boxDropdownItem("item 3", href = "#", icon = icon("table-cells"))
#' ),
#' sidebar = boxSidebar(
#' startOpen = TRUE,
Expand Down
2 changes: 1 addition & 1 deletion R/vertical-tab.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ verticalTabPanel <- function(title, ..., value = title, icon = NULL, box_height
#' verticalTabsetPanel(
#' id = "TABS",
#' verticalTabPanel(
#' title = "Title 1", icon = icon("home", "fa-2x"),
#' title = "Title 1", icon = icon("house", "fa-2x"),
#' "Content panel 1"
#' ),
#' verticalTabPanel(
Expand Down
2 changes: 1 addition & 1 deletion examples/checkboxGroupButtons.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ui <- fluidPage(
label = "With icons:",
choices = names(mtcars),
checkIcon = list(
yes = icon("check-square"),
yes = icon("square-check"),
no = icon("square-o")
)
),
Expand Down
2 changes: 1 addition & 1 deletion examples/disable-buttons.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ui <- fluidPage(
choices = setNames(1:6, head(month.name)),
label = "Radio buttons",
checkIcon = list(
yes = icon("check-square"),
yes = icon("square-check"),
no = icon("square-o")
)
),
Expand Down
10 changes: 5 additions & 5 deletions examples/ex-stati-card.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ui <- fluidPage(
fluidRow(
column(
width = 3,
statiCard(12, "Subtitle", icon("home")),
statiCard(12, "Subtitle", icon("house")),
statiCard(
93, "Animated card", icon("users"),
background = "deepskyblue",
Expand All @@ -35,7 +35,7 @@ ui <- fluidPage(
),
column(
width = 3,
statiCard(12, "No animation", icon("home"), color = "firebrick")
statiCard(12, "No animation", icon("house"), color = "firebrick")
),
column(
width = 3,
Expand All @@ -50,13 +50,13 @@ ui <- fluidPage(
statiCard(
"123456 something very very long",
"Long value text with icon",
icon = icon("tachometer-alt"),
icon = icon("gauge"),
left = TRUE
),
statiCard(
"123456 something very very long",
"Long value text with icon right",
icon = icon("tasks")
icon = icon("list-check")
)
)
)
Expand Down Expand Up @@ -85,7 +85,7 @@ server <- function(input, output, session) {
statiCard(
format(sample.int(1e6, 1), big.mark = " "),
"Total spend",
icon("shopping-cart"),
icon("cart-shopping"),
left = TRUE,
animate = TRUE
)
Expand Down
4 changes: 2 additions & 2 deletions examples/prettyToggle.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ui <- fluidPage(
inputId = "toggle2",
label_on = "Yes!", icon_on = icon("check"),
status_on = "info", status_off = "warning",
label_off = "No..", icon_off = icon("remove")
label_off = "No..", icon_off = icon("xmark")
),
verbatimTextOutput(outputId = "res2")
),
Expand Down Expand Up @@ -89,7 +89,7 @@ ui <- fluidPage(
inputId = "toggle3",
label_on = "",
label_off = "",
icon_on = icon("volume-up", lib = "glyphicon"),
icon_on = icon("volume-high", lib = "glyphicon"),
icon_off = icon("volume-off", lib = "glyphicon"),
status_on = "primary",
status_off = "default",
Expand Down
2 changes: 1 addition & 1 deletion examples/radioGroupButtons.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ui <- fluidPage(
label = "With icons:",
choices = names(mtcars),
checkIcon = list(
yes = icon("check-square"),
yes = icon("square-check"),
no = icon("square-o")
)
),
Expand Down
2 changes: 1 addition & 1 deletion examples/show_alert.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ui <- fluidPage(
actionButton(
inputId = "error",
label = "Launch an error sweet alert",
icon = icon("remove")
icon = icon("xmark")
),
actionButton(
inputId = "sw_html",
Expand Down
4 changes: 2 additions & 2 deletions examples/show_toast.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ ui <- fluidPage(
actionButton(
inputId = "error",
label = "Show error toast",
icon = icon("remove")
icon = icon("xmark")
),
actionButton(
inputId = "warning",
label = "Show warning toast",
icon = icon("exclamation-triangle")
icon = icon("triangle-exclamation")
),
actionButton(
inputId = "info",
Expand Down
4 changes: 2 additions & 2 deletions examples/textInputIcon.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ ui <- fluidPage(
textInputIcon(
inputId = "ex1",
label = "With an icon",
icon = icon("user-circle")
icon = icon("circle-user")
),
verbatimTextOutput("res1"),
textInputIcon(
inputId = "ex2",
label = "With an icon (right)",
icon = list(NULL, icon("user-circle"))
icon = list(NULL, icon("circle-user"))
),
verbatimTextOutput("res2"),
textInputIcon(
Expand Down
2 changes: 1 addition & 1 deletion examples/updatePrettyCheckboxGroup.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ui <- fluidPage(
label = "Update my value!",
choices = month.name[1:4],
status = "danger",
icon = icon("remove")
icon = icon("xmark")
),
verbatimTextOutput(outputId = "res1"),
br(),
Expand Down
2 changes: 1 addition & 1 deletion examples/updatePrettyRadioButtons.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ui <- fluidPage(
label = "Update my value!",
choices = month.name[1:4],
status = "danger",
icon = icon("remove")
icon = icon("xmark")
),
verbatimTextOutput(outputId = "res1"),
br(),
Expand Down
2 changes: 1 addition & 1 deletion examples/useSweetAlert.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (interactive()) {
actionButton(
inputId = "error",
label = "Launch an error sweet alert",
icon = icon("remove")
icon = icon("xmark")
),
actionButton(
inputId = "sw_html",
Expand Down
2 changes: 1 addition & 1 deletion examples/vertical-tab.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ui <- fluidPage(
id = "my_vertical_tab_panel",
verticalTabPanel(
title = "Title 1",
icon = icon("home", "fa-2x"),
icon = icon("house", "fa-2x"),
"Content panel 1"
),
verticalTabPanel(
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/checkboxGroupButtons/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ fluidPage(
choices = c("Choice 1", "Choice 2", "Choice 3"),
checkIcon = list(
yes = icon("check"),
no = icon("times")
no = icon("xmark")
)
),
verbatimTextOutput(outputId = "res13")
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/dropdown/ex-sw-dropdown.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ui <- fluidPage(
shinyWidgets::pickerInput(inputId = 'xcol', label = 'X Variable', choices = names(iris)),
selectInput(inputId = 'ycol', label = 'Y Variable', choices = names(iris), selected = names(iris)[[2]]),
sliderInput(inputId = 'clusters', label = 'Cluster count', value = 3, min = 1, max = 9),
style = "material-circle", icon = icon("cog"), status = "danger",
style = "material-circle", icon = icon("gear"), status = "danger",
animate = animateOptions(enter = animations$zooming_entrances$zoomInDown, exit = animations$zooming_exits$zoomOutUp, duration = 1)
),
plotOutput(outputId = 'plot1')
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/radioGroupButtons/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fluidPage(
choices = c("Choice 1", "Choice 2", "Choice 3"),
checkIcon = list(
yes = icon("check"),
no = icon("times")
no = icon("xmark")
)
),
verbatimTextOutput(outputId = "res13")
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/shinyWidgets/code_dropdown.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ui <- fluidPage(
value = 3,
min = 1, max = 9),

style = "unite", icon = icon("cog"),
style = "unite", icon = icon("gear"),
status = "danger", width = "300px",
animate = animateOptions(
enter = animations$fading_entrances$fadeInLeftBig,
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/shinyWidgets/code_dropdownButton.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ui <- fluidPage(
max = 9),

circle = TRUE, status = "danger",
icon = icon("cog"), width = "300px",
icon = icon("gear"), width = "300px",

tooltip = tooltipOptions(title = "Click to see inputs !")
),
Expand Down
Loading

0 comments on commit 29ac6e3

Please sign in to comment.