@bigbluebutton/bbb-ui-components-react 0.9.0 → 0.11.0
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.
- package/README.md +1 -0
- package/dist/components/Accordion.js +7 -7
- package/dist/components/Avatar.js +5 -5
- package/dist/components/Button.js +32 -29
- package/dist/components/Checkbox.js +33 -10
- package/dist/components/Input.js +64 -61
- package/dist/components/Modal.js +46 -43
- package/dist/components/Search.js +3 -2
- package/dist/components/Slider.js +8 -8
- package/dist/components/Spinner.js +1 -0
- package/dist/components/Toast.js +295 -0
- package/dist/components/Toggle.js +23 -16
- package/dist/components/index.js +318 -142
- package/dist/esm/components/Accordion/component.js +2 -1
- package/dist/esm/components/Avatar/component.js +2 -1
- package/dist/esm/components/Button/component.js +26 -5
- package/dist/esm/components/Button/constants.js +11 -4
- package/dist/esm/components/Button/styles.js +25 -1
- package/dist/esm/components/Checkbox/component.js +67 -12
- package/dist/esm/components/Checkbox/constants.js +8 -0
- package/dist/esm/components/Checkbox/styles.js +50 -8
- package/dist/esm/components/Slider/component.js +3 -2
- package/dist/esm/components/Slider/valueLabel.js +36 -0
- package/dist/esm/components/Spinner/styles.js +1 -0
- package/dist/esm/components/Toast/component.js +144 -0
- package/dist/esm/components/Toast/constants.js +36 -0
- package/dist/esm/components/Toast/index.js +1 -0
- package/dist/esm/components/Toast/styles.js +180 -0
- package/dist/esm/components/Toast/types.js +1 -0
- package/dist/esm/components/Toggle/component.js +88 -16
- package/dist/esm/components/Toggle/constants.js +8 -0
- package/dist/esm/components/Toggle/styles.js +32 -6
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/stylesheets/palette.js +4 -0
- package/dist/esm/utils/tooltip.js +20 -0
- package/dist/types/components/Button/constants.d.ts +8 -1
- package/dist/types/components/Button/styles.d.ts +2 -1
- package/dist/types/components/Button/type.d.ts +8 -1
- package/dist/types/components/Checkbox/component.d.ts +2 -1
- package/dist/types/components/Checkbox/constants.d.ts +8 -0
- package/dist/types/components/Checkbox/styles.d.ts +5 -3
- package/dist/types/components/Checkbox/types.d.ts +19 -1
- package/dist/types/components/Slider/component.d.ts +1 -1
- package/dist/types/components/Slider/valueLabel.d.ts +7 -0
- package/dist/types/components/TextInput/styles.d.ts +1 -1
- package/dist/types/components/Toast/component.d.ts +14 -0
- package/dist/types/components/Toast/constants.d.ts +42 -0
- package/dist/types/components/Toast/index.d.ts +1 -0
- package/dist/types/components/Toast/styles.d.ts +14 -0
- package/dist/types/components/Toast/types.d.ts +68 -0
- package/dist/types/components/Toggle/component.d.ts +2 -1
- package/dist/types/components/Toggle/constants.d.ts +8 -0
- package/dist/types/components/Toggle/styles.d.ts +3 -3
- package/dist/types/components/Toggle/types.d.ts +14 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/stylesheets/palette.d.ts +2 -0
- package/dist/types/utils/tooltip.d.ts +3 -0
- package/package.json +11 -1
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("styled-components"),require("@tippyjs/react"),require("@mui/material"),require("@mui/icons-material"),require("react-modal"),require("@mui/material/Select"),require("@mui/material/styles"));else if("function"==typeof define&&define.amd)define(["react","styled-components","@tippyjs/react","@mui/material","@mui/icons-material","react-modal","@mui/material/Select","@mui/material/styles"],t);else{var r="object"==typeof exports?t(require("react"),require("styled-components"),require("@tippyjs/react"),require("@mui/material"),require("@mui/icons-material"),require("react-modal"),require("@mui/material/Select"),require("@mui/material/styles")):t(e.react,e["styled-components"],e["@tippyjs/react"],e["@mui/material"],e["@mui/icons-material"],e["react-modal"],e["@mui/material/Select"],e["@mui/material/styles"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e,t,r,o,n,a,i,l)=>(()=>{"use strict";var c={2:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(601),n=r.n(o),a=r(314),i=r.n(a)()(n());i.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const l=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",o=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),o&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),o&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,o,n,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(i[c]=!0)}for(var s=0;s<e.length;s++){var d=[].concat(e[s]);o&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),t.push(d))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function r(e){for(var r=-1,o=0;o<t.length;o++)if(t[o].identifier===e){r=o;break}return r}function o(e,o){for(var a={},i=[],l=0;l<e.length;l++){var c=e[l],s=o.base?c[0]+o.base:c[0],d=a[s]||0,u="".concat(s," ").concat(d);a[s]=d+1;var p=r(u),b={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(b);else{var h=n(b,o);o.byIndex=l,t.splice(l,0,{identifier:u,updater:h,references:1})}i.push(u)}return i}function n(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,n){var a=o(e=e||[],n=n||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=r(a[i]);t[l].references--}for(var c=o(e,n),s=0;s<a.length;s++){var d=r(a[s]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=c}}},659:e=>{var t={};e.exports=function(e,r){var o=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(r)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var o="";r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var n=void 0!==r.layer;n&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,n&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},48:(e,t,r)=>{r.d(t,{colors:()=>n});var o=r(761);const n={neutral:{neutral2:o.jE,neutral3:o.qg,neutral4:o.xU,white:o.bD,lightGray:o.d5,gray:o.Xg,darkGray:o.BP},brand:{brand1:o._q,brand2:o.f$,brand3:o.mN,light:o.Dq,aux:o.xM},semantic:{success:o.lb,warning:o.SO,error:o._r,errorDark:o.Ee},background:{white:o.bh,light:o.GW,blue:o.od},border:{default:o.hN,selected:o.z2,error:o.qO,focusRing:o.ot},text:{default:o.eg,light:o.XN},icon:{default:o.kE,blue:o.nL,white:o.ss,defaultDark:o.AC},hover:{dark:o.GJ,light:o.K5,neutral:o.VO},overlay:{default:o.ox},shadow:{default:o.xA},user:{you:o.sY}}},761:(e,t,r)=>{r.d(t,{AC:()=>D,BP:()=>c,Dq:()=>f,Ee:()=>x,GJ:()=>P,GW:()=>k,K5:()=>q,SO:()=>v,VO:()=>I,XN:()=>T,Xg:()=>l,_q:()=>p,_r:()=>y,bD:()=>s,bh:()=>w,d5:()=>i,eg:()=>j,f$:()=>b,hN:()=>C,jE:()=>o,kE:()=>z,lb:()=>$,mN:()=>h,nL:()=>M,od:()=>E,ot:()=>S,ox:()=>A,qO:()=>B,qg:()=>n,sY:()=>R,ss:()=>L,xA:()=>F,xM:()=>g,xU:()=>a,z2:()=>O});const o="var(--color-neutral-2, #717C91)",n="var(--color-neutral-3, #B0BDC9)",a="var(--color-neutral-4, #DCE4EC)",i="var(--color-light-gray, #F4F6FA)",l="var(--color-gray, #4E5A66)",c="var(--color-dark-gray, #393C48)",s="var(--color-white, var(--color-neutral-white, #FFFFFF))",d="var(--color-brand-1, #0F70D7)",u="var(--color-brand-light, #E5EFFB)",p=`var(--color-primary, ${d})`,b=`var(--color-brand-2, ${d})`,h=`var(--color-brand-3, ${d})`,f=`var(--color-blue-aux, ${u})`,g=`var(--color-brand-aux, var(--color-hover-light, ${u}))`,m="var(--color-error, #DF2721)",$="var(--color-success, #2DD36F)",v="var(--color-warning, #F59240)",y=`var(--color-danger, ${m})`,x="var(--color-danger-dark, var(--color-error-dark, #AE1010))",w=`var(--color-background-white, ${s})`,k=`var(--color-background-light, ${i})`,E=`var(--color-background-blue, ${u})`,O=`var(--color-border-selected, ${p})`,B=`var(--color-border-error, ${m})`,C=`var(--default-border, var(--color-border-default, ${n}))`,S="var(--color-border-focus-ring, rgba(29, 101, 212, 0.15))",j=`var(--color-text-default, ${c})`,T=`var(--color-text-light, ${o})`,z=`var(--color-icon-default, ${o})`,M=`var(--color-icon-blue, ${d})`,L=`var(--color-icon-white, ${s})`,D="var(--color-icon-default-dark, rgba(255, 255, 255, 0.35))",P="var(--color-hover-dark, #0C57A7)",q="var(--color-hover-light, #D4E5FA)",I=`var(--color-hover-neutral, ${a})`,A="var(--color-overlay, rgba(0, 0, 0, 0.75))",F="var(--color-shadow-default, rgb(0 35 11 / 20%))",R="var(--color-user-you, #19237C)"},410:e=>{e.exports=n},823:e=>{e.exports=o},764:e=>{e.exports=i},586:e=>{e.exports=l},189:e=>{e.exports=r},155:t=>{t.exports=e},215:e=>{e.exports=a},694:e=>{e.exports=t}},s={};function d(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={id:e,exports:{}};return c[e](r,r.exports,d),r.exports}d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.nc=void 0;var u={};d.r(u),d.d(u,{BBBAccordion:()=>ye,BBBAvatar:()=>Se,BBBCheckbox:()=>ut,BBBDivider:()=>bt,BBBHint:()=>xt,BBBInput:()=>Ct,BBBModal:()=>Rt,BBBNavigation:()=>Ht,BBBScrollArea:()=>Jt,BBBSearch:()=>cr,BBBSelect:()=>gr,BBBSlider:()=>zr,BBBSpinner:()=>rr,BBBTextAreaInput:()=>Lr,BBBTextInput:()=>Ar,BBBToggle:()=>Kr,BBBTypography:()=>Mt,BBButton:()=>rt,borderRadiusDefault:()=>T,borderRadiusSmall:()=>z,colorBackgroundBlue:()=>g.od,colorBackgroundLight:()=>g.GW,colorBackgroundWhite:()=>g.bh,colorBorderDefault:()=>g.hN,colorBorderError:()=>g.qO,colorBorderFocusRing:()=>g.ot,colorBorderSelected:()=>g.z2,colorBrand1:()=>g._q,colorBrand2:()=>g.f$,colorBrand3:()=>g.mN,colorBrandAux:()=>g.xM,colorBrandLight:()=>g.Dq,colorDarkGray:()=>g.BP,colorError:()=>g._r,colorErrorDark:()=>g.Ee,colorGray:()=>g.Xg,colorHoverDark:()=>g.GJ,colorHoverLight:()=>g.K5,colorHoverNeutral:()=>g.VO,colorIconBlue:()=>g.nL,colorIconDefault:()=>g.kE,colorIconDefaultDark:()=>g.AC,colorIconWhite:()=>g.ss,colorLightGray:()=>g.d5,colorNeutral2:()=>g.jE,colorNeutral3:()=>g.qg,colorNeutral4:()=>g.xU,colorOverlay:()=>g.ox,colorShadowDefault:()=>g.xA,colorSuccess:()=>g.lb,colorTextDefault:()=>g.eg,colorTextLight:()=>g.XN,colorUserYou:()=>g.sY,colorWarning:()=>g.SO,colorWhite:()=>g.bD,colors:()=>Yr.colors,spacingLarge:()=>C,spacingMedium:()=>O,spacingMediumLarge:()=>B,spacingSmall:()=>k,spacingSmallMedium:()=>E,spacingXLarge:()=>S,spacingXSmall:()=>w,spacingXXLarge:()=>j});var p=d(155),b=d.n(p),h=d(694),f=d.n(h),g=d(761);const m="0.75rem",$="0.875rem",v="1rem",y="1.125rem",x="400",w="0.25rem",k="0.5rem",E="0.75rem",O="1rem",B="1.25rem",C="1.5rem",S="2rem",j="3rem",T="1rem",z="0.5rem",M=f().button`
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("styled-components"),require("@tippyjs/react"),require("@mui/material"),require("@mui/icons-material"),require("react-modal"),require("@mui/material/Select"),require("@mui/material/styles"));else if("function"==typeof define&&define.amd)define(["react","styled-components","@tippyjs/react","@mui/material","@mui/icons-material","react-modal","@mui/material/Select","@mui/material/styles"],t);else{var r="object"==typeof exports?t(require("react"),require("styled-components"),require("@tippyjs/react"),require("@mui/material"),require("@mui/icons-material"),require("react-modal"),require("@mui/material/Select"),require("@mui/material/styles")):t(e.react,e["styled-components"],e["@tippyjs/react"],e["@mui/material"],e["@mui/icons-material"],e["react-modal"],e["@mui/material/Select"],e["@mui/material/styles"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e,t,r,o,n,a,i,l)=>(()=>{"use strict";var s={2:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(601),n=r.n(o),a=r(314),i=r.n(a)()(n());i.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const l=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",o=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),o&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),o&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,o,n,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(i[s]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);o&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),t.push(d))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function r(e){for(var r=-1,o=0;o<t.length;o++)if(t[o].identifier===e){r=o;break}return r}function o(e,o){for(var a={},i=[],l=0;l<e.length;l++){var s=e[l],c=o.base?s[0]+o.base:s[0],d=a[c]||0,u="".concat(c," ").concat(d);a[c]=d+1;var p=r(u),b={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(b);else{var h=n(b,o);o.byIndex=l,t.splice(l,0,{identifier:u,updater:h,references:1})}i.push(u)}return i}function n(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,n){var a=o(e=e||[],n=n||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=r(a[i]);t[l].references--}for(var s=o(e,n),c=0;c<a.length;c++){var d=r(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=s}}},659:e=>{var t={};e.exports=function(e,r){var o=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(r)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var o="";r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var n=void 0!==r.layer;n&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,n&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},48:(e,t,r)=>{r.d(t,{colors:()=>n});var o=r(761);const n={neutral:{neutral2:o.jE,neutral3:o.qg,neutral4:o.xU,white:o.bD,lightGray:o.d5,gray:o.Xg,darkGray:o.BP},brand:{brand1:o._q,brand2:o.f$,brand3:o.mN,light:o.Dq,aux:o.xM},semantic:{success:o.lb,warning:o.SO,error:o._r,errorDark:o.Ee},background:{white:o.bh,light:o.GW,blue:o.od},border:{default:o.hN,selected:o.z2,error:o.qO,focusRing:o.ot},text:{default:o.eg,light:o.XN},icon:{default:o.kE,blue:o.nL,white:o.ss,defaultDark:o.AC},hover:{dark:o.GJ,light:o.K5,neutral:o.VO},overlay:{default:o.ox},shadow:{default:o.xA},user:{you:o.sY}}},761:(e,t,r)=>{r.d(t,{AC:()=>R,BP:()=>s,Dq:()=>f,Ee:()=>k,G8:()=>x,GJ:()=>q,GW:()=>O,K5:()=>I,SO:()=>$,VO:()=>A,XN:()=>z,Xg:()=>l,_q:()=>p,_r:()=>w,bD:()=>c,bh:()=>E,d5:()=>i,eg:()=>L,f$:()=>b,hN:()=>j,jE:()=>o,kE:()=>M,lb:()=>v,mN:()=>h,nL:()=>D,od:()=>B,ot:()=>T,ox:()=>F,qO:()=>S,qg:()=>n,r:()=>y,sY:()=>H,ss:()=>P,xA:()=>N,xM:()=>g,xU:()=>a,z2:()=>C});const o="var(--color-neutral-2, #717C91)",n="var(--color-neutral-3, #B0BDC9)",a="var(--color-neutral-4, #DCE4EC)",i="var(--color-light-gray, #F4F6FA)",l="var(--color-gray, #4E5A66)",s="var(--color-dark-gray, #393C48)",c="var(--color-white, var(--color-neutral-white, #FFFFFF))",d="var(--color-brand-1, #0F70D7)",u="var(--color-brand-light, #E5EFFB)",p=`var(--color-primary, ${d})`,b=`var(--color-brand-2, ${d})`,h=`var(--color-brand-3, ${d})`,f=`var(--color-blue-aux, ${u})`,g=`var(--color-brand-aux, var(--color-hover-light, ${u}))`,m="var(--color-error, #DF2721)",v="var(--color-success, #2DD36F)",$="var(--color-warning, #F59240)",y="var(--color-success-dark, #209B51)",x="var(--color-warning-dark, #D8680B)",w=`var(--color-danger, ${m})`,k="var(--color-danger-dark, var(--color-error-dark, #AE1010))",E=`var(--color-background-white, ${c})`,O=`var(--color-background-light, ${i})`,B=`var(--color-background-blue, ${u})`,C=`var(--color-border-selected, ${p})`,S=`var(--color-border-error, ${m})`,j=`var(--default-border, var(--color-border-default, ${n}))`,T="var(--color-border-focus-ring, rgba(29, 101, 212, 0.15))",L=`var(--color-text-default, ${s})`,z=`var(--color-text-light, ${o})`,M=`var(--color-icon-default, ${o})`,D=`var(--color-icon-blue, ${d})`,P=`var(--color-icon-white, ${c})`,R="var(--color-icon-default-dark, rgba(255, 255, 255, 0.35))",q="var(--color-hover-dark, #0C57A7)",I="var(--color-hover-light, #D4E5FA)",A=`var(--color-hover-neutral, ${a})`,F="var(--color-overlay, rgba(0, 0, 0, 0.75))",N="var(--color-shadow-default, rgb(0 35 11 / 20%))",H="var(--color-user-you, #19237C)"},410:e=>{e.exports=n},823:e=>{e.exports=o},764:e=>{e.exports=i},586:e=>{e.exports=l},189:e=>{e.exports=r},155:t=>{t.exports=e},215:e=>{e.exports=a},694:e=>{e.exports=t}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={id:e,exports:{}};return s[e](r,r.exports,d),r.exports}d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.nc=void 0;var u={};d.r(u),d.d(u,{BBBAccordion:()=>xe,BBBAvatar:()=>je,BBBCheckbox:()=>$t,BBBDivider:()=>xt,BBBHint:()=>jt,BBBInput:()=>Pt,BBBModal:()=>Kt,BBBNavigation:()=>Qt,BBBScrollArea:()=>nr,BBBSearch:()=>gr,BBBSelect:()=>Er,BBBSlider:()=>Fr,BBBSpinner:()=>dr,BBBTextAreaInput:()=>Hr,BBBTextInput:()=>Ur,BBBToast:()=>yo,BBBToggle:()=>Po,BBBTypography:()=>Ft,BBButton:()=>it,borderRadiusDefault:()=>T,borderRadiusSmall:()=>L,colorBackgroundBlue:()=>g.od,colorBackgroundLight:()=>g.GW,colorBackgroundWhite:()=>g.bh,colorBorderDefault:()=>g.hN,colorBorderError:()=>g.qO,colorBorderFocusRing:()=>g.ot,colorBorderSelected:()=>g.z2,colorBrand1:()=>g._q,colorBrand2:()=>g.f$,colorBrand3:()=>g.mN,colorBrandAux:()=>g.xM,colorBrandLight:()=>g.Dq,colorDarkGray:()=>g.BP,colorError:()=>g._r,colorErrorDark:()=>g.Ee,colorGray:()=>g.Xg,colorHoverDark:()=>g.GJ,colorHoverLight:()=>g.K5,colorHoverNeutral:()=>g.VO,colorIconBlue:()=>g.nL,colorIconDefault:()=>g.kE,colorIconDefaultDark:()=>g.AC,colorIconWhite:()=>g.ss,colorLightGray:()=>g.d5,colorNeutral2:()=>g.jE,colorNeutral3:()=>g.qg,colorNeutral4:()=>g.xU,colorOverlay:()=>g.ox,colorShadowDefault:()=>g.xA,colorSuccess:()=>g.lb,colorSuccessDark:()=>g.r,colorTextDefault:()=>g.eg,colorTextLight:()=>g.XN,colorUserYou:()=>g.sY,colorWarning:()=>g.SO,colorWarningDark:()=>g.G8,colorWhite:()=>g.bD,colors:()=>Ro.colors,spacingLarge:()=>C,spacingMedium:()=>O,spacingMediumLarge:()=>B,spacingSmall:()=>k,spacingSmallMedium:()=>E,spacingXLarge:()=>S,spacingXSmall:()=>w,spacingXXLarge:()=>j});var p=d(155),b=d.n(p),h=d(694),f=d.n(h),g=d(761);const m="0.75rem",v="0.875rem",$="1rem",y="1.125rem",x="400",w="0.25rem",k="0.5rem",E="0.75rem",O="1rem",B="1.25rem",C="1.5rem",S="2rem",j="3rem",T="1rem",L="0.5rem",z=f().button`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
background: none;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
&:hover {
|
|
12
12
|
background: ${g.GW};
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,M=f().div`
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
width: 100%;
|
|
@@ -43,47 +43,47 @@
|
|
|
43
43
|
display: flex;
|
|
44
44
|
align-items: center;
|
|
45
45
|
margin-left: ${({$position:e})=>"right"===e?"auto":"0"};
|
|
46
|
-
`,
|
|
47
|
-
font-size: ${
|
|
46
|
+
`,R=f().span`
|
|
47
|
+
font-size: ${$};
|
|
48
48
|
font-weight: 400;
|
|
49
49
|
color: ${g.eg};
|
|
50
50
|
overflow: hidden;
|
|
51
51
|
text-overflow: ellipsis;
|
|
52
|
-
`,
|
|
52
|
+
`,q=f().div`
|
|
53
53
|
max-height: ${({$expanded:e,$scrollHeight:t})=>e?`${t}px`:"0"};
|
|
54
54
|
overflow: hidden;
|
|
55
55
|
transition: max-height 0.3s ease-in-out;
|
|
56
56
|
padding: 0px 1rem;
|
|
57
|
-
`;var
|
|
57
|
+
`;var I={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},A=p.createContext&&p.createContext(I),F=["attr","size","title"];function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},N.apply(null,arguments)}function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach(function(t){W(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(e){return e&&e.map((e,t)=>p.createElement(e.tag,_({key:t},e.attr),G(e.child)))}function X(e){return t=>p.createElement(U,N({attr:_({},e.attr)},t),G(e.child))}function U(e){var t=t=>{var r,{attr:o,size:n,title:a}=e,i=function(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,F),l=n||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),p.createElement("svg",N({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,i,{className:r,style:_(_({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&p.createElement("title",null,a),e.children)};return void 0!==A?p.createElement(A.Consumer,null,e=>t(e)):t(I)}function K(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(e)}function V(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13.5L7.5 11l1.42-1.41L12 12.67l3.08-3.08L16.5 11 12 15.5z"},child:[]}]})(e)}function Y(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function J(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(e)}function Q(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},child:[]}]})(e)}function Z(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"},child:[]}]})(e)}var ee=d(189),te=d.n(ee),re=d(72),oe=d.n(re),ne=d(825),ae=d.n(ne),ie=d(659),le=d.n(ie),se=d(56),ce=d.n(se),de=d(540),ue=d.n(de),pe=d(113),be=d.n(pe),he=d(2),fe={};fe.styleTagTransform=be(),fe.setAttributes=ce(),fe.insert=le().bind(null,"head"),fe.domAPI=ae(),fe.insertStyleElement=ue(),oe()(he.A,fe),he.A&&he.A.locals&&he.A.locals;const ge=[{name:"hideOnEsc",defaultValue:!0,fn({hide:e}){const t=t=>{"Escape"===t.key&&e()},r=()=>document.removeEventListener("keydown",t,!0);return{onShow(){document.addEventListener("keydown",t,!0)},onHide:r,onDestroy:r}}}],me={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},ve=(Object.values(me),me.TOP),$e={LEFT:"left",RIGHT:"right"},ye=(Object.values($e),$e.LEFT),xe=function({title:e,tooltipLabel:t,tooltipPlacement:r=ve,ariaLabel:o,ariaLabelledBy:n,ariaDescribedBy:a,buttonHeader:i=null,buttonHeaderPosition:l=ye,children:s}){var c;const[d,u]=(0,p.useState)(!1),h=(0,p.useRef)(null),f=b().createElement(z,{onClick:()=>u(e=>!e),"aria-label":o,"aria-labelledby":n,"aria-describedby":a},b().createElement(M,null,b().createElement(D,{$expanded:d},b().createElement(K,null)),b().createElement(R,null,e),b().createElement(P,{$position:l},i)));return b().createElement(b().Fragment,null,t?b().createElement(te(),{content:t,placement:r,plugins:ge},f):f,b().createElement(q,{ref:h,$expanded:d,$scrollHeight:(null===(c=h.current)||void 0===c?void 0:c.scrollHeight)||0},s))},we={SMALL:"small",MEDIUM:"medium",LARGE:"large"},ke=(Object.values(we),we.MEDIUM),Ee=["#7b1fa2","#6a1b9a","#4a148c","#5e35b1","#512da8","#4527a0","#311b92","#3949ab","#303f9f","#283593","#1a237e","#1976d2","#1565c0","#0d47a1","#0277bd","#01579b"],Oe={[we.SMALL]:{dimension:"1.625rem",fontSize:"0.625rem",fontWeight:"600"},[we.MEDIUM]:{dimension:"3rem",fontSize:"1.125rem",fontWeight:"500"},[we.LARGE]:{dimension:"6rem",fontSize:"2.75rem",fontWeight:"400"}},Be=h.css`
|
|
58
58
|
${({$isTalking:e,$color:t})=>{return e&&h.css`
|
|
59
59
|
animation: ${r=t,h.keyframes`
|
|
60
60
|
0% { box-shadow: 0 0 0 0 ${r}; }
|
|
61
61
|
100% { box-shadow: 0 0 0 4px transparent; }
|
|
62
62
|
`} 1s infinite ease-in;
|
|
63
63
|
`;var r}}
|
|
64
|
-
`,
|
|
65
|
-
width: ${({$size:e})=>
|
|
66
|
-
height: ${({$size:e})=>
|
|
64
|
+
`,Ce=f().div`
|
|
65
|
+
width: ${({$size:e})=>Oe[e].dimension};
|
|
66
|
+
height: ${({$size:e})=>Oe[e].dimension};
|
|
67
67
|
border-radius: ${({$isModerator:e})=>e?"20%":"50%"};
|
|
68
68
|
flex-shrink: 0;
|
|
69
69
|
background: ${({$color:e})=>e};
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: center;
|
|
72
72
|
justify-content: center;
|
|
73
|
-
font-size: ${({$size:e})=>
|
|
74
|
-
font-weight: ${({$size:e})=>
|
|
73
|
+
font-size: ${({$size:e})=>Oe[e].fontSize};
|
|
74
|
+
font-weight: ${({$size:e})=>Oe[e].fontWeight};
|
|
75
75
|
color: ${g.bD};
|
|
76
76
|
text-transform: uppercase;
|
|
77
|
-
${
|
|
78
|
-
`,
|
|
79
|
-
width: ${({$size:e})=>
|
|
80
|
-
height: ${({$size:e})=>
|
|
77
|
+
${Be}
|
|
78
|
+
`,Se=f().img`
|
|
79
|
+
width: ${({$size:e})=>Oe[e].dimension};
|
|
80
|
+
height: ${({$size:e})=>Oe[e].dimension};
|
|
81
81
|
border-radius: ${({$isModerator:e})=>e?"20%":"50%"};
|
|
82
82
|
flex-shrink: 0;
|
|
83
83
|
object-fit: cover;
|
|
84
84
|
border: 2px solid ${({$color:e})=>e};
|
|
85
|
-
${
|
|
86
|
-
`,
|
|
85
|
+
${Be}
|
|
86
|
+
`,je=function({name:e,avatarUrl:t,color:r,size:o=ke,isModerator:n=!1,isYou:a=!1,isTalking:i=!1,disableTooltip:l=!1}){const[s,c]=(0,p.useState)(!1),d=r||(a?g.sY:function(e){const t=e.split("").reduce((e,t)=>e+t.charCodeAt(0),0);return Ee[t%Ee.length]}(e));(0,p.useEffect)(()=>{c(!1)},[t]);const u=t&&!s?b().createElement(Se,{src:t,alt:e,$size:o,$color:d,$isModerator:n,$isTalking:i,onError:()=>c(!0)}):b().createElement(Ce,{$size:o,$color:d,$isModerator:n,$isTalking:i},function(e){const t=e.trim().split(/\s+/).filter(Boolean);return 0===t.length?"":1===t.length?t[0].slice(0,2).toUpperCase():`${t[0][0]}${t[t.length-1][0]}`.toUpperCase()}(e));return l?u:b().createElement(te(),{content:e,placement:"top",plugins:ge},u)},Te={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary",SUBTLE:"subtle"},Le=Object.values(Te)[0],ze=Object.values({DEFAULT:"default",DANGER:"danger",NEUTRAL:"neutral"})[0],Me={MEDIUM:"md",SMALL:"sm"},De=Object.values(Me)[0],Pe={DEFAULT:"default",STACKED:"stacked",CIRCLE:"circle",SQUARED:"squared"},Re=Object.values(Pe)[0],qe={NOWRAP:"nowrap",WRAP:"wrap",ELLIPSIS:"ellipsis"},Ie=(Object.values(qe),qe.NOWRAP),Ae={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Fe=(Object.values(Ae),Ae.TOP),Ne={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},He=(Object.values(Ne),Ne.BUTTON),_e={primary:{default:{color:g.bD,background:g._q,border:g._q,hoverColor:g.bD,hoverBackground:g.GJ,hoverBorder:g.GJ,outline:g._q},danger:{color:g.bD,background:g._r,border:g.qO,hoverColor:g.bD,hoverBackground:g.Ee,hoverBorder:g.qO,outline:g._r},neutral:{color:g.Xg,background:g.bD,border:!1,hoverColor:g.Xg,hoverBackground:g.xM,hoverBorder:!1,outline:g._q}},secondary:{default:{color:g._q,background:g.bh,border:g.z2,hoverColor:g.GJ,hoverBackground:g.bh,hoverBorder:g.GJ,outline:g._q},danger:{color:g._r,background:g.bh,border:g.qO,hoverColor:g.Ee,hoverBackground:g.bh,hoverBorder:g.Ee,outline:g._r},neutral:{color:g.Xg,background:g.bD,border:!1,hoverColor:g.Xg,hoverBackground:g.xM,hoverBorder:!1,outline:g._q}},tertiary:{default:{color:g._q,background:g.od,border:!1,hoverColor:g.GJ,hoverBackground:g.K5,hoverBorder:!1,outline:g._q},danger:{color:g.bD,background:g.Ee,border:!1,hoverColor:g.bD,hoverBackground:g._r,hoverBorder:!1,outline:g.Ee},neutral:{color:g.Xg,background:g.bD,border:!1,hoverColor:g.Xg,hoverBackground:g.xM,hoverBorder:!1,outline:g._q}},subtle:{default:{color:g.XN,iconColor:g.kE,background:"transparent",border:!1,hoverColor:g.XN,hoverBackground:g.d5,hoverBorder:!1,outline:g.kE},danger:{color:g._r,background:!1,border:!1,hoverColor:g.Ee,hoverBackground:g.d5,hoverBorder:!1,outline:g._r},neutral:{color:g.Xg,background:"transparent",border:!1,hoverColor:g.Xg,hoverBackground:g.d5,hoverBorder:!1,outline:g.kE}}},We={color:g.qg,background:g.GW,border:!1,outline:g.qg},Ge={sm:{padding:`${k} ${E}`,iconBoxSize:S},md:{padding:O,iconBoxSize:j}},Xe=h.css`
|
|
87
87
|
cursor: pointer;
|
|
88
88
|
user-select: none;
|
|
89
89
|
font-weight: 600;
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
position: relative;
|
|
95
95
|
transition: opacity 0.2s ease-in-out;
|
|
96
96
|
|
|
97
|
-
${({$size:e})=>{var t;return`padding: ${(null!==(t=
|
|
97
|
+
${({$size:e})=>{var t;return`padding: ${(null!==(t=Ge[null!=e?e:De])&&void 0!==t?t:Ge[De]).padding};`}}
|
|
98
98
|
|
|
99
|
-
${({$color:e,$variant:t})=>{const r=e||ze,o=t||
|
|
99
|
+
${({$color:e,$variant:t})=>{const r=e||ze,o=t||Le,{color:n,iconColor:a,background:i,border:l,hoverColor:s,hoverBackground:c,hoverBorder:d,outline:u}=_e[o][r];return h.css`
|
|
100
100
|
& span {
|
|
101
101
|
color: ${n};
|
|
102
102
|
}
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
|
|
107
107
|
&&:hover:not(:has(> [data-is-aux-icon]:hover)),
|
|
108
108
|
&&:active {
|
|
109
|
-
color: ${
|
|
110
|
-
${
|
|
109
|
+
color: ${s};
|
|
110
|
+
${c&&`background-color: ${c};`}
|
|
111
111
|
${d?`border: 1px solid ${d};`:"border: 1px solid transparent;"}
|
|
112
112
|
}
|
|
113
113
|
&&:focus {
|
|
@@ -116,9 +116,9 @@
|
|
|
116
116
|
}
|
|
117
117
|
`}}
|
|
118
118
|
|
|
119
|
-
${({$variant:e})=>e===
|
|
119
|
+
${({$variant:e})=>e===Te.SUBTLE&&"\n text-decoration: underline;\n "}
|
|
120
120
|
|
|
121
|
-
${({disabled:e})=>{if(!e)return null;const{color:t,background:r,border:o,outline:n}=
|
|
121
|
+
${({disabled:e})=>{if(!e)return null;const{color:t,background:r,border:o,outline:n}=We;return h.css`
|
|
122
122
|
pointer-events: none;
|
|
123
123
|
cursor: not-allowed;
|
|
124
124
|
& span {
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
outline: 2px solid ${n};
|
|
140
140
|
}
|
|
141
141
|
`}}
|
|
142
|
-
`,
|
|
142
|
+
`,Ue=h.css`
|
|
143
143
|
width: 4.5rem;
|
|
144
144
|
height: 4.5rem;
|
|
145
145
|
border-radius: ${T} !important;
|
|
@@ -150,41 +150,42 @@
|
|
|
150
150
|
flex-direction: column;
|
|
151
151
|
justify-content: center;
|
|
152
152
|
align-items: center;
|
|
153
|
-
`,
|
|
154
|
-
${({$size:e})=>{var t;const r=null!=e?e:
|
|
153
|
+
`,Ke=h.css`
|
|
154
|
+
${({$size:e})=>{var t;const r=null!=e?e:De,{iconBoxSize:o}=null!==(t=Ge[r])&&void 0!==t?t:Ge[De];return`width: ${o}; height: ${o};`}}
|
|
155
155
|
aspect-ratio: 1;
|
|
156
156
|
padding: 0;
|
|
157
157
|
display: flex;
|
|
158
158
|
justify-content: center;
|
|
159
159
|
align-items: center;
|
|
160
|
-
`,
|
|
161
|
-
${
|
|
160
|
+
`,Ve=h.css`
|
|
161
|
+
${Ke}
|
|
162
162
|
border-radius: 50%;
|
|
163
|
-
`,
|
|
164
|
-
${
|
|
165
|
-
border-radius: ${
|
|
166
|
-
`,
|
|
163
|
+
`,Ye=h.css`
|
|
164
|
+
${Ke}
|
|
165
|
+
border-radius: ${L};
|
|
166
|
+
`,Je=h.css`
|
|
167
167
|
display: ${({$fullWidth:e})=>e?"flex":"inline-flex"};
|
|
168
168
|
${({$fullWidth:e})=>e&&"width: 100%;"}
|
|
169
|
+
${({$labelOverflow:e})=>{switch(e){case qe.WRAP:return"\n white-space: normal;\n overflow-wrap: anywhere;\n ";case qe.ELLIPSIS:return"\n min-width: 0;\n max-width: 100%;\n ";default:return null}}}
|
|
169
170
|
justify-content: center;
|
|
170
171
|
align-items: center;
|
|
171
172
|
gap: ${k};
|
|
172
173
|
border-radius: ${T};
|
|
173
|
-
`,
|
|
174
|
-
${({$layout:e})=>e===
|
|
175
|
-
`,
|
|
176
|
-
${
|
|
174
|
+
`,Qe=f().div`
|
|
175
|
+
${({$layout:e})=>e===Pe.STACKED&&`\n width: 5rem;\n display: flex;\n flex-direction: column;\n gap: ${k};\n align-items: center;\n `}
|
|
176
|
+
`,Ze=f().button`
|
|
177
|
+
${Xe}
|
|
177
178
|
|
|
178
|
-
${({$layout:e})=>{switch(e){case
|
|
179
|
-
`,
|
|
179
|
+
${({$layout:e})=>{switch(e){case Pe.STACKED:return Ue;case Pe.CIRCLE:return Ve;case Pe.SQUARED:return Ye;default:return Je}}}
|
|
180
|
+
`,et=f().div`
|
|
180
181
|
${({$hover:e,$variant:t,$color:r})=>e?h.css`
|
|
181
182
|
&&:hover,
|
|
182
183
|
&&:active {
|
|
183
|
-
${
|
|
184
|
+
${_e[t][r].hoverBackground&&`background-color: ${_e[t][r].hoverBackground};`}
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
&&:focus {
|
|
187
|
-
outline: 1px solid ${
|
|
188
|
+
outline: 1px solid ${_e[t][r].outline};
|
|
188
189
|
}
|
|
189
190
|
`:null}
|
|
190
191
|
border-radius: 50%;
|
|
@@ -195,11 +196,11 @@
|
|
|
195
196
|
& svg {
|
|
196
197
|
font-size: 1.25rem;
|
|
197
198
|
}
|
|
198
|
-
`,
|
|
199
|
+
`,tt=f().div`
|
|
199
200
|
display: flex;
|
|
200
201
|
align-items: center;
|
|
201
202
|
justify-content: center;
|
|
202
|
-
`,
|
|
203
|
+
`,rt=f().div`
|
|
203
204
|
display: flex;
|
|
204
205
|
align-items: center;
|
|
205
206
|
justify-content: center;
|
|
@@ -208,14 +209,16 @@
|
|
|
208
209
|
> i {
|
|
209
210
|
font-size: 2rem;
|
|
210
211
|
}
|
|
211
|
-
`,
|
|
212
|
+
`,ot=f().span`
|
|
212
213
|
display: inline-flex;
|
|
213
214
|
align-items: center;
|
|
214
215
|
justify-content: center;
|
|
215
216
|
gap: ${k};
|
|
216
|
-
`,
|
|
217
|
+
`,nt=f().span`
|
|
218
|
+
${({$truncate:e})=>e&&"\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}
|
|
219
|
+
`,at=f().div`
|
|
217
220
|
color: ${g.eg};
|
|
218
|
-
font-size: ${
|
|
221
|
+
font-size: ${v};
|
|
219
222
|
width: 100%;
|
|
220
223
|
text-align: center;
|
|
221
224
|
line-height: 1;
|
|
@@ -224,26 +227,49 @@
|
|
|
224
227
|
display: -webkit-box;
|
|
225
228
|
-webkit-line-clamp: 2;
|
|
226
229
|
-webkit-box-orient: vertical;
|
|
227
|
-
`,
|
|
228
|
-
display: inline-
|
|
230
|
+
`,it=function(e){const{id:t="",dataTest:r,label:o,tooltipLabel:n,tooltipPlacement:a=Fe,onClick:i,onKeyDown:l,ariaLabel:s="",ariaLabelledBy:c="",ariaDescribedBy:d="",color:u=ze,variant:h=Le,size:f=De,layout:g=Re,type:m=He,disabled:v=!1,children:$,showFeedback:y=!1,feedbackContent:x=b().createElement(Z,{fontSize:"small"}),feedbackDuration:w=2e3,className:k}=e,E=g===Pe.DEFAULT&&"labelOverflow"in e&&e.labelOverflow||Ie,O=E===qe.ELLIPSIS,B=(0,p.useRef)(null),[C,S]=(0,p.useState)(!1);(0,p.useEffect)(()=>()=>{B.current&&clearTimeout(B.current)},[]);const j=(0,p.useCallback)(e=>{i(e),y&&(S(!0),B.current&&clearTimeout(B.current),B.current=setTimeout(()=>S(!1),w))},[i,y,w]),T=(0,p.useRef)(null),[L,z]=(0,p.useState)(!1);(0,p.useEffect)(()=>{const e=T.current;if(!O||!e||"undefined"==typeof ResizeObserver)return void z(!1);const t=new ResizeObserver(()=>{z(e.scrollWidth>e.clientWidth)});return t.observe(e),()=>t.disconnect()},[O,o,C]);const M={},D=(0,p.useId)(),P=`${t||D}-label`,R=g===Pe.STACKED||g===Pe.DEFAULT&&(Boolean(o)||C);M["aria-label"]=s||o,c?M["aria-labelledby"]=c:R&&(M["aria-labelledby"]=P),d&&(M["aria-describedby"]=d);const q=(()=>{if(e.layout===Pe.CIRCLE||e.layout===Pe.SQUARED){const{icon:o}=e,n=r||`button-${t||"default"}`;return b().createElement(Ze,Object.assign({id:t,className:k,type:m,"data-test":n,onClick:j,onKeyDown:l},M,{$color:u,$variant:h,$size:f,$layout:g,disabled:v}),C?b().createElement(ot,{role:"status","aria-live":"polite"},x):o)}if(e.layout===Pe.STACKED){const{icon:n,helperIcon:a=b().createElement(J,{fontSize:"small"}),hideHelperIcon:i=!1,helperOnClick:s=null}=e,c=r||`${Pe.STACKED}-button-${t||o||"default"}`;return b().createElement(Qe,{className:k,"data-test":c,$layout:g},b().createElement(Ze,Object.assign({id:t,type:m,onClick:j,onKeyDown:l},M,{$color:u,$variant:h,$size:f,$layout:g,disabled:v}),!i&&b().createElement(et,Object.assign({},s&&{"data-is-aux-icon":!0},s&&{"aria-label":M["aria-label"]+" helper"},s&&{role:"button"},{$hover:null!==s,$color:u,$variant:h,onClick:e=>{s&&(s(e),e.preventDefault(),e.stopPropagation())}}),b().createElement(tt,null,a)),C?b().createElement(rt,null,b().createElement(ot,{role:"status","aria-live":"polite"},x)):n&&b().createElement(rt,null,n)),b().createElement(at,{id:P},o))}const{iconStart:n,iconEnd:a,fullWidth:i=!1}=e,s=r||`button-${t||o||"default"}`;return b().createElement(Ze,Object.assign({id:t,className:k,type:m,"data-test":s,onClick:j,onKeyDown:l},M,{$color:u,$variant:h,$size:f,$layout:g,$fullWidth:i,$labelOverflow:E,disabled:v}),C?b().createElement(ot,{id:P,role:"status","aria-live":"polite"},x):b().createElement(b().Fragment,null,n&&n,o&&b().createElement(nt,{id:P,ref:T,$truncate:O},o),$,a&&a))})(),I=!n&&O&&Boolean(o);return n||I?b().createElement(te(),{content:n||o,placement:a,plugins:ge,disabled:I&&!L,aria:{content:I?null:"auto"}},q):q};var lt=d(823);const st={RIGHT:"right",LEFT:"left"},ct=Object.values(st)[0],dt={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},ut=(Object.values(dt),dt.TOP),pt=f().div`
|
|
231
|
+
display: inline-grid;
|
|
232
|
+
grid-template-areas: ${({$layout:e,$hasLabel:t,$hasHelperText:r})=>{const o=t||r?[["box",t?"label":"helper"]]:[["box"]];return t&&r&&o.push([".","helper"]),(e===st.LEFT?o.map(e=>[...e].reverse()):o).map(e=>`"${e.join(" ")}"`).join(" ")}};
|
|
233
|
+
column-gap: ${k};
|
|
229
234
|
align-items: center;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
235
|
+
text-align: ${({$layout:e})=>e===st.LEFT?"end":"start"};
|
|
236
|
+
|
|
237
|
+
& > .MuiCheckbox-root {
|
|
238
|
+
grid-area: box;
|
|
239
|
+
}
|
|
240
|
+
`,bt=f().label`
|
|
241
|
+
color: ${({$disabled:e})=>e?g.qg:g.eg};
|
|
242
|
+
font-size: ${$};
|
|
243
|
+
font-style: normal;
|
|
244
|
+
font-weight: 400;
|
|
245
|
+
line-height: normal;
|
|
246
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
247
|
+
grid-area: label;
|
|
248
|
+
`,ht=f().label`
|
|
249
|
+
color: ${({$disabled:e})=>e?g.qg:g.XN};
|
|
233
250
|
font-size: ${v};
|
|
234
251
|
font-style: normal;
|
|
235
252
|
font-weight: 400;
|
|
236
253
|
line-height: normal;
|
|
237
|
-
cursor: pointer;
|
|
238
|
-
|
|
254
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
255
|
+
grid-area: helper;
|
|
256
|
+
`,ft=f()(lt.Checkbox)`
|
|
239
257
|
&.MuiCheckbox-root {
|
|
240
258
|
padding: 0;
|
|
259
|
+
border-radius: ${({$round:e})=>e?"50%":L};
|
|
241
260
|
}
|
|
242
261
|
|
|
243
|
-
|
|
262
|
+
&&.Mui-checked:not(.Mui-disabled),
|
|
263
|
+
&&.MuiCheckbox-indeterminate:not(.Mui-disabled) {
|
|
244
264
|
color: ${g._q};
|
|
245
265
|
}
|
|
246
|
-
|
|
266
|
+
|
|
267
|
+
&.Mui-focusVisible,
|
|
268
|
+
&.Mui-disabled:has(input:focus-visible) {
|
|
269
|
+
outline: 2px solid ${g._q};
|
|
270
|
+
outline-offset: 2px;
|
|
271
|
+
}
|
|
272
|
+
`;var gt=d(410),mt=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const vt=e=>e.preventDefault(),$t=function(e){var{label:t,layout:r=ct,helperText:o,round:n=!1,ariaLabel:a,id:i,dataTest:l,slotProps:s,disabled:c,tooltipLabel:d,tooltipPlacement:u=ut}=e,h=mt(e,["label","layout","helperText","round","ariaLabel","id","dataTest","slotProps","disabled","tooltipLabel","tooltipPlacement"]);const f=(0,p.useId)(),g=(0,p.useRef)(null),m=null!=i?i:f,v=`${m}-label`,$=`${m}-helper`,y=`${m}-tooltip`,x=Boolean(a||t),w=Boolean(d&&!x&&!o);let k;!a&&t?k=v:w&&(k=y);const E={"aria-label":a,"aria-labelledby":k,"aria-describedby":[x&&o&&$,d&&!w&&y].filter(Boolean).join(" ")||void 0,"data-test":l},O=Boolean(c&&d),B=O?{disabled:!1,"aria-disabled":!0,name:void 0,required:!1}:{},C=null!=s?s:{},{input:S}=C,j=mt(C,["input"]),T="function"==typeof S?e=>Object.assign(Object.assign(Object.assign({},E),S(e)),B):Object.assign(Object.assign(Object.assign({},E),S),B),L=b().createElement(ft,Object.assign({},h,{id:m,disabled:c,$round:n},O&&{onClick:vt},{icon:n?b().createElement(gt.RadioButtonUnchecked,null):void 0,checkedIcon:n?b().createElement(gt.RadioButtonChecked,null):void 0,slotProps:Object.assign(Object.assign({},j),{input:T})}));if(!t&&!o&&!d)return L;const z=t&&b().createElement(bt,{id:v,htmlFor:m,$disabled:c},t);return b().createElement(b().Fragment,null,b().createElement(pt,{ref:g,$layout:r,$hasLabel:!!t,$hasHelperText:!!o},r===st.LEFT&&z,L,r===st.RIGHT&&z,o&&b().createElement(ht,{id:$,htmlFor:m,$disabled:c},o),d&&b().createElement("span",{id:y,hidden:!0},d)),d&&b().createElement(te(),{reference:g,content:d,placement:u,trigger:"mouseenter focusin",aria:{content:null},plugins:ge}))},yt=f().hr`
|
|
247
273
|
width: 100%;
|
|
248
274
|
border-top: 0px;
|
|
249
275
|
border-right: 0px;
|
|
@@ -251,31 +277,31 @@
|
|
|
251
277
|
border-image: initial;
|
|
252
278
|
border-bottom: 1px solid ${g.hN};
|
|
253
279
|
margin: 0px;
|
|
254
|
-
`,
|
|
280
|
+
`,xt=function(){return b().createElement(yt,null)},wt=f().div`
|
|
255
281
|
display: flex;
|
|
256
282
|
flex-direction: column;
|
|
257
283
|
gap: ${k};
|
|
258
284
|
padding: ${O};
|
|
259
285
|
background-color: ${g.GW};
|
|
260
|
-
`,
|
|
286
|
+
`,kt=f().div`
|
|
261
287
|
display: flex;
|
|
262
288
|
flex-direction: row;
|
|
263
289
|
gap: ${E};
|
|
264
|
-
`,
|
|
290
|
+
`,Et=f().div`
|
|
265
291
|
display: flex;
|
|
266
292
|
align-items: center;
|
|
267
293
|
justify-content: space-between;
|
|
268
|
-
`,
|
|
294
|
+
`,Ot=f().div`
|
|
269
295
|
color: ${g._q};
|
|
270
296
|
display: flex;
|
|
271
297
|
align-items: center;
|
|
272
|
-
|
|
298
|
+
`,Bt=f().label`
|
|
273
299
|
color: ${g.eg};
|
|
274
|
-
font-size: ${
|
|
300
|
+
font-size: ${$}
|
|
275
301
|
font-style: normal;
|
|
276
302
|
font-weight: 600;
|
|
277
303
|
line-height: normal;
|
|
278
|
-
`,
|
|
304
|
+
`,Ct=f().button`
|
|
279
305
|
display: flex;
|
|
280
306
|
align-items: center;
|
|
281
307
|
justify-content: center;
|
|
@@ -294,25 +320,25 @@
|
|
|
294
320
|
&&:focus {
|
|
295
321
|
outline: 2px solid ${g._q};
|
|
296
322
|
}
|
|
297
|
-
`,
|
|
323
|
+
`,St=f().label`
|
|
298
324
|
color: ${g.eg};
|
|
299
|
-
font-size: ${
|
|
325
|
+
font-size: ${$};
|
|
300
326
|
font-style: normal;
|
|
301
327
|
font-weight: 400;
|
|
302
328
|
line-height: normal;
|
|
303
|
-
border-radius: ${
|
|
304
|
-
`;const
|
|
329
|
+
border-radius: ${L};
|
|
330
|
+
`;const jt=function(e){var{title:t,label:r,icon:o=b().createElement(Q,{fontSize:"1rem"}),open:n,onRequestClose:a,hideCloseButton:i=!1,children:l}=e,s=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["title","label","icon","open","onRequestClose","hideCloseButton","children"]);const c=void 0!==n,[d,u]=(0,p.useState)(!0);if(!(c?n:d))return null;const h=b().createElement(St,null,r,l);return b().createElement(wt,Object.assign({role:"status","aria-live":"polite","aria-atomic":"true","aria-label":t||r},s),b().createElement(Et,null,b().createElement(kt,null,b().createElement(Ot,{"aria-hidden":"true"},o),t&&b().createElement(Bt,null,t),!t&&h),!i&&b().createElement(Ct,{type:"button","aria-label":"Close",onClick:()=>{c||u(!1),null==a||a()}},b().createElement(Y,{fontSize:"1rem"}))),t&&h)},Tt=f().div`
|
|
305
331
|
display: flex;
|
|
306
332
|
flex-direction: column;
|
|
307
333
|
width: 100%;
|
|
308
334
|
gap: ${k};
|
|
309
|
-
`,
|
|
335
|
+
`,Lt=f().label`
|
|
310
336
|
color: ${g.eg};
|
|
311
|
-
font-size: ${
|
|
337
|
+
font-size: ${v};
|
|
312
338
|
font-style: normal;
|
|
313
339
|
font-weight: 400;
|
|
314
340
|
line-height: normal;
|
|
315
|
-
`,
|
|
341
|
+
`,zt=f().div`
|
|
316
342
|
display: flex;
|
|
317
343
|
align-items: center;
|
|
318
344
|
width: 100%;
|
|
@@ -338,7 +364,7 @@
|
|
|
338
364
|
cursor: not-allowed;
|
|
339
365
|
pointer-events: none;
|
|
340
366
|
`}
|
|
341
|
-
`,
|
|
367
|
+
`,Mt=f().textarea`
|
|
342
368
|
flex: 1;
|
|
343
369
|
min-width: 0;
|
|
344
370
|
resize: none;
|
|
@@ -347,7 +373,7 @@
|
|
|
347
373
|
background: transparent;
|
|
348
374
|
color: ${g.eg};
|
|
349
375
|
font-family: inherit;
|
|
350
|
-
font-size: ${
|
|
376
|
+
font-size: ${v};
|
|
351
377
|
line-height: 1.5;
|
|
352
378
|
padding: 0;
|
|
353
379
|
|
|
@@ -362,9 +388,9 @@
|
|
|
362
388
|
[dir='rtl'] & {
|
|
363
389
|
text-align: right;
|
|
364
390
|
}
|
|
365
|
-
`,
|
|
391
|
+
`,Dt=f().div`
|
|
366
392
|
color: ${g.eg};
|
|
367
|
-
font-size: ${
|
|
393
|
+
font-size: ${v};
|
|
368
394
|
font-style: normal;
|
|
369
395
|
font-weight: 400;
|
|
370
396
|
line-height: normal;
|
|
@@ -377,21 +403,21 @@
|
|
|
377
403
|
${({$error:e})=>e&&h.css`
|
|
378
404
|
color: ${g._r};
|
|
379
405
|
`}
|
|
380
|
-
`,
|
|
406
|
+
`,Pt=function({label:e,placeholder:t,value:r,onChange:o,onSubmit:n,buttonIcon:a,buttonLabel:i,buttonAriaLabel:l,buttonVariant:s="primary",dataTest:c,buttonDataTest:d,beforeButton:u,afterButton:h,submitOnEnter:f=!0,showSentFeedback:g=!1,sentFeedbackContent:m="Message sent",sentFeedbackDuration:v=2e3,disabled:$=!1,error:y=!1,helperText:x,minRows:w=1,maxRows:k=3,maxLength:E,autoFocus:O=!1,inputRef:B,id:C,"aria-label":S,"aria-describedby":j}){const T=void 0!==r,[L,z]=(0,p.useState)(""),M=T?null!=r?r:"":L,D=(0,p.useId)(),P=null!=C?C:D,R=(0,p.useRef)(null),q=(0,p.useRef)(null),[I,A]=(0,p.useState)(!1),F=(0,p.useCallback)(e=>{R.current=e,"function"==typeof B?B(e):B&&"current"in B&&(B.current=e)},[B]);(0,p.useEffect)(()=>{const e=R.current;if(!e)return;e.style.height="auto";const t=window.getComputedStyle(e),r=parseFloat(t.lineHeight)||20,o=[t.paddingTop,t.paddingBottom,t.borderTopWidth,t.borderBottomWidth].reduce((e,t)=>e+(parseFloat(t)||0),0),n=r*w+o,a=r*k+o,i=Math.min(Math.max(e.scrollHeight,n),a);e.style.height=`${i}px`,e.style.overflowY=e.scrollHeight>a?"auto":"hidden"},[M,w,k]),(0,p.useEffect)(()=>()=>{q.current&&clearTimeout(q.current)},[]),(0,p.useEffect)(()=>{O&&R.current&&R.current.focus()},[O]);const N=(0,p.useCallback)(e=>{const t=e.target.value;T?null==o||o(t):z(t)},[T,o]),H=(0,p.useCallback)(()=>{var e;if($)return;const t=M.trim();t&&(n(t),T||z(""),null===(e=R.current)||void 0===e||e.focus(),g&&(A(!0),q.current&&clearTimeout(q.current),q.current=setTimeout(()=>A(!1),v)))},[$,M,n,T,g,v]),_=(0,p.useCallback)(e=>{"Enter"===e.key&&!e.shiftKey&&f&&(e.preventDefault(),H())},[f,H]),W=Boolean(x)||I,G=W?`${P}-helper`:void 0,X=[j,G].filter(Boolean).join(" ")||void 0,U=i?b().createElement(it,{onClick:H,disabled:$,size:Me.SMALL,variant:s,dataTest:d,label:i,ariaLabel:l,iconStart:a}):b().createElement(it,{layout:Pe.SQUARED,onClick:H,disabled:$,variant:s,dataTest:d,icon:a,ariaLabel:l});return b().createElement(Tt,null,e&&b().createElement(Lt,{htmlFor:P},e),b().createElement(zt,{$disabled:$,$error:y},b().createElement(Mt,{ref:F,id:P,rows:w,placeholder:t,value:M,onChange:N,onKeyDown:_,disabled:$,maxLength:E,"data-test":c,"aria-label":S,"aria-describedby":X}),u,U,h),W&&b().createElement(Dt,{id:G,$success:I,$error:!I&&y,role:I?"status":void 0,"aria-live":I?"polite":void 0},I?m:x))};var Rt=d(215),qt=d.n(Rt);const It={default:h.css`
|
|
381
407
|
color: ${g.eg};
|
|
382
|
-
font-size: ${
|
|
408
|
+
font-size: ${$};
|
|
383
409
|
font-style: normal;
|
|
384
410
|
font-weight: ${x};
|
|
385
411
|
line-height: normal;
|
|
386
412
|
`,selected:h.css`
|
|
387
413
|
color: ${g.eg};
|
|
388
|
-
font-size: ${
|
|
414
|
+
font-size: ${$};
|
|
389
415
|
font-style: normal;
|
|
390
416
|
font-weight: ${"700"};
|
|
391
417
|
line-height: normal;
|
|
392
418
|
`,text2:h.css`
|
|
393
419
|
color: ${g.XN};
|
|
394
|
-
font-size: ${
|
|
420
|
+
font-size: ${v};
|
|
395
421
|
font-style: normal;
|
|
396
422
|
font-weight: ${x};
|
|
397
423
|
line-height: normal;
|
|
@@ -403,51 +429,51 @@
|
|
|
403
429
|
line-height: normal;
|
|
404
430
|
`,header:h.css`
|
|
405
431
|
color: ${g.eg};
|
|
406
|
-
font-size: ${
|
|
432
|
+
font-size: ${$};
|
|
407
433
|
font-style: normal;
|
|
408
434
|
font-weight: ${"700"};
|
|
409
435
|
line-height: normal;
|
|
410
436
|
text-transform: uppercase;
|
|
411
437
|
`,button:h.css`
|
|
412
438
|
color: ${g.eg};
|
|
413
|
-
font-size: ${
|
|
439
|
+
font-size: ${$};
|
|
414
440
|
font-style: normal;
|
|
415
441
|
font-weight: ${"600"};
|
|
416
442
|
line-height: normal;
|
|
417
|
-
`},
|
|
443
|
+
`},At=f().p`
|
|
418
444
|
margin: 0;
|
|
419
445
|
padding: 0;
|
|
420
|
-
${({$variant:e})=>
|
|
421
|
-
`;const
|
|
446
|
+
${({$variant:e})=>It[e]}
|
|
447
|
+
`;const Ft=e=>{var{children:t,variant:r="default",as:o}=e,n=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["children","variant","as"]);return b().createElement(At,Object.assign({as:o,$variant:r},n),t)},Nt={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:g.ox,zIndex:100,display:"flex",alignItems:"center",justifyContent:"center"},content:{position:"relative",top:"auto",left:"auto",right:"auto",bottom:"auto",borderRadius:T,overflow:"hidden",WebkitOverflowScrolling:"touch",outline:"none",padding:"0px",minWidth:"300px",maxWidth:"90vw",maxHeight:"90vh",display:"flex",flexDirection:"column"}},Ht=f().div`
|
|
422
448
|
padding: ${C} ${C} ${E};
|
|
423
449
|
display: flex;
|
|
424
450
|
justify-content: space-between;
|
|
425
451
|
align-items: center;
|
|
426
452
|
gap: ${O};
|
|
427
|
-
`,
|
|
453
|
+
`,_t=f()(Ft)`
|
|
428
454
|
flex: 1;
|
|
429
455
|
min-width: 0;
|
|
430
456
|
overflow-wrap: anywhere;
|
|
431
|
-
`,
|
|
457
|
+
`,Wt=f().div`
|
|
432
458
|
flex-grow: 1;
|
|
433
459
|
overflow-y: ${({$allowScroll:e})=>e?"auto":"hidden"};
|
|
434
460
|
overflow-x: hidden;
|
|
435
461
|
display: flex;
|
|
436
462
|
flex-direction: column;
|
|
437
|
-
`,
|
|
463
|
+
`,Gt=f().div`
|
|
438
464
|
flex-grow: 1;
|
|
439
465
|
padding: 0 ${C};
|
|
440
466
|
margin: ${E} 0 ${E};
|
|
441
|
-
`,
|
|
467
|
+
`,Xt=f().div`
|
|
442
468
|
padding: ${E} ${C} ${C};
|
|
443
469
|
display: flex;
|
|
444
470
|
justify-content: flex-end;
|
|
445
471
|
gap: ${O};
|
|
446
472
|
|
|
447
473
|
${({$stickyFooter:e})=>e&&`\n position: sticky;\n bottom: 0;\n background-color: ${g.bD};\n `}
|
|
448
|
-
`,
|
|
474
|
+
`,Ut=f()(qt())`
|
|
449
475
|
background: ${g.bD};
|
|
450
|
-
`;const
|
|
476
|
+
`;const Kt=e=>{var{isOpen:t=!0,onRequestClose:r,appElement:o,title:n,contentLabel:a,showDividers:i=!1,shouldCloseOnOverlayClick:l=!1,shouldCloseOnEsc:s=!1,allowScroll:c=!0,noFooter:d=!1,hideCloseButton:u=!1,footerContent:h=null,stickyFooter:f=!0,testId:g,closeButtonDataTest:m,children:v}=e,$=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["isOpen","onRequestClose","appElement","title","contentLabel","showDividers","shouldCloseOnOverlayClick","shouldCloseOnEsc","allowScroll","noFooter","hideCloseButton","footerContent","stickyFooter","testId","closeButtonDataTest","children"]);let y=m;g&&!m&&(y=`${g}-close-button`);const x=(0,p.useCallback)(e=>b().createElement(b().Fragment,null,i&&b().createElement(xt,null),b().createElement(Xt,{$stickyFooter:e},h)),[h,i]);return b().createElement(Ut,Object.assign({},$,{isOpen:t,onRequestClose:r,contentLabel:a,style:Nt,shouldCloseOnOverlayClick:l,shouldCloseOnEsc:s,appElement:o,testId:g}),b().createElement(Ht,null,b().createElement(_t,{variant:"header"},n),!u&&b().createElement(it,Object.assign({layout:"circle",icon:b().createElement(Y,{size:"1.5rem"}),onClick:r,variant:"subtle",ariaLabel:"close"},y?{dataTest:y}:{}))),i&&b().createElement(xt,null),b().createElement(Wt,{$allowScroll:c},b().createElement(Gt,null,v),!d&&!f&&x(f)),!d&&f&&x(f))},Vt=f().button`
|
|
451
477
|
display: flex;
|
|
452
478
|
flex-direction: row;
|
|
453
479
|
align-items: center;
|
|
@@ -456,18 +482,18 @@
|
|
|
456
482
|
border: none;
|
|
457
483
|
cursor: pointer;
|
|
458
484
|
margin: 1px; /* Adds margin to prevent outline from being cropped */
|
|
459
|
-
border-radius: ${
|
|
485
|
+
border-radius: ${L};
|
|
460
486
|
|
|
461
487
|
&:focus {
|
|
462
488
|
outline: 1px solid ${g._q};
|
|
463
489
|
}
|
|
464
|
-
`,
|
|
490
|
+
`,Yt=f().div`
|
|
465
491
|
display: flex;
|
|
466
492
|
flex-direction: row;
|
|
467
493
|
align-items: center;
|
|
468
494
|
justify-content: center;
|
|
469
495
|
gap: ${O};
|
|
470
|
-
`,
|
|
496
|
+
`,Jt=f().div`
|
|
471
497
|
display: flex;
|
|
472
498
|
align-items: center;
|
|
473
499
|
justify-content: center;
|
|
@@ -479,7 +505,7 @@
|
|
|
479
505
|
transform: rotate(-90deg);
|
|
480
506
|
}
|
|
481
507
|
`}
|
|
482
|
-
`,
|
|
508
|
+
`,Qt=function({label:e,onClick:t,onKeyDown:r,icon:o,children:n,ariaLabel:a,ariaLabelledBy:i,ariaDescribedBy:l,dataTest:s}){const c=!!o,d=o||b().createElement(V,{size:"1.5rem"});return b().createElement(Vt,{onClick:t,onKeyDown:r,"aria-label":a,"aria-labelledby":i,"aria-describedby":l,"data-test":s},b().createElement(Yt,null,b().createElement(Jt,{$isCustomIcon:c},d),b().createElement(Ft,{variant:"default"},e)),n)},Zt="40px",er="14px",tr="rgba(0, 0, 0, .2)",rr=e=>[{image:`linear-gradient(to right, ${e} 30%, transparent)`,position:"0 0",size:`${Zt} 100%`,attachment:"local"},{image:`linear-gradient(to right, transparent, ${e} 70%)`,position:"100% 0",size:`${Zt} 100%`,attachment:"local"},{image:`radial-gradient(farthest-side at 0 50%, ${tr}, transparent)`,position:"0 0",size:`${er} 100%`,attachment:"scroll"},{image:`radial-gradient(farthest-side at 100% 50%, ${tr}, transparent)`,position:"100% 0",size:`${er} 100%`,attachment:"scroll"}],or=f().div`
|
|
483
509
|
overflow-y: ${({$verticalScroll:e})=>e?"auto":"hidden"};
|
|
484
510
|
overflow-x: ${({$horizontalScroll:e})=>e?"auto":"hidden"};
|
|
485
511
|
${({$maxHeight:e})=>e&&h.css`max-height: ${e};`}
|
|
@@ -488,7 +514,7 @@
|
|
|
488
514
|
${({$paddingRight:e})=>e&&h.css`padding-right: ${e};`}
|
|
489
515
|
${({$paddingBottom:e})=>e&&h.css`padding-bottom: ${e};`}
|
|
490
516
|
${({$paddingLeft:e})=>e&&h.css`padding-left: ${e};`}
|
|
491
|
-
${({$verticalScroll:e,$horizontalScroll:t,$fadeEdges:r,$fadeColor:o})=>{if(!r||!o)return"";const n=[...e?(a=o,[{image:`linear-gradient(${a} 30%, transparent)`,position:"0 0",size:`100% ${
|
|
517
|
+
${({$verticalScroll:e,$horizontalScroll:t,$fadeEdges:r,$fadeColor:o})=>{if(!r||!o)return"";const n=[...e?(a=o,[{image:`linear-gradient(${a} 30%, transparent)`,position:"0 0",size:`100% ${Zt}`,attachment:"local"},{image:`linear-gradient(transparent, ${a} 70%)`,position:"0 100%",size:`100% ${Zt}`,attachment:"local"},{image:`radial-gradient(farthest-side at 50% 0, ${tr}, transparent)`,position:"0 0",size:`100% ${er}`,attachment:"scroll"},{image:`radial-gradient(farthest-side at 50% 100%, ${tr}, transparent)`,position:"0 100%",size:`100% ${er}`,attachment:"scroll"}]):[],...t?rr(o):[]];var a;return n.length?h.css`
|
|
492
518
|
background-image: ${n.map(e=>e.image).join(", ")};
|
|
493
519
|
background-position: ${n.map(e=>e.position).join(", ")};
|
|
494
520
|
background-size: ${n.map(e=>e.size).join(", ")};
|
|
@@ -520,40 +546,41 @@
|
|
|
520
546
|
&::-webkit-scrollbar-track:hover { background: rgba(0, 0, 0, .25); }
|
|
521
547
|
&::-webkit-scrollbar-track:active { background: rgba(0, 0, 0, .25); }
|
|
522
548
|
&::-webkit-scrollbar-corner { background: 0 0; }
|
|
523
|
-
`,
|
|
549
|
+
`,nr=function({children:e,verticalScroll:t=!0,horizontalScroll:r=!1,maxHeight:o,maxWidth:n,fadeEdges:a=!0,fadeColor:i,paddingTop:l,paddingRight:s,paddingBottom:c,paddingLeft:d}){const u=t||r;return b().createElement(or,{$verticalScroll:t,$horizontalScroll:r,$maxHeight:o,$maxWidth:n,$fadeEdges:a,$fadeColor:i,$paddingTop:l,$paddingRight:s,$paddingBottom:c,$paddingLeft:d,tabIndex:u?0:void 0},e)},ar=h.keyframes`
|
|
524
550
|
0% { transform: rotate(0deg); }
|
|
525
551
|
100% { transform: rotate(360deg); }
|
|
526
|
-
`,
|
|
552
|
+
`,ir=h.keyframes`
|
|
527
553
|
0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
|
|
528
554
|
50% { stroke-dasharray: 100, 200; stroke-dashoffset: -15; }
|
|
529
555
|
100% { stroke-dasharray: 100, 200; stroke-dashoffset: -125; }
|
|
530
|
-
`,
|
|
556
|
+
`,lr=f().div`
|
|
531
557
|
width: ${({$size:e})=>"number"==typeof e?`${e}px`:e};
|
|
532
558
|
height: ${({$size:e})=>"number"==typeof e?`${e}px`:e};
|
|
533
559
|
display: inline-grid;
|
|
534
560
|
place-items: center;
|
|
535
|
-
|
|
561
|
+
overflow: hidden;
|
|
562
|
+
`,sr=f().svg`
|
|
536
563
|
width: 100%;
|
|
537
564
|
height: 100%;
|
|
538
565
|
transform-origin: center;
|
|
539
566
|
overflow: visible;
|
|
540
567
|
${({$animate:e})=>e&&h.css`
|
|
541
|
-
animation: ${
|
|
568
|
+
animation: ${ar} 1.4s linear infinite;
|
|
542
569
|
`}
|
|
543
|
-
`,
|
|
570
|
+
`,cr=f().circle`
|
|
544
571
|
fill: none;
|
|
545
572
|
stroke: ${g._q};
|
|
546
573
|
stroke-width: ${({$strokeWidth:e})=>e}px;
|
|
547
574
|
stroke-linecap: round;
|
|
548
575
|
${({$animate:e})=>e&&h.css`
|
|
549
|
-
animation: ${
|
|
576
|
+
animation: ${ir} 1.4s ease-in-out infinite;
|
|
550
577
|
`}
|
|
551
578
|
|
|
552
579
|
${({$animate:e})=>!e&&h.css`
|
|
553
580
|
stroke-dasharray: 94.2 31.4;
|
|
554
581
|
stroke-dashoffset: 0;
|
|
555
582
|
`}
|
|
556
|
-
`,
|
|
583
|
+
`,dr=({size:e=48,strokeWidth:t=4,animate:r=!0})=>b().createElement(lr,{$size:e,role:"progressbar","aria-label":"Loading","aria-busy":r},b().createElement(sr,{viewBox:"0 0 50 50",$animate:r,focusable:"false","aria-hidden":"true"},b().createElement(cr,{className:"path",cx:"25",cy:"25",r:"20",$animate:r,$strokeWidth:t}))),ur=f().div`
|
|
557
584
|
display: flex;
|
|
558
585
|
align-items: center;
|
|
559
586
|
position: relative;
|
|
@@ -578,7 +605,7 @@
|
|
|
578
605
|
cursor: not-allowed;
|
|
579
606
|
pointer-events: none;
|
|
580
607
|
`}
|
|
581
|
-
`,
|
|
608
|
+
`,pr=f().span`
|
|
582
609
|
display: flex;
|
|
583
610
|
align-items: center;
|
|
584
611
|
justify-content: center;
|
|
@@ -586,14 +613,14 @@
|
|
|
586
613
|
color: ${g.kE};
|
|
587
614
|
width: 1rem;
|
|
588
615
|
height: 1rem;
|
|
589
|
-
`,
|
|
616
|
+
`,br=f().input`
|
|
590
617
|
flex: 1;
|
|
591
618
|
min-width: 0;
|
|
592
619
|
border: none;
|
|
593
620
|
outline: none;
|
|
594
621
|
background: transparent;
|
|
595
622
|
color: ${g.eg};
|
|
596
|
-
font-size: ${
|
|
623
|
+
font-size: ${v};
|
|
597
624
|
line-height: 1.5;
|
|
598
625
|
padding: 0;
|
|
599
626
|
|
|
@@ -617,7 +644,7 @@
|
|
|
617
644
|
[dir='rtl'] & {
|
|
618
645
|
text-align: right;
|
|
619
646
|
}
|
|
620
|
-
`,
|
|
647
|
+
`,hr=f().span`
|
|
621
648
|
display: flex;
|
|
622
649
|
align-items: center;
|
|
623
650
|
justify-content: center;
|
|
@@ -625,7 +652,7 @@
|
|
|
625
652
|
width: 1rem;
|
|
626
653
|
height: 1rem;
|
|
627
654
|
color: ${g._q};
|
|
628
|
-
`,
|
|
655
|
+
`,fr=f().button`
|
|
629
656
|
display: flex;
|
|
630
657
|
align-items: center;
|
|
631
658
|
justify-content: center;
|
|
@@ -649,24 +676,24 @@
|
|
|
649
676
|
outline-offset: 2px;
|
|
650
677
|
border-radius: 2px;
|
|
651
678
|
}
|
|
652
|
-
`,
|
|
679
|
+
`,gr=function({placeholder:e,value:t,onChange:r,onSearch:o,onClear:n,debounce:a=500,isLoading:i=!1,disabled:l=!1,autoFocus:s=!1,inputRef:c,"aria-label":d}){var u;const h=void 0!==t,[f,g]=(0,p.useState)(""),m=(0,p.useRef)(null),v=null!==(u=c)&&void 0!==u?u:m,$=h?null!=t?t:"":f,y=$.length>0;(0,p.useEffect)(()=>{if(h||!o)return;const e=setTimeout(()=>{o(f)},a);return()=>clearTimeout(e)},[f,a,o,h]),(0,p.useEffect)(()=>{s&&v.current&&v.current.focus()},[s,v]);const x=(0,p.useCallback)(e=>{const t=e.target.value;h?null==r||r(t):g(t)},[h,r]),w=(0,p.useCallback)(()=>{var e;n?n():h?null==r||r(""):(g(""),null==o||o("")),null===(e=v.current)||void 0===e||e.focus()},[n,h,r,o,v]),k=(0,p.useCallback)(e=>{var t;e.target===e.currentTarget&&(null===(t=v.current)||void 0===t||t.focus())},[v]);return b().createElement(ur,{$disabled:l,onClick:k},b().createElement(pr,{"aria-hidden":"true"},b().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",focusable:"false"},b().createElement("circle",{cx:"11",cy:"11",r:"8"}),b().createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))),b().createElement(br,{ref:v,type:"search",role:"searchbox",placeholder:e,value:$,onChange:x,disabled:l,"aria-label":null!=d?d:e}),i&&y&&b().createElement(hr,null,b().createElement(dr,{size:16,strokeWidth:3})),!i&&y&&b().createElement(fr,{type:"button",onClick:w,"aria-label":"Clear search",tabIndex:0},b().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",focusable:"false","aria-hidden":"true"},b().createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b().createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))))};var mr=d(764),vr=d.n(mr);const $r=f().div`
|
|
653
680
|
display: flex;
|
|
654
681
|
flex-direction: column;
|
|
655
682
|
flex-shrink: 0;
|
|
656
683
|
gap: ${k};
|
|
657
684
|
justify-content: start;
|
|
658
685
|
align-items: center;
|
|
659
|
-
`,
|
|
686
|
+
`,yr=f().div`
|
|
660
687
|
display: flex;
|
|
661
688
|
flex-direction: row;
|
|
662
689
|
justify-content: center;
|
|
663
690
|
gap: ${O};
|
|
664
691
|
padding: 1px;
|
|
665
692
|
width: 100%;
|
|
666
|
-
`,
|
|
693
|
+
`,xr=f()(vr())`
|
|
667
694
|
height: 3.5rem;
|
|
668
695
|
flex: 1;
|
|
669
|
-
border-radius: ${
|
|
696
|
+
border-radius: ${L} !important;
|
|
670
697
|
overflow: hidden;
|
|
671
698
|
width: 100%;
|
|
672
699
|
|
|
@@ -681,38 +708,38 @@
|
|
|
681
708
|
&.Mui-focused .MuiOutlinedInput-notchedOutline {
|
|
682
709
|
border-color: ${g.z2};
|
|
683
710
|
}
|
|
684
|
-
`,
|
|
711
|
+
`,wr=f().label`
|
|
685
712
|
align-self: flex-start;
|
|
686
713
|
color: ${g.BP};
|
|
687
|
-
font-size: ${
|
|
714
|
+
font-size: ${v};
|
|
688
715
|
font-style: normal;
|
|
689
716
|
font-weight: 400;
|
|
690
717
|
line-height: normal;
|
|
691
|
-
`,
|
|
718
|
+
`,kr=f().div`
|
|
692
719
|
display: flex;
|
|
693
720
|
align-items: center;
|
|
694
721
|
justify-content: center;
|
|
695
722
|
flex-shrink: 0;
|
|
696
723
|
color: ${g._q};
|
|
697
|
-
`;const
|
|
724
|
+
`;const Er=function(e){var{title:t=null,icon:r=null,children:o,ariaLabel:n}=e,a=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["title","icon","children","ariaLabel"]);const i=(0,p.useId)(),l=`select-${i}`,s=t?`select-label-${i}`:void 0;return b().createElement($r,null,t&&b().createElement(wr,{id:s,htmlFor:l},t),b().createElement(yr,null,r&&b().createElement(kr,null,r),b().createElement(xr,Object.assign({},a,{id:l,labelId:s,"aria-label":n,IconComponent:K}),o)))};var Or=d(586);const Br="1rem",Cr="0.25rem",Sr=f().div`
|
|
698
725
|
display: flex;
|
|
699
726
|
flex-direction: column;
|
|
700
727
|
width: 100%;
|
|
701
728
|
|
|
702
729
|
${({$valueLabelSpace:e})=>e&&`\n gap: ${S};\n `}
|
|
703
|
-
`,
|
|
730
|
+
`,jr=f().label`
|
|
704
731
|
display: flex;
|
|
705
732
|
flex-direction: column;
|
|
706
733
|
cursor: pointer;
|
|
707
|
-
`,
|
|
734
|
+
`,Tr=f().span`
|
|
708
735
|
color: ${g.eg};
|
|
709
736
|
font-size: ${y};
|
|
710
737
|
font-weight: ${x};
|
|
711
|
-
`,
|
|
738
|
+
`,Lr=f().span`
|
|
712
739
|
color: ${g.XN};
|
|
713
|
-
font-size: ${
|
|
740
|
+
font-size: ${$};
|
|
714
741
|
font-weight: ${x};
|
|
715
|
-
`,
|
|
742
|
+
`,zr=f().div`
|
|
716
743
|
display: flex;
|
|
717
744
|
align-items: center;
|
|
718
745
|
gap: ${k};
|
|
@@ -723,12 +750,12 @@
|
|
|
723
750
|
${({$animate:e})=>!e&&`\n & .MuiSlider-thumb,\n & .MuiSlider-track,\n & .MuiSlider-valueLabel {\n transition: none;\n }\n\n & .MuiSlider-thumb:hover:not(.Mui-focusVisible),\n & .MuiSlider-thumb.Mui-active:not(.Mui-focusVisible) {\n box-shadow: 0 2px 4px 0 ${g.xA};\n }\n `}
|
|
724
751
|
|
|
725
752
|
${({$isRtl:e})=>e&&"\n /* MUI only mirrors right:-anchored positioning under RTL, not the LTR transforms paired\n with it (that half normally comes from stylis-plugin-rtl, which this library can't add) */\n && .MuiSlider-thumb {\n transform: translate(50%, -50%);\n }\n\n && .MuiSlider-mark {\n transform: translate(1px, -50%);\n }\n\n && .MuiSlider-markLabel {\n transform: translateX(50%);\n }\n "}
|
|
726
|
-
`,
|
|
753
|
+
`,Mr=f().span`
|
|
727
754
|
display: flex;
|
|
728
755
|
align-items: center;
|
|
729
756
|
color: ${g.kE};
|
|
730
757
|
font-size: ${"1.5rem"};
|
|
731
|
-
`,
|
|
758
|
+
`,Dr=(0,Or.styled)(lt.Slider)({color:g._q,height:"0.3125rem","& .MuiSlider-rail":{backgroundColor:"currentColor",opacity:.38},"& .MuiSlider-track":{border:"1px solid currentColor",backgroundColor:g._q},"& .MuiSlider-thumb":{height:Br,width:Br,backgroundColor:"currentColor",boxShadow:`0 2px 4px 0 ${g.xA}`,"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 0.5rem ${g.ot}`},"&.Mui-active":{boxShadow:`0 0 0 0.875rem ${g.ot}`}},"& .MuiSlider-mark":{width:Cr,height:Cr,borderRadius:"50%",backgroundColor:g.qg,"&.MuiSlider-markActive":{backgroundColor:g.bD}},"& .MuiSlider-markLabel":{color:g.XN,fontSize:m,unicodeBidi:"plaintext"},"& .MuiSlider-valueLabel":{backgroundColor:g.eg,color:g.bD,fontSize:m,fontWeight:"600",borderRadius:L,padding:`${w} ${k}`,"& .MuiSlider-valueLabelLabel":{unicodeBidi:"plaintext"}},"&.Mui-disabled":{color:g.qg,"& .MuiSlider-track":{backgroundColor:g.qg}}}),Pr={AUTO:"auto",ON:"on",OFF:"off"},Rr=(Object.values(Pr),Pr.AUTO),qr=!0,Ir=!0;const Ar=function(e){var{open:t}=e,r=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["open"]);const[o,n]=(0,p.useState)(!1),a=t&&r.valueLabelDisplay!==Pr.ON;return(0,p.useEffect)(()=>{if(!a)return void n(!1);const e=e=>{"Escape"===e.key&&n(!0)};return document.addEventListener("keydown",e,!0),()=>document.removeEventListener("keydown",e,!0)},[a]),b().createElement(lt.SliderValueLabel,Object.assign({},r,{open:t&&!o}))};const Fr=function(e){var{label:t,helperText:r,iconStart:o,iconEnd:n,showMarkTicks:a=qr,animate:i=Ir,valueLabelDisplay:l=Rr,onChange:s,onChangeCommitted:c,id:d,dataTest:u,ariaLabel:h,ariaLabelledBy:f,ariaDescribedBy:g,slots:m,slotProps:v}=e,$=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["label","helperText","iconStart","iconEnd","showMarkTicks","animate","valueLabelDisplay","onChange","onChangeCommitted","id","dataTest","ariaLabel","ariaLabelledBy","ariaDescribedBy","slots","slotProps"]);const y=(0,p.useId)(),x=null!=d?d:y,w=t?`${x}-label`:void 0,k=r?`${x}-helper`:void 0,E=(0,p.useRef)(null),[O,B]=(0,p.useState)(!1);(0,p.useEffect)(()=>{const e=E.current;if(!e)return;const t=()=>{B("rtl"===window.getComputedStyle(e).direction)};t();const r=new MutationObserver(t);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),()=>r.disconnect()},[]);const C=(0,Or.useTheme)(),S=(0,p.useMemo)(()=>O&&"rtl"!==C.direction?(0,Or.createTheme)(C,{direction:"rtl"}):C,[C,O]),j=(0,p.useCallback)((e,t)=>{null==s||s(e,Array.isArray(t)?t[0]:t)},[s]),T=(0,p.useCallback)((e,t)=>{null==c||c(e,Array.isArray(t)?t[0]:t)},[c]);return b().createElement(Sr,{ref:E,$valueLabelSpace:"off"!==l},(t||r)&&b().createElement(jr,{htmlFor:x},t&&b().createElement(Tr,{id:w},t),r&&b().createElement(Lr,{id:k},r)),b().createElement(zr,{$showMarkTicks:a,$animate:i,$isRtl:O},o&&b().createElement(Mr,{"aria-hidden":!0},o),b().createElement(Or.ThemeProvider,{theme:S},b().createElement(Dr,Object.assign({},$,{valueLabelDisplay:l,onChange:j,onChangeCommitted:T,"aria-label":h,"aria-labelledby":h?void 0:f||w,"data-test":u,slots:Object.assign({valueLabel:Ar},m),slotProps:Object.assign(Object.assign({},v),{input:Object.assign(Object.assign({id:x,"aria-describedby":g||k},u?{"data-test":`${u}-input`}:{}),"object"==typeof(null==v?void 0:v.input)?v.input:{})})}))),n&&b().createElement(Mr,{"aria-hidden":!0},n)))},Nr=f().textarea`
|
|
732
759
|
flex: 1;
|
|
733
760
|
background: ${g.bD};
|
|
734
761
|
background-clip: padding-box;
|
|
@@ -755,7 +782,7 @@
|
|
|
755
782
|
outline: ${g._q} solid 2px;
|
|
756
783
|
box-shadow: 0 0 0 2px ${g.f$} inset 0 0 0 1px ${g._q};
|
|
757
784
|
}
|
|
758
|
-
`;const
|
|
785
|
+
`;const Hr=function(e){var{placeholder:t="",rows:r=1,maxLength:o=250,autoFocus:n=!0,inputRef:a,onChange:i,onKeyDown:l}=e,s=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["placeholder","rows","maxLength","autoFocus","inputRef","onChange","onKeyDown"]);const c=(0,p.useRef)(null);return(0,p.useEffect)(()=>{n&&c.current&&c.current.focus()},[n]),b().createElement(Nr,Object.assign({},s,{rows:r,maxLength:o,ref:e=>{c.current=e,"function"==typeof a?a(e):a&&"current"in a&&(a.current=e)},placeholder:t,onChange:i,onKeyDown:l}))},_r=f()(lt.TextField)`
|
|
759
786
|
.MuiInputBase-root {
|
|
760
787
|
display: flex;
|
|
761
788
|
padding: ${O};
|
|
@@ -784,15 +811,15 @@
|
|
|
784
811
|
.MuiOutlinedInput-notchedOutline {
|
|
785
812
|
border: none;
|
|
786
813
|
}
|
|
787
|
-
`,
|
|
814
|
+
`,Wr=f().div`
|
|
788
815
|
color: ${g.eg};
|
|
789
|
-
font-size: ${
|
|
816
|
+
font-size: ${v};
|
|
790
817
|
font-style: normal;
|
|
791
818
|
font-weight: 400;
|
|
792
819
|
line-height: normal;
|
|
793
|
-
`,
|
|
820
|
+
`,Gr=f().div`
|
|
794
821
|
color: ${g.eg};
|
|
795
|
-
font-size: ${
|
|
822
|
+
font-size: ${v};
|
|
796
823
|
font-style: normal;
|
|
797
824
|
font-weight: 400;
|
|
798
825
|
line-height: normal;
|
|
@@ -801,50 +828,199 @@
|
|
|
801
828
|
${({$error:e})=>e&&h.css`
|
|
802
829
|
color: ${g._r};
|
|
803
830
|
`}
|
|
804
|
-
`,
|
|
831
|
+
`,Xr=f().div`
|
|
805
832
|
display: flex;
|
|
806
833
|
flex-direction: column;
|
|
807
834
|
width: 100%;
|
|
808
835
|
gap: ${k};
|
|
809
|
-
`;const
|
|
836
|
+
`;const Ur=function(e){var{label:t,helperText:r,error:o,placeholder:n}=e,a=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["label","helperText","error","placeholder"]);return b().createElement(Xr,null,t&&b().createElement(Wr,null,t),b().createElement(_r,Object.assign({},a,{$error:o,placeholder:n})),r&&b().createElement(Gr,{$error:o},r))},Kr={DEFAULT:"default",INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Vr=(Object.values(Kr),Kr.DEFAULT),Yr=5e3,Jr="Close",Qr=["a[href]","button","input","select","textarea","summary","label",'[role="button"]','[role="link"]','[tabindex]:not([tabindex="-1"])'].join(", "),Zr="70vh",eo={default:Q,info:function(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"},child:[]}]})(e)},success:function(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)},warning:function(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(e)},error:function(e){return X({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}},to={default:{background:g._q,glyph:g.bD},info:{background:g._q,glyph:g.bD},success:{background:g.r,glyph:g.bD},warning:{background:g.G8,glyph:g.bD},error:{background:g._r,glyph:g.bD}},ro=h.css`
|
|
837
|
+
img,
|
|
838
|
+
svg,
|
|
839
|
+
video {
|
|
840
|
+
max-width: 100%;
|
|
841
|
+
}
|
|
842
|
+
`,oo=h.css`
|
|
843
|
+
position: absolute;
|
|
844
|
+
width: 1px;
|
|
845
|
+
height: 1px;
|
|
846
|
+
overflow: hidden;
|
|
847
|
+
clip-path: inset(50%);
|
|
848
|
+
white-space: nowrap;
|
|
849
|
+
`,no=f().button`
|
|
850
|
+
margin: 0;
|
|
851
|
+
padding: 0;
|
|
852
|
+
border: 0;
|
|
853
|
+
background: none;
|
|
854
|
+
color: inherit;
|
|
855
|
+
font: inherit;
|
|
856
|
+
line-height: inherit;
|
|
857
|
+
text-align: start;
|
|
858
|
+
cursor: inherit;
|
|
859
|
+
|
|
860
|
+
&:focus {
|
|
861
|
+
outline: none;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
${({$visuallyHidden:e})=>e&&oo}
|
|
865
|
+
`,ao=f().div`
|
|
866
|
+
position: relative;
|
|
867
|
+
display: flex;
|
|
868
|
+
/* Fills the slot it is given even when that slot is a flex container, as toast engines'
|
|
869
|
+
wrappers usually are, so every toast in a stack has the same width. */
|
|
870
|
+
width: 100%;
|
|
871
|
+
flex-direction: row;
|
|
872
|
+
align-items: stretch;
|
|
873
|
+
gap: ${E};
|
|
874
|
+
padding: ${B};
|
|
875
|
+
background-color: ${g.bh};
|
|
876
|
+
border-radius: ${L};
|
|
877
|
+
box-shadow: 0 2px 8px ${g.xA};
|
|
878
|
+
overflow-wrap: break-word;
|
|
879
|
+
/* So maxHeight caps the whole card, padding included, rather than just its content box. */
|
|
880
|
+
box-sizing: border-box;
|
|
881
|
+
max-height: ${({$maxHeight:e})=>e};
|
|
882
|
+
cursor: ${({$disablePointer:e})=>e?"auto":"pointer"};
|
|
883
|
+
|
|
884
|
+
&:has(${no}:focus-visible) {
|
|
885
|
+
outline: 2px solid ${g._q};
|
|
886
|
+
}
|
|
887
|
+
`,io="2.375rem",lo=f().div`
|
|
888
|
+
display: flex;
|
|
889
|
+
align-items: flex-start;
|
|
890
|
+
flex-shrink: 0;
|
|
891
|
+
`,so=f().div`
|
|
892
|
+
display: flex;
|
|
893
|
+
align-items: center;
|
|
894
|
+
min-height: ${io};
|
|
895
|
+
`,co=f().div`
|
|
896
|
+
display: flex;
|
|
897
|
+
flex-direction: column;
|
|
898
|
+
flex: 1;
|
|
899
|
+
min-width: 0;
|
|
900
|
+
gap: ${k};
|
|
901
|
+
|
|
902
|
+
/* min-height lets this flex child shrink below its content so the overflow can scroll. */
|
|
903
|
+
min-height: 0;
|
|
904
|
+
overflow-y: auto;
|
|
905
|
+
overflow-x: hidden;
|
|
906
|
+
|
|
907
|
+
/* As a scroll container this clips whatever overflows it, including the focus ring of
|
|
908
|
+
the close button, which spans the full height of the title row. The padding leaves
|
|
909
|
+
room for the ring and the negative margin cancels it out of the layout. */
|
|
910
|
+
padding: ${"2px"};
|
|
911
|
+
margin: -${"2px"};
|
|
912
|
+
`,uo=f().div`
|
|
913
|
+
display: flex;
|
|
914
|
+
flex-direction: row;
|
|
915
|
+
align-items: center;
|
|
916
|
+
min-height: ${io};
|
|
917
|
+
gap: ${k};
|
|
918
|
+
`,po=f().div`
|
|
810
919
|
display: flex;
|
|
811
|
-
|
|
920
|
+
align-items: center;
|
|
921
|
+
justify-content: center;
|
|
922
|
+
flex-shrink: 0;
|
|
923
|
+
border-radius: 50%;
|
|
924
|
+
aspect-ratio: 1;
|
|
925
|
+
width: ${({$small:e})=>e?"1.5rem":"2rem"};
|
|
926
|
+
font-size: ${({$small:e})=>e?m:y};
|
|
927
|
+
background-color: ${({$variant:e})=>to[e].background};
|
|
928
|
+
color: ${({$variant:e})=>to[e].glyph};
|
|
929
|
+
`,bo=f().div`
|
|
930
|
+
flex: 1;
|
|
931
|
+
min-width: 0;
|
|
932
|
+
color: ${g.eg};
|
|
933
|
+
font-size: ${({$small:e})=>e?v:$};
|
|
934
|
+
font-weight: ${x};
|
|
935
|
+
line-height: normal;
|
|
936
|
+
|
|
937
|
+
${ro}
|
|
938
|
+
`,ho=f().div`
|
|
939
|
+
color: ${g.XN};
|
|
940
|
+
font-size: ${({$small:e})=>e?m:v};
|
|
941
|
+
font-weight: ${x};
|
|
942
|
+
line-height: normal;
|
|
943
|
+
|
|
944
|
+
${ro}
|
|
945
|
+
`,fo=f().div`
|
|
946
|
+
display: flex;
|
|
947
|
+
justify-content: flex-end;
|
|
948
|
+
`,go=f().div`
|
|
949
|
+
display: flex;
|
|
950
|
+
flex-shrink: 0;
|
|
951
|
+
margin-inline-start: auto;
|
|
952
|
+
`,mo=h.keyframes`
|
|
953
|
+
from {
|
|
954
|
+
transform: scaleX(1);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
to {
|
|
958
|
+
transform: scaleX(0);
|
|
959
|
+
}
|
|
960
|
+
`,vo=f().div`
|
|
961
|
+
position: absolute;
|
|
962
|
+
inset-inline: 0;
|
|
963
|
+
bottom: 0;
|
|
964
|
+
height: 0.25rem;
|
|
965
|
+
overflow: hidden;
|
|
966
|
+
border-end-start-radius: ${L};
|
|
967
|
+
border-end-end-radius: ${L};
|
|
968
|
+
`,$o=f().div`
|
|
969
|
+
height: 100%;
|
|
970
|
+
background-color: ${({$variant:e})=>to[e].background};
|
|
971
|
+
transform-origin: left;
|
|
972
|
+
animation: ${mo} ${({$duration:e})=>e}ms linear forwards;
|
|
973
|
+
animation-play-state: ${({$paused:e})=>e?"paused":"running"};
|
|
974
|
+
|
|
975
|
+
[dir='rtl'] & {
|
|
976
|
+
transform-origin: right;
|
|
977
|
+
}
|
|
978
|
+
`;const yo=function(e){var{message:t,variant:r=Vr,icon:o,content:n,showSeparator:a=!0,small:i=!1,disablePointer:l,onClick:s,clickAriaLabel:c,actionLabel:d,onActionClick:u,autoClose:h=Yr,paused:f=!1,hideProgressBar:g=!1,hideCloseButton:m=!1,closeButtonAriaLabel:v=Jr,onRequestClose:$,maxHeight:y=Zr,dataTest:x,messageDataTest:w,closeButtonDataTest:k,actionButtonDataTest:E,onMouseEnter:O,onMouseLeave:B,onFocus:C,onBlur:S}=e,j=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["message","variant","icon","content","showSeparator","small","disablePointer","onClick","clickAriaLabel","actionLabel","onActionClick","autoClose","paused","hideProgressBar","hideCloseButton","closeButtonAriaLabel","onRequestClose","maxHeight","dataTest","messageDataTest","closeButtonDataTest","actionButtonDataTest","onMouseEnter","onMouseLeave","onFocus","onBlur"]);const T=(e,t)=>null!=e?e:x?`${x}-${t}`:void 0,L={message:T(w,"message"),closeButton:T(k,"close-button"),actionButton:T(E,"action-button")},z=(0,p.useRef)($);(0,p.useEffect)(()=>{z.current=$},[$]);const[M,D]=(0,p.useState)(!1),[P,R]=(0,p.useState)(!1),q=f||M||P,I=(0,p.useRef)(!1===h?0:h);(0,p.useEffect)(()=>{!1!==h&&(I.current=h)},[h]),(0,p.useEffect)(()=>{if(!1===h||q)return;const e=Date.now(),t=I.current,r=setTimeout(()=>{var e;return null===(e=z.current)||void 0===e?void 0:e.call(z)},t);return()=>{clearTimeout(r),I.current=Math.max(0,t-(Date.now()-e))}},[h,q]);const A=r===Kr.WARNING||r===Kr.ERROR,F=(0,p.useId)(),N=(0,p.useRef)(null);return b().createElement(ao,Object.assign({role:A?"alert":"status","aria-live":A?"assertive":"polite","aria-atomic":"true"},j,{$disablePointer:null!=l?l:!s,$maxHeight:y,onClick:s?e=>{if(!s)return;const t=e.target.closest(Qr);t&&t!==N.current&&e.currentTarget.contains(t)||s(e)}:void 0,onMouseEnter:e=>{D(!0),null==O||O(e)},onMouseLeave:e=>{D(!1),null==B||B(e)},onFocus:e=>{R(!0),null==C||C(e)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||R(!1),null==S||S(e)}},x?{"data-test":x}:{}),(()=>{if(!1===o)return null;const e=eo[r];return b().createElement(lo,null,b().createElement(so,null,b().createElement(po,{$variant:r,$small:i,"aria-hidden":"true"},null!=o?o:b().createElement(e,null))))})(),s&&!t&&b().createElement(no,{ref:N,type:"button",$visuallyHidden:!0,"aria-label":c,"aria-labelledby":c?void 0:F}),b().createElement(co,null,(t||!m)&&b().createElement(uo,null,t&&b().createElement(bo,Object.assign({$small:i},L.message?{"data-test":L.message}:{}),s?b().createElement(no,{ref:N,type:"button",$visuallyHidden:!1,"aria-label":c},t):t),!m&&b().createElement(go,null,b().createElement(it,Object.assign({layout:"squared",variant:"subtle",size:"sm",icon:b().createElement(Y,{size:"1.25rem"}),ariaLabel:v,onClick:e=>{e.stopPropagation(),null==$||$()}},L.closeButton?{dataTest:L.closeButton}:{})))),n&&b().createElement(b().Fragment,null,a&&t&&b().createElement(xt,null),b().createElement(ho,{id:s?F:void 0,$small:i},n)),d&&b().createElement(fo,null,b().createElement(it,Object.assign({label:d,variant:"tertiary",size:"sm",onClick:e=>{e.stopPropagation(),null==u||u(e)}},L.actionButton?{dataTest:L.actionButton}:{})))),!1!==h&&!g&&b().createElement(vo,{"aria-hidden":"true"},b().createElement($o,{key:h,$variant:r,$duration:h,$paused:q})))},xo={RIGHT:"right",LEFT:"left",TOP:"top",BOTTOM:"bottom"},wo=Object.values(xo)[0],ko={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Eo=(Object.values(ko),ko.TOP),Oo=f().div`
|
|
979
|
+
display: flex;
|
|
980
|
+
${({$textPosition:e})=>{if(e===xo.TOP||e===xo.BOTTOM)return h.css`
|
|
812
981
|
flex-direction: column;
|
|
813
982
|
gap: .1rem;
|
|
814
983
|
`;const t=h.css`
|
|
815
984
|
flex-direction: row;
|
|
816
985
|
gap: 1rem;
|
|
817
|
-
`;return e===
|
|
986
|
+
`;return e===xo.LEFT?h.css`
|
|
818
987
|
${t}
|
|
819
988
|
justify-content: end;
|
|
820
989
|
`:t}};
|
|
821
|
-
|
|
990
|
+
${({$fullWidth:e})=>e&&h.css`
|
|
991
|
+
width: 100%;
|
|
992
|
+
justify-content: space-between;
|
|
993
|
+
`}
|
|
994
|
+
`,Bo=f().div`
|
|
822
995
|
display: flex;
|
|
823
996
|
flex-direction: row;
|
|
824
997
|
align-items: start;
|
|
825
998
|
justify-content: center;
|
|
826
999
|
padding: 0.3rem 0px;
|
|
827
|
-
`,
|
|
1000
|
+
`,Co=f().label`
|
|
828
1001
|
display: flex;
|
|
829
1002
|
flex-direction: column;
|
|
830
|
-
order: ${({$textPosition:e})=>e===
|
|
831
|
-
cursor: pointer;
|
|
1003
|
+
order: ${({$textPosition:e})=>e===xo.LEFT||e===xo.TOP?-1:1};
|
|
1004
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
832
1005
|
${({$hasLabel:e,$hasHelperText:t})=>(!e||!t)&&"justify-content: center;"}
|
|
833
|
-
${({$textPosition:e})=>e===
|
|
1006
|
+
${({$textPosition:e,$fullWidth:t})=>e===xo.TOP||e===xo.BOTTOM?h.css`
|
|
834
1007
|
align-items: center;
|
|
835
|
-
`:e===
|
|
1008
|
+
`:t&&e===xo.RIGHT?h.css`
|
|
1009
|
+
align-items: end;
|
|
1010
|
+
text-align: end;
|
|
1011
|
+
`:e!==xo.LEFT||t?h.css`
|
|
836
1012
|
align-items: start;
|
|
837
|
-
`};
|
|
838
|
-
`,
|
|
839
|
-
color: ${g.eg};
|
|
1013
|
+
`:h.css`align-items: end;`};
|
|
1014
|
+
`,So=f().span`
|
|
1015
|
+
color: ${({$disabled:e})=>e?g.qg:g.eg};
|
|
840
1016
|
font-size: ${y};
|
|
841
1017
|
font-style: normal;
|
|
842
1018
|
font-weight: 400;
|
|
843
1019
|
line-height: normal;
|
|
844
|
-
`,
|
|
845
|
-
color: ${g.XN};
|
|
846
|
-
font-size: ${
|
|
1020
|
+
`,jo=f().span`
|
|
1021
|
+
color: ${({$disabled:e})=>e?g.qg:g.XN};
|
|
1022
|
+
font-size: ${$};
|
|
847
1023
|
font-style: normal;
|
|
848
1024
|
font-weight: 400;
|
|
849
1025
|
line-height: normal;
|
|
850
|
-
`,
|
|
1026
|
+
`,To=(0,Or.styled)(lt.Switch)(({theme:e})=>({width:"2.3rem",height:"1.2rem",padding:0,display:"flex","&:has(.Mui-focusVisible), &:has(.Mui-disabled input:focus-visible)":{borderRadius:"0.6rem",outline:`2px solid ${g._q}`,outlineOffset:"2px"},"&:active":{"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(1.2rem)"}},"& .MuiSwitch-switchBase":{padding:"0.2rem","&.Mui-checked":{transform:"translateX(1.2rem)",color:g.bD,"& + .MuiSwitch-track":Object.assign({opacity:1,backgroundColor:g._q},e.applyStyles("dark",{backgroundColor:g._q})),"&.Mui-disabled + .MuiSwitch-track":Object.assign({opacity:.12},e.applyStyles("dark",{opacity:.2}))}},"& .MuiSwitch-thumb":{boxShadow:`0 2px 4px 0 ${g.xA}`,width:"0.6rem",height:"0.6rem",borderRadius:"0.5rem",transition:e.transitions.create(["width"],{duration:200}),transform:"translateY(1px)"},"& .MuiSwitch-track":Object.assign({borderRadius:"0.6rem",opacity:1,backgroundColor:g.kE,boxSizing:"border-box"},e.applyStyles("dark",{backgroundColor:g.AC}))}));var Lo=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const zo=e=>e.preventDefault(),Mo=[0,100],Do=e=>null!==e,Po=function(e){var{label:t,helperText:r,textPosition:o=wo,fullWidth:n=!1,disabled:a,onChange:i,ariaLabel:l,ariaLabelledBy:s,ariaDescribedBy:c,id:d,slotProps:u,tooltipLabel:h,tooltipPlacement:f=Eo}=e,g=Lo(e,["label","helperText","textPosition","fullWidth","disabled","onChange","ariaLabel","ariaLabelledBy","ariaDescribedBy","id","slotProps","tooltipLabel","tooltipPlacement"]);const m=(0,p.useId)(),v=(0,p.useRef)(null),$=(0,p.useRef)(null),y=(0,p.useRef)(null),x=(0,p.useRef)(null),[w,k]=(0,p.useState)([]),E=()=>{var e,t;return null!==(t=null===(e=y.current)||void 0===e?void 0:e.querySelector(`.${lt.switchClasses.root}`))&&void 0!==t?t:null};(0,p.useEffect)(()=>{h&&k([v.current,$.current,E()].filter(Do))},[h,t,r]);const O=null!=d?d:m,B=t?`${O}-label`:void 0,C=r?`${O}-helper`:void 0,S=h?`${O}-tooltip`:void 0,j=n&&(o===xo.LEFT||o===xo.RIGHT),T=l?void 0:s||B,L=!!l||!!T,z=Boolean(h&&!L&&!r),M={role:"switch","aria-label":l,"aria-labelledby":z?S:T,"aria-describedby":[c||(L?C:void 0),!z&&S].filter(Boolean).join(" ")||void 0},D=Boolean(a&&h),P=D?{disabled:!1,"aria-disabled":!0,name:void 0,required:!1}:{},R=null!=u?u:{},{input:q}=R,I=Lo(R,["input"]),A="function"==typeof q?e=>Object.assign(Object.assign(Object.assign({},M),q(e)),P):Object.assign(Object.assign(Object.assign({},M),q),P);return b().createElement(b().Fragment,null,b().createElement(Oo,{ref:x,$textPosition:o,$fullWidth:j},(t||r)&&b().createElement(Co,{$textPosition:o,$fullWidth:j,htmlFor:O,$hasLabel:!!t,$hasHelperText:!!r,$disabled:a},t&&b().createElement(So,{ref:v,id:B,$disabled:a},t),r&&b().createElement(jo,{ref:$,id:C,$disabled:a},r)),b().createElement(Bo,{ref:y},b().createElement(To,Object.assign({},g,{id:O,disabled:a},D&&{onClick:zo},{onChange:i,slotProps:Object.assign(Object.assign({},I),{input:A})}))),h&&b().createElement("span",{id:S,hidden:!0},h)),h&&b().createElement(te(),{reference:x,content:h,placement:f,trigger:"mouseenter focusin",triggerTarget:w.length>0?w:null,getReferenceClientRect:()=>{const e=[v.current,$.current].filter(Do),t=e.length>0?e:[E()].filter(Do);return t.length>0?(e=>{const t=e.map(e=>e.getBoundingClientRect()),r=Math.min(...t.map(e=>e.left)),o=Math.min(...t.map(e=>e.top)),n=Math.max(...t.map(e=>e.right)),a=Math.max(...t.map(e=>e.bottom));return new DOMRect(r,o,n-r,a-o)})(t):new DOMRect},delay:Mo,aria:{content:null},plugins:ge}))};var Ro=d(48);return u})());
|