@gobolt/genesis 0.4.21 → 0.4.23
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/components/InputAddon/InputAddon.d.ts +17 -0
- package/dist/components/InputAddon/index.d.ts +2 -0
- package/dist/components/Table/InfiniteScrollTable/InfiniteScrollTable.d.ts +1 -1
- package/dist/components/Table/InfiniteScrollTable/useInfiniteQuery.d.ts +2 -1
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs +703 -400
- package/dist/index.js +703 -400
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InputEvent } from '../../types/events';
|
|
2
|
+
export interface Rule {
|
|
3
|
+
validator: (_rule: any, value: string) => Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export interface InputAddonProps {
|
|
6
|
+
name: string;
|
|
7
|
+
addonBefore?: string | undefined;
|
|
8
|
+
addonAfter?: string | undefined;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
maxLength?: number;
|
|
11
|
+
value: string | undefined;
|
|
12
|
+
onChange: (actionEvent: InputEvent) => void;
|
|
13
|
+
rules?: Rule[];
|
|
14
|
+
validateTrigger?: string[];
|
|
15
|
+
}
|
|
16
|
+
declare const InputAddon: ({ name, addonBefore, addonAfter, placeholder, maxLength, value, onChange, rules, validateTrigger, }: InputAddonProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default InputAddon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InfiniteScrollTableProps } from './types';
|
|
2
|
-
declare const InfiniteScrollTable: <T>({ columns: initialColumns, fetchService, scrollHeight, scrollWidth, onChange, rowSelection, onRowClick, onRowSelectionChange, onDataChange, }: InfiniteScrollTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const InfiniteScrollTable: <T>({ columns: initialColumns, fetchService, scrollHeight, scrollWidth, onChange, rowSelection, onRowClick, onRowSelectionChange, onDataChange, filterFn, }: InfiniteScrollTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default InfiniteScrollTable;
|
|
@@ -6,6 +6,7 @@ interface UseInfiniteQueryOptions<T> {
|
|
|
6
6
|
}) => Promise<ApiResponse<T>>;
|
|
7
7
|
initialPageParam: number;
|
|
8
8
|
getNextPageParam: (lastPage: ApiResponse<T>) => number | undefined;
|
|
9
|
+
filterFn?: (data: ApiResponse<T>) => ApiResponse<T>;
|
|
9
10
|
}
|
|
10
11
|
interface UseInfiniteQueryResult<T> {
|
|
11
12
|
data: {
|
|
@@ -17,5 +18,5 @@ interface UseInfiniteQueryResult<T> {
|
|
|
17
18
|
isFetchingNextPage: boolean;
|
|
18
19
|
status: "pending" | "error" | "success";
|
|
19
20
|
}
|
|
20
|
-
export declare const useInfiniteQuery: <T>({ queryKey, queryFn, initialPageParam, getNextPageParam, }: UseInfiniteQueryOptions<T>) => UseInfiniteQueryResult<T>;
|
|
21
|
+
export declare const useInfiniteQuery: <T>({ queryKey, queryFn, initialPageParam, getNextPageParam, filterFn, }: UseInfiniteQueryOptions<T>) => UseInfiniteQueryResult<T>;
|
|
21
22
|
export {};
|
|
@@ -31,6 +31,8 @@ export { default as UnitNumber } from './Glyph/custom/UnitNumber';
|
|
|
31
31
|
export type { UnitNumberProps } from './Glyph/custom/UnitNumber';
|
|
32
32
|
export { default as Input } from './Input';
|
|
33
33
|
export type { InputProps } from './Input';
|
|
34
|
+
export { default as InputAddon } from './InputAddon';
|
|
35
|
+
export type { InputAddonProps } from './InputAddon';
|
|
34
36
|
export { BarChart, LineChart, DonutChart } from './Insights';
|
|
35
37
|
export type { BarChartProps, BarChartDataPoint, BarChartIcon, LineChartProps, LineChartDataPoint, DonutChartProps, DonutChartDataPoint, } from './Insights';
|
|
36
38
|
export { default as Layout } from './Layout';
|