@bigbinary/neetoui 5.2.15 → 5.2.17

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
@@ -583,6 +583,42 @@ export type NoDataProps = {
583
583
  className?: string;
584
584
  };
585
585
 
586
+ type TreeItemNested = {
587
+ label: string;
588
+ value: string;
589
+ disabled: Boolean;
590
+ children: Array<TreeItemNested>;
591
+ };
592
+
593
+ type TreeItem = {
594
+ id: string;
595
+ label: string;
596
+ value: string;
597
+ disabled: Boolean;
598
+ pId: string;
599
+ };
600
+
601
+ export type TreeSelectProps = {
602
+ allowClear?: Boolean;
603
+ className?: string;
604
+ disabled?: Boolean;
605
+ error?: string,
606
+ fieldNames?: { label?: string, value?: string };
607
+ label?: string,
608
+ onChange: (value: string) => void;
609
+ onSearch?: (searchValue: string) => void;
610
+ placeholder?: string;
611
+ required?: Boolean;
612
+ searchValue?: string;
613
+ showSearch?: Boolean;
614
+ size?: "small" | "middle" | "large";
615
+ suffixIcon?: React.ReactNode;
616
+ switcherIcon?: React.ReactNode;
617
+ treeDataSimpleMode?: Boolean;
618
+ value: string;
619
+ treeData: Array<TreeItemNested> | Array<TreeItem>;
620
+ };
621
+
586
622
  export type TreeProps = {
587
623
  className?: string;
588
624
  allowDrop?: boolean;
@@ -726,4 +762,5 @@ export const Tooltip: React.ForwardRefExoticComponent<TooltipProps>;
726
762
  export const Popover: React.ForwardRefExoticComponent<PopoverProps>;
727
763
  export const Kbd: React.FC<KbdProps>;
728
764
  export const NoData: React.FC<NoDataProps>;
765
+ export const TreeSelect: React.FC<TreeSelectProps>;
729
766
  export const Tree: React.FC<TreeProps>;