streamlit-nightly 1.41.2.dev20250111__py2.py3-none-any.whl → 1.41.2.dev20250113__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 (71) hide show
  1. streamlit/static/index.html +1 -1
  2. streamlit/static/static/js/{FileDownload.esm.DgMBFvxE.js → FileDownload.esm.nDxE1uhe.js} +1 -1
  3. streamlit/static/static/js/{FormClearHelper.C-kz8EZa.js → FormClearHelper.CI0WOi1j.js} +1 -1
  4. streamlit/static/static/js/{Hooks.BaEjlpBt.js → Hooks.BJ9wR0AU.js} +1 -1
  5. streamlit/static/static/js/{InputInstructions.2kJ3lLP5.js → InputInstructions.D3geEFNa.js} +1 -1
  6. streamlit/static/static/js/{ProgressBar.BmX5Bd8z.js → ProgressBar.COmW3GV1.js} +1 -1
  7. streamlit/static/static/js/{RenderInPortalIfExists.DvbHx6rz.js → RenderInPortalIfExists.BThihgkd.js} +1 -1
  8. streamlit/static/static/js/{Toolbar.Cs7p2Lp9.js → Toolbar.CEvzQ96S.js} +1 -1
  9. streamlit/static/static/js/{base-input.CmWUWSJc.js → base-input.BP5TsyYO.js} +1 -1
  10. streamlit/static/static/js/{createSuper.D46anxnG.js → createSuper.BmuFLMtM.js} +1 -1
  11. streamlit/static/static/js/{data-grid-overlay-editor.BspRPTtu.js → data-grid-overlay-editor.BI4k6rKR.js} +1 -1
  12. streamlit/static/static/js/{downloader.BX0QN5eD.js → downloader.BFBCg3lC.js} +1 -1
  13. streamlit/static/static/js/{es6.BlW--gnF.js → es6.DtixDmn0.js} +2 -2
  14. streamlit/static/static/js/{getPrototypeOf.BYTPPQIp.js → getPrototypeOf.q2WOIOs_.js} +1 -1
  15. streamlit/static/static/js/{iframeResizer.contentWindow.CNHQyyTg.js → iframeResizer.contentWindow.DLr5MCWa.js} +1 -1
  16. streamlit/static/static/js/{index.BwvnBWfd.js → index.-XYuQlg3.js} +1 -1
  17. streamlit/static/static/js/{index.DGXjFinj.js → index.B5B5DAsT.js} +1 -1
  18. streamlit/static/static/js/{index.d1dU1FHw.js → index.BDK4X_d2.js} +1 -1
  19. streamlit/static/static/js/{index.2kexLuIU.js → index.BDtzkwhv.js} +5 -5
  20. streamlit/static/static/js/{index.BhRQ3Irc.js → index.BFQMhsjo.js} +1 -1
  21. streamlit/static/static/js/{index.D7zDVCSD.js → index.BHNK3GF6.js} +1 -1
  22. streamlit/static/static/js/{index.5f81IBZP.js → index.BHnfxjsW.js} +1 -1
  23. streamlit/static/static/js/{index.a4u3c2yA.js → index.BLSTSv7f.js} +1 -1
  24. streamlit/static/static/js/{index.B3F-o9ex.js → index.BXIDmZYJ.js} +1 -1
  25. streamlit/static/static/js/{index.D4cEoG-b.js → index.B_91y3ES.js} +3 -3
  26. streamlit/static/static/js/{index.BqCCfwZM.js → index.Ba_7Au_r.js} +1 -1
  27. streamlit/static/static/js/{index.B1RTO67W.js → index.BbqzVelh.js} +1 -1
  28. streamlit/static/static/js/{index.CKhEFCMB.js → index.BiQBtTGP.js} +1 -1
  29. streamlit/static/static/js/{index.CAmkSLgk.js → index.BjNnwU0F.js} +1 -1
  30. streamlit/static/static/js/{index.AzFWl1A_.js → index.Bjj8dbrN.js} +1 -1
  31. streamlit/static/static/js/{index.BSabhp-S.js → index.Bs1A0Yz9.js} +1 -1
  32. streamlit/static/static/js/{index.DKFY5Ha1.js → index.C5llicCl.js} +1 -1
  33. streamlit/static/static/js/{index.7441r-sL.js → index.C8GKMyxG.js} +1 -1
  34. streamlit/static/static/js/index.CSU4ah-Z.js +1 -0
  35. streamlit/static/static/js/{index.-JIbeXZC.js → index.CSXsntDd.js} +12 -12
  36. streamlit/static/static/js/{index.DRm6hoq7.js → index.CSnqL7FE.js} +1 -1
  37. streamlit/static/static/js/{index.y-VLJ65m.js → index.CdISilgA.js} +1 -1
  38. streamlit/static/static/js/{index.BBQgDj4i.js → index.CeOuM3pB.js} +1 -1
  39. streamlit/static/static/js/{index.BX4DPcrq.js → index.Cm0XvfNt.js} +1 -1
  40. streamlit/static/static/js/{index.BHVs7_wn.js → index.Cm3Q2clw.js} +1 -1
  41. streamlit/static/static/js/{index.DuEIfrbC.js → index.Cn4twLJI.js} +1 -1
  42. streamlit/static/static/js/{index.DhCGDinQ.js → index.CqNQZi9B.js} +1 -1
  43. streamlit/static/static/js/{index.tQ3BfkaX.js → index.CqdRxVGu.js} +1 -1
  44. streamlit/static/static/js/{index.BtaWfSZN.js → index.D-Axxgw0.js} +1 -1
  45. streamlit/static/static/js/{index.CdjxQOw-.js → index.DGisaPeN.js} +1 -1
  46. streamlit/static/static/js/{index.Drqk1Tqs.js → index.DMUcVhPY.js} +1 -1
  47. streamlit/static/static/js/{index.BRwmGBP4.js → index.DcDlCutW.js} +9 -9
  48. streamlit/static/static/js/{index.BBK0SZBc.js → index.DnHxDAnh.js} +1 -1
  49. streamlit/static/static/js/{index.ClU6Toj3.js → index.Dy-_rPOY.js} +1 -1
  50. streamlit/static/static/js/{index.BhQrqdv2.js → index.DyhG13mI.js} +1 -1
  51. streamlit/static/static/js/{index.B2lUWG_g.js → index.KrDy5y3p.js} +1 -1
  52. streamlit/static/static/js/{index.D8V0ZERG.js → index.PvXferS3.js} +1 -1
  53. streamlit/static/static/js/{input.C7wSNGte.js → input.nXqoMhZv.js} +1 -1
  54. streamlit/static/static/js/{memory.BF0Xc-rJ.js → memory.gpz43-um.js} +1 -1
  55. streamlit/static/static/js/{mergeWith.CHIovAKI.js → mergeWith.Bdf-VJ8P.js} +1 -1
  56. streamlit/static/static/js/{number-overlay-editor.DfAWep9y.js → number-overlay-editor.DaFTPEew.js} +1 -1
  57. streamlit/static/static/js/{sandbox.CM0H2h0v.js → sandbox.axae7ePg.js} +1 -1
  58. streamlit/static/static/js/{slicedToArray.BOBOh4VJ.js → slicedToArray.CkAkmYZy.js} +1 -1
  59. streamlit/static/static/js/{textarea.CINkGDSQ.js → textarea.BaAknq-y.js} +1 -1
  60. streamlit/static/static/js/{timepicker.eZuQgQCF.js → timepicker.DaL-07Js.js} +1 -1
  61. streamlit/static/static/js/{uniqueId.vdNgUDff.js → uniqueId.BXhjhO5X.js} +1 -1
  62. streamlit/static/static/js/{useBasicWidgetState.De0NYf9Y.js → useBasicWidgetState.BuJZ1h2y.js} +1 -1
  63. streamlit/static/static/js/{useOnInputChange.cRNtiNHf.js → useOnInputChange.BlJ_4Sll.js} +1 -1
  64. streamlit/static/static/js/{withFullScreenWrapper.D4HXFzaF.js → withFullScreenWrapper.K9D84vUj.js} +1 -1
  65. {streamlit_nightly-1.41.2.dev20250111.dist-info → streamlit_nightly-1.41.2.dev20250113.dist-info}/METADATA +1 -1
  66. {streamlit_nightly-1.41.2.dev20250111.dist-info → streamlit_nightly-1.41.2.dev20250113.dist-info}/RECORD +70 -70
  67. streamlit/static/static/js/index.DAlH7XAu.js +0 -1
  68. {streamlit_nightly-1.41.2.dev20250111.data → streamlit_nightly-1.41.2.dev20250113.data}/scripts/streamlit.cmd +0 -0
  69. {streamlit_nightly-1.41.2.dev20250111.dist-info → streamlit_nightly-1.41.2.dev20250113.dist-info}/WHEEL +0 -0
  70. {streamlit_nightly-1.41.2.dev20250111.dist-info → streamlit_nightly-1.41.2.dev20250113.dist-info}/entry_points.txt +0 -0
  71. {streamlit_nightly-1.41.2.dev20250111.dist-info → streamlit_nightly-1.41.2.dev20250113.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- import{r as s,E as W,_ as $,n as d,au as L,ab as V,j as a,ax as D,bj as K}from"./index.BRwmGBP4.js";import{I as N}from"./InputInstructions.2kJ3lLP5.js";import{i as _}from"./inputUtils.CQWz5UKz.js";import{T as j}from"./textarea.CINkGDSQ.js";import"./base-input.CmWUWSJc.js";var w=s.forwardRef(function(t,r){var l={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return s.createElement(W,$({iconAttrs:l,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:r}),s.createElement("rect",{width:24,height:24,fill:"none"}),s.createElement("path",{d:"M3 5.51v3.71c0 .46.31.86.76.97L11 12l-7.24 1.81c-.45.11-.76.51-.76.97v3.71c0 .72.73 1.2 1.39.92l15.42-6.49c.82-.34.82-1.5 0-1.84L4.39 4.58C3.73 4.31 3 4.79 3 5.51z"}))});w.displayName="Send";const q=d("div",{target:"e1qzcwc60"})(({theme:t,width:r})=>({borderRadius:t.radii.xxxl,display:"flex",backgroundColor:t.colors.widgetBackgroundColor??t.colors.secondaryBg,width:`${r}px`})),A=d("div",{target:"e1qzcwc61"})(({theme:t})=>({backgroundColor:t.colors.transparent,position:"relative",flexGrow:1,borderRadius:t.radii.xxxl,display:"flex",alignItems:"center"})),M=d("button",{target:"e1qzcwc62"})(({theme:t,disabled:r,extended:l})=>{const u=L(t),[o,g]=u?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40];return{border:"none",backgroundColor:t.colors.transparent,borderTopRightRadius:l?"0":t.radii.xxxl,borderTopLeftRadius:l?t.radii.default:"0",borderBottomRightRadius:t.radii.xxxl,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.sm,color:r?o:g,pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:u?t.colors.gray10:t.colors.gray90},"&:hover":{color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray}}}),F=d("div",{target:"e1qzcwc63"})({display:"flex",alignItems:"flex-end",height:"100%",position:"absolute",right:0,pointerEvents:"none"}),G=d("div",{target:"e1qzcwc64"})(({theme:t})=>({position:"absolute",bottom:"0px",right:`calc(${t.iconSizes.xl} + 2 * ${t.spacing.sm} + ${t.spacing.sm})`})),U=6.5,H=1;function Z({width:t,element:r,widgetMgr:l,fragmentId:u}){const o=V(),[g,h]=s.useState(!1),[p,f]=s.useState(r.default),[x,y]=s.useState(0),i=s.useRef(null),b=s.useRef({minHeight:0,maxHeight:0}),R=()=>{let e=0;const{current:n}=i;if(n){const c=n.placeholder;n.placeholder="",n.style.height="auto",e=n.scrollHeight,n.placeholder=c,n.style.height=""}return e},C=()=>{i.current&&i.current.focus(),p&&(l.setStringTriggerValue(r,p,{fromUi:!0},u),h(!1),f(""),y(0))},E=e=>{const{metaKey:n,ctrlKey:c,shiftKey:T}=e;_(e)&&!T&&!c&&!n&&(e.preventDefault(),C())},z=e=>{const{value:n}=e.target,{maxChars:c}=r;c!==0&&n.length>c||(h(n!==""),f(n),y(R()))};s.useEffect(()=>{if(r.setValue){r.setValue=!1;const e=r.value||"";f(e),h(e!=="")}},[r]),s.useEffect(()=>{if(i.current){const{offsetHeight:e}=i.current;b.current.minHeight=e,b.current.maxHeight=e*U}},[i]);const{disabled:I,placeholder:m,maxChars:k}=r,{minHeight:B,maxHeight:S}=b.current,v=x>0&&i.current?Math.abs(x-B)>H:!1;return a(q,{className:"stChatInput","data-testid":"stChatInput",width:t,children:D(A,{children:[a(j,{inputRef:i,value:p,placeholder:m,onChange:z,onKeyDown:E,"aria-label":m,disabled:I,rows:1,overrides:{Root:{style:{minHeight:o.sizes.minElementHeight,outline:"none",backgroundColor:o.colors.transparent,borderRadius:o.radii.xxxl,borderLeftWidth:o.sizes.borderWidth,borderRightWidth:o.sizes.borderWidth,borderTopWidth:o.sizes.borderWidth,borderBottomWidth:o.sizes.borderWidth,width:`${t}px`}},InputContainer:{style:{backgroundColor:o.colors.transparent}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{lineHeight:o.lineHeights.inputWidget,backgroundColor:o.colors.transparent,resize:"none","::placeholder":{opacity:"0.7"},height:v?`${x+H}px`:"auto",maxHeight:S?`${S}px`:"none",paddingLeft:o.spacing.lg,paddingBottom:o.spacing.sm,paddingTop:o.spacing.sm,paddingRight:`calc(${o.iconSizes.xl} + 2 * ${o.spacing.sm} + ${o.spacing.sm})`}}}}),t>o.breakpoints.hideWidgetDetails&&a(G,{children:a(N,{dirty:g,value:p,maxLength:k,type:"chat",inForm:!1})}),a(F,{children:a(M,{onClick:C,disabled:!g||I,extended:v,"data-testid":"stChatInputSubmitButton",children:a(K,{content:w,size:"xl",color:"inherit"})})})]})})}export{Z as default};
