widenarrow-ui 2.0.16 → 2.0.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/lib/index.d.ts CHANGED
@@ -599,11 +599,11 @@ interface DropDownProps {
599
599
  onCloseCallback?: () => void;
600
600
  onOpenCallback?: () => void;
601
601
  }
602
+ interface DropDownRef {
603
+ forceUpdate: () => void;
604
+ }
602
605
 
603
- declare const DropDown: {
604
- ({ title, offset, arrowPadding, placement, strategy, className, buttonComponent, triggerComponent, buttonCallbackName, footerComponent, onCloseCallback, onOpenCallback, children, dropDownClassName, childrenClassName, loading, withArrow, childrenIsList, isOpen, closeOnEscape, rotateIconByDegree, rotateLeftIconByDegree, rotateMiddleIconByDegree, rotateRightIconByDegree, withVisibleOverflow, withPortal }: DropDownProps): JSX.Element;
605
- displayName: string;
606
- };
606
+ declare const DropDown: react.ForwardRefExoticComponent<DropDownProps & react.RefAttributes<DropDownRef>>;
607
607
 
608
608
  interface DropDownItemProps {
609
609
  text?: string;
@@ -1083,7 +1083,20 @@ interface CellInterface {
1083
1083
  customCellComponent?: (row: any) => ReactNode | JSX.Element;
1084
1084
  }
1085
1085
  interface SortableTableProps {
1086
- cells: Array<CellInterface>;
1086
+ cells: Array<{
1087
+ key: string;
1088
+ title: string;
1089
+ width: string;
1090
+ icon?: Partial<IconTypes>;
1091
+ disableSort?: boolean;
1092
+ alignRight?: boolean;
1093
+ alignCenter?: boolean;
1094
+ withEllipsis?: boolean;
1095
+ toolTip?: string;
1096
+ className?: string;
1097
+ customHeaderCellComponent?: (cell: CellInterface) => ReactNode | JSX.Element;
1098
+ customCellComponent?: (row: any) => ReactNode | JSX.Element;
1099
+ }>;
1087
1100
  data: Array<any>;
1088
1101
  sortBy: Array<{
1089
1102
  keyName: string;
@@ -1301,4 +1314,4 @@ declare const NoDataMessage: {
1301
1314
  displayName: string;
1302
1315
  };
1303
1316
 
1304
- export { AppColors, AspectRatioTypes, BorderInterface, Box, Button, Card, Checkbox, ColorStyleInterface, ColorTypes, DropDown, DropDownItem, FacetButton, FlexStylingInterface, FontFamilyTypes, FormSkeleton, Grid, Heading, HierarchyInterface, HierarchyTypes, Icon, IconButton, IconStyleInterface, IconTypes, Image, InlineButton, Input, Label, ListItem, ListSkeleton, MarginInterface, MultiActionButton, NoDataMessage, PaddingInterface, Pagination, Paragraph, RadioButton, SelectInput, Separator, SizeStyleInterface, SizeTypes, SkeletonItem, SolidSpinner, SortableTable, Span, SwitchButton, TextAreaInput, ToolTip, borderClassNames, flexClassNames, marginClassNames, paddingClassNames };
1317
+ export { AppColors, AspectRatioTypes, BorderInterface, Box, Button, Card, Checkbox, ColorStyleInterface, ColorTypes, DropDown, DropDownItem, DropDownRef, FacetButton, FlexStylingInterface, FontFamilyTypes, FormSkeleton, Grid, Heading, HierarchyInterface, HierarchyTypes, Icon, IconButton, IconStyleInterface, IconTypes, Image, InlineButton, Input, Label, ListItem, ListSkeleton, MarginInterface, MultiActionButton, NoDataMessage, PaddingInterface, Pagination, Paragraph, RadioButton, SelectInput, Separator, SizeStyleInterface, SizeTypes, SkeletonItem, SolidSpinner, SortableTable, Span, SwitchButton, TextAreaInput, ToolTip, borderClassNames, flexClassNames, marginClassNames, paddingClassNames };