streamlit-nightly 1.45.2.dev20250512__py3-none-any.whl → 1.45.2.dev20250514__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 (154) hide show
  1. streamlit/__init__.py +1 -0
  2. streamlit/auth_util.py +6 -6
  3. streamlit/commands/echo.py +5 -3
  4. streamlit/commands/execution_control.py +30 -30
  5. streamlit/components/v1/custom_component.py +2 -2
  6. streamlit/config.py +7 -7
  7. streamlit/config_util.py +5 -6
  8. streamlit/delta_generator.py +4 -1
  9. streamlit/deprecation_util.py +5 -5
  10. streamlit/elements/doc_string.py +4 -6
  11. streamlit/elements/heading.py +3 -4
  12. streamlit/elements/html.py +3 -4
  13. streamlit/elements/lib/built_in_chart_utils.py +14 -11
  14. streamlit/elements/lib/image_utils.py +2 -3
  15. streamlit/elements/lib/options_selector_utils.py +1 -2
  16. streamlit/elements/lib/pandas_styler_utils.py +1 -3
  17. streamlit/elements/lib/policies.py +1 -1
  18. streamlit/elements/lib/subtitle_utils.py +6 -9
  19. streamlit/elements/map.py +1 -2
  20. streamlit/elements/plotly_chart.py +1 -2
  21. streamlit/elements/spinner.py +1 -1
  22. streamlit/elements/toast.py +1 -2
  23. streamlit/elements/vega_charts.py +1 -1
  24. streamlit/elements/widgets/chat.py +25 -27
  25. streamlit/elements/widgets/file_uploader.py +2 -2
  26. streamlit/elements/widgets/radio.py +4 -5
  27. streamlit/elements/widgets/select_slider.py +9 -11
  28. streamlit/elements/widgets/slider.py +1 -1
  29. streamlit/elements/write.py +2 -2
  30. streamlit/error_util.py +15 -8
  31. streamlit/errors.py +10 -7
  32. streamlit/file_util.py +6 -3
  33. streamlit/git_util.py +26 -21
  34. streamlit/hello/dataframe_demo.py +1 -1
  35. streamlit/hello/mapping_demo.py +1 -1
  36. streamlit/hello/plotting_demo.py +3 -3
  37. streamlit/hello/streamlit_app.py +1 -1
  38. streamlit/hello/utils.py +2 -1
  39. streamlit/navigation/page.py +5 -6
  40. streamlit/runtime/app_session.py +4 -4
  41. streamlit/runtime/caching/cache_data_api.py +2 -2
  42. streamlit/runtime/caching/cache_errors.py +1 -1
  43. streamlit/runtime/caching/cache_resource_api.py +1 -1
  44. streamlit/runtime/caching/cache_utils.py +3 -3
  45. streamlit/runtime/caching/cached_message_replay.py +1 -2
  46. streamlit/runtime/caching/hashing.py +2 -2
  47. streamlit/runtime/caching/storage/in_memory_cache_storage_wrapper.py +2 -3
  48. streamlit/runtime/context.py +1 -5
  49. streamlit/runtime/credentials.py +4 -4
  50. streamlit/runtime/forward_msg_queue.py +1 -1
  51. streamlit/runtime/media_file_manager.py +1 -2
  52. streamlit/runtime/memory_uploaded_file_manager.py +1 -1
  53. streamlit/runtime/metrics_util.py +1 -1
  54. streamlit/runtime/runtime.py +1 -1
  55. streamlit/runtime/scriptrunner/exec_code.py +1 -1
  56. streamlit/runtime/scriptrunner/script_cache.py +1 -1
  57. streamlit/runtime/scriptrunner/script_runner.py +9 -2
  58. streamlit/runtime/scriptrunner_utils/script_requests.py +3 -3
  59. streamlit/runtime/scriptrunner_utils/script_run_context.py +3 -3
  60. streamlit/runtime/secrets.py +6 -7
  61. streamlit/runtime/state/query_params.py +1 -1
  62. streamlit/runtime/state/session_state.py +1 -2
  63. streamlit/runtime/stats.py +1 -1
  64. streamlit/static/index.html +1 -1
  65. streamlit/static/static/js/{ErrorOutline.esm.Cfhrjz42.js → ErrorOutline.esm.DbGVRvJi.js} +1 -1
  66. streamlit/static/static/js/{FileDownload.esm.BN5DkI-d.js → FileDownload.esm.Dsazfko3.js} +1 -1
  67. streamlit/static/static/js/{FileHelper.BWWhRdUs.js → FileHelper.MycXbml-.js} +1 -1
  68. streamlit/static/static/js/{FormClearHelper.CHPGUkGG.js → FormClearHelper.BBCnWP4b.js} +1 -1
  69. streamlit/static/static/js/{Hooks.DjxyUmgD.js → Hooks.Cogxcj3O.js} +1 -1
  70. streamlit/static/static/js/{InputInstructions.Bkai2tFZ.js → InputInstructions.DmFmv5Ss.js} +1 -1
  71. streamlit/static/static/js/{ProgressBar.DFiqS51i.js → ProgressBar.CL8D7fKU.js} +1 -1
  72. streamlit/static/static/js/{RenderInPortalIfExists.DWTzV71R.js → RenderInPortalIfExists.BIF2_x-k.js} +1 -1
  73. streamlit/static/static/js/{Toolbar.Dk2A3VxL.js → Toolbar.BiePqUs0.js} +1 -1
  74. streamlit/static/static/js/{base-input.DfiT3r4p.js → base-input.9-IewVJN.js} +1 -1
  75. streamlit/static/static/js/{checkbox.DLXFjls2.js → checkbox.CvxVkFoK.js} +1 -1
  76. streamlit/static/static/js/{createSuper.n2DV0o-4.js → createSuper.CcYwpbOm.js} +1 -1
  77. streamlit/static/static/js/{data-grid-overlay-editor.v1LF25Ml.js → data-grid-overlay-editor.DVakjLUQ.js} +1 -1
  78. streamlit/static/static/js/{downloader.CI8EFE9Y.js → downloader.DUDYpW4X.js} +1 -1
  79. streamlit/static/static/js/{es6.CH6Tf3Uw.js → es6.Dd8C3gJG.js} +2 -2
  80. streamlit/static/static/js/{iframeResizer.contentWindow.VCjyiSg6.js → iframeResizer.contentWindow.ElqrcVSG.js} +1 -1
  81. streamlit/static/static/js/{index.7XN_jSTW.js → index.3TsDLcVz.js} +1 -1
  82. streamlit/static/static/js/{index.CmsMgepL.js → index.8U8I-dVE.js} +1 -1
  83. streamlit/static/static/js/{index.BROoC18J.js → index.B5gxNAgv.js} +1 -1
  84. streamlit/static/static/js/{index.B1j5m20t.js → index.BANNX-Et.js} +1 -1
  85. streamlit/static/static/js/{index.9p279joF.js → index.BRTdJWEL.js} +1 -1
  86. streamlit/static/static/js/{index.DoM9A12Z.js → index.BYGvkzYg.js} +6 -6
  87. streamlit/static/static/js/{index.DXDmqevk.js → index.Bgid2lLN.js} +1 -1
  88. streamlit/static/static/js/{index.BgY_Js0s.js → index.BkpDVBQw.js} +1 -1
  89. streamlit/static/static/js/{index.CXpQxU0G.js → index.Bud-F2Rk.js} +1 -1
  90. streamlit/static/static/js/{index.B-Q1qQil.js → index.C-wDYZmi.js} +1 -1
  91. streamlit/static/static/js/{index.C1P3O0oI.js → index.C44ecW4y.js} +1 -1
  92. streamlit/static/static/js/{index.STF1QdPr.js → index.CDxF0FlW.js} +1 -1
  93. streamlit/static/static/js/{index.Ovig-AMR.js → index.CM8qhnIu.js} +5 -5
  94. streamlit/static/static/js/{index.LqvX_Kr6.js → index.Chn8rXFO.js} +1 -1
  95. streamlit/static/static/js/{index.CR4eM0Q3.js → index.CkOK3vMg.js} +1 -1
  96. streamlit/static/static/js/{index.DMDjQhhk.js → index.CssifhIa.js} +1 -1
  97. streamlit/static/static/js/{index.SPkHHODG.js → index.CtEWZzBM.js} +1 -1
  98. streamlit/static/static/js/{index.uhNJX5pn.js → index.CwLlrvyN.js} +1 -1
  99. streamlit/static/static/js/{index.nmbrjghZ.js → index.D0fj09K-.js} +1 -1
  100. streamlit/static/static/js/{index.BFEA8ufN.js → index.D5Y8GQ-0.js} +1 -1
  101. streamlit/static/static/js/{index.DcH46Eo2.js → index.D8g5_NeN.js} +1 -1
  102. streamlit/static/static/js/{index.DM_jnlWC.js → index.DK1C5mv_.js} +1 -1
  103. streamlit/static/static/js/{index.uN3TP5oq.js → index.DNeEyPk6.js} +1 -1
  104. streamlit/static/static/js/{index.DKsDSPTo.js → index.DWBlm6kP.js} +1 -1
  105. streamlit/static/static/js/{index.C9ORVZvA.js → index.DWL3vnFa.js} +1 -1
  106. streamlit/static/static/js/{index.D1DxKfIm.js → index.DX_Td1Hq.js} +1 -1
  107. streamlit/static/static/js/{index.hFB9saa3.js → index.DfYxhBCm.js} +1 -1
  108. streamlit/static/static/js/{index.C1TEsRV0.js → index.DgQ-i_4o.js} +75 -75
  109. streamlit/static/static/js/{index.D_Bv6KD1.js → index.DiE_wY_P.js} +1 -1
  110. streamlit/static/static/js/{index.DUU38l7N.js → index.DrVpZAT_.js} +1 -1
  111. streamlit/static/static/js/{index.BEE4v1Vc.js → index.Dxf51cqQ.js} +1 -1
  112. streamlit/static/static/js/{index.jZkr87Ly.js → index.Ogd9LUng.js} +1 -1
  113. streamlit/static/static/js/{index.ZuW7Olhm.js → index.PYQDVW05.js} +1 -1
  114. streamlit/static/static/js/{index.DgeyRl4J.js → index.QqgppQA_.js} +1 -1
  115. streamlit/static/static/js/{index.D1An7GDs.js → index.rR2rxOdw.js} +1 -1
  116. streamlit/static/static/js/{index.BWVpiUBA.js → index.uT7_kc4D.js} +1 -1
  117. streamlit/static/static/js/{index.Cdsxte9t.js → index.y8UOtxmw.js} +1 -1
  118. streamlit/static/static/js/{input.BAfiLByr.js → input.D1uIuNvR.js} +1 -1
  119. streamlit/static/static/js/{memory.CvD1KGKJ.js → memory.C_YLF4Fx.js} +1 -1
  120. streamlit/static/static/js/{mergeWith.Dy4BuY-h.js → mergeWith.BrhEAUIQ.js} +1 -1
  121. streamlit/static/static/js/{number-overlay-editor.Bl84FLfp.js → number-overlay-editor.Cl4hS5U2.js} +1 -1
  122. streamlit/static/static/js/{possibleConstructorReturn.gffiKeDQ.js → possibleConstructorReturn.BizCfnoE.js} +1 -1
  123. streamlit/static/static/js/{sandbox.BXw8ya9t.js → sandbox.BYlf4D-n.js} +1 -1
  124. streamlit/static/static/js/{textarea.DNNNKi6n.js → textarea.BvMrgzVs.js} +1 -1
  125. streamlit/static/static/js/{timepicker.CgHlrhoy.js → timepicker.8sMF8VpM.js} +1 -1
  126. streamlit/static/static/js/{toConsumableArray.MtZ-3vir.js → toConsumableArray.Cl96Bc5x.js} +1 -1
  127. streamlit/static/static/js/{uniqueId.CFcd6g0d.js → uniqueId.BoXr82qs.js} +1 -1
  128. streamlit/static/static/js/{useBasicWidgetState.DadZUraL.js → useBasicWidgetState.DYpB4KjS.js} +1 -1
  129. streamlit/static/static/js/{useOnInputChange.V6d5TCFH.js → useOnInputChange.D17AAeVI.js} +1 -1
  130. streamlit/static/static/js/{withFullScreenWrapper.8qpius26.js → withFullScreenWrapper.Lq8QUQxx.js} +1 -1
  131. streamlit/temporary_directory.py +2 -2
  132. streamlit/testing/v1/app_test.py +2 -2
  133. streamlit/testing/v1/element_tree.py +7 -9
  134. streamlit/testing/v1/local_script_runner.py +1 -2
  135. streamlit/url_util.py +1 -1
  136. streamlit/watcher/folder_black_list.py +1 -1
  137. streamlit/watcher/local_sources_watcher.py +5 -3
  138. streamlit/watcher/path_watcher.py +1 -1
  139. streamlit/watcher/polling_path_watcher.py +1 -1
  140. streamlit/watcher/util.py +6 -5
  141. streamlit/web/bootstrap.py +4 -4
  142. streamlit/web/cli.py +13 -13
  143. streamlit/web/server/app_static_file_handler.py +1 -1
  144. streamlit/web/server/authlib_tornado_integration.py +6 -1
  145. streamlit/web/server/oauth_authlib_routes.py +3 -3
  146. streamlit/web/server/oidc_mixin.py +15 -3
  147. streamlit/web/server/routes.py +11 -11
  148. streamlit/web/server/stats_request_handler.py +2 -2
  149. {streamlit_nightly-1.45.2.dev20250512.dist-info → streamlit_nightly-1.45.2.dev20250514.dist-info}/METADATA +1 -1
  150. {streamlit_nightly-1.45.2.dev20250512.dist-info → streamlit_nightly-1.45.2.dev20250514.dist-info}/RECORD +154 -154
  151. {streamlit_nightly-1.45.2.dev20250512.dist-info → streamlit_nightly-1.45.2.dev20250514.dist-info}/WHEEL +1 -1
  152. {streamlit_nightly-1.45.2.dev20250512.data → streamlit_nightly-1.45.2.dev20250514.data}/scripts/streamlit.cmd +0 -0
  153. {streamlit_nightly-1.45.2.dev20250512.dist-info → streamlit_nightly-1.45.2.dev20250514.dist-info}/entry_points.txt +0 -0
  154. {streamlit_nightly-1.45.2.dev20250512.dist-info → streamlit_nightly-1.45.2.dev20250514.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{n as s,k as i,r as m,j as e}from"./index.C1TEsRV0.js";import{P as c,R as l}from"./RenderInPortalIfExists.DWTzV71R.js";const p=""+new URL("../media/flake-0.DgWaVvm5.png",import.meta.url).href,d=""+new URL("../media/flake-1.B2r5AHMK.png",import.meta.url).href,f=""+new URL("../media/flake-2.BnWSExPC.png",import.meta.url).href,o=150,S=150,g=10,E=90,u=4e3,n=(t,a=0)=>Math.random()*(t-a)+a,w=()=>i(`from{transform:translateY(0)
1
+ import{n as s,k as i,r as m,j as e}from"./index.DgQ-i_4o.js";import{P as c,R as l}from"./RenderInPortalIfExists.BIF2_x-k.js";const p=""+new URL("../media/flake-0.DgWaVvm5.png",import.meta.url).href,d=""+new URL("../media/flake-1.B2r5AHMK.png",import.meta.url).href,f=""+new URL("../media/flake-2.BnWSExPC.png",import.meta.url).href,o=150,S=150,g=10,E=90,u=4e3,n=(t,a=0)=>Math.random()*(t-a)+a,w=()=>i(`from{transform:translateY(0)
2
2
  rotateX(`,n(360),`deg)
3
3
  rotateY(`,n(360),`deg)
4
4
  rotateZ(`,n(360),"deg);}to{transform:translateY(calc(100vh + ",o,`px))
@@ -1 +1 @@
1
- import{r,aE as f,b0 as l,j as t,b1 as m,bm as B,a$ as b,b2 as p}from"./index.C1TEsRV0.js";import{c as h}from"./createDownloadLinkElement.DZMwyjvU.js";function w(n,o,e){return h({enforceDownloadInNewTab:e,url:n.buildMediaURL(o),filename:""})}function D(n){const{disabled:o,element:e,widgetMgr:s,endpoints:a,fragmentId:d}=n,{libConfig:{enforceDownloadInNewTab:c=!1}}=r.useContext(f);let i=l.SECONDARY;e.type==="primary"?i=l.PRIMARY:e.type==="tertiary"&&(i=l.TERTIARY),r.useEffect(()=>{a.checkSourceUrlResponse(e.url,"Download Button")},[e.url,a]);const u=()=>{e.ignoreRerun||s.setTriggerValue(e,{fromUi:!0},d),w(a,e.url,c).click()};return t("div",{className:"stDownloadButton","data-testid":"stDownloadButton",children:t(m,{help:e.help,containerWidth:e.useContainerWidth,children:t(B,{kind:i,size:b.SMALL,disabled:o,onClick:u,containerWidth:e.useContainerWidth,children:t(p,{icon:e.icon,label:e.label})})})})}const g=r.memo(D);export{g as default};
1
+ import{r,aE as f,b0 as l,j as t,b1 as m,bm as B,a$ as b,b2 as p}from"./index.DgQ-i_4o.js";import{c as h}from"./createDownloadLinkElement.DZMwyjvU.js";function w(n,o,e){return h({enforceDownloadInNewTab:e,url:n.buildMediaURL(o),filename:""})}function D(n){const{disabled:o,element:e,widgetMgr:s,endpoints:a,fragmentId:d}=n,{libConfig:{enforceDownloadInNewTab:c=!1}}=r.useContext(f);let i=l.SECONDARY;e.type==="primary"?i=l.PRIMARY:e.type==="tertiary"&&(i=l.TERTIARY),r.useEffect(()=>{a.checkSourceUrlResponse(e.url,"Download Button")},[e.url,a]);const u=()=>{e.ignoreRerun||s.setTriggerValue(e,{fromUi:!0},d),w(a,e.url,c).click()};return t("div",{className:"stDownloadButton","data-testid":"stDownloadButton",children:t(m,{help:e.help,containerWidth:e.useContainerWidth,children:t(B,{kind:i,size:b.SMALL,disabled:o,onClick:u,containerWidth:e.useContainerWidth,children:t(p,{icon:e.icon,label:e.label})})})})}const g=r.memo(D);export{g as default};
@@ -1 +1 @@
1
- import{r as s,bd as U,z as k,cp as W,C as A,j as l,bo as L,bC as P,bp as B,b5 as D,bq as j}from"./index.C1TEsRV0.js";import{u as _}from"./uniqueId.CFcd6g0d.js";import{u as q,a as w,b as K}from"./useOnInputChange.V6d5TCFH.js";import{I as O}from"./InputInstructions.Bkai2tFZ.js";import{a as $}from"./useBasicWidgetState.DadZUraL.js";import{T as G}from"./textarea.DNNNKi6n.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.CHPGUkGG.js";import"./base-input.DfiT3r4p.js";const x=(a,t)=>a.getStringValue(t)??t.default??null,N=a=>a.default??null,J=a=>a.value??null,Q=(a,t,o,u)=>{t.setStringValue(a,o.value,{fromUi:o.fromUi},u)},X=({disabled:a,element:t,widgetMgr:o,fragmentId:u})=>{var f;const h=s.useRef(_("text_area_")).current,[T,S]=U(),[r,n]=s.useState(!1),[C,b]=s.useState(!1),[i,d]=s.useState(()=>x(o,t)??null),I=s.useCallback(()=>{d(t.default??null),n(!0)},[t]),[y,c]=$({getStateFromWidgetMgr:x,getDefaultStateFromProto:N,getCurrStateFromProto:J,updateWidgetMgrState:Q,element:t,widgetMgr:o,fragmentId:u,onFormCleared:I});q(y,i,d,r);const e=k(),m=s.useCallback(()=>{n(!1),c({value:i,fromUi:!0})},[i,c]),V=s.useCallback(()=>{r&&m(),b(!1)},[r,m]),F=s.useCallback(()=>{b(!0)},[]),v=w({formId:t.formId,maxChars:t.maxChars,setDirty:n,setUiValue:d,setValueWithSource:c}),z=K(t.formId,m,r,o,u,!0),{height:g,placeholder:E,formId:p}=t,R=W({formId:p})?o.allowFormEnterToSubmit(p):r,H=C&&T>e.breakpoints.hideWidgetDetails;return A("div",{className:"stTextArea","data-testid":"stTextArea",ref:S,children:[l(j,{label:t.label,disabled:a,labelVisibility:L((f=t.labelVisibility)==null?void 0:f.value),htmlFor:h,children:t.help&&l(P,{children:l(B,{content:t.help,placement:D.TOP_RIGHT})})}),l(G,{value:i??"",placeholder:E,onBlur:V,onFocus:F,onChange:v,onKeyDown:z,"aria-label":t.label,disabled:a,id:h,overrides:{Input:{style:{lineHeight:e.lineHeights.inputWidget,height:g?`${g}px`:"",minHeight:e.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:e.spacing.md,paddingLeft:e.spacing.md,paddingBottom:e.spacing.md,paddingTop:e.spacing.md}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}}}}),H&&l(O,{dirty:r,value:i??"",maxLength:t.maxChars,type:"multiline",inForm:W({formId:p}),allowEnterToSubmit:R})]})},it=s.memo(X);export{it as default};
1
+ import{r as s,bd as U,z as k,cp as W,C as A,j as l,bo as L,bC as P,bp as B,b5 as D,bq as j}from"./index.DgQ-i_4o.js";import{u as _}from"./uniqueId.BoXr82qs.js";import{u as q,a as w,b as K}from"./useOnInputChange.D17AAeVI.js";import{I as O}from"./InputInstructions.DmFmv5Ss.js";import{a as $}from"./useBasicWidgetState.DYpB4KjS.js";import{T as G}from"./textarea.BvMrgzVs.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.BBCnWP4b.js";import"./base-input.9-IewVJN.js";const x=(a,t)=>a.getStringValue(t)??t.default??null,N=a=>a.default??null,J=a=>a.value??null,Q=(a,t,o,u)=>{t.setStringValue(a,o.value,{fromUi:o.fromUi},u)},X=({disabled:a,element:t,widgetMgr:o,fragmentId:u})=>{var f;const h=s.useRef(_("text_area_")).current,[T,S]=U(),[r,n]=s.useState(!1),[C,b]=s.useState(!1),[i,d]=s.useState(()=>x(o,t)??null),I=s.useCallback(()=>{d(t.default??null),n(!0)},[t]),[y,c]=$({getStateFromWidgetMgr:x,getDefaultStateFromProto:N,getCurrStateFromProto:J,updateWidgetMgrState:Q,element:t,widgetMgr:o,fragmentId:u,onFormCleared:I});q(y,i,d,r);const e=k(),m=s.useCallback(()=>{n(!1),c({value:i,fromUi:!0})},[i,c]),V=s.useCallback(()=>{r&&m(),b(!1)},[r,m]),F=s.useCallback(()=>{b(!0)},[]),v=w({formId:t.formId,maxChars:t.maxChars,setDirty:n,setUiValue:d,setValueWithSource:c}),z=K(t.formId,m,r,o,u,!0),{height:g,placeholder:E,formId:p}=t,R=W({formId:p})?o.allowFormEnterToSubmit(p):r,H=C&&T>e.breakpoints.hideWidgetDetails;return A("div",{className:"stTextArea","data-testid":"stTextArea",ref:S,children:[l(j,{label:t.label,disabled:a,labelVisibility:L((f=t.labelVisibility)==null?void 0:f.value),htmlFor:h,children:t.help&&l(P,{children:l(B,{content:t.help,placement:D.TOP_RIGHT})})}),l(G,{value:i??"",placeholder:E,onBlur:V,onFocus:F,onChange:v,onKeyDown:z,"aria-label":t.label,disabled:a,id:h,overrides:{Input:{style:{lineHeight:e.lineHeights.inputWidget,height:g?`${g}px`:"",minHeight:e.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:e.spacing.md,paddingLeft:e.spacing.md,paddingBottom:e.spacing.md,paddingTop:e.spacing.md}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}}}}),H&&l(O,{dirty:r,value:i??"",maxLength:t.maxChars,type:"multiline",inForm:W({formId:p}),allowEnterToSubmit:R})]})},it=s.memo(X);export{it as default};
@@ -1 +1 @@
1
- import{r as l,b0 as n,j as e,b1 as d,bm as u,a$ as c,b2 as B,b3 as m}from"./index.C1TEsRV0.js";function b(i){const{disabled:o,element:t,widgetMgr:s,fragmentId:r}=i;let a=n.SECONDARY;return t.type==="primary"?a=n.PRIMARY:t.type==="tertiary"&&(a=n.TERTIARY),e(m,{className:"stButton","data-testid":"stButton",children:e(d,{help:t.help,containerWidth:t.useContainerWidth,children:e(u,{kind:a,size:c.SMALL,disabled:o,containerWidth:t.useContainerWidth,onClick:()=>s.setTriggerValue(t,{fromUi:!0},r),children:e(B,{icon:t.icon,label:t.label})})})})}const p=l.memo(b);export{p as default};
1
+ import{r as l,b0 as n,j as e,b1 as d,bm as u,a$ as c,b2 as B,b3 as m}from"./index.DgQ-i_4o.js";function b(i){const{disabled:o,element:t,widgetMgr:s,fragmentId:r}=i;let a=n.SECONDARY;return t.type==="primary"?a=n.PRIMARY:t.type==="tertiary"&&(a=n.TERTIARY),e(m,{className:"stButton","data-testid":"stButton",children:e(d,{help:t.help,containerWidth:t.useContainerWidth,children:e(u,{kind:a,size:c.SMALL,disabled:o,containerWidth:t.useContainerWidth,onClick:()=>s.setTriggerValue(t,{fromUi:!0},r),children:e(B,{icon:t.icon,label:t.label})})})})}const p=l.memo(b);export{p as default};
@@ -1 +1 @@
1
- import{r as f,z as T,B as C,j as n,C as y,bo as S,aC as L,bw as W,bp as B,b5 as w,bG as R,J as $,bH as E,bI as P}from"./index.C1TEsRV0.js";import{a as v}from"./useBasicWidgetState.DadZUraL.js";import{a as H,L as X,S as p}from"./checkbox.DLXFjls2.js";import"./FormClearHelper.CHPGUkGG.js";function M({element:e,disabled:a,widgetMgr:s,fragmentId:d}){var m;const[x,g]=v({getStateFromWidgetMgr:V,getDefaultStateFromProto:I,getCurrStateFromProto:G,updateWidgetMgrState:j,element:e,widgetMgr:s,fragmentId:d}),k=f.useCallback(i=>{g({value:i.target.checked,fromUi:!0})},[g]),t=T(),{colors:o,spacing:h,sizes:r}=t,b=C(t),u=a?o.fadedText40:o.bodyText;return n(P,{className:"row-widget stCheckbox","data-testid":"stCheckbox",children:n(H,{checked:x,disabled:a,onChange:k,"aria-label":e.label,checkmarkType:e.type===E.StyleType.TOGGLE?p.toggle:p.default,labelPlacement:X.right,overrides:{Root:{style:({$isFocusVisible:i})=>({marginBottom:h.none,marginTop:h.none,backgroundColor:i?o.darkenedBgMix25:"",display:"flex",alignItems:"start"})},Toggle:{style:({$checked:i})=>{let c=b?o.bgColor:o.bodyText;return a&&(c=b?o.gray70:o.gray90),{width:`calc(${r.checkbox} - ${t.spacing.twoXS})`,height:`calc(${r.checkbox} - ${t.spacing.twoXS})`,transform:i?`translateX(${r.checkbox})`:"",backgroundColor:c,boxShadow:""}}},ToggleTrack:{style:({$checked:i,$isHovered:c})=>{let l=o.fadedText40;return c&&!a&&(l=o.fadedText20),i&&!a&&(l=o.primary),{marginRight:0,marginLeft:0,marginBottom:0,marginTop:t.spacing.twoXS,paddingLeft:t.spacing.threeXS,paddingRight:t.spacing.threeXS,width:`calc(2 * ${r.checkbox})`,minWidth:`calc(2 * ${r.checkbox})`,height:r.checkbox,minHeight:r.checkbox,borderBottomLeftRadius:t.radii.full,borderTopLeftRadius:t.radii.full,borderBottomRightRadius:t.radii.full,borderTopRightRadius:t.radii.full,backgroundColor:l}}},Checkmark:{style:({$isFocusVisible:i,$checked:c})=>{const l=c&&!a?o.primary:o.fadedText40;return{outline:0,width:r.checkbox,height:r.checkbox,marginTop:t.spacing.twoXS,marginLeft:0,marginBottom:0,boxShadow:i&&c?`0 0 0 0.2rem ${$(o.primary,.5)}`:"",borderLeftWidth:r.borderWidth,borderRightWidth:r.borderWidth,borderTopWidth:r.borderWidth,borderBottomWidth:r.borderWidth,borderLeftColor:l,borderRightColor:l,borderTopColor:l,borderBottomColor:l}}},Label:{style:{lineHeight:t.lineHeights.small,paddingLeft:t.spacing.sm,position:"relative",color:u}}},children:y(R,{visibility:S((m=e.labelVisibility)==null?void 0:m.value),"data-testid":"stWidgetLabel",children:[n(L,{source:e.label,allowHTML:!1,isLabel:!0,largerLabel:!0}),e.help&&n(W,{color:u,children:n(B,{content:e.help,placement:w.TOP_RIGHT})})]})})})}function V(e,a){return e.getBoolValue(a)}function I(e){return e.default??null}function G(e){return e.value??null}function j(e,a,s,d){a.setBoolValue(e,s.value,{fromUi:s.fromUi},d)}const A=f.memo(M);export{A as default};
1
+ import{r as f,z as T,B as C,j as n,C as y,bo as S,aC as L,bw as W,bp as B,b5 as w,bG as R,J as $,bH as E,bI as P}from"./index.DgQ-i_4o.js";import{a as v}from"./useBasicWidgetState.DYpB4KjS.js";import{a as H,L as X,S as p}from"./checkbox.CvxVkFoK.js";import"./FormClearHelper.BBCnWP4b.js";function M({element:e,disabled:a,widgetMgr:s,fragmentId:d}){var m;const[x,g]=v({getStateFromWidgetMgr:V,getDefaultStateFromProto:I,getCurrStateFromProto:G,updateWidgetMgrState:j,element:e,widgetMgr:s,fragmentId:d}),k=f.useCallback(i=>{g({value:i.target.checked,fromUi:!0})},[g]),t=T(),{colors:o,spacing:h,sizes:r}=t,b=C(t),u=a?o.fadedText40:o.bodyText;return n(P,{className:"row-widget stCheckbox","data-testid":"stCheckbox",children:n(H,{checked:x,disabled:a,onChange:k,"aria-label":e.label,checkmarkType:e.type===E.StyleType.TOGGLE?p.toggle:p.default,labelPlacement:X.right,overrides:{Root:{style:({$isFocusVisible:i})=>({marginBottom:h.none,marginTop:h.none,backgroundColor:i?o.darkenedBgMix25:"",display:"flex",alignItems:"start"})},Toggle:{style:({$checked:i})=>{let c=b?o.bgColor:o.bodyText;return a&&(c=b?o.gray70:o.gray90),{width:`calc(${r.checkbox} - ${t.spacing.twoXS})`,height:`calc(${r.checkbox} - ${t.spacing.twoXS})`,transform:i?`translateX(${r.checkbox})`:"",backgroundColor:c,boxShadow:""}}},ToggleTrack:{style:({$checked:i,$isHovered:c})=>{let l=o.fadedText40;return c&&!a&&(l=o.fadedText20),i&&!a&&(l=o.primary),{marginRight:0,marginLeft:0,marginBottom:0,marginTop:t.spacing.twoXS,paddingLeft:t.spacing.threeXS,paddingRight:t.spacing.threeXS,width:`calc(2 * ${r.checkbox})`,minWidth:`calc(2 * ${r.checkbox})`,height:r.checkbox,minHeight:r.checkbox,borderBottomLeftRadius:t.radii.full,borderTopLeftRadius:t.radii.full,borderBottomRightRadius:t.radii.full,borderTopRightRadius:t.radii.full,backgroundColor:l}}},Checkmark:{style:({$isFocusVisible:i,$checked:c})=>{const l=c&&!a?o.primary:o.fadedText40;return{outline:0,width:r.checkbox,height:r.checkbox,marginTop:t.spacing.twoXS,marginLeft:0,marginBottom:0,boxShadow:i&&c?`0 0 0 0.2rem ${$(o.primary,.5)}`:"",borderLeftWidth:r.borderWidth,borderRightWidth:r.borderWidth,borderTopWidth:r.borderWidth,borderBottomWidth:r.borderWidth,borderLeftColor:l,borderRightColor:l,borderTopColor:l,borderBottomColor:l}}},Label:{style:{lineHeight:t.lineHeights.small,paddingLeft:t.spacing.sm,position:"relative",color:u}}},children:y(R,{visibility:S((m=e.labelVisibility)==null?void 0:m.value),"data-testid":"stWidgetLabel",children:[n(L,{source:e.label,allowHTML:!1,isLabel:!0,largerLabel:!0}),e.help&&n(W,{color:u,children:n(B,{content:e.help,placement:w.TOP_RIGHT})})]})})})}function V(e,a){return e.getBoolValue(a)}function I(e){return e.default??null}function G(e){return e.value??null}function j(e,a,s,d){a.setBoolValue(e,s.value,{fromUi:s.fromUi},d)}const A=f.memo(M);export{A as default};