streamlit-nightly 1.45.2.dev20250616__py3-none-any.whl → 1.46.1.dev20250618__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 (125) hide show
  1. streamlit/commands/navigation.py +39 -5
  2. streamlit/commands/page_config.py +48 -20
  3. streamlit/components/types/base_custom_component.py +3 -0
  4. streamlit/components/v1/custom_component.py +2 -0
  5. streamlit/config.py +73 -33
  6. streamlit/dataframe_util.py +2 -3
  7. streamlit/elements/alert.py +36 -28
  8. streamlit/elements/arrow.py +1 -1
  9. streamlit/elements/code.py +23 -8
  10. streamlit/elements/deck_gl_json_chart.py +1 -1
  11. streamlit/elements/doc_string.py +8 -2
  12. streamlit/elements/exception.py +9 -7
  13. streamlit/elements/form.py +28 -0
  14. streamlit/elements/heading.py +34 -13
  15. streamlit/elements/json.py +8 -3
  16. streamlit/elements/layouts.py +69 -13
  17. streamlit/elements/lib/color_util.py +1 -1
  18. streamlit/elements/lib/image_utils.py +3 -5
  19. streamlit/elements/markdown.py +57 -24
  20. streamlit/elements/media.py +31 -24
  21. streamlit/elements/metric.py +11 -4
  22. streamlit/elements/plotly_chart.py +1 -1
  23. streamlit/elements/progress.py +9 -3
  24. streamlit/elements/spinner.py +11 -3
  25. streamlit/elements/text.py +12 -4
  26. streamlit/elements/vega_charts.py +1 -1
  27. streamlit/elements/widgets/audio_input.py +8 -3
  28. streamlit/elements/widgets/button.py +7 -6
  29. streamlit/elements/widgets/camera_input.py +9 -3
  30. streamlit/elements/widgets/chat.py +23 -11
  31. streamlit/elements/widgets/checkbox.py +24 -6
  32. streamlit/elements/widgets/color_picker.py +13 -4
  33. streamlit/elements/widgets/file_uploader.py +9 -3
  34. streamlit/elements/widgets/number_input.py +10 -2
  35. streamlit/elements/widgets/radio.py +12 -3
  36. streamlit/elements/widgets/select_slider.py +9 -3
  37. streamlit/elements/widgets/selectbox.py +9 -3
  38. streamlit/elements/widgets/slider.py +10 -2
  39. streamlit/elements/widgets/text_widgets.py +20 -4
  40. streamlit/elements/widgets/time_widgets.py +17 -10
  41. streamlit/proto/NewSession_pb2.py +16 -16
  42. streamlit/proto/NewSession_pb2.pyi +12 -2
  43. streamlit/proto/PageConfig_pb2.py +5 -5
  44. streamlit/proto/PageConfig_pb2.pyi +16 -0
  45. streamlit/runtime/context.py +22 -1
  46. streamlit/runtime/state/query_params_proxy.py +2 -0
  47. streamlit/runtime/state/session_state.py +4 -2
  48. streamlit/runtime/uploaded_file_manager.py +3 -0
  49. streamlit/static/index.html +1 -1
  50. streamlit/static/manifest.json +214 -214
  51. streamlit/static/static/js/{ErrorOutline.esm.BBFVdWjb.js → ErrorOutline.esm.BmIZNTls.js} +1 -1
  52. streamlit/static/static/js/{FileDownload.esm.DvdwDAxp.js → FileDownload.esm.BANz7qEu.js} +1 -1
  53. streamlit/static/static/js/{FileHelper.CjU1Ef50.js → FileHelper.Bn_I1AoA.js} +1 -1
  54. streamlit/static/static/js/{FormClearHelper.CIb6LGNE.js → FormClearHelper.DngQDUHj.js} +1 -1
  55. streamlit/static/static/js/{Hooks.GJR4p5ub.js → Hooks.BvgTYyDl.js} +1 -1
  56. streamlit/static/static/js/{InputInstructions.nsoutNDU.js → InputInstructions.Dz68Mi4g.js} +1 -1
  57. streamlit/static/static/js/{ProgressBar.DqtkCWgY.js → ProgressBar.CBQ2YdYU.js} +1 -1
  58. streamlit/static/static/js/{RenderInPortalIfExists.CocQHyjY.js → RenderInPortalIfExists.DbNxALcQ.js} +1 -1
  59. streamlit/static/static/js/{Toolbar.UeCiz5bZ.js → Toolbar.Be9ReaBo.js} +1 -1
  60. streamlit/static/static/js/{base-input.ChMOqefY.js → base-input.CuYAUcgr.js} +1 -1
  61. streamlit/static/static/js/{checkbox.mFAkcYlJ.js → checkbox.CHeWw9QN.js} +1 -1
  62. streamlit/static/static/js/{createSuper.CWlw4uuT.js → createSuper.cbLRgPSA.js} +1 -1
  63. streamlit/static/static/js/{data-grid-overlay-editor.BRuPFGVT.js → data-grid-overlay-editor.BtDffWRm.js} +1 -1
  64. streamlit/static/static/js/{downloader.D-JZV5KC.js → downloader.CqSIsk34.js} +1 -1
  65. streamlit/static/static/js/{es6.8aYd2mZD.js → es6.Cf5x23Le.js} +2 -2
  66. streamlit/static/static/js/{iframeResizer.contentWindow.jbTJNegv.js → iframeResizer.contentWindow.w5G78o8J.js} +1 -1
  67. streamlit/static/static/js/{index.MuhC3L76.js → index.3x2ivJwf.js} +1 -1
  68. streamlit/static/static/js/{index.Bll2-rP6.js → index.BThEsAWi.js} +1 -1
  69. streamlit/static/static/js/{index.C-qKPIAc.js → index.BY9g96EZ.js} +1 -1
  70. streamlit/static/static/js/{index.45n3hxWl.js → index.BYMqFCBA.js} +1 -1
  71. streamlit/static/static/js/{index._beSUPH2.js → index.BbnvJ70n.js} +1 -1
  72. streamlit/static/static/js/{index.g86WIJtm.js → index.Bi464CyL.js} +1 -1
  73. streamlit/static/static/js/{index.D2DTU1aY.js → index.C0eW2K8y.js} +1 -1
  74. streamlit/static/static/js/{index.gcWbHnPE.js → index.CAbis03n.js} +1 -1
  75. streamlit/static/static/js/{index.DcylHZOn.js → index.CBOeW9a3.js} +1 -1
  76. streamlit/static/static/js/{index.CQG85lDO.js → index.CDPtgf1I.js} +1 -1
  77. streamlit/static/static/js/{index.BuwwBXlt.js → index.CI8kv2N4.js} +1 -1
  78. streamlit/static/static/js/{index.C5Jk6yHy.js → index.CIa-BnGt.js} +1 -1
  79. streamlit/static/static/js/{index.Dat8JgZf.js → index.CO4lsynG.js} +5 -5
  80. streamlit/static/static/js/{index.CeJjESM2.js → index.CPAaINBO.js} +1 -1
  81. streamlit/static/static/js/{index.BrZrTW9I.js → index.CPybvB14.js} +1 -1
  82. streamlit/static/static/js/{index.CwtQIKUg.js → index.CSmW4aEL.js} +1 -1
  83. streamlit/static/static/js/{index.RqdD1cln.js → index.CsbNNPg-.js} +1 -1
  84. streamlit/static/static/js/{index.B_K-sbDk.js → index.CvAxzLGy.js} +1 -1
  85. streamlit/static/static/js/{index.Cf2Ujw1i.js → index.D3RUL8hc.js} +1 -1
  86. streamlit/static/static/js/{index.CrLOSpGd.js → index.D7skVg6V.js} +1 -1
  87. streamlit/static/static/js/{index.ZJ-p6xZJ.js → index.D9cNUJxT.js} +1 -1
  88. streamlit/static/static/js/{index.BSBLj6fd.js → index.D9rP3sec.js} +2 -2
  89. streamlit/static/static/js/{index.Ddznlirl.js → index.DFb8oLEy.js} +1 -1
  90. streamlit/static/static/js/{index.CmYORNI1.js → index.DUFSCgUU.js} +1 -1
  91. streamlit/static/static/js/{index.D9LSzO5n.js → index.DhOEtnPS.js} +1 -1
  92. streamlit/static/static/js/{index.DlBss_D9.js → index.Dka0l3y3.js} +1 -1
  93. streamlit/static/static/js/{index.D6aDPgRk.js → index.DqUqQYLj.js} +1 -1
  94. streamlit/static/static/js/{index.EmgmixKr.js → index.Dve6LvwK.js} +1 -1
  95. streamlit/static/static/js/{index.5VmqWrFJ.js → index.E59z5B9V.js} +1 -1
  96. streamlit/static/static/js/{index.2vhUbWYE.js → index.HCf1LzCz.js} +1 -1
  97. streamlit/static/static/js/{index.CBxfNa4S.js → index.IFt67CpH.js} +1 -1
  98. streamlit/static/static/js/{index.D7n0aj1W.js → index.Mr8WFWji.js} +1 -1
  99. streamlit/static/static/js/{index.TEOqOk4H.js → index.OWQJmAOF.js} +1 -1
  100. streamlit/static/static/js/{index.B_IVL8xE.js → index.kZ6mI-nG.js} +1 -1
  101. streamlit/static/static/js/{index.B5CU57Qf.js → index.u9xbgcFq.js} +113 -114
  102. streamlit/static/static/js/{index.DiKxaWW9.js → index.vMjoJQjc.js} +1 -1
  103. streamlit/static/static/js/{index.DwGCBH5W.js → index.xUOdHmh_.js} +1 -1
  104. streamlit/static/static/js/{input.DXa_gBzj.js → input.CI-6PkTz.js} +1 -1
  105. streamlit/static/static/js/{memory.D5rOUj2Y.js → memory.C3s3Nr3T.js} +1 -1
  106. streamlit/static/static/js/{mergeWith.DSXoP_ea.js → mergeWith.BaIFtAzQ.js} +1 -1
  107. streamlit/static/static/js/{number-overlay-editor.DOlAMQ4z.js → number-overlay-editor.DG_TIpZI.js} +1 -1
  108. streamlit/static/static/js/{possibleConstructorReturn.C8PlFdhp.js → possibleConstructorReturn.DnjFJxG8.js} +1 -1
  109. streamlit/static/static/js/{sandbox.Cbgzd0RE.js → sandbox.DkNGv8rg.js} +1 -1
  110. streamlit/static/static/js/{textarea.CwmJHkZd.js → textarea.Wdt3uXnP.js} +1 -1
  111. streamlit/static/static/js/{timepicker.D-HemJVg.js → timepicker.BEyYdc_Z.js} +1 -1
  112. streamlit/static/static/js/{toConsumableArray.K58gdyL6.js → toConsumableArray.CAwuKyRj.js} +1 -1
  113. streamlit/static/static/js/{uniqueId.D6CfbZfn.js → uniqueId.-FDr5eeU.js} +1 -1
  114. streamlit/static/static/js/{useBasicWidgetState.t6CdhaX9.js → useBasicWidgetState.DOr4_K__.js} +1 -1
  115. streamlit/static/static/js/{useOnInputChange.D_GNOmUw.js → useOnInputChange.KHtPR_lb.js} +1 -1
  116. streamlit/static/static/js/{withFullScreenWrapper.DILaf-7C.js → withFullScreenWrapper.CJ_ynFQD.js} +1 -1
  117. streamlit/testing/v1/element_tree.py +3 -0
  118. streamlit/watcher/event_based_path_watcher.py +18 -13
  119. streamlit/web/server/oidc_mixin.py +0 -1
  120. {streamlit_nightly-1.45.2.dev20250616.dist-info → streamlit_nightly-1.46.1.dev20250618.dist-info}/METADATA +1 -1
  121. {streamlit_nightly-1.45.2.dev20250616.dist-info → streamlit_nightly-1.46.1.dev20250618.dist-info}/RECORD +125 -125
  122. {streamlit_nightly-1.45.2.dev20250616.data → streamlit_nightly-1.46.1.dev20250618.data}/scripts/streamlit.cmd +0 -0
  123. {streamlit_nightly-1.45.2.dev20250616.dist-info → streamlit_nightly-1.46.1.dev20250618.dist-info}/WHEEL +0 -0
  124. {streamlit_nightly-1.45.2.dev20250616.dist-info → streamlit_nightly-1.46.1.dev20250618.dist-info}/entry_points.txt +0 -0
  125. {streamlit_nightly-1.45.2.dev20250616.dist-info → streamlit_nightly-1.46.1.dev20250618.dist-info}/top_level.txt +0 -0
