@bigbinary/neetoui 5.2.11 → 5.2.12

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/index.d.ts CHANGED
@@ -575,6 +575,63 @@ export type NoDataProps = {
575
575
  className?: string;
576
576
  };
577
577
 
578
+ export type TreeProps = {
579
+ className?: string;
580
+ allowDrop?: boolean;
581
+ autoExpandParent?: boolean;
582
+ blockNode: boolean;
583
+ checkable: boolean;
584
+ checkedKeys: string[] | { checked: string[]; halfChecked: string[] };
585
+ checkStrictly: boolean;
586
+ defaultCheckedKeys: string[];
587
+ defaultExpandAll: boolean;
588
+ defaultExpandedKeys: string[];
589
+ defaultExpandParent: boolean;
590
+ defaultSelectedKeys: string[];
591
+ disabled: boolean;
592
+ draggable:
593
+ | boolean
594
+ | ((node: DataNode) => boolean)
595
+ | {
596
+ icon?: React.ReactNode | false;
597
+ nodeDraggable?: (node: DataNode) => boolean;
598
+ };
599
+ expandedKeys: string[];
600
+ fieldNames: object;
601
+ filterTreeNode: Function;
602
+ height: number;
603
+ icon: ReactNode;
604
+ loadData: Function;
605
+ loadedKeys: string[];
606
+ multiple: boolean;
607
+ selectable: boolean;
608
+ selectedKeys: string[];
609
+ showIcon: boolean;
610
+ showLine:
611
+ | boolean
612
+ | {
613
+ showLeafIcon:
614
+ | boolean
615
+ | ReactNode
616
+ | ((props: AntTreeNodeProps) => ReactNode);
617
+ };
618
+ switcherIcon: ReactNode | ((props: AntTreeNodeProps) => ReactNode);
619
+ titleRender: Function;
620
+ treeData: array<{ key; title; children; [disabled, selectable] }>;
621
+ virtual: boolean;
622
+ onCheck: Function;
623
+ onDragEnd: Function;
624
+ onDragEnter: Function;
625
+ onDragLeave: Function;
626
+ onDragOver: Function;
627
+ onDragStart: Function;
628
+ onDrop: Function;
629
+ onExpand: Function;
630
+ onLoad: Function;
631
+ onRightClick: Function;
632
+ onSelect: Function;
633
+ };
634
+
578
635
  // components
579
636
 
580
637
  export const Accordion: React.FC<AccordionProps> & {
@@ -660,3 +717,4 @@ export const Tooltip: React.ForwardRefExoticComponent<TooltipProps>;
660
717
  export const Popover: React.ForwardRefExoticComponent<PopoverProps>;
661
718
  export const Kbd: React.FC<KbdProps>;
662
719
  export const NoData: React.FC<NoDataProps>;
720
+ export const Tree: React.FC<TreeProps>;