streamlit-nightly 1.45.2.dev20250609__py3-none-any.whl → 1.45.2.dev20250610__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 (107) hide show
  1. streamlit/elements/spinner.py +17 -1
  2. streamlit/elements/widgets/radio.py +21 -1
  3. streamlit/static/index.html +5 -5
  4. streamlit/static/manifest.json +291 -291
  5. streamlit/static/static/css/{index.C6rq3aMZ.css → index.B57yoT8i.css} +1 -1
  6. streamlit/static/static/js/{ErrorOutline.esm.DPSvnAZl.js → ErrorOutline.esm.BFmVpS9Y.js} +1 -1
  7. streamlit/static/static/js/{FileDownload.esm.Dq4gf5Ma.js → FileDownload.esm.CUwGnb6l.js} +1 -1
  8. streamlit/static/static/js/{FileHelper.CGlOwDmI.js → FileHelper.7jhiJzN9.js} +1 -1
  9. streamlit/static/static/js/{FormClearHelper.Bzr0lxz8.js → FormClearHelper.DHx8ahLp.js} +1 -1
  10. streamlit/static/static/js/{Hooks.XjcePFDz.js → Hooks.BDCbPb9Z.js} +1 -1
  11. streamlit/static/static/js/{InputInstructions.B4r5deJK.js → InputInstructions.B29VfaHu.js} +1 -1
  12. streamlit/static/static/js/{ProgressBar.BpLfvKEk.js → ProgressBar.DCvzFED3.js} +1 -1
  13. streamlit/static/static/js/{RenderInPortalIfExists.s9TJxze4.js → RenderInPortalIfExists.Dum6Yo4x.js} +1 -1
  14. streamlit/static/static/js/{Toolbar.CpN1Y8Ph.js → Toolbar.BKJU0yem.js} +1 -1
  15. streamlit/static/static/js/{base-input.BJ4xTy-v.js → base-input.B5D5SCDU.js} +1 -1
  16. streamlit/static/static/js/{checkbox.DE-YA6Ye.js → checkbox.eyyRCmXH.js} +1 -1
  17. streamlit/static/static/js/{createSuper.HyIBMcPl.js → createSuper.Bfw-n2CW.js} +1 -1
  18. streamlit/static/static/js/{data-grid-overlay-editor.BmMK_3hp.js → data-grid-overlay-editor.Ic_-1uWB.js} +1 -1
  19. streamlit/static/static/js/{downloader.Cx_bgHAi.js → downloader.BrOujhsH.js} +1 -1
  20. streamlit/static/static/js/{es6.CQlJWXgz.js → es6.Da9PSRiO.js} +2 -2
  21. streamlit/static/static/js/{iframeResizer.contentWindow.YSe-ULR9.js → iframeResizer.contentWindow.-m9KEHjj.js} +1 -1
  22. streamlit/static/static/js/{index.DHK750uA.js → index.B2Wwybqa.js} +1 -1
  23. streamlit/static/static/js/{index.CYOKgsAX.js → index.B6hFQ_0c.js} +1 -1
  24. streamlit/static/static/js/{index.Bu00INAj.js → index.B9Hmg5tY.js} +1 -1
  25. streamlit/static/static/js/{index.C-vuyKHe.js → index.B9zQe0Ch.js} +1 -1
  26. streamlit/static/static/js/{index.TltPE7XP.js → index.BCuDY7Wq.js} +1 -1
  27. streamlit/static/static/js/{index.B_FFd4-h.js → index.BFvBq9Ky.js} +1 -1
  28. streamlit/static/static/js/{index.bnbHIlia.js → index.B_hrvDfD.js} +1 -1
  29. streamlit/static/static/js/{index.4DOWGwr3.js → index.Bkc0rVhi.js} +1 -1
  30. streamlit/static/static/js/{index.DT7-7fMk.js → index.BxCeuwGy.js} +5 -5
  31. streamlit/static/static/js/{index.Ch9d9jgn.js → index.C2jhjPwI.js} +1 -1
  32. streamlit/static/static/js/{index.paoSwA79.js → index.C8Tx_yNT.js} +1 -1
  33. streamlit/static/static/js/{index.SdjZDfiz.js → index.CVnrNDsY.js} +1 -1
  34. streamlit/static/static/js/{index.Br_6W7Ok.js → index.CZ7DfyLC.js} +1 -1
  35. streamlit/static/static/js/{index.CW7dpSHW.js → index.CsG3cY4S.js} +1 -1
  36. streamlit/static/static/js/{index.CRqlHLrY.js → index.CsRqF1UT.js} +1 -1
  37. streamlit/static/static/js/{index.C4K_J-xT.js → index.Cy5cgtmd.js} +1 -1
  38. streamlit/static/static/js/{index.Dn_0PWc5.js → index.D-xYY77h.js} +1 -1
  39. streamlit/static/static/js/{index.BXcwjtgF.js → index.DD4IkJLw.js} +5 -5
  40. streamlit/static/static/js/{index.Brb2rwe5.js → index.DHyANL2t.js} +1 -1
  41. streamlit/static/static/js/{index.CxRHV8UN.js → index.DKRwWqPL.js} +1 -1
  42. streamlit/static/static/js/{index.DxpoRtMm.js → index.DM31JZhq.js} +1 -1
  43. streamlit/static/static/js/{index.B4zNurye.js → index.DVX3m8nA.js} +1 -1
  44. streamlit/static/static/js/{index.ErO4BalD.js → index.DWZy7E8v.js} +1 -1
  45. streamlit/static/static/js/{index.BF7WGy0A.js → index.Da6TsobW.js} +1 -1
  46. streamlit/static/static/js/{index.Cpqc7tRy.js → index.DkDFCkmE.js} +1 -1
  47. streamlit/static/static/js/{index.DtG6Z3MJ.js → index.DpjOn_mW.js} +1 -1
  48. streamlit/static/static/js/{index.CuDJY4WR.js → index.Dv1JTAEg.js} +1 -1
  49. streamlit/static/static/js/{index.DwQ4wXWh.js → index.Dzd6lYTb.js} +1 -1
  50. streamlit/static/static/js/{index.BPnusRc_.js → index.E46WZGKk.js} +1 -1
  51. streamlit/static/static/js/{index.Cp05GLXV.js → index.Ff_iBwit.js} +1 -1
  52. streamlit/static/static/js/{index.CzBLcg5Y.js → index.LVLiaAG5.js} +1 -1
  53. streamlit/static/static/js/{index.BJrS5MAH.js → index.X0NCujg7.js} +1 -1
  54. streamlit/static/static/js/{index.DKGPAEFz.js → index.bgJFjVuq.js} +1 -1
  55. streamlit/static/static/js/{index.DK0XGBKq.js → index.hHS2hw5y.js} +1 -1
  56. streamlit/static/static/js/{index.CcXxnSCT.js → index.lfluHnyb.js} +1 -1
  57. streamlit/static/static/js/{index.C_c8e-5A.js → index.rCHgixxf.js} +1 -1
  58. streamlit/static/static/js/{index.2tjJrlKf.js → index.tgnkrUS7.js} +1 -1
  59. streamlit/static/static/js/{input.aAklmoZJ.js → input.CcBKvzV7.js} +1 -1
  60. streamlit/static/static/js/{memory.2F8FWva7.js → memory.Dy3vhhGd.js} +1 -1
  61. streamlit/static/static/js/{mergeWith.Y1UWKEuM.js → mergeWith.Br7ttj2E.js} +1 -1
  62. streamlit/static/static/js/{number-overlay-editor.Bje9ferA.js → number-overlay-editor.Dp8qIE2c.js} +1 -1
  63. streamlit/static/static/js/{possibleConstructorReturn.CFo__Sc1.js → possibleConstructorReturn.DrBKFKPb.js} +1 -1
  64. streamlit/static/static/js/{sandbox.CXYFQ0n9.js → sandbox._fV6ffVT.js} +1 -1
  65. streamlit/static/static/js/{textarea.CpyUweiS.js → textarea.CG3YusUv.js} +1 -1
  66. streamlit/static/static/js/{timepicker.DGJQS8FC.js → timepicker.CgWFbpop.js} +1 -1
  67. streamlit/static/static/js/{toConsumableArray.Coqsx-A_.js → toConsumableArray.COmxQMZV.js} +1 -1
  68. streamlit/static/static/js/{uniqueId.YqFJqzby.js → uniqueId.Cp7qO6qN.js} +1 -1
  69. streamlit/static/static/js/{useBasicWidgetState.DmT-fPrJ.js → useBasicWidgetState.CunX1Hmv.js} +1 -1
  70. streamlit/static/static/js/{useOnInputChange.ahkIk-J7.js → useOnInputChange.DCd-U4SE.js} +1 -1
  71. streamlit/static/static/js/{withFullScreenWrapper.CQYaVcKq.js → withFullScreenWrapper.C9CPnWj9.js} +1 -1
  72. streamlit/static/static/media/SourceSans-Bold.ttf.gn7Db9ke.woff2 +0 -0
  73. streamlit/static/static/media/SourceSans-BoldIt.ttf.Bp6Ygjgu.woff2 +0 -0
  74. streamlit/static/static/media/SourceSans-It.ttf.CKnmOrYX.woff2 +0 -0
  75. streamlit/static/static/media/SourceSans-Regular.ttf.BqTI-3mA.woff2 +0 -0
  76. streamlit/static/static/media/SourceSans-Semibold.ttf.BQV5CVwD.woff2 +0 -0
  77. streamlit/static/static/media/SourceSans-SemiboldIt.ttf.C62jiOej.woff2 +0 -0
  78. streamlit/static/static/media/SourceSerif-Bold.ttf.Csh8T7yr.woff2 +0 -0
  79. streamlit/static/static/media/SourceSerif-BoldIt.ttf.1j4hxMHI.woff2 +0 -0
  80. streamlit/static/static/media/SourceSerif-It.ttf.Cr-UUpZM.woff2 +0 -0
  81. streamlit/static/static/media/SourceSerif-Regular.ttf.BNbBs0kC.woff2 +0 -0
  82. streamlit/static/static/media/SourceSerif-Semibold.ttf.CL4HK1l8.woff2 +0 -0
  83. streamlit/static/static/media/SourceSerif-SemiboldIt.ttf.C2G1sf1n.woff2 +0 -0
  84. {streamlit_nightly-1.45.2.dev20250609.dist-info → streamlit_nightly-1.45.2.dev20250610.dist-info}/METADATA +1 -1
  85. {streamlit_nightly-1.45.2.dev20250609.dist-info → streamlit_nightly-1.45.2.dev20250610.dist-info}/RECORD +95 -95
  86. streamlit/static/static/media/SourceSansPro-Bold.-6c9oR8J.woff2 +0 -0
  87. streamlit/static/static/media/SourceSansPro-BoldItalic.DmM_grLY.woff2 +0 -0
  88. streamlit/static/static/media/SourceSansPro-Italic.I1ipWe7Q.woff2 +0 -0
  89. streamlit/static/static/media/SourceSansPro-Regular.DZLUzqI4.woff2 +0 -0
  90. streamlit/static/static/media/SourceSansPro-SemiBold.sKQIyTMz.woff2 +0 -0
  91. streamlit/static/static/media/SourceSansPro-SemiBoldItalic.C0wP0icr.woff2 +0 -0
  92. streamlit/static/static/media/SourceSerifPro-Bold.8TUnKj4x.woff2 +0 -0
  93. streamlit/static/static/media/SourceSerifPro-BoldItalic.CBVO7Ve7.woff2 +0 -0
  94. streamlit/static/static/media/SourceSerifPro-Italic.DkFgL2HZ.woff2 +0 -0
  95. streamlit/static/static/media/SourceSerifPro-Regular.CNJNET2S.woff2 +0 -0
  96. streamlit/static/static/media/SourceSerifPro-SemiBold.CHyh9GC5.woff2 +0 -0
  97. streamlit/static/static/media/SourceSerifPro-SemiBoldItalic.CBtz8sWN.woff2 +0 -0
  98. /streamlit/static/static/media/{SourceCodePro-Bold.CFEfr7-q.woff2 → SourceCode-Bold.ttf.CFEfr7-q.woff2} +0 -0
  99. /streamlit/static/static/media/{SourceCodePro-BoldItalic.C-LkFXxa.woff2 → SourceCode-BoldIt.ttf.C-LkFXxa.woff2} +0 -0
  100. /streamlit/static/static/media/{SourceCodePro-Italic.CxFOx7N-.woff2 → SourceCode-It.ttf.CxFOx7N-.woff2} +0 -0
  101. /streamlit/static/static/media/{SourceCodePro-Regular.CBOlD63d.woff2 → SourceCode-Regular.ttf.CBOlD63d.woff2} +0 -0
  102. /streamlit/static/static/media/{SourceCodePro-SemiBold.CFHwW3Wd.woff2 → SourceCode-Semibold.ttf.CFHwW3Wd.woff2} +0 -0
  103. /streamlit/static/static/media/{SourceCodePro-SemiBoldItalic.Cg2yRu82.woff2 → SourceCode-SemiboldIt.ttf.Cg2yRu82.woff2} +0 -0
  104. {streamlit_nightly-1.45.2.dev20250609.data → streamlit_nightly-1.45.2.dev20250610.data}/scripts/streamlit.cmd +0 -0
  105. {streamlit_nightly-1.45.2.dev20250609.dist-info → streamlit_nightly-1.45.2.dev20250610.dist-info}/WHEEL +0 -0
  106. {streamlit_nightly-1.45.2.dev20250609.dist-info → streamlit_nightly-1.45.2.dev20250610.dist-info}/entry_points.txt +0 -0
  107. {streamlit_nightly-1.45.2.dev20250609.dist-info → streamlit_nightly-1.45.2.dev20250610.dist-info}/top_level.txt +0 -0
