@bigbluebutton/bbb-ui-components-react 0.9.0 → 0.10.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/Search.js +3 -2
- package/dist/components/Spinner.js +1 -0
- package/dist/components/Toast.js +292 -0
- package/dist/components/Toggle.js +18 -11
- package/dist/components/index.js +366 -216
- 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 +5 -4
- package/dist/esm/components/Toggle/styles.js +13 -2
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/stylesheets/palette.js +4 -0
- package/dist/types/components/Accordion/constants.d.ts +1 -1
- package/dist/types/components/Button/constants.d.ts +4 -4
- package/dist/types/components/Slider/styles.d.ts +1 -1
- 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 +1 -1
- package/dist/types/components/Toggle/constants.d.ts +2 -2
- package/dist/types/components/Toggle/types.d.ts +3 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/stylesheets/palette.d.ts +2 -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 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),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var b=n(h,o);o.byIndex=l,t.splice(l,0,{identifier:u,updater:b,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:()=>q,BP:()=>c,Dq:()=>g,Ee:()=>k,G8:()=>x,GJ:()=>A,GW:()=>O,K5:()=>R,SO:()=>$,VO:()=>I,XN:()=>M,Xg:()=>l,_q:()=>p,_r:()=>w,bD:()=>s,bh:()=>E,d5:()=>i,eg:()=>z,f$:()=>h,hN:()=>j,jE:()=>o,kE:()=>L,lb:()=>v,mN:()=>b,nL:()=>D,od:()=>B,ot:()=>T,ox:()=>F,qO:()=>S,qg:()=>n,r:()=>y,sY:()=>_,ss:()=>P,xA:()=>N,xM:()=>f,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)",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})`,h=`var(--color-brand-2, ${d})`,b=`var(--color-brand-3, ${d})`,g=`var(--color-blue-aux, ${u})`,f=`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, ${s})`,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))",z=`var(--color-text-default, ${c})`,M=`var(--color-text-light, ${o})`,L=`var(--color-icon-default, ${o})`,D=`var(--color-icon-blue, ${d})`,P=`var(--color-icon-white, ${s})`,q="var(--color-icon-default-dark, rgba(255, 255, 255, 0.35))",A="var(--color-hover-dark, #0C57A7)",R="var(--color-hover-light, #D4E5FA)",I=`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%))",_="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:()=>ht,BBBHint:()=>xt,BBBInput:()=>Ct,BBBModal:()=>Ft,BBBNavigation:()=>Wt,BBBScrollArea:()=>Vt,BBBSearch:()=>cr,BBBSelect:()=>fr,BBBSlider:()=>zr,BBBSpinner:()=>rr,BBBTextAreaInput:()=>Lr,BBBTextInput:()=>Rr,BBBToast:()=>uo,BBBToggle:()=>xo,BBBTypography:()=>Mt,BBButton:()=>rt,borderRadiusDefault:()=>T,borderRadiusSmall:()=>z,colorBackgroundBlue:()=>f.od,colorBackgroundLight:()=>f.GW,colorBackgroundWhite:()=>f.bh,colorBorderDefault:()=>f.hN,colorBorderError:()=>f.qO,colorBorderFocusRing:()=>f.ot,colorBorderSelected:()=>f.z2,colorBrand1:()=>f._q,colorBrand2:()=>f.f$,colorBrand3:()=>f.mN,colorBrandAux:()=>f.xM,colorBrandLight:()=>f.Dq,colorDarkGray:()=>f.BP,colorError:()=>f._r,colorErrorDark:()=>f.Ee,colorGray:()=>f.Xg,colorHoverDark:()=>f.GJ,colorHoverLight:()=>f.K5,colorHoverNeutral:()=>f.VO,colorIconBlue:()=>f.nL,colorIconDefault:()=>f.kE,colorIconDefaultDark:()=>f.AC,colorIconWhite:()=>f.ss,colorLightGray:()=>f.d5,colorNeutral2:()=>f.jE,colorNeutral3:()=>f.qg,colorNeutral4:()=>f.xU,colorOverlay:()=>f.ox,colorShadowDefault:()=>f.xA,colorSuccess:()=>f.lb,colorSuccessDark:()=>f.r,colorTextDefault:()=>f.eg,colorTextLight:()=>f.XN,colorUserYou:()=>f.sY,colorWarning:()=>f.SO,colorWarningDark:()=>f.G8,colorWhite:()=>f.bD,colors:()=>wo.colors,spacingLarge:()=>C,spacingMedium:()=>O,spacingMediumLarge:()=>B,spacingSmall:()=>k,spacingSmallMedium:()=>E,spacingXLarge:()=>S,spacingXSmall:()=>w,spacingXXLarge:()=>j});var p=d(155),h=d.n(p),b=d(694),g=d.n(b),f=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",z="0.5rem",M=g().button`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
background: none;
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
border-radius: ${T};
|
|
10
10
|
|
|
11
11
|
&:hover {
|
|
12
|
-
background: ${
|
|
12
|
+
background: ${f.GW};
|
|
13
13
|
}
|
|
14
|
-
`,L=
|
|
14
|
+
`,L=g().div`
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
width: 100%;
|
|
18
18
|
padding: ${k};
|
|
19
19
|
border-radius: ${T};
|
|
20
20
|
gap: ${O};
|
|
21
|
-
`,D=
|
|
21
|
+
`,D=g().div`
|
|
22
22
|
width: 1.375rem;
|
|
23
23
|
height: 1.375rem;
|
|
24
24
|
aspect-ratio: 1;
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
transform: ${({$expanded:e})=>e?"rotate(180deg)":"rotate(0deg)"};
|
|
29
29
|
transition: all 0.3s ease;
|
|
30
30
|
border-radius: 50%;
|
|
31
|
-
background-color: ${
|
|
31
|
+
background-color: ${f._q};
|
|
32
32
|
|
|
33
33
|
svg {
|
|
34
|
-
color: ${
|
|
34
|
+
color: ${f.bD};
|
|
35
35
|
font-size: 1.25rem;
|
|
36
36
|
transition: transform 0.3s ease;
|
|
37
37
|
}
|
|
@@ -39,29 +39,29 @@
|
|
|
39
39
|
&:hover {
|
|
40
40
|
filter: brightness(0.9);
|
|
41
41
|
}
|
|
42
|
-
`,P=
|
|
42
|
+
`,P=g().span`
|
|
43
43
|
display: flex;
|
|
44
44
|
align-items: center;
|
|
45
45
|
margin-left: ${({$position:e})=>"right"===e?"auto":"0"};
|
|
46
|
-
`,q=
|
|
47
|
-
font-size: ${
|
|
46
|
+
`,q=g().span`
|
|
47
|
+
font-size: ${$};
|
|
48
48
|
font-weight: 400;
|
|
49
|
-
color: ${
|
|
49
|
+
color: ${f.eg};
|
|
50
50
|
overflow: hidden;
|
|
51
51
|
text-overflow: ellipsis;
|
|
52
|
-
`,
|
|
52
|
+
`,A=g().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
|
|
58
|
-
${({$isTalking:e,$color:t})=>{return e&&
|
|
59
|
-
animation: ${r=t,
|
|
57
|
+
`;var R={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},I=p.createContext&&p.createContext(R),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 _(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 H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){W(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(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,H({key:t},e.attr),G(e.child)))}function X(e){return t=>p.createElement(U,N({attr:H({},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:H(H({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!==I?p.createElement(I.Consumer,null,e=>t(e)):t(R)}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 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:"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 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:"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),ce=d(56),se=d.n(ce),de=d(540),ue=d.n(de),pe=d(113),he=d.n(pe),be=d(2),ge={};ge.styleTagTransform=he(),ge.setAttributes=se(),ge.insert=le().bind(null,"head"),ge.domAPI=ae(),ge.insertStyleElement=ue(),oe()(be.A,ge),be.A&&be.A.locals&&be.A.locals;const fe={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},me=(Object.values(fe),fe.TOP),ve={LEFT:"left",RIGHT:"right"},$e=(Object.values(ve),ve.LEFT),ye=function({title:e,tooltipLabel:t,tooltipPlacement:r=me,ariaLabel:o,ariaLabelledBy:n,ariaDescribedBy:a,buttonHeader:i=null,buttonHeaderPosition:l=$e,children:c}){var s;const[d,u]=(0,p.useState)(!1),b=(0,p.useRef)(null),g=h().createElement(M,{onClick:()=>u(e=>!e),"aria-label":o,"aria-labelledby":n,"aria-describedby":a},h().createElement(L,null,h().createElement(D,{$expanded:d},h().createElement(K,null)),h().createElement(q,null,e),h().createElement(P,{$position:l},i)));return h().createElement(h().Fragment,null,t?h().createElement(te(),{content:t,placement:r},g):g,h().createElement(A,{ref:b,$expanded:d,$scrollHeight:(null===(s=b.current)||void 0===s?void 0:s.scrollHeight)||0},c))},xe={SMALL:"small",MEDIUM:"medium",LARGE:"large"},we=(Object.values(xe),xe.MEDIUM),ke=["#7b1fa2","#6a1b9a","#4a148c","#5e35b1","#512da8","#4527a0","#311b92","#3949ab","#303f9f","#283593","#1a237e","#1976d2","#1565c0","#0d47a1","#0277bd","#01579b"],Ee={[xe.SMALL]:{dimension:"1.625rem",fontSize:"0.625rem",fontWeight:"600"},[xe.MEDIUM]:{dimension:"3rem",fontSize:"1.125rem",fontWeight:"500"},[xe.LARGE]:{dimension:"6rem",fontSize:"2.75rem",fontWeight:"400"}},Oe=b.css`
|
|
58
|
+
${({$isTalking:e,$color:t})=>{return e&&b.css`
|
|
59
|
+
animation: ${r=t,b.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
|
-
`,Be=
|
|
64
|
+
`,Be=g().div`
|
|
65
65
|
width: ${({$size:e})=>Ee[e].dimension};
|
|
66
66
|
height: ${({$size:e})=>Ee[e].dimension};
|
|
67
67
|
border-radius: ${({$isModerator:e})=>e?"20%":"50%"};
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
justify-content: center;
|
|
73
73
|
font-size: ${({$size:e})=>Ee[e].fontSize};
|
|
74
74
|
font-weight: ${({$size:e})=>Ee[e].fontWeight};
|
|
75
|
-
color: ${
|
|
75
|
+
color: ${f.bD};
|
|
76
76
|
text-transform: uppercase;
|
|
77
77
|
${Oe}
|
|
78
|
-
`,Ce=
|
|
78
|
+
`,Ce=g().img`
|
|
79
79
|
width: ${({$size:e})=>Ee[e].dimension};
|
|
80
80
|
height: ${({$size:e})=>Ee[e].dimension};
|
|
81
81
|
border-radius: ${({$isModerator:e})=>e?"20%":"50%"};
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
object-fit: cover;
|
|
84
84
|
border: 2px solid ${({$color:e})=>e};
|
|
85
85
|
${Oe}
|
|
86
|
-
`,Se=function({name:e,avatarUrl:t,color:r,size:o=we,isModerator:n=!1,isYou:a=!1,isTalking:i=!1,disableTooltip:l=!1}){const[c,s]=(0,p.useState)(!1),d=r||(a?
|
|
86
|
+
`,Se=function({name:e,avatarUrl:t,color:r,size:o=we,isModerator:n=!1,isYou:a=!1,isTalking:i=!1,disableTooltip:l=!1}){const[c,s]=(0,p.useState)(!1),d=r||(a?f.sY:function(e){const t=e.split("").reduce((e,t)=>e+t.charCodeAt(0),0);return ke[t%ke.length]}(e));(0,p.useEffect)(()=>{s(!1)},[t]);const u=t&&!c?h().createElement(Ce,{src:t,alt:e,$size:o,$color:d,$isModerator:n,$isTalking:i,onError:()=>s(!0)}):h().createElement(Be,{$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:h().createElement(te(),{content:e,placement:"top"},u)},je={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary",SUBTLE:"subtle"},Te=Object.values(je)[0],ze=Object.values({DEFAULT:"default",DANGER:"danger",NEUTRAL:"neutral"})[0],Me={MEDIUM:"md",SMALL:"sm"},Le=Object.values(Me)[0],De={DEFAULT:"default",STACKED:"stacked",CIRCLE:"circle",SQUARED:"squared"},Pe=Object.values(De)[0],qe={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Ae=(Object.values(qe),qe.TOP),Re={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ie=(Object.values(Re),Re.BUTTON),Fe={primary:{default:{color:f.bD,background:f._q,border:f._q,hoverColor:f.bD,hoverBackground:f.GJ,hoverBorder:f.GJ,outline:f._q},danger:{color:f.bD,background:f._r,border:f.qO,hoverColor:f.bD,hoverBackground:f.Ee,hoverBorder:f.qO,outline:f._r},neutral:{color:f.Xg,background:f.bD,border:!1,hoverColor:f.Xg,hoverBackground:f.xM,hoverBorder:!1,outline:f._q}},secondary:{default:{color:f._q,background:f.bh,border:f.z2,hoverColor:f.GJ,hoverBackground:f.bh,hoverBorder:f.GJ,outline:f._q},danger:{color:f._r,background:f.bh,border:f.qO,hoverColor:f.Ee,hoverBackground:f.bh,hoverBorder:f.Ee,outline:f._r},neutral:{color:f.Xg,background:f.bD,border:!1,hoverColor:f.Xg,hoverBackground:f.xM,hoverBorder:!1,outline:f._q}},tertiary:{default:{color:f._q,background:f.od,border:!1,hoverColor:f.GJ,hoverBackground:f.K5,hoverBorder:!1,outline:f._q},danger:{color:f.bD,background:f.Ee,border:!1,hoverColor:f.bD,hoverBackground:f._r,hoverBorder:!1,outline:f.Ee},neutral:{color:f.Xg,background:f.bD,border:!1,hoverColor:f.Xg,hoverBackground:f.xM,hoverBorder:!1,outline:f._q}},subtle:{default:{color:f.XN,iconColor:f.kE,background:"transparent",border:!1,hoverColor:f.XN,hoverBackground:f.d5,hoverBorder:!1,outline:f.kE},danger:{color:f._r,background:!1,border:!1,hoverColor:f.Ee,hoverBackground:f.d5,hoverBorder:!1,outline:f._r},neutral:{color:f.Xg,background:f.bD,border:!1,hoverColor:f.Xg,hoverBackground:f.xM,hoverBorder:!1,outline:f._q}}},Ne={color:f.qg,background:f.GW,border:!1,outline:f.qg},_e={sm:{padding:`${k} ${E}`,iconBoxSize:S},md:{padding:O,iconBoxSize:j}},He=b.css`
|
|
87
87
|
cursor: pointer;
|
|
88
88
|
user-select: none;
|
|
89
89
|
font-weight: 600;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
|
|
97
97
|
${({$size:e})=>{var t;return`padding: ${(null!==(t=_e[null!=e?e:Le])&&void 0!==t?t:_e[Le]).padding};`}}
|
|
98
98
|
|
|
99
|
-
${({$color:e,$variant:t})=>{const r=e||ze,o=t||Te,{color:n,iconColor:a,background:i,border:l,hoverColor:c,hoverBackground:s,hoverBorder:d,outline:u}=
|
|
99
|
+
${({$color:e,$variant:t})=>{const r=e||ze,o=t||Te,{color:n,iconColor:a,background:i,border:l,hoverColor:c,hoverBackground:s,hoverBorder:d,outline:u}=Fe[o][r];return b.css`
|
|
100
100
|
& span {
|
|
101
101
|
color: ${n};
|
|
102
102
|
}
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
|
|
119
119
|
${({$variant:e})=>e===je.SUBTLE&&"\n text-decoration: underline;\n "}
|
|
120
120
|
|
|
121
|
-
${({disabled:e})=>{if(!e)return null;const{color:t,background:r,border:o,outline:n}=Ne;return
|
|
121
|
+
${({disabled:e})=>{if(!e)return null;const{color:t,background:r,border:o,outline:n}=Ne;return b.css`
|
|
122
122
|
pointer-events: none;
|
|
123
123
|
cursor: not-allowed;
|
|
124
124
|
& span {
|
|
@@ -139,52 +139,52 @@
|
|
|
139
139
|
outline: 2px solid ${n};
|
|
140
140
|
}
|
|
141
141
|
`}}
|
|
142
|
-
`,
|
|
142
|
+
`,We=b.css`
|
|
143
143
|
width: 4.5rem;
|
|
144
144
|
height: 4.5rem;
|
|
145
145
|
border-radius: ${T} !important;
|
|
146
|
-
border: 1px solid ${
|
|
146
|
+
border: 1px solid ${f.hN} !important;
|
|
147
147
|
padding: ${k} !important;
|
|
148
148
|
box-sizing: border-box;
|
|
149
149
|
display: flex;
|
|
150
150
|
flex-direction: column;
|
|
151
151
|
justify-content: center;
|
|
152
152
|
align-items: center;
|
|
153
|
-
`,
|
|
153
|
+
`,Ge=b.css`
|
|
154
154
|
${({$size:e})=>{var t;const r=null!=e?e:Le,{iconBoxSize:o}=null!==(t=_e[r])&&void 0!==t?t:_e[Le];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
|
+
`,Xe=b.css`
|
|
161
|
+
${Ge}
|
|
162
162
|
border-radius: 50%;
|
|
163
|
-
`,
|
|
164
|
-
${
|
|
163
|
+
`,Ue=b.css`
|
|
164
|
+
${Ge}
|
|
165
165
|
border-radius: ${z};
|
|
166
|
-
`,Ke=
|
|
166
|
+
`,Ke=b.css`
|
|
167
167
|
display: ${({$fullWidth:e})=>e?"flex":"inline-flex"};
|
|
168
168
|
${({$fullWidth:e})=>e&&"width: 100%;"}
|
|
169
169
|
justify-content: center;
|
|
170
170
|
align-items: center;
|
|
171
171
|
gap: ${k};
|
|
172
172
|
border-radius: ${T};
|
|
173
|
-
`,Ye=
|
|
173
|
+
`,Ye=g().div`
|
|
174
174
|
${({$layout:e})=>e===De.STACKED&&`\n width: 5rem;\n display: flex;\n flex-direction: column;\n gap: ${k};\n align-items: center;\n `}
|
|
175
|
-
`,
|
|
176
|
-
${
|
|
175
|
+
`,Ve=g().button`
|
|
176
|
+
${He}
|
|
177
177
|
|
|
178
|
-
${({$layout:e})=>{switch(e){case De.STACKED:return
|
|
179
|
-
`,
|
|
180
|
-
${({$hover:e,$variant:t,$color:r})=>e?
|
|
178
|
+
${({$layout:e})=>{switch(e){case De.STACKED:return We;case De.CIRCLE:return Xe;case De.SQUARED:return Ue;default:return Ke}}}
|
|
179
|
+
`,Je=g().div`
|
|
180
|
+
${({$hover:e,$variant:t,$color:r})=>e?b.css`
|
|
181
181
|
&&:hover,
|
|
182
182
|
&&:active {
|
|
183
|
-
${
|
|
183
|
+
${Fe[t][r].hoverBackground&&`background-color: ${Fe[t][r].hoverBackground};`}
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
&&:focus {
|
|
187
|
-
outline: 1px solid ${
|
|
187
|
+
outline: 1px solid ${Fe[t][r].outline};
|
|
188
188
|
}
|
|
189
189
|
`:null}
|
|
190
190
|
border-radius: 50%;
|
|
@@ -195,11 +195,11 @@
|
|
|
195
195
|
& svg {
|
|
196
196
|
font-size: 1.25rem;
|
|
197
197
|
}
|
|
198
|
-
`,Qe=
|
|
198
|
+
`,Qe=g().div`
|
|
199
199
|
display: flex;
|
|
200
200
|
align-items: center;
|
|
201
201
|
justify-content: center;
|
|
202
|
-
`,Ze=
|
|
202
|
+
`,Ze=g().div`
|
|
203
203
|
display: flex;
|
|
204
204
|
align-items: center;
|
|
205
205
|
justify-content: center;
|
|
@@ -208,14 +208,14 @@
|
|
|
208
208
|
> i {
|
|
209
209
|
font-size: 2rem;
|
|
210
210
|
}
|
|
211
|
-
`,et=
|
|
211
|
+
`,et=g().span`
|
|
212
212
|
display: inline-flex;
|
|
213
213
|
align-items: center;
|
|
214
214
|
justify-content: center;
|
|
215
215
|
gap: ${k};
|
|
216
|
-
`,tt=
|
|
217
|
-
color: ${
|
|
218
|
-
font-size: ${
|
|
216
|
+
`,tt=g().div`
|
|
217
|
+
color: ${f.eg};
|
|
218
|
+
font-size: ${v};
|
|
219
219
|
width: 100%;
|
|
220
220
|
text-align: center;
|
|
221
221
|
line-height: 1;
|
|
@@ -224,62 +224,62 @@
|
|
|
224
224
|
display: -webkit-box;
|
|
225
225
|
-webkit-line-clamp: 2;
|
|
226
226
|
-webkit-box-orient: vertical;
|
|
227
|
-
`,rt=function(e){const{id:t="",dataTest:r,label:o,tooltipLabel:n,tooltipPlacement:a=
|
|
227
|
+
`,rt=function(e){const{id:t="",dataTest:r,label:o,tooltipLabel:n,tooltipPlacement:a=Ae,onClick:i,onKeyDown:l,ariaLabel:c="",ariaLabelledBy:s="",ariaDescribedBy:d="",color:u=ze,variant:b=Te,size:g=Le,layout:f=Pe,type:m=Ie,disabled:v=!1,children:$,showFeedback:y=!1,feedbackContent:x=h().createElement(Z,{fontSize:"small"}),feedbackDuration:w=2e3,className:k}=e,E=(0,p.useRef)(null),[O,B]=(0,p.useState)(!1);(0,p.useEffect)(()=>()=>{E.current&&clearTimeout(E.current)},[]);const C=(0,p.useCallback)(e=>{i(e),y&&(B(!0),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>B(!1),w))},[i,y,w]),S={},j=(0,p.useId)(),T=`${t||j}-label`,z=f===De.STACKED||f===De.DEFAULT&&(Boolean(o)||O);S["aria-label"]=c||o,s?S["aria-labelledby"]=s:z&&(S["aria-labelledby"]=T),d&&(S["aria-describedby"]=d);const M=(()=>{if(e.layout===De.CIRCLE||e.layout===De.SQUARED){const{icon:o}=e,n=r||`button-${t||"default"}`;return h().createElement(Ve,Object.assign({id:t,className:k,type:m,"data-test":n,onClick:C,onKeyDown:l},S,{$color:u,$variant:b,$size:g,$layout:f,disabled:v}),O?h().createElement(et,{role:"status","aria-live":"polite"},x):o)}if(e.layout===De.STACKED){const{icon:n,helperIcon:a=h().createElement(J,{fontSize:"small"}),hideHelperIcon:i=!1,helperOnClick:c=null}=e,s=r||`${De.STACKED}-button-${t||o||"default"}`;return h().createElement(Ye,{className:k,"data-test":s,$layout:f},h().createElement(Ve,Object.assign({id:t,type:m,onClick:C,onKeyDown:l},S,{$color:u,$variant:b,$size:g,$layout:f,disabled:v}),!i&&h().createElement(Je,Object.assign({},c&&{"data-is-aux-icon":!0},c&&{"aria-label":S["aria-label"]+" helper"},c&&{role:"button"},{$hover:null!==c,$color:u,$variant:b,onClick:e=>{c&&(c(e),e.preventDefault(),e.stopPropagation())}}),h().createElement(Qe,null,a)),O?h().createElement(Ze,null,h().createElement(et,{role:"status","aria-live":"polite"},x)):n&&h().createElement(Ze,null,n)),h().createElement(tt,{id:T},o))}const{iconStart:n,iconEnd:a,fullWidth:i=!1}=e,c=r||`button-${t||o||"default"}`;return h().createElement(Ve,Object.assign({id:t,className:k,type:m,"data-test":c,onClick:C,onKeyDown:l},S,{$color:u,$variant:b,$size:g,$layout:f,$fullWidth:i,disabled:v}),O?h().createElement(et,{id:T,role:"status","aria-live":"polite"},x):h().createElement(h().Fragment,null,n&&n,o&&h().createElement("span",{id:T},o),$,a&&a))})();return n?h().createElement(te(),{content:n,placement:a},M):M};var ot=d(823);const nt=g().div`
|
|
228
228
|
display: inline-flex;
|
|
229
229
|
align-items: center;
|
|
230
230
|
gap: ${k};
|
|
231
|
-
`,at=
|
|
232
|
-
color: ${
|
|
233
|
-
font-size: ${
|
|
231
|
+
`,at=g().label`
|
|
232
|
+
color: ${f.eg};
|
|
233
|
+
font-size: ${$};
|
|
234
234
|
font-style: normal;
|
|
235
235
|
font-weight: 400;
|
|
236
236
|
line-height: normal;
|
|
237
237
|
cursor: pointer;
|
|
238
|
-
`,it=
|
|
238
|
+
`,it=g()(ot.Checkbox)`
|
|
239
239
|
&.MuiCheckbox-root {
|
|
240
240
|
padding: 0;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
&.Mui-checked {
|
|
244
|
-
color: ${
|
|
244
|
+
color: ${f._q};
|
|
245
245
|
}
|
|
246
|
-
`,lt={RIGHT:"right",LEFT:"left"},ct=Object.values(lt)[0];var st=d(410),dt=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 ut=function(e){var{label:t,layout:r=ct,round:o=!1,ariaLabel:n,id:a,dataTest:i,slotProps:l}=e,c=dt(e,["label","layout","round","ariaLabel","id","dataTest","slotProps"]);const s=(0,p.useId)(),d=null!=a?a:s,u={"aria-label":n,"data-test":i},
|
|
246
|
+
`,lt={RIGHT:"right",LEFT:"left"},ct=Object.values(lt)[0];var st=d(410),dt=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 ut=function(e){var{label:t,layout:r=ct,round:o=!1,ariaLabel:n,id:a,dataTest:i,slotProps:l}=e,c=dt(e,["label","layout","round","ariaLabel","id","dataTest","slotProps"]);const s=(0,p.useId)(),d=null!=a?a:s,u={"aria-label":n,"data-test":i},b=null!=l?l:{},{input:g}=b,f=dt(b,["input"]),m="function"==typeof g?e=>Object.assign(Object.assign({},u),g(e)):Object.assign(Object.assign({},u),g),v=h().createElement(it,Object.assign({},c,{id:d,icon:o?h().createElement(st.RadioButtonUnchecked,null):void 0,checkedIcon:o?h().createElement(st.RadioButtonChecked,null):void 0,slotProps:Object.assign(Object.assign({},f),{input:m})}));return t?h().createElement(nt,null,r===lt.LEFT&&h().createElement(at,{htmlFor:d},t),v,r===lt.RIGHT&&h().createElement(at,{htmlFor:d},t)):v},pt=g().hr`
|
|
247
247
|
width: 100%;
|
|
248
248
|
border-top: 0px;
|
|
249
249
|
border-right: 0px;
|
|
250
250
|
border-left: 0px;
|
|
251
251
|
border-image: initial;
|
|
252
|
-
border-bottom: 1px solid ${
|
|
252
|
+
border-bottom: 1px solid ${f.hN};
|
|
253
253
|
margin: 0px;
|
|
254
|
-
`,
|
|
254
|
+
`,ht=function(){return h().createElement(pt,null)},bt=g().div`
|
|
255
255
|
display: flex;
|
|
256
256
|
flex-direction: column;
|
|
257
257
|
gap: ${k};
|
|
258
258
|
padding: ${O};
|
|
259
|
-
background-color: ${
|
|
260
|
-
`,
|
|
259
|
+
background-color: ${f.GW};
|
|
260
|
+
`,gt=g().div`
|
|
261
261
|
display: flex;
|
|
262
262
|
flex-direction: row;
|
|
263
263
|
gap: ${E};
|
|
264
|
-
`,
|
|
264
|
+
`,ft=g().div`
|
|
265
265
|
display: flex;
|
|
266
266
|
align-items: center;
|
|
267
267
|
justify-content: space-between;
|
|
268
|
-
`,mt=
|
|
269
|
-
color: ${
|
|
268
|
+
`,mt=g().div`
|
|
269
|
+
color: ${f._q};
|
|
270
270
|
display: flex;
|
|
271
271
|
align-items: center;
|
|
272
|
-
|
|
273
|
-
color: ${
|
|
274
|
-
font-size: ${
|
|
272
|
+
`,vt=g().label`
|
|
273
|
+
color: ${f.eg};
|
|
274
|
+
font-size: ${$}
|
|
275
275
|
font-style: normal;
|
|
276
276
|
font-weight: 600;
|
|
277
277
|
line-height: normal;
|
|
278
|
-
|
|
278
|
+
`,$t=g().button`
|
|
279
279
|
display: flex;
|
|
280
280
|
align-items: center;
|
|
281
281
|
justify-content: center;
|
|
282
|
-
color: ${
|
|
282
|
+
color: ${f.kE};
|
|
283
283
|
background: transparent;
|
|
284
284
|
border: none;
|
|
285
285
|
border-radius: 50%;
|
|
@@ -288,71 +288,71 @@
|
|
|
288
288
|
|
|
289
289
|
&&:hover,
|
|
290
290
|
&&:active {
|
|
291
|
-
background-color: ${
|
|
291
|
+
background-color: ${f.K5};
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
&&:focus {
|
|
295
|
-
outline: 2px solid ${
|
|
295
|
+
outline: 2px solid ${f._q};
|
|
296
296
|
}
|
|
297
|
-
`,yt=
|
|
298
|
-
color: ${
|
|
299
|
-
font-size: ${
|
|
297
|
+
`,yt=g().label`
|
|
298
|
+
color: ${f.eg};
|
|
299
|
+
font-size: ${$};
|
|
300
300
|
font-style: normal;
|
|
301
301
|
font-weight: 400;
|
|
302
302
|
line-height: normal;
|
|
303
303
|
border-radius: ${z};
|
|
304
|
-
`;const xt=function(e){var{title:t,label:r,icon:o=
|
|
304
|
+
`;const xt=function(e){var{title:t,label:r,icon:o=h().createElement(Q,{fontSize:"1rem"}),open:n,onRequestClose:a,hideCloseButton:i=!1,children:l}=e,c=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 s=void 0!==n,[d,u]=(0,p.useState)(!0);if(!(s?n:d))return null;const b=h().createElement(yt,null,r,l);return h().createElement(bt,Object.assign({role:"status","aria-live":"polite","aria-atomic":"true","aria-label":t||r},c),h().createElement(ft,null,h().createElement(gt,null,h().createElement(mt,{"aria-hidden":"true"},o),t&&h().createElement(vt,null,t),!t&&b),!i&&h().createElement($t,{type:"button","aria-label":"Close",onClick:()=>{s||u(!1),null==a||a()}},h().createElement(V,{fontSize:"1rem"}))),t&&b)},wt=g().div`
|
|
305
305
|
display: flex;
|
|
306
306
|
flex-direction: column;
|
|
307
307
|
width: 100%;
|
|
308
308
|
gap: ${k};
|
|
309
|
-
`,kt=
|
|
310
|
-
color: ${
|
|
311
|
-
font-size: ${
|
|
309
|
+
`,kt=g().label`
|
|
310
|
+
color: ${f.eg};
|
|
311
|
+
font-size: ${v};
|
|
312
312
|
font-style: normal;
|
|
313
313
|
font-weight: 400;
|
|
314
314
|
line-height: normal;
|
|
315
|
-
`,Et=
|
|
315
|
+
`,Et=g().div`
|
|
316
316
|
display: flex;
|
|
317
317
|
align-items: center;
|
|
318
318
|
width: 100%;
|
|
319
319
|
padding: ${k} ${O};
|
|
320
320
|
gap: ${k};
|
|
321
321
|
border-radius: ${T};
|
|
322
|
-
border: 1px solid ${
|
|
322
|
+
border: 1px solid ${f.hN};
|
|
323
323
|
background-color: transparent;
|
|
324
324
|
box-sizing: border-box;
|
|
325
325
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
326
326
|
|
|
327
327
|
&:focus-within {
|
|
328
|
-
border-color: ${
|
|
329
|
-
box-shadow: 0 0 0 3px ${
|
|
328
|
+
border-color: ${f.z2};
|
|
329
|
+
box-shadow: 0 0 0 3px ${f.ot};
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
${({$error:e})=>e&&
|
|
333
|
-
border-color: ${
|
|
332
|
+
${({$error:e})=>e&&b.css`
|
|
333
|
+
border-color: ${f.qO};
|
|
334
334
|
`}
|
|
335
335
|
|
|
336
|
-
${({$disabled:e})=>e&&
|
|
336
|
+
${({$disabled:e})=>e&&b.css`
|
|
337
337
|
opacity: 0.5;
|
|
338
338
|
cursor: not-allowed;
|
|
339
339
|
pointer-events: none;
|
|
340
340
|
`}
|
|
341
|
-
`,Ot=
|
|
341
|
+
`,Ot=g().textarea`
|
|
342
342
|
flex: 1;
|
|
343
343
|
min-width: 0;
|
|
344
344
|
resize: none;
|
|
345
345
|
border: none;
|
|
346
346
|
outline: none;
|
|
347
347
|
background: transparent;
|
|
348
|
-
color: ${
|
|
348
|
+
color: ${f.eg};
|
|
349
349
|
font-family: inherit;
|
|
350
|
-
font-size: ${
|
|
350
|
+
font-size: ${v};
|
|
351
351
|
line-height: 1.5;
|
|
352
352
|
padding: 0;
|
|
353
353
|
|
|
354
354
|
&::placeholder {
|
|
355
|
-
color: ${
|
|
355
|
+
color: ${f.XN};
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
&:disabled {
|
|
@@ -362,92 +362,92 @@
|
|
|
362
362
|
[dir='rtl'] & {
|
|
363
363
|
text-align: right;
|
|
364
364
|
}
|
|
365
|
-
`,Bt=
|
|
366
|
-
color: ${
|
|
367
|
-
font-size: ${
|
|
365
|
+
`,Bt=g().div`
|
|
366
|
+
color: ${f.eg};
|
|
367
|
+
font-size: ${v};
|
|
368
368
|
font-style: normal;
|
|
369
369
|
font-weight: 400;
|
|
370
370
|
line-height: normal;
|
|
371
371
|
padding: 0 ${O};
|
|
372
372
|
|
|
373
|
-
${({$success:e})=>e&&
|
|
374
|
-
color: ${
|
|
373
|
+
${({$success:e})=>e&&b.css`
|
|
374
|
+
color: ${f.lb};
|
|
375
375
|
`}
|
|
376
376
|
|
|
377
|
-
${({$error:e})=>e&&
|
|
378
|
-
color: ${
|
|
377
|
+
${({$error:e})=>e&&b.css`
|
|
378
|
+
color: ${f._r};
|
|
379
379
|
`}
|
|
380
|
-
`,Ct=function({label:e,placeholder:t,value:r,onChange:o,onSubmit:n,buttonIcon:a,buttonLabel:i,buttonAriaLabel:l,buttonVariant:c="primary",dataTest:s,buttonDataTest:d,beforeButton:u,afterButton:
|
|
381
|
-
color: ${
|
|
382
|
-
font-size: ${
|
|
380
|
+
`,Ct=function({label:e,placeholder:t,value:r,onChange:o,onSubmit:n,buttonIcon:a,buttonLabel:i,buttonAriaLabel:l,buttonVariant:c="primary",dataTest:s,buttonDataTest:d,beforeButton:u,afterButton:b,submitOnEnter:g=!0,showSentFeedback:f=!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,[z,M]=(0,p.useState)(""),L=T?null!=r?r:"":z,D=(0,p.useId)(),P=null!=C?C:D,q=(0,p.useRef)(null),A=(0,p.useRef)(null),[R,I]=(0,p.useState)(!1),F=(0,p.useCallback)(e=>{q.current=e,"function"==typeof B?B(e):B&&"current"in B&&(B.current=e)},[B]);(0,p.useEffect)(()=>{const e=q.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"},[L,w,k]),(0,p.useEffect)(()=>()=>{A.current&&clearTimeout(A.current)},[]),(0,p.useEffect)(()=>{O&&q.current&&q.current.focus()},[O]);const N=(0,p.useCallback)(e=>{const t=e.target.value;T?null==o||o(t):M(t)},[T,o]),_=(0,p.useCallback)(()=>{var e;if($)return;const t=L.trim();t&&(n(t),T||M(""),null===(e=q.current)||void 0===e||e.focus(),f&&(I(!0),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>I(!1),v)))},[$,L,n,T,f,v]),H=(0,p.useCallback)(e=>{"Enter"===e.key&&!e.shiftKey&&g&&(e.preventDefault(),_())},[g,_]),W=Boolean(x)||R,G=W?`${P}-helper`:void 0,X=[j,G].filter(Boolean).join(" ")||void 0,U=i?h().createElement(rt,{onClick:_,disabled:$,size:Me.SMALL,variant:c,dataTest:d,label:i,ariaLabel:l,iconStart:a}):h().createElement(rt,{layout:De.SQUARED,onClick:_,disabled:$,variant:c,dataTest:d,icon:a,ariaLabel:l});return h().createElement(wt,null,e&&h().createElement(kt,{htmlFor:P},e),h().createElement(Et,{$disabled:$,$error:y},h().createElement(Ot,{ref:F,id:P,rows:w,placeholder:t,value:L,onChange:N,onKeyDown:H,disabled:$,maxLength:E,"data-test":s,"aria-label":S,"aria-describedby":X}),u,U,b),W&&h().createElement(Bt,{id:G,$success:R,$error:!R&&y,role:R?"status":void 0,"aria-live":R?"polite":void 0},R?m:x))};var St=d(215),jt=d.n(St);const Tt={default:b.css`
|
|
381
|
+
color: ${f.eg};
|
|
382
|
+
font-size: ${$};
|
|
383
383
|
font-style: normal;
|
|
384
384
|
font-weight: ${x};
|
|
385
385
|
line-height: normal;
|
|
386
|
-
`,selected:
|
|
387
|
-
color: ${
|
|
388
|
-
font-size: ${
|
|
386
|
+
`,selected:b.css`
|
|
387
|
+
color: ${f.eg};
|
|
388
|
+
font-size: ${$};
|
|
389
389
|
font-style: normal;
|
|
390
390
|
font-weight: ${"700"};
|
|
391
391
|
line-height: normal;
|
|
392
|
-
`,text2:
|
|
393
|
-
color: ${
|
|
394
|
-
font-size: ${
|
|
392
|
+
`,text2:b.css`
|
|
393
|
+
color: ${f.XN};
|
|
394
|
+
font-size: ${v};
|
|
395
395
|
font-style: normal;
|
|
396
396
|
font-weight: ${x};
|
|
397
397
|
line-height: normal;
|
|
398
|
-
`,text3:
|
|
399
|
-
color: ${
|
|
398
|
+
`,text3:b.css`
|
|
399
|
+
color: ${f.XN};
|
|
400
400
|
font-size: ${m};
|
|
401
401
|
font-style: normal;
|
|
402
402
|
font-weight: ${x};
|
|
403
403
|
line-height: normal;
|
|
404
|
-
`,header:
|
|
405
|
-
color: ${
|
|
406
|
-
font-size: ${
|
|
404
|
+
`,header:b.css`
|
|
405
|
+
color: ${f.eg};
|
|
406
|
+
font-size: ${$};
|
|
407
407
|
font-style: normal;
|
|
408
408
|
font-weight: ${"700"};
|
|
409
409
|
line-height: normal;
|
|
410
410
|
text-transform: uppercase;
|
|
411
|
-
`,button:
|
|
412
|
-
color: ${
|
|
413
|
-
font-size: ${
|
|
411
|
+
`,button:b.css`
|
|
412
|
+
color: ${f.eg};
|
|
413
|
+
font-size: ${$};
|
|
414
414
|
font-style: normal;
|
|
415
415
|
font-weight: ${"600"};
|
|
416
416
|
line-height: normal;
|
|
417
|
-
`},zt=
|
|
417
|
+
`},zt=g().p`
|
|
418
418
|
margin: 0;
|
|
419
419
|
padding: 0;
|
|
420
420
|
${({$variant:e})=>Tt[e]}
|
|
421
|
-
`;const Mt=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
|
|
421
|
+
`;const Mt=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 h().createElement(zt,Object.assign({as:o,$variant:r},n),t)},Lt={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:f.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"}},Dt=g().div`
|
|
422
422
|
padding: ${C} ${C} ${E};
|
|
423
423
|
display: flex;
|
|
424
424
|
justify-content: space-between;
|
|
425
425
|
align-items: center;
|
|
426
426
|
gap: ${O};
|
|
427
|
-
`,Pt=
|
|
427
|
+
`,Pt=g()(Mt)`
|
|
428
428
|
flex: 1;
|
|
429
429
|
min-width: 0;
|
|
430
430
|
overflow-wrap: anywhere;
|
|
431
|
-
`,qt=
|
|
431
|
+
`,qt=g().div`
|
|
432
432
|
flex-grow: 1;
|
|
433
433
|
overflow-y: ${({$allowScroll:e})=>e?"auto":"hidden"};
|
|
434
434
|
overflow-x: hidden;
|
|
435
435
|
display: flex;
|
|
436
436
|
flex-direction: column;
|
|
437
|
-
`,
|
|
437
|
+
`,At=g().div`
|
|
438
438
|
flex-grow: 1;
|
|
439
439
|
padding: 0 ${C};
|
|
440
440
|
margin: ${E} 0 ${E};
|
|
441
|
-
`,
|
|
441
|
+
`,Rt=g().div`
|
|
442
442
|
padding: ${E} ${C} ${C};
|
|
443
443
|
display: flex;
|
|
444
444
|
justify-content: flex-end;
|
|
445
445
|
gap: ${O};
|
|
446
446
|
|
|
447
|
-
${({$stickyFooter:e})=>e&&`\n position: sticky;\n bottom: 0;\n background-color: ${
|
|
448
|
-
`,
|
|
449
|
-
background: ${
|
|
450
|
-
`;const
|
|
447
|
+
${({$stickyFooter:e})=>e&&`\n position: sticky;\n bottom: 0;\n background-color: ${f.bD};\n `}
|
|
448
|
+
`,It=g()(jt())`
|
|
449
|
+
background: ${f.bD};
|
|
450
|
+
`;const Ft=e=>{var{isOpen:t=!0,onRequestClose:r,appElement:o,title:n,contentLabel:a,showDividers:i=!1,shouldCloseOnOverlayClick:l=!1,shouldCloseOnEsc:c=!1,allowScroll:s=!0,noFooter:d=!1,hideCloseButton:u=!1,footerContent:b=null,stickyFooter:g=!0,testId:f,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;f&&!m&&(y=`${f}-close-button`);const x=(0,p.useCallback)(e=>h().createElement(h().Fragment,null,i&&h().createElement(ht,null),h().createElement(Rt,{$stickyFooter:e},b)),[b,i]);return h().createElement(It,Object.assign({},$,{isOpen:t,onRequestClose:r,contentLabel:a,style:Lt,shouldCloseOnOverlayClick:l,shouldCloseOnEsc:c,appElement:o,testId:f}),h().createElement(Dt,null,h().createElement(Pt,{variant:"header"},n),!u&&h().createElement(rt,Object.assign({layout:"circle",icon:h().createElement(V,{size:"1.5rem"}),onClick:r,variant:"subtle",ariaLabel:"close"},y?{dataTest:y}:{}))),i&&h().createElement(ht,null),h().createElement(qt,{$allowScroll:s},h().createElement(At,null,v),!d&&!g&&x(g)),!d&&g&&x(g))},Nt=g().button`
|
|
451
451
|
display: flex;
|
|
452
452
|
flex-direction: row;
|
|
453
453
|
align-items: center;
|
|
@@ -459,36 +459,36 @@
|
|
|
459
459
|
border-radius: ${z};
|
|
460
460
|
|
|
461
461
|
&:focus {
|
|
462
|
-
outline: 1px solid ${
|
|
462
|
+
outline: 1px solid ${f._q};
|
|
463
463
|
}
|
|
464
|
-
`,_t=
|
|
464
|
+
`,_t=g().div`
|
|
465
465
|
display: flex;
|
|
466
466
|
flex-direction: row;
|
|
467
467
|
align-items: center;
|
|
468
468
|
justify-content: center;
|
|
469
469
|
gap: ${O};
|
|
470
|
-
`,
|
|
470
|
+
`,Ht=g().div`
|
|
471
471
|
display: flex;
|
|
472
472
|
align-items: center;
|
|
473
473
|
justify-content: center;
|
|
474
|
-
color: ${
|
|
474
|
+
color: ${f._q};
|
|
475
475
|
|
|
476
|
-
${({$isCustomIcon:e})=>!e&&
|
|
476
|
+
${({$isCustomIcon:e})=>!e&&b.css`
|
|
477
477
|
transform: rotate(90deg);
|
|
478
478
|
[dir="rtl"] & {
|
|
479
479
|
transform: rotate(-90deg);
|
|
480
480
|
}
|
|
481
481
|
`}
|
|
482
|
-
`,
|
|
482
|
+
`,Wt=function({label:e,onClick:t,onKeyDown:r,icon:o,children:n,ariaLabel:a,ariaLabelledBy:i,ariaDescribedBy:l,dataTest:c}){const s=!!o,d=o||h().createElement(Y,{size:"1.5rem"});return h().createElement(Nt,{onClick:t,onKeyDown:r,"aria-label":a,"aria-labelledby":i,"aria-describedby":l,"data-test":c},h().createElement(_t,null,h().createElement(Ht,{$isCustomIcon:s},d),h().createElement(Mt,{variant:"default"},e)),n)},Gt="40px",Xt="14px",Ut="rgba(0, 0, 0, .2)",Kt=e=>[{image:`linear-gradient(to right, ${e} 30%, transparent)`,position:"0 0",size:`${Gt} 100%`,attachment:"local"},{image:`linear-gradient(to right, transparent, ${e} 70%)`,position:"100% 0",size:`${Gt} 100%`,attachment:"local"},{image:`radial-gradient(farthest-side at 0 50%, ${Ut}, transparent)`,position:"0 0",size:`${Xt} 100%`,attachment:"scroll"},{image:`radial-gradient(farthest-side at 100% 50%, ${Ut}, transparent)`,position:"100% 0",size:`${Xt} 100%`,attachment:"scroll"}],Yt=g().div`
|
|
483
483
|
overflow-y: ${({$verticalScroll:e})=>e?"auto":"hidden"};
|
|
484
484
|
overflow-x: ${({$horizontalScroll:e})=>e?"auto":"hidden"};
|
|
485
|
-
${({$maxHeight:e})=>e&&
|
|
486
|
-
${({$maxWidth:e})=>e&&
|
|
487
|
-
${({$paddingTop:e})=>e&&
|
|
488
|
-
${({$paddingRight:e})=>e&&
|
|
489
|
-
${({$paddingBottom:e})=>e&&
|
|
490
|
-
${({$paddingLeft:e})=>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% ${
|
|
485
|
+
${({$maxHeight:e})=>e&&b.css`max-height: ${e};`}
|
|
486
|
+
${({$maxWidth:e})=>e&&b.css`max-width: ${e};`}
|
|
487
|
+
${({$paddingTop:e})=>e&&b.css`padding-top: ${e};`}
|
|
488
|
+
${({$paddingRight:e})=>e&&b.css`padding-right: ${e};`}
|
|
489
|
+
${({$paddingBottom:e})=>e&&b.css`padding-bottom: ${e};`}
|
|
490
|
+
${({$paddingLeft:e})=>e&&b.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% ${Gt}`,attachment:"local"},{image:`linear-gradient(transparent, ${a} 70%)`,position:"0 100%",size:`100% ${Gt}`,attachment:"local"},{image:`radial-gradient(farthest-side at 50% 0, ${Ut}, transparent)`,position:"0 0",size:`100% ${Xt}`,attachment:"scroll"},{image:`radial-gradient(farthest-side at 50% 100%, ${Ut}, transparent)`,position:"0 100%",size:`100% ${Xt}`,attachment:"scroll"}]):[],...t?Kt(o):[]];var a;return n.length?b.css`
|
|
492
492
|
background-image: ${n.map(e=>e.image).join(", ")};
|
|
493
493
|
background-position: ${n.map(e=>e.position).join(", ")};
|
|
494
494
|
background-size: ${n.map(e=>e.size).join(", ")};
|
|
@@ -520,40 +520,41 @@
|
|
|
520
520
|
&::-webkit-scrollbar-track:hover { background: rgba(0, 0, 0, .25); }
|
|
521
521
|
&::-webkit-scrollbar-track:active { background: rgba(0, 0, 0, .25); }
|
|
522
522
|
&::-webkit-scrollbar-corner { background: 0 0; }
|
|
523
|
-
`,
|
|
523
|
+
`,Vt=function({children:e,verticalScroll:t=!0,horizontalScroll:r=!1,maxHeight:o,maxWidth:n,fadeEdges:a=!0,fadeColor:i,paddingTop:l,paddingRight:c,paddingBottom:s,paddingLeft:d}){const u=t||r;return h().createElement(Yt,{$verticalScroll:t,$horizontalScroll:r,$maxHeight:o,$maxWidth:n,$fadeEdges:a,$fadeColor:i,$paddingTop:l,$paddingRight:c,$paddingBottom:s,$paddingLeft:d,tabIndex:u?0:void 0},e)},Jt=b.keyframes`
|
|
524
524
|
0% { transform: rotate(0deg); }
|
|
525
525
|
100% { transform: rotate(360deg); }
|
|
526
|
-
`,Qt=
|
|
526
|
+
`,Qt=b.keyframes`
|
|
527
527
|
0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
|
|
528
528
|
50% { stroke-dasharray: 100, 200; stroke-dashoffset: -15; }
|
|
529
529
|
100% { stroke-dasharray: 100, 200; stroke-dashoffset: -125; }
|
|
530
|
-
`,Zt=
|
|
530
|
+
`,Zt=g().div`
|
|
531
531
|
width: ${({$size:e})=>"number"==typeof e?`${e}px`:e};
|
|
532
532
|
height: ${({$size:e})=>"number"==typeof e?`${e}px`:e};
|
|
533
533
|
display: inline-grid;
|
|
534
534
|
place-items: center;
|
|
535
|
-
|
|
535
|
+
overflow: hidden;
|
|
536
|
+
`,er=g().svg`
|
|
536
537
|
width: 100%;
|
|
537
538
|
height: 100%;
|
|
538
539
|
transform-origin: center;
|
|
539
540
|
overflow: visible;
|
|
540
|
-
${({$animate:e})=>e&&
|
|
541
|
-
animation: ${
|
|
541
|
+
${({$animate:e})=>e&&b.css`
|
|
542
|
+
animation: ${Jt} 1.4s linear infinite;
|
|
542
543
|
`}
|
|
543
|
-
`,tr=
|
|
544
|
+
`,tr=g().circle`
|
|
544
545
|
fill: none;
|
|
545
|
-
stroke: ${
|
|
546
|
+
stroke: ${f._q};
|
|
546
547
|
stroke-width: ${({$strokeWidth:e})=>e}px;
|
|
547
548
|
stroke-linecap: round;
|
|
548
|
-
${({$animate:e})=>e&&
|
|
549
|
+
${({$animate:e})=>e&&b.css`
|
|
549
550
|
animation: ${Qt} 1.4s ease-in-out infinite;
|
|
550
551
|
`}
|
|
551
552
|
|
|
552
|
-
${({$animate:e})=>!e&&
|
|
553
|
+
${({$animate:e})=>!e&&b.css`
|
|
553
554
|
stroke-dasharray: 94.2 31.4;
|
|
554
555
|
stroke-dashoffset: 0;
|
|
555
556
|
`}
|
|
556
|
-
`,rr=({size:e=48,strokeWidth:t=4,animate:r=!0})=>
|
|
557
|
+
`,rr=({size:e=48,strokeWidth:t=4,animate:r=!0})=>h().createElement(Zt,{$size:e,role:"progressbar","aria-label":"Loading","aria-busy":r},h().createElement(er,{viewBox:"0 0 50 50",$animate:r,focusable:"false","aria-hidden":"true"},h().createElement(tr,{className:"path",cx:"25",cy:"25",r:"20",$animate:r,$strokeWidth:t}))),or=g().div`
|
|
557
558
|
display: flex;
|
|
558
559
|
align-items: center;
|
|
559
560
|
position: relative;
|
|
@@ -562,43 +563,43 @@
|
|
|
562
563
|
padding: ${k} ${O};
|
|
563
564
|
gap: ${k};
|
|
564
565
|
border-radius: ${T};
|
|
565
|
-
border: 1px solid ${
|
|
566
|
+
border: 1px solid ${f.hN};
|
|
566
567
|
background-color: transparent;
|
|
567
568
|
box-sizing: border-box;
|
|
568
569
|
cursor: text;
|
|
569
570
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
570
571
|
|
|
571
572
|
&:focus-within {
|
|
572
|
-
border-color: ${
|
|
573
|
-
box-shadow: 0 0 0 3px ${
|
|
573
|
+
border-color: ${f.z2};
|
|
574
|
+
box-shadow: 0 0 0 3px ${f.ot};
|
|
574
575
|
}
|
|
575
576
|
|
|
576
|
-
${({$disabled:e})=>e&&
|
|
577
|
+
${({$disabled:e})=>e&&b.css`
|
|
577
578
|
opacity: 0.5;
|
|
578
579
|
cursor: not-allowed;
|
|
579
580
|
pointer-events: none;
|
|
580
581
|
`}
|
|
581
|
-
`,nr=
|
|
582
|
+
`,nr=g().span`
|
|
582
583
|
display: flex;
|
|
583
584
|
align-items: center;
|
|
584
585
|
justify-content: center;
|
|
585
586
|
flex-shrink: 0;
|
|
586
|
-
color: ${
|
|
587
|
+
color: ${f.kE};
|
|
587
588
|
width: 1rem;
|
|
588
589
|
height: 1rem;
|
|
589
|
-
`,ar=
|
|
590
|
+
`,ar=g().input`
|
|
590
591
|
flex: 1;
|
|
591
592
|
min-width: 0;
|
|
592
593
|
border: none;
|
|
593
594
|
outline: none;
|
|
594
595
|
background: transparent;
|
|
595
|
-
color: ${
|
|
596
|
-
font-size: ${
|
|
596
|
+
color: ${f.eg};
|
|
597
|
+
font-size: ${v};
|
|
597
598
|
line-height: 1.5;
|
|
598
599
|
padding: 0;
|
|
599
600
|
|
|
600
601
|
&::placeholder {
|
|
601
|
-
color: ${
|
|
602
|
+
color: ${f.XN};
|
|
602
603
|
}
|
|
603
604
|
|
|
604
605
|
&:disabled {
|
|
@@ -617,15 +618,15 @@
|
|
|
617
618
|
[dir='rtl'] & {
|
|
618
619
|
text-align: right;
|
|
619
620
|
}
|
|
620
|
-
`,ir=
|
|
621
|
+
`,ir=g().span`
|
|
621
622
|
display: flex;
|
|
622
623
|
align-items: center;
|
|
623
624
|
justify-content: center;
|
|
624
625
|
flex-shrink: 0;
|
|
625
626
|
width: 1rem;
|
|
626
627
|
height: 1rem;
|
|
627
|
-
color: ${
|
|
628
|
-
`,lr=
|
|
628
|
+
color: ${f._q};
|
|
629
|
+
`,lr=g().button`
|
|
629
630
|
display: flex;
|
|
630
631
|
align-items: center;
|
|
631
632
|
justify-content: center;
|
|
@@ -636,34 +637,34 @@
|
|
|
636
637
|
padding: 0;
|
|
637
638
|
width: 1rem;
|
|
638
639
|
height: 1rem;
|
|
639
|
-
color: ${
|
|
640
|
+
color: ${f.kE};
|
|
640
641
|
line-height: 1;
|
|
641
642
|
transition: color 0.1s ease;
|
|
642
643
|
|
|
643
644
|
&:hover {
|
|
644
|
-
color: ${
|
|
645
|
+
color: ${f.nL};
|
|
645
646
|
}
|
|
646
647
|
|
|
647
648
|
&:focus-visible {
|
|
648
|
-
outline: 2px solid ${
|
|
649
|
+
outline: 2px solid ${f.z2};
|
|
649
650
|
outline-offset: 2px;
|
|
650
651
|
border-radius: 2px;
|
|
651
652
|
}
|
|
652
|
-
`,cr=function({placeholder:e,value:t,onChange:r,onSearch:o,onClear:n,debounce:a=500,isLoading:i=!1,disabled:l=!1,autoFocus:c=!1,inputRef:s,"aria-label":d}){var u;const
|
|
653
|
+
`,cr=function({placeholder:e,value:t,onChange:r,onSearch:o,onClear:n,debounce:a=500,isLoading:i=!1,disabled:l=!1,autoFocus:c=!1,inputRef:s,"aria-label":d}){var u;const b=void 0!==t,[g,f]=(0,p.useState)(""),m=(0,p.useRef)(null),v=null!==(u=s)&&void 0!==u?u:m,$=b?null!=t?t:"":g,y=$.length>0;(0,p.useEffect)(()=>{if(b||!o)return;const e=setTimeout(()=>{o(g)},a);return()=>clearTimeout(e)},[g,a,o,b]),(0,p.useEffect)(()=>{c&&v.current&&v.current.focus()},[c,v]);const x=(0,p.useCallback)(e=>{const t=e.target.value;b?null==r||r(t):f(t)},[b,r]),w=(0,p.useCallback)(()=>{var e;n?n():b?null==r||r(""):(f(""),null==o||o("")),null===(e=v.current)||void 0===e||e.focus()},[n,b,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 h().createElement(or,{$disabled:l,onClick:k},h().createElement(nr,{"aria-hidden":"true"},h().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"},h().createElement("circle",{cx:"11",cy:"11",r:"8"}),h().createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))),h().createElement(ar,{ref:v,type:"search",role:"searchbox",placeholder:e,value:$,onChange:x,disabled:l,"aria-label":null!=d?d:e}),i&&y&&h().createElement(ir,null,h().createElement(rr,{size:16,strokeWidth:3})),!i&&y&&h().createElement(lr,{type:"button",onClick:w,"aria-label":"Clear search",tabIndex:0},h().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"},h().createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),h().createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))))};var sr=d(764),dr=d.n(sr);const ur=g().div`
|
|
653
654
|
display: flex;
|
|
654
655
|
flex-direction: column;
|
|
655
656
|
flex-shrink: 0;
|
|
656
657
|
gap: ${k};
|
|
657
658
|
justify-content: start;
|
|
658
659
|
align-items: center;
|
|
659
|
-
`,pr=
|
|
660
|
+
`,pr=g().div`
|
|
660
661
|
display: flex;
|
|
661
662
|
flex-direction: row;
|
|
662
663
|
justify-content: center;
|
|
663
664
|
gap: ${O};
|
|
664
665
|
padding: 1px;
|
|
665
666
|
width: 100%;
|
|
666
|
-
`,
|
|
667
|
+
`,hr=g()(dr())`
|
|
667
668
|
height: 3.5rem;
|
|
668
669
|
flex: 1;
|
|
669
670
|
border-radius: ${z} !important;
|
|
@@ -671,48 +672,48 @@
|
|
|
671
672
|
width: 100%;
|
|
672
673
|
|
|
673
674
|
& .MuiOutlinedInput-notchedOutline {
|
|
674
|
-
border-color: ${
|
|
675
|
+
border-color: ${f.hN};
|
|
675
676
|
}
|
|
676
677
|
|
|
677
678
|
&:hover .MuiOutlinedInput-notchedOutline {
|
|
678
|
-
border-color: ${
|
|
679
|
+
border-color: ${f.z2};
|
|
679
680
|
}
|
|
680
681
|
|
|
681
682
|
&.Mui-focused .MuiOutlinedInput-notchedOutline {
|
|
682
|
-
border-color: ${
|
|
683
|
+
border-color: ${f.z2};
|
|
683
684
|
}
|
|
684
|
-
`,
|
|
685
|
+
`,br=g().label`
|
|
685
686
|
align-self: flex-start;
|
|
686
|
-
color: ${
|
|
687
|
-
font-size: ${
|
|
687
|
+
color: ${f.BP};
|
|
688
|
+
font-size: ${v};
|
|
688
689
|
font-style: normal;
|
|
689
690
|
font-weight: 400;
|
|
690
691
|
line-height: normal;
|
|
691
|
-
`,
|
|
692
|
+
`,gr=g().div`
|
|
692
693
|
display: flex;
|
|
693
694
|
align-items: center;
|
|
694
695
|
justify-content: center;
|
|
695
696
|
flex-shrink: 0;
|
|
696
|
-
color: ${
|
|
697
|
-
`;const
|
|
697
|
+
color: ${f._q};
|
|
698
|
+
`;const fr=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}`,c=t?`select-label-${i}`:void 0;return h().createElement(ur,null,t&&h().createElement(br,{id:c,htmlFor:l},t),h().createElement(pr,null,r&&h().createElement(gr,null,r),h().createElement(hr,Object.assign({},a,{id:l,labelId:c,"aria-label":n,IconComponent:K}),o)))};var mr=d(586);const vr="1rem",$r="0.25rem",yr=g().div`
|
|
698
699
|
display: flex;
|
|
699
700
|
flex-direction: column;
|
|
700
701
|
width: 100%;
|
|
701
702
|
|
|
702
703
|
${({$valueLabelSpace:e})=>e&&`\n gap: ${S};\n `}
|
|
703
|
-
`,xr=
|
|
704
|
+
`,xr=g().label`
|
|
704
705
|
display: flex;
|
|
705
706
|
flex-direction: column;
|
|
706
707
|
cursor: pointer;
|
|
707
|
-
`,wr=
|
|
708
|
-
color: ${
|
|
708
|
+
`,wr=g().span`
|
|
709
|
+
color: ${f.eg};
|
|
709
710
|
font-size: ${y};
|
|
710
711
|
font-weight: ${x};
|
|
711
|
-
`,kr=
|
|
712
|
-
color: ${
|
|
713
|
-
font-size: ${
|
|
712
|
+
`,kr=g().span`
|
|
713
|
+
color: ${f.XN};
|
|
714
|
+
font-size: ${$};
|
|
714
715
|
font-weight: ${x};
|
|
715
|
-
`,Er=
|
|
716
|
+
`,Er=g().div`
|
|
716
717
|
display: flex;
|
|
717
718
|
align-items: center;
|
|
718
719
|
gap: ${k};
|
|
@@ -720,20 +721,20 @@
|
|
|
720
721
|
|
|
721
722
|
${({$showMarkTicks:e})=>!e&&"\n & .MuiSlider-mark {\n display: none;\n }\n "}
|
|
722
723
|
|
|
723
|
-
${({$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 ${
|
|
724
|
+
${({$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 ${f.xA};\n }\n `}
|
|
724
725
|
|
|
725
726
|
${({$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
|
-
`,Or=
|
|
727
|
+
`,Or=g().span`
|
|
727
728
|
display: flex;
|
|
728
729
|
align-items: center;
|
|
729
|
-
color: ${
|
|
730
|
+
color: ${f.kE};
|
|
730
731
|
font-size: ${"1.5rem"};
|
|
731
|
-
`,Br=(0,mr.styled)(ot.Slider)({color:
|
|
732
|
+
`,Br=(0,mr.styled)(ot.Slider)({color:f._q,height:"0.3125rem","& .MuiSlider-rail":{backgroundColor:"currentColor",opacity:.38},"& .MuiSlider-track":{border:"1px solid currentColor",backgroundColor:f._q},"& .MuiSlider-thumb":{height:vr,width:vr,backgroundColor:"currentColor",boxShadow:`0 2px 4px 0 ${f.xA}`,"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 0.5rem ${f.ot}`},"&.Mui-active":{boxShadow:`0 0 0 0.875rem ${f.ot}`}},"& .MuiSlider-mark":{width:$r,height:$r,borderRadius:"50%",backgroundColor:f.qg,"&.MuiSlider-markActive":{backgroundColor:f.bD}},"& .MuiSlider-markLabel":{color:f.XN,fontSize:m,unicodeBidi:"plaintext"},"& .MuiSlider-valueLabel":{backgroundColor:f.eg,color:f.bD,fontSize:m,fontWeight:"600",borderRadius:z,padding:`${w} ${k}`,"& .MuiSlider-valueLabelLabel":{unicodeBidi:"plaintext"}},"&.Mui-disabled":{color:f.qg,"& .MuiSlider-track":{backgroundColor:f.qg}}}),Cr={AUTO:"auto",ON:"on",OFF:"off"},Sr=(Object.values(Cr),Cr.AUTO),jr=!0,Tr=!0;const zr=function(e){var{label:t,helperText:r,iconStart:o,iconEnd:n,showMarkTicks:a=jr,animate:i=Tr,valueLabelDisplay:l=Sr,onChange:c,onChangeCommitted:s,id:d,dataTest:u,ariaLabel:b,ariaLabelledBy:g,ariaDescribedBy:f,slotProps:m}=e,v=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","slotProps"]);const $=(0,p.useId)(),y=null!=d?d:$,x=t?`${y}-label`:void 0,w=r?`${y}-helper`:void 0,k=(0,p.useRef)(null),[E,O]=(0,p.useState)(!1);(0,p.useEffect)(()=>{const e=k.current;if(!e)return;const t=()=>{O("rtl"===window.getComputedStyle(e).direction)};t();const r=new MutationObserver(t);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),()=>r.disconnect()},[]);const B=(0,mr.useTheme)(),C=(0,p.useMemo)(()=>E&&"rtl"!==B.direction?(0,mr.createTheme)(B,{direction:"rtl"}):B,[B,E]),S=(0,p.useCallback)((e,t)=>{null==c||c(e,Array.isArray(t)?t[0]:t)},[c]),j=(0,p.useCallback)((e,t)=>{null==s||s(e,Array.isArray(t)?t[0]:t)},[s]);return h().createElement(yr,{ref:k,$valueLabelSpace:"off"!==l},(t||r)&&h().createElement(xr,{htmlFor:y},t&&h().createElement(wr,{id:x},t),r&&h().createElement(kr,{id:w},r)),h().createElement(Er,{$showMarkTicks:a,$animate:i,$isRtl:E},o&&h().createElement(Or,{"aria-hidden":!0},o),h().createElement(mr.ThemeProvider,{theme:C},h().createElement(Br,Object.assign({},v,{valueLabelDisplay:l,onChange:S,onChangeCommitted:j,"aria-label":b,"aria-labelledby":b?void 0:g||x,"data-test":u,slotProps:Object.assign(Object.assign({},m),{input:Object.assign(Object.assign({id:y,"aria-describedby":f||w},u?{"data-test":`${u}-input`}:{}),"object"==typeof(null==m?void 0:m.input)?m.input:{})})}))),n&&h().createElement(Or,{"aria-hidden":!0},n)))},Mr=g().textarea`
|
|
732
733
|
flex: 1;
|
|
733
|
-
background: ${
|
|
734
|
+
background: ${f.bD};
|
|
734
735
|
background-clip: padding-box;
|
|
735
736
|
margin: 0;
|
|
736
|
-
color: ${
|
|
737
|
+
color: ${f.eg};
|
|
737
738
|
padding: calc(.3rem* 2.5) calc(.75rem* 1.25);
|
|
738
739
|
resize: none;
|
|
739
740
|
-webkit-transition: none;
|
|
@@ -743,19 +744,19 @@
|
|
|
743
744
|
line-height: 1;
|
|
744
745
|
min-height: 2.5rem;
|
|
745
746
|
max-height: 10rem;
|
|
746
|
-
border: 1px solid ${
|
|
747
|
+
border: 1px solid ${f.hN};
|
|
747
748
|
overflow-y: hidden;
|
|
748
749
|
margin: 0.3em;
|
|
749
750
|
|
|
750
751
|
&::placeholder {
|
|
751
|
-
color: ${
|
|
752
|
+
color: ${f.XN};
|
|
752
753
|
}
|
|
753
754
|
|
|
754
755
|
&:focus {
|
|
755
|
-
outline: ${
|
|
756
|
-
box-shadow: 0 0 0 2px ${
|
|
756
|
+
outline: ${f._q} solid 2px;
|
|
757
|
+
box-shadow: 0 0 0 2px ${f.f$} inset 0 0 0 1px ${f._q};
|
|
757
758
|
}
|
|
758
|
-
`;const Lr=function(e){var{placeholder:t="",rows:r=1,maxLength:o=250,autoFocus:n=!0,inputRef:a,onChange:i,onKeyDown:l}=e,c=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 s=(0,p.useRef)(null);return(0,p.useEffect)(()=>{n&&s.current&&s.current.focus()},[n]),
|
|
759
|
+
`;const Lr=function(e){var{placeholder:t="",rows:r=1,maxLength:o=250,autoFocus:n=!0,inputRef:a,onChange:i,onKeyDown:l}=e,c=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 s=(0,p.useRef)(null);return(0,p.useEffect)(()=>{n&&s.current&&s.current.focus()},[n]),h().createElement(Mr,Object.assign({},c,{rows:r,maxLength:o,ref:e=>{s.current=e,"function"==typeof a?a(e):a&&"current"in a&&(a.current=e)},placeholder:t,onChange:i,onKeyDown:l}))},Dr=g()(ot.TextField)`
|
|
759
760
|
.MuiInputBase-root {
|
|
760
761
|
display: flex;
|
|
761
762
|
padding: ${O};
|
|
@@ -763,16 +764,16 @@
|
|
|
763
764
|
gap: ${k};
|
|
764
765
|
align-self: stretch;
|
|
765
766
|
border-radius: ${T};
|
|
766
|
-
border: 1px solid ${
|
|
767
|
-
color: ${
|
|
767
|
+
border: 1px solid ${f.hN};
|
|
768
|
+
color: ${f.XN};
|
|
768
769
|
|
|
769
770
|
&.Mui-focused {
|
|
770
|
-
border-color: ${
|
|
771
|
-
color: ${
|
|
771
|
+
border-color: ${f.z2};
|
|
772
|
+
color: ${f.eg};
|
|
772
773
|
}
|
|
773
774
|
|
|
774
|
-
${({$error:e})=>e&&
|
|
775
|
-
border-color: ${
|
|
775
|
+
${({$error:e})=>e&&b.css`
|
|
776
|
+
border-color: ${f.qO};
|
|
776
777
|
`}
|
|
777
778
|
}
|
|
778
779
|
|
|
@@ -784,67 +785,216 @@
|
|
|
784
785
|
.MuiOutlinedInput-notchedOutline {
|
|
785
786
|
border: none;
|
|
786
787
|
}
|
|
787
|
-
`,Pr=
|
|
788
|
-
color: ${
|
|
789
|
-
font-size: ${
|
|
788
|
+
`,Pr=g().div`
|
|
789
|
+
color: ${f.eg};
|
|
790
|
+
font-size: ${v};
|
|
790
791
|
font-style: normal;
|
|
791
792
|
font-weight: 400;
|
|
792
793
|
line-height: normal;
|
|
793
|
-
`,qr=
|
|
794
|
-
color: ${
|
|
795
|
-
font-size: ${
|
|
794
|
+
`,qr=g().div`
|
|
795
|
+
color: ${f.eg};
|
|
796
|
+
font-size: ${v};
|
|
796
797
|
font-style: normal;
|
|
797
798
|
font-weight: 400;
|
|
798
799
|
line-height: normal;
|
|
799
800
|
padding: 0 ${O};
|
|
800
801
|
|
|
801
|
-
${({$error:e})=>e&&
|
|
802
|
-
color: ${
|
|
802
|
+
${({$error:e})=>e&&b.css`
|
|
803
|
+
color: ${f._r};
|
|
803
804
|
`}
|
|
804
|
-
`,
|
|
805
|
+
`,Ar=g().div`
|
|
805
806
|
display: flex;
|
|
806
807
|
flex-direction: column;
|
|
807
808
|
width: 100%;
|
|
808
809
|
gap: ${k};
|
|
809
|
-
`;const
|
|
810
|
+
`;const Rr=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 h().createElement(Ar,null,t&&h().createElement(Pr,null,t),h().createElement(Dr,Object.assign({},a,{$error:o,placeholder:n})),r&&h().createElement(qr,{$error:o},r))},Ir={DEFAULT:"default",INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fr=(Object.values(Ir),Ir.DEFAULT),Nr=5e3,_r="Close",Hr=["a[href]","button","input","select","textarea","summary","label",'[role="button"]','[role="link"]','[tabindex]:not([tabindex="-1"])'].join(", "),Wr="70vh",Gr={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)}},Xr={default:{background:f._q,glyph:f.bD},info:{background:f._q,glyph:f.bD},success:{background:f.r,glyph:f.bD},warning:{background:f.G8,glyph:f.bD},error:{background:f._r,glyph:f.bD}},Ur=b.css`
|
|
811
|
+
img,
|
|
812
|
+
svg,
|
|
813
|
+
video {
|
|
814
|
+
max-width: 100%;
|
|
815
|
+
}
|
|
816
|
+
`,Kr=b.css`
|
|
817
|
+
position: absolute;
|
|
818
|
+
width: 1px;
|
|
819
|
+
height: 1px;
|
|
820
|
+
overflow: hidden;
|
|
821
|
+
clip-path: inset(50%);
|
|
822
|
+
white-space: nowrap;
|
|
823
|
+
`,Yr=g().button`
|
|
824
|
+
margin: 0;
|
|
825
|
+
padding: 0;
|
|
826
|
+
border: 0;
|
|
827
|
+
background: none;
|
|
828
|
+
color: inherit;
|
|
829
|
+
font: inherit;
|
|
830
|
+
line-height: inherit;
|
|
831
|
+
text-align: start;
|
|
832
|
+
cursor: inherit;
|
|
833
|
+
|
|
834
|
+
&:focus {
|
|
835
|
+
outline: none;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
${({$visuallyHidden:e})=>e&&Kr}
|
|
839
|
+
`,Vr=g().div`
|
|
840
|
+
position: relative;
|
|
810
841
|
display: flex;
|
|
811
|
-
|
|
842
|
+
/* Fills the slot it is given even when that slot is a flex container, as toast engines'
|
|
843
|
+
wrappers usually are, so every toast in a stack has the same width. */
|
|
844
|
+
width: 100%;
|
|
845
|
+
flex-direction: row;
|
|
846
|
+
align-items: stretch;
|
|
847
|
+
gap: ${E};
|
|
848
|
+
padding: ${B};
|
|
849
|
+
background-color: ${f.bh};
|
|
850
|
+
border-radius: ${z};
|
|
851
|
+
box-shadow: 0 2px 8px ${f.xA};
|
|
852
|
+
overflow-wrap: break-word;
|
|
853
|
+
/* So maxHeight caps the whole card, padding included, rather than just its content box. */
|
|
854
|
+
box-sizing: border-box;
|
|
855
|
+
max-height: ${({$maxHeight:e})=>e};
|
|
856
|
+
cursor: ${({$disablePointer:e})=>e?"auto":"pointer"};
|
|
857
|
+
|
|
858
|
+
&:has(${Yr}:focus-visible) {
|
|
859
|
+
outline: 2px solid ${f._q};
|
|
860
|
+
}
|
|
861
|
+
`,Jr="2.375rem",Qr=g().div`
|
|
862
|
+
display: flex;
|
|
863
|
+
align-items: flex-start;
|
|
864
|
+
flex-shrink: 0;
|
|
865
|
+
`,Zr=g().div`
|
|
866
|
+
display: flex;
|
|
867
|
+
align-items: center;
|
|
868
|
+
min-height: ${Jr};
|
|
869
|
+
`,eo=g().div`
|
|
870
|
+
display: flex;
|
|
871
|
+
flex-direction: column;
|
|
872
|
+
flex: 1;
|
|
873
|
+
min-width: 0;
|
|
874
|
+
gap: ${k};
|
|
875
|
+
|
|
876
|
+
/* min-height lets this flex child shrink below its content so the overflow can scroll. */
|
|
877
|
+
min-height: 0;
|
|
878
|
+
overflow-y: auto;
|
|
879
|
+
overflow-x: hidden;
|
|
880
|
+
|
|
881
|
+
/* As a scroll container this clips whatever overflows it, including the focus ring of
|
|
882
|
+
the close button, which spans the full height of the title row. The padding leaves
|
|
883
|
+
room for the ring and the negative margin cancels it out of the layout. */
|
|
884
|
+
padding: ${"2px"};
|
|
885
|
+
margin: -${"2px"};
|
|
886
|
+
`,to=g().div`
|
|
887
|
+
display: flex;
|
|
888
|
+
flex-direction: row;
|
|
889
|
+
align-items: center;
|
|
890
|
+
min-height: ${Jr};
|
|
891
|
+
gap: ${k};
|
|
892
|
+
`,ro=g().div`
|
|
893
|
+
display: flex;
|
|
894
|
+
align-items: center;
|
|
895
|
+
justify-content: center;
|
|
896
|
+
flex-shrink: 0;
|
|
897
|
+
border-radius: 50%;
|
|
898
|
+
aspect-ratio: 1;
|
|
899
|
+
width: ${({$small:e})=>e?"1.5rem":"2rem"};
|
|
900
|
+
font-size: ${({$small:e})=>e?m:y};
|
|
901
|
+
background-color: ${({$variant:e})=>Xr[e].background};
|
|
902
|
+
color: ${({$variant:e})=>Xr[e].glyph};
|
|
903
|
+
`,oo=g().div`
|
|
904
|
+
flex: 1;
|
|
905
|
+
min-width: 0;
|
|
906
|
+
color: ${f.eg};
|
|
907
|
+
font-size: ${({$small:e})=>e?v:$};
|
|
908
|
+
font-weight: ${x};
|
|
909
|
+
line-height: normal;
|
|
910
|
+
|
|
911
|
+
${Ur}
|
|
912
|
+
`,no=g().div`
|
|
913
|
+
color: ${f.XN};
|
|
914
|
+
font-size: ${({$small:e})=>e?m:v};
|
|
915
|
+
font-weight: ${x};
|
|
916
|
+
line-height: normal;
|
|
917
|
+
|
|
918
|
+
${Ur}
|
|
919
|
+
`,ao=g().div`
|
|
920
|
+
display: flex;
|
|
921
|
+
justify-content: flex-end;
|
|
922
|
+
`,io=g().div`
|
|
923
|
+
display: flex;
|
|
924
|
+
flex-shrink: 0;
|
|
925
|
+
margin-inline-start: auto;
|
|
926
|
+
`,lo=b.keyframes`
|
|
927
|
+
from {
|
|
928
|
+
transform: scaleX(1);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
to {
|
|
932
|
+
transform: scaleX(0);
|
|
933
|
+
}
|
|
934
|
+
`,co=g().div`
|
|
935
|
+
position: absolute;
|
|
936
|
+
inset-inline: 0;
|
|
937
|
+
bottom: 0;
|
|
938
|
+
height: 0.25rem;
|
|
939
|
+
overflow: hidden;
|
|
940
|
+
border-end-start-radius: ${z};
|
|
941
|
+
border-end-end-radius: ${z};
|
|
942
|
+
`,so=g().div`
|
|
943
|
+
height: 100%;
|
|
944
|
+
background-color: ${({$variant:e})=>Xr[e].background};
|
|
945
|
+
transform-origin: left;
|
|
946
|
+
animation: ${lo} ${({$duration:e})=>e}ms linear forwards;
|
|
947
|
+
animation-play-state: ${({$paused:e})=>e?"paused":"running"};
|
|
948
|
+
|
|
949
|
+
[dir='rtl'] & {
|
|
950
|
+
transform-origin: right;
|
|
951
|
+
}
|
|
952
|
+
`;const uo=function(e){var{message:t,variant:r=Fr,icon:o,content:n,showSeparator:a=!0,small:i=!1,disablePointer:l,onClick:c,clickAriaLabel:s,actionLabel:d,onActionClick:u,autoClose:b=Nr,paused:g=!1,hideProgressBar:f=!1,hideCloseButton:m=!1,closeButtonAriaLabel:v=_r,onRequestClose:$,maxHeight:y=Wr,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,z={message:T(w,"message"),closeButton:T(k,"close-button"),actionButton:T(E,"action-button")},M=(0,p.useRef)($);(0,p.useEffect)(()=>{M.current=$},[$]);const[L,D]=(0,p.useState)(!1),[P,q]=(0,p.useState)(!1),A=g||L||P,R=(0,p.useRef)(!1===b?0:b);(0,p.useEffect)(()=>{!1!==b&&(R.current=b)},[b]),(0,p.useEffect)(()=>{if(!1===b||A)return;const e=Date.now(),t=R.current,r=setTimeout(()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.call(M)},t);return()=>{clearTimeout(r),R.current=Math.max(0,t-(Date.now()-e))}},[b,A]);const I=r===Ir.WARNING||r===Ir.ERROR,F=(0,p.useId)(),N=(0,p.useRef)(null);return h().createElement(Vr,Object.assign({role:I?"alert":"status","aria-live":I?"assertive":"polite","aria-atomic":"true"},j,{$disablePointer:null!=l?l:!c,$maxHeight:y,onClick:c?e=>{if(!c)return;const t=e.target.closest(Hr);t&&t!==N.current&&e.currentTarget.contains(t)||c(e)}:void 0,onMouseEnter:e=>{D(!0),null==O||O(e)},onMouseLeave:e=>{D(!1),null==B||B(e)},onFocus:e=>{q(!0),null==C||C(e)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||q(!1),null==S||S(e)}},x?{"data-test":x}:{}),(()=>{if(!1===o)return null;const e=Gr[r];return h().createElement(Qr,null,h().createElement(Zr,null,h().createElement(ro,{$variant:r,$small:i,"aria-hidden":"true"},null!=o?o:h().createElement(e,null))))})(),c&&!t&&h().createElement(Yr,{ref:N,type:"button",$visuallyHidden:!0,"aria-label":s,"aria-labelledby":s?void 0:F}),h().createElement(eo,null,(t||!m)&&h().createElement(to,null,t&&h().createElement(oo,Object.assign({$small:i},z.message?{"data-test":z.message}:{}),c?h().createElement(Yr,{ref:N,type:"button",$visuallyHidden:!1,"aria-label":s},t):t),!m&&h().createElement(io,null,h().createElement(rt,Object.assign({layout:"squared",variant:"subtle",size:"sm",icon:h().createElement(V,{size:"1.25rem"}),ariaLabel:v,onClick:e=>{e.stopPropagation(),null==$||$()}},z.closeButton?{dataTest:z.closeButton}:{})))),n&&h().createElement(h().Fragment,null,a&&t&&h().createElement(ht,null),h().createElement(no,{id:c?F:void 0,$small:i},n)),d&&h().createElement(ao,null,h().createElement(rt,Object.assign({label:d,variant:"tertiary",size:"sm",onClick:e=>{e.stopPropagation(),null==u||u(e)}},z.actionButton?{dataTest:z.actionButton}:{})))),!1!==b&&!f&&h().createElement(co,{"aria-hidden":"true"},h().createElement(so,{key:b,$variant:r,$duration:b,$paused:A})))},po={RIGHT:"right",LEFT:"left",TOP:"top",BOTTOM:"bottom"},ho=Object.values(po)[0],bo=g().div`
|
|
953
|
+
display: flex;
|
|
954
|
+
${({$textPosition:e})=>{if(e===po.TOP||e===po.BOTTOM)return b.css`
|
|
812
955
|
flex-direction: column;
|
|
813
956
|
gap: .1rem;
|
|
814
|
-
`;const t=
|
|
957
|
+
`;const t=b.css`
|
|
815
958
|
flex-direction: row;
|
|
816
959
|
gap: 1rem;
|
|
817
|
-
`;return e===
|
|
960
|
+
`;return e===po.LEFT?b.css`
|
|
818
961
|
${t}
|
|
819
962
|
justify-content: end;
|
|
820
963
|
`:t}};
|
|
821
|
-
|
|
964
|
+
${({$fullWidth:e})=>e&&b.css`
|
|
965
|
+
width: 100%;
|
|
966
|
+
justify-content: space-between;
|
|
967
|
+
`}
|
|
968
|
+
`,go=g().div`
|
|
822
969
|
display: flex;
|
|
823
970
|
flex-direction: row;
|
|
824
971
|
align-items: start;
|
|
825
972
|
justify-content: center;
|
|
826
973
|
padding: 0.3rem 0px;
|
|
827
|
-
`,
|
|
974
|
+
`,fo=g().label`
|
|
828
975
|
display: flex;
|
|
829
976
|
flex-direction: column;
|
|
830
|
-
order: ${({$textPosition:e})=>e===
|
|
977
|
+
order: ${({$textPosition:e})=>e===po.LEFT||e===po.TOP?-1:1};
|
|
831
978
|
cursor: pointer;
|
|
832
979
|
${({$hasLabel:e,$hasHelperText:t})=>(!e||!t)&&"justify-content: center;"}
|
|
833
|
-
${({$textPosition:e})=>e===
|
|
980
|
+
${({$textPosition:e,$fullWidth:t})=>e===po.TOP||e===po.BOTTOM?b.css`
|
|
834
981
|
align-items: center;
|
|
835
|
-
`:e===
|
|
982
|
+
`:t&&e===po.RIGHT?b.css`
|
|
983
|
+
align-items: end;
|
|
984
|
+
text-align: end;
|
|
985
|
+
`:e!==po.LEFT||t?b.css`
|
|
836
986
|
align-items: start;
|
|
837
|
-
`};
|
|
838
|
-
`,
|
|
839
|
-
color: ${
|
|
987
|
+
`:b.css`align-items: end;`};
|
|
988
|
+
`,mo=g().span`
|
|
989
|
+
color: ${f.eg};
|
|
840
990
|
font-size: ${y};
|
|
841
991
|
font-style: normal;
|
|
842
992
|
font-weight: 400;
|
|
843
993
|
line-height: normal;
|
|
844
|
-
`,
|
|
845
|
-
color: ${
|
|
846
|
-
font-size: ${
|
|
994
|
+
`,vo=g().span`
|
|
995
|
+
color: ${f.XN};
|
|
996
|
+
font-size: ${$};
|
|
847
997
|
font-style: normal;
|
|
848
998
|
font-weight: 400;
|
|
849
999
|
line-height: normal;
|
|
850
|
-
|
|
1000
|
+
`,$o=(0,mr.styled)(ot.Switch)(({theme:e})=>({width:"2.3rem",height:"1.2rem",padding:0,display:"flex","&:active":{"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(1.2rem)"}},"& .MuiSwitch-switchBase":{padding:"0.2rem","&.Mui-checked":{transform:"translateX(1.2rem)",color:f.bD,"& + .MuiSwitch-track":Object.assign({opacity:1,backgroundColor:f._q},e.applyStyles("dark",{backgroundColor:f._q}))}},"& .MuiSwitch-thumb":{boxShadow:`0 2px 4px 0 ${f.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:f.kE,boxSizing:"border-box"},e.applyStyles("dark",{backgroundColor:f.AC}))}));var yo=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 xo=function(e){var{label:t,helperText:r,textPosition:o=ho,fullWidth:n=!1,onChange:a,ariaLabel:i,ariaLabelledBy:l,ariaDescribedBy:c,id:s,slotProps:d}=e,u=yo(e,["label","helperText","textPosition","fullWidth","onChange","ariaLabel","ariaLabelledBy","ariaDescribedBy","id","slotProps"]);const b=(0,p.useId)(),g=null!=s?s:b,f=t?`${g}-label`:void 0,m=r?`${g}-helper`:void 0,v=n&&(o===po.LEFT||o===po.RIGHT),$=i?void 0:l||f,y={role:"switch","aria-label":i,"aria-labelledby":$,"aria-describedby":c||(i||$?m:void 0)},x=null!=d?d:{},{input:w}=x,k=yo(x,["input"]),E="function"==typeof w?e=>Object.assign(Object.assign({},y),w(e)):Object.assign(Object.assign({},y),w);return h().createElement(bo,{$textPosition:o,$fullWidth:v},(t||r)&&h().createElement(fo,{$textPosition:o,$fullWidth:v,htmlFor:g,$hasLabel:!!t,$hasHelperText:!!r},t&&h().createElement(mo,{id:f},t),r&&h().createElement(vo,{id:m},r)),h().createElement(go,null,h().createElement($o,Object.assign({},u,{id:g,onChange:a,slotProps:Object.assign(Object.assign({},k),{input:E})}))))};var wo=d(48);return u})());
|