@@ -66,9 +66,17 @@ def spinner(
66
66
  format is not configurable.
67
67
 
68
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.
69
+ The width of the spinner element. This can be one of the following:
70
+
71
+ - ``"content"`` (default): The width of the element matches the
72
+ width of its content, but doesn't exceed the width of the parent
73
+ container.
74
+ - ``"stretch"``: The width of the element matches the width of the
75
+ parent container.
76
+ - An integer specifying the width in pixels: The element has a
77
+ fixed width. If the specified width is greater than the width of
78
+ the parent container, the width of the element matches the width
79
+ of the parent container.
72
80
 
73
81
  Example
74
82
  -------
@@ -56,10 +56,18 @@ class TextMixin:
56
56
  including the Markdown directives described in the ``body``
57
57
  parameter of ``st.markdown``.
58
58
 
59
- width : int or "stretch" or "content"
60
- The width of the text element. Can be an integer (pixels), "stretch" to
61
- use the full width of the container, or "content" (default) to size
62
- based on the content.
59
+ width : "content", "stretch", or int
60
+ The width of the text element. This can be one of the following:
61
+
62
+ - ``"content"`` (default): The width of the element matches the
63
+ width of its content, but doesn't exceed the width of the parent
64
+ container.
65
+ - ``"stretch"``: The width of the element matches the width of the
66
+ parent container.
67
+ - An integer specifying the width in pixels: The element has a
68
+ fixed width. If the specified width is greater than the width of
69
+ the parent container, the width of the element matches the width
70
+ of the parent container.
63
71
 
64
72
  Example
65
73
  -------
@@ -2001,7 +2001,7 @@ class VegaChartsMixin:
2001
2001
  vega_lite_proto,
2002
2002
  add_rows_metadata=add_rows_metadata,
2003
2003
  )