@@ -19,6 +19,11 @@ import threading
19
19
  from typing import TYPE_CHECKING, Final
20
20
 
21
21
  import streamlit as st
22
+ from streamlit.elements.lib.layout_utils import (
23
+ LayoutConfig,
24
+ Width,
25
+ validate_width,
26
+ )
22
27
  from streamlit.runtime.scriptrunner import add_script_run_ctx
23
28
 
24
29
  if TYPE_CHECKING:
@@ -35,6 +40,7 @@ def spinner(
35
40
  *,
36
41
  show_time: bool = False,
37
42
  _cache: bool = False,
43
+ width: Width = "content",
38
44
  ) -> Iterator[None]:
39
45
  """Display a loading spinner while executing a block of code.
40
46
 
@@ -59,6 +65,11 @@ def spinner(
59
65
  elapsed time is displayed with a precision of 0.1 seconds. The time
60
66
  format is not configurable.
61
67
 
68
+ width : "content", "stretch", or int
69
+ The width of the spinner. Can be "content" (default) to size the spinner
70
+ to its content, "stretch" to fill the container width, or an integer
71
+ number of pixels.
72
+
62
73
  Example
63
74
  -------
64
75
  >>> import streamlit as st
@@ -77,6 +88,9 @@ def spinner(
77
88
  from streamlit.proto.Spinner_pb2 import Spinner as SpinnerProto
78
89
  from streamlit.string_util import clean_text
79
90
 
91
+ validate_width(width, allow_content=True)
92
+ layout_config = LayoutConfig(width=width)
93
+
80
94
  message = st.empty()
81
95
 
82
96
  display_message = True
@@ -91,7 +105,9 @@ def spinner(
91
105
  spinner_proto.text = clean_text(text)
92
106
  spinner_proto.cache = _cache
93
107
  spinner_proto.show_time = show_time
94
- message._enqueue("spinner", spinner_proto)
108
+ message._enqueue(
109
+ "spinner", spinner_proto, layout_config=layout_config
110
+ )
95
111
 
96
112
  add_script_run_ctx(threading.Timer(DELAY_SECS, set_message)).start()
97
113
 
@@ -22,6 +22,11 @@ from typing_extensions import Never
22
22
 
23
23
  from streamlit.dataframe_util import OptionSequence, convert_anything_to_list
24
24
  from streamlit.elements.lib.form_utils import current_form_id
25
+ from streamlit.elements.lib.layout_utils import (
26
+ LayoutConfig,
27
+ Width,
28
+ validate_width,
29
+ )
25
30
  from streamlit.elements.lib.options_selector_utils import index_, maybe_coerce_enum
26
31
  from streamlit.elements.lib.policies import (
27
32
  check_widget_policies,
@@ -98,6 +103,7 @@ class RadioMixin:
98
103
  horizontal: bool = False,
99
104
  captions: Sequence[str] | None = None,
100
105
  label_visibility: LabelVisibility = "visible",
106
+ width: Width = "content",
101
107
  ) -> None: ...
102
108
 
103
109
  @overload
@@ -117,6 +123,7 @@ class RadioMixin:
117
123
  horizontal: bool = False,
118
124
  captions: Sequence[str] | None = None,
119
125
  label_visibility: LabelVisibility = "visible",
126
+ width: Width = "content",
120
127
  ) -> T: ...
121
128
 
122
129
  @overload
@@ -136,6 +143,7 @@ class RadioMixin:
136
143
  horizontal: bool = False,
137
144
  captions: Sequence[str] | None = None,
138
145
  label_visibility: LabelVisibility = "visible",
146
+ width: Width = "content",
139
147
  ) -> T | None: ...
140
148
 
141
149
  @gather_metrics("radio")
@@ -155,6 +163,7 @@ class RadioMixin:
155
163
  horizontal: bool = False,
156
164
  captions: Sequence[str] | None = None,
157
165
  label_visibility: LabelVisibility = "visible",
166
+ width: Width = "content",
158
167
  ) -> T | None:
159
168
  r"""Display a radio button widget.
