streamlit-nightly 1.45.1.dev20250501__py3-none-any.whl → 1.45.1.dev20250503__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/widgets/camera_input.py +20 -0
- streamlit/elements/widgets/file_uploader.py +23 -0
- streamlit/elements/widgets/select_slider.py +23 -0
- streamlit/elements/widgets/slider.py +17 -0
- streamlit/elements/widgets/text_widgets.py +38 -0
- streamlit/proto/CameraInput_pb2.py +4 -3
- streamlit/proto/CameraInput_pb2.pyi +8 -2
- streamlit/proto/FileUploader_pb2.py +4 -3
- streamlit/proto/FileUploader_pb2.pyi +8 -2
- streamlit/proto/Slider_pb2.py +8 -7
- streamlit/proto/Slider_pb2.pyi +8 -2
- streamlit/proto/TextArea_pb2.py +4 -3
- streamlit/proto/TextArea_pb2.pyi +9 -2
- streamlit/proto/TextInput_pb2.py +6 -5
- streamlit/proto/TextInput_pb2.pyi +9 -2
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{ErrorOutline.esm.JdVs1Qkg.js → ErrorOutline.esm.Bi4rIKce.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.BlQJ4vNG.js → FileDownload.esm.CgcfJ7jp.js} +1 -1
- streamlit/static/static/js/{FileHelper.V4GYCyDu.js → FileHelper.DNojV8Y-.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.CyxVAl63.js → FormClearHelper.Dj9cIjIB.js} +1 -1
- streamlit/static/static/js/{Hooks.CwzpXjfg.js → Hooks.BzFUZ6MJ.js} +1 -1
- streamlit/static/static/js/{InputInstructions.DLh-ti71.js → InputInstructions.CYPXcx5I.js} +1 -1
- streamlit/static/static/js/{ProgressBar.C7bBETsY.js → ProgressBar.ZaslM_lv.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.BMvxq2hn.js → RenderInPortalIfExists.BuhqVIo4.js} +1 -1
- streamlit/static/static/js/{Toolbar.CotfqUm6.js → Toolbar.Dh9Ti0Xp.js} +1 -1
- streamlit/static/static/js/{base-input.BxaSmpU7.js → base-input.CWmg0piT.js} +1 -1
- streamlit/static/static/js/{checkbox.CrglCerk.js → checkbox.B55PmSuL.js} +1 -1
- streamlit/static/static/js/{createSuper.Bs0C396a.js → createSuper.B_ZYGAdZ.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.D0k84F-1.js → data-grid-overlay-editor.BC3_SI0J.js} +1 -1
- streamlit/static/static/js/{downloader.BpZrmdUi.js → downloader.DCVryQ8m.js} +1 -1
- streamlit/static/static/js/{es6.DD8ccAPk.js → es6.Dz_yB5z2.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.7G5YE4ki.js → iframeResizer.contentWindow.BL9oGsv0.js} +1 -1
- streamlit/static/static/js/{index.65FBensJ.js → index.149XmMwk.js} +1 -1
- streamlit/static/static/js/{index.DICnhvRg.js → index.B2rrdjSM.js} +1 -1
- streamlit/static/static/js/{index.CMjYL7Ho.js → index.B4dHtLlL.js} +1 -1
- streamlit/static/static/js/{index.DO535td0.js → index.B6Lkujkg.js} +1 -1
- streamlit/static/static/js/{index.DUF1Zxw6.js → index.B71v2qvG.js} +1 -1
- streamlit/static/static/js/{index.B2lDS5vI.js → index.B8bKQXh9.js} +1 -1
- streamlit/static/static/js/{index.Dz4o-tqP.js → index.BKWZKL08.js} +5 -5
- streamlit/static/static/js/{index.COpV4IZK.js → index.BL9ZervX.js} +1 -1
- streamlit/static/static/js/{index.COBwb1mq.js → index.BTniWQ7k.js} +1 -1
- streamlit/static/static/js/{index.Czzj5-re.js → index.Bi2P2smS.js} +1 -1
- streamlit/static/static/js/{index.DX2vW3qb.js → index.Bjv3WjfL.js} +1 -1
- streamlit/static/static/js/{index.D5GLQoRz.js → index.Bkh6Uq46.js} +1 -1
- streamlit/static/static/js/{index.Cgzj9ewR.js → index.Bw1GLRoJ.js} +1 -1
- streamlit/static/static/js/{index.BQqNcnRp.js → index.C1Onnqgx.js} +34 -34
- streamlit/static/static/js/{index.SARy_Med.js → index.C5Bk4I5D.js} +1 -1
- streamlit/static/static/js/{index.BjKCKyJI.js → index.C9t2WUik.js} +1 -1
- streamlit/static/static/js/{index.Co5UsG7W.js → index.CEtbVfDc.js} +1 -1
- streamlit/static/static/js/{index.DM4oCpFy.js → index.CKlQXXH5.js} +1 -1
- streamlit/static/static/js/{index.C2kSDT38.js → index.CLm1vyQL.js} +1 -1
- streamlit/static/static/js/{index.Olz7Xaf0.js → index.CNMeZMWE.js} +1 -1
- streamlit/static/static/js/{index.5p5xlu27.js → index.Cim9S8Ss.js} +1 -1
- streamlit/static/static/js/{index.B3VXbj_b.js → index.Clgb-C0M.js} +1 -1
- streamlit/static/static/js/{index.BNm3tuep.js → index.CnBJWuqh.js} +1 -1
- streamlit/static/static/js/{index.BNhdn2vD.js → index.CqhFhCXO.js} +1 -1
- streamlit/static/static/js/{index.9sjzZWLH.js → index.DB8lzSwd.js} +1 -1
- streamlit/static/static/js/{index.80LGX7Ne.js → index.DBjodTv0.js} +1 -1
- streamlit/static/static/js/{index.BI5f0VII.js → index.DGQq6N06.js} +1 -1
- streamlit/static/static/js/{index.BDLXYKTS.js → index.DJXE7AM9.js} +1 -1
- streamlit/static/static/js/{index.Dq6k7Ztd.js → index.DX5LBKpa.js} +1 -1
- streamlit/static/static/js/{index.DK_eUkea.js → index.DXNwUj37.js} +1 -1
- streamlit/static/static/js/{index.rHb0nIsm.js → index.Dk4s-H9g.js} +1 -1
- streamlit/static/static/js/{index.DfgXsqtW.js → index.DsUIRBrE.js} +1 -1
- streamlit/static/static/js/{index.BF0CTyRa.js → index.JBn4qgd8.js} +1 -1
- streamlit/static/static/js/{index.CveEeb4Q.js → index.ZM4hBepQ.js} +1 -1
- streamlit/static/static/js/{index.CkutRj8u.js → index.n-3bctcT.js} +1 -1
- streamlit/static/static/js/{index.DW80zFo4.js → index.poyxGVIV.js} +1 -1
- streamlit/static/static/js/{index.D1wWsFMc.js → index.xXFNtMRp.js} +1 -1
- streamlit/static/static/js/{input.ChMez782.js → input.tN5HMxoF.js} +1 -1
- streamlit/static/static/js/{memory.DEIZt-uk.js → memory.CUqn-HRH.js} +1 -1
- streamlit/static/static/js/{mergeWith.DV3wfmZj.js → mergeWith.DerBQcY2.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.CVWV51LZ.js → number-overlay-editor.BU-PumD0.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.D8SHK4fu.js → possibleConstructorReturn.BqXvihmp.js} +1 -1
- streamlit/static/static/js/{sandbox.2Y0eB1Fb.js → sandbox.DEPmvMZ8.js} +1 -1
- streamlit/static/static/js/{textarea.CfOMMQUp.js → textarea.DTRZkwAk.js} +1 -1
- streamlit/static/static/js/{timepicker.BCEVqM6L.js → timepicker.BkL0oPvT.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.CgIgbjyR.js → toConsumableArray.DtI7t_Vr.js} +1 -1
- streamlit/static/static/js/{uniqueId.CasOW7eQ.js → uniqueId.CBIMIugU.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.DM0uW3hG.js → useBasicWidgetState.CBoFkKUi.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.C9p9DssL.js → useOnInputChange.B59UtP7h.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.Du9h1SFo.js → withFullScreenWrapper.BaWUpTVz.js} +1 -1
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250503.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250503.dist-info}/RECORD +88 -88
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250503.dist-info}/WHEEL +1 -1
- {streamlit_nightly-1.45.1.dev20250501.data → streamlit_nightly-1.45.1.dev20250503.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250503.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.45.1.dev20250501.dist-info → streamlit_nightly-1.45.1.dev20250503.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{r as s,bi as U,z as k,ct as W,C as A,j as l,bs as L,bG as P,bt as B,bb as D,bu as j}from"./index.
|
1
|
+
import{r as s,bi as U,z as k,ct as W,C as A,j as l,bs as L,bG as P,bt as B,bb as D,bu as j}from"./index.C1Onnqgx.js";import{u as _}from"./uniqueId.CBIMIugU.js";import{u as w,a as G,b as K}from"./useOnInputChange.B59UtP7h.js";import{I as O}from"./InputInstructions.CYPXcx5I.js";import{a as $}from"./useBasicWidgetState.CBoFkKUi.js";import{T as q}from"./textarea.DTRZkwAk.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.Dj9cIjIB.js";import"./base-input.CWmg0piT.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});w(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=G({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(q,{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,b6 as a,j as e,b7 as d,bq as u,b5 as c,b8 as B,b9 as b}from"./index.
|
1
|
+
import{r as l,b6 as a,j as e,b7 as d,bq as u,b5 as c,b8 as B,b9 as b}from"./index.C1Onnqgx.js";function m(i){const{disabled:o,element:t,widgetMgr:s,fragmentId:r}=i;let n=a.SECONDARY;return t.type==="primary"?n=a.PRIMARY:t.type==="tertiary"&&(n=a.TERTIARY),e(b,{className:"stButton","data-testid":"stButton",children:e(d,{help:t.help,containerWidth:t.useContainerWidth,children:e(u,{kind:n,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(m);export{p as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{n as T,r as l,z as M,c2 as W,c3 as C,C as I,j as r,bs as V,bG as O,bt as L,bb as N,bu as P,c1 as k,c4 as E,bZ as $,c5 as A,bD as B}from"./index.
|
1
|
+
import{n as T,r as l,z as M,c2 as W,c3 as C,C as I,j as r,bs as V,bG as O,bt as L,bb as N,bu as P,c1 as k,c4 as E,bZ as $,c5 as A,bD as B}from"./index.C1Onnqgx.js";import{a as D}from"./useBasicWidgetState.CBoFkKUi.js";import"./FormClearHelper.Dj9cIjIB.js";const F=T("div",{target:"euzcfsp0"})(({theme:s})=>({"span[aria-disabled='true']":{background:s.colors.fadedText05}})),H=(s,t)=>s.getStringArrayValue(t),G=s=>s.default.map(t=>s.options[t])??null,U=s=>s.rawValues??null,j=(s,t,n,p)=>{t.setStringArrayValue(s,n.value,{fromUi:n.fromUi},p)},K=s=>{var S;const{element:t,widgetMgr:n,fragmentId:p}=s,e=M(),[i,m]=D({getStateFromWidgetMgr:H,getDefaultStateFromProto:G,getCurrStateFromProto:U,updateWidgetMgrState:j,element:t,widgetMgr:n,fragmentId:p}),h=t.maxSelections>0&&i.length>=t.maxSelections,f=l.useMemo(()=>{if(t.maxSelections===0)return"No results";if(i.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,i.length]),y=l.useMemo(()=>i.map(o=>({value:o,label:o})),[i]),b=l.useCallback(o=>{var c,d;switch(o.type){case"remove":return W(i,(c=o.option)==null?void 0:c.value);case"clear":return[];case"select":return i.concat([(d=o.option)==null?void 0:d.value]);default:throw new Error(`State transition is unknown: ${o.type}`)}},[i]),v=l.useCallback(o=>{t.maxSelections&&o.type==="select"&&i.length>=t.maxSelections||m({value:b(o),fromUi:!0})},[t.maxSelections,b,m,i.length]),x=l.useCallback((o,c)=>{if(h)return[];const d=o.filter(R=>!i.includes(R.value));return C(d,c)},[h,i]),{options:u}=t;let a=s.disabled,g=t.placeholder;u.length===0&&(t.acceptNewOptions?g="Add options":(g="No options to select",a=!0));const z=u.map(o=>({label:o,value:o})),w=u.length>10;return I("div",{className:"stMultiSelect","data-testid":"stMultiSelect",children:[r(P,{label:t.label,disabled:a,labelVisibility:V((S=t.labelVisibility)==null?void 0:S.value),children:t.help&&r(O,{children:r(L,{content:t.help,placement:N.TOP_RIGHT})})}),r(F,{children:r(k,{creatable:t.acceptNewOptions??!1,options:z,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:g,type:A.select,multi:!0,onChange:v,value:y,disabled:a,size:"compact",noResultsMsg:f,filterOptions:x,closeOnSelect:!1,overrides:{Popover:{props:{overrides:{Body:{style:()=>({marginTop:e.spacing.px})}}}},SelectArrow:{component:$,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",color:a?e.colors.fadedText40:e.colors.fadedText60})},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,cursor:"pointer",":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})`,cursor:"default !important"}},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:B.isMobile&&w===!1?"readonly":null}},Dropdown:{component:E}}})})]})},_=l.memo(K);export{_ as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as l,M as u,j as d,bs as x,c8 as V}from"./index.
|
1
|
+
import{r as l,M as u,j as d,bs as x,c8 as V}from"./index.C1Onnqgx.js";import{a as h}from"./useBasicWidgetState.CBoFkKUi.js";import"./FormClearHelper.Dj9cIjIB.js";const U=(t,o)=>t.getStringValue(o),v=t=>t.options.length===0||u(t.default)?null:t.options[t.default],C=t=>t.rawValue??null,F=(t,o,e,a)=>{o.setStringValue(t,e.value,{fromUi:e.fromUi},a)},M=({disabled:t,element:o,widgetMgr:e,fragmentId:a})=>{const{options:n,help:c,label:i,labelVisibility:r,placeholder:g,acceptNewOptions:p}=o,[f,s]=h({getStateFromWidgetMgr:U,getDefaultStateFromProto:v,getCurrStateFromProto:C,updateWidgetMgrState:F,element:o,widgetMgr:e,fragmentId:a}),m=l.useCallback(b=>{s({value:b,fromUi:!0})},[s]),S=u(o.default)&&!t;return d(V,{label:i,labelVisibility:x(r==null?void 0:r.value),options:n,disabled:t,onChange:m,value:f,help:c,placeholder:g,clearable:S,acceptNewOptions:p})},w=l.memo(M);export{w as default};
|