@bothub-chat/ui 2.51.3-develop-6b7e7c69-04b5-49fd-a4ce-6f255dac5c71 → 2.51.3-develop-9f08ea59-23a2-4914-8b0e-6fffbc345508
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as t}from"tslib";import{jsx as
|
|
1
|
+
import{__rest as t}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{MessageFileStyled as r,MessageFileInfo as e,MessageFileName as s,MessageFileSize as m}from"./styled.js";export{MessageFiles}from"./styled.js";import{IconProvider as n}from"../../icon/context.js";import"../../icon/styled.js";import"react";import"@react-spring/web";import"react-markdown";import"react-dom";import"../../portal/styled.js";import"../../tooltip/styled.js";import"../../tooltip/arrow/styled.js";import"../../../theme/index.js";import"../../tooltip/context.js";import{PdfBigIcon as c}from"../../../icons/pdf-big/index.js";import{TxtBigIcon as p}from"../../../icons/txt-big/index.js";import{WordBigIcon as a}from"../../../icons/word-big/index.js";import{XlsBigIcon as l}from"../../../icons/xls-big/index.js";import{useMessage as d}from"../context.js";import{AttachFileBigIcon as f}from"../../../icons/attach-file-big/index.js";import{useTheme as x}from"../../../theme/hook.js";const j=j=>{var{icon:h,name:g,size:y}=j,b=t(j,["icon","name","size"]);const $=x(),{variant:w}=d();let v;return v="string"!=typeof g||h?h:g.match(/.txt$/i)?i(p,{}):g.match(/.doc$/i)||g.match(/.docx$/i)?i(a,{}):g.match(/.xls$/i)||g.match(/.xlsx$/i)?i(l,{}):g.match(/.pdf$/i)?i(c,{}):i(f,{}),o(r,Object.assign({},b,{children:[i(n,{fill:$.default.colors.base.white,size:46,children:v}),o(e,{children:["string"==typeof g&&o(s,{$variant:w,children:[g.length>32&&"...",g.slice(-32)]}),"string"!=typeof g&&g,"string"==typeof y&&i(m,{$variant:w,children:y}),"string"!=typeof y&&y]})]}))};export{j as MessageFile,e as MessageFileInfo,s as MessageFileName,m as MessageFileSize,r as MessageFileStyled};
|
|
@@ -577,7 +577,6 @@ export declare const MessageFileInfo: import("styled-components").IStyledCompone
|
|
|
577
577
|
}>;
|
|
578
578
|
export interface MessageFileNameProps {
|
|
579
579
|
$variant: MessageVariant;
|
|
580
|
-
$color: MessageColor;
|
|
581
580
|
}
|
|
582
581
|
export declare const MessageFileName: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<{
|
|
583
582
|
variant?: import("@/ui/components/typography").TypographyVariant | undefined;
|
|
@@ -1163,7 +1162,6 @@ export declare const MessageFileSize: import("styled-components").IStyledCompone
|
|
|
1163
1162
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
1164
1163
|
ref?: import("react").Ref<HTMLSpanElement> | undefined;
|
|
1165
1164
|
$variant: MessageVariant;
|
|
1166
|
-
$color: MessageColor;
|
|
1167
1165
|
}>;
|
|
1168
1166
|
export declare const MessageFiles: import("styled-components").IStyledComponent<"web", {
|
|
1169
1167
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as e}from"styled-components";import{Typography as s}from"../../typography/index.js";const t=e.a.withConfig({displayName:"styled__MessageFileStyled",componentId:"sc-153xrgf-0"})(["display:flex;align-items:center;gap:12px;cursor:pointer;user-select:none;width:100%;"]),
|
|
1
|
+
import{styled as e}from"styled-components";import{Typography as s}from"../../typography/index.js";const t=e.a.withConfig({displayName:"styled__MessageFileStyled",componentId:"sc-153xrgf-0"})(["display:flex;align-items:center;gap:12px;cursor:pointer;user-select:none;width:100%;"]),i=e.div.withConfig({displayName:"styled__MessageFileInfo",componentId:"sc-153xrgf-1"})(["display:flex;flex-direction:column;gap:8px;align-items:flex-start;"]),a=e(s).attrs({variant:"body-m-medium"}).withConfig({displayName:"styled__MessageFileName",componentId:"sc-153xrgf-2"})(["color:",";"],({theme:e,$variant:s})=>"assistant"===s?e.colors.base.white:e.bright||"standard"===e.scheme&&"light"===e.mode?e.default.colors.base.black:e.default.colors.base.white),o=e(a).attrs({variant:"body-m-regular"}).withConfig({displayName:"styled__MessageFileSize",componentId:"sc-153xrgf-3"})([""]),l=e.div.withConfig({displayName:"styled__MessageFiles",componentId:"sc-153xrgf-4"})(["display:flex;flex-direction:column;align-items:flex-start;gap:12px;"]);export{i as MessageFileInfo,a as MessageFileName,o as MessageFileSize,t as MessageFileStyled,l as MessageFiles};
|