160
169
 
@@ -243,6 +252,11 @@ class RadioMixin:
243
252
  label, which can help keep the widget aligned with other widgets.
244
253
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
245
254
 
255
+ width : "content", "stretch", or int
256
+ The width of the widget. Can be "content" (default) to size the widget
257
+ to its content, "stretch" to fill the container width, or an integer
258
+ number of pixels.
259
+
246
260
  Returns
247
261
  -------
248
262
  any
@@ -304,6 +318,7 @@ class RadioMixin:
304
318
  captions=captions,
305
319
  label_visibility=label_visibility,
306
320
  ctx=ctx,
321
+ width=width,
307
322
  )
308
323
 
309
324
  def _radio(
@@ -323,6 +338,7 @@ class RadioMixin:
323
338
  label_visibility: LabelVisibility = "visible",
324
339
  captions: Sequence[str] | None = None,
325
340
  ctx: ScriptRunContext | None,
341
+ width: Width = "content",
326
342
  ) -> T | None:
327
343
  key = to_key(key)
328
344
 
@@ -334,6 +350,9 @@ class RadioMixin:
334
350
  )
335
351
  maybe_raise_label_warnings(label, label_visibility)
336
352
 
353
+ validate_width(width, allow_content=True)
354
+ layout_config = LayoutConfig(width=width)
355
+
337
356
  opt = convert_anything_to_list(options)
