streamlit-nightly 1.42.1.dev20250204__py2.py3-none-any.whl → 1.42.1.dev20250205__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 (72) hide show
  1. streamlit/static/index.html +1 -1
  2. streamlit/static/static/js/{FileDownload.esm.CuayiK6T.js → FileDownload.esm.ShSIWsKj.js} +1 -1
  3. streamlit/static/static/js/{FileDropzone.CvXoxIUm.js → FileDropzone.BFkJKygp.js} +1 -1
  4. streamlit/static/static/js/{FormClearHelper.DpwWkrvV.js → FormClearHelper.Bue0QSIn.js} +1 -1
  5. streamlit/static/static/js/{Hooks.BQiFiHd5.js → Hooks.kV16_k1-.js} +1 -1
  6. streamlit/static/static/js/{InputInstructions.CypmdrYz.js → InputInstructions.DpG38kbY.js} +1 -1
  7. streamlit/static/static/js/{ProgressBar.DfR4HyQR.js → ProgressBar.B_WJAIyy.js} +1 -1
  8. streamlit/static/static/js/{RenderInPortalIfExists.D6u3szcn.js → RenderInPortalIfExists.CGAGPcQq.js} +1 -1
  9. streamlit/static/static/js/{Toolbar.D6p42Hno.js → Toolbar.DBtrI961.js} +1 -1
  10. streamlit/static/static/js/{base-input.B5AcLp6p.js → base-input.P8VGAZdC.js} +1 -1
  11. streamlit/static/static/js/{createSuper.DNzaJgi-.js → createSuper.GYQHnroV.js} +1 -1
  12. streamlit/static/static/js/{data-grid-overlay-editor.CKACfVZL.js → data-grid-overlay-editor.B1sLTR3f.js} +1 -1
  13. streamlit/static/static/js/{downloader.D6HV3a60.js → downloader.y-Ssi2d3.js} +1 -1
  14. streamlit/static/static/js/{es6.UQDWlCyE.js → es6.DpUKmjxe.js} +2 -2
  15. streamlit/static/static/js/{iframeResizer.contentWindow.DQ-TFrBp.js → iframeResizer.contentWindow.BBjdpeP0.js} +1 -1
  16. streamlit/static/static/js/{index.C8zZSMvD.js → index.2bJmI0Ih.js} +1 -1
  17. streamlit/static/static/js/{index.BghvoEVe.js → index.3k422wEU.js} +1 -1
  18. streamlit/static/static/js/{index.DB_dBVfZ.js → index.B11A7C7I.js} +1 -1
  19. streamlit/static/static/js/{index.wW-pPvtW.js → index.B7AJyWjy.js} +1 -1
  20. streamlit/static/static/js/{index.D7BxtE4u.js → index.B7aeIxns.js} +1 -1
  21. streamlit/static/static/js/{index.CX9gqq2L.js → index.BRsob9Jp.js} +1 -1
  22. streamlit/static/static/js/{index.DMKXUbO6.js → index.BVkJfCWM.js} +1 -1
  23. streamlit/static/static/js/{index.DkV6k6Ng.js → index.BW_6EVtw.js} +1 -1
  24. streamlit/static/static/js/{index.DaoBv396.js → index.Bkk4sBLz.js} +1 -1
  25. streamlit/static/static/js/{index.DqZZoWyt.js → index.BqiT_qyM.js} +1 -1
  26. streamlit/static/static/js/{index.BXmBj7MJ.js → index.C-BkiutF.js} +1 -1
  27. streamlit/static/static/js/{index.BPmrb-47.js → index.C73Hi-mL.js} +1 -1
  28. streamlit/static/static/js/{index.BQEIBi4n.js → index.C8vyFGOc.js} +1 -1
  29. streamlit/static/static/js/{index.BdVr8Tta.js → index.CAQGqUJ5.js} +1 -1
  30. streamlit/static/static/js/{index.BUGQmWUV.js → index.CC_i5fnL.js} +1 -1
  31. streamlit/static/static/js/index.CIkzV9zP.js +2 -0
  32. streamlit/static/static/js/{index.BAFGiIHm.js → index.CIwUls4J.js} +1 -1
  33. streamlit/static/static/js/{index.CgVoYKAP.js → index.CUzW8sZB.js} +1 -1
  34. streamlit/static/static/js/{index.CSgG8OVN.js → index.CVIsVMt0.js} +1 -1
  35. streamlit/static/static/js/{index.BiybRa0I.js → index.CZFA90VV.js} +1 -1
  36. streamlit/static/static/js/{index.BY8YeKF1.js → index.Cd8_b4vi.js} +1 -1
  37. streamlit/static/static/js/{index.Epl2r08f.js → index.CoJayF2l.js} +1 -1
  38. streamlit/static/static/js/{index.D4SMJhY1.js → index.Cp60C2LQ.js} +1 -1
  39. streamlit/static/static/js/{index.BPNlEjgz.js → index.D-Qsohh0.js} +1 -1
  40. streamlit/static/static/js/{index.CAuJtYES.js → index.D2i6l9uv.js} +1 -1
  41. streamlit/static/static/js/{index.BuyK2IsW.js → index.D3PlNa4T.js} +1 -1
  42. streamlit/static/static/js/{index.BiMrOUpK.js → index.D7HtU_R4.js} +1 -1
  43. streamlit/static/static/js/{index.CKOdbWxq.js → index.DHOnt3Rd.js} +1 -1
  44. streamlit/static/static/js/{index.ByH1pn5_.js → index.DNKGONSt.js} +1 -1
  45. streamlit/static/static/js/{index.CEdHQ1ob.js → index.D_CViY1G.js} +1 -1
  46. streamlit/static/static/js/{index.ChrjN8GY.js → index.DdJR-Re7.js} +1 -1
  47. streamlit/static/static/js/{index.Bm7Vkuba.js → index.DdaoJ1WZ.js} +1 -1
  48. streamlit/static/static/js/{index.B96fHK2A.js → index.DsOZJLyF.js} +1 -1
  49. streamlit/static/static/js/{index.2EE80u0h.js → index.DuqdUleB.js} +5 -5
  50. streamlit/static/static/js/{index.CrMtUJsu.js → index.GZ99DH1Q.js} +5 -5
  51. streamlit/static/static/js/{index.ndVWhafL.js → index.OWYUy0bC.js} +1 -1
  52. streamlit/static/static/js/{index.Dr6DSYcq.js → index.USVf5VUT.js} +1 -1
  53. streamlit/static/static/js/{input.CxqdG-sh.js → input.BANuQoGH.js} +1 -1
  54. streamlit/static/static/js/{memory.DuSk7Eex.js → memory.DTxlMbK7.js} +1 -1
  55. streamlit/static/static/js/{mergeWith.DrxB1Sj4.js → mergeWith.CfihrnQo.js} +1 -1
  56. streamlit/static/static/js/{number-overlay-editor.DBc0yndt.js → number-overlay-editor.BHsEp8VL.js} +1 -1
  57. streamlit/static/static/js/{possibleConstructorReturn.ZdYWHeG3.js → possibleConstructorReturn.BErM7qST.js} +1 -1
  58. streamlit/static/static/js/{sandbox.D3L4CYjG.js → sandbox.BMuVLu80.js} +1 -1
  59. streamlit/static/static/js/{textarea.CSafh28v.js → textarea.CmSZv6UE.js} +1 -1
  60. streamlit/static/static/js/{timepicker.C-pwkiaT.js → timepicker.DsaAj0da.js} +1 -1
  61. streamlit/static/static/js/{toConsumableArray.DyCVskz5.js → toConsumableArray.DJs7oxRq.js} +1 -1
  62. streamlit/static/static/js/{uniqueId.BODM2vTk.js → uniqueId.CVe3uxKs.js} +1 -1
  63. streamlit/static/static/js/{useBasicWidgetState.DQUiM2dz.js → useBasicWidgetState.D572sX2t.js} +1 -1
  64. streamlit/static/static/js/{useOnInputChange.Ccjd55xn.js → useOnInputChange.D9rTVyjn.js} +1 -1
  65. streamlit/static/static/js/{withFullScreenWrapper.CneUoXNE.js → withFullScreenWrapper.4QDrgZxA.js} +1 -1
  66. {streamlit_nightly-1.42.1.dev20250204.dist-info → streamlit_nightly-1.42.1.dev20250205.dist-info}/METADATA +1 -1
  67. {streamlit_nightly-1.42.1.dev20250204.dist-info → streamlit_nightly-1.42.1.dev20250205.dist-info}/RECORD +71 -71
  68. streamlit/static/static/js/index.CJ-t5S6T.js +0 -2
  69. {streamlit_nightly-1.42.1.dev20250204.data → streamlit_nightly-1.42.1.dev20250205.data}/scripts/streamlit.cmd +0 -0
  70. {streamlit_nightly-1.42.1.dev20250204.dist-info → streamlit_nightly-1.42.1.dev20250205.dist-info}/WHEEL +0 -0
  71. {streamlit_nightly-1.42.1.dev20250204.dist-info → streamlit_nightly-1.42.1.dev20250205.dist-info}/entry_points.txt +0 -0
  72. {streamlit_nightly-1.42.1.dev20250204.dist-info → streamlit_nightly-1.42.1.dev20250205.dist-info}/top_level.txt +0 -0
