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.
- streamlit/elements/code.py +8 -0
- streamlit/proto/Code_pb2.py +2 -2
- streamlit/proto/Code_pb2.pyi +4 -1
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{FileDownload.esm.CRoG5i8r.js → FileDownload.esm.BfiuyXfu.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.DWef4hWz.js → FormClearHelper.BIe6FN2Y.js} +1 -1
- streamlit/static/static/js/{Hooks.-GVqTMyj.js → Hooks.CHslqKt4.js} +1 -1
- streamlit/static/static/js/{InputInstructions.BohKIZFT.js → InputInstructions.BMT8dg5S.js} +1 -1
- streamlit/static/static/js/{ProgressBar.ByDCgAp7.js → ProgressBar.VmrIzSqo.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.DJNskB1V.js → RenderInPortalIfExists.B2NAzO0r.js} +1 -1
- streamlit/static/static/js/{Toolbar.B93Vwnd4.js → Toolbar.DbmFapWn.js} +1 -1
- streamlit/static/static/js/{base-input.CTx0gvzT.js → base-input.B1a61Ojd.js} +1 -1
- streamlit/static/static/js/{createSuper.BwPw7vsr.js → createSuper.DuLZrute.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.CLQHI5MN.js → data-grid-overlay-editor.BkcxIt6O.js} +1 -1
- streamlit/static/static/js/{downloader.WO6ZA_Co.js → downloader.BVrmPJui.js} +1 -1
- streamlit/static/static/js/{es6.55gLy6L6.js → es6.44cVHEXS.js} +2 -2
- streamlit/static/static/js/{getPrototypeOf.DJw8FwRX.js → getPrototypeOf.bvOEi7fo.js} +1 -1
- streamlit/static/static/js/{iframeResizer.contentWindow.B4_zxk6k.js → iframeResizer.contentWindow.Bd3a4rtP.js} +1 -1
- streamlit/static/static/js/{index.DBkgIii2.js → index.0AR3jk4J.js} +1 -1
- streamlit/static/static/js/{index.BeYh1C02.js → index.1fq50cer.js} +1 -1
- streamlit/static/static/js/{index.BqdO5rz5.js → index.3p3iyxFl.js} +1 -1
- streamlit/static/static/js/{index.DXat8gQf.js → index.3qE-vjOX.js} +8 -8
- streamlit/static/static/js/{index.J7Vrq5lQ.js → index.6ZeP-L28.js} +1 -1
- streamlit/static/static/js/{index.DE7Cx7jU.js → index.75EUE6su.js} +1 -1
- streamlit/static/static/js/{index.uc9sf5pQ.js → index.8Bq56lcM.js} +1 -1
- streamlit/static/static/js/{index.B9uAqDdL.js → index.BF04V0db.js} +1 -1
- streamlit/static/static/js/{index.gqEzZP5J.js → index.BRjwQabs.js} +1 -1
- streamlit/static/static/js/{index.4oltPSDN.js → index.BSgVnwxN.js} +1 -1
- streamlit/static/static/js/{index.CQk_PsCc.js → index.B_nF-WE5.js} +1 -1
- streamlit/static/static/js/{index.pU7vIfXj.js → index.BdfmpndH.js} +1 -1
- streamlit/static/static/js/{index.D1JevM_2.js → index.BfjxH33Q.js} +1 -1
- streamlit/static/static/js/{index.CGGiK-tN.js → index.C-fIpagH.js} +1 -1
- streamlit/static/static/js/{index.CVKTpi5B.js → index.C3rcPpxm.js} +1 -1
- streamlit/static/static/js/{index.CwosDieY.js → index.C9YRT0fo.js} +1 -1
- streamlit/static/static/js/{index.zMOhoVg6.js → index.CIMJL36S.js} +1 -1
- streamlit/static/static/js/{index.R8aPyg_g.js → index.CgSymxeL.js} +1 -1
- streamlit/static/static/js/{index.DNYJVjE8.js → index.CkxcnfCr.js} +1 -1
- streamlit/static/static/js/{index._bgPbXSL.js → index.CmHLY_aM.js} +1 -1
- streamlit/static/static/js/{index.SLtqkRJD.js → index.CzhhqwJO.js} +1 -1
- streamlit/static/static/js/{index.D_6VpY6P.js → index.D277ro6Y.js} +1 -1
- streamlit/static/static/js/index.D6WGxtqm.js +1 -0
- streamlit/static/static/js/{index.BJ_D3md2.js → index.D_cUCQty.js} +1 -1
- streamlit/static/static/js/{index.BdQidO-z.js → index.DaJKYvsa.js} +5 -5
- streamlit/static/static/js/{index.bkgZHDpc.js → index.GNEDK2sZ.js} +1 -1
- streamlit/static/static/js/{index.St5APQjJ.js → index.KOla1gMY.js} +1 -1
- streamlit/static/static/js/{index.ts8s7CAI.js → index.KmZ5vhVN.js} +1 -1
- streamlit/static/static/js/{index.CIwb9X9s.js → index.KnCHOP8N.js} +1 -1
- streamlit/static/static/js/{index.CA049ZDW.js → index.PqkLl1t0.js} +1 -1
- streamlit/static/static/js/{index.Dk0ptJZt.js → index.Q2CKSyfz.js} +1 -1
- streamlit/static/static/js/{index.BW_GOkH1.js → index.SOQTU-r_.js} +1 -1
- streamlit/static/static/js/{index.bOS3gI2u.js → index.WrhWPW-4.js} +1 -1
- streamlit/static/static/js/{index.9Y5ek_7z.js → index.dgKFPPrX.js} +1 -1
- streamlit/static/static/js/{index.DD9fCaBj.js → index.drbticTq.js} +1 -1
- streamlit/static/static/js/{index.CkBAk1pS.js → index.lvhOjMEi.js} +1 -1
- streamlit/static/static/js/{index.oYpNgdlw.js → index.vp4vsBFK.js} +1 -1
- streamlit/static/static/js/{input.CXSAsjSZ.js → input.mrdmFJfU.js} +1 -1
- streamlit/static/static/js/{memory.DdFkwmdB.js → memory.BjfNr0ig.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.BwYQjq5H.js → number-overlay-editor.WosTCRC_.js} +1 -1
- streamlit/static/static/js/{sandbox.Di7DT8TM.js → sandbox.oLnJKv78.js} +1 -1
- streamlit/static/static/js/{slicedToArray.yExWK_Ke.js → slicedToArray.BzQ82qu6.js} +1 -1
- streamlit/static/static/js/{textarea.B7FAzJHc.js → textarea.Da3YV5aR.js} +1 -1
- streamlit/static/static/js/{timepicker.Cvt746F5.js → timepicker.BAT5exrW.js} +1 -1
- streamlit/static/static/js/{uniqueId.Dme_RYod.js → uniqueId.C8z92sBf.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.BrxTjxxP.js → useBasicWidgetState.CH5oDGQl.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.8aWa7n-i.js → useOnInputChange.Bo325HzD.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.BBIHM2Cb.js → withFullScreenWrapper.C7zDWu4g.js} +1 -1
- {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/RECORD +72 -72
- {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/WHEEL +1 -1
- streamlit/static/static/js/index.CTKJYGMX.js +0 -1
- {streamlit_nightly-1.41.2.dev20250104.data → streamlit_nightly-1.41.2.dev20250106.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.41.2.dev20250104.dist-info → streamlit_nightly-1.41.2.dev20250106.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{n as c,aF as v,X as y,aG as l,aH as t,j as s,aI as C,aJ as S}from"./index.
|
1
|
+
import{n as c,aF as v,X as y,aG as l,aH as t,j as s,aI as C,aJ as S}from"./index.3qE-vjOX.js";function k(o,a){switch(o){case l.XSMALL:return{padding:`${a.spacing.twoXS} ${a.spacing.sm}`,fontSize:a.fontSizes.sm};case l.SMALL:return{padding:`${a.spacing.twoXS} ${a.spacing.md}`};case l.LARGE:return{padding:`${a.spacing.md} ${a.spacing.md}`};default:return{padding:`${a.spacing.xs} ${a.spacing.md}`}}}const g=c("a",{target:"eeng2fo0"})(({fluidWidth:o,size:a,theme:r})=>{const i=typeof o=="number"?`${o}px`:"100%";return{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:r.fontWeights.normal,padding:`${r.spacing.xs} ${r.spacing.md}`,borderRadius:r.radii.default,minHeight:r.sizes.minElementHeight,margin:0,lineHeight:r.lineHeights.base,color:r.colors.primary,textDecoration:"none",width:o?i:"auto",userSelect:"none","&:visited":{color:r.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${y(r.colors.primary,.5)}`},"&:hover":{textDecoration:"none"},"&:active":{textDecoration:"none"},...k(a,r)}}),B=c(g,{target:"eeng2fo1"})(({theme:o})=>({backgroundColor:o.colors.primary,color:o.colors.white,border:`${o.sizes.borderWidth} solid ${o.colors.primary}`,"&:hover":{backgroundColor:v(o.colors.primary,.05),color:o.colors.white},"&:active":{backgroundColor:"transparent",color:o.colors.primary},"&:visited:not(:active)":{color:o.colors.white},"&[disabled], &[disabled]:hover, &[disabled]:active, &[disabled]:visited":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),x=c(g,{target:"eeng2fo2"})(({theme:o})=>({backgroundColor:o.colors.lightenedBg05,color:o.colors.bodyText,border:`${o.sizes.borderWidth} solid ${o.colors.borderColor}`,"&:visited":{color:o.colors.bodyText},"&:hover":{borderColor:o.colors.primary,color:o.colors.primary},"&:active":{color:o.colors.white,borderColor:o.colors.primary,backgroundColor:o.colors.primary},"&:focus:not(:active)":{borderColor:o.colors.primary,color:o.colors.primary},"&[disabled], &[disabled]:hover, &[disabled]:active":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),$=c(g,{target:"eeng2fo3"})(({theme:o})=>({padding:o.spacing.none,backgroundColor:o.colors.transparent,color:o.colors.bodyText,border:"none","&:visited":{color:o.colors.bodyText},"&:hover":{color:o.colors.primary},"&:active":{color:o.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{color:o.colors.primary,boxShadow:`0 0 0 0.2rem ${y(o.colors.primary,.5)}`},"&[disabled], &[disabled]:hover, &[disabled]:active":{backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}}));function L({kind:o,size:a,disabled:r,fluidWidth:i,children:d,autoFocus:n,href:e,rel:u,target:p,onClick:f}){let b=B;return o===t.SECONDARY?b=x:o===t.TERTIARY&&(b=$),s(b,{kind:o,size:a||l.MEDIUM,fluidWidth:i||!1,disabled:r||!1,autoFocus:n||!1,href:e,target:p,rel:u,onClick:f,tabIndex:r?-1:0,"data-testid":`stBaseLinkButton-${o}`,children:d})}function T(o){const{disabled:a,element:r,width:i}=o,d={width:i};let n=t.SECONDARY;r.type==="primary"?n=t.PRIMARY:r.type==="tertiary"&&(n=t.TERTIARY);const e=r.help?i:!0,u=p=>{o.disabled&&p.preventDefault()};return s("div",{className:"stLinkButton","data-testid":"stLinkButton",style:d,children:s(C,{help:r.help,children:s(L,{kind:n,size:l.SMALL,disabled:a,onClick:u,fluidWidth:r.useContainerWidth?e:!1,href:r.url,target:"_blank",rel:"noreferrer","aria-disabled":a,children:s(S,{icon:r.icon,label:r.label})})})})}export{T as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{n as L,r as o,M as R,bZ as I,a8 as U,j as u,a$ as k,bc as z,b0 as H,aL as B,b1 as D,b$ as j}from"./index.
|
1
|
+
import{n as L,r as o,M as R,bZ as I,a8 as U,j as u,a$ as k,bc as z,b0 as H,aL as B,b1 as D,b$ as j}from"./index.3qE-vjOX.js";import{u as O}from"./uniqueId.C8z92sBf.js";import{u as _,a as $,b as K}from"./useOnInputChange.Bo325HzD.js";import{a as q}from"./useBasicWidgetState.CH5oDGQl.js";import{I as w}from"./InputInstructions.BMT8dg5S.js";import{I as A}from"./input.mrdmFJfU.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.BIe6FN2Y.js";import"./base-input.B1a61Ojd.js";const G=L("div",{target:"e6m0wlp0"})(({width:e})=>({position:"relative",width:e}));function rt({disabled:e,element:t,widgetMgr:s,width:n,fragmentId:m}){var g;const[r,l]=o.useState(S(s,t)??null),[i,d]=o.useState(!1),W=o.useCallback(()=>{l(t.default??null),d(!0)},[t.default]),[y,p]=q({getStateFromWidgetMgr:S,getDefaultStateFromProto:N,getCurrStateFromProto:Z,updateWidgetMgrState:J,element:t,widgetMgr:s,fragmentId:m,onFormCleared:W});_(y,r,l,i);const[T,h]=o.useState(!1),a=R(),[b]=o.useState(()=>O("text_input_")),{placeholder:x,formId:f}=t,c=o.useCallback(()=>{d(!1),p({value:r,fromUi:!0})},[r,p]),C=I({formId:f})?s.allowFormEnterToSubmit(f):i,V=T&&n>a.breakpoints.hideWidgetDetails,F=o.useCallback(()=>{i&&c(),h(!1)},[i,c]),v=o.useCallback(()=>{h(!0)},[]),E=$({formId:t.formId,maxChars:t.maxChars,setDirty:d,setUiValue:l,setValueWithSource:p}),P=K(t.formId,c,i,s,m);return U(G,{className:"stTextInput","data-testid":"stTextInput",width:n,children:[u(D,{label:t.label,disabled:e,labelVisibility:k((g=t.labelVisibility)==null?void 0:g.value),htmlFor:b,children:t.help&&u(z,{children:u(H,{content:t.help,placement:B.TOP_RIGHT})})}),u(A,{value:r??"",placeholder:x,onBlur:F,onFocus:v,onChange:E,onKeyPress:P,"aria-label":t.label,disabled:e,id:b,type:M(t),autoComplete:t.autocomplete,overrides:{Input:{style:{minWidth:0,"::placeholder":{opacity:"0.7"},lineHeight:a.lineHeights.inputWidget,paddingRight:a.spacing.sm,paddingLeft:a.spacing.sm,paddingBottom:a.spacing.sm,paddingTop:a.spacing.sm}},Root:{props:{"data-testid":"stTextInputRootElement"},style:{height:a.sizes.minElementHeight,borderLeftWidth:a.sizes.borderWidth,borderRightWidth:a.sizes.borderWidth,borderTopWidth:a.sizes.borderWidth,borderBottomWidth:a.sizes.borderWidth}}}}),V&&u(w,{dirty:i,value:r??"",maxLength:t.maxChars,inForm:I({formId:t.formId}),allowEnterToSubmit:C})]})}function S(e,t){return e.getStringValue(t)??null}function N(e){return e.default??null}function Z(e){return e.value??null}function J(e,t,s,n){t.setStringValue(e,s.value,{fromUi:s.fromUi},n)}function M(e){return e.type===j.Type.PASSWORD?"password":"text"}export{rt as default};
|