@murabei-data-science/pumpwood-ui 1.4.4 → 1.4.6
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.d.ts +826 -788
- package/dist/components.esm.js +18 -18
- package/dist/components.js +17 -18
- package/dist/index.css +1 -1
- package/dist/types/components/Badge/index.d.ts +1 -1
- package/dist/types/components/FKSelect/index.d.ts +9 -2
- package/dist/types/components/Timeline/index.d.ts +58 -0
- package/dist/types/components/index.d.ts +49 -48
- package/dist/types/components/ui/badge.d.ts +1 -1
- package/dist/types/components/ui/button.d.ts +2 -2
- package/dist/types/components/ui/combobox.d.ts +5 -1
- package/dist/types/components/ui/timeline.d.ts +25 -0
- package/dist/types/lib/fk-select-fetcher.d.ts +10 -7
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { HTMLAttributes, TimeHTMLAttributes } from "react";
|
|
2
|
+
interface TimelineProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
defaultValue?: number;
|
|
4
|
+
value?: number;
|
|
5
|
+
onValueChange?: (value: number) => void;
|
|
6
|
+
orientation?: "horizontal" | "vertical";
|
|
7
|
+
variant?: "steps" | "events";
|
|
8
|
+
}
|
|
9
|
+
declare function Timeline({ defaultValue, value, onValueChange, orientation, variant, className, children, ...props }: TimelineProps): React.JSX.Element;
|
|
10
|
+
declare function TimelineContent({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
11
|
+
interface TimelineDateProps extends TimeHTMLAttributes<HTMLTimeElement> {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare function TimelineDate({ asChild, className, ...props }: TimelineDateProps): React.JSX.Element;
|
|
15
|
+
declare function TimelineHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
16
|
+
/** @deprecated Vertical timelines render the rail inside TimelineItem. */
|
|
17
|
+
declare function TimelineIndicator(_props: HTMLAttributes<HTMLDivElement>): null;
|
|
18
|
+
interface TimelineItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
step: number;
|
|
20
|
+
}
|
|
21
|
+
declare function TimelineItem({ step, className, children, ...props }: TimelineItemProps): React.JSX.Element;
|
|
22
|
+
/** @deprecated Vertical timelines render the rail inside TimelineItem. */
|
|
23
|
+
declare function TimelineSeparator(_props: HTMLAttributes<HTMLDivElement>): null;
|
|
24
|
+
declare function TimelineTitle({ className, ...props }: HTMLAttributes<HTMLHeadingElement>): React.JSX.Element;
|
|
25
|
+
export { Timeline, TimelineContent, TimelineDate, TimelineHeader, TimelineIndicator, TimelineItem, TimelineSeparator, TimelineTitle, };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import type { FKFetcherParams } from "../components/FKSelect";
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
export type DynamicListPagination = {
|
|
3
|
+
limit?: number;
|
|
4
|
+
offset?: number;
|
|
5
|
+
};
|
|
6
|
+
export type DynamicListFn = (modelClass: string, filterDict: Record<string, unknown>, searchFields?: string[], pagination?: DynamicListPagination) => Promise<[Record<string, unknown>[] | null, {
|
|
7
|
+
message: string;
|
|
8
|
+
} | null]>;
|
|
8
9
|
export type FKSelectFetcherParams = {
|
|
9
10
|
search: string;
|
|
10
11
|
modelClass: string;
|
|
11
12
|
labelName: string;
|
|
12
13
|
additionalFilters?: Record<string, unknown>;
|
|
13
14
|
fields?: string[];
|
|
15
|
+
limit?: number;
|
|
16
|
+
offset?: number;
|
|
14
17
|
};
|
|
15
18
|
export type CreateFKSelectFetcherOptions = {
|
|
16
19
|
additionalFilters?: Record<string, unknown>;
|
|
@@ -19,7 +22,7 @@ export type CreateFKSelectFetcherOptions = {
|
|
|
19
22
|
/**
|
|
20
23
|
* Fetches FK select options via an injected dynamicList function.
|
|
21
24
|
*/
|
|
22
|
-
export declare const fkSelectFetcher: (dynamicList: DynamicListFn, { search, modelClass, labelName, additionalFilters, fields, }: FKSelectFetcherParams) => Promise<Record<string, unknown>[]>;
|
|
25
|
+
export declare const fkSelectFetcher: (dynamicList: DynamicListFn, { search, modelClass, labelName, additionalFilters, fields, limit, offset, }: FKSelectFetcherParams) => Promise<Record<string, unknown>[]>;
|
|
23
26
|
/**
|
|
24
27
|
* Creates a stable fetcher function for FKSelect.
|
|
25
28
|
*/
|