From d82ef8b43054367c14a300c6a52571334379128a Mon Sep 17 00:00:00 2001 From: nteetor Date: Sun, 5 Jun 2022 11:37:54 +0900 Subject: [PATCH] docs(*): fix and rebuild w/ latest roxygen --- DESCRIPTION | 2 +- R/design-border.R | 2 +- man/alert.Rd | 178 +++--------- man/background.Rd | 149 ++-------- man/badge.Rd | 80 ++---- man/border.Rd | 53 +--- man/buttonGroupInput.Rd | 182 ++----------- man/buttonInput.Rd | 231 +++------------- man/card.Rd | 584 +++++----------------------------------- man/checkbarInput.Rd | 138 ++++------ man/checkboxInput.Rd | 378 ++++---------------------- man/chipInput.Rd | 428 +++++------------------------ man/collapsePane.Rd | 4 +- man/column.Rd | 251 +++-------------- man/d1.Rd | 23 +- man/dot-style.Rd | 8 +- man/dropdown.Rd | 350 +++--------------------- man/fileInput.Rd | 71 +---- man/flex.Rd | 410 ++++------------------------ man/float.Rd | 69 ++--- man/font.Rd | 96 +------ man/formGroup.Rd | 129 ++------- man/formInput.Rd | 99 +------ man/listGroupInput.Rd | 190 ++----------- man/margin.Rd | 193 ++----------- man/menuInput.Rd | 161 ++--------- man/modal.Rd | 187 ++----------- man/navContent.Rd | 12 +- man/navInput.Rd | 333 +++-------------------- man/navbar.Rd | 92 +------ man/padding.Rd | 193 ++----------- man/popover.Rd | 4 +- man/radioInput.Rd | 100 +------ man/radiobarInput.Rd | 35 +-- man/rangeInput.Rd | 44 +-- man/reexports.Rd | 2 +- man/roxygen/range.R | 16 -- man/selectInput.Rd | 128 ++------- man/shadow.Rd | 94 ++----- man/textInput.Rd | 102 ++----- man/toast.Rd | 8 +- 41 files changed, 868 insertions(+), 4941 deletions(-) delete mode 100644 man/roxygen/range.R diff --git a/DESCRIPTION b/DESCRIPTION index a5c9229f..4c115b3a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -24,7 +24,7 @@ BugReports: https://github.com/nteetor/yonder/issues Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) -RoxygenNote: 7.0.2 +RoxygenNote: 7.2.0 Depends: R (>= 3.2), shiny (>= 1.6.0) diff --git a/R/design-border.R b/R/design-border.R index be634c2d..68f94b64 100644 --- a/R/design-border.R +++ b/R/design-border.R @@ -2,7 +2,7 @@ #' #' Use `border()` to add or modify tag element borders. #' -#' @param tag A tag element. +#' @inheritParams affix #' #' @eval param_color("border") #' diff --git a/man/alert.Rd b/man/alert.Rd index a39321e0..7c40c60e 100644 --- a/man/alert.Rd +++ b/man/alert.Rd @@ -25,64 +25,37 @@ to problems. With \code{dismissible = TRUE} you can allow the user to remove an alert. By default, alerts are dismissible, well suited for one-time messages or -warnings.\if{html}{\out{
}}\preformatted{alert( +warnings. + +\if{html}{\out{
}}\preformatted{alert( .style \%>\% background("primary"), "I'm around till you say goodbye" ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -}} -\if{html}{\out{ +I'm around till you say goodbye +
}} -\if{html}{\out{ - -}} } \subsection{Static alerts}{ If you do want to keep an alert or control an alert with \code{renderUI()} -you can then use \code{dismissible = FALSE}.\if{html}{\out{
}}\preformatted{alert( +you can then use \code{dismissible = FALSE}. + +\if{html}{\out{
}}\preformatted{alert( .style \%>\% background("warning"), dismissible = FALSE, # <- "I'm calling attention to something, forever." ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - + }} } @@ -90,7 +63,9 @@ I’m calling attention to something, forever.\if{html}{\out{ \subsection{Contextual content}{ Alerts include a few contextual variations. Links and headings are both -styled differently inside an alert.\if{html}{\out{
}}\preformatted{alert( +styled differently inside an alert. + +\if{html}{\out{
}}\preformatted{alert( .style \%>\% background("success"), h5("Success!"), @@ -98,39 +73,21 @@ styled differently inside an alert.\if{html}{\out{
}}\preformatted a(href = "#", "here") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -}} -\if{html}{\out{ +
Success!
+Your results can be found +here +
}} -\if{html}{\out{ - -}} If you want to avoid these automatic styles you can use \code{tags$a}, -\code{tags$h1}, \code{tags$h2}, etc.\if{html}{\out{
}}\preformatted{alert( +\code{tags$h1}, \code{tags$h2}, etc. + +\if{html}{\out{
}}\preformatted{alert( .style \%>\% background("light") \%>\% border("dark"), @@ -141,51 +98,23 @@ If you want to avoid these automatic styles you can use \code{tags$a}, a(href = "#", "Alert link") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -}} -\if{html}{\out{ +Default link +Alert link +
}} -\if{html}{\out{ - -}} Like the \code{a()} tag elements, yonder’s \code{linkInput()}s also receive -contextual styling.\if{html}{\out{
}}\preformatted{alert( +contextual styling. + +\if{html}{\out{
}}\preformatted{alert( .style \%>\% background("danger"), h5("Problem"), @@ -196,50 +125,15 @@ contextual styling.\if{html}{\out{
}}\preformatted{alert( ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } } diff --git a/man/background.Rd b/man/background.Rd index 1a8b0ca8..d670d6a5 100644 --- a/man/background.Rd +++ b/man/background.Rd @@ -19,7 +19,9 @@ Use \code{background()} to modify the background color of a tag element. Input backgrounds will change differently according to the particular input. Changing the background of a \code{buttonGroupInput()} will change the -background colors of the buttons in the group.\if{html}{\out{
}}\preformatted{buttonGroupInput( +background colors of the buttons in the group. + +\if{html}{\out{
}}\preformatted{buttonGroupInput( .style \%>\% background("info") \%>\% # <- display("flex"), @@ -28,53 +30,20 @@ background colors of the buttons in the group.\if{html}{\out{
}}\p values = c("mint", "strawberry", "swirl") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
+ + +
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} Changing the background of an input is different than changing a tag element. More is done under the hood to apply the correct background styles. For example, changing the background of a radio or checkbox -input changes the color of the selected choices.\if{html}{\out{
}}\preformatted{radioInput( +input changes the color of the selected choices. + +\if{html}{\out{
}}\preformatted{radioInput( .style \%>\% background("warning"), id = "drinks", @@ -83,69 +52,29 @@ input changes the color of the selected choices.\if{html}{\out{
}} selected = "lime" ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
-}} -\if{html}{\out{ -}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
+
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} If you needed to change the entire background of an input, you can wrap -the input in a \code{div()} and modify its background.\if{html}{\out{
}}\preformatted{div( +the input in a \code{div()} and modify its background. + +\if{html}{\out{
}}\preformatted{div( .style \%>\% padding(2) \%>\% background("dark"), # <- @@ -160,61 +89,21 @@ the input in a \code{div()} and modify its background.\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
-}} -\if{html}{\out{ -}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
+
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } } diff --git a/man/badge.Rd b/man/badge.Rd index 50c2c843..40edc986 100644 --- a/man/badge.Rd +++ b/man/badge.Rd @@ -19,7 +19,9 @@ pass an \code{id} argument as part of \code{...}. \subsection{Combining badges}{ Badges may be combined with other elements. They can be placed inside -buttons.\if{html}{\out{
}}\preformatted{buttonInput( +buttons. + +\if{html}{\out{
}}\preformatted{buttonInput( .style \%>\% background("primary"), id = NULL, @@ -27,28 +29,16 @@ buttons.\if{html}{\out{
}}\preformatted{buttonInput( badge(2) \%>\% background("light") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ }} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -You can also pair badges with list groups.\if{html}{\out{
}}\preformatted{listGroupItem <- function(...) \{ +You can also pair badges with list groups. + +\if{html}{\out{
}}\preformatted{listGroupItem <- function(...) \{ div(...) \%>\% width(100) \%>\% display("flex") \%>\% @@ -66,59 +56,25 @@ listGroupInput( ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} - - -\if{html}{\out{ -}} - - -\if{html}{\out{ -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } } diff --git a/man/border.Rd b/man/border.Rd index 937eef35..9afd67ac 100644 --- a/man/border.Rd +++ b/man/border.Rd @@ -7,6 +7,8 @@ border(x, color = NULL, sides = "all", round = NULL) } \arguments{ +\item{x}{A tag element or \link{.style} pronoun.} + \item{color}{One of \code{"primary"}, \code{"secondary"}, \code{"success"}, \code{"info"}, \code{"warning"}, \code{"danger"}, \code{"light"} or \code{"dark"} specifying the border color of the tag element, defaults to \code{NULL}.} \item{sides}{One or more of \code{"top"}, \code{"right"}, \code{"bottom"}, \code{"left"} or @@ -16,8 +18,6 @@ border(x, color = NULL, sides = "all", round = NULL) \item{round}{One or more of \code{"top"}, \code{"right"}, \code{"bottom"}, \code{"left"}, \code{"circle"}, \code{"all"}, or \code{"none"} specifying how to round the border(s) of a tag element, defaults to \code{NULL}, in which case the argument is ignored.} - -\item{tag}{A tag element.} } \description{ Use \code{border()} to add or modify tag element borders. @@ -25,7 +25,9 @@ Use \code{border()} to add or modify tag element borders. \details{ \subsection{Cards}{ -Card borders and font colors.\if{html}{\out{
}}\preformatted{card( +Card borders and font colors. + +\if{html}{\out{
}}\preformatted{card( .style \%>\% border("primary") \%>\% font("primary"), @@ -34,53 +36,14 @@ Card borders and font colors.\if{html}{\out{
}}\preformatted{card( p("Etiam porta sem malesuada magna mollis euismod.") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Primary\if{html}{\out{ -
-}} -\if{html}{\out{ +
Primary
-}} -\if{html}{\out{ -

-}} - - -Cras justo odio, dapibus ac facilisis in, egestas eget quam.\if{html}{\out{ -

-}} -\if{html}{\out{ -

-}} - - -Etiam porta sem malesuada magna mollis euismod.\if{html}{\out{ -

-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +

Cras justo odio, dapibus ac facilisis in, egestas eget quam.

+

Etiam porta sem malesuada magna mollis euismod.

-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } } diff --git a/man/buttonGroupInput.Rd b/man/buttonGroupInput.Rd index a8699d3f..0d1ccf38 100644 --- a/man/buttonGroupInput.Rd +++ b/man/buttonGroupInput.Rd @@ -54,202 +54,70 @@ A set of buttons with custom values. \details{ \subsection{Layout options}{ -Button groups can be laid in two directions, horizontal or vertical.\if{html}{\out{
}}\preformatted{buttonGroupInput( +Button groups can be laid in two directions, horizontal or vertical. + +\if{html}{\out{
}}\preformatted{buttonGroupInput( .style \%>\% background("primary"), id = NULL, choices = c("Grape", "Raspberry", "Kiwi") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ + + +
}} -\if{html}{\out{ - -}} -Vertical button groups can help fill available space.\if{html}{\out{
}}\preformatted{buttonGroupInput( +Vertical button groups can help fill available space. + +\if{html}{\out{
}}\preformatted{buttonGroupInput( .style \%>\% background("primary"), id = NULL, choices = c("Cherry", "Apple", "Pear") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ - + + +
}} -Pear\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{
}}\preformatted{buttonGroupInput( +\if{html}{\out{
}}\preformatted{buttonGroupInput( id = "group1", choices = c("Once", "Twice", "Thrice"), values = c(1, 2, 3) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
+ + +
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } -\subsection{Styling the button group}{\if{html}{\out{
}}\preformatted{buttonGroupInput( +\subsection{Styling the button group}{ + +\if{html}{\out{
}}\preformatted{buttonGroupInput( .style \%>\% background("primary"), id = "group2", choices = c("Button 1", "Button 2", "Button 3") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
+ + +
}} -\if{html}{\out{ - -}} } } diff --git a/man/buttonInput.Rd b/man/buttonInput.Rd index da841820..ae6a5387 100644 --- a/man/buttonInput.Rd +++ b/man/buttonInput.Rd @@ -84,123 +84,64 @@ To remove a button or link input's tooltip pass an empty tooltip, \code{tooltip()}, to \code{updateButtonInput()} or \code{updateLinkInput()}. } -\subsection{Getting started}{\if{html}{\out{
}}\preformatted{buttonInput( +\subsection{Getting started}{ + +\if{html}{\out{
}}\preformatted{buttonInput( id = NULL, label = "Label" ) -}\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} +}\if{html}{\out{
}} +\if{html}{\out{}} } -\subsection{Add a little color}{\if{html}{\out{
}}\preformatted{buttonInput( +\subsection{Add a little color}{ + +\if{html}{\out{
}}\preformatted{buttonInput( .style \%>\% background("primary"), id = NULL, label = "Label" ) -}\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
}} +\if{html}{\out{}} -Label\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} +Use the \code{width()} utility to adjust the size of a button. - -Use the \code{width()} utility to adjust the size of a button.\if{html}{\out{
}}\preformatted{buttonInput( +\if{html}{\out{
}}\preformatted{buttonInput( .style \%>\% background("danger") \%>\% width(75), # <- id = NULL, label = "Label" ) -}\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} +}\if{html}{\out{
}} +\if{html}{\out{}} } -\subsection{Reactive links}{\if{html}{\out{
}}\preformatted{div( +\subsection{Reactive links}{ + +\if{html}{\out{
}}\preformatted{div( "Curabitur", linkInput(id = "link1", label = "vulputate"), "vestibulum lorem." ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} - - Curabitur -\if{html}{\out{}} -vestibulum lorem.\if{html}{\out{ -
-}} -\if{html}{\out{ + +vestibulum lorem.
}} -\if{html}{\out{ - -}} } \subsection{Stretched buttons and links}{ -Use a stretched button to make an entire card clickable.\if{html}{\out{
}}\preformatted{card( +Use a stretched button to make an entire card clickable. + +\if{html}{\out{
}}\preformatted{card( .style \%>\% border("primary") \%>\% font("primary"), @@ -218,72 +159,24 @@ Use a stretched button to make an entire card clickable.\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Product summary\if{html}{\out{ -
-}} -\if{html}{\out{ +
Product summary
-}} -\if{html}{\out{ -

-}} - - -Here is a summary\if{html}{\out{ -

-}} -\if{html}{\out{ -

-}} - - -This is a second paragraph\if{html}{\out{ -

-}} -\if{html}{\out{ +

Here is a summary

+

This is a second paragraph

-}} -\if{html}{\out{ -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} Notice, when you hover over the card the mouse cursor changes and the button appears hovered. The card is now passing clicks on to the button. -Clicking anywhere on the card will trigger a click on the button.\if{html}{\out{
}}\preformatted{card( +Clicking anywhere on the card will trigger a click on the button. + +\if{html}{\out{
}}\preformatted{card( header = "Card with stretched button", p("Notice when you hover over the card, the button also detects ", "the hover."), @@ -296,79 +189,35 @@ Clicking anywhere on the card will trigger a click on the button.\if{html}{\out{ ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Card with stretched button\if{html}{\out{ -
-}} -\if{html}{\out{ +
Card with stretched button
-}} -\if{html}{\out{

-}} - - -Notice when you hover over the card, the button also detects the hover.\if{html}{\out{ +Notice when you hover over the card, the button also detects +the hover.

-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } \subsection{Download button}{ -Pair a download button input with \code{shiny::downloadHandler()}.\if{html}{\out{
}}\preformatted{buttonInput( +Pair a download button input with \code{shiny::downloadHandler()}. + +\if{html}{\out{
}}\preformatted{buttonInput( download = TRUE, # <- id = NULL, label = "Download", tags$i(class = "fas fa-download") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ - + +Download + + }} } diff --git a/man/card.Rd b/man/card.Rd index dbebc1ac..10a43142 100644 --- a/man/card.Rd +++ b/man/card.Rd @@ -31,48 +31,27 @@ is placed around any number of cards. Additionally, grouping cards with \details{ \subsection{A simple card}{ -Cards expand to fill the width of their parent element.\if{html}{\out{
}}\preformatted{card( +Cards expand to fill the width of their parent element. + +\if{html}{\out{
}}\preformatted{card( p("Praesent fermentum tempor tellus.") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -

-}} - - -Praesent fermentum tempor tellus.\if{html}{\out{ -

-}} -\if{html}{\out{ +

Praesent fermentum tempor tellus.

-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } \subsection{Contextual styles}{ Cards include contextual content. Headings 1 through 5 are styled as -main titles and heading 6 as a subtitle.\if{html}{\out{
}}\preformatted{card( +main titles and heading 6 as a subtitle. + +\if{html}{\out{
}}\preformatted{card( h5("Title"), h6("Subtitle"), p("Nullam tempus. Mauris mollis tincidunt felis."), @@ -83,75 +62,27 @@ main titles and heading 6 as a subtitle.\if{html}{\out{
}}\preform ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Title\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} - - -Subtitle\if{html}{\out{ -
-}} -\if{html}{\out{ -

-}} - - -Nullam tempus. Mauris mollis tincidunt felis.\if{html}{\out{ -

-}} -\if{html}{\out{ -

-}} - - -Nullam libero mauris, consequat quis, varius et, dictum id, arcu.\if{html}{\out{ -

-}} -\if{html}{\out{ +
Title
+
Subtitle
+

Nullam tempus. Mauris mollis tincidunt felis.

+

Nullam libero mauris, consequat quis, varius et, dictum id, arcu.

-}} -\if{html}{\out{ -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } \subsection{Styling cards}{ -Cards can have different borders and fonts.\if{html}{\out{
}}\preformatted{card( +Cards can have different borders and fonts. + +\if{html}{\out{
}}\preformatted{card( .style \%>\% border("info") \%>\% font("info"), @@ -160,54 +91,17 @@ Cards can have different borders and fonts.\if{html}{\out{
}}\pref p("Cras placerat accumsan nulla.") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Donec pretium posuere tellus\if{html}{\out{ -
-}} -\if{html}{\out{ +
Donec pretium posuere tellus
-}} -\if{html}{\out{ -

-}} - - -Donec hendrerit tempor tellus.\if{html}{\out{ -

-}} -\if{html}{\out{ -

-}} - - -Cras placerat accumsan nulla.\if{html}{\out{ -

-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +

Donec hendrerit tempor tellus.

+

Cras placerat accumsan nulla.

-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} -\if{html}{\out{
}}\preformatted{card( + + +\if{html}{\out{
}}\preformatted{card( .style \%>\% border("danger") \%>\% font("danger"), @@ -216,56 +110,19 @@ Cras placerat accumsan nulla.\if{html}{\out{ p("Pellentesque dapibus suscipit ligula.") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -

-}} - - -Aliquam posuere.\if{html}{\out{ -

-}} -\if{html}{\out{ -

-}} - - -Phasellus neque orci, porta a, aliquet quis, semper a, massa.\if{html}{\out{ -

-}} -\if{html}{\out{ -

-}} - - -Pellentesque dapibus suscipit ligula.\if{html}{\out{ -

-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +

Aliquam posuere.

+

Phasellus neque orci, porta a, aliquet quis, semper a, massa.

+

Pellentesque dapibus suscipit ligula.

-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} -You can also change the background.\if{html}{\out{
}}\preformatted{card( +You can also change the background. + +\if{html}{\out{
}}\preformatted{card( .style \%>\% background("warning"), header = "Phasellus lacus", @@ -274,67 +131,23 @@ You can also change the background.\if{html}{\out{
}}\preformatted footer = "Nam euismod tellus id erat." ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Phasellus lacus\if{html}{\out{ -
-}} -\if{html}{\out{ +
Phasellus lacus
-}} -\if{html}{\out{ -

-}} - - -Etiam laoreet quam sed arcu.\if{html}{\out{ -

-}} -\if{html}{\out{ -

-}} - - -Etiam vel tortor sodales tellus ultricies commodo.\if{html}{\out{ -

-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } \subsection{Cards with list groups}{ -Combine a list group with a card.\if{html}{\out{
}}\preformatted{card( +Combine a list group with a card. + +\if{html}{\out{
}}\preformatted{card( listGroupInput( id = NULL, flush = TRUE, @@ -351,56 +164,19 @@ Combine a list group with a card.\if{html}{\out{
}}\preformatted{c ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ + + +
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -You can include other elements, too.\if{html}{\out{
}}\preformatted{card( +You can include other elements, too. + +\if{html}{\out{
}}\preformatted{card( h5("Title"), listGroupInput( id = NULL, @@ -411,85 +187,26 @@ You can include other elements, too.\if{html}{\out{
}}\preformatte linkInput(id = NULL, label = "Link") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Title\if{html}{\out{ -
-}} -\if{html}{\out{ +
Title
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ + +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ - -}} -\if{html}{\out{ + +
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } -\subsection{Tabbed content in cards}{\if{html}{\out{
}}\preformatted{card( +\subsection{Tabbed content in cards}{ + +\if{html}{\out{
}}\preformatted{card( header = navInput( id = "tabs", choices = c("Tab 1", "Tab 2", "Tab 3"), @@ -513,119 +230,41 @@ Link\if{html}{\out{ ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - +
Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. -Phasellus purus.\if{html}{\out{ +Phasellus purus.
-}} -\if{html}{\out{ -
-}} - - -Pellentesque tristique imperdiet tortor.\if{html}{\out{ +
Pellentesque tristique imperdiet tortor.
+
+est dui fermentum leo, quis tempor ligula erat quis odio. +Donec hendrerit tempor tellus.
-}} -\if{html}{\out{ -
-}} - - -est dui fermentum leo, quis tempor ligula erat quis odio. Donec -hendrerit tempor tellus.\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } -\subsection{Deck of cards}{\if{html}{\out{
}}\preformatted{deck( +\subsection{Deck of cards}{ + +\if{html}{\out{
}}\preformatted{deck( card( .style \%>\% background("info"), @@ -653,117 +292,34 @@ hendrerit tempor tellus.\if{html}{\out{ ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -

-}} - - -Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, -at vulputate neque nulla lacinia eros.\if{html}{\out{ -

-}} -\if{html}{\out{

-}} - - -Nunc rutrum turpis sed pede.\if{html}{\out{ +Fusce sagittis, libero non molestie mollis, magna orci ultrices +dolor, at vulputate neque nulla lacinia eros.

-}} -\if{html}{\out{ +

Nunc rutrum turpis sed pede.

-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{

-}} - - -Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec -hendrerit tempor tellus.\if{html}{\out{ +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec +hendrerit tempor tellus.

-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -

-}} - - -Donec at pede. Etiam vel neque nec dui dignissim bibendum.\if{html}{\out{ -

-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } } diff --git a/man/checkbarInput.Rd b/man/checkbarInput.Rd index 19696921..9b3091cc 100644 --- a/man/checkbarInput.Rd +++ b/man/checkbarInput.Rd @@ -48,42 +48,35 @@ buttons, but with a checked or highlighted state. \details{ \subsection{Getting started}{ -Checkbars will expand to fill the width of their parent element.\if{html}{\out{
}}\preformatted{checkbarInput( +Checkbars will expand to fill the width of their parent element. + +\if{html}{\out{
}}\preformatted{checkbarInput( .style \%>\% background("secondary"), id = NULL, choices = c("Choice 1", "Choice 2", "Choice 3") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ + + -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} -If you want to adjust the width you can use the \code{width()} utility.\if{html}{\out{
}}\preformatted{checkbarInput( +If you want to adjust the width you can use the \code{width()} utility. + +\if{html}{\out{
}}\preformatted{checkbarInput( .style \%>\% background("secondary") \%>\% width(50), # <- @@ -91,74 +84,54 @@ If you want to adjust the width you can use the \code{width()} utility.\if{html} choices = c("Choice 1", "Choice 2", "Choice 3") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ + + -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } \subsection{Background color}{ -Like other inputs, checkbar inputs apply modified background styles\if{html}{\out{
}}\preformatted{checkbarInput( +Like other inputs, checkbar inputs apply modified background styles + +\if{html}{\out{
}}\preformatted{checkbarInput( .style \%>\% background("info"), id = NULL, choices = c("Choice 1", "Choice 2") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ + -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } \subsection{Labelling}{ -Use a \code{formGroup()} to add a label or help text to checkbar input.\if{html}{\out{
}}\preformatted{formGroup( +Use a \code{formGroup()} to add a label or help text to checkbar input. + +\if{html}{\out{
}}\preformatted{formGroup( label = "Label", # <- checkbarInput( .style \%>\% @@ -170,40 +143,21 @@ Use a \code{formGroup()} to add a label or help text to checkbar input.\if{html} help = "Help text about the input" ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} - - -\if{html}{\out{}}\if{html}{\out{ +
-}} -\if{html}{\out{ + -}} -\if{html}{\out{ -
-}} - - -\if{html}{\out{}}Help text about the input\if{html}{\out{}}\if{html}{\out{
-}} -\if{html}{\out{ +Help text about the input
}} -\if{html}{\out{ - -}} } } diff --git a/man/checkboxInput.Rd b/man/checkboxInput.Rd index 92e60f65..8e41d412 100644 --- a/man/checkboxInput.Rd +++ b/man/checkboxInput.Rd @@ -87,277 +87,121 @@ inputs differ from checkboxes only in appearance. \details{ \subsection{Getting started}{ -Checkbox inputs may have a single possible value.\if{html}{\out{
}}\preformatted{checkboxInput( +Checkbox inputs may have a single possible value. + +\if{html}{\out{
}}\preformatted{checkboxInput( id = NULL, choices = "Choice 1", selected = "Choice 1" ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ + +
+
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -You may also specify multiple possible values.\if{html}{\out{
}}\preformatted{checkboxInput( +You may also specify multiple possible values. + +\if{html}{\out{
}}\preformatted{checkboxInput( id = NULL, choices = c("Choice 1", "Choice 2", "Choice 3"), selected = c("Choice 1", "Choice 2") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ + +
+
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } \subsection{Layout}{ While checkbox input choices are typically laid out vertically you can -lay out the choices horizontally with \code{inline = TRUE}.\if{html}{\out{
}}\preformatted{checkboxInput( +lay out the choices horizontally with \code{inline = TRUE}. + +\if{html}{\out{
}}\preformatted{checkboxInput( id = NULL, choices = c("Choice 1", "Choice 2", "Choice 3"), inline = TRUE # <- ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ + +
+
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } \subsection{Switch variant}{ The switch input functions identical to the checkbox input with a -different appearance.\if{html}{\out{
}}\preformatted{switchInput( +different appearance. + +\if{html}{\out{
}}\preformatted{switchInput( id = NULL, choices = c("Toggle 1", "Toggle 2", "Toggle 3"), selected = "Toggle 2" ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ + +
+
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } \subsection{Background color}{ Changing the background color of a checkbox or switch input will modify -the background color of the \emph{selected} choices.\if{html}{\out{
}}\preformatted{checkboxInput( +the background color of the \emph{selected} choices. + +\if{html}{\out{
}}\preformatted{checkboxInput( .style \%>\% background("warning"), id = NULL, @@ -365,58 +209,22 @@ the background color of the \emph{selected} choices.\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ + +
+
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{
}}\preformatted{switchInput( + + +\if{html}{\out{
}}\preformatted{switchInput( .style \%>\% background("success"), id = NULL, @@ -424,61 +232,25 @@ the background color of the \emph{selected} choices.\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ + +
+
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } -\subsection{Labelling}{\if{html}{\out{
}}\preformatted{formGroup( +\subsection{Labelling}{ + +\if{html}{\out{
}}\preformatted{formGroup( label = "Label", checkboxInput( id = NULL, @@ -487,68 +259,24 @@ the background color of the \emph{selected} choices.\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} - - -\if{html}{\out{}}\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ +
-}} -\if{html}{\out{
-}} -\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ + +
+
-}} -\if{html}{\out{
-}} -\if{html}{\out{ +Help text for the input
}} - -\if{html}{\out{}}Help text for the input\if{html}{\out{}}\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} - } } \seealso{ diff --git a/man/chipInput.Rd b/man/chipInput.Rd index 5f9b3d08..0b33fb65 100644 --- a/man/chipInput.Rd +++ b/man/chipInput.Rd @@ -81,7 +81,9 @@ specified by the \code{choices} argument. Use the \code{max} argument to limit t number of choices a user may select. } \details{ -\subsection{Getting started}{\if{html}{\out{
}}\preformatted{chipInput( +\subsection{Getting started}{ + +\if{html}{\out{
}}\preformatted{chipInput( .style \%>\% width(50), id = "chips", choices = paste("Option number", 1:10), @@ -89,209 +91,67 @@ number of choices a user may select. inline = TRUE ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{
-}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{
}}\preformatted{chipInput( + + +\if{html}{\out{
}}\preformatted{chipInput( .style \%>\% width(50) \%>\% background("primary"), @@ -306,230 +166,76 @@ Option number 10\if{html}{\out{ fill = FALSE ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
-}} -\if{html}{\out{ -}} -\if{html}{\out{
-}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} -\if{html}{\out{
}}\preformatted{chipInput( + + +\if{html}{\out{
}}\preformatted{chipInput( id = "chip1", choices = c("Choice 1", "Choice 2", "Choice 3", "Choice 4", "Choice 5"), selected = c("Choice 3", "Choice 4") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{
-}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } } diff --git a/man/collapsePane.Rd b/man/collapsePane.Rd index 50cd48e2..491756ee 100644 --- a/man/collapsePane.Rd +++ b/man/collapsePane.Rd @@ -40,7 +40,9 @@ collapsible pane first wrap the pane in another element and add padding to this new element. } \section{App with collapse}{ -\if{html}{\out{
}}\preformatted{ui <- container( + + +\if{html}{\out{
}}\preformatted{ui <- container( buttonInput( id = "demo", label = "Toggle collapse" diff --git a/man/column.Rd b/man/column.Rd index ab4d902b..6a113b9b 100644 --- a/man/column.Rd +++ b/man/column.Rd @@ -33,7 +33,9 @@ space in a row evenly amongst all columns use \code{width = "equal"}. For exampl and usage tips see the sections below. } \details{ -\subsection{Equal width columns}{\if{html}{\out{
}}\preformatted{container( +\subsection{Equal width columns}{ + +\if{html}{\out{
}}\preformatted{container( columns( column( "Aliquam erat volutpat." @@ -48,58 +50,23 @@ and usage tips see the sections below. ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Aliquam erat volutpat.\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} - - -Mauris mollis tincidunt felis.\if{html}{\out{ -
-}} -\if{html}{\out{ +
Aliquam erat volutpat.
+
Mauris mollis tincidunt felis.
-}} - - -Cum sociis natoque penatibus et magnis dis parturient montes, nascetur -ridiculus mus.\if{html}{\out{ +Cum sociis natoque penatibus et magnis dis parturient montes, +nascetur ridiculus mus.
-}} -\if{html}{\out{
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } -\subsection{Sidebar layout}{\if{html}{\out{
}}\preformatted{container( +\subsection{Sidebar layout}{ + +\if{html}{\out{
}}\preformatted{container( columns( column( width = 4, # <- @@ -113,69 +80,21 @@ ridiculus mus.\if{html}{\out{ ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Sidebar panel\if{html}{\out{ -
-}} -\if{html}{\out{ +
Sidebar panel
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Main panel\if{html}{\out{ -
-}} -\if{html}{\out{ +
Main panel
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } @@ -184,7 +103,9 @@ Main panel\if{html}{\out{ Use the \link{responsive} \code{width} argument to make mobile friendly applications. On extra small screens each column spans the entire width of the row. On larger screens the columns will instead -split the row width evenly.\if{html}{\out{
}}\preformatted{container( +split the row width evenly. + +\if{html}{\out{
}}\preformatted{container( columns( column( width = c(xs = 12, sm = 4), @@ -201,60 +122,23 @@ split the row width evenly.\if{html}{\out{
}}\preformatted{contain ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} - - -Mauris ac felis vel velit tristique imperdiet.\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} - - -Nam vestibulum accumsan nisl.\if{html}{\out{ +
Mauris ac felis vel velit tristique imperdiet.
+
Nam vestibulum accumsan nisl.
+
Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.
-}} -\if{html}{\out{ -
-}} - - -Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } \subsection{Automatic column sizing}{ Columns may be fit to the width of their content. Other columns in this -example will split the remaining space equally.\if{html}{\out{
}}\preformatted{container( +example will split the remaining space equally. + +\if{html}{\out{
}}\preformatted{container( columns( column( .style \%>\% @@ -273,55 +157,24 @@ example will split the remaining space equally.\if{html}{\out{
}}\ ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
-}} - - -Cras placerat accumsan nulla. Aenean in sem ac leo mollis blandit. Nam -euismod tellus id erat. Donec neque quam, dignissim in, mollis nec, -sagittis eu, wisi.\if{html}{\out{ +Cras placerat accumsan nulla. Aenean in sem ac leo mollis blandit. +Nam euismod tellus id erat. +Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi.
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} Without specficiying widths the space in a row is evenly split between -columns.\if{html}{\out{
}}\preformatted{container( +columns. + +\if{html}{\out{
}}\preformatted{container( columns( column(), column(), @@ -330,53 +183,15 @@ columns.\if{html}{\out{
}}\preformatted{container( ) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{
-}} -\if{html}{\out{
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ +
+
+
+
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{
}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } } diff --git a/man/d1.Rd b/man/d1.Rd index c22b3f6a..0901d2ac 100644 --- a/man/d1.Rd +++ b/man/d1.Rd @@ -24,26 +24,11 @@ Display headings are not meant to replace the standard HTML heading tags, they are a stand out alternative for eye-catching titles. } \details{ -\subsection{Getting started}{\if{html}{\out{
}}\preformatted{d4("Display 4") -}\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -

-}} +\subsection{Getting started}{ - -Display 4\if{html}{\out{ -

-}} -\if{html}{\out{ -
-}} -\if{html}{\out{ - +\if{html}{\out{
}}\preformatted{d4("Display 4") +}\if{html}{\out{
}}\if{html}{\out{ +

Display 4

}} } diff --git a/man/dot-style.Rd b/man/dot-style.Rd index 26465c9c..fa04408c 100644 --- a/man/dot-style.Rd +++ b/man/dot-style.Rd @@ -10,12 +10,16 @@ \description{ The \code{.style} pronoun allows you to define styles for a tag element within the context of the element. Prior to the introduction of the \code{.style} pronoun tag -styles were always applied outside or after constructing a tag element.\if{html}{\out{
}}\preformatted{card() \%>\% background("primary") \%>\% display("flex") +styles were always applied outside or after constructing a tag element. + +\if{html}{\out{
}}\preformatted{card() \%>\% background("primary") \%>\% display("flex") }\if{html}{\out{
}} However, once the content of a tag element grows to more than a few lines, associating the element's styles with the element becomes increasingly -unintuitive. In these situations, make use of the \code{.style} pronoun.\if{html}{\out{
}}\preformatted{card( +unintuitive. In these situations, make use of the \code{.style} pronoun. + +\if{html}{\out{
}}\preformatted{card( .style \%>\% border("primary") \%>\% font("primary") diff --git a/man/dropdown.Rd b/man/dropdown.Rd index 22e86ef2..4211ca60 100644 --- a/man/dropdown.Rd +++ b/man/dropdown.Rd @@ -39,128 +39,49 @@ more complex dropdown menu. To recreate a menut input. } -\subsection{Dropdown with buttons}{\if{html}{\out{
}}\preformatted{dropdown( +\subsection{Dropdown with buttons}{ + +\if{html}{\out{
}}\preformatted{dropdown( label = "Choices", buttonInput(id = "choice1", label = "Choice 1"), buttonInput(id = "choice2", label = "Choice 2"), buttonInput(id = "choice3", label = "Choice 3") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } -\subsection{Dropdown with links}{\if{html}{\out{
}}\preformatted{dropdown( +\subsection{Dropdown with links}{ + +\if{html}{\out{
}}\preformatted{dropdown( label = "Choices", linkInput(id = "link1", label = "Choice 1"), linkInput(id = "link2", label = "Choice 2") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ -}} -\if{html}{\out{
}} -\if{html}{\out{ - -}} } -\subsection{Grouped sections}{\if{html}{\out{
}}\preformatted{dropdown( +\subsection{Grouped sections}{ + +\if{html}{\out{
}}\preformatted{dropdown( label = "Sections", h6("Section 1"), buttonInput(id = "a", label = "Option A"), @@ -171,152 +92,45 @@ Choice 2\if{html}{\out{ buttonInput(id = "d", label = "Option D") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ }} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } -\subsection{Direction variations}{\if{html}{\out{
}}\preformatted{dropdown( +\subsection{Direction variations}{ + +\if{html}{\out{
}}\preformatted{dropdown( label = "Up!", direction = "up", buttonInput(id = "up1", label = "Choice 1"), buttonInput(id = "up2", label = "Choice 2") ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{ }} -\if{html}{\out{ -
-}} -\if{html}{\out{ - -}} } -\subsection{Dropdowns with forms}{\if{html}{\out{
}}\preformatted{dropdown( +\subsection{Dropdowns with forms}{ + +\if{html}{\out{
}}\preformatted{dropdown( label = "Sign in", formInput( id = "login", @@ -342,109 +156,31 @@ Choice 2\if{html}{\out{ padding(3, 4, 3, 4) ) }\if{html}{\out{
}}\if{html}{\out{ - -}} -\if{html}{\out{ -
-}} -\if{html}{\out{