@shrfe/assets 1.0.70-staging.1 → 1.0.70-staging.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/css/ds/component.css +21 -21
  2. package/css/ds/semantics/color/color.css +27 -10
  3. package/css/ds/semantics/sizing/sizing.css +105 -0
  4. package/css/ds/semantics/typography/typography.css +5 -0
  5. package/css/sfe-styles.css +2 -2
  6. package/css/shrfe-styles.css +3 -3
  7. package/js/shrfe-core-umd.js +2108 -1066
  8. package/package.json +1 -1
  9. package/wc-lib/p-174301fb.entry.js +1 -0
  10. package/wc-lib/p-2c4876fa.entry.js +1 -0
  11. package/wc-lib/p-2e791a55.entry.js +1 -0
  12. package/wc-lib/p-31519e7f.entry.js +1 -0
  13. package/wc-lib/p-3e4a8ef5.entry.js +6 -0
  14. package/wc-lib/{p-cc5249f0.js → p-3e6d1904.js} +1 -1
  15. package/wc-lib/p-3eec282c.entry.js +1 -0
  16. package/wc-lib/p-4173382e.entry.js +1 -0
  17. package/wc-lib/p-675661f0.entry.js +1 -0
  18. package/wc-lib/p-6c03fed1.entry.js +1 -0
  19. package/wc-lib/p-6c47c21d.entry.js +1 -0
  20. package/wc-lib/p-7313607b.entry.js +1 -0
  21. package/wc-lib/p-7724ee26.entry.js +1 -0
  22. package/wc-lib/p-8b4ed5bd.entry.js +1 -0
  23. package/wc-lib/p-9012cefb.entry.js +1 -0
  24. package/wc-lib/p-BoRgucbk.js +3 -0
  25. package/wc-lib/p-af56e6b9.entry.js +1 -0
  26. package/wc-lib/p-be8b915e.entry.js +1 -0
  27. package/wc-lib/p-c6a60e55.entry.js +1 -0
  28. package/wc-lib/p-ead33561.entry.js +1 -0
  29. package/wc-lib/p-f9397a52.entry.js +1 -0
  30. package/wc-lib/wc-lib.esm.js +1 -1
  31. package/wc-lib/p-0b72ab12.entry.js +0 -1
  32. package/wc-lib/p-0cc19352.entry.js +0 -1
  33. package/wc-lib/p-10c23c12.entry.js +0 -1
  34. package/wc-lib/p-11d9c6ab.entry.js +0 -1
  35. package/wc-lib/p-2eac5d59.entry.js +0 -1
  36. package/wc-lib/p-372a4b08.entry.js +0 -1
  37. package/wc-lib/p-3b9cba49.entry.js +0 -1
  38. package/wc-lib/p-434962b3.entry.js +0 -1
  39. package/wc-lib/p-4b90088d.entry.js +0 -1
  40. package/wc-lib/p-5a39bffb.entry.js +0 -1
  41. package/wc-lib/p-5ec334e6.entry.js +0 -6
  42. package/wc-lib/p-6e7ee60b.entry.js +0 -1
  43. package/wc-lib/p-7799bd4f.entry.js +0 -1
  44. package/wc-lib/p-9af28040.entry.js +0 -1
  45. package/wc-lib/p-9c20ecd6.entry.js +0 -1
  46. package/wc-lib/p-9oFec6fH.js +0 -3
  47. package/wc-lib/p-abd9b780.entry.js +0 -1
  48. package/wc-lib/p-c117222e.entry.js +0 -1
  49. package/wc-lib/p-dcca5e23.entry.js +0 -1
  50. package/wc-lib/p-e96984e8.entry.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shrfe/assets",
3
- "version": "1.0.70-staging.1",
3
+ "version": "1.0.70-staging.2",
4
4
  "description": "The assets used in SeamlessHR products",
5
5
  "author": "SeamlessHR LTD <oludayo@seamlesshr.com>",
6
6
  "license": "ISC",
