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

Reorganize docs and files #17

Merged
merged 2 commits into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 22 additions & 14 deletions R/components.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,58 +139,65 @@ EditableText.shinyInput <- input("EditableText", "") # nolint
#'
#' Documentation: <https://blueprintjs.com/docs/#core/components/html>
#'
#' @example inst/examples/components/html_elements.R
#' @family HTML elements
#' @example inst/examples/components/htmlElements.R
#' @inherit template params
#' @name html_elements
#' @name htmlElements
NULL

#' @rdname html_elements
#' @rdname htmlElements
#' @export
H1 <- component("H1")

#' @rdname html_elements
#' @rdname htmlElements
#' @export
H2 <- component("H2")

#' @rdname html_elements
#' @rdname htmlElements
#' @export
H3 <- component("H3")

#' @rdname html_elements
#' @rdname htmlElements
#' @export
H4 <- component("H4")

#' @rdname html_elements
#' @rdname htmlElements
#' @export
H5 <- component("H5")

#' @rdname html_elements
#' @rdname htmlElements
#' @export
H6 <- component("H6")

#' @rdname html_elements
#' @rdname htmlElements
#' @export
Blockquote <- component("Blockquote")

#' @rdname html_elements
#' @rdname htmlElements
#' @export
Code <- component("Code")

# Label has its own documentation page.

#' @rdname html_elements
#' @rdname htmlElements
#' @export
Pre <- component("Pre")

#' @rdname html_elements
#' @rdname htmlElements
#' @export
OL <- component("OL")

#' @rdname html_elements
#' @rdname htmlElements
#' @export
UL <- component("UL")

#' @rdname html_elements
#' HTML table
#'
#' Documentation: <https://blueprintjs.com/docs/#core/components/html-table>
#'
#' @family HTML elements
#' @example inst/examples/components/HTMLTable.R
#' @inherit template params
#' @export
HTMLTable <- component("HTMLTable")

Expand Down Expand Up @@ -363,6 +370,7 @@ ControlGroup <- component("ControlGroup")
#'
#' Documentation: <https://blueprintjs.com/docs/#core/components/label>
#'
#' @family HTML elements
#' @example inst/examples/components/Label.R
#' @inherit template params
#' @export
Expand Down
19 changes: 19 additions & 0 deletions inst/examples/components/HTMLTable.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
library(shiny)
library(appsilon.blueprint)

if (interactive()) shinyApp(
ui = HTMLTable(
tags$thead(
tags$tr(tags$th("Project"), tags$th("Stack"), tags$th("Contributors"))
),
tags$tbody(
tags$tr(tags$td("Blueprint"), tags$td("JS React"), tags$td("268")),
tags$tr(tags$td("TS"), tags$td("JSX"), tags$td("68")),
tags$tr(tags$td("appsilon.blueprint"), tags$td("R JS"), tags$td("2"))
),
tags$tfoot(
tags$tr(tags$td("Total", colspan = 2), tags$td("1508"))
)
),
server = function(input, output) {}
)
20 changes: 20 additions & 0 deletions inst/examples/components/htmlElements.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
library(shiny)
library(appsilon.blueprint)

if (interactive()) shinyApp(
ui = tagList(
H1("H1"),
H2("H2"),
H3("H3"),
H4("H4"),
H5("H5"),
H6("H6"),
Blockquote("Blockquote"),
Code("Code"),
Label("Label"),
Pre("Pre"),
OL(tags$li("OL")),
UL(tags$li("UL"))
),
server = function(input, output) {}
)
33 changes: 0 additions & 33 deletions inst/examples/components/html_elements.R

This file was deleted.

File renamed without changes.
41 changes: 41 additions & 0 deletions man/HTMLTable.Rd

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

6 changes: 6 additions & 0 deletions man/Label.Rd

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

28 changes: 9 additions & 19 deletions man/html_elements.Rd → man/htmlElements.Rd

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