2004
- return cast("VegaLiteState", widget_state.value)
2004
+ return widget_state.value
2005
2005
  # If its not used with selections activated, just return
2006
2006
  # the delta generator related to this element.
2007
2007
  return self.dg._enqueue(
@@ -160,9 +160,14 @@ class AudioInputMixin:
160
160
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
161
161
 
162
162
  width : "stretch" or int
163
- The width of the audio input widget. If "stretch" (default), the widget
164
- will take up the full width of its container. If an integer, the width
165
- will be set to that number of pixels.
163
+ The width of the audio input widget. This can be one of the following:
164
+
165
+ - ``"stretch"`` (default): The width of the widget matches the
166
+ width of the parent container.
167
+ - An integer specifying the width in pixels: The widget has a
168
+ fixed width. If the specified width is greater than the width of
169
+ the parent container, the width of the widget matches the width
170
+ of the parent container.
166
171
 
167
172
  Returns
168
173
  -------
@@ -682,10 +682,10 @@ class ButtonMixin:
682
682
 
683
683
  Parameters
684
684
  ----------
685
- page : str, Path, or st.Page
686
- The file path (relative to the main script) or an st.Page indicating
687
- the page to switch to. Alternatively, this can be the URL to an
688
- external page (must start with "http://" or "https://").
685
+ page : str, Path, or StreamlitPage
686
+ The file path (relative to the main script) or a ``StreamlitPage``
687
+ indicating the page to switch to. Alternatively, this can be the
688
+ URL to an external page (must start with "http://" or "https://").
689
689
 
690
690
  label : str
691
691
  The label for the page link. Labels are required for external pages.
@@ -706,8 +706,9 @@ class ButtonMixin:
706
706
  .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
707
707
 
708
708
  icon : str or None
709
- An optional emoji or icon to display next to the button label. If ``icon``
710
- is ``None`` (default), no icon is displayed. If ``icon`` is a
709
+ An optional emoji or icon to display next to the button label. If
710
+ ``icon`` is ``None`` (default), the icon is inferred from the
711
+ ``StreamlitPage`` object or no icon is displayed. If ``icon`` is a
711
712
  string, the following options are valid:
712
713
 
713
714
  - A single-character emoji. For example, you can set ``icon="🚨"``
@@ -160,9 +160,15 @@ class CameraInputMixin:
160
160
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
161
161
 
162
162
  width : "stretch" or int
163
- The width of the camera input widget. If "stretch" (default), the widget
164
- will take up the full width of its container. If an integer, the width
165
- will be set to that number of pixels.
163
+ The width of the camera input widget. This can be one of the
164
+ following:
165
+
166
+ - ``"stretch"`` (default): The width of the widget matches the
167
+ width of the parent container.
168
+ - An integer specifying the width in pixels: The widget has a
169
+ fixed width. If the specified width is greater than the width of
170
+ the parent container, the width of the widget matches the width
171
+ of the parent container.
166
172
 
167
173
  Returns
168
174
  -------
@@ -237,6 +237,10 @@ class ChatMixin:
237
237
  (preferred) or just call methods directly on the returned object. See the
238
238
  examples below.
239
239
 
240
+ .. note::
241
+ To follow best design practices and maintain a good appearance on
242
+ all screen sizes, don't nest chat message containers.
243
+
240
244
  Parameters
241
245
  ----------
242
246
  name : "user", "assistant", "ai", "human", or str
@@ -280,13 +284,17 @@ class ChatMixin:
280
284
  .. |st.image| replace:: ``st.image``
281
285
  .. _st.image: https://docs.streamlit.io/develop/api-reference/media/st.image
282
286
 
283
- width: int, "auto", or "stretch"
284
- The width of the chat message. This can be one of the following:
287
+ width : "stretch", "content", or int
288
+ The width of the chat message container. This can be one of the following:
285
289
 
286
- - An int: The width in pixels, e.g. ``200`` for a width of 200 pixels.
287
- - ``"auto"``: Expands to fit the content.
288
- - ``"stretch"``: The default value. The chat message stretches to fill
289
- available space in its container.
290
+ - ``"stretch"`` (default): The width of the container matches the
291
+ width of the parent container.
292
+ - ``"content"``: The width of the container matches the width of its
293
+ content, but doesn't exceed the width of the parent container.
294
+ - An integer specifying the width in pixels: The container has a
295
+ fixed width. If the specified width is greater than the width of
296
+ the parent container, the width of the container matches the width
297
+ of the parent container.
290
298
 
291
299
  Returns
292
300
  -------
@@ -469,12 +477,16 @@ class ChatMixin:
469
477
  kwargs : dict
470
478
  An optional dict of kwargs to pass to the callback.
471
479
 
472
- width: int or "stretch"
473
- The width of the chat input widget. This can be one of the following:
480
+ width : "stretch" or int
481
+ The width of the chat input widget. This can be one of the
482
+ following:
474
483
 
475
- - An int: The width in pixels, e.g. ``200`` for a width of 200 pixels.
476
- - ``"stretch"``: The default value. The chat input stretches to fill
477
- available space in its container.
484
+ - ``"stretch"`` (default): The width of the widget matches the
485
+ width of the parent container.
486
+ - An integer specifying the width in pixels: The widget has a
487
+ fixed width. If the specified width is greater than the width of
488
+ the parent container, the width of the widget matches the width
489
+ of the parent container.
478
490
 
479
491
  Returns
480
492
  -------
@@ -139,9 +139,18 @@ class CheckboxMixin:
139
139
  label, which can help keep the widget aligned with other widgets.
140
140
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
141
141
 
142
- width : Width
143
- The width of the widget. Can be an integer for pixel width,
144
- or one of "content" or "stretch". Defaults to "content".
142
+ width : "content", "stretch", or int
143
+ The width of the checkbox widget. This can be one of the following:
144
+
145
+ - ``"content"`` (default): The width of the widget matches the
146
+ width of its content, but doesn't exceed the width of the parent
147
+ container.
148
+ - ``"stretch"``: The width of the widget matches the width of the
149
+ parent container.
150
+ - An integer specifying the width in pixels: The widget has a
151
+ fixed width. If the specified width is greater than the width of
152
+ the parent container, the width of the widget matches the width
153
+ of the parent container.
145
154
 
146
155
  Returns
147
156
  -------
@@ -256,9 +265,18 @@ class CheckboxMixin:
256
265
  label, which can help keep the widget aligned with other widgets.
257
266
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
258
267
 
259
- width : Width
260
- The width of the widget. Can be an integer for pixel width,
261
- or one of "content" or "stretch". Defaults to "content".
268
+ width : "content", "stretch", or int
269
+ The width of the toggle widget. This can be one of the following:
270
+
271
+ - ``"content"`` (default): The width of the widget matches the
272
+ width of its content, but doesn't exceed the width of the parent
273
+ container.
274
+ - ``"stretch"``: The width of the widget matches the width of the
275
+ parent container.
276
+ - An integer specifying the width in pixels: The widget has a
277
+ fixed width. If the specified width is greater than the width of
278
+ the parent container, the width of the widget matches the width
279
+ of the parent container.
262
280
 
263
281
  Returns
264
282
  -------
@@ -142,10 +142,19 @@ class ColorPickerMixin:
142
142
  label, which can help keep the widget aligned with other widgets.
143
143
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
144
144
 
145
- width : int or "stretch" or "content"
146
- The width of the color picker. Can be an integer (pixels),
147
- "stretch" to use the full width of the container, or "content"
148
- (default) to size based on the content.
145
+ width : "content", "stretch", or int
146
+ The width of the color picker widget. This can be one of the
147
+ following:
148
+
149
+ - ``"content"`` (default): The width of the widget matches the
150
+ width of its content, but doesn't exceed the width of the parent
151
+ container.
152
+ - ``"stretch"``: The width of the widget matches the width of the
153
+ parent container.
154
+ - An integer specifying the width in pixels: The widget has a
155
+ fixed width. If the specified width is greater than the width of
156
+ the parent container, the width of the widget matches the width
157
+ of the parent container.
149
158
 
150
159
  Returns
151
160
  -------
@@ -337,9 +337,15 @@ class FileUploaderMixin:
337
337
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
338
338
 
339
339
  width : "stretch" or int
340
- The width of the file uploader widget. If "stretch" (default), the widget
341
- will take up the full width of its container. If an integer, the width
342
- will be set to that number of pixels.
340
+ The width of the file uploader widget. This can be one of the
341
+ following:
342
+
343
+ - ``"stretch"`` (default): The width of the widget matches the
344
+ width of the parent container.
345
+ - An integer specifying the width in pixels: The widget has a
346
+ fixed width. If the specified width is greater than the width of
347
+ the parent container, the width of the widget matches the width
348
+ of the parent container.
343
349
 
344
350
  Returns
345
351
  -------
@@ -355,8 +355,16 @@ class NumberInputMixin:
355
355
  <https://fonts.google.com/icons?icon.set=Material+Symbols&icon.style=Rounded>`_
356
356
  font library.
357
357
 
358
- width : WidthWithoutContent
359
- The width of the number input. Can be an integer or "stretch". Defaults to "stretch".
358
+ width : "stretch" or int
359
+ The width of the number input widget. This can be one of the
360
+ following:
361
+
362
+ - ``"stretch"`` (default): The width of the widget matches the
363
+ width of the parent container.
364
+ - An integer specifying the width in pixels: The widget has a
365
+ fixed width. If the specified width is greater than the width of
366
+ the parent container, the width of the widget matches the width
367
+ of the parent container.
360
368
 
361
369
  Returns
362
370
  -------
@@ -253,9 +253,18 @@ class RadioMixin:
253
253
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
254
254
 
255
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.
256
+ The width of the radio button widget. This can be one of the
257
+ following:
258
+
259
+ - ``"content"`` (default): The width of the widget matches the
260
+ width of its content, but doesn't exceed the width of the parent
261
+ container.
262
+ - ``"stretch"``: The width of the widget matches the width of the
263
+ parent container.
264
+ - An integer specifying the width in pixels: The widget has a
265
+ fixed width. If the specified width is greater than the width of
266
+ the parent container, the width of the widget matches the width
267
+ of the parent container.
259
268
 
260
269
  Returns
261
270
  -------
@@ -245,9 +245,15 @@ class SelectSliderMixin:
245
245
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
246
246
 
247
247
  width : "stretch" or int
248
- The width of the slider. If "stretch", the slider will stretch to
249
- fill the available space. If an integer, the slider will have a fixed
250
- width in pixels.
248
+ The width of the slider widget. This can be one of the
249
+ following:
250
+
251
+ - ``"stretch"`` (default): The width of the widget matches the
252
+ width of the parent container.
253
+ - An integer specifying the width in pixels: The widget has a
254
+ fixed width. If the specified width is greater than the width of
255
+ the parent container, the width of the widget matches the width
256
+ of the parent container.
251
257
 
252
258
  Returns
253
259
  -------
@@ -374,9 +374,15 @@ class SelectboxMixin:
374
374
  adding a new item.
375
375
 
376
376
  width : "stretch" or int
377
- The width of the selectbox. If "stretch", the selectbox will stretch
378
- to fill the available space. If a number, the selectbox will have a
379
- fixed width of that many pixels. Defaults to "stretch".
377
+ The width of the selectbox widget. This can be one of the
378
+ following:
379
+
380
+ - ``"stretch"`` (default): The width of the widget matches the
381
+ width of the parent container.
382
+ - An integer specifying the width in pixels: The widget has a
383
+ fixed width. If the specified width is greater than the width of
384
+ the parent container, the width of the widget matches the width
385
+ of the parent container.
380
386
 
381
387
  Returns
382
388
  -------
@@ -571,8 +571,16 @@ class SliderMixin:
571
571
  label, which can help keep the widget aligned with other widgets.
572
572
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
573
573
 
574
- width : "stretch" or pixel width
575
- The width of the slider. The default is "stretch".
574
+ width : "stretch" or int
575
+ The width of the slider widget. This can be one of the
576
+ following:
577
+
578
+ - ``"stretch"`` (default): The width of the widget matches the
579
+ width of the parent container.
580
+ - An integer specifying the width in pixels: The widget has a
581
+ fixed width. If the specified width is greater than the width of
582
+ the parent container, the width of the widget matches the width
583
+ of the parent container.
576
584
 
577
585
  Returns
578
586
  -------
@@ -241,8 +241,16 @@ class TextWidgetsMixin:
241
241
  <https://fonts.google.com/icons?icon.set=Material+Symbols&icon.style=Rounded>`_
242
242
  font library.
243
243
 
244
- width : WidthWithoutContent
245
- The width of the text input. Defaults to "stretch".
244
+ width : "stretch" or int
245
+ The width of the text input widget. This can be one of the
246
+ following:
247
+
248
+ - ``"stretch"`` (default): The width of the widget matches the
249
+ width of the parent container.
250
+ - An integer specifying the width in pixels: The widget has a
251
+ fixed width. If the specified width is greater than the width of
252
+ the parent container, the width of the widget matches the width
253
+ of the parent container.
246
254
 
247
255
  Returns
248
256
  -------
@@ -531,8 +539,16 @@ class TextWidgetsMixin:
531
539
  label, which can help keep the widget aligned with other widgets.
532
540
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
533
541
 
534
- width : WidthWithoutContent
535
- The width of the text area. Defaults to "stretch".
542
+ width : "stretch" or int
543
+ The width of the text area widget. This can be one of the
544
+ following:
545
+
546
+ - ``"stretch"`` (default): The width of the widget matches the
547
+ width of the parent container.
548
+ - An integer specifying the width in pixels: The widget has a
549
+ fixed width. If the specified width is greater than the width of
550
+ the parent container, the width of the widget matches the width
551
+ of the parent container.
536
552
 
537
553
  Returns
538
554
  -------
@@ -441,9 +441,14 @@ class TimeWidgetsMixin:
441
441
  You can also pass a datetime.timedelta object.
442
442
 
443
443
  width : "stretch" or int
444
- The width of the time input. If "stretch", the time input will stretch
445
- to fill the available space. If a number, the time input will have a
446
- fixed width of that many pixels. Defaults to "stretch".
444
+ The width of the time input widget. This can be one of the following:
445
+
446
+ - ``"stretch"`` (default): The width of the widget matches the
447
+ width of the parent container.
448
+ - An integer specifying the width in pixels: The widget has a
449
+ fixed width. If the specified width is greater than the width of
450
+ the parent container, the width of the widget matches the width
451
+ of the parent container.
447
452
 
448
453
  Returns
449
454
  -------
@@ -770,9 +775,14 @@ class TimeWidgetsMixin:
770
775
  If this is ``"collapsed"``, Streamlit displays no label or spacer.
771
776
 
772
777
  width : "stretch" or int
773
- The width of the date input. If "stretch", the date input will stretch
774
- to fill the available space. If a number, the date input will have a
775
- fixed width of that many pixels. Defaults to "stretch".
778
+ The width of the date input widget. This can be one of the following:
779
+
780
+ - ``"stretch"`` (default): The width of the widget matches the
781
+ width of the parent container.
782
+ - An integer specifying the width in pixels: The widget has a
783
+ fixed width. If the specified width is greater than the width of
784
+ the parent container, the width of the widget matches the width
785
+ of the parent container.
776
786
 
777
787
  Returns
778
788
  -------
@@ -893,10 +903,7 @@ class TimeWidgetsMixin:
893
903
  if value == "today":
894
904
  parsed = None
895
905
  elif isinstance(value, Sequence):
896
- parsed = [
897
- parse_date_deterministic_for_id(cast("NullableScalarDateValue", v))
898
- for v in value
899
- ]
906
+ parsed = [parse_date_deterministic_for_id(v) for v in value]
900
907
  else:
901
908
  parsed = parse_date_deterministic_for_id(value)
902
909
 
@@ -16,7 +16,7 @@ from streamlit.proto import AppPage_pb2 as streamlit_dot_proto_dot_AppPage__pb2
16
16
  from streamlit.proto import SessionStatus_pb2 as streamlit_dot_proto_dot_SessionStatus__pb2
17
17
 
18
18
 
19
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/NewSession.proto\x1a\x1dstreamlit/proto/AppPage.proto\x1a#streamlit/proto/SessionStatus.proto\"\xa5\x02\n\nNewSession\x12\x1f\n\ninitialize\x18\x01 \x01(\x0b\x32\x0b.Initialize\x12\x15\n\rscript_run_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x18\n\x10main_script_path\x18\x04 \x01(\t\x12\x17\n\x06\x63onfig\x18\x06 \x01(\x0b\x32\x07.Config\x12(\n\x0c\x63ustom_theme\x18\x07 \x01(\x0b\x32\x12.CustomThemeConfig\x12\x1b\n\tapp_pages\x18\x08 \x03(\x0b\x32\x08.AppPage\x12\x18\n\x10page_script_hash\x18\t \x01(\t\x12\x1d\n\x15\x66ragment_ids_this_run\x18\n \x03(\t\x12\x18\n\x10main_script_hash\x18\x0b \x01(\tJ\x04\x08\x05\x10\x06\"\xba\x01\n\nInitialize\x12\x1c\n\tuser_info\x18\x01 \x01(\x0b\x32\t.UserInfo\x12*\n\x10\x65nvironment_info\x18\x03 \x01(\x0b\x32\x10.EnvironmentInfo\x12&\n\x0esession_status\x18\x04 \x01(\x0b\x32\x0e.SessionStatus\x12\x14\n\x0c\x63ommand_line\x18\x05 \x01(\t\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12\x10\n\x08is_hello\x18\x07 \x01(\x08\"\x97\x02\n\x06\x43onfig\x12\x1a\n\x12gather_usage_stats\x18\x02 \x01(\x08\x12\x1e\n\x16max_cached_message_age\x18\x03 \x01(\x05\x12\x14\n\x0cmapbox_token\x18\x04 \x01(\t\x12\x19\n\x11\x61llow_run_on_save\x18\x05 \x01(\x08\x12\x14\n\x0chide_top_bar\x18\x06 \x01(\x08\x12\x18\n\x10hide_sidebar_nav\x18\x07 \x01(\x08\x12)\n\x0ctoolbar_mode\x18\x08 \x01(\x0e\x32\x13.Config.ToolbarMode\"?\n\x0bToolbarMode\x12\x08\n\x04\x41UTO\x10\x00\x12\r\n\tDEVELOPER\x10\x01\x12\n\n\x06VIEWER\x10\x02\x12\x0b\n\x07MINIMAL\x10\x03J\x04\x08\x01\x10\x02\"\xa4\x08\n\x11\x43ustomThemeConfig\x12\x15\n\rprimary_color\x18\x01 \x01(\t\x12\"\n\x1asecondary_background_color\x18\x02 \x01(\t\x12\x18\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\t\x12\x12\n\ntext_color\x18\x04 \x01(\t\x12+\n\x04\x66ont\x18\x05 \x01(\x0e\x32\x1d.CustomThemeConfig.FontFamily\x12*\n\x04\x62\x61se\x18\x06 \x01(\x0e\x32\x1c.CustomThemeConfig.BaseTheme\x12\x1f\n\x17widget_background_color\x18\x07 \x01(\t\x12\x1b\n\x13widget_border_color\x18\x08 \x01(\t\x12\x15\n\x05radii\x18\t \x01(\x0b\x32\x06.Radii\x12\x14\n\x0cheading_font\x18\x0c \x01(\t\x12\x11\n\tbody_font\x18\r \x01(\t\x12\x11\n\tcode_font\x18\x0e \x01(\t\x12\x1d\n\nfont_faces\x18\x0f \x03(\x0b\x32\t.FontFace\x12\x1e\n\nfont_sizes\x18\x10 \x01(\x0b\x32\n.FontSizes\x12!\n\x19skeleton_background_color\x18\x11 \x01(\t\x12\x18\n\x0b\x62\x61se_radius\x18\x12 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rbutton_radius\x18\x1a \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0c\x62order_color\x18\x13 \x01(\tH\x02\x88\x01\x01\x12#\n\x16\x64\x61taframe_border_color\x18\x1b \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12show_widget_border\x18\x14 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nlink_color\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x62\x61se_font_size\x18\x16 \x01(\x05H\x06\x88\x01\x01\x12 \n\x13show_sidebar_border\x18\x17 \x01(\x08H\x07\x88\x01\x01\x12(\n\x07sidebar\x18\x18 \x01(\x0b\x32\x12.CustomThemeConfigH\x08\x88\x01\x01\x12\"\n\x15\x63ode_background_color\x18\x19 \x01(\tH\t\x88\x01\x01\" \n\tBaseTheme\x12\t\n\x05LIGHT\x10\x00\x12\x08\n\x04\x44\x41RK\x10\x01\"6\n\nFontFamily\x12\x0e\n\nSANS_SERIF\x10\x00\x12\t\n\x05SERIF\x10\x01\x12\r\n\tMONOSPACE\x10\x02\x42\x0e\n\x0c_base_radiusB\x10\n\x0e_button_radiusB\x0f\n\r_border_colorB\x19\n\x17_dataframe_border_colorB\x15\n\x13_show_widget_borderB\r\n\x0b_link_colorB\x11\n\x0f_base_font_sizeB\x16\n\x14_show_sidebar_borderB\n\n\x08_sidebarB\x18\n\x16_code_background_color\"w\n\x08\x46ontFace\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06\x66\x61mily\x18\x02 \x01(\t\x12\x12\n\x06weight\x18\x03 \x01(\x05\x42\x02\x18\x01\x12\x14\n\x0cweight_range\x18\x05 \x01(\t\x12\r\n\x05style\x18\x04 \x01(\t\x12\x15\n\runicode_range\x18\x06 \x01(\t\"<\n\x05Radii\x12\x1a\n\x12\x62\x61se_widget_radius\x18\x01 \x01(\x05\x12\x17\n\x0f\x63heckbox_radius\x18\x02 \x01(\x05\"T\n\tFontSizes\x12\x16\n\x0etiny_font_size\x18\x01 \x01(\x05\x12\x17\n\x0fsmall_font_size\x18\x02 \x01(\x05\x12\x16\n\x0e\x62\x61se_font_size\x18\x03 \x01(\x05\"a\n\x08UserInfo\x12\x17\n\x0finstallation_id\x18\x01 \x01(\t\x12\x1a\n\x12installation_id_v3\x18\x05 \x01(\t\x12\x1a\n\x12installation_id_v4\x18\x06 \x01(\tJ\x04\x08\x02\x10\x03\"l\n\x0f\x45nvironmentInfo\x12\x19\n\x11streamlit_version\x18\x01 \x01(\t\x12\x16\n\x0epython_version\x18\x02 \x01(\t\x12\x11\n\tserver_os\x18\x03 \x01(\t\x12\x13\n\x0bhas_display\x18\x04 \x01(\x08\x42/\n\x1c\x63om.snowflake.apps.streamlitB\x0fNewSessionProtob\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/NewSession.proto\x1a\x1dstreamlit/proto/AppPage.proto\x1a#streamlit/proto/SessionStatus.proto\"\xa5\x02\n\nNewSession\x12\x1f\n\ninitialize\x18\x01 \x01(\x0b\x32\x0b.Initialize\x12\x15\n\rscript_run_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x18\n\x10main_script_path\x18\x04 \x01(\t\x12\x17\n\x06\x63onfig\x18\x06 \x01(\x0b\x32\x07.Config\x12(\n\x0c\x63ustom_theme\x18\x07 \x01(\x0b\x32\x12.CustomThemeConfig\x12\x1b\n\tapp_pages\x18\x08 \x03(\x0b\x32\x08.AppPage\x12\x18\n\x10page_script_hash\x18\t \x01(\t\x12\x1d\n\x15\x66ragment_ids_this_run\x18\n \x03(\t\x12\x18\n\x10main_script_hash\x18\x0b \x01(\tJ\x04\x08\x05\x10\x06\"\xba\x01\n\nInitialize\x12\x1c\n\tuser_info\x18\x01 \x01(\x0b\x32\t.UserInfo\x12*\n\x10\x65nvironment_info\x18\x03 \x01(\x0b\x32\x10.EnvironmentInfo\x12&\n\x0esession_status\x18\x04 \x01(\x0b\x32\x0e.SessionStatus\x12\x14\n\x0c\x63ommand_line\x18\x05 \x01(\t\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12\x10\n\x08is_hello\x18\x07 \x01(\x08\"\x97\x02\n\x06\x43onfig\x12\x1a\n\x12gather_usage_stats\x18\x02 \x01(\x08\x12\x1e\n\x16max_cached_message_age\x18\x03 \x01(\x05\x12\x14\n\x0cmapbox_token\x18\x04 \x01(\t\x12\x19\n\x11\x61llow_run_on_save\x18\x05 \x01(\x08\x12\x14\n\x0chide_top_bar\x18\x06 \x01(\x08\x12\x18\n\x10hide_sidebar_nav\x18\x07 \x01(\x08\x12)\n\x0ctoolbar_mode\x18\x08 \x01(\x0e\x32\x13.Config.ToolbarMode\"?\n\x0bToolbarMode\x12\x08\n\x04\x41UTO\x10\x00\x12\r\n\tDEVELOPER\x10\x01\x12\n\n\x06VIEWER\x10\x02\x12\x0b\n\x07MINIMAL\x10\x03J\x04\x08\x01\x10\x02\"\x84\t\n\x11\x43ustomThemeConfig\x12\x15\n\rprimary_color\x18\x01 \x01(\t\x12\"\n\x1asecondary_background_color\x18\x02 \x01(\t\x12\x18\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\t\x12\x12\n\ntext_color\x18\x04 \x01(\t\x12+\n\x04\x66ont\x18\x05 \x01(\x0e\x32\x1d.CustomThemeConfig.FontFamily\x12*\n\x04\x62\x61se\x18\x06 \x01(\x0e\x32\x1c.CustomThemeConfig.BaseTheme\x12\x1f\n\x17widget_background_color\x18\x07 \x01(\t\x12\x1b\n\x13widget_border_color\x18\x08 \x01(\t\x12\x15\n\x05radii\x18\t \x01(\x0b\x32\x06.Radii\x12\x14\n\x0cheading_font\x18\x0c \x01(\t\x12\x11\n\tbody_font\x18\r \x01(\t\x12\x11\n\tcode_font\x18\x0e \x01(\t\x12\x1d\n\nfont_faces\x18\x0f \x03(\x0b\x32\t.FontFace\x12\x1e\n\nfont_sizes\x18\x10 \x01(\x0b\x32\n.FontSizes\x12!\n\x19skeleton_background_color\x18\x11 \x01(\t\x12\x18\n\x0b\x62\x61se_radius\x18\x12 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rbutton_radius\x18\x1a \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0c\x62order_color\x18\x13 \x01(\tH\x02\x88\x01\x01\x12#\n\x16\x64\x61taframe_border_color\x18\x1b \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12show_widget_border\x18\x14 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nlink_color\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0elink_underline\x18\x1d \x01(\x08H\x06\x88\x01\x01\x12\x1b\n\x0e\x62\x61se_font_size\x18\x16 \x01(\x05H\x07\x88\x01\x01\x12\x1b\n\x0e\x63ode_font_size\x18\x1c \x01(\tH\x08\x88\x01\x01\x12 \n\x13show_sidebar_border\x18\x17 \x01(\x08H\t\x88\x01\x01\x12(\n\x07sidebar\x18\x18 \x01(\x0b\x32\x12.CustomThemeConfigH\n\x88\x01\x01\x12\"\n\x15\x63ode_background_color\x18\x19 \x01(\tH\x0b\x88\x01\x01\" \n\tBaseTheme\x12\t\n\x05LIGHT\x10\x00\x12\x08\n\x04\x44\x41RK\x10\x01\"6\n\nFontFamily\x12\x0e\n\nSANS_SERIF\x10\x00\x12\t\n\x05SERIF\x10\x01\x12\r\n\tMONOSPACE\x10\x02\x42\x0e\n\x0c_base_radiusB\x10\n\x0e_button_radiusB\x0f\n\r_border_colorB\x19\n\x17_dataframe_border_colorB\x15\n\x13_show_widget_borderB\r\n\x0b_link_colorB\x11\n\x0f_link_underlineB\x11\n\x0f_base_font_sizeB\x11\n\x0f_code_font_sizeB\x16\n\x14_show_sidebar_borderB\n\n\x08_sidebarB\x18\n\x16_code_background_color\"w\n\x08\x46ontFace\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06\x66\x61mily\x18\x02 \x01(\t\x12\x12\n\x06weight\x18\x03 \x01(\x05\x42\x02\x18\x01\x12\x14\n\x0cweight_range\x18\x05 \x01(\t\x12\r\n\x05style\x18\x04 \x01(\t\x12\x15\n\runicode_range\x18\x06 \x01(\t\"<\n\x05Radii\x12\x1a\n\x12\x62\x61se_widget_radius\x18\x01 \x01(\x05\x12\x17\n\x0f\x63heckbox_radius\x18\x02 \x01(\x05\"T\n\tFontSizes\x12\x16\n\x0etiny_font_size\x18\x01 \x01(\x05\x12\x17\n\x0fsmall_font_size\x18\x02 \x01(\x05\x12\x16\n\x0e\x62\x61se_font_size\x18\x03 \x01(\x05\"a\n\x08UserInfo\x12\x17\n\x0finstallation_id\x18\x01 \x01(\t\x12\x1a\n\x12installation_id_v3\x18\x05 \x01(\t\x12\x1a\n\x12installation_id_v4\x18\x06 \x01(\tJ\x04\x08\x02\x10\x03\"l\n\x0f\x45nvironmentInfo\x12\x19\n\x11streamlit_version\x18\x01 \x01(\t\x12\x16\n\x0epython_version\x18\x02 \x01(\t\x12\x11\n\tserver_os\x18\x03 \x01(\t\x12\x13\n\x0bhas_display\x18\x04 \x01(\x08\x42/\n\x1c\x63om.snowflake.apps.streamlitB\x0fNewSessionProtob\x06proto3')
20
20
 
21
21
  _globals = globals()
22
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -35,19 +35,19 @@ if not _descriptor._USE_C_DESCRIPTORS:
35
35
  _globals['_CONFIG_TOOLBARMODE']._serialized_start=800
36
36
  _globals['_CONFIG_TOOLBARMODE']._serialized_end=863
37
37
  _globals['_CUSTOMTHEMECONFIG']._serialized_start=872
38
- _globals['_CUSTOMTHEMECONFIG']._serialized_end=1932
39
- _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_start=1647
40
- _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_end=1679
41
- _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_start=1681
42
- _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_end=1735
43
- _globals['_FONTFACE']._serialized_start=1934
44
- _globals['_FONTFACE']._serialized_end=2053
45
- _globals['_RADII']._serialized_start=2055
46
- _globals['_RADII']._serialized_end=2115
47
- _globals['_FONTSIZES']._serialized_start=2117
48
- _globals['_FONTSIZES']._serialized_end=2201
49
- _globals['_USERINFO']._serialized_start=2203
50
- _globals['_USERINFO']._serialized_end=2300
51
- _globals['_ENVIRONMENTINFO']._serialized_start=2302
52
- _globals['_ENVIRONMENTINFO']._serialized_end=2410
38
+ _globals['_CUSTOMTHEMECONFIG']._serialized_end=2028
39
+ _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_start=1705
40
+ _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_end=1737
41
+ _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_start=1739
42
+ _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_end=1793
43
+ _globals['_FONTFACE']._serialized_start=2030
44
+ _globals['_FONTFACE']._serialized_end=2149
45
+ _globals['_RADII']._serialized_start=2151
46
+ _globals['_RADII']._serialized_end=2211
47
+ _globals['_FONTSIZES']._serialized_start=2213
48
+ _globals['_FONTSIZES']._serialized_end=2297
49
+ _globals['_USERINFO']._serialized_start=2299
50
+ _globals['_USERINFO']._serialized_end=2396
51
+ _globals['_ENVIRONMENTINFO']._serialized_start=2398
52
+ _globals['_ENVIRONMENTINFO']._serialized_end=2506
53
53
  # @@protoc_insertion_point(module_scope)
@@ -290,7 +290,9 @@ class CustomThemeConfig(google.protobuf.message.Message):
290
290
  DATAFRAME_BORDER_COLOR_FIELD_NUMBER: builtins.int
291
291
  SHOW_WIDGET_BORDER_FIELD_NUMBER: builtins.int
292
292
  LINK_COLOR_FIELD_NUMBER: builtins.int
293
+ LINK_UNDERLINE_FIELD_NUMBER: builtins.int
293
294
  BASE_FONT_SIZE_FIELD_NUMBER: builtins.int
295
+ CODE_FONT_SIZE_FIELD_NUMBER: builtins.int
294
296
  SHOW_SIDEBAR_BORDER_FIELD_NUMBER: builtins.int
295
297
  SIDEBAR_FIELD_NUMBER: builtins.int
296
298
  CODE_BACKGROUND_COLOR_FIELD_NUMBER: builtins.int
@@ -316,7 +318,9 @@ class CustomThemeConfig(google.protobuf.message.Message):
316
318
  dataframe_border_color: builtins.str
317
319
  show_widget_border: builtins.bool
318
320
  link_color: builtins.str
321
+ link_underline: builtins.bool
319
322
  base_font_size: builtins.int
323
+ code_font_size: builtins.str
320
324
  show_sidebar_border: builtins.bool
321
325
  code_background_color: builtins.str
322
326
  @property
@@ -355,13 +359,15 @@ class CustomThemeConfig(google.protobuf.message.Message):
355
359
  dataframe_border_color: builtins.str | None = ...,
356
360
  show_widget_border: builtins.bool | None = ...,
357
361
  link_color: builtins.str | None = ...,
362
+ link_underline: builtins.bool | None = ...,
358
363
  base_font_size: builtins.int | None = ...,
364
+ code_font_size: builtins.str | None = ...,
359
365
  show_sidebar_border: builtins.bool | None = ...,
360
366
  sidebar: global___CustomThemeConfig | None = ...,
361
367
  code_background_color: builtins.str | None = ...,
362
368
  ) -> None: ...