@@ -0,0 +1 @@
1
+ import{r as e,d as s,h as r,H as l}from"./p-BoRgucbk.js";import{s as a}from"./p-DFCAnQFT.js";const i=class{constructor(r){new.target===i&&e(this,r),this.uploadStart=s(this,"uploadStart",7),this.uploadRetry=s(this,"uploadRetry",7),this.uploadError=s(this,"uploadError",7),this.fileChange=s(this,"fileChange",7)}disabled=!1;extended=!0;thumbnail="file";inverted=!1;hasError=!1;progress=0;multiple=!1;type="draggable";maxFileSize=.5;accepts=[];testId="";uploadStart;uploadRetry;uploadError;fileChange;fileInputRef;files=[];selectedFileIndex=null;get fileDetails(){return this.files.map((e=>({name:e.name,size:(e.size/1024/1024).toFixed(2)})))}get formattedAcceptedFileTypes(){if(!Array.isArray(this.accepts)||0===this.accepts.length)return"";const e=this.accepts.map((e=>e.replace(".","").toUpperCase())),s=e.pop();return 1===this.accepts.length?`${s}.`:`${e.join(", ")} or ${s}.`}get maxFileSizeInfo(){return this.maxFileSize?`Max size of ${this.maxFileSize} MB`:""}resetInputValueToNull=e=>{e.target.value=""};replaceMultipleFile=e=>{const s=e.target,r=s.files?s.files[0]:null;r&&null!==this.selectedFileIndex&&(this.files=this.files.map(((e,s)=>this.selectedFileIndex==s?r:e)),this.selectedFileIndex=null),this.resetInputValueToNull(e),this.checkMaxFileSize()};onChange=e=>{this.uploadStart.emit();const s=this.fileInputRef?.files,r=s?Array.from(s):[];this.multiple&&null!==this.selectedFileIndex&&r.length>0&&this.replaceMultipleFile(e),!this.multiple&&r.length>1&&(this.uploadError.emit("Only one file can be uploaded when multiple is disabled."),a("error","Error","Only one file can be uploaded when multiple is disabled.")),this.files=this.multiple?[...this.files,...r]:r,this.checkMaxFileSize()};triggerFileInput=e=>{e.preventDefault(),this.fileInputRef.click()};dragOver=e=>{e.preventDefault();const s=e.currentTarget;s.classList.contains("sfe-light-blue")||this.disabled||s.classList.add("sfe-light-blue")};dragLeave=e=>{e.preventDefault(),e.currentTarget.classList.remove("sfe-light-blue")};drop=e=>{e.preventDefault(),!this.disabled&&e.dataTransfer&&(this.fileInputRef.files=e.dataTransfer.files,this.onChange(e),e.currentTarget.classList.remove("sfe-light-blue"))};checkMaxFileSize=()=>{if(this.maxFileSize>0){const e=new Set,s=[];this.files.forEach((r=>{r.size/1024/1024>this.maxFileSize?s.push(r):e.add(r)})),s.length>0&&(this.uploadError.emit(`Some files exceed the size limit of ${this.maxFileSize} MB.`),a("error","Error",`The following files exceed the size limit of ${this.maxFileSize} MB: ${s.map((e=>e.name)).join(", ")}`)),this.files=Array.from(e),this.fileChange.emit(this.files)}};removeFile=e=>{const s=e.detail;s>-1&&s<this.files.length&&(this.files=this.files.filter(((e,r)=>r!==s)),this.fileChange.emit(this.files))};handleFileReplace=e=>{const s=e.target;this.selectedFileIndex=e.detail,s.value="",this.triggerFileInput(e)};render(){return r(l,{key:"24d4ab5832d0a046610763be664f4b64cd28cbce"},r("div",{key:"308f054f0dba4c0c1a41b8a178b15127b68f66db",class:"d-block","data-testid":`swc-file-uploader-${this.testId}`},r("input",{key:"514123946a5996e5073bb52007b98932fabc5693",ref:e=>this.fileInputRef=e,type:"file",multiple:this.multiple,disabled:this.disabled,accept:this.accepts.join(","),style:{display:"none"},onClick:this.resetInputValueToNull,onChange:this.onChange}),(!!this.multiple||0===this.fileDetails.length)&&r("div",{key:"76c12b5d3e2c98e0ab24a9d72168d87767d98510"},"basic"===this.type&&r("button",{key:"8c96ba6a0068771a00a1786f85ca9c76efb6349f","aria-label":"choose file",disabled:this.disabled,class:{"basic-uploader":!0,"has-error":this.hasError},onClick:this.triggerFileInput},r("span",{key:"65195dc38a5f3d985cb5970798605e0a4e0c0703",class:"chooser d-flex align-items-center"},"Choose file...")),"basic"!==this.type&&r("button",{key:"1ca12416d714fb2b2df7b3efd0361c1584fa8add",class:{"drag-area":!0,disabled:this.disabled,"not-extended":!this.extended,"has-error":this.hasError},disabled:this.disabled,onDragOver:this.dragOver,onDragLeave:this.dragLeave,onDrop:this.drop,onClick:this.triggerFileInput},r("div",{key:"22474fef95e90c13953abeffb31fcb15c1ee1a25"},r("div",{key:"2752598014bead5f620ead025e69c56147fa5411",class:"drag-label"},"Drag & Drop or ",r("span",{key:"e382460f3730be82dea2dbd5729d89dd1868c66b",class:"choose-file"},"Choose file")," to upload"),this.extended&&r("small",{key:"8cc16c611e8c15dee3cb029e0054819ca78addaf",class:"formats"},this.formattedAcceptedFileTypes," ",this.maxFileSizeInfo)))),!this.multiple&&this.fileDetails.length>0&&r("swc-single-file",{key:"4eaaf838e74f3ddcbc27f992ac8e3cb638702d51",inverted:this.inverted,hasError:this.hasError,fileInfo:this.files,extended:this.extended,thumbnail:this.thumbnail,progress:this.progress,onUpdateRemove:this.removeFile,onUpdateReplace:this.triggerFileInput,onUploadRetry:()=>this.uploadRetry.emit()}),this.multiple&&this.fileDetails.length>0&&r("swc-multiple-file",{key:"da223f93e19c5261df218c856135f7b0e6184f17",inverted:this.inverted,hasError:this.hasError,fileInfo:this.files,progress:this.progress,onUpdateRemove:this.removeFile,onUpdateReplace:this.handleFileReplace,onUploadRetry:()=>this.uploadRetry.emit()})))}};i.style=".sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader{border-radius:var(--sfe-sizing-radius-default, 8px);border:1px dashed var(--sfe-color-border-neutral-subtle, #dee3e7);background-color:var(--sfe-color-fill-background, #fafbff);color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95));font-family:var(--sfe-typography-font-serif-font, Sora);font-style:normal;font-weight:400;display:block;width:100%;height:122px;transition:border-color 0.3s ease}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader:hover{border-color:var(--sfe-btn-color-border-solid-brand-hover, #206edd)}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-btn-color-border-solid-brand-hover, #206edd);outline-offset:1px}.sc-swc-file-uploader-h .drag-area.disabled.sc-swc-file-uploader{opacity:0.5;border:1px dashed var(--sfe-color-border-neutral-subtle, #dee3e7)}.sc-swc-file-uploader-h .drag-area.has-error.sc-swc-file-uploader{border-radius:var(--sfe-sizing-radius-default, 8px);border:1px dashed var(--sfe-color-border-critical-solid, #a22827) !important;background:var(--sfe-color-fill-background, #fafbff)}.sc-swc-file-uploader-h .drag-area.has-error.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-color-non-semantic-content-blue-subtle, #1e50c0);outline-offset:1px}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader div.drag-label.sc-swc-file-uploader{font-size:var(--sfe-typography-font-size-label-default, 0.875rem);line-height:16px;margin-top:16px}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader div.drag-label.sc-swc-file-uploader span.choose-file.sc-swc-file-uploader{color:var(--sfe-color-text-default-brand, #004ca6)}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader small.formats.sc-swc-file-uploader{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-size:var(--sfe-typography-font-size-label-small, 0.75rem);line-height:14px}.sc-swc-file-uploader-h .drag-area.not-extended.sc-swc-file-uploader{display:flex;align-items:center;justify-content:center;padding:8px 16px;height:36px}.sc-swc-file-uploader-h .drag-area.not-extended.sc-swc-file-uploader div.drag-label.sc-swc-file-uploader{margin-top:0;margin-left:8px;white-space:nowrap}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader{width:fit-content;height:42px;border-radius:var(--sfe-sizing-radius-default, 8px);border:1px solid var(--sfe-color-border-neutral-subtle, #dee3e7);background:var(--sfe-color-fill-surface, #fff);box-shadow:0 1px 2px 0 rgba(27, 36, 44, 0.12);padding:8px var(--sfe-sizing-gap-large, 16px);transition:border-color 0.5s ease}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-btn-color-border-solid-brand-hover, #206edd);outline-offset:1px}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader:hover{border-color:var(--sfe-btn-color-border-solid-brand-hover, #206edd)}.sc-swc-file-uploader-h .basic-uploader.has-error.sc-swc-file-uploader{border:1px solid var(--sfe-color-border-critical-solid, #a22827)}.sc-swc-file-uploader-h .basic-uploader.has-error.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-color-non-semantic-content-blue-subtle, #1e50c0);outline-offset:1px}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader .chooser.sc-swc-file-uploader{font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-default, 0.875rem);font-style:normal;font-weight:450;line-height:24px;letter-spacing:0.28px;color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8))}.sc-swc-file-uploader-h .sfe-light-blue.sc-swc-file-uploader{border:2px solid var(--sfe-color-border-brand-solid, #0064db);background:var(--sfe-color-fill-neutral-lightest, #f5f7f9)}.sc-swc-file-uploader-h .d-block.sc-swc-file-uploader{display:block}.sc-swc-file-uploader-h .d-flex.sc-swc-file-uploader{display:flex}.sc-swc-file-uploader-h .align-items-center.sc-swc-file-uploader{align-items:center}.sc-swc-file-uploader-h .justify-content-end.sc-swc-file-uploader{justify-content:flex-end}.sc-swc-file-uploader-h .justify-content-between.sc-swc-file-uploader{justify-content:space-between}";export{i as swc_file_uploader}
@@ -0,0 +1 @@
1
+ import{r as c,d as e,e as o,h as s,H as r}from"./p-BoRgucbk.js";import{u as t}from"./p-DAupwlOU.js";const a=class{constructor(o){new.target===a&&c(this,o),this.checkboxChange=e(this,"checkboxChange",7)}value;checked=!1;error=!1;disabled=!1;falseValue;label;isIndeterminate=!1;testId="";checkboxChange;get checkboxHostElement(){return o(this)}checkboxId=`${t().generate("_checkbox_")}`;handleChange=c=>{const e=c.target.checked;this.checked=e,this.checkboxChange.emit(e?"boolean"==typeof this.value?{value:!0,checked:e}:{value:this.value,checked:e}:"boolean"==typeof this.value?{value:this.falseValue??!1,checked:!1}:{value:this.value,checked:!1})};render(){const c=this.checkboxHostElement.getAttribute("id");return s(r,{key:"3355bfad4c17976ccb2d8372de0558a292326386"},s("div",{key:"ceac2a72530ce2172d2c81c94028112cb4424038",class:"sfe-checkbox-container"},s("input",{key:"d21100116e83839d74a6716da9821cf27dff1924",type:"checkbox",id:c||this.checkboxId,value:this.value,checked:this.checked,"data-testid":`swc-checkbox-${this.testId}`,disabled:this.disabled,class:{"sfe-checkbox":!0,"sfe-checkbox--error":this.error,checked:this.checked},indeterminate:this.isIndeterminate,onChange:this.handleChange}),this.label&&s("swc-label",{key:"35fcbce12888e48d379204dcd82dc87b11fb6d14",for:c||this.checkboxId,disabled:this.disabled,size:"md",class:"sfe-checkbox-label","data-for":this.checkboxId||c},this.label)))}};a.style='.sc-swc-checkbox-h .sfe-checkbox-container.sc-swc-checkbox{display:inline-flex;align-items:center}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox{width:16px;height:16px;position:relative;border:2px solid var(--sfe-color-interaction-neutral-faded-subtle);border-radius:var(--sfe-sizing-radius-small);background-color:#fff;cursor:pointer;line-height:0;margin:0 0.2em 0 0;outline:0;padding:0;vertical-align:text-top;appearance:none;transition:border-color 0.3s ease, background-color 0.3s ease}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:hover{opacity:1;border-color:var(--sfe-color-interaction-neutral-faded-strong)}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:checked{border:none;background-color:var(--sfe-color-interaction-brand-solid-weak);opacity:1}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:focus-visible{outline:2px solid #9747ff;outline-offset:1px}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:disabled{border-color:var(--sfe-color-interaction-disabled-strong);opacity:0.5;cursor:not-allowed}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:indeterminate{background-color:var(--sfe-color-interaction-brand-solid-weak);border-color:var(--sfe-color-interaction-brand-solid-weak)}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:indeterminate::before{content:"";position:absolute;right:50%;top:50%;width:10px;height:2px;background-color:#fff;margin:0 -10px 0 -1px;transform:translate(-50%, -50%)}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:checked:hover{border:none;background-color:var(--sfe-color-interaction-brand-solid-subtle);opacity:1}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:checked:disabled{border:none;background-color:var(--sfe-color-interaction-disabled-strong);opacity:0.5}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:indeterminate:disabled{background-color:var(--sfe-color-interaction-disabled-strong);border-color:var(--sfe-color-interaction-disabled-strong);opacity:1}.sc-swc-checkbox-h .sfe-checkbox.checked.sc-swc-checkbox::before{content:"";position:absolute;right:50%;top:50%;width:4px;height:10px;border:solid #fff;border-width:0 2px 2px 0;margin:-1px 0 0 -1px;transform:rotate(45deg) translate(-50%, -50%);z-index:2}.sc-swc-checkbox-h .sfe-checkbox--error.sc-swc-checkbox{border-color:var(--sfe-color-interaction-critical-solid-weak)}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:checked.sfe-checkbox--error{border:none;background-color:var(--sfe-color-interaction-brand-solid-weak);opacity:1}.sc-swc-checkbox-h .sfe-checkbox-label.sc-swc-checkbox{margin-top:0;margin-bottom:0;margin-left:8px}';export{a as swc_checkbox}
@@ -0,0 +1 @@
1
+ import{r as a,d as e,h as t}from"./p-BoRgucbk.js";const i=class{constructor(t){new.target===i&&a(this,t),this.searchInput=e(this,"searchInput",7),this.toggleSearchInput=e(this,"toggleSearchInput",7),this.showNotification=e(this,"showNotification",7)}maxWidth="100%";roleWrapperWidth=152;hasNotifications=!0;hasReadNotifications=!1;hasUserRoleDropdown=!0;hasSearch=!0;testId="";areLinksVisible=!0;isSearchVisible=!1;searchQuery="";searchInput;toggleSearchInput;showNotification;get roleMenuStyleObj(){return{minWidth:"152px",width:`${this.roleWrapperWidth}px`}}handleInputEventChange(a){const e=a.detail.value;this.searchQuery=e,this.searchInput.emit(e)}toggleSearch=async()=>{this.areLinksVisible?(this.areLinksVisible=!1,setTimeout((()=>{this.isSearchVisible=!0}),400)):(this.isSearchVisible=!1,setTimeout((()=>{this.areLinksVisible=!0}),400))};handleInputChange=a=>{this.searchQuery=a,this.searchInput.emit(a)};handleStopPropagation=a=>{a.stopPropagation()};handleShowNotification=()=>{this.showNotification.emit(!0)};searchVisibleChangeHandler(a){this.toggleSearchInput.emit(a)}render(){return t("header",{key:"a88ad014d303c8a739dc89ec2fbd535cb088418d",class:"topnav","data-testid":`swc-top-nav-${this.testId}`,style:{"--max-width":this.maxWidth}},t("div",{key:"c7342203c491b25c6b152a7b2733cf2aafa2bafc",class:"topnav__content"},t("div",{key:"b1937836282fbff9093079da0d9e409aa643aac6",class:"topnav__left"},t("div",{key:"9a8caeb97a198045e8134ca12ee94be2ca0d7c29",class:"topnav__brand"},t("slot",{key:"fe6f3f77f12cfd1711a2586771d9e2b6d72537ed",name:"companyLogo"},"Logo")),t("div",{key:"e3a44341d609c7652036fb94000114f4ca606650",class:{topnav__links:!0,"fade-enter":this.areLinksVisible,"fade-leave-to":!this.areLinksVisible}},t("slot",{key:"82518710ac09146fa904f564c0c90b2ce84440e2",name:"navLinks"}))),t("div",{key:"2426805082a888b37f9440cef6545011101e1c46",class:{"topnav__search-container":!0,"slide-fade-enter-from":this.isSearchVisible,"slide-fade-leave-to":!this.isSearchVisible},onClick:this.handleStopPropagation},t("swc-input",{key:"1a6010fba249a7174e57b153e0f663d16d1dfed7",value:this.searchQuery,type:"search",placeholder:"Search hint",variant:"faded",containerClass:"w-40 search-transition","arial-expanded":!0,"arial-label":!0,handleInputChange:this.handleInputChange},t("span",{key:"80a586761e2d56b748cfda0cd9e66b47750b4910",slot:"leftAddon"},t("svg",{key:"a8a96895d4299ad94a68bc1943ed97100c592883",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},t("path",{key:"ae69215c7c140c767884b068d2f1bfc54856421d",d:"M8.19009 14.0467C4.68621 14.0467 1.8335 11.194 1.8335 7.69009C1.8335 4.18621 4.68621 1.3335 8.19009 1.3335C11.694 1.3335 14.5467 4.18621 14.5467 7.69009C14.5467 11.194 11.694 14.0467 8.19009 14.0467ZM8.19009 2.26373C5.19474 2.26373 2.76373 4.70094 2.76373 7.69009C2.76373 10.6792 5.19474 13.1164 8.19009 13.1164C11.1854 13.1164 13.6164 10.6792 13.6164 7.69009C13.6164 4.70094 11.1854 2.26373 8.19009 2.26373Z",fill:"black","fill-opacity":"0.7"}),t("path",{key:"cabb590d090a8aefad92369fe448936c7ef63654",d:"M14.7017 14.6668C14.5839 14.6668 14.4661 14.6234 14.373 14.5304L13.1327 13.2901C12.9529 13.1102 12.9529 12.8126 13.1327 12.6327C13.3126 12.4529 13.6102 12.4529 13.7901 12.6327L15.0304 13.873C15.2102 14.0529 15.2102 14.3506 15.0304 14.5304C14.9374 14.6234 14.8195 14.6668 14.7017 14.6668Z",fill:"black","fill-opacity":"0.7"})))),t("div",{key:"44164efad1552ed010d880fecd6dfe3ddaeb96f2",class:"search-list"},this.isSearchVisible&&t("slot",{key:"50fc6ffdac91effba3496f3b4e44679852fc50ee",name:"searchList"}))),t("div",{key:"51526957f10654c54cd6b6c5e20a0d1588e70fbd",class:"topnav__right"},this.hasSearch&&t("swc-icon-button",{key:"59f6f5bb0596e940d9493998ee646d5091c4b347",intent:"neutral",variant:"bare",size:"lg","aria-label":"Search",class:"topnav__search-icon",round:!0,onClick:this.toggleSearch},this.isSearchVisible?t("swc-svg-icon",{name:"Dismiss",size:"16"}):t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t("path",{d:"M7.69009 14.0467C4.18621 14.0467 1.3335 11.194 1.3335 7.69009C1.3335 4.18621 4.18621 1.3335 7.69009 1.3335C11.194 1.3335 14.0467 4.18621 14.0467 7.69009C14.0467 11.194 11.194 14.0467 7.69009 14.0467ZM7.69009 2.26373C4.69474 2.26373 2.26373 4.70094 2.26373 7.69009C2.26373 10.6792 4.69474 13.1164 7.69009 13.1164C10.6854 13.1164 13.1164 10.6792 13.1164 7.69009C13.1164 4.70094 10.6854 2.26373 7.69009 2.26373Z",fill:"black","fill-opacity":"0.7"}),t("path",{d:"M14.2017 14.6668C14.0839 14.6668 13.9661 14.6234 13.873 14.5304L12.6327 13.2901C12.4529 13.1102 12.4529 12.8126 12.6327 12.6327C12.8126 12.4529 13.1102 12.4529 13.2901 12.6327L14.5304 13.873C14.7102 14.0529 14.7102 14.3506 14.5304 14.5304C14.4374 14.6234 14.3195 14.6668 14.2017 14.6668Z",fill:"black","fill-opacity":"0.7"}))),this.hasUserRoleDropdown&&t("swc-dropdown",{key:"5b4ad4941219b6e21bf3c44ac121fbcd7f343b04",class:"topnav__role-switch"},t("span",{key:"1117237c0c0c531e0f671aea473b88aa9cfc3aea",slot:"trigger"},t("swc-dropdown-trigger",{key:"ac2797a8c41baa83c889a701fafe519ebe26a4d3",size:"md",style:this.roleMenuStyleObj},t("div",{key:"cae9afd5e65423b98b6663071f0de390b127108f",class:"topnav__role-liner"},t("swc-svg-icon",{key:"10196cd77c9d956a93ad1a5b605032bdef4c25f3",name:"Person",variant:"filled",size:"20"}),"  ",t("slot",{key:"5a14395ea2a0aa1917168e684d7b326a293b1967",name:"roleSelected"})))),t("span",{key:"002a05dbc7b44c5984b274d24292f7c59857617d",slot:"list"},t("slot",{key:"1a27e3f95325157339bfd73746b6f2a4494775ff",name:"userRolesList"},"User Role Dropdown Menu"))),this.hasNotifications&&t("div",{key:"298fc63aa8f4c4593e2b44c5962f793778826f41",class:"topnav__notification"},t("swc-dropdown",{key:"a891390d15ab896319604a1d9010e6fe2c24830e"},t("span",{key:"9f01362f044fc1c9a850fbc5f67b8b5d5d8296f3",slot:"trigger"},t("swc-icon-button",{key:"8bcd6e861f4490df9c4ca52d49f9916b9d8ca8ff",intent:"brand",variant:"ghost",size:"lg","aria-label":"Alert",class:"alert-btn",round:!0,onClick:this.handleShowNotification},t("svg",{key:"1a9a0c0e0f9461a5f03ff8974087784bb6bf82e5",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t("path",{key:"dbb75ba281b6853ffaf1cc5d4982eb554db10831",d:"M7.9979 0C11.1469 0 13.7418 2.33488 13.9824 5.3554L13.9958 5.57762L14.0003 5.80214L13.9993 9.398L14.9247 11.6202C14.9472 11.6743 14.9649 11.7302 14.9776 11.7871L14.9929 11.8733L15.0015 12.0046C15.0015 12.4526 14.705 12.8387 14.2524 12.9677L14.136 12.9945L14.0015 13.0046L10.4999 13.004L10.4949 13.1653C10.4098 14.469 9.32542 15.5 8.00026 15.5C6.67478 15.5 5.59022 14.4685 5.50558 13.1644L5.49986 13.004L1.99915 13.0046C1.9112 13.0046 1.82383 12.993 1.73927 12.9702L1.61481 12.9277C1.20403 12.7567 0.962056 12.3392 1.01246 11.8757L1.03354 11.7483L1.07596 11.6202L1.99926 9.401L2.00035 5.79281L2.00465 5.56824C2.12726 2.45115 4.77129 0 7.9979 0ZM9.49986 13.004H6.49986L6.50722 13.1454C6.57576 13.8581 7.143 14.425 7.8558 14.4931L8.00026 14.5C8.77996 14.5 9.42071 13.9051 9.49339 13.1445L9.49986 13.004ZM7.9979 1C5.37535 1 3.22741 2.92372 3.0174 5.38498L3.00417 5.59723L3.00026 5.80214V9.5L2.96185 9.69217L1.99914 12.0046L13.9569 12.0066L14.0021 12.0045L13.0387 9.6922L13.0003 9.5L13.0004 5.81241L12.9963 5.60831C12.8911 3.0349 10.6949 1 7.9979 1Z",fill:"#004CA6"})),!this.hasReadNotifications&&t("div",{key:"7626f1368b6caf70b2300d8a6ee8b98112155345",class:"notify"},t("svg",{key:"e8d6802acc9c140f4e1f8fd3523350ea564e61df",xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none"},t("circle",{key:"195da3d35f48586f38f7a775977039b8c94d4847",cx:"2",cy:"2",r:"2",fill:"var(--sfe-color-non-semantic-fill-red-strong)"}))))),t("span",{key:"f1d7ccdbade10df51d0ad2c61b391ad6a31a7c59",slot:"list"},t("slot",{key:"c0651aeac06b5146ab2323ffac1e34b1976abb22",name:"notificationsList"})))),t("div",{key:"442fa65819d84a5c69e35a7431e180394dd30845",class:"topnav__avatar"},t("slot",{key:"c14d312ef15d075d4ca4fedb206c37b9972610ae",name:"userAvatar"})))))}static get watchers(){return{isSearchVisible:[{searchVisibleChangeHandler:0}]}}};i.style=".topnav{position:fixed;top:0;left:0;width:100%;z-index:var(--sfe-stack-level-navs);background:var(--sfe-color-fill-surface)}.topnav__content{border-bottom:0.8px solid var(--sfe-color-border-neutral-light);display:flex;padding:var(--sfe-sizing-gap-mid) var(--sfe-sizing-padding-large);justify-content:space-between;align-items:center;margin-inline:auto;height:var(--sfe-sizing-size-640, 64px);max-width:var(--max-width)}.topnav__links{transition:opacity 0.3s ease}.topnav__role-liner{display:flex;align-items:center}.topnav__left,.topnav__search-container,.topnav__right{display:flex;align-items:center}.topnav__left .topnav__brand{max-height:40px;overflow:hidden;width:auto;display:inline-block}.topnav__left .topnav__brand svg{width:auto;height:100%}.topnav__left .topnav__links{display:flex;margin-left:26px}.topnav__search-container{transition:opacity 0.3s ease, transform 0.3s ease;position:relative;justify-content:center;width:40%}.topnav__search-container .search-list{position:relative}.topnav__right{padding:0 24px 0 8px;justify-content:center;align-items:center}.topnav__right .topnav__search-icon,.topnav__right .topnav__role-switch,.topnav__right .topnav__notification,.topnav__right .topnav__avatar{margin:0 12px}.topnav__right .topnav__notification{position:relative}.topnav__right .topnav__notification .alert-btn .notify{position:absolute;right:13px;top:3px}.topnav__right .topnav__notification .topnav__notification-list{position:relative}.topnav__right .topnav__avatar{align-items:center}.w-40{width:36vw}.fade-leave-to{opacity:0}.fade-enter{opacity:1}.slide-fade-leave-to{transform:translateY(-10px);opacity:0}.slide-fade-enter-from{transform:translateY(0);opacity:1}";export{i as swc_top_nav}
@@ -0,0 +1 @@
1
+ import{r as e,d as s,h as a}from"./p-BoRgucbk.js";const i=class{constructor(a){new.target===i&&e(this,a),this.closeModal=s(this,"closeModal",7)}isModalOpen=!1;closeOnEsc=!0;closeOnOverlayClick=!0;size="sm";position="right";testId="";closeModal;closeDialog=()=>{this.closeModal.emit()};render(){return a("swc-modal-root",{key:"3a1f3d73d56cc9db2c65a52ebebf8609eeb74bd4",isModalOpen:this.isModalOpen,closeOnEsc:this.closeOnEsc,closeOnOverlayClick:this.closeOnOverlayClick,onCloseModal:this.closeDialog,"data-testid":`swc-side-panel-${this.testId}`},a("div",{key:"bc3be859ae32a03bdd099b42f59b2040948ccef0",class:`sfe-side-panel sfe-side-panel--${this.position} sfe-side-panel--${this.size}`},a("header",{key:"d113abc839637e8af8fccf93dbd19cff73c7dfad",class:"sfe-side-panel__header"},a("div",{key:"9d421ad03a748a1cb36f980f70252d492cbe6d2e"},a("h3",{key:"919e38e7eeb1df1a88c09c60ba2289570690525d",class:"sfe-side-panel__title"},a("slot",{key:"20f4e4aa8aa67c41594445cb25e73aea588b293f",name:"title"})),a("p",{key:"157e2ea1fb26a2d5181ffe0b9ed2bd50c366993c",class:"sfe-side-panel__description"},a("slot",{key:"0189ad6bf75a0f909f7709b02cf99cce42ee6e16",name:"description"}))),a("swc-button",{key:"f8ca33792f585981ee9de5692209ab9e0506a105",round:!0,intent:"neutral",variant:"bare",size:"md","aria-label":"Close",onClick:this.closeDialog},"×")),a("section",{key:"d0556d1e3cf7f34bd810cdb28c6517bff1890f89",class:"sfe-side-panel__body"},a("slot",{key:"afb501b9269dc0696258d87a85c586a9e279040a",name:"body"})),a("footer",{key:"f7046cac630ba038d684868e930d5acc9dc3e01e",class:"sfe-side-panel__footer"},a("slot",{key:"95f82de14cd87f0eae207a857c3045ac0626bca5",name:"footer"}))))}};i.style=".sfe-side-panel.sc-swc-side-panel{display:flex;flex-direction:column;height:100vh;background-color:white;position:fixed;top:0;bottom:0}.sfe-side-panel--right.sc-swc-side-panel{right:0;animation:slide-left 0.3s ease}.sfe-side-panel--left.sc-swc-side-panel{left:0;animation:slide-right 0.3s ease}.sfe-side-panel--sm.sc-swc-side-panel{width:360px}.sfe-side-panel--md.sc-swc-side-panel{width:480px}.sfe-side-panel--lg.sc-swc-side-panel{width:640px}.sfe-side-panel__header.sc-swc-side-panel{display:flex;justify-content:space-between;align-items:center;padding:1em;border-bottom:1px solid #ccc}.sfe-side-panel__title.sc-swc-side-panel{font-size:1rem;font-weight:500;margin:0}.sfe-side-panel__description.sc-swc-side-panel{font-size:0.875rem;color:gray;margin:0}.sfe-side-panel__body.sc-swc-side-panel{padding:1em;overflow-y:auto}.sfe-side-panel__footer.sc-swc-side-panel{padding:1em;margin:auto auto 2em 0;text-align:right}@keyframes slide-left{from{opacity:0;transform:translateX(50%)}}@keyframes slide-right{from{opacity:0;transform:translateX(-50%)}}";export{i as swc_side_panel}