@bothub-chat/ui 2.80.25 → 2.80.26
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/bookmark/index.d.ts +1 -0
- package/dist/components/bookmark/index.js +1 -1
- package/dist/components/bookmark/list/index.d.ts +1 -0
- package/dist/components/bookmark/list/index.js +1 -1
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/chip/index.js +1 -1
- package/dist/components/color-picker/menu/styled.d.ts +4 -1
- package/dist/components/header/index.d.ts +1 -0
- package/dist/components/header/index.js +1 -1
- package/dist/components/header/menu/toggle-button/index.d.ts +1 -0
- package/dist/components/header/menu/toggle-button/index.js +1 -1
- package/dist/components/input-message/index.d.ts +11 -0
- package/dist/components/input-message/index.js +1 -1
- package/dist/components/input-message/input-files.d.ts +1 -0
- package/dist/components/input-message/input-files.js +1 -1
- package/dist/components/input-message/styled.d.ts +1 -0
- package/dist/components/input-message/use-input.d.ts +2 -1
- package/dist/components/input-message/use-input.js +1 -1
- package/dist/components/logo/index.d.ts +1 -0
- package/dist/components/logo/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message/actions/action-button/index.d.ts +2 -0
- package/dist/components/message/actions/action-button/index.js +1 -1
- package/dist/components/message/actions/index.d.ts +2 -1
- package/dist/components/message/actions/index.js +1 -1
- package/dist/components/message/components/image/index.js +1 -1
- package/dist/components/message/search-results/index.d.ts +1 -0
- package/dist/components/message/search-results/index.js +1 -1
- package/dist/components/message/search-results/styled.d.ts +3 -292
- package/dist/components/message/search-results/styled.js +1 -1
- package/dist/components/modal/modal-window/index.d.ts +4 -0
- package/dist/components/modal/modal-window/index.js +1 -1
- package/dist/components/notification/index.d.ts +1 -0
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification/list/index.d.ts +1 -0
- package/dist/components/notification/list/index.js +1 -1
- package/dist/components/select-field/select-modal/styled.d.ts +4 -1
- package/dist/components/select-field/styled.d.ts +1 -0
- package/dist/components/sidebar/chat/index.d.ts +2 -0
- package/dist/components/sidebar/chat/index.js +1 -1
- package/dist/components/sidebar/index.d.ts +1 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/toggle-button/index.d.ts +4 -1
- package/dist/components/sidebar/toggle-button/index.js +1 -1
- package/dist/components/text-field/index.d.ts +4 -0
- package/dist/components/text-field/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/package.json +1 -1
|
@@ -567,298 +567,9 @@ export declare const SearchResultsItemStyled: import("styled-components").IStyle
|
|
|
567
567
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
568
568
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
569
569
|
}>;
|
|
570
|
-
export declare const SearchResultsItemLink: import("styled-components").IStyledComponent<"web", {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
download?: any;
|
|
574
|
-
href?: string | undefined | undefined;
|
|
575
|
-
hrefLang?: string | undefined | undefined;
|
|
576
|
-
media?: string | undefined | undefined;
|
|
577
|
-
ping?: string | undefined | undefined;
|
|
578
|
-
target?: import("react").HTMLAttributeAnchorTarget | undefined;
|
|
579
|
-
type?: string | undefined | undefined;
|
|
580
|
-
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
581
|
-
defaultChecked?: boolean | undefined | undefined;
|
|
582
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
583
|
-
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
584
|
-
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
585
|
-
accessKey?: string | undefined | undefined;
|
|
586
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
587
|
-
autoFocus?: boolean | undefined | undefined;
|
|
588
|
-
className?: string | undefined | undefined;
|
|
589
|
-
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
590
|
-
contextMenu?: string | undefined | undefined;
|
|
591
|
-
dir?: string | undefined | undefined;
|
|
592
|
-
draggable?: (boolean | "false" | "true") | undefined;
|
|
593
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
594
|
-
hidden?: boolean | undefined | undefined;
|
|
595
|
-
id?: string | undefined | undefined;
|
|
596
|
-
lang?: string | undefined | undefined;
|
|
597
|
-
nonce?: string | undefined | undefined;
|
|
598
|
-
slot?: string | undefined | undefined;
|
|
599
|
-
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
600
|
-
style?: import("react").CSSProperties | undefined;
|
|
601
|
-
tabIndex?: number | undefined | undefined;
|
|
602
|
-
title?: string | undefined | undefined;
|
|
603
|
-
translate?: "yes" | "no" | undefined | undefined;
|
|
604
|
-
radioGroup?: string | undefined | undefined;
|
|
605
|
-
role?: import("react").AriaRole | undefined;
|
|
606
|
-
about?: string | undefined | undefined;
|
|
607
|
-
content?: string | undefined | undefined;
|
|
608
|
-
datatype?: string | undefined | undefined;
|
|
609
|
-
inlist?: any;
|
|
610
|
-
prefix?: string | undefined | undefined;
|
|
611
|
-
property?: string | undefined | undefined;
|
|
612
|
-
rel?: string | undefined | undefined;
|
|
613
|
-
resource?: string | undefined | undefined;
|
|
614
|
-
rev?: string | undefined | undefined;
|
|
615
|
-
typeof?: string | undefined | undefined;
|
|
616
|
-
vocab?: string | undefined | undefined;
|
|
617
|
-
autoCorrect?: string | undefined | undefined;
|
|
618
|
-
autoSave?: string | undefined | undefined;
|
|
619
|
-
color?: string | undefined | undefined;
|
|
620
|
-
itemProp?: string | undefined | undefined;
|
|
621
|
-
itemScope?: boolean | undefined | undefined;
|
|
622
|
-
itemType?: string | undefined | undefined;
|
|
623
|
-
itemID?: string | undefined | undefined;
|
|
624
|
-
itemRef?: string | undefined | undefined;
|
|
625
|
-
results?: number | undefined | undefined;
|
|
626
|
-
security?: string | undefined | undefined;
|
|
627
|
-
unselectable?: "on" | "off" | undefined | undefined;
|
|
628
|
-
popover?: "" | "auto" | "manual" | undefined | undefined;
|
|
629
|
-
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
630
|
-
popoverTarget?: string | undefined | undefined;
|
|
631
|
-
inert?: boolean | undefined | undefined;
|
|
632
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
633
|
-
is?: string | undefined | undefined;
|
|
634
|
-
exportparts?: string | undefined | undefined;
|
|
635
|
-
part?: string | undefined | undefined;
|
|
636
|
-
"aria-activedescendant"?: string | undefined | undefined;
|
|
637
|
-
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
638
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
639
|
-
"aria-braillelabel"?: string | undefined | undefined;
|
|
640
|
-
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
641
|
-
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
642
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
643
|
-
"aria-colcount"?: number | undefined | undefined;
|
|
644
|
-
"aria-colindex"?: number | undefined | undefined;
|
|
645
|
-
"aria-colindextext"?: string | undefined | undefined;
|
|
646
|
-
"aria-colspan"?: number | undefined | undefined;
|
|
647
|
-
"aria-controls"?: string | undefined | undefined;
|
|
648
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
649
|
-
"aria-describedby"?: string | undefined | undefined;
|
|
650
|
-
"aria-description"?: string | undefined | undefined;
|
|
651
|
-
"aria-details"?: string | undefined | undefined;
|
|
652
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
653
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
654
|
-
"aria-errormessage"?: string | undefined | undefined;
|
|
655
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
656
|
-
"aria-flowto"?: string | undefined | undefined;
|
|
657
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
658
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
659
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
660
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
661
|
-
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
662
|
-
"aria-label"?: string | undefined | undefined;
|
|
663
|
-
"aria-labelledby"?: string | undefined | undefined;
|
|
664
|
-
"aria-level"?: number | undefined | undefined;
|
|
665
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
666
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
667
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
668
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
669
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
670
|
-
"aria-owns"?: string | undefined | undefined;
|
|
671
|
-
"aria-placeholder"?: string | undefined | undefined;
|
|
672
|
-
"aria-posinset"?: number | undefined | undefined;
|
|
673
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
674
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
675
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
676
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
677
|
-
"aria-roledescription"?: string | undefined | undefined;
|
|
678
|
-
"aria-rowcount"?: number | undefined | undefined;
|
|
679
|
-
"aria-rowindex"?: number | undefined | undefined;
|
|
680
|
-
"aria-rowindextext"?: string | undefined | undefined;
|
|
681
|
-
"aria-rowspan"?: number | undefined | undefined;
|
|
682
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
683
|
-
"aria-setsize"?: number | undefined | undefined;
|
|
684
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
685
|
-
"aria-valuemax"?: number | undefined | undefined;
|
|
686
|
-
"aria-valuemin"?: number | undefined | undefined;
|
|
687
|
-
"aria-valuenow"?: number | undefined | undefined;
|
|
688
|
-
"aria-valuetext"?: string | undefined | undefined;
|
|
689
|
-
children?: import("react").ReactNode;
|
|
690
|
-
dangerouslySetInnerHTML?: {
|
|
691
|
-
__html: string | TrustedHTML;
|
|
692
|
-
} | undefined | undefined;
|
|
693
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLAnchorElement> | undefined;
|
|
694
|
-
onCopyCapture?: import("react").ClipboardEventHandler<HTMLAnchorElement> | undefined;
|
|
695
|
-
onCut?: import("react").ClipboardEventHandler<HTMLAnchorElement> | undefined;
|
|
696
|
-
onCutCapture?: import("react").ClipboardEventHandler<HTMLAnchorElement> | undefined;
|
|
697
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLAnchorElement> | undefined;
|
|
698
|
-
onPasteCapture?: import("react").ClipboardEventHandler<HTMLAnchorElement> | undefined;
|
|
699
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLAnchorElement> | undefined;
|
|
700
|
-
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLAnchorElement> | undefined;
|
|
701
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLAnchorElement> | undefined;
|
|
702
|
-
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLAnchorElement> | undefined;
|
|
703
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLAnchorElement> | undefined;
|
|
704
|
-
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLAnchorElement> | undefined;
|
|
705
|
-
onFocus?: import("react").FocusEventHandler<HTMLAnchorElement> | undefined;
|
|
706
|
-
onFocusCapture?: import("react").FocusEventHandler<HTMLAnchorElement> | undefined;
|
|
707
|
-
onBlur?: import("react").FocusEventHandler<HTMLAnchorElement> | undefined;
|
|
708
|
-
onBlurCapture?: import("react").FocusEventHandler<HTMLAnchorElement> | undefined;
|
|
709
|
-
onChange?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
710
|
-
onChangeCapture?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
711
|
-
onBeforeInput?: import("react").InputEventHandler<HTMLAnchorElement> | undefined;
|
|
712
|
-
onBeforeInputCapture?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
713
|
-
onInput?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
714
|
-
onInputCapture?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
715
|
-
onReset?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
716
|
-
onResetCapture?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
717
|
-
onSubmit?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
718
|
-
onSubmitCapture?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
719
|
-
onInvalid?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
720
|
-
onInvalidCapture?: import("react").FormEventHandler<HTMLAnchorElement> | undefined;
|
|
721
|
-
onLoad?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
722
|
-
onLoadCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
723
|
-
onError?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
724
|
-
onErrorCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
725
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLAnchorElement> | undefined;
|
|
726
|
-
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLAnchorElement> | undefined;
|
|
727
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLAnchorElement> | undefined;
|
|
728
|
-
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLAnchorElement> | undefined;
|
|
729
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLAnchorElement> | undefined;
|
|
730
|
-
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLAnchorElement> | undefined;
|
|
731
|
-
onAbort?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
732
|
-
onAbortCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
733
|
-
onCanPlay?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
734
|
-
onCanPlayCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
735
|
-
onCanPlayThrough?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
736
|
-
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
737
|
-
onDurationChange?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
738
|
-
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
739
|
-
onEmptied?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
740
|
-
onEmptiedCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
741
|
-
onEncrypted?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
742
|
-
onEncryptedCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
743
|
-
onEnded?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
744
|
-
onEndedCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
745
|
-
onLoadedData?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
746
|
-
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
747
|
-
onLoadedMetadata?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
748
|
-
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
749
|
-
onLoadStart?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
750
|
-
onLoadStartCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
751
|
-
onPause?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
752
|
-
onPauseCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
753
|
-
onPlay?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
754
|
-
onPlayCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
755
|
-
onPlaying?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
756
|
-
onPlayingCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
757
|
-
onProgress?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
758
|
-
onProgressCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
759
|
-
onRateChange?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
760
|
-
onRateChangeCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
761
|
-
onSeeked?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
762
|
-
onSeekedCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
763
|
-
onSeeking?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
764
|
-
onSeekingCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
765
|
-
onStalled?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
766
|
-
onStalledCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
767
|
-
onSuspend?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
768
|
-
onSuspendCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
769
|
-
onTimeUpdate?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
770
|
-
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
771
|
-
onVolumeChange?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
772
|
-
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
773
|
-
onWaiting?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
774
|
-
onWaitingCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
775
|
-
onAuxClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
776
|
-
onAuxClickCapture?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
777
|
-
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
778
|
-
onClickCapture?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
779
|
-
onContextMenu?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
780
|
-
onContextMenuCapture?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
781
|
-
onDoubleClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
782
|
-
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
783
|
-
onDrag?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
784
|
-
onDragCapture?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
785
|
-
onDragEnd?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
786
|
-
onDragEndCapture?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
787
|
-
onDragEnter?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
788
|
-
onDragEnterCapture?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
789
|
-
onDragExit?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
790
|
-
onDragExitCapture?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
791
|
-
onDragLeave?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
792
|
-
onDragLeaveCapture?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
793
|
-
onDragOver?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
794
|
-
onDragOverCapture?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
795
|
-
onDragStart?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
796
|
-
onDragStartCapture?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
797
|
-
onDrop?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
798
|
-
onDropCapture?: import("react").DragEventHandler<HTMLAnchorElement> | undefined;
|
|
799
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
800
|
-
onMouseDownCapture?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
801
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
802
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
803
|
-
onMouseMove?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
804
|
-
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
805
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
806
|
-
onMouseOutCapture?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
807
|
-
onMouseOver?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
808
|
-
onMouseOverCapture?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
809
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
810
|
-
onMouseUpCapture?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
811
|
-
onSelect?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
812
|
-
onSelectCapture?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
813
|
-
onTouchCancel?: import("react").TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
814
|
-
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
815
|
-
onTouchEnd?: import("react").TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
816
|
-
onTouchEndCapture?: import("react").TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
817
|
-
onTouchMove?: import("react").TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
818
|
-
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
819
|
-
onTouchStart?: import("react").TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
820
|
-
onTouchStartCapture?: import("react").TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
821
|
-
onPointerDown?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
822
|
-
onPointerDownCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
823
|
-
onPointerMove?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
824
|
-
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
825
|
-
onPointerUp?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
826
|
-
onPointerUpCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
827
|
-
onPointerCancel?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
828
|
-
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
829
|
-
onPointerEnter?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
830
|
-
onPointerLeave?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
831
|
-
onPointerOver?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
832
|
-
onPointerOverCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
833
|
-
onPointerOut?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
834
|
-
onPointerOutCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
835
|
-
onGotPointerCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
836
|
-
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
837
|
-
onLostPointerCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
838
|
-
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLAnchorElement> | undefined;
|
|
839
|
-
onScroll?: import("react").UIEventHandler<HTMLAnchorElement> | undefined;
|
|
840
|
-
onScrollCapture?: import("react").UIEventHandler<HTMLAnchorElement> | undefined;
|
|
841
|
-
onScrollEnd?: import("react").UIEventHandler<HTMLAnchorElement> | undefined;
|
|
842
|
-
onScrollEndCapture?: import("react").UIEventHandler<HTMLAnchorElement> | undefined;
|
|
843
|
-
onWheel?: import("react").WheelEventHandler<HTMLAnchorElement> | undefined;
|
|
844
|
-
onWheelCapture?: import("react").WheelEventHandler<HTMLAnchorElement> | undefined;
|
|
845
|
-
onAnimationStart?: import("react").AnimationEventHandler<HTMLAnchorElement> | undefined;
|
|
846
|
-
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLAnchorElement> | undefined;
|
|
847
|
-
onAnimationEnd?: import("react").AnimationEventHandler<HTMLAnchorElement> | undefined;
|
|
848
|
-
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLAnchorElement> | undefined;
|
|
849
|
-
onAnimationIteration?: import("react").AnimationEventHandler<HTMLAnchorElement> | undefined;
|
|
850
|
-
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLAnchorElement> | undefined;
|
|
851
|
-
onToggle?: import("react").ToggleEventHandler<HTMLAnchorElement> | undefined;
|
|
852
|
-
onBeforeToggle?: import("react").ToggleEventHandler<HTMLAnchorElement> | undefined;
|
|
853
|
-
onTransitionCancel?: import("react").TransitionEventHandler<HTMLAnchorElement> | undefined;
|
|
854
|
-
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLAnchorElement> | undefined;
|
|
855
|
-
onTransitionEnd?: import("react").TransitionEventHandler<HTMLAnchorElement> | undefined;
|
|
856
|
-
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLAnchorElement> | undefined;
|
|
857
|
-
onTransitionRun?: import("react").TransitionEventHandler<HTMLAnchorElement> | undefined;
|
|
858
|
-
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLAnchorElement> | undefined;
|
|
859
|
-
onTransitionStart?: import("react").TransitionEventHandler<HTMLAnchorElement> | undefined;
|
|
860
|
-
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLAnchorElement> | undefined;
|
|
861
|
-
}>;
|
|
570
|
+
export declare const SearchResultsItemLink: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
|
|
571
|
+
$pendingMessage: boolean;
|
|
572
|
+
}>>;
|
|
862
573
|
export declare const SearchResultsItemHeader: import("styled-components").IStyledComponent<"web", {
|
|
863
574
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
864
575
|
key?: import("react").Key | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as e}from"styled-components";import{Typography as t}from"../../typography/index.js";import{TypographyStyled as o}from"../../typography/styled.js";const
|
|
1
|
+
import{styled as e}from"styled-components";import{Typography as t}from"../../typography/index.js";import{TypographyStyled as o}from"../../typography/styled.js";const a=e.ul.withConfig({displayName:"styled__SearchResultsList",componentId:"sc-kytp0h-0"})(["width:100%;display:flex;flex-direction:column;gap:10px;padding-left:0;margin:0;"]),i=e.li.withConfig({displayName:"styled__SearchResultsItemStyled",componentId:"sc-kytp0h-1"})(["display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:20px;position:relative;overflow:hidden;background-color:transparent;transition:background-color 0.3s ease-out;& > div[data-source-content] ","{transition:color 0.3s ease-out;}&:hover{background-color:",";& > div[data-source-content] ","{color:",";}}"],o,({theme:e})=>"light"===e.mode?"rgba(71, 133, 255, 0.2)":"rgba(28, 100, 242, 0.2)",o,({theme:e})=>e.colors.base.white),s=e.a.withConfig({displayName:"styled__SearchResultsItemLink",componentId:"sc-kytp0h-2"})(["position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:",";"],({$pendingMessage:e})=>e?"not-allowed":"pointer"),n=e.div.withConfig({displayName:"styled__SearchResultsItemHeader",componentId:"sc-kytp0h-3"})(["display:flex;align-items:center;justify-content:flex-start;gap:10px;"]),r=e(t).withConfig({displayName:"styled__SearchResultsItemName",componentId:"sc-kytp0h-4"})(["&[data-source-name]{color:",";}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],({theme:e})=>e.colors.base.white),d=e.div.withConfig({displayName:"styled__SearchResultsItemNumber",componentId:"sc-kytp0h-5"})(["margin-left:auto;display:flex;align-items:center;justify-content:center;padding:7px;min-width:24px;height:22px;border-radius:100px;background-color:",";& > span[data-source-number]{color:#fff;}"],({theme:e})=>e.colors.grayScale.gray1),l=e.div.withConfig({displayName:"styled__SearchResultsItemDownload",componentId:"sc-kytp0h-6"})(["display:flex;align-items:center;justify-content:center;z-index:3;padding:7px;cursor:pointer;"]),p=e(t).withConfig({displayName:"styled__SearchResultsItemTitle",componentId:"sc-kytp0h-7"})(["&[data-source-title]{color:",";}"],({theme:e})=>e.colors.base.white),c=e.div.withConfig({displayName:"styled__SearchResultsItemContent",componentId:"sc-kytp0h-8"})(["max-height:80px;overflow:hidden;&[data-has-overflow='true']{-webkit-mask:linear-gradient( to bottom,rgba(0,0,0,1) 80%,rgba(0,0,0,0) 100% );mask:linear-gradient( to bottom,rgba(0,0,0,1) 80%,rgba(0,0,0,0) 100% );}"]);export{c as SearchResultsItemContent,l as SearchResultsItemDownload,n as SearchResultsItemHeader,s as SearchResultsItemLink,r as SearchResultsItemName,d as SearchResultsItemNumber,i as SearchResultsItemStyled,p as SearchResultsItemTitle,a as SearchResultsList};
|
|
@@ -9,6 +9,8 @@ export type ModalWindowlProps = {
|
|
|
9
9
|
hideCloseButton?: boolean;
|
|
10
10
|
onClose?: ModalCloseEventHandler;
|
|
11
11
|
onHeightChange?: (height: number) => void;
|
|
12
|
+
'aria-label'?: string;
|
|
13
|
+
closeAriaLabel?: string;
|
|
12
14
|
} & PropsWithChildren;
|
|
13
15
|
export declare const ModalWindow: import("react").ForwardRefExoticComponent<{
|
|
14
16
|
open: boolean;
|
|
@@ -19,6 +21,8 @@ export declare const ModalWindow: import("react").ForwardRefExoticComponent<{
|
|
|
19
21
|
hideCloseButton?: boolean;
|
|
20
22
|
onClose?: ModalCloseEventHandler;
|
|
21
23
|
onHeightChange?: (height: number) => void;
|
|
24
|
+
'aria-label'?: string;
|
|
25
|
+
closeAriaLabel?: string;
|
|
22
26
|
} & {
|
|
23
27
|
children?: ReactNode | undefined;
|
|
24
28
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useTransition as t}from"@react-spring/web";import{forwardRef as n,useId as l,useRef as o,useCallback as i,useEffect as a}from"react";import{ModalWindowContent as c,ModalWindowStyled as s,ModalWindowBody as u,ModalWindowTitle as d,ModalWindowCloseButton as m,ModalWindowCloseButtonIcon as f,ModalWindowBodyContent as p,ModalWindowBodyScrollbarWrapper as g}from"./styled.js";const h=n(({children:n,open:h,title:y=null,scrollbar:v=!1,images:b,className:C,hideCloseButton:k=!1,onClose:w,onHeightChange:B,"aria-label":E,closeAriaLabel:L},R)=>{const j=l(),x=o(null),z=o(null),N=i(e=>{var r;if(null===(r=z.current)||void 0===r||r.disconnect(),z.current=null,x.current=e,function(e,r){"function"==typeof e?e(r):null!=e&&(e.current=r)}(R,e),e){null==B||B(e.getBoundingClientRect().height);const r=new ResizeObserver(()=>{x.current&&(null==B||B(x.current.getBoundingClientRect().height))});r.observe(e),z.current=r}},[B,R]);a(()=>{if(!h)return;const e=e=>{"Escape"===e.key&&(e.stopPropagation(),null==w||w())};return document.addEventListener("keyup",e,!0),()=>{document.removeEventListener("keyup",e,!0)}},[h,w]);const A=t(h,{from:{opacity:0,transform:"scale(0.9)"},enter:{opacity:1,transform:"scale(1)"},leave:{opacity:0,transform:"scale(0.9)"},config:{duration:200}}),H=e(c,{children:n});return A((t,n)=>n&&r(s,{ref:N,style:t,className:C,role:"dialog","aria-modal":"true","aria-labelledby":"string"==typeof y?j:void 0,"aria-label":"string"==typeof y?void 0:E,children:[b,r(u,{children:["string"==typeof y?e(d,{id:j,children:y}):y,!k&&e(m,{onClick:w,"aria-label":L,"data-test":"close modal",children:e(f,{size:24})}),e(p,{children:v?e(g,{overflow:v?"auto":"visible",children:H}):H})]})]}))});export{h as ModalWindow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as i,useCallback as r,useEffect as e}from"react";import{useSpring as n,useTransition as s}from"@react-spring/web";import{NotificationStyled as a,NotifyProgressBar as c,NotificationContent as l,NotificationLeft as m,NotificationIcon as d,NotificationInfo as f,NotificationTitle as p,NotificationText as u,NotificationRight as x,NotificationCloseButton as h}from"./styled.js";import{ErrorBigIcon as
|
|
1
|
+
import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as i,useCallback as r,useEffect as e}from"react";import{useSpring as n,useTransition as s}from"@react-spring/web";import{NotificationStyled as a,NotifyProgressBar as c,NotificationContent as l,NotificationLeft as m,NotificationIcon as d,NotificationInfo as f,NotificationTitle as p,NotificationText as u,NotificationRight as x,NotificationCloseButton as h}from"./styled.js";import{ErrorBigIcon as b}from"../../icons/error-big/index.js";import{InfoBigIcon as y}from"../../icons/info-big/index.js";import{SuccessBigIcon as g}from"../../icons/success-big/index.js";import{WarningBigIcon as j}from"../../icons/warning-big/index.js";import{Loader as w}from"../loader/index.js";import"./list/styled.js";import{useNotifications as k}from"./list/context.js";export{NotificationsContext,NotificationsProvider}from"./list/context.js";import"tslib";import"react-dom";import"../portal/styled.js";const v=({className:v,variant:N="info",autoClose:C=5e3,notificationId:$="unknown",title:L,children:X,onClose:D,closeAriaLabel:I})=>{const[M,A]=i(!0),{isInNotificationList:E}=k(),P=!!X&&!!L;let R;switch(N){case"info":R=y;break;case"warn":R=j;break;case"error":R=b;break;case"success":R=g;break;case"loading":R=w}const q=r(()=>{M||null==D||D($)},[M,D,$]),[{width:z},B]=n(()=>({width:"0%"}));e(()=>{M&&C&&B.start({from:{width:"0%"},to:{width:"100%"},config:{duration:C},onRest:t=>{t.finished&&A(!1)}})},[M,C,B]);const F=r(()=>{C&&B.pause()},[B,C]),G=r(()=>{C&&B.resume()},[B,C]);return s(M,E?{from:{opacity:0,transform:"translateX(412px)"},enter:{opacity:1,transform:"translateX(0px)"},leave:{opacity:0,transform:"translateX(412px)"},config:{duration:250},onDestroyed:q}:{onDestroyed:q})((i,r)=>r&&t(a,{style:i,$variant:N,className:v,onMouseEnter:F,onMouseLeave:G,children:[C&&o(c,{$variant:N,style:{width:z}}),t(l,{$text:P,children:[t(m,{$text:P,children:[o(d,{as:R}),t(f,{children:[o(p,{children:null!=L?L:X}),P&&"string"==typeof X?o(u,{children:X}):null,P&&"string"!=typeof X?X:null]})]}),o(x,{children:o(h,{"aria-label":I,onClick:A.bind(null,!1)})})]})]}))};export{v as Notification,u as NotificationText,k as useNotifications};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{NotificationsStyled as t,NotificationList as o}from"./styled.js";import{NotificationsProvider as r}from"./context.js";export{NotificationsContext,useNotifications}from"./context.js";import{Portal as e}from"../../portal/index.js";const s=({className:s,children:a,"aria-label":n})=>i(r,{isInNotificationList:!0,children:i(e,{children:i(t,{className:s,"aria-label":n,children:i(o,{children:a})})})});export{s as Notifications,r as NotificationsProvider};
|
|
@@ -1755,6 +1755,10 @@ export declare const SelectModalSearch: import("styled-components").IStyledCompo
|
|
|
1755
1755
|
onMouseLeave?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
1756
1756
|
onValueChange?: import("@/ui/components/text-field").TextFieldValueChangeEventHandler | undefined;
|
|
1757
1757
|
onClearButtonClick?: (() => void) | undefined;
|
|
1758
|
+
'aria-label'?: string | undefined;
|
|
1759
|
+
clearAriaLabel?: string | undefined;
|
|
1760
|
+
showPasswordAriaLabel?: string | undefined;
|
|
1761
|
+
hidePasswordAriaLabel?: string | undefined;
|
|
1758
1762
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
1759
1763
|
children?: import("react").ReactNode;
|
|
1760
1764
|
hidden?: boolean | undefined | undefined;
|
|
@@ -1837,7 +1841,6 @@ export declare const SelectModalSearch: import("styled-components").IStyledCompo
|
|
|
1837
1841
|
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
1838
1842
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
1839
1843
|
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
1840
|
-
"aria-label"?: string | undefined | undefined;
|
|
1841
1844
|
"aria-labelledby"?: string | undefined | undefined;
|
|
1842
1845
|
"aria-level"?: number | undefined | undefined;
|
|
1843
1846
|
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
@@ -3907,6 +3907,7 @@ export declare const SelectFieldValueListItem: import("styled-components").IStyl
|
|
|
3907
3907
|
isImage?: boolean | undefined;
|
|
3908
3908
|
onDelete?: import("@/ui/components/chip").ChipDeleteEventHandler | undefined;
|
|
3909
3909
|
handleImageClick?: (() => void) | undefined;
|
|
3910
|
+
deleteAriaLabel?: string | undefined;
|
|
3910
3911
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
3911
3912
|
key?: import("react").Key | null | undefined;
|
|
3912
3913
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -13,5 +13,7 @@ export interface SidebarChatDefaultProps extends React.HTMLAttributes<HTMLDivEle
|
|
|
13
13
|
skeleton?: boolean;
|
|
14
14
|
isDefault?: boolean;
|
|
15
15
|
onToggleCheckbox?: () => unknown;
|
|
16
|
+
dragAriaLabel?: string;
|
|
17
|
+
progressAriaLabel?: string;
|
|
16
18
|
}
|
|
17
19
|
export declare const SidebarChat: React.FC<SidebarChatDefaultProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as i}from"tslib";import{jsx as o,jsxs as n,Fragment as s}from"react/jsx-runtime";import{useState as e,useRef as r,useEffect as t}from"react";import{useDraggable as c}from"@dnd-kit/core";import{useSidebar as d}from"../context.js";import{SidebarChatButton as p,SidebarChatIconStyled as m,SidebarChatBox as x,SidebarChatStyled as j,SidebarChatDragHandle as a,SidebarChatDraggbleButton as l,SidebarChatName as u,SidebarChatLoadingText as g,SidebarChatPromtLine as b}from"./styled.js";import{Tooltip as h}from"../../tooltip/index.js";import{IconProvider as f}from"../../icon/context.js";import"../../icon/styled.js";import"../../../icons/arrow-down/index.js";import"../../../icons/arrow-narrow-left/index.js";import"../../../icons/arrow-narrow-right/index.js";import"../../../icons/arrow-up/index.js";import"../../../icons/bitcoin/index.js";import"../../../icons/bot-circle/index.js";import"../../../icons/bothub-agg/index.js";import"../../../icons/business-colored/index.js";import{CheckCircleIcon as v}from"../../../icons/check-circle/index.js";import"../../../icons/close/index.js";import"../../../icons/email-circle/index.js";import"../../../icons/language/index.js";import"../../../icons/lock-circle/index.js";import"../../../icons/menu/index.js";import"../../../icons/medium-circle/index.js";import"../../../icons/tg-circle/index.js";import"../../../icons/tg-colored/index.js";import"../../../icons/youcassa/index.js";import"../../../icons/dashboard/index.js";import"../../../icons/user-profile/index.js";import"../../../icons/logout/index.js";import"../../../icons/habr-2/index.js";import"../../../icons/arrow-2-down/index.js";import"../../../icons/links/index.js";import"../../../icons/free/index.js";import"../../../icons/hotness/index.js";import"../../../icons/checked/index.js";import"../../../icons/ai/index.js";import"../../../icons/bookmarks/index.js";import"../../../icons/bookmarks-big/index.js";import"../../../icons/chat/index.js";import"../../../icons/chats/index.js";import"../../../icons/coder/index.js";import"../../../icons/copy/index.js";import"../../../icons/edit/index.js";import"../../../icons/presets-big/index.js";import"../../../icons/referal/index.js";import"../../../icons/restore/index.js";import"../../../icons/tariff/index.js";import"../../../icons/trash/index.js";import"../../../icons/update/index.js";import"../../../icons/menu-dot/index.js";import"../../../icons/plus-2/index.js";import"../../../icons/plus-1/index.js";import"../../../icons/send/index.js";import"../../../icons/settings/index.js";import"../../../icons/habr/index.js";import"../../../icons/check-small/index.js";import"../../../icons/stop/index.js";import"../../../icons/thumb-up/index.js";import"../../../icons/thumb-down/index.js";import"../../../icons/star/index.js";import"../../../icons/info-big/index.js";import"../../../icons/warning-big/index.js";import"../../../icons/error-big/index.js";import"../../../icons/success-big/index.js";import"../../../icons/mj/index.js";import"../../../icons/card/index.js";import"../../../icons/arrow-narrow-up/index.js";import"../../../icons/arrow-narrow-down/index.js";import"../../../icons/filters/index.js";import"../../../icons/info/index.js";import"../../../icons/search-circle/index.js";import"../../../icons/save/index.js";import"../../../icons/light/index.js";import"../../../icons/dark/index.js";import"../../../icons/email-colored/index.js";import"../../../icons/action-chat/index.js";import"../../../icons/attach/index.js";import"../../../icons/avatar-add/index.js";import"../../../icons/brush/index.js";import"../../../icons/calendar/index.js";import"../../../icons/claude/index.js";import"../../../icons/cookie/index.js";import"../../../icons/dalle/index.js";import"../../../icons/download-img/index.js";import"../../../icons/error/index.js";import"../../../icons/expand/index.js";import"../../../icons/eye/index.js";import"../../../icons/face/index.js";import"../../../icons/gear/index.js";import"../../../icons/gear-min/index.js";import"../../../icons/generation/index.js";import"../../../icons/gpt-3_5/index.js";import"../../../icons/gpt-4/index.js";import"../../../icons/imagine/index.js";import"../../../icons/imagine-2/index.js";import"../../../icons/loader/index.js";import"../../../icons/loader-circular/index.js";import"../../../icons/loader-circular-gradient/index.js";import"../../../icons/loader-circular-gradient-2/index.js";import"../../../icons/minus/index.js";import"../../../icons/mj-white/index.js";import"../../../icons/prompt/index.js";import"../../../icons/rabbit/index.js";import"../../../icons/ratio-1x1/index.js";import"../../../icons/ratio-2x3/index.js";import"../../../icons/ratio-3x2/index.js";import"../../../icons/ratio-4x5/index.js";import"../../../icons/ratio-4x7/index.js";import"../../../icons/ratio-5x4/index.js";import"../../../icons/ratio-7x4/index.js";import"../../../icons/ratio-16x9/index.js";import"../../../icons/ratio-9x16/index.js";import"../../../icons/ratio-21x9/index.js";import"../../../icons/ratio-9x21/index.js";import"../../../icons/refferal-min/index.js";import"../../../icons/search-data/index.js";import"../../../icons/square/index.js";import"../../../icons/turtle/index.js";import"../../../icons/upscale/index.js";import"../../../icons/withdraw/index.js";import"../../../icons/search-plus/index.js";import"../../../icons/lightning/index.js";import"../../../icons/blog-circle/index.js";import"../../../icons/stripe/index.js";import"../../../icons/corporate/index.js";import"../../../icons/public/index.js";import"../../../icons/private/index.js";import"../../../icons/mistral/index.js";import"../../../icons/gemini/index.js";import"../../../icons/search-simple/index.js";import"../../../icons/sad-robot/index.js";import"../../../icons/model/index.js";import"../../../icons/phone-colored/index.js";import"../../../icons/questions/index.js";import"../../../icons/pdf-big/index.js";import"../../../icons/xls-big/index.js";import"../../../icons/word-big/index.js";import"../../../icons/txt-big/index.js";import"../../../icons/pdf/index.js";import"../../../icons/xls/index.js";import"../../../icons/word/index.js";import"../../../icons/txt/index.js";import"../../../icons/bothub-logo-gradient/index.js";import"../../../icons/telegram-logo-gradient/index.js";import"../../../icons/decline-circle/index.js";import"../../../icons/simple-gear-bg/index.js";import"../../../icons/advanced-filter/index.js";import"../../../icons/big-corporate/index.js";import"../../../icons/big-mj/index.js";import"../../../icons/big-models/index.js";import"../../../icons/big-stats/index.js";import"../../../icons/big-success/index.js";import"../../../icons/big-users/index.js";import"../../../icons/optional-presets/index.js";import"../../../icons/wallet-withdraw/index.js";import"../../../icons/big-presets/index.js";import"../../../icons/big-favorite/index.js";import"../../../icons/big-referal/index.js";import"../../../icons/attach-file/index.js";import"../../../icons/attach-file-big/index.js";import"../../../icons/voice/index.js";import"../../../icons/play-button/index.js";import"../../../icons/pause-button/index.js";import"../../../icons/text-read/index.js";import"../../../icons/text-hide/index.js";import"../../../icons/best-chat-bots/index.js";import"../../../icons/upload/index.js";import"../../../icons/enter/index.js";import"../../../icons/discord/index.js";import"../../../icons/discord-circle/index.js";import"../../../icons/black-forest-labs/index.js";import"../../../icons/flux/index.js";import"../../../icons/stable-diffusion/index.js";import"../../../icons/stability-ai/index.js";import"../../../icons/article-generator/index.js";import"../../../icons/success/index.js";import"../../../icons/google/index.js";import"../../../icons/yandex/index.js";import"../../../icons/vk/index.js";import"../../../icons/resend/index.js";import"../../../icons/big-article/index.js";import"../../../icons/add-chat/index.js";import"../../../icons/add-group/index.js";import{DragDotIcon as w}from"../../../icons/drag-dot/index.js";import"../../../icons/add-folder/index.js";import"../../../icons/temp-chat/index.js";import"../../../icons/delete-chat/index.js";import"../../../icons/sidebar-chat/index.js";import"../../../icons/organization/index.js";import"../../../icons/simple-gear/index.js";import"../../../icons/text-bold/index.js";import"../../../icons/text-italic/index.js";import"../../../icons/text-underline/index.js";import"../../../icons/text-strikethrough/index.js";import"../../../icons/refresh/index.js";import"../../../icons/copy-variants/index.js";import"../../../icons/sort-ascending/index.js";import"../../../icons/sort-descending/index.js";import"../../../icons/quote/index.js";import"../../../icons/url-circle/index.js";import"../../../icons/show-ui/index.js";import"../../../icons/hide-ui/index.js";import"../../../icons/sort-user/index.js";import"../../../icons/happy-robot/index.js";import"../../../icons/happy-robot-gradient/index.js";import"../../../icons/min-window/index.js";import"../../../icons/max-window/index.js";import"../../../icons/manage-chat/index.js";import"../../../icons/analyze-urls/index.js";import"../../../icons/web-search/index.js";import"../../../icons/include-context/index.js";import"../../../icons/queue/index.js";import"../../../icons/sort-alphabet-ascending/index.js";import"../../../icons/sort-alphabet-descending/index.js";import"../../../icons/sort-date-ascending/index.js";import"../../../icons/sort-date-descending/index.js";import"../../../icons/cot-r1/index.js";import"../../../icons/news/index.js";import"../../../icons/volume/index.js";import"../../../icons/flag-ru/index.js";import"../../../icons/flag-kz/index.js";import"../../../icons/print/index.js";import"../../../icons/pc-icon-1/index.js";import"../../../icons/pc-icon-2/index.js";import"../../../icons/pc-icon-3/index.js";import"../../../icons/star-unfilled/index.js";import"../../../icons/image-generation/index.js";import"../../../icons/speech-synthesys/index.js";import"../../../icons/transcription/index.js";import"../../../icons/text-rewrite/index.js";import"../../../icons/code-generation/index.js";import"../../../icons/essay-generation/index.js";import"../../../icons/spelling/index.js";import"../../../icons/text-generation/index.js";import"../../../icons/traffic-analisys/index.js";import"../../../icons/fav-profile/index.js";import"../../../icons/exclamation/index.js";import"../../../icons/article/index.js";import"../../../icons/setchel/index.js";import"../../../icons/assembly/index.js";import"../../../icons/data-visualisation/index.js";import"../../../icons/document-analisys/index.js";import"../../../icons/problem-solvment/index.js";import"../../../icons/setting-analisys/index.js";import"../../../icons/translation/index.js";import"../../../icons/stars/index.js";import"../../../icons/academy/index.js";import"../../../icons/articles/index.js";import"../../../icons/blog-post/index.js";import"../../../icons/book/index.js";import"../../../icons/bow-tie/index.js";import"../../../icons/case-study/index.js";import"../../../icons/comments/index.js";import"../../../icons/guide/index.js";import"../../../icons/marketing/index.js";import"../../../icons/post/index.js";import"../../../icons/report/index.js";import"../../../icons/review/index.js";import"../../../icons/scientific-article/index.js";import"../../../icons/selling-text/index.js";import"../../../icons/textbook/index.js";import"../../../icons/wind/index.js";import"../../../icons/grok/index.js";import"../../../icons/deepseek/index.js";import"../../../icons/grid-horizontal/index.js";import"../../../icons/grid-vertical/index.js";import"../../../icons/star-gradient/index.js";import"../../../icons/qwen/index.js";import"../../../icons/sidebar-toggle-left/index.js";import"../../../icons/sidebar-toggle-right/index.js";import"../../../icons/system/index.js";import"../../../icons/selector/index.js";import"../../../icons/video-camera/index.js";import"../../../icons/music-note/index.js";import"../../../icons/add-profile/index.js";import"../../../icons/token-counter/index.js";import"../../../icons/customer-support/index.js";import"../../../icons/sort-alphabet-top-bottom/index.js";import"../../../icons/sort-alphabet-bottom-top/index.js";import"../../../icons/pause/index.js";import"../../../icons/play/index.js";import"../../../icons/restore-2/index.js";import"../../../icons/video-generation/index.js";import"../../../icons/veo-model/index.js";import"../../../icons/runway/index.js";import"../../../icons/queue-select/index.js";import"../../../icons/apple/index.js";import"../../../icons/mail-colored/index.js";import"../../../icons/shield/index.js";import"../../../icons/stars-gradient/index.js";import"../../../icons/fire/index.js";import"../../../icons/brain/index.js";import"../../../icons/mj-purple/index.js";import"../../../icons/claude-black/index.js";import"../../../icons/vk-filled/index.js";import"../../../icons/tg/index.js";import"../../../icons/gift/index.js";import"../../../icons/exchange/index.js";import"../../../icons/time/index.js";import"../../../icons/folder/index.js";import"../../../icons/history/index.js";import"../../../icons/money-plus/index.js";import"../../../icons/money-stack/index.js";import"../../../icons/sort-numeric-bottom/index.js";import"../../../icons/sort-numeric-top/index.js";import"../../../icons/bulb/index.js";import"../../../icons/prompt-queue/index.js";import"../../../icons/image/index.js";import"../../../icons/text/index.js";import"../../../icons/code/index.js";import"../../../icons/blue-grok/index.js";import"../../../icons/double-image/index.js";import"../../../icons/pdf-black/index.js";import"../../../icons/csv/index.js";import"../../../icons/xls-black/index.js";import"../../../icons/word-black/index.js";import"../../../icons/brain-black/index.js";import"../../../icons/txt-black/index.js";import"../../../icons/workspace/index.js";import"../../../icons/chat-doc/index.js";import"../../../icons/money-spend/index.js";import"../../../icons/money-minus/index.js";import"../../../icons/max-logo-gradient/index.js";import"../../../icons/empty-word/index.js";import"../../../icons/music-file/index.js";import"../../../icons/sad-file/index.js";import"../../../icons/happy-file/index.js";import"../../../icons/volume-off/index.js";import"../../../icons/github/index.js";import"../../../icons/erase/index.js";import"../../../icons/arrow-narrow-stars-right/index.js";import"../../../icons/literature-list/index.js";import"../../../icons/bell-dot/index.js";import"../../../icons/bell/index.js";import"../../../icons/kwaivgi/index.js";import"../../../icons/dollar/index.js";import{SidebarChatSkeleton as y}from"./skeleton.js";import{TooltipConsumer as k}from"../../tooltip/context.js";const z=z=>{var{id:M,name:q,icon:E,active:O,actions:L,checkbox:T,promtQueue:W,progress:P,skeleton:Q}=z,R=i(z,["id","name","icon","active","actions","checkbox","promtQueue","progress","skeleton"]);const{isOpen:N}=d(),{isEdit:$}=d(),[_,A]=e(!1),B=r(null),{attributes:C,listeners:D,setNodeRef:F}=c({disabled:!$||Q,id:Q?"skeleton":M,data:{type:"chat"}});return t(()=>{const i=new ResizeObserver(()=>{B.current&&B.current.scrollWidth>B.current.clientWidth?A(!0):A(!1)});return B.current&&B.current.scrollWidth>B.current.clientWidth&&i.observe(B.current),()=>{B.current&&i.unobserve(B.current)}},[]),Q?o(y,{}):N?n(x,Object.assign({},R,{$active:O,children:[n(j,{ref:F,children:[$?n(a,Object.assign({},C,D,{children:[o(f,{size:18,children:o(l,{children:o(w,{})})}),o(u,{ref:B,children:q})]})):n(s,{children:[n(f,{size:18,children:[W&&"object"==typeof P&&"number"==typeof(null==P?void 0:P.max)&&"number"==typeof(null==P?void 0:P.value)&&P.max>0&&P.value!==P.max&&n(g,{children:[Math.round(P.value/P.max*100),"%"]}),W&&"object"==typeof P&&"number"==typeof(null==P?void 0:P.max)&&"number"==typeof(null==P?void 0:P.value)&&P.max>0&&P.value===P.max&&o(v,{}),!W&&(E||o(m,{}))]}),o(h,{label:q,placement:"top",align:"center",disabled:!_,children:o(k,{children:({handleTooltipMouseEnter:i,handleTooltipMouseLeave:n})=>o(u,{ref:B,onPointerEnter:i,onPointerLeave:n,children:q})})}),L]}),$&&T]}),W&&"object"==typeof P&&"number"==typeof(null==P?void 0:P.max)&&"number"==typeof(null==P?void 0:P.value)&&o(b,{percent:Math.round(P.value/P.max*100)})]})):o(h,{label:q,placement:"center-right",align:"center",children:o(k,{children:({handleTooltipMouseEnter:i,handleTooltipMouseLeave:n})=>o(p,Object.assign({},R,{onMouseEnter:i,onMouseLeave:n,children:o(f,{size:18,children:E||o(m,{})})}))})})};export{z as SidebarChat};
|
|
1
|
+
import{__rest as i}from"tslib";import{jsx as o,jsxs as n,Fragment as s}from"react/jsx-runtime";import{useState as e,useRef as r,useEffect as t}from"react";import{useDraggable as c}from"@dnd-kit/core";import{useSidebar as d}from"../context.js";import{SidebarChatButton as p,SidebarChatIconStyled as m,SidebarChatBox as x,SidebarChatStyled as j,SidebarChatDragHandle as a,SidebarChatDraggbleButton as l,SidebarChatName as u,SidebarChatLoadingText as g,SidebarChatPromtLine as b}from"./styled.js";import{Tooltip as h}from"../../tooltip/index.js";import{IconProvider as f}from"../../icon/context.js";import"../../icon/styled.js";import"../../../icons/arrow-down/index.js";import"../../../icons/arrow-narrow-left/index.js";import"../../../icons/arrow-narrow-right/index.js";import"../../../icons/arrow-up/index.js";import"../../../icons/bitcoin/index.js";import"../../../icons/bot-circle/index.js";import"../../../icons/bothub-agg/index.js";import"../../../icons/business-colored/index.js";import{CheckCircleIcon as v}from"../../../icons/check-circle/index.js";import"../../../icons/close/index.js";import"../../../icons/email-circle/index.js";import"../../../icons/language/index.js";import"../../../icons/lock-circle/index.js";import"../../../icons/menu/index.js";import"../../../icons/medium-circle/index.js";import"../../../icons/tg-circle/index.js";import"../../../icons/tg-colored/index.js";import"../../../icons/youcassa/index.js";import"../../../icons/dashboard/index.js";import"../../../icons/user-profile/index.js";import"../../../icons/logout/index.js";import"../../../icons/habr-2/index.js";import"../../../icons/arrow-2-down/index.js";import"../../../icons/links/index.js";import"../../../icons/free/index.js";import"../../../icons/hotness/index.js";import"../../../icons/checked/index.js";import"../../../icons/ai/index.js";import"../../../icons/bookmarks/index.js";import"../../../icons/bookmarks-big/index.js";import"../../../icons/chat/index.js";import"../../../icons/chats/index.js";import"../../../icons/coder/index.js";import"../../../icons/copy/index.js";import"../../../icons/edit/index.js";import"../../../icons/presets-big/index.js";import"../../../icons/referal/index.js";import"../../../icons/restore/index.js";import"../../../icons/tariff/index.js";import"../../../icons/trash/index.js";import"../../../icons/update/index.js";import"../../../icons/menu-dot/index.js";import"../../../icons/plus-2/index.js";import"../../../icons/plus-1/index.js";import"../../../icons/send/index.js";import"../../../icons/settings/index.js";import"../../../icons/habr/index.js";import"../../../icons/check-small/index.js";import"../../../icons/stop/index.js";import"../../../icons/thumb-up/index.js";import"../../../icons/thumb-down/index.js";import"../../../icons/star/index.js";import"../../../icons/info-big/index.js";import"../../../icons/warning-big/index.js";import"../../../icons/error-big/index.js";import"../../../icons/success-big/index.js";import"../../../icons/mj/index.js";import"../../../icons/card/index.js";import"../../../icons/arrow-narrow-up/index.js";import"../../../icons/arrow-narrow-down/index.js";import"../../../icons/filters/index.js";import"../../../icons/info/index.js";import"../../../icons/search-circle/index.js";import"../../../icons/save/index.js";import"../../../icons/light/index.js";import"../../../icons/dark/index.js";import"../../../icons/email-colored/index.js";import"../../../icons/action-chat/index.js";import"../../../icons/attach/index.js";import"../../../icons/avatar-add/index.js";import"../../../icons/brush/index.js";import"../../../icons/calendar/index.js";import"../../../icons/claude/index.js";import"../../../icons/cookie/index.js";import"../../../icons/dalle/index.js";import"../../../icons/download-img/index.js";import"../../../icons/error/index.js";import"../../../icons/expand/index.js";import"../../../icons/eye/index.js";import"../../../icons/face/index.js";import"../../../icons/gear/index.js";import"../../../icons/gear-min/index.js";import"../../../icons/generation/index.js";import"../../../icons/gpt-3_5/index.js";import"../../../icons/gpt-4/index.js";import"../../../icons/imagine/index.js";import"../../../icons/imagine-2/index.js";import"../../../icons/loader/index.js";import"../../../icons/loader-circular/index.js";import"../../../icons/loader-circular-gradient/index.js";import"../../../icons/loader-circular-gradient-2/index.js";import"../../../icons/minus/index.js";import"../../../icons/mj-white/index.js";import"../../../icons/prompt/index.js";import"../../../icons/rabbit/index.js";import"../../../icons/ratio-1x1/index.js";import"../../../icons/ratio-2x3/index.js";import"../../../icons/ratio-3x2/index.js";import"../../../icons/ratio-4x5/index.js";import"../../../icons/ratio-4x7/index.js";import"../../../icons/ratio-5x4/index.js";import"../../../icons/ratio-7x4/index.js";import"../../../icons/ratio-16x9/index.js";import"../../../icons/ratio-9x16/index.js";import"../../../icons/ratio-21x9/index.js";import"../../../icons/ratio-9x21/index.js";import"../../../icons/refferal-min/index.js";import"../../../icons/search-data/index.js";import"../../../icons/square/index.js";import"../../../icons/turtle/index.js";import"../../../icons/upscale/index.js";import"../../../icons/withdraw/index.js";import"../../../icons/search-plus/index.js";import"../../../icons/lightning/index.js";import"../../../icons/blog-circle/index.js";import"../../../icons/stripe/index.js";import"../../../icons/corporate/index.js";import"../../../icons/public/index.js";import"../../../icons/private/index.js";import"../../../icons/mistral/index.js";import"../../../icons/gemini/index.js";import"../../../icons/search-simple/index.js";import"../../../icons/sad-robot/index.js";import"../../../icons/model/index.js";import"../../../icons/phone-colored/index.js";import"../../../icons/questions/index.js";import"../../../icons/pdf-big/index.js";import"../../../icons/xls-big/index.js";import"../../../icons/word-big/index.js";import"../../../icons/txt-big/index.js";import"../../../icons/pdf/index.js";import"../../../icons/xls/index.js";import"../../../icons/word/index.js";import"../../../icons/txt/index.js";import"../../../icons/bothub-logo-gradient/index.js";import"../../../icons/telegram-logo-gradient/index.js";import"../../../icons/decline-circle/index.js";import"../../../icons/simple-gear-bg/index.js";import"../../../icons/advanced-filter/index.js";import"../../../icons/big-corporate/index.js";import"../../../icons/big-mj/index.js";import"../../../icons/big-models/index.js";import"../../../icons/big-stats/index.js";import"../../../icons/big-success/index.js";import"../../../icons/big-users/index.js";import"../../../icons/optional-presets/index.js";import"../../../icons/wallet-withdraw/index.js";import"../../../icons/big-presets/index.js";import"../../../icons/big-favorite/index.js";import"../../../icons/big-referal/index.js";import"../../../icons/attach-file/index.js";import"../../../icons/attach-file-big/index.js";import"../../../icons/voice/index.js";import"../../../icons/play-button/index.js";import"../../../icons/pause-button/index.js";import"../../../icons/text-read/index.js";import"../../../icons/text-hide/index.js";import"../../../icons/best-chat-bots/index.js";import"../../../icons/upload/index.js";import"../../../icons/enter/index.js";import"../../../icons/discord/index.js";import"../../../icons/discord-circle/index.js";import"../../../icons/black-forest-labs/index.js";import"../../../icons/flux/index.js";import"../../../icons/stable-diffusion/index.js";import"../../../icons/stability-ai/index.js";import"../../../icons/article-generator/index.js";import"../../../icons/success/index.js";import"../../../icons/google/index.js";import"../../../icons/yandex/index.js";import"../../../icons/vk/index.js";import"../../../icons/resend/index.js";import"../../../icons/big-article/index.js";import"../../../icons/add-chat/index.js";import"../../../icons/add-group/index.js";import{DragDotIcon as w}from"../../../icons/drag-dot/index.js";import"../../../icons/add-folder/index.js";import"../../../icons/temp-chat/index.js";import"../../../icons/delete-chat/index.js";import"../../../icons/sidebar-chat/index.js";import"../../../icons/organization/index.js";import"../../../icons/simple-gear/index.js";import"../../../icons/text-bold/index.js";import"../../../icons/text-italic/index.js";import"../../../icons/text-underline/index.js";import"../../../icons/text-strikethrough/index.js";import"../../../icons/refresh/index.js";import"../../../icons/copy-variants/index.js";import"../../../icons/sort-ascending/index.js";import"../../../icons/sort-descending/index.js";import"../../../icons/quote/index.js";import"../../../icons/url-circle/index.js";import"../../../icons/show-ui/index.js";import"../../../icons/hide-ui/index.js";import"../../../icons/sort-user/index.js";import"../../../icons/happy-robot/index.js";import"../../../icons/happy-robot-gradient/index.js";import"../../../icons/min-window/index.js";import"../../../icons/max-window/index.js";import"../../../icons/manage-chat/index.js";import"../../../icons/analyze-urls/index.js";import"../../../icons/web-search/index.js";import"../../../icons/include-context/index.js";import"../../../icons/queue/index.js";import"../../../icons/sort-alphabet-ascending/index.js";import"../../../icons/sort-alphabet-descending/index.js";import"../../../icons/sort-date-ascending/index.js";import"../../../icons/sort-date-descending/index.js";import"../../../icons/cot-r1/index.js";import"../../../icons/news/index.js";import"../../../icons/volume/index.js";import"../../../icons/flag-ru/index.js";import"../../../icons/flag-kz/index.js";import"../../../icons/print/index.js";import"../../../icons/pc-icon-1/index.js";import"../../../icons/pc-icon-2/index.js";import"../../../icons/pc-icon-3/index.js";import"../../../icons/star-unfilled/index.js";import"../../../icons/image-generation/index.js";import"../../../icons/speech-synthesys/index.js";import"../../../icons/transcription/index.js";import"../../../icons/text-rewrite/index.js";import"../../../icons/code-generation/index.js";import"../../../icons/essay-generation/index.js";import"../../../icons/spelling/index.js";import"../../../icons/text-generation/index.js";import"../../../icons/traffic-analisys/index.js";import"../../../icons/fav-profile/index.js";import"../../../icons/exclamation/index.js";import"../../../icons/article/index.js";import"../../../icons/setchel/index.js";import"../../../icons/assembly/index.js";import"../../../icons/data-visualisation/index.js";import"../../../icons/document-analisys/index.js";import"../../../icons/problem-solvment/index.js";import"../../../icons/setting-analisys/index.js";import"../../../icons/translation/index.js";import"../../../icons/stars/index.js";import"../../../icons/academy/index.js";import"../../../icons/articles/index.js";import"../../../icons/blog-post/index.js";import"../../../icons/book/index.js";import"../../../icons/bow-tie/index.js";import"../../../icons/case-study/index.js";import"../../../icons/comments/index.js";import"../../../icons/guide/index.js";import"../../../icons/marketing/index.js";import"../../../icons/post/index.js";import"../../../icons/report/index.js";import"../../../icons/review/index.js";import"../../../icons/scientific-article/index.js";import"../../../icons/selling-text/index.js";import"../../../icons/textbook/index.js";import"../../../icons/wind/index.js";import"../../../icons/grok/index.js";import"../../../icons/deepseek/index.js";import"../../../icons/grid-horizontal/index.js";import"../../../icons/grid-vertical/index.js";import"../../../icons/star-gradient/index.js";import"../../../icons/qwen/index.js";import"../../../icons/sidebar-toggle-left/index.js";import"../../../icons/sidebar-toggle-right/index.js";import"../../../icons/system/index.js";import"../../../icons/selector/index.js";import"../../../icons/video-camera/index.js";import"../../../icons/music-note/index.js";import"../../../icons/add-profile/index.js";import"../../../icons/token-counter/index.js";import"../../../icons/customer-support/index.js";import"../../../icons/sort-alphabet-top-bottom/index.js";import"../../../icons/sort-alphabet-bottom-top/index.js";import"../../../icons/pause/index.js";import"../../../icons/play/index.js";import"../../../icons/restore-2/index.js";import"../../../icons/video-generation/index.js";import"../../../icons/veo-model/index.js";import"../../../icons/runway/index.js";import"../../../icons/queue-select/index.js";import"../../../icons/apple/index.js";import"../../../icons/mail-colored/index.js";import"../../../icons/shield/index.js";import"../../../icons/stars-gradient/index.js";import"../../../icons/fire/index.js";import"../../../icons/brain/index.js";import"../../../icons/mj-purple/index.js";import"../../../icons/claude-black/index.js";import"../../../icons/vk-filled/index.js";import"../../../icons/tg/index.js";import"../../../icons/gift/index.js";import"../../../icons/exchange/index.js";import"../../../icons/time/index.js";import"../../../icons/folder/index.js";import"../../../icons/history/index.js";import"../../../icons/money-plus/index.js";import"../../../icons/money-stack/index.js";import"../../../icons/sort-numeric-bottom/index.js";import"../../../icons/sort-numeric-top/index.js";import"../../../icons/bulb/index.js";import"../../../icons/prompt-queue/index.js";import"../../../icons/image/index.js";import"../../../icons/text/index.js";import"../../../icons/code/index.js";import"../../../icons/blue-grok/index.js";import"../../../icons/double-image/index.js";import"../../../icons/pdf-black/index.js";import"../../../icons/csv/index.js";import"../../../icons/xls-black/index.js";import"../../../icons/word-black/index.js";import"../../../icons/brain-black/index.js";import"../../../icons/txt-black/index.js";import"../../../icons/workspace/index.js";import"../../../icons/chat-doc/index.js";import"../../../icons/money-spend/index.js";import"../../../icons/money-minus/index.js";import"../../../icons/max-logo-gradient/index.js";import"../../../icons/empty-word/index.js";import"../../../icons/music-file/index.js";import"../../../icons/sad-file/index.js";import"../../../icons/happy-file/index.js";import"../../../icons/volume-off/index.js";import"../../../icons/github/index.js";import"../../../icons/erase/index.js";import"../../../icons/arrow-narrow-stars-right/index.js";import"../../../icons/literature-list/index.js";import"../../../icons/bell-dot/index.js";import"../../../icons/bell/index.js";import"../../../icons/kwaivgi/index.js";import"../../../icons/dollar/index.js";import{SidebarChatSkeleton as y}from"./skeleton.js";import{TooltipConsumer as k}from"../../tooltip/context.js";const z=z=>{var{id:L,name:M,icon:q,active:E,actions:O,checkbox:A,promtQueue:T,progress:W,skeleton:P,dragAriaLabel:Q,progressAriaLabel:R}=z,N=i(z,["id","name","icon","active","actions","checkbox","promtQueue","progress","skeleton","dragAriaLabel","progressAriaLabel"]);const{isOpen:$}=d(),{isEdit:_}=d(),[B,C]=e(!1),D=r(null),{attributes:F,listeners:G,setNodeRef:H}=c({disabled:!_||P,id:P?"skeleton":L,data:{type:"chat"}});return t(()=>{const i=new ResizeObserver(()=>{D.current&&D.current.scrollWidth>D.current.clientWidth?C(!0):C(!1)});return D.current&&D.current.scrollWidth>D.current.clientWidth&&i.observe(D.current),()=>{D.current&&i.unobserve(D.current)}},[]),P?o(y,{}):$?n(x,Object.assign({},N,{$active:E,"aria-current":E?"page":void 0,children:[n(j,{ref:H,children:[_?n(a,Object.assign({},F,G,{"aria-label":Q,children:[o(f,{size:18,children:o(l,{children:o(w,{})})}),o(u,{ref:D,children:M})]})):n(s,{children:[n(f,{size:18,children:[T&&"object"==typeof W&&"number"==typeof(null==W?void 0:W.max)&&"number"==typeof(null==W?void 0:W.value)&&W.max>0&&W.value!==W.max&&n(g,{children:[Math.round(W.value/W.max*100),"%"]}),T&&"object"==typeof W&&"number"==typeof(null==W?void 0:W.max)&&"number"==typeof(null==W?void 0:W.value)&&W.max>0&&W.value===W.max&&o(v,{}),!T&&(q||o(m,{}))]}),o(h,{label:M,placement:"top",align:"center",disabled:!B,children:o(k,{children:({handleTooltipMouseEnter:i,handleTooltipMouseLeave:n})=>o(u,{ref:D,onPointerEnter:i,onPointerLeave:n,children:M})})}),O]}),_&&A]}),T&&"object"==typeof W&&"number"==typeof(null==W?void 0:W.max)&&"number"==typeof(null==W?void 0:W.value)&&o(b,{percent:Math.round(W.value/W.max*100),"aria-label":R})]})):o(h,{label:M,placement:"center-right",align:"center",children:o(k,{children:({handleTooltipMouseEnter:i,handleTooltipMouseLeave:n})=>{var s;return o(p,Object.assign({},N,{"aria-label":null!==(s=N["aria-label"])&&void 0!==s?s:M,"aria-current":E?"page":void 0,onMouseEnter:i,onMouseLeave:n,children:o(f,{size:18,children:q||o(m,{})})}))}})})};export{z as SidebarChat};
|
|
@@ -19,6 +19,7 @@ export interface SidebarProps extends React.PropsWithChildren {
|
|
|
19
19
|
style?: StyleHTMLAttributes<HTMLElement>;
|
|
20
20
|
onOpen?: SidebarOpenEventHandler;
|
|
21
21
|
banner?: React.ReactNode;
|
|
22
|
+
'aria-label'?: string;
|
|
22
23
|
}
|
|
23
24
|
export declare const Sidebar: React.FC<SidebarProps>;
|
|
24
25
|
export * from './user-info';
|