363
- def HasField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_radius", b"_base_radius", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_dataframe_border_color", b"_dataframe_border_color", "_link_color", b"_link_color", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "base_font_size", b"base_font_size", "base_radius", b"base_radius", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "dataframe_border_color", b"dataframe_border_color", "font_sizes", b"font_sizes", "link_color", b"link_color", "radii", b"radii", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar"]) -> builtins.bool: ...
364
- def ClearField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_radius", b"_base_radius", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_dataframe_border_color", b"_dataframe_border_color", "_link_color", b"_link_color", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "background_color", b"background_color", "base", b"base", "base_font_size", b"base_font_size", "base_radius", b"base_radius", "body_font", b"body_font", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "code_font", b"code_font", "dataframe_border_color", b"dataframe_border_color", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "heading_font", b"heading_font", "link_color", b"link_color", "primary_color", b"primary_color", "radii", b"radii", "secondary_background_color", b"secondary_background_color", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar", "skeleton_background_color", b"skeleton_background_color", "text_color", b"text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color"]) -> None: ...
369
+ def HasField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_radius", b"_base_radius", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_dataframe_border_color", b"_dataframe_border_color", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "base_font_size", b"base_font_size", "base_radius", b"base_radius", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "code_font_size", b"code_font_size", "dataframe_border_color", b"dataframe_border_color", "font_sizes", b"font_sizes", "link_color", b"link_color", "link_underline", b"link_underline", "radii", b"radii", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar"]) -> builtins.bool: ...
370
+ def ClearField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_radius", b"_base_radius", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_dataframe_border_color", b"_dataframe_border_color", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "background_color", b"background_color", "base", b"base", "base_font_size", b"base_font_size", "base_radius", b"base_radius", "body_font", b"body_font", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "code_font", b"code_font", "code_font_size", b"code_font_size", "dataframe_border_color", b"dataframe_border_color", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "heading_font", b"heading_font", "link_color", b"link_color", "link_underline", b"link_underline", "primary_color", b"primary_color", "radii", b"radii", "secondary_background_color", b"secondary_background_color", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar", "skeleton_background_color", b"skeleton_background_color", "text_color", b"text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color"]) -> None: ...
365
371
  @typing.overload
