@stlite/desktop 0.90.13 → 0.90.14

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 (71) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/assets/{ErrorOutline.esm-CJGMKtXr.js → ErrorOutline.esm-BnBxotPi.js} +1 -1
  3. package/build/assets/{FileDownload.esm-DVbGfwz7.js → FileDownload.esm-RGPPDhk8.js} +1 -1
  4. package/build/assets/{FileHelper-BAjDG49X.js → FileHelper-tNTMbDMm.js} +1 -1
  5. package/build/assets/{FormClearHelper-CaLJK07N.js → FormClearHelper-DGQP9oxJ.js} +1 -1
  6. package/build/assets/{Hooks-D54IehuR.js → Hooks-Bo61ucn1.js} +1 -1
  7. package/build/assets/{InputInstructions-BLplNLW9.js → InputInstructions-Ck_istEY.js} +1 -1
  8. package/build/assets/{Particles-VYhfVp_p.js → Particles-BlxXqWnI.js} +1 -1
  9. package/build/assets/{ProgressBar-DX8k7XSZ.js → ProgressBar-C-iICo4w.js} +1 -1
  10. package/build/assets/{Toolbar-BbbydoLD.js → Toolbar-ByIPpsVy.js} +1 -1
  11. package/build/assets/{base-input-d4WKPeU6.js → base-input-DRJDHdAL.js} +1 -1
  12. package/build/assets/{checkbox-DUA9ewQT.js → checkbox-2-JpNSRW.js} +1 -1
  13. package/build/assets/{createSuper-CoIMxZYP.js → createSuper-vJD5mbw5.js} +1 -1
  14. package/build/assets/{data-grid-overlay-editor-cvHWuOOd.js → data-grid-overlay-editor-BIgAXG8E.js} +1 -1
  15. package/build/assets/{downloader-CR6bzPv-.js → downloader-JpXWtQ-P.js} +1 -1
  16. package/build/assets/{es6-BCBcAdQS.js → es6-Lsq1Gov6.js} +2 -2
  17. package/build/assets/{iframeResizer.contentWindow-CEqjsNrn.js → iframeResizer.contentWindow-Guiwg0xE.js} +1 -1
  18. package/build/assets/{index-CJWk1YT9.js → index-0HifpjrJ.js} +1 -1
  19. package/build/assets/{index-gb2ePejP.js → index-B-7gUeK8.js} +1 -1
  20. package/build/assets/{index-D9P3ZYiC.js → index-B5XMuJqP.js} +1 -1
  21. package/build/assets/{index-BRiK5gVx.js → index-B7T6_RXn.js} +1 -1
  22. package/build/assets/{index-VVwti7cA.js → index-B9RImrnB.js} +1 -1
  23. package/build/assets/{index-NigQ67t-.js → index-BYmSaStp.js} +1 -1
  24. package/build/assets/{index-BMSSeqlt.js → index-BZmLxv-D.js} +1 -1
  25. package/build/assets/{index-BD2ZweM9.js → index-Bb6UZSFO.js} +1 -1
  26. package/build/assets/{index-B3GOsGpL.js → index-BhFJX5Vn.js} +1 -1
  27. package/build/assets/{index-CHBxMYoz.js → index-BhoSXjxz.js} +1 -1
  28. package/build/assets/{index-wnKDraWU.js → index-BwsrXI9O.js} +87 -87
  29. package/build/assets/{index-BGUuVZft.js → index-C0jxm_PH.js} +1 -1
  30. package/build/assets/{index-BJK2Ym_S.js → index-C636A-W7.js} +1 -1
  31. package/build/assets/{index-CD0SY35r.js → index-C9n8vq5U.js} +1 -1
  32. package/build/assets/{index-PHqcnj3c.js → index-CE3r0KWL.js} +1 -1
  33. package/build/assets/{index-j6pFDYKO.js → index-CFCb7WWw.js} +1 -1
  34. package/build/assets/{index-CdAXvPf5.js → index-CO2Aw19y.js} +1 -1
  35. package/build/assets/{index-CIRTE79j.js → index-CRhYEwNP.js} +1 -1
  36. package/build/assets/{index-Dynm-1sH.js → index-CRiFLKI5.js} +1 -1
  37. package/build/assets/{index-B7yzG-4X.js → index-CRtbPdb-.js} +5 -5
  38. package/build/assets/{index-C91sP-jG.js → index-CoAdDGfF.js} +1 -1
  39. package/build/assets/{index-wUVGuFfU.js → index-D4BdQDBD.js} +1 -1
  40. package/build/assets/{index-DOiS7VE9.js → index-D94FJ5GB.js} +1 -1
  41. package/build/assets/{index-B58bWjQH.js → index-DIjJwKUC.js} +1 -1
  42. package/build/assets/{index-DoQHaClc.js → index-DImx2D5B.js} +1 -1
  43. package/build/assets/{index-CTZrIDfL.js → index-DV5icRRG.js} +1 -1
  44. package/build/assets/{index-CwPp5UqK.js → index-DgEYnWf9.js} +1 -1
  45. package/build/assets/{index-mHvUvPYI.js → index-DkqUDAbB.js} +1 -1
  46. package/build/assets/{index-Bhgfj5y5.js → index-DqH3HG1G.js} +1 -1
  47. package/build/assets/{index-vLb3c1eZ.js → index-Dtvm0G3c.js} +1 -1
  48. package/build/assets/{index-Bwfh73dd.js → index-Q623jih7.js} +1 -1
  49. package/build/assets/{index-DCv3Ovf7.js → index-Zd5xxmFR.js} +1 -1
  50. package/build/assets/{index-CeNNLDtJ.js → index-a4tM28AE.js} +1 -1
  51. package/build/assets/{index-HqlJZ3Ag.js → index-lw_DueTS.js} +1 -1
  52. package/build/assets/{index-BdVfRySM.js → index-m7vCKamN.js} +1 -1
  53. package/build/assets/{index-D_4iXBI5.js → index-mytcrsu7.js} +1 -1
  54. package/build/assets/{index-XsxWL5x-.js → index-pOokbnGQ.js} +1 -1
  55. package/build/assets/{inherits-xHSaJdUZ.js → inherits-DgEBZpYa.js} +1 -1
  56. package/build/assets/{input-PliHooUw.js → input-BRw1nRj1.js} +1 -1
  57. package/build/assets/{memory-BJMhKXeY.js → memory-Do9YV2fF.js} +1 -1
  58. package/build/assets/{number-overlay-editor-DRf5xgI3.js → number-overlay-editor-CBg6iMqb.js} +1 -1
  59. package/build/assets/{sandbox-DBdCCxaG.js → sandbox-DO_nuL9g.js} +1 -1
  60. package/build/assets/{slicedToArray-Cuk3tbTR.js → slicedToArray-CCKNURYu.js} +1 -1
  61. package/build/assets/{timepicker-DjzHzJAt.js → timepicker-CBaJIVEG.js} +1 -1
  62. package/build/assets/{uniqueId-ikSpJ9AP.js → uniqueId-7HN9pV-Z.js} +1 -1
  63. package/build/assets/{useBasicWidgetState-raTjAqZP.js → useBasicWidgetState-CQoPeUHV.js} +1 -1
  64. package/build/assets/{useTextInputAutoExpand-Uac3U0I_.js → useTextInputAutoExpand-CJ0SgjFi.js} +1 -1
  65. package/build/assets/{useUpdateUiValue-BbEmiOZQ.js → useUpdateUiValue-CakBWvqR.js} +1 -1
  66. package/build/assets/{withFullScreenWrapper-C7u7nPsK.js → withFullScreenWrapper-6omMDHWT.js} +1 -1
  67. package/build/assets/{worker-CiNU4sgs.js → worker-CO569BKa.js} +4 -4
  68. package/build/electron/worker.js +5 -5
  69. package/build/index.html +1 -1
  70. package/package.json +4 -4
  71. package/wheels/streamlit-1.50.0-cp313-none-any.whl +0 -0
