@bigbinary/neetoui 5.2.16 → 5.2.18

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
@@ -329,6 +329,9 @@ export type SelectProps = {
329
329
  labelProps?: LabelProps;
330
330
  optionRemapping?: { label?: string; value?: string };
331
331
  [key: string]: any;
332
+ fetchMore?: () => void;
333
+ totalOptionsCount?: number;
334
+ isAsyncLoadOptionEnabled?: boolean;
332
335
  };
333
336
 
334
337
  export type SpinnerProps = {
@@ -583,6 +586,42 @@ export type NoDataProps = {
583
586
  className?: string;
584
587
  };
585
588
 
589
+ type TreeItemNested = {
590
+ label: string;
591
+ value: string;
592
+ disabled: Boolean;
593
+ children: Array<TreeItemNested>;
594
+ };
595
+
596
+ type TreeItem = {
597
+ id: string;
598
+ label: string;
599
+ value: string;
600
+ disabled: Boolean;
601
+ pId: string;
602
+ };
603
+
604
+ export type TreeSelectProps = {
605
+ allowClear?: Boolean;
606
+ className?: string;
607
+ disabled?: Boolean;
608
+ error?: string,
609
+ fieldNames?: { label?: string, value?: string };
610
+ label?: string,
611
+ onChange: (value: string) => void;
612
+ onSearch?: (searchValue: string) => void;
613
+ placeholder?: string;
614
+ required?: Boolean;
615
+ searchValue?: string;
616
+ showSearch?: Boolean;
617
+ size?: "small" | "middle" | "large";
618
+ suffixIcon?: React.ReactNode;
619
+ switcherIcon?: React.ReactNode;
620
+ treeDataSimpleMode?: Boolean;
621
+ value: string;
622
+ treeData: Array<TreeItemNested> | Array<TreeItem>;
623
+ };
624
+
586
625
  export type TreeProps = {
587
626
  className?: string;
588
627
  allowDrop?: boolean;
@@ -726,4 +765,5 @@ export const Tooltip: React.ForwardRefExoticComponent<TooltipProps>;
726
765
  export const Popover: React.ForwardRefExoticComponent<PopoverProps>;
727
766
  export const Kbd: React.FC<KbdProps>;
728
767
  export const NoData: React.FC<NoDataProps>;
768
+ export const TreeSelect: React.FC<TreeSelectProps>;
729
769
  export const Tree: React.FC<TreeProps>;