streamlit-nightly 1.42.3.dev20250227__py2.py3-none-any.whl → 1.42.3.dev20250301__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 (85) hide show
  1. streamlit/elements/arrow.py +6 -5
  2. streamlit/elements/lib/column_types.py +101 -70
  3. streamlit/elements/widgets/button.py +13 -2
  4. streamlit/elements/widgets/data_editor.py +6 -5
  5. streamlit/elements/widgets/number_input.py +3 -2
  6. streamlit/elements/widgets/slider.py +11 -3
  7. streamlit/runtime/context.py +47 -2
  8. streamlit/static/index.html +1 -1
  9. streamlit/static/static/js/{FileDownload.esm.rdZtCw5-.js → FileDownload.esm.CUiEWbzl.js} +1 -1
  10. streamlit/static/static/js/{FileHelper.BztOEKJy.js → FileHelper.B6bBsK7b.js} +1 -1
  11. streamlit/static/static/js/{FormClearHelper.Drd1fMJc.js → FormClearHelper.B_9Ez6vr.js} +1 -1
  12. streamlit/static/static/js/{Hooks.DWd0hyk4.js → Hooks.VwVTTUgt.js} +1 -1
  13. streamlit/static/static/js/{InputInstructions.B7xrWTG0.js → InputInstructions.vmQUtJfB.js} +1 -1
  14. streamlit/static/static/js/{ProgressBar.CBgJiTH-.js → ProgressBar.CrEUq34O.js} +1 -1
  15. streamlit/static/static/js/{RenderInPortalIfExists.US28tQOn.js → RenderInPortalIfExists.uSIUxO87.js} +1 -1
  16. streamlit/static/static/js/{Toolbar.CAOt-xaL.js → Toolbar.DDSvrD0E.js} +1 -1
  17. streamlit/static/static/js/{base-input.CauNaJqr.js → base-input.JpWAqJ0N.js} +1 -1
  18. streamlit/static/static/js/{checkbox.ChzWCtre.js → checkbox.CWR-VT1j.js} +1 -1
  19. streamlit/static/static/js/{createSuper.D_39RJB6.js → createSuper.HcF5WnqF.js} +1 -1
  20. streamlit/static/static/js/{data-grid-overlay-editor.rIelkOVS.js → data-grid-overlay-editor.DminHUYw.js} +1 -1
  21. streamlit/static/static/js/{downloader.Dz5I28nG.js → downloader._SGckIiV.js} +1 -1
  22. streamlit/static/static/js/{es6.DwnEjMMn.js → es6.b4hv8be8.js} +2 -2
  23. streamlit/static/static/js/{iframeResizer.contentWindow.BRiRifwd.js → iframeResizer.contentWindow.BqakL47H.js} +1 -1
  24. streamlit/static/static/js/{index.DkKZlAsv.js → index.3M6TVRo2.js} +1 -1
  25. streamlit/static/static/js/{index.pvQjxG7y.js → index.B4fN2DMS.js} +1 -1
  26. streamlit/static/static/js/{index.CM12P2T1.js → index.B5U4WHdm.js} +2 -2
  27. streamlit/static/static/js/{index.BE6MTF-B.js → index.BFysNJg1.js} +3 -3
  28. streamlit/static/static/js/{index.Dj91melR.js → index.BL2LjKzZ.js} +1 -1
  29. streamlit/static/static/js/{index.YNWoT4uW.js → index.BLVbwbeW.js} +1 -1
  30. streamlit/static/static/js/{index.DWFLx6Tc.js → index.BV5mA8ty.js} +5 -5
  31. streamlit/static/static/js/{index.fP6rBxlc.js → index.BVLYWr2w.js} +1 -1
  32. streamlit/static/static/js/index.BWfK_Obw.js +203 -0
  33. streamlit/static/static/js/{index.CO3dZWKG.js → index.BXSIv1Yj.js} +1 -1
  34. streamlit/static/static/js/index.BgLbohq1.js +3855 -0
  35. streamlit/static/static/js/{index.DYUhWSq6.js → index.BhVVEe37.js} +1 -1
  36. streamlit/static/static/js/{index.CBre8Aui.js → index.BkDOb1MH.js} +1 -1
  37. streamlit/static/static/js/{index.D9rv1PQ0.js → index.C-MV6qmR.js} +1 -1
  38. streamlit/static/static/js/{index.DkgVNhWs.js → index.C2ti2ux-.js} +1 -1
  39. streamlit/static/static/js/{index.CoUzNoRf.js → index.C59Ya3CM.js} +1 -1
  40. streamlit/static/static/js/{index.CAHGh74D.js → index.C7GAgXnu.js} +1 -1
  41. streamlit/static/static/js/index.C88pvD_q.js +6 -0
  42. streamlit/static/static/js/{index.C_C365T5.js → index.CA_X6A4G.js} +1 -1
  43. streamlit/static/static/js/{index.CUz1_nAm.js → index.CAxOUw_O.js} +1 -1
  44. streamlit/static/static/js/{index.Db3jGJxa.js → index.Cb8hCZyO.js} +1 -1
  45. streamlit/static/static/js/{index.aL_kqyvR.js → index.CpN57BL8.js} +1 -1
  46. streamlit/static/static/js/{index.Dzp8iBkF.js → index.CpyxO9i-.js} +1 -1
  47. streamlit/static/static/js/{index.DfNAkKAr.js → index.CqU47T61.js} +114 -114
  48. streamlit/static/static/js/{index.ORHz8Y8P.js → index.Cr9buiVv.js} +8 -8
  49. streamlit/static/static/js/{index.CmYiLKNX.js → index.Cs86Rh1I.js} +1 -1
  50. streamlit/static/static/js/{index.DKuQg2D4.js → index.D4Nzp4K3.js} +1 -1
  51. streamlit/static/static/js/{index.wxpL02VY.js → index.D4vb0WQf.js} +1 -1
  52. streamlit/static/static/js/{index.DJvwxFLn.js → index.D6kHe3jN.js} +1 -1
  53. streamlit/static/static/js/{index.BWeYb5ES.js → index.D7yQTfz7.js} +1 -1
  54. streamlit/static/static/js/{index.Ct7MPsA3.js → index.Dev73dEg.js} +1 -1
  55. streamlit/static/static/js/{index.BrAW6bFJ.js → index.Dl9vrclR.js} +1 -1
  56. streamlit/static/static/js/{index.DgNQKEeQ.js → index.Dph-QYbt.js} +1 -1
  57. streamlit/static/static/js/{index.V3Vj2d9m.js → index.E5dz2muJ.js} +1 -1
  58. streamlit/static/static/js/{index.DIeegLbv.js → index.J3DKPewF.js} +1 -1
  59. streamlit/static/static/js/index.SYnyLAtV.js +12 -0
  60. streamlit/static/static/js/{index.D1K6NCBQ.js → index._Q_M1OIX.js} +1 -1
  61. streamlit/static/static/js/{index.BUdhIGhT.js → index.cVjFgmUG.js} +1 -1
  62. streamlit/static/static/js/{input.D_dn5-2t.js → input.Dfd0mQ2M.js} +1 -1
  63. streamlit/static/static/js/{memory.pnMTtWQR.js → memory.DFfwDfdX.js} +1 -1
  64. streamlit/static/static/js/{mergeWith.CRrYodeI.js → mergeWith.B3E2fSKt.js} +1 -1
  65. streamlit/static/static/js/{number-overlay-editor.C65GBS2P.js → number-overlay-editor.DG8NE_c_.js} +1 -1
  66. streamlit/static/static/js/{possibleConstructorReturn.BnQk7lq_.js → possibleConstructorReturn.CJ1f9cWL.js} +1 -1
  67. streamlit/static/static/js/{sandbox.CrxXt1li.js → sandbox.-T0hcQrx.js} +1 -1
  68. streamlit/static/static/js/{textarea.DiFyO5JY.js → textarea.CCPaMMRd.js} +1 -1
  69. streamlit/static/static/js/{timepicker.B1Y7LIk4.js → timepicker.BrQl1vN-.js} +2 -2
  70. streamlit/static/static/js/{toConsumableArray.BWpBUK-j.js → toConsumableArray.UwlRgC7o.js} +1 -1
  71. streamlit/static/static/js/{uniqueId.7ecIUkUs.js → uniqueId.C5B1A1oI.js} +1 -1
  72. streamlit/static/static/js/{useBasicWidgetState.deG0KPm0.js → useBasicWidgetState.Czrslgva.js} +1 -1
  73. streamlit/static/static/js/{useOnInputChange.CQ7sD7CO.js → useOnInputChange.Dw8zLgsb.js} +1 -1
  74. streamlit/static/static/js/{withFullScreenWrapper.D0wnBu3k.js → withFullScreenWrapper.t6HIFyK0.js} +1 -1
  75. streamlit/user_info.py +3 -0
  76. {streamlit_nightly-1.42.3.dev20250227.dist-info → streamlit_nightly-1.42.3.dev20250301.dist-info}/METADATA +1 -1
  77. {streamlit_nightly-1.42.3.dev20250227.dist-info → streamlit_nightly-1.42.3.dev20250301.dist-info}/RECORD +81 -81
  78. streamlit/static/static/js/index.Bb4OB39A.js +0 -12
  79. streamlit/static/static/js/index.D2xM-XzG.js +0 -4074
  80. streamlit/static/static/js/index.DW_MHI2K.js +0 -6
  81. streamlit/static/static/js/index.LL2DLZZA.js +0 -201
  82. {streamlit_nightly-1.42.3.dev20250227.data → streamlit_nightly-1.42.3.dev20250301.data}/scripts/streamlit.cmd +0 -0
  83. {streamlit_nightly-1.42.3.dev20250227.dist-info → streamlit_nightly-1.42.3.dev20250301.dist-info}/WHEEL +0 -0
  84. {streamlit_nightly-1.42.3.dev20250227.dist-info → streamlit_nightly-1.42.3.dev20250301.dist-info}/entry_points.txt +0 -0
  85. {streamlit_nightly-1.42.3.dev20250227.dist-info → streamlit_nightly-1.42.3.dev20250301.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{n as s,k as i,r as m,j as e}from"./index.DfNAkKAr.js";import{P as c,R as l}from"./RenderInPortalIfExists.US28tQOn.js";const p=""+new URL("../media/flake-0.DgWaVvm5.png",import.meta.url).href,d=""+new URL("../media/flake-1.B2r5AHMK.png",import.meta.url).href,f=""+new URL("../media/flake-2.BnWSExPC.png",import.meta.url).href,o=150,S=150,g=10,E=90,u=4e3,n=(t,a=0)=>Math.random()*(t-a)+a,w=()=>i(`from{transform:translateY(0)
1
+ import{n as s,k as i,r as m,j as e}from"./index.CqU47T61.js";import{P as c,R as l}from"./RenderInPortalIfExists.uSIUxO87.js";const p=""+new URL("../media/flake-0.DgWaVvm5.png",import.meta.url).href,d=""+new URL("../media/flake-1.B2r5AHMK.png",import.meta.url).href,f=""+new URL("../media/flake-2.BnWSExPC.png",import.meta.url).href,o=150,S=150,g=10,E=90,u=4e3,n=(t,a=0)=>Math.random()*(t-a)+a,w=()=>i(`from{transform:translateY(0)
2
2
  rotateX(`,n(360),`deg)
3
3
  rotateY(`,n(360),`deg)
4
4
  rotateZ(`,n(360),"deg);}to{transform:translateY(calc(100vh + ",o,`px))
@@ -1,2 +1,2 @@
1
- import{bw as Z,bx as J,r as f,by as Q,y as Y,bz as s,j as v,B as ee,bs as te,bA as re,bt as ne,ba as oe,bB as ie,bu as ae,bq as ue,b5 as P,b4 as W,b7 as le}from"./index.DfNAkKAr.js";import{a as ce}from"./useBasicWidgetState.deG0KPm0.js";import"./FormClearHelper.Drd1fMJc.js";var se={secondary:"secondary"},G={default:"default"},fe={default:"default"},k=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 j(e){"@babel/helpers - typeof";return j=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},j(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 me(e)||he(e,t)||be(e,t)||ye()}function ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{bw as Z,bx as J,r as f,by as Q,y as Y,bz as s,j as v,B as ee,bs as te,bA as re,bt as ne,ba as oe,bB as ie,bu as ae,bq as ue,b5 as P,b4 as W,b7 as le}from"./index.CqU47T61.js";import{a as ce}from"./useBasicWidgetState.Czrslgva.js";import"./FormClearHelper.B_9Ez6vr.js";var se={secondary:"secondary"},G={default:"default"},fe={default:"default"},k=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 j(e){"@babel/helpers - typeof";return j=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},j(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 me(e)||he(e,t)||be(e,t)||ye()}function ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
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 he(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 me(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 Se(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 ve(e,t,r){return t&&Se(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 Ee(e){var t=we();return function(){var n=B(e),o;if(t){var i=B(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return _e(this,o)}}function _e(e,t){if(t&&(j(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 B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},B(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 F=function(e){Oe(r,e);var t=Ee(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 ve(r,[{key:"render",value:function(){var o=this,i=this.props,a=i.overrides,p=a===void 0?{}:a,c=i.mode,C=c===void 0?k.checkbox:c,d=i.children,y=i.selected,h=i.disabled,l=i.onClick,_=i.kind,m=i.shape,w=i.size,A=J(p.Root,z),O=de(A,2),E=O[0],L=O[1],H=this.props["aria-label"]||this.props.ariaLabel,g=C===k.radio,V=f.Children.count(d);return f.createElement(Q.Consumer,null,function(q){return f.createElement(E,M({"aria-label":H||q.buttongroup.ariaLabel,"data-baseweb":"button-group",role:g?"radiogroup":"group",$shape:m,$length:d.length},L),f.Children.map(d,function(b,R){if(!f.isValidElement(b))return null;var I=b.props.isSelected?b.props.isSelected:Le(y,R);return g&&(o.childRefs[R]=f.createRef()),f.cloneElement(b,{disabled:h||b.props.disabled,isSelected:I,ref:g?o.childRefs[R]:void 0,tabIndex:!g||I||g&&(!y||y===-1)&&R===0?0:-1,onKeyDown:function(u){if(g){var S=Number(y)?Number(y):0;if(u.key==="ArrowUp"||u.key==="ArrowLeft"){u.preventDefault&&u.preventDefault();var T=S-1<0?V-1:S-1;l&&l(u,T),o.childRefs[T].current&&o.childRefs[T].current.focus()}if(u.key==="ArrowDown"||u.key==="ArrowRight"){u.preventDefault&&u.preventDefault();var D=S+1>V-1?0:S+1;l&&l(u,D),o.childRefs[D].current&&o.childRefs[D].current.focus()}}},kind:_,onClick:function(u){h||(b.props.onClick&&b.props.onClick(u),l&&l(u,R))},shape:m,size:w,overrides:pe({BaseButton:{style:function(u){var S=u.$theme;return d.length===1?{}:m!==G.default?{marginLeft:S.sizing.scale100,marginRight:S.sizing.scale100}:{marginLeft:"0.5px",marginRight:"0.5px"}},props:{"aria-checked":I,role:g?"radio":"checkbox"}}},b.props.overrides)})}))})}}]),r}(f.Component);N(F,"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 Be(e,t,r){const n=r===s.Style.PILLS?P.PILLS:r===s.Style.BORDERLESS?P.BORDERLESS_ICON:P.SEGMENTED_CONTROL,o=r===s.Style.BORDERLESS?W.XSMALL:W.MEDIUM,i=n===P.PILLS||n===P.SEGMENTED_CONTROL,a=r===s.Style.BORDERLESS?"lg":"base";return{element:v(le,{icon:t,label:e,iconSize:a,useSmallerFont:i}),kind:n,size:o}}function Ae(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 De(e,t,r,n,o,i){const a=Ae(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:h,kind:l,size:_}=Be(p??"",c??void 0,i),m=Ie(!!(a&&!e.selectedContent&&!e.selectedContentIcon),l);return v(ue,{...d,size:_,kind:m,children:h})})}function je(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:C,labelVisibility:d,help:y}=r,h=Y(),[l,_]=ce({getStateFromWidgetMgr:je,getDefaultStateFromProto:Me,getCurrStateFromProto:$e,updateWidgetMgrState:ke,element:r,widgetMgr:o,fragmentId:n}),m=(O,E)=>{const L=Pe(i,E,l);_({value:L,fromUi:!0})};let w;i===s.ClickMode.SINGLE_SELECT?w=k.radio:i===s.ClickMode.MULTI_SELECT&&(w=k.checkbox);const A=f.useMemo(()=>a.map((O,E)=>{const L=De(O,E,p,i,l,c);return v(L,{},`${O.content}-${E}`)}),[i,a,p,c,l]);return ee("div",{className:"stButtonGroup","data-testid":"stButtonGroup",children:[v(ae,{label:C,disabled:t,labelVisibility:te((d==null?void 0:d.value)??ie.LabelVisibilityOptions.COLLAPSED),children:y&&v(re,{children:v(ne,{content:y,placement:oe.TOP})})}),v(F,{disabled:t,mode:w,onClick:m,selected:i===s.ClickMode.MULTI_SELECT?l:Ce(l),overrides:{Root:{style:f.useCallback(()=>Te(c,h.spacing),[c,h.spacing])}},children:A})]})}const Ue=f.memo(Ge);export{Ue as default};