@@ -1,3 +1,3 @@
1
- import{ac as _,ad as me,o as R,r as u,u as ye,j as g,W as $e,g as Re,T as Oe,P as _e,f as ne,aE as oe,aF as ie,l as Se}from"./index-wnKDraWU.js";import{u as Pe}from"./useBasicWidgetState-raTjAqZP.js";import"./FormClearHelper-CaLJK07N.js";var ae={vertical:"vertical",horizontal:"horizontal"};function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?se(Object(n),!0).forEach(function(r){O(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=0,x=1,L=2;function z(e){return e.$isActive?L:e.$isHovered?x:I}function we(e){var t=e.$theme.colors,n=e.$disabled,r=e.$checked,o=e.$isFocusVisible,i=e.$error;if(n)return t.tickFillDisabled;if(r)if(i)switch(z(e)){case I:return t.tickFillErrorSelected;case x:return t.tickFillErrorSelectedHover;case L:return t.tickFillErrorSelectedHoverActive}else switch(z(e)){case I:return t.tickFillSelected;case x:return t.tickFillSelectedHover;case L:return t.tickFillSelectedHoverActive}else return o?t.borderSelected:i?t.tickBorderError:t.tickBorder;return null}function Me(e){var t=e.$theme.colors;if(e.$disabled)return t.tickMarkFillDisabled;if(e.$checked)return t.tickMarkFill;if(e.$error)switch(z(e)){case I:return t.tickFillError;case x:return t.tickFillErrorHover;case L:return t.tickFillErrorHoverActive}else switch(z(e)){case I:return t.tickFill;case x:return t.tickFillHover;case L:return t.tickFillActive}}function ke(e){var t=e.$labelPlacement,n=t===void 0?"":t,r=e.$theme,o;switch(n){case"top":o="Bottom";break;case"bottom":o="Top";break;case"left":o=r.direction==="rtl"?"Left":"Right";break;default:case"right":o=r.direction==="rtl"?"Right":"Left";break}var i=r.sizing,s=i.scale300;return O({},"padding".concat(o),s)}function Fe(e){var t=e.$disabled,n=e.$theme,r=n.colors;return t?r.contentSecondary:r.contentPrimary}var q=_("div",function(e){var t=e.$disabled,n=e.$align;return{display:"flex",flexWrap:"wrap",flexDirection:n==="horizontal"?"row":"column",alignItems:n==="horizontal"?"center":"flex-start",cursor:t?"not-allowed":"pointer","-webkit-tap-highlight-color":"transparent"}});q.displayName="RadioGroupRoot";q.displayName="RadioGroupRoot";var X=_("label",function(e){var t,n=e.$disabled,r=e.$hasDescription,o=e.$labelPlacement,i=e.$theme,s=e.$align,a=i.sizing,c=s==="horizontal",p=i.direction==="rtl"?"Left":"Right";return t={flexDirection:o==="top"||o==="bottom"?"column":"row",display:"flex",alignItems:"center",cursor:n?"not-allowed":"pointer",marginTop:a.scale200},O(t,"margin".concat(p),c?a.scale200:null),O(t,"marginBottom",r&&!c?null:a.scale200),t});X.displayName="Root";X.displayName="Root";var K=_("div",function(e){var t=e.$theme,n=t.animation,r=t.sizing;return{backgroundColor:Me(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",height:e.$checked?r.scale200:r.scale550,transitionDuration:n.timing200,transitionTimingFunction:n.easeOutCurve,width:e.$checked?r.scale200:r.scale550}});K.displayName="RadioMarkInner";K.displayName="RadioMarkInner";var J=_("div",function(e){var t=e.$theme,n=t.animation,r=t.sizing;return{alignItems:"center",backgroundColor:we(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible&&e.$checked?"0 0 0 3px ".concat(e.$theme.colors.accent):"none",display:"flex",height:r.scale700,justifyContent:"center",marginTop:r.scale0,marginRight:r.scale0,marginBottom:r.scale0,marginLeft:r.scale0,outline:"none",verticalAlign:"middle",width:r.scale700,flexShrink:0,transitionDuration:n.timing200,transitionTimingFunction:n.easeOutCurve}});J.displayName="RadioMarkOuter";J.displayName="RadioMarkOuter";var Q=_("div",function(e){var t=e.$theme.typography;return D(D({verticalAlign:"middle"},ke(e)),{},{color:Fe(e)},t.LabelMedium)});Q.displayName="Label";Q.displayName="Label";var Y=_("input",{width:0,height:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,clip:"rect(0 0 0 0)",position:"absolute"});Y.displayName="Input";Y.displayName="Input";var Z=_("div",function(e){var t,n=e.$theme,r=e.$align,o=r==="horizontal",i=n.direction==="rtl"?"Right":"Left",s=n.direction==="rtl"?"Left":"Right";return D(D({},n.typography.ParagraphSmall),{},(t={color:n.colors.contentSecondary,cursor:"auto"},O(t,"margin".concat(i),r==="horizontal"?null:n.sizing.scale900),O(t,"margin".concat(s),o?n.sizing.scale200:null),O(t,"maxWidth","240px"),t))});Z.displayName="Description";Z.displayName="Description";function N(e){"@babel/helpers - typeof";return N=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},N(e)}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(this,arguments)}function Ee(e,t){return Te(e)||Le(e,t)||xe(e,t)||Ie()}function Ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{ac as _,ad as me,o as R,r as u,u as ye,j as g,W as $e,g as Re,T as Oe,P as _e,f as ne,aE as oe,aF as ie,l as Se}from"./index-BwsrXI9O.js";import{u as Pe}from"./useBasicWidgetState-CQoPeUHV.js";import"./FormClearHelper-DGQP9oxJ.js";var ae={vertical:"vertical",horizontal:"horizontal"};function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?se(Object(n),!0).forEach(function(r){O(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=0,x=1,L=2;function z(e){return e.$isActive?L:e.$isHovered?x:I}function we(e){var t=e.$theme.colors,n=e.$disabled,r=e.$checked,o=e.$isFocusVisible,i=e.$error;if(n)return t.tickFillDisabled;if(r)if(i)switch(z(e)){case I:return t.tickFillErrorSelected;case x:return t.tickFillErrorSelectedHover;case L:return t.tickFillErrorSelectedHoverActive}else switch(z(e)){case I:return t.tickFillSelected;case x:return t.tickFillSelectedHover;case L:return t.tickFillSelectedHoverActive}else return o?t.borderSelected:i?t.tickBorderError:t.tickBorder;return null}function Me(e){var t=e.$theme.colors;if(e.$disabled)return t.tickMarkFillDisabled;if(e.$checked)return t.tickMarkFill;if(e.$error)switch(z(e)){case I:return t.tickFillError;case x:return t.tickFillErrorHover;case L:return t.tickFillErrorHoverActive}else switch(z(e)){case I:return t.tickFill;case x:return t.tickFillHover;case L:return t.tickFillActive}}function ke(e){var t=e.$labelPlacement,n=t===void 0?"":t,r=e.$theme,o;switch(n){case"top":o="Bottom";break;case"bottom":o="Top";break;case"left":o=r.direction==="rtl"?"Left":"Right";break;default:case"right":o=r.direction==="rtl"?"Right":"Left";break}var i=r.sizing,s=i.scale300;return O({},"padding".concat(o),s)}function Fe(e){var t=e.$disabled,n=e.$theme,r=n.colors;return t?r.contentSecondary:r.contentPrimary}var q=_("div",function(e){var t=e.$disabled,n=e.$align;return{display:"flex",flexWrap:"wrap",flexDirection:n==="horizontal"?"row":"column",alignItems:n==="horizontal"?"center":"flex-start",cursor:t?"not-allowed":"pointer","-webkit-tap-highlight-color":"transparent"}});q.displayName="RadioGroupRoot";q.displayName="RadioGroupRoot";var X=_("label",function(e){var t,n=e.$disabled,r=e.$hasDescription,o=e.$labelPlacement,i=e.$theme,s=e.$align,a=i.sizing,c=s==="horizontal",p=i.direction==="rtl"?"Left":"Right";return t={flexDirection:o==="top"||o==="bottom"?"column":"row",display:"flex",alignItems:"center",cursor:n?"not-allowed":"pointer",marginTop:a.scale200},O(t,"margin".concat(p),c?a.scale200:null),O(t,"marginBottom",r&&!c?null:a.scale200),t});X.displayName="Root";X.displayName="Root";var K=_("div",function(e){var t=e.$theme,n=t.animation,r=t.sizing;return{backgroundColor:Me(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",height:e.$checked?r.scale200:r.scale550,transitionDuration:n.timing200,transitionTimingFunction:n.easeOutCurve,width:e.$checked?r.scale200:r.scale550}});K.displayName="RadioMarkInner";K.displayName="RadioMarkInner";var J=_("div",function(e){var t=e.$theme,n=t.animation,r=t.sizing;return{alignItems:"center",backgroundColor:we(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible&&e.$checked?"0 0 0 3px ".concat(e.$theme.colors.accent):"none",display:"flex",height:r.scale700,justifyContent:"center",marginTop:r.scale0,marginRight:r.scale0,marginBottom:r.scale0,marginLeft:r.scale0,outline:"none",verticalAlign:"middle",width:r.scale700,flexShrink:0,transitionDuration:n.timing200,transitionTimingFunction:n.easeOutCurve}});J.displayName="RadioMarkOuter";J.displayName="RadioMarkOuter";var Q=_("div",function(e){var t=e.$theme.typography;return D(D({verticalAlign:"middle"},ke(e)),{},{color:Fe(e)},t.LabelMedium)});Q.displayName="Label";Q.displayName="Label";var Y=_("input",{width:0,height:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,clip:"rect(0 0 0 0)",position:"absolute"});Y.displayName="Input";Y.displayName="Input";var Z=_("div",function(e){var t,n=e.$theme,r=e.$align,o=r==="horizontal",i=n.direction==="rtl"?"Right":"Left",s=n.direction==="rtl"?"Left":"Right";return D(D({},n.typography.ParagraphSmall),{},(t={color:n.colors.contentSecondary,cursor:"auto"},O(t,"margin".concat(i),r==="horizontal"?null:n.sizing.scale900),O(t,"margin".concat(s),o?n.sizing.scale200:null),O(t,"maxWidth","240px"),t))});Z.displayName="Description";Z.displayName="Description";function N(e){"@babel/helpers - typeof";return N=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},N(e)}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(this,arguments)}function Ee(e,t){return Te(e)||Le(e,t)||xe(e,t)||Ie()}function Ie(){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 xe(e,t){if(e){if(typeof e=="string")return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return le(e,t)}}function le(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Le(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,a=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Te(e){if(Array.isArray(e))return e}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t,n){return t&&Ae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ze(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&&U(e,t)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},U(e,t)}function Be(e){var t=He();return function(){var r=B(e),o;if(t){var i=B(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ce(this,o)}}function Ce(e,t){if(t&&(N(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function He(){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(n){return n.__proto__||Object.getPrototypeOf(n)},B(e)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ce=(function(e){ze(n,e);var t=Be(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),A(j(r),"state",{isFocusVisible:!1,focusedRadioIndex:-1}),A(j(r),"handleFocus",function(a,c){me(a)&&r.setState({isFocusVisible:!0}),r.setState({focusedRadioIndex:c}),r.props.onFocus&&r.props.onFocus(a)}),A(j(r),"handleBlur",function(a,c){r.state.isFocusVisible!==!1&&r.setState({isFocusVisible:!1}),r.setState({focusedRadioIndex:-1}),r.props.onBlur&&r.props.onBlur(a)}),r}return De(n,[{key:"render",value:function(){var o=this,i=this.props.overrides,s=i===void 0?{}:i,a=R(s.RadioGroupRoot,q),c=Ee(a,2),p=c[0],b=c[1];return u.createElement(p,V({id:this.props.id,role:"radiogroup","aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props.error||null,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],$align:this.props.align,$disabled:this.props.disabled,$error:this.props.error,$required:this.props.required},b),u.Children.map(this.props.children,function(f,l){if(!u.isValidElement(f))return null;var d=o.props.value===f.props.value;return u.cloneElement(f,{align:o.props.align,autoFocus:o.props.autoFocus,checked:d,disabled:o.props.disabled||f.props.disabled,error:o.props.error,isFocused:o.state.focusedRadioIndex===l,isFocusVisible:o.state.isFocusVisible,tabIndex:l===0&&!o.props.value||d?"0":"-1",labelPlacement:o.props.labelPlacement,name:o.props.name,onBlur:function(v){return o.handleBlur(v,l)},onFocus:function(v){return o.handleFocus(v,l)},onChange:o.props.onChange,onMouseEnter:o.props.onMouseEnter,onMouseLeave:o.props.onMouseLeave})}))}}]),n})(u.Component);A(ce,"defaultProps",{name:"",value:"",disabled:!1,autoFocus:!1,labelPlacement:"right",align:"vertical",error:!1,required:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onFocus:function(){},onBlur:function(){},overrides:{}});function G(e){"@babel/helpers - typeof";return G=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},G(e)}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}function M(e,t){return Ge(e)||Ue(e,t)||Ve(e,t)||Ne()}function Ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ve(e,t){if(e){if(typeof e=="string")return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}}function ue(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,a=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Ge(e){if(Array.isArray(e))return e}function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xe(e,t,n){return t&&qe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ke(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&&W(e,t)}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},W(e,t)}function Je(e){var t=Ye();return function(){var r=C(e),o;if(t){var i=C(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Qe(this,o)}}function Qe(e,t){if(t&&(G(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 Ye(){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 C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},C(e)}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e){return e==="top"||e==="left"}function et(e){return e==="bottom"||e==="right"}var tt=function(t){return t.stopPropagation()},pe=(function(e){Ke(n,e);var t=Je(n);function n(){var r;We(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),F(k(r),"state",{isActive:!1,isHovered:!1}),F(k(r),"onMouseEnter",function(a){r.setState({isHovered:!0}),r.props.onMouseEnter&&r.props.onMouseEnter(a)}),F(k(r),"onMouseLeave",function(a){r.setState({isHovered:!1}),r.props.onMouseLeave&&r.props.onMouseLeave(a)}),F(k(r),"onMouseDown",function(a){r.setState({isActive:!0}),r.props.onMouseDown&&r.props.onMouseDown(a)}),F(k(r),"onMouseUp",function(a){r.setState({isActive:!1}),r.props.onMouseUp&&r.props.onMouseUp(a)}),r}return Xe(n,[{key:"componentDidMount",value:function(){var o;this.props.autoFocus&&(o=this.props.inputRef)!==null&&o!==void 0&&o.current&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var o=this.props.overrides,i=o===void 0?{}:o,s=R(i.Root,X),a=M(s,2),c=a[0],p=a[1],b=R(i.Label,Q),f=M(b,2),l=f[0],d=f[1],S=R(i.Input,Y),v=M(S,2),P=v[0],H=v[1],T=R(i.Description,Z),E=M(T,2),m=E[0],h=E[1],y=R(i.RadioMarkInner,K),ee=M(y,2),fe=ee[0],de=ee[1],he=R(i.RadioMarkOuter,J),te=M(he,2),ge=te[0],be=te[1],w={$align:this.props.align,$checked:this.props.checked,$disabled:this.props.disabled,$hasDescription:!!this.props.description,$isActive:this.state.isActive,$error:this.props.error,$isFocused:this.props.isFocused,$isFocusVisible:this.props.isFocused&&this.props.isFocusVisible,$isHovered:this.state.isHovered,$labelPlacement:this.props.labelPlacement,$required:this.props.required,$value:this.props.value},re=u.createElement(l,$({},w,d),this.props.containsInteractiveElement?u.createElement("div",{onClick:function(ve){return ve.preventDefault()}},this.props.children):this.props.children);return u.createElement(u.Fragment,null,u.createElement(c,$({"data-baseweb":"radio",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},w,p),Ze(this.props.labelPlacement)&&re,u.createElement(ge,$({},w,be),u.createElement(fe,$({},w,de))),u.createElement(P,$({"aria-invalid":this.props.error||null,checked:this.props.checked,disabled:this.props.disabled,name:this.props.name,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:tt,onChange:this.props.onChange,ref:this.props.inputRef,required:this.props.required,tabIndex:this.props.tabIndex,type:"radio",value:this.props.value},w,H)),et(this.props.labelPlacement)&&re),!!this.props.description&&u.createElement(m,$({},w,h),this.props.description))}}]),n})(u.Component);F(pe,"defaultProps",{overrides:{},containsInteractiveElement:!1,checked:!1,disabled:!1,autoFocus:!1,inputRef:u.createRef(),align:"vertical",error:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});function rt(e){const t=parseFloat(e.sizes.checkbox),n=parseFloat(e.spacing.threeXS),r=oe(t.toString()),o=Math.round(r*.375);let i=Math.round(oe((t-n).toString()));return i>=r&&(i-=1),[ie(o,"px"),ie(i,"px")]}function nt({disabled:e,horizontal:t,value:n,onChange:r,options:o,captions:i,label:s,labelVisibility:a,help:c}){const[p,b]=u.useState(n??null);u.useEffect(()=>{n!==p&&b(n??null)},[n]);const f=u.useCallback(m=>{const h=parseInt(m.target.value,10);b(h),r(h)},[r]),l=ye(),d=i.length>0,S=o.length>0,v=S?o:["No options to select."],P=e||!S,H=m=>m==""&&t&&d?"&nbsp;":m,[T,E]=rt(l);return g.jsxs("div",{className:"stRadio","data-testid":"stRadio",children:[g.jsx($e,{label:s,disabled:P,labelVisibility:a,children:c&&g.jsx(Re,{children:g.jsx(Oe,{content:c,placement:_e.TOP_RIGHT})})}),g.jsx(ce,{onChange:f,value:p!==null?p.toString():void 0,disabled:P,align:t?ae.horizontal:ae.vertical,"aria-label":s,"data-testid":"stRadioGroup",overrides:{RadioGroupRoot:{style:{gap:d?l.spacing.sm:l.spacing.none,minHeight:l.sizes.minElementHeight}}},children:v.map((m,h)=>g.jsxs(pe,{value:h.toString(),overrides:{Root:{style:({$isFocusVisible:y})=>({marginBottom:l.spacing.none,marginTop:l.spacing.none,marginRight:d?l.spacing.sm:l.spacing.lg,paddingLeft:l.spacing.none,alignItems:"start",paddingRight:l.spacing.threeXS,backgroundColor:y?l.colors.darkenedBgMix25:""})},RadioMarkOuter:{style:({$checked:y})=>({width:l.sizes.checkbox,height:l.sizes.checkbox,marginTop:"0.35rem",marginRight:l.spacing.none,marginLeft:l.spacing.none,backgroundColor:y&&!P?l.colors.primary:l.colors.fadedText40})},RadioMarkInner:{style:({$checked:y})=>({height:y?T:E,width:y?T:E})},Label:{style:{color:P?l.colors.fadedText40:l.colors.bodyText,position:"relative",top:l.spacing.px}}},children:[g.jsx(ne,{source:m,allowHTML:!1,isLabel:!0,largerLabel:!0}),d&&g.jsx(ne,{source:H(i[h]),allowHTML:!1,isCaption:!0,isLabel:!0})]},h))})]})}const ot=u.memo(nt);function it({disabled:e,element:t,widgetMgr:n,fragmentId:r}){const[o,i]=Pe({getStateFromWidgetMgr:at,getDefaultStateFromProto:st,getCurrStateFromProto:lt,updateWidgetMgrState:ut,element:t,widgetMgr:n,fragmentId:r}),s=u.useCallback(d=>{i({value:d,fromUi:!0})},[i]),{horizontal:a,options:c,captions:p,label:b,labelVisibility:f,help:l}=t;return g.jsx(ot,{label:b,onChange:s,options:c,captions:p,disabled:e,horizontal:a,labelVisibility:Se(f?.value),value:o??null,help:l})}function at(e,t){return e.getIntValue(t)}function st(e){return e.default??null}function lt(e){return e.value??null}function ut(e,t,n,r){t.setIntValue(e,n.value??null,{fromUi:n.fromUi},r)}const ht=u.memo(it);export{ht as default};
@@ -1 +1 @@
1
- import{s as D,r as a,a4 as U,u as k,a5 as S,j as i,W as H,l as B,Q as _,T as O,P as w,y as K,a6 as q}from"./index-wnKDraWU.js";import{u as A}from"./uniqueId-ikSpJ9AP.js";import{I as G}from"./InputInstructions-BLplNLW9.js";import{u as N}from"./useBasicWidgetState-raTjAqZP.js";import{u as Q,a as $,b as J}from"./useUpdateUiValue-BbEmiOZQ.js";import{I as M}from"./input-PliHooUw.js";import"./FormClearHelper-CaLJK07N.js";import"./inputUtils-CptNuJwn.js";import"./base-input-d4WKPeU6.js";const X=D("div",{target:"e11y4ecf0"})({name:"bjn8wh",styles:"position:relative"});function Y({disabled:s,element:t,widgetMgr:o,fragmentId:u}){const[r,c]=a.useState(()=>I(o,t)??null),{width:W,elementRef:y}=U(),[n,p]=a.useState(!1),T=a.useCallback(()=>{c(t.default??null),p(!0)},[t.default]),[V,m]=N({getStateFromWidgetMgr:I,getDefaultStateFromProto:Z,getCurrStateFromProto:tt,updateWidgetMgrState:et,element:t,widgetMgr:o,fragmentId:u,onFormCleared:T});Q(V,r,c,n);const[C,f]=a.useState(!1),e=k(),[g]=a.useState(()=>A("text_input_")),{placeholder:E,formId:l,icon:d,maxChars:b}=t,h=a.useCallback(()=>{p(!1),m({value:r,fromUi:!0})},[r,m]),F=S({formId:l})?o.allowFormEnterToSubmit(l):n,j=C&&W>e.breakpoints.hideWidgetDetails,v=a.useCallback(()=>{n&&h(),f(!1)},[n,h]),R=a.useCallback(()=>{f(!0)},[]),z=$({formId:l,maxChars:b,setDirty:p,setUiValue:c,setValueWithSource:m}),P=J(l,h,n,o,u),x=d?.startsWith(":material"),L=x?"lg":"base";return i.jsxs(X,{className:"stTextInput","data-testid":"stTextInput",ref:y,children:[i.jsx(H,{label:t.label,disabled:s,labelVisibility:B(t.labelVisibility?.value),htmlFor:g,children:t.help&&i.jsx(_,{children:i.jsx(O,{content:t.help,placement:w.TOP_RIGHT})})}),i.jsx(M,{value:r??"",placeholder:E,onBlur:v,onFocus:R,onChange:z,onKeyPress:P,"aria-label":t.label,disabled:s,id:g,type:st(t),autoComplete:t.autocomplete,startEnhancer:d&&i.jsx(K,{"data-testid":"stTextInputIcon",iconValue:d,size:L}),overrides:{Input:{style:{fontWeight:e.fontWeights.normal,minWidth:0,lineHeight:e.lineHeights.inputWidget,paddingRight:e.spacing.sm,paddingLeft:e.spacing.md,paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,"::placeholder":{color:e.colors.fadedText60}}},Root:{props:{"data-testid":"stTextInputRootElement"},style:{height:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,paddingLeft:d?e.spacing.sm:0}},StartEnhancer:{style:{paddingLeft:0,paddingRight:0,minWidth:e.iconSizes.lg,color:x?e.colors.fadedText60:"inherit"}}}}),j&&i.jsx(G,{dirty:n,value:r??"",maxLength:b,inForm:S({formId:l}),allowEnterToSubmit:F})]})}function I(s,t){return s.getStringValue(t)??null}function Z(s){return s.default??null}function tt(s){return s.value??null}function et(s,t,o,u){t.setStringValue(s,o.value,{fromUi:o.fromUi},u)}function st(s){return s.type===q.Type.PASSWORD?"password":"text"}const pt=a.memo(Y);export{pt as default};
1
+ import{s as D,r as a,a4 as U,u as k,a5 as S,j as i,W as H,l as B,Q as _,T as O,P as w,y as K,a6 as q}from"./index-BwsrXI9O.js";import{u as A}from"./uniqueId-7HN9pV-Z.js";import{I as G}from"./InputInstructions-Ck_istEY.js";import{u as N}from"./useBasicWidgetState-CQoPeUHV.js";import{u as Q,a as $,b as J}from"./useUpdateUiValue-CakBWvqR.js";import{I as M}from"./input-BRw1nRj1.js";import"./FormClearHelper-DGQP9oxJ.js";import"./inputUtils-CptNuJwn.js";import"./base-input-DRJDHdAL.js";const X=D("div",{target:"e11y4ecf0"})({name:"bjn8wh",styles:"position:relative"});function Y({disabled:s,element:t,widgetMgr:o,fragmentId:u}){const[r,c]=a.useState(()=>I(o,t)??null),{width:W,elementRef:y}=U(),[n,p]=a.useState(!1),T=a.useCallback(()=>{c(t.default??null),p(!0)},[t.default]),[V,m]=N({getStateFromWidgetMgr:I,getDefaultStateFromProto:Z,getCurrStateFromProto:tt,updateWidgetMgrState:et,element:t,widgetMgr:o,fragmentId:u,onFormCleared:T});Q(V,r,c,n);const[C,f]=a.useState(!1),e=k(),[g]=a.useState(()=>A("text_input_")),{placeholder:E,formId:l,icon:d,maxChars:b}=t,h=a.useCallback(()=>{p(!1),m({value:r,fromUi:!0})},[r,m]),F=S({formId:l})?o.allowFormEnterToSubmit(l):n,j=C&&W>e.breakpoints.hideWidgetDetails,v=a.useCallback(()=>{n&&h(),f(!1)},[n,h]),R=a.useCallback(()=>{f(!0)},[]),z=$({formId:l,maxChars:b,setDirty:p,setUiValue:c,setValueWithSource:m}),P=J(l,h,n,o,u),x=d?.startsWith(":material"),L=x?"lg":"base";return i.jsxs(X,{className:"stTextInput","data-testid":"stTextInput",ref:y,children:[i.jsx(H,{label:t.label,disabled:s,labelVisibility:B(t.labelVisibility?.value),htmlFor:g,children:t.help&&i.jsx(_,{children:i.jsx(O,{content:t.help,placement:w.TOP_RIGHT})})}),i.jsx(M,{value:r??"",placeholder:E,onBlur:v,onFocus:R,onChange:z,onKeyPress:P,"aria-label":t.label,disabled:s,id:g,type:st(t),autoComplete:t.autocomplete,startEnhancer:d&&i.jsx(K,{"data-testid":"stTextInputIcon",iconValue:d,size:L}),overrides:{Input:{style:{fontWeight:e.fontWeights.normal,minWidth:0,lineHeight:e.lineHeights.inputWidget,paddingRight:e.spacing.sm,paddingLeft:e.spacing.md,paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,"::placeholder":{color:e.colors.fadedText60}}},Root:{props:{"data-testid":"stTextInputRootElement"},style:{height:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,paddingLeft:d?e.spacing.sm:0}},StartEnhancer:{style:{paddingLeft:0,paddingRight:0,minWidth:e.iconSizes.lg,color:x?e.colors.fadedText60:"inherit"}}}}),j&&i.jsx(G,{dirty:n,value:r??"",maxLength:b,inForm:S({formId:l}),allowEnterToSubmit:F})]})}function I(s,t){return s.getStringValue(t)??null}function Z(s){return s.default??null}function tt(s){return s.value??null}function et(s,t,o,u){t.setStringValue(s,o.value,{fromUi:o.fromUi},u)}function st(s){return s.type===q.Type.PASSWORD?"password":"text"}const pt=a.memo(Y);export{pt as default};
@@ -1 +1 @@
1
- import{s as l,aa as t,t as x,d as s,r as b,B as n,j as i,a as v,b as B,D as k}from"./index-wnKDraWU.js";function C(o,r){switch(o){case s.XSMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.sm}`,fontSize:r.fontSizes.sm};case s.SMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.md}`};case s.LARGE:return{padding:`${r.spacing.md} ${r.spacing.md}`};default:return{padding:`${r.spacing.xs} ${r.spacing.md}`}}}const u=l("a",{target:"e16zdaao3"})(({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.button,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 ${x(a.colors.primary,.5)}`},"&:hover":{textDecoration:"none"},"&:active":{textDecoration:"none"},...C(r,a)}),""),S=l(u,{target:"e16zdaao2"})(({theme:o})=>({backgroundColor:o.colors.primary,color:o.colors.white,border:`${o.sizes.borderWidth} solid ${o.colors.primary}`,"&:hover, &:focus-visible":{backgroundColor:t(o.colors.primary,.15),borderColor:t(o.colors.primary,.15)},"&:active":{backgroundColor:o.colors.primary,borderColor:t(o.colors.primary,.15)},"&: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(u,{target:"e16zdaao1"})(({theme:o})=>({backgroundColor:o.colors.lightenedBg05,color:o.colors.bodyText,border:`${o.sizes.borderWidth} solid ${o.colors.borderColor}`,"&:visited":{color:o.colors.bodyText},"&:hover, &:focus-visible":{backgroundColor:o.colors.darkenedBgMix15},"&:active":{backgroundColor:o.colors.darkenedBgMix25},"&[disabled], &[disabled]:hover, &[disabled]:active":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}}),""),$=l(u,{target:"e16zdaao0"})(({theme:o})=>({padding:o.spacing.none,backgroundColor:o.colors.transparent,color:o.colors.bodyText,border:"none","&:visited":{color:o.colors.bodyText},"&:hover, &:focus-visible":{color:o.colors.primary},"&:hover:not([disabled]), &:focus-visible:not([disabled])":{"span.stMarkdownColoredText":{color:"inherit !important"}},"&:active":{color:t(o.colors.primary,.25)},"&[disabled], &[disabled]:hover, &[disabled]:active":{backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}}),"");function T({kind:o,size:r,disabled:a,children:d,autoFocus:e,href:p,rel:g,target:f,onClick:y}){let c=S;return o===n.SECONDARY?c=L:o===n.TERTIARY&&(c=$),i.jsx(c,{kind:o,size:r||s.MEDIUM,containerWidth:!0,disabled:a||!1,autoFocus:e||!1,href:p,target:f,rel:g,onClick:y,tabIndex:a?-1:0,"data-testid":`stBaseLinkButton-${o}`,children:d})}const z=b.memo(T);function w(o){const{element:r}=o;let a=n.SECONDARY;r.type==="primary"?a=n.PRIMARY:r.type==="tertiary"&&(a=n.TERTIARY);const d=e=>{r.disabled&&e.preventDefault()};return i.jsx(v,{className:"stLinkButton","data-testid":"stLinkButton",children:i.jsx(B,{help:r.help,containerWidth:!0,children:i.jsx(z,{kind:a,size:s.SMALL,disabled:r.disabled,onClick:d,href:r.url,target:"_blank",rel:"noreferrer","aria-disabled":r.disabled,children:i.jsx(k,{icon:r.icon,label:r.label})})})})}const A=b.memo(w);export{A as default};
1
+ import{s as l,aa as t,t as x,d as s,r as b,B as n,j as i,a as v,b as B,D as k}from"./index-BwsrXI9O.js";function C(o,r){switch(o){case s.XSMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.sm}`,fontSize:r.fontSizes.sm};case s.SMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.md}`};case s.LARGE:return{padding:`${r.spacing.md} ${r.spacing.md}`};default:return{padding:`${r.spacing.xs} ${r.spacing.md}`}}}const u=l("a",{target:"e16zdaao3"})(({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.button,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 ${x(a.colors.primary,.5)}`},"&:hover":{textDecoration:"none"},"&:active":{textDecoration:"none"},...C(r,a)}),""),S=l(u,{target:"e16zdaao2"})(({theme:o})=>({backgroundColor:o.colors.primary,color:o.colors.white,border:`${o.sizes.borderWidth} solid ${o.colors.primary}`,"&:hover, &:focus-visible":{backgroundColor:t(o.colors.primary,.15),borderColor:t(o.colors.primary,.15)},"&:active":{backgroundColor:o.colors.primary,borderColor:t(o.colors.primary,.15)},"&: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(u,{target:"e16zdaao1"})(({theme:o})=>({backgroundColor:o.colors.lightenedBg05,color:o.colors.bodyText,border:`${o.sizes.borderWidth} solid ${o.colors.borderColor}`,"&:visited":{color:o.colors.bodyText},"&:hover, &:focus-visible":{backgroundColor:o.colors.darkenedBgMix15},"&:active":{backgroundColor:o.colors.darkenedBgMix25},"&[disabled], &[disabled]:hover, &[disabled]:active":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}}),""),$=l(u,{target:"e16zdaao0"})(({theme:o})=>({padding:o.spacing.none,backgroundColor:o.colors.transparent,color:o.colors.bodyText,border:"none","&:visited":{color:o.colors.bodyText},"&:hover, &:focus-visible":{color:o.colors.primary},"&:hover:not([disabled]), &:focus-visible:not([disabled])":{"span.stMarkdownColoredText":{color:"inherit !important"}},"&:active":{color:t(o.colors.primary,.25)},"&[disabled], &[disabled]:hover, &[disabled]:active":{backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}}),"");function T({kind:o,size:r,disabled:a,children:d,autoFocus:e,href:p,rel:g,target:f,onClick:y}){let c=S;return o===n.SECONDARY?c=L:o===n.TERTIARY&&(c=$),i.jsx(c,{kind:o,size:r||s.MEDIUM,containerWidth:!0,disabled:a||!1,autoFocus:e||!1,href:p,target:f,rel:g,onClick:y,tabIndex:a?-1:0,"data-testid":`stBaseLinkButton-${o}`,children:d})}const z=b.memo(T);function w(o){const{element:r}=o;let a=n.SECONDARY;r.type==="primary"?a=n.PRIMARY:r.type==="tertiary"&&(a=n.TERTIARY);const d=e=>{r.disabled&&e.preventDefault()};return i.jsx(v,{className:"stLinkButton","data-testid":"stLinkButton",children:i.jsx(B,{help:r.help,containerWidth:!0,children:i.jsx(z,{kind:a,size:s.SMALL,disabled:r.disabled,onClick:d,href:r.url,target:"_blank",rel:"noreferrer","aria-disabled":r.disabled,children:i.jsx(k,{icon:r.icon,label:r.label})})})})}const A=b.memo(w);export{A as default};
@@ -1,4 +1,4 @@
1
- import{s as m,$ as l,r as i,j as o,aq as p}from"./index-wnKDraWU.js";import{R as d,P as f}from"./Particles-VYhfVp_p.js";const g="/assets/flake-0.DgWaVvm5.png",x="/assets/flake-1.B2r5AHMK.png",E="/assets/flake-2.BnWSExPC.png",e=150,r=150,S=10,_=90,u=4e3,a=(t,n=0)=>Math.random()*(t-n)+n,A=()=>l`
1
+ import{s as m,$ as l,r as i,j as o,aq as p}from"./index-BwsrXI9O.js";import{R as d,P as f}from"./Particles-BlxXqWnI.js";const g="/assets/flake-0.DgWaVvm5.png",x="/assets/flake-1.B2r5AHMK.png",E="/assets/flake-2.BnWSExPC.png",e=150,r=150,S=10,_=90,u=4e3,a=(t,n=0)=>Math.random()*(t-n)+n,A=()=>l`
2
2
  from {
3
3
  transform:
4
4
  translateY(0)