@bothub-chat/ui 2.62.0-fix-documentizer-45384cfa-72df-4d33-9a01-b5897b5b8dc3 → 2.62.0-fix-revers-dnd-5c9648b1-351b-49a0-a30e-f58d12a4ecbc
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/components/block/styled.d.ts +0 -1
- package/dist/components/bookmark/list/styled.d.ts +0 -1
- package/dist/components/dropzone-field/index.js +1 -1
- package/dist/components/menu-dropdown/styled.d.ts +0 -1
- package/dist/components/menu-tabs/styled.d.ts +0 -1
- package/dist/components/message/button/list/styled.d.ts +0 -1
- package/dist/components/message/list/styled.d.ts +0 -1
- package/dist/components/message/styled.d.ts +0 -1
- package/dist/components/modal/modal-window/styled.d.ts +0 -1
- package/dist/components/scrollbar/index.d.ts +0 -1
- package/dist/components/scrollbar/index.js +1 -1
- package/dist/components/scrollbar/styled.d.ts +0 -1
- package/dist/components/scrollbar/styled.js +1 -1
- package/dist/components/select-field/select-modal/option/checkbox-group/index.js +1 -1
- package/dist/components/sidebar/styled.d.ts +0 -1
- package/dist/components/tab/list/styled.d.ts +0 -1
- package/dist/components/table/styled.d.ts +0 -1
- package/package.json +1 -1
|
@@ -882,7 +882,6 @@ export declare const BlockBodyScrollbarWrapper: import("styled-components").ISty
|
|
|
882
882
|
withStickyBottom?: boolean | undefined;
|
|
883
883
|
defaultStickyBottom?: boolean | undefined;
|
|
884
884
|
isHorizontalScrollbar?: boolean | undefined;
|
|
885
|
-
useAbsoluteContent?: boolean | undefined;
|
|
886
885
|
onScroll?: import("@/ui/components/scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
887
886
|
children?: import("react").ReactNode;
|
|
888
887
|
ref?: import("react").Ref<import("@/ui/components/scrollbar").ScrollbarRef> | undefined;
|
|
@@ -863,7 +863,6 @@ export declare const BookmarkListScrollbarWrapper: import("styled-components").I
|
|
|
863
863
|
withStickyBottom?: boolean | undefined;
|
|
864
864
|
defaultStickyBottom?: boolean | undefined;
|
|
865
865
|
isHorizontalScrollbar?: boolean | undefined;
|
|
866
|
-
useAbsoluteContent?: boolean | undefined;
|
|
867
866
|
onScroll?: import("@/ui/components/scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
868
867
|
children?: import("react").ReactNode;
|
|
869
868
|
ref?: import("react").Ref<import("@/ui/components/scrollbar").ScrollbarRef> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as
|
|
1
|
+
import{__rest as e}from"tslib";import{jsxs as t,jsx as r}from"react/jsx-runtime";import a,{forwardRef as l,useId as i,useState as n,useCallback as s}from"react";import{Typography as o}from"../typography/index.js";import{DropzoneFieldStyled as p,DropzoneFieldLabels as d,DropzoneFieldRightLabelsContainer as c,DropzoneFieldRightLabel as m,DropzoneFieldInput as f,DropzoneFieldPlaceholder as h}from"./styled.js";const u=l((l,u)=>{var{leftLabel:g,rightLabels:v,placeholder:y,files:b,onChange:L,fullWidth:W=!1,disabled:D=!1,multiple:C=!0,accept:j}=l,w=e(l,["leftLabel","rightLabels","placeholder","files","onChange","fullWidth","disabled","multiple","accept"]);const x=i(),[A,M]=n(!1),O=s(e=>{null==L||L(e)},[L]),[T,F]=Array.isArray(b)?[b,O]:n([]),$=s(e=>{var t;const r=[...null!==(t=e.currentTarget.files)&&void 0!==t?t:[]];F(C?[...new Map([...r,...T].map(e=>[e.name,e])).values()]:[...r].slice(0,1))},[T,F,C]),k=s(e=>{var t;e.preventDefault();const r=[...null!==(t=e.dataTransfer.files)&&void 0!==t?t:[]].filter(e=>((e,t)=>!t||t.split(",").map(e=>e.trim()).some(t=>t.startsWith(".")?e.name.toLowerCase().endsWith(t.toLowerCase()):t.endsWith("/*")?e.type.startsWith(t.replace("/*","")):e.type===t))(e,j));F(C?[...new Map([...r,...T].map(e=>[e.name,e])).values()]:[...r].slice(0,1)),M(!1)},[T,F,C,j]),q=s(e=>{e.preventDefault(),M(!0)},[]),z=s(e=>{e.preventDefault(),M(!1)},[]);return t(p,Object.assign({onDrop:k,onDragOver:q,onDragLeave:z,$fullWidth:W,"data-dragged":A},w,{children:[t(d,{children:[g&&"string"==typeof g?r(o,{variant:"body-m-regular",children:g}):g,!!v&&r(c,{children:v.map((e,t)=>r(a.Fragment,{children:"string"==typeof e?r(m,{children:e}):e},t))})]}),r(f,{id:x,type:"file",multiple:C,accept:j,onChange:$,disabled:D,ref:u}),!!y&&r(h,{children:y})]}))});export{u as DropzoneField};
|
|
@@ -1732,7 +1732,6 @@ export declare const MenuDropdownBlockScrollbarWrapper: import("styled-component
|
|
|
1732
1732
|
withStickyBottom?: boolean | undefined;
|
|
1733
1733
|
defaultStickyBottom?: boolean | undefined;
|
|
1734
1734
|
isHorizontalScrollbar?: boolean | undefined;
|
|
1735
|
-
useAbsoluteContent?: boolean | undefined;
|
|
1736
1735
|
onScroll?: import("../scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
1737
1736
|
children?: import("react").ReactNode;
|
|
1738
1737
|
ref?: import("react").Ref<import("../scrollbar").ScrollbarRef> | undefined;
|
|
@@ -579,7 +579,6 @@ export declare const MenuTabsWrapper: import("styled-components").IStyledCompone
|
|
|
579
579
|
withStickyBottom?: boolean | undefined;
|
|
580
580
|
defaultStickyBottom?: boolean | undefined;
|
|
581
581
|
isHorizontalScrollbar?: boolean | undefined;
|
|
582
|
-
useAbsoluteContent?: boolean | undefined;
|
|
583
582
|
onScroll?: import("../scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
584
583
|
children?: import("react").ReactNode;
|
|
585
584
|
ref?: import("react").Ref<import("../scrollbar").ScrollbarRef> | undefined;
|
|
@@ -295,7 +295,6 @@ export declare const MessageButtonsScrollbarWrapper: import("styled-components")
|
|
|
295
295
|
withStickyBottom?: boolean | undefined;
|
|
296
296
|
defaultStickyBottom?: boolean | undefined;
|
|
297
297
|
isHorizontalScrollbar?: boolean | undefined;
|
|
298
|
-
useAbsoluteContent?: boolean | undefined;
|
|
299
298
|
onScroll?: import("@/ui/components/scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
300
299
|
children?: import("react").ReactNode;
|
|
301
300
|
ref?: import("react").Ref<import("@/ui/components/scrollbar").ScrollbarRef> | undefined;
|
|
@@ -295,7 +295,6 @@ export declare const MessagesScrollbarWrapper: import("styled-components").IStyl
|
|
|
295
295
|
withStickyBottom?: boolean | undefined;
|
|
296
296
|
defaultStickyBottom?: boolean | undefined;
|
|
297
297
|
isHorizontalScrollbar?: boolean | undefined;
|
|
298
|
-
useAbsoluteContent?: boolean | undefined;
|
|
299
298
|
onScroll?: import("@/ui/components/scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
300
299
|
children?: import("react").ReactNode;
|
|
301
300
|
ref?: import("react").Ref<import("@/ui/components/scrollbar").ScrollbarRef> | undefined;
|
|
@@ -2621,7 +2621,6 @@ export declare const MessageBlockScrollbarWrapper: import("styled-components").I
|
|
|
2621
2621
|
withStickyBottom?: boolean | undefined;
|
|
2622
2622
|
defaultStickyBottom?: boolean | undefined;
|
|
2623
2623
|
isHorizontalScrollbar?: boolean | undefined;
|
|
2624
|
-
useAbsoluteContent?: boolean | undefined;
|
|
2625
2624
|
onScroll?: import("@/ui/components/scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
2626
2625
|
children?: import("react").ReactNode;
|
|
2627
2626
|
ref?: import("react").Ref<import("@/ui/components/scrollbar").ScrollbarRef> | undefined;
|
|
@@ -2782,7 +2782,6 @@ export declare const ModalWindowBodyScrollbarWrapper: import("styled-components"
|
|
|
2782
2782
|
withStickyBottom?: boolean | undefined;
|
|
2783
2783
|
defaultStickyBottom?: boolean | undefined;
|
|
2784
2784
|
isHorizontalScrollbar?: boolean | undefined;
|
|
2785
|
-
useAbsoluteContent?: boolean | undefined;
|
|
2786
2785
|
onScroll?: import("@/ui/components/scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
2787
2786
|
children?: import("react").ReactNode;
|
|
2788
2787
|
ref?: import("react").Ref<import("@/ui/components/scrollbar").ScrollbarRef> | undefined;
|
|
@@ -13,7 +13,6 @@ export interface ScrollbarProps extends React.PropsWithChildren {
|
|
|
13
13
|
withStickyBottom?: boolean;
|
|
14
14
|
defaultStickyBottom?: boolean;
|
|
15
15
|
isHorizontalScrollbar?: boolean;
|
|
16
|
-
useAbsoluteContent?: boolean;
|
|
17
16
|
onScroll?: ScrollbarScrollEventHandler;
|
|
18
17
|
}
|
|
19
18
|
export type ScrollbarScrollEventHandler = (event: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{forwardRef as t,useRef as o,useState as l,useCallback as s,useEffect as i,useImperativeHandle as n}from"react";import{ScrollbarContent as c,ScrollbarStyled as a,ScrollbarShadows as u}from"./styled.js";import{ScrollbarProvider as d}from"./context.js";export{ScrollbarContext,useScrollbar}from"./context.js";import"tslib";import"@react-spring/web";import"./shadow/styled.js";import"../../theme/index.js";export{ScrollbarStyle}from"./style/styled.js";const m=t(({className:t,scrollbarClassName:m,variant:h="primary",size:p=6,scrollShadows:v,scrollLocked:w,overflow:f="auto",disabled:b=!1,disableShadows:S=!1,children:T,onScroll:g,defaultStickyBottom:L=!1,withStickyBottom:x=!1,isHorizontalScrollbar:y=!1},z)=>{var j;const H=o(null),[E,M]=l(!1),[$,B]=l(!1),[N,k]=l(!1),[C,O]=l(!1),R=!!v,W=!!w,[D,Y]=l(L),[q,A]=l(0),F=null!==(j=null==v?void 0:v.size)&&void 0!==j?j:60,G=s(e=>{const{scrollTop:r,scrollHeight:t,clientHeight:o,scrollLeft:l,scrollWidth:s,clientWidth:i}=e,n=F>o,c=F>i,a=!n&&0!==r,u=!n&&Math.round(r)+1<t-o;k(a),O(u),M(!c&&0!==l),B(!c&&Math.round(l)+1<s-i);const d=q>e.scrollTop;if(A(e.scrollTop),x){const r=e.clientHeight-Math.ceil(e.scrollHeight-e.scrollTop);Math.abs(r)<20&&!d?Y(!0):d&&Y(!1)}b&&e.scrollTo(0,0),null==g||g({isTop:a,isBottom:u,previousScrollTop:q})},[H.current,b,q,x,F,g]);i(()=>{if(!y)return;const e=e=>{H.current&&(e.preventDefault(),H.current.scrollLeft+=e.deltaY)},r=H.current;return r&&r.addEventListener("wheel",e,{passive:!0}),()=>{r&&r.removeEventListener("wheel",e)}},[y,H.current]);const I=s(e=>{var r;const t=H.current;if(null!==t&&(W||void 0!==e)&&null!==t){const{side:o}=null!==(r=null!=e?e:w)&&void 0!==r?r:{side:"bottom"};if("bottom"===o)t.scrollTop=t.scrollHeight}},[W,w]);n(z,()=>({element:H.current,setScroll:I}),[H.current,I]),i(()=>{const e=H.current;if(null===e)return;G(e);let r=window.setTimeout(()=>{G(e)},500),t=null;D&&(t=new MutationObserver(()=>{G(e),D&&!W&&(e.scrollTop=e.scrollHeight)}),t.observe(e,{childList:!0,subtree:!0}));const o=()=>{window.clearTimeout(r),G(e),r=window.setTimeout(()=>{G(e)},500)};window.addEventListener("resize",o);let l=null;return H.current&&(l=new ResizeObserver(e=>{e.forEach(e=>{G(e.target)})}),l.observe(H.current)),()=>{clearTimeout(r),null==t||t.disconnect(),window.removeEventListener("resize",o),null==l||l.disconnect()}},[H.current,G,D]);const J=e(c,{$variant:h,$size:p,$disabled:b,$overflow:f,ref:H,className:t,onScroll:()=>{H.current&&G(H.current)},children:T});return R?e(d,{scrollbarSize:p,scrollShadows:v,setScroll:I,disabled:b,isLeft:E,isRight:$,isTop:N,isBottom:C,children:r(a,{$overflow:f,className:m,children:[J,!S&&r(u,{children:[v.left,v.right,v.top,v.bottom]})]})}):J});export{m as Scrollbar,c as ScrollbarContent,d as ScrollbarProvider,u as ScrollbarShadows,a as ScrollbarStyled};
|
|
@@ -8,7 +8,6 @@ export interface ScrollbarContentProps {
|
|
|
8
8
|
$size: number;
|
|
9
9
|
$disabled: boolean;
|
|
10
10
|
$overflow: ScrollbarOverflow;
|
|
11
|
-
$useAbsolute?: boolean;
|
|
12
11
|
}
|
|
13
12
|
export declare const ScrollbarContent: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ScrollbarContentProps>>;
|
|
14
13
|
export declare const ScrollbarShadows: import("styled-components").IStyledComponent<"web", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as
|
|
1
|
+
import{styled as e,css as o}from"styled-components";import{adaptive as r}from"../../adaptive/index.js";const i=e.div.withConfig({displayName:"styled__ScrollbarStyled",componentId:"sc-tlqpsa-0"})(["position:relative;width:inherit;height:inherit;overflow:",";"],({$overflow:e})=>{switch(e){case"auto":return"hidden";case"visible":return"visible"}}),t=e.div.withConfig({displayName:"styled__ScrollbarContent",componentId:"sc-tlqpsa-1"})(["position:relative;width:inherit;height:inherit;overflow:",";",""],({$overflow:e})=>{switch(e){case"auto":return"auto";case"visible":return"visible"}},({theme:e,$disabled:i,$size:t,$variant:a})=>i?o(["&::-webkit-scrollbar{display:none;}"]):o(["&::-webkit-scrollbar{width:",";height:",";background:",";","}&::-webkit-scrollbar-thumb{background:",";","}&::-webkit-scrollbar-track{background:",";","}&::-webkit-scrollbar-corner{display:none;}",""],`${t}px`,`${t}px`,e.colors.grayScale.gray4,"secondary"===a&&o(["border-radius:",";"],t/2+"px"),"light"===e.mode?e.colors.accent.primary:e.colors.accent.primaryLight,"secondary"===a&&o(["border-radius:",";"],t/2+"px"),({theme:e})=>"light"===e.mode?e.colors.grayScale.gray4:e.colors.grayScale.gray5,"secondary"===a&&o(["border-radius:",";"],t/2+"px"),r(()=>({touch:o(["&::-webkit-scrollbar{display:none;}"])})))),a=e.div.withConfig({displayName:"styled__ScrollbarShadows",componentId:"sc-tlqpsa-2"})(["position:absolute;top:0px;bottom:0px;left:0px;right:0px;pointer-events:none;"]);export{t as ScrollbarContent,a as ScrollbarShadows,i as ScrollbarStyled};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as o,useLayoutEffect as i}from"react";import"tslib";import{IconProvider as n}from"../../../../icon/context.js";import"../../../../icon/styled.js";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{Checkbox as r}from"../../../../checkbox/index.js";import{SelectFieldCheckboxGroupOptionStyled as l,SelectFieldCheckboxGroupOptionHead as c,SelectFieldCheckboxGroupOptionHeadLeftSide as s,SelectFieldCheckboxGroupOptionHeadTextWrapper as
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as o,useLayoutEffect as i}from"react";import"tslib";import{IconProvider as n}from"../../../../icon/context.js";import"../../../../icon/styled.js";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{Checkbox as r}from"../../../../checkbox/index.js";import{SelectFieldCheckboxGroupOptionStyled as l,SelectFieldCheckboxGroupOptionHead as c,SelectFieldCheckboxGroupOptionHeadLeftSide as s,SelectFieldCheckboxGroupOptionHeadTextWrapper as d,SelectFieldCheckboxGroupOptionHeadText as p,SelectFieldCheckboxGroupOptionHeadCounter as m,SelectFieldCheckboxGroupOptionHeadRightSide as a,SelectFieldCheckboxGroupOptionArrow as h,SelectFieldCheckboxGroupOptionContent as f,ShowMoreButton as g}from"./styled.js";import{useTheme as y}from"../../../../../theme/hook.js";const k=({item:k,value:u,size:j,data:b,onOptionClick:x,onGroupCheckboxClick:v,icon:C,SelectFieldOptions:w})=>{var z,O;const I=y(),[F,Z]=o(!1),[$,B]=o("string"!=typeof k&&(null!==(z=k.open)&&void 0!==z&&z));let G;G="string"!=typeof k&&!!k.disabled;const P="string"!=typeof k?k.open:void 0;i(()=>{"string"!=typeof k&&B(Boolean(k.open))},[P]);const S="string"==typeof k?k:null!==(O=k.label)&&void 0!==O?O:k.value,q=b.length>5,A=F?b:b.slice(0,5),D=()=>{if(!b||0===b.length)return null;const e=b.filter(e=>"string"!=typeof e),t=e.filter(e=>"selected"in e&&!0===e.selected).length,o=e.length;return 0===t?null:t===o&&o>0?"все":t},E="string"!=typeof k&&"selected"in k&&k.selected,H="string"!=typeof k&&"checkedIcon"in k&&k.checkedIcon;return e(l,{children:[e(c,Object.assign({$disabled:G},!G&&{onClick:()=>{B(e=>!e)}},{children:[e(s,{children:["object"==typeof k&&k.icon&&t(n,{size:16,fill:I.colors.base.white,children:k.icon}),e(d,{children:[t(p,{children:S}),t(m,{children:null!==D()&&`(${D()})`})]})]}),e(a,{children:[C||t(h,{style:{transform:$?"rotateZ(180deg)":"rotateZ(0deg)"}}),t("div",{onClick:e=>{e.stopPropagation(),null==v||v(k)},children:t(r,{displayFlex:!0,checkedIcon:H,checked:E,size:16})})]})]})),$&&e(f,{children:[t(w,{value:u,data:A,size:j,onOptionClick:x}),q&&t(g,{onClick:()=>{Z(e=>!e)},children:F?"Скрыть ":"Показать "})]})]})};export{k as SelectFieldCheckboxGroupOption};
|
|
@@ -591,7 +591,6 @@ export declare const SidebarBodyScrollbarWrapper: import("styled-components").IS
|
|
|
591
591
|
withStickyBottom?: boolean | undefined;
|
|
592
592
|
defaultStickyBottom?: boolean | undefined;
|
|
593
593
|
isHorizontalScrollbar?: boolean | undefined;
|
|
594
|
-
useAbsoluteContent?: boolean | undefined;
|
|
595
594
|
onScroll?: import("@/ui/components/scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
596
595
|
children?: import("react").ReactNode;
|
|
597
596
|
ref?: import("react").Ref<import("@/ui/components/scrollbar").ScrollbarRef> | undefined;
|
|
@@ -863,7 +863,6 @@ export declare const TabMobileListScrollbarWrapper: import("styled-components").
|
|
|
863
863
|
withStickyBottom?: boolean | undefined;
|
|
864
864
|
defaultStickyBottom?: boolean | undefined;
|
|
865
865
|
isHorizontalScrollbar?: boolean | undefined;
|
|
866
|
-
useAbsoluteContent?: boolean | undefined;
|
|
867
866
|
onScroll?: import("@/ui/components/scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
868
867
|
children?: import("react").ReactNode;
|
|
869
868
|
ref?: import("react").Ref<import("@/ui/components/scrollbar").ScrollbarRef> | undefined;
|
|
@@ -295,7 +295,6 @@ export declare const TableScrollbarWrapper: import("styled-components").IStyledC
|
|
|
295
295
|
withStickyBottom?: boolean | undefined;
|
|
296
296
|
defaultStickyBottom?: boolean | undefined;
|
|
297
297
|
isHorizontalScrollbar?: boolean | undefined;
|
|
298
|
-
useAbsoluteContent?: boolean | undefined;
|
|
299
298
|
onScroll?: import("@/ui/components/scrollbar").ScrollbarScrollEventHandler | undefined;
|
|
300
299
|
children?: import("react").ReactNode;
|
|
301
300
|
ref?: import("react").Ref<import("@/ui/components/scrollbar").ScrollbarRef> | undefined;
|
package/package.json
CHANGED