@infinilabs/filter 0.0.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/README.md +31 -0
- package/dist/filter.cjs +14 -0
- package/dist/filter.js +4709 -0
- package/dist/index.d.ts +64 -0
- package/package.json +50 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ColorPickerProps as ColorPickerProps_2 } from 'antd';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
import { InputProps as InputProps_2 } from 'antd';
|
|
5
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
6
|
+
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
7
|
+
import { PropsWithChildren } from 'react';
|
|
8
|
+
import { SelectProps as SelectProps_2 } from 'antd';
|
|
9
|
+
import { Slider } from 'antd';
|
|
10
|
+
|
|
11
|
+
declare interface CheckboxGroupOption {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string | number;
|
|
14
|
+
icon: string;
|
|
15
|
+
count: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare interface CheckboxGroupProps extends CollapseProps {
|
|
19
|
+
value: Array<string | number>;
|
|
20
|
+
options: CheckboxGroupOption[];
|
|
21
|
+
onChange?: (value: Array<string | number>) => void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare interface CollapseProps extends PropsWithChildren {
|
|
25
|
+
defaultExpand?: boolean;
|
|
26
|
+
title: string;
|
|
27
|
+
onClear?: (event: MouseEvent_2) => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare type ColorPickerProps = CollapseProps & ColorPickerProps_2;
|
|
31
|
+
|
|
32
|
+
export declare const FilterCheckboxGroup: FC<CheckboxGroupProps>;
|
|
33
|
+
|
|
34
|
+
export declare const FilterCollapse: FC<CollapseProps>;
|
|
35
|
+
|
|
36
|
+
export declare const FilterColorPicker: FC<ColorPickerProps>;
|
|
37
|
+
|
|
38
|
+
export declare const FilterInput: (props: InputProps) => JSX_2.Element;
|
|
39
|
+
|
|
40
|
+
export declare const FilterSelect: FC<SelectProps>;
|
|
41
|
+
|
|
42
|
+
export declare const FilterSlider: FC<SliderProps>;
|
|
43
|
+
|
|
44
|
+
export declare const FilterTags: FC<TagsProps>;
|
|
45
|
+
|
|
46
|
+
declare type InputProps = CollapseProps & InputProps_2;
|
|
47
|
+
|
|
48
|
+
declare type SelectProps = CollapseProps & SelectProps_2;
|
|
49
|
+
|
|
50
|
+
declare type SliderProps = CollapseProps & ComponentProps<typeof Slider>;
|
|
51
|
+
|
|
52
|
+
declare interface TagOption {
|
|
53
|
+
label: string;
|
|
54
|
+
value: string | number;
|
|
55
|
+
icon?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare interface TagsProps extends CollapseProps {
|
|
59
|
+
value: Array<string | number>;
|
|
60
|
+
options: TagOption[];
|
|
61
|
+
onChange?: (value: Array<string | number>) => void;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { }
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@infinilabs/filter",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "0.0.0",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/filter.cjs",
|
|
9
|
+
"module": "dist/filter.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/filter.js",
|
|
15
|
+
"require": "./dist/filter.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "tsc -b && vite build",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"prepublishOnly": "vite build",
|
|
23
|
+
"publish": "npm publish"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"antd": "^5.20.6",
|
|
27
|
+
"clsx": "^2.1.1",
|
|
28
|
+
"lucide-react": "^0.562.0",
|
|
29
|
+
"motion": "^12.23.26",
|
|
30
|
+
"react": "^19.2.0",
|
|
31
|
+
"react-dom": "^19.2.0",
|
|
32
|
+
"tailwind-merge": "^3.4.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/node": "^24.10.1",
|
|
36
|
+
"@types/react": "^19.2.5",
|
|
37
|
+
"@types/react-dom": "^19.2.3",
|
|
38
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
39
|
+
"globals": "^16.5.0",
|
|
40
|
+
"typescript": "~5.9.3",
|
|
41
|
+
"unocss": "^66.5.10",
|
|
42
|
+
"vite": "npm:rolldown-vite@7.2.5",
|
|
43
|
+
"vite-plugin-dts": "^4.5.4"
|
|
44
|
+
},
|
|
45
|
+
"pnpm": {
|
|
46
|
+
"overrides": {
|
|
47
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|