streamlit-nightly 1.41.2.dev20250101__py2.py3-none-any.whl → 1.41.2.dev20250102__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.
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{FileDownload.esm.WslOojMp.js → FileDownload.esm.CNoj4-Mv.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.DSgVZ-NK.js → FormClearHelper.CDUcNE9t.js} +1 -1
- streamlit/static/static/js/{Hooks.wzeYp0oD.js → Hooks.DMpj-RLb.js} +1 -1
- streamlit/static/static/js/{InputInstructions.DpTmOmkP.js → InputInstructions.DaNtjCNr.js} +1 -1
- streamlit/static/static/js/{ProgressBar.D1he2Gib.js → ProgressBar.BRPIMM7l.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.CphMKHZ_.js → RenderInPortalIfExists.Cfc5-09w.js} +1 -1
- streamlit/static/static/js/{Toolbar.YZjXpW2P.js → Toolbar._8UjRFMn.js} +1 -1
- streamlit/static/static/js/{base-input.gDrmzpbY.js → base-input.BKegJgWw.js} +1 -1
- streamlit/static/static/js/{createSuper.Cj3WfXha.js → createSuper.jxh1FiCj.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.CXW3Vrt9.js → data-grid-overlay-editor.BB33zQGs.js} +1 -1
- streamlit/static/static/js/{downloader.B-SkHjg2.js → downloader.Cm-5-MSJ.js} +1 -1
- streamlit/static/static/js/{es6.DoVDVSd_.js → es6.OcNPOAdx.js} +2 -2
- streamlit/static/static/js/{getPrototypeOf.BZAK2f3t.js → getPrototypeOf.BY5XPmcO.js} +1 -1
- streamlit/static/static/js/{iframeResizer.contentWindow.Exq_q4jU.js → iframeResizer.contentWindow.BFAgAgvG.js} +1 -1
- streamlit/static/static/js/{index.CLHVvMN0.js → index.6vjR_n-y.js} +4 -4
- streamlit/static/static/js/{index.2XFKVtzu.js → index.7hDSQs9w.js} +1 -1
- streamlit/static/static/js/{index.2Rr5kbVL.js → index.ATVdLDmC.js} +1 -1
- streamlit/static/static/js/{index.CX7qwffH.js → index.B4QbLNs0.js} +1 -1
- streamlit/static/static/js/{index.B9O1l5Yf.js → index.BF39aXr4.js} +1 -1
- streamlit/static/static/js/{index.vm3Bds7I.js → index.BNduMvHL.js} +1 -1
- streamlit/static/static/js/{index.Bp-uIPRI.js → index.BfhP6PDz.js} +1 -1
- streamlit/static/static/js/{index.B_RzfO7U.js → index.BtYb1969.js} +1 -1
- streamlit/static/static/js/{index.CmD2DSvp.js → index.Bu-D_kDf.js} +1 -1
- streamlit/static/static/js/{index.CP7C0jmi.js → index.BxB51OcG.js} +1 -1
- streamlit/static/static/js/{index.BjtDBCFh.js → index.C-rNevaH.js} +1 -1
- streamlit/static/static/js/{index.Bcz23DKe.js → index.C77ezkzE.js} +1 -1
- streamlit/static/static/js/{index.BrGYP4fV.js → index.CAMMqKeD.js} +1 -1
- streamlit/static/static/js/{index.y_EIxzAg.js → index.CBHLGMyy.js} +1 -1
- streamlit/static/static/js/{index.CCVCD0op.js → index.CGzczlx9.js} +1 -1
- streamlit/static/static/js/{index.Bm2n8u7I.js → index.CUh8Rsc7.js} +1 -1
- streamlit/static/static/js/{index.brVZtr01.js → index.CVx5m08a.js} +1 -1
- streamlit/static/static/js/{index.T4c5nSGV.js → index.Cpt1ZWEY.js} +1 -1
- streamlit/static/static/js/{index.CAkYXoVB.js → index.CxdjcKNq.js} +1 -1
- streamlit/static/static/js/{index.DfwGDOWW.js → index.CzlkG9Fr.js} +1 -1
- streamlit/static/static/js/{index.BwUmNKlx.js → index.DASuqVzI.js} +1 -1
- streamlit/static/static/js/{index.BjQJsYG6.js → index.DJTR-TvF.js} +1 -1
- streamlit/static/static/js/{index.MCDV8ab_.js → index.DMDxcX2K.js} +1 -1
- streamlit/static/static/js/{index.4lqQPLdu.js → index.DMr0rZjG.js} +1 -1
- streamlit/static/static/js/{index.CZ-znj8N.js → index.DUIN-jsB.js} +1 -1
- streamlit/static/static/js/{index.fm1fEqFi.js → index.De2k2c-U.js} +1 -1
- streamlit/static/static/js/{index.CnX4MRBV.js → index.De_q7lv4.js} +1 -1
- streamlit/static/static/js/{index.Ck6XWYeb.js → index.DvnQilxK.js} +1 -1
- streamlit/static/static/js/{index.rDDlhQFp.js → index.K-tM-X1m.js} +1 -1
- streamlit/static/static/js/{index.DR8k91Kp.js → index.QGeCkb2Q.js} +1 -1
- streamlit/static/static/js/{index.Dc0EFNHf.js → index.QhNU1B5h.js} +5 -5
- streamlit/static/static/js/{index.CaCnIXu_.js → index.Vds5Jt2I.js} +1 -1
- streamlit/static/static/js/{index.CyRDf6c5.js → index.VoGEnWSD.js} +1 -1
- streamlit/static/static/js/{index.DaTKmBKa.js → index.qUb9zYOr.js} +1 -1
- streamlit/static/static/js/{index.CVNaQiWI.js → index.tzlSUp7h.js} +1 -1
- streamlit/static/static/js/{index.1auHKWgw.js → index.uWSBHHII.js} +1 -1
- streamlit/static/static/js/{index.M9USxdKN.js → index.wdIHSIcW.js} +1 -1
- streamlit/static/static/js/{input.28wXD4uV.js → input.C3o7UqTF.js} +1 -1
- streamlit/static/static/js/{memory.jbWyoc5k.js → memory.DAjIQM15.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.D5dgP2YW.js → number-overlay-editor.YLsBH7YM.js} +1 -1
- streamlit/static/static/js/{sandbox.CfK9-cKf.js → sandbox.5Z6Ir5FQ.js} +1 -1
- streamlit/static/static/js/{slicedToArray.DVgs1NsC.js → slicedToArray.Dr1mYLAX.js} +1 -1
- streamlit/static/static/js/{textarea.C5OZk1uL.js → textarea.BjNH-nD-.js} +1 -1
- streamlit/static/static/js/{timepicker.DEpQEk7W.js → timepicker.B5grIdSj.js} +1 -1
- streamlit/static/static/js/{uniqueId.OJw6SDpp.js → uniqueId.DGVuWfUI.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.C2DsWpWi.js → useBasicWidgetState.BMoJJAfz.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.Bw6YkmJD.js → useOnInputChange.D4-GhwNq.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.BjS0eA06.js → withFullScreenWrapper.qbbU-bZp.js} +1 -1
- {streamlit_nightly-1.41.2.dev20250101.dist-info → streamlit_nightly-1.41.2.dev20250102.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.41.2.dev20250101.dist-info → streamlit_nightly-1.41.2.dev20250102.dist-info}/RECORD +69 -69
- {streamlit_nightly-1.41.2.dev20250101.data → streamlit_nightly-1.41.2.dev20250102.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.41.2.dev20250101.dist-info → streamlit_nightly-1.41.2.dev20250102.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.41.2.dev20250101.dist-info → streamlit_nightly-1.41.2.dev20250102.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.41.2.dev20250101.dist-info → streamlit_nightly-1.41.2.dev20250102.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{n as p,al as T,r as s,a7 as x,j as r,am as v,a1 as h,an as e,ao as L,ap as R,F as k,a4 as m}from"./index.
|
1
|
+
import{n as p,al as T,r as s,a7 as x,j as r,am as v,a1 as h,an as e,ao as L,ap as R,F as k,a4 as m}from"./index.6vjR_n-y.js";const B=p("button",{target:"e1f244930"})(({theme:o})=>({fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,color:o.colors.fadedText60,backgroundColor:o.colors.transparent,fontFamily:"inherit",margin:o.spacing.none,border:"none",boxShadow:"none",padding:o.spacing.none,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{color:o.colors.primary}})),C=p("div",{target:"e1f244931"})(({theme:o})=>({display:"flex",flexDirection:"row",gap:o.spacing.lg,"> span":{marginTop:o.spacing.twoXS}})),z=p("div",{target:"e1f244933"})(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing.sm,alignItems:"start",justifyContent:"center",overflow:"hidden",minHeight:"100%",fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,div:{display:"inline-flex"}}));function E(o){const t=m(o);return{Body:{props:{"data-testid":"stToast",className:"stToast"},style:{display:"flex",flexDirection:"row",gap:o.spacing.md,width:o.sizes.toastWidth,marginTop:o.spacing.sm,borderTopLeftRadius:o.radii.default,borderTopRightRadius:o.radii.default,borderBottomLeftRadius:o.radii.default,borderBottomRightRadius:o.radii.default,paddingTop:o.spacing.lg,paddingBottom:o.spacing.lg,paddingLeft:o.spacing.twoXL,paddingRight:o.spacing.twoXL,backgroundColor:t?o.colors.gray10:o.colors.gray90,color:o.colors.bodyText,boxShadow:t?"0px 4px 16px rgba(0, 0, 0, 0.16)":"0px 4px 16px rgba(0, 0, 0, 0.7)"}},CloseIcon:{style:{color:o.colors.fadedText40,width:o.fontSizes.lg,height:o.fontSizes.lg,marginRight:`calc(-1 * ${o.spacing.lg} / 2)`,":hover":{color:o.colors.bodyText}}}}}function D(o){if(o.length>104){let a=o.replace(/^(.{104}[^\s]*).*/,"$1");return a.length>104&&(a=a.substring(0,104).split(" ").slice(0,-1).join(" ")),a.trim()}return o}function H({theme:o,body:t,icon:a,width:y}){const n=D(t),d=t!==n,[i,b]=s.useState(!d),[f,w]=s.useState(0),u=s.useCallback(()=>{b(!i)},[i]),c=s.useMemo(()=>E(o),[o]),l=s.useMemo(()=>x(C,{expanded:i,children:[a&&r(v,{iconValue:a,size:"xl",testid:"stToastDynamicIcon"}),x(z,{children:[r(h,{source:i?t:n,allowHTML:!1,isToast:!0}),d&&r(B,{"data-testid":"stToastViewButton",onClick:u,children:i?"view less":"view more"})]})]}),[d,i,t,a,n,u]);s.useEffect(()=>{if(o.inSidebar)return;const g=e.info(l,{overrides:{...c}});return w(g),()=>{e.update(g,{overrides:{Body:{style:{transitionDuration:0}}}}),e.clear(g)}},[]),s.useEffect(()=>{e.update(f,{children:l,overrides:{...c}})},[f,l,c]);const S=r(R,{kind:L.ERROR,body:"Streamlit API Error: `st.toast` cannot be called directly on the sidebar with `st.sidebar.toast`. See our `st.toast` API [docs](https://docs.streamlit.io/develop/api-reference/status/st.toast) for more information.",width:y});return r(k,{children:o.inSidebar&&S})}const M=T(H);export{M as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as s,E as W,_ as $,n as d,a4 as L,M as V,j as i,a7 as D,aX as K}from"./index.
|
1
|
+
import{r as s,E as W,_ as $,n as d,a4 as L,M as V,j as i,a7 as D,aX as K}from"./index.6vjR_n-y.js";import{I as N}from"./InputInstructions.DaNtjCNr.js";import{i as _}from"./inputUtils.CQWz5UKz.js";import{T as q}from"./textarea.BjNH-nD-.js";import"./base-input.BKegJgWw.js";var E=s.forwardRef(function(t,e){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:e}),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"}))});E.displayName="Send";const M=d("div",{target:"eq6nl9f0"})(({theme:t,width:e})=>({borderRadius:t.radii.default,display:"flex",backgroundColor:t.colors.widgetBackgroundColor??t.colors.secondaryBg,width:`${e}px`})),j=d("div",{target:"eq6nl9f1"})(({theme:t})=>({backgroundColor:t.colors.transparent,position:"relative",flexGrow:1,borderRadius:t.radii.default,display:"flex",alignItems:"center"})),A=d("button",{target:"eq6nl9f2"})(({theme:t,disabled:e,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.default,borderTopLeftRadius:l?t.radii.default:"0",borderBottomRightRadius:t.radii.default,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.sm,color:e?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:"eq6nl9f3"})({display:"flex",alignItems:"flex-end",height:"100%",position:"absolute",right:0,pointerEvents:"none"}),G=d("div",{target:"eq6nl9f4"})(({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:e,widgetMgr:l,fragmentId:u}){const o=V(),[g,h]=s.useState(!1),[p,f]=s.useState(e.default),[b,x]=s.useState(0),a=s.useRef(null),y=s.useRef({minHeight:0,maxHeight:0}),R=()=>{let r=0;const{current:n}=a;if(n){const c=n.placeholder;n.placeholder="",n.style.height="auto",r=n.scrollHeight,n.placeholder=c,n.style.height=""}return r},C=()=>{a.current&&a.current.focus(),p&&(l.setStringTriggerValue(e,p,{fromUi:!0},u),h(!1),f(""),x(0))},w=r=>{const{metaKey:n,ctrlKey:c,shiftKey:z}=r;_(r)&&!z&&!c&&!n&&(r.preventDefault(),C())},k=r=>{const{value:n}=r.target,{maxChars:c}=e;c!==0&&n.length>c||(h(n!==""),f(n),x(R()))};s.useEffect(()=>{if(e.setValue){e.setValue=!1;const r=e.value||"";f(r),h(r!=="")}},[e]),s.useEffect(()=>{if(a.current){const{offsetHeight:r}=a.current;y.current.minHeight=r,y.current.maxHeight=r*U}},[a]);const{disabled:m,placeholder:I,maxChars:B}=e,{minHeight:T,maxHeight:S}=y.current,v=b>0&&a.current?Math.abs(b-T)>H:!1;return i(M,{className:"stChatInput","data-testid":"stChatInput",width:t,children:D(j,{children:[i(q,{inputRef:a,value:p,placeholder:I,onChange:k,onKeyDown:w,"aria-label":I,disabled:m,rows:1,overrides:{Root:{style:{minHeight:o.sizes.minElementHeight,outline:"none",backgroundColor:o.colors.transparent,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?`${b+H}px`:"auto",maxHeight:S?`${S}px`:"none",paddingLeft:o.spacing.sm,paddingBottom:o.spacing.sm,paddingTop:o.spacing.sm,paddingRight:`calc(${o.iconSizes.xl} + 2 * ${o.spacing.sm} + ${o.spacing.sm})`}}}}),t>o.breakpoints.hideWidgetDetails&&i(G,{children:i(N,{dirty:g,value:p,maxLength:B,type:"chat",inForm:!1})}),i(F,{children:i(A,{onClick:C,disabled:!g||m,extended:v,"data-testid":"stChatInputSubmitButton",children:i(K,{content:E,size:"xl",color:"inherit"})})})]})})}export{Z as default};
|