@ballistix.digital/react-components 0.5.9 → 0.6.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 +13 -8
- package/dist/index.esm.js +273 -251
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +272 -250
- package/dist/index.js.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -414,6 +414,7 @@ type TTableListProps<TData> = {
|
|
|
414
414
|
options?: {
|
|
415
415
|
defaultOrder?: string[];
|
|
416
416
|
defaultVisibility?: string[];
|
|
417
|
+
defaultSorting?: SortingState;
|
|
417
418
|
emptyComponent?: ReactNode;
|
|
418
419
|
isStriped?: boolean;
|
|
419
420
|
hasStickyHeader?: boolean;
|
|
@@ -523,6 +524,7 @@ declare const base$b: {
|
|
|
523
524
|
divider: string;
|
|
524
525
|
label: string;
|
|
525
526
|
icon: string;
|
|
527
|
+
pageSizeList: string;
|
|
526
528
|
};
|
|
527
529
|
type TPanelPaginationNavigationStyles = DeepPartialType$1<typeof base$b>;
|
|
528
530
|
|
|
@@ -535,6 +537,9 @@ type TProps$5 = {
|
|
|
535
537
|
max: number;
|
|
536
538
|
current: number;
|
|
537
539
|
}) => ReactNode;
|
|
540
|
+
pageSizeOptions?: number[];
|
|
541
|
+
defaultPageSize?: number;
|
|
542
|
+
onChangePageSize?: (pageSize: number) => void;
|
|
538
543
|
styles?: TPanelPaginationNavigationStyles;
|
|
539
544
|
onChange?: (current: number) => void;
|
|
540
545
|
};
|
|
@@ -841,14 +846,14 @@ type TProps$1 = {
|
|
|
841
846
|
};
|
|
842
847
|
declare const TableColumnOptionsCustom: FC<TProps$1>;
|
|
843
848
|
|
|
844
|
-
type TProps = {
|
|
845
|
-
table: Table<
|
|
849
|
+
type TProps<TData> = {
|
|
850
|
+
table: Table<TData>;
|
|
846
851
|
fileName: string;
|
|
847
|
-
children: ({ handleExport }: {
|
|
848
|
-
handleExport: () => void;
|
|
852
|
+
children: ({ handleExport, }: {
|
|
853
|
+
handleExport: (exportData?: TData[]) => void;
|
|
849
854
|
}) => ReactNode;
|
|
850
855
|
};
|
|
851
|
-
declare const TableExcelExportCustom:
|
|
856
|
+
declare const TableExcelExportCustom: <TData extends object>(props: TProps<TData>) => react_jsx_runtime.JSX.Element;
|
|
852
857
|
|
|
853
858
|
type TSelectMenuFormProps = {
|
|
854
859
|
name: string;
|
|
@@ -1157,10 +1162,10 @@ type TExcelSheet = {
|
|
|
1157
1162
|
type TOptions = {
|
|
1158
1163
|
fileName: string;
|
|
1159
1164
|
};
|
|
1160
|
-
type TReturn = {
|
|
1161
|
-
generate: (
|
|
1165
|
+
type TReturn<TData> = {
|
|
1166
|
+
generate: (table: Table<TData>, exportData?: TData[]) => TExcelSheet[];
|
|
1162
1167
|
write: (sheets: TExcelSheet[], options: TOptions) => void;
|
|
1163
1168
|
};
|
|
1164
|
-
declare const useExcel: () => TReturn
|
|
1169
|
+
declare const useExcel: <TData extends object>() => TReturn<TData>;
|
|
1165
1170
|
|
|
1166
1171
|
export { AddressInputGroupForm, BadgeElement$1 as AlertElement, AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, CheckboxInputGroupForm, ContainerLayout, DateMenuForm, DividerLayout, DropdownElement, FileInputGroupForm, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, OpeningsHourInputGroupForm, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SelectMenuForm, SlideOverOverlay, type TAddressInputGroupFormProps, type TAddressInputGroupFormStyles, type TAddressInputGroupFormValue, type TButtonElementProps, type TCheckboxInputGroupFormProps, type TCheckboxInputGroupFormStyles, type TDateMenuFormProps, type TDateMenuFormStyles, type TExcelCell, type TExcelRow, type TExcelSheet, type TFileInputGroupFormProps, type TFileInputGroupFormStyles, type TInputGroupFormProps, type TInputGroupStyles, type TModalOverlayProps, type TOpeningsHourInputGroupFormProps, type TOpeningsHourInputGroupFormStyles, type TSelectMenuFormProps, type TSelectMenuFormStyles, type TTableListProps as TTableList2Props, type TTableListProps$1 as TTableListProps, type TTableListStyles$1 as TTableListStyles, TabNavigation, TableColumnOptionsCustom, TableExcelExportCustom as TableExportCustom, TableList, TableList2, VerticalNavigation, useExcel };
|