streamlit-nightly 1.46.1.dev20250625__py3-none-any.whl → 1.46.2.dev20250626__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. streamlit/elements/dialog_decorator.py +18 -1
  2. streamlit/elements/lib/column_types.py +7 -0
  3. streamlit/static/index.html +1 -1
  4. streamlit/static/manifest.json +218 -218
  5. streamlit/static/static/js/{ErrorOutline.esm.Ca4_C74G.js → ErrorOutline.esm.CJg-nD07.js} +1 -1
  6. streamlit/static/static/js/{FileDownload.esm.BEXpx-NN.js → FileDownload.esm.Bqu9hYVK.js} +1 -1
  7. streamlit/static/static/js/{FileHelper.B4GGzKqK.js → FileHelper.BTD8--nH.js} +1 -1
  8. streamlit/static/static/js/{FormClearHelper.CpsBciie.js → FormClearHelper.DwQzHDKa.js} +1 -1
  9. streamlit/static/static/js/{Hooks.DsIXUDOP.js → Hooks.CkgvOw3a.js} +1 -1
  10. streamlit/static/static/js/{InputInstructions.Dh8ccyYH.js → InputInstructions.A_59uy0m.js} +1 -1
  11. streamlit/static/static/js/{ProgressBar.C57HogTe.js → ProgressBar.B8wHlmHP.js} +2 -2
  12. streamlit/static/static/js/{RenderInPortalIfExists.JT5A_75h.js → RenderInPortalIfExists.DLkeeRK1.js} +1 -1
  13. streamlit/static/static/js/{Toolbar.BZBwHk6r.js → Toolbar.CTXCF-zE.js} +1 -1
  14. streamlit/static/static/js/{base-input.C3m059Ja.js → base-input.DLahFrJX.js} +4 -4
  15. streamlit/static/static/js/{checkbox.Bz1HY8hS.js → checkbox.BqH30Pie.js} +2 -2
  16. streamlit/static/static/js/{createSuper.BgXZoFPR.js → createSuper.BR6dNcL_.js} +1 -1
  17. streamlit/static/static/js/{data-grid-overlay-editor.DHAXzOWr.js → data-grid-overlay-editor.DHD2lEOv.js} +1 -1
  18. streamlit/static/static/js/{downloader.DXmvN319.js → downloader.Cxz7Pmav.js} +1 -1
  19. streamlit/static/static/js/{es6.Dg-Jfu-r.js → es6.CKIqaUkI.js} +2 -2
  20. streamlit/static/static/js/{iframeResizer.contentWindow.BqWlTWPM.js → iframeResizer.contentWindow.BUR39Ca8.js} +1 -1
  21. streamlit/static/static/js/{index.DyESyaCa.js → index.086fJkRW.js} +1 -1
  22. streamlit/static/static/js/index.0RieWGP-.js +1 -0
  23. streamlit/static/static/js/index.39cFhVAB.js +1 -0
  24. streamlit/static/static/js/{index.wwMXYz4o.js → index.5T0ZQUll.js} +1 -1
  25. streamlit/static/static/js/{index.B5HCKYGs.js → index.5WfC2MKX.js} +2 -2
  26. streamlit/static/static/js/{index.DkawoLEN.js → index.B5TjHKHs.js} +1 -1
  27. streamlit/static/static/js/{index.BUpHFScA.js → index.BBk99Mab.js} +1 -1
  28. streamlit/static/static/js/{index.CF7xf0Kc.js → index.BEVVZtmO.js} +56 -56
  29. streamlit/static/static/js/index.BJg-lqwR.js +1 -0
  30. streamlit/static/static/js/{index.CWNrL7gF.js → index.BnPGYwJD.js} +1 -1
  31. streamlit/static/static/js/{index.C9-NSIWy.js → index.Br9KoWfK.js} +1 -1
  32. streamlit/static/static/js/{index.C-C4puTW.js → index.BvMYFCGi.js} +1 -1
  33. streamlit/static/static/js/{index.Cob2CEOY.js → index.BydvTht8.js} +2 -2
  34. streamlit/static/static/js/{index.D6NDAr7R.js → index.C0sFxtmT.js} +1 -1
  35. streamlit/static/static/js/{index.Bpq_TVP8.js → index.C46vZAVk.js} +1 -1
  36. streamlit/static/static/js/{index.04JkG8Km.js → index.C8wAT-1P.js} +1 -1
  37. streamlit/static/static/js/{index.C6WBb5UI.js → index.CF_0T827.js} +1 -1
  38. streamlit/static/static/js/index.CJNu66g-.js +1 -0
  39. streamlit/static/static/js/{index.BSduVAl-.js → index.Ched5ljK.js} +1 -1
  40. streamlit/static/static/js/{index.CxdFkXN7.js → index.Cp5DQ0Nk.js} +1 -1
  41. streamlit/static/static/js/{index.CIgyykei.js → index.Cx9oo677.js} +1 -1
  42. streamlit/static/static/js/{index.BgoLThsY.js → index.CxswEeN7.js} +1 -1
  43. streamlit/static/static/js/{index.D_AaeKaM.js → index.D5Bi0_IY.js} +1 -1
  44. streamlit/static/static/js/{index.1o7GFmH9.js → index.DFLLK5fQ.js} +1 -1
  45. streamlit/static/static/js/{index.Q4yOipZt.js → index.DaVYWs29.js} +3 -3
  46. streamlit/static/static/js/{index.De84gVwH.js → index.DbeUpiV0.js} +1 -1
  47. streamlit/static/static/js/{index.lctgkaZQ.js → index.DlQzdr4z.js} +1 -1
  48. streamlit/static/static/js/{index.CL0g79ua.js → index.DoCkeB4S.js} +1 -1
  49. streamlit/static/static/js/{index.C8kJiudO.js → index.Dpi_eA9w.js} +1 -1
  50. streamlit/static/static/js/{index.B-IWkE_m.js → index.Dt6vo5Wt.js} +1 -1
  51. streamlit/static/static/js/{index.BEHais2d.js → index.Du_GhChx.js} +8 -8
  52. streamlit/static/static/js/{index.CLutgZmA.js → index.NIVZIka1.js} +2 -2
  53. streamlit/static/static/js/{index.D8Opklrn.js → index.YJxN7uL8.js} +1 -1
  54. streamlit/static/static/js/{index.B_GGKi7h.js → index._udMrZfX.js} +1 -1
  55. streamlit/static/static/js/{index.BgcFXG8Y.js → index.d0pgY8V8.js} +1 -1
  56. streamlit/static/static/js/{index.DPwE86ME.js → index.dRZ6j1EM.js} +1 -1
  57. streamlit/static/static/js/{index.BqfEAvp0.js → index.jk8Nloxj.js} +1 -1
  58. streamlit/static/static/js/{input.G0_SQaLD.js → input.CYwqmJUN.js} +1 -1
  59. streamlit/static/static/js/{memory.B6tpNh1r.js → memory.CwoWYYJe.js} +1 -1
  60. streamlit/static/static/js/{mergeWith.BIMOGvX0.js → mergeWith.CM4ZdUxz.js} +1 -1
  61. streamlit/static/static/js/{number-overlay-editor.BGVzFv7I.js → number-overlay-editor.App3Ir5h.js} +1 -1
  62. streamlit/static/static/js/{possibleConstructorReturn.Bk9dXD1L.js → possibleConstructorReturn.DLN_CW-A.js} +1 -1
  63. streamlit/static/static/js/{sandbox.DWWQ1lBu.js → sandbox.AnJN0uBk.js} +1 -1
  64. streamlit/static/static/js/{textarea.FHoad42C.js → textarea.uAcwGUtc.js} +2 -2
  65. streamlit/static/static/js/{timepicker.yc5xqDUF.js → timepicker.DDp122zI.js} +4 -4
  66. streamlit/static/static/js/{toConsumableArray.DfbSd22b.js → toConsumableArray.CXCskjcZ.js} +1 -1
  67. streamlit/static/static/js/{uniqueId.C03hvAF0.js → uniqueId.DQ5uc9Dn.js} +1 -1
  68. streamlit/static/static/js/{useBasicWidgetState.DxtD7xs-.js → useBasicWidgetState.DFIfVHMH.js} +1 -1
  69. streamlit/static/static/js/{useOnInputChange.DqPkFylT.js → useOnInputChange.qZzWT6UC.js} +1 -1
  70. streamlit/static/static/js/{withFullScreenWrapper.CAwHwFP9.js → withFullScreenWrapper.6Cdl0P_3.js} +1 -1
  71. streamlit/web/server/server.py +3 -1
  72. streamlit/web/server/server_util.py +24 -0
  73. {streamlit_nightly-1.46.1.dev20250625.dist-info → streamlit_nightly-1.46.2.dev20250626.dist-info}/METADATA +1 -1
  74. {streamlit_nightly-1.46.1.dev20250625.dist-info → streamlit_nightly-1.46.2.dev20250626.dist-info}/RECORD +78 -78
  75. streamlit/static/static/js/index.CuNbzfuD.js +0 -1
  76. streamlit/static/static/js/index.DSVau5_M.js +0 -1
  77. streamlit/static/static/js/index.PYYOff5g.js +0 -1
  78. streamlit/static/static/js/index.tO_5FrTQ.js +0 -1
  79. {streamlit_nightly-1.46.1.dev20250625.data → streamlit_nightly-1.46.2.dev20250626.data}/scripts/streamlit.cmd +0 -0
  80. {streamlit_nightly-1.46.1.dev20250625.dist-info → streamlit_nightly-1.46.2.dev20250626.dist-info}/WHEEL +0 -0
  81. {streamlit_nightly-1.46.1.dev20250625.dist-info → streamlit_nightly-1.46.2.dev20250626.dist-info}/entry_points.txt +0 -0
  82. {streamlit_nightly-1.46.1.dev20250625.dist-info → streamlit_nightly-1.46.2.dev20250626.dist-info}/top_level.txt +0 -0
