@snmt-react-ui/user-select 2.8.6 → 2.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/user-select.js +78 -78
- package/package.json +5 -5
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{border:0;background-color:var(--grey-dark-5);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-wrapper.delete .ant-checkbox-checked .ant-checkbox-inner:after{transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled+span{color:var(--grey-light-4)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:var(--grey-dark-2)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-dark-1)!important;border-color:var(--blue-dark-1)!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1px solid var(--grey-light-0);transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{border:1px solid var(--blue-dark-1)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-hover);border:1px solid var(--blue-hover)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border:1px solid var(--blue-hover)!important}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-2)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-light-5: #bebec2;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--blue-dark-3: #070739;--purple-light: #f2e5ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-tooltip.ant-tooltip>.ant-tooltip-arrow:before{background-color:var(--grey-dark-4);bottom:-1px}.snmt-tooltip.ant-tooltip>.ant-tooltip-content>.ant-tooltip-inner{background-color:var(--grey-dark-4);padding:12.5px 12px;border-radius:8px;color:var(--grey-light-0);font-family:Montserrat,sans-serif;font-size:10px;font-weight:500;line-height:12px}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
|
1
|
+
.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{border:0;background-color:var(--grey-dark-5);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;text-align:left}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-wrapper.delete .ant-checkbox-checked .ant-checkbox-inner:after{transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled+span{color:var(--grey-light-4)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:var(--grey-dark-2)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-dark-1)!important;border-color:var(--blue-dark-1)!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1px solid var(--grey-light-0);transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{border:1px solid var(--blue-dark-1)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-hover);border:1px solid var(--blue-hover)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border:1px solid var(--blue-hover)!important}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-2)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-1: #fbfbfb;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-light-5: #bebec2;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--blue-dark-3: #070739;--purple-light: #f2e5ff;--purple-light-2: #f9f0ff;--purple-dark: #6900d1;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00;--cyan-light: #e6fffb;--gold-light: #fefed2}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:29px;font-weight:700;line-height:110%}.snmt-typography.snmt-typography-h2{font-size:25px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-h3{font-size:21px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-h4{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-tooltip.ant-tooltip>.ant-tooltip-arrow:before{background-color:var(--grey-dark-4);bottom:-1px}.snmt-tooltip.ant-tooltip>.ant-tooltip-content>.ant-tooltip-inner{background-color:var(--grey-dark-4);padding:12.5px 12px;border-radius:8px;color:var(--grey-light-0);font-family:Montserrat,sans-serif;font-size:10px;font-weight:500;line-height:12px}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
|
package/dist/user-select.js
CHANGED
|
@@ -3,7 +3,7 @@ var k2 = (i, e, t) => e in i ? L2(i, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var G1 = (i, e, t) => k2(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
5
|
import { jsx as r, Fragment as i1, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
import { forwardRef as L1, useState as Z, useRef as Q, useCallback as
|
|
6
|
+
import { forwardRef as L1, useState as Z, useRef as Q, useCallback as W, useEffect as B, useMemo as v2, useImperativeHandle as H1, useContext as r1, createContext as d1 } from "react";
|
|
7
7
|
import { Select as N2, Tag as x2, Flex as R2, Checkbox as M2, Avatar as b2, Typography as a2, Popover as y2 } from "antd";
|
|
8
8
|
import { SNMTUiContext as _2 } from "@snmt-react-ui/core";
|
|
9
9
|
var H2 = Object.defineProperty, V2 = (i, e, t) => e in i ? H2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, E2 = (i, e, t) => V2(i, e + "", t), I2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -87,8 +87,8 @@ let K2 = {
|
|
|
87
87
|
unescape: B2
|
|
88
88
|
};
|
|
89
89
|
const j2 = () => K2;
|
|
90
|
-
let
|
|
91
|
-
const
|
|
90
|
+
let P2;
|
|
91
|
+
const W2 = () => P2, $2 = d1();
|
|
92
92
|
class Y2 {
|
|
93
93
|
constructor() {
|
|
94
94
|
E2(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
@@ -104,14 +104,14 @@ const F2 = (i, e) => {
|
|
|
104
104
|
return B(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
|
-
}, c2 = (i, e, t, s) => i.getFixedT(e, t, s), U2 = (i, e, t, s) =>
|
|
107
|
+
}, c2 = (i, e, t, s) => i.getFixedT(e, t, s), U2 = (i, e, t, s) => W(c2(i, e, t, s), [i, e, t, s]), z2 = function(i) {
|
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
109
109
|
const {
|
|
110
110
|
i18n: t
|
|
111
111
|
} = e, {
|
|
112
112
|
i18n: s,
|
|
113
113
|
defaultNS: n
|
|
114
|
-
} = r1(
|
|
114
|
+
} = r1($2) || {}, o = t || s || W2();
|
|
115
115
|
if (o && !o.reportNamespaces && (o.reportNamespaces = new Y2()), !o) {
|
|
116
116
|
A1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
117
|
const f = (x, v) => s1(v) ? v : Z2(v) && s1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
|
@@ -192,7 +192,7 @@ const F2 = (i, e) => {
|
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
|
-
var q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(q || {});
|
|
195
|
+
var q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_LIGHT_2 = "var(--purple-light-2)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i.CYAN_LIGHT = "var(--cyan-light)", i.GOLD_LIGHT = "var(--gold-light)", i))(q || {});
|
|
196
196
|
const D1 = d1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
@@ -225,7 +225,7 @@ const Q2 = ({
|
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
227
|
};
|
|
228
|
-
var M = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(M || {});
|
|
228
|
+
var M = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_LIGHT_2 = "var(--purple-light-2)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i.CYAN_LIGHT = "var(--cyan-light)", i.GOLD_LIGHT = "var(--gold-light)", i))(M || {});
|
|
229
229
|
const h2 = d1({
|
|
230
230
|
locale: "en",
|
|
231
231
|
theme: "light"
|
|
@@ -1804,7 +1804,7 @@ const q2 = ({
|
|
|
1804
1804
|
}
|
|
1805
1805
|
)
|
|
1806
1806
|
}
|
|
1807
|
-
),
|
|
1807
|
+
), Pe = ({
|
|
1808
1808
|
className: i,
|
|
1809
1809
|
color: e = M.GREY_DARK_5,
|
|
1810
1810
|
height: t = 24,
|
|
@@ -1856,7 +1856,7 @@ const q2 = ({
|
|
|
1856
1856
|
)
|
|
1857
1857
|
]
|
|
1858
1858
|
}
|
|
1859
|
-
),
|
|
1859
|
+
), We = ({
|
|
1860
1860
|
className: i,
|
|
1861
1861
|
color: e = M.GREY_DARK_5,
|
|
1862
1862
|
height: t = 24,
|
|
@@ -1893,7 +1893,7 @@ const q2 = ({
|
|
|
1893
1893
|
)
|
|
1894
1894
|
]
|
|
1895
1895
|
}
|
|
1896
|
-
),
|
|
1896
|
+
), $e = ({
|
|
1897
1897
|
className: i,
|
|
1898
1898
|
color: e = M.NOTIFICATION_WARNING_DARK,
|
|
1899
1899
|
height: t = 37,
|
|
@@ -2785,11 +2785,11 @@ const q2 = ({
|
|
|
2785
2785
|
case "filtersIcon":
|
|
2786
2786
|
return je({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2787
2787
|
case "dotMenuIcon":
|
|
2788
|
-
return
|
|
2788
|
+
return Pe({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2789
2789
|
case "plusCircle":
|
|
2790
|
-
return
|
|
2790
|
+
return We({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2791
2791
|
case "warning":
|
|
2792
|
-
return
|
|
2792
|
+
return $e({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2793
2793
|
case "back":
|
|
2794
2794
|
return Ye({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2795
2795
|
case "bell":
|
|
@@ -2882,7 +2882,7 @@ const q2 = ({
|
|
|
2882
2882
|
return C ? /* @__PURE__ */ r(d5, { level: C5[e], ...w, children: s }) : /* @__PURE__ */ r(g5, { ...w, children: s });
|
|
2883
2883
|
}
|
|
2884
2884
|
);
|
|
2885
|
-
var b = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(b || {});
|
|
2885
|
+
var b = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_LIGHT_2 = "var(--purple-light-2)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i.CYAN_LIGHT = "var(--cyan-light)", i.GOLD_LIGHT = "var(--gold-light)", i))(b || {});
|
|
2886
2886
|
const d2 = d1({
|
|
2887
2887
|
locale: "en",
|
|
2888
2888
|
theme: "light"
|
|
@@ -3916,7 +3916,7 @@ const p5 = ({
|
|
|
3916
3916
|
)
|
|
3917
3917
|
]
|
|
3918
3918
|
}
|
|
3919
|
-
),
|
|
3919
|
+
), P5 = ({
|
|
3920
3920
|
width: i = 9,
|
|
3921
3921
|
height: e = 5,
|
|
3922
3922
|
color: t = "#001E52",
|
|
@@ -3942,7 +3942,7 @@ const p5 = ({
|
|
|
3942
3942
|
}
|
|
3943
3943
|
)
|
|
3944
3944
|
}
|
|
3945
|
-
),
|
|
3945
|
+
), W5 = ({
|
|
3946
3946
|
width: i = 20,
|
|
3947
3947
|
height: e = 20,
|
|
3948
3948
|
color: t = "#F2F2F7",
|
|
@@ -3971,7 +3971,7 @@ const p5 = ({
|
|
|
3971
3971
|
)
|
|
3972
3972
|
]
|
|
3973
3973
|
}
|
|
3974
|
-
),
|
|
3974
|
+
), $5 = ({
|
|
3975
3975
|
width: i = 20,
|
|
3976
3976
|
height: e = 20,
|
|
3977
3977
|
color: t = "#004ED7",
|
|
@@ -5394,7 +5394,7 @@ const p5 = ({
|
|
|
5394
5394
|
onClick: c
|
|
5395
5395
|
});
|
|
5396
5396
|
case "selectArrowIcon":
|
|
5397
|
-
return
|
|
5397
|
+
return P5({
|
|
5398
5398
|
width: e,
|
|
5399
5399
|
height: t,
|
|
5400
5400
|
color: l,
|
|
@@ -5402,7 +5402,7 @@ const p5 = ({
|
|
|
5402
5402
|
onClick: c
|
|
5403
5403
|
});
|
|
5404
5404
|
case "expandArrowIcon":
|
|
5405
|
-
return
|
|
5405
|
+
return W5({
|
|
5406
5406
|
width: e,
|
|
5407
5407
|
height: t,
|
|
5408
5408
|
color: l,
|
|
@@ -5410,7 +5410,7 @@ const p5 = ({
|
|
|
5410
5410
|
onClick: c
|
|
5411
5411
|
});
|
|
5412
5412
|
case "expandActiveArrowIcon":
|
|
5413
|
-
return
|
|
5413
|
+
return $5({
|
|
5414
5414
|
width: e,
|
|
5415
5415
|
height: t,
|
|
5416
5416
|
color: l,
|
|
@@ -5490,7 +5490,7 @@ const p5 = ({
|
|
|
5490
5490
|
}
|
|
5491
5491
|
})() });
|
|
5492
5492
|
};
|
|
5493
|
-
var f1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(f1 || {});
|
|
5493
|
+
var f1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_LIGHT_2 = "var(--purple-light-2)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i.CYAN_LIGHT = "var(--cyan-light)", i.GOLD_LIGHT = "var(--gold-light)", i))(f1 || {});
|
|
5494
5494
|
const Ht = d1({
|
|
5495
5495
|
locale: "en",
|
|
5496
5496
|
theme: "light"
|
|
@@ -5667,7 +5667,7 @@ const Zt = ({
|
|
|
5667
5667
|
small: 20,
|
|
5668
5668
|
medium: 28,
|
|
5669
5669
|
large: 48
|
|
5670
|
-
},
|
|
5670
|
+
}, P1 = ({ size: i = "medium", color: e = "#004ed7" }) => {
|
|
5671
5671
|
const t = Tt[i], s = `no-repeat linear-gradient(${e}
|
|
5672
5672
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, n = {
|
|
5673
5673
|
width: t,
|
|
@@ -5675,7 +5675,7 @@ const Zt = ({
|
|
|
5675
5675
|
backgroundSize: "20% calc(200% + 20px)"
|
|
5676
5676
|
};
|
|
5677
5677
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: n });
|
|
5678
|
-
},
|
|
5678
|
+
}, W1 = L1(
|
|
5679
5679
|
({
|
|
5680
5680
|
value: i,
|
|
5681
5681
|
onChange: e,
|
|
@@ -5700,20 +5700,20 @@ const Zt = ({
|
|
|
5700
5700
|
readOnly: f,
|
|
5701
5701
|
error: N
|
|
5702
5702
|
}, x) => {
|
|
5703
|
-
const [v,
|
|
5703
|
+
const [v, $] = Z(!1), [J, Y] = Z(!1), [V, D] = Z(!0), [E, A] = Z(i), T = Q(null);
|
|
5704
5704
|
B(() => {
|
|
5705
5705
|
A(i);
|
|
5706
5706
|
}, [i]);
|
|
5707
5707
|
const K = (k) => {
|
|
5708
|
-
|
|
5708
|
+
$(k), C && C(k);
|
|
5709
5709
|
}, U = (k, _) => {
|
|
5710
5710
|
var G;
|
|
5711
5711
|
return !!((G = _ == null ? void 0 : _.label) != null && G.toString().toLowerCase().includes(k.toLowerCase()));
|
|
5712
5712
|
}, I = () => {
|
|
5713
5713
|
Y(!0);
|
|
5714
|
-
},
|
|
5714
|
+
}, P = () => {
|
|
5715
5715
|
Y(!1);
|
|
5716
|
-
}, j =
|
|
5716
|
+
}, j = W(
|
|
5717
5717
|
(k) => {
|
|
5718
5718
|
if (A(k), s) {
|
|
5719
5719
|
const G = k;
|
|
@@ -5724,7 +5724,7 @@ const Zt = ({
|
|
|
5724
5724
|
e == null || e(_);
|
|
5725
5725
|
},
|
|
5726
5726
|
[s, e]
|
|
5727
|
-
), e1 =
|
|
5727
|
+
), e1 = W(() => {
|
|
5728
5728
|
if (!(f || a)) {
|
|
5729
5729
|
if (s) {
|
|
5730
5730
|
j([]);
|
|
@@ -5732,13 +5732,13 @@ const Zt = ({
|
|
|
5732
5732
|
}
|
|
5733
5733
|
j("");
|
|
5734
5734
|
}
|
|
5735
|
-
}, [a, j, s, f]), t1 =
|
|
5735
|
+
}, [a, j, s, f]), t1 = W(
|
|
5736
5736
|
(k) => {
|
|
5737
5737
|
const _ = E.filter((G) => G !== k);
|
|
5738
5738
|
j(_), A(_);
|
|
5739
5739
|
},
|
|
5740
5740
|
[j, E]
|
|
5741
|
-
), g1 =
|
|
5741
|
+
), g1 = W(
|
|
5742
5742
|
(k) => (E == null ? void 0 : E.indexOf(k)) === 0 ? (
|
|
5743
5743
|
// if the search input is empty
|
|
5744
5744
|
// then display the placeholder, else do not display it
|
|
@@ -5750,7 +5750,7 @@ const Zt = ({
|
|
|
5750
5750
|
}, v1 = async (k) => {
|
|
5751
5751
|
const { target: _ } = k;
|
|
5752
5752
|
_.scrollTop + _.offsetHeight >= _.scrollHeight - l && (p == null || p(!0)), w && await w(k);
|
|
5753
|
-
}, o1 =
|
|
5753
|
+
}, o1 = W(
|
|
5754
5754
|
(k) => {
|
|
5755
5755
|
var _, G;
|
|
5756
5756
|
return ((_ = o.find((a1) => a1.value === k)) == null ? void 0 : _.label) || ((G = m == null ? void 0 : m.find(
|
|
@@ -5758,7 +5758,7 @@ const Zt = ({
|
|
|
5758
5758
|
)) == null ? void 0 : G.label) || k;
|
|
5759
5759
|
},
|
|
5760
5760
|
[m, o]
|
|
5761
|
-
), N1 =
|
|
5761
|
+
), N1 = W(
|
|
5762
5762
|
(k) => {
|
|
5763
5763
|
var _;
|
|
5764
5764
|
return /* @__PURE__ */ r(
|
|
@@ -5775,7 +5775,7 @@ const Zt = ({
|
|
|
5775
5775
|
);
|
|
5776
5776
|
},
|
|
5777
5777
|
[a, m, t1, o, f]
|
|
5778
|
-
), S =
|
|
5778
|
+
), S = W(
|
|
5779
5779
|
({ label: k, value: _, mode: G }) => G === "filter" ? g1(_) : /* @__PURE__ */ r("div", { onMouseDown: k1, className: "tag-wrapper", children: /* @__PURE__ */ r(g2, { onClose: () => t1(_), disabled: a, children: typeof k == "object" ? k : o1(_) }) }),
|
|
5780
5780
|
[a, o1, t1, g1]
|
|
5781
5781
|
), z = Array.isArray(E) && E.length > 0 || !!E && typeof E == "string" && E.trim() !== "";
|
|
@@ -5807,7 +5807,7 @@ const Zt = ({
|
|
|
5807
5807
|
mode: s === "filter" ? "multiple" : s,
|
|
5808
5808
|
onChange: j,
|
|
5809
5809
|
onFocus: I,
|
|
5810
|
-
onBlur:
|
|
5810
|
+
onBlur: P,
|
|
5811
5811
|
onSearch: (k) => {
|
|
5812
5812
|
D(!k), c && c(k);
|
|
5813
5813
|
},
|
|
@@ -5817,7 +5817,7 @@ const Zt = ({
|
|
|
5817
5817
|
maxTagCount: "responsive",
|
|
5818
5818
|
maxTagPlaceholder: N1,
|
|
5819
5819
|
onPopupScroll: v1,
|
|
5820
|
-
prefix: O && /* @__PURE__ */ r(
|
|
5820
|
+
prefix: O && /* @__PURE__ */ r(P1, { size: "small" }),
|
|
5821
5821
|
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(i1, { children: [
|
|
5822
5822
|
E && !!E.length && (s || d) && /* @__PURE__ */ r(
|
|
5823
5823
|
"div",
|
|
@@ -5841,7 +5841,7 @@ const Zt = ({
|
|
|
5841
5841
|
name: "selectArrowIcon",
|
|
5842
5842
|
color: a ? q.GREY_DARK_1 : q.GREY_DARK_5,
|
|
5843
5843
|
className: v ? "select-arrow-rotated" : "select-arrow",
|
|
5844
|
-
onClick: () =>
|
|
5844
|
+
onClick: () => $(!v)
|
|
5845
5845
|
}
|
|
5846
5846
|
)
|
|
5847
5847
|
] }) }),
|
|
@@ -5872,7 +5872,7 @@ const Zt = ({
|
|
|
5872
5872
|
] }),
|
|
5873
5873
|
dropdownRender: (k) => /* @__PURE__ */ u("div", { className: "dropdown-container", children: [
|
|
5874
5874
|
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: H ? H(k) : k }),
|
|
5875
|
-
O && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(
|
|
5875
|
+
O && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(P1, {}) })
|
|
5876
5876
|
] })
|
|
5877
5877
|
}
|
|
5878
5878
|
),
|
|
@@ -5921,7 +5921,7 @@ function Dt(i, e = 500) {
|
|
|
5921
5921
|
clearTimeout(t.current), t.current = n;
|
|
5922
5922
|
};
|
|
5923
5923
|
}
|
|
5924
|
-
function
|
|
5924
|
+
function $1(i) {
|
|
5925
5925
|
const e = Q(i);
|
|
5926
5926
|
return B(() => {
|
|
5927
5927
|
e.current = i;
|
|
@@ -5951,9 +5951,9 @@ const E1 = 100, l1 = {
|
|
|
5951
5951
|
required: H = !1,
|
|
5952
5952
|
error: y
|
|
5953
5953
|
}, O) => {
|
|
5954
|
-
const [f, N] = Z(), [x, v] = Z(l1), [
|
|
5954
|
+
const [f, N] = Z(), [x, v] = Z(l1), [$, J] = Z(!1), [Y, V] = Z(), [D, E] = Z(!1), [A, T] = Z(
|
|
5955
5955
|
c ?? []
|
|
5956
|
-
), K =
|
|
5956
|
+
), K = $1(x.offset), U = $1(Y), [I, P] = Z(!1), j = Q(!1), e1 = W(
|
|
5957
5957
|
async ({
|
|
5958
5958
|
limit: S = E1,
|
|
5959
5959
|
offset: z,
|
|
@@ -5981,26 +5981,26 @@ const E1 = 100, l1 = {
|
|
|
5981
5981
|
[i]
|
|
5982
5982
|
), t1 = Dt((S) => {
|
|
5983
5983
|
V(S), S || v(l1);
|
|
5984
|
-
}), g1 =
|
|
5984
|
+
}), g1 = W(
|
|
5985
5985
|
(S) => t1(S),
|
|
5986
5986
|
[t1]
|
|
5987
|
-
), k1 =
|
|
5987
|
+
), k1 = W(
|
|
5988
5988
|
async (S) => {
|
|
5989
|
-
|
|
5989
|
+
$ || S && x.count && x.count > ((f == null ? void 0 : f.length) ?? 0) && v((z) => ({
|
|
5990
5990
|
...z,
|
|
5991
5991
|
offset: z.offset + E1
|
|
5992
5992
|
}));
|
|
5993
5993
|
},
|
|
5994
|
-
[
|
|
5995
|
-
), v1 =
|
|
5994
|
+
[$, f == null ? void 0 : f.length, x.count]
|
|
5995
|
+
), v1 = W(
|
|
5996
5996
|
(S) => {
|
|
5997
|
-
E(S), !S && Y && (V(void 0), v(l1),
|
|
5997
|
+
E(S), !S && Y && (V(void 0), v(l1), P(!0)), C == null || C(S);
|
|
5998
5998
|
},
|
|
5999
5999
|
[C, Y]
|
|
6000
6000
|
);
|
|
6001
6001
|
B(() => {
|
|
6002
|
-
!j.current ||
|
|
6003
|
-
}, [I, D, x.offset, Y, K, U, f,
|
|
6002
|
+
!j.current || $ || (I || D && (K !== x.offset || U !== Y || !f)) && (e1({ offset: x.offset, limit: E1, search: Y }), I && P(!1));
|
|
6003
|
+
}, [I, D, x.offset, Y, K, U, f, $]), B(() => {
|
|
6004
6004
|
(d || l) && e1(l1), j.current = !0;
|
|
6005
6005
|
}, []), B(() => {
|
|
6006
6006
|
c && T((S) => {
|
|
@@ -6010,7 +6010,7 @@ const E1 = 100, l1 = {
|
|
|
6010
6010
|
return [...S, ...z];
|
|
6011
6011
|
});
|
|
6012
6012
|
}, [c]);
|
|
6013
|
-
const o1 =
|
|
6013
|
+
const o1 = W(
|
|
6014
6014
|
(S) => {
|
|
6015
6015
|
t && t(S);
|
|
6016
6016
|
let z = [];
|
|
@@ -6027,7 +6027,7 @@ const E1 = 100, l1 = {
|
|
|
6027
6027
|
label: (a1 == null ? void 0 : a1.label) ?? G
|
|
6028
6028
|
};
|
|
6029
6029
|
})
|
|
6030
|
-
]), V(void 0), v(l1),
|
|
6030
|
+
]), V(void 0), v(l1), P(!0);
|
|
6031
6031
|
}
|
|
6032
6032
|
},
|
|
6033
6033
|
[t, Y, g, f, A]
|
|
@@ -6047,7 +6047,7 @@ const E1 = 100, l1 = {
|
|
|
6047
6047
|
onScrollToEnd: k1,
|
|
6048
6048
|
disabled: o,
|
|
6049
6049
|
extraOptions: A,
|
|
6050
|
-
isLoading:
|
|
6050
|
+
isLoading: $,
|
|
6051
6051
|
optionRender: p,
|
|
6052
6052
|
dropdownRender: w,
|
|
6053
6053
|
readOnly: L,
|
|
@@ -6069,7 +6069,7 @@ const E1 = 100, l1 = {
|
|
|
6069
6069
|
k1,
|
|
6070
6070
|
o,
|
|
6071
6071
|
A,
|
|
6072
|
-
|
|
6072
|
+
$,
|
|
6073
6073
|
p,
|
|
6074
6074
|
w,
|
|
6075
6075
|
L,
|
|
@@ -6080,9 +6080,9 @@ const E1 = 100, l1 = {
|
|
|
6080
6080
|
);
|
|
6081
6081
|
return H1(O, () => ({
|
|
6082
6082
|
refetchOptions: async () => {
|
|
6083
|
-
v(l1), V(void 0),
|
|
6083
|
+
v(l1), V(void 0), P(!0);
|
|
6084
6084
|
}
|
|
6085
|
-
})), g ? /* @__PURE__ */ r(
|
|
6085
|
+
})), g ? /* @__PURE__ */ r(W1, { ...N1, value: s, mode: g }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(W1, { ...N1, value: s }) });
|
|
6086
6086
|
}
|
|
6087
6087
|
);
|
|
6088
6088
|
var R1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(R1 || {});
|
|
@@ -6138,7 +6138,7 @@ const C2 = (i, e) => () => {
|
|
|
6138
6138
|
return d === -1 || d === 2;
|
|
6139
6139
|
};
|
|
6140
6140
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(o, i)));
|
|
6141
|
-
},
|
|
6141
|
+
}, Pt = function(i, e) {
|
|
6142
6142
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
6143
6143
|
return !e.languages || !e.languages.length ? (S1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
6144
6144
|
lng: t.lng,
|
|
@@ -6146,7 +6146,7 @@ const C2 = (i, e) => () => {
|
|
|
6146
6146
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, i)) return !1;
|
|
6147
6147
|
}
|
|
6148
6148
|
}) : jt(i, e, t);
|
|
6149
|
-
}, n1 = (i) => typeof i == "string",
|
|
6149
|
+
}, n1 = (i) => typeof i == "string", Wt = (i) => typeof i == "object" && i !== null, $t = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Yt = {
|
|
6150
6150
|
"&": "&",
|
|
6151
6151
|
"&": "&",
|
|
6152
6152
|
"<": "<",
|
|
@@ -6167,7 +6167,7 @@ const C2 = (i, e) => () => {
|
|
|
6167
6167
|
"…": "…",
|
|
6168
6168
|
"/": "/",
|
|
6169
6169
|
"/": "/"
|
|
6170
|
-
}, Ft = (i) => Yt[i], Ut = (i) => i.replace(
|
|
6170
|
+
}, Ft = (i) => Yt[i], Ut = (i) => i.replace($t, Ft);
|
|
6171
6171
|
let Z1 = {
|
|
6172
6172
|
bindI18n: "languageChanged",
|
|
6173
6173
|
bindI18nStore: "",
|
|
@@ -6210,7 +6210,7 @@ const i0 = (i, e) => {
|
|
|
6210
6210
|
return B(() => {
|
|
6211
6211
|
t.current = i;
|
|
6212
6212
|
}, [i, e]), t.current;
|
|
6213
|
-
}, p2 = (i, e, t, s) => i.getFixedT(e, t, s), s0 = (i, e, t, s) =>
|
|
6213
|
+
}, p2 = (i, e, t, s) => i.getFixedT(e, t, s), s0 = (i, e, t, s) => W(p2(i, e, t, s), [i, e, t, s]), n0 = function(i) {
|
|
6214
6214
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6215
6215
|
const {
|
|
6216
6216
|
i18n: t
|
|
@@ -6220,7 +6220,7 @@ const i0 = (i, e) => {
|
|
|
6220
6220
|
} = r1(e0) || {}, o = t || s || qt();
|
|
6221
6221
|
if (o && !o.reportNamespaces && (o.reportNamespaces = new t0()), !o) {
|
|
6222
6222
|
S1("You will need to pass in an i18next instance by using initReactI18next");
|
|
6223
|
-
const f = (x, v) => n1(v) ? v :
|
|
6223
|
+
const f = (x, v) => n1(v) ? v : Wt(v) && n1(v.defaultValue) ? v.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
|
6224
6224
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
|
6225
6225
|
}
|
|
6226
6226
|
o.options.react && o.options.react.wait !== void 0 && S1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
@@ -6234,7 +6234,7 @@ const i0 = (i, e) => {
|
|
|
6234
6234
|
} = h;
|
|
6235
6235
|
let d = i;
|
|
6236
6236
|
d = n1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
|
|
6237
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) =>
|
|
6237
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Pt(f, o, h)), c = s0(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], g), C = () => c, p = () => p2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], g), [w, L] = Z(C);
|
|
6238
6238
|
let m = d.join();
|
|
6239
6239
|
e.lng && (m = `${e.lng}${m}`);
|
|
6240
6240
|
const H = i0(m), y = Q(!0);
|
|
@@ -6633,12 +6633,12 @@ class _1 extends V1 {
|
|
|
6633
6633
|
const f = Array.isArray(C), N = f ? [] : {}, x = f ? w : p;
|
|
6634
6634
|
for (const v in C)
|
|
6635
6635
|
if (Object.prototype.hasOwnProperty.call(C, v)) {
|
|
6636
|
-
const
|
|
6637
|
-
N[v] = this.translate(
|
|
6636
|
+
const $ = `${x}${o}${v}`;
|
|
6637
|
+
N[v] = this.translate($, {
|
|
6638
6638
|
...t,
|
|
6639
6639
|
joinArrays: !1,
|
|
6640
6640
|
ns: a
|
|
6641
|
-
}), N[v] ===
|
|
6641
|
+
}), N[v] === $ && (N[v] = C[v]);
|
|
6642
6642
|
}
|
|
6643
6643
|
C = N;
|
|
6644
6644
|
}
|
|
@@ -6646,9 +6646,9 @@ class _1 extends V1 {
|
|
|
6646
6646
|
C = C.join(H), C && (C = this.extendTranslation(C, e, t, s));
|
|
6647
6647
|
else {
|
|
6648
6648
|
let f = !1, N = !1;
|
|
6649
|
-
const x = t.count !== void 0 && !R(t.count), v = _1.hasDefaultValue(t),
|
|
6649
|
+
const x = t.count !== void 0 && !R(t.count), v = _1.hasDefaultValue(t), $ = x ? this.pluralResolver.getSuffix(d, t.count, t) : "", J = t.ordinal && x ? this.pluralResolver.getSuffix(d, t.count, {
|
|
6650
6650
|
ordinal: !1
|
|
6651
|
-
}) : "", Y = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), V = Y && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${
|
|
6651
|
+
}) : "", Y = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), V = Y && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${$}`] || t[`defaultValue${J}`] || t.defaultValue;
|
|
6652
6652
|
!this.isValidLookup(C) && v && (f = !0, C = V), this.isValidLookup(C) || (N = !0, C = h);
|
|
6653
6653
|
const E = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : C, A = v && V !== C && this.options.updateMissing;
|
|
6654
6654
|
if (N || f || A) {
|
|
@@ -6665,13 +6665,13 @@ class _1 extends V1 {
|
|
|
6665
6665
|
for (let I = 0; I < K.length; I++)
|
|
6666
6666
|
T.push(K[I]);
|
|
6667
6667
|
else this.options.saveMissingTo === "all" ? T = this.languageUtils.toResolveHierarchy(t.lng || this.language) : T.push(t.lng || this.language);
|
|
6668
|
-
const U = (I,
|
|
6668
|
+
const U = (I, P, j) => {
|
|
6669
6669
|
const e1 = v && j !== C ? j : E;
|
|
6670
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(I, g,
|
|
6670
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(I, g, P, e1, A, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(I, g, P, e1, A, t), this.emit("missingKey", I, g, P, C);
|
|
6671
6671
|
};
|
|
6672
6672
|
this.options.saveMissing && (this.options.saveMissingPlurals && x ? T.forEach((I) => {
|
|
6673
|
-
const
|
|
6674
|
-
Y && t[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
6673
|
+
const P = this.pluralResolver.getSuffixes(I, t);
|
|
6674
|
+
Y && t[`defaultValue${this.options.pluralSeparator}zero`] && P.indexOf(`${this.options.pluralSeparator}zero`) < 0 && P.push(`${this.options.pluralSeparator}zero`), P.forEach((j) => {
|
|
6675
6675
|
U([I], h + j, t[`defaultValue${j}`] || V);
|
|
6676
6676
|
});
|
|
6677
6677
|
}) : U(T, h, V));
|
|
@@ -7792,13 +7792,13 @@ const B0 = L1(
|
|
|
7792
7792
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
7793
7793
|
Please provide it via SNMTUiContext.`
|
|
7794
7794
|
);
|
|
7795
|
-
const x =
|
|
7795
|
+
const x = W(
|
|
7796
7796
|
(V) => {
|
|
7797
7797
|
let D = "";
|
|
7798
7798
|
return V.deletedAt && (D += `[${L("deleted")}] `), V.status === R1.ARCHIVED && (D += `[${L("archived")}] `), `${D}${V.firstName} ${V.lastName}`;
|
|
7799
7799
|
},
|
|
7800
7800
|
[L]
|
|
7801
|
-
), v =
|
|
7801
|
+
), v = W(
|
|
7802
7802
|
async ({
|
|
7803
7803
|
offset: V,
|
|
7804
7804
|
limit: D,
|
|
@@ -7812,14 +7812,14 @@ const B0 = L1(
|
|
|
7812
7812
|
search: E,
|
|
7813
7813
|
...i,
|
|
7814
7814
|
includeCount: !0
|
|
7815
|
-
}), { data: I, metadata:
|
|
7815
|
+
}), { data: I, metadata: P } = U.data;
|
|
7816
7816
|
return {
|
|
7817
7817
|
options: I.map((j) => ({
|
|
7818
7818
|
value: j.id,
|
|
7819
7819
|
label: x(j),
|
|
7820
7820
|
image: g ? j.avatarUrl : void 0
|
|
7821
7821
|
})),
|
|
7822
|
-
count:
|
|
7822
|
+
count: P.count
|
|
7823
7823
|
};
|
|
7824
7824
|
} catch (U) {
|
|
7825
7825
|
return h && h({
|
|
@@ -7832,12 +7832,12 @@ const B0 = L1(
|
|
|
7832
7832
|
}
|
|
7833
7833
|
},
|
|
7834
7834
|
[p, i, x, g, h]
|
|
7835
|
-
),
|
|
7835
|
+
), $ = W(
|
|
7836
7836
|
async (V) => {
|
|
7837
7837
|
var D, E, A;
|
|
7838
7838
|
try {
|
|
7839
7839
|
const T = V.filter(
|
|
7840
|
-
(I) => !f.current.some((
|
|
7840
|
+
(I) => !f.current.some((P) => P.value === I)
|
|
7841
7841
|
);
|
|
7842
7842
|
let K = [];
|
|
7843
7843
|
T.length && (K = (await p.post("v1/users/search", {
|
|
@@ -7872,11 +7872,11 @@ const B0 = L1(
|
|
|
7872
7872
|
return;
|
|
7873
7873
|
}
|
|
7874
7874
|
(async () => {
|
|
7875
|
-
const D = Array.isArray(n) ? n : [n], E = await
|
|
7875
|
+
const D = Array.isArray(n) ? n : [n], E = await $(D);
|
|
7876
7876
|
H(E), O(!1);
|
|
7877
7877
|
})();
|
|
7878
|
-
}, [
|
|
7879
|
-
const J =
|
|
7878
|
+
}, [$, n]);
|
|
7879
|
+
const J = W(
|
|
7880
7880
|
async ({
|
|
7881
7881
|
limit: V,
|
|
7882
7882
|
offset: D,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snmt-react-ui/user-select",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.8.
|
|
4
|
+
"version": "2.8.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/user-select.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@snmt-react-ui/async-select": "^1.9.
|
|
22
|
-
"@snmt-react-ui/core": "^2.
|
|
21
|
+
"@snmt-react-ui/async-select": "^1.9.8",
|
|
22
|
+
"@snmt-react-ui/core": "^2.5.0",
|
|
23
23
|
"@snmt-react-ui/loader": "^2.1.0",
|
|
24
|
-
"@snmt-react-ui/select": "^1.21.
|
|
24
|
+
"@snmt-react-ui/select": "^1.21.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"antd": "^5.22.3",
|
|
28
28
|
"i18next": "^23.11.1",
|
|
29
29
|
"react-i18next": "^14.1.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "e1ad621d368ec939bb008b45f95baaa44417da37"
|
|
32
32
|
}
|