Skip to content

Commit b2b32b3

Browse files
gadenbuiecpsievert
andauthored
feat: Toasts (#1246)
* feat: Add toast notification R API Implement core R functions for toast notifications: - toast(): Create toast objects with customizable options - show_toast(): Display toasts in Shiny apps - hide_toast(): Manually dismiss toasts - toast_header(): Create structured headers with icons/status --------- Co-authored-by: Carson Sievert <[email protected]>
1 parent 86ca69f commit b2b32b3

File tree

51 files changed

+2967
-20
lines changed

Some content is hidden

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

51 files changed

+2967
-20
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ inst/lib/bsw3/.npmignore
3535
^AGENTS\.md$
3636
^[.]?air[.]toml$
3737
^\.vscode$
38+
^inst/examples-shiny/toast/\.gitignore$
39+
^inst/examples-shiny/brand\.yml/\.gitignore$

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: bslib
22
Title: Custom 'Bootstrap' 'Sass' Themes for 'shiny' and 'rmarkdown'
3-
Version: 0.9.0.9000
3+
Version: 0.9.0.9002
44
Authors@R: c(
55
person("Carson", "Sievert", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-4958-2844")),
@@ -115,6 +115,7 @@ Collate:
115115
'shiny-devmode.R'
116116
'sidebar.R'
117117
'staticimports.R'
118+
'toast.R'
118119
'tooltip.R'
119120
'utils-deps.R'
120121
'utils-shiny.R'

NAMESPACE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Generated by roxygen2: do not edit by hand
22

33
S3method(as.tags,bslib_sidebar)
4+
S3method(as.tags,bslib_toast)
45
S3method(bind_task_button,ExtendedTask)
56
S3method(bind_task_button,default)
67
S3method(brand_resolve,"NULL")
@@ -17,9 +18,14 @@ S3method(print,bslib_fragment)
1718
S3method(print,bslib_navbar_options)
1819
S3method(print,bslib_page)
1920
S3method(print,bslib_showcase_layout)
21+
S3method(print,bslib_toast)
2022
S3method(print,bslib_value_box_theme)
2123
S3method(save_html,bslib_fragment)
2224
S3method(save_html,bslib_page)
25+
S3method(toast_component_header,bslib_toast_header)
26+
S3method(toast_component_header,character)
27+
S3method(toast_component_header,default)
28+
S3method(toast_component_header,list)
2329
export(accordion)
2430
export(accordion_panel)
2531
export(accordion_panel_close)
@@ -86,6 +92,7 @@ export(font_collection)
8692
export(font_face)
8793
export(font_google)
8894
export(font_link)
95+
export(hide_toast)
8996
export(input_dark_mode)
9097
export(input_submit_textarea)
9198
export(input_switch)
@@ -140,13 +147,16 @@ export(popover)
140147
export(precompiled_css_path)
141148
export(remove_all_fill)
142149
export(run_with_themer)
150+
export(show_toast)
143151
export(showcase_bottom)
144152
export(showcase_left_center)
145153
export(showcase_top_right)
146154
export(sidebar)
147155
export(sidebar_toggle)
148156
export(theme_bootswatch)
149157
export(theme_version)
158+
export(toast)
159+
export(toast_header)
150160
export(toggle_dark_mode)
151161
export(toggle_popover)
152162
export(toggle_sidebar)

R/sysdata.rda

259 KB
Binary file not shown.

0 commit comments

Comments
 (0)