366
372
  def WhichOneof(self, oneof_group: typing.Literal["_base_font_size", b"_base_font_size"]) -> typing.Literal["base_font_size"] | None: ...
367
373
  @typing.overload
@@ -373,10 +379,14 @@ class CustomThemeConfig(google.protobuf.message.Message):
373
379
  @typing.overload
374
380
  def WhichOneof(self, oneof_group: typing.Literal["_code_background_color", b"_code_background_color"]) -> typing.Literal["code_background_color"] | None: ...
375
381
  @typing.overload
382
+ def WhichOneof(self, oneof_group: typing.Literal["_code_font_size", b"_code_font_size"]) -> typing.Literal["code_font_size"] | None: ...
383
+ @typing.overload
376
384
  def WhichOneof(self, oneof_group: typing.Literal["_dataframe_border_color", b"_dataframe_border_color"]) -> typing.Literal["dataframe_border_color"] | None: ...
377
385
  @typing.overload
378
386
  def WhichOneof(self, oneof_group: typing.Literal["_link_color", b"_link_color"]) -> typing.Literal["link_color"] | None: ...
379
387
  @typing.overload
388
+ def WhichOneof(self, oneof_group: typing.Literal["_link_underline", b"_link_underline"]) -> typing.Literal["link_underline"] | None: ...
389
+ @typing.overload
380
390
  def WhichOneof(self, oneof_group: typing.Literal["_show_sidebar_border", b"_show_sidebar_border"]) -> typing.Literal["show_sidebar_border"] | None: ...