338
357
  check_python_comparable(opt)
339
358
 
@@ -348,6 +367,7 @@ class RadioMixin:
348
367
  help=help,
349
368
  horizontal=horizontal,
350
369
  captions=captions,
370
+ width=width,
351
371
  )
352
372
 
353
373
  if not isinstance(index, int) and index is not None:
@@ -415,7 +435,7 @@ class RadioMixin:
415
435
 
416
436
  if ctx:
417
437
  save_for_app_testing(ctx, element_id, format_func)
418
- self.dg._enqueue("radio", radio_proto)
438
+ self.dg._enqueue("radio", radio_proto, layout_config=layout_config)
419
439
  return widget_state.value
420
440
 
421
441
  @property
@@ -25,21 +25,21 @@
25
25
  <link rel="shortcut icon" href="./favicon.png" />
26
26
  <link
27
27
  rel="preload"
28
- href="./static/media/SourceSansPro-Regular.DZLUzqI4.woff2"
28
+ href="./static/media/SourceSans-Regular.ttf.BqTI-3mA.woff2"
29
29
  as="font"
30
30
  type="font/woff2"
31
31
  crossorigin
32
32
  />
33
33
  <link
34
34
  rel="preload"
35
- href="./static/media/SourceSansPro-SemiBold.sKQIyTMz.woff2"
35
+ href="./static/media/SourceSans-Semibold.ttf.BQV5CVwD.woff2"
36
36
  as="font"
37
37
  type="font/woff2"
38
38
  crossorigin
39
39
  />
40
40
  <link
41
41
  rel="preload"
42
- href="./static/media/SourceSansPro-Bold.-6c9oR8J.woff2"
42
+ href="./static/media/SourceSans-Bold.ttf.gn7Db9ke.woff2"
43
43
  as="font"
44
44
  type="font/woff2"
45
45
  crossorigin
@@ -51,8 +51,8 @@
51
51
  <script>
52
52
  window.prerenderReady = false
53
53
  </script>
54
- <script type="module" crossorigin src="./static/js/index.DT7-7fMk.js"></script>
55
- <link rel="stylesheet" crossorigin href="./static/css/index.C6rq3aMZ.css">
54
+ <script type="module" crossorigin src="./static/js/index.BxCeuwGy.js"></script>
55
+ <link rel="stylesheet" crossorigin href="./static/css/index.B57yoT8i.css">
56
56
  </head>
57
57
  <body>
58
58
  <noscript>You need to enable JavaScript to run this app.</noscript>