schummar-table 0.46.1 → 0.46.3
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.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { ComponentType, ReactNode, HTMLProps } from 'react';
|
|
3
|
+
import { ComponentType, ReactNode, HTMLProps, ForwardedRef } from 'react';
|
|
4
4
|
import { T as TableTheme, C as CommonFilterProps, a as TableProps, b as TableRef, F as FilterImplementation, M as MemoizedTableTheme, I as Id, c as TableItem, d as InternalTableState, P as PartialTableTheme } from './types-CJnecNQy.cjs';
|
|
5
5
|
export { f as Column, g as FunctionWithDeps, h as InternalColumn, S as Sort, i as SortDirection, e as TableStateStorage } from './types-CJnecNQy.cjs';
|
|
6
6
|
import { Store } from 'schummar-state/react';
|
|
@@ -145,7 +145,10 @@ declare function SelectFilter<TItem, TColumnValue, TFilterBy>({ options: provide
|
|
|
145
145
|
virtual?: VirtualListProps<unknown>['virtual'];
|
|
146
146
|
} & CommonFilterProps<TItem, TColumnValue, TFilterBy, Set<TFilterBy>>): JSX.Element;
|
|
147
147
|
|
|
148
|
-
declare const Table:
|
|
148
|
+
declare const Table: <T>(props: TableProps<T> & {
|
|
149
|
+
ref?: ForwardedRef<TableRef>;
|
|
150
|
+
}) => ReturnType<typeof _Table>;
|
|
151
|
+
declare function _Table<T>(props: TableProps<T>, ref: ForwardedRef<TableRef>): JSX.Element;
|
|
149
152
|
|
|
150
153
|
declare function TextFilter<TItem, TColumnValue>({ compare, filterBy, placeholder, ...props }: {
|
|
151
154
|
/** Custom comparison function. Should return true if an item value matches the current filter value.
|
|
@@ -227,4 +230,4 @@ declare const termMatch: (text: string, query: string) => boolean;
|
|
|
227
230
|
declare function configureTableTheme(tableTheme: PartialTableTheme): void;
|
|
228
231
|
declare function mergeThemes<T>(...themes: PartialTableTheme<T>[]): PartialTableTheme<T>;
|
|
229
232
|
|
|
230
|
-
export { AutoFocusTextField, ColumnContext, CombinedFilter, type CombinedFilterProps, CommonFilterProps, DateFilter, DatePicker, type DatePickerChangeSource, type DatePickerProps, DatePickerProvider, type DatePickerQuickOption, type DateRange, FilterImplementation, Id, PartialTableTheme, RangeFilter, SelectFilter, Table, TableContext, TableProps, TableResetContext, TableSettingsContext, TableSettingsProvider, TextFilter, commonQuickOptions, configureTableTheme, dateClamp, dateIntersect, endOfDay, getCalendarWeek, helpers, lastDays, mergeThemes, startOfDay, termMatch, textMatch, thisMonth, thisWeek, thisYear, today, useColumnContext, useFilter, useTableContext, useTheme };
|
|
233
|
+
export { AutoFocusTextField, ColumnContext, CombinedFilter, type CombinedFilterProps, CommonFilterProps, DateFilter, DatePicker, type DatePickerChangeSource, type DatePickerProps, DatePickerProvider, type DatePickerQuickOption, type DateRange, FilterImplementation, Id, PartialTableTheme, RangeFilter, SelectFilter, Table, TableContext, TableProps, TableRef, TableResetContext, TableSettingsContext, TableSettingsProvider, TextFilter, commonQuickOptions, configureTableTheme, dateClamp, dateIntersect, endOfDay, getCalendarWeek, helpers, lastDays, mergeThemes, startOfDay, termMatch, textMatch, thisMonth, thisWeek, thisYear, today, useColumnContext, useFilter, useTableContext, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { ComponentType, ReactNode, HTMLProps } from 'react';
|
|
3
|
+
import { ComponentType, ReactNode, HTMLProps, ForwardedRef } from 'react';
|
|
4
4
|
import { T as TableTheme, C as CommonFilterProps, a as TableProps, b as TableRef, F as FilterImplementation, M as MemoizedTableTheme, I as Id, c as TableItem, d as InternalTableState, P as PartialTableTheme } from './types-CIq7O-SN.js';
|
|
5
5
|
export { f as Column, g as FunctionWithDeps, h as InternalColumn, S as Sort, i as SortDirection, e as TableStateStorage } from './types-CIq7O-SN.js';
|
|
6
6
|
import { Store } from 'schummar-state/react';
|
|
@@ -145,7 +145,10 @@ declare function SelectFilter<TItem, TColumnValue, TFilterBy>({ options: provide
|
|
|
145
145
|
virtual?: VirtualListProps<unknown>['virtual'];
|
|
146
146
|
} & CommonFilterProps<TItem, TColumnValue, TFilterBy, Set<TFilterBy>>): JSX.Element;
|
|
147
147
|
|
|
148
|
-
declare const Table:
|
|
148
|
+
declare const Table: <T>(props: TableProps<T> & {
|
|
149
|
+
ref?: ForwardedRef<TableRef>;
|
|
150
|
+
}) => ReturnType<typeof _Table>;
|
|
151
|
+
declare function _Table<T>(props: TableProps<T>, ref: ForwardedRef<TableRef>): JSX.Element;
|
|
149
152
|
|
|
150
153
|
declare function TextFilter<TItem, TColumnValue>({ compare, filterBy, placeholder, ...props }: {
|
|
151
154
|
/** Custom comparison function. Should return true if an item value matches the current filter value.
|
|
@@ -227,4 +230,4 @@ declare const termMatch: (text: string, query: string) => boolean;
|
|
|
227
230
|
declare function configureTableTheme(tableTheme: PartialTableTheme): void;
|
|
228
231
|
declare function mergeThemes<T>(...themes: PartialTableTheme<T>[]): PartialTableTheme<T>;
|
|
229
232
|
|
|
230
|
-
export { AutoFocusTextField, ColumnContext, CombinedFilter, type CombinedFilterProps, CommonFilterProps, DateFilter, DatePicker, type DatePickerChangeSource, type DatePickerProps, DatePickerProvider, type DatePickerQuickOption, type DateRange, FilterImplementation, Id, PartialTableTheme, RangeFilter, SelectFilter, Table, TableContext, TableProps, TableResetContext, TableSettingsContext, TableSettingsProvider, TextFilter, commonQuickOptions, configureTableTheme, dateClamp, dateIntersect, endOfDay, getCalendarWeek, helpers, lastDays, mergeThemes, startOfDay, termMatch, textMatch, thisMonth, thisWeek, thisYear, today, useColumnContext, useFilter, useTableContext, useTheme };
|
|
233
|
+
export { AutoFocusTextField, ColumnContext, CombinedFilter, type CombinedFilterProps, CommonFilterProps, DateFilter, DatePicker, type DatePickerChangeSource, type DatePickerProps, DatePickerProvider, type DatePickerQuickOption, type DateRange, FilterImplementation, Id, PartialTableTheme, RangeFilter, SelectFilter, Table, TableContext, TableProps, TableRef, TableResetContext, TableSettingsContext, TableSettingsProvider, TextFilter, commonQuickOptions, configureTableTheme, dateClamp, dateIntersect, endOfDay, getCalendarWeek, helpers, lastDays, mergeThemes, startOfDay, termMatch, textMatch, thisMonth, thisWeek, thisYear, today, useColumnContext, useFilter, useTableContext, useTheme };
|