381
391
  @typing.overload
382
392
  def WhichOneof(self, oneof_group: typing.Literal["_show_widget_border", b"_show_widget_border"]) -> typing.Literal["show_widget_border"] | None: ...
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
14
14
 
15
15
 
16
16
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/PageConfig.proto\"\xaf\x03\n\nPageConfig\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0f\n\x07\x66\x61vicon\x18\x02 \x01(\t\x12\"\n\x06layout\x18\x03 \x01(\x0e\x32\x12.PageConfig.Layout\x12\x37\n\x15initial_sidebar_state\x18\x04 \x01(\x0e\x32\x18.PageConfig.SidebarState\x12)\n\nmenu_items\x18\x05 \x01(\x0b\x32\x15.PageConfig.MenuItems\x1a\x9f\x01\n\tMenuItems\x12\x14\n\x0cget_help_url\x18\x01 \x01(\t\x12\x15\n\rhide_get_help\x18\x02 \x01(\x08\x12\x18\n\x10report_a_bug_url\x18\x03 \x01(\t\x12\x19\n\x11hide_report_a_bug\x18\x04 \x01(\x08\x12\x18\n\x10\x61\x62out_section_md\x18\x05 \x01(\t\x12\x16\n\x0e\x63lear_about_md\x18\x06 \x01(\x08\" \n\x06Layout\x12\x0c\n\x08\x43\x45NTERED\x10\x00\x12\x08\n\x04WIDE\x10\x01\"5\n\x0cSidebarState\x12\x08\n\x04\x41UTO\x10\x00\x12\x0c\n\x08\x45XPANDED\x10\x01\x12\r\n\tCOLLAPSED\x10\x02\x42/\n\x1c\x63om.snowflake.apps.streamlitB\x0fPageConfigProtob\x06proto3')
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/PageConfig.proto\"\xd4\x03\n\nPageConfig\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0f\n\x07\x66\x61vicon\x18\x02 \x01(\t\x12\"\n\x06layout\x18\x03 \x01(\x0e\x32\x12.PageConfig.Layout\x12\x37\n\x15initial_sidebar_state\x18\x04 \x01(\x0e\x32\x18.PageConfig.SidebarState\x12)\n\nmenu_items\x18\x05 \x01(\x0b\x32\x15.PageConfig.MenuItems\x1a\x9f\x01\n\tMenuItems\x12\x14\n\x0cget_help_url\x18\x01 \x01(\t\x12\x15\n\rhide_get_help\x18\x02 \x01(\x08\x12\x18\n\x10report_a_bug_url\x18\x03 \x01(\t\x12\x19\n\x11hide_report_a_bug\x18\x04 \x01(\x08\x12\x18\n\x10\x61\x62out_section_md\x18\x05 \x01(\t\x12\x16\n\x0e\x63lear_about_md\x18\x06 \x01(\x08\"2\n\x06Layout\x12\x0c\n\x08\x43\x45NTERED\x10\x00\x12\x08\n\x04WIDE\x10\x01\x12\x10\n\x0cLAYOUT_UNSET\x10\x02\"H\n\x0cSidebarState\x12\x08\n\x04\x41UTO\x10\x00\x12\x0c\n\x08\x45XPANDED\x10\x01\x12\r\n\tCOLLAPSED\x10\x02\x12\x11\n\rSIDEBAR_UNSET\x10\x03\x42/\n\x1c\x63om.snowflake.apps.streamlitB\x0fPageConfigProtob\x06proto3')
18
18
 
