asma-core-ui 3.1.76 → 3.1.78

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.
@@ -35,4 +35,4 @@ var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,c
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
37
  */
38
- "production"===process.env.NODE_ENV?Rd.exports=function(){if(Md)return Pd;Md=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:i.current}}return Pd.Fragment=n,Pd.jsx=s,Pd.jsxs=s,Pd}():Rd.exports=(Td||(Td=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,n)}var b;function x(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return x(e)+".Consumer";case s:return x(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return w(m(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var C,k,j,N,_,E,I,O=Object.assign,S=0;function M(){}M.__reactDisabledLog=!0;var T,R=y.ReactCurrentDispatcher;function P(e,t,n){if(void 0===T)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);T=r&&r[1]||""}return"\n"+T+e}var D,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function V(e,t){if(!e||z)return"";var n,r=D.get(e);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===S){C=console.log,k=console.info,j=console.warn,N=console.error,_=console.group,E=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}S++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--S){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:C}),info:O({},e,{value:k}),warn:O({},e,{value:j}),error:O({},e,{value:N}),group:O({},e,{value:_}),groupCollapsed:O({},e,{value:E}),groupEnd:O({},e,{value:I})})}S<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?P(p):"";return"function"==typeof e&&D.set(e,f),f}function L(e,t,n){if(null==e)return"";if("function"==typeof e)return V(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return P(e);switch(e){case d:return P("Suspense");case u:return P("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return V(e,!1)}(e.render);case p:return L(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return L(a(i),t,n)}catch{}}return""}D=new A;var F=Object.prototype.hasOwnProperty,$={},B=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}var H=Array.isArray;function U(e){return H(e)}function W(e){return""+e}function K(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),W(e);var t}var G,Y,J,X=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};J={};var Q=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};var ee,te=y.ReactCurrentOwner,ne=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ie(){if(te.current){var e=w(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),re(null)}}}function le(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&se(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)oe(i.value)&&se(i.value,t)}}function ce(e,n,r,m,g,y){var x,C=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==d&&x!==u&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==b&&void 0===x.getModuleId));if(!C){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var _=function(e,t,n,r,o){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==n&&(K(n),d=""+n),function(e){if(F.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),d=""+t.key),function(e){if(F.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&X.current&&t&&X.current.stateNode!==t){var n=w(X.current.type);J[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(X.current.type),e.ref),J[n]=!0)}}(t,o)),t)F.call(t,i)&&!Z.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===c[i]&&(c[i]=p[i])}if(d||u){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=f,(l=function(){G||(G=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var n=function(){Y||(Y=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(c,f)}return Q(e,d,u,o,r,X.current,c)}(e,n,r,g,y);if(null==_)return _;if(C){var E=n.children;if(void 0!==E)if(m)if(U(E)){for(var I=0;I<E.length;I++)le(E[I],e);Object.freeze&&Object.freeze(E)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){re(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),re(null);break}}null!==e.ref&&(re(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=w(n);!function(e,t,n,r,o){var i=Function.call.bind(F);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(q(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in $)&&($[s.message]=!0,q(o),v("Failed %s type: %s",n,s.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}Dd.Fragment=o,Dd.jsx=function(e,t,n){return ce(e,t,n,!1)},Dd.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),Dd);var zd=Rd.exports;function Ad(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[zd.jsx("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z",children:zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),zd.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),zd.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function Vd(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsx("path",{fill:"currentColor",d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})})}const Ld=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"Copy":"Kopier",a=ya();return ge.jsx(ta,{title:i,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ge.jsx(Vd,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(o||i)})})})},Fd="_copy-wrapper_1gjzc_1",$d="_hidden-copy_1gjzc_1",Bd=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ge.jsxs("div",{className:Ca("flex items-center hover:text-gama-500",Fd,e),children:[o,ge.jsx(ta,{title:"no"===n?"Kopier":"Copy",className:$d,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},startIcon:ge.jsx(Vd,{width:20,height:20})})})})]}),qd="_styled-widget-title_1mja5_1",Hd=function(e){return ge.jsx("div",{className:qd,children:e.children})},Ud="_styled-widget-header_1qk88_1",Wd=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ge.jsxs("div",{className:Ca(Ud,n),children:[ge.jsx(Hd,{children:t}),ge.jsx("div",{className:r,children:e})]}),Kd="_asma-core-ui-styled-widget_fvr2z_1",Gd="_widget-header-left_fvr2z_19",Yd="_widget-header-right_fvr2z_25",Jd="_widget-content_fvr2z_31",Xd="_widget-footer_fvr2z_41",Zd="_widget-link_fvr2z_46";function Qd(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function eu(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const tu=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:p})=>{const[f,h]=a(!1);return s((()=>{if(i){const e=localStorage.getItem(i);h("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(f))}),[f,i]),ge.jsxs("div",{className:Kd,children:[ge.jsxs("div",{className:Gd,children:[n,ge.jsx(Hd,{children:t}),ge.jsx("div",{className:`${Yd} ${p??""}`,children:u})]}),ge.jsx("div",{className:Jd,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(Ma,{isLoading:l}),ge.jsx(Oa,{isEmpty:c,emptyText:d})]})}),ge.jsxs("div",{className:Xd,children:[!o||null!=o&&o.hide?ge.jsx("div",{}):ge.jsx(da,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:f?ge.jsx(Qd,{width:20,height:20}):ge.jsx(eu,{width:20,height:20}),onClick:()=>{var e;h(!f),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:f?o.viewLessText:o.viewMoreText}),r&&!r.hide?ge.jsx(Gc,{dataTest:"go-to-button",className:Zd,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},nu="_styled-module-title_174mo_1",ru=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:nu,children:e.children})},ou="_dialog_erjok_1",iu="_hidden_erjok_9";function au(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M10 21v-2H6.41l4.5-4.5l-1.41-1.41l-4.5 4.5V14H3v7zm4.5-10.09l4.5-4.5V10h2V3h-7v2h3.59l-4.5 4.5z"})})}function su(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M19.5 3.09L15 7.59V4h-2v7h7V9h-3.59l4.5-4.5zM4 13v2h3.59l-4.5 4.5l1.41 1.41l4.5-4.5V20h2v-7z"})})}const lu="object"==typeof global&&global&&global.Object===Object&&global;var cu="object"==typeof self&&self&&self.Object===Object&&self;const du=(lu||cu||Function("return this")()).Symbol;var uu=Object.prototype,pu=uu.hasOwnProperty,fu=uu.toString,hu=du?du.toStringTag:void 0;var mu=Object.prototype.toString;var gu="[object Null]",yu="[object Undefined]",vu=du?du.toStringTag:void 0;function bu(e){return null==e?void 0===e?yu:gu:vu&&vu in Object(e)?function(e){var t=pu.call(e,hu),n=e[hu];try{e[hu]=void 0;var r=!0}catch{}var o=fu.call(e);return r&&(t?e[hu]=n:delete e[hu]),o}(e):function(e){return mu.call(e)}(e)}const xu=Array.isArray;function wu(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=bu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Cu=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:u,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:v,onPrimaryButtonClick:b,onSecondaryButtonClick:x,dataTest:w,actionNode:C,extraActions:k,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:E,locale:I="en",enableFullscreen:O=!0,fullScreenState:S,handleFullScreenState:M})=>{const[T,R]=a(!1),[P,D]=a(!1),{open:z,anchorEl:A,handleOpen:V,handleClose:L}=(()=>{const[e,t]=a(null),n=!!e,r=d((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:d((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==S?S:P,$=g||y,B=$||v,q=()=>{R(!T)};return ge.jsxs(ge.Fragment,{children:[F&&!T&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsx("div",{style:{zIndex:51},className:Ca(ou,!T&&iu),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!T&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(ta,{title:"en"===I?"Expand":"Utvid",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"text",size:"small",onClick:q,endIcon:s&&ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:n})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ge.jsxs("div",{className:Ca("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",m&&!T?m:"",T&&"!h-0 !w-0 opacity-0 duration-0",F&&!T&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0"),"data-test":w,children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[u?ge.jsx("div",{className:"text-sm text-delta-700",children:u}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[C,i&&ge.jsx(ta,{title:"en"===I?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:q,endIcon:i&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&l&&ge.jsx(ta,{title:F?"en"===I?"Exit full screen":"Avslutt fullskjerm":"en"===I?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==S&&M?M():D(!P)},endIcon:F?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ge.jsxs("div",{className:pi("flex flex-col",F&&!T&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(xu(k)&&null!=k&&k.length||wu(k))&&j||E?ge.jsxs("div",{className:Ca("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[xu(k)&&null!=k&&k.length&&j?ge.jsxs(ge.Fragment,{children:[ge.jsx(da,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Tn,{width:24,height:24}),onClick:V,children:j}),ge.jsx(Fc,{open:z,anchorEl:A,onClose:L,children:k.map((e=>ge.jsx($c,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&wu(k)&&ge.jsx(da,{dataTest:"extra-action-button",variant:"text",onClick:k,children:j})," ",E,B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null]}):ge.jsx(ge.Fragment,{children:B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},ku=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"})})})}):null,ju=({visibility:e,tooltipTitle:t,onClick:n,type:r})=>{if(!e)return null;const o="minimize"===r;return"expand"===r?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:ge.jsx(yr,{height:20,width:20,color:"text-gama-500"})})})})}):o?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"})})})})}):null},Nu=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:r})=>t?ge.jsx(ta,{title:n,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:r,endIcon:e?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"})})})}):null,_u="_minimized-dialog_16tvw_5",Eu="_dialog_16tvw_1",Iu="_hidden_16tvw_27",Ou={en:{close:"Close",expand:"Expand",minimize:"Minimize",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},no:{close:"Lukk",expand:"Utvid",minimize:"Minimer",fullscreen:"Fullskjerm",exitFullscreen:"Avslutt fullskjerm"}};const Su=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:r=!0,enableFullscreen:o=!0,title:i,label:s,children:l,open:d,onClose:p,classNameOverrides:f={maximized:"",minimized:"",fullscreen:""},dataTest:h,actionNode:m,locale:g="en",style:y}=e,v=ya(),b=function(e="en"){return u((()=>Ou[e]??Ou.en),[e])}(g),x=c(null),{minimized:w,setMinimized:C,fullScreen:k,setFullScreen:j}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:r})=>{const[o,i]=a(!1),[s,l]=a(!1);return{fullScreen:void 0!==e?e:s,setFullScreen:e=>t?t():l(e),minimized:void 0!==n?n:o,setMinimized:e=>r?r(e):i(e)}})(e);return d?ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51,...y},className:Ca(_u,!w&&Iu,f.minimized),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!w&&"hidden"),"data-test":h,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(ta,{title:i,placement:"top",children:ge.jsx("div",{className:"truncate",children:i})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(ju,{type:"expand",visibility:r,onClick:()=>C(!w),tooltipTitle:b.expand}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]})}),k&&!w&&ge.jsx("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>j(!1)}),ge.jsxs("div",{style:{zIndex:51,...y},ref:x,className:Ca(Eu,w&&Iu,f.maximized,k&&!w&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0 z-[53]"),children:[ge.jsxs("div",{className:Ca("flex flex-col px-4 border-b-[1px] border-delta-200",v?"py-3 gap-y-1":"py-4 gap-y-2"),children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[s?ge.jsx("div",{className:"text-sm text-delta-700",children:s}):ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[m,ge.jsx(ju,{visibility:n&&!v,type:"minimize",onClick:()=>C(!w),tooltipTitle:b.minimize}),ge.jsx(Nu,{showFullScreenIcon:o&&!v,fullScreen:k,onClick:()=>j(!k),tooltipTitle:k?b.exitFullscreen:b.fullscreen}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]}),s&&ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i})]}),ge.jsx("div",{className:Ca(w&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:l})]})]}):null};function Mu({config:e,MAX_DIALOG_WIDTH:t=600}){const n=p(void 0);return{DialogStackProvider:({children:r})=>{const[o,i]=a([]),l=function(){const[e,t]=a((()=>window.innerWidth));return s((()=>{const e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}(),c=d((e=>{const n=[...e].sort(((e,t)=>e.order-t.order)),r=n.length||1,o=Math.min(t,(l-16*(r+1))/r);return n.map(((e,t)=>({...e,width:o,position:{right:16+t*(o+16)}})))}),[l]),u=d(((t,n)=>{var r,o;const a=null==(r=e[t])?void 0:r.dependencies,s=(null==(o=e[t])?void 0:o.order)??1/0,l=n??s;i((e=>{const n=e.find((e=>e.id===t)),r={id:t,open:!0,width:0,position:{right:0},dependencies:a,order:l},o=n?e.map((e=>e.id===t?{...e,open:!0,dependencies:a}:e)):[...e,r];return c(o.filter((e=>e.open)))}))}),[c]),p=d((e=>{i((t=>{var n;const r=new Set([e]);let o;do{o=!1;for(const e of t)null!=(n=e.dependencies)&&n.some((e=>r.has(e)))&&!r.has(e.id)&&(r.add(e.id),o=!0)}while(o);return c(t.filter((e=>!r.has(e.id))))}))}),[c]),f=d((e=>o.find((t=>t.id===e))),[o]);return ge.jsx(n.Provider,{value:{dialogs:o,openDialog:u,closeDialog:p,getDialogState:f},children:r})},useDialogStack:function(){const e=f(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{An as ArchiveIcon,bn as AssignmentIcon,xn as AssignmentOutlineIcon,$ as Avatar,br as BadgeIcon,en as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,gn as CalendarIcon,vn as CalendarRangeIcon,Ln as CheckBoxCheckedIcon,mn as CheckFactIcon,hn as CheckFactOutlineIcon,qn as CheckIcon,fn as CheckOutlineIcon,on as ChevronDoubleLeftIcon,an as ChevronDoubleRightIcon,Fn as ChevronDownIcon,rn as ChevronLeftIcon,nn as ChevronRightIcon,$n as ChevronUpIcon,B as ClickAwayListener,Bn as CloseIcon,mr as ConsentsIcon,q as Container,Ld as CopyButton,Bd as CopyWrapper,cn as DashboardViewIcon,dn as DashboardViewOutlineIcon,Xn as DeleteOutlineIcon,Tn as DotsVerticalIcon,Vn as DownloadIcon,Yn as DragHorizontalIcon,zn as DropDownIcon,Dn as DropUpIcon,er as DvrIcon,dr as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,H as Fade,ir as FastCheckOutlineIcon,Jn as FilePdfIcon,Zn as FilterIcon,In as FindReplaceIcon,On as FindReplacePeopleIcon,U as FormLabel,tn as HamburgerIcon,jr as HandymanIcon,kr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,nl as IndeterminateIcon,yr as KeyboardCapslockIcon,or as LinkOutlineIcon,wn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Pn as LoadingIcon,Qn as LockIcon,Cn as MessageProcessingIcon,kn as MessageProcessingOutlineIcon,vr as MessageReplyIcon,Cu as MinimizableDialog,Su as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,W as Paper,ln as PdfIcon,pr as PencilOutlineIcon,pn as PeopleIcon,un as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,Sn as PersonIcon,Mn as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,Cr as PlusIconCircle,K as Popper,sn as QnrIcon,nr as ReplayIcon,jn as ReportBoxIcon,Nn as ReportBoxOutlineIcon,Rn as SearchIcon,_n as SettingsIcon,ur as SettingsMenuHorizontalIcon,En as SettingsOutlineIcon,G as Skeleton,Y as Stack,kd as StyledAccordion,Nd as StyledAccordionDetails,jd as StyledAccordionSummary,ye as StyledBadge,da as StyledButton,rl as StyledCheckbox,Er as StyledChip,va as StyledDialog,ka as StyledDialogActions,Na as StyledDialogContent,Ea as StyledDialogTitle,Lc as StyledDrawer,Oa as StyledEmptyPage,Ed as StyledFilterButton,Sd as StyledFilterMenu,Pc as StyledFormControl,Dc as StyledFormControlLabel,Vc as StyledFormGroup,zc as StyledFormHelperText,sa as StyledFormLabel,ol as StyledInputField,Ac as StyledInputLabel,Sr as StyledInteractiveChip,Rc as StyledLabel,Gc as StyledLink,Ma as StyledLoading,Fc as StyledMenu,$c as StyledMenuItem,Bc as StyledMenuList,ru as StyledModuleTitle,_d as StyledPopover,Bl as StyledRadio,Tc as StyledRadioGroup,il as StyledSearchField,ll as StyledSelect,pl as StyledSelectAutocomplete,cl as StyledSelectItem,fl as StyledSlider,Cl as StyledSwitch,Yc as StyledTab,Jc as StyledTabs,sl as StyledTextarea,ta as StyledTooltip,na as StyledTypography,tu as StyledWidget,Wd as StyledWidgetHeader,Hd as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,Mu as createDialogStack,te as omit,de as prepareForSlot,le as setMidnightTime,ce as setZeroTime};
38
+ "production"===process.env.NODE_ENV?Rd.exports=function(){if(Md)return Pd;Md=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,d=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:i.current}}return Pd.Fragment=n,Pd.jsx=s,Pd.jsxs=s,Pd}():Rd.exports=(Td||(Td=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,n)}var b;function x(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return x(e)+".Consumer";case s:return x(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case f:var r=e,h=r._payload,m=r._init;try{return w(m(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var C,k,j,N,_,E,I,O=Object.assign,S=0;function M(){}M.__reactDisabledLog=!0;var T,R=y.ReactCurrentDispatcher;function P(e,t,n){if(void 0===T)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);T=r&&r[1]||""}return"\n"+T+e}var D,z=!1,A="function"==typeof WeakMap?WeakMap:Map;function V(e,t){if(!e||z)return"";var n,r=D.get(e);if(void 0!==r)return r;z=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===S){C=console.log,k=console.info,j=console.warn,N=console.error,_=console.group,E=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}S++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,d=l.length-1;c>=1&&d>=0&&s[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==l[d]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,u),u}}while(c>=1&&d>=0);break}}}finally{z=!1,R.current=o,function(){if(0==--S){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:C}),info:O({},e,{value:k}),warn:O({},e,{value:j}),error:O({},e,{value:N}),group:O({},e,{value:_}),groupCollapsed:O({},e,{value:E}),groupEnd:O({},e,{value:I})})}S<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?P(p):"";return"function"==typeof e&&D.set(e,f),f}function L(e,t,n){if(null==e)return"";if("function"==typeof e)return V(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return P(e);switch(e){case d:return P("Suspense");case u:return P("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e,t,n){return V(e,!1)}(e.render);case p:return L(e.type,t,n);case f:var o=e,i=o._payload,a=o._init;try{return L(a(i),t,n)}catch{}}return""}D=new A;var F=Object.prototype.hasOwnProperty,$={},B=y.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}var H=Array.isArray;function U(e){return H(e)}function W(e){return""+e}function K(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(t=e,"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object")),W(e);var t}var G,Y,J,X=y.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};J={};var Q=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};var ee,te=y.ReactCurrentOwner,ne=y.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ie(){if(te.current){var e=w(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==te.current&&(r=" It was passed a child from "+w(e._owner.type)+"."),re(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),re(null)}}}function le(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];oe(r)&&se(r,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)oe(i.value)&&se(i.value,t)}}function ce(e,n,r,m,g,y){var x,C=!("string"!=typeof(x=e)&&"function"!=typeof x&&x!==o&&x!==a&&x!==i&&x!==d&&x!==u&&x!==h&&("object"!=typeof x||null===x||x.$$typeof!==f&&x.$$typeof!==p&&x.$$typeof!==s&&x.$$typeof!==l&&x.$$typeof!==c&&x.$$typeof!==b&&void 0===x.getModuleId));if(!C){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);k+=N||ie(),null===e?j="null":U(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(w(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var _=function(e,t,n,r,o){var i,a,s,l,c={},d=null,u=null;for(i in void 0!==n&&(K(n),d=""+n),function(e){if(F.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),d=""+t.key),function(e){if(F.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&X.current&&t&&X.current.stateNode!==t){var n=w(X.current.type);J[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(X.current.type),e.ref),J[n]=!0)}}(t,o)),t)F.call(t,i)&&!Z.hasOwnProperty(i)&&(c[i]=t[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===c[i]&&(c[i]=p[i])}if(d||u){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;d&&(a=c,s=f,(l=function(){G||(G=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:l,configurable:!0})),u&&function(e,t){var n=function(){Y||(Y=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(c,f)}return Q(e,d,u,o,r,X.current,c)}(e,n,r,g,y);if(null==_)return _;if(C){var E=n.children;if(void 0!==E)if(m)if(U(E)){for(var I=0;I<E.length;I++)le(E[I],e);Object.freeze&&Object.freeze(E)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){re(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),re(null);break}}null!==e.ref&&(re(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(_):function(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=w(n);!function(e,t,n,r,o){var i=Function.call.bind(F);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(q(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in $)&&($[s.message]=!0,q(o),v("Failed %s type: %s",n,s.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ee||(ee=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}Dd.Fragment=o,Dd.jsx=function(e,t,n){return ce(e,t,n,!1)},Dd.jsxs=function(e,t,n){return ce(e,t,n,!0)}}()),Dd);var zd=Rd.exports;function Ad(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:2,children:[zd.jsx("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z",children:zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),zd.jsxs("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3C16.9706 3 21 7.02944 21 12",children:[zd.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),zd.jsx("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})}function Vd(e){return zd.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zd.jsx("path",{fill:"currentColor",d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})})}const Ld=({className:e,contentToCopy:t,locale:n,messageInfo:r,text:o})=>{const i="en"===n?"Copy":"Kopier",a=ya();return ge.jsx(ta,{title:i,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",className:e,size:"small",variant:"text",startIcon:ge.jsx(Vd,{width:20,height:20}),onClick:()=>{navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},children:!a&&(o||i)})})})},Fd="_copy-wrapper_1gjzc_1",$d="_hidden-copy_1gjzc_1",Bd=({className:e,contentToCopy:t,locale:n,messageInfo:r,children:o})=>ge.jsxs("div",{className:Ca("flex items-center hover:text-gama-500",Fd,e),children:[o,ge.jsx(ta,{title:"no"===n?"Kopier":"Copy",className:$d,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"copy-button",size:"small",variant:"text",className:"cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then((()=>{r("no"===n?"Kopieres til utklippstavlen":"Copied to clipboard")}))},startIcon:ge.jsx(Vd,{width:20,height:20})})})})]}),qd="_styled-widget-title_1mja5_1",Hd=function(e){return ge.jsx("div",{className:qd,children:e.children})},Ud="_styled-widget-header_1qk88_1",Wd=({actions:e,title:t,containerClassname:n,actionsClassname:r})=>ge.jsxs("div",{className:Ca(Ud,n),children:[ge.jsx(Hd,{children:t}),ge.jsx("div",{className:r,children:e})]}),Kd="_asma-core-ui-styled-widget_fvr2z_1",Gd="_widget-header-left_fvr2z_19",Yd="_widget-header-right_fvr2z_25",Jd="_widget-content_fvr2z_31",Xd="_widget-footer_fvr2z_41",Zd="_widget-link_fvr2z_46";function Qd(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z"})})}function eu(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"})})}const tu=({children:e,title:t,icon:n,link:r,viewMore:o,persistKey:i,isLoading:l,isEmpty:c,emptyText:d,headerRight:u,headerRightClassName:p})=>{const[f,h]=a(!1);s((()=>{if(i){const e=localStorage.getItem(i);h("true"===e)}}),[i]),s((()=>{i&&localStorage.setItem(i,String(f))}),[f,i]);const m=!!r&&!r.hide,g=!(!o||null!=o&&o.hide);return ge.jsxs("div",{className:Kd,children:[ge.jsxs("div",{className:Gd,children:[n,ge.jsx(Hd,{children:t}),ge.jsx("div",{className:`${Yd} ${p??""}`,children:u})]}),ge.jsx("div",{className:Jd,children:ge.jsxs(ge.Fragment,{children:[e,ge.jsx(Ma,{isLoading:l}),ge.jsx(Oa,{isEmpty:c,emptyText:d})]})}),g&&ge.jsxs("div",{className:Xd,children:[!o||null!=o&&o.hide?ge.jsx("div",{}):ge.jsx(da,{disabled:o.disabled,dataTest:"view-more",variant:"text",endIcon:f?ge.jsx(Qd,{width:20,height:20}):ge.jsx(eu,{width:20,height:20}),onClick:()=>{var e;h(!f),null==(e=null==o?void 0:o.onClick)||e.call(o)},children:f?o.viewLessText:o.viewMoreText}),m?ge.jsx(Gc,{dataTest:"go-to-button",className:Zd,size:"small",href:r.href,onClick:r.onClick,content:r.content}):ge.jsx("div",{})]})]})},nu="_styled-module-title_174mo_1",ru=function(e){return ge.jsx("h1",{"data-test":e.dataTest,className:nu,children:e.children})},ou="_dialog_erjok_1",iu="_hidden_erjok_9";function au(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M10 21v-2H6.41l4.5-4.5l-1.41-1.41l-4.5 4.5V14H3v7zm4.5-10.09l4.5-4.5V10h2V3h-7v2h3.59l-4.5 4.5z"})})}function su(e){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:ge.jsx("path",{fill:"currentColor",d:"M19.5 3.09L15 7.59V4h-2v7h7V9h-3.59l4.5-4.5zM4 13v2h3.59l-4.5 4.5l1.41 1.41l4.5-4.5V20h2v-7z"})})}const lu="object"==typeof global&&global&&global.Object===Object&&global;var cu="object"==typeof self&&self&&self.Object===Object&&self;const du=(lu||cu||Function("return this")()).Symbol;var uu=Object.prototype,pu=uu.hasOwnProperty,fu=uu.toString,hu=du?du.toStringTag:void 0;var mu=Object.prototype.toString;var gu="[object Null]",yu="[object Undefined]",vu=du?du.toStringTag:void 0;function bu(e){return null==e?void 0===e?yu:gu:vu&&vu in Object(e)?function(e){var t=pu.call(e,hu),n=e[hu];try{e[hu]=void 0;var r=!0}catch{}var o=fu.call(e);return r&&(t?e[hu]=n:delete e[hu]),o}(e):function(e){return mu.call(e)}(e)}const xu=Array.isArray;function wu(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=bu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const Cu=({onCloseText:e="",onMinimizeText:t="",onExpandText:n="",onFullScreenText:r="",showCloseIcon:o=!0,showMinimizeIcon:i=!0,showExpandIcon:s=!0,showFullScreenIcon:l=!0,title:c,label:u,children:p,open:f,onClose:h,className:m="",primaryButtonText:g,primaryButtonLoading:y=!1,secondaryButtonText:v,onPrimaryButtonClick:b,onSecondaryButtonClick:x,dataTest:w,actionNode:C,extraActions:k,extraActionsText:j,btnContainerClassName:N,footerClassName:_,footerInfo:E,locale:I="en",enableFullscreen:O=!0,fullScreenState:S,handleFullScreenState:M})=>{const[T,R]=a(!1),[P,D]=a(!1),{open:z,anchorEl:A,handleOpen:V,handleClose:L}=(()=>{const[e,t]=a(null),n=!!e,r=d((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:d((()=>{t(null)}),[]),handleOpen:r,anchorEl:e}})();if(!f)return null;const F=void 0!==S?S:P,$=g||y,B=$||v,q=()=>{R(!T)};return ge.jsxs(ge.Fragment,{children:[F&&!T&&ge.jsx("div",{className:"z-[51] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70"}),ge.jsx("div",{style:{zIndex:51},className:Ca(ou,!T&&iu),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!T&&"hidden"),"data-test":w,children:[ge.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[s&&ge.jsx(ta,{title:"en"===I?"Expand":"Utvid",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"text",size:"small",onClick:q,endIcon:s&&ge.jsx(yr,{height:20,width:20,color:"text-gama-500"}),children:n})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:o&&ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]})}),ge.jsxs("div",{className:Ca("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",m&&!T?m:"",T&&"!h-0 !w-0 opacity-0 duration-0",F&&!T&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0"),"data-test":w,children:[ge.jsxs("div",{className:"flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[u?ge.jsx("div",{className:"text-sm text-delta-700",children:u}):ge.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:c}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[C,i&&ge.jsx(ta,{title:"en"===I?"Minimize":"Minimer",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:q,endIcon:i&&ge.jsx(gr,{height:20,width:20,color:"text-delta-700"}),children:t})})}),O&&l&&ge.jsx(ta,{title:F?"en"===I?"Exit full screen":"Avslutt fullskjerm":"en"===I?"Full screen":"Fullskjerm",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:()=>{void 0!==S&&M?M():D(!P)},endIcon:F?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"}),children:r})})}),o&&ge.jsx(ta,{title:"en"===I?"Close":"Lukk",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:h,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"}),children:e})})})]})]}),u&&ge.jsx("div",{className:"text-2xl font-semibold text-delta-800 truncate",children:c})]}),ge.jsxs("div",{className:pi("flex flex-col",F&&!T&&"h-[87dvh]"),children:[ge.jsx("div",{className:"flex-grow overflow-y-auto",children:"function"==typeof p?p({fullScreen:F}):p}),(xu(k)&&null!=k&&k.length||wu(k))&&j||E?ge.jsxs("div",{className:Ca("flex items-center justify-between p-4 border-0 border-t-[1px] border-solid border-delta-200 bg-white",_),children:[xu(k)&&null!=k&&k.length&&j?ge.jsxs(ge.Fragment,{children:[ge.jsx(da,{dataTest:"extra-actions-button",variant:"textGray",startIcon:ge.jsx(Tn,{width:24,height:24}),onClick:V,children:j}),ge.jsx(Fc,{open:z,anchorEl:A,onClose:L,children:k.map((e=>ge.jsx($c,{className:e.className,onClick:e.onClick,children:e.label},e.label)))})]}):j&&wu(k)&&ge.jsx(da,{dataTest:"extra-action-button",variant:"text",onClick:k,children:j})," ",E,B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null]}):ge.jsx(ge.Fragment,{children:B?ge.jsxs("div",{className:Ca("flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",N),children:[v&&x&&ge.jsx(da,{dataTest:"cancel-button",variant:"outlined",onClick:x,children:v}),$&&b&&ge.jsx(da,{dataTest:"save-button",startIcon:y&&ge.jsx(Ad,{width:24,height:24}),onClick:b,children:g})]}):null})]})]})]})},ku=({showCloseIcon:e,tooltipTitle:t,onClick:n})=>e?ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"close-button",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(Bn,{height:20,width:20,color:"text-delta-700"})})})}):null,ju=({visibility:e,tooltipTitle:t,onClick:n,type:r})=>{if(!e)return null;const o="minimize"===r;return"expand"===r?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"text",size:"small",onClick:n,endIcon:ge.jsx(yr,{height:20,width:20,color:"text-gama-500"})})})})}):o?ge.jsx("div",{children:ge.jsx(ta,{title:t,placement:"top",children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"toggle-minimize-btn",variant:"textGray",size:"small",onClick:n,endIcon:ge.jsx(gr,{height:20,width:20,color:"text-delta-700"})})})})}):null},Nu=({fullScreen:e,showFullScreenIcon:t,tooltipTitle:n,onClick:r})=>t?ge.jsx(ta,{title:n,children:ge.jsx("div",{children:ge.jsx(da,{dataTest:"fullscreen-button",variant:"textGray",size:"small",onClick:r,endIcon:e?ge.jsx(su,{width:20,height:20,color:"text-delta-700"}):ge.jsx(au,{width:20,height:20,color:"text-delta-700"})})})}):null,_u="_minimized-dialog_16tvw_5",Eu="_dialog_16tvw_1",Iu="_hidden_16tvw_27",Ou={en:{close:"Close",expand:"Expand",minimize:"Minimize",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},no:{close:"Lukk",expand:"Utvid",minimize:"Minimer",fullscreen:"Fullskjerm",exitFullscreen:"Avslutt fullskjerm"}};const Su=e=>{const{showCloseIcon:t=!0,showMinimizeIcon:n=!0,showExpandIcon:r=!0,enableFullscreen:o=!0,title:i,label:s,children:l,open:d,onClose:p,classNameOverrides:f={maximized:"",minimized:"",fullscreen:""},dataTest:h,actionNode:m,locale:g="en",style:y}=e,v=ya(),b=function(e="en"){return u((()=>Ou[e]??Ou.en),[e])}(g),x=c(null),{minimized:w,setMinimized:C,fullScreen:k,setFullScreen:j}=(({fullScreenState:e,handleFullScreenState:t,minimizedState:n,handleMinimizedState:r})=>{const[o,i]=a(!1),[s,l]=a(!1);return{fullScreen:void 0!==e?e:s,setFullScreen:e=>t?t():l(e),minimized:void 0!==n?n:o,setMinimized:e=>r?r(e):i(e)}})(e);return d?ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{style:{zIndex:51,...y},className:Ca(_u,!w&&Iu,f.minimized),children:ge.jsxs("div",{className:pi("flex items-center justify-between",!w&&"hidden"),"data-test":h,children:[ge.jsx("div",{className:"truncate max-w-[303px] text-lg font-semibold text-delta-800 pr-1",children:ge.jsx(ta,{title:i,placement:"top",children:ge.jsx("div",{className:"truncate",children:i})})}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[ge.jsx(ju,{type:"expand",visibility:r,onClick:()=>C(!w),tooltipTitle:b.expand}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]})}),k&&!w&&ge.jsx("div",{className:"z-[52] fixed inset-0 bg-[rgb(98,110,126)] bg-opacity-70",onClick:()=>j(!1)}),ge.jsxs("div",{style:{zIndex:51,...y},ref:x,className:Ca(Eu,w&&Iu,f.maximized,k&&!w&&"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-[1000px] h-[95dvh] duration-0 z-[53]"),children:[ge.jsxs("div",{className:Ca("flex flex-col px-4 border-b-[1px] border-delta-200",v?"py-3 gap-y-1":"py-4 gap-y-2"),children:[ge.jsxs("div",{className:"flex items-center justify-between",children:[s?ge.jsx("div",{className:"text-sm text-delta-700",children:s}):ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i}),ge.jsxs("div",{className:"flex items-center gap-x-1",children:[m,ge.jsx(ju,{visibility:n&&!v,type:"minimize",onClick:()=>C(!w),tooltipTitle:b.minimize}),ge.jsx(Nu,{showFullScreenIcon:o&&!v,fullScreen:k,onClick:()=>j(!k),tooltipTitle:k?b.exitFullscreen:b.fullscreen}),ge.jsx(ku,{showCloseIcon:t,onClick:p,tooltipTitle:b.close})]})]}),s&&ge.jsx("div",{className:Ca("font-semibold text-delta-800",v?"text-xl line-clamp-2":"text-2xl line-clamp-1"),children:i})]}),ge.jsx("div",{className:Ca(w&&"hidden","flex flex-grow flex-col overflow-y-auto"),children:l})]})]}):null};function Mu({config:e,MAX_DIALOG_WIDTH:t=600}){const n=p(void 0);return{DialogStackProvider:({children:r})=>{const[o,i]=a([]),l=function(){const[e,t]=a((()=>window.innerWidth));return s((()=>{const e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}(),c=d((e=>{const n=[...e].sort(((e,t)=>e.order-t.order)),r=n.length||1,o=Math.min(t,(l-16*(r+1))/r);return n.map(((e,t)=>({...e,width:o,position:{right:16+t*(o+16)}})))}),[l]),u=d(((t,n)=>{var r,o;const a=null==(r=e[t])?void 0:r.dependencies,s=(null==(o=e[t])?void 0:o.order)??1/0,l=n??s;i((e=>{const n=e.find((e=>e.id===t)),r={id:t,open:!0,width:0,position:{right:0},dependencies:a,order:l},o=n?e.map((e=>e.id===t?{...e,open:!0,dependencies:a}:e)):[...e,r];return c(o.filter((e=>e.open)))}))}),[c]),p=d((e=>{i((t=>{var n;const r=new Set([e]);let o;do{o=!1;for(const e of t)null!=(n=e.dependencies)&&n.some((e=>r.has(e)))&&!r.has(e.id)&&(r.add(e.id),o=!0)}while(o);return c(t.filter((e=>!r.has(e.id))))}))}),[c]),f=d((e=>o.find((t=>t.id===e))),[o]);return ge.jsx(n.Provider,{value:{dialogs:o,openDialog:u,closeDialog:p,getDialogState:f},children:r})},useDialogStack:function(){const e=f(n);if(!e)throw new Error("useDialogStack must be used within DialogStackProvider");return e}}}export{An as ArchiveIcon,bn as AssignmentIcon,xn as AssignmentOutlineIcon,$ as Avatar,br as BadgeIcon,en as BellIcon,Qt as BellOutlineIcon,rr as CalendarBlankOutlineIcon,gn as CalendarIcon,vn as CalendarRangeIcon,Ln as CheckBoxCheckedIcon,mn as CheckFactIcon,hn as CheckFactOutlineIcon,qn as CheckIcon,fn as CheckOutlineIcon,on as ChevronDoubleLeftIcon,an as ChevronDoubleRightIcon,Fn as ChevronDownIcon,rn as ChevronLeftIcon,nn as ChevronRightIcon,$n as ChevronUpIcon,B as ClickAwayListener,Bn as CloseIcon,mr as ConsentsIcon,q as Container,Ld as CopyButton,Bd as CopyWrapper,cn as DashboardViewIcon,dn as DashboardViewOutlineIcon,Xn as DeleteOutlineIcon,Tn as DotsVerticalIcon,Vn as DownloadIcon,Yn as DragHorizontalIcon,zn as DropDownIcon,Dn as DropUpIcon,er as DvrIcon,dr as EarthIcon,xr as EditSquareIcon,tr as ErrorOutlineIcon,H as Fade,ir as FastCheckOutlineIcon,Jn as FilePdfIcon,Zn as FilterIcon,In as FindReplaceIcon,On as FindReplacePeopleIcon,U as FormLabel,tn as HamburgerIcon,jr as HandymanIcon,kr as HandymanOutlineIcon,Wn as InboxOutboxIcon,Kn as InboxOutboxOutlineIcon,nl as IndeterminateIcon,yr as KeyboardCapslockIcon,or as LinkOutlineIcon,wn as ListNumberedIcon,cr as ListSettingsLineIcon,sr as ListStatusIcon,Pn as LoadingIcon,Qn as LockIcon,Cn as MessageProcessingIcon,kn as MessageProcessingOutlineIcon,vr as MessageReplyIcon,Cu as MinimizableDialog,Su as MinimizableDialogV2,gr as MinimizeIcon,yn as NewCalendarIcon,hr as OutlineCalendarMonth,W as Paper,ln as PdfIcon,pr as PencilOutlineIcon,pn as PeopleIcon,un as PeopleOutlineIcon,Hn as PermMediaIcon,Un as PermMediaOutline,Sn as PersonIcon,Mn as PersonOutlineIcon,Nr as PinIcon,wr as PlusIcon,Cr as PlusIconCircle,K as Popper,sn as QnrIcon,nr as ReplayIcon,jn as ReportBoxIcon,Nn as ReportBoxOutlineIcon,Rn as SearchIcon,_n as SettingsIcon,ur as SettingsMenuHorizontalIcon,En as SettingsOutlineIcon,G as Skeleton,Y as Stack,kd as StyledAccordion,Nd as StyledAccordionDetails,jd as StyledAccordionSummary,ye as StyledBadge,da as StyledButton,rl as StyledCheckbox,Er as StyledChip,va as StyledDialog,ka as StyledDialogActions,Na as StyledDialogContent,Ea as StyledDialogTitle,Lc as StyledDrawer,Oa as StyledEmptyPage,Ed as StyledFilterButton,Sd as StyledFilterMenu,Pc as StyledFormControl,Dc as StyledFormControlLabel,Vc as StyledFormGroup,zc as StyledFormHelperText,sa as StyledFormLabel,ol as StyledInputField,Ac as StyledInputLabel,Sr as StyledInteractiveChip,Rc as StyledLabel,Gc as StyledLink,Ma as StyledLoading,Fc as StyledMenu,$c as StyledMenuItem,Bc as StyledMenuList,ru as StyledModuleTitle,_d as StyledPopover,Bl as StyledRadio,Tc as StyledRadioGroup,il as StyledSearchField,ll as StyledSelect,pl as StyledSelectAutocomplete,cl as StyledSelectItem,fl as StyledSlider,Cl as StyledSwitch,Yc as StyledTab,Jc as StyledTabs,sl as StyledTextarea,ta as StyledTooltip,na as StyledTypography,tu as StyledWidget,Wd as StyledWidgetHeader,Hd as StyledWidgetTitle,lr as TextBoxCheckOutlineIcon,Gn as TopicIcon,ar as UnknownDocumentOutlineRoundedIcon,fr as WarningAmberOutlineIcon,_r as WorkIcon,Mu as createDialogStack,te as omit,de as prepareForSlot,le as setMidnightTime,ce as setZeroTime};
@@ -4,7 +4,7 @@ export type DialogConfigMap = Record<string, {
4
4
  order?: number;
5
5
  }>;
6
6
  type DialogId<Config extends DialogConfigMap> = Extract<keyof Config, string>;
7
- interface DialogState<Id extends string> {
7
+ export interface DialogState<Id extends string> {
8
8
  id: Id;
9
9
  open: boolean;
10
10
  width: number;
package/package.json CHANGED
@@ -1,130 +1,130 @@
1
1
  {
2
- "name": "asma-core-ui",
3
- "publishConfig": {
4
- "access": "public"
2
+ "name": "asma-core-ui",
3
+ "publishConfig": {
4
+ "access": "public"
5
+ },
6
+ "version": "3.1.78",
7
+ "type": "module",
8
+ "files": [
9
+ "dist/**/*",
10
+ "dist/style.css",
11
+ "tw-configs/**/*"
12
+ ],
13
+ "keywords": [],
14
+ "author": "asma-team",
15
+ "types": "./dist/index.d.ts",
16
+ "main": "./dist/asma-core-ui.es.js",
17
+ "module": "./dist/asma-core-ui.es.js",
18
+ "exports": {
19
+ ".": {
20
+ "import": {
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/asma-core-ui.es.js"
23
+ }
5
24
  },
6
- "version": "3.1.76",
7
- "type": "module",
8
- "files": [
9
- "dist/**/*",
10
- "dist/style.css",
11
- "tw-configs/**/*"
12
- ],
13
- "keywords": [],
14
- "author": "asma-team",
15
- "types": "./dist/index.d.ts",
16
- "main": "./dist/asma-core-ui.es.js",
17
- "module": "./dist/asma-core-ui.es.js",
18
- "exports": {
19
- ".": {
20
- "import": {
21
- "types": "./dist/index.d.ts",
22
- "default": "./dist/asma-core-ui.es.js"
23
- }
24
- },
25
- "./dist/style.css": "./dist/style.css",
26
- "./tw-configs/twConfigs.json": "./tw-configs/twConfigs.json"
27
- },
28
- "scripts": {
29
- "dev": "vite",
30
- "build": "npx tsc && rm -rf ./dist && vite build",
31
- "preview": "vite preview",
32
- "lint": "eslint src/**/*.{js,jsx,ts,tsx}",
33
- "version": "echo $npm_package_version",
34
- "lint:fix": "eslint --fix src/**/*.{jsx,ts,tsx}",
35
- "prettier": "prettier --write src//**/*.{ts,tsx,scss} --config ./.prettierrc",
36
- "storybook": "storybook dev -p 6006",
37
- "storybook:no-browser": "storybook dev -p 6006 --no-open",
38
- "storybook:node18": "export NODE_OPTIONS=--openssl-legacy-provider && storybook dev -p 6006",
39
- "storybook:node18:win": "set NODE_OPTIONS=--openssl-legacy-provider && storybook dev -p 6006",
40
- "build-storybook": "export NODE_OPTIONS=--max_old_space_size=6240 && storybook build",
41
- "test-storybook": "test-storybook",
42
- "changeset:pre-beta": "changeset pre enter beta",
43
- "changeset:pre-exit": "changeset pre exit",
44
- "changeset:version": "changeset version",
45
- "changeset:publish": "changeset publish",
46
- "changeset:status": "changeset status"
47
- },
48
- "license": "UNLICENSED",
49
- "dependencies": {
50
- "@base-ui-components/react": "1.0.0-beta.4",
51
- "@emotion/react": "^11.11.1",
52
- "@emotion/styled": "^11.11.0",
53
- "@fontsource/material-icons": "^5.0.4",
54
- "@iconify/react": "^4.1.1",
55
- "@mui/material": "^5.13.7",
56
- "@tanstack/react-table": "^8.10.0",
57
- "asma-ui-icons": "^0.0.35",
58
- "clsx": "^1.2.1",
59
- "date-fns": "^2.30.0",
60
- "lodash-es": "^4.17.21",
61
- "material-ui-popup-state": "^5.0.10",
62
- "notistack": "^3.0.2",
63
- "react-day-picker": "^8.8.2",
64
- "react-quill": "^2.0.0",
65
- "sass": "^1.77.5",
66
- "vite-plugin-css-injected-by-js": "^3.5.1"
67
- },
68
- "devDependencies": {
69
- "@changesets/cli": "^2.26.2",
70
- "@faker-js/faker": "^8.0.2",
71
- "@rollup/plugin-terser": "^0.4.3",
72
- "@storybook/addon-a11y": "^7.6.9",
73
- "@storybook/addon-essentials": "^7.6.9",
74
- "@storybook/addon-interactions": "^7.6.9",
75
- "@storybook/addon-links": "^7.6.9",
76
- "@storybook/addon-mdx-gfm": "^7.6.9",
77
- "@storybook/addon-styling": "^1.3.7",
78
- "@storybook/addons": "^7.6.9",
79
- "@storybook/blocks": "^7.6.9",
80
- "@storybook/manager-api": "^7.6.9",
81
- "@storybook/preset-create-react-app": "^7.6.9",
82
- "@storybook/react": "^7.6.9",
83
- "@storybook/react-vite": "^7.6.9",
84
- "@storybook/test-runner": "^0.16.0",
85
- "@storybook/testing-library": "^0.2.2",
86
- "@storybook/theming": "^7.6.9",
87
- "@types/lodash-es": "^4.17.7",
88
- "@types/node": "^18.0.3",
89
- "@types/react": "^18.0.37",
90
- "@types/react-dom": "^18.0.11",
91
- "@typescript-eslint/eslint-plugin": "^5.59.0",
92
- "@typescript-eslint/parser": "^5.59.0",
93
- "@vitejs/plugin-react": "^4.0.0",
94
- "autoprefixer": "^10.4.14",
95
- "axe-playwright": "^1.2.3",
96
- "axios": "^1.6.8",
97
- "eslint": "^8.38.0",
98
- "eslint-plugin-react-hooks": "^4.6.0",
99
- "eslint-plugin-react-refresh": "^0.3.4",
100
- "eslint-plugin-storybook": "^0.6.15",
101
- "node": "18.17.0",
102
- "postcss": "^8.4.24",
103
- "prop-types": "^15.8.1",
104
- "react": "^18.2.0",
105
- "react-dom": "^18.2.0",
106
- "rollup-plugin-typescript2": "^0.35.0",
107
- "storybook": "^7.6.9",
108
- "storybook-addon-themes": "^6.1.0",
109
- "tailwind-merge": "^2.4.0",
110
- "tailwind-scrollbar": "^3.1.0",
111
- "tailwindcss": "^3.3.2",
112
- "typescript": "^5.0.2",
113
- "typescript-plugin-css-modules": "^5.0.1",
114
- "vite": "^4.3.9",
115
- "vite-plugin-dts": "^3.1.1",
116
- "vite-tsconfig-paths": "^4.2.0"
117
- },
118
- "peerDependencies": {
119
- "@emotion/react": "^11.*",
120
- "@emotion/styled": "^11.*",
121
- "@mui/material": "^5.*",
122
- "immer": "^9.*",
123
- "react": "^18.*",
124
- "react-dom": "^18.*"
125
- },
126
- "resolutions": {
127
- "@types/node": "18.0.3",
128
- "node": "18.17.0"
129
- }
130
- }
25
+ "./dist/style.css": "./dist/style.css",
26
+ "./tw-configs/twConfigs.json": "./tw-configs/twConfigs.json"
27
+ },
28
+ "license": "UNLICENSED",
29
+ "dependencies": {
30
+ "@base-ui-components/react": "1.0.0-beta.4",
31
+ "@emotion/react": "^11.11.1",
32
+ "@emotion/styled": "^11.11.0",
33
+ "@fontsource/material-icons": "^5.0.4",
34
+ "@iconify/react": "^4.1.1",
35
+ "@mui/material": "^5.13.7",
36
+ "@tanstack/react-table": "^8.10.0",
37
+ "asma-ui-icons": "^0.0.35",
38
+ "clsx": "^1.2.1",
39
+ "date-fns": "^2.30.0",
40
+ "lodash-es": "^4.17.21",
41
+ "material-ui-popup-state": "^5.0.10",
42
+ "notistack": "^3.0.2",
43
+ "react-day-picker": "^8.8.2",
44
+ "react-quill": "^2.0.0",
45
+ "sass": "^1.77.5",
46
+ "vite-plugin-css-injected-by-js": "^3.5.1"
47
+ },
48
+ "devDependencies": {
49
+ "@changesets/cli": "^2.26.2",
50
+ "@faker-js/faker": "^8.0.2",
51
+ "@rollup/plugin-terser": "^0.4.3",
52
+ "@storybook/addon-a11y": "^7.6.9",
53
+ "@storybook/addon-essentials": "^7.6.9",
54
+ "@storybook/addon-interactions": "^7.6.9",
55
+ "@storybook/addon-links": "^7.6.9",
56
+ "@storybook/addon-mdx-gfm": "^7.6.9",
57
+ "@storybook/addon-styling": "^1.3.7",
58
+ "@storybook/addons": "^7.6.9",
59
+ "@storybook/blocks": "^7.6.9",
60
+ "@storybook/manager-api": "^7.6.9",
61
+ "@storybook/preset-create-react-app": "^7.6.9",
62
+ "@storybook/react": "^7.6.9",
63
+ "@storybook/react-vite": "^7.6.9",
64
+ "@storybook/test-runner": "^0.16.0",
65
+ "@storybook/testing-library": "^0.2.2",
66
+ "@storybook/theming": "^7.6.9",
67
+ "@types/lodash-es": "^4.17.7",
68
+ "@types/node": "^18.0.3",
69
+ "@types/react": "^18.0.37",
70
+ "@types/react-dom": "^18.0.11",
71
+ "@typescript-eslint/eslint-plugin": "^5.59.0",
72
+ "@typescript-eslint/parser": "^5.59.0",
73
+ "@vitejs/plugin-react": "^4.0.0",
74
+ "autoprefixer": "^10.4.14",
75
+ "axe-playwright": "^1.2.3",
76
+ "axios": "^1.6.8",
77
+ "eslint": "^8.38.0",
78
+ "eslint-plugin-react-hooks": "^4.6.0",
79
+ "eslint-plugin-react-refresh": "^0.3.4",
80
+ "eslint-plugin-storybook": "^0.6.15",
81
+ "node": "18.17.0",
82
+ "postcss": "^8.4.24",
83
+ "prop-types": "^15.8.1",
84
+ "react": "^18.2.0",
85
+ "react-dom": "^18.2.0",
86
+ "rollup-plugin-typescript2": "^0.35.0",
87
+ "storybook": "^7.6.9",
88
+ "storybook-addon-themes": "^6.1.0",
89
+ "tailwind-merge": "^2.4.0",
90
+ "tailwind-scrollbar": "^3.1.0",
91
+ "tailwindcss": "^3.3.2",
92
+ "typescript": "^5.0.2",
93
+ "typescript-plugin-css-modules": "^5.0.1",
94
+ "vite": "^4.3.9",
95
+ "vite-plugin-dts": "^3.1.1",
96
+ "vite-tsconfig-paths": "^4.2.0"
97
+ },
98
+ "peerDependencies": {
99
+ "@emotion/react": "^11.*",
100
+ "@emotion/styled": "^11.*",
101
+ "@mui/material": "^5.*",
102
+ "immer": "^9.*",
103
+ "react": "^18.*",
104
+ "react-dom": "^18.*"
105
+ },
106
+ "resolutions": {
107
+ "@types/node": "18.0.3",
108
+ "node": "18.17.0"
109
+ },
110
+ "scripts": {
111
+ "dev": "vite",
112
+ "build": "npx tsc && rm -rf ./dist && vite build",
113
+ "preview": "vite preview",
114
+ "lint": "eslint src/**/*.{js,jsx,ts,tsx}",
115
+ "version": "echo $npm_package_version",
116
+ "lint:fix": "eslint --fix src/**/*.{jsx,ts,tsx}",
117
+ "prettier": "prettier --write src//**/*.{ts,tsx,scss} --config ./.prettierrc",
118
+ "storybook": "storybook dev -p 6006",
119
+ "storybook:no-browser": "storybook dev -p 6006 --no-open",
120
+ "storybook:node18": "export NODE_OPTIONS=--openssl-legacy-provider && storybook dev -p 6006",
121
+ "storybook:node18:win": "set NODE_OPTIONS=--openssl-legacy-provider && storybook dev -p 6006",
122
+ "build-storybook": "export NODE_OPTIONS=--max_old_space_size=6240 && storybook build",
123
+ "test-storybook": "test-storybook",
124
+ "changeset:pre-beta": "changeset pre enter beta",
125
+ "changeset:pre-exit": "changeset pre exit",
126
+ "changeset:version": "changeset version",
127
+ "changeset:publish": "changeset publish",
128
+ "changeset:status": "changeset status"
129
+ }
130
+ }
package/CHANGELOG.md DELETED
@@ -1,686 +0,0 @@
1
- # asma-core-ui
2
-
3
- ## 2.19.7
4
-
5
- ### Patch Changes
6
-
7
- - da5ffa8: richinput height fix
8
- - badges-themming
9
- - 583c3b7: fix/styled-input-field-variant-sdantard-styling
10
- - c12d01c: fix/fretex-badge-color
11
- - 583c3b7: feat/dataTests-buttons-inputs
12
- - 7307b1d: data tests for styled dialog and other components
13
-
14
- ## 2.19.0
15
-
16
- ### Minor Changes
17
-
18
- - 7c6b42d: Added styling for indeterminate state of a StyledCheckbox
19
-
20
- ### Patch Changes
21
-
22
- - bc984c4: fix/datePicker-clearAction
23
- - 688d82e: fix/ASMA-2834-StyledTable-actions-not-working-as-expected-published
24
- - 1ae02c6: feat: Added styled radio button
25
- - f264fc7: exporting-date-picker
26
- - 8ae828f: before data-tests
27
- - baed007: styledSelectAutocomplete
28
- - fix/styledInputField-custom-type-to-avoit-ui-crash
29
- - c694edd: feat: Time picker
30
- - fde85c1: fixed props errors in StyledInputField
31
- - 0e89b7c: fix/rowSelection-styledTable
32
- - d19aa55: fix/select-with-label-styles
33
- - 047f94e: button size medium
34
- - 3b109eb: fix/DatePicker-allowCleat-as-prop
35
- - 519b54b: fixed hiding column header pin in styled table
36
- - 1273e77: feat: Added icons
37
- - e8e77aa: 2.18.11
38
- - 6653757: updated renderSubRows function in StyledTable
39
- - b0f7660: Exporting-MenuProps
40
- - c3f4740: fix/ASMA-2834-StyledTable-actions-not-working-as-expected
41
- - eae9d9f: control the size of StyleSelect through StyledFormControl
42
- - 08192fa: fix/styledSnackbarInfo
43
- - 367ae6c: fixed styledtable header pin
44
-
45
- ## 2.18.11
46
-
47
- ### Patch Changes
48
-
49
- - 8faaa84: 2.18.10
50
-
51
- ## 2.18.10
52
-
53
- ### Patch Changes
54
-
55
- - bd83c68: added some more reactnode types
56
- - 03fce5c: 2.18.9
57
- - a00024e: add possibility to pass component besides text to inputs
58
-
59
- ## 2.18.9
60
-
61
- ### Patch Changes
62
-
63
- - a7c1d7b: 2.18.7
64
- - a73c7cd: styles for styled select
65
- - a73c7cd: styled container
66
- - 62a4ba6: added label classname
67
-
68
- ## 2.18.7
69
-
70
- ### Patch Changes
71
-
72
- - 1cc6183: Add container classname for textarea
73
- - e31066e: textSize-of-select-dropdown
74
- - af25d7c: StyledTabs
75
- - 1be5492: 2.18.4
76
-
77
- ## 2.18.4
78
-
79
- ### Patch Changes
80
-
81
- - 8922f3d: 2.18.3
82
- - 50c8c29: add classname to styled link
83
-
84
- ## 2.18.3
85
-
86
- ### Patch Changes
87
-
88
- - 947c849: small fix for autoSize column
89
- - 73abc45: update style table columns width
90
- - 73abc45: export tanstack interfaces
91
- - a89fb53: 2.18.0
92
-
93
- ## 2.18.0
94
-
95
- ### Minor Changes
96
-
97
- - 3475f35: Added StyledLink component
98
- - 62a5e65: Added EmptyPageIcon
99
- - 059bdf9: removing mui style config provider
100
-
101
- ### Patch Changes
102
-
103
- - 991ee7f: styled text area - optional props, styledInput interface fix
104
- - e7bc214: fixed bg color of styled accordion to transparent
105
- - 61e50f6: reflink for select
106
- - da2c8cd: optimized snackbar
107
- - eebb6f2: updated storybook 7.4.6
108
- - e7bc214: tokens inside css
109
- - 043b349: return exporting of main css
110
- - 2fc0c1b: switch disabled colors
111
- - f191a3c: fixed styled switch height
112
- - a033535: Styled Drawer
113
- - f191a3c: snackbar on DOMROOT level
114
- - 8518620: Fixed some bugs related to StyledInput ans StyledTextarea
115
- - a204108: styles for select
116
- - bbf3a24: 2.16.13
117
- - 939b7ed: fixed StyledInput background
118
- - c9017e7: Fixed counter paddings in StyledTextarea
119
- - 5f090ab: styling switch element
120
-
121
- ## 2.16.13
122
-
123
- ### Patch Changes
124
-
125
- - 4a6f577: styled input
126
- - 29cce0e: 2.16.10
127
- - 076e5cc: Styled Table css fixes
128
-
129
- ## 2.16.10
130
-
131
- ### Patch Changes
132
-
133
- - 15e4747: 2.16.9
134
- - 042bb5f: Fix Table actions
135
-
136
- ## 2.16.9
137
-
138
- ### Patch Changes
139
-
140
- - 91d54a7: Fix id type TData
141
- - d93b53d: 2.16.8
142
-
143
- ## 2.16.8
144
-
145
- ### Patch Changes
146
-
147
- - c5809e2: Fix Styled Table alignment
148
- - c0ef21e: 2.16.6
149
-
150
- ## 2.16.7
151
-
152
- ### Patch Changes
153
-
154
- - 1d5a134: Add more props for table
155
- - 74dcb75: updated styled button, added new variant - grey text
156
- - 969eb73: 2.16.5
157
-
158
- ## 2.16.5
159
-
160
- ### Patch Changes
161
-
162
- - 98a4a41: 2.16.3
163
- - a3978ba: export for styled textarea
164
- - a3978ba: Exported StyledTextarea
165
- - e5283db: Exported rich-input globally
166
-
167
- ## 2.16.3
168
-
169
- ### Patch Changes
170
-
171
- - 5ce89b5: Fix Styled Table types & styles
172
- - 020b294: 2.16.2
173
-
174
- ## 2.16.2
175
-
176
- ### Patch Changes
177
-
178
- - 87bd4cc: Styled Table actions fix onclick
179
- - 4a85a8f: 2.16.1
180
-
181
- ## 2.16.1
182
-
183
- ### Patch Changes
184
-
185
- - 7586b47: Styled Table fixes
186
-
187
- ## 2.16.0
188
-
189
- ### Minor Changes
190
-
191
- - fedc045: Added StyledTextarea
192
- - 5226aec: New table component
193
-
194
- ### Patch Changes
195
-
196
- - 5f3fb1d: 2.14.4
197
- - 8877a50: new custom styled button
198
- - fedc045: added styled textarea
199
- - d554885: removed styled button paddings
200
- - 6defcc1: Removed bg color on RichInput when disabled
201
- - 55343ea: Added Styled Module Title
202
-
203
- ## 2.14.4
204
-
205
- ### Patch Changes
206
-
207
- - 675d71a: Fixed chevron arrow pointing
208
- - e1c943f: 2.14.3
209
-
210
- ## 2.14.3
211
-
212
- ### Patch Changes
213
-
214
- - 54be30a: 2.14.2
215
- - 1b8c038: Change default width multi line input field
216
-
217
- ## 2.14.2
218
-
219
- ### Patch Changes
220
-
221
- - a5011c6: Fix overriding classes
222
- - fe53fac: 2.14.1
223
-
224
- ## 2.14.1
225
-
226
- ### Patch Changes
227
-
228
- - e3804d6: 2.14.0
229
- - 5f03390: Added multi line support for Input Field
230
-
231
- ## 2.14.0
232
-
233
- ### Minor Changes
234
-
235
- - 4a3d94f: Redesign buttons
236
-
237
- ### Patch Changes
238
-
239
- - 44e0a5b: 2.13.4
240
-
241
- ## 2.13.4
242
-
243
- ### Patch Changes
244
-
245
- - 5a1b778: Fixed some datagrid styles
246
-
247
- ## 2.13.3
248
-
249
- ### Patch Changes
250
-
251
- - 3012a02: fix snackbar props
252
-
253
- ## 2.13.2
254
-
255
- ### Patch Changes
256
-
257
- - ecd4508: Add classname for internal alert in snackbar
258
- - b8f1a0c: 2.13.1
259
-
260
- ## 2.13.1
261
-
262
- ### Patch Changes
263
-
264
- - 5349fe5: 2.13.1
265
- - 67c3f6e: fix notistack types
266
-
267
- ## 2.13.0
268
-
269
- ### Minor Changes
270
-
271
- - 2d21b31: Added custom snackbars for provider
272
-
273
- ### Patch Changes
274
-
275
- - 2d5871c: 2.12.1
276
-
277
- ## 2.12.1
278
-
279
- ### Patch Changes
280
-
281
- - 84f05b8: 2.12.0
282
- - b732f77: Fix some font size, padding, minor things
283
-
284
- ## 2.12.0
285
-
286
- ### Minor Changes
287
-
288
- - 8f18554: Added TopicIcon
289
-
290
- ## 2.11.0
291
-
292
- ### Minor Changes
293
-
294
- - 286154b: Added StyledInputField
295
-
296
- ### Patch Changes
297
-
298
- - 2962ebf: 2.10.0
299
-
300
- ## 2.10.0
301
-
302
- ### Minor Changes
303
-
304
- - f4be3c3: added inbox-outbox and inbox-outbox-outline icons
305
-
306
- ## 2.10.0-beta.0
307
-
308
- ### Minor Changes
309
-
310
- - 286154b: Added StyledInputField
311
-
312
- ### Patch Changes
313
-
314
- - 61efd74: 2.9.3
315
-
316
- ## 2.9.3
317
-
318
- ### Patch Changes
319
-
320
- - cffcc80: comment portal elements
321
- - 65487b3: 2.9.2
322
-
323
- ## 2.9.2
324
-
325
- ### Patch Changes
326
-
327
- - c680289: 2.9.1
328
- - 551d2e1: added portal elements fix
329
-
330
- ## 2.9.1
331
-
332
- ### Patch Changes
333
-
334
- - e189975: Export grid date comparator
335
- - 9f23080: 2.9.0
336
-
337
- ## 2.9.0
338
-
339
- ### Minor Changes
340
-
341
- - 5d4a40e: Added StyledMenu
342
-
343
- ### Patch Changes
344
-
345
- - f525dd9: 2.8.1
346
-
347
- ## 2.8.1
348
-
349
- ### Patch Changes
350
-
351
- - a88d00d: 2.8.0
352
- - 2b40bf5: Fixed StyledSelect arrow unclickable
353
-
354
- ## 2.8.0
355
-
356
- ### Minor Changes
357
-
358
- - 1caf76a: StyledAlert according to figma design
359
-
360
- ### Patch Changes
361
-
362
- - 14b765f: bump version
363
- - 9708fb1: Fixed some StyledAlert conflicts
364
-
365
- ## 2.7.4
366
-
367
- ### Patch Changes
368
-
369
- - 4239ef5: fixed ref in styled select
370
- - 8b77eaf: reduce bundle size
371
- - 622557f: added styled widget title
372
-
373
- ## 2.7.0
374
-
375
- ### Minor Changes
376
-
377
- - 0423ecc: Remove mui date pickers
378
- - 6753e14: stabilized node version to 18.17.0 and types/node to 18.0.3
379
-
380
- ### Patch Changes
381
-
382
- - dca730f: added Roboto font to tw-configs
383
- - 309fc71: Export StyledEngineProvider, Accordion, Typography
384
- - dec3836: 2.5.4
385
- - a5490a2: 2.6.5
386
- - 342519d: 2.5.5
387
-
388
- ## 2.5.3
389
-
390
- ### Patch Changes
391
-
392
- - 1b0c0cb: fixed slider styles
393
-
394
- ## 2.5.2
395
-
396
- ### Patch Changes
397
-
398
- - 820b7a8: fixed core-ui dependecies
399
-
400
- ## 2.5.1
401
-
402
- ### Patch Changes
403
-
404
- - 453a861: changed more colors to match figma
405
-
406
- ## 2.5.0
407
-
408
- ### Minor Changes
409
-
410
- - 4defa8e: Added StyledDateCalendar
411
- - 4447c64: Added StyledSlider
412
- - 4defa8e: Added StyledCalendarPicker, StyledTimePicker & mobile versions for all date components
413
-
414
- ### Patch Changes
415
-
416
- - cbdb995: updated docker file nodejs19 pnpm
417
- - ad65511: Refactor StyledSlider classes
418
- - 59780a8: fix onclick event for icons
419
- - 4fe79ae: Fixed colors for green & blue theme
420
-
421
- ## 2.2.0
422
-
423
- ### Minor Changes
424
-
425
- - 537750f: added new props for data-grid
426
-
427
- ## 2.1.0
428
-
429
- ### Minor Changes
430
-
431
- - 4aba823: Extended interface data grid
432
-
433
- ### Patch Changes
434
-
435
- - 4aba823: fixed order props for data-grid to be possible override them
436
-
437
- ## 2.0.6
438
-
439
- ### Patch Changes
440
-
441
- - 6641ff2: fixed order props for data-grid to be possible override them
442
-
443
- ## 2.0.5
444
-
445
- ### Patch Changes
446
-
447
- - a9b7b6a: added styled switch
448
-
449
- ## 2.0.4
450
-
451
- ### Patch Changes
452
-
453
- - 4bbdf03: restored styled switch
454
-
455
- ## 2.0.3
456
-
457
- ### Patch Changes
458
-
459
- - a95643e: fixed fretex tokens
460
-
461
- ## 2.0.2
462
-
463
- ### Patch Changes
464
-
465
- - a980095: export styled textfield
466
-
467
- ## 2.0.1
468
-
469
- ### Patch Changes
470
-
471
- - 2d2fe53: restored StyledTextField, added cspell.json
472
-
473
- ## 2.0.0
474
-
475
- ### Major Changes
476
-
477
- - 42ae731: storybook7, pnpm, tw-configs
478
-
479
- ## 1.9.4
480
-
481
- ### Patch Changes
482
-
483
- - 5b1f300: tailwind configs from asma-antrd to asma-core-ui
484
-
485
- ## 1.9.3
486
-
487
- ### Patch Changes
488
-
489
- - bfb9d4f: Fix some class conflicts for StyledDialog
490
-
491
- ## 1.9.2
492
-
493
- ### Patch Changes
494
-
495
- - f985a8a: StyledFormGroup
496
-
497
- ## 1.9.1
498
-
499
- ### Patch Changes
500
-
501
- - d6646f3: changed the border for textField
502
-
503
- ## 1.9.0
504
-
505
- ### Minor Changes
506
-
507
- - ee41eab: added icons from asma-antrd
508
-
509
- ## 1.8.7
510
-
511
- ### Patch Changes
512
-
513
- - e1da358: add option to disable row actions for data grid
514
-
515
- ## 1.8.5
516
-
517
- ### Patch Changes
518
-
519
- - 59140d5: StyledTooltip - added arrow and top placement by default
520
-
521
- ## 1.8.4
522
-
523
- ### Patch Changes
524
-
525
- - 2212b07: Fix StyledCheckbox input size & add disabled style
526
-
527
- ## 1.8.3
528
-
529
- ### Patch Changes
530
-
531
- - 930e646: Fixed asma-core-grid input checkbox height and width, Fixed actions columns width
532
-
533
- ## 1.8.2
534
-
535
- ### Patch Changes
536
-
537
- - a4dcdf0: Changed StyledCheckbox classes to scss
538
-
539
- ## 1.8.1
540
-
541
- ### Patch Changes
542
-
543
- - 306adf9: Fix StyledCheckbox export
544
-
545
- ## 1.8.0
546
-
547
- ### Minor Changes
548
-
549
- - a0503fa: Added StyledCheckbox
550
-
551
- ## 1.7.2
552
-
553
- ### Patch Changes
554
-
555
- - 0c21b38: Updated index ts
556
-
557
- ## 1.7.1
558
-
559
- ### Patch Changes
560
-
561
- - 61a9d22: Extened stanckbar
562
-
563
- ## 1.7.0
564
-
565
- ### Minor Changes
566
-
567
- - de81629: asma-grid UI fixed, added custom columns menu
568
-
569
- ## 1.6.6
570
-
571
- ### Patch Changes
572
-
573
- - 2bc692d: On StyledDialog added style to be ovveridable
574
-
575
- ## 1.6.5
576
-
577
- ### Patch Changes
578
-
579
- - bcc9515: restyled datagrid
580
-
581
- ## 1.6.4
582
-
583
- ### Patch Changes
584
-
585
- - 4b6dfc8: Fixed fullscreen mode for styled modal window
586
-
587
- ## 1.6.3
588
-
589
- ### Patch Changes
590
-
591
- - a91eb4c: remove top border datagrid, export datagrid components/types
592
-
593
- ## 1.6.2
594
-
595
- ### Patch Changes
596
-
597
- - f53ff78: add export for data grid
598
-
599
- ## 1.6.1
600
-
601
- ### Patch Changes
602
-
603
- - 0cb2ef9: fixed wrongly merged branches
604
-
605
- ### Patch Changes
606
-
607
- - 37e14dc: DataGrid: Row background, custom checkbox classes
608
-
609
- ## 1.5.9
610
-
611
- ### Patch Changes
612
-
613
- - 58f8d13: fixed height of styledDialog closeIcon
614
-
615
- ## 1.5.7
616
-
617
- ### Patch Changes
618
-
619
- - 601522c: added showCloseIcon props to StyledDialog
620
-
621
- ## 1.5.3
622
-
623
- ### Patch Changes
624
-
625
- - f6958e4: bump version so it's not 1 commit behind
626
-
627
- ## 1.5.2
628
-
629
- ### Patch Changes
630
-
631
- - e1fc012: remove max width for styled dialog
632
-
633
- ## 1.5.1
634
-
635
- ### Patch Changes
636
-
637
- - 4371a5b: add form control props for styled text field
638
-
639
- ## 1.5.0
640
-
641
- ### Minor Changes
642
-
643
- - 9a3ce35: Updated, and created, typography classes. Created Typography Storybook story.
644
-
645
- ## 1.4.0
646
-
647
- ### Minor Changes
648
-
649
- - bb12a0a: StyledTooltip with stories.
650
-
651
- ## 1.3.2
652
-
653
- ### Patch Changes
654
-
655
- - ee5d00f: Pipelines: Create second step with build and publish.
656
-
657
- ## 1.3.1
658
-
659
- ### Patch Changes
660
-
661
- - e673ff4: Fixed index files.
662
-
663
- ## 1.3.0
664
-
665
- ### Minor Changes
666
-
667
- - 22a817a: StyledAlert, StyledAlertTitle
668
- - 22a817a: StyledSnackbar
669
- - e117b3c: StyledBadge
670
-
671
- ### Patch Changes
672
-
673
- - 22a817a: StyledButton: Default variant - contained.
674
- - 22a817a: Theme: Reverted default colors for error, success and warning because of faulty success colors.
675
-
676
- ## 1.2.0
677
-
678
- ### Minor Changes
679
-
680
- - 75d39d0: Created composable components for StyledDialog; StyledDialogTitle, StyledDialogContent and StyledDialogActions.
681
- - 718ad37: StyledFormControlLabel
682
- - 718ad37: StyledFormHelperText
683
- - 718ad37: StyledInput
684
- - 718ad37: StyledInputLabel
685
- - 718ad37: StyledSwitch
686
- - 718ad37: StyledTextField