streamlit-nightly 1.45.2.dev20250514__py3-none-any.whl → 1.45.2.dev20250515__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/connections/sql_connection.py +10 -7
- streamlit/connections/util.py +2 -2
- streamlit/elements/lib/options_selector_utils.py +10 -2
- streamlit/elements/markdown.py +1 -1
- streamlit/elements/plotly_chart.py +7 -7
- streamlit/elements/vega_charts.py +7 -7
- streamlit/elements/widgets/file_uploader.py +2 -2
- streamlit/elements/widgets/number_input.py +3 -3
- streamlit/elements/widgets/radio.py +21 -0
- streamlit/elements/widgets/select_slider.py +1 -13
- streamlit/elements/widgets/selectbox.py +22 -0
- streamlit/elements/widgets/slider.py +35 -9
- streamlit/runtime/caching/cache_data_api.py +18 -14
- streamlit/runtime/connection_factory.py +1 -1
- streamlit/runtime/scriptrunner/script_runner.py +1 -2
- streamlit/runtime/secrets.py +10 -8
- streamlit/runtime/state/query_params_proxy.py +14 -12
- streamlit/runtime/state/session_state.py +2 -2
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{ErrorOutline.esm.DbGVRvJi.js → ErrorOutline.esm.DZL6W-d3.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.Dsazfko3.js → FileDownload.esm.BTdAw4zC.js} +1 -1
- streamlit/static/static/js/{FileHelper.MycXbml-.js → FileHelper.Beb1sf3m.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.BBCnWP4b.js → FormClearHelper.BJursVXh.js} +1 -1
- streamlit/static/static/js/{Hooks.Cogxcj3O.js → Hooks.C9-XVXXu.js} +1 -1
- streamlit/static/static/js/{InputInstructions.DmFmv5Ss.js → InputInstructions.DFH2wY93.js} +1 -1
- streamlit/static/static/js/{ProgressBar.CL8D7fKU.js → ProgressBar.6M24tsRk.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.BIF2_x-k.js → RenderInPortalIfExists.BjKKk4eZ.js} +1 -1
- streamlit/static/static/js/{Toolbar.BiePqUs0.js → Toolbar.AcZDbsfk.js} +1 -1
- streamlit/static/static/js/{base-input.9-IewVJN.js → base-input.DbRAJnqp.js} +1 -1
- streamlit/static/static/js/{checkbox.CvxVkFoK.js → checkbox.0qSLqyAl.js} +1 -1
- streamlit/static/static/js/{createSuper.CcYwpbOm.js → createSuper.BVzb0XXY.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.DVakjLUQ.js → data-grid-overlay-editor.veQYOXpb.js} +1 -1
- streamlit/static/static/js/{downloader.DUDYpW4X.js → downloader.C_vYtX1r.js} +1 -1
- streamlit/static/static/js/{es6.Dd8C3gJG.js → es6.DlS5aK2H.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.ElqrcVSG.js → iframeResizer.contentWindow.DYLRAnnn.js} +1 -1
- streamlit/static/static/js/{index.y8UOtxmw.js → index.7-HGyLk8.js} +1 -1
- streamlit/static/static/js/{index.DiE_wY_P.js → index.B4jkkFu1.js} +1 -1
- streamlit/static/static/js/{index.CwLlrvyN.js → index.B7lVUFiI.js} +1 -1
- streamlit/static/static/js/{index.C44ecW4y.js → index.BA7OvX6X.js} +1 -1
- streamlit/static/static/js/{index.CkOK3vMg.js → index.BNNdZZ73.js} +1 -1
- streamlit/static/static/js/{index.D8g5_NeN.js → index.Bs42fx1x.js} +1 -1
- streamlit/static/static/js/{index.D5Y8GQ-0.js → index.C-SVYz-x.js} +1 -1
- streamlit/static/static/js/{index.Ogd9LUng.js → index.C8AfWtJ-.js} +1 -1
- streamlit/static/static/js/{index.DWBlm6kP.js → index.CEN6fgTl.js} +1 -1
- streamlit/static/static/js/{index.DfYxhBCm.js → index.COQpmMRs.js} +1 -1
- streamlit/static/static/js/{index.BkpDVBQw.js → index.CVpOBIPc.js} +1 -1
- streamlit/static/static/js/{index.BRTdJWEL.js → index.CZ_7kbSY.js} +1 -1
- streamlit/static/static/js/{index.DWL3vnFa.js → index.CdJve-c-.js} +1 -1
- streamlit/static/static/js/{index.8U8I-dVE.js → index.ChCdyltc.js} +1 -1
- streamlit/static/static/js/{index.BANNX-Et.js → index.CnuHgtvi.js} +1 -1
- streamlit/static/static/js/{index.PYQDVW05.js → index.CpBBbkiT.js} +1 -1
- streamlit/static/static/js/{index.B5gxNAgv.js → index.CqJn4aNa.js} +1 -1
- streamlit/static/static/js/{index.Dxf51cqQ.js → index.CsMycx_g.js} +1 -1
- streamlit/static/static/js/{index.CDxF0FlW.js → index.CzjlNese.js} +1 -1
- streamlit/static/static/js/{index.Bgid2lLN.js → index.D6vjCnF6.js} +1 -1
- streamlit/static/static/js/{index.Bud-F2Rk.js → index.DI4lQWQ9.js} +1 -1
- streamlit/static/static/js/{index.C-wDYZmi.js → index.DOZrTqtO.js} +1 -1
- streamlit/static/static/js/{index.DgQ-i_4o.js → index.DQoQce-F.js} +10 -10
- streamlit/static/static/js/{index.rR2rxOdw.js → index.DU1Hm4Vy.js} +1 -1
- streamlit/static/static/js/{index.DrVpZAT_.js → index.D_NeaxbH.js} +1 -1
- streamlit/static/static/js/{index.3TsDLcVz.js → index.DawYHwts.js} +1 -1
- streamlit/static/static/js/{index.DNeEyPk6.js → index.DgKQMQQ-.js} +1 -1
- streamlit/static/static/js/{index.Chn8rXFO.js → index.Dh9pGVkc.js} +1 -1
- streamlit/static/static/js/{index.CssifhIa.js → index.DvaGxMeZ.js} +1 -1
- streamlit/static/static/js/{index.CM8qhnIu.js → index.Dx0WWCBs.js} +5 -5
- streamlit/static/static/js/{index.DX_Td1Hq.js → index.KEBclOiy.js} +1 -1
- streamlit/static/static/js/{index.BYGvkzYg.js → index.SG-0kuQk.js} +1 -1
- streamlit/static/static/js/{index.CtEWZzBM.js → index.TZA6glxs.js} +1 -1
- streamlit/static/static/js/{index.uT7_kc4D.js → index.bbxNeuVP.js} +1 -1
- streamlit/static/static/js/{index.DK1C5mv_.js → index.pKO-QKd7.js} +1 -1
- streamlit/static/static/js/{index.QqgppQA_.js → index.qHLLYZv1.js} +1 -1
- streamlit/static/static/js/{index.D0fj09K-.js → index.vXLfHXtB.js} +1 -1
- streamlit/static/static/js/{input.D1uIuNvR.js → input.4UlvIkvl.js} +1 -1
- streamlit/static/static/js/{memory.C_YLF4Fx.js → memory.CjAKg4CS.js} +1 -1
- streamlit/static/static/js/{mergeWith.BrhEAUIQ.js → mergeWith.Bnn9a11J.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.Cl4hS5U2.js → number-overlay-editor.BGyA8GbD.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.BizCfnoE.js → possibleConstructorReturn.Cu-FTKlF.js} +1 -1
- streamlit/static/static/js/{sandbox.BYlf4D-n.js → sandbox.D4Wf-7jE.js} +1 -1
- streamlit/static/static/js/{textarea.BvMrgzVs.js → textarea.B0_fGlpz.js} +1 -1
- streamlit/static/static/js/{timepicker.8sMF8VpM.js → timepicker._IYyhmJr.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.Cl96Bc5x.js → toConsumableArray.BRgjiMf8.js} +1 -1
- streamlit/static/static/js/{uniqueId.BoXr82qs.js → uniqueId.DWtxcoYp.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.DYpB4KjS.js → useBasicWidgetState.CJa4vrfr.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.D17AAeVI.js → useOnInputChange.DXDP3ow3.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.Lq8QUQxx.js → withFullScreenWrapper.BYUNeZvy.js} +1 -1
- streamlit/string_util.py +1 -5
- streamlit/type_util.py +1 -1
- streamlit/vendor/pympler/asizeof.py +2 -1
- streamlit/watcher/local_sources_watcher.py +3 -3
- streamlit/web/server/oidc_mixin.py +2 -2
- {streamlit_nightly-1.45.2.dev20250514.dist-info → streamlit_nightly-1.45.2.dev20250515.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.45.2.dev20250514.dist-info → streamlit_nightly-1.45.2.dev20250515.dist-info}/RECORD +96 -96
- {streamlit_nightly-1.45.2.dev20250514.data → streamlit_nightly-1.45.2.dev20250515.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.45.2.dev20250514.dist-info → streamlit_nightly-1.45.2.dev20250515.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.45.2.dev20250514.dist-info → streamlit_nightly-1.45.2.dev20250515.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.45.2.dev20250514.dist-info → streamlit_nightly-1.45.2.dev20250515.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{r as l,b0 as n,j as e,b1 as d,bm as u,a$ as c,b2 as B,b3 as m}from"./index.
|
1
|
+
import{r as l,b0 as n,j as e,b1 as d,bm as u,a$ as c,b2 as B,b3 as m}from"./index.DQoQce-F.js";function b(i){const{disabled:o,element:t,widgetMgr:s,fragmentId:r}=i;let a=n.SECONDARY;return t.type==="primary"?a=n.PRIMARY:t.type==="tertiary"&&(a=n.TERTIARY),e(m,{className:"stButton","data-testid":"stButton",children:e(d,{help:t.help,containerWidth:t.useContainerWidth,children:e(u,{kind:a,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(b);export{p as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var jU=Object.defineProperty;var $U=(r,e,t)=>e in r?jU(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var V=(r,e,t)=>$U(r,typeof e!="symbol"?e+"":e,t);import{r as Bt,at as yr,aT as dt,g as ih,aU as Tu,_ as NO,n as kO,B as UO,aD as zO,U as Q1,aV as lB,aA as WU,j as Df,F as JU,aE as XU,z as KU,C as uB,aW as YU,aX as fB}from"./index.
|
1
|
+
var jU=Object.defineProperty;var $U=(r,e,t)=>e in r?jU(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var V=(r,e,t)=>$U(r,typeof e!="symbol"?e+"":e,t);import{r as Bt,at as yr,aT as dt,g as ih,aU as Tu,_ as NO,n as kO,B as UO,aD as zO,U as Q1,aV as lB,aA as WU,j as Df,F as JU,aE as XU,z as KU,C as uB,aW as YU,aX as fB}from"./index.DQoQce-F.js";import{_ as ls,a as qU,C as ZU}from"./toConsumableArray.BRgjiMf8.js";import{a as Wu,b as Ju,_ as qx,c as dA,d as Zx}from"./possibleConstructorReturn.Cu-FTKlF.js";import{a as QU,T as e5}from"./Toolbar.AcZDbsfk.js";import{E as GO,w as t5}from"./withFullScreenWrapper.BYUNeZvy.js";import{u as r5}from"./useBasicWidgetState.CJa4vrfr.js";import{u as n5,s as i5}from"./threshold.DjX0wlsa.js";import"./FormClearHelper.BJursVXh.js";import"./value.CgPGBV_l.js";function s5(r,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in r)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function Hm(r,e){if(!r)throw new Error(e||"loader assertion failed.")}const Qx=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),hB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);hB&&parseFloat(hB[1]);const Pu=globalThis,Ea=globalThis.process||{},o5=globalThis.navigator||{};function VO(r){var n,i;if(typeof window<"u"&&((n=window.process)==null?void 0:n.type)==="renderer"||typeof process<"u"&&((i=process.versions)!=null&&i.electron))return!0;const t=typeof navigator<"u"&&navigator.userAgent;return!!(t&&t.indexOf("Electron")>=0)}function rl(){return!(typeof process=="object"&&String(process)==="[object process]"&&!(process!=null&&process.browser))||VO()}function a5(r){return rl()?VO()?"Electron":(o5.userAgent||"").indexOf("Edge")>-1?"Edge":globalThis.chrome?"Chrome":globalThis.safari?"Safari":globalThis.mozInnerScreenX?"Firefox":"Unknown":"Node"}const iy="4.1.0";function c5(r){try{const e=window[r],t="__storage_test__";return e.setItem(t,t),e.removeItem(t),e}catch{return null}}let l5=class{constructor(e,t,n="sessionStorage"){this.storage=c5(n),this.id=e,this.config=t,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){const t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let e={};if(this.storage){const t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}};function u5(r){let e;return r<10?e=`${r.toFixed(2)}ms`:r<100?e=`${r.toFixed(1)}ms`:r<1e3?e=`${r.toFixed(0)}ms`:e=`${(r/1e3).toFixed(2)}s`,e}function f5(r,e=8){const t=Math.max(e-r.length,0);return`${" ".repeat(t)}${r}`}var jm;(function(r){r[r.BLACK=30]="BLACK",r[r.RED=31]="RED",r[r.GREEN=32]="GREEN",r[r.YELLOW=33]="YELLOW",r[r.BLUE=34]="BLUE",r[r.MAGENTA=35]="MAGENTA",r[r.CYAN=36]="CYAN",r[r.WHITE=37]="WHITE",r[r.BRIGHT_BLACK=90]="BRIGHT_BLACK",r[r.BRIGHT_RED=91]="BRIGHT_RED",r[r.BRIGHT_GREEN=92]="BRIGHT_GREEN",r[r.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",r[r.BRIGHT_BLUE=94]="BRIGHT_BLUE",r[r.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",r[r.BRIGHT_CYAN=96]="BRIGHT_CYAN",r[r.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(jm||(jm={}));const h5=10;function dB(r){return typeof r!="string"?r:(r=r.toUpperCase(),jm[r]||jm.WHITE)}function d5(r,e,t){return!rl&&typeof r=="string"&&(e&&(r=`\x1B[${dB(e)}m${r}\x1B[39m`),t&&(r=`\x1B[${dB(t)+h5}m${r}\x1B[49m`)),r}function A5(r,e=["constructor"]){const t=Object.getPrototypeOf(r),n=Object.getOwnPropertyNames(t),i=r;for(const o of n){const s=i[o];typeof s=="function"&&(e.find(c=>o===c)||(i[o]=s.bind(r)))}}function ew(r,e){if(!r)throw new Error("Assertion failed")}function id(){var e,t,n;let r;if(rl()&&Pu.performance)r=(t=(e=Pu==null?void 0:Pu.performance)==null?void 0:e.now)==null?void 0:t.call(e);else if("hrtime"in Ea){const i=(n=Ea==null?void 0:Ea.hrtime)==null?void 0:n.call(Ea);r=i[0]*1e3+i[1]/1e6}else r=Date.now();return r}const sd={debug:rl()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},p5={enabled:!0,level:0};function od(){}const AB={},pB={once:!0};let HO=class{constructor({id:e}={id:""}){this.VERSION=iy,this._startTs=id(),this._deltaTs=id(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new l5(`__probe-${this.id}__`,p5),this.timeStamp(`${this.id} started`),A5(this),Object.seal(this)}set level(e){this.setLevel(e)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((id()-this._startTs).toPrecision(10))}getDelta(){return Number((id()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._storage.setConfiguration({enabled:e}),this}setLevel(e){return this._storage.setConfiguration({level:e}),this}get(e){return this._storage.config[e]}set(e,t){this._storage.setConfiguration({[e]:t})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,t){if(!e)throw new Error(t||"Assertion failed")}warn(e){return this._getLogFunction(0,e,sd.warn,arguments,pB)}error(e){return this._getLogFunction(0,e,sd.error,arguments)}deprecated(e,t){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${t}\` instead`)}removed(e,t){return this.error(`\`${e}\` has been removed. Use \`${t}\` instead`)}probe(e,t){return this._getLogFunction(e,t,sd.log,arguments,{time:!0,once:!0})}log(e,t){return this._getLogFunction(e,t,sd.debug,arguments)}info(e,t){return this._getLogFunction(e,t,console.info,arguments)}once(e,t){return this._getLogFunction(e,t,sd.debug||sd.info,arguments,pB)}table(e,t,n){return t?this._getLogFunction(e,t,console.table||od,n&&[n],{tag:m5(t)}):od}time(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}timeEnd(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}timeStamp(e,t){return this._getLogFunction(e,t,console.timeStamp||od)}group(e,t,n={collapsed:!1}){const i=gB({logLevel:e,message:t,opts:n}),{collapsed:o}=n;return i.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(i)}groupCollapsed(e,t,n={}){return this.group(e,t,Object.assign({},n,{collapsed:!0}))}groupEnd(e){return this._getLogFunction(e,"",console.groupEnd||od)}withGroup(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&this.getLevel()>=jO(e)}_getLogFunction(e,t,n,i,o){if(this._shouldLog(e)){o=gB({logLevel:e,message:t,args:i,opts:o}),n=n||o.method,ew(n),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=id();const s=o.tag||o.message;if(o.once&&s)if(!AB[s])AB[s]=id();else return od;return t=g5(this.id,o.message,o),n.bind(console,t,...o.args)}return od}};HO.VERSION=iy;function jO(r){if(!r)return 0;let e;switch(typeof r){case"number":e=r;break;case"object":e=r.logLevel||r.priority||0;break;default:return 0}return ew(Number.isFinite(e)&&e>=0),e}function gB(r){const{logLevel:e,message:t}=r;r.logLevel=jO(e);const n=r.args?Array.from(r.args):[];for(;n.length&&n.shift()!==t;);switch(typeof e){case"string":case"function":t!==void 0&&n.unshift(t),r.message=e;break;case"object":Object.assign(r,e);break}typeof r.message=="function"&&(r.message=r.message());const i=typeof r.message;return ew(i==="string"||i==="object"),Object.assign(r,{args:n},r.opts)}function g5(r,e,t){if(typeof e=="string"){const n=t.time?f5(u5(t.total)):"";e=t.time?`${r}: ${n} ${e}`:`${r}: ${e}`,e=d5(e,t.color,t.background)}return e}function m5(r){for(const e in r)for(const t in r[e])return t||"untitled";return"empty"}function _5(r,e){return $O(r||{},e)}function $O(r,e,t=0){if(t>3)return e;const n={...r};for(const[i,o]of Object.entries(e))o&&typeof o=="object"&&!Array.isArray(o)?n[i]=$O(n[i]||{},e[i],t+1):n[i]=e[i];return n}const y5="latest";function v5(){var r;return(r=globalThis._loadersgl_)!=null&&r.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.2.4"),globalThis._loadersgl_.version}const b5=v5();function ku(r,e){if(!r)throw new Error(e||"loaders.gl assertion failed.")}const $f=typeof process!="object"||String(process)!=="[object process]"||process.browser,x5=typeof window<"u"&&typeof window.orientation<"u",mB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);mB&&parseFloat(mB[1]);let w5=class{constructor(e,t){V(this,"name");V(this,"workerThread");V(this,"isRunning",!0);V(this,"result");V(this,"_resolve",()=>{});V(this,"_reject",()=>{});this.name=e,this.workerThread=t,this.result=new Promise((n,i)=>{this._resolve=n,this._reject=i})}postMessage(e,t){this.workerThread.postMessage({source:"loaders.gl",type:e,payload:t})}done(e){ku(this.isRunning),this.isRunning=!1,this._resolve(e)}error(e){ku(this.isRunning),this.isRunning=!1,this._reject(e)}},Lv=class{terminate(){}};const Nv=new Map;function C5(r){ku(r.source&&!r.url||!r.source&&r.url);let e=Nv.get(r.source||r.url);return e||(r.url&&(e=E5(r.url),Nv.set(r.url,e)),r.source&&(e=WO(r.source),Nv.set(r.source,e))),ku(e),e}function E5(r){if(!r.startsWith("http"))return r;const e=T5(r);return WO(e)}function WO(r){const e=new Blob([r],{type:"application/javascript"});return URL.createObjectURL(e)}function T5(r){return`try {
|
2
2
|
importScripts('${r}');
|
3
3
|
} catch (error) {
|
4
4
|
console.error(error);
|
@@ -1 +1 @@
|
|
1
|
-
import{r as i,j as c,bo as g,bM as b}from"./index.
|
1
|
+
import{r as i,j as c,bo as g,bM as b}from"./index.DQoQce-F.js";import{a as m}from"./useBasicWidgetState.CJa4vrfr.js";import"./FormClearHelper.BJursVXh.js";const f=(t,e)=>t.getStringValue(e),p=t=>t.default??null,C=t=>t.value??null,d=(t,e,o,r)=>{e.setStringValue(t,o.value,{fromUi:o.fromUi},r)},S=({element:t,disabled:e,widgetMgr:o,fragmentId:r})=>{var l;const[s,a]=m({getStateFromWidgetMgr:f,getDefaultStateFromProto:p,getCurrStateFromProto:C,updateWidgetMgrState:d,element:t,widgetMgr:o,fragmentId:r}),u=i.useCallback(n=>{a({value:n,fromUi:!0})},[a]);return c(b,{label:t.label,labelVisibility:g((l=t.labelVisibility)==null?void 0:l.value),help:t.help,onChange:u,disabled:e,value:s})},k=i.memo(S);export{k as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{n as l,a_ as v,J as u,a$ as n,r as b,b0 as s,j as i,b1 as B,b2 as k,b3 as S}from"./index.
|
1
|
+
import{n as l,a_ as v,J as u,a$ as n,r as b,b0 as s,j as i,b1 as B,b2 as k,b3 as S}from"./index.DQoQce-F.js";function x(o,r){switch(o){case n.XSMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.sm}`,fontSize:r.fontSizes.sm};case n.SMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.md}`};case n.LARGE:return{padding:`${r.spacing.md} ${r.spacing.md}`};default:return{padding:`${r.spacing.xs} ${r.spacing.md}`}}}const e=l("a",{target:"e2m15hl0"})(({containerWidth:o,size:r,theme:a})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:a.fontWeights.normal,padding:`${a.spacing.xs} ${a.spacing.md}`,borderRadius:a.radii.default,minHeight:a.sizes.minElementHeight,margin:0,lineHeight:a.lineHeights.base,color:a.colors.primary,textDecoration:"none",width:o?"100%":"auto",userSelect:"none","&:visited":{color:a.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${u(a.colors.primary,.5)}`},"&:hover":{textDecoration:"none"},"&:active":{textDecoration:"none"},...x(r,a)})),$=l(e,{target:"e2m15hl1"})(({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"}})),L=l(e,{target:"e2m15hl2"})(({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"}})),w=l(e,{target:"e2m15hl3"})(({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 ${u(o.colors.primary,.5)}`},"&[disabled], &[disabled]:hover, &[disabled]:active":{backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}}));function T({kind:o,size:r,disabled:a,containerWidth:t,children:c,autoFocus:p,href:g,rel:y,target:f,onClick:C}){let d=$;return o===s.SECONDARY?d=L:o===s.TERTIARY&&(d=w),i(d,{kind:o,size:r||n.MEDIUM,containerWidth:t||!1,disabled:a||!1,autoFocus:p||!1,href:g,target:f,rel:y,onClick:C,tabIndex:a?-1:0,"data-testid":`stBaseLinkButton-${o}`,children:c})}const z=b.memo(T);function R(o){const{element:r}=o;let a=s.SECONDARY;r.type==="primary"?a=s.PRIMARY:r.type==="tertiary"&&(a=s.TERTIARY);const t=c=>{r.disabled&&c.preventDefault()};return i(S,{className:"stLinkButton","data-testid":"stLinkButton",children:i(B,{help:r.help,containerWidth:r.useContainerWidth,children:i(z,{kind:a,size:n.SMALL,disabled:r.disabled,onClick:t,containerWidth:r.useContainerWidth,href:r.url,target:"_blank",rel:"noreferrer","aria-disabled":r.disabled,children:i(k,{icon:r.icon,label:r.label})})})})}const W=b.memo(R);export{W as default};
|