streamlit-nightly 1.52.3.dev20260113__py3-none-any.whl → 1.53.1.dev20260115__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 (135) hide show
  1. streamlit/__init__.py +0 -26
  2. streamlit/commands/logo.py +2 -0
  3. streamlit/commands/page_config.py +16 -16
  4. streamlit/components/v2/__init__.py +2 -2
  5. streamlit/config.py +29 -0
  6. streamlit/connections/base_connection.py +16 -4
  7. streamlit/connections/snowflake_connection.py +254 -205
  8. streamlit/elements/form.py +2 -2
  9. streamlit/elements/lib/streamlit_plotly_theme.py +9 -11
  10. streamlit/elements/metric.py +49 -48
  11. streamlit/elements/widgets/button.py +9 -9
  12. streamlit/elements/widgets/chat.py +5 -9
  13. streamlit/elements/widgets/data_editor.py +3 -3
  14. streamlit/elements/widgets/file_uploader.py +10 -11
  15. streamlit/elements/widgets/select_slider.py +4 -0
  16. streamlit/proto/NewSession_pb2.py +18 -18
  17. streamlit/proto/NewSession_pb2.pyi +5 -1
  18. streamlit/runtime/app_session.py +78 -58
  19. streamlit/runtime/caching/cache_data_api.py +25 -21
  20. streamlit/runtime/caching/cache_resource_api.py +69 -41
  21. streamlit/runtime/connection_factory.py +67 -41
  22. streamlit/runtime/scriptrunner_utils/script_run_context.py +0 -21
  23. streamlit/runtime/state/query_params.py +0 -19
  24. streamlit/static/index.html +1 -1
  25. streamlit/static/manifest.json +296 -296
  26. streamlit/static/static/js/{ErrorOutline.esm.BjVqd_6R.js → ErrorOutline.esm.CiSfK8ht.js} +1 -1
  27. streamlit/static/static/js/{FileDownload.esm.DJCSsghl.js → FileDownload.esm.ItNjcEfs.js} +1 -1
  28. streamlit/static/static/js/{FileHelper.C---TH7o.js → FileHelper.xS7f19FE.js} +1 -1
  29. streamlit/static/static/js/{FormClearHelper.C-6BC487.js → FormClearHelper.N8_BCinn.js} +1 -1
  30. streamlit/static/static/js/{InputInstructions.sxc3InCI.js → InputInstructions.CrsdK7CQ.js} +1 -1
  31. streamlit/static/static/js/Particles.BDlTHC3I.js +1 -0
  32. streamlit/static/static/js/{ProgressBar.BiYsyZCC.js → ProgressBar.Bk2qeHfS.js} +2 -2
  33. streamlit/static/static/js/{StreamlitSyntaxHighlighter.9jZF8jX1.js → StreamlitSyntaxHighlighter.BcuPrPcw.js} +1 -1
  34. streamlit/static/static/js/{TableChart.esm.BdA4Q1rZ.js → TableChart.esm.CP7XPz8I.js} +1 -1
  35. streamlit/static/static/js/Toolbar.DCJcLwve.js +1 -0
  36. streamlit/static/static/js/{WidgetLabelHelpIconInline.DxODTLS2.js → WidgetLabelHelpIconInline.BPqxu1b-.js} +1 -1
  37. streamlit/static/static/js/{base-input.Gf1cKuQR.js → base-input.x4muJJ13.js} +4 -4
  38. streamlit/static/static/js/{checkbox.CnoNruf3.js → checkbox.C5r4AIaH.js} +1 -1
  39. streamlit/static/static/js/{createDownloadLinkElement.B48AepiL.js → createDownloadLinkElement.C83kkEeT.js} +1 -1
  40. streamlit/static/static/js/{data-grid-overlay-editor.Cmdq9aqU.js → data-grid-overlay-editor.0sOWm4IB.js} +1 -1
  41. streamlit/static/static/js/{downloader.CQLoQdMX.js → downloader.C_6FfoEv.js} +1 -1
  42. streamlit/static/static/js/{embed.oKwocwU8.js → embed.BnJ6-SK4.js} +14 -14
  43. streamlit/static/static/js/{es6.BRxlY_y5.js → es6.44_BWfFd.js} +2 -2
  44. streamlit/static/static/js/{formatNumber.DaagZyZe.js → formatNumber.DhHZAosz.js} +1 -1
  45. streamlit/static/static/js/{iconPosition.Q3hNvmK4.js → iconPosition.shOoQuRR.js} +1 -1
  46. streamlit/static/static/js/{iframeResizer.contentWindow.B6EBvI9L.js → iframeResizer.contentWindow.savEE5Vs.js} +1 -1
  47. streamlit/static/static/js/{index.BF23fbfs.js → index.AdijUi9Z.js} +1 -1
  48. streamlit/static/static/js/{index.OpATzEaW.js → index.B5HlOnvq.js} +1 -1
  49. streamlit/static/static/js/{index.Ca7MUNWJ.js → index.B6ewTTej.js} +1 -1
  50. streamlit/static/static/js/{index.CP-hoxJM.js → index.B8Of3XXR.js} +1 -1
  51. streamlit/static/static/js/{index.whRT3Vm3.js → index.BCaCSVj6.js} +1 -1
  52. streamlit/static/static/js/index.BE7Rhig1.js +1 -0
  53. streamlit/static/static/js/{index.BkSwGJoh.js → index.BHpLZ7X6.js} +2 -2
  54. streamlit/static/static/js/{index.na9UBuse.js → index.BNvP8E5Q.js} +1 -1
  55. streamlit/static/static/js/{index.CYE7b5Du.js → index.BNzuyXeN.js} +2 -2
  56. streamlit/static/static/js/{index.slgxPafU.js → index.BT7o4A9V.js} +1 -1
  57. streamlit/static/static/js/{index.BXEC4cf3.js → index.BYY3iuVE.js} +1 -1
  58. streamlit/static/static/js/index.BZI7jTDf.js +1 -0
  59. streamlit/static/static/js/{index.19_qtO6t.js → index.BZXk3Qxq.js} +1 -1
  60. streamlit/static/static/js/{index.B03eQZoH.js → index.BhQvq6YD.js} +1 -1
  61. streamlit/static/static/js/{index.WXybx2Xq.js → index.BkIReLGJ.js} +3 -3
  62. streamlit/static/static/js/{index.BoX8d5rK.js → index.Bl7SMZUw.js} +1 -1
  63. streamlit/static/static/js/{index.BGBTkulf.js → index.BqtgAGnG.js} +2 -2
  64. streamlit/static/static/js/{index.KtjGDGY5.js → index.BwnLQnAk.js} +1 -1
  65. streamlit/static/static/js/index.C1coXTgf.js +2 -0
  66. streamlit/static/static/js/{index.CVlg41MB.js → index.C6uOmY9O.js} +1 -1
  67. streamlit/static/static/js/index.CF88nImM.js +1 -0
  68. streamlit/static/static/js/{index.CFCBhOfx.js → index.CFlGfFvq.js} +1 -1
  69. streamlit/static/static/js/{index.Xg-Qttib.js → index.CQgiNpC7.js} +1 -1
  70. streamlit/static/static/js/{index.CCFwVy90.js → index.CZJkiRFm.js} +1 -1
  71. streamlit/static/static/js/index.Ch1TdQMG.js +1 -0
  72. streamlit/static/static/js/{index.CvIqsWy1.js → index.Ck2mQvBi.js} +1 -1
  73. streamlit/static/static/js/{index.BAI9aHCq.js → index.CrD2lwZG.js} +1 -1
  74. streamlit/static/static/js/index.CySNwKoN.js +2 -0
  75. streamlit/static/static/js/index.D3LEkXqN.js +1 -0
  76. streamlit/static/static/js/{index.QTaWooav.js → index.D8BQH06Z.js} +1 -1
  77. streamlit/static/static/js/{index.B9kZB0o1.js → index.DBtWixG1.js} +1 -1
  78. streamlit/static/static/js/{index.BzwlrgZO.js → index.DIsNrJpC.js} +1 -1
  79. streamlit/static/static/js/{index.Fu73QtkD.js → index.DO3HICut.js} +1 -1
  80. streamlit/static/static/js/{index.KN1VmyYN.js → index.D_ziFad8.js} +1 -1
  81. streamlit/static/static/js/{index.pU9mQeVC.js → index.Dblsdn8d.js} +1 -1
  82. streamlit/static/static/js/{index.Boa0Egng.js → index.DcdD0ROn.js} +2 -2
  83. streamlit/static/static/js/{index.CvB9JBqS.js → index.DfHm3P22.js} +51 -51
  84. streamlit/static/static/js/{index.BRfGUOQ-.js → index.DiwhD0Ic.js} +46 -46
  85. streamlit/static/static/js/index.DvZDNiBV.js +11 -0
  86. streamlit/static/static/js/{index.CJ4oJe0V.js → index.HjydQ4bj.js} +1 -1
  87. streamlit/static/static/js/{index.BbSFVZ3p.js → index.HsxzYHNf.js} +1 -1
  88. streamlit/static/static/js/{index.BVT89mQw.js → index.SVJGpnpy.js} +1 -1
  89. streamlit/static/static/js/index.SjKkVSL7.js +1 -0
  90. streamlit/static/static/js/index.hX8_3tMP.js +1 -0
  91. streamlit/static/static/js/{index.CCQ5p_WC.js → index.jZin0w6_.js} +1 -1
  92. streamlit/static/static/js/{index.BnfTPrHb.js → index.pQvPlPcA.js} +4 -4
  93. streamlit/static/static/js/index.pzQTLx9j.js +1 -0
  94. streamlit/static/static/js/{index.D6X2coHR.js → index.s44_OVd6.js} +33 -33
  95. streamlit/static/static/js/{input.CPzINTl-.js → input.jAD-v9D6.js} +2 -2
  96. streamlit/static/static/js/{main.DSPn8dUe.js → main.Cas0fuOs.js} +1 -1
  97. streamlit/static/static/js/{memory.CfD8IGoU.js → memory.ENruL8Qk.js} +1 -1
  98. streamlit/static/static/js/{number-overlay-editor.4Ae0qegV.js → number-overlay-editor.DAOTdulh.js} +2 -2
  99. streamlit/static/static/js/{pandasStylerUtils.D2EjZ7k6.js → pandasStylerUtils.DChYgcPq.js} +1 -1
  100. streamlit/static/static/js/{sandbox.C6vcPIm0.js → sandbox.DWZYRCm0.js} +1 -1
  101. streamlit/static/static/js/{styled-components.BBmp8buj.js → styled-components.3lwVqgRW.js} +1 -1
  102. streamlit/static/static/js/{throttle.BPcPpy-S.js → throttle.DfOW1Cns.js} +1 -1
  103. streamlit/static/static/js/{timepicker.ryzkTs2C.js → timepicker.CXHgL5f9.js} +1 -1
  104. streamlit/static/static/js/{toConsumableArray.Dg1nDaB_.js → toConsumableArray.DiW0GSDV.js} +1 -1
  105. streamlit/static/static/js/uniqueId.Dfi3SGKZ.js +1 -0
  106. streamlit/static/static/js/{useBasicWidgetState.A4U5lzAm.js → useBasicWidgetState.DnPEt_f3.js} +1 -1
  107. streamlit/static/static/js/{useIntlLocale.DWJgLlNz.js → useIntlLocale.BZEGSOVD.js} +8 -8
  108. streamlit/static/static/js/{useTextInputAutoExpand.BrBonw8t.js → useTextInputAutoExpand.MGVZMqyt.js} +1 -1
  109. streamlit/static/static/js/useUpdateUiValue.CPl6CEx3.js +1 -0
  110. streamlit/static/static/js/{useWaveformController.CBlvXlgZ.js → useWaveformController.DOpzDyZu.js} +1 -1
  111. streamlit/static/static/js/{withCalculatedWidth.D4cpOyNe.js → withCalculatedWidth.DgKFTeif.js} +1 -1
  112. streamlit/static/static/js/{withFullScreenWrapper.BMim3w94.js → withFullScreenWrapper.K1jkwhPu.js} +1 -1
  113. streamlit/user_info.py +225 -166
  114. {streamlit_nightly-1.52.3.dev20260113.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/METADATA +1 -1
  115. {streamlit_nightly-1.52.3.dev20260113.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/RECORD +119 -120
  116. streamlit/commands/experimental_query_params.py +0 -169
  117. streamlit/static/static/js/Particles.S8yD7iW-.js +0 -1
  118. streamlit/static/static/js/Toolbar.B9DaaDfN.js +0 -1
  119. streamlit/static/static/js/index.43b777iP.js +0 -1
  120. streamlit/static/static/js/index.C0fSEz-3.js +0 -1
  121. streamlit/static/static/js/index.CIbgt5wY.js +0 -1
  122. streamlit/static/static/js/index.CSfsEKCF.js +0 -2
  123. streamlit/static/static/js/index.CrPjcPY1.js +0 -1
  124. streamlit/static/static/js/index.D1pK_Vw2.js +0 -1
  125. streamlit/static/static/js/index.DGYHxruh.js +0 -1
  126. streamlit/static/static/js/index.DJ7P09eb.js +0 -2
  127. streamlit/static/static/js/index.Dh5SAThV.js +0 -11
  128. streamlit/static/static/js/index.QHnxuesF.js +0 -1
  129. streamlit/static/static/js/index.j4fnjyHo.js +0 -1
  130. streamlit/static/static/js/uniqueId.BFHzT5KQ.js +0 -1
  131. streamlit/static/static/js/useUpdateUiValue.BkOWyNVX.js +0 -1
  132. {streamlit_nightly-1.52.3.dev20260113.data → streamlit_nightly-1.53.1.dev20260115.data}/scripts/streamlit.cmd +0 -0
  133. {streamlit_nightly-1.52.3.dev20260113.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/WHEEL +0 -0
  134. {streamlit_nightly-1.52.3.dev20260113.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/entry_points.txt +0 -0
  135. {streamlit_nightly-1.52.3.dev20260113.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/top_level.txt +0 -0
@@ -58,7 +58,6 @@ DIVERGING_6: Final = "#000027"
58
58
  DIVERGING_7: Final = "#000028"
59
59
  DIVERGING_8: Final = "#000029"
60
60
  DIVERGING_9: Final = "#000030"
61
- DIVERGING_10: Final = "#000031"
62
61
 
63
62
  INCREASING: Final = "#000032"
64
63
  DECREASING: Final = "#000033"
@@ -189,16 +188,15 @@ def configure_streamlit_plotly_theme() -> None:
189
188
  sequentialminus=streamlit_colorscale,
190
189
  diverging=[
191
190
  [0.0, DIVERGING_0],
192
- [0.1, DIVERGING_1],
193
- [0.2, DIVERGING_2],
194
- [0.3, DIVERGING_3],
195
- [0.4, DIVERGING_4],
196
- [0.5, DIVERGING_5],
197
- [0.6, DIVERGING_6],
198
- [0.7, DIVERGING_7],
199
- [0.8, DIVERGING_8],
200
- [0.9, DIVERGING_9],
201
- [1.0, DIVERGING_10],
191
+ [0.1111111111111111, DIVERGING_1],
192
+ [0.2222222222222222, DIVERGING_2],
193
+ [0.3333333333333333, DIVERGING_3],
194
+ [0.4444444444444444, DIVERGING_4],
195
+ [0.5555555555555556, DIVERGING_5],
196
+ [0.6666666666666666, DIVERGING_6],
197
+ [0.7777777777777778, DIVERGING_7],
198
+ [0.8888888888888888, DIVERGING_8],
199
+ [1.0, DIVERGING_9],
202
200
  ],
203
201
  ),
204
202
  coloraxis=go.layout.Coloraxis(colorscale=streamlit_colorscale),
@@ -108,11 +108,6 @@ class MetricMixin:
108
108
  ) -> DeltaGenerator:
109
109
  r"""Display a metric in big bold font, with an optional indicator of how the metric changed.
110
110
 
111
- Tip: If you want to display a large number, it may be a good idea to
112
- shorten it using packages like `millify <https://github.com/azaitsev/millify>`_
113
- or `numerize <https://github.com/davidsa03/numerize>`_. E.g. ``1234`` can be
114
- displayed as ``1.2k`` using ``st.metric("Short number", millify(1234))``.
115
-
116
111
  Parameters
117
112
  ----------
118
113
  label : str
@@ -135,35 +130,38 @@ class MetricMixin:
135
130
  value : int, float, decimal.Decimal, str, or None
136
131
  Value of the metric. ``None`` is rendered as a long dash.
137
132
 
138
- The value can optionally contain GitHub-flavored Markdown,
139
- including the Markdown directives described in the ``body``
140
- parameter of ``st.markdown``.
133
+ The value can optionally contain GitHub-flavored Markdown, subject
134
+ to the same limitations described in the ``label`` parameter.
141
135
 
142
136
  delta : int, float, decimal.Decimal, str, or None
143
- Indicator of how the metric changed, rendered with an arrow below
144
- the metric. If delta is negative (int/float) or starts with a minus
145
- sign (str), the arrow points down and the text is red; else the
146
- arrow points up and the text is green. If None (default), no delta
147
- indicator is shown.
137
+ Amount or indicator of change in the metric. An arrow is shown next
138
+ to the delta, oriented according to its sign:
148
139
 
149
- The delta can optionally contain GitHub-flavored Markdown
150
- including the Markdown directives described in the ``body``
151
- parameter of ``st.markdown``.
140
+ - If the delta is ``None`` or an empty string, no arrow is shown.
141
+ - If the delta is a negative number or starts with a minus sign,
142
+ the arrow points down and the delta is red.
143
+ - Otherwise, the arrow points up and the delta is green.
144
+
145
+ You can modify the display, color, and orientation of the arrow
146
+ using the ``delta_color`` and ``delta_arrow`` parameters.
147
+
148
+ The delta can optionally contain GitHub-flavored Markdown, subject
149
+ to the same limitations described in the ``label`` parameter.
152
150
 
153
151
  delta_color : str
154
- The color of the delta indicator. This can be one of the following:
155
-
156
- - ``"normal"`` (default): The delta indicator is green when
157
- positive and red when negative.
158
- - ``"inverse"``: The delta indicator is red when positive and
159
- green when negative. This is useful when a negative change is
160
- considered good, e.g. if cost decreased.
161
- - ``"off"``: The delta indicator is shown in gray regardless of
162
- its value.
163
- - A named color from the basic palette: ``"red"``, ``"orange"``,
164
- ``"yellow"``, ``"green"``, ``"blue"``, ``"violet"``,
165
- ``"gray"``/``"grey"``, or ``"primary"``. The delta indicator
166
- and chart uses that color regardless of its value.
152
+ The color of the delta and chart. This can be one of the following:
153
+
154
+ - ``"normal"`` (default): The color is red when the delta is
155
+ negative and green otherwise.
156
+ - ``"inverse"``: The color is green when the delta is negative and
157
+ red otherwise. This is useful when a negative change is
158
+ considered good, like a decrease in cost.
159
+ - ``"off"``: The color is gray regardless of the delta.
160
+ - A named color from the basic palette: The chart and delta are the
161
+ specified color regardless of their value. This can be one of the
162
+ following: ``"red"``, ``"orange"``, ``"yellow"``, ``"green"``,
163
+ ``"blue"``, ``"violet"``, ``"gray"``/``"grey"``, or
164
+ ``"primary"``.
167
165
 
168
166
  help : str or None
169
167
  A tooltip that gets displayed next to the metric label. Streamlit
@@ -189,26 +187,26 @@ class MetricMixin:
189
187
  The height of the metric element. This can be one of the following:
190
188
 
191
189
  - ``"content"`` (default): The height of the element matches the
192
- height of its content.
190
+ height of its content.
193
191
  - ``"stretch"``: The height of the element matches the height of
194
- its content or the height of the parent container, whichever is
195
- larger. If the element is not in a parent container, the height
196
- of the element matches the height of its content.
192
+ its content or the height of the parent container, whichever is
193
+ larger. If the element is not in a parent container, the height
194
+ of the element matches the height of its content.
197
195
  - An integer specifying the height in pixels: The element has a
198
- fixed height. If the content is larger than the specified
199
- height, scrolling is enabled.
196
+ fixed height. If the content is larger than the specified
197
+ height, scrolling is enabled.
200
198
 
201
199
  width : "stretch", "content", or int
202
200
  The width of the metric element. This can be one of the following:
203
201
 
204
202
  - ``"stretch"`` (default): The width of the element matches the
205
- width of the parent container.
203
+ width of the parent container.
206
204
  - ``"content"``: The width of the element matches the width of its
207
- content, but doesn't exceed the width of the parent container.
205
+ content, but doesn't exceed the width of the parent container.
208
206
  - An integer specifying the width in pixels: The element has a
209
- fixed width. If the specified width is greater than the width of
210
- the parent container, the width of the element matches the width
211
- of the parent container.
207
+ fixed width. If the specified width is greater than the width of
208
+ the parent container, the width of the element matches the width
209
+ of the parent container.
212
210
 
213
211
  chart_data : Iterable or None
214
212
  A sequence of numeric values to display as a sparkline chart. If
@@ -218,6 +216,9 @@ class MetricMixin:
218
216
  be used. Each value will be cast to ``float`` internally by
219
217
  default.
220
218
 
219
+ The chart uses the color of the delta indicator, which can be
220
+ modified using the ``delta_color`` parameter.
221
+
221
222
  chart_type : "line", "bar", or "area"
222
223
  The type of sparkline chart to display. This can be one of the
223
224
  following:
@@ -231,18 +232,18 @@ class MetricMixin:
231
232
  one of the following strings:
232
233
 
233
234
  - ``"auto"`` (default): The arrow direction follows the sign of
234
- ``delta``.
235
+ ``delta``.
235
236
  - ``"up"`` or ``"down"``: The arrow is forced to point in the
236
- specified direction.
237
+ specified direction.
237
238
  - ``"off"``: No arrow is shown, but the delta value remains
238
- visible.
239
+ visible.
239
240
 
240
241
  format : str or None
241
242
  A format string controlling how numbers are displayed for ``value``
242
243
  and ``delta``. The format is only applied if the value or delta is
243
- numeric (int, float, or decimal.Decimal). If the value or delta is
244
- a string with non-numeric characters, the format is ignored.
245
- This can be one of the following values:
244
+ numeric. If the value or delta is a string with non-numeric
245
+ characters, the format is ignored. The format can be one of the
246
+ following values:
246
247
 
247
248
  - ``None`` (default): No formatting is applied.
248
249
  - ``"plain"``: Show the full number without any formatting (e.g. "1234.567").
@@ -257,8 +258,8 @@ class MetricMixin:
257
258
  - ``"scientific"``: Show the number in scientific notation (e.g. "1.235E3").
258
259
  - ``"engineering"``: Show the number in engineering notation (e.g. "1.235E3").
259
260
  - printf-style format string: Format the number with a printf
260
- specifier, like ``"%d"`` to show a signed integer (e.g. "1234") or
261
- ``"%.2f"`` to show a float with 2 decimal places.
261
+ specifier, like ``"%d"`` to show a signed integer (e.g. "1234") or
262
+ ``"%.2f"`` to show a float with 2 decimal places.
262
263
 
263
264
  Examples
264
265
  --------
@@ -223,8 +223,8 @@ class ButtonMixin:
223
223
  - ``"spinner"``: Displays a spinner as an icon.
224
224
 
225
225
  icon_position : "left" or "right"
226
- The position of the icon relative to the button label. Defaults to
227
- ``"left"``.
226
+ The position of the icon relative to the button label. This
227
+ defaults to ``"left"``.
228
228
 
229
229
  disabled : bool
230
230
  An optional boolean that disables the button if set to ``True``.
@@ -539,8 +539,8 @@ class ButtonMixin:
539
539
  - ``"spinner"``: Displays a spinner as an icon.
540
540
 
541
541
  icon_position : "left" or "right"
542
- The position of the icon relative to the button label. Defaults to
543
- ``"left"``.
542
+ The position of the icon relative to the button label. This
543
+ defaults to ``"left"``.
544
544
 
545
545
  disabled : bool
546
546
  An optional boolean that disables the download button if set to
@@ -847,8 +847,8 @@ class ButtonMixin:
847
847
  - ``"spinner"``: Displays a spinner as an icon.
848
848
 
849
849
  icon_position : "left" or "right"
850
- The position of the icon relative to the button label. Defaults to
851
- ``"left"``.
850
+ The position of the icon relative to the button label. This
851
+ defaults to ``"left"``.
852
852
 
853
853
  disabled : bool
854
854
  An optional boolean that disables the link button if set to
@@ -990,7 +990,7 @@ class ButtonMixin:
990
990
  .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
991
991
 
992
992
  icon : str or None
993
- An optional emoji or icon to display next to the button label. If
993
+ An optional emoji or icon to display next to the link label. If
994
994
  ``icon`` is ``None`` (default), the icon is inferred from the
995
995
  ``StreamlitPage`` object or no icon is displayed. If ``icon`` is a
996
996
  string, the following options are valid:
@@ -1010,8 +1010,8 @@ class ButtonMixin:
1010
1010
  - ``"spinner"``: Displays a spinner as an icon.
1011
1011
 
1012
1012
  icon_position : "left" or "right"
1013
- The position of the icon relative to the page link label. Defaults
1014
- to ``"left"``.
1013
+ The position of the icon relative to the link label. This
1014
+ defaults to ``"left"``.
1015
1015
 
1016
1016
  help : str or None
1017
1017
  A tooltip that gets displayed when the link is hovered over. If
@@ -633,16 +633,12 @@ class ChatMixin:
633
633
  ``None`` (default), there will be no maximum.
634
634
 
635
635
  max_upload_size : int or None
636
- The maximum allowed size of each uploaded file for this chat input,
637
- in megabytes.
636
+ The maximum allowed size of each uploaded file in megabytes.
638
637
 
639
- When set to a positive integer, this per-widget limit takes
640
- precedence over the global ``server.maxUploadSize`` configuration
641
- option.
642
-
643
- When this is ``None`` (default), the chat input falls back to
644
- ``server.maxUploadSize`` for its file size limit. For more
645
- information on how to set config options, see |config.toml|_.
638
+ If this is ``None`` (default), the maximum file size is set by the
639
+ ``server.maxUploadSize`` configuration option in your
640
+ ``config.toml`` file. If this is an integer, it must be positive
641
+ and will override the ``server.maxUploadSize`` configuration option.
646
642
 
647
643
  accept_file : bool, "multiple", or "directory"
648
644
  Whether the chat input should accept files. This can be one of the
@@ -792,10 +792,10 @@ class DataEditorMixin:
792
792
  first index column.
793
793
 
794
794
  num_rows : "fixed", "dynamic", "add", or "delete"
795
- Specifies if the user can add and delete rows in the data editor.
795
+ Specifies if the user can add and/or delete rows in the data editor.
796
796
 
797
- - ``"fixed"`` (default): The user cannot add or delete rows.
798
- - ``"dynamic"``: The user can add and delete rows, but column
797
+ - ``"fixed"`` (default): The user can't add or delete rows.
798
+ - ``"dynamic"``: The user can add and delete rows, and column
799
799
  sorting is disabled.
800
800
  - ``"add"``: The user can only add rows (no deleting), and column
801
801
  sorting is disabled.
@@ -266,9 +266,12 @@ class FileUploaderMixin:
266
266
  width: WidthWithoutContent = "stretch",
267
267
  ) -> UploadedFile | list[UploadedFile] | None:
268
268
  r"""Display a file uploader widget.
269
+
269
270
  By default, uploaded files are limited to 200 MB each. You can
270
- configure this using the ``server.maxUploadSize`` config option. For
271
- more information on how to set config options, see |config.toml|_.
271
+ configure this globally using the ``server.maxUploadSize`` configuration
272
+ option. For more information on how to set configuration options, see
273
+ |config.toml|_. Additionally, you can set a per-widget limit using the
274
+ ``max_upload_size`` parameter.
272
275
 
273
276
  .. |config.toml| replace:: ``config.toml``
274
277
  .. _config.toml: https://docs.streamlit.io/develop/api-reference/configuration/config.toml
@@ -315,16 +318,12 @@ class FileUploaderMixin:
315
318
  part of the app developer's responsibility.
316
319
 
317
320
  max_upload_size : int or None
318
- The maximum allowed size of each uploaded file for this uploader,
319
- in megabytes.
320
-
321
- When set to a positive integer, this per-widget limit takes
322
- precedence over the global ``server.maxUploadSize`` configuration
323
- option.
321
+ The maximum allowed size of each uploaded file in megabytes.
324
322
 
325
- When this is ``None`` (default), the uploader falls back to
326
- ``server.maxUploadSize`` for its file size limit. For more
327
- information on how to set config options, see |config.toml|_.
323
+ If this is ``None`` (default), the maximum file size is set by the
324
+ ``server.maxUploadSize`` configuration option in your
325
+ ``config.toml`` file. If this is an integer, it must be positive
326
+ and will override the ``server.maxUploadSize`` configuration option.
328
327
 
329
328
  accept_multiple_files : bool or "directory"
330
329
  Whether to accept more than one file in a submission. This can be one
@@ -200,6 +200,10 @@ class SelectSliderMixin:
200
200
  ``options`` is dataframe-like, the first column will be used. Each
201
201
  label will be cast to ``str`` internally by default.
202
202
 
203
+ Each item in the iterable can optionally contain GitHub-flavored
204
+ Markdown, subject to the same limitations described in the
205
+ ``label`` parameter.
206
+
203
207
  value : a supported type or a tuple/list of supported types or None
204
208
  The value of the slider when it first renders. If a tuple/list
205
209
  of two values is passed here, then a range slider with those lower
@@ -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\"\xc2\x15\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!\n\x0c\x66ont_sources\x18% \x03(\x0b\x32\x0b.FontSource\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\x1d\n\x10\x62\x61se_font_weight\x18\x1e \x01(\x05H\x08\x88\x01\x01\x12\x1d\n\x10\x63ode_font_weight\x18 \x01(\x05H\t\x88\x01\x01\x12\x1b\n\x0e\x63ode_font_size\x18\x1c \x01(\tH\n\x88\x01\x01\x12\x1a\n\x12heading_font_sizes\x18# \x03(\t\x12\x1c\n\x14heading_font_weights\x18\" \x03(\x05\x12 \n\x13show_sidebar_border\x18\x17 \x01(\x08H\x0b\x88\x01\x01\x12\x1c\n\x0f\x63ode_text_color\x18; \x01(\tH\x0c\x88\x01\x01\x12\"\n\x15\x63ode_background_color\x18\x19 \x01(\tH\r\x88\x01\x01\x12.\n!dataframe_header_background_color\x18\x1f \x01(\tH\x0e\x88\x01\x01\x12 \n\x18\x63hart_categorical_colors\x18! \x03(\t\x12\x1f\n\x17\x63hart_sequential_colors\x18$ \x03(\t\x12\x16\n\tred_color\x18& \x01(\tH\x0f\x88\x01\x01\x12\x19\n\x0corange_color\x18\' \x01(\tH\x10\x88\x01\x01\x12\x19\n\x0cyellow_color\x18( \x01(\tH\x11\x88\x01\x01\x12\x17\n\nblue_color\x18) \x01(\tH\x12\x88\x01\x01\x12\x18\n\x0bgreen_color\x18* \x01(\tH\x13\x88\x01\x01\x12\x19\n\x0cviolet_color\x18+ \x01(\tH\x14\x88\x01\x01\x12\x17\n\ngray_color\x18, \x01(\tH\x15\x88\x01\x01\x12!\n\x14red_background_color\x18- \x01(\tH\x16\x88\x01\x01\x12$\n\x17orange_background_color\x18. \x01(\tH\x17\x88\x01\x01\x12$\n\x17yellow_background_color\x18/ \x01(\tH\x18\x88\x01\x01\x12\"\n\x15\x62lue_background_color\x18\x30 \x01(\tH\x19\x88\x01\x01\x12#\n\x16green_background_color\x18\x31 \x01(\tH\x1a\x88\x01\x01\x12$\n\x17violet_background_color\x18\x32 \x01(\tH\x1b\x88\x01\x01\x12\"\n\x15gray_background_color\x18\x33 \x01(\tH\x1c\x88\x01\x01\x12\x1b\n\x0ered_text_color\x18\x34 \x01(\tH\x1d\x88\x01\x01\x12\x1e\n\x11orange_text_color\x18\x35 \x01(\tH\x1e\x88\x01\x01\x12\x1e\n\x11yellow_text_color\x18\x36 \x01(\tH\x1f\x88\x01\x01\x12\x1c\n\x0f\x62lue_text_color\x18\x37 \x01(\tH \x88\x01\x01\x12\x1d\n\x10green_text_color\x18\x38 \x01(\tH!\x88\x01\x01\x12\x1e\n\x11violet_text_color\x18\x39 \x01(\tH\"\x88\x01\x01\x12\x1c\n\x0fgray_text_color\x18: \x01(\tH#\x88\x01\x01\x12(\n\x07sidebar\x18\x18 \x01(\x0b\x32\x12.CustomThemeConfigH$\x88\x01\x01\x12&\n\x05light\x18< \x01(\x0b\x32\x12.CustomThemeConfigH%\x88\x01\x01\x12%\n\x04\x64\x61rk\x18= \x01(\x0b\x32\x12.CustomThemeConfigH&\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\x13\n\x11_base_font_weightB\x13\n\x11_code_font_weightB\x11\n\x0f_code_font_sizeB\x16\n\x14_show_sidebar_borderB\x12\n\x10_code_text_colorB\x18\n\x16_code_background_colorB$\n\"_dataframe_header_background_colorB\x0c\n\n_red_colorB\x0f\n\r_orange_colorB\x0f\n\r_yellow_colorB\r\n\x0b_blue_colorB\x0e\n\x0c_green_colorB\x0f\n\r_violet_colorB\r\n\x0b_gray_colorB\x17\n\x15_red_background_colorB\x1a\n\x18_orange_background_colorB\x1a\n\x18_yellow_background_colorB\x18\n\x16_blue_background_colorB\x19\n\x17_green_background_colorB\x1a\n\x18_violet_background_colorB\x18\n\x16_gray_background_colorB\x11\n\x0f_red_text_colorB\x14\n\x12_orange_text_colorB\x14\n\x12_yellow_text_colorB\x12\n\x10_blue_text_colorB\x13\n\x11_green_text_colorB\x14\n\x12_violet_text_colorB\x12\n\x10_gray_text_colorB\n\n\x08_sidebarB\x08\n\x06_lightB\x07\n\x05_dark\"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\"5\n\nFontSource\x12\x13\n\x0b\x63onfig_name\x18\x01 \x01(\t\x12\x12\n\nsource_url\x18\x02 \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\"\xe2\x15\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!\n\x0c\x66ont_sources\x18% \x03(\x0b\x32\x0b.FontSource\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\x1d\n\x10\x62\x61se_font_weight\x18\x1e \x01(\x05H\x08\x88\x01\x01\x12\x1d\n\x10\x63ode_font_weight\x18 \x01(\x05H\t\x88\x01\x01\x12\x1b\n\x0e\x63ode_font_size\x18\x1c \x01(\tH\n\x88\x01\x01\x12\x1a\n\x12heading_font_sizes\x18# \x03(\t\x12\x1c\n\x14heading_font_weights\x18\" \x03(\x05\x12 \n\x13show_sidebar_border\x18\x17 \x01(\x08H\x0b\x88\x01\x01\x12\x1c\n\x0f\x63ode_text_color\x18; \x01(\tH\x0c\x88\x01\x01\x12\"\n\x15\x63ode_background_color\x18\x19 \x01(\tH\r\x88\x01\x01\x12.\n!dataframe_header_background_color\x18\x1f \x01(\tH\x0e\x88\x01\x01\x12 \n\x18\x63hart_categorical_colors\x18! \x03(\t\x12\x1f\n\x17\x63hart_sequential_colors\x18$ \x03(\t\x12\x1e\n\x16\x63hart_diverging_colors\x18> \x03(\t\x12\x16\n\tred_color\x18& \x01(\tH\x0f\x88\x01\x01\x12\x19\n\x0corange_color\x18\' \x01(\tH\x10\x88\x01\x01\x12\x19\n\x0cyellow_color\x18( \x01(\tH\x11\x88\x01\x01\x12\x17\n\nblue_color\x18) \x01(\tH\x12\x88\x01\x01\x12\x18\n\x0bgreen_color\x18* \x01(\tH\x13\x88\x01\x01\x12\x19\n\x0cviolet_color\x18+ \x01(\tH\x14\x88\x01\x01\x12\x17\n\ngray_color\x18, \x01(\tH\x15\x88\x01\x01\x12!\n\x14red_background_color\x18- \x01(\tH\x16\x88\x01\x01\x12$\n\x17orange_background_color\x18. \x01(\tH\x17\x88\x01\x01\x12$\n\x17yellow_background_color\x18/ \x01(\tH\x18\x88\x01\x01\x12\"\n\x15\x62lue_background_color\x18\x30 \x01(\tH\x19\x88\x01\x01\x12#\n\x16green_background_color\x18\x31 \x01(\tH\x1a\x88\x01\x01\x12$\n\x17violet_background_color\x18\x32 \x01(\tH\x1b\x88\x01\x01\x12\"\n\x15gray_background_color\x18\x33 \x01(\tH\x1c\x88\x01\x01\x12\x1b\n\x0ered_text_color\x18\x34 \x01(\tH\x1d\x88\x01\x01\x12\x1e\n\x11orange_text_color\x18\x35 \x01(\tH\x1e\x88\x01\x01\x12\x1e\n\x11yellow_text_color\x18\x36 \x01(\tH\x1f\x88\x01\x01\x12\x1c\n\x0f\x62lue_text_color\x18\x37 \x01(\tH \x88\x01\x01\x12\x1d\n\x10green_text_color\x18\x38 \x01(\tH!\x88\x01\x01\x12\x1e\n\x11violet_text_color\x18\x39 \x01(\tH\"\x88\x01\x01\x12\x1c\n\x0fgray_text_color\x18: \x01(\tH#\x88\x01\x01\x12(\n\x07sidebar\x18\x18 \x01(\x0b\x32\x12.CustomThemeConfigH$\x88\x01\x01\x12&\n\x05light\x18< \x01(\x0b\x32\x12.CustomThemeConfigH%\x88\x01\x01\x12%\n\x04\x64\x61rk\x18= \x01(\x0b\x32\x12.CustomThemeConfigH&\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\x13\n\x11_base_font_weightB\x13\n\x11_code_font_weightB\x11\n\x0f_code_font_sizeB\x16\n\x14_show_sidebar_borderB\x12\n\x10_code_text_colorB\x18\n\x16_code_background_colorB$\n\"_dataframe_header_background_colorB\x0c\n\n_red_colorB\x0f\n\r_orange_colorB\x0f\n\r_yellow_colorB\r\n\x0b_blue_colorB\x0e\n\x0c_green_colorB\x0f\n\r_violet_colorB\r\n\x0b_gray_colorB\x17\n\x15_red_background_colorB\x1a\n\x18_orange_background_colorB\x1a\n\x18_yellow_background_colorB\x18\n\x16_blue_background_colorB\x19\n\x17_green_background_colorB\x1a\n\x18_violet_background_colorB\x18\n\x16_gray_background_colorB\x11\n\x0f_red_text_colorB\x14\n\x12_orange_text_colorB\x14\n\x12_yellow_text_colorB\x12\n\x10_blue_text_colorB\x13\n\x11_green_text_colorB\x14\n\x12_violet_text_colorB\x12\n\x10_gray_text_colorB\n\n\x08_sidebarB\x08\n\x06_lightB\x07\n\x05_dark\"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\"5\n\nFontSource\x12\x13\n\x0b\x63onfig_name\x18\x01 \x01(\t\x12\x12\n\nsource_url\x18\x02 \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,21 +35,21 @@ 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=3626
39
- _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_start=2739
40
- _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_end=2771
41
- _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_start=2773
42
- _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_end=2827
43
- _globals['_FONTFACE']._serialized_start=3628
44
- _globals['_FONTFACE']._serialized_end=3747
45
- _globals['_FONTSOURCE']._serialized_start=3749
46
- _globals['_FONTSOURCE']._serialized_end=3802
47
- _globals['_RADII']._serialized_start=3804
48
- _globals['_RADII']._serialized_end=3864
49
- _globals['_FONTSIZES']._serialized_start=3866
50
- _globals['_FONTSIZES']._serialized_end=3950
51
- _globals['_USERINFO']._serialized_start=3952
52
- _globals['_USERINFO']._serialized_end=4049
53
- _globals['_ENVIRONMENTINFO']._serialized_start=4051
54
- _globals['_ENVIRONMENTINFO']._serialized_end=4159
38
+ _globals['_CUSTOMTHEMECONFIG']._serialized_end=3658
39
+ _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_start=2771
40
+ _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_end=2803
41
+ _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_start=2805
42
+ _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_end=2859
43
+ _globals['_FONTFACE']._serialized_start=3660
44
+ _globals['_FONTFACE']._serialized_end=3779
45
+ _globals['_FONTSOURCE']._serialized_start=3781
46
+ _globals['_FONTSOURCE']._serialized_end=3834
47
+ _globals['_RADII']._serialized_start=3836
48
+ _globals['_RADII']._serialized_end=3896
49
+ _globals['_FONTSIZES']._serialized_start=3898
50
+ _globals['_FONTSIZES']._serialized_end=3982
51
+ _globals['_USERINFO']._serialized_start=3984
52
+ _globals['_USERINFO']._serialized_end=4081
53
+ _globals['_ENVIRONMENTINFO']._serialized_start=4083
54
+ _globals['_ENVIRONMENTINFO']._serialized_end=4191
55
55
  # @@protoc_insertion_point(module_scope)
@@ -314,6 +314,7 @@ class CustomThemeConfig(_message.Message):
314
314
  DATAFRAME_HEADER_BACKGROUND_COLOR_FIELD_NUMBER: _builtins.int
315
315
  CHART_CATEGORICAL_COLORS_FIELD_NUMBER: _builtins.int
316
316
  CHART_SEQUENTIAL_COLORS_FIELD_NUMBER: _builtins.int
317
+ CHART_DIVERGING_COLORS_FIELD_NUMBER: _builtins.int
317
318
  RED_COLOR_FIELD_NUMBER: _builtins.int
318
319
  ORANGE_COLOR_FIELD_NUMBER: _builtins.int
319
320
  YELLOW_COLOR_FIELD_NUMBER: _builtins.int
@@ -414,6 +415,8 @@ class CustomThemeConfig(_message.Message):
414
415
  @_builtins.property
415
416
  def chart_sequential_colors(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
416
417
  @_builtins.property
418
+ def chart_diverging_colors(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
419
+ @_builtins.property
417
420
  def sidebar(self) -> Global___CustomThemeConfig:
418
421
  """Theme sections:"""
419
422
 
@@ -459,6 +462,7 @@ class CustomThemeConfig(_message.Message):
459
462
  dataframe_header_background_color: _builtins.str | None = ...,
460
463
  chart_categorical_colors: _abc.Iterable[_builtins.str] | None = ...,
461
464
  chart_sequential_colors: _abc.Iterable[_builtins.str] | None = ...,
465
+ chart_diverging_colors: _abc.Iterable[_builtins.str] | None = ...,
462
466
  red_color: _builtins.str | None = ...,
463
467
  orange_color: _builtins.str | None = ...,
464
468
  yellow_color: _builtins.str | None = ...,
@@ -486,7 +490,7 @@ class CustomThemeConfig(_message.Message):
486
490
  ) -> None: ...
487
491
  _HasFieldArgType: _TypeAlias = _typing.Literal["_base_font_size", b"_base_font_size", "_base_font_weight", b"_base_font_weight", "_base_radius", b"_base_radius", "_blue_background_color", b"_blue_background_color", "_blue_color", b"_blue_color", "_blue_text_color", b"_blue_text_color", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_code_font_weight", b"_code_font_weight", "_code_text_color", b"_code_text_color", "_dark", b"_dark", "_dataframe_border_color", b"_dataframe_border_color", "_dataframe_header_background_color", b"_dataframe_header_background_color", "_gray_background_color", b"_gray_background_color", "_gray_color", b"_gray_color", "_gray_text_color", b"_gray_text_color", "_green_background_color", b"_green_background_color", "_green_color", b"_green_color", "_green_text_color", b"_green_text_color", "_light", b"_light", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_orange_background_color", b"_orange_background_color", "_orange_color", b"_orange_color", "_orange_text_color", b"_orange_text_color", "_red_background_color", b"_red_background_color", "_red_color", b"_red_color", "_red_text_color", b"_red_text_color", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "_violet_background_color", b"_violet_background_color", "_violet_color", b"_violet_color", "_violet_text_color", b"_violet_text_color", "_yellow_background_color", b"_yellow_background_color", "_yellow_color", b"_yellow_color", "_yellow_text_color", b"_yellow_text_color", "base_font_size", b"base_font_size", "base_font_weight", b"base_font_weight", "base_radius", b"base_radius", "blue_background_color", b"blue_background_color", "blue_color", b"blue_color", "blue_text_color", b"blue_text_color", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "code_font_size", b"code_font_size", "code_font_weight", b"code_font_weight", "code_text_color", b"code_text_color", "dark", b"dark", "dataframe_border_color", b"dataframe_border_color", "dataframe_header_background_color", b"dataframe_header_background_color", "font_sizes", b"font_sizes", "gray_background_color", b"gray_background_color", "gray_color", b"gray_color", "gray_text_color", b"gray_text_color", "green_background_color", b"green_background_color", "green_color", b"green_color", "green_text_color", b"green_text_color", "light", b"light", "link_color", b"link_color", "link_underline", b"link_underline", "orange_background_color", b"orange_background_color", "orange_color", b"orange_color", "orange_text_color", b"orange_text_color", "radii", b"radii", "red_background_color", b"red_background_color", "red_color", b"red_color", "red_text_color", b"red_text_color", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar", "violet_background_color", b"violet_background_color", "violet_color", b"violet_color", "violet_text_color", b"violet_text_color", "yellow_background_color", b"yellow_background_color", "yellow_color", b"yellow_color", "yellow_text_color", b"yellow_text_color"] # noqa: Y015
488
492
  def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
489
- _ClearFieldArgType: _TypeAlias = _typing.Literal["_base_font_size", b"_base_font_size", "_base_font_weight", b"_base_font_weight", "_base_radius", b"_base_radius", "_blue_background_color", b"_blue_background_color", "_blue_color", b"_blue_color", "_blue_text_color", b"_blue_text_color", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_code_font_weight", b"_code_font_weight", "_code_text_color", b"_code_text_color", "_dark", b"_dark", "_dataframe_border_color", b"_dataframe_border_color", "_dataframe_header_background_color", b"_dataframe_header_background_color", "_gray_background_color", b"_gray_background_color", "_gray_color", b"_gray_color", "_gray_text_color", b"_gray_text_color", "_green_background_color", b"_green_background_color", "_green_color", b"_green_color", "_green_text_color", b"_green_text_color", "_light", b"_light", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_orange_background_color", b"_orange_background_color", "_orange_color", b"_orange_color", "_orange_text_color", b"_orange_text_color", "_red_background_color", b"_red_background_color", "_red_color", b"_red_color", "_red_text_color", b"_red_text_color", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "_violet_background_color", b"_violet_background_color", "_violet_color", b"_violet_color", "_violet_text_color", b"_violet_text_color", "_yellow_background_color", b"_yellow_background_color", "_yellow_color", b"_yellow_color", "_yellow_text_color", b"_yellow_text_color", "background_color", b"background_color", "base", b"base", "base_font_size", b"base_font_size", "base_font_weight", b"base_font_weight", "base_radius", b"base_radius", "blue_background_color", b"blue_background_color", "blue_color", b"blue_color", "blue_text_color", b"blue_text_color", "body_font", b"body_font", "border_color", b"border_color", "button_radius", b"button_radius", "chart_categorical_colors", b"chart_categorical_colors", "chart_sequential_colors", b"chart_sequential_colors", "code_background_color", b"code_background_color", "code_font", b"code_font", "code_font_size", b"code_font_size", "code_font_weight", b"code_font_weight", "code_text_color", b"code_text_color", "dark", b"dark", "dataframe_border_color", b"dataframe_border_color", "dataframe_header_background_color", b"dataframe_header_background_color", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "font_sources", b"font_sources", "gray_background_color", b"gray_background_color", "gray_color", b"gray_color", "gray_text_color", b"gray_text_color", "green_background_color", b"green_background_color", "green_color", b"green_color", "green_text_color", b"green_text_color", "heading_font", b"heading_font", "heading_font_sizes", b"heading_font_sizes", "heading_font_weights", b"heading_font_weights", "light", b"light", "link_color", b"link_color", "link_underline", b"link_underline", "orange_background_color", b"orange_background_color", "orange_color", b"orange_color", "orange_text_color", b"orange_text_color", "primary_color", b"primary_color", "radii", b"radii", "red_background_color", b"red_background_color", "red_color", b"red_color", "red_text_color", b"red_text_color", "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", "violet_background_color", b"violet_background_color", "violet_color", b"violet_color", "violet_text_color", b"violet_text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color", "yellow_background_color", b"yellow_background_color", "yellow_color", b"yellow_color", "yellow_text_color", b"yellow_text_color"] # noqa: Y015
493
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["_base_font_size", b"_base_font_size", "_base_font_weight", b"_base_font_weight", "_base_radius", b"_base_radius", "_blue_background_color", b"_blue_background_color", "_blue_color", b"_blue_color", "_blue_text_color", b"_blue_text_color", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_code_font_weight", b"_code_font_weight", "_code_text_color", b"_code_text_color", "_dark", b"_dark", "_dataframe_border_color", b"_dataframe_border_color", "_dataframe_header_background_color", b"_dataframe_header_background_color", "_gray_background_color", b"_gray_background_color", "_gray_color", b"_gray_color", "_gray_text_color", b"_gray_text_color", "_green_background_color", b"_green_background_color", "_green_color", b"_green_color", "_green_text_color", b"_green_text_color", "_light", b"_light", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_orange_background_color", b"_orange_background_color", "_orange_color", b"_orange_color", "_orange_text_color", b"_orange_text_color", "_red_background_color", b"_red_background_color", "_red_color", b"_red_color", "_red_text_color", b"_red_text_color", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "_violet_background_color", b"_violet_background_color", "_violet_color", b"_violet_color", "_violet_text_color", b"_violet_text_color", "_yellow_background_color", b"_yellow_background_color", "_yellow_color", b"_yellow_color", "_yellow_text_color", b"_yellow_text_color", "background_color", b"background_color", "base", b"base", "base_font_size", b"base_font_size", "base_font_weight", b"base_font_weight", "base_radius", b"base_radius", "blue_background_color", b"blue_background_color", "blue_color", b"blue_color", "blue_text_color", b"blue_text_color", "body_font", b"body_font", "border_color", b"border_color", "button_radius", b"button_radius", "chart_categorical_colors", b"chart_categorical_colors", "chart_diverging_colors", b"chart_diverging_colors", "chart_sequential_colors", b"chart_sequential_colors", "code_background_color", b"code_background_color", "code_font", b"code_font", "code_font_size", b"code_font_size", "code_font_weight", b"code_font_weight", "code_text_color", b"code_text_color", "dark", b"dark", "dataframe_border_color", b"dataframe_border_color", "dataframe_header_background_color", b"dataframe_header_background_color", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "font_sources", b"font_sources", "gray_background_color", b"gray_background_color", "gray_color", b"gray_color", "gray_text_color", b"gray_text_color", "green_background_color", b"green_background_color", "green_color", b"green_color", "green_text_color", b"green_text_color", "heading_font", b"heading_font", "heading_font_sizes", b"heading_font_sizes", "heading_font_weights", b"heading_font_weights", "light", b"light", "link_color", b"link_color", "link_underline", b"link_underline", "orange_background_color", b"orange_background_color", "orange_color", b"orange_color", "orange_text_color", b"orange_text_color", "primary_color", b"primary_color", "radii", b"radii", "red_background_color", b"red_background_color", "red_color", b"red_color", "red_text_color", b"red_text_color", "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", "violet_background_color", b"violet_background_color", "violet_color", b"violet_color", "violet_text_color", b"violet_text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color", "yellow_background_color", b"yellow_background_color", "yellow_color", b"yellow_color", "yellow_text_color", b"yellow_text_color"] # noqa: Y015
490
494
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
491
495
  _WhichOneofReturnType__base_font_size: _TypeAlias = _typing.Literal["base_font_size"] # noqa: Y015
492
496
  _WhichOneofArgType__base_font_size: _TypeAlias = _typing.Literal["_base_font_size", b"_base_font_size"] # noqa: Y015