19
19
  _globals = globals()
20
20
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -23,11 +23,11 @@ if not _descriptor._USE_C_DESCRIPTORS:
23
23
  _globals['DESCRIPTOR']._loaded_options = None
24
24
  _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\017PageConfigProto'
25
25
  _globals['_PAGECONFIG']._serialized_start=37
26
- _globals['_PAGECONFIG']._serialized_end=468
26
+ _globals['_PAGECONFIG']._serialized_end=505
27
27
  _globals['_PAGECONFIG_MENUITEMS']._serialized_start=220
28
28
  _globals['_PAGECONFIG_MENUITEMS']._serialized_end=379
29
29
  _globals['_PAGECONFIG_LAYOUT']._serialized_start=381
30
- _globals['_PAGECONFIG_LAYOUT']._serialized_end=413
31
- _globals['_PAGECONFIG_SIDEBARSTATE']._serialized_start=415
32
- _globals['_PAGECONFIG_SIDEBARSTATE']._serialized_end=468
30
+ _globals['_PAGECONFIG_LAYOUT']._serialized_end=431
31
+ _globals['_PAGECONFIG_SIDEBARSTATE']._serialized_start=433
32
+ _globals['_PAGECONFIG_SIDEBARSTATE']._serialized_end=505
33
33
  # @@protoc_insertion_point(module_scope)