streamlit-nightly 1.41.2.dev20250104__py2.py3-none-any.whl → 1.41.2.dev20250106__py2.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 (73) hide show
  1. streamlit/elements/code.py +8 -0
  2. streamlit/proto/Code_pb2.py +2 -2
  3. streamlit/proto/Code_pb2.pyi +4 -1
  4. streamlit/static/index.html +1 -1
  5. streamlit/static/static/js/{FileDownload.esm.CRoG5i8r.js → FileDownload.esm.BfiuyXfu.js} +1 -1
  6. streamlit/static/static/js/{FormClearHelper.DWef4hWz.js → FormClearHelper.BIe6FN2Y.js} +1 -1
  7. streamlit/static/static/js/{Hooks.-GVqTMyj.js → Hooks.CHslqKt4.js} +1 -1
  8. streamlit/static/static/js/{InputInstructions.BohKIZFT.js → InputInstructions.BMT8dg5S.js} +1 -1
  9. streamlit/static/static/js/{ProgressBar.ByDCgAp7.js → ProgressBar.VmrIzSqo.js} +1 -1
  10. streamlit/static/static/js/{RenderInPortalIfExists.DJNskB1V.js → RenderInPortalIfExists.B2NAzO0r.js} +1 -1
  11. streamlit/static/static/js/{Toolbar.B93Vwnd4.js → Toolbar.DbmFapWn.js} +1 -1
  12. streamlit/static/static/js/{base-input.CTx0gvzT.js → base-input.B1a61Ojd.js} +1 -1
  13. streamlit/static/static/js/{createSuper.BwPw7vsr.js → createSuper.DuLZrute.js} +1 -1
  14. streamlit/static/static/js/{data-grid-overlay-editor.CLQHI5MN.js → data-grid-overlay-editor.BkcxIt6O.js} +1 -1
  15. streamlit/static/static/js/{downloader.WO6ZA_Co.js → downloader.BVrmPJui.js} +1 -1
  16. streamlit/static/static/js/{es6.55gLy6L6.js → es6.44cVHEXS.js} +2 -2
  17. streamlit/static/static/js/{getPrototypeOf.DJw8FwRX.js → getPrototypeOf.bvOEi7fo.js} +1 -1
  18. streamlit/static/static/js/{iframeResizer.contentWindow.B4_zxk6k.js → iframeResizer.contentWindow.Bd3a4rtP.js} +1 -1
  19. streamlit/static/static/js/{index.DBkgIii2.js → index.0AR3jk4J.js} +1 -1
  20. streamlit/static/static/js/{index.BeYh1C02.js → index.1fq50cer.js} +1 -1
  21. streamlit/static/static/js/{index.BqdO5rz5.js → index.3p3iyxFl.js} +1 -1
  22. streamlit/static/static/js/{index.DXat8gQf.js → index.3qE-vjOX.js} +8 -8
  23. streamlit/static/static/js/{index.J7Vrq5lQ.js → index.6ZeP-L28.js} +1 -1
  24. streamlit/static/static/js/{index.DE7Cx7jU.js → index.75EUE6su.js} +1 -1
  25. streamlit/static/static/js/{index.uc9sf5pQ.js → index.8Bq56lcM.js} +1 -1
  26. streamlit/static/static/js/{index.B9uAqDdL.js → index.BF04V0db.js} +1 -1
  27. streamlit/static/static/js/{index.gqEzZP5J.js → index.BRjwQabs.js} +1 -1
  28. streamlit/static/static/js/{index.4oltPSDN.js → index.BSgVnwxN.js} +1 -1
  29. streamlit/static/static/js/{index.CQk_PsCc.js → index.B_nF-WE5.js} +1 -1
  30. streamlit/static/static/js/{index.pU7vIfXj.js → index.BdfmpndH.js} +1 -1
  31. streamlit/static/static/js/{index.D1JevM_2.js → index.BfjxH33Q.js} +1 -1
  32. streamlit/static/static/js/{index.CGGiK-tN.js → index.C-fIpagH.js} +1 -1
  33. streamlit/static/static/js/{index.CVKTpi5B.js → index.C3rcPpxm.js} +1 -1
  34. streamlit/static/static/js/{index.CwosDieY.js → index.C9YRT0fo.js} +1 -1
  35. streamlit/static/static/js/{index.zMOhoVg6.js → index.CIMJL36S.js} +1 -1
  36. streamlit/static/static/js/{index.R8aPyg_g.js → index.CgSymxeL.js} +1 -1
  37. streamlit/static/static/js/{index.DNYJVjE8.js → index.CkxcnfCr.js} +1 -1
  38. streamlit/static/static/js/{index._bgPbXSL.js → index.CmHLY_aM.js} +1 -1
  39. streamlit/static/static/js/{index.SLtqkRJD.js → index.CzhhqwJO.js} +1 -1
  40. streamlit/static/static/js/{index.D_6VpY6P.js → index.D277ro6Y.js} +1 -1
  41. streamlit/static/static/js/index.D6WGxtqm.js +1 -0
  42. streamlit/static/static/js/{index.BJ_D3md2.js → index.D_cUCQty.js} +1 -1
  43. streamlit/static/static/js/{index.BdQidO-z.js → index.DaJKYvsa.js} +5 -5
  44. streamlit/static/static/js/{index.bkgZHDpc.js → index.GNEDK2sZ.js} +1 -1
  45. streamlit/static/static/js/{index.St5APQjJ.js → index.KOla1gMY.js} +1 -1
  46. streamlit/static/static/js/{index.ts8s7CAI.js → index.KmZ5vhVN.js} +1 -1
  47. streamlit/static/static/js/{index.CIwb9X9s.js → index.KnCHOP8N.js} +1 -1
  48. streamlit/static/static/js/{index.CA049ZDW.js → index.PqkLl1t0.js} +1 -1
  49. streamlit/static/static/js/{index.Dk0ptJZt.js → index.Q2CKSyfz.js} +1 -1
  50. streamlit/static/static/js/{index.BW_GOkH1.js → index.SOQTU-r_.js} +1 -1
  51. streamlit/static/static/js/{index.bOS3gI2u.js → index.WrhWPW-4.js} +1 -1
  52. streamlit/static/static/js/{index.9Y5ek_7z.js → index.dgKFPPrX.js} +1 -1
  53. streamlit/static/static/js/{index.DD9fCaBj.js → index.drbticTq.js} +1 -1
  54. streamlit/static/static/js/{index.CkBAk1pS.js → index.lvhOjMEi.js} +1 -1
  55. streamlit/static/static/js/{index.oYpNgdlw.js → index.vp4vsBFK.js} +1 -1
  56. streamlit/static/static/js/{input.CXSAsjSZ.js → input.mrdmFJfU.js} +1 -1
  57. streamlit/static/static/js/{memory.DdFkwmdB.js → memory.BjfNr0ig.js} +1 -1
  58. streamlit/static/static/js/{number-overlay-editor.BwYQjq5H.js → number-overlay-editor.WosTCRC_.js} +1 -1
  59. streamlit/static/static/js/{sandbox.Di7DT8TM.js → sandbox.oLnJKv78.js} +1 -1
  60. streamlit/static/static/js/{slicedToArray.yExWK_Ke.js → slicedToArray.BzQ82qu6.js} +1 -1
  61. streamlit/static/static/js/{textarea.B7FAzJHc.js → textarea.Da3YV5aR.js} +1 -1
  62. streamlit/static/static/js/{timepicker.Cvt746F5.js → timepicker.BAT5exrW.js} +1 -1
  63. streamlit/static/static/js/{uniqueId.Dme_RYod.js → uniqueId.C8z92sBf.js} +1 -1
  64. streamlit/static/static/js/{useBasicWidgetState.BrxTjxxP.js → useBasicWidgetState.CH5oDGQl.js} +1 -1
  65. streamlit/static/static/js/{useOnInputChange.8aWa7n-i.js → useOnInputChange.Bo325HzD.js} +1 -1
  66. streamlit/static/static/js/{withFullScreenWrapper.BBIHM2Cb.js → withFullScreenWrapper.C7zDWu4g.js} +1 -1
  67. {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/METADATA +1 -1
  68. {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/RECORD +72 -72
  69. {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/WHEEL +1 -1
  70. streamlit/static/static/js/index.CTKJYGMX.js +0 -1
  71. {streamlit_nightly-1.41.2.dev20250104.data → streamlit_nightly-1.41.2.dev20250106.data}/scripts/streamlit.cmd +0 -0
  72. {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/entry_points.txt +0 -0
  73. {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- import{n as W,r as l,M as T,bw as C,bx as L,a8 as V,j as r,a$ as O,bc as $,b0 as k,aL as N,b1 as P,bv as E,by as A,br as B,ba as F,bz as H}from"./index.DXat8gQf.js";import{a as D}from"./useBasicWidgetState.BrxTjxxP.js";import"./FormClearHelper.DWef4hWz.js";const U=W("div",{target:"e3xgtfu0"})(({theme:s})=>({"span[aria-disabled='true']":{background:s.colors.fadedText05}})),j=(s,t)=>s.getIntArrayValue(t),G=s=>s.default??null,K=s=>s.value??null,Y=(s,t,a,u)=>{t.setIntArrayValue(s,a.value,{fromUi:a.fromUi},u)},_=s=>{var S;const{element:t,widgetMgr:a,width:u,fragmentId:y}=s,e=T(),[n,g]=D({getStateFromWidgetMgr:j,getDefaultStateFromProto:G,getCurrStateFromProto:K,updateWidgetMgrState:Y,element:t,widgetMgr:a,fragmentId:y}),m=t.maxSelections>0&&n.length>=t.maxSelections,f=l.useMemo(()=>{if(t.maxSelections===0)return"No results";if(n.length===t.maxSelections){const o=t.maxSelections!==1?"options":"option";return`You can only select up to ${t.maxSelections} ${o}. Remove an option first.`}return"No results"},[t.maxSelections,n.length]),v=l.useMemo(()=>n.map(o=>{const i=t.options[o];return{value:o.toString(),label:i}}),[t.options,n]),h=l.useCallback(o=>{const i=()=>{var d;const p=(d=o.option)==null?void 0:d.value;return parseInt(p,10)};switch(o.type){case"remove":return C(n,i());case"clear":return[];case"select":return n.concat([i()]);default:throw new Error(`State transition is unknown: ${o.type}`)}},[n]),x=l.useCallback(o=>{t.maxSelections&&o.type==="select"&&n.length>=t.maxSelections||g({value:h(o),fromUi:!0})},[t.maxSelections,h,g,n.length]),z=l.useCallback((o,i)=>{if(m)return[];const p=o.filter(d=>!n.includes(Number(d.value)));return L(p,i)},[m,n]),w={width:u},{options:c}=t,b=c.length===0?!0:s.disabled,I=c.length===0?"No options to select.":t.placeholder,M=c.map((o,i)=>({label:o,value:i.toString()})),R=c.length>10;return V("div",{className:"stMultiSelect","data-testid":"stMultiSelect",style:w,children:[r(P,{label:t.label,disabled:b,labelVisibility:O((S=t.labelVisibility)==null?void 0:S.value),children:t.help&&r($,{children:r(k,{content:t.help,placement:N.TOP_RIGHT})})}),r(U,{children:r(E,{options:M,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:I,type:A.select,multi:!0,onChange:x,value:v,disabled:b,size:"compact",noResultsMsg:f,filterOptions:z,closeOnSelect:!1,overrides:{SelectArrow:{component:B,props:{overrides:{Svg:{style:()=>({width:e.iconSizes.xl,height:e.iconSizes.xl})}}}},IconsContainer:{style:()=>({paddingRight:e.spacing.sm})},ControlContainer:{style:{minHeight:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}},Placeholder:{style:()=>({flex:"inherit",opacity:"0.7"})},ValueContainer:{style:()=>({paddingLeft:e.spacing.sm,paddingTop:e.spacing.none,paddingBottom:e.spacing.none,paddingRight:e.spacing.none})},ClearIcon:{props:{overrides:{Svg:{style:{color:e.colors.darkGray,padding:e.spacing.threeXS,height:e.sizes.clearIconSize,width:e.sizes.clearIconSize,":hover":{fill:e.colors.bodyText}}}}}},SearchIcon:{style:{color:e.colors.darkGray}},Tag:{props:{overrides:{Root:{style:{borderTopLeftRadius:e.radii.md,borderTopRightRadius:e.radii.md,borderBottomRightRadius:e.radii.md,borderBottomLeftRadius:e.radii.md,fontSize:e.fontSizes.md,paddingLeft:e.spacing.sm,marginLeft:e.spacing.none,marginRight:e.spacing.sm,height:`calc(${e.sizes.minElementHeight} - 2 * ${e.spacing.xs})`,maxWidth:`calc(100% - ${e.spacing.lg})`}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"0.625em",height:"0.625em"}}}}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:e.fontSizes.sm}}}}},Input:{props:{readOnly:F&&R===!1?"readonly":null}},Dropdown:{component:H}}})})]})},Q=l.memo(_);export{Q as default};