@ballistix.digital/react-components 3.2.4 → 3.3.0

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/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { ColumnDef, SortingState, ColumnOrderState, Row, Table } from '@tanstack
7
7
  import { TButtonElementStyles as TButtonElementStyles$1 } from 'components/Element/Button';
8
8
  import { TDropdownElementStyles as TDropdownElementStyles$1 } from 'components/Element/Dropdown';
9
9
  import { TPagePaginationNavigationStyles as TPagePaginationNavigationStyles$1 } from 'components/Navigation/PagePagination';
10
+ import { DragEndEvent } from '@dnd-kit/core';
10
11
  export { createColumnHelper } from 'helpers/table';
11
12
  import * as react_jsx_runtime from 'react/jsx-runtime';
12
13
  import { Option, SelectValue } from 'react-tailwindcss-select/dist/components/type';
@@ -454,6 +455,17 @@ type TTableListProps<TData> = {
454
455
  onRowClick?: (context: Row<TData>) => void;
455
456
  onChange?: (params: Params) => void;
456
457
  styles?: TTableListStyles;
458
+ dragConfig?: {
459
+ rowIdentifierKey: string;
460
+ iconAccessor?: IconName;
461
+ label?: ReactNode;
462
+ header?: string;
463
+ handleDragEnd?: ({ oldIndex, newIndex, dragEndEvent, }: {
464
+ oldIndex?: number;
465
+ newIndex?: number;
466
+ dragEndEvent?: DragEndEvent;
467
+ }) => void;
468
+ };
457
469
  };
458
470
  declare const TableList2: FC<TTableListProps<TData>>;
459
471
 
@@ -1047,11 +1059,17 @@ type TCheckboxInputFormProps = {
1047
1059
  } & ({
1048
1060
  value: boolean;
1049
1061
  onChange: (value: boolean) => void;
1062
+ checkedElement?: ReactNode;
1063
+ uncheckedElement?: ReactNode;
1064
+ indeterminableElement?: never;
1050
1065
  isIndeterminable?: false;
1051
1066
  } | {
1052
1067
  value: boolean | null;
1053
1068
  onChange: (value: boolean | null) => void;
1054
- isIndeterminable: true;
1069
+ checkedElement?: ReactNode;
1070
+ uncheckedElement?: ReactNode;
1071
+ indeterminableElement?: ReactNode;
1072
+ isIndeterminable?: true;
1055
1073
  });
1056
1074
  declare const CheckboxInputForm: FC<TCheckboxInputFormProps>;
1057
1075
 
@@ -1060,6 +1078,8 @@ declare const base$3: {
1060
1078
  head: string;
1061
1079
  body: string;
1062
1080
  input: string;
1081
+ inputHidden: string;
1082
+ replacement: string;
1063
1083
  label: string;
1064
1084
  description: string;
1065
1085
  };