1
+ import{r as s,E as W,_ as $,n as d,au as L,ab as V,j as a,ax as D,bj as K}from"./index.DcDlCutW.js";import{I as N}from"./InputInstructions.D3geEFNa.js";import{i as _}from"./inputUtils.CQWz5UKz.js";import{T as j}from"./textarea.BaAknq-y.js";import"./base-input.BP5TsyYO.js";var w=s.forwardRef(function(t,r){var l={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return s.createElement(W,$({iconAttrs:l,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:r}),s.createElement("rect",{width:24,height:24,fill:"none"}),s.createElement("path",{d:"M3 5.51v3.71c0 .46.31.86.76.97L11 12l-7.24 1.81c-.45.11-.76.51-.76.97v3.71c0 .72.73 1.2 1.39.92l15.42-6.49c.82-.34.82-1.5 0-1.84L4.39 4.58C3.73 4.31 3 4.79 3 5.51z"}))});w.displayName="Send";const q=d("div",{target:"e1qzcwc60"})(({theme:t,width:r})=>({borderRadius:t.radii.xxxl,display:"flex",backgroundColor:t.colors.widgetBackgroundColor??t.colors.secondaryBg,width:`${r}px`})),A=d("div",{target:"e1qzcwc61"})(({theme:t})=>({backgroundColor:t.colors.transparent,position:"relative",flexGrow:1,borderRadius:t.radii.xxxl,display:"flex",alignItems:"center"})),M=d("button",{target:"e1qzcwc62"})(({theme:t,disabled:r,extended:l})=>{const u=L(t),[o,g]=u?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40];return{border:"none",backgroundColor:t.colors.transparent,borderTopRightRadius:l?"0":t.radii.xxxl,borderTopLeftRadius:l?t.radii.default:"0",borderBottomRightRadius:t.radii.xxxl,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.sm,color:r?o:g,pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:u?t.colors.gray10:t.colors.gray90},"&:hover":{color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray}}}),F=d("div",{target:"e1qzcwc63"})({display:"flex",alignItems:"flex-end",height:"100%",position:"absolute",right:0,pointerEvents:"none"}),G=d("div",{target:"e1qzcwc64"})(({theme:t})=>({position:"absolute",bottom:"0px",right:`calc(${t.iconSizes.xl} + 2 * ${t.spacing.sm} + ${t.spacing.sm})`})),U=6.5,H=1;function Z({width:t,element:r,widgetMgr:l,fragmentId:u}){const o=V(),[g,h]=s.useState(!1),[p,f]=s.useState(r.default),[x,y]=s.useState(0),i=s.useRef(null),b=s.useRef({minHeight:0,maxHeight:0}),R=()=>{let e=0;const{current:n}=i;if(n){const c=n.placeholder;n.placeholder="",n.style.height="auto",e=n.scrollHeight,n.placeholder=c,n.style.height=""}return e},C=()=>{i.current&&i.current.focus(),p&&(l.setStringTriggerValue(r,p,{fromUi:!0},u),h(!1),f(""),y(0))},E=e=>{const{metaKey:n,ctrlKey:c,shiftKey:T}=e;_(e)&&!T&&!c&&!n&&(e.preventDefault(),C())},z=e=>{const{value:n}=e.target,{maxChars:c}=r;c!==0&&n.length>c||(h(n!==""),f(n),y(R()))};s.useEffect(()=>{if(r.setValue){r.setValue=!1;const e=r.value||"";f(e),h(e!=="")}},[r]),s.useEffect(()=>{if(i.current){const{offsetHeight:e}=i.current;b.current.minHeight=e,b.current.maxHeight=e*U}},[i]);const{disabled:I,placeholder:m,maxChars:k}=r,{minHeight:B,maxHeight:S}=b.current,v=x>0&&i.current?Math.abs(x-B)>H:!1;return a(q,{className:"stChatInput","data-testid":"stChatInput",width:t,children:D(A,{children:[a(j,{inputRef:i,value:p,placeholder:m,onChange:z,onKeyDown:E,"aria-label":m,disabled:I,rows:1,overrides:{Root:{style:{minHeight:o.sizes.minElementHeight,outline:"none",backgroundColor:o.colors.transparent,borderRadius:o.radii.xxxl,borderLeftWidth:o.sizes.borderWidth,borderRightWidth:o.sizes.borderWidth,borderTopWidth:o.sizes.borderWidth,borderBottomWidth:o.sizes.borderWidth,width:`${t}px`}},InputContainer:{style:{backgroundColor:o.colors.transparent}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{lineHeight:o.lineHeights.inputWidget,backgroundColor:o.colors.transparent,resize:"none","::placeholder":{opacity:"0.7"},height:v?`${x+H}px`:"auto",maxHeight:S?`${S}px`:"none",paddingLeft:o.spacing.lg,paddingBottom:o.spacing.sm,paddingTop:o.spacing.sm,paddingRight:`calc(${o.iconSizes.xl} + 2 * ${o.spacing.sm} + ${o.spacing.sm})`}}}}),t>o.breakpoints.hideWidgetDetails&&a(G,{children:a(N,{dirty:g,value:p,maxLength:k,type:"chat",inForm:!1})}),a(F,{children:a(M,{onClick:C,disabled:!g||I,extended:v,"data-testid":"stChatInputSubmitButton",children:a(K,{content:w,size:"xl",color:"inherit"})})})]})})}export{Z as default};