@@ -1,2 +0,0 @@
1
- import{bw as Z,bx as J,r as f,by as Q,y as Y,bz as s,j as S,z as ee,bs as te,bA as re,bB as ne,bt as oe,bc as ie,bu as ae,bq as ue,b8 as j,b7 as W,ba as le}from"./index.2EE80u0h.js";import{a as ce}from"./useBasicWidgetState.DQUiM2dz.js";import"./FormClearHelper.DpwWkrvV.js";var se={primary:"primary",secondary:"secondary",tertiary:"tertiary"},G={default:"default",pill:"pill",round:"round",circle:"circle",square:"square"},fe={mini:"mini",default:"default",compact:"compact",large:"large"},C=Object.freeze({radio:"radio",checkbox:"checkbox"}),z=Z("div",function(e){var t=e.$shape,r=e.$length,n=e.$theme,o=r===1?void 0:t!==G.default?"-".concat(n.sizing.scale100):"-0.5px";return{display:"flex",marginLeft:o,marginRight:o}});z.displayName="StyledRoot";z.displayName="StyledRoot";function D(e){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(e)}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(this,arguments)}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(n){N(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function de(e,t){return he(e)||me(e,t)||be(e,t)||ye()}function ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(e,t){if(e){if(typeof e=="string")return X(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X(e,t)}}function X(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function me(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,a,p;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(c){i=!0,p=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw p}}return n}}function he(e){if(Array.isArray(e))return e}function ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Se(e,t,r){return t&&ve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},$(e,t)}function _e(e){var t=we();return function(){var n=k(e),o;if(t){var i=k(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return Ee(this,o)}}function Ee(e,t){if(t&&(D(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K(e)}function K(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function we(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k(e)}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Le(e,t){return!Array.isArray(e)&&typeof e!="number"?!1:Array.isArray(e)?e.includes(t):e===t}var q=function(e){Oe(r,e);var t=_e(r);function r(){var n;ge(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),N(K(n),"childRefs",{}),n}return Se(r,[{key:"render",value:function(){var o=this,i=this.props,a=i.overrides,p=a===void 0?{}:a,c=i.mode,P=c===void 0?C.checkbox:c,d=i.children,y=i.selected,m=i.disabled,l=i.onClick,E=i.kind,h=i.shape,w=i.size,A=J(p.Root,z),O=de(A,2),_=O[0],L=O[1],F=this.props["aria-label"]||this.props.ariaLabel,g=P===C.radio,V=f.Children.count(d);return f.createElement(Q.Consumer,null,function(H){return f.createElement(_,M({"aria-label":F||H.buttongroup.ariaLabel,"data-baseweb":"button-group",role:g?"radiogroup":"group",$shape:h,$length:d.length},L),f.Children.map(d,function(b,R){if(!f.isValidElement(b))return null;var B=b.props.isSelected?b.props.isSelected:Le(y,R);return g&&(o.childRefs[R]=f.createRef()),f.cloneElement(b,{disabled:m||b.props.disabled,isSelected:B,ref:g?o.childRefs[R]:void 0,tabIndex:!g||B||g&&(!y||y===-1)&&R===0?0:-1,onKeyDown:function(u){if(g){var v=Number(y)?Number(y):0;if(u.key==="ArrowUp"||u.key==="ArrowLeft"){u.preventDefault&&u.preventDefault();var I=v-1<0?V-1:v-1;l&&l(u,I),o.childRefs[I].current&&o.childRefs[I].current.focus()}if(u.key==="ArrowDown"||u.key==="ArrowRight"){u.preventDefault&&u.preventDefault();var T=v+1>V-1?0:v+1;l&&l(u,T),o.childRefs[T].current&&o.childRefs[T].current.focus()}}},kind:E,onClick:function(u){m||(b.props.onClick&&b.props.onClick(u),l&&l(u,R))},shape:h,size:w,overrides:pe({BaseButton:{style:function(u){var v=u.$theme;return d.length===1?{}:h!==G.default?{marginLeft:v.sizing.scale100,marginRight:v.sizing.scale100}:{marginLeft:"0.5px",marginRight:"0.5px"}},props:{"aria-checked":B,role:g?"radio":"checkbox"}}},b.props.overrides)})}))})}}]),r}(f.Component);N(q,"defaultProps",{disabled:!1,onClick:function(){},shape:G.default,size:fe.default,kind:se.secondary});function Re(e,t){return t.includes(e)?t.filter(r=>r!==e):[...t,e]}function Pe(e,t,r){return e==s.ClickMode.MULTI_SELECT?Re(t,r??[]):r!=null&&r.includes(t)?[]:[t]}function Ce(e){return e.length===0?-1:e[0]}function ke(e,t,r,n){t.setIntArrayValue(e,r.value,{fromUi:r.fromUi},n)}function Ae(e,t,r){const n=r===s.Style.PILLS?j.PILLS:r===s.Style.BORDERLESS?j.BORDERLESS_ICON:j.SEGMENTED_CONTROL,o=r===s.Style.BORDERLESS?W.XSMALL:W.MEDIUM,i=r===s.Style.BORDERLESS?"lg":"base";return{element:S(le,{icon:t,label:e,iconSize:i}),kind:n,size:o}}function Be(e,t,r,n){return r.indexOf(n)>-1?!0:t!==s.ClickMode.SINGLE_SELECT||e!==s.SelectionVisualization.ALL_UP_TO_SELECTED?!1:r.length>0&&n<r[0]}function Ie(e,t){return e&&(t=`${t}Active`),t}function Te(e,t){const r={flexWrap:"wrap",maxWidth:"fit-content"};switch(e){case s.Style.BORDERLESS:return{...r,columnGap:t.threeXS,rowGap:t.threeXS};case s.Style.PILLS:return{...r,columnGap:t.twoXS,rowGap:t.twoXS};case s.Style.SEGMENTED_CONTROL:return{...r,columnGap:t.none,rowGap:t.twoXS,"::after":{content:"''",flex:1e4}};default:return r}}function je(e,t,r,n,o,i){const a=Be(r,n,o,t);let p=e.content,c=e.contentIcon;return a&&(p=e.selectedContent?e.selectedContent:p,c=e.selectedContentIcon?e.selectedContentIcon:c),f.forwardRef(function(d,y){const{element:m,kind:l,size:E}=Ae(p??"",c??void 0,i),h=Ie(!!(a&&!e.selectedContent&&!e.selectedContentIcon),l);return S(ue,{...d,size:E,kind:h,children:m})})}function De(e,t){return e.getIntArrayValue(t)}function Me(e){return e.default??null}function $e(e){return e.value??null}function Ge(e){const{disabled:t,element:r,fragmentId:n,widgetMgr:o}=e,{clickMode:i,options:a,selectionVisualization:p,style:c,label:P,labelVisibility:d,help:y}=r,m=Y(),[l,E]=ce({getStateFromWidgetMgr:De,getDefaultStateFromProto:Me,getCurrStateFromProto:$e,updateWidgetMgrState:ke,element:r,widgetMgr:o,fragmentId:n}),h=(O,_)=>{const L=Pe(i,_,l);E({value:L,fromUi:!0})};let w;i===s.ClickMode.SINGLE_SELECT?w=C.radio:i===s.ClickMode.MULTI_SELECT&&(w=C.checkbox);const A=f.useMemo(()=>a.map((O,_)=>{const L=je(O,_,p,i,l,c);return S(L,{},`${O.content}-${_}`)}),[i,a,p,c,l]);return ee("div",{className:"stButtonGroup","data-testid":"stButtonGroup",children:[S(ae,{label:P,disabled:t,labelVisibility:te((d==null?void 0:d.value)??re.LabelVisibilityOptions.COLLAPSED),children:y&&S(ne,{children:S(oe,{content:y,placement:ie.TOP})})}),S(q,{disabled:t,mode:w,onClick:h,selected:i===s.ClickMode.MULTI_SELECT?l:Ce(l),overrides:{Root:{style:f.useCallback(()=>Te(c,m.spacing),[c,m.spacing])}},children:A})]})}const Ue=f.memo(Ge);export{Ue as default};