@@ -134,7 +134,7 @@ def dialog_decorator(title: F, *, width: DialogWidth = "small") -> F: ...
134
134
  def dialog_decorator(
135
135
  title: F | str, *, width: DialogWidth = "small"
136
136
  ) -> F | Callable[[F], F]:
137
- """Function decorator to create a modal dialog.
137
+ r"""Function decorator to create a modal dialog.
138
138
 
139
139
  A function decorated with ``@st.dialog`` becomes a dialog
140
140
  function. When you call a dialog function, Streamlit inserts a modal dialog
@@ -173,6 +173,23 @@ def dialog_decorator(
173
173
  ----------
174
174
  title : str
175
175
  The title to display at the top of the modal dialog. It cannot be empty.
176
+
177
+ The title can optionally contain GitHub-flavored Markdown of the
178
+ following types: Bold, Italics, Strikethroughs, Inline Code, Links,
179
+ and Images. Images display like icons, with a max height equal to
180
+ the font height.
181
+
182
+ Unsupported Markdown elements are unwrapped so only their children
183
+ (text contents) render. Display unsupported elements as literal
184
+ characters by backslash-escaping them. E.g.,
185
+ ``"1\. Not an ordered list"``.
186
+
187
+ See the ``body`` parameter of |st.markdown|_ for additional,
188
+ supported Markdown directives.
189
+
190
+ .. |st.markdown| replace:: ``st.markdown``
191
+ .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
192
+
176
193
  width : "small", "large"
177
194
  The width of the modal dialog. If ``width`` is ``"small`` (default), the
178
195
  modal dialog will be 500 pixels wide. If ``width`` is ``"large"``, the
@@ -23,6 +23,7 @@ from typing import TYPE_CHECKING, Literal, TypedDict
23
23
  from typing_extensions import NotRequired, TypeAlias
24
24
 
25
25
  from streamlit.runtime.metrics_util import gather_metrics
26
+ from streamlit.string_util import validate_material_icon
26
27
 
27
28
  if TYPE_CHECKING:
28
29
  from collections.abc import Iterable
@@ -38,6 +39,7 @@ NumberFormat: TypeAlias = Literal[
38
39
  "scientific",
39
40
  "engineering",
40
41
  "accounting",
42
+ "bytes",
41
43
  ]
42
44
 
43
45
  ColumnWidth: TypeAlias = Literal["small", "medium", "large"]
@@ -429,6 +431,7 @@ def NumberColumn(
429
431
  - ``"euro"``: Show the number as a euro amount (e.g. "€1,234.57").
430
432
  - ``"yen"``: Show the number as a yen amount (e.g. "¥1,235").
431
433
  - ``"accounting"``: Show the number in an accounting format (e.g. "1,234.00").
434
+ - ``"bytes"``: Show the number in a byte format (e.g. "1.2KB").
432
435
  - ``"compact"``: Show the number in a compact format (e.g. "1.2K").
433
436
  - ``"scientific"``: Show the number in scientific notation (e.g. "1.235E3").
434
437
  - ``"engineering"``: Show the number in engineering notation (e.g. "1.235E3").
@@ -711,6 +714,7 @@ def LinkColumn(
711
714
 
712
715
  - ``None`` (default) to display the URL itself.
713
716
  - A string that is displayed in every cell, e.g. ``"Open link"``.
717
+ - A material icon displayed in every cell, e.g. ``":material/open_in_new:"``
714
718
  - A JS-flavored regular expression (detected by usage of parentheses)
715
719
  to extract a part of the URL via a capture group. For example, use
716
720
  ``"https://(.*?)\.example\.com"`` to extract the display text
@@ -768,6 +772,8 @@ def LinkColumn(
768
772
  https://doc-link-column.streamlit.app/
769
773
  height: 300px
770
774
  """
775
+ if display_text and display_text.startswith(":material/"):
776
+ display_text = validate_material_icon(display_text)
771
777
 
772
778
  return ColumnConfig(
773
779
  label=label,
@@ -2005,6 +2011,7 @@ def ProgressColumn(
2005
2011
  - ``"euro"``: Show the number as a euro amount (e.g. "€1,234.57").
2006
2012
  - ``"yen"``: Show the number as a yen amount (e.g. "¥1,235").
2007
2013
  - ``"accounting"``: Show the number in an accounting format (e.g. "1,234.00").
2014
+ - ``"bytes"``: Show the number in a byte format (e.g. "1.2KB").
2008
2015
  - ``"compact"``: Show the number in a compact format (e.g. "1.2K").
2009
2016
  - ``"scientific"``: Show the number in scientific notation (e.g. "1.235E3").
2010
2017
  - ``"engineering"``: Show the number in engineering notation (e.g. "1.235E3").
@@ -37,7 +37,7 @@
37
37
  <script>
38
38
  window.prerenderReady = false
39
39
  </script>
40
- <script type="module" crossorigin src="./static/js/index.BEHais2d.js"></script>
40
+ <script type="module" crossorigin src="./static/js/index.Du_GhChx.js"></script>
41
41
  <link rel="stylesheet" crossorigin href="./static/css/index.CJVRHjQZ.css">
42
42
  </head>
43
43
  <body>