@rocket.chat/fuselage 0.72.1 → 0.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
animation-fill-mode: forwards;
|
|
173
173
|
animation-play-state: ${u?"paused":"running"};
|
|
174
174
|
}
|
|
175
|
-
`,g=(0,a.useId)(),j=d||g;return(0,n.jsxs)(i.Box,{className:[`rcx-toastbar rcx-toastbar--${r} ${t}`,v],elevation:"2nb",borderRadius:"x4",...p,children:[(0,n.jsxs)("div",{className:"rcx-toastbar_inner",children:[(0,n.jsx)(s.Icon,{className:`rcx-toastbar_icon--${r}`,size:"x20",name:m}),(0,n.jsx)("div",{role:
|
|
175
|
+
`,g=(0,a.useId)(),j=d||g,y="error"===r?"alert":"status";return(0,n.jsxs)(i.Box,{className:[`rcx-toastbar rcx-toastbar--${r} ${t}`,v],elevation:"2nb",borderRadius:"x4",...p,children:[(0,n.jsxs)("div",{className:"rcx-toastbar_inner",children:[(0,n.jsx)(s.Icon,{className:`rcx-toastbar_icon--${r}`,size:"x20",name:m}),(0,n.jsx)("div",{role:y,className:"rcx-toastbar_content",children:e}),f&&(0,n.jsx)("div",{className:"rcx-toastbar-close",children:(0,n.jsx)(l.IconButton,{tiny:!0,"aria-label":b,onClick:()=>f(j),icon:"cross"})})]}),(0,n.jsx)(i.Box,{className:[h,"rcx-toastbar_progressbar"]})]})}},7186:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputBoxSkeleton=t.InputBox=t.Input=void 0;var o=r(5934);Object.defineProperty(t,"Input",{enumerable:!0,get:function(){return n(o).default}});var a=r(8639);Object.defineProperty(t,"InputBox",{enumerable:!0,get:function(){return n(a).default}});var i=r(6294);Object.defineProperty(t,"InputBoxSkeleton",{enumerable:!0,get:function(){return n(i).default}})},7196:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5272),o=r(8302),a=r(8458);t.default=({children:e,title:t,badge:r,noncollapsible:i,disabled:l,expanded:s,defaultExpanded:c,tabIndex:u,...d})=>{const{barProps:f,expanded:b,panelExpanded:p,panelId:m,titleId:x}=(0,a.useCollapse)({expanded:s,defaultExpanded:c,tabIndex:u,disabled:l,noncollapsible:i});return(0,n.jsxs)("section",{className:"rcx-box rcx-box--full rcx-sidebar-v2-accordion-item",...d,children:[(0,n.jsxs)("div",{role:"button",className:["rcx-box rcx-box--full rcx-sidebar-v2-accordion-item__bar rcx-box--animated",l&&"rcx-sidebar-v2-accordion-item__bar--disabled"].filter(Boolean).join(" "),...f,children:[!i&&(0,n.jsx)(o.Chevron,{className:"rcx-sidebar-v2-accordion-item__chevron",size:"x16",right:!b}),t&&(0,n.jsx)("h5",{className:"rcx-sidebar-v2-accordion-item__title",id:x,children:t}),!b&&r&&r]}),(0,n.jsx)("div",{className:["rcx-sidebar-v2-accordion-item__panel","rcx-box--animated",p&&"rcx-sidebar-v2-accordion-item__panel--expanded"].filter(Boolean).join(" "),id:m,children:e})]})}},7203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5272);r(5357),t.default=e=>(0,n.jsx)("div",{className:"rcx-message-generic-preview",...e})},7212:e=>{e.exports=d},7237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5272),o=r(9155),a=r(2944),i=(0,o.forwardRef)((function({className:e,labelChildren:t,...r},o){return(0,n.jsxs)(a.Box,{is:"label",className:e,"rcx-toggle-switch":!0,children:[t,(0,n.jsx)(a.Box,{is:"input",ref:o,"rcx-toggle-switch__input":!0,type:"checkbox",...r}),(0,n.jsx)(a.Box,{is:"i","rcx-toggle-switch__fake":!0,"aria-hidden":"true"})]})}));t.default=i},7250:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5272),o=r(6398),a=r(9155),i=r(7186),l=r(3735);t.default=({filter:e,setFilter:t,options:r,placeholder:s,...c})=>{const u=(0,a.useMemo)((()=>(0,a.forwardRef)((({filter:e,onChange:r,...a},l)=>(0,n.jsx)(i.Input,{mi:4,flexGrow:1,className:"rcx-select__focus",ref:l,placeholder:s,value:e,onChange:(0,o.useStableCallback)((e=>{t(e.currentTarget.value)})),...a,"rcx-input-box--undecorated":!0})))),[s,t]);return(0,n.jsx)(l.PaginatedSelect,{placeholder:void 0,filter:e,options:r,...c,anchor:u})}},7266:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5272),o=r(4780),a=r(8154),i=r(2944),l=r(3961),s=r(9270),c=r(4830),u=({url:e})=>(0,n.jsx)(i.Box,{"rcx-avatar":!0,children:(0,n.jsx)(a.Avatar,{size:"x20",url:e})}),d=()=>(0,n.jsx)(s.Icon,{name:"cross",size:"x16"});t.default=(0,l.withBoxStyling)((({children:e,className:t,thumbUrl:r,onClick:a,onMouseDown:i,renderThumb:l=u,renderDismissSymbol:s=d,...f})=>{const b=a||i;return(0,n.jsx)("button",{type:"button",className:(0,o.prependClassName)(t,"rcx-box rcx-chip"),disabled:!b,onClick:b,...f,children:(0,n.jsxs)(c.Margins,{all:"x4",children:[r&&l&&l({url:r}),e&&(0,n.jsx)("span",{className:"rcx-box rcx-chip__text",children:e}),b&&s&&s()]})})}))},7287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5272),o=r(6396),a=r(6398),i=r(9155),l=r(8188),s=r(4356),c=r(1168),u=(e,t,r)=>{const n=t.current,o=(e=>({top:!e.scrollTop,bottom:!(e.scrollTop+e.clientHeight-e.scrollHeight),left:!e.scrollLeft,right:!(e.scrollLeft+e.clientWidth-e.scrollWidth)}))(e);n&&(n.top!==o.top||n.bottom!==o.bottom||n.left!==o.left||n.right!==o.right)&&(t.current=o,r?.(o))};t.default=({children:e,horizontal:t,vertical:r,smooth:d,onScrollContent:f})=>{const b=(0,i.useRef)(),p=(0,i.useRef)({}),m=(0,a.useStableCallback)((e=>{const t=e.currentTarget;b.current||u(t,p,f),b.current&&clearTimeout(b.current),b.current=setTimeout((()=>{b.current=void 0,u(t,p,f)}),200)})),x=(0,s.useStyle)(o.css`
|
|
176
176
|
position: relative;
|
|
177
177
|
|
|
178
178
|
&::-webkit-scrollbar {
|