lkd-web-kit 0.0.0 → 0.0.2

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.
@@ -0,0 +1,116 @@
1
+ import { CenterProps } from '@mantine/core';
2
+ import { ComboboxItem } from '@mantine/core';
3
+ import { ComponentProps } from 'react';
4
+ import { ComponentPropsWithoutRef } from 'react';
5
+ import { default as default_2 } from 'react';
6
+ import { ElementProps } from '@mantine/core';
7
+ import { InfiniteData } from '@tanstack/react-query';
8
+ import { InfiniteQueryHookResult } from 'react-query-kit';
9
+ import { InputBaseProps } from '@mantine/core';
10
+ import { JSX } from 'react/jsx-runtime';
11
+ import { LoaderProps } from '@mantine/core';
12
+ import { MouseEvent as MouseEvent_2 } from 'react';
13
+ import { ReactNode } from 'react';
14
+
15
+ export declare interface EmptyProps extends ComponentProps<'div'> {
16
+ label: ReactNode;
17
+ action?: ReactNode;
18
+ icon: IconFC;
19
+ size?: keyof typeof pxBySize;
20
+ }
21
+
22
+ export declare const EmptyState: ({ label, action, icon, className, size, ...props }: EmptyProps) => JSX.Element;
23
+
24
+ export declare type IconFC = default_2.FC<ComponentPropsWithoutRef<"svg">>;
25
+
26
+ export declare interface IconProps extends ComponentPropsWithoutRef<"svg"> {
27
+ i: IconFC;
28
+ /**
29
+ * @property xs: 16px
30
+ * @property sm: 20px
31
+ * @property md: 24px
32
+ * @property lg: 28px
33
+ * @property xl: 32px
34
+ * @property 2xl: 40px
35
+ */
36
+ size?: keyof typeof stylesBySize | number;
37
+ }
38
+
39
+ export declare const InfinityLoader: ({ infinity, loaderProps, ...props }: InfinityLoaderProps) => JSX.Element;
40
+
41
+ export declare interface InfinityLoaderProps extends CenterProps {
42
+ infinity: InfiniteQueryHookResult<InfiniteData<{
43
+ data: unknown[];
44
+ }>, unknown>;
45
+ loaderProps?: LoaderProps;
46
+ }
47
+
48
+ export declare const NavItems: ({ items }: NavItemsProps) => JSX.Element;
49
+
50
+ export declare interface NavItemsProps {
51
+ items: {
52
+ leftSection?: ReactNode;
53
+ rightSection?: ReactNode;
54
+ onClick?: (e: MouseEvent_2<Element>) => void;
55
+ disabled?: boolean;
56
+ className?: string;
57
+ children?: ReactNode;
58
+ label: string;
59
+ href?: string;
60
+ isActive?: boolean;
61
+ }[];
62
+ }
63
+
64
+ declare const pxBySize: {
65
+ sm: number;
66
+ md: number;
67
+ lg: number;
68
+ };
69
+
70
+ export declare function SelectInfinity({ value, onChange, data, searchValue, onSearchChange, renderOption, onOptionSubmit, nothingFoundMessage, infinity, placeholder, ...props }: SelectInfinityProps): JSX.Element;
71
+
72
+ export declare interface SelectInfinityProps extends InputBaseProps, ElementProps<'button', keyof InputBaseProps | 'value' | 'onChange'> {
73
+ value?: string | null;
74
+ onChange?: (value: string | null) => void;
75
+ data?: ComboboxItem[];
76
+ searchValue?: string;
77
+ onSearchChange?: (value: string) => void;
78
+ renderOption?: (args: {
79
+ option: ComboboxItem;
80
+ }) => React.ReactNode;
81
+ onOptionSubmit?: (value: string) => void;
82
+ nothingFoundMessage?: ReactNode;
83
+ infinity: InfiniteQueryHookResult<InfiniteData<{
84
+ data: unknown[];
85
+ }, number>, Error>;
86
+ placeholder?: string;
87
+ }
88
+
89
+ declare const stylesBySize: {
90
+ xs: {
91
+ height: number;
92
+ width: number;
93
+ };
94
+ sm: {
95
+ height: number;
96
+ width: number;
97
+ };
98
+ md: {
99
+ height: number;
100
+ width: number;
101
+ };
102
+ lg: {
103
+ height: number;
104
+ width: number;
105
+ };
106
+ xl: {
107
+ height: number;
108
+ width: number;
109
+ };
110
+ "2xl": {
111
+ height: number;
112
+ width: number;
113
+ };
114
+ };
